@aurodesignsystem/auro-formkit 5.6.0 → 5.8.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 +12 -6
- package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +120 -1659
- package/components/bibtemplate/dist/registered.js +120 -1659
- package/components/checkbox/demo/api.html +2 -2
- package/components/checkbox/demo/api.md +31 -28
- package/components/checkbox/demo/api.min.js +148 -10
- package/components/checkbox/demo/index.html +1 -1
- package/components/checkbox/demo/index.md +18 -18
- package/components/checkbox/demo/index.min.js +148 -10
- package/components/checkbox/dist/auro-checkbox-group.d.ts +11 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +11 -1
- package/components/checkbox/dist/index.js +148 -10
- package/components/checkbox/dist/registered.js +148 -10
- package/components/combobox/demo/api.html +4 -4
- package/components/combobox/demo/api.md +256 -63
- package/components/combobox/demo/api.min.js +4500 -7887
- package/components/combobox/demo/index.html +3 -3
- package/components/combobox/demo/index.md +114 -10
- package/components/combobox/demo/index.min.js +5671 -9058
- package/components/combobox/dist/auro-combobox.d.ts +29 -10
- package/components/combobox/dist/index.js +4500 -7510
- package/components/combobox/dist/registered.js +4500 -7510
- package/components/counter/demo/api.html +3 -3
- package/components/counter/demo/api.md +35 -26
- package/components/counter/demo/api.min.js +2968 -6073
- package/components/counter/demo/index.html +3 -3
- package/components/counter/demo/index.md +42 -42
- package/components/counter/demo/index.min.js +2968 -6073
- package/components/counter/dist/auro-counter-button.d.ts +2 -11
- package/components/counter/dist/auro-counter-group.d.ts +11 -1
- package/components/counter/dist/auro-counter.d.ts +9 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +4915 -8020
- package/components/counter/dist/registered.js +4915 -8020
- package/components/datepicker/demo/api.html +3 -3
- package/components/datepicker/demo/api.md +111 -21
- package/components/datepicker/demo/api.min.js +10474 -14790
- package/components/datepicker/demo/index.html +2 -2
- package/components/datepicker/demo/index.md +30 -30
- package/components/datepicker/demo/index.min.js +10474 -14790
- package/components/datepicker/dist/auro-calendar-cell.d.ts +6 -0
- package/components/datepicker/dist/auro-calendar.d.ts +8 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -1
- package/components/datepicker/dist/index.js +10367 -14683
- package/components/datepicker/dist/registered.js +10367 -14683
- package/components/dropdown/demo/api.html +5 -5
- package/components/dropdown/demo/api.md +38 -29
- package/components/dropdown/demo/api.min.js +88 -417
- package/components/dropdown/demo/index.html +3 -3
- package/components/dropdown/demo/index.md +16 -16
- package/components/dropdown/demo/index.min.js +88 -417
- package/components/dropdown/dist/auro-dropdown.d.ts +11 -1
- package/components/dropdown/dist/index.js +75 -404
- package/components/dropdown/dist/registered.js +75 -404
- package/components/form/demo/api.html +1 -1
- package/components/form/demo/api.min.js +13 -0
- package/components/form/demo/index.html +1 -1
- package/components/form/demo/index.min.js +13 -0
- package/components/form/demo/working.html +2 -2
- package/components/form/dist/index.js +13 -0
- package/components/form/dist/registered.js +13 -0
- package/components/helptext/dist/auro-helptext.d.ts +11 -1
- package/components/helptext/dist/index.js +26 -2
- package/components/helptext/dist/registered.js +26 -2
- package/components/input/demo/api.html +3 -3
- package/components/input/demo/api.js +1 -1
- package/components/input/demo/api.md +37 -34
- package/components/input/demo/api.min.js +323 -1580
- package/components/input/demo/index.html +1 -2
- package/components/input/demo/index.md +17 -17
- package/components/input/demo/index.min.js +323 -1580
- package/components/input/dist/base-input.d.ts +11 -1
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +289 -1546
- package/components/input/dist/registered.js +289 -1546
- package/components/menu/demo/api.html +4 -4
- package/components/menu/demo/api.min.js +57 -421
- package/components/menu/demo/index.html +1 -1
- package/components/menu/demo/index.min.js +57 -421
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +49 -413
- package/components/menu/dist/registered.js +49 -413
- package/components/radio/demo/api.html +2 -2
- package/components/radio/demo/api.md +46 -44
- package/components/radio/demo/api.min.js +183 -14
- package/components/radio/demo/index.html +1 -1
- package/components/radio/demo/index.md +12 -12
- package/components/radio/demo/index.min.js +183 -14
- package/components/radio/dist/auro-radio-group.d.ts +25 -1
- package/components/radio/dist/auro-radio.d.ts +11 -1
- package/components/radio/dist/index.js +183 -14
- package/components/radio/dist/registered.js +183 -14
- package/components/select/demo/api.html +4 -4
- package/components/select/demo/api.md +20 -19
- package/components/select/demo/api.min.js +2859 -4984
- package/components/select/demo/index.html +3 -3
- package/components/select/demo/index.md +25 -25
- package/components/select/demo/index.min.js +2859 -4984
- package/components/select/dist/auro-select.d.ts +11 -1
- package/components/select/dist/index.js +990 -2738
- package/components/select/dist/registered.js +990 -2738
- package/package.json +15 -15
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
initExamples();
|
|
55
55
|
</script>
|
|
56
56
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
57
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest
|
|
58
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest
|
|
59
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest
|
|
57
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
58
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
59
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
60
60
|
</body>
|
|
61
61
|
</html>
|
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
## Properties
|
|
7
7
|
|
|
8
|
-
| Property
|
|
9
|
-
|
|
10
|
-
| [
|
|
11
|
-
| [
|
|
12
|
-
| [
|
|
13
|
-
| [
|
|
14
|
-
| [
|
|
15
|
-
| [
|
|
16
|
-
| [
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|--------------|--------------|-----------|-------------|--------------------------------------------------|
|
|
10
|
+
| [appearance](#appearance) | `appearance` | `string` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
11
|
+
| [disabled](#disabled) | `disabled` | `boolean` | false | Indicates if the counter is disabled. |
|
|
12
|
+
| [error](#error) | `error` | `string` | | Error state and message.<br />True if set, value is the error message. |
|
|
13
|
+
| [max](#max) | `max` | `number` | 9 | The maximum value for the counter. |
|
|
14
|
+
| [min](#min) | `min` | `number` | 0 | The minimum value for the counter. |
|
|
15
|
+
| [onDark](#onDark) | `onDark` | `boolean` | false | DEPRECATED - use `appearance` instead. |
|
|
16
|
+
| [validity](#validity) | `validity` | `string` | "undefined" | The validity state of the counter. |
|
|
17
|
+
| [value](#value) | `value` | `number` | "undefined" | The current value of the counter. |
|
|
17
18
|
|
|
18
19
|
## Methods
|
|
19
20
|
|
|
@@ -31,10 +32,13 @@
|
|
|
31
32
|
|
|
32
33
|
## Slots
|
|
33
34
|
|
|
34
|
-
| Name
|
|
35
|
-
|
|
36
|
-
|
|
|
37
|
-
|
|
|
35
|
+
| Name | Description |
|
|
36
|
+
|-------------------|--------------------------------------------|
|
|
37
|
+
| | Main label content for the counter. |
|
|
38
|
+
| `ariaLabel.minus` | Accessible label for the decrement button. |
|
|
39
|
+
| `ariaLabel.plus` | Accessible label for the increment button. |
|
|
40
|
+
| [description](#description) | Descriptive content for the counter. |
|
|
41
|
+
| [helpText](#helpText) | Help text content for the counter. |
|
|
38
42
|
|
|
39
43
|
# auro-counter-group
|
|
40
44
|
|
|
@@ -42,6 +46,7 @@
|
|
|
42
46
|
|
|
43
47
|
| Property | Attribute | Type | Default | Description |
|
|
44
48
|
|---------------------------|---------------------------|--------------------------|----------------|--------------------------------------------------|
|
|
49
|
+
| [appearance](#appearance) | `appearance` | `string` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
45
50
|
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
46
51
|
| [error](#error) | `error` | `string` | | The current error message to display when the component is invalid. |
|
|
47
52
|
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
@@ -53,7 +58,7 @@
|
|
|
53
58
|
| [min](#min) | `min` | `number` | "undefined" | The minimum value allowed for the whole group of counters. |
|
|
54
59
|
| [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`. |
|
|
55
60
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
56
|
-
| [onDark](#onDark) | `onDark` | `boolean` | false |
|
|
61
|
+
| [onDark](#onDark) | `onDark` | `boolean` | false | DEPRECATED - use `appearance` instead. |
|
|
57
62
|
| [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". |
|
|
58
63
|
| [shift](#shift) | `shift` | `boolean` | "false" | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
|
|
59
64
|
| [total](#total) | `total` | `number` | "undefined" | The total value of the counters. |
|
|
@@ -127,9 +132,9 @@
|
|
|
127
132
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
128
133
|
</div>
|
|
129
134
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
130
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
131
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
132
|
-
<auro-counter
|
|
135
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
|
|
136
|
+
<!-- The below content is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
|
|
137
|
+
<auro-counter appearance="inverse" disabled value="0">
|
|
133
138
|
Disabled counter
|
|
134
139
|
<span slot="description">This counter cannot be modified</span>
|
|
135
140
|
</auro-counter>
|
|
@@ -147,9 +152,9 @@
|
|
|
147
152
|
</auro-counter>
|
|
148
153
|
```
|
|
149
154
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
150
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
151
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
152
|
-
<auro-counter
|
|
155
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
|
|
156
|
+
<!-- The below content is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
|
|
157
|
+
<auro-counter appearance="inverse" disabled value="0">
|
|
153
158
|
Disabled counter
|
|
154
159
|
<span slot="description">This counter cannot be modified</span>
|
|
155
160
|
</auro-counter>
|
|
@@ -218,6 +223,8 @@ All available slots for both components:
|
|
|
218
223
|
<!-- Counter with all slots -->
|
|
219
224
|
<auro-counter>
|
|
220
225
|
Default slot content
|
|
226
|
+
<span slot="ariaLabel.minus">Custom Minus Button Label</span>
|
|
227
|
+
<span slot="ariaLabel.plus">Custom Plus Button Label</span>
|
|
221
228
|
<span slot="description">Description slot content</span>
|
|
222
229
|
</auro-counter>
|
|
223
230
|
</auro-counter-group>
|
|
@@ -239,6 +246,8 @@ All available slots for both components:
|
|
|
239
246
|
<!-- Counter with all slots -->
|
|
240
247
|
<auro-counter>
|
|
241
248
|
Default slot content
|
|
249
|
+
<span slot="ariaLabel.minus">Custom Minus Button Label</span>
|
|
250
|
+
<span slot="ariaLabel.plus">Custom Plus Button Label</span>
|
|
242
251
|
<span slot="description">Description slot content</span>
|
|
243
252
|
</auro-counter>
|
|
244
253
|
</auro-counter-group>
|
|
@@ -361,9 +370,9 @@ A custom error can be set on the counter by adding the `error` attribute the des
|
|
|
361
370
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
362
371
|
</div>
|
|
363
372
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
364
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
365
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
366
|
-
<auro-counter
|
|
373
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance-counter-error.html) -->
|
|
374
|
+
<!-- The below content is automatically added from ./../apiExamples/inverseAppearance-counter-error.html -->
|
|
375
|
+
<auro-counter appearance="inverse" error="There is an error with the counter">
|
|
367
376
|
Adults
|
|
368
377
|
</auro-counter>
|
|
369
378
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -379,9 +388,9 @@ A custom error can be set on the counter by adding the `error` attribute the des
|
|
|
379
388
|
</auro-counter>
|
|
380
389
|
```
|
|
381
390
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
382
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
383
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
384
|
-
<auro-counter
|
|
391
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance-counter-error.html) -->
|
|
392
|
+
<!-- The below content is automatically added from ./../apiExamples/inverseAppearance-counter-error.html -->
|
|
393
|
+
<auro-counter appearance="inverse" error="There is an error with the counter">
|
|
385
394
|
Adults
|
|
386
395
|
</auro-counter>
|
|
387
396
|
<!-- AURO-GENERATED-CONTENT:END -->
|