@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
|
@@ -5,4 +5,36 @@ export declare const breakpoints: {
|
|
|
5
5
|
readonly mdMax: "1007px";
|
|
6
6
|
readonly lgMin: "1008px";
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* The same breakpoints in rem, for `@container` and `@media` conditions. With
|
|
10
|
+
* page zoom, Safari compares the width of a container that takes its size from
|
|
11
|
+
* the layout in zoomed pixels, so a px condition sees a narrow container as
|
|
12
|
+
* wide; a rem condition scales with the zoom. At the default font size of
|
|
13
|
+
* 16px they equal the px values.
|
|
14
|
+
*/
|
|
15
|
+
export declare const queryBreakpoints: {
|
|
16
|
+
readonly smMin: "20rem";
|
|
17
|
+
readonly smMax: "40rem";
|
|
18
|
+
readonly mdMin: "40.0625rem";
|
|
19
|
+
readonly mdMax: "62.9375rem";
|
|
20
|
+
readonly lgMin: "63rem";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The root font size in CSS pixels: what 1rem is in an `@container` condition.
|
|
24
|
+
* An `@media` condition and `matchMedia` take the browser's initial font size
|
|
25
|
+
* instead, which differs only when a site sets `font-size` on `<html>`; pass
|
|
26
|
+
* them a `queryBreakpoints` string. It reads the computed style of the page,
|
|
27
|
+
* so call it in the browser (in connectedCallback, a resize observer or an
|
|
28
|
+
* event handler), not during SSR.
|
|
29
|
+
*/
|
|
30
|
+
export declare function rootFontSize(): number;
|
|
31
|
+
/**
|
|
32
|
+
* A breakpoint in CSS pixels at the root font size, for the width of a
|
|
33
|
+
* container that script compares itself. It matches what an `@container`
|
|
34
|
+
* condition in the styles sees, also when someone has set a larger default
|
|
35
|
+
* font size. Comparing against more than
|
|
36
|
+
* one breakpoint, read `rootFontSize()` once and pass it in. Browser only, like
|
|
37
|
+
* `rootFontSize()`.
|
|
38
|
+
*/
|
|
39
|
+
export declare function breakpointPx(name: keyof typeof queryBreakpoints, fontSize?: number): number;
|
|
8
40
|
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC"}
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,OAAO,gBAAgB,EAAE,QAAQ,SAAiB,GAAG,MAAM,CAEnG"}
|
|
@@ -5,4 +5,40 @@ export const breakpoints = {
|
|
|
5
5
|
mdMax: '1007px',
|
|
6
6
|
lgMin: '1008px',
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* The same breakpoints in rem, for `@container` and `@media` conditions. With
|
|
10
|
+
* page zoom, Safari compares the width of a container that takes its size from
|
|
11
|
+
* the layout in zoomed pixels, so a px condition sees a narrow container as
|
|
12
|
+
* wide; a rem condition scales with the zoom. At the default font size of
|
|
13
|
+
* 16px they equal the px values.
|
|
14
|
+
*/
|
|
15
|
+
export const queryBreakpoints = {
|
|
16
|
+
smMin: '20rem',
|
|
17
|
+
smMax: '40rem',
|
|
18
|
+
mdMin: '40.0625rem',
|
|
19
|
+
mdMax: '62.9375rem',
|
|
20
|
+
lgMin: '63rem',
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The root font size in CSS pixels: what 1rem is in an `@container` condition.
|
|
24
|
+
* An `@media` condition and `matchMedia` take the browser's initial font size
|
|
25
|
+
* instead, which differs only when a site sets `font-size` on `<html>`; pass
|
|
26
|
+
* them a `queryBreakpoints` string. It reads the computed style of the page,
|
|
27
|
+
* so call it in the browser (in connectedCallback, a resize observer or an
|
|
28
|
+
* event handler), not during SSR.
|
|
29
|
+
*/
|
|
30
|
+
export function rootFontSize() {
|
|
31
|
+
return parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* A breakpoint in CSS pixels at the root font size, for the width of a
|
|
35
|
+
* container that script compares itself. It matches what an `@container`
|
|
36
|
+
* condition in the styles sees, also when someone has set a larger default
|
|
37
|
+
* font size. Comparing against more than
|
|
38
|
+
* one breakpoint, read `rootFontSize()` once and pass it in. Browser only, like
|
|
39
|
+
* `rootFontSize()`.
|
|
40
|
+
*/
|
|
41
|
+
export function breakpointPx(name, fontSize = rootFontSize()) {
|
|
42
|
+
return parseFloat(queryBreakpoints[name]) * fontSize;
|
|
43
|
+
}
|
|
8
44
|
//# sourceMappingURL=breakpoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;CACN,CAAC"}
|
|
1
|
+
{"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../../src/assets/styles/breakpoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;CACN,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,YAAY;IACnB,KAAK,EAAE,OAAO;CACL,CAAC;AAEX;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY;IAC3B,OAAO,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC9E,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,IAAmC,EAAE,QAAQ,GAAG,YAAY,EAAE;IAC1F,OAAO,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC;AACtD,CAAC"}
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
* @attr {string} start-icon - Icon name for the start icon (before text)
|
|
25
25
|
* @attr {string} end-icon - Icon name for the end icon (after text)
|
|
26
26
|
* @attr {string} accessible-label - Accessible label for the button, overrides text for screen readers
|
|
27
|
+
* @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.
|
|
28
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
29
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
30
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
27
31
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
28
32
|
* @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.
|
|
29
33
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
@@ -124,6 +128,10 @@ export declare class NLDDButton extends NLDDButton_base {
|
|
|
124
128
|
endIcon: string;
|
|
125
129
|
/** Accessible label forwarded to the inner <button> or <a>. Use when visible text alone lacks context. */
|
|
126
130
|
accessibleLabel: string;
|
|
131
|
+
shortcut: string;
|
|
132
|
+
shortcutMac: string;
|
|
133
|
+
shortcutWindows: string;
|
|
134
|
+
shortcutLinux: string;
|
|
127
135
|
/** When set, renders an <a> element instead of <button>. */
|
|
128
136
|
href: string | undefined;
|
|
129
137
|
/** Link target (e.g. '_blank'). Only used when href is set. */
|
|
@@ -139,6 +147,8 @@ export declare class NLDDButton extends NLDDButton_base {
|
|
|
139
147
|
* button and turns clicks into open/close. Not private: the template module
|
|
140
148
|
* binds its handlers. */
|
|
141
149
|
_popup: PopupAnchorController;
|
|
150
|
+
/** Renders again when shortcuts become available or unavailable, for the shortcut in the accessible name. */
|
|
151
|
+
private _shortcutAvailability;
|
|
142
152
|
updated(changedProperties: Map<string, unknown>): void;
|
|
143
153
|
private _handleClick;
|
|
144
154
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAI9E,KAAK,UAAU,GACZ,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,gBAAgB,CAAC;AACpB,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAChD,KAAK,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;AAEjE,qBACa,UAAW,SAAQ,eAAiE;IAChG,OAAgB,MAAM,0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AAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAuB;IAE5C;;6BAEyB;IACzB,MAAM,wBAAmC;IAEzC,6GAA6G;IAC7G,OAAO,CAAC,qBAAqB,CAA4C;IAEhE,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAmC/D,OAAO,CAAC,YAAY;IAgCpB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,UAAU;IAuBlB;;;OAGG;IACM,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAI5C,6DAA6D;IACpD,eAAe,IAAI,OAAO,GAAG,IAAI;IAIjC,MAAM;CAKf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
* @attr {string} start-icon - Icon name for the start icon (before text)
|
|
25
25
|
* @attr {string} end-icon - Icon name for the end icon (after text)
|
|
26
26
|
* @attr {string} accessible-label - Accessible label for the button, overrides text for screen readers
|
|
27
|
+
* @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.
|
|
28
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
29
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
30
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
27
31
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
28
32
|
* @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.
|
|
29
33
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
@@ -53,6 +57,7 @@ import { PopupAnchorController } from '../../../utilities/popup-anchor-controlle
|
|
|
53
57
|
import './../../content/icon/icon.js';
|
|
54
58
|
import './../../status-and-feedback/activity-indicator/activity-indicator.js';
|
|
55
59
|
import { DescribedBy } from '../../../utilities/described-by-mixin.js';
|
|
60
|
+
import { ShortcutAvailabilityController } from '../../../utilities/shortcut.js';
|
|
56
61
|
let NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitElement, nlddButtonTranslations)) {
|
|
57
62
|
constructor() {
|
|
58
63
|
super(...arguments);
|
|
@@ -119,6 +124,10 @@ let NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitElemen
|
|
|
119
124
|
this.endIcon = '';
|
|
120
125
|
/** Accessible label forwarded to the inner <button> or <a>. Use when visible text alone lacks context. */
|
|
121
126
|
this.accessibleLabel = '';
|
|
127
|
+
this.shortcut = '';
|
|
128
|
+
this.shortcutMac = '';
|
|
129
|
+
this.shortcutWindows = '';
|
|
130
|
+
this.shortcutLinux = '';
|
|
122
131
|
/** When set, renders an <a> element instead of <button>. */
|
|
123
132
|
this.href = undefined;
|
|
124
133
|
/** Link target (e.g. '_blank'). Only used when href is set. */
|
|
@@ -134,6 +143,8 @@ let NLDDButton = class NLDDButton extends DescribedBy(withTranslations(LitElemen
|
|
|
134
143
|
* button and turns clicks into open/close. Not private: the template module
|
|
135
144
|
* binds its handlers. */
|
|
136
145
|
this._popup = new PopupAnchorController(this);
|
|
146
|
+
/** Renders again when shortcuts become available or unavailable, for the shortcut in the accessible name. */
|
|
147
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
137
148
|
}
|
|
138
149
|
updated(changedProperties) {
|
|
139
150
|
if (changedProperties.has('maxWidth')) {
|
|
@@ -337,6 +348,18 @@ __decorate([
|
|
|
337
348
|
__decorate([
|
|
338
349
|
property({ type: String, attribute: 'accessible-label' })
|
|
339
350
|
], NLDDButton.prototype, "accessibleLabel", void 0);
|
|
351
|
+
__decorate([
|
|
352
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
353
|
+
], NLDDButton.prototype, "shortcut", void 0);
|
|
354
|
+
__decorate([
|
|
355
|
+
property({ reflect: true, attribute: 'shortcut-mac', converter: reflectNonDefault('') })
|
|
356
|
+
], NLDDButton.prototype, "shortcutMac", void 0);
|
|
357
|
+
__decorate([
|
|
358
|
+
property({ reflect: true, attribute: 'shortcut-windows', converter: reflectNonDefault('') })
|
|
359
|
+
], NLDDButton.prototype, "shortcutWindows", void 0);
|
|
360
|
+
__decorate([
|
|
361
|
+
property({ reflect: true, attribute: 'shortcut-linux', converter: reflectNonDefault('') })
|
|
362
|
+
], NLDDButton.prototype, "shortcutLinux", void 0);
|
|
340
363
|
__decorate([
|
|
341
364
|
property({ type: String, reflect: true })
|
|
342
365
|
], NLDDButton.prototype, "href", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EA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AE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;iDAChF;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCACL;AAIrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CACY;AAOvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCACS;AApJxB,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CA6RtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"button.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,yBA0mBxB,CAAC"}
|
|
@@ -562,6 +562,28 @@ export const buttonStyles = css `
|
|
|
562
562
|
--_button-block-padding: var(--primitives-space-4);
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
+
.button__shortcut {
|
|
566
|
+
display: flex;
|
|
567
|
+
flex-shrink: 0;
|
|
568
|
+
color: var(--_button-secondary-content-color);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
.button:hover .button__shortcut {
|
|
572
|
+
@media (hover: hover) {
|
|
573
|
+
color: var(--_button-is-hovered-secondary-content-color);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.button:active .button__shortcut {
|
|
578
|
+
color: var(--_button-is-active-secondary-content-color);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
@media (any-hover: none) {
|
|
582
|
+
.button__shortcut {
|
|
583
|
+
display: none;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
565
587
|
.button__start-icon,
|
|
566
588
|
.button__end-icon {
|
|
567
589
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkC3B,kBAAkB
|
|
1
|
+
{"version":3,"file":"button.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkC3B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwkBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;
|
|
1
|
+
{"version":3,"file":"button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,OAAO,sDAAsD,CAAC;AAE9D,UAAU,eAAe;IACxB,WAAW,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACrC;AA4CD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,eAAe,wCAmHlE"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
2
|
import { linkRel } from '../../../utilities/link-rel.js';
|
|
3
3
|
import { linkHintKey } from '../../../utilities/link-hint.js';
|
|
4
|
+
import { hasShortcut, shortcutLabel } from '../../../utilities/shortcut.js';
|
|
5
|
+
import '../../content/keyboard-shortcut/keyboard-shortcut.js';
|
|
4
6
|
function renderContent(component) {
|
|
5
7
|
// `button__text` falls back to the slot on falsy `text`. The property
|
|
6
8
|
// defaults to '', so `text=""` and an absent attribute are indistinguishable
|
|
@@ -16,6 +18,19 @@ function renderContent(component) {
|
|
|
16
18
|
<span class="button__text">${component.text ? component.text : html `<slot name="text"></slot>`}</span>
|
|
17
19
|
${component.supportingText ? html `<span class="button__supporting-text">${component.supportingText}</span>` : nothing}
|
|
18
20
|
</span>
|
|
21
|
+
${hasShortcut(component) ? html `
|
|
22
|
+
<span class="button__shortcut">
|
|
23
|
+
<nldd-keyboard-shortcut
|
|
24
|
+
size="inherit"
|
|
25
|
+
appearance="simple"
|
|
26
|
+
color="inherit"
|
|
27
|
+
keys=${component.shortcut || nothing}
|
|
28
|
+
mac-keys=${component.shortcutMac || nothing}
|
|
29
|
+
windows-keys=${component.shortcutWindows || nothing}
|
|
30
|
+
linux-keys=${component.shortcutLinux || nothing}
|
|
31
|
+
></nldd-keyboard-shortcut>
|
|
32
|
+
</span>
|
|
33
|
+
` : nothing}
|
|
19
34
|
${component.endIcon ? html `
|
|
20
35
|
<span class="button__end-icon">
|
|
21
36
|
<nldd-icon icon=${component.endIcon}></nldd-icon>
|
|
@@ -58,8 +73,11 @@ export function template(helpers) {
|
|
|
58
73
|
// hint must live inside it; otherwise `nothing` leaves the name content-derived
|
|
59
74
|
// and the visually-hidden span below appends the hint (it also reaches slotted
|
|
60
75
|
// text, which can't be read into a string here).
|
|
61
|
-
|
|
62
|
-
|
|
76
|
+
// Without an aria-label the shortcut reaches the name through the content,
|
|
77
|
+
// as in nldd-menu-item; with one it has to be added to it.
|
|
78
|
+
const namedAriaLabel = baseAriaLabel ? [baseAriaLabel, shortcutLabel(this)].filter(Boolean).join(' ') : '';
|
|
79
|
+
const ariaLabel = namedAriaLabel
|
|
80
|
+
? [namedAriaLabel, linkHint].filter(Boolean).join(', ')
|
|
63
81
|
: nothing;
|
|
64
82
|
const renderLinkHint = !!linkHint && !baseAriaLabel;
|
|
65
83
|
// Loading: an activity indicator overlays the (opacity-hidden) content. It
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EA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,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAE/F,sEAAsE;IACtE,sCAAsC;IACtC,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,qBAAqB,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAExE,oEAAoE;IACpE,oEAAoE;IACpE,4EAA4E;IAC5E,6EAA6E;IAC7E,uEAAuE;IACvE,yEAAyE;IACzE,gDAAgD;IAChD,MAAM,aAAa,GAAG,IAAI,CAAC,eAAe;WACtC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7F,2EAA2E;IAC3E,gFAAgF;IAChF,+EAA+E;IAC/E,iDAAiD;IACjD,MAAM,
|
|
1
|
+
{"version":3,"file":"button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/button/button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,sDAAsD,CAAC;AAM9D,SAAS,aAAa,CAAC,SAAqB;IAC3C,sEAAsE;IACtE,6EAA6E;IAC7E,mEAAmE;IACnE,OAAO,IAAI,CAAA;;KA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AI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;mBACvB,IAAI,CAAC,MAAM,CAAC,iBAAiB;aACnC,OAAO,CAAC,WAAW;;MAE1B,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA,qCAAqC,QAAQ,SAAS,CAAC,CAAC,CAAC,OAAO;;KAEhG,gBAAgB;KAChB,SAAS;GACX,CAAC;IACH,CAAC;IAED,uEAAuE;IACvE,2EAA2E;IAC3E,wEAAwE;IACxE,yEAAyE;IACzE,wEAAwE;IACxE,OAAO,IAAI,CAAA;kBACM,WAAW;UACnB,IAAI,CAAC,IAAI;eACJ,IAAI,CAAC,QAAQ;mBACT,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;gBACnC,SAAS;mBACN,IAAI,CAAC,SAAS,IAAI,OAAO;mBACzB,YAAY;eAChB,QAAQ;cACT,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;mBACtB,IAAI,CAAC,aAAa,IAAI,OAAO;2BACrB,IAAI,CAAC,oBAAoB;0BAC1B,IAAI,CAAC,mBAAmB;kBAChC,IAAI,CAAC,MAAM,CAAC,iBAAiB;YACnC,OAAO,CAAC,WAAW;;KAE1B,OAAO;;IAER,gBAAgB;IAChB,SAAS;EACX,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css, unsafeCSS } from 'lit';
|
|
2
|
-
import {
|
|
3
|
-
const smMax = unsafeCSS(
|
|
2
|
+
import { queryBreakpoints } from "../../../assets/styles/breakpoints.js";
|
|
3
|
+
const smMax = unsafeCSS(queryBreakpoints.smMax);
|
|
4
4
|
export const buttonGroupStyles = css `
|
|
5
5
|
:host {
|
|
6
6
|
box-sizing: border-box;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"button-group.styles.js","sourceRoot":"","sources":["../../../../src/components/actions/button-group/button-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,MAAM,KAAK,GAAG,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAEhD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAmDV,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D9B,CAAC"}
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
* @attr {string} icon - Icon name for the nldd-icon element. Defaults to a placeholder icon when neither this attribute nor the icon slot is set.
|
|
20
20
|
* @attr {string} accessible-label - Accessible label for screen readers. Overrides text as aria-label and title tooltip. Use when the visible text alone lacks context for screen readers (e.g. text "Toon", accessible-label "Toon wachtwoord"). The text is still shown visually in lg size regardless.
|
|
21
21
|
* @attr {string} tooltip-timing - Forwarded to the inner nldd-tooltip's `timing`: 'delay' (the default, a 700 ms show-delay), 'instant', or 'never' (suppress the visual tooltip; screen readers still get the aria-label). Use 'never' when the surrounding context already explains the button (e.g. spin buttons in nldd-number-field, the chevron in nldd-split-button).
|
|
22
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown in the tooltip after the text, e.g. 'Alt+P'. 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 ("Presentatiemodus Alt P"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable.
|
|
23
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
24
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
25
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
22
26
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
23
27
|
* @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label 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.
|
|
24
28
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
@@ -122,6 +126,10 @@ export declare class NLDDIconButton extends NLDDIconButton_base {
|
|
|
122
126
|
/** Forwarded to the inner nldd-tooltip's `timing`. Use `'never'` to
|
|
123
127
|
* suppress the visual tooltip; aria-label still describes the button. */
|
|
124
128
|
tooltipTiming: 'delay' | 'instant' | 'never';
|
|
129
|
+
shortcut: string;
|
|
130
|
+
shortcutMac: string;
|
|
131
|
+
shortcutWindows: string;
|
|
132
|
+
shortcutLinux: string;
|
|
125
133
|
/** When set, renders an <a> element instead of <button>. */
|
|
126
134
|
href: string | undefined;
|
|
127
135
|
/** Link target (e.g. '_blank'). Only used when href is set. */
|
|
@@ -138,6 +146,8 @@ export declare class NLDDIconButton extends NLDDIconButton_base {
|
|
|
138
146
|
* button and turns clicks into open/close. Not private: the template module
|
|
139
147
|
* binds its handlers. */
|
|
140
148
|
_popup: PopupAnchorController;
|
|
149
|
+
/** Renders again when shortcuts become available or unavailable, for the shortcut in the accessible name. */
|
|
150
|
+
private _shortcutAvailability;
|
|
141
151
|
updated(changedProperties: Map<string, unknown>): void;
|
|
142
152
|
protected _handleClick(e: MouseEvent): void;
|
|
143
153
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAEtF,OAAO,8BAA8B,CAAC;AACtC,OAAO,sEAAsE,CAAC;AAE9E,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC7C,MAAM,MAAM,UAAU,GACnB,SAAS,GACT,WAAW,GACX,aAAa,GACb,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,cAAc,GACd,qBAAqB,GACrB,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,gBAAgB,CAAC;AACpB,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AACvD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;;;;;;;;;AAExE,qBACa,cAAe,SAAQ,mBAAwD;IAC3F,OAAgB,MAAM,0BAAoB;IAK1C,MAAM,CAAC,cAAc,UAAQ;IAC7B,OAAO,CAAC,UAAU,CAA0B;IAG5C,UAAU,EAAE,UAAU,CAAoB;IAG1C,IAAI,EAAE,IAAI,CAAQ;IAElB,iFAAiF;IAEjF,UAAU,UAAS;IAEnB;;;;;;;;OAQG;IAEH,OAAO,UAAS;IAEhB,4GAA4G;IAE5G,WAAW,SAAM;IAGjB,QAAQ,UAAS;IAEjB,mHAAmH;IAEnH,iBAAiB,UAAS;IAG1B,IAAI,EAAE,UAAU,CAAY;IAG5B,UA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;QAC9B,kBAAkB,EAAE,cAAc,CAAC;KACnC;CACD"}
|
|
@@ -25,6 +25,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
25
25
|
* @attr {string} icon - Icon name for the nldd-icon element. Defaults to a placeholder icon when neither this attribute nor the icon slot is set.
|
|
26
26
|
* @attr {string} accessible-label - Accessible label for screen readers. Overrides text as aria-label and title tooltip. Use when the visible text alone lacks context for screen readers (e.g. text "Toon", accessible-label "Toon wachtwoord"). The text is still shown visually in lg size regardless.
|
|
27
27
|
* @attr {string} tooltip-timing - Forwarded to the inner nldd-tooltip's `timing`: 'delay' (the default, a 700 ms show-delay), 'instant', or 'never' (suppress the visual tooltip; screen readers still get the aria-label). Use 'never' when the surrounding context already explains the button (e.g. spin buttons in nldd-number-field, the chevron in nldd-split-button).
|
|
28
|
+
* @attr {string} shortcut - Keyboard shortcut hint shown in the tooltip after the text, e.g. 'Alt+P'. 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 ("Presentatiemodus Alt P"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable.
|
|
29
|
+
* @attr {string} shortcut-mac - Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`).
|
|
30
|
+
* @attr {string} shortcut-windows - Override of `shortcut` on Windows (falls back to `shortcut`).
|
|
31
|
+
* @attr {string} shortcut-linux - Override of `shortcut` on Linux (falls back to `shortcut`).
|
|
28
32
|
* @attr {string} href - When set, renders an <a> element instead of <button>
|
|
29
33
|
* @attr {string} target - Link target (e.g. '_blank'); only used when href is set. With '_blank' the "opens in new tab" announcement is folded into the aria-label 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.
|
|
30
34
|
* @attr {string} rel - Link rel attribute, used with href; with target '_blank', 'noopener noreferrer' is added to whatever you set
|
|
@@ -52,6 +56,7 @@ import { template } from './icon-button.template.js';
|
|
|
52
56
|
import { withTranslations } from '../../../utilities/with-translations.js';
|
|
53
57
|
import { nlddIconButtonTranslations } from './icon-button.i18n.js';
|
|
54
58
|
import { PopupAnchorController } from '../../../utilities/popup-anchor-controller.js';
|
|
59
|
+
import { ShortcutAvailabilityController } from '../../../utilities/shortcut.js';
|
|
55
60
|
import './../../content/icon/icon.js';
|
|
56
61
|
import './../../status-and-feedback/activity-indicator/activity-indicator.js';
|
|
57
62
|
let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, nlddIconButtonTranslations) {
|
|
@@ -116,6 +121,10 @@ let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, n
|
|
|
116
121
|
/** Forwarded to the inner nldd-tooltip's `timing`. Use `'never'` to
|
|
117
122
|
* suppress the visual tooltip; aria-label still describes the button. */
|
|
118
123
|
this.tooltipTiming = 'delay';
|
|
124
|
+
this.shortcut = '';
|
|
125
|
+
this.shortcutMac = '';
|
|
126
|
+
this.shortcutWindows = '';
|
|
127
|
+
this.shortcutLinux = '';
|
|
119
128
|
/** When set, renders an <a> element instead of <button>. */
|
|
120
129
|
this.href = undefined;
|
|
121
130
|
/** Link target (e.g. '_blank'). Only used when href is set. */
|
|
@@ -130,6 +139,8 @@ let NLDDIconButton = class NLDDIconButton extends withTranslations(LitElement, n
|
|
|
130
139
|
* button and turns clicks into open/close. Not private: the template module
|
|
131
140
|
* binds its handlers. */
|
|
132
141
|
this._popup = new PopupAnchorController(this);
|
|
142
|
+
/** Renders again when shortcuts become available or unavailable, for the shortcut in the accessible name. */
|
|
143
|
+
this._shortcutAvailability = new ShortcutAvailabilityController(this);
|
|
133
144
|
}
|
|
134
145
|
/** Whether an icon is present via attribute or slot. */
|
|
135
146
|
get _hasIcon() {
|
|
@@ -277,6 +288,18 @@ __decorate([
|
|
|
277
288
|
__decorate([
|
|
278
289
|
property({ reflect: true, attribute: 'tooltip-timing', converter: reflectNonDefault('delay') })
|
|
279
290
|
], NLDDIconButton.prototype, "tooltipTiming", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
293
|
+
], NLDDIconButton.prototype, "shortcut", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
property({ reflect: true, attribute: 'shortcut-mac', converter: reflectNonDefault('') })
|
|
296
|
+
], NLDDIconButton.prototype, "shortcutMac", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
property({ reflect: true, attribute: 'shortcut-windows', converter: reflectNonDefault('') })
|
|
299
|
+
], NLDDIconButton.prototype, "shortcutWindows", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
property({ reflect: true, attribute: 'shortcut-linux', converter: reflectNonDefault('') })
|
|
302
|
+
], NLDDIconButton.prototype, "shortcutLinux", void 0);
|
|
280
303
|
__decorate([
|
|
281
304
|
property({ type: String, reflect: true })
|
|
282
305
|
], NLDDIconButton.prototype, "href", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"icon-button.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;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,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,O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iB,CAAgC,OAAO,CAAC,EAAE,CAAC;qDACxE;AAGvD;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;gDACxD;AAGd;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;mDAChF;AAGjB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;uDAChF;AAGrB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;qDAChF;AAInB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CACL;AAIrC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CACY;AAOvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACS;AA1IxB,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CAqO1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"icon-button.template.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,kCAAkC,CAAC;AAwB1C,wBAAgB,QAAQ,CAAC,IAAI,EAAE,cAAc,wCA0H5C"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
2
|
import { linkRel } from '../../../utilities/link-rel.js';
|
|
3
3
|
import { linkHintKey } from '../../../utilities/link-hint.js';
|
|
4
|
+
import { hasShortcut, shortcutLabel } from '../../../utilities/shortcut.js';
|
|
4
5
|
import '../../content/tooltip/tooltip.js';
|
|
5
6
|
function renderContent(component) {
|
|
6
7
|
return html `
|
|
@@ -30,7 +31,9 @@ export function template() {
|
|
|
30
31
|
// would override). Only the <a> path (href) navigates.
|
|
31
32
|
const hintKey = linkHintKey(this.href, this.target);
|
|
32
33
|
const linkHint = hintKey ? this._t(`components.icon-button.${hintKey}`) : '';
|
|
33
|
-
|
|
34
|
+
// The shortcut joins the name the way nldd-menu-item announces it
|
|
35
|
+
// ("Presentatiemodus Alt P"); the tooltip only shows it.
|
|
36
|
+
const baseLabel = [this.accessibleLabel || this.text, shortcutLabel(this)].filter(Boolean).join(' ');
|
|
34
37
|
const label = [baseLabel, linkHint].filter(Boolean).join(', ') || nothing;
|
|
35
38
|
const content = renderContent(this);
|
|
36
39
|
// Tooltip text: accessible-label always, or text when not visible (non-lg).
|
|
@@ -116,11 +119,15 @@ export function template() {
|
|
|
116
119
|
// The indicator is a sibling of the control (and of the tooltip wrapper),
|
|
117
120
|
// overlaid via the host's position:relative — keeping its live region out
|
|
118
121
|
// of any interactive ancestor.
|
|
119
|
-
const control = tooltipText && this.tooltipTiming !== 'never'
|
|
122
|
+
const control = (tooltipText || hasShortcut(this)) && this.tooltipTiming !== 'never'
|
|
120
123
|
? html `
|
|
121
124
|
<nldd-tooltip
|
|
122
|
-
text=${tooltipText}
|
|
125
|
+
text=${tooltipText || nothing}
|
|
123
126
|
timing=${this.tooltipTiming}
|
|
127
|
+
shortcut=${this.shortcut || nothing}
|
|
128
|
+
shortcut-mac=${this.shortcutMac || nothing}
|
|
129
|
+
shortcut-windows=${this.shortcutWindows || nothing}
|
|
130
|
+
shortcut-linux=${this.shortcutLinux || nothing}
|
|
124
131
|
>
|
|
125
132
|
${renderButton()}
|
|
126
133
|
</nldd-tooltip>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,kCAAkC,CAAC;AAE1C,SAAS,aAAa,CAAC,SAAyB;IAC/C,OAAO,IAAI,CAAA;;;MAGN,SAAS,CAAC,IAAI;QACf,CAAC,CAAC,IAAI,CAAA,mBAAmB,SAAS,CAAC,IAAI,eAAe;QACtD,CAAC,CAAC,IAAI,CAAA,iCAAiC,SAAS,CAAC,iBAAiB;;cAEzD;;KAET,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA;;;;IAI5B,CAAC,CAAC,CAAC,OAAO;;IAEV,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;qCACY,SAAS,CAAC,IAAI;GAChD,CAAC,CAAC,CAAC,EAAE;EACN,CAAC;AACH,CAAC;AAED,MAAM,UAAU,QAAQ;IACvB,sEAAsE;IACtE,2EAA2E;IAC3E,6EAA6E;IAC7E,uDAAuD;IACvD,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,0BAA0B,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7E,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"icon-button.template.js","sourceRoot":"","sources":["../../../../src/components/actions/icon-button/icon-button.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,kCAAkC,CAAC;AAE1C,SAAS,aAAa,CAAC,SAAyB;IAC/C,OAAO,IAAI,CAAA;;;MAGN,SAAS,CAAC,IAAI;QACf,CAAC,CAAC,IAAI,CAAA,mBAAmB,SAAS,CAAC,IAAI,eAAe;QACtD,CAAC,CAAC,IAAI,CAAA,iCAAiC,SAAS,CAAC,iBAAiB;;cAEzD;;KAET,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA;;;;IAI5B,CAAC,CAAC,CAAC,OAAO;;IAEV,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;qCACY,SAAS,CAAC,IAAI;GAChD,CAAC,CAAC,CAAC,EAAE;EACN,CAAC;AACH,CAAC;AAED,MAAM,UAAU,QAAQ;IACvB,sEAAsE;IACtE,2EAA2E;IAC3E,6EAA6E;IAC7E,uDAAuD;IACvD,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,0BAA0B,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7E,kEAAkE;IAClE,yDAAyD;IACzD,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,eAAe,IAAI,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,IAAI,C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AO;4BACrB,IAAI,CAAC,oBAAoB;2BAC1B,IAAI,CAAC,mBAAmB;mBAChC,IAAI,CAAC,MAAM,CAAC,iBAAiB;aACnC,IAAI,CAAC,YAAY;;MAExB,OAAO;;GAEV,CAAC;IACH,CAAC,CAAC;IAEF,0EAA0E;IAC1E,0EAA0E;IAC1E,+BAA+B;IAC/B,MAAM,OAAO,GAAG,CAAC,WAAW,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,aAAa,KAAK,OAAO;QACnF,CAAC,CAAC,IAAI,CAAA;;WAEG,WAAW,IAAI,OAAO;aACpB,IAAI,CAAC,aAAa;eAChB,IAAI,CAAC,QAAQ,IAAI,OAAO;mBACpB,IAAI,CAAC,WAAW,IAAI,OAAO;uBACvB,IAAI,CAAC,eAAe,IAAI,OAAO;qBACjC,IAAI,CAAC,aAAa,IAAI,OAAO;;MAE5C,YAAY,EAAE;;GAEjB;QACD,CAAC,CAAC,YAAY,EAAE,CAAC;IAElB,4EAA4E;IAC5E,yEAAyE;IACzE,2EAA2E;IAC3E,MAAM,SAAS,GAAG,IAAI,CAAA,kCAAkC,IAAI,CAAC,MAAM,CAAC,gBAAgB,UAAU,CAAC;IAE/F,OAAO,IAAI,CAAA,GAAG,OAAO,GAAG,gBAAgB,GAAG,SAAS,EAAE,CAAC;AACxD,CAAC"}
|
|
@@ -18,7 +18,7 @@ import '../../content/icon/icon.js';
|
|
|
18
18
|
import '../../content/keyboard-shortcut/keyboard-shortcut.js';
|
|
19
19
|
import '../../status-and-feedback/inline-dialog/inline-dialog.js';
|
|
20
20
|
import { isKeyboardMode, isTouchMode } from '../../../utilities/input-modality.js';
|
|
21
|
-
import {
|
|
21
|
+
import { queryBreakpoints } from '../../../assets/styles/breakpoints.js';
|
|
22
22
|
import { translate } from '../../../utilities/translations.js';
|
|
23
23
|
/** Makes `host` a list item while its menu is a navigation menu, and takes
|
|
24
24
|
* that back when it is not. A `listitem` the consumer set by hand on an item
|
|
@@ -1783,7 +1783,7 @@ export class NLDDMenu extends LitElement {
|
|
|
1783
1783
|
// Use the shared breakpoint constant so the JS-side threshold can't
|
|
1784
1784
|
// drift from the CSS-side one (spacer.styles.ts and friends pull
|
|
1785
1785
|
// from the same source).
|
|
1786
|
-
NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${
|
|
1786
|
+
NLDDMenu._drillInModeQuery = matchMedia(`(pointer: coarse), (max-width: ${queryBreakpoints.smMax})`);
|
|
1787
1787
|
}
|
|
1788
1788
|
return NLDDMenu._drillInModeQuery;
|
|
1789
1789
|
}
|