@nysds/components 1.18.1 → 1.19.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 (122) hide show
  1. package/custom-elements.json +799 -372
  2. package/dist/.vscode/vscode.html-custom-data.json +29 -24
  3. package/dist/custom-elements.json +799 -372
  4. package/dist/icons/ac_unit.svg +8 -0
  5. package/dist/icons/account_balance_filled.svg +8 -0
  6. package/dist/icons/account_circle.svg +8 -0
  7. package/dist/icons/add.svg +8 -0
  8. package/dist/icons/air.svg +8 -0
  9. package/dist/icons/arrow_back.svg +8 -0
  10. package/dist/icons/arrow_downward.svg +8 -0
  11. package/dist/icons/arrow_forward.svg +8 -0
  12. package/dist/icons/arrow_upward.svg +8 -0
  13. package/dist/icons/attach_file.svg +8 -0
  14. package/dist/icons/calendar_month.svg +8 -0
  15. package/dist/icons/cancel.svg +8 -0
  16. package/dist/icons/cancel_filled.svg +8 -0
  17. package/dist/icons/check.svg +8 -0
  18. package/dist/icons/check_circle.svg +8 -0
  19. package/dist/icons/chevron_down.svg +8 -0
  20. package/dist/icons/chevron_left.svg +8 -0
  21. package/dist/icons/chevron_right.svg +8 -0
  22. package/dist/icons/chevron_up.svg +8 -0
  23. package/dist/icons/clear_day.svg +8 -0
  24. package/dist/icons/close.svg +8 -0
  25. package/dist/icons/code.svg +8 -0
  26. package/dist/icons/content_copy.svg +8 -0
  27. package/dist/icons/coronavirus.svg +8 -0
  28. package/dist/icons/delete.svg +8 -0
  29. package/dist/icons/download.svg +8 -0
  30. package/dist/icons/download_done.svg +8 -0
  31. package/dist/icons/drive_folder_upload.svg +8 -0
  32. package/dist/icons/edit_square.svg +8 -0
  33. package/dist/icons/emergency_home.svg +8 -0
  34. package/dist/icons/error.svg +8 -0
  35. package/dist/icons/expand_all.svg +8 -0
  36. package/dist/icons/filter_alt.svg +8 -0
  37. package/dist/icons/filter_list.svg +8 -0
  38. package/dist/icons/height.svg +8 -0
  39. package/dist/icons/help.svg +8 -0
  40. package/dist/icons/info.svg +8 -0
  41. package/dist/icons/language.svg +8 -0
  42. package/dist/icons/language_filled.svg +8 -0
  43. package/dist/icons/link.svg +8 -0
  44. package/dist/icons/lock_filled.svg +8 -0
  45. package/dist/icons/mail.svg +8 -0
  46. package/dist/icons/manifest.json +84 -0
  47. package/dist/icons/menu.svg +8 -0
  48. package/dist/icons/more_vert.svg +8 -0
  49. package/dist/icons/notifications.svg +8 -0
  50. package/dist/icons/open_in_new.svg +8 -0
  51. package/dist/icons/phone_in_talk.svg +8 -0
  52. package/dist/icons/print.svg +8 -0
  53. package/dist/icons/progress_activity.svg +8 -0
  54. package/dist/icons/publish.svg +8 -0
  55. package/dist/icons/rainy.svg +8 -0
  56. package/dist/icons/refresh.svg +8 -0
  57. package/dist/icons/remove.svg +8 -0
  58. package/dist/icons/search.svg +8 -0
  59. package/dist/icons/share.svg +8 -0
  60. package/dist/icons/sms.svg +8 -0
  61. package/dist/icons/social_bluesky.svg +8 -0
  62. package/dist/icons/social_facebook.svg +8 -0
  63. package/dist/icons/social_flickr.svg +8 -0
  64. package/dist/icons/social_google_play.svg +8 -0
  65. package/dist/icons/social_instagram.svg +10 -0
  66. package/dist/icons/social_linkedin.svg +8 -0
  67. package/dist/icons/social_pinterest.svg +8 -0
  68. package/dist/icons/social_rss.svg +10 -0
  69. package/dist/icons/social_snapchat.svg +8 -0
  70. package/dist/icons/social_soundcloud.svg +21 -0
  71. package/dist/icons/social_threads.svg +9 -0
  72. package/dist/icons/social_tiktok.svg +8 -0
  73. package/dist/icons/social_tumblr.svg +8 -0
  74. package/dist/icons/social_vimeo.svg +8 -0
  75. package/dist/icons/social_x.svg +8 -0
  76. package/dist/icons/social_youtube.svg +8 -0
  77. package/dist/icons/sort.svg +8 -0
  78. package/dist/icons/straight.svg +8 -0
  79. package/dist/icons/thumb_down.svg +8 -0
  80. package/dist/icons/thumb_up.svg +8 -0
  81. package/dist/icons/upload_file.svg +8 -0
  82. package/dist/icons/visibility.svg +8 -0
  83. package/dist/icons/visibility_off.svg +8 -0
  84. package/dist/icons/warning.svg +8 -0
  85. package/dist/nysds.es.js +3762 -3630
  86. package/dist/nysds.es.js.map +1 -1
  87. package/dist/nysds.js +342 -865
  88. package/dist/nysds.js.map +1 -1
  89. package/dist/packages/mcp-server/src/lib/token-parser.d.ts +19 -31
  90. package/dist/packages/mcp-server/src/tools/token-tools.d.ts +2 -3
  91. package/dist/packages/nys-avatar/src/nys-avatar.d.ts +2 -0
  92. package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +3 -3
  93. package/dist/packages/nys-button/src/nys-button.d.ts +5 -0
  94. package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +2 -1
  95. package/dist/packages/nys-divider/src/nys-divider.d.ts +2 -0
  96. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +1 -1
  97. package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +3 -0
  98. package/dist/packages/nys-icon/src/icon-cache.d.ts +11 -0
  99. package/dist/packages/nys-icon/src/icon-library-registry.d.ts +47 -0
  100. package/dist/packages/nys-icon/src/index.d.ts +3 -0
  101. package/dist/packages/nys-icon/src/nys-icon.d.ts +40 -11
  102. package/dist/packages/nys-modal/src/nys-modal.d.ts +1 -0
  103. package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +1 -38
  104. package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +17 -7
  105. package/dist/packages/nys-stepper/src/nys-step.d.ts +75 -23
  106. package/dist/packages/nys-stepper/src/nys-stepper.d.ts +81 -9
  107. package/dist/packages/nys-tab/src/nys-tabgroup.d.ts +1 -0
  108. package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +1 -0
  109. package/package.json +12 -6
  110. package/packages/react/NysDivider.d.ts +3 -0
  111. package/packages/react/NysDivider.js +2 -1
  112. package/packages/react/NysIcon.d.ts +11 -2
  113. package/packages/react/NysIcon.js +26 -3
  114. package/packages/react/NysRadiobutton.d.ts +7 -23
  115. package/packages/react/NysRadiobutton.js +1 -3
  116. package/packages/react/NysRadiogroup.d.ts +18 -2
  117. package/packages/react/NysRadiogroup.js +17 -1
  118. package/packages/react/NysStep.d.ts +10 -12
  119. package/packages/react/NysStep.js +1 -12
  120. package/packages/react/NysStepper.d.ts +6 -6
  121. package/packages/react/nysds-jsx.d.ts +46 -36
  122. package/dist/packages/mcp-server/src/lib/format.d.ts +0 -21
@@ -697,6 +697,11 @@
697
697
  "name": "inverted",
698
698
  "description": "Adjusts colors for dark backgrounds.",
699
699
  "values": []
700
+ },
701
+ {
702
+ "name": "subtle",
703
+ "description": "If true, the divider will use a lighter color.",
704
+ "values": []
700
705
  }
701
706
  ],
702
707
  "references": []
@@ -917,11 +922,16 @@
917
922
  },
918
923
  {
919
924
  "name": "nys-icon",
920
- "description": "SVG icon from Material Symbols library with size, rotation, and color options.\n---\n",
925
+ "description": "SVG icon with swappable library support, size, rotation, and color options.\n---\n\n\n### **Methods:**\n - **redraw()** - Called by the icon library registry when the current library changes.",
921
926
  "attributes": [
922
927
  {
923
928
  "name": "name",
924
- "description": "Icon name from Material Symbols library. Required.",
929
+ "description": "Icon name to resolve from the selected library. Required.",
930
+ "values": []
931
+ },
932
+ {
933
+ "name": "library",
934
+ "description": "Which registered icon library to use. Defaults to the built-in NYSDS library.",
925
935
  "values": []
926
936
  },
927
937
  {
@@ -1076,7 +1086,7 @@
1076
1086
  },
1077
1087
  {
1078
1088
  "name": "nys-radiobutton",
1079
- "description": "Radio button for single selection from mutually exclusive options.\n---\n\n\n### **Events:**\n - **nys-error-clear**\n- **nys-change** - Fired when selection changes. Detail: `{id, checked, name, value}`.\n- **nys-other-input** - Fired when \"other\" text input value changes. Detail: `{id, name, value}`.\n- **nys-focus** - Fired when radio gains focus.\n- **nys-blur** - Fired when radio loses focus.\n- **nys-error**\n\n### **Methods:**\n - **getInputElement(): _Promise<HTMLInputElement | null>_** - Functions\n--------------------------------------------------------------------------\n\n### **Slots:**\n - **description** - Custom HTML description content.",
1089
+ "description": "Radio button for single selection from mutually exclusive options. This is a READONLY data component.\n---\n\n\n### **Events:**\n - **nys-change** - Fired when selection changes. Detail: `{id, checked, name, value}`.\n- **nys-focus** - Fired when radio gains focus.\n- **nys-blur** - Fired when radio loses focus.\n- **nys-other-input** - Fired when \"other\" text input value changes. Detail: `{id, name, value}`.\n\n### **Slots:**\n - **description** - Custom HTML description content.",
1080
1090
  "attributes": [
1081
1091
  {
1082
1092
  "name": "checked",
@@ -1140,7 +1150,7 @@
1140
1150
  },
1141
1151
  {
1142
1152
  "name": "nys-radiogroup",
1143
- "description": "Container for grouping radio buttons as a single form control.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `nys-radiobutton` elements.\n- **description** - Custom HTML description content.",
1153
+ "description": "Container for grouping radio buttons as a single form control.\n---\n\n\n### **Events:**\n - **nys-change**\n- **nys-other-input**\n\n### **Slots:**\n - _default_ - Default slot for `nys-radiobutton` elements.\n- **description** - Custom HTML description content.",
1144
1154
  "attributes": [
1145
1155
  {
1146
1156
  "name": "id",
@@ -1201,7 +1211,8 @@
1201
1211
  "name": "size",
1202
1212
  "description": "Radio size for all children: `sm` (24px) or `md` (32px, default).",
1203
1213
  "values": [{ "name": "sm" }, { "name": "md" }]
1204
- }
1214
+ },
1215
+ { "name": "_showOtherError", "values": [] }
1205
1216
  ],
1206
1217
  "references": []
1207
1218
  },
@@ -1339,16 +1350,16 @@
1339
1350
  },
1340
1351
  {
1341
1352
  "name": "nys-step",
1342
- "description": "Individual step for use within nys-stepper with navigation support.\n---\n\n\n### **Events:**\n - **nys-step-click** - Fired when a navigable step is clicked. Detail: `{href, label}`. Cancelable.",
1353
+ "description": "Individual step for use within nys-stepper with navigation support.\n---\n\n\n### **Events:**\n - **nys-step-click** - Fired when a navigable (`previous` or `current`) non-selected step is clicked or activated by keyboard. Detail: `{ href: string, label: string }`. Cancelable — call `e.preventDefault()` to suppress `window.location.href` navigation.",
1343
1354
  "attributes": [
1344
1355
  {
1345
1356
  "name": "selected",
1346
- "description": "Whether this step is currently being viewed. Set by parent stepper.",
1357
+ "description": "Which step is currently being displayed. If not set, defaults to the `current` step.\nSetting this on a step after `current` is silently corrected to match `current`.\nWhen controlling state from a framework, always set this explicitly.",
1347
1358
  "values": []
1348
1359
  },
1349
1360
  {
1350
1361
  "name": "current",
1351
- "description": "Marks the furthest reached step. Steps before this are navigable.",
1362
+ "description": "The furthest step the user has reached (progress boundary). Steps before this are navigable.",
1352
1363
  "values": []
1353
1364
  },
1354
1365
  {
@@ -1358,17 +1369,7 @@
1358
1369
  },
1359
1370
  {
1360
1371
  "name": "href",
1361
- "description": "URL for page navigation when step is clicked. Optional for SPA routing.",
1362
- "values": []
1363
- },
1364
- {
1365
- "name": "isCompactExpanded",
1366
- "description": "Internal: Whether parent stepper's compact view is expanded.",
1367
- "values": []
1368
- },
1369
- {
1370
- "name": "stepNumber",
1371
- "description": "Step number (1-indexed). Auto-assigned by parent stepper.",
1372
+ "description": "URL navigated to when the step is activated, via `window.location.href`.\nNavigation is suppressed if the `nys-step-click` listener calls `e.preventDefault()`.\nOmit for SPA/framework routing and handle navigation in the event listener instead.",
1372
1373
  "values": []
1373
1374
  }
1374
1375
  ],
@@ -1376,9 +1377,13 @@
1376
1377
  },
1377
1378
  {
1378
1379
  "name": "nys-stepper",
1379
- "description": "Multi-step progress indicator with navigation and mobile-friendly compact view.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `nys-step` elements.\n- **actions** - Navigation buttons (e.g., Back, Continue). Must be wrapped in a `<div>`.",
1380
+ "description": "Multi-step progress indicator with navigation and mobile-friendly compact view.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `nys-step` elements. Only `nys-step` children are accepted; others are removed.\n- **actions** - Persistent navigation buttons. Must contain exactly one `<div>` wrapping only `<nys-button>` elements.",
1380
1381
  "attributes": [
1381
- { "name": "id", "description": "Unique identifier.", "values": [] },
1382
+ {
1383
+ "name": "id",
1384
+ "description": "Unique identifier. Auto-generated as `nys-stepper-{n}-{timestamp}` if not provided.",
1385
+ "values": []
1386
+ },
1382
1387
  {
1383
1388
  "name": "name",
1384
1389
  "description": "Name attribute for form association.",
@@ -1386,17 +1391,17 @@
1386
1391
  },
1387
1392
  {
1388
1393
  "name": "label",
1389
- "description": "Title displayed above the step counter.",
1394
+ "description": "Title displayed above the step list and compact counter.",
1390
1395
  "values": []
1391
1396
  },
1392
1397
  {
1393
1398
  "name": "counterText",
1394
- "description": "Progress text (e.g., \"Step 2 of 5\"). Auto-updated based on selection.",
1399
+ "description": "Progress text displayed in compact mode (e.g., \"Step 2 of 5\"). Auto-managed do not set manually.",
1395
1400
  "values": []
1396
1401
  },
1397
1402
  {
1398
1403
  "name": "isCompactExpanded",
1399
- "description": "Whether compact mobile view is expanded to show all steps.",
1404
+ "description": "Whether compact mobile view is expanded to show all steps. Toggled by clicking the counter.",
1400
1405
  "values": []
1401
1406
  }
1402
1407
  ],