@nldd/design-system 0.8.56 → 0.8.58
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/dist/components/actions/button/button.d.ts +13 -4
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +23 -3
- 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 +352 -87
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +33 -17
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.d.ts +2 -2
- package/dist/components/actions/button-bar/button-bar.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.js +3 -1
- package/dist/components/actions/button-bar/button-bar.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.js +28 -4
- package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.template.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.template.js +4 -1
- package/dist/components/actions/button-bar/button-bar.template.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +4 -2
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +15 -5
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +24 -4
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +195 -63
- package/dist/components/actions/icon-button/icon-button.styles.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 +4 -2
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.d.ts +9 -0
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +27 -2
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +17 -5
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +30 -20
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +73 -49
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +39 -3
- package/dist/components/actions/split-button/split-button.styles.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 +6 -1
- package/dist/components/actions/split-button/split-button.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +91 -14
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +299 -103
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts +2 -0
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +109 -41
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.d.ts +7 -4
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +22 -69
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/components.js +88 -85
- package/dist/components/content/blockquote/blockquote.d.ts +3 -1
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +12 -1
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +4 -0
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.template.js +1 -1
- package/dist/components/content/blockquote/blockquote.template.js.map +1 -1
- package/dist/components/content/byline/byline.d.ts +53 -0
- package/dist/components/content/byline/byline.d.ts.map +1 -0
- package/dist/components/content/byline/byline.js +90 -0
- package/dist/components/content/byline/byline.js.map +1 -0
- package/dist/components/content/byline/byline.styles.d.ts +2 -0
- package/dist/components/content/byline/byline.styles.d.ts.map +1 -0
- package/dist/components/content/byline/byline.styles.js +94 -0
- package/dist/components/content/byline/byline.styles.js.map +1 -0
- package/dist/components/content/byline/byline.template.d.ts +3 -0
- package/dist/components/content/byline/byline.template.d.ts.map +1 -0
- package/dist/components/content/byline/byline.template.js +23 -0
- package/dist/components/content/byline/byline.template.js.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +8 -0
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +4 -1
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +48 -2
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +37 -2
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/image/image.d.ts +1 -1
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.i18n.d.ts +1 -1
- package/dist/components/content/image/image.i18n.js +1 -1
- package/dist/components/content/image/image.i18n.js.map +1 -1
- package/dist/components/content/image/image.js +7 -2
- 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 +21 -30
- 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 +7 -12
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/image/lqip-encoder-element.js +2 -2
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js +3 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +16 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +19 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +2 -2
- package/dist/components/content/tag/tag.d.ts.map +1 -1
- package/dist/components/content/tag/tag.js +1 -1
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/content/tag/tag.styles.js +81 -51
- package/dist/components/content/tag/tag.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +6 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +8 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +15 -0
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/{index-C3JellW2.js → index-C2jQOZa6.js} +4782 -2608
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.js +9 -3
- package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +31 -18
- package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.js +3 -1
- package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +5 -4
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +4 -3
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +59 -9
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +3 -3
- package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.styles.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.styles.js +16 -5
- package/dist/components/inputs/stepper/stepper.styles.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.template.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.template.js +2 -0
- package/dist/components/inputs/stepper/stepper.template.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +4 -3
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +3 -2
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +53 -17
- package/dist/components/inputs/toggle-button/toggle-button.styles.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 +11 -6
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/token/token.styles.d.ts.map +1 -1
- package/dist/components/inputs/token/token.styles.js +24 -7
- package/dist/components/inputs/token/token.styles.js.map +1 -1
- package/dist/components/inputs/token/token.template.d.ts.map +1 -1
- package/dist/components/inputs/token/token.template.js +4 -1
- package/dist/components/inputs/token/token.template.js.map +1 -1
- package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.template.js +3 -1
- package/dist/components/layout/collection/collection.template.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.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +0 -5
- 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.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js +6 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +92 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.js +153 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts +2 -0
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.styles.js +488 -0
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.template.d.ts +4 -0
- package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.template.js +18 -0
- package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +1 -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.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +5 -0
- 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-half-one-half-section/one-half-one-half-section.template.d.ts +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js +11 -3
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +1 -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.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +5 -0
- 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/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js +11 -3
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.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.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +0 -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.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js +6 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +1 -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.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +5 -0
- 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/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js +11 -3
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.js +3 -1
- package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +3 -4
- 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 +7 -5
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -2
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.styles.js +7 -0
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.js +7 -2
- package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +46 -22
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +84 -51
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +44 -36
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +16 -16
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.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 +39 -19
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +9 -3
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.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 +4 -0
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +35 -15
- package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.js +11 -3
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +11 -4
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +17 -2
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +74 -18
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +10 -3
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +4 -4
- package/dist/components/navigation/top-title-bar/top-title-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js +3 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
- package/dist/components/{prism-python-QiimuE8j.js → prism-python-BzzeiWRd.js} +1 -1
- package/dist/components/{prism-rust-D4vfxUpk.js → prism-rust-DzgIGUtE.js} +1 -1
- package/dist/components/{prism-typescript-Dy2F4cF2.js → prism-typescript-KyVBIohW.js} +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -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 +69 -75
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +21 -35
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.js +9 -3
- package/dist/components/status-and-feedback/banner/banner.template.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +2 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +6 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.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.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.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 +73 -80
- 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.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +48 -50
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
- 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 +60 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js +116 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts +2 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +142 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.template.d.ts +3 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.template.js +32 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.template.js.map +1 -0
- package/dist/css/rich-text.css +97 -14
- package/dist/css/settings.css +566 -373
- package/dist/utilities/page-section-mixin.d.ts +1 -0
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +9 -0
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/package.json +13 -1
|
@@ -11,21 +11,29 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
11
11
|
* `<nav>` landmark wrapping a `<div role="list">` (with each item carrying
|
|
12
12
|
* `role="listitem"`). Explicit ARIA roles travel reliably across the slot
|
|
13
13
|
* boundary where the implicit `<ol>`/`<li>` mapping is inconsistent across
|
|
14
|
-
* AT + browser combos. The
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* AT + browser combos. The trail wraps onto multiple lines when it doesn't
|
|
15
|
+
* fit, so it adapts to any width.
|
|
16
|
+
*
|
|
17
|
+
* Vanaf vier niveaus klapt het pad standaard in tot
|
|
18
|
+
* `Home › … › {bovenliggende pagina} › {huidige pagina}`. De ellipsis is een
|
|
19
|
+
* knop die bij activeren de verborgen niveaus op hun plek toont (eenmalig;
|
|
20
|
+
* de focus verplaatst naar het eerste onthulde niveau). De verborgen items
|
|
21
|
+
* blijven in de DOM, zodat zoekmachines en agents het volledige pad zien.
|
|
22
|
+
* Zet `no-collapse` om het pad altijd volledig te tonen.
|
|
17
23
|
*
|
|
18
24
|
* @element nldd-breadcrumbs
|
|
19
25
|
*
|
|
20
26
|
* @attr {string} accessible-label - Override the nav's aria-label.
|
|
21
27
|
* Defaults to the i18n value (NL: "Kruimelpad").
|
|
28
|
+
* @attr {boolean} no-collapse - Toon altijd alle niveaus; schakelt het
|
|
29
|
+
* inklappen vanaf vier niveaus uit.
|
|
22
30
|
* @attr {object} translations - Override translation keys; unset keys
|
|
23
31
|
* fall back to the Dutch default.
|
|
24
32
|
*
|
|
25
33
|
* @slot - `nldd-breadcrumbs-item` children.
|
|
26
34
|
*/
|
|
27
35
|
import { LitElement } from 'lit';
|
|
28
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
36
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
29
37
|
import { breadcrumbsStyles, breadcrumbsItemStyles } from './breadcrumbs.styles.js';
|
|
30
38
|
import { breadcrumbsTemplate, breadcrumbsItemTemplate } from './breadcrumbs.template.js';
|
|
31
39
|
import { nlddBreadcrumbsTranslations } from './breadcrumbs.i18n.js';
|
|
@@ -74,6 +82,22 @@ export class NLDDBreadcrumbsItem extends LitElement {
|
|
|
74
82
|
}
|
|
75
83
|
}
|
|
76
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Delegates focus to the inner link, so the parent can move focus to a
|
|
87
|
+
* revealed item after expanding the collapsed trail. A plain-text or current
|
|
88
|
+
* crumb has no inner link; it makes its own host focusable (tabindex="-1")
|
|
89
|
+
* and takes focus there instead, so the parent can land focus on any
|
|
90
|
+
* revealed item rather than dropping it to <body> (WCAG 2.4.3).
|
|
91
|
+
*/
|
|
92
|
+
focus(options) {
|
|
93
|
+
const link = this.shadowRoot?.querySelector('.breadcrumbs__item-link');
|
|
94
|
+
if (link) {
|
|
95
|
+
link.focus(options);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
this.tabIndex = -1;
|
|
99
|
+
super.focus(options);
|
|
100
|
+
}
|
|
77
101
|
render() {
|
|
78
102
|
return breadcrumbsItemTemplate(this);
|
|
79
103
|
}
|
|
@@ -101,15 +125,56 @@ let NLDDBreadcrumbs = class NLDDBreadcrumbs extends LitElement {
|
|
|
101
125
|
constructor() {
|
|
102
126
|
super(...arguments);
|
|
103
127
|
this.accessibleLabel = '';
|
|
128
|
+
this.noCollapse = false;
|
|
104
129
|
this.translations = {};
|
|
130
|
+
this._collapsed = false;
|
|
131
|
+
/** One-shot: once the user expands the trail it stays expanded. */
|
|
132
|
+
this._expanded = false;
|
|
105
133
|
this._mergedTranslations = { ...nlddBreadcrumbsTranslations };
|
|
134
|
+
/** Defers the slotchange-driven sync to a microtask: _syncCollapse moves
|
|
135
|
+
* an item between slots, which fires another slotchange — running it
|
|
136
|
+
* inline could mutate the DOM while Lit is mid-render. The direct calls
|
|
137
|
+
* from updated() and _expand() stay synchronous.
|
|
138
|
+
*
|
|
139
|
+
* An arrow-function class field (not a method) on purpose: it gives a
|
|
140
|
+
* stable per-instance reference so add/removeEventListener pair up. */
|
|
106
141
|
this._onSlotChange = () => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
142
|
+
void Promise.resolve().then(() => this._syncCollapse());
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Applies the collapsed state to the light-DOM items. While collapsed the
|
|
146
|
+
* first item moves to the "first" slot (so the shadow ellipsis can sit
|
|
147
|
+
* between it and the tail) and the middle items get a marker attribute
|
|
148
|
+
* that hides them via the item's own styles. The consumer's `hidden`
|
|
149
|
+
* attribute is deliberately left alone. Re-runs are idempotent, so the
|
|
150
|
+
* slotchange this triggers settles immediately.
|
|
151
|
+
*/
|
|
152
|
+
this._syncCollapse = () => {
|
|
153
|
+
const items = this._items();
|
|
154
|
+
const collapsed = !this.noCollapse && !this._expanded && items.length >= 4;
|
|
155
|
+
items.forEach((item, index) => {
|
|
156
|
+
if (collapsed && index === 0) {
|
|
157
|
+
item.setAttribute('slot', 'first');
|
|
158
|
+
}
|
|
159
|
+
else if (item.getAttribute('slot') === 'first') {
|
|
160
|
+
item.removeAttribute('slot');
|
|
161
|
+
}
|
|
162
|
+
item.toggleAttribute('data-nldd-collapsed', collapsed && index >= 1 && index <= items.length - 3);
|
|
163
|
+
});
|
|
164
|
+
this._collapsed = collapsed;
|
|
112
165
|
};
|
|
166
|
+
/** @internal Expands the trail and moves focus to a revealed item.
|
|
167
|
+
* Prefers the first revealed link; falls back to the first revealed item
|
|
168
|
+
* so focus is never silently dropped (WCAG 2.4.3). */
|
|
169
|
+
this._expand = () => {
|
|
170
|
+
const revealed = this._items().filter((item) => item.hasAttribute('data-nldd-collapsed'));
|
|
171
|
+
this._expanded = true;
|
|
172
|
+
this._syncCollapse();
|
|
173
|
+
(revealed.find((item) => item.href && !item.current) ?? revealed[0])?.focus();
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
_items() {
|
|
177
|
+
return Array.from(this.children).filter((child) => child instanceof NLDDBreadcrumbsItem);
|
|
113
178
|
}
|
|
114
179
|
willUpdate(changed) {
|
|
115
180
|
if (changed.has('translations') || changed.has('accessibleLabel')) {
|
|
@@ -122,6 +187,10 @@ let NLDDBreadcrumbs = class NLDDBreadcrumbs extends LitElement {
|
|
|
122
187
|
}
|
|
123
188
|
}
|
|
124
189
|
}
|
|
190
|
+
updated(changed) {
|
|
191
|
+
if (changed.has('noCollapse'))
|
|
192
|
+
this._syncCollapse();
|
|
193
|
+
}
|
|
125
194
|
_t(key) {
|
|
126
195
|
// Return '' (not the key) for missing translations so callers can do
|
|
127
196
|
// `value || nothing` to suppress aria-label / text rather than
|
|
@@ -132,48 +201,6 @@ let NLDDBreadcrumbs = class NLDDBreadcrumbs extends LitElement {
|
|
|
132
201
|
}
|
|
133
202
|
return value ?? '';
|
|
134
203
|
}
|
|
135
|
-
/**
|
|
136
|
-
* All slotted nldd-breadcrumbs-item children, in DOM order. Items MUST
|
|
137
|
-
* be direct children of nldd-breadcrumbs — wrapping them in another
|
|
138
|
-
* element (e.g. `<ul><nldd-breadcrumbs-item>`) is unsupported and will
|
|
139
|
-
* make them invisible to this component (separator handling, sm-viewport
|
|
140
|
-
* fallback, etc. all key off this set).
|
|
141
|
-
*/
|
|
142
|
-
_items() {
|
|
143
|
-
return Array.from(this.querySelectorAll(':scope > nldd-breadcrumbs-item'));
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* The parent (one-level-up) item: the last non-current item with an
|
|
147
|
-
* `href` — the level-up link needs somewhere to navigate. Returns null
|
|
148
|
-
* when no eligible parent exists; the level-up element is not rendered
|
|
149
|
-
* in that case (so it can't appear in the link list of any AT).
|
|
150
|
-
*/
|
|
151
|
-
_parentItem() {
|
|
152
|
-
const items = this._items();
|
|
153
|
-
for (let i = items.length - 1; i >= 0; i--) {
|
|
154
|
-
if (!items[i].current && items[i].href)
|
|
155
|
-
return items[i];
|
|
156
|
-
}
|
|
157
|
-
return null;
|
|
158
|
-
}
|
|
159
|
-
_observeItemAttrs() {
|
|
160
|
-
this._itemObserver?.disconnect();
|
|
161
|
-
this._itemObserver = new MutationObserver(() => {
|
|
162
|
-
this.toggleAttribute('has-parent', !!this._parentItem());
|
|
163
|
-
this.requestUpdate();
|
|
164
|
-
});
|
|
165
|
-
for (const item of this._items()) {
|
|
166
|
-
this._itemObserver.observe(item, {
|
|
167
|
-
attributes: true,
|
|
168
|
-
attributeFilter: ['href', 'current'],
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
disconnectedCallback() {
|
|
173
|
-
super.disconnectedCallback();
|
|
174
|
-
this._itemObserver?.disconnect();
|
|
175
|
-
this._itemObserver = undefined;
|
|
176
|
-
}
|
|
177
204
|
render() {
|
|
178
205
|
return breadcrumbsTemplate(this);
|
|
179
206
|
}
|
|
@@ -182,9 +209,15 @@ NLDDBreadcrumbs.styles = breadcrumbsStyles;
|
|
|
182
209
|
__decorate([
|
|
183
210
|
property({ type: String, attribute: 'accessible-label' })
|
|
184
211
|
], NLDDBreadcrumbs.prototype, "accessibleLabel", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
property({ type: Boolean, reflect: true, attribute: 'no-collapse' })
|
|
214
|
+
], NLDDBreadcrumbs.prototype, "noCollapse", void 0);
|
|
185
215
|
__decorate([
|
|
186
216
|
property({ type: Object })
|
|
187
217
|
], NLDDBreadcrumbs.prototype, "translations", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
state()
|
|
220
|
+
], NLDDBreadcrumbs.prototype, "_collapsed", void 0);
|
|
188
221
|
NLDDBreadcrumbs = __decorate([
|
|
189
222
|
customElement('nldd-breadcrumbs')
|
|
190
223
|
], NLDDBreadcrumbs);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"breadcrumbs.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAoC,MAAM,uBAAuB,CAAC;AAGtG,0BAA0B;AAE1B;;;;;;;;;;;;;GAaG;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BAAkB,CAAC;GACrB,eAAe,CAmG3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"breadcrumbs.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.styles.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,iBAAiB,yBA6D7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,yBAsDjC,CAAC"}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
import { css
|
|
2
|
-
import { breakpoints } from '../../../assets/styles/breakpoints.js';
|
|
1
|
+
import { css } from 'lit';
|
|
3
2
|
import { inheritedTextReset } from '../../../assets/styles/slotted-reset.js';
|
|
4
|
-
|
|
3
|
+
/* Shared between the parent stylesheet (ellipsis separator) and the item
|
|
4
|
+
stylesheet (item separator); both hosts define
|
|
5
|
+
--_separator-vertical-offset. */
|
|
6
|
+
const separatorStyles = css `
|
|
7
|
+
.breadcrumbs__separator {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
position: relative;
|
|
10
|
+
top: var(--_separator-vertical-offset);
|
|
11
|
+
margin-inline: var(--primitives-space-2);
|
|
12
|
+
color: var(--semantics-content-secondary-color);
|
|
13
|
+
width: var(--primitives-space-16);
|
|
14
|
+
height: var(--primitives-space-16);
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
5
18
|
export const breadcrumbsStyles = css `
|
|
6
19
|
:host {
|
|
20
|
+
--_separator-vertical-offset: 0.05em;
|
|
21
|
+
|
|
7
22
|
${inheritedTextReset}
|
|
8
|
-
container-type: inline-size;
|
|
9
23
|
display: block;
|
|
10
24
|
}
|
|
11
25
|
|
|
@@ -23,48 +37,45 @@ export const breadcrumbsStyles = css `
|
|
|
23
37
|
row-gap: var(--primitives-space-4);
|
|
24
38
|
}
|
|
25
39
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
40
|
+
.breadcrumbs__ellipsis {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
30
43
|
}
|
|
31
44
|
|
|
32
|
-
.
|
|
33
|
-
display:
|
|
45
|
+
.breadcrumbs__ellipsis-button {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
margin: 0;
|
|
48
|
+
border: none;
|
|
49
|
+
background: none;
|
|
50
|
+
padding: 0;
|
|
34
51
|
align-items: center;
|
|
35
|
-
gap: var(--primitives-space-4);
|
|
36
52
|
color: var(--semantics-links-color);
|
|
37
53
|
font: var(--primitives-font-body-md-regular-tight);
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([has-parent]) .breadcrumbs__level-up {
|
|
42
|
-
@container (max-width: ${smMax}) {
|
|
43
|
-
display: inline-flex;
|
|
44
|
-
}
|
|
54
|
+
appearance: none;
|
|
45
55
|
}
|
|
46
56
|
|
|
47
|
-
.
|
|
57
|
+
.breadcrumbs__ellipsis-button:hover {
|
|
48
58
|
color: var(--semantics-links-is-hovered-color);
|
|
49
59
|
}
|
|
50
60
|
|
|
51
|
-
.
|
|
61
|
+
.breadcrumbs__ellipsis-button:active {
|
|
52
62
|
color: var(--semantics-links-is-active-color);
|
|
53
63
|
}
|
|
54
64
|
|
|
55
|
-
.
|
|
65
|
+
.breadcrumbs__ellipsis-button:focus-visible {
|
|
56
66
|
outline: var(--semantics-focus-ring-outline);
|
|
57
67
|
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
58
68
|
border-radius: var(--primitives-corner-radius-xs);
|
|
59
69
|
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
60
70
|
}
|
|
61
71
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
flex-shrink: 0;
|
|
72
|
+
@media (forced-colors: active) {
|
|
73
|
+
.breadcrumbs__ellipsis-button:focus-visible {
|
|
74
|
+
outline: 2px solid CanvasText;
|
|
75
|
+
}
|
|
67
76
|
}
|
|
77
|
+
|
|
78
|
+
${separatorStyles}
|
|
68
79
|
`;
|
|
69
80
|
export const breadcrumbsItemStyles = css `
|
|
70
81
|
:host {
|
|
@@ -82,6 +93,12 @@ export const breadcrumbsItemStyles = css `
|
|
|
82
93
|
display: none;
|
|
83
94
|
}
|
|
84
95
|
|
|
96
|
+
/* Applied by the parent nldd-breadcrumbs while the trail is collapsed;
|
|
97
|
+
intentionally separate from the consumer-owned hidden attribute. */
|
|
98
|
+
:host([data-nldd-collapsed]) {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
|
|
85
102
|
.breadcrumbs__item {
|
|
86
103
|
display: inline-flex;
|
|
87
104
|
align-items: center;
|
|
@@ -109,16 +126,7 @@ export const breadcrumbsItemStyles = css `
|
|
|
109
126
|
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
110
127
|
}
|
|
111
128
|
|
|
112
|
-
|
|
113
|
-
display: inline-flex;
|
|
114
|
-
position: relative;
|
|
115
|
-
top: var(--_separator-vertical-offset);
|
|
116
|
-
margin-inline: var(--primitives-space-2);
|
|
117
|
-
color: var(--semantics-content-secondary-color);
|
|
118
|
-
width: var(--primitives-space-16);
|
|
119
|
-
height: var(--primitives-space-16);
|
|
120
|
-
flex-shrink: 0;
|
|
121
|
-
}
|
|
129
|
+
${separatorStyles}
|
|
122
130
|
|
|
123
131
|
:host(:last-of-type) .breadcrumbs__separator {
|
|
124
132
|
display: none;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.styles.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"breadcrumbs.styles.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E;;mCAEmC;AACnC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;CAW1B,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;IAIhC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDnB,eAAe;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;;;;;;;IAOpC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CnB,eAAe;;;;;CAKjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"breadcrumbs.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,4BAA4B,CAAC;AAEpC,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,GAAG,cAAc,CA8B9E;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,mBAAmB,GAAG,cAAc,CAuBtF"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
3
2
|
import '../../content/icon/icon.js';
|
|
4
3
|
export function breadcrumbsTemplate(component) {
|
|
5
4
|
const label = component._t('components.breadcrumbs.accessible-label');
|
|
6
|
-
const levelUpLabel = component._t('components.breadcrumbs.level-up-label');
|
|
7
|
-
const parent = component._parentItem();
|
|
8
|
-
const levelUpText = parent ? (parent.text || parent.textContent?.trim() || levelUpLabel) : '';
|
|
9
5
|
return html `
|
|
10
6
|
<nav class="breadcrumbs"
|
|
11
7
|
aria-label=${label || nothing}
|
|
12
8
|
>
|
|
13
|
-
${parent ? html `
|
|
14
|
-
<a class="breadcrumbs__level-up"
|
|
15
|
-
href=${ifDefined(parent.href)}
|
|
16
|
-
>
|
|
17
|
-
<span class="breadcrumbs__level-up-icon"
|
|
18
|
-
aria-hidden="true"
|
|
19
|
-
>
|
|
20
|
-
<nldd-icon name="chevron-left"></nldd-icon>
|
|
21
|
-
</span>
|
|
22
|
-
<span class="breadcrumbs__level-up-text">${levelUpText}</span>
|
|
23
|
-
</a>
|
|
24
|
-
` : nothing}
|
|
25
9
|
<div class="breadcrumbs__items"
|
|
26
10
|
role="list"
|
|
27
11
|
>
|
|
12
|
+
<slot name="first"
|
|
13
|
+
@slotchange=${component._onSlotChange}
|
|
14
|
+
></slot>
|
|
15
|
+
${component._collapsed ? html `
|
|
16
|
+
<span class="breadcrumbs__ellipsis"
|
|
17
|
+
role="listitem"
|
|
18
|
+
>
|
|
19
|
+
<button class="breadcrumbs__ellipsis-button"
|
|
20
|
+
aria-label=${component._t('components.breadcrumbs.show-all-levels') || nothing}
|
|
21
|
+
@click=${component._expand}
|
|
22
|
+
>…</button>
|
|
23
|
+
<span class="breadcrumbs__separator"
|
|
24
|
+
aria-hidden="true"
|
|
25
|
+
><nldd-icon name="chevron-right-small"></nldd-icon></span>
|
|
26
|
+
</span>
|
|
27
|
+
` : nothing}
|
|
28
28
|
<slot @slotchange=${component._onSlotChange}></slot>
|
|
29
29
|
</div>
|
|
30
30
|
</nav>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumbs.template.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"breadcrumbs.template.js","sourceRoot":"","sources":["../../../../src/components/navigation/breadcrumbs/breadcrumbs.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAEzD,OAAO,4BAA4B,CAAC;AAEpC,MAAM,UAAU,mBAAmB,CAAC,SAA0B;IAC7D,MAAM,KAAK,GAAG,SAAS,CAAC,EAAE,CAAC,yCAAyC,CAAC,CAAC;IAEtE,OAAO,IAAI,CAAA;;gBAEI,KAAK,IAAI,OAAO;;;;;;mBAMb,SAAS,CAAC,aAAa;;MAEpC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA;;;;;oBAKb,SAAS,CAAC,EAAE,CAAC,wCAAwC,CAAC,IAAI,OAAO;gBACrE,SAAS,CAAC,OAAO;;;;;;KAM5B,CAAC,CAAC,CAAC,OAAO;wBACS,SAAS,CAAC,aAAa;;;EAG7C,CAAC;AACH,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,SAA8B;IACrE,qEAAqE;IACrE,oEAAoE;IACpE,8DAA8D;IAC9D,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,IAAI,IAAI,CAAA,eAAe,CAAC;IACpD,MAAM,SAAS,GAAG,IAAI,CAAA;;4DAEqC,CAAC;IAC5D,IAAI,CAAC,SAAS,CAAC,OAAO,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAA;;;YAGD,SAAS,CAAC,IAAI;OACnB,KAAK;YACA,SAAS;GAClB,CAAC;IACH,CAAC;IACD,0EAA0E;IAC1E,2EAA2E;IAC3E,4CAA4C;IAC5C,OAAO,IAAI,CAAA;iBACK,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;IACjD,KAAK,UAAU,SAAS,EAAE,CAAC;AAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-tab-bar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"document-tab-bar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,yBAiNhC,CAAC;AAEF,eAAO,MAAM,wBAAwB,yBA0OpC,CAAC"}
|
|
@@ -164,10 +164,14 @@ export const documentTabBarStyles = css `
|
|
|
164
164
|
justify-content: center;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
a.document-tab-bar__item-tab {
|
|
168
|
+
cursor: var(--semantics-controls-link-cursor);
|
|
169
|
+
}
|
|
170
|
+
|
|
167
171
|
.document-tab-bar__drag-clone .document-tab-bar__item-text {
|
|
168
172
|
overflow: hidden;
|
|
169
173
|
font: var(--components-document-tab-bar-tab-title-font);
|
|
170
|
-
color: var(--semantics-buttons-neutral-tinted-content-color);
|
|
174
|
+
color: var(--semantics-buttons-neutral-tinted-primary-content-color);
|
|
171
175
|
text-overflow: ellipsis;
|
|
172
176
|
white-space: nowrap;
|
|
173
177
|
}
|
|
@@ -178,7 +182,7 @@ export const documentTabBarStyles = css `
|
|
|
178
182
|
|
|
179
183
|
.document-tab-bar__drag-clone.is-selected .document-tab-bar__item-text,
|
|
180
184
|
.document-tab-bar__drag-clone.is-selected .document-tab-bar__item-supporting-text {
|
|
181
|
-
color: var(--semantics-buttons-neutral-tinted-is-selected-content-color);
|
|
185
|
+
color: var(--semantics-buttons-neutral-tinted-is-selected-primary-content-color);
|
|
182
186
|
}
|
|
183
187
|
|
|
184
188
|
.document-tab-bar__drag-clone .document-tab-bar__item-supporting-text {
|
|
@@ -212,6 +216,15 @@ export const documentTabBarItemStyles = css `
|
|
|
212
216
|
/* # Host */
|
|
213
217
|
|
|
214
218
|
:host {
|
|
219
|
+
--_highlight-border-color: var(--semantics-buttons-neutral-tinted-highlight-border-color);
|
|
220
|
+
--_is-hovered-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-hovered-highlight-border-color);
|
|
221
|
+
--_is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-active-highlight-border-color);
|
|
222
|
+
--_is-selected-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-highlight-border-color);
|
|
223
|
+
--_is-selected-is-hovered-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-is-hovered-highlight-border-color);
|
|
224
|
+
--_is-selected-is-active-highlight-border-color: var(--semantics-buttons-neutral-tinted-is-selected-is-active-highlight-border-color);
|
|
225
|
+
|
|
226
|
+
--_secondary-content-color: var(--semantics-buttons-neutral-tinted-secondary-content-color);
|
|
227
|
+
|
|
215
228
|
${inheritedTextReset}
|
|
216
229
|
container-type: inline-size;
|
|
217
230
|
display: block;
|
|
@@ -240,10 +253,12 @@ export const documentTabBarItemStyles = css `
|
|
|
240
253
|
.document-tab-bar__item-tab {
|
|
241
254
|
display: flex;
|
|
242
255
|
box-sizing: border-box;
|
|
256
|
+
position: relative;
|
|
243
257
|
margin: 0;
|
|
244
258
|
border: none;
|
|
245
259
|
border-radius: var(--semantics-controls-md-corner-radius);
|
|
246
260
|
background-color: var(--semantics-buttons-neutral-tinted-background-color);
|
|
261
|
+
box-shadow: inset 0 0 0 var(--primitives-border-width-thin) var(--_highlight-border-color);
|
|
247
262
|
width: 100%;
|
|
248
263
|
height: 100%;
|
|
249
264
|
min-width: 0;
|
|
@@ -261,29 +276,42 @@ export const documentTabBarItemStyles = css `
|
|
|
261
276
|
@media (hover: hover) {
|
|
262
277
|
.document-tab-bar__item-tab:hover {
|
|
263
278
|
background-color: var(--semantics-buttons-neutral-tinted-is-hovered-background-color);
|
|
279
|
+
--_highlight-border-color: var(--_is-hovered-highlight-border-color);
|
|
280
|
+
--_secondary-content-color: var(--semantics-buttons-neutral-tinted-is-hovered-secondary-content-color);
|
|
264
281
|
}
|
|
265
282
|
}
|
|
266
283
|
|
|
267
284
|
.document-tab-bar__item-tab:active {
|
|
268
285
|
background-color: var(--semantics-buttons-neutral-tinted-is-active-background-color);
|
|
286
|
+
--_highlight-border-color: var(--_is-active-highlight-border-color);
|
|
287
|
+
--_secondary-content-color: var(--semantics-buttons-neutral-tinted-is-active-secondary-content-color);
|
|
269
288
|
}
|
|
270
289
|
|
|
271
290
|
:host([selected]) .document-tab-bar__item-tab {
|
|
272
291
|
background-color: var(--semantics-buttons-neutral-tinted-is-selected-background-color);
|
|
292
|
+
--_highlight-border-color: var(--_is-selected-highlight-border-color);
|
|
293
|
+
--_secondary-content-color: var(--semantics-buttons-neutral-tinted-is-selected-secondary-content-color);
|
|
273
294
|
}
|
|
274
295
|
|
|
275
296
|
@media (hover: hover) {
|
|
276
297
|
:host([selected]) .document-tab-bar__item-tab:hover {
|
|
277
298
|
background-color: var(--semantics-buttons-neutral-tinted-is-selected-background-color);
|
|
299
|
+
--_highlight-border-color: var(--_is-selected-is-hovered-highlight-border-color);
|
|
300
|
+
--_secondary-content-color: var(--semantics-buttons-neutral-tinted-is-selected-is-hovered-secondary-content-color);
|
|
278
301
|
}
|
|
279
302
|
}
|
|
280
303
|
|
|
304
|
+
:host([selected]) .document-tab-bar__item-tab:active {
|
|
305
|
+
--_highlight-border-color: var(--_is-selected-is-active-highlight-border-color);
|
|
306
|
+
--_secondary-content-color: var(--semantics-buttons-neutral-tinted-is-selected-is-active-secondary-content-color);
|
|
307
|
+
}
|
|
308
|
+
|
|
281
309
|
/* ## Focus */
|
|
282
310
|
|
|
283
311
|
.document-tab-bar__item-tab:focus-visible {
|
|
284
312
|
outline: var(--semantics-focus-ring-outline);
|
|
285
313
|
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
286
|
-
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
314
|
+
box-shadow: var(--semantics-focus-ring-box-shadow), inset 0 0 0 var(--primitives-border-width-thin) var(--_highlight-border-color);
|
|
287
315
|
}
|
|
288
316
|
|
|
289
317
|
|
|
@@ -312,26 +340,26 @@ export const documentTabBarItemStyles = css `
|
|
|
312
340
|
overflow: hidden;
|
|
313
341
|
padding-inline-end: var(--primitives-space-6);
|
|
314
342
|
font: var(--components-document-tab-bar-tab-title-font);
|
|
315
|
-
color: var(--semantics-buttons-neutral-tinted-content-color);
|
|
343
|
+
color: var(--semantics-buttons-neutral-tinted-primary-content-color);
|
|
316
344
|
text-overflow: ellipsis;
|
|
317
345
|
white-space: nowrap;
|
|
318
346
|
}
|
|
319
347
|
|
|
320
348
|
:host([selected]) .document-tab-bar__item-text {
|
|
321
|
-
color: var(--semantics-buttons-neutral-tinted-is-selected-content-color);
|
|
349
|
+
color: var(--semantics-buttons-neutral-tinted-is-selected-primary-content-color);
|
|
322
350
|
}
|
|
323
351
|
|
|
324
352
|
.document-tab-bar__item-short-text {
|
|
325
353
|
overflow: hidden;
|
|
326
354
|
padding-inline-end: var(--primitives-space-6);
|
|
327
355
|
font: var(--components-document-tab-bar-tab-title-font);
|
|
328
|
-
color: var(--semantics-buttons-neutral-tinted-content-color);
|
|
356
|
+
color: var(--semantics-buttons-neutral-tinted-primary-content-color);
|
|
329
357
|
text-overflow: ellipsis;
|
|
330
358
|
white-space: nowrap;
|
|
331
359
|
}
|
|
332
360
|
|
|
333
361
|
:host([selected]) .document-tab-bar__item-short-text {
|
|
334
|
-
color: var(--semantics-buttons-neutral-tinted-is-selected-content-color);
|
|
362
|
+
color: var(--semantics-buttons-neutral-tinted-is-selected-primary-content-color);
|
|
335
363
|
}
|
|
336
364
|
|
|
337
365
|
|
|
@@ -341,28 +369,20 @@ export const documentTabBarItemStyles = css `
|
|
|
341
369
|
overflow: hidden;
|
|
342
370
|
padding-inline-end: var(--primitives-space-6);
|
|
343
371
|
font: var(--primitives-font-body-xs-regular-flat);
|
|
344
|
-
color: var(--
|
|
372
|
+
color: var(--_secondary-content-color);
|
|
345
373
|
text-overflow: ellipsis;
|
|
346
374
|
white-space: nowrap;
|
|
347
375
|
}
|
|
348
376
|
|
|
349
|
-
:host([selected]) .document-tab-bar__item-supporting-text {
|
|
350
|
-
color: var(--semantics-buttons-neutral-tinted-is-selected-secondary-content-color);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
377
|
.document-tab-bar__item-short-supporting-text {
|
|
354
378
|
overflow: hidden;
|
|
355
379
|
padding-inline-end: var(--primitives-space-6);
|
|
356
380
|
font: var(--primitives-font-body-xs-regular-flat);
|
|
357
|
-
color: var(--
|
|
381
|
+
color: var(--_secondary-content-color);
|
|
358
382
|
text-overflow: ellipsis;
|
|
359
383
|
white-space: nowrap;
|
|
360
384
|
}
|
|
361
385
|
|
|
362
|
-
:host([selected]) .document-tab-bar__item-short-supporting-text {
|
|
363
|
-
color: var(--semantics-buttons-neutral-tinted-is-selected-secondary-content-color);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
386
|
|
|
367
387
|
/* # Item dismiss button */
|
|
368
388
|
|
|
@@ -380,7 +400,7 @@ export const documentTabBarItemStyles = css `
|
|
|
380
400
|
padding: var(--primitives-space-4);
|
|
381
401
|
align-items: center;
|
|
382
402
|
justify-content: center;
|
|
383
|
-
color: var(--semantics-buttons-neutral-tinted-content-color);
|
|
403
|
+
color: var(--semantics-buttons-neutral-tinted-primary-content-color);
|
|
384
404
|
transform: translateY(-50%);
|
|
385
405
|
appearance: none;
|
|
386
406
|
}
|
|
@@ -396,7 +416,7 @@ export const documentTabBarItemStyles = css `
|
|
|
396
416
|
}
|
|
397
417
|
|
|
398
418
|
:host([selected]) .document-tab-bar__item-dismiss-button {
|
|
399
|
-
color: var(--semantics-buttons-neutral-tinted-is-selected-content-color);
|
|
419
|
+
color: var(--semantics-buttons-neutral-tinted-is-selected-primary-content-color);
|
|
400
420
|
}
|
|
401
421
|
|
|
402
422
|
@media (hover: hover) {
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;IAoBnC,kBAAkB
|
|
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;;;;;;;;;;;;;;;;;;;;IAoBnC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6LrB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;IAevC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2NrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-tab-bar.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,4CAA4C,CAAC;AACpD,OAAO,8BAA8B,CAAC;AAEtC,OAAO,oCAAoC,CAAC;AAE5C,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,kBAAkB,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"document-tab-bar.template.d.ts","sourceRoot":"","sources":["../../../../src/components/navigation/document-tab-bar/document-tab-bar.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,4CAA4C,CAAC;AACpD,OAAO,8BAA8B,CAAC;AAEtC,OAAO,oCAAoC,CAAC;AAE5C,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,kBAAkB,GAAG,cAAc,CAqDpF;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,sBAAsB,GAAG,cAAc,CAgE5F"}
|
|
@@ -32,13 +32,17 @@ export function documentTabBarTemplate(component) {
|
|
|
32
32
|
?expanded=${component._menuOpen}
|
|
33
33
|
></nldd-icon-button>
|
|
34
34
|
</div>
|
|
35
|
-
<div class="document-tab-bar__end"
|
|
35
|
+
<div class="document-tab-bar__end"
|
|
36
|
+
hidden
|
|
37
|
+
>
|
|
36
38
|
<slot name="end" @slotchange=${component._onEndSlotChange}></slot>
|
|
37
39
|
</div>
|
|
38
40
|
`;
|
|
39
41
|
return html `
|
|
40
42
|
${isNavigation
|
|
41
|
-
? html `<nav class="document-tab-bar"
|
|
43
|
+
? html `<nav class="document-tab-bar"
|
|
44
|
+
aria-label=${label}
|
|
45
|
+
>${inner}</nav>`
|
|
42
46
|
: html `<div class="document-tab-bar">${inner}</div>`}
|
|
43
47
|
<div class="document-tab-bar__polite-announcer"
|
|
44
48
|
role="status"
|
|
@@ -63,7 +67,9 @@ export function documentTabBarItemTemplate(component) {
|
|
|
63
67
|
? `${component.text} · ${component.supportingText}`
|
|
64
68
|
: component.text;
|
|
65
69
|
const tabContent = html `
|
|
66
|
-
<span class="document-tab-bar__item-normal"
|
|
70
|
+
<span class="document-tab-bar__item-normal"
|
|
71
|
+
aria-hidden="true"
|
|
72
|
+
>
|
|
67
73
|
<span class="document-tab-bar__item-text">${component.text}</span>
|
|
68
74
|
${component.supportingText
|
|
69
75
|
? html `<span class="document-tab-bar__item-supporting-text">${component.supportingText}</span>`
|