@nldd/design-system 0.8.95 → 0.8.97
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/README.md +20 -19
- package/custom-elements.json +781 -379
- package/dist/assets/styles/shadow-resets.d.ts +1 -1
- package/dist/assets/styles/shadow-resets.js +1 -1
- package/dist/components/actions/button/button.js +3 -3
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.js +273 -273
- package/dist/components/actions/button-bar/button-bar.styles.js +34 -34
- package/dist/components/actions/button-group/button-group.styles.js +11 -11
- package/dist/components/actions/icon-button/icon-button.js +3 -3
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +203 -203
- package/dist/components/actions/menu/menu.d.ts +3 -3
- package/dist/components/actions/menu/menu.js +15 -15
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +46 -41
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/split-button/split-button.js +3 -3
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +30 -30
- package/dist/components/actions/toolbar/toolbar.d.ts +5 -0
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +28 -18
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +55 -55
- package/dist/components/components.js +4682 -4158
- package/dist/components/content/avatar/avatar.d.ts +1 -1
- package/dist/components/content/avatar/avatar.js +3 -3
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +39 -39
- package/dist/components/content/avatar-group/avatar-group.styles.js +36 -36
- package/dist/components/content/blockquote/blockquote.styles.js +14 -14
- package/dist/components/content/code-viewer/code-viewer.js +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +36 -36
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +17 -1
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +25 -42
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +24 -12
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/icon/icon.js +2 -2
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/icon/icon.styles.js +48 -48
- package/dist/components/content/identity/identity.styles.js +17 -17
- package/dist/components/content/image/image.d.ts +19 -3
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +28 -7
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +189 -153
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +13 -1
- package/dist/components/content/image/image.template.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 +42 -40
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +25 -12
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +25 -12
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.styles.js +95 -95
- package/dist/components/content/text/text.styles.js +23 -23
- package/dist/components/content/title/title.styles.js +38 -38
- package/dist/components/content/token/token.styles.js +4 -4
- package/dist/components/content/tooltip/tooltip.js +5 -5
- 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 +21 -18
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +5 -5
- package/dist/components/forms/validation-list/validation-list.styles.js +7 -7
- package/dist/components/{icon-Typdp4av.js → icon-D_ZGezHx.js} +83 -63
- package/dist/components/{icon-button-9mo3oIyL.js → icon-button-NN0SrgS3.js} +278 -275
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +31 -16
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.js +2 -2
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +30 -30
- package/dist/components/inputs/combo-box/combo-box.js +2 -2
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +30 -30
- package/dist/components/inputs/date-field/date-field.js +4 -4
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.styles.js +46 -46
- package/dist/components/inputs/date-picker/date-picker.js +3 -3
- package/dist/components/inputs/date-picker/date-picker.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +65 -65
- package/dist/components/inputs/dropdown/dropdown.js +2 -2
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +66 -66
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/file-field/file-field.styles.js +33 -30
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +3 -3
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +30 -30
- package/dist/components/inputs/number-field/number-field.js +3 -3
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +18 -18
- package/dist/components/inputs/password-field/password-field.js +2 -2
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +37 -37
- package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +29 -13
- package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +2 -2
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +30 -30
- package/dist/components/inputs/segmented-control/segmented-control.js +4 -4
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +108 -108
- package/dist/components/inputs/stepper/stepper.styles.js +10 -10
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +39 -31
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +2 -2
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +7 -7
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +138 -138
- package/dist/components/inputs/text-field/text-field.js +2 -2
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +27 -27
- package/dist/components/inputs/time-field/time-field.js +4 -4
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.styles.js +40 -40
- package/dist/components/inputs/time-picker/time-picker.js +4 -4
- package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +30 -30
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +145 -145
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js +7 -3
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.styles.js +28 -28
- package/dist/components/layout/box/box.d.ts +1 -1
- package/dist/components/layout/box/box.js +1 -1
- package/dist/components/layout/box/box.styles.js +13 -13
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +24 -21
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.js +6 -6
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +19 -19
- package/dist/components/layout/container/container.d.ts +2 -2
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +32 -31
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +125 -125
- package/dist/components/layout/page/page.d.ts +9 -3
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +41 -18
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.js +21 -21
- package/dist/components/layout/page-footer/page-footer.js +4 -4
- package/dist/components/layout/page-footer/page-footer.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.styles.js +26 -26
- 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 +2 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +6 -4
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +22 -17
- 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.d.ts +57 -11
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +164 -21
- 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 +159 -105
- 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 +4 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +11 -4
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +30 -17
- 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 +4 -0
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +11 -4
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +34 -17
- 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.d.ts +11 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +11 -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 +5 -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 +11 -7
- 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.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +37 -34
- 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 +2 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +6 -5
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +19 -19
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +4 -0
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +11 -4
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +34 -17
- 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.d.ts +1 -1
- package/dist/components/layout/popover/popover.js +5 -5
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +4 -3
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.js +5 -5
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +8 -8
- package/dist/components/layout/{app-view/app-view.d.ts → shell/shell.d.ts} +11 -11
- package/dist/components/layout/shell/shell.d.ts.map +1 -0
- package/dist/components/layout/{app-view/app-view.js → shell/shell.js} +24 -24
- package/dist/components/layout/shell/shell.js.map +1 -0
- package/dist/components/layout/shell/shell.styles.d.ts +2 -0
- package/dist/components/layout/shell/shell.styles.d.ts.map +1 -0
- package/dist/components/layout/{app-view/app-view.styles.js → shell/shell.styles.js} +8 -8
- package/dist/components/layout/shell/shell.styles.js.map +1 -0
- package/dist/components/layout/shell/shell.template.d.ts +4 -0
- package/dist/components/layout/shell/shell.template.d.ts.map +1 -0
- package/dist/components/layout/shell/shell.template.js +9 -0
- package/dist/components/layout/shell/shell.template.js.map +1 -0
- package/dist/components/layout/spacer/spacer.styles.js +76 -76
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +5 -5
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +5 -5
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +12 -12
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +2 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +6 -6
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js +4 -4
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +4 -4
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +6 -6
- package/dist/components/layout/window/window.d.ts +1 -1
- package/dist/components/layout/window/window.js +1 -1
- package/dist/components/layout/window/window.styles.d.ts.map +1 -1
- package/dist/components/layout/window/window.styles.js +3 -1
- package/dist/components/layout/window/window.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.js +8 -8
- package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.js +9 -9
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +8 -8
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +10 -10
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js +9 -9
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +14 -14
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js +20 -20
- package/dist/components/lists-and-tables/cells/{timeline-track-cell/timeline-track-cell.d.ts → step-cell/step-cell.d.ts} +18 -17
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/{timeline-track-cell/timeline-track-cell.js → step-cell/step-cell.js} +33 -32
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts +2 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +184 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts +4 -0
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.d.ts.map +1 -0
- package/dist/components/lists-and-tables/cells/{timeline-track-cell/timeline-track-cell.template.js → step-cell/step-cell.template.js} +10 -10
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.template.js.map +1 -0
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +9 -9
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +39 -37
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +8 -8
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +39 -37
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +7 -7
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.styles.js +49 -48
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +16 -6
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +29 -16
- package/dist/components/lists-and-tables/list-item/list-item.js.map +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 +69 -67
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +4 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +8 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +30 -30
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.js +2 -2
- package/dist/components/lists-and-tables/table/table.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +21 -21
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +3 -3
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js +12 -12
- package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
- 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 +51 -49
- 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.d.ts +5 -0
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +13 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +35 -19
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +11 -10
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +29 -29
- package/dist/components/navigation/skip-link/skip-link.styles.js +8 -8
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +53 -53
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +3 -3
- 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 +35 -32
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +3 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js.map +1 -1
- package/dist/components/{shadow-resets-aG-rgyNQ.js → shadow-resets-CPa58rmc.js} +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +46 -46
- package/dist/components/status-and-feedback/badge/badge.js +2 -2
- 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 +120 -119
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +49 -49
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +19 -19
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +12 -12
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +58 -58
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +6 -6
- package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +45 -39
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notifications-area.js +2 -2
- package/dist/components/status-and-feedback/notification/notifications-area.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +121 -119
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +58 -58
- 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.d.ts +10 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +21 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +36 -36
- package/dist/components/status-and-feedback/{step-indicator/step-indicator.d.ts → step-bar/step-bar.d.ts} +32 -32
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.d.ts +9 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.js +8 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/{step-indicator/step-indicator.js → step-bar/step-bar.js} +46 -46
- package/dist/components/status-and-feedback/step-bar/step-bar.js.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts +3 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +294 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts +5 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js +69 -0
- package/dist/components/status-and-feedback/step-bar/step-bar.template.js.map +1 -0
- package/dist/css/document-reset.css +3 -3
- package/dist/css/rich-text.css +71 -122
- package/dist/css/variables.css +54 -410
- package/dist/nldd.min.js +4607 -4331
- package/dist/translations/en-US.js +5 -5
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.js +5 -5
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +5 -5
- package/dist/translations/nl.generated.js +2 -2
- package/dist/translations/nl.generated.js.map +1 -1
- package/dist/translations/pap-AW.js +5 -5
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.js +5 -5
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/vue.d.ts +125 -82
- package/dist/utilities/codemirror/theme.js +17 -17
- package/dist/utilities/codemirror/theme.js.map +1 -1
- package/dist/utilities/page-section-mixin.d.ts +5 -0
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +13 -4
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/scroll-mode-controller.d.ts +29 -13
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +48 -13
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/dist/utilities/spacing-scale.d.ts +1 -1
- package/dist/utilities/spacing-scale.js +1 -1
- package/package.json +13 -11
- package/dist/components/layout/app-view/app-view.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.js.map +0 -1
- package/dist/components/layout/app-view/app-view.styles.d.ts +0 -2
- package/dist/components/layout/app-view/app-view.styles.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.styles.js.map +0 -1
- package/dist/components/layout/app-view/app-view.template.d.ts +0 -4
- package/dist/components/layout/app-view/app-view.template.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.template.js +0 -9
- package/dist/components/layout/app-view/app-view.template.js.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts +0 -2
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +0 -184
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.d.ts +0 -4
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +0 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.template.js.map +0 -1
- package/dist/components/palettes.html +0 -245
- package/dist/components/sample-images/butterfly-1200.jpg +0 -0
- package/dist/components/sample-images/butterfly-1600.jpg +0 -0
- package/dist/components/sample-images/butterfly-480.jpg +0 -0
- package/dist/components/sample-images/butterfly-960.jpg +0 -0
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts +0 -9
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.d.ts.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js +0 -8
- package/dist/components/status-and-feedback/step-indicator/step-indicator.i18n.js.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts +0 -3
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.d.ts.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js +0 -294
- package/dist/components/status-and-feedback/step-indicator/step-indicator.styles.js.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts +0 -5
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.d.ts.map +0 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js +0 -69
- package/dist/components/status-and-feedback/step-indicator/step-indicator.template.js.map +0 -1
- package/dist/palettes.html +0 -245
- package/dist/sample-images/butterfly-1200.jpg +0 -0
- package/dist/sample-images/butterfly-1600.jpg +0 -0
- package/dist/sample-images/butterfly-480.jpg +0 -0
- package/dist/sample-images/butterfly-960.jpg +0 -0
|
@@ -9,19 +9,20 @@ export const documentTabBarStyles = css `
|
|
|
9
9
|
/* # Host */
|
|
10
10
|
|
|
11
11
|
:host {
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
12
|
+
--_document-tab-bar-drag-clone-top: 0px;
|
|
13
|
+
--_document-tab-bar-drag-clone-left: 0px;
|
|
14
|
+
--_document-tab-bar-drag-clone-width: 0px;
|
|
15
|
+
--_document-tab-bar-drag-clone-height: 0px;
|
|
16
|
+
--_document-tab-bar-drag-clone-opacity: 0.95;
|
|
17
|
+
--_document-tab-bar-drag-clone-z-index: 100;
|
|
18
|
+
--_document-tab-bar-short-text-threshold: 200px;
|
|
19
|
+
--_document-tab-bar-item-min-width: 100px;
|
|
20
|
+
--_document-tab-bar-overflow-button-reserve: 52px; /* Used for overflowButtonReserve. Overflow button width + spacing */
|
|
21
|
+
--_document-tab-bar-dismiss-button-is-hovered-background-color: light-dark(var(--primitives-color-neutral-150), var(--primitives-color-neutral-250));
|
|
22
|
+
--_document-tab-bar-dismiss-button-is-active-background-color: light-dark(var(--primitives-color-neutral-200), var(--primitives-color-neutral-300));
|
|
23
|
+
--_document-tab-bar-dismiss-button-is-selected-is-hovered-background-color: light-dark(var(--primitives-color-accent-650), var(--primitives-color-accent-600));
|
|
24
|
+
--_document-tab-bar-dismiss-button-is-selected-is-active-background-color: light-dark(var(--primitives-color-accent-600), var(--primitives-color-accent-550));
|
|
25
|
+
--_document-tab-bar-tab-title-font: var(--primitives-font-body-sm-medium-flat);
|
|
25
26
|
|
|
26
27
|
${inheritedTextReset}
|
|
27
28
|
display: block;
|
|
@@ -59,7 +60,7 @@ export const documentTabBarStyles = css `
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
::slotted(nldd-document-tab-bar-item) {
|
|
62
|
-
min-width: var(--
|
|
63
|
+
min-width: var(--_document-tab-bar-item-min-width);
|
|
63
64
|
flex-grow: 1;
|
|
64
65
|
flex-shrink: 1;
|
|
65
66
|
flex-basis: 0;
|
|
@@ -120,7 +121,7 @@ export const documentTabBarStyles = css `
|
|
|
120
121
|
background-color: var(--semantics-buttons-neutral-tinted-background-color);
|
|
121
122
|
pointer-events: none;
|
|
122
123
|
height: var(--semantics-controls-md-min-size);
|
|
123
|
-
min-width: var(--
|
|
124
|
+
min-width: var(--_document-tab-bar-item-min-width);
|
|
124
125
|
flex-grow: 1;
|
|
125
126
|
flex-shrink: 1;
|
|
126
127
|
flex-basis: 0;
|
|
@@ -131,17 +132,17 @@ export const documentTabBarStyles = css `
|
|
|
131
132
|
|
|
132
133
|
.document-tab-bar__drag-clone {
|
|
133
134
|
position: absolute;
|
|
134
|
-
top: var(--
|
|
135
|
-
left: var(--
|
|
135
|
+
top: var(--_document-tab-bar-drag-clone-top);
|
|
136
|
+
left: var(--_document-tab-bar-drag-clone-left);
|
|
136
137
|
display: flex;
|
|
137
|
-
opacity: var(--
|
|
138
|
-
z-index: var(--
|
|
138
|
+
opacity: var(--_document-tab-bar-drag-clone-opacity);
|
|
139
|
+
z-index: var(--_document-tab-bar-drag-clone-z-index);
|
|
139
140
|
border-radius: var(--semantics-controls-md-corner-radius);
|
|
140
141
|
background: var(--semantics-buttons-neutral-tinted-background-color);
|
|
141
142
|
pointer-events: none;
|
|
142
143
|
cursor: grabbing;
|
|
143
|
-
width: var(--
|
|
144
|
-
height: var(--
|
|
144
|
+
width: var(--_document-tab-bar-drag-clone-width);
|
|
145
|
+
height: var(--_document-tab-bar-drag-clone-height);
|
|
145
146
|
overflow: hidden;
|
|
146
147
|
flex-direction: row;
|
|
147
148
|
align-items: stretch;
|
|
@@ -175,7 +176,7 @@ export const documentTabBarStyles = css `
|
|
|
175
176
|
|
|
176
177
|
.document-tab-bar__drag-clone .document-tab-bar__item-text {
|
|
177
178
|
overflow: hidden;
|
|
178
|
-
font: var(--
|
|
179
|
+
font: var(--_document-tab-bar-tab-title-font);
|
|
179
180
|
color: var(--semantics-buttons-neutral-tinted-content-color);
|
|
180
181
|
text-overflow: ellipsis;
|
|
181
182
|
white-space: nowrap;
|
|
@@ -221,14 +222,15 @@ export const documentTabBarItemStyles = css `
|
|
|
221
222
|
/* # Host */
|
|
222
223
|
|
|
223
224
|
:host {
|
|
224
|
-
--
|
|
225
|
-
--
|
|
226
|
-
--
|
|
227
|
-
--
|
|
228
|
-
--
|
|
229
|
-
--
|
|
225
|
+
--_document-tab-bar-item-highlight-border-color: var(--semantics-buttons-neutral-tinted-highlight-border-color);
|
|
226
|
+
--_document-tab-bar-item-is-hovered-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-hovered-highlight-border-color);
|
|
227
|
+
--_document-tab-bar-item-is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-active-highlight-border-color);
|
|
228
|
+
--_document-tab-bar-item-is-selected-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-highlight-border-color);
|
|
229
|
+
--_document-tab-bar-item-is-selected-is-hovered-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-is-hovered-highlight-border-color);
|
|
230
|
+
--_document-tab-bar-item-is-selected-is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-is-active-highlight-border-color);
|
|
230
231
|
|
|
231
|
-
--
|
|
232
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-buttons-neutral-tinted-content-secondary-color);
|
|
233
|
+
--_document-tab-bar-item-tab-title-font: var(--primitives-font-body-sm-medium-flat);
|
|
232
234
|
|
|
233
235
|
${inheritedTextReset}
|
|
234
236
|
container-type: inline-size;
|
|
@@ -263,7 +265,7 @@ export const documentTabBarItemStyles = css `
|
|
|
263
265
|
border: none;
|
|
264
266
|
border-radius: var(--semantics-controls-md-corner-radius);
|
|
265
267
|
background-color: var(--semantics-buttons-neutral-tinted-background-color);
|
|
266
|
-
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--
|
|
268
|
+
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--_document-tab-bar-item-highlight-border-color);
|
|
267
269
|
width: 100%;
|
|
268
270
|
height: 100%;
|
|
269
271
|
min-width: 0;
|
|
@@ -281,34 +283,34 @@ export const documentTabBarItemStyles = css `
|
|
|
281
283
|
@media (hover: hover) {
|
|
282
284
|
.document-tab-bar__item-tab:hover {
|
|
283
285
|
background-color: var(--semantics-buttons-neutral-tinted-is-hovered-background-color);
|
|
284
|
-
--
|
|
285
|
-
--
|
|
286
|
+
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-hovered-highlight-border-color);
|
|
287
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-hovered-content-secondary-color);
|
|
286
288
|
}
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
.document-tab-bar__item-tab:active {
|
|
290
292
|
background-color: var(--semantics-buttons-neutral-tinted-is-active-background-color);
|
|
291
|
-
--
|
|
292
|
-
--
|
|
293
|
+
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-active-highlight-border-color);
|
|
294
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-active-content-secondary-color);
|
|
293
295
|
}
|
|
294
296
|
|
|
295
297
|
:host([selected]) .document-tab-bar__item-tab {
|
|
296
298
|
background-color: var(--semantics-buttons-neutral-tinted-is-selected-background-color);
|
|
297
|
-
--
|
|
298
|
-
--
|
|
299
|
+
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-selected-highlight-border-color);
|
|
300
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-selected-content-secondary-color);
|
|
299
301
|
}
|
|
300
302
|
|
|
301
303
|
@media (hover: hover) {
|
|
302
304
|
:host([selected]) .document-tab-bar__item-tab:hover {
|
|
303
305
|
background-color: var(--semantics-buttons-neutral-tinted-is-selected-background-color);
|
|
304
|
-
--
|
|
305
|
-
--
|
|
306
|
+
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-selected-is-hovered-highlight-border-color);
|
|
307
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-selected-is-hovered-content-secondary-color);
|
|
306
308
|
}
|
|
307
309
|
}
|
|
308
310
|
|
|
309
311
|
:host([selected]) .document-tab-bar__item-tab:active {
|
|
310
|
-
--
|
|
311
|
-
--
|
|
312
|
+
--_document-tab-bar-item-highlight-border-color: var(--_document-tab-bar-item-is-selected-is-active-highlight-border-color);
|
|
313
|
+
--_document-tab-bar-item-secondary-content-color: var(--semantics-buttons-neutral-tinted-is-selected-is-active-content-secondary-color);
|
|
312
314
|
}
|
|
313
315
|
|
|
314
316
|
/* ## Focus */
|
|
@@ -316,7 +318,7 @@ export const documentTabBarItemStyles = css `
|
|
|
316
318
|
.document-tab-bar__item-tab:focus-visible {
|
|
317
319
|
outline: var(--semantics-focus-ring-outline);
|
|
318
320
|
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
319
|
-
box-shadow: var(--semantics-focus-ring-box-shadow), inset 0 0 0 var(--primitives-border-width-thin) var(--
|
|
321
|
+
box-shadow: var(--semantics-focus-ring-box-shadow), inset 0 0 0 var(--primitives-border-width-thin) var(--_document-tab-bar-item-highlight-border-color);
|
|
320
322
|
}
|
|
321
323
|
|
|
322
324
|
|
|
@@ -344,7 +346,7 @@ export const documentTabBarItemStyles = css `
|
|
|
344
346
|
.document-tab-bar__item-text {
|
|
345
347
|
overflow: hidden;
|
|
346
348
|
padding-inline-end: var(--primitives-space-6);
|
|
347
|
-
font: var(--
|
|
349
|
+
font: var(--_document-tab-bar-item-tab-title-font);
|
|
348
350
|
color: var(--semantics-buttons-neutral-tinted-content-color);
|
|
349
351
|
text-overflow: ellipsis;
|
|
350
352
|
white-space: nowrap;
|
|
@@ -357,7 +359,7 @@ export const documentTabBarItemStyles = css `
|
|
|
357
359
|
.document-tab-bar__item-short-text {
|
|
358
360
|
overflow: hidden;
|
|
359
361
|
padding-inline-end: var(--primitives-space-6);
|
|
360
|
-
font: var(--
|
|
362
|
+
font: var(--_document-tab-bar-item-tab-title-font);
|
|
361
363
|
color: var(--semantics-buttons-neutral-tinted-content-color);
|
|
362
364
|
text-overflow: ellipsis;
|
|
363
365
|
white-space: nowrap;
|
|
@@ -374,7 +376,7 @@ export const documentTabBarItemStyles = css `
|
|
|
374
376
|
overflow: hidden;
|
|
375
377
|
padding-inline-end: var(--primitives-space-6);
|
|
376
378
|
font: var(--primitives-font-body-xs-regular-flat);
|
|
377
|
-
color: var(--
|
|
379
|
+
color: var(--_document-tab-bar-item-secondary-content-color);
|
|
378
380
|
text-overflow: ellipsis;
|
|
379
381
|
white-space: nowrap;
|
|
380
382
|
}
|
|
@@ -383,7 +385,7 @@ export const documentTabBarItemStyles = css `
|
|
|
383
385
|
overflow: hidden;
|
|
384
386
|
padding-inline-end: var(--primitives-space-6);
|
|
385
387
|
font: var(--primitives-font-body-xs-regular-flat);
|
|
386
|
-
color: var(--
|
|
388
|
+
color: var(--_document-tab-bar-item-secondary-content-color);
|
|
387
389
|
text-overflow: ellipsis;
|
|
388
390
|
white-space: nowrap;
|
|
389
391
|
}
|
|
@@ -412,12 +414,12 @@ export const documentTabBarItemStyles = css `
|
|
|
412
414
|
|
|
413
415
|
@media (hover: hover) {
|
|
414
416
|
.document-tab-bar__item-dismiss-button:hover {
|
|
415
|
-
background-color: var(--
|
|
417
|
+
background-color: var(--_document-tab-bar-dismiss-button-is-hovered-background-color);
|
|
416
418
|
}
|
|
417
419
|
}
|
|
418
420
|
|
|
419
421
|
.document-tab-bar__item-dismiss-button:active {
|
|
420
|
-
background-color: var(--
|
|
422
|
+
background-color: var(--_document-tab-bar-dismiss-button-is-active-background-color);
|
|
421
423
|
}
|
|
422
424
|
|
|
423
425
|
:host([selected]) .document-tab-bar__item-dismiss-button {
|
|
@@ -426,12 +428,12 @@ export const documentTabBarItemStyles = css `
|
|
|
426
428
|
|
|
427
429
|
@media (hover: hover) {
|
|
428
430
|
:host([selected]) .document-tab-bar__item-dismiss-button:hover {
|
|
429
|
-
background-color: var(--
|
|
431
|
+
background-color: var(--_document-tab-bar-dismiss-button-is-selected-is-hovered-background-color);
|
|
430
432
|
}
|
|
431
433
|
}
|
|
432
434
|
|
|
433
435
|
:host([selected]) .document-tab-bar__item-dismiss-button:active {
|
|
434
|
-
background-color: var(--
|
|
436
|
+
background-color: var(--_document-tab-bar-dismiss-button-is-selected-is-active-background-color);
|
|
435
437
|
}
|
|
436
438
|
|
|
437
439
|
.document-tab-bar__item-dismiss-button:focus-visible {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-tab-bar.styles.js","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"document-tab-bar.styles.js","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;IAwBnC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+LrB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;IAgBvC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2NrB,CAAC"}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
*
|
|
25
25
|
* @fires select - On a click on a non-expandable button item (bubbles, composed)
|
|
26
26
|
*
|
|
27
|
+
* @slot icon - Takes the place of the icon: an `nldd-avatar` for the person who is signed in, for instance. It gets the size of an icon, and follows `content-priority` and `icon-only` as the icon does. Wins over `icon`.
|
|
27
28
|
* @slot - Content of the expandable popover. Wrap items in an `<nldd-menu>` so
|
|
28
29
|
* this component does not have to duplicate the menu API (variant,
|
|
29
30
|
* accessible-label, translations, filterFn and so on). Event listeners on
|
|
@@ -70,6 +71,10 @@ export declare class NLDDMenuBarItem extends LitElement {
|
|
|
70
71
|
connectedCallback(): void;
|
|
71
72
|
firstUpdated(): void;
|
|
72
73
|
disconnectedCallback(): void;
|
|
74
|
+
/** @internal Whether the icon slot is filled, so the icon area and the icon-only rules follow it. */
|
|
75
|
+
_hasSlottedIcon: boolean;
|
|
76
|
+
/** @internal */
|
|
77
|
+
_onIconSlotChange: (e: Event) => void;
|
|
73
78
|
_onSlotChange: () => void;
|
|
74
79
|
focus(options?: FocusOptions): void;
|
|
75
80
|
private _findMenu;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-item.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"menu-bar-item.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AAcpC,qBACa,eAAgB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAAqB;IAG3C,IAAI,SAAM;IAGV,OAAO,UAAS;IAGhB,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAU;IAG9E,IAAI,SAAM;IAGV,IAAI,SAAM;IAGV,UAAU,UAAS;IAGnB,QAAQ,UAAS;IAGjB,eAAe,SAAM;IAGrB,OAAO,UAAS;IAGhB,QAAQ,UAAS;IAGjB,eAAe,SAAM;IAGrB,QAAQ,SAAM;IAGd,QAAQ,UAAS;IAEjB;;;;;;OAMG;IAEH,oBAAoB,EAAE,OAAO,GAAG,IAAI,CAAQ;IAE5C;;;;;;OAMG;IAEH,mBAAmB,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAY;IAI3D,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,yBAAyB,CAAS;IAC1C,OAAO,CAAC,kBAAkB,CAAyC;IAI1D,iBAAiB,IAAI,IAAI;IAWzB,YAAY,IAAI,IAAI;IAQpB,oBAAoB,IAAI,IAAI;IAOrC,qGAAqG;IAErG,eAAe,UAAS;IAExB,gBAAgB;IAChB,iBAAiB,GAAI,GAAG,KAAK,KAAG,IAAI,CAIlC;IAEF,aAAa,QAAO,IAAI,CAGtB;IAEO,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,IAAI;IAO5C,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,SAAS;IAcjB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,kBAAkB,CAIxB;IAEF,OAAO,CAAC,YAAY,CAqBlB;IAIF,OAAO,CAAC,WAAW;IAgBV,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,oBAAoB,EAAE,eAAe,CAAC;KACtC;CACD"}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
*
|
|
25
25
|
* @fires select - On a click on a non-expandable button item (bubbles, composed)
|
|
26
26
|
*
|
|
27
|
+
* @slot icon - Takes the place of the icon: an `nldd-avatar` for the person who is signed in, for instance. It gets the size of an icon, and follows `content-priority` and `icon-only` as the icon does. Wins over `icon`.
|
|
27
28
|
* @slot - Content of the expandable popover. Wrap items in an `<nldd-menu>` so
|
|
28
29
|
* this component does not have to duplicate the menu API (variant,
|
|
29
30
|
* accessible-label, translations, filterFn and so on). Event listeners on
|
|
@@ -36,7 +37,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
36
37
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
37
38
|
};
|
|
38
39
|
import { LitElement } from 'lit';
|
|
39
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
40
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
40
41
|
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
41
42
|
import { menuBarItemStyles } from './menu-bar-item.styles.js';
|
|
42
43
|
import { template } from './menu-bar-item.template.js';
|
|
@@ -79,6 +80,14 @@ let NLDDMenuBarItem = class NLDDMenuBarItem extends LitElement {
|
|
|
79
80
|
this._menuOpen = false;
|
|
80
81
|
this._pointerdownWhileMenuOpen = false;
|
|
81
82
|
this._menuToggleHandler = null;
|
|
83
|
+
/** @internal Whether the icon slot is filled, so the icon area and the icon-only rules follow it. */
|
|
84
|
+
this._hasSlottedIcon = false;
|
|
85
|
+
/** @internal */
|
|
86
|
+
this._onIconSlotChange = (e) => {
|
|
87
|
+
this._hasSlottedIcon = e.target.assignedElements().length > 0;
|
|
88
|
+
// A derived state for the host's own CSS, never written back into `icon`.
|
|
89
|
+
this.toggleAttribute('data-has-icon', this._hasSlottedIcon);
|
|
90
|
+
};
|
|
82
91
|
this._onSlotChange = () => {
|
|
83
92
|
// Re-wire when a consumer swaps the slotted <nldd-menu> at runtime.
|
|
84
93
|
this._wireMenu();
|
|
@@ -233,6 +242,9 @@ __decorate([
|
|
|
233
242
|
__decorate([
|
|
234
243
|
property({ attribute: false })
|
|
235
244
|
], NLDDMenuBarItem.prototype, "popoverTargetAction", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
state()
|
|
247
|
+
], NLDDMenuBarItem.prototype, "_hasSlottedIcon", void 0);
|
|
236
248
|
NLDDMenuBarItem = __decorate([
|
|
237
249
|
customElement('nldd-menu-bar-item')
|
|
238
250
|
], NLDDMenuBarItem);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-item.js","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"menu-bar-item.js","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AAe7B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAIN,SAAI,GAAG,EAAE,CAAC;QAGV,YAAO,GAAG,KAAK,CAAC;QAGhB,gBAAW,GAA4D,MAAM,CAAC;QAG9E,SAAI,GAAG,EAAE,CAAC;QAGV,SAAI,GAAG,EAAE,CAAC;QAGV,eAAU,GAAG,KAAK,CAAC;QAGnB,aAAQ,GAAG,KAAK,CAAC;QAGjB,oBAAe,GAAG,EAAE,CAAC;QAGrB,YAAO,GAAG,KAAK,CAAC;QAGhB,aAAQ,GAAG,KAAK,CAAC;QAGjB,oBAAe,GAAG,EAAE,CAAC;QAGrB,aAAQ,GAAG,EAAE,CAAC;QAGd,aAAQ,GAAG,KAAK,CAAC;QAEjB;;;;;;WAMG;QAEH,yBAAoB,GAAmB,IAAI,CAAC;QAE5C;;;;;;WAMG;QAEH,wBAAm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AAE,kBAAkB,EAAE,CAAC;wDACrC;AAGrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDACb;AAGd;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAUjB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;6DACa;AAU5C;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;4DAC4B;AAuC3D;IADC,KAAK,EAAE;wDACgB;AAnGZ,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CAuM3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-item.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"menu-bar-item.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,yBAsM7B,CAAC"}
|
|
@@ -9,9 +9,15 @@ export const menuBarItemStyles = css `
|
|
|
9
9
|
/* # Host */
|
|
10
10
|
|
|
11
11
|
:host {
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
12
|
+
--_menu-bar-item-indicator-z-index: 0;
|
|
13
|
+
--_menu-bar-item-content-z-index: 1;
|
|
14
|
+
--_menu-bar-item-focus-z-index: 1;
|
|
15
|
+
--_menu-bar-item-content-color: var(--primitives-color-accent-750);
|
|
16
|
+
--_menu-bar-item-font: var(--primitives-font-body-md-medium-flat);
|
|
17
|
+
--_menu-bar-item-is-hovered-indicator-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-200));
|
|
18
|
+
--_menu-bar-item-is-expanded-indicator-background-color: light-dark(var(--primitives-color-neutral-75), var(--primitives-color-neutral-250));
|
|
19
|
+
--_menu-bar-item-is-current-indicator-background-color: var(--semantics-controls-is-highlighted-indicator-color);
|
|
20
|
+
--_menu-bar-item-is-current-indicator-height: var(--primitives-space-4);
|
|
15
21
|
|
|
16
22
|
${inheritedTextReset}
|
|
17
23
|
display: inline-block;
|
|
@@ -41,13 +47,13 @@ export const menuBarItemStyles = css `
|
|
|
41
47
|
background: none;
|
|
42
48
|
min-width: var(--semantics-controls-md-min-size);
|
|
43
49
|
height: var(--semantics-controls-md-min-size);
|
|
44
|
-
padding: 0 var(--
|
|
50
|
+
padding: 0 var(--semantics-menu-bar-items-inline-padding);
|
|
45
51
|
gap: var(--primitives-space-4);
|
|
46
52
|
align-items: center;
|
|
47
53
|
justify-content: center;
|
|
48
54
|
text-align: center;
|
|
49
|
-
color: var(--
|
|
50
|
-
font: var(--
|
|
55
|
+
color: var(--_menu-bar-item-content-color);
|
|
56
|
+
font: var(--_menu-bar-item-font);
|
|
51
57
|
text-decoration: none;
|
|
52
58
|
white-space: nowrap;
|
|
53
59
|
appearance: none;
|
|
@@ -66,24 +72,24 @@ export const menuBarItemStyles = css `
|
|
|
66
72
|
right: 0;
|
|
67
73
|
bottom: var(--primitives-space-6);
|
|
68
74
|
left: 0;
|
|
69
|
-
z-index: var(--
|
|
75
|
+
z-index: var(--_menu-bar-item-indicator-z-index);
|
|
70
76
|
border-radius: var(--semantics-controls-sm-corner-radius);
|
|
71
77
|
pointer-events: none;
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
@media (hover: hover) {
|
|
75
81
|
.menu-bar-item:hover::before {
|
|
76
|
-
background-color: var(--
|
|
82
|
+
background-color: var(--_menu-bar-item-is-hovered-indicator-background-color);
|
|
77
83
|
}
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
:host([expanded]) .menu-bar-item::before {
|
|
81
|
-
background-color: var(--
|
|
87
|
+
background-color: var(--_menu-bar-item-is-expanded-indicator-background-color);
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
@media (hover: hover) {
|
|
85
91
|
:host([expanded]) .menu-bar-item:hover::before {
|
|
86
|
-
background-color: var(--
|
|
92
|
+
background-color: var(--_menu-bar-item-is-hovered-indicator-background-color);
|
|
87
93
|
}
|
|
88
94
|
}
|
|
89
95
|
|
|
@@ -95,9 +101,9 @@ export const menuBarItemStyles = css `
|
|
|
95
101
|
right: var(--primitives-space-8);
|
|
96
102
|
bottom: 0;
|
|
97
103
|
left: var(--primitives-space-8);
|
|
98
|
-
z-index: var(--
|
|
99
|
-
background-color: var(--
|
|
100
|
-
height: var(--
|
|
104
|
+
z-index: var(--_menu-bar-item-indicator-z-index);
|
|
105
|
+
background-color: var(--_menu-bar-item-is-current-indicator-background-color);
|
|
106
|
+
height: var(--_menu-bar-item-is-current-indicator-height);
|
|
101
107
|
pointer-events: none;
|
|
102
108
|
}
|
|
103
109
|
|
|
@@ -105,22 +111,32 @@ export const menuBarItemStyles = css `
|
|
|
105
111
|
|
|
106
112
|
.menu-bar-item__text {
|
|
107
113
|
position: relative;
|
|
108
|
-
z-index: var(--
|
|
114
|
+
z-index: var(--_menu-bar-item-content-z-index);
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
/* ## Icon */
|
|
112
118
|
|
|
113
119
|
.menu-bar-item__icon {
|
|
114
|
-
z-index: var(--
|
|
120
|
+
z-index: var(--_menu-bar-item-content-z-index);
|
|
115
121
|
width: var(--primitives-space-20);
|
|
116
122
|
height: var(--primitives-space-20);
|
|
117
123
|
flex-shrink: 0;
|
|
118
124
|
}
|
|
119
125
|
|
|
126
|
+
.menu-bar-item__icon[hidden] {
|
|
127
|
+
display: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
::slotted([slot="icon"]) {
|
|
131
|
+
display: flex;
|
|
132
|
+
width: 100%;
|
|
133
|
+
height: 100%;
|
|
134
|
+
}
|
|
135
|
+
|
|
120
136
|
/* ## Disclosure icon */
|
|
121
137
|
|
|
122
138
|
.menu-bar-item__disclosure-icon {
|
|
123
|
-
z-index: var(--
|
|
139
|
+
z-index: var(--_menu-bar-item-content-z-index);
|
|
124
140
|
width: var(--primitives-space-16);
|
|
125
141
|
height: var(--primitives-space-16);
|
|
126
142
|
}
|
|
@@ -129,7 +145,7 @@ export const menuBarItemStyles = css `
|
|
|
129
145
|
/* # Focus */
|
|
130
146
|
|
|
131
147
|
:host(:focus-within) {
|
|
132
|
-
z-index: var(--
|
|
148
|
+
z-index: var(--_menu-bar-item-focus-z-index);
|
|
133
149
|
}
|
|
134
150
|
|
|
135
151
|
.menu-bar-item:focus-visible {
|
|
@@ -162,12 +178,12 @@ export const menuBarItemStyles = css `
|
|
|
162
178
|
/* # Icon-only */
|
|
163
179
|
|
|
164
180
|
:host([icon-only]) .menu-bar-item,
|
|
165
|
-
:host([content-priority="icon"][compact][icon]:not([icon=""])) .menu-bar-item {
|
|
181
|
+
:host([content-priority="icon"][compact]:is([icon]:not([icon=""]), [data-has-icon])) .menu-bar-item {
|
|
166
182
|
padding: var(--primitives-space-8);
|
|
167
183
|
}
|
|
168
184
|
|
|
169
185
|
:host([icon-only]) .menu-bar-item__text,
|
|
170
|
-
:host([content-priority="icon"][compact][icon]:not([icon=""])) .menu-bar-item__text {
|
|
186
|
+
:host([content-priority="icon"][compact]:is([icon]:not([icon=""]), [data-has-icon])) .menu-bar-item__text {
|
|
171
187
|
position: absolute;
|
|
172
188
|
margin: -1px;
|
|
173
189
|
border: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-item.styles.js","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"menu-bar-item.styles.js","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;IAmBhC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmLrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-item.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,wBAAgB,QAAQ,CAAC,SAAS,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"menu-bar-item.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAG1D,wBAAgB,QAAQ,CAAC,SAAS,EAAE,eAAe,wCAkElD"}
|
|
@@ -8,6 +8,15 @@ export function template(component) {
|
|
|
8
8
|
const ariaCurrent = component.current ? component.currentType : nothing;
|
|
9
9
|
const ariaHaspopup = component.expandable ? 'menu' : (component.haspopup || nothing);
|
|
10
10
|
const ariaExpanded = (component.expandable || component.haspopup) ? String(component.expanded) : nothing;
|
|
11
|
+
// The slot is always rendered, so a slotted icon is noticed when it arrives;
|
|
12
|
+
// the icon name is its fallback.
|
|
13
|
+
const icon = html `
|
|
14
|
+
<span class="menu-bar-item__icon" ?hidden=${!component.icon && !component._hasSlottedIcon}>
|
|
15
|
+
<slot name="icon" @slotchange=${component._onIconSlotChange}>
|
|
16
|
+
${component.icon ? html `<nldd-icon icon=${component.icon}></nldd-icon>` : nothing}
|
|
17
|
+
</slot>
|
|
18
|
+
</span>
|
|
19
|
+
`;
|
|
11
20
|
if (isLink) {
|
|
12
21
|
return html `
|
|
13
22
|
<a class="menu-bar-item"
|
|
@@ -19,11 +28,7 @@ export function template(component) {
|
|
|
19
28
|
aria-haspopup=${ariaHaspopup}
|
|
20
29
|
aria-expanded=${ariaExpanded}
|
|
21
30
|
>
|
|
22
|
-
${
|
|
23
|
-
<span class="menu-bar-item__icon">
|
|
24
|
-
<nldd-icon icon=${component.icon}></nldd-icon>
|
|
25
|
-
</span>
|
|
26
|
-
` : nothing}
|
|
31
|
+
${icon}
|
|
27
32
|
<span class="menu-bar-item__text">
|
|
28
33
|
${component.text}
|
|
29
34
|
</span>
|
|
@@ -47,11 +52,7 @@ export function template(component) {
|
|
|
47
52
|
.popoverTargetElement=${component.popoverTargetElement}
|
|
48
53
|
.popoverTargetAction=${component.popoverTargetAction}
|
|
49
54
|
>
|
|
50
|
-
${
|
|
51
|
-
<span class="menu-bar-item__icon">
|
|
52
|
-
<nldd-icon icon=${component.icon}></nldd-icon>
|
|
53
|
-
</span>
|
|
54
|
-
` : nothing}
|
|
55
|
+
${icon}
|
|
55
56
|
<span class="menu-bar-item__text">
|
|
56
57
|
${component.text}
|
|
57
58
|
</span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-item.template.js","sourceRoot":"","sources":["../../../../src/components/navigation/menu-bar-item/menu-bar-item.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,MAAM,UAAU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