@nysds/components 1.13.1 → 1.14.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.
@@ -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-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
  },
@@ -521,29 +523,98 @@
521
523
  },
522
524
  {
523
525
  "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",
526
+ "description": "Date picker with calendar popup and native fallback.\n---\n\n\n### **Events:**\n - **nys-blur** - Fired when input or calendar loses focus. Triggers validation.\n- **nys-input** - Fired on date selection. Detail: `{id, value}`.\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
527
  "attributes": [
526
- { "name": "id", "values": [] },
527
- { "name": "name", "values": [] },
528
+ {
529
+ "name": "id",
530
+ "description": "Unique identifier. Auto-generated if not provided.",
531
+ "values": []
532
+ },
533
+ {
534
+ "name": "name",
535
+ "description": "Name for form submission.",
536
+ "values": []
537
+ },
528
538
  {
529
539
  "name": "width",
540
+ "description": "Input width: `md` (200px), `lg` (384px), `full` (100%).",
530
541
  "values": [{ "name": "md" }, { "name": "lg" }, { "name": "full" }]
531
542
  },
532
- { "name": "hideTodayButton", "values": [] },
533
- { "name": "hideClearButton", "values": [] },
534
- { "name": "disabled", "values": [] },
535
- { "name": "required", "values": [] },
536
- { "name": "optional", "values": [] },
537
- { "name": "showError", "values": [] },
538
- { "name": "errorMessage", "values": [] },
539
- { "name": "form", "values": [] },
540
- { "name": "tooltip", "values": [] },
541
- { "name": "type", "values": [] },
542
- { "name": "label", "values": [] },
543
- { "name": "description", "values": [] },
544
- { "name": "startDate", "values": [] },
545
- { "name": "inverted", "values": [] },
546
- { "name": "value", "values": [{ "name": "Date" }] }
543
+ {
544
+ "name": "hideTodayButton",
545
+ "description": "Hide the \"Today\" button in calendar popup.",
546
+ "values": []
547
+ },
548
+ {
549
+ "name": "hideClearButton",
550
+ "description": "Hide the \"Clear\" button in calendar popup.",
551
+ "values": []
552
+ },
553
+ {
554
+ "name": "disabled",
555
+ "description": "Disable interaction.",
556
+ "values": []
557
+ },
558
+ {
559
+ "name": "required",
560
+ "description": "Mark as required. Shows \"Required\" flag and validates on blur.",
561
+ "values": []
562
+ },
563
+ {
564
+ "name": "optional",
565
+ "description": "Show \"Optional\" flag. Use when most fields are required.",
566
+ "values": []
567
+ },
568
+ {
569
+ "name": "showError",
570
+ "description": "Show error state.",
571
+ "values": []
572
+ },
573
+ {
574
+ "name": "errorMessage",
575
+ "description": "Error message text.",
576
+ "values": []
577
+ },
578
+ {
579
+ "name": "form",
580
+ "description": "Form `id` to associate with when input is outside form.",
581
+ "values": []
582
+ },
583
+ {
584
+ "name": "tooltip",
585
+ "description": "Tooltip text on info icon hover.",
586
+ "values": []
587
+ },
588
+ {
589
+ "name": "type",
590
+ "description": "Input type. Currently only supports `date`.",
591
+ "values": []
592
+ },
593
+ {
594
+ "name": "label",
595
+ "description": "Label text. Required for accessibility.",
596
+ "values": []
597
+ },
598
+ {
599
+ "name": "description",
600
+ "description": "Helper text below label.",
601
+ "values": []
602
+ },
603
+ {
604
+ "name": "startDate",
605
+ "description": "Initial date when calendar opens (YYYY-MM-DD).",
606
+ "values": []
607
+ },
608
+ {
609
+ "name": "inverted",
610
+ "description": "Dark background mode.",
611
+ "values": []
612
+ },
613
+ {
614
+ "name": "value",
615
+ "description": "Selected date. Accepts Date object or ISO string (YYYY-MM-DD).",
616
+ "values": [{ "name": "Date" }]
617
+ }
547
618
  ],
548
619
  "references": []
549
620
  },
@@ -901,7 +972,7 @@
901
972
  },
902
973
  {
903
974
  "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.",
975
+ "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-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
976
  "attributes": [
906
977
  {
907
978
  "name": "checked",
@@ -962,7 +1033,9 @@
962
1033
  "name": "tile",
963
1034
  "description": "Renders as tile with larger clickable area.",
964
1035
  "values": []
965
- }
1036
+ },
1037
+ { "name": "other", "values": [] },
1038
+ { "name": "showOtherError", "values": [] }
966
1039
  ],
967
1040
  "references": []
968
1041
  },
@@ -1444,6 +1517,11 @@
1444
1517
  "description": "Maximum character length.",
1445
1518
  "values": []
1446
1519
  },
1520
+ {
1521
+ "name": "ariaLabel",
1522
+ "description": "Accessible label. When set, assuming \"label\" isn't provided for private special cases (i.e., <checkbox other>).",
1523
+ "values": []
1524
+ },
1447
1525
  {
1448
1526
  "name": "width",
1449
1527
  "description": "Input width: `sm` (88px), `md` (200px), `lg` (384px), `full` (100%, default).",