@aurodesignsystem-dev/auro-formkit 0.0.0-pr1492.4 → 0.0.0-pr1493.0

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 (153) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +7 -0
  2. package/components/bibtemplate/dist/index.js +9 -1
  3. package/components/bibtemplate/dist/registered.js +9 -1
  4. package/components/checkbox/demo/css-only.html +57 -0
  5. package/components/checkbox/demo/css-only.md +146 -0
  6. package/components/checkbox/demo/customize.min.js +2 -2
  7. package/components/checkbox/demo/getting-started.min.js +2 -2
  8. package/components/checkbox/demo/index.min.js +2 -2
  9. package/components/checkbox/demo/pages.json +1 -1
  10. package/components/checkbox/demo/styles.min.css +1 -1
  11. package/components/checkbox/demo/why-checkbox.html +57 -0
  12. package/components/checkbox/demo/why-checkbox.md +86 -0
  13. package/components/checkbox/dist/index.js +2 -2
  14. package/components/checkbox/dist/registered.js +2 -2
  15. package/components/combobox/demo/css-only.html +57 -0
  16. package/components/combobox/demo/css-only.md +209 -0
  17. package/components/combobox/demo/customize.md +7 -3
  18. package/components/combobox/demo/customize.min.js +1846 -1804
  19. package/components/combobox/demo/getting-started.min.js +1846 -1804
  20. package/components/combobox/demo/index.min.js +1846 -1804
  21. package/components/combobox/demo/pages.json +1 -1
  22. package/components/combobox/demo/styles.min.css +1 -1
  23. package/components/combobox/demo/why-combobox.html +57 -0
  24. package/components/combobox/demo/why-combobox.md +113 -0
  25. package/components/combobox/dist/auro-combobox.d.ts +5 -0
  26. package/components/combobox/dist/index.js +796 -179
  27. package/components/combobox/dist/registered.js +796 -179
  28. package/components/counter/demo/css-only.html +57 -0
  29. package/components/counter/demo/css-only.md +184 -0
  30. package/components/counter/demo/customize.min.js +276 -16
  31. package/components/counter/demo/index.min.js +276 -16
  32. package/components/counter/demo/keyboard-behavior.md +1 -0
  33. package/components/counter/demo/pages.json +1 -1
  34. package/components/counter/demo/styles.min.css +1 -1
  35. package/components/counter/demo/why-counter.html +57 -0
  36. package/components/counter/demo/why-counter.md +108 -0
  37. package/components/counter/dist/index.js +5457 -193
  38. package/components/counter/dist/registered.js +5457 -193
  39. package/components/datepicker/demo/accessibility.md +54 -3
  40. package/components/datepicker/demo/api.md +65 -55
  41. package/components/datepicker/demo/css-only.html +57 -0
  42. package/components/datepicker/demo/css-only.md +151 -0
  43. package/components/datepicker/demo/customize.html +2 -0
  44. package/components/datepicker/demo/customize.js +19 -0
  45. package/components/datepicker/demo/customize.md +474 -298
  46. package/components/datepicker/demo/customize.min.js +36243 -0
  47. package/components/datepicker/demo/design.md +5 -3
  48. package/components/datepicker/demo/getting-started.md +6 -6
  49. package/components/datepicker/demo/index.js +5 -1
  50. package/components/datepicker/demo/index.md +113 -16
  51. package/components/datepicker/demo/index.min.js +2736 -398
  52. package/components/datepicker/demo/keyboard-behavior.md +201 -2
  53. package/components/datepicker/demo/pages.json +1 -1
  54. package/components/datepicker/demo/styles.min.css +1 -1
  55. package/components/datepicker/demo/voiceover.md +21 -12
  56. package/components/datepicker/demo/why-datepicker.html +57 -0
  57. package/components/datepicker/demo/why-datepicker.md +133 -0
  58. package/components/datepicker/dist/index.js +2650 -399
  59. package/components/datepicker/dist/registered.js +2650 -399
  60. package/components/datepicker/dist/src/auro-calendar-cell.d.ts +116 -14
  61. package/components/datepicker/dist/src/auro-calendar-month.d.ts +54 -1
  62. package/components/datepicker/dist/src/auro-calendar.d.ts +264 -0
  63. package/components/datepicker/dist/src/auro-datepicker.d.ts +189 -53
  64. package/components/datepicker/dist/src/datepickerKeyboardStrategy.d.ts +5 -3
  65. package/components/datepicker/dist/src/utilities.d.ts +0 -14
  66. package/components/dropdown/demo/accessibility.md +11 -0
  67. package/components/dropdown/demo/api.md +1 -0
  68. package/components/dropdown/demo/css-only.html +57 -0
  69. package/components/dropdown/demo/css-only.md +219 -0
  70. package/components/dropdown/demo/customize.md +3 -0
  71. package/components/dropdown/demo/customize.min.js +265 -13
  72. package/components/dropdown/demo/getting-started.min.js +265 -13
  73. package/components/dropdown/demo/index.min.js +265 -13
  74. package/components/dropdown/demo/keyboard-behavior.md +1 -0
  75. package/components/dropdown/demo/pages.json +1 -1
  76. package/components/dropdown/demo/styles.min.css +1 -1
  77. package/components/dropdown/demo/why-dropdown.html +57 -0
  78. package/components/dropdown/demo/why-dropdown.md +97 -0
  79. package/components/dropdown/dist/auro-dropdown.d.ts +36 -1
  80. package/components/dropdown/dist/index.js +265 -13
  81. package/components/dropdown/dist/registered.js +265 -13
  82. package/components/form/demo/css-only.html +57 -0
  83. package/components/form/demo/css-only.md +156 -0
  84. package/components/form/demo/customize.min.js +11085 -8074
  85. package/components/form/demo/getting-started.min.js +11085 -8074
  86. package/components/form/demo/index.min.js +11085 -8074
  87. package/components/form/demo/pages.json +1 -1
  88. package/components/form/demo/registerDemoDeps.min.js +11084 -8073
  89. package/components/form/demo/styles.min.css +1 -1
  90. package/components/form/demo/why-form.html +57 -0
  91. package/components/form/demo/why-form.md +101 -0
  92. package/components/input/demo/css-only.html +57 -0
  93. package/components/input/demo/css-only.md +199 -0
  94. package/components/input/demo/customize.md +625 -636
  95. package/components/input/demo/customize.min.js +150 -75
  96. package/components/input/demo/getting-started.md +16 -6
  97. package/components/input/demo/getting-started.min.js +150 -75
  98. package/components/input/demo/index.min.js +150 -75
  99. package/components/input/demo/pages.json +1 -1
  100. package/components/input/demo/styles.min.css +1 -1
  101. package/components/input/demo/why-input.html +57 -0
  102. package/components/input/demo/why-input.md +121 -0
  103. package/components/input/dist/auro-input-util.d.ts +1 -1
  104. package/components/input/dist/base-input.d.ts +16 -0
  105. package/components/input/dist/index.js +150 -75
  106. package/components/input/dist/registered.js +150 -75
  107. package/components/input/dist/utilities.d.ts +1 -2
  108. package/components/menu/demo/api.md +41 -45
  109. package/components/menu/demo/css-only.html +57 -0
  110. package/components/menu/demo/css-only.md +166 -0
  111. package/components/menu/demo/customize.md +0 -28
  112. package/components/menu/demo/index.min.js +779 -1354
  113. package/components/menu/demo/pages.json +1 -1
  114. package/components/menu/demo/styles.min.css +1 -1
  115. package/components/menu/demo/why-menu.html +57 -0
  116. package/components/menu/demo/why-menu.md +104 -0
  117. package/components/menu/dist/auro-menu.d.ts +95 -110
  118. package/components/menu/dist/auro-menuoption.d.ts +32 -138
  119. package/components/menu/dist/index.js +753 -1308
  120. package/components/menu/dist/registered.js +765 -1308
  121. package/components/radio/demo/css-only.html +57 -0
  122. package/components/radio/demo/css-only.md +151 -0
  123. package/components/radio/demo/customize.min.js +1764 -0
  124. package/components/radio/demo/demo-support.min.js +55807 -0
  125. package/components/radio/demo/getting-started.js +1 -1
  126. package/components/radio/demo/getting-started.md +1 -1
  127. package/components/radio/demo/getting-started.min.js +1783 -0
  128. package/components/radio/demo/index.min.js +2 -2
  129. package/components/radio/demo/pages.json +1 -1
  130. package/components/radio/demo/styles.min.css +1 -1
  131. package/components/radio/demo/why-radio.html +57 -0
  132. package/components/radio/demo/why-radio.md +92 -0
  133. package/components/radio/dist/index.js +2 -2
  134. package/components/radio/dist/registered.js +2 -2
  135. package/components/select/demo/api.md +1 -0
  136. package/components/select/demo/css-only.html +57 -0
  137. package/components/select/demo/css-only.md +203 -0
  138. package/components/select/demo/customize.md +78 -3
  139. package/components/select/demo/customize.min.js +1341 -1533
  140. package/components/select/demo/getting-started.min.js +1341 -1533
  141. package/components/select/demo/index.min.js +1341 -1533
  142. package/components/select/demo/keyboard-behavior.md +19 -0
  143. package/components/select/demo/pages.json +1 -1
  144. package/components/select/demo/styles.min.css +1 -1
  145. package/components/select/demo/why-select.html +57 -0
  146. package/components/select/demo/why-select.md +128 -0
  147. package/components/select/dist/auro-select.d.ts +38 -2
  148. package/components/select/dist/index.js +435 -52
  149. package/components/select/dist/registered.js +435 -52
  150. package/components/select/dist/selectUtils.d.ts +12 -0
  151. package/custom-elements.json +3051 -2553
  152. package/package.json +8 -8
  153. package/components/menu/dist/auro-menu.context.d.ts +0 -238
@@ -35,13 +35,15 @@
35
35
  </li>
36
36
  </ul>
37
37
  <auro-header level="4" id="calendar">Calendar</auro-header>
38
- <p>The calendar displays one or more months in a grid layout. Users interact with the calendar by clicking on individual date cells. The calendar supports:</p>
38
+ <p>The calendar displays one or more months in a grid layout. Users interact with the calendar by clicking, tapping, or using arrow keys to navigate date cells and Enter/Space to select. The calendar supports:</p>
39
39
  <ul>
40
40
  <li>Navigating between months using previous/next arrows.</li>
41
+ <li>Arrow-key navigation between date cells with automatic cross-month boundary handling.</li>
41
42
  <li>Date range highlighting when <code>range</code> is set.</li>
42
43
  <li>Disabled dates outside the <code>minDate</code>/<code>maxDate</code> bounds.</li>
43
- <li>Custom cell content via the <code>date_MM_DD_YYYY</code> slot.</li>
44
- <li>Cell popovers via the <code>popover_MM_DD_YYYY</code> slot.</li>
44
+ <li>Blackout dates that are focusable but not selectable.</li>
45
+ <li>Custom cell content via the <code>date_YYYY_MM_DD</code> slot.</li>
46
+ <li>Cell popovers via the <code>popover_YYYY_MM_DD</code> slot.</li>
45
47
  </ul>
46
48
  <auro-header level="4" id="helpText">Help Text</auro-header>
47
49
  <p>Help text is not required. However, consideration should be given to how users will understand the full context of the component instance, particularly users reliant on accessibility tools like screen readers.</p>
@@ -22,8 +22,8 @@
22
22
  <auro-anchorlink fluid href="#slot-bib-fullscreen-headline" class="level2 body-xs">bib.fullscreen.headline</auro-anchorlink>
23
23
  <auro-anchorlink fluid href="#slot-bib-fullscreen-fromLabel" class="level2 body-xs">bib.fullscreen.fromLabel</auro-anchorlink>
24
24
  <auro-anchorlink fluid href="#slot-bib-fullscreen-toLabel" class="level2 body-xs">bib.fullscreen.toLabel</auro-anchorlink>
25
- <auro-anchorlink fluid href="#slot-date" class="level2 body-xs">date_MM_DD_YYYY</auro-anchorlink>
26
- <auro-anchorlink fluid href="#slot-popover" class="level2 body-xs">popover_MM_DD_YYYY</auro-anchorlink>
25
+ <auro-anchorlink fluid href="#slot-date" class="level2 body-xs">date_YYYY_MM_DD</auro-anchorlink>
26
+ <auro-anchorlink fluid href="#slot-popover" class="level2 body-xs">popover_YYYY_MM_DD</auro-anchorlink>
27
27
  <auro-anchorlink fluid href="#stateManagement">State Management</auro-anchorlink>
28
28
  <auro-anchorlink fluid href="#validity" class="level2 body-xs">Validity</auro-anchorlink>
29
29
  <auro-anchorlink fluid href="#value" class="level2 body-xs">Value</auro-anchorlink>
@@ -203,10 +203,10 @@ The `<auro-datepicker>` custom element is compatible with Svelte. See the auro-f
203
203
  <p>Defines the content to display above the first date input in the fullscreen (mobile) layout.</p>
204
204
  <auro-header level="3" id="slot-bib-fullscreen-toLabel">bib.fullscreen.toLabel</auro-header>
205
205
  <p>Defines the content to display above the second date input in the fullscreen (mobile) layout when <code>range</code> is true.</p>
206
- <auro-header level="3" id="slot-date">date_MM_DD_YYYY</auro-header>
207
- <p>Defines the content to display in the <code>auro-calendar-cell</code> for the specified date. The date format in the slot name should match <code>MM_DD_YYYY</code> (e.g. <code>slot="date_01_15_2026"</code>). Colored using the success state token when the <code>highlight</code> attribute is applied.</p>
208
- <auro-header level="3" id="slot-popover">popover_MM_DD_YYYY</auro-header>
209
- <p>Defines the content to display in the <code>auro-calendar-cell</code> popover for the specified date. The date format in the slot name should match <code>MM_DD_YYYY</code> (e.g. <code>slot="popover_01_15_2026"</code>).</p>
206
+ <auro-header level="3" id="slot-date">date_YYYY_MM_DD</auro-header>
207
+ <p>Defines the content to display in the <code>auro-calendar-cell</code> for the specified date. The date format in the slot name should match <code_YYYY>MM_DD</code> (e.g. <code>slot="date_2026_01_15"</code>). Colored using the success state token when the <code>highlight</code> attribute is applied.</p>
208
+ <auro-header level="3" id="slot-popover">popover_YYYY_MM_DD</auro-header>
209
+ <p>Defines the content to display in the <code>auro-calendar-cell</code> popover for the specified date. The date format in the slot name should match <code>YYYY_MM_DD</code> (e.g. <code>slot="popover_2026_01_15"</code>).</p>
210
210
  <!-- AURO-GENERATED-CONTENT:END -->
211
211
  </section>
212
212
  <section>
@@ -1,4 +1,5 @@
1
1
  import { AuroDatePicker } from '../src/auro-datepicker.js';
2
+ import { blackoutLabelExample } from '../apiExamples/blackout-label.js';
2
3
 
3
4
  AuroDatePicker.register(); // registering to auro-datepicker
4
5
  AuroDatePicker.register('custom-datepicker');
@@ -7,7 +8,10 @@ export function initExamples(initCount) {
7
8
  initCount = initCount || 0;
8
9
 
9
10
  try {
10
- // example();
11
+ // Only run when the demo element exists on the current page
12
+ if (document.querySelector('#blackoutLabelExample')) {
13
+ blackoutLabelExample();
14
+ }
11
15
  } catch {
12
16
  if (initCount <= 20) {
13
17
  // setTimeout handles issue where content is sometimes loaded after the functions get called
@@ -10,7 +10,9 @@
10
10
  <auro-anchorlink fluid href="#selectRange" class="level2 body-xs">Select a Range</auro-anchorlink>
11
11
  <auro-anchorlink fluid href="#presetValue" class="level2 body-xs">Preset Value</auro-anchorlink>
12
12
  <auro-anchorlink fluid href="#skipSelection" class="level2 body-xs">Skip Selection</auro-anchorlink>
13
- <auro-anchorlink fluid href="#regionalDateFormat" class="level2 body-xs">Regional Date</auro-anchorlink>
13
+ <auro-anchorlink fluid href="#popoverSlot" class="level2 body-xs">Date Popover</auro-anchorlink>
14
+ <auro-anchorlink fluid href="#blackoutDates" class="level2 body-xs">Blackout Dates</auro-anchorlink>
15
+ <auro-anchorlink fluid href="#referenceDates" class="level2 body-xs">Reference Dates</auro-anchorlink>
14
16
  <auro-anchorlink fluid href="#viewportSize" class="level2 body-xs">Viewport Size</auro-anchorlink>
15
17
  </auro-nav>
16
18
  </nav>
@@ -39,15 +41,21 @@
39
41
  Click the input or press <kbd>Enter</kbd> / <kbd>Space</kbd> to open the calendar
40
42
  <div class="note">
41
43
  <p>
42
- The calendar bib opens and displays the current month. Focus moves into the calendar on the current date or, if a <code>calendarFocusDate</code> is set, on that date.
44
+ The calendar bib opens and displays the current month. The focused cell is determined in the following priority order:
43
45
  </p>
46
+ <ol>
47
+ <li>The currently selected date (if one exists and is within the valid min/max range).</li>
48
+ <li>Today's date (if it is enabled — within the min/max range).</li>
49
+ <li>The first future enabled date.</li>
50
+ <li>The first past enabled date.</li>
51
+ </ol>
44
52
  </div>
45
53
  </li>
46
54
  <li>
47
55
  Select a date by clicking a calendar cell or by typing a date directly into the input
48
56
  <div class="note">
49
57
  <p>
50
- When a valid date is selected, the <code>value</code> property is updated and the calendar closes (on desktop). If the user types a date, it must match the configured <code>format</code> (default <code>mm/dd/yyyy</code>).
58
+ When a valid date is selected, the <code>value</code> property is updated. The calendar remains open so additional dates can be reviewed. Close the calendar by pressing Escape or activating the Done button. If the user types a date, it must match the configured <code>format</code> (default <code>mm/dd/yyyy</code>).
51
59
  </p>
52
60
  </div>
53
61
  </li>
@@ -168,25 +176,114 @@
168
176
  <auro-header level="3" id="skipSelection">Skip selection</auro-header>
169
177
  <p>The datepicker does not force the user to select a date. If no selection is made and the field is not <code>required</code>, the user can move past the datepicker without entering a value.</p>
170
178
  <p>If the field is <code>required</code>, moving focus away without selecting a date triggers validation and renders the <code>valueMissing</code> error state.</p>
171
- <auro-header level="3" id="regionalDateFormat">Regional date format support</auro-header>
172
- <p>People around the world write dates differently. A traveler in the United States expects to see <strong>12/25/2025</strong>, while someone in Germany expects <strong>25.12.2025</strong>, and someone in Japan expects <strong>2025/12/25</strong>. Showing the wrong format causes confusion and mistakes.</p>
173
- <p>When the datepicker knows the user's region via the <code>locale</code> attribute, it automatically displays dates in the format that looks natural to them — no extra setup required.</p>
179
+ <auro-header level="3" id="popoverSlot">Popover slot</auro-header>
180
+ <p>Use the <code>popover_YYYY_MM_DD</code> slot to display additional information when the user hovers over a calendar cell. This is useful for showing pricing, availability, or other contextual details for specific dates.</p>
181
+ <div class="exampleWrapper">
182
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/popover-slot.html) -->
183
+ <!-- The below content is automatically added from ./../apiExamples/popover-slot.html -->
184
+ <auro-datepicker centralDate="2023-12-03" calendarStartDate="2023-12-01" calendarEndDate="2023-12-31" minDate="2023-12-02" maxDate="2023-12-09">
185
+ <span slot="bib.fullscreen.headline">Popover Slot Example</span>
186
+ <span slot="fromLabel">Choose a date</span>
187
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
188
+ <span slot="popover_2023_12_03">Tickets for this day are sold out</span>
189
+ <span slot="date_2023_12_03">$560</span>
190
+ <span slot="popover_2023_12_04">34 seats available</span>
191
+ <span slot="date_2023_12_04">$245</span>
192
+ <span slot="popover_2023_12_05">18 seats available</span>
193
+ <span slot="date_2023_12_05">$312</span>
194
+ <span slot="popover_2023_12_06">Tickets for this day are sold out</span>
195
+ <span slot="date_2023_12_06">$489</span>
196
+ <span slot="popover_2023_12_07">52 seats available</span>
197
+ <span slot="date_2023_12_07">$198</span>
198
+ <span slot="popover_2023_12_08">7 seats available</span>
199
+ <span slot="date_2023_12_08">$375</span>
200
+ <span slot="popover_2023_12_09">41 seats available</span>
201
+ <span slot="date_2023_12_09">$220</span>
202
+ </auro-datepicker>
203
+ <!-- AURO-GENERATED-CONTENT:END -->
204
+ </div>
205
+ <auro-accordion alignRight>
206
+ <span slot="trigger">See code</span>
207
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/popover-slot.html) -->
208
+ <!-- The below code snippet is automatically added from ./../apiExamples/popover-slot.html -->
209
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker centralDate="2023-12-03" calendarStartDate="2023-12-01" calendarEndDate="2023-12-31" minDate="2023-12-02" maxDate="2023-12-09"&gt;
210
+ &lt;span slot="bib.fullscreen.headline"&gt;Popover Slot Example&lt;/span&gt;
211
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
212
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
213
+ &lt;span slot="popover_2023_12_03"&gt;Tickets for this day are sold out&lt;/span&gt;
214
+ &lt;span slot="date_2023_12_03"&gt;$560&lt;/span&gt;
215
+ &lt;span slot="popover_2023_12_04"&gt;34 seats available&lt;/span&gt;
216
+ &lt;span slot="date_2023_12_04"&gt;$245&lt;/span&gt;
217
+ &lt;span slot="popover_2023_12_05"&gt;18 seats available&lt;/span&gt;
218
+ &lt;span slot="date_2023_12_05"&gt;$312&lt;/span&gt;
219
+ &lt;span slot="popover_2023_12_06"&gt;Tickets for this day are sold out&lt;/span&gt;
220
+ &lt;span slot="date_2023_12_06"&gt;$489&lt;/span&gt;
221
+ &lt;span slot="popover_2023_12_07"&gt;52 seats available&lt;/span&gt;
222
+ &lt;span slot="date_2023_12_07"&gt;$198&lt;/span&gt;
223
+ &lt;span slot="popover_2023_12_08"&gt;7 seats available&lt;/span&gt;
224
+ &lt;span slot="date_2023_12_08"&gt;$375&lt;/span&gt;
225
+ &lt;span slot="popover_2023_12_09"&gt;41 seats available&lt;/span&gt;
226
+ &lt;span slot="date_2023_12_09"&gt;$220&lt;/span&gt;
227
+ &lt;/auro-datepicker&gt;</code></pre>
228
+ <!-- AURO-GENERATED-CONTENT:END -->
229
+ </auro-accordion>
230
+ <auro-header level="3" id="blackoutDates">Blackout dates with custom label</auro-header>
231
+ <p>Use the <code>blackoutLabel</code> attribute to customize the screen reader announcement for blackout (disabled but in-range) dates. The default label is <code>"unavailable"</code>. This is useful when you want to provide more context about why a date cannot be selected, such as <code>"sold out"</code>.</p>
232
+ <p>When a user types a blackout date into the input, the datepicker validates the entry and displays a <code>customError</code> message. The default message is <code>"Selected date is unavailable"</code>. Use the <code>setCustomValidityCustomError</code> attribute to provide a custom error message, for example <code>setCustomValidityCustomError="That date is sold out"</code>.</p>
233
+ <div class="exampleWrapper">
234
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/blackout-label.html) -->
235
+ <!-- The below content is automatically added from ./../apiExamples/blackout-label.html -->
236
+ <auro-datepicker id="blackoutLabelExample" range blackoutLabel="sold out">
237
+ <span slot="fromLabel">Choose a start date</span>
238
+ <span slot="toLabel">Choose an end date</span>
239
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
240
+ <span slot="bib.fullscreen.toLabel">Choose an end date</span>
241
+ </auro-datepicker>
242
+ <!-- AURO-GENERATED-CONTENT:END -->
243
+ </div>
244
+ <auro-accordion alignRight>
245
+ <span slot="trigger">See code</span>
246
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/blackout-label.html) -->
247
+ <!-- The below code snippet is automatically added from ./../apiExamples/blackout-label.html -->
248
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker id="blackoutLabelExample" range blackoutLabel="sold out"&gt;
249
+ &lt;span slot="fromLabel"&gt;Choose a start date&lt;/span&gt;
250
+ &lt;span slot="toLabel"&gt;Choose an end date&lt;/span&gt;
251
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
252
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Choose an end date&lt;/span&gt;
253
+ &lt;/auro-datepicker&gt;</code></pre>
254
+ <!-- AURO-GENERATED-CONTENT:END -->
255
+ </auro-accordion>
256
+ <auro-header level="3" id="referenceDates">Reference dates</auro-header>
257
+ <p>Use the <code>referenceDates</code> attribute to highlight specific dates on the calendar. Reference dates are displayed with a distinct visual treatment to draw attention to dates of interest, such as the cheapest travel dates or dates with special availability.</p>
258
+ <p class="note"><strong>NOTE:</strong> it is recommended to provide popover slot content for reference dates to give context for why the date is marked <code>reference</code>.</p>
174
259
  <div class="exampleWrapper">
175
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/locale-single.html) -->
176
- <!-- The below content is automatically added from ./../apiExamples/locale-single.html -->
177
- <auro-datepicker locale="zh-CN">
178
- <span slot="fromLabel">zh-CN Date</span>
179
- <span slot="helpText">Help Text</span>
260
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reference-dates.html) -->
261
+ <!-- The below content is automatically added from ./../apiExamples/reference-dates.html -->
262
+ <auro-datepicker referenceDates='["2025-10-05", "2025-10-15", "2025-10-20", "2025-10-22"]' minDate="2025-10-12" range>
263
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
264
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
265
+ <span slot="fromLabel">Choose a date</span>
266
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
267
+ <span slot="popover_2025_10_05">Explanation for why this is a reference date.</span>
268
+ <span slot="popover_2025_10_15">Explanation for why this is a reference date.</span>
269
+ <span slot="popover_2025_10_20">Explanation for why this is a reference date.</span>
270
+ <span slot="popover_2025_10_22">Explanation for why this is a reference date.</span>
180
271
  </auro-datepicker>
181
272
  <!-- AURO-GENERATED-CONTENT:END -->
182
273
  </div>
183
274
  <auro-accordion alignRight>
184
275
  <span slot="trigger">See code</span>
185
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/locale-single.html) -->
186
- <!-- The below code snippet is automatically added from ./../apiExamples/locale-single.html -->
187
- <pre class="language-html"><code class="language-html">&lt;auro-datepicker locale="zh-CN"&gt;
188
- &lt;span slot="fromLabel"&gt;zh-CN Date&lt;/span&gt;
189
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
276
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reference-dates.html) -->
277
+ <!-- The below code snippet is automatically added from ./../apiExamples/reference-dates.html -->
278
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker referenceDates='["2025-10-05", "2025-10-15", "2025-10-20", "2025-10-22"]' minDate="2025-10-12" range&gt;
279
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
280
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
281
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
282
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
283
+ &lt;span slot="popover_2025_10_05"&gt;Explanation for why this is a reference date.&lt;/span&gt;
284
+ &lt;span slot="popover_2025_10_15"&gt;Explanation for why this is a reference date.&lt;/span&gt;
285
+ &lt;span slot="popover_2025_10_20"&gt;Explanation for why this is a reference date.&lt;/span&gt;
286
+ &lt;span slot="popover_2025_10_22"&gt;Explanation for why this is a reference date.&lt;/span&gt;
190
287
  &lt;/auro-datepicker&gt;</code></pre>
191
288
  <!-- AURO-GENERATED-CONTENT:END -->
192
289
  </auro-accordion>