@nldd/design-system 0.8.98 → 0.8.100

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 (185) hide show
  1. package/custom-elements.json +320 -58
  2. package/dist/components/actions/button/button.d.ts +2 -2
  3. package/dist/components/actions/button/button.js +2 -2
  4. package/dist/components/actions/icon-button/icon-button.d.ts +2 -2
  5. package/dist/components/actions/icon-button/icon-button.js +2 -2
  6. package/dist/components/actions/menu/menu.d.ts +48 -5
  7. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  8. package/dist/components/actions/menu/menu.js +138 -8
  9. package/dist/components/actions/menu/menu.js.map +1 -1
  10. package/dist/components/actions/menu/menu.template.d.ts +4 -3
  11. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  12. package/dist/components/actions/menu/menu.template.js +10 -5
  13. package/dist/components/actions/menu/menu.template.js.map +1 -1
  14. package/dist/components/actions/split-button/split-button.d.ts +1 -1
  15. package/dist/components/actions/split-button/split-button.js +1 -1
  16. package/dist/components/actions/toolbar/toolbar.d.ts +14 -3
  17. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  18. package/dist/components/actions/toolbar/toolbar.js +45 -7
  19. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  20. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  21. package/dist/components/actions/toolbar/toolbar.styles.js +15 -1
  22. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  23. package/dist/components/components.js +1495 -289
  24. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  25. package/dist/components/content/code-viewer/code-viewer.styles.js +11 -7
  26. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  27. package/dist/components/content/text/text.d.ts +1 -1
  28. package/dist/components/content/text/text.js +1 -1
  29. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  30. package/dist/components/content/text/text.styles.js +55 -0
  31. package/dist/components/content/text/text.styles.js.map +1 -1
  32. package/dist/components/content/title/title.d.ts +16 -1
  33. package/dist/components/content/title/title.d.ts.map +1 -1
  34. package/dist/components/content/title/title.js +109 -0
  35. package/dist/components/content/title/title.js.map +1 -1
  36. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  37. package/dist/components/content/title/title.styles.js +39 -0
  38. package/dist/components/content/title/title.styles.js.map +1 -1
  39. package/dist/components/content/token/token.d.ts +1 -1
  40. package/dist/components/content/token/token.js +1 -1
  41. package/dist/components/content/visually-hidden/visually-hidden.d.ts +35 -0
  42. package/dist/components/content/visually-hidden/visually-hidden.d.ts.map +1 -0
  43. package/dist/components/content/visually-hidden/visually-hidden.js +45 -0
  44. package/dist/components/content/visually-hidden/visually-hidden.js.map +1 -0
  45. package/dist/components/content/visually-hidden/visually-hidden.styles.d.ts +2 -0
  46. package/dist/components/content/visually-hidden/visually-hidden.styles.d.ts.map +1 -0
  47. package/dist/components/content/visually-hidden/visually-hidden.styles.js +27 -0
  48. package/dist/components/content/visually-hidden/visually-hidden.styles.js.map +1 -0
  49. package/dist/components/content/visually-hidden/visually-hidden.template.d.ts +3 -0
  50. package/dist/components/content/visually-hidden/visually-hidden.template.d.ts.map +1 -0
  51. package/dist/components/content/visually-hidden/visually-hidden.template.js +7 -0
  52. package/dist/components/content/visually-hidden/visually-hidden.template.js.map +1 -0
  53. package/dist/components/{icon-button-CJIikwyu.js → icon-button-BtU8DX64.js} +2 -2
  54. package/dist/components/index.d.ts +1 -0
  55. package/dist/components/index.d.ts.map +1 -1
  56. package/dist/components/index.js +1 -0
  57. package/dist/components/index.js.map +1 -1
  58. package/dist/components/inputs/dropdown/dropdown.d.ts +6 -0
  59. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  60. package/dist/components/inputs/dropdown/dropdown.js +6 -0
  61. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  62. package/dist/components/layout/card/card.d.ts +12 -1
  63. package/dist/components/layout/card/card.d.ts.map +1 -1
  64. package/dist/components/layout/card/card.js +29 -2
  65. package/dist/components/layout/card/card.js.map +1 -1
  66. package/dist/components/layout/card/card.styles.js +2 -2
  67. package/dist/components/layout/collection/collection.d.ts +16 -5
  68. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  69. package/dist/components/layout/collection/collection.js +44 -10
  70. package/dist/components/layout/collection/collection.js.map +1 -1
  71. package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
  72. package/dist/components/layout/collection/collection.styles.js +7 -6
  73. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  74. package/dist/components/layout/container/container.d.ts +1 -1
  75. package/dist/components/layout/container/container.js +1 -1
  76. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  77. package/dist/components/layout/container/container.styles.js +4 -0
  78. package/dist/components/layout/container/container.styles.js.map +1 -1
  79. package/dist/components/layout/page-sections/hero/hero-corner.d.ts +20 -0
  80. package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -0
  81. package/dist/components/layout/page-sections/hero/hero-corner.js +103 -0
  82. package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -0
  83. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts +2 -0
  84. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -0
  85. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +132 -0
  86. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -0
  87. package/dist/components/layout/page-sections/hero/hero.d.ts +9 -5
  88. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  89. package/dist/components/layout/page-sections/hero/hero.js +15 -6
  90. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  91. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  92. package/dist/components/layout/popover/popover.styles.js +4 -0
  93. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  94. package/dist/components/layout/window/window.d.ts +1 -1
  95. package/dist/components/layout/window/window.js +1 -1
  96. package/dist/components/lists-and-tables/table/table.d.ts +8 -5
  97. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  98. package/dist/components/lists-and-tables/table/table.js +19 -10
  99. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  100. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  101. package/dist/components/lists-and-tables/table/table.styles.js +4 -0
  102. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  103. package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
  104. package/dist/components/lists-and-tables/table/table.template.js +5 -1
  105. package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
  106. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +44 -1
  107. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  108. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +132 -3
  109. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  110. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  111. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +21 -2
  112. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  113. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +1 -1
  114. package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
  115. package/dist/components/navigation/link/link.d.ts +1 -1
  116. package/dist/components/navigation/link/link.js +1 -1
  117. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +8 -2
  118. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  119. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +20 -2
  120. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  121. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts.map +1 -1
  122. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +8 -1
  123. package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
  124. package/dist/components/navigation/pagination/pagination.d.ts +1 -1
  125. package/dist/components/navigation/pagination/pagination.js +1 -1
  126. package/dist/components/navigation/skip-link/skip-link.d.ts +12 -5
  127. package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
  128. package/dist/components/navigation/skip-link/skip-link.js +12 -5
  129. package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
  130. package/dist/components/navigation/tab-bar/tab-bar.d.ts +71 -2
  131. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  132. package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts +5 -0
  133. package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts.map +1 -0
  134. package/dist/components/navigation/tab-bar/tab-bar.i18n.js +4 -0
  135. package/dist/components/navigation/tab-bar/tab-bar.i18n.js.map +1 -0
  136. package/dist/components/navigation/tab-bar/tab-bar.js +214 -23
  137. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  138. package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
  139. package/dist/components/navigation/tab-bar/tab-bar.styles.js +68 -3
  140. package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
  141. package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
  142. package/dist/components/navigation/tab-bar/tab-bar.template.js +36 -5
  143. package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
  144. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +7 -0
  145. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
  146. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +16 -0
  147. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
  148. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  149. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +13 -3
  150. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  151. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +11 -1
  152. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  153. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +21 -1
  154. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  155. package/dist/components/status-and-feedback/notification/notification.d.ts +62 -1
  156. package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
  157. package/dist/components/status-and-feedback/notification/notification.js +86 -2
  158. package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
  159. package/dist/components/status-and-feedback/notification/notifications-area.d.ts +6 -0
  160. package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -1
  161. package/dist/components/status-and-feedback/notification/notifications-area.js +16 -0
  162. package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
  163. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
  164. package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
  165. package/dist/css/rich-text.css +1 -1
  166. package/dist/css/variables.css +1 -0
  167. package/dist/nldd.min.js +1038 -637
  168. package/dist/translations/en-US.d.ts.map +1 -1
  169. package/dist/translations/en-US.js +1 -0
  170. package/dist/translations/en-US.js.map +1 -1
  171. package/dist/translations/fy.d.ts.map +1 -1
  172. package/dist/translations/fy.js +1 -0
  173. package/dist/translations/fy.js.map +1 -1
  174. package/dist/translations/nl.generated.d.ts +1 -0
  175. package/dist/translations/nl.generated.d.ts.map +1 -1
  176. package/dist/translations/nl.generated.js +2 -0
  177. package/dist/translations/nl.generated.js.map +1 -1
  178. package/dist/translations/pap-AW.d.ts.map +1 -1
  179. package/dist/translations/pap-AW.js +1 -0
  180. package/dist/translations/pap-AW.js.map +1 -1
  181. package/dist/translations/pap-CW.d.ts.map +1 -1
  182. package/dist/translations/pap-CW.js +1 -0
  183. package/dist/translations/pap-CW.js.map +1 -1
  184. package/dist/types/vue.d.ts +66 -36
  185. package/package.json +6 -2
@@ -659,7 +659,7 @@
659
659
  "text": "boolean"
660
660
  },
661
661
  "default": "false",
662
- "description": "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.",
662
+ "description": "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.",
663
663
  "fieldName": "loading"
664
664
  },
665
665
  {
@@ -678,7 +678,7 @@
678
678
  },
679
679
  "default": "false",
680
680
  "fieldName": "disabled",
681
- "description": "Disabled state"
681
+ "description": "Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why."
682
682
  },
683
683
  {
684
684
  "name": "text",
@@ -1165,7 +1165,7 @@
1165
1165
  "text": "boolean"
1166
1166
  },
1167
1167
  "default": "false",
1168
- "description": "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).",
1168
+ "description": "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.",
1169
1169
  "fieldName": "loading"
1170
1170
  },
1171
1171
  {
@@ -1184,7 +1184,7 @@
1184
1184
  },
1185
1185
  "default": "false",
1186
1186
  "fieldName": "disabled",
1187
- "description": "Disabled state"
1187
+ "description": "Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why."
1188
1188
  },
1189
1189
  {
1190
1190
  "name": "no-highlight-border",
@@ -1608,7 +1608,7 @@
1608
1608
  "kind": "field",
1609
1609
  "name": "menuVariant",
1610
1610
  "type": {
1611
- "text": "'menu' | 'listbox' | null"
1611
+ "text": "MenuVariant | null"
1612
1612
  },
1613
1613
  "default": "null",
1614
1614
  "description": "Which menu owns this item, set by that nldd-menu. Not part of the public API.\n\n`null` until one claims it, and an unclaimed item carries no menu role.\nA menu role is a promise about what is around you, so an item cannot make\nit on its own. `nldd-toolbar-item` holds exactly such an item: the\ndeclaration of what belongs in the overflow menu, which the toolbar clones\ninto the real menu when it collapses. The clone is claimed there and the\ndeclaration stays what it is."
@@ -1850,10 +1850,10 @@
1850
1850
  "kind": "field",
1851
1851
  "name": "variant",
1852
1852
  "type": {
1853
- "text": "'menu' | 'listbox'"
1853
+ "text": "MenuVariant"
1854
1854
  },
1855
1855
  "default": "'menu'",
1856
- "description": "Render variant. Use 'listbox' when the menu serves as a combobox popup —\nthis switches role to \"listbox\" and item roles to \"option\" per ARIA spec.\nDefault: 'menu'.",
1856
+ "description": "What the menu is, which sets its roles and part of its keyboard. See the\n`variant` attribute in the docblock above.",
1857
1857
  "attribute": "variant",
1858
1858
  "reflects": true
1859
1859
  },
@@ -2045,6 +2045,15 @@
2045
2045
  }
2046
2046
  ],
2047
2047
  "attributes": [
2048
+ {
2049
+ "type": {
2050
+ "text": "MenuVariant"
2051
+ },
2052
+ "description": "What the menu is, which sets its roles and part of its keyboard. See the\n`variant` attribute in the docblock above.",
2053
+ "name": "variant",
2054
+ "default": "'menu'",
2055
+ "fieldName": "variant"
2056
+ },
2048
2057
  {
2049
2058
  "type": {
2050
2059
  "text": "string"
@@ -2114,15 +2123,6 @@
2114
2123
  },
2115
2124
  "description": "Custom filter function (query, item) => boolean.",
2116
2125
  "name": "filterFn"
2117
- },
2118
- {
2119
- "name": "variant",
2120
- "type": {
2121
- "text": "'menu' | 'listbox'"
2122
- },
2123
- "default": "'menu'",
2124
- "description": "Render variant. Use 'listbox' when the menu serves as a combobox popup —\nthis switches role to \"listbox\" and item roles to \"option\" per ARIA spec.\nDefault: 'menu'.",
2125
- "fieldName": "variant"
2126
2126
  }
2127
2127
  ],
2128
2128
  "superclass": {
@@ -2317,7 +2317,7 @@
2317
2317
  },
2318
2318
  "default": "false",
2319
2319
  "fieldName": "disabled",
2320
- "description": "Disabled state"
2320
+ "description": "Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why."
2321
2321
  },
2322
2322
  {
2323
2323
  "name": "width",
@@ -2709,7 +2709,7 @@
2709
2709
  },
2710
2710
  {
2711
2711
  "kind": "class",
2712
- "description": "A row of controls that belong to a whole screen or pane, with an overflow menu for what does not fit. The toolbar measures itself: as the row runs out of room, items move into that menu, the lowest `priority` first, and items that share a priority move together. So the order in the HTML says where an item sits, and `priority` says how long it stays. Every item carries its own alternative for the menu, an nldd-menu-item in its `overflow` slot. Without one the action is simply gone once the item overflows, which on a wide screen you never see; the item warns about it in development. The toolbar's own `overflow` slot holds the actions that live in the menu at every width.",
2712
+ "description": "A row of controls that belong to a whole screen or pane, with an overflow menu for what does not fit. The toolbar measures itself: as the row runs out of room, items move into that menu, the lowest `priority` first, and items that share a priority move together. So the order in the HTML says where an item sits, and `priority` says how long it stays. An item holding a control with its own overflow, such as nldd-tab-bar, first narrows down when its turn comes, so that control moves what does not fit into its own menu, and only then goes into the toolbar's menu. Every item carries its own alternative for the menu, an nldd-menu-item in its `overflow` slot. Without one the action is simply gone once the item overflows, which on a wide screen you never see; the item warns about it in development. The toolbar's own `overflow` slot holds the actions that live in the menu at every width.",
2713
2713
  "name": "NLDDToolbar",
2714
2714
  "members": [
2715
2715
  {
@@ -2734,12 +2734,12 @@
2734
2734
  },
2735
2735
  {
2736
2736
  "kind": "field",
2737
- "name": "label",
2737
+ "name": "accessibleLabel",
2738
2738
  "type": {
2739
2739
  "text": "string"
2740
2740
  },
2741
2741
  "default": "''",
2742
- "attribute": "label",
2742
+ "attribute": "accessible-label",
2743
2743
  "reflects": true
2744
2744
  },
2745
2745
  {
@@ -2772,13 +2772,13 @@
2772
2772
  "description": "When true, shows a text label below each toolbar item and the overflow button"
2773
2773
  },
2774
2774
  {
2775
- "name": "label",
2775
+ "name": "accessible-label",
2776
2776
  "type": {
2777
2777
  "text": "string"
2778
2778
  },
2779
2779
  "default": "''",
2780
- "fieldName": "label",
2781
- "description": "Accessible label for the toolbar. Only needed when multiple toolbars appear on the same page"
2780
+ "fieldName": "accessibleLabel",
2781
+ "description": "Accessible name of the toolbar. Only needed when multiple toolbars appear on the same page."
2782
2782
  },
2783
2783
  {
2784
2784
  "name": "translations",
@@ -5085,7 +5085,7 @@
5085
5085
  "slots": [
5086
5086
  {
5087
5087
  "name": "",
5088
- "description": "The text. Inline elements work as they are: `<strong>` and `<b>` take the bold weight from the scale, `<a>`, `<em>` and components such as `nldd-tag` are left alone."
5088
+ "description": "The text. Inline elements look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, and `<mark>` is highlighted. This holds for elements directly in the text; one inside another (a link inside `<strong>`) keeps only the outer one's styling. Components such as `nldd-tag` are left alone."
5089
5089
  }
5090
5090
  ]
5091
5091
  }
@@ -5128,6 +5128,36 @@
5128
5128
  "attribute": "size",
5129
5129
  "reflects": true
5130
5130
  },
5131
+ {
5132
+ "kind": "field",
5133
+ "name": "smCustomSize",
5134
+ "type": {
5135
+ "text": "string"
5136
+ },
5137
+ "default": "''",
5138
+ "attribute": "sm-custom-size",
5139
+ "reflects": true
5140
+ },
5141
+ {
5142
+ "kind": "field",
5143
+ "name": "mdCustomSize",
5144
+ "type": {
5145
+ "text": "string"
5146
+ },
5147
+ "default": "''",
5148
+ "attribute": "md-custom-size",
5149
+ "reflects": true
5150
+ },
5151
+ {
5152
+ "kind": "field",
5153
+ "name": "lgCustomSize",
5154
+ "type": {
5155
+ "text": "string"
5156
+ },
5157
+ "default": "''",
5158
+ "attribute": "lg-custom-size",
5159
+ "reflects": true
5160
+ },
5131
5161
  {
5132
5162
  "kind": "field",
5133
5163
  "name": "color",
@@ -5189,6 +5219,33 @@
5189
5219
  "fieldName": "size",
5190
5220
  "description": "Visual size of the title: 1–6 (default: 3)"
5191
5221
  },
5222
+ {
5223
+ "name": "sm-custom-size",
5224
+ "type": {
5225
+ "text": "string"
5226
+ },
5227
+ "default": "''",
5228
+ "fieldName": "smCustomSize",
5229
+ "description": "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`"
5230
+ },
5231
+ {
5232
+ "name": "md-custom-size",
5233
+ "type": {
5234
+ "text": "string"
5235
+ },
5236
+ "default": "''",
5237
+ "fieldName": "mdCustomSize",
5238
+ "description": "The same, at md"
5239
+ },
5240
+ {
5241
+ "name": "lg-custom-size",
5242
+ "type": {
5243
+ "text": "string"
5244
+ },
5245
+ "default": "''",
5246
+ "fieldName": "lgCustomSize",
5247
+ "description": "The same, at lg"
5248
+ },
5192
5249
  {
5193
5250
  "name": "color",
5194
5251
  "type": {
@@ -5464,7 +5521,7 @@
5464
5521
  },
5465
5522
  "default": "false",
5466
5523
  "fieldName": "disabled",
5467
- "description": "Disabled state"
5524
+ "description": "Disabled state. Avoid it where you can; the design guidelines say why."
5468
5525
  }
5469
5526
  ],
5470
5527
  "superclass": {
@@ -5632,6 +5689,48 @@
5632
5689
  }
5633
5690
  ]
5634
5691
  },
5692
+ {
5693
+ "kind": "javascript-module",
5694
+ "path": "src/components/content/visually-hidden/visually-hidden.ts",
5695
+ "declarations": [
5696
+ {
5697
+ "kind": "class",
5698
+ "description": "Text a screen reader reads and the screen does not show. It stays in the accessibility tree and in the reading order, and takes no room on the page. For a name that is visually redundant: the header of a column of checkboxes, where the checkboxes say enough to anyone who can see them, or the \"(opent in een nieuw venster)\" after a link whose icon already says it. Not for repairing structure that is missing. Hidden text that describes how something is laid out (\"subpagina van Aanvragen\") stands in for semantics the markup should carry, and only a screen reader gets the stand-in. Not for a status either: a status that matters to a screen reader matters to anyone, so show it, as text with `role=\"status\"` or as an `nldd-notification`. And not for the name of a component that takes `accessible-label`: give it that. Nothing in it should take focus. A control inside would be reached with Tab and be nowhere on the screen.",
5699
+ "name": "NLDDVisuallyHidden",
5700
+ "members": [],
5701
+ "superclass": {
5702
+ "name": "LitElement",
5703
+ "package": "lit"
5704
+ },
5705
+ "tagName": "nldd-visually-hidden",
5706
+ "customElement": true,
5707
+ "slots": [
5708
+ {
5709
+ "name": "",
5710
+ "description": "The text, read by a screen reader and not shown."
5711
+ }
5712
+ ]
5713
+ }
5714
+ ],
5715
+ "exports": [
5716
+ {
5717
+ "kind": "js",
5718
+ "name": "NLDDVisuallyHidden",
5719
+ "declaration": {
5720
+ "name": "NLDDVisuallyHidden",
5721
+ "module": "src/components/content/visually-hidden/visually-hidden.ts"
5722
+ }
5723
+ },
5724
+ {
5725
+ "kind": "custom-element-definition",
5726
+ "name": "nldd-visually-hidden",
5727
+ "declaration": {
5728
+ "name": "NLDDVisuallyHidden",
5729
+ "module": "src/components/content/visually-hidden/visually-hidden.ts"
5730
+ }
5731
+ }
5732
+ ]
5733
+ },
5635
5734
  {
5636
5735
  "kind": "javascript-module",
5637
5736
  "path": "src/components/forms/form-actions/form-actions.ts",
@@ -6478,6 +6577,14 @@
6478
6577
  "module": "./content/tooltip/tooltip.js"
6479
6578
  }
6480
6579
  },
6580
+ {
6581
+ "kind": "js",
6582
+ "name": "NLDDVisuallyHidden",
6583
+ "declaration": {
6584
+ "name": "NLDDVisuallyHidden",
6585
+ "module": "./content/visually-hidden/visually-hidden.js"
6586
+ }
6587
+ },
6481
6588
  {
6482
6589
  "kind": "js",
6483
6590
  "name": "NLDDForm",
@@ -10439,7 +10546,7 @@
10439
10546
  "declarations": [
10440
10547
  {
10441
10548
  "kind": "class",
10442
- "description": "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.",
10549
+ "description": "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.",
10443
10550
  "name": "NLDDDropdown",
10444
10551
  "members": [
10445
10552
  {
@@ -22875,7 +22982,7 @@
22875
22982
  "declarations": [
22876
22983
  {
22877
22984
  "kind": "class",
22878
- "description": "A visually bounded card with optional header, body and footer sections. The card is elevated by default. Padding is left to nested containers. With `href` the whole card becomes a link (an overlay anchor across the card), with `button` a button (an overlay button that fires a plain, composed `click`, so a click listener or htmx attribute on the card itself works directly, and Enter/Space work natively). `href` wins when both are set. Nested interactive content, footer buttons for instance, has to be lifted above it with `position: relative; z-index: 1` to stay clickable. A card that is a link or button steps its surface and border one shade up on hover and one more while pressed, as a neutral-base button does; content lifted above the overlay does not set it off.",
22985
+ "description": "A visually bounded card with optional header, body and footer sections. The card is elevated by default. Padding is left to nested containers. With `href` the whole card becomes a link (an overlay anchor across the card), with `button` a button (an overlay button that fires a plain, composed `click`, so a click listener or htmx attribute on the card itself works directly, and Enter/Space work natively). `href` wins when both are set. Nested interactive content, footer buttons for instance, has to be lifted above it with `position: relative; z-index: 1` to stay clickable. A card that is a link or button steps its surface and border one shade up on hover and one more while pressed, as a neutral-base button does; content lifted above the overlay does not set it off. On a touch screen there is no hover, and a touch that turns into a scroll lets go of the pressed shade.",
22879
22986
  "name": "NLDDCard",
22880
22987
  "members": [
22881
22988
  {
@@ -23071,7 +23178,7 @@
23071
23178
  "declarations": [
23072
23179
  {
23073
23180
  "kind": "class",
23074
- "description": "A container for displaying collections of items. Supports grid, stack, lanes and horizontal scroll layouts. Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS grid of your own: the collection sets the columns from `item-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.",
23181
+ "description": "A container for displaying collections of items. Supports grid, stack, lanes and horizontal scroll layouts. Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS grid of your own: the collection sets the columns from `item-min-width` and the available width, and the gap per breakpoint. In grid and stack modes, items are paginated via a load-more button. In horizontal scroll, the prev/next controls and the edge fade appear only when the items overflow the container. Use horizontal scroll for items that together serve one purpose, such as the events of one agenda; it is not a carousel for unrelated highlights, which the design guidelines advise against. With `lazy-load`, the next items are automatically loaded when the load-more button comes into view.",
23075
23182
  "name": "NLDDCollection",
23076
23183
  "members": [
23077
23184
  {
@@ -23086,11 +23193,20 @@
23086
23193
  },
23087
23194
  {
23088
23195
  "kind": "field",
23089
- "name": "itemWidth",
23196
+ "name": "itemMinWidth",
23197
+ "type": {
23198
+ "text": "string | undefined"
23199
+ },
23200
+ "attribute": "item-min-width",
23201
+ "reflects": true
23202
+ },
23203
+ {
23204
+ "kind": "field",
23205
+ "name": "itemMaxWidth",
23090
23206
  "type": {
23091
23207
  "text": "string | undefined"
23092
23208
  },
23093
- "attribute": "item-width",
23209
+ "attribute": "item-max-width",
23094
23210
  "reflects": true
23095
23211
  },
23096
23212
  {
@@ -23176,6 +23292,9 @@
23176
23292
  }
23177
23293
  ],
23178
23294
  "attributes": [
23295
+ {
23296
+ "name": "item-width"
23297
+ },
23179
23298
  {
23180
23299
  "name": "layout",
23181
23300
  "type": {
@@ -23186,12 +23305,20 @@
23186
23305
  "description": "Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid')"
23187
23306
  },
23188
23307
  {
23189
- "name": "item-width",
23308
+ "name": "item-min-width",
23190
23309
  "type": {
23191
23310
  "text": "string | undefined"
23192
23311
  },
23193
- "fieldName": "itemWidth",
23194
- "description": "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."
23312
+ "fieldName": "itemMinWidth",
23313
+ "description": "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."
23314
+ },
23315
+ {
23316
+ "name": "item-max-width",
23317
+ "type": {
23318
+ "text": "string | undefined"
23319
+ },
23320
+ "fieldName": "itemMaxWidth",
23321
+ "description": "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."
23195
23322
  },
23196
23323
  {
23197
23324
  "name": "gap",
@@ -23772,7 +23899,7 @@
23772
23899
  },
23773
23900
  "default": "''",
23774
23901
  "fieldName": "width",
23775
- "description": "'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."
23902
+ "description": "'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."
23776
23903
  },
23777
23904
  {
23778
23905
  "name": "min-width",
@@ -24841,13 +24968,47 @@
24841
24968
  }
24842
24969
  ]
24843
24970
  },
24971
+ {
24972
+ "kind": "javascript-module",
24973
+ "path": "src/components/layout/page-sections/hero/hero-corner.ts",
24974
+ "declarations": [
24975
+ {
24976
+ "kind": "function",
24977
+ "name": "applyCorner",
24978
+ "return": {
24979
+ "type": {
24980
+ "text": "void"
24981
+ }
24982
+ },
24983
+ "parameters": [
24984
+ {
24985
+ "name": "host",
24986
+ "type": {
24987
+ "text": "CornerHost"
24988
+ }
24989
+ }
24990
+ ],
24991
+ "description": "Works out which corners are rounded and writes them onto the host as\n`data-media-corner` and `data-main-corner`, which the corner stylesheet\nkeys off. Without `corner`, or where a corner does not fit the shape\nlanguage, both are removed and the hero is rectangular."
24992
+ }
24993
+ ],
24994
+ "exports": [
24995
+ {
24996
+ "kind": "js",
24997
+ "name": "applyCorner",
24998
+ "declaration": {
24999
+ "name": "applyCorner",
25000
+ "module": "src/components/layout/page-sections/hero/hero-corner.ts"
25001
+ }
25002
+ }
25003
+ ]
25004
+ },
24844
25005
  {
24845
25006
  "kind": "javascript-module",
24846
25007
  "path": "src/components/layout/page-sections/hero/hero.ts",
24847
25008
  "declarations": [
24848
25009
  {
24849
25010
  "kind": "class",
24850
- "description": "The section that says what a page is for: it names the main goal of what you can find there, draws the eye and is the visual welcome. It has a media area and a text panel (the main) that can stand in eight positions. 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.",
25011
+ "description": "The section that says what a page is for: it names the main goal of what you can find there, draws the eye and is the visual welcome. It has a media area and a text panel (the main) that can stand in eight positions. The areas are rectangular; `corner` rounds one corner of each. Use it on pages where a visitor first has to know where they are, such as a home or a topic page; where the title already does that, a section with a title is enough. The image in a hero sets the mood and is never the main content, so the panel always stands on it. Over an image the panel keeps a section gap from its edges, so it reads as a panel on the image rather than a frame cut out of it; with `main-width=\"full\"` it is a strip across the whole image, the same gap from the sides. On mobile the image comes first and the panel below it, indented by the section gap and overlapping the image by 48px. For an image beside text without that relation, use a section with an image beside text instead. Without media the main fills the whole area; with `main-background=\"base\"` that area gets a border so it stays visible on the base surface. The hero is the head of a page and sits right under the top bar, so its top padding is half that of the other page sections: the full distance is meant to separate two sections, and under the top bar it reads as a gap. The bottom keeps the full distance to the section below. Set `padding-top` to place a hero elsewhere. By default the panel falls over the bottom of the image and runs on below it (`layout=\"overlap\"`), so the image keeps its height whatever the content. `layout=\"contained\"` keeps the panel on the image, for a short panel or one that stands at the top or along a side. The height of a hero comes from its image: `media-aspect-ratio`, or a fixed `media-height`. The `height` of the other page sections is not used here: as a minimum height for the whole hero it stretched the panel once that sat below the image. A hero given `height` says so in development. `main-background` gives the panel a surface color from the filled categories. Those carry a pure white or black content color along, so components with `color=\"inherit\"` (title, rich-text) are guaranteed to keep their contrast.",
24851
25012
  "name": "NLDDHero",
24852
25013
  "members": [
24853
25014
  {
@@ -24861,6 +25022,17 @@
24861
25022
  "attribute": "width",
24862
25023
  "reflects": true
24863
25024
  },
25025
+ {
25026
+ "kind": "field",
25027
+ "name": "corner",
25028
+ "type": {
25029
+ "text": "string | null"
25030
+ },
25031
+ "default": "null",
25032
+ "description": "Rounds one corner of the media area and one of the panel. An empty\nvalue lets the hero choose the media corner from `main-position`.",
25033
+ "attribute": "corner",
25034
+ "reflects": true
25035
+ },
24864
25036
  {
24865
25037
  "kind": "field",
24866
25038
  "name": "layout",
@@ -25177,6 +25349,15 @@
25177
25349
  "description": "Body max-width; 'full' removes the bound (section API)",
25178
25350
  "fieldName": "width"
25179
25351
  },
25352
+ {
25353
+ "name": "corner",
25354
+ "type": {
25355
+ "text": "string | null"
25356
+ },
25357
+ "default": "null",
25358
+ "description": "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. 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. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg. Says so in development when the chosen corner sits under the panel, or with `width=\"full\"`",
25359
+ "fieldName": "corner"
25360
+ },
25180
25361
  {
25181
25362
  "name": "layout",
25182
25363
  "type": {
@@ -29851,7 +30032,7 @@
29851
30032
  },
29852
30033
  "default": "false",
29853
30034
  "fieldName": "noLightDismiss",
29854
- "description": "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."
30035
+ "description": "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."
29855
30036
  },
29856
30037
  {
29857
30038
  "name": "open",
@@ -32819,7 +33000,11 @@
32819
33000
  },
32820
33001
  {
32821
33002
  "name": "empty",
32822
- "description": "Shown when there are no visible body rows (the header is hidden too). Empty by default: what an empty table should say is the app's to write, so put an `nldd-inline-dialog` here."
33003
+ "description": "Shown when the table has no body rows (the header is hidden too). Empty by default: what an empty table should say is the app's to write, so put an `nldd-inline-dialog` here."
33004
+ },
33005
+ {
33006
+ "name": "no-results",
33007
+ "description": "Shown when the table has body rows but every one of them is `[hidden]`, which is what consumer-driven filtering leaves behind. A different state from `empty` and a different sentence: say that nothing matches and how to get rows back. Falls back to `[slot=\"empty\"]` when not given."
32823
33008
  }
32824
33009
  ]
32825
33010
  },
@@ -33286,7 +33471,7 @@
33286
33471
  },
33287
33472
  {
33288
33473
  "name": "nldd-reorder",
33289
- "description": "Fired when tabs are reordered via drag; detail: { fromIndex, toIndex }"
33474
+ "description": "Fired when a tab is moved, by dragging or with Shift+Arrow; detail: { fromIndex, toIndex }"
33290
33475
  }
33291
33476
  ],
33292
33477
  "attributes": [
@@ -33580,7 +33765,7 @@
33580
33765
  },
33581
33766
  "default": "false",
33582
33767
  "fieldName": "disabled",
33583
- "description": "Disabled state"
33768
+ "description": "Disabled state. Avoid it where you can; the design guidelines say why."
33584
33769
  },
33585
33770
  {
33586
33771
  "name": "no-tab",
@@ -33878,7 +34063,7 @@
33878
34063
  },
33879
34064
  "default": "false",
33880
34065
  "fieldName": "expandable",
33881
- "description": "Show the disclosure icon and open the slotted `<nldd-menu>` on click"
34066
+ "description": "Show the disclosure icon and open the slotted `<nldd-menu>` on click. The control then says `aria-haspopup=\"menu\"`, except for a menu with `variant=\"navigation\"`: that is a list of links, so the control only says `aria-expanded`."
33882
34067
  },
33883
34068
  {
33884
34069
  "name": "icon-only",
@@ -33914,7 +34099,7 @@
33914
34099
  },
33915
34100
  "default": "false",
33916
34101
  "fieldName": "disabled",
33917
- "description": "Turn interaction off"
34102
+ "description": "Turn interaction off. Avoid it where you can; the design guidelines say why."
33918
34103
  },
33919
34104
  {
33920
34105
  "name": "accessible-label",
@@ -34224,7 +34409,7 @@
34224
34409
  },
34225
34410
  "default": "false",
34226
34411
  "fieldName": "disabled",
34227
- "description": "Disabled state"
34412
+ "description": "Disabled state. Avoid it where you can; the design guidelines say why."
34228
34413
  },
34229
34414
  {
34230
34415
  "name": "centered",
@@ -34293,7 +34478,7 @@
34293
34478
  "declarations": [
34294
34479
  {
34295
34480
  "kind": "class",
34296
- "description": "Accessibility pattern that lets keyboard users skip past content. Wraps content in a default slot. 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\".",
34481
+ "description": "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\".",
34297
34482
  "name": "NLDDSkipLink",
34298
34483
  "members": [
34299
34484
  {
@@ -34557,7 +34742,7 @@
34557
34742
  },
34558
34743
  {
34559
34744
  "kind": "class",
34560
- "description": "A horizontal navigation bar with mutually exclusive tabs. Exports both NLDDTabBar and NLDDTabBarItem.",
34745
+ "description": "A horizontal navigation bar with mutually exclusive tabs. Exports both NLDDTabBar and NLDDTabBarItem. When the tabs do not fit, the ones that do not fit go behind a \"Meer tabs\" button at the end, in a menu. The current tab always stays in the bar: if it would fall in the part that does not fit, another tab goes to the menu in its place. While tabs are in the menu, the bar fills its container and the tabs in it share the width in proportion to their own. Choosing a tab in the bar changes nothing about what is shown; choosing one from the menu swaps it with the last tab in the bar, so the bar does not jump. `centered` has no effect then. In an nldd-toolbar the other items go to the toolbar's menu first, by their priority; when it is the bar's turn, it narrows down to the current tab beside its button, and only then moves into the toolbar's menu as a whole. Tabs are hidden, never moved, so a framework that renders them finds them where it put them. Only a tab that does not fit on its own is cut off.",
34561
34746
  "name": "NLDDTabBar",
34562
34747
  "members": [
34563
34748
  {
@@ -34621,6 +34806,25 @@
34621
34806
  },
34622
34807
  "default": "''",
34623
34808
  "attribute": "accessible-label"
34809
+ },
34810
+ {
34811
+ "kind": "field",
34812
+ "name": "translations",
34813
+ "type": {
34814
+ "text": "Partial<T>"
34815
+ },
34816
+ "default": "{}",
34817
+ "attribute": "translations",
34818
+ "inheritedFrom": {
34819
+ "name": "withTranslations",
34820
+ "module": "src/utilities/with-translations.ts"
34821
+ }
34822
+ }
34823
+ ],
34824
+ "events": [
34825
+ {
34826
+ "name": "tabchange",
34827
+ "description": "When a tab is selected; detail: { item: NLDDTabBarItem }"
34624
34828
  }
34625
34829
  ],
34626
34830
  "attributes": [
@@ -34666,7 +34870,7 @@
34666
34870
  "text": "boolean"
34667
34871
  },
34668
34872
  "default": "false",
34669
- "description": "Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order",
34873
+ "description": "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.",
34670
34874
  "fieldName": "disabled"
34671
34875
  },
34672
34876
  {
@@ -34677,6 +34881,25 @@
34677
34881
  "default": "''",
34678
34882
  "fieldName": "accessibleLabel",
34679
34883
  "description": "Accessible name for the navigation region; defaults to 'Tabs'"
34884
+ },
34885
+ {
34886
+ "name": "translations",
34887
+ "type": {
34888
+ "text": "Partial<T>"
34889
+ },
34890
+ "default": "{}",
34891
+ "fieldName": "translations",
34892
+ "inheritedFrom": {
34893
+ "name": "withTranslations",
34894
+ "module": "src/utilities/with-translations.ts"
34895
+ },
34896
+ "description": "Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch."
34897
+ }
34898
+ ],
34899
+ "mixins": [
34900
+ {
34901
+ "name": "withTranslations",
34902
+ "module": "/src/utilities/with-translations.js"
34680
34903
  }
34681
34904
  ],
34682
34905
  "superclass": {
@@ -34685,12 +34908,6 @@
34685
34908
  },
34686
34909
  "tagName": "nldd-tab-bar",
34687
34910
  "customElement": true,
34688
- "events": [
34689
- {
34690
- "name": "tabchange",
34691
- "description": "When a tab is selected; detail: { item: NLDDTabBarItem }"
34692
- }
34693
- ],
34694
34911
  "slots": [
34695
34912
  {
34696
34913
  "name": "",
@@ -34740,7 +34957,7 @@
34740
34957
  "declarations": [
34741
34958
  {
34742
34959
  "kind": "class",
34743
- "description": "The top bar of a page: a logo bar with the Rijkslogo and an optional wordmark, and below it the main bar with the website title, a back button, the global navigation and the utility navigation. On narrow widths the global navigation moves into a menu sheet behind the menu button.",
34960
+ "description": "The top bar of a page: a logo bar with the Rijkslogo and an optional wordmark, and below it the main bar with the website title, a back button, the global navigation and the utility navigation. On narrow widths the global navigation moves into a menu sheet behind the menu button. The top bar of a website, and of nothing else: put it in the `header` slot of an `nldd-page`. Do not combine it with a split view. A split view is the layout of an application, whose panes carry a bar of their own, usually an `nldd-toolbar`, and a site header above it gives a second layer of navigation and a second thing that scrolls. Does a page need a sidebar under this bar, use an `nldd-sidebar-section` inside that `nldd-page`.",
34744
34961
  "name": "NLDDTopNavigationBar",
34745
34962
  "members": [
34746
34963
  {
@@ -36290,7 +36507,7 @@
36290
36507
  "declarations": [
36291
36508
  {
36292
36509
  "kind": "class",
36293
- "description": "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.",
36510
+ "description": "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.",
36294
36511
  "name": "NLDDModalDialog",
36295
36512
  "members": [
36296
36513
  {
@@ -36389,7 +36606,7 @@
36389
36606
  },
36390
36607
  {
36391
36608
  "name": "close",
36392
- "description": "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."
36609
+ "description": "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."
36393
36610
  }
36394
36611
  ],
36395
36612
  "attributes": [
@@ -36504,7 +36721,7 @@
36504
36721
  "declarations": [
36505
36722
  {
36506
36723
  "kind": "class",
36507
- "description": "A short message that arrives over the interface and leaves on its own: a save that worked, a request that failed. Not a banner, which stands in the page and stays there — this one floats, stacks, and goes away. It places itself. Write it wherever it belongs in your code and it moves to one shared area: top right from md, full width across the top below that. Nothing about the position is settable, so notifications from anywhere in an application land in the same place and stack in the same order. A modal overlay is the one thing that moves it. An nldd-sheet, nldd-window or nldd-modal-dialog paints in the browser's top layer, above the whole page and out of reach of any z-index, and while one is open everything outside it is inert. So the area goes in: into the topmost overlay that is open, and back down as they close. A notification already on screen travels with it, and one raised from inside a sheet is readable and reachable where it is raised. More than one is a deck, not a list: the front one is readable and the older ones peek out below it, so a burst of messages takes the room of roughly one. The newest is in front. Behind it a notification is a bare surface, cut to the height of the one in front; dismiss the front and it slides up into the place that came free while its message fades in, because it was standing there all along. Under the front notification sits a strip as wide as the deck and as tall as the deck is when it fans out. Pointing at it fans the deck out to fill it, which is the only hint that there is more here than the message you can read; clicking it, or moving focus into the area, lays the whole deck out as a list. Clicking or tabbing away puts it back. The notification itself is not a button: a click on the message you are reading does nothing. Only the front of the deck counts down, and only while the deck is closed: open means someone is reading. The rest wait, so nothing disappears from under the one you are reading. `critical` never leaves on its own: a failure is worth reading, and the count-down would take it away while you were. That also keeps this within WCAG 2.2.1, which allows a time limit when what disappears is not essential. The clock pauses while a pointer moves over the notification and while focus is inside it, and resumes where it left off rather than starting over. A pointer that merely happens to rest where the notification appears does not count: it never moved, so nobody is reading. role follows the variant: `critical` becomes role=\"alert\", the rest role=\"status\". Focus never moves on its own. Escape dismisses the notification that focus is in.",
36724
+ "description": "A short message that arrives over the interface and leaves on its own: a save that worked, a request that failed. Not a banner, which stands in the page and stays there — this one floats, stacks, and goes away. It places itself. Write it wherever it belongs in your code and it moves to one shared area: top right from md, full width across the top below that. Nothing about the position is settable, so notifications from anywhere in an application land in the same place and stack in the same order. A modal overlay is the one thing that moves it. An nldd-sheet, nldd-window or nldd-modal-dialog paints in the browser's top layer, above the whole page and out of reach of any z-index, and while one is open everything outside it is inert. So the area goes in: into the topmost overlay that is open, and back down as they close. A notification already on screen travels with it, and one raised from inside a sheet is readable and reachable where it is raised. More than one is a deck, not a list: the front one is readable and the older ones peek out below it, so a burst of messages takes the room of roughly one. The newest is in front. Behind it a notification is a bare surface, cut to the height of the one in front; dismiss the front and it slides up into the place that came free while its message fades in, because it was standing there all along. Under the front notification sits a strip as wide as the deck and as tall as the deck is when it fans out. Pointing at it fans the deck out to fill it, which is the only hint that there is more here than the message you can read; clicking it, or moving focus into the area, lays the whole deck out as a list. Clicking or tabbing away puts it back. The notification itself is not a button: a click on the message you are reading does nothing. Only the front of the deck counts down, and only while the deck is closed: open means someone is reading. The rest wait, so nothing disappears from under the one you are reading. `critical` never leaves on its own: a failure is worth reading, and the count-down would take it away while you were. That also keeps this within WCAG 2.2.1, which allows a time limit when what disappears is not essential. The clock pauses while a pointer moves over the notification and while focus is inside it, and resumes where it left off rather than starting over. A pointer that merely happens to rest where the notification appears does not count: it never moved, so nobody is reading. role follows the variant: `critical` becomes role=\"alert\", the rest role=\"status\". Focus never moves on its own. Escape dismisses the notification that focus is in. `NLDDNotification.show({ text, supportingText, variant, icon, duration, actions })` raises a notification without an element to manage: it creates one, shows it, and removes it once it is dismissed. An action is `{ text, onClick }`, at most 2, and a click on one also takes the notification away. It returns a handle with `dismiss()` and `update(options)`. An update changes the message, puts the notification in front and starts its clock over, so a status that changes often is one notification that keeps up instead of a new one sliding in each time; one that has already left arrives again. Use `show()` from a framework. Because a notification places itself, an element that a framework rendered is no longer where that framework left it: a keyed list (`v-for` with a `:key`) then fails on its next render, and a removed row leaves its notification on screen.",
36508
36725
  "name": "NLDDNotification",
36509
36726
  "members": [
36510
36727
  {
@@ -36557,6 +36774,25 @@
36557
36774
  "text": "number"
36558
36775
  }
36559
36776
  },
36777
+ {
36778
+ "kind": "method",
36779
+ "name": "show",
36780
+ "static": true,
36781
+ "return": {
36782
+ "type": {
36783
+ "text": "NotificationHandle"
36784
+ }
36785
+ },
36786
+ "parameters": [
36787
+ {
36788
+ "name": "options",
36789
+ "type": {
36790
+ "text": "NotificationOptions"
36791
+ }
36792
+ }
36793
+ ],
36794
+ "description": "Raises a notification from code, and takes it away again when it is\ndismissed.\n\nThe way to raise one from a framework. A notification places itself, so\nan element a framework rendered is no longer where that framework left\nit, and the next render of that list fails. Here nothing owns the\nelement but the notification itself."
36795
+ },
36560
36796
  {
36561
36797
  "kind": "field",
36562
36798
  "name": "translations",
@@ -36574,7 +36810,7 @@
36574
36810
  "events": [
36575
36811
  {
36576
36812
  "name": "dismiss",
36577
- "description": "Fired when the notification is dismissed, by the button, by Escape, or by its own clock. The consumer removes it."
36813
+ "description": "Fired when the notification is dismissed, by the button, by Escape, or by its own clock. The consumer removes it, unless it was raised with `show()`, which removes it itself."
36578
36814
  }
36579
36815
  ],
36580
36816
  "attributes": [
@@ -36701,6 +36937,24 @@
36701
36937
  ],
36702
36938
  "description": "Newest in front: what just happened is what you want to read, and the older\nones slide back and downwards behind it."
36703
36939
  },
36940
+ {
36941
+ "kind": "function",
36942
+ "name": "bringToFront",
36943
+ "return": {
36944
+ "type": {
36945
+ "text": "void"
36946
+ }
36947
+ },
36948
+ "parameters": [
36949
+ {
36950
+ "name": "notification",
36951
+ "type": {
36952
+ "text": "NLDDNotification"
36953
+ }
36954
+ }
36955
+ ],
36956
+ "description": "Puts a notification that is already in the deck back in front, as if it had\njust arrived. For one that was updated: the change is what just happened, and\nbehind a newer notification nobody would see it."
36957
+ },
36704
36958
  {
36705
36959
  "kind": "function",
36706
36960
  "name": "leaveArea",
@@ -36728,6 +36982,14 @@
36728
36982
  "module": "src/components/status-and-feedback/notification/notifications-area.ts"
36729
36983
  }
36730
36984
  },
36985
+ {
36986
+ "kind": "js",
36987
+ "name": "bringToFront",
36988
+ "declaration": {
36989
+ "name": "bringToFront",
36990
+ "module": "src/components/status-and-feedback/notification/notifications-area.ts"
36991
+ }
36992
+ },
36731
36993
  {
36732
36994
  "kind": "js",
36733
36995
  "name": "leaveArea",
@@ -37725,7 +37987,7 @@
37725
37987
  "text": "boolean"
37726
37988
  },
37727
37989
  "default": "false",
37728
- "description": "For flows without a URL per step (a wizard inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
37990
+ "description": "For flows without a URL per step (a process that runs inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
37729
37991
  "attribute": "button",
37730
37992
  "reflects": true
37731
37993
  },
@@ -37779,7 +38041,7 @@
37779
38041
  "type": {
37780
38042
  "text": "boolean"
37781
38043
  },
37782
- "description": "For flows without a URL per step (a wizard inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
38044
+ "description": "For flows without a URL per step (a process that runs inside one window). Ignored\nonce `href` is set: one step is one action, and a link outranks a button\n-- the same rule as nldd-card and nldd-avatar.",
37783
38045
  "name": "button",
37784
38046
  "default": "false",
37785
38047
  "fieldName": "button"