@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.
Files changed (106) hide show
  1. package/CHANGELOG.md +12 -6
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
  3. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  5. package/components/bibtemplate/dist/index.js +120 -1659
  6. package/components/bibtemplate/dist/registered.js +120 -1659
  7. package/components/checkbox/demo/api.html +2 -2
  8. package/components/checkbox/demo/api.md +31 -28
  9. package/components/checkbox/demo/api.min.js +148 -10
  10. package/components/checkbox/demo/index.html +1 -1
  11. package/components/checkbox/demo/index.md +18 -18
  12. package/components/checkbox/demo/index.min.js +148 -10
  13. package/components/checkbox/dist/auro-checkbox-group.d.ts +11 -1
  14. package/components/checkbox/dist/auro-checkbox.d.ts +11 -1
  15. package/components/checkbox/dist/index.js +148 -10
  16. package/components/checkbox/dist/registered.js +148 -10
  17. package/components/combobox/demo/api.html +4 -4
  18. package/components/combobox/demo/api.md +256 -63
  19. package/components/combobox/demo/api.min.js +4500 -7887
  20. package/components/combobox/demo/index.html +3 -3
  21. package/components/combobox/demo/index.md +114 -10
  22. package/components/combobox/demo/index.min.js +5671 -9058
  23. package/components/combobox/dist/auro-combobox.d.ts +29 -10
  24. package/components/combobox/dist/index.js +4500 -7510
  25. package/components/combobox/dist/registered.js +4500 -7510
  26. package/components/counter/demo/api.html +3 -3
  27. package/components/counter/demo/api.md +35 -26
  28. package/components/counter/demo/api.min.js +2968 -6073
  29. package/components/counter/demo/index.html +3 -3
  30. package/components/counter/demo/index.md +42 -42
  31. package/components/counter/demo/index.min.js +2968 -6073
  32. package/components/counter/dist/auro-counter-button.d.ts +2 -11
  33. package/components/counter/dist/auro-counter-group.d.ts +11 -1
  34. package/components/counter/dist/auro-counter.d.ts +9 -1
  35. package/components/counter/dist/iconVersion.d.ts +1 -1
  36. package/components/counter/dist/index.js +4915 -8020
  37. package/components/counter/dist/registered.js +4915 -8020
  38. package/components/datepicker/demo/api.html +3 -3
  39. package/components/datepicker/demo/api.md +111 -21
  40. package/components/datepicker/demo/api.min.js +10474 -14790
  41. package/components/datepicker/demo/index.html +2 -2
  42. package/components/datepicker/demo/index.md +30 -30
  43. package/components/datepicker/demo/index.min.js +10474 -14790
  44. package/components/datepicker/dist/auro-calendar-cell.d.ts +6 -0
  45. package/components/datepicker/dist/auro-calendar.d.ts +8 -0
  46. package/components/datepicker/dist/auro-datepicker.d.ts +21 -1
  47. package/components/datepicker/dist/index.js +10367 -14683
  48. package/components/datepicker/dist/registered.js +10367 -14683
  49. package/components/dropdown/demo/api.html +5 -5
  50. package/components/dropdown/demo/api.md +38 -29
  51. package/components/dropdown/demo/api.min.js +88 -417
  52. package/components/dropdown/demo/index.html +3 -3
  53. package/components/dropdown/demo/index.md +16 -16
  54. package/components/dropdown/demo/index.min.js +88 -417
  55. package/components/dropdown/dist/auro-dropdown.d.ts +11 -1
  56. package/components/dropdown/dist/index.js +75 -404
  57. package/components/dropdown/dist/registered.js +75 -404
  58. package/components/form/demo/api.html +1 -1
  59. package/components/form/demo/api.min.js +13 -0
  60. package/components/form/demo/index.html +1 -1
  61. package/components/form/demo/index.min.js +13 -0
  62. package/components/form/demo/working.html +2 -2
  63. package/components/form/dist/index.js +13 -0
  64. package/components/form/dist/registered.js +13 -0
  65. package/components/helptext/dist/auro-helptext.d.ts +11 -1
  66. package/components/helptext/dist/index.js +26 -2
  67. package/components/helptext/dist/registered.js +26 -2
  68. package/components/input/demo/api.html +3 -3
  69. package/components/input/demo/api.js +1 -1
  70. package/components/input/demo/api.md +37 -34
  71. package/components/input/demo/api.min.js +323 -1580
  72. package/components/input/demo/index.html +1 -2
  73. package/components/input/demo/index.md +17 -17
  74. package/components/input/demo/index.min.js +323 -1580
  75. package/components/input/dist/base-input.d.ts +11 -1
  76. package/components/input/dist/buttonVersion.d.ts +1 -1
  77. package/components/input/dist/iconVersion.d.ts +1 -1
  78. package/components/input/dist/index.js +289 -1546
  79. package/components/input/dist/registered.js +289 -1546
  80. package/components/menu/demo/api.html +4 -4
  81. package/components/menu/demo/api.min.js +57 -421
  82. package/components/menu/demo/index.html +1 -1
  83. package/components/menu/demo/index.min.js +57 -421
  84. package/components/menu/dist/iconVersion.d.ts +1 -1
  85. package/components/menu/dist/index.js +49 -413
  86. package/components/menu/dist/registered.js +49 -413
  87. package/components/radio/demo/api.html +2 -2
  88. package/components/radio/demo/api.md +46 -44
  89. package/components/radio/demo/api.min.js +183 -14
  90. package/components/radio/demo/index.html +1 -1
  91. package/components/radio/demo/index.md +12 -12
  92. package/components/radio/demo/index.min.js +183 -14
  93. package/components/radio/dist/auro-radio-group.d.ts +25 -1
  94. package/components/radio/dist/auro-radio.d.ts +11 -1
  95. package/components/radio/dist/index.js +183 -14
  96. package/components/radio/dist/registered.js +183 -14
  97. package/components/select/demo/api.html +4 -4
  98. package/components/select/demo/api.md +20 -19
  99. package/components/select/demo/api.min.js +2859 -4984
  100. package/components/select/demo/index.html +3 -3
  101. package/components/select/demo/index.md +25 -25
  102. package/components/select/demo/index.min.js +2859 -4984
  103. package/components/select/dist/auro-select.d.ts +11 -1
  104. package/components/select/dist/index.js +990 -2738
  105. package/components/select/dist/registered.js +990 -2738
  106. 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/dist/auro-accordion__bundled.js" type="module"></script>
58
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
59
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/dist/auro-icon__bundled.js" type="module"></script>
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 | Attribute | Type | Default | Description |
9
- |------------|------------|-----------|-------------|--------------------------------------------------|
10
- | [disabled](#disabled) | `disabled` | `boolean` | false | Indicates if the counter is disabled. |
11
- | [error](#error) | `error` | `string` | | Error state and message.<br />True if set, value is the error message. |
12
- | [max](#max) | `max` | `number` | 9 | The maximum value for the counter. |
13
- | [min](#min) | `min` | `number` | 0 | The minimum value for the counter. |
14
- | [onDark](#onDark) | `onDark` | `boolean` | false | If declared, the counter will be rendered with onDark styles. |
15
- | [validity](#validity) | `validity` | `string` | "undefined" | The validity state of the counter. |
16
- | [value](#value) | `value` | `number` | "undefined" | The current value of the counter. |
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 | Description |
35
- |---------------|--------------------------------------|
36
- | [default](#default) | Main label content for the counter. |
37
- | [description](#description) | Descriptive content for the counter. |
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 | If declared, counters and dropdown will be rendered with onDark styles. |
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/onDarkDisabled.html) -->
131
- <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
132
- <auro-counter onDark disabled value="0">
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/onDarkDisabled.html) -->
151
- <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
152
- <auro-counter onDark disabled value="0">
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/ondark-counter-error.html) -->
365
- <!-- The below content is automatically added from ./../apiExamples/ondark-counter-error.html -->
366
- <auro-counter ondark error="There is an error with the 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/ondark-counter-error.html) -->
383
- <!-- The below content is automatically added from ./../apiExamples/ondark-counter-error.html -->
384
- <auro-counter ondark error="There is an error with the 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 -->