@nldd/design-system 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +139 -19
- package/dist/assets/styles/breakpoints.d.ts +32 -0
- package/dist/assets/styles/breakpoints.d.ts.map +1 -1
- package/dist/assets/styles/breakpoints.js +36 -0
- package/dist/assets/styles/breakpoints.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +2 -2
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.js +2 -2
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +2 -2
- package/dist/components/breakpoints-Bpf2MgjM.js +39 -0
- package/dist/components/components.js +440 -457
- package/dist/components/content/blockquote/blockquote.styles.js +2 -2
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +3 -3
- package/dist/components/content/identity/identity.styles.js +2 -2
- package/dist/components/content/identity/identity.styles.js.map +1 -1
- package/dist/components/content/image/image.styles.js +1 -1
- package/dist/components/content/image/lqip-encoder-element.js +1 -1
- package/dist/components/content/title/title.styles.js +5 -5
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.styles.js +2 -2
- package/dist/components/forms/form-actions/form-actions.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +2 -2
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +8 -0
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +11 -0
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +36 -9
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +3 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.js +6 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +7 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js +1 -0
- package/dist/components/inputs/checkbox-field/checkbox-field.template.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +2 -2
- package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.js +2 -2
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +3 -3
- package/dist/components/inputs/file-field/file-field.styles.js +2 -2
- package/dist/components/inputs/radio-button/radio-button.d.ts +8 -0
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +11 -0
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +28 -9
- package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.js +6 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +7 -0
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js +2 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.template.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +8 -0
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +11 -0
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +14 -2
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.d.ts +3 -0
- package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.js +7 -0
- package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js +7 -0
- package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.template.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.template.js +1 -0
- package/dist/components/inputs/switch-field/switch-field.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +7 -7
- package/dist/components/inputs/time-field/time-field.styles.js +2 -2
- package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +2 -2
- package/dist/components/layout/box/box.d.ts +4 -2
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +3 -1
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +10 -5
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +2 -2
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.js +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +12 -3
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +6 -0
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +6 -0
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +5 -5
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +5 -5
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +5 -5
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +5 -5
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js +5 -5
- package/dist/components/layout/page-sections/hero/hero-corner.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +15 -13
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +20 -12
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +8 -98
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +5 -5
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +8 -8
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +2 -2
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +0 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +2 -3
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +6 -6
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +5 -5
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +8 -8
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
- package/dist/components/layout/popover/popover.js +2 -2
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +3 -3
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +4 -4
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/spacer/spacer.styles.js +5 -5
- package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +4 -5
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +5 -5
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +2 -2
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +6 -0
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +4 -7
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +2 -2
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +2 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +2 -2
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +9 -9
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +2 -2
- 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 +14 -9
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +3 -2
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +13 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +18 -125
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +15 -15
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +2 -2
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +2 -2
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +2 -2
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +14 -14
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +2 -2
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
- package/dist/components/{visibility-mixin-Crbt8PFP.js → visibility-mixin-djNSG5ZN.js} +5 -5
- package/dist/css/rich-text.css +11 -11
- package/dist/css/themes/bruin.css +182 -0
- package/dist/css/themes/donkerblauw.css +182 -0
- package/dist/css/themes/donkerbruin.css +182 -0
- package/dist/css/themes/donkergeel.css +208 -0
- package/dist/css/themes/donkergroen.css +182 -0
- package/dist/css/themes/geel.css +208 -0
- package/dist/css/themes/groen.css +182 -0
- package/dist/css/themes/hemelblauw.css +182 -0
- package/dist/css/themes/lichtblauw.css +182 -0
- package/dist/css/themes/mintgroen.css +182 -0
- package/dist/css/themes/mosgroen.css +182 -0
- package/dist/css/themes/oranje.css +196 -0
- package/dist/css/themes/paars.css +182 -0
- package/dist/css/themes/robijnrood.css +196 -0
- package/dist/css/themes/rood.css +196 -0
- package/dist/css/themes/roze.css +182 -0
- package/dist/css/themes/violet.css +182 -0
- package/dist/css/themes.css +3092 -0
- package/dist/css/variables.css +97 -132
- package/dist/favicon/bruin/favicon.svg +5 -0
- package/dist/favicon/bruin/touch-icon.png +0 -0
- package/dist/favicon/donkerblauw/favicon.svg +5 -0
- package/dist/favicon/donkerblauw/touch-icon.png +0 -0
- package/dist/favicon/donkerbruin/favicon.svg +5 -0
- package/dist/favicon/donkerbruin/touch-icon.png +0 -0
- package/dist/favicon/donkergeel/favicon.svg +5 -0
- package/dist/favicon/donkergeel/touch-icon.png +0 -0
- package/dist/favicon/donkergroen/favicon.svg +5 -0
- package/dist/favicon/donkergroen/touch-icon.png +0 -0
- package/dist/favicon/geel/favicon.svg +5 -0
- package/dist/favicon/geel/touch-icon.png +0 -0
- package/dist/favicon/groen/favicon.svg +5 -0
- package/dist/favicon/groen/touch-icon.png +0 -0
- package/dist/favicon/hemelblauw/favicon.svg +5 -0
- package/dist/favicon/hemelblauw/touch-icon.png +0 -0
- package/dist/favicon/lichtblauw/favicon.svg +5 -0
- package/dist/favicon/lichtblauw/touch-icon.png +0 -0
- package/dist/favicon/mintgroen/favicon.svg +5 -0
- package/dist/favicon/mintgroen/touch-icon.png +0 -0
- package/dist/favicon/mosgroen/favicon.svg +5 -0
- package/dist/favicon/mosgroen/touch-icon.png +0 -0
- package/dist/favicon/oranje/favicon.svg +5 -0
- package/dist/favicon/oranje/touch-icon.png +0 -0
- package/dist/favicon/paars/favicon.svg +5 -0
- package/dist/favicon/paars/touch-icon.png +0 -0
- package/dist/favicon/robijnrood/favicon.svg +5 -0
- package/dist/favicon/robijnrood/touch-icon.png +0 -0
- package/dist/favicon/rood/favicon.svg +5 -0
- package/dist/favicon/rood/touch-icon.png +0 -0
- package/dist/favicon/roze/favicon.svg +5 -0
- package/dist/favicon/roze/touch-icon.png +0 -0
- package/dist/favicon/violet/favicon.svg +5 -0
- package/dist/favicon/violet/touch-icon.png +0 -0
- package/dist/nldd.min.js +681 -771
- package/dist/types/vue.d.ts +30 -17
- package/dist/utilities/page-section-mixin.d.ts +4 -3
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +6 -4
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/visibility-mixin.styles.js +5 -5
- package/dist/utilities/visibility-mixin.styles.js.map +1 -1
- package/package.json +11 -7
- package/dist/components/breakpoints-CkxsiRgH.js +0 -10
package/dist/types/vue.d.ts
CHANGED
|
@@ -230,7 +230,7 @@ declare module 'vue' {
|
|
|
230
230
|
type NLDDBadgeProps = {
|
|
231
231
|
/** Size: 'sm' | 'md' (default: 'md') */
|
|
232
232
|
'size'?: NLDDBadge['size'];
|
|
233
|
-
/**
|
|
233
|
+
/** The meaning of the badge, the same set as nldd-status-bar, or 'inherit' to fill in the content color around it: the `--context-content-color` channel a list item, table row or menu sets, falling back to `currentColor`. Default: 'critical'. A badge is a signal, not a category, so it has no Rijkshuisstijl colors: the theme picks the accent, and `custom-color` takes any other. Another value falls back to 'accent' and says so in development. */
|
|
234
234
|
'color'?: NLDDBadge['color'];
|
|
235
235
|
/** A color of its own, as any CSS color value ('#a90061', 'oklch(0.6 0.2 20)', 'var(--brand-cable-blue)'). For a color the system cannot know: the jacket of a cable, a color someone picked. It wins over `color`. Whatever it paints, the text and icon on top become white or black, whichever contrasts. The text on it is black or white, picked on the relative luminance of the fill, so it clears 4.5:1 whatever color you hand it. */
|
|
236
236
|
'custom-color'?: NLDDBadge['customColor'];
|
|
@@ -291,7 +291,7 @@ declare module 'vue' {
|
|
|
291
291
|
};
|
|
292
292
|
|
|
293
293
|
type NLDDBoxProps = {
|
|
294
|
-
/** Which surface this box draws, named as it is on nldd-shell, nldd-page, nldd-split-view-pane and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it. - `tinted` (default): a box on a plain page background. - `base`: a box on an already-tinted parent (the border ring gets +2 palette steps so it still reads against a card-on-card). - `critical`: a region whose actions are destructive or irreversible (a "danger zone"), tinted and outlined in critical. It carries no ARIA of its own: unlike nldd-banner this is not an announcement but a permanent part of the page, so the heading and the button labels have to name the danger — color is a reinforcement, never the only signal (WCAG 1.4.1). The box draws the surface and nothing else: it has no padding of its own, the same way nldd-card has none. Put an nldd-container inside it and let that set the inset, so one component owns spacing wherever it is used. */
|
|
294
|
+
/** Which surface this box draws, named as it is on nldd-shell, nldd-page, nldd-split-view-pane and nldd-card. It starts tinted where a card starts base: a box is there to stand out from the page, a card to sit on it. - `tinted` (default): a box on a plain page background. - `base`: a box on an already-tinted parent (the border ring gets +2 palette steps so it still reads against a card-on-card). - `accent-tinted`: a tint of the theme's accent, with the contrast of `tinted`, for a box that belongs to the service rather than to the page. - `critical`: a region whose actions are destructive or irreversible (a "danger zone"), tinted and outlined in critical. It carries no ARIA of its own: unlike nldd-banner this is not an announcement but a permanent part of the page, so the heading and the button labels have to name the danger — color is a reinforcement, never the only signal (WCAG 1.4.1). The box draws the surface and nothing else: it has no padding of its own, the same way nldd-card has none. Put an nldd-container inside it and let that set the inset, so one component owns spacing wherever it is used. */
|
|
295
295
|
'background'?: NLDDBox['background'];
|
|
296
296
|
};
|
|
297
297
|
|
|
@@ -416,7 +416,7 @@ declare module 'vue' {
|
|
|
416
416
|
};
|
|
417
417
|
|
|
418
418
|
type NLDDCardProps = {
|
|
419
|
-
/** Surface color of the card: `base` (default) on a plain page background, `tinted` when the card should stand out against a base surface */
|
|
419
|
+
/** Surface color of the card: `base` (default) on a plain page background, `tinted` when the card should stand out against a base surface, `accent-tinted` for a tint of the theme's accent with the contrast of `tinted` */
|
|
420
420
|
'background'?: NLDDCard['background'];
|
|
421
421
|
/** Accessible name of the card; with `href`/`button` it names the link or button, otherwise the card region */
|
|
422
422
|
'accessible-label'?: NLDDCard['accessibleLabel'];
|
|
@@ -480,6 +480,8 @@ declare module 'vue' {
|
|
|
480
480
|
'value'?: NLDDCheckbox['value'];
|
|
481
481
|
/** Name for form submission */
|
|
482
482
|
'name'?: NLDDCheckbox['name'];
|
|
483
|
+
/** 'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent. */
|
|
484
|
+
'color'?: NLDDCheckbox['color'];
|
|
483
485
|
/** Accessible label forwarded as aria-label to the native input. */
|
|
484
486
|
'accessible-label'?: NLDDCheckbox['accessibleLabel'];
|
|
485
487
|
/** Accessible label forwarded as aria-label to the native input. */
|
|
@@ -506,6 +508,8 @@ declare module 'vue' {
|
|
|
506
508
|
'value'?: NLDDCheckboxField['value'];
|
|
507
509
|
/** Name for form submission */
|
|
508
510
|
'name'?: NLDDCheckboxField['name'];
|
|
511
|
+
/** 'inherit' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside. */
|
|
512
|
+
'color'?: NLDDCheckboxField['color'];
|
|
509
513
|
/** Label text for the checkbox */
|
|
510
514
|
'label'?: NLDDCheckboxField['label'];
|
|
511
515
|
/** Required state */
|
|
@@ -1140,7 +1144,7 @@ declare module 'vue' {
|
|
|
1140
1144
|
type NLDDFullBleedSectionProps = {
|
|
1141
1145
|
/** Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width. */
|
|
1142
1146
|
'width'?: NLDDFullBleedSection['width'];
|
|
1143
|
-
/** Surface background ('inherit' default; 'base'
|
|
1147
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
1144
1148
|
'background'?: NLDDFullBleedSection['background'];
|
|
1145
1149
|
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
1146
1150
|
'height'?: NLDDFullBleedSection['height'];
|
|
@@ -1187,9 +1191,9 @@ declare module 'vue' {
|
|
|
1187
1191
|
'corner'?: NLDDHero['corner'];
|
|
1188
1192
|
/** 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 */
|
|
1189
1193
|
'layout'?: NLDDHero['layout'];
|
|
1190
|
-
/** Surface color of the panel: '
|
|
1194
|
+
/** Surface color of the panel: 'accent' (default), the accent color of the theme, or 'base', the base surface */
|
|
1191
1195
|
'main-background'?: NLDDHero['mainBackground'];
|
|
1192
|
-
/** Surface color of the panel: '
|
|
1196
|
+
/** Surface color of the panel: 'accent' (default), the accent color of the theme, or 'base', the base surface */
|
|
1193
1197
|
'mainBackground'?: NLDDHero['mainBackground'];
|
|
1194
1198
|
/** Width of the panel (default: 'auto'). 'auto' follows the content, between 480px and 640px and never wider than the image allows: a short title gets a narrow panel, a paragraph runs on to a readable line length. 'full' makes a strip across the whole image, at the top or the bottom, and is ignored with 'left'/'right'. Any CSS width (e.g. '560px', '60%') sets it exactly on md and lg, still never wider than the image allows; an invalid value falls back to 'auto' */
|
|
1195
1199
|
'main-width'?: NLDDHero['mainWidth'];
|
|
@@ -1584,7 +1588,7 @@ declare module 'vue' {
|
|
|
1584
1588
|
'accessibleLabel'?: NLDDListItem['accessibleLabel'];
|
|
1585
1589
|
/** Set by the parent `nldd-list` when its own `reorderable` is on (with `type="list"`); consumers do not set this. Serves as a CSS hook for drag handle visibility. */
|
|
1586
1590
|
'reorderable'?: NLDDListItem['reorderable'];
|
|
1587
|
-
/** Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value; in a `listbox` parent it drives `aria-selected`. */
|
|
1591
|
+
/** Marks the item as selected: it is one of the rows you picked. Selection is consumer-managed; the list never sets it. A selected row sets `--context-selected-indicator-color` and `--context-selected-contrast-color` to its text and fill color, so a checked nldd-checkbox, nldd-radio-button or nldd-switch in it takes the colors of the row: on its gray the accent can fall below 3:1. In a `navigation` parent it puts `aria-current` on the inner action, with `current-type` as its value; in a `listbox` parent it drives `aria-selected`. */
|
|
1588
1592
|
'selected'?: NLDDListItem['selected'];
|
|
1589
1593
|
/** Checked state of a `checkbox` or `radio` row. A checkbox row toggles it on activation, a radio row only ever sets it */
|
|
1590
1594
|
'checked'?: NLDDListItem['checked'];
|
|
@@ -1991,7 +1995,7 @@ declare module 'vue' {
|
|
|
1991
1995
|
'vertical-alignment'?: NLDDOneHalfOneHalfSection['verticalAlignment'];
|
|
1992
1996
|
/** Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other. */
|
|
1993
1997
|
'verticalAlignment'?: NLDDOneHalfOneHalfSection['verticalAlignment'];
|
|
1994
|
-
/** Surface background ('inherit' default; 'base'
|
|
1998
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
1995
1999
|
'background'?: NLDDOneHalfOneHalfSection['background'];
|
|
1996
2000
|
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
1997
2001
|
'height'?: NLDDOneHalfOneHalfSection['height'];
|
|
@@ -2038,7 +2042,7 @@ declare module 'vue' {
|
|
|
2038
2042
|
'vertical-alignment'?: NLDDOneThirdTwoThirdsSection['verticalAlignment'];
|
|
2039
2043
|
/** Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other. */
|
|
2040
2044
|
'verticalAlignment'?: NLDDOneThirdTwoThirdsSection['verticalAlignment'];
|
|
2041
|
-
/** Surface background ('inherit' default; 'base'
|
|
2045
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
2042
2046
|
'background'?: NLDDOneThirdTwoThirdsSection['background'];
|
|
2043
2047
|
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
2044
2048
|
'height'?: NLDDOneThirdTwoThirdsSection['height'];
|
|
@@ -2276,7 +2280,7 @@ declare module 'vue' {
|
|
|
2276
2280
|
type NLDDProgressBarSegmentIndicatorProps = {
|
|
2277
2281
|
/** Share of the parent's total (default 0; <=0 hides segment) */
|
|
2278
2282
|
'value'?: NLDDProgressBarSegmentIndicator['value'];
|
|
2279
|
-
/** Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'. */
|
|
2283
|
+
/** Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'. With more than one segment, give each a Rijkskleur (or success, warning and critical where they mean that): `accent` can turn near-black or match another segment in a theme, and `neutral` disappears against the track. */
|
|
2280
2284
|
'color'?: NLDDProgressBarSegmentIndicator['color'];
|
|
2281
2285
|
/** Name for screenreader text (optional) */
|
|
2282
2286
|
'name'?: NLDDProgressBarSegmentIndicator['name'];
|
|
@@ -2324,7 +2328,7 @@ declare module 'vue' {
|
|
|
2324
2328
|
type NLDDProgressCircleSegmentIndicatorProps = {
|
|
2325
2329
|
/** Share of the parent's total (default 0; <=0 hides segment) */
|
|
2326
2330
|
'value'?: NLDDProgressCircleSegmentIndicator['value'];
|
|
2327
|
-
/** Color (semantic or Rijkskleur). Default 'accent'. */
|
|
2331
|
+
/** Color (semantic or Rijkskleur). Default 'accent'. With more than one segment, give each a Rijkskleur (or success, warning and critical where they mean that): `accent` can turn near-black or match another segment in a theme, and `neutral` disappears against the track. */
|
|
2328
2332
|
'color'?: NLDDProgressCircleSegmentIndicator['color'];
|
|
2329
2333
|
/** Optional name used in the combined tooltip + screenreader text */
|
|
2330
2334
|
'name'?: NLDDProgressCircleSegmentIndicator['name'];
|
|
@@ -2351,6 +2355,8 @@ declare module 'vue' {
|
|
|
2351
2355
|
'name'?: NLDDRadioButton['name'];
|
|
2352
2356
|
/** Value submitted with the form when this radio button is checked */
|
|
2353
2357
|
'value'?: NLDDRadioButton['value'];
|
|
2358
|
+
/** 'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent. */
|
|
2359
|
+
'color'?: NLDDRadioButton['color'];
|
|
2354
2360
|
/** Accessible label, set as aria-label on this element: it is the radio. */
|
|
2355
2361
|
'accessible-label'?: NLDDRadioButton['accessibleLabel'];
|
|
2356
2362
|
/** Accessible label, set as aria-label on this element: it is the radio. */
|
|
@@ -2375,6 +2381,8 @@ declare module 'vue' {
|
|
|
2375
2381
|
'name'?: NLDDRadioButtonField['name'];
|
|
2376
2382
|
/** Required state. What it asks is whether anything in the group is checked, as a native radio does. Set automatically by nldd-radio-button-group. */
|
|
2377
2383
|
'required'?: NLDDRadioButtonField['required'];
|
|
2384
|
+
/** 'inherit' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside. */
|
|
2385
|
+
'color'?: NLDDRadioButtonField['color'];
|
|
2378
2386
|
/** Label text for the radio button */
|
|
2379
2387
|
'label'?: NLDDRadioButtonField['label'];
|
|
2380
2388
|
/** Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it. */
|
|
@@ -2637,7 +2645,7 @@ declare module 'vue' {
|
|
|
2637
2645
|
'vertical-alignment'?: NLDDSimpleSection['verticalAlignment'];
|
|
2638
2646
|
/** Where the body's children sit down the section ('top' default). Only visible when the section is taller than its content. */
|
|
2639
2647
|
'verticalAlignment'?: NLDDSimpleSection['verticalAlignment'];
|
|
2640
|
-
/** Surface background ('inherit' default; 'base'
|
|
2648
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
2641
2649
|
'background'?: NLDDSimpleSection['background'];
|
|
2642
2650
|
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
2643
2651
|
'height'?: NLDDSimpleSection['height'];
|
|
@@ -2883,6 +2891,8 @@ declare module 'vue' {
|
|
|
2883
2891
|
'noTab'?: NLDDSwitch['noTab'];
|
|
2884
2892
|
/** Switch size: 'xs' | 'sm' (default: 'sm') */
|
|
2885
2893
|
'size'?: NLDDSwitch['size'];
|
|
2894
|
+
/** 'inherit' draws the control in the color of the text around it, with the mark in the surface color (`--context-parent-background-color`) or else `--semantics-content-contrast-color`, white or black against the text color. For a control on a colored surface, such as the panel of nldd-hero, where the accent would not stand out. Without it the control uses the accent. */
|
|
2895
|
+
'color'?: NLDDSwitch['color'];
|
|
2886
2896
|
/** Accessible label forwarded as aria-label to the native input. Required when using nldd-switch without nldd-switch-field. */
|
|
2887
2897
|
'accessible-label'?: NLDDSwitch['accessibleLabel'];
|
|
2888
2898
|
/** Accessible label forwarded as aria-label to the native input. Required when using nldd-switch without nldd-switch-field. */
|
|
@@ -2909,6 +2919,8 @@ declare module 'vue' {
|
|
|
2909
2919
|
'value'?: NLDDSwitchField['value'];
|
|
2910
2920
|
/** Name for form submission */
|
|
2911
2921
|
'name'?: NLDDSwitchField['name'];
|
|
2922
|
+
/** 'inherit' draws the control and its label in the color of the text around it, for a field on a colored surface such as the panel of nldd-hero. Passed to the control inside. */
|
|
2923
|
+
'color'?: NLDDSwitchField['color'];
|
|
2912
2924
|
/** Label text for the switch */
|
|
2913
2925
|
'label'?: NLDDSwitchField['label'];
|
|
2914
2926
|
/** Required state */
|
|
@@ -3667,7 +3679,7 @@ declare module 'vue' {
|
|
|
3667
3679
|
'vertical-alignment'?: NLDDTwoThirdsOneThirdSection['verticalAlignment'];
|
|
3668
3680
|
/** Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other. */
|
|
3669
3681
|
'verticalAlignment'?: NLDDTwoThirdsOneThirdSection['verticalAlignment'];
|
|
3670
|
-
/** Surface background ('inherit' default; 'base'
|
|
3682
|
+
/** Surface background ('inherit' default; 'base', 'tinted' and 'accent-tinted', a tint of the theme's accent with the contrast of 'tinted', paint and cascade a surface). */
|
|
3671
3683
|
'background'?: NLDDTwoThirdsOneThirdSection['background'];
|
|
3672
3684
|
/** Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width). */
|
|
3673
3685
|
'height'?: NLDDTwoThirdsOneThirdSection['height'];
|
|
@@ -3808,6 +3820,7 @@ declare module 'vue' {
|
|
|
3808
3820
|
'nldd-card': DefineComponent<NLDDCardProps>;
|
|
3809
3821
|
/** 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"`. */
|
|
3810
3822
|
'nldd-cell': DefineComponent<NLDDCellProps>;
|
|
3823
|
+
/** On a selected row of nldd-list-item a checked control takes the colors of the row: the row sets `--context-selected-indicator-color` and `--context-selected-contrast-color`, because the accent can fall below 3:1 on the gray of a selected row. */
|
|
3811
3824
|
'nldd-checkbox': DefineComponent<NLDDCheckboxProps>;
|
|
3812
3825
|
/** A checkbox with an inline label for use in forms. Form-associated: participates in native form submission under `name` with `value` when checked (the inner nldd-checkbox sits in the shadow root and never joins the consumer's form; the field submits on its behalf). */
|
|
3813
3826
|
'nldd-checkbox-field': DefineComponent<NLDDCheckboxFieldProps>;
|
|
@@ -3815,7 +3828,7 @@ declare module 'vue' {
|
|
|
3815
3828
|
'nldd-code-editor': DefineComponent<NLDDCodeEditorProps>;
|
|
3816
3829
|
/** 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. */
|
|
3817
3830
|
'nldd-code-viewer': DefineComponent<NLDDCodeViewerProps>;
|
|
3818
|
-
/** 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. */
|
|
3831
|
+
/** 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. A grid keeps as many columns as fit, also when there are fewer items, so a page of results lines up with the next. For a fixed set of a few cards without paging, such as three points on a landing page, use `nldd-container layout="grid"` instead: its empty columns collapse, so the cards fill the row. 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. */
|
|
3819
3832
|
'nldd-collection': DefineComponent<NLDDCollectionProps>;
|
|
3820
3833
|
/** 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. */
|
|
3821
3834
|
'nldd-combo-box': DefineComponent<NLDDComboBoxProps>;
|
|
@@ -3849,7 +3862,7 @@ declare module 'vue' {
|
|
|
3849
3862
|
'nldd-form-section': DefineComponent<NLDDFormSectionProps>;
|
|
3850
3863
|
/** 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. */
|
|
3851
3864
|
'nldd-full-bleed-section': DefineComponent<NLDDFullBleedSectionProps>;
|
|
3852
|
-
/** 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.
|
|
3865
|
+
/** 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 on md and lg 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. On sm the top keeps the full distance, as the other sections do. 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. The panel takes the accent color of the theme, closest to its reference color in both modes, with a pure white or black content color, so components with `color="inherit"` (title, rich-text) are guaranteed to keep their contrast. `main-background="base"` gives it the base surface instead. A Rijkshuisstijl color per hero is gone: the theme picks the color for the whole site, and a hero given one says so in development. */
|
|
3853
3866
|
'nldd-hero': DefineComponent<NLDDHeroProps>;
|
|
3854
3867
|
/** 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. */
|
|
3855
3868
|
'nldd-icon': DefineComponent<NLDDIconProps>;
|
|
@@ -3919,7 +3932,7 @@ declare module 'vue' {
|
|
|
3919
3932
|
/** Exports both NLDDProgressCircle and NLDDProgressCircleSegmentIndicator. A circular progress indicator that mirrors the API of nldd-progress-bar: single-value or multi-segment, progress or distribution variant, 24 colors, fade transitions between determinate/indeterminate, indeterminate indicator. Visual differences vs the bar: - SVG arcs instead of rectangular bars. - Label below the circle (not above). - No center text; the consumer can wrap the circle if needed. - One combined tooltip on the whole circle showing all segment info (no per-segment tooltips). - Indeterminate uses a rotating elastic arc (Material-style) instead of the bar's Knight Rider scanner. */
|
|
3920
3933
|
'nldd-progress-circle': DefineComponent<NLDDProgressCircleProps>;
|
|
3921
3934
|
'nldd-progress-circle-segment-indicator': DefineComponent<NLDDProgressCircleSegmentIndicatorProps>;
|
|
3922
|
-
/** WAI-ARIA: put the buttons of one group in a container with role="radiogroup" and a name of its own. A screen reader counts the options from that container, so a bare <fieldset> (which is a group, not a radiogroup) leaves them uncounted. nldd-radio-button-group does this for you. Radio buttons with the same name, in the same form and the same tree, form one group the way native radios do: checking one unchecks the others, the arrow keys move between them, Tab stops at the group once, and a screen reader hears each one's place in it. The element itself is the radio, because an input per shadow root would leave every button a group of one. The shape is all this component draws. A radio with a label beside it is nldd-radio-button-field. <fieldset role="radiogroup" aria-labelledby="options-label"> <legend id="options-label">Kies een optie</legend> <nldd-radio-button name="options" value="1" accessible-label="Optie 1"></nldd-radio-button> <nldd-radio-button name="options" value="2" accessible-label="Optie 2"></nldd-radio-button> </fieldset> */
|
|
3935
|
+
/** WAI-ARIA: put the buttons of one group in a container with role="radiogroup" and a name of its own. A screen reader counts the options from that container, so a bare <fieldset> (which is a group, not a radiogroup) leaves them uncounted. nldd-radio-button-group does this for you. Radio buttons with the same name, in the same form and the same tree, form one group the way native radios do: checking one unchecks the others, the arrow keys move between them, Tab stops at the group once, and a screen reader hears each one's place in it. The element itself is the radio, because an input per shadow root would leave every button a group of one. The shape is all this component draws. A radio with a label beside it is nldd-radio-button-field. <fieldset role="radiogroup" aria-labelledby="options-label"> <legend id="options-label">Kies een optie</legend> <nldd-radio-button name="options" value="1" accessible-label="Optie 1"></nldd-radio-button> <nldd-radio-button name="options" value="2" accessible-label="Optie 2"></nldd-radio-button> </fieldset> On a selected row of nldd-list-item a checked control takes the colors of the row: the row sets `--context-selected-indicator-color` and `--context-selected-contrast-color`, because the accent can fall below 3:1 on the gray of a selected row. */
|
|
3923
3936
|
'nldd-radio-button': DefineComponent<NLDDRadioButtonProps>;
|
|
3924
3937
|
/** A radio button with an inline label. Use inside nldd-radio-button-group, which sets the name and labels the group. Fields that stand on their own group by name, the way native radios do: checking one unchecks the others, the arrow keys move between them and Tab stops at the group once. Put them in a container with role="radiogroup", or a screen reader has nothing to count them from. The field is the radio: it carries the role, the state, the label it is announced by and the focus, and the nldd-radio-button inside only draws the shape. A radio of its own in there would be a second control inside a control, and a group of one to count. Form-associated: the checked field submits its `value` under `name`. Unchecking siblings is the group's job, so exactly one value per group reaches the form. */
|
|
3925
3938
|
'nldd-radio-button-field': DefineComponent<NLDDRadioButtonFieldProps>;
|
|
@@ -3966,7 +3979,7 @@ declare module 'vue' {
|
|
|
3966
3979
|
'nldd-step-cell': DefineComponent<NLDDStepCellProps>;
|
|
3967
3980
|
/** A numeric control with increment and decrement buttons. */
|
|
3968
3981
|
'nldd-stepper': DefineComponent<NLDDStepperProps>;
|
|
3969
|
-
/** A toggle control for on/off settings. Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label. Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility. */
|
|
3982
|
+
/** A toggle control for on/off settings. Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label. Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility. On a selected row of nldd-list-item a checked control takes the colors of the row: the row sets `--context-selected-indicator-color` and `--context-selected-contrast-color`, because the accent can fall below 3:1 on the gray of a selected row. */
|
|
3970
3983
|
'nldd-switch': DefineComponent<NLDDSwitchProps>;
|
|
3971
3984
|
/** A switch toggle with an inline label for use in forms. */
|
|
3972
3985
|
'nldd-switch-field': DefineComponent<NLDDSwitchFieldProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
type Constructor<T = LitElement> = new (...args: any[]) => T;
|
|
3
|
-
export type PageSectionBackground = 'inherit' | 'base' | 'tinted';
|
|
3
|
+
export type PageSectionBackground = 'inherit' | 'base' | 'tinted' | 'accent-tinted';
|
|
4
4
|
export type PageSectionPadding = '0' | '2' | '4' | '6' | '8' | '10' | '12' | '16' | '20' | '24' | '28' | '32' | '40' | '44' | '48' | '56' | '64' | '80' | '96';
|
|
5
5
|
/**
|
|
6
6
|
* Shared surface controls for the page-section components. Adds three
|
|
@@ -10,8 +10,9 @@ export type PageSectionPadding = '0' | '2' | '4' | '6' | '8' | '10' | '12' | '16
|
|
|
10
10
|
* element and slotted content):
|
|
11
11
|
*
|
|
12
12
|
* - **background**: `inherit` (the default — transparent, shows the ancestor's
|
|
13
|
-
* surface) | `base` (the base surface color) | `tinted
|
|
14
|
-
*
|
|
13
|
+
* surface) | `base` (the base surface color) | `tinted` | `accent-tinted`
|
|
14
|
+
* (a tint of the theme's accent, with the contrast of `tinted`). Setting
|
|
15
|
+
* one of those also cascades `--context-parent-background-color` so
|
|
15
16
|
* descendants (cards, nested sections) read the same surface.
|
|
16
17
|
* - **block padding**: `padding-block` (both edges) with `padding-top`
|
|
17
18
|
* / `padding-bottom` per-edge overrides, each with responsive `sm-` /
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-section-mixin.d.ts","sourceRoot":"","sources":["../../src/utilities/page-section-mixin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AAGtD,KAAK,WAAW,CAAC,CAAC,GAAG,UAAU,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"page-section-mixin.d.ts","sourceRoot":"","sources":["../../src/utilities/page-section-mixin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AAGtD,KAAK,WAAW,CAAC,CAAC,GAAG,UAAU,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,eAAe,CAAC;AACpF,MAAM,MAAM,kBAAkB,GAC3B,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAC9D,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AA0BhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,SAAS,WAAW,CAAC,UAAU,CAAC,EACrE,IAAI,EAAE,KAAK,GAoG0B,KAAK,GACzC,WAAW,CACV,UAAU,GAAG;IACZ,UAAU,EAAE,qBAAqB,CAAC;IAClC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,eAAe,CAAC,EAAE,kBAAkB,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC9B,CACD,CACF"}
|
|
@@ -9,6 +9,7 @@ import { reflectNonDefault } from './reflect-non-default.js';
|
|
|
9
9
|
const BACKGROUND_TOKEN = {
|
|
10
10
|
base: 'var(--semantics-surfaces-base-background-color)',
|
|
11
11
|
tinted: 'var(--semantics-surfaces-tinted-background-color)',
|
|
12
|
+
'accent-tinted': 'var(--semantics-surfaces-accent-tinted-background-color)',
|
|
12
13
|
};
|
|
13
14
|
function paddingToValue(size) {
|
|
14
15
|
if (size === undefined || size === '')
|
|
@@ -36,8 +37,9 @@ const PADDING_KEYS = [
|
|
|
36
37
|
* element and slotted content):
|
|
37
38
|
*
|
|
38
39
|
* - **background**: `inherit` (the default — transparent, shows the ancestor's
|
|
39
|
-
* surface) | `base` (the base surface color) | `tinted
|
|
40
|
-
*
|
|
40
|
+
* surface) | `base` (the base surface color) | `tinted` | `accent-tinted`
|
|
41
|
+
* (a tint of the theme's accent, with the contrast of `tinted`). Setting
|
|
42
|
+
* one of those also cascades `--context-parent-background-color` so
|
|
41
43
|
* descendants (cards, nested sections) read the same surface.
|
|
42
44
|
* - **block padding**: `padding-block` (both edges) with `padding-top`
|
|
43
45
|
* / `padding-bottom` per-edge overrides, each with responsive `sm-` /
|
|
@@ -84,8 +86,8 @@ export function PageSectionMixin(Base) {
|
|
|
84
86
|
wrapper.hidden = slot.assignedElements().length === 0;
|
|
85
87
|
}
|
|
86
88
|
_applyBackground() {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
const token = this.background === 'inherit' ? undefined : BACKGROUND_TOKEN[this.background];
|
|
90
|
+
if (token) {
|
|
89
91
|
this.style.backgroundColor = token;
|
|
90
92
|
// Cascade so descendants (cards, nested sections) match.
|
|
91
93
|
this.style.setProperty('--context-parent-background-color', token);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-section-mixin.js","sourceRoot":"","sources":["../../src/utilities/page-section-mixin.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAS7D,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"page-section-mixin.js","sourceRoot":"","sources":["../../src/utilities/page-section-mixin.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAS7D,MAAM,gBAAgB,GAA8D;IACnF,IAAI,EAAE,iDAAiD;IACvD,MAAM,EAAE,mDAAmD;IAC3D,eAAe,EAAE,0DAA0D;CAC3E,CAAC;AAEF,SAAS,cAAc,CAAC,IAAwB;IAC/C,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,EAAE;QAAE,OAAO,IAAI,CAAC;IACnD,IAAI,IAAI,KAAK,GAAG;QAAE,OAAO,GAAG,CAAC;IAC7B,OAAO,0BAA0B,IAAI,GAAG,CAAC;AAC1C,CAAC;AAED,4EAA4E;AAC5E,qIAAqI;AACrI,4EAA4E;AAC5E,2EAA2E;AAC3E,MAAM,cAAc,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,I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|
|
1
1
|
import { css, unsafeCSS } from 'lit';
|
|
2
|
-
import {
|
|
3
|
-
const smMax = unsafeCSS(
|
|
4
|
-
const mdMin = unsafeCSS(
|
|
5
|
-
const mdMax = unsafeCSS(
|
|
6
|
-
const lgMin = unsafeCSS(
|
|
2
|
+
import { queryBreakpoints } from '../assets/styles/breakpoints.js';
|
|
3
|
+
const smMax = unsafeCSS(queryBreakpoints.smMax);
|
|
4
|
+
const mdMin = unsafeCSS(queryBreakpoints.mdMin);
|
|
5
|
+
const mdMax = unsafeCSS(queryBreakpoints.mdMax);
|
|
6
|
+
const lgMin = unsafeCSS(queryBreakpoints.lgMin);
|
|
7
7
|
// One sheet per container name, so every component passing the same name
|
|
8
8
|
// shares a single constructable stylesheet instead of each adopting its own.
|
|
9
9
|
const sheets = new Map();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visibility-mixin.styles.js","sourceRoot":"","sources":["../../src/utilities/visibility-mixin.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAkB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"visibility-mixin.styles.js","sourceRoot":"","sources":["../../src/utilities/visibility-mixin.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAkB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAChD,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAChD,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAChD,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAEhD,yEAAyE;AACzE,6EAA6E;AAC7E,MAAM,MAAM,GAAG,IAAI,GAAG,EAAqB,CAAC;AAE5C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAAC,aAAsB;IACtD,MAAM,GAAG,GAAG,aAAa,IAAI,EAAE,CAAC;IAChC,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAE1B,MAAM,SAAS,GAAG,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACtE,MAAM,KAAK,GAAG,GAAG,CAAA;;;;gBAIF,SAAS,eAAe,KAAK;;;;gBAI7B,SAAS,eAAe,KAAK;;;;;;;gBAO7B,SAAS,eAAe,KAAK;;;;gBAI7B,SAAS,eAAe,KAAK;;EAE3C,CAAC;IAEF,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACvB,OAAO,KAAK,CAAC;AACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nldd/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Designsysteem voor de Nederlandse Digitale Dienst",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/components/components.js",
|
|
@@ -459,9 +459,12 @@
|
|
|
459
459
|
"./styles/variables": "./dist/css/variables.css",
|
|
460
460
|
"./styles/tokens": "./dist/css/tokens.css",
|
|
461
461
|
"./styles/fouc": "./dist/css/fouc.css",
|
|
462
|
+
"./themes": "./dist/css/themes.css",
|
|
463
|
+
"./themes/*": "./dist/css/themes/*",
|
|
462
464
|
"./fonts/*": "./dist/fonts/*",
|
|
463
465
|
"./favicon.svg": "./dist/favicon.svg",
|
|
464
466
|
"./touch-icon.png": "./dist/touch-icon.png",
|
|
467
|
+
"./favicon/*": "./dist/favicon/*",
|
|
465
468
|
"./breakpoints": {
|
|
466
469
|
"types": "./dist/assets/styles/breakpoints.d.ts",
|
|
467
470
|
"default": "./dist/assets/styles/breakpoints.js"
|
|
@@ -510,9 +513,10 @@
|
|
|
510
513
|
},
|
|
511
514
|
"scripts": {
|
|
512
515
|
"build": "npm run build:styles && npm run build:assets && npm run validate:styles && npm run validate:host-styles && npm run build:components",
|
|
513
|
-
"build:styles": "rm -rf dist/css dist/fonts && mkdir -p dist/css dist/fonts && cp src/assets/styles/variables.css src/assets/styles/colors.generated.css src/assets/styles/rijksoverheid-fonts.css src/assets/styles/document-reset.css src/assets/styles/fouc.css dist/css/ && cp src/components/content/rich-text/rich-text.css src/components/forms/form/form.css src/components/forms/form-section/form-section.css dist/css/ && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global.css && printf '@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global-system-font.css && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./variables.css\";\\n' > dist/css/tokens.css && cp src/assets/fonts/*.woff2 dist/fonts/",
|
|
514
|
-
"build:assets": "mkdir -p dist && cp src/assets/favicon/favicon.svg src/assets/favicon/touch-icon.png dist/",
|
|
515
|
-
"generate:colors": "node scripts/generate-colors.js",
|
|
516
|
+
"build:styles": "rm -rf dist/css dist/fonts && mkdir -p dist/css dist/fonts && cp src/assets/styles/variables.css src/assets/styles/colors.generated.css src/assets/styles/rijksoverheid-fonts.css src/assets/styles/document-reset.css src/assets/styles/fouc.css dist/css/ && cp src/assets/styles/themes.css dist/css/ && mkdir -p dist/css/themes && cp src/assets/styles/themes/*.css dist/css/themes/ && cp src/components/content/rich-text/rich-text.css src/components/forms/form/form.css src/components/forms/form-section/form-section.css dist/css/ && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global.css && printf '@import \"./variables.css\";\\n@import \"./document-reset.css\";\\n@import \"./rich-text.css\";\\n@import \"./form-section.css\";\\n@import \"./form.css\";\\n@import \"./fouc.css\";\\n' > dist/css/global-system-font.css && printf '@import \"./rijksoverheid-fonts.css\";\\n@import \"./variables.css\";\\n' > dist/css/tokens.css && cp src/assets/fonts/*.woff2 dist/fonts/",
|
|
517
|
+
"build:assets": "mkdir -p dist/favicon && cp src/assets/favicon/favicon.svg src/assets/favicon/touch-icon.png dist/ && for theme in src/assets/favicon/*/; do cp -R \"${theme%/}\" dist/favicon/; done",
|
|
518
|
+
"generate:colors": "node scripts/generate-colors.js && npm run generate:themes",
|
|
519
|
+
"generate:themes": "node scripts/generate-themes.js",
|
|
516
520
|
"generate:component-reference": "node scripts/generate-component-reference.js",
|
|
517
521
|
"generate:cem": "cem analyze && npm run generate:vue-types",
|
|
518
522
|
"generate:vue-types": "node scripts/generate-vue-types.js",
|
|
@@ -571,8 +575,8 @@
|
|
|
571
575
|
"@storybook/addon-docs": "^10.6.0",
|
|
572
576
|
"@storybook/addon-themes": "^10.6.0",
|
|
573
577
|
"@storybook/web-components-vite": "^10.6.0",
|
|
574
|
-
"@vitest/browser-playwright": "5.0.
|
|
575
|
-
"@vitest/coverage-v8": "5.0.
|
|
578
|
+
"@vitest/browser-playwright": "5.0.5",
|
|
579
|
+
"@vitest/coverage-v8": "5.0.5",
|
|
576
580
|
"axe-core": "^4.13.0",
|
|
577
581
|
"conventional-changelog": "^8.1.0",
|
|
578
582
|
"conventional-changelog-conventionalcommits": "10.2.1",
|
|
@@ -587,7 +591,7 @@
|
|
|
587
591
|
"typescript": "^5.3.0",
|
|
588
592
|
"typescript-eslint": "^8.58.0",
|
|
589
593
|
"vite": "8.3.4",
|
|
590
|
-
"vitest": "5.0.
|
|
594
|
+
"vitest": "5.0.5",
|
|
591
595
|
"vue": "^3.5.40",
|
|
592
596
|
"vue-tsc": "^3.3.7"
|
|
593
597
|
},
|