@@ -52,6 +52,9 @@ type StoryType = StoryObj<typeof Form>;
52
52
53
53
export const AllInputs : StoryType = ( { ...props } ) => (
54
54
< CarbonProvider validationRedesignOptIn >
55
+ < Textbox label = "Outside of Form" characterLimit = { 100 } />
56
+ < Textbox label = "Outside of Form" characterLimit = { 100 } />
57
+ < Hr />
55
58
< Form
56
59
onSubmit = { ( ) => console . log ( "submit" ) }
57
60
leftSideButtons = {
@@ -64,103 +67,106 @@ export const AllInputs: StoryType = ({ ...props }) => (
64
67
}
65
68
{ ...props }
66
69
>
67
- < Textbox label = "Textbox" characterLimit = { 100 } />
68
- < Number label = "Number" />
69
- < Decimal label = "Decimal" />
70
- < GroupedCharacter
71
- label = "GroupedCharacter"
72
- groups = { [ 2 , 3 , 2 ] }
73
- separator = "-"
74
- />
75
- < Password label = "Password" characterLimit = { 100 } />
76
- < Fieldset legend = "Fieldset" >
77
- < Textbox label = "Textbox in Fieldset" />
78
- < Checkbox label = "Checkbox in Fieldset" />
70
+ < Box >
71
+ < Textbox label = "Textbox" characterLimit = { 100 } />
72
+ < Number label = "Number" />
73
+ < Decimal label = "Decimal" />
74
+ < GroupedCharacter
75
+ label = "GroupedCharacter"
76
+ groups = { [ 2 , 3 , 2 ] }
77
+ separator = "-"
78
+ />
79
+ < Password label = "Password" characterLimit = { 100 } />
80
+ < Fieldset legend = "Fieldset" >
81
+ < Textbox label = "Textbox in Fieldset" />
82
+ < Checkbox label = "Checkbox in Fieldset" />
83
+ < Select name = "simple-select" id = "simple-select" label = "Simple Select" >
84
+ < Option text = "Amber" value = "1" />
85
+ < Option text = "Black" value = "2" />
86
+ < Option text = "Blue" value = "3" />
87
+ </ Select >
88
+ </ Fieldset >
89
+ < Hr />
90
+ < Time
91
+ value = { {
92
+ hours : "" ,
93
+ minutes : "" ,
94
+ } }
95
+ onChange = { ( ) => { } }
96
+ label = "Time"
97
+ />
98
+ < NumeralDate label = "Numeral Date" />
99
+ < RadioButtonGroup name = "legend" legend = "RadioButtonGroup" >
100
+ < RadioButton
101
+ id = "group-1-input-1"
102
+ value = "group-1-input-1"
103
+ label = "Radio Option 1"
104
+ />
105
+ < RadioButton
106
+ id = "group-1-input-2"
107
+ value = "group-1-input-2"
108
+ label = "Radio Option 2"
109
+ />
110
+ </ RadioButtonGroup >
111
+ < Checkbox label = "Checkbox" />
112
+ < CheckboxGroup legend = "Checkbox Group" >
113
+ < Checkbox label = "Checkbox-1" />
114
+ < Checkbox label = "Checkbox-2" />
115
+ </ CheckboxGroup >
116
+ < DateInput name = "date" label = "Date" value = "" onChange = { ( ) => { } } />
117
+ < DateRange
118
+ name = "date"
119
+ startLabel = "Start Date"
120
+ endLabel = "End Date"
121
+ value = { [ "" , "" ] }
122
+ onChange = { ( ) => { } }
123
+ />
124
+ < InlineInputs label = "Inline inputs" >
125
+ < Textbox onChange = { ( ) => { } } />
126
+ < Textbox onChange = { ( ) => { } } />
127
+ < Textbox onChange = { ( ) => { } } />
128
+ </ InlineInputs >
129
+ < Search value = "" onChange = { ( ) => { } } />
79
130
< Select name = "simple-select" id = "simple-select" label = "Simple Select" >
80
131
< Option text = "Amber" value = "1" />
81
132
< Option text = "Black" value = "2" />
82
133
< Option text = "Blue" value = "3" />
83
134
</ Select >
84
- </ Fieldset >
85
- < Time
86
- value = { {
87
- hours : "" ,
88
- minutes : "" ,
89
- } }
90
- onChange = { ( ) => { } }
91
- label = "Time"
92
- />
93
- < NumeralDate label = "Numeral Date" />
94
- < RadioButtonGroup name = "legend" legend = "RadioButtonGroup" >
95
- < RadioButton
96
- id = "group-1-input-1"
97
- value = "group-1-input-1"
98
- label = "Radio Option 1"
99
- />
100
- < RadioButton
101
- id = "group-1-input-2"
102
- value = "group-1-input-2"
103
- label = "Radio Option 2"
104
- />
105
- </ RadioButtonGroup >
106
- < Checkbox label = "Checkbox" />
107
- < CheckboxGroup legend = "Checkbox Group" >
108
- < Checkbox label = "Checkbox-1" />
109
- < Checkbox label = "Checkbox-2" />
110
- </ CheckboxGroup >
111
- < DateInput name = "date" label = "Date" value = "" onChange = { ( ) => { } } />
112
- < DateRange
113
- name = "date"
114
- startLabel = "Start Date"
115
- endLabel = "End Date"
116
- value = { [ "" , "" ] }
117
- onChange = { ( ) => { } }
118
- />
119
- < InlineInputs label = "Inline inputs" >
120
- < Textbox onChange = { ( ) => { } } />
121
- < Textbox onChange = { ( ) => { } } />
122
- < Textbox onChange = { ( ) => { } } />
123
- </ InlineInputs >
124
- < Search value = "" onChange = { ( ) => { } } />
125
- < Select name = "simple-select" id = "simple-select" label = "Simple Select" >
126
- < Option text = "Amber" value = "1" />
127
- < Option text = "Black" value = "2" />
128
- < Option text = "Blue" value = "3" />
129
- </ Select >
130
- < FilterableSelect
131
- name = "filterable-select"
132
- id = "filterable-select"
133
- label = "Filterable Select"
134
- >
135
- < Option text = "Amber" value = "1" />
136
- < Option text = "Black" value = "2" />
137
- < Option text = "Blue" value = "3" />
138
- </ FilterableSelect >
139
- < MultiSelect name = "multi-select" id = "multi-select" label = "Multi Select" >
140
- < Option text = "Amber" value = "1" />
141
- < Option text = "Black" value = "2" />
142
- < Option text = "Blue" value = "3" />
143
- </ MultiSelect >
144
- < Textarea label = "Textarea" name = "textarea" characterLimit = { 100 } />
145
- < TextEditor labelText = "Text Editor" characterLimit = { 100 } />
146
- < SimpleColorPicker
147
- name = "simple-color-picker"
148
- legend = "Simple Color Picker"
149
- >
150
- { [
151
- { color : "transparent" , label : "transparent" } ,
152
- { color : "#0073C1" , label : "blue" } ,
153
- { color : "#582C83" , label : "purple" } ,
154
- ] . map ( ( { color, label } ) => (
155
- < SimpleColor
156
- value = { color }
157
- key = { color }
158
- aria-label = { label }
159
- id = { color }
160
- />
161
- ) ) }
162
- </ SimpleColorPicker >
163
- < Switch name = "switch" label = "Switch" onChange = { ( ) => { } } />
135
+ < FilterableSelect
136
+ name = "filterable-select"
137
+ id = "filterable-select"
138
+ label = "Filterable Select"
139
+ >
140
+ < Option text = "Amber" value = "1" />
141
+ < Option text = "Black" value = "2" />
142
+ < Option text = "Blue" value = "3" />
143
+ </ FilterableSelect >
144
+ < MultiSelect name = "multi-select" id = "multi-select" label = "Multi Select" >
145
+ < Option text = "Amber" value = "1" />
146
+ < Option text = "Black" value = "2" />
147
+ < Option text = "Blue" value = "3" />
148
+ </ MultiSelect >
149
+ < Textarea label = "Textarea" name = "textarea" characterLimit = { 100 } />
150
+ < TextEditor labelText = "Text Editor" characterLimit = { 100 } />
151
+ < SimpleColorPicker
152
+ name = "simple-color-picker"
153
+ legend = "Simple Color Picker"
154
+ >
155
+ { [
156
+ { color : "transparent" , label : "transparent" } ,
157
+ { color : "#0073C1" , label : "blue" } ,
158
+ { color : "#582C83" , label : "purple" } ,
159
+ ] . map ( ( { color, label } ) => (
160
+ < SimpleColor
161
+ value = { color }
162
+ key = { color }
163
+ aria-label = { label }
164
+ id = { color }
165
+ />
166
+ ) ) }
167
+ </ SimpleColorPicker >
168
+ < Switch name = "switch" label = "Switch" onChange = { ( ) => { } } />
169
+ </ Box >
164
170
</ Form >
165
171
</ CarbonProvider >
166
172
) ;
0 commit comments