@nysds/components 1.23.2 → 1.24.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.
Files changed (25) hide show
  1. package/custom-elements.json +500 -25
  2. package/dist/.vscode/vscode.html-custom-data.json +50 -8
  3. package/dist/custom-elements.json +500 -25
  4. package/dist/{nys-icon.library-BRplkAua.js → nys-icon.library-C3fdrsXK.js} +2 -2
  5. package/dist/{nys-icon.library-BRplkAua.js.map → nys-icon.library-C3fdrsXK.js.map} +1 -1
  6. package/dist/{nys-icon.library-DPR9yd8U-CCjVAKg8.js → nys-icon.library-CHrtmOCL-BdLMRCBm.js} +3 -3
  7. package/dist/{nys-icon.library-DPR9yd8U-CCjVAKg8.js.map → nys-icon.library-CHrtmOCL-BdLMRCBm.js.map} +1 -1
  8. package/dist/nysds.es.js +4403 -4182
  9. package/dist/nysds.es.js.map +1 -1
  10. package/dist/nysds.js +188 -193
  11. package/dist/nysds.js.map +1 -1
  12. package/dist/packages/mcp-server/src/lib/icons.d.ts +18 -0
  13. package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +7 -27
  14. package/dist/packages/nys-button/src/nys-button.d.ts +5 -4
  15. package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +8 -18
  16. package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +8 -0
  17. package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +2 -1
  18. package/dist/packages/nys-icon/src/nys-icon.d.ts +6 -4
  19. package/dist/packages/nys-iconlist/src/nys-iconlistitem.d.ts +2 -2
  20. package/dist/packages/nys-onthispage/src/index.d.ts +1 -0
  21. package/dist/packages/nys-onthispage/src/nys-onthispage.d.ts +418 -0
  22. package/dist/packages/nys-onthispage/src/nys-onthispage.figma.d.ts +1 -0
  23. package/dist/packages/nys-verticalnav/src/nys-verticalnav.d.ts +2 -0
  24. package/dist/src/index.d.ts +1 -0
  25. package/package.json +2 -2
@@ -52,15 +52,14 @@
52
52
  },
53
53
  {
54
54
  "name": "headingLevel",
55
- "description": "Heading element that wraps the toggle button (`h2` through `h6`).\n\nPick the level that puts the trigger in the right place in the page\noutline — one level below the heading that introduces the accordion. Leave\nit empty to follow the `headingLevel` of the enclosing `nys-accordion`,\nwhich is the usual way to set it for a whole group; `h3` applies when\nneither is specified. `h1` is not offered because an accordion trigger is\nnever the page title.",
55
+ "description": "Heading element that wraps the toggle button (`h2` through `h6`).\n\nUse one level below the heading that introduces the accordion. If unset,\nthe item follows the parent `nys-accordion`, then falls back to `h3`.",
56
56
  "values": [
57
57
  { "name": "" },
58
58
  { "name": "h2" },
59
59
  { "name": "h3" },
60
60
  { "name": "h4" },
61
61
  { "name": "h5" },
62
- { "name": "h6" },
63
- { "name": "\"\"" }
62
+ { "name": "h6" }
64
63
  ]
65
64
  },
66
65
  {
@@ -400,12 +399,12 @@
400
399
  },
401
400
  {
402
401
  "name": "prefixIcon",
403
- "description": "Material Symbol icon before label. Not shown for `circle` mode.",
402
+ "description": "NYSDS icon name (see `nys-icon`) shown before the label. Not shown for `circle` mode.",
404
403
  "values": []
405
404
  },
406
405
  {
407
406
  "name": "suffixIcon",
408
- "description": "Material Symbol icon after label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `circle` mode.",
407
+ "description": "NYSDS icon name (see `nys-icon`) shown after the label. Use `chevron_down` for dropdowns, `open_in_new` for external links. Not shown for `circle` mode.",
409
408
  "values": []
410
409
  },
411
410
  {
@@ -434,8 +433,8 @@
434
433
  "values": []
435
434
  },
436
435
  {
437
- "name": "ariaDescribedBy",
438
- "description": "ID(s) of element(s) describing this button. Sets `aria-describedby`.",
436
+ "name": "ariaDescription",
437
+ "description": "Aria description for the button's name. Useful for adding additional SR context\nsuch as hint texts from the nys-tooltip (since that cannot be resolved by `ariaDescribedBy`).",
439
438
  "values": []
440
439
  },
441
440
  {
@@ -1248,7 +1247,7 @@
1248
1247
  "attributes": [
1249
1248
  {
1250
1249
  "name": "icon",
1251
- "description": "Material Symbols icon name passed to `<nys-icon>`.",
1250
+ "description": "NYSDS icon name passed to `<nys-icon>`.",
1252
1251
  "values": []
1253
1252
  },
1254
1253
  {
@@ -1334,6 +1333,49 @@
1334
1333
  ],
1335
1334
  "references": []
1336
1335
  },
1336
+ {
1337
+ "name": "nys-onthispage",
1338
+ "description": "In-page navigation that links to page headings and highlights the current section.\n---\n\n\n### **Events:**\n - **nys-click** - Fired when a link is activated, by mouse or keyboard. Detail: `{id, label, index}`.",
1339
+ "attributes": [
1340
+ {
1341
+ "name": "id",
1342
+ "description": "Unique identifier. Auto-generated by the shared base if not provided.",
1343
+ "values": []
1344
+ },
1345
+ {
1346
+ "name": "headingTracker",
1347
+ "description": "Heading level to track and link. `h1` is excluded.",
1348
+ "values": [{ "name": "HeadingTag" }]
1349
+ },
1350
+ { "name": "heading", "description": "Nav heading text.", "values": [] },
1351
+ {
1352
+ "name": "scope",
1353
+ "description": "CSS selector for the container whose headings are tracked.",
1354
+ "values": []
1355
+ },
1356
+ {
1357
+ "name": "disableSticky",
1358
+ "description": "Turns off the sticky behavior, so the nav scrolls with the page.\nSticky only applies on viewports 480px wide or larger.",
1359
+ "values": []
1360
+ },
1361
+ {
1362
+ "name": "offset",
1363
+ "description": "Distance (px) from the viewport top to the trigger line. Also sets\n`scroll-margin-top` on tracked headings and the sticky `top` value.",
1364
+ "values": []
1365
+ },
1366
+ {
1367
+ "name": "disableSmoothScroll",
1368
+ "description": "Turns off smooth scrolling. Already off for visitors with `prefers-reduced-motion`.",
1369
+ "values": []
1370
+ },
1371
+ {
1372
+ "name": "hashBehavior",
1373
+ "description": "`hash` pushes history, `replace` updates the URL silently, `none` leaves it alone.",
1374
+ "values": [{ "name": "HashBehavior" }]
1375
+ }
1376
+ ],
1377
+ "references": []
1378
+ },
1337
1379
  {
1338
1380
  "name": "nys-pagination",
1339
1381
  "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}`.",