@nysds/components 1.13.1 → 1.15.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 (36) hide show
  1. package/custom-elements.json +2061 -237
  2. package/dist/.vscode/vscode.css-custom-data.json +15 -0
  3. package/dist/.vscode/vscode.html-custom-data.json +158 -24
  4. package/dist/custom-elements.json +2061 -237
  5. package/dist/nysds.es.js +3178 -1988
  6. package/dist/nysds.es.js.map +1 -1
  7. package/dist/nysds.js +442 -168
  8. package/dist/nysds.js.map +1 -1
  9. package/dist/packages/nys-accordion/src/nys-accordion.d.ts +4 -0
  10. package/dist/packages/nys-button/src/nys-button.d.ts +8 -0
  11. package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +20 -0
  12. package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +15 -0
  13. package/dist/packages/nys-combobox/src/index.d.ts +1 -0
  14. package/dist/packages/nys-combobox/src/nys-combobox.d.ts +118 -0
  15. package/dist/packages/nys-combobox/src/nys-combobox.figma.d.ts +1 -0
  16. package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +74 -7
  17. package/dist/packages/nys-dropdownmenu/src/index.d.ts +2 -0
  18. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +110 -0
  19. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.figma.d.ts +1 -0
  20. package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenuitem.d.ts +40 -0
  21. package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +8 -0
  22. package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +8 -0
  23. package/dist/packages/nys-label/src/nys-label.d.ts +5 -0
  24. package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +20 -0
  25. package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +9 -0
  26. package/dist/packages/nys-select/src/nys-select.d.ts +8 -0
  27. package/dist/packages/nys-textarea/src/nys-textarea.d.ts +8 -0
  28. package/dist/packages/nys-textinput/src/nys-textinput.d.ts +11 -1
  29. package/dist/packages/nys-toggle/src/nys-toggle.d.ts +10 -1
  30. package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +10 -1
  31. package/dist/src/index.d.ts +2 -0
  32. package/package.json +21 -17
  33. package/dist/nys-stepper/newsletter.html +0 -4
  34. package/dist/nys-stepper/personal.html +0 -6
  35. package/dist/nys-stepper/survey.html +0 -5
  36. package/dist/nys-stepper/team.html +0 -6
@@ -2,6 +2,21 @@
2
2
  "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
3
  "version": 1.1,
4
4
  "properties": [
5
+ {
6
+ "name": "--nys-accordion-background-color--header",
7
+ "description": "Background color of the accordion header.",
8
+ "values": []
9
+ },
10
+ {
11
+ "name": "--nys-accordion-background-color--header--hover",
12
+ "description": "Background hover color of the accordion header.",
13
+ "values": []
14
+ },
15
+ {
16
+ "name": "--nys-accordion-content-max-width",
17
+ "description": "Maximum readable width of accordion content. Defaults to a character-based width (80ch) for readability.",
18
+ "values": []
19
+ },
5
20
  {
6
21
  "name": "--nys-button-color",
7
22
  "description": "Text color of the button label.",
@@ -4,7 +4,7 @@
4
4
  "tags": [
5
5
  {
6
6
  "name": "nys-accordion",
7
- "description": "Container for accordion items with optional single-select and bordered styling.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `nys-accordionitem` elements.",
7
+ "description": "Container for accordion items with optional single-select and bordered styling.\n---\n\n\n### **Slots:**\n - _default_ - Default slot for `nys-accordionitem` elements.\n\n### **CSS Properties:**\n - **--nys-accordion-background-color--header** - Background color of the accordion header. _(default: undefined)_\n- **--nys-accordion-background-color--header--hover** - Background hover color of the accordion header. _(default: undefined)_\n- **--nys-accordion-content-max-width** - Maximum readable width of accordion content. Defaults to a character-based width (80ch) for readability. _(default: undefined)_",
8
8
  "attributes": [
9
9
  {
10
10
  "name": "id",
@@ -362,7 +362,7 @@
362
362
  },
363
363
  {
364
364
  "name": "nys-checkbox",
365
- "description": "Checkbox for binary choices or multi-select options.\n---\n\n\n### **Events:**\n - **nys-change** - Fired when checked state changes. Detail: `{id, checked, name, value}`.\n- **nys-focus** - Fired when checkbox gains focus.\n- **nys-blur** - Fired when checkbox loses focus.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Functions\n--------------------------------------------------------------------------\n\n### **Slots:**\n - **description** - Custom HTML description content.",
365
+ "description": "Checkbox for binary choices or multi-select options.\n---\n\n\n### **Events:**\n - **nys-change** - Fired when checked state 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 checkbox gains focus.\n- **nys-blur** - Fired when checkbox loses focus.\n- **nys-error**\n- **nys-error-clear**\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Functions\n--------------------------------------------------------------------------\n\n### **Slots:**\n - **description** - Custom HTML description content.",
366
366
  "attributes": [
367
367
  {
368
368
  "name": "checked",
@@ -443,7 +443,9 @@
443
443
  "name": "size",
444
444
  "description": "Checkbox size: `sm` (24px) or `md` (32px, default).",
445
445
  "values": [{ "name": "sm" }, { "name": "md" }]
446
- }
446
+ },
447
+ { "name": "other", "values": [] },
448
+ { "name": "showOtherError", "values": [] }
447
449
  ],
448
450
  "references": []
449
451
  },
@@ -520,30 +522,123 @@
520
522
  "references": []
521
523
  },
522
524
  {
523
- "name": "nys-datepicker",
524
- "description": "`<nys-datepicker>` is a form-associated, accessible date picker component.\nOptionally wraps a `<wc-datepicker>` for custom calendar UI.\n\nEvents:\n---\n\n\n### **Events:**\n - **nys-blur** - Dispatched when input or calendar loses focus\n- **nys-input** - Dispatched when user selects or types a valid date Notes: - Uses native date input on Safari or mobile devices (custom calendar removed for these scenarios)\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Passive check of validity:\n- Returns true/false\n- Does NOT update UI or show errors\n- Used in form submission checks",
525
+ "name": "nys-combobox",
526
+ "description": "`<nys-combobox>` is a form-enabled combo box combining text input with a filterable dropdown.\n\nFeatures:\n- Type to filter options\n- Keyboard navigation (Arrow keys, Enter, Escape)\n- Mouse and keyboard interaction\n- Clears non-selected text on blur\n- Clear button when value is selected\n- Integrates with forms via ElementInternals\n- Supports native <option> and <optgroup> elements\n- Accessible per W3C ARIA Authoring Practices\n---\n\n\n### **Events:**\n - **nys-input** - Fired on input change. Detail: `{ id, value }`.\n- **nys-focus** - Fired when combobox receives focus.\n- **nys-blur** - Fired when combobox loses focus.\n- **nys-change** - Fired when selection changes. Detail: `{ id, value }`.\n\n### **Slots:**\n - **description** - Optional custom description content below the label.\n- **default** - Options (<option>, <optgroup>) to populate the dropdown",
525
527
  "attributes": [
526
528
  { "name": "id", "values": [] },
527
529
  { "name": "name", "values": [] },
528
- {
529
- "name": "width",
530
- "values": [{ "name": "md" }, { "name": "lg" }, { "name": "full" }]
531
- },
532
- { "name": "hideTodayButton", "values": [] },
533
- { "name": "hideClearButton", "values": [] },
530
+ { "name": "label", "values": [] },
531
+ { "name": "description", "values": [] },
532
+ { "name": "value", "values": [] },
534
533
  { "name": "disabled", "values": [] },
535
534
  { "name": "required", "values": [] },
536
535
  { "name": "optional", "values": [] },
537
- { "name": "showError", "values": [] },
538
- { "name": "errorMessage", "values": [] },
539
- { "name": "form", "values": [] },
540
536
  { "name": "tooltip", "values": [] },
541
- { "name": "type", "values": [] },
542
- { "name": "label", "values": [] },
543
- { "name": "description", "values": [] },
544
- { "name": "startDate", "values": [] },
537
+ { "name": "form", "values": [] },
538
+ {
539
+ "name": "width",
540
+ "values": [{ "name": "md" }, { "name": "lg" }, { "name": "full" }]
541
+ },
545
542
  { "name": "inverted", "values": [] },
546
- { "name": "value", "values": [{ "name": "Date" }] }
543
+ { "name": "showError", "values": [] },
544
+ { "name": "errorMessage", "values": [] }
545
+ ],
546
+ "references": []
547
+ },
548
+ {
549
+ "name": "nys-datepicker",
550
+ "description": "Date picker with calendar popup and native fallback.\n---\n\n\n### **Events:**\n - **nys-input** - Fired on date selection. Detail: `{id, value}`.\n- **nys-blur** - Fired when input or calendar loses focus. Triggers validation.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Passive check of validity:\n- Returns true/false\n- Does NOT update UI or show errors\n- Used in form submission checks",
551
+ "attributes": [
552
+ {
553
+ "name": "id",
554
+ "description": "Unique identifier. Auto-generated if not provided.",
555
+ "values": []
556
+ },
557
+ {
558
+ "name": "name",
559
+ "description": "Name for form submission.",
560
+ "values": []
561
+ },
562
+ {
563
+ "name": "width",
564
+ "description": "Input width: `md` (200px), `lg` (384px), `full` (100%).",
565
+ "values": [{ "name": "md" }, { "name": "lg" }, { "name": "full" }]
566
+ },
567
+ {
568
+ "name": "hideTodayButton",
569
+ "description": "Hide the \"Today\" button in calendar popup.",
570
+ "values": []
571
+ },
572
+ {
573
+ "name": "hideClearButton",
574
+ "description": "Hide the \"Clear\" button in calendar popup.",
575
+ "values": []
576
+ },
577
+ {
578
+ "name": "disabled",
579
+ "description": "Disable interaction.",
580
+ "values": []
581
+ },
582
+ {
583
+ "name": "required",
584
+ "description": "Mark as required. Shows \"Required\" flag and validates on blur.",
585
+ "values": []
586
+ },
587
+ {
588
+ "name": "optional",
589
+ "description": "Show \"Optional\" flag. Use when most fields are required.",
590
+ "values": []
591
+ },
592
+ {
593
+ "name": "showError",
594
+ "description": "Show error state.",
595
+ "values": []
596
+ },
597
+ {
598
+ "name": "errorMessage",
599
+ "description": "Error message text.",
600
+ "values": []
601
+ },
602
+ {
603
+ "name": "form",
604
+ "description": "Form `id` to associate with when input is outside form.",
605
+ "values": []
606
+ },
607
+ {
608
+ "name": "tooltip",
609
+ "description": "Tooltip text on info icon hover.",
610
+ "values": []
611
+ },
612
+ {
613
+ "name": "type",
614
+ "description": "Input type. Currently only supports `date`.",
615
+ "values": []
616
+ },
617
+ {
618
+ "name": "label",
619
+ "description": "Label text. Required for accessibility.",
620
+ "values": []
621
+ },
622
+ {
623
+ "name": "description",
624
+ "description": "Helper text below label.",
625
+ "values": []
626
+ },
627
+ {
628
+ "name": "startDate",
629
+ "description": "Initial date when calendar opens (YYYY-MM-DD).",
630
+ "values": []
631
+ },
632
+ {
633
+ "name": "inverted",
634
+ "description": "Dark background mode.",
635
+ "values": []
636
+ },
637
+ {
638
+ "name": "value",
639
+ "description": "Selected date. Accepts Date object or ISO string (YYYY-MM-DD).",
640
+ "values": [{ "name": "Date" }]
641
+ }
547
642
  ],
548
643
  "references": []
549
644
  },
@@ -559,6 +654,33 @@
559
654
  ],
560
655
  "references": []
561
656
  },
657
+ {
658
+ "name": "nys-dropdownmenu",
659
+ "description": "\n---\n",
660
+ "attributes": [
661
+ { "name": "for", "values": [] },
662
+ { "name": "showDropdown", "values": [] },
663
+ {
664
+ "name": "position",
665
+ "description": "Preferred position relative to trigger.",
666
+ "values": [{ "name": "Position" }]
667
+ }
668
+ ],
669
+ "references": []
670
+ },
671
+ {
672
+ "name": "nys-dropdownmenuitem",
673
+ "description": "Dropdown item to display label and provide href link.\n---\n\n\n### **Events:**\n - **nys-click**",
674
+ "attributes": [
675
+ { "name": "label", "values": [] },
676
+ { "name": "href", "values": [] },
677
+ { "name": "disabled", "values": [] },
678
+ { "name": "target", "values": [] },
679
+ { "name": "prefixIcon", "values": [] },
680
+ { "name": "divider", "values": [] }
681
+ ],
682
+ "references": []
683
+ },
562
684
  {
563
685
  "name": "nys-errormessage",
564
686
  "description": "Internal error message display with icon and ARIA alert support.\n---\n",
@@ -901,7 +1023,7 @@
901
1023
  },
902
1024
  {
903
1025
  "name": "nys-radiobutton",
904
- "description": "Radio button for single selection from mutually exclusive options.\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\n### **Methods:**\n - **getInputElement(): _Promise<HTMLInputElement | null>_** - Functions\n--------------------------------------------------------------------------\n\n### **Slots:**\n - **description** - Custom HTML description content.",
1026
+ "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.",
905
1027
  "attributes": [
906
1028
  {
907
1029
  "name": "checked",
@@ -962,7 +1084,9 @@
962
1084
  "name": "tile",
963
1085
  "description": "Renders as tile with larger clickable area.",
964
1086
  "values": []
965
- }
1087
+ },
1088
+ { "name": "other", "values": [] },
1089
+ { "name": "showOtherError", "values": [] }
966
1090
  ],
967
1091
  "references": []
968
1092
  },
@@ -1444,6 +1568,11 @@
1444
1568
  "description": "Maximum character length.",
1445
1569
  "values": []
1446
1570
  },
1571
+ {
1572
+ "name": "ariaLabel",
1573
+ "description": "Accessible label. When set, assuming \"label\" isn't provided for private special cases (i.e., <checkbox other>).",
1574
+ "values": []
1575
+ },
1447
1576
  {
1448
1577
  "name": "width",
1449
1578
  "description": "Input width: `sm` (88px), `md` (200px), `lg` (384px), `full` (100%, default).",
@@ -1586,7 +1715,7 @@
1586
1715
  },
1587
1716
  {
1588
1717
  "name": "nys-unavheader",
1589
- "description": "Universal NYS header with trust bar, search, and translation. Required site-wide.\n---\n",
1718
+ "description": "\n---\n",
1590
1719
  "attributes": [
1591
1720
  {
1592
1721
  "name": "trustbarVisible",
@@ -1618,10 +1747,15 @@
1618
1747
  "description": "Hides the search functionality.",
1619
1748
  "values": []
1620
1749
  },
1621
- { "name": "searchUrl", "values": [] },
1750
+ {
1751
+ "name": "searchUrl",
1752
+ "description": "The URL endpoint of the search, make sure to include the query param.",
1753
+ "values": []
1754
+ },
1622
1755
  {
1623
1756
  "name": "languages",
1624
- "values": [{ "name": "[string" }, { "name": "string][]" }]
1757
+ "description": "The list of languages this site can be translated to, default to use Smartling",
1758
+ "values": [{ "name": "Language[]" }]
1625
1759
  }
1626
1760
  ],
1627
1761
  "references": []