@nldd/design-system 0.8.99 → 0.9.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 (222) hide show
  1. package/custom-elements.json +484 -40
  2. package/dist/components/actions/button/button.d.ts +7 -5
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.i18n.d.ts +3 -1
  5. package/dist/components/actions/button/button.i18n.d.ts.map +1 -1
  6. package/dist/components/actions/button/button.i18n.js +3 -1
  7. package/dist/components/actions/button/button.i18n.js.map +1 -1
  8. package/dist/components/actions/button/button.js +3 -3
  9. package/dist/components/actions/button/button.styles.js +2 -2
  10. package/dist/components/actions/button/button.template.d.ts.map +1 -1
  11. package/dist/components/actions/button/button.template.js +9 -10
  12. package/dist/components/actions/button/button.template.js.map +1 -1
  13. package/dist/components/actions/icon-button/icon-button.d.ts +7 -5
  14. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  15. package/dist/components/actions/icon-button/icon-button.i18n.d.ts +3 -1
  16. package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -1
  17. package/dist/components/actions/icon-button/icon-button.i18n.js +3 -1
  18. package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -1
  19. package/dist/components/actions/icon-button/icon-button.js +3 -3
  20. package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
  21. package/dist/components/actions/icon-button/icon-button.template.js +7 -7
  22. package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
  23. package/dist/components/actions/menu/menu.d.ts +9 -0
  24. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  25. package/dist/components/actions/menu/menu.js +18 -1
  26. package/dist/components/actions/menu/menu.js.map +1 -1
  27. package/dist/components/actions/split-button/split-button.d.ts +1 -1
  28. package/dist/components/actions/split-button/split-button.js +1 -1
  29. package/dist/components/actions/toolbar/toolbar.d.ts +1 -1
  30. package/dist/components/actions/toolbar/toolbar.i18n.d.ts +3 -1
  31. package/dist/components/actions/toolbar/toolbar.i18n.d.ts.map +1 -1
  32. package/dist/components/actions/toolbar/toolbar.i18n.js +3 -1
  33. package/dist/components/actions/toolbar/toolbar.i18n.js.map +1 -1
  34. package/dist/components/actions/toolbar/toolbar.js +1 -1
  35. package/dist/components/actions/toolbar/toolbar.styles.js +1 -1
  36. package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
  37. package/dist/components/actions/toolbar/toolbar.template.js +4 -2
  38. package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
  39. package/dist/components/components.js +1014 -296
  40. package/dist/components/content/avatar/avatar.d.ts +5 -3
  41. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  42. package/dist/components/content/avatar/avatar.i18n.d.ts +3 -1
  43. package/dist/components/content/avatar/avatar.i18n.d.ts.map +1 -1
  44. package/dist/components/content/avatar/avatar.i18n.js +3 -1
  45. package/dist/components/content/avatar/avatar.i18n.js.map +1 -1
  46. package/dist/components/content/avatar/avatar.js +1 -1
  47. package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
  48. package/dist/components/content/avatar/avatar.template.js +6 -6
  49. package/dist/components/content/avatar/avatar.template.js.map +1 -1
  50. package/dist/components/content/text/text.d.ts +1 -1
  51. package/dist/components/content/text/text.js +1 -1
  52. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  53. package/dist/components/content/text/text.styles.js +55 -0
  54. package/dist/components/content/text/text.styles.js.map +1 -1
  55. package/dist/components/content/title/title.d.ts +16 -1
  56. package/dist/components/content/title/title.d.ts.map +1 -1
  57. package/dist/components/content/title/title.js +109 -0
  58. package/dist/components/content/title/title.js.map +1 -1
  59. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  60. package/dist/components/content/title/title.styles.js +39 -0
  61. package/dist/components/content/title/title.styles.js.map +1 -1
  62. package/dist/components/content/token/token.d.ts +1 -1
  63. package/dist/components/content/token/token.js +1 -1
  64. package/dist/components/{icon-button-CJIikwyu.js → icon-button-BVhiOwX9.js} +12 -7
  65. package/dist/components/inputs/dropdown/dropdown.d.ts +6 -0
  66. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  67. package/dist/components/inputs/dropdown/dropdown.js +6 -0
  68. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  69. package/dist/components/layout/card/card.d.ts +6 -4
  70. package/dist/components/layout/card/card.d.ts.map +1 -1
  71. package/dist/components/layout/card/card.i18n.d.ts +3 -1
  72. package/dist/components/layout/card/card.i18n.d.ts.map +1 -1
  73. package/dist/components/layout/card/card.i18n.js +3 -1
  74. package/dist/components/layout/card/card.i18n.js.map +1 -1
  75. package/dist/components/layout/card/card.js +2 -2
  76. package/dist/components/layout/card/card.template.d.ts.map +1 -1
  77. package/dist/components/layout/card/card.template.js +6 -6
  78. package/dist/components/layout/card/card.template.js.map +1 -1
  79. package/dist/components/layout/collection/collection.d.ts +16 -5
  80. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  81. package/dist/components/layout/collection/collection.js +44 -10
  82. package/dist/components/layout/collection/collection.js.map +1 -1
  83. package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
  84. package/dist/components/layout/collection/collection.styles.js +7 -6
  85. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  86. package/dist/components/layout/container/container.d.ts +1 -1
  87. package/dist/components/layout/container/container.js +1 -1
  88. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  89. package/dist/components/layout/container/container.styles.js +4 -0
  90. package/dist/components/layout/container/container.styles.js.map +1 -1
  91. package/dist/components/layout/page-sections/hero/hero-corner.d.ts +29 -0
  92. package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -0
  93. package/dist/components/layout/page-sections/hero/hero-corner.js +131 -0
  94. package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -0
  95. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts +2 -0
  96. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -0
  97. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +139 -0
  98. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -0
  99. package/dist/components/layout/page-sections/hero/hero.d.ts +13 -5
  100. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  101. package/dist/components/layout/page-sections/hero/hero.js +42 -6
  102. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  103. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +16 -0
  104. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  105. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +61 -1
  106. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  107. package/dist/components/layout/window/window.d.ts +1 -1
  108. package/dist/components/layout/window/window.js +1 -1
  109. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +5 -0
  110. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
  111. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +25 -0
  112. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
  113. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
  114. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +28 -7
  115. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
  116. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -1
  117. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js +8 -4
  118. package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -1
  119. package/dist/components/lists-and-tables/list/list.d.ts +5 -2
  120. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  121. package/dist/components/lists-and-tables/list/list.js +9 -4
  122. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  123. package/dist/components/lists-and-tables/list-item/list-item.d.ts +12 -5
  124. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  125. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts +3 -1
  126. package/dist/components/lists-and-tables/list-item/list-item.i18n.d.ts.map +1 -1
  127. package/dist/components/lists-and-tables/list-item/list-item.i18n.js +3 -1
  128. package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
  129. package/dist/components/lists-and-tables/list-item/list-item.js +15 -7
  130. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  131. package/dist/components/lists-and-tables/list-item/list-item.styles.js +1 -1
  132. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
  133. package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
  134. package/dist/components/lists-and-tables/list-item/list-item.template.js +9 -2
  135. package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
  136. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -2
  137. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  138. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts +7 -0
  139. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.d.ts.map +1 -0
  140. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js +6 -0
  141. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.i18n.js.map +1 -0
  142. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +7 -3
  143. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  144. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
  145. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +12 -0
  146. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
  147. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
  148. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
  149. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +6 -3
  150. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
  151. package/dist/components/lists-and-tables/table/table.d.ts +8 -5
  152. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  153. package/dist/components/lists-and-tables/table/table.js +19 -10
  154. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  155. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  156. package/dist/components/lists-and-tables/table/table.styles.js +4 -0
  157. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  158. package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
  159. package/dist/components/lists-and-tables/table/table.template.js +5 -1
  160. package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
  161. package/dist/components/navigation/link/link.d.ts +7 -5
  162. package/dist/components/navigation/link/link.d.ts.map +1 -1
  163. package/dist/components/navigation/link/link.i18n.d.ts +3 -1
  164. package/dist/components/navigation/link/link.i18n.d.ts.map +1 -1
  165. package/dist/components/navigation/link/link.i18n.js +3 -1
  166. package/dist/components/navigation/link/link.i18n.js.map +1 -1
  167. package/dist/components/navigation/link/link.js +3 -3
  168. package/dist/components/navigation/link/link.styles.js +2 -2
  169. package/dist/components/navigation/link/link.template.d.ts.map +1 -1
  170. package/dist/components/navigation/link/link.template.js +7 -8
  171. package/dist/components/navigation/link/link.template.js.map +1 -1
  172. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +4 -1
  173. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  174. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +11 -1
  175. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  176. package/dist/components/navigation/pagination/pagination.d.ts +1 -1
  177. package/dist/components/navigation/pagination/pagination.js +1 -1
  178. package/dist/components/navigation/skip-link/skip-link.d.ts +1 -14
  179. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  180. package/dist/components/navigation/skip-link/skip-link.js +7 -55
  181. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  182. package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -1
  183. package/dist/components/navigation/tab-bar/tab-bar.js +1 -1
  184. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  185. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +6 -3
  186. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  187. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +11 -1
  188. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  189. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +21 -1
  190. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  191. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
  192. package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
  193. package/dist/components/{with-translations-C8_0-9y8.js → with-translations-C6QfP6_S.js} +24 -1
  194. package/dist/css/rich-text.css +1 -1
  195. package/dist/css/variables.css +1 -0
  196. package/dist/nldd.min.js +962 -683
  197. package/dist/translations/en-US.d.ts.map +1 -1
  198. package/dist/translations/en-US.js +24 -7
  199. package/dist/translations/en-US.js.map +1 -1
  200. package/dist/translations/fy.d.ts.map +1 -1
  201. package/dist/translations/fy.js +24 -7
  202. package/dist/translations/fy.js.map +1 -1
  203. package/dist/translations/nl.generated.d.ts +24 -7
  204. package/dist/translations/nl.generated.d.ts.map +1 -1
  205. package/dist/translations/nl.generated.js +2 -0
  206. package/dist/translations/nl.generated.js.map +1 -1
  207. package/dist/translations/pap-AW.d.ts.map +1 -1
  208. package/dist/translations/pap-AW.js +24 -7
  209. package/dist/translations/pap-AW.js.map +1 -1
  210. package/dist/translations/pap-CW.d.ts.map +1 -1
  211. package/dist/translations/pap-CW.js +24 -7
  212. package/dist/translations/pap-CW.js.map +1 -1
  213. package/dist/types/vue.d.ts +71 -38
  214. package/dist/utilities/focus-target.d.ts +23 -0
  215. package/dist/utilities/focus-target.d.ts.map +1 -0
  216. package/dist/utilities/focus-target.js +70 -0
  217. package/dist/utilities/focus-target.js.map +1 -0
  218. package/dist/utilities/link-hint.d.ts +18 -0
  219. package/dist/utilities/link-hint.d.ts.map +1 -0
  220. package/dist/utilities/link-hint.js +29 -0
  221. package/dist/utilities/link-hint.js.map +1 -0
  222. package/package.json +3 -2
@@ -201,7 +201,7 @@ declare module 'vue' {
201
201
  'noTab'?: NLDDAvatar['noTab'];
202
202
  /** Makes the avatar a button; ignored when `href` is set */
203
203
  'button'?: NLDDAvatar['button'];
204
- /** Link target for href (e.g. '_blank'); completes rel and announces "Opens in a new tab" */
204
+ /** Link target for href (e.g. '_blank'); completes rel and announces "Opens in a new tab". 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. */
205
205
  'target'?: NLDDAvatar['target'];
206
206
  /** Link rel for href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
207
207
  'rel'?: NLDDAvatar['rel'];
@@ -344,13 +344,13 @@ declare module 'vue' {
344
344
  'type'?: NLDDButton['type'];
345
345
  /** ID of a popover element this button invokes; forwarded to the inner button. Use the popoverTargetElement property instead when the popover lives in another tree. */
346
346
  'popovertarget'?: NLDDButton['popovertarget'];
347
- /** Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. */
347
+ /** Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
348
348
  'loading'?: NLDDButton['loading'];
349
349
  /** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
350
350
  'loading-text'?: NLDDButton['loadingText'];
351
351
  /** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
352
352
  'loadingText'?: NLDDButton['loadingText'];
353
- /** Disabled state */
353
+ /** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
354
354
  'disabled'?: NLDDButton['disabled'];
355
355
  /** Button text */
356
356
  'text'?: NLDDButton['text'];
@@ -380,7 +380,7 @@ declare module 'vue' {
380
380
  'accessibleLabel'?: NLDDButton['accessibleLabel'];
381
381
  /** When set, renders an <a> element instead of <button> */
382
382
  'href'?: NLDDButton['href'];
383
- /** 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). */
383
+ /** 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. */
384
384
  'target'?: NLDDButton['target'];
385
385
  /** Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
386
386
  'rel'?: NLDDButton['rel'];
@@ -424,13 +424,13 @@ declare module 'vue' {
424
424
  'accessibleLabel'?: NLDDCard['accessibleLabel'];
425
425
  /** Makes the whole card a link to this URL (empty = no link) */
426
426
  'href'?: NLDDCard['href'];
427
- /** Link target for href (e.g. '_blank'); adjusts rel automatically and adds an "Opent in nieuw tabblad" announcement for '_blank' */
427
+ /** Link target for href (e.g. '_blank'); adjusts rel automatically and adds an "opent in nieuw tabblad" announcement for '_blank'. 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. */
428
428
  'target'?: NLDDCard['target'];
429
429
  /** Link rel for href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
430
430
  'rel'?: NLDDCard['rel'];
431
431
  /** Makes the whole card a button; ignored when `href` is set */
432
432
  'button'?: NLDDCard['button'];
433
- /** Override translation keys (e.g. the "Opent in nieuw tabblad" announcement) */
433
+ /** Override translation keys (e.g. the "opent in nieuw tabblad" announcement) */
434
434
  'translations'?: NLDDCard['translations'];
435
435
  };
436
436
 
@@ -587,12 +587,18 @@ declare module 'vue' {
587
587
  };
588
588
 
589
589
  type NLDDCollectionProps = {
590
- /** Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid') */
591
- 'layout'?: NLDDCollection['layout'];
592
- /** Preferred width for each item (e.g. '280px', '20rem'). In grid and lanes layouts used as the minimum column width (columns will be at least this wide; 1fr if container allows more). In horizontal scroll used as flex-basis. Never forces horizontal overflow — the value is clamped to container width. */
593
590
  'item-width'?: NLDDCollection['itemWidth'];
594
- /** Preferred width for each item (e.g. '280px', '20rem'). In grid and lanes layouts used as the minimum column width (columns will be at least this wide; 1fr if container allows more). In horizontal scroll used as flex-basis. Never forces horizontal overflow — the value is clamped to container width. */
595
591
  'itemWidth'?: NLDDCollection['itemWidth'];
592
+ /** Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid') */
593
+ 'layout'?: NLDDCollection['layout'];
594
+ /** Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width. */
595
+ 'item-min-width'?: NLDDCollection['itemMinWidth'];
596
+ /** Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width. */
597
+ 'itemMinWidth'?: NLDDCollection['itemMinWidth'];
598
+ /** Largest width an item takes in horizontal scroll (e.g. '400px', '25rem'), so one or two items that fit do not stretch across the container. Defaults to 480px; `item-max-width="100%"` lets items fill the container, as they did before the default. Never narrower than `item-min-width`, which wins when it is wider, and never wider than the container. No effect in grid, lanes and stack: a grid leaves empty columns rather than stretching an item, and its right edge stays aligned with the content around it. */
599
+ 'item-max-width'?: NLDDCollection['itemMaxWidth'];
600
+ /** Largest width an item takes in horizontal scroll (e.g. '400px', '25rem'), so one or two items that fit do not stretch across the container. Defaults to 480px; `item-max-width="100%"` lets items fill the container, as they did before the default. Never narrower than `item-min-width`, which wins when it is wider, and never wider than the container. No effect in grid, lanes and stack: a grid leaves empty columns rather than stretching an item, and its right edge stays aligned with the content around it. */
601
+ 'itemMaxWidth'?: NLDDCollection['itemMaxWidth'];
596
602
  /** Gap between items, as a step of the spacing scale ('0', '2', '4', '6', '8', '10', '12', '16', '20', '24', '28', '32', '40', '44', '48', '56', '64', '80', '96'). Overrides the responsive default at every breakpoint; unset keeps the default. */
597
603
  'gap'?: NLDDCollection['gap'];
598
604
  /** Gap at sm, overriding `gap` there */
@@ -706,7 +712,7 @@ declare module 'vue' {
706
712
  'lg-column-count'?: NLDDContainer['lgColumnCount'];
707
713
  /** Column count when this container is lg-wide */
708
714
  'lgColumnCount'?: NLDDContainer['lgColumnCount'];
709
- /** 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. */
715
+ /** 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. A 'fit-content' container takes its width from its content, so it cannot measure itself: its breakpoint padding, gap and column count follow the container around it. */
710
716
  'width'?: NLDDContainer['width'];
711
717
  /** Minimum width as a CSS length (e.g. '280px') */
712
718
  'min-width'?: NLDDContainer['minWidth'];
@@ -1177,6 +1183,8 @@ declare module 'vue' {
1177
1183
  type NLDDHeroProps = {
1178
1184
  /** Body max-width; 'full' removes the bound (section API) */
1179
1185
  'width'?: NLDDHero['width'];
1186
+ /** Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. With media it applies with `layout="contained"` and the panel in a corner or along a side; with overlap or a centered panel the hero stays rectangular and says so in development. The panel stands against the edge of the image, so a `main-width` in percent (33.33%, 50%) is a share of the image, and gets a corner at half the radius, the one pointing into the image; a panel along a full side, a `main-width="full"` strip and the panel on mobile stay square. On mobile a bottom corner moves to the top. Without media the panel is the whole hero: the corner applies in every layout and position, at half the radius, and the hero chooses top-right, or top-left for a panel on the right. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg, and is never more than a third of the shortest side of the area it rounds, so a low hero keeps a corner rather than a drop. Says so in development when the chosen corner sits under the panel, or with `width="full"` */
1187
+ 'corner'?: NLDDHero['corner'];
1180
1188
  /** 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 */
1181
1189
  'layout'?: NLDDHero['layout'];
1182
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' */
@@ -1276,13 +1284,13 @@ declare module 'vue' {
1276
1284
  'hide-lg-text'?: NLDDIconButton['hideLgText'];
1277
1285
  /** In lg size, hides the text label and enlarges the icon by one step (28px) */
1278
1286
  'hideLgText'?: NLDDIconButton['hideLgText'];
1279
- /** Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). */
1287
+ /** Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
1280
1288
  'loading'?: NLDDIconButton['loading'];
1281
1289
  /** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
1282
1290
  'loading-text'?: NLDDIconButton['loadingText'];
1283
1291
  /** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
1284
1292
  'loadingText'?: NLDDIconButton['loadingText'];
1285
- /** Disabled state */
1293
+ /** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
1286
1294
  'disabled'?: NLDDIconButton['disabled'];
1287
1295
  /** Removes the per-appearance highlight border (e.g. when a control group draws a single border instead). */
1288
1296
  'no-highlight-border'?: NLDDIconButton['noHighlightBorder'];
@@ -1320,7 +1328,7 @@ declare module 'vue' {
1320
1328
  'tooltipTiming'?: NLDDIconButton['tooltipTiming'];
1321
1329
  /** When set, renders an <a> element instead of <button> */
1322
1330
  'href'?: NLDDIconButton['href'];
1323
- /** 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). */
1331
+ /** 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. */
1324
1332
  'target'?: NLDDIconButton['target'];
1325
1333
  /** Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set */
1326
1334
  'rel'?: NLDDIconButton['rel'];
@@ -1502,7 +1510,7 @@ declare module 'vue' {
1502
1510
  type NLDDLinkProps = {
1503
1511
  /** Link target */
1504
1512
  'href'?: NLDDLink['href'];
1505
- /** Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden "Opent in nieuw tabblad" announcement for screen readers (WCAG 2.1 SC 3.2.2). */
1513
+ /** Link target (e.g. '_blank'); adjusts rel automatically. With '_blank' the link adds a visually hidden "opent in nieuw tabblad" 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. */
1506
1514
  'target'?: NLDDLink['target'];
1507
1515
  /** Link rel attribute; with target '_blank', 'noopener noreferrer' is added to whatever you set */
1508
1516
  'rel'?: NLDDLink['rel'];
@@ -1522,13 +1530,13 @@ declare module 'vue' {
1522
1530
  'accessible-label'?: NLDDLink['accessibleLabel'];
1523
1531
  /** Accessible label for screen readers */
1524
1532
  'accessibleLabel'?: NLDDLink['accessibleLabel'];
1525
- /** Disabled state */
1533
+ /** Disabled state. Avoid it where you can; the design guidelines say why. */
1526
1534
  'disabled'?: NLDDLink['disabled'];
1527
1535
  /** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
1528
1536
  'no-tab'?: NLDDLink['noTab'];
1529
1537
  /** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
1530
1538
  'noTab'?: NLDDLink['noTab'];
1531
- /** Override translation keys (e.g. the "Opent in nieuw tabblad" announcement); unset keys fall back to Dutch. */
1539
+ /** Override translation keys (e.g. the "opent in nieuw tabblad" announcement); unset keys fall back to Dutch. */
1532
1540
  'translations'?: NLDDLink['translations'];
1533
1541
  };
1534
1542
 
@@ -1541,9 +1549,9 @@ declare module 'vue' {
1541
1549
  'dividers'?: NLDDList['dividers'];
1542
1550
  /** Listbox only: caps the options' scroll region at this CSS length (e.g. '320px'). Unset means no cap. */
1543
1551
  'height'?: NLDDList['height'];
1544
- /** Accessible name, forwarded to the list in `type="list"` and to the search field in `type="listbox"`. For `type="navigation"` set `aria-label` / `aria-labelledby` on the element itself. Falls back to the i18n default. */
1552
+ /** Accessible name: of the list in `type="list"`, of the search field in `type="listbox"`, and of the navigation landmark in `type="navigation"`, so several navigation lists on a page can be told apart. Falls back to the i18n default. An `aria-label` or `aria-labelledby` set on the element itself wins. */
1545
1553
  'accessible-label'?: NLDDList['accessibleLabel'];
1546
- /** Accessible name, forwarded to the list in `type="list"` and to the search field in `type="listbox"`. For `type="navigation"` set `aria-label` / `aria-labelledby` on the element itself. Falls back to the i18n default. */
1554
+ /** Accessible name: of the list in `type="list"`, of the search field in `type="listbox"`, and of the navigation landmark in `type="navigation"`, so several navigation lists on a page can be told apart. Falls back to the i18n default. An `aria-label` or `aria-labelledby` set on the element itself wins. */
1547
1555
  'accessibleLabel'?: NLDDList['accessibleLabel'];
1548
1556
  /** Override translation keys; unset keys fall back to Dutch */
1549
1557
  'translations'?: NLDDList['translations'];
@@ -1560,7 +1568,7 @@ declare module 'vue' {
1560
1568
  'size'?: NLDDListItem['size'];
1561
1569
  /** Renders the item as an `<a>` with this URL. Wins over `checkbox` and `button`; without any of the three the item is a plain container with no action. */
1562
1570
  'href'?: NLDDListItem['href'];
1563
- /** Link target forwarded to the `<a>` (e.g. '_blank'); only applies with `href`. With '_blank' a visually hidden "opens in new tab" announcement is added for assistive technology. */
1571
+ /** Link target forwarded to the `<a>` (e.g. '_blank'); only applies with `href`. With '_blank' a visually hidden "opens in new tab" announcement is added for assistive technology. 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. */
1564
1572
  'target'?: NLDDListItem['target'];
1565
1573
  /** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
1566
1574
  'rel'?: NLDDListItem['rel'];
@@ -1570,6 +1578,10 @@ declare module 'vue' {
1570
1578
  'checkbox'?: NLDDListItem['checkbox'];
1571
1579
  /** Makes the whole row one radio of a group: the action becomes a `role="radio"` button carrying `aria-checked`, and activation sets `checked` (never clears it) and fires `change`. Put the rows in an `nldd-list type="radiogroup"`, which is what makes them a set. Wins over `button`, loses to `href` and `checkbox`. The arrow keys move focus without checking, where a native radio group and `nldd-radio-button-group` check as they go: a row can carry more than a label, so stepping past one should not commit it. */
1572
1580
  'radio'?: NLDDListItem['radio'];
1581
+ /** Accessible name of the row's action (its link, button, checkbox or radio), for a row whose text does not say enough on its own. It replaces the content of the whole row for assistive technology, the supporting text and a status included, so set it only when the row has no text of its own, or put everything that matters in it. The hint for another website or a new tab is added to it. */
1582
+ 'accessible-label'?: NLDDListItem['accessibleLabel'];
1583
+ /** Accessible name of the row's action (its link, button, checkbox or radio), for a row whose text does not say enough on its own. It replaces the content of the whole row for assistive technology, the supporting text and a status included, so set it only when the row has no text of its own, or put everything that matters in it. The hint for another website or a new tab is added to it. */
1584
+ 'accessibleLabel'?: NLDDListItem['accessibleLabel'];
1573
1585
  /** 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. */
1574
1586
  'reorderable'?: NLDDListItem['reorderable'];
1575
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`. */
@@ -1578,7 +1590,7 @@ declare module 'vue' {
1578
1590
  'checked'?: NLDDListItem['checked'];
1579
1591
  /** Disclosure state. Drives the `children` group's visibility AND supplies `aria-expanded` — to the row's own control when the row is interactive, or to the segment marked `disclosure`. Written once either way; the item DEV-warns when there is nowhere for it to live. */
1580
1592
  'expanded'?: NLDDListItem['expanded'];
1581
- /** Marks the item as the one you are on: the page a menu row points at, the record a list has open. Exactly one row in a list carries it, where `selected` may be on many. It paints like `selected` at rest, and takes the highlighted fill while focus is anywhere in the row — including inside a nested `nldd-list-item-segment`, which is what a segmented row needs: the focus never reaches the row's own control, because there is none. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value. On a segmented row set it on the segment that holds the link instead: the row reads `current` off its own segments and paints itself, so it is written once, where `aria-current` belongs. */
1593
+ /** Marks the item as the one you are on: the page a menu row points at, the record a list has open. Exactly one row in a list carries it, where `selected` may be on many. It paints like `selected` at rest, a quiet fill on purpose: the page itself says where you are, in its title, heading and breadcrumb, so the fill is an extra that should not pull attention from the content, and an automated check that flags its contrast is expected. It takes the highlighted fill while focus is anywhere in the row — including inside a nested `nldd-list-item-segment`, which is what a segmented row needs: the focus never reaches the row's own control, because there is none. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value. On a segmented row set it on the segment that holds the link instead: the row reads `current` off its own segments and paints itself, so it is written once, where `aria-current` belongs. */
1582
1594
  'current'?: NLDDListItem['current'];
1583
1595
  /** The `aria-current` value a `current` or `selected` row puts on its action in a `navigation` parent (default 'page'). Use 'location' for a table of contents, whose rows point at sections of the page you are on. */
1584
1596
  'current-type'?: NLDDListItem['currentType'];
@@ -1608,7 +1620,7 @@ declare module 'vue' {
1608
1620
  'width'?: NLDDListItemSegment['width'];
1609
1621
  /** Renders the segment as an `<a>` with this URL. Wins over `checkbox` and `button`. */
1610
1622
  'href'?: NLDDListItemSegment['href'];
1611
- /** Link target forwarded to the `<a>`; only applies with `href` */
1623
+ /** Link target forwarded to the `<a>`; only applies with `href`. With '_blank' a visually hidden "opent in nieuw tabblad" announcement is added. 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. With `accessible-label` the hint goes into the label. */
1612
1624
  'target'?: NLDDListItemSegment['target'];
1613
1625
  /** Link rel forwarded to the `<a>`, only with `href`; with target '_blank', 'noopener noreferrer' is added to whatever you set */
1614
1626
  'rel'?: NLDDListItemSegment['rel'];
@@ -1648,6 +1660,7 @@ declare module 'vue' {
1648
1660
  'divider-end'?: NLDDListItemSegment['dividerEnd'];
1649
1661
  /** The row's divider stops after this cell. */
1650
1662
  'dividerEnd'?: NLDDListItemSegment['dividerEnd'];
1663
+ 'translations'?: NLDDListItemSegment['translations'];
1651
1664
  /** Direct element reference to that popover, for one living in another tree (an nldd-menu reparented to the body). IDL-only, like the counterpart on nldd-icon-button, so the browser still treats this segment's button as the popover's invoker. */
1652
1665
  'popoverTargetElement'?: NLDDListItemSegment['popoverTargetElement'];
1653
1666
  /** Action the browser performs on click, mirroring popovertargetaction. */
@@ -1724,7 +1737,7 @@ declare module 'vue' {
1724
1737
  'contentPriority'?: NLDDMenuBarItem['contentPriority'];
1725
1738
  /** Activates content-priority behavior (set by the parent nldd-menu-bar) */
1726
1739
  'compact'?: NLDDMenuBarItem['compact'];
1727
- /** Turn interaction off */
1740
+ /** Turn interaction off. Avoid it where you can; the design guidelines say why. */
1728
1741
  'disabled'?: NLDDMenuBarItem['disabled'];
1729
1742
  /** Override aria-label */
1730
1743
  'accessible-label'?: NLDDMenuBarItem['accessibleLabel'];
@@ -1820,7 +1833,7 @@ declare module 'vue' {
1820
1833
  'open'?: NLDDModalDialog['open'];
1821
1834
  /** When the dialog is opened */
1822
1835
  'onOpen'?: (event: CustomEvent) => void;
1823
- /** When the dialog is fully closed. Does not bubble: overlays nest, and a listener on one dialog asking about that dialog should not also hear the form it opened. The dismiss button of an nldd-top-title-bar inside it fires `dismiss`, which bubbles; this component catches that itself, closes and fires `close`. Listen to `close` alone, or one click runs your handler twice. */
1836
+ /** When the dialog is fully closed. Does not bubble: overlays nest, and a listener on one dialog asking about that dialog should not also hear the form it opened. */
1824
1837
  'onClose'?: (event: CustomEvent) => void;
1825
1838
  };
1826
1839
 
@@ -2111,7 +2124,7 @@ declare module 'vue' {
2111
2124
  'current'?: NLDDPagination['current'];
2112
2125
  /** Total number of pages (recommended max: 200 for compact select performance) */
2113
2126
  'total'?: NLDDPagination['total'];
2114
- /** Disabled state */
2127
+ /** Disabled state. Avoid it where you can; the design guidelines say why. */
2115
2128
  'disabled'?: NLDDPagination['disabled'];
2116
2129
  /** Centers the pagination in the container (host fills row, items grouped in the middle) */
2117
2130
  'centered'?: NLDDPagination['centered'];
@@ -2705,7 +2718,7 @@ declare module 'vue' {
2705
2718
  'size'?: NLDDSplitButton['size'];
2706
2719
  /** Visual style (default: 'neutral-tinted'; 'inherit-tinted' and 'inherit-filled' for a colored surface) */
2707
2720
  'appearance'?: NLDDSplitButton['appearance'];
2708
- /** Disabled state */
2721
+ /** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
2709
2722
  'disabled'?: NLDDSplitButton['disabled'];
2710
2723
  /** Width mode: 'full' (stretches to container) or any CSS length; the main action button fills the available space */
2711
2724
  'width'?: NLDDSplitButton['width'];
@@ -2788,7 +2801,7 @@ declare module 'vue' {
2788
2801
  'icon'?: NLDDStepBarItem['icon'];
2789
2802
  /** Makes the step a link (back to a completed step, for instance) */
2790
2803
  'href'?: NLDDStepBarItem['href'];
2791
- /** For flows without a URL per step (a wizard inside one window). Ignored once `href` is set: one step is one action, and a link outranks a button -- the same rule as nldd-card and nldd-avatar. */
2804
+ /** For flows without a URL per step (a process that runs inside one window). Ignored once `href` is set: one step is one action, and a link outranks a button -- the same rule as nldd-card and nldd-avatar. */
2792
2805
  'button'?: NLDDStepBarItem['button'];
2793
2806
  /** The status that counts. An own `past` or `future` wins over the derived one. An own `current` is what the parent derives from, so the derived status already says it, and on a step that lost to a later one it does not hold. */
2794
2807
  'resolvedStatus'?: NLDDStepBarItem['resolvedStatus'];
@@ -2801,6 +2814,14 @@ declare module 'vue' {
2801
2814
  'status'?: NLDDStepCell['status'];
2802
2815
  /** How wide the lane is and so how big the dot: `sm` (default, 16px) for steps without a number, `md` (24px) where a number or an icon has to fit. Every row in one list takes the same size, or the track jumps */
2803
2816
  'size'?: NLDDStepCell['size'];
2817
+ /** Where the dot stands in the row (default 'center'). `top` puts it against the row's top padding and `bottom` against its bottom padding, as a whole dot would stand, so a `minor` dot lines up with a `major` one. To line it up with what stands beside it, such as the first line of a text cell or a title, use `marker-offset`. The track runs to the middle of the dot either way, so consecutive rows still connect */
2818
+ 'vertical-alignment'?: NLDDStepCell['verticalAlignment'];
2819
+ /** Where the dot stands in the row (default 'center'). `top` puts it against the row's top padding and `bottom` against its bottom padding, as a whole dot would stand, so a `minor` dot lines up with a `major` one. To line it up with what stands beside it, such as the first line of a text cell or a title, use `marker-offset`. The track runs to the middle of the dot either way, so consecutive rows still connect */
2820
+ 'verticalAlignment'?: NLDDStepCell['verticalAlignment'];
2821
+ /** How far below the top of the row's content the middle of the dot stands, as a CSS length or a percentage of the content's height: `0%` is its top, `50%` its middle and `100%` its bottom. For a row whose first line is not as high as a whole dot, such as a large title beside it: half the height of that line puts the dot beside it. Measured after the row's padding, so it stays right when `size` changes that padding. Prefer `rem` over `px`, so the dot moves along when someone sets a larger font size in the browser. Wins over `vertical-alignment`; an invalid value falls back to it and says so in development */
2822
+ 'marker-offset'?: NLDDStepCell['markerOffset'];
2823
+ /** How far below the top of the row's content the middle of the dot stands, as a CSS length or a percentage of the content's height: `0%` is its top, `50%` its middle and `100%` its bottom. For a row whose first line is not as high as a whole dot, such as a large title beside it: half the height of that line puts the dot beside it. Measured after the row's padding, so it stays right when `size` changes that padding. Prefer `rem` over `px`, so the dot moves along when someone sets a larger font size in the browser. Wins over `vertical-alignment`; an invalid value falls back to it and says so in development */
2824
+ 'markerOffset'?: NLDDStepCell['markerOffset'];
2804
2825
  /** The direction the timeline moves forward in: `down` (default) puts the past above, `up` below. Only the current step has half a track, so this only has an effect there */
2805
2826
  'direction'?: NLDDStepCell['direction'];
2806
2827
  /** Place of the row in the list as it stands on screen (default 'between'): decides whether the line continues above the dot, below it, or on both sides. `first` is the top row and only has a line below, `last` the bottom row and only has a line above, also with `direction="up"`: position is about where the row stands, `direction` about which way time runs. `only` is the single row in the series and gets a line on neither side: a track of one dot leads nowhere. On a `level="none"` row, which is nothing but line, `only` leaves it out altogether: the track ends above it */
@@ -2909,7 +2930,7 @@ declare module 'vue' {
2909
2930
  'size'?: NLDDTabBar['size'];
2910
2931
  /** Renders a nav landmark instead of tablist; use for href-based items that navigate between routes */
2911
2932
  'navigation'?: NLDDTabBar['navigation'];
2912
- /** Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order */
2933
+ /** Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order. Avoid it where you can; the design guidelines say why. */
2913
2934
  'disabled'?: NLDDTabBar['disabled'];
2914
2935
  /** Accessible name for the navigation region; defaults to 'Tabs' */
2915
2936
  'accessible-label'?: NLDDTabBar['accessibleLabel'];
@@ -3259,6 +3280,18 @@ declare module 'vue' {
3259
3280
  type NLDDTitleProps = {
3260
3281
  /** Visual size of the title: 1–6 (default: 3) */
3261
3282
  'size'?: NLDDTitle['size'];
3283
+ /** A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than size 1. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than size 1 at the same breakpoint: a smaller value shows as size 1, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of size 1. An invalid value falls back to `size` */
3284
+ 'sm-custom-size'?: NLDDTitle['smCustomSize'];
3285
+ /** A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than size 1. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than size 1 at the same breakpoint: a smaller value shows as size 1, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of size 1. An invalid value falls back to `size` */
3286
+ 'smCustomSize'?: NLDDTitle['smCustomSize'];
3287
+ /** The same, at md */
3288
+ 'md-custom-size'?: NLDDTitle['mdCustomSize'];
3289
+ /** The same, at md */
3290
+ 'mdCustomSize'?: NLDDTitle['mdCustomSize'];
3291
+ /** The same, at lg */
3292
+ 'lg-custom-size'?: NLDDTitle['lgCustomSize'];
3293
+ /** The same, at lg */
3294
+ 'lgCustomSize'?: NLDDTitle['lgCustomSize'];
3262
3295
  /** 'content' (the default) takes the system's own content colors. 'inherit' lets the title follow the text color of the surface instead (for colored areas such as the filled categories); overline and supporting-text get the same color at a lowered opacity. */
3263
3296
  'color'?: NLDDTitle['color'];
3264
3297
  /** Title text. Content in the default slot takes its place. */
@@ -3416,7 +3449,7 @@ declare module 'vue' {
3416
3449
  'roving'?: NLDDToken['roving'];
3417
3450
  /** Reflects whether the token's menu is open (control="menu"); managed by the token. */
3418
3451
  'expanded'?: NLDDToken['expanded'];
3419
- /** Disabled state */
3452
+ /** Disabled state. Avoid it where you can; the design guidelines say why. */
3420
3453
  'disabled'?: NLDDToken['disabled'];
3421
3454
  /** When the dismiss button is clicked */
3422
3455
  'onDismiss'?: (event: CustomEvent) => void;
@@ -3529,7 +3562,7 @@ declare module 'vue' {
3529
3562
  'supportingText'?: NLDDToolbarTitle['supportingText'];
3530
3563
  /** Makes the mark and the name one link, for the place this window belongs to (usually the app's own start). The `action` slot stays outside it: a control inside a link is a control you cannot reach without following the link. */
3531
3564
  'href'?: NLDDToolbarTitle['href'];
3532
- /** Where the link opens; only meaningful with `href`. `_blank` adds rel="noopener noreferrer" and a visually hidden "opens in a new tab" announcement. */
3565
+ /** Where the link opens; only meaningful with `href`. `_blank` adds rel="noopener noreferrer" and a visually hidden "opens in a new tab" announcement. 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. */
3533
3566
  'target'?: NLDDToolbarTitle['target'];
3534
3567
  /** Override translation keys (the new-tab announcement); unset keys fall back to Dutch. */
3535
3568
  'translations'?: NLDDToolbarTitle['translations'];
@@ -3732,9 +3765,9 @@ declare module 'vue' {
3732
3765
  'accessibleLabel'?: NLDDWindow['accessibleLabel'];
3733
3766
  /** Override translation keys; unset keys fall back to the Dutch default. */
3734
3767
  'translations'?: NLDDWindow['translations'];
3735
- /** A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a wizard, a form with filled-in fields. Escape and the dismiss button keep working. */
3768
+ /** A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a process of several steps, a form with filled-in fields. Escape and the dismiss button keep working. */
3736
3769
  'no-light-dismiss'?: NLDDWindow['noLightDismiss'];
3737
- /** A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a wizard, a form with filled-in fields. Escape and the dismiss button keep working. */
3770
+ /** A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a process of several steps, a form with filled-in fields. Escape and the dismiss button keep working. */
3738
3771
  'noLightDismiss'?: NLDDWindow['noLightDismiss'];
3739
3772
  /** Whether the window is open. Set it to open or close the window, as an alternative to show() and hide(). The window clears it itself when it closes another way (Escape, the backdrop, the close button of its title bar), so bind it together with the close event. */
3740
3773
  'open'?: NLDDWindow['open'];
@@ -3782,7 +3815,7 @@ declare module 'vue' {
3782
3815
  'nldd-code-editor': DefineComponent<NLDDCodeEditorProps>;
3783
3816
  /** 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. */
3784
3817
  'nldd-code-viewer': DefineComponent<NLDDCodeViewerProps>;
3785
- /** 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-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. With `lazy-load`, the next items are automatically loaded when the load-more button comes into view. */
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. */
3786
3819
  'nldd-collection': DefineComponent<NLDDCollectionProps>;
3787
3820
  /** 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. */
3788
3821
  'nldd-combo-box': DefineComponent<NLDDComboBoxProps>;
@@ -3801,7 +3834,7 @@ declare module 'vue' {
3801
3834
  'nldd-document-tab-bar-item': DefineComponent<NLDDDocumentTabBarItemProps>;
3802
3835
  /** A cell that displays a drag handle for reorderable list items. Always vertically centered and sized to fit the handle. To enable drag-to-reorder, add the `reorderable-only` attribute to this element. This attribute is required for `nldd-list` to detect the drag handle in the composed event path and activate pointer and keyboard drag mode: ```html <nldd-list reorderable> <nldd-list-item> <nldd-drag-handle-cell reorderable-only></nldd-drag-handle-cell> <nldd-text-cell text="Item"></nldd-text-cell> </nldd-list-item> </nldd-list> ``` Without `reorderable-only`, pointer and keyboard drag will never trigger. */
3803
3836
  'nldd-drag-handle-cell': DefineComponent<NLDDDragHandleCellProps>;
3804
- /** A visual wrapper around a native `<select>` element. The consumer provides a native `<select>` as a slotted child — this way the browser retains full control over form submission, accessibility and keyboard navigation, including `<optgroup>`, `data-*` attributes and dynamic changes to options. */
3837
+ /** A visual wrapper around a native `<select>` element. The consumer provides a native `<select>` as a slotted child — this way the browser retains full control over form submission, accessibility and keyboard navigation, including `<optgroup>`, `data-*` attributes and dynamic changes to options. A dropdown hides its options, so it is the last resort for a choice from a fixed set. Show a handful of options with nldd-segmented-control, nldd-toggle-button-group or nldd-radio-button-group, and let the user type in nldd-combo-box when there are many, a list of countries included. The design guidelines explain the order. */
3805
3838
  'nldd-dropdown': DefineComponent<NLDDDropdownProps>;
3806
3839
  /** A file picker that reads as one control: an nldd-button flush in the corner of a tinted surface, the chosen file next to it, and a dismiss button to clear it again. It wraps a hidden native `<input type="file">`, which is what makes the picker open at all — a file dialog only opens from a user gesture on a real input. The surface deliberately does not look like an input field. A border with field semantics promises you can type into it; here you can only press a button, so it uses button and surface colors instead of `--semantics-input-fields-*`. The button keeps its own tinted background and therefore sits a shade darker in the surface, which is what marks it as the thing to press. Several files are summarized, not listed: "3 bestanden" with a single cross that clears all of them. Every pick replaces the whole FileList, and rebuilding it to add or drop one file means going through DataTransfer, which does not deduplicate (even the same File object twice yields two entries) — and a File has no id, so deduplicating would come down to guessing from name, size and last-modified. A list with a cross per file would promise an edit the platform does not support. A page that does want to show the files renders its own list from the `File[]` in the change event. */
3807
3840
  'nldd-file-field': DefineComponent<NLDDFileFieldProps>;
@@ -3816,7 +3849,7 @@ declare module 'vue' {
3816
3849
  'nldd-form-section': DefineComponent<NLDDFormSectionProps>;
3817
3850
  /** 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. */
3818
3851
  'nldd-full-bleed-section': DefineComponent<NLDDFullBleedSectionProps>;
3819
- /** 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. Every area is rectangular. 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. */
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. */
3820
3853
  'nldd-hero': DefineComponent<NLDDHeroProps>;
3821
3854
  /** 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. */
3822
3855
  'nldd-icon': DefineComponent<NLDDIconProps>;
@@ -3837,7 +3870,7 @@ declare module 'vue' {
3837
3870
  'nldd-link': DefineComponent<NLDDLinkProps>;
3838
3871
  /** A container for `nldd-list-item` elements. The `type` attribute switches the list's a11y role and behavior: - `list` (default) — `role="list"`, items `role="listitem"`. Reorderable allowed. - `radiogroup` — `role="radiogroup"`, for a set of `nldd-list-item radio` rows: one choice, laid out as rows so each option can carry a count or a second line. The rows step out of the accessibility tree themselves (`role="none"`), so the radios are the group's own children. The arrows move focus here and activation checks, rather than the selection following focus as it does in `nldd-radio-button-group`. - `tree` — `role="tree"`, items `role="treeitem"`. Branch rows put their child rows in their own `slot="children"`, which the item renders as a `role="group"`. Level, position and set size are NOT authored: the nesting represents the hierarchy, so assistive technology derives them. A branch row must carry `expanded`; the group is hidden while it is false. Visual indentation is the consumer's — repeat a spacer-cell per level. Comes with its own keyboard, see "Tree" below. - `navigation` — host `role="navigation"`, items with `selected` get `aria-current="page"` on their inner `<a>` or `<button>`. Sub-pages go in their parent row's `slot="children"`, which the item renders as a list inside the list item, so a screen reader hears the level and how many there are. They are always shown and the arrows walk them like any other row; a spacer-cell alone indents but says nothing. Visual indentation is still the consumer's. - `form` — rows that are not actions themselves: the controls inside them are. A row of a label and a field, a switch, a menu button, or a value you cannot change at all. Semantically the same as `list` (`role="list"`, `role="listitem"`), and everything visual is unchanged; what falls away is the keyboard of a list you walk through. No arrow navigation, so no promise of it either, and no tab stop on the row: Tab goes straight to the controls, in source order, the way it does in any form. Rows that ARE actions (`href`, `button`, `checkbox`, or a segment) contradict that and warn in development. SwiftUI draws the same line between `List` and `Form`, for the same reason. - `listbox` — an accessible, filterable listbox (combobox pattern). The list renders its OWN search input (`role="combobox"`) pinned above the options; `.list__items` becomes `role="listbox"` and items become `role="option"`. Focus stays in the input, the active option moves via `aria-activedescendant`, and filtering is consumer-managed via the `input` event (toggle `[hidden]` on items). See "Listbox" below. Selection state is consumer-managed: the list never mutates `selected` itself. A list you walk through answers to the arrow keys, and there is no attribute to switch that on. Whether the keys do something is not a property of one list: it is what a reader may assume about all of them, and a per-list setting made that unknowable from the outside. It follows the type, which you can see before you touch a key. - ArrowUp / ArrowDown — move focus between the rows there is something to do with. A row of nothing but text is skipped, because focus that leads nowhere is a dead end. - Home / End — the first / last of those rows. - Tab — the list is ONE tab stop, so Tab moves past it rather than through it. Within the current row Tab walks that row's own controls: a chevron beside a checkbox, a menu button at the end. The same controls in the other rows are held out of the tab order (`tabindex="-1"`, or `no-tab` on a design-system control that keeps its tab stop in its own shadow root), and so are this row's once focus leaves the list, so tabbing back in lands on the row again. - Escape — out of a control the row holds, back onto the row. One level up, where Shift+Tab is one step back. On the row itself the list claims nothing, so Escape carries on to whatever holds the list, and a control showing a menu keeps the first press for closing that menu. While focus sits in a control a row holds, the list stands down: those keys are the control's, and a list that took them anyway would pull focus out of a combo box or a text field mid-word. What the row IS — its own link, button or segments — keeps answering here. Arrows move focus only; selection stays consumer-managed. Three types answer differently, and all three say so on screen before you touch a key: a listbox runs its keyboard from its search field, a reorderable list moves rows with the arrows, and a form has no rows to move between at all. In `type="listbox"` the list owns a native `<input role="combobox">` (mirroring how `nldd-combo-box` wires an input to a slotted listbox). Keyboard, handled on the input so focus never leaves it: - ArrowDown / ArrowUp — move the active option among the VISIBLE (non-`[hidden]`) options (wrap around). - Home / End — first / last visible option. - Enter — activate the active option by triggering its inner action (a link navigates, a button fires the consumer's handler). Selection stays consumer-managed. - Escape — clear the search value (and refire `input`). On every active change the input's `aria-activedescendant` is set to the active option's id and the option is scrolled into view. The active option (`_highlighted` on the item, a highlight) is distinct from `selected`. Filtering is the consumer's job: listen to `input` (`{ detail: { value } }`) and toggle `[hidden]` on items; after the visible set changes the list resets the active option to the first visible one. `reorderable` and the roving arrow keys are ignored in listbox mode (listbox has its own keyboard). A tree adds to that keyboard, and counts the rows of an open branch as part of the order the arrows walk: - ArrowRight — opens a closed branch; on an open one it steps to its first child. - ArrowLeft — closes an open branch; on a leaf it steps out to the parent row. - Enter — follows the row: its own link or button, or on a segmented branch the first action that is not the chevron. A branch with only a chevron folds instead. - Space — open and close, the same as Right and Left. Only while focus sits on the row itself: a row that is its own control, and a segmented action you tabbed into, handle both keys themselves. Opening and closing runs through the row's own disclosure control — the segment marked `disclosure`, or the row itself when it is a button. The list activates that control rather than writing `expanded`, so the state keeps being set in one place: the consumer's handler. A row that is a link is never activated this way, since that would navigate away. The tree is one tab stop. Focus lands on the row itself when the row has no control of its own, because that is where `treeitem` sits and it makes assistive technology announce the row rather than a button inside it. Tab then walks the controls of THAT row (a chevron beside a checkbox, say) and leaves the list after the last one. A deliberate deviation: strictly speaking a row with several controls is a `treegrid`, not a `tree`. We keep the tree semantics — level and set size are what matters here, not rows and columns — and borrow the "Tab within the row" behavior from the grid pattern. Should a tree with real columns come up, that is when `treegrid` earns its own type. On reorder (type="list" + reorderable), the list dispatches `nldd-reorder` with `fromIndex` / `toIndex` and expects the consumer to mutate the DOM (or their data model that renders the DOM). Focus is restored to the moved item's drag handle via a single `requestAnimationFrame` — this assumes the consumer reorders **synchronously** in the event handler. Async renderers (React, Vue, …) that update the DOM on a later tick will miss the focus restore and should manage focus themselves after their render commits. */
3839
3872
  'nldd-list': DefineComponent<NLDDListProps>;
3840
- /** A row within an `nldd-list`. Renders as a link when `href` is set, as a checkbox when `checkbox` is set, as a button when `button` is set, or as a plain container otherwise. All cells and segments share one flat slot, in source order. With one action, make the row itself the control (`href`, `button`, `checkbox` or `radio`): the whole row is then one hit area. With two or more, give each its own `nldd-list-item-segment` and leave the row without an action of its own. Both at once nests a control inside a control, and the item warns about that in development. Two rules govern every row: 1. State fills always paint the WIDENED row geometry — the row box extended by the indicator inline inset on both sides — whether or not the row is interactive. Paint never differs between a selected plain row and a selected interactive row. 2. The widened strip belongs to the ROW, never to a segment. A row with any action (its own `href`/`button`/`checkbox`, or a slotted segment) pulls itself outward (`is-interactive` host class → negative inline margin) and pads the row block back by the same amount, so content stays on the grid. A row-wide action owns that padding itself, making the whole widened box one hit area; slotted segments stay in the grid, so their footprint is position-independent and tree columns line up at any depth. By default the divider starts at the row's first text or title cell, so the line lands on the words rather than on whatever leads up to them — an icon, an avatar, a checkbox, or the spacers a tree indents with. Rows of different shapes then still line their dividers up with each other, and a tree's dividers step inward with its indentation. Text inside an `nldd-list-item-segment` counts as the row's content, and the marker is that text cell rather than the action: the action carries its own inline padding, so its edge sits before the words. A row with no text or title cell keeps the full content width. Mark a cell with `divider-start` and/or `divider-end` to place it yourself instead — an explicit marker replaces the derived one entirely, so `divider-start` on the leading cell restores the full-width line. Multiple markers resolve as the union: first `divider-start` through last `divider-end`. A start past the last end is an authoring error — the item DEV-warns and falls back to the full content width. A branch row can disclose its children in two ways: a dedicated `nldd-list-item-segment[disclosure]` segment (only the chevron is clickable), or the row itself as the control (`button` + `expanded`, the whole row toggles). In the second case, mark the chevron's `nldd-icon-cell` with `disclosure` and the row turns it with `expanded` — the same affordance, without having to trade a clickable row for a turning chevron. `checkbox` makes the WHOLE row the control: the inner action becomes a `role="checkbox"` button carrying `aria-checked`, it toggles `checked` on activation and fires `change`. Slot an `nldd-checkbox decorative` (or any glyph) before the text: it only shows the state, since the row already conveys role and state, and a second focusable control would double the tab stops. Do NOT nest a real `<input type="checkbox">` in the action: interactive content inside a `<button>` is invalid HTML and AT announces the button, not the checked state. A `<label>` variant is not offered for the same reason it cannot work — label-to-input association walks the DOM tree, and a slotted input is not a descendant of a label in the shadow root. When it renders as a link, `target` and `rel` are forwarded to the inner `<a>` (e.g. `target="_blank" rel="noopener noreferrer"`). With `target="_blank"` the item also injects a visually hidden "opens in new tab" announcement for assistive technology (WCAG 2.1 SC 3.2.2). The item synchronizes its ARIA with its parent `nldd-list`'s `type`: - `list` parent → `role="listitem"` - `navigation` parent → `role="listitem"` + `aria-current` on the inner `<a>` / `<button>` when `current` or `selected`, with `current-type` as its value (`page` unless set) - `listbox` parent → `role="option"` + `aria-selected` reflecting `selected`. The list points its search input's `aria-activedescendant` at the active option via `_highlighted` (separate from `selected`). */
3873
+ /** A row within an `nldd-list`. Renders as a link when `href` is set, as a checkbox when `checkbox` is set, as a button when `button` is set, or as a plain container otherwise. All cells and segments share one flat slot, in source order. With one action, make the row itself the control (`href`, `button`, `checkbox` or `radio`): the whole row is then one hit area. With two or more, give each its own `nldd-list-item-segment` and leave the row without an action of its own. Both at once nests a control inside a control, and the item warns about that in development. Two rules govern every row: 1. State fills always paint the WIDENED row geometry — the row box extended by the indicator inline inset on both sides — whether or not the row is interactive. Paint never differs between a selected plain row and a selected interactive row. 2. The widened strip belongs to the ROW, never to a segment. A row with any action (its own `href`/`button`/`checkbox`, or a slotted segment) pulls itself outward (`is-interactive` host class → negative inline margin) and pads the row block back by the same amount, so content stays on the grid. A row-wide action owns that padding itself, making the whole widened box one hit area; slotted segments stay in the grid, so their footprint is position-independent and tree columns line up at any depth. By default the divider starts at the row's first text or title cell, so the line lands on the words rather than on whatever leads up to them — an icon, an avatar, a checkbox, or the spacers a tree indents with. Rows of different shapes then still line their dividers up with each other, and a tree's dividers step inward with its indentation. Text inside an `nldd-list-item-segment` counts as the row's content, and the marker is that text cell rather than the action: the action carries its own inline padding, so its edge sits before the words. A row with no text or title cell keeps the full content width. Mark a cell with `divider-start` and/or `divider-end` to place it yourself instead — an explicit marker replaces the derived one entirely, so `divider-start` on the leading cell restores the full-width line. Multiple markers resolve as the union: first `divider-start` through last `divider-end`. A start past the last end is an authoring error — the item DEV-warns and falls back to the full content width. A branch row can disclose its children in two ways: a dedicated `nldd-list-item-segment[disclosure]` segment (only the chevron is clickable), or the row itself as the control (`button` + `expanded`, the whole row toggles). In the second case, mark the chevron's `nldd-icon-cell` with `disclosure` and the row turns it with `expanded` — the same affordance, without having to trade a clickable row for a turning chevron. `checkbox` makes the WHOLE row the control: the inner action becomes a `role="checkbox"` button carrying `aria-checked`, it toggles `checked` on activation and fires `change`. Slot an `nldd-checkbox decorative` (or any glyph) before the text: it only shows the state, since the row already conveys role and state, and a second focusable control would double the tab stops. Do NOT nest a real `<input type="checkbox">` in the action: interactive content inside a `<button>` is invalid HTML and AT announces the button, not the checked state. A `<label>` variant is not offered for the same reason it cannot work — label-to-input association walks the DOM tree, and a slotted input is not a descendant of a label in the shadow root. When it renders as a link, `target` and `rel` are forwarded to the inner `<a>` (e.g. `target="_blank" rel="noopener noreferrer"`). With `target="_blank"` the item also injects a visually hidden "opens in new tab" announcement for assistive technology (WCAG 2.1 SC 3.2.2), and an `href` to another website a visually hidden "andere website". An `nldd-icon-cell` with `external-link` is only the picture of that; the row says it either way. The item synchronizes its ARIA with its parent `nldd-list`'s `type`: - `list` parent → `role="listitem"` - `navigation` parent → `role="listitem"` + `aria-current` on the inner `<a>` / `<button>` when `current` or `selected`, with `current-type` as its value (`page` unless set) - `listbox` parent → `role="option"` + `aria-selected` reflecting `selected`. The list points its search input's `aria-activedescendant` at the active option via `_highlighted` (separate from `selected`). */
3841
3874
  'nldd-list-item': DefineComponent<NLDDListItemProps>;
3842
3875
  /** A segment inside an `nldd-list-item`: it groups a run of cells and makes just that run clickable. Use it when a row needs more than one segment — a tree row whose chevron expands while the label toggles a checkbox, or a row that navigates with a separate button beside it. Put it in the row where its cells would go: the item has one flat slot, and a segment takes the place of the cells it covers. Where the divider starts or stops is marked on the cells themselves (`divider-start` / `divider-end`), not by the slot a segment sits in. A row is EITHER row-level interactive (`href` / `button` / `checkbox` on the `nldd-list-item`) OR segmented (one or more of these). Both at once nests a control inside a control, which is invalid HTML; the item DEV-warns. Unlike the row-wide action this does not bleed outward: a segment sits between siblings, so an outward inset would overlap them. It owns its inline padding and never drops below the row's control size, so an icon-only one still meets the WCAG 2.5.8 target size — do not add spacer cells inside it for room or hit area, that doubles the space. In a `type="listbox"` list the segment renders as a plain container (no control, not focusable) and DEV-warns: an `option` may not contain interactive descendants. The cells render unchanged, so nothing shifts. */
3843
3876
  'nldd-list-item-segment': DefineComponent<NLDDListItemSegmentProps>;
@@ -3853,7 +3886,7 @@ declare module 'vue' {
3853
3886
  'nldd-menu-group': DefineComponent<NLDDMenuGroupProps>;
3854
3887
  /** A single item within an nldd-menu. */
3855
3888
  'nldd-menu-item': DefineComponent<NLDDMenuItemProps>;
3856
- /** A modal window with overlay backdrop, based on the native <dialog> element. Internally renders an <nldd-inline-dialog> for the visual structure. Open and close it with `open`, bound to your state together with the close event: the dialog clears `open` itself when the user closes it. show() and hide() do the same for code without a binding. Keep the dialog in the DOM rather than mounting it when it opens, or the animations are skipped. */
3889
+ /** A modal window with overlay backdrop, based on the native <dialog> element. Internally renders an <nldd-inline-dialog> for the visual structure. Use it only when there is no way back, and give it a real choice: a dialog with one button offers nothing to decide, so tell the user with an nldd-notification or an inline message instead. In a destructive dialog the safe way out comes first, as the primary button. Work that needs the page as context, such as editing, belongs in an nldd-sheet. The design guidelines say why. A dialog that opens with one action says so in development. Open and close it with `open`, bound to your state together with the close event: the dialog clears `open` itself when the user closes it. show() and hide() do the same for code without a binding. Keep the dialog in the DOM rather than mounting it when it opens, or the animations are skipped. */
3857
3890
  'nldd-modal-dialog': DefineComponent<NLDDModalDialogProps>;
3858
3891
  'nldd-multi-line-text-field': DefineComponent<NLDDMultiLineTextFieldProps>;
3859
3892
  /** A four-column layout with a primary sidebar, secondary sidebar, main content area, and inspector. The sidebars show navigation or lists, the main area shows primary content, and the inspector shows additional details or properties of the selection. Panes are shown automatically when content is slotted into them. When they stop fitting, panes drop in a fixed order: the inspector goes first, then the primary sidebar collapses into the secondary sidebar. If that still does not fit, the view stacks and shows one pane at a time: main when it has content, otherwise the secondary sidebar, otherwise the primary sidebar. Use <code>nldd-split-view-pane</code> as direct children for automatic back button handling. */
@@ -3905,7 +3938,7 @@ declare module 'vue' {
3905
3938
  'nldd-shell': DefineComponent<NLDDShellProps>;
3906
3939
  /** A horizontal split view with multiple equal panes side by side. The number of panes is set via the `panes` attribute. Each pane automatically gets a numbered slot: pane-1, pane-2, etc. Panes that do not fit the available width are automatically hidden, from right to left: `pane-1` is the last to go. Put the main content in `pane-1` and an inspector or detail in the last pane. */
3907
3940
  'nldd-side-by-side-split-view': DefineComponent<NLDDSideBySideSplitViewProps>;
3908
- /** A page section with a left sidebar alongside the main content. - **Wide (section >= 1008px):** two columns. The sidebar is a sticky, scrollable box (max-width 320px) beside the main content. It takes the surface of the section around it and is edged by a divider line, so it reads as a block without drawing the eye away from the main. Its sticky top/bottom insets default to 16px; override with `sticky-top` / `sticky-bottom` so it clears other sticky page elements (e.g. a sticky header). - **Narrow (section < 1008px):** the sidebar collapses behind a sheet (a left panel on md+ viewports, a bottom sheet on mobile), and the host reflects a `collapsed` attribute. The consumer owns the trigger: place any chrome (a button, a chosen-filters bar, …) wherever you want, show it only while collapsed (e.g. `nldd-sidebar-section[collapsed] .my-trigger { … }` or by reading `collapsed` / listening to `collapse-change`), and call `show()` / `toggle()` to open the sheet. Bind `aria-expanded` via the `open`/`close` events. The sheet gets a sticky title bar by default — the `sidebar-label` as title plus a "Sluit" button — overridable via the `sheet-top-title-bar` slot. The sidebar content lives in `slot="sidebar"`. Its slot outlet moves between the box (expanded) and the sheet (collapsed) so there is a single, never-duplicated copy — the light DOM (and its state) is preserved across the switch. The box <-> sheet switch follows the section's OWN width (a ResizeObserver on the host), not the viewport — so a sidebar-section in a narrow column or a split-view pane collapses to the sheet just like one in a narrow viewport, and the sidebar never stacks above or crowds the main. Set `no-collapse` to opt out: a narrow section then stacks the sidebar (full-width) above the main instead of using a sheet. Inherits block `padding` and `height` from PageSectionMixin. */
3941
+ /** A page section with a left sidebar alongside the main content. - **Wide (section >= 1008px):** two columns. The sidebar is a sticky, scrollable box (max-width 320px) beside the main content. It takes the surface of the section around it and is edged by a divider line, so it reads as a block without drawing the eye away from the main. Its sticky top/bottom insets default to 16px; override with `sticky-top` / `sticky-bottom` so it clears other sticky page elements (e.g. a sticky header). - **Narrow (section < 1008px):** the sidebar collapses behind a sheet (a left panel on md+ viewports, a bottom sheet on mobile), and the host reflects a `collapsed` attribute. The consumer owns the trigger: place any chrome (a button, a chosen-filters bar, …) wherever you want, show it only while collapsed (e.g. `nldd-sidebar-section[collapsed] .my-trigger { … }` or by reading `collapsed` / listening to `collapse-change`), and call `show()` / `toggle()` to open the sheet. Bind `aria-expanded` via the `open`/`close` events. The sheet gets a sticky title bar by default — the `sidebar-label` as title plus a "Sluit" button — overridable via the `sheet-top-title-bar` slot. A link in the sheet to a place on the page beside it, such as a row of a table of contents, closes the sheet first and then scrolls to that place and moves focus there, with a temporary tab stop as a skip link does. Left to the browser, the page would scroll under a sheet that is still open, and on closing the browser gives focus back to the trigger without scrolling to it, so focus ends up out of sight. A link that opens elsewhere (another page, a new tab, a modifier key, a `download`) or points into the sidebar itself is left alone, as is a click the consumer has already handled with `preventDefault()`. The address gets the fragment through `replaceState`, without a new history entry and without a `hashchange` event or a `:target` match: a router that listens for those does not see the jump. The sidebar content lives in `slot="sidebar"`. Its slot outlet moves between the box (expanded) and the sheet (collapsed) so there is a single, never-duplicated copy — the light DOM (and its state) is preserved across the switch. The box <-> sheet switch follows the section's OWN width (a ResizeObserver on the host), not the viewport — so a sidebar-section in a narrow column or a split-view pane collapses to the sheet just like one in a narrow viewport, and the sidebar never stacks above or crowds the main. Set `no-collapse` to opt out: a narrow section then stacks the sidebar (full-width) above the main instead of using a sheet. Inherits block `padding` and `height` from PageSectionMixin. */
3909
3942
  'nldd-sidebar-section': DefineComponent<NLDDSidebarSectionProps>;
3910
3943
  /** A basic section with responsive padding and gap based on container size. Contains optional header and footer slots. The padding and spacing between slots adjust automatically via container queries. Use one section per content block and repeat the section rather than building columns inside one: the section sets the reading width and the padding itself. For two columns there are nldd-one-half-one-half-section, nldd-two-thirds-one-third-section, nldd-one-third-two-thirds-section and nldd-sidebar-section. Give a section its surface with `background` instead of a background color of your own; that is how the components inside know which surface they are on. */
3911
3944
  'nldd-simple-section': DefineComponent<NLDDSimpleSectionProps>;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Moving focus to a place on the page, the way a skip link does.
3
+ */
4
+ /**
5
+ * The fragment of an href that stays on this page, or an empty string. An
6
+ * absolute URL to the page you are on counts too: a router or a CMS writes
7
+ * `/pagina#inhoud` as readily as `#inhoud`.
8
+ */
9
+ export declare function samePageHash(href: string): string;
10
+ /** The element a fragment points at, looked up in the tree of `from` first. */
11
+ export declare function hashTarget(hash: string, from: Node): HTMLElement | null;
12
+ /**
13
+ * Focuses the target and leaves it as it was once focus moves on. Returns the
14
+ * function that puts it back (safe to call twice), or null when the target did
15
+ * not take focus because it is hidden or inert; it is then already put back.
16
+ *
17
+ * The tabindex is 0 and not -1, also when the target came with a -1 of its
18
+ * own. WebKit skips everything inside a shadow host that has a negative
19
+ * tabindex, slotted content included, so with -1 on an nldd-* section the
20
+ * next Tab left the page instead of reaching the first link in it.
21
+ */
22
+ export declare function focusTemporarily(target: HTMLElement, options?: FocusOptions): (() => void) | null;
23
+ //# sourceMappingURL=focus-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-target.d.ts","sourceRoot":"","sources":["../../src/utilities/focus-target.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYjD;AAED,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,WAAW,GAAG,IAAI,CAOvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAoBjG"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Moving focus to a place on the page, the way a skip link does.
3
+ */
4
+ /**
5
+ * The fragment of an href that stays on this page, or an empty string. An
6
+ * absolute URL to the page you are on counts too: a router or a CMS writes
7
+ * `/pagina#inhoud` as readily as `#inhoud`.
8
+ */
9
+ export function samePageHash(href) {
10
+ try {
11
+ // Resolved as the browser resolves a link: against the base URL, which a
12
+ // <base href> can move away from the page itself.
13
+ const url = new URL(href, document.baseURI);
14
+ const samePage = url.origin === location.origin
15
+ && url.pathname === location.pathname
16
+ && url.search === location.search;
17
+ return samePage ? url.hash : '';
18
+ }
19
+ catch {
20
+ return '';
21
+ }
22
+ }
23
+ /** The element a fragment points at, looked up in the tree of `from` first. */
24
+ export function hashTarget(hash, from) {
25
+ let id = hash.slice(1);
26
+ if (!id)
27
+ return null;
28
+ // A malformed escape throws; the raw id is then the best guess left.
29
+ try {
30
+ id = decodeURIComponent(id);
31
+ }
32
+ catch { /* keep the raw id */ }
33
+ const root = from.getRootNode();
34
+ return root.getElementById?.(id) ?? document.getElementById(id);
35
+ }
36
+ /**
37
+ * Focuses the target and leaves it as it was once focus moves on. Returns the
38
+ * function that puts it back (safe to call twice), or null when the target did
39
+ * not take focus because it is hidden or inert; it is then already put back.
40
+ *
41
+ * The tabindex is 0 and not -1, also when the target came with a -1 of its
42
+ * own. WebKit skips everything inside a shadow host that has a negative
43
+ * tabindex, slotted content included, so with -1 on an nldd-* section the
44
+ * next Tab left the page instead of reaching the first link in it.
45
+ */
46
+ export function focusTemporarily(target, options) {
47
+ const previous = target.getAttribute('tabindex');
48
+ let restored = false;
49
+ const restore = () => {
50
+ if (restored)
51
+ return;
52
+ restored = true;
53
+ target.removeEventListener('blur', restore);
54
+ if (previous === null)
55
+ target.removeAttribute('tabindex');
56
+ else
57
+ target.setAttribute('tabindex', previous);
58
+ };
59
+ target.setAttribute('tabindex', '0');
60
+ target.addEventListener('blur', restore);
61
+ target.focus(options);
62
+ // Focus did not take: no blur will follow, so the tab stop would stay
63
+ // behind for good.
64
+ if (target.getRootNode().activeElement !== target) {
65
+ restore();
66
+ return null;
67
+ }
68
+ return restore;
69
+ }
70
+ //# sourceMappingURL=focus-target.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-target.js","sourceRoot":"","sources":["../../src/utilities/focus-target.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY;IACxC,IAAI,CAAC;QACJ,yEAAyE;QACzE,kDAAkD;QAClD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAC5C,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;eAC3C,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;eAClC,GAAG,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,CAAC;QACnC,OAAO,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACjC,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,EAAE,CAAC;IACX,CAAC;AACF,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,IAAU;IAClD,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE;QAAE,OAAO,IAAI,CAAC;IACrB,qEAAqE;IACrE,IAAI,CAAC;QAAC,EAAE,GAAG,kBAAkB,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC,CAAC,qBAAqB,CAAC,CAAC;IACpE,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAA2B,CAAC;IACzD,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC,EAAE,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;AACjE,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAmB,EAAE,OAAsB;IAC3E,MAAM,QAAQ,GAAG,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACjD,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,MAAM,OAAO,GAAG,GAAG,EAAE;QACpB,IAAI,QAAQ;YAAE,OAAO;QACrB,QAAQ,GAAG,IAAI,CAAC;QAChB,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC5C,IAAI,QAAQ,KAAK,IAAI;YAAE,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;;YACrD,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC,CAAC;IACF,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;IACrC,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACtB,sEAAsE;IACtE,mBAAmB;IACnB,IAAK,MAAM,CAAC,WAAW,EAA4B,CAAC,aAAa,KAAK,MAAM,EAAE,CAAC;QAC9E,OAAO,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACb,CAAC;IACD,OAAO,OAAO,CAAC;AAChB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Which hidden hint a link carries, as the suffix of a translation key.
3
+ *
4
+ * A link to another origin goes to another website, with a heading, navigation
5
+ * and title of its own, so it says so; a link with `target="_blank"` says it
6
+ * opens in a new tab (WCAG 2.1 SC 3.2.2). Both together make one sentence, so a
7
+ * screen reader reads one hint rather than two. Only `http:` and `https:`
8
+ * links can go to another website: `mailto:`, `tel:`, fragments and relative
9
+ * paths never do. There is no way to switch the hint off: a subdomain is
10
+ * another website too.
11
+ *
12
+ * Returns null when the link needs no hint.
13
+ */
14
+ export type LinkHintKey = 'link-hint-external-lowercase-label' | 'link-hint-new-tab-lowercase-label' | 'link-hint-external-new-tab-lowercase-label';
15
+ export declare function linkHintKey(href: string | null | undefined, target: string | null | undefined): LinkHintKey | null;
16
+ /** Whether `href` points at another origin than the page it is on. */
17
+ export declare function isExternalHref(href: string): boolean;
18
+ //# sourceMappingURL=link-hint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-hint.d.ts","sourceRoot":"","sources":["../../src/utilities/link-hint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,WAAW,GAAG,oCAAoC,GAAG,mCAAmC,GAAG,4CAA4C,CAAC;AAEpJ,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAQlH;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAUpD"}