@nysds/components 1.16.1 → 1.17.0
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/custom-elements.json +480 -52
- package/dist/.vscode/vscode.html-custom-data.json +52 -9
- package/dist/custom-elements.json +480 -52
- package/dist/nysds.es.js +1752 -1560
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +218 -218
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-breadcrumbs/src/index.d.ts +1 -0
- package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.d.ts +119 -0
- package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.figma.d.ts +1 -0
- package/dist/packages/nys-button/src/nys-button.d.ts +2 -2
- package/dist/packages/nys-combobox/src/nys-combobox.d.ts +8 -0
- package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +1 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +3 -1
- package/dist/packages/nys-errormessage/src/nys-errormessage.d.ts +2 -2
- package/dist/packages/nys-label/src/nys-label.d.ts +9 -6
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +1 -1
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +2 -1
- package/dist/packages/nys-video/src/nys-video.d.ts +25 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -2
- package/packages/react/NysBreadcrumbItem.d.ts +72 -0
- package/packages/react/NysBreadcrumbItem.js +42 -0
- package/packages/react/NysBreadcrumbs.d.ts +89 -0
- package/packages/react/NysBreadcrumbs.js +50 -0
- package/packages/react/NysButton.d.ts +2 -2
- package/packages/react/NysErrorMessage.d.ts +3 -0
- package/packages/react/NysErrorMessage.js +2 -1
- package/packages/react/NysLabel.d.ts +16 -4
- package/packages/react/NysLabel.js +17 -3
- package/packages/react/NysVideo.d.ts +7 -1
- package/packages/react/NysVideo.js +14 -1
- package/packages/react/index.d.ts +1 -0
- package/packages/react/index.js +1 -0
- package/packages/react/nysds-jsx.d.ts +59 -5
|
@@ -235,6 +235,48 @@
|
|
|
235
235
|
],
|
|
236
236
|
"references": []
|
|
237
237
|
},
|
|
238
|
+
{
|
|
239
|
+
"name": "nys-breadcrumbs",
|
|
240
|
+
"description": "Breadcrumb navigation trail with responsive collapse support.\n---\n\n\n### **Events:**\n - **nys-expand**\n- **nys-breadcrumbs-expand** - Fired when the user clicks the ellipsis to expand the trail.\n\n### **Slots:**\n - _default_ - One or more `nys-breadcrumbitem` elements defining the trail.",
|
|
241
|
+
"attributes": [
|
|
242
|
+
{
|
|
243
|
+
"name": "id",
|
|
244
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
245
|
+
"values": []
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "ariaLabel",
|
|
249
|
+
"description": "Accessible label for the `<nav>` landmark. Defaults to \"path to this page\" if not set.\nOverride when multiple crumbs exist on the same page.",
|
|
250
|
+
"values": []
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "size",
|
|
254
|
+
"description": "Controls the visual size of the breadcrumb text and spacing: `sm` for dense layouts, `md` (default) for standard use.",
|
|
255
|
+
"values": [{ "name": "sm" }, { "name": "md" }, { "name": "\"\"" }]
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "backToParent",
|
|
259
|
+
"description": "On mobile, renders the trail as a single back-to-parent link pointing to the item before the current page.\nHas no effect on desktop or when only one item is present (which always renders as a back link).",
|
|
260
|
+
"values": []
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "collapsed",
|
|
264
|
+
"description": "Forces the trail into its collapsed state.\nIt shows only the first item, an ellipsis, and the last two items.\nThe user can still expand the trail by clicking the ellipsis.",
|
|
265
|
+
"values": []
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "backgroundBar",
|
|
269
|
+
"description": "Renders a filled light theme background bar behind the breadcrumb trail.",
|
|
270
|
+
"values": []
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "disabled",
|
|
274
|
+
"description": "Prevents interaction.",
|
|
275
|
+
"values": []
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"references": []
|
|
279
|
+
},
|
|
238
280
|
{
|
|
239
281
|
"name": "nys-button",
|
|
240
282
|
"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)_",
|
|
@@ -292,12 +334,12 @@
|
|
|
292
334
|
},
|
|
293
335
|
{
|
|
294
336
|
"name": "prefixIcon",
|
|
295
|
-
"description": "Material Symbol icon before label. Not shown for `
|
|
337
|
+
"description": "Material Symbol icon before label. Not shown for `circle` mode.",
|
|
296
338
|
"values": []
|
|
297
339
|
},
|
|
298
340
|
{
|
|
299
341
|
"name": "suffixIcon",
|
|
300
|
-
"description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `
|
|
342
|
+
"description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `circle` mode.",
|
|
301
343
|
"values": []
|
|
302
344
|
},
|
|
303
345
|
{
|
|
@@ -695,6 +737,11 @@
|
|
|
695
737
|
"name": "nys-errormessage",
|
|
696
738
|
"description": "Internal error message display with icon and ARIA alert support.\n---\n",
|
|
697
739
|
"attributes": [
|
|
740
|
+
{
|
|
741
|
+
"name": "id",
|
|
742
|
+
"description": "The \"id\" of the error message.",
|
|
743
|
+
"values": []
|
|
744
|
+
},
|
|
698
745
|
{
|
|
699
746
|
"name": "showError",
|
|
700
747
|
"description": "Whether to display the error message.",
|
|
@@ -932,13 +979,9 @@
|
|
|
932
979
|
},
|
|
933
980
|
{
|
|
934
981
|
"name": "nys-label",
|
|
935
|
-
"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.",
|
|
982
|
+
"description": "Internal label component for form fields with flag and tooltip support.\n---\n\n\n### **Events:**\n - **nys-label-click**\n\n### **Slots:**\n - **description** - Custom HTML description content below the label.",
|
|
936
983
|
"attributes": [
|
|
937
|
-
{
|
|
938
|
-
"name": "for",
|
|
939
|
-
"description": "ID of the form element this label is associated with.",
|
|
940
|
-
"values": []
|
|
941
|
-
},
|
|
984
|
+
{ "name": "id", "description": "The ID of the label.", "values": [] },
|
|
942
985
|
{
|
|
943
986
|
"name": "label",
|
|
944
987
|
"description": "Label text displayed above the form field.",
|
|
@@ -1777,7 +1820,7 @@
|
|
|
1777
1820
|
},
|
|
1778
1821
|
{
|
|
1779
1822
|
"name": "nys-video",
|
|
1780
|
-
"description": "
|
|
1823
|
+
"description": "YouTube video player with thumbnail preview and accessibility announcements.\n---\n\n\n### **Events:**\n - **nys-video-play** - Fired when the user clicks the thumbnail to load the player.",
|
|
1781
1824
|
"attributes": [
|
|
1782
1825
|
{
|
|
1783
1826
|
"name": "id",
|