Skip to content

Commit

Permalink
fix(storybook): fix storybook packages import
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte authored and Raphaël Benitte committed Feb 1, 2018
1 parent 25e4cdc commit d3abafd
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 12 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"devDependencies": {
"@ekino/config": "^0.3.0",
"@nivo/babel-preset": "^0.32.0-9",
"@nivo/generators": "^0.33.0",
"@storybook/addon-info": "^3.2.17",
"@storybook/addon-knobs": "^3.2.17",
"@storybook/react": "^3.2.17",
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-bar/stories/bar.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { withInfo } from '@storybook/addon-info'
import { generateCountriesData, sets } from '@nivo/generators'
import range from 'lodash/range'
import random from 'lodash/random'
import { Bar } from '../es'
import { Bar } from '../index'

const keys = ['hot dogs', 'burgers', 'sandwich', 'kebab', 'fries', 'donut']
const commonProps = {
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-chord/stories/chord.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { storiesOf } from '@storybook/react'
import { withInfo } from '@storybook/addon-info'
import { generateChordData } from '@nivo/generators'
import { Chord } from '../es'
import { Chord } from '../index'

const commonProperties = {
width: 600,
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-circle-packing/stories/bubble.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import { generateLibTree } from '@nivo/generators'
import { Bubble } from '../es'
import { Bubble } from '../index'

const commonProperties = {
width: 600,
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-heatmap/stories/heatmap.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import { generateCountriesData } from '@nivo/generators'
import { HeatMap } from '../es'
import { HeatMap } from '../index'

const CustomCell = ({
value,
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-line/stories/line.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { storiesOf } from '@storybook/react'
import { withKnobs, boolean, select } from '@storybook/addon-knobs'
import { generateDrinkStats } from '@nivo/generators'
import { Line } from '../es'
import { Line } from '../index'

const data = generateDrinkStats(18)
const commonProperties = {
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-pie/stories/pie.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { storiesOf } from '@storybook/react'
import { withKnobs, select } from '@storybook/addon-knobs'
import { generateProgrammingLanguageStats } from '@nivo/generators'
import { Pie } from '../es'
import { Pie } from '../index'

const commonProperties = {
width: 600,
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-radar/stories/radar.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { storiesOf } from '@storybook/react'
import { withKnobs, select } from '@storybook/addon-knobs'
import { generateWinesTastes } from '@nivo/generators'
import { Radar } from '../es'
import { Radar } from '../index'

const commonProperties = {
width: 600,
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-sankey/stories/sankey.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import { generateSankeyData } from '@nivo/generators'
import { Sankey } from '../es'
import { Sankey } from '../index'

const commonProperties = {
width: 1100,
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-scatterplot/stories/scatterplot.stories.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import { withInfo } from '@storybook/addon-info'
import { ScatterPlot } from '../es'
import { ScatterPlot } from '../index'

const sampleData = [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-stream/index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./cjs/nivo-scatterplot')
module.exports = require('./cjs/nivo-stream')
2 changes: 1 addition & 1 deletion packages/nivo-stream/stories/stream.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { range, random } from 'lodash'
import { storiesOf } from '@storybook/react'
import { withKnobs, boolean, select } from '@storybook/addon-knobs'
import { areaCurvePropKeys } from '@nivo/core'
import { Stream } from '../es'
import { Stream } from '../index'

const keys = ['Raoul', 'Josiane', 'Marcel', 'René', 'Paul', 'Jacques']

Expand Down
2 changes: 1 addition & 1 deletion packages/nivo-sunburst/stories/sunburst.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { storiesOf } from '@storybook/react'
import { withKnobs, boolean, select } from '@storybook/addon-knobs'
import { generateLibTree } from '@nivo/generators'
import { Sunburst } from '../es'
import { Sunburst } from '../index'

const commonProperties = {
width: 600,
Expand Down
32 changes: 32 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@
babel-plugin-transform-object-rest-spread "^6.26.0"
babel-plugin-transform-react-jsx "^6.24.1"

"@nivo/generators@^0.33.0":
version "0.33.0"
resolved "https://registry.yarnpkg.com/@nivo/generators/-/generators-0.33.0.tgz#1e0c01fba6f637a839aa05cd364315bc3dbcc741"
dependencies:
d3-time "^1.0.7"
d3-time-format "^2.0.5"
lodash.random "^3.2.0"
lodash.range "^3.2.0"
lodash.shuffle "^4.2.0"

"@storybook/addon-actions@^3.2.17":
version "3.2.17"
resolved "https://registry.yarnpkg.com/@storybook/addon-actions/-/addon-actions-3.2.17.tgz#e85d38f743125157fdaf6669708e089bc2008e50"
Expand Down Expand Up @@ -2617,6 +2627,16 @@ currently-unhandled@^0.4.1:
dependencies:
array-find-index "^1.0.1"

d3-time-format@^2.0.5:
version "2.1.1"
resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.1.1.tgz#85b7cdfbc9ffca187f14d3c456ffda268081bb31"
dependencies:
d3-time "1"

d3-time@1, d3-time@^1.0.7:
version "1.0.8"
resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.0.8.tgz#dbd2d6007bf416fe67a76d17947b784bffea1e84"

d@1:
version "1.0.0"
resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f"
Expand Down Expand Up @@ -4990,6 +5010,18 @@ lodash.pick@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3"

lodash.random@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/lodash.random/-/lodash.random-3.2.0.tgz#96e24e763333199130d2c9e2fd57f91703cc262d"

lodash.range@^3.2.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d"

lodash.shuffle@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.shuffle/-/lodash.shuffle-4.2.0.tgz#145b5053cf875f6f5c2a33f48b6e9948c6ec7b4b"

lodash.some@^4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash.some/-/lodash.some-4.6.0.tgz#1bb9f314ef6b8baded13b549169b2a945eb68e4d"
Expand Down

0 comments on commit d3abafd

Please sign in to comment.