@nysds/components 1.21.1-alpha-1 → 1.21.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 (38) hide show
  1. package/custom-elements.json +276 -154
  2. package/dist/.vscode/vscode.css-custom-data.json +40 -0
  3. package/dist/.vscode/vscode.html-custom-data.json +17 -7
  4. package/dist/custom-elements.json +268 -98
  5. package/dist/{nys-icon.library-Bi_7DKlD-BEL9M8Q4.js → nys-icon.library-BxwfG3ym-D4Dl8jc_.js} +12 -4
  6. package/dist/nys-icon.library-BxwfG3ym-D4Dl8jc_.js.map +1 -0
  7. package/dist/{nys-icon.library-CwuPZJAc.js → nys-icon.library-C02yNW9R.js} +2 -2
  8. package/dist/{nys-icon.library-D_YvOGLH.js.map → nys-icon.library-C02yNW9R.js.map} +1 -1
  9. package/dist/nysds.es.js +4130 -4709
  10. package/dist/nysds.es.js.map +1 -1
  11. package/dist/nysds.js +346 -328
  12. package/dist/nysds.js.map +1 -1
  13. package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +2 -2
  14. package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.d.ts +7 -2
  15. package/dist/packages/nys-card/src/nys-card.d.ts +52 -0
  16. package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +1 -0
  17. package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +19 -56
  18. package/dist/packages/nys-iconlist/src/nys-iconlist.d.ts +22 -1
  19. package/dist/packages/nys-iconlist/src/nys-iconlistitem.d.ts +6 -0
  20. package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +3 -16
  21. package/package.json +4 -4
  22. package/packages/react/.turbo/turbo-build.log +59 -0
  23. package/packages/react/NysCard.d.ts +11 -0
  24. package/packages/react/NysCard.js +2 -0
  25. package/packages/react/NysGlobalHeader.d.ts +0 -3
  26. package/packages/react/NysGlobalHeader.js +0 -2
  27. package/packages/react/NysIconlist.d.ts +4 -1
  28. package/packages/react/NysIconlist.js +2 -1
  29. package/packages/react/NysIconlistitem.d.ts +4 -0
  30. package/packages/react/NysIconlistitem.js +2 -1
  31. package/packages/react/NysUnavHeader.d.ts +3 -6
  32. package/packages/react/NysUnavHeader.js +0 -2
  33. package/packages/react/nysds-jsx.d.ts +19 -8
  34. package/dist/nys-icon.library-Bi_7DKlD-BEL9M8Q4.js.map +0 -1
  35. package/dist/nys-icon.library-Bi_7DKlD-YSs5zqZy.js +0 -698
  36. package/dist/nys-icon.library-Bi_7DKlD-YSs5zqZy.js.map +0 -1
  37. package/dist/nys-icon.library-CwuPZJAc.js.map +0 -1
  38. package/dist/nys-icon.library-D_YvOGLH.js +0 -696
@@ -66,6 +66,46 @@
66
66
  "name": "--nys-card-height",
67
67
  "description": "Height of the card. Set to `100%` to stretch the card to its container's height, so a row of cards renders at an equal height. The extra height is absorbed by the main content area, keeping the `footer` slot pinned to the bottom of the card. Requires the container to give the card a height to fill (e.g. a grid column with `nys-display-flex`).",
68
68
  "values": []
69
+ },
70
+ {
71
+ "name": "--nys-card-font-size--preheading",
72
+ "description": "Font size of the preheading text.",
73
+ "values": []
74
+ },
75
+ {
76
+ "name": "--nys-card-font-size--heading",
77
+ "description": "Font size of the heading text.",
78
+ "values": []
79
+ },
80
+ {
81
+ "name": "--nys-card-font-size--subheading",
82
+ "description": "Font size of the subheading text.",
83
+ "values": []
84
+ },
85
+ {
86
+ "name": "--nys-card-font-size--description",
87
+ "description": "Font size of the description text.",
88
+ "values": []
89
+ },
90
+ {
91
+ "name": "--nys-card-line-height--preheading",
92
+ "description": "Line height of the preheading text.",
93
+ "values": []
94
+ },
95
+ {
96
+ "name": "--nys-card-line-height--heading",
97
+ "description": "Line height of the heading text.",
98
+ "values": []
99
+ },
100
+ {
101
+ "name": "--nys-card-line-height--subheading",
102
+ "description": "Line height of the subheading text.",
103
+ "values": []
104
+ },
105
+ {
106
+ "name": "--nys-card-line-height--description",
107
+ "description": "Line height of the description text.",
108
+ "values": []
69
109
  }
70
110
  ],
71
111
  "pseudoElements": []
@@ -462,13 +462,18 @@
462
462
  },
463
463
  {
464
464
  "name": "nys-card",
465
- "description": "Flexible container that groups related content and actions about a single subject.\n---\n\n\n### **Events:**\n - **nys-click** - Fired when an interactive card is activated (mouse or keyboard).\n- **nys-focus** - Fired when an interactive card receives focus.\n- **nys-blur** - Fired when an interactive card loses focus.\n\n### **Slots:**\n - **preheading** - Content rendered above the heading block (e.g. a badge or label).\n- _default_ - Default slot for the card's main body. Use for rich content when the `description` property is not enough.\n- **footer** - Content rendered at the footer of the card, typically actions like buttons or links.\n- **media** - Visual content displayed at the top of the card, typically an `<img>`.\n- **media-accent** - Text for the accent badge displayed over the media, typically a date. Pass a wrapper holding two elements: the first is rendered as the month line, the second as the day line. Only renders when the `media` slot has content. The card becomes a single interactive control when it is given something to do: an `href` renders it as an `<a>`, a click handler (`onClick` or an inline `onclick`) renders it as a `<button>`.\n\n### **CSS Properties:**\n - **--nys-card-height** - Height of the card. Set to `100%` to stretch the card to its container's height, so a row of cards renders at an equal height. The extra height is absorbed by the main content area, keeping the `footer` slot pinned to the bottom of the card. Requires the container to give the card a height to fill (e.g. a grid column with `nys-display-flex`). _(default: fit-content)_",
465
+ "description": "Flexible container that groups related content and actions about a single subject.\n---\n\n\n### **Events:**\n - **nys-click** - Fired when an interactive card is activated (mouse or keyboard).\n- **nys-focus** - Fired when an interactive card receives focus.\n- **nys-blur** - Fired when an interactive card loses focus.\n\n### **Slots:**\n - **preheading** - Content rendered above the heading block (e.g. a badge or label).\n- _default_ - Default slot for the card's main body. Use for rich content when the `description` property is not enough.\n- **footer** - Content rendered at the footer of the card, typically actions like buttons or links.\n- **media** - Visual content displayed at the top of the card, typically an `<img>`.\n- **media-accent** - Text for the accent badge displayed over the media, typically a date. Pass a wrapper holding two elements: the first is rendered as the month line, the second as the day line. Only renders when the `media` slot has content. The card becomes a single interactive control when it is given something to do: an `href` renders it as an `<a>`, a click handler (`onClick` or an inline `onclick`) renders it as a `<button>`.\n\n### **CSS Properties:**\n - **--nys-card-height** - Height of the card. Set to `100%` to stretch the card to its container's height, so a row of cards renders at an equal height. The extra height is absorbed by the main content area, keeping the `footer` slot pinned to the bottom of the card. Requires the container to give the card a height to fill (e.g. a grid column with `nys-display-flex`). _(default: fit-content)_\n- **--nys-card-font-size--preheading** - Font size of the preheading text. _(default: undefined)_\n- **--nys-card-font-size--heading** - Font size of the heading text. _(default: undefined)_\n- **--nys-card-font-size--subheading** - Font size of the subheading text. _(default: undefined)_\n- **--nys-card-font-size--description** - Font size of the description text. _(default: undefined)_\n- **--nys-card-line-height--preheading** - Line height of the preheading text. _(default: undefined)_\n- **--nys-card-line-height--heading** - Line height of the heading text. _(default: undefined)_\n- **--nys-card-line-height--subheading** - Line height of the subheading text. _(default: undefined)_\n- **--nys-card-line-height--description** - Line height of the description text. _(default: undefined)_",
466
466
  "attributes": [
467
467
  {
468
468
  "name": "id",
469
469
  "description": "Unique identifier. Auto-generated if not provided.",
470
470
  "values": []
471
471
  },
472
+ {
473
+ "name": "size",
474
+ "description": "The size of the text content within a card (preheading, heading, subheading, and description).",
475
+ "values": [{ "name": "sm" }, { "name": "md" }, { "name": "lg" }]
476
+ },
472
477
  {
473
478
  "name": "preheading",
474
479
  "description": "Appears above the heading text.",
@@ -1044,11 +1049,6 @@
1044
1049
  "name": "nys-globalheader",
1045
1050
  "description": "Agency header with navigation, mobile menu, and active link highlighting.\n---\n\n\n### **Slots:**\n - _default_ - Navigation content (typically `<ul>` with `<li><a>` links). Auto-sanitized.\n- **user-actions** - User-account controls (e.g. profile link, settings, log-out button) shown in the header.",
1046
1051
  "attributes": [
1047
- {
1048
- "name": "id",
1049
- "description": "Unique identifier. Auto-generated if not provided.",
1050
- "values": []
1051
- },
1052
1052
  {
1053
1053
  "name": "appName",
1054
1054
  "description": "Application name displayed prominently.",
@@ -1141,7 +1141,7 @@
1141
1141
  },
1142
1142
  {
1143
1143
  "name": "nys-iconlist",
1144
- "description": "A scannable list of icon + text items, with an optional divider between rows.\n---\n",
1144
+ "description": "A scannable list of icon + text items.\n---\n",
1145
1145
  "attributes": [
1146
1146
  {
1147
1147
  "name": "id",
@@ -1152,6 +1152,11 @@
1152
1152
  "name": "divider",
1153
1153
  "description": "Draws a divider between items. No divider is drawn after the last item.",
1154
1154
  "values": []
1155
+ },
1156
+ {
1157
+ "name": "inverted",
1158
+ "description": "Adjusts colors for dark backgrounds.",
1159
+ "values": []
1155
1160
  }
1156
1161
  ],
1157
1162
  "references": []
@@ -1169,6 +1174,11 @@
1169
1174
  "name": "divider",
1170
1175
  "description": "Draws a rule below the item. Set by the parent `<nys-iconlist divider>`; not intended to be\nset directly.",
1171
1176
  "values": []
1177
+ },
1178
+ {
1179
+ "name": "inverted",
1180
+ "description": "Adjusts colors for dark backgrounds. Set by the parent `<nys-iconlist inverted>`; not intended to be\nset directly.",
1181
+ "values": []
1172
1182
  }
1173
1183
  ],
1174
1184
  "references": []
@@ -1939,6 +1939,11 @@
1939
1939
  "privacy": "private",
1940
1940
  "description": "Functions\n--------------------------------------------------------------------------"
1941
1941
  },
1942
+ {
1943
+ "kind": "field",
1944
+ "name": "_boundDisabledClickGuard",
1945
+ "privacy": "private"
1946
+ },
1942
1947
  {
1943
1948
  "kind": "method",
1944
1949
  "name": "_getSlottedOl",
@@ -1957,7 +1962,15 @@
1957
1962
  "type": {
1958
1963
  "text": "HTMLLIElement[]"
1959
1964
  }
1960
- }
1965
+ },
1966
+ "parameters": [
1967
+ {
1968
+ "name": "ol",
1969
+ "type": {
1970
+ "text": "HTMLOListElement"
1971
+ }
1972
+ }
1973
+ ]
1961
1974
  },
1962
1975
  {
1963
1976
  "kind": "method",
@@ -1997,7 +2010,57 @@
1997
2010
  },
1998
2011
  {
1999
2012
  "kind": "method",
2000
- "name": "_createBackToParentElement",
2013
+ "name": "_createIcon",
2014
+ "privacy": "private",
2015
+ "return": {
2016
+ "type": {
2017
+ "text": "HTMLElement"
2018
+ }
2019
+ },
2020
+ "parameters": [
2021
+ {
2022
+ "name": "name",
2023
+ "type": {
2024
+ "text": "string"
2025
+ }
2026
+ },
2027
+ {
2028
+ "name": "size",
2029
+ "type": {
2030
+ "text": "string"
2031
+ }
2032
+ }
2033
+ ]
2034
+ },
2035
+ {
2036
+ "kind": "method",
2037
+ "name": "_resetItem",
2038
+ "privacy": "private",
2039
+ "parameters": [
2040
+ {
2041
+ "name": "li",
2042
+ "type": {
2043
+ "text": "HTMLLIElement"
2044
+ }
2045
+ }
2046
+ ]
2047
+ },
2048
+ {
2049
+ "kind": "method",
2050
+ "name": "_applyDisabledState",
2051
+ "privacy": "private",
2052
+ "parameters": [
2053
+ {
2054
+ "name": "a",
2055
+ "type": {
2056
+ "text": "HTMLAnchorElement"
2057
+ }
2058
+ }
2059
+ ]
2060
+ },
2061
+ {
2062
+ "kind": "method",
2063
+ "name": "_applyBackToParentStyle",
2001
2064
  "privacy": "private",
2002
2065
  "parameters": [
2003
2066
  {
@@ -2010,7 +2073,7 @@
2010
2073
  },
2011
2074
  {
2012
2075
  "kind": "method",
2013
- "name": "_createCrumbElement",
2076
+ "name": "_applyCrumbStyle",
2014
2077
  "privacy": "private",
2015
2078
  "parameters": [
2016
2079
  {
@@ -2027,6 +2090,19 @@
2027
2090
  }
2028
2091
  ]
2029
2092
  },
2093
+ {
2094
+ "kind": "method",
2095
+ "name": "_insertEllipsis",
2096
+ "privacy": "private",
2097
+ "parameters": [
2098
+ {
2099
+ "name": "referenceLi",
2100
+ "type": {
2101
+ "text": "HTMLLIElement"
2102
+ }
2103
+ }
2104
+ ]
2105
+ },
2030
2106
  {
2031
2107
  "kind": "method",
2032
2108
  "name": "_handleSlotChange",
@@ -3047,6 +3123,38 @@
3047
3123
  "description": "Height of the card. Set to `100%` to stretch the card to its container's height, so a row of cards renders at an equal height. The extra height is absorbed by the main content area, keeping the `footer` slot pinned to the bottom of the card. Requires the container to give the card a height to fill (e.g. a grid column with `nys-display-flex`).",
3048
3124
  "name": "--nys-card-height",
3049
3125
  "default": "fit-content"
3126
+ },
3127
+ {
3128
+ "description": "Font size of the preheading text.",
3129
+ "name": "--nys-card-font-size--preheading"
3130
+ },
3131
+ {
3132
+ "description": "Font size of the heading text.",
3133
+ "name": "--nys-card-font-size--heading"
3134
+ },
3135
+ {
3136
+ "description": "Font size of the subheading text.",
3137
+ "name": "--nys-card-font-size--subheading"
3138
+ },
3139
+ {
3140
+ "description": "Font size of the description text.",
3141
+ "name": "--nys-card-font-size--description"
3142
+ },
3143
+ {
3144
+ "description": "Line height of the preheading text.",
3145
+ "name": "--nys-card-line-height--preheading"
3146
+ },
3147
+ {
3148
+ "description": "Line height of the heading text.",
3149
+ "name": "--nys-card-line-height--heading"
3150
+ },
3151
+ {
3152
+ "description": "Line height of the subheading text.",
3153
+ "name": "--nys-card-line-height--subheading"
3154
+ },
3155
+ {
3156
+ "description": "Line height of the description text.",
3157
+ "name": "--nys-card-line-height--description"
3050
3158
  }
3051
3159
  ],
3052
3160
  "slots": [
@@ -3083,6 +3191,17 @@
3083
3191
  "attribute": "id",
3084
3192
  "reflects": true
3085
3193
  },
3194
+ {
3195
+ "kind": "field",
3196
+ "name": "size",
3197
+ "type": {
3198
+ "text": "\"sm\" | \"md\" | \"lg\""
3199
+ },
3200
+ "default": "\"md\"",
3201
+ "description": "The size of the text content within a card (preheading, heading, subheading, and description).",
3202
+ "attribute": "size",
3203
+ "reflects": true
3204
+ },
3086
3205
  {
3087
3206
  "kind": "field",
3088
3207
  "name": "preheading",
@@ -3357,6 +3476,16 @@
3357
3476
  "fieldName": "id",
3358
3477
  "propName": "id"
3359
3478
  },
3479
+ {
3480
+ "name": "size",
3481
+ "type": {
3482
+ "text": "\"sm\" | \"md\" | \"lg\""
3483
+ },
3484
+ "default": "\"md\"",
3485
+ "description": "The size of the text content within a card (preheading, heading, subheading, and description).",
3486
+ "fieldName": "size",
3487
+ "propName": "size"
3488
+ },
3360
3489
  {
3361
3490
  "name": "preheading",
3362
3491
  "type": {
@@ -3476,6 +3605,21 @@
3476
3605
  "code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nheading=\"Heading\"\nsubheading=\"Subheading\"\ndescription=\"A short description of the card's subject.\"\n></nys-card>\n</div>",
3477
3606
  "lang": "html"
3478
3607
  },
3608
+ {
3609
+ "title": "Size SM",
3610
+ "code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nsize=\"sm\"\npreheading=\"Preheading\"\nheading=\"Heading\"\nsubheading=\"Subheading\"\ndescription=\"A short description of the card's subject.\"\n></nys-card>\n</div>",
3611
+ "lang": "html"
3612
+ },
3613
+ {
3614
+ "title": "Size MD (default)",
3615
+ "code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nsize=\"md\"\npreheading=\"Preheading\"\nheading=\"Heading\"\nsubheading=\"Subheading\"\ndescription=\"A short description of the card's subject.\"\n></nys-card>\n</div>",
3616
+ "lang": "html"
3617
+ },
3618
+ {
3619
+ "title": "Size LG",
3620
+ "code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nsize=\"lg\"\npreheading=\"Preheading\"\nheading=\"Heading\"\nsubheading=\"Subheading\"\ndescription=\"A short description of the card's subject.\"\n></nys-card>\n</div>",
3621
+ "lang": "html"
3622
+ },
3479
3623
  {
3480
3624
  "title": "Media",
3481
3625
  "code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nheading=\"Heading\"\ndescription=\"A card with a media image.\"\n>\n<img slot=\"media\"\nsrc=\"https://images.unsplash.com/photo-1513360371669-4adf3dd7dff8?q=80&w=2070&auto=format&fit=crop\"\nrole=\"presentation\"\n/>\n</nys-card>\n</div>",
@@ -8584,7 +8728,7 @@
8584
8728
  "declarations": [
8585
8729
  {
8586
8730
  "kind": "class",
8587
- "description": "Agency-branded header with app/agency name, navigation, and responsive mobile menu.\n\nPlace below `nys-unavheader`. Slot navigation links as `<ul><li><a>` elements; active links\nare auto-highlighted based on current URL, unless you set `aria-current` on a link\nyourself — then the header leaves the current-page state entirely to you, which is\nwhat apps that don't route on the pathname (hash-routed SPAs, for example) need.\nMobile menu toggles automatically on narrow screens.",
8731
+ "description": "Agency-branded header with app/agency name, navigation, and responsive mobile menu.\n\nPlace below `nys-unavheader`. Slot navigation links as `<ul><li><a>` elements; active links\nare auto-highlighted based on current URL. Mobile menu toggles automatically on narrow screens.",
8588
8732
  "name": "NysGlobalHeader",
8589
8733
  "slots": [
8590
8734
  {
@@ -8597,17 +8741,6 @@
8597
8741
  }
8598
8742
  ],
8599
8743
  "members": [
8600
- {
8601
- "kind": "field",
8602
- "name": "id",
8603
- "type": {
8604
- "text": "string"
8605
- },
8606
- "default": "\"\"",
8607
- "description": "Unique identifier. Auto-generated if not provided.",
8608
- "attribute": "id",
8609
- "reflects": true
8610
- },
8611
8744
  {
8612
8745
  "kind": "field",
8613
8746
  "name": "appName",
@@ -8694,19 +8827,30 @@
8694
8827
  "privacy": "private",
8695
8828
  "description": "Watches for the viewport growing past the mobile breakpoint. The menu and its\ntoggle are `display: none` there, so an open menu that survived a resize would\nleave the focus trap guarding elements nobody can reach."
8696
8829
  },
8830
+ {
8831
+ "kind": "field",
8832
+ "name": "_navSlot",
8833
+ "type": {
8834
+ "text": "HTMLSlotElement | null"
8835
+ },
8836
+ "privacy": "private",
8837
+ "description": "Functions\n--------------------------------------------------------------------------",
8838
+ "readonly": true
8839
+ },
8697
8840
  {
8698
8841
  "kind": "method",
8699
- "name": "_highlightActiveLink",
8842
+ "name": "_getAssignedLinks",
8700
8843
  "privacy": "private",
8701
- "parameters": [
8702
- {
8703
- "name": "container",
8704
- "type": {
8705
- "text": "HTMLElement"
8706
- }
8844
+ "return": {
8845
+ "type": {
8846
+ "text": "HTMLAnchorElement[]"
8707
8847
  }
8708
- ],
8709
- "description": "Functions\n--------------------------------------------------------------------------"
8848
+ }
8849
+ },
8850
+ {
8851
+ "kind": "method",
8852
+ "name": "_highlightActiveLink",
8853
+ "privacy": "private"
8710
8854
  },
8711
8855
  {
8712
8856
  "kind": "method",
@@ -8731,6 +8875,23 @@
8731
8875
  }
8732
8876
  ]
8733
8877
  },
8878
+ {
8879
+ "kind": "method",
8880
+ "name": "_setMobileMenuOpen",
8881
+ "privacy": "private",
8882
+ "parameters": [
8883
+ {
8884
+ "name": "open",
8885
+ "type": {
8886
+ "text": "boolean"
8887
+ }
8888
+ },
8889
+ {
8890
+ "name": "restoreFocus",
8891
+ "default": "false"
8892
+ }
8893
+ ]
8894
+ },
8734
8895
  {
8735
8896
  "kind": "method",
8736
8897
  "name": "_toggleMobileMenu",
@@ -8743,30 +8904,8 @@
8743
8904
  "text": "HTMLElement | null"
8744
8905
  },
8745
8906
  "privacy": "private",
8746
- "description": "The toggle, which is both the trap's first stop and where focus returns.",
8747
8907
  "readonly": true
8748
8908
  },
8749
- {
8750
- "kind": "field",
8751
- "name": "_mobileNav",
8752
- "type": {
8753
- "text": "HTMLElement | null"
8754
- },
8755
- "privacy": "private",
8756
- "readonly": true
8757
- },
8758
- {
8759
- "kind": "method",
8760
- "name": "_closeMobileMenu",
8761
- "privacy": "private",
8762
- "parameters": [
8763
- {
8764
- "name": "restoreFocus",
8765
- "default": "false"
8766
- }
8767
- ],
8768
- "description": "Closes the mobile menu.\n\n`restoreFocus` moves focus back to the toggle, which is required whenever the\nmenu is dismissed by keyboard: the closed menu is `display: none`, so focus\nsitting on one of its links would otherwise be dropped to the top of the\ndocument (WCAG 2.4.3 Focus Order). A click outside is a pointer gesture that\nlands somewhere the user chose, so that path leaves focus alone."
8769
- },
8770
8909
  {
8771
8910
  "kind": "method",
8772
8911
  "name": "_focusableMenuElements",
@@ -8795,7 +8934,7 @@
8795
8934
  }
8796
8935
  }
8797
8936
  ],
8798
- "description": "The focused element, but only when it is one of the menu's own stops.\n\n`document.activeElement` reports the host for anything focused inside this\nshadow root, so the shadow root's own `activeElement` is what identifies the\nreal stop."
8937
+ "description": "The focused element, but only when it is one of the menu's own stops.\n\n`document.activeElement` reports the host for anything focused inside this\nshadow root (the toggle button) or the links in the lightDOM."
8799
8938
  },
8800
8939
  {
8801
8940
  "kind": "method",
@@ -8813,7 +8952,33 @@
8813
8952
  },
8814
8953
  {
8815
8954
  "kind": "method",
8816
- "name": "_listenLinkClicks",
8955
+ "name": "_renderBrandMark",
8956
+ "privacy": "private"
8957
+ },
8958
+ {
8959
+ "kind": "method",
8960
+ "name": "_getNysLogo",
8961
+ "privacy": "private"
8962
+ },
8963
+ {
8964
+ "kind": "field",
8965
+ "name": "_boundClickOutside",
8966
+ "privacy": "private"
8967
+ },
8968
+ {
8969
+ "kind": "field",
8970
+ "name": "_boundLinkClick",
8971
+ "privacy": "private"
8972
+ },
8973
+ {
8974
+ "kind": "field",
8975
+ "name": "_boundBreakpointChange",
8976
+ "privacy": "private",
8977
+ "description": "Growing past the mobile breakpoint takes the menu off the page, so drop the\nopen state with it. No focus restore: the toggle is gone too, and the resize\nwas not a dismissal the user aimed at anything."
8978
+ },
8979
+ {
8980
+ "kind": "field",
8981
+ "name": "_boundKeyDown",
8817
8982
  "privacy": "private"
8818
8983
  },
8819
8984
  {
@@ -8845,51 +9010,9 @@
8845
9010
  "privacy": "private",
8846
9011
  "description": "Literal name for the banner: the author's override, or the \"Site\" default when\nthere is no visible title to reference. Undefined whenever `_bannerLabelledBy`\nhas something to point at, so the landmark never carries both.",
8847
9012
  "readonly": true
8848
- },
8849
- {
8850
- "kind": "method",
8851
- "name": "_renderNameContainer",
8852
- "privacy": "private",
8853
- "description": "App/agency title block. Rendered on its own so the linked and unlinked\nvariants cannot drift apart — the ids here are what names the banner."
8854
- },
8855
- {
8856
- "kind": "method",
8857
- "name": "_renderBrandMark",
8858
- "privacy": "private"
8859
- },
8860
- {
8861
- "kind": "method",
8862
- "name": "_getNysLogo",
8863
- "privacy": "private"
8864
- },
8865
- {
8866
- "kind": "field",
8867
- "name": "_boundClickOutside",
8868
- "privacy": "private"
8869
- },
8870
- {
8871
- "kind": "field",
8872
- "name": "_boundBreakpointChange",
8873
- "privacy": "private",
8874
- "description": "Growing past the mobile breakpoint takes the menu off the page, so drop the\nopen state with it. No focus restore: the toggle is gone too, and the resize\nwas not a dismissal the user aimed at anything."
8875
- },
8876
- {
8877
- "kind": "field",
8878
- "name": "_boundKeyDown",
8879
- "privacy": "private"
8880
9013
  }
8881
9014
  ],
8882
9015
  "attributes": [
8883
- {
8884
- "name": "id",
8885
- "type": {
8886
- "text": "string"
8887
- },
8888
- "default": "\"\"",
8889
- "description": "Unique identifier. Auto-generated if not provided.",
8890
- "fieldName": "id",
8891
- "propName": "id"
8892
- },
8893
9016
  {
8894
9017
  "name": "appName",
8895
9018
  "type": {
@@ -8974,14 +9097,9 @@
8974
9097
  "code": "<nys-globalheader agencyName=\"Office of Information Technology Services\">\n<ul>\n<li><a href=\"https://its.ny.gov/services\">Services</a></li>\n<li><a href=\"https://its.ny.gov/get-help\">Help Center</a></li>\n<li><a href=\"https://its.ny.gov/cybersecurity\">Cybersecurity</a></li>\n<li><a href=\"https://its.ny.gov/policies\">Policies and Laws</a></li>\n<li><a href=\"https://its.ny.gov/procurement\">Procurement</a></li>\n<li><a href=\"https://its.ny.gov/about-us\">About Us</a></li>\n</ul>\n</nys-globalheader>",
8975
9098
  "lang": "html"
8976
9099
  },
8977
- {
8978
- "title": "Author-controlled active link",
8979
- "code": "<!-- Set aria-current yourself and the header stops guessing from the URL. -->\n<nys-globalheader agencyName=\"Office of Information Technology Services\">\n<ul>\n<li><a href=\"#/services\">Services</a></li>\n<li><a href=\"#/help\" aria-current=\"page\">Help Center</a></li>\n</ul>\n</nys-globalheader>",
8980
- "lang": "html"
8981
- },
8982
9100
  {
8983
9101
  "title": "User Actions",
8984
- "code": "<nys-globalheader agencyName=\"Office of Information Technology Services\">\n<nys-button slot=\"user-actions\" label=\"Log out\">\n<nys-avatar\nslot=\"prefix-icon\"\nariaLabel=\"User avatar\"\ninitials=\"NY\"\n></nys-avatar>\n</nys-button>\n</nys-globalheader>\n<nys-dropdownmenu id=\"dropdownmenu\" for=\"my-action-slot\">\n<nys-dropdownmenuitem label=\"Profile\" href=\"/profile\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Repositories & Github Pages\" href=\"/repos\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Organizations\" href=\"/organizations\" disabled></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Sign out\" href=\"/logout\"></nys-dropdownmenuitem>\n</nys-dropdownmenu>",
9102
+ "code": "<nys-globalheader agencyName=\"Office of Information Technology Services\">\n<nys-button id=\"my-action-slot\" slot=\"user-actions\" label=\"Log out\">\n<nys-avatar\nslot=\"prefix-icon\"\nariaLabel=\"User avatar\"\ninitials=\"NY\"\n></nys-avatar>\n</nys-button>\n</nys-globalheader>\n<nys-dropdownmenu id=\"dropdownmenu\" for=\"my-action-slot\">\n<nys-dropdownmenuitem label=\"Profile\" href=\"/profile\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Repositories & Github Pages\" href=\"/repos\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Organizations\" href=\"/organizations\" disabled></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Sign out\" href=\"/logout\"></nys-dropdownmenuitem>\n</nys-dropdownmenu>",
8985
9103
  "lang": "html"
8986
9104
  },
8987
9105
  {
@@ -9688,11 +9806,22 @@
9688
9806
  "attribute": "divider",
9689
9807
  "reflects": true
9690
9808
  },
9809
+ {
9810
+ "kind": "field",
9811
+ "name": "inverted",
9812
+ "type": {
9813
+ "text": "boolean"
9814
+ },
9815
+ "default": "false",
9816
+ "description": "Adjusts colors for dark backgrounds.",
9817
+ "attribute": "inverted",
9818
+ "reflects": true
9819
+ },
9691
9820
  {
9692
9821
  "kind": "field",
9693
9822
  "name": "_childObserver",
9694
9823
  "privacy": "private",
9695
- "default": "new MutationObserver(() => this._syncDividers())"
9824
+ "default": "new MutationObserver(() => { this._syncDividers(); this._syncInverted(); })"
9696
9825
  },
9697
9826
  {
9698
9827
  "kind": "field",
@@ -9700,6 +9829,11 @@
9700
9829
  "privacy": "private",
9701
9830
  "default": "new WeakSet<Element>()"
9702
9831
  },
9832
+ {
9833
+ "kind": "method",
9834
+ "name": "_syncInverted",
9835
+ "privacy": "private"
9836
+ },
9703
9837
  {
9704
9838
  "kind": "method",
9705
9839
  "name": "_syncDividers",
@@ -9726,6 +9860,16 @@
9726
9860
  "description": "Draws a divider between items. No divider is drawn after the last item.",
9727
9861
  "fieldName": "divider",
9728
9862
  "propName": "divider"
9863
+ },
9864
+ {
9865
+ "name": "inverted",
9866
+ "type": {
9867
+ "text": "boolean"
9868
+ },
9869
+ "default": "false",
9870
+ "description": "Adjusts colors for dark backgrounds.",
9871
+ "fieldName": "inverted",
9872
+ "propName": "inverted"
9729
9873
  }
9730
9874
  ],
9731
9875
  "superclass": {
@@ -9734,7 +9878,7 @@
9734
9878
  },
9735
9879
  "tagName": "nys-iconlist",
9736
9880
  "customElement": true,
9737
- "summary": "A scannable list of icon + text items, with an optional divider between rows.",
9881
+ "summary": "A scannable list of icon + text items.",
9738
9882
  "examples": [
9739
9883
  {
9740
9884
  "title": "Basic",
@@ -9756,6 +9900,11 @@
9756
9900
  "code": "<nys-iconlist id=\"event-details3\">\n<nys-iconlistitem icon=\"calendar_month\">July 4, 2026</nys-iconlistitem>\n<nys-iconlistitem icon=\"schedule\">\n5:00 PM\n<span slot=\"secondary\">Eastern Standard Time</span>\n</nys-iconlistitem>\n<nys-iconlistitem icon=\"location_on\">\nCentral Park West\n<span slot=\"secondary\">New York, NY</span>\n</nys-iconlistitem>\n</nys-iconlist>",
9757
9901
  "lang": "html"
9758
9902
  },
9903
+ {
9904
+ "title": "Inverted",
9905
+ "code": "<nys-iconlist id=\"demo-inverted\" divider inverted>\n<nys-iconlistitem icon=\"calendar_month\">July 4, 2026</nys-iconlistitem>\n<nys-iconlistitem icon=\"schedule\">\n5:00 PM\n<span slot=\"secondary\">Eastern Standard Time</span>\n</nys-iconlistitem>\n<nys-iconlistitem icon=\"location_on\">\nCentral Park West\n<span slot=\"secondary\">New York, NY</span>\n</nys-iconlistitem>\n</nys-iconlist>",
9906
+ "lang": "html"
9907
+ },
9759
9908
  {
9760
9909
  "title": "Checklist",
9761
9910
  "code": "<nys-iconlist id=\"requirements\">\n<nys-iconlistitem icon=\"check_circle\">Recent pay stubs</nys-iconlistitem>\n<nys-iconlistitem icon=\"check_circle\">Current rent/mortgage statement</nys-iconlistitem>\n<nys-iconlistitem icon=\"check_circle\">Current property tax bill</nys-iconlistitem>\n<nys-iconlistitem icon=\"check_circle\">Current homeowner's insurance bill</nys-iconlistitem>\n<nys-iconlistitem icon=\"check_circle\">Social Security card</nys-iconlistitem>\n</nys-iconlist>",
@@ -9823,6 +9972,17 @@
9823
9972
  "attribute": "divider",
9824
9973
  "reflects": true
9825
9974
  },
9975
+ {
9976
+ "kind": "field",
9977
+ "name": "inverted",
9978
+ "type": {
9979
+ "text": "boolean"
9980
+ },
9981
+ "default": "false",
9982
+ "description": "Adjusts colors for dark backgrounds. Set by the parent `<nys-iconlist inverted>`; not intended to be\nset directly.",
9983
+ "attribute": "inverted",
9984
+ "reflects": true
9985
+ },
9826
9986
  {
9827
9987
  "kind": "method",
9828
9988
  "name": "_handleSecondarySlotChange",
@@ -9857,6 +10017,16 @@
9857
10017
  "description": "Draws a rule below the item. Set by the parent `<nys-iconlist divider>`; not intended to be\nset directly.",
9858
10018
  "fieldName": "divider",
9859
10019
  "propName": "divider"
10020
+ },
10021
+ {
10022
+ "name": "inverted",
10023
+ "type": {
10024
+ "text": "boolean"
10025
+ },
10026
+ "default": "false",
10027
+ "description": "Adjusts colors for dark backgrounds. Set by the parent `<nys-iconlist inverted>`; not intended to be\nset directly.",
10028
+ "fieldName": "inverted",
10029
+ "propName": "inverted"
9860
10030
  }
9861
10031
  ],
9862
10032
  "superclass": {