1
- import { ButtonProps } from '@bluebase/components' ;
1
+ import { Button , /* ButtonProps*/ } from '@bluebase/components' ;
2
2
import React from 'react' ;
3
3
import { action } from '@storybook/addon-actions' ;
4
- import { getComponent } from '@bluebase/core' ;
4
+ // import { getComponent } from '@bluebase/core';
5
5
import storiesOf from '@bluebase/storybook-addon' ;
6
6
import { withInfo } from '@storybook/addon-info' ;
7
7
import { withKnobs } from '@storybook/addon-knobs' ;
8
8
9
- const Button = getComponent < ButtonProps > ( 'Button' ) ;
9
+ // const Button = getComponent<ButtonProps>('Button');
10
10
11
11
const stories = storiesOf ( 'Button' , module ) ;
12
12
@@ -15,109 +15,109 @@ stories.addDecorator(withKnobs);
15
15
16
16
stories
17
17
18
- . add ( 'Contained Buttons' , ( ) => (
19
- < React . Fragment >
20
- < Button variant = "contained" onPress = { action ( 'button-press' ) } >
21
- Default
18
+ . add ( 'Contained Buttons' , ( ) => (
19
+ < React . Fragment >
20
+ < Button variant = "contained" onPress = { action ( 'button-press' ) } >
21
+ Default
22
22
</ Button >
23
- < Button variant = "contained" color = "primary" onPress = { action ( 'button-press' ) } >
24
- Primary
23
+ < Button variant = "contained" color = "primary" onPress = { action ( 'button-press' ) } >
24
+ Primary
25
25
</ Button >
26
- < Button variant = "contained" color = "secondary" onPress = { action ( 'button-press' ) } >
27
- Secondary
26
+ < Button variant = "contained" color = "secondary" onPress = { action ( 'button-press' ) } >
27
+ Secondary
28
28
</ Button >
29
- < Button variant = "contained" color = "secondary" disabled onPress = { action ( 'button-press' ) } >
30
- Disabled
29
+ < Button variant = "contained" color = "secondary" disabled onPress = { action ( 'button-press' ) } >
30
+ Disabled
31
31
</ Button >
32
- < Button variant = "contained" onPress = { action ( 'button-press' ) } >
33
- Link
32
+ < Button variant = "contained" onPress = { action ( 'button-press' ) } >
33
+ Link
34
34
</ Button >
35
- </ React . Fragment >
36
- ) )
35
+ </ React . Fragment >
36
+ ) )
37
37
38
- . add ( 'Text Buttons' , ( ) => (
39
- < React . Fragment >
40
- < Button > Default</ Button >
41
- < Button color = "primary" >
42
- Primary
38
+ . add ( 'Text Buttons' , ( ) => (
39
+ < React . Fragment >
40
+ < Button > Default</ Button >
41
+ < Button color = "primary" >
42
+ Primary
43
43
</ Button >
44
- < Button color = "secondary" >
45
- Secondary
44
+ < Button color = "secondary" >
45
+ Secondary
46
46
</ Button >
47
- < Button disabled >
48
- Disabled
47
+ < Button disabled >
48
+ Disabled
49
49
</ Button >
50
- < Button >
51
- Link
50
+ < Button >
51
+ Link
52
52
</ Button >
53
- </ React . Fragment >
54
- ) )
53
+ </ React . Fragment >
54
+ ) )
55
55
56
- . add ( 'Outlined Buttons' , ( ) => (
57
- < React . Fragment >
58
- < Button variant = "outlined" >
59
- Default
56
+ . add ( 'Outlined Buttons' , ( ) => (
57
+ < React . Fragment >
58
+ < Button variant = "outlined" >
59
+ Default
60
60
</ Button >
61
- < Button variant = "outlined" color = "primary" >
62
- Primary
61
+ < Button variant = "outlined" color = "primary" >
62
+ Primary
63
63
</ Button >
64
- < Button variant = "outlined" color = "secondary" >
65
- Secondary
64
+ < Button variant = "outlined" color = "secondary" >
65
+ Secondary
66
66
</ Button >
67
- < Button variant = "outlined" disabled >
68
- Disabled
67
+ < Button variant = "outlined" disabled >
68
+ Disabled
69
69
</ Button >
70
- < Button variant = "outlined" >
71
- Link
70
+ < Button variant = "outlined" >
71
+ Link
72
72
</ Button >
73
- </ React . Fragment >
74
- ) )
73
+ </ React . Fragment >
74
+ ) )
75
75
76
- . add ( 'Sizes' , ( ) => (
77
- < React . Fragment >
78
- < Button size = "small" >
79
- Small
76
+ . add ( 'Sizes' , ( ) => (
77
+ < React . Fragment >
78
+ < Button size = "small" >
79
+ Small
80
80
</ Button >
81
- < Button size = "medium" >
82
- Medium
81
+ < Button size = "medium" >
82
+ Medium
83
83
</ Button >
84
- < Button size = "large" >
85
- Large
84
+ < Button size = "large" >
85
+ Large
86
86
</ Button >
87
- < Button variant = "outlined" size = "small" color = "primary" >
88
- Small
87
+ < Button variant = "outlined" size = "small" color = "primary" >
88
+ Small
89
89
</ Button >
90
- < Button variant = "outlined" size = "medium" color = "primary" >
91
- Medium
90
+ < Button variant = "outlined" size = "medium" color = "primary" >
91
+ Medium
92
92
</ Button >
93
- < Button variant = "outlined" size = "large" color = "primary" >
94
- Large
93
+ < Button variant = "outlined" size = "large" color = "primary" >
94
+ Large
95
95
</ Button >
96
- < Button variant = "contained" size = "small" color = "primary" >
97
- Small
96
+ < Button variant = "contained" size = "small" color = "primary" >
97
+ Small
98
98
</ Button >
99
- < Button variant = "contained" size = "medium" color = "primary" >
100
- Medium
99
+ < Button variant = "contained" size = "medium" color = "primary" >
100
+ Medium
101
101
</ Button >
102
- < Button variant = "contained" size = "large" color = "primary" >
103
- Large
102
+ < Button variant = "contained" size = "large" color = "primary" >
103
+ Large
104
104
</ Button >
105
- </ React . Fragment >
106
- ) )
105
+ </ React . Fragment >
106
+ ) )
107
107
108
108
109
- . add ( 'Width' , ( ) => (
110
- < React . Fragment >
111
- < Button color = "primary" > Normal</ Button >
112
- < Button color = "primary" fullWidth = { true } > Full Width</ Button >
113
- </ React . Fragment >
114
- ) )
109
+ . add ( 'Width' , ( ) => (
110
+ < React . Fragment >
111
+ < Button color = "primary" > Normal</ Button >
112
+ < Button color = "primary" fullWidth = { true } > Full Width</ Button >
113
+ </ React . Fragment >
114
+ ) )
115
115
116
116
117
- . add ( 'Title Prop' , ( ) => (
118
- < React . Fragment >
119
- < Button color = "primary" title = "Contained" variant = "contained" />
120
- < Button color = "secondary" title = "Outlined" variant = "outlined" />
121
- < Button color = "primary" title = "Text" variant = "text" />
122
- </ React . Fragment >
123
- ) ) ;
117
+ . add ( 'Title Prop' , ( ) => (
118
+ < React . Fragment >
119
+ < Button color = "primary" title = "Contained" variant = "contained" />
120
+ < Button color = "secondary" title = "Outlined" variant = "outlined" />
121
+ < Button color = "primary" title = "Text" variant = "text" />
122
+ </ React . Fragment >
123
+ ) ) ;
0 commit comments