@nysds/nys-datepicker 1.22.3 → 1.23.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.
package/dist/nys-datepicker.d.ts
CHANGED
|
@@ -35,19 +35,17 @@ export type NysDatepickerChangeEvent = CustomEvent<NysDatepickerChangeDetail>;
|
|
|
35
35
|
* @fires {Event} nys-focus - Fired when focus enters the component from outside.
|
|
36
36
|
* @fires {Event} nys-blur - Fired when input or calendar loses focus. Triggers validation.
|
|
37
37
|
*
|
|
38
|
-
* @
|
|
38
|
+
* @usage
|
|
39
39
|
* - Use when users need to select a single calendar date, such as scheduling an appointment or choosing a filing deadline, especially when the day of the week matters.
|
|
40
40
|
* - Set the `label` property to clearly describe what date is being collected. Every datepicker needs one for accessibility.
|
|
41
41
|
* - Add `description` text to specify the expected format or provide context.
|
|
42
42
|
* - Set `required` when the date is mandatory for form submission; don't set both `required` and `optional` on the same component.
|
|
43
43
|
* - Use `startDate` to open the calendar to a relevant month when the expected date is far from today.
|
|
44
44
|
* - Pass date values as ISO strings (`"YYYY-MM-DD"`) rather than `Date` objects to avoid timezone issues.
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* -
|
|
48
|
-
* -
|
|
49
|
-
* - Rely on the calendar popup alone. Safari and mobile browsers use the native date picker instead.
|
|
50
|
-
* - Use `hideTodayButton` and `hideClearButton` together unless users must select a specific date and cannot be allowed to clear it.
|
|
45
|
+
* - Don't use for dates users know from memory, such as date of birth or document issue dates. A text input with separate month/day/year fields is more efficient.
|
|
46
|
+
* - Don't use when users need to select multiple dates or a date range, or when time selection is required alongside the date.
|
|
47
|
+
* - Don't rely on the calendar popup alone. Safari and mobile browsers use the native date picker instead.
|
|
48
|
+
* - Don't use `hideTodayButton` and `hideClearButton` together unless users must select a specific date and cannot be allowed to clear it.
|
|
51
49
|
*
|
|
52
50
|
* @example Basic
|
|
53
51
|
* ```html
|
package/dist/nys-datepicker.js
CHANGED
|
@@ -10,13 +10,13 @@ import "@nysds/nys-button";
|
|
|
10
10
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
11
11
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
12
12
|
*
|
|
13
|
-
* Datepicker Component v1.
|
|
13
|
+
* Datepicker Component v1.23.1
|
|
14
14
|
* Part of the New York State Design System
|
|
15
15
|
* Repository: https://github.com/its-hcd/nysds
|
|
16
16
|
* License: MIT
|
|
17
17
|
*/
|
|
18
18
|
/*!
|
|
19
|
-
* New York State Design System v1.
|
|
19
|
+
* New York State Design System v1.23.1
|
|
20
20
|
* Description: A design system for New York State's digital products.
|
|
21
21
|
* Repository: https://github.com/its-hcd/nysds
|
|
22
22
|
* License: MIT
|