@aurodesignsystem-dev/auro-formkit 0.0.0-pr1448.0 → 0.0.0-pr1451.1

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 (163) hide show
  1. package/components/checkbox/demo/api.md +201 -221
  2. package/components/checkbox/demo/api.min.js +1 -1
  3. package/components/checkbox/demo/index.md +21 -23
  4. package/components/checkbox/demo/index.min.js +1 -1
  5. package/components/checkbox/demo/keyboard-behavior.md +39 -0
  6. package/components/checkbox/demo/readme.md +23 -35
  7. package/components/checkbox/dist/auro-checkbox-group.d.ts +6 -6
  8. package/components/checkbox/dist/auro-checkbox.d.ts +8 -8
  9. package/components/checkbox/dist/index.js +1 -1
  10. package/components/checkbox/dist/registered.js +1 -1
  11. package/components/combobox/README.md +13 -3
  12. package/components/combobox/demo/accessibility.html +57 -0
  13. package/components/combobox/demo/accessibility.md +77 -0
  14. package/components/combobox/demo/api.html +24 -0
  15. package/components/combobox/demo/api.md +1613 -1685
  16. package/components/combobox/demo/api.min.js +15 -21
  17. package/components/combobox/demo/design.html +83 -0
  18. package/components/combobox/demo/design.md +283 -0
  19. package/components/combobox/demo/index.html +49 -16
  20. package/components/combobox/demo/index.js +3 -2
  21. package/components/combobox/demo/index.md +861 -185
  22. package/components/combobox/demo/index.min.js +41 -22
  23. package/components/combobox/demo/install.html +84 -0
  24. package/components/combobox/demo/install.js +24 -0
  25. package/components/combobox/demo/install.md +100 -0
  26. package/components/combobox/demo/install.min.js +17991 -0
  27. package/components/combobox/demo/{keyboardBehavior.html → keyboard-behavior.html} +2 -1
  28. package/components/combobox/demo/keyboard-behavior.md +276 -0
  29. package/components/combobox/demo/layout.md +112 -0
  30. package/components/combobox/demo/readme.html +25 -1
  31. package/components/combobox/demo/readme.md +50 -52
  32. package/components/combobox/demo/styles.css +141 -0
  33. package/components/combobox/demo/voiceover.html +66 -0
  34. package/components/combobox/demo/voiceover.md +118 -0
  35. package/components/combobox/dist/auro-combobox.d.ts +36 -36
  36. package/components/combobox/dist/index.js +12 -17
  37. package/components/combobox/dist/registered.js +12 -17
  38. package/components/counter/demo/api.md +751 -819
  39. package/components/counter/demo/api.min.js +2 -2
  40. package/components/counter/demo/index.md +35 -39
  41. package/components/counter/demo/index.min.js +2 -2
  42. package/components/counter/demo/keyboard-behavior.md +127 -0
  43. package/components/counter/demo/readme.md +39 -51
  44. package/components/counter/dist/auro-counter-group.d.ts +2 -2
  45. package/components/counter/dist/auro-counter.d.ts +10 -10
  46. package/components/counter/dist/index.js +2 -2
  47. package/components/counter/dist/registered.js +2 -2
  48. package/components/datepicker/demo/api.md +827 -931
  49. package/components/datepicker/demo/api.min.js +4 -4
  50. package/components/datepicker/demo/index.md +79 -87
  51. package/components/datepicker/demo/index.min.js +4 -4
  52. package/components/datepicker/demo/keyboard-behavior.md +19 -0
  53. package/components/datepicker/demo/readme.md +19 -31
  54. package/components/datepicker/dist/index.js +4 -4
  55. package/components/datepicker/dist/registered.js +4 -4
  56. package/components/datepicker/dist/{auro-calendar-cell.d.ts → src/auro-calendar-cell.d.ts} +2 -2
  57. package/components/datepicker/dist/{auro-datepicker.d.ts → src/auro-datepicker.d.ts} +13 -13
  58. package/components/datepicker/dist/{utilities.d.ts → src/utilities.d.ts} +4 -4
  59. package/components/datepicker/dist/{utilitiesCalendar.d.ts → src/utilitiesCalendar.d.ts} +3 -3
  60. package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-calendar.d.ts +2 -2
  61. package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker.d.ts +1 -1
  62. package/components/dropdown/demo/api.md +795 -851
  63. package/components/dropdown/demo/api.min.js +1 -1
  64. package/components/dropdown/demo/index.md +145 -155
  65. package/components/dropdown/demo/index.min.js +1 -1
  66. package/components/dropdown/demo/keyboard-behavior.md +72 -0
  67. package/components/dropdown/demo/readme.md +39 -51
  68. package/components/dropdown/dist/auro-dropdown.d.ts +22 -22
  69. package/components/dropdown/dist/auro-dropdownBib.d.ts +3 -3
  70. package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +1 -1
  71. package/components/dropdown/dist/index.js +1 -1
  72. package/components/dropdown/dist/registered.js +1 -1
  73. package/components/form/demo/api.md +173 -179
  74. package/components/form/demo/api.min.js +27 -33
  75. package/components/form/demo/index.md +27 -33
  76. package/components/form/demo/index.min.js +27 -33
  77. package/components/form/demo/keyboard-behavior.md +38 -0
  78. package/components/form/demo/readme.md +14 -28
  79. package/components/input/demo/api.md +572 -664
  80. package/components/input/demo/api.min.js +2 -2
  81. package/components/input/demo/index.md +93 -99
  82. package/components/input/demo/index.min.js +2 -2
  83. package/components/input/demo/keyboard-behavior.md +25 -0
  84. package/components/input/demo/readme.md +17 -29
  85. package/components/input/dist/auro-input.d.ts +1 -1
  86. package/components/input/dist/base-input.d.ts +29 -29
  87. package/components/input/dist/index.js +2 -2
  88. package/components/input/dist/registered.js +2 -2
  89. package/components/menu/demo/api.md +745 -789
  90. package/components/menu/demo/api.min.js +3 -4
  91. package/components/menu/demo/index.md +35 -37
  92. package/components/menu/demo/index.min.js +3 -4
  93. package/components/menu/demo/keyboard-behavior.md +18 -0
  94. package/components/menu/demo/readme.md +23 -35
  95. package/components/menu/dist/auro-menu-utils.d.ts +1 -1
  96. package/components/menu/dist/auro-menu.context.d.ts +3 -3
  97. package/components/menu/dist/auro-menu.d.ts +5 -5
  98. package/components/menu/dist/auro-menuoption.d.ts +6 -6
  99. package/components/menu/dist/index.js +3 -4
  100. package/components/menu/dist/registered.js +3 -4
  101. package/components/radio/demo/api.md +318 -350
  102. package/components/radio/demo/api.min.js +1 -1
  103. package/components/radio/demo/index.md +25 -29
  104. package/components/radio/demo/index.min.js +1 -1
  105. package/components/radio/demo/keyboard-behavior.md +72 -0
  106. package/components/radio/demo/readme.md +21 -33
  107. package/components/radio/dist/auro-radio-group.d.ts +9 -9
  108. package/components/radio/dist/auro-radio.d.ts +8 -8
  109. package/components/radio/dist/index.js +1 -1
  110. package/components/radio/dist/registered.js +1 -1
  111. package/components/select/README.md +12 -1
  112. package/components/select/demo/accessibility.html +65 -0
  113. package/components/select/demo/accessibility.md +76 -0
  114. package/components/select/demo/api.md +1713 -1793
  115. package/components/select/demo/api.min.js +5 -6
  116. package/components/select/demo/index.html +247 -37
  117. package/components/select/demo/index.md +225 -345
  118. package/components/select/demo/index.min.js +5 -6
  119. package/components/select/demo/keyboard-behavior.md +39 -0
  120. package/components/select/demo/layout.html +59 -0
  121. package/components/select/demo/layout.md +299 -0
  122. package/components/select/demo/readme.md +45 -46
  123. package/components/select/demo/voiceover.html +65 -0
  124. package/components/select/demo/voiceover.md +183 -0
  125. package/components/select/dist/auro-select.d.ts +11 -11
  126. package/components/select/dist/index.js +2 -2
  127. package/components/select/dist/registered.js +2 -2
  128. package/custom-elements.json +13 -11
  129. package/package.json +26 -26
  130. package/components/checkbox/demo/keyboardBehavior.md +0 -0
  131. package/components/combobox/demo/keyboardBehavior.md +0 -281
  132. package/components/counter/demo/keyboardBehavior.md +0 -127
  133. package/components/datepicker/demo/keyboardBehavior.md +0 -19
  134. package/components/dropdown/demo/keyboardBehavior.md +0 -77
  135. package/components/form/demo/keyboardBehavior.md +0 -0
  136. package/components/input/demo/keyboardBehavior.md +0 -0
  137. package/components/menu/demo/keyboardBehavior.md +0 -0
  138. package/components/radio/demo/keyboardBehavior.md +0 -0
  139. package/components/select/demo/keyboardBehavior.md +0 -245
  140. /package/components/datepicker/dist/{auro-calendar-month.d.ts → src/auro-calendar-month.d.ts} +0 -0
  141. /package/components/datepicker/dist/{auro-calendar.d.ts → src/auro-calendar.d.ts} +0 -0
  142. /package/components/datepicker/dist/{buttonVersion.d.ts → src/buttonVersion.d.ts} +0 -0
  143. /package/components/datepicker/dist/{datepickerKeyboardStrategy.d.ts → src/datepickerKeyboardStrategy.d.ts} +0 -0
  144. /package/components/datepicker/dist/{iconVersion.d.ts → src/iconVersion.d.ts} +0 -0
  145. /package/components/datepicker/dist/{index.d.ts → src/index.d.ts} +0 -0
  146. /package/components/datepicker/dist/{popoverVersion.d.ts → src/popoverVersion.d.ts} +0 -0
  147. /package/components/datepicker/dist/{styles → src/styles}/classic/color-css.d.ts +0 -0
  148. /package/components/datepicker/dist/{styles → src/styles}/classic/style-css.d.ts +0 -0
  149. /package/components/datepicker/dist/{styles → src/styles}/color-calendar-css.d.ts +0 -0
  150. /package/components/datepicker/dist/{styles → src/styles}/color-cell-css.d.ts +0 -0
  151. /package/components/datepicker/dist/{styles → src/styles}/color-css.d.ts +0 -0
  152. /package/components/datepicker/dist/{styles → src/styles}/color-month-css.d.ts +0 -0
  153. /package/components/datepicker/dist/{styles → src/styles}/shapeSize-css.d.ts +0 -0
  154. /package/components/datepicker/dist/{styles → src/styles}/snowflake/color-css.d.ts +0 -0
  155. /package/components/datepicker/dist/{styles → src/styles}/snowflake/style-css.d.ts +0 -0
  156. /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-cell-css.d.ts +0 -0
  157. /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-css.d.ts +0 -0
  158. /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-month-css.d.ts +0 -0
  159. /package/components/datepicker/dist/{styles → src/styles}/style-css.d.ts +0 -0
  160. /package/components/datepicker/dist/{styles → src/styles}/tokens-css.d.ts +0 -0
  161. /package/components/datepicker/dist/{utilitiesCalendarRender.d.ts → src/utilitiesCalendarRender.d.ts} +0 -0
  162. /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/day.d.ts +0 -0
  163. /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-cell.d.ts +0 -0
@@ -110,29 +110,27 @@ The `auro-datepicker` component provides users with a way to select a date or da
110
110
  ## Basic
111
111
 
112
112
  <div class="exampleWrapper">
113
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
114
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
115
- <auro-datepicker>
116
- <span slot="ariaLabel.bib.close">Close Calendar</span>
117
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
118
- <span slot="fromLabel">Choose a date</span>
119
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
120
- </auro-datepicker>
121
- <!-- AURO-GENERATED-CONTENT:END -->
113
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
114
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
115
+ <auro-datepicker>
116
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
117
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
118
+ <span slot="fromLabel">Choose a date</span>
119
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
120
+ </auro-datepicker>
121
+ <!-- AURO-GENERATED-CONTENT:END -->
122
122
  </div>
123
123
  <auro-accordion alignRight>
124
- <span slot="trigger">See code</span>
124
+ <span slot="trigger">See code</span>
125
125
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
126
126
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
127
127
 
128
- ```html
129
- <auro-datepicker>
130
- <span slot="ariaLabel.bib.close">Close Calendar</span>
131
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
132
- <span slot="fromLabel">Choose a date</span>
133
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
134
- </auro-datepicker>
135
- ```
128
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker&gt;
129
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
130
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
131
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
132
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
133
+ &lt;/auro-datepicker&gt;</code></pre>
136
134
  <!-- AURO-GENERATED-CONTENT:END -->
137
135
  </auro-accordion>
138
136
 
@@ -141,33 +139,31 @@ The `auro-datepicker` component provides users with a way to select a date or da
141
139
  The datepicker can also be used to select a range between two dates by adding the `range` attribute.
142
140
 
143
141
  <div class="exampleWrapper">
144
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/range.html) -->
145
- <!-- The below content is automatically added from ./../apiExamples/range.html -->
146
- <auro-datepicker range>
147
- <span slot="ariaLabel.bib.close">Close Calendar</span>
148
- <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
149
- <span slot="fromLabel">Departure</span>
150
- <span slot="toLabel">Return</span>
151
- <span slot="bib.fullscreen.fromLabel">Departure</span>
152
- <span slot="bib.fullscreen.toLabel">Return</span>
153
- </auro-datepicker>
154
- <!-- AURO-GENERATED-CONTENT:END -->
142
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/range.html) -->
143
+ <!-- The below content is automatically added from ./../apiExamples/range.html -->
144
+ <auro-datepicker range>
145
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
146
+ <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
147
+ <span slot="fromLabel">Departure</span>
148
+ <span slot="toLabel">Return</span>
149
+ <span slot="bib.fullscreen.fromLabel">Departure</span>
150
+ <span slot="bib.fullscreen.toLabel">Return</span>
151
+ </auro-datepicker>
152
+ <!-- AURO-GENERATED-CONTENT:END -->
155
153
  </div>
156
154
  <auro-accordion alignRight>
157
- <span slot="trigger">See code</span>
155
+ <span slot="trigger">See code</span>
158
156
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/range.html) -->
159
157
  <!-- The below code snippet is automatically added from ./../apiExamples/range.html -->
160
158
 
161
- ```html
162
- <auro-datepicker range>
163
- <span slot="ariaLabel.bib.close">Close Calendar</span>
164
- <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
165
- <span slot="fromLabel">Departure</span>
166
- <span slot="toLabel">Return</span>
167
- <span slot="bib.fullscreen.fromLabel">Departure</span>
168
- <span slot="bib.fullscreen.toLabel">Return</span>
169
- </auro-datepicker>
170
- ```
159
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker range&gt;
160
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
161
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Range Headline&lt;/span&gt;
162
+ &lt;span slot="fromLabel"&gt;Departure&lt;/span&gt;
163
+ &lt;span slot="toLabel"&gt;Return&lt;/span&gt;
164
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Departure&lt;/span&gt;
165
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Return&lt;/span&gt;
166
+ &lt;/auro-datepicker&gt;</code></pre>
171
167
  <!-- AURO-GENERATED-CONTENT:END -->
172
168
  </auro-accordion>
173
169
 
@@ -178,57 +174,53 @@ The datepicker can also be used to select a range between two dates by adding th
178
174
  Use `appearance="inverse"` to display the datepicker on dark backgrounds.
179
175
 
180
176
  <div class="exampleWrapper--ondark">
181
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
182
- <!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
183
- <auro-datepicker appearance="inverse">
184
- <span slot="ariaLabel.bib.close">Close Calendar</span>
185
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
186
- <span slot="fromLabel">Choose a date</span>
187
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
188
- </auro-datepicker>
189
- <!-- AURO-GENERATED-CONTENT:END -->
177
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
178
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
179
+ <auro-datepicker appearance="inverse">
180
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
181
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
182
+ <span slot="fromLabel">Choose a date</span>
183
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
184
+ </auro-datepicker>
185
+ <!-- AURO-GENERATED-CONTENT:END -->
190
186
  </div>
191
187
  <auro-accordion alignRight>
192
- <span slot="trigger">See code</span>
188
+ <span slot="trigger">See code</span>
193
189
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
194
190
  <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
195
191
 
196
- ```html
197
- <auro-datepicker appearance="inverse">
198
- <span slot="ariaLabel.bib.close">Close Calendar</span>
199
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
200
- <span slot="fromLabel">Choose a date</span>
201
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
202
- </auro-datepicker>
203
- ```
192
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker appearance="inverse"&gt;
193
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
194
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
195
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
196
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
197
+ &lt;/auro-datepicker&gt;</code></pre>
204
198
  <!-- AURO-GENERATED-CONTENT:END -->
205
199
  </auro-accordion>
206
200
  <div class="exampleWrapper--ondark">
207
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-range.html) -->
208
- <!-- The below content is automatically added from ./../apiExamples/appearance-inverse-range.html -->
209
- <auro-datepicker appearance="inverse" range>
210
- <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
211
- <span slot="fromLabel">Departure</span>
212
- <span slot="toLabel">Return</span>
213
- <span slot="bib.fullscreen.fromLabel">Departure</span>
214
- <span slot="bib.fullscreen.toLabel">Return</span>
215
- </auro-datepicker>
216
- <!-- AURO-GENERATED-CONTENT:END -->
201
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-range.html) -->
202
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse-range.html -->
203
+ <auro-datepicker appearance="inverse" range>
204
+ <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
205
+ <span slot="fromLabel">Departure</span>
206
+ <span slot="toLabel">Return</span>
207
+ <span slot="bib.fullscreen.fromLabel">Departure</span>
208
+ <span slot="bib.fullscreen.toLabel">Return</span>
209
+ </auro-datepicker>
210
+ <!-- AURO-GENERATED-CONTENT:END -->
217
211
  </div>
218
212
  <auro-accordion alignRight>
219
- <span slot="trigger">See code</span>
213
+ <span slot="trigger">See code</span>
220
214
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-range.html) -->
221
215
  <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-range.html -->
222
216
 
223
- ```html
224
- <auro-datepicker appearance="inverse" range>
225
- <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
226
- <span slot="fromLabel">Departure</span>
227
- <span slot="toLabel">Return</span>
228
- <span slot="bib.fullscreen.fromLabel">Departure</span>
229
- <span slot="bib.fullscreen.toLabel">Return</span>
230
- </auro-datepicker>
231
- ```
217
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker appearance="inverse" range&gt;
218
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Range Headline&lt;/span&gt;
219
+ &lt;span slot="fromLabel"&gt;Departure&lt;/span&gt;
220
+ &lt;span slot="toLabel"&gt;Return&lt;/span&gt;
221
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Departure&lt;/span&gt;
222
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Return&lt;/span&gt;
223
+ &lt;/auro-datepicker&gt;</code></pre>
232
224
  <!-- AURO-GENERATED-CONTENT:END -->
233
225
  </auro-accordion>
234
226
 
@@ -243,77 +235,75 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
243
235
  - `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
244
236
 
245
237
  <div class="exampleWrapper">
246
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floater-config.html) -->
247
- <!-- The below content is automatically added from ./../apiExamples/floater-config.html -->
248
- <div style="width: 400px">
249
- <auro-datepicker offset="20" placement="bottom-start" noFlip>
250
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
251
- <span slot="fromLabel">bottom-start with 20px offset and noFlip</span>
252
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
253
- </auro-datepicker>
254
- <br/>
255
- <auro-datepicker offset="20" placement="bottom-start">
256
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
257
- <span slot="fromLabel">bottom-start with 20px offset and flip</span>
258
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
259
- </auro-datepicker>
260
- <br/>
261
- <auro-datepicker offset="20" placement="right" autoPlacement noFlip>
262
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
263
- <span slot="fromLabel">right with 20px offset, noFlip and autoPlacement</span>
264
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
265
- </auro-datepicker>
266
- </div>
267
- <div style="width: 600px; padding-top: 1em;">
268
- <p>Range bottom-start with 20px offset, noFlip and shift enabled</p>
269
- <auro-datepicker range offset="20" placement="bottom-start" shift noFlip minDate="07/08/2025">
270
- <span slot="ariaLabel.bib.close">Close Calendar</span>
271
- <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
272
- <span slot="fromLabel">Departure</span>
273
- <span slot="toLabel">Return</span>
274
- <span slot="bib.fullscreen.fromLabel">Departure</span>
275
- <span slot="bib.fullscreen.toLabel">Return</span>
276
- </auro-datepicker>
277
- </div>
278
- <!-- AURO-GENERATED-CONTENT:END -->
238
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floater-config.html) -->
239
+ <!-- The below content is automatically added from ./../apiExamples/floater-config.html -->
240
+ <div style="width: 400px">
241
+ <auro-datepicker offset="20" placement="bottom-start" noFlip>
242
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
243
+ <span slot="fromLabel">bottom-start with 20px offset and noFlip</span>
244
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
245
+ </auro-datepicker>
246
+ <br/>
247
+ <auro-datepicker offset="20" placement="bottom-start">
248
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
249
+ <span slot="fromLabel">bottom-start with 20px offset and flip</span>
250
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
251
+ </auro-datepicker>
252
+ <br/>
253
+ <auro-datepicker offset="20" placement="right" autoPlacement noFlip>
254
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
255
+ <span slot="fromLabel">right with 20px offset, noFlip and autoPlacement</span>
256
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
257
+ </auro-datepicker>
258
+ </div>
259
+ <div style="width: 600px; padding-top: 1em;">
260
+ <p>Range bottom-start with 20px offset, noFlip and shift enabled</p>
261
+ <auro-datepicker range offset="20" placement="bottom-start" shift noFlip minDate="07/08/2025">
262
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
263
+ <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
264
+ <span slot="fromLabel">Departure</span>
265
+ <span slot="toLabel">Return</span>
266
+ <span slot="bib.fullscreen.fromLabel">Departure</span>
267
+ <span slot="bib.fullscreen.toLabel">Return</span>
268
+ </auro-datepicker>
269
+ </div>
270
+ <!-- AURO-GENERATED-CONTENT:END -->
279
271
  </div>
280
272
  <auro-accordion alignRight>
281
- <span slot="trigger">See code</span>
273
+ <span slot="trigger">See code</span>
282
274
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floater-config.html) -->
283
275
  <!-- The below code snippet is automatically added from ./../apiExamples/floater-config.html -->
284
276
 
285
- ```html
286
- <div style="width: 400px">
287
- <auro-datepicker offset="20" placement="bottom-start" noFlip>
288
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
289
- <span slot="fromLabel">bottom-start with 20px offset and noFlip</span>
290
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
291
- </auro-datepicker>
292
- <br/>
293
- <auro-datepicker offset="20" placement="bottom-start">
294
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
295
- <span slot="fromLabel">bottom-start with 20px offset and flip</span>
296
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
297
- </auro-datepicker>
298
- <br/>
299
- <auro-datepicker offset="20" placement="right" autoPlacement noFlip>
300
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
301
- <span slot="fromLabel">right with 20px offset, noFlip and autoPlacement</span>
302
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
303
- </auro-datepicker>
304
- </div>
305
- <div style="width: 600px; padding-top: 1em;">
306
- <p>Range bottom-start with 20px offset, noFlip and shift enabled</p>
307
- <auro-datepicker range offset="20" placement="bottom-start" shift noFlip minDate="07/08/2025">
308
- <span slot="ariaLabel.bib.close">Close Calendar</span>
309
- <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
310
- <span slot="fromLabel">Departure</span>
311
- <span slot="toLabel">Return</span>
312
- <span slot="bib.fullscreen.fromLabel">Departure</span>
313
- <span slot="bib.fullscreen.toLabel">Return</span>
314
- </auro-datepicker>
315
- </div>
316
- ```
277
+ <pre class="language-html"><code class="language-html">&lt;div style="width: 400px"&gt;
278
+ &lt;auro-datepicker offset="20" placement="bottom-start" noFlip&gt;
279
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
280
+ &lt;span slot="fromLabel"&gt;bottom-start with 20px offset and noFlip&lt;/span&gt;
281
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
282
+ &lt;/auro-datepicker&gt;
283
+ &lt;br/&gt;
284
+ &lt;auro-datepicker offset="20" placement="bottom-start"&gt;
285
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
286
+ &lt;span slot="fromLabel"&gt;bottom-start with 20px offset and flip&lt;/span&gt;
287
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
288
+ &lt;/auro-datepicker&gt;
289
+ &lt;br/&gt;
290
+ &lt;auro-datepicker offset="20" placement="right" autoPlacement noFlip&gt;
291
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
292
+ &lt;span slot="fromLabel"&gt;right with 20px offset, noFlip and autoPlacement&lt;/span&gt;
293
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
294
+ &lt;/auro-datepicker&gt;
295
+ &lt;/div&gt;
296
+ &lt;div style="width: 600px; padding-top: 1em;"&gt;
297
+ &lt;p&gt;Range bottom-start with 20px offset, noFlip and shift enabled&lt;/p&gt;
298
+ &lt;auro-datepicker range offset="20" placement="bottom-start" shift noFlip minDate="07/08/2025"&gt;
299
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
300
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Range Headline&lt;/span&gt;
301
+ &lt;span slot="fromLabel"&gt;Departure&lt;/span&gt;
302
+ &lt;span slot="toLabel"&gt;Return&lt;/span&gt;
303
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Departure&lt;/span&gt;
304
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Return&lt;/span&gt;
305
+ &lt;/auro-datepicker&gt;
306
+ &lt;/div&gt;</code></pre>
317
307
  <!-- AURO-GENERATED-CONTENT:END -->
318
308
  </auro-accordion>
319
309
 
@@ -330,27 +320,25 @@ In <strong>desktop</strong>, the calendar month navigation will be restricted by
330
320
  Note: This does not restrict setting a value outside of those date constraints. These properties _only_ define which months can be rendered in the calendar. A user may still type any date into the input field. If actual value selection restrictions are needed, see the `minDate` and `maxDate` properties which may be used standalone, or in conjunction with `calendarStartDate` and `calendarEndDate`.
331
321
 
332
322
  <div class="exampleWrapper">
333
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/calendar-start-and-end-date.html) -->
334
- <!-- The below content is automatically added from ./../apiExamples/calendar-start-and-end-date.html -->
335
- <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="06/01/2022">
336
- <span slot="bib.fullscreen.headline">calendarStartDate & calendarEndDate Example</span>
337
- <span slot="fromLabel">Choose a date</span>
338
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
339
- </auro-datepicker>
340
- <!-- AURO-GENERATED-CONTENT:END -->
323
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/calendar-start-and-end-date.html) -->
324
+ <!-- The below content is automatically added from ./../apiExamples/calendar-start-and-end-date.html -->
325
+ <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="06/01/2022">
326
+ <span slot="bib.fullscreen.headline">calendarStartDate & calendarEndDate Example</span>
327
+ <span slot="fromLabel">Choose a date</span>
328
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
329
+ </auro-datepicker>
330
+ <!-- AURO-GENERATED-CONTENT:END -->
341
331
  </div>
342
332
  <auro-accordion alignRight>
343
- <span slot="trigger">See code</span>
333
+ <span slot="trigger">See code</span>
344
334
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/calendar-start-and-end-date.html) -->
345
335
  <!-- The below code snippet is automatically added from ./../apiExamples/calendar-start-and-end-date.html -->
346
336
 
347
- ```html
348
- <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="06/01/2022">
349
- <span slot="bib.fullscreen.headline">calendarStartDate & calendarEndDate Example</span>
350
- <span slot="fromLabel">Choose a date</span>
351
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
352
- </auro-datepicker>
353
- ```
337
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="06/01/2022"&gt;
338
+ &lt;span slot="bib.fullscreen.headline"&gt;calendarStartDate &amp; calendarEndDate Example&lt;/span&gt;
339
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
340
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
341
+ &lt;/auro-datepicker&gt;</code></pre>
354
342
  <!-- AURO-GENERATED-CONTENT:END -->
355
343
  </auro-accordion>
356
344
 
@@ -363,27 +351,25 @@ In <strong>desktop</strong> layout, the first month actually rendered will be th
363
351
  In <strong>mobile</strong> layout, upon first opening the bib, the vertical list of months will scroll (with no animation) to the month defined by the `calendarFocusDate`. If the user scrolls the list to a different position, the scroll position will remain where the user left off when they close and reopen the bib. If the `calendarFocusDate` is changed, the list will scroll to the new dates month. If `calendarFocusDate` is undefined, the list will start at the top most scroll position.
364
352
 
365
353
  <div class="exampleWrapper">
366
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/calendar-focus-date.html) -->
367
- <!-- The below content is automatically added from ./../apiExamples/calendar-focus-date.html -->
368
- <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="12/01/2023" calendarFocusDate="11/01/2022">
369
- <span slot="bib.fullscreen.headline">calendarFocusDate Example</span>
370
- <span slot="fromLabel">Choose a date</span>
371
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
372
- </auro-datepicker>
373
- <!-- AURO-GENERATED-CONTENT:END -->
354
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/calendar-focus-date.html) -->
355
+ <!-- The below content is automatically added from ./../apiExamples/calendar-focus-date.html -->
356
+ <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="12/01/2023" calendarFocusDate="11/01/2022">
357
+ <span slot="bib.fullscreen.headline">calendarFocusDate Example</span>
358
+ <span slot="fromLabel">Choose a date</span>
359
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
360
+ </auro-datepicker>
361
+ <!-- AURO-GENERATED-CONTENT:END -->
374
362
  </div>
375
363
  <auro-accordion alignRight>
376
- <span slot="trigger">See code</span>
364
+ <span slot="trigger">See code</span>
377
365
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/calendar-focus-date.html) -->
378
366
  <!-- The below code snippet is automatically added from ./../apiExamples/calendar-focus-date.html -->
379
367
 
380
- ```html
381
- <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="12/01/2023" calendarFocusDate="11/01/2022">
382
- <span slot="bib.fullscreen.headline">calendarFocusDate Example</span>
383
- <span slot="fromLabel">Choose a date</span>
384
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
385
- </auro-datepicker>
386
- ```
368
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="12/01/2023" calendarFocusDate="11/01/2022"&gt;
369
+ &lt;span slot="bib.fullscreen.headline"&gt;calendarFocusDate Example&lt;/span&gt;
370
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
371
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
372
+ &lt;/auro-datepicker&gt;</code></pre>
387
373
  <!-- AURO-GENERATED-CONTENT:END -->
388
374
  </auro-accordion>
389
375
 
@@ -392,27 +378,25 @@ In <strong>mobile</strong> layout, upon first opening the bib, the vertical list
392
378
  The `centralDate` attribute can be used to force the calendar to navigate to a specific month. WARNING: Do not set the `centralDate` attribute on blur.
393
379
 
394
380
  <div class="exampleWrapper">
395
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/central-date.html) -->
396
- <!-- The below content is automatically added from ./../apiExamples/central-date.html -->
397
- <auro-datepicker centralDate="06/16/1980">
398
- <span slot="bib.fullscreen.headline">centralDate Example</span>
399
- <span slot="fromLabel">Choose a date</span>
400
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
401
- </auro-datepicker>
402
- <!-- AURO-GENERATED-CONTENT:END -->
381
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/central-date.html) -->
382
+ <!-- The below content is automatically added from ./../apiExamples/central-date.html -->
383
+ <auro-datepicker centralDate="06/16/1980">
384
+ <span slot="bib.fullscreen.headline">centralDate Example</span>
385
+ <span slot="fromLabel">Choose a date</span>
386
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
387
+ </auro-datepicker>
388
+ <!-- AURO-GENERATED-CONTENT:END -->
403
389
  </div>
404
390
  <auro-accordion alignRight>
405
- <span slot="trigger">See code</span>
391
+ <span slot="trigger">See code</span>
406
392
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/central-date.html) -->
407
393
  <!-- The below code snippet is automatically added from ./../apiExamples/central-date.html -->
408
394
 
409
- ```html
410
- <auro-datepicker centralDate="06/16/1980">
411
- <span slot="bib.fullscreen.headline">centralDate Example</span>
412
- <span slot="fromLabel">Choose a date</span>
413
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
414
- </auro-datepicker>
415
- ```
395
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker centralDate="06/16/1980"&gt;
396
+ &lt;span slot="bib.fullscreen.headline"&gt;centralDate Example&lt;/span&gt;
397
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
398
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
399
+ &lt;/auro-datepicker&gt;</code></pre>
416
400
  <!-- AURO-GENERATED-CONTENT:END -->
417
401
  </auro-accordion>
418
402
 
@@ -421,25 +405,23 @@ The `centralDate` attribute can be used to force the calendar to navigate to a s
421
405
  Set the `disabled` attribute to disable all interaction with the datepicker.
422
406
 
423
407
  <div class="exampleWrapper">
424
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
425
- <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
426
- <auro-datepicker disabled>
427
- <span slot="fromLabel">Choose a date</span>
428
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
429
- </auro-datepicker>
430
- <!-- AURO-GENERATED-CONTENT:END -->
408
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
409
+ <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
410
+ <auro-datepicker disabled>
411
+ <span slot="fromLabel">Choose a date</span>
412
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
413
+ </auro-datepicker>
414
+ <!-- AURO-GENERATED-CONTENT:END -->
431
415
  </div>
432
416
  <auro-accordion alignRight>
433
- <span slot="trigger">See code</span>
417
+ <span slot="trigger">See code</span>
434
418
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
435
419
  <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
436
420
 
437
- ```html
438
- <auro-datepicker disabled>
439
- <span slot="fromLabel">Choose a date</span>
440
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
441
- </auro-datepicker>
442
- ```
421
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker disabled&gt;
422
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
423
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
424
+ &lt;/auro-datepicker&gt;</code></pre>
443
425
  <!-- AURO-GENERATED-CONTENT:END -->
444
426
  </auro-accordion>
445
427
 
@@ -450,50 +432,46 @@ Use the `error` attribute to apply a persistent custom error that supersedes the
450
432
  A custom error message can be set using the `error` attribute, or it can be used in conjuction with the `setCustomValidityCustomError` attribute.
451
433
 
452
434
  <div class="exampleWrapper">
453
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
454
- <!-- The below content is automatically added from ./../apiExamples/error.html -->
455
- <auro-button id="undefinedValueExampleBtnAddError">Set Error</auro-button>
456
- <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
457
- <br />
458
- <auro-datepicker error="Custom error message" id="errorExample">
459
- <span slot="bib.fullscreen.headline">Error Example</span>
460
- <span slot="fromLabel">Choose a date</span>
461
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
462
- </auro-datepicker>
463
- <!-- AURO-GENERATED-CONTENT:END -->
435
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
436
+ <!-- The below content is automatically added from ./../apiExamples/error.html -->
437
+ <auro-button id="undefinedValueExampleBtnAddError">Set Error</auro-button>
438
+ <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
439
+ <br />
440
+ <auro-datepicker error="Custom error message" id="errorExample">
441
+ <span slot="bib.fullscreen.headline">Error Example</span>
442
+ <span slot="fromLabel">Choose a date</span>
443
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
444
+ </auro-datepicker>
445
+ <!-- AURO-GENERATED-CONTENT:END -->
464
446
  </div>
465
447
  <auro-accordion alignRight>
466
- <span slot="trigger">See code</span>
448
+ <span slot="trigger">See code</span>
467
449
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
468
450
  <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
469
451
 
470
- ```html
471
- <auro-button id="undefinedValueExampleBtnAddError">Set Error</auro-button>
472
- <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
473
- <br />
474
- <auro-datepicker error="Custom error message" id="errorExample">
475
- <span slot="bib.fullscreen.headline">Error Example</span>
476
- <span slot="fromLabel">Choose a date</span>
477
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
478
- </auro-datepicker>
479
- ```
452
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="undefinedValueExampleBtnAddError"&gt;Set Error&lt;/auro-button&gt;
453
+ &lt;auro-button id="undefinedValueExampleBtnRemoveError"&gt;Remove Error&lt;/auro-button&gt;
454
+ &lt;br /&gt;
455
+ &lt;auro-datepicker error="Custom error message" id="errorExample"&gt;
456
+ &lt;span slot="bib.fullscreen.headline"&gt;Error Example&lt;/span&gt;
457
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
458
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
459
+ &lt;/auro-datepicker&gt;</code></pre>
480
460
  <!-- AURO-GENERATED-CONTENT:END -->
481
461
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.js) -->
482
462
  <!-- The below code snippet is automatically added from ./../apiExamples/error.js -->
483
463
 
484
- ```js
485
- export function errorExample() {
464
+ <pre class="language-js"><code class="language-js">export function errorExample() {
486
465
  const errorExample = document.querySelector('#errorExample');
487
-
488
- document.querySelector('#undefinedValueExampleBtnAddError').addEventListener('click', () => {
466
+
467
+ document.querySelector('#undefinedValueExampleBtnAddError').addEventListener('click', () =&gt; {
489
468
  errorExample.error = 'Custom New Error';
490
469
  })
491
-
492
- document.querySelector('#undefinedValueExampleBtnRemoveError').addEventListener('click', () => {
470
+
471
+ document.querySelector('#undefinedValueExampleBtnRemoveError').addEventListener('click', () =&gt; {
493
472
  errorExample.removeAttribute('error');
494
473
  })
495
- }
496
- ```
474
+ }</code></pre>
497
475
  <!-- AURO-GENERATED-CONTENT:END -->
498
476
  </auro-accordion>
499
477
 
@@ -502,27 +480,25 @@ export function errorExample() {
502
480
  The `format` attribute is used to define the date format used by the datepicker. The default value is `mm/dd/yyyy`.
503
481
 
504
482
  <div class="exampleWrapper">
505
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/format.html) -->
506
- <!-- The below content is automatically added from ./../apiExamples/format.html -->
507
- <auro-datepicker format="yyyy/mm/dd">
508
- <span slot="bib.fullscreen.headline">Format Headline</span>
509
- <span slot="fromLabel">Choose a date</span>
510
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
511
- </auro-datepicker>
512
- <!-- AURO-GENERATED-CONTENT:END -->
483
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/format.html) -->
484
+ <!-- The below content is automatically added from ./../apiExamples/format.html -->
485
+ <auro-datepicker format="yyyy/mm/dd">
486
+ <span slot="bib.fullscreen.headline">Format Headline</span>
487
+ <span slot="fromLabel">Choose a date</span>
488
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
489
+ </auro-datepicker>
490
+ <!-- AURO-GENERATED-CONTENT:END -->
513
491
  </div>
514
492
  <auro-accordion alignRight>
515
- <span slot="trigger">See code</span>
493
+ <span slot="trigger">See code</span>
516
494
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/format.html) -->
517
495
  <!-- The below code snippet is automatically added from ./../apiExamples/format.html -->
518
496
 
519
- ```html
520
- <auro-datepicker format="yyyy/mm/dd">
521
- <span slot="bib.fullscreen.headline">Format Headline</span>
522
- <span slot="fromLabel">Choose a date</span>
523
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
524
- </auro-datepicker>
525
- ```
497
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker format="yyyy/mm/dd"&gt;
498
+ &lt;span slot="bib.fullscreen.headline"&gt;Format Headline&lt;/span&gt;
499
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
500
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
501
+ &lt;/auro-datepicker&gt;</code></pre>
526
502
  <!-- AURO-GENERATED-CONTENT:END -->
527
503
  </auro-accordion>
528
504
 
@@ -537,29 +513,27 @@ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/
537
513
  To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMMENDED**.
538
514
 
539
515
  <div class="exampleWrapper">
540
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen-breakpoint.html) -->
541
- <!-- The below content is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
542
- <auro-datepicker fullscreenBreakpoint="lg">
543
- <span slot="ariaLabel.bib.close">Close Calendar</span>
544
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
545
- <span slot="fromLabel">Choose a date</span>
546
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
547
- </auro-datepicker>
548
- <!-- AURO-GENERATED-CONTENT:END -->
516
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen-breakpoint.html) -->
517
+ <!-- The below content is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
518
+ <auro-datepicker fullscreenBreakpoint="lg">
519
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
520
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
521
+ <span slot="fromLabel">Choose a date</span>
522
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
523
+ </auro-datepicker>
524
+ <!-- AURO-GENERATED-CONTENT:END -->
549
525
  </div>
550
526
  <auro-accordion alignRight>
551
- <span slot="trigger">See code</span>
527
+ <span slot="trigger">See code</span>
552
528
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fullscreen-breakpoint.html) -->
553
529
  <!-- The below code snippet is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
554
530
 
555
- ```html
556
- <auro-datepicker fullscreenBreakpoint="lg">
557
- <span slot="ariaLabel.bib.close">Close Calendar</span>
558
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
559
- <span slot="fromLabel">Choose a date</span>
560
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
561
- </auro-datepicker>
562
- ```
531
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker fullscreenBreakpoint="lg"&gt;
532
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
533
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
534
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
535
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
536
+ &lt;/auro-datepicker&gt;</code></pre>
563
537
  <!-- AURO-GENERATED-CONTENT:END -->
564
538
  </auro-accordion>
565
539
 
@@ -568,27 +542,25 @@ To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMM
568
542
  You can manually set the input mode for the input with the `inputmode` attribute.
569
543
 
570
544
  <div class="exampleWrapper">
571
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
572
- <!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
573
- <auro-datepicker inputmode="numeric">
574
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
575
- <span slot="fromLabel">Choose a date</span>
576
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
577
- </auro-datepicker>
578
- <!-- AURO-GENERATED-CONTENT:END -->
545
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
546
+ <!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
547
+ <auro-datepicker inputmode="numeric">
548
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
549
+ <span slot="fromLabel">Choose a date</span>
550
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
551
+ </auro-datepicker>
552
+ <!-- AURO-GENERATED-CONTENT:END -->
579
553
  </div>
580
554
  <auro-accordion alignRight>
581
- <span slot="trigger">See code</span>
555
+ <span slot="trigger">See code</span>
582
556
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inputmode.html) -->
583
557
  <!-- The below code snippet is automatically added from ./../apiExamples/inputmode.html -->
584
558
 
585
- ```html
586
- <auro-datepicker inputmode="numeric">
587
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
588
- <span slot="fromLabel">Choose a date</span>
589
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
590
- </auro-datepicker>
591
- ```
559
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker inputmode="numeric"&gt;
560
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
561
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
562
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
563
+ &lt;/auro-datepicker&gt;</code></pre>
592
564
  <!-- AURO-GENERATED-CONTENT:END -->
593
565
  </auro-accordion>
594
566
 
@@ -597,27 +569,25 @@ You can manually set the input mode for the input with the `inputmode` attribute
597
569
  To give a higher limit you can bind a date to the `maxDate` attribute. It is recommended to use the `setCustomValidityRangeOverflow` attribute to define an error message to display when validation fails the maximum date restriction.
598
570
 
599
571
  <div class="exampleWrapper">
600
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/max-date.html) -->
601
- <!-- The below content is automatically added from ./../apiExamples/max-date.html -->
602
- <auro-datepicker maxDate="03/25/2023" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
603
- <span slot="bib.fullscreen.headline">maxDate Example</span>
604
- <span slot="fromLabel">Choose a date</span>
605
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
606
- </auro-datepicker>
607
- <!-- AURO-GENERATED-CONTENT:END -->
572
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/max-date.html) -->
573
+ <!-- The below content is automatically added from ./../apiExamples/max-date.html -->
574
+ <auro-datepicker maxDate="03/25/2023" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
575
+ <span slot="bib.fullscreen.headline">maxDate Example</span>
576
+ <span slot="fromLabel">Choose a date</span>
577
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
578
+ </auro-datepicker>
579
+ <!-- AURO-GENERATED-CONTENT:END -->
608
580
  </div>
609
581
  <auro-accordion alignRight>
610
- <span slot="trigger">See code</span>
582
+ <span slot="trigger">See code</span>
611
583
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/max-date.html) -->
612
584
  <!-- The below code snippet is automatically added from ./../apiExamples/max-date.html -->
613
585
 
614
- ```html
615
- <auro-datepicker maxDate="03/25/2023" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
616
- <span slot="bib.fullscreen.headline">maxDate Example</span>
617
- <span slot="fromLabel">Choose a date</span>
618
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
619
- </auro-datepicker>
620
- ```
586
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker maxDate="03/25/2023" setCustomValidityRangeOverflow="Selected date is later than maximum date."&gt;
587
+ &lt;span slot="bib.fullscreen.headline"&gt;maxDate Example&lt;/span&gt;
588
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
589
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
590
+ &lt;/auro-datepicker&gt;</code></pre>
621
591
  <!-- AURO-GENERATED-CONTENT:END -->
622
592
  </auro-accordion>
623
593
 
@@ -631,74 +601,70 @@ Setting the `maxDate` attribute to a date earlier than the auro-datepicker `valu
631
601
  This example demonstrates that behavior.
632
602
 
633
603
  <div class="exampleWrapper">
634
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/update-max-date.html) -->
635
- <!-- The below content is automatically added from ./../apiExamples/update-max-date.html -->
636
- <auro-button id="maxDateChange">Change maxDate to Today's Date</auro-button>
637
- <auro-button id="resetMaxDate">Reset Datepicker to Initial Example</auro-button>
638
- <br />
639
- <auro-datepicker id="maxDateExample" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
640
- <span slot="bib.fullscreen.headline">maxDate Example</span>
641
- <span slot="fromLabel">Choose a date</span>
642
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
643
- </auro-datepicker>
644
- <!-- AURO-GENERATED-CONTENT:END -->
604
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/update-max-date.html) -->
605
+ <!-- The below content is automatically added from ./../apiExamples/update-max-date.html -->
606
+ <auro-button id="maxDateChange">Change maxDate to Today's Date</auro-button>
607
+ <auro-button id="resetMaxDate">Reset Datepicker to Initial Example</auro-button>
608
+ <br />
609
+ <auro-datepicker id="maxDateExample" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
610
+ <span slot="bib.fullscreen.headline">maxDate Example</span>
611
+ <span slot="fromLabel">Choose a date</span>
612
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
613
+ </auro-datepicker>
614
+ <!-- AURO-GENERATED-CONTENT:END -->
645
615
  </div>
646
616
  <auro-accordion alignRight>
647
- <span slot="trigger">See code</span>
617
+ <span slot="trigger">See code</span>
648
618
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/update-max-date.html) -->
649
619
  <!-- The below code snippet is automatically added from ./../apiExamples/update-max-date.html -->
650
620
 
651
- ```html
652
- <auro-button id="maxDateChange">Change maxDate to Today's Date</auro-button>
653
- <auro-button id="resetMaxDate">Reset Datepicker to Initial Example</auro-button>
654
- <br />
655
- <auro-datepicker id="maxDateExample" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
656
- <span slot="bib.fullscreen.headline">maxDate Example</span>
657
- <span slot="fromLabel">Choose a date</span>
658
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
659
- </auro-datepicker>
660
- ```
621
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="maxDateChange"&gt;Change maxDate to Today's Date&lt;/auro-button&gt;
622
+ &lt;auro-button id="resetMaxDate"&gt;Reset Datepicker to Initial Example&lt;/auro-button&gt;
623
+ &lt;br /&gt;
624
+ &lt;auro-datepicker id="maxDateExample" setCustomValidityRangeOverflow="Selected date is later than maximum date."&gt;
625
+ &lt;span slot="bib.fullscreen.headline"&gt;maxDate Example&lt;/span&gt;
626
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
627
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
628
+ &lt;/auro-datepicker&gt;</code></pre>
661
629
  <!-- AURO-GENERATED-CONTENT:END -->
662
630
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/update-max-date.js) -->
663
631
  <!-- The below code snippet is automatically added from ./../apiExamples/update-max-date.js -->
664
632
 
665
- ```js
666
- function formatDateString(date) {
633
+ <pre class="language-js"><code class="language-js">function formatDateString(date) {
667
634
  /* eslint-disable prefer-template, no-magic-numbers */
668
635
  const dd = String("0" + date.getDate()).slice(-2);
669
636
  const mm = String("0" + (date.getMonth() + 1)).slice(-2);
670
637
  /* eslint-enable prefer-template, no-magic-numbers */
671
638
  const yyyy = date.getFullYear();
672
-
639
+
673
640
  return `${mm}/${dd}/${yyyy}`;
674
641
  }
675
-
642
+
676
643
  export function updateMaxDateExample() {
677
644
  const maxDateExample = document.getElementById('maxDateExample');
678
645
  const changeMaxDateButton = document.getElementById('maxDateChange');
679
646
  const resetButton = document.getElementById('resetMaxDate');
680
-
647
+
681
648
  const today = formatDateString(new Date());
682
-
649
+
683
650
  let nextWeek = new Date();
684
651
  let addOneWeek = nextWeek.getDate() + 7;
685
-
652
+
686
653
  nextWeek.setDate(addOneWeek);
687
654
  nextWeek = formatDateString(nextWeek);
688
-
655
+
689
656
  maxDateExample.setAttribute('value', nextWeek);
690
657
  maxDateExample.setAttribute('maxDate', nextWeek);
691
-
692
- changeMaxDateButton.addEventListener('click', () => {
658
+
659
+ changeMaxDateButton.addEventListener('click', () =&gt; {
693
660
  maxDateExample.setAttribute('maxDate', today);
694
661
  });
695
-
696
- resetButton.addEventListener('click', () => {
662
+
663
+ resetButton.addEventListener('click', () =&gt; {
697
664
  maxDateExample.setAttribute('value', nextWeek);
698
665
  maxDateExample.setAttribute('maxDate', nextWeek);
699
666
  });
700
- }
701
- ```
667
+ }</code></pre>
702
668
  <!-- AURO-GENERATED-CONTENT:END -->
703
669
  </auro-accordion>
704
670
 
@@ -707,27 +673,25 @@ export function updateMaxDateExample() {
707
673
  To give a lower limit you can bind a date to the `minDate` attribute. It is recommended to use the `setCustomValidityRangeUnderflow` attribute to define an error message to display when validation fails the minimum date restriction.
708
674
 
709
675
  <div class="exampleWrapper">
710
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/min-date.html) -->
711
- <!-- The below content is automatically added from ./../apiExamples/min-date.html -->
712
- <auro-datepicker minDate="03/25/2028" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
713
- <span slot="bib.fullscreen.headline">minDate Example</span>
714
- <span slot="fromLabel">Choose a date</span>
715
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
716
- </auro-datepicker>
717
- <!-- AURO-GENERATED-CONTENT:END -->
676
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/min-date.html) -->
677
+ <!-- The below content is automatically added from ./../apiExamples/min-date.html -->
678
+ <auro-datepicker minDate="03/25/2028" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
679
+ <span slot="bib.fullscreen.headline">minDate Example</span>
680
+ <span slot="fromLabel">Choose a date</span>
681
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
682
+ </auro-datepicker>
683
+ <!-- AURO-GENERATED-CONTENT:END -->
718
684
  </div>
719
685
  <auro-accordion alignRight>
720
- <span slot="trigger">See code</span>
686
+ <span slot="trigger">See code</span>
721
687
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/min-date.html) -->
722
688
  <!-- The below code snippet is automatically added from ./../apiExamples/min-date.html -->
723
689
 
724
- ```html
725
- <auro-datepicker minDate="03/25/2028" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
726
- <span slot="bib.fullscreen.headline">minDate Example</span>
727
- <span slot="fromLabel">Choose a date</span>
728
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
729
- </auro-datepicker>
730
- ```
690
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker minDate="03/25/2028" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date."&gt;
691
+ &lt;span slot="bib.fullscreen.headline"&gt;minDate Example&lt;/span&gt;
692
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
693
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
694
+ &lt;/auro-datepicker&gt;</code></pre>
731
695
  <!-- AURO-GENERATED-CONTENT:END -->
732
696
  </auro-accordion>
733
697
 
@@ -741,75 +705,71 @@ Setting the `minDate` attribute to a date later than the auro-datepicker `value`
741
705
  This example demonstrates that behavior.
742
706
 
743
707
  <div class="exampleWrapper">
744
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/update-min-date.html) -->
745
- <!-- The below content is automatically added from ./../apiExamples/update-min-date.html -->
746
- <auro-button id="minDateChange">Change minDate to a week from Today</auro-button>
747
- <auro-button id="resetMinDate">Reset Datepicker to Initial Example</auro-button>
748
- <br />
749
- <auro-datepicker id="minDateExample" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
750
- <span slot="bib.fullscreen.headline">minDate Example</span>
751
- <span slot="fromLabel">Choose a date</span>
752
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
753
- </auro-datepicker>
754
- <!-- AURO-GENERATED-CONTENT:END -->
708
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/update-min-date.html) -->
709
+ <!-- The below content is automatically added from ./../apiExamples/update-min-date.html -->
710
+ <auro-button id="minDateChange">Change minDate to a week from Today</auro-button>
711
+ <auro-button id="resetMinDate">Reset Datepicker to Initial Example</auro-button>
712
+ <br />
713
+ <auro-datepicker id="minDateExample" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
714
+ <span slot="bib.fullscreen.headline">minDate Example</span>
715
+ <span slot="fromLabel">Choose a date</span>
716
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
717
+ </auro-datepicker>
718
+ <!-- AURO-GENERATED-CONTENT:END -->
755
719
  </div>
756
720
  <auro-accordion alignRight>
757
- <span slot="trigger">See code</span>
721
+ <span slot="trigger">See code</span>
758
722
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/update-min-date.html) -->
759
723
  <!-- The below code snippet is automatically added from ./../apiExamples/update-min-date.html -->
760
724
 
761
- ```html
762
- <auro-button id="minDateChange">Change minDate to a week from Today</auro-button>
763
- <auro-button id="resetMinDate">Reset Datepicker to Initial Example</auro-button>
764
- <br />
765
- <auro-datepicker id="minDateExample" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
766
- <span slot="bib.fullscreen.headline">minDate Example</span>
767
- <span slot="fromLabel">Choose a date</span>
768
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
769
- </auro-datepicker>
770
- ```
725
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="minDateChange"&gt;Change minDate to a week from Today&lt;/auro-button&gt;
726
+ &lt;auro-button id="resetMinDate"&gt;Reset Datepicker to Initial Example&lt;/auro-button&gt;
727
+ &lt;br /&gt;
728
+ &lt;auro-datepicker id="minDateExample" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date."&gt;
729
+ &lt;span slot="bib.fullscreen.headline"&gt;minDate Example&lt;/span&gt;
730
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
731
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
732
+ &lt;/auro-datepicker&gt;</code></pre>
771
733
  <!-- AURO-GENERATED-CONTENT:END -->
772
734
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/update-min-date.js) -->
773
735
  <!-- The below code snippet is automatically added from ./../apiExamples/update-min-date.js -->
774
736
 
775
- ```js
776
- function formatDateString(date) {
737
+ <pre class="language-js"><code class="language-js">function formatDateString(date) {
777
738
  /* eslint-disable prefer-template, no-magic-numbers */
778
739
  const dd = String("0" + date.getDate()).slice(-2);
779
740
  const mm = String("0" + (date.getMonth() + 1)).slice(-2);
780
741
  /* eslint-enable prefer-template, no-magic-numbers */
781
742
  const yyyy = date.getFullYear();
782
-
743
+
783
744
  return `${mm}/${dd}/${yyyy}`;
784
745
  }
785
-
746
+
786
747
  export function updateMinDateExample() {
787
748
  const minDateExample = document.getElementById('minDateExample');
788
749
  const changeMinDateButton = document.getElementById('minDateChange');
789
750
  const resetButton = document.getElementById('resetMinDate');
790
-
751
+
791
752
  const today = formatDateString(new Date());
792
-
753
+
793
754
  let nextWeek = new Date();
794
755
  let addOneWeek = nextWeek.getDate() + 7;
795
-
756
+
796
757
  nextWeek.setDate(addOneWeek);
797
758
  nextWeek = formatDateString(nextWeek);
798
-
759
+
799
760
  minDateExample.setAttribute('value', today);
800
761
  minDateExample.setAttribute('minDate', today);
801
-
802
- changeMinDateButton.addEventListener('click', () => {
762
+
763
+ changeMinDateButton.addEventListener('click', () =&gt; {
803
764
  minDateExample.setAttribute('minDate', nextWeek);
804
765
  });
805
-
806
- resetButton.addEventListener('click', () => {
766
+
767
+ resetButton.addEventListener('click', () =&gt; {
807
768
  minDateExample.setAttribute('value', today);
808
769
  minDateExample.setAttribute('minDate', today);
809
770
  });
810
-
811
- }
812
- ```
771
+
772
+ }</code></pre>
813
773
  <!-- AURO-GENERATED-CONTENT:END -->
814
774
  </auro-accordion>
815
775
 
@@ -820,38 +780,34 @@ The datepicker supports localized month names through the `monthNames` property.
820
780
  This example demonstrates how to set the `monthNames` property to Korean month names, with a Korean date format.
821
781
 
822
782
  <div class="exampleWrapper">
823
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization.html) -->
824
- <!-- The below content is automatically added from ./../apiExamples/localization.html -->
825
- <auro-datepicker format="yyyy/mm/dd" id="localizationExample">
826
- <span slot="bib.fullscreen.headline">Localization Headline</span>
827
- <span slot="fromLabel">Choose a date</span>
828
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
829
- </auro-datepicker>
830
- <!-- AURO-GENERATED-CONTENT:END -->
783
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization.html) -->
784
+ <!-- The below content is automatically added from ./../apiExamples/localization.html -->
785
+ <auro-datepicker format="yyyy/mm/dd" id="localizationExample">
786
+ <span slot="bib.fullscreen.headline">Localization Headline</span>
787
+ <span slot="fromLabel">Choose a date</span>
788
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
789
+ </auro-datepicker>
790
+ <!-- AURO-GENERATED-CONTENT:END -->
831
791
  </div>
832
792
  <auro-accordion alignRight>
833
- <span slot="trigger">See code</span>
793
+ <span slot="trigger">See code</span>
834
794
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/localization.html) -->
835
795
  <!-- The below code snippet is automatically added from ./../apiExamples/localization.html -->
836
796
 
837
- ```html
838
- <auro-datepicker format="yyyy/mm/dd" id="localizationExample">
839
- <span slot="bib.fullscreen.headline">Localization Headline</span>
840
- <span slot="fromLabel">Choose a date</span>
841
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
842
- </auro-datepicker>
843
- ```
797
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker format="yyyy/mm/dd" id="localizationExample"&gt;
798
+ &lt;span slot="bib.fullscreen.headline"&gt;Localization Headline&lt;/span&gt;
799
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
800
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
801
+ &lt;/auro-datepicker&gt;</code></pre>
844
802
  <!-- AURO-GENERATED-CONTENT:END -->
845
803
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/localization.js) -->
846
804
  <!-- The below code snippet is automatically added from ./../apiExamples/localization.js -->
847
805
 
848
- ```js
849
- export function localizationExample() {
806
+ <pre class="language-js"><code class="language-js">export function localizationExample() {
850
807
  const localizedDatepicker = document.querySelector("#localizationExample");
851
-
808
+
852
809
  localizedDatepicker.monthNames = ['일월', '이월', '삼월', '사월', '오월', '유월', '칠월', '팔월', '구월', '시월', '십일월', '십이월'];
853
- }
854
- ```
810
+ }</code></pre>
855
811
  <!-- AURO-GENERATED-CONTENT:END -->
856
812
  </auro-accordion>
857
813
 
@@ -860,27 +816,25 @@ export function localizationExample() {
860
816
  Set `noValidate` to force the datepicker not to validate when navigating away from the component.
861
817
 
862
818
  <div class="exampleWrapper">
863
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-validate.html) -->
864
- <!-- The below content is automatically added from ./../apiExamples/no-validate.html -->
865
- <auro-datepicker required noValidate>
866
- <span slot="bib.fullscreen.headline">noValidate Example</span>
867
- <span slot="fromLabel">Choose a date</span>
868
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
869
- </auro-datepicker>
870
- <!-- AURO-GENERATED-CONTENT:END -->
819
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-validate.html) -->
820
+ <!-- The below content is automatically added from ./../apiExamples/no-validate.html -->
821
+ <auro-datepicker required noValidate>
822
+ <span slot="bib.fullscreen.headline">noValidate Example</span>
823
+ <span slot="fromLabel">Choose a date</span>
824
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
825
+ </auro-datepicker>
826
+ <!-- AURO-GENERATED-CONTENT:END -->
871
827
  </div>
872
828
  <auro-accordion alignRight>
873
- <span slot="trigger">See code</span>
829
+ <span slot="trigger">See code</span>
874
830
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-validate.html) -->
875
831
  <!-- The below code snippet is automatically added from ./../apiExamples/no-validate.html -->
876
832
 
877
- ```html
878
- <auro-datepicker required noValidate>
879
- <span slot="bib.fullscreen.headline">noValidate Example</span>
880
- <span slot="fromLabel">Choose a date</span>
881
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
882
- </auro-datepicker>
883
- ```
833
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker required noValidate&gt;
834
+ &lt;span slot="bib.fullscreen.headline"&gt;noValidate Example&lt;/span&gt;
835
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
836
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
837
+ &lt;/auro-datepicker&gt;</code></pre>
884
838
  <!-- AURO-GENERATED-CONTENT:END -->
885
839
  </auro-accordion>
886
840
 
@@ -889,34 +843,30 @@ Set `noValidate` to force the datepicker not to validate when navigating away fr
889
843
  You can choose to outline dates for the user to reference by passing a string containing an array of values to the component to tell it which dates are your reference dates.
890
844
 
891
845
  Example:
892
- ```html
893
- <auro-datepicker referenceDates='["10/05/2025", "10/15/2025", "10/20/2025", "10/22/2025"]'></auro-datepicker>
894
- ```
846
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker referenceDates='["10/05/2025", "10/15/2025", "10/20/2025", "10/22/2025"]'&gt;&lt;/auro-datepicker&gt;</code></pre>
895
847
 
896
848
  <div class="exampleWrapper">
897
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reference-dates.html) -->
898
- <!-- The below content is automatically added from ./../apiExamples/reference-dates.html -->
899
- <auro-datepicker referenceDates='["10/05/2025", "10/15/2025", "10/20/2025", "10/22/2025"]' minDate="10/12/2025">
900
- <span slot="ariaLabel.bib.close">Close Calendar</span>
901
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
902
- <span slot="fromLabel">Choose a date</span>
903
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
904
- </auro-datepicker>
905
- <!-- AURO-GENERATED-CONTENT:END -->
849
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reference-dates.html) -->
850
+ <!-- The below content is automatically added from ./../apiExamples/reference-dates.html -->
851
+ <auro-datepicker referenceDates='["10/05/2025", "10/15/2025", "10/20/2025", "10/22/2025"]' minDate="10/12/2025">
852
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
853
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
854
+ <span slot="fromLabel">Choose a date</span>
855
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
856
+ </auro-datepicker>
857
+ <!-- AURO-GENERATED-CONTENT:END -->
906
858
  </div>
907
859
  <auro-accordion alignRight>
908
- <span slot="trigger">See code</span>
860
+ <span slot="trigger">See code</span>
909
861
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reference-dates.html) -->
910
862
  <!-- The below code snippet is automatically added from ./../apiExamples/reference-dates.html -->
911
863
 
912
- ```html
913
- <auro-datepicker referenceDates='["10/05/2025", "10/15/2025", "10/20/2025", "10/22/2025"]' minDate="10/12/2025">
914
- <span slot="ariaLabel.bib.close">Close Calendar</span>
915
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
916
- <span slot="fromLabel">Choose a date</span>
917
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
918
- </auro-datepicker>
919
- ```
864
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker referenceDates='["10/05/2025", "10/15/2025", "10/20/2025", "10/22/2025"]' minDate="10/12/2025"&gt;
865
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
866
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
867
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
868
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
869
+ &lt;/auro-datepicker&gt;</code></pre>
920
870
  <!-- AURO-GENERATED-CONTENT:END -->
921
871
  </auro-accordion>
922
872
 
@@ -927,43 +877,41 @@ Populates the `required` attribute on the input. Used for client-side validation
927
877
  When the validity check fails the validityState, equals `valueMissing`. The error message for the `valueMissing` validityState can be set to a custom string using the `setCustomValidityValueMissing`. There is no default error message defined.
928
878
 
929
879
  <div class="exampleWrapper">
930
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
931
- <!-- The below content is automatically added from ./../apiExamples/required.html -->
932
- <auro-datepicker required setCustomValidityValueMissing="Custom value missing message.">
933
- <span slot="bib.fullscreen.headline">Required Example</span>
934
- <span slot="fromLabel">Choose a date</span>
935
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
936
- </auro-datepicker>
937
- <br />
938
- <auro-datepicker required range setCustomValidityValueMissing="Custom value missing message.">
939
- <span slot="bib.fullscreen.headline">Required Example</span>
940
- <span slot="fromLabel">Departure</span>
941
- <span slot="toLabel">Return</span>
942
- <span slot="bib.fullscreen.fromLabel">Departure</span>
943
- <span slot="bib.fullscreen.toLabel">Return</span>
944
- </auro-datepicker>
945
- <!-- AURO-GENERATED-CONTENT:END -->
880
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
881
+ <!-- The below content is automatically added from ./../apiExamples/required.html -->
882
+ <auro-datepicker required setCustomValidityValueMissing="Custom value missing message.">
883
+ <span slot="bib.fullscreen.headline">Required Example</span>
884
+ <span slot="fromLabel">Choose a date</span>
885
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
886
+ </auro-datepicker>
887
+ <br />
888
+ <auro-datepicker required range setCustomValidityValueMissing="Custom value missing message.">
889
+ <span slot="bib.fullscreen.headline">Required Example</span>
890
+ <span slot="fromLabel">Departure</span>
891
+ <span slot="toLabel">Return</span>
892
+ <span slot="bib.fullscreen.fromLabel">Departure</span>
893
+ <span slot="bib.fullscreen.toLabel">Return</span>
894
+ </auro-datepicker>
895
+ <!-- AURO-GENERATED-CONTENT:END -->
946
896
  </div>
947
897
  <auro-accordion alignRight>
948
- <span slot="trigger">See code</span>
898
+ <span slot="trigger">See code</span>
949
899
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
950
900
  <!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
951
901
 
952
- ```html
953
- <auro-datepicker required setCustomValidityValueMissing="Custom value missing message.">
954
- <span slot="bib.fullscreen.headline">Required Example</span>
955
- <span slot="fromLabel">Choose a date</span>
956
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
957
- </auro-datepicker>
958
- <br />
959
- <auro-datepicker required range setCustomValidityValueMissing="Custom value missing message.">
960
- <span slot="bib.fullscreen.headline">Required Example</span>
961
- <span slot="fromLabel">Departure</span>
962
- <span slot="toLabel">Return</span>
963
- <span slot="bib.fullscreen.fromLabel">Departure</span>
964
- <span slot="bib.fullscreen.toLabel">Return</span>
965
- </auro-datepicker>
966
- ```
902
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker required setCustomValidityValueMissing="Custom value missing message."&gt;
903
+ &lt;span slot="bib.fullscreen.headline"&gt;Required Example&lt;/span&gt;
904
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
905
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
906
+ &lt;/auro-datepicker&gt;
907
+ &lt;br /&gt;
908
+ &lt;auro-datepicker required range setCustomValidityValueMissing="Custom value missing message."&gt;
909
+ &lt;span slot="bib.fullscreen.headline"&gt;Required Example&lt;/span&gt;
910
+ &lt;span slot="fromLabel"&gt;Departure&lt;/span&gt;
911
+ &lt;span slot="toLabel"&gt;Return&lt;/span&gt;
912
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Departure&lt;/span&gt;
913
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Return&lt;/span&gt;
914
+ &lt;/auro-datepicker&gt;</code></pre>
967
915
  <!-- AURO-GENERATED-CONTENT:END -->
968
916
  </auro-accordion>
969
917
 
@@ -972,29 +920,27 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
972
920
  Set the `stacked` attribute to make range datepicker stacked style.
973
921
 
974
922
  <div class="exampleWrapper">
975
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/stacked.html) -->
976
- <!-- The below content is automatically added from ./../apiExamples/stacked.html -->
977
- <auro-datepicker range stacked>
978
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
979
- <span slot="fromLabel">Choose a date</span>
980
- <span slot="bib.fullscreen.fromLabel">Departure</span>
981
- <span slot="bib.fullscreen.toLabel">Return</span>
982
- </auro-datepicker>
983
- <!-- AURO-GENERATED-CONTENT:END -->
923
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/stacked.html) -->
924
+ <!-- The below content is automatically added from ./../apiExamples/stacked.html -->
925
+ <auro-datepicker range stacked>
926
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
927
+ <span slot="fromLabel">Choose a date</span>
928
+ <span slot="bib.fullscreen.fromLabel">Departure</span>
929
+ <span slot="bib.fullscreen.toLabel">Return</span>
930
+ </auro-datepicker>
931
+ <!-- AURO-GENERATED-CONTENT:END -->
984
932
  </div>
985
933
  <auro-accordion alignRight>
986
- <span slot="trigger">See code</span>
934
+ <span slot="trigger">See code</span>
987
935
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/stacked.html) -->
988
936
  <!-- The below code snippet is automatically added from ./../apiExamples/stacked.html -->
989
937
 
990
- ```html
991
- <auro-datepicker range stacked>
992
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
993
- <span slot="fromLabel">Choose a date</span>
994
- <span slot="bib.fullscreen.fromLabel">Departure</span>
995
- <span slot="bib.fullscreen.toLabel">Return</span>
996
- </auro-datepicker>
997
- ```
938
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker range stacked&gt;
939
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
940
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
941
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Departure&lt;/span&gt;
942
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Return&lt;/span&gt;
943
+ &lt;/auro-datepicker&gt;</code></pre>
998
944
  <!-- AURO-GENERATED-CONTENT:END -->
999
945
  </auro-accordion>
1000
946
 
@@ -1003,46 +949,42 @@ Set the `stacked` attribute to make range datepicker stacked style.
1003
949
  Specifies the `validityState` the element is in. Upon first interaction, or presetting the `error` attribute, the component will validate on `focusout`. After validation, `validityState` can be queried from the component by using the following JavaScript.
1004
950
 
1005
951
  <div class="exampleWrapper">
1006
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/validity.html) -->
1007
- <!-- The below content is automatically added from ./../apiExamples/validity.html -->
1008
- <auro-button id="validityExampleBtn">Get validity</auro-button>
1009
- <br />
1010
- <auro-datepicker required id="validityExample">
1011
- <span slot="bib.fullscreen.headline">validity Example</span>
1012
- <span slot="fromLabel">Choose a date</span>
1013
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1014
- </auro-datepicker>
1015
- <!-- AURO-GENERATED-CONTENT:END -->
952
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/validity.html) -->
953
+ <!-- The below content is automatically added from ./../apiExamples/validity.html -->
954
+ <auro-button id="validityExampleBtn">Get validity</auro-button>
955
+ <br />
956
+ <auro-datepicker required id="validityExample">
957
+ <span slot="bib.fullscreen.headline">validity Example</span>
958
+ <span slot="fromLabel">Choose a date</span>
959
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
960
+ </auro-datepicker>
961
+ <!-- AURO-GENERATED-CONTENT:END -->
1016
962
  </div>
1017
963
  <auro-accordion alignRight>
1018
- <span slot="trigger">See code</span>
964
+ <span slot="trigger">See code</span>
1019
965
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/validity.html) -->
1020
966
  <!-- The below code snippet is automatically added from ./../apiExamples/validity.html -->
1021
967
 
1022
- ```html
1023
- <auro-button id="validityExampleBtn">Get validity</auro-button>
1024
- <br />
1025
- <auro-datepicker required id="validityExample">
1026
- <span slot="bib.fullscreen.headline">validity Example</span>
1027
- <span slot="fromLabel">Choose a date</span>
1028
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1029
- </auro-datepicker>
1030
- ```
968
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="validityExampleBtn"&gt;Get validity&lt;/auro-button&gt;
969
+ &lt;br /&gt;
970
+ &lt;auro-datepicker required id="validityExample"&gt;
971
+ &lt;span slot="bib.fullscreen.headline"&gt;validity Example&lt;/span&gt;
972
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
973
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
974
+ &lt;/auro-datepicker&gt;</code></pre>
1031
975
  <!-- AURO-GENERATED-CONTENT:END -->
1032
976
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/validity.js) -->
1033
977
  <!-- The below code snippet is automatically added from ./../apiExamples/validity.js -->
1034
978
 
1035
- ```js
1036
- export function validityExample() {
979
+ <pre class="language-js"><code class="language-js">export function validityExample() {
1037
980
  const validityExampleExample = document.querySelector('#validityExample');
1038
981
  const validityExampleExampleBtn = document.querySelector('#validityExampleBtn');
1039
-
1040
- validityExampleExampleBtn.addEventListener('click', () => {
982
+
983
+ validityExampleExampleBtn.addEventListener('click', () =&gt; {
1041
984
  console.warn('Validity set to:', validityExampleExample.validity);
1042
985
  alert(`Validity set to: ${validityExampleExample.validity}`);
1043
986
  })
1044
- }
1045
- ```
987
+ }</code></pre>
1046
988
  <!-- AURO-GENERATED-CONTENT:END -->
1047
989
  </auro-accordion>
1048
990
 
@@ -1051,27 +993,25 @@ export function validityExample() {
1051
993
  The `value` attribute represents the value selected for the datepicker. Can be used to pre-set the value of the datepicker. When the `range` attribute is used, `value` is for the first input.
1052
994
 
1053
995
  <div class="exampleWrapper">
1054
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/value.html) -->
1055
- <!-- The below content is automatically added from ./../apiExamples/value.html -->
1056
- <auro-datepicker id="valueExample" value="02/02/2022">
1057
- <span slot="bib.fullscreen.headline">value Example</span>
1058
- <span slot="fromLabel">Choose a date</span>
1059
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1060
- </auro-datepicker>
1061
- <!-- AURO-GENERATED-CONTENT:END -->
996
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/value.html) -->
997
+ <!-- The below content is automatically added from ./../apiExamples/value.html -->
998
+ <auro-datepicker id="valueExample" value="02/02/2022">
999
+ <span slot="bib.fullscreen.headline">value Example</span>
1000
+ <span slot="fromLabel">Choose a date</span>
1001
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1002
+ </auro-datepicker>
1003
+ <!-- AURO-GENERATED-CONTENT:END -->
1062
1004
  </div>
1063
1005
  <auro-accordion alignRight>
1064
- <span slot="trigger">See code</span>
1006
+ <span slot="trigger">See code</span>
1065
1007
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/value.html) -->
1066
1008
  <!-- The below code snippet is automatically added from ./../apiExamples/value.html -->
1067
1009
 
1068
- ```html
1069
- <auro-datepicker id="valueExample" value="02/02/2022">
1070
- <span slot="bib.fullscreen.headline">value Example</span>
1071
- <span slot="fromLabel">Choose a date</span>
1072
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1073
- </auro-datepicker>
1074
- ```
1010
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker id="valueExample" value="02/02/2022"&gt;
1011
+ &lt;span slot="bib.fullscreen.headline"&gt;value Example&lt;/span&gt;
1012
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
1013
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1014
+ &lt;/auro-datepicker&gt;</code></pre>
1075
1015
  <!-- AURO-GENERATED-CONTENT:END -->
1076
1016
  </auro-accordion>
1077
1017
 
@@ -1080,31 +1020,29 @@ The `value` attribute represents the value selected for the datepicker. Can be u
1080
1020
  The `valueEnd` attribute represents the value of the second input (end date), selected for the datepicker. Can be used to pre-set the value of the datepicker. Only applicable for a datepicker with the `range` attribute.
1081
1021
 
1082
1022
  <div class="exampleWrapper">
1083
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/value-end.html) -->
1084
- <!-- The below content is automatically added from ./../apiExamples/value-end.html -->
1085
- <auro-datepicker id="valueEndExample" range valueEnd="03/03/2023">
1086
- <span slot="bib.fullscreen.headline">valueEnd Example</span>
1087
- <span slot="fromLabel">Departure</span>
1088
- <span slot="toLabel">Return</span>
1089
- <span slot="bib.fullscreen.fromLabel">Departure</span>
1090
- <span slot="bib.fullscreen.toLabel">Return</span>
1091
- </auro-datepicker>
1092
- <!-- AURO-GENERATED-CONTENT:END -->
1023
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/value-end.html) -->
1024
+ <!-- The below content is automatically added from ./../apiExamples/value-end.html -->
1025
+ <auro-datepicker id="valueEndExample" range valueEnd="03/03/2023">
1026
+ <span slot="bib.fullscreen.headline">valueEnd Example</span>
1027
+ <span slot="fromLabel">Departure</span>
1028
+ <span slot="toLabel">Return</span>
1029
+ <span slot="bib.fullscreen.fromLabel">Departure</span>
1030
+ <span slot="bib.fullscreen.toLabel">Return</span>
1031
+ </auro-datepicker>
1032
+ <!-- AURO-GENERATED-CONTENT:END -->
1093
1033
  </div>
1094
1034
  <auro-accordion alignRight>
1095
- <span slot="trigger">See code</span>
1035
+ <span slot="trigger">See code</span>
1096
1036
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/value-end.html) -->
1097
1037
  <!-- The below code snippet is automatically added from ./../apiExamples/value-end.html -->
1098
1038
 
1099
- ```html
1100
- <auro-datepicker id="valueEndExample" range valueEnd="03/03/2023">
1101
- <span slot="bib.fullscreen.headline">valueEnd Example</span>
1102
- <span slot="fromLabel">Departure</span>
1103
- <span slot="toLabel">Return</span>
1104
- <span slot="bib.fullscreen.fromLabel">Departure</span>
1105
- <span slot="bib.fullscreen.toLabel">Return</span>
1106
- </auro-datepicker>
1107
- ```
1039
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker id="valueEndExample" range valueEnd="03/03/2023"&gt;
1040
+ &lt;span slot="bib.fullscreen.headline"&gt;valueEnd Example&lt;/span&gt;
1041
+ &lt;span slot="fromLabel"&gt;Departure&lt;/span&gt;
1042
+ &lt;span slot="toLabel"&gt;Return&lt;/span&gt;
1043
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Departure&lt;/span&gt;
1044
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Return&lt;/span&gt;
1045
+ &lt;/auro-datepicker&gt;</code></pre>
1108
1046
  <!-- AURO-GENERATED-CONTENT:END -->
1109
1047
  </auro-accordion>
1110
1048
 
@@ -1115,56 +1053,52 @@ The `valueEnd` attribute represents the value of the second input (end date), se
1115
1053
  The `focus()` method will apply focus state to the datepicker's input field.
1116
1054
 
1117
1055
  <div class="exampleWrapper">
1118
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/focus.html) -->
1119
- <!-- The below content is automatically added from ./../apiExamples/focus.html -->
1120
- <auro-button id="focusExampleBtn">Apply focus to datepicker</auro-button>
1121
- <auro-button id="focusExampleBtnTwo">Apply focus to the second input in datepicker</auro-button>
1122
- <br />
1123
- <auro-datepicker id="focusExampleElem" range>
1124
- <span slot="bib.fullscreen.headline">Focus Example</span>
1125
- <span slot="fromLabel">Departure</span>
1126
- <span slot="toLabel">Return</span>
1127
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1128
- <span slot="bib.fullscreen.toLabel">Choose a date</span>
1129
- </auro-datepicker>
1130
- <!-- AURO-GENERATED-CONTENT:END -->
1056
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/focus.html) -->
1057
+ <!-- The below content is automatically added from ./../apiExamples/focus.html -->
1058
+ <auro-button id="focusExampleBtn">Apply focus to datepicker</auro-button>
1059
+ <auro-button id="focusExampleBtnTwo">Apply focus to the second input in datepicker</auro-button>
1060
+ <br />
1061
+ <auro-datepicker id="focusExampleElem" range>
1062
+ <span slot="bib.fullscreen.headline">Focus Example</span>
1063
+ <span slot="fromLabel">Departure</span>
1064
+ <span slot="toLabel">Return</span>
1065
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1066
+ <span slot="bib.fullscreen.toLabel">Choose a date</span>
1067
+ </auro-datepicker>
1068
+ <!-- AURO-GENERATED-CONTENT:END -->
1131
1069
  </div>
1132
1070
  <auro-accordion alignRight>
1133
- <span slot="trigger">See code</span>
1071
+ <span slot="trigger">See code</span>
1134
1072
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/focus.html) -->
1135
1073
  <!-- The below code snippet is automatically added from ./../apiExamples/focus.html -->
1136
1074
 
1137
- ```html
1138
- <auro-button id="focusExampleBtn">Apply focus to datepicker</auro-button>
1139
- <auro-button id="focusExampleBtnTwo">Apply focus to the second input in datepicker</auro-button>
1140
- <br />
1141
- <auro-datepicker id="focusExampleElem" range>
1142
- <span slot="bib.fullscreen.headline">Focus Example</span>
1143
- <span slot="fromLabel">Departure</span>
1144
- <span slot="toLabel">Return</span>
1145
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1146
- <span slot="bib.fullscreen.toLabel">Choose a date</span>
1147
- </auro-datepicker>
1148
- ```
1075
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="focusExampleBtn"&gt;Apply focus to datepicker&lt;/auro-button&gt;
1076
+ &lt;auro-button id="focusExampleBtnTwo"&gt;Apply focus to the second input in datepicker&lt;/auro-button&gt;
1077
+ &lt;br /&gt;
1078
+ &lt;auro-datepicker id="focusExampleElem" range&gt;
1079
+ &lt;span slot="bib.fullscreen.headline"&gt;Focus Example&lt;/span&gt;
1080
+ &lt;span slot="fromLabel"&gt;Departure&lt;/span&gt;
1081
+ &lt;span slot="toLabel"&gt;Return&lt;/span&gt;
1082
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1083
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Choose a date&lt;/span&gt;
1084
+ &lt;/auro-datepicker&gt;</code></pre>
1149
1085
  <!-- AURO-GENERATED-CONTENT:END -->
1150
1086
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/focus.js) -->
1151
1087
  <!-- The below code snippet is automatically added from ./../apiExamples/focus.js -->
1152
1088
 
1153
- ```js
1154
- export function focusExample() {
1089
+ <pre class="language-js"><code class="language-js">export function focusExample() {
1155
1090
  const focusExampleElem = document.querySelector('#focusExampleElem');
1156
1091
  const focusExampleBtn = document.querySelector('#focusExampleBtn');
1157
1092
  const focusExampleBtnTwo = document.querySelector('#focusExampleBtnTwo');
1158
-
1159
- focusExampleBtn.addEventListener('click', () => {
1093
+
1094
+ focusExampleBtn.addEventListener('click', () =&gt; {
1160
1095
  focusExampleElem.focus();
1161
1096
  });
1162
-
1163
- focusExampleBtnTwo.addEventListener('click', () => {
1097
+
1098
+ focusExampleBtnTwo.addEventListener('click', () =&gt; {
1164
1099
  focusExampleElem.focus('endDate');
1165
1100
  });
1166
- }
1167
- ```
1101
+ }</code></pre>
1168
1102
  <!-- AURO-GENERATED-CONTENT:END -->
1169
1103
  </auro-accordion>
1170
1104
 
@@ -1173,48 +1107,44 @@ export function focusExample() {
1173
1107
  Use the `reset()` method to reset the `<auro-datepicker>`'s `value`, `valueEnd` and `validity` state. Doing so will preserve all other attributes and properties.
1174
1108
 
1175
1109
  <div class="exampleWrapper">
1176
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reset-state.html) -->
1177
- <!-- The below content is automatically added from ./../apiExamples/reset-state.html -->
1178
- <auro-button id="resetStateBtn">Reset</auro-button>
1179
- <br />
1180
- <auro-datepicker id="resetStateExample" range minDate="06/30/2025" calendarStartDate="06/30/2025" calendarFocusDate="06/30/2025" value="02/14/2025" valueEnd="04/05/2025" setCustomValidityRangeUnderflow="The date you entered is too early.">
1181
- <span slot="bib.fullscreen.headline">Reset Example</span>
1182
- <span slot="fromLabel">Departure</span>
1183
- <span slot="toLabel">Return</span>
1184
- <span slot="bib.fullscreen.fromLabel">Departure</span>
1185
- <span slot="bib.fullscreen.toLabel">Return</span>
1186
- </auro-datepicker>
1187
- <!-- AURO-GENERATED-CONTENT:END -->
1110
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reset-state.html) -->
1111
+ <!-- The below content is automatically added from ./../apiExamples/reset-state.html -->
1112
+ <auro-button id="resetStateBtn">Reset</auro-button>
1113
+ <br />
1114
+ <auro-datepicker id="resetStateExample" range minDate="06/30/2025" calendarStartDate="06/30/2025" calendarFocusDate="06/30/2025" value="02/14/2025" valueEnd="04/05/2025" setCustomValidityRangeUnderflow="The date you entered is too early.">
1115
+ <span slot="bib.fullscreen.headline">Reset Example</span>
1116
+ <span slot="fromLabel">Departure</span>
1117
+ <span slot="toLabel">Return</span>
1118
+ <span slot="bib.fullscreen.fromLabel">Departure</span>
1119
+ <span slot="bib.fullscreen.toLabel">Return</span>
1120
+ </auro-datepicker>
1121
+ <!-- AURO-GENERATED-CONTENT:END -->
1188
1122
  </div>
1189
1123
  <auro-accordion alignRight>
1190
- <span slot="trigger">See code</span>
1124
+ <span slot="trigger">See code</span>
1191
1125
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.html) -->
1192
1126
  <!-- The below code snippet is automatically added from ./../apiExamples/reset-state.html -->
1193
1127
 
1194
- ```html
1195
- <auro-button id="resetStateBtn">Reset</auro-button>
1196
- <br />
1197
- <auro-datepicker id="resetStateExample" range minDate="06/30/2025" calendarStartDate="06/30/2025" calendarFocusDate="06/30/2025" value="02/14/2025" valueEnd="04/05/2025" setCustomValidityRangeUnderflow="The date you entered is too early.">
1198
- <span slot="bib.fullscreen.headline">Reset Example</span>
1199
- <span slot="fromLabel">Departure</span>
1200
- <span slot="toLabel">Return</span>
1201
- <span slot="bib.fullscreen.fromLabel">Departure</span>
1202
- <span slot="bib.fullscreen.toLabel">Return</span>
1203
- </auro-datepicker>
1204
- ```
1128
+ <pre class="language-html"><code class="language-html">&lt;auro-button id="resetStateBtn"&gt;Reset&lt;/auro-button&gt;
1129
+ &lt;br /&gt;
1130
+ &lt;auro-datepicker id="resetStateExample" range minDate="06/30/2025" calendarStartDate="06/30/2025" calendarFocusDate="06/30/2025" value="02/14/2025" valueEnd="04/05/2025" setCustomValidityRangeUnderflow="The date you entered is too early."&gt;
1131
+ &lt;span slot="bib.fullscreen.headline"&gt;Reset Example&lt;/span&gt;
1132
+ &lt;span slot="fromLabel"&gt;Departure&lt;/span&gt;
1133
+ &lt;span slot="toLabel"&gt;Return&lt;/span&gt;
1134
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Departure&lt;/span&gt;
1135
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Return&lt;/span&gt;
1136
+ &lt;/auro-datepicker&gt;</code></pre>
1205
1137
  <!-- AURO-GENERATED-CONTENT:END -->
1206
1138
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.js) -->
1207
1139
  <!-- The below code snippet is automatically added from ./../apiExamples/reset-state.js -->
1208
1140
 
1209
- ```js
1210
- export function resetStateExample() {
1141
+ <pre class="language-js"><code class="language-js">export function resetStateExample() {
1211
1142
  const elem = document.querySelector('#resetStateExample');
1212
-
1213
- document.querySelector('#resetStateBtn').addEventListener('click', () => {
1143
+
1144
+ document.querySelector('#resetStateBtn').addEventListener('click', () =&gt; {
1214
1145
  elem.reset();
1215
1146
  });
1216
- }
1217
- ```
1147
+ }</code></pre>
1218
1148
  <!-- AURO-GENERATED-CONTENT:END -->
1219
1149
  </auro-accordion>
1220
1150
 
@@ -1225,41 +1155,37 @@ export function resetStateExample() {
1225
1155
  The following example listens for the `auroDatePicker-valueSet` event. Once triggered, `element.value` may be queried for the new value **and** in successful scenarios, an alert will appear. Open the JavaScript console in the browser's developer tools to see the `console.warn` message that appears after the `auroDatePicker-valueSet` event has been triggered.
1226
1156
 
1227
1157
  <div class="exampleWrapper">
1228
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/alert-value.html) -->
1229
- <!-- The below content is automatically added from ./../apiExamples/alert-value.html -->
1230
- <auro-datepicker id="datePickerValueAlert">
1231
- <span slot="bib.fullscreen.headline">Alert Value Example</span>
1232
- <span slot="fromLabel">Choose a date</span>
1233
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1234
- </auro-datepicker>
1235
- <!-- AURO-GENERATED-CONTENT:END -->
1158
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/alert-value.html) -->
1159
+ <!-- The below content is automatically added from ./../apiExamples/alert-value.html -->
1160
+ <auro-datepicker id="datePickerValueAlert">
1161
+ <span slot="bib.fullscreen.headline">Alert Value Example</span>
1162
+ <span slot="fromLabel">Choose a date</span>
1163
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1164
+ </auro-datepicker>
1165
+ <!-- AURO-GENERATED-CONTENT:END -->
1236
1166
  </div>
1237
1167
  <auro-accordion alignRight>
1238
- <span slot="trigger">See code</span>
1168
+ <span slot="trigger">See code</span>
1239
1169
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/alert-value.html) -->
1240
1170
  <!-- The below code snippet is automatically added from ./../apiExamples/alert-value.html -->
1241
1171
 
1242
- ```html
1243
- <auro-datepicker id="datePickerValueAlert">
1244
- <span slot="bib.fullscreen.headline">Alert Value Example</span>
1245
- <span slot="fromLabel">Choose a date</span>
1246
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1247
- </auro-datepicker>
1248
- ```
1172
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker id="datePickerValueAlert"&gt;
1173
+ &lt;span slot="bib.fullscreen.headline"&gt;Alert Value Example&lt;/span&gt;
1174
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
1175
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1176
+ &lt;/auro-datepicker&gt;</code></pre>
1249
1177
  <!-- AURO-GENERATED-CONTENT:END -->
1250
1178
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/alert-value.js) -->
1251
1179
  <!-- The below code snippet is automatically added from ./../apiExamples/alert-value.js -->
1252
1180
 
1253
- ```js
1254
- export function alertValueExample() {
1181
+ <pre class="language-js"><code class="language-js">export function alertValueExample() {
1255
1182
  const valueAlertExample = document.querySelector('#datePickerValueAlert');
1256
-
1257
- valueAlertExample.addEventListener('auroDatePicker-valueSet', () => {
1183
+
1184
+ valueAlertExample.addEventListener('auroDatePicker-valueSet', () =&gt; {
1258
1185
  console.warn('Select value changed to:', valueAlertExample.value);
1259
1186
  alert(`Select value changed to: ${valueAlertExample.value}`);
1260
1187
  })
1261
- }
1262
- ```
1188
+ }</code></pre>
1263
1189
  <!-- AURO-GENERATED-CONTENT:END -->
1264
1190
  </auro-accordion>
1265
1191
 
@@ -1270,58 +1196,54 @@ export function alertValueExample() {
1270
1196
  Use the `ariaLabel.input.clear` slot to set the `aria-label` for the clear button in the trigger input.
1271
1197
 
1272
1198
  <div class="exampleWrapper">
1273
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/aria-label-input-clear.html) -->
1274
- <!-- The below content is automatically added from ./../apiExamples/aria-label-input-clear.html -->
1275
- <auro-datepicker>
1276
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1277
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1278
- <span slot="fromLabel">Choose a date</span>
1279
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1280
- <span slot="ariaLabel.input.clear">Custom Clear Input Button</span>
1281
- </auro-datepicker>
1282
- <!-- AURO-GENERATED-CONTENT:END -->
1199
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/aria-label-input-clear.html) -->
1200
+ <!-- The below content is automatically added from ./../apiExamples/aria-label-input-clear.html -->
1201
+ <auro-datepicker>
1202
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
1203
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1204
+ <span slot="fromLabel">Choose a date</span>
1205
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1206
+ <span slot="ariaLabel.input.clear">Custom Clear Input Button</span>
1207
+ </auro-datepicker>
1208
+ <!-- AURO-GENERATED-CONTENT:END -->
1283
1209
  </div>
1284
1210
  <div class="exampleWrapper--ondark">
1285
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/aria-label-input-clear.html) -->
1286
- <!-- The below content is automatically added from ./../apiExamples/snowflake/aria-label-input-clear.html -->
1287
- <auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD/YYYY">
1288
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1289
- <span slot="label">Date</span>
1290
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1291
- <span slot="fromLabel">Choose a date</span>
1292
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1293
- <span slot="ariaLabel.input.clear">Snowflake Clear Input Button</span>
1294
- </auro-datepicker>
1295
- <!-- AURO-GENERATED-CONTENT:END -->
1211
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/aria-label-input-clear.html) -->
1212
+ <!-- The below content is automatically added from ./../apiExamples/snowflake/aria-label-input-clear.html -->
1213
+ <auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD/YYYY">
1214
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
1215
+ <span slot="label">Date</span>
1216
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1217
+ <span slot="fromLabel">Choose a date</span>
1218
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1219
+ <span slot="ariaLabel.input.clear">Snowflake Clear Input Button</span>
1220
+ </auro-datepicker>
1221
+ <!-- AURO-GENERATED-CONTENT:END -->
1296
1222
  </div>
1297
1223
  <auro-accordion alignRight>
1298
- <span slot="trigger">See code</span>
1224
+ <span slot="trigger">See code</span>
1299
1225
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/aria-label-input-clear.html) -->
1300
1226
  <!-- The below code snippet is automatically added from ./../apiExamples/aria-label-input-clear.html -->
1301
1227
 
1302
- ```html
1303
- <auro-datepicker>
1304
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1305
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1306
- <span slot="fromLabel">Choose a date</span>
1307
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1308
- <span slot="ariaLabel.input.clear">Custom Clear Input Button</span>
1309
- </auro-datepicker>
1310
- ```
1228
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker&gt;
1229
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
1230
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
1231
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
1232
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1233
+ &lt;span slot="ariaLabel.input.clear"&gt;Custom Clear Input Button&lt;/span&gt;
1234
+ &lt;/auro-datepicker&gt;</code></pre>
1311
1235
  <!-- AURO-GENERATED-CONTENT:END -->
1312
1236
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/aria-label-input-clear.html) -->
1313
1237
  <!-- The below code snippet is automatically added from ./../apiExamples/snowflake/aria-label-input-clear.html -->
1314
1238
 
1315
- ```html
1316
- <auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD/YYYY">
1317
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1318
- <span slot="label">Date</span>
1319
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1320
- <span slot="fromLabel">Choose a date</span>
1321
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1322
- <span slot="ariaLabel.input.clear">Snowflake Clear Input Button</span>
1323
- </auro-datepicker>
1324
- ```
1239
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD/YYYY"&gt;
1240
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
1241
+ &lt;span slot="label"&gt;Date&lt;/span&gt;
1242
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
1243
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
1244
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1245
+ &lt;span slot="ariaLabel.input.clear"&gt;Snowflake Clear Input Button&lt;/span&gt;
1246
+ &lt;/auro-datepicker&gt;</code></pre>
1325
1247
  <!-- AURO-GENERATED-CONTENT:END -->
1326
1248
  </auro-accordion>
1327
1249
 
@@ -1334,29 +1256,27 @@ To view this demo, set your window to a mobile screen size.
1334
1256
  **Note**: The previously supported `bib.fullscreen.dateLabel` slot is deprecated and will continue to work for backwards compatibility, but it is recommended to use the new `bib.fullscreen.fromLabel` and `bib.fullscreen.toLabel` slots to apply a label for each input when in mobile layout.
1335
1257
 
1336
1258
  <div class="exampleWrapper">
1337
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
1338
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
1339
- <auro-datepicker>
1340
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1341
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1342
- <span slot="fromLabel">Choose a date</span>
1343
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1344
- </auro-datepicker>
1345
- <!-- AURO-GENERATED-CONTENT:END -->
1259
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
1260
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
1261
+ <auro-datepicker>
1262
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
1263
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1264
+ <span slot="fromLabel">Choose a date</span>
1265
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1266
+ </auro-datepicker>
1267
+ <!-- AURO-GENERATED-CONTENT:END -->
1346
1268
  </div>
1347
1269
  <auro-accordion alignRight>
1348
- <span slot="trigger">See code</span>
1270
+ <span slot="trigger">See code</span>
1349
1271
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
1350
1272
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
1351
1273
 
1352
- ```html
1353
- <auro-datepicker>
1354
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1355
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1356
- <span slot="fromLabel">Choose a date</span>
1357
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1358
- </auro-datepicker>
1359
- ```
1274
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker&gt;
1275
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
1276
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
1277
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
1278
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1279
+ &lt;/auro-datepicker&gt;</code></pre>
1360
1280
  <!-- AURO-GENERATED-CONTENT:END -->
1361
1281
  </auro-accordion>
1362
1282
 
@@ -1365,29 +1285,27 @@ To view this demo, set your window to a mobile screen size.
1365
1285
  The `fromLabel` slot sets the label used for the input. When the `range` attribute is used this is the first of two inputs.
1366
1286
 
1367
1287
  <div class="exampleWrapper">
1368
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
1369
- <!-- The below content is automatically added from ./../apiExamples/basic.html -->
1370
- <auro-datepicker>
1371
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1372
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1373
- <span slot="fromLabel">Choose a date</span>
1374
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1375
- </auro-datepicker>
1376
- <!-- AURO-GENERATED-CONTENT:END -->
1288
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
1289
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
1290
+ <auro-datepicker>
1291
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
1292
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1293
+ <span slot="fromLabel">Choose a date</span>
1294
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1295
+ </auro-datepicker>
1296
+ <!-- AURO-GENERATED-CONTENT:END -->
1377
1297
  </div>
1378
1298
  <auro-accordion alignRight>
1379
- <span slot="trigger">See code</span>
1299
+ <span slot="trigger">See code</span>
1380
1300
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
1381
1301
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
1382
1302
 
1383
- ```html
1384
- <auro-datepicker>
1385
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1386
- <span slot="bib.fullscreen.headline">Datepicker Headline</span>
1387
- <span slot="fromLabel">Choose a date</span>
1388
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1389
- </auro-datepicker>
1390
- ```
1303
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker&gt;
1304
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
1305
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Headline&lt;/span&gt;
1306
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
1307
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1308
+ &lt;/auro-datepicker&gt;</code></pre>
1391
1309
  <!-- AURO-GENERATED-CONTENT:END -->
1392
1310
  </auro-accordion>
1393
1311
 
@@ -1396,33 +1314,31 @@ The `fromLabel` slot sets the label used for the input. When the `range` attribu
1396
1314
  The `toLabel` slot sets the label for the second input. Only for use with the `range` attribute.
1397
1315
 
1398
1316
  <div class="exampleWrapper">
1399
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/range.html) -->
1400
- <!-- The below content is automatically added from ./../apiExamples/range.html -->
1401
- <auro-datepicker range>
1402
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1403
- <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
1404
- <span slot="fromLabel">Departure</span>
1405
- <span slot="toLabel">Return</span>
1406
- <span slot="bib.fullscreen.fromLabel">Departure</span>
1407
- <span slot="bib.fullscreen.toLabel">Return</span>
1408
- </auro-datepicker>
1409
- <!-- AURO-GENERATED-CONTENT:END -->
1317
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/range.html) -->
1318
+ <!-- The below content is automatically added from ./../apiExamples/range.html -->
1319
+ <auro-datepicker range>
1320
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
1321
+ <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
1322
+ <span slot="fromLabel">Departure</span>
1323
+ <span slot="toLabel">Return</span>
1324
+ <span slot="bib.fullscreen.fromLabel">Departure</span>
1325
+ <span slot="bib.fullscreen.toLabel">Return</span>
1326
+ </auro-datepicker>
1327
+ <!-- AURO-GENERATED-CONTENT:END -->
1410
1328
  </div>
1411
1329
  <auro-accordion alignRight>
1412
- <span slot="trigger">See code</span>
1330
+ <span slot="trigger">See code</span>
1413
1331
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/range.html) -->
1414
1332
  <!-- The below code snippet is automatically added from ./../apiExamples/range.html -->
1415
1333
 
1416
- ```html
1417
- <auro-datepicker range>
1418
- <span slot="ariaLabel.bib.close">Close Calendar</span>
1419
- <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
1420
- <span slot="fromLabel">Departure</span>
1421
- <span slot="toLabel">Return</span>
1422
- <span slot="bib.fullscreen.fromLabel">Departure</span>
1423
- <span slot="bib.fullscreen.toLabel">Return</span>
1424
- </auro-datepicker>
1425
- ```
1334
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker range&gt;
1335
+ &lt;span slot="ariaLabel.bib.close"&gt;Close Calendar&lt;/span&gt;
1336
+ &lt;span slot="bib.fullscreen.headline"&gt;Datepicker Range Headline&lt;/span&gt;
1337
+ &lt;span slot="fromLabel"&gt;Departure&lt;/span&gt;
1338
+ &lt;span slot="toLabel"&gt;Return&lt;/span&gt;
1339
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Departure&lt;/span&gt;
1340
+ &lt;span slot="bib.fullscreen.toLabel"&gt;Return&lt;/span&gt;
1341
+ &lt;/auro-datepicker&gt;</code></pre>
1426
1342
  <!-- AURO-GENERATED-CONTENT:END -->
1427
1343
  </auro-accordion>
1428
1344
 
@@ -1431,29 +1347,27 @@ The `toLabel` slot sets the label for the second input. Only for use with the `r
1431
1347
  Sets the help text displayed below the trigger. The `helpText` slot can be used to provide additional context for the combobox. When using the `error` attribute, the `helpText` slot can be used to describe the error.
1432
1348
 
1433
1349
  <div class="exampleWrapper">
1434
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/help-text.html) -->
1435
- <!-- The below content is automatically added from ./../apiExamples/help-text.html -->
1436
- <auro-datepicker>
1437
- <span slot="bib.fullscreen.headline">helpText Example</span>
1438
- <span slot="fromLabel">Choose a date</span>
1439
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1440
- <span slot="helpText">Choose a date must be today or earlier.</span>
1441
- </auro-datepicker>
1442
- <!-- AURO-GENERATED-CONTENT:END -->
1350
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/help-text.html) -->
1351
+ <!-- The below content is automatically added from ./../apiExamples/help-text.html -->
1352
+ <auro-datepicker>
1353
+ <span slot="bib.fullscreen.headline">helpText Example</span>
1354
+ <span slot="fromLabel">Choose a date</span>
1355
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1356
+ <span slot="helpText">Choose a date must be today or earlier.</span>
1357
+ </auro-datepicker>
1358
+ <!-- AURO-GENERATED-CONTENT:END -->
1443
1359
  </div>
1444
1360
  <auro-accordion alignRight>
1445
- <span slot="trigger">See code</span>
1361
+ <span slot="trigger">See code</span>
1446
1362
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/help-text.html) -->
1447
1363
  <!-- The below code snippet is automatically added from ./../apiExamples/help-text.html -->
1448
1364
 
1449
- ```html
1450
- <auro-datepicker>
1451
- <span slot="bib.fullscreen.headline">helpText Example</span>
1452
- <span slot="fromLabel">Choose a date</span>
1453
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1454
- <span slot="helpText">Choose a date must be today or earlier.</span>
1455
- </auro-datepicker>
1456
- ```
1365
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker&gt;
1366
+ &lt;span slot="bib.fullscreen.headline"&gt;helpText Example&lt;/span&gt;
1367
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
1368
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1369
+ &lt;span slot="helpText"&gt;Choose a date must be today or earlier.&lt;/span&gt;
1370
+ &lt;/auro-datepicker&gt;</code></pre>
1457
1371
  <!-- AURO-GENERATED-CONTENT:END -->
1458
1372
  </auro-accordion>
1459
1373
 
@@ -1468,41 +1382,39 @@ Slot content support is limited to text only and a maximum of five (5) character
1468
1382
  Slot content can be styled using [inline styles](https://www.codecademy.com/article/html-inline-styles) or [CSS Parts](https://css-tricks.com/styling-in-the-shadow-dom-with-css-shadow-parts/) (`part="dateSlot"`).
1469
1383
 
1470
1384
  <div class="exampleWrapper">
1471
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/date-slot.html) -->
1472
- <!-- The below content is automatically added from ./../apiExamples/date-slot.html -->
1473
- <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
1474
- <span slot="bib.fullscreen.headline">dateSlot Example</span>
1475
- <span slot="fromLabel">Choose a date</span>
1476
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1477
- <span slot="date_12_03_2023">Sold</span>
1478
- <span highlight slot="date_12_04_2023">$89</span>
1479
- <span slot="date_12_05_2023">$100</span>
1480
- <span slot="date_12_06_2023">$2345</span>
1481
- <span highlight slot="date_12_07_2023">$149</span>
1482
- <span highlight slot="date_12_08_2023">$382</span>
1483
- <span slot="date_12_09_2023">$560</span>
1484
- </auro-datepicker>
1485
- <!-- AURO-GENERATED-CONTENT:END -->
1385
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/date-slot.html) -->
1386
+ <!-- The below content is automatically added from ./../apiExamples/date-slot.html -->
1387
+ <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
1388
+ <span slot="bib.fullscreen.headline">dateSlot Example</span>
1389
+ <span slot="fromLabel">Choose a date</span>
1390
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1391
+ <span slot="date_12_03_2023">Sold</span>
1392
+ <span highlight slot="date_12_04_2023">$89</span>
1393
+ <span slot="date_12_05_2023">$100</span>
1394
+ <span slot="date_12_06_2023">$2345</span>
1395
+ <span highlight slot="date_12_07_2023">$149</span>
1396
+ <span highlight slot="date_12_08_2023">$382</span>
1397
+ <span slot="date_12_09_2023">$560</span>
1398
+ </auro-datepicker>
1399
+ <!-- AURO-GENERATED-CONTENT:END -->
1486
1400
  </div>
1487
1401
  <auro-accordion alignRight>
1488
- <span slot="trigger">See code</span>
1402
+ <span slot="trigger">See code</span>
1489
1403
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/date-slot.html) -->
1490
1404
  <!-- The below code snippet is automatically added from ./../apiExamples/date-slot.html -->
1491
1405
 
1492
- ```html
1493
- <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
1494
- <span slot="bib.fullscreen.headline">dateSlot Example</span>
1495
- <span slot="fromLabel">Choose a date</span>
1496
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1497
- <span slot="date_12_03_2023">Sold</span>
1498
- <span highlight slot="date_12_04_2023">$89</span>
1499
- <span slot="date_12_05_2023">$100</span>
1500
- <span slot="date_12_06_2023">$2345</span>
1501
- <span highlight slot="date_12_07_2023">$149</span>
1502
- <span highlight slot="date_12_08_2023">$382</span>
1503
- <span slot="date_12_09_2023">$560</span>
1504
- </auro-datepicker>
1505
- ```
1406
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023"&gt;
1407
+ &lt;span slot="bib.fullscreen.headline"&gt;dateSlot Example&lt;/span&gt;
1408
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
1409
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1410
+ &lt;span slot="date_12_03_2023"&gt;Sold&lt;/span&gt;
1411
+ &lt;span highlight slot="date_12_04_2023"&gt;$89&lt;/span&gt;
1412
+ &lt;span slot="date_12_05_2023"&gt;$100&lt;/span&gt;
1413
+ &lt;span slot="date_12_06_2023"&gt;$2345&lt;/span&gt;
1414
+ &lt;span highlight slot="date_12_07_2023"&gt;$149&lt;/span&gt;
1415
+ &lt;span highlight slot="date_12_08_2023"&gt;$382&lt;/span&gt;
1416
+ &lt;span slot="date_12_09_2023"&gt;$560&lt;/span&gt;
1417
+ &lt;/auro-datepicker&gt;</code></pre>
1506
1418
  <!-- AURO-GENERATED-CONTENT:END -->
1507
1419
  </auro-accordion>
1508
1420
 
@@ -1513,41 +1425,39 @@ Custom content can be added to any day's `auro-popover` in the calendar using a
1513
1425
  The popover slot is intended for use with calendar dates that are `disabled` (e.g. before minimum date or after maximum date).
1514
1426
 
1515
1427
  <div class="exampleWrapper">
1516
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/popover-slot.html) -->
1517
- <!-- The below content is automatically added from ./../apiExamples/popover-slot.html -->
1518
- <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
1519
- <span slot="bib.fullscreen.headline">Popover Slot Example</span>
1520
- <span slot="fromLabel">Choose a date</span>
1521
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1522
- <span slot="popover_12_03_2023">Tickets for this day are sold out</span>
1523
- <span slot="popover_12_04_2023">Tickets for this day are $89</span>
1524
- <span slot="popover_12_05_2023">Tickets for this day are $100</span>
1525
- <span slot="popover_12_06_2023">Tickets for this day are $2345</span>
1526
- <span slot="popover_12_07_2023">Tickets for this day are $149</span>
1527
- <span slot="popover_12_08_2023">Tickets for this day are $382</span>
1528
- <span slot="popover_12_09_2023">Tickets for this day are $560</span>
1529
- </auro-datepicker>
1530
- <!-- AURO-GENERATED-CONTENT:END -->
1428
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/popover-slot.html) -->
1429
+ <!-- The below content is automatically added from ./../apiExamples/popover-slot.html -->
1430
+ <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
1431
+ <span slot="bib.fullscreen.headline">Popover Slot Example</span>
1432
+ <span slot="fromLabel">Choose a date</span>
1433
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1434
+ <span slot="popover_12_03_2023">Tickets for this day are sold out</span>
1435
+ <span slot="popover_12_04_2023">Tickets for this day are $89</span>
1436
+ <span slot="popover_12_05_2023">Tickets for this day are $100</span>
1437
+ <span slot="popover_12_06_2023">Tickets for this day are $2345</span>
1438
+ <span slot="popover_12_07_2023">Tickets for this day are $149</span>
1439
+ <span slot="popover_12_08_2023">Tickets for this day are $382</span>
1440
+ <span slot="popover_12_09_2023">Tickets for this day are $560</span>
1441
+ </auro-datepicker>
1442
+ <!-- AURO-GENERATED-CONTENT:END -->
1531
1443
  </div>
1532
1444
  <auro-accordion alignRight>
1533
- <span slot="trigger">See code</span>
1445
+ <span slot="trigger">See code</span>
1534
1446
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/popover-slot.html) -->
1535
1447
  <!-- The below code snippet is automatically added from ./../apiExamples/popover-slot.html -->
1536
1448
 
1537
- ```html
1538
- <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
1539
- <span slot="bib.fullscreen.headline">Popover Slot Example</span>
1540
- <span slot="fromLabel">Choose a date</span>
1541
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1542
- <span slot="popover_12_03_2023">Tickets for this day are sold out</span>
1543
- <span slot="popover_12_04_2023">Tickets for this day are $89</span>
1544
- <span slot="popover_12_05_2023">Tickets for this day are $100</span>
1545
- <span slot="popover_12_06_2023">Tickets for this day are $2345</span>
1546
- <span slot="popover_12_07_2023">Tickets for this day are $149</span>
1547
- <span slot="popover_12_08_2023">Tickets for this day are $382</span>
1548
- <span slot="popover_12_09_2023">Tickets for this day are $560</span>
1549
- </auro-datepicker>
1550
- ```
1449
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023"&gt;
1450
+ &lt;span slot="bib.fullscreen.headline"&gt;Popover Slot Example&lt;/span&gt;
1451
+ &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
1452
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1453
+ &lt;span slot="popover_12_03_2023"&gt;Tickets for this day are sold out&lt;/span&gt;
1454
+ &lt;span slot="popover_12_04_2023"&gt;Tickets for this day are $89&lt;/span&gt;
1455
+ &lt;span slot="popover_12_05_2023"&gt;Tickets for this day are $100&lt;/span&gt;
1456
+ &lt;span slot="popover_12_06_2023"&gt;Tickets for this day are $2345&lt;/span&gt;
1457
+ &lt;span slot="popover_12_07_2023"&gt;Tickets for this day are $149&lt;/span&gt;
1458
+ &lt;span slot="popover_12_08_2023"&gt;Tickets for this day are $382&lt;/span&gt;
1459
+ &lt;span slot="popover_12_09_2023"&gt;Tickets for this day are $560&lt;/span&gt;
1460
+ &lt;/auro-datepicker&gt;</code></pre>
1551
1461
  <!-- AURO-GENERATED-CONTENT:END -->
1552
1462
  </auro-accordion>
1553
1463
 
@@ -1558,39 +1468,36 @@ The popover slot is intended for use with calendar dates that are `disabled` (e.
1558
1468
  This example demonstrates data driven slot content for days in the calendar. In this example, the slot content is inserted into each `auro-calendar-cell` after the bib of the `auro-datepicker` is opened, simulating an API call on a dynamic data source.
1559
1469
 
1560
1470
  <div class="exampleWrapper">
1561
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamic-slot.html) -->
1562
- <!-- The below content is automatically added from ./../apiExamples/dynamic-slot.html -->
1563
- <auro-datepicker id="slotContentExample" centralDate="12/13/2023" minDate="12/13/2023" maxDate="01/18/2024" range>
1564
- <span slot="bib.fullscreen.headline">dynamic slot Example</span>
1565
- <span slot="fromLabel">Departure</span>
1566
- <span slot="toLabel">Return</span>
1567
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1568
- </auro-datepicker>
1569
- <!-- AURO-GENERATED-CONTENT:END -->
1471
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamic-slot.html) -->
1472
+ <!-- The below content is automatically added from ./../apiExamples/dynamic-slot.html -->
1473
+ <auro-datepicker id="slotContentExample" centralDate="12/13/2023" minDate="12/13/2023" maxDate="01/18/2024" range>
1474
+ <span slot="bib.fullscreen.headline">dynamic slot Example</span>
1475
+ <span slot="fromLabel">Departure</span>
1476
+ <span slot="toLabel">Return</span>
1477
+ <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1478
+ </auro-datepicker>
1479
+ <!-- AURO-GENERATED-CONTENT:END -->
1570
1480
  </div>
1571
1481
  <auro-accordion alignRight>
1572
- <span slot="trigger">See code</span>
1482
+ <span slot="trigger">See code</span>
1573
1483
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic-slot.html) -->
1574
1484
  <!-- The below code snippet is automatically added from ./../apiExamples/dynamic-slot.html -->
1575
1485
 
1576
- ```html
1577
- <auro-datepicker id="slotContentExample" centralDate="12/13/2023" minDate="12/13/2023" maxDate="01/18/2024" range>
1578
- <span slot="bib.fullscreen.headline">dynamic slot Example</span>
1579
- <span slot="fromLabel">Departure</span>
1580
- <span slot="toLabel">Return</span>
1581
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
1582
- </auro-datepicker>
1583
- ```
1486
+ <pre class="language-html"><code class="language-html">&lt;auro-datepicker id="slotContentExample" centralDate="12/13/2023" minDate="12/13/2023" maxDate="01/18/2024" range&gt;
1487
+ &lt;span slot="bib.fullscreen.headline"&gt;dynamic slot Example&lt;/span&gt;
1488
+ &lt;span slot="fromLabel"&gt;Departure&lt;/span&gt;
1489
+ &lt;span slot="toLabel"&gt;Return&lt;/span&gt;
1490
+ &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
1491
+ &lt;/auro-datepicker&gt;</code></pre>
1584
1492
  <!-- AURO-GENERATED-CONTENT:END -->
1585
1493
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamic-slot.js) -->
1586
1494
  <!-- The below code snippet is automatically added from ./../apiExamples/dynamic-slot.js -->
1587
1495
 
1588
- ```js
1589
- export function populateSlotContentExample() {
1496
+ <pre class="language-js"><code class="language-js">export function populateSlotContentExample() {
1590
1497
  const populateSlotContentExample = document.querySelector('#slotContentExample');
1591
-
1498
+
1592
1499
  // Insert slot content when the datepicker has been opened
1593
- populateSlotContentExample.addEventListener('auroDatePicker-toggled', (event) => {
1500
+ populateSlotContentExample.addEventListener('auroDatePicker-toggled', (event) =&gt; {
1594
1501
  if (event.detail.expanded) {
1595
1502
  // Array of object(s) containing key, value pairs defining what slot content to render
1596
1503
  const data = [
@@ -1671,41 +1578,40 @@ export function populateSlotContentExample() {
1671
1578
  {slot: 'popover', month: 1, day: 19, year: 2024, content: 'Tickets for this date are sold out'},
1672
1579
  {slot: 'popover', month: 1, day: 20, year: 2024, content: 'Tickets for this date are sold out'}
1673
1580
  ];
1674
-
1581
+
1675
1582
  // For each item in the array, parse the keys into an HTML element and insert it into the DOM
1676
- data.forEach((item) => {
1583
+ data.forEach((item) =&gt; {
1677
1584
  // Create the new element for the slot content
1678
1585
  const slotElement = document.createElement('span');
1679
-
1586
+
1680
1587
  if (item.month.toString().length === 1) {
1681
1588
  item.month = `0` + item.month;
1682
1589
  }
1683
-
1590
+
1684
1591
  if (item.day.toString().length === 1) {
1685
1592
  item.day = `0` + item.day;
1686
1593
  }
1687
-
1594
+
1688
1595
  // Create the slot name from the item's keys
1689
1596
  const slotName = `${item.slot}_${item.month}_${item.day}_${item.year}`;
1690
-
1597
+
1691
1598
  // Set the slot name and content
1692
1599
  slotElement.setAttribute('slot', slotName);
1693
1600
  slotElement.textContent = item.content;
1694
-
1601
+
1695
1602
  // Set the 'highlight' attribute on date slot content
1696
- if (item.slot === 'date' && item.highlight) {
1603
+ if (item.slot === 'date' &amp;&amp; item.highlight) {
1697
1604
  slotElement.setAttribute('highlight', item.highlight);
1698
1605
  }
1699
-
1606
+
1700
1607
  // Append the new element to the DOM
1701
1608
  populateSlotContentExample.appendChild(slotElement);
1702
1609
  });
1703
1610
  }
1704
-
1611
+
1705
1612
  populateSlotContentExample.pushSlotContent();
1706
1613
  });
1707
- }
1708
- ```
1614
+ }</code></pre>
1709
1615
  <!-- AURO-GENERATED-CONTENT:END -->
1710
1616
  </auro-accordion>
1711
1617
 
@@ -1714,49 +1620,45 @@ export function populateSlotContentExample() {
1714
1620
  The following example demonstrates the use of `<auro-datepicker>` within an `<auro-dialog>` component.
1715
1621
 
1716
1622
  <div class="exampleWrapper">
1717
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-dialog.html) -->
1718
- <!-- The below content is automatically added from ./../apiExamples/in-dialog.html -->
1719
- <div>
1720
- <auro-button id="datepicker-dialog-opener">Datepicker in Dialog</auro-button>
1721
- <auro-dialog id="datepicker-dialog">
1722
- <span slot="bib.fullscreen.headline">inDialog Example</span>
1723
- <span slot="header">Datepicker in Dialog</span>
1724
- <div slot="content">
1725
- <auro-datepicker />
1726
- </div>
1727
- </auro-dialog>
1728
- </div>
1729
- <!-- AURO-GENERATED-CONTENT:END -->
1623
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-dialog.html) -->
1624
+ <!-- The below content is automatically added from ./../apiExamples/in-dialog.html -->
1625
+ <div>
1626
+ <auro-button id="datepicker-dialog-opener">Datepicker in Dialog</auro-button>
1627
+ <auro-dialog id="datepicker-dialog">
1628
+ <span slot="bib.fullscreen.headline">inDialog Example</span>
1629
+ <span slot="header">Datepicker in Dialog</span>
1630
+ <div slot="content">
1631
+ <auro-datepicker />
1632
+ </div>
1633
+ </auro-dialog>
1634
+ </div>
1635
+ <!-- AURO-GENERATED-CONTENT:END -->
1730
1636
  </div>
1731
1637
  <auro-accordion alignRight>
1732
- <span slot="trigger">See code</span>
1638
+ <span slot="trigger">See code</span>
1733
1639
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.html) -->
1734
1640
  <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.html -->
1735
1641
 
1736
- ```html
1737
- <div>
1738
- <auro-button id="datepicker-dialog-opener">Datepicker in Dialog</auro-button>
1739
- <auro-dialog id="datepicker-dialog">
1740
- <span slot="bib.fullscreen.headline">inDialog Example</span>
1741
- <span slot="header">Datepicker in Dialog</span>
1742
- <div slot="content">
1743
- <auro-datepicker />
1744
- </div>
1745
- </auro-dialog>
1746
- </div>
1747
- ```
1642
+ <pre class="language-html"><code class="language-html">&lt;div&gt;
1643
+ &lt;auro-button id="datepicker-dialog-opener"&gt;Datepicker in Dialog&lt;/auro-button&gt;
1644
+ &lt;auro-dialog id="datepicker-dialog"&gt;
1645
+ &lt;span slot="bib.fullscreen.headline"&gt;inDialog Example&lt;/span&gt;
1646
+ &lt;span slot="header"&gt;Datepicker in Dialog&lt;/span&gt;
1647
+ &lt;div slot="content"&gt;
1648
+ &lt;auro-datepicker /&gt;
1649
+ &lt;/div&gt;
1650
+ &lt;/auro-dialog&gt;
1651
+ &lt;/div&gt;</code></pre>
1748
1652
  <!-- AURO-GENERATED-CONTENT:END -->
1749
1653
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.js) -->
1750
1654
  <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.js -->
1751
1655
 
1752
- ```js
1753
- export function inDialogExample() {
1754
- document.querySelector("#datepicker-dialog-opener").addEventListener("click", () => {
1656
+ <pre class="language-js"><code class="language-js">export function inDialogExample() {
1657
+ document.querySelector("#datepicker-dialog-opener").addEventListener("click", () =&gt; {
1755
1658
  const dialog = document.querySelector("#datepicker-dialog");
1756
1659
  dialog.open = true;
1757
1660
  });
1758
- };
1759
- ```
1661
+ };</code></pre>
1760
1662
  <!-- AURO-GENERATED-CONTENT:END -->
1761
1663
  </auro-accordion>
1762
1664
 
@@ -1765,46 +1667,43 @@ export function inDialogExample() {
1765
1667
  The following example demonstrates the use of `<auro-datepicker>` within an `<auro-drawer>` component.
1766
1668
 
1767
1669
  <div class="exampleWrapper">
1768
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-drawer.html) -->
1769
- <!-- The below content is automatically added from ./../apiExamples/in-drawer.html -->
1770
- <div>
1771
- <auro-button id="datepicker-drawer-opener">Datepicker in Drawer</auro-button>
1772
- <auro-drawer id="datepicker-drawer">
1773
- <span slot="header">Datepicker in Drawer</span>
1774
- <div slot="content">
1775
- <auro-datepicker>
1776
- <span slot="bib.fullscreen.headline">inDrawer Example</span>
1777
- </auro-datepicker>
1778
- </div>
1779
- </auro-drawer>
1780
- </div>
1781
- <!-- AURO-GENERATED-CONTENT:END -->
1670
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-drawer.html) -->
1671
+ <!-- The below content is automatically added from ./../apiExamples/in-drawer.html -->
1672
+ <div>
1673
+ <auro-button id="datepicker-drawer-opener">Datepicker in Drawer</auro-button>
1674
+ <auro-drawer id="datepicker-drawer">
1675
+ <span slot="header">Datepicker in Drawer</span>
1676
+ <div slot="content">
1677
+ <auro-datepicker>
1678
+ <span slot="bib.fullscreen.headline">inDrawer Example</span>
1679
+ </auro-datepicker>
1680
+ </div>
1681
+ </auro-drawer>
1682
+ </div>
1683
+ <!-- AURO-GENERATED-CONTENT:END -->
1782
1684
  </div>
1783
1685
  <auro-accordion alignRight>
1784
- <span slot="trigger">See code</span>
1686
+ <span slot="trigger">See code</span>
1785
1687
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.html) -->
1786
1688
  <!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.html -->
1787
1689
 
1788
- ```html
1789
- <div>
1790
- <auro-button id="datepicker-drawer-opener">Datepicker in Drawer</auro-button>
1791
- <auro-drawer id="datepicker-drawer">
1792
- <span slot="header">Datepicker in Drawer</span>
1793
- <div slot="content">
1794
- <auro-datepicker>
1795
- <span slot="bib.fullscreen.headline">inDrawer Example</span>
1796
- </auro-datepicker>
1797
- </div>
1798
- </auro-drawer>
1799
- </div>
1800
- ```
1690
+ <pre class="language-html"><code class="language-html">&lt;div&gt;
1691
+ &lt;auro-button id="datepicker-drawer-opener"&gt;Datepicker in Drawer&lt;/auro-button&gt;
1692
+ &lt;auro-drawer id="datepicker-drawer"&gt;
1693
+ &lt;span slot="header"&gt;Datepicker in Drawer&lt;/span&gt;
1694
+ &lt;div slot="content"&gt;
1695
+ &lt;auro-datepicker&gt;
1696
+ &lt;span slot="bib.fullscreen.headline"&gt;inDrawer Example&lt;/span&gt;
1697
+ &lt;/auro-datepicker&gt;
1698
+ &lt;/div&gt;
1699
+ &lt;/auro-drawer&gt;
1700
+ &lt;/div&gt;</code></pre>
1801
1701
  <!-- AURO-GENERATED-CONTENT:END -->
1802
1702
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.js) -->
1803
1703
  <!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.js -->
1804
1704
 
1805
- ```js
1806
- export function inDrawerExample() {
1807
- document.querySelector("#datepicker-drawer-opener").addEventListener("click", () => {
1705
+ <pre class="language-js"><code class="language-js">export function inDrawerExample() {
1706
+ document.querySelector("#datepicker-drawer-opener").addEventListener("click", () =&gt; {
1808
1707
  const drawer = document.querySelector("#datepicker-drawer");
1809
1708
  if (drawer.hasAttribute('open')) {
1810
1709
  drawer.removeAttribute('open');
@@ -1812,8 +1711,7 @@ export function inDrawerExample() {
1812
1711
  drawer.setAttribute('open', true);
1813
1712
  }
1814
1713
  });
1815
- };
1816
- ```
1714
+ };</code></pre>
1817
1715
  <!-- AURO-GENERATED-CONTENT:END -->
1818
1716
  </auro-accordion>
1819
1717
 
@@ -1824,11 +1722,10 @@ The component may be restyled by changing the values of the following token(s).
1824
1722
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
1825
1723
  <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
1826
1724
 
1827
- ```scss
1828
- /* stylelint-disable color-function-notation */
1829
-
1725
+ <pre class="language-scss"><code class="language-scss">/* stylelint-disable color-function-notation */
1726
+
1830
1727
  @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
1831
-
1728
+
1832
1729
  :host(:not([ondark])),
1833
1730
  :host(:not([appearance="inverse"])) {
1834
1731
  // datepicker
@@ -1836,7 +1733,7 @@ The component may be restyled by changing the values of the following token(s).
1836
1733
  --ds-auro-datepicker-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
1837
1734
  --ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
1838
1735
  --ds-auro-datepicker-outline-color: transparent;
1839
-
1736
+
1840
1737
  // calendar
1841
1738
  --ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1842
1739
  --ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
@@ -1853,7 +1750,7 @@ The component may be restyled by changing the values of the following token(s).
1853
1750
  --ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1854
1751
  --ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1855
1752
  }
1856
-
1753
+
1857
1754
  :host([ondark]),
1858
1755
  :host([appearance="inverse"]) {
1859
1756
  // datepicker
@@ -1861,7 +1758,7 @@ The component may be restyled by changing the values of the following token(s).
1861
1758
  --ds-auro-datepicker-error-icon-color: var(--ds-advanced-color-state-error-inverse, #{v.$ds-advanced-color-state-error-inverse});
1862
1759
  --ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #{v.$ds-basic-color-texticon-inverse-muted});
1863
1760
  --ds-auro-datepicker-outline-color: transparent;
1864
-
1761
+
1865
1762
  // calendar
1866
1763
  --ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1867
1764
  --ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
@@ -1877,6 +1774,5 @@ The component may be restyled by changing the values of the following token(s).
1877
1774
  --ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #{v.$ds-advanced-color-shared-background-muted});
1878
1775
  --ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1879
1776
  --ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1880
- }
1881
- ```
1777
+ }</code></pre>
1882
1778
  <!-- AURO-GENERATED-CONTENT:END -->