@aurodesignsystem-dev/auro-formkit 0.0.0-pr1448.0 → 0.0.0-pr1451.1
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 +201 -221
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.md +21 -23
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/keyboard-behavior.md +39 -0
- package/components/checkbox/demo/readme.md +23 -35
- package/components/checkbox/dist/auro-checkbox-group.d.ts +6 -6
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -8
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/README.md +13 -3
- package/components/combobox/demo/accessibility.html +57 -0
- package/components/combobox/demo/accessibility.md +77 -0
- package/components/combobox/demo/api.html +24 -0
- package/components/combobox/demo/api.md +1613 -1685
- package/components/combobox/demo/api.min.js +15 -21
- package/components/combobox/demo/design.html +83 -0
- package/components/combobox/demo/design.md +283 -0
- package/components/combobox/demo/index.html +49 -16
- package/components/combobox/demo/index.js +3 -2
- package/components/combobox/demo/index.md +861 -185
- package/components/combobox/demo/index.min.js +41 -22
- package/components/combobox/demo/install.html +84 -0
- package/components/combobox/demo/install.js +24 -0
- package/components/combobox/demo/install.md +100 -0
- package/components/combobox/demo/install.min.js +17991 -0
- package/components/combobox/demo/{keyboardBehavior.html → keyboard-behavior.html} +2 -1
- package/components/combobox/demo/keyboard-behavior.md +276 -0
- package/components/combobox/demo/layout.md +112 -0
- package/components/combobox/demo/readme.html +25 -1
- package/components/combobox/demo/readme.md +50 -52
- package/components/combobox/demo/styles.css +141 -0
- package/components/combobox/demo/voiceover.html +66 -0
- package/components/combobox/demo/voiceover.md +118 -0
- package/components/combobox/dist/auro-combobox.d.ts +36 -36
- package/components/combobox/dist/index.js +12 -17
- package/components/combobox/dist/registered.js +12 -17
- package/components/counter/demo/api.md +751 -819
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.md +35 -39
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/demo/keyboard-behavior.md +127 -0
- package/components/counter/demo/readme.md +39 -51
- package/components/counter/dist/auro-counter-group.d.ts +2 -2
- package/components/counter/dist/auro-counter.d.ts +10 -10
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.md +827 -931
- package/components/datepicker/demo/api.min.js +4 -4
- package/components/datepicker/demo/index.md +79 -87
- package/components/datepicker/demo/index.min.js +4 -4
- package/components/datepicker/demo/keyboard-behavior.md +19 -0
- package/components/datepicker/demo/readme.md +19 -31
- package/components/datepicker/dist/index.js +4 -4
- package/components/datepicker/dist/registered.js +4 -4
- package/components/datepicker/dist/{auro-calendar-cell.d.ts → src/auro-calendar-cell.d.ts} +2 -2
- package/components/datepicker/dist/{auro-datepicker.d.ts → src/auro-datepicker.d.ts} +13 -13
- package/components/datepicker/dist/{utilities.d.ts → src/utilities.d.ts} +4 -4
- package/components/datepicker/dist/{utilitiesCalendar.d.ts → src/utilitiesCalendar.d.ts} +3 -3
- package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-calendar.d.ts +2 -2
- package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker.d.ts +1 -1
- package/components/dropdown/demo/api.md +795 -851
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.md +145 -155
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/demo/keyboard-behavior.md +72 -0
- package/components/dropdown/demo/readme.md +39 -51
- package/components/dropdown/dist/auro-dropdown.d.ts +22 -22
- package/components/dropdown/dist/auro-dropdownBib.d.ts +3 -3
- package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.md +173 -179
- package/components/form/demo/api.min.js +27 -33
- package/components/form/demo/index.md +27 -33
- package/components/form/demo/index.min.js +27 -33
- package/components/form/demo/keyboard-behavior.md +38 -0
- package/components/form/demo/readme.md +14 -28
- package/components/input/demo/api.md +572 -664
- package/components/input/demo/api.min.js +2 -2
- package/components/input/demo/index.md +93 -99
- package/components/input/demo/index.min.js +2 -2
- package/components/input/demo/keyboard-behavior.md +25 -0
- package/components/input/demo/readme.md +17 -29
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +29 -29
- package/components/input/dist/index.js +2 -2
- package/components/input/dist/registered.js +2 -2
- package/components/menu/demo/api.md +745 -789
- package/components/menu/demo/api.min.js +3 -4
- package/components/menu/demo/index.md +35 -37
- package/components/menu/demo/index.min.js +3 -4
- package/components/menu/demo/keyboard-behavior.md +18 -0
- package/components/menu/demo/readme.md +23 -35
- package/components/menu/dist/auro-menu-utils.d.ts +1 -1
- package/components/menu/dist/auro-menu.context.d.ts +3 -3
- package/components/menu/dist/auro-menu.d.ts +5 -5
- package/components/menu/dist/auro-menuoption.d.ts +6 -6
- package/components/menu/dist/index.js +3 -4
- package/components/menu/dist/registered.js +3 -4
- package/components/radio/demo/api.md +318 -350
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.md +25 -29
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/keyboard-behavior.md +72 -0
- package/components/radio/demo/readme.md +21 -33
- package/components/radio/dist/auro-radio-group.d.ts +9 -9
- package/components/radio/dist/auro-radio.d.ts +8 -8
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +12 -1
- package/components/select/demo/accessibility.html +65 -0
- package/components/select/demo/accessibility.md +76 -0
- package/components/select/demo/api.md +1713 -1793
- package/components/select/demo/api.min.js +5 -6
- package/components/select/demo/index.html +247 -37
- package/components/select/demo/index.md +225 -345
- package/components/select/demo/index.min.js +5 -6
- package/components/select/demo/keyboard-behavior.md +39 -0
- package/components/select/demo/layout.html +59 -0
- package/components/select/demo/layout.md +299 -0
- package/components/select/demo/readme.md +45 -46
- package/components/select/demo/voiceover.html +65 -0
- package/components/select/demo/voiceover.md +183 -0
- package/components/select/dist/auro-select.d.ts +11 -11
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +13 -11
- package/package.json +26 -26
- package/components/checkbox/demo/keyboardBehavior.md +0 -0
- package/components/combobox/demo/keyboardBehavior.md +0 -281
- package/components/counter/demo/keyboardBehavior.md +0 -127
- package/components/datepicker/demo/keyboardBehavior.md +0 -19
- package/components/dropdown/demo/keyboardBehavior.md +0 -77
- package/components/form/demo/keyboardBehavior.md +0 -0
- package/components/input/demo/keyboardBehavior.md +0 -0
- package/components/menu/demo/keyboardBehavior.md +0 -0
- package/components/radio/demo/keyboardBehavior.md +0 -0
- package/components/select/demo/keyboardBehavior.md +0 -245
- /package/components/datepicker/dist/{auro-calendar-month.d.ts → src/auro-calendar-month.d.ts} +0 -0
- /package/components/datepicker/dist/{auro-calendar.d.ts → src/auro-calendar.d.ts} +0 -0
- /package/components/datepicker/dist/{buttonVersion.d.ts → src/buttonVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{datepickerKeyboardStrategy.d.ts → src/datepickerKeyboardStrategy.d.ts} +0 -0
- /package/components/datepicker/dist/{iconVersion.d.ts → src/iconVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/components/datepicker/dist/{popoverVersion.d.ts → src/popoverVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/classic/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/classic/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/shapeSize-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/snowflake/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/snowflake/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/tokens-css.d.ts +0 -0
- /package/components/datepicker/dist/{utilitiesCalendarRender.d.ts → src/utilitiesCalendarRender.d.ts} +0 -0
- /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/day.d.ts +0 -0
- /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-cell.d.ts +0 -0
|
@@ -100,48 +100,44 @@ The `auro-radio` element is used to a button that allows the user to select one
|
|
|
100
100
|
## Basic Radio
|
|
101
101
|
|
|
102
102
|
<div class="exampleWrapper">
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-standalone.html) -->
|
|
104
|
+
<!-- The below content is automatically added from ./../apiExamples/basic-standalone.html -->
|
|
105
|
+
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
106
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
107
107
|
</div>
|
|
108
108
|
<auro-accordion alignRight>
|
|
109
|
-
|
|
109
|
+
<span slot="trigger">See code</span>
|
|
110
110
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-standalone.html) -->
|
|
111
111
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic-standalone.html -->
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
115
|
-
```
|
|
113
|
+
<pre class="language-html"><code class="language-html"><auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio></code></pre>
|
|
116
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
115
|
</auro-accordion>
|
|
118
116
|
|
|
119
117
|
## Basic Radio Group
|
|
120
118
|
|
|
121
119
|
<div class="exampleWrapper">
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
120
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
121
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
122
|
+
<auro-radio-group>
|
|
123
|
+
<span slot="legend">Form label goes here</span>
|
|
124
|
+
<auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
125
|
+
<auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
126
|
+
<auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
127
|
+
</auro-radio-group>
|
|
128
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
131
129
|
</div>
|
|
132
130
|
<auro-accordion alignRight>
|
|
133
|
-
|
|
131
|
+
<span slot="trigger">See code</span>
|
|
134
132
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
135
133
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
136
134
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
</auro-radio-group>
|
|
144
|
-
```
|
|
135
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group>
|
|
136
|
+
<span slot="legend">Form label goes here</span>
|
|
137
|
+
<auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
138
|
+
<auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
139
|
+
<auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
140
|
+
</auro-radio-group></code></pre>
|
|
145
141
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
146
142
|
</auro-accordion>
|
|
147
143
|
|
|
@@ -152,45 +148,41 @@ The `auro-radio` element is used to a button that allows the user to select one
|
|
|
152
148
|
Use the `appearance="inverse"` attribute to render the radio for use on dark backgrounds.
|
|
153
149
|
|
|
154
150
|
<div class="exampleWrapper--ondark">
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
151
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
152
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
153
|
+
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" appearance="inverse"></auro-radio>
|
|
154
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
159
155
|
</div>
|
|
160
156
|
<auro-accordion alignRight>
|
|
161
|
-
|
|
157
|
+
<span slot="trigger">See code</span>
|
|
162
158
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
|
|
163
159
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
164
160
|
|
|
165
|
-
|
|
166
|
-
<auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" appearance="inverse"></auro-radio>
|
|
167
|
-
```
|
|
161
|
+
<pre class="language-html"><code class="language-html"><auro-radio id="basicRadio1" label="Yes" name="radioDemo" value="yes" appearance="inverse"></auro-radio></code></pre>
|
|
168
162
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
169
163
|
</auro-accordion>
|
|
170
164
|
<div class="exampleWrapper--ondark">
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
165
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-group.html) -->
|
|
166
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-group.html -->
|
|
167
|
+
<auro-radio-group appearance="inverse">
|
|
168
|
+
<span slot="legend">Form label goes here</span>
|
|
169
|
+
<auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
170
|
+
<auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
171
|
+
<auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
172
|
+
</auro-radio-group>
|
|
173
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
180
174
|
</div>
|
|
181
175
|
<auro-accordion alignRight>
|
|
182
|
-
|
|
176
|
+
<span slot="trigger">See code</span>
|
|
183
177
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-group.html) -->
|
|
184
178
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-group.html -->
|
|
185
179
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
</auro-radio-group>
|
|
193
|
-
```
|
|
180
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group appearance="inverse">
|
|
181
|
+
<span slot="legend">Form label goes here</span>
|
|
182
|
+
<auro-radio id="basicGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
183
|
+
<auro-radio id="basicGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
184
|
+
<auro-radio id="basicGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
185
|
+
</auro-radio-group></code></pre>
|
|
194
186
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
195
187
|
</auro-accordion>
|
|
196
188
|
|
|
@@ -199,50 +191,50 @@ Use the `appearance="inverse"` attribute to render the radio for use on dark bac
|
|
|
199
191
|
Use the `checked` attribute to pre-select a `<auro-radio>` element.
|
|
200
192
|
|
|
201
193
|
<div class="exampleWrapper">
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
194
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/checked.html) -->
|
|
195
|
+
<!-- The below content is automatically added from ./../apiExamples/checked.html -->
|
|
196
|
+
<auro-radio-group>
|
|
197
|
+
<span slot="legend">Form label goes here</span>
|
|
198
|
+
<auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
|
|
199
|
+
<auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
|
|
200
|
+
<auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
|
|
201
|
+
</auro-radio-group>
|
|
202
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
211
203
|
</div>
|
|
212
204
|
<auro-accordion alignRight>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
205
|
+
<span slot="trigger">See code</span>
|
|
206
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/checked.html) -->
|
|
207
|
+
<!-- The below content is automatically added from ./../apiExamples/checked.html -->
|
|
208
|
+
<auro-radio-group>
|
|
209
|
+
<span slot="legend">Form label goes here</span>
|
|
210
|
+
<auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
|
|
211
|
+
<auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
|
|
212
|
+
<auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
|
|
213
|
+
</auro-radio-group>
|
|
214
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
223
215
|
</auro-accordion>
|
|
224
216
|
<div class="exampleWrapper--ondark">
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
217
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-checked.html) -->
|
|
218
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-checked.html -->
|
|
219
|
+
<auro-radio-group appearance="inverse">
|
|
220
|
+
<span slot="legend">Form label goes here</span>
|
|
221
|
+
<auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
|
|
222
|
+
<auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
|
|
223
|
+
<auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
|
|
224
|
+
</auro-radio-group>
|
|
225
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
234
226
|
</div>
|
|
235
227
|
<auro-accordion alignRight>
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
228
|
+
<span slot="trigger">See code</span>
|
|
229
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-checked.html) -->
|
|
230
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-checked.html -->
|
|
231
|
+
<auro-radio-group appearance="inverse">
|
|
232
|
+
<span slot="legend">Form label goes here</span>
|
|
233
|
+
<auro-radio id="radio4" label="Yes" name="radioDemo" value="yes">Yes</auro-radio>
|
|
234
|
+
<auro-radio id="radio5" label="No" name="radioDemo" value="no" checked>No</auro-radio>
|
|
235
|
+
<auro-radio id="radio6" label="Maybe" name="radioDemo" value="maybe">Maybe</auro-radio>
|
|
236
|
+
</auro-radio-group>
|
|
237
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
246
238
|
</auro-accordion>
|
|
247
239
|
|
|
248
240
|
### Disabled
|
|
@@ -250,76 +242,74 @@ Use the `checked` attribute to pre-select a `<auro-radio>` element.
|
|
|
250
242
|
Use the `disabled` attribute to disable singular `<auro-radio>` elements or the entire `<auro-radio-group>`.
|
|
251
243
|
|
|
252
244
|
<div class="exampleWrapper">
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
245
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
|
|
246
|
+
<!-- The below content is automatically added from ./../apiExamples/disabled.html -->
|
|
247
|
+
<auro-radio-group>
|
|
248
|
+
<span slot="legend">Form label goes here</span>
|
|
249
|
+
<auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
250
|
+
<auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
|
|
251
|
+
<auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
252
|
+
</auro-radio-group>
|
|
253
|
+
<auro-radio-group disabled>
|
|
254
|
+
<span slot="legend">Form label goes here</span>
|
|
255
|
+
<auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
256
|
+
<auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
|
|
257
|
+
<auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
258
|
+
</auro-radio-group>
|
|
259
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
268
260
|
</div>
|
|
269
261
|
<auro-accordion alignRight>
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
```
|
|
287
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
262
|
+
<span slot="trigger">See code</span>
|
|
263
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
|
|
264
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
|
|
265
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group>
|
|
266
|
+
<span slot="legend">Form label goes here</span>
|
|
267
|
+
<auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
268
|
+
<auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
|
|
269
|
+
<auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
270
|
+
</auro-radio-group>
|
|
271
|
+
<auro-radio-group disabled>
|
|
272
|
+
<span slot="legend">Form label goes here</span>
|
|
273
|
+
<auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
274
|
+
<auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
|
|
275
|
+
<auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
276
|
+
</auro-radio-group></code></pre>
|
|
277
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
288
278
|
</auro-accordion>
|
|
289
279
|
<div class="exampleWrapper--ondark">
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
280
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
281
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
282
|
+
<auro-radio-group appearance="inverse">
|
|
283
|
+
<span slot="legend">Form label goes here</span>
|
|
284
|
+
<auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
285
|
+
<auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
|
|
286
|
+
<auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
287
|
+
</auro-radio-group>
|
|
288
|
+
<auro-radio-group appearance="inverse" disabled>
|
|
289
|
+
<span slot="legend">Form label goes here</span>
|
|
290
|
+
<auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
291
|
+
<auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
|
|
292
|
+
<auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
293
|
+
</auro-radio-group>
|
|
294
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
305
295
|
</div>
|
|
306
296
|
<auro-accordion alignRight>
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
297
|
+
<span slot="trigger">See code</span>
|
|
298
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
|
|
299
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
|
|
300
|
+
<auro-radio-group appearance="inverse">
|
|
301
|
+
<span slot="legend">Form label goes here</span>
|
|
302
|
+
<auro-radio id="disabledRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
303
|
+
<auro-radio id="disabledRadio2" label="No" name="radioDemo" value="no" disabled></auro-radio>
|
|
304
|
+
<auro-radio id="disabledRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
305
|
+
</auro-radio-group>
|
|
306
|
+
<auro-radio-group appearance="inverse" disabled>
|
|
307
|
+
<span slot="legend">Form label goes here</span>
|
|
308
|
+
<auro-radio id="disabledRadio4" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
309
|
+
<auro-radio id="disabledRadio5" label="No" name="radioDemo" value="no" checked></auro-radio>
|
|
310
|
+
<auro-radio id="disabledRadio6" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
311
|
+
</auro-radio-group>
|
|
312
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
323
313
|
</auro-accordion>
|
|
324
314
|
|
|
325
315
|
### Error
|
|
@@ -329,52 +319,50 @@ Use the `error` attribute to apply a persistent custom error that supersedes the
|
|
|
329
319
|
A custom error message can be set using the `error` attribute, or it can be used in conjunction with the `setCustomValidityCustomError` attribute.
|
|
330
320
|
|
|
331
321
|
<div class="exampleWrapper">
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
322
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
|
|
323
|
+
<!-- The below content is automatically added from ./../apiExamples/error.html -->
|
|
324
|
+
<auro-radio-group error="There is an error with this form entry">
|
|
325
|
+
<span slot="legend">Form label goes here</span>
|
|
326
|
+
<auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
327
|
+
<auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
328
|
+
<auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
329
|
+
</auro-radio-group>
|
|
330
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
341
331
|
</div>
|
|
342
332
|
<auro-accordion alignRight>
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
```
|
|
354
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
333
|
+
<span slot="trigger">See code</span>
|
|
334
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
|
|
335
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
|
|
336
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group error="There is an error with this form entry">
|
|
337
|
+
<span slot="legend">Form label goes here</span>
|
|
338
|
+
<auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
339
|
+
<auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
340
|
+
<auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
341
|
+
</auro-radio-group></code></pre>
|
|
342
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
355
343
|
</auro-accordion>
|
|
356
344
|
<div class="exampleWrapper--ondark">
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
345
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
346
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
347
|
+
<auro-radio-group appearance="inverse" error="There is an error with this form entry">
|
|
348
|
+
<span slot="legend">Form label goes here</span>
|
|
349
|
+
<auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
350
|
+
<auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
351
|
+
<auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
352
|
+
</auro-radio-group>
|
|
353
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
366
354
|
</div>
|
|
367
355
|
<auro-accordion alignRight>
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
356
|
+
<span slot="trigger">See code</span>
|
|
357
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
358
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
359
|
+
<auro-radio-group appearance="inverse" error="There is an error with this form entry">
|
|
360
|
+
<span slot="legend">Form label goes here</span>
|
|
361
|
+
<auro-radio id="errorRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
362
|
+
<auro-radio id="errorRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
363
|
+
<auro-radio id="errorRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
364
|
+
</auro-radio-group>
|
|
365
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
378
366
|
</auro-accordion>
|
|
379
367
|
|
|
380
368
|
### Horizontal Group
|
|
@@ -384,29 +372,27 @@ Using the `horizontal` attribute will render the `auro-radio` elements in a hori
|
|
|
384
372
|
**Note**: Using the horizontal attribute has a limit of 3 options. Beyond three, options will be listed in vertically.
|
|
385
373
|
|
|
386
374
|
<div class="exampleWrapper">
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
375
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/horizontal.html) -->
|
|
376
|
+
<!-- The below content is automatically added from ./../apiExamples/horizontal.html -->
|
|
377
|
+
<auro-radio-group horizontal>
|
|
378
|
+
<span slot="legend">Form label goes here</span>
|
|
379
|
+
<auro-radio id="horizontalRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
380
|
+
<auro-radio id="horizontalRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
381
|
+
<auro-radio id="horizontalRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
382
|
+
</auro-radio-group>
|
|
383
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
396
384
|
</div>
|
|
397
385
|
<auro-accordion alignRight>
|
|
398
|
-
|
|
386
|
+
<span slot="trigger">See code</span>
|
|
399
387
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/horizontal.html) -->
|
|
400
388
|
<!-- The below code snippet is automatically added from ./../apiExamples/horizontal.html -->
|
|
401
389
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
</auro-radio-group>
|
|
409
|
-
```
|
|
390
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group horizontal>
|
|
391
|
+
<span slot="legend">Form label goes here</span>
|
|
392
|
+
<auro-radio id="horizontalRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
393
|
+
<auro-radio id="horizontalRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
394
|
+
<auro-radio id="horizontalRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
395
|
+
</auro-radio-group></code></pre>
|
|
410
396
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
411
397
|
</auro-accordion>
|
|
412
398
|
|
|
@@ -415,29 +401,27 @@ Using the `horizontal` attribute will render the `auro-radio` elements in a hori
|
|
|
415
401
|
When present, the `required` attribute specifies that an `<auro-radio>` within the `<auro-radio-group>` must be checked. There is no error message associated with the `required` attribute by default. Use `setCustomValidityValueMissing` to set a custom error message.
|
|
416
402
|
|
|
417
403
|
<div class="exampleWrapper">
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
404
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
405
|
+
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
406
|
+
<auro-radio-group required setCustomValidityValueMissing="value missing">
|
|
407
|
+
<span slot="legend">Form label goes here</span>
|
|
408
|
+
<auro-radio id="requiredRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
409
|
+
<auro-radio id="requiredRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
410
|
+
<auro-radio id="requiredRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
411
|
+
</auro-radio-group>
|
|
412
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
427
413
|
</div>
|
|
428
414
|
<auro-accordion alignRight>
|
|
429
|
-
|
|
415
|
+
<span slot="trigger">See code</span>
|
|
430
416
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
|
|
431
417
|
<!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
|
|
432
418
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
</auro-radio-group>
|
|
440
|
-
```
|
|
419
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group required setCustomValidityValueMissing="value missing">
|
|
420
|
+
<span slot="legend">Form label goes here</span>
|
|
421
|
+
<auro-radio id="requiredRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
422
|
+
<auro-radio id="requiredRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
423
|
+
<auro-radio id="requiredRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
424
|
+
</auro-radio-group></code></pre>
|
|
441
425
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
442
426
|
</auro-accordion>
|
|
443
427
|
|
|
@@ -448,46 +432,42 @@ When present, the `required` attribute specifies that an `<auro-radio>` within t
|
|
|
448
432
|
Use the `reset()` method to reset the `<auro-radio-group>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
|
|
449
433
|
|
|
450
434
|
<div class="exampleWrapper">
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
435
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reset-state.html) -->
|
|
436
|
+
<!-- The below content is automatically added from ./../apiExamples/reset-state.html -->
|
|
437
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
438
|
+
<br/><br/>
|
|
439
|
+
<auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
|
|
440
|
+
<span slot="legend">Form label goes here</span>
|
|
441
|
+
<auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
442
|
+
<auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
443
|
+
<auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
444
|
+
</auro-radio-group>
|
|
445
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
462
446
|
</div>
|
|
463
447
|
<auro-accordion alignRight>
|
|
464
|
-
|
|
448
|
+
<span slot="trigger">See code</span>
|
|
465
449
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.html) -->
|
|
466
450
|
<!-- The below code snippet is automatically added from ./../apiExamples/reset-state.html -->
|
|
467
451
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
</auro-radio-group>
|
|
477
|
-
```
|
|
452
|
+
<pre class="language-html"><code class="language-html"><auro-button id="resetStateBtn">Reset</auro-button>
|
|
453
|
+
<br/><br/>
|
|
454
|
+
<auro-radio-group id="resetStateExample" required setCustomValidityValueMissing="Please select an option">
|
|
455
|
+
<span slot="legend">Form label goes here</span>
|
|
456
|
+
<auro-radio id="resetGroupRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
457
|
+
<auro-radio id="resetGroupRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
458
|
+
<auro-radio id="resetGroupRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
459
|
+
</auro-radio-group></code></pre>
|
|
478
460
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
479
461
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.js) -->
|
|
480
462
|
<!-- The below code snippet is automatically added from ./../apiExamples/reset-state.js -->
|
|
481
463
|
|
|
482
|
-
|
|
483
|
-
export function resetStateExample() {
|
|
464
|
+
<pre class="language-js"><code class="language-js">export function resetStateExample() {
|
|
484
465
|
const elem = document.querySelector('#resetStateExample');
|
|
485
|
-
|
|
486
|
-
document.querySelector('#resetStateBtn').addEventListener('click', ()
|
|
466
|
+
|
|
467
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
487
468
|
elem.reset();
|
|
488
469
|
});
|
|
489
|
-
}
|
|
490
|
-
```
|
|
470
|
+
}</code></pre>
|
|
491
471
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
492
472
|
</auro-accordion>
|
|
493
473
|
|
|
@@ -498,31 +478,29 @@ export function resetStateExample() {
|
|
|
498
478
|
The `<auro-radio-group>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
|
|
499
479
|
|
|
500
480
|
<div class="exampleWrapper">
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
481
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optional-label.html) -->
|
|
482
|
+
<!-- The below content is automatically added from ./../apiExamples/optional-label.html -->
|
|
483
|
+
<auro-radio-group>
|
|
484
|
+
<span slot="legend">Form label goes here</span>
|
|
485
|
+
<span slot="optionalLabel">(add custom label here)</span>
|
|
486
|
+
<auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
487
|
+
<auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
488
|
+
<auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
489
|
+
</auro-radio-group>
|
|
490
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
511
491
|
</div>
|
|
512
492
|
<auro-accordion alignRight>
|
|
513
|
-
|
|
493
|
+
<span slot="trigger">See code</span>
|
|
514
494
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optional-label.html) -->
|
|
515
495
|
<!-- The below code snippet is automatically added from ./../apiExamples/optional-label.html -->
|
|
516
496
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
</auro-radio-group>
|
|
525
|
-
```
|
|
497
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group>
|
|
498
|
+
<span slot="legend">Form label goes here</span>
|
|
499
|
+
<span slot="optionalLabel">(add custom label here)</span>
|
|
500
|
+
<auro-radio id="labelRadio1" label="Yes" name="radioDemo" value="yes"></auro-radio>
|
|
501
|
+
<auro-radio id="labelRadio2" label="No" name="radioDemo" value="no"></auro-radio>
|
|
502
|
+
<auro-radio id="labelRadio3" label="Maybe" name="radioDemo" value="maybe"></auro-radio>
|
|
503
|
+
</auro-radio-group></code></pre>
|
|
526
504
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
527
505
|
</auro-accordion>
|
|
528
506
|
|
|
@@ -535,45 +513,41 @@ This example demonstrates a data drive approach to rendering `<auro-radio>` butt
|
|
|
535
513
|
**Note**: When dynamically creating `<auro-radio>` elements, make sure to add an `id` attribute, as it is a required part of the HTML5 spec for all form elements.
|
|
536
514
|
|
|
537
515
|
<div class="exampleWrapper">
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
516
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamic.html) -->
|
|
517
|
+
<!-- The below content is automatically added from ./../apiExamples/dynamic.html -->
|
|
518
|
+
<auro-radio-group required id="dynamicExample">
|
|
519
|
+
<span slot="legend">Form label goes here</span>
|
|
520
|
+
</auro-radio-group>
|
|
521
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
544
522
|
</div>
|
|
545
523
|
<auro-accordion alignRight>
|
|
546
|
-
|
|
524
|
+
<span slot="trigger">See code</span>
|
|
547
525
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic.html) -->
|
|
548
526
|
<!-- The below code snippet is automatically added from ./../apiExamples/dynamic.html -->
|
|
549
527
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
</auro-radio-group>
|
|
554
|
-
```
|
|
528
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group required id="dynamicExample">
|
|
529
|
+
<span slot="legend">Form label goes here</span>
|
|
530
|
+
</auro-radio-group></code></pre>
|
|
555
531
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
556
532
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic.js) -->
|
|
557
533
|
<!-- The below code snippet is automatically added from ./../apiExamples/dynamic.js -->
|
|
558
534
|
|
|
559
|
-
|
|
560
|
-
export function dynamicExample() {
|
|
535
|
+
<pre class="language-js"><code class="language-js">export function dynamicExample() {
|
|
561
536
|
const values = ['Yes', 'No', 'Maybe'];
|
|
562
537
|
const radioGroup = document.getElementById('dynamicExample');
|
|
563
|
-
|
|
564
|
-
for (let i = 0; i
|
|
538
|
+
|
|
539
|
+
for (let i = 0; i < values.length; i++) {
|
|
565
540
|
const radio = document.createElement('auro-radio');
|
|
566
|
-
|
|
541
|
+
|
|
567
542
|
radio.id = `dynamicRadio${i}`;
|
|
568
543
|
radio.label = values[i];
|
|
569
544
|
radio.name = 'radioDemo';
|
|
570
545
|
radio.value = values[i];
|
|
571
546
|
radio.textContent = values[i];
|
|
572
|
-
|
|
547
|
+
|
|
573
548
|
radioGroup.appendChild(radio);
|
|
574
549
|
}
|
|
575
|
-
}
|
|
576
|
-
```
|
|
550
|
+
}</code></pre>
|
|
577
551
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
578
552
|
</auro-accordion>
|
|
579
553
|
|
|
@@ -582,29 +556,27 @@ export function dynamicExample() {
|
|
|
582
556
|
Example to show text wrapping on multiline labels.
|
|
583
557
|
|
|
584
558
|
<div class="exampleWrapper">
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
559
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/multiline-group.html) -->
|
|
560
|
+
<!-- The below content is automatically added from ./../apiExamples/multiline-group.html -->
|
|
561
|
+
<auro-radio-group>
|
|
562
|
+
<span slot="legend">Form label goes here</span>
|
|
563
|
+
<auro-radio id="basicGroupRadio1" label="Sample text" name="radioDemo" value="option1"></auro-radio>
|
|
564
|
+
<auro-radio id="basicGroupRadio2" label="This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines." name="radioDemo" value="option2"></auro-radio>
|
|
565
|
+
<auro-radio id="basicGroupRadio3" label="Sample text" name="radioDemo" value="option3"></auro-radio>
|
|
566
|
+
</auro-radio-group>
|
|
567
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
594
568
|
</div>
|
|
595
569
|
<auro-accordion alignRight>
|
|
596
|
-
|
|
570
|
+
<span slot="trigger">See code</span>
|
|
597
571
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/multiline-group.html) -->
|
|
598
572
|
<!-- The below code snippet is automatically added from ./../apiExamples/multiline-group.html -->
|
|
599
573
|
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
</auro-radio-group>
|
|
607
|
-
```
|
|
574
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group>
|
|
575
|
+
<span slot="legend">Form label goes here</span>
|
|
576
|
+
<auro-radio id="basicGroupRadio1" label="Sample text" name="radioDemo" value="option1"></auro-radio>
|
|
577
|
+
<auro-radio id="basicGroupRadio2" label="This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines. This text is long enough to wrap onto multiple lines." name="radioDemo" value="option2"></auro-radio>
|
|
578
|
+
<auro-radio id="basicGroupRadio3" label="Sample text" name="radioDemo" value="option3"></auro-radio>
|
|
579
|
+
</auro-radio-group></code></pre>
|
|
608
580
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
609
581
|
</auro-accordion>
|
|
610
582
|
|
|
@@ -614,39 +586,37 @@ This example shows how to use `<auro-accordion>` with the `<auro-radio-group>` a
|
|
|
614
586
|
nested/optional groups (such as a "More Options" section in a payment processor).
|
|
615
587
|
|
|
616
588
|
<div class="exampleWrapper">
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
589
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/accordion-example.html) -->
|
|
590
|
+
<!-- The below content is automatically added from ./../apiExamples/accordion-example.html -->
|
|
591
|
+
<auro-radio-group>
|
|
592
|
+
<span slot="legend">Accordion Test</span>
|
|
593
|
+
<auro-radio id="basicGroupRadio1" label="Credit or debit card" name="creditordebit" value="credit"></auro-radio>
|
|
594
|
+
<auro-radio id="basicGroupRadio2" label="Apple Pay" name="applePay" value="applePay"></auro-radio>
|
|
595
|
+
<auro-radio id="basicGroupRadio3" label="Alaska Airlines Commercial Account" name="alaskaCommercial" value="alaskaCommercial"></auro-radio>
|
|
596
|
+
<auro-accordion>
|
|
597
|
+
<span slot="trigger">More payment options</span>
|
|
598
|
+
<auro-radio id="basicGroupRadio4" label="Click to pay" name="manualCredit" value="manualCredit"></auro-radio>
|
|
599
|
+
<auro-radio id="basicGroupRadio5" label="Google Pay" name="googlePay" value="googlePay"></auro-radio>
|
|
600
|
+
</auro-accordion>
|
|
601
|
+
</auro-radio-group>
|
|
602
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
631
603
|
</div>
|
|
632
604
|
<auro-accordion alignRight>
|
|
633
|
-
|
|
605
|
+
<span slot="trigger">See code</span>
|
|
634
606
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/accordion-example.html) -->
|
|
635
607
|
<!-- The below code snippet is automatically added from ./../apiExamples/accordion-example.html -->
|
|
636
608
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
</auro-radio-group>
|
|
649
|
-
```
|
|
609
|
+
<pre class="language-html"><code class="language-html"><auro-radio-group>
|
|
610
|
+
<span slot="legend">Accordion Test</span>
|
|
611
|
+
<auro-radio id="basicGroupRadio1" label="Credit or debit card" name="creditordebit" value="credit"></auro-radio>
|
|
612
|
+
<auro-radio id="basicGroupRadio2" label="Apple Pay" name="applePay" value="applePay"></auro-radio>
|
|
613
|
+
<auro-radio id="basicGroupRadio3" label="Alaska Airlines Commercial Account" name="alaskaCommercial" value="alaskaCommercial"></auro-radio>
|
|
614
|
+
<auro-accordion>
|
|
615
|
+
<span slot="trigger">More payment options</span>
|
|
616
|
+
<auro-radio id="basicGroupRadio4" label="Click to pay" name="manualCredit" value="manualCredit"></auro-radio>
|
|
617
|
+
<auro-radio id="basicGroupRadio5" label="Google Pay" name="googlePay" value="googlePay"></auro-radio>
|
|
618
|
+
</auro-accordion>
|
|
619
|
+
</auro-radio-group></code></pre>
|
|
650
620
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
651
621
|
</auro-accordion>
|
|
652
622
|
|
|
@@ -657,19 +627,17 @@ The component may be restyled by changing the values of the following token(s).
|
|
|
657
627
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
658
628
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
659
629
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
630
|
+
<pre class="language-scss"><code class="language-scss">@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
631
|
+
|
|
663
632
|
:host {
|
|
664
633
|
// auro-radio-group colors
|
|
665
634
|
--ds-auro-radio-group-label-color: inherit;
|
|
666
|
-
|
|
635
|
+
|
|
667
636
|
// auro-radio colors
|
|
668
637
|
--ds-auro-radio-btn-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
|
|
669
638
|
--ds-auro-radio-btn-fill-color: transparent;
|
|
670
639
|
--ds-auro-radio-btn-inset-color: transparent;
|
|
671
640
|
--ds-auro-radio-label-color: inherit;
|
|
672
641
|
--ds-auro-radio-tap-color: transparent;
|
|
673
|
-
}
|
|
674
|
-
```
|
|
642
|
+
}</code></pre>
|
|
675
643
|
<!-- AURO-GENERATED-CONTENT:END -->
|