@aurodesignsystem-dev/auro-formkit 0.0.0-pr1175.0 → 0.0.0-pr1183.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 (40) hide show
  1. package/components/checkbox/demo/api.min.js +66 -2
  2. package/components/checkbox/demo/index.min.js +66 -2
  3. package/components/checkbox/dist/index.js +66 -2
  4. package/components/checkbox/dist/registered.js +66 -2
  5. package/components/combobox/demo/api.md +230 -38
  6. package/components/combobox/demo/api.min.js +160 -11
  7. package/components/combobox/demo/index.md +104 -0
  8. package/components/combobox/demo/index.min.js +160 -11
  9. package/components/combobox/dist/auro-combobox.d.ts +18 -1
  10. package/components/combobox/dist/index.js +160 -11
  11. package/components/combobox/dist/registered.js +160 -11
  12. package/components/counter/demo/api.min.js +71 -7
  13. package/components/counter/demo/index.min.js +71 -7
  14. package/components/counter/dist/index.js +71 -7
  15. package/components/counter/dist/registered.js +71 -7
  16. package/components/datepicker/demo/api.md +37 -0
  17. package/components/datepicker/demo/api.min.js +175 -12
  18. package/components/datepicker/demo/index.min.js +175 -12
  19. package/components/datepicker/dist/auro-calendar-cell.d.ts +6 -0
  20. package/components/datepicker/dist/auro-datepicker.d.ts +8 -0
  21. package/components/datepicker/dist/index.js +175 -12
  22. package/components/datepicker/dist/registered.js +175 -12
  23. package/components/dropdown/demo/api.min.js +2 -2
  24. package/components/dropdown/demo/index.min.js +2 -2
  25. package/components/dropdown/dist/index.js +2 -2
  26. package/components/dropdown/dist/registered.js +2 -2
  27. package/components/input/demo/api.min.js +69 -5
  28. package/components/input/demo/index.min.js +69 -5
  29. package/components/input/dist/index.js +69 -5
  30. package/components/input/dist/registered.js +69 -5
  31. package/components/radio/demo/api.min.js +98 -6
  32. package/components/radio/demo/index.min.js +98 -6
  33. package/components/radio/dist/auro-radio-group.d.ts +14 -0
  34. package/components/radio/dist/index.js +98 -6
  35. package/components/radio/dist/registered.js +98 -6
  36. package/components/select/demo/api.min.js +68 -4
  37. package/components/select/demo/index.min.js +68 -4
  38. package/components/select/dist/index.js +68 -4
  39. package/components/select/dist/registered.js +68 -4
  40. package/package.json +1 -1
@@ -34,6 +34,7 @@
34
34
  | [placeholderEndDate](#placeholderEndDate) | `placeholderEndDate` | | `string` | | Optional placeholder text to display in the second input when using date range.<br />By default, datepicker will use `placeholder` for both inputs if placeholder is<br />specified, but placeholderendDate is not. |
35
35
  | [placement](#placement) | `placement` | | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
36
36
  | [range](#range) | `range` | | `boolean` | false | If set, turns on date range functionality in auro-calendar. |
37
+ | [referenceDates](#referenceDates) | `referenceDates` | | `array` | | Dates that the user should have for reference as part of their decision making when selecting a date.<br />This should be a JSON string array of dates in the format of `MM-DD-YYYY`. |
37
38
  | [required](#required) | `required` | | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
38
39
  | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | | `string` | | Sets a custom help text message to display for all validityStates. |
39
40
  | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | | `string` | | Custom help text message to display when validity = `customError`. |
@@ -246,6 +247,42 @@ export function errorExample() {
246
247
  <!-- AURO-GENERATED-CONTENT:END -->
247
248
  </auro-accordion>
248
249
 
250
+ #### Reference Dates
251
+
252
+ 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.
253
+
254
+ Example:
255
+ ```html
256
+ <auro-datepicker referenceDates='["10-05-2025", "10-15-2025", "10-20-2025", "10-22-2025"]'></auro-datepicker>
257
+ ```
258
+
259
+ <div class="exampleWrapper">
260
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/referenceDates.html) -->
261
+ <!-- The below content is automatically added from ./../apiExamples/referenceDates.html -->
262
+ <auro-datepicker referenceDates='["10-05-2025", "10-15-2025", "10-20-2025", "10-22-2025"]' minDate="10-12-2025">
263
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
264
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
265
+ <span slot="fromLabel">Choose a date</span>
266
+ <span slot="bib.fullscreen.dateLabel">Choose a date</span>
267
+ </auro-datepicker>
268
+ <!-- AURO-GENERATED-CONTENT:END -->
269
+ </div>
270
+ <auro-accordion alignRight>
271
+ <span slot="trigger">See code</span>
272
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/referenceDates.html) -->
273
+ <!-- The below code snippet is automatically added from ./../apiExamples/referenceDates.html -->
274
+
275
+ ```html
276
+ <auro-datepicker referenceDates='["10-05-2025", "10-15-2025", "10-20-2025", "10-22-2025"]' minDate="10-12-2025">
277
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
278
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
279
+ <span slot="fromLabel">Choose a date</span>
280
+ <span slot="bib.fullscreen.dateLabel">Choose a date</span>
281
+ </auro-datepicker>
282
+ ```
283
+ <!-- AURO-GENERATED-CONTENT:END -->
284
+ </auro-accordion>
285
+
249
286
  #### Input Mode
250
287
 
251
288
  You can manually set the input mode for the input.