File tree 3 files changed +18
-30
lines changed
3 files changed +18
-30
lines changed Original file line number Diff line number Diff line change 1
- const path = require ( ' path' )
1
+ const path = require ( " path" )
2
2
3
3
module . exports = {
4
- "stories" : [
5
- "../site/**/*.stories.mdx" ,
6
- "../site/**/*.stories.@(js|jsx|ts|tsx)"
7
- ] ,
8
- "addons" : [
9
- "@storybook/addon-links" ,
10
- "@storybook/addon-essentials" ,
11
- ] ,
12
- babel : async ( options ) => ( {
4
+ stories : [ "../site/**/*.stories.mdx" , "../site/**/*.stories.@(js|jsx|ts|tsx)" ] ,
5
+ addons : [ "@storybook/addon-links" , "@storybook/addon-essentials" ] ,
6
+ babel : async ( options ) => ( {
13
7
...options ,
14
- " plugins" : [ "@babel/plugin-proposal-class-properties" ]
8
+ plugins : [ "@babel/plugin-proposal-class-properties" ] ,
15
9
// any extra options you want to set
16
10
} ) ,
17
11
webpackFinal : async ( config ) => {
18
- config . resolve . modules = [
19
- path . resolve ( __dirname , ".." ) ,
20
- "node_modules" ,
21
- ]
12
+ config . resolve . modules = [ path . resolve ( __dirname , ".." ) , "node_modules" ]
22
13
23
- return config ;
24
- }
25
- }
14
+ return config
15
+ } ,
16
+ }
Original file line number Diff line number Diff line change 1
1
import ThemeProvider from "@material-ui/styles/ThemeProvider"
2
- import { withThemes } from ' @react-theming/storybook-addon'
3
- import { light , dark } from ' ../site/theme'
4
- import { addDecorator } from ' node_modules/@storybook/react'
2
+ import { withThemes } from " @react-theming/storybook-addon"
3
+ import { light , dark } from " ../site/theme"
4
+ import { addDecorator } from " node_modules/@storybook/react"
5
5
6
- addDecorator ( withThemes (
7
- ThemeProvider ,
8
- [ light , dark ]
9
- ) )
6
+ addDecorator ( withThemes ( ThemeProvider , [ light , dark ] ) )
10
7
11
8
export const parameters = {
12
- actions : {
9
+ actions : {
13
10
argTypesRegex : "^on[A-Z].*" ,
14
11
argTypesRegex : "^handle[A-Z].*" ,
15
- } ,
12
+ } ,
16
13
controls : {
17
14
expanded : true ,
18
15
matchers : {
19
16
color : / ( b a c k g r o u n d | c o l o r ) $ / i,
20
17
date : / D a t e $ / ,
21
18
} ,
22
19
} ,
23
- }
20
+ }
Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ Loading.args = {
22
22
export const NotLoading = Template . bind ( { } )
23
23
NotLoading . args = {
24
24
variant : "contained" ,
25
- loading : false
26
- }
25
+ loading : false ,
26
+ }
You can’t perform that action at this time.
0 commit comments