@aurodesignsystem/auro-formkit 2.2.1 → 3.0.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/CHANGELOG.md +49 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +18 -178
- package/components/bibtemplate/dist/registered.js +18 -178
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +2 -1
- package/components/checkbox/demo/api.md +129 -58
- package/components/checkbox/demo/api.min.js +41 -8
- package/components/checkbox/demo/index.html +2 -1
- package/components/checkbox/demo/index.md +116 -50
- package/components/checkbox/demo/index.min.js +41 -8
- package/components/checkbox/demo/readme.html +2 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +8 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -0
- package/components/checkbox/dist/index.js +41 -8
- package/components/checkbox/dist/registered.js +41 -8
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.html +2 -1
- package/components/combobox/demo/api.md +102 -1
- package/components/combobox/demo/api.min.js +238 -988
- package/components/combobox/demo/index.html +2 -4
- package/components/combobox/demo/index.md +32 -0
- package/components/combobox/demo/index.min.js +238 -988
- package/components/combobox/demo/readme.html +2 -1
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +8 -0
- package/components/combobox/dist/index.js +196 -786
- package/components/combobox/dist/registered.js +196 -786
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.html +2 -1
- package/components/counter/demo/api.md +29 -10
- package/components/counter/demo/api.min.js +187 -785
- package/components/counter/demo/index.html +2 -1
- package/components/counter/demo/index.md +104 -8
- package/components/counter/demo/index.min.js +187 -785
- package/components/counter/demo/readme.html +2 -1
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +10 -2
- package/components/counter/dist/auro-counter.d.ts +1 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +187 -785
- package/components/counter/dist/registered.js +187 -785
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.html +2 -4
- package/components/datepicker/demo/api.md +15 -14
- package/components/datepicker/demo/api.min.js +286 -1036
- package/components/datepicker/demo/index.html +2 -4
- package/components/datepicker/demo/index.md +38 -0
- package/components/datepicker/demo/index.min.js +286 -1036
- package/components/datepicker/demo/readme.html +2 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +8 -0
- package/components/datepicker/dist/index.js +286 -1036
- package/components/datepicker/dist/registered.js +286 -1036
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.html +2 -1
- package/components/dropdown/demo/api.md +173 -82
- package/components/dropdown/demo/api.min.js +41 -183
- package/components/dropdown/demo/index.html +2 -1
- package/components/dropdown/demo/index.md +86 -4
- package/components/dropdown/demo/index.min.js +41 -183
- package/components/dropdown/demo/readme.html +2 -1
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +8 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +2 -2
- package/components/dropdown/dist/index.js +41 -183
- package/components/dropdown/dist/registered.js +41 -183
- package/components/form/README.md +1 -1
- package/components/form/demo/api.html +2 -1
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.html +2 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/demo/readme.html +2 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/working.html +2 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/auro-helptext.d.ts +8 -0
- package/components/helptext/dist/index.js +11 -2
- package/components/helptext/dist/registered.js +11 -2
- package/components/input/README.md +1 -1
- package/components/input/demo/api.html +2 -1
- package/components/input/demo/api.js +2 -0
- package/components/input/demo/api.md +108 -18
- package/components/input/demo/api.min.js +117 -402
- package/components/input/demo/index.html +2 -1
- package/components/input/demo/index.md +30 -0
- package/components/input/demo/index.min.js +103 -402
- package/components/input/demo/readme.html +2 -1
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/base-input.d.ts +8 -0
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +103 -402
- package/components/input/dist/registered.js +103 -402
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.html +2 -1
- package/components/menu/demo/api.md +6 -2
- package/components/menu/demo/api.min.js +23 -183
- package/components/menu/demo/index.html +2 -1
- package/components/menu/demo/index.min.js +23 -183
- package/components/menu/demo/readme.html +2 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +23 -183
- package/components/menu/dist/registered.js +23 -183
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.html +2 -1
- package/components/radio/demo/api.md +160 -56
- package/components/radio/demo/api.min.js +35 -8
- package/components/radio/demo/index.html +2 -1
- package/components/radio/demo/index.md +43 -12
- package/components/radio/demo/index.min.js +35 -8
- package/components/radio/demo/readme.html +2 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +6 -0
- package/components/radio/dist/auro-radio.d.ts +6 -0
- package/components/radio/dist/index.js +35 -8
- package/components/radio/dist/registered.js +35 -8
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +2 -1
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +112 -35
- package/components/select/demo/api.min.js +116 -589
- package/components/select/demo/index.html +2 -1
- package/components/select/demo/index.md +100 -0
- package/components/select/demo/index.min.js +116 -576
- package/components/select/demo/readme.html +2 -1
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +8 -0
- package/components/select/dist/index.js +91 -391
- package/components/select/dist/registered.js +91 -391
- package/package.json +23 -23
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +0 -2
- package/components/select/dist/styles/color-css.d.ts +0 -2
- package/components/select/dist/styles/tokens-css.d.ts +0 -2
|
@@ -27,6 +27,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
27
27
|
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
28
28
|
| [noValidate](#noValidate) | `noValidate` | `boolean` | | If set, disables auto-validation on blur. |
|
|
29
29
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
30
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied to the trigger. |
|
|
30
31
|
| [optionSelected](#optionSelected) | `optionSelected` | | | Specifies the current selected menuOption. |
|
|
31
32
|
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
|
|
32
33
|
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
@@ -90,7 +91,24 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
90
91
|
</auro-menu>
|
|
91
92
|
</auro-select>
|
|
92
93
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
93
|
-
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
96
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
|
|
97
|
+
<!-- The below content is automatically added from ./../apiExamples/onDark.html -->
|
|
98
|
+
<auro-select onDark>
|
|
99
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
100
|
+
<span slot="label">Select Example</span>
|
|
101
|
+
<auro-menu>
|
|
102
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
103
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
104
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
105
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
106
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
107
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
108
|
+
</auro-menu>
|
|
109
|
+
</auro-select>
|
|
110
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
111
|
+
</div>
|
|
94
112
|
<auro-accordion alignRight>
|
|
95
113
|
<span slot="trigger">See code</span>
|
|
96
114
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
@@ -111,6 +129,21 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
111
129
|
</auro-select>
|
|
112
130
|
```
|
|
113
131
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
132
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
|
|
133
|
+
<!-- The below content is automatically added from ./../apiExamples/onDark.html -->
|
|
134
|
+
<auro-select onDark>
|
|
135
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
136
|
+
<span slot="label">Select Example</span>
|
|
137
|
+
<auro-menu>
|
|
138
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
139
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
140
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
141
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
142
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
143
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
144
|
+
</auro-menu>
|
|
145
|
+
</auro-select>
|
|
146
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
114
147
|
</auro-accordion>
|
|
115
148
|
|
|
116
149
|
### Property Examples
|
|
@@ -229,20 +262,33 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
|
|
|
229
262
|
</auro-accordion>
|
|
230
263
|
|
|
231
264
|
#### error <a name="error"></a>
|
|
232
|
-
Use the `error` attribute to
|
|
233
|
-
|
|
234
|
-
A custom error message can be set using the `error` attribute, or it can be used in conjuction with the `setCustomValidityCustomError` attribute.
|
|
265
|
+
Use the `error` boolean attribute to toggle the error UI.
|
|
235
266
|
|
|
236
267
|
<div class="exampleWrapper">
|
|
237
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
238
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
239
|
-
<auro-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
268
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
|
|
269
|
+
<!-- The below content is automatically added from ./../apiExamples/error.html -->
|
|
270
|
+
<auro-select error="Custom error message">
|
|
271
|
+
<span slot="label">error select example</span>
|
|
272
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
273
|
+
<label slot="placeholder">Placeholder Text</label>
|
|
274
|
+
<auro-menu>
|
|
275
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
276
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
277
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
278
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
279
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
280
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
281
|
+
</auro-menu>
|
|
282
|
+
</auro-select>
|
|
283
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
284
|
+
</div>
|
|
285
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
286
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
287
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
288
|
+
<auro-select onDark error="Custom error message">
|
|
289
|
+
<span slot="label">error select example</span>
|
|
243
290
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
244
291
|
<label slot="placeholder">Placeholder Text</label>
|
|
245
|
-
<span slot="label">error Select Example</span>
|
|
246
292
|
<auro-menu>
|
|
247
293
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
248
294
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -256,17 +302,14 @@ A custom error message can be set using the `error` attribute, or it can be used
|
|
|
256
302
|
</div>
|
|
257
303
|
<auro-accordion alignRight>
|
|
258
304
|
<span slot="trigger">See code</span>
|
|
259
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
260
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
305
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
|
|
306
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
|
|
261
307
|
|
|
262
308
|
```html
|
|
263
|
-
<auro-
|
|
264
|
-
<
|
|
265
|
-
<br /><br />
|
|
266
|
-
<auro-select id="errorExample" error="Custom error message">
|
|
309
|
+
<auro-select error="Custom error message">
|
|
310
|
+
<span slot="label">error select example</span>
|
|
267
311
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
268
312
|
<label slot="placeholder">Placeholder Text</label>
|
|
269
|
-
<span slot="label">error Select Example</span>
|
|
270
313
|
<auro-menu>
|
|
271
314
|
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
272
315
|
<auro-menuoption value="price">Price</auro-menuoption>
|
|
@@ -278,6 +321,22 @@ A custom error message can be set using the `error` attribute, or it can be used
|
|
|
278
321
|
</auro-select>
|
|
279
322
|
```
|
|
280
323
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
324
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
325
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
326
|
+
<auro-select onDark error="Custom error message">
|
|
327
|
+
<span slot="label">error select example</span>
|
|
328
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
329
|
+
<label slot="placeholder">Placeholder Text</label>
|
|
330
|
+
<auro-menu>
|
|
331
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
332
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
333
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
334
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
335
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
336
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
337
|
+
</auro-menu>
|
|
338
|
+
</auro-select>
|
|
339
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
281
340
|
</auro-accordion>
|
|
282
341
|
|
|
283
342
|
#### disabled <a name="disabled"></a>
|
|
@@ -301,6 +360,24 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
301
360
|
</auro-select>
|
|
302
361
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
303
362
|
</div>
|
|
363
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
364
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
365
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
366
|
+
<auro-select onDark disabled>
|
|
367
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
368
|
+
<label slot="placeholder">Placeholder Text</label>
|
|
369
|
+
<span slot="label">disabled select example</span>
|
|
370
|
+
<auro-menu>
|
|
371
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
372
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
373
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
374
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
375
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
376
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
377
|
+
</auro-menu>
|
|
378
|
+
</auro-select>
|
|
379
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
380
|
+
</div>
|
|
304
381
|
<auro-accordion alignRight>
|
|
305
382
|
<span slot="trigger">See code</span>
|
|
306
383
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
|
|
@@ -322,6 +399,22 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
|
|
|
322
399
|
</auro-select>
|
|
323
400
|
```
|
|
324
401
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
402
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
403
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
404
|
+
<auro-select onDark disabled>
|
|
405
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
406
|
+
<label slot="placeholder">Placeholder Text</label>
|
|
407
|
+
<span slot="label">disabled select example</span>
|
|
408
|
+
<auro-menu>
|
|
409
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
410
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
411
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
412
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
413
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
414
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
415
|
+
</auro-menu>
|
|
416
|
+
</auro-select>
|
|
417
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
325
418
|
</auro-accordion>
|
|
326
419
|
|
|
327
420
|
#### multiselect <a name="multiselect"></a>
|
|
@@ -1039,20 +1132,4 @@ export function valueAlertExample() {
|
|
|
1039
1132
|
}
|
|
1040
1133
|
```
|
|
1041
1134
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1042
|
-
</auro-accordion>
|
|
1043
|
-
|
|
1044
|
-
### Theme Support
|
|
1045
|
-
|
|
1046
|
-
The component may be restyled using the following code sample and changing the values of the following token(s).
|
|
1047
|
-
|
|
1048
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
1049
|
-
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
1050
|
-
|
|
1051
|
-
```scss
|
|
1052
|
-
@import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
|
|
1053
|
-
|
|
1054
|
-
:host {
|
|
1055
|
-
--ds-auro-select-placeholder-text-color: var(--ds-color-text-secondary-default, $ds-color-text-secondary-default);
|
|
1056
|
-
}
|
|
1057
|
-
```
|
|
1058
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1135
|
+
</auro-accordion>
|