@nysds/components 1.19.1 → 1.19.3-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.
@@ -1124,9 +1124,10 @@
1124
1124
  "kind": "field",
1125
1125
  "name": "mediaQuery",
1126
1126
  "type": {
1127
- "text": "MediaQueryList"
1127
+ "text": "MediaQueryList | null"
1128
1128
  },
1129
- "privacy": "private"
1129
+ "privacy": "private",
1130
+ "default": "null"
1130
1131
  },
1131
1132
  {
1132
1133
  "kind": "method",
@@ -2327,7 +2328,7 @@
2327
2328
  "kind": "method",
2328
2329
  "name": "_handleAnyAttributeFunction",
2329
2330
  "privacy": "private",
2330
- "description": "A Solution to the Vanilla JS & Native HTML keydown:\n\nHandles inline onClick attributes set as strings in vanilla HTML\n(e.g. <nys-button onClick=\"doSomething()\">).\n\nWhen onClick is set this way, it is a DOM attribute (not a property)\nso this.onClick remains null. Native clicks execute the attribute\nautomatically, but keydown events do not, so we invoke it manually here."
2331
+ "description": "Handles inline onclick attributes for keyboard activation.\n\nNative clicks execute inline onclick attributes automatically, but\nkeyboard activation of the custom element does not trigger that native\nbehavior. Dispatching a synthetic click lets the browser's own inline\nevent handler mechanism execute any onclick attribute safely without\neval() or new Function()."
2331
2332
  },
2332
2333
  {
2333
2334
  "kind": "method",
@@ -3485,6 +3486,15 @@
3485
3486
  "privacy": "private",
3486
3487
  "default": "null"
3487
3488
  },
3489
+ {
3490
+ "kind": "field",
3491
+ "name": "_hasSharedNames",
3492
+ "type": {
3493
+ "text": "boolean"
3494
+ },
3495
+ "privacy": "private",
3496
+ "default": "false"
3497
+ },
3488
3498
  {
3489
3499
  "kind": "field",
3490
3500
  "name": "_internals",
@@ -3629,6 +3639,25 @@
3629
3639
  }
3630
3640
  }
3631
3641
  ]
3642
+ },
3643
+ {
3644
+ "kind": "method",
3645
+ "name": "_checkSharedNames",
3646
+ "privacy": "private",
3647
+ "return": {
3648
+ "type": {
3649
+ "text": "boolean"
3650
+ }
3651
+ },
3652
+ "parameters": [
3653
+ {
3654
+ "name": "checkboxes",
3655
+ "type": {
3656
+ "text": "NysCheckbox[]"
3657
+ }
3658
+ }
3659
+ ],
3660
+ "description": "Drupal-like naming support *"
3632
3661
  }
3633
3662
  ],
3634
3663
  "attributes": [
@@ -4575,7 +4604,7 @@
4575
4604
  "type": {
4576
4605
  "text": "\"md\" | \"lg\" | \"full\""
4577
4606
  },
4578
- "default": "\"md\"",
4607
+ "default": "\"full\"",
4579
4608
  "description": "Input width: `md` (200px), `lg` (384px), `full` (100%).",
4580
4609
  "attribute": "width",
4581
4610
  "reflects": true
@@ -5112,7 +5141,7 @@
5112
5141
  "type": {
5113
5142
  "text": "\"md\" | \"lg\" | \"full\""
5114
5143
  },
5115
- "default": "\"md\"",
5144
+ "default": "\"full\"",
5116
5145
  "description": "Input width: `md` (200px), `lg` (384px), `full` (100%).",
5117
5146
  "fieldName": "width",
5118
5147
  "propName": "width"
@@ -5507,6 +5536,16 @@
5507
5536
  "default": "false",
5508
5537
  "attribute": "showDropdown"
5509
5538
  },
5539
+ {
5540
+ "kind": "field",
5541
+ "name": "label",
5542
+ "type": {
5543
+ "text": "string"
5544
+ },
5545
+ "default": "\"\"",
5546
+ "description": "Accessible label for the menu. Used as `aria-label` on the `<ul role=\"menu\">` element.",
5547
+ "attribute": "label"
5548
+ },
5510
5549
  {
5511
5550
  "kind": "field",
5512
5551
  "name": "position",
@@ -5826,6 +5865,16 @@
5826
5865
  "fieldName": "showDropdown",
5827
5866
  "propName": "showdropdown"
5828
5867
  },
5868
+ {
5869
+ "name": "label",
5870
+ "type": {
5871
+ "text": "string"
5872
+ },
5873
+ "default": "\"\"",
5874
+ "description": "Accessible label for the menu. Used as `aria-label` on the `<ul role=\"menu\">` element.",
5875
+ "fieldName": "label",
5876
+ "propName": "label"
5877
+ },
5829
5878
  {
5830
5879
  "name": "position",
5831
5880
  "type": {
@@ -7089,6 +7138,16 @@
7089
7138
  "description": "Agency name displayed as the footer heading.",
7090
7139
  "attribute": "agencyName"
7091
7140
  },
7141
+ {
7142
+ "kind": "field",
7143
+ "name": "agencySubheading",
7144
+ "type": {
7145
+ "text": "string"
7146
+ },
7147
+ "default": "\"\"",
7148
+ "description": "Optional subheading displayed below the agency name.",
7149
+ "attribute": "agencySubheading"
7150
+ },
7092
7151
  {
7093
7152
  "kind": "field",
7094
7153
  "name": "homepageLink",
@@ -7126,6 +7185,16 @@
7126
7185
  "fieldName": "agencyName",
7127
7186
  "propName": "agencyname"
7128
7187
  },
7188
+ {
7189
+ "name": "agencySubheading",
7190
+ "type": {
7191
+ "text": "string"
7192
+ },
7193
+ "default": "\"\"",
7194
+ "description": "Optional subheading displayed below the agency name.",
7195
+ "fieldName": "agencySubheading",
7196
+ "propName": "agencysubheading"
7197
+ },
7129
7198
  {
7130
7199
  "name": "homepageLink",
7131
7200
  "type": {
@@ -7147,7 +7216,7 @@
7147
7216
  "examples": [
7148
7217
  {
7149
7218
  "title": "Simple footer",
7150
- "code": "<nys-globalfooter agencyName=\"Department of Health\" homepageLink=\"/\">\n<span>123 Main St, Albany NY</span>\n<span>info@health.ny.gov</span>\n</nys-globalfooter>",
7219
+ "code": "<nys-globalfooter\nagencyName=\"Department of Health\"\nhomepageLink=\"/\"\nagencySubheading=\"Protecting and Promoting the Health of New Yorkers\"\n>\n<span>123 Main St, Albany NY</span>\n<span>info@health.ny.gov</span>\n</nys-globalfooter>",
7151
7220
  "lang": "html"
7152
7221
  }
7153
7222
  ]
@@ -712,6 +712,11 @@
712
712
  "attributes": [
713
713
  { "name": "for", "values": [] },
714
714
  { "name": "showDropdown", "values": [] },
715
+ {
716
+ "name": "label",
717
+ "description": "Accessible label for the menu. Used as `aria-label` on the `<ul role=\"menu\">` element.",
718
+ "values": []
719
+ },
715
720
  {
716
721
  "name": "position",
717
722
  "description": "Preferred position relative to trigger.",
@@ -885,6 +890,11 @@
885
890
  "description": "Agency name displayed as the footer heading.",
886
891
  "values": []
887
892
  },
893
+ {
894
+ "name": "agencySubheading",
895
+ "description": "Optional subheading displayed below the agency name.",
896
+ "values": []
897
+ },
888
898
  {
889
899
  "name": "homepageLink",
890
900
  "description": "URL for the agency name link. If empty, name is not clickable.",
@@ -1124,9 +1124,10 @@
1124
1124
  "kind": "field",
1125
1125
  "name": "mediaQuery",
1126
1126
  "type": {
1127
- "text": "MediaQueryList"
1127
+ "text": "MediaQueryList | null"
1128
1128
  },
1129
- "privacy": "private"
1129
+ "privacy": "private",
1130
+ "default": "null"
1130
1131
  },
1131
1132
  {
1132
1133
  "kind": "method",
@@ -2327,7 +2328,7 @@
2327
2328
  "kind": "method",
2328
2329
  "name": "_handleAnyAttributeFunction",
2329
2330
  "privacy": "private",
2330
- "description": "A Solution to the Vanilla JS & Native HTML keydown:\n\nHandles inline onClick attributes set as strings in vanilla HTML\n(e.g. <nys-button onClick=\"doSomething()\">).\n\nWhen onClick is set this way, it is a DOM attribute (not a property)\nso this.onClick remains null. Native clicks execute the attribute\nautomatically, but keydown events do not, so we invoke it manually here."
2331
+ "description": "Handles inline onclick attributes for keyboard activation.\n\nNative clicks execute inline onclick attributes automatically, but\nkeyboard activation of the custom element does not trigger that native\nbehavior. Dispatching a synthetic click lets the browser's own inline\nevent handler mechanism execute any onclick attribute safely without\neval() or new Function()."
2331
2332
  },
2332
2333
  {
2333
2334
  "kind": "method",
@@ -3485,6 +3486,15 @@
3485
3486
  "privacy": "private",
3486
3487
  "default": "null"
3487
3488
  },
3489
+ {
3490
+ "kind": "field",
3491
+ "name": "_hasSharedNames",
3492
+ "type": {
3493
+ "text": "boolean"
3494
+ },
3495
+ "privacy": "private",
3496
+ "default": "false"
3497
+ },
3488
3498
  {
3489
3499
  "kind": "field",
3490
3500
  "name": "_internals",
@@ -3629,6 +3639,25 @@
3629
3639
  }
3630
3640
  }
3631
3641
  ]
3642
+ },
3643
+ {
3644
+ "kind": "method",
3645
+ "name": "_checkSharedNames",
3646
+ "privacy": "private",
3647
+ "return": {
3648
+ "type": {
3649
+ "text": "boolean"
3650
+ }
3651
+ },
3652
+ "parameters": [
3653
+ {
3654
+ "name": "checkboxes",
3655
+ "type": {
3656
+ "text": "NysCheckbox[]"
3657
+ }
3658
+ }
3659
+ ],
3660
+ "description": "Drupal-like naming support *"
3632
3661
  }
3633
3662
  ],
3634
3663
  "attributes": [
@@ -4575,7 +4604,7 @@
4575
4604
  "type": {
4576
4605
  "text": "\"md\" | \"lg\" | \"full\""
4577
4606
  },
4578
- "default": "\"md\"",
4607
+ "default": "\"full\"",
4579
4608
  "description": "Input width: `md` (200px), `lg` (384px), `full` (100%).",
4580
4609
  "attribute": "width",
4581
4610
  "reflects": true
@@ -5112,7 +5141,7 @@
5112
5141
  "type": {
5113
5142
  "text": "\"md\" | \"lg\" | \"full\""
5114
5143
  },
5115
- "default": "\"md\"",
5144
+ "default": "\"full\"",
5116
5145
  "description": "Input width: `md` (200px), `lg` (384px), `full` (100%).",
5117
5146
  "fieldName": "width",
5118
5147
  "propName": "width"
@@ -5507,6 +5536,16 @@
5507
5536
  "default": "false",
5508
5537
  "attribute": "showDropdown"
5509
5538
  },
5539
+ {
5540
+ "kind": "field",
5541
+ "name": "label",
5542
+ "type": {
5543
+ "text": "string"
5544
+ },
5545
+ "default": "\"\"",
5546
+ "description": "Accessible label for the menu. Used as `aria-label` on the `<ul role=\"menu\">` element.",
5547
+ "attribute": "label"
5548
+ },
5510
5549
  {
5511
5550
  "kind": "field",
5512
5551
  "name": "position",
@@ -5826,6 +5865,16 @@
5826
5865
  "fieldName": "showDropdown",
5827
5866
  "propName": "showdropdown"
5828
5867
  },
5868
+ {
5869
+ "name": "label",
5870
+ "type": {
5871
+ "text": "string"
5872
+ },
5873
+ "default": "\"\"",
5874
+ "description": "Accessible label for the menu. Used as `aria-label` on the `<ul role=\"menu\">` element.",
5875
+ "fieldName": "label",
5876
+ "propName": "label"
5877
+ },
5829
5878
  {
5830
5879
  "name": "position",
5831
5880
  "type": {
@@ -7089,6 +7138,16 @@
7089
7138
  "description": "Agency name displayed as the footer heading.",
7090
7139
  "attribute": "agencyName"
7091
7140
  },
7141
+ {
7142
+ "kind": "field",
7143
+ "name": "agencySubheading",
7144
+ "type": {
7145
+ "text": "string"
7146
+ },
7147
+ "default": "\"\"",
7148
+ "description": "Optional subheading displayed below the agency name.",
7149
+ "attribute": "agencySubheading"
7150
+ },
7092
7151
  {
7093
7152
  "kind": "field",
7094
7153
  "name": "homepageLink",
@@ -7126,6 +7185,16 @@
7126
7185
  "fieldName": "agencyName",
7127
7186
  "propName": "agencyname"
7128
7187
  },
7188
+ {
7189
+ "name": "agencySubheading",
7190
+ "type": {
7191
+ "text": "string"
7192
+ },
7193
+ "default": "\"\"",
7194
+ "description": "Optional subheading displayed below the agency name.",
7195
+ "fieldName": "agencySubheading",
7196
+ "propName": "agencysubheading"
7197
+ },
7129
7198
  {
7130
7199
  "name": "homepageLink",
7131
7200
  "type": {
@@ -7147,7 +7216,7 @@
7147
7216
  "examples": [
7148
7217
  {
7149
7218
  "title": "Simple footer",
7150
- "code": "<nys-globalfooter agencyName=\"Department of Health\" homepageLink=\"/\">\n<span>123 Main St, Albany NY</span>\n<span>info@health.ny.gov</span>\n</nys-globalfooter>",
7219
+ "code": "<nys-globalfooter\nagencyName=\"Department of Health\"\nhomepageLink=\"/\"\nagencySubheading=\"Protecting and Promoting the Health of New Yorkers\"\n>\n<span>123 Main St, Albany NY</span>\n<span>info@health.ny.gov</span>\n</nys-globalfooter>",
7151
7220
  "lang": "html"
7152
7221
  }
7153
7222
  ]
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <mask id="mask0_28075_337" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
3
+ <rect width="24" height="24" fill="#D9D9D9"/>
4
+ </mask>
5
+ <g mask="url(#mask0_28075_337)">
6
+ <path d="M12 19.35C14.0333 17.4833 15.5417 15.7875 16.525 14.2625C17.5083 12.7375 18 11.3833 18 10.2C18 8.38333 17.4208 6.89583 16.2625 5.7375C15.1042 4.57917 13.6833 4 12 4C10.3167 4 8.89583 4.57917 7.7375 5.7375C6.57917 6.89583 6 8.38333 6 10.2C6 11.3833 6.49167 12.7375 7.475 14.2625C8.45833 15.7875 9.96667 17.4833 12 19.35ZM11.3 21.2C11.0667 21.1167 10.8583 20.9917 10.675 20.825C9.59167 19.825 8.63333 18.85 7.8 17.9C6.96667 16.95 6.27083 16.0292 5.7125 15.1375C5.15417 14.2458 4.72917 13.3875 4.4375 12.5625C4.14583 11.7375 4 10.95 4 10.2C4 7.7 4.80417 5.70833 6.4125 4.225C8.02083 2.74167 9.88333 2 12 2C14.1167 2 15.9792 2.74167 17.5875 4.225C19.1958 5.70833 20 7.7 20 10.2C20 10.95 19.8542 11.7375 19.5625 12.5625C19.2708 13.3875 18.8458 14.2458 18.2875 15.1375C17.7292 16.0292 17.0333 16.95 16.2 17.9C15.3667 18.85 14.4083 19.825 13.325 20.825C13.1417 20.9917 12.9333 21.1167 12.7 21.2C12.4667 21.2833 12.2333 21.325 12 21.325C11.7667 21.325 11.5333 21.2833 11.3 21.2ZM13.4125 11.4125C13.8042 11.0208 14 10.55 14 10C14 9.45 13.8042 8.97917 13.4125 8.5875C13.0208 8.19583 12.55 8 12 8C11.45 8 10.9792 8.19583 10.5875 8.5875C10.1958 8.97917 10 9.45 10 10C10 10.55 10.1958 11.0208 10.5875 11.4125C10.9792 11.8042 11.45 12 12 12C12.55 12 13.0208 11.8042 13.4125 11.4125Z" fill="var(--nys-icon-color, currentcolor)"/>
7
+ </g>
8
+ </svg>
@@ -40,6 +40,7 @@
40
40
  "language",
41
41
  "language_filled",
42
42
  "link",
43
+ "location_on",
43
44
  "lock_filled",
44
45
  "mail",
45
46
  "menu",
@@ -53,6 +54,7 @@
53
54
  "rainy",
54
55
  "refresh",
55
56
  "remove",
57
+ "schedule",
56
58
  "search",
57
59
  "share",
58
60
  "sms",
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <mask id="mask0_28075_579" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
3
+ <rect width="24" height="24" fill="#D9D9D9"/>
4
+ </mask>
5
+ <g mask="url(#mask0_28075_579)">
6
+ <path d="M13 11.6V8C13 7.71667 12.9042 7.47917 12.7125 7.2875C12.5208 7.09583 12.2833 7 12 7C11.7167 7 11.4792 7.09583 11.2875 7.2875C11.0958 7.47917 11 7.71667 11 8V11.975C11 12.1083 11.025 12.2375 11.075 12.3625C11.125 12.4875 11.2 12.6 11.3 12.7L14.6 16C14.7833 16.1833 15.0167 16.275 15.3 16.275C15.5833 16.275 15.8167 16.1833 16 16C16.1833 15.8167 16.275 15.5833 16.275 15.3C16.275 15.0167 16.1833 14.7833 16 14.6L13 11.6ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 9.78333 19.2208 7.89583 17.6625 6.3375C16.1042 4.77917 14.2167 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20Z" fill="var(--nys-icon-color, currentcolor)"/>
7
+ </g>
8
+ </svg>