@nysds/components 1.16.1 → 1.18.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 +4245 -3280
- package/dist/.vscode/vscode.html-custom-data.json +114 -30
- package/dist/custom-elements.json +4245 -3280
- package/dist/nysds.es.js +2550 -1977
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +186 -164
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +15 -3
- package/dist/packages/nys-badge/src/nys-badge.d.ts +2 -0
- 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-checkbox/src/nys-checkbox.d.ts +0 -2
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +1 -4
- 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-radiobutton/src/nys-radiobutton.d.ts +0 -2
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +1 -4
- package/dist/packages/nys-tab/src/index.d.ts +3 -0
- package/dist/packages/nys-tab/src/nys-tab.d.ts +116 -0
- package/dist/packages/nys-tab/src/nys-tab.figma.d.ts +1 -0
- package/dist/packages/nys-tab/src/nys-tabgroup.d.ts +197 -0
- package/dist/packages/nys-tab/src/nys-tabpanel.d.ts +46 -0
- package/dist/packages/nys-table/src/nys-table.d.ts +10 -7
- 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 +2 -0
- package/package.json +3 -2
- package/packages/react/NysBacktotop.d.ts +1 -1
- package/packages/react/NysBadge.d.ts +3 -0
- package/packages/react/NysBadge.js +2 -0
- 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/NysCheckbox.d.ts +0 -3
- package/packages/react/NysCheckbox.js +0 -2
- package/packages/react/NysCheckboxgroup.d.ts +0 -3
- package/packages/react/NysCheckboxgroup.js +0 -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/NysRadiobutton.d.ts +0 -3
- package/packages/react/NysRadiobutton.js +0 -2
- package/packages/react/NysRadiogroup.d.ts +0 -3
- package/packages/react/NysRadiogroup.js +0 -2
- package/packages/react/NysTab.d.ts +90 -0
- package/packages/react/NysTab.js +39 -0
- package/packages/react/NysTabgroup.d.ts +75 -0
- package/packages/react/NysTabgroup.js +22 -0
- package/packages/react/NysTabpanel.d.ts +63 -0
- package/packages/react/NysTabpanel.js +21 -0
- package/packages/react/NysVideo.d.ts +7 -1
- package/packages/react/NysVideo.js +14 -1
- package/packages/react/index.d.ts +4 -0
- package/packages/react/index.js +4 -0
- package/packages/react/nysds-jsx.d.ts +167 -14
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
"name": "nys-backtotop",
|
|
178
|
-
"description": "Floating back-to-top button with auto-show behavior and
|
|
178
|
+
"description": "Floating back-to-top button with auto-show behavior, smooth scroll, and focus management.\n---\n",
|
|
179
179
|
"attributes": [
|
|
180
180
|
{
|
|
181
181
|
"name": "position",
|
|
@@ -226,6 +226,11 @@
|
|
|
226
226
|
"description": "Primary label text displayed in the badge.",
|
|
227
227
|
"values": []
|
|
228
228
|
},
|
|
229
|
+
{
|
|
230
|
+
"name": "srText",
|
|
231
|
+
"description": "Screen reader text appended after the label for additional context.",
|
|
232
|
+
"values": []
|
|
233
|
+
},
|
|
229
234
|
{
|
|
230
235
|
"name": "variant",
|
|
231
236
|
"values": [{ "name": "strong" }, { "name": "\"\"" }]
|
|
@@ -235,6 +240,48 @@
|
|
|
235
240
|
],
|
|
236
241
|
"references": []
|
|
237
242
|
},
|
|
243
|
+
{
|
|
244
|
+
"name": "nys-breadcrumbs",
|
|
245
|
+
"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.",
|
|
246
|
+
"attributes": [
|
|
247
|
+
{
|
|
248
|
+
"name": "id",
|
|
249
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
250
|
+
"values": []
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "ariaLabel",
|
|
254
|
+
"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.",
|
|
255
|
+
"values": []
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "size",
|
|
259
|
+
"description": "Controls the visual size of the breadcrumb text and spacing: `sm` for dense layouts, `md` (default) for standard use.",
|
|
260
|
+
"values": [{ "name": "sm" }, { "name": "md" }, { "name": "\"\"" }]
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "backToParent",
|
|
264
|
+
"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).",
|
|
265
|
+
"values": []
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "collapsed",
|
|
269
|
+
"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.",
|
|
270
|
+
"values": []
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "backgroundBar",
|
|
274
|
+
"description": "Renders a filled light theme background bar behind the breadcrumb trail.",
|
|
275
|
+
"values": []
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "disabled",
|
|
279
|
+
"description": "Prevents interaction.",
|
|
280
|
+
"values": []
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"references": []
|
|
284
|
+
},
|
|
238
285
|
{
|
|
239
286
|
"name": "nys-button",
|
|
240
287
|
"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 +339,12 @@
|
|
|
292
339
|
},
|
|
293
340
|
{
|
|
294
341
|
"name": "prefixIcon",
|
|
295
|
-
"description": "Material Symbol icon before label. Not shown for `
|
|
342
|
+
"description": "Material Symbol icon before label. Not shown for `circle` mode.",
|
|
296
343
|
"values": []
|
|
297
344
|
},
|
|
298
345
|
{
|
|
299
346
|
"name": "suffixIcon",
|
|
300
|
-
"description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `
|
|
347
|
+
"description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `circle` mode.",
|
|
301
348
|
"values": []
|
|
302
349
|
},
|
|
303
350
|
{
|
|
@@ -429,11 +476,6 @@
|
|
|
429
476
|
"description": "Renders as tile with larger clickable area. Apply to group for consistency.",
|
|
430
477
|
"values": []
|
|
431
478
|
},
|
|
432
|
-
{
|
|
433
|
-
"name": "inverted",
|
|
434
|
-
"description": "Adjusts colors for dark backgrounds.",
|
|
435
|
-
"values": []
|
|
436
|
-
},
|
|
437
479
|
{
|
|
438
480
|
"name": "tooltip",
|
|
439
481
|
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
@@ -503,11 +545,6 @@
|
|
|
503
545
|
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
504
546
|
"values": []
|
|
505
547
|
},
|
|
506
|
-
{
|
|
507
|
-
"name": "inverted",
|
|
508
|
-
"description": "Adjusts colors for dark backgrounds. Applied to all children.",
|
|
509
|
-
"values": []
|
|
510
|
-
},
|
|
511
548
|
{
|
|
512
549
|
"name": "form",
|
|
513
550
|
"description": "Form `id` to associate with. Applied to all children.",
|
|
@@ -695,6 +732,11 @@
|
|
|
695
732
|
"name": "nys-errormessage",
|
|
696
733
|
"description": "Internal error message display with icon and ARIA alert support.\n---\n",
|
|
697
734
|
"attributes": [
|
|
735
|
+
{
|
|
736
|
+
"name": "id",
|
|
737
|
+
"description": "The \"id\" of the error message.",
|
|
738
|
+
"values": []
|
|
739
|
+
},
|
|
698
740
|
{
|
|
699
741
|
"name": "showError",
|
|
700
742
|
"description": "Whether to display the error message.",
|
|
@@ -932,13 +974,9 @@
|
|
|
932
974
|
},
|
|
933
975
|
{
|
|
934
976
|
"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.",
|
|
977
|
+
"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
978
|
"attributes": [
|
|
937
|
-
{
|
|
938
|
-
"name": "for",
|
|
939
|
-
"description": "ID of the form element this label is associated with.",
|
|
940
|
-
"values": []
|
|
941
|
-
},
|
|
979
|
+
{ "name": "id", "description": "The ID of the label.", "values": [] },
|
|
942
980
|
{
|
|
943
981
|
"name": "label",
|
|
944
982
|
"description": "Label text displayed above the form field.",
|
|
@@ -1080,11 +1118,6 @@
|
|
|
1080
1118
|
"description": "Value submitted when this radio is selected.",
|
|
1081
1119
|
"values": []
|
|
1082
1120
|
},
|
|
1083
|
-
{
|
|
1084
|
-
"name": "inverted",
|
|
1085
|
-
"description": "Adjusts colors for dark backgrounds.",
|
|
1086
|
-
"values": []
|
|
1087
|
-
},
|
|
1088
1121
|
{
|
|
1089
1122
|
"name": "form",
|
|
1090
1123
|
"description": "Form `id` to associate with.",
|
|
@@ -1159,11 +1192,6 @@
|
|
|
1159
1192
|
"description": "Tooltip text shown on hover/focus of info icon.",
|
|
1160
1193
|
"values": []
|
|
1161
1194
|
},
|
|
1162
|
-
{
|
|
1163
|
-
"name": "inverted",
|
|
1164
|
-
"description": "Adjusts colors for dark backgrounds. Applied to all children.",
|
|
1165
|
-
"values": []
|
|
1166
|
-
},
|
|
1167
1195
|
{
|
|
1168
1196
|
"name": "form",
|
|
1169
1197
|
"description": "Form `id` to associate with. Applied to all children.",
|
|
@@ -1374,6 +1402,62 @@
|
|
|
1374
1402
|
],
|
|
1375
1403
|
"references": []
|
|
1376
1404
|
},
|
|
1405
|
+
{
|
|
1406
|
+
"name": "nys-tab",
|
|
1407
|
+
"description": "`<nys-tab>` is a single tab within a `<nys-tabgroup>`.\n\nThe host element carries `role=\"tab\"`, `tabindex`, `aria-selected`,\n`aria-controls`, and `aria-disabled` so assistive technologies see the\ncorrect ARIA tab semantics on the element that is actually focused.\n`<nys-tabgroup>` manages `tabindex`, `aria-selected`, and `aria-controls`\nvia `_applySelection`; do not set them directly on this element.\n---\n\n\n### **Events:**\n - **nys-tab-select** - Dispatched when the tab is activated via click or Enter / Space. Bubbles and crosses shadow DOM boundaries. `detail: { id: string, label: string }`\n- **nys-tab-focus** - Dispatched when the host receives focus. Bubbles and crosses shadow DOM boundaries. `detail: { id: string }`\n- **nys-tab-blur** - Dispatched when the host loses focus. Bubbles and crosses shadow DOM boundaries. `detail: { id: string }`\n\n### **Methods:**\n - **focus(options: _FocusOptions_): _void_** - Focuses the host element. The host carries `role=\"tab\"` and `tabindex`,\nso it is the correct element for AT to land on.\n\n### **Slots:**\n - _default_ - No slots; content is derived from the `label` property.",
|
|
1408
|
+
"attributes": [
|
|
1409
|
+
{
|
|
1410
|
+
"name": "id",
|
|
1411
|
+
"description": "Unique identifier for the tab element.\nReflected to the DOM attribute so `aria-controls` references resolve.",
|
|
1412
|
+
"values": []
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"name": "label",
|
|
1416
|
+
"description": "Visible text label rendered inside the inner `<span>`.",
|
|
1417
|
+
"values": []
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"name": "selected",
|
|
1421
|
+
"description": "Whether this tab is the currently active tab.\nManaged by `<nys-tabgroup>`; reflected for CSS attribute selectors.",
|
|
1422
|
+
"values": []
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"name": "disabled",
|
|
1426
|
+
"description": "Whether this tab is disabled.\nReflected to the DOM attribute for CSS styling.",
|
|
1427
|
+
"values": []
|
|
1428
|
+
}
|
|
1429
|
+
],
|
|
1430
|
+
"references": []
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"name": "nys-tabgroup",
|
|
1434
|
+
"description": "`<nys-tabgroup>` is the container for `<nys-tab>` and `<nys-tabpanel>`\nelements.\n\nAccepts tabs and panels as flat light-DOM children in any order (interleaved\nor grouped). On slot change, children are sorted into dedicated shadow-DOM\ncontainers, ARIA relationships are wired, and the first selected (or first)\ntab is activated.\n\nScroll shadows are rendered on either side of the tab list and toggled via\n`ResizeObserver` and a `scroll` listener so they accurately reflect whether\noverflow content exists in each direction.\n\nKeyboard navigation follows the\nhttps://www.w3.org/WAI/ARIA/apg/patterns/tabs/ ARIA Tabs Pattern:\n- Arrow keys move focus without changing selection.\n- Enter / Space confirm selection on the focused tab.\n---\n\n\n### **Slots:**\n - _default_ - Accepts `<nys-tab>` and `<nys-tabpanel>` children. Elements are moved into internal shadow-DOM containers on `slotchange`; the slot itself is not rendered visibly.",
|
|
1435
|
+
"attributes": [
|
|
1436
|
+
{
|
|
1437
|
+
"name": "id",
|
|
1438
|
+
"description": "Unique identifier for the tabgroup element.\nIf not provided, one is auto-generated in `connectedCallback`.\nReflected to the DOM attribute.",
|
|
1439
|
+
"values": []
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
"name": "name",
|
|
1443
|
+
"description": "The name of the tab group.\nUsed for form submission and accessibility purposes.",
|
|
1444
|
+
"values": []
|
|
1445
|
+
}
|
|
1446
|
+
],
|
|
1447
|
+
"references": []
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
"name": "nys-tabpanel",
|
|
1451
|
+
"description": "`<nys-tabpanel>` is a content panel paired with a `<nys-tab>` inside a\n`<nys-tabgroup>`.\n\nPairing is determined by render order: the Nth `<nys-tabpanel>` child of a\n`<nys-tabgroup>` corresponds to the Nth `<nys-tab>` child.\n`aria-labelledby` and the `hidden` attribute are managed externally by\n`<nys-tabgroup>` via `_applySelection`; do not set them directly.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for panel content. Rendered inside a wrapper `<div>` with the `.nys-tabpanel` class for styling.",
|
|
1452
|
+
"attributes": [
|
|
1453
|
+
{
|
|
1454
|
+
"name": "id",
|
|
1455
|
+
"description": "Unique identifier for the panel element.\nIf not provided, one is auto-generated in `connectedCallback`.\nReflected to the DOM attribute so `aria-controls` references on sibling\n`<nys-tab>` elements resolve correctly.",
|
|
1456
|
+
"values": []
|
|
1457
|
+
}
|
|
1458
|
+
],
|
|
1459
|
+
"references": []
|
|
1460
|
+
},
|
|
1377
1461
|
{
|
|
1378
1462
|
"name": "nys-table",
|
|
1379
1463
|
"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- **nys-column-sort** - Fired when a sortable column header is clicked. Can be prevented by calling `event.preventDefault()` to override default sort behavior. Detail: { columnIndex: number, columnLabel: string, sortDirection: \"asc\" | \"desc\" | \"none\" }\n\n### **Slots:**\n - _default_ - Accepts a `<table>` element. Only the first table is rendered.",
|
|
@@ -1777,7 +1861,7 @@
|
|
|
1777
1861
|
},
|
|
1778
1862
|
{
|
|
1779
1863
|
"name": "nys-video",
|
|
1780
|
-
"description": "
|
|
1864
|
+
"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
1865
|
"attributes": [
|
|
1782
1866
|
{
|
|
1783
1867
|
"name": "id",
|