@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.0 → 0.0.0-pr1628.10

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 (158) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +1 -1
  3. package/components/bibtemplate/dist/registered.js +1 -1
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/accessibility.md +2 -2
  6. package/components/checkbox/demo/api.md +17 -17
  7. package/components/checkbox/demo/customize.md +16 -16
  8. package/components/checkbox/demo/customize.min.js +3 -3
  9. package/components/checkbox/demo/design.md +24 -24
  10. package/components/checkbox/demo/getting-started.md +33 -27
  11. package/components/checkbox/demo/getting-started.min.js +3 -3
  12. package/components/checkbox/demo/index.md +17 -17
  13. package/components/checkbox/demo/index.min.js +3 -3
  14. package/components/checkbox/demo/readme.md +1 -1
  15. package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
  16. package/components/checkbox/dist/index.js +3 -3
  17. package/components/checkbox/dist/registered.js +3 -3
  18. package/components/combobox/demo/accessibility.md +1 -1
  19. package/components/combobox/demo/api.md +3 -3
  20. package/components/combobox/demo/css-only.md +3 -3
  21. package/components/combobox/demo/customize.md +13 -12
  22. package/components/combobox/demo/customize.min.js +79 -59
  23. package/components/combobox/demo/getting-started.md +4 -4
  24. package/components/combobox/demo/getting-started.min.js +79 -59
  25. package/components/combobox/demo/index.md +2 -2
  26. package/components/combobox/demo/index.min.js +79 -59
  27. package/components/combobox/demo/voiceover.md +1 -1
  28. package/components/combobox/dist/auro-combobox.d.ts +35 -31
  29. package/components/combobox/dist/index.js +68 -49
  30. package/components/combobox/dist/registered.js +68 -49
  31. package/components/counter/demo/accessibility.md +1 -1
  32. package/components/counter/demo/api.md +18 -18
  33. package/components/counter/demo/css-only.md +1 -1
  34. package/components/counter/demo/customize.md +2 -2
  35. package/components/counter/demo/customize.min.js +28 -28
  36. package/components/counter/demo/design.md +1 -1
  37. package/components/counter/demo/getting-started.md +29 -2
  38. package/components/counter/demo/getting-started.min.js +28 -28
  39. package/components/counter/demo/index.min.js +28 -28
  40. package/components/counter/demo/why-counter.md +3 -3
  41. package/components/counter/dist/auro-counter-group.d.ts +13 -14
  42. package/components/counter/dist/auro-counter.d.ts +1 -1
  43. package/components/counter/dist/index.js +28 -28
  44. package/components/counter/dist/registered.js +28 -28
  45. package/components/datepicker/README.md +1 -1
  46. package/components/datepicker/demo/accessibility.md +5 -5
  47. package/components/datepicker/demo/api.md +3 -3
  48. package/components/datepicker/demo/css-only.md +4 -4
  49. package/components/datepicker/demo/customize.md +12 -12
  50. package/components/datepicker/demo/customize.min.js +186 -132
  51. package/components/datepicker/demo/design.md +11 -11
  52. package/components/datepicker/demo/getting-started.md +4 -4
  53. package/components/datepicker/demo/getting-started.min.js +186 -132
  54. package/components/datepicker/demo/index.md +5 -5
  55. package/components/datepicker/demo/index.min.js +186 -132
  56. package/components/datepicker/demo/keyboard-behavior.md +1 -1
  57. package/components/datepicker/demo/readme.md +1 -1
  58. package/components/datepicker/demo/voiceover.md +4 -4
  59. package/components/datepicker/demo/why-datepicker.md +3 -3
  60. package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
  61. package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
  62. package/components/datepicker/dist/auro-calendar.d.ts +44 -43
  63. package/components/datepicker/dist/auro-datepicker.d.ts +12 -10
  64. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -0
  65. package/components/datepicker/dist/index.js +186 -132
  66. package/components/datepicker/dist/registered.js +186 -132
  67. package/components/datepicker/dist/utilities.d.ts +4 -1
  68. package/components/datepicker/dist/utilitiesCalendar.d.ts +12 -4
  69. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +12 -6
  70. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +4 -4
  71. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +7 -7
  72. package/components/dropdown/demo/api.md +7 -7
  73. package/components/dropdown/demo/css-only.md +2 -2
  74. package/components/dropdown/demo/customize.md +1 -1
  75. package/components/dropdown/demo/customize.min.js +10 -9
  76. package/components/dropdown/demo/design.md +4 -4
  77. package/components/dropdown/demo/getting-started.min.js +31 -16
  78. package/components/dropdown/demo/index.min.js +10 -9
  79. package/components/dropdown/demo/voiceover.md +1 -1
  80. package/components/dropdown/demo/why-dropdown.md +1 -1
  81. package/components/dropdown/dist/auro-dropdown.d.ts +9 -8
  82. package/components/dropdown/dist/index.js +10 -9
  83. package/components/dropdown/dist/registered.js +10 -9
  84. package/components/form/README.md +1 -1
  85. package/components/form/demo/api.md +7 -7
  86. package/components/form/demo/css-only.md +1 -1
  87. package/components/form/demo/customize.md +2 -0
  88. package/components/form/demo/customize.min.js +345 -257
  89. package/components/form/demo/getting-started.md +2 -0
  90. package/components/form/demo/getting-started.min.js +345 -257
  91. package/components/form/demo/index.md +2 -2
  92. package/components/form/demo/index.min.js +345 -257
  93. package/components/form/demo/keyboard-behavior.md +1 -1
  94. package/components/form/demo/readme.md +1 -1
  95. package/components/form/demo/registerDemoDeps.min.js +343 -255
  96. package/components/form/demo/voiceover.md +3 -3
  97. package/components/form/demo/why-form.md +1 -1
  98. package/components/form/dist/auro-form.d.ts +2 -2
  99. package/components/form/dist/index.js +2 -2
  100. package/components/form/dist/registered.js +2 -2
  101. package/components/input/demo/api.md +58 -58
  102. package/components/input/demo/css-only.md +4 -4
  103. package/components/input/demo/customize.md +11 -11
  104. package/components/input/demo/customize.min.js +21 -7
  105. package/components/input/demo/design.md +2 -2
  106. package/components/input/demo/getting-started.md +5 -5
  107. package/components/input/demo/getting-started.min.js +21 -7
  108. package/components/input/demo/index.md +1 -1
  109. package/components/input/demo/index.min.js +21 -7
  110. package/components/input/demo/why-input.md +3 -3
  111. package/components/input/dist/auro-input.d.ts +1 -1
  112. package/components/input/dist/base-input.d.ts +6 -5
  113. package/components/input/dist/index.js +21 -7
  114. package/components/input/dist/registered.js +21 -7
  115. package/components/input/dist/utilities.d.ts +11 -0
  116. package/components/menu/demo/accessibility.md +1 -1
  117. package/components/menu/demo/api.md +1 -1
  118. package/components/menu/demo/css-only.md +4 -4
  119. package/components/menu/demo/customize.md +1 -1
  120. package/components/menu/demo/design.md +1 -1
  121. package/components/menu/demo/getting-started.md +3 -3
  122. package/components/menu/demo/index.min.js +11 -10
  123. package/components/menu/demo/keyboard-behavior.md +1 -1
  124. package/components/menu/demo/voiceover.md +1 -1
  125. package/components/menu/demo/why-menu.md +3 -3
  126. package/components/menu/dist/auro-menu.d.ts +10 -9
  127. package/components/menu/dist/auro-menuoption.d.ts +1 -1
  128. package/components/menu/dist/index.js +11 -10
  129. package/components/menu/dist/registered.js +11 -10
  130. package/components/radio/demo/accessibility.md +1 -1
  131. package/components/radio/demo/api.md +10 -10
  132. package/components/radio/demo/customize.md +15 -5
  133. package/components/radio/demo/customize.min.js +10 -12
  134. package/components/radio/demo/design.md +1 -1
  135. package/components/radio/demo/getting-started.md +6 -6
  136. package/components/radio/demo/getting-started.min.js +10 -12
  137. package/components/radio/demo/index.md +1 -1
  138. package/components/radio/demo/index.min.js +10 -12
  139. package/components/radio/demo/keyboard-behavior.md +1 -1
  140. package/components/radio/demo/voiceover.md +1 -1
  141. package/components/radio/demo/why-radio.md +1 -1
  142. package/components/radio/dist/auro-radio-group.d.ts +6 -8
  143. package/components/radio/dist/auro-radio.d.ts +3 -3
  144. package/components/radio/dist/index.js +10 -12
  145. package/components/radio/dist/registered.js +10 -12
  146. package/components/select/demo/api.md +1 -1
  147. package/components/select/demo/css-only.md +1 -1
  148. package/components/select/demo/customize.md +1 -1
  149. package/components/select/demo/customize.min.js +27 -24
  150. package/components/select/demo/getting-started.min.js +27 -24
  151. package/components/select/demo/index.md +1 -1
  152. package/components/select/demo/index.min.js +27 -24
  153. package/components/select/demo/voiceover.md +1 -1
  154. package/components/select/dist/auro-select.d.ts +4 -3
  155. package/components/select/dist/index.js +16 -14
  156. package/components/select/dist/registered.js +16 -14
  157. package/custom-elements.json +159 -143
  158. package/package.json +1 -1
@@ -279,7 +279,7 @@ class AuroRadio extends i$2 {
279
279
  },
280
280
 
281
281
  /**
282
- * ID for input node.
282
+ * Holds the ID of the inner `<input>` element, which its `<label>` points to.
283
283
  * @private
284
284
  */
285
285
  inputId: {
@@ -325,7 +325,7 @@ class AuroRadio extends i$2 {
325
325
  },
326
326
 
327
327
  /**
328
- * Kept out of the API docs, because changing it can easily break accessibility.
328
+ * Sets the host's ARIA role, `radio`. Kept out of the API docs, because changing it can easily break accessibility.
329
329
  * @private
330
330
  */
331
331
  role: {
@@ -334,7 +334,7 @@ class AuroRadio extends i$2 {
334
334
  },
335
335
 
336
336
  /**
337
- * Whether or not the radio button has been touched by the user.
337
+ * Records whether someone has interacted with the radio button.
338
338
  * @private
339
339
  */
340
340
  touched: {
@@ -1338,7 +1338,7 @@ class AuroHelpText extends i$2 {
1338
1338
  }
1339
1339
  }
1340
1340
 
1341
- var formkitVersion = '202611081705';
1341
+ var formkitVersion = '202611091558';
1342
1342
 
1343
1343
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1344
1344
  // See LICENSE in the project root for license information.
@@ -1373,7 +1373,7 @@ var formkitVersion = '202611081705';
1373
1373
  * @csspart radio-group - The `<fieldset>` element, with `role="radiogroup"`, that wraps the legend and the radio buttons.
1374
1374
  * @csspart helpText - The help text element below the group, which shows the help text or the error message.
1375
1375
  * @slot {HTMLSlotElement} legend - Label for the group, such as "Seat preference". Screen readers announce it as the group's name. {@requiredWhen always} {@category ui}
1376
- * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as "- optional". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
1376
+ * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as a translated "(optional)". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
1377
1377
  * @slot {HTMLSlotElement} helpText - Help text shown below the group, such as "Choose one". While the group shows an error, the error message replaces it. {@category ui}
1378
1378
  * @slot default - The `auro-radio` elements in the group.
1379
1379
  * @event auroFormElement-validated - Fires each time the group runs validation, with the result in `event.detail.validity` and `event.detail.message`.
@@ -1483,7 +1483,7 @@ class AuroRadioGroup extends i$2 {
1483
1483
  },
1484
1484
 
1485
1485
  /**
1486
- * Indicates whether the legend slot is set or not.
1486
+ * Records whether the `legend` slot has content.
1487
1487
  * @private
1488
1488
  */
1489
1489
  hasLegend: {
@@ -1534,8 +1534,7 @@ class AuroRadioGroup extends i$2 {
1534
1534
 
1535
1535
  /**
1536
1536
  * Requires a selection in the group and hides the "(optional)" text after the legend.
1537
- * When nothing is selected, the group shows an error after focus leaves it.
1538
- * @relevantWhen !noValidate
1537
+ * Unless `noValidate` is set, the group shows an error when focus leaves it with nothing selected.
1539
1538
  * @category behavior
1540
1539
  */
1541
1540
  required: {
@@ -1546,7 +1545,6 @@ class AuroRadioGroup extends i$2 {
1546
1545
  /**
1547
1546
  * Sets one error message for every kind of error, such as "Choose an option".
1548
1547
  * It replaces the `error` text and the `setCustomValidityValueMissing` and `setCustomValidityCustomError` messages.
1549
- * @relevantWhen !noValidate
1550
1548
  * @category behavior
1551
1549
  */
1552
1550
  setCustomValidity: {
@@ -1557,7 +1555,7 @@ class AuroRadioGroup extends i$2 {
1557
1555
  /**
1558
1556
  * Sets the error message shown while the `error` attribute is set, in place of the attribute's own text.
1559
1557
  * `setCustomValidity` takes priority when both are set.
1560
- * @relevantWhen !noValidate
1558
+ * @relevantWhen error
1561
1559
  * @category behavior
1562
1560
  */
1563
1561
  setCustomValidityCustomError: {
@@ -1568,7 +1566,7 @@ class AuroRadioGroup extends i$2 {
1568
1566
  /**
1569
1567
  * Sets the error message shown when the group is `required` and nothing is selected, such as "Select an option".
1570
1568
  * The group has no default message, so set this or `setCustomValidity` to show one. `setCustomValidity` takes priority when both are set.
1571
- * @relevantWhen !noValidate
1569
+ * @relevantWhen required
1572
1570
  * @category behavior
1573
1571
  */
1574
1572
  setCustomValidityValueMissing: {
@@ -1577,7 +1575,7 @@ class AuroRadioGroup extends i$2 {
1577
1575
  },
1578
1576
 
1579
1577
  /**
1580
- * Indicates whether the radio group is in a dirty state (has been interacted with).
1578
+ * Records whether someone has interacted with the group.
1581
1579
  * @private
1582
1580
  */
1583
1581
  touched: {
@@ -1,4 +1,4 @@
1
- <auro-header level="1" id="overview">Radio - Overview and UX guide</auro-header>
1
+ <auro-header level="1" id="overview">Radio: Overview and UX guide</auro-header>
2
2
  <div class="contentWrapper">
3
3
  <nav>
4
4
  <auro-nav anchorNavContent=".scrollWrapper">
@@ -279,7 +279,7 @@ class AuroRadio extends i$2 {
279
279
  },
280
280
 
281
281
  /**
282
- * ID for input node.
282
+ * Holds the ID of the inner `<input>` element, which its `<label>` points to.
283
283
  * @private
284
284
  */
285
285
  inputId: {
@@ -325,7 +325,7 @@ class AuroRadio extends i$2 {
325
325
  },
326
326
 
327
327
  /**
328
- * Kept out of the API docs, because changing it can easily break accessibility.
328
+ * Sets the host's ARIA role, `radio`. Kept out of the API docs, because changing it can easily break accessibility.
329
329
  * @private
330
330
  */
331
331
  role: {
@@ -334,7 +334,7 @@ class AuroRadio extends i$2 {
334
334
  },
335
335
 
336
336
  /**
337
- * Whether or not the radio button has been touched by the user.
337
+ * Records whether someone has interacted with the radio button.
338
338
  * @private
339
339
  */
340
340
  touched: {
@@ -1338,7 +1338,7 @@ class AuroHelpText extends i$2 {
1338
1338
  }
1339
1339
  }
1340
1340
 
1341
- var formkitVersion = '202611081705';
1341
+ var formkitVersion = '202611091558';
1342
1342
 
1343
1343
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1344
1344
  // See LICENSE in the project root for license information.
@@ -1373,7 +1373,7 @@ var formkitVersion = '202611081705';
1373
1373
  * @csspart radio-group - The `<fieldset>` element, with `role="radiogroup"`, that wraps the legend and the radio buttons.
1374
1374
  * @csspart helpText - The help text element below the group, which shows the help text or the error message.
1375
1375
  * @slot {HTMLSlotElement} legend - Label for the group, such as "Seat preference". Screen readers announce it as the group's name. {@requiredWhen always} {@category ui}
1376
- * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as "- optional". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
1376
+ * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as a translated "(optional)". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
1377
1377
  * @slot {HTMLSlotElement} helpText - Help text shown below the group, such as "Choose one". While the group shows an error, the error message replaces it. {@category ui}
1378
1378
  * @slot default - The `auro-radio` elements in the group.
1379
1379
  * @event auroFormElement-validated - Fires each time the group runs validation, with the result in `event.detail.validity` and `event.detail.message`.
@@ -1483,7 +1483,7 @@ class AuroRadioGroup extends i$2 {
1483
1483
  },
1484
1484
 
1485
1485
  /**
1486
- * Indicates whether the legend slot is set or not.
1486
+ * Records whether the `legend` slot has content.
1487
1487
  * @private
1488
1488
  */
1489
1489
  hasLegend: {
@@ -1534,8 +1534,7 @@ class AuroRadioGroup extends i$2 {
1534
1534
 
1535
1535
  /**
1536
1536
  * Requires a selection in the group and hides the "(optional)" text after the legend.
1537
- * When nothing is selected, the group shows an error after focus leaves it.
1538
- * @relevantWhen !noValidate
1537
+ * Unless `noValidate` is set, the group shows an error when focus leaves it with nothing selected.
1539
1538
  * @category behavior
1540
1539
  */
1541
1540
  required: {
@@ -1546,7 +1545,6 @@ class AuroRadioGroup extends i$2 {
1546
1545
  /**
1547
1546
  * Sets one error message for every kind of error, such as "Choose an option".
1548
1547
  * It replaces the `error` text and the `setCustomValidityValueMissing` and `setCustomValidityCustomError` messages.
1549
- * @relevantWhen !noValidate
1550
1548
  * @category behavior
1551
1549
  */
1552
1550
  setCustomValidity: {
@@ -1557,7 +1555,7 @@ class AuroRadioGroup extends i$2 {
1557
1555
  /**
1558
1556
  * Sets the error message shown while the `error` attribute is set, in place of the attribute's own text.
1559
1557
  * `setCustomValidity` takes priority when both are set.
1560
- * @relevantWhen !noValidate
1558
+ * @relevantWhen error
1561
1559
  * @category behavior
1562
1560
  */
1563
1561
  setCustomValidityCustomError: {
@@ -1568,7 +1566,7 @@ class AuroRadioGroup extends i$2 {
1568
1566
  /**
1569
1567
  * Sets the error message shown when the group is `required` and nothing is selected, such as "Select an option".
1570
1568
  * The group has no default message, so set this or `setCustomValidity` to show one. `setCustomValidity` takes priority when both are set.
1571
- * @relevantWhen !noValidate
1569
+ * @relevantWhen required
1572
1570
  * @category behavior
1573
1571
  */
1574
1572
  setCustomValidityValueMissing: {
@@ -1577,7 +1575,7 @@ class AuroRadioGroup extends i$2 {
1577
1575
  },
1578
1576
 
1579
1577
  /**
1580
- * Indicates whether the radio group is in a dirty state (has been interacted with).
1578
+ * Records whether someone has interacted with the group.
1581
1579
  * @private
1582
1580
  */
1583
1581
  touched: {
@@ -1,4 +1,4 @@
1
- <auro-header level="1" id="overview">Radio - Keyboard behavior</auro-header>
1
+ <auro-header level="1" id="overview">Radio: Keyboard behavior</auro-header>
2
2
  <div class="contentWrapper">
3
3
  <div class="mainContent">
4
4
  <div class="scrollWrapper">
@@ -1,4 +1,4 @@
1
- <auro-header level="1" id="overview">Radio - VoiceOver behavior</auro-header>
1
+ <auro-header level="1" id="overview">Radio: VoiceOver behavior</auro-header>
2
2
  <p>This page documents the VoiceOver experience when using the <code>&lt;auro-radio&gt;</code> component. It covers announcements and gestures for interacting with radio groups.</p>
3
3
  <auro-header level="2" id="voiceOverInteractiveAnnouncements">Interactive announcements</auro-header>
4
4
  <auro-header level="3" id="voiceOverFocusAnnouncement">Focus</auro-header>
@@ -65,7 +65,7 @@
65
65
  </tr>
66
66
  <tr>
67
67
  <td>Roving tabindex</td>
68
- <td>Manual implementation</td>
68
+ <td>Built-in (shared <code>name</code>)</td>
69
69
  <td>Built-in</td>
70
70
  </tr>
71
71
  <tr>
@@ -23,7 +23,7 @@
23
23
  * @csspart radio-group - The `<fieldset>` element, with `role="radiogroup"`, that wraps the legend and the radio buttons.
24
24
  * @csspart helpText - The help text element below the group, which shows the help text or the error message.
25
25
  * @slot {HTMLSlotElement} legend - Label for the group, such as "Seat preference". Screen readers announce it as the group's name. {@requiredWhen always} {@category ui}
26
- * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as "- optional". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
26
+ * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as a translated "(optional)". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
27
27
  * @slot {HTMLSlotElement} helpText - Help text shown below the group, such as "Choose one". While the group shows an error, the error message replaces it. {@category ui}
28
28
  * @slot default - The `auro-radio` elements in the group.
29
29
  * @event auroFormElement-validated - Fires each time the group runs validation, with the result in `event.detail.validity` and `event.detail.message`.
@@ -59,7 +59,7 @@ export class AuroRadioGroup extends LitElement {
59
59
  reflect: boolean;
60
60
  };
61
61
  /**
62
- * Indicates whether the legend slot is set or not.
62
+ * Records whether the `legend` slot has content.
63
63
  * @private
64
64
  */
65
65
  hasLegend: {
@@ -104,8 +104,7 @@ export class AuroRadioGroup extends LitElement {
104
104
  optionSelected: HTMLElement;
105
105
  /**
106
106
  * Requires a selection in the group and hides the "(optional)" text after the legend.
107
- * When nothing is selected, the group shows an error after focus leaves it.
108
- * @relevantWhen !noValidate
107
+ * Unless `noValidate` is set, the group shows an error when focus leaves it with nothing selected.
109
108
  * @category behavior
110
109
  */
111
110
  required: {
@@ -115,7 +114,6 @@ export class AuroRadioGroup extends LitElement {
115
114
  /**
116
115
  * Sets one error message for every kind of error, such as "Choose an option".
117
116
  * It replaces the `error` text and the `setCustomValidityValueMissing` and `setCustomValidityCustomError` messages.
118
- * @relevantWhen !noValidate
119
117
  * @category behavior
120
118
  */
121
119
  setCustomValidity: {
@@ -125,7 +123,7 @@ export class AuroRadioGroup extends LitElement {
125
123
  /**
126
124
  * Sets the error message shown while the `error` attribute is set, in place of the attribute's own text.
127
125
  * `setCustomValidity` takes priority when both are set.
128
- * @relevantWhen !noValidate
126
+ * @relevantWhen error
129
127
  * @category behavior
130
128
  */
131
129
  setCustomValidityCustomError: {
@@ -135,7 +133,7 @@ export class AuroRadioGroup extends LitElement {
135
133
  /**
136
134
  * Sets the error message shown when the group is `required` and nothing is selected, such as "Select an option".
137
135
  * The group has no default message, so set this or `setCustomValidity` to show one. `setCustomValidity` takes priority when both are set.
138
- * @relevantWhen !noValidate
136
+ * @relevantWhen required
139
137
  * @category behavior
140
138
  */
141
139
  setCustomValidityValueMissing: {
@@ -143,7 +141,7 @@ export class AuroRadioGroup extends LitElement {
143
141
  attribute: string;
144
142
  };
145
143
  /**
146
- * Indicates whether the radio group is in a dirty state (has been interacted with).
144
+ * Records whether someone has interacted with the group.
147
145
  * @private
148
146
  */
149
147
  touched: {
@@ -80,7 +80,7 @@ export class AuroRadio extends LitElement {
80
80
  reflect: boolean;
81
81
  };
82
82
  /**
83
- * ID for input node.
83
+ * Holds the ID of the inner `<input>` element, which its `<label>` points to.
84
84
  * @private
85
85
  */
86
86
  inputId: {
@@ -125,7 +125,7 @@ export class AuroRadio extends LitElement {
125
125
  reflect: boolean;
126
126
  };
127
127
  /**
128
- * Kept out of the API docs, because changing it can easily break accessibility.
128
+ * Sets the host's ARIA role, `radio`. Kept out of the API docs, because changing it can easily break accessibility.
129
129
  * @private
130
130
  */
131
131
  role: {
@@ -133,7 +133,7 @@ export class AuroRadio extends LitElement {
133
133
  reflect: boolean;
134
134
  };
135
135
  /**
136
- * Whether or not the radio button has been touched by the user.
136
+ * Records whether someone has interacted with the radio button.
137
137
  * @private
138
138
  */
139
139
  touched: {
@@ -225,7 +225,7 @@ class AuroRadio extends LitElement {
225
225
  },
226
226
 
227
227
  /**
228
- * ID for input node.
228
+ * Holds the ID of the inner `<input>` element, which its `<label>` points to.
229
229
  * @private
230
230
  */
231
231
  inputId: {
@@ -271,7 +271,7 @@ class AuroRadio extends LitElement {
271
271
  },
272
272
 
273
273
  /**
274
- * Kept out of the API docs, because changing it can easily break accessibility.
274
+ * Sets the host's ARIA role, `radio`. Kept out of the API docs, because changing it can easily break accessibility.
275
275
  * @private
276
276
  */
277
277
  role: {
@@ -280,7 +280,7 @@ class AuroRadio extends LitElement {
280
280
  },
281
281
 
282
282
  /**
283
- * Whether or not the radio button has been touched by the user.
283
+ * Records whether someone has interacted with the radio button.
284
284
  * @private
285
285
  */
286
286
  touched: {
@@ -1277,7 +1277,7 @@ class AuroHelpText extends LitElement {
1277
1277
  }
1278
1278
  }
1279
1279
 
1280
- var formkitVersion = '202611081705';
1280
+ var formkitVersion = '202611091558';
1281
1281
 
1282
1282
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1283
1283
  // See LICENSE in the project root for license information.
@@ -1312,7 +1312,7 @@ var formkitVersion = '202611081705';
1312
1312
  * @csspart radio-group - The `<fieldset>` element, with `role="radiogroup"`, that wraps the legend and the radio buttons.
1313
1313
  * @csspart helpText - The help text element below the group, which shows the help text or the error message.
1314
1314
  * @slot {HTMLSlotElement} legend - Label for the group, such as "Seat preference". Screen readers announce it as the group's name. {@requiredWhen always} {@category ui}
1315
- * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as "- optional". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
1315
+ * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as a translated "(optional)". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
1316
1316
  * @slot {HTMLSlotElement} helpText - Help text shown below the group, such as "Choose one". While the group shows an error, the error message replaces it. {@category ui}
1317
1317
  * @slot default - The `auro-radio` elements in the group.
1318
1318
  * @event auroFormElement-validated - Fires each time the group runs validation, with the result in `event.detail.validity` and `event.detail.message`.
@@ -1422,7 +1422,7 @@ class AuroRadioGroup extends LitElement {
1422
1422
  },
1423
1423
 
1424
1424
  /**
1425
- * Indicates whether the legend slot is set or not.
1425
+ * Records whether the `legend` slot has content.
1426
1426
  * @private
1427
1427
  */
1428
1428
  hasLegend: {
@@ -1473,8 +1473,7 @@ class AuroRadioGroup extends LitElement {
1473
1473
 
1474
1474
  /**
1475
1475
  * Requires a selection in the group and hides the "(optional)" text after the legend.
1476
- * When nothing is selected, the group shows an error after focus leaves it.
1477
- * @relevantWhen !noValidate
1476
+ * Unless `noValidate` is set, the group shows an error when focus leaves it with nothing selected.
1478
1477
  * @category behavior
1479
1478
  */
1480
1479
  required: {
@@ -1485,7 +1484,6 @@ class AuroRadioGroup extends LitElement {
1485
1484
  /**
1486
1485
  * Sets one error message for every kind of error, such as "Choose an option".
1487
1486
  * It replaces the `error` text and the `setCustomValidityValueMissing` and `setCustomValidityCustomError` messages.
1488
- * @relevantWhen !noValidate
1489
1487
  * @category behavior
1490
1488
  */
1491
1489
  setCustomValidity: {
@@ -1496,7 +1494,7 @@ class AuroRadioGroup extends LitElement {
1496
1494
  /**
1497
1495
  * Sets the error message shown while the `error` attribute is set, in place of the attribute's own text.
1498
1496
  * `setCustomValidity` takes priority when both are set.
1499
- * @relevantWhen !noValidate
1497
+ * @relevantWhen error
1500
1498
  * @category behavior
1501
1499
  */
1502
1500
  setCustomValidityCustomError: {
@@ -1507,7 +1505,7 @@ class AuroRadioGroup extends LitElement {
1507
1505
  /**
1508
1506
  * Sets the error message shown when the group is `required` and nothing is selected, such as "Select an option".
1509
1507
  * The group has no default message, so set this or `setCustomValidity` to show one. `setCustomValidity` takes priority when both are set.
1510
- * @relevantWhen !noValidate
1508
+ * @relevantWhen required
1511
1509
  * @category behavior
1512
1510
  */
1513
1511
  setCustomValidityValueMissing: {
@@ -1516,7 +1514,7 @@ class AuroRadioGroup extends LitElement {
1516
1514
  },
1517
1515
 
1518
1516
  /**
1519
- * Indicates whether the radio group is in a dirty state (has been interacted with).
1517
+ * Records whether someone has interacted with the group.
1520
1518
  * @private
1521
1519
  */
1522
1520
  touched: {
@@ -225,7 +225,7 @@ class AuroRadio extends LitElement {
225
225
  },
226
226
 
227
227
  /**
228
- * ID for input node.
228
+ * Holds the ID of the inner `<input>` element, which its `<label>` points to.
229
229
  * @private
230
230
  */
231
231
  inputId: {
@@ -271,7 +271,7 @@ class AuroRadio extends LitElement {
271
271
  },
272
272
 
273
273
  /**
274
- * Kept out of the API docs, because changing it can easily break accessibility.
274
+ * Sets the host's ARIA role, `radio`. Kept out of the API docs, because changing it can easily break accessibility.
275
275
  * @private
276
276
  */
277
277
  role: {
@@ -280,7 +280,7 @@ class AuroRadio extends LitElement {
280
280
  },
281
281
 
282
282
  /**
283
- * Whether or not the radio button has been touched by the user.
283
+ * Records whether someone has interacted with the radio button.
284
284
  * @private
285
285
  */
286
286
  touched: {
@@ -1277,7 +1277,7 @@ class AuroHelpText extends LitElement {
1277
1277
  }
1278
1278
  }
1279
1279
 
1280
- var formkitVersion = '202611081705';
1280
+ var formkitVersion = '202611091558';
1281
1281
 
1282
1282
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
1283
1283
  // See LICENSE in the project root for license information.
@@ -1312,7 +1312,7 @@ var formkitVersion = '202611081705';
1312
1312
  * @csspart radio-group - The `<fieldset>` element, with `role="radiogroup"`, that wraps the legend and the radio buttons.
1313
1313
  * @csspart helpText - The help text element below the group, which shows the help text or the error message.
1314
1314
  * @slot {HTMLSlotElement} legend - Label for the group, such as "Seat preference". Screen readers announce it as the group's name. {@requiredWhen always} {@category ui}
1315
- * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as "- optional". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
1315
+ * @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as a translated "(optional)". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
1316
1316
  * @slot {HTMLSlotElement} helpText - Help text shown below the group, such as "Choose one". While the group shows an error, the error message replaces it. {@category ui}
1317
1317
  * @slot default - The `auro-radio` elements in the group.
1318
1318
  * @event auroFormElement-validated - Fires each time the group runs validation, with the result in `event.detail.validity` and `event.detail.message`.
@@ -1422,7 +1422,7 @@ class AuroRadioGroup extends LitElement {
1422
1422
  },
1423
1423
 
1424
1424
  /**
1425
- * Indicates whether the legend slot is set or not.
1425
+ * Records whether the `legend` slot has content.
1426
1426
  * @private
1427
1427
  */
1428
1428
  hasLegend: {
@@ -1473,8 +1473,7 @@ class AuroRadioGroup extends LitElement {
1473
1473
 
1474
1474
  /**
1475
1475
  * Requires a selection in the group and hides the "(optional)" text after the legend.
1476
- * When nothing is selected, the group shows an error after focus leaves it.
1477
- * @relevantWhen !noValidate
1476
+ * Unless `noValidate` is set, the group shows an error when focus leaves it with nothing selected.
1478
1477
  * @category behavior
1479
1478
  */
1480
1479
  required: {
@@ -1485,7 +1484,6 @@ class AuroRadioGroup extends LitElement {
1485
1484
  /**
1486
1485
  * Sets one error message for every kind of error, such as "Choose an option".
1487
1486
  * It replaces the `error` text and the `setCustomValidityValueMissing` and `setCustomValidityCustomError` messages.
1488
- * @relevantWhen !noValidate
1489
1487
  * @category behavior
1490
1488
  */
1491
1489
  setCustomValidity: {
@@ -1496,7 +1494,7 @@ class AuroRadioGroup extends LitElement {
1496
1494
  /**
1497
1495
  * Sets the error message shown while the `error` attribute is set, in place of the attribute's own text.
1498
1496
  * `setCustomValidity` takes priority when both are set.
1499
- * @relevantWhen !noValidate
1497
+ * @relevantWhen error
1500
1498
  * @category behavior
1501
1499
  */
1502
1500
  setCustomValidityCustomError: {
@@ -1507,7 +1505,7 @@ class AuroRadioGroup extends LitElement {
1507
1505
  /**
1508
1506
  * Sets the error message shown when the group is `required` and nothing is selected, such as "Select an option".
1509
1507
  * The group has no default message, so set this or `setCustomValidity` to show one. `setCustomValidity` takes priority when both are set.
1510
- * @relevantWhen !noValidate
1508
+ * @relevantWhen required
1511
1509
  * @category behavior
1512
1510
  */
1513
1511
  setCustomValidityValueMissing: {
@@ -1516,7 +1514,7 @@ class AuroRadioGroup extends LitElement {
1516
1514
  },
1517
1515
 
1518
1516
  /**
1519
- * Indicates whether the radio group is in a dirty state (has been interacted with).
1517
+ * Records whether someone has interacted with the group.
1520
1518
  * @private
1521
1519
  */
1522
1520
  touched: {
@@ -43,7 +43,7 @@ A form control that lets people choose one option, or several, from a list, such
43
43
  | shape | shape | | `classic` \| `pill` \| `pill-left` \| `pill-right` \| `snowflake` | `classic` | ui | | Sets the shape of the trigger. Use `classic` with the classic layout, `pill`, `pill-left`, or `pill-right` with the emphasized layout, and `snowflake` with the snowflake layout. |
44
44
  | shift | shift | | boolean | `false` | ui | `layout === 'emphasized'` | Slides the bib along the trigger's edge to keep it on screen when it would otherwise be cut off.<br>Applies only when `layout="emphasized"`. |
45
45
  | size | size | | `lg` \| `xl` | `lg` | ui | | Sets the height of the trigger. Use `xl` only with the emphasized layout, and `lg` with the other layouts. |
46
- | autoPlacement | autoplacement | | boolean | `false` | ui | | Deprecated: Use `placement` instead.<br>The bib already flips to the opposite side when it doesn't fit, unless `noFlip` is set. |
46
+ | autoPlacement | autoplacement | | boolean | `false` | ui | | Deprecated: Use `placement` instead.<br>Moves the bib to whichever side of the trigger has the most space.<br>The bib already flips to the opposite side when it doesn't fit, unless `noFlip` is set. |
47
47
  | onDark | ondark | | boolean | | ui | | Deprecated: Use `appearance="inverse"` instead.<br>Sets the colors for a dark background. |
48
48
  | autocomplete | autocomplete | | string | | behavior | `layout !== 'emphasized'` | Sets the autofill hint for the hidden native select, such as `country-name` (the native `autocomplete` attribute).<br>Doesn't currently apply when `layout="emphasized"`, which has no hidden native select. |
49
49
  | error | error | | string | | behavior | | Forces the select into the `customError` state and shows this text as the error message, such as `Choose another option`.<br>When `setCustomValidityCustomError` or `setCustomValidity` is set, that message replaces this text.<br>Remove the attribute to clear the error and validate normally. |
@@ -1,7 +1,7 @@
1
1
  <auro-header level="1">CSS only with native select</auro-header>
2
2
  <p>For situations where the <code>&lt;auro-select&gt;</code> web component can't be used, a native HTML <code>&lt;select&gt;</code> element with <code>&lt;option&gt;</code> children can be styled with the Auro Design System tokens to approximate the visual appearance of <code>auro-select</code>. Unlike <auro-hyperlink href="https://auro.alaskaair.com/components/auro/hyperlink/css-only" target="_blank">auro-hyperlink</auro-hyperlink>, <auro-hyperlink href="https://alaskaairlines.github.io/WebCoreStyleSheets/" target="_blank">Web Core Style Sheets</auro-hyperlink> doesn't provide a prebuilt <code>.select</code> class, so the styling must be authored manually using Auro design tokens.</p>
3
3
  <auro-header level="2">Styling a native select</auro-header>
4
- <p>The native select can be reset and restyled with the Auro design tokens published by <auro-hyperlink href="https://alaskaairlines.github.io/WebCoreStyleSheets/" target="_blank">@aurodesignsystem/design-tokens</auro-hyperlink>. Only the closed chrome of <code>&lt;select&gt;</code> can be styled. The dropdown panel that opens when the user activates the control is browser-controlled and largely can't be styled. The pattern below replicates the border, padding, caret, and focus-state colors used by <code>auro-select</code> in its collapsed state.</p>
4
+ <p>Reset and restyle the native select with the Auro design tokens published by <auro-hyperlink href="https://github.com/AlaskaAirlines/AuroDesignTokens" target="_blank">@aurodesignsystem/design-tokens</auro-hyperlink>. Only the closed chrome of <code>&lt;select&gt;</code> can be styled. The dropdown panel that opens when the user activates the control is browser-controlled and largely can't be styled. The pattern below replicates the border, padding, caret, and focus-state colors used by <code>auro-select</code> in its collapsed state.</p>
5
5
  <pre><code>/* Color tokens */
6
6
  @import "./node_modules/@aurodesignsystem/design-tokens/dist/themes/alaska/CSSCustomProperties--alaska.css";
7
7
  /* Size, border-radius, and typography tokens */
@@ -788,7 +788,7 @@
788
788
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/typeahead.md) -->
789
789
  <!-- The below content is automatically added from ./../docs/partials/customize/typeahead.md -->
790
790
  <p>Type-ahead lets a guest jump to an option by typing. As people type, the active option moves to the first option whose <strong>displayed text</strong> starts with the typed characters. This follows the <auro-hyperlink href="https://www.w3.org/WAI/ARIA/apg/patterns/listbox/">WAI-ARIA Listbox pattern</auro-hyperlink> and mirrors native HTML <code>&lt;select&gt;</code> behavior. Matching uses the shown text, not the <code>value</code> attribute.</p>
791
- <p>The <code>typeaheadTimeoutMs</code> attribute (default <code>500</code>) sets how long typed characters keep adding to the search between keystrokes. Repeating the same character cycles through every option starting with it; <code>disabled</code>, <code>hidden</code>, and <code>static</code> options are skipped.</p>
791
+ <p>The <code>typeaheadTimeoutMs</code> attribute (default <code>500</code>) sets how long typed characters keep adding to the search between keystrokes. Repeating the same character cycles through the options that start with it. When an option starts with the repeated characters themselves, such as "Aachen" for <kbd>a</kbd>, <kbd>a</kbd>, type-ahead moves to that option instead. Type-ahead skips <code>disabled</code>, <code>hidden</code>, and <code>static</code> options.</p>
792
792
  <div class="note">
793
793
  <strong>Note:</strong> The <kbd>Space</kbd> key depends on context. When no type-ahead search is in progress, it opens or closes the bib, as elsewhere in <code>&lt;auro-select&gt;</code>. While a type-ahead search is in progress, it adds a space to the search instead, so multi-word options such as "San Francisco" can be matched by typing <kbd>s</kbd>, <kbd>a</kbd>, <kbd>n</kbd>, <kbd>Space</kbd>, <kbd>f</kbd>.
794
794
  </div>