Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
update to storybook 3 (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
hharnisc authored Jun 13, 2017
1 parent 5765cb5 commit 416e6e2
Show file tree
Hide file tree
Showing 31 changed files with 44 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import '@kadira/storybook/addons';
import '@storybook/addon-actions/register';
import 'storybook-addon-a11y/register';
2 changes: 1 addition & 1 deletion .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { configure } from '@kadira/storybook';
import { configure } from '@storybook/react';

// automatically import all story.js files
const req = require.context('../', true, /story\.jsx$/);
Expand Down
File renamed without changes.
6 changes: 2 additions & 4 deletions Button/story.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import {
action,
storiesOf,
} from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { checkA11y } from 'storybook-addon-a11y';
import Button from './index';
import CloseIcon from '../Icon/Icons/CloseIcon';
Expand Down
6 changes: 2 additions & 4 deletions ButtonStateless/story.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import {
storiesOf,
action,
} from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { checkA11y } from 'storybook-addon-a11y';
import Button from './index';
import Text from '../Text';
Expand Down
6 changes: 2 additions & 4 deletions Card/story.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import {
storiesOf,
action,
} from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { checkA11y } from 'storybook-addon-a11y';
import Card from './index';
import Link from '../Link';
Expand Down
2 changes: 1 addition & 1 deletion Icon/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import AddMediaIcon from './Icons/AddMediaIcon';
import AnalyticsIcon from './Icons/AnalyticsIcon';
Expand Down
2 changes: 1 addition & 1 deletion IdTag/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import IdTag from './index';

Expand Down
2 changes: 1 addition & 1 deletion Image/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import Image from './index';

Expand Down
3 changes: 2 additions & 1 deletion Input/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import Input from './index';

Expand Down
6 changes: 2 additions & 4 deletions InputDate/story.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import {
storiesOf,
action,
} from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { checkA11y } from 'storybook-addon-a11y';
import InputDate from './index';

Expand Down
3 changes: 2 additions & 1 deletion InputEmail/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import InputEmail from './index';

Expand Down
3 changes: 2 additions & 1 deletion InputPassword/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import InputPassword from './index';

Expand Down
6 changes: 2 additions & 4 deletions InputTime/story.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import {
storiesOf,
action,
} from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { checkA11y } from 'storybook-addon-a11y';
import InputTime from './index';

Expand Down
4 changes: 1 addition & 3 deletions Link/story.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react';
import {
storiesOf,
} from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import { checkA11y } from 'storybook-addon-a11y';
import Link from './index';

Expand Down
6 changes: 2 additions & 4 deletions LinkStateless/story.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import {
storiesOf,
action,
} from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { checkA11y } from 'storybook-addon-a11y';
import LinkStateless from './index';

Expand Down
2 changes: 1 addition & 1 deletion LinkifiedText/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import LinkifiedText from './index';

Expand Down
2 changes: 1 addition & 1 deletion List/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import List from './index';

Expand Down
2 changes: 1 addition & 1 deletion ListItem/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import ListItem from './index';

Expand Down
2 changes: 1 addition & 1 deletion Loader/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import Loader from './index';

Expand Down
2 changes: 1 addition & 1 deletion MultipleImages/story.jsx
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 MultipleImages from './index';

storiesOf('MultipleImages')
Expand Down
2 changes: 1 addition & 1 deletion NavBar/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import NavBar from './index';

Expand Down
3 changes: 2 additions & 1 deletion Overlay/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import Overlay from './index';
import Image from '../Image';
Expand Down
3 changes: 2 additions & 1 deletion Popover/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import Popover from './index';
import Card from '../Card';
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ populate **story.js** with a default story
```js
// story.js
import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import NewComponent from './index';

storiesOf('Card')
Expand Down
4 changes: 1 addition & 3 deletions SectionHeader/story.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react';
import {
storiesOf,
} from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import { checkA11y } from 'storybook-addon-a11y';
import SectionHeader from './index';

Expand Down
4 changes: 1 addition & 3 deletions Select/story.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react';
import {
storiesOf,
} from '@kadira/storybook';
import { storiesOf } from '@storybook/react';
import { checkA11y } from 'storybook-addon-a11y';
import Select from './index';

Expand Down
2 changes: 1 addition & 1 deletion Text/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import Text from './index';

Expand Down
2 changes: 1 addition & 1 deletion Video/story.jsx
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 { checkA11y } from 'storybook-addon-a11y';
import Video from './index';

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@
"react": ">= 0.14.0"
},
"devDependencies": {
"@kadira/storybook": "2.35.3",
"@kadira/storybook-deployer": "1.2.0",
"@storybook/addon-actions": "3.1.2",
"@storybook/addon-storyshots": "3.1.2",
"@storybook/react": "3.1.3",
"babel-cli": "6.24.1",
"babel-eslint": "7.2.3",
"babel-jest": "20.0.3",
Expand All @@ -58,8 +60,7 @@
"react-addons-test-utils": "15.5.1",
"react-dom": "15.5.4",
"react-test-renderer": "15.5.4",
"storybook-addon-a11y": "0.0.4",
"storyshots": "3.2.2",
"storybook-addon-a11y": "3.0.0",
"style-loader": "0.18.1"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion snapshot.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// use story.js files as snapshots
import initStoryshots from 'storyshots';
import initStoryshots from '@storybook/addon-storyshots';

initStoryshots({
suit: 'Snapshots',
Expand Down

0 comments on commit 416e6e2

Please sign in to comment.