@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
@@ -12,87 +12,13 @@ import { LitElement } from "lit";
12
12
  * @slot - Default slot for `nys-checkbox` elements.
13
13
  * @slot description - Custom HTML description content.
14
14
  *
15
- * @example Basic
15
+ * @example Basic checkbox group
16
16
  * ```html
17
17
  * <nys-checkboxgroup label="Select landmarks" required>
18
18
  * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
19
19
  * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
20
20
  * </nys-checkboxgroup>
21
21
  * ```
22
- *
23
- * @example Tile
24
- * ```html
25
- * <nys-checkboxgroup label="Select landmarks" tile>
26
- * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
27
- * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
28
- * </nys-checkboxgroup>
29
- * ```
30
- *
31
- * @example Required
32
- * ```html
33
- * <nys-checkboxgroup label="Select landmarks" required>
34
- * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
35
- * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
36
- * </nys-checkboxgroup>
37
- * ```
38
- *
39
- * @example Optional
40
- * ```html
41
- * <nys-checkboxgroup label="Select landmarks" optional>
42
- * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
43
- * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
44
- * </nys-checkboxgroup>
45
- * ```
46
- *
47
- * @example Disabled
48
- * ```html
49
- * <nys-checkboxgroup label="Select landmarks">
50
- * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks" disabled></nys-checkbox>
51
- * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls" disabled></nys-checkbox>
52
- * </nys-checkboxgroup>
53
- * ```
54
- *
55
- * @example Size Small
56
- * ```html
57
- * <nys-checkboxgroup label="Select landmarks" size="sm">
58
- * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
59
- * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
60
- * </nys-checkboxgroup>
61
- * ```
62
- *
63
- * @example Other Option
64
- * ```html
65
- * <nys-checkboxgroup label="Select landmarks">
66
- * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
67
- * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
68
- * <nys-checkbox name="landmarks" value="" label="Other" other></nys-checkbox>
69
- * </nys-checkboxgroup>
70
- * ```
71
- *
72
- * @example Error Message
73
- * ```html
74
- * <nys-checkboxgroup label="Select landmarks" showError errorMessage="Please select at least one landmark">
75
- * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
76
- * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
77
- * </nys-checkboxgroup>
78
- * ```
79
- *
80
- * @example Description
81
- * ```html
82
- * <nys-checkboxgroup label="Select landmarks" description="Choose wisely, you can only pick one.">
83
- * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
84
- * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
85
- * </nys-checkboxgroup>
86
- * ```
87
- *
88
- * @example Description Slot
89
- * ```html
90
- * <nys-checkboxgroup label="Select landmarks">
91
- * <div slot="description">Your <strong>ABSOLUTE</strong> favorite one.</div>
92
- * <nys-checkbox name="landmarks" value="adirondacks" label="Adirondacks"></nys-checkbox>
93
- * <nys-checkbox name="landmarks" value="niagara" label="Niagara Falls"></nys-checkbox>
94
- * </nys-checkboxgroup>
95
- * ```
96
22
  */
97
23
  export declare class NysCheckboxgroup extends LitElement {
98
24
  static styles: import("lit").CSSResult;
@@ -19,170 +19,6 @@ import { LitElement } from "lit";
19
19
  * @fires nys-input - Fired on input change. Detail: `{ id, value }`.
20
20
  * @fires nys-focus - Fired when combobox receives focus.
21
21
  * @fires nys-blur - Fired when combobox loses focus.
22
- *
23
- *
24
- * @example Basic
25
- * ```html
26
- * <nys-combobox label="Select your favorite fruit">
27
- * <option value="apple">Apple</option>
28
- * <option value="banana">Banana</option>
29
- * <option value="cherry">Cherry</option>
30
- * <option value="date">Date</option>
31
- * <option value="elderberry">Elderberry</option>
32
- * <option value="fig">Fig</option>
33
- * <option value="grape">Grape</option>
34
- * <option value="honeydew">Honeydew</option>
35
- * <option value="kiwi">Kiwi</option>
36
- * <option value="lemon">Lemon</option>
37
- * <option value="mango">Mango</option>
38
- * <option value="nectarine">Nectarine</option>
39
- * <option value="orange">Orange</option>
40
- * <option value="papaya">Papaya</option>
41
- * <option value="quince">Quince</option>
42
- * <option value="raspberry">Raspberry</option>
43
- * <option value="strawberry">Strawberry</option>
44
- * <option value="tangerine">Tangerine</option>
45
- * <option value="watermelon">Watermelon</option>
46
- * </nys-combobox>
47
- * ```
48
- *
49
- * @example Default Value
50
- * ```html
51
- * <nys-combobox label="Select your favorite fruit" value="mango">
52
- * <option value="apple">Apple</option>
53
- * <option value="banana">Banana</option>
54
- * <option value="mango" selected>Mango</option>
55
- * <option value="orange">Orange</option>
56
- * <option value="strawberry">Strawberry</option>
57
- * </nys-combobox>
58
- * ```
59
- *
60
- * @example Option Group
61
- * ```html
62
- * <nys-combobox label="Select a fruit" description="Fruits organized by category">
63
- * <optgroup label="Citrus">
64
- * <option value="lemon">Lemon</option>
65
- * <option value="lime">Lime</option>
66
- * <option value="orange">Orange</option>
67
- * <option value="grapefruit">Grapefruit</option>
68
- * <option value="tangerine">Tangerine</option>
69
- * </optgroup>
70
- * <optgroup label="Berries">
71
- * <option value="strawberry">Strawberry</option>
72
- * <option value="blueberry">Blueberry</option>
73
- * <option value="raspberry">Raspberry</option>
74
- * <option value="blackberry">Blackberry</option>
75
- * <option value="cranberry">Cranberry</option>
76
- * </optgroup>
77
- * <optgroup label="Tropical">
78
- * <option value="mango">Mango</option>
79
- * <option value="pineapple">Pineapple</option>
80
- * <option value="papaya">Papaya</option>
81
- * <option value="coconut">Coconut</option>
82
- * <option value="passionfruit">Passionfruit</option>
83
- * </optgroup>
84
- * <optgroup label="Stone Fruits">
85
- * <option value="peach">Peach</option>
86
- * <option value="plum">Plum</option>
87
- * <option value="cherry">Cherry</option>
88
- * <option value="apricot">Apricot</option>
89
- * <option value="nectarine">Nectarine</option>
90
- * </optgroup>
91
- * </nys-combobox>
92
- * ```
93
- *
94
- * @example Disabled
95
- * ```html
96
- * <nys-combobox label="Select your favorite fruit" disabled>
97
- * <option value="apple">Apple</option>
98
- * <option value="banana">Banana</option>
99
- * <option value="orange">Orange</option>
100
- * <option value="strawberry">Strawberry</option>
101
- * </nys-combobox>
102
- * ```
103
- *
104
- * @example Required
105
- * ```html
106
- * <nys-combobox label="Select your favorite fruit" required>
107
- * <option value="apple">Apple</option>
108
- * <option value="banana">Banana</option>
109
- * <option value="orange">Orange</option>
110
- * <option value="strawberry">Strawberry</option>
111
- * </nys-combobox>
112
- * ```
113
- *
114
- * @example Optional
115
- * ```html
116
- * <nys-combobox label="Select your favorite fruit" optional>
117
- * <option value="apple">Apple</option>
118
- * <option value="banana">Banana</option>
119
- * <option value="orange">Orange</option>
120
- * <option value="strawberry">Strawberry</option>
121
- * </nys-combobox>
122
- * ```
123
- *
124
- * @example Width Medium
125
- * ```html
126
- * <nys-combobox label="Select your favorite fruit" width="md">
127
- * <option value="apple">Apple</option>
128
- * <option value="banana">Banana</option>
129
- * <option value="orange">Orange</option>
130
- * <option value="strawberry">Strawberry</option>
131
- * </nys-combobox>
132
- * ```
133
- *
134
- * @example Width Large
135
- * ```html
136
- * <nys-combobox label="Select your favorite fruit" width="lg">
137
- * <option value="apple">Apple</option>
138
- * <option value="banana">Banana</option>
139
- * <option value="orange">Orange</option>
140
- * <option value="strawberry">Strawberry</option>
141
- * </nys-combobox>
142
- * ```
143
- *
144
- * @example Description
145
- * ```html
146
- * <nys-combobox label="Select your favorite fruit" description="Choose from the list of available fruits.">
147
- * <option value="apple">Apple</option>
148
- * <option value="banana">Banana</option>
149
- * <option value="orange">Orange</option>
150
- * <option value="strawberry">Strawberry</option>
151
- * </nys-combobox>
152
- * ```d
153
- *
154
- * @example Description Slot
155
- * ```html
156
- * <nys-combobox label="Select your favorite fruit">
157
- * <label slot="description">This is a description slot</label>
158
- * <option value="apple">Apple</option>
159
- * <option value="banana">Banana</option>
160
- * <option value="orange">Orange</option>
161
- * <option value="strawberry">Strawberry</option>
162
- * </nys-combobox>
163
- * ```
164
- *
165
- * @example Error Message
166
- * ```html
167
- * <nys-combobox label="Select your favorite fruit" showError errorMessage="Please select a fruit">
168
- * <option value="apple">Apple</option>
169
- * <option value="banana">Banana</option>
170
- * <option value="orange">Orange</option>
171
- * <option value="strawberry">Strawberry</option>
172
- * </nys-combobox>
173
- * ```
174
- *
175
- * @example Disabled Options
176
- * ```html
177
- * <nys-combobox label="Select your favorite fruit" description="Some fruits are out of season">
178
- * <option value="apple">Apple</option>
179
- * <option value="banana">Banana</option>
180
- * <option value="cherry" disabled>Cherry (Out of season)</option>
181
- * <option value="mango">Mango</option>
182
- * <option value="strawberry" disabled>Strawberry (Out of season)</option>
183
- * <option value="orange">Orange</option>
184
- * </nys-combobox>
185
- * ```
186
22
  */
187
23
  export declare class NysCombobox extends LitElement {
188
24
  static styles: import("lit").CSSResult;
@@ -9,17 +9,12 @@ import { LitElement } from "lit";
9
9
  * @fires nys-blur - Fired when input or calendar loses focus. Triggers validation.
10
10
  * @fires nys-input - Fired on date selection. Detail: `{id, value}`.
11
11
  *
12
- * @example Basic
12
+ * @example Basic date picker
13
13
  * ```html
14
- * <nys-datepicker
15
- * id="my-datepicker"
16
- * name="my-datepicker"
17
- * label="Schedule an appointment"
18
- * description="Enter in MM/DD/YYYY format"
19
- * ></nys-datepicker>
14
+ * <nys-datepicker label="Birth Date" required></nys-datepicker>
20
15
  * ```
21
16
  *
22
- * @example Width Large
17
+ * @example With width and description
23
18
  * ```html
24
19
  * <nys-datepicker
25
20
  * label="Event Date"
@@ -28,75 +23,24 @@ import { LitElement } from "lit";
28
23
  * </nys-datepicker>
29
24
  * ```
30
25
  *
31
- * @example Width Full
32
- * ```html
33
- * <nys-datepicker
34
- * label="Event Date"
35
- * description="Select the date of your event"
36
- * width="full">
37
- * </nys-datepicker>
38
- * ```
39
- *
40
- * @example Custom Start Date
41
- * ```html
42
- * <nys-datepicker
43
- * label="Appointment"
44
- * startDate="2024-01-01">
45
- * </nys-datepicker>
46
- * ```
47
- *
48
- * @example Without Buttons
26
+ * @example Hide buttons, set start date
49
27
  * ```html
50
28
  * <nys-datepicker
51
29
  * label="Appointment"
52
30
  * hideTodayButton
53
- * hideClearButton>
31
+ * hideClearButton
32
+ * startDate="2024-01-01">
54
33
  * </nys-datepicker>
55
34
  * ```
56
35
  *
57
- * @example Error Message
36
+ * @example With validation error message
58
37
  * ```html
59
38
  * <nys-datepicker
60
39
  * label="Start Date"
61
- * showError
40
+ * required
62
41
  * errorMessage="Please select a valid start date">
63
42
  * </nys-datepicker>
64
43
  * ```
65
- *
66
- * @example Date Range
67
- * ```html
68
- * <nys-datepicker
69
- * label="Select a date"
70
- * description="Only dates within April 4/5/2026 - 7/15/2026 are selectable"
71
- * minDate="2026-04-05"
72
- * maxDate="2026-07-15">
73
- * </nys-datepicker>
74
- * ```
75
- *
76
- * @example Disabled
77
- * ```html
78
- * <nys-datepicker
79
- * label="Disabled datepicker"
80
- * disabled
81
- * value="2025-01-15">
82
- * </nys-datepicker>
83
- * ```
84
- *
85
- * @example Required
86
- * ```html
87
- * <nys-datepicker
88
- * label="Start Date"
89
- * required>
90
- * </nys-datepicker>
91
- * ```
92
- *
93
- * @example Optional
94
- * ```html
95
- * <nys-datepicker
96
- * label="Start Date"
97
- * optional>
98
- * </nys-datepicker>
99
- * ```
100
44
  */
101
45
  export declare class NysDatepicker extends LitElement {
102
46
  static styles: import("lit").CSSResult;
@@ -7,35 +7,12 @@ import { LitElement } from "lit";
7
7
  * @summary Horizontal divider for visual separation of content sections.
8
8
  * @element nys-divider
9
9
  *
10
- * @example Basic
10
+ * @example Basic divider
11
11
  * ```html
12
12
  * <p>Section one content</p>
13
13
  * <nys-divider></nys-divider>
14
14
  * <p>Section two content</p>
15
15
  * ```
16
- *
17
- * @example Inverted
18
- * ```html
19
- * <p>Section one content</p>
20
- * <nys-divider inverted></nys-divider>
21
- * <p>Section two content</p>
22
- * ```
23
- *
24
- * @render Inverted
25
- * ```html
26
- * <div style="display: flex; flex-direction: column; background-color: var(--nys-color-ink, #1b1b1b); color: var(--nys-color-ink-reverse, #fff); padding: var(--nys-space-200, 16px);">
27
- * <p>Section one content</p>
28
- * <nys-divider inverted></nys-divider>
29
- * <p>Section two content</p>
30
- * </div>
31
- * ```
32
- *
33
- * @example Subtle
34
- * ```html
35
- * <p>Section one content</p>
36
- * <nys-divider subtle></nys-divider>
37
- * <p>Section two content</p>
38
- * ```
39
16
  */
40
17
  export declare class NysDivider extends LitElement {
41
18
  static styles: import("lit").CSSResult;
@@ -1,6 +1,5 @@
1
1
  import { LitElement } from "lit";
2
2
  import "./nys-dropdownmenuitem";
3
- type Position = "bottom-start" | "bottom-end" | "top-start" | "top-end";
4
3
  /**
5
4
  * Dropdown menus enable users to select an action from a list of options.
6
5
  * They’re commonly used to save space by grouping related actions, or to provide actions in a confined space.
@@ -8,31 +7,25 @@ type Position = "bottom-start" | "bottom-end" | "top-start" | "top-end";
8
7
  * @summary Action menu with auto-positioning, keyboard support, and screen reader integration.
9
8
  * @element nys-dropdownmenu
10
9
  *
11
- * @example Basic
10
+ * @example Basic dropdown
12
11
  * ```html
13
- * <nys-button id="my-trigger-id" label="Open Menu"></nys-button>
14
- * <nys-dropdownmenu id="my-dropdownmenu" for="my-trigger-id">
15
- * <nys-dropdownmenuitem label="Profile" href="/profile"></nys-dropdownmenuitem>
16
- * <nys-dropdownmenuitem label="Repositories & Github Pages" href="/repos"></nys-dropdownmenuitem>
17
- * <nys-dropdownmenuitem label="Organizations" href="/organizations"></nys-dropdownmenuitem>
18
- * <nys-dropdownmenuitem label="Sign out" href="/logout"></nys-dropdownmenuitem>
12
+ * <button id="my-trigger">Actions</button>
13
+ * <nys-dropdownmenu for="my-trigger">
14
+ * <nys-dropdownmenuitem label="Edit" link="/edit"></nys-dropdownmenuitem>
15
+ * <nys-dropdownmenuitem label="Delete" link="/delete"></nys-dropdownmenuitem>
19
16
  * </nys-dropdownmenu>
20
- * </div>
21
17
  * ```
22
18
  *
23
- * @render Basic
19
+ * @example Positioned dropdown
24
20
  * ```html
25
- * <div style="margin: 200px; display: flex; justify-content: center; align-items: center;">
26
- * <nys-button id="my-trigger-id" label="Open Menu"></nys-button>
27
- * <nys-dropdownmenu id="my-dropdownmenu" for="my-trigger-id">
28
- * <nys-dropdownmenuitem label="Profile" href="/profile"></nys-dropdownmenuitem>
29
- * <nys-dropdownmenuitem label="Repositories & Github Pages" href="/repos"></nys-dropdownmenuitem>
30
- * <nys-dropdownmenuitem label="Organizations" href="/organizations"></nys-dropdownmenuitem>
31
- * <nys-dropdownmenuitem label="Sign out" href="/logout"></nys-dropdownmenuitem>
32
- * </nys-dropdownmenu>
33
- * </div>
21
+ * <button id="settings-btn">Settings</button>
22
+ * <nys-dropdownmenu for="settings-btn" position="top-start">
23
+ * <nys-dropdownmenuitem label="Profile" link="/profile"></nys-dropdownmenuitem>
24
+ * <nys-dropdownmenuitem label="Logout" link="/logout"></nys-dropdownmenuitem>
25
+ * </nys-dropdownmenu>
34
26
  * ```
35
27
  */
28
+ type Position = "bottom-start" | "bottom-end" | "top-start" | "top-end";
36
29
  export declare class NysDropdownMenu extends LitElement {
37
30
  static styles: import("lit").CSSResult;
38
31
  for: string;
@@ -7,6 +7,16 @@ import { LitElement } from "lit";
7
7
  *
8
8
  * @summary Dropdown item to display label and provide href link.
9
9
  * @element nys-dropdownmenuitem
10
+ *
11
+ * @example Basic item
12
+ * ```html
13
+ * <nys-dropdownmenuitem label="Edit" link="/edit"></nys-dropdownmenuitem>
14
+ * ```
15
+ *
16
+ * @example Disabled item
17
+ * ```html
18
+ * <nys-dropdownmenuitem label="Delete" link="/delete" disabled></nys-dropdownmenuitem>
19
+ * ```
10
20
  */
11
21
  export declare class NysDropdownMenuItem extends LitElement {
12
22
  static styles: import("lit").CSSResult;
@@ -7,16 +7,6 @@ import { LitElement } from "lit";
7
7
  *
8
8
  * @summary Internal error message display with icon and ARIA alert support.
9
9
  * @element nys-errormessage
10
- *
11
- * @example Basic
12
- * ```html
13
- * <nys-errormessage showError errorMessage="This is an error message"></nys-errormessage>
14
- * ```
15
- *
16
- * @example Divider
17
- * ```html
18
- * <nys-errormessage showError errorMessage="This is an error message" showDivider></nys-errormessage>
19
- * ```
20
10
  */
21
11
  export declare class NysErrorMessage extends LitElement {
22
12
  static styles: import("lit").CSSResult;
@@ -18,76 +18,14 @@ import "./nys-fileitem";
18
18
  * @fires nys-change - Fired when files are added or removed. Detail: `{id, files}`.
19
19
  * @fires nys-blur - Fired when focus leaves the component. Triggers validation.
20
20
  *
21
- * @example Basic
21
+ * @example Single file upload
22
22
  * ```html
23
- * <nys-fileinput
24
- * label="Upload a file"
25
- * ></nys-fileinput>
23
+ * <nys-fileinput label="Upload document" accept=".pdf,.doc" required></nys-fileinput>
26
24
  * ```
27
25
  *
28
- * @example Dropzone
26
+ * @example Multiple files with dropzone
29
27
  * ```html
30
- * <nys-fileinput
31
- * label="Upload a file"
32
- * dropzone
33
- * ></nys-fileinput>
34
- * ```
35
- *
36
- * @example Multiple
37
- * ```html
38
- * <nys-fileinput
39
- * label="Upload a file"
40
- * multiple
41
- * ></nys-fileinput>
42
- * ```
43
- *
44
- * @example Accepted Filetypes
45
- * ```html
46
- * <nys-fileinput
47
- * label="Upload a file"
48
- * description="Accepted file types: .jpg, .png, .pdf"
49
- * accept="image/png, image/jpeg, .pdf"
50
- * ></nys-fileinput>
51
- * ```
52
- *
53
- * @example Width Large
54
- * ```html
55
- * <nys-fileinput
56
- * label="Upload a file"
57
- * width="lg"
58
- * ></nys-fileinput>
59
- * ```
60
- *
61
- * @example Width Large Dropzone
62
- * ```html
63
- * <nys-fileinput
64
- * label="Upload a file"
65
- * width="lg"
66
- * dropzone
67
- * ></nys-fileinput>
68
- * ```
69
- *
70
- * @example Disabled
71
- * ```html
72
- * <nys-fileinput
73
- * label="Upload a file"
74
- * disabled
75
- * ></nys-fileinput>
76
- * ```
77
- *
78
- * @example Description
79
- * ```html
80
- * <nys-fileinput
81
- * label="Upload a file"
82
- * description="Make sure the file is not blurry and readable"
83
- * ></nys-fileinput>
84
- * ```
85
- *
86
- * @example Description Slot
87
- * ```html
88
- * <nys-fileinput label="Upload a file">
89
- * <div slot="description">Make sure the file is <strong>legible</strong></div>
90
- * </nys-fileinput>
28
+ * <nys-fileinput label="Upload images" accept="image/*" multiple dropzone></nys-fileinput>
91
29
  * ```
92
30
  */
93
31
  export declare class NysFileinput extends LitElement {
@@ -10,60 +10,17 @@ import { LitElement } from "lit";
10
10
  *
11
11
  * @slot - Footer content (links, contact info). Use `<h4>` for column headings.
12
12
  *
13
- * @example Basic
14
- * ```html
15
- * <nys-globalfooter agencyName="Office of Information Technology Services"></nys-globalfooter>
16
- * ```
17
- *
18
- * @example Homepage Link
13
+ * @example Simple footer
19
14
  * ```html
20
15
  * <nys-globalfooter
21
- * agencyName="Office of Information Technology Services"
22
- * homepageLink="https://its.ny.gov"
23
- * ></nys-globalfooter>
24
- * ```
25
- *
26
- * @example Menu Links
27
- * ```html
28
- * <nys-globalfooter agencyName="Office of Information Technology Services">
29
- * <ul>
30
- * <li><a href="https://its.ny.gov">ITS Home</a></li>
31
- * <li><a href="https://its.ny.gov/about-us">About ITS</a></li>
32
- * </ul>
33
- * </nys-globalfooter>
34
- * ```
35
- *
36
- * @example Column Links
37
- * ```html
38
- * <nys-globalfooter agencyName="Office of Information Technology Services">
39
- * <ul>
40
- * <li>
41
- * <span>About</span>
42
- * <ul>
43
- * <li><a href="https://its.ny.gov/about-us">About ITS</a></li>
44
- * <li><a href="https://its.ny.gov/contact-us">Contact</a></li>
45
- * <li><a href="https://its.ny.gov/policies">Policies</a></li>
46
- * </ul>
47
- * </li>
48
- * <li>
49
- * <span>Resources</span>
50
- * <ul>
51
- * <li><a href="https://its.ny.gov/resources">Developer Tools</a></li>
52
- * <li><a href="https://its.ny.gov/accessibility">Accessibility</a></li>
53
- * <li><a href="https://its.ny.gov/privacy">Privacy</a></li>
54
- * </ul>
55
- * </li>
56
- * </ul>
16
+ * agencyName="Department of Health"
17
+ * homepageLink="/"
18
+ * agencySubheading="Protecting and Promoting the Health of New Yorkers"
19
+ * >
20
+ * <span>123 Main St, Albany NY</span>
21
+ * <span>info@health.ny.gov</span>
57
22
  * </nys-globalfooter>
58
23
  * ```
59
- *
60
- * @example Subheading
61
- * ```html
62
- * <nys-globalfooter
63
- * agencyName="Office of Information Technology Services"
64
- * agencySubheading="Innovating Technology for a Better New York"
65
- * ></nys-globalfooter>
66
- * ```
67
24
  */
68
25
  export declare class NysGlobalFooter extends LitElement {
69
26
  static styles: import("lit").CSSResult;