Skip to content

Commit

Permalink
Merge pull request #1266 from storybooks/add-lib-components
Browse files Browse the repository at this point in the history
Add lib components
  • Loading branch information
ndelangen authored Jun 16, 2017
2 parents b244f99 + 0be8829 commit 40858bf
Show file tree
Hide file tree
Showing 52 changed files with 195 additions and 1,544 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build
coverage
node_modules
**/example/**
**/demo/**
app/**/demo/**
docs/public

*.bundle.js
Expand Down
4 changes: 4 additions & 0 deletions addons/storyshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"read-pkg-up": "^2.0.0"
},
"devDependencies": {
"@storybook/addons": "^3.0.0",
"@storybook/channels": "^3.0.0",
"@storybook/components": "^3.0.0",
"babel-cli": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
Expand All @@ -30,6 +33,7 @@
"peerDependencies": {
"@storybook/addons": "^3.0.0",
"@storybook/channels": "^3.0.0",
"@storybook/components": "^3.0.0",
"babel-core": "^6.24.1",
"react": "*",
"react-test-renderer": "*"
Expand Down
28 changes: 0 additions & 28 deletions addons/storyshots/stories/directly_required/Button.js

This file was deleted.

4 changes: 3 additions & 1 deletion addons/storyshots/stories/directly_required/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React from 'react';

import { storiesOf } from '@storybook/react'; // eslint-disable-line
import { action } from '@storybook/addon-actions'; // eslint-disable-line
import Button from './Button';

import Button from '@storybook/components/dist/demo/Button';

storiesOf('Another Button', module)
.add('with text', () => <Button onClick={action('clicked')}>Hello Button</Button>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { storiesOf } from '@storybook/react'; // eslint-disable-line
import { action } from '@storybook/addon-actions'; // eslint-disable-line

import Button from './Button';
import Button from '@storybook/components/dist/demo/Button';

storiesOf('Button', module)
.add('with text', () => <Button onClick={action('clicked')}>Hello Button</Button>)
Expand Down
127 changes: 0 additions & 127 deletions addons/storyshots/stories/required_with_context/Welcome.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import React from 'react';
import { storiesOf } from '@storybook/react'; // eslint-disable-line
import { linkTo } from '@storybook/addon-links'; // eslint-disable-line

import Welcome from './Welcome';
import Welcome from '@storybook/components/dist/demo/Welcome';

storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo('Button')} />);
1 change: 1 addition & 0 deletions app/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@storybook/addon-links": "^3.1.2",
"@storybook/addons": "^3.1.2",
"@storybook/channel-websocket": "^3.1.2",
"@storybook/components": "^3.0.0",
"@storybook/ui": "^3.1.3",
"autoprefixer": "^7.0.1",
"babel-core": "^6.24.1",
Expand Down
15 changes: 0 additions & 15 deletions app/react/demo/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions app/react/demo/.storybook/addons.js

This file was deleted.

7 changes: 0 additions & 7 deletions app/react/demo/.storybook/config.js

This file was deleted.

3 changes: 0 additions & 3 deletions app/react/demo/README.md

This file was deleted.

25 changes: 0 additions & 25 deletions app/react/demo/package.json

This file was deleted.

Binary file removed app/react/demo/public/favicon.ico
Binary file not shown.
31 changes: 0 additions & 31 deletions app/react/demo/public/index.html

This file was deleted.

24 changes: 0 additions & 24 deletions app/react/demo/src/App.css

This file was deleted.

21 changes: 0 additions & 21 deletions app/react/demo/src/App.js

This file was deleted.

8 changes: 0 additions & 8 deletions app/react/demo/src/App.test.js

This file was deleted.

5 changes: 0 additions & 5 deletions app/react/demo/src/index.css

This file was deleted.

6 changes: 0 additions & 6 deletions app/react/demo/src/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions app/react/demo/src/logo.svg

This file was deleted.

Loading

0 comments on commit 40858bf

Please sign in to comment.