Skip to content

Commit 94239b5

Browse files
Merge pull request #3 from commitd/storybook-fix
Fix storybook
2 parents a545a73 + b133de5 commit 94239b5

File tree

5 files changed

+703
-1213
lines changed

5 files changed

+703
-1213
lines changed

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,30 @@
4141
},
4242
"dependencies": {
4343
"@material-ui/core": "^4.3.2",
44-
"@material-ui/icons": "^4.2.1",
4544
"@material-ui/styles": "^4.3.0",
4645
"@styled-system/theme-get": "^5.0.12",
4746
"clsx": "^1.0.4"
4847
},
4948
"peerDependencies": {
49+
"@material-ui/icons": "^4.2.1",
5050
"prop-types": "^15.5.4",
5151
"react": "^15.0.0 || ^16.0.0",
5252
"react-dom": "^15.0.0 || ^16.0.0"
5353
},
5454
"devDependencies": {
5555
"@babel/core": "^7.5.5",
5656
"@compositor/kit": "^1.0.47",
57-
"@storybook/addon-a11y": "^5.2.0-beta.40",
58-
"@storybook/addon-actions": "^5.2.0-beta.40",
59-
"@storybook/addon-docs": "^5.2.0-beta.40",
60-
"@storybook/addon-info": "^5.2.0-beta.40",
61-
"@storybook/addon-knobs": "^5.2.0-beta.40",
62-
"@storybook/addon-links": "^5.2.0-beta.40",
63-
"@storybook/addon-storysource": "^5.2.0-beta.40",
64-
"@storybook/addons": "^5.2.0-beta.40",
65-
"@storybook/react": "^5.2.0-beta.40",
66-
"@storybook/source-loader": "^5.2.0-beta.40",
57+
"@material-ui/icons": "^4.2.1",
58+
"@storybook/addon-a11y": "^5.2.0-rc.5",
59+
"@storybook/addon-actions": "^5.2.0-rc.5",
60+
"@storybook/addon-docs": "^5.2.0-rc.5",
61+
"@storybook/addon-info": "^5.2.0-rc.5",
62+
"@storybook/addon-knobs": "^5.2.0-rc.5",
63+
"@storybook/addon-links": "^5.2.0-rc.5",
64+
"@storybook/addon-storysource": "^5.2.0-rc.5",
65+
"@storybook/addons": "^5.2.0-rc.5",
66+
"@storybook/react": "^5.2.0-rc.5",
67+
"@storybook/source-loader": "^5.2.0-rc.5",
6768
"@svgr/rollup": "^2.4.1",
6869
"@types/jest": "^23.1.5",
6970
"@types/react": "^16.3.13",

src/stories/components/button.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks'
99
Buttons make common actions immediately visible and easy to perform with one click or tap. They can be used for any type of action, including navigation.
1010

1111
<Preview>
12-
<Story name="default">
12+
<Story name="simple">
1313
<Button margin={2}>Hello</Button>
1414
</Story>
1515
</Preview>

src/stories/components/icon.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Icon, Icons } from '../../'
1+
import { Icons } from '../../'
22
import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks'
33

4-
<Meta title="components|Icon" component={Icon} />
4+
<Meta title="components|Icons" component={Icons} />
55

66
# Icon
77

@@ -16,4 +16,4 @@ import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks'
1616

1717
## Props
1818

19-
<Props of={Icon} />
19+
<Props of={Icons.Delete} />

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var config = {
1919
path: PATHS.bundles,
2020
filename: '[name].js',
2121
libraryTarget: 'umd',
22-
library: '@committed/components',
22+
library: '@committd/components',
2323
umdNamedDefine: true
2424
},
2525
// Add resolve for `tsx` and `ts` files, otherwise Webpack would

0 commit comments

Comments
 (0)