@nysds/components 1.19.3 → 1.20.0-alpha-3

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 (62) hide show
  1. package/custom-elements.json +180 -1055
  2. package/dist/.vscode/vscode.html-custom-data.json +7 -7
  3. package/dist/custom-elements.json +180 -1055
  4. package/dist/nysds.es.js +724 -731
  5. package/dist/nysds.es.js.map +1 -1
  6. package/dist/nysds.js +136 -730
  7. package/dist/nysds.js.map +1 -1
  8. package/dist/packages/nys-accordion/src/nys-accordion.d.ts +6 -35
  9. package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +3 -8
  10. package/dist/packages/nys-alert/src/nys-alert.d.ts +4 -81
  11. package/dist/packages/nys-avatar/src/nys-avatar.d.ts +4 -44
  12. package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +3 -70
  13. package/dist/packages/nys-badge/src/nys-badge.d.ts +4 -54
  14. package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.d.ts +7 -75
  15. package/dist/packages/nys-button/src/nys-button.d.ts +7 -60
  16. package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +7 -4
  17. package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +1 -75
  18. package/dist/packages/nys-combobox/src/nys-combobox.d.ts +0 -164
  19. package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +8 -64
  20. package/dist/packages/nys-divider/src/nys-divider.d.ts +1 -24
  21. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +12 -19
  22. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenuitem.d.ts +10 -0
  23. package/dist/packages/nys-errormessage/src/nys-errormessage.d.ts +0 -10
  24. package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +4 -66
  25. package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +7 -50
  26. package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +3 -57
  27. package/dist/packages/nys-icon/src/icon-cache.d.ts +4 -11
  28. package/dist/packages/nys-icon/src/icon-library-registry.d.ts +16 -33
  29. package/dist/packages/nys-icon/src/index.d.ts +2 -2
  30. package/dist/packages/nys-icon/src/nys-icon.d.ts +6 -83
  31. package/dist/packages/nys-label/src/nys-label.d.ts +2 -32
  32. package/dist/packages/nys-modal/src/nys-modal.d.ts +5 -130
  33. package/dist/packages/nys-pagination/src/nys-pagination.d.ts +1 -11
  34. package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +3 -4
  35. package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +1 -74
  36. package/dist/packages/nys-select/src/nys-option.d.ts +8 -0
  37. package/dist/packages/nys-select/src/nys-select.d.ts +10 -141
  38. package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +2 -2
  39. package/dist/packages/nys-stepper/src/nys-step.d.ts +13 -0
  40. package/dist/packages/nys-stepper/src/nys-stepper.d.ts +69 -119
  41. package/dist/packages/nys-tab/src/nys-tab.d.ts +8 -17
  42. package/dist/packages/nys-tab/src/nys-tabgroup.d.ts +15 -77
  43. package/dist/packages/nys-tab/src/nys-tabpanel.d.ts +17 -0
  44. package/dist/packages/nys-table/src/nys-table.d.ts +0 -71
  45. package/dist/packages/nys-textarea/src/nys-textarea.d.ts +5 -52
  46. package/dist/packages/nys-textinput/src/nys-textinput.d.ts +9 -63
  47. package/dist/packages/nys-toggle/src/nys-toggle.d.ts +4 -40
  48. package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +6 -38
  49. package/dist/packages/nys-unavfooter/src/nys-unavfooter.d.ts +2 -10
  50. package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +9 -51
  51. package/dist/packages/nys-video/src/nys-video.d.ts +3 -65
  52. package/package.json +4 -7
  53. package/packages/react/NysBreadcrumbs.d.ts +1 -1
  54. package/packages/react/NysButton.d.ts +1 -2
  55. package/packages/react/NysDropdownMenu.d.ts +1 -1
  56. package/packages/react/NysLabel.d.ts +1 -4
  57. package/packages/react/NysTextarea.d.ts +1 -1
  58. package/packages/react/NysUnavHeader.d.ts +1 -11
  59. package/packages/react/NysUnavHeader.js +1 -15
  60. package/packages/react/nysds-jsx.d.ts +7 -20
  61. package/dist/nys-icon.library-ChLRj3i-.js +0 -696
  62. package/dist/nys-icon.library-ChLRj3i-.js.map +0 -1
@@ -15,50 +15,21 @@ import "./nys-accordionitem";
15
15
  * @cssprop [--nys-accordion-background-color--header--hover] - Background hover color of the accordion header.
16
16
  * @cssprop [--nys-accordion-content-max-width] - Maximum readable width of accordion content. Defaults to a character-based width (80ch) for readability.
17
17
  *
18
- * @example Basic
18
+ * @example Basic accordion
19
19
  * ```html
20
20
  * <nys-accordion>
21
- * <nys-accordionitem id="accordionId1" heading="How do I renew my passport or apply for a new one?">
22
- * <p>
23
- * You can apply for or renew a U.S. passport through the U.S. Department
24
- * of State. Some renewals can be done by mail.
25
- * </p>
26
- * <div style="display: flex; gap: 0.5rem; font-size: 1rem;">
27
- * <a href="https://www.ny.gov" target="_blank">Check your registration</a>
28
- * <a href="https://www.ny.gov" target="_blank">Fill out application</a>
29
- * </div>
30
- * </nys-accordionitem>
31
- * <nys-accordionitem id="accordionId2" heading="How can I find out if I’m registered to vote?">
32
- * <p>You can check your registration status, update your information, or find out how to register through the National Association of Secretaries of State.</p>
33
- * </nys-accordionitem>
21
+ * <nys-accordionitem heading="Section 1">Content for section 1</nys-accordionitem>
22
+ * <nys-accordionitem heading="Section 2">Content for section 2</nys-accordionitem>
34
23
  * </nys-accordion>
35
24
  * ```
36
25
  *
37
- * @example Single Select
26
+ * @example Single-select accordion
38
27
  * ```html
39
- * <nys-accordion singleSelect>
40
- * <nys-accordionitem heading="FAQ 1">Answer 1</nys-accordionitem>
28
+ * <nys-accordion singleSelect bordered>
29
+ * <nys-accordionitem heading="FAQ 1" expanded>Answer 1</nys-accordionitem>
41
30
  * <nys-accordionitem heading="FAQ 2">Answer 2</nys-accordionitem>
42
31
  * </nys-accordion>
43
32
  * ```
44
- *
45
- * @example Bordered
46
- * ```html
47
- *
48
- * <nys-accordion bordered>
49
- * <nys-accordionitem heading="We are a group of accordions">
50
- * <p>Stronger together! Learn more at
51
- * <a href="https://www.ny.gov" target="_blank">ny.gov</a>
52
- * </p>
53
- * </nys-accordionitem>
54
- * <nys-accordionitem heading="Liberty Ipsum: Bridges & Boroughs">
55
- * <p>Empire ipsum dolor sit amet, across the Brooklyn Bridge to Central Park, consectetur adipiscing elit.</p>
56
- * </nys-accordionitem>
57
- * <nys-accordionitem heading="Hudson Ipsum: Riverfront Stories">
58
- * <p>From the banks of the Hudson to the peaks of the Adirondacks, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
59
- * </nys-accordionitem>
60
- * </nys-accordion>
61
- * ```
62
33
  */
63
34
  export declare class NysAccordion extends LitElement {
64
35
  static styles: import("lit").CSSResult;
@@ -14,14 +14,9 @@ import { LitElement } from "lit";
14
14
  *
15
15
  * @example Expanded item
16
16
  * ```html
17
- * <nys-accordion>
18
- * <nys-accordionitem heading="How do I apply?" expanded>
19
- * <p>Visit ny.gov and complete the online application.</p>
20
- * </nys-accordionitem>
21
- * <nys-accordionitem heading="What documents do I need?">
22
- * <p>You will need a valid ID and proof of residency.</p>
23
- * </nys-accordionitem>
24
- * </nys-accordion>
17
+ * <nys-accordionitem heading="How do I apply?" expanded>
18
+ * <p>Visit ny.gov and complete the online application.</p>
19
+ * </nys-accordionitem>
25
20
  * ```
26
21
  */
27
22
  export declare class NysAccordionItem extends LitElement {
@@ -12,92 +12,15 @@ import { LitElement } from "lit";
12
12
  *
13
13
  * @fires nys-close - Fired when alert is dismissed. Detail: `{id, type, label}`.
14
14
  *
15
- * @example Basic
15
+ * @example Info alert
16
16
  * ```html
17
- * <nys-alert heading="This is a heading"></nys-alert>
17
+ * <nys-alert type="info" heading="Update available" text="A new version is ready to install."></nys-alert>
18
18
  * ```
19
19
  *
20
- * @example Text
20
+ * @example Dismissible success alert
21
21
  * ```html
22
- * <nys-alert
23
- * heading="This is a heading"
24
- * text="This is additional information passed in through the text property"
25
- * ></nys-alert>
22
+ * <nys-alert type="success" heading="Application submitted" dismissible></nys-alert>
26
23
  * ```
27
- *
28
- * @example Rich Text
29
- * ```html
30
- * <nys-alert heading="Rich Text">
31
- * <p>This is a custom alert with <strong>HTML content</strong> passed in through the slot.</p>
32
- * <a href="https://www.ny.gov/" target="_blank">Learn more about our accessibility services</a>
33
- * </nys-alert>
34
- * ```
35
- *
36
- * @example Info Type
37
- * ```html
38
- * <nys-alert type="info" heading="Info alert type"></nys-alert>
39
- * ```
40
- *
41
- * @example Success Type
42
- * ```html
43
- * <nys-alert type="success" heading="Success alert type"></nys-alert>
44
- * ```
45
- *
46
- * @example Warning Type
47
- * ```html
48
- * <nys-alert type="warning" heading="Warning alert type"></nys-alert>
49
- * ```
50
- *
51
- * @example Danger Type
52
- * ```html
53
- * <nys-alert type="danger" heading="Danger alert type"></nys-alert>
54
- * ```
55
- *
56
- * @example Emergency Type
57
- * ```html
58
- * <nys-alert type="emergency" heading="Emergency alert type"></nys-alert>
59
- * ```
60
- *
61
- * @example Dismissible
62
- * ```html
63
- * <nys-alert heading="This alert is dismisable" text="Close it by clicking on the X in the corner." dismissible>
64
- * </nys-alert>
65
- * ```
66
- *
67
- * @example Duration
68
- * ```html
69
- * <nys-alert heading="Disappearing alert" text="This alert will disappear after 3 seconds." duration="3000"></nys-alert>
70
- * ```
71
- *
72
- * @render Duration
73
- * ```html
74
- * <nys-button
75
- * class="nys-margin-b-100"
76
- * label="Show alert"
77
- * onclick="document.body.appendChild(Object.assign(document.createElement('nys-alert'), {heading: 'Disappearing alert', text: 'This alert will disappear after 3 seconds.', duration: 3000}))"
78
- * ></nys-button>
79
- * ```
80
- *
81
- * @example Custom Icon
82
- * ```html
83
- * <nys-alert
84
- * type="emergency"
85
- * heading="Winter storm warning: Dec 10th, 2024."
86
- * text="A major snowfall is expected across the state of New York for the weekend of Dec 7th. Stay home if possible and use extreme caution when driving."
87
- * icon="ac_unit">
88
- * </nys-alert>
89
- *```
90
-
91
- * @example Action Links
92
- * ```html
93
- * <nys-alert
94
- * heading="Alert with links"
95
- * primaryLabel="{primaryAction}"
96
- * secondaryLabel="{secondaryAction}"
97
- * primaryAction="https://www.ny.gov/"
98
- * secondaryAction="https://www.ny.gov/"
99
- * ></nys-alert>
100
- *```
101
24
  */
102
25
  export declare class NysAlert extends LitElement {
103
26
  static styles: import("lit").CSSResult;
@@ -10,54 +10,14 @@ import { LitElement } from "lit";
10
10
  *
11
11
  * @slot - Custom icon content. Overrides default icon when no image or initials.
12
12
  *
13
- * @example Basic
13
+ * @example Image avatar
14
14
  * ```html
15
- * <nys-avatar ariaLabel="User avatar"></nys-avatar>
15
+ * <nys-avatar image="/path/to/photo.jpg" ariaLabel="Jane Smith"></nys-avatar>
16
16
  * ```
17
17
  *
18
- * @example Image
18
+ * @example Initials avatar with custom color
19
19
  * ```html
20
- * <nys-avatar
21
- * image="path/to/img.png"
22
- * ariaLabel="Jane Smith"
23
- * ></nys-avatar>
24
- * ```
25
- * @render Image
26
- * ```html
27
- * <nys-avatar
28
- * image="https://images.unsplash.com/photo-1523712999610-f77fbcfc3843?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
29
- * ariaLabel="Jane Smith"
30
- * ></nys-avatar>
31
- * ```
32
- *
33
- * @example Initials
34
- * ```html
35
- * <nys-avatar initials="JS" ariaLabel="Jane Smith"></nys-avatar>
36
- * ```
37
- *
38
- * @example Icon
39
- * ```html
40
- * <nys-avatar icon="account_circle"></nys-avatar>
41
- * ```
42
- *
43
- * @example Interactive
44
- * ```html
45
- * <nys-avatar interactive></nys-avatar>
46
- * ```
47
- *
48
- * @example Disabled
49
- * ```html
50
- * <nys-avatar disabled></nys-avatar>
51
- * ```
52
- *
53
- * @example Custom Background Color
54
- * ```html
55
- * <nys-avatar color="var(--nys-color-red-500)" interactive></nys-avatar>
56
- * ```
57
- *
58
- * @example Lazy Loading
59
- * ```html
60
- * <nys-avatar lazy></nys-avatar>
20
+ * <nys-avatar initials="JS" color="var(--nys-color-theme)" ariaLabel="Jane Smith"></nys-avatar>
61
21
  * ```
62
22
  */
63
23
  export declare class NysAvatar extends LitElement {
@@ -16,7 +16,7 @@ import { LitElement } from "lit";
16
16
  * @summary Floating back-to-top button with auto-show behavior, smooth scroll, and focus management.
17
17
  * @element nys-backtotop
18
18
  *
19
- * @example Basic
19
+ * @example Auto-appearing button in footer
20
20
  * ```html
21
21
  * <footer>
22
22
  * <nys-backtotop></nys-backtotop>
@@ -24,76 +24,9 @@ import { LitElement } from "lit";
24
24
  * </footer>
25
25
  * ```
26
26
  *
27
- * @render Basic
27
+ * @example Always visible, left position
28
28
  * ```html
29
- * <style>
30
- * code {
31
- * white-space: nowrap;
32
- * padding: var(--nys-space-1px) var(--nys-space-2px);
33
- * border-radius: var(--nys-radius-md);
34
- * color: var(--nys-color-red-600);
35
- * background: var(--nys-color-neutral-10);
36
- * font-size: var(--nys-font-size-sm);
37
- * }
38
- * </style>
39
- * <nys-unavheader hideTranslate hideSearch></nys-unavheader>
40
- * <nys-globalheader appName="Back to Top Example"></nys-globalheader>
41
- * <main style="padding: 0 2rem">
42
- * <h1>Sample Content on page</h1>
43
- * <p>
44
- * This is a sample content area used to demonstrate the functionality of
45
- * the Back to Top button. In an actual application,
46
- * <code>nys-backtotop</code> would not be visible until the user scrolls
47
- * down the page.
48
- * </p>
49
- * </main>
50
- * <footer>
51
- * <nys-backtotop visible></nys-backtotop>
52
- * <nys-unavfooter></nys-unavfooter>
53
- * </footer>
54
- * ```
55
- * @example Left
56
- * ```html
57
- * <footer>
58
- * <nys-backtotop position="left"></nys-backtotop>
59
- * <!-- Other footer content -->
60
- * </footer>
61
- * ```
62
- *
63
- * @render Left
64
- * ```html
65
- * <style>
66
- * code {
67
- * white-space: nowrap;
68
- * padding: var(--nys-space-1px) var(--nys-space-2px);
69
- * border-radius: var(--nys-radius-md);
70
- * color: var(--nys-color-red-600);
71
- * background: var(--nys-color-neutral-10);
72
- * font-size: var(--nys-font-size-sm);
73
- * }
74
- * nys-button {
75
- * position: fixed;
76
- * bottom: 1rem;
77
- * right: 1rem;
78
- * --_nys-button-border-radius: var(--nys-radius-round);
79
- * }
80
- * </style>
81
- * <nys-unavheader hideTranslate hideSearch></nys-unavheader>
82
- * <nys-globalheader appName="Back to Top Example"></nys-globalheader>
83
- * <main style="padding: 0 2rem">
84
- * <h1>Sample Content on page</h1>
85
- * <p>
86
- * This is a sample content area used to demonstrate the functionality of
87
- * the Back to Top button. In an actual application,
88
- * <code>nys-backtotop</code> would not be visible until the user scrolls
89
- * down the page.
90
- * </p>
91
- * </main>
92
- * <footer>
93
- * <nys-backtotop visible position="left"></nys-backtotop>
94
- * <nys-button prefixIcon="sms" variant="outline" label="Chat with us" size="sm"></nys-button>
95
- * <nys-unavfooter></nys-unavfooter>
96
- * </footer>
29
+ * <nys-backtotop visible position="left"></nys-backtotop>
97
30
  * ```
98
31
  */
99
32
  export declare class NysBacktotop extends LitElement {
@@ -9,64 +9,14 @@ import { LitElement } from "lit";
9
9
  * @summary Compact label for status, counts, or categorization with semantic styling.
10
10
  * @element nys-badge
11
11
  *
12
- * @example Basic
12
+ * @example Status badge
13
13
  * ```html
14
- * <nys-badge label="Basic badge"></nys-badge>
14
+ * <nys-badge intent="success" label="Approved" prefixIcon></nys-badge>
15
15
  * ```
16
16
  *
17
- * @example Error Intent
17
+ * @example Count badge
18
18
  * ```html
19
- * <nys-badge label="Error" intent="error" prefixIcon></nys-badge>
20
- * ```
21
- *
22
- * @example Warning Intent
23
- * ```html
24
- * <nys-badge label="Warning" intent="warning" prefixIcon></nys-badge>
25
- * ```
26
- *
27
- * @example Success Intent
28
- * ```html
29
- * <nys-badge label="Success" intent="success" prefixIcon></nys-badge>
30
- * ```
31
- *
32
- * @example Strong Neutral
33
- * ```html
34
- * <nys-badge variant="strong" label="Neutral" prefixIcon></nys-badge>
35
- * ```
36
- *
37
- * @example Strong Error
38
- * ```html
39
- * <nys-badge variant="strong" label="Error" intent="error" prefixIcon></nys-badge>
40
- * ```
41
- *
42
- * @example Strong Warning
43
- * ```html
44
- * <nys-badge variant="strong" label="Warning" intent="warning" prefixIcon></nys-badge>
45
- * ```
46
- *
47
- * @example Strong Success
48
- * ```html
49
- * <nys-badge variant="strong" label="Success" intent="success" prefixIcon></nys-badge>
50
- * ```
51
- *
52
- * @example Custom Prefix Icon
53
- * ```html
54
- * <nys-badge label="Custom prefixIcon" prefixIcon="check"></nys-badge>
55
- * ```
56
- *
57
- * @example Custom Suffix Icon
58
- * ```html
59
- * <nys-badge label="Custom suffixIcon" suffixIcon="check"></nys-badge>
60
- * ```
61
- *
62
- * @example Size Small
63
- * ```html
64
- * <nys-badge label="Small" size="sm"></nys-badge>
65
- * ```
66
- *
67
- * @example Screen reader text
68
- * ```html
69
- * <nys-badge intent="warning" label="Caution" prefixIcon srText="concern"></nys-badge>
19
+ * <nys-badge prefixLabel="Messages" label="12"></nys-badge>
70
20
  * ```
71
21
  */
72
22
  export declare class NysBadge extends LitElement {
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from "lit";
2
2
  /**
3
- * A breadcrumb navigation trail composed of `li` elements.
3
+ * A breadcrumb navigation trail composed of `nys-breadcrumbitem` elements.
4
4
  * Collapses when the trail exceeds 5 items on desktop or 3 items on mobile,
5
5
  * showing the first, last, and item before the current page, with an ellipsis to expand.
6
6
  * A single item renders as a back-to-parent link instead of a trail.
@@ -8,21 +8,11 @@ import { LitElement } from "lit";
8
8
  * @summary Breadcrumb navigation trail with responsive collapse support.
9
9
  * @element nys-breadcrumbs
10
10
  *
11
- * @slot - One or more `li` elements defining the trail.
11
+ * @slot - One or more `nys-breadcrumbitem` elements defining the trail.
12
12
  *
13
13
  * @fires nys-breadcrumbs-expand - Fired when the user clicks the ellipsis to expand the trail.
14
14
  *
15
- * @example Basic
16
- * ```html
17
- * <nys-breadcrumbs>
18
- * <ol>
19
- * <li><a href="/">Home</a></li>
20
- * <li><a href="/services">Services</a></li>
21
- * </ol>
22
- * </nys-breadcrumbs>
23
- * ```
24
- *
25
- * @example Current page
15
+ * @example Full trail with current page
26
16
  * ```html
27
17
  * <nys-breadcrumbs>
28
18
  * <ol>
@@ -33,79 +23,21 @@ import { LitElement } from "lit";
33
23
  * </nys-breadcrumbs>
34
24
  * ```
35
25
  *
36
- * @example Single item list
26
+ * @example Trail without current page
37
27
  * ```html
38
28
  * <nys-breadcrumbs>
39
29
  * <ol>
40
- * <li><a href="/services">Services</a></li>
41
- * </ol>
42
- * </nys-breadcrumbs>
43
- * ```
44
- *
45
- * @example Long list
46
- * ```html
47
- * <nys-breadcrumbs>
48
- * <ol>
49
- * <li><a href="/">Home</a></li>
50
- * <li><a href="/government">Government</a></li>
51
- * <li><a href="/government/agencies">Agencies</a></li>
52
- * <li><a href="/government/agencies/parks">Parks & Recreation</a></li>
53
- * <li><a href="/parks/state-parks">State Parks</a></li>
54
- * <li><a href="/parks/state-parks/delaware">Delaware Region</a></li>
55
- * <li><a href="/parks/state-parks/delaware/water-gap">Delaware Water Gap</a></li>
56
- * <li>Trail Conditions</li>
57
- * </ol>
58
- * </nys-breadcrumbs>
59
- * ```
60
- *
61
- * @example Size small
62
- * ```html
63
- * <nys-breadcrumbs size="sm">
64
- * <ol>
65
- * <li><a href="/">Home</a></li>
66
- * <li><a href="/government">Government</a></li>
67
- * <li><a href="/government/agencies">Agencies</a></li>
68
- * <li>Parks & Recreation</li>
69
- * </ol>
70
- * </nys-breadcrumbs>
71
- * ```
72
- *
73
- * @example Back to parent (mobile)
74
- * ```html
75
- * <nys-breadcrumbs backToParent>
76
- * <ol>
77
- * <li><a href="/">Home</a></li>
78
- * <li><a href="/government">Government</a></li>
79
- * <li><a href="/government/agencies">Agencies</a></li>
80
- * <li><a href="/government/agencies/parks">Parks & Recreation</a></li>
81
- * <li><a href="/parks/state-parks">State Parks</a></li>
82
- * <li><a href="/parks/state-parks/delaware">Delaware Region</a></li>
83
- * <li><a href="/parks/state-parks/delaware/water-gap">Delaware Water Gap</a></li>
84
- * <li>Trail Conditions</li>
85
- * </ol>
86
- * </nys-breadcrumbs>
87
- * ```
88
- *
89
- * @example Background bar
90
- * ```html
91
- * <nys-breadcrumbs backgroundBar>
92
- * <ol>
93
30
  * <li><a href="/">Home</a></li>
94
31
  * <li><a href="/services">Services</a></li>
95
- * <li><a href="/tickets">Ticket System</a></li>
96
- * <li>Del Water Gap</li>
97
32
  * </ol>
98
33
  * </nys-breadcrumbs>
99
34
  * ```
100
35
  *
101
- * @example Disabled
36
+ * @example Single item renders as back-to-parent
102
37
  * ```html
103
- * <nys-breadcrumbs disabled>
38
+ * <nys-breadcrumbs>
104
39
  * <ol>
105
- * <li><a href="/">Home</a></li>
106
40
  * <li><a href="/services">Services</a></li>
107
- * <li><a href="/tickets">Ticket System</a></li>
108
- * <li>Del Water Gap</li>
109
41
  * </ol>
110
42
  * </nys-breadcrumbs>
111
43
  * ```
@@ -125,7 +57,7 @@ export declare class NysBreadcrumbs extends LitElement {
125
57
  * Controls the visual size of the breadcrumb text and spacing: `sm` for dense layouts, `md` (default) for standard use.
126
58
  * @default "md"
127
59
  */
128
- size: "sm" | "md";
60
+ size: "sm" | "md" | "";
129
61
  /**
130
62
  * On mobile, renders the trail as a single back-to-parent link pointing to the item before the current page.
131
63
  * Has no effect on desktop or when only one item is present (which always renders as a back link).
@@ -8,7 +8,6 @@ import { LitElement } from "lit";
8
8
  * @summary Button for actions and CTAs with variants, sizes, and icon support.
9
9
  * @element nys-button
10
10
  *
11
- * @slot - Button label text. Use as fallback when `label` prop is not provided.
12
11
  * @slot prefix-icon - Icon before label. Not shown for `text` variant.
13
12
  * @slot suffix-icon - Icon after label. Not shown for `text` variant.
14
13
  * @slot circle-icon - Icon for circle mode. Overrides `icon` prop.
@@ -27,85 +26,33 @@ import { LitElement } from "lit";
27
26
  * @fires nys-focus - Fired when the button receives focus.
28
27
  * @fires nys-blur - Fired when the button loses focus.
29
28
  *
30
- * @example Basic
29
+ * @example Basic filled button
31
30
  * ```html
32
- * <nys-button label="Button" variant="filled"></nys-button>
31
+ * <nys-button label="Submit" variant="filled"></nys-button>
33
32
  * ```
34
33
  *
35
- * @example Variant Outline
34
+ * @example Secondary outline button
36
35
  * ```html
37
- * <nys-button label="Button" variant="outline"></nys-button>
36
+ * <nys-button label="Cancel" variant="outline"></nys-button>
38
37
  * ```
39
38
  *
40
- * @example Variant Ghost
41
- * ```html
42
- * <nys-button label="Button" variant="ghost"></nys-button>
43
- * ```
44
- *
45
- * @example Variant Text
46
- * ```html
47
- * <nys-button label="Button" variant="text"></nys-button>
48
- * ```
49
- *
50
- * @example Prefix Icon
39
+ * @example Button with icons
51
40
  * ```html
52
41
  * <nys-button label="Previous" prefixIcon="chevron_left"></nys-button>
53
- * ```
54
- *
55
- * @example Suffix Icon
56
- * ```html
57
42
  * <nys-button label="Next" suffixIcon="chevron_right"></nys-button>
58
43
  * ```
59
44
  *
60
- * @example Slotted Icons
61
- * ```html
62
- * <nys-button label="Slotted icons">
63
- * <nys-icon color="#db117d" slot="prefix-icon" name="chevron_left"></nys-icon>
64
- * <nys-icon color="#db117d" slot="suffix-icon" name="chevron_right"></nys-icon>
65
- * </nys-button>
66
- * ```
67
- *
68
45
  * @example Circle icon button
69
46
  * ```html
70
47
  * <nys-button circle icon="close" label="Close dialog"></nys-button>
71
48
  * ```
72
49
  *
73
- * @example Size Small
74
- * ```html
75
- * <nys-button label="Small" size="sm"></nys-button>
76
- * ```
77
- * @example Size Large
78
- * ```html
79
- * <nys-button label="Large" size="lg"></nys-button>
80
- * ```
81
- *
82
- * @example Full width
83
- * ```html
84
- * <nys-button label="Full width" fullWidth></nys-button>
85
- * ```
86
- *
87
- * @example Inverted
88
- * ```html
89
- * <nys-button label="Inverted" inverted></nys-button>
90
- * ```
91
- * @render Inverted
92
- * ```html
93
- * <div style="background: #1b1b1b; padding: 1rem;">
94
- * <nys-button label="Inverted" inverted></nys-button>
95
- * </div>
96
- * ```
97
- *
98
- * @example Disabled
99
- * ```html
100
- * <nys-button label="Disabled" disabled></nys-button>
101
- * ```
102
- *
103
- * @example Href
50
+ * @example Link-style button for navigation
104
51
  * ```html
105
52
  * <nys-button label="Visit NY.gov" href="https://www.ny.gov/" target="_blank" suffixIcon="open_in_new"></nys-button>
106
53
  * ```
107
54
  *
108
- * @example Type
55
+ * @example Form submit button
109
56
  * ```html
110
57
  * <nys-button type="submit" label="Save Changes" variant="filled"></nys-button>
111
58
  * ```
@@ -17,14 +17,17 @@ import "./nys-checkboxgroup";
17
17
  * @fires nys-blur - Fired when checkbox loses focus.
18
18
  * @fires nys-other-input - Fired when "other" text input value changes. Detail: `{id, name, value}`.
19
19
  *
20
- * @example Single
20
+ * @example Single checkbox
21
21
  * ```html
22
- * <nys-checkbox label="I agree to the terms" name="terms"></nys-checkbox>
22
+ * <nys-checkbox label="I agree to the terms" name="terms" required></nys-checkbox>
23
23
  * ```
24
24
  *
25
- * @example Preselected
25
+ * @example Checkbox group
26
26
  * ```html
27
- * <nys-checkbox label="I agree to the terms" name="terms" checked></nys-checkbox>
27
+ * <nys-checkboxgroup label="Select landmarks">
28
+ * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
29
+ * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
30
+ * </nys-checkboxgroup>
28
31
  * ```
29
32
  */
30
33
  export declare class NysCheckbox extends LitElement {