File tree Expand file tree Collapse file tree 4 files changed +14
-24
lines changed Expand file tree Collapse file tree 4 files changed +14
-24
lines changed Original file line number Diff line number Diff line change 22
22
"devDependencies" : {
23
23
"@babel/core" : " ^7.4.5" ,
24
24
"@storybook/addon-knobs" : " ^5.1.9" ,
25
- "@storybook/addon-options" : " ^5.1.9" ,
26
- "@storybook/components" : " ^5.1.9" ,
27
25
"@storybook/react" : " ^5.1.9" ,
26
+ "@storybook/theming" : " ^5.1.9" ,
28
27
"@types/react" : " ^16.8.22" ,
29
28
"@types/storybook__addon-knobs" : " ^5.0.1" ,
30
29
"@types/storybook__react" : " ^4.0.2" ,
Original file line number Diff line number Diff line change 1
1
import '@storybook/addon-knobs/register'
2
- import '@storybook/addon-options/register'
Original file line number Diff line number Diff line change 1
1
import { withKnobs } from '@storybook/addon-knobs'
2
- import { withOptions } from '@storybook/addon-options'
3
- import { themes } from '@storybook/components'
4
- import { addDecorator , configure } from '@storybook/react'
2
+ import { addDecorator , addParameters , configure } from '@storybook/react'
3
+ import { themes } from '@storybook/theming'
5
4
import { injectGlobal } from 'emotion'
6
5
import React from 'react'
7
6
import { css } from 'react-emotion'
@@ -26,13 +25,15 @@ injectGlobal({
26
25
} ,
27
26
} )
28
27
29
- addDecorator (
30
- withOptions ( {
31
- name : 'react responsive layout' ,
32
- url : 'https://github.com/mmmurray/react-responsive-layout' ,
33
- theme : themes . dark ,
34
- } ) ,
35
- )
28
+ addParameters ( {
29
+ options : {
30
+ theme : {
31
+ ...themes . dark ,
32
+ brandTitle : 'react-responsive-layout' ,
33
+ brandUrl : 'https://github.com/mmmurray/react-responsive-layout' ,
34
+ } ,
35
+ } ,
36
+ } )
36
37
37
38
addDecorator ( story => < CSSProvider value = { { css } } > { story ( ) } </ CSSProvider > )
38
39
Original file line number Diff line number Diff line change 1984
1984
react-lifecycles-compat "^3.0.4"
1985
1985
react-select "^2.2.0"
1986
1986
1987
- "@storybook/addon-options@^5.1.9":
1988
- version "5.1.9"
1989
- resolved "https://registry.yarnpkg.com/@storybook/addon-options/-/addon-options-5.1.9.tgz#dc326b94c52a7ee27bf948fb7ca63a6ea3c9736d"
1990
- integrity sha512-wQIUw5Uc/5iREtI9eh2wPMlNG0O7jxaTaxGS8Bs6zDzkwiLHcLJCrfk1lPXU6O8ExEzWHpaCmxth8GyfKj8Qtw==
1991
- dependencies:
1992
- "@storybook/addons" "5.1.9"
1993
- core-js "^3.0.1"
1994
- util-deprecate "^1.0.2"
1995
-
1996
1987
"@storybook/addons@5.1.9":
1997
1988
version "5.1.9"
1998
1989
resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-5.1.9.tgz#ecf218d08508b97ca5e6e0f1ed361081385bd3ff"
2071
2062
dependencies:
2072
2063
core-js "^3.0.1"
2073
2064
2074
- "@storybook/components@5.1.9", "@storybook/components@^5.1.9" :
2065
+ "@storybook/components@5.1.9":
2075
2066
version "5.1.9"
2076
2067
resolved "https://registry.yarnpkg.com/@storybook/components/-/components-5.1.9.tgz#2a5258780fff07172d103287759946dbb4b13e2d"
2077
2068
integrity sha512-F4xcRlifSAfqkuFWtCKRvQDahXyfWBWV2Wa+kYy4YGwEfm3kKtIHVlgdgARL22g9BdYpRFEOJ+42juOu5YvIeQ==
2222
2213
memoizerific "^1.11.3"
2223
2214
qs "^6.6.0"
2224
2215
2225
- "@storybook/theming@5.1.9":
2216
+ "@storybook/theming@5.1.9", "@storybook/theming@^5.1.9" :
2226
2217
version "5.1.9"
2227
2218
resolved "https://registry.yarnpkg.com/@storybook/theming/-/theming-5.1.9.tgz#c425f5867fae0db79e01112853b1808332a5f1a2"
2228
2219
integrity sha512-4jIFJwTWVf9tsv27noLoFHlKC2Jl9DHV3q+rxGPU8bTNbufCu4oby82SboO5GAKuS3eu1cxL1YY9pYad9WxfHg==
You can’t perform that action at this time.
0 commit comments