Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade storybook #267

Merged
merged 2 commits into from
Jun 5, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Upgrade storybook
  • Loading branch information
diegohaz committed Jun 3, 2017
commit 68bcfe4309fb023e59ef0f7b7596e1a13bfe3b64
7,675 changes: 0 additions & 7,675 deletions package-lock.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
}
},
"devDependencies": {
"@kadira/storybook": "^2.35.2",
"@storybook/addon-actions": "^3.0.0",
"@storybook/react": "^3.0.0",
"@webpack-blocks/dev-server2": "^0.4.0",
"@webpack-blocks/webpack2": "^0.4.0",
"babel-core": "^6.24.1",
Expand Down
2 changes: 1 addition & 1 deletion private/storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://github.com/diegohaz/arc/wiki/Storybook
import React from 'react'
import { configure, addDecorator } from '@kadira/storybook'
import { configure, addDecorator } from '@storybook/react'
import { BrowserRouter } from 'react-router-dom'
import { ThemeProvider } from 'styled-components'
import theme from 'components/themes/default'
Expand Down
8 changes: 4 additions & 4 deletions private/storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const baseConfig = require('../../webpack.config')

module.exports = storybookBaseConfig =>
Object.assign({}, storybookBaseConfig, {
resolve: {
modulesDirectories: baseConfig.resolve.modules,
},
resolve: Object.assign({}, storybookBaseConfig.resolve, {
modules: baseConfig.resolve.modules,
}),
module: Object.assign({}, storybookBaseConfig.module, {
loaders: storybookBaseConfig.module.loaders.concat(baseConfig.module.rules.slice(1)),
rules: storybookBaseConfig.module.rules.concat(baseConfig.module.rules.slice(1)),
}),
})
2 changes: 1 addition & 1 deletion src-example/components/atoms/Atom/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Atom from '.'

storiesOf('Atom', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Badge/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Badge from '.'

storiesOf('Badge', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Block/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Block from '.'

storiesOf('Block', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Button/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Button from '.'

storiesOf('Button', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Caption/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Caption from '.'

storiesOf('Caption', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Heading/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Heading from '.'

storiesOf('Heading', module)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import HorizontalRule from '.'

storiesOf('HorizontalRule', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Icon/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://github.com/diegohaz/arc/wiki/Example-components#icon
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Icon from '.'

storiesOf('Icon', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Input/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Input from '.'

storiesOf('Input', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Label/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Label from '.'

storiesOf('Label', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Link/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Link from '.'

storiesOf('Link', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/List/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import List from '.'

storiesOf('List', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/LogoImage/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import LogoImage from '.'

storiesOf('LogoImage', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Paragraph/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Paragraph from '.'

storiesOf('Paragraph', module)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import PreformattedText from '.'

storiesOf('PreformattedText', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Spinner/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Spinner from '.'

storiesOf('Spinner', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/TableCell/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import TableCell from '.'

storiesOf('TableCell', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/TableRow/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import TableRow from '.'

storiesOf('TableRow', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/atoms/Tooltip/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import Tooltip from '.'

storiesOf('Tooltip', module)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Blockquote } from 'components'

storiesOf('Blockquote', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/molecules/Feature/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Feature } from 'components'

storiesOf('Feature', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/molecules/Field/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Field } from 'components'

storiesOf('Field', module)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { IconButton } from 'components'

storiesOf('IconButton', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/molecules/IconLink/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { IconLink } from 'components'

storiesOf('IconLink', module)
Expand Down
3 changes: 2 additions & 1 deletion src-example/components/molecules/Modal/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import { Modal } from 'components'

storiesOf('Modal', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/molecules/Molecule/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Molecule } from 'components'

storiesOf('Molecule', module)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { PrimaryNavigation } from 'components'

storiesOf('PrimaryNavigation', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/molecules/Slider/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Slider } from 'components'

storiesOf('Slider', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/molecules/Table/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Table } from 'components'

storiesOf('Table', module)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { FeatureList } from 'components'

storiesOf('FeatureList', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/organisms/Footer/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Footer } from 'components'

storiesOf('Footer', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/organisms/Header/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Header } from 'components'

storiesOf('Header', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/organisms/Hero/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Hero } from 'components'

storiesOf('Hero', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/organisms/Organism/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { Organism } from 'components'

storiesOf('Organism', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/pages/GenericPage/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { GenericPage } from 'components'

storiesOf('GenericPage', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/pages/HomePage/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://github.com/diegohaz/arc/wiki/Storybook
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { HomePage } from 'components'

storiesOf('HomePage', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/pages/NotFoundPage/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { NotFoundPage } from 'components'

storiesOf('NotFoundPage', module)
Expand Down
2 changes: 1 addition & 1 deletion src-example/components/pages/SamplePage/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { SamplePage } from 'components'

storiesOf('SamplePage', module)
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/HomePage/index.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://github.com/diegohaz/arc/wiki/Storybook
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { storiesOf } from '@storybook/react'
import { HomePage } from 'components'

storiesOf('HomePage', module)
Expand Down
Loading