@nldd/design-system 0.8.99 → 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 (91) hide show
  1. package/custom-elements.json +161 -26
  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 +9 -0
  7. package/dist/components/actions/menu/menu.d.ts.map +1 -1
  8. package/dist/components/actions/menu/menu.js +18 -1
  9. package/dist/components/actions/menu/menu.js.map +1 -1
  10. package/dist/components/actions/split-button/split-button.d.ts +1 -1
  11. package/dist/components/actions/split-button/split-button.js +1 -1
  12. package/dist/components/components.js +673 -190
  13. package/dist/components/content/text/text.d.ts +1 -1
  14. package/dist/components/content/text/text.js +1 -1
  15. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  16. package/dist/components/content/text/text.styles.js +55 -0
  17. package/dist/components/content/text/text.styles.js.map +1 -1
  18. package/dist/components/content/title/title.d.ts +16 -1
  19. package/dist/components/content/title/title.d.ts.map +1 -1
  20. package/dist/components/content/title/title.js +109 -0
  21. package/dist/components/content/title/title.js.map +1 -1
  22. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  23. package/dist/components/content/title/title.styles.js +39 -0
  24. package/dist/components/content/title/title.styles.js.map +1 -1
  25. package/dist/components/content/token/token.d.ts +1 -1
  26. package/dist/components/content/token/token.js +1 -1
  27. package/dist/components/{icon-button-CJIikwyu.js → icon-button-BtU8DX64.js} +2 -2
  28. package/dist/components/inputs/dropdown/dropdown.d.ts +6 -0
  29. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  30. package/dist/components/inputs/dropdown/dropdown.js +6 -0
  31. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  32. package/dist/components/layout/collection/collection.d.ts +16 -5
  33. package/dist/components/layout/collection/collection.d.ts.map +1 -1
  34. package/dist/components/layout/collection/collection.js +44 -10
  35. package/dist/components/layout/collection/collection.js.map +1 -1
  36. package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
  37. package/dist/components/layout/collection/collection.styles.js +7 -6
  38. package/dist/components/layout/collection/collection.styles.js.map +1 -1
  39. package/dist/components/layout/container/container.d.ts +1 -1
  40. package/dist/components/layout/container/container.js +1 -1
  41. package/dist/components/layout/container/container.styles.d.ts.map +1 -1
  42. package/dist/components/layout/container/container.styles.js +4 -0
  43. package/dist/components/layout/container/container.styles.js.map +1 -1
  44. package/dist/components/layout/page-sections/hero/hero-corner.d.ts +20 -0
  45. package/dist/components/layout/page-sections/hero/hero-corner.d.ts.map +1 -0
  46. package/dist/components/layout/page-sections/hero/hero-corner.js +103 -0
  47. package/dist/components/layout/page-sections/hero/hero-corner.js.map +1 -0
  48. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts +2 -0
  49. package/dist/components/layout/page-sections/hero/hero-corner.styles.d.ts.map +1 -0
  50. package/dist/components/layout/page-sections/hero/hero-corner.styles.js +132 -0
  51. package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -0
  52. package/dist/components/layout/page-sections/hero/hero.d.ts +9 -5
  53. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  54. package/dist/components/layout/page-sections/hero/hero.js +15 -6
  55. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  56. package/dist/components/layout/window/window.d.ts +1 -1
  57. package/dist/components/layout/window/window.js +1 -1
  58. package/dist/components/lists-and-tables/table/table.d.ts +8 -5
  59. package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
  60. package/dist/components/lists-and-tables/table/table.js +19 -10
  61. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  62. package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
  63. package/dist/components/lists-and-tables/table/table.styles.js +4 -0
  64. package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
  65. package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
  66. package/dist/components/lists-and-tables/table/table.template.js +5 -1
  67. package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
  68. package/dist/components/navigation/link/link.d.ts +1 -1
  69. package/dist/components/navigation/link/link.js +1 -1
  70. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +4 -1
  71. package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
  72. package/dist/components/navigation/menu-bar-item/menu-bar-item.js +11 -1
  73. package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
  74. package/dist/components/navigation/pagination/pagination.d.ts +1 -1
  75. package/dist/components/navigation/pagination/pagination.js +1 -1
  76. package/dist/components/navigation/tab-bar/tab-bar.d.ts +1 -1
  77. package/dist/components/navigation/tab-bar/tab-bar.js +1 -1
  78. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  79. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +6 -3
  80. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  81. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +11 -1
  82. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
  83. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +21 -1
  84. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
  85. package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +1 -1
  86. package/dist/components/status-and-feedback/step-bar/step-bar.js +1 -1
  87. package/dist/css/rich-text.css +1 -1
  88. package/dist/css/variables.css +1 -0
  89. package/dist/nldd.min.js +783 -550
  90. package/dist/types/vue.d.ts +43 -23
  91. package/package.json +2 -2
@@ -344,13 +344,13 @@ declare module 'vue' {
344
344
  'type'?: NLDDButton['type'];
345
345
  /** ID of a popover element this button invokes; forwarded to the inner button. Use the popoverTargetElement property instead when the popover lives in another tree. */
346
346
  'popovertarget'?: NLDDButton['popovertarget'];
347
- /** Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. */
347
+ /** Loading state (default: false). Shows an activity indicator over the visually hidden content, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). The content stays laid out, so the button keeps its width. Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
348
348
  'loading'?: NLDDButton['loading'];
349
349
  /** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
350
350
  'loading-text'?: NLDDButton['loadingText'];
351
351
  /** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
352
352
  'loadingText'?: NLDDButton['loadingText'];
353
- /** Disabled state */
353
+ /** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
354
354
  'disabled'?: NLDDButton['disabled'];
355
355
  /** Button text */
356
356
  'text'?: NLDDButton['text'];
@@ -587,12 +587,18 @@ declare module 'vue' {
587
587
  };
588
588
 
589
589
  type NLDDCollectionProps = {
590
- /** Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid') */
591
- 'layout'?: NLDDCollection['layout'];
592
- /** Preferred width for each item (e.g. '280px', '20rem'). In grid and lanes layouts used as the minimum column width (columns will be at least this wide; 1fr if container allows more). In horizontal scroll used as flex-basis. Never forces horizontal overflow — the value is clamped to container width. */
593
590
  'item-width'?: NLDDCollection['itemWidth'];
594
- /** Preferred width for each item (e.g. '280px', '20rem'). In grid and lanes layouts used as the minimum column width (columns will be at least this wide; 1fr if container allows more). In horizontal scroll used as flex-basis. Never forces horizontal overflow — the value is clamped to container width. */
595
591
  'itemWidth'?: NLDDCollection['itemWidth'];
592
+ /** Layout mode: 'grid' | 'stack' | 'lanes' | 'horizontal-scroll' (default: 'grid') */
593
+ 'layout'?: NLDDCollection['layout'];
594
+ /** Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width. */
595
+ 'item-min-width'?: NLDDCollection['itemMinWidth'];
596
+ /** Smallest width an item takes (e.g. '280px', '20rem'). In grid and lanes the minimum column width: columns are at least this wide and grow to fill the row. In horizontal scroll the flex-basis: items never shrink below it, and grow up to `item-max-width` when they fit. No effect in stack. Never forces horizontal overflow, the value is clamped to the container width. */
597
+ 'itemMinWidth'?: NLDDCollection['itemMinWidth'];
598
+ /** Largest width an item takes in horizontal scroll (e.g. '400px', '25rem'), so one or two items that fit do not stretch across the container. Defaults to 480px; `item-max-width="100%"` lets items fill the container, as they did before the default. Never narrower than `item-min-width`, which wins when it is wider, and never wider than the container. No effect in grid, lanes and stack: a grid leaves empty columns rather than stretching an item, and its right edge stays aligned with the content around it. */
599
+ 'item-max-width'?: NLDDCollection['itemMaxWidth'];
600
+ /** Largest width an item takes in horizontal scroll (e.g. '400px', '25rem'), so one or two items that fit do not stretch across the container. Defaults to 480px; `item-max-width="100%"` lets items fill the container, as they did before the default. Never narrower than `item-min-width`, which wins when it is wider, and never wider than the container. No effect in grid, lanes and stack: a grid leaves empty columns rather than stretching an item, and its right edge stays aligned with the content around it. */
601
+ 'itemMaxWidth'?: NLDDCollection['itemMaxWidth'];
596
602
  /** Gap between items, as a step of the spacing scale ('0', '2', '4', '6', '8', '10', '12', '16', '20', '24', '28', '32', '40', '44', '48', '56', '64', '80', '96'). Overrides the responsive default at every breakpoint; unset keeps the default. */
597
603
  'gap'?: NLDDCollection['gap'];
598
604
  /** Gap at sm, overriding `gap` there */
@@ -706,7 +712,7 @@ declare module 'vue' {
706
712
  'lg-column-count'?: NLDDContainer['lgColumnCount'];
707
713
  /** Column count when this container is lg-wide */
708
714
  'lgColumnCount'?: NLDDContainer['lgColumnCount'];
709
- /** 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. */
715
+ /** 'full' (default, fills the parent) | 'fit-content' | a CSS length (e.g. '480px'). A container narrower than its parent stays where its parent puts it; use the parent's horizontal-alignment to move it. A 'fit-content' container takes its width from its content, so it cannot measure itself: its breakpoint padding, gap and column count follow the container around it. */
710
716
  'width'?: NLDDContainer['width'];
711
717
  /** Minimum width as a CSS length (e.g. '280px') */
712
718
  'min-width'?: NLDDContainer['minWidth'];
@@ -1177,6 +1183,8 @@ declare module 'vue' {
1177
1183
  type NLDDHeroProps = {
1178
1184
  /** Body max-width; 'full' removes the bound (section API) */
1179
1185
  'width'?: NLDDHero['width'];
1186
+ /** Rounds one corner of the media area, in the shape language of the Rijkshuisstijl: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', or empty (or 'auto') to let the hero choose a corner the panel leaves free. 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'];
1180
1188
  /** How the panel relates to the image (default: 'overlap'). 'contained' keeps it on the image, in any of the eight positions; 'overlap' lets it fall `overlap-size` over the bottom of the image and run on below as far as its content needs, so the image keeps its height whatever the content. In 'overlap' the image has a fixed height (320px on md, 400px on lg) unless `media-height` or `media-aspect-ratio` is set, and only the horizontal side of `main-position` counts. A panel shorter than `overlap-size` ends inside the image and says so in development */
1181
1189
  'layout'?: NLDDHero['layout'];
1182
1190
  /** Surface color of the panel: 'base' (the base surface) or a category color — 'accent' (default) or a Rijkshuisstijl color such as 'lintblauw'|'donkerblauw'|'oranje' */
@@ -1276,13 +1284,13 @@ declare module 'vue' {
1276
1284
  'hide-lg-text'?: NLDDIconButton['hideLgText'];
1277
1285
  /** In lg size, hides the text label and enlarges the icon by one step (28px) */
1278
1286
  'hideLgText'?: NLDDIconButton['hideLgText'];
1279
- /** Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). */
1287
+ /** Loading state (default: false). Shows an activity indicator over the visually hidden icon, sets aria-busy on the inner control and blocks activation, without dropping the button from the tab order (unlike disabled). Meant for an action that has to wait for the server, such as sending an application. For most actions, show the result right away and confirm in the background, as the design guidelines describe. */
1280
1288
  'loading'?: NLDDIconButton['loading'];
1281
1289
  /** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
1282
1290
  'loading-text'?: NLDDIconButton['loadingText'];
1283
1291
  /** What the screen reader announces while `loading` is on, for a button that does more than load: "Aan het bewaren". Leave it out and the activity indicator says its translated "Laden". */
1284
1292
  'loadingText'?: NLDDIconButton['loadingText'];
1285
- /** Disabled state */
1293
+ /** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
1286
1294
  'disabled'?: NLDDIconButton['disabled'];
1287
1295
  /** Removes the per-appearance highlight border (e.g. when a control group draws a single border instead). */
1288
1296
  'no-highlight-border'?: NLDDIconButton['noHighlightBorder'];
@@ -1522,7 +1530,7 @@ declare module 'vue' {
1522
1530
  'accessible-label'?: NLDDLink['accessibleLabel'];
1523
1531
  /** Accessible label for screen readers */
1524
1532
  'accessibleLabel'?: NLDDLink['accessibleLabel'];
1525
- /** Disabled state */
1533
+ /** Disabled state. Avoid it where you can; the design guidelines say why. */
1526
1534
  'disabled'?: NLDDLink['disabled'];
1527
1535
  /** Takes the control out of the tab order (tabindex="-1"), for a control owned by a roving container (a row of an nldd-list, where the arrow keys move between rows) that manages focus itself. Still mouse- and script-focusable. */
1528
1536
  'no-tab'?: NLDDLink['noTab'];
@@ -1724,7 +1732,7 @@ declare module 'vue' {
1724
1732
  'contentPriority'?: NLDDMenuBarItem['contentPriority'];
1725
1733
  /** Activates content-priority behavior (set by the parent nldd-menu-bar) */
1726
1734
  'compact'?: NLDDMenuBarItem['compact'];
1727
- /** Turn interaction off */
1735
+ /** Turn interaction off. Avoid it where you can; the design guidelines say why. */
1728
1736
  'disabled'?: NLDDMenuBarItem['disabled'];
1729
1737
  /** Override aria-label */
1730
1738
  'accessible-label'?: NLDDMenuBarItem['accessibleLabel'];
@@ -1820,7 +1828,7 @@ declare module 'vue' {
1820
1828
  'open'?: NLDDModalDialog['open'];
1821
1829
  /** When the dialog is opened */
1822
1830
  'onOpen'?: (event: CustomEvent) => void;
1823
- /** When the dialog is fully closed. Does not bubble: overlays nest, and a listener on one dialog asking about that dialog should not also hear the form it opened. The dismiss button of an nldd-top-title-bar inside it fires `dismiss`, which bubbles; this component catches that itself, closes and fires `close`. Listen to `close` alone, or one click runs your handler twice. */
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. */
1824
1832
  'onClose'?: (event: CustomEvent) => void;
1825
1833
  };
1826
1834
 
@@ -2111,7 +2119,7 @@ declare module 'vue' {
2111
2119
  'current'?: NLDDPagination['current'];
2112
2120
  /** Total number of pages (recommended max: 200 for compact select performance) */
2113
2121
  'total'?: NLDDPagination['total'];
2114
- /** Disabled state */
2122
+ /** Disabled state. Avoid it where you can; the design guidelines say why. */
2115
2123
  'disabled'?: NLDDPagination['disabled'];
2116
2124
  /** Centers the pagination in the container (host fills row, items grouped in the middle) */
2117
2125
  'centered'?: NLDDPagination['centered'];
@@ -2705,7 +2713,7 @@ declare module 'vue' {
2705
2713
  'size'?: NLDDSplitButton['size'];
2706
2714
  /** Visual style (default: 'neutral-tinted'; 'inherit-tinted' and 'inherit-filled' for a colored surface) */
2707
2715
  'appearance'?: NLDDSplitButton['appearance'];
2708
- /** Disabled state */
2716
+ /** Disabled state. Avoid it: let the action run and say afterwards what is missing; the design guidelines say why. */
2709
2717
  'disabled'?: NLDDSplitButton['disabled'];
2710
2718
  /** Width mode: 'full' (stretches to container) or any CSS length; the main action button fills the available space */
2711
2719
  'width'?: NLDDSplitButton['width'];
@@ -2788,7 +2796,7 @@ declare module 'vue' {
2788
2796
  'icon'?: NLDDStepBarItem['icon'];
2789
2797
  /** Makes the step a link (back to a completed step, for instance) */
2790
2798
  'href'?: NLDDStepBarItem['href'];
2791
- /** For flows without a URL per step (a wizard inside one window). Ignored once `href` is set: one step is one action, and a link outranks a button -- the same rule as nldd-card and nldd-avatar. */
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. */
2792
2800
  'button'?: NLDDStepBarItem['button'];
2793
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. */
2794
2802
  'resolvedStatus'?: NLDDStepBarItem['resolvedStatus'];
@@ -2909,7 +2917,7 @@ declare module 'vue' {
2909
2917
  'size'?: NLDDTabBar['size'];
2910
2918
  /** Renders a nav landmark instead of tablist; use for href-based items that navigate between routes */
2911
2919
  'navigation'?: NLDDTabBar['navigation'];
2912
- /** 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. */
2913
2921
  'disabled'?: NLDDTabBar['disabled'];
2914
2922
  /** Accessible name for the navigation region; defaults to 'Tabs' */
2915
2923
  'accessible-label'?: NLDDTabBar['accessibleLabel'];
@@ -3259,6 +3267,18 @@ declare module 'vue' {
3259
3267
  type NLDDTitleProps = {
3260
3268
  /** Visual size of the title: 1–6 (default: 3) */
3261
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'];
3262
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. */
3263
3283
  'color'?: NLDDTitle['color'];
3264
3284
  /** Title text. Content in the default slot takes its place. */
@@ -3416,7 +3436,7 @@ declare module 'vue' {
3416
3436
  'roving'?: NLDDToken['roving'];
3417
3437
  /** Reflects whether the token's menu is open (control="menu"); managed by the token. */
3418
3438
  'expanded'?: NLDDToken['expanded'];
3419
- /** Disabled state */
3439
+ /** Disabled state. Avoid it where you can; the design guidelines say why. */
3420
3440
  'disabled'?: NLDDToken['disabled'];
3421
3441
  /** When the dismiss button is clicked */
3422
3442
  'onDismiss'?: (event: CustomEvent) => void;
@@ -3732,9 +3752,9 @@ declare module 'vue' {
3732
3752
  'accessibleLabel'?: NLDDWindow['accessibleLabel'];
3733
3753
  /** Override translation keys; unset keys fall back to the Dutch default. */
3734
3754
  'translations'?: NLDDWindow['translations'];
3735
- /** A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a wizard, a form with filled-in fields. Escape and the dismiss button keep working. */
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. */
3736
3756
  'no-light-dismiss'?: NLDDWindow['noLightDismiss'];
3737
- /** A click on the backdrop does not close the window. For windows where dismissing by accident costs work: a wizard, a form with filled-in fields. Escape and the dismiss button keep working. */
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. */
3738
3758
  'noLightDismiss'?: NLDDWindow['noLightDismiss'];
3739
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. */
3740
3760
  'open'?: NLDDWindow['open'];
@@ -3782,7 +3802,7 @@ declare module 'vue' {
3782
3802
  'nldd-code-editor': DefineComponent<NLDDCodeEditorProps>;
3783
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. */
3784
3804
  'nldd-code-viewer': DefineComponent<NLDDCodeViewerProps>;
3785
- /** A container for displaying collections of items. Supports grid, stack, lanes and horizontal scroll layouts. Use it for a set of equal blocks, usually `nldd-card`s, instead of a CSS grid of your own: the collection sets the columns from `item-width` and the available width, and the gap per breakpoint. In grid and stack modes, items are paginated via a load-more button. In horizontal scroll, the prev/next controls and the edge fade appear only when the items overflow the container. With `lazy-load`, the next items are automatically loaded when the load-more button comes into view. */
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. */
3786
3806
  'nldd-collection': DefineComponent<NLDDCollectionProps>;
3787
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. */
3788
3808
  'nldd-combo-box': DefineComponent<NLDDComboBoxProps>;
@@ -3801,7 +3821,7 @@ declare module 'vue' {
3801
3821
  'nldd-document-tab-bar-item': DefineComponent<NLDDDocumentTabBarItemProps>;
3802
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. */
3803
3823
  'nldd-drag-handle-cell': DefineComponent<NLDDDragHandleCellProps>;
3804
- /** A visual wrapper around a native `<select>` element. The consumer provides a native `<select>` as a slotted child — this way the browser retains full control over form submission, accessibility and keyboard navigation, including `<optgroup>`, `data-*` attributes and dynamic changes to options. */
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. */
3805
3825
  'nldd-dropdown': DefineComponent<NLDDDropdownProps>;
3806
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. */
3807
3827
  'nldd-file-field': DefineComponent<NLDDFileFieldProps>;
@@ -3816,7 +3836,7 @@ declare module 'vue' {
3816
3836
  'nldd-form-section': DefineComponent<NLDDFormSectionProps>;
3817
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. */
3818
3838
  'nldd-full-bleed-section': DefineComponent<NLDDFullBleedSectionProps>;
3819
- /** The section that says what a page is for: it names the main goal of what you can find there, draws the eye and is the visual welcome. It has a media area and a text panel (the main) that can stand in eight positions. Every area is rectangular. Use it on pages where a visitor first has to know where they are, such as a home or a topic page; where the title already does that, a section with a title is enough. The image in a hero sets the mood and is never the main content, so the panel always stands on it. Over an image the panel keeps a section gap from its edges, so it reads as a panel on the image rather than a frame cut out of it; with `main-width="full"` it is a strip across the whole image, the same gap from the sides. On mobile the image comes first and the panel below it, indented by the section gap and overlapping the image by 48px. For an image beside text without that relation, use a section with an image beside text instead. Without media the main fills the whole area; with `main-background="base"` that area gets a border so it stays visible on the base surface. The hero is the head of a page and sits right under the top bar, so its top padding is half that of the other page sections: the full distance is meant to separate two sections, and under the top bar it reads as a gap. The bottom keeps the full distance to the section below. Set `padding-top` to place a hero elsewhere. By default the panel falls over the bottom of the image and runs on below it (`layout="overlap"`), so the image keeps its height whatever the content. `layout="contained"` keeps the panel on the image, for a short panel or one that stands at the top or along a side. The height of a hero comes from its image: `media-aspect-ratio`, or a fixed `media-height`. The `height` of the other page sections is not used here: as a minimum height for the whole hero it stretched the panel once that sat below the image. A hero given `height` says so in development. `main-background` gives the panel a surface color from the filled categories. Those carry a pure white or black content color along, so components with `color="inherit"` (title, rich-text) are guaranteed to keep their contrast. */
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. */
3820
3840
  'nldd-hero': DefineComponent<NLDDHeroProps>;
3821
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. */
3822
3842
  'nldd-icon': DefineComponent<NLDDIconProps>;
@@ -3853,7 +3873,7 @@ declare module 'vue' {
3853
3873
  'nldd-menu-group': DefineComponent<NLDDMenuGroupProps>;
3854
3874
  /** A single item within an nldd-menu. */
3855
3875
  'nldd-menu-item': DefineComponent<NLDDMenuItemProps>;
3856
- /** A modal window with overlay backdrop, based on the native <dialog> element. Internally renders an <nldd-inline-dialog> for the visual structure. Open and close it with `open`, bound to your state together with the close event: the dialog clears `open` itself when the user closes it. show() and hide() do the same for code without a binding. Keep the dialog in the DOM rather than mounting it when it opens, or the animations are skipped. */
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. */
3857
3877
  'nldd-modal-dialog': DefineComponent<NLDDModalDialogProps>;
3858
3878
  'nldd-multi-line-text-field': DefineComponent<NLDDMultiLineTextFieldProps>;
3859
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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nldd/design-system",
3
- "version": "0.8.99",
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",
@@ -585,7 +585,7 @@
585
585
  "svgo": "^4.1.0",
586
586
  "typescript": "^5.3.0",
587
587
  "typescript-eslint": "^8.58.0",
588
- "vite": "8.3.3",
588
+ "vite": "8.3.4",
589
589
  "vitest": "5.0.3",
590
590
  "vue": "^3.5.40",
591
591
  "vue-tsc": "^3.3.7"