@nysds/components 1.17.0 → 1.18.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.
Files changed (41) hide show
  1. package/custom-elements.json +731 -194
  2. package/dist/.vscode/vscode.html-custom-data.json +62 -21
  3. package/dist/custom-elements.json +731 -194
  4. package/dist/nysds.es.js +2536 -2134
  5. package/dist/nysds.es.js.map +1 -1
  6. package/dist/nysds.js +174 -145
  7. package/dist/nysds.js.map +1 -1
  8. package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +15 -3
  9. package/dist/packages/nys-badge/src/nys-badge.d.ts +2 -0
  10. package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +0 -2
  11. package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +1 -4
  12. package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +0 -2
  13. package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +1 -4
  14. package/dist/packages/nys-tab/src/index.d.ts +3 -0
  15. package/dist/packages/nys-tab/src/nys-tab.d.ts +116 -0
  16. package/dist/packages/nys-tab/src/nys-tab.figma.d.ts +1 -0
  17. package/dist/packages/nys-tab/src/nys-tabgroup.d.ts +199 -0
  18. package/dist/packages/nys-tab/src/nys-tabpanel.d.ts +46 -0
  19. package/dist/packages/nys-table/src/nys-table.d.ts +10 -7
  20. package/dist/src/index.d.ts +1 -0
  21. package/package.json +1 -1
  22. package/packages/react/NysBacktotop.d.ts +1 -1
  23. package/packages/react/NysBadge.d.ts +3 -0
  24. package/packages/react/NysBadge.js +2 -0
  25. package/packages/react/NysCheckbox.d.ts +0 -3
  26. package/packages/react/NysCheckbox.js +0 -2
  27. package/packages/react/NysCheckboxgroup.d.ts +0 -3
  28. package/packages/react/NysCheckboxgroup.js +0 -2
  29. package/packages/react/NysRadiobutton.d.ts +0 -3
  30. package/packages/react/NysRadiobutton.js +0 -2
  31. package/packages/react/NysRadiogroup.d.ts +0 -3
  32. package/packages/react/NysRadiogroup.js +0 -2
  33. package/packages/react/NysTab.d.ts +90 -0
  34. package/packages/react/NysTab.js +39 -0
  35. package/packages/react/NysTabgroup.d.ts +75 -0
  36. package/packages/react/NysTabgroup.js +22 -0
  37. package/packages/react/NysTabpanel.d.ts +63 -0
  38. package/packages/react/NysTabpanel.js +21 -0
  39. package/packages/react/index.d.ts +3 -0
  40. package/packages/react/index.js +3 -0
  41. package/packages/react/nysds-jsx.d.ts +108 -9
@@ -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 smooth scroll.\n---\n",
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": "\"\"" }]
@@ -471,11 +476,6 @@
471
476
  "description": "Renders as tile with larger clickable area. Apply to group for consistency.",
472
477
  "values": []
473
478
  },
474
- {
475
- "name": "inverted",
476
- "description": "Adjusts colors for dark backgrounds.",
477
- "values": []
478
- },
479
479
  {
480
480
  "name": "tooltip",
481
481
  "description": "Tooltip text shown on hover/focus of info icon.",
@@ -545,11 +545,6 @@
545
545
  "description": "Tooltip text shown on hover/focus of info icon.",
546
546
  "values": []
547
547
  },
548
- {
549
- "name": "inverted",
550
- "description": "Adjusts colors for dark backgrounds. Applied to all children.",
551
- "values": []
552
- },
553
548
  {
554
549
  "name": "form",
555
550
  "description": "Form `id` to associate with. Applied to all children.",
@@ -1123,11 +1118,6 @@
1123
1118
  "description": "Value submitted when this radio is selected.",
1124
1119
  "values": []
1125
1120
  },
1126
- {
1127
- "name": "inverted",
1128
- "description": "Adjusts colors for dark backgrounds.",
1129
- "values": []
1130
- },
1131
1121
  {
1132
1122
  "name": "form",
1133
1123
  "description": "Form `id` to associate with.",
@@ -1202,11 +1192,6 @@
1202
1192
  "description": "Tooltip text shown on hover/focus of info icon.",
1203
1193
  "values": []
1204
1194
  },
1205
- {
1206
- "name": "inverted",
1207
- "description": "Adjusts colors for dark backgrounds. Applied to all children.",
1208
- "values": []
1209
- },
1210
1195
  {
1211
1196
  "name": "form",
1212
1197
  "description": "Form `id` to associate with. Applied to all children.",
@@ -1417,6 +1402,62 @@
1417
1402
  ],
1418
1403
  "references": []
1419
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
+ },
1420
1461
  {
1421
1462
  "name": "nys-table",
1422
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.",