@nldd/design-system 0.8.94 → 0.8.95

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 (43) hide show
  1. package/README.md +108 -12
  2. package/custom-elements.json +10 -26
  3. package/dist/components/actions/toolbar/toolbar.d.ts +3 -1
  4. package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
  5. package/dist/components/actions/toolbar/toolbar.js +18 -8
  6. package/dist/components/actions/toolbar/toolbar.js.map +1 -1
  7. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  8. package/dist/components/actions/toolbar/toolbar.styles.js +3 -2
  9. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  10. package/dist/components/components.js +319 -273
  11. package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
  12. package/dist/components/content/blockquote/blockquote.styles.js +1 -0
  13. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  14. package/dist/components/{decorate-lwt_OrAG.js → decorate-CO88j7Lc.js} +1 -1
  15. package/dist/components/{dist-M6GKopqu.js → dist-BWEAw34D.js} +1 -1
  16. package/dist/components/{dist-OlffRM7-.js → dist-BWRYv3Mp.js} +1 -1
  17. package/dist/components/{dist-CSYXsT7W.js → dist-Bi4EHsFY.js} +2 -2
  18. package/dist/components/{dist-B5ie2Bo9.js → dist-C3uWRipu.js} +1 -1
  19. package/dist/components/{dist-CoUVHSu-.js → dist-CH9m014O.js} +1 -1
  20. package/dist/components/{dist-Dn3c5gfb.js → dist-CpW8MF-L.js} +42 -27
  21. package/dist/components/{dist-RPaf2J9c.js → dist-CvL6_ezZ.js} +2 -2
  22. package/dist/components/{dist-CGOykrJw.js → dist-DMHTTJRJ.js} +2 -2
  23. package/dist/components/{dist-BUu-NW5O.js → dist-DTOshgo1.js} +1 -1
  24. package/dist/components/{dist-Dxn9Up8K.js → dist-DV6Mp5N1.js} +3 -3
  25. package/dist/components/{dist-CQzaKTa8.js → dist-PlhQXXtE.js} +1 -1
  26. package/dist/components/{icon-DWNVcttg.js → icon-Typdp4av.js} +1 -1
  27. package/dist/components/{icon-button-DHzLMmj0.js → icon-button-9mo3oIyL.js} +6 -6
  28. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts +1 -1
  29. package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +1 -1
  30. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  31. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +15 -1
  32. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  33. package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +37 -22
  34. package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +1 -1
  35. package/dist/components/status-and-feedback/step-indicator/step-indicator.js +63 -31
  36. package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +1 -1
  37. package/dist/components/{visibility-mixin-BU1vIMW7.js → visibility-mixin-Crbt8PFP.js} +1 -1
  38. package/dist/components/{with-translations-Dt2DTXJF.js → with-translations-C8_0-9y8.js} +1 -1
  39. package/dist/css/document-reset.css +7 -0
  40. package/dist/css/rich-text.css +0 -2
  41. package/dist/nldd.min.js +275 -259
  42. package/dist/types/vue.d.ts +9 -10
  43. package/package.json +5 -5
@@ -2724,22 +2724,21 @@ declare module 'vue' {
2724
2724
  };
2725
2725
 
2726
2726
  type NLDDStepIndicatorProps = {
2727
+ 'current'?: NLDDStepIndicator['current'];
2727
2728
  /** Name of the nav; defaults to the i18n value ("Voortgang") */
2728
2729
  'accessible-label'?: NLDDStepIndicator['accessibleLabel'];
2729
2730
  /** Name of the nav; defaults to the i18n value ("Voortgang") */
2730
2731
  'accessibleLabel'?: NLDDStepIndicator['accessibleLabel'];
2731
- /** 1-based number of the current step (default 1) */
2732
- 'current'?: NLDDStepIndicator['current'];
2733
2732
  /** Override translation keys; unset keys fall back to Dutch */
2734
2733
  'translations'?: NLDDStepIndicator['translations'];
2735
2734
  'total'?: NLDDStepIndicator['total'];
2736
- /** The current step, clamped to the number of steps: an out-of-range `current` would otherwise mark every step past (or none at all). */
2735
+ /** 1-based position of the last item with `status="current"`, or 1 when none has it. */
2737
2736
  'resolvedCurrent'?: NLDDStepIndicator['resolvedCurrent'];
2738
2737
  'currentItem'?: NLDDStepIndicator['currentItem'];
2739
2738
  };
2740
2739
 
2741
2740
  type NLDDStepIndicatorItemProps = {
2742
- /** `past` | `current` | `future`; overrides what the parent derives */
2741
+ /** How far along this step is. `current` marks the step you are on (`aria-current="step"`) and the parent derives the others from it: with none marked step 1 is current, with more than one the last wins. `past` and `future` override what is derived for this step only */
2743
2742
  'status'?: NLDDStepIndicatorItem['status'];
2744
2743
  /** Label under the disc */
2745
2744
  'text'?: NLDDStepIndicatorItem['text'];
@@ -2749,7 +2748,7 @@ declare module 'vue' {
2749
2748
  'href'?: NLDDStepIndicatorItem['href'];
2750
2749
  /** 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. */
2751
2750
  'button'?: NLDDStepIndicatorItem['button'];
2752
- /** The status that counts: the item's own wins over the derived one. */
2751
+ /** 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. */
2753
2752
  'resolvedStatus'?: NLDDStepIndicatorItem['resolvedStatus'];
2754
2753
  };
2755
2754
 
@@ -3197,7 +3196,7 @@ declare module 'vue' {
3197
3196
  'size'?: NLDDTimelineTrackCell['size'];
3198
3197
  /** The direction the timeline moves forward in: `down` (default) puts the past above, `up` below. Only the current step has half a track, so this only has an effect there */
3199
3198
  'direction'?: NLDDTimelineTrackCell['direction'];
3200
- /** Place in the series (default 'between'): decides whether the line continues above the dot, below it, or on both sides. `only` is the single row in the series and gets a line on neither side: a track of one dot leads nowhere. On a `level="none"` row, which is nothing but line, `only` leaves it out altogether: the track ends above it */
3199
+ /** Place of the row in the list as it stands on screen (default 'between'): decides whether the line continues above the dot, below it, or on both sides. `first` is the top row and only has a line below, `last` the bottom row and only has a line above, also with `direction="up"`: position is about where the row stands, `direction` about which way time runs. `only` is the single row in the series and gets a line on neither side: a track of one dot leads nowhere. On a `level="none"` row, which is nothing but line, `only` leaves it out altogether: the track ends above it */
3201
3200
  'position'?: NLDDTimelineTrackCell['position'];
3202
3201
  /** Which halves of the track you have covered, when `status` and `direction` get it wrong (default 'auto', which is what those two say). The halves you name are drawn as covered and the other one as still ahead, so `none` covers neither. Which halves are drawn at all stays with `position`, except that naming a half draws it: `line="both"` on a `first` row draws one above too. A row that opens a group of its own is the case for `both`, since the going carries on below it. A `level="none"` row has one line rather than two halves, and no point where a fill could change over, so there the status colors the whole of it and `line` overrules the whole of it. On a `current` row that leans the way the timeline runs: what belongs to a point usually comes after it, so going `down` the stretch reads as still ahead and going `up` as behind you */
3203
3202
  'line'?: NLDDTimelineTrackCell['line'];
@@ -3466,9 +3465,9 @@ declare module 'vue' {
3466
3465
  type NLDDToolbarTitleProps = {
3467
3466
  /** Preferred (fluid) width as a CSS length or percentage; the title grows toward it and shrinks to min-width. */
3468
3467
  'width'?: NLDDToolbarTitle['width'];
3469
- /** Minimum width as a CSS length (default: '0', so the title shrink-wraps its content and the next element sits against it). */
3468
+ /** Minimum width as a CSS length (default: the width of its own text, up to `max-width`). Items move into the overflow menu before the title gets narrower than this; only when no item is left to move does the title truncate below it. Set `0` to let the title shrink first. */
3470
3469
  'min-width'?: NLDDToolbarTitle['minWidth'];
3471
- /** Minimum width as a CSS length (default: '0', so the title shrink-wraps its content and the next element sits against it). */
3470
+ /** Minimum width as a CSS length (default: the width of its own text, up to `max-width`). Items move into the overflow menu before the title gets narrower than this; only when no item is left to move does the title truncate below it. Set `0` to let the title shrink first. */
3472
3471
  'minWidth'?: NLDDToolbarTitle['minWidth'];
3473
3472
  /** Maximum width as a CSS length (default: '240px'); the title text truncates with an ellipsis beyond it. The cap is lifted while the title is the sole toolbar element (it then stretches to fill the row). */
3474
3473
  'max-width'?: NLDDToolbarTitle['maxWidth'];
@@ -3871,9 +3870,9 @@ declare module 'vue' {
3871
3870
  'nldd-stacked-split-view': DefineComponent<NLDDStackedSplitViewProps>;
3872
3871
  /** A narrow, page-wide status bar (24px) with a deep background color per variant. Use it for persistent system state: an outage, planned maintenance, a draft view or a recording in progress. The bar deliberately shows no icon and supports text only. The text itself has to name the status ("Storing: …", "Gepland onderhoud …"), so the meaning does not follow from color alone (WCAG 1.4.1). Keep the text short: the bar shows one line and truncates with an ellipsis, certainly on narrower screens. For a long message with a lot of information only the essence belongs in the bar. Point to a separate page or sheet for the rest (through `href` or `button`, for instance), where the user can read on. The whole bar can be clickable: set `href` (renders an `<a>`) or `button` (renders a `<button>`; listen for the native `click` event). Without either the bar is static. On interaction a chevron appears as an affordance. One action per bar at most; several actions, or links in running text, belong in nldd-banner. role and aria-live are set automatically from the variant: - critical → role="alert" (implies aria-live="assertive"; interrupts the screen reader) - others → role="status" aria-live="polite" Not overridable. If you need a quieter component, pick a different one. Use `critical` only for a real emergency: role="alert" interrupts the screen reader on every change of the content, so do not put text in it that changes regularly (a counting-down timer, for example). */
3873
3872
  'nldd-status-bar': DefineComponent<NLDDStatusBarProps>;
3874
- /** Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. The parent holds the truth: `current` (1-based) derives the status of every child — `past` before it, `future` after. A child can override that with a `status` of its own, for flows that jump back or skip a step. Horizontal only. For steps under each other, build an `nldd-list` with an `nldd-timeline-track-cell` and an `nldd-title-cell` per row: vertical steps usually carry more than a title, and a list row already does that. Below the sm breakpoint (a container query, so measured on the component itself rather than on the viewport) it folds into one line of text plus a segmented bar. The full list of steps stays in the DOM, only visually hidden, so assistive software hears no less than a wide screen shows. Accessibility: a `nav` with a label, holding a `role="list"` with a `role="listitem"` per step. The current step gets `aria-current="step"`, the only notion WAI-ARIA has for this. "Done" and "still to do" do not exist as ARIA tokens and travel along as visually hidden text instead. */
3873
+ /** Shows where you are in a process of several steps: a row of discs with a number (or a check mark on what is done), a label under each and a line connecting them. Mark the step you are on with `status="current"`. The parent derives the rest from its position: `past` before it, `future` after. With none marked, step 1 is current. With more than one, the last one wins and a warning goes to the console in a dev build: a flow that forgets to clear the previous step still points at the furthest one. A `status="past"` or `status="future"` on another step overrides what is derived for that step, for flows that jump back or skip a step. One attribute, the same three values as `nldd-timeline-track-cell`, so a flow reads in one vocabulary whether it runs across or down. Horizontal only. For steps under each other, build an `nldd-list` with an `nldd-timeline-track-cell` and an `nldd-title-cell` per row: vertical steps usually carry more than a title, and a list row already does that. Below the sm breakpoint (a container query, so measured on the component itself rather than on the viewport) it folds into one line of text plus a segmented bar. The full list of steps stays in the DOM, only visually hidden, so assistive software hears no less than a wide screen shows. Accessibility: a `nav` with a label, holding a `role="list"` with a `role="listitem"` per step. The current step gets `aria-current="step"`, the only notion WAI-ARIA has for this. "Done" and "still to do" do not exist as ARIA tokens and travel along as visually hidden text instead. */
3875
3874
  'nldd-step-indicator': DefineComponent<NLDDStepIndicatorProps>;
3876
- /** One step in an `nldd-step-indicator`. The parent decides the status and the number; those live here as internal state rather than as public API, except for `status`, which overrides what `current` derives. */
3875
+ /** One step in an `nldd-step-indicator`. `status="current"` marks the step you are on; the parent derives the status of the others and the number of each, which live here as internal state rather than as public API. `past` and `future` override what is derived for this step. */
3877
3876
  'nldd-step-indicator-item': DefineComponent<NLDDStepIndicatorItemProps>;
3878
3877
  /** A numeric control with increment and decrement buttons. */
3879
3878
  'nldd-stepper': DefineComponent<NLDDStepperProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nldd/design-system",
3
- "version": "0.8.94",
3
+ "version": "0.8.95",
4
4
  "description": "Designsysteem voor de Nederlandse Digitale Dienst",
5
5
  "type": "module",
6
6
  "main": "dist/components/components.js",
@@ -565,8 +565,8 @@
565
565
  "@storybook/addon-docs": "^10.6.0",
566
566
  "@storybook/addon-themes": "^10.6.0",
567
567
  "@storybook/web-components-vite": "^10.6.0",
568
- "@vitest/browser-playwright": "5.0.0",
569
- "@vitest/coverage-v8": "5.0.0",
568
+ "@vitest/browser-playwright": "5.0.3",
569
+ "@vitest/coverage-v8": "5.0.3",
570
570
  "axe-core": "^4.13.0",
571
571
  "conventional-changelog": "^8.1.0",
572
572
  "conventional-changelog-conventionalcommits": "10.2.1",
@@ -579,8 +579,8 @@
579
579
  "storybook": "^10.6.0",
580
580
  "typescript": "^5.3.0",
581
581
  "typescript-eslint": "^8.58.0",
582
- "vite": "8.3.0",
583
- "vitest": "5.0.0",
582
+ "vite": "8.3.1",
583
+ "vitest": "5.0.3",
584
584
  "vue": "^3.5.40",
585
585
  "vue-tsc": "^3.3.7"
586
586
  },