@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.1 → 0.0.0-pr1628.11

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 +4 -4
  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 +4 -4
  12. package/components/checkbox/demo/index.md +17 -17
  13. package/components/checkbox/demo/index.min.js +4 -4
  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 +4 -4
  17. package/components/checkbox/dist/registered.js +4 -4
  18. package/components/combobox/demo/api.md +3 -3
  19. package/components/combobox/demo/css-only.md +3 -3
  20. package/components/combobox/demo/customize.md +12 -12
  21. package/components/combobox/demo/customize.min.js +53 -35
  22. package/components/combobox/demo/getting-started.min.js +53 -35
  23. package/components/combobox/demo/index.md +1 -1
  24. package/components/combobox/demo/index.min.js +53 -35
  25. package/components/combobox/dist/auro-combobox.d.ts +6 -4
  26. package/components/combobox/dist/index.js +42 -25
  27. package/components/combobox/dist/registered.js +42 -25
  28. package/components/counter/demo/accessibility.md +1 -1
  29. package/components/counter/demo/api.md +18 -18
  30. package/components/counter/demo/css-only.md +1 -1
  31. package/components/counter/demo/customize.md +2 -2
  32. package/components/counter/demo/customize.min.js +30 -30
  33. package/components/counter/demo/design.md +1 -1
  34. package/components/counter/demo/getting-started.md +29 -2
  35. package/components/counter/demo/getting-started.min.js +30 -30
  36. package/components/counter/demo/index.min.js +30 -30
  37. package/components/counter/demo/why-counter.md +3 -3
  38. package/components/counter/dist/auro-counter-group.d.ts +13 -14
  39. package/components/counter/dist/auro-counter.d.ts +1 -1
  40. package/components/counter/dist/index.js +30 -30
  41. package/components/counter/dist/registered.js +30 -30
  42. package/components/datepicker/README.md +1 -1
  43. package/components/datepicker/demo/accessibility.md +5 -5
  44. package/components/datepicker/demo/api.md +3 -3
  45. package/components/datepicker/demo/css-only.md +4 -4
  46. package/components/datepicker/demo/customize.md +12 -12
  47. package/components/datepicker/demo/customize.min.js +189 -135
  48. package/components/datepicker/demo/design.md +11 -11
  49. package/components/datepicker/demo/getting-started.md +4 -4
  50. package/components/datepicker/demo/getting-started.min.js +189 -135
  51. package/components/datepicker/demo/index.md +5 -5
  52. package/components/datepicker/demo/index.min.js +189 -135
  53. package/components/datepicker/demo/keyboard-behavior.md +1 -1
  54. package/components/datepicker/demo/readme.md +1 -1
  55. package/components/datepicker/demo/voiceover.md +4 -4
  56. package/components/datepicker/demo/why-datepicker.md +3 -3
  57. package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
  58. package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
  59. package/components/datepicker/dist/auro-calendar.d.ts +44 -43
  60. package/components/datepicker/dist/auro-datepicker.d.ts +12 -10
  61. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -0
  62. package/components/datepicker/dist/index.js +189 -135
  63. package/components/datepicker/dist/registered.js +189 -135
  64. package/components/datepicker/dist/utilities.d.ts +4 -1
  65. package/components/datepicker/dist/utilitiesCalendar.d.ts +12 -4
  66. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +12 -6
  67. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +4 -4
  68. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +7 -7
  69. package/components/dropdown/demo/api.md +7 -7
  70. package/components/dropdown/demo/css-only.md +2 -2
  71. package/components/dropdown/demo/customize.md +1 -1
  72. package/components/dropdown/demo/customize.min.js +11 -10
  73. package/components/dropdown/demo/design.md +4 -4
  74. package/components/dropdown/demo/getting-started.min.js +33 -18
  75. package/components/dropdown/demo/index.min.js +11 -10
  76. package/components/dropdown/demo/voiceover.md +1 -1
  77. package/components/dropdown/demo/why-dropdown.md +1 -1
  78. package/components/dropdown/dist/auro-dropdown.d.ts +9 -8
  79. package/components/dropdown/dist/index.js +11 -10
  80. package/components/dropdown/dist/registered.js +11 -10
  81. package/components/form/README.md +1 -1
  82. package/components/form/demo/api.md +7 -7
  83. package/components/form/demo/css-only.md +1 -1
  84. package/components/form/demo/customize.md +2 -0
  85. package/components/form/demo/customize.min.js +329 -243
  86. package/components/form/demo/getting-started.md +2 -0
  87. package/components/form/demo/getting-started.min.js +329 -243
  88. package/components/form/demo/index.md +2 -2
  89. package/components/form/demo/index.min.js +329 -243
  90. package/components/form/demo/keyboard-behavior.md +1 -1
  91. package/components/form/demo/readme.md +1 -1
  92. package/components/form/demo/registerDemoDeps.min.js +327 -241
  93. package/components/form/demo/voiceover.md +3 -3
  94. package/components/form/demo/why-form.md +1 -1
  95. package/components/form/dist/auro-form.d.ts +2 -2
  96. package/components/form/dist/index.js +2 -2
  97. package/components/form/dist/registered.js +2 -2
  98. package/components/helptext/dist/auro-helptext.d.ts +1 -1
  99. package/components/helptext/dist/index.js +1 -1
  100. package/components/helptext/dist/registered.js +1 -1
  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 +22 -8
  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 +22 -8
  108. package/components/input/demo/index.md +1 -1
  109. package/components/input/demo/index.min.js +22 -8
  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 +22 -8
  114. package/components/input/dist/registered.js +22 -8
  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 +11 -13
  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 +11 -13
  137. package/components/radio/demo/index.md +1 -1
  138. package/components/radio/demo/index.min.js +11 -13
  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 +11 -13
  145. package/components/radio/dist/registered.js +11 -13
  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 +29 -26
  150. package/components/select/demo/getting-started.min.js +29 -26
  151. package/components/select/demo/index.md +1 -1
  152. package/components/select/demo/index.min.js +29 -26
  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 +18 -16
  156. package/components/select/dist/registered.js +18 -16
  157. package/custom-elements.json +149 -133
  158. package/package.json +1 -1
@@ -49,7 +49,7 @@
49
49
  <p>For example, a mobile phone or a very small desktop browser window.</p>
50
50
  <ol>
51
51
  <li><strong>Focus trigger:</strong> Announces the trigger label and state.</li>
52
- <li><strong>Open | Expand:</strong> Opens a fullscreen modal; focus is trapped within the bib content.</li>
52
+ <li><strong>Open | Expand:</strong> Opens the bib as a fullscreen modal when the screen is at or below the <code>fullscreenBreakpoint</code> width, and keeps focus in the bib content.</li>
53
53
  <li><strong>Navigate bib content:</strong> Swipe or Tab through focusable elements.</li>
54
54
  <li><strong>Close:</strong> Activate a close button in the bib content, such as the one <code>auro-bibtemplate</code> provides, or use the scrub gesture (two-finger zigzag) to dismiss.</li>
55
55
  </ol>
@@ -6,7 +6,7 @@
6
6
  <ul>
7
7
  <li><strong>Focus trapping:</strong> In desktop modal mode, Tab and Shift+Tab cycle within the dropdown content. The rest of the page becomes inert. The implementation handles focus across shadow DOM boundaries.</li>
8
8
  <li><strong>Native dialog semantics:</strong> On screens at or below the <code>fullscreenBreakpoint</code> you set, the dropdown opens via <code>showModal()</code>, which provides browser-native focus trapping and background inert behavior.</li>
9
- <li><strong>ARIA attributes:</strong> The trigger has a configurable <code>role</code> (default: <code>button</code>), and with other roles, such as <code>combobox</code>, it also carries <code>aria-expanded</code> and <code>aria-controls</code>. The dropdown bib can have an accessible dialog label.</li>
9
+ <li><strong>ARIA attributes:</strong> The trigger has a configurable <code>role</code> (default: <code>button</code>), and with other roles, such as <code>combobox</code>, it also carries <code>aria-expanded</code> and <code>aria-controls</code>. Components that wrap the dropdown, such as <code>auro-select</code>, <code>auro-combobox</code>, and <code>auro-datepicker</code>, give the bib's dialog an accessible name from their own label.</li>
10
10
  <li><strong>Focus routing:</strong> The <code>focus()</code> method moves focus to the first focusable element in the open bib, or to the trigger when the bib is closed.</li>
11
11
  <li><strong>Escape to close:</strong> Pressing <code>Escape</code> closes the open bib.</li>
12
12
  </ul>
@@ -28,8 +28,8 @@
28
28
  * @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
29
29
  * @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
30
30
  * @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
31
- * @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
32
- * @event auroDropdown-toggled - Notifies that the bib opened or closed.
31
+ * @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
32
+ * @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
33
33
  * @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
34
34
  */
35
35
  export class AuroDropdown extends AuroElement {
@@ -100,6 +100,7 @@ export class AuroDropdown extends AuroElement {
100
100
  /**
101
101
  * Removes the trigger's border, background, and shadow.
102
102
  * Applies only when `shape` and `size` are both set.
103
+ * @relevantWhen shape !== undefined
103
104
  * @category ui
104
105
  */
105
106
  simple: {
@@ -342,6 +343,7 @@ export class AuroDropdown extends AuroElement {
342
343
  /**
343
344
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
344
345
  * Applies only when the `trigger` slot content isn't focusable.
346
+ * @default 0
345
347
  * @category a11y
346
348
  */
347
349
  tabIndex: {
@@ -600,39 +602,38 @@ export class AuroDropdown extends AuroElement {
600
602
  *
601
603
  * @private
602
604
  * @method handleDefaultSlot
603
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
604
605
  */
605
606
  private handleDefaultSlot;
606
607
  /**
607
608
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
608
609
  * @private
609
610
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
610
- * @returns {html} - The template for the shared markup.
611
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
611
612
  */
612
613
  private renderBasicHtml;
613
614
  /**
614
615
  * Renders the classic layout.
615
616
  * @private
616
- * @returns {html} - The template for the classic layout.
617
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
617
618
  */
618
619
  private renderLayoutClassic;
619
620
  /**
620
621
  * Renders the snowflake layout, which indents the help text on both sides.
621
622
  * @private
622
- * @returns {html} - The template for the snowflake layout.
623
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
623
624
  */
624
625
  private renderLayoutSnowflake;
625
626
  /**
626
627
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
627
628
  * @private
628
- * @returns {html} - The template for the emphasized layout.
629
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
629
630
  */
630
631
  private renderLayoutEmphasized;
631
632
  /**
632
633
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
633
634
  * @private
634
635
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
635
- * @returns {HTMLCollection} - The template for the layout.
636
+ * @returns {import('lit').TemplateResult} The template for the layout.
636
637
  */
637
638
  private renderLayout;
638
639
  }
@@ -3986,7 +3986,7 @@ class AuroHelpText extends LitElement {
3986
3986
  }
3987
3987
 
3988
3988
  /**
3989
- * Called when the slot's content changes and after each update. Checks whether the slot has text, so the element shows only when it does.
3989
+ * Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
3990
3990
  * @param {Event} [event] - The `slotchange` event, when called from one.
3991
3991
  * @returns {void}
3992
3992
  */
@@ -4039,7 +4039,7 @@ class AuroHelpText extends LitElement {
4039
4039
  }
4040
4040
  }
4041
4041
 
4042
- var formkitVersion = '202611081756';
4042
+ var formkitVersion = '202611091610';
4043
4043
 
4044
4044
  /**
4045
4045
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -4205,8 +4205,8 @@ class AuroElement extends LitElement {
4205
4205
  * @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
4206
4206
  * @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
4207
4207
  * @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
4208
- * @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
4209
- * @event auroDropdown-toggled - Notifies that the bib opened or closed.
4208
+ * @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
4209
+ * @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
4210
4210
  * @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
4211
4211
  */
4212
4212
  class AuroDropdown extends AuroElement {
@@ -4535,6 +4535,7 @@ class AuroDropdown extends AuroElement {
4535
4535
  /**
4536
4536
  * Removes the trigger's border, background, and shadow.
4537
4537
  * Applies only when `shape` and `size` are both set.
4538
+ * @relevantWhen shape !== undefined
4538
4539
  * @category ui
4539
4540
  */
4540
4541
  simple: {
@@ -4827,6 +4828,7 @@ class AuroDropdown extends AuroElement {
4827
4828
  /**
4828
4829
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
4829
4830
  * Applies only when the `trigger` slot content isn't focusable.
4831
+ * @default 0
4830
4832
  * @category a11y
4831
4833
  */
4832
4834
  tabIndex: {
@@ -5518,7 +5520,6 @@ class AuroDropdown extends AuroElement {
5518
5520
  *
5519
5521
  * @private
5520
5522
  * @method handleDefaultSlot
5521
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
5522
5523
  */
5523
5524
  handleDefaultSlot() {
5524
5525
 
@@ -5531,7 +5532,7 @@ class AuroDropdown extends AuroElement {
5531
5532
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
5532
5533
  * @private
5533
5534
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
5534
- * @returns {html} - The template for the shared markup.
5535
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
5535
5536
  */
5536
5537
  renderBasicHtml(helpTextClasses) {
5537
5538
  return html$1`
@@ -5593,7 +5594,7 @@ class AuroDropdown extends AuroElement {
5593
5594
  /**
5594
5595
  * Renders the classic layout.
5595
5596
  * @private
5596
- * @returns {html} - The template for the classic layout.
5597
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
5597
5598
  */
5598
5599
  renderLayoutClassic() {
5599
5600
  // TODO: check with Doug why this was never used?
@@ -5609,7 +5610,7 @@ class AuroDropdown extends AuroElement {
5609
5610
  /**
5610
5611
  * Renders the snowflake layout, which indents the help text on both sides.
5611
5612
  * @private
5612
- * @returns {html} - The template for the snowflake layout.
5613
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
5613
5614
  */
5614
5615
  renderLayoutSnowflake() {
5615
5616
  const helpTextClasses = {
@@ -5626,7 +5627,7 @@ class AuroDropdown extends AuroElement {
5626
5627
  /**
5627
5628
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
5628
5629
  * @private
5629
- * @returns {html} - The template for the emphasized layout.
5630
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
5630
5631
  */
5631
5632
  renderLayoutEmphasized() {
5632
5633
  const helpTextClasses = {
@@ -5644,7 +5645,7 @@ class AuroDropdown extends AuroElement {
5644
5645
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
5645
5646
  * @private
5646
5647
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
5647
- * @returns {HTMLCollection} - The template for the layout.
5648
+ * @returns {import('lit').TemplateResult} The template for the layout.
5648
5649
  */
5649
5650
  renderLayout(ForcedLayout) {
5650
5651
  const layout = ForcedLayout || this.layout;
@@ -3986,7 +3986,7 @@ class AuroHelpText extends LitElement {
3986
3986
  }
3987
3987
 
3988
3988
  /**
3989
- * Called when the slot's content changes and after each update. Checks whether the slot has text, so the element shows only when it does.
3989
+ * Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
3990
3990
  * @param {Event} [event] - The `slotchange` event, when called from one.
3991
3991
  * @returns {void}
3992
3992
  */
@@ -4039,7 +4039,7 @@ class AuroHelpText extends LitElement {
4039
4039
  }
4040
4040
  }
4041
4041
 
4042
- var formkitVersion = '202611081756';
4042
+ var formkitVersion = '202611091610';
4043
4043
 
4044
4044
  /**
4045
4045
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -4205,8 +4205,8 @@ class AuroElement extends LitElement {
4205
4205
  * @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
4206
4206
  * @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
4207
4207
  * @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
4208
- * @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
4209
- * @event auroDropdown-toggled - Notifies that the bib opened or closed.
4208
+ * @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
4209
+ * @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
4210
4210
  * @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
4211
4211
  */
4212
4212
  class AuroDropdown extends AuroElement {
@@ -4535,6 +4535,7 @@ class AuroDropdown extends AuroElement {
4535
4535
  /**
4536
4536
  * Removes the trigger's border, background, and shadow.
4537
4537
  * Applies only when `shape` and `size` are both set.
4538
+ * @relevantWhen shape !== undefined
4538
4539
  * @category ui
4539
4540
  */
4540
4541
  simple: {
@@ -4827,6 +4828,7 @@ class AuroDropdown extends AuroElement {
4827
4828
  /**
4828
4829
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
4829
4830
  * Applies only when the `trigger` slot content isn't focusable.
4831
+ * @default 0
4830
4832
  * @category a11y
4831
4833
  */
4832
4834
  tabIndex: {
@@ -5518,7 +5520,6 @@ class AuroDropdown extends AuroElement {
5518
5520
  *
5519
5521
  * @private
5520
5522
  * @method handleDefaultSlot
5521
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
5522
5523
  */
5523
5524
  handleDefaultSlot() {
5524
5525
 
@@ -5531,7 +5532,7 @@ class AuroDropdown extends AuroElement {
5531
5532
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
5532
5533
  * @private
5533
5534
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
5534
- * @returns {html} - The template for the shared markup.
5535
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
5535
5536
  */
5536
5537
  renderBasicHtml(helpTextClasses) {
5537
5538
  return html$1`
@@ -5593,7 +5594,7 @@ class AuroDropdown extends AuroElement {
5593
5594
  /**
5594
5595
  * Renders the classic layout.
5595
5596
  * @private
5596
- * @returns {html} - The template for the classic layout.
5597
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
5597
5598
  */
5598
5599
  renderLayoutClassic() {
5599
5600
  // TODO: check with Doug why this was never used?
@@ -5609,7 +5610,7 @@ class AuroDropdown extends AuroElement {
5609
5610
  /**
5610
5611
  * Renders the snowflake layout, which indents the help text on both sides.
5611
5612
  * @private
5612
- * @returns {html} - The template for the snowflake layout.
5613
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
5613
5614
  */
5614
5615
  renderLayoutSnowflake() {
5615
5616
  const helpTextClasses = {
@@ -5626,7 +5627,7 @@ class AuroDropdown extends AuroElement {
5626
5627
  /**
5627
5628
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
5628
5629
  * @private
5629
- * @returns {html} - The template for the emphasized layout.
5630
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
5630
5631
  */
5631
5632
  renderLayoutEmphasized() {
5632
5633
  const helpTextClasses = {
@@ -5644,7 +5645,7 @@ class AuroDropdown extends AuroElement {
5644
5645
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
5645
5646
  * @private
5646
5647
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
5647
- * @returns {HTMLCollection} - The template for the layout.
5648
+ * @returns {import('lit').TemplateResult} The template for the layout.
5648
5649
  */
5649
5650
  renderLayout(ForcedLayout) {
5650
5651
  const layout = ForcedLayout || this.layout;
@@ -35,5 +35,5 @@ Use `<auro-form>` when you build a form from Auro form elements and want their v
35
35
 
36
36
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeGettingStarted.md) -->
37
37
  <!-- The below content is automatically added from ./docs/partials/readmeGettingStarted.md -->
38
- For Getting Started instructions, visit the [auro-form Getting Started page](https://auro.alaskaair.com/components/auro/form/getting-started).
38
+ For getting started instructions, visit the [`auro-form` getting started page](https://auro.alaskaair.com/components/auro/form/getting-started).
39
39
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -9,7 +9,7 @@ Collects the values and validity of the Auro form elements inside it, and handle
9
9
  - **Collects values**: The form always gathers the value of every named, enabled Auro form element inside it, such as `auro-input` or `auro-select`, into one object in `value`.
10
10
  - **Tracks validity and changes**: The form always reports whether its fields pass validation in `validity`, and whether any field has changed from its starting value in `isInitialState`.
11
11
  - **Manages submit and reset buttons**: The form always turns on a `button` or `auro-button` with `type="submit"` only while no enabled field is invalid or required but empty, and one with `type="reset"` only when the form has changed or holds a value.
12
- - **Submits on Enter**: Pressing Enter in a named, enabled form element always runs `submit()`.
12
+ - **Submits on Enter**: Pressing Enter in a named, enabled form element runs `submit()`, except on the clear button in `auro-input` or `auro-combobox`.
13
13
  - **Skips disabled fields**: The form always leaves fields with the `disabled` attribute out of `value`, validation, and the `submit` event.
14
14
 
15
15
  **Example**
@@ -40,12 +40,12 @@ Collects the values and validity of the Auro form elements inside it, and handle
40
40
 
41
41
  ### Events
42
42
 
43
- | Name | Description |
44
- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
45
- | change | Fires when a child form element's value changes, and when the form rebuilds its state, such as after its content changes or a reset. |
46
- | input | Fires when a child form element receives user input. |
47
- | reset | Fires after the form resets. The event's `detail.previousValue` holds the form's values from just before the reset. |
48
- | submit | Fires when the form is submitted and no enabled field is invalid or required but empty. The event's `detail.value` holds the form's current values. |
43
+ | Name | Description |
44
+ | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
45
+ | change | Fires when a child form element's value changes, and when the form rebuilds its state, such as after its content changes or a reset. |
46
+ | input | Bubbles up from a child form element when it receives user input; the form doesn't fire `input` itself. `auro-counter-group` doesn't currently bubble its `input` event, so listen for `change` to catch every field. |
47
+ | reset | Fires after the form resets. The event's `detail.previousValue` holds the form's values from just before the reset. |
48
+ | submit | Fires when the form is submitted and no enabled field is invalid or required but empty. The event's `detail.value` holds the form's current values. |
49
49
 
50
50
  ### Slots
51
51
 
@@ -1,7 +1,7 @@
1
1
  <auro-header level="1">CSS only with native form</auro-header>
2
2
  <p>When you can't use the <code>&lt;auro-form&gt;</code> web component, lay out a native HTML <code>&lt;form&gt;</code> element with the Auro Design System tokens instead. <code>auro-form</code> has no styles of its own and doesn't lay out its children, so the CSS below is a suggested starting point, not a copy of <code>auro-form</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>.form</code> class. The native <code>&lt;form&gt;</code> element provides the structural container and browser-native constraint validation, but it doesn't provide the cross-field coordination that <code>auro-form</code> adds.</p>
3
3
  <auro-header level="2">Styling a native form</auro-header>
4
- <p>Lay out the native form with the Auro design tokens published by <auro-hyperlink href="https://alaskaairlines.github.io/WebCoreStyleSheets/" target="_blank">@aurodesignsystem/design-tokens</auro-hyperlink>. The pattern below gives fields and actions consistent spacing.</p>
4
+ <p>Lay out the native form with the Auro design tokens published by <auro-hyperlink href="https://github.com/AlaskaAirlines/AuroDesignTokens" target="_blank">@aurodesignsystem/design-tokens</auro-hyperlink>. The pattern below gives fields and actions consistent spacing.</p>
5
5
  <pre><code>@import "./node_modules/@aurodesignsystem/design-tokens/dist/legacy/auro-classic/CSSCustomProperties.css";
6
6
  &#10;.form {
7
7
  display: flex;
@@ -148,6 +148,7 @@
148
148
  <auro-combobox required name="destination">
149
149
  <span slot="label">To</span>
150
150
  <span slot="bib.fullscreen.headline">Search destinations</span>
151
+ <span slot="ariaLabel.input.clear">Clear destination</span>
151
152
  <span slot="ariaLabel.bib.close">Close</span>
152
153
  <auro-menu>
153
154
  <auro-menuoption value="HNL">Honolulu (HNL)</auro-menuoption>
@@ -321,6 +322,7 @@
321
322
  &#10; &lt;auro-combobox required name="destination"&gt;
322
323
  &lt;span slot="label"&gt;To&lt;/span&gt;
323
324
  &lt;span slot="bib.fullscreen.headline"&gt;Search destinations&lt;/span&gt;
325
+ &lt;span slot="ariaLabel.input.clear"&gt;Clear destination&lt;/span&gt;
324
326
  &lt;span slot="ariaLabel.bib.close"&gt;Close&lt;/span&gt;
325
327
  &lt;auro-menu&gt;
326
328
  &lt;auro-menuoption value="HNL"&gt;Honolulu (HNL)&lt;/auro-menuoption&gt;