@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.6 → 0.0.0-pr1628.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/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/demo/customize.min.js +1 -1
  5. package/components/checkbox/demo/getting-started.min.js +1 -1
  6. package/components/checkbox/demo/index.min.js +1 -1
  7. package/components/checkbox/dist/index.js +1 -1
  8. package/components/checkbox/dist/registered.js +1 -1
  9. package/components/combobox/demo/api.md +2 -2
  10. package/components/combobox/demo/css-only.md +3 -3
  11. package/components/combobox/demo/customize.min.js +12 -9
  12. package/components/combobox/demo/getting-started.min.js +12 -9
  13. package/components/combobox/demo/index.md +1 -1
  14. package/components/combobox/demo/index.min.js +12 -9
  15. package/components/combobox/dist/auro-combobox.d.ts +5 -3
  16. package/components/combobox/dist/index.js +12 -9
  17. package/components/combobox/dist/registered.js +12 -9
  18. package/components/counter/demo/accessibility.md +1 -1
  19. package/components/counter/demo/css-only.md +1 -1
  20. package/components/counter/demo/customize.min.js +6 -6
  21. package/components/counter/demo/getting-started.min.js +6 -6
  22. package/components/counter/demo/index.min.js +6 -6
  23. package/components/counter/demo/why-counter.md +2 -2
  24. package/components/counter/dist/auro-counter-group.d.ts +2 -3
  25. package/components/counter/dist/index.js +6 -6
  26. package/components/counter/dist/registered.js +6 -6
  27. package/components/datepicker/README.md +1 -1
  28. package/components/datepicker/demo/accessibility.md +2 -2
  29. package/components/datepicker/demo/css-only.md +3 -3
  30. package/components/datepicker/demo/customize.md +1 -1
  31. package/components/datepicker/demo/customize.min.js +106 -96
  32. package/components/datepicker/demo/design.md +2 -2
  33. package/components/datepicker/demo/getting-started.md +1 -1
  34. package/components/datepicker/demo/getting-started.min.js +106 -96
  35. package/components/datepicker/demo/index.md +2 -2
  36. package/components/datepicker/demo/index.min.js +106 -96
  37. package/components/datepicker/demo/keyboard-behavior.md +1 -1
  38. package/components/datepicker/demo/readme.md +1 -1
  39. package/components/datepicker/demo/voiceover.md +3 -3
  40. package/components/datepicker/demo/why-datepicker.md +2 -2
  41. package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
  42. package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
  43. package/components/datepicker/dist/auro-calendar.d.ts +39 -33
  44. package/components/datepicker/dist/auro-datepicker.d.ts +9 -7
  45. package/components/datepicker/dist/index.js +106 -96
  46. package/components/datepicker/dist/registered.js +106 -96
  47. package/components/datepicker/dist/utilities.d.ts +1 -1
  48. package/components/datepicker/dist/utilitiesCalendar.d.ts +4 -2
  49. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +4 -4
  50. package/components/dropdown/demo/api.md +1 -1
  51. package/components/dropdown/demo/customize.min.js +2 -1
  52. package/components/dropdown/demo/getting-started.min.js +5 -4
  53. package/components/dropdown/demo/index.min.js +2 -1
  54. package/components/dropdown/demo/voiceover.md +1 -1
  55. package/components/dropdown/dist/auro-dropdown.d.ts +1 -0
  56. package/components/dropdown/dist/index.js +2 -1
  57. package/components/dropdown/dist/registered.js +2 -1
  58. package/components/form/README.md +1 -1
  59. package/components/form/demo/css-only.md +1 -1
  60. package/components/form/demo/customize.min.js +146 -133
  61. package/components/form/demo/getting-started.min.js +146 -133
  62. package/components/form/demo/index.min.js +146 -133
  63. package/components/form/demo/keyboard-behavior.md +1 -1
  64. package/components/form/demo/readme.md +1 -1
  65. package/components/form/demo/registerDemoDeps.min.js +146 -133
  66. package/components/input/demo/css-only.md +3 -3
  67. package/components/input/demo/customize.md +1 -1
  68. package/components/input/demo/customize.min.js +3 -3
  69. package/components/input/demo/design.md +2 -2
  70. package/components/input/demo/getting-started.min.js +3 -3
  71. package/components/input/demo/index.md +1 -1
  72. package/components/input/demo/index.min.js +3 -3
  73. package/components/input/demo/why-input.md +1 -1
  74. package/components/input/dist/auro-input.d.ts +1 -1
  75. package/components/input/dist/base-input.d.ts +1 -1
  76. package/components/input/dist/index.js +3 -3
  77. package/components/input/dist/registered.js +3 -3
  78. package/components/menu/demo/css-only.md +1 -1
  79. package/components/menu/demo/getting-started.md +1 -1
  80. package/components/menu/demo/why-menu.md +3 -3
  81. package/components/radio/demo/accessibility.md +1 -1
  82. package/components/radio/demo/api.md +10 -10
  83. package/components/radio/demo/customize.md +15 -5
  84. package/components/radio/demo/customize.min.js +10 -12
  85. package/components/radio/demo/design.md +1 -1
  86. package/components/radio/demo/getting-started.md +6 -6
  87. package/components/radio/demo/getting-started.min.js +10 -12
  88. package/components/radio/demo/index.md +1 -1
  89. package/components/radio/demo/index.min.js +10 -12
  90. package/components/radio/demo/keyboard-behavior.md +1 -1
  91. package/components/radio/demo/voiceover.md +1 -1
  92. package/components/radio/dist/auro-radio-group.d.ts +6 -8
  93. package/components/radio/dist/auro-radio.d.ts +3 -3
  94. package/components/radio/dist/index.js +10 -12
  95. package/components/radio/dist/registered.js +10 -12
  96. package/components/select/demo/api.md +1 -1
  97. package/components/select/demo/css-only.md +1 -1
  98. package/components/select/demo/customize.min.js +8 -6
  99. package/components/select/demo/getting-started.min.js +8 -6
  100. package/components/select/demo/index.min.js +8 -6
  101. package/components/select/demo/voiceover.md +1 -1
  102. package/components/select/dist/auro-select.d.ts +4 -3
  103. package/components/select/dist/index.js +8 -6
  104. package/components/select/dist/registered.js +8 -6
  105. package/custom-elements.json +77 -79
  106. package/package.json +1 -1
@@ -1166,7 +1166,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
1166
1166
  }
1167
1167
  };
1168
1168
 
1169
- var formkitVersion$1 = '202611082047';
1169
+ var formkitVersion$1 = '202611090134';
1170
1170
 
1171
1171
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1172
1172
  // See LICENSE in the project root for license information.
@@ -5781,7 +5781,7 @@ class AuroHelpText extends i$1 {
5781
5781
  }
5782
5782
  }
5783
5783
 
5784
- var formkitVersion = '202611082047';
5784
+ var formkitVersion = '202611090134';
5785
5785
 
5786
5786
  /**
5787
5787
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -6569,6 +6569,7 @@ class AuroDropdown extends AuroElement$1 {
6569
6569
  /**
6570
6570
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
6571
6571
  * Applies only when the `trigger` slot content isn't focusable.
6572
+ * @default 0
6572
6573
  * @category a11y
6573
6574
  */
6574
6575
  tabIndex: {
@@ -7771,7 +7772,7 @@ class AuroBibtemplate extends i$1 {
7771
7772
  }
7772
7773
 
7773
7774
  /**
7774
- * 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.
7775
+ * 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.
7775
7776
  * @param {Event} event - The `touchmove` event.
7776
7777
  * @returns {void}
7777
7778
  */
@@ -8725,9 +8726,8 @@ class AuroCounterGroup extends AuroElement {
8725
8726
  }
8726
8727
 
8727
8728
  /**
8728
- * Dynamically disables increment/decrement buttons on a counter based on group value.
8729
- * This method checks the total aggregated value against the group's min and max properties.
8730
- * 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.
8729
+ * Turns a counter's minus and plus buttons on or off based on the group's total.
8730
+ * 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`.
8731
8731
  *
8732
8732
  * @param {HTMLElement} counter - The counter element to potentially disable.
8733
8733
  * @private
@@ -1164,7 +1164,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
1164
1164
  }
1165
1165
  };
1166
1166
 
1167
- var formkitVersion$1 = '202611082047';
1167
+ var formkitVersion$1 = '202611090134';
1168
1168
 
1169
1169
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1170
1170
  // See LICENSE in the project root for license information.
@@ -5779,7 +5779,7 @@ class AuroHelpText extends i$2 {
5779
5779
  }
5780
5780
  }
5781
5781
 
5782
- var formkitVersion = '202611082047';
5782
+ var formkitVersion = '202611090134';
5783
5783
 
5784
5784
  /**
5785
5785
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -6567,6 +6567,7 @@ class AuroDropdown extends AuroElement$1 {
6567
6567
  /**
6568
6568
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
6569
6569
  * Applies only when the `trigger` slot content isn't focusable.
6570
+ * @default 0
6570
6571
  * @category a11y
6571
6572
  */
6572
6573
  tabIndex: {
@@ -7769,7 +7770,7 @@ class AuroBibtemplate extends i$2 {
7769
7770
  }
7770
7771
 
7771
7772
  /**
7772
- * 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.
7773
+ * 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.
7773
7774
  * @param {Event} event - The `touchmove` event.
7774
7775
  * @returns {void}
7775
7776
  */
@@ -8723,9 +8724,8 @@ class AuroCounterGroup extends AuroElement {
8723
8724
  }
8724
8725
 
8725
8726
  /**
8726
- * Dynamically disables increment/decrement buttons on a counter based on group value.
8727
- * This method checks the total aggregated value against the group's min and max properties.
8728
- * 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.
8727
+ * Turns a counter's minus and plus buttons on or off based on the group's total.
8728
+ * 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`.
8729
8729
  *
8730
8730
  * @param {HTMLElement} counter - The counter element to potentially disable.
8731
8731
  * @private
@@ -1164,7 +1164,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
1164
1164
  }
1165
1165
  };
1166
1166
 
1167
- var formkitVersion$1 = '202611082047';
1167
+ var formkitVersion$1 = '202611090134';
1168
1168
 
1169
1169
  // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
1170
1170
  // See LICENSE in the project root for license information.
@@ -5779,7 +5779,7 @@ class AuroHelpText extends i$2 {
5779
5779
  }
5780
5780
  }
5781
5781
 
5782
- var formkitVersion = '202611082047';
5782
+ var formkitVersion = '202611090134';
5783
5783
 
5784
5784
  /**
5785
5785
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -6567,6 +6567,7 @@ class AuroDropdown extends AuroElement$1 {
6567
6567
  /**
6568
6568
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
6569
6569
  * Applies only when the `trigger` slot content isn't focusable.
6570
+ * @default 0
6570
6571
  * @category a11y
6571
6572
  */
6572
6573
  tabIndex: {
@@ -7769,7 +7770,7 @@ class AuroBibtemplate extends i$2 {
7769
7770
  }
7770
7771
 
7771
7772
  /**
7772
- * 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.
7773
+ * 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.
7773
7774
  * @param {Event} event - The `touchmove` event.
7774
7775
  * @returns {void}
7775
7776
  */
@@ -8723,9 +8724,8 @@ class AuroCounterGroup extends AuroElement {
8723
8724
  }
8724
8725
 
8725
8726
  /**
8726
- * Dynamically disables increment/decrement buttons on a counter based on group value.
8727
- * This method checks the total aggregated value against the group's min and max properties.
8728
- * 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.
8727
+ * Turns a counter's minus and plus buttons on or off based on the group's total.
8728
+ * 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`.
8729
8729
  *
8730
8730
  * @param {HTMLElement} counter - The counter element to potentially disable.
8731
8731
  * @private
@@ -4,7 +4,7 @@
4
4
  <p>Native number inputs have limited screen reader support. The browser-rendered increment/decrement buttons are often small, difficult to interact with, and announced inconsistently.</p>
5
5
  <p><code>auro-counter</code> provides:</p>
6
6
  <ul>
7
- <li><strong>ARIA spinbutton pattern</strong>: The component uses <code>role="spinbutton"</code> with <code>aria-valuemin</code>, <code>aria-valuemax</code>, <code>aria-valuenow</code>, and <code>aria-valuetext</code> for complete screen reader semantics.</li>
7
+ <li><strong>ARIA spinbutton pattern</strong>: The component uses <code>role="spinbutton"</code> with <code>aria-valuemin</code>, <code>aria-valuemax</code>, <code>aria-valuenow</code>, and <code>aria-valuetext</code>, so screen readers announce its range and current value. It doesn't currently set <code>aria-invalid</code>.</li>
8
8
  <li><strong>Labeled controls</strong>: Increment and decrement buttons take their ARIA labels from the <code>ariaLabel.plus</code> and <code>ariaLabel.minus</code> slots.</li>
9
9
  <li><strong>Single tab stop</strong>: The Up Arrow and Down Arrow keys change the value, and the increment and decrement buttons stay out of the tab order, so each counter is one tab stop.</li>
10
10
  <li><strong>Focus delegation</strong>: <code>delegatesFocus</code> ensures focus reaches the interactive control regardless of where the user clicks.</li>
@@ -67,7 +67,7 @@
67
67
  <tr>
68
68
  <td>ARIA spinbutton semantics</td>
69
69
  <td>No</td>
70
- <td>Full implementation</td>
70
+ <td>Yes, except <code>aria-invalid</code></td>
71
71
  </tr>
72
72
  <tr>
73
73
  <td>Auto-disable at min/max</td>
@@ -297,9 +297,8 @@ export class AuroCounterGroup extends AuroElement {
297
297
  */
298
298
  private iconTag;
299
299
  /**
300
- * Dynamically disables increment/decrement buttons on a counter based on group value.
301
- * This method checks the total aggregated value against the group's min and max properties.
302
- * 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.
300
+ * Turns a counter's minus and plus buttons on or off based on the group's total.
301
+ * 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`.
303
302
  *
304
303
  * @param {HTMLElement} counter - The counter element to potentially disable.
305
304
  * @private
@@ -1114,7 +1114,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
1114
1114
  }
1115
1115
  };
1116
1116
 
1117
- var formkitVersion$1 = '202611082047';
1117
+ var formkitVersion$1 = '202611090134';
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.
@@ -5711,7 +5711,7 @@ class AuroHelpText extends LitElement {
5711
5711
  }
5712
5712
  }
5713
5713
 
5714
- var formkitVersion = '202611082047';
5714
+ var formkitVersion = '202611090134';
5715
5715
 
5716
5716
  /**
5717
5717
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -6499,6 +6499,7 @@ class AuroDropdown extends AuroElement$1 {
6499
6499
  /**
6500
6500
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
6501
6501
  * Applies only when the `trigger` slot content isn't focusable.
6502
+ * @default 0
6502
6503
  * @category a11y
6503
6504
  */
6504
6505
  tabIndex: {
@@ -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
  */
@@ -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
@@ -1114,7 +1114,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
1114
1114
  }
1115
1115
  };
1116
1116
 
1117
- var formkitVersion$1 = '202611082047';
1117
+ var formkitVersion$1 = '202611090134';
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.
@@ -5711,7 +5711,7 @@ class AuroHelpText extends LitElement {
5711
5711
  }
5712
5712
  }
5713
5713
 
5714
- var formkitVersion = '202611082047';
5714
+ var formkitVersion = '202611090134';
5715
5715
 
5716
5716
  /**
5717
5717
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -6499,6 +6499,7 @@ class AuroDropdown extends AuroElement$1 {
6499
6499
  /**
6500
6500
  * Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
6501
6501
  * Applies only when the `trigger` slot content isn't focusable.
6502
+ * @default 0
6502
6503
  * @category a11y
6503
6504
  */
6504
6505
  tabIndex: {
@@ -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
  */
@@ -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
@@ -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">
@@ -37,7 +37,7 @@ The calendar uses the WAI-ARIA grid pattern for screen reader navigation:
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
 
@@ -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,7 +58,7 @@
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
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>
64
64
  <auro-header level="3">Responsive layout</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">