@@ -22,11 +22,7 @@ setOptions({
22
22
} ) ;
23
23
24
24
storiesOf ( "Elements/Field" , module )
25
- . addDecorator ( story => (
26
- < div className = "pure-form" >
27
- { story ( ) }
28
- </ div >
29
- ) )
25
+ . addDecorator ( story => < div className = "pure-form" > { story ( ) } </ div > )
30
26
. addDecorator (
31
27
host ( {
32
28
align : "center middle"
@@ -48,22 +44,21 @@ storiesOf("Elements/Field", module)
48
44
return < FieldElementWidget livetype = { true } valueChangedEvent = { action ( "event" ) } /> ;
49
45
} )
50
46
. add ( "As TextArea" , ( ) => {
51
- return (
52
- < FieldElementWidget textArea = { true } value = "Test value" />
53
- )
47
+ return < FieldElementWidget textArea = { true } value = "Test value" /> ;
54
48
} )
55
49
. add ( "As TextArea area with live type" , ( ) => {
56
50
return (
57
- < FieldElementWidget textArea = { true } livetype = { true } valueChangedEvent = { action ( "event" ) } value = "Test value" />
58
- )
51
+ < FieldElementWidget
52
+ textArea = { true }
53
+ livetype = { true }
54
+ valueChangedEvent = { action ( "event" ) }
55
+ value = "Test value"
56
+ />
57
+ ) ;
59
58
} ) ;
60
59
61
60
storiesOf ( "Elements/Checkbox" , module )
62
- . addDecorator ( story => (
63
- < div className = "pure-form" >
64
- { story ( ) }
65
- </ div >
66
- ) )
61
+ . addDecorator ( story => < div className = "pure-form" > { story ( ) } </ div > )
67
62
. addDecorator (
68
63
host ( {
69
64
align : "center middle"
@@ -80,39 +75,40 @@ storiesOf("Elements/Checkbox", module)
80
75
} ) ;
81
76
82
77
storiesOf ( "Elements/Select" , module )
83
- . addDecorator ( story => (
84
- < div className = "pure-form" >
85
- { story ( ) }
86
- </ div >
87
- ) )
78
+ . addDecorator ( story => < div className = "pure-form" > { story ( ) } </ div > )
88
79
. addDecorator (
89
80
host ( {
90
- align : "center middle" ,
81
+ align : "center middle"
91
82
} )
92
83
)
93
84
. add ( "Set" , ( ) => {
94
- return < SelectElementWidget groups = { [ ' Apple' , ' Peach' , ' Lemon' ] } /> ;
85
+ return < SelectElementWidget groups = { [ " Apple" , " Peach" , " Lemon" ] } /> ;
95
86
} )
96
87
. add ( "Set with value" , ( ) => {
97
- return < SelectElementWidget groups = { [ ' Apple' , ' Peach' , ' Lemon' ] } value = "Peach" /> ;
88
+ return < SelectElementWidget groups = { [ " Apple" , " Peach" , " Lemon" ] } value = "Peach" /> ;
98
89
} )
99
90
. add ( "Set in groups" , ( ) => {
100
- return < SelectElementWidget groups = { { "Group 1" : [ ' Apple' , ' Peach' ] , "Group 2" : [ ' Lemon' ] } } /> ;
91
+ return < SelectElementWidget groups = { { "Group 1" : [ " Apple" , " Peach" ] , "Group 2" : [ " Lemon" ] } } /> ;
101
92
} )
102
93
. add ( "Set in groups with value" , ( ) => {
103
- return < SelectElementWidget groups = { { "Group 1" : [ ' Apple' , ' Peach' ] , "Group 2" : [ ' Lemon' ] } } value = "Lemon" /> ;
94
+ return < SelectElementWidget groups = { { "Group 1" : [ " Apple" , " Peach" ] , "Group 2" : [ " Lemon" ] } } value = "Lemon" /> ;
104
95
} )
105
96
. add ( "Map" , ( ) => {
106
- return < SelectElementWidget groups = { { 'a' : ' Apple' , 'b' : ' Peach' , 'c' : ' Lemon' } } /> ;
97
+ return < SelectElementWidget groups = { { a : " Apple" , b : " Peach" , c : " Lemon" } } /> ;
107
98
} )
108
99
. add ( "Map with value" , ( ) => {
109
- return < SelectElementWidget groups = { { 'a' : ' Apple' , 'b' : ' Peach' , 'c' : ' Lemon' } } value = "c" /> ;
100
+ return < SelectElementWidget groups = { { a : " Apple" , b : " Peach" , c : " Lemon" } } value = "c" /> ;
110
101
} )
111
102
. add ( "Map in groups" , ( ) => {
112
- return < SelectElementWidget groups = { { "Group 1" : { 'a' : ' Apple' , 'b' : ' Peach' } , "Group 2" : { 'c' : ' Lemon' } } } /> ;
103
+ return < SelectElementWidget groups = { { "Group 1" : { a : " Apple" , b : " Peach" } , "Group 2" : { c : " Lemon" } } } /> ;
113
104
} )
114
105
. add ( "Map in groups with value" , ( ) => {
115
- return < SelectElementWidget groups = { { "Group 1" : { 'a' : 'Apple' , 'b' : 'Peach' } , "Group 2" : { 'c' : 'Lemon' } } } value = "c" /> ;
106
+ return (
107
+ < SelectElementWidget
108
+ groups = { { "Group 1" : { a : "Apple" , b : "Peach" } , "Group 2" : { c : "Lemon" } } }
109
+ value = "c"
110
+ />
111
+ ) ;
116
112
} ) ;
117
113
118
114
storiesOf ( "Forms" , module )
@@ -167,12 +163,16 @@ storiesOf("Forms", module)
167
163
storiesOf ( "Forms/Binded" , module )
168
164
. addDecorator (
169
165
host ( {
170
- align : "center middle" ,
166
+ align : "center middle"
171
167
} )
172
168
)
173
169
. add ( "Binded Form" , ( ) => {
174
170
return (
175
- < FormWidget className = "pure-form" value = { { Name : "Dylan" , Surname : "Vorster" } } formSubmitEvent = { action ( "formSubmitEvent" ) } >
171
+ < FormWidget
172
+ className = "pure-form"
173
+ value = { { Name : "Dylan" , Surname : "Vorster" } }
174
+ formSubmitEvent = { action ( "formSubmitEvent" ) }
175
+ >
176
176
< TableLayoutWidget >
177
177
< FieldElementWidget name = "Name" />
178
178
< FieldElementWidget name = "Surname" />
0 commit comments