@nldd/design-system 0.9.0 → 0.11.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 (373) hide show
  1. package/custom-elements.json +878 -25
  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/button.d.ts +10 -0
  7. package/dist/components/actions/button/button.d.ts.map +1 -1
  8. package/dist/components/actions/button/button.js +23 -0
  9. package/dist/components/actions/button/button.js.map +1 -1
  10. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  11. package/dist/components/actions/button/button.styles.js +22 -0
  12. package/dist/components/actions/button/button.styles.js.map +1 -1
  13. package/dist/components/actions/button/button.template.d.ts +1 -0
  14. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  15. package/dist/components/actions/button/button.template.js +20 -2
  16. package/dist/components/actions/button/button.template.js.map +1 -1
  17. package/dist/components/actions/button-group/button-group.styles.js +2 -2
  18. package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.d.ts +10 -0
  20. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.js +23 -0
  22. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  23. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  24. package/dist/components/actions/icon-button/icon-button.template.js +10 -3
  25. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  26. package/dist/components/actions/menu/menu.js +2 -2
  27. package/dist/components/actions/menu/menu.js.map +1 -1
  28. package/dist/components/actions/menu/menu.styles.js +3 -3
  29. package/dist/components/actions/split-button/split-button.d.ts +8 -0
  30. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  31. package/dist/components/actions/split-button/split-button.js +20 -0
  32. package/dist/components/actions/split-button/split-button.js.map +1 -1
  33. package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
  34. package/dist/components/actions/split-button/split-button.template.js +4 -0
  35. package/dist/components/actions/split-button/split-button.template.js.map +1 -1
  36. package/dist/components/breakpoints-Bpf2MgjM.js +39 -0
  37. package/dist/components/components.js +803 -829
  38. package/dist/components/content/blockquote/blockquote.styles.js +2 -2
  39. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  40. package/dist/components/content/code-viewer/code-viewer.styles.js +3 -3
  41. package/dist/components/content/identity/identity.styles.js +2 -2
  42. package/dist/components/content/identity/identity.styles.js.map +1 -1
  43. package/dist/components/content/image/image.styles.js +1 -1
  44. package/dist/components/content/image/lqip-encoder-element.js +1 -1
  45. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +3 -3
  46. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
  47. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +6 -21
  48. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
  49. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  50. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +3 -0
  51. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  52. package/dist/components/content/title/title.styles.js +5 -5
  53. package/dist/components/content/title/title.styles.js.map +1 -1
  54. package/dist/components/content/tooltip/tooltip.d.ts +14 -0
  55. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  56. package/dist/components/content/tooltip/tooltip.js +45 -6
  57. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  58. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  59. package/dist/components/content/tooltip/tooltip.styles.js +13 -0
  60. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  61. package/dist/components/content/tooltip/tooltip.template.d.ts.map +1 -1
  62. package/dist/components/content/tooltip/tooltip.template.js +18 -2
  63. package/dist/components/content/tooltip/tooltip.template.js.map +1 -1
  64. package/dist/components/forms/form-actions/form-actions.styles.js +2 -2
  65. package/dist/components/forms/form-actions/form-actions.styles.js.map +1 -1
  66. package/dist/components/forms/form-field/form-field.styles.js +2 -2
  67. package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
  68. package/dist/components/{icon-button-BVhiOwX9.js → icon-button-Cntrg4_E.js} +526 -61
  69. package/dist/components/inputs/checkbox/checkbox.d.ts +8 -0
  70. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  71. package/dist/components/inputs/checkbox/checkbox.js +11 -0
  72. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  73. package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
  74. package/dist/components/inputs/checkbox/checkbox.styles.js +36 -9
  75. package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
  76. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +3 -0
  77. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
  78. package/dist/components/inputs/checkbox-field/checkbox-field.js +6 -0
  79. package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
  80. package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
  81. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +7 -0
  82. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
  83. package/dist/components/inputs/checkbox-field/checkbox-field.template.d.ts.map +1 -1
  84. package/dist/components/inputs/checkbox-field/checkbox-field.template.js +1 -0
  85. package/dist/components/inputs/checkbox-field/checkbox-field.template.js.map +1 -1
  86. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  87. package/dist/components/inputs/code-editor/code-editor.styles.js +2 -1
  88. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  89. package/dist/components/inputs/date-field/date-field.styles.js +2 -2
  90. package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
  91. package/dist/components/inputs/date-picker/date-picker.js +2 -2
  92. package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
  93. package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
  94. package/dist/components/inputs/date-picker/date-picker.styles.js +31 -7
  95. package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
  96. package/dist/components/inputs/file-field/file-field.styles.js +2 -2
  97. package/dist/components/inputs/radio-button/radio-button.d.ts +8 -0
  98. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  99. package/dist/components/inputs/radio-button/radio-button.js +11 -0
  100. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  101. package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
  102. package/dist/components/inputs/radio-button/radio-button.styles.js +28 -9
  103. package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
  104. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -0
  105. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
  106. package/dist/components/inputs/radio-button-field/radio-button-field.js +6 -0
  107. package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
  108. package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
  109. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +7 -0
  110. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
  111. package/dist/components/inputs/radio-button-field/radio-button-field.template.d.ts.map +1 -1
  112. package/dist/components/inputs/radio-button-field/radio-button-field.template.js +2 -1
  113. package/dist/components/inputs/radio-button-field/radio-button-field.template.js.map +1 -1
  114. package/dist/components/inputs/search-field/search-field.d.ts +11 -0
  115. package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
  116. package/dist/components/inputs/search-field/search-field.js +30 -1
  117. package/dist/components/inputs/search-field/search-field.js.map +1 -1
  118. package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
  119. package/dist/components/inputs/search-field/search-field.styles.js +18 -0
  120. package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
  121. package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
  122. package/dist/components/inputs/search-field/search-field.template.js +12 -0
  123. package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
  124. package/dist/components/inputs/segmented-control/segmented-control.d.ts +10 -0
  125. package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
  126. package/dist/components/inputs/segmented-control/segmented-control.js +25 -1
  127. package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
  128. package/dist/components/inputs/segmented-control/segmented-control.template.d.ts.map +1 -1
  129. package/dist/components/inputs/segmented-control/segmented-control.template.js +20 -3
  130. package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
  131. package/dist/components/inputs/switch/switch.d.ts +8 -0
  132. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  133. package/dist/components/inputs/switch/switch.js +11 -0
  134. package/dist/components/inputs/switch/switch.js.map +1 -1
  135. package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
  136. package/dist/components/inputs/switch/switch.styles.js +14 -2
  137. package/dist/components/inputs/switch/switch.styles.js.map +1 -1
  138. package/dist/components/inputs/switch-field/switch-field.d.ts +3 -0
  139. package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
  140. package/dist/components/inputs/switch-field/switch-field.js +7 -0
  141. package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
  142. package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
  143. package/dist/components/inputs/switch-field/switch-field.styles.js +7 -0
  144. package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
  145. package/dist/components/inputs/switch-field/switch-field.template.d.ts.map +1 -1
  146. package/dist/components/inputs/switch-field/switch-field.template.js +1 -0
  147. package/dist/components/inputs/switch-field/switch-field.template.js.map +1 -1
  148. package/dist/components/inputs/text-editor/text-editor.mentions.js +2 -2
  149. package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
  150. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  151. package/dist/components/inputs/text-editor/text-editor.styles.js +17 -14
  152. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  153. package/dist/components/inputs/time-field/time-field.styles.js +2 -2
  154. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  155. package/dist/components/inputs/time-picker/time-picker.styles.js +2 -2
  156. package/dist/components/inputs/toggle-button/toggle-button.d.ts +10 -0
  157. package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
  158. package/dist/components/inputs/toggle-button/toggle-button.js +25 -1
  159. package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
  160. package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
  161. package/dist/components/inputs/toggle-button/toggle-button.template.js +21 -7
  162. package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
  163. package/dist/components/layout/box/box.d.ts +4 -2
  164. package/dist/components/layout/box/box.d.ts.map +1 -1
  165. package/dist/components/layout/box/box.js +3 -1
  166. package/dist/components/layout/box/box.js.map +1 -1
  167. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  168. package/dist/components/layout/box/box.styles.js +10 -5
  169. package/dist/components/layout/box/box.styles.js.map +1 -1
  170. package/dist/components/layout/card/card.d.ts +2 -2
  171. package/dist/components/layout/card/card.d.ts.map +1 -1
  172. package/dist/components/layout/card/card.js +1 -1
  173. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  174. package/dist/components/layout/card/card.styles.js +12 -3
  175. package/dist/components/layout/card/card.styles.js.map +1 -1
  176. package/dist/components/layout/collection/collection.d.ts +6 -0
  177. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  178. package/dist/components/layout/collection/collection.js +6 -0
  179. package/dist/components/layout/collection/collection.js.map +1 -1
  180. package/dist/components/layout/collection/collection.styles.js +5 -5
  181. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  182. package/dist/components/layout/container/container.d.ts +2 -0
  183. package/dist/components/layout/container/container.d.ts.map +1 -1
  184. package/dist/components/layout/container/container.js +9 -0
  185. package/dist/components/layout/container/container.js.map +1 -1
  186. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  187. package/dist/components/layout/container/container.styles.js +18 -5
  188. package/dist/components/layout/container/container.styles.js.map +1 -1
  189. package/dist/components/layout/page-footer/page-footer.styles.js +5 -5
  190. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  191. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
  192. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -1
  193. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +5 -5
  194. package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
  195. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +5 -5
  196. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
  197. package/dist/components/layout/page-sections/hero/hero.d.ts +15 -13
  198. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  199. package/dist/components/layout/page-sections/hero/hero.js +20 -12
  200. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  201. package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
  202. package/dist/components/layout/page-sections/hero/hero.styles.js +8 -98
  203. package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
  204. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
  205. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
  206. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +5 -5
  207. package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
  208. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
  209. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
  210. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +8 -8
  211. package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
  212. package/dist/components/layout/page-sections/page-section-controls.js +2 -2
  213. package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
  214. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +0 -1
  215. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  216. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +2 -3
  217. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  218. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +6 -6
  219. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
  220. package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
  221. package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -1
  222. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +5 -5
  223. package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
  224. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
  225. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
  226. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +8 -8
  227. package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
  228. package/dist/components/layout/popover/popover.js +2 -2
  229. package/dist/components/layout/popover/popover.js.map +1 -1
  230. package/dist/components/layout/popover/popover.styles.js +3 -3
  231. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  232. package/dist/components/layout/sheet/sheet.styles.js +4 -4
  233. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  234. package/dist/components/layout/spacer/spacer.styles.js +5 -5
  235. package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
  236. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
  237. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -5
  238. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
  239. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +5 -5
  240. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
  241. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +2 -2
  242. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
  243. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
  244. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +9 -5
  245. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
  246. package/dist/components/lists-and-tables/list/list.styles.js +2 -2
  247. package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
  248. package/dist/components/lists-and-tables/list-item/list-item.js +1 -1
  249. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  250. package/dist/components/lists-and-tables/list-item/list-item.styles.js +6 -0
  251. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  252. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  253. package/dist/components/lists-and-tables/table/table.js +4 -7
  254. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  255. package/dist/components/lists-and-tables/table/table.styles.js +2 -2
  256. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  257. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +18 -17
  258. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  259. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +2 -2
  260. package/dist/components/navigation/pagination/pagination.styles.js +2 -2
  261. package/dist/components/navigation/tab-bar/tab-bar.styles.js +9 -9
  262. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -2
  263. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  264. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  265. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +14 -9
  266. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  267. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +16 -9
  268. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
  269. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +16 -9
  270. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
  271. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
  272. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +23 -18
  273. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
  274. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -1
  275. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +19 -21
  276. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js.map +1 -1
  277. package/dist/components/status-and-feedback/badge/badge.d.ts +3 -2
  278. package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
  279. package/dist/components/status-and-feedback/badge/badge.js +13 -1
  280. package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
  281. package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
  282. package/dist/components/status-and-feedback/badge/badge.styles.js +18 -125
  283. package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
  284. package/dist/components/status-and-feedback/banner/banner.styles.js +15 -15
  285. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +1 -1
  286. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +2 -2
  287. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  288. package/dist/components/status-and-feedback/notification/notification.styles.js +3 -3
  289. package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
  290. package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -1
  291. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
  292. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +6 -6
  293. package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +1 -1
  294. package/dist/components/status-and-feedback/progress-circle/progress-circle.js +1 -1
  295. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +3 -3
  296. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +1 -1
  297. package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
  298. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +14 -14
  299. package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
  300. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +9 -7
  301. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
  302. package/dist/components/{visibility-mixin-Crbt8PFP.js → visibility-mixin-djNSG5ZN.js} +5 -5
  303. package/dist/css/rich-text.css +11 -11
  304. package/dist/css/themes/bruin.css +226 -0
  305. package/dist/css/themes/donkerblauw.css +226 -0
  306. package/dist/css/themes/donkerbruin.css +206 -0
  307. package/dist/css/themes/donkergeel.css +259 -0
  308. package/dist/css/themes/donkergroen.css +211 -0
  309. package/dist/css/themes/geel.css +259 -0
  310. package/dist/css/themes/groen.css +226 -0
  311. package/dist/css/themes/hemelblauw.css +226 -0
  312. package/dist/css/themes/lichtblauw.css +229 -0
  313. package/dist/css/themes/mintgroen.css +229 -0
  314. package/dist/css/themes/mosgroen.css +226 -0
  315. package/dist/css/themes/oranje.css +259 -0
  316. package/dist/css/themes/paars.css +233 -0
  317. package/dist/css/themes/robijnrood.css +259 -0
  318. package/dist/css/themes/rood.css +259 -0
  319. package/dist/css/themes/roze.css +236 -0
  320. package/dist/css/themes/violet.css +211 -0
  321. package/dist/css/themes.css +3884 -0
  322. package/dist/css/variables.css +215 -184
  323. package/dist/favicon/bruin/favicon.svg +5 -0
  324. package/dist/favicon/bruin/touch-icon.png +0 -0
  325. package/dist/favicon/donkerblauw/favicon.svg +5 -0
  326. package/dist/favicon/donkerblauw/touch-icon.png +0 -0
  327. package/dist/favicon/donkerbruin/favicon.svg +5 -0
  328. package/dist/favicon/donkerbruin/touch-icon.png +0 -0
  329. package/dist/favicon/donkergeel/favicon.svg +5 -0
  330. package/dist/favicon/donkergeel/touch-icon.png +0 -0
  331. package/dist/favicon/donkergroen/favicon.svg +5 -0
  332. package/dist/favicon/donkergroen/touch-icon.png +0 -0
  333. package/dist/favicon/geel/favicon.svg +5 -0
  334. package/dist/favicon/geel/touch-icon.png +0 -0
  335. package/dist/favicon/groen/favicon.svg +5 -0
  336. package/dist/favicon/groen/touch-icon.png +0 -0
  337. package/dist/favicon/hemelblauw/favicon.svg +5 -0
  338. package/dist/favicon/hemelblauw/touch-icon.png +0 -0
  339. package/dist/favicon/lichtblauw/favicon.svg +5 -0
  340. package/dist/favicon/lichtblauw/touch-icon.png +0 -0
  341. package/dist/favicon/mintgroen/favicon.svg +5 -0
  342. package/dist/favicon/mintgroen/touch-icon.png +0 -0
  343. package/dist/favicon/mosgroen/favicon.svg +5 -0
  344. package/dist/favicon/mosgroen/touch-icon.png +0 -0
  345. package/dist/favicon/oranje/favicon.svg +5 -0
  346. package/dist/favicon/oranje/touch-icon.png +0 -0
  347. package/dist/favicon/paars/favicon.svg +5 -0
  348. package/dist/favicon/paars/touch-icon.png +0 -0
  349. package/dist/favicon/robijnrood/favicon.svg +5 -0
  350. package/dist/favicon/robijnrood/touch-icon.png +0 -0
  351. package/dist/favicon/rood/favicon.svg +5 -0
  352. package/dist/favicon/rood/touch-icon.png +0 -0
  353. package/dist/favicon/roze/favicon.svg +5 -0
  354. package/dist/favicon/roze/touch-icon.png +0 -0
  355. package/dist/favicon/violet/favicon.svg +5 -0
  356. package/dist/favicon/violet/touch-icon.png +0 -0
  357. package/dist/nldd.min.js +1328 -1244
  358. package/dist/types/vue.d.ts +134 -19
  359. package/dist/utilities/codemirror/theme.js +1 -1
  360. package/dist/utilities/codemirror/theme.js.map +1 -1
  361. package/dist/utilities/page-section-mixin.d.ts +4 -3
  362. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  363. package/dist/utilities/page-section-mixin.js +6 -4
  364. package/dist/utilities/page-section-mixin.js.map +1 -1
  365. package/dist/utilities/shortcut.d.ts +50 -0
  366. package/dist/utilities/shortcut.d.ts.map +1 -0
  367. package/dist/utilities/shortcut.js +77 -0
  368. package/dist/utilities/shortcut.js.map +1 -0
  369. package/dist/utilities/visibility-mixin.styles.js +5 -5
  370. package/dist/utilities/visibility-mixin.styles.js.map +1 -1
  371. package/package.json +11 -7
  372. package/dist/components/breakpoints-CkxsiRgH.js +0 -10
  373. package/dist/components/{icon-D_ZGezHx.js → icon-zNX9A6d3.js} +1 -1
@@ -230,7 +230,7 @@ declare module 'vue' {
230
230
  type NLDDBadgeProps = {
231
231
  /** Size: 'sm' | 'md' (default: 'md') */
232
232
  'size'?: NLDDBadge['size'];
233
- /** 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' */
233
+ /** 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. */
234
234
  'color'?: NLDDBadge['color'];
235
235
  /** A color of its own, as any CSS color value ('#a90061', 'oklch(0.6 0.2 20)', 'var(--brand-cable-blue)'). For a color the system cannot know: the jacket of a cable, a color someone picked. It wins over `color`. Whatever it paints, the text and icon on top become white or black, whichever contrasts. The text on it is black or white, picked on the relative luminance of the fill, so it clears 4.5:1 whatever color you hand it. */
236
236
  'custom-color'?: NLDDBadge['customColor'];
@@ -291,7 +291,7 @@ declare module 'vue' {
291
291
  };
292
292
 
293
293
  type NLDDBoxProps = {
294
- /** 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. */
294
+ /** 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. */
295
295
  'background'?: NLDDBox['background'];
296
296
  };
297
297
 
@@ -378,6 +378,20 @@ declare module 'vue' {
378
378
  'accessible-label'?: NLDDButton['accessibleLabel'];
379
379
  /** Accessible label for the button, overrides text for screen readers */
380
380
  'accessibleLabel'?: NLDDButton['accessibleLabel'];
381
+ /** Keyboard shortcut hint shown right after the text, e.g. 'Cmd+S'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name, as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. Keep it for the few main actions of a screen (save, search); a hint on every button is noise. */
382
+ 'shortcut'?: NLDDButton['shortcut'];
383
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
384
+ 'shortcut-mac'?: NLDDButton['shortcutMac'];
385
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
386
+ 'shortcutMac'?: NLDDButton['shortcutMac'];
387
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
388
+ 'shortcut-windows'?: NLDDButton['shortcutWindows'];
389
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
390
+ 'shortcutWindows'?: NLDDButton['shortcutWindows'];
391
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
392
+ 'shortcut-linux'?: NLDDButton['shortcutLinux'];
393
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
394
+ 'shortcutLinux'?: NLDDButton['shortcutLinux'];
381
395
  /** When set, renders an <a> element instead of <button> */
382
396
  'href'?: NLDDButton['href'];
383
397
  /** Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
@@ -416,7 +430,7 @@ declare module 'vue' {
416
430
  };
417
431
 
418
432
  type NLDDCardProps = {
419
- /** Surface color of the card: `base` (default) on a plain page background, `tinted` when the card should stand out against a base surface */
433
+ /** 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` */
420
434
  'background'?: NLDDCard['background'];
421
435
  /** Accessible name of the card; with `href`/`button` it names the link or button, otherwise the card region */
422
436
  'accessible-label'?: NLDDCard['accessibleLabel'];
@@ -480,6 +494,8 @@ declare module 'vue' {
480
494
  'value'?: NLDDCheckbox['value'];
481
495
  /** Name for form submission */
482
496
  'name'?: NLDDCheckbox['name'];
497
+ /** '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. */
498
+ 'color'?: NLDDCheckbox['color'];
483
499
  /** Accessible label forwarded as aria-label to the native input. */
484
500
  'accessible-label'?: NLDDCheckbox['accessibleLabel'];
485
501
  /** Accessible label forwarded as aria-label to the native input. */
@@ -506,6 +522,8 @@ declare module 'vue' {
506
522
  'value'?: NLDDCheckboxField['value'];
507
523
  /** Name for form submission */
508
524
  'name'?: NLDDCheckboxField['name'];
525
+ /** '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. */
526
+ 'color'?: NLDDCheckboxField['color'];
509
527
  /** Label text for the checkbox */
510
528
  'label'?: NLDDCheckboxField['label'];
511
529
  /** Required state */
@@ -722,6 +740,10 @@ declare module 'vue' {
722
740
  'max-width'?: NLDDContainer['maxWidth'];
723
741
  /** Maximum width as a CSS length (e.g. '480px') */
724
742
  'maxWidth'?: NLDDContainer['maxWidth'];
743
+ /** Minimum height as a CSS length (e.g. '240px'), padding included. Reserves the room that content still on its way will take; vertical-alignment then places the children within it. */
744
+ 'min-height'?: NLDDContainer['minHeight'];
745
+ /** Minimum height as a CSS length (e.g. '240px'), padding included. Reserves the room that content still on its way will take; vertical-alignment then places the children within it. */
746
+ 'minHeight'?: NLDDContainer['minHeight'];
725
747
  /** Gap between children. One distance for all of them, so it fits children of one kind; for a stack of different kinds, space each seam with nldd-spacer instead. */
726
748
  'gap'?: NLDDContainer['gap'];
727
749
  /** Gap at sm breakpoint */
@@ -1140,7 +1162,7 @@ declare module 'vue' {
1140
1162
  type NLDDFullBleedSectionProps = {
1141
1163
  /** Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width. */
1142
1164
  'width'?: NLDDFullBleedSection['width'];
1143
- /** Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface). */
1165
+ /** 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). */
1144
1166
  'background'?: NLDDFullBleedSection['background'];
1145
1167
  /** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
1146
1168
  'height'?: NLDDFullBleedSection['height'];
@@ -1187,9 +1209,9 @@ declare module 'vue' {
1187
1209
  'corner'?: NLDDHero['corner'];
1188
1210
  /** How the panel relates to the image (default: 'overlap'). 'contained' keeps it on the image, in any of the eight positions; 'overlap' lets it fall `overlap-size` over the bottom of the image and run on below as far as its content needs, so the image keeps its height whatever the content. In 'overlap' the image has a fixed height (320px on md, 400px on lg) unless `media-height` or `media-aspect-ratio` is set, and only the horizontal side of `main-position` counts. A panel shorter than `overlap-size` ends inside the image and says so in development */
1189
1211
  'layout'?: NLDDHero['layout'];
1190
- /** Surface color of the panel: 'base' (the base surface) or a category color — 'accent' (default) or a Rijkshuisstijl color such as 'lintblauw'|'donkerblauw'|'oranje' */
1212
+ /** Surface color of the panel: 'accent' (default), the accent color of the theme, or 'base', the base surface */
1191
1213
  'main-background'?: NLDDHero['mainBackground'];
1192
- /** Surface color of the panel: 'base' (the base surface) or a category color — 'accent' (default) or a Rijkshuisstijl color such as 'lintblauw'|'donkerblauw'|'oranje' */
1214
+ /** Surface color of the panel: 'accent' (default), the accent color of the theme, or 'base', the base surface */
1193
1215
  'mainBackground'?: NLDDHero['mainBackground'];
1194
1216
  /** Width of the panel (default: 'auto'). 'auto' follows the content, between 480px and 640px and never wider than the image allows: a short title gets a narrow panel, a paragraph runs on to a readable line length. 'full' makes a strip across the whole image, at the top or the bottom, and is ignored with 'left'/'right'. Any CSS width (e.g. '560px', '60%') sets it exactly on md and lg, still never wider than the image allows; an invalid value falls back to 'auto' */
1195
1217
  'main-width'?: NLDDHero['mainWidth'];
@@ -1326,6 +1348,20 @@ declare module 'vue' {
1326
1348
  'tooltip-timing'?: NLDDIconButton['tooltipTiming'];
1327
1349
  /** Forwarded to the inner nldd-tooltip's `timing`: 'delay' (the default, a 700 ms show-delay), 'instant', or 'never' (suppress the visual tooltip; screen readers still get the aria-label). Use 'never' when the surrounding context already explains the button (e.g. spin buttons in nldd-number-field, the chevron in nldd-split-button). */
1328
1350
  'tooltipTiming'?: NLDDIconButton['tooltipTiming'];
1351
+ /** Keyboard shortcut hint shown in the tooltip after the text, e.g. 'Alt+P'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name ("Presentatiemodus Alt P"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. */
1352
+ 'shortcut'?: NLDDIconButton['shortcut'];
1353
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
1354
+ 'shortcut-mac'?: NLDDIconButton['shortcutMac'];
1355
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
1356
+ 'shortcutMac'?: NLDDIconButton['shortcutMac'];
1357
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
1358
+ 'shortcut-windows'?: NLDDIconButton['shortcutWindows'];
1359
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
1360
+ 'shortcutWindows'?: NLDDIconButton['shortcutWindows'];
1361
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
1362
+ 'shortcut-linux'?: NLDDIconButton['shortcutLinux'];
1363
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
1364
+ 'shortcutLinux'?: NLDDIconButton['shortcutLinux'];
1329
1365
  /** When set, renders an <a> element instead of <button> */
1330
1366
  'href'?: NLDDIconButton['href'];
1331
1367
  /** Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off. */
@@ -1481,7 +1517,7 @@ declare module 'vue' {
1481
1517
  };
1482
1518
 
1483
1519
  type NLDDKeyboardShortcutProps = {
1484
- /** Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P'). Use '+++' for a literal '+' key: 'Ctrl+++' becomes 'Ctrl' + '+'. For more complex cases (a combo with several '+' keys, for instance) use the default slot with your own <kbd> elements instead of the keys attribute. */
1520
+ /** Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P'). End with '++' for a literal '+' key: 'Ctrl++' becomes 'Ctrl' + '+' ('Ctrl+++' works too). For more complex cases, such as a combo with several '+' keys, use the default slot with your own <kbd> elements instead of the keys attribute. */
1485
1521
  'keys'?: NLDDKeyboardShortcut['keys'];
1486
1522
  /** Optional override for macOS (iPhone/iPad/iPod included). */
1487
1523
  'mac-keys'?: NLDDKeyboardShortcut['macKeys'];
@@ -1584,7 +1620,7 @@ declare module 'vue' {
1584
1620
  'accessibleLabel'?: NLDDListItem['accessibleLabel'];
1585
1621
  /** Set by the parent `nldd-list` when its own `reorderable` is on (with `type="list"`); consumers do not set this. Serves as a CSS hook for drag handle visibility. */
1586
1622
  'reorderable'?: NLDDListItem['reorderable'];
1587
- /** 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`. */
1623
+ /** 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`. */
1588
1624
  'selected'?: NLDDListItem['selected'];
1589
1625
  /** Checked state of a `checkbox` or `radio` row. A checkbox row toggles it on activation, a radio row only ever sets it */
1590
1626
  'checked'?: NLDDListItem['checked'];
@@ -1991,7 +2027,7 @@ declare module 'vue' {
1991
2027
  'vertical-alignment'?: NLDDOneHalfOneHalfSection['verticalAlignment'];
1992
2028
  /** Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other. */
1993
2029
  'verticalAlignment'?: NLDDOneHalfOneHalfSection['verticalAlignment'];
1994
- /** Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface). */
2030
+ /** 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). */
1995
2031
  'background'?: NLDDOneHalfOneHalfSection['background'];
1996
2032
  /** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
1997
2033
  'height'?: NLDDOneHalfOneHalfSection['height'];
@@ -2038,7 +2074,7 @@ declare module 'vue' {
2038
2074
  'vertical-alignment'?: NLDDOneThirdTwoThirdsSection['verticalAlignment'];
2039
2075
  /** Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other. */
2040
2076
  'verticalAlignment'?: NLDDOneThirdTwoThirdsSection['verticalAlignment'];
2041
- /** Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface). */
2077
+ /** 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). */
2042
2078
  'background'?: NLDDOneThirdTwoThirdsSection['background'];
2043
2079
  /** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
2044
2080
  'height'?: NLDDOneThirdTwoThirdsSection['height'];
@@ -2276,7 +2312,7 @@ declare module 'vue' {
2276
2312
  type NLDDProgressBarSegmentIndicatorProps = {
2277
2313
  /** Share of the parent's total (default 0; <=0 hides segment) */
2278
2314
  'value'?: NLDDProgressBarSegmentIndicator['value'];
2279
- /** Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'. */
2315
+ /** 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. */
2280
2316
  'color'?: NLDDProgressBarSegmentIndicator['color'];
2281
2317
  /** Name for screenreader text (optional) */
2282
2318
  'name'?: NLDDProgressBarSegmentIndicator['name'];
@@ -2324,7 +2360,7 @@ declare module 'vue' {
2324
2360
  type NLDDProgressCircleSegmentIndicatorProps = {
2325
2361
  /** Share of the parent's total (default 0; <=0 hides segment) */
2326
2362
  'value'?: NLDDProgressCircleSegmentIndicator['value'];
2327
- /** Color (semantic or Rijkskleur). Default 'accent'. */
2363
+ /** 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. */
2328
2364
  'color'?: NLDDProgressCircleSegmentIndicator['color'];
2329
2365
  /** Optional name used in the combined tooltip + screenreader text */
2330
2366
  'name'?: NLDDProgressCircleSegmentIndicator['name'];
@@ -2351,6 +2387,8 @@ declare module 'vue' {
2351
2387
  'name'?: NLDDRadioButton['name'];
2352
2388
  /** Value submitted with the form when this radio button is checked */
2353
2389
  'value'?: NLDDRadioButton['value'];
2390
+ /** '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. */
2391
+ 'color'?: NLDDRadioButton['color'];
2354
2392
  /** Accessible label, set as aria-label on this element: it is the radio. */
2355
2393
  'accessible-label'?: NLDDRadioButton['accessibleLabel'];
2356
2394
  /** Accessible label, set as aria-label on this element: it is the radio. */
@@ -2375,6 +2413,8 @@ declare module 'vue' {
2375
2413
  'name'?: NLDDRadioButtonField['name'];
2376
2414
  /** 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. */
2377
2415
  'required'?: NLDDRadioButtonField['required'];
2416
+ /** '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. */
2417
+ 'color'?: NLDDRadioButtonField['color'];
2378
2418
  /** Label text for the radio button */
2379
2419
  'label'?: NLDDRadioButtonField['label'];
2380
2420
  /** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
@@ -2435,6 +2475,20 @@ declare module 'vue' {
2435
2475
  'show-search-button'?: NLDDSearchField['showSearchButton'];
2436
2476
  /** When set, shows a search button on the right */
2437
2477
  'showSearchButton'?: NLDDSearchField['showSearchButton'];
2478
+ /** Keyboard shortcut hint shown at the right end of the empty field, e.g. 'Cmd+K' or '/'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up focusing the field in your app. Hidden while the field has focus or a value, and on touch-only devices. Joins the field's description for screen readers. */
2479
+ 'shortcut'?: NLDDSearchField['shortcut'];
2480
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
2481
+ 'shortcut-mac'?: NLDDSearchField['shortcutMac'];
2482
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
2483
+ 'shortcutMac'?: NLDDSearchField['shortcutMac'];
2484
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
2485
+ 'shortcut-windows'?: NLDDSearchField['shortcutWindows'];
2486
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
2487
+ 'shortcutWindows'?: NLDDSearchField['shortcutWindows'];
2488
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
2489
+ 'shortcut-linux'?: NLDDSearchField['shortcutLinux'];
2490
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
2491
+ 'shortcutLinux'?: NLDDSearchField['shortcutLinux'];
2438
2492
  /** Override translation keys; unset keys fall back to Dutch */
2439
2493
  'translations'?: NLDDSearchField['translations'];
2440
2494
  /** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
@@ -2531,6 +2585,20 @@ declare module 'vue' {
2531
2585
  'text'?: NLDDSegmentedControlItem['text'];
2532
2586
  /** Icon name for nldd-icon */
2533
2587
  'icon'?: NLDDSegmentedControlItem['icon'];
2588
+ /** Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name ("Vet Cmd B"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. */
2589
+ 'shortcut'?: NLDDSegmentedControlItem['shortcut'];
2590
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
2591
+ 'shortcut-mac'?: NLDDSegmentedControlItem['shortcutMac'];
2592
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
2593
+ 'shortcutMac'?: NLDDSegmentedControlItem['shortcutMac'];
2594
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
2595
+ 'shortcut-windows'?: NLDDSegmentedControlItem['shortcutWindows'];
2596
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
2597
+ 'shortcutWindows'?: NLDDSegmentedControlItem['shortcutWindows'];
2598
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
2599
+ 'shortcut-linux'?: NLDDSegmentedControlItem['shortcutLinux'];
2600
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
2601
+ 'shortcutLinux'?: NLDDSegmentedControlItem['shortcutLinux'];
2534
2602
  /** When item is activated; detail: { value: string, checked: boolean } */
2535
2603
  'onItemChange'?: (event: CustomEvent) => void;
2536
2604
  };
@@ -2637,7 +2705,7 @@ declare module 'vue' {
2637
2705
  'vertical-alignment'?: NLDDSimpleSection['verticalAlignment'];
2638
2706
  /** Where the body's children sit down the section ('top' default). Only visible when the section is taller than its content. */
2639
2707
  'verticalAlignment'?: NLDDSimpleSection['verticalAlignment'];
2640
- /** Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface). */
2708
+ /** 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). */
2641
2709
  'background'?: NLDDSimpleSection['background'];
2642
2710
  /** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
2643
2711
  'height'?: NLDDSimpleSection['height'];
@@ -2724,6 +2792,20 @@ declare module 'vue' {
2724
2792
  'width'?: NLDDSplitButton['width'];
2725
2793
  /** Button text for the primary action */
2726
2794
  'text'?: NLDDSplitButton['text'];
2795
+ /** Keyboard shortcut hint for the primary action, shown right after its text, e.g. 'Cmd+S'. Forwarded to the inner nldd-button; display only, wire up the handling in your app. */
2796
+ 'shortcut'?: NLDDSplitButton['shortcut'];
2797
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
2798
+ 'shortcut-mac'?: NLDDSplitButton['shortcutMac'];
2799
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
2800
+ 'shortcutMac'?: NLDDSplitButton['shortcutMac'];
2801
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
2802
+ 'shortcut-windows'?: NLDDSplitButton['shortcutWindows'];
2803
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
2804
+ 'shortcutWindows'?: NLDDSplitButton['shortcutWindows'];
2805
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
2806
+ 'shortcut-linux'?: NLDDSplitButton['shortcutLinux'];
2807
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
2808
+ 'shortcutLinux'?: NLDDSplitButton['shortcutLinux'];
2727
2809
  /** Icon name shown before the text on the primary action button */
2728
2810
  'icon'?: NLDDSplitButton['icon'];
2729
2811
  /** Translations; unset keys fall back to Dutch */
@@ -2883,6 +2965,8 @@ declare module 'vue' {
2883
2965
  'noTab'?: NLDDSwitch['noTab'];
2884
2966
  /** Switch size: 'xs' | 'sm' (default: 'sm') */
2885
2967
  'size'?: NLDDSwitch['size'];
2968
+ /** '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. */
2969
+ 'color'?: NLDDSwitch['color'];
2886
2970
  /** Accessible label forwarded as aria-label to the native input. Required when using nldd-switch without nldd-switch-field. */
2887
2971
  'accessible-label'?: NLDDSwitch['accessibleLabel'];
2888
2972
  /** Accessible label forwarded as aria-label to the native input. Required when using nldd-switch without nldd-switch-field. */
@@ -2909,6 +2993,8 @@ declare module 'vue' {
2909
2993
  'value'?: NLDDSwitchField['value'];
2910
2994
  /** Name for form submission */
2911
2995
  'name'?: NLDDSwitchField['name'];
2996
+ /** '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. */
2997
+ 'color'?: NLDDSwitchField['color'];
2912
2998
  /** Label text for the switch */
2913
2999
  'label'?: NLDDSwitchField['label'];
2914
3000
  /** Required state */
@@ -3394,6 +3480,20 @@ declare module 'vue' {
3394
3480
  'accessible-label'?: NLDDToggleButton['accessibleLabel'];
3395
3481
  /** Accessible label; required for icon-only usage */
3396
3482
  'accessibleLabel'?: NLDDToggleButton['accessibleLabel'];
3483
+ /** Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name ("Vet Cmd B"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. */
3484
+ 'shortcut'?: NLDDToggleButton['shortcut'];
3485
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
3486
+ 'shortcut-mac'?: NLDDToggleButton['shortcutMac'];
3487
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
3488
+ 'shortcutMac'?: NLDDToggleButton['shortcutMac'];
3489
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
3490
+ 'shortcut-windows'?: NLDDToggleButton['shortcutWindows'];
3491
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
3492
+ 'shortcutWindows'?: NLDDToggleButton['shortcutWindows'];
3493
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
3494
+ 'shortcut-linux'?: NLDDToggleButton['shortcutLinux'];
3495
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
3496
+ 'shortcutLinux'?: NLDDToggleButton['shortcutLinux'];
3397
3497
  /** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
3398
3498
  'invalid'?: NLDDToggleButton['invalid'];
3399
3499
  /** Set by nldd-form-field. A consumer never writes this. */
@@ -3571,6 +3671,20 @@ declare module 'vue' {
3571
3671
  type NLDDTooltipProps = {
3572
3672
  /** Tooltip text */
3573
3673
  'text'?: NLDDTooltip['text'];
3674
+ /** Keyboard shortcut hint shown after the text, e.g. 'Cmd+P'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key. Joins the description of a light-DOM trigger. Hidden on touch-only devices, where it isn't invokable. */
3675
+ 'shortcut'?: NLDDTooltip['shortcut'];
3676
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
3677
+ 'shortcut-mac'?: NLDDTooltip['shortcutMac'];
3678
+ /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
3679
+ 'shortcutMac'?: NLDDTooltip['shortcutMac'];
3680
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
3681
+ 'shortcut-windows'?: NLDDTooltip['shortcutWindows'];
3682
+ /** Override of `shortcut` on Windows (falls back to `shortcut`). */
3683
+ 'shortcutWindows'?: NLDDTooltip['shortcutWindows'];
3684
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
3685
+ 'shortcut-linux'?: NLDDTooltip['shortcutLinux'];
3686
+ /** Override of `shortcut` on Linux (falls back to `shortcut`). */
3687
+ 'shortcutLinux'?: NLDDTooltip['shortcutLinux'];
3574
3688
  /** Forces the tooltip visible, whatever hover or focus does. Use it for programmatic feedback ("Copied", for instance). Reset it to false to restore the hover behavior. */
3575
3689
  'open'?: NLDDTooltip['open'];
3576
3690
  /** Position: 'top' | 'bottom' | 'left' | 'right' (default: 'bottom'; automatically 'top' on touch devices) */
@@ -3667,7 +3781,7 @@ declare module 'vue' {
3667
3781
  'vertical-alignment'?: NLDDTwoThirdsOneThirdSection['verticalAlignment'];
3668
3782
  /** Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other. */
3669
3783
  'verticalAlignment'?: NLDDTwoThirdsOneThirdSection['verticalAlignment'];
3670
- /** Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface). */
3784
+ /** 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). */
3671
3785
  'background'?: NLDDTwoThirdsOneThirdSection['background'];
3672
3786
  /** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
3673
3787
  'height'?: NLDDTwoThirdsOneThirdSection['height'];
@@ -3778,7 +3892,7 @@ declare module 'vue' {
3778
3892
  };
3779
3893
 
3780
3894
  export interface GlobalComponents {
3781
- /** Layout placeholder that fills its parent and centers an indeterminate activity indicator. By default the indicator is held back for 1000ms so brief loading states don't flash; once the delay passes it fades in. Set `timing="instant"` to skip the delay (the fade-in still plays) — this is what embedding components such as `nldd-button` use for their loading state. The default indicator is a simple icon-sized circle that follows the shared `--context-content-color` channel (set by list-item / table / menu on their content), falling back to `currentColor` wherever that channel is unset (buttons, rich-text, standalone) — so a spinner inside a cell tracks the row's state-aware content color, while embedders relying on currentColor are unaffected. An optional label sits below (hidden unless `show-text` is set). Drop a `<nldd-progress-circle>`, `<nldd-progress-bar>` or any element in the `indicator` slot to override it. Icon alignment: the visible ring already sits at 5/6 of its box (the SVG's r=9 plus a 2-unit stroke in a 24 view-box, the same optical inset a filled icon glyph has), so a standalone spinner lines up with an icon or an `icon-aligned` `nldd-avatar` on the same grid — no extra option needed (unlike `nldd-avatar`, which fills edge-to-edge and opts in via `icon-aligned`). Overlay mode: put content in the default slot and the indicator wraps it — it becomes a `position: relative` container, renders the spinner over a dimming backdrop (opt out with `no-backdrop`), and makes the content `inert` so its controls can't be focused or clicked. Toggle loading with `complete` (`?complete=${!isLoading}`). With no slotted content it stays the standalone placeholder described above. Reconnect behavior: every `connectedCallback` resets the timer and hides the indicator again. If a consumer toggles the element via a conditional render (remove + re-insert) the indicator disappears and re-fades after another delay. Keep the element mounted and toggle visibility / `hidden` instead if you want the timer to run only once. Accessibility: while connected and not `complete` the host is a polite live region (`role="status"`). The label (`text`, or the translated "Laden" fallback) always renders as the region's content — visually hidden when `show-text` is off (the default) — so assistive tech announces the loading state when the indicator appears. Set `complete` (or unmount) to clear it. */
3895
+ /** Layout placeholder that fills its parent and centers an indeterminate activity indicator. By default the indicator is held back for 1000ms so brief loading states don't flash; once the delay passes it fades in. Set `timing="instant"` to skip the delay (the fade-in still plays) — this is what embedding components such as `nldd-button` use for their loading state. Sizing: fills its parent where the parent lets it (a flex column such as `nldd-container`, a grid, or a fixed height) and centers itself there. Where the parent has no height of its own, give it one: a `min-height` matching the content you expect, such as `<nldd-container min-height="240px">`. As a safety net the host already takes the indicator's size (circle, plus the label with `show-text`) during the delay, so nothing shifts when it fades in; once `complete` is set it gives that space up. Label size follows `size`, not the surrounding text, so the circle and its label keep the same proportion everywhere: body-xs at 16 and 20, body-sm at 24 and 28, body-md from 32. Keep the label short; a longer explanation belongs in the area as regular text. The default indicator is a simple icon-sized circle that follows the shared `--context-content-color` channel (set by list-item / table / menu on their content), falling back to `currentColor` wherever that channel is unset (buttons, rich-text, standalone) — so a spinner inside a cell tracks the row's state-aware content color, while embedders relying on currentColor are unaffected. An optional label sits below (hidden unless `show-text` is set). The indicator is always indeterminate; when you know the progress, show `nldd-progress-bar` or `nldd-progress-circle` instead. Icon alignment: the visible ring already sits at 5/6 of its box (the SVG's r=9 plus a 2-unit stroke in a 24 view-box, the same optical inset a filled icon glyph has), so a standalone spinner lines up with an icon or an `icon-aligned` `nldd-avatar` on the same grid — no extra option needed (unlike `nldd-avatar`, which fills edge-to-edge and opts in via `icon-aligned`). Overlay mode: put content in the default slot and the indicator wraps it — it becomes a `position: relative` container, renders the spinner over a dimming backdrop (opt out with `no-backdrop`), and makes the content `inert` so its controls can't be focused or clicked. Toggle loading with `complete` (`?complete=${!isLoading}`). With no slotted content it stays the standalone placeholder described above. Reconnect behavior: every `connectedCallback` resets the timer and hides the indicator again. If a consumer toggles the element via a conditional render (remove + re-insert) the indicator disappears and re-fades after another delay. Keep the element mounted and toggle visibility / `hidden` instead if you want the timer to run only once. Accessibility: while connected and not `complete` the host is a polite live region (`role="status"`). The label (`text`, or the translated "Laden" fallback) always renders as the region's content — visually hidden when `show-text` is off (the default) — so assistive tech announces the loading state when the indicator appears. Set `complete` (or unmount) to clear it. */
3782
3896
  'nldd-activity-indicator': DefineComponent<NLDDActivityIndicatorProps>;
3783
3897
  /** Shows one person or organization as a compact, round (person) or rounded (organization) representation. The content follows a fixed fallback chain: an image when `src` loads, otherwise the initials (from `initials` or derived from `name`), and otherwise a fallback icon. `type` sets both the shape and the fallback icon: `person` gives a circle with a person icon, `organization` a rounded square with a building icon. The shape belongs to the meaning and cannot be set on its own. Override the fallback icon with `icon` where that helps. Without `size` the avatar scales with its container, like `nldd-icon`; a fixed size (the same spacer-aligned scale, 16 through 96) is the exception. The initials and the icon scale along. Wide initials (WW, MMM) are scaled down automatically so they stay inside the shape. Accessibility: the host element carries the meaning. With a `name` (and without `decorative`) it gets `role="img"` with the name as its label. When the name already stands beside it as text, in an identity for instance, set `decorative` so the avatar stays hidden from assistive software. A dead `src` falls back to the initials or the icon, never to a broken-image icon. */
3784
3898
  'nldd-avatar': DefineComponent<NLDDAvatarProps>;
@@ -3808,6 +3922,7 @@ declare module 'vue' {
3808
3922
  'nldd-card': DefineComponent<NLDDCardProps>;
3809
3923
  /** A generic cell for wrapping arbitrary content in a list item. Controls vertical alignment and sizing without imposing content opinions. For more than a line of text, such as paragraphs or markup, put an `nldd-rich-text` in it rather than loose text in the row. `vertical-alignment="center"` (default) stretches the cell to fill the full row height and centers its content within that space. Use `min-height` to set a minimum centered region. For strict top alignment without a minimum height, use `vertical-alignment="top"`. */
3810
3924
  'nldd-cell': DefineComponent<NLDDCellProps>;
3925
+ /** 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. */
3811
3926
  'nldd-checkbox': DefineComponent<NLDDCheckboxProps>;
3812
3927
  /** A checkbox with an inline label for use in forms. Form-associated: participates in native form submission under `name` with `value` when checked (the inner nldd-checkbox sits in the shadow root and never joins the consumer's form; the field submits on its behalf). */
3813
3928
  'nldd-checkbox-field': DefineComponent<NLDDCheckboxFieldProps>;
@@ -3815,7 +3930,7 @@ declare module 'vue' {
3815
3930
  'nldd-code-editor': DefineComponent<NLDDCodeEditorProps>;
3816
3931
  /** A read-only block of code/text built on a non-editable CodeMirror 6 view. Visually pairs with nldd-code-editor (same engine, same token palette). Whitespace is preserved; long lines scroll horizontally by default. Set `wrap` to break long lines onto the next visual line. The viewer grows with its content. Set `max-height` to show a long file in a frame of its own: the block grows up to that height and scrolls beyond it. A scroller that overflows, in either direction, is a tab stop with a role and a name, so the keyboard reaches what a pointer can scroll to. Set `language` to one of the supported grammars (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python) to highlight the content. Without `language` the content renders plain. Grammars are loaded lazily on first use, so a page that never sets `language` ships zero grammar code. Token colors are the `--semantics-code-syntax-*` custom properties (shared with the editor via the CodeMirror highlight style). Override them per-instance to swap the theme. */
3817
3932
  'nldd-code-viewer': DefineComponent<NLDDCodeViewerProps>;
3818
- /** 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. */
3933
+ /** 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. */
3819
3934
  'nldd-collection': DefineComponent<NLDDCollectionProps>;
3820
3935
  /** A text input with autocomplete dropdown via nldd-menu. Add a slotted nldd-menu with nldd-menu-item children to provide options. The slotted nldd-menu keeps its default focus behavior (menu container receives focus) so that typing keeps focus on the input. The picker button moves focus to the menu explicitly on activation. Note: Only nldd-menu-item type="button" is supported. Radio and checkbox types are not supported in this context. */
3821
3936
  'nldd-combo-box': DefineComponent<NLDDComboBoxProps>;
@@ -3849,7 +3964,7 @@ declare module 'vue' {
3849
3964
  'nldd-form-section': DefineComponent<NLDDFormSectionProps>;
3850
3965
  /** A section that spans the full width without horizontal padding. Useful for background colors, images, or other content that runs edge to edge. Vertical padding and gap adjust via container queries. */
3851
3966
  'nldd-full-bleed-section': DefineComponent<NLDDFullBleedSectionProps>;
3852
- /** 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. */
3967
+ /** 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. */
3853
3968
  'nldd-hero': DefineComponent<NLDDHeroProps>;
3854
3969
  /** A customizable icon component that renders SVG icons from a predefined library. Icons are decorative by default: the host gets `aria-hidden="true"` automatically. If you want the icon to be announced by assistive tech, set `aria-hidden="false"` on the consumer side together with an `aria-label`. Sizing: the icon fills whatever sizes it — an `nldd-icon-cell`, a button, a menu item. `size="full"` names that default explicitly. `size="inherit"` makes it follow the surrounding text (1em), for an icon set inline in a sentence. Any spacer-aligned number (16–96) pins a fixed dimension. Reach for `inherit` rather than a global `nldd-icon { width: 1em }` rule in the consumer: such a rule wins over the component's own :host styling and so also shrinks the icons that a cell or button was already sizing correctly. Color: by default the icon inherits its parent's `color`. Set `color` to one of the functional semantics (`primary-content`, `secondary-content`, `accent`, `critical`, `warning`, `success`) or a rijkskleur (`lintblauw`, `paars`, `groen`, …). For a color the system cannot know — the jacket of a cable, a color someone picked — set `custom-color` to any CSS color. */
3855
3970
  'nldd-icon': DefineComponent<NLDDIconProps>;
@@ -3919,7 +4034,7 @@ declare module 'vue' {
3919
4034
  /** Exports both NLDDProgressCircle and NLDDProgressCircleSegmentIndicator. A circular progress indicator that mirrors the API of nldd-progress-bar: single-value or multi-segment, progress or distribution variant, 24 colors, fade transitions between determinate/indeterminate, indeterminate indicator. Visual differences vs the bar: - SVG arcs instead of rectangular bars. - Label below the circle (not above). - No center text; the consumer can wrap the circle if needed. - One combined tooltip on the whole circle showing all segment info (no per-segment tooltips). - Indeterminate uses a rotating elastic arc (Material-style) instead of the bar's Knight Rider scanner. */
3920
4035
  'nldd-progress-circle': DefineComponent<NLDDProgressCircleProps>;
3921
4036
  'nldd-progress-circle-segment-indicator': DefineComponent<NLDDProgressCircleSegmentIndicatorProps>;
3922
- /** 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> */
4037
+ /** 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. */
3923
4038
  'nldd-radio-button': DefineComponent<NLDDRadioButtonProps>;
3924
4039
  /** A radio button with an inline label. Use inside nldd-radio-button-group, which sets the name and labels the group. Fields that stand on their own group by name, the way native radios do: checking one unchecks the others, the arrow keys move between them and Tab stops at the group once. Put them in a container with role="radiogroup", or a screen reader has nothing to count them from. The field is the radio: it carries the role, the state, the label it is announced by and the focus, and the nldd-radio-button inside only draws the shape. A radio of its own in there would be a second control inside a control, and a group of one to count. Form-associated: the checked field submits its `value` under `name`. Unchecking siblings is the group's job, so exactly one value per group reaches the form. */
3925
4040
  'nldd-radio-button-field': DefineComponent<NLDDRadioButtonFieldProps>;
@@ -3966,7 +4081,7 @@ declare module 'vue' {
3966
4081
  'nldd-step-cell': DefineComponent<NLDDStepCellProps>;
3967
4082
  /** A numeric control with increment and decrement buttons. */
3968
4083
  'nldd-stepper': DefineComponent<NLDDStepperProps>;
3969
- /** 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. */
4084
+ /** 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. */
3970
4085
  'nldd-switch': DefineComponent<NLDDSwitchProps>;
3971
4086
  /** A switch toggle with an inline label for use in forms. */
3972
4087
  'nldd-switch-field': DefineComponent<NLDDSwitchFieldProps>;
@@ -41,7 +41,7 @@ const baseTheme = EditorView.theme({
41
41
  // equal specificity — otherwise CM's light base theme paints the focused
42
42
  // selection lavender, unreadable on a dark surface.
43
43
  '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
44
- backgroundColor: 'light-dark(var(--primitives-color-accent-150), var(--primitives-color-accent-250))',
44
+ backgroundColor: 'var(--semantics-text-selection-background-color)',
45
45
  },
46
46
  '.cm-gutters': {
47
47
  border: 'none',
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/utilities/codemirror/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,IAAI,IAAI,CAAC,EAAE,MAAM,kBAAkB,CAAC;AAG7C;;;;mEAImE;AACnE,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC;IAClC,GAAG,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,gCAAgC;QACvC,eAAe,EAAE,aAAa;KAC9B;IACD,cAAc,EAAE;QACf,gEAAgE;QAChE,OAAO,EAAE,MAAM;KACf;IACD,cAAc,EAAE;QACf,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,QAAQ,EAAE,MAAM;KAChB;IACD,aAAa,EAAE;QACd,OAAO,EAAE,GAAG;QACZ,UAAU,EAAE,gCAAgC;KAC5C;IACD,UAAU,EAAE;QACX,OAAO,EAAE,GAAG;KACZ;IACD,4BAA4B,EAAE;QAC7B,eAAe,EAAE,gCAAgC;KACjD;IACD,iBAAiB,EAAE;QAClB,KAAK,EAAE,iDAAiD;KACxD;IACD,yEAAyE;IACzE,8EAA8E;IAC9E,yEAAyE;IACzE,8EAA8E;IAC9E,yEAAyE;IACzE,oDAAoD;IACpD,4HAA4H,EAAE;QAC7H,eAAe,EAAE,oFAAoF;KACrG;IACD,aAAa,EAAE;QACd,MAAM,EAAE,MAAM;QACd,eAAe,EAAE,aAAa;QAC9B,KAAK,EAAE,iDAAiD;KACxD;IACD,6EAA6E;IAC7E,mCAAmC,EAAE;QACpC,OAAO,EAAE,0DAA0D;KACnE;IACD,sCAAsC,EAAE;QACvC,eAAe,EAAE,aAAa;KAC9B;CACD,CAAC,CAAC;AAEH;sEACsE;AACtE,MAAM,cAAc,GAAG,cAA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6C,EAAE;IACzE,EAAE,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,wCAAwC,EAAE;IACnE,EAAE,GAAG,EAAE,CAAC,CAAC,cAAc,EAAE,KAAK,EAAE,+CAA+C,EAAE;IACjF,EAAE,GAAG,EAAE,CAAC,CAAC,YAAY,EAAE,KAAK,EAAE,6CAA6C,EAAE;IAC7E,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,6CAA6C,EAAE;IACvH,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,0CAA0C,EAAE;IACpE,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,wCAAwC,EAAE;IAC/D,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE;IACrC,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;CACxC,CAAC,CAAC;AAEH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,mBAAmB,GAAc,CAAC,SAAS,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from 'lit';
2
2
  type Constructor<T = LitElement> = new (...args: any[]) => T;
3
- export type PageSectionBackground = 'inherit' | 'base' | 'tinted';
3
+ export type PageSectionBackground = 'inherit' | 'base' | 'tinted' | 'accent-tinted';
4
4
  export type PageSectionPadding = '0' | '2' | '4' | '6' | '8' | '10' | '12' | '16' | '20' | '24' | '28' | '32' | '40' | '44' | '48' | '56' | '64' | '80' | '96';
5
5
  /**
6
6
  * Shared surface controls for the page-section components. Adds three
@@ -10,8 +10,9 @@ export type PageSectionPadding = '0' | '2' | '4' | '6' | '8' | '10' | '12' | '16
10
10
  * element and slotted content):
11
11
  *
12
12
  * - **background**: `inherit` (the default — transparent, shows the ancestor's
13
- * surface) | `base` (the base surface color) | `tinted`. Setting
14
- * `base`/`tinted` also cascades `--context-parent-background-color` so
13
+ * surface) | `base` (the base surface color) | `tinted` | `accent-tinted`
14
+ * (a tint of the theme's accent, with the contrast of `tinted`). Setting
15
+ * one of those also cascades `--context-parent-background-color` so
15
16
  * descendants (cards, nested sections) read the same surface.
16
17
  * - **block padding**: `padding-block` (both edges) with `padding-top`
17
18
  * / `padding-bottom` per-edge overrides, each with responsive `sm-` /
@@ -1 +1 @@
1
- {"version":3,"file":"page-section-mixin.d.ts","sourceRoot":"","sources":["../../src/utilities/page-section-mixin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AAGtD,KAAK,WAAW,CAAC,CAAC,GAAG,UAAU,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAC3B,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAC9D,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAyBhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,SAAS,WAAW,CAAC,UAAU,CAAC,EACrE,IAAI,EAAE,KAAK,GAoG0B,KAAK,GACzC,WAAW,CACV,UAAU,GAAG;IACZ,UAAU,EAAE,qBAAqB,CAAC;IAClC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,UAAU,CAAC,EAAE,kBAAkB,CAAC;I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EAAE,KAAK,GAoG0B,KAAK,GACzC,WAAW,CACV,UAAU,GAAG;IACZ,UAAU,EAAE,qBAAqB,CAAC;IAClC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC9B,CACD,CACF"}
@@ -9,6 +9,7 @@ import { reflectNonDefault } from './reflect-non-default.js';
9
9
  const BACKGROUND_TOKEN = {
10
10
  base: 'var(--semantics-surfaces-base-background-color)',
11
11
  tinted: 'var(--semantics-surfaces-tinted-background-color)',
12
+ 'accent-tinted': 'var(--semantics-surfaces-accent-tinted-background-color)',
12
13
  };
13
14
  function paddingToValue(size) {
14
15
  if (size === undefined || size === '')
@@ -36,8 +37,9 @@ const PADDING_KEYS = [
36
37
  * element and slotted content):
37
38
  *
38
39
  * - **background**: `inherit` (the default — transparent, shows the ancestor's
39
- * surface) | `base` (the base surface color) | `tinted`. Setting
40
- * `base`/`tinted` also cascades `--context-parent-background-color` so
40
+ * surface) | `base` (the base surface color) | `tinted` | `accent-tinted`
41
+ * (a tint of the theme's accent, with the contrast of `tinted`). Setting
42
+ * one of those also cascades `--context-parent-background-color` so
41
43
  * descendants (cards, nested sections) read the same surface.
42
44
  * - **block padding**: `padding-block` (both edges) with `padding-top`
43
45
  * / `padding-bottom` per-edge overrides, each with responsive `sm-` /
@@ -84,8 +86,8 @@ export function PageSectionMixin(Base) {
84
86
  wrapper.hidden = slot.assignedElements().length === 0;
85
87
  }
86
88
  _applyBackground() {
87
- if (this.background === 'base' || this.background === 'tinted') {
88
- const token = BACKGROUND_TOKEN[this.background];
89
+ const token = this.background === 'inherit' ? undefined : BACKGROUND_TOKEN[this.background];
90
+ if (token) {
89
91
  this.style.backgroundColor = token;
90
92
  // Cascade so descendants (cards, nested sections) match.
91
93
  this.style.setProperty('--context-parent-background-color', token);
@@ -1 +1 @@
1
- {"version":3,"file":"page-section-mixin.js","sourceRoot":"","sources":["../../src/utilities/page-section-mixin.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAS7D,MAAM,gBAAgB,GAAsC;IAC3D,IAAI,EAAE,iDAAiD;IACvD,MAAM,EAAE,mDAAmD;CAC3D,CAAC;AAEF,SAAS,cAAc,CAAC,IAAwB;IAC/C,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IACnD,IAAI,IAAI,KAAK,GAAG;QAAE,OAAO,GAAG,CAAC;IAC7B,OAAO,0BAA0B,IAAI,GAAG,CAAC;AAC1C,CAAC;AAED,4EAA4E;AAC5E,qIAAqI;AACrI,4EAA4E;AAC5E,2EAA2E;AAC3E,MAAM,cAAc,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACvD,MAAM,YAAY,GAAG;IACpB,cAAc,EAAE,YAAY,EAAE,eAAe;IAC7C,gBAAgB,EAAE,cAAc,EAAE,iBAAiB;IACnD,gBAAgB,EAAE,cAAc,EAAE,iBAAiB;IACnD,gBAAgB,EA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AGrC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;2DACrC;IAEpC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;yDACrC;IAElC;QADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;4DACrC;IA8DtC,OAAO,eAoBL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { ReactiveController, ReactiveControllerHost } from 'lit';
2
+ import type { OS } from './os.js';
3
+ /**
4
+ * The shortcut hint attributes that nldd-menu-item, nldd-tooltip, nldd-button,
5
+ * nldd-icon-button, nldd-toggle-button, nldd-segmented-control-item,
6
+ * nldd-split-button and nldd-search-field share: `shortcut` plus a per-OS
7
+ * override. Display only; the application binds the key.
8
+ */
9
+ export interface ShortcutHint {
10
+ shortcut: string;
11
+ shortcutMac: string;
12
+ shortcutWindows: string;
13
+ shortcutLinux: string;
14
+ }
15
+ export interface KeysPerOS {
16
+ keys: string;
17
+ macKeys: string;
18
+ windowsKeys: string;
19
+ linuxKeys: string;
20
+ }
21
+ export declare function hasShortcut(hint: ShortcutHint): boolean;
22
+ /** The key spec for this OS, with `keys` as the fallback. */
23
+ export declare function resolveKeys(spec: KeysPerOS, os: OS): string;
24
+ /** Splits 'Ctrl+Shift+P' into keys; a trailing '++' ('Ctrl++') or '+++' is a literal '+' key. */
25
+ export declare function parseKeys(spec: string): string[];
26
+ /** Whether a keyboard shortcut can be used on this device, so a hint for it is worth showing. */
27
+ export declare function shortcutsAvailable(): boolean;
28
+ /**
29
+ * Renders the host again when shortcuts become available or unavailable, such
30
+ * as when a pointer is attached or removed, so a shortcut in its accessible
31
+ * name follows the visible hint. Pass `onChange` for work that a render does
32
+ * not redo.
33
+ */
34
+ export declare class ShortcutAvailabilityController implements ReactiveController {
35
+ private _query;
36
+ private _onChange;
37
+ constructor(host: ReactiveControllerHost, onChange?: () => void);
38
+ private _handleChange;
39
+ hostConnected(): void;
40
+ hostDisconnected(): void;
41
+ }
42
+ /**
43
+ * The shortcut as words for an accessible name ("Ctrl Z"), matching how
44
+ * nldd-menu-item is announced. Empty without a shortcut, and where
45
+ * shortcutsAvailable() says the key cannot be pressed, as the hint is hidden
46
+ * there too. Read when the component renders; ShortcutAvailabilityController
47
+ * renders it again when that changes.
48
+ */
49
+ export declare function shortcutLabel(hint: ShortcutHint): string;
50
+ //# sourceMappingURL=shortcut.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shortcut.d.ts","sourceRoot":"","sources":["../../src/utilities/shortcut.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAEtE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAElC;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAEvD;AAED,6DAA6D;AAC7D,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,CAK3D;AAED,iGAAiG;AACjG,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAYhD;AAOD,iGAAiG;AACjG,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED;;;;;GAKG;AACH,qBAAa,8BAA+B,YAAW,kBAAkB;IACxE,OAAO,CAAC,MAAM,CAA4E;IAC1F,OAAO,CAAC,SAAS,CAAa;gBAElB,IAAI,EAAE,sBAAsB,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI;IAK/D,OAAO,CAAC,aAAa,CAA0B;IAE/C,aAAa,IAAI,IAAI;IAIrB,gBAAgB,IAAI,IAAI;CAGxB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CASxD"}