@nldd/design-system 0.9.0 → 0.11.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 +878 -25
- 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/button.d.ts +10 -0
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +23 -0
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +22 -0
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts +1 -0
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +20 -2
- package/dist/components/actions/button/button.template.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/icon-button/icon-button.d.ts +10 -0
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +23 -0
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +10 -3
- package/dist/components/actions/icon-button/icon-button.template.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 +3 -3
- package/dist/components/actions/split-button/split-button.d.ts +8 -0
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +20 -0
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.template.js +4 -0
- package/dist/components/actions/split-button/split-button.template.js.map +1 -1
- package/dist/components/breakpoints-Bpf2MgjM.js +39 -0
- package/dist/components/components.js +803 -829
- 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/keyboard-shortcut/keyboard-shortcut.d.ts +3 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +6 -21
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +3 -0
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +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/content/tooltip/tooltip.d.ts +14 -0
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +45 -6
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +13 -0
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +18 -2
- package/dist/components/content/tooltip/tooltip.template.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/{icon-button-BVhiOwX9.js → icon-button-Cntrg4_E.js} +526 -61
- 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/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +2 -1
- package/dist/components/inputs/code-editor/code-editor.styles.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.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +31 -7
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- 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/search-field/search-field.d.ts +11 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +30 -1
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +18 -0
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +12 -0
- package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +10 -0
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +25 -1
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +20 -3
- package/dist/components/inputs/segmented-control/segmented-control.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.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +17 -14
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- 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/inputs/toggle-button/toggle-button.d.ts +10 -0
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +25 -1
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +21 -7
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- 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.d.ts +2 -0
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +9 -0
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +18 -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/cells/step-cell/step-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +9 -5
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.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.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +18 -17
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +2 -2
- 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/activity-indicator/activity-indicator.d.ts +16 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +16 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +23 -18
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +19 -21
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.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/inline-dialog/inline-dialog.styles.js +1 -1
- 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 +3 -3
- 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 +6 -6
- 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/progress-circle/progress-circle.styles.js +3 -3
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +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.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +9 -7
- 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 +226 -0
- package/dist/css/themes/donkerblauw.css +226 -0
- package/dist/css/themes/donkerbruin.css +206 -0
- package/dist/css/themes/donkergeel.css +259 -0
- package/dist/css/themes/donkergroen.css +211 -0
- package/dist/css/themes/geel.css +259 -0
- package/dist/css/themes/groen.css +226 -0
- package/dist/css/themes/hemelblauw.css +226 -0
- package/dist/css/themes/lichtblauw.css +229 -0
- package/dist/css/themes/mintgroen.css +229 -0
- package/dist/css/themes/mosgroen.css +226 -0
- package/dist/css/themes/oranje.css +259 -0
- package/dist/css/themes/paars.css +233 -0
- package/dist/css/themes/robijnrood.css +259 -0
- package/dist/css/themes/rood.css +259 -0
- package/dist/css/themes/roze.css +236 -0
- package/dist/css/themes/violet.css +211 -0
- package/dist/css/themes.css +3884 -0
- package/dist/css/variables.css +215 -184
- 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 +1328 -1244
- package/dist/types/vue.d.ts +134 -19
- package/dist/utilities/codemirror/theme.js +1 -1
- package/dist/utilities/codemirror/theme.js.map +1 -1
- 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/shortcut.d.ts +50 -0
- package/dist/utilities/shortcut.d.ts.map +1 -0
- package/dist/utilities/shortcut.js +77 -0
- package/dist/utilities/shortcut.js.map +1 -0
- 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/components/{icon-D_ZGezHx.js → icon-zNX9A6d3.js} +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
|
|
2
2
|
import { n as slottedReset, t as inheritedTextReset } from "./shadow-resets-CPa58rmc.js";
|
|
3
3
|
import { a as linkRel, i as linkHintKey, n as setTranslations, r as translate, t as withTranslations } from "./with-translations-C6QfP6_S.js";
|
|
4
|
-
import { t as
|
|
4
|
+
import { a as NLDDKeyboardShortcut, c as shortcutLabel, i as PopupAnchorController, l as shortcutsAvailable, n as NLDDTooltip, o as ShortcutAvailabilityController, r as NLDDActivityIndicator, s as hasShortcut, t as NLDDIconButton } from "./icon-button-Cntrg4_E.js";
|
|
5
5
|
import { t as reflectNonDefault } from "./reflect-non-default-OLaK60rT.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as NLDDIcon } from "./icon-
|
|
6
|
+
import { t as __decorate } from "./decorate-CO88j7Lc.js";
|
|
7
|
+
import { t as NLDDIcon } from "./icon-zNX9A6d3.js";
|
|
8
8
|
import { n as isPointerMode, r as isTouchMode, t as isKeyboardMode } from "./input-modality-DhTeUxKi.js";
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as VisibilityMixin } from "./visibility-mixin-
|
|
9
|
+
import { n as queryBreakpoints, r as rootFontSize, t as breakpointPx } from "./breakpoints-Bpf2MgjM.js";
|
|
10
|
+
import { t as VisibilityMixin } from "./visibility-mixin-djNSG5ZN.js";
|
|
11
11
|
import { $ as layer, A as syntaxTree, B as Tree, C as indentNodeProp, Ct as countColumn, D as matchBrackets, E as languageDataProp, F as NodeProp, G as RectangleMarker, H as Decoration, I as NodeSet, J as drawSelection, K as ViewPlugin, L as NodeType, M as styleTags, N as tags, Q as keymap, S as getIndentation, St as combineConfig, T as indentUnit, U as Direction, V as parseMixed, W as EditorView, X as getDrawSelectionConfig, Y as dropCursor, _t as StateField, a as HighlightStyle, at as Annotation, b as foldService, c as Language, ct as Compartment, d as ParseContext, dt as Facet, et as lineNumbers, f as StreamLanguage, gt as StateEffect, h as defineLanguageFacet, it as tooltips, j as Tag, k as syntaxHighlighting, l as LanguageDescription, lt as EditorSelection, mt as RangeSetBuilder, nt as placeholder, o as IndentContext, ot as ChangeDesc, pt as Prec, q as WidgetType, rt as showTooltip, st as ChangeSet, u as LanguageSupport, ut as EditorState, vt as Text, w as indentString, wt as findClusterBreak, x as getIndentUnit, y as foldNodeProp, yt as Transaction, z as Parser } from "./dist-Bud_7w5g.js";
|
|
12
12
|
import { i as completionStatus, n as autocompletion, s as startCompletion, t as CompletionContext } from "./dist-DkqAbJH8.js";
|
|
13
13
|
import { n as html$2, r as htmlCompletionSource } from "./dist-CaxHkqR2.js";
|
|
@@ -583,6 +583,28 @@ var buttonStyles = css`
|
|
|
583
583
|
--_button-block-padding: var(--primitives-space-4);
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
+
.button__shortcut {
|
|
587
|
+
display: flex;
|
|
588
|
+
flex-shrink: 0;
|
|
589
|
+
color: var(--_button-secondary-content-color);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.button:hover .button__shortcut {
|
|
593
|
+
@media (hover: hover) {
|
|
594
|
+
color: var(--_button-is-hovered-secondary-content-color);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.button:active .button__shortcut {
|
|
599
|
+
color: var(--_button-is-active-secondary-content-color);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
@media (any-hover: none) {
|
|
603
|
+
.button__shortcut {
|
|
604
|
+
display: none;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
|
|
586
608
|
.button__start-icon,
|
|
587
609
|
.button__end-icon {
|
|
588
610
|
display: flex;
|
|
@@ -632,6 +654,19 @@ function renderContent(component) {
|
|
|
632
654
|
<span class="button__text">${component.text ? component.text : html`<slot name="text"></slot>`}</span>
|
|
633
655
|
${component.supportingText ? html`<span class="button__supporting-text">${component.supportingText}</span>` : nothing}
|
|
634
656
|
</span>
|
|
657
|
+
${hasShortcut(component) ? html`
|
|
658
|
+
<span class="button__shortcut">
|
|
659
|
+
<nldd-keyboard-shortcut
|
|
660
|
+
size="inherit"
|
|
661
|
+
appearance="simple"
|
|
662
|
+
color="inherit"
|
|
663
|
+
keys=${component.shortcut || nothing}
|
|
664
|
+
mac-keys=${component.shortcutMac || nothing}
|
|
665
|
+
windows-keys=${component.shortcutWindows || nothing}
|
|
666
|
+
linux-keys=${component.shortcutLinux || nothing}
|
|
667
|
+
></nldd-keyboard-shortcut>
|
|
668
|
+
</span>
|
|
669
|
+
` : nothing}
|
|
635
670
|
${component.endIcon ? html`
|
|
636
671
|
<span class="button__end-icon">
|
|
637
672
|
<nldd-icon icon=${component.endIcon}></nldd-icon>
|
|
@@ -645,14 +680,15 @@ function renderContent(component) {
|
|
|
645
680
|
` : nothing}
|
|
646
681
|
`;
|
|
647
682
|
}
|
|
648
|
-
function template$
|
|
683
|
+
function template$23(helpers) {
|
|
649
684
|
const content = renderContent(this);
|
|
650
685
|
const buttonClass = ["button", this.supportingText ? "has-supporting-text" : ""].filter(Boolean).join(" ");
|
|
651
686
|
const ariaExpanded = this.expandable || !!this.popupType ? String(this.expanded) : this.expanded ? "true" : nothing;
|
|
652
687
|
const hintKey = linkHintKey(this.href, this.target);
|
|
653
688
|
const linkHint = hintKey ? this._t(`components.button.${hintKey}`) : "";
|
|
654
689
|
const baseAriaLabel = this.accessibleLabel || (this.supportingText ? [this.text, this.supportingText].filter(Boolean).join(", ") : "");
|
|
655
|
-
const
|
|
690
|
+
const namedAriaLabel = baseAriaLabel ? [baseAriaLabel, shortcutLabel(this)].filter(Boolean).join(" ") : "";
|
|
691
|
+
const ariaLabel = namedAriaLabel ? [namedAriaLabel, linkHint].filter(Boolean).join(", ") : nothing;
|
|
656
692
|
const renderLinkHint = !!linkHint && !baseAriaLabel;
|
|
657
693
|
const ariaBusy = this.loading ? "true" : nothing;
|
|
658
694
|
const loadingIndicator = this.loading ? html`
|
|
@@ -828,6 +864,10 @@ function DescribedBy(Base) {
|
|
|
828
864
|
* @attr {string} start-icon - Icon name for the start icon (before text)
|
|
829
865
|
* @attr {string} end-icon - Icon name for the end icon (after text)
|
|
830
866
|
* @attr {string} accessible-label - Accessible label for the button, overrides text for screen readers
|
|
867
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown right after the text, e.g. 'Cmd+S'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name, as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. Keep it for the few main actions of a screen (save, search); a hint on every button is noise.
|
|
868
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
869
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
870
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
831
871
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
832
872
|
* @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the button adds a visually hidden "opens in new tab" announcement for screen readers (WCAG 2.1 SC 3.2.2). An `href` to another origin than the page (another website, a subdomain too) adds a visually hidden "andere website", in one sentence with the new-tab announcement when both apply; there is no way to switch it off.
|
|
833
873
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
@@ -866,12 +906,17 @@ var _NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitEleme
|
|
|
866
906
|
this.startIcon = "";
|
|
867
907
|
this.endIcon = "";
|
|
868
908
|
this.accessibleLabel = "";
|
|
909
|
+
this.shortcut = "";
|
|
910
|
+
this.shortcutMac = "";
|
|
911
|
+
this.shortcutWindows = "";
|
|
912
|
+
this.shortcutLinux = "";
|
|
869
913
|
this.href = void 0;
|
|
870
914
|
this.target = void 0;
|
|
871
915
|
this.rel = void 0;
|
|
872
916
|
this._warnedA11y = false;
|
|
873
917
|
this._warnedFormId = null;
|
|
874
918
|
this._popup = new PopupAnchorController(this);
|
|
919
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
875
920
|
}
|
|
876
921
|
updated(changedProperties) {
|
|
877
922
|
if (changedProperties.has("maxWidth")) {
|
|
@@ -941,7 +986,7 @@ var _NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitEleme
|
|
|
941
986
|
return this.shadowRoot?.querySelector("button, a") ?? null;
|
|
942
987
|
}
|
|
943
988
|
render() {
|
|
944
|
-
return template$
|
|
989
|
+
return template$23.call(this, { handleClick: this._handleClick.bind(this) });
|
|
945
990
|
}
|
|
946
991
|
};
|
|
947
992
|
var NLDDButton = (_NLDDButton.styles = buttonStyles, _NLDDButton.formAssociated = true, _NLDDButton);
|
|
@@ -1033,6 +1078,25 @@ __decorate([property({
|
|
|
1033
1078
|
type: String,
|
|
1034
1079
|
attribute: "accessible-label"
|
|
1035
1080
|
})], NLDDButton.prototype, "accessibleLabel", void 0);
|
|
1081
|
+
__decorate([property({
|
|
1082
|
+
reflect: true,
|
|
1083
|
+
converter: reflectNonDefault("")
|
|
1084
|
+
})], NLDDButton.prototype, "shortcut", void 0);
|
|
1085
|
+
__decorate([property({
|
|
1086
|
+
reflect: true,
|
|
1087
|
+
attribute: "shortcut-mac",
|
|
1088
|
+
converter: reflectNonDefault("")
|
|
1089
|
+
})], NLDDButton.prototype, "shortcutMac", void 0);
|
|
1090
|
+
__decorate([property({
|
|
1091
|
+
reflect: true,
|
|
1092
|
+
attribute: "shortcut-windows",
|
|
1093
|
+
converter: reflectNonDefault("")
|
|
1094
|
+
})], NLDDButton.prototype, "shortcutWindows", void 0);
|
|
1095
|
+
__decorate([property({
|
|
1096
|
+
reflect: true,
|
|
1097
|
+
attribute: "shortcut-linux",
|
|
1098
|
+
converter: reflectNonDefault("")
|
|
1099
|
+
})], NLDDButton.prototype, "shortcutLinux", void 0);
|
|
1036
1100
|
__decorate([property({
|
|
1037
1101
|
type: String,
|
|
1038
1102
|
reflect: true
|
|
@@ -1174,7 +1238,7 @@ var splitButtonStyles = css`
|
|
|
1174
1238
|
`;
|
|
1175
1239
|
//#endregion
|
|
1176
1240
|
//#region src/components/actions/split-button/split-button.template.ts
|
|
1177
|
-
function template$
|
|
1241
|
+
function template$22() {
|
|
1178
1242
|
return html`
|
|
1179
1243
|
<div class="split-button">
|
|
1180
1244
|
<nldd-button
|
|
@@ -1182,6 +1246,10 @@ function template$23() {
|
|
|
1182
1246
|
size=${this.size}
|
|
1183
1247
|
text=${this.text}
|
|
1184
1248
|
start-icon=${this.icon || nothing}
|
|
1249
|
+
shortcut=${this.shortcut || nothing}
|
|
1250
|
+
shortcut-mac=${this.shortcutMac || nothing}
|
|
1251
|
+
shortcut-windows=${this.shortcutWindows || nothing}
|
|
1252
|
+
shortcut-linux=${this.shortcutLinux || nothing}
|
|
1185
1253
|
horizontal-alignment="left"
|
|
1186
1254
|
width="full"
|
|
1187
1255
|
no-highlight-border
|
|
@@ -1231,8 +1299,8 @@ var menuStyles = css`
|
|
|
1231
1299
|
--_menu-padding: var(--primitives-space-8);
|
|
1232
1300
|
--_menu-item-size: var(--semantics-controls-md-min-size);
|
|
1233
1301
|
--_menu-item-background-color: transparent;
|
|
1234
|
-
--_menu-item-is-highlighted-background-color: var(--semantics-
|
|
1235
|
-
--_menu-item-is-highlighted-content-color: var(--semantics-
|
|
1302
|
+
--_menu-item-is-highlighted-background-color: var(--semantics-list-items-is-highlighted-background-color);
|
|
1303
|
+
--_menu-item-is-highlighted-content-color: var(--semantics-list-items-is-highlighted-content-color);
|
|
1236
1304
|
|
|
1237
1305
|
@media (pointer: fine) {
|
|
1238
1306
|
--_menu-padding: var(--primitives-space-6);
|
|
@@ -1458,7 +1526,7 @@ var menuItemStyles = css`
|
|
|
1458
1526
|
/* ## Destructive */
|
|
1459
1527
|
|
|
1460
1528
|
:host([destructive]) {
|
|
1461
|
-
--_menu-item-is-highlighted-background-color: light-dark(var(--primitives-color-critical-
|
|
1529
|
+
--_menu-item-is-highlighted-background-color: light-dark(var(--primitives-color-critical-550), var(--primitives-color-critical-650));
|
|
1462
1530
|
--_menu-item-is-highlighted-content-color: var(--primitives-color-neutral-0);
|
|
1463
1531
|
--context-content-color: var(--_menu-item-is-destructive-content-color);
|
|
1464
1532
|
--context-content-secondary-color: var(--_menu-item-is-destructive-content-color);
|
|
@@ -1996,7 +2064,7 @@ var iconCellStyles = css`
|
|
|
1996
2064
|
`;
|
|
1997
2065
|
//#endregion
|
|
1998
2066
|
//#region src/components/lists-and-tables/cells/icon-cell/icon-cell.template.ts
|
|
1999
|
-
function template$
|
|
2067
|
+
function template$21() {
|
|
2000
2068
|
return html`
|
|
2001
2069
|
<span
|
|
2002
2070
|
part="icon"
|
|
@@ -2035,7 +2103,7 @@ var _NLDDIconCell = class NLDDIconCell extends VisibilityMixin(LitElement, "cell
|
|
|
2035
2103
|
this.icon = "";
|
|
2036
2104
|
}
|
|
2037
2105
|
render() {
|
|
2038
|
-
return template$
|
|
2106
|
+
return template$21.call(this);
|
|
2039
2107
|
}
|
|
2040
2108
|
};
|
|
2041
2109
|
var NLDDIconCell = (_NLDDIconCell.styles = iconCellStyles, _NLDDIconCell);
|
|
@@ -2380,7 +2448,7 @@ function renderQueryMark(text, query, mode = "predictive") {
|
|
|
2380
2448
|
}
|
|
2381
2449
|
//#endregion
|
|
2382
2450
|
//#region src/components/lists-and-tables/cells/text-cell/text-cell.template.ts
|
|
2383
|
-
function template$
|
|
2451
|
+
function template$20() {
|
|
2384
2452
|
return html`
|
|
2385
2453
|
<p
|
|
2386
2454
|
class="text-cell__overline"
|
|
@@ -2520,7 +2588,7 @@ var _NLDDTextCell = class NLDDTextCell extends VisibilityMixin(LitElement, "cell
|
|
|
2520
2588
|
else this.style.removeProperty("--_text-cell-min-height");
|
|
2521
2589
|
}
|
|
2522
2590
|
render() {
|
|
2523
|
-
return template$
|
|
2591
|
+
return template$20.call(this);
|
|
2524
2592
|
}
|
|
2525
2593
|
};
|
|
2526
2594
|
var NLDDTextCell = (_NLDDTextCell.styles = [textCellStyles], _NLDDTextCell);
|
|
@@ -2587,308 +2655,6 @@ __decorate([state()], NLDDTextCell.prototype, "_hasDefaultSlotted", void 0);
|
|
|
2587
2655
|
__decorate([state()], NLDDTextCell.prototype, "_hasSupportingTextSlotted", void 0);
|
|
2588
2656
|
NLDDTextCell = __decorate([customElement("nldd-text-cell")], NLDDTextCell);
|
|
2589
2657
|
//#endregion
|
|
2590
|
-
//#region src/components/content/keyboard-shortcut/keyboard-shortcut.styles.ts
|
|
2591
|
-
var keyboardShortcutStyles = css`
|
|
2592
|
-
:host {
|
|
2593
|
-
box-sizing: border-box;
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
/* # Host */
|
|
2598
|
-
|
|
2599
|
-
:host {
|
|
2600
|
-
--_keyboard-shortcut-size: var(--primitives-space-24);
|
|
2601
|
-
--_keyboard-shortcut-inline-padding: var(--primitives-space-4);
|
|
2602
|
-
--_keyboard-shortcut-font-family: var(--primitives-font-family-monospace);
|
|
2603
|
-
--_keyboard-shortcut-font-size: var(--primitives-font-size-80);
|
|
2604
|
-
--_keyboard-shortcut-font-weight: var(--primitives-font-weight-body-regular);
|
|
2605
|
-
--_keyboard-shortcut-line-height: var(--primitives-line-height-flat);
|
|
2606
|
-
--_keyboard-shortcut-content-color: var(--semantics-content-color);
|
|
2607
|
-
--_keyboard-shortcut-separator-color: var(--semantics-content-secondary-color);
|
|
2608
|
-
--_keyboard-shortcut-highlight-border-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-250));
|
|
2609
|
-
--_keyboard-shortcut-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
2610
|
-
--_keyboard-shortcut-border-width: var(--primitives-border-width-thin);
|
|
2611
|
-
--_keyboard-shortcut-corner-radius: var(--primitives-corner-radius-xs);
|
|
2612
|
-
|
|
2613
|
-
${inheritedTextReset}
|
|
2614
|
-
display: inline-flex;
|
|
2615
|
-
vertical-align: middle;
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
:host([color="inherit"]) {
|
|
2619
|
-
--_keyboard-shortcut-content-color: currentColor;
|
|
2620
|
-
--_keyboard-shortcut-separator-color: currentColor;
|
|
2621
|
-
--_keyboard-shortcut-highlight-border-color: color-mix(in oklab, var(--semantics-content-contrast-color) 10%, transparent);
|
|
2622
|
-
--_keyboard-shortcut-background-color: color-mix(in oklab, var(--semantics-content-contrast-color) 20%, transparent);
|
|
2623
|
-
}
|
|
2624
|
-
|
|
2625
|
-
:host([size="sm"]) {
|
|
2626
|
-
--_keyboard-shortcut-size: var(--primitives-space-20);
|
|
2627
|
-
--_keyboard-shortcut-font-size: var(--primitives-font-size-70);
|
|
2628
|
-
}
|
|
2629
|
-
|
|
2630
|
-
:host([size="inherit"]) {
|
|
2631
|
-
--_keyboard-shortcut-size: 1.5em;
|
|
2632
|
-
--_keyboard-shortcut-inline-padding: 0.35em;
|
|
2633
|
-
--_keyboard-shortcut-font-size: 0.75em;
|
|
2634
|
-
}
|
|
2635
|
-
|
|
2636
|
-
:host([appearance="simple"]) {
|
|
2637
|
-
--_keyboard-shortcut-font-family: var(--primitives-font-family-body);
|
|
2638
|
-
--_keyboard-shortcut-font-size: var(--primitives-font-size-100);
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
:host([appearance="simple"][size="sm"]) {
|
|
2642
|
-
--_keyboard-shortcut-font-size: var(--primitives-font-size-90);
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
:host([appearance="simple"][size="inherit"]) {
|
|
2646
|
-
--_keyboard-shortcut-font-size: inherit;
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
|
-
:host([hidden]) {
|
|
2650
|
-
display: none;
|
|
2651
|
-
}
|
|
2652
|
-
|
|
2653
|
-
@media (any-hover: none) {
|
|
2654
|
-
:host(:not([always-visible])) {
|
|
2655
|
-
display: none;
|
|
2656
|
-
}
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
/* # Block */
|
|
2661
|
-
|
|
2662
|
-
.keyboard-shortcut {
|
|
2663
|
-
display: inline-flex;
|
|
2664
|
-
gap: var(--primitives-space-2);
|
|
2665
|
-
align-items: center;
|
|
2666
|
-
}
|
|
2667
|
-
|
|
2668
|
-
:host([size="inherit"]) .keyboard-shortcut {
|
|
2669
|
-
position: relative;
|
|
2670
|
-
top: -0.05em;
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
:host([size="inherit"][appearance="simple"]) .keyboard-shortcut {
|
|
2674
|
-
position: static;
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
/* # Elements */
|
|
2679
|
-
|
|
2680
|
-
.keyboard-shortcut__key {
|
|
2681
|
-
box-sizing: border-box;
|
|
2682
|
-
display: inline-flex;
|
|
2683
|
-
box-shadow: inset 0 0 0 var(--_keyboard-shortcut-border-width) var(--_keyboard-shortcut-highlight-border-color);
|
|
2684
|
-
border-radius: var(--_keyboard-shortcut-corner-radius);
|
|
2685
|
-
background-color: var(--_keyboard-shortcut-background-color);
|
|
2686
|
-
min-width: var(--_keyboard-shortcut-size);
|
|
2687
|
-
height: var(--_keyboard-shortcut-size);
|
|
2688
|
-
padding: 0 var(--_keyboard-shortcut-inline-padding);
|
|
2689
|
-
align-items: center;
|
|
2690
|
-
justify-content: center;
|
|
2691
|
-
color: var(--_keyboard-shortcut-content-color);
|
|
2692
|
-
font-family: var(--_keyboard-shortcut-font-family);
|
|
2693
|
-
font-size: var(--_keyboard-shortcut-font-size);
|
|
2694
|
-
font-weight: var(--_keyboard-shortcut-font-weight);
|
|
2695
|
-
line-height: var(--_keyboard-shortcut-line-height);
|
|
2696
|
-
white-space: nowrap;
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
:host([appearance="simple"]) .keyboard-shortcut {
|
|
2700
|
-
gap: 0;
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
:host([appearance="simple"]) .keyboard-shortcut__key {
|
|
2704
|
-
box-shadow: none;
|
|
2705
|
-
background-color: transparent;
|
|
2706
|
-
border-radius: 0;
|
|
2707
|
-
min-width: 0;
|
|
2708
|
-
height: auto;
|
|
2709
|
-
padding: 0;
|
|
2710
|
-
}
|
|
2711
|
-
|
|
2712
|
-
@media (forced-colors: active) {
|
|
2713
|
-
.keyboard-shortcut__key {
|
|
2714
|
-
color: CanvasText;
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
:host(:not([appearance="simple"])) .keyboard-shortcut__key {
|
|
2718
|
-
border: var(--_keyboard-shortcut-border-width) solid CanvasText;
|
|
2719
|
-
background-color: Canvas;
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
.keyboard-shortcut__separator {
|
|
2724
|
-
color: var(--_keyboard-shortcut-separator-color);
|
|
2725
|
-
font-family: var(--_keyboard-shortcut-font-family);
|
|
2726
|
-
font-size: var(--_keyboard-shortcut-font-size);
|
|
2727
|
-
font-weight: var(--_keyboard-shortcut-font-weight);
|
|
2728
|
-
line-height: var(--_keyboard-shortcut-line-height);
|
|
2729
|
-
}
|
|
2730
|
-
`;
|
|
2731
|
-
//#endregion
|
|
2732
|
-
//#region src/components/content/keyboard-shortcut/keyboard-shortcut.template.ts
|
|
2733
|
-
function template$20(component) {
|
|
2734
|
-
const keys = component._parsedKeys;
|
|
2735
|
-
if (keys.length === 0) return html`
|
|
2736
|
-
<kbd class="keyboard-shortcut">
|
|
2737
|
-
<slot></slot>
|
|
2738
|
-
</kbd>
|
|
2739
|
-
`;
|
|
2740
|
-
return html`
|
|
2741
|
-
<kbd class="keyboard-shortcut">
|
|
2742
|
-
${keys.map((key, index) => html`
|
|
2743
|
-
${index > 0 ? html`<span class="keyboard-shortcut__separator"
|
|
2744
|
-
aria-hidden="true"
|
|
2745
|
-
>+</span>` : ""}
|
|
2746
|
-
<kbd class="keyboard-shortcut__key">${key}</kbd>
|
|
2747
|
-
`)}
|
|
2748
|
-
</kbd>
|
|
2749
|
-
`;
|
|
2750
|
-
}
|
|
2751
|
-
//#endregion
|
|
2752
|
-
//#region src/utilities/os.ts
|
|
2753
|
-
var cached = null;
|
|
2754
|
-
var override = null;
|
|
2755
|
-
function classify(platform) {
|
|
2756
|
-
const p = platform.toLowerCase();
|
|
2757
|
-
if (/mac|iphone|ipad|ipod|ios/.test(p)) return "mac";
|
|
2758
|
-
if (/win/.test(p)) return "windows";
|
|
2759
|
-
if (/android/.test(p)) return "other";
|
|
2760
|
-
if (/linux|cros/.test(p)) return "linux";
|
|
2761
|
-
return "other";
|
|
2762
|
-
}
|
|
2763
|
-
function detectOS() {
|
|
2764
|
-
if (override !== null) return override;
|
|
2765
|
-
if (cached !== null) return cached;
|
|
2766
|
-
if (typeof navigator === "undefined") {
|
|
2767
|
-
cached = "other";
|
|
2768
|
-
return cached;
|
|
2769
|
-
}
|
|
2770
|
-
const nav = navigator;
|
|
2771
|
-
cached = classify(nav.userAgentData?.platform || nav.platform || "");
|
|
2772
|
-
return cached;
|
|
2773
|
-
}
|
|
2774
|
-
//#endregion
|
|
2775
|
-
//#region src/components/content/keyboard-shortcut/keyboard-shortcut.ts
|
|
2776
|
-
/**
|
|
2777
|
-
* Nederlandse Digitale Dienst Keyboard Shortcut Component (Lit + TypeScript)
|
|
2778
|
-
*
|
|
2779
|
-
* Shows a key combination (such as Cmd+K or Ctrl+Shift+P) in one combined
|
|
2780
|
-
* container with a semantic <kbd> element per key.
|
|
2781
|
-
*
|
|
2782
|
-
* On touch-only devices (no hover-capable input) the shortcut is hidden by
|
|
2783
|
-
* default, because it cannot be invoked there. Use the `always-visible`
|
|
2784
|
-
* attribute when the shortcut is purely informative and should stay visible.
|
|
2785
|
-
*
|
|
2786
|
-
* For cross-platform shortcuts you can set `mac-keys`, `windows-keys` and
|
|
2787
|
-
* `linux-keys`. The component picks the right one from the detected OS, with
|
|
2788
|
-
* `keys` as the fallback for unknown platforms.
|
|
2789
|
-
*
|
|
2790
|
-
* @element nldd-keyboard-shortcut
|
|
2791
|
-
* @attr {string} keys - Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P').
|
|
2792
|
-
* Use '+++' for a literal '+' key: 'Ctrl+++' becomes 'Ctrl' + '+'. For more
|
|
2793
|
-
* complex cases (a combo with several '+' keys, for instance) use the default
|
|
2794
|
-
* slot with your own <kbd> elements instead of the keys attribute.
|
|
2795
|
-
* @attr {string} mac-keys - Optional override for macOS (iPhone/iPad/iPod included).
|
|
2796
|
-
* @attr {string} windows-keys - Optional override for Windows.
|
|
2797
|
-
* @attr {string} linux-keys - Optional override for Linux/ChromeOS.
|
|
2798
|
-
* @attr {string} size - Size: 'sm' | 'md' | 'inherit' (default: 'md'). 'inherit' takes the
|
|
2799
|
-
* font-size from the container; in the box variant the keycaps then scale along in em.
|
|
2800
|
-
* @attr {string} appearance - 'box' (default) shows each key as a keycap with a fill and a
|
|
2801
|
-
* highlight edge. 'simple' shows the keys as plain text with separators: lighter, for
|
|
2802
|
-
* inline use such as in a menu item.
|
|
2803
|
-
* @attr {boolean} always-visible - Show on touch-only devices too, where shortcuts cannot be invoked.
|
|
2804
|
-
* @attr {string} color - 'neutral' (default) uses the component colors of its own. 'inherit'
|
|
2805
|
-
* lets the keys and separators follow the surrounding text color (currentColor), with a
|
|
2806
|
-
* translucent contrast fill and highlight edge. Useful on a filled surface color or a
|
|
2807
|
-
* highlighted row.
|
|
2808
|
-
* @attr {'mac'|'windows'|'linux'|'other'} debug-os - Development aid: overrides the OS
|
|
2809
|
-
* detection for this instance, so you can show several platform variants side by side in
|
|
2810
|
-
* Storybook or documentation. Not meant for production use; leave it empty (default) so
|
|
2811
|
-
* the real OS detection applies.
|
|
2812
|
-
*
|
|
2813
|
-
* @slot - Optional custom <kbd> elements. Ignored when keys is set.
|
|
2814
|
-
*/
|
|
2815
|
-
var _NLDDKeyboardShortcut = class NLDDKeyboardShortcut extends LitElement {
|
|
2816
|
-
constructor(..._args) {
|
|
2817
|
-
super(..._args);
|
|
2818
|
-
this.keys = "";
|
|
2819
|
-
this.macKeys = "";
|
|
2820
|
-
this.windowsKeys = "";
|
|
2821
|
-
this.linuxKeys = "";
|
|
2822
|
-
this.size = "md";
|
|
2823
|
-
this.appearance = "box";
|
|
2824
|
-
this.color = "neutral";
|
|
2825
|
-
this.alwaysVisible = false;
|
|
2826
|
-
this.debugOS = "";
|
|
2827
|
-
}
|
|
2828
|
-
/** @internal Resolved OS — the debug override when set, else detection. */
|
|
2829
|
-
get _resolvedOS() {
|
|
2830
|
-
return this.debugOS || detectOS();
|
|
2831
|
-
}
|
|
2832
|
-
get _resolvedKeys() {
|
|
2833
|
-
const os = this._resolvedOS;
|
|
2834
|
-
if (os === "mac" && this.macKeys) return this.macKeys;
|
|
2835
|
-
if (os === "windows" && this.windowsKeys) return this.windowsKeys;
|
|
2836
|
-
if (os === "linux" && this.linuxKeys) return this.linuxKeys;
|
|
2837
|
-
return this.keys;
|
|
2838
|
-
}
|
|
2839
|
-
get _parsedKeys() {
|
|
2840
|
-
const spec = this._resolvedKeys;
|
|
2841
|
-
if (!spec) return [];
|
|
2842
|
-
const MARKER = "\0";
|
|
2843
|
-
return spec.replace(/\+\+\+/g, `+${MARKER}+`).split("+").map((k) => k.trim().replace(new RegExp(MARKER, "g"), "+")).filter(Boolean);
|
|
2844
|
-
}
|
|
2845
|
-
render() {
|
|
2846
|
-
return template$20(this);
|
|
2847
|
-
}
|
|
2848
|
-
};
|
|
2849
|
-
var NLDDKeyboardShortcut = (_NLDDKeyboardShortcut.styles = keyboardShortcutStyles, _NLDDKeyboardShortcut);
|
|
2850
|
-
__decorate([property({
|
|
2851
|
-
reflect: true,
|
|
2852
|
-
converter: reflectNonDefault("")
|
|
2853
|
-
})], NLDDKeyboardShortcut.prototype, "keys", void 0);
|
|
2854
|
-
__decorate([property({
|
|
2855
|
-
reflect: true,
|
|
2856
|
-
attribute: "mac-keys",
|
|
2857
|
-
converter: reflectNonDefault("")
|
|
2858
|
-
})], NLDDKeyboardShortcut.prototype, "macKeys", void 0);
|
|
2859
|
-
__decorate([property({
|
|
2860
|
-
reflect: true,
|
|
2861
|
-
attribute: "windows-keys",
|
|
2862
|
-
converter: reflectNonDefault("")
|
|
2863
|
-
})], NLDDKeyboardShortcut.prototype, "windowsKeys", void 0);
|
|
2864
|
-
__decorate([property({
|
|
2865
|
-
reflect: true,
|
|
2866
|
-
attribute: "linux-keys",
|
|
2867
|
-
converter: reflectNonDefault("")
|
|
2868
|
-
})], NLDDKeyboardShortcut.prototype, "linuxKeys", void 0);
|
|
2869
|
-
__decorate([property({
|
|
2870
|
-
reflect: true,
|
|
2871
|
-
converter: reflectNonDefault("md")
|
|
2872
|
-
})], NLDDKeyboardShortcut.prototype, "size", void 0);
|
|
2873
|
-
__decorate([property({
|
|
2874
|
-
reflect: true,
|
|
2875
|
-
converter: reflectNonDefault("box")
|
|
2876
|
-
})], NLDDKeyboardShortcut.prototype, "appearance", void 0);
|
|
2877
|
-
__decorate([property({
|
|
2878
|
-
reflect: true,
|
|
2879
|
-
converter: reflectNonDefault("neutral")
|
|
2880
|
-
})], NLDDKeyboardShortcut.prototype, "color", void 0);
|
|
2881
|
-
__decorate([property({
|
|
2882
|
-
type: Boolean,
|
|
2883
|
-
reflect: true,
|
|
2884
|
-
attribute: "always-visible"
|
|
2885
|
-
})], NLDDKeyboardShortcut.prototype, "alwaysVisible", void 0);
|
|
2886
|
-
__decorate([property({
|
|
2887
|
-
type: String,
|
|
2888
|
-
attribute: "debug-os"
|
|
2889
|
-
})], NLDDKeyboardShortcut.prototype, "debugOS", void 0);
|
|
2890
|
-
NLDDKeyboardShortcut = __decorate([customElement("nldd-keyboard-shortcut")], NLDDKeyboardShortcut);
|
|
2891
|
-
//#endregion
|
|
2892
2658
|
//#region src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts
|
|
2893
2659
|
var inlineDialogStyles = css`
|
|
2894
2660
|
:host {
|
|
@@ -2930,7 +2696,7 @@ var inlineDialogStyles = css`
|
|
|
2930
2696
|
}
|
|
2931
2697
|
|
|
2932
2698
|
:host([icon-color="accent"]) {
|
|
2933
|
-
--_inline-dialog-icon-color:
|
|
2699
|
+
--_inline-dialog-icon-color: var(--components-inline-dialog-icon-color);
|
|
2934
2700
|
}
|
|
2935
2701
|
|
|
2936
2702
|
:host([icon-color="critical"]) {
|
|
@@ -3082,7 +2848,7 @@ function inlineDialogTemplate(component) {
|
|
|
3082
2848
|
}
|
|
3083
2849
|
//#endregion
|
|
3084
2850
|
//#region src/components/actions/button-group/button-group.styles.ts
|
|
3085
|
-
var smMax$21 = unsafeCSS(
|
|
2851
|
+
var smMax$21 = unsafeCSS(queryBreakpoints.smMax);
|
|
3086
2852
|
var buttonGroupStyles = css`
|
|
3087
2853
|
:host {
|
|
3088
2854
|
box-sizing: border-box;
|
|
@@ -4498,7 +4264,7 @@ var NLDDMenu = class NLDDMenu extends LitElement {
|
|
|
4498
4264
|
return true;
|
|
4499
4265
|
}
|
|
4500
4266
|
static _getDrillInModeQuery() {
|
|
4501
|
-
if (NLDDMenu._drillInModeQuery === null) NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${
|
|
4267
|
+
if (NLDDMenu._drillInModeQuery === null) NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${queryBreakpoints.smMax})`);
|
|
4502
4268
|
return NLDDMenu._drillInModeQuery;
|
|
4503
4269
|
}
|
|
4504
4270
|
get _drillInMode() {
|
|
@@ -4902,6 +4668,10 @@ if (!customElements.get("nldd-menu")) customElements.define("nldd-menu", NLDDMen
|
|
|
4902
4668
|
* @attr {string} width - Width mode: 'full' (stretches to container) or any CSS length; the main action button fills the available space
|
|
4903
4669
|
* @attr {string} text - Button text for the primary action
|
|
4904
4670
|
* @attr {string} icon - Icon name shown before the text on the primary action button
|
|
4671
|
+
* @attr {string} shortcut - Keyboard shortcut hint for the primary action, shown right after its text, e.g. 'Cmd+S'. Forwarded to the inner nldd-button; display only, wire up the handling in your app.
|
|
4672
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
4673
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
4674
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
4905
4675
|
* @attr {object} translations - Translations; unset keys fall back to Dutch
|
|
4906
4676
|
*
|
|
4907
4677
|
* @slot - A single `nldd-menu` or `nldd-popover` that the chevron opens.
|
|
@@ -4917,6 +4687,10 @@ var _NLDDSplitButton = class NLDDSplitButton extends LitElement {
|
|
|
4917
4687
|
this.disabled = false;
|
|
4918
4688
|
this.width = "";
|
|
4919
4689
|
this.text = "";
|
|
4690
|
+
this.shortcut = "";
|
|
4691
|
+
this.shortcutMac = "";
|
|
4692
|
+
this.shortcutWindows = "";
|
|
4693
|
+
this.shortcutLinux = "";
|
|
4920
4694
|
this.icon = "";
|
|
4921
4695
|
this.translations = {};
|
|
4922
4696
|
this._menuIsOpen = false;
|
|
@@ -4971,7 +4745,7 @@ var _NLDDSplitButton = class NLDDSplitButton extends LitElement {
|
|
|
4971
4745
|
}
|
|
4972
4746
|
}
|
|
4973
4747
|
render() {
|
|
4974
|
-
return template$
|
|
4748
|
+
return template$22.call(this);
|
|
4975
4749
|
}
|
|
4976
4750
|
};
|
|
4977
4751
|
var NLDDSplitButton = (_NLDDSplitButton.styles = splitButtonStyles, _NLDDSplitButton);
|
|
@@ -4995,6 +4769,25 @@ __decorate([property({
|
|
|
4995
4769
|
reflect: true,
|
|
4996
4770
|
converter: reflectNonDefault("")
|
|
4997
4771
|
})], NLDDSplitButton.prototype, "text", void 0);
|
|
4772
|
+
__decorate([property({
|
|
4773
|
+
reflect: true,
|
|
4774
|
+
converter: reflectNonDefault("")
|
|
4775
|
+
})], NLDDSplitButton.prototype, "shortcut", void 0);
|
|
4776
|
+
__decorate([property({
|
|
4777
|
+
reflect: true,
|
|
4778
|
+
attribute: "shortcut-mac",
|
|
4779
|
+
converter: reflectNonDefault("")
|
|
4780
|
+
})], NLDDSplitButton.prototype, "shortcutMac", void 0);
|
|
4781
|
+
__decorate([property({
|
|
4782
|
+
reflect: true,
|
|
4783
|
+
attribute: "shortcut-windows",
|
|
4784
|
+
converter: reflectNonDefault("")
|
|
4785
|
+
})], NLDDSplitButton.prototype, "shortcutWindows", void 0);
|
|
4786
|
+
__decorate([property({
|
|
4787
|
+
reflect: true,
|
|
4788
|
+
attribute: "shortcut-linux",
|
|
4789
|
+
converter: reflectNonDefault("")
|
|
4790
|
+
})], NLDDSplitButton.prototype, "shortcutLinux", void 0);
|
|
4998
4791
|
__decorate([property({ type: String })], NLDDSplitButton.prototype, "icon", void 0);
|
|
4999
4792
|
__decorate([property({ type: Object })], NLDDSplitButton.prototype, "translations", void 0);
|
|
5000
4793
|
__decorate([query(".split-button__popup-button")], NLDDSplitButton.prototype, "_popupButtonWrapper", void 0);
|
|
@@ -7005,7 +6798,7 @@ __decorate([state()], NLDDAvatar.prototype, "_imageFailed", void 0);
|
|
|
7005
6798
|
NLDDAvatar = __decorate([customElement("nldd-avatar")], NLDDAvatar);
|
|
7006
6799
|
//#endregion
|
|
7007
6800
|
//#region src/components/content/blockquote/blockquote.styles.ts
|
|
7008
|
-
var smMax$20 = unsafeCSS(
|
|
6801
|
+
var smMax$20 = unsafeCSS(queryBreakpoints.smMax);
|
|
7009
6802
|
var blockquoteStyles = css`
|
|
7010
6803
|
:host {
|
|
7011
6804
|
box-sizing: border-box;
|
|
@@ -7324,8 +7117,8 @@ function avatarGroupTemplate(component) {
|
|
|
7324
7117
|
}
|
|
7325
7118
|
//#endregion
|
|
7326
7119
|
//#region src/components/layout/popover/popover.styles.ts
|
|
7327
|
-
var smMax$19 = unsafeCSS(
|
|
7328
|
-
var mdMin$22 = unsafeCSS(
|
|
7120
|
+
var smMax$19 = unsafeCSS(queryBreakpoints.smMax);
|
|
7121
|
+
var mdMin$22 = unsafeCSS(queryBreakpoints.mdMin);
|
|
7329
7122
|
var popoverStyles = css`
|
|
7330
7123
|
:host {
|
|
7331
7124
|
box-sizing: border-box;
|
|
@@ -7632,7 +7425,7 @@ var NLDDPopover = (_NLDDPopover2 = class NLDDPopover extends LitElement {
|
|
|
7632
7425
|
document.addEventListener("pointercancel", this._handlePointerCancel, true);
|
|
7633
7426
|
document.addEventListener("click", this._handleDocumentClickCapture, true);
|
|
7634
7427
|
document.addEventListener("click", this._handleDocumentClick);
|
|
7635
|
-
this._smQuery = window.matchMedia(`(max-width: ${
|
|
7428
|
+
this._smQuery = window.matchMedia(`(max-width: ${queryBreakpoints.smMax})`);
|
|
7636
7429
|
this._wasOnSm = this._smQuery.matches;
|
|
7637
7430
|
this._smQuery.addEventListener("change", this._handleViewportChange);
|
|
7638
7431
|
Promise.resolve().then(() => {
|
|
@@ -7901,10 +7694,10 @@ __decorate([property({
|
|
|
7901
7694
|
NLDDPopover = _NLDDPopover = __decorate([customElement("nldd-popover")], NLDDPopover);
|
|
7902
7695
|
//#endregion
|
|
7903
7696
|
//#region src/components/layout/container/container.styles.ts
|
|
7904
|
-
var smMax$18 = unsafeCSS(
|
|
7905
|
-
var mdMin$21 = unsafeCSS(
|
|
7906
|
-
var mdMax$14 = unsafeCSS(
|
|
7907
|
-
var lgMin$15 = unsafeCSS(
|
|
7697
|
+
var smMax$18 = unsafeCSS(queryBreakpoints.smMax);
|
|
7698
|
+
var mdMin$21 = unsafeCSS(queryBreakpoints.mdMin);
|
|
7699
|
+
var mdMax$14 = unsafeCSS(queryBreakpoints.mdMax);
|
|
7700
|
+
var lgMin$15 = unsafeCSS(queryBreakpoints.lgMin);
|
|
7908
7701
|
var containerStyles = css`
|
|
7909
7702
|
:host {
|
|
7910
7703
|
box-sizing: border-box;
|
|
@@ -7919,6 +7712,7 @@ var containerStyles = css`
|
|
|
7919
7712
|
--_container-width: 100%;
|
|
7920
7713
|
--_container-min-width: auto;
|
|
7921
7714
|
--_container-max-width: none;
|
|
7715
|
+
--_container-min-height: auto;
|
|
7922
7716
|
--_container-justify-content: initial;
|
|
7923
7717
|
--_container-justify-items: initial;
|
|
7924
7718
|
--_container-align-items: initial;
|
|
@@ -7981,6 +7775,7 @@ var containerStyles = css`
|
|
|
7981
7775
|
.container {
|
|
7982
7776
|
container-type: inline-size;
|
|
7983
7777
|
box-sizing: border-box;
|
|
7778
|
+
min-height: var(--_container-min-height);
|
|
7984
7779
|
padding-top: var(--_container-padding-top);
|
|
7985
7780
|
padding-right: var(--_container-padding-right);
|
|
7986
7781
|
padding-bottom: var(--_container-padding-bottom);
|
|
@@ -8033,6 +7828,11 @@ var containerStyles = css`
|
|
|
8033
7828
|
container-type: normal;
|
|
8034
7829
|
}
|
|
8035
7830
|
|
|
7831
|
+
:host([min-height]) .container {
|
|
7832
|
+
display: flex;
|
|
7833
|
+
flex-direction: column;
|
|
7834
|
+
}
|
|
7835
|
+
|
|
8036
7836
|
|
|
8037
7837
|
/* # Inner — actual layout */
|
|
8038
7838
|
|
|
@@ -8046,6 +7846,12 @@ var containerStyles = css`
|
|
|
8046
7846
|
gap: var(--_container-gap);
|
|
8047
7847
|
}
|
|
8048
7848
|
|
|
7849
|
+
:host([min-height]) .container__inner {
|
|
7850
|
+
flex-grow: 1;
|
|
7851
|
+
flex-shrink: 1;
|
|
7852
|
+
flex-basis: auto;
|
|
7853
|
+
}
|
|
7854
|
+
|
|
8049
7855
|
:host([layout="row"]) .container__inner {
|
|
8050
7856
|
flex-direction: row;
|
|
8051
7857
|
}
|
|
@@ -8332,6 +8138,7 @@ function spacingToValue(value, element, attribute) {
|
|
|
8332
8138
|
* @attr {string} width - '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.
|
|
8333
8139
|
* @attr {string} min-width - Minimum width as a CSS length (e.g. '280px')
|
|
8334
8140
|
* @attr {string} max-width - Maximum width as a CSS length (e.g. '480px')
|
|
8141
|
+
* @attr {string} min-height - Minimum height as a CSS length (e.g. '240px'), padding included. Reserves the room that content still on its way will take; vertical-alignment then places the children within it.
|
|
8335
8142
|
* @attr {string} gap - Gap between children. One distance for all of them, so it fits children of one kind; for a stack of different kinds, space each seam with nldd-spacer instead.
|
|
8336
8143
|
* @attr {string} sm-gap - Gap at sm breakpoint
|
|
8337
8144
|
* @attr {string} md-gap - Gap at md breakpoint
|
|
@@ -8404,6 +8211,7 @@ var NLDDContainer = (_NLDDContainer = class NLDDContainer extends LitElement {
|
|
|
8404
8211
|
this.width = "";
|
|
8405
8212
|
this.minWidth = "";
|
|
8406
8213
|
this.maxWidth = "";
|
|
8214
|
+
this.minHeight = "";
|
|
8407
8215
|
this.gap = void 0;
|
|
8408
8216
|
this.smGap = void 0;
|
|
8409
8217
|
this.mdGap = void 0;
|
|
@@ -8472,6 +8280,8 @@ var NLDDContainer = (_NLDDContainer = class NLDDContainer extends LitElement {
|
|
|
8472
8280
|
else this.style.removeProperty("--_container-min-width");
|
|
8473
8281
|
if (this.maxWidth) this.style.setProperty("--_container-max-width", this.maxWidth);
|
|
8474
8282
|
else this.style.removeProperty("--_container-max-width");
|
|
8283
|
+
if (this.minHeight) this.style.setProperty("--_container-min-height", this.minHeight);
|
|
8284
|
+
else this.style.removeProperty("--_container-min-height");
|
|
8475
8285
|
}
|
|
8476
8286
|
writeCustomProperties() {
|
|
8477
8287
|
const setProp = (name, value) => {
|
|
@@ -8596,6 +8406,11 @@ __decorate([property({
|
|
|
8596
8406
|
reflect: true,
|
|
8597
8407
|
attribute: "max-width"
|
|
8598
8408
|
})], NLDDContainer.prototype, "maxWidth", void 0);
|
|
8409
|
+
__decorate([property({
|
|
8410
|
+
type: String,
|
|
8411
|
+
reflect: true,
|
|
8412
|
+
attribute: "min-height"
|
|
8413
|
+
})], NLDDContainer.prototype, "minHeight", void 0);
|
|
8599
8414
|
__decorate([property({
|
|
8600
8415
|
type: String,
|
|
8601
8416
|
reflect: true
|
|
@@ -8827,12 +8642,12 @@ var listStyles = css`
|
|
|
8827
8642
|
|
|
8828
8643
|
:host([appearance^="box"]) {
|
|
8829
8644
|
--_list-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
8830
|
-
--_list-highlight-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
8645
|
+
--_list-highlight-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
8831
8646
|
}
|
|
8832
8647
|
|
|
8833
8648
|
:host([appearance="box-base"]) {
|
|
8834
8649
|
--_list-background-color: var(--semantics-surfaces-base-background-color);
|
|
8835
|
-
--_list-highlight-border-color: var(--semantics-surfaces-base-border-color);
|
|
8650
|
+
--_list-highlight-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
8836
8651
|
}
|
|
8837
8652
|
|
|
8838
8653
|
|
|
@@ -10258,6 +10073,10 @@ var listItemStyles = css`
|
|
|
10258
10073
|
--_list-item-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
10259
10074
|
--context-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
10260
10075
|
--context-content-secondary-color: var(--semantics-list-items-is-selected-content-color);
|
|
10076
|
+
/* A checked control on the gray row takes the content color: the accent
|
|
10077
|
+
can fall under 3:1 against it. */
|
|
10078
|
+
--context-selected-indicator-color: var(--semantics-list-items-is-selected-content-color);
|
|
10079
|
+
--context-selected-contrast-color: var(--semantics-list-items-is-selected-background-color);
|
|
10261
10080
|
}
|
|
10262
10081
|
|
|
10263
10082
|
|
|
@@ -10267,6 +10086,8 @@ var listItemStyles = css`
|
|
|
10267
10086
|
--_list-item-background-color: var(--semantics-list-items-is-selected-background-color);
|
|
10268
10087
|
--context-content-color: var(--semantics-list-items-is-selected-content-color);
|
|
10269
10088
|
--context-content-secondary-color: var(--semantics-list-items-is-selected-content-color);
|
|
10089
|
+
--context-selected-indicator-color: var(--semantics-list-items-is-selected-content-color);
|
|
10090
|
+
--context-selected-contrast-color: var(--semantics-list-items-is-selected-background-color);
|
|
10270
10091
|
}
|
|
10271
10092
|
|
|
10272
10093
|
/* Hover only on hover-capable devices, so a touch that turns into a scroll
|
|
@@ -11600,7 +11421,7 @@ __decorate([state()], NLDDAvatarGroup.prototype, "_total", void 0);
|
|
|
11600
11421
|
NLDDAvatarGroup = __decorate([customElement("nldd-avatar-group")], NLDDAvatarGroup);
|
|
11601
11422
|
//#endregion
|
|
11602
11423
|
//#region src/components/content/identity/identity.styles.ts
|
|
11603
|
-
var smMax$17 = unsafeCSS(
|
|
11424
|
+
var smMax$17 = unsafeCSS(queryBreakpoints.smMax);
|
|
11604
11425
|
var identityStyles = css`
|
|
11605
11426
|
:host {
|
|
11606
11427
|
box-sizing: border-box;
|
|
@@ -11979,7 +11800,7 @@ var baseTheme = EditorView.theme({
|
|
|
11979
11800
|
".cm-line": { padding: "0" },
|
|
11980
11801
|
".cm-cursor, .cm-dropCursor": { borderLeftColor: "var(--semantics-content-color)" },
|
|
11981
11802
|
".cm-placeholder": { color: "var(--semantics-input-fields-placeholder-color)" },
|
|
11982
|
-
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: "
|
|
11803
|
+
"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: "var(--semantics-text-selection-background-color)" },
|
|
11983
11804
|
".cm-gutters": {
|
|
11984
11805
|
border: "none",
|
|
11985
11806
|
backgroundColor: "transparent",
|
|
@@ -12140,8 +11961,8 @@ var codeViewerStyles = css`
|
|
|
12140
11961
|
:host {
|
|
12141
11962
|
--_code-viewer-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
12142
11963
|
--_code-viewer-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
12143
|
-
--_code-viewer-border-width: var(--semantics-surfaces-border-width);
|
|
12144
|
-
--_code-viewer-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
11964
|
+
--_code-viewer-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
11965
|
+
--_code-viewer-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
12145
11966
|
--_code-viewer-border-shadow: inset 0 0 0 var(--_code-viewer-border-width) var(--_code-viewer-border-color);
|
|
12146
11967
|
--_code-viewer-block-padding: var(--primitives-space-16);
|
|
12147
11968
|
--_code-viewer-inline-padding: var(--primitives-space-16);
|
|
@@ -12171,7 +11992,7 @@ var codeViewerStyles = css`
|
|
|
12171
11992
|
|
|
12172
11993
|
:host([appearance="box-base"]) {
|
|
12173
11994
|
--_code-viewer-background-color: var(--semantics-surfaces-base-background-color);
|
|
12174
|
-
--_code-viewer-border-color: var(--semantics-surfaces-base-border-color);
|
|
11995
|
+
--_code-viewer-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
12175
11996
|
}
|
|
12176
11997
|
|
|
12177
11998
|
:host([appearance="simple"]) {
|
|
@@ -12692,7 +12513,7 @@ var imageStyles = css`
|
|
|
12692
12513
|
--_image-error-padding: var(--primitives-space-8);
|
|
12693
12514
|
--_image-error-gap: var(--primitives-space-2);
|
|
12694
12515
|
--_image-caption-row-gap: var(--primitives-space-8);
|
|
12695
|
-
--_image-pending-background-color: var(--
|
|
12516
|
+
--_image-pending-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-150));
|
|
12696
12517
|
--_image-empty-icon-size: var(--primitives-space-32);
|
|
12697
12518
|
--_image-empty-icon-color: light-dark(var(--primitives-color-neutral-450), var(--primitives-color-neutral-550));
|
|
12698
12519
|
--_image-object-fit: cover;
|
|
@@ -14240,10 +14061,10 @@ __decorate([property({
|
|
|
14240
14061
|
NLDDText = __decorate([customElement("nldd-text")], NLDDText);
|
|
14241
14062
|
//#endregion
|
|
14242
14063
|
//#region src/components/content/title/title.styles.ts
|
|
14243
|
-
var smMax$16 = unsafeCSS(
|
|
14244
|
-
var mdMin$20 = unsafeCSS(
|
|
14245
|
-
var mdMax$13 = unsafeCSS(
|
|
14246
|
-
var lgMin$14 = unsafeCSS(
|
|
14064
|
+
var smMax$16 = unsafeCSS(queryBreakpoints.smMax);
|
|
14065
|
+
var mdMin$20 = unsafeCSS(queryBreakpoints.mdMin);
|
|
14066
|
+
var mdMax$13 = unsafeCSS(queryBreakpoints.mdMax);
|
|
14067
|
+
var lgMin$14 = unsafeCSS(queryBreakpoints.lgMin);
|
|
14247
14068
|
var titleStyles = css`
|
|
14248
14069
|
:host {
|
|
14249
14070
|
box-sizing: border-box;
|
|
@@ -15453,7 +15274,7 @@ var NLDDForm = class extends HTMLElement {
|
|
|
15453
15274
|
if (!customElements.get("nldd-form")) customElements.define("nldd-form", NLDDForm);
|
|
15454
15275
|
//#endregion
|
|
15455
15276
|
//#region src/components/forms/form-actions/form-actions.styles.ts
|
|
15456
|
-
var mdMin$19 = unsafeCSS(
|
|
15277
|
+
var mdMin$19 = unsafeCSS(queryBreakpoints.mdMin);
|
|
15457
15278
|
var formActionsStyles = css`
|
|
15458
15279
|
:host {
|
|
15459
15280
|
box-sizing: border-box;
|
|
@@ -15606,7 +15427,7 @@ function setOwnedAttribute(el, name, value, applied) {
|
|
|
15606
15427
|
}
|
|
15607
15428
|
//#endregion
|
|
15608
15429
|
//#region src/components/forms/form-field/form-field.styles.ts
|
|
15609
|
-
var mdMin$18 = unsafeCSS(
|
|
15430
|
+
var mdMin$18 = unsafeCSS(queryBreakpoints.mdMin);
|
|
15610
15431
|
var formFieldStyles = css`
|
|
15611
15432
|
:host {
|
|
15612
15433
|
box-sizing: border-box;
|
|
@@ -16821,17 +16642,17 @@ var checkboxStyles = css`
|
|
|
16821
16642
|
--_checkbox-border-width: var(--primitives-border-width-regular);
|
|
16822
16643
|
--_checkbox-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
16823
16644
|
--_checkbox-background-color: var(--semantics-surfaces-base-background-color);
|
|
16824
|
-
--_checkbox-is-selected-border-color: var(--semantics-controls-is-
|
|
16825
|
-
--_checkbox-is-selected-background-color: var(--semantics-controls-is-
|
|
16826
|
-
--_checkbox-is-selected-icon-color: var(--semantics-controls-is-
|
|
16645
|
+
--_checkbox-is-selected-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
16646
|
+
--_checkbox-is-selected-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
16647
|
+
--_checkbox-is-selected-icon-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
16827
16648
|
--_checkbox-is-hovered-border-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-700));
|
|
16828
|
-
--_checkbox-is-selected-is-hovered-border-color: var(--semantics-controls-is-
|
|
16829
|
-
--_checkbox-is-selected-is-hovered-background-color: var(--semantics-controls-is-
|
|
16830
|
-
--_checkbox-is-selected-is-hovered-icon-color: var(--semantics-controls-is-
|
|
16649
|
+
--_checkbox-is-selected-is-hovered-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
|
|
16650
|
+
--_checkbox-is-selected-is-hovered-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
|
|
16651
|
+
--_checkbox-is-selected-is-hovered-icon-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
16831
16652
|
--_checkbox-is-active-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-750));
|
|
16832
|
-
--_checkbox-is-selected-is-active-border-color: var(--semantics-controls-is-
|
|
16833
|
-
--_checkbox-is-selected-is-active-background-color: var(--semantics-controls-is-
|
|
16834
|
-
--_checkbox-is-selected-is-active-icon-color: var(--semantics-controls-is-
|
|
16653
|
+
--_checkbox-is-selected-is-active-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
|
|
16654
|
+
--_checkbox-is-selected-is-active-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
|
|
16655
|
+
--_checkbox-is-selected-is-active-icon-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
16835
16656
|
|
|
16836
16657
|
display: inline-flex;
|
|
16837
16658
|
position: relative;
|
|
@@ -16849,6 +16670,33 @@ var checkboxStyles = css`
|
|
|
16849
16670
|
}
|
|
16850
16671
|
|
|
16851
16672
|
|
|
16673
|
+
/* ## Colors */
|
|
16674
|
+
|
|
16675
|
+
:host([color="inherit"]) {
|
|
16676
|
+
--_checkbox-border-color: currentColor;
|
|
16677
|
+
--_checkbox-background-color: transparent;
|
|
16678
|
+
--_checkbox-is-hovered-border-color: currentColor;
|
|
16679
|
+
--_checkbox-is-active-border-color: currentColor;
|
|
16680
|
+
--_checkbox-is-selected-border-color: currentColor;
|
|
16681
|
+
--_checkbox-is-selected-background-color: currentColor;
|
|
16682
|
+
--_checkbox-is-selected-icon-color: currentColor;
|
|
16683
|
+
--_checkbox-is-selected-is-hovered-border-color: currentColor;
|
|
16684
|
+
--_checkbox-is-selected-is-hovered-background-color: currentColor;
|
|
16685
|
+
--_checkbox-is-selected-is-hovered-icon-color: currentColor;
|
|
16686
|
+
--_checkbox-is-selected-is-active-border-color: currentColor;
|
|
16687
|
+
--_checkbox-is-selected-is-active-background-color: currentColor;
|
|
16688
|
+
--_checkbox-is-selected-is-active-icon-color: currentColor;
|
|
16689
|
+
}
|
|
16690
|
+
|
|
16691
|
+
:host([color="inherit"]) .checkbox__box {
|
|
16692
|
+
color: inherit;
|
|
16693
|
+
}
|
|
16694
|
+
|
|
16695
|
+
:host([color="inherit"]) :is(.checkbox__check-icon, .checkbox__indeterminate-icon) {
|
|
16696
|
+
color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
16697
|
+
}
|
|
16698
|
+
|
|
16699
|
+
|
|
16852
16700
|
/* # Elements */
|
|
16853
16701
|
|
|
16854
16702
|
.checkbox__input {
|
|
@@ -16998,9 +16846,15 @@ function checkboxTemplate(component) {
|
|
|
16998
16846
|
/**
|
|
16999
16847
|
* Nederlandse Digitale Dienst Checkbox Component (Lit + TypeScript)
|
|
17000
16848
|
*
|
|
16849
|
+
* On a selected row of nldd-list-item a checked control takes the colors of the
|
|
16850
|
+
* row: the row sets `--context-selected-indicator-color` and
|
|
16851
|
+
* `--context-selected-contrast-color`, because the accent can fall below 3:1 on
|
|
16852
|
+
* the gray of a selected row.
|
|
16853
|
+
*
|
|
17001
16854
|
* @element nldd-checkbox
|
|
17002
16855
|
* @attr {boolean} checked - Checked state
|
|
17003
16856
|
* @attr {boolean} disabled - Disabled state
|
|
16857
|
+
* @attr {'inherit'} color - '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.
|
|
17004
16858
|
* @attr {boolean} no-tab - 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.
|
|
17005
16859
|
* @attr {boolean} decorative - Renders the box without the input: no focus, no
|
|
17006
16860
|
* name/value, nothing announced. For a control that owns the state elsewhere,
|
|
@@ -17027,6 +16881,7 @@ var _NLDDCheckbox = class NLDDCheckbox extends DescribedBy(FormAssociated(LitEle
|
|
|
17027
16881
|
this.indeterminate = false;
|
|
17028
16882
|
this.value = "on";
|
|
17029
16883
|
this.name = "";
|
|
16884
|
+
this.color = "";
|
|
17030
16885
|
this.accessibleLabel = "";
|
|
17031
16886
|
this.required = false;
|
|
17032
16887
|
this.invalid = false;
|
|
@@ -17110,6 +16965,10 @@ __decorate([property({
|
|
|
17110
16965
|
reflect: true,
|
|
17111
16966
|
converter: reflectNonDefault("")
|
|
17112
16967
|
})], NLDDCheckbox.prototype, "name", void 0);
|
|
16968
|
+
__decorate([property({
|
|
16969
|
+
reflect: true,
|
|
16970
|
+
converter: reflectNonDefault("")
|
|
16971
|
+
})], NLDDCheckbox.prototype, "color", void 0);
|
|
17113
16972
|
__decorate([property({
|
|
17114
16973
|
type: String,
|
|
17115
16974
|
attribute: "accessible-label"
|
|
@@ -17154,6 +17013,13 @@ var checkboxFieldStyles = css`
|
|
|
17154
17013
|
}
|
|
17155
17014
|
|
|
17156
17015
|
|
|
17016
|
+
/* ## Colors */
|
|
17017
|
+
|
|
17018
|
+
:host([color="inherit"]) .checkbox-field__label {
|
|
17019
|
+
color: inherit;
|
|
17020
|
+
}
|
|
17021
|
+
|
|
17022
|
+
|
|
17157
17023
|
/* # Elements */
|
|
17158
17024
|
|
|
17159
17025
|
.checkbox-field__control {
|
|
@@ -17185,6 +17051,7 @@ function checkboxFieldTemplate(component) {
|
|
|
17185
17051
|
>
|
|
17186
17052
|
<div class="checkbox-field__control">
|
|
17187
17053
|
<nldd-checkbox
|
|
17054
|
+
color=${component.color || nothing}
|
|
17188
17055
|
?invalid=${component.invalid}
|
|
17189
17056
|
?required=${component.required}
|
|
17190
17057
|
?checked=${component.checked}
|
|
@@ -17215,6 +17082,7 @@ function checkboxFieldTemplate(component) {
|
|
|
17215
17082
|
* @attr {boolean} checked - Checked state
|
|
17216
17083
|
* @attr {boolean} indeterminate - Indeterminate state
|
|
17217
17084
|
* @attr {boolean} disabled - Disabled state
|
|
17085
|
+
* @attr {'inherit'} color - '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.
|
|
17218
17086
|
* @attr {string} value - Value for form submission
|
|
17219
17087
|
* @attr {string} name - Name for form submission
|
|
17220
17088
|
* @attr {string} label - Label text for the checkbox
|
|
@@ -17232,6 +17100,7 @@ var _NLDDCheckboxField = class NLDDCheckboxField extends DescribedBy(FormAssocia
|
|
|
17232
17100
|
this.disabled = false;
|
|
17233
17101
|
this.value = "on";
|
|
17234
17102
|
this.name = "";
|
|
17103
|
+
this.color = "";
|
|
17235
17104
|
this.label = "";
|
|
17236
17105
|
this.required = false;
|
|
17237
17106
|
this.invalid = false;
|
|
@@ -17302,6 +17171,10 @@ __decorate([property({
|
|
|
17302
17171
|
reflect: true,
|
|
17303
17172
|
converter: reflectNonDefault("")
|
|
17304
17173
|
})], NLDDCheckboxField.prototype, "name", void 0);
|
|
17174
|
+
__decorate([property({
|
|
17175
|
+
reflect: true,
|
|
17176
|
+
converter: reflectNonDefault("")
|
|
17177
|
+
})], NLDDCheckboxField.prototype, "color", void 0);
|
|
17305
17178
|
__decorate([property({ type: String })], NLDDCheckboxField.prototype, "label", void 0);
|
|
17306
17179
|
__decorate([property({
|
|
17307
17180
|
type: Boolean,
|
|
@@ -19053,6 +18926,7 @@ var codeEditorStyles = css`
|
|
|
19053
18926
|
|
|
19054
18927
|
:host {
|
|
19055
18928
|
--_code-editor-caret-width: var(--primitives-border-width-regular);
|
|
18929
|
+
--_code-editor-caret-color: var(--components-code-editor-caret-color);
|
|
19056
18930
|
--_code-editor-corner-radius: 0;
|
|
19057
18931
|
--_code-editor-background-color: transparent;
|
|
19058
18932
|
--_code-editor-border-color: transparent;
|
|
@@ -19153,7 +19027,7 @@ var codeEditorStyles = css`
|
|
|
19153
19027
|
/* Accent caret. The doubled class is purely for specificity — it outweighs
|
|
19154
19028
|
CodeMirror's theme cursor color without depending on an attribute. */
|
|
19155
19029
|
:host .cm-cursor.cm-cursor {
|
|
19156
|
-
border-left-color: var(--
|
|
19030
|
+
border-left-color: var(--_code-editor-caret-color);
|
|
19157
19031
|
border-left-width: var(--_code-editor-caret-width);
|
|
19158
19032
|
}
|
|
19159
19033
|
|
|
@@ -20408,7 +20282,7 @@ function resolveDateBound(raw, today = /* @__PURE__ */ new Date()) {
|
|
|
20408
20282
|
}
|
|
20409
20283
|
//#endregion
|
|
20410
20284
|
//#region src/components/inputs/date-field/date-field.styles.ts
|
|
20411
|
-
var mdMin$17 = unsafeCSS(
|
|
20285
|
+
var mdMin$17 = unsafeCSS(queryBreakpoints.mdMin);
|
|
20412
20286
|
var dateFieldStyles = css`
|
|
20413
20287
|
:host {
|
|
20414
20288
|
box-sizing: border-box;
|
|
@@ -21143,12 +21017,17 @@ var datePickerStyles = css`
|
|
|
21143
21017
|
--_date-picker-day-indicator-inset: var(--primitives-space-2);
|
|
21144
21018
|
--_date-picker-day-indicator-size: calc(var(--_date-picker-day-size) - var(--_date-picker-day-indicator-inset) * 2);
|
|
21145
21019
|
--_date-picker-day-indicator-corner-radius: var(--_date-picker-day-corner-radius);
|
|
21146
|
-
--_date-picker-day-is-in-range-background-color: var(--
|
|
21020
|
+
--_date-picker-day-is-in-range-background-color: var(--components-date-picker-day-is-in-range-background-color);
|
|
21021
|
+
--_date-picker-day-is-in-range-is-hovered-background-color: var(--components-date-picker-day-is-in-range-is-hovered-background-color);
|
|
21147
21022
|
--_date-picker-day-is-in-range-content-color: var(--semantics-content-color);
|
|
21148
21023
|
--_date-picker-day-is-today-border-color: light-dark(var(--primitives-color-neutral-250), var(--primitives-color-neutral-400));
|
|
21024
|
+
--_date-picker-day-is-today-is-in-range-border-color: var(--components-date-picker-day-is-today-is-in-range-border-color);
|
|
21025
|
+
--_date-picker-day-is-today-is-selected-border-color: var(--components-date-picker-day-is-today-is-selected-border-color);
|
|
21149
21026
|
--_date-picker-day-is-hovered-background-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-150));
|
|
21150
|
-
--_date-picker-day-is-selected-background-color: var(--semantics-controls-is-
|
|
21151
|
-
--_date-picker-day-is-selected-content-color: var(--semantics-controls-is-
|
|
21027
|
+
--_date-picker-day-is-selected-background-color: var(--semantics-controls-is-selected-indicator-color);
|
|
21028
|
+
--_date-picker-day-is-selected-content-color: var(--semantics-controls-is-selected-contrast-color);
|
|
21029
|
+
--_date-picker-day-is-selected-is-hovered-background-color: var(--semantics-controls-is-selected-is-hovered-indicator-color);
|
|
21030
|
+
--_date-picker-day-is-selected-is-hovered-content-color: var(--semantics-controls-is-selected-is-hovered-contrast-color);
|
|
21152
21031
|
--_date-picker-day-is-outside-month-content-color: var(--semantics-content-secondary-color);
|
|
21153
21032
|
--_date-picker-day-is-unavailable-content-color: var(--semantics-content-secondary-color);
|
|
21154
21033
|
|
|
@@ -21369,6 +21248,14 @@ var datePickerStyles = css`
|
|
|
21369
21248
|
border: var(--primitives-border-width-regular) solid var(--_date-picker-day-is-today-border-color);
|
|
21370
21249
|
}
|
|
21371
21250
|
|
|
21251
|
+
.date-picker__day.is-today.is-in-range .date-picker__day-indicator {
|
|
21252
|
+
border-color: var(--_date-picker-day-is-today-is-in-range-border-color);
|
|
21253
|
+
}
|
|
21254
|
+
|
|
21255
|
+
.date-picker__day.is-today.is-selected .date-picker__day-indicator {
|
|
21256
|
+
border-color: var(--_date-picker-day-is-today-is-selected-border-color);
|
|
21257
|
+
}
|
|
21258
|
+
|
|
21372
21259
|
/* Touch reports a hover after a tap and keeps it until you touch something
|
|
21373
21260
|
else, so a day stays lit long after you picked it. Only pointers that can
|
|
21374
21261
|
really hover. */
|
|
@@ -21376,6 +21263,10 @@ var datePickerStyles = css`
|
|
|
21376
21263
|
.date-picker__day:hover .date-picker__day-indicator {
|
|
21377
21264
|
background-color: var(--_date-picker-day-is-hovered-background-color);
|
|
21378
21265
|
}
|
|
21266
|
+
|
|
21267
|
+
.date-picker__day.is-in-range:hover .date-picker__day-indicator {
|
|
21268
|
+
background-color: var(--_date-picker-day-is-in-range-is-hovered-background-color);
|
|
21269
|
+
}
|
|
21379
21270
|
}
|
|
21380
21271
|
|
|
21381
21272
|
/* :focus, not :focus-visible. Arrow keys move focus programmatically, and the
|
|
@@ -21410,13 +21301,20 @@ var datePickerStyles = css`
|
|
|
21410
21301
|
color: var(--_date-picker-day-is-selected-content-color);
|
|
21411
21302
|
}
|
|
21412
21303
|
|
|
21413
|
-
|
|
21414
|
-
outweigh the plain selected rule. */
|
|
21415
|
-
.date-picker__day.is-selected .date-picker__day-indicator,
|
|
21416
|
-
.date-picker__day.is-selected:hover .date-picker__day-indicator {
|
|
21304
|
+
.date-picker__day.is-selected .date-picker__day-indicator {
|
|
21417
21305
|
background-color: var(--_date-picker-day-is-selected-background-color);
|
|
21418
21306
|
}
|
|
21419
21307
|
|
|
21308
|
+
@media (hover: hover) {
|
|
21309
|
+
.date-picker__day.is-selected:hover {
|
|
21310
|
+
color: var(--_date-picker-day-is-selected-is-hovered-content-color);
|
|
21311
|
+
}
|
|
21312
|
+
|
|
21313
|
+
.date-picker__day.is-selected:hover .date-picker__day-indicator {
|
|
21314
|
+
background-color: var(--_date-picker-day-is-selected-is-hovered-background-color);
|
|
21315
|
+
}
|
|
21316
|
+
}
|
|
21317
|
+
|
|
21420
21318
|
.date-picker__day.is-unavailable {
|
|
21421
21319
|
color: var(--_date-picker-day-is-unavailable-content-color);
|
|
21422
21320
|
text-decoration: line-through;
|
|
@@ -21967,7 +21865,7 @@ var NLDDDatePicker = (_NLDDDatePicker = class NLDDDatePicker extends DescribedBy
|
|
|
21967
21865
|
super.connectedCallback();
|
|
21968
21866
|
if (!this._focused) this._focused = this._initialFocus();
|
|
21969
21867
|
if (!this._view) this._view = firstOfMonth(this._focused);
|
|
21970
|
-
this._stackedQuery = window.matchMedia(`(max-width: ${
|
|
21868
|
+
this._stackedQuery = window.matchMedia(`(max-width: ${queryBreakpoints.smMax}), (pointer: coarse)`);
|
|
21971
21869
|
this._stacked = this._stackedQuery.matches;
|
|
21972
21870
|
this._stackedQuery.addEventListener("change", this._handleStackedChange);
|
|
21973
21871
|
}
|
|
@@ -23480,8 +23378,8 @@ var fileFieldStyles = css`
|
|
|
23480
23378
|
--_file-field-clear-button-padding-right: calc((var(--_file-field-min-size) - var(--semantics-controls-sm-min-size)) / 2);
|
|
23481
23379
|
--_file-field-validation-icon-area-padding-right: var(--_file-field-inline-padding);
|
|
23482
23380
|
--_file-field-validation-icon-size: var(--semantics-input-fields-md-validation-icon-size);
|
|
23483
|
-
--_file-field-highlight-border-width: var(--semantics-surfaces-border-width);
|
|
23484
|
-
--_file-field-highlight-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
23381
|
+
--_file-field-highlight-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
23382
|
+
--_file-field-highlight-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
23485
23383
|
--_file-field-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
23486
23384
|
|
|
23487
23385
|
${inheritedTextReset}
|
|
@@ -25084,17 +24982,17 @@ var radioButtonStyles = css`
|
|
|
25084
24982
|
--_radio-button-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
25085
24983
|
--_radio-button-background-color: var(--semantics-surfaces-base-background-color);
|
|
25086
24984
|
--_radio-button-is-selected-inner-shape-border-width: var(--primitives-border-width-regular);
|
|
25087
|
-
--_radio-button-is-selected-inner-shape-border-color: var(--semantics-controls-is-
|
|
25088
|
-
--_radio-button-is-selected-border-color: var(--semantics-controls-is-
|
|
25089
|
-
--_radio-button-is-selected-background-color: var(--semantics-controls-is-
|
|
24985
|
+
--_radio-button-is-selected-inner-shape-border-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
24986
|
+
--_radio-button-is-selected-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
24987
|
+
--_radio-button-is-selected-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
25090
24988
|
--_radio-button-is-hovered-border-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-700));
|
|
25091
|
-
--_radio-button-is-selected-is-hovered-border-color: var(--semantics-controls-is-
|
|
25092
|
-
--_radio-button-is-selected-is-hovered-background-color: var(--semantics-controls-is-
|
|
25093
|
-
--_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--semantics-controls-is-
|
|
24989
|
+
--_radio-button-is-selected-is-hovered-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
|
|
24990
|
+
--_radio-button-is-selected-is-hovered-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-hovered-indicator-color));
|
|
24991
|
+
--_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
25094
24992
|
--_radio-button-is-active-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-750));
|
|
25095
|
-
--_radio-button-is-selected-is-active-border-color: var(--semantics-controls-is-
|
|
25096
|
-
--_radio-button-is-selected-is-active-background-color: var(--semantics-controls-is-
|
|
25097
|
-
--_radio-button-is-selected-is-active-inner-shape-border-color: var(--semantics-controls-is-
|
|
24993
|
+
--_radio-button-is-selected-is-active-border-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
|
|
24994
|
+
--_radio-button-is-selected-is-active-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-is-active-indicator-color));
|
|
24995
|
+
--_radio-button-is-selected-is-active-inner-shape-border-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
25098
24996
|
|
|
25099
24997
|
display: inline-flex;
|
|
25100
24998
|
position: relative;
|
|
@@ -25112,6 +25010,25 @@ var radioButtonStyles = css`
|
|
|
25112
25010
|
}
|
|
25113
25011
|
|
|
25114
25012
|
|
|
25013
|
+
/* ## Colors */
|
|
25014
|
+
|
|
25015
|
+
:host([color="inherit"]) {
|
|
25016
|
+
--_radio-button-border-color: currentColor;
|
|
25017
|
+
--_radio-button-background-color: transparent;
|
|
25018
|
+
--_radio-button-is-hovered-border-color: currentColor;
|
|
25019
|
+
--_radio-button-is-active-border-color: currentColor;
|
|
25020
|
+
--_radio-button-is-selected-border-color: currentColor;
|
|
25021
|
+
--_radio-button-is-selected-background-color: currentColor;
|
|
25022
|
+
--_radio-button-is-selected-inner-shape-border-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
25023
|
+
--_radio-button-is-selected-is-hovered-border-color: currentColor;
|
|
25024
|
+
--_radio-button-is-selected-is-hovered-background-color: currentColor;
|
|
25025
|
+
--_radio-button-is-selected-is-hovered-inner-shape-border-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
25026
|
+
--_radio-button-is-selected-is-active-border-color: currentColor;
|
|
25027
|
+
--_radio-button-is-selected-is-active-background-color: currentColor;
|
|
25028
|
+
--_radio-button-is-selected-is-active-inner-shape-border-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
25029
|
+
}
|
|
25030
|
+
|
|
25031
|
+
|
|
25115
25032
|
/* # Elements */
|
|
25116
25033
|
|
|
25117
25034
|
.radio-button__outer-shape {
|
|
@@ -25363,9 +25280,15 @@ var RadioGrouping = class RadioGrouping {
|
|
|
25363
25280
|
* <nldd-radio-button name="options" value="2" accessible-label="Optie 2"></nldd-radio-button>
|
|
25364
25281
|
* </fieldset>
|
|
25365
25282
|
*
|
|
25283
|
+
* On a selected row of nldd-list-item a checked control takes the colors of the
|
|
25284
|
+
* row: the row sets `--context-selected-indicator-color` and
|
|
25285
|
+
* `--context-selected-contrast-color`, because the accent can fall below 3:1 on
|
|
25286
|
+
* the gray of a selected row.
|
|
25287
|
+
*
|
|
25366
25288
|
* @element nldd-radio-button
|
|
25367
25289
|
* @attr {boolean} checked - Checked state
|
|
25368
25290
|
* @attr {boolean} disabled - Disabled state
|
|
25291
|
+
* @attr {'inherit'} color - '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.
|
|
25369
25292
|
* @attr {boolean} no-tab - 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.
|
|
25370
25293
|
* @attr {boolean} decorative - Renders the shape only: no role, no focus, no
|
|
25371
25294
|
* name/value, nothing announced. For a control that owns the state elsewhere,
|
|
@@ -25393,6 +25316,7 @@ var _NLDDRadioButton = class NLDDRadioButton extends DescribedBy(FormAssociated(
|
|
|
25393
25316
|
this.focusRing = false;
|
|
25394
25317
|
this.name = "";
|
|
25395
25318
|
this.value = "";
|
|
25319
|
+
this.color = "";
|
|
25396
25320
|
this.accessibleLabel = "";
|
|
25397
25321
|
this.invalid = false;
|
|
25398
25322
|
this._grouping = new RadioGrouping(this);
|
|
@@ -25547,6 +25471,10 @@ __decorate([property({
|
|
|
25547
25471
|
converter: reflectNonDefault("")
|
|
25548
25472
|
})], NLDDRadioButton.prototype, "name", void 0);
|
|
25549
25473
|
__decorate([property({ type: String })], NLDDRadioButton.prototype, "value", void 0);
|
|
25474
|
+
__decorate([property({
|
|
25475
|
+
reflect: true,
|
|
25476
|
+
converter: reflectNonDefault("")
|
|
25477
|
+
})], NLDDRadioButton.prototype, "color", void 0);
|
|
25550
25478
|
__decorate([property({
|
|
25551
25479
|
type: String,
|
|
25552
25480
|
attribute: "accessible-label"
|
|
@@ -25594,6 +25522,13 @@ var radioButtonFieldStyles = css`
|
|
|
25594
25522
|
}
|
|
25595
25523
|
|
|
25596
25524
|
|
|
25525
|
+
/* ## Colors */
|
|
25526
|
+
|
|
25527
|
+
:host([color="inherit"]) .radio-button-field__label {
|
|
25528
|
+
color: inherit;
|
|
25529
|
+
}
|
|
25530
|
+
|
|
25531
|
+
|
|
25597
25532
|
/* # Elements */
|
|
25598
25533
|
|
|
25599
25534
|
.radio-button-field__control {
|
|
@@ -25631,6 +25566,7 @@ function radioButtonFieldTemplate(component) {
|
|
|
25631
25566
|
>
|
|
25632
25567
|
<div class="radio-button-field__control">
|
|
25633
25568
|
<nldd-radio-button
|
|
25569
|
+
color=${component.color || nothing}
|
|
25634
25570
|
decorative
|
|
25635
25571
|
?checked=${component.checked}
|
|
25636
25572
|
?disabled=${component.disabled}
|
|
@@ -25668,6 +25604,7 @@ function radioButtonFieldTemplate(component) {
|
|
|
25668
25604
|
* @element nldd-radio-button-field
|
|
25669
25605
|
* @attr {boolean} checked - Checked state
|
|
25670
25606
|
* @attr {boolean} disabled - Disabled state
|
|
25607
|
+
* @attr {'inherit'} color - '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.
|
|
25671
25608
|
* @attr {string} value - Value for form submission
|
|
25672
25609
|
* @attr {string} name - Radio group name for form submission; ties the fields of one group together. Set automatically by nldd-radio-button-group.
|
|
25673
25610
|
* @attr {boolean} required - 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.
|
|
@@ -25685,6 +25622,7 @@ var _NLDDRadioButtonField = class NLDDRadioButtonField extends DescribedBy(FormA
|
|
|
25685
25622
|
this.value = "";
|
|
25686
25623
|
this.name = "";
|
|
25687
25624
|
this.required = false;
|
|
25625
|
+
this.color = "";
|
|
25688
25626
|
this.label = "";
|
|
25689
25627
|
this.invalid = false;
|
|
25690
25628
|
this._groupPosition = null;
|
|
@@ -25835,6 +25773,10 @@ __decorate([property({
|
|
|
25835
25773
|
type: Boolean,
|
|
25836
25774
|
reflect: true
|
|
25837
25775
|
})], NLDDRadioButtonField.prototype, "required", void 0);
|
|
25776
|
+
__decorate([property({
|
|
25777
|
+
reflect: true,
|
|
25778
|
+
converter: reflectNonDefault("")
|
|
25779
|
+
})], NLDDRadioButtonField.prototype, "color", void 0);
|
|
25838
25780
|
__decorate([property({ type: String })], NLDDRadioButtonField.prototype, "label", void 0);
|
|
25839
25781
|
__decorate([property({
|
|
25840
25782
|
type: Boolean,
|
|
@@ -26065,6 +26007,8 @@ var searchFieldStyles = css`
|
|
|
26065
26007
|
--_search-field-text-font: var(--semantics-input-fields-md-text-font);
|
|
26066
26008
|
--_search-field-end-padding-right: calc((var(--_search-field-min-size) - var(--semantics-controls-sm-min-size)) / 2 - var(--semantics-input-fields-border-width));
|
|
26067
26009
|
--_search-field-end-gap: var(--primitives-space-6);
|
|
26010
|
+
--_search-field-shortcut-size: var(--primitives-space-20);
|
|
26011
|
+
--_search-field-shortcut-padding-right: calc((var(--_search-field-min-size) - var(--_search-field-shortcut-size)) / 2 - var(--semantics-input-fields-border-width));
|
|
26068
26012
|
--_search-field-button-focus-z-index: 1;
|
|
26069
26013
|
|
|
26070
26014
|
${inheritedTextReset}
|
|
@@ -26160,6 +26104,22 @@ var searchFieldStyles = css`
|
|
|
26160
26104
|
appearance: none;
|
|
26161
26105
|
}
|
|
26162
26106
|
|
|
26107
|
+
.search-field__shortcut {
|
|
26108
|
+
display: flex;
|
|
26109
|
+
flex-shrink: 0;
|
|
26110
|
+
padding-right: var(--_search-field-shortcut-padding-right);
|
|
26111
|
+
}
|
|
26112
|
+
|
|
26113
|
+
.search-field:focus-within .search-field__shortcut {
|
|
26114
|
+
display: none;
|
|
26115
|
+
}
|
|
26116
|
+
|
|
26117
|
+
@media (any-hover: none) {
|
|
26118
|
+
.search-field__shortcut {
|
|
26119
|
+
display: none;
|
|
26120
|
+
}
|
|
26121
|
+
}
|
|
26122
|
+
|
|
26163
26123
|
.search-field__input::placeholder {
|
|
26164
26124
|
color: var(--semantics-input-fields-placeholder-color);
|
|
26165
26125
|
}
|
|
@@ -26239,6 +26199,17 @@ function searchFieldTemplate(component) {
|
|
|
26239
26199
|
@change=${component._handleChange}
|
|
26240
26200
|
@keydown=${component._handleKeydown}
|
|
26241
26201
|
>
|
|
26202
|
+
${hasShortcut(component) && !component.value ? html`
|
|
26203
|
+
<span class="search-field__shortcut">
|
|
26204
|
+
<nldd-keyboard-shortcut
|
|
26205
|
+
size="sm"
|
|
26206
|
+
keys=${component.shortcut || nothing}
|
|
26207
|
+
mac-keys=${component.shortcutMac || nothing}
|
|
26208
|
+
windows-keys=${component.shortcutWindows || nothing}
|
|
26209
|
+
linux-keys=${component.shortcutLinux || nothing}
|
|
26210
|
+
></nldd-keyboard-shortcut>
|
|
26211
|
+
</span>
|
|
26212
|
+
` : nothing}
|
|
26242
26213
|
</label>
|
|
26243
26214
|
${hasEnd ? html`
|
|
26244
26215
|
<div class="search-field__input-fade"></div>
|
|
@@ -26289,6 +26260,10 @@ var nlddSearchFieldTranslations = {
|
|
|
26289
26260
|
* @attr {string} placeholder - Placeholder text for the input
|
|
26290
26261
|
* @attr {string} accessible-label - Accessible name (aria-label) of the native input. Falls back to `placeholder`, and keeps it when a value is typed. That works while the placeholder names the field ('Zoek een gebruiker'); set this when the placeholder is an example instead ('bijv. Jansen').
|
|
26291
26262
|
* @attr {boolean} show-search-button - When set, shows a search button on the right
|
|
26263
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown at the right end of the empty field, e.g. 'Cmd+K' or '/'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up focusing the field in your app. Hidden while the field has focus or a value, and on touch-only devices. Joins the field's description for screen readers.
|
|
26264
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
26265
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
26266
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
26292
26267
|
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
26293
26268
|
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
26294
26269
|
* @attr {boolean} disabled - Disabled state
|
|
@@ -26308,11 +26283,16 @@ var _NLDDSearchField = class NLDDSearchField extends DescribedBy(FormAssociated(
|
|
|
26308
26283
|
constructor(..._args) {
|
|
26309
26284
|
super(..._args);
|
|
26310
26285
|
this._initialValue = "";
|
|
26286
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
26311
26287
|
this.size = "md";
|
|
26312
26288
|
this.width = "";
|
|
26313
26289
|
this.placeholder = "Zoeken";
|
|
26314
26290
|
this.accessibleLabel = "";
|
|
26315
26291
|
this.showSearchButton = false;
|
|
26292
|
+
this.shortcut = "";
|
|
26293
|
+
this.shortcutMac = "";
|
|
26294
|
+
this.shortcutWindows = "";
|
|
26295
|
+
this.shortcutLinux = "";
|
|
26316
26296
|
this.translations = {};
|
|
26317
26297
|
this.invalid = false;
|
|
26318
26298
|
this.disabled = false;
|
|
@@ -26326,6 +26306,8 @@ var _NLDDSearchField = class NLDDSearchField extends DescribedBy(FormAssociated(
|
|
|
26326
26306
|
this._initialValue = this.value;
|
|
26327
26307
|
}
|
|
26328
26308
|
updated(changed) {
|
|
26309
|
+
const hint = shortcutsAvailable() ? this.shadowRoot?.querySelector(".search-field__shortcut") : null;
|
|
26310
|
+
if (hint) applyDescribedBy(this.describedTarget(), [...this.describedByElements, hint], true);
|
|
26329
26311
|
if (changed.has("width")) {
|
|
26330
26312
|
const w = this.width;
|
|
26331
26313
|
if (w && w !== "full" && CSS.supports("width", w)) this.style.setProperty("--_search-field-width", w);
|
|
@@ -26426,6 +26408,25 @@ __decorate([property({
|
|
|
26426
26408
|
reflect: true,
|
|
26427
26409
|
attribute: "show-search-button"
|
|
26428
26410
|
})], NLDDSearchField.prototype, "showSearchButton", void 0);
|
|
26411
|
+
__decorate([property({
|
|
26412
|
+
reflect: true,
|
|
26413
|
+
converter: reflectNonDefault("")
|
|
26414
|
+
})], NLDDSearchField.prototype, "shortcut", void 0);
|
|
26415
|
+
__decorate([property({
|
|
26416
|
+
reflect: true,
|
|
26417
|
+
attribute: "shortcut-mac",
|
|
26418
|
+
converter: reflectNonDefault("")
|
|
26419
|
+
})], NLDDSearchField.prototype, "shortcutMac", void 0);
|
|
26420
|
+
__decorate([property({
|
|
26421
|
+
reflect: true,
|
|
26422
|
+
attribute: "shortcut-windows",
|
|
26423
|
+
converter: reflectNonDefault("")
|
|
26424
|
+
})], NLDDSearchField.prototype, "shortcutWindows", void 0);
|
|
26425
|
+
__decorate([property({
|
|
26426
|
+
reflect: true,
|
|
26427
|
+
attribute: "shortcut-linux",
|
|
26428
|
+
converter: reflectNonDefault("")
|
|
26429
|
+
})], NLDDSearchField.prototype, "shortcutLinux", void 0);
|
|
26429
26430
|
__decorate([property({ type: Object })], NLDDSearchField.prototype, "translations", void 0);
|
|
26430
26431
|
__decorate([property({
|
|
26431
26432
|
type: Boolean,
|
|
@@ -26809,6 +26810,8 @@ function segmentedControlItemTemplate(component) {
|
|
|
26809
26810
|
const isIcon = component.variant === "icon";
|
|
26810
26811
|
const showPlaceholder = isIcon || component.variant === "icon-and-text";
|
|
26811
26812
|
const labelText = component.text || nothing;
|
|
26813
|
+
const shortcutWords = shortcutLabel(component);
|
|
26814
|
+
const checkboxLabel = (isIcon || shortcutWords) && component.text ? [component.text, shortcutWords].filter(Boolean).join(" ") : nothing;
|
|
26812
26815
|
const content = html`
|
|
26813
26816
|
<span class="segmented-control__item-icon"
|
|
26814
26817
|
aria-hidden=${isIcon ? nothing : "true"}
|
|
@@ -26829,12 +26832,22 @@ function segmentedControlItemTemplate(component) {
|
|
|
26829
26832
|
.checked=${component.selected}
|
|
26830
26833
|
?disabled=${component.disabled}
|
|
26831
26834
|
?required=${component.required}
|
|
26832
|
-
aria-label=${
|
|
26835
|
+
aria-label=${checkboxLabel}
|
|
26833
26836
|
@change=${component._handleChange}
|
|
26834
26837
|
>
|
|
26835
26838
|
${content}
|
|
26836
26839
|
</label>`;
|
|
26837
|
-
if (isIcon && labelText) return html
|
|
26840
|
+
if (isIcon && labelText || hasShortcut(component)) return html`
|
|
26841
|
+
<nldd-tooltip
|
|
26842
|
+
text=${isIcon ? labelText : nothing}
|
|
26843
|
+
shortcut=${component.shortcut || nothing}
|
|
26844
|
+
shortcut-mac=${component.shortcutMac || nothing}
|
|
26845
|
+
shortcut-windows=${component.shortcutWindows || nothing}
|
|
26846
|
+
shortcut-linux=${component.shortcutLinux || nothing}
|
|
26847
|
+
>
|
|
26848
|
+
${label}
|
|
26849
|
+
</nldd-tooltip>
|
|
26850
|
+
`;
|
|
26838
26851
|
return label;
|
|
26839
26852
|
}
|
|
26840
26853
|
//#endregion
|
|
@@ -26872,6 +26885,10 @@ function segmentedControlItemTemplate(component) {
|
|
|
26872
26885
|
* @attr {boolean} disabled - Disabled state
|
|
26873
26886
|
* @attr {string} text - Text label (shown for variant "text" and "icon-and-text"; used as aria-label and tooltip for variant "icon")
|
|
26874
26887
|
* @attr {string} icon - Icon name for nldd-icon
|
|
26888
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name ("Vet Cmd B"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable.
|
|
26889
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
26890
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
26891
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
26875
26892
|
* @attr {string} appearance - Visual style: 'neutral-tinted' | 'neutral-base' (default: 'neutral-tinted'). Set by nldd-segmented-control.
|
|
26876
26893
|
* @attr {string} size - Control size: 'sm' | 'md' | 'lg' (default: 'md'). Set by nldd-segmented-control.
|
|
26877
26894
|
* @attr {string} variant - Content type: 'text' | 'icon' | 'icon-and-text' (default: 'text'). Set by nldd-segmented-control.
|
|
@@ -26900,8 +26917,13 @@ var NLDDSegmentedControlItem = (_NLDDSegmentedControlItem = class NLDDSegmentedC
|
|
|
26900
26917
|
this.groupName = "";
|
|
26901
26918
|
this.text = "";
|
|
26902
26919
|
this.icon = "";
|
|
26920
|
+
this.shortcut = "";
|
|
26921
|
+
this.shortcutMac = "";
|
|
26922
|
+
this.shortcutWindows = "";
|
|
26923
|
+
this.shortcutLinux = "";
|
|
26903
26924
|
this._groupPosition = null;
|
|
26904
26925
|
this._appliedRadioLabel = null;
|
|
26926
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
26905
26927
|
this._onRadioFocus = () => {
|
|
26906
26928
|
this._tooltip?._handleFocusIn();
|
|
26907
26929
|
};
|
|
@@ -26969,7 +26991,8 @@ var NLDDSegmentedControlItem = (_NLDDSegmentedControlItem = class NLDDSegmentedC
|
|
|
26969
26991
|
}
|
|
26970
26992
|
this.setAttribute("role", "radio");
|
|
26971
26993
|
this.setAttribute("aria-checked", String(this.selected));
|
|
26972
|
-
|
|
26994
|
+
const radioLabel = [this.text, shortcutLabel(this)].filter(Boolean).join(" ");
|
|
26995
|
+
this._appliedRadioLabel = setOwnedAttribute(this, "aria-label", radioLabel, this._appliedRadioLabel);
|
|
26973
26996
|
if (this.disabled) this.setAttribute("aria-disabled", "true");
|
|
26974
26997
|
else this.removeAttribute("aria-disabled");
|
|
26975
26998
|
const position = this._groupPosition;
|
|
@@ -27063,6 +27086,25 @@ __decorate([property({
|
|
|
27063
27086
|
converter: reflectNonDefault("")
|
|
27064
27087
|
})], NLDDSegmentedControlItem.prototype, "text", void 0);
|
|
27065
27088
|
__decorate([property({ type: String })], NLDDSegmentedControlItem.prototype, "icon", void 0);
|
|
27089
|
+
__decorate([property({
|
|
27090
|
+
reflect: true,
|
|
27091
|
+
converter: reflectNonDefault("")
|
|
27092
|
+
})], NLDDSegmentedControlItem.prototype, "shortcut", void 0);
|
|
27093
|
+
__decorate([property({
|
|
27094
|
+
reflect: true,
|
|
27095
|
+
attribute: "shortcut-mac",
|
|
27096
|
+
converter: reflectNonDefault("")
|
|
27097
|
+
})], NLDDSegmentedControlItem.prototype, "shortcutMac", void 0);
|
|
27098
|
+
__decorate([property({
|
|
27099
|
+
reflect: true,
|
|
27100
|
+
attribute: "shortcut-windows",
|
|
27101
|
+
converter: reflectNonDefault("")
|
|
27102
|
+
})], NLDDSegmentedControlItem.prototype, "shortcutWindows", void 0);
|
|
27103
|
+
__decorate([property({
|
|
27104
|
+
reflect: true,
|
|
27105
|
+
attribute: "shortcut-linux",
|
|
27106
|
+
converter: reflectNonDefault("")
|
|
27107
|
+
})], NLDDSegmentedControlItem.prototype, "shortcutLinux", void 0);
|
|
27066
27108
|
__decorate([state()], NLDDSegmentedControlItem.prototype, "_groupPosition", void 0);
|
|
27067
27109
|
NLDDSegmentedControlItem = __decorate([customElement("nldd-segmented-control-item")], NLDDSegmentedControlItem);
|
|
27068
27110
|
var NLDDSegmentedControl = (_NLDDSegmentedControl2 = class NLDDSegmentedControl extends FormAssociated(LitElement) {
|
|
@@ -27631,11 +27673,11 @@ var switchStyles = css`
|
|
|
27631
27673
|
--_switch-border-width: var(--primitives-border-width-regular);
|
|
27632
27674
|
--_switch-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
27633
27675
|
--_switch-background-color: var(--semantics-surfaces-base-background-color);
|
|
27634
|
-
--_switch-is-selected-background-color: var(--semantics-controls-is-
|
|
27676
|
+
--_switch-is-selected-background-color: var(--context-selected-indicator-color, var(--semantics-controls-is-selected-indicator-color));
|
|
27635
27677
|
--_switch-thumb-border-width: var(--primitives-border-width-regular);
|
|
27636
27678
|
--_switch-thumb-border-color: light-dark(var(--primitives-color-neutral-550), var(--primitives-color-neutral-650));
|
|
27637
27679
|
--_switch-thumb-background-color: var(--semantics-surfaces-base-background-color);
|
|
27638
|
-
--_switch-is-selected-thumb-background-color: var(--semantics-controls-is-
|
|
27680
|
+
--_switch-is-selected-thumb-background-color: var(--context-selected-contrast-color, var(--semantics-controls-is-selected-mark-color));
|
|
27639
27681
|
|
|
27640
27682
|
display: inline-block;
|
|
27641
27683
|
position: relative;
|
|
@@ -27661,6 +27703,18 @@ var switchStyles = css`
|
|
|
27661
27703
|
}
|
|
27662
27704
|
|
|
27663
27705
|
|
|
27706
|
+
/* ## Colors */
|
|
27707
|
+
|
|
27708
|
+
:host([color="inherit"]) {
|
|
27709
|
+
--_switch-border-color: currentColor;
|
|
27710
|
+
--_switch-background-color: transparent;
|
|
27711
|
+
--_switch-is-selected-background-color: currentColor;
|
|
27712
|
+
--_switch-thumb-border-color: currentColor;
|
|
27713
|
+
--_switch-thumb-background-color: currentColor;
|
|
27714
|
+
--_switch-is-selected-thumb-background-color: var(--context-parent-background-color, var(--semantics-content-contrast-color));
|
|
27715
|
+
}
|
|
27716
|
+
|
|
27717
|
+
|
|
27664
27718
|
/* # Elements */
|
|
27665
27719
|
|
|
27666
27720
|
.switch__input {
|
|
@@ -27780,9 +27834,15 @@ function switchTemplate(component) {
|
|
|
27780
27834
|
* Prefer nldd-switch-field for labeled usage — it combines the switch with a visible label.
|
|
27781
27835
|
* Direct use of nldd-switch requires an accessible-label attribute for screen reader accessibility.
|
|
27782
27836
|
*
|
|
27837
|
+
* On a selected row of nldd-list-item a checked control takes the colors of the
|
|
27838
|
+
* row: the row sets `--context-selected-indicator-color` and
|
|
27839
|
+
* `--context-selected-contrast-color`, because the accent can fall below 3:1 on
|
|
27840
|
+
* the gray of a selected row.
|
|
27841
|
+
*
|
|
27783
27842
|
* @element nldd-switch
|
|
27784
27843
|
* @attr {boolean} checked - Whether the switch is on/off
|
|
27785
27844
|
* @attr {boolean} disabled - Disabled state
|
|
27845
|
+
* @attr {'inherit'} color - '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.
|
|
27786
27846
|
* @attr {boolean} no-tab - 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.
|
|
27787
27847
|
* @attr {string} size - Switch size: 'xs' | 'sm' (default: 'sm')
|
|
27788
27848
|
* @attr {string} name - Name for form submission; nothing is submitted when the switch is off
|
|
@@ -27803,6 +27863,7 @@ var NLDDSwitch = (_NLDDSwitch2 = class NLDDSwitch extends DescribedBy(FormAssoci
|
|
|
27803
27863
|
this.disabled = false;
|
|
27804
27864
|
this.noTab = false;
|
|
27805
27865
|
this.size = "sm";
|
|
27866
|
+
this.color = "";
|
|
27806
27867
|
this.accessibleLabel = "";
|
|
27807
27868
|
this.value = "on";
|
|
27808
27869
|
this._initialChecked = false;
|
|
@@ -27912,6 +27973,10 @@ __decorate([property({
|
|
|
27912
27973
|
reflect: true,
|
|
27913
27974
|
converter: reflectNonDefault("sm")
|
|
27914
27975
|
})], NLDDSwitch.prototype, "size", void 0);
|
|
27976
|
+
__decorate([property({
|
|
27977
|
+
reflect: true,
|
|
27978
|
+
converter: reflectNonDefault("")
|
|
27979
|
+
})], NLDDSwitch.prototype, "color", void 0);
|
|
27915
27980
|
__decorate([property({
|
|
27916
27981
|
type: String,
|
|
27917
27982
|
attribute: "accessible-label"
|
|
@@ -27957,6 +28022,13 @@ var switchFieldStyles = css`
|
|
|
27957
28022
|
}
|
|
27958
28023
|
|
|
27959
28024
|
|
|
28025
|
+
/* ## Colors */
|
|
28026
|
+
|
|
28027
|
+
:host([color="inherit"]) .switch-field__label {
|
|
28028
|
+
color: inherit;
|
|
28029
|
+
}
|
|
28030
|
+
|
|
28031
|
+
|
|
27960
28032
|
/* # Elements */
|
|
27961
28033
|
|
|
27962
28034
|
.switch-field__control {
|
|
@@ -27988,6 +28060,7 @@ function switchFieldTemplate(component) {
|
|
|
27988
28060
|
>
|
|
27989
28061
|
<div class="switch-field__control">
|
|
27990
28062
|
<nldd-switch
|
|
28063
|
+
color=${component.color || nothing}
|
|
27991
28064
|
?invalid=${component.invalid}
|
|
27992
28065
|
?required=${component.required}
|
|
27993
28066
|
size="sm"
|
|
@@ -28013,6 +28086,7 @@ function switchFieldTemplate(component) {
|
|
|
28013
28086
|
* @element nldd-switch-field
|
|
28014
28087
|
* @attr {boolean} checked - Checked state
|
|
28015
28088
|
* @attr {boolean} disabled - Disabled state
|
|
28089
|
+
* @attr {'inherit'} color - '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.
|
|
28016
28090
|
* @attr {string} value - Value for form submission
|
|
28017
28091
|
* @attr {string} name - Name for form submission
|
|
28018
28092
|
* @attr {string} label - Label text for the switch
|
|
@@ -28028,6 +28102,7 @@ var _NLDDSwitchField = class NLDDSwitchField extends DescribedBy(LitElement) {
|
|
|
28028
28102
|
this.disabled = false;
|
|
28029
28103
|
this.value = "on";
|
|
28030
28104
|
this.name = "";
|
|
28105
|
+
this.color = "";
|
|
28031
28106
|
this.label = "";
|
|
28032
28107
|
this.required = false;
|
|
28033
28108
|
this.invalid = false;
|
|
@@ -28075,6 +28150,10 @@ __decorate([property({
|
|
|
28075
28150
|
})], NLDDSwitchField.prototype, "disabled", void 0);
|
|
28076
28151
|
__decorate([property({ type: String })], NLDDSwitchField.prototype, "value", void 0);
|
|
28077
28152
|
__decorate([property({ type: String })], NLDDSwitchField.prototype, "name", void 0);
|
|
28153
|
+
__decorate([property({
|
|
28154
|
+
reflect: true,
|
|
28155
|
+
converter: reflectNonDefault("")
|
|
28156
|
+
})], NLDDSwitchField.prototype, "color", void 0);
|
|
28078
28157
|
__decorate([property({ type: String })], NLDDSwitchField.prototype, "label", void 0);
|
|
28079
28158
|
__decorate([property({
|
|
28080
28159
|
type: Boolean,
|
|
@@ -30894,8 +30973,8 @@ var popupTheme = EditorView.theme({
|
|
|
30894
30973
|
font: "var(--primitives-font-body-sm-regular-tight)"
|
|
30895
30974
|
},
|
|
30896
30975
|
".cm-tooltip.cm-tooltip-autocomplete > ul > li[aria-selected]": {
|
|
30897
|
-
backgroundColor: "var(--semantics-
|
|
30898
|
-
color: "var(--semantics-
|
|
30976
|
+
backgroundColor: "var(--semantics-list-items-is-highlighted-background-color)",
|
|
30977
|
+
color: "var(--semantics-list-items-is-highlighted-content-color)"
|
|
30899
30978
|
},
|
|
30900
30979
|
"@media (hover: hover)": { ".cm-tooltip.cm-tooltip-autocomplete > ul > li:not([aria-selected]):hover": {
|
|
30901
30980
|
backgroundColor: "var(--semantics-list-items-is-hovered-background-color)",
|
|
@@ -33143,6 +33222,9 @@ var textEditorStyles = css`
|
|
|
33143
33222
|
|
|
33144
33223
|
:host {
|
|
33145
33224
|
--_text-editor-caret-width: var(--primitives-border-width-regular);
|
|
33225
|
+
--_text-editor-caret-color: var(--components-text-editor-caret-color);
|
|
33226
|
+
--_text-editor-drop-cursor-color: var(--components-text-editor-drop-cursor-color);
|
|
33227
|
+
--_text-editor-drag-ghost-background-color: var(--components-text-editor-drag-ghost-background-color);
|
|
33146
33228
|
--_text-editor-caret-ring-width: var(--primitives-border-width-thin);
|
|
33147
33229
|
--_text-editor-corner-radius: 0;
|
|
33148
33230
|
--_text-editor-background-color: transparent;
|
|
@@ -33192,18 +33274,18 @@ var textEditorStyles = css`
|
|
|
33192
33274
|
--_text-editor-annotation-badge-size: 1.5em;
|
|
33193
33275
|
--_text-editor-annotation-badge-font-scale: 0.62;
|
|
33194
33276
|
--_text-editor-link-badge-size: calc(1em + 2 * var(--_text-editor-token-block-padding-fit));
|
|
33195
|
-
--_text-editor-link-badge-content-color: var(--
|
|
33196
|
-
--_text-editor-link-badge-background-color: var(--
|
|
33197
|
-
--_text-editor-link-badge-highlight-border-color: var(--
|
|
33198
|
-
--_text-editor-link-badge-is-hovered-background-color:
|
|
33199
|
-
--_text-editor-link-badge-is-active-background-color:
|
|
33200
|
-
--_text-editor-link-badge-is-hovered-highlight-border-color:
|
|
33201
|
-
--_text-editor-link-badge-is-active-highlight-border-color:
|
|
33277
|
+
--_text-editor-link-badge-content-color: var(--components-text-editor-link-badge-content-color);
|
|
33278
|
+
--_text-editor-link-badge-background-color: var(--components-text-editor-link-badge-background-color);
|
|
33279
|
+
--_text-editor-link-badge-highlight-border-color: var(--components-text-editor-link-badge-highlight-border-color);
|
|
33280
|
+
--_text-editor-link-badge-is-hovered-background-color: var(--components-text-editor-link-badge-is-hovered-background-color);
|
|
33281
|
+
--_text-editor-link-badge-is-active-background-color: var(--components-text-editor-link-badge-is-active-background-color);
|
|
33282
|
+
--_text-editor-link-badge-is-hovered-highlight-border-color: var(--components-text-editor-link-badge-is-hovered-highlight-border-color);
|
|
33283
|
+
--_text-editor-link-badge-is-active-highlight-border-color: var(--components-text-editor-link-badge-is-active-highlight-border-color);
|
|
33202
33284
|
--_text-editor-mention-icon-size: 0.95em;
|
|
33203
|
-
--_text-editor-mention-token-background-color: var(--
|
|
33204
|
-
--_text-editor-mention-token-content-color: var(--
|
|
33205
|
-
--_text-editor-mention-token-is-selected-background-color: var(--
|
|
33206
|
-
--_text-editor-mention-token-is-selected-content-color: var(--
|
|
33285
|
+
--_text-editor-mention-token-background-color: var(--components-text-editor-mention-background-color);
|
|
33286
|
+
--_text-editor-mention-token-content-color: var(--components-text-editor-mention-content-color);
|
|
33287
|
+
--_text-editor-mention-token-is-selected-background-color: var(--components-text-editor-mention-is-selected-background-color);
|
|
33288
|
+
--_text-editor-mention-token-is-selected-content-color: var(--components-text-editor-mention-is-selected-content-color);
|
|
33207
33289
|
--_text-editor-rows: 6;
|
|
33208
33290
|
|
|
33209
33291
|
${inheritedTextReset}
|
|
@@ -33287,7 +33369,7 @@ var textEditorStyles = css`
|
|
|
33287
33369
|
/* accent-700: it keeps a >=525 lightness gap from both the base and tinted
|
|
33288
33370
|
surfaces in light and dark (accent-600 fell just short on white), so the
|
|
33289
33371
|
caret stays clearly visible without washing out. */
|
|
33290
|
-
border-left-color: var(--
|
|
33372
|
+
border-left-color: var(--_text-editor-caret-color);
|
|
33291
33373
|
border-left-width: var(--_text-editor-caret-width);
|
|
33292
33374
|
/* CodeMirror centers its own 1.2px caret with a -0.6px margin. Ours is wider,
|
|
33293
33375
|
so recenter it on the insertion point from its own width. */
|
|
@@ -33667,7 +33749,7 @@ var textEditorStyles = css`
|
|
|
33667
33749
|
position: absolute;
|
|
33668
33750
|
width: var(--primitives-border-width-regular);
|
|
33669
33751
|
border-radius: var(--primitives-border-width-thin);
|
|
33670
|
-
background-color: var(--
|
|
33752
|
+
background-color: var(--_text-editor-drop-cursor-color);
|
|
33671
33753
|
box-shadow: 0 0 0 var(--primitives-border-width-thin) var(--semantics-surfaces-base-background-color);
|
|
33672
33754
|
pointer-events: none;
|
|
33673
33755
|
z-index: 4;
|
|
@@ -33679,7 +33761,7 @@ var textEditorStyles = css`
|
|
|
33679
33761
|
max-width: 24ch;
|
|
33680
33762
|
padding: 0 var(--primitives-space-4);
|
|
33681
33763
|
border-radius: var(--_text-editor-token-corner-radius);
|
|
33682
|
-
background-color:
|
|
33764
|
+
background-color: var(--_text-editor-drag-ghost-background-color);
|
|
33683
33765
|
color: var(--_text-editor-content-color);
|
|
33684
33766
|
font: var(--_text-editor-font);
|
|
33685
33767
|
white-space: nowrap;
|
|
@@ -35080,7 +35162,7 @@ __decorate([property({
|
|
|
35080
35162
|
NLDDTextField = __decorate([customElement("nldd-text-field")], NLDDTextField);
|
|
35081
35163
|
//#endregion
|
|
35082
35164
|
//#region src/components/inputs/time-field/time-field.styles.ts
|
|
35083
|
-
var mdMin$16 = unsafeCSS(
|
|
35165
|
+
var mdMin$16 = unsafeCSS(queryBreakpoints.mdMin);
|
|
35084
35166
|
var timeFieldStyles = css`
|
|
35085
35167
|
:host {
|
|
35086
35168
|
box-sizing: border-box;
|
|
@@ -35282,10 +35364,10 @@ var timeFieldStyles = css`
|
|
|
35282
35364
|
`;
|
|
35283
35365
|
//#endregion
|
|
35284
35366
|
//#region src/components/layout/spacer/spacer.styles.ts
|
|
35285
|
-
var smMax$15 = unsafeCSS(
|
|
35286
|
-
var mdMin$15 = unsafeCSS(
|
|
35287
|
-
var mdMax$12 = unsafeCSS(
|
|
35288
|
-
var lgMin$13 = unsafeCSS(
|
|
35367
|
+
var smMax$15 = unsafeCSS(queryBreakpoints.smMax);
|
|
35368
|
+
var mdMin$15 = unsafeCSS(queryBreakpoints.mdMin);
|
|
35369
|
+
var mdMax$12 = unsafeCSS(queryBreakpoints.mdMax);
|
|
35370
|
+
var lgMin$13 = unsafeCSS(queryBreakpoints.lgMin);
|
|
35289
35371
|
var spacerStyles = css`
|
|
35290
35372
|
:host {
|
|
35291
35373
|
box-sizing: border-box;
|
|
@@ -35584,8 +35666,8 @@ var timePickerStyles = css`
|
|
|
35584
35666
|
--_time-picker-control-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
35585
35667
|
--_time-picker-list-item-font: var(--primitives-font-body-md-medium-flat);
|
|
35586
35668
|
--_time-picker-list-item-is-hovered-background-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-150));
|
|
35587
|
-
--_time-picker-selection-background-color: var(--semantics-controls-is-
|
|
35588
|
-
--_time-picker-selection-content-color: var(--semantics-controls-is-
|
|
35669
|
+
--_time-picker-selection-background-color: var(--semantics-controls-is-selected-indicator-color);
|
|
35670
|
+
--_time-picker-selection-content-color: var(--semantics-controls-is-selected-contrast-color);
|
|
35589
35671
|
--_time-picker-list-width: calc(var(--_time-picker-control-min-size) * 1.5);
|
|
35590
35672
|
--_time-picker-rows: 7;
|
|
35591
35673
|
--_time-picker-list-height: calc(var(--_time-picker-control-min-size) * var(--_time-picker-rows));
|
|
@@ -37088,8 +37170,10 @@ function toggleButtonTemplate(component) {
|
|
|
37088
37170
|
const showText = component.variant !== "icon" && !!component.text;
|
|
37089
37171
|
const showIcon = component.variant !== "text" && component._hasIcon;
|
|
37090
37172
|
const showPlaceholder = component.variant === "icon" || component.variant === "icon-and-text";
|
|
37091
|
-
const
|
|
37092
|
-
const
|
|
37173
|
+
const shortcutWords = shortcutLabel(component);
|
|
37174
|
+
const name = component.accessibleLabel || ((component.variant === "icon" || shortcutWords) && component.text ? component.text : "");
|
|
37175
|
+
const ariaLabel = name ? [name, shortcutWords].filter(Boolean).join(" ") : nothing;
|
|
37176
|
+
const tooltipText = (showIcon || component.variant === "icon") && !showText ? component.accessibleLabel || component.text || "" : "";
|
|
37093
37177
|
const iconName = component.selected && component.selectedIcon ? component.selectedIcon : component.icon;
|
|
37094
37178
|
const icon = iconName ? html`<nldd-icon class="toggle-button__icon"
|
|
37095
37179
|
icon=${iconName}
|
|
@@ -37145,7 +37229,17 @@ function toggleButtonTemplate(component) {
|
|
|
37145
37229
|
${textContent}
|
|
37146
37230
|
</button>
|
|
37147
37231
|
`;
|
|
37148
|
-
if (tooltipText) return html
|
|
37232
|
+
if (tooltipText || hasShortcut(component)) return html`
|
|
37233
|
+
<nldd-tooltip
|
|
37234
|
+
text=${tooltipText || nothing}
|
|
37235
|
+
shortcut=${component.shortcut || nothing}
|
|
37236
|
+
shortcut-mac=${component.shortcutMac || nothing}
|
|
37237
|
+
shortcut-windows=${component.shortcutWindows || nothing}
|
|
37238
|
+
shortcut-linux=${component.shortcutLinux || nothing}
|
|
37239
|
+
>
|
|
37240
|
+
${result}
|
|
37241
|
+
</nldd-tooltip>
|
|
37242
|
+
`;
|
|
37149
37243
|
return result;
|
|
37150
37244
|
}
|
|
37151
37245
|
//#endregion
|
|
@@ -37180,6 +37274,10 @@ function toggleButtonTemplate(component) {
|
|
|
37180
37274
|
* @attr {string} selected-icon - Icon shown instead of `icon` while selected, such as `check-mark` for `plus` or `heart-filled` for `heart`. The appearances with a surface fill it when on, as without one. The transparent appearances have no surface to fill: with a selected-icon they stay quiet when on and the change of shape says it is on; without one, or with `variant="text"` where the icon does not render, they fill, so the state always shows.
|
|
37181
37275
|
* @attr {'text' | 'icon' | 'icon-and-text'} variant - What renders: text, icon, or both. Unset → auto-detect from text/icon attributes.
|
|
37182
37276
|
* @attr {string} accessible-label - Accessible label; required for icon-only usage
|
|
37277
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name ("Vet Cmd B"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable.
|
|
37278
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
37279
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
37280
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
37183
37281
|
* @attr {boolean} required - Required state. Set by nldd-toggle-button-group.
|
|
37184
37282
|
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
37185
37283
|
*
|
|
@@ -37205,12 +37303,17 @@ var _NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociate
|
|
|
37205
37303
|
this.selectedIcon = "";
|
|
37206
37304
|
this.variant = "";
|
|
37207
37305
|
this.accessibleLabel = "";
|
|
37306
|
+
this.shortcut = "";
|
|
37307
|
+
this.shortcutMac = "";
|
|
37308
|
+
this.shortcutWindows = "";
|
|
37309
|
+
this.shortcutLinux = "";
|
|
37208
37310
|
this._warnedA11y = false;
|
|
37209
37311
|
this._warnedEmptyIcon = false;
|
|
37210
37312
|
this.invalid = false;
|
|
37211
37313
|
this._groupPosition = null;
|
|
37212
37314
|
this._groupHasSelection = false;
|
|
37213
37315
|
this._appliedRadioLabel = null;
|
|
37316
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
37214
37317
|
this._onRadioClick = () => {
|
|
37215
37318
|
if (this.type !== "radio") return;
|
|
37216
37319
|
this.toggle();
|
|
@@ -37273,7 +37376,8 @@ var _NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociate
|
|
|
37273
37376
|
}
|
|
37274
37377
|
this.setAttribute("role", "radio");
|
|
37275
37378
|
this.setAttribute("aria-checked", String(this.selected));
|
|
37276
|
-
|
|
37379
|
+
const radioLabel = [this.accessibleLabel || this.text, shortcutLabel(this)].filter(Boolean).join(" ");
|
|
37380
|
+
this._appliedRadioLabel = setOwnedAttribute(this, "aria-label", radioLabel, this._appliedRadioLabel);
|
|
37277
37381
|
if (this.disabled) this.setAttribute("aria-disabled", "true");
|
|
37278
37382
|
else this.removeAttribute("aria-disabled");
|
|
37279
37383
|
const position = this._groupPosition;
|
|
@@ -37425,6 +37529,25 @@ __decorate([property({
|
|
|
37425
37529
|
type: String,
|
|
37426
37530
|
attribute: "accessible-label"
|
|
37427
37531
|
})], NLDDToggleButton.prototype, "accessibleLabel", void 0);
|
|
37532
|
+
__decorate([property({
|
|
37533
|
+
reflect: true,
|
|
37534
|
+
converter: reflectNonDefault("")
|
|
37535
|
+
})], NLDDToggleButton.prototype, "shortcut", void 0);
|
|
37536
|
+
__decorate([property({
|
|
37537
|
+
reflect: true,
|
|
37538
|
+
attribute: "shortcut-mac",
|
|
37539
|
+
converter: reflectNonDefault("")
|
|
37540
|
+
})], NLDDToggleButton.prototype, "shortcutMac", void 0);
|
|
37541
|
+
__decorate([property({
|
|
37542
|
+
reflect: true,
|
|
37543
|
+
attribute: "shortcut-windows",
|
|
37544
|
+
converter: reflectNonDefault("")
|
|
37545
|
+
})], NLDDToggleButton.prototype, "shortcutWindows", void 0);
|
|
37546
|
+
__decorate([property({
|
|
37547
|
+
reflect: true,
|
|
37548
|
+
attribute: "shortcut-linux",
|
|
37549
|
+
converter: reflectNonDefault("")
|
|
37550
|
+
})], NLDDToggleButton.prototype, "shortcutLinux", void 0);
|
|
37428
37551
|
__decorate([property({
|
|
37429
37552
|
type: Boolean,
|
|
37430
37553
|
reflect: true
|
|
@@ -39414,10 +39537,7 @@ function barSplitViewTemplate(component) {
|
|
|
39414
39537
|
* @slot main - Central panel for primary content
|
|
39415
39538
|
* @slot * - Any other unique slot name creates a bar panel
|
|
39416
39539
|
*/
|
|
39417
|
-
var _NLDDBarSplitView
|
|
39418
|
-
var smMaxPx = parseInt(breakpoints.smMax);
|
|
39419
|
-
var mdMaxPx = parseInt(breakpoints.mdMax);
|
|
39420
|
-
var NLDDBarSplitView = (_NLDDBarSplitView = class NLDDBarSplitView extends LitElement {
|
|
39540
|
+
var _NLDDBarSplitView = class NLDDBarSplitView extends LitElement {
|
|
39421
39541
|
constructor(..._args) {
|
|
39422
39542
|
super(..._args);
|
|
39423
39543
|
this._scrollMode = new ScrollModeController(this, () => this._updateInsets());
|
|
@@ -39492,8 +39612,9 @@ var NLDDBarSplitView = (_NLDDBarSplitView = class NLDDBarSplitView extends LitEl
|
|
|
39492
39612
|
this._resizeObserver = null;
|
|
39493
39613
|
}
|
|
39494
39614
|
_getBreakpoint(width) {
|
|
39495
|
-
|
|
39496
|
-
if (width <=
|
|
39615
|
+
const fontSize = rootFontSize();
|
|
39616
|
+
if (width <= breakpointPx("smMax", fontSize)) return "sm";
|
|
39617
|
+
if (width <= breakpointPx("mdMax", fontSize)) return "md";
|
|
39497
39618
|
return "lg";
|
|
39498
39619
|
}
|
|
39499
39620
|
_isChildVisible(el) {
|
|
@@ -39530,7 +39651,8 @@ var NLDDBarSplitView = (_NLDDBarSplitView = class NLDDBarSplitView extends LitEl
|
|
|
39530
39651
|
render() {
|
|
39531
39652
|
return barSplitViewTemplate(this);
|
|
39532
39653
|
}
|
|
39533
|
-
}
|
|
39654
|
+
};
|
|
39655
|
+
var NLDDBarSplitView = (_NLDDBarSplitView.styles = barSplitViewStyles, _NLDDBarSplitView);
|
|
39534
39656
|
__decorate([property({
|
|
39535
39657
|
type: String,
|
|
39536
39658
|
reflect: true
|
|
@@ -39539,10 +39661,10 @@ __decorate([state()], NLDDBarSplitView.prototype, "_currentBreakpoint", void 0);
|
|
|
39539
39661
|
NLDDBarSplitView = __decorate([customElement("nldd-bar-split-view")], NLDDBarSplitView);
|
|
39540
39662
|
//#endregion
|
|
39541
39663
|
//#region src/components/layout/split-views/navigation-split-view/navigation-split-view.styles.ts
|
|
39542
|
-
var smMax$14 = unsafeCSS(
|
|
39543
|
-
var mdMin$14 = unsafeCSS(
|
|
39544
|
-
var mdMax$11 = unsafeCSS(
|
|
39545
|
-
var lgMin$12 = unsafeCSS(
|
|
39664
|
+
var smMax$14 = unsafeCSS(queryBreakpoints.smMax);
|
|
39665
|
+
var mdMin$14 = unsafeCSS(queryBreakpoints.mdMin);
|
|
39666
|
+
var mdMax$11 = unsafeCSS(queryBreakpoints.mdMax);
|
|
39667
|
+
var lgMin$12 = unsafeCSS(queryBreakpoints.lgMin);
|
|
39546
39668
|
var navigationSplitViewStyles = css`
|
|
39547
39669
|
:host {
|
|
39548
39670
|
box-sizing: border-box;
|
|
@@ -40747,7 +40869,7 @@ __decorate([state()], NLDDStackedSplitView.prototype, "_visiblePanes", void 0);
|
|
|
40747
40869
|
NLDDStackedSplitView = __decorate([customElement("nldd-stacked-split-view")], NLDDStackedSplitView);
|
|
40748
40870
|
//#endregion
|
|
40749
40871
|
//#region src/components/layout/split-views/split-view-pane/split-view-pane.styles.ts
|
|
40750
|
-
var mdMin$13 = unsafeCSS(
|
|
40872
|
+
var mdMin$13 = unsafeCSS(queryBreakpoints.mdMin);
|
|
40751
40873
|
var splitViewPaneStyles = css`
|
|
40752
40874
|
:host {
|
|
40753
40875
|
box-sizing: border-box;
|
|
@@ -41538,7 +41660,8 @@ NLDDPage = __decorate([customElement("nldd-page")], NLDDPage);
|
|
|
41538
41660
|
//#region src/utilities/page-section-mixin.ts
|
|
41539
41661
|
var BACKGROUND_TOKEN = {
|
|
41540
41662
|
base: "var(--semantics-surfaces-base-background-color)",
|
|
41541
|
-
tinted: "var(--semantics-surfaces-tinted-background-color)"
|
|
41663
|
+
tinted: "var(--semantics-surfaces-tinted-background-color)",
|
|
41664
|
+
"accent-tinted": "var(--semantics-surfaces-accent-tinted-background-color)"
|
|
41542
41665
|
};
|
|
41543
41666
|
function paddingToValue(size) {
|
|
41544
41667
|
if (size === void 0 || size === "") return null;
|
|
@@ -41573,8 +41696,9 @@ var PADDING_KEYS = [
|
|
|
41573
41696
|
* element and slotted content):
|
|
41574
41697
|
*
|
|
41575
41698
|
* - **background**: `inherit` (the default — transparent, shows the ancestor's
|
|
41576
|
-
* surface) | `base` (the base surface color) | `tinted
|
|
41577
|
-
*
|
|
41699
|
+
* surface) | `base` (the base surface color) | `tinted` | `accent-tinted`
|
|
41700
|
+
* (a tint of the theme's accent, with the contrast of `tinted`). Setting
|
|
41701
|
+
* one of those also cascades `--context-parent-background-color` so
|
|
41578
41702
|
* descendants (cards, nested sections) read the same surface.
|
|
41579
41703
|
* - **block padding**: `padding-block` (both edges) with `padding-top`
|
|
41580
41704
|
* / `padding-bottom` per-edge overrides, each with responsive `sm-` /
|
|
@@ -41615,8 +41739,8 @@ function PageSectionMixin(Base) {
|
|
|
41615
41739
|
wrapper.hidden = slot.assignedElements().length === 0;
|
|
41616
41740
|
}
|
|
41617
41741
|
_applyBackground() {
|
|
41618
|
-
|
|
41619
|
-
|
|
41742
|
+
const token = this.background === "inherit" ? void 0 : BACKGROUND_TOKEN[this.background];
|
|
41743
|
+
if (token) {
|
|
41620
41744
|
this.style.backgroundColor = token;
|
|
41621
41745
|
this.style.setProperty("--context-parent-background-color", token);
|
|
41622
41746
|
} else {
|
|
@@ -41722,10 +41846,10 @@ function PageSectionMixin(Base) {
|
|
|
41722
41846
|
}
|
|
41723
41847
|
//#endregion
|
|
41724
41848
|
//#region src/components/layout/page-sections/simple-section/simple-section.styles.ts
|
|
41725
|
-
var smMax$13 = unsafeCSS(
|
|
41726
|
-
var mdMin$12 = unsafeCSS(
|
|
41727
|
-
var mdMax$10 = unsafeCSS(
|
|
41728
|
-
var lgMin$11 = unsafeCSS(
|
|
41849
|
+
var smMax$13 = unsafeCSS(queryBreakpoints.smMax);
|
|
41850
|
+
var mdMin$12 = unsafeCSS(queryBreakpoints.mdMin);
|
|
41851
|
+
var mdMax$10 = unsafeCSS(queryBreakpoints.mdMax);
|
|
41852
|
+
var lgMin$11 = unsafeCSS(queryBreakpoints.lgMin);
|
|
41729
41853
|
var simpleSectionStyles = css`
|
|
41730
41854
|
:host {
|
|
41731
41855
|
box-sizing: border-box;
|
|
@@ -41903,7 +42027,7 @@ function simpleSectionTemplate(component) {
|
|
|
41903
42027
|
*
|
|
41904
42028
|
* @element nldd-simple-section
|
|
41905
42029
|
*
|
|
41906
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
42030
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - 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).
|
|
41907
42031
|
* @attr {string} [width] - 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.
|
|
41908
42032
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
41909
42033
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -41956,10 +42080,10 @@ __decorate([property({
|
|
|
41956
42080
|
NLDDSimpleSection = __decorate([customElement("nldd-simple-section")], NLDDSimpleSection);
|
|
41957
42081
|
//#endregion
|
|
41958
42082
|
//#region src/components/layout/page-sections/hero/hero.styles.ts
|
|
41959
|
-
var smMax$12 = unsafeCSS(
|
|
41960
|
-
var mdMin$11 = unsafeCSS(
|
|
41961
|
-
var mdMax$9 = unsafeCSS(
|
|
41962
|
-
var lgMin$10 = unsafeCSS(
|
|
42083
|
+
var smMax$12 = unsafeCSS(queryBreakpoints.smMax);
|
|
42084
|
+
var mdMin$11 = unsafeCSS(queryBreakpoints.mdMin);
|
|
42085
|
+
var mdMax$9 = unsafeCSS(queryBreakpoints.mdMax);
|
|
42086
|
+
var lgMin$10 = unsafeCSS(queryBreakpoints.lgMin);
|
|
41963
42087
|
var heroStyles = css`
|
|
41964
42088
|
:host {
|
|
41965
42089
|
box-sizing: border-box;
|
|
@@ -41987,8 +42111,8 @@ var heroStyles = css`
|
|
|
41987
42111
|
--_hero-main-min-width: var(--primitives-area-480);
|
|
41988
42112
|
--_hero-main-max-width: var(--primitives-area-640);
|
|
41989
42113
|
--_hero-main-width: auto;
|
|
41990
|
-
--_hero-main-background-color: var(--semantics-
|
|
41991
|
-
--_hero-main-content-color: var(--semantics-
|
|
42114
|
+
--_hero-main-background-color: var(--semantics-surfaces-accent-filled-background-color);
|
|
42115
|
+
--_hero-main-content-color: var(--semantics-content-on-accent-filled-color);
|
|
41992
42116
|
--_hero-main-padding: var(--primitives-space-16);
|
|
41993
42117
|
--_hero-main-inset: var(--primitives-space-0);
|
|
41994
42118
|
--_hero-sm-main-inset: var(--semantics-page-sections-sm-gap);
|
|
@@ -42022,96 +42146,6 @@ var heroStyles = css`
|
|
|
42022
42146
|
--_hero-main-content-color: var(--semantics-content-color);
|
|
42023
42147
|
}
|
|
42024
42148
|
|
|
42025
|
-
:host([main-background="lintblauw"]) {
|
|
42026
|
-
--_hero-main-background-color: var(--semantics-categories-lintblauw-reference-background-color);
|
|
42027
|
-
--_hero-main-content-color: var(--semantics-categories-lintblauw-reference-content-color);
|
|
42028
|
-
}
|
|
42029
|
-
|
|
42030
|
-
:host([main-background="donkerblauw"]) {
|
|
42031
|
-
--_hero-main-background-color: var(--semantics-categories-donkerblauw-reference-background-color);
|
|
42032
|
-
--_hero-main-content-color: var(--semantics-categories-donkerblauw-reference-content-color);
|
|
42033
|
-
}
|
|
42034
|
-
|
|
42035
|
-
:host([main-background="hemelblauw"]) {
|
|
42036
|
-
--_hero-main-background-color: var(--semantics-categories-hemelblauw-reference-background-color);
|
|
42037
|
-
--_hero-main-content-color: var(--semantics-categories-hemelblauw-reference-content-color);
|
|
42038
|
-
}
|
|
42039
|
-
|
|
42040
|
-
:host([main-background="lichtblauw"]) {
|
|
42041
|
-
--_hero-main-background-color: var(--semantics-categories-lichtblauw-reference-background-color);
|
|
42042
|
-
--_hero-main-content-color: var(--semantics-categories-lichtblauw-reference-content-color);
|
|
42043
|
-
}
|
|
42044
|
-
|
|
42045
|
-
:host([main-background="paars"]) {
|
|
42046
|
-
--_hero-main-background-color: var(--semantics-categories-paars-reference-background-color);
|
|
42047
|
-
--_hero-main-content-color: var(--semantics-categories-paars-reference-content-color);
|
|
42048
|
-
}
|
|
42049
|
-
|
|
42050
|
-
:host([main-background="violet"]) {
|
|
42051
|
-
--_hero-main-background-color: var(--semantics-categories-violet-reference-background-color);
|
|
42052
|
-
--_hero-main-content-color: var(--semantics-categories-violet-reference-content-color);
|
|
42053
|
-
}
|
|
42054
|
-
|
|
42055
|
-
:host([main-background="robijnrood"]) {
|
|
42056
|
-
--_hero-main-background-color: var(--semantics-categories-robijnrood-reference-background-color);
|
|
42057
|
-
--_hero-main-content-color: var(--semantics-categories-robijnrood-reference-content-color);
|
|
42058
|
-
}
|
|
42059
|
-
|
|
42060
|
-
:host([main-background="roze"]) {
|
|
42061
|
-
--_hero-main-background-color: var(--semantics-categories-roze-reference-background-color);
|
|
42062
|
-
--_hero-main-content-color: var(--semantics-categories-roze-reference-content-color);
|
|
42063
|
-
}
|
|
42064
|
-
|
|
42065
|
-
:host([main-background="rood"]) {
|
|
42066
|
-
--_hero-main-background-color: var(--semantics-categories-rood-reference-background-color);
|
|
42067
|
-
--_hero-main-content-color: var(--semantics-categories-rood-reference-content-color);
|
|
42068
|
-
}
|
|
42069
|
-
|
|
42070
|
-
:host([main-background="oranje"]) {
|
|
42071
|
-
--_hero-main-background-color: var(--semantics-categories-oranje-reference-background-color);
|
|
42072
|
-
--_hero-main-content-color: var(--semantics-categories-oranje-reference-content-color);
|
|
42073
|
-
}
|
|
42074
|
-
|
|
42075
|
-
:host([main-background="donkergeel"]) {
|
|
42076
|
-
--_hero-main-background-color: var(--semantics-categories-donkergeel-reference-background-color);
|
|
42077
|
-
--_hero-main-content-color: var(--semantics-categories-donkergeel-reference-content-color);
|
|
42078
|
-
}
|
|
42079
|
-
|
|
42080
|
-
:host([main-background="geel"]) {
|
|
42081
|
-
--_hero-main-background-color: var(--semantics-categories-geel-reference-background-color);
|
|
42082
|
-
--_hero-main-content-color: var(--semantics-categories-geel-reference-content-color);
|
|
42083
|
-
}
|
|
42084
|
-
|
|
42085
|
-
:host([main-background="donkerbruin"]) {
|
|
42086
|
-
--_hero-main-background-color: var(--semantics-categories-donkerbruin-reference-background-color);
|
|
42087
|
-
--_hero-main-content-color: var(--semantics-categories-donkerbruin-reference-content-color);
|
|
42088
|
-
}
|
|
42089
|
-
|
|
42090
|
-
:host([main-background="bruin"]) {
|
|
42091
|
-
--_hero-main-background-color: var(--semantics-categories-bruin-reference-background-color);
|
|
42092
|
-
--_hero-main-content-color: var(--semantics-categories-bruin-reference-content-color);
|
|
42093
|
-
}
|
|
42094
|
-
|
|
42095
|
-
:host([main-background="donkergroen"]) {
|
|
42096
|
-
--_hero-main-background-color: var(--semantics-categories-donkergroen-reference-background-color);
|
|
42097
|
-
--_hero-main-content-color: var(--semantics-categories-donkergroen-reference-content-color);
|
|
42098
|
-
}
|
|
42099
|
-
|
|
42100
|
-
:host([main-background="groen"]) {
|
|
42101
|
-
--_hero-main-background-color: var(--semantics-categories-groen-reference-background-color);
|
|
42102
|
-
--_hero-main-content-color: var(--semantics-categories-groen-reference-content-color);
|
|
42103
|
-
}
|
|
42104
|
-
|
|
42105
|
-
:host([main-background="mosgroen"]) {
|
|
42106
|
-
--_hero-main-background-color: var(--semantics-categories-mosgroen-reference-background-color);
|
|
42107
|
-
--_hero-main-content-color: var(--semantics-categories-mosgroen-reference-content-color);
|
|
42108
|
-
}
|
|
42109
|
-
|
|
42110
|
-
:host([main-background="mintgroen"]) {
|
|
42111
|
-
--_hero-main-background-color: var(--semantics-categories-mintgroen-reference-background-color);
|
|
42112
|
-
--_hero-main-content-color: var(--semantics-categories-mintgroen-reference-content-color);
|
|
42113
|
-
}
|
|
42114
|
-
|
|
42115
42149
|
|
|
42116
42150
|
/* # Block */
|
|
42117
42151
|
|
|
@@ -42129,7 +42163,7 @@ var heroStyles = css`
|
|
|
42129
42163
|
|
|
42130
42164
|
@container (max-width: ${smMax$12}) {
|
|
42131
42165
|
padding-inline: var(--semantics-page-sections-sm-margin-inline);
|
|
42132
|
-
padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top,
|
|
42166
|
+
padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top, var(--semantics-page-sections-sm-margin-block)));
|
|
42133
42167
|
padding-bottom: var(--_hero-sm-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-sm-margin-block)));
|
|
42134
42168
|
}
|
|
42135
42169
|
|
|
@@ -42419,10 +42453,10 @@ function heroTemplate(component) {
|
|
|
42419
42453
|
}
|
|
42420
42454
|
//#endregion
|
|
42421
42455
|
//#region src/components/layout/page-sections/hero/hero-corner.styles.ts
|
|
42422
|
-
var smMax$11 = unsafeCSS(
|
|
42423
|
-
var mdMin$10 = unsafeCSS(
|
|
42424
|
-
var mdMax$8 = unsafeCSS(
|
|
42425
|
-
var lgMin$9 = unsafeCSS(
|
|
42456
|
+
var smMax$11 = unsafeCSS(queryBreakpoints.smMax);
|
|
42457
|
+
var mdMin$10 = unsafeCSS(queryBreakpoints.mdMin);
|
|
42458
|
+
var mdMax$8 = unsafeCSS(queryBreakpoints.mdMax);
|
|
42459
|
+
var lgMin$9 = unsafeCSS(queryBreakpoints.lgMin);
|
|
42426
42460
|
var heroCornerStyles = css`
|
|
42427
42461
|
|
|
42428
42462
|
|
|
@@ -42668,11 +42702,12 @@ function clearCornerLimits(host) {
|
|
|
42668
42702
|
* `main-background="base"` that area gets a border so it stays visible on the
|
|
42669
42703
|
* base surface.
|
|
42670
42704
|
*
|
|
42671
|
-
* The hero is the head of a page and sits right under the top bar, so
|
|
42672
|
-
* padding is half that of the other page sections: the full
|
|
42673
|
-
* to separate two sections, and under the top bar it reads
|
|
42674
|
-
*
|
|
42675
|
-
*
|
|
42705
|
+
* The hero is the head of a page and sits right under the top bar, so on md
|
|
42706
|
+
* and lg its top padding is half that of the other page sections: the full
|
|
42707
|
+
* distance is meant to separate two sections, and under the top bar it reads
|
|
42708
|
+
* as a gap. On sm the top keeps the full distance, as the other sections do.
|
|
42709
|
+
* The bottom keeps the full distance to the section below. Set `padding-top`
|
|
42710
|
+
* to place a hero elsewhere.
|
|
42676
42711
|
*
|
|
42677
42712
|
* By default the panel falls over the bottom of the image and runs on below it
|
|
42678
42713
|
* (`layout="overlap"`), so the image keeps its height whatever the content.
|
|
@@ -42684,21 +42719,22 @@ function clearCornerLimits(host) {
|
|
|
42684
42719
|
* a minimum height for the whole hero it stretched the panel once that sat
|
|
42685
42720
|
* below the image. A hero given `height` says so in development.
|
|
42686
42721
|
*
|
|
42687
|
-
*
|
|
42688
|
-
*
|
|
42689
|
-
* `color="inherit"` (title, rich-text) are guaranteed to keep their
|
|
42722
|
+
* The panel takes the accent color of the theme, closest to its reference
|
|
42723
|
+
* color in both modes, with a pure white or black content color, so components
|
|
42724
|
+
* with `color="inherit"` (title, rich-text) are guaranteed to keep their
|
|
42725
|
+
* contrast. `main-background="base"` gives it the base surface instead. A
|
|
42726
|
+
* Rijkshuisstijl color per hero is gone: the theme picks the color for the
|
|
42727
|
+
* whole site, and a hero given one says so in development.
|
|
42690
42728
|
*
|
|
42691
42729
|
* @element nldd-hero
|
|
42692
42730
|
*
|
|
42693
|
-
* @attr {'inherit'|'base'|'tinted'} background - Surface behind the hero (section API)
|
|
42731
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} background - Surface behind the hero (section API)
|
|
42694
42732
|
* @attr {string} width - Body max-width; 'full' removes the bound (section API)
|
|
42695
42733
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
42696
42734
|
* @attr {string} padding-block - Block padding override, also per edge and responsive (section API)
|
|
42697
42735
|
* @attr {string} corner - 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. With media it 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. Without media the panel is the whole hero: the corner applies in every layout and position, at half the radius, and the hero chooses top-right, or top-left for a panel on the right. The radius comes from the ribbon width: 1.5X on sm, 2X on md and lg, and is never more than a third of the shortest side of the area it rounds, so a low hero keeps a corner rather than a drop. Says so in development when the chosen corner sits under the panel, or with `width="full"`
|
|
42698
42736
|
* @attr {'contained'|'overlap'} layout - 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
|
|
42699
|
-
* @attr {
|
|
42700
|
-
* or a category color — 'accent' (default) or a Rijkshuisstijl color such as
|
|
42701
|
-
* 'lintblauw'|'donkerblauw'|'oranje'
|
|
42737
|
+
* @attr {'accent'|'base'} main-background - Surface color of the panel: 'accent' (default), the accent color of the theme, or 'base', the base surface
|
|
42702
42738
|
* @attr {string} main-width - 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'
|
|
42703
42739
|
* @attr {'top-left'|'top-center'|'top-right'|'bottom-left'|'bottom-center'|'bottom-right'|'left'|'right'} main-position -
|
|
42704
42740
|
* Position of the text panel (default: 'bottom-left'); 'left'/'right' span the full height
|
|
@@ -42924,10 +42960,10 @@ __decorate([state()], NLDDHero.prototype, "_slotHasMedia", void 0);
|
|
|
42924
42960
|
NLDDHero = __decorate([customElement("nldd-hero")], NLDDHero);
|
|
42925
42961
|
//#endregion
|
|
42926
42962
|
//#region src/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.ts
|
|
42927
|
-
var smMax$10 = unsafeCSS(
|
|
42928
|
-
var mdMin$9 = unsafeCSS(
|
|
42929
|
-
var mdMax$7 = unsafeCSS(
|
|
42930
|
-
var lgMin$8 = unsafeCSS(
|
|
42963
|
+
var smMax$10 = unsafeCSS(queryBreakpoints.smMax);
|
|
42964
|
+
var mdMin$9 = unsafeCSS(queryBreakpoints.mdMin);
|
|
42965
|
+
var mdMax$7 = unsafeCSS(queryBreakpoints.mdMax);
|
|
42966
|
+
var lgMin$8 = unsafeCSS(queryBreakpoints.lgMin);
|
|
42931
42967
|
var fullBleedSectionStyles = css`
|
|
42932
42968
|
:host {
|
|
42933
42969
|
box-sizing: border-box;
|
|
@@ -43074,7 +43110,7 @@ function fullBleedSectionTemplate(component) {
|
|
|
43074
43110
|
*
|
|
43075
43111
|
* @element nldd-full-bleed-section
|
|
43076
43112
|
*
|
|
43077
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
43113
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - 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).
|
|
43078
43114
|
* @attr {string} [width] - 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.
|
|
43079
43115
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
43080
43116
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -43112,10 +43148,10 @@ __decorate([property({
|
|
|
43112
43148
|
NLDDFullBleedSection = __decorate([customElement("nldd-full-bleed-section")], NLDDFullBleedSection);
|
|
43113
43149
|
//#endregion
|
|
43114
43150
|
//#region src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.ts
|
|
43115
|
-
var smMax$9 = unsafeCSS(
|
|
43116
|
-
var mdMin$8 = unsafeCSS(
|
|
43117
|
-
var mdMax$6 = unsafeCSS(
|
|
43118
|
-
var lgMin$7 = unsafeCSS(
|
|
43151
|
+
var smMax$9 = unsafeCSS(queryBreakpoints.smMax);
|
|
43152
|
+
var mdMin$8 = unsafeCSS(queryBreakpoints.mdMin);
|
|
43153
|
+
var mdMax$6 = unsafeCSS(queryBreakpoints.mdMax);
|
|
43154
|
+
var lgMin$7 = unsafeCSS(queryBreakpoints.lgMin);
|
|
43119
43155
|
var oneThirdTwoThirdsSectionStyles = css`
|
|
43120
43156
|
:host {
|
|
43121
43157
|
box-sizing: border-box;
|
|
@@ -43222,7 +43258,7 @@ var oneThirdTwoThirdsSectionStyles = css`
|
|
|
43222
43258
|
two near-equal columns; stack to a single column instead. nowrap
|
|
43223
43259
|
stops the column-direction wrap container from stretching the
|
|
43224
43260
|
shorter column to fill height. */
|
|
43225
|
-
@container (max-width:
|
|
43261
|
+
@container (max-width: 48rem) {
|
|
43226
43262
|
flex-direction: column;
|
|
43227
43263
|
flex-wrap: nowrap;
|
|
43228
43264
|
}
|
|
@@ -43241,13 +43277,13 @@ var oneThirdTwoThirdsSectionStyles = css`
|
|
|
43241
43277
|
}
|
|
43242
43278
|
|
|
43243
43279
|
:host([vertical-alignment="center"]) .one-third-two-thirds-section__columns {
|
|
43244
|
-
@container (min-width:
|
|
43280
|
+
@container (min-width: 48.0625rem) {
|
|
43245
43281
|
align-items: center;
|
|
43246
43282
|
}
|
|
43247
43283
|
}
|
|
43248
43284
|
|
|
43249
43285
|
:host([vertical-alignment="bottom"]) .one-third-two-thirds-section__columns {
|
|
43250
|
-
@container (min-width:
|
|
43286
|
+
@container (min-width: 48.0625rem) {
|
|
43251
43287
|
align-items: flex-end;
|
|
43252
43288
|
}
|
|
43253
43289
|
}
|
|
@@ -43312,7 +43348,7 @@ function oneThirdTwoThirdsSectionTemplate(component) {
|
|
|
43312
43348
|
*
|
|
43313
43349
|
* @element nldd-one-third-two-thirds-section
|
|
43314
43350
|
*
|
|
43315
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
43351
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - 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).
|
|
43316
43352
|
* @attr {string} [width] - 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.
|
|
43317
43353
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
43318
43354
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -43359,10 +43395,10 @@ __decorate([property({
|
|
|
43359
43395
|
NLDDOneThirdTwoThirdsSection = __decorate([customElement("nldd-one-third-two-thirds-section")], NLDDOneThirdTwoThirdsSection);
|
|
43360
43396
|
//#endregion
|
|
43361
43397
|
//#region src/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.ts
|
|
43362
|
-
var smMax$8 = unsafeCSS(
|
|
43363
|
-
var mdMin$7 = unsafeCSS(
|
|
43364
|
-
var mdMax$5 = unsafeCSS(
|
|
43365
|
-
var lgMin$6 = unsafeCSS(
|
|
43398
|
+
var smMax$8 = unsafeCSS(queryBreakpoints.smMax);
|
|
43399
|
+
var mdMin$7 = unsafeCSS(queryBreakpoints.mdMin);
|
|
43400
|
+
var mdMax$5 = unsafeCSS(queryBreakpoints.mdMax);
|
|
43401
|
+
var lgMin$6 = unsafeCSS(queryBreakpoints.lgMin);
|
|
43366
43402
|
var twoThirdsOneThirdSectionStyles = css`
|
|
43367
43403
|
:host {
|
|
43368
43404
|
box-sizing: border-box;
|
|
@@ -43469,7 +43505,7 @@ var twoThirdsOneThirdSectionStyles = css`
|
|
|
43469
43505
|
two near-equal columns; stack to a single column instead. nowrap
|
|
43470
43506
|
stops the column-direction wrap container from stretching the
|
|
43471
43507
|
shorter column to fill height. */
|
|
43472
|
-
@container (max-width:
|
|
43508
|
+
@container (max-width: 48rem) {
|
|
43473
43509
|
flex-direction: column;
|
|
43474
43510
|
flex-wrap: nowrap;
|
|
43475
43511
|
}
|
|
@@ -43488,13 +43524,13 @@ var twoThirdsOneThirdSectionStyles = css`
|
|
|
43488
43524
|
}
|
|
43489
43525
|
|
|
43490
43526
|
:host([vertical-alignment="center"]) .two-thirds-one-third-section__columns {
|
|
43491
|
-
@container (min-width:
|
|
43527
|
+
@container (min-width: 48.0625rem) {
|
|
43492
43528
|
align-items: center;
|
|
43493
43529
|
}
|
|
43494
43530
|
}
|
|
43495
43531
|
|
|
43496
43532
|
:host([vertical-alignment="bottom"]) .two-thirds-one-third-section__columns {
|
|
43497
|
-
@container (min-width:
|
|
43533
|
+
@container (min-width: 48.0625rem) {
|
|
43498
43534
|
align-items: flex-end;
|
|
43499
43535
|
}
|
|
43500
43536
|
}
|
|
@@ -43559,7 +43595,7 @@ function twoThirdsOneThirdSectionTemplate(component) {
|
|
|
43559
43595
|
*
|
|
43560
43596
|
* @element nldd-two-thirds-one-third-section
|
|
43561
43597
|
*
|
|
43562
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
43598
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - 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).
|
|
43563
43599
|
* @attr {string} [width] - 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.
|
|
43564
43600
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
43565
43601
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -43606,10 +43642,10 @@ __decorate([property({
|
|
|
43606
43642
|
NLDDTwoThirdsOneThirdSection = __decorate([customElement("nldd-two-thirds-one-third-section")], NLDDTwoThirdsOneThirdSection);
|
|
43607
43643
|
//#endregion
|
|
43608
43644
|
//#region src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.ts
|
|
43609
|
-
var smMax$7 = unsafeCSS(
|
|
43610
|
-
var mdMin$6 = unsafeCSS(
|
|
43611
|
-
var mdMax$4 = unsafeCSS(
|
|
43612
|
-
var lgMin$5 = unsafeCSS(
|
|
43645
|
+
var smMax$7 = unsafeCSS(queryBreakpoints.smMax);
|
|
43646
|
+
var mdMin$6 = unsafeCSS(queryBreakpoints.mdMin);
|
|
43647
|
+
var mdMax$4 = unsafeCSS(queryBreakpoints.mdMax);
|
|
43648
|
+
var lgMin$5 = unsafeCSS(queryBreakpoints.lgMin);
|
|
43613
43649
|
var oneHalfOneHalfSectionStyles = css`
|
|
43614
43650
|
:host {
|
|
43615
43651
|
box-sizing: border-box;
|
|
@@ -43793,7 +43829,7 @@ function oneHalfOneHalfSectionTemplate(component) {
|
|
|
43793
43829
|
*
|
|
43794
43830
|
* @element nldd-one-half-one-half-section
|
|
43795
43831
|
*
|
|
43796
|
-
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'
|
|
43832
|
+
* @attr {'inherit'|'base'|'tinted'|'accent-tinted'} [background] - 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).
|
|
43797
43833
|
* @attr {string} [width] - 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.
|
|
43798
43834
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
43799
43835
|
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
@@ -43840,10 +43876,10 @@ __decorate([property({
|
|
|
43840
43876
|
NLDDOneHalfOneHalfSection = __decorate([customElement("nldd-one-half-one-half-section")], NLDDOneHalfOneHalfSection);
|
|
43841
43877
|
//#endregion
|
|
43842
43878
|
//#region src/components/layout/page-sections/sidebar-section/sidebar-section.styles.ts
|
|
43843
|
-
var smMax$6 = unsafeCSS(
|
|
43844
|
-
var mdMin$5 = unsafeCSS(
|
|
43845
|
-
var mdMax$3 = unsafeCSS(
|
|
43846
|
-
var lgMin$4 = unsafeCSS(
|
|
43879
|
+
var smMax$6 = unsafeCSS(queryBreakpoints.smMax);
|
|
43880
|
+
var mdMin$5 = unsafeCSS(queryBreakpoints.mdMin);
|
|
43881
|
+
var mdMax$3 = unsafeCSS(queryBreakpoints.mdMax);
|
|
43882
|
+
var lgMin$4 = unsafeCSS(queryBreakpoints.lgMin);
|
|
43847
43883
|
var sidebarSectionStyles = css`
|
|
43848
43884
|
:host {
|
|
43849
43885
|
box-sizing: border-box;
|
|
@@ -44006,7 +44042,7 @@ var sidebarSectionStyles = css`
|
|
|
44006
44042
|
box-sizing: border-box;
|
|
44007
44043
|
border-radius: var(--semantics-surfaces-corner-radius);
|
|
44008
44044
|
background-color: var(--_sidebar-section-sidebar-box-background-color);
|
|
44009
|
-
box-shadow: inset 0 0 0 var(--semantics-surfaces-border-width) var(--_sidebar-section-sidebar-box-border-color);
|
|
44045
|
+
box-shadow: inset 0 0 0 var(--semantics-surfaces-highlight-border-width) var(--_sidebar-section-sidebar-box-border-color);
|
|
44010
44046
|
|
|
44011
44047
|
@container (min-width: ${lgMin$4}) {
|
|
44012
44048
|
position: sticky;
|
|
@@ -44090,9 +44126,9 @@ var nlddSidebarSectionTranslations = {
|
|
|
44090
44126
|
};
|
|
44091
44127
|
//#endregion
|
|
44092
44128
|
//#region src/components/layout/sheet/sheet.styles.ts
|
|
44093
|
-
var smMax$5 = unsafeCSS(
|
|
44094
|
-
var mdMin$4 = unsafeCSS(
|
|
44095
|
-
var lgMin$3 = unsafeCSS(
|
|
44129
|
+
var smMax$5 = unsafeCSS(queryBreakpoints.smMax);
|
|
44130
|
+
var mdMin$4 = unsafeCSS(queryBreakpoints.mdMin);
|
|
44131
|
+
var lgMin$3 = unsafeCSS(queryBreakpoints.lgMin);
|
|
44096
44132
|
var sheetStyles = css`
|
|
44097
44133
|
:host {
|
|
44098
44134
|
box-sizing: border-box;
|
|
@@ -44794,7 +44830,6 @@ var _NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitE
|
|
|
44794
44830
|
this.stickyTop = "";
|
|
44795
44831
|
this.stickyBottom = "";
|
|
44796
44832
|
this.collapsed = false;
|
|
44797
|
-
this._lgMin = parseInt(breakpoints.lgMin, 10);
|
|
44798
44833
|
this._hasMeasured = false;
|
|
44799
44834
|
this._sheetOpen = false;
|
|
44800
44835
|
this._onResize = (entries) => {
|
|
@@ -44868,7 +44903,7 @@ var _NLDDSidebarSection = class NLDDSidebarSection extends PageSectionMixin(LitE
|
|
|
44868
44903
|
this._applyCollapsed(this.clientWidth, false);
|
|
44869
44904
|
}
|
|
44870
44905
|
_applyCollapsed(width, announce) {
|
|
44871
|
-
const next = width <
|
|
44906
|
+
const next = width < breakpointPx("lgMin") && !this.noCollapse;
|
|
44872
44907
|
if (next === this.collapsed) return;
|
|
44873
44908
|
this.collapsed = next;
|
|
44874
44909
|
if (announce) this.dispatchEvent(new CustomEvent("collapse-change", {
|
|
@@ -44959,8 +44994,8 @@ var boxStyles = css`
|
|
|
44959
44994
|
:host {
|
|
44960
44995
|
--_box-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
44961
44996
|
--_box-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
44962
|
-
--_box-border-width: var(--semantics-surfaces-border-width);
|
|
44963
|
-
--_box-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
44997
|
+
--_box-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
44998
|
+
--_box-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
44964
44999
|
--_box-highlight-border: inset 0 0 0 var(--_box-border-width) var(--_box-border-color);
|
|
44965
45000
|
|
|
44966
45001
|
display: block;
|
|
@@ -44976,12 +45011,17 @@ var boxStyles = css`
|
|
|
44976
45011
|
|
|
44977
45012
|
:host([background="base"]) {
|
|
44978
45013
|
--_box-background-color: var(--semantics-surfaces-base-background-color);
|
|
44979
|
-
--_box-border-color: var(--semantics-surfaces-base-border-color);
|
|
45014
|
+
--_box-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
45015
|
+
}
|
|
45016
|
+
|
|
45017
|
+
:host([background="accent-tinted"]) {
|
|
45018
|
+
--_box-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
45019
|
+
--_box-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
44980
45020
|
}
|
|
44981
45021
|
|
|
44982
45022
|
:host([background="critical"]) {
|
|
44983
|
-
--_box-background-color: var(--semantics-
|
|
44984
|
-
--_box-border-color: var(--semantics-
|
|
45023
|
+
--_box-background-color: var(--semantics-surfaces-critical-tinted-background-color);
|
|
45024
|
+
--_box-border-color: var(--semantics-surfaces-critical-tinted-highlight-border-color);
|
|
44985
45025
|
}
|
|
44986
45026
|
|
|
44987
45027
|
|
|
@@ -45022,10 +45062,12 @@ function boxTemplate(_component) {
|
|
|
45022
45062
|
* helping users understand their relationship at a glance.
|
|
45023
45063
|
*
|
|
45024
45064
|
* @element nldd-box
|
|
45025
|
-
* @attr {'tinted'|'base'|'critical'} background - 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.
|
|
45065
|
+
* @attr {'tinted'|'base'|'accent-tinted'|'critical'} background - 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.
|
|
45026
45066
|
* - `tinted` (default): a box on a plain page background.
|
|
45027
45067
|
* - `base`: a box on an already-tinted parent (the border ring gets +2
|
|
45028
45068
|
* palette steps so it still reads against a card-on-card).
|
|
45069
|
+
* - `accent-tinted`: a tint of the theme's accent, with the contrast of
|
|
45070
|
+
* `tinted`, for a box that belongs to the service rather than to the page.
|
|
45029
45071
|
* - `critical`: a region whose actions are destructive or irreversible (a
|
|
45030
45072
|
* "danger zone"), tinted and outlined in critical. It carries no ARIA of its
|
|
45031
45073
|
* own: unlike nldd-banner this is not an announcement but a permanent part of
|
|
@@ -45065,14 +45107,14 @@ var cardStyles = css`
|
|
|
45065
45107
|
|
|
45066
45108
|
:host {
|
|
45067
45109
|
--_card-background-color: var(--semantics-surfaces-base-background-color);
|
|
45068
|
-
--_card-border-color: var(--semantics-surfaces-base-border-color);
|
|
45110
|
+
--_card-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
45069
45111
|
--_card-is-hovered-background-color: light-dark(var(--primitives-color-neutral-25), var(--primitives-color-neutral-150));
|
|
45070
45112
|
--_card-is-hovered-border-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-250));
|
|
45071
45113
|
--_card-is-active-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-200));
|
|
45072
45114
|
--_card-is-active-border-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-300));
|
|
45073
45115
|
--_card-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
45074
45116
|
--_card-box-shadow: none;
|
|
45075
|
-
--_card-highlight-border-width: var(--semantics-surfaces-border-width);
|
|
45117
|
+
--_card-highlight-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
45076
45118
|
|
|
45077
45119
|
display: flex;
|
|
45078
45120
|
/* Anchor for the focus ring, which hangs outside the card box. */
|
|
@@ -45090,13 +45132,22 @@ var cardStyles = css`
|
|
|
45090
45132
|
|
|
45091
45133
|
:host([background="tinted"]) {
|
|
45092
45134
|
--_card-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
45093
|
-
--_card-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
45135
|
+
--_card-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
45094
45136
|
--_card-is-hovered-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-100));
|
|
45095
45137
|
--_card-is-hovered-border-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-250));
|
|
45096
45138
|
--_card-is-active-background-color: light-dark(var(--primitives-color-neutral-75), var(--primitives-color-neutral-150));
|
|
45097
45139
|
--_card-is-active-border-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-300));
|
|
45098
45140
|
}
|
|
45099
45141
|
|
|
45142
|
+
:host([background="accent-tinted"]) {
|
|
45143
|
+
--_card-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
45144
|
+
--_card-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
45145
|
+
--_card-is-hovered-background-color: var(--components-card-is-hovered-background-color);
|
|
45146
|
+
--_card-is-hovered-border-color: var(--components-card-is-hovered-border-color);
|
|
45147
|
+
--_card-is-active-background-color: var(--components-card-is-active-background-color);
|
|
45148
|
+
--_card-is-active-border-color: var(--components-card-is-active-border-color);
|
|
45149
|
+
}
|
|
45150
|
+
|
|
45100
45151
|
|
|
45101
45152
|
/* # Block */
|
|
45102
45153
|
|
|
@@ -45286,7 +45337,7 @@ var nlddCardTranslations = {
|
|
|
45286
45337
|
*
|
|
45287
45338
|
* @element nldd-card
|
|
45288
45339
|
*
|
|
45289
|
-
* @attr {'base'|'tinted'} background - Surface color of the card: `base` (default) on a plain page background, `tinted` when the card should stand out against a base surface
|
|
45340
|
+
* @attr {'base'|'tinted'|'accent-tinted'} background - 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`
|
|
45290
45341
|
* @attr {string} accessible-label - Accessible name of the card; with `href`/`button` it names the link or button, otherwise the card region
|
|
45291
45342
|
* @attr {object} translations - Override translation keys (e.g. the "opent in nieuw tabblad" announcement)
|
|
45292
45343
|
* @attr {string} href - Makes the whole card a link to this URL (empty = no link)
|
|
@@ -45378,10 +45429,10 @@ __decorate([state()], NLDDCard.prototype, "_actionFocused", void 0);
|
|
|
45378
45429
|
NLDDCard = __decorate([customElement("nldd-card")], NLDDCard);
|
|
45379
45430
|
//#endregion
|
|
45380
45431
|
//#region src/components/layout/collection/collection.styles.ts
|
|
45381
|
-
var smMax$4 = unsafeCSS(
|
|
45382
|
-
var mdMin$3 = unsafeCSS(
|
|
45383
|
-
var mdMax$2 = unsafeCSS(
|
|
45384
|
-
var lgMin$2 = unsafeCSS(
|
|
45432
|
+
var smMax$4 = unsafeCSS(queryBreakpoints.smMax);
|
|
45433
|
+
var mdMin$3 = unsafeCSS(queryBreakpoints.mdMin);
|
|
45434
|
+
var mdMax$2 = unsafeCSS(queryBreakpoints.mdMax);
|
|
45435
|
+
var lgMin$2 = unsafeCSS(queryBreakpoints.lgMin);
|
|
45385
45436
|
var collectionStyles = css`
|
|
45386
45437
|
:host {
|
|
45387
45438
|
box-sizing: border-box;
|
|
@@ -45636,6 +45687,12 @@ var nlddCollectionTranslations = {
|
|
|
45636
45687
|
* grid of your own: the collection sets the columns from `item-min-width` and
|
|
45637
45688
|
* the available width, and the gap per breakpoint.
|
|
45638
45689
|
*
|
|
45690
|
+
* A grid keeps as many columns as fit, also when there are fewer items, so a
|
|
45691
|
+
* page of results lines up with the next. For a fixed set of a few cards
|
|
45692
|
+
* without paging, such as three points on a landing page, use
|
|
45693
|
+
* `nldd-container layout="grid"` instead: its empty columns collapse, so the
|
|
45694
|
+
* cards fill the row.
|
|
45695
|
+
*
|
|
45639
45696
|
* In grid and stack modes, items are paginated via a load-more button. In
|
|
45640
45697
|
* horizontal scroll, the prev/next controls and the edge fade appear only when
|
|
45641
45698
|
* the items overflow the container. Use horizontal scroll for items that
|
|
@@ -46291,10 +46348,10 @@ __decorate([property({
|
|
|
46291
46348
|
NLDDWindow = __decorate([customElement("nldd-window")], NLDDWindow);
|
|
46292
46349
|
//#endregion
|
|
46293
46350
|
//#region src/components/layout/page-footer/page-footer.styles.ts
|
|
46294
|
-
var smMax$3 = unsafeCSS(
|
|
46295
|
-
var mdMin$2 = unsafeCSS(
|
|
46296
|
-
var mdMax$1 = unsafeCSS(
|
|
46297
|
-
var lgMin$1 = unsafeCSS(
|
|
46351
|
+
var smMax$3 = unsafeCSS(queryBreakpoints.smMax);
|
|
46352
|
+
var mdMin$2 = unsafeCSS(queryBreakpoints.mdMin);
|
|
46353
|
+
var mdMax$1 = unsafeCSS(queryBreakpoints.mdMax);
|
|
46354
|
+
var lgMin$1 = unsafeCSS(queryBreakpoints.lgMin);
|
|
46298
46355
|
var pageFooterStyles = css`
|
|
46299
46356
|
:host {
|
|
46300
46357
|
box-sizing: border-box;
|
|
@@ -47141,7 +47198,7 @@ var tableStyles = css`
|
|
|
47141
47198
|
--_table-corner-radius: var(--semantics-tables-corner-radius);
|
|
47142
47199
|
--_table-column-gap: var(--semantics-tables-column-gap);
|
|
47143
47200
|
--_table-background-color: var(--semantics-surfaces-base-background-color);
|
|
47144
|
-
--_table-border-color: var(--semantics-surfaces-base-border-color);
|
|
47201
|
+
--_table-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
47145
47202
|
/* Shared so the focus-visible rule can compose the focus ring over the
|
|
47146
47203
|
border ring with var(...) instead of repeating the inset literal. */
|
|
47147
47204
|
--_table-border-shadow: inset 0 0 0 var(--semantics-tables-border-width) var(--_table-border-color);
|
|
@@ -47171,7 +47228,7 @@ var tableStyles = css`
|
|
|
47171
47228
|
/* Default surface is base; tinted is opt-in. */
|
|
47172
47229
|
:host([background="tinted"]) {
|
|
47173
47230
|
--_table-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
47174
|
-
--_table-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
47231
|
+
--_table-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
47175
47232
|
}
|
|
47176
47233
|
|
|
47177
47234
|
/* Keyboard focus while the table scrolls (it gains tabindex in JS): the
|
|
@@ -47358,11 +47415,7 @@ var nlddTableTranslations = { "components.table.accessible-label": "Tabel" };
|
|
|
47358
47415
|
*
|
|
47359
47416
|
* @slot - The row's cells (`nldd-cell` and variants), one per column
|
|
47360
47417
|
*/
|
|
47361
|
-
var _NLDDTable
|
|
47362
|
-
var _NLDDTableRow;
|
|
47363
|
-
var SM_MAX = parseInt(breakpoints.smMax, 10);
|
|
47364
|
-
var MD_MAX = parseInt(breakpoints.mdMax, 10);
|
|
47365
|
-
var NLDDTable = (_NLDDTable = class NLDDTable extends LitElement {
|
|
47418
|
+
var _NLDDTable = class NLDDTable extends LitElement {
|
|
47366
47419
|
constructor(..._args) {
|
|
47367
47420
|
super(..._args);
|
|
47368
47421
|
this.background = "base";
|
|
@@ -47450,8 +47503,9 @@ var NLDDTable = (_NLDDTable = class NLDDTable extends LitElement {
|
|
|
47450
47503
|
/** The track list for the current width: a breakpoint override when set,
|
|
47451
47504
|
* otherwise the base `columns`. */
|
|
47452
47505
|
_activeColumns() {
|
|
47453
|
-
|
|
47454
|
-
if (this._width <=
|
|
47506
|
+
const fontSize = rootFontSize();
|
|
47507
|
+
if (this._width <= breakpointPx("smMax", fontSize)) return this.smColumns || this.columns;
|
|
47508
|
+
if (this._width <= breakpointPx("mdMax", fontSize)) return this.mdColumns || this.columns;
|
|
47455
47509
|
return this.lgColumns || this.columns;
|
|
47456
47510
|
}
|
|
47457
47511
|
_applyColumns() {
|
|
@@ -47486,7 +47540,9 @@ var NLDDTable = (_NLDDTable = class NLDDTable extends LitElement {
|
|
|
47486
47540
|
render() {
|
|
47487
47541
|
return tableTemplate();
|
|
47488
47542
|
}
|
|
47489
|
-
}
|
|
47543
|
+
};
|
|
47544
|
+
var _NLDDTableRow;
|
|
47545
|
+
var NLDDTable = (_NLDDTable.styles = tableStyles, _NLDDTable);
|
|
47490
47546
|
__decorate([property({
|
|
47491
47547
|
reflect: true,
|
|
47492
47548
|
converter: reflectNonDefault("base")
|
|
@@ -48451,14 +48507,16 @@ var stepCellStyles = css`
|
|
|
48451
48507
|
--_step-cell-marker-corner-radius: var(--primitives-corner-radius-full);
|
|
48452
48508
|
|
|
48453
48509
|
--_step-cell-line-width: var(--primitives-space-2);
|
|
48454
|
-
--_step-cell-track-color:
|
|
48510
|
+
--_step-cell-track-color: var(--semantics-steps-progress-color);
|
|
48455
48511
|
--_step-cell-future-fill-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
48456
48512
|
--_step-cell-marker-z-index: 1;
|
|
48457
48513
|
--_step-cell-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
48458
48514
|
--_step-cell-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
48459
|
-
--_step-cell-
|
|
48515
|
+
--_step-cell-past-fill-color: var(--semantics-steps-is-past-background-color);
|
|
48516
|
+
--_step-cell-marker-content-color: var(--semantics-steps-is-past-content-color);
|
|
48460
48517
|
--_step-cell-future-content-color: var(--semantics-content-secondary-color);
|
|
48461
|
-
--_step-cell-current-fill-color:
|
|
48518
|
+
--_step-cell-current-fill-color: var(--semantics-steps-is-current-background-color);
|
|
48519
|
+
--_step-cell-current-content-color: var(--semantics-content-accent-color);
|
|
48462
48520
|
--_step-cell-icon-size: calc(var(--_step-cell-marker-size) * 2 / 3);
|
|
48463
48521
|
--_step-cell-marker-offset: 0px;
|
|
48464
48522
|
--_step-cell-marker-center: 50%;
|
|
@@ -48484,6 +48542,7 @@ var stepCellStyles = css`
|
|
|
48484
48542
|
|
|
48485
48543
|
:host([level="minor"]) {
|
|
48486
48544
|
--_step-cell-marker-size: var(--primitives-space-10);
|
|
48545
|
+
--_step-cell-past-fill-color: var(--_step-cell-track-color);
|
|
48487
48546
|
}
|
|
48488
48547
|
|
|
48489
48548
|
:host([size="md"][level="minor"]) {
|
|
@@ -48615,12 +48674,13 @@ var stepCellStyles = css`
|
|
|
48615
48674
|
|
|
48616
48675
|
:host([status="past"]) .step-cell__marker,
|
|
48617
48676
|
:host(:not([status])) .step-cell__marker {
|
|
48618
|
-
|
|
48677
|
+
border-color: var(--_step-cell-past-fill-color);
|
|
48678
|
+
background-color: var(--_step-cell-past-fill-color);
|
|
48619
48679
|
}
|
|
48620
48680
|
|
|
48621
48681
|
:host([status="current"]) .step-cell__marker {
|
|
48622
48682
|
background-color: var(--_step-cell-current-fill-color);
|
|
48623
|
-
color: var(--_step-cell-
|
|
48683
|
+
color: var(--_step-cell-current-content-color);
|
|
48624
48684
|
}
|
|
48625
48685
|
|
|
48626
48686
|
:host([status="future"]) .step-cell__marker {
|
|
@@ -49083,11 +49143,11 @@ var menuBarItemStyles = css`
|
|
|
49083
49143
|
--_menu-bar-item-indicator-z-index: 0;
|
|
49084
49144
|
--_menu-bar-item-content-z-index: 1;
|
|
49085
49145
|
--_menu-bar-item-focus-z-index: 1;
|
|
49086
|
-
--_menu-bar-item-content-color: var(--
|
|
49146
|
+
--_menu-bar-item-content-color: var(--components-menu-bar-item-content-color);
|
|
49087
49147
|
--_menu-bar-item-font: var(--primitives-font-body-md-medium-flat);
|
|
49088
49148
|
--_menu-bar-item-is-hovered-indicator-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-200));
|
|
49089
49149
|
--_menu-bar-item-is-expanded-indicator-background-color: light-dark(var(--primitives-color-neutral-75), var(--primitives-color-neutral-250));
|
|
49090
|
-
--_menu-bar-item-is-current-indicator-background-color: var(--
|
|
49150
|
+
--_menu-bar-item-is-current-indicator-background-color: var(--components-menu-bar-item-is-current-indicator-color);
|
|
49091
49151
|
--_menu-bar-item-is-current-indicator-height: var(--primitives-space-4);
|
|
49092
49152
|
|
|
49093
49153
|
${inheritedTextReset}
|
|
@@ -50317,10 +50377,10 @@ __decorate([property({ type: String })], NLDDSkipLink.prototype, "href", void 0)
|
|
|
50317
50377
|
NLDDSkipLink = __decorate([customElement("nldd-skip-link")], NLDDSkipLink);
|
|
50318
50378
|
//#endregion
|
|
50319
50379
|
//#region src/components/navigation/top-navigation-bar/top-navigation-bar.styles.ts
|
|
50320
|
-
var smMax$2 = unsafeCSS(
|
|
50321
|
-
var mdMin$1 = unsafeCSS(
|
|
50322
|
-
var mdMax = unsafeCSS(
|
|
50323
|
-
var lgMin = unsafeCSS(
|
|
50380
|
+
var smMax$2 = unsafeCSS(queryBreakpoints.smMax);
|
|
50381
|
+
var mdMin$1 = unsafeCSS(queryBreakpoints.mdMin);
|
|
50382
|
+
var mdMax = unsafeCSS(queryBreakpoints.mdMax);
|
|
50383
|
+
var lgMin = unsafeCSS(queryBreakpoints.lgMin);
|
|
50324
50384
|
var topNavigationBarStyles = css`
|
|
50325
50385
|
:host {
|
|
50326
50386
|
box-sizing: border-box;
|
|
@@ -50409,6 +50469,11 @@ var topNavigationBarStyles = css`
|
|
|
50409
50469
|
gap: var(--primitives-space-8);
|
|
50410
50470
|
align-items: center;
|
|
50411
50471
|
width: 100%;
|
|
50472
|
+
|
|
50473
|
+
/* Off the 4px grid on purpose: puts the wordmark where the printed logo has it. */
|
|
50474
|
+
@container (min-width: ${mdMin$1}) {
|
|
50475
|
+
gap: var(--primitives-space-10);
|
|
50476
|
+
}
|
|
50412
50477
|
max-width: var(--_top-navigation-bar-max-width);
|
|
50413
50478
|
}
|
|
50414
50479
|
|
|
@@ -50550,12 +50615,12 @@ var topNavigationBarStyles = css`
|
|
|
50550
50615
|
|
|
50551
50616
|
/* The distance the text keeps from the top edge once it outgrows the
|
|
50552
50617
|
ribbon. Only at the top: space under it would raise the bar for
|
|
50553
|
-
nothing. The minimum gives up the same
|
|
50554
|
-
on the middle of the ribbon rather than
|
|
50618
|
+
nothing. The minimum gives up the same 16, so the text still centres
|
|
50619
|
+
on the middle of the ribbon rather than 8px below it. */
|
|
50555
50620
|
@container (max-width: ${smMax$2}) {
|
|
50556
50621
|
align-self: start;
|
|
50557
|
-
min-height: calc(var(--_top-navigation-bar-logo-height) - var(--primitives-space-
|
|
50558
|
-
padding-block-start: var(--primitives-space-
|
|
50622
|
+
min-height: calc(var(--_top-navigation-bar-logo-height) - var(--primitives-space-16));
|
|
50623
|
+
padding-block-start: var(--primitives-space-16);
|
|
50559
50624
|
}
|
|
50560
50625
|
}
|
|
50561
50626
|
|
|
@@ -51191,7 +51256,7 @@ var _NLDDTopNavigationBar = class NLDDTopNavigationBar extends withTranslations(
|
|
|
51191
51256
|
_isSmBreakpoint() {
|
|
51192
51257
|
const container = this.shadowRoot?.querySelector(".top-navigation-bar");
|
|
51193
51258
|
if (!container) return false;
|
|
51194
|
-
return container.clientWidth <=
|
|
51259
|
+
return container.clientWidth <= breakpointPx("smMax");
|
|
51195
51260
|
}
|
|
51196
51261
|
async _loadGlobalMenuSheetDependencies() {
|
|
51197
51262
|
await Promise.all([
|
|
@@ -51203,7 +51268,7 @@ var _NLDDTopNavigationBar = class NLDDTopNavigationBar extends withTranslations(
|
|
|
51203
51268
|
Promise.resolve().then(() => list_item_exports),
|
|
51204
51269
|
Promise.resolve().then(() => text_cell_exports),
|
|
51205
51270
|
Promise.resolve().then(() => icon_cell_exports),
|
|
51206
|
-
import("./icon-
|
|
51271
|
+
import("./icon-zNX9A6d3.js").then((n) => n.n)
|
|
51207
51272
|
]);
|
|
51208
51273
|
}
|
|
51209
51274
|
_createGlobalMenuSheet() {
|
|
@@ -51645,26 +51710,26 @@ var tabBarItemStyles = css`
|
|
|
51645
51710
|
}
|
|
51646
51711
|
|
|
51647
51712
|
:host([current]) .tab-bar__item {
|
|
51648
|
-
--_tab-bar-item-highlight-border-color: var(--semantics-
|
|
51713
|
+
--_tab-bar-item-highlight-border-color: var(--semantics-tabs-is-current-highlight-border-color);
|
|
51649
51714
|
|
|
51650
|
-
background-color: var(--semantics-
|
|
51651
|
-
color: var(--semantics-
|
|
51715
|
+
background-color: var(--semantics-tabs-is-current-background-color);
|
|
51716
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
51652
51717
|
}
|
|
51653
51718
|
|
|
51654
51719
|
@media (hover: hover) {
|
|
51655
51720
|
:host([current]) .tab-bar__item:hover {
|
|
51656
|
-
--_tab-bar-item-highlight-border-color: var(--semantics-
|
|
51721
|
+
--_tab-bar-item-highlight-border-color: var(--semantics-tabs-is-current-is-hovered-highlight-border-color);
|
|
51657
51722
|
|
|
51658
|
-
background-color: var(--semantics-
|
|
51659
|
-
color: var(--semantics-
|
|
51723
|
+
background-color: var(--semantics-tabs-is-current-is-hovered-background-color);
|
|
51724
|
+
color: var(--semantics-tabs-is-current-is-hovered-content-color);
|
|
51660
51725
|
}
|
|
51661
51726
|
}
|
|
51662
51727
|
|
|
51663
51728
|
:host([current]) .tab-bar__item:active {
|
|
51664
|
-
--_tab-bar-item-highlight-border-color: var(--semantics-
|
|
51729
|
+
--_tab-bar-item-highlight-border-color: var(--semantics-tabs-is-current-is-active-highlight-border-color);
|
|
51665
51730
|
|
|
51666
|
-
background-color: var(--semantics-
|
|
51667
|
-
color: var(--semantics-
|
|
51731
|
+
background-color: var(--semantics-tabs-is-current-is-active-background-color);
|
|
51732
|
+
color: var(--semantics-tabs-is-current-is-active-content-color);
|
|
51668
51733
|
}
|
|
51669
51734
|
|
|
51670
51735
|
@media (forced-colors: active) {
|
|
@@ -52276,8 +52341,8 @@ var documentTabBarStyles = css`
|
|
|
52276
52341
|
--_document-tab-bar-overflow-button-reserve: 52px; /* Used for overflowButtonReserve. Overflow button width + spacing */
|
|
52277
52342
|
--_document-tab-bar-dismiss-button-is-hovered-background-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-250));
|
|
52278
52343
|
--_document-tab-bar-dismiss-button-is-active-background-color: light-dark(var(--primitives-color-neutral-200), var(--primitives-color-neutral-300));
|
|
52279
|
-
--_document-tab-bar-dismiss-button-is-selected-is-hovered-background-color:
|
|
52280
|
-
--_document-tab-bar-dismiss-button-is-selected-is-active-background-color:
|
|
52344
|
+
--_document-tab-bar-dismiss-button-is-selected-is-hovered-background-color: var(--semantics-tabs-is-current-is-hovered-background-color);
|
|
52345
|
+
--_document-tab-bar-dismiss-button-is-selected-is-active-background-color: var(--semantics-tabs-is-current-is-active-background-color);
|
|
52281
52346
|
--_document-tab-bar-tab-title-font: var(--primitives-font-body-sm-medium-flat);
|
|
52282
52347
|
|
|
52283
52348
|
${inheritedTextReset}
|
|
@@ -52455,12 +52520,12 @@ var documentTabBarStyles = css`
|
|
|
52455
52520
|
}
|
|
52456
52521
|
|
|
52457
52522
|
.document-tab-bar__drag-clone.is-selected .document-tab-bar__item-tab {
|
|
52458
|
-
background-color: var(--semantics-
|
|
52523
|
+
background-color: var(--semantics-tabs-is-current-background-color);
|
|
52459
52524
|
}
|
|
52460
52525
|
|
|
52461
52526
|
.document-tab-bar__drag-clone.is-selected .document-tab-bar__item-text,
|
|
52462
52527
|
.document-tab-bar__drag-clone.is-selected .document-tab-bar__item-supporting-text {
|
|
52463
|
-
color: var(--semantics-
|
|
52528
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
52464
52529
|
}
|
|
52465
52530
|
|
|
52466
52531
|
.document-tab-bar__drag-clone .document-tab-bar__item-supporting-text {
|
|
@@ -52497,9 +52562,9 @@ var documentTabBarItemStyles = css`
|
|
|
52497
52562
|
--_document-tab-bar-item-highlight-border-color: var(--semantics-buttons-neutral-tinted-highlight-border-color);
|
|
52498
52563
|
--_document-tab-bar-item-is-hovered-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-hovered-highlight-border-color);
|
|
52499
52564
|
--_document-tab-bar-item-is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-active-highlight-border-color);
|
|
52500
|
-
--_document-tab-bar-item-is-selected-highlight-border-color: var(--semantics-
|
|
52501
|
-
--_document-tab-bar-item-is-selected-is-hovered-highlight-border-color: var(--semantics-
|
|
52502
|
-
--_document-tab-bar-item-is-selected-is-active-highlight-border-color: var(--semantics-
|
|
52565
|
+
--_document-tab-bar-item-is-selected-highlight-border-color: var(--semantics-tabs-is-current-highlight-border-color);
|
|
52566
|
+
--_document-tab-bar-item-is-selected-is-hovered-highlight-border-color: var(--semantics-tabs-is-current-is-hovered-highlight-border-color);
|
|
52567
|
+
--_document-tab-bar-item-is-selected-is-active-highlight-border-color: var(--semantics-tabs-is-current-is-active-highlight-border-color);
|
|
52503
52568
|
|
|
52504
52569
|
--_document-tab-bar-item-secondary-content-color: var(--semantics-buttons-neutral-tinted-content-secondary-color);
|
|
52505
52570
|
--_document-tab-bar-item-tab-title-font: var(--primitives-font-body-sm-medium-flat);
|
|
@@ -52567,22 +52632,23 @@ var documentTabBarItemStyles = css`
|
|
|
52567
52632
|
}
|
|
52568
52633
|
|
|
52569
52634
|
:host([selected]) .document-tab-bar__item-tab {
|
|
52570
|
-
background-color: var(--semantics-
|
|
52635
|
+
background-color: var(--semantics-tabs-is-current-background-color);
|
|
52571
52636
|
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-selected-highlight-border-color);
|
|
52572
|
-
--_document-tab-bar-item-secondary-content-color: var(--semantics-
|
|
52637
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-tabs-is-current-content-color);
|
|
52573
52638
|
}
|
|
52574
52639
|
|
|
52575
52640
|
@media (hover: hover) {
|
|
52576
52641
|
:host([selected]) .document-tab-bar__item-tab:hover {
|
|
52577
|
-
background-color: var(--semantics-
|
|
52642
|
+
background-color: var(--semantics-tabs-is-current-is-hovered-background-color);
|
|
52578
52643
|
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-selected-is-hovered-highlight-border-color);
|
|
52579
|
-
--_document-tab-bar-item-secondary-content-color: var(--semantics-
|
|
52644
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-tabs-is-current-is-hovered-content-color);
|
|
52580
52645
|
}
|
|
52581
52646
|
}
|
|
52582
52647
|
|
|
52583
52648
|
:host([selected]) .document-tab-bar__item-tab:active {
|
|
52649
|
+
background-color: var(--semantics-tabs-is-current-is-active-background-color);
|
|
52584
52650
|
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-selected-is-active-highlight-border-color);
|
|
52585
|
-
--_document-tab-bar-item-secondary-content-color: var(--semantics-
|
|
52651
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-tabs-is-current-is-active-content-color);
|
|
52586
52652
|
}
|
|
52587
52653
|
|
|
52588
52654
|
/* ## Focus */
|
|
@@ -52599,7 +52665,7 @@ var documentTabBarItemStyles = css`
|
|
|
52599
52665
|
.document-tab-bar__item-normal {
|
|
52600
52666
|
display: contents;
|
|
52601
52667
|
|
|
52602
|
-
@container (max-width:
|
|
52668
|
+
@container (max-width: 12.5rem) {
|
|
52603
52669
|
display: none;
|
|
52604
52670
|
}
|
|
52605
52671
|
}
|
|
@@ -52607,7 +52673,7 @@ var documentTabBarItemStyles = css`
|
|
|
52607
52673
|
.document-tab-bar__item-short {
|
|
52608
52674
|
display: none;
|
|
52609
52675
|
|
|
52610
|
-
@container (max-width:
|
|
52676
|
+
@container (max-width: 12.5rem) {
|
|
52611
52677
|
display: contents;
|
|
52612
52678
|
}
|
|
52613
52679
|
}
|
|
@@ -52625,7 +52691,7 @@ var documentTabBarItemStyles = css`
|
|
|
52625
52691
|
}
|
|
52626
52692
|
|
|
52627
52693
|
:host([selected]) .document-tab-bar__item-text {
|
|
52628
|
-
color: var(--semantics-
|
|
52694
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
52629
52695
|
}
|
|
52630
52696
|
|
|
52631
52697
|
.document-tab-bar__item-short-text {
|
|
@@ -52638,7 +52704,7 @@ var documentTabBarItemStyles = css`
|
|
|
52638
52704
|
}
|
|
52639
52705
|
|
|
52640
52706
|
:host([selected]) .document-tab-bar__item-short-text {
|
|
52641
|
-
color: var(--semantics-
|
|
52707
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
52642
52708
|
}
|
|
52643
52709
|
|
|
52644
52710
|
|
|
@@ -52695,7 +52761,7 @@ var documentTabBarItemStyles = css`
|
|
|
52695
52761
|
}
|
|
52696
52762
|
|
|
52697
52763
|
:host([selected]) .document-tab-bar__item-dismiss-button {
|
|
52698
|
-
color: var(--semantics-
|
|
52764
|
+
color: var(--semantics-tabs-is-current-content-color);
|
|
52699
52765
|
}
|
|
52700
52766
|
|
|
52701
52767
|
@media (hover: hover) {
|
|
@@ -53864,7 +53930,7 @@ var paginationStyles = css`
|
|
|
53864
53930
|
.pagination__page-buttons {
|
|
53865
53931
|
display: contents;
|
|
53866
53932
|
|
|
53867
|
-
@container (max-width:
|
|
53933
|
+
@container (max-width: 25rem) {
|
|
53868
53934
|
display: none;
|
|
53869
53935
|
}
|
|
53870
53936
|
}
|
|
@@ -53872,7 +53938,7 @@ var paginationStyles = css`
|
|
|
53872
53938
|
.pagination__compact {
|
|
53873
53939
|
display: none;
|
|
53874
53940
|
|
|
53875
|
-
@container (max-width:
|
|
53941
|
+
@container (max-width: 25rem) {
|
|
53876
53942
|
display: contents;
|
|
53877
53943
|
}
|
|
53878
53944
|
}
|
|
@@ -54126,7 +54192,7 @@ __decorate([property({ type: Object })], NLDDPagination.prototype, "translations
|
|
|
54126
54192
|
NLDDPagination = __decorate([customElement("nldd-pagination")], NLDDPagination);
|
|
54127
54193
|
//#endregion
|
|
54128
54194
|
//#region src/components/status-and-feedback/modal-dialog/modal-dialog.styles.ts
|
|
54129
|
-
var mdMin = unsafeCSS(
|
|
54195
|
+
var mdMin = unsafeCSS(queryBreakpoints.mdMin);
|
|
54130
54196
|
var modalDialogStyles = css`
|
|
54131
54197
|
:host {
|
|
54132
54198
|
box-sizing: border-box;
|
|
@@ -54470,10 +54536,10 @@ var bannerStyles = css`
|
|
|
54470
54536
|
:host {
|
|
54471
54537
|
--_banner-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
54472
54538
|
--_banner-padding: var(--primitives-space-12);
|
|
54473
|
-
--_banner-background-color: var(--semantics-
|
|
54474
|
-
--_banner-border-color: var(--semantics-
|
|
54539
|
+
--_banner-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
54540
|
+
--_banner-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
54475
54541
|
--_banner-border-width: var(--primitives-border-width-thin);
|
|
54476
|
-
--_banner-icon-color: var(--
|
|
54542
|
+
--_banner-icon-color: var(--primitives-color-neutral-750);
|
|
54477
54543
|
--_banner-icon-size: var(--primitives-space-32);
|
|
54478
54544
|
--_banner-content-color: var(--semantics-content-color);
|
|
54479
54545
|
--_banner-text-icon-offset: calc((var(--_banner-icon-size) - var(--primitives-font-size-100) * var(--primitives-line-height-tight)) / 2);
|
|
@@ -54510,27 +54576,27 @@ var bannerStyles = css`
|
|
|
54510
54576
|
}
|
|
54511
54577
|
|
|
54512
54578
|
:host([variant="accent"]) {
|
|
54513
|
-
--_banner-background-color: var(--semantics-
|
|
54514
|
-
--_banner-border-color: var(--semantics-
|
|
54515
|
-
--_banner-icon-color: var(--
|
|
54579
|
+
--_banner-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
54580
|
+
--_banner-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
54581
|
+
--_banner-icon-color: var(--components-banner-accent-icon-color);
|
|
54516
54582
|
}
|
|
54517
54583
|
|
|
54518
54584
|
:host([variant="success"]) {
|
|
54519
|
-
--_banner-background-color: var(--semantics-
|
|
54520
|
-
--_banner-border-color: var(--semantics-
|
|
54521
|
-
--_banner-icon-color: var(--
|
|
54585
|
+
--_banner-background-color: var(--semantics-surfaces-success-tinted-background-color);
|
|
54586
|
+
--_banner-border-color: var(--semantics-surfaces-success-tinted-highlight-border-color);
|
|
54587
|
+
--_banner-icon-color: light-dark(var(--primitives-color-success-550), var(--primitives-color-success-650));
|
|
54522
54588
|
}
|
|
54523
54589
|
|
|
54524
54590
|
:host([variant="warning"]) {
|
|
54525
|
-
--_banner-background-color: var(--semantics-
|
|
54526
|
-
--_banner-border-color: var(--semantics-
|
|
54527
|
-
--_banner-icon-color: var(--
|
|
54591
|
+
--_banner-background-color: var(--semantics-surfaces-warning-tinted-background-color);
|
|
54592
|
+
--_banner-border-color: var(--semantics-surfaces-warning-tinted-highlight-border-color);
|
|
54593
|
+
--_banner-icon-color: light-dark(var(--primitives-color-warning-450), var(--primitives-color-warning-650));
|
|
54528
54594
|
}
|
|
54529
54595
|
|
|
54530
54596
|
:host([variant="critical"]) {
|
|
54531
|
-
--_banner-background-color: var(--semantics-
|
|
54532
|
-
--_banner-border-color: var(--semantics-
|
|
54533
|
-
--_banner-icon-color: var(--
|
|
54597
|
+
--_banner-background-color: var(--semantics-surfaces-critical-tinted-background-color);
|
|
54598
|
+
--_banner-border-color: var(--semantics-surfaces-critical-tinted-highlight-border-color);
|
|
54599
|
+
--_banner-icon-color: var(--primitives-color-critical-600);
|
|
54534
54600
|
}
|
|
54535
54601
|
|
|
54536
54602
|
/* # Block */
|
|
@@ -54869,7 +54935,7 @@ __decorate([state()], NLDDBanner.prototype, "_hasActions", void 0);
|
|
|
54869
54935
|
NLDDBanner = __decorate([customElement("nldd-banner")], NLDDBanner);
|
|
54870
54936
|
//#endregion
|
|
54871
54937
|
//#region src/components/status-and-feedback/notification/notification.styles.ts
|
|
54872
|
-
var smMax$1 = unsafeCSS(
|
|
54938
|
+
var smMax$1 = unsafeCSS(queryBreakpoints.smMax);
|
|
54873
54939
|
var notificationStyles = css`
|
|
54874
54940
|
:host {
|
|
54875
54941
|
--_notification-width: var(--primitives-area-400);
|
|
@@ -54913,7 +54979,7 @@ var notificationStyles = css`
|
|
|
54913
54979
|
}
|
|
54914
54980
|
|
|
54915
54981
|
:host([variant="accent"]) {
|
|
54916
|
-
--_notification-icon-color:
|
|
54982
|
+
--_notification-icon-color: var(--components-notification-icon-color);
|
|
54917
54983
|
}
|
|
54918
54984
|
|
|
54919
54985
|
:host([variant="success"]) {
|
|
@@ -55746,13 +55812,13 @@ var badgeStyles = css`
|
|
|
55746
55812
|
|
|
55747
55813
|
:host {
|
|
55748
55814
|
--_badge-custom-color: transparent;
|
|
55749
|
-
--_badge-background-color: var(--
|
|
55750
|
-
--_badge-border-color: var(--
|
|
55815
|
+
--_badge-background-color: light-dark(var(--primitives-color-critical-650), var(--primitives-color-critical-450));
|
|
55816
|
+
--_badge-border-color: light-dark(var(--primitives-color-critical-600), var(--primitives-color-critical-500));
|
|
55751
55817
|
--_badge-border-width: var(--primitives-border-width-thin);
|
|
55752
55818
|
--_badge-height: var(--primitives-space-20);
|
|
55753
55819
|
--_badge-inline-padding: var(--primitives-space-6);
|
|
55754
55820
|
--_badge-gap: var(--primitives-space-3);
|
|
55755
|
-
--_badge-content-color: var(--
|
|
55821
|
+
--_badge-content-color: light-dark(var(--primitives-color-critical-0), var(--primitives-color-critical-1000));
|
|
55756
55822
|
--_badge-font: var(--primitives-font-body-xs-medium-flat);
|
|
55757
55823
|
--_badge-dot-size: var(--primitives-space-12);
|
|
55758
55824
|
--_badge-icon-size: var(--primitives-space-14);
|
|
@@ -55792,140 +55858,33 @@ var badgeStyles = css`
|
|
|
55792
55858
|
--_badge-content-color: var(--semantics-content-contrast-color);
|
|
55793
55859
|
}
|
|
55794
55860
|
|
|
55795
|
-
:host([color="accent"])
|
|
55796
|
-
|
|
55797
|
-
--_badge-
|
|
55798
|
-
--_badge-
|
|
55861
|
+
:host([color="accent"]),
|
|
55862
|
+
:host([data-color-fallback]) {
|
|
55863
|
+
--_badge-background-color: var(--components-badge-accent-background-color);
|
|
55864
|
+
--_badge-border-color: var(--components-badge-accent-highlight-border-color);
|
|
55865
|
+
--_badge-content-color: var(--components-badge-accent-content-color);
|
|
55799
55866
|
}
|
|
55800
55867
|
|
|
55801
55868
|
:host([color="neutral"]) {
|
|
55802
|
-
--_badge-background-color: var(--
|
|
55803
|
-
--_badge-border-color: var(--
|
|
55804
|
-
--_badge-content-color: var(--
|
|
55869
|
+
--_badge-background-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-450));
|
|
55870
|
+
--_badge-border-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-500));
|
|
55871
|
+
--_badge-content-color: light-dark(var(--primitives-color-neutral-0), var(--primitives-color-neutral-1000));
|
|
55805
55872
|
}
|
|
55806
55873
|
|
|
55807
55874
|
:host([color="warning"]) {
|
|
55808
|
-
--_badge-background-color: var(--
|
|
55809
|
-
--_badge-border-color: var(--
|
|
55810
|
-
--_badge-content-color: var(--
|
|
55875
|
+
--_badge-background-color: light-dark(var(--primitives-color-warning-300), var(--primitives-color-warning-700));
|
|
55876
|
+
--_badge-border-color: light-dark(var(--primitives-color-warning-400), var(--primitives-color-warning-600));
|
|
55877
|
+
--_badge-content-color: light-dark(var(--primitives-color-warning-1000), var(--primitives-color-warning-0));
|
|
55811
55878
|
}
|
|
55812
55879
|
|
|
55813
55880
|
:host([color="success"]) {
|
|
55814
|
-
--_badge-background-color: var(--
|
|
55815
|
-
--_badge-border-color: var(--
|
|
55816
|
-
--_badge-content-color: var(--
|
|
55817
|
-
}
|
|
55818
|
-
|
|
55819
|
-
|
|
55820
|
-
/* ## Color — rijkskleuren */
|
|
55821
|
-
|
|
55822
|
-
:host([color="lintblauw"]) {
|
|
55823
|
-
--_badge-background-color: var(--semantics-categories-lintblauw-filled-background-color);
|
|
55824
|
-
--_badge-border-color: var(--semantics-categories-lintblauw-filled-highlight-border-color);
|
|
55825
|
-
--_badge-content-color: var(--semantics-categories-lintblauw-filled-content-color);
|
|
55826
|
-
}
|
|
55827
|
-
|
|
55828
|
-
:host([color="donkerblauw"]) {
|
|
55829
|
-
--_badge-background-color: var(--semantics-categories-donkerblauw-filled-background-color);
|
|
55830
|
-
--_badge-border-color: var(--semantics-categories-donkerblauw-filled-highlight-border-color);
|
|
55831
|
-
--_badge-content-color: var(--semantics-categories-donkerblauw-filled-content-color);
|
|
55832
|
-
}
|
|
55833
|
-
|
|
55834
|
-
:host([color="hemelblauw"]) {
|
|
55835
|
-
--_badge-background-color: var(--semantics-categories-hemelblauw-filled-background-color);
|
|
55836
|
-
--_badge-border-color: var(--semantics-categories-hemelblauw-filled-highlight-border-color);
|
|
55837
|
-
--_badge-content-color: var(--semantics-categories-hemelblauw-filled-content-color);
|
|
55838
|
-
}
|
|
55839
|
-
|
|
55840
|
-
:host([color="lichtblauw"]) {
|
|
55841
|
-
--_badge-background-color: var(--semantics-categories-lichtblauw-filled-background-color);
|
|
55842
|
-
--_badge-border-color: var(--semantics-categories-lichtblauw-filled-highlight-border-color);
|
|
55843
|
-
--_badge-content-color: var(--semantics-categories-lichtblauw-filled-content-color);
|
|
55844
|
-
}
|
|
55845
|
-
|
|
55846
|
-
:host([color="paars"]) {
|
|
55847
|
-
--_badge-background-color: var(--semantics-categories-paars-filled-background-color);
|
|
55848
|
-
--_badge-border-color: var(--semantics-categories-paars-filled-highlight-border-color);
|
|
55849
|
-
--_badge-content-color: var(--semantics-categories-paars-filled-content-color);
|
|
55850
|
-
}
|
|
55851
|
-
|
|
55852
|
-
:host([color="violet"]) {
|
|
55853
|
-
--_badge-background-color: var(--semantics-categories-violet-filled-background-color);
|
|
55854
|
-
--_badge-border-color: var(--semantics-categories-violet-filled-highlight-border-color);
|
|
55855
|
-
--_badge-content-color: var(--semantics-categories-violet-filled-content-color);
|
|
55881
|
+
--_badge-background-color: var(--primitives-color-success-500);
|
|
55882
|
+
--_badge-border-color: var(--primitives-color-success-550);
|
|
55883
|
+
--_badge-content-color: light-dark(var(--primitives-color-success-0), var(--primitives-color-success-1000));
|
|
55856
55884
|
}
|
|
55857
55885
|
|
|
55858
|
-
:host([color="robijnrood"]) {
|
|
55859
|
-
--_badge-background-color: var(--semantics-categories-robijnrood-filled-background-color);
|
|
55860
|
-
--_badge-border-color: var(--semantics-categories-robijnrood-filled-highlight-border-color);
|
|
55861
|
-
--_badge-content-color: var(--semantics-categories-robijnrood-filled-content-color);
|
|
55862
|
-
}
|
|
55863
55886
|
|
|
55864
|
-
|
|
55865
|
-
--_badge-background-color: var(--semantics-categories-roze-filled-background-color);
|
|
55866
|
-
--_badge-border-color: var(--semantics-categories-roze-filled-highlight-border-color);
|
|
55867
|
-
--_badge-content-color: var(--semantics-categories-roze-filled-content-color);
|
|
55868
|
-
}
|
|
55869
|
-
|
|
55870
|
-
:host([color="rood"]) {
|
|
55871
|
-
--_badge-background-color: var(--semantics-categories-rood-filled-background-color);
|
|
55872
|
-
--_badge-border-color: var(--semantics-categories-rood-filled-highlight-border-color);
|
|
55873
|
-
--_badge-content-color: var(--semantics-categories-rood-filled-content-color);
|
|
55874
|
-
}
|
|
55875
|
-
|
|
55876
|
-
:host([color="oranje"]) {
|
|
55877
|
-
--_badge-background-color: var(--semantics-categories-oranje-filled-background-color);
|
|
55878
|
-
--_badge-border-color: var(--semantics-categories-oranje-filled-highlight-border-color);
|
|
55879
|
-
--_badge-content-color: var(--semantics-categories-oranje-filled-content-color);
|
|
55880
|
-
}
|
|
55881
|
-
|
|
55882
|
-
:host([color="donkergeel"]) {
|
|
55883
|
-
--_badge-background-color: var(--semantics-categories-donkergeel-filled-background-color);
|
|
55884
|
-
--_badge-border-color: var(--semantics-categories-donkergeel-filled-highlight-border-color);
|
|
55885
|
-
--_badge-content-color: var(--semantics-categories-donkergeel-filled-content-color);
|
|
55886
|
-
}
|
|
55887
|
-
|
|
55888
|
-
:host([color="geel"]) {
|
|
55889
|
-
--_badge-background-color: var(--semantics-categories-geel-filled-background-color);
|
|
55890
|
-
--_badge-border-color: var(--semantics-categories-geel-filled-highlight-border-color);
|
|
55891
|
-
--_badge-content-color: var(--semantics-categories-geel-filled-content-color);
|
|
55892
|
-
}
|
|
55893
|
-
|
|
55894
|
-
:host([color="donkerbruin"]) {
|
|
55895
|
-
--_badge-background-color: var(--semantics-categories-donkerbruin-filled-background-color);
|
|
55896
|
-
--_badge-border-color: var(--semantics-categories-donkerbruin-filled-highlight-border-color);
|
|
55897
|
-
--_badge-content-color: var(--semantics-categories-donkerbruin-filled-content-color);
|
|
55898
|
-
}
|
|
55899
|
-
|
|
55900
|
-
:host([color="bruin"]) {
|
|
55901
|
-
--_badge-background-color: var(--semantics-categories-bruin-filled-background-color);
|
|
55902
|
-
--_badge-border-color: var(--semantics-categories-bruin-filled-highlight-border-color);
|
|
55903
|
-
--_badge-content-color: var(--semantics-categories-bruin-filled-content-color);
|
|
55904
|
-
}
|
|
55905
|
-
|
|
55906
|
-
:host([color="donkergroen"]) {
|
|
55907
|
-
--_badge-background-color: var(--semantics-categories-donkergroen-filled-background-color);
|
|
55908
|
-
--_badge-border-color: var(--semantics-categories-donkergroen-filled-highlight-border-color);
|
|
55909
|
-
--_badge-content-color: var(--semantics-categories-donkergroen-filled-content-color);
|
|
55910
|
-
}
|
|
55911
|
-
|
|
55912
|
-
:host([color="groen"]) {
|
|
55913
|
-
--_badge-background-color: var(--semantics-categories-groen-filled-background-color);
|
|
55914
|
-
--_badge-border-color: var(--semantics-categories-groen-filled-highlight-border-color);
|
|
55915
|
-
--_badge-content-color: var(--semantics-categories-groen-filled-content-color);
|
|
55916
|
-
}
|
|
55917
|
-
|
|
55918
|
-
:host([color="mosgroen"]) {
|
|
55919
|
-
--_badge-background-color: var(--semantics-categories-mosgroen-filled-background-color);
|
|
55920
|
-
--_badge-border-color: var(--semantics-categories-mosgroen-filled-highlight-border-color);
|
|
55921
|
-
--_badge-content-color: var(--semantics-categories-mosgroen-filled-content-color);
|
|
55922
|
-
}
|
|
55923
|
-
|
|
55924
|
-
:host([color="mintgroen"]) {
|
|
55925
|
-
--_badge-background-color: var(--semantics-categories-mintgroen-filled-background-color);
|
|
55926
|
-
--_badge-border-color: var(--semantics-categories-mintgroen-filled-highlight-border-color);
|
|
55927
|
-
--_badge-content-color: var(--semantics-categories-mintgroen-filled-content-color);
|
|
55928
|
-
}
|
|
55887
|
+
/* ## Custom color */
|
|
55929
55888
|
|
|
55930
55889
|
/* color on the host rather than on the fill: the contrast token reads
|
|
55931
55890
|
currentColor, so the text lands on black or white without a second formula
|
|
@@ -56115,7 +56074,7 @@ var nlddBadgeTranslations = { "components.badge.notification-label": "Notificati
|
|
|
56115
56074
|
*
|
|
56116
56075
|
* @element nldd-badge
|
|
56117
56076
|
* @attr {string} size - Size: 'sm' | 'md' (default: 'md')
|
|
56118
|
-
* @attr {
|
|
56077
|
+
* @attr {'critical'|'accent'|'neutral'|'warning'|'success'|'inherit'} color - 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.
|
|
56119
56078
|
* @attr {string} custom-color - 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.
|
|
56120
56079
|
* @attr {boolean} pulse - Grows a ring out of the badge and fades it, for something happening right now (a live connection, an outage). Respects `prefers-reduced-motion`.
|
|
56121
56080
|
* @attr {string} text - Text (takes precedence over number)
|
|
@@ -56125,7 +56084,16 @@ var nlddBadgeTranslations = { "components.badge.notification-label": "Notificati
|
|
|
56125
56084
|
* @attr {string} accessible-label - Accessible label for screen readers. Falls back to text/number; otherwise to the i18n default ("Notificatie").
|
|
56126
56085
|
* @attr {boolean} decorative - Hides the badge from assistive software (use when the text beside it says the same, such as a dot next to a status word)
|
|
56127
56086
|
*/
|
|
56128
|
-
var _NLDDBadge
|
|
56087
|
+
var _NLDDBadge;
|
|
56088
|
+
var COLORS = /* @__PURE__ */ new Set([
|
|
56089
|
+
"critical",
|
|
56090
|
+
"accent",
|
|
56091
|
+
"neutral",
|
|
56092
|
+
"warning",
|
|
56093
|
+
"success",
|
|
56094
|
+
"inherit"
|
|
56095
|
+
]);
|
|
56096
|
+
var NLDDBadge = (_NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeTranslations) {
|
|
56129
56097
|
constructor(..._args) {
|
|
56130
56098
|
super(..._args);
|
|
56131
56099
|
this.size = "md";
|
|
@@ -56139,6 +56107,11 @@ var _NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeT
|
|
|
56139
56107
|
this.accessibleLabel = "";
|
|
56140
56108
|
this.decorative = false;
|
|
56141
56109
|
}
|
|
56110
|
+
willUpdate(changed) {
|
|
56111
|
+
if (!changed.has("color")) return;
|
|
56112
|
+
const known = COLORS.has(this.color);
|
|
56113
|
+
this.toggleAttribute("data-color-fallback", !known);
|
|
56114
|
+
}
|
|
56142
56115
|
updated(changed) {
|
|
56143
56116
|
if (!changed.has("customColor")) return;
|
|
56144
56117
|
if (this.customColor) this.style.setProperty("--_badge-custom-color", this.customColor);
|
|
@@ -56166,8 +56139,7 @@ var _NLDDBadge = class NLDDBadge extends withTranslations(LitElement, nlddBadgeT
|
|
|
56166
56139
|
render() {
|
|
56167
56140
|
return template(this);
|
|
56168
56141
|
}
|
|
56169
|
-
};
|
|
56170
|
-
var NLDDBadge = (_NLDDBadge.styles = badgeStyles, _NLDDBadge);
|
|
56142
|
+
}, _NLDDBadge.styles = badgeStyles, _NLDDBadge);
|
|
56171
56143
|
__decorate([property({
|
|
56172
56144
|
reflect: true,
|
|
56173
56145
|
converter: reflectNonDefault("md")
|
|
@@ -56229,8 +56201,8 @@ var progressBarStyles = css`
|
|
|
56229
56201
|
--_progress-bar-supporting-text-color: var(--semantics-content-secondary-color);
|
|
56230
56202
|
--_progress-bar-text-font: var(--primitives-font-body-md-regular-tight);
|
|
56231
56203
|
--_progress-bar-supporting-text-font: var(--primitives-font-body-md-regular-tight);
|
|
56232
|
-
--_progress-bar-indeterminate-background-color: var(--
|
|
56233
|
-
--_progress-bar-indeterminate-border-color: var(--
|
|
56204
|
+
--_progress-bar-indeterminate-background-color: var(--components-progress-bar-accent-background-color);
|
|
56205
|
+
--_progress-bar-indeterminate-border-color: var(--components-progress-bar-accent-highlight-border-color);
|
|
56234
56206
|
--_progress-bar-indeterminate-border-width: var(--primitives-border-width-thin);
|
|
56235
56207
|
--_progress-bar-indeterminate-bar-width: 20%;
|
|
56236
56208
|
--_progress-bar-indeterminate-duration: 800ms;
|
|
@@ -56374,13 +56346,13 @@ var progressBarStyles = css`
|
|
|
56374
56346
|
animation: progress-bar-indeterminate var(--_progress-bar-indeterminate-duration) ease-in-out infinite alternate;
|
|
56375
56347
|
}
|
|
56376
56348
|
|
|
56377
|
-
@container (min-width:
|
|
56349
|
+
@container (min-width: 25.0625rem) and (max-width: 45rem) {
|
|
56378
56350
|
.progress-bar__indeterminate-indicator::before {
|
|
56379
56351
|
--_progress-bar-indeterminate-duration: 1000ms;
|
|
56380
56352
|
}
|
|
56381
56353
|
}
|
|
56382
56354
|
|
|
56383
|
-
@container (min-width:
|
|
56355
|
+
@container (min-width: 45.0625rem) {
|
|
56384
56356
|
.progress-bar__indeterminate-indicator::before {
|
|
56385
56357
|
--_progress-bar-indeterminate-duration: 1200ms;
|
|
56386
56358
|
}
|
|
@@ -56426,8 +56398,8 @@ var progressBarSegmentIndicatorStyles = css`
|
|
|
56426
56398
|
:host {
|
|
56427
56399
|
--_progress-bar-segment-indicator-width: var(--context-progress-bar-segment-indicator-width, 0%);
|
|
56428
56400
|
--_progress-bar-segment-indicator-min-width: var(--primitives-space-2);
|
|
56429
|
-
--_progress-bar-segment-indicator-background-color: var(--
|
|
56430
|
-
--_progress-bar-segment-indicator-border-color: var(--
|
|
56401
|
+
--_progress-bar-segment-indicator-background-color: var(--components-progress-bar-accent-background-color);
|
|
56402
|
+
--_progress-bar-segment-indicator-border-color: var(--components-progress-bar-accent-highlight-border-color);
|
|
56431
56403
|
--_progress-bar-segment-indicator-border-width: var(--primitives-border-width-thin);
|
|
56432
56404
|
--_progress-bar-segment-indicator-corner-radius: var(--primitives-corner-radius-full);
|
|
56433
56405
|
--_progress-bar-segment-indicator-distribution-corner-radius: var(--primitives-corner-radius-xxs);
|
|
@@ -56743,7 +56715,7 @@ var nlddProgressBarTranslations = {
|
|
|
56743
56715
|
* @element nldd-progress-bar-segment-indicator
|
|
56744
56716
|
*
|
|
56745
56717
|
* @attr {number} value - Share of the parent's total (default 0; <=0 hides segment)
|
|
56746
|
-
* @attr {string} color - Color. Semantic (neutral, accent, success, warning, critical) or a Rijkskleur. Default 'accent'.
|
|
56718
|
+
* @attr {string} color - 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.
|
|
56747
56719
|
* @attr {string} name - Name for screenreader text (optional)
|
|
56748
56720
|
* @attr {string} tooltip-text - Override of the auto-generated tooltip text
|
|
56749
56721
|
*/
|
|
@@ -57133,7 +57105,7 @@ var progressCircleStyles = css`
|
|
|
57133
57105
|
/* ## Arc color per variant */
|
|
57134
57106
|
|
|
57135
57107
|
.progress-circle__segment-indicator--neutral { stroke: var(--semantics-categories-neutral-filled-background-color); }
|
|
57136
|
-
.progress-circle__segment-indicator--accent { stroke: var(--
|
|
57108
|
+
.progress-circle__segment-indicator--accent { stroke: var(--components-progress-circle-accent-background-color); }
|
|
57137
57109
|
.progress-circle__segment-indicator--success { stroke: var(--semantics-categories-success-filled-background-color); }
|
|
57138
57110
|
.progress-circle__segment-indicator--warning { stroke: var(--semantics-categories-warning-filled-background-color); }
|
|
57139
57111
|
.progress-circle__segment-indicator--critical { stroke: var(--semantics-categories-critical-filled-background-color); }
|
|
@@ -57203,8 +57175,8 @@ var progressCircleStyles = css`
|
|
|
57203
57175
|
/* # Indeterminate fill + border color follow the color variant; default accent (blue) */
|
|
57204
57176
|
|
|
57205
57177
|
:host {
|
|
57206
|
-
--_progress-circle-indeterminate-background-color: var(--
|
|
57207
|
-
--_progress-circle-indeterminate-border-color: var(--
|
|
57178
|
+
--_progress-circle-indeterminate-background-color: var(--components-progress-circle-accent-background-color);
|
|
57179
|
+
--_progress-circle-indeterminate-border-color: var(--components-progress-circle-accent-highlight-border-color);
|
|
57208
57180
|
}
|
|
57209
57181
|
|
|
57210
57182
|
:host([color="neutral"]) { --_progress-circle-indeterminate-background-color: var(--semantics-categories-neutral-filled-background-color); --_progress-circle-indeterminate-border-color: var(--semantics-categories-neutral-filled-highlight-border-color); }
|
|
@@ -57419,7 +57391,7 @@ function progressCircleTemplate(component, onSlotChange) {
|
|
|
57419
57391
|
result="edge"
|
|
57420
57392
|
></feComposite>
|
|
57421
57393
|
<feFlood class="progress-circle__flood"
|
|
57422
|
-
style=${styleMap({ floodColor: `var(--semantics-categories-${color}-filled-highlight-border-color)` })}
|
|
57394
|
+
style=${styleMap({ floodColor: color === "accent" ? "var(--components-progress-circle-accent-highlight-border-color)" : `var(--semantics-categories-${color}-filled-highlight-border-color)` })}
|
|
57423
57395
|
result="flood"
|
|
57424
57396
|
></feFlood>
|
|
57425
57397
|
<feComposite
|
|
@@ -57572,7 +57544,7 @@ var nlddProgressCircleTranslations = {
|
|
|
57572
57544
|
* @element nldd-progress-circle-segment-indicator
|
|
57573
57545
|
*
|
|
57574
57546
|
* @attr {number} value - Share of the parent's total (default 0; <=0 hides segment)
|
|
57575
|
-
* @attr {string} color - Color (semantic or Rijkskleur). Default 'accent'.
|
|
57547
|
+
* @attr {string} color - 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.
|
|
57576
57548
|
* @attr {string} name - Optional name used in the combined tooltip + screenreader text
|
|
57577
57549
|
*/
|
|
57578
57550
|
var _NLDDProgressCircleSegmentIndicator;
|
|
@@ -57896,7 +57868,7 @@ var nlddStepBarTranslations = {
|
|
|
57896
57868
|
};
|
|
57897
57869
|
//#endregion
|
|
57898
57870
|
//#region src/components/status-and-feedback/step-bar/step-bar.styles.ts
|
|
57899
|
-
var smMax = unsafeCSS(
|
|
57871
|
+
var smMax = unsafeCSS(queryBreakpoints.smMax);
|
|
57900
57872
|
var stepBarStyles = css`
|
|
57901
57873
|
:host {
|
|
57902
57874
|
box-sizing: border-box;
|
|
@@ -57911,7 +57883,7 @@ var stepBarStyles = css`
|
|
|
57911
57883
|
--_step-bar-compact-bar-corner-radius: var(--primitives-corner-radius-full);
|
|
57912
57884
|
--_step-bar-track-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
57913
57885
|
--_step-bar-compact-bar-height: var(--primitives-space-6);
|
|
57914
|
-
--_step-bar-progress-color: var(--semantics-
|
|
57886
|
+
--_step-bar-progress-color: var(--semantics-steps-progress-color);
|
|
57915
57887
|
--_step-bar-item-gap: var(--primitives-space-4);
|
|
57916
57888
|
--_step-bar-marker-size: var(--primitives-space-24);
|
|
57917
57889
|
--_step-bar-track-thickness: var(--primitives-space-2);
|
|
@@ -57920,8 +57892,10 @@ var stepBarStyles = css`
|
|
|
57920
57892
|
--_step-bar-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
57921
57893
|
--_step-bar-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
57922
57894
|
--_step-bar-marker-content-color: var(--semantics-content-secondary-color);
|
|
57923
|
-
--_step-bar-
|
|
57924
|
-
--_step-bar-
|
|
57895
|
+
--_step-bar-past-fill-color: var(--semantics-steps-is-past-background-color);
|
|
57896
|
+
--_step-bar-progress-content-color: var(--semantics-steps-is-past-content-color);
|
|
57897
|
+
--_step-bar-current-fill-color: var(--semantics-steps-is-current-background-color);
|
|
57898
|
+
--_step-bar-current-content-color: var(--semantics-content-accent-color);
|
|
57925
57899
|
--_step-bar-icon-size: var(--primitives-space-16);
|
|
57926
57900
|
--_step-bar-title-color: var(--semantics-content-secondary-color);
|
|
57927
57901
|
--_step-bar-current-title-color: var(--semantics-content-color);
|
|
@@ -58086,14 +58060,14 @@ var stepBarItemStyles = css`
|
|
|
58086
58060
|
}
|
|
58087
58061
|
|
|
58088
58062
|
.step-bar__item.is-past .step-bar__item-marker {
|
|
58089
|
-
background-color: var(--_step-bar-
|
|
58063
|
+
background-color: var(--_step-bar-past-fill-color);
|
|
58090
58064
|
color: var(--_step-bar-progress-content-color);
|
|
58091
58065
|
}
|
|
58092
58066
|
|
|
58093
58067
|
.step-bar__item.is-current .step-bar__item-marker {
|
|
58094
58068
|
border: var(--_step-bar-track-thickness) solid var(--_step-bar-progress-color);
|
|
58095
58069
|
background-color: var(--_step-bar-current-fill-color);
|
|
58096
|
-
color: var(--_step-bar-
|
|
58070
|
+
color: var(--_step-bar-current-content-color);
|
|
58097
58071
|
}
|
|
58098
58072
|
|
|
58099
58073
|
.step-bar__item-icon {
|
|
@@ -58460,11 +58434,11 @@ var statusBarStyles = css`
|
|
|
58460
58434
|
|
|
58461
58435
|
:host {
|
|
58462
58436
|
--_status-bar-corner-radius: var(--primitives-corner-radius-none);
|
|
58463
|
-
--_status-bar-background-color: var(--
|
|
58437
|
+
--_status-bar-background-color: light-dark(var(--primitives-color-neutral-600), var(--primitives-color-neutral-450));
|
|
58464
58438
|
--_status-bar-height: var(--semantics-controls-xs-min-size);
|
|
58465
58439
|
--_status-bar-inline-padding: var(--primitives-space-8);
|
|
58466
58440
|
--_status-bar-gap: var(--primitives-space-2);
|
|
58467
|
-
--_status-bar-content-color: var(--
|
|
58441
|
+
--_status-bar-content-color: light-dark(var(--primitives-color-neutral-0), var(--primitives-color-neutral-1000));
|
|
58468
58442
|
--_status-bar-font: var(--primitives-font-body-xs-medium-flat);
|
|
58469
58443
|
--_status-bar-is-hovered-background-color: light-dark(var(--primitives-color-neutral-650), var(--primitives-color-neutral-500));
|
|
58470
58444
|
--_status-bar-is-active-background-color: light-dark(var(--primitives-color-neutral-700), var(--primitives-color-neutral-550));
|
|
@@ -58479,29 +58453,29 @@ var statusBarStyles = css`
|
|
|
58479
58453
|
}
|
|
58480
58454
|
|
|
58481
58455
|
:host([variant="accent"]) {
|
|
58482
|
-
--_status-bar-background-color: var(--
|
|
58483
|
-
--_status-bar-content-color: var(--
|
|
58484
|
-
--_status-bar-is-hovered-background-color:
|
|
58485
|
-
--_status-bar-is-active-background-color:
|
|
58456
|
+
--_status-bar-background-color: var(--components-status-bar-accent-background-color);
|
|
58457
|
+
--_status-bar-content-color: var(--components-status-bar-accent-content-color);
|
|
58458
|
+
--_status-bar-is-hovered-background-color: var(--components-status-bar-accent-is-hovered-background-color);
|
|
58459
|
+
--_status-bar-is-active-background-color: var(--components-status-bar-accent-is-active-background-color);
|
|
58486
58460
|
}
|
|
58487
58461
|
|
|
58488
58462
|
:host([variant="success"]) {
|
|
58489
|
-
--_status-bar-background-color: var(--
|
|
58490
|
-
--_status-bar-content-color: var(--
|
|
58463
|
+
--_status-bar-background-color: var(--primitives-color-success-500);
|
|
58464
|
+
--_status-bar-content-color: light-dark(var(--primitives-color-success-0), var(--primitives-color-success-1000));
|
|
58491
58465
|
--_status-bar-is-hovered-background-color: var(--primitives-color-success-550);
|
|
58492
58466
|
--_status-bar-is-active-background-color: var(--primitives-color-success-600);
|
|
58493
58467
|
}
|
|
58494
58468
|
|
|
58495
58469
|
:host([variant="warning"]) {
|
|
58496
|
-
--_status-bar-background-color: var(--
|
|
58497
|
-
--_status-bar-content-color: var(--
|
|
58498
|
-
--_status-bar-is-hovered-background-color: light-dark(var(--primitives-color-warning-
|
|
58499
|
-
--_status-bar-is-active-background-color: light-dark(var(--primitives-color-warning-
|
|
58470
|
+
--_status-bar-background-color: light-dark(var(--primitives-color-warning-300), var(--primitives-color-warning-700));
|
|
58471
|
+
--_status-bar-content-color: light-dark(var(--primitives-color-warning-1000), var(--primitives-color-warning-0));
|
|
58472
|
+
--_status-bar-is-hovered-background-color: light-dark(var(--primitives-color-warning-350), var(--primitives-color-warning-650));
|
|
58473
|
+
--_status-bar-is-active-background-color: light-dark(var(--primitives-color-warning-400), var(--primitives-color-warning-600));
|
|
58500
58474
|
}
|
|
58501
58475
|
|
|
58502
58476
|
:host([variant="critical"]) {
|
|
58503
|
-
--_status-bar-background-color: var(--
|
|
58504
|
-
--_status-bar-content-color: var(--
|
|
58477
|
+
--_status-bar-background-color: light-dark(var(--primitives-color-critical-650), var(--primitives-color-critical-450));
|
|
58478
|
+
--_status-bar-content-color: light-dark(var(--primitives-color-critical-0), var(--primitives-color-critical-1000));
|
|
58505
58479
|
--_status-bar-is-hovered-background-color: light-dark(var(--primitives-color-critical-700), var(--primitives-color-critical-500));
|
|
58506
58480
|
--_status-bar-is-active-background-color: light-dark(var(--primitives-color-critical-750), var(--primitives-color-critical-550));
|
|
58507
58481
|
}
|