@nysds/components 1.19.3-alpha-1 → 1.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/custom-elements.json +1243 -203
  2. package/dist/.vscode/vscode.html-custom-data.json +13 -13
  3. package/dist/custom-elements.json +1243 -203
  4. package/dist/nys-icon.library-r6nNUTzA.js +696 -0
  5. package/dist/nys-icon.library-r6nNUTzA.js.map +1 -0
  6. package/dist/nysds.es.js +2746 -2617
  7. package/dist/nysds.es.js.map +1 -1
  8. package/dist/nysds.js +757 -155
  9. package/dist/nysds.js.map +1 -1
  10. package/dist/packages/nys-accordion/src/nys-accordion.d.ts +35 -6
  11. package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +8 -3
  12. package/dist/packages/nys-alert/src/nys-alert.d.ts +81 -4
  13. package/dist/packages/nys-avatar/src/nys-avatar.d.ts +44 -4
  14. package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +70 -3
  15. package/dist/packages/nys-badge/src/nys-badge.d.ts +54 -4
  16. package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.d.ts +75 -7
  17. package/dist/packages/nys-button/src/nys-button.d.ts +62 -7
  18. package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +5 -7
  19. package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +75 -1
  20. package/dist/packages/nys-combobox/src/nys-combobox.d.ts +164 -0
  21. package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +64 -8
  22. package/dist/packages/nys-divider/src/nys-divider.d.ts +24 -1
  23. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +19 -12
  24. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenuitem.d.ts +0 -10
  25. package/dist/packages/nys-errormessage/src/nys-errormessage.d.ts +10 -0
  26. package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +94 -4
  27. package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +50 -7
  28. package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +65 -4
  29. package/dist/packages/nys-icon/src/icon-cache.d.ts +11 -4
  30. package/dist/packages/nys-icon/src/icon-library-registry.d.ts +33 -16
  31. package/dist/packages/nys-icon/src/index.d.ts +2 -2
  32. package/dist/packages/nys-icon/src/nys-icon.d.ts +83 -6
  33. package/dist/packages/nys-label/src/nys-label.d.ts +32 -2
  34. package/dist/packages/nys-modal/src/nys-modal.d.ts +130 -5
  35. package/dist/packages/nys-pagination/src/nys-pagination.d.ts +11 -1
  36. package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +4 -3
  37. package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +74 -1
  38. package/dist/packages/nys-select/src/nys-option.d.ts +0 -8
  39. package/dist/packages/nys-select/src/nys-select.d.ts +141 -10
  40. package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +2 -2
  41. package/dist/packages/nys-stepper/src/nys-step.d.ts +0 -13
  42. package/dist/packages/nys-stepper/src/nys-stepper.d.ts +119 -69
  43. package/dist/packages/nys-tab/src/nys-tab.d.ts +17 -8
  44. package/dist/packages/nys-tab/src/nys-tabgroup.d.ts +170 -35
  45. package/dist/packages/nys-tab/src/nys-tabpanel.d.ts +13 -22
  46. package/dist/packages/nys-table/src/nys-table.d.ts +80 -1
  47. package/dist/packages/nys-textarea/src/nys-textarea.d.ts +52 -5
  48. package/dist/packages/nys-textinput/src/nys-textinput.d.ts +63 -9
  49. package/dist/packages/nys-toggle/src/nys-toggle.d.ts +40 -4
  50. package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +38 -6
  51. package/dist/packages/nys-unavfooter/src/nys-unavfooter.d.ts +10 -2
  52. package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +54 -8
  53. package/dist/packages/nys-video/src/nys-video.d.ts +65 -3
  54. package/package.json +11 -5
  55. package/packages/react/NysBreadcrumbs.d.ts +1 -1
  56. package/packages/react/NysButton.d.ts +2 -1
  57. package/packages/react/NysDropdownMenu.d.ts +1 -1
  58. package/packages/react/NysFileinput.d.ts +24 -2
  59. package/packages/react/NysFileinput.js +8 -1
  60. package/packages/react/NysGlobalHeader.d.ts +6 -1
  61. package/packages/react/NysLabel.d.ts +4 -1
  62. package/packages/react/NysTabgroup.d.ts +5 -4
  63. package/packages/react/NysTable.d.ts +1 -1
  64. package/packages/react/NysTabpanel.d.ts +11 -4
  65. package/packages/react/NysTextarea.d.ts +1 -1
  66. package/packages/react/NysUnavHeader.d.ts +11 -1
  67. package/packages/react/NysUnavHeader.js +15 -1
  68. package/packages/react/nysds-jsx.d.ts +64 -19
@@ -242,7 +242,7 @@
242
242
  },
243
243
  {
244
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.",
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 `li` elements defining the trail.",
246
246
  "attributes": [
247
247
  {
248
248
  "name": "id",
@@ -257,7 +257,7 @@
257
257
  {
258
258
  "name": "size",
259
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": "\"\"" }]
260
+ "values": [{ "name": "sm" }, { "name": "md" }]
261
261
  },
262
262
  {
263
263
  "name": "backToParent",
@@ -284,7 +284,7 @@
284
284
  },
285
285
  {
286
286
  "name": "nys-button",
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)_",
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 - _default_ - Button label text. Use as fallback when `label` prop is not provided.\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)_",
288
288
  "attributes": [
289
289
  {
290
290
  "name": "id",
@@ -708,7 +708,7 @@
708
708
  },
709
709
  {
710
710
  "name": "nys-dropdownmenu",
711
- "description": "\n---\n",
711
+ "description": "Action menu with auto-positioning, keyboard support, and screen reader integration.\n---\n",
712
712
  "attributes": [
713
713
  { "name": "for", "values": [] },
714
714
  { "name": "showDropdown", "values": [] },
@@ -767,7 +767,7 @@
767
767
  },
768
768
  {
769
769
  "name": "nys-fileinput",
770
- "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.",
770
+ "description": "File input with drag-and-drop, validation, and progress tracking.\n---\n\n\n### **Events:**\n - **nys-blur** - Fired when focus leaves the component. Triggers validation.\n- **nys-change** - Fired when files are added or removed. Detail: `{id, files}`.\n\n### **Methods:**\n - **setFiles(incoming: _File[]_): _Promise<void>_** - Programmatically set the selection and await async validation/processing.\nSame as assigning `files`, but resolves once every file has finished its\nmagic-byte validation and read — use when you need to read `checkValidity()`\nor the settled selection immediately after.\n\n### **Slots:**\n - **description** - Custom HTML description content.",
771
771
  "attributes": [
772
772
  {
773
773
  "name": "id",
@@ -905,7 +905,7 @@
905
905
  },
906
906
  {
907
907
  "name": "nys-globalheader",
908
- "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.",
908
+ "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.\n- **user-actions** - User-account controls (e.g. profile link, settings, log-out button) shown in the header.",
909
909
  "attributes": [
910
910
  {
911
911
  "name": "appName",
@@ -924,7 +924,7 @@
924
924
  },
925
925
  {
926
926
  "name": "nysLogo",
927
- "description": "Toggles the NYS brand mark",
927
+ "description": "Displays the NYS brand mark in the header. Off by default.\n\nEnable only for internal, state-employee (back-office) applications that omit\n`nys-unavheader`. Any resident-facing app — even one requiring login — should\nkeep `nys-unavheader` for trust and leave this off.",
928
928
  "values": []
929
929
  }
930
930
  ],
@@ -994,7 +994,7 @@
994
994
  },
995
995
  {
996
996
  "name": "nys-label",
997
- "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.",
997
+ "description": "**Internal component.** Renders form labels with description, required/optional flag, and tooltip.\n\nUsed internally by form components (textinput, select, checkbox, etc.). Not intended for direct use.\nHandles label association via `for`, displays asterisk for required fields, and integrates tooltips.\n---\n\n\n### **Events:**\n - **nys-label-click**\n\n### **Slots:**\n - **description** - Custom HTML description content below the label.",
998
998
  "attributes": [
999
999
  { "name": "id", "description": "The ID of the label.", "values": [] },
1000
1000
  {
@@ -1446,7 +1446,7 @@
1446
1446
  },
1447
1447
  {
1448
1448
  "name": "nys-tabgroup",
1449
- "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.",
1449
+ "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, each child is assigned `slot=\"tab\"` or\n`slot=\"panel\"` so it is projected into the correct shadow-DOM container\nwhile remaining in the light DOM, ARIA relationships are wired, and the\nfirst selected (or first) tab 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. On `slotchange` they are assigned `slot=\"tab\"` / `slot=\"panel\"` and projected into the tablist and panel containers; they stay in the light DOM. Any other children remain in the default slot, rendered below the panels.",
1450
1450
  "attributes": [
1451
1451
  {
1452
1452
  "name": "id",
@@ -1463,7 +1463,7 @@
1463
1463
  },
1464
1464
  {
1465
1465
  "name": "nys-tabpanel",
1466
- "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.",
1466
+ "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 (or by explicit\n`aria-labelledby`). `aria-labelledby` and the `hidden` attribute are managed\nexternally by `<nys-tabgroup>` via `_applySelection`; do not set them\ndirectly.\n\nThe panel container is styled from the light DOM (`nys-tabpanel.light.scss`,\nadopted on the document) rather than a shadow-DOM wrapper. This keeps the\nslotted panel content in the light DOM — reachable by consumer CSS and\nJavaScript — and lets consumers override the panel's own styling (e.g.\n`nys-tabpanel { padding: 0 }`), which a shadow wrapper would prevent.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for panel content. Rendered directly under the host, which is the scrollable, focusable (`tabindex=\"0\"`) `role=\"tabpanel\"` region.",
1467
1467
  "attributes": [
1468
1468
  {
1469
1469
  "name": "id",
@@ -1475,7 +1475,7 @@
1475
1475
  },
1476
1476
  {
1477
1477
  "name": "nys-table",
1478
- "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.",
1478
+ "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 used. The table is enhanced in place and stays in the light DOM (projected through a slot, never cloned), so embedded components remain interactive and reachable by consumer CSS/JS. Its cell styling is applied from `nys-table.light.scss`, adopted once onto `document.adoptedStyleSheets`.",
1479
1479
  "attributes": [
1480
1480
  { "name": "id", "values": [] },
1481
1481
  { "name": "name", "values": [] },
@@ -1527,7 +1527,7 @@
1527
1527
  },
1528
1528
  {
1529
1529
  "name": "readonly",
1530
- "description": "Makes textarea read-only but focusable.",
1530
+ "description": "Makes textarea readonly but focusable.",
1531
1531
  "values": []
1532
1532
  },
1533
1533
  {
@@ -1829,7 +1829,7 @@
1829
1829
  },
1830
1830
  {
1831
1831
  "name": "nys-unavheader",
1832
- "description": "\n---\n",
1832
+ "description": "Universal NYS header with trust bar, search, and translation. Required site-wide.\n---\n\n\n### **Events:**\n - **nys-language-select** - Fired when a language is selected. Detail: `{language: {code, label, url?}}`. Cancelable; `preventDefault()` overrides the default Smartling redirect.\n- **nys-search-submit** - Fired when a search is submitted. Detail: `{query}`. Cancelable; `preventDefault()` overrides the default search redirect.",
1833
1833
  "attributes": [
1834
1834
  {
1835
1835
  "name": "trustbarVisible",