@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
|
@@ -7,6 +7,9 @@ export const textEditorStyles = css `
|
|
|
7
7
|
|
|
8
8
|
:host {
|
|
9
9
|
--_text-editor-caret-width: var(--primitives-border-width-regular);
|
|
10
|
+
--_text-editor-caret-color: var(--components-text-editor-caret-color);
|
|
11
|
+
--_text-editor-drop-cursor-color: var(--components-text-editor-drop-cursor-color);
|
|
12
|
+
--_text-editor-drag-ghost-background-color: var(--components-text-editor-drag-ghost-background-color);
|
|
10
13
|
--_text-editor-caret-ring-width: var(--primitives-border-width-thin);
|
|
11
14
|
--_text-editor-corner-radius: 0;
|
|
12
15
|
--_text-editor-background-color: transparent;
|
|
@@ -56,18 +59,18 @@ export const textEditorStyles = css `
|
|
|
56
59
|
--_text-editor-annotation-badge-size: 1.5em;
|
|
57
60
|
--_text-editor-annotation-badge-font-scale: 0.62;
|
|
58
61
|
--_text-editor-link-badge-size: calc(1em + 2 * var(--_text-editor-token-block-padding-fit));
|
|
59
|
-
--_text-editor-link-badge-content-color: var(--
|
|
60
|
-
--_text-editor-link-badge-background-color: var(--
|
|
61
|
-
--_text-editor-link-badge-highlight-border-color: var(--
|
|
62
|
-
--_text-editor-link-badge-is-hovered-background-color:
|
|
63
|
-
--_text-editor-link-badge-is-active-background-color:
|
|
64
|
-
--_text-editor-link-badge-is-hovered-highlight-border-color:
|
|
65
|
-
--_text-editor-link-badge-is-active-highlight-border-color:
|
|
62
|
+
--_text-editor-link-badge-content-color: var(--components-text-editor-link-badge-content-color);
|
|
63
|
+
--_text-editor-link-badge-background-color: var(--components-text-editor-link-badge-background-color);
|
|
64
|
+
--_text-editor-link-badge-highlight-border-color: var(--components-text-editor-link-badge-highlight-border-color);
|
|
65
|
+
--_text-editor-link-badge-is-hovered-background-color: var(--components-text-editor-link-badge-is-hovered-background-color);
|
|
66
|
+
--_text-editor-link-badge-is-active-background-color: var(--components-text-editor-link-badge-is-active-background-color);
|
|
67
|
+
--_text-editor-link-badge-is-hovered-highlight-border-color: var(--components-text-editor-link-badge-is-hovered-highlight-border-color);
|
|
68
|
+
--_text-editor-link-badge-is-active-highlight-border-color: var(--components-text-editor-link-badge-is-active-highlight-border-color);
|
|
66
69
|
--_text-editor-mention-icon-size: 0.95em;
|
|
67
|
-
--_text-editor-mention-token-background-color: var(--
|
|
68
|
-
--_text-editor-mention-token-content-color: var(--
|
|
69
|
-
--_text-editor-mention-token-is-selected-background-color: var(--
|
|
70
|
-
--_text-editor-mention-token-is-selected-content-color: var(--
|
|
70
|
+
--_text-editor-mention-token-background-color: var(--components-text-editor-mention-background-color);
|
|
71
|
+
--_text-editor-mention-token-content-color: var(--components-text-editor-mention-content-color);
|
|
72
|
+
--_text-editor-mention-token-is-selected-background-color: var(--components-text-editor-mention-is-selected-background-color);
|
|
73
|
+
--_text-editor-mention-token-is-selected-content-color: var(--components-text-editor-mention-is-selected-content-color);
|
|
71
74
|
--_text-editor-rows: 6;
|
|
72
75
|
|
|
73
76
|
${inheritedTextReset}
|
|
@@ -151,7 +154,7 @@ export const textEditorStyles = css `
|
|
|
151
154
|
/* accent-700: it keeps a >=525 lightness gap from both the base and tinted
|
|
152
155
|
surfaces in light and dark (accent-600 fell just short on white), so the
|
|
153
156
|
caret stays clearly visible without washing out. */
|
|
154
|
-
border-left-color: var(--
|
|
157
|
+
border-left-color: var(--_text-editor-caret-color);
|
|
155
158
|
border-left-width: var(--_text-editor-caret-width);
|
|
156
159
|
/* CodeMirror centers its own 1.2px caret with a -0.6px margin. Ours is wider,
|
|
157
160
|
so recenter it on the insertion point from its own width. */
|
|
@@ -531,7 +534,7 @@ export const textEditorStyles = css `
|
|
|
531
534
|
position: absolute;
|
|
532
535
|
width: var(--primitives-border-width-regular);
|
|
533
536
|
border-radius: var(--primitives-border-width-thin);
|
|
534
|
-
background-color: var(--
|
|
537
|
+
background-color: var(--_text-editor-drop-cursor-color);
|
|
535
538
|
box-shadow: 0 0 0 var(--primitives-border-width-thin) var(--semantics-surfaces-base-background-color);
|
|
536
539
|
pointer-events: none;
|
|
537
540
|
z-index: 4;
|
|
@@ -543,7 +546,7 @@ export const textEditorStyles = css `
|
|
|
543
546
|
max-width: 24ch;
|
|
544
547
|
padding: 0 var(--primitives-space-4);
|
|
545
548
|
border-radius: var(--_text-editor-token-corner-radius);
|
|
546
|
-
background-color:
|
|
549
|
+
background-color: var(--_text-editor-drag-ghost-background-color);
|
|
547
550
|
color: var(--_text-editor-content-color);
|
|
548
551
|
font: var(--_text-editor-font);
|
|
549
552
|
white-space: nowrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-editor.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"text-editor.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/text-editor/text-editor.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyE/B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAghBrB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css, unsafeCSS } from 'lit';
|
|
2
2
|
import { inheritedTextReset } from '../../../assets/styles/shadow-resets.js';
|
|
3
|
-
import {
|
|
4
|
-
const mdMin = unsafeCSS(
|
|
3
|
+
import { queryBreakpoints } from '../../../assets/styles/breakpoints.js';
|
|
4
|
+
const mdMin = unsafeCSS(queryBreakpoints.mdMin);
|
|
5
5
|
export const timeFieldStyles = css `
|
|
6
6
|
:host {
|
|
7
7
|
box-sizing: border-box;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"time-field.styles.js","sourceRoot":"","sources":["../../../../src/components/inputs/time-field/time-field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAEhD,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;IAwB9B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAyKA,KAAK;;;;;CAK1B,CAAC"}
|
|
@@ -13,8 +13,8 @@ export const timePickerStyles = css `
|
|
|
13
13
|
--_time-picker-control-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
14
14
|
--_time-picker-list-item-font: var(--primitives-font-body-md-medium-flat);
|
|
15
15
|
--_time-picker-list-item-is-hovered-background-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-150));
|
|
16
|
-
--_time-picker-selection-background-color: var(--semantics-controls-is-
|
|
17
|
-
--_time-picker-selection-content-color: var(--semantics-controls-is-
|
|
16
|
+
--_time-picker-selection-background-color: var(--semantics-controls-is-selected-indicator-color);
|
|
17
|
+
--_time-picker-selection-content-color: var(--semantics-controls-is-selected-contrast-color);
|
|
18
18
|
--_time-picker-list-width: calc(var(--_time-picker-control-min-size) * 1.5);
|
|
19
19
|
--_time-picker-rows: 7;
|
|
20
20
|
--_time-picker-list-height: calc(var(--_time-picker-control-min-size) * var(--_time-picker-rows));
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
* @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.
|
|
29
29
|
* @attr {'text' | 'icon' | 'icon-and-text'} variant - What renders: text, icon, or both. Unset → auto-detect from text/icon attributes.
|
|
30
30
|
* @attr {string} accessible-label - Accessible label; required for icon-only usage
|
|
31
|
+
* @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.
|
|
32
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
33
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
34
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
31
35
|
* @attr {boolean} required - Required state. Set by nldd-toggle-button-group.
|
|
32
36
|
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
33
37
|
*
|
|
@@ -73,6 +77,10 @@ export declare class NLDDToggleButton extends NLDDToggleButton_base {
|
|
|
73
77
|
selectedIcon: string;
|
|
74
78
|
variant: ToggleButtonVariant | '';
|
|
75
79
|
accessibleLabel: string;
|
|
80
|
+
shortcut: string;
|
|
81
|
+
shortcutMac: string;
|
|
82
|
+
shortcutWindows: string;
|
|
83
|
+
shortcutLinux: string;
|
|
76
84
|
/** Whether an icon is present via attribute or slot. */
|
|
77
85
|
get _hasIcon(): boolean;
|
|
78
86
|
private _warnedA11y;
|
|
@@ -95,6 +103,8 @@ export declare class NLDDToggleButton extends NLDDToggleButton_base {
|
|
|
95
103
|
_groupHasSelection: boolean;
|
|
96
104
|
/** The aria-label this button wrote on itself, so it only takes back its own. */
|
|
97
105
|
private _appliedRadioLabel;
|
|
106
|
+
/** Renders again when shortcuts become available or unavailable, for the shortcut in the accessible name. */
|
|
107
|
+
private _shortcutAvailability;
|
|
98
108
|
firstUpdated(): void;
|
|
99
109
|
updated(changed: PropertyValues): void;
|
|
100
110
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/toggle-button/toggle-button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/toggle-button/toggle-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAE,UAAU,EAAE,KA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;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEhB;kDAC8C;IAE9C,cAAc,EAAE,aAAa,GAAG,IAAI,CAAQ;IAE5C;mEAC+D;IAE/D,kBAAkB,UAAS;IAE3B,iFAAiF;IACjF,OAAO,CAAC,kBAAkB,CAAuB;IAEjD,6GAA6G;IAC7G,OAAO,CAAC,qBAAqB,CAA4C;IAEhE,YAAY,IAAI,IAAI;IAIpB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAyB/C;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;IA2BtB,OAAO,CAAC,aAAa,CAGnB;IAEF,OAAO,CAAC,eAAe,CAYrB;IAEO,SAAS,IAAI,SAAS;IAM/B,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI;IAI7D,iBAAiB,IAAI,IAAI;IAQzB,oBAAoB,IAAI,IAAI;IAQrC;;;;OAIG;IACH,OAAO,KAAK,QAAQ,GAInB;IAED,OAAO,CAAC,aAAa,CAEnB;IAEF,OAAO,CAAC,YAAY,CAElB;IAEF,kBAAkB,IAAI,IAAI;IAK1B,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAMlC,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,eAAe;IASvB;;;OAGG;IACH,MAAM,IAAI,IAAI;IAMd;;;;;OAKG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAW5C,uEAAuE;IAC9D,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,oBAAoB,EAAE,gBAAgB,CAAC;KACvC;CACD"}
|
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
* @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.
|
|
29
29
|
* @attr {'text' | 'icon' | 'icon-and-text'} variant - What renders: text, icon, or both. Unset → auto-detect from text/icon attributes.
|
|
30
30
|
* @attr {string} accessible-label - Accessible label; required for icon-only usage
|
|
31
|
+
* @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.
|
|
32
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
33
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
34
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
31
35
|
* @attr {boolean} required - Required state. Set by nldd-toggle-button-group.
|
|
32
36
|
* @attr {boolean} invalid - Marks the control as invalid. Announced with aria-invalid; nothing is drawn for it.
|
|
33
37
|
*
|
|
@@ -51,6 +55,7 @@ import { toggleButtonStyles } from './toggle-button.styles.js';
|
|
|
51
55
|
import { toggleButtonTemplate } from './toggle-button.template.js';
|
|
52
56
|
import './../../content/icon/icon.js';
|
|
53
57
|
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
58
|
+
import { ShortcutAvailabilityController, shortcutLabel } from '../../../utilities/shortcut.js';
|
|
54
59
|
let NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociated(LitElement)) {
|
|
55
60
|
constructor() {
|
|
56
61
|
super(...arguments);
|
|
@@ -78,6 +83,10 @@ let NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociated
|
|
|
78
83
|
this.selectedIcon = '';
|
|
79
84
|
this.variant = '';
|
|
80
85
|
this.accessibleLabel = '';
|
|
86
|
+
this.shortcut = '';
|
|
87
|
+
this.shortcutMac = '';
|
|
88
|
+
this.shortcutWindows = '';
|
|
89
|
+
this.shortcutLinux = '';
|
|
81
90
|
this._warnedA11y = false;
|
|
82
91
|
this._warnedEmptyIcon = false;
|
|
83
92
|
/**
|
|
@@ -98,6 +107,8 @@ let NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociated
|
|
|
98
107
|
this._groupHasSelection = false;
|
|
99
108
|
/** The aria-label this button wrote on itself, so it only takes back its own. */
|
|
100
109
|
this._appliedRadioLabel = null;
|
|
110
|
+
/** Renders again when shortcuts become available or unavailable, for the shortcut in the accessible name. */
|
|
111
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
101
112
|
this._onRadioClick = () => {
|
|
102
113
|
if (this.type !== 'radio')
|
|
103
114
|
return;
|
|
@@ -184,7 +195,8 @@ let NLDDToggleButton = class NLDDToggleButton extends DescribedBy(FormAssociated
|
|
|
184
195
|
}
|
|
185
196
|
this.setAttribute('role', 'radio');
|
|
186
197
|
this.setAttribute('aria-checked', String(this.selected));
|
|
187
|
-
|
|
198
|
+
const radioLabel = [this.accessibleLabel || this.text, shortcutLabel(this)].filter(Boolean).join(' ');
|
|
199
|
+
this._appliedRadioLabel = setOwnedAttribute(this, 'aria-label', radioLabel, this._appliedRadioLabel);
|
|
188
200
|
if (this.disabled)
|
|
189
201
|
this.setAttribute('aria-disabled', 'true');
|
|
190
202
|
else
|
|
@@ -339,6 +351,18 @@ __decorate([
|
|
|
339
351
|
__decorate([
|
|
340
352
|
property({ type: String, attribute: 'accessible-label' })
|
|
341
353
|
], NLDDToggleButton.prototype, "accessibleLabel", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
356
|
+
], NLDDToggleButton.prototype, "shortcut", void 0);
|
|
357
|
+
__decorate([
|
|
358
|
+
property({ reflect: true, attribute: 'shortcut-mac', converter: reflectNonDefault('') })
|
|
359
|
+
], NLDDToggleButton.prototype, "shortcutMac", void 0);
|
|
360
|
+
__decorate([
|
|
361
|
+
property({ reflect: true, attribute: 'shortcut-windows', converter: reflectNonDefault('') })
|
|
362
|
+
], NLDDToggleButton.prototype, "shortcutWindows", void 0);
|
|
363
|
+
__decorate([
|
|
364
|
+
property({ reflect: true, attribute: 'shortcut-linux', converter: reflectNonDefault('') })
|
|
365
|
+
], NLDDToggleButton.prototype, "shortcutLinux", void 0);
|
|
342
366
|
__decorate([
|
|
343
367
|
property({ type: Boolean, reflect: true })
|
|
344
368
|
], NLDDToggleButton.prototype, "invalid", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button.js","sourceRoot":"","sources":["../../../../src/components/inputs/toggle-button/toggle-button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"toggle-button.js","sourceRoot":"","sources":["../../../../src/components/inputs/toggle-button/toggle-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAkB,MAAM,6CAA6C,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,8BAA8B,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,aAAa,EAAE,MAA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AAE,CAAC,EAAE,CAAC;uDAChF;AA4BnB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC3B;AAKhB;IADC,KAAK,EAAE;wDACoC;AAK5C;IADC,KAAK,EAAE;4DACmB;AA9Gf,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAuT5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/toggle-button/toggle-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle-button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/toggle-button/toggle-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,OAAO,kCAAkC,CAAC;AAG1C,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,GAAG,cAAc,CA+HhF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
|
+
import { hasShortcut, shortcutLabel } from '../../../utilities/shortcut.js';
|
|
2
3
|
import '../../content/tooltip/tooltip.js';
|
|
3
4
|
export function toggleButtonTemplate(component) {
|
|
4
5
|
/* `variant` forces what's rendered (not just styling):
|
|
@@ -17,13 +18,16 @@ export function toggleButtonTemplate(component) {
|
|
|
17
18
|
/* When variant="icon" hides a provided text, fall the text back to
|
|
18
19
|
* aria-label so screen readers still announce the button. Explicit
|
|
19
20
|
* accessible-label always wins. */
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
||
|
|
21
|
+
const shortcutWords = shortcutLabel(component);
|
|
22
|
+
const name = component.accessibleLabel
|
|
23
|
+
|| ((component.variant === 'icon' || shortcutWords) && component.text ? component.text : '');
|
|
24
|
+
/* The shortcut joins the name the way nldd-menu-item announces it; a visible
|
|
25
|
+
* text then has to move into the aria-label, since that replaces the content. */
|
|
26
|
+
const ariaLabel = name ? [name, shortcutWords].filter(Boolean).join(' ') : nothing;
|
|
23
27
|
/* Tooltip surfaces the off-screen label when an icon is visible but
|
|
24
|
-
* no text is. accessible-label takes precedence; text is the fallback
|
|
28
|
+
* no text is, the placeholder of variant="icon" included. accessible-label takes precedence; text is the fallback
|
|
25
29
|
* (e.g. variant="icon" + text="Bold" → tooltip shows "Bold"). */
|
|
26
|
-
const isIconOnlyDisplay = showIcon && !showText;
|
|
30
|
+
const isIconOnlyDisplay = (showIcon || component.variant === 'icon') && !showText;
|
|
27
31
|
const tooltipText = isIconOnlyDisplay ? (component.accessibleLabel || component.text || '') : '';
|
|
28
32
|
/* Always render the icon area so the slot stays in shadow DOM for
|
|
29
33
|
* assignment + slotchange detection — even when variant="text" hides
|
|
@@ -104,8 +108,18 @@ export function toggleButtonTemplate(component) {
|
|
|
104
108
|
</button>
|
|
105
109
|
`;
|
|
106
110
|
}
|
|
107
|
-
if (tooltipText) {
|
|
108
|
-
return html
|
|
111
|
+
if (tooltipText || hasShortcut(component)) {
|
|
112
|
+
return html `
|
|
113
|
+
<nldd-tooltip
|
|
114
|
+
text=${tooltipText || nothing}
|
|
115
|
+
shortcut=${component.shortcut || nothing}
|
|
116
|
+
shortcut-mac=${component.shortcutMac || nothing}
|
|
117
|
+
shortcut-windows=${component.shortcutWindows || nothing}
|
|
118
|
+
shortcut-linux=${component.shortcutLinux || nothing}
|
|
119
|
+
>
|
|
120
|
+
${result}
|
|
121
|
+
</nldd-tooltip>
|
|
122
|
+
`;
|
|
109
123
|
}
|
|
110
124
|
return result;
|
|
111
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/toggle-button/toggle-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,kCAAkC,CAAC;AAG1C,MAAM,UAAU,oBAAoB,CAAC,SAA2B;IAC/D;;;;;;sEAMkE;IAClE,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,KAAK,MAAM,IAAI,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC;IAClE,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,KAAK,MAAM,IAAI,SAAS,CAAC,QAAQ,CAAC;IAEpE;qEACiE;IACjE,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,KAAK,MAAM;WAChD,SAAS,CAAC,OAAO,KAAK,eAAe,CAAC;IAE1C;;uCAEmC;IACnC,MAAM,SAAS,GAAG,SAAS,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"toggle-button.template.js","sourceRoot":"","sources":["../../../../src/components/inputs/toggle-button/toggle-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,kCAAkC,CAAC;AAG1C,MAAM,UAAU,oBAAoB,CAAC,SAA2B;IAC/D;;;;;;sEAMkE;IAClE,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,KAAK,MAAM,IAAI,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC;IAClE,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,KAAK,MAAM,IAAI,SAAS,CAAC,QAAQ,CAAC;IAEpE;qEACiE;IACjE,MAAM,eAAe,GAAG,SAAS,CAAC,OAAO,KAAK,MAAM;WAChD,SAAS,CAAC,OAAO,KAAK,eAAe,CAAC;IAE1C;;uCAEmC;IACnC,MAAM,aAAa,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AAO;;MAEjD,MAAM;;GAET,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC"}
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
* helping users understand their relationship at a glance.
|
|
7
7
|
*
|
|
8
8
|
* @element nldd-box
|
|
9
|
-
* @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.
|
|
9
|
+
* @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.
|
|
10
10
|
* - `tinted` (default): a box on a plain page background.
|
|
11
11
|
* - `base`: a box on an already-tinted parent (the border ring gets +2
|
|
12
12
|
* palette steps so it still reads against a card-on-card).
|
|
13
|
+
* - `accent-tinted`: a tint of the theme's accent, with the contrast of
|
|
14
|
+
* `tinted`, for a box that belongs to the service rather than to the page.
|
|
13
15
|
* - `critical`: a region whose actions are destructive or irreversible (a
|
|
14
16
|
* "danger zone"), tinted and outlined in critical. It carries no ARIA of its
|
|
15
17
|
* own: unlike nldd-banner this is not an announcement but a permanent part of
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
* that carries the padding
|
|
24
26
|
*/
|
|
25
27
|
import { LitElement } from 'lit';
|
|
26
|
-
export type BoxBackground = 'tinted' | 'base' | 'critical';
|
|
28
|
+
export type BoxBackground = 'tinted' | 'base' | 'accent-tinted' | 'critical';
|
|
27
29
|
export declare class NLDDBox extends LitElement {
|
|
28
30
|
static styles: import("lit").CSSResult;
|
|
29
31
|
background: BoxBackground;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,eAAe,GAAG,UAAU,CAAC;AAE7E,qBACa,OAAQ,SAAQ,UAAU;IACtC,OAAgB,MAAM,0BAAa;IAGnC,UAAU,EAAE,aAAa,CAAY;IAE5B,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,OAAO,CAAC;KACpB;CACD"}
|
|
@@ -12,10 +12,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
12
12
|
* helping users understand their relationship at a glance.
|
|
13
13
|
*
|
|
14
14
|
* @element nldd-box
|
|
15
|
-
* @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.
|
|
15
|
+
* @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.
|
|
16
16
|
* - `tinted` (default): a box on a plain page background.
|
|
17
17
|
* - `base`: a box on an already-tinted parent (the border ring gets +2
|
|
18
18
|
* palette steps so it still reads against a card-on-card).
|
|
19
|
+
* - `accent-tinted`: a tint of the theme's accent, with the contrast of
|
|
20
|
+
* `tinted`, for a box that belongs to the service rather than to the page.
|
|
19
21
|
* - `critical`: a region whose actions are destructive or irreversible (a
|
|
20
22
|
* "danger zone"), tinted and outlined in critical. It carries no ARIA of its
|
|
21
23
|
* own: unlike nldd-banner this is not an announcement but a permanent part of
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.js","sourceRoot":"","sources":["../../../../src/components/layout/box/box.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"box.js","sourceRoot":"","sources":["../../../../src/components/layout/box/box.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKzC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;IAAhC;;QAIN,eAAU,GAAkB,QAAQ,CAAC;IAKtC,CAAC;IAHS,MAAM;QACd,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;;AAPe,cAAM,GAAG,SAAS,AAAZ,CAAa;AAGnC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAgB,QAAQ,CAAC,EAAE,CAAC;2CAC9C;AAJzB,OAAO;IADnB,aAAa,CAAC,UAAU,CAAC;GACb,OAAO,CASnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"box.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/box/box.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,yBA2DrB,CAAC"}
|
|
@@ -10,8 +10,8 @@ export const boxStyles = css `
|
|
|
10
10
|
:host {
|
|
11
11
|
--_box-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
12
12
|
--_box-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
13
|
-
--_box-border-width: var(--semantics-surfaces-border-width);
|
|
14
|
-
--_box-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
13
|
+
--_box-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
14
|
+
--_box-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
15
15
|
--_box-highlight-border: inset 0 0 0 var(--_box-border-width) var(--_box-border-color);
|
|
16
16
|
|
|
17
17
|
display: block;
|
|
@@ -27,12 +27,17 @@ export const boxStyles = css `
|
|
|
27
27
|
|
|
28
28
|
:host([background="base"]) {
|
|
29
29
|
--_box-background-color: var(--semantics-surfaces-base-background-color);
|
|
30
|
-
--_box-border-color: var(--semantics-surfaces-base-border-color);
|
|
30
|
+
--_box-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([background="accent-tinted"]) {
|
|
34
|
+
--_box-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
35
|
+
--_box-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
:host([background="critical"]) {
|
|
34
|
-
--_box-background-color: var(--semantics-
|
|
35
|
-
--_box-border-color: var(--semantics-
|
|
39
|
+
--_box-background-color: var(--semantics-surfaces-critical-tinted-background-color);
|
|
40
|
+
--_box-border-color: var(--semantics-surfaces-critical-tinted-highlight-border-color);
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/box/box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"box.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/box/box.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2D3B,CAAC"}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @element nldd-card
|
|
19
19
|
*
|
|
20
|
-
* @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
|
|
20
|
+
* @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`
|
|
21
21
|
* @attr {string} accessible-label - Accessible name of the card; with `href`/`button` it names the link or button, otherwise the card region
|
|
22
22
|
* @attr {object} translations - Override translation keys (e.g. the "opent in nieuw tabblad" announcement)
|
|
23
23
|
* @attr {string} href - Makes the whole card a link to this URL (empty = no link)
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* @slot footer - Footer content (e.g. nldd-button-group), always at the bottom
|
|
31
31
|
*/
|
|
32
32
|
import { LitElement } from 'lit';
|
|
33
|
-
export type CardBackground = 'base' | 'tinted';
|
|
33
|
+
export type CardBackground = 'base' | 'tinted' | 'accent-tinted';
|
|
34
34
|
declare const NLDDCard_base: (abstract new (...args: any[]) => LitElement & {
|
|
35
35
|
translations: Partial<{
|
|
36
36
|
'components.card.link-hint-new-tab-lowercase-label': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQjC,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,CAAC;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQjC,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,eAAe,CAAC;;;;;;;;;AAEjE,qBACa,QAAS,SAAQ,aAAkD;IAC/E,OAAgB,MAAM,0BAAc;IAGpC,UAAU,EAAE,cAAc,CAAU;IAGpC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAEpC;;yCAEqC;IAErC,IAAI,SAAM;IAGV,MAAM,SAAM;IAGZ,GAAG,SAAM;IAET;;;uDAGmD;IAEnD,MAAM,UAAS;IAEf,OAAO,CAAC,YAAY,CAAS;IAE7B;;;8DAG0D;IAE1D,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,WAAW,CAEjB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc,CAOpB;IAEF,OAAO,CAAC,aAAa,CAInB;IAEO,iBAAiB;IAkBjB,OAAO,IAAI,IAAI;IAgBxB,aAAa,GAAI,GAAG,KAAK,KAAG,IAAI,CAI9B;IAEO,oBAAoB;IAQpB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @element nldd-card
|
|
19
19
|
*
|
|
20
|
-
* @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
|
|
20
|
+
* @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`
|
|
21
21
|
* @attr {string} accessible-label - Accessible name of the card; with `href`/`button` it names the link or button, otherwise the card region
|
|
22
22
|
* @attr {object} translations - Override translation keys (e.g. the "opent in nieuw tabblad" announcement)
|
|
23
23
|
* @attr {string} href - Makes the whole card a link to this URL (empty = no link)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"card.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/card/card.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBAoKtB,CAAC"}
|
|
@@ -9,14 +9,14 @@ export const cardStyles = css `
|
|
|
9
9
|
|
|
10
10
|
:host {
|
|
11
11
|
--_card-background-color: var(--semantics-surfaces-base-background-color);
|
|
12
|
-
--_card-border-color: var(--semantics-surfaces-base-border-color);
|
|
12
|
+
--_card-border-color: var(--semantics-surfaces-base-highlight-border-color);
|
|
13
13
|
--_card-is-hovered-background-color: light-dark(var(--primitives-color-neutral-25), var(--primitives-color-neutral-150));
|
|
14
14
|
--_card-is-hovered-border-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-250));
|
|
15
15
|
--_card-is-active-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-200));
|
|
16
16
|
--_card-is-active-border-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-300));
|
|
17
17
|
--_card-corner-radius: var(--semantics-surfaces-corner-radius);
|
|
18
18
|
--_card-box-shadow: none;
|
|
19
|
-
--_card-highlight-border-width: var(--semantics-surfaces-border-width);
|
|
19
|
+
--_card-highlight-border-width: var(--semantics-surfaces-highlight-border-width);
|
|
20
20
|
|
|
21
21
|
display: flex;
|
|
22
22
|
/* Anchor for the focus ring, which hangs outside the card box. */
|
|
@@ -34,13 +34,22 @@ export const cardStyles = css `
|
|
|
34
34
|
|
|
35
35
|
:host([background="tinted"]) {
|
|
36
36
|
--_card-background-color: var(--semantics-surfaces-tinted-background-color);
|
|
37
|
-
--_card-border-color: var(--semantics-surfaces-tinted-border-color);
|
|
37
|
+
--_card-border-color: var(--semantics-surfaces-tinted-highlight-border-color);
|
|
38
38
|
--_card-is-hovered-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-100));
|
|
39
39
|
--_card-is-hovered-border-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-250));
|
|
40
40
|
--_card-is-active-background-color: light-dark(var(--primitives-color-neutral-75), var(--primitives-color-neutral-150));
|
|
41
41
|
--_card-is-active-border-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-300));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
:host([background="accent-tinted"]) {
|
|
45
|
+
--_card-background-color: var(--semantics-surfaces-accent-tinted-background-color);
|
|
46
|
+
--_card-border-color: var(--semantics-surfaces-accent-tinted-highlight-border-color);
|
|
47
|
+
--_card-is-hovered-background-color: var(--components-card-is-hovered-background-color);
|
|
48
|
+
--_card-is-hovered-border-color: var(--components-card-is-hovered-border-color);
|
|
49
|
+
--_card-is-active-background-color: var(--components-card-is-active-background-color);
|
|
50
|
+
--_card-is-active-border-color: var(--components-card-is-active-border-color);
|
|
51
|
+
}
|
|
52
|
+
|
|
44
53
|
|
|
45
54
|
/* # Block */
|
|
46
55
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"card.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/card/card.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoK5B,CAAC"}
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
* grid of your own: the collection sets the columns from `item-min-width` and
|
|
9
9
|
* the available width, and the gap per breakpoint.
|
|
10
10
|
*
|
|
11
|
+
* A grid keeps as many columns as fit, also when there are fewer items, so a
|
|
12
|
+
* page of results lines up with the next. For a fixed set of a few cards
|
|
13
|
+
* without paging, such as three points on a landing page, use
|
|
14
|
+
* `nldd-container layout="grid"` instead: its empty columns collapse, so the
|
|
15
|
+
* cards fill the row.
|
|
16
|
+
*
|
|
11
17
|
* In grid and stack modes, items are paginated via a load-more button. In
|
|
12
18
|
* horizontal scroll, the prev/next controls and the edge fade appear only when
|
|
13
19
|
* the items overflow the container. Use horizontal scroll for items that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/collection/collection.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/collection/collection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,gCAAgC,CAAC;AACxC,OAAO,wCAAwC,CAAC;AAChD,OAAO,0CAA0C,CAAC;AAClD,OAAO,4BAA4B,CAAC;AACpC,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,qCAAqC,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AI;IAM5B,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA4D/D,OAAO,CAAC,qBAAqB;IAgB7B,OAAO,CAAC,wBAAwB;IAYhC,aAAa,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAe7B,OAAO,CAAC,gBAAgB;IAQxB,SAAS,IAAI,IAAI;IAMjB,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAOD,SAAS,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI;IA2BzB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,cAAc,CAAC;KAClC;CACD"}
|
|
@@ -14,6 +14,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
14
|
* grid of your own: the collection sets the columns from `item-min-width` and
|
|
15
15
|
* the available width, and the gap per breakpoint.
|
|
16
16
|
*
|
|
17
|
+
* A grid keeps as many columns as fit, also when there are fewer items, so a
|
|
18
|
+
* page of results lines up with the next. For a fixed set of a few cards
|
|
19
|
+
* without paging, such as three points on a landing page, use
|
|
20
|
+
* `nldd-container layout="grid"` instead: its empty columns collapse, so the
|
|
21
|
+
* cards fill the row.
|
|
22
|
+
*
|
|
17
23
|
* In grid and stack modes, items are paginated via a load-more button. In
|
|
18
24
|
* horizontal scroll, the prev/next controls and the edge fade appear only when
|
|
19
25
|
* the items overflow the container. Use horizontal scroll for items that
|