@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.
- package/custom-elements.json +320 -58
- package/dist/components/actions/button/button.d.ts +2 -2
- package/dist/components/actions/button/button.js +2 -2
- package/dist/components/actions/icon-button/icon-button.d.ts +2 -2
- package/dist/components/actions/icon-button/icon-button.js +2 -2
- package/dist/components/actions/menu/menu.d.ts +48 -5
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +138 -8
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts +4 -3
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +10 -5
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +1 -1
- package/dist/components/actions/split-button/split-button.js +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +14 -3
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +45 -7
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +15 -1
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/components.js +1495 -289
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +11 -7
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/text/text.d.ts +1 -1
- package/dist/components/content/text/text.js +1 -1
- package/dist/components/content/text/text.styles.d.ts.map +1 -1
- package/dist/components/content/text/text.styles.js +55 -0
- package/dist/components/content/text/text.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +16 -1
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +109 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +39 -0
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/token/token.d.ts +1 -1
- package/dist/components/content/token/token.js +1 -1
- package/dist/components/content/visually-hidden/visually-hidden.d.ts +35 -0
- package/dist/components/content/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.js +45 -0
- package/dist/components/content/visually-hidden/visually-hidden.js.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.styles.d.ts +2 -0
- package/dist/components/content/visually-hidden/visually-hidden.styles.d.ts.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.styles.js +27 -0
- package/dist/components/content/visually-hidden/visually-hidden.styles.js.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.template.d.ts +3 -0
- package/dist/components/content/visually-hidden/visually-hidden.template.d.ts.map +1 -0
- package/dist/components/content/visually-hidden/visually-hidden.template.js +7 -0
- package/dist/components/content/visually-hidden/visually-hidden.template.js.map +1 -0
- package/dist/components/{icon-button-CJIikwyu.js → icon-button-BtU8DX64.js} +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +6 -0
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +6 -0
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +12 -1
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +29 -2
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.js +2 -2
- package/dist/components/layout/collection/collection.d.ts +16 -5
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +44 -10
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +7 -6
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +1 -1
- package/dist/components/layout/container/container.js +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +4 -0
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts +20 -0
- package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.js +103 -0
- package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts +2 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +132 -0
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts +9 -5
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +15 -6
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +4 -0
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -1
- package/dist/components/layout/window/window.js +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts +8 -5
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +19 -10
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +4 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.js +5 -1
- package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +44 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +132 -3
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +21 -2
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +1 -1
- package/dist/components/navigation/link/link.js +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +8 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +20 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +8 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts +1 -1
- package/dist/components/navigation/pagination/pagination.js +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +12 -5
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +12 -5
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +71 -2
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts +5 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts.map +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js +4 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js.map +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.js +214 -23
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +68 -3
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +36 -5
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +7 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +16 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +13 -3
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +11 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +21 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts +62 -1
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.js +86 -2
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts +6 -0
- package/dist/components/status-and-feedback/notification/notifications-area.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.js +16 -0
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
- package/dist/css/rich-text.css +1 -1
- package/dist/css/variables.css +1 -0
- package/dist/nldd.min.js +1038 -637
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +1 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +1 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +1 -0
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/nl.generated.js +2 -0
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +1 -0
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +1 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +66 -36
- package/package.json +6 -2
package/dist/types/vue.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ import type { NLDDTopTitleBar } from '@nldd/design-system/top-title-bar';
|
|
|
137
137
|
import type { NLDDTwoThirdsOneThirdSection } from '@nldd/design-system/two-thirds-one-third-section';
|
|
138
138
|
import type { NLDDValidationItem } from '@nldd/design-system/validation-list';
|
|
139
139
|
import type { NLDDValidationList } from '@nldd/design-system/validation-list';
|
|
140
|
+
import type { NLDDVisuallyHidden } from '@nldd/design-system/visually-hidden';
|
|
140
141
|
import type { NLDDWindow } from '@nldd/design-system/window';
|
|
141
142
|
|
|
142
143
|
declare module 'vue' {
|
|
@@ -343,13 +344,13 @@ declare module 'vue' {
|
|
|
343
344
|
'type'?: NLDDButton['type'];
|
|
344
345
|
/** ID of a popover element this button invokes; forwarded to the inner button. Use the popoverTargetElement property instead when the popover lives in another tree. */
|
|
345
346
|
'popovertarget'?: NLDDButton['popovertarget'];
|
|
346
|
-
/** Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. */
|
|
347
|
+
/** Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
|
|
347
348
|
'loading'?: NLDDButton['loading'];
|
|
348
349
|
/** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
|
|
349
350
|
'loading-text'?: NLDDButton['loadingText'];
|
|
350
351
|
/** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
|
|
351
352
|
'loadingText'?: NLDDButton['loadingText'];
|
|
352
|
-
/** Disabled state */
|
|
353
|
+
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
353
354
|
'disabled'?: NLDDButton['disabled'];
|
|
354
355
|
/** Button text */
|
|
355
356
|
'text'?: NLDDButton['text'];
|
|
@@ -586,12 +587,18 @@ declare module 'vue' {
|
|
|
586
587
|
};
|
|
587
588
|
|
|
588
589
|
type NLDDCollectionProps = {
|
|
589
|
-
/** Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid') */
|
|
590
|
-
'layout'?: NLDDCollection['layout'];
|
|
591
|
-
/** 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. */
|
|
592
590
|
'item-width'?: NLDDCollection['itemWidth'];
|
|
593
|
-
/** 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. */
|
|
594
591
|
'itemWidth'?: NLDDCollection['itemWidth'];
|
|
592
|
+
/** Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid') */
|
|
593
|
+
'layout'?: NLDDCollection['layout'];
|
|
594
|
+
/** Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width. */
|
|
595
|
+
'item-min-width'?: NLDDCollection['itemMinWidth'];
|
|
596
|
+
/** Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width. */
|
|
597
|
+
'itemMinWidth'?: NLDDCollection['itemMinWidth'];
|
|
598
|
+
/** Largest width an item takes in horizontal scroll (e.g. '400px', '25rem'), so one or two items that fit do not stretch across the container. Defaults to 480px; `item-max-width="100%"` lets items fill the container, as they did before the default. Never narrower than `item-min-width`, which wins when it is wider, and never wider than the container. No effect in grid, lanes and stack: a grid leaves empty columns rather than stretching an item, and its right edge stays aligned with the content around it. */
|
|
599
|
+
'item-max-width'?: NLDDCollection['itemMaxWidth'];
|
|
600
|
+
/** Largest width an item takes in horizontal scroll (e.g. '400px', '25rem'), so one or two items that fit do not stretch across the container. Defaults to 480px; `item-max-width="100%"` lets items fill the container, as they did before the default. Never narrower than `item-min-width`, which wins when it is wider, and never wider than the container. No effect in grid, lanes and stack: a grid leaves empty columns rather than stretching an item, and its right edge stays aligned with the content around it. */
|
|
601
|
+
'itemMaxWidth'?: NLDDCollection['itemMaxWidth'];
|
|
595
602
|
/** Gap between items, as a step of the spacing scale ('0', '2', '4', '6', '8', '10', '12', '16', '20', '24', '28', '32', '40', '44', '48', '56', '64', '80', '96'). Overrides the responsive default at every breakpoint; unset keeps the default. */
|
|
596
603
|
'gap'?: NLDDCollection['gap'];
|
|
597
604
|
/** Gap at sm, overriding `gap` there */
|
|
@@ -705,7 +712,7 @@ declare module 'vue' {
|
|
|
705
712
|
'lg-column-count'?: NLDDContainer['lgColumnCount'];
|
|
706
713
|
/** Column count when this container is lg-wide */
|
|
707
714
|
'lgColumnCount'?: NLDDContainer['lgColumnCount'];
|
|
708
|
-
/** 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. */
|
|
715
|
+
/** 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. A 'fit-content' container takes its width from its content, so it cannot measure itself: its breakpoint padding, gap and column count follow the container around it. */
|
|
709
716
|
'width'?: NLDDContainer['width'];
|
|
710
717
|
/** Minimum width as a CSS length (e.g. '280px') */
|
|
711
718
|
'min-width'?: NLDDContainer['minWidth'];
|
|
@@ -985,7 +992,7 @@ declare module 'vue' {
|
|
|
985
992
|
'onTabdismiss'?: (event: CustomEvent) => void;
|
|
986
993
|
/** Fired when the last tab is dismissed */
|
|
987
994
|
'onTabempty'?: (event: CustomEvent) => void;
|
|
988
|
-
/** Fired when
|
|
995
|
+
/** Fired when a tab is moved, by dragging or with Shift+Arrow; detail: { fromIndex, toIndex } */
|
|
989
996
|
'onNlddReorder'?: (event: CustomEvent) => void;
|
|
990
997
|
};
|
|
991
998
|
|
|
@@ -1176,6 +1183,8 @@ declare module 'vue' {
|
|
|
1176
1183
|
type NLDDHeroProps = {
|
|
1177
1184
|
/** Body max-width; 'full' removes the bound (section API) */
|
|
1178
1185
|
'width'?: NLDDHero['width'];
|
|
1186
|
+
/** Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. 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"` */
|
|
1187
|
+
'corner'?: NLDDHero['corner'];
|
|
1179
1188
|
/** How the panel relates to the image (default: 'overlap'). 'contained' keeps it on the image, in any of the eight positions; 'overlap' lets it fall `overlap-size` over the bottom of the image and run on below as far as its content needs, so the image keeps its height whatever the content. In 'overlap' the image has a fixed height (320px on md, 400px on lg) unless `media-height` or `media-aspect-ratio` is set, and only the horizontal side of `main-position` counts. A panel shorter than `overlap-size` ends inside the image and says so in development */
|
|
1180
1189
|
'layout'?: NLDDHero['layout'];
|
|
1181
1190
|
/** Surface color of the panel: 'base' (the base surface) or a category color — 'accent' (default) or a Rijkshuisstijl color such as 'lintblauw'|'donkerblauw'|'oranje' */
|
|
@@ -1275,13 +1284,13 @@ declare module 'vue' {
|
|
|
1275
1284
|
'hide-lg-text'?: NLDDIconButton['hideLgText'];
|
|
1276
1285
|
/** In lg size, hides the text label and enlarges the icon by one step (28px) */
|
|
1277
1286
|
'hideLgText'?: NLDDIconButton['hideLgText'];
|
|
1278
|
-
/** Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). */
|
|
1287
|
+
/** Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
|
|
1279
1288
|
'loading'?: NLDDIconButton['loading'];
|
|
1280
1289
|
/** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
|
|
1281
1290
|
'loading-text'?: NLDDIconButton['loadingText'];
|
|
1282
1291
|
/** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
|
|
1283
1292
|
'loadingText'?: NLDDIconButton['loadingText'];
|
|
1284
|
-
/** Disabled state */
|
|
1293
|
+
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
1285
1294
|
'disabled'?: NLDDIconButton['disabled'];
|
|
1286
1295
|
/** Removes the per-appearance highlight border (e.g. when a control group draws a single border instead). */
|
|
1287
1296
|
'no-highlight-border'?: NLDDIconButton['noHighlightBorder'];
|
|
@@ -1521,7 +1530,7 @@ declare module 'vue' {
|
|
|
1521
1530
|
'accessible-label'?: NLDDLink['accessibleLabel'];
|
|
1522
1531
|
/** Accessible label for screen readers */
|
|
1523
1532
|
'accessibleLabel'?: NLDDLink['accessibleLabel'];
|
|
1524
|
-
/** Disabled state */
|
|
1533
|
+
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
1525
1534
|
'disabled'?: NLDDLink['disabled'];
|
|
1526
1535
|
/** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
|
|
1527
1536
|
'no-tab'?: NLDDLink['noTab'];
|
|
@@ -1656,6 +1665,8 @@ declare module 'vue' {
|
|
|
1656
1665
|
};
|
|
1657
1666
|
|
|
1658
1667
|
type NLDDMenuProps = {
|
|
1668
|
+
/** What the menu is, which sets its roles and part of its keyboard. See the `variant` attribute in the docblock above. */
|
|
1669
|
+
'variant'?: NLDDMenu['variant'];
|
|
1659
1670
|
/** Explicit width, pinned exactly (sets --_menu-width and clamps min/max to it). Leave unset to let the menu size to its content between a minimum and a viewport-aware maximum of min(100vw - inset, 640px). */
|
|
1660
1671
|
'width'?: NLDDMenu['width'];
|
|
1661
1672
|
/** 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. */
|
|
@@ -1678,8 +1689,6 @@ declare module 'vue' {
|
|
|
1678
1689
|
'translations'?: NLDDMenu['translations'];
|
|
1679
1690
|
/** Custom filter function (query, item) => boolean. */
|
|
1680
1691
|
'filterFn'?: NLDDMenu['filterFn'];
|
|
1681
|
-
/** Render variant. Use 'listbox' when the menu serves as a combobox popup — this switches role to "listbox" and item roles to "option" per ARIA spec. Default: 'menu'. */
|
|
1682
|
-
'variant'?: NLDDMenu['variant'];
|
|
1683
1692
|
/** The anchor as an element reference. Positions the menu exactly like the `anchor` attribute, but does NOT turn the anchor into a toggle — clicking it does not open the menu. Use this whenever you drive open/close yourself (`showPopover()` / `hidePopover()`), which is what nldd-combo-box and nldd-token-field do: their input must stay an input, not a menu button. */
|
|
1684
1693
|
'anchorElement'?: NLDDMenu['anchorElement'];
|
|
1685
1694
|
};
|
|
@@ -1711,7 +1720,7 @@ declare module 'vue' {
|
|
|
1711
1720
|
'href'?: NLDDMenuBarItem['href'];
|
|
1712
1721
|
/** Optional icon name (nldd-icon) */
|
|
1713
1722
|
'icon'?: NLDDMenuBarItem['icon'];
|
|
1714
|
-
/** Show the disclosure icon and open the slotted `<nldd-menu>` on click */
|
|
1723
|
+
/** 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`. */
|
|
1715
1724
|
'expandable'?: NLDDMenuBarItem['expandable'];
|
|
1716
1725
|
/** Hide the text visually (always). The text then shows as a tooltip on hover and focus. */
|
|
1717
1726
|
'icon-only'?: NLDDMenuBarItem['iconOnly'];
|
|
@@ -1723,7 +1732,7 @@ declare module 'vue' {
|
|
|
1723
1732
|
'contentPriority'?: NLDDMenuBarItem['contentPriority'];
|
|
1724
1733
|
/** Activates content-priority behavior (set by the parent nldd-menu-bar) */
|
|
1725
1734
|
'compact'?: NLDDMenuBarItem['compact'];
|
|
1726
|
-
/** Turn interaction off */
|
|
1735
|
+
/** Turn interaction off. Avoid it where you can; the design guidelines say why. */
|
|
1727
1736
|
'disabled'?: NLDDMenuBarItem['disabled'];
|
|
1728
1737
|
/** Override aria-label */
|
|
1729
1738
|
'accessible-label'?: NLDDMenuBarItem['accessibleLabel'];
|
|
@@ -1819,7 +1828,7 @@ declare module 'vue' {
|
|
|
1819
1828
|
'open'?: NLDDModalDialog['open'];
|
|
1820
1829
|
/** When the dialog is opened */
|
|
1821
1830
|
'onOpen'?: (event: CustomEvent) => void;
|
|
1822
|
-
/** 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.
|
|
1831
|
+
/** 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. */
|
|
1823
1832
|
'onClose'?: (event: CustomEvent) => void;
|
|
1824
1833
|
};
|
|
1825
1834
|
|
|
@@ -1928,7 +1937,7 @@ declare module 'vue' {
|
|
|
1928
1937
|
'duration'?: NLDDNotification['duration'];
|
|
1929
1938
|
/** Override translation keys; unset keys fall back to Dutch */
|
|
1930
1939
|
'translations'?: NLDDNotification['translations'];
|
|
1931
|
-
/** Fired when the notification is dismissed, by the button, by Escape, or by its own clock. The consumer removes it. */
|
|
1940
|
+
/** 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. */
|
|
1932
1941
|
'onDismiss'?: (event: CustomEvent) => void;
|
|
1933
1942
|
};
|
|
1934
1943
|
|
|
@@ -2110,7 +2119,7 @@ declare module 'vue' {
|
|
|
2110
2119
|
'current'?: NLDDPagination['current'];
|
|
2111
2120
|
/** Total number of pages (recommended max: 200 for compact select performance) */
|
|
2112
2121
|
'total'?: NLDDPagination['total'];
|
|
2113
|
-
/** Disabled state */
|
|
2122
|
+
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
2114
2123
|
'disabled'?: NLDDPagination['disabled'];
|
|
2115
2124
|
/** Centers the pagination in the container (host fills row, items grouped in the middle) */
|
|
2116
2125
|
'centered'?: NLDDPagination['centered'];
|
|
@@ -2704,7 +2713,7 @@ declare module 'vue' {
|
|
|
2704
2713
|
'size'?: NLDDSplitButton['size'];
|
|
2705
2714
|
/** Visual style (default: 'neutral-tinted'; 'inherit-tinted' and 'inherit-filled' for a colored surface) */
|
|
2706
2715
|
'appearance'?: NLDDSplitButton['appearance'];
|
|
2707
|
-
/** Disabled state */
|
|
2716
|
+
/** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
|
|
2708
2717
|
'disabled'?: NLDDSplitButton['disabled'];
|
|
2709
2718
|
/** Width mode: 'full' (stretches to container) or any CSS length; the main action button fills the available space */
|
|
2710
2719
|
'width'?: NLDDSplitButton['width'];
|
|
@@ -2787,7 +2796,7 @@ declare module 'vue' {
|
|
|
2787
2796
|
'icon'?: NLDDStepBarItem['icon'];
|
|
2788
2797
|
/** Makes the step a link (back to a completed step, for instance) */
|
|
2789
2798
|
'href'?: NLDDStepBarItem['href'];
|
|
2790
|
-
/** For flows without a URL per step (a
|
|
2799
|
+
/** For flows without a URL per step (a process that runs inside one window). Ignored once `href` is set: one step is one action, and a link outranks a button -- the same rule as nldd-card and nldd-avatar. */
|
|
2791
2800
|
'button'?: NLDDStepBarItem['button'];
|
|
2792
2801
|
/** The status that counts. An own `past` or `future` wins over the derived one. An own `current` is what the parent derives from, so the derived status already says it, and on a step that lost to a later one it does not hold. */
|
|
2793
2802
|
'resolvedStatus'?: NLDDStepBarItem['resolvedStatus'];
|
|
@@ -2908,12 +2917,14 @@ declare module 'vue' {
|
|
|
2908
2917
|
'size'?: NLDDTabBar['size'];
|
|
2909
2918
|
/** Renders a nav landmark instead of tablist; use for href-based items that navigate between routes */
|
|
2910
2919
|
'navigation'?: NLDDTabBar['navigation'];
|
|
2911
|
-
/** Disables the whole bar: dims it, blocks pointer interaction, and takes the tabs out of the tab order */
|
|
2920
|
+
/** 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. */
|
|
2912
2921
|
'disabled'?: NLDDTabBar['disabled'];
|
|
2913
2922
|
/** Accessible name for the navigation region; defaults to 'Tabs' */
|
|
2914
2923
|
'accessible-label'?: NLDDTabBar['accessibleLabel'];
|
|
2915
2924
|
/** Accessible name for the navigation region; defaults to 'Tabs' */
|
|
2916
2925
|
'accessibleLabel'?: NLDDTabBar['accessibleLabel'];
|
|
2926
|
+
/** Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch. */
|
|
2927
|
+
'translations'?: NLDDTabBar['translations'];
|
|
2917
2928
|
/** When a tab is selected; detail: { item: NLDDTabBarItem } */
|
|
2918
2929
|
'onTabchange'?: (event: CustomEvent) => void;
|
|
2919
2930
|
};
|
|
@@ -3256,6 +3267,18 @@ declare module 'vue' {
|
|
|
3256
3267
|
type NLDDTitleProps = {
|
|
3257
3268
|
/** Visual size of the title: 1–6 (default: 3) */
|
|
3258
3269
|
'size'?: NLDDTitle['size'];
|
|
3270
|
+
/** 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` */
|
|
3271
|
+
'sm-custom-size'?: NLDDTitle['smCustomSize'];
|
|
3272
|
+
/** 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` */
|
|
3273
|
+
'smCustomSize'?: NLDDTitle['smCustomSize'];
|
|
3274
|
+
/** The same, at md */
|
|
3275
|
+
'md-custom-size'?: NLDDTitle['mdCustomSize'];
|
|
3276
|
+
/** The same, at md */
|
|
3277
|
+
'mdCustomSize'?: NLDDTitle['mdCustomSize'];
|
|
3278
|
+
/** The same, at lg */
|
|
3279
|
+
'lg-custom-size'?: NLDDTitle['lgCustomSize'];
|
|
3280
|
+
/** The same, at lg */
|
|
3281
|
+
'lgCustomSize'?: NLDDTitle['lgCustomSize'];
|
|
3259
3282
|
/** 'content' (the default) takes the system's own content colors. 'inherit' lets the title follow the text color of the surface instead (for colored areas such as the filled categories); overline and supporting-text get the same color at a lowered opacity. */
|
|
3260
3283
|
'color'?: NLDDTitle['color'];
|
|
3261
3284
|
/** Title text. Content in the default slot takes its place. */
|
|
@@ -3413,7 +3436,7 @@ declare module 'vue' {
|
|
|
3413
3436
|
'roving'?: NLDDToken['roving'];
|
|
3414
3437
|
/** Reflects whether the token's menu is open (control="menu"); managed by the token. */
|
|
3415
3438
|
'expanded'?: NLDDToken['expanded'];
|
|
3416
|
-
/** Disabled state */
|
|
3439
|
+
/** Disabled state. Avoid it where you can; the design guidelines say why. */
|
|
3417
3440
|
'disabled'?: NLDDToken['disabled'];
|
|
3418
3441
|
/** When the dismiss button is clicked */
|
|
3419
3442
|
'onDismiss'?: (event: CustomEvent) => void;
|
|
@@ -3480,8 +3503,10 @@ declare module 'vue' {
|
|
|
3480
3503
|
'show-item-labels'?: NLDDToolbar['showItemLabels'];
|
|
3481
3504
|
/** When true, shows a text label below each toolbar item and the overflow button */
|
|
3482
3505
|
'showItemLabels'?: NLDDToolbar['showItemLabels'];
|
|
3483
|
-
/** Accessible
|
|
3484
|
-
'label'?: NLDDToolbar['
|
|
3506
|
+
/** Accessible name of the toolbar. Only needed when multiple toolbars appear on the same page. */
|
|
3507
|
+
'accessible-label'?: NLDDToolbar['accessibleLabel'];
|
|
3508
|
+
/** Accessible name of the toolbar. Only needed when multiple toolbars appear on the same page. */
|
|
3509
|
+
'accessibleLabel'?: NLDDToolbar['accessibleLabel'];
|
|
3485
3510
|
/** Override translation keys (e.g. the overflow button label); unset keys fall back to Dutch. */
|
|
3486
3511
|
'translations'?: NLDDToolbar['translations'];
|
|
3487
3512
|
};
|
|
@@ -3701,6 +3726,9 @@ declare module 'vue' {
|
|
|
3701
3726
|
'value'?: NLDDValidationList['value'];
|
|
3702
3727
|
};
|
|
3703
3728
|
|
|
3729
|
+
type NLDDVisuallyHiddenProps = {
|
|
3730
|
+
};
|
|
3731
|
+
|
|
3704
3732
|
type NLDDWindowProps = {
|
|
3705
3733
|
/** Color scheme (default 'inherit'). */
|
|
3706
3734
|
'scheme'?: NLDDWindow['scheme'];
|
|
@@ -3724,9 +3752,9 @@ declare module 'vue' {
|
|
|
3724
3752
|
'accessibleLabel'?: NLDDWindow['accessibleLabel'];
|
|
3725
3753
|
/** Override translation keys; unset keys fall back to the Dutch default. */
|
|
3726
3754
|
'translations'?: NLDDWindow['translations'];
|
|
3727
|
-
/** A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a
|
|
3755
|
+
/** 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. */
|
|
3728
3756
|
'no-light-dismiss'?: NLDDWindow['noLightDismiss'];
|
|
3729
|
-
/** A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a
|
|
3757
|
+
/** 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. */
|
|
3730
3758
|
'noLightDismiss'?: NLDDWindow['noLightDismiss'];
|
|
3731
3759
|
/** Whether the window is open. Set it to open or close the window, as an alternative to show() and hide(). The window clears it itself when it closes another way (Escape, the backdrop, the close button of its title bar), so bind it together with the close event. */
|
|
3732
3760
|
'open'?: NLDDWindow['open'];
|
|
@@ -3763,7 +3791,7 @@ declare module 'vue' {
|
|
|
3763
3791
|
'nldd-button-bar-divider': DefineComponent<anonymous_0Props>;
|
|
3764
3792
|
/** A container for grouping related buttons together, in a row or stacked. `auto`, the default, is a row on a container wide enough for one and a stack over the full width below the sm breakpoint, where two labels beside each other leave no room for either. The group is its own container, so it follows the width it was given rather than the width of the window: the same group is a row in a page and a stack in a sheet beside it. Being a container has one consequence to know: the width has to come from the parent, since a container may not size itself from what is inside it. In a parent that shrink-wraps its content (an inline-flex box, a float, a table cell, a flex item at `width: auto`) the group measures zero and its buttons are invisible. It says so once in development. Give the group or that parent a width. A stack fills the width with its buttons, except an `nldd-icon-button`, which keeps its own size: a bar with a single glyph in the middle is not a bigger target, only a wider one. */
|
|
3765
3793
|
'nldd-button-group': DefineComponent<NLDDButtonGroupProps>;
|
|
3766
|
-
/** 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. */
|
|
3794
|
+
/** 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. */
|
|
3767
3795
|
'nldd-card': DefineComponent<NLDDCardProps>;
|
|
3768
3796
|
/** 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"`. */
|
|
3769
3797
|
'nldd-cell': DefineComponent<NLDDCellProps>;
|
|
@@ -3774,7 +3802,7 @@ declare module 'vue' {
|
|
|
3774
3802
|
'nldd-code-editor': DefineComponent<NLDDCodeEditorProps>;
|
|
3775
3803
|
/** A read-only block of code/text built on a non-editable CodeMirror 6 view. Visually pairs with nldd-code-editor (same engine, same token palette). Whitespace is preserved; long lines scroll horizontally by default. Set `wrap` to break long lines onto the next visual line. The viewer grows with its content. Set `max-height` to show a long file in a frame of its own: the block grows up to that height and scrolls beyond it. A scroller that overflows, in either direction, is a tab stop with a role and a name, so the keyboard reaches what a pointer can scroll to. Set `language` to one of the supported grammars (yaml, json, javascript, typescript, css, html, xml, bash, markdown, rust, gherkin, toml, sql, python) to highlight the content. Without `language` the content renders plain. Grammars are loaded lazily on first use, so a page that never sets `language` ships zero grammar code. Token colors are the `--semantics-code-syntax-*` custom properties (shared with the editor via the CodeMirror highlight style). Override them per-instance to swap the theme. */
|
|
3776
3804
|
'nldd-code-viewer': DefineComponent<NLDDCodeViewerProps>;
|
|
3777
|
-
/** 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. */
|
|
3805
|
+
/** 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. */
|
|
3778
3806
|
'nldd-collection': DefineComponent<NLDDCollectionProps>;
|
|
3779
3807
|
/** A text input with autocomplete dropdown via nldd-menu. Add a slotted nldd-menu with nldd-menu-item children to provide options. The slotted nldd-menu keeps its default focus behavior (menu container receives focus) so that typing keeps focus on the input. The picker button moves focus to the menu explicitly on activation. Note: Only nldd-menu-item type="button" is supported. Radio and checkbox types are not supported in this context. */
|
|
3780
3808
|
'nldd-combo-box': DefineComponent<NLDDComboBoxProps>;
|
|
@@ -3793,7 +3821,7 @@ declare module 'vue' {
|
|
|
3793
3821
|
'nldd-document-tab-bar-item': DefineComponent<NLDDDocumentTabBarItemProps>;
|
|
3794
3822
|
/** A cell that displays a drag handle for reorderable list items. Always vertically centered and sized to fit the handle. To enable drag-to-reorder, add the `reorderable-only` attribute to this element. This attribute is required for `nldd-list` to detect the drag handle in the composed event path and activate pointer and keyboard drag mode: ```html <nldd-list reorderable> <nldd-list-item> <nldd-drag-handle-cell reorderable-only></nldd-drag-handle-cell> <nldd-text-cell text="Item"></nldd-text-cell> </nldd-list-item> </nldd-list> ``` Without `reorderable-only`, pointer and keyboard drag will never trigger. */
|
|
3795
3823
|
'nldd-drag-handle-cell': DefineComponent<NLDDDragHandleCellProps>;
|
|
3796
|
-
/** 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. */
|
|
3824
|
+
/** 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. */
|
|
3797
3825
|
'nldd-dropdown': DefineComponent<NLDDDropdownProps>;
|
|
3798
3826
|
/** A file picker that reads as one control: an nldd-button flush in the corner of a tinted surface, the chosen file next to it, and a dismiss button to clear it again. It wraps a hidden native `<input type="file">`, which is what makes the picker open at all — a file dialog only opens from a user gesture on a real input. The surface deliberately does not look like an input field. A border with field semantics promises you can type into it; here you can only press a button, so it uses button and surface colors instead of `--semantics-input-fields-*`. The button keeps its own tinted background and therefore sits a shade darker in the surface, which is what marks it as the thing to press. Several files are summarized, not listed: "3 bestanden" with a single cross that clears all of them. Every pick replaces the whole FileList, and rebuilding it to add or drop one file means going through DataTransfer, which does not deduplicate (even the same File object twice yields two entries) — and a File has no id, so deduplicating would come down to guessing from name, size and last-modified. A list with a cross per file would promise an edit the platform does not support. A page that does want to show the files renders its own list from the `File[]` in the change event. */
|
|
3799
3827
|
'nldd-file-field': DefineComponent<NLDDFileFieldProps>;
|
|
@@ -3808,7 +3836,7 @@ declare module 'vue' {
|
|
|
3808
3836
|
'nldd-form-section': DefineComponent<NLDDFormSectionProps>;
|
|
3809
3837
|
/** A section that spans the full width without horizontal padding. Useful for background colors, images, or other content that runs edge to edge. Vertical padding and gap adjust via container queries. */
|
|
3810
3838
|
'nldd-full-bleed-section': DefineComponent<NLDDFullBleedSectionProps>;
|
|
3811
|
-
/** 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.
|
|
3839
|
+
/** 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. */
|
|
3812
3840
|
'nldd-hero': DefineComponent<NLDDHeroProps>;
|
|
3813
3841
|
/** A customizable icon component that renders SVG icons from a predefined library. Icons are decorative by default: the host gets `aria-hidden="true"` automatically. If you want the icon to be announced by assistive tech, set `aria-hidden="false"` on the consumer side together with an `aria-label`. Sizing: the icon fills whatever sizes it — an `nldd-icon-cell`, a button, a menu item. `size="full"` names that default explicitly. `size="inherit"` makes it follow the surrounding text (1em), for an icon set inline in a sentence. Any spacer-aligned number (16–96) pins a fixed dimension. Reach for `inherit` rather than a global `nldd-icon { width: 1em }` rule in the consumer: such a rule wins over the component's own :host styling and so also shrinks the icons that a cell or button was already sizing correctly. Color: by default the icon inherits its parent's `color`. Set `color` to one of the functional semantics (`primary-content`, `secondary-content`, `accent`, `critical`, `warning`, `success`) or a rijkskleur (`lintblauw`, `paars`, `groen`, …). For a color the system cannot know — the jacket of a cable, a color someone picked — set `custom-color` to any CSS color. */
|
|
3814
3842
|
'nldd-icon': DefineComponent<NLDDIconProps>;
|
|
@@ -3845,12 +3873,12 @@ declare module 'vue' {
|
|
|
3845
3873
|
'nldd-menu-group': DefineComponent<NLDDMenuGroupProps>;
|
|
3846
3874
|
/** A single item within an nldd-menu. */
|
|
3847
3875
|
'nldd-menu-item': DefineComponent<NLDDMenuItemProps>;
|
|
3848
|
-
/** 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. */
|
|
3876
|
+
/** 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. */
|
|
3849
3877
|
'nldd-modal-dialog': DefineComponent<NLDDModalDialogProps>;
|
|
3850
3878
|
'nldd-multi-line-text-field': DefineComponent<NLDDMultiLineTextFieldProps>;
|
|
3851
3879
|
/** A four-column layout with a primary sidebar, secondary sidebar, main content area, and inspector. The sidebars show navigation or lists, the main area shows primary content, and the inspector shows additional details or properties of the selection. Panes are shown automatically when content is slotted into them. When they stop fitting, panes drop in a fixed order: the inspector goes first, then the primary sidebar collapses into the secondary sidebar. If that still does not fit, the view stacks and shows one pane at a time: main when it has content, otherwise the secondary sidebar, otherwise the primary sidebar. Use <code>nldd-split-view-pane</code> as direct children for automatic back button handling. */
|
|
3852
3880
|
'nldd-navigation-split-view': DefineComponent<NLDDNavigationSplitViewProps>;
|
|
3853
|
-
/** 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. */
|
|
3881
|
+
/** 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. */
|
|
3854
3882
|
'nldd-notification': DefineComponent<NLDDNotificationProps>;
|
|
3855
3883
|
/** A numeric input field with decrement and increment buttons. */
|
|
3856
3884
|
'nldd-number-field': DefineComponent<NLDDNumberFieldProps>;
|
|
@@ -3901,7 +3929,7 @@ declare module 'vue' {
|
|
|
3901
3929
|
'nldd-sidebar-section': DefineComponent<NLDDSidebarSectionProps>;
|
|
3902
3930
|
/** A basic section with responsive padding and gap based on container size. Contains optional header and footer slots. The padding and spacing between slots adjust automatically via container queries. Use one section per content block and repeat the section rather than building columns inside one: the section sets the reading width and the padding itself. For two columns there are nldd-one-half-one-half-section, nldd-two-thirds-one-third-section, nldd-one-third-two-thirds-section and nldd-sidebar-section. Give a section its surface with `background` instead of a background color of your own; that is how the components inside know which surface they are on. */
|
|
3903
3931
|
'nldd-simple-section': DefineComponent<NLDDSimpleSectionProps>;
|
|
3904
|
-
/** 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". */
|
|
3932
|
+
/** 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". */
|
|
3905
3933
|
'nldd-skip-link': DefineComponent<NLDDSkipLinkProps>;
|
|
3906
3934
|
/** 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. */
|
|
3907
3935
|
'nldd-spacer': DefineComponent<NLDDSpacerProps>;
|
|
@@ -3929,7 +3957,7 @@ declare module 'vue' {
|
|
|
3929
3957
|
'nldd-switch': DefineComponent<NLDDSwitchProps>;
|
|
3930
3958
|
/** A switch toggle with an inline label for use in forms. */
|
|
3931
3959
|
'nldd-switch-field': DefineComponent<NLDDSwitchFieldProps>;
|
|
3932
|
-
/** A horizontal navigation bar with mutually exclusive tabs. Exports both NLDDTabBar and NLDDTabBarItem. */
|
|
3960
|
+
/** 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. */
|
|
3933
3961
|
'nldd-tab-bar': DefineComponent<NLDDTabBarProps>;
|
|
3934
3962
|
'nldd-tab-bar-item': DefineComponent<NLDDTabBarItemProps>;
|
|
3935
3963
|
/** Exports both NLDDTable and NLDDTableRow. A data table presented as a boxed surface (rounded corners, an inset border ring, a base or tinted fill) that aligns content into shared columns using a CSS grid + subgrid. Row dividers run full-bleed to the edges; the inline padding lives on the rows, so it insets the cell content but not the dividers. Column widths are defined ONCE on the table via the `columns` attribute (a CSS grid track list), like an HTML `<colgroup>`. Rows are `<nldd-table-row>` elements whose children are the existing `nldd-cell` family — every row uses `grid-template-columns: subgrid`, so all rows snap to the same columns. Header: put one `<nldd-table-row slot="header">` in the `header` slot. Its cells become column headers (role="columnheader"). Responsive: two complementary strategies. (1) Give columns a minimum width (e.g. `minmax(160px,1fr)`) — the table is its own scroll container, so it scrolls horizontally when too narrow (no wrapper needed). (2) Drop columns at breakpoints: provide `sm-columns`/`md-columns`/ `lg-columns` (shorter track lists) and hide the dropped columns' cells with `hide-below`/`hide-above` at the matching breakpoint. The table picks the track list for its own width via the standard sm/md/lg breakpoints. Selection and sorting are intentionally NOT built in: add a column with an `nldd-cell` + `nldd-checkbox` for selection, and drive sorting from an external control (e.g. a dropdown). */
|
|
@@ -3960,13 +3988,13 @@ declare module 'vue' {
|
|
|
3960
3988
|
'nldd-token': DefineComponent<NLDDTokenProps>;
|
|
3961
3989
|
/** A multi-select input that looks like a normal input field: chosen values show as dismissible tokens in a wrapping row, followed by an inline text input that stretches to fill the remaining space and wraps to a new line (growing the field) when it no longer fits. Options are supplied as a slotted nldd-menu, exactly like nldd-combo-box; the menu filters as you type, with a chevron picker button, arrow-key roving across the tokens and ElementInternals form participation. Options can arrive after the keystroke, from a server you query per keystroke. Slot them into the menu when they come in: if the user is still in the field and the keystroke found nothing to show, the menu opens then. After Escape, or once the user left the field, it stays shut. */
|
|
3962
3990
|
'nldd-token-field': DefineComponent<NLDDTokenFieldProps>;
|
|
3963
|
-
/** 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. */
|
|
3991
|
+
/** 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. */
|
|
3964
3992
|
'nldd-toolbar': DefineComponent<NLDDToolbarProps>;
|
|
3965
3993
|
'nldd-toolbar-item': DefineComponent<NLDDToolbarItemProps>;
|
|
3966
3994
|
'nldd-toolbar-title': DefineComponent<NLDDToolbarTitleProps>;
|
|
3967
3995
|
/** A wrapper that shows a tooltip on hover or focus of its child element. It uses `display: contents`, so it does not affect the child's layout. */
|
|
3968
3996
|
'nldd-tooltip': DefineComponent<NLDDTooltipProps>;
|
|
3969
|
-
/** 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. */
|
|
3997
|
+
/** 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`. */
|
|
3970
3998
|
'nldd-top-navigation-bar': DefineComponent<NLDDTopNavigationBarProps>;
|
|
3971
3999
|
/** A toolbar for page and container headings with optional navigation and action buttons. The component has two states: - Default: the back button shows the previous page title as a text button - Compact (class `is-compact`): the back button is an icon button, a divider and the toolbar title are visible When `collapse-anchor` is set, the `is-compact` class is automatically applied as soon as the top of the anchor element reaches this bar's own top edge (the sticky header line). Measuring the bar rather than the page keeps it correct in both nested and root scroll modes; it also re-points at the live scroll target when the page switches mode. Without `collapse-anchor` the bar takes a static state: compact when `text` is set (so the title shows in the title-group), non-compact otherwise (so the `back-text` button stays visible). An anchored bar hides its own title from assistive technology. The anchor is the heading the title swaps in for, so both carry the same words: once you scroll past the heading, a screen reader would otherwise find the same title twice. Sighted readers see one at a time, and this makes that true for everyone. Anchor at the heading, then, and not at some other element that happens to sit at the right height: the bar hands its title over to it. The title stays on one line and is cut off with an ellipsis when it does not fit, which on a narrow screen or at 400% zoom is soon. The bar is therefore not the place for the full title: put that in an `nldd-title` at the top of the content, which wraps and always fits, and point `collapse-anchor` at it. A bar without an anchor holds the only copy of its title, so keep that one to a word or two. */
|
|
3972
4000
|
'nldd-top-title-bar': DefineComponent<NLDDTopTitleBarProps>;
|
|
@@ -3976,6 +4004,8 @@ declare module 'vue' {
|
|
|
3976
4004
|
'nldd-validation-item': DefineComponent<NLDDValidationItemProps>;
|
|
3977
4005
|
/** Nederlandse Digitale Dienst Validation List (Lit + TypeScript) Everything a value has to satisfy, in one list. A requirement you can state up front is an item with a rule, and it checks itself while you type. One only a server can decide is an item without a rule, and the app names it in `unmet` on the control. The list has two modes and `judging` is the switch. Before a verdict it shows its hints, which are the requirements of the field. After one it shows everything the value does not satisfy, and the hints are gone. It throws that switch itself the moment its control turns `invalid`, so when the field is judged is the consumer's decision, and the right moment is on submit. Hints are off by default. A phone number does not need its format spelled out before anyone has typed, while the rules for a password do. There are no checkmarks. The control already shows a validation icon of its own, and repeating that per line says the same thing three times. */
|
|
3978
4006
|
'nldd-validation-list': DefineComponent<NLDDValidationListProps>;
|
|
4007
|
+
/** 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. */
|
|
4008
|
+
'nldd-visually-hidden': DefineComponent<NLDDVisuallyHiddenProps>;
|
|
3979
4009
|
/** A floating window based on the native <dialog> element, positionable through CSS values. Always modal. No header of its own: consumers use nldd-page with a sticky header inside for a title bar. The text of the nldd-top-title-bar in that header is also the window's accessible name. Open and close it with `open`, bound to your state together with the close event: the window clears `open` itself when the user closes it. show() and hide() do the same for code without a binding. Keep the window in the DOM rather than mounting it when it opens, or the animations are skipped. */
|
|
3980
4010
|
'nldd-window': DefineComponent<NLDDWindowProps>;
|
|
3981
4011
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nldd/design-system",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.100",
|
|
4
4
|
"description": "Designsysteem voor de Nederlandse Digitale Dienst",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/components/components.js",
|
|
@@ -94,6 +94,10 @@
|
|
|
94
94
|
"types": "./dist/components/content/tooltip/tooltip.d.ts",
|
|
95
95
|
"default": "./dist/components/content/tooltip/tooltip.js"
|
|
96
96
|
},
|
|
97
|
+
"./visually-hidden": {
|
|
98
|
+
"types": "./dist/components/content/visually-hidden/visually-hidden.d.ts",
|
|
99
|
+
"default": "./dist/components/content/visually-hidden/visually-hidden.js"
|
|
100
|
+
},
|
|
97
101
|
"./form": {
|
|
98
102
|
"types": "./dist/components/forms/form/form.d.ts",
|
|
99
103
|
"default": "./dist/components/forms/form/form.js"
|
|
@@ -581,7 +585,7 @@
|
|
|
581
585
|
"svgo": "^4.1.0",
|
|
582
586
|
"typescript": "^5.3.0",
|
|
583
587
|
"typescript-eslint": "^8.58.0",
|
|
584
|
-
"vite": "8.3.
|
|
588
|
+
"vite": "8.3.4",
|
|
585
589
|
"vitest": "5.0.3",
|
|
586
590
|
"vue": "^3.5.40",
|
|
587
591
|
"vue-tsc": "^3.3.7"
|