Skip to content
Permalink
Browse files

here we go!

  • Loading branch information...
amcdnl committed Mar 1, 2019
1 parent 62278b4 commit 03452a54cba40c04e1fa32b0c401afd6de8ad7e4
Showing with 27,627 additions and 0 deletions.
  1. +30 βˆ’0 .editorconfig
  2. +5 βˆ’0 .gitignore
  3. +2 βˆ’0 .storybook/addons.js
  4. +24 βˆ’0 .storybook/config.js
  5. +64 βˆ’0 .storybook/webpack.config.js
  6. +25 βˆ’0 babel.config.js
  7. +13,862 βˆ’0 package-lock.json
  8. +104 βˆ’0 package.json
  9. +36 βˆ’0 rollup.config.js
  10. +8 βˆ’0 src/AreaChart/AreaChart.module.scss
  11. +294 βˆ’0 src/AreaChart/AreaChart.story.tsx
  12. +242 βˆ’0 src/AreaChart/AreaChart.tsx
  13. +162 βˆ’0 src/AreaChart/AreaSeries/Area.tsx
  14. +272 βˆ’0 src/AreaChart/AreaSeries/AreaSeries.tsx
  15. +124 βˆ’0 src/AreaChart/AreaSeries/Line.tsx
  16. +13 βˆ’0 src/AreaChart/AreaSeries/PosedArea.tsx
  17. +34 βˆ’0 src/AreaChart/AreaSeries/PosedLine.tsx
  18. +14 βˆ’0 src/AreaChart/AreaSeries/StackedAreaSeries.tsx
  19. +47 βˆ’0 src/AreaChart/AreaSeries/StackedNormalizedAreaSeries.tsx
  20. +5 βˆ’0 src/AreaChart/AreaSeries/index.tsx
  21. +18 βˆ’0 src/AreaChart/StackedAreaChart.tsx
  22. +41 βˆ’0 src/AreaChart/StackedNormalizedAreaChart.tsx
  23. +4 βˆ’0 src/AreaChart/index.tsx
  24. +12 βˆ’0 src/BarChart/BarChart.module.scss
  25. +286 βˆ’0 src/BarChart/BarChart.story.tsx
  26. +220 βˆ’0 src/BarChart/BarChart.tsx
  27. +3 βˆ’0 src/BarChart/BarSeries/Bar.module.scss
  28. +290 βˆ’0 src/BarChart/BarSeries/Bar.tsx
  29. +160 βˆ’0 src/BarChart/BarSeries/BarSeries.tsx
  30. +41 βˆ’0 src/BarChart/BarSeries/MarimekkoBarSeries.tsx
  31. +20 βˆ’0 src/BarChart/BarSeries/PosedBar.tsx
  32. +18 βˆ’0 src/BarChart/BarSeries/PosedRangeLines.tsx
  33. +84 βˆ’0 src/BarChart/BarSeries/RangeLines.tsx
  34. +26 βˆ’0 src/BarChart/BarSeries/StackedBarSeries.tsx
  35. +39 βˆ’0 src/BarChart/BarSeries/StackedNormalizedBarSeries.tsx
  36. +6 βˆ’0 src/BarChart/BarSeries/index.tsx
  37. +46 βˆ’0 src/BarChart/MarimekkoChart.tsx
  38. +18 βˆ’0 src/BarChart/StackedBarChart.tsx
  39. +41 βˆ’0 src/BarChart/StackedNormalizedBarChart.tsx
  40. +5 βˆ’0 src/BarChart/index.tsx
  41. +4 βˆ’0 src/HivePlot/HiveAxis/HiveAxis.module.scss
  42. +56 βˆ’0 src/HivePlot/HiveAxis/HiveAxis.tsx
  43. +1 βˆ’0 src/HivePlot/HiveAxis/index.tsx
  44. +5 βˆ’0 src/HivePlot/HiveLabel/HiveLabel.module.scss
  45. +37 βˆ’0 src/HivePlot/HiveLabel/HiveLabel.tsx
  46. +1 βˆ’0 src/HivePlot/HiveLabel/index.tsx
  47. +11 βˆ’0 src/HivePlot/HiveLink/HiveLink.module.scss
  48. +45 βˆ’0 src/HivePlot/HiveLink/HiveLink.tsx
  49. +152 βˆ’0 src/HivePlot/HiveLink/hiveLayout.tsx
  50. +1 βˆ’0 src/HivePlot/HiveLink/index.tsx
  51. +8 βˆ’0 src/HivePlot/HiveNode/HiveNode.module.scss
  52. +55 βˆ’0 src/HivePlot/HiveNode/HiveNode.tsx
  53. +1 βˆ’0 src/HivePlot/HiveNode/index.tsx
  54. +74 βˆ’0 src/HivePlot/HivePlot.story.tsx
  55. +448 βˆ’0 src/HivePlot/HivePlot.tsx
  56. +9 βˆ’0 src/HivePlot/HiveTooltip/HiveTooltip.module.scss
  57. +31 βˆ’0 src/HivePlot/HiveTooltip/HiveTooltip.tsx
  58. +1 βˆ’0 src/HivePlot/HiveTooltip/index.tsx
  59. +1 βˆ’0 src/HivePlot/index.tsx
  60. +26 βˆ’0 src/HivePlot/utils.tsx
  61. +260 βˆ’0 src/LineChart/LineChart.story.tsx
  62. +36 βˆ’0 src/LineChart/LineChart.tsx
  63. +1 βˆ’0 src/LineChart/index.tsx
  64. +3 βˆ’0 src/Map/Map.module.scss
  65. +23 βˆ’0 src/Map/Map.story.tsx
  66. +136 βˆ’0 src/Map/Map.tsx
  67. +3 βˆ’0 src/Map/MapMarker.module.scss
  68. +92 βˆ’0 src/Map/MapMarker.tsx
  69. +2 βˆ’0 src/Map/index.tsx
  70. +123 βˆ’0 src/PieChart/PieArcSeries/PieArc/PieArc.tsx
  71. +33 βˆ’0 src/PieChart/PieArcSeries/PieArc/PosedArc.tsx
  72. +1 βˆ’0 src/PieChart/PieArcSeries/PieArc/index.tsx
  73. +75 βˆ’0 src/PieChart/PieArcSeries/PieArcLabel/PieArcLabel.tsx
  74. +17 βˆ’0 src/PieChart/PieArcSeries/PieArcLabel/PosedArcLabelGroup.tsx
  75. +1 βˆ’0 src/PieChart/PieArcSeries/PieArcLabel/index.tsx
  76. +100 βˆ’0 src/PieChart/PieArcSeries/PieArcSeries.tsx
  77. +3 βˆ’0 src/PieChart/PieArcSeries/index.tsx
  78. +141 βˆ’0 src/PieChart/PieChart.story.tsx
  79. +76 βˆ’0 src/PieChart/PieChart.tsx
  80. +2 βˆ’0 src/PieChart/index.tsx
  81. +103 βˆ’0 src/Sankey/Sankey.story.tsx
  82. +222 βˆ’0 src/Sankey/Sankey.tsx
  83. +3 βˆ’0 src/Sankey/SankeyLabel/SankeyLabel.module.scss
  84. +64 βˆ’0 src/Sankey/SankeyLabel/SankeyLabel.tsx
  85. +1 βˆ’0 src/Sankey/SankeyLabel/index.tsx
  86. +22 βˆ’0 src/Sankey/SankeyLink/SankeyLink.module.scss
  87. +191 βˆ’0 src/Sankey/SankeyLink/SankeyLink.tsx
  88. +1 βˆ’0 src/Sankey/SankeyLink/index.tsx
  89. +21 βˆ’0 src/Sankey/SankeyNode/SankeyNode.module.scss
  90. +193 βˆ’0 src/Sankey/SankeyNode/SankeyNode.tsx
  91. +1 βˆ’0 src/Sankey/SankeyNode/index.tsx
  92. +1 βˆ’0 src/Sankey/index.tsx
  93. +17 βˆ’0 src/Sankey/utils.tsx
  94. +3 βˆ’0 src/ScatterPlot/ScatterPlot.module.scss
  95. +215 βˆ’0 src/ScatterPlot/ScatterPlot.story.tsx
  96. +228 βˆ’0 src/ScatterPlot/ScatterPlot.tsx
  97. +17 βˆ’0 src/ScatterPlot/ScatterSeries/PosedCircle.tsx
  98. +15 βˆ’0 src/ScatterPlot/ScatterSeries/PosedSymbol.tsx
  99. +3 βˆ’0 src/ScatterPlot/ScatterSeries/ScatterPoint.module.scss
  100. +191 βˆ’0 src/ScatterPlot/ScatterSeries/ScatterPoint.tsx
  101. +84 βˆ’0 src/ScatterPlot/ScatterSeries/ScatterSeries.tsx
  102. +2 βˆ’0 src/ScatterPlot/ScatterSeries/index.tsx
  103. +2 βˆ’0 src/ScatterPlot/index.tsx
  104. +63 βˆ’0 src/Sparkline/AreaSparklineChart.tsx
  105. +37 βˆ’0 src/Sparkline/BarSparklineChart.tsx
  106. +18 βˆ’0 src/Sparkline/SparklineChart.story.tsx
  107. +50 βˆ’0 src/Sparkline/SparklineChart.tsx
  108. +3 βˆ’0 src/Sparkline/index.tsx
  109. +71 βˆ’0 src/common/Axis/LinearAxis/LinearAxis.story.tsx
  110. +147 βˆ’0 src/common/Axis/LinearAxis/LinearAxis.tsx
  111. +59 βˆ’0 src/common/Axis/LinearAxis/LinearAxisLine.tsx
  112. +166 βˆ’0 src/common/Axis/LinearAxis/LinearAxisTickLabel.tsx
  113. +46 βˆ’0 src/common/Axis/LinearAxis/LinearAxisTickLine.tsx
  114. +297 βˆ’0 src/common/Axis/LinearAxis/LinearAxisTickSeries.tsx
  115. +76 βˆ’0 src/common/Axis/LinearAxis/LinearXAxis.tsx
  116. +76 βˆ’0 src/common/Axis/LinearAxis/LinearYAxis.tsx
  117. +7 βˆ’0 src/common/Axis/LinearAxis/helpers.tsx
  118. +8 βˆ’0 src/common/Axis/LinearAxis/index.tsx
  119. +110 βˆ’0 src/common/Axis/RadialAxis/RadialAxis.story.tsx
  120. +109 βˆ’0 src/common/Axis/RadialAxis/RadialAxis.tsx
  121. +44 βˆ’0 src/common/Axis/RadialAxis/RadialAxisArcSeries/RadialAxisArc.tsx
  122. +46 βˆ’0 src/common/Axis/RadialAxis/RadialAxisArcSeries/RadialAxisArcSeries.tsx
  123. +1 βˆ’0 src/common/Axis/RadialAxis/RadialAxisArcSeries/index.tsx
  124. +32 βˆ’0 src/common/Axis/RadialAxis/RadialAxisLineSeries/RadialAxisLine.tsx
  125. +48 βˆ’0 src/common/Axis/RadialAxis/RadialAxisLineSeries/RadialAxisLineSeries.tsx
  126. +1 βˆ’0 src/common/Axis/RadialAxis/RadialAxisLineSeries/index.tsx
  127. +47 βˆ’0 src/common/Axis/RadialAxis/RadialAxisTickSeries/RadialAxisTick.tsx
  128. +52 βˆ’0 src/common/Axis/RadialAxis/RadialAxisTickSeries/RadialAxisTickLabel.tsx
  129. +14 βˆ’0 src/common/Axis/RadialAxis/RadialAxisTickSeries/RadialAxisTickLine.tsx
  130. +46 βˆ’0 src/common/Axis/RadialAxis/RadialAxisTickSeries/RadialAxisTickSeries.tsx
  131. +1 βˆ’0 src/common/Axis/RadialAxis/RadialAxisTickSeries/index.tsx
  132. +1 βˆ’0 src/common/Axis/RadialAxis/index.tsx
  133. +2 βˆ’0 src/common/Axis/index.tsx
  134. +315 βˆ’0 src/common/Brush/Brush.story.tsx
  135. +249 βˆ’0 src/common/Brush/Brush.tsx
  136. +16 βˆ’0 src/common/Brush/BrushHandle.module.scss
  137. +71 βˆ’0 src/common/Brush/BrushHandle.tsx
  138. +9 βˆ’0 src/common/Brush/BrushSlice.module.scss
  139. +116 βˆ’0 src/common/Brush/BrushSlice.tsx
  140. +66 βˆ’0 src/common/Brush/ChartBrush.tsx
  141. +3 βˆ’0 src/common/Brush/index.tsx
  142. +103 βˆ’0 src/common/CircleSeries/Circle.tsx
  143. +76 βˆ’0 src/common/CircleSeries/CircleSeries.tsx
  144. +24 βˆ’0 src/common/CircleSeries/PosedCircle.tsx
  145. +2 βˆ’0 src/common/CircleSeries/index.ts
  146. +221 βˆ’0 src/common/Gestures/Pan.tsx
  147. +156 βˆ’0 src/common/Gestures/Zoom.tsx
  148. +20 βˆ’0 src/common/Gestures/pinchUtils.tsx
  149. +3 βˆ’0 src/common/Gridline/GridStripe.module.scss
  150. +49 βˆ’0 src/common/Gridline/GridStripe.tsx
  151. +5 βˆ’0 src/common/Gridline/Gridline.module.scss
  152. +61 βˆ’0 src/common/Gridline/Gridline.tsx
  153. +106 βˆ’0 src/common/Gridline/GridlineSeries.tsx
  154. +3 βˆ’0 src/common/Gridline/index.tsx
  155. +5 βˆ’0 src/common/MarkLine/MarkLine.module.scss
  156. +33 βˆ’0 src/common/MarkLine/MarkLine.tsx
  157. +1 βˆ’0 src/common/MarkLine/index.tsx
  158. +43 βˆ’0 src/common/Styles/Gradient.tsx
  159. +17 βˆ’0 src/common/Styles/Mask.tsx
  160. +23 βˆ’0 src/common/Styles/Stripes.tsx
  161. +3 βˆ’0 src/common/Styles/index.tsx
  162. +38 βˆ’0 src/common/TooltipArea/ChartTooltip.tsx
  163. +19 βˆ’0 src/common/TooltipArea/Tooltip.module.scss
  164. +132 βˆ’0 src/common/TooltipArea/Tooltip.tsx
  165. +223 βˆ’0 src/common/TooltipArea/TooltipArea.tsx
  166. +13 βˆ’0 src/common/TooltipArea/TooltipAreaEvent.tsx
  167. +27 βˆ’0 src/common/TooltipArea/TooltipTemplate.module.scss
  168. +71 βˆ’0 src/common/TooltipArea/TooltipTemplate.tsx
  169. +5 βˆ’0 src/common/TooltipArea/index.tsx
  170. +101 βˆ’0 src/common/ZoomPan/ChartZoomPan.tsx
  171. +127 βˆ’0 src/common/ZoomPan/ZoomPan.story.tsx
  172. +201 βˆ’0 src/common/ZoomPan/ZoomPan.tsx
  173. +2 βˆ’0 src/common/ZoomPan/index.tsx
  174. +166 βˆ’0 src/common/containers/ChartContainer.tsx
  175. +53 βˆ’0 src/common/containers/ResizeContainer.tsx
  176. +110 βˆ’0 src/common/data/areaStack.tsx
  177. +116 βˆ’0 src/common/data/barStack.tsx
  178. +67 βˆ’0 src/common/data/bigInteger.tsx
  179. +168 βˆ’0 src/common/data/builder.tsx
  180. +26 βˆ’0 src/common/data/histogram.tsx
  181. +9 βˆ’0 src/common/data/index.tsx
  182. +36 βˆ’0 src/common/data/marimekko.tsx
  183. +9 βˆ’0 src/common/data/multiSeries.tsx
  184. +104 βˆ’0 src/common/data/timeSeries.tsx
  185. +43 βˆ’0 src/common/data/types.tsx
  186. +137 βˆ’0 src/common/demo/category.tsx
  187. +119 βˆ’0 src/common/demo/dates.tsx
  188. +368 βˆ’0 src/common/demo/hive.tsx
  189. +7 βˆ’0 src/common/demo/index.tsx
  190. +10 βˆ’0 src/common/demo/numbers.tsx
  191. +134 βˆ’0 src/common/demo/sankey.tsx
  192. +109 βˆ’0 src/common/demo/signals.tsx
  193. +8 βˆ’0 src/common/demo/utils.tsx
  194. +13 βˆ’0 src/common/legends/DiscreteLegend/DiscreteLegend.module.scss
  195. +28 βˆ’0 src/common/legends/DiscreteLegend/DiscreteLegend.story.tsx
  196. +63 βˆ’0 src/common/legends/DiscreteLegend/DiscreteLegend.tsx
  197. +28 βˆ’0 src/common/legends/DiscreteLegend/DiscreteLegendEntry.module.scss
  198. +65 βˆ’0 src/common/legends/DiscreteLegend/DiscreteLegendEntry.tsx
  199. +4 βˆ’0 src/common/legends/DiscreteLegend/DiscreteLegendSymbol.module.scss
  200. +26 βˆ’0 src/common/legends/DiscreteLegend/DiscreteLegendSymbol.tsx
  201. +3 βˆ’0 src/common/legends/DiscreteLegend/index.tsx
  202. +95 βˆ’0 src/common/scales/basic.tsx
  203. +3 βˆ’0 src/common/scales/index.tsx
  204. +57 βˆ’0 src/common/scales/marimekko.tsx
  205. +30 βˆ’0 src/common/scales/multiSeries.tsx
  206. +7 βˆ’0 src/common/types.ts
  207. +35 βˆ’0 src/common/utils/animations.tsx
  208. +41 βˆ’0 src/common/utils/bigint.ts
  209. +51 βˆ’0 src/common/utils/children.tsx
  210. +12 βˆ’0 src/common/utils/color.tsx
  211. +103 βˆ’0 src/common/utils/dimensions.tsx
  212. +61 βˆ’0 src/common/utils/domains.tsx
  213. +20 βˆ’0 src/common/utils/formatting.tsx
  214. +16 βˆ’0 src/common/utils/interpolation.tsx
  215. +50 βˆ’0 src/common/utils/position.tsx
  216. +14 βˆ’0 src/common/utils/selection.tsx
  217. +29 βˆ’0 src/common/utils/stroke.tsx
  218. +60 βˆ’0 src/common/utils/ticks.tsx
  219. +13 βˆ’0 src/common/utils/width.tsx
  220. +20 βˆ’0 tsconfig.json
  221. +5 βˆ’0 types/typings.d.ts
@@ -0,0 +1,30 @@
# EditorConfig: http://EditorConfig.org
# EditorConfig Properties: https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties

# top-most EditorConfig file
root = true

### defaults
[*]
charset = utf-8

# Unix-style newlines with
end_of_line = lf

# 2 space indentation
indent_size = 2
indent_style = space

# remove any whitespace characters preceding newline characters
trim_trailing_whitespace = true

# newline ending every file
insert_final_newline = true

# Forces hard line wrapping after the amount of characters specified
max_line_length = off

### custom for markdown
[*.md]
# do not remove any whitespace characters preceding newline characters
trim_trailing_whitespace = false
@@ -4,6 +4,10 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pkg/
.rpt2_cache/
dist/
storybook-static/

# Runtime data
pids
@@ -59,3 +63,4 @@ typings/

# next.js build output
.next
.DS_Store
@@ -0,0 +1,2 @@
import '@storybook/addon-options/register';
import '@storybook/addon-knobs/register';
@@ -0,0 +1,24 @@
import { configure, addDecorator, addParameters } from '@storybook/react';
import centered from '@storybook/addon-centered/react';
import { themes } from '@storybook/theming';

addParameters({
options: {
theme: {
...themes.dark,
animation: false,
brand: 'r2d3',
title: 'r2d3',
image: '',
url: ''
}
},
});

addDecorator(centered);

// Grep src for .story file extensions
const req = require.context('../src', true, /\.story\.tsx/);
const loadStories = () => req.keys().forEach(filename => req(filename));

configure(loadStories, module);
@@ -0,0 +1,64 @@
const { resolve } = require('path');
const postcssFocusVisible = require('postcss-focus-visible');
const autoprefixer = require('autoprefixer');

const sassRegex = /\.(scss|sass)$/;
const sassModuleRegex = /\.module\.(scss|sass)$/;

module.exports = async ({ config }) => ({
...config,
module: {
...config.module,
rules: [
...config.module.rules,
{
test: /\.(ts|tsx)$/,
include: resolve(__dirname, '../src'),
loader: require.resolve('babel-loader')
},
{
test: sassRegex,
exclude: sassModuleRegex,
loaders: ['style-loader', 'css-loader', 'sass-loader'],
include: resolve(__dirname, '../')
},
{
test: sassModuleRegex,
include: resolve(__dirname, '../'),
loaders: [
'style-loader',
{
loader: 'css-loader',
options: {
importLoaders: 1,
modules: true,
localIdentName: '[path]___[name]__[local]___[hash:base64:5]'
}
},
{
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: () => [
autoprefixer({
flexbox: 'no-2009'
}),
postcssFocusVisible()
]
}
},
'sass-loader'
]
}
]
},
plugins: config.plugins,
resolve: {
...config.resolve,
modules: [
...config.resolve.modules,
resolve(__dirname, '../src')
],
extensions: [...config.resolve.extensions, '.ts', '.tsx'],
},
});
@@ -0,0 +1,25 @@
module.exports = function(api) {
api.cache.forever();

const presets = [
['@babel/preset-env',
{
targets: {
esmodules: true
}
}],
'@babel/preset-react',
['@babel/typescript', { isTSX: true, allExtensions: true }]
];

const plugins = [
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
'@babel/plugin-syntax-dynamic-import'
];

return {
presets,
plugins
};
};
Oops, something went wrong.

0 comments on commit 03452a5

Please sign in to comment.
You can’t perform that action at this time.