@nysds/components 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.
Files changed (50) hide show
  1. package/custom-elements.json +487 -314
  2. package/dist/.vscode/vscode.html-custom-data.json +16 -3
  3. package/dist/custom-elements.json +487 -314
  4. package/dist/{nys-icon.library-B8CxRzL5.js → nys-icon.library-BoTLZp1N.js} +2 -2
  5. package/dist/{nys-icon.library-B8CxRzL5.js.map → nys-icon.library-BoTLZp1N.js.map} +1 -1
  6. package/dist/{nys-icon.library--ld1i3y_-C6XI8cpR.js → nys-icon.library-CzPN4H8R-DCkPqUYP.js} +3 -3
  7. package/dist/{nys-icon.library--ld1i3y_-C6XI8cpR.js.map → nys-icon.library-CzPN4H8R-DCkPqUYP.js.map} +1 -1
  8. package/dist/nysds.es.js +2145 -1893
  9. package/dist/nysds.es.js.map +1 -1
  10. package/dist/nysds.js +275 -253
  11. package/dist/nysds.js.map +1 -1
  12. package/dist/packages/nys-accordion/src/nys-accordion.d.ts +7 -9
  13. package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +1 -1
  14. package/dist/packages/nys-alert/src/nys-alert.d.ts +10 -12
  15. package/dist/packages/nys-avatar/src/nys-avatar.d.ts +6 -8
  16. package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +3 -5
  17. package/dist/packages/nys-badge/src/nys-badge.d.ts +12 -16
  18. package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.d.ts +6 -8
  19. package/dist/packages/nys-button/src/nys-button.d.ts +4 -6
  20. package/dist/packages/nys-card/src/nys-card.d.ts +9 -11
  21. package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +4 -7
  22. package/dist/packages/nys-combobox/src/nys-combobox.d.ts +3 -5
  23. package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +5 -7
  24. package/dist/packages/nys-divider/src/nys-divider.d.ts +4 -6
  25. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +6 -8
  26. package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +6 -8
  27. package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +5 -7
  28. package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +5 -7
  29. package/dist/packages/nys-icon/src/nys-icon.d.ts +8 -10
  30. package/dist/packages/nys-iconlist/src/nys-iconlist.d.ts +5 -7
  31. package/dist/packages/nys-modal/src/nys-modal.d.ts +5 -7
  32. package/dist/packages/nys-pagination/src/nys-pagination.d.ts +4 -6
  33. package/dist/packages/nys-processlist/src/nys-processlist.d.ts +5 -7
  34. package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +4 -6
  35. package/dist/packages/nys-select/src/nys-select.d.ts +4 -6
  36. package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +3 -5
  37. package/dist/packages/nys-stepper/src/nys-stepper.d.ts +3 -5
  38. package/dist/packages/nys-tab/src/nys-tabgroup.d.ts +6 -8
  39. package/dist/packages/nys-table/src/nys-table.d.ts +5 -7
  40. package/dist/packages/nys-textarea/src/nys-textarea.d.ts +3 -5
  41. package/dist/packages/nys-textinput/src/nys-textinput.d.ts +19 -7
  42. package/dist/packages/nys-toggle/src/nys-toggle.d.ts +6 -8
  43. package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +6 -8
  44. package/dist/packages/nys-unavbundle/src/index.d.ts +34 -0
  45. package/dist/packages/nys-unavbundle/src/tokens.d.ts +10 -0
  46. package/dist/packages/nys-unavfooter/src/nys-unavfooter.d.ts +56 -5
  47. package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +63 -10
  48. package/dist/packages/nys-verticalnav/src/nys-verticalnav.d.ts +7 -8
  49. package/dist/packages/nys-video/src/nys-video.d.ts +4 -6
  50. package/package.json +13 -2
@@ -18,17 +18,15 @@ import "./nys-accordionitem";
18
18
  * @cssprop [--nys-accordion-background-color--header--hover] - Background hover color of the accordion header.
19
19
  * @cssprop [--nys-accordion-content-max-width] - Maximum readable width of accordion content. Defaults to a character-based width (80ch) for readability.
20
20
  *
21
- * @usagedos
21
+ * @usage
22
22
  * - Use accordions for FAQs on state services like DMV procedures or benefits information.
23
23
  * - Break up long program descriptions or supplemental details (such as optional steps, extra instructions, or secondary eligibility notes) into manageable sections without overwhelming the reader.
24
24
  * - Label headings clearly so users understand the content before expanding.
25
25
  * - Consider accordions in mobile layouts to keep pages compact while still allowing access to full details.
26
- *
27
- * @usagedonts
28
- * - Hide time-sensitive deadlines, required steps, or critical eligibility criteria in a collapsed section. Keep essential information visible by default.
29
- * - Use vague or unclear headings that make it hard to know what is inside.
30
- * - Overuse accordions for content that is short enough to display fully on the page.
31
- * - Use an accordion when users need to compare details from multiple sections at once. Consider a table or side-by-side layout instead.
26
+ * - Don't hide time-sensitive deadlines, required steps, or critical eligibility criteria in a collapsed section. Keep essential information visible by default.
27
+ * - Don't use vague or unclear headings that make it hard to know what is inside.
28
+ * - Don't overuse accordions for content that is short enough to display fully on the page.
29
+ * - Don't use an accordion when users need to compare details from multiple sections at once. Consider a table or side-by-side layout instead.
32
30
  *
33
31
  * @example Basic
34
32
  * ```html
@@ -52,7 +50,7 @@ import "./nys-accordionitem";
52
50
  * @example Single Select
53
51
  * ```html
54
52
  * <nys-accordion singleSelect>
55
- * <nys-accordionitem heading="FAQ 1">Answer 1</nys-accordionitem>
53
+ * <nys-accordionitem heading="FAQ 1" expanded>Answer 1</nys-accordionitem>
56
54
  * <nys-accordionitem heading="FAQ 2">Answer 2</nys-accordionitem>
57
55
  * </nys-accordion>
58
56
  * ```
@@ -61,7 +59,7 @@ import "./nys-accordionitem";
61
59
  * ```html
62
60
  *
63
61
  * <nys-accordion bordered>
64
- * <nys-accordionitem heading="We are a group of accordions">
62
+ * <nys-accordionitem heading="We are a group of accordions" expanded>
65
63
  * <p>Stronger together! Learn more at
66
64
  * <a href="https://www.ny.gov" target="_blank">ny.gov</a>
67
65
  * </p>
@@ -29,7 +29,7 @@ export type NysAccordionitemToggleEvent = CustomEvent<NysAccordionitemToggleDeta
29
29
  *
30
30
  * @example Expanded item
31
31
  * ```html
32
- * <nys-accordion>
32
+ * <nys-accordion bordered>
33
33
  * <nys-accordionitem heading="How do I apply?" expanded>
34
34
  * <p>Visit ny.gov and complete the online application.</p>
35
35
  * </nys-accordionitem>
@@ -29,7 +29,7 @@ export type NysAlertCloseEvent = CustomEvent<NysAlertCloseDetail>;
29
29
  *
30
30
  * @fires {NysAlertCloseEvent} nys-close - Fired when alert is dismissed. Detail: `{id, type, label}`.
31
31
  *
32
- * @usagedos
32
+ * @usage
33
33
  * - Communicate important, time-sensitive information to users in a visually prominent way.
34
34
  * - Use for messages such as success notifications, danger alerts, warnings, or informational updates.
35
35
  * - Use for dismissible or temporary alerts when the message is not critical to user workflow.
@@ -40,17 +40,15 @@ export type NysAlertCloseEvent = CustomEvent<NysAlertCloseDetail>;
40
40
  * - Use success type to confirm a positive system status to users such as saving a form.
41
41
  * - Use danger type to display system status error messages.
42
42
  * - Only use emergency for real emergencies (e.g., missing person, severe weather). Remember to swap icon if a more relevant one exists.
43
- *
44
- * @usagedonts
45
- * - Use alerts for information that is not time-sensitive or critical; consider using an inline message instead.
46
- * - Use alerts for repetitive or non-actionable content that could frustrate users.
47
- * - Remove the left icon, it is required for accessibility.
48
- * - Use alerts to highlight actions that should be clear in the UI itself.
49
- * - Use error messages to communicate form field validation issues; use field error states instead.
50
- * - Include more than two link actions in an alert.
51
- * - Overuse alerts for low-priority info. This can desensitize users.
52
- * - Use alerts as toasts. Place them at the top of the page content.
53
- * - Add any shadows to alerts.
43
+ * - Don't use alerts for information that is not time-sensitive or critical; consider using an inline message instead.
44
+ * - Don't use alerts for repetitive or non-actionable content that could frustrate users.
45
+ * - Don't remove the left icon, it is required for accessibility.
46
+ * - Don't use alerts to highlight actions that should be clear in the UI itself.
47
+ * - Don't use error messages to communicate form field validation issues; use field error states instead.
48
+ * - Don't include more than two link actions in an alert.
49
+ * - Don't overuse alerts for low-priority info. This can desensitize users.
50
+ * - Don't use alerts as toasts. Place them at the top of the page content.
51
+ * - Don't add any shadows to alerts.
54
52
  *
55
53
  * @example Basic
56
54
  * ```html
@@ -18,19 +18,17 @@ import "@nysds/nys-icon";
18
18
  *
19
19
  * @slot - Custom icon content. Overrides default icon when no image or initials.
20
20
  *
21
- * @usagedos
21
+ * @usage
22
22
  * - Use for clear, simple user or entity representation in UIs such as profiles, account settings, or comment threads.
23
23
  * - Prefer showing the full name next to the avatar on tablets and larger breakpoints.
24
24
  * - Place the full name of the user or entity to the right of the avatar.
25
25
  * - Ensure the text of initial avatars meets WCAG 2.1 contrast ratio against the avatar's background.
26
26
  * - Use the `<nys-icon>` slot only when the icon prop isn't sufficient.
27
- *
28
- * @usagedonts
29
- * - Skip the `ariaLabel` attribute for screen reader users.
30
- * - Use the `<nys-icon>` as a slot when the icon prop can satisfy your use.
31
- * - Overload the avatar with unnecessary customizations or override default avatar icons unless additional context is essential. Doing so creates inconsistency across NYS interfaces.
32
- * - Use an avatar when a large visual representation is needed; use a photo instead.
33
- * - Replace an avatar with a simple label or text when that would communicate the information more clearly.
27
+ * - Don't skip the `ariaLabel` attribute for screen reader users.
28
+ * - Don't use the `<nys-icon>` as a slot when the icon prop can satisfy your use.
29
+ * - Don't overload the avatar with unnecessary customizations or override default avatar icons unless additional context is essential. Doing so creates inconsistency across NYS interfaces.
30
+ * - Don't use an avatar when a large visual representation is needed; use a photo instead.
31
+ * - Don't replace an avatar with a simple label or text when that would communicate the information more clearly.
34
32
  *
35
33
  * @example Basic
36
34
  * ```html
@@ -17,13 +17,11 @@ import "@nysds/nys-button";
17
17
  * @summary Floating back-to-top button with auto-show behavior, smooth scroll, and focus management.
18
18
  * @element nys-backtotop
19
19
  *
20
- * @usagedos
20
+ * @usage
21
21
  * - Place exactly one `<nys-backtotop>` per page, above the `<nys-globalfooter>` in your markup.
22
22
  * - Use on long-form content pages such as state policy documents, agency service directories, program eligibility guides, extensive search results, or data tables.
23
23
  * - Set `position="left"` when the bottom-right corner is occupied by another floating element, such as a chatbot button.
24
24
  * - Let the component manage its own visibility. The auto-show behavior activates after 1.5 viewport heights on pages that are at least 4 screens tall.
25
- *
26
- * @usagedonts
27
25
  * - Don't add multiple `<nys-backtotop>` components to a single page.
28
26
  * - Don't use on pages where content fits within a single viewport without scrolling.
29
27
  * - Don't use if your page already has anchor-based in-page navigation such as a table of contents. A back-to-top button is likely redundant.
@@ -49,7 +47,7 @@ import "@nysds/nys-button";
49
47
  * font-size: var(--nys-font-size-sm);
50
48
  * }
51
49
  * </style>
52
- * <nys-unavheader hideTranslate hideSearch></nys-unavheader>
50
+ * <nys-unavheader translateKey="MY_TRANSLATE_KEY"></nys-unavheader>
53
51
  * <nys-globalheader appName="Back to Top Example"></nys-globalheader>
54
52
  * <main style="padding: 0 2rem">
55
53
  * <h1>Sample Content on page</h1>
@@ -91,7 +89,7 @@ import "@nysds/nys-button";
91
89
  * --_nys-button-border-radius: var(--nys-radius-round);
92
90
  * }
93
91
  * </style>
94
- * <nys-unavheader hideTranslate hideSearch></nys-unavheader>
92
+ * <nys-unavheader translateKey="MY_TRANSLATE_KEY"></nys-unavheader>
95
93
  * <nys-globalheader appName="Back to Top Example"></nys-globalheader>
96
94
  * <main style="padding: 0 2rem">
97
95
  * <h1>Sample Content on page</h1>
@@ -10,7 +10,7 @@ import "@nysds/nys-icon";
10
10
  * @summary Compact label for status, counts, or categorization with semantic styling.
11
11
  * @element nys-badge
12
12
  *
13
- * @usagedos
13
+ * @usage
14
14
  * - Indicate the status of an item, such as "new", "updated", or "beta".
15
15
  * - Provide additional context or information about an item without cluttering the interface.
16
16
  * - Keep badge labels short -- one or two words like "New", "Beta", or "Updated".
@@ -18,15 +18,13 @@ import "@nysds/nys-icon";
18
18
  * - Place badges near the element they describe so the relationship is clear.
19
19
  * - Use the `prefixIcon` or `suffixIcon` attributes to reinforce meaning when the label alone may be ambiguous.
20
20
  * - Apply the `strong` variant when the badge appears on a raised surface or needs extra emphasis.
21
- *
22
- * @usagedonts
23
- * - Use badges when the information is too complex to be conveyed in a small badge.
24
- * - Use badges when they would not add significant value to the user experience.
25
- * - Use badges as interactive elements -- they are not buttons or links.
26
- * - Pack long sentences or multiple values into a single badge label.
27
- * - Mix badge sizes within the same group; pick either `md` or `sm` and stay consistent.
28
- * - Rely on color alone to convey meaning; always include a text label.
29
- * - Stack multiple badges on a single element unless each communicates a distinct, necessary status.
21
+ * - Don't use badges when the information is too complex to be conveyed in a small badge.
22
+ * - Don't use badges when they would not add significant value to the user experience.
23
+ * - Don't use badges as interactive elements -- they are not buttons or links.
24
+ * - Don't pack long sentences or multiple values into a single badge label.
25
+ * - Don't mix badge sizes within the same group; pick either `md` or `sm` and stay consistent.
26
+ * - Don't rely on color alone to convey meaning; always include a text label.
27
+ * - Don't stack multiple badges on a single element unless each communicates a distinct, necessary status.
30
28
  *
31
29
  * @example Basic
32
30
  * ```html
@@ -127,12 +125,10 @@ export declare class NysBadge extends NysElement {
127
125
  srText: string;
128
126
  /** Strong visual intent with bolder text and background. */
129
127
  strong: boolean;
130
- private _prefixIcon;
131
- get prefixIcon(): string | boolean;
132
- set prefixIcon(value: string | boolean);
133
- private _suffixIcon;
134
- get suffixIcon(): string | boolean;
135
- set suffixIcon(value: string | boolean);
128
+ /** Icon shown before the label. */
129
+ prefixIcon: string | boolean | null;
130
+ /** Icon shown after the label. */
131
+ suffixIcon: string | boolean | null;
136
132
  /**
137
133
  * Lifecycle methods
138
134
  * --------------------------------------------------------------------------
@@ -21,18 +21,16 @@ export type NysBreadcrumbsExpandEvent = CustomEvent<NysBreadcrumbsExpandDetail>;
21
21
  *
22
22
  * @fires {NysBreadcrumbsExpandEvent} nys-expand - Fired when the user clicks the ellipsis to expand the trail. Detail: `{id}`.
23
23
  *
24
- * @usagedos
24
+ * @usage
25
25
  * - Use on pages at level 2 and deeper in a site hierarchy. If a level 2 page has child pages, all pages starting at that level should include a breadcrumb.
26
26
  * - Place breadcrumb below the header and above the main content.
27
27
  * - Show the site hierarchy, not the path a user took.
28
28
  * - For the home page of a site, use a specific label rather than a generic "Home." This differentiates the main site home from other landing pages (e.g., "myBenefits Home" instead of just "Home").
29
- *
30
- * @usagedonts
31
- * - Use on top-level pages, or on sites with only one or two levels of hierarchy.
32
- * - Make the current page clickable.
33
- * - Use breadcrumbs as the only navigation method.
34
- * - Use breadcrumbs for sequential processes like multi-step forms or wizards. Use a stepper instead.
35
- * - Add breadcrumbs when they don't provide meaningful context or navigation value.
29
+ * - Don't use on top-level pages, or on sites with only one or two levels of hierarchy.
30
+ * - Don't make the current page clickable.
31
+ * - Don't use breadcrumbs as the only navigation method.
32
+ * - Don't use breadcrumbs for sequential processes like multi-step forms or wizards. Use a stepper instead.
33
+ * - Don't add breadcrumbs when they don't provide meaningful context or navigation value.
36
34
  *
37
35
  * @example Basic
38
36
  * ```html
@@ -32,7 +32,7 @@ import "@nysds/nys-icon";
32
32
  * @fires {Event} nys-focus - Fired when the button receives focus.
33
33
  * @fires {Event} nys-blur - Fired when the button loses focus.
34
34
  *
35
- * @usagedos
35
+ * @usage
36
36
  * - Use for the most important actions you want users to take, such as "Download", "Sign up", or "Log out".
37
37
  * - Use `variant="fill"` for the primary action on the page. There should be only one primary action per page.
38
38
  * - Use `variant="outline"` for secondary actions, placed next to the primary Fill button.
@@ -41,11 +41,9 @@ import "@nysds/nys-icon";
41
41
  * - Always set the `type` attribute (`submit`, `button`, or `reset`). The default is `button`.
42
42
  * - Use sentence case for button labels, only capitalizing the first word.
43
43
  * - Place a `chevron_down icon` on the right for buttons that open a dropdown.
44
- *
45
- * @usagedonts
46
- * - Use buttons for navigation. Use an `<a>` element or Text button for links that take users somewhere else.
47
- * - Use icons in buttons without a text label. Very few icons are universally understood.
48
- * - Create custom button styles (color, shape, size). Consistency helps users recognize buttons and predict behavior.
44
+ * - Don't use buttons for navigation. Use an `<a>` element or Text button for links that take users somewhere else.
45
+ * - Don't use icons in buttons without a text label. Very few icons are universally understood.
46
+ * - Don't create custom button styles (color, shape, size). Consistency helps users recognize buttons and predict behavior.
49
47
  *
50
48
  * @example Basic
51
49
  * ```html
@@ -35,7 +35,7 @@ type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
35
35
  * @fires nys-focus - Fired when an interactive card receives focus.
36
36
  * @fires nys-blur - Fired when an interactive card loses focus.
37
37
  *
38
- * @usagedos
38
+ * @usage
39
39
  * - Use a card to group content and actions about a single subject, such as one program, event, or news item.
40
40
  * - Set `headingLevel` so the card heading fits the surrounding page hierarchy.
41
41
  * - Keep headings short and specific, so a card is understandable on its own.
@@ -44,16 +44,14 @@ type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
44
44
  * - Keep cards in the same group consistent in structure, so they are easy to scan and compare.
45
45
  * - Repeat any information shown in the `media` or the `media-accent` slot in the card's text.
46
46
  * - Place each card in a grid column to control its width, and set `--nys-card-height: 100%` when a row of cards should share one height.
47
- *
48
- * @usagedonts
49
- * - Use a card as a substitute for a page section heading or for content that belongs in the page flow.
50
- * - Put buttons, links, or other interactive elements in the slots of a card that has `href` or a click handler. That card is already a single control.
51
- * - Set both `href` and a click handler on the same card.
52
- * - Put more than one primary action in a card.
53
- * - Rely on the `media` image or the `media-accent` slot to convey information that appears nowhere else.
54
- * - Mix `elevated` and non-elevated cards within the same group.
55
- * - Skip heading levels to get a particular text size. Use `headingLevel` for structure, not for styling.
56
- * - Use cards for long-form content that a user needs to read in order.
47
+ * - Don't use a card as a substitute for a page section heading or for content that belongs in the page flow.
48
+ * - Don't put buttons, links, or other interactive elements in the slots of a card that has `href` or a click handler. That card is already a single control.
49
+ * - Don't set both `href` and a click handler on the same card.
50
+ * - Don't put more than one primary action in a card.
51
+ * - Don't rely on the `media` image or the `media-accent` slot to convey information that appears nowhere else.
52
+ * - Don't mix `elevated` and non-elevated cards within the same group.
53
+ * - Don't skip heading levels to get a particular text size. Use `headingLevel` for structure, not for styling.
54
+ * - Don't use cards for long-form content that a user needs to read in order.
57
55
  *
58
56
  * @example Basic
59
57
  * ```html
@@ -69,16 +69,13 @@ export type NysCheckboxErrorClearEvent = CustomEvent<NysCheckboxErrorClearDetail
69
69
  * @fires {NysCheckboxErrorEvent} nys-error - Internal group coordination: reports an empty "other" field to the parent `nys-checkboxgroup`. Not part of the public API.
70
70
  * @fires {NysCheckboxErrorClearEvent} nys-error-clear - Internal group coordination: clears a previously reported "other" field error. Not part of the public API.
71
71
  *
72
- * @usagedos
72
+ * @usage
73
73
  * - Use for binary decisions (agree/disagree), confirmation, or multi-select lists.
74
74
  * - Use for selecting multiple options from a list of up to 10 choices.
75
75
  * - Use `nys-checkboxgroup` to group checkboxes with a shared label and description.
76
- *
77
- * @usagedonts
78
- * - Use when users need to select only one option. Use a `<nys-radiobutton>` for 1–6 choices or a <nys-select> for 7 or more.
79
- * - Use a checkbox when changing its state immediately affects the system. Use a `<nys-toggle>` instead (e.g., enabling Dark Mode).
80
- * - Use when you have more than 10 options to choose from.
81
- * - Change the state of one checkbox based on another being clicked.
76
+ * - Don't use when users need to select only one option. Use a `<nys-radiobutton>` for 1–6 choices or a <nys-select> for 7 or more.
77
+ * - Don't use when you have more than 10 options to choose from.
78
+ * - Don't change the state of one checkbox based on another being clicked.
82
79
  *
83
80
  * @example Single
84
81
  * ```html
@@ -45,14 +45,12 @@ export type NysComboboxChangeEvent = CustomEvent<NysComboboxChangeDetail>;
45
45
  * @fires {Event} nys-focus - Fired when the combobox gains focus.
46
46
  * @fires {Event} nys-blur - Fired when the combobox loses focus. Triggers validation.
47
47
  *
48
- * @usagedos
48
+ * @usage
49
49
  * - Use when there are more than 15 options to choose from.
50
50
  * - Use when screen real estate is limited.
51
51
  * - Use when users can predict or recognize the value they're looking for.
52
- *
53
- * @usagedonts
54
- * - Use when the number of options is small. Use `<nys-select>` or `<nys-radiobutton>` instead.
55
- * - Use when options are unfamiliar to users and browsing the full list is necessary.
52
+ * - Don't use when the number of options is small. Use `<nys-select>` or `<nys-radiobutton>` instead.
53
+ * - Don't use when options are unfamiliar to users and browsing the full list is necessary.
56
54
  *
57
55
  * @example Basic
58
56
  * ```html
@@ -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
- * @usagedos
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
- * @usagedonts
47
- * - 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.
48
- * - Use when users need to select multiple dates or a date range, or when time selection is required alongside the date.
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
@@ -8,14 +8,12 @@ import { NysReflectsAriaElement } from "@nysds/internals";
8
8
  * @summary Horizontal divider for visual separation of content sections.
9
9
  * @element nys-divider
10
10
  *
11
- * @usagedos
11
+ * @usage
12
12
  * - Ensure consistent padding/margin above and below dividers to avoid crowding.
13
13
  * - Use the `inverted` option on dark backgrounds.
14
- *
15
- * @usagedonts
16
- * - Overuse dividers and clutter the interface, reducing scannability.
17
- * - Use the divider to separate content appearing side bys side.
18
- * - Use the `inverted` option on light backgrounds.
14
+ * - Don't overuse dividers and clutter the interface, reducing scannability.
15
+ * - Don't use the divider to separate content appearing side by side.
16
+ * - Don't use the `inverted` option on light backgrounds.
19
17
  *
20
18
  * @example Basic
21
19
  * ```html
@@ -8,19 +8,17 @@ type Position = "bottom-start" | "bottom-end" | "top-start" | "top-end";
8
8
  * @summary Action menu with auto-positioning, keyboard support, and screen reader integration.
9
9
  * @element nys-dropdownmenu
10
10
  *
11
- * @usagedos
11
+ * @usage
12
12
  * - Use to display a list of 5–15 actions or links under a single trigger, such as navigation, commands, or user profile access.
13
13
  * - Keep to 3–7 actions when possible.
14
14
  * - Order actions by frequency or importance.
15
15
  * - Separate destructive actions with a divider.
16
16
  * - Use clear, specific labels (e.g., "Profile", "Account Settings", "Sign out").
17
- *
18
- * @usagedonts
19
- * - Use for form inputs or selectable values. Use `<nys-select>` for standard selection or `<nys-combobox>` when users need to filter or search through many options.
20
- * - Use when the action is always visible and frequently used. Use `<nys-button>` instead.
21
- * - Use without a label or accessible description on the trigger.
22
- * - Nest dropdown menus inside other dropdown menus.
23
- * - Use vague labels like "Manage" or "Options".
17
+ * - Don't use for form inputs or selectable values. Use `<nys-select>` for standard selection or `<nys-combobox>` when users need to filter or search through many options.
18
+ * - Don't use when the action is always visible and frequently used. Use `<nys-button>` instead.
19
+ * - Don't use without a label or accessible description on the trigger.
20
+ * - Don't nest dropdown menus inside other dropdown menus.
21
+ * - Don't use vague labels like "Manage" or "Options".
24
22
  *
25
23
  * @example Basic
26
24
  * ```html
@@ -48,15 +48,13 @@ export type NysFileinputChangeEvent = CustomEvent<NysFileinputChangeDetail>;
48
48
  * @fires {Event} nys-focus Fired when focus enters the component from outside.
49
49
  * @fires {Event} nys-blur Fired when focus leaves the component. Triggers validation.
50
50
  *
51
- * @usagedos
51
+ * @usage
52
52
  * - Use when a form requires file upload, including when multiple file selection or drag-and-drop is needed.
53
- *
54
- * @usagedonts
55
- * - Use when uploading large files that require resumable upload logic.
56
- * - Use when selecting only from camera input or other device-native features.
57
- * - Use when uploading sensitive data without encryption.
58
- * - Use when file preview of uploaded content is needed.
59
- * - Use when file upload is not necessary for the task.
53
+ * - Don't use when uploading large files that require resumable upload logic.
54
+ * - Don't use when selecting only from camera input or other device-native features.
55
+ * - Don't use when uploading sensitive data without encryption.
56
+ * - Don't use when file preview of uploaded content is needed.
57
+ * - Don't use when file upload is not necessary for the task.
60
58
  *
61
59
  * @example Basic
62
60
  * ```html
@@ -13,7 +13,7 @@ import "@nysds/nys-divider";
13
13
  *
14
14
  * @cssprop [--nys-max-width--content] - Overrides the inner content max width across the grid, header, footer, and breadcrumb. Set at a higher level like `:root` to apply to all instances. Takes priority over the size-specific variable.
15
15
  *
16
- * @usagedos
16
+ * @usage
17
17
  * - Use on every agency site and application. The Global Footer is a required page element.
18
18
  * - Use to surface essential site-wide links such as contact information, privacy policies, accessibility statements, and related program pages.
19
19
  * - Set `agencyName` to your agency's full official name (e.g., "Office of Information Technology Services").
@@ -21,12 +21,10 @@ import "@nysds/nys-divider";
21
21
  * - Keep footer link lists concise. Group related links under `<span>` headings when you have more than 5–6 links.
22
22
  * - Use slotted `<ul>` content for single-list links, or nested `<ul>` with `<span>` headings for multi-column layouts.
23
23
  * - Place `<nys-globalfooter>` above `<nys-unavfooter>` and below your page content and `<nys-backtotop>`.
24
- *
25
- * @usagedonts
26
- * - Use for primary navigation. That belongs in `<nys-globalheader>`.
27
- * - Include page-specific content or calls to action. Footer content should be relevant site-wide.
28
- * - Use for statewide universal links (Agencies, Services, Counties). Those belong in `<nys-unavfooter>`, which renders below this component.
29
- * - Embed `<script>`, `<iframe>`, `<object>`, or `<img>` elements in slotted content. These are sanitized and removed by the component for security.
24
+ * - Don't use for primary navigation. That belongs in `<nys-globalheader>`.
25
+ * - Don't include page-specific content or calls to action. Footer content should be relevant site-wide.
26
+ * - Don't use for statewide universal links (Agencies, Services, Counties). Those belong in `<nys-unavfooter>`, which renders below this component.
27
+ * - Don't embed `<script>`, `<iframe>`, `<object>`, or `<img>` elements in slotted content. These are sanitized and removed by the component for security.
30
28
  *
31
29
  * @example Basic
32
30
  * ```html
@@ -14,7 +14,7 @@ import { NysElement } from "@nysds/internals";
14
14
  * @slot - Navigation content (typically `<ul>` with `<li><a>` links). Auto-sanitized.
15
15
  * @slot user-actions - User-account controls (e.g. profile link, settings, log-out button) shown in the header.
16
16
  *
17
- * @usagedos
17
+ * @usage
18
18
  * - Use on every agency site and application. The Global Header is a required page element.
19
19
  * - Place below `<nys-unavheader>` when using the Universal Navigation Header.
20
20
  * - Use `agencyName` alone for public-facing agency websites not tied to a specific application; omit it for statewide portals that aren't agency-specific.
@@ -24,12 +24,10 @@ import { NysElement } from "@nysds/internals";
24
24
  * - Use the `user-actions` slot for authenticated applications that need log-out buttons or user profile controls.
25
25
  * - Keep navigation link lists to 6 items or fewer. On mobile, these collapse into a full-width menu.
26
26
  * - Add the `nysLogo` property to display the NYS brand mark for internal applications that don't require public-facing agency branding.
27
- *
28
- * @usagedonts
29
- * - Use `appName` for an agency name. Use the `agencyName` prop instead.
30
- * - Add navigation links to application headers where users should remain focused on a task (e.g., a multi-step form).
31
- * - Place secondary or utility navigation in the Global Header. Use `<nys-globalfooter>` for secondary links.
32
- * - Use the `nysLogo` property on public-facing sites, instead use the `<nys-unavheader>` for statewide branding.
27
+ * - Don't use `appName` for an agency name. Use the `agencyName` prop instead.
28
+ * - Don't add navigation links to application headers where users should remain focused on a task (e.g., a multi-step form).
29
+ * - Don't place secondary or utility navigation in the Global Header. Use `<nys-globalfooter>` for secondary links.
30
+ * - Don't use the `nysLogo` property on public-facing sites, instead use the `<nys-unavheader>` for statewide branding.
33
31
  *
34
32
  * @example Basic
35
33
  * ```html
@@ -15,21 +15,19 @@ import { NysIconWatcher } from "./icon-library-registry";
15
15
  *
16
16
  * @cssprop [--nys-icon-size] - Width and height of the component
17
17
  *
18
- * @usagedos
18
+ * @usage
19
19
  * - Use icons to draw attention to actions, help users scan for key information, or enhance recognizable common actions (e.g., search, download, share).
20
20
  * - Pair icons with a text label—few icons are universally understood alone.
21
21
  * - Use icons consistently: same icon and label for the same meaning throughout your app.
22
22
  * - Use `ariaLabel` when the icon conveys meaning, so screen readers can announce its purpose.
23
23
  * - Use icons from the NYS Design System library; if unavailable, use Google Material Symbols (rounded, unfilled).
24
24
  * - Match icon size and color to the design system.
25
- *
26
- * @usagedonts
27
- * - Use an icon if its meaning isn't immediately clear—if you suspect users won't recognize it, remove it.
28
- * - Use icons to compensate for unclear page hierarchy or confusing content organization.
29
- * - Use standalone icons for actions—use `<nys-button>` with an icon inside instead.
30
- * - Replace meaningful text with icons unless the icon is universally recognized or paired with a label.
31
- * - Overuse icons—too many create visual noise and reduce focus.
32
- * - Use excessive icon customization that breaks design consistency.
25
+ * - Don't use an icon if its meaning isn't immediately clear—if you suspect users won't recognize it, remove it.
26
+ * - Don't use icons to compensate for unclear page hierarchy or confusing content organization.
27
+ * - Don't use standalone icons for actions—use `<nys-button>` with an icon inside instead.
28
+ * - Don't replace meaningful text with icons unless the icon is universally recognized or paired with a label.
29
+ * - Don't overuse icons—too many create visual noise and reduce focus.
30
+ * - Don't use excessive icon customization that breaks design consistency.
33
31
  *
34
32
  * @example Basic
35
33
  * ```html
@@ -109,7 +107,7 @@ import { NysIconWatcher } from "./icon-library-registry";
109
107
  * ```
110
108
  *
111
109
  *
112
- * @render External Library - Material
110
+ * @render External Library - Material
113
111
  * ```html
114
112
  * <nys-icon name="favorite" library="material"></nys-icon>
115
113
  * <script data-scope="module">
@@ -17,18 +17,16 @@ import "./nys-iconlistitem";
17
17
  * its styling comes from `nys-iconlist.light.scss` adopted once onto
18
18
  * `document.adoptedStyleSheets` rather than from a shadow-DOM stylesheet.
19
19
  *
20
- * @usagedos
20
+ * @usage
21
21
  * - Use an icon list to highlight key attributes, features, requirements, or metadata that help users quickly scan content.
22
22
  * - Keep list items short and concise—ideally a single line of text or a brief phrase.
23
23
  * - Limit the number of items shown (typically 3–5) to maintain scannability and keep the list from becoming overly dense.
24
24
  * - Order items by importance, placing the most relevant information first.
25
25
  * - Make sure icons add meaning and are not purely decorative. If all items use the same icon, consider whether a standard list would communicate the content just as effectively.
26
- *
27
- * @usagedonts
28
- * - Use an icon list when the items represent steps in a process. Use the `<nys-stepper>` instead.
29
- * - Use an icon list for long descriptions, complex instructions, or content that requires hierarchy. Use standard lists or body text instead.
30
- * - Mix icon styles within a single list, which makes the list harder to scan.
31
- * - Place interactive controls such as buttons inside list items.
26
+ * - Don't use an icon list when the items represent steps in a process. Use the `<nys-stepper>` instead.
27
+ * - Don't use an icon list for long descriptions, complex instructions, or content that requires hierarchy. Use standard lists or body text instead.
28
+ * - Don't mix icon styles within a single list, which makes the list harder to scan.
29
+ * - Don't place interactive controls such as buttons inside list items.
32
30
  *
33
31
  * @example Basic
34
32
  * ```html
@@ -27,17 +27,15 @@ export type NysModalCloseEvent = CustomEvent<NysModalCloseDetail>;
27
27
  * @fires {NysModalOpenEvent} nys-open - Fired when modal opens. Detail: `{id}`.
28
28
  * @fires {NysModalCloseEvent} nys-close - Fired when modal closes. Detail: `{id}`.
29
29
  *
30
- * @usagedos
30
+ * @usage
31
31
  * - Use to confirm important actions, present focused forms (e.g., login, feedback), or require acknowledgment of alerts without navigating away from the page.
32
32
  * - Keep content short and focused. Use a dedicated page for long or complex content.
33
33
  * - Keep the `subheading` short and use `<p>` tags within the modal for longer information.
34
34
  * - Use the `mandatory` prop to disable the dismiss button only when the user must make a critical decision or acknowledge essential information.
35
- *
36
- * @usagedonts
37
- * - Stack multiple modals.
38
- * - Use for trivial information or inline status messages. Use `<nys-alert>` instead.
39
- * - Use for quick hints on form fields. Use `<nys-tooltip>` instead.
40
- * - Force the `mandatory` prop unnecessarily.
35
+ * - Don't stack multiple modals.
36
+ * - Don't use for trivial information or inline status messages. Use `<nys-alert>` instead.
37
+ * - Don't use for quick hints on form fields. Use `<nys-tooltip>` instead.
38
+ * - Don't force the `mandatory` prop unnecessarily.
41
39
  *
42
40
  * @example Basic
43
41
  * ```html
@@ -28,18 +28,16 @@ export type NysPaginationChangeEvent = CustomEvent<NysPaginationChangeDetail>;
28
28
  *
29
29
  * @fires {NysPaginationChangeEvent} nys-change - Fired when page changes. Detail: `{page}`.
30
30
  *
31
- * @usagedos
31
+ * @usage
32
32
  * - Use for large result sets such as search results, data tables, or directory listings where loading everything at once would hurt performance or usability.
33
33
  * - Use when users need to navigate to a specific part of a result set.
34
34
  * - Set `totalPages` based on your data set and page size; update `currentPage` in response to `nys-change` events.
35
35
  * - Don't set `currentPage` to a value greater than `totalPages`. The component clamps the value automatically, but your application logic should prevent this.
36
36
  * - Position the pagination component below the content it controls.
37
37
  * - Scroll users to the top of the results area when they change pages.
38
- *
39
- * @usagedonts
40
- * - Use when content fits on a single page (fewer than 3–4 screen heights). Show all items instead.
41
- * - Use for step-based workflows where users complete tasks in order. Use `<nys-stepper>` instead.
42
- * - Use for infinite-scroll patterns such as a news feed.
38
+ * - Don't use when content fits on a single page (fewer than 3–4 screen heights). Show all items instead.
39
+ * - Don't use for step-based workflows where users complete tasks in order. Use `<nys-stepper>` instead.
40
+ * - Don't use for infinite-scroll patterns such as a news feed.
43
41
  *
44
42
  * @example Basic
45
43
  * ```html