@nysds/components 1.12.0 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/custom-elements.json +10506 -0
- package/dist/.vscode/vscode.css-custom-data.json +47 -1
- package/dist/.vscode/vscode.html-custom-data.json +1280 -266
- package/dist/custom-elements.json +2183 -332
- package/dist/nys-stepper/newsletter.html +4 -0
- package/dist/nys-stepper/personal.html +6 -0
- package/dist/nys-stepper/survey.html +5 -0
- package/dist/nys-stepper/team.html +6 -0
- package/dist/nysds.es.js +3325 -1564
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +280 -164
- package/dist/nysds.js.map +1 -1
- package/dist/packages/mcp-server/src/index.d.ts +8 -0
- package/dist/packages/mcp-server/src/lib/cem-parser.d.ts +95 -0
- package/dist/packages/mcp-server/src/lib/search.d.ts +19 -0
- package/dist/packages/mcp-server/src/lib/token-parser.d.ts +139 -0
- package/dist/packages/mcp-server/src/prompts/nysds-mode.d.ts +7 -0
- package/dist/packages/mcp-server/src/resources/components.d.ts +11 -0
- package/dist/packages/mcp-server/src/resources/guides.d.ts +10 -0
- package/dist/packages/mcp-server/src/resources/index.d.ts +7 -0
- package/dist/packages/mcp-server/src/resources/tokens.d.ts +16 -0
- package/dist/packages/mcp-server/src/server.d.ts +10 -0
- package/dist/packages/mcp-server/src/tools/component-tools.d.ts +13 -0
- package/dist/packages/mcp-server/src/tools/index.d.ts +7 -0
- package/dist/packages/mcp-server/src/tools/token-tools.d.ts +16 -0
- package/dist/packages/mcp-server/src/tools/validation-tools.d.ts +11 -0
- package/dist/packages/nys-accordion/src/nys-accordion.d.ts +37 -3
- package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +32 -0
- package/dist/packages/nys-alert/src/nys-alert.d.ts +62 -1
- package/dist/packages/nys-avatar/src/nys-avatar.d.ts +44 -0
- package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +29 -0
- package/dist/packages/nys-badge/src/nys-badge.d.ts +46 -0
- package/dist/packages/nys-button/src/nys-button.d.ts +141 -0
- package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +65 -1
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +50 -0
- package/dist/packages/nys-datepicker/src/index.d.ts +1 -0
- package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +116 -0
- package/dist/packages/nys-datepicker/src/nys-datepicker.figma.d.ts +1 -0
- package/dist/packages/nys-divider/src/nys-divider.d.ts +22 -0
- package/dist/packages/nys-errormessage/src/nys-errormessage.d.ts +16 -0
- package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +59 -0
- package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +18 -0
- package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +29 -0
- package/dist/packages/nys-globalheader/src/nys-global.logo.d.ts +2 -0
- package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +32 -5
- package/dist/packages/nys-icon/src/nys-icon.d.ts +33 -0
- package/dist/packages/nys-label/src/nys-label.d.ts +17 -0
- package/dist/packages/nys-modal/src/nys-modal.d.ts +47 -0
- package/dist/packages/nys-pagination/src/nys-pagination.d.ts +33 -0
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +52 -3
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +55 -1
- package/dist/packages/nys-select/src/nys-option.d.ts +24 -0
- package/dist/packages/nys-select/src/nys-select.d.ts +70 -1
- package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +26 -0
- package/dist/packages/nys-stepper/src/index.d.ts +2 -0
- package/dist/packages/nys-stepper/src/nys-step.d.ts +37 -0
- package/dist/packages/nys-stepper/src/nys-stepper.d.ts +48 -0
- package/dist/packages/nys-stepper/src/nys-stepper.figma.d.ts +1 -0
- package/dist/packages/nys-table/src/index.d.ts +1 -0
- package/dist/packages/nys-table/src/nys-table.d.ts +39 -0
- package/dist/packages/nys-table/src/nys-table.figma.d.ts +1 -0
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +72 -1
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +85 -1
- package/dist/packages/nys-toggle/src/nys-toggle.d.ts +52 -0
- package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +41 -0
- package/dist/packages/nys-unavfooter/src/nys-unavfooter.d.ts +19 -0
- package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +38 -2
- package/dist/src/index.d.ts +2 -0
- package/package.json +22 -17
|
@@ -4,41 +4,110 @@
|
|
|
4
4
|
"tags": [
|
|
5
5
|
{
|
|
6
6
|
"name": "nys-accordion",
|
|
7
|
-
"description": "
|
|
7
|
+
"description": "Container for accordion items with optional single-select and bordered styling.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `nys-accordionitem` elements.",
|
|
8
8
|
"attributes": [
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
{
|
|
10
|
+
"name": "id",
|
|
11
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
12
|
+
"values": []
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "singleSelect",
|
|
16
|
+
"description": "Only one item can be expanded at a time. Expanding one collapses others.",
|
|
17
|
+
"values": []
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "bordered",
|
|
21
|
+
"description": "Adds borders around each accordion item. Propagates to all children.",
|
|
22
|
+
"values": []
|
|
23
|
+
}
|
|
12
24
|
],
|
|
13
25
|
"references": []
|
|
14
26
|
},
|
|
15
27
|
{
|
|
16
28
|
"name": "nys-accordionitem",
|
|
17
|
-
"description": "
|
|
29
|
+
"description": "Collapsible panel for use within nys-accordion with keyboard support.\n---\n\n\n### **Events:**\n - **nys-accordionitem-toggle** - Fired when expanded state changes. Detail: `{id, heading, expanded}`.\n\n### **Slots:**\n - _default_ - Default slot for panel content shown when expanded.",
|
|
18
30
|
"attributes": [
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
31
|
+
{
|
|
32
|
+
"name": "id",
|
|
33
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
34
|
+
"values": []
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "heading",
|
|
38
|
+
"description": "Heading text displayed in the clickable toggle button.",
|
|
39
|
+
"values": []
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "expanded",
|
|
43
|
+
"description": "Whether the content panel is visible. Toggle via click or keyboard.",
|
|
44
|
+
"values": []
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "bordered",
|
|
48
|
+
"description": "Adds border styling. Set by parent `nys-accordion`, not directly.",
|
|
49
|
+
"values": []
|
|
50
|
+
}
|
|
23
51
|
],
|
|
24
52
|
"references": []
|
|
25
53
|
},
|
|
26
54
|
{
|
|
27
55
|
"name": "nys-alert",
|
|
28
|
-
"description": "
|
|
56
|
+
"description": "Alert for contextual feedback with semantic types and live region support.\n---\n\n\n### **Events:**\n - **nys-close** - Fired when alert is dismissed. Detail: `{id, type, label}`.\n\n### **Slots:**\n - _default_ - Default slot for custom body content. Overrides `text` prop when provided.",
|
|
29
57
|
"attributes": [
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
58
|
+
{
|
|
59
|
+
"name": "id",
|
|
60
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
61
|
+
"values": []
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "heading",
|
|
65
|
+
"description": "Bold heading text displayed at the top of the alert.",
|
|
66
|
+
"values": []
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "icon",
|
|
70
|
+
"description": "Custom icon name. Defaults to type-appropriate icon if not set.",
|
|
71
|
+
"values": []
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "dismissible",
|
|
75
|
+
"description": "Shows close button allowing users to dismiss the alert.",
|
|
76
|
+
"values": []
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "duration",
|
|
80
|
+
"description": "Auto-dismiss after specified milliseconds. Set to 0 to disable.",
|
|
81
|
+
"values": []
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "text",
|
|
85
|
+
"description": "Body text content. Ignored if slot content is provided.",
|
|
86
|
+
"values": []
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "primaryAction",
|
|
90
|
+
"description": "URL for the primary action link.",
|
|
91
|
+
"values": []
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "secondaryAction",
|
|
95
|
+
"description": "URL for the secondary action link.",
|
|
96
|
+
"values": []
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "primaryLabel",
|
|
100
|
+
"description": "Label text for primary action link.",
|
|
101
|
+
"values": []
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "secondaryLabel",
|
|
105
|
+
"description": "Label text for secondary action link.",
|
|
106
|
+
"values": []
|
|
107
|
+
},
|
|
40
108
|
{
|
|
41
109
|
"name": "type",
|
|
110
|
+
"description": "Semantic alert type affecting color and ARIA role. `danger`/`emergency` use assertive live region.",
|
|
42
111
|
"values": [
|
|
43
112
|
{ "name": "" },
|
|
44
113
|
{ "name": "base" },
|
|
@@ -54,38 +123,91 @@
|
|
|
54
123
|
},
|
|
55
124
|
{
|
|
56
125
|
"name": "nys-avatar",
|
|
57
|
-
"description": "
|
|
126
|
+
"description": "User avatar with image, initials, or icon fallback and contrast-aware colors.\n---\n\n\n### **Slots:**\n - _default_ - Custom icon content. Overrides default icon when no image or initials.",
|
|
58
127
|
"attributes": [
|
|
59
|
-
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
128
|
+
{
|
|
129
|
+
"name": "id",
|
|
130
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
131
|
+
"values": []
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "ariaLabel",
|
|
135
|
+
"description": "Accessible label for screen readers. Required when no image `alt` is available.",
|
|
136
|
+
"values": []
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "image",
|
|
140
|
+
"description": "Image URL. Takes priority over initials and icon.",
|
|
141
|
+
"values": []
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "initials",
|
|
145
|
+
"description": "1-2 character initials. Used when no image is provided.",
|
|
146
|
+
"values": []
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "icon",
|
|
150
|
+
"description": "Custom icon name. Falls back to `account_circle` if not set.",
|
|
151
|
+
"values": []
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "color",
|
|
155
|
+
"description": "Background color. Foreground auto-adjusts for contrast. Accepts CSS values or variables.",
|
|
156
|
+
"values": []
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "interactive",
|
|
160
|
+
"description": "Makes avatar clickable with button role and focus ring.",
|
|
161
|
+
"values": []
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "disabled",
|
|
165
|
+
"description": "Prevents interaction when `interactive` is true.",
|
|
166
|
+
"values": []
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "lazy",
|
|
170
|
+
"description": "Enables lazy loading for the image.",
|
|
171
|
+
"values": []
|
|
172
|
+
}
|
|
68
173
|
],
|
|
69
174
|
"references": []
|
|
70
175
|
},
|
|
71
176
|
{
|
|
72
177
|
"name": "nys-backtotop",
|
|
73
|
-
"description": "
|
|
178
|
+
"description": "Floating back-to-top button with auto-show behavior and smooth scroll.\n---\n",
|
|
74
179
|
"attributes": [
|
|
75
|
-
{
|
|
76
|
-
|
|
180
|
+
{
|
|
181
|
+
"name": "position",
|
|
182
|
+
"description": "Horizontal position: `left` or `right`.",
|
|
183
|
+
"values": []
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "visible",
|
|
187
|
+
"description": "Force button visibility. Overrides auto-show scroll behavior.",
|
|
188
|
+
"values": []
|
|
189
|
+
}
|
|
77
190
|
],
|
|
78
191
|
"references": []
|
|
79
192
|
},
|
|
80
193
|
{
|
|
81
194
|
"name": "nys-badge",
|
|
82
|
-
"description": "
|
|
195
|
+
"description": "Compact label for status, counts, or categorization with semantic styling.\n---\n",
|
|
83
196
|
"attributes": [
|
|
84
|
-
{ "name": "id", "values": [] },
|
|
85
|
-
{
|
|
86
|
-
|
|
197
|
+
{ "name": "id", "description": "Unique identifier.", "values": [] },
|
|
198
|
+
{
|
|
199
|
+
"name": "name",
|
|
200
|
+
"description": "Name attribute for form association.",
|
|
201
|
+
"values": []
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "size",
|
|
205
|
+
"description": "Badge size: `sm` (smaller text) or `md` (default).",
|
|
206
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
207
|
+
},
|
|
87
208
|
{
|
|
88
209
|
"name": "intent",
|
|
210
|
+
"description": "Semantic intent affecting color: `neutral`, `error`, `success`, or `warning`.",
|
|
89
211
|
"values": [
|
|
90
212
|
{ "name": "" },
|
|
91
213
|
{ "name": "neutral" },
|
|
@@ -94,8 +216,20 @@
|
|
|
94
216
|
{ "name": "warning" }
|
|
95
217
|
]
|
|
96
218
|
},
|
|
97
|
-
{
|
|
98
|
-
|
|
219
|
+
{
|
|
220
|
+
"name": "prefixLabel",
|
|
221
|
+
"description": "Secondary label displayed before the main label.",
|
|
222
|
+
"values": []
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "label",
|
|
226
|
+
"description": "Primary label text displayed in the badge.",
|
|
227
|
+
"values": []
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "variant",
|
|
231
|
+
"values": [{ "name": "strong" }, { "name": "\"\"" }]
|
|
232
|
+
},
|
|
99
233
|
{ "name": "prefixicon", "values": [] },
|
|
100
234
|
{ "name": "suffixicon", "values": [] }
|
|
101
235
|
],
|
|
@@ -103,17 +237,31 @@
|
|
|
103
237
|
},
|
|
104
238
|
{
|
|
105
239
|
"name": "nys-button",
|
|
106
|
-
"description": "
|
|
240
|
+
"description": "Button for actions and CTAs with variants, sizes, and icon support.\n---\n\n\n### **Events:**\n - **nys-focus** - Fired when the button receives focus.\n- **nys-blur** - Fired when the button loses focus.\n- **nys-click** - Fired when the button is clicked (mouse or keyboard). Not fired when disabled.\n\n### **Slots:**\n - **prefix-icon** - Icon before label. Not shown for `text` variant.\n- **suffix-icon** - Icon after label. Not shown for `text` variant.\n- **circle-icon** - Icon for circle mode. Overrides `icon` prop.\n\n### **CSS Properties:**\n - **--nys-button-color** - Text color of the button label. _(default: undefined)_\n- **--nys-button-color--hover** - Text color when hovered. _(default: undefined)_\n- **--nys-button-color--active** - Text color when active/pressed. _(default: undefined)_\n- **--nys-button-background-color** - Background color of the button. _(default: undefined)_\n- **--nys-button-background-color--hover** - Background color when hovered. _(default: undefined)_\n- **--nys-button-background-color--active** - Background color when active/pressed. _(default: undefined)_\n- **--nys-button-border-color** - Border color of the button. _(default: undefined)_\n- **--nys-button-border-color--hover** - Border color when hovered. _(default: undefined)_\n- **--nys-button-border-color--active** - Border color when active/pressed. _(default: undefined)_",
|
|
107
241
|
"attributes": [
|
|
108
|
-
{
|
|
109
|
-
|
|
242
|
+
{
|
|
243
|
+
"name": "id",
|
|
244
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
245
|
+
"values": []
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "name",
|
|
249
|
+
"description": "Name for form submission.",
|
|
250
|
+
"values": []
|
|
251
|
+
},
|
|
110
252
|
{
|
|
111
253
|
"name": "size",
|
|
254
|
+
"description": "Button height: `sm` (40px) for dense UIs, `md` (48px, default) for standard use, `lg` (56px) for prominent CTAs.",
|
|
112
255
|
"values": [{ "name": "sm" }, { "name": "md" }, { "name": "lg" }]
|
|
113
256
|
},
|
|
114
|
-
{
|
|
257
|
+
{
|
|
258
|
+
"name": "fullWidth",
|
|
259
|
+
"description": "Expands button to fill container width. Use for mobile layouts or stacked button groups.",
|
|
260
|
+
"values": []
|
|
261
|
+
},
|
|
115
262
|
{
|
|
116
263
|
"name": "variant",
|
|
264
|
+
"description": "Visual style: `filled` for primary (one per section), `outline` for secondary, `ghost` for tertiary, `text` for inline actions. Avoid `text` for navigation.",
|
|
117
265
|
"values": [
|
|
118
266
|
{ "name": "" },
|
|
119
267
|
{ "name": "filled" },
|
|
@@ -122,20 +270,69 @@
|
|
|
122
270
|
{ "name": "text" }
|
|
123
271
|
]
|
|
124
272
|
},
|
|
125
|
-
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
{
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
{
|
|
136
|
-
|
|
273
|
+
{
|
|
274
|
+
"name": "inverted",
|
|
275
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
276
|
+
"values": []
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "label",
|
|
280
|
+
"description": "Visible button text. Use sentence case, action-oriented text (e.g., \"Save Draft\"). Becomes aria-label in `circle` mode.",
|
|
281
|
+
"values": []
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "ariaLabel",
|
|
285
|
+
"description": "Screen reader label. Required for icon-only buttons if `label` is not set.",
|
|
286
|
+
"values": []
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "ariaControls",
|
|
290
|
+
"description": "ID of controlled element (e.g., dropdown or modal). Sets `aria-controls`.",
|
|
291
|
+
"values": []
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "prefixIcon",
|
|
295
|
+
"description": "Material Symbol icon before label. Not shown for `text` variant or `circle` mode.",
|
|
296
|
+
"values": []
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "suffixIcon",
|
|
300
|
+
"description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `text` variant or `circle` mode.",
|
|
301
|
+
"values": []
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "circle",
|
|
305
|
+
"description": "Renders circular icon-only button. Requires `icon` prop. `label` becomes aria-label.",
|
|
306
|
+
"values": []
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "icon",
|
|
310
|
+
"description": "Icon for circle mode. Required when `circle` is true. Scales with size (sm=24px, md=32px, lg=40px).",
|
|
311
|
+
"values": []
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "disabled",
|
|
315
|
+
"description": "Prevents interaction. Avoid disabling without explanation—show validation errors instead.",
|
|
316
|
+
"values": []
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "form",
|
|
320
|
+
"description": "Form `id` to associate with. Use when button is outside the form element.",
|
|
321
|
+
"values": []
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "value",
|
|
325
|
+
"description": "Value submitted with form data. Only used when `type=\"submit\"`.",
|
|
326
|
+
"values": []
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "ariaDescription",
|
|
330
|
+
"description": "Additional screen reader description. Sets `aria-description`.",
|
|
331
|
+
"values": []
|
|
332
|
+
},
|
|
137
333
|
{
|
|
138
334
|
"name": "type",
|
|
335
|
+
"description": "Form behavior: `button` (default, no form action), `submit` (submits form), `reset` (resets form). Always set explicitly to avoid unintended submissions.",
|
|
139
336
|
"values": [
|
|
140
337
|
{ "name": "" },
|
|
141
338
|
{ "name": "submit" },
|
|
@@ -143,9 +340,14 @@
|
|
|
143
340
|
{ "name": "button" }
|
|
144
341
|
]
|
|
145
342
|
},
|
|
146
|
-
{
|
|
343
|
+
{
|
|
344
|
+
"name": "href",
|
|
345
|
+
"description": "URL to navigate to. Renders as `<a>` tag. Omit for action buttons.",
|
|
346
|
+
"values": []
|
|
347
|
+
},
|
|
147
348
|
{
|
|
148
349
|
"name": "target",
|
|
350
|
+
"description": "Link target: `_self` (same tab), `_blank` (new tab—add `suffixIcon=\"open_in_new\"`), `_parent`, `_top`, or frame name.",
|
|
149
351
|
"values": [
|
|
150
352
|
{ "name": "" },
|
|
151
353
|
{ "name": "_self" },
|
|
@@ -160,93 +362,320 @@
|
|
|
160
362
|
},
|
|
161
363
|
{
|
|
162
364
|
"name": "nys-checkbox",
|
|
163
|
-
"description": "
|
|
365
|
+
"description": "Checkbox for binary choices or multi-select options.\n---\n\n\n### **Events:**\n - **nys-change** - Fired when checked state changes. Detail: `{id, checked, name, value}`.\n- **nys-focus** - Fired when checkbox gains focus.\n- **nys-blur** - Fired when checkbox loses focus.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Functions\n--------------------------------------------------------------------------\n\n### **Slots:**\n - **description** - Custom HTML description content.",
|
|
164
366
|
"attributes": [
|
|
165
|
-
{
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
{
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
{
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
{
|
|
367
|
+
{
|
|
368
|
+
"name": "checked",
|
|
369
|
+
"description": "Whether checkbox is checked.",
|
|
370
|
+
"values": []
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "disabled",
|
|
374
|
+
"description": "Prevents interaction.",
|
|
375
|
+
"values": []
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "required",
|
|
379
|
+
"description": "Marks as required. Validates that checkbox is checked.",
|
|
380
|
+
"values": []
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "label",
|
|
384
|
+
"description": "Visible label text. Required for accessibility.",
|
|
385
|
+
"values": []
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "description",
|
|
389
|
+
"description": "Helper text below label. Use slot for custom HTML.",
|
|
390
|
+
"values": []
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"name": "id",
|
|
394
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
395
|
+
"values": []
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "name",
|
|
399
|
+
"description": "Name for form submission. Use same name for grouped checkboxes.",
|
|
400
|
+
"values": []
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "value",
|
|
404
|
+
"description": "Value submitted when checked.",
|
|
405
|
+
"values": []
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "form",
|
|
409
|
+
"description": "Form `id` to associate with when checkbox is outside form element.",
|
|
410
|
+
"values": []
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "showError",
|
|
414
|
+
"description": "Shows error message when true.",
|
|
415
|
+
"values": []
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "errorMessage",
|
|
419
|
+
"description": "Error message text. Shown only when `showError` is true.",
|
|
420
|
+
"values": []
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "groupExist",
|
|
424
|
+
"description": "Internal: Set by parent checkboxgroup. Do not set manually.",
|
|
425
|
+
"values": []
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "tile",
|
|
429
|
+
"description": "Renders as tile with larger clickable area. Apply to group for consistency.",
|
|
430
|
+
"values": []
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"name": "inverted",
|
|
434
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
435
|
+
"values": []
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "tooltip",
|
|
439
|
+
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
440
|
+
"values": []
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "size",
|
|
444
|
+
"description": "Checkbox size: `sm` (24px) or `md` (32px, default).",
|
|
445
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
446
|
+
}
|
|
181
447
|
],
|
|
182
448
|
"references": []
|
|
183
449
|
},
|
|
184
450
|
{
|
|
185
451
|
"name": "nys-checkboxgroup",
|
|
186
|
-
"description": "
|
|
452
|
+
"description": "Container for grouping checkboxes as a single form control.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `nys-checkbox` elements.\n- **description** - Custom HTML description content.",
|
|
453
|
+
"attributes": [
|
|
454
|
+
{
|
|
455
|
+
"name": "id",
|
|
456
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
457
|
+
"values": []
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "name",
|
|
461
|
+
"description": "Name for form submission. Set on group, not individual checkboxes.",
|
|
462
|
+
"values": []
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "required",
|
|
466
|
+
"description": "Requires at least one checkbox to be checked.",
|
|
467
|
+
"values": []
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "optional",
|
|
471
|
+
"description": "Shows \"Optional\" flag.",
|
|
472
|
+
"values": []
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "showError",
|
|
476
|
+
"description": "Shows error message when true.",
|
|
477
|
+
"values": []
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "errorMessage",
|
|
481
|
+
"description": "Error message text. Shown only when `showError` is true.",
|
|
482
|
+
"values": []
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "label",
|
|
486
|
+
"description": "Visible label text for the group.",
|
|
487
|
+
"values": []
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "description",
|
|
491
|
+
"description": "Helper text below label. Use slot for custom HTML.",
|
|
492
|
+
"values": []
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "tile",
|
|
496
|
+
"description": "Renders all checkboxes as tiles with larger clickable area.",
|
|
497
|
+
"values": []
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"name": "tooltip",
|
|
501
|
+
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
502
|
+
"values": []
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "inverted",
|
|
506
|
+
"description": "Adjusts colors for dark backgrounds. Applied to all children.",
|
|
507
|
+
"values": []
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "form",
|
|
511
|
+
"description": "Form `id` to associate with. Applied to all children.",
|
|
512
|
+
"values": []
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "size",
|
|
516
|
+
"description": "Checkbox size for all children: `sm` (24px) or `md` (32px, default).",
|
|
517
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
518
|
+
}
|
|
519
|
+
],
|
|
520
|
+
"references": []
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "nys-datepicker",
|
|
524
|
+
"description": "`<nys-datepicker>` is a form-associated, accessible date picker component.\nOptionally wraps a `<wc-datepicker>` for custom calendar UI.\n\nEvents:\n---\n\n\n### **Events:**\n - **nys-blur** - Dispatched when input or calendar loses focus\n- **nys-input** - Dispatched when user selects or types a valid date Notes: - Uses native date input on Safari or mobile devices (custom calendar removed for these scenarios)\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Passive check of validity:\n- Returns true/false\n- Does NOT update UI or show errors\n- Used in form submission checks",
|
|
187
525
|
"attributes": [
|
|
188
526
|
{ "name": "id", "values": [] },
|
|
189
527
|
{ "name": "name", "values": [] },
|
|
528
|
+
{
|
|
529
|
+
"name": "width",
|
|
530
|
+
"values": [{ "name": "md" }, { "name": "lg" }, { "name": "full" }]
|
|
531
|
+
},
|
|
532
|
+
{ "name": "hideTodayButton", "values": [] },
|
|
533
|
+
{ "name": "hideClearButton", "values": [] },
|
|
534
|
+
{ "name": "disabled", "values": [] },
|
|
190
535
|
{ "name": "required", "values": [] },
|
|
191
536
|
{ "name": "optional", "values": [] },
|
|
192
537
|
{ "name": "showError", "values": [] },
|
|
193
538
|
{ "name": "errorMessage", "values": [] },
|
|
539
|
+
{ "name": "form", "values": [] },
|
|
540
|
+
{ "name": "tooltip", "values": [] },
|
|
541
|
+
{ "name": "type", "values": [] },
|
|
194
542
|
{ "name": "label", "values": [] },
|
|
195
543
|
{ "name": "description", "values": [] },
|
|
196
|
-
{ "name": "
|
|
197
|
-
{ "name": "tooltip", "values": [] },
|
|
544
|
+
{ "name": "startDate", "values": [] },
|
|
198
545
|
{ "name": "inverted", "values": [] },
|
|
199
|
-
{ "name": "
|
|
200
|
-
{ "name": "size", "values": [{ "name": "sm" }, { "name": "md" }] }
|
|
546
|
+
{ "name": "value", "values": [{ "name": "Date" }] }
|
|
201
547
|
],
|
|
202
548
|
"references": []
|
|
203
549
|
},
|
|
204
550
|
{
|
|
205
551
|
"name": "nys-divider",
|
|
206
|
-
"description": "
|
|
207
|
-
"attributes": [
|
|
552
|
+
"description": "Horizontal divider for visual separation of content sections.\n---\n",
|
|
553
|
+
"attributes": [
|
|
554
|
+
{
|
|
555
|
+
"name": "inverted",
|
|
556
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
557
|
+
"values": []
|
|
558
|
+
}
|
|
559
|
+
],
|
|
208
560
|
"references": []
|
|
209
561
|
},
|
|
210
562
|
{
|
|
211
563
|
"name": "nys-errormessage",
|
|
212
|
-
"description": "
|
|
564
|
+
"description": "Internal error message display with icon and ARIA alert support.\n---\n",
|
|
213
565
|
"attributes": [
|
|
214
|
-
{
|
|
215
|
-
|
|
216
|
-
|
|
566
|
+
{
|
|
567
|
+
"name": "showError",
|
|
568
|
+
"description": "Whether to display the error message.",
|
|
569
|
+
"values": []
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "errorMessage",
|
|
573
|
+
"description": "Error text to display. Falls back to native validation message if available.",
|
|
574
|
+
"values": []
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "showDivider",
|
|
578
|
+
"description": "Shows a divider line above the error message.",
|
|
579
|
+
"values": []
|
|
580
|
+
}
|
|
217
581
|
],
|
|
218
582
|
"references": []
|
|
219
583
|
},
|
|
220
584
|
{
|
|
221
585
|
"name": "nys-fileinput",
|
|
222
|
-
"description": "
|
|
586
|
+
"description": "File input with drag-and-drop, validation, and progress tracking.\n---\n\n\n### **Events:**\n - **nys-change** - Fired when files are added or removed. Detail: `{id, files}`.\n\n### **Slots:**\n - **description** - Custom HTML description content.",
|
|
223
587
|
"attributes": [
|
|
224
|
-
{
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
{
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
{ "name": "
|
|
235
|
-
{
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
588
|
+
{
|
|
589
|
+
"name": "id",
|
|
590
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
591
|
+
"values": []
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "name",
|
|
595
|
+
"description": "Name for form submission.",
|
|
596
|
+
"values": []
|
|
597
|
+
},
|
|
598
|
+
{ "name": "label", "description": "Visible label text.", "values": [] },
|
|
599
|
+
{
|
|
600
|
+
"name": "description",
|
|
601
|
+
"description": "Helper text below label. Use slot for custom HTML.",
|
|
602
|
+
"values": []
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "multiple",
|
|
606
|
+
"description": "Allows selecting multiple files.",
|
|
607
|
+
"values": []
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "form",
|
|
611
|
+
"description": "Form `id` to associate with.",
|
|
612
|
+
"values": []
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"name": "tooltip",
|
|
616
|
+
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
617
|
+
"values": []
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"name": "accept",
|
|
621
|
+
"description": "Accepted file types. Use MIME types (`image/*`) or extensions (`.pdf`). Validated via magic bytes.",
|
|
622
|
+
"values": []
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"name": "disabled",
|
|
626
|
+
"description": "Prevents interaction.",
|
|
627
|
+
"values": []
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "required",
|
|
631
|
+
"description": "Requires at least one file to be uploaded.",
|
|
632
|
+
"values": []
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "optional",
|
|
636
|
+
"description": "Shows \"Optional\" flag.",
|
|
637
|
+
"values": []
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"name": "showError",
|
|
641
|
+
"description": "Shows error message when true.",
|
|
642
|
+
"values": []
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "errorMessage",
|
|
646
|
+
"description": "Error message text. Shown only when `showError` is true.",
|
|
647
|
+
"values": []
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"name": "dropzone",
|
|
651
|
+
"description": "Enables drag-and-drop zone UI.",
|
|
652
|
+
"values": []
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"name": "width",
|
|
656
|
+
"description": "Component width: `lg` (384px) or `full` (100%, default).",
|
|
657
|
+
"values": [{ "name": "lg" }, { "name": "full" }]
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"name": "inverted",
|
|
661
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
662
|
+
"values": []
|
|
663
|
+
}
|
|
240
664
|
],
|
|
241
665
|
"references": []
|
|
242
666
|
},
|
|
243
667
|
{
|
|
244
668
|
"name": "nys-fileitem",
|
|
245
|
-
"description": "
|
|
669
|
+
"description": "Internal file item display with status, progress bar, and remove action.\n---\n\n\n### **Events:**\n - **nys-fileRemove** - Fired when remove button is clicked. Detail: `{filename}`.",
|
|
246
670
|
"attributes": [
|
|
247
|
-
{
|
|
671
|
+
{
|
|
672
|
+
"name": "filename",
|
|
673
|
+
"description": "Name of the file being displayed.",
|
|
674
|
+
"values": []
|
|
675
|
+
},
|
|
248
676
|
{
|
|
249
677
|
"name": "status",
|
|
678
|
+
"description": "Upload status: `pending` (queued), `processing` (uploading), `done` (complete), `error` (failed).",
|
|
250
679
|
"values": [
|
|
251
680
|
{ "name": "" },
|
|
252
681
|
{ "name": "pending" },
|
|
@@ -255,41 +684,90 @@
|
|
|
255
684
|
{ "name": "error" }
|
|
256
685
|
]
|
|
257
686
|
},
|
|
258
|
-
{
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
687
|
+
{
|
|
688
|
+
"name": "progress",
|
|
689
|
+
"description": "Upload progress percentage (0-100). Only shown when status is `processing`.",
|
|
690
|
+
"values": []
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "errorMessage",
|
|
694
|
+
"description": "Error message displayed when status is `error`.",
|
|
695
|
+
"values": []
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
"references": []
|
|
262
699
|
},
|
|
263
700
|
{
|
|
264
701
|
"name": "nys-globalfooter",
|
|
265
|
-
"description": "
|
|
702
|
+
"description": "Agency footer with auto-layout for contact info and link sections.\n---\n\n\n### **Slots:**\n - _default_ - Footer content (links, contact info). Use `<h4>` for column headings.",
|
|
266
703
|
"attributes": [
|
|
267
|
-
{
|
|
268
|
-
|
|
704
|
+
{
|
|
705
|
+
"name": "agencyName",
|
|
706
|
+
"description": "Agency name displayed as the footer heading.",
|
|
707
|
+
"values": []
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "homepageLink",
|
|
711
|
+
"description": "URL for the agency name link. If empty, name is not clickable.",
|
|
712
|
+
"values": []
|
|
713
|
+
}
|
|
269
714
|
],
|
|
270
715
|
"references": []
|
|
271
716
|
},
|
|
272
717
|
{
|
|
273
718
|
"name": "nys-globalheader",
|
|
274
|
-
"description": "
|
|
719
|
+
"description": "Agency header with navigation, mobile menu, and active link highlighting.\n---\n\n\n### **Slots:**\n - _default_ - Navigation content (typically `<ul>` with `<li><a>` links). Auto-sanitized.",
|
|
275
720
|
"attributes": [
|
|
276
|
-
{
|
|
277
|
-
|
|
278
|
-
|
|
721
|
+
{
|
|
722
|
+
"name": "appName",
|
|
723
|
+
"description": "Application name displayed prominently.",
|
|
724
|
+
"values": []
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"name": "agencyName",
|
|
728
|
+
"description": "Agency name displayed below app name (or as main title if no appName).",
|
|
729
|
+
"values": []
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"name": "homepageLink",
|
|
733
|
+
"description": "URL for the header title link. If empty, title is not clickable.",
|
|
734
|
+
"values": []
|
|
735
|
+
}
|
|
279
736
|
],
|
|
280
737
|
"references": []
|
|
281
738
|
},
|
|
282
739
|
{
|
|
283
740
|
"name": "nys-icon",
|
|
284
|
-
"description": "
|
|
741
|
+
"description": "SVG icon from Material Symbols library with size, rotation, and color options.\n---\n",
|
|
285
742
|
"attributes": [
|
|
286
|
-
{
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
743
|
+
{
|
|
744
|
+
"name": "name",
|
|
745
|
+
"description": "Icon name from Material Symbols library. Required.",
|
|
746
|
+
"values": []
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"name": "ariaLabel",
|
|
750
|
+
"description": "Accessible label. When set, removes `aria-hidden` and adds `aria-label` to the SVG.",
|
|
751
|
+
"values": []
|
|
752
|
+
},
|
|
753
|
+
{
|
|
754
|
+
"name": "rotate",
|
|
755
|
+
"description": "Rotation in degrees. Applied via CSS `rotate`.",
|
|
756
|
+
"values": []
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"name": "flip",
|
|
760
|
+
"description": "Flip direction: `horizontal`, `vertical`, or empty for none.",
|
|
761
|
+
"values": []
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"name": "color",
|
|
765
|
+
"description": "Icon color. Accepts any CSS color value. Defaults to `currentcolor`.",
|
|
766
|
+
"values": []
|
|
767
|
+
},
|
|
291
768
|
{
|
|
292
769
|
"name": "size",
|
|
770
|
+
"description": "Icon size. Semantic sizes: `xs`-`5xl`. Pixel sizes: `12`-`50`.",
|
|
293
771
|
"values": [
|
|
294
772
|
{ "name": "" },
|
|
295
773
|
{ "name": "xs" },
|
|
@@ -317,28 +795,73 @@
|
|
|
317
795
|
},
|
|
318
796
|
{
|
|
319
797
|
"name": "nys-label",
|
|
320
|
-
"description": "
|
|
798
|
+
"description": "Internal label component for form fields with flag and tooltip support.\n---\n\n\n### **Slots:**\n - **description** - Custom HTML description content below the label.",
|
|
321
799
|
"attributes": [
|
|
322
|
-
{
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
{
|
|
800
|
+
{
|
|
801
|
+
"name": "for",
|
|
802
|
+
"description": "ID of the form element this label is associated with.",
|
|
803
|
+
"values": []
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"name": "label",
|
|
807
|
+
"description": "Label text displayed above the form field.",
|
|
808
|
+
"values": []
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"name": "description",
|
|
812
|
+
"description": "Helper text displayed below the label.",
|
|
813
|
+
"values": []
|
|
814
|
+
},
|
|
815
|
+
{
|
|
816
|
+
"name": "flag",
|
|
817
|
+
"description": "Flag type: `required` shows asterisk, `optional` shows \"(Optional)\".",
|
|
818
|
+
"values": []
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"name": "inverted",
|
|
822
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
823
|
+
"values": []
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"name": "tooltip",
|
|
827
|
+
"description": "Tooltip text shown on hover/focus of info icon next to label.",
|
|
828
|
+
"values": []
|
|
829
|
+
}
|
|
328
830
|
],
|
|
329
831
|
"references": []
|
|
330
832
|
},
|
|
331
833
|
{
|
|
332
834
|
"name": "nys-modal",
|
|
333
|
-
"description": "
|
|
835
|
+
"description": "Accessible modal dialog with focus trap, keyboard support, and action slots.\n---\n\n\n### **Events:**\n - **nys-open** - Fired when modal opens. Detail: `{id}`.\n- **nys-close** - Fired when modal closes. Detail: `{id}`.\n\n### **Slots:**\n - _default_ - Default slot for body content.\n- **actions** - Action buttons displayed in footer. Buttons auto-resize on mobile.",
|
|
334
836
|
"attributes": [
|
|
335
|
-
{
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
837
|
+
{
|
|
838
|
+
"name": "id",
|
|
839
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
840
|
+
"values": []
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"name": "heading",
|
|
844
|
+
"description": "Modal heading text. Required for accessibility.",
|
|
845
|
+
"values": []
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"name": "subheading",
|
|
849
|
+
"description": "Secondary heading below the main heading.",
|
|
850
|
+
"values": []
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"name": "open",
|
|
854
|
+
"description": "Controls modal visibility. Set to `true` to show.",
|
|
855
|
+
"values": []
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"name": "mandatory",
|
|
859
|
+
"description": "Prevents dismissal via close button or Escape key. User must take an action.",
|
|
860
|
+
"values": []
|
|
861
|
+
},
|
|
340
862
|
{
|
|
341
863
|
"name": "width",
|
|
864
|
+
"description": "Modal width: `sm` (400px), `md` (600px), or `lg` (800px).",
|
|
342
865
|
"values": [{ "name": "sm" }, { "name": "md" }, { "name": "lg" }]
|
|
343
866
|
}
|
|
344
867
|
],
|
|
@@ -346,86 +869,279 @@
|
|
|
346
869
|
},
|
|
347
870
|
{
|
|
348
871
|
"name": "nys-pagination",
|
|
349
|
-
"description": "
|
|
872
|
+
"description": "Page navigation with numbered links, prev/next buttons, and responsive layout.\n---\n\n\n### **Events:**\n - **nys-change** - Fired when page changes. Detail: `{page}`.",
|
|
350
873
|
"attributes": [
|
|
351
|
-
{
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
874
|
+
{
|
|
875
|
+
"name": "id",
|
|
876
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
877
|
+
"values": []
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"name": "name",
|
|
881
|
+
"description": "Name attribute for form association.",
|
|
882
|
+
"values": []
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"name": "currentPage",
|
|
886
|
+
"description": "Currently active page (1-indexed). Clamped to valid range.",
|
|
887
|
+
"values": []
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"name": "totalPages",
|
|
891
|
+
"description": "Total number of pages. Must be at least 1.",
|
|
892
|
+
"values": []
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"name": "_twoBeforeLast",
|
|
896
|
+
"description": "Internal state for layout adjustments near the end.",
|
|
897
|
+
"values": []
|
|
898
|
+
}
|
|
356
899
|
],
|
|
357
900
|
"references": []
|
|
358
901
|
},
|
|
359
902
|
{
|
|
360
903
|
"name": "nys-radiobutton",
|
|
361
|
-
"description": "
|
|
904
|
+
"description": "Radio button for single selection from mutually exclusive options.\n---\n\n\n### **Events:**\n - **nys-change** - Fired when selection changes. Detail: `{id, checked, name, value}`.\n- **nys-focus** - Fired when radio gains focus.\n- **nys-blur** - Fired when radio loses focus.\n\n### **Methods:**\n - **getInputElement(): _Promise<HTMLInputElement | null>_** - Functions\n--------------------------------------------------------------------------\n\n### **Slots:**\n - **description** - Custom HTML description content.",
|
|
362
905
|
"attributes": [
|
|
363
|
-
{
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
{
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
{
|
|
374
|
-
|
|
906
|
+
{
|
|
907
|
+
"name": "checked",
|
|
908
|
+
"description": "Whether this radio is selected. Only one per group can be checked.",
|
|
909
|
+
"values": []
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "disabled",
|
|
913
|
+
"description": "Prevents interaction.",
|
|
914
|
+
"values": []
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"name": "required",
|
|
918
|
+
"description": "Marks group as required. Set on radiogroup, not individual radios.",
|
|
919
|
+
"values": []
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"name": "label",
|
|
923
|
+
"description": "Visible label text. Required for accessibility.",
|
|
924
|
+
"values": []
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"name": "description",
|
|
928
|
+
"description": "Helper text below label. Use slot for custom HTML.",
|
|
929
|
+
"values": []
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"name": "id",
|
|
933
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
934
|
+
"values": []
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"name": "name",
|
|
938
|
+
"description": "Group name. Radios with same name are mutually exclusive.",
|
|
939
|
+
"values": []
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"name": "value",
|
|
943
|
+
"description": "Value submitted when this radio is selected.",
|
|
944
|
+
"values": []
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "inverted",
|
|
948
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
949
|
+
"values": []
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "form",
|
|
953
|
+
"description": "Form `id` to associate with.",
|
|
954
|
+
"values": []
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"name": "size",
|
|
958
|
+
"description": "Radio size: `sm` (24px) or `md` (32px, default).",
|
|
959
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "tile",
|
|
963
|
+
"description": "Renders as tile with larger clickable area.",
|
|
964
|
+
"values": []
|
|
965
|
+
}
|
|
375
966
|
],
|
|
376
967
|
"references": []
|
|
377
968
|
},
|
|
378
969
|
{
|
|
379
970
|
"name": "nys-radiogroup",
|
|
380
|
-
"description": "
|
|
971
|
+
"description": "Container for grouping radio buttons as a single form control.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `nys-radiobutton` elements.\n- **description** - Custom HTML description content.",
|
|
381
972
|
"attributes": [
|
|
382
|
-
{
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
{
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
{
|
|
393
|
-
|
|
394
|
-
|
|
973
|
+
{
|
|
974
|
+
"name": "id",
|
|
975
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
976
|
+
"values": []
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"name": "name",
|
|
980
|
+
"description": "Name for form submission. Auto-populated from child radiobuttons.",
|
|
981
|
+
"values": []
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"name": "required",
|
|
985
|
+
"description": "Requires a selection before form submission.",
|
|
986
|
+
"values": []
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"name": "optional",
|
|
990
|
+
"description": "Shows \"Optional\" flag.",
|
|
991
|
+
"values": []
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"name": "showError",
|
|
995
|
+
"description": "Shows error message when true.",
|
|
996
|
+
"values": []
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"name": "errorMessage",
|
|
1000
|
+
"description": "Error message text. Shown only when `showError` is true.",
|
|
1001
|
+
"values": []
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"name": "label",
|
|
1005
|
+
"description": "Visible label text for the group.",
|
|
1006
|
+
"values": []
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"name": "description",
|
|
1010
|
+
"description": "Helper text below label. Use slot for custom HTML.",
|
|
1011
|
+
"values": []
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"name": "tile",
|
|
1015
|
+
"description": "Renders all radiobuttons as tiles with larger clickable area.",
|
|
1016
|
+
"values": []
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"name": "tooltip",
|
|
1020
|
+
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
1021
|
+
"values": []
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"name": "inverted",
|
|
1025
|
+
"description": "Adjusts colors for dark backgrounds. Applied to all children.",
|
|
1026
|
+
"values": []
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"name": "form",
|
|
1030
|
+
"description": "Form `id` to associate with. Applied to all children.",
|
|
1031
|
+
"values": []
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"name": "size",
|
|
1035
|
+
"description": "Radio size for all children: `sm` (24px) or `md` (32px, default).",
|
|
1036
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
1037
|
+
}
|
|
395
1038
|
],
|
|
396
1039
|
"references": []
|
|
397
1040
|
},
|
|
398
1041
|
{
|
|
399
1042
|
"name": "nys-option",
|
|
400
|
-
"description": "
|
|
1043
|
+
"description": "Option item for nys-select dropdown.\n---\n\n\n### **Slots:**\n - _default_ - Option label text. Auto-populates the `label` prop if provided.",
|
|
401
1044
|
"attributes": [
|
|
402
|
-
{
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
1045
|
+
{
|
|
1046
|
+
"name": "disabled",
|
|
1047
|
+
"description": "Prevents selection of this option.",
|
|
1048
|
+
"values": []
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "selected",
|
|
1052
|
+
"description": "Pre-selects this option.",
|
|
1053
|
+
"values": []
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"name": "value",
|
|
1057
|
+
"description": "Value submitted when this option is selected.",
|
|
1058
|
+
"values": []
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"name": "label",
|
|
1062
|
+
"description": "Display text for the option. Auto-populated from slot content if not set.",
|
|
1063
|
+
"values": []
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"name": "hidden",
|
|
1067
|
+
"description": "Hides the option from the dropdown list.",
|
|
1068
|
+
"values": []
|
|
1069
|
+
}
|
|
407
1070
|
],
|
|
408
1071
|
"references": []
|
|
409
1072
|
},
|
|
410
1073
|
{
|
|
411
1074
|
"name": "nys-select",
|
|
412
|
-
"description": "
|
|
1075
|
+
"description": "Dropdown select for choosing one option from a list.\n---\n\n\n### **Events:**\n - **nys-change** - Fired when selection changes. Detail: `{id, value}`.\n- **nys-focus** - Fired when select gains focus.\n- **nys-blur** - Fired when select loses focus. Triggers validation.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Functions\n--------------------------------------------------------------------------\n\n### **Slots:**\n - _default_ - Default slot for `<option>` and `<optgroup>` elements.\n- **description** - Custom HTML description content below the label.",
|
|
413
1076
|
"attributes": [
|
|
414
|
-
{
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
{
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
{
|
|
425
|
-
|
|
426
|
-
|
|
1077
|
+
{
|
|
1078
|
+
"name": "id",
|
|
1079
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
1080
|
+
"values": []
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "name",
|
|
1084
|
+
"description": "Name for form submission.",
|
|
1085
|
+
"values": []
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "label",
|
|
1089
|
+
"description": "Visible label text. Required for accessibility.",
|
|
1090
|
+
"values": []
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
"name": "description",
|
|
1094
|
+
"description": "Helper text below label. Use slot for custom HTML.",
|
|
1095
|
+
"values": []
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"name": "value",
|
|
1099
|
+
"description": "Currently selected option value.",
|
|
1100
|
+
"values": []
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "disabled",
|
|
1104
|
+
"description": "Prevents interaction.",
|
|
1105
|
+
"values": []
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"name": "required",
|
|
1109
|
+
"description": "Marks as required. Shows \"Required\" flag and validates on blur.",
|
|
1110
|
+
"values": []
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"name": "optional",
|
|
1114
|
+
"description": "Shows \"Optional\" flag. Use when most fields are required.",
|
|
1115
|
+
"values": []
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"name": "tooltip",
|
|
1119
|
+
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
1120
|
+
"values": []
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"name": "form",
|
|
1124
|
+
"description": "Form `id` to associate with when select is outside form element.",
|
|
1125
|
+
"values": []
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"name": "inverted",
|
|
1129
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
1130
|
+
"values": []
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"name": "showError",
|
|
1134
|
+
"description": "Shows error message when true. Set by validation or manually.",
|
|
1135
|
+
"values": []
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"name": "errorMessage",
|
|
1139
|
+
"description": "Error message text. Shown only when `showError` is true.",
|
|
1140
|
+
"values": []
|
|
1141
|
+
},
|
|
427
1142
|
{
|
|
428
1143
|
"name": "width",
|
|
1144
|
+
"description": "Select width: `sm` (88px), `md` (200px), `lg` (384px), `full` (100%, default).",
|
|
429
1145
|
"values": [
|
|
430
1146
|
{ "name": "" },
|
|
431
1147
|
{ "name": "sm" },
|
|
@@ -439,58 +1155,176 @@
|
|
|
439
1155
|
},
|
|
440
1156
|
{
|
|
441
1157
|
"name": "nys-skipnav",
|
|
442
|
-
"description": "
|
|
1158
|
+
"description": "Skip navigation link for keyboard accessibility. Hidden until focused.\n---\n",
|
|
443
1159
|
"attributes": [
|
|
444
|
-
{
|
|
445
|
-
|
|
1160
|
+
{
|
|
1161
|
+
"name": "id",
|
|
1162
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
1163
|
+
"values": []
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"name": "href",
|
|
1167
|
+
"description": "Target element ID (with `#`). Defaults to `#main-content`.",
|
|
1168
|
+
"values": []
|
|
1169
|
+
}
|
|
446
1170
|
],
|
|
447
1171
|
"references": []
|
|
448
1172
|
},
|
|
449
1173
|
{
|
|
450
1174
|
"name": "nys-step",
|
|
451
|
-
"description": "
|
|
1175
|
+
"description": "Individual step for use within nys-stepper with navigation support.\n---\n\n\n### **Events:**\n - **nys-step-click** - Fired when a navigable step is clicked. Detail: `{href, label}`. Cancelable.",
|
|
452
1176
|
"attributes": [
|
|
453
|
-
{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
{
|
|
1177
|
+
{
|
|
1178
|
+
"name": "selected",
|
|
1179
|
+
"description": "Whether this step is currently being viewed. Set by parent stepper.",
|
|
1180
|
+
"values": []
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"name": "current",
|
|
1184
|
+
"description": "Marks the furthest reached step. Steps before this are navigable.",
|
|
1185
|
+
"values": []
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"name": "label",
|
|
1189
|
+
"description": "Step label text displayed alongside the step number.",
|
|
1190
|
+
"values": []
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"name": "href",
|
|
1194
|
+
"description": "URL for page navigation when step is clicked. Optional for SPA routing.",
|
|
1195
|
+
"values": []
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"name": "isCompactExpanded",
|
|
1199
|
+
"description": "Internal: Whether parent stepper's compact view is expanded.",
|
|
1200
|
+
"values": []
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "stepNumber",
|
|
1204
|
+
"description": "Step number (1-indexed). Auto-assigned by parent stepper.",
|
|
1205
|
+
"values": []
|
|
1206
|
+
}
|
|
459
1207
|
],
|
|
460
1208
|
"references": []
|
|
461
1209
|
},
|
|
462
1210
|
{
|
|
463
1211
|
"name": "nys-stepper",
|
|
464
|
-
"description": "
|
|
1212
|
+
"description": "Multi-step progress indicator with navigation and mobile-friendly compact view.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `nys-step` elements.\n- **actions** - Navigation buttons (e.g., Back, Continue). Must be wrapped in a `<div>`.",
|
|
1213
|
+
"attributes": [
|
|
1214
|
+
{ "name": "id", "description": "Unique identifier.", "values": [] },
|
|
1215
|
+
{
|
|
1216
|
+
"name": "name",
|
|
1217
|
+
"description": "Name attribute for form association.",
|
|
1218
|
+
"values": []
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"name": "label",
|
|
1222
|
+
"description": "Title displayed above the step counter.",
|
|
1223
|
+
"values": []
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"name": "counterText",
|
|
1227
|
+
"description": "Progress text (e.g., \"Step 2 of 5\"). Auto-updated based on selection.",
|
|
1228
|
+
"values": []
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"name": "isCompactExpanded",
|
|
1232
|
+
"description": "Whether compact mobile view is expanded to show all steps.",
|
|
1233
|
+
"values": []
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
"references": []
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"name": "nys-table",
|
|
1240
|
+
"description": "`<nys-table>` is a responsive table component that can display native HTML tables,\nsupports striped and bordered styling, sortable columns, and CSV download.\n---\n\n\n### **Events:**\n - **nys-click** - Fired when the download button or sortable headers are clicked.\n\n### **Slots:**\n - _default_ - Accepts a `<table>` element. Only the first table is rendered.",
|
|
465
1241
|
"attributes": [
|
|
466
1242
|
{ "name": "id", "values": [] },
|
|
467
1243
|
{ "name": "name", "values": [] },
|
|
468
|
-
{ "name": "
|
|
469
|
-
{ "name": "
|
|
470
|
-
{ "name": "
|
|
1244
|
+
{ "name": "striped", "values": [] },
|
|
1245
|
+
{ "name": "sortable", "values": [] },
|
|
1246
|
+
{ "name": "bordered", "values": [] },
|
|
1247
|
+
{ "name": "download", "values": [] }
|
|
471
1248
|
],
|
|
472
1249
|
"references": []
|
|
473
1250
|
},
|
|
474
1251
|
{
|
|
475
1252
|
"name": "nys-textarea",
|
|
476
|
-
"description": "
|
|
1253
|
+
"description": "Multi-line text input for comments, descriptions, and feedback.\n---\n\n\n### **Events:**\n - **nys-input** - Fired on input change. Detail: `{id, value}`.\n- **nys-focus** - Fired when textarea gains focus.\n- **nys-blur** - Fired when textarea loses focus. Triggers validation.\n- **nys-select** - Fired when user selects text. Detail: `{id, value}`.\n- **nys-selectionchange**\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Functions\n--------------------------------------------------------------------------\n\n### **Slots:**\n - **description** - Custom HTML description content below the label.",
|
|
477
1254
|
"attributes": [
|
|
478
|
-
{
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
{
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
{
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
1255
|
+
{
|
|
1256
|
+
"name": "id",
|
|
1257
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
1258
|
+
"values": []
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"name": "name",
|
|
1262
|
+
"description": "Name for form submission.",
|
|
1263
|
+
"values": []
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "label",
|
|
1267
|
+
"description": "Visible label text. Required for accessibility.",
|
|
1268
|
+
"values": []
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"name": "description",
|
|
1272
|
+
"description": "Helper text below label. Use slot for custom HTML.",
|
|
1273
|
+
"values": []
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"name": "placeholder",
|
|
1277
|
+
"description": "Placeholder text. Don't use as label replacement.",
|
|
1278
|
+
"values": []
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"name": "value",
|
|
1282
|
+
"description": "Current textarea value.",
|
|
1283
|
+
"values": []
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"name": "disabled",
|
|
1287
|
+
"description": "Prevents interaction.",
|
|
1288
|
+
"values": []
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "readonly",
|
|
1292
|
+
"description": "Makes textarea read-only but focusable.",
|
|
1293
|
+
"values": []
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "required",
|
|
1297
|
+
"description": "Marks as required. Shows \"Required\" flag and validates on blur.",
|
|
1298
|
+
"values": []
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"name": "optional",
|
|
1302
|
+
"description": "Shows \"Optional\" flag. Use when most fields are required.",
|
|
1303
|
+
"values": []
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"name": "tooltip",
|
|
1307
|
+
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
1308
|
+
"values": []
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "inverted",
|
|
1312
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
1313
|
+
"values": []
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"name": "form",
|
|
1317
|
+
"description": "Form `id` to associate with when textarea is outside form element.",
|
|
1318
|
+
"values": []
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"name": "maxlength",
|
|
1322
|
+
"description": "Maximum character length.",
|
|
1323
|
+
"values": []
|
|
1324
|
+
},
|
|
492
1325
|
{
|
|
493
1326
|
"name": "width",
|
|
1327
|
+
"description": "Textarea width: `sm` (88px), `md` (200px), `lg` (384px), `full` (100%, default).",
|
|
494
1328
|
"values": [
|
|
495
1329
|
{ "name": "" },
|
|
496
1330
|
{ "name": "sm" },
|
|
@@ -499,24 +1333,46 @@
|
|
|
499
1333
|
{ "name": "full" }
|
|
500
1334
|
]
|
|
501
1335
|
},
|
|
502
|
-
{
|
|
1336
|
+
{
|
|
1337
|
+
"name": "rows",
|
|
1338
|
+
"description": "Visible height in lines.",
|
|
1339
|
+
"values": []
|
|
1340
|
+
},
|
|
503
1341
|
{
|
|
504
1342
|
"name": "resize",
|
|
1343
|
+
"description": "Resize behavior: `vertical` (default, user can resize height), `none` (fixed size).",
|
|
505
1344
|
"values": [{ "name": "vertical" }, { "name": "none" }]
|
|
506
1345
|
},
|
|
507
|
-
{
|
|
508
|
-
|
|
1346
|
+
{
|
|
1347
|
+
"name": "showError",
|
|
1348
|
+
"description": "Shows error message when true. Set by validation or manually.",
|
|
1349
|
+
"values": []
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"name": "errorMessage",
|
|
1353
|
+
"description": "Error message text. Shown only when `showError` is true.",
|
|
1354
|
+
"values": []
|
|
1355
|
+
}
|
|
509
1356
|
],
|
|
510
1357
|
"references": []
|
|
511
1358
|
},
|
|
512
1359
|
{
|
|
513
1360
|
"name": "nys-textinput",
|
|
514
|
-
"description": "
|
|
1361
|
+
"description": "Text input for short single-line data with validation and masking support.\n---\n\n\n### **Events:**\n - **nys-input** - Fired on input change. Detail: `{id, value}`.\n- **nys-focus** - Fired when input gains focus.\n- **nys-blur** - Fired when input loses focus. Triggers validation.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Functions\n--------------------------------------------------------------------------\n\n### **Slots:**\n - **description** - Custom HTML description content below the label.\n- **startButton** - Button at input start. Use single `nys-button` only.\n- **endButton** - Button at input end. Use single `nys-button` only.",
|
|
515
1362
|
"attributes": [
|
|
516
|
-
{
|
|
517
|
-
|
|
1363
|
+
{
|
|
1364
|
+
"name": "id",
|
|
1365
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
1366
|
+
"values": []
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"name": "name",
|
|
1370
|
+
"description": "Name for form submission.",
|
|
1371
|
+
"values": []
|
|
1372
|
+
},
|
|
518
1373
|
{
|
|
519
1374
|
"name": "type",
|
|
1375
|
+
"description": "Input type: `text` (default), `email`, `number`, `password`, `search`, `tel` (auto-masked), `url`.",
|
|
520
1376
|
"values": [
|
|
521
1377
|
{ "name": "" },
|
|
522
1378
|
{ "name": "email" },
|
|
@@ -528,20 +1384,69 @@
|
|
|
528
1384
|
{ "name": "url" }
|
|
529
1385
|
]
|
|
530
1386
|
},
|
|
531
|
-
{
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
{
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
{
|
|
542
|
-
|
|
1387
|
+
{
|
|
1388
|
+
"name": "label",
|
|
1389
|
+
"description": "Visible label text. Required for accessibility.",
|
|
1390
|
+
"values": []
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"name": "description",
|
|
1394
|
+
"description": "Helper text below label. Use slot for custom HTML.",
|
|
1395
|
+
"values": []
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"name": "placeholder",
|
|
1399
|
+
"description": "Placeholder text. Don't use as label replacement.",
|
|
1400
|
+
"values": []
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"name": "value",
|
|
1404
|
+
"description": "Current input value.",
|
|
1405
|
+
"values": []
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"name": "disabled",
|
|
1409
|
+
"description": "Prevents interaction.",
|
|
1410
|
+
"values": []
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"name": "readonly",
|
|
1414
|
+
"description": "Makes input read-only but focusable.",
|
|
1415
|
+
"values": []
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"name": "required",
|
|
1419
|
+
"description": "Marks as required. Shows \"Required\" flag and validates on blur.",
|
|
1420
|
+
"values": []
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"name": "optional",
|
|
1424
|
+
"description": "Shows \"Optional\" flag. Use when most fields are required.",
|
|
1425
|
+
"values": []
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"name": "tooltip",
|
|
1429
|
+
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
1430
|
+
"values": []
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"name": "form",
|
|
1434
|
+
"description": "Form `id` to associate with when input is outside form element.",
|
|
1435
|
+
"values": []
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"name": "pattern",
|
|
1439
|
+
"description": "Regex pattern for validation. Shows error on mismatch.",
|
|
1440
|
+
"values": []
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
"name": "maxlength",
|
|
1444
|
+
"description": "Maximum character length.",
|
|
1445
|
+
"values": []
|
|
1446
|
+
},
|
|
543
1447
|
{
|
|
544
1448
|
"name": "width",
|
|
1449
|
+
"description": "Input width: `sm` (88px), `md` (200px), `lg` (384px), `full` (100%, default).",
|
|
545
1450
|
"values": [
|
|
546
1451
|
{ "name": "" },
|
|
547
1452
|
{ "name": "sm" },
|
|
@@ -550,61 +1455,170 @@
|
|
|
550
1455
|
{ "name": "full" }
|
|
551
1456
|
]
|
|
552
1457
|
},
|
|
553
|
-
{
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
{
|
|
1458
|
+
{
|
|
1459
|
+
"name": "step",
|
|
1460
|
+
"description": "Step increment for `type=\"number\"`.",
|
|
1461
|
+
"values": []
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"name": "min",
|
|
1465
|
+
"description": "Minimum value for `type=\"number\"`.",
|
|
1466
|
+
"values": []
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
"name": "max",
|
|
1470
|
+
"description": "Maximum value for `type=\"number\"`.",
|
|
1471
|
+
"values": []
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"name": "inverted",
|
|
1475
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
1476
|
+
"values": []
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "showError",
|
|
1480
|
+
"description": "Shows error message when true. Set by validation or manually.",
|
|
1481
|
+
"values": []
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"name": "errorMessage",
|
|
1485
|
+
"description": "Error message text. Shown only when `showError` is true.",
|
|
1486
|
+
"values": []
|
|
1487
|
+
}
|
|
559
1488
|
],
|
|
560
1489
|
"references": []
|
|
561
1490
|
},
|
|
562
1491
|
{
|
|
563
1492
|
"name": "nys-toggle",
|
|
564
|
-
"description": "
|
|
1493
|
+
"description": "Toggle switch for binary settings with immediate effect.\n---\n\n\n### **Events:**\n - **nys-change** - Fired when toggle state changes. Detail: `{id, checked}`.\n- **nys-focus** - Fired when toggle gains focus.\n- **nys-blur** - Fired when toggle loses focus.\n\n### **Slots:**\n - **description** - Custom HTML description content.",
|
|
565
1494
|
"attributes": [
|
|
566
|
-
{
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
{
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
{
|
|
1495
|
+
{
|
|
1496
|
+
"name": "id",
|
|
1497
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
1498
|
+
"values": []
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"name": "name",
|
|
1502
|
+
"description": "Name for form submission.",
|
|
1503
|
+
"values": []
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"name": "value",
|
|
1507
|
+
"description": "Value submitted when toggle is on.",
|
|
1508
|
+
"values": []
|
|
1509
|
+
},
|
|
1510
|
+
{ "name": "label", "description": "Visible label text.", "values": [] },
|
|
1511
|
+
{
|
|
1512
|
+
"name": "description",
|
|
1513
|
+
"description": "Helper text below label. Use slot for custom HTML.",
|
|
1514
|
+
"values": []
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
"name": "form",
|
|
1518
|
+
"description": "Form `id` to associate with.",
|
|
1519
|
+
"values": []
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"name": "checked",
|
|
1523
|
+
"description": "Whether toggle is on.",
|
|
1524
|
+
"values": []
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
"name": "disabled",
|
|
1528
|
+
"description": "Prevents interaction.",
|
|
1529
|
+
"values": []
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
"name": "noIcon",
|
|
1533
|
+
"description": "Hides check/close icon inside toggle knob.",
|
|
1534
|
+
"values": []
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"name": "inverted",
|
|
1538
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
1539
|
+
"values": []
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"name": "size",
|
|
1543
|
+
"description": "Toggle size: `sm` or `md` (default).",
|
|
1544
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
1545
|
+
}
|
|
577
1546
|
],
|
|
578
1547
|
"references": []
|
|
579
1548
|
},
|
|
580
1549
|
{
|
|
581
1550
|
"name": "nys-tooltip",
|
|
582
|
-
"description": "
|
|
1551
|
+
"description": "Contextual tooltip with auto-positioning, keyboard support, and screen reader integration.\n---\n",
|
|
583
1552
|
"attributes": [
|
|
584
|
-
{
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
1553
|
+
{
|
|
1554
|
+
"name": "id",
|
|
1555
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
1556
|
+
"values": []
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
"name": "text",
|
|
1560
|
+
"description": "Tooltip content text. Required.",
|
|
1561
|
+
"values": []
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"name": "inverted",
|
|
1565
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
1566
|
+
"values": []
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"name": "for",
|
|
1570
|
+
"description": "ID of the trigger element to attach this tooltip to. Required.",
|
|
1571
|
+
"values": []
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
"name": "position",
|
|
1575
|
+
"description": "Preferred position relative to trigger. Auto-adjusts if space is insufficient.",
|
|
1576
|
+
"values": []
|
|
1577
|
+
}
|
|
589
1578
|
],
|
|
590
1579
|
"references": []
|
|
591
1580
|
},
|
|
592
1581
|
{
|
|
593
1582
|
"name": "nys-unavfooter",
|
|
594
|
-
"description": "
|
|
1583
|
+
"description": "Universal NYS footer with logo and statewide links. Required site-wide.\n---\n",
|
|
595
1584
|
"attributes": [],
|
|
596
1585
|
"references": []
|
|
597
1586
|
},
|
|
598
1587
|
{
|
|
599
1588
|
"name": "nys-unavheader",
|
|
600
|
-
"description": "
|
|
601
|
-
"attributes": [
|
|
602
|
-
{
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
{
|
|
1589
|
+
"description": "Universal NYS header with trust bar, search, and translation. Required site-wide.\n---\n",
|
|
1590
|
+
"attributes": [
|
|
1591
|
+
{
|
|
1592
|
+
"name": "trustbarVisible",
|
|
1593
|
+
"description": "Internal: Whether trust bar panel is expanded.",
|
|
1594
|
+
"values": []
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"name": "searchDropdownVisible",
|
|
1598
|
+
"description": "Internal: Whether search dropdown is visible (mobile).",
|
|
1599
|
+
"values": []
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
"name": "languageVisible",
|
|
1603
|
+
"description": "Internal: Whether language dropdown is visible.",
|
|
1604
|
+
"values": []
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
"name": "isSearchFocused",
|
|
1608
|
+
"description": "Internal: Whether search input is focused.",
|
|
1609
|
+
"values": []
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"name": "hideTranslate",
|
|
1613
|
+
"description": "Hides the translation dropdown.",
|
|
1614
|
+
"values": []
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"name": "hideSearch",
|
|
1618
|
+
"description": "Hides the search functionality.",
|
|
1619
|
+
"values": []
|
|
1620
|
+
},
|
|
1621
|
+
{ "name": "searchUrl", "values": [] },
|
|
608
1622
|
{
|
|
609
1623
|
"name": "languages",
|
|
610
1624
|
"values": [{ "name": "[string" }, { "name": "string][]" }]
|