@aurodesignsystem/auro-formkit 2.0.0-beta.46 → 2.0.0-beta.48

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 (60) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/components/bibtemplate/dist/index.js +3 -3
  3. package/components/bibtemplate/dist/registered.js +3 -3
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/api.min.js +9 -12
  6. package/components/checkbox/demo/index.min.js +9 -12
  7. package/components/checkbox/dist/index.js +9 -12
  8. package/components/checkbox/dist/registered.js +9 -12
  9. package/components/combobox/README.md +4 -4
  10. package/components/combobox/demo/api.md +2 -2
  11. package/components/combobox/demo/api.min.js +3858 -1703
  12. package/components/combobox/demo/index.md +2 -2
  13. package/components/combobox/demo/index.min.js +3858 -1703
  14. package/components/combobox/dist/auro-combobox.d.ts +9 -0
  15. package/components/combobox/dist/index.js +3829 -1674
  16. package/components/combobox/dist/registered.js +3829 -1674
  17. package/components/counter/README.md +1 -1
  18. package/components/counter/demo/api.min.js +52 -29
  19. package/components/counter/demo/index.min.js +52 -29
  20. package/components/counter/dist/auro-counter-group.d.ts +11 -0
  21. package/components/counter/dist/index.js +52 -29
  22. package/components/counter/dist/registered.js +52 -29
  23. package/components/datepicker/README.md +6 -4
  24. package/components/datepicker/demo/api.js +2 -2
  25. package/components/datepicker/demo/api.md +134 -48
  26. package/components/datepicker/demo/api.min.js +5175 -2043
  27. package/components/datepicker/demo/index.md +6 -0
  28. package/components/datepicker/demo/index.min.js +5161 -2028
  29. package/components/datepicker/dist/auro-calendar-month.d.ts +15 -0
  30. package/components/datepicker/dist/auro-calendar.d.ts +24 -0
  31. package/components/datepicker/dist/auro-datepicker.d.ts +31 -11
  32. package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
  33. package/components/datepicker/dist/index.js +5161 -2028
  34. package/components/datepicker/dist/registered.js +5161 -2028
  35. package/components/datepicker/dist/utilities.d.ts +25 -0
  36. package/components/datepicker/dist/utilitiesCalendar.d.ts +2 -1
  37. package/components/dropdown/README.md +1 -1
  38. package/components/form/README.md +1 -1
  39. package/components/input/README.md +1 -1
  40. package/components/input/demo/api.md +91 -89
  41. package/components/input/demo/api.min.js +3827 -1688
  42. package/components/input/demo/index.md +2 -2
  43. package/components/input/demo/index.min.js +3827 -1688
  44. package/components/input/dist/auro-input.d.ts +0 -1
  45. package/components/input/dist/base-input.d.ts +46 -12
  46. package/components/input/dist/index.js +3827 -1688
  47. package/components/input/dist/registered.js +3827 -1688
  48. package/components/input/dist/utilities.d.ts +25 -0
  49. package/components/menu/README.md +1 -1
  50. package/components/radio/README.md +1 -1
  51. package/components/radio/demo/api.min.js +9 -12
  52. package/components/radio/demo/index.min.js +9 -12
  53. package/components/radio/dist/index.js +9 -12
  54. package/components/radio/dist/registered.js +9 -12
  55. package/components/select/README.md +3 -3
  56. package/components/select/demo/api.min.js +9 -12
  57. package/components/select/demo/index.min.js +9 -12
  58. package/components/select/dist/index.js +9 -12
  59. package/components/select/dist/registered.js +9 -12
  60. package/package.json +1 -1
@@ -13,6 +13,8 @@
13
13
  | [centralDate](#centralDate) | `centralDate` | | `string` | | The date that determines the currently visible month. |
14
14
  | [disabled](#disabled) | `disabled` | | `boolean` | false | If set, disables the datepicker. |
15
15
  | [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
16
+ | [format](#format) | `format` | | `string` | "mm/dd/yyyy" | Specifies the date format. The default is `mm/dd/yyyy`. |
17
+ | [largeMobileHeadline](#largeMobileHeadline) | `largeMobileHeadline` | | `boolean` | | If declared, make mobileHeadline in HeadingDisplay.<br />Otherwise, Heading 600. |
16
18
  | [maxDate](#maxDate) | `maxDate` | | `string` | | Maximum date. All dates after will be disabled. |
17
19
  | [minDate](#minDate) | `minDate` | | `string` | | Minimum date. All dates before will be disabled. |
18
20
  | [monthNames](#monthNames) | `monthNames` | | `array` | ["January","February","March","April","May","June","July","August","September","October","November","December"] | Names of all 12 months to render in the calendar, used for localization of date string in mobile layout. |
@@ -54,7 +56,8 @@
54
56
  | `date_MM_DD_YYYY` | Defines the content to display in the auro-calendar-cell for the specified date. The content text is colored using the success state token when the `highlight` attribute is applied to the slot. |
55
57
  | [fromLabel](#fromLabel) | Defines the label content for the first input. |
56
58
  | [helpText](#helpText) | Defines the content of the helpText. |
57
- | [mobileDateLabel](#mobileDateLabel) | Defines the content to display above selected dates in the mobile layout. |
59
+ | [mobileDateLabel](#mobileDateLabel) | Defines the content to display above selected dates in the mobile layout. |
60
+ | [mobileHeadline](#mobileHeadline) | Defines the headline to display above mobileDateLabels in the mobile layout. |
58
61
  | `popover_MM_DD_YYYY` | Defines the content to display in the auro-calendar-cell popover for the specified date. |
59
62
  | [toLabel](#toLabel) | Defines the label content for the second input when the `range` attribute is used. |
60
63
 
@@ -79,6 +82,7 @@
79
82
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
80
83
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
81
84
  <auro-datepicker>
85
+ <span slot="mobileHeadline">Datepicker Headline</span>
82
86
  <span slot="fromLabel">Choose a date</span>
83
87
  <span slot="mobileDateLabel">Choose a date</span>
84
88
  </auro-datepicker>
@@ -91,6 +95,7 @@
91
95
 
92
96
  ```html
93
97
  <auro-datepicker>
98
+ <span slot="mobileHeadline">Datepicker Headline</span>
94
99
  <span slot="fromLabel">Choose a date</span>
95
100
  <span slot="mobileDateLabel">Choose a date</span>
96
101
  </auro-datepicker>
@@ -106,6 +111,7 @@ When used, the datepicker will display two inputs and the component will support
106
111
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
107
112
  <!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
108
113
  <auro-datepicker range>
114
+ <span slot="mobileHeadline">Datepicker Range Headline</span>
109
115
  <span slot="fromLabel">Departure</span>
110
116
  <span slot="toLabel">Return</span>
111
117
  <span slot="mobileDateLabel">Roundtrip</span>
@@ -119,6 +125,7 @@ When used, the datepicker will display two inputs and the component will support
119
125
 
120
126
  ```html
121
127
  <auro-datepicker range>
128
+ <span slot="mobileHeadline">Datepicker Range Headline</span>
122
129
  <span slot="fromLabel">Departure</span>
123
130
  <span slot="toLabel">Return</span>
124
131
  <span slot="mobileDateLabel">Roundtrip</span>
@@ -127,7 +134,7 @@ When used, the datepicker will display two inputs and the component will support
127
134
  <!-- AURO-GENERATED-CONTENT:END -->
128
135
  </auro-accordion>
129
136
 
130
- ### Property Examples
137
+ ### Attribute Examples
131
138
 
132
139
  #### disabled
133
140
 
@@ -166,6 +173,7 @@ A custom error message can be set using the `error` attribute, or it can be used
166
173
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
167
174
  <!-- The below content is automatically added from ./../apiExamples/error.html -->
168
175
  <auro-datepicker error="Custom error message" id="errorExample">
176
+ <span slot="mobileHeadline">Error Example</span>
169
177
  <span slot="fromLabel">Choose a date</span>
170
178
  <span slot="mobileDateLabel">Choose a date</span>
171
179
  </auro-datepicker>
@@ -180,6 +188,7 @@ A custom error message can be set using the `error` attribute, or it can be used
180
188
 
181
189
  ```html
182
190
  <auro-datepicker error="Custom error message" id="errorExample">
191
+ <span slot="mobileHeadline">Error Example</span>
183
192
  <span slot="fromLabel">Choose a date</span>
184
193
  <span slot="mobileDateLabel">Choose a date</span>
185
194
  </auro-datepicker>
@@ -214,7 +223,7 @@ In <strong>desktop</strong>, the calendar month navigation will be restricted by
214
223
 
215
224
  - if both `calendarStartDate` and `calendarEndDate` are defined: all months between, including these dates, will be rendered.
216
225
  - If only `calendarStartDate` is defined: 12 months will be rendered starting with this value.
217
- - if only `calendarEndDate` is defined: The current date month through the value of this property will be rendered.
226
+ - if only `calendarEndDate` is defined: The current date month through the value of this attribute will be rendered.
218
227
 
219
228
  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`.
220
229
 
@@ -222,6 +231,7 @@ Note: This does not restrict setting a value outside of those date constraints.
222
231
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/calendarStartAndEndDate.html) -->
223
232
  <!-- The below content is automatically added from ./../apiExamples/calendarStartAndEndDate.html -->
224
233
  <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="06/01/2022">
234
+ <span slot="mobileHeadline">calendarStartDate & calendarEndDate Example</span>
225
235
  <span slot="fromLabel">Choose a date</span>
226
236
  <span slot="mobileDateLabel">Choose a date</span>
227
237
  </auro-datepicker>
@@ -234,6 +244,7 @@ Note: This does not restrict setting a value outside of those date constraints.
234
244
 
235
245
  ```html
236
246
  <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="06/01/2022">
247
+ <span slot="mobileHeadline">calendarStartDate & calendarEndDate Example</span>
237
248
  <span slot="fromLabel">Choose a date</span>
238
249
  <span slot="mobileDateLabel">Choose a date</span>
239
250
  </auro-datepicker>
@@ -245,7 +256,7 @@ Note: This does not restrict setting a value outside of those date constraints.
245
256
 
246
257
  The `calendarFocusDate` controls which calendar month is first presented to the user when they open the dropdown bib.
247
258
 
248
- In <strong>desktop</strong> layout, the first month actually rendered will be the `calendarFocusDate` if defined. Once the user manually navigates the calendar to a different month, the calendar view will remain where the user left off when they close and reopen the bib. If the `calendarFocusDate` property is changed, this will re-render the calendar starting at the new date. If `calendarFocusDate` is undefined, the first rendered month will be the current date or the first renderable date defined by `calendarStartDate`.
259
+ In <strong>desktop</strong> layout, the first month actually rendered will be the `calendarFocusDate` if defined. Once the user manually navigates the calendar to a different month, the calendar view will remain where the user left off when they close and reopen the bib. If the `calendarFocusDate` attribute is changed, this will re-render the calendar starting at the new date. If `calendarFocusDate` is undefined, the first rendered month will be the current date or the first renderable date defined by `calendarStartDate`.
249
260
 
250
261
  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.
251
262
 
@@ -253,6 +264,7 @@ In <strong>mobile</strong> layout, upon first opening the bib, the vertical list
253
264
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/calendarFocusDate.html) -->
254
265
  <!-- The below content is automatically added from ./../apiExamples/calendarFocusDate.html -->
255
266
  <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="12/01/2023" calendarFocusDate="11/01/2022">
267
+ <span slot="mobileHeadline">calendarFocusDate Example</span>
256
268
  <span slot="fromLabel">Choose a date</span>
257
269
  <span slot="mobileDateLabel">Choose a date</span>
258
270
  </auro-datepicker>
@@ -265,6 +277,7 @@ In <strong>mobile</strong> layout, upon first opening the bib, the vertical list
265
277
 
266
278
  ```html
267
279
  <auro-datepicker calendarStartDate="01/01/2022" calendarEndDate="12/01/2023" calendarFocusDate="11/01/2022">
280
+ <span slot="mobileHeadline">calendarFocusDate Example</span>
268
281
  <span slot="fromLabel">Choose a date</span>
269
282
  <span slot="mobileDateLabel">Choose a date</span>
270
283
  </auro-datepicker>
@@ -274,12 +287,13 @@ In <strong>mobile</strong> layout, upon first opening the bib, the vertical list
274
287
 
275
288
  #### maxDate
276
289
 
277
- To give a higher limit you can bind a date to the `maxDate` property. It is recommended to use the `setCustomValidityRangeOverflow` attribute to define an error message to display when validation fails the maximum date restriction.
290
+ 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.
278
291
 
279
292
  <div class="exampleWrapper">
280
293
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/maxDate.html) -->
281
294
  <!-- The below content is automatically added from ./../apiExamples/maxDate.html -->
282
295
  <auro-datepicker maxDate="03/25/2023" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
296
+ <span slot="mobileHeadline">maxDate Example</span>
283
297
  <span slot="fromLabel">Choose a date</span>
284
298
  <span slot="mobileDateLabel">Choose a date</span>
285
299
  </auro-datepicker>
@@ -292,6 +306,7 @@ To give a higher limit you can bind a date to the `maxDate` property. It is reco
292
306
 
293
307
  ```html
294
308
  <auro-datepicker maxDate="03/25/2023" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
309
+ <span slot="mobileHeadline">maxDate Example</span>
295
310
  <span slot="fromLabel">Choose a date</span>
296
311
  <span slot="mobileDateLabel">Choose a date</span>
297
312
  </auro-datepicker>
@@ -309,6 +324,7 @@ This example demonstrates that behavior.
309
324
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/updateMaxDate.html) -->
310
325
  <!-- The below content is automatically added from ./../apiExamples/updateMaxDate.html -->
311
326
  <auro-datepicker id="maxDateExample" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
327
+ <span slot="mobileHeadline">maxDate Example</span>
312
328
  <span slot="fromLabel">Choose a date</span>
313
329
  <span slot="mobileDateLabel">Choose a date</span>
314
330
  </auro-datepicker>
@@ -323,6 +339,7 @@ This example demonstrates that behavior.
323
339
 
324
340
  ```html
325
341
  <auro-datepicker id="maxDateExample" setCustomValidityRangeOverflow="Selected date is later than maximum date.">
342
+ <span slot="mobileHeadline">maxDate Example</span>
326
343
  <span slot="fromLabel">Choose a date</span>
327
344
  <span slot="mobileDateLabel">Choose a date</span>
328
345
  </auro-datepicker>
@@ -375,12 +392,13 @@ export function updateMaxDateExample() {
375
392
 
376
393
  #### minDate
377
394
 
378
- To give a lower limit you can bind a date to the `minDate` property. It is recommended to use the `setCustomValidityRangeUnderflow` attribute to define an error message to display when validation fails the minimum date restriction.
395
+ 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.
379
396
 
380
397
  <div class="exampleWrapper">
381
398
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/minDate.html) -->
382
399
  <!-- The below content is automatically added from ./../apiExamples/minDate.html -->
383
400
  <auro-datepicker minDate="03/25/2028" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
401
+ <span slot="mobileHeadline">minDate Example</span>
384
402
  <span slot="fromLabel">Choose a date</span>
385
403
  <span slot="mobileDateLabel">Choose a date</span>
386
404
  </auro-datepicker>
@@ -393,6 +411,7 @@ To give a lower limit you can bind a date to the `minDate` property. It is recom
393
411
 
394
412
  ```html
395
413
  <auro-datepicker minDate="03/25/2028" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
414
+ <span slot="mobileHeadline">minDate Example</span>
396
415
  <span slot="fromLabel">Choose a date</span>
397
416
  <span slot="mobileDateLabel">Choose a date</span>
398
417
  </auro-datepicker>
@@ -410,6 +429,7 @@ This example demonstrates that behavior.
410
429
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/updateMinDate.html) -->
411
430
  <!-- The below content is automatically added from ./../apiExamples/updateMinDate.html -->
412
431
  <auro-datepicker id="minDateExample" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
432
+ <span slot="mobileHeadline">minDate Example</span>
413
433
  <span slot="fromLabel">Choose a date</span>
414
434
  <span slot="mobileDateLabel">Choose a date</span>
415
435
  </auro-datepicker>
@@ -424,6 +444,7 @@ This example demonstrates that behavior.
424
444
 
425
445
  ```html
426
446
  <auro-datepicker id="minDateExample" setCustomValidityRangeUnderflow="Selected date is earlier than the minimum date.">
447
+ <span slot="mobileHeadline">minDate Example</span>
427
448
  <span slot="fromLabel">Choose a date</span>
428
449
  <span slot="mobileDateLabel">Choose a date</span>
429
450
  </auro-datepicker>
@@ -474,44 +495,6 @@ export function updateMinDateExample() {
474
495
  ```
475
496
  <!-- AURO-GENERATED-CONTENT:END -->
476
497
  </auro-accordion>
477
-
478
- #### monthNames
479
-
480
- May be used to provide localized month names. These names will only be shown in the calendar when viewed on a mobile device.
481
-
482
- <div class="exampleWrapper">
483
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/monthNames.html) -->
484
- <!-- The below content is automatically added from ./../apiExamples/monthNames.html -->
485
- <auro-datepicker id="monthNamesExample">
486
- <span slot="fromLabel">Choose a date</span>
487
- <span slot="mobileDateLabel">Choose a date</span>
488
- </auro-datepicker>
489
- <!-- AURO-GENERATED-CONTENT:END -->
490
- </div>
491
- <auro-accordion alignRight>
492
- <span slot="trigger">See code</span>
493
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/monthNames.html) -->
494
- <!-- The below code snippet is automatically added from ./../apiExamples/monthNames.html -->
495
-
496
- ```html
497
- <auro-datepicker id="monthNamesExample">
498
- <span slot="fromLabel">Choose a date</span>
499
- <span slot="mobileDateLabel">Choose a date</span>
500
- </auro-datepicker>
501
- ```
502
- <!-- AURO-GENERATED-CONTENT:END -->
503
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/monthNames.js) -->
504
- <!-- The below code snippet is automatically added from ./../apiExamples/monthNames.js -->
505
-
506
- ```js
507
- export function monthNamesExample() {
508
- const monthNamesExample = document.querySelector('#monthNamesExample');
509
- const spanishMonths = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'];
510
-
511
- monthNamesExample.monthNames = spanishMonths;
512
- }
513
- ```
514
- <!-- AURO-GENERATED-CONTENT:END -->
515
498
  </auro-accordion>
516
499
 
517
500
  #### noValidate
@@ -522,6 +505,7 @@ When set, the datepicker will not validate when navigating away from the compone
522
505
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/noValidate.html) -->
523
506
  <!-- The below content is automatically added from ./../apiExamples/noValidate.html -->
524
507
  <auro-datepicker required noValidate>
508
+ <span slot="mobileHeadline">noValidate Example</span>
525
509
  <span slot="fromLabel">Choose a date</span>
526
510
  <span slot="mobileDateLabel">Choose a date</span>
527
511
  </auro-datepicker>
@@ -534,6 +518,7 @@ When set, the datepicker will not validate when navigating away from the compone
534
518
 
535
519
  ```html
536
520
  <auro-datepicker required noValidate>
521
+ <span slot="mobileHeadline">noValidate Example</span>
537
522
  <span slot="fromLabel">Choose a date</span>
538
523
  <span slot="mobileDateLabel">Choose a date</span>
539
524
  </auro-datepicker>
@@ -551,10 +536,12 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
551
536
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
552
537
  <!-- The below content is automatically added from ./../apiExamples/required.html -->
553
538
  <auro-datepicker required setCustomValidityValueMissing="Custom value missing message.">
539
+ <span slot="mobileHeadline">Required Example</span>
554
540
  <span slot="fromLabel">Choose a date</span>
555
541
  <span slot="mobileDateLabel">Choose a date</span>
556
542
  </auro-datepicker>
557
543
  <auro-datepicker required range setCustomValidityValueMissing="Custom value missing message.">
544
+ <span slot="mobileHeadline">Required Example</span>
558
545
  <span slot="fromLabel">Departure</span>
559
546
  <span slot="toLabel">Return</span>
560
547
  <span slot="mobileDateLabel">Roundtrip</span>
@@ -568,10 +555,12 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
568
555
 
569
556
  ```html
570
557
  <auro-datepicker required setCustomValidityValueMissing="Custom value missing message.">
558
+ <span slot="mobileHeadline">Required Example</span>
571
559
  <span slot="fromLabel">Choose a date</span>
572
560
  <span slot="mobileDateLabel">Choose a date</span>
573
561
  </auro-datepicker>
574
562
  <auro-datepicker required range setCustomValidityValueMissing="Custom value missing message.">
563
+ <span slot="mobileHeadline">Required Example</span>
575
564
  <span slot="fromLabel">Departure</span>
576
565
  <span slot="toLabel">Return</span>
577
566
  <span slot="mobileDateLabel">Roundtrip</span>
@@ -588,6 +577,7 @@ Specifies the `validityState` the element is in. Upon first interaction, or pres
588
577
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/validity.html) -->
589
578
  <!-- The below content is automatically added from ./../apiExamples/validity.html -->
590
579
  <auro-datepicker required id="validityExample">
580
+ <span slot="mobileHeadline">validity Example</span>
591
581
  <span slot="fromLabel">Choose a date</span>
592
582
  <span slot="mobileDateLabel">Choose a date</span>
593
583
  </auro-datepicker>
@@ -601,6 +591,7 @@ Specifies the `validityState` the element is in. Upon first interaction, or pres
601
591
 
602
592
  ```html
603
593
  <auro-datepicker required id="validityExample">
594
+ <span slot="mobileHeadline">validity Example</span>
604
595
  <span slot="fromLabel">Choose a date</span>
605
596
  <span slot="mobileDateLabel">Choose a date</span>
606
597
  </auro-datepicker>
@@ -632,6 +623,7 @@ Value selected for the datepicker. Can be used to pre-set the value of the datep
632
623
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/value.html) -->
633
624
  <!-- The below content is automatically added from ./../apiExamples/value.html -->
634
625
  <auro-datepicker id="valueExample" value="02/02/2022">
626
+ <span slot="mobileHeadline">value Example</span>
635
627
  <span slot="fromLabel">Choose a date</span>
636
628
  <span slot="mobileDateLabel">Choose a date</span>
637
629
  </auro-datepicker>
@@ -644,6 +636,7 @@ Value selected for the datepicker. Can be used to pre-set the value of the datep
644
636
 
645
637
  ```html
646
638
  <auro-datepicker id="valueExample" value="02/02/2022">
639
+ <span slot="mobileHeadline">value Example</span>
647
640
  <span slot="fromLabel">Choose a date</span>
648
641
  <span slot="mobileDateLabel">Choose a date</span>
649
642
  </auro-datepicker>
@@ -659,6 +652,7 @@ Value of the second input (end date), selected for the datepicker. Can be used t
659
652
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueEnd.html) -->
660
653
  <!-- The below content is automatically added from ./../apiExamples/valueEnd.html -->
661
654
  <auro-datepicker id="valueEndExample" range valueEnd="03/03/2023">
655
+ <span slot="mobileHeadline">valueEnd Example</span>
662
656
  <span slot="fromLabel">Departure</span>
663
657
  <span slot="toLabel">Return</span>
664
658
  <span slot="mobileDateLabel">Choose a date</span>
@@ -672,6 +666,7 @@ Value of the second input (end date), selected for the datepicker. Can be used t
672
666
 
673
667
  ```html
674
668
  <auro-datepicker id="valueEndExample" range valueEnd="03/03/2023">
669
+ <span slot="mobileHeadline">valueEnd Example</span>
675
670
  <span slot="fromLabel">Departure</span>
676
671
  <span slot="toLabel">Return</span>
677
672
  <span slot="mobileDateLabel">Choose a date</span>
@@ -680,6 +675,35 @@ Value of the second input (end date), selected for the datepicker. Can be used t
680
675
  <!-- AURO-GENERATED-CONTENT:END -->
681
676
  </auro-accordion>
682
677
 
678
+ #### format
679
+
680
+ The `format` attribute is used to define the date format used by the datepicker. The default value is `mm/dd/yyyy`.
681
+
682
+ <div class="exampleWrapper">
683
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/format.html) -->
684
+ <!-- The below content is automatically added from ./../apiExamples/format.html -->
685
+ <auro-datepicker format="yyyy/mm/dd">
686
+ <span slot="mobileHeadline">Format Headline</span>
687
+ <span slot="fromLabel">Choose a date</span>
688
+ <span slot="mobileDateLabel">Choose a date</span>
689
+ </auro-datepicker>
690
+ <!-- AURO-GENERATED-CONTENT:END -->
691
+ </div>
692
+ <auro-accordion alignRight>
693
+ <span slot="trigger">See code</span>
694
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/format.html) -->
695
+ <!-- The below code snippet is automatically added from ./../apiExamples/format.html -->
696
+
697
+ ```html
698
+ <auro-datepicker format="yyyy/mm/dd">
699
+ <span slot="mobileHeadline">Format Headline</span>
700
+ <span slot="fromLabel">Choose a date</span>
701
+ <span slot="mobileDateLabel">Choose a date</span>
702
+ </auro-datepicker>
703
+ ```
704
+ <!-- AURO-GENERATED-CONTENT:END -->
705
+ </auro-accordion>
706
+
683
707
  ### Method Examples
684
708
 
685
709
  #### focus
@@ -690,6 +714,7 @@ The focus method will apply focus state to the datepicker's input field.
690
714
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/focus.html) -->
691
715
  <!-- The below content is automatically added from ./../apiExamples/focus.html -->
692
716
  <auro-datepicker id="focusExampleElem" range>
717
+ <span slot="mobileHeadline">Focus Example</span>
693
718
  <span slot="fromLabel">Departure</span>
694
719
  <span slot="toLabel">Return</span>
695
720
  <span slot="mobileDateLabel">Choose a date</span>
@@ -705,6 +730,7 @@ The focus method will apply focus state to the datepicker's input field.
705
730
 
706
731
  ```html
707
732
  <auro-datepicker id="focusExampleElem" range>
733
+ <span slot="mobileHeadline">Focus Example</span>
708
734
  <span slot="fromLabel">Departure</span>
709
735
  <span slot="toLabel">Return</span>
710
736
  <span slot="mobileDateLabel">Choose a date</span>
@@ -744,6 +770,7 @@ Sets the label used for the input. When the `range` attribute is used this is th
744
770
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
745
771
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
746
772
  <auro-datepicker>
773
+ <span slot="mobileHeadline">Datepicker Headline</span>
747
774
  <span slot="fromLabel">Choose a date</span>
748
775
  <span slot="mobileDateLabel">Choose a date</span>
749
776
  </auro-datepicker>
@@ -756,6 +783,7 @@ Sets the label used for the input. When the `range` attribute is used this is th
756
783
 
757
784
  ```html
758
785
  <auro-datepicker>
786
+ <span slot="mobileHeadline">Datepicker Headline</span>
759
787
  <span slot="fromLabel">Choose a date</span>
760
788
  <span slot="mobileDateLabel">Choose a date</span>
761
789
  </auro-datepicker>
@@ -765,12 +793,13 @@ Sets the label used for the input. When the `range` attribute is used this is th
765
793
 
766
794
  #### helpText
767
795
 
768
- 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` property, the `helpText` slot can be used to describe the error.
796
+ 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.
769
797
 
770
798
  <div class="exampleWrapper">
771
799
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
772
800
  <!-- The below content is automatically added from ./../apiExamples/helpText.html -->
773
801
  <auro-datepicker>
802
+ <span slot="mobileHeadline">helpText Example</span>
774
803
  <span slot="fromLabel">Choose a date</span>
775
804
  <span slot="mobileDateLabel">Choose a date</span>
776
805
  <span slot="helpText">Choose a date must be today or earlier.</span>
@@ -784,6 +813,7 @@ Sets the help text displayed below the trigger. The `helpText` slot can be used
784
813
 
785
814
  ```html
786
815
  <auro-datepicker>
816
+ <span slot="mobileHeadline">helpText Example</span>
787
817
  <span slot="fromLabel">Choose a date</span>
788
818
  <span slot="mobileDateLabel">Choose a date</span>
789
819
  <span slot="helpText">Choose a date must be today or earlier.</span>
@@ -800,6 +830,7 @@ Sets the label used for the selected date display at the top of the bib when vie
800
830
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
801
831
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
802
832
  <auro-datepicker>
833
+ <span slot="mobileHeadline">Datepicker Headline</span>
803
834
  <span slot="fromLabel">Choose a date</span>
804
835
  <span slot="mobileDateLabel">Choose a date</span>
805
836
  </auro-datepicker>
@@ -812,6 +843,7 @@ Sets the label used for the selected date display at the top of the bib when vie
812
843
 
813
844
  ```html
814
845
  <auro-datepicker>
846
+ <span slot="mobileHeadline">Datepicker Headline</span>
815
847
  <span slot="fromLabel">Choose a date</span>
816
848
  <span slot="mobileDateLabel">Choose a date</span>
817
849
  </auro-datepicker>
@@ -827,6 +859,7 @@ Only for use with the `range` attribute. Sets the label for the second input.
827
859
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
828
860
  <!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
829
861
  <auro-datepicker range>
862
+ <span slot="mobileHeadline">Datepicker Range Headline</span>
830
863
  <span slot="fromLabel">Departure</span>
831
864
  <span slot="toLabel">Return</span>
832
865
  <span slot="mobileDateLabel">Roundtrip</span>
@@ -840,6 +873,7 @@ Only for use with the `range` attribute. Sets the label for the second input.
840
873
 
841
874
  ```html
842
875
  <auro-datepicker range>
876
+ <span slot="mobileHeadline">Datepicker Range Headline</span>
843
877
  <span slot="fromLabel">Departure</span>
844
878
  <span slot="toLabel">Return</span>
845
879
  <span slot="mobileDateLabel">Roundtrip</span>
@@ -862,6 +896,7 @@ Slot content can be styled using [inline styles](https://www.codecademy.com/arti
862
896
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dateSlot.html) -->
863
897
  <!-- The below content is automatically added from ./../apiExamples/dateSlot.html -->
864
898
  <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
899
+ <span slot="mobileHeadline">dateSlot Example</span>
865
900
  <span slot="fromLabel">Choose a date</span>
866
901
  <span slot="mobileDateLabel">Choose a date</span>
867
902
  <span slot="date_12_03_2023">Sold</span>
@@ -881,6 +916,7 @@ Slot content can be styled using [inline styles](https://www.codecademy.com/arti
881
916
 
882
917
  ```html
883
918
  <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
919
+ <span slot="mobileHeadline">dateSlot Example</span>
884
920
  <span slot="fromLabel">Choose a date</span>
885
921
  <span slot="mobileDateLabel">Choose a date</span>
886
922
  <span slot="date_12_03_2023">Sold</span>
@@ -905,6 +941,7 @@ The popover slot is intended for use with calendar dates that are `disabled` (e.
905
941
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/popoverSlot.html) -->
906
942
  <!-- The below content is automatically added from ./../apiExamples/popoverSlot.html -->
907
943
  <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
944
+ <span slot="mobileHeadline">Popover Slot Example</span>
908
945
  <span slot="fromLabel">Choose a date</span>
909
946
  <span slot="mobileDateLabel">Choose a date</span>
910
947
  <span slot="popover_12_03_2023">Tickets for this day are sold out</span>
@@ -924,6 +961,7 @@ The popover slot is intended for use with calendar dates that are `disabled` (e.
924
961
 
925
962
  ```html
926
963
  <auro-datepicker centralDate="12/03/2023" minDate="12/04/2023" maxDate="12/09/2023">
964
+ <span slot="mobileHeadline">Popover Slot Example</span>
927
965
  <span slot="fromLabel">Choose a date</span>
928
966
  <span slot="mobileDateLabel">Choose a date</span>
929
967
  <span slot="popover_12_03_2023">Tickets for this day are sold out</span>
@@ -938,7 +976,49 @@ The popover slot is intended for use with calendar dates that are `disabled` (e.
938
976
  <!-- AURO-GENERATED-CONTENT:END -->
939
977
  </auro-accordion>
940
978
 
941
- ## Functional Examples
979
+ ### Functional Examples
980
+
981
+ #### Localization
982
+
983
+ The datepicker supports localized month names through the `monthNames` property.
984
+
985
+ This example demonstrates how to set the `monthNames` property to Korean month names, with a Korean date format.
986
+
987
+ <div class="exampleWrapper">
988
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization.html) -->
989
+ <!-- The below content is automatically added from ./../apiExamples/localization.html -->
990
+ <auro-datepicker format="yyyy/mm/dd" id="localizationExample">
991
+ <span slot="mobileHeadline">Localization Headline</span>
992
+ <span slot="fromLabel">Choose a date</span>
993
+ <span slot="mobileDateLabel">Choose a date</span>
994
+ </auro-datepicker>
995
+ <!-- AURO-GENERATED-CONTENT:END -->
996
+ </div>
997
+ <auro-accordion alignRight>
998
+ <span slot="trigger">See code</span>
999
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/localization.html) -->
1000
+ <!-- The below code snippet is automatically added from ./../apiExamples/localization.html -->
1001
+
1002
+ ```html
1003
+ <auro-datepicker format="yyyy/mm/dd" id="localizationExample">
1004
+ <span slot="mobileHeadline">Localization Headline</span>
1005
+ <span slot="fromLabel">Choose a date</span>
1006
+ <span slot="mobileDateLabel">Choose a date</span>
1007
+ </auro-datepicker>
1008
+ ```
1009
+ <!-- AURO-GENERATED-CONTENT:END -->
1010
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/localization.js) -->
1011
+ <!-- The below code snippet is automatically added from ./../apiExamples/localization.js -->
1012
+
1013
+ ```js
1014
+ export function localizationExample() {
1015
+ const localizedDatepicker = document.querySelector("#localizationExample");
1016
+
1017
+ localizedDatepicker.monthNames = ['일월', '이월', '삼월', '사월', '오월', '유월', '칠월', '팔월', '구월', '시월', '십일월', '십이월'];
1018
+ }
1019
+ ```
1020
+ <!-- AURO-GENERATED-CONTENT:END -->
1021
+ </auro-accordion>
942
1022
 
943
1023
  #### Reset State
944
1024
 
@@ -948,6 +1028,7 @@ Use the `reset()` method to reset the `<auro-datepicker>`'s `value`, `valueEnd`
948
1028
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/resetState.html) -->
949
1029
  <!-- The below content is automatically added from ./../apiExamples/resetState.html -->
950
1030
  <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.">
1031
+ <span slot="mobileHeadline">Reset Example</span>
951
1032
  <span slot="fromLabel">Departure</span>
952
1033
  <span slot="toLabel">Return</span>
953
1034
  <span slot="mobileDateLabel">Choose a date</span>
@@ -962,6 +1043,7 @@ Use the `reset()` method to reset the `<auro-datepicker>`'s `value`, `valueEnd`
962
1043
 
963
1044
  ```html
964
1045
  <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.">
1046
+ <span slot="mobileHeadline">Reset Example</span>
965
1047
  <span slot="fromLabel">Departure</span>
966
1048
  <span slot="toLabel">Return</span>
967
1049
  <span slot="mobileDateLabel">Choose a date</span>
@@ -992,6 +1074,7 @@ This example demonstrates data driven slot content for days in the calendar. In
992
1074
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamicSlot.html) -->
993
1075
  <!-- The below content is automatically added from ./../apiExamples/dynamicSlot.html -->
994
1076
  <auro-datepicker id="slotContentExample" centralDate="12/13/2023" minDate="12/13/2023" maxDate="01/18/2024" range>
1077
+ <span slot="mobileHeadline">dynamic slot Example</span>
995
1078
  <span slot="fromLabel">Departure</span>
996
1079
  <span slot="toLabel">Return</span>
997
1080
  <span slot="mobileDateLabel">Choose a date</span>
@@ -1005,6 +1088,7 @@ This example demonstrates data driven slot content for days in the calendar. In
1005
1088
 
1006
1089
  ```html
1007
1090
  <auro-datepicker id="slotContentExample" centralDate="12/13/2023" minDate="12/13/2023" maxDate="01/18/2024" range>
1091
+ <span slot="mobileHeadline">dynamic slot Example</span>
1008
1092
  <span slot="fromLabel">Departure</span>
1009
1093
  <span slot="toLabel">Return</span>
1010
1094
  <span slot="mobileDateLabel">Choose a date</span>
@@ -1146,6 +1230,7 @@ The following example listens for the `auroDatePicker-valueSet` event. Once trig
1146
1230
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/alertValue.html) -->
1147
1231
  <!-- The below content is automatically added from ./../apiExamples/alertValue.html -->
1148
1232
  <auro-datepicker id="datePickerValueAlert">
1233
+ <span slot="mobileHeadline">Alert Value Example</span>
1149
1234
  <span slot="fromLabel">Choose a date</span>
1150
1235
  <span slot="mobileDateLabel">Choose a date</span>
1151
1236
  </auro-datepicker>
@@ -1158,6 +1243,7 @@ The following example listens for the `auroDatePicker-valueSet` event. Once trig
1158
1243
 
1159
1244
  ```html
1160
1245
  <auro-datepicker id="datePickerValueAlert">
1246
+ <span slot="mobileHeadline">Alert Value Example</span>
1161
1247
  <span slot="fromLabel">Choose a date</span>
1162
1248
  <span slot="mobileDateLabel">Choose a date</span>
1163
1249
  </auro-datepicker>
@@ -1189,6 +1275,7 @@ The component can be in a dialog.
1189
1275
  <div>
1190
1276
  <auro-button id="datepicker-dialog-opener">Datepicker in Dialog</auro-button>
1191
1277
  <auro-dialog id="datepicker-dialog">
1278
+ <span slot="mobileHeadline">inDialog Example</span>
1192
1279
  <span slot="header">Datepicker in Dialog</span>
1193
1280
  <div slot="content">
1194
1281
  <auro-datepicker />
@@ -1206,6 +1293,7 @@ The component can be in a dialog.
1206
1293
  <div>
1207
1294
  <auro-button id="datepicker-dialog-opener">Datepicker in Dialog</auro-button>
1208
1295
  <auro-dialog id="datepicker-dialog">
1296
+ <span slot="mobileHeadline">inDialog Example</span>
1209
1297
  <span slot="header">Datepicker in Dialog</span>
1210
1298
  <div slot="content">
1211
1299
  <auro-datepicker />
@@ -1243,8 +1331,6 @@ The component may be restyled using the following code sample and changing the v
1243
1331
  :host {
1244
1332
  --ds-auro-datepicker-placeholder-color: var(--ds-color-text-secondary-default, #{$ds-color-text-secondary-default});
1245
1333
  --ds-auro-datepicker-range-input-divider-color: var(--ds-color-border-primary-default, #{$ds-color-border-primary-default});
1246
- --ds-auro-calendar-mobile-footer-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
1247
- --ds-auro-calendar-mobile-header-boxshadow-color: var(--ds-elevation-200, #{$ds-elevation-200});
1248
1334
  --ds-auro-calendar-mobile-header-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
1249
1335
  --ds-auro-calendar-mobile-header-divider-color: var(--ds-color-border-divider-default, #{$ds-color-border-divider-default});
1250
1336
  --ds-auro-calendar-mobile-header-text-color: var(--ds-color-text-secondary-default, #{$ds-color-text-secondary-default});