1
1
import React from 'react' ;
2
2
import { addParameters , configure , addDecorator } from '@storybook/react' ;
3
3
import { create } from '@storybook/theming' ;
4
- import GlobalStylesDecorator from './decorator/global-styles' ;
4
+ import { withPerformance } from 'storybook-addon-performance' ;
5
+ import GlobalStylesDecorator from './custom-decorators/global-styles' ;
5
6
// adding css reset - storybook includes a css loader
6
7
import '@atlaskit/css-reset' ;
7
8
import { colors } from '@atlaskit/theme' ;
@@ -24,6 +25,7 @@ addParameters({
24
25
25
26
// Using theme would be good for this, but it looks like theme is just for the chrome around the story
26
27
addDecorator ( GlobalStylesDecorator ) ;
28
+ addDecorator ( withPerformance ) ;
27
29
28
30
// automatically import all files ending in *.stories.js
29
31
const req = require . context ( '../stories/' , true , / .s t o r i e s .j s $ / ) ;
@@ -40,7 +42,8 @@ const table = Object.prototype.hasOwnProperty.call(console, 'table')
40
42
: console . log ;
41
43
42
44
// Generated by: http://patorjk.com/software/taag/#p=display&f=ANSI%20Shadow&t=rbd
43
- console . log ( `%c
45
+ console . log (
46
+ `%c
44
47
██████╗ ██████╗ ██████╗
45
48
██╔══██╗██╔══██╗██╔══██╗
46
49
██████╔╝██████╔╝██║ ██║
@@ -49,7 +52,10 @@ console.log(`%c
49
52
╚═╝ ╚═╝╚═════╝ ╚═════╝
50
53
51
54
%cBeautiful and accessible drag and drop
52
- ` , `color: ${ colors . G200 } ; font-size: 1.2em; font-weight: bold;` , `color: ${ colors . P200 } ; font-size: 1.2em; font-weight: bold;` ) ;
55
+ ` ,
56
+ `color: ${ colors . G200 } ; font-size: 1.2em; font-weight: bold;` ,
57
+ `color: ${ colors . P200 } ; font-size: 1.2em; font-weight: bold;` ,
58
+ ) ;
53
59
54
60
table ( [
55
61
[ 'react-beautiful-dnd version' , version ] ,
0 commit comments