@nldd/design-system 0.9.0 → 0.10.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 (267) hide show
  1. package/custom-elements.json +139 -19
  2. package/dist/assets/styles/breakpoints.d.ts +32 -0
  3. package/dist/assets/styles/breakpoints.d.ts.map +1 -1
  4. package/dist/assets/styles/breakpoints.js +36 -0
  5. package/dist/assets/styles/breakpoints.js.map +1 -1
  6. package/dist/components/actions/button-group/button-group.styles.js +2 -2
  7. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  8. package/dist/components/actions/menu/menu.js +2 -2
  9. package/dist/components/actions/menu/menu.js.map +1 -1
  10. package/dist/components/actions/menu/menu.styles.js +2 -2
  11. package/dist/components/breakpoints-Bpf2MgjM.js +39 -0
  12. package/dist/components/components.js +440 -457
  13. package/dist/components/content/blockquote/blockquote.styles.js +2 -2
  14. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  15. package/dist/components/content/code-viewer/code-viewer.styles.js +3 -3
  16. package/dist/components/content/identity/identity.styles.js +2 -2
  17. package/dist/components/content/identity/identity.styles.js.map +1 -1
  18. package/dist/components/content/image/image.styles.js +1 -1
  19. package/dist/components/content/image/lqip-encoder-element.js +1 -1
  20. package/dist/components/content/title/title.styles.js +5 -5
  21. package/dist/components/content/title/title.styles.js.map +1 -1
  22. package/dist/components/forms/form-actions/form-actions.styles.js +2 -2
  23. package/dist/components/forms/form-actions/form-actions.styles.js.map +1 -1
  24. package/dist/components/forms/form-field/form-field.styles.js +2 -2
  25. package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
  26. package/dist/components/inputs/checkbox/checkbox.d.ts +8 -0
  27. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  28. package/dist/components/inputs/checkbox/checkbox.js +11 -0
  29. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  30. package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
  31. package/dist/components/inputs/checkbox/checkbox.styles.js +36 -9
  32. package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
  33. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +3 -0
  34. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
  35. package/dist/components/inputs/checkbox-field/checkbox-field.js +6 -0
  36. package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
  37. package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
  38. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +7 -0
  39. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
  40. package/dist/components/inputs/checkbox-field/checkbox-field.template.d.ts.map +1 -1
  41. package/dist/components/inputs/checkbox-field/checkbox-field.template.js +1 -0
  42. package/dist/components/inputs/checkbox-field/checkbox-field.template.js.map +1 -1
  43. package/dist/components/inputs/date-field/date-field.styles.js +2 -2
  44. package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
  45. package/dist/components/inputs/date-picker/date-picker.js +2 -2
  46. package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
  47. package/dist/components/inputs/date-picker/date-picker.styles.js +3 -3
  48. package/dist/components/inputs/file-field/file-field.styles.js +2 -2
  49. package/dist/components/inputs/radio-button/radio-button.d.ts +8 -0
  50. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  51. package/dist/components/inputs/radio-button/radio-button.js +11 -0
  52. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  53. package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
  54. package/dist/components/inputs/radio-button/radio-button.styles.js +28 -9
  55. package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
  56. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -0
  57. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
  58. package/dist/components/inputs/radio-button-field/radio-button-field.js +6 -0
  59. package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
  60. package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
  61. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +7 -0
  62. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
  63. package/dist/components/inputs/radio-button-field/radio-button-field.template.d.ts.map +1 -1
  64. package/dist/components/inputs/radio-button-field/radio-button-field.template.js +2 -1
  65. package/dist/components/inputs/radio-button-field/radio-button-field.template.js.map +1 -1
  66. package/dist/components/inputs/switch/switch.d.ts +8 -0
  67. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  68. package/dist/components/inputs/switch/switch.js +11 -0
  69. package/dist/components/inputs/switch/switch.js.map +1 -1
  70. package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
  71. package/dist/components/inputs/switch/switch.styles.js +14 -2
  72. package/dist/components/inputs/switch/switch.styles.js.map +1 -1
  73. package/dist/components/inputs/switch-field/switch-field.d.ts +3 -0
  74. package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
  75. package/dist/components/inputs/switch-field/switch-field.js +7 -0
  76. package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
  77. package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
  78. package/dist/components/inputs/switch-field/switch-field.styles.js +7 -0
  79. package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
  80. package/dist/components/inputs/switch-field/switch-field.template.d.ts.map +1 -1
  81. package/dist/components/inputs/switch-field/switch-field.template.js +1 -0
  82. package/dist/components/inputs/switch-field/switch-field.template.js.map +1 -1
  83. package/dist/components/inputs/text-editor/text-editor.mentions.js +2 -2
  84. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  85. package/dist/components/inputs/text-editor/text-editor.styles.js +7 -7
  86. package/dist/components/inputs/time-field/time-field.styles.js +2 -2
  87. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  88. package/dist/components/inputs/time-picker/time-picker.styles.js +2 -2
  89. package/dist/components/layout/box/box.d.ts +4 -2
  90. package/dist/components/layout/box/box.d.ts.map +1 -1
  91. package/dist/components/layout/box/box.js +3 -1
  92. package/dist/components/layout/box/box.js.map +1 -1
  93. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  94. package/dist/components/layout/box/box.styles.js +10 -5
  95. package/dist/components/layout/box/box.styles.js.map +1 -1
  96. package/dist/components/layout/card/card.d.ts +2 -2
  97. package/dist/components/layout/card/card.d.ts.map +1 -1
  98. package/dist/components/layout/card/card.js +1 -1
  99. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  100. package/dist/components/layout/card/card.styles.js +12 -3
  101. package/dist/components/layout/card/card.styles.js.map +1 -1
  102. package/dist/components/layout/collection/collection.d.ts +6 -0
  103. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  104. package/dist/components/layout/collection/collection.js +6 -0
  105. package/dist/components/layout/collection/collection.js.map +1 -1
  106. package/dist/components/layout/collection/collection.styles.js +5 -5
  107. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  108. package/dist/components/layout/container/container.styles.js +5 -5
  109. package/dist/components/layout/container/container.styles.js.map +1 -1
  110. package/dist/components/layout/page-footer/page-footer.styles.js +5 -5
  111. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  112. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
  113. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -1
  114. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +5 -5
  115. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
  116. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +5 -5
  117. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
  118. package/dist/components/layout/page-sections/hero/hero.d.ts +15 -13
  119. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  120. package/dist/components/layout/page-sections/hero/hero.js +20 -12
  121. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  122. package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
  123. package/dist/components/layout/page-sections/hero/hero.styles.js +8 -98
  124. package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
  125. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
  126. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
  127. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +5 -5
  128. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
  129. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
  130. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
  131. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +8 -8
  132. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
  133. package/dist/components/layout/page-sections/page-section-controls.js +2 -2
  134. package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
  135. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +0 -1
  136. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  137. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +2 -3
  138. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  139. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +6 -6
  140. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
  141. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
  142. package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -1
  143. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +5 -5
  144. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
  145. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
  146. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
  147. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +8 -8
  148. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
  149. package/dist/components/layout/popover/popover.js +2 -2
  150. package/dist/components/layout/popover/popover.js.map +1 -1
  151. package/dist/components/layout/popover/popover.styles.js +3 -3
  152. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  153. package/dist/components/layout/sheet/sheet.styles.js +4 -4
  154. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  155. package/dist/components/layout/spacer/spacer.styles.js +5 -5
  156. package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
  157. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
  158. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -5
  159. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
  160. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +5 -5
  161. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
  162. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +2 -2
  163. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
  164. package/dist/components/lists-and-tables/list/list.styles.js +2 -2
  165. package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
  166. package/dist/components/lists-and-tables/list-item/list-item.js +1 -1
  167. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  168. package/dist/components/lists-and-tables/list-item/list-item.styles.js +6 -0
  169. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  170. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  171. package/dist/components/lists-and-tables/table/table.js +4 -7
  172. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  173. package/dist/components/lists-and-tables/table/table.styles.js +2 -2
  174. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +2 -2
  175. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +1 -1
  176. package/dist/components/navigation/pagination/pagination.styles.js +2 -2
  177. package/dist/components/navigation/tab-bar/tab-bar.styles.js +9 -9
  178. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -2
  179. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  180. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  181. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +14 -9
  182. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  183. package/dist/components/status-and-feedback/badge/badge.d.ts +3 -2
  184. package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
  185. package/dist/components/status-and-feedback/badge/badge.js +13 -1
  186. package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
  187. package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
  188. package/dist/components/status-and-feedback/badge/badge.styles.js +18 -125
  189. package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
  190. package/dist/components/status-and-feedback/banner/banner.styles.js +15 -15
  191. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +2 -2
  192. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  193. package/dist/components/status-and-feedback/notification/notification.styles.js +2 -2
  194. package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
  195. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -1
  196. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
  197. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +2 -2
  198. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +1 -1
  199. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +1 -1
  200. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +14 -14
  201. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +2 -2
  202. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
  203. package/dist/components/{visibility-mixin-Crbt8PFP.js → visibility-mixin-djNSG5ZN.js} +5 -5
  204. package/dist/css/rich-text.css +11 -11
  205. package/dist/css/themes/bruin.css +182 -0
  206. package/dist/css/themes/donkerblauw.css +182 -0
  207. package/dist/css/themes/donkerbruin.css +182 -0
  208. package/dist/css/themes/donkergeel.css +208 -0
  209. package/dist/css/themes/donkergroen.css +182 -0
  210. package/dist/css/themes/geel.css +208 -0
  211. package/dist/css/themes/groen.css +182 -0
  212. package/dist/css/themes/hemelblauw.css +182 -0
  213. package/dist/css/themes/lichtblauw.css +182 -0
  214. package/dist/css/themes/mintgroen.css +182 -0
  215. package/dist/css/themes/mosgroen.css +182 -0
  216. package/dist/css/themes/oranje.css +196 -0
  217. package/dist/css/themes/paars.css +182 -0
  218. package/dist/css/themes/robijnrood.css +196 -0
  219. package/dist/css/themes/rood.css +196 -0
  220. package/dist/css/themes/roze.css +182 -0
  221. package/dist/css/themes/violet.css +182 -0
  222. package/dist/css/themes.css +3092 -0
  223. package/dist/css/variables.css +97 -132
  224. package/dist/favicon/bruin/favicon.svg +5 -0
  225. package/dist/favicon/bruin/touch-icon.png +0 -0
  226. package/dist/favicon/donkerblauw/favicon.svg +5 -0
  227. package/dist/favicon/donkerblauw/touch-icon.png +0 -0
  228. package/dist/favicon/donkerbruin/favicon.svg +5 -0
  229. package/dist/favicon/donkerbruin/touch-icon.png +0 -0
  230. package/dist/favicon/donkergeel/favicon.svg +5 -0
  231. package/dist/favicon/donkergeel/touch-icon.png +0 -0
  232. package/dist/favicon/donkergroen/favicon.svg +5 -0
  233. package/dist/favicon/donkergroen/touch-icon.png +0 -0
  234. package/dist/favicon/geel/favicon.svg +5 -0
  235. package/dist/favicon/geel/touch-icon.png +0 -0
  236. package/dist/favicon/groen/favicon.svg +5 -0
  237. package/dist/favicon/groen/touch-icon.png +0 -0
  238. package/dist/favicon/hemelblauw/favicon.svg +5 -0
  239. package/dist/favicon/hemelblauw/touch-icon.png +0 -0
  240. package/dist/favicon/lichtblauw/favicon.svg +5 -0
  241. package/dist/favicon/lichtblauw/touch-icon.png +0 -0
  242. package/dist/favicon/mintgroen/favicon.svg +5 -0
  243. package/dist/favicon/mintgroen/touch-icon.png +0 -0
  244. package/dist/favicon/mosgroen/favicon.svg +5 -0
  245. package/dist/favicon/mosgroen/touch-icon.png +0 -0
  246. package/dist/favicon/oranje/favicon.svg +5 -0
  247. package/dist/favicon/oranje/touch-icon.png +0 -0
  248. package/dist/favicon/paars/favicon.svg +5 -0
  249. package/dist/favicon/paars/touch-icon.png +0 -0
  250. package/dist/favicon/robijnrood/favicon.svg +5 -0
  251. package/dist/favicon/robijnrood/touch-icon.png +0 -0
  252. package/dist/favicon/rood/favicon.svg +5 -0
  253. package/dist/favicon/rood/touch-icon.png +0 -0
  254. package/dist/favicon/roze/favicon.svg +5 -0
  255. package/dist/favicon/roze/touch-icon.png +0 -0
  256. package/dist/favicon/violet/favicon.svg +5 -0
  257. package/dist/favicon/violet/touch-icon.png +0 -0
  258. package/dist/nldd.min.js +681 -771
  259. package/dist/types/vue.d.ts +30 -17
  260. package/dist/utilities/page-section-mixin.d.ts +4 -3
  261. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  262. package/dist/utilities/page-section-mixin.js +6 -4
  263. package/dist/utilities/page-section-mixin.js.map +1 -1
  264. package/dist/utilities/visibility-mixin.styles.js +5 -5
  265. package/dist/utilities/visibility-mixin.styles.js.map +1 -1
  266. package/package.json +11 -7
  267. package/dist/components/breakpoints-CkxsiRgH.js +0 -10
@@ -7432,6 +7432,17 @@
7432
7432
  "attribute": "name",
7433
7433
  "reflects": true
7434
7434
  },
7435
+ {
7436
+ "kind": "field",
7437
+ "name": "color",
7438
+ "type": {
7439
+ "text": "'' | 'inherit'"
7440
+ },
7441
+ "default": "''",
7442
+ "description": "'inherit' draws the control and its label in the surrounding text color.",
7443
+ "attribute": "color",
7444
+ "reflects": true
7445
+ },
7435
7446
  {
7436
7447
  "kind": "field",
7437
7448
  "name": "label",
@@ -7736,6 +7747,15 @@
7736
7747
  "description": "Name for form submission",
7737
7748
  "fieldName": "name"
7738
7749
  },
7750
+ {
7751
+ "name": "color",
7752
+ "type": {
7753
+ "text": "'' | 'inherit'"
7754
+ },
7755
+ "default": "''",
7756
+ "description": "'inherit' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside.",
7757
+ "fieldName": "color"
7758
+ },
7739
7759
  {
7740
7760
  "name": "label",
7741
7761
  "type": {
@@ -7807,7 +7827,7 @@
7807
7827
  "declarations": [
7808
7828
  {
7809
7829
  "kind": "class",
7810
- "description": "",
7830
+ "description": "On a selected row of nldd-list-item a checked control takes the colors of the row: the row sets `--context-selected-indicator-color` and `--context-selected-contrast-color`, because the accent can fall below 3:1 on the gray of a selected row.",
7811
7831
  "name": "NLDDCheckbox",
7812
7832
  "members": [
7813
7833
  {
@@ -7890,6 +7910,17 @@
7890
7910
  "attribute": "name",
7891
7911
  "reflects": true
7892
7912
  },
7913
+ {
7914
+ "kind": "field",
7915
+ "name": "color",
7916
+ "type": {
7917
+ "text": "'' | 'inherit'"
7918
+ },
7919
+ "default": "''",
7920
+ "description": "'inherit' draws the control in the surrounding text color.",
7921
+ "attribute": "color",
7922
+ "reflects": true
7923
+ },
7893
7924
  {
7894
7925
  "kind": "field",
7895
7926
  "name": "accessibleLabel",
@@ -8222,6 +8253,15 @@
8222
8253
  "fieldName": "name",
8223
8254
  "description": "Name for form submission"
8224
8255
  },
8256
+ {
8257
+ "name": "color",
8258
+ "type": {
8259
+ "text": "'' | 'inherit'"
8260
+ },
8261
+ "default": "''",
8262
+ "description": "'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent.",
8263
+ "fieldName": "color"
8264
+ },
8225
8265
  {
8226
8266
  "name": "accessible-label",
8227
8267
  "type": {
@@ -13254,6 +13294,17 @@
13254
13294
  "attribute": "required",
13255
13295
  "reflects": true
13256
13296
  },
13297
+ {
13298
+ "kind": "field",
13299
+ "name": "color",
13300
+ "type": {
13301
+ "text": "'' | 'inherit'"
13302
+ },
13303
+ "default": "''",
13304
+ "description": "'inherit' draws the control and its label in the surrounding text color.",
13305
+ "attribute": "color",
13306
+ "reflects": true
13307
+ },
13257
13308
  {
13258
13309
  "kind": "field",
13259
13310
  "name": "label",
@@ -13540,6 +13591,15 @@
13540
13591
  "fieldName": "required",
13541
13592
  "description": "Required state. What it asks is whether anything in the group is checked, as a native radio does. Set automatically by nldd-radio-button-group."
13542
13593
  },
13594
+ {
13595
+ "name": "color",
13596
+ "type": {
13597
+ "text": "'' | 'inherit'"
13598
+ },
13599
+ "default": "''",
13600
+ "description": "'inherit' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside.",
13601
+ "fieldName": "color"
13602
+ },
13543
13603
  {
13544
13604
  "name": "label",
13545
13605
  "type": {
@@ -13795,7 +13855,7 @@
13795
13855
  "declarations": [
13796
13856
  {
13797
13857
  "kind": "class",
13798
- "description": "WAI-ARIA: put the buttons of one group in a container with role=\"radiogroup\" and a name of its own. A screen reader counts the options from that container, so a bare <fieldset> (which is a group, not a radiogroup) leaves them uncounted. nldd-radio-button-group does this for you. Radio buttons with the same name, in the same form and the same tree, form one group the way native radios do: checking one unchecks the others, the arrow keys move between them, Tab stops at the group once, and a screen reader hears each one's place in it. The element itself is the radio, because an input per shadow root would leave every button a group of one. The shape is all this component draws. A radio with a label beside it is nldd-radio-button-field. <fieldset role=\"radiogroup\" aria-labelledby=\"options-label\"> <legend id=\"options-label\">Kies een optie</legend> <nldd-radio-button name=\"options\" value=\"1\" accessible-label=\"Optie 1\"></nldd-radio-button> <nldd-radio-button name=\"options\" value=\"2\" accessible-label=\"Optie 2\"></nldd-radio-button> </fieldset>",
13858
+ "description": "WAI-ARIA: put the buttons of one group in a container with role=\"radiogroup\" and a name of its own. A screen reader counts the options from that container, so a bare <fieldset> (which is a group, not a radiogroup) leaves them uncounted. nldd-radio-button-group does this for you. Radio buttons with the same name, in the same form and the same tree, form one group the way native radios do: checking one unchecks the others, the arrow keys move between them, Tab stops at the group once, and a screen reader hears each one's place in it. The element itself is the radio, because an input per shadow root would leave every button a group of one. The shape is all this component draws. A radio with a label beside it is nldd-radio-button-field. <fieldset role=\"radiogroup\" aria-labelledby=\"options-label\"> <legend id=\"options-label\">Kies een optie</legend> <nldd-radio-button name=\"options\" value=\"1\" accessible-label=\"Optie 1\"></nldd-radio-button> <nldd-radio-button name=\"options\" value=\"2\" accessible-label=\"Optie 2\"></nldd-radio-button> </fieldset> On a selected row of nldd-list-item a checked control takes the colors of the row: the row sets `--context-selected-indicator-color` and `--context-selected-contrast-color`, because the accent can fall below 3:1 on the gray of a selected row.",
13799
13859
  "name": "NLDDRadioButton",
13800
13860
  "members": [
13801
13861
  {
@@ -13889,6 +13949,17 @@
13889
13949
  "default": "''",
13890
13950
  "attribute": "value"
13891
13951
  },
13952
+ {
13953
+ "kind": "field",
13954
+ "name": "color",
13955
+ "type": {
13956
+ "text": "'' | 'inherit'"
13957
+ },
13958
+ "default": "''",
13959
+ "description": "'inherit' draws the control in the surrounding text color.",
13960
+ "attribute": "color",
13961
+ "reflects": true
13962
+ },
13892
13963
  {
13893
13964
  "kind": "field",
13894
13965
  "name": "accessibleLabel",
@@ -14202,6 +14273,15 @@
14202
14273
  "fieldName": "value",
14203
14274
  "description": "Value submitted with the form when this radio button is checked"
14204
14275
  },
14276
+ {
14277
+ "name": "color",
14278
+ "type": {
14279
+ "text": "'' | 'inherit'"
14280
+ },
14281
+ "default": "''",
14282
+ "description": "'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent.",
14283
+ "fieldName": "color"
14284
+ },
14205
14285
  {
14206
14286
  "name": "accessible-label",
14207
14287
  "type": {
@@ -16148,6 +16228,17 @@
16148
16228
  "default": "''",
16149
16229
  "attribute": "name"
16150
16230
  },
16231
+ {
16232
+ "kind": "field",
16233
+ "name": "color",
16234
+ "type": {
16235
+ "text": "'' | 'inherit'"
16236
+ },
16237
+ "default": "''",
16238
+ "description": "'inherit' draws the control and its label in the surrounding text color.",
16239
+ "attribute": "color",
16240
+ "reflects": true
16241
+ },
16151
16242
  {
16152
16243
  "kind": "field",
16153
16244
  "name": "label",
@@ -16268,6 +16359,15 @@
16268
16359
  "fieldName": "name",
16269
16360
  "description": "Name for form submission"
16270
16361
  },
16362
+ {
16363
+ "name": "color",
16364
+ "type": {
16365
+ "text": "'' | 'inherit'"
16366
+ },
16367
+ "default": "''",
16368
+ "description": "'inherit' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside.",
16369
+ "fieldName": "color"
16370
+ },
16271
16371
  {
16272
16372
  "name": "label",
16273
16373
  "type": {
@@ -16335,7 +16435,7 @@
16335
16435
  "declarations": [
16336
16436
  {
16337
16437
  "kind": "class",
16338
- "description": "A toggle control for on/off settings. Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label. Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility.",
16438
+ "description": "A toggle control for on/off settings. Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label. Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility. On a selected row of nldd-list-item a checked control takes the colors of the row: the row sets `--context-selected-indicator-color` and `--context-selected-contrast-color`, because the accent can fall below 3:1 on the gray of a selected row.",
16339
16439
  "name": "NLDDSwitch",
16340
16440
  "members": [
16341
16441
  {
@@ -16399,6 +16499,17 @@
16399
16499
  "attribute": "size",
16400
16500
  "reflects": true
16401
16501
  },
16502
+ {
16503
+ "kind": "field",
16504
+ "name": "color",
16505
+ "type": {
16506
+ "text": "'' | 'inherit'"
16507
+ },
16508
+ "default": "''",
16509
+ "description": "'inherit' draws the control in the surrounding text color.",
16510
+ "attribute": "color",
16511
+ "reflects": true
16512
+ },
16402
16513
  {
16403
16514
  "kind": "field",
16404
16515
  "name": "accessibleLabel",
@@ -16722,6 +16833,15 @@
16722
16833
  "fieldName": "size",
16723
16834
  "description": "Switch size: 'xs' | 'sm' (default: 'sm')"
16724
16835
  },
16836
+ {
16837
+ "name": "color",
16838
+ "type": {
16839
+ "text": "'' | 'inherit'"
16840
+ },
16841
+ "default": "''",
16842
+ "description": "'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent.",
16843
+ "fieldName": "color"
16844
+ },
16725
16845
  {
16726
16846
  "name": "accessible-label",
16727
16847
  "type": {
@@ -22940,7 +23060,7 @@
22940
23060
  },
22941
23061
  "default": "'tinted'",
22942
23062
  "fieldName": "background",
22943
- "description": "Which surface this box draws, named as it is on nldd-shell, nldd-page, nldd-split-view-pane and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it. - `tinted` (default): a box on a plain page background. - `base`: a box on an already-tinted parent (the border ring gets +2 palette steps so it still reads against a card-on-card). - `critical`: a region whose actions are destructive or irreversible (a \"danger zone\"), tinted and outlined in critical. It carries no ARIA of its own: unlike nldd-banner this is not an announcement but a permanent part of the page, so the heading and the button labels have to name the danger — color is a reinforcement, never the only signal (WCAG 1.4.1). The box draws the surface and nothing else: it has no padding of its own, the same way nldd-card has none. Put an nldd-container inside it and let that set the inset, so one component owns spacing wherever it is used."
23063
+ "description": "Which surface this box draws, named as it is on nldd-shell, nldd-page, nldd-split-view-pane and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it. - `tinted` (default): a box on a plain page background. - `base`: a box on an already-tinted parent (the border ring gets +2 palette steps so it still reads against a card-on-card). - `accent-tinted`: a tint of the theme's accent, with the contrast of `tinted`, for a box that belongs to the service rather than to the page. - `critical`: a region whose actions are destructive or irreversible (a \"danger zone\"), tinted and outlined in critical. It carries no ARIA of its own: unlike nldd-banner this is not an announcement but a permanent part of the page, so the heading and the button labels have to name the danger — color is a reinforcement, never the only signal (WCAG 1.4.1). The box draws the surface and nothing else: it has no padding of its own, the same way nldd-card has none. Put an nldd-container inside it and let that set the inset, so one component owns spacing wherever it is used."
22944
23064
  }
22945
23065
  ],
22946
23066
  "superclass": {
@@ -23065,7 +23185,7 @@
23065
23185
  },
23066
23186
  "default": "'base'",
23067
23187
  "fieldName": "background",
23068
- "description": "Surface color of the card: `base` (default) on a plain page background, `tinted` when the card should stand out against a base surface"
23188
+ "description": "Surface color of the card: `base` (default) on a plain page background, `tinted` when the card should stand out against a base surface, `accent-tinted` for a tint of the theme's accent with the contrast of `tinted`"
23069
23189
  },
23070
23190
  {
23071
23191
  "name": "accessible-label",
@@ -23178,7 +23298,7 @@
23178
23298
  "declarations": [
23179
23299
  {
23180
23300
  "kind": "class",
23181
- "description": "A container for displaying collections of items. Supports grid, stack, lanes and horizontal scroll layouts. Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS grid of your own: the collection sets the columns from `item-min-width` and the available width, and the gap per breakpoint. In grid and stack modes, items are paginated via a load-more button. In horizontal scroll, the prev/next controls and the edge fade appear only when the items overflow the container. Use horizontal scroll for items that together serve one purpose, such as the events of one agenda; it is not a carousel for unrelated highlights, which the design guidelines advise against. With `lazy-load`, the next items are automatically loaded when the load-more button comes into view.",
23301
+ "description": "A container for displaying collections of items. Supports grid, stack, lanes and horizontal scroll layouts. Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS grid of your own: the collection sets the columns from `item-min-width` and the available width, and the gap per breakpoint. A grid keeps as many columns as fit, also when there are fewer items, so a page of results lines up with the next. For a fixed set of a few cards without paging, such as three points on a landing page, use `nldd-container layout=\"grid\"` instead: its empty columns collapse, so the cards fill the row. In grid and stack modes, items are paginated via a load-more button. In horizontal scroll, the prev/next controls and the edge fade appear only when the items overflow the container. Use horizontal scroll for items that together serve one purpose, such as the events of one agenda; it is not a carousel for unrelated highlights, which the design guidelines advise against. With `lazy-load`, the next items are automatically loaded when the load-more button comes into view.",
23182
23302
  "name": "NLDDCollection",
23183
23303
  "members": [
23184
23304
  {
@@ -24757,7 +24877,7 @@
24757
24877
  "name": "PageSectionMixin",
24758
24878
  "module": "src/utilities/page-section-mixin.ts"
24759
24879
  },
24760
- "description": "Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface)."
24880
+ "description": "Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface)."
24761
24881
  },
24762
24882
  {
24763
24883
  "name": "height",
@@ -25065,7 +25185,7 @@
25065
25185
  "declarations": [
25066
25186
  {
25067
25187
  "kind": "class",
25068
- "description": "The section that says what a page is for: it names the main goal of what you can find there, draws the eye and is the visual welcome. It has a media area and a text panel (the main) that can stand in eight positions. The areas are rectangular; `corner` rounds one corner of each. Use it on pages where a visitor first has to know where they are, such as a home or a topic page; where the title already does that, a section with a title is enough. The image in a hero sets the mood and is never the main content, so the panel always stands on it. Over an image the panel keeps a section gap from its edges, so it reads as a panel on the image rather than a frame cut out of it; with `main-width=\"full\"` it is a strip across the whole image, the same gap from the sides. On mobile the image comes first and the panel below it, indented by the section gap and overlapping the image by 48px. For an image beside text without that relation, use a section with an image beside text instead. Without media the main fills the whole area; with `main-background=\"base\"` that area gets a border so it stays visible on the base surface. The hero is the head of a page and sits right under the top bar, so its top padding is half that of the other page sections: the full distance is meant to separate two sections, and under the top bar it reads as a gap. The bottom keeps the full distance to the section below. Set `padding-top` to place a hero elsewhere. By default the panel falls over the bottom of the image and runs on below it (`layout=\"overlap\"`), so the image keeps its height whatever the content. `layout=\"contained\"` keeps the panel on the image, for a short panel or one that stands at the top or along a side. The height of a hero comes from its image: `media-aspect-ratio`, or a fixed `media-height`. The `height` of the other page sections is not used here: as a minimum height for the whole hero it stretched the panel once that sat below the image. A hero given `height` says so in development. `main-background` gives the panel a surface color from the filled categories. Those carry a pure white or black content color along, so components with `color=\"inherit\"` (title, rich-text) are guaranteed to keep their contrast.",
25188
+ "description": "The section that says what a page is for: it names the main goal of what you can find there, draws the eye and is the visual welcome. It has a media area and a text panel (the main) that can stand in eight positions. The areas are rectangular; `corner` rounds one corner of each. Use it on pages where a visitor first has to know where they are, such as a home or a topic page; where the title already does that, a section with a title is enough. The image in a hero sets the mood and is never the main content, so the panel always stands on it. Over an image the panel keeps a section gap from its edges, so it reads as a panel on the image rather than a frame cut out of it; with `main-width=\"full\"` it is a strip across the whole image, the same gap from the sides. On mobile the image comes first and the panel below it, indented by the section gap and overlapping the image by 48px. For an image beside text without that relation, use a section with an image beside text instead. Without media the main fills the whole area; with `main-background=\"base\"` that area gets a border so it stays visible on the base surface. The hero is the head of a page and sits right under the top bar, so on md and lg its top padding is half that of the other page sections: the full distance is meant to separate two sections, and under the top bar it reads as a gap. On sm the top keeps the full distance, as the other sections do. The bottom keeps the full distance to the section below. Set `padding-top` to place a hero elsewhere. By default the panel falls over the bottom of the image and runs on below it (`layout=\"overlap\"`), so the image keeps its height whatever the content. `layout=\"contained\"` keeps the panel on the image, for a short panel or one that stands at the top or along a side. The height of a hero comes from its image: `media-aspect-ratio`, or a fixed `media-height`. The `height` of the other page sections is not used here: as a minimum height for the whole hero it stretched the panel once that sat below the image. A hero given `height` says so in development. The panel takes the accent color of the theme, closest to its reference color in both modes, with a pure white or black content color, so components with `color=\"inherit\"` (title, rich-text) are guaranteed to keep their contrast. `main-background=\"base\"` gives it the base surface instead. A Rijkshuisstijl color per hero is gone: the theme picks the color for the whole site, and a hero given one says so in development.",
25069
25189
  "name": "NLDDHero",
25070
25190
  "members": [
25071
25191
  {
@@ -25431,7 +25551,7 @@
25431
25551
  },
25432
25552
  "default": "'accent'",
25433
25553
  "fieldName": "mainBackground",
25434
- "description": "Surface color of the panel: 'base' (the base surface) or a category color — 'accent' (default) or a Rijkshuisstijl color such as 'lintblauw'|'donkerblauw'|'oranje'"
25554
+ "description": "Surface color of the panel: 'accent' (default), the accent color of the theme, or 'base', the base surface"
25435
25555
  },
25436
25556
  {
25437
25557
  "name": "main-width",
@@ -25986,7 +26106,7 @@
25986
26106
  "name": "PageSectionMixin",
25987
26107
  "module": "src/utilities/page-section-mixin.ts"
25988
26108
  },
25989
- "description": "Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface)."
26109
+ "description": "Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface)."
25990
26110
  },
25991
26111
  {
25992
26112
  "name": "height",
@@ -26463,7 +26583,7 @@
26463
26583
  "name": "PageSectionMixin",
26464
26584
  "module": "src/utilities/page-section-mixin.ts"
26465
26585
  },
26466
- "description": "Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface)."
26586
+ "description": "Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface)."
26467
26587
  },
26468
26588
  {
26469
26589
  "name": "height",
@@ -26701,7 +26821,7 @@
26701
26821
  "type": {
26702
26822
  "text": "object"
26703
26823
  },
26704
- "default": "{ background: { control: { type: 'select' }, options: ['inherit', 'base', 'tinted'], description: 'Oppervlak: \"inherit\" laat het oppervlak van de ouder doorschijnen, \"base\" en \"tinted\" tekenen een eigen oppervlak dat naar de inhoud cascadeert', table: { defaultValue: { summary: 'inherit' } }, }, width: { control: 'text', description: 'Maximale breedte van de inhoud: \"full\" haalt de grens weg, een CSS-lengte (bv. \"480px\") vervangt hem', }, height: { control: 'text', description: 'Minimale hoogte van de sectie, als CSS-lengte (bv. \"400px\" of \"100dvh\")', }, grow: { control: 'boolean', description: 'Neemt de hoogte die de pagina over heeft, zodat de footer onderaan staat. Zonder `grow` groeit de laatste sectie van een `nldd-page`.', table: { defaultValue: { summary: false } }, }, paddingBlock: paddingControl('padding-block', 'Padding boven en onder (token 0 tot 96, \"0\" haalt hem weg)'), paddingTop: paddingControl('padding-top', 'Alleen de padding boven'), paddingBottom: paddingControl('padding-bottom', 'Alleen de padding onder'), smPaddingBlock: paddingControl('sm-padding-block', 'Padding boven en onder op sm (tot 640px)'), smPaddingTop: paddingControl('sm-padding-top', 'Padding boven op sm (tot 640px)'), smPaddingBottom: paddingControl('sm-padding-bottom', 'Padding onder op sm (tot 640px)'), mdPaddingBlock: paddingControl('md-padding-block', 'Padding boven en onder op md (641 tot 1007px)'), mdPaddingTop: paddingControl('md-padding-top', 'Padding boven op md (641 tot 1007px)'), mdPaddingBottom: paddingControl('md-padding-bottom', 'Padding onder op md (641 tot 1007px)'), lgPaddingBlock: paddingControl('lg-padding-block', 'Padding boven en onder op lg (vanaf 1008px)'), lgPaddingTop: paddingControl('lg-padding-top', 'Padding boven op lg (vanaf 1008px)'), lgPaddingBottom: paddingControl('lg-padding-bottom', 'Padding onder op lg (vanaf 1008px)'), }"
26824
+ "default": "{ background: { control: { type: 'select' }, options: ['inherit', 'base', 'tinted', 'accent-tinted'], description: 'Oppervlak: \"inherit\" laat het oppervlak van de ouder doorschijnen, \"base\", \"tinted\" en \"accent-tinted\" tekenen een eigen oppervlak dat naar de inhoud cascadeert', table: { defaultValue: { summary: 'inherit' } }, }, width: { control: 'text', description: 'Maximale breedte van de inhoud: \"full\" haalt de grens weg, een CSS-lengte (bv. \"480px\") vervangt hem', }, height: { control: 'text', description: 'Minimale hoogte van de sectie, als CSS-lengte (bv. \"400px\" of \"100dvh\")', }, grow: { control: 'boolean', description: 'Neemt de hoogte die de pagina over heeft, zodat de footer onderaan staat. Zonder `grow` groeit de laatste sectie van een `nldd-page`.', table: { defaultValue: { summary: false } }, }, paddingBlock: paddingControl('padding-block', 'Padding boven en onder (token 0 tot 96, \"0\" haalt hem weg)'), paddingTop: paddingControl('padding-top', 'Alleen de padding boven'), paddingBottom: paddingControl('padding-bottom', 'Alleen de padding onder'), smPaddingBlock: paddingControl('sm-padding-block', 'Padding boven en onder op sm (tot 640px)'), smPaddingTop: paddingControl('sm-padding-top', 'Padding boven op sm (tot 640px)'), smPaddingBottom: paddingControl('sm-padding-bottom', 'Padding onder op sm (tot 640px)'), mdPaddingBlock: paddingControl('md-padding-block', 'Padding boven en onder op md (641 tot 1007px)'), mdPaddingTop: paddingControl('md-padding-top', 'Padding boven op md (641 tot 1007px)'), mdPaddingBottom: paddingControl('md-padding-bottom', 'Padding onder op md (641 tot 1007px)'), lgPaddingBlock: paddingControl('lg-padding-block', 'Padding boven en onder op lg (vanaf 1008px)'), lgPaddingTop: paddingControl('lg-padding-top', 'Padding boven op lg (vanaf 1008px)'), lgPaddingBottom: paddingControl('lg-padding-bottom', 'Padding onder op lg (vanaf 1008px)'), }"
26705
26825
  },
26706
26826
  {
26707
26827
  "kind": "variable",
@@ -27622,7 +27742,7 @@
27622
27742
  "name": "PageSectionMixin",
27623
27743
  "module": "src/utilities/page-section-mixin.ts"
27624
27744
  },
27625
- "description": "Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface)."
27745
+ "description": "Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface)."
27626
27746
  },
27627
27747
  {
27628
27748
  "name": "height",
@@ -28091,7 +28211,7 @@
28091
28211
  "name": "PageSectionMixin",
28092
28212
  "module": "src/utilities/page-section-mixin.ts"
28093
28213
  },
28094
- "description": "Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface)."
28214
+ "description": "Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface)."
28095
28215
  },
28096
28216
  {
28097
28217
  "name": "height",
@@ -32642,7 +32762,7 @@
32642
32762
  "type": {
32643
32763
  "text": "boolean"
32644
32764
  },
32645
- "description": "Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value; in a `listbox` parent it drives `aria-selected`.",
32765
+ "description": "Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it. A selected row sets `--context-selected-indicator-color` and `--context-selected-contrast-color` to its text and fill color, so a checked nldd-checkbox, nldd-radio-button or nldd-switch in it takes the colors of the row: on its gray the accent can fall below 3:1. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value; in a `listbox` parent it drives `aria-selected`.",
32646
32766
  "name": "selected",
32647
32767
  "default": "false",
32648
32768
  "fieldName": "selected"
@@ -35893,7 +36013,7 @@
35893
36013
  },
35894
36014
  "default": "'critical'",
35895
36015
  "fieldName": "color",
35896
- "description": "Semantic ('critical' | 'accent' | 'neutral' | 'warning' | 'success'), a Rijkshuisstijl color ('lintblauw' | 'hemelblauw' | 'oranje' | …), or 'inherit' to fill in the content color around it: the `--context-content-color` channel a list item, table row or menu sets, falling back to `currentColor`. Default: 'critical'"
36016
+ "description": "The meaning of the badge, the same set as nldd-status-bar, or 'inherit' to fill in the content color around it: the `--context-content-color` channel a list item, table row or menu sets, falling back to `currentColor`. Default: 'critical'. A badge is a signal, not a category, so it has no Rijkshuisstijl colors: the theme picks the accent, and `custom-color` takes any other. Another value falls back to 'accent' and says so in development."
35897
36017
  },
35898
36018
  {
35899
36019
  "name": "custom-color",
@@ -37222,7 +37342,7 @@
37222
37342
  },
37223
37343
  "default": "'accent'",
37224
37344
  "fieldName": "color",
37225
- "description": "Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'."
37345
+ "description": "Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'. With more than one segment, give each a Rijkskleur (or success, warning and critical where they mean that): `accent` can turn near-black or match another segment in a theme, and `neutral` disappears against the track."
37226
37346
  },
37227
37347
  {
37228
37348
  "name": "name",
@@ -37609,7 +37729,7 @@
37609
37729
  },
37610
37730
  "default": "'accent'",
37611
37731
  "fieldName": "color",
37612
- "description": "Color (semantic or Rijkskleur). Default 'accent'."
37732
+ "description": "Color (semantic or Rijkskleur). Default 'accent'. With more than one segment, give each a Rijkskleur (or success, warning and critical where they mean that): `accent` can turn near-black or match another segment in a theme, and `neutral` disappears against the track."
37613
37733
  },
37614
37734
  {
37615
37735
  "name": "name",
@@ -39273,7 +39393,7 @@
39273
39393
  "declarations": [
39274
39394
  {
39275
39395
  "kind": "mixin",
39276
- "description": "Shared surface controls for the page-section components. Adds three\northogonal capabilities, all written as inline host styles / custom\nproperties (no per-component CSS needed for the background — custom\nproperties inherit through the shadow boundary into the section's block\nelement and slotted content):\n\n- **background**: `inherit` (the default — transparent, shows the ancestor's\n surface) | `base` (the base surface color) | `tinted`. Setting\n `base`/`tinted` also cascades `--context-parent-background-color` so\n descendants (cards, nested sections) read the same surface.\n- **block padding**: `padding-block` (both edges) with `padding-top`\n / `padding-bottom` per-edge overrides, each with responsive `sm-` /\n `md-` / `lg-` variants (12 attrs total). Token scale `0`–`96`; `0` strips\n the padding. Per breakpoint the section CSS resolves: scope override →\n base override → responsive default. The inline (gutter) padding stays\n design-controlled.\n- **height**: any CSS length (e.g. '400px', '100dvh') applied as the host's\n min-height (so the section is at least that tall) — mirroring how `width`\n maps to the body max-width.\n- **grow**: the section takes the height the page has left, so the footer\n sits at the bottom of a short page. Without it, nldd-page lets its last\n section grow. nldd-page reads this and marks the growing section with\n `data-growing`; it never writes `grow`, which stays the author's.",
39396
+ "description": "Shared surface controls for the page-section components. Adds three\northogonal capabilities, all written as inline host styles / custom\nproperties (no per-component CSS needed for the background — custom\nproperties inherit through the shadow boundary into the section's block\nelement and slotted content):\n\n- **background**: `inherit` (the default — transparent, shows the ancestor's\n surface) | `base` (the base surface color) | `tinted` | `accent-tinted`\n (a tint of the theme's accent, with the contrast of `tinted`). Setting\n one of those also cascades `--context-parent-background-color` so\n descendants (cards, nested sections) read the same surface.\n- **block padding**: `padding-block` (both edges) with `padding-top`\n / `padding-bottom` per-edge overrides, each with responsive `sm-` /\n `md-` / `lg-` variants (12 attrs total). Token scale `0`–`96`; `0` strips\n the padding. Per breakpoint the section CSS resolves: scope override →\n base override → responsive default. The inline (gutter) padding stays\n design-controlled.\n- **height**: any CSS length (e.g. '400px', '100dvh') applied as the host's\n min-height (so the section is at least that tall) — mirroring how `width`\n maps to the body max-width.\n- **grow**: the section takes the height the page has left, so the footer\n sits at the bottom of a short page. Without it, nldd-page lets its last\n section grow. nldd-page reads this and marks the growing section with\n `data-growing`; it never writes `grow`, which stays the author's.",
39277
39397
  "name": "PageSectionMixin",
39278
39398
  "members": [
39279
39399
  {
@@ -5,4 +5,36 @@ export declare const breakpoints: {
5
5
  readonly mdMax: "1007px";
6
6
  readonly lgMin: "1008px";
7
7
  };
8
+ /**
9
+ * The same breakpoints in rem, for `@container` and `@media` conditions. With
10
+ * page zoom, Safari compares the width of a container that takes its size from
11
+ * the layout in zoomed pixels, so a px condition sees a narrow container as
12
+ * wide; a rem condition scales with the zoom. At the default font size of
13
+ * 16px they equal the px values.
14
+ */
15
+ export declare const queryBreakpoints: {
16
+ readonly smMin: "20rem";
17
+ readonly smMax: "40rem";
18
+ readonly mdMin: "40.0625rem";
19
+ readonly mdMax: "62.9375rem";
20
+ readonly lgMin: "63rem";
21
+ };
22
+ /**
23
+ * The root font size in CSS pixels: what 1rem is in an `@container` condition.
24
+ * An `@media` condition and `matchMedia` take the browser's initial font size
25
+ * instead, which differs only when a site sets `font-size` on `<html>`; pass
26
+ * them a `queryBreakpoints` string. It reads the computed style of the page,
27
+ * so call it in the browser (in connectedCallback, a resize observer or an
28
+ * event handler), not during SSR.
29
+ */
30
+ export declare function rootFontSize(): number;
31
+ /**
32
+ * A breakpoint in CSS pixels at the root font size, for the width of a
33
+ * container that script compares itself. It matches what an `@container`
34
+ * condition in the styles sees, also when someone has set a larger default
35
+ * font size. Comparing against more than
36
+ * one breakpoint, read `rootFontSize()` once and pass it in. Browser only, like
37
+ * `rootFontSize()`.
38
+ */
39
+ export declare function breakpointPx(name: keyof typeof queryBreakpoints, fontSize?: number): number;
8
40
  //# sourceMappingURL=breakpoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC"}
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,OAAO,gBAAgB,EAAE,QAAQ,SAAiB,GAAG,MAAM,CAEnG"}
@@ -5,4 +5,40 @@ export const breakpoints = {
5
5
  mdMax: '1007px',
6
6
  lgMin: '1008px',
7
7
  };
8
+ /**
9
+ * The same breakpoints in rem, for `@container` and `@media` conditions. With
10
+ * page zoom, Safari compares the width of a container that takes its size from
11
+ * the layout in zoomed pixels, so a px condition sees a narrow container as
12
+ * wide; a rem condition scales with the zoom. At the default font size of
13
+ * 16px they equal the px values.
14
+ */
15
+ export const queryBreakpoints = {
16
+ smMin: '20rem',
17
+ smMax: '40rem',
18
+ mdMin: '40.0625rem',
19
+ mdMax: '62.9375rem',
20
+ lgMin: '63rem',
21
+ };
22
+ /**
23
+ * The root font size in CSS pixels: what 1rem is in an `@container` condition.
24
+ * An `@media` condition and `matchMedia` take the browser's initial font size
25
+ * instead, which differs only when a site sets `font-size` on `<html>`; pass
26
+ * them a `queryBreakpoints` string. It reads the computed style of the page,
27
+ * so call it in the browser (in connectedCallback, a resize observer or an
28
+ * event handler), not during SSR.
29
+ */
30
+ export function rootFontSize() {
31
+ return parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
32
+ }
33
+ /**
34
+ * A breakpoint in CSS pixels at the root font size, for the width of a
35
+ * container that script compares itself. It matches what an `@container`
36
+ * condition in the styles sees, also when someone has set a larger default
37
+ * font size. Comparing against more than
38
+ * one breakpoint, read `rootFontSize()` once and pass it in. Browser only, like
39
+ * `rootFontSize()`.
40
+ */
41
+ export function breakpointPx(name, fontSize = rootFontSize()) {
42
+ return parseFloat(queryBreakpoints[name]) * fontSize;
43
+ }
8
44
  //# sourceMappingURL=breakpoints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;CACN,CAAC"}
1
+ {"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;CACN,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,OAAO;CACL,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY;IAC3B,OAAO,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC9E,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,IAAmC,EAAE,QAAQ,GAAG,YAAY,EAAE;IAC1F,OAAO,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC;AACtD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { css, unsafeCSS } from 'lit';
2
- import { breakpoints } from "../../../assets/styles/breakpoints.js";
3
- const smMax = unsafeCSS(breakpoints.smMax);
2
+ import { queryBreakpoints } from "../../../assets/styles/breakpoints.js";
3
+ const smMax = unsafeCSS(queryBreakpoints.smMax);
4
4
  export const buttonGroupStyles = css `
5
5
  :host {
6
6
  box-sizing: border-box;
@@ -1 +1 @@
1
- {"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAmDV,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D9B,CAAC"}
1
+ {"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAEhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAmDV,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D9B,CAAC"}
@@ -18,7 +18,7 @@ import '../../content/icon/icon.js';
18
18
  import '../../content/keyboard-shortcut/keyboard-shortcut.js';
19
19
  import '../../status-and-feedback/inline-dialog/inline-dialog.js';
20
20
  import { isKeyboardMode, isTouchMode } from '../../../utilities/input-modality.js';
21
- import { breakpoints } from '../../../assets/styles/breakpoints.js';
21
+ import { queryBreakpoints } from '../../../assets/styles/breakpoints.js';
22
22
  import { translate } from '../../../utilities/translations.js';
23
23
  /** Makes `host` a list item while its menu is a navigation menu, and takes
24
24
  * that back when it is not. A `listitem` the consumer set by hand on an item
@@ -1783,7 +1783,7 @@ export class NLDDMenu extends LitElement {
1783
1783
  // Use the shared breakpoint constant so the JS-side threshold can't
1784
1784
  // drift from the CSS-side one (spacer.styles.ts and friends pull
1785
1785
  // from the same source).
1786
- NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${breakpoints.smMax})`);
1786
+ NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${queryBreakpoints.smMax})`);
1787
1787
  }
1788
1788
  return NLDDMenu._drillInModeQuery;
1789
1789
  }