@nysds/components 1.18.3 → 1.19.1-alpha-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 (106) hide show
  1. package/custom-elements.json +582 -191
  2. package/dist/.vscode/vscode.html-custom-data.json +16 -5
  3. package/dist/custom-elements.json +582 -191
  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 +3672 -3585
  86. package/dist/nysds.es.js.map +1 -1
  87. package/dist/nysds.js +316 -866
  88. package/dist/nysds.js.map +1 -1
  89. package/dist/packages/nys-button/src/nys-button.d.ts +4 -0
  90. package/dist/packages/nys-divider/src/nys-divider.d.ts +2 -0
  91. package/dist/packages/nys-icon/src/icon-cache.d.ts +11 -0
  92. package/dist/packages/nys-icon/src/icon-library-registry.d.ts +47 -0
  93. package/dist/packages/nys-icon/src/index.d.ts +3 -0
  94. package/dist/packages/nys-icon/src/nys-icon.d.ts +40 -11
  95. package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +1 -38
  96. package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +17 -7
  97. package/package.json +12 -8
  98. package/packages/react/NysDivider.d.ts +3 -0
  99. package/packages/react/NysDivider.js +2 -1
  100. package/packages/react/NysIcon.d.ts +11 -2
  101. package/packages/react/NysIcon.js +26 -3
  102. package/packages/react/NysRadiobutton.d.ts +7 -23
  103. package/packages/react/NysRadiobutton.js +1 -3
  104. package/packages/react/NysRadiogroup.d.ts +18 -2
  105. package/packages/react/NysRadiogroup.js +17 -1
  106. package/packages/react/nysds-jsx.d.ts +30 -20
@@ -419,6 +419,8 @@ export type NysDatepickerProps = {
419
419
  export type NysDividerProps = {
420
420
  /** Adjusts colors for dark backgrounds. */
421
421
  inverted?: boolean;
422
+ /** If true, the divider will use a lighter color. */
423
+ subtle?: boolean;
422
424
  };
423
425
 
424
426
  export type NysDropdownMenuProps = {
@@ -530,8 +532,10 @@ export type NysGlobalHeaderProps = {
530
532
  };
531
533
 
532
534
  export type NysIconProps = {
533
- /** Icon name from Material Symbols library. Required. */
535
+ /** Icon name to resolve from the selected library. Required. */
534
536
  name?: string;
537
+ /** Which registered icon library to use. Defaults to the built-in NYSDS library. */
538
+ library?: string;
535
539
  /** Accessible label. When set, removes `aria-hidden` and adds `aria-label` to the SVG. */
536
540
  ariaLabel?: string;
537
541
  /** Rotation in degrees. Applied via CSS `rotate`. */
@@ -560,6 +564,8 @@ export type NysIconProps = {
560
564
  | "32"
561
565
  | "40"
562
566
  | "50";
567
+ /** Resolves when the current icon load (if any) is complete. */
568
+ updateComplete?: Promise<boolean>;
563
569
  };
564
570
 
565
571
  export type NysLabelProps = {
@@ -644,18 +650,14 @@ export type NysRadiobuttonProps = {
644
650
  /** */
645
651
  showOtherError?: boolean;
646
652
 
647
- /** */
648
- "onnys-error-clear"?: (e: CustomEvent<CustomEvent>) => void;
649
653
  /** Fired when selection changes. Detail: `{id, checked, name, value}`. */
650
- "onnys-change"?: (e: CustomEvent<CustomEvent>) => void;
651
- /** Fired when "other" text input value changes. Detail: `{id, name, value}`. */
652
- "onnys-other-input"?: (e: CustomEvent<CustomEvent>) => void;
654
+ "onnys-change"?: (e: CustomEvent<never>) => void;
653
655
  /** Fired when radio gains focus. */
654
- "onnys-focus"?: (e: CustomEvent<Event>) => void;
656
+ "onnys-focus"?: (e: CustomEvent<never>) => void;
655
657
  /** Fired when radio loses focus. */
656
- "onnys-blur"?: (e: CustomEvent<Event>) => void;
657
- /** */
658
- "onnys-error"?: (e: CustomEvent<CustomEvent>) => void;
658
+ "onnys-blur"?: (e: CustomEvent<never>) => void;
659
+ /** Fired when "other" text input value changes. Detail: `{id, name, value}`. */
660
+ "onnys-other-input"?: (e: CustomEvent<never>) => void;
659
661
  };
660
662
 
661
663
  export type NysRadiogroupProps = {
@@ -683,6 +685,13 @@ export type NysRadiogroupProps = {
683
685
  form?: string | null;
684
686
  /** Radio size for all children: `sm` (24px) or `md` (32px, default). */
685
687
  size?: "sm" | "md";
688
+ /** */
689
+ _showOtherError?: boolean;
690
+
691
+ /** */
692
+ "onnys-change"?: (e: CustomEvent<CustomEvent>) => void;
693
+ /** */
694
+ "onnys-other-input"?: (e: CustomEvent<CustomEvent>) => void;
686
695
  };
687
696
 
688
697
  export type NysOptionProps = {
@@ -1294,9 +1303,12 @@ export type CustomElements = {
1294
1303
  "nys-globalheader": Partial<NysGlobalHeaderProps & BaseProps & BaseEvents>;
1295
1304
 
1296
1305
  /**
1297
- * SVG icon from Material Symbols library with size, rotation, and color options.
1306
+ * SVG icon with swappable library support, size, rotation, and color options.
1298
1307
  * ---
1299
1308
  *
1309
+ *
1310
+ * ### **Methods:**
1311
+ * - **redraw()** - Called by the icon library registry when the current library changes.
1300
1312
  */
1301
1313
  "nys-icon": Partial<NysIconProps & BaseProps & BaseEvents>;
1302
1314
 
@@ -1339,21 +1351,15 @@ export type CustomElements = {
1339
1351
  "nys-pagination": Partial<NysPaginationProps & BaseProps & BaseEvents>;
1340
1352
 
1341
1353
  /**
1342
- * Radio button for single selection from mutually exclusive options.
1354
+ * Radio button for single selection from mutually exclusive options. This is a READONLY data component.
1343
1355
  * ---
1344
1356
  *
1345
1357
  *
1346
1358
  * ### **Events:**
1347
- * - **nys-error-clear**
1348
- * - **nys-change** - Fired when selection changes. Detail: `{id, checked, name, value}`.
1349
- * - **nys-other-input** - Fired when "other" text input value changes. Detail: `{id, name, value}`.
1359
+ * - **nys-change** - Fired when selection changes. Detail: `{id, checked, name, value}`.
1350
1360
  * - **nys-focus** - Fired when radio gains focus.
1351
1361
  * - **nys-blur** - Fired when radio loses focus.
1352
- * - **nys-error**
1353
- *
1354
- * ### **Methods:**
1355
- * - **getInputElement(): _Promise<HTMLInputElement | null>_** - Functions
1356
- * --------------------------------------------------------------------------
1362
+ * - **nys-other-input** - Fired when "other" text input value changes. Detail: `{id, name, value}`.
1357
1363
  *
1358
1364
  * ### **Slots:**
1359
1365
  * - **description** - Custom HTML description content.
@@ -1365,6 +1371,10 @@ export type CustomElements = {
1365
1371
  * ---
1366
1372
  *
1367
1373
  *
1374
+ * ### **Events:**
1375
+ * - **nys-change**
1376
+ * - **nys-other-input**
1377
+ *
1368
1378
  * ### **Slots:**
1369
1379
  * - _default_ - Default slot for `nys-radiobutton` elements.
1370
1380
  * - **description** - Custom HTML description content.