@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.7 → 0.0.0-pr1628.9

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 (127) 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/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 +22 -19
  22. package/components/combobox/demo/getting-started.min.js +22 -19
  23. package/components/combobox/demo/index.md +1 -1
  24. package/components/combobox/demo/index.min.js +22 -19
  25. package/components/combobox/dist/auro-combobox.d.ts +6 -4
  26. package/components/combobox/dist/index.js +21 -18
  27. package/components/combobox/dist/registered.js +21 -18
  28. package/components/counter/demo/accessibility.md +1 -1
  29. package/components/counter/demo/css-only.md +1 -1
  30. package/components/counter/demo/customize.md +2 -2
  31. package/components/counter/demo/customize.min.js +12 -12
  32. package/components/counter/demo/getting-started.min.js +12 -12
  33. package/components/counter/demo/index.min.js +12 -12
  34. package/components/counter/demo/why-counter.md +3 -3
  35. package/components/counter/dist/auro-counter-group.d.ts +2 -3
  36. package/components/counter/dist/index.js +12 -12
  37. package/components/counter/dist/registered.js +12 -12
  38. package/components/datepicker/README.md +1 -1
  39. package/components/datepicker/demo/accessibility.md +2 -2
  40. package/components/datepicker/demo/css-only.md +4 -4
  41. package/components/datepicker/demo/customize.md +3 -3
  42. package/components/datepicker/demo/customize.min.js +128 -113
  43. package/components/datepicker/demo/design.md +2 -2
  44. package/components/datepicker/demo/getting-started.md +1 -1
  45. package/components/datepicker/demo/getting-started.min.js +128 -113
  46. package/components/datepicker/demo/index.md +2 -2
  47. package/components/datepicker/demo/index.min.js +128 -113
  48. package/components/datepicker/demo/keyboard-behavior.md +1 -1
  49. package/components/datepicker/demo/readme.md +1 -1
  50. package/components/datepicker/demo/voiceover.md +3 -3
  51. package/components/datepicker/demo/why-datepicker.md +3 -3
  52. package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
  53. package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
  54. package/components/datepicker/dist/auro-calendar.d.ts +43 -42
  55. package/components/datepicker/dist/auro-datepicker.d.ts +9 -7
  56. package/components/datepicker/dist/index.js +128 -113
  57. package/components/datepicker/dist/registered.js +128 -113
  58. package/components/datepicker/dist/utilities.d.ts +1 -1
  59. package/components/datepicker/dist/utilitiesCalendar.d.ts +9 -4
  60. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +9 -6
  61. package/components/dropdown/demo/api.md +1 -1
  62. package/components/dropdown/demo/customize.min.js +8 -7
  63. package/components/dropdown/demo/getting-started.min.js +13 -12
  64. package/components/dropdown/demo/index.min.js +8 -7
  65. package/components/dropdown/demo/voiceover.md +1 -1
  66. package/components/dropdown/demo/why-dropdown.md +1 -1
  67. package/components/dropdown/dist/auro-dropdown.d.ts +7 -6
  68. package/components/dropdown/dist/index.js +8 -7
  69. package/components/dropdown/dist/registered.js +8 -7
  70. package/components/form/README.md +1 -1
  71. package/components/form/demo/api.md +1 -1
  72. package/components/form/demo/css-only.md +1 -1
  73. package/components/form/demo/customize.md +2 -0
  74. package/components/form/demo/customize.min.js +185 -168
  75. package/components/form/demo/getting-started.md +2 -0
  76. package/components/form/demo/getting-started.min.js +185 -168
  77. package/components/form/demo/index.min.js +185 -168
  78. package/components/form/demo/keyboard-behavior.md +1 -1
  79. package/components/form/demo/readme.md +1 -1
  80. package/components/form/demo/registerDemoDeps.min.js +184 -167
  81. package/components/form/demo/voiceover.md +2 -2
  82. package/components/form/dist/auro-form.d.ts +1 -1
  83. package/components/form/dist/index.js +1 -1
  84. package/components/form/dist/registered.js +1 -1
  85. package/components/input/demo/api.md +1 -1
  86. package/components/input/demo/css-only.md +4 -4
  87. package/components/input/demo/customize.md +4 -4
  88. package/components/input/demo/customize.min.js +5 -5
  89. package/components/input/demo/design.md +2 -2
  90. package/components/input/demo/getting-started.md +2 -2
  91. package/components/input/demo/getting-started.min.js +5 -5
  92. package/components/input/demo/index.md +1 -1
  93. package/components/input/demo/index.min.js +5 -5
  94. package/components/input/demo/why-input.md +2 -2
  95. package/components/input/dist/auro-input.d.ts +1 -1
  96. package/components/input/dist/base-input.d.ts +3 -3
  97. package/components/input/dist/index.js +5 -5
  98. package/components/input/dist/registered.js +5 -5
  99. package/components/menu/demo/api.md +1 -1
  100. package/components/menu/demo/css-only.md +4 -4
  101. package/components/menu/demo/getting-started.md +2 -2
  102. package/components/menu/demo/index.min.js +1 -1
  103. package/components/menu/demo/why-menu.md +3 -3
  104. package/components/menu/dist/auro-menu.d.ts +1 -1
  105. package/components/menu/dist/index.js +1 -1
  106. package/components/menu/dist/registered.js +1 -1
  107. package/components/radio/demo/api.md +4 -4
  108. package/components/radio/demo/customize.md +14 -4
  109. package/components/radio/demo/customize.min.js +4 -6
  110. package/components/radio/demo/getting-started.md +2 -2
  111. package/components/radio/demo/getting-started.min.js +4 -6
  112. package/components/radio/demo/index.min.js +4 -6
  113. package/components/radio/demo/why-radio.md +1 -1
  114. package/components/radio/dist/auro-radio-group.d.ts +3 -5
  115. package/components/radio/dist/index.js +4 -6
  116. package/components/radio/dist/registered.js +4 -6
  117. package/components/select/demo/css-only.md +1 -1
  118. package/components/select/demo/customize.md +1 -1
  119. package/components/select/demo/customize.min.js +11 -10
  120. package/components/select/demo/getting-started.min.js +11 -10
  121. package/components/select/demo/index.md +1 -1
  122. package/components/select/demo/index.min.js +11 -10
  123. package/components/select/demo/voiceover.md +1 -1
  124. package/components/select/dist/index.js +10 -9
  125. package/components/select/dist/registered.js +10 -9
  126. package/custom-elements.json +88 -84
  127. package/package.json +1 -1
@@ -25,7 +25,7 @@ export class AuroDatepickerUtilities {
25
25
  dom: Document | undefined;
26
26
  svg: ChildNode | null | undefined;
27
27
  /**
28
- * Compares two dates to see if they match.
28
+ * Checks whether two dates are the same moment in time.
29
29
  * @private
30
30
  * @param {Object} date1 - The first date to compare.
31
31
  * @param {Object} date2 - The second date to compare.
@@ -2,7 +2,11 @@
2
2
  * Helpers the datepicker's calendar uses to change the month it shows, show or hide the previous and next month buttons, and scroll to a month.
3
3
  */
4
4
  export class CalendarUtilities {
5
- util: AuroDatepickerUtilities;
5
+ /**
6
+ * The date helpers these methods use.
7
+ * @private
8
+ */
9
+ private util;
6
10
  /**
7
11
  * Scrolls the calendar to the month of a valid date when the window is narrower than the calendar's mobile breakpoint.
8
12
  * @param {Object} elem - The calendar element.
@@ -11,7 +15,8 @@ export class CalendarUtilities {
11
15
  */
12
16
  scrollMonthIntoView(elem: Object, date: string): void;
13
17
  /**
14
- * Sends an event requesting the dropdown bib be closed.
18
+ * Called when someone selects the fullscreen calendar's close button or the Done button.
19
+ * Fires `auroCalendar-dismissRequest` so the datepicker closes the calendar.
15
20
  * @private
16
21
  * @returns {void}
17
22
  */
@@ -23,7 +28,8 @@ export class CalendarUtilities {
23
28
  */
24
29
  assessNavigationButtonVisibility(elem: Object): void;
25
30
  /**
26
- * Handles the change of the centralDate property.
31
+ * Called when the calendar's `centralDate` changes. Updates the previous and next month buttons
32
+ * and fires `auroCalendar-centralDateChanged` with the new date.
27
33
  * @param {Object} elem - The auro-calendar element.
28
34
  * @private
29
35
  * @returns {void}
@@ -37,4 +43,3 @@ export class CalendarUtilities {
37
43
  */
38
44
  handleMonthChange(elem: Object, direction: string): void;
39
45
  }
40
- import { AuroDatepickerUtilities } from './utilities.js';
@@ -2,11 +2,15 @@
2
2
  * Helpers the datepicker and its calendar use to set the month the calendar shows, and to choose and render the calendar's months.
3
3
  */
4
4
  export class UtilitiesCalendarRender {
5
- util: AuroDatepickerUtilities;
5
+ /**
6
+ * The date helpers these methods use.
7
+ * @private
8
+ */
9
+ private util;
6
10
  /**
7
11
  * Sets `centralDate` to the first day of the date's month, when the date is valid.
8
- * @param {Object} elem - The element to set the centralDate on.
9
- * @param {String} date - The date to set the centralDate to.
12
+ * @param {Object} elem - The element to set `centralDate` on.
13
+ * @param {string|Date|number} date - The date whose month to show: an ISO date string, a `Date` object, or a timestamp in milliseconds.
10
14
  * @private
11
15
  */
12
16
  private updateCentralDate;
@@ -41,13 +45,12 @@ export class UtilitiesCalendarRender {
41
45
  */
42
46
  private setFirstRenderableMonthDate;
43
47
  /**
44
- * Renders one auro-calendar-month HTML for the given month/date combination.
48
+ * Renders an `auro-formkit-calendar-month` element for one month.
45
49
  * @private
46
50
  * @param {Object} elem - The auro-calendar element.
47
51
  * @param {Number} month - The month the calendar displays.
48
52
  * @param {Number} year - The year the calendar displays.
49
- * @returns {Object} The auro-calendar-month HTML.
53
+ * @returns {Object} The `auro-formkit-calendar-month` template.
50
54
  */
51
55
  private renderCalendar;
52
56
  }
53
- import { AuroDatepickerUtilities } from './utilities.js';
@@ -24,7 +24,7 @@ A trigger that opens a panel, called the bib, to show interactive content, such
24
24
  | Properties | Attributes | Modifiers | Type | Default | Category | Relevant when | Description |
25
25
  | ----------------------- | ----------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------- | -------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
26
26
  | a11yRole | | | string | `button` | a11y | | Sets the ARIA role of the trigger, such as `combobox` when the trigger shows a chosen value and opens a list of options (the trigger's `role`).<br>Applies only when the `trigger` slot content isn't focusable.<br>With any role other than `button`, the trigger also gets `aria-expanded` and `aria-controls`, and `combobox` adds `aria-haspopup="listbox"`. |
27
- | tabIndex | tabindex | | number | | a11y | | Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).<br>Applies only when the `trigger` slot content isn't focusable. |
27
+ | tabIndex | tabindex | | number | `0` | a11y | | Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).<br>Applies only when the `trigger` slot content isn't focusable. |
28
28
  | appearance | appearance | | `default` \| `inverse` | `default` | ui | | Sets the colors for the background the dropdown sits on.<br>Use `inverse` on dark backgrounds and `default` everywhere else. |
29
29
  | chevron | chevron | | boolean | | ui | | Shows a chevron after the trigger content that points up while the bib is open and down while it's closed. |
30
30
  | desktopModal | desktopmodal | | boolean | | ui | | Makes the open bib act as a modal dialog when it isn't fullscreen.<br>Keyboard focus stays in the bib, and the rest of the page can't be used until the bib closes. |
@@ -4107,7 +4107,7 @@ class AuroHelpText extends i {
4107
4107
  }
4108
4108
  }
4109
4109
 
4110
- var formkitVersion = '202611082102';
4110
+ var formkitVersion = '202611090436';
4111
4111
 
4112
4112
  /**
4113
4113
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -4603,6 +4603,7 @@ class AuroDropdown extends AuroElement {
4603
4603
  /**
4604
4604
  * Removes the trigger's border, background, and shadow.
4605
4605
  * Applies only when `shape` and `size` are both set.
4606
+ * @relevantWhen shape !== undefined && size !== undefined
4606
4607
  * @category ui
4607
4608
  */
4608
4609
  simple: {
@@ -4895,6 +4896,7 @@ class AuroDropdown extends AuroElement {
4895
4896
  /**
4896
4897
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
4897
4898
  * Applies only when the `trigger` slot content isn't focusable.
4899
+ * @default 0
4898
4900
  * @category a11y
4899
4901
  */
4900
4902
  tabIndex: {
@@ -5586,7 +5588,6 @@ class AuroDropdown extends AuroElement {
5586
5588
  *
5587
5589
  * @private
5588
5590
  * @method handleDefaultSlot
5589
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
5590
5591
  */
5591
5592
  handleDefaultSlot() {
5592
5593
 
@@ -5599,7 +5600,7 @@ class AuroDropdown extends AuroElement {
5599
5600
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
5600
5601
  * @private
5601
5602
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
5602
- * @returns {html} - The template for the shared markup.
5603
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
5603
5604
  */
5604
5605
  renderBasicHtml(helpTextClasses) {
5605
5606
  return u$2`
@@ -5661,7 +5662,7 @@ class AuroDropdown extends AuroElement {
5661
5662
  /**
5662
5663
  * Renders the classic layout.
5663
5664
  * @private
5664
- * @returns {html} - The template for the classic layout.
5665
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
5665
5666
  */
5666
5667
  renderLayoutClassic() {
5667
5668
  // TODO: check with Doug why this was never used?
@@ -5677,7 +5678,7 @@ class AuroDropdown extends AuroElement {
5677
5678
  /**
5678
5679
  * Renders the snowflake layout, which indents the help text on both sides.
5679
5680
  * @private
5680
- * @returns {html} - The template for the snowflake layout.
5681
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
5681
5682
  */
5682
5683
  renderLayoutSnowflake() {
5683
5684
  const helpTextClasses = {
@@ -5694,7 +5695,7 @@ class AuroDropdown extends AuroElement {
5694
5695
  /**
5695
5696
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
5696
5697
  * @private
5697
- * @returns {html} - The template for the emphasized layout.
5698
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
5698
5699
  */
5699
5700
  renderLayoutEmphasized() {
5700
5701
  const helpTextClasses = {
@@ -5712,7 +5713,7 @@ class AuroDropdown extends AuroElement {
5712
5713
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
5713
5714
  * @private
5714
5715
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
5715
- * @returns {HTMLCollection} - The template for the layout.
5716
+ * @returns {import('lit').TemplateResult} The template for the layout.
5716
5717
  */
5717
5718
  renderLayout(ForcedLayout) {
5718
5719
  const layout = ForcedLayout || this.layout;
@@ -4107,7 +4107,7 @@ let AuroHelpText$1 = class AuroHelpText extends i {
4107
4107
  }
4108
4108
  };
4109
4109
 
4110
- var formkitVersion$1 = '202611082102';
4110
+ var formkitVersion$1 = '202611090436';
4111
4111
 
4112
4112
  /**
4113
4113
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -4603,6 +4603,7 @@ class AuroDropdown extends AuroElement$1 {
4603
4603
  /**
4604
4604
  * Removes the trigger's border, background, and shadow.
4605
4605
  * Applies only when `shape` and `size` are both set.
4606
+ * @relevantWhen shape !== undefined && size !== undefined
4606
4607
  * @category ui
4607
4608
  */
4608
4609
  simple: {
@@ -4895,6 +4896,7 @@ class AuroDropdown extends AuroElement$1 {
4895
4896
  /**
4896
4897
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
4897
4898
  * Applies only when the `trigger` slot content isn't focusable.
4899
+ * @default 0
4898
4900
  * @category a11y
4899
4901
  */
4900
4902
  tabIndex: {
@@ -5586,7 +5588,6 @@ class AuroDropdown extends AuroElement$1 {
5586
5588
  *
5587
5589
  * @private
5588
5590
  * @method handleDefaultSlot
5589
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
5590
5591
  */
5591
5592
  handleDefaultSlot() {
5592
5593
 
@@ -5599,7 +5600,7 @@ class AuroDropdown extends AuroElement$1 {
5599
5600
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
5600
5601
  * @private
5601
5602
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
5602
- * @returns {html} - The template for the shared markup.
5603
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
5603
5604
  */
5604
5605
  renderBasicHtml(helpTextClasses) {
5605
5606
  return u$6`
@@ -5661,7 +5662,7 @@ class AuroDropdown extends AuroElement$1 {
5661
5662
  /**
5662
5663
  * Renders the classic layout.
5663
5664
  * @private
5664
- * @returns {html} - The template for the classic layout.
5665
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
5665
5666
  */
5666
5667
  renderLayoutClassic() {
5667
5668
  // TODO: check with Doug why this was never used?
@@ -5677,7 +5678,7 @@ class AuroDropdown extends AuroElement$1 {
5677
5678
  /**
5678
5679
  * Renders the snowflake layout, which indents the help text on both sides.
5679
5680
  * @private
5680
- * @returns {html} - The template for the snowflake layout.
5681
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
5681
5682
  */
5682
5683
  renderLayoutSnowflake() {
5683
5684
  const helpTextClasses = {
@@ -5694,7 +5695,7 @@ class AuroDropdown extends AuroElement$1 {
5694
5695
  /**
5695
5696
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
5696
5697
  * @private
5697
- * @returns {html} - The template for the emphasized layout.
5698
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
5698
5699
  */
5699
5700
  renderLayoutEmphasized() {
5700
5701
  const helpTextClasses = {
@@ -5712,7 +5713,7 @@ class AuroDropdown extends AuroElement$1 {
5712
5713
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
5713
5714
  * @private
5714
5715
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
5715
- * @returns {HTMLCollection} - The template for the layout.
5716
+ * @returns {import('lit').TemplateResult} The template for the layout.
5716
5717
  */
5717
5718
  renderLayout(ForcedLayout) {
5718
5719
  const layout = ForcedLayout || this.layout;
@@ -16331,7 +16332,7 @@ class BaseInput extends AuroElement {
16331
16332
  // The initial-load focus theft was caused by the static `autofocus`
16332
16333
  // attribute on the bib input (now conditional), not by delegatesFocus.
16333
16334
  /**
16334
- * Lit's options for creating the shadow root.
16335
+ * Gets the options Lit uses to create the shadow root.
16335
16336
  * @internal
16336
16337
  */
16337
16338
  static get shadowRootOptions() {
@@ -16505,8 +16506,8 @@ class BaseInput extends AuroElement {
16505
16506
  },
16506
16507
 
16507
16508
  /**
16508
- * Sets the field's size. The `classic` shape is the same height at every size, and the
16509
- * emphasized layouts support only `xl`.
16509
+ * Sets the field's height. The `classic` and `snowflake` shapes are the same height at every size,
16510
+ * and the emphasized layouts support only `xl`.
16510
16511
  * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
16511
16512
  * @default 'lg'
16512
16513
  * @category ui
@@ -18302,7 +18303,7 @@ class AuroHelpText extends i {
18302
18303
  }
18303
18304
  }
18304
18305
 
18305
- var formkitVersion = '202611082102';
18306
+ var formkitVersion = '202611090436';
18306
18307
 
18307
18308
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
18308
18309
  // See LICENSE in the project root for license information.
@@ -18761,7 +18762,7 @@ class AuroInput extends BaseInput {
18761
18762
 
18762
18763
  /**
18763
18764
  * Gets the `pattern` for the inner `<input>` element. For credit card numbers,
18764
- * builds a length check from `minLength` and `maxLength` instead.
18765
+ * builds a length check from `minLength` and `maxLength` instead, unless `noValidate` is set.
18765
18766
  * @private
18766
18767
  * @returns {string}
18767
18768
  */
@@ -4134,7 +4134,7 @@ class AuroHelpText extends i {
4134
4134
  }
4135
4135
  }
4136
4136
 
4137
- var formkitVersion = '202611082102';
4137
+ var formkitVersion = '202611090436';
4138
4138
 
4139
4139
  /**
4140
4140
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -4630,6 +4630,7 @@ class AuroDropdown extends AuroElement {
4630
4630
  /**
4631
4631
  * Removes the trigger's border, background, and shadow.
4632
4632
  * Applies only when `shape` and `size` are both set.
4633
+ * @relevantWhen shape !== undefined && size !== undefined
4633
4634
  * @category ui
4634
4635
  */
4635
4636
  simple: {
@@ -4922,6 +4923,7 @@ class AuroDropdown extends AuroElement {
4922
4923
  /**
4923
4924
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
4924
4925
  * Applies only when the `trigger` slot content isn't focusable.
4926
+ * @default 0
4925
4927
  * @category a11y
4926
4928
  */
4927
4929
  tabIndex: {
@@ -5613,7 +5615,6 @@ class AuroDropdown extends AuroElement {
5613
5615
  *
5614
5616
  * @private
5615
5617
  * @method handleDefaultSlot
5616
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
5617
5618
  */
5618
5619
  handleDefaultSlot() {
5619
5620
 
@@ -5626,7 +5627,7 @@ class AuroDropdown extends AuroElement {
5626
5627
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
5627
5628
  * @private
5628
5629
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
5629
- * @returns {html} - The template for the shared markup.
5630
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
5630
5631
  */
5631
5632
  renderBasicHtml(helpTextClasses) {
5632
5633
  return u$2`
@@ -5688,7 +5689,7 @@ class AuroDropdown extends AuroElement {
5688
5689
  /**
5689
5690
  * Renders the classic layout.
5690
5691
  * @private
5691
- * @returns {html} - The template for the classic layout.
5692
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
5692
5693
  */
5693
5694
  renderLayoutClassic() {
5694
5695
  // TODO: check with Doug why this was never used?
@@ -5704,7 +5705,7 @@ class AuroDropdown extends AuroElement {
5704
5705
  /**
5705
5706
  * Renders the snowflake layout, which indents the help text on both sides.
5706
5707
  * @private
5707
- * @returns {html} - The template for the snowflake layout.
5708
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
5708
5709
  */
5709
5710
  renderLayoutSnowflake() {
5710
5711
  const helpTextClasses = {
@@ -5721,7 +5722,7 @@ class AuroDropdown extends AuroElement {
5721
5722
  /**
5722
5723
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
5723
5724
  * @private
5724
- * @returns {html} - The template for the emphasized layout.
5725
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
5725
5726
  */
5726
5727
  renderLayoutEmphasized() {
5727
5728
  const helpTextClasses = {
@@ -5739,7 +5740,7 @@ class AuroDropdown extends AuroElement {
5739
5740
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
5740
5741
  * @private
5741
5742
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
5742
- * @returns {HTMLCollection} - The template for the layout.
5743
+ * @returns {import('lit').TemplateResult} The template for the layout.
5743
5744
  */
5744
5745
  renderLayout(ForcedLayout) {
5745
5746
  const layout = ForcedLayout || this.layout;
@@ -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>
@@ -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 && size !== 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
  }
@@ -4039,7 +4039,7 @@ class AuroHelpText extends LitElement {
4039
4039
  }
4040
4040
  }
4041
4041
 
4042
- var formkitVersion = '202611082102';
4042
+ var formkitVersion = '202611090436';
4043
4043
 
4044
4044
  /**
4045
4045
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -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 && size !== 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;
@@ -4039,7 +4039,7 @@ class AuroHelpText extends LitElement {
4039
4039
  }
4040
4040
  }
4041
4041
 
4042
- var formkitVersion = '202611082102';
4042
+ var formkitVersion = '202611090436';
4043
4043
 
4044
4044
  /**
4045
4045
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -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 && size !== 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**
@@ -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;