@aurodesignsystem-dev/auro-formkit 0.0.0-pr1451.0 → 0.0.0-pr1452.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/api.md +221 -201
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.md +23 -21
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/keyboardBehavior.md +0 -0
- package/components/checkbox/demo/readme.md +35 -23
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/README.md +3 -13
- package/components/combobox/demo/api.html +0 -24
- package/components/combobox/demo/api.md +1685 -1613
- package/components/combobox/demo/api.min.js +1506 -1506
- package/components/combobox/demo/index.html +16 -49
- package/components/combobox/demo/index.js +2 -3
- package/components/combobox/demo/index.md +185 -861
- package/components/combobox/demo/index.min.js +1468 -1493
- package/components/combobox/demo/{keyboard-behavior.html → keyboardBehavior.html} +1 -2
- package/components/combobox/demo/keyboardBehavior.md +281 -0
- package/components/combobox/demo/readme.html +1 -25
- package/components/combobox/demo/readme.md +52 -50
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/api.md +819 -751
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.md +39 -35
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/demo/keyboardBehavior.md +127 -0
- package/components/counter/demo/readme.md +51 -39
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.md +931 -827
- package/components/datepicker/demo/api.min.js +3 -3
- package/components/datepicker/demo/index.md +87 -79
- package/components/datepicker/demo/index.min.js +3 -3
- package/components/datepicker/demo/keyboardBehavior.md +19 -0
- package/components/datepicker/demo/readme.md +31 -19
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/api.md +851 -795
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.md +155 -145
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/demo/keyboardBehavior.md +77 -0
- package/components/dropdown/demo/readme.md +51 -39
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.md +179 -173
- package/components/form/demo/api.min.js +928 -928
- package/components/form/demo/index.md +33 -27
- package/components/form/demo/index.min.js +928 -928
- package/components/form/demo/keyboardBehavior.md +0 -0
- package/components/form/demo/readme.md +28 -14
- package/components/input/demo/api.md +664 -572
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.md +99 -93
- package/components/input/demo/index.min.js +1 -1
- package/components/input/demo/keyboardBehavior.md +0 -0
- package/components/input/demo/readme.md +29 -17
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/api.md +786 -742
- package/components/menu/demo/api.min.js +1572 -1572
- package/components/menu/demo/index.md +37 -35
- package/components/menu/demo/index.min.js +1572 -1572
- package/components/menu/demo/keyboardBehavior.md +0 -0
- package/components/menu/demo/readme.md +35 -23
- package/components/menu/dist/auro-menu.context.d.ts +0 -1
- package/components/menu/dist/index.js +1607 -1607
- package/components/menu/dist/registered.js +1556 -1556
- package/components/radio/demo/api.md +350 -318
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.md +29 -25
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/keyboardBehavior.md +0 -0
- package/components/radio/demo/readme.md +33 -21
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +1 -12
- package/components/select/demo/api.md +1793 -1713
- package/components/select/demo/api.min.js +1505 -1505
- package/components/select/demo/index.html +37 -247
- package/components/select/demo/index.md +345 -225
- package/components/select/demo/index.min.js +1505 -1505
- package/components/select/demo/keyboardBehavior.md +245 -0
- package/components/select/demo/readme.md +46 -45
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +244 -244
- package/package.json +16 -2
- package/components/checkbox/demo/keyboard-behavior.md +0 -39
- package/components/combobox/demo/accessibility.html +0 -57
- package/components/combobox/demo/accessibility.md +0 -77
- package/components/combobox/demo/design.html +0 -83
- package/components/combobox/demo/design.md +0 -283
- package/components/combobox/demo/install.html +0 -84
- package/components/combobox/demo/install.js +0 -24
- package/components/combobox/demo/install.md +0 -100
- package/components/combobox/demo/install.min.js +0 -17991
- package/components/combobox/demo/keyboard-behavior.md +0 -276
- package/components/combobox/demo/layout.md +0 -112
- package/components/combobox/demo/styles.css +0 -141
- package/components/combobox/demo/voiceover.html +0 -66
- package/components/combobox/demo/voiceover.md +0 -118
- package/components/counter/demo/keyboard-behavior.md +0 -127
- package/components/datepicker/demo/keyboard-behavior.md +0 -19
- package/components/dropdown/demo/keyboard-behavior.md +0 -72
- package/components/form/demo/keyboard-behavior.md +0 -38
- package/components/input/demo/keyboard-behavior.md +0 -25
- package/components/menu/demo/keyboard-behavior.md +0 -18
- package/components/radio/demo/keyboard-behavior.md +0 -72
- package/components/select/demo/accessibility.html +0 -65
- package/components/select/demo/accessibility.md +0 -76
- package/components/select/demo/keyboard-behavior.md +0 -39
- package/components/select/demo/layout.html +0 -59
- package/components/select/demo/layout.md +0 -299
- package/components/select/demo/voiceover.html +0 -65
- package/components/select/demo/voiceover.md +0 -183
|
@@ -95,29 +95,31 @@ The `auro-checkbox` element is for the purpose of allowing users to select one o
|
|
|
95
95
|
## Basic
|
|
96
96
|
|
|
97
97
|
<div class="exampleWrapper">
|
|
98
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
99
|
-
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
100
|
-
<auro-checkbox-group>
|
|
101
|
-
<span slot="legend">Form label goes here</span>
|
|
102
|
-
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
103
|
-
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
104
|
-
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option that has some extra text that should wrap when rendered in a narrow container</auro-checkbox>
|
|
105
|
-
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
106
|
-
</auro-checkbox-group>
|
|
107
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
98
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
99
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
100
|
+
<auro-checkbox-group>
|
|
101
|
+
<span slot="legend">Form label goes here</span>
|
|
102
|
+
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
103
|
+
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
104
|
+
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option that has some extra text that should wrap when rendered in a narrow container</auro-checkbox>
|
|
105
|
+
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
106
|
+
</auro-checkbox-group>
|
|
107
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
108
108
|
</div>
|
|
109
109
|
<auro-accordion alignRight>
|
|
110
|
-
<span slot="trigger">See code</span>
|
|
110
|
+
<span slot="trigger">See code</span>
|
|
111
111
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
112
112
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
113
113
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
```html
|
|
115
|
+
<auro-checkbox-group>
|
|
116
|
+
<span slot="legend">Form label goes here</span>
|
|
117
|
+
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
118
|
+
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
119
|
+
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option that has some extra text that should wrap when rendered in a narrow container</auro-checkbox>
|
|
120
|
+
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
121
|
+
</auro-checkbox-group>
|
|
122
|
+
```
|
|
121
123
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
122
124
|
</auro-accordion>
|
|
123
125
|
|
|
@@ -128,27 +130,27 @@ The `auro-checkbox` element is for the purpose of allowing users to select one o
|
|
|
128
130
|
Use the `appearance="inverse"` attribute to render the checkbox for use on dark backgrounds.
|
|
129
131
|
|
|
130
132
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
131
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
132
|
-
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
133
|
-
<auro-checkbox-group appearance="inverse">
|
|
134
|
-
<span slot="legend">Form label goes here</span>
|
|
135
|
-
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
136
|
-
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
137
|
-
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option</auro-checkbox>
|
|
138
|
-
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
139
|
-
</auro-checkbox-group>
|
|
140
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
133
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
134
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
135
|
+
<auro-checkbox-group appearance="inverse">
|
|
136
|
+
<span slot="legend">Form label goes here</span>
|
|
137
|
+
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
138
|
+
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
139
|
+
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option</auro-checkbox>
|
|
140
|
+
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
141
|
+
</auro-checkbox-group>
|
|
142
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
141
143
|
</div>
|
|
142
144
|
<auro-accordion alignRight>
|
|
143
|
-
<span slot="trigger">See code</span>
|
|
145
|
+
<span slot="trigger">See code</span>
|
|
144
146
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
145
147
|
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
146
148
|
<auro-checkbox-group appearance="inverse">
|
|
147
|
-
<span slot="legend">Form label goes here</span>
|
|
148
|
-
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
149
|
-
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
150
|
-
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option</auro-checkbox>
|
|
151
|
-
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
149
|
+
<span slot="legend">Form label goes here</span>
|
|
150
|
+
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
151
|
+
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
152
|
+
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option</auro-checkbox>
|
|
153
|
+
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
152
154
|
</auro-checkbox-group>
|
|
153
155
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
154
156
|
</auro-accordion>
|
|
@@ -162,29 +164,31 @@ Use the `disabled` attribute to disable individual `<auro-checkbox>` elements or
|
|
|
162
164
|
The `disabled` attribute used to disable a single `<auro-checkbox>` element.
|
|
163
165
|
|
|
164
166
|
<div class="exampleWrapper">
|
|
165
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
|
|
166
|
-
<!-- The below content is automatically added from ./../apiExamples/disabled.html -->
|
|
167
|
-
<auro-checkbox-group>
|
|
168
|
-
<span slot="legend">Form label goes here</span>
|
|
169
|
-
<auro-checkbox value="disabled-value1" name="disabled" id="checkbox-disabled1">Checkbox option</auro-checkbox>
|
|
170
|
-
<auro-checkbox value="disabled-value2" name="disabled" id="checkbox-disabled2" checked disabled>Disabled checkbox option</auro-checkbox>
|
|
171
|
-
<auro-checkbox value="disabled-value3" name="disabled" id="checkbox-disabled3" disabled>Disabled checkbox option</auro-checkbox>
|
|
172
|
-
<auro-checkbox value="disabled-value4" name="disabled" id="checkbox-disabled4" checked>Checkbox option</auro-checkbox>
|
|
173
|
-
</auro-checkbox-group>
|
|
174
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
167
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
|
|
168
|
+
<!-- The below content is automatically added from ./../apiExamples/disabled.html -->
|
|
169
|
+
<auro-checkbox-group>
|
|
170
|
+
<span slot="legend">Form label goes here</span>
|
|
171
|
+
<auro-checkbox value="disabled-value1" name="disabled" id="checkbox-disabled1">Checkbox option</auro-checkbox>
|
|
172
|
+
<auro-checkbox value="disabled-value2" name="disabled" id="checkbox-disabled2" checked disabled>Disabled checkbox option</auro-checkbox>
|
|
173
|
+
<auro-checkbox value="disabled-value3" name="disabled" id="checkbox-disabled3" disabled>Disabled checkbox option</auro-checkbox>
|
|
174
|
+
<auro-checkbox value="disabled-value4" name="disabled" id="checkbox-disabled4" checked>Checkbox option</auro-checkbox>
|
|
175
|
+
</auro-checkbox-group>
|
|
176
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
175
177
|
</div>
|
|
176
178
|
<auro-accordion alignRight>
|
|
177
|
-
<span slot="trigger">See code</span>
|
|
179
|
+
<span slot="trigger">See code</span>
|
|
178
180
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
|
|
179
181
|
<!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
|
|
180
182
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
```html
|
|
184
|
+
<auro-checkbox-group>
|
|
185
|
+
<span slot="legend">Form label goes here</span>
|
|
186
|
+
<auro-checkbox value="disabled-value1" name="disabled" id="checkbox-disabled1">Checkbox option</auro-checkbox>
|
|
187
|
+
<auro-checkbox value="disabled-value2" name="disabled" id="checkbox-disabled2" checked disabled>Disabled checkbox option</auro-checkbox>
|
|
188
|
+
<auro-checkbox value="disabled-value3" name="disabled" id="checkbox-disabled3" disabled>Disabled checkbox option</auro-checkbox>
|
|
189
|
+
<auro-checkbox value="disabled-value4" name="disabled" id="checkbox-disabled4" checked>Checkbox option</auro-checkbox>
|
|
190
|
+
</auro-checkbox-group>
|
|
191
|
+
```
|
|
188
192
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
189
193
|
</auro-accordion>
|
|
190
194
|
|
|
@@ -193,50 +197,52 @@ The `disabled` attribute used to disable a single `<auro-checkbox>` element.
|
|
|
193
197
|
The `disabled` attribute used to disable the entire `<auro-checkbox-group>`.
|
|
194
198
|
|
|
195
199
|
<div class="exampleWrapper">
|
|
196
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled-group.html) -->
|
|
197
|
-
<!-- The below content is automatically added from ./../apiExamples/disabled-group.html -->
|
|
198
|
-
<auro-checkbox-group disabled>
|
|
199
|
-
<span slot="legend">Form label goes here</span>
|
|
200
|
-
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
201
|
-
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
202
|
-
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
203
|
-
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
204
|
-
</auro-checkbox-group>
|
|
205
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
200
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled-group.html) -->
|
|
201
|
+
<!-- The below content is automatically added from ./../apiExamples/disabled-group.html -->
|
|
202
|
+
<auro-checkbox-group disabled>
|
|
203
|
+
<span slot="legend">Form label goes here</span>
|
|
204
|
+
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
205
|
+
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
206
|
+
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
207
|
+
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
208
|
+
</auro-checkbox-group>
|
|
209
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
206
210
|
</div>
|
|
207
211
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
208
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
209
|
-
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
210
|
-
<auro-checkbox-group appearance="inverse" disabled>
|
|
211
|
-
<span slot="legend">Form label goes here</span>
|
|
212
|
-
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
213
|
-
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
214
|
-
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
215
|
-
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
216
|
-
</auro-checkbox-group>
|
|
217
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
212
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
213
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
214
|
+
<auro-checkbox-group appearance="inverse" disabled>
|
|
215
|
+
<span slot="legend">Form label goes here</span>
|
|
216
|
+
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
217
|
+
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
218
|
+
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
219
|
+
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
220
|
+
</auro-checkbox-group>
|
|
221
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
218
222
|
</div>
|
|
219
223
|
<auro-accordion alignRight>
|
|
220
|
-
<span slot="trigger">See code</span>
|
|
224
|
+
<span slot="trigger">See code</span>
|
|
221
225
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled-group.html) -->
|
|
222
226
|
<!-- The below code snippet is automatically added from ./../apiExamples/disabled-group.html -->
|
|
223
227
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
```html
|
|
229
|
+
<auro-checkbox-group disabled>
|
|
230
|
+
<span slot="legend">Form label goes here</span>
|
|
231
|
+
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
232
|
+
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
233
|
+
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
234
|
+
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
235
|
+
</auro-checkbox-group>
|
|
236
|
+
```
|
|
231
237
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
232
238
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
233
239
|
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
234
240
|
<auro-checkbox-group appearance="inverse" disabled>
|
|
235
|
-
<span slot="legend">Form label goes here</span>
|
|
236
|
-
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
237
|
-
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
238
|
-
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
239
|
-
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
241
|
+
<span slot="legend">Form label goes here</span>
|
|
242
|
+
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
243
|
+
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
244
|
+
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
245
|
+
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
240
246
|
</auro-checkbox-group>
|
|
241
247
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
242
248
|
</auro-accordion>
|
|
@@ -248,27 +254,29 @@ Using the `horizontal` attribute will render the checkbox options on a horizonta
|
|
|
248
254
|
**Note**: Using the `horizontal` attribute has a limit of 3 options. Beyond three, options will be listed in vertically.
|
|
249
255
|
|
|
250
256
|
<div class="exampleWrapper">
|
|
251
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/horizontal.html) -->
|
|
252
|
-
<!-- The below content is automatically added from ./../apiExamples/horizontal.html -->
|
|
253
|
-
<auro-checkbox-group horizontal>
|
|
254
|
-
<span slot="legend">Form label goes here</span>
|
|
255
|
-
<auro-checkbox value="yes" name="horizontal" id="checkbox-horizontal1">Yes</auro-checkbox>
|
|
256
|
-
<auro-checkbox value="no" name="horizontal" id="checkbox-horizontal2">No</auro-checkbox>
|
|
257
|
-
<auro-checkbox value="maybe" name="horizontal" id="checkbox-horizontal3">Maybe</auro-checkbox>
|
|
258
|
-
</auro-checkbox-group>
|
|
259
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
257
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/horizontal.html) -->
|
|
258
|
+
<!-- The below content is automatically added from ./../apiExamples/horizontal.html -->
|
|
259
|
+
<auro-checkbox-group horizontal>
|
|
260
|
+
<span slot="legend">Form label goes here</span>
|
|
261
|
+
<auro-checkbox value="yes" name="horizontal" id="checkbox-horizontal1">Yes</auro-checkbox>
|
|
262
|
+
<auro-checkbox value="no" name="horizontal" id="checkbox-horizontal2">No</auro-checkbox>
|
|
263
|
+
<auro-checkbox value="maybe" name="horizontal" id="checkbox-horizontal3">Maybe</auro-checkbox>
|
|
264
|
+
</auro-checkbox-group>
|
|
265
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
260
266
|
</div>
|
|
261
267
|
<auro-accordion alignRight>
|
|
262
|
-
<span slot="trigger">See code</span>
|
|
268
|
+
<span slot="trigger">See code</span>
|
|
263
269
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/horizontal.html) -->
|
|
264
270
|
<!-- The below code snippet is automatically added from ./../apiExamples/horizontal.html -->
|
|
265
271
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
+
```html
|
|
273
|
+
<auro-checkbox-group horizontal>
|
|
274
|
+
<span slot="legend">Form label goes here</span>
|
|
275
|
+
<auro-checkbox value="yes" name="horizontal" id="checkbox-horizontal1">Yes</auro-checkbox>
|
|
276
|
+
<auro-checkbox value="no" name="horizontal" id="checkbox-horizontal2">No</auro-checkbox>
|
|
277
|
+
<auro-checkbox value="maybe" name="horizontal" id="checkbox-horizontal3">Maybe</auro-checkbox>
|
|
278
|
+
</auro-checkbox-group>
|
|
279
|
+
```
|
|
272
280
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
273
281
|
</auro-accordion>
|
|
274
282
|
|
|
@@ -287,50 +295,52 @@ The `error` attribute used to set error state on the entire `<auro-checkbox-grou
|
|
|
287
295
|
**Note**: The `error` attribute is only supported on the `<auro-checkbox-group>` element, not on individual `<auro-checkbox>` elements.
|
|
288
296
|
|
|
289
297
|
<div class="exampleWrapper">
|
|
290
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error-group.html) -->
|
|
291
|
-
<!-- The below content is automatically added from ./../apiExamples/error-group.html -->
|
|
292
|
-
<auro-checkbox-group error="custom error">
|
|
293
|
-
<span slot="legend">Form label goes here</span>
|
|
294
|
-
<auro-checkbox value="error-value1" name="error" id="checkbox-errorGroup1">Error checkbox option</auro-checkbox>
|
|
295
|
-
<auro-checkbox value="error-value2" name="error" id="checkbox-errorGroup2">Error checkbox option</auro-checkbox>
|
|
296
|
-
<auro-checkbox value="error-value3" name="error" id="checkbox-errorGroup3">Error checkbox option</auro-checkbox>
|
|
297
|
-
<auro-checkbox value="error-value4" name="error" id="checkbox-errorGroup4" checked>Error checkbox option</auro-checkbox>
|
|
298
|
-
</auro-checkbox-group>
|
|
299
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
298
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error-group.html) -->
|
|
299
|
+
<!-- The below content is automatically added from ./../apiExamples/error-group.html -->
|
|
300
|
+
<auro-checkbox-group error="custom error">
|
|
301
|
+
<span slot="legend">Form label goes here</span>
|
|
302
|
+
<auro-checkbox value="error-value1" name="error" id="checkbox-errorGroup1">Error checkbox option</auro-checkbox>
|
|
303
|
+
<auro-checkbox value="error-value2" name="error" id="checkbox-errorGroup2">Error checkbox option</auro-checkbox>
|
|
304
|
+
<auro-checkbox value="error-value3" name="error" id="checkbox-errorGroup3">Error checkbox option</auro-checkbox>
|
|
305
|
+
<auro-checkbox value="error-value4" name="error" id="checkbox-errorGroup4" checked>Error checkbox option</auro-checkbox>
|
|
306
|
+
</auro-checkbox-group>
|
|
307
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
300
308
|
</div>
|
|
301
309
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
302
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
303
|
-
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
304
|
-
<auro-checkbox-group appearance="inverse" error="custom error">
|
|
305
|
-
<span slot="legend">Form label goes here</span>
|
|
306
|
-
<auro-checkbox value="error-value1" name="error" id="checkbox-errorGroup1">Error checkbox option</auro-checkbox>
|
|
307
|
-
<auro-checkbox value="error-value2" name="error" id="checkbox-errorGroup2">Error checkbox option</auro-checkbox>
|
|
308
|
-
<auro-checkbox value="error-value3" name="error" id="checkbox-errorGroup3">Error checkbox option</auro-checkbox>
|
|
309
|
-
<auro-checkbox value="error-value4" name="error" id="checkbox-errorGroup4" checked>Error checkbox option</auro-checkbox>
|
|
310
|
-
</auro-checkbox-group>
|
|
311
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
310
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
311
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
312
|
+
<auro-checkbox-group appearance="inverse" error="custom error">
|
|
313
|
+
<span slot="legend">Form label goes here</span>
|
|
314
|
+
<auro-checkbox value="error-value1" name="error" id="checkbox-errorGroup1">Error checkbox option</auro-checkbox>
|
|
315
|
+
<auro-checkbox value="error-value2" name="error" id="checkbox-errorGroup2">Error checkbox option</auro-checkbox>
|
|
316
|
+
<auro-checkbox value="error-value3" name="error" id="checkbox-errorGroup3">Error checkbox option</auro-checkbox>
|
|
317
|
+
<auro-checkbox value="error-value4" name="error" id="checkbox-errorGroup4" checked>Error checkbox option</auro-checkbox>
|
|
318
|
+
</auro-checkbox-group>
|
|
319
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
312
320
|
</div>
|
|
313
321
|
<auro-accordion alignRight>
|
|
314
|
-
<span slot="trigger">See code</span>
|
|
322
|
+
<span slot="trigger">See code</span>
|
|
315
323
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error-group.html) -->
|
|
316
324
|
<!-- The below code snippet is automatically added from ./../apiExamples/error-group.html -->
|
|
317
325
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
326
|
+
```html
|
|
327
|
+
<auro-checkbox-group error="custom error">
|
|
328
|
+
<span slot="legend">Form label goes here</span>
|
|
329
|
+
<auro-checkbox value="error-value1" name="error" id="checkbox-errorGroup1">Error checkbox option</auro-checkbox>
|
|
330
|
+
<auro-checkbox value="error-value2" name="error" id="checkbox-errorGroup2">Error checkbox option</auro-checkbox>
|
|
331
|
+
<auro-checkbox value="error-value3" name="error" id="checkbox-errorGroup3">Error checkbox option</auro-checkbox>
|
|
332
|
+
<auro-checkbox value="error-value4" name="error" id="checkbox-errorGroup4" checked>Error checkbox option</auro-checkbox>
|
|
333
|
+
</auro-checkbox-group>
|
|
334
|
+
```
|
|
325
335
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
326
336
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
327
337
|
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
328
338
|
<auro-checkbox-group appearance="inverse" error="custom error">
|
|
329
|
-
<span slot="legend">Form label goes here</span>
|
|
330
|
-
<auro-checkbox value="error-value1" name="error" id="checkbox-errorGroup1">Error checkbox option</auro-checkbox>
|
|
331
|
-
<auro-checkbox value="error-value2" name="error" id="checkbox-errorGroup2">Error checkbox option</auro-checkbox>
|
|
332
|
-
<auro-checkbox value="error-value3" name="error" id="checkbox-errorGroup3">Error checkbox option</auro-checkbox>
|
|
333
|
-
<auro-checkbox value="error-value4" name="error" id="checkbox-errorGroup4" checked>Error checkbox option</auro-checkbox>
|
|
339
|
+
<span slot="legend">Form label goes here</span>
|
|
340
|
+
<auro-checkbox value="error-value1" name="error" id="checkbox-errorGroup1">Error checkbox option</auro-checkbox>
|
|
341
|
+
<auro-checkbox value="error-value2" name="error" id="checkbox-errorGroup2">Error checkbox option</auro-checkbox>
|
|
342
|
+
<auro-checkbox value="error-value3" name="error" id="checkbox-errorGroup3">Error checkbox option</auro-checkbox>
|
|
343
|
+
<auro-checkbox value="error-value4" name="error" id="checkbox-errorGroup4" checked>Error checkbox option</auro-checkbox>
|
|
334
344
|
</auro-checkbox-group>
|
|
335
345
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
336
346
|
</auro-accordion>
|
|
@@ -340,29 +350,31 @@ The `error` attribute used to set error state on the entire `<auro-checkbox-grou
|
|
|
340
350
|
When present, the `required` attribute specifies that at least one or more `<auro-checkbox>` elements within the `<auro-checkbox-group>` must be checked.
|
|
341
351
|
|
|
342
352
|
<div class="exampleWrapper">
|
|
343
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
344
|
-
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
345
|
-
<auro-checkbox-group required setCustomValidityValueMissing="Please select an option">
|
|
346
|
-
<span slot="legend">Form label goes here</span>
|
|
347
|
-
<auro-checkbox value="value1" name="required" id="checkbox-required1">Checkbox option</auro-checkbox>
|
|
348
|
-
<auro-checkbox value="value2" name="required" id="checkbox-required2">Checkbox option</auro-checkbox>
|
|
349
|
-
<auro-checkbox value="value3" name="required" id="checkbox-required3">Checkbox option</auro-checkbox>
|
|
350
|
-
<auro-checkbox value="value4" name="required" id="checkbox-required4">Checkbox option</auro-checkbox>
|
|
351
|
-
</auro-checkbox-group>
|
|
352
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
353
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
354
|
+
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
355
|
+
<auro-checkbox-group required setCustomValidityValueMissing="Please select an option">
|
|
356
|
+
<span slot="legend">Form label goes here</span>
|
|
357
|
+
<auro-checkbox value="value1" name="required" id="checkbox-required1">Checkbox option</auro-checkbox>
|
|
358
|
+
<auro-checkbox value="value2" name="required" id="checkbox-required2">Checkbox option</auro-checkbox>
|
|
359
|
+
<auro-checkbox value="value3" name="required" id="checkbox-required3">Checkbox option</auro-checkbox>
|
|
360
|
+
<auro-checkbox value="value4" name="required" id="checkbox-required4">Checkbox option</auro-checkbox>
|
|
361
|
+
</auro-checkbox-group>
|
|
362
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
353
363
|
</div>
|
|
354
364
|
<auro-accordion alignRight>
|
|
355
|
-
<span slot="trigger">See code</span>
|
|
365
|
+
<span slot="trigger">See code</span>
|
|
356
366
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
|
|
357
367
|
<!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
|
|
358
368
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
369
|
+
```html
|
|
370
|
+
<auro-checkbox-group required setCustomValidityValueMissing="Please select an option">
|
|
371
|
+
<span slot="legend">Form label goes here</span>
|
|
372
|
+
<auro-checkbox value="value1" name="required" id="checkbox-required1">Checkbox option</auro-checkbox>
|
|
373
|
+
<auro-checkbox value="value2" name="required" id="checkbox-required2">Checkbox option</auro-checkbox>
|
|
374
|
+
<auro-checkbox value="value3" name="required" id="checkbox-required3">Checkbox option</auro-checkbox>
|
|
375
|
+
<auro-checkbox value="value4" name="required" id="checkbox-required4">Checkbox option</auro-checkbox>
|
|
376
|
+
</auro-checkbox-group>
|
|
377
|
+
```
|
|
366
378
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
367
379
|
</auro-accordion>
|
|
368
380
|
|
|
@@ -373,31 +385,33 @@ When present, the `required` attribute specifies that at least one or more `<aur
|
|
|
373
385
|
The `<auro-checkbox-group>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
|
|
374
386
|
|
|
375
387
|
<div class="exampleWrapper">
|
|
376
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optional-label.html) -->
|
|
377
|
-
<!-- The below content is automatically added from ./../apiExamples/optional-label.html -->
|
|
378
|
-
<auro-checkbox-group>
|
|
379
|
-
<span slot="legend">Form label goes here</span>
|
|
380
|
-
<span slot="optionalLabel" style="font-size: small; color: grey"> - optional</span>
|
|
381
|
-
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
382
|
-
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
383
|
-
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option that has some extra text that should wrap when rendered in a narrow container</auro-checkbox>
|
|
384
|
-
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
385
|
-
</auro-checkbox-group>
|
|
386
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
388
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optional-label.html) -->
|
|
389
|
+
<!-- The below content is automatically added from ./../apiExamples/optional-label.html -->
|
|
390
|
+
<auro-checkbox-group>
|
|
391
|
+
<span slot="legend">Form label goes here</span>
|
|
392
|
+
<span slot="optionalLabel" style="font-size: small; color: grey"> - optional</span>
|
|
393
|
+
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
394
|
+
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
395
|
+
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option that has some extra text that should wrap when rendered in a narrow container</auro-checkbox>
|
|
396
|
+
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
397
|
+
</auro-checkbox-group>
|
|
398
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
387
399
|
</div>
|
|
388
400
|
<auro-accordion alignRight>
|
|
389
|
-
<span slot="trigger">See code</span>
|
|
401
|
+
<span slot="trigger">See code</span>
|
|
390
402
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optional-label.html) -->
|
|
391
403
|
<!-- The below code snippet is automatically added from ./../apiExamples/optional-label.html -->
|
|
392
404
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
405
|
+
```html
|
|
406
|
+
<auro-checkbox-group>
|
|
407
|
+
<span slot="legend">Form label goes here</span>
|
|
408
|
+
<span slot="optionalLabel" style="font-size: small; color: grey"> - optional</span>
|
|
409
|
+
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
410
|
+
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
411
|
+
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option that has some extra text that should wrap when rendered in a narrow container</auro-checkbox>
|
|
412
|
+
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
413
|
+
</auro-checkbox-group>
|
|
414
|
+
```
|
|
401
415
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
402
416
|
</auro-accordion>
|
|
403
417
|
|
|
@@ -408,44 +422,48 @@ The `<auro-checkbox-group>` supports an `optionalLabel` slot, where users can ca
|
|
|
408
422
|
Use the `reset()` method to reset the `<auro-checkbox-group>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
|
|
409
423
|
|
|
410
424
|
<div class="exampleWrapper">
|
|
411
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reset-state.html) -->
|
|
412
|
-
<!-- The below content is automatically added from ./../apiExamples/reset-state.html -->
|
|
413
|
-
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
414
|
-
<br/><br/>
|
|
415
|
-
<auro-checkbox-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
|
|
416
|
-
<span slot="legend">Form label goes here</span>
|
|
417
|
-
<auro-checkbox value="value1" name="resetState" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
418
|
-
<auro-checkbox value="value2" name="resetState" id="checkbox-basic2">Checkbox option</auro-checkbox>
|
|
419
|
-
<auro-checkbox value="value3" name="resetState" id="checkbox-basic3">Checkbox option</auro-checkbox>
|
|
420
|
-
<auro-checkbox value="value4" name="resetState" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
421
|
-
</auro-checkbox-group>
|
|
422
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
425
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reset-state.html) -->
|
|
426
|
+
<!-- The below content is automatically added from ./../apiExamples/reset-state.html -->
|
|
427
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
428
|
+
<br/><br/>
|
|
429
|
+
<auro-checkbox-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
|
|
430
|
+
<span slot="legend">Form label goes here</span>
|
|
431
|
+
<auro-checkbox value="value1" name="resetState" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
432
|
+
<auro-checkbox value="value2" name="resetState" id="checkbox-basic2">Checkbox option</auro-checkbox>
|
|
433
|
+
<auro-checkbox value="value3" name="resetState" id="checkbox-basic3">Checkbox option</auro-checkbox>
|
|
434
|
+
<auro-checkbox value="value4" name="resetState" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
435
|
+
</auro-checkbox-group>
|
|
436
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
423
437
|
</div>
|
|
424
438
|
<auro-accordion alignRight>
|
|
425
|
-
<span slot="trigger">See code</span>
|
|
439
|
+
<span slot="trigger">See code</span>
|
|
426
440
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.html) -->
|
|
427
441
|
<!-- The below code snippet is automatically added from ./../apiExamples/reset-state.html -->
|
|
428
442
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
443
|
+
```html
|
|
444
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
445
|
+
<br/><br/>
|
|
446
|
+
<auro-checkbox-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
|
|
447
|
+
<span slot="legend">Form label goes here</span>
|
|
448
|
+
<auro-checkbox value="value1" name="resetState" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
449
|
+
<auro-checkbox value="value2" name="resetState" id="checkbox-basic2">Checkbox option</auro-checkbox>
|
|
450
|
+
<auro-checkbox value="value3" name="resetState" id="checkbox-basic3">Checkbox option</auro-checkbox>
|
|
451
|
+
<auro-checkbox value="value4" name="resetState" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
452
|
+
</auro-checkbox-group>
|
|
453
|
+
```
|
|
438
454
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
439
455
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.js) -->
|
|
440
456
|
<!-- The below code snippet is automatically added from ./../apiExamples/reset-state.js -->
|
|
441
457
|
|
|
442
|
-
|
|
458
|
+
```js
|
|
459
|
+
export function resetStateExample() {
|
|
443
460
|
const elem = document.querySelector('#resetStateExample');
|
|
444
|
-
|
|
445
|
-
document.querySelector('#resetStateBtn').addEventListener('click', ()
|
|
461
|
+
|
|
462
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
446
463
|
elem.reset();
|
|
447
464
|
});
|
|
448
|
-
}
|
|
465
|
+
}
|
|
466
|
+
```
|
|
449
467
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
450
468
|
</auro-accordion>
|
|
451
469
|
|
|
@@ -456,8 +474,9 @@ The component may be restyled by changing the values of the following token(s).
|
|
|
456
474
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
457
475
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
458
476
|
|
|
459
|
-
|
|
460
|
-
|
|
477
|
+
```scss
|
|
478
|
+
@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
479
|
+
|
|
461
480
|
:host {
|
|
462
481
|
--ds-auro-checkbox-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
|
|
463
482
|
--ds-auro-checkbox-checkmark-color: var(--ds-advanced-color-boolean-indicator, #{v.$ds-advanced-color-boolean-indicator});
|
|
@@ -465,5 +484,6 @@ The component may be restyled by changing the values of the following token(s).
|
|
|
465
484
|
--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
466
485
|
--ds-auro-checkbox-outline-color: transparent;
|
|
467
486
|
--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
468
|
-
}
|
|
487
|
+
}
|
|
488
|
+
```
|
|
469
489
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1689,7 +1689,7 @@ class AuroHelpText extends i$2 {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
|
|
1692
|
-
var formkitVersion = '
|
|
1692
|
+
var formkitVersion = '202604242248';
|
|
1693
1693
|
|
|
1694
1694
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1695
1695
|
// See LICENSE in the project root for license information.
|