@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
@@ -1114,7 +1114,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
1114
1114
  }
1115
1115
  };
1116
1116
 
1117
- var formkitVersion$1 = '202611081705';
1117
+ var formkitVersion$1 = '202611091558';
1118
1118
 
1119
1119
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1120
1120
  // See LICENSE in the project root for license information.
@@ -1179,7 +1179,7 @@ const keyboardStrategy = {
1179
1179
  * @csspart controlPlus - The plus button, which raises the value by 1.
1180
1180
  * @csspart helpText - The paragraph that shows the help text, or the error message while the counter is invalid.
1181
1181
  *
1182
- * @event input - Notifies that the counter's value has changed.
1182
+ * @event input - Fires whenever `value` changes, including when the counter sets its starting value, with the new number in `event.detail.value`. It doesn't currently bubble, so listen on the counter itself.
1183
1183
  */
1184
1184
  class AuroCounter extends LitElement {
1185
1185
 
@@ -1300,7 +1300,7 @@ class AuroCounter extends LitElement {
1300
1300
  },
1301
1301
 
1302
1302
  /**
1303
- * The trimmed text of the default slot, which `auro-counter-group` shows in its dropdown summary.
1303
+ * Holds the trimmed text of the default slot, which `auro-counter-group` shows in its dropdown summary.
1304
1304
  * @private
1305
1305
  */
1306
1306
  defaultSlot: {
@@ -1338,7 +1338,7 @@ class AuroCounter extends LitElement {
1338
1338
  },
1339
1339
 
1340
1340
  /**
1341
- * Sets a custom error message, such as "Select at least one adult", and marks the counter invalid. The message replaces the help text. Set it with the `error` attribute: setting only the `error` property doesn't currently mark the counter invalid.
1341
+ * Sets a custom error message, such as "Select at least one adult", and marks the counter invalid. The message replaces the help text. Set the `error` attribute before the counter first renders, or call `validate()` after changing it: setting only the property, or changing the attribute later, doesn't currently update `validity`.
1342
1342
  * @category behavior
1343
1343
  */
1344
1344
  error: {
@@ -5711,7 +5711,7 @@ class AuroHelpText extends LitElement {
5711
5711
  }
5712
5712
  }
5713
5713
 
5714
- var formkitVersion = '202611081705';
5714
+ var formkitVersion = '202611091558';
5715
5715
 
5716
5716
  /**
5717
5717
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -5877,8 +5877,8 @@ let AuroElement$1 = class AuroElement extends LitElement {
5877
5877
  * @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
5878
5878
  * @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.
5879
5879
  * @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.
5880
- * @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
5881
- * @event auroDropdown-toggled - Notifies that the bib opened or closed.
5880
+ * @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.
5881
+ * @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`.
5882
5882
  * @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`.
5883
5883
  */
5884
5884
  class AuroDropdown extends AuroElement$1 {
@@ -6207,6 +6207,7 @@ class AuroDropdown extends AuroElement$1 {
6207
6207
  /**
6208
6208
  * Removes the trigger's border, background, and shadow.
6209
6209
  * Applies only when `shape` and `size` are both set.
6210
+ * @relevantWhen shape !== undefined
6210
6211
  * @category ui
6211
6212
  */
6212
6213
  simple: {
@@ -6499,6 +6500,7 @@ class AuroDropdown extends AuroElement$1 {
6499
6500
  /**
6500
6501
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
6501
6502
  * Applies only when the `trigger` slot content isn't focusable.
6503
+ * @default 0
6502
6504
  * @category a11y
6503
6505
  */
6504
6506
  tabIndex: {
@@ -7190,7 +7192,6 @@ class AuroDropdown extends AuroElement$1 {
7190
7192
  *
7191
7193
  * @private
7192
7194
  * @method handleDefaultSlot
7193
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
7194
7195
  */
7195
7196
  handleDefaultSlot() {
7196
7197
 
@@ -7203,7 +7204,7 @@ class AuroDropdown extends AuroElement$1 {
7203
7204
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
7204
7205
  * @private
7205
7206
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
7206
- * @returns {html} - The template for the shared markup.
7207
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
7207
7208
  */
7208
7209
  renderBasicHtml(helpTextClasses) {
7209
7210
  return html`
@@ -7265,7 +7266,7 @@ class AuroDropdown extends AuroElement$1 {
7265
7266
  /**
7266
7267
  * Renders the classic layout.
7267
7268
  * @private
7268
- * @returns {html} - The template for the classic layout.
7269
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
7269
7270
  */
7270
7271
  renderLayoutClassic() {
7271
7272
  // TODO: check with Doug why this was never used?
@@ -7281,7 +7282,7 @@ class AuroDropdown extends AuroElement$1 {
7281
7282
  /**
7282
7283
  * Renders the snowflake layout, which indents the help text on both sides.
7283
7284
  * @private
7284
- * @returns {html} - The template for the snowflake layout.
7285
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
7285
7286
  */
7286
7287
  renderLayoutSnowflake() {
7287
7288
  const helpTextClasses = {
@@ -7298,7 +7299,7 @@ class AuroDropdown extends AuroElement$1 {
7298
7299
  /**
7299
7300
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
7300
7301
  * @private
7301
- * @returns {html} - The template for the emphasized layout.
7302
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
7302
7303
  */
7303
7304
  renderLayoutEmphasized() {
7304
7305
  const helpTextClasses = {
@@ -7316,7 +7317,7 @@ class AuroDropdown extends AuroElement$1 {
7316
7317
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
7317
7318
  * @private
7318
7319
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
7319
- * @returns {HTMLCollection} - The template for the layout.
7320
+ * @returns {import('lit').TemplateResult} The template for the layout.
7320
7321
  */
7321
7322
  renderLayout(ForcedLayout) {
7322
7323
  const layout = ForcedLayout || this.layout;
@@ -7701,7 +7702,7 @@ class AuroBibtemplate extends LitElement {
7701
7702
  }
7702
7703
 
7703
7704
  /**
7704
- * Called on `touchmove`. Stops the page behind the bib from scrolling when the touch is on the bibtemplate's own layout, such as its padding, instead of on slotted content.
7705
+ * Called when a `touchmove` event reaches the element. Stops the page behind the bib from scrolling when the touch is on the bibtemplate's own layout, such as its padding, instead of on slotted content.
7705
7706
  * @param {Event} event - The `touchmove` event.
7706
7707
  * @returns {void}
7707
7708
  */
@@ -8312,7 +8313,7 @@ const counterGroupKeyboardStrategy = {
8312
8313
  * @csspart helpText - The paragraph that shows the help text, or the combined error message while a counter is invalid. Rendered only when `isDropdown` is set.
8313
8314
  *
8314
8315
  * @event auroFormElement-validated - Fires each time the group is validated, with the result in `event.detail.validity` and `event.detail.message`.
8315
- * @event input - Fires when any counter's value changes, with the new `total` and `value` in `event.detail`.
8316
+ * @event input - Fires when any counter's value changes, with the new `total` and `value` in `event.detail`. It doesn't currently bubble, so listen on the group itself.
8316
8317
  */
8317
8318
  class AuroCounterGroup extends AuroElement {
8318
8319
  constructor() {
@@ -8444,8 +8445,8 @@ class AuroCounterGroup extends AuroElement {
8444
8445
  },
8445
8446
 
8446
8447
  /**
8447
- * The current error message to display when the component is invalid.
8448
- * This is set by validation and isn't available to consumers.
8448
+ * Holds the error message shown while the group is invalid.
8449
+ * Validation sets it, and it isn't available to consumers.
8449
8450
  * @private
8450
8451
  */
8451
8452
  errorMessage: {
@@ -8642,7 +8643,7 @@ class AuroCounterGroup extends AuroElement {
8642
8643
  },
8643
8644
 
8644
8645
  /**
8645
- * The current text in the valueText slot.
8646
+ * Holds the text in the `valueText` slot.
8646
8647
  * @category behavior
8647
8648
  * @private
8648
8649
  */
@@ -8655,9 +8656,8 @@ class AuroCounterGroup extends AuroElement {
8655
8656
  }
8656
8657
 
8657
8658
  /**
8658
- * Dynamically disables increment/decrement buttons on a counter based on group value.
8659
- * This method checks the total aggregated value against the group's min and max properties.
8660
- * If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
8659
+ * Turns a counter's minus and plus buttons on or off based on the group's total.
8660
+ * The minus button turns off when the total is at or below `min`; otherwise, the plus button turns off when the total is at or above `max`.
8661
8661
  *
8662
8662
  * @param {HTMLElement} counter - The counter element to potentially disable.
8663
8663
  * @private
@@ -8714,9 +8714,9 @@ class AuroCounterGroup extends AuroElement {
8714
8714
  };
8715
8715
 
8716
8716
  /**
8717
- * Synchronously recomputes this.validity/this.errorMessage from the current
8718
- * validity of the child counters. Extracted from updateValidity() so that
8719
- * validate() can re-apply this aggregation immediately after the shared
8717
+ * Synchronously recomputes `this.validity` and `this.errorMessage` from the current
8718
+ * validity of the child counters. Extracted from `updateValidity()` so that
8719
+ * `validate()` can re-apply this aggregation immediately after the shared
8720
8720
  * validation engine runs, instead of waiting on a deferred timer.
8721
8721
  * @returns {void}
8722
8722
  * @private
@@ -8801,9 +8801,9 @@ class AuroCounterGroup extends AuroElement {
8801
8801
  }
8802
8802
 
8803
8803
  /**
8804
- * Configures the dropdown counters by selecting all `auro-counter` elements,
8805
- * appending them to the `auro-counter-wrapper` element within the shadow DOM,
8806
- * and setting up keyboard navigation and input event listeners.
8804
+ * Finds the dropdown and the counters slotted into its `auro-counter-wrapper`,
8805
+ * adds `input` and `auroFormElement-validated` listeners to each counter, and
8806
+ * updates `value` and the group's validity. Also sets up the bib template when `isDropdown` is set.
8807
8807
  * @private
8808
8808
  */
8809
8809
  configureDropdownCounters() {
@@ -8835,7 +8835,7 @@ class AuroCounterGroup extends AuroElement {
8835
8835
  }
8836
8836
 
8837
8837
  /**
8838
- * Sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
8838
+ * Finds the bib template, closes the dropdown when its close button is clicked, and moves focus to the close button when the fullscreen dropdown opens.
8839
8839
  * @private
8840
8840
  */
8841
8841
  configureBibtemplate() {
@@ -37,5 +37,5 @@ Use the <code>&lt;auro-datepicker&gt;</code> element when people need to:
37
37
 
38
38
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeGettingStarted.md) -->
39
39
  <!-- The below content is automatically added from ./docs/partials/readmeGettingStarted.md -->
40
- For Getting Started instructions, visit the [auro-datepicker Getting Started page](https://auro.alaskaair.com/components/auro/datepicker/getting-started).
40
+ For getting started instructions, visit the [`auro-datepicker` getting started page](https://auro.alaskaair.com/components/auro/datepicker/getting-started).
41
41
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1,4 +1,4 @@
1
- <auro-header level="1" id="overview">Datepicker - Accessibility</auro-header>
1
+ <auro-header level="1" id="overview">Datepicker: Accessibility</auro-header>
2
2
  <div class="contentWrapper">
3
3
  <div class="mainContent">
4
4
  <div class="scrollWrapper">
@@ -13,7 +13,7 @@ The trigger contains one or two `<auro-input>` elements (depending on whether `r
13
13
  | Attribute | Value | Description |
14
14
  |---|---|---|
15
15
  | `<label for>` | slot text | The input gets its accessible name from a `<label>` that holds the `fromLabel` or `toLabel` slot content. |
16
- | `aria-invalid` | `true` / `false` | Reflects whether the current value fails validation. |
16
+ | `aria-invalid` | `true` / `false` | Set to `true` when the value fails validation and `false` when it passes. It's also `true` before the datepicker is first validated, so screen readers can announce a new, empty datepicker as invalid. |
17
17
 
18
18
  <auro-header level="3" id="clearButton">Clear button</auro-header>
19
19
  The clear button (shown when the input has a value) exposes:
@@ -31,13 +31,13 @@ The calendar uses the WAI-ARIA grid pattern for screen reader navigation:
31
31
 
32
32
  | Attribute | Applied to | Description |
33
33
  |---|---|---|
34
- | `role="grid"` | Calendar table | Identifies the calendar as a grid. The month heading is rendered as visible text adjacent to the grid but is excluded from the accessibility tree (announcements are handled via the live region described below). |
34
+ | `role="grid"` | Calendar table | Identifies each month's days as a grid. The month heading above the grid is visible text that screen readers can reach, but it isn't linked to the grid as its name. The live region described below announces month changes. |
35
35
  | `role="rowgroup"` | Body group | Groups the week rows. |
36
36
  | `role="row"` | Week row | Groups each week of date cells. |
37
37
  | `role="columnheader"` | Day-of-week header | Each weekday cell in the header row exposes the abbreviated day name as visible text and the full localized day name via `aria-label`, for example `aria-label="Sunday"`. |
38
38
  | `role="gridcell"` | In-range date cell | Each selectable date cell. Includes `aria-selected`, `aria-current="date"` (for today), and an `aria-label` on the host with the full localized date string. |
39
39
  | Out-of-range date cell | Cells outside the valid min/max range | The button uses the native `disabled` attribute (spec-compliant way to express "not actionable" on a `<button>`) and is filtered out of keyboard navigation. The host cell drops its `role` and `aria-label` so screen readers don't browse into it. No `aria-hidden` or `role="presentation"` is applied. |
40
- | `aria-disabled="true"` | Blackout date cell | Cells for the dates in `blackoutDates`. Unlike out-of-range cells, blackout cells **remain focusable** via arrow-key navigation so screen reader users can discover them. The cell's label adds the `blackoutLabel` text, ", unavailable" by default, to say the date can't be selected. |
40
+ | `aria-disabled="true"` | Blackout date cell | Cells for the dates in `blackoutDates`. Unlike out-of-range cells, blackout cells **remain reachable** with the arrow keys, so screen reader users can discover them. The cell's label adds the `blackoutLabel` text, ", unavailable" by default, to say the date can't be selected. |
41
41
  | `aria-selected` | Date cell host | `"true"` for the selected date(s), `"false"` for all other in-range cells. |
42
42
  | Accessible name | Date cell host | Provided via `aria-label` on the cell host element, kept in sync as the date and selection change, with the button's inner content marked `aria-hidden="true"` so screen readers don't double-announce. Localized label built from `Intl.DateTimeFormat` (weekday, month, day, year), plus any date slot content, such as a price, any popover slot content, the range position label, such as "range start", and availability status (", unavailable" for blackout dates). |
43
43
 
@@ -62,7 +62,7 @@ When the calendar bib opens, focus moves to the calendar grid wrapper (`#calenda
62
62
  <auro-header level="2" id="screenReaderAnnouncements">Screen reader announcements</auro-header>
63
63
  - **Date selection**: When a date is selected, the calendar's live region (`aria-live="assertive"`) announces the formatted date followed by "selected", for example "Wednesday, January 15, 2025, selected". For range datepickers, both the start and end date selections are announced, with the `rangeLabelStart` or `rangeLabelEnd` text.
64
64
  - **Debounced navigation announcement**: During arrow-key navigation, a debounced live region (150 ms) announces the full date context (date, slot content, range position, availability) after the user pauses. This prevents overlapping announcements during rapid navigation.
65
- - **Date cell labels**: Each date cell has an `aria-label` on the host element with the full localized label, including any date slot content, such as a price. VoiceOver reads this content instead of `aria-label`, which iOS VoiceOver does not reliably announce on buttons.
65
+ - **Date cell labels**: Each date cell has an `aria-label` on the host element with the full localized label, including any date slot content, such as a price. The cell's button content is hidden from screen readers, so the date isn't read twice.
66
66
  - **Validation errors**: When a validation error occurs, the error message is rendered with `role="alert"` and `aria-live="assertive"`, causing it to be announced immediately without requiring focus.
67
67
  - **Help text**: The help text isn't currently linked to the inputs with `aria-describedby`, so screen readers don't announce it when an input gets focus.
68
68
 
@@ -10,7 +10,7 @@ A date field that lets people type a date or choose it from a calendar, includin
10
10
  - **Limits and unavailable dates**: `minDate` and `maxDate` turn off dates outside a range, and `blackoutDates` marks single dates people can't select.
11
11
  - **Validation**: `required` shows an error when no date is chosen, and the `setCustomValidity` attributes replace the built-in error messages.
12
12
  - **Content on dates**: The `date_YYYY_MM_DD` and `popover_YYYY_MM_DD` slots add content to a date in the calendar, such as a price.
13
- - **Localization**: `locale` sets the date format and the month and weekday names, and attributes and slots let you translate every other label.
13
+ - **Localization**: `locale` sets the date format and the month and weekday names, and attributes and slots let you translate most other text, except the calendar's Done button and the word "selected" in screen reader announcements.
14
14
  - **Fullscreen on small screens**: `fullscreenBreakpoint` sets the screen size at or below which the calendar opens fullscreen.
15
15
 
16
16
  **Example**
@@ -38,9 +38,9 @@ A date field that lets people type a date or choose it from a calendar, includin
38
38
  | placeholderEndDate | placeholderenddate | | string | | ui | `range` | Sets the hint text shown in the end date input of a range when it's empty. When not set, the end date input uses `placeholder`. |
39
39
  | placement | placement | | `top` \| `right` \| `bottom` \| `left` \| `bottom-start` \| `top-start` \| `top-end` \| `right-start` \| `right-end` \| `bottom-end` \| `left-start` \| `left-end` | `bottom-start` | ui | | Sets where the calendar dropdown opens relative to the input, such as `bottom-start` (below the input, lined up with its start edge). The dropdown still flips to the opposite side when it doesn't fit, unless `noFlip` is set. |
40
40
  | referenceDates | referencedates | | string[] | | ui | | Sets dates to mark in the calendar for comparison, such as the dates of an earlier trip, as an array of ISO date strings (`YYYY-MM-DD`). Marked dates get an outline. Add `popover_YYYY_MM_DD` content to explain why each date is marked. |
41
- | shape | shape | | `box` \| `classic` \| `pill` \| `pill-left` \| `pill-right` \| `rounded` \| `snowflake` | `classic` | ui | | Sets the shape of the datepicker. |
41
+ | shape | shape | | `box` \| `classic` \| `pill` \| `pill-left` \| `pill-right` \| `rounded` \| `snowflake` | `classic` | ui | | Sets the shape of the date field. Use `classic` (the default) with the `classic` layout, and `snowflake` with the `snowflake` layout. |
42
42
  | shift | shift | | boolean | `false` | ui | | Moves the calendar dropdown along the input's edge so the edge of the screen doesn't cut it off. |
43
- | size | size | | `xs` \| `sm` \| `md` \| `lg` \| `xl` | `lg` | ui | | Sets the size of the datepicker. |
43
+ | size | size | | `xs` \| `sm` \| `md` \| `lg` \| `xl` | `lg` | ui | | Sets the height of the date field, from `xs`, the shortest, to `xl`, the tallest. The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. The `rounded` shape supports only `lg`, and the `pill`, `pill-left`, and `pill-right` shapes support only `md` and `xl`. |
44
44
  | stacked | stacked | | boolean | `false` | ui | | Doesn't currently change the datepicker's appearance or behavior. |
45
45
  | autoPlacement | autoplacement | | boolean | `false` | ui | | Deprecated: Use `placement` instead.<br>Places the calendar dropdown on whichever side of the input has the most space. The dropdown already flips to the opposite side when it doesn't fit, unless `noFlip` is set. |
46
46
  | onDark | ondark | | boolean | `false` | ui | | Deprecated: Use `appearance="inverse"` instead.<br>Switches the datepicker to colors designed for dark backgrounds. |
@@ -1,7 +1,7 @@
1
1
  <auro-header level="1">CSS only with native date input</auro-header>
2
2
  <p>For situations where the <code>&lt;auro-datepicker&gt;</code> web component can't be used, a native HTML <code>&lt;input type="date"&gt;</code> element can be styled with the Auro Design System tokens to approximate the visual appearance of <code>auro-datepicker</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>.datepicker</code> class, so the styling must be authored manually using Auro design tokens.</p>
3
3
  <auro-header level="2">Styling a native date input</auro-header>
4
- <p>The native date input 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>. The pattern below replicates the size, border, and focus-state colors used by <code>auro-datepicker</code>. Note that the browser-controlled calendar UI rendered by <code>&lt;input type="date"&gt;</code> can't be styled; only the input chrome (the field itself) responds to CSS.</p>
4
+ <p>Reset and restyle the native date input 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 replicates the size, border, and focus-state colors used by <code>auro-datepicker</code>. Note that the browser-controlled calendar UI rendered by <code>&lt;input type="date"&gt;</code> can't be styled; only the input chrome (the field itself) responds to CSS.</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 */
@@ -58,9 +58,9 @@
58
58
  <auro-header level="3">Date range selection</auro-header>
59
59
  <p>HTML has no native concept of a date range picker. Building one from two <code>&lt;input type="date"&gt;</code> elements requires custom logic for coordinating values, enforcing start-before-end ordering, and providing a unified visual experience. <code>auro-datepicker</code> handles this with a single <code>range</code> attribute, providing two coordinated input fields, visual range highlighting across the calendar grid, customizable ARIA labels for range positions, and automatic value coordination between the start and end dates.</p>
60
60
  <auro-header level="3">Blackout dates</auro-header>
61
- <p>Native date inputs have no mechanism to mark specific dates as unavailable. <code>min</code> and <code>max</code> can restrict to a contiguous range, but they can't express "these specific dates within the range are not selectable." <code>auro-datepicker</code> supports a <code>blackoutDates</code> array of ISO date strings that are visually styled as unavailable, announced to screen readers with a customizable label, focusable but not selectable, and validated on typed input to surface a <code>customError</code> validity state.</p>
61
+ <p>Native date inputs have no mechanism to mark specific dates as unavailable. <code>min</code> and <code>max</code> can restrict to a contiguous range, but they can't express "these specific dates within the range are not selectable." <code>auro-datepicker</code> supports a <code>blackoutDates</code> array of ISO date strings that are visually styled as unavailable, announced to screen readers with a customizable label, reachable with the arrow keys but not selectable, and validated on typed input to surface a <code>customError</code> validity state.</p>
62
62
  <auro-header level="3">Custom validation</auro-header>
63
- <p>Native date validation is limited to <code>required</code>, <code>min</code>, and <code>max</code>, and error messages are browser-controlled. <code>auro-datepicker</code> integrates with the Auro form validation system, exposing per-constraint setters (<code>setCustomValidityValueMissing</code>, <code>setCustomValidityRangeOverflow</code>, <code>setCustomValidityRangeUnderflow</code>, <code>setCustomValidityCustomError</code>), running validation when focus leaves the datepicker, when the end date of a range changes, and when <code>blackoutDates</code> changes, dispatching <code>auroFormElement-validated</code> events, and displaying errors inline via the help text slot.</p>
63
+ <p>Native date validation is limited to <code>required</code>, <code>min</code>, and <code>max</code>, and error messages are browser-controlled. <code>auro-datepicker</code> integrates with the Auro form validation system, exposing per-constraint setters (<code>setCustomValidityValueMissing</code>, <code>setCustomValidityRangeOverflow</code>, <code>setCustomValidityRangeUnderflow</code>, <code>setCustomValidityCustomError</code>), running validation when focus leaves the datepicker, when the end date of a range changes, and when <code>blackoutDates</code> changes, dispatching <code>auroFormElement-validated</code> events, and showing the error message below the datepicker in place of the help text.</p>
64
64
  <auro-header level="3">Responsive layout</auro-header>
65
65
  <p>Native date inputs render a small, browser-controlled popup that can't be styled or repositioned. <code>auro-datepicker</code> adapts to viewport size: on desktop the calendar opens in a dropdown positioned next to the input and always behaves as a modal, keeping focus inside the calendar and making the rest of the page inert; on mobile it opens as a fullscreen dialog via <code>showModal()</code> with a configurable <code>fullscreenBreakpoint</code>; and on desktop range mode it can display two months side-by-side.</p>
66
66
  <auro-header level="3">Localization</auro-header>
@@ -127,7 +127,7 @@
127
127
  <tr>
128
128
  <td>Localization</td>
129
129
  <td>Browser locale only</td>
130
- <td>Fully configurable labels and names</td>
130
+ <td>Most labels and names, except the Done button and the word "selected"</td>
131
131
  </tr>
132
132
  <tr>
133
133
  <td>Dark background support</td>
@@ -1,4 +1,4 @@
1
- <auro-header level="1" id="overview">Datepicker - Customize</auro-header>
1
+ <auro-header level="1" id="overview">Datepicker: Customize</auro-header>
2
2
  <div class="contentWrapper">
3
3
  <nav>
4
4
  <auro-nav anchorNavContent=".scrollWrapper">
@@ -121,17 +121,17 @@
121
121
  </tr>
122
122
  </thead>
123
123
  <tbody>
124
- <tr><td><code>dropdown</code></td><td>The outer dropdown container.</td></tr>
125
- <tr><td><code>trigger</code></td><td>The trigger content container.</td></tr>
124
+ <tr><td><code>dropdown</code></td><td>The dropdown that holds the trigger, the calendar, and the help text.</td></tr>
125
+ <tr><td><code>trigger</code></td><td>The <code>&lt;div&gt;</code> in the dropdown's trigger that holds the calendar icon, the inputs, and the clear button or error icon.</td></tr>
126
126
  <tr><td><code>wrapper</code></td><td>The container inside <code>trigger</code> that lays out the calendar icon, the inputs, and the clear button or error icon.</td></tr>
127
127
  <tr><td><code>mainLabel</code></td><td>The label for the whole datepicker, rendered only when <code>layout="snowflake"</code>.</td></tr>
128
128
  <tr><td><code>inputSection</code></td><td>The container that holds the date inputs.</td></tr>
129
129
  <tr><td><code>accentIcon</code></td><td>The calendar icon shown before the inputs in the <code>snowflake</code> layout. The <code>classic</code> layout hides it and shows the start date input's own calendar icon instead.</td></tr>
130
- <tr><td><code>input</code></td><td>The date input element(s).</td></tr>
130
+ <tr><td><code>input</code></td><td>Each date input: one, or two when <code>range</code> is set.</td></tr>
131
131
  <tr><td><code>calendarWrapper</code></td><td>The container in the dropdown that holds the calendar.</td></tr>
132
- <tr><td><code>calendar</code></td><td>The calendar element.</td></tr>
133
- <tr><td><code>helpTextSpan</code></td><td>The help text container wrapper.</td></tr>
134
- <tr><td><code>helpText</code></td><td>The help text element.</td></tr>
132
+ <tr><td><code>calendar</code></td><td>The calendar in the dropdown, with the month grids, the previous and next month buttons, and the Done button.</td></tr>
133
+ <tr><td><code>helpTextSpan</code></td><td>The <code>&lt;div&gt;</code> that holds the help text or error message.</td></tr>
134
+ <tr><td><code>helpText</code></td><td>The <code>&lt;p&gt;</code> inside <code>helpTextSpan</code> that holds the help text or error message.</td></tr>
135
135
  </tbody>
136
136
  </table>
137
137
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -268,10 +268,10 @@
268
268
  <auro-header level="3" id="localization">Localization</auro-header>
269
269
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/localization.md) -->
270
270
  <!-- The below content is automatically added from ./../docs/partials/customize/localization.md -->
271
- <p>The component supports complete localization, including visible strings, screen reader announcements, and locale-based date formatting.</p>
271
+ <p>The component supports localization of the date format, the calendar's month and weekday names, and most visible strings and screen reader announcements. A few strings don't currently have a slot or attribute, such as the calendar's Done button and the word "selected" in date selection announcements, so they're always in English.</p>
272
272
  <auro-header level="4" id="localizationTrigger">Trigger</auro-header>
273
273
  <auro-header level="5" id="localizationTriggerVisibleStrings">Visible strings</auro-header>
274
- <p>The visible strings rendered in the input, trigger, and fullscreen calendar aren't derived from <code>locale</code>. They're projected through named slots so each language can supply its own translation. Pass a <code>&lt;span&gt;</code> with the matching <code>slot</code> attribute for every string you need to localize.</p>
274
+ <p>The labels, help text, and headline in the input, trigger, and fullscreen calendar aren't derived from <code>locale</code>. Each one has a named slot, so pass a <code>&lt;span&gt;</code> with the matching <code>slot</code> attribute to supply its translation.</p>
275
275
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-visible-strings.html) -->
276
276
  <!-- The below content is automatically added from ./../apiExamples/localization-visible-strings.html -->
277
277
  <pre class="language-diff"><code class="language-diff"> &lt;auro-datepicker&gt;
@@ -413,7 +413,7 @@
413
413
  &lt;/auro-datepicker&gt;
414
414
  + &lt;/div&gt;</code></pre>
415
415
  <!-- AURO-GENERATED-CONTENT:END -->
416
- <p>If <code>format</code> is set alongside <code>locale</code>, <code>format</code> always wins.</p>
416
+ <p>If <code>format</code> is set alongside <code>locale</code>, <code>format</code> wins. When <code>locale</code> changes later, <code>format</code> changes with it only if it still matches the previous locale's format.</p>
417
417
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale-formatted.html) -->
418
418
  <!-- The below content is automatically added from ./../apiExamples/localization-locale-formatted.html -->
419
419
  <pre class="language-diff"><code class="language-diff"> &lt;auro-datepicker
@@ -491,7 +491,7 @@
491
491
  navLabelNextMonth="Nächster Monat"
492
492
  calendarGridLabel="Kalendertage des Monats">
493
493
  <span slot="ariaLabel.bib.close">Kalender schließen</span>
494
- <span slot="fromLabel">Abreisedatum (geerbt aus `data-locale="de-DE"`)</span>
494
+ <span slot="fromLabel">Abreisedatum (geerbt aus <code>data-locale="de-DE"</code>)</span>
495
495
  <span slot="toLabel">Rückkehrdatum</span>
496
496
  <span slot="helpText">Hilfetext</span>
497
497
  <span slot="optionalFromLabel">(freiwillig)</span>
@@ -591,7 +591,7 @@
591
591
  navLabelNextMonth="Nächster Monat"
592
592
  calendarGridLabel="Kalendertage des Monats"&gt;
593
593
  &lt;span slot="ariaLabel.bib.close"&gt;Kalender schließen&lt;/span&gt;
594
- &lt;span slot="fromLabel"&gt;Abreisedatum (geerbt aus `data-locale="de-DE"`)&lt;/span&gt;
594
+ &lt;span slot="fromLabel"&gt;Abreisedatum (geerbt aus &lt;code&gt;data-locale="de-DE"&lt;/code&gt;)&lt;/span&gt;
595
595
  &lt;span slot="toLabel"&gt;Rückkehrdatum&lt;/span&gt;
596
596
  &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
597
597
  &lt;span slot="optionalFromLabel"&gt;(freiwillig)&lt;/span&gt;