@nldd/design-system 0.15.0 → 0.16.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 (186) hide show
  1. package/custom-elements.json +1201 -172
  2. package/dist/components/actions/button/button.d.ts +2 -17
  3. package/dist/components/actions/button/button.d.ts.map +1 -1
  4. package/dist/components/actions/button/button.js +10 -35
  5. package/dist/components/actions/button/button.js.map +1 -1
  6. package/dist/components/actions/icon-button/icon-button.d.ts +2 -1
  7. package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
  8. package/dist/components/actions/icon-button/icon-button.js +8 -2
  9. package/dist/components/actions/icon-button/icon-button.js.map +1 -1
  10. package/dist/components/actions/menu/menu.d.ts +9 -1
  11. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  12. package/dist/components/actions/menu/menu.js +11 -1
  13. package/dist/components/actions/menu/menu.js.map +1 -1
  14. package/dist/components/actions/split-button/split-button.d.ts +63 -34
  15. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  16. package/dist/components/actions/split-button/split-button.i18n.d.ts +1 -1
  17. package/dist/components/actions/split-button/split-button.i18n.js +1 -1
  18. package/dist/components/actions/split-button/split-button.i18n.js.map +1 -1
  19. package/dist/components/actions/split-button/split-button.js +116 -76
  20. package/dist/components/actions/split-button/split-button.js.map +1 -1
  21. package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
  22. package/dist/components/actions/split-button/split-button.styles.js +4 -0
  23. package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
  24. package/dist/components/actions/split-button/split-button.template.d.ts +2 -1
  25. package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
  26. package/dist/components/actions/split-button/split-button.template.js +25 -20
  27. package/dist/components/actions/split-button/split-button.template.js.map +1 -1
  28. package/dist/components/actions/toolbar/toolbar.story-sync.d.ts +13 -0
  29. package/dist/components/actions/toolbar/toolbar.story-sync.d.ts.map +1 -0
  30. package/dist/components/actions/toolbar/toolbar.story-sync.js +89 -0
  31. package/dist/components/actions/toolbar/toolbar.story-sync.js.map +1 -0
  32. package/dist/components/components.js +1202 -273
  33. package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
  34. package/dist/components/content/icon/icon-aliases.js +2 -0
  35. package/dist/components/content/icon/icon-aliases.js.map +1 -1
  36. package/dist/components/content/tooltip/tooltip.d.ts +8 -1
  37. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  38. package/dist/components/content/tooltip/tooltip.js +44 -5
  39. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  40. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  41. package/dist/components/content/tooltip/tooltip.styles.js +5 -0
  42. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  43. package/dist/components/{decorate-CzRe1eif.js → decorate-pEFCObfp.js} +1 -1
  44. package/dist/components/{defer-focus-DIPAUUJa.js → defer-focus-CkNrCf_g.js} +2 -2
  45. package/dist/components/{dev-checks-tdnaA2UV.js → dev-checks--aiYe9Pe.js} +85 -4
  46. package/dist/components/{icon-BPNDyhu9.js → icon-BQjRjtKH.js} +2 -1
  47. package/dist/components/{icon-button-Dbo_SGor.js → icon-button-BivCiIpt.js} +84 -12
  48. package/dist/components/index.d.ts +2 -0
  49. package/dist/components/index.d.ts.map +1 -1
  50. package/dist/components/index.js +2 -0
  51. package/dist/components/index.js.map +1 -1
  52. package/dist/components/inputs/checkbox/checkbox.d.ts +0 -5
  53. package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
  54. package/dist/components/inputs/checkbox/checkbox.js +0 -5
  55. package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
  56. package/dist/components/inputs/checkbox/checkbox.styles.js +9 -9
  57. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  58. package/dist/components/inputs/code-editor/code-editor.styles.js +6 -0
  59. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  60. package/dist/components/inputs/file-field/file-field.styles.js +17 -17
  61. package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -1
  62. package/dist/components/inputs/file-field/file-field.template.js +3 -2
  63. package/dist/components/inputs/file-field/file-field.template.js.map +1 -1
  64. package/dist/components/inputs/password-field/password-field.d.ts +5 -12
  65. package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
  66. package/dist/components/inputs/password-field/password-field.i18n.d.ts +8 -0
  67. package/dist/components/inputs/password-field/password-field.i18n.d.ts.map +1 -0
  68. package/dist/components/inputs/password-field/password-field.i18n.js +7 -0
  69. package/dist/components/inputs/password-field/password-field.i18n.js.map +1 -0
  70. package/dist/components/inputs/password-field/password-field.js +10 -23
  71. package/dist/components/inputs/password-field/password-field.js.map +1 -1
  72. package/dist/components/inputs/password-field/password-field.template.js +2 -2
  73. package/dist/components/inputs/password-field/password-field.template.js.map +1 -1
  74. package/dist/components/inputs/radio-button/radio-button.d.ts +0 -5
  75. package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
  76. package/dist/components/inputs/radio-button/radio-button.js +0 -5
  77. package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
  78. package/dist/components/inputs/radio-button/radio-button.styles.js +9 -9
  79. package/dist/components/inputs/slider/slider.d.ts +19 -4
  80. package/dist/components/inputs/slider/slider.d.ts.map +1 -1
  81. package/dist/components/inputs/slider/slider.js +87 -19
  82. package/dist/components/inputs/slider/slider.js.map +1 -1
  83. package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
  84. package/dist/components/inputs/slider/slider.styles.js +21 -6
  85. package/dist/components/inputs/slider/slider.styles.js.map +1 -1
  86. package/dist/components/inputs/slider/slider.template.js +1 -1
  87. package/dist/components/inputs/slider/slider.template.js.map +1 -1
  88. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +185 -0
  89. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts.map +1 -0
  90. package/dist/components/inputs/swatch-picker/swatch-picker.i18n.d.ts +22 -0
  91. package/dist/components/inputs/swatch-picker/swatch-picker.i18n.d.ts.map +1 -0
  92. package/dist/components/inputs/swatch-picker/swatch-picker.i18n.js +21 -0
  93. package/dist/components/inputs/swatch-picker/swatch-picker.i18n.js.map +1 -0
  94. package/dist/components/inputs/swatch-picker/swatch-picker.js +485 -0
  95. package/dist/components/inputs/swatch-picker/swatch-picker.js.map +1 -0
  96. package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts +3 -0
  97. package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts.map +1 -0
  98. package/dist/components/inputs/swatch-picker/swatch-picker.styles.js +177 -0
  99. package/dist/components/inputs/swatch-picker/swatch-picker.styles.js.map +1 -0
  100. package/dist/components/inputs/swatch-picker/swatch-picker.template.d.ts +6 -0
  101. package/dist/components/inputs/swatch-picker/swatch-picker.template.d.ts.map +1 -0
  102. package/dist/components/inputs/swatch-picker/swatch-picker.template.js +44 -0
  103. package/dist/components/inputs/swatch-picker/swatch-picker.template.js.map +1 -0
  104. package/dist/components/inputs/switch/switch.d.ts +0 -5
  105. package/dist/components/inputs/switch/switch.d.ts.map +1 -1
  106. package/dist/components/inputs/switch/switch.js +0 -5
  107. package/dist/components/inputs/switch/switch.js.map +1 -1
  108. package/dist/components/inputs/switch/switch.styles.js +2 -2
  109. package/dist/components/{just-in-time-education.i18n-BgCd3s-c.js → just-in-time-education.i18n-S05IOgqk.js} +30 -2
  110. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
  111. package/dist/components/layout/page-footer/page-footer.styles.js +11 -3
  112. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  113. package/dist/components/layout/page-sections/hero/hero.styles.js +1 -1
  114. package/dist/components/layout/popover/popover.d.ts +5 -3
  115. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  116. package/dist/components/layout/popover/popover.js +5 -3
  117. package/dist/components/layout/popover/popover.js.map +1 -1
  118. package/dist/components/layout/task-board/task-board.d.ts +8 -0
  119. package/dist/components/layout/task-board/task-board.d.ts.map +1 -1
  120. package/dist/components/layout/task-board/task-board.js +59 -0
  121. package/dist/components/layout/task-board/task-board.js.map +1 -1
  122. package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
  123. package/dist/components/lists-and-tables/list-item/list-item.js +1 -1
  124. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  125. package/dist/components/lists-and-tables/list-item/list-item.styles.js +0 -6
  126. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  127. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +1 -1
  128. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  129. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +5 -2
  130. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  131. package/dist/components/navigation/link-group/link-group.d.ts +47 -0
  132. package/dist/components/navigation/link-group/link-group.d.ts.map +1 -0
  133. package/dist/components/navigation/link-group/link-group.js +81 -0
  134. package/dist/components/navigation/link-group/link-group.js.map +1 -0
  135. package/dist/components/navigation/link-group/link-group.styles.d.ts +2 -0
  136. package/dist/components/navigation/link-group/link-group.styles.d.ts.map +1 -0
  137. package/dist/components/navigation/link-group/link-group.styles.js +60 -0
  138. package/dist/components/navigation/link-group/link-group.styles.js.map +1 -0
  139. package/dist/components/navigation/link-group/link-group.template.d.ts +3 -0
  140. package/dist/components/navigation/link-group/link-group.template.d.ts.map +1 -0
  141. package/dist/components/navigation/link-group/link-group.template.js +15 -0
  142. package/dist/components/navigation/link-group/link-group.template.js.map +1 -0
  143. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  144. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +7 -6
  145. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  146. package/dist/components/{nl.generated-D-8UF1iR.js → nl.generated-CUo20aPV.js} +3 -1
  147. package/dist/components/{visibility-mixin-CNCT26tu.js → visibility-mixin-Ce0goNS6.js} +1 -1
  148. package/dist/css/variables.css +3 -1
  149. package/dist/nldd.min.js +1074 -768
  150. package/dist/translations/en-US.d.ts.map +1 -1
  151. package/dist/translations/en-US.js +23 -1
  152. package/dist/translations/en-US.js.map +1 -1
  153. package/dist/translations/fy.d.ts +3 -3
  154. package/dist/translations/fy.d.ts.map +1 -1
  155. package/dist/translations/fy.js +38 -1
  156. package/dist/translations/fy.js.map +1 -1
  157. package/dist/translations/nl.generated.d.ts +23 -1
  158. package/dist/translations/nl.generated.d.ts.map +1 -1
  159. package/dist/translations/nl.generated.js +4 -0
  160. package/dist/translations/nl.generated.js.map +1 -1
  161. package/dist/translations/pap-AW.d.ts +3 -3
  162. package/dist/translations/pap-AW.d.ts.map +1 -1
  163. package/dist/translations/pap-AW.js +38 -1
  164. package/dist/translations/pap-AW.js.map +1 -1
  165. package/dist/translations/pap-CW.d.ts +3 -3
  166. package/dist/translations/pap-CW.d.ts.map +1 -1
  167. package/dist/translations/pap-CW.js +38 -1
  168. package/dist/translations/pap-CW.js.map +1 -1
  169. package/dist/types/vue.d.ts +111 -33
  170. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  171. package/dist/utilities/dev-rules.generated.js +90 -3
  172. package/dist/utilities/dev-rules.generated.js.map +1 -1
  173. package/dist/utilities/owner-form.d.ts +21 -0
  174. package/dist/utilities/owner-form.d.ts.map +1 -0
  175. package/dist/utilities/owner-form.js +39 -0
  176. package/dist/utilities/owner-form.js.map +1 -0
  177. package/dist/utilities/popover-target.d.ts +11 -0
  178. package/dist/utilities/popover-target.d.ts.map +1 -1
  179. package/dist/utilities/popover-target.js +27 -0
  180. package/dist/utilities/popover-target.js.map +1 -1
  181. package/dist/utilities/popup-anchor-controller.d.ts.map +1 -1
  182. package/dist/utilities/popup-anchor-controller.js +5 -1
  183. package/dist/utilities/popup-anchor-controller.js.map +1 -1
  184. package/lint/cli.js +4 -4
  185. package/lint/data.generated.json +1 -1
  186. package/package.json +13 -5
@@ -58,6 +58,7 @@ import type { NLDDInlineDialog } from '@nldd/design-system/inline-dialog';
58
58
  import type { NLDDJustInTimeEducation } from '@nldd/design-system/just-in-time-education';
59
59
  import type { NLDDKeyboardShortcut } from '@nldd/design-system/keyboard-shortcut';
60
60
  import type { NLDDLink } from '@nldd/design-system/link';
61
+ import type { NLDDLinkGroup } from '@nldd/design-system/link-group';
61
62
  import type { NLDDList } from '@nldd/design-system/list';
62
63
  import type { NLDDListItem } from '@nldd/design-system/list-item';
63
64
  import type { NLDDListItemSegment } from '@nldd/design-system/list-item-segment';
@@ -110,6 +111,8 @@ import type { NLDDStepBar } from '@nldd/design-system/step-bar';
110
111
  import type { NLDDStepBarItem } from '@nldd/design-system/step-bar';
111
112
  import type { NLDDStepCell } from '@nldd/design-system/step-cell';
112
113
  import type { NLDDStepper } from '@nldd/design-system/stepper';
114
+ import type { NLDDSwatchPicker } from '@nldd/design-system/swatch-picker';
115
+ import type { NLDDSwatchPickerItem } from '@nldd/design-system/swatch-picker';
113
116
  import type { NLDDSwitch } from '@nldd/design-system/switch';
114
117
  import type { NLDDSwitchField } from '@nldd/design-system/switch-field';
115
118
  import type { NLDDTabBar } from '@nldd/design-system/tab-bar';
@@ -363,7 +366,7 @@ declare module 'vue' {
363
366
  'popupType'?: NLDDButton['popupType'];
364
367
  /** Button type for form submission: 'button' | 'submit' | 'reset' (ignored when href is set) */
365
368
  'type'?: NLDDButton['type'];
366
- /** ID of a popover element this button invokes, looked up in the tree of this button; the inner button gets the element. Use the popoverTargetElement property instead when the popover lives in another tree. */
369
+ /** ID of a popover element this button invokes, looked up in the tree of this button; the inner button gets the element. Use the popoverTargetElement property instead when the popover lives in another tree. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`. */
367
370
  'popovertarget'?: NLDDButton['popovertarget'];
368
371
  /** 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. */
369
372
  'loading'?: NLDDButton['loading'];
@@ -1409,7 +1412,7 @@ declare module 'vue' {
1409
1412
  'popupType'?: NLDDIconButton['popupType'];
1410
1413
  /** Width mode: 'full' (stretches to container) or any CSS length (e.g. '240px') */
1411
1414
  'width'?: NLDDIconButton['width'];
1412
- /** ID of a popover element to toggle, looked up in the tree of this button; the inner <button> gets the element. */
1415
+ /** ID of a popover element to toggle, looked up in the tree of this button; the inner <button> gets the element. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`. */
1413
1416
  'popovertarget'?: NLDDIconButton['popovertarget'];
1414
1417
  /** Button text, used as aria-label and shown below the icon in lg size */
1415
1418
  'text'?: NLDDIconButton['text'];
@@ -1661,6 +1664,21 @@ declare module 'vue' {
1661
1664
  'translations'?: NLDDLink['translations'];
1662
1665
  };
1663
1666
 
1667
+ type NLDDLinkGroupProps = {
1668
+ /** Text size, set on every link in it: 'xs' | 'sm' | 'md' | 'lg' (default: 'md') */
1669
+ 'size'?: NLDDLinkGroup['size'];
1670
+ /** Layout direction: 'horizontal' (a row that wraps) | 'vertical' (default: 'horizontal') */
1671
+ 'orientation'?: NLDDLinkGroup['orientation'];
1672
+ /** Alignment of the links: 'left' | 'center' (default: 'left') */
1673
+ 'horizontal-alignment'?: NLDDLinkGroup['horizontalAlignment'];
1674
+ /** Alignment of the links: 'left' | 'center' (default: 'left') */
1675
+ 'horizontalAlignment'?: NLDDLinkGroup['horizontalAlignment'];
1676
+ /** Accessible name of the nav landmark */
1677
+ 'accessible-label'?: NLDDLinkGroup['accessibleLabel'];
1678
+ /** Accessible name of the nav landmark */
1679
+ 'accessibleLabel'?: NLDDLinkGroup['accessibleLabel'];
1680
+ };
1681
+
1664
1682
  type NLDDListProps = {
1665
1683
  /** Visual style (default 'simple'): `simple` is a plain vertical strip with no chrome, the two `box` values a framed card with rounded corners, fill and inset border ring. `box-tinted` for a list on a plain page, `box-base` for one on an already-tinted parent (the border ring gets +2 palette steps so it still reads against a card-on-card) */
1666
1684
  'appearance'?: NLDDList['appearance'];
@@ -1707,7 +1725,7 @@ declare module 'vue' {
1707
1725
  'accessibleLabel'?: NLDDListItem['accessibleLabel'];
1708
1726
  /** 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. */
1709
1727
  'reorderable'?: NLDDListItem['reorderable'];
1710
- /** Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it. A selected row sets `--context-selected-indicator-color` and `--context-selected-contrast-color` to its text and fill color, so a checked nldd-checkbox, nldd-radio-button or nldd-switch in it takes the colors of the row: on its gray the accent can fall below 3:1. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value; in a `listbox` parent it drives `aria-selected`. */
1728
+ /** 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`. */
1711
1729
  'selected'?: NLDDListItem['selected'];
1712
1730
  /** Checked state of a `checkbox` or `radio` row. A checkbox row toggles it on activation, a radio row only ever sets it */
1713
1731
  'checked'?: NLDDListItem['checked'];
@@ -1771,7 +1789,7 @@ declare module 'vue' {
1771
1789
  'popup-type'?: NLDDListItemSegment['popupType'];
1772
1790
  /** Type of popup this segment opens: 'menu' | 'listbox' | 'dialog' | 'tree' | 'grid'. Becomes aria-haspopup on the control and makes aria-expanded permanent, so a row of identical "more" segments says what it opens before anything is open. An nldd-menu or nldd-popover anchored here sets it itself from the first render. */
1773
1791
  'popupType'?: NLDDListItemSegment['popupType'];
1774
- /** ID of a popover this segment toggles, looked up in the tree of the segment; the inner button gets the element. The IDL counterparts `popoverTargetElement` and `popoverTargetAction` work across shadow boundaries, as on nldd-icon-button. */
1792
+ /** ID of a popover this segment toggles, looked up in the tree of the segment; the inner button gets the element. The IDL counterparts `popoverTargetElement` and `popoverTargetAction` work across shadow boundaries, as on nldd-icon-button. An nldd-menu or nldd-popover it points at is also positioned against this control, so it needs no `anchor`. */
1775
1793
  'popovertarget'?: NLDDListItemSegment['popovertarget'];
1776
1794
  /** Marks the segment as the current one, with `aria-current` set to `current-type`. The row it sits in paints itself as the current row from it, so on a segmented row this is the only place it has to be set. */
1777
1795
  'current'?: NLDDListItemSegment['current'];
@@ -1807,7 +1825,7 @@ declare module 'vue' {
1807
1825
  'accessible-label'?: NLDDMenu['accessibleLabel'];
1808
1826
  /** Name of the menu or listbox for assistive technology, on the element that has the role. Without it the menu takes the name of its anchor (the `accessible-label`, `aria-label`, `text` or text of the button or field it hangs off), and a submenu the text of the item that opens it, so a listbox under a search field is "Zoeken" rather than nameless (WCAG 4.1.2). The list of an nldd-combo-box or nldd-token-field takes the name of the field. */
1809
1827
  'accessibleLabel'?: NLDDMenu['accessibleLabel'];
1810
- /** ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a menu hung off a button. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead — same positioning, no toggle. */
1828
+ /** ID of the anchor element. Positions the menu against it AND makes it a toggle: the menu listens on document click and opens/closes itself when the click lands on the anchor. Use this for a trigger that is not an nldd component, such as a plain `<button>`. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment needs no anchor: put the menu in its `popup` slot, or point its `popovertarget` at the menu, and it anchors and opens the menu itself. For a menu you open yourself (a type-ahead under a text field, say), set the `anchorElement` property instead — same positioning, no toggle. */
1811
1829
  'anchor'?: NLDDMenu['anchor'];
1812
1830
  /** Floating UI placement. Default: 'bottom-start'. */
1813
1831
  'placement'?: NLDDMenu['placement'];
@@ -2294,22 +2312,8 @@ declare module 'vue' {
2294
2312
  'disabled'?: NLDDPasswordField['disabled'];
2295
2313
  /** Whether the password is masked (default: true) */
2296
2314
  'masked'?: NLDDPasswordField['masked'];
2297
- /** Visible toggle button text when masked (default: 'Toon') */
2298
- 'show-button-text'?: NLDDPasswordField['showButtonText'];
2299
- /** Visible toggle button text when masked (default: 'Toon') */
2300
- 'showButtonText'?: NLDDPasswordField['showButtonText'];
2301
- /** Visible toggle button text when unmasked (default: 'Verberg') */
2302
- 'hide-button-text'?: NLDDPasswordField['hideButtonText'];
2303
- /** Visible toggle button text when unmasked (default: 'Verberg') */
2304
- 'hideButtonText'?: NLDDPasswordField['hideButtonText'];
2305
- /** aria-label for toggle when masked (default: 'Toon wachtwoord') */
2306
- 'show-button-accessible-label'?: NLDDPasswordField['showButtonAccessibleLabel'];
2307
- /** aria-label for toggle when masked (default: 'Toon wachtwoord') */
2308
- 'showButtonAccessibleLabel'?: NLDDPasswordField['showButtonAccessibleLabel'];
2309
- /** aria-label for toggle when unmasked (default: 'Verberg wachtwoord') */
2310
- 'hide-button-accessible-label'?: NLDDPasswordField['hideButtonAccessibleLabel'];
2311
- /** aria-label for toggle when unmasked (default: 'Verberg wachtwoord') */
2312
- 'hideButtonAccessibleLabel'?: NLDDPasswordField['hideButtonAccessibleLabel'];
2315
+ /** Override translation keys; unset keys fall back to Dutch */
2316
+ 'translations'?: NLDDPasswordField['translations'];
2313
2317
  /** Readonly state */
2314
2318
  'readonly'?: NLDDPasswordField['readonly'];
2315
2319
  /** Required state */
@@ -2944,14 +2948,30 @@ declare module 'vue' {
2944
2948
  type NLDDSplitButtonProps = {
2945
2949
  /** Button size: 'xs' | 'sm' | 'md' | 'lg' (default: 'md') */
2946
2950
  'size'?: NLDDSplitButton['size'];
2947
- /** Visual style (default: 'neutral-tinted'; 'inherit-tinted' and 'inherit-filled' for a colored surface) */
2951
+ /** Visual style: 'neutral-tinted' (default) | 'neutral-base' | 'accent-filled' | 'primary' | 'secondary' | 'inherit-tinted' | 'inherit-filled'. 'primary' is 'accent-filled' and 'secondary' is 'neutral-tinted'. The inherit appearances are for a colored surface. There are no transparent appearances: the split button needs a surface of its own to show it is one control. */
2948
2952
  'appearance'?: NLDDSplitButton['appearance'];
2949
2953
  /** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
2950
2954
  'disabled'?: NLDDSplitButton['disabled'];
2955
+ /** Loading state of the main action, as on nldd-button. The chevron stays available. */
2956
+ 'loading'?: NLDDSplitButton['loading'];
2957
+ /** What the screen reader announces while `loading` is on, as on nldd-button. */
2958
+ 'loading-text'?: NLDDSplitButton['loadingText'];
2959
+ /** What the screen reader announces while `loading` is on, as on nldd-button. */
2960
+ 'loadingText'?: NLDDSplitButton['loadingText'];
2951
2961
  /** Width mode: 'full' (stretches to container) or any CSS length; the main action button fills the available space */
2952
2962
  'width'?: NLDDSplitButton['width'];
2953
2963
  /** Button text for the primary action */
2954
2964
  'text'?: NLDDSplitButton['text'];
2965
+ /** Icon name shown before the text on the primary action button */
2966
+ 'icon'?: NLDDSplitButton['icon'];
2967
+ /** What the main action does in a form: 'button' (default) | 'submit' | 'reset'. Ignored when `href` is set. */
2968
+ 'type'?: NLDDSplitButton['type'];
2969
+ /** Turns the main action into a link, as on nldd-button. */
2970
+ 'href'?: NLDDSplitButton['href'];
2971
+ /** Saves the file `href` points at instead of opening it, as on nldd-button. Only used with `href`. */
2972
+ 'download'?: NLDDSplitButton['download'];
2973
+ /** ID of an `nldd-menu` or `nldd-popover` elsewhere in this tree that the chevron opens, for an overlay that cannot be a child. A slotted overlay wins. */
2974
+ 'popovertarget'?: NLDDSplitButton['popovertarget'];
2955
2975
  /** Keyboard shortcut hint for the primary action, shown right after its text, e.g. 'Cmd+S'. Forwarded to the inner nldd-button; display only, wire up the handling in your app. */
2956
2976
  'shortcut'?: NLDDSplitButton['shortcut'];
2957
2977
  /** Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`). */
@@ -2966,14 +2986,14 @@ declare module 'vue' {
2966
2986
  'shortcut-linux'?: NLDDSplitButton['shortcutLinux'];
2967
2987
  /** Override of `shortcut` on Linux (falls back to `shortcut`). */
2968
2988
  'shortcutLinux'?: NLDDSplitButton['shortcutLinux'];
2969
- /** Icon name shown before the text on the primary action button */
2970
- 'icon'?: NLDDSplitButton['icon'];
2971
2989
  /** Translations; unset keys fall back to Dutch */
2972
2990
  'translations'?: NLDDSplitButton['translations'];
2991
+ /** Id of the form the main action submits or resets, for a split button outside it. Takes an `nldd-form` as well as a plain `<form>`, as on nldd-button. */
2992
+ 'form'?: NLDDSplitButton['form'];
2993
+ /** Direct reference to that overlay, for one in another tree. */
2994
+ 'popoverTargetElement'?: NLDDSplitButton['popoverTargetElement'];
2973
2995
  /** Fired when the main button is clicked */
2974
2996
  'onActionClick'?: (event: CustomEvent) => void;
2975
- /** Fired when the dropdown trigger is clicked and no overlay is slotted */
2976
- 'onMenuClick'?: (event: CustomEvent) => void;
2977
2997
  };
2978
2998
 
2979
2999
  type NLDDSplitViewDividerProps = {
@@ -3111,6 +3131,60 @@ declare module 'vue' {
3111
3131
  'onChange'?: (event: CustomEvent) => void;
3112
3132
  };
3113
3133
 
3134
+ type NLDDSwatchPickerProps = {
3135
+ /** Swatch size, on the control scale: 'xs' (24px) | 'sm' (32px) | 'md' (44px) (default: 'md') */
3136
+ 'size'?: NLDDSwatchPicker['size'];
3137
+ /** Accessible name for the group, set as aria-label. In an nldd-form-field the field names it. */
3138
+ 'accessible-label'?: NLDDSwatchPicker['accessibleLabel'];
3139
+ /** Accessible name for the group, set as aria-label. In an nldd-form-field the field names it. */
3140
+ 'accessibleLabel'?: NLDDSwatchPicker['accessibleLabel'];
3141
+ /** Id of an external label element, set as aria-labelledby on the group */
3142
+ 'accessible-labeled-by'?: NLDDSwatchPicker['accessibleLabeledBy'];
3143
+ /** Id of an external label element, set as aria-labelledby on the group */
3144
+ 'accessibleLabeledBy'?: NLDDSwatchPicker['accessibleLabeledBy'];
3145
+ /** Marks the group as invalid. Announced with aria-invalid; nothing is drawn for it. */
3146
+ 'invalid'?: NLDDSwatchPicker['invalid'];
3147
+ /** Disabled state for all swatches */
3148
+ 'disabled'?: NLDDSwatchPicker['disabled'];
3149
+ /** Name for form submission */
3150
+ 'name'?: NLDDSwatchPicker['name'];
3151
+ /** Value of the chosen swatch */
3152
+ 'value'?: NLDDSwatchPicker['value'];
3153
+ /** Something has to be chosen */
3154
+ 'required'?: NLDDSwatchPicker['required'];
3155
+ 'internals'?: NLDDSwatchPicker['internals'];
3156
+ /** When the choice changes; detail: { value: string } */
3157
+ 'onChange'?: (event: CustomEvent) => void;
3158
+ };
3159
+
3160
+ type NLDDSwatchPickerItemProps = {
3161
+ /** Category color: 'lintblauw' | 'donkerblauw' | 'hemelblauw' | 'lichtblauw' | 'paars' | 'violet' | 'robijnrood' | 'roze' | 'rood' | 'oranje' | 'donkergeel' | 'geel' | 'donkerbruin' | 'bruin' | 'donkergroen' | 'groen' | 'mosgroen' | 'mintgroen'. Brings its name along, so `text` is optional. */
3162
+ 'color'?: NLDDSwatchPickerItem['color'];
3163
+ /** Any CSS color of your own (e.g. '#7a1f3d' or 'var(--brand-color)'), for a color outside the categories. Needs `text`. */
3164
+ 'custom-color'?: NLDDSwatchPickerItem['customColor'];
3165
+ /** Any CSS color of your own (e.g. '#7a1f3d' or 'var(--brand-color)'), for a color outside the categories. Needs `text`. */
3166
+ 'customColor'?: NLDDSwatchPickerItem['customColor'];
3167
+ /** URL of an image that fills the swatch, for a pattern or a material. Needs `text`. */
3168
+ 'image'?: NLDDSwatchPickerItem['image'];
3169
+ /** Sources of the image at other pixel densities, with x descriptors (e.g. '/oak.jpg 1x, /oak@2x.jpg 2x'). The swatch has a fixed size, so there are no widths to choose from. */
3170
+ 'image-srcset'?: NLDDSwatchPickerItem['imageSrcset'];
3171
+ /** Sources of the image at other pixel densities, with x descriptors (e.g. '/oak.jpg 1x, /oak@2x.jpg 2x'). The swatch has a fixed size, so there are no widths to choose from. */
3172
+ 'imageSrcset'?: NLDDSwatchPickerItem['imageSrcset'];
3173
+ /** Name of the swatch, for screen readers and the tooltip. Overrides the name of a category `color`. */
3174
+ 'text'?: NLDDSwatchPickerItem['text'];
3175
+ /** Whether this swatch is chosen (set by the picker) */
3176
+ 'selected'?: NLDDSwatchPickerItem['selected'];
3177
+ /** Disabled state */
3178
+ 'disabled'?: NLDDSwatchPickerItem['disabled'];
3179
+ /** Value for this swatch */
3180
+ 'value'?: NLDDSwatchPickerItem['value'];
3181
+ /** Swatch size: 'xs' | 'sm' | 'md' (set by the picker, default: 'md') */
3182
+ 'size'?: NLDDSwatchPickerItem['size'];
3183
+ /** Override translation keys (the names of the category colors); unset keys fall back to Dutch. */
3184
+ 'translations'?: NLDDSwatchPickerItem['translations'];
3185
+ 'onItemChange'?: (event: CustomEvent) => void;
3186
+ };
3187
+
3114
3188
  type NLDDSwitchProps = {
3115
3189
  /** Name for form submission; nothing is submitted when the switch is off */
3116
3190
  'name'?: NLDDSwitch['name'];
@@ -3910,7 +3984,7 @@ declare module 'vue' {
3910
3984
  'open'?: NLDDTooltip['open'];
3911
3985
  /** Position: 'top' | 'bottom' | 'left' | 'right' (default: 'bottom'; automatically 'top' on touch devices) */
3912
3986
  'placement'?: NLDDTooltip['placement'];
3913
- /** When the tooltip appears on hover: 'instant' — right away, without a show delay. 'delay' (the default) — after the standard show delay (700ms). 'never' — the tooltip is never shown; hover and focus events are ignored, aria-describedby is suppressed, and a tooltip that is already visible disappears. The hide delay and the touch suppression stay in force under every value. A focus trigger is always instant. */
3987
+ /** When the tooltip appears on hover: 'instant' — right away, without a show delay or a fade, also on the way out. 'delay' (the default) — after the standard show delay (700ms). 'never' — the tooltip is never shown; hover and focus events are ignored, aria-describedby is suppressed, and a tooltip that is already visible disappears. The hide delay and the touch suppression stay in force under every value. A focus trigger is always instant. */
3914
3988
  'timing'?: NLDDTooltip['timing'];
3915
3989
  /** When a user presses Escape while `open=true`. The consumer owns the open lifecycle from there (we cannot clear `open` on our own), so this event is the consumer's chance to set `open` back to `false`. WCAG 1.4.13: a persistent hover or focus overlay has to be dismissible without moving focus. */
3916
3990
  'onNlddTooltipDismiss'?: (event: CustomEvent) => void;
@@ -4146,7 +4220,6 @@ declare module 'vue' {
4146
4220
  'nldd-card': DefineComponent<NLDDCardProps>;
4147
4221
  /** A generic cell for wrapping arbitrary content in a list item. Controls vertical alignment and sizing without imposing content opinions. For more than a line of text, such as paragraphs or markup, put an `nldd-rich-text` in it rather than loose text in the row. `vertical-alignment="center"` (default) stretches the cell to fill the full row height and centers its content within that space. Use `min-height` to set a minimum centered region. For strict top alignment without a minimum height, use `vertical-alignment="top"`. */
4148
4222
  'nldd-cell': DefineComponent<NLDDCellProps>;
4149
- /** On a selected row of nldd-list-item a checked control takes the colors of the row: the row sets `--context-selected-indicator-color` and `--context-selected-contrast-color`, because the accent can fall below 3:1 on the gray of a selected row. */
4150
4223
  'nldd-checkbox': DefineComponent<NLDDCheckboxProps>;
4151
4224
  /** A checkbox with an inline label for use in forms. Form-associated: participates in native form submission under `name` with `value` when checked (the inner nldd-checkbox sits in the shadow root and never joins the consumer's form; the field submits on its behalf). */
4152
4225
  'nldd-checkbox-field': DefineComponent<NLDDCheckboxFieldProps>;
@@ -4207,6 +4280,8 @@ declare module 'vue' {
4207
4280
  'nldd-keyboard-shortcut': DefineComponent<NLDDKeyboardShortcutProps>;
4208
4281
  /** Hyperlink component with two modes: 1. **Standalone (sized)**: set `size="xs"|"sm"|"md"|"lg"` for menus, action areas or overviews. Fixed text size, `display: inline-flex` with `gap` for icon spacing. 2. **Inline (inherit)**: leave `size` out or set `size="inherit"` explicitly. The link inherits `font-size`, `line-height` and `font-family` from its surroundings. Text wraps naturally across lines (`display: inline`). Icons work here too; the natural whitespace between icon and text provides the spacing. For links in CMS or markdown output, where the `<a>` arrives as HTML, `<nldd-rich-text>` with a raw `<a>` remains the route to take. */
4209
4282
  'nldd-link': DefineComponent<NLDDLinkProps>;
4283
+ /** A set of related `nldd-link` elements, such as the links under the name of a service in a footer or the links to the other parts of a site. The links sit in a row that wraps onto the next line when they do not fit, or stacked with `orientation="vertical"`. With `horizontal-alignment="center"` the whole set is centered, line by line, so a short list reads as one cloud in the middle. The group is a `nav` landmark with the links as a list, so a screen reader says how many there are. Give it an `accessible-label` as soon as a page has more than one `nav`, so each landmark can be told apart. The group sets its `size` on every link in it: links in one group are the same size. */
4284
+ 'nldd-link-group': DefineComponent<NLDDLinkGroupProps>;
4210
4285
  /** 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. */
4211
4286
  'nldd-list': DefineComponent<NLDDListProps>;
4212
4287
  /** 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`). */
@@ -4250,7 +4325,7 @@ declare module 'vue' {
4250
4325
  'nldd-pagination': DefineComponent<NLDDPaginationProps>;
4251
4326
  /** A password input field with visibility toggle and validation states. */
4252
4327
  'nldd-password-field': DefineComponent<NLDDPasswordFieldProps>;
4253
- /** A non-modal floating panel anchored to a trigger element. Built on the native Popover API (popover="auto") with Floating UI for positioning. The browser handles opening, toggling and light dismiss; this component only handles positioning and focus. The recommended use is through popovertarget, so the browser owns the toggle: <nldd-button id="info-trigger" popovertarget="info-popover">Info</nldd-button> <nldd-popover id="info-popover" anchor="info-trigger" accessible-label="Info"> <nldd-container> <p>Content of the popover.</p> </nldd-container> </nldd-popover> To open it from your own state instead, bind `open` together with the close event: the popover clears `open` itself on light dismiss, Escape or a click on its anchor. It needs that anchor to open against. For a custom focus target inside the popover, put `autofocus` on the child you want. Without it the popover host itself takes focus. On md and up the popover closes with Escape or a click outside it, and that click goes on to what it lands on, as with any native popover: the page has no backdrop and stays in use, so a click on another control does what it says in one go. It needs no close button of its own. Content that does, because a stray click must not close it (a form, a few steps, work you would lose), is more than a popover holds: use an nldd-sheet. nldd-just-in-time-education is the exception, a manual popover that stays until it is dismissed. On sm the popover is a bottom sheet with a dimmed backdrop, which closes with Escape or a tap outside it. That tap stops at the backdrop, as on every native sheet: the dimming says the page is out of play. Where that is not enough, give its content a title bar of its own, as in a sheet: an nldd-page with an nldd-top-title-bar and a `dismiss-text`. The popover catches the dismiss of that bar and closes. It draws no bar itself. */
4328
+ /** A non-modal floating panel anchored to a trigger element. Built on the native Popover API (popover="auto") with Floating UI for positioning. The browser handles opening, toggling and light dismiss; this component only handles positioning and focus. The recommended use is through popovertarget, so the browser owns the toggle. An nldd-button, nldd-icon-button, nldd-split-button or nldd-list-item-segment also positions the popover against itself, so the popover needs no `anchor`: <nldd-button popovertarget="info-popover">Info</nldd-button> <nldd-popover id="info-popover" accessible-label="Info"> <nldd-container> <p>Content of the popover.</p> </nldd-container> </nldd-popover> To open it from your own state instead, bind `open` together with the close event: the popover clears `open` itself on light dismiss, Escape or a click on its anchor. It needs that anchor to open against. For a custom focus target inside the popover, put `autofocus` on the child you want. Without it the popover host itself takes focus. On md and up the popover closes with Escape or a click outside it, and that click goes on to what it lands on, as with any native popover: the page has no backdrop and stays in use, so a click on another control does what it says in one go. It needs no close button of its own. Content that does, because a stray click must not close it (a form, a few steps, work you would lose), is more than a popover holds: use an nldd-sheet. nldd-just-in-time-education is the exception, a manual popover that stays until it is dismissed. On sm the popover is a bottom sheet with a dimmed backdrop, which closes with Escape or a tap outside it. That tap stops at the backdrop, as on every native sheet: the dimming says the page is out of play. Where that is not enough, give its content a title bar of its own, as in a sheet: an nldd-page with an nldd-top-title-bar and a `dismiss-text`. The popover catches the dismiss of that bar and closes. It draws no bar itself. */
4254
4329
  'nldd-popover': DefineComponent<NLDDPopoverProps>;
4255
4330
  /** Exports both NLDDProgressBar and NLDDProgressBarSegmentIndicator. A progress bar that supports a single value (loading-style) or multiple segments (multi-stage progress, or distribution like storage usage). The consumer provides raw values; the component computes percentages from `max`. Two variants: - `progress` (default): segments sum toward `max`; remaining space is empty track. ARIA reads "X% voltooid". - `distribution`: segments fill the bar; ARIA enumerates segments. If the sum of segment values exceeds `max`, segments are normalized proportionally to fit and a warning is logged. */
4256
4331
  'nldd-progress-bar': DefineComponent<NLDDProgressBarProps>;
@@ -4258,7 +4333,7 @@ declare module 'vue' {
4258
4333
  /** Exports both NLDDProgressCircle and NLDDProgressCircleSegmentIndicator. A circular progress indicator that mirrors the API of nldd-progress-bar: single-value or multi-segment, progress or distribution variant, 24 colors, fade transitions between determinate/indeterminate, indeterminate indicator. Visual differences vs the bar: - SVG arcs instead of rectangular bars. - Label below the circle (not above). - No center text; the consumer can wrap the circle if needed. - One combined tooltip on the whole circle showing all segment info (no per-segment tooltips). - Indeterminate uses a rotating elastic arc (Material-style) instead of the bar's Knight Rider scanner. */
4259
4334
  'nldd-progress-circle': DefineComponent<NLDDProgressCircleProps>;
4260
4335
  'nldd-progress-circle-segment-indicator': DefineComponent<NLDDProgressCircleSegmentIndicatorProps>;
4261
- /** WAI-ARIA: put the buttons of one group in a container with role="radiogroup" and a name of its own. A screen reader counts the options from that container, so a bare <fieldset> (which is a group, not a radiogroup) leaves them uncounted. nldd-radio-button-group does this for you. Radio buttons with the same name, in the same form and the same tree, form one group the way native radios do: checking one unchecks the others, the arrow keys move between them, Tab stops at the group once, and a screen reader hears each one's place in it. The element itself is the radio, because an input per shadow root would leave every button a group of one. The shape is all this component draws. A radio with a label beside it is nldd-radio-button-field. <fieldset role="radiogroup" aria-labelledby="options-label"> <legend id="options-label">Kies een optie</legend> <nldd-radio-button name="options" value="1" accessible-label="Optie 1"></nldd-radio-button> <nldd-radio-button name="options" value="2" accessible-label="Optie 2"></nldd-radio-button> </fieldset> On a selected row of nldd-list-item a checked control takes the colors of the row: the row sets `--context-selected-indicator-color` and `--context-selected-contrast-color`, because the accent can fall below 3:1 on the gray of a selected row. */
4336
+ /** WAI-ARIA: put the buttons of one group in a container with role="radiogroup" and a name of its own. A screen reader counts the options from that container, so a bare <fieldset> (which is a group, not a radiogroup) leaves them uncounted. nldd-radio-button-group does this for you. Radio buttons with the same name, in the same form and the same tree, form one group the way native radios do: checking one unchecks the others, the arrow keys move between them, Tab stops at the group once, and a screen reader hears each one's place in it. The element itself is the radio, because an input per shadow root would leave every button a group of one. The shape is all this component draws. A radio with a label beside it is nldd-radio-button-field. <fieldset role="radiogroup" aria-labelledby="options-label"> <legend id="options-label">Kies een optie</legend> <nldd-radio-button name="options" value="1" accessible-label="Optie 1"></nldd-radio-button> <nldd-radio-button name="options" value="2" accessible-label="Optie 2"></nldd-radio-button> </fieldset> */
4262
4337
  'nldd-radio-button': DefineComponent<NLDDRadioButtonProps>;
4263
4338
  /** A radio button with an inline label. Use inside nldd-radio-button-group, which sets the name and labels the group. Fields that stand on their own group by name, the way native radios do: checking one unchecks the others, the arrow keys move between them and Tab stops at the group once. Put them in a container with role="radiogroup", or a screen reader has nothing to count them from. The field is the radio: it carries the role, the state, the label it is announced by and the focus, and the nldd-radio-button inside only draws the shape. A radio of its own in there would be a second control inside a control, and a group of one to count. Form-associated: the checked field submits its `value` under `name`. Unchecking siblings is the group's job, so exactly one value per group reaches the form. */
4264
4339
  'nldd-radio-button-field': DefineComponent<NLDDRadioButtonFieldProps>;
@@ -4283,13 +4358,13 @@ declare module 'vue' {
4283
4358
  'nldd-simple-section': DefineComponent<NLDDSimpleSectionProps>;
4284
4359
  /** Accessibility pattern that lets keyboard users skip past content. Wraps content in a default slot. Not only for the header of a page. Any block with many stops that someone on a keyboard often wants to get past can have one: a set of filters, a long toolbar, a table of contents. Keep it to blocks like that; a skip link before every section is one more stop on the way, not one less. Without href it moves focus to the first rendered element after the skip link, so the next Tab lands on the first link or button in it. An element that is not rendered, such as a `<noscript>`, a `<script>` or anything hidden, is passed over. Make sure a rendered element follows the component, otherwise the skip link has no effect. With an `href` that points at an id on the same page, the link scrolls to that element and moves focus to it too. The target needs no `tabindex` of its own. An href to another page is left to the browser. The component cannot know what it skips, so its default text only says "Sla over". Name it with `text`: "Sla navigatie over", "Sla filters over". */
4285
4360
  'nldd-skip-link': DefineComponent<NLDDSkipLinkProps>;
4286
- /** A value picked along a track, by dragging its thumb, pressing the track or with the arrow keys. With `range` it picks a range instead, with a thumb for each end. The names follow Apple's: the track, the thumb, and the minimum track, the part filled up to the thumb, or between the thumbs of a range. A slider is for a value that may be roughly right, such as a filter ("a price between …"). For a value that has to be exact, an `nldd-number-field` is easier: a thumb is hard to put on one number, the more so with a hand that is not steady. It is built on native range inputs, so the keyboard (arrows, Page Up and Page Down, Home and End), touch, the form and a screen reader work as they do for any slider. A range is two of them over each other, each with its own name for a screen reader ("Prijs, minimum"), and a press on the track moves the nearer thumb there. The thumbs do not pass each other; where they lie on one value, the first move picks one, to the left the start one. The value shows in a tooltip above the thumb while the pointer is over the slider or its icons, while a thumb has keyboard focus and while it or an icon is pressed; with `tooltip-timing="never"` it does not, for a slider whose value already shows elsewhere. Where the two tooltips of a range would overlap, they show as one ("200 – 1.200"). `formatValue` turns a number into the text of the tooltip and of what a screen reader hears, such as `(value) => \`€ ${value}\``; without it the number is written in the language of the page (`lang`), and in Dutch where none is set. `histogram` draws counts as bars above the track, such as how many results there are at each price, so the range can be chosen with the spread in view. Give one count per bucket: n counts split min to max into n equal buckets of (max - min) / n, the first count for the first bucket. Only the proportions matter (the highest count is the full height), a 0 is an empty bucket, and 20 to 40 buckets read best, whatever the `step`. A bar whose middle lies within the chosen value or range is colored. The bars are decoration for a screen reader: say what they show in the text around it. A larger step than the arrow keys take is a tenth of the range, and at least one `step`: what Page Up and Page Down do, what Shift with an arrow key does (a Mac keyboard has no Page Up), and what a click on `start-icon` or `end-icon` does. The icons stay out of the tab order and out of the accessibility tree, because the keyboard already has those keys. In a range they only explain the ends, since a click could not say which thumb to move. In a form a slider submits its value under `name`; a range submits both ends under it, the start first. */
4361
+ /** A value picked along a track, by dragging its thumb, pressing the track or with the arrow keys. With `range` it picks a range instead, with a thumb for each end. The names follow Apple's: the track, the thumb, and the minimum track, the part filled up to the thumb, or between the thumbs of a range. A slider is for a value that may be roughly right, such as a filter ("a price between …"). For a value that has to be exact, an `nldd-number-field` is easier: a thumb is hard to put on one number, the more so with a hand that is not steady. It is built on native range inputs, so the keyboard (arrows, Page Up and Page Down, Home and End), touch, the form and a screen reader work as they do for any slider. A range is two of them over each other, each with its own name for a screen reader ("Prijs, minimum"), and a press on the track moves the nearer thumb there. A thumb dragged or moved with an arrow key (also with Shift) past the other one becomes that end of the range, and focus goes with it, so its name still says which end it is. Home, End, Page Up and Page Down stop at the other thumb, so they never turn the range around. Where the thumbs lie on one value, the first move picks one, to the left the start one. The value shows in a tooltip above the thumb while the pointer is over the slider or its icons, while a thumb has keyboard focus and while it or an icon is pressed; with `tooltip-timing="never"` it does not, for a slider whose value already shows elsewhere. Where the two tooltips of a range would overlap, they show as one ("200 – 1.200"). `formatValue` turns a number into the text of the tooltip and of what a screen reader hears, such as `(value) => \`€ ${value}\``; without it the number is written in the language of the page (`lang`), and in Dutch where none is set. `histogram` draws counts as bars above the track, such as how many results there are at each price, so the range can be chosen with the spread in view. Give one count per bucket: n counts split min to max into n equal buckets of (max - min) / n, the first count for the first bucket. Only the proportions matter (the highest count is the full height), a 0 is an empty bucket, and 20 to 40 buckets read best, whatever the `step`. A bar whose middle lies within the chosen value or range is colored. The bars are decoration for a screen reader: say what they show in the text around it. A larger step than the arrow keys take is a tenth of the range, and at least one `step`: what Page Up and Page Down do, what Shift with an arrow key does (a Mac keyboard has no Page Up), and what a click on `start-icon` or `end-icon` does. The icons stay out of the tab order and out of the accessibility tree, because the keyboard already has those keys. In a range they only explain the ends, since a click could not say which thumb to move. In a form a slider submits its value under `name`; a range submits both ends under it, the start first. */
4287
4362
  'nldd-slider': DefineComponent<NLDDSliderProps>;
4288
4363
  /** Add explicit space between elements. Components here have no margins of their own — all whitespace is set by a spacer. A spacer is fixed space between two different things. For padding around an area, or the gaps between the children of one area, use `nldd-container` with `padding` and `gap` instead. A `gap` sets one distance for every child, which is right while the children are of one kind: a row of buttons, a set of cards, the fields of a form. Put different kinds under each other and the right distance differs per seam, so set each one where it happens with a spacer. A heading over a list is the common case: the space under the heading should be smaller than the space above it, which keeps the heading with what it labels. A gap cannot tell the two apart, and evening them out reads as a strip of loose lines. Use a single `size` attribute for whitespace that's the same at every viewport. Combine with `sm-size`, `md-size` and/or `lg-size` to override the size at specific breakpoints (mobile-first cascade is intentionally avoided — each breakpoint that needs a different value declares it explicitly): - `size` applies at every breakpoint that has no per-viewport override. - `sm-size` overrides at sm (max-width: 640px). - `md-size` overrides at md (641px–1007px). - `lg-size` overrides at lg (min-width: 1008px). Use `flexible` (in any of the four attributes) to fill the remaining space in a flex container. */
4289
4364
  'nldd-spacer': DefineComponent<NLDDSpacerProps>;
4290
4365
  /** A cell component that provides fixed horizontal spacing within list items. */
4291
4366
  'nldd-spacer-cell': DefineComponent<NLDDSpacerCellProps>;
4292
- /** A split button combines a primary action button with a dropdown trigger. The main button performs the default action, while the icon button opens a menu or popover. Provide the dropdown by slotting an `nldd-menu` (with its `nldd-menu-item` / `nldd-menu-divider` children) or an `nldd-popover` directly: ```html <nldd-split-button text="Opslaan"> <nldd-menu> <nldd-menu-item text="Opslaan als…"></nldd-menu-item> </nldd-menu> </nldd-split-button> ``` The slotted overlay stays in the light DOM — no item-moving — so consumers keep their references and the full overlay API. The split-button anchors it to the chevron and opens it on click. When no overlay is slotted, the chevron dispatches `menu-click` and the consumer manages their own popover. */
4367
+ /** A split button combines a primary action with a chevron that opens its alternatives. The main button performs the default action; the chevron opens a menu or popover of variants of that same action. The overlay is required. Put an `nldd-menu` or `nldd-popover` in the `popup` slot, as on nldd-button and nldd-icon-button: ```html <nldd-split-button text="Bewaar"> <nldd-menu slot="popup"> <nldd-menu-item text="Opslaan als…"></nldd-menu-item> </nldd-menu> </nldd-split-button> ``` The split button has no other slots, so an overlay without `slot="popup"` works too. When both hold one, the one in `popup` wins. For an overlay that lives elsewhere, point `popovertarget` at it instead. The chevron is the overlay's invoker: it anchors it, opens and closes it, and takes `aria-expanded` and `aria-haspopup` from it, exactly as an nldd-icon-button with a slotted overlay does. Its accessible name says which action it belongs to ("Meer opties voor Bewaar"). The API is narrower than nldd-button on purpose: a split button is an action with variants, so it has no supporting text, no end icon and no link target. Its label always stays on one line, without an ellipsis: keep it short. */
4293
4368
  'nldd-split-button': DefineComponent<NLDDSplitButtonProps>;
4294
4369
  /** A divider line between panels in a split view. The divider runs from edge to edge in the direction perpendicular to the orientation. An optional drag handle indicates that the divider is draggable (future functionality). */
4295
4370
  'nldd-split-view-divider': DefineComponent<NLDDSplitViewDividerProps>;
@@ -4307,7 +4382,10 @@ declare module 'vue' {
4307
4382
  'nldd-step-cell': DefineComponent<NLDDStepCellProps>;
4308
4383
  /** A numeric control with increment and decrement buttons. */
4309
4384
  'nldd-stepper': DefineComponent<NLDDStepperProps>;
4310
- /** A toggle control for on/off settings. Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label. Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility. On a selected row of nldd-list-item a checked control takes the colors of the row: the row sets `--context-selected-indicator-color` and `--context-selected-contrast-color`, because the accent can fall below 3:1 on the gray of a selected row. */
4385
+ /** A row of swatches to choose one from: a color, or an image of a pattern or a material. The row wraps onto the next line when the swatches do not fit. It is a radio group: Tab enters and leaves it in one stop, the arrow keys choose, and the value goes with a form under `name`. The chosen swatch shows a check mark. Put it in an `nldd-form-field`, which names the group. Every swatch needs a name, since a color or an image says nothing to a screen reader. A swatch with a category `color` takes the name of that color from the translations ("Rood"); one with a `custom-color` or an `image` has to say it in `text`. The name shows as a tooltip. Exports both NLDDSwatchPicker and NLDDSwatchPickerItem. */
4386
+ 'nldd-swatch-picker': DefineComponent<NLDDSwatchPickerProps>;
4387
+ 'nldd-swatch-picker-item': DefineComponent<NLDDSwatchPickerItemProps>;
4388
+ /** A toggle control for on/off settings. Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label. Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility. */
4311
4389
  'nldd-switch': DefineComponent<NLDDSwitchProps>;
4312
4390
  /** A switch toggle with an inline label for use in forms. */
4313
4391
  'nldd-switch-field': DefineComponent<NLDDSwitchFieldProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"dev-rules.generated.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-rules.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,QAAQ,EAAE,OAAO,EAq7E7B,CAAC"}
1
+ {"version":3,"file":"dev-rules.generated.d.ts","sourceRoot":"","sources":["../../src/utilities/dev-rules.generated.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,QAAQ,EAAE,OAAO,EA4gF7B,CAAC"}
@@ -41,12 +41,12 @@ export const devRules = [
41
41
  {
42
42
  "id": "button-form-id-invalid",
43
43
  "message": "The id in `form` is an element without a form, so this button submits nothing. An nldd-form only has one once it has rendered.",
44
- "context": "nldd-button:state(form-target-not-a-form)"
44
+ "context": "nldd-button:state(form-target-not-a-form), nldd-split-button:state(form-target-not-a-form)"
45
45
  },
46
46
  {
47
47
  "id": "button-form-id-not-found",
48
48
  "message": "Nothing in this root has the id in `form`, so this button submits nothing.",
49
- "context": "nldd-button:state(no-form-target)"
49
+ "context": "nldd-button:state(no-form-target), nldd-split-button:state(no-form-target)"
50
50
  },
51
51
  {
52
52
  "id": "button-group-button-size-no-effect",
@@ -167,7 +167,7 @@ export const devRules = [
167
167
  "id": "form-field-needs-input",
168
168
  "message": "nldd-form-field holds no form input, so the label cannot name anything or move focus into it.",
169
169
  "context": "nldd-form-field[label]:not([label=\"\"]):has(> :not(nldd-form-field-help-text))",
170
- "assert": ":has(:is(input, nldd-checkbox, nldd-checkbox-field, nldd-code-editor, nldd-combo-box, nldd-date-field, nldd-date-picker, nldd-dropdown, nldd-file-field, nldd-multi-line-text-field, nldd-number-field, nldd-password-field, nldd-radio-button, nldd-radio-button-field, nldd-radio-button-group, nldd-search-field, nldd-segmented-control, nldd-slider, nldd-stepper, nldd-switch, nldd-switch-field, nldd-text-editor, nldd-text-field, nldd-time-field, nldd-time-picker, nldd-toggle-button, nldd-toggle-button-group, nldd-token-field, select, textarea)), :state(has-input)",
170
+ "assert": ":has(:is(input, nldd-checkbox, nldd-checkbox-field, nldd-code-editor, nldd-combo-box, nldd-date-field, nldd-date-picker, nldd-dropdown, nldd-file-field, nldd-multi-line-text-field, nldd-number-field, nldd-password-field, nldd-radio-button, nldd-radio-button-field, nldd-radio-button-group, nldd-search-field, nldd-segmented-control, nldd-slider, nldd-stepper, nldd-swatch-picker, nldd-switch, nldd-switch-field, nldd-text-editor, nldd-text-field, nldd-time-field, nldd-time-picker, nldd-toggle-button, nldd-toggle-button-group, nldd-token-field, select, textarea)), :state(has-input)",
171
171
  "properties": []
172
172
  },
173
173
  {
@@ -612,6 +612,28 @@ export const devRules = [
612
612
  "message": "The target did not take focus, so the skip link did nothing. It is probably hidden or inert.",
613
613
  "context": "nldd-skip-link:state(target-not-focusable)"
614
614
  },
615
+ {
616
+ "id": "split-button-max-one-popup",
617
+ "message": "nldd-split-button opens one overlay: the one in the `popup` slot, or else the first. Remove the others.",
618
+ "context": "nldd-split-button",
619
+ "count": {
620
+ "of": "nldd-menu, nldd-popover",
621
+ "max": 1
622
+ }
623
+ },
624
+ {
625
+ "id": "split-button-needs-popup",
626
+ "message": "nldd-split-button has no menu, so its chevron opens nothing. Put an nldd-menu or nldd-popover in its `popup` slot, or point `popovertarget` at one.",
627
+ "context": "nldd-split-button:not([popovertarget]:not([popovertarget=\"\"]))",
628
+ "assert": ":has(> nldd-menu, > nldd-popover)",
629
+ "properties": []
630
+ },
631
+ {
632
+ "id": "split-button-no-other-children",
633
+ "message": "Only an nldd-menu or nldd-popover goes in nldd-split-button; anything else does not render. Set the label with `text` and the icon with `icon`.",
634
+ "context": "nldd-split-button",
635
+ "report": ":has(> :not(nldd-menu, nldd-popover))"
636
+ },
615
637
  {
616
638
  "id": "split-view-needs-main-page",
617
639
  "message": "Set landmarks=\"page\" on the page in the pane with the main content, or the screen offers no main landmark or two.",
@@ -675,6 +697,31 @@ export const devRules = [
675
697
  "message": "The `variant` attribute is now `level`. Rename it here and on every other nldd-step-cell.",
676
698
  "context": "nldd-step-cell[variant]"
677
699
  },
700
+ {
701
+ "id": "swatch-picker-item-fill-no-effect",
702
+ "message": "An nldd-swatch-picker-item shows one of `color`, `custom-color` or `image`: an image covers a color, and a category `color` wins over `custom-color`. Keep one.",
703
+ "context": "nldd-swatch-picker-item[color]:not([color=\"\"])[custom-color]:not([custom-color=\"\"]), nldd-swatch-picker-item[image]:not([image=\"\"])[color]:not([color=\"\"]), nldd-swatch-picker-item[image]:not([image=\"\"])[custom-color]:not([custom-color=\"\"])"
704
+ },
705
+ {
706
+ "id": "swatch-picker-item-needs-name",
707
+ "message": "An nldd-swatch-picker-item with a `custom-color` or an `image` has no accessible name. Add `text`; only a category `color` brings a name of its own.",
708
+ "context": "nldd-swatch-picker-item",
709
+ "assert": "[color]:not([color=\"\"]), [text]:not([text=\"\"])",
710
+ "properties": [
711
+ "color",
712
+ "text"
713
+ ]
714
+ },
715
+ {
716
+ "id": "swatch-picker-needs-name",
717
+ "message": "nldd-swatch-picker needs `accessible-label`, `accessible-labeled-by` or a labeled nldd-form-field around it, or it has no accessible name.",
718
+ "context": "nldd-swatch-picker",
719
+ "assert": "[accessible-label]:not([accessible-label=\"\"]), [accessible-labeled-by]:not([accessible-labeled-by=\"\"])",
720
+ "properties": [
721
+ "accessibleLabel",
722
+ "accessibleLabeledBy"
723
+ ]
724
+ },
678
725
  {
679
726
  "id": "switch-needs-name",
680
727
  "message": "nldd-switch needs `accessible-label` or a labeled nldd-form-field around it, or use nldd-switch-field. Without one it has no accessible name.",
@@ -958,6 +1005,16 @@ export const devRules = [
958
1005
  "message": "`size` on nldd-split-button takes: lg, md, sm, xs.",
959
1006
  "context": "nldd-split-button[size]:not([size=\"lg\"], [size=\"md\"], [size=\"sm\"], [size=\"xs\"], nldd-toolbar *, nldd-button-bar *, nldd-button-group *, nldd-list-item *, nldd-avatar-group *, nldd-notification *)"
960
1007
  },
1008
+ {
1009
+ "id": "invalid-value-split-button-appearance",
1010
+ "message": "`appearance` on nldd-split-button takes: accent-filled, inherit-filled, inherit-tinted, neutral-base, neutral-tinted, primary, secondary.",
1011
+ "context": "nldd-split-button[appearance]:not([appearance=\"accent-filled\"], [appearance=\"inherit-filled\"], [appearance=\"inherit-tinted\"], [appearance=\"neutral-base\"], [appearance=\"neutral-tinted\"], [appearance=\"primary\"], [appearance=\"secondary\"], nldd-toolbar *, nldd-button-bar *, nldd-button-group *, nldd-list-item *, nldd-avatar-group *, nldd-notification *)"
1012
+ },
1013
+ {
1014
+ "id": "invalid-value-split-button-type",
1015
+ "message": "`type` on nldd-split-button takes: button, reset, submit.",
1016
+ "context": "nldd-split-button[type]:not([type=\"button\"], [type=\"reset\"], [type=\"submit\"])"
1017
+ },
961
1018
  {
962
1019
  "id": "invalid-value-toolbar-title-align",
963
1020
  "message": "`align` on nldd-toolbar-title takes: center, left.",
@@ -1273,6 +1330,21 @@ export const devRules = [
1273
1330
  "message": "`size` on nldd-stepper takes: md, sm, xs.",
1274
1331
  "context": "nldd-stepper[size]:not([size=\"md\"], [size=\"sm\"], [size=\"xs\"], nldd-toolbar *, nldd-button-bar *, nldd-button-group *, nldd-list-item *, nldd-avatar-group *, nldd-notification *)"
1275
1332
  },
1333
+ {
1334
+ "id": "invalid-value-swatch-picker-item-color",
1335
+ "message": "`color` on nldd-swatch-picker-item takes: bruin, donkerblauw, donkerbruin, donkergeel, donkergroen, geel, groen, hemelblauw, lichtblauw, lintblauw, mintgroen, mosgroen, oranje, paars, robijnrood, rood, roze, violet.",
1336
+ "context": "nldd-swatch-picker-item[color]:not([color=\"\"], [color=\"bruin\"], [color=\"donkerblauw\"], [color=\"donkerbruin\"], [color=\"donkergeel\"], [color=\"donkergroen\"], [color=\"geel\"], [color=\"groen\"], [color=\"hemelblauw\"], [color=\"lichtblauw\"], [color=\"lintblauw\"], [color=\"mintgroen\"], [color=\"mosgroen\"], [color=\"oranje\"], [color=\"paars\"], [color=\"robijnrood\"], [color=\"rood\"], [color=\"roze\"], [color=\"violet\"])"
1337
+ },
1338
+ {
1339
+ "id": "invalid-value-swatch-picker-item-size",
1340
+ "message": "`size` on nldd-swatch-picker-item takes: md, sm, xs.",
1341
+ "context": "nldd-swatch-picker-item[size]:not([size=\"md\"], [size=\"sm\"], [size=\"xs\"], nldd-toolbar *, nldd-button-bar *, nldd-button-group *, nldd-list-item *, nldd-avatar-group *, nldd-notification *)"
1342
+ },
1343
+ {
1344
+ "id": "invalid-value-swatch-picker-size",
1345
+ "message": "`size` on nldd-swatch-picker takes: md, sm, xs.",
1346
+ "context": "nldd-swatch-picker[size]:not([size=\"md\"], [size=\"sm\"], [size=\"xs\"], nldd-toolbar *, nldd-button-bar *, nldd-button-group *, nldd-list-item *, nldd-avatar-group *, nldd-notification *)"
1347
+ },
1276
1348
  {
1277
1349
  "id": "invalid-value-switch-field-color",
1278
1350
  "message": "`color` on nldd-switch-field takes: inherit.",
@@ -2313,6 +2385,21 @@ export const devRules = [
2313
2385
  "message": "`background` on nldd-table takes: base, tinted.",
2314
2386
  "context": "nldd-table[background]:not([background=\"base\"], [background=\"tinted\"])"
2315
2387
  },
2388
+ {
2389
+ "id": "invalid-value-link-group-size",
2390
+ "message": "`size` on nldd-link-group takes: lg, md, sm, xs.",
2391
+ "context": "nldd-link-group[size]:not([size=\"lg\"], [size=\"md\"], [size=\"sm\"], [size=\"xs\"], nldd-toolbar *, nldd-button-bar *, nldd-button-group *, nldd-list-item *, nldd-avatar-group *, nldd-notification *)"
2392
+ },
2393
+ {
2394
+ "id": "invalid-value-link-group-orientation",
2395
+ "message": "`orientation` on nldd-link-group takes: horizontal, vertical.",
2396
+ "context": "nldd-link-group[orientation]:not([orientation=\"horizontal\"], [orientation=\"vertical\"])"
2397
+ },
2398
+ {
2399
+ "id": "invalid-value-link-group-horizontal-alignment",
2400
+ "message": "`horizontal-alignment` on nldd-link-group takes: center, left.",
2401
+ "context": "nldd-link-group[horizontal-alignment]:not([horizontal-alignment=\"center\"], [horizontal-alignment=\"left\"])"
2402
+ },
2316
2403
  {
2317
2404
  "id": "invalid-value-link-size",
2318
2405
  "message": "`size` on nldd-link takes: inherit, lg, md, sm, xs.",