@nldd/design-system 0.8.94 → 0.8.96
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 +114 -21
- package/custom-elements.json +295 -311
- 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 +8 -1
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +46 -26
- package/dist/components/actions/toolbar/toolbar.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +57 -56
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/components.js +4405 -4267
- 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.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +15 -14
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- 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 +16 -0
- 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 +14 -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 +12 -0
- 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.js +3 -3
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.styles.js +153 -153
- 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/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/{decorate-lwt_OrAG.js → decorate-CO88j7Lc.js} +1 -1
- package/dist/components/{dist-M6GKopqu.js → dist-BWEAw34D.js} +1 -1
- package/dist/components/{dist-OlffRM7-.js → dist-BWRYv3Mp.js} +1 -1
- package/dist/components/{dist-CSYXsT7W.js → dist-Bi4EHsFY.js} +2 -2
- package/dist/components/{dist-B5ie2Bo9.js → dist-C3uWRipu.js} +1 -1
- package/dist/components/{dist-CoUVHSu-.js → dist-CH9m014O.js} +1 -1
- package/dist/components/{dist-Dn3c5gfb.js → dist-CpW8MF-L.js} +42 -27
- package/dist/components/{dist-RPaf2J9c.js → dist-CvL6_ezZ.js} +2 -2
- package/dist/components/{dist-CGOykrJw.js → dist-DMHTTJRJ.js} +2 -2
- package/dist/components/{dist-BUu-NW5O.js → dist-DTOshgo1.js} +1 -1
- package/dist/components/{dist-Dxn9Up8K.js → dist-DV6Mp5N1.js} +3 -3
- package/dist/components/{dist-CQzaKTa8.js → dist-PlhQXXtE.js} +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-DWNVcttg.js → icon-DQHT2C7z.js} +71 -51
- package/dist/components/{icon-button-DHzLMmj0.js → icon-button-mevRsl4C.js} +283 -280
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -2
- 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/app-view/app-view.d.ts +1 -1
- package/dist/components/layout/app-view/app-view.js +1 -1
- package/dist/components/layout/app-view/app-view.styles.js +3 -3
- 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.js +30 -30
- 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.js +5 -5
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.js +20 -20
- 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.js +3 -3
- 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.js +17 -17
- package/dist/components/layout/page-sections/hero/hero.js +6 -6
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +74 -74
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +3 -3
- 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.js +17 -17
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +3 -3
- 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.js +17 -17
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +5 -5
- 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 +29 -27
- 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.js +3 -3
- 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 +17 -17
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +3 -3
- 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.js +17 -17
- 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 +4 -4
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +8 -8
- package/dist/components/layout/spacer/spacer.styles.js +76 -76
- 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.js +4 -4
- 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.js +1 -1
- 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} +19 -18
- 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} +34 -33
- 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.js +37 -37
- 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.js +37 -37
- 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 +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +9 -9
- 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.styles.js +30 -30
- 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.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +23 -17
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.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 +50 -33
- 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.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.styles.js +36 -36
- package/dist/components/status-and-feedback/step-bar/step-bar.d.ts +142 -0
- 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-bar/step-bar.js +248 -0
- 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/components/{visibility-mixin-BU1vIMW7.js → visibility-mixin-Crbt8PFP.js} +1 -1
- package/dist/components/{with-translations-Dt2DTXJF.js → with-translations-C8_0-9y8.js} +1 -1
- package/dist/css/document-reset.css +7 -0
- package/dist/css/rich-text.css +35 -34
- package/dist/css/variables.css +54 -410
- package/dist/nldd.min.js +4367 -4232
- 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 +64 -65
- package/dist/utilities/codemirror/theme.js +17 -17
- package/dist/utilities/codemirror/theme.js.map +1 -1
- package/dist/utilities/page-section-mixin.js +3 -3
- package/dist/utilities/page-section-mixin.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/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/status-and-feedback/step-indicator/step-indicator.d.ts +0 -127
- 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 +0 -216
- 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
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Nederlandse Digitale Dienst Step Bar Component (Lit + TypeScript)
|
|
9
|
+
*
|
|
10
|
+
* Shows where you are in a process of several steps: a row of discs with a
|
|
11
|
+
* number (or a check mark on what is done), a label under each and a line
|
|
12
|
+
* connecting them. Other systems call this a stepper or a progress indicator.
|
|
13
|
+
*
|
|
14
|
+
* Mark the step you are on with `status="current"`. The parent derives the
|
|
15
|
+
* rest from its position: `past` before it, `future` after. With none marked,
|
|
16
|
+
* step 1 is current. With more than one, the last one wins and a warning goes
|
|
17
|
+
* to the console in a dev build: a flow that forgets to clear the previous
|
|
18
|
+
* step still points at the furthest one. A `status="past"` or
|
|
19
|
+
* `status="future"` on another step overrides what is derived for that step,
|
|
20
|
+
* for flows that jump back or skip a step. One attribute, the same three
|
|
21
|
+
* values as `nldd-step-cell`, so a flow reads in one vocabulary
|
|
22
|
+
* whether it runs across or down.
|
|
23
|
+
*
|
|
24
|
+
* Horizontal only. For steps under each other, build an `nldd-list` with an
|
|
25
|
+
* `nldd-step-cell` and an `nldd-title-cell` per row: vertical steps
|
|
26
|
+
* usually carry more than a title, and a list row already does that.
|
|
27
|
+
*
|
|
28
|
+
* Below the sm breakpoint (a container query, so measured on the component
|
|
29
|
+
* itself rather than on the viewport) it folds into one line of text plus a
|
|
30
|
+
* segmented bar. The full list of steps stays in the DOM, only visually hidden,
|
|
31
|
+
* so assistive software hears no less than a wide screen shows.
|
|
32
|
+
*
|
|
33
|
+
* Accessibility: a `nav` with a label, holding a `role="list"` with a
|
|
34
|
+
* `role="listitem"` per step. The current step gets `aria-current="step"`, the
|
|
35
|
+
* only notion WAI-ARIA has for this. "Done" and "still to do" do not exist as
|
|
36
|
+
* ARIA tokens and travel along as visually hidden text instead.
|
|
37
|
+
*
|
|
38
|
+
* @element nldd-step-bar
|
|
39
|
+
*
|
|
40
|
+
* @attr {string} accessible-label - Name of the nav; defaults to the i18n value ("Voortgang")
|
|
41
|
+
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
42
|
+
*
|
|
43
|
+
* @slot - `nldd-step-bar-item` children
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```html
|
|
47
|
+
* <nldd-step-bar accessible-label="Voortgang aanvraag">
|
|
48
|
+
* <nldd-step-bar-item text="Gegevens"></nldd-step-bar-item>
|
|
49
|
+
* <nldd-step-bar-item text="Controle" status="current"></nldd-step-bar-item>
|
|
50
|
+
* <nldd-step-bar-item text="Bevestigen"></nldd-step-bar-item>
|
|
51
|
+
* </nldd-step-bar>
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
import { LitElement } from 'lit';
|
|
55
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
56
|
+
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
57
|
+
import { withTranslations } from '../../../utilities/with-translations.js';
|
|
58
|
+
import { nlddStepBarTranslations } from './step-bar.i18n.js';
|
|
59
|
+
import { stepBarStyles, stepBarItemStyles } from './step-bar.styles.js';
|
|
60
|
+
import { stepBarTemplate, stepBarItemTemplate } from './step-bar.template.js';
|
|
61
|
+
import '../../content/icon/icon.js';
|
|
62
|
+
// # nldd-step-bar-item
|
|
63
|
+
/**
|
|
64
|
+
* One step in an `nldd-step-bar`. `status="current"` marks the step you
|
|
65
|
+
* are on; the parent derives the status of the others and the number of each,
|
|
66
|
+
* which live here as internal state rather than as public API. `past` and
|
|
67
|
+
* `future` override what is derived for this step.
|
|
68
|
+
*
|
|
69
|
+
* @element nldd-step-bar-item
|
|
70
|
+
*
|
|
71
|
+
* @attr {'past' | 'current' | 'future'} status - How far along this step is. `current` marks the step you are on (`aria-current="step"`) and the parent derives the others from it: with none marked step 1 is current, with more than one the last wins. `past` and `future` override what is derived for this step only
|
|
72
|
+
* @attr {string} text - Label under the disc
|
|
73
|
+
* @attr {string} icon - Icon in the disc instead of the number or the check mark
|
|
74
|
+
* @attr {string} href - Makes the step a link (back to a completed step, for instance)
|
|
75
|
+
* @attr {boolean} button - Makes the step a button, for flows without a URL per step; ignored when `href` is set
|
|
76
|
+
*
|
|
77
|
+
* @slot - Label (an alternative to `text`)
|
|
78
|
+
*/
|
|
79
|
+
export class NLDDStepBarItem extends LitElement {
|
|
80
|
+
constructor() {
|
|
81
|
+
super(...arguments);
|
|
82
|
+
this.text = '';
|
|
83
|
+
this.icon = '';
|
|
84
|
+
this.href = '';
|
|
85
|
+
/** For flows without a URL per step (a wizard inside one window). Ignored
|
|
86
|
+
* once `href` is set: one step is one action, and a link outranks a button
|
|
87
|
+
* -- the same rule as nldd-card and nldd-avatar. */
|
|
88
|
+
this.button = false;
|
|
89
|
+
/** Set by the parent: the derived status when the item has none of its own,
|
|
90
|
+
* the position number, and the status text for assistive tech. */
|
|
91
|
+
this._derivedStatus = 'future';
|
|
92
|
+
this._index = 1;
|
|
93
|
+
this._statusText = '';
|
|
94
|
+
}
|
|
95
|
+
/** The status that counts. An own `past` or `future` wins over the derived
|
|
96
|
+
* one. An own `current` is what the parent derives from, so the derived
|
|
97
|
+
* status already says it, and on a step that lost to a later one it does not
|
|
98
|
+
* hold. */
|
|
99
|
+
get resolvedStatus() {
|
|
100
|
+
return this.status && this.status !== 'current' ? this.status : this._derivedStatus;
|
|
101
|
+
}
|
|
102
|
+
connectedCallback() {
|
|
103
|
+
super.connectedCallback();
|
|
104
|
+
// Explicit ARIA, like nldd-breadcrumbs: the implicit <li> mapping does not
|
|
105
|
+
// travel reliably across the slot boundary.
|
|
106
|
+
if (!this.hasAttribute('role'))
|
|
107
|
+
this.setAttribute('role', 'listitem');
|
|
108
|
+
}
|
|
109
|
+
updated(changed) {
|
|
110
|
+
if (changed.has('status') || changed.has('_derivedStatus')) {
|
|
111
|
+
// On the host (the listitem), because that is what assistive tech announces.
|
|
112
|
+
if (this.resolvedStatus === 'current')
|
|
113
|
+
this.setAttribute('aria-current', 'step');
|
|
114
|
+
else
|
|
115
|
+
this.removeAttribute('aria-current');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
render() {
|
|
119
|
+
return stepBarItemTemplate(this);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
NLDDStepBarItem.styles = stepBarItemStyles;
|
|
123
|
+
__decorate([
|
|
124
|
+
property({ type: String, reflect: true })
|
|
125
|
+
], NLDDStepBarItem.prototype, "status", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
128
|
+
], NLDDStepBarItem.prototype, "text", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
property({ type: String })
|
|
131
|
+
], NLDDStepBarItem.prototype, "icon", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
property({ type: String, reflect: true })
|
|
134
|
+
], NLDDStepBarItem.prototype, "href", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
property({ type: Boolean, reflect: true })
|
|
137
|
+
], NLDDStepBarItem.prototype, "button", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
state()
|
|
140
|
+
], NLDDStepBarItem.prototype, "_derivedStatus", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
state()
|
|
143
|
+
], NLDDStepBarItem.prototype, "_index", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
state()
|
|
146
|
+
], NLDDStepBarItem.prototype, "_statusText", void 0);
|
|
147
|
+
// Sub-component of nldd-step-bar. The guard registration (like
|
|
148
|
+
// nldd-breadcrumbs-item's) keeps the first registration authoritative across HMR
|
|
149
|
+
// and test re-imports.
|
|
150
|
+
if (!customElements.get('nldd-step-bar-item')) {
|
|
151
|
+
customElements.define('nldd-step-bar-item', NLDDStepBarItem);
|
|
152
|
+
}
|
|
153
|
+
// # nldd-step-bar
|
|
154
|
+
let NLDDStepBar = class NLDDStepBar extends withTranslations(LitElement, nlddStepBarTranslations) {
|
|
155
|
+
constructor() {
|
|
156
|
+
super(...arguments);
|
|
157
|
+
this.accessibleLabel = '';
|
|
158
|
+
/** The steps, tracked so the compact view (text + bar) is driven by the same
|
|
159
|
+
* source as the row of markers. */
|
|
160
|
+
this._items = [];
|
|
161
|
+
/** `status` lives on the children, so a change there has to reach this
|
|
162
|
+
* element: the derived statuses and the compact view follow it. */
|
|
163
|
+
this._observer = new MutationObserver(() => this.requestUpdate());
|
|
164
|
+
this._warnedMultipleCurrent = false;
|
|
165
|
+
this._onSlotChange = (e) => {
|
|
166
|
+
const slot = e.target;
|
|
167
|
+
this._items = slot.assignedElements({ flatten: true })
|
|
168
|
+
.filter((el) => el.localName === 'nldd-step-bar-item');
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
get total() {
|
|
172
|
+
return this._items.length;
|
|
173
|
+
}
|
|
174
|
+
/** 1-based position of the last item with `status="current"`, or 1 when none has it. */
|
|
175
|
+
get resolvedCurrent() {
|
|
176
|
+
const index = this._items.map(item => item.status).lastIndexOf('current');
|
|
177
|
+
return index === -1 ? 1 : index + 1;
|
|
178
|
+
}
|
|
179
|
+
get currentItem() {
|
|
180
|
+
return this._items.find(item => item.resolvedStatus === 'current')
|
|
181
|
+
?? this._items[this.resolvedCurrent - 1];
|
|
182
|
+
}
|
|
183
|
+
connectedCallback() {
|
|
184
|
+
super.connectedCallback();
|
|
185
|
+
this._observer.observe(this, { subtree: true, attributes: true, attributeFilter: ['status'] });
|
|
186
|
+
}
|
|
187
|
+
/** `current` is no longer an attribute of this element. Watched anyway, so a
|
|
188
|
+
* leftover one gets a hint, also when a framework sets it after the first
|
|
189
|
+
* render: Vue and React fall back to the attribute for an unknown property. */
|
|
190
|
+
static get observedAttributes() {
|
|
191
|
+
return [...super.observedAttributes, 'current'];
|
|
192
|
+
}
|
|
193
|
+
attributeChangedCallback(name, old, value) {
|
|
194
|
+
super.attributeChangedCallback(name, old, value);
|
|
195
|
+
if (import.meta.env?.DEV && name === 'current' && value !== null) {
|
|
196
|
+
console.warn('<nldd-step-bar>: `current` moved to the step. Set `status="current"` on the current `nldd-step-bar-item` instead.');
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
disconnectedCallback() {
|
|
200
|
+
super.disconnectedCallback();
|
|
201
|
+
this._observer.disconnect();
|
|
202
|
+
}
|
|
203
|
+
/** Before render, not after: the compact view reads the current item back out
|
|
204
|
+
* of the children, so their statuses have to be fresh by the time this
|
|
205
|
+
* element renders. */
|
|
206
|
+
willUpdate(changed) {
|
|
207
|
+
// withTranslations merges a consumer's `translations` override in its own
|
|
208
|
+
// willUpdate; without this call the override is silently ignored.
|
|
209
|
+
super.willUpdate(changed);
|
|
210
|
+
this._syncItems();
|
|
211
|
+
this._warnOnMultipleCurrent();
|
|
212
|
+
}
|
|
213
|
+
_warnOnMultipleCurrent() {
|
|
214
|
+
if (!import.meta.env?.DEV)
|
|
215
|
+
return;
|
|
216
|
+
const multiple = this._items.filter(item => item.status === 'current').length > 1;
|
|
217
|
+
if (multiple && !this._warnedMultipleCurrent) {
|
|
218
|
+
console.warn('<nldd-step-bar>: more than one step has `status="current"`; the last one wins. Mark only the step you are on.');
|
|
219
|
+
}
|
|
220
|
+
this._warnedMultipleCurrent = multiple;
|
|
221
|
+
}
|
|
222
|
+
/** Push position, derived status and status text down to the children. Push
|
|
223
|
+
* rather than pull: a child cannot see where the current step sits. */
|
|
224
|
+
_syncItems() {
|
|
225
|
+
const current = this.resolvedCurrent;
|
|
226
|
+
this._items.forEach((item, index) => {
|
|
227
|
+
const position = index + 1;
|
|
228
|
+
item._index = position;
|
|
229
|
+
item._derivedStatus = position < current ? 'past' : position === current ? 'current' : 'future';
|
|
230
|
+
item._statusText = this._t(`components.step-bar.status-${item.resolvedStatus}-label`);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
render() {
|
|
234
|
+
return stepBarTemplate(this);
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
NLDDStepBar.styles = stepBarStyles;
|
|
238
|
+
__decorate([
|
|
239
|
+
property({ type: String, attribute: 'accessible-label' })
|
|
240
|
+
], NLDDStepBar.prototype, "accessibleLabel", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
state()
|
|
243
|
+
], NLDDStepBar.prototype, "_items", void 0);
|
|
244
|
+
NLDDStepBar = __decorate([
|
|
245
|
+
customElement('nldd-step-bar')
|
|
246
|
+
], NLDDStepBar);
|
|
247
|
+
export { NLDDStepBar };
|
|
248
|
+
//# sourceMappingURL=step-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-bar.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-bar/step-bar.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;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,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAgC,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,4BAA4B,CAAC;AAOpC,uBAAuB;AAEvB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,eAAgB,SAAQ,UAAU;IAA/C;;QAOC,SAAI,GAAG,EAAE,CAAC;QAGV,SAAI,GAAG,EAAE,CAAC;QAGV,SAAI,GAAG,EAAE,CAAC;QAEV;;6DAEqD;QAErD,WAAM,GAAG,KAAK,CAAC;QAEf;2EACmE;QAEnE,mBAAc,GAAkB,QAAQ,CAAC;QAGzC,WAAM,GAAG,CAAC,CAAC;QAGX,gBAAW,GAAG,EAAE,CAAC;IA4BlB,CAAC;IA1BA;;;gBAGY;IACZ,IAAI,cAAc;QACjB,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC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,WAAW;IADvB,aAAa,CAAC,eAAe,CAAC;GAClB,WAAW,CAoGvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-bar.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-bar/step-bar.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,yBAqGzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,yBA0L7B,CAAC"}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { css, unsafeCSS } from 'lit';
|
|
2
|
+
import { breakpoints } from '../../../assets/styles/breakpoints.js';
|
|
3
|
+
import { inheritedTextReset } from '../../../assets/styles/shadow-resets.js';
|
|
4
|
+
const smMax = unsafeCSS(breakpoints.smMax);
|
|
5
|
+
export const stepBarStyles = css `
|
|
6
|
+
:host {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host {
|
|
11
|
+
--_step-bar-compact-text-gap: var(--primitives-space-8);
|
|
12
|
+
--_step-bar-compact-text-color: var(--semantics-content-color);
|
|
13
|
+
--_step-bar-compact-count-color: var(--semantics-content-secondary-color);
|
|
14
|
+
--_step-bar-compact-bar-gap: var(--primitives-space-4);
|
|
15
|
+
--_step-bar-compact-bar-segment-gap: var(--primitives-space-2);
|
|
16
|
+
--_step-bar-compact-bar-corner-radius: var(--primitives-corner-radius-full);
|
|
17
|
+
--_step-bar-track-color: light-dark(var(--primitives-color-neutral-100), var(--primitives-color-neutral-200));
|
|
18
|
+
--_step-bar-compact-bar-height: var(--primitives-space-6);
|
|
19
|
+
--_step-bar-progress-color: var(--semantics-content-accent-color);
|
|
20
|
+
--_step-bar-item-gap: var(--primitives-space-4);
|
|
21
|
+
--_step-bar-marker-size: var(--primitives-space-24);
|
|
22
|
+
--_step-bar-track-thickness: var(--primitives-space-2);
|
|
23
|
+
--_step-bar-marker-z-index: 1;
|
|
24
|
+
--_step-bar-marker-corner-radius: var(--primitives-corner-radius-full);
|
|
25
|
+
--_step-bar-ring-thickness: var(--semantics-surfaces-ring-thickness);
|
|
26
|
+
--_step-bar-ring-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
27
|
+
--_step-bar-marker-content-color: var(--semantics-content-secondary-color);
|
|
28
|
+
--_step-bar-progress-content-color: var(--semantics-content-contrast-color);
|
|
29
|
+
--_step-bar-current-fill-color: light-dark(var(--primitives-color-accent-75), var(--primitives-color-accent-100));
|
|
30
|
+
--_step-bar-icon-size: var(--primitives-space-16);
|
|
31
|
+
--_step-bar-title-color: var(--semantics-content-secondary-color);
|
|
32
|
+
--_step-bar-current-title-color: var(--semantics-content-color);
|
|
33
|
+
--_step-bar-control-corner-radius: var(--semantics-controls-md-corner-radius);
|
|
34
|
+
--_step-bar-control-bleed-block: var(--primitives-space-4);
|
|
35
|
+
--_step-bar-control-bleed-inline: var(--primitives-space-8);
|
|
36
|
+
--_step-bar-control-fill-z-index: -1;
|
|
37
|
+
--_step-bar-control-ring-z-index: 1;
|
|
38
|
+
--_step-bar-control-hover-background-color: light-dark(var(--primitives-color-neutral-50), var(--primitives-color-neutral-150));
|
|
39
|
+
|
|
40
|
+
${inheritedTextReset}
|
|
41
|
+
isolation: isolate;
|
|
42
|
+
display: block;
|
|
43
|
+
container-type: inline-size;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:host([hidden]) {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.step-bar__items {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: start;
|
|
53
|
+
|
|
54
|
+
/* Stays in the DOM for assistive tech when the compact view takes over.
|
|
55
|
+
Standard visually-hidden recipe. */
|
|
56
|
+
@container (max-width: ${smMax}) {
|
|
57
|
+
position: absolute;
|
|
58
|
+
width: 1px;
|
|
59
|
+
height: 1px;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
clip-path: inset(50%);
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.step-bar__compact-text {
|
|
67
|
+
display: none;
|
|
68
|
+
margin: 0;
|
|
69
|
+
gap: var(--_step-bar-compact-text-gap);
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
align-items: baseline;
|
|
72
|
+
color: var(--_step-bar-compact-text-color);
|
|
73
|
+
font: var(--primitives-font-body-md-regular-flat);
|
|
74
|
+
|
|
75
|
+
@container (max-width: ${smMax}) {
|
|
76
|
+
display: flex;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.step-bar__compact-count {
|
|
81
|
+
color: var(--_step-bar-compact-count-color);
|
|
82
|
+
font-variant-numeric: tabular-nums;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.step-bar__compact-bar {
|
|
87
|
+
display: none;
|
|
88
|
+
margin-top: var(--_step-bar-compact-bar-gap);
|
|
89
|
+
gap: var(--_step-bar-compact-bar-segment-gap);
|
|
90
|
+
|
|
91
|
+
@container (max-width: ${smMax}) {
|
|
92
|
+
display: flex;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.step-bar__compact-bar-segment {
|
|
97
|
+
flex: 1;
|
|
98
|
+
border-radius: var(--_step-bar-compact-bar-corner-radius);
|
|
99
|
+
background-color: var(--_step-bar-track-color);
|
|
100
|
+
height: var(--_step-bar-compact-bar-height);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.step-bar__compact-bar-segment[data-filled] {
|
|
104
|
+
background-color: var(--_step-bar-progress-color);
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
export const stepBarItemStyles = css `
|
|
108
|
+
:host {
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host {
|
|
113
|
+
${inheritedTextReset}
|
|
114
|
+
display: block;
|
|
115
|
+
flex: 1;
|
|
116
|
+
min-width: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:host([hidden]) {
|
|
120
|
+
display: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.step-bar__item {
|
|
124
|
+
position: relative;
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: var(--_step-bar-item-gap);
|
|
129
|
+
text-align: center;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.step-bar__item::before,
|
|
133
|
+
.step-bar__item::after {
|
|
134
|
+
position: absolute;
|
|
135
|
+
top: calc(var(--_step-bar-marker-size) / 2 - var(--_step-bar-track-thickness) / 2);
|
|
136
|
+
height: var(--_step-bar-track-thickness);
|
|
137
|
+
content: "";
|
|
138
|
+
background-color: var(--_step-bar-track-color);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.step-bar__item::before {
|
|
142
|
+
left: 0;
|
|
143
|
+
right: 50%;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.step-bar__item::after {
|
|
147
|
+
left: 50%;
|
|
148
|
+
right: 0;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:host(:first-of-type) .step-bar__item::before {
|
|
152
|
+
content: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:host(:last-of-type) .step-bar__item::after {
|
|
156
|
+
content: none;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.step-bar__item.is-past::before {
|
|
160
|
+
background-color: var(--_step-bar-progress-color);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.step-bar__item.is-past::after {
|
|
164
|
+
background-color: var(--_step-bar-progress-color);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.step-bar__item.is-current::before {
|
|
168
|
+
background-color: var(--_step-bar-progress-color);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.step-bar__item-marker {
|
|
172
|
+
box-sizing: border-box;
|
|
173
|
+
position: relative;
|
|
174
|
+
z-index: var(--_step-bar-marker-z-index);
|
|
175
|
+
display: flex;
|
|
176
|
+
width: var(--_step-bar-marker-size);
|
|
177
|
+
height: var(--_step-bar-marker-size);
|
|
178
|
+
align-items: center;
|
|
179
|
+
justify-content: center;
|
|
180
|
+
border-radius: var(--_step-bar-marker-corner-radius);
|
|
181
|
+
/* Ring in the background color: masks the track running underneath, so
|
|
182
|
+
the marker gets breathing room without shortening the track. */
|
|
183
|
+
box-shadow: 0 0 0 var(--_step-bar-ring-thickness) var(--_step-bar-ring-color);
|
|
184
|
+
background-color: var(--_step-bar-track-color);
|
|
185
|
+
color: var(--_step-bar-marker-content-color);
|
|
186
|
+
font: var(--primitives-font-body-sm-medium-flat);
|
|
187
|
+
|
|
188
|
+
@media (forced-colors: active) {
|
|
189
|
+
border: var(--primitives-border-width-regular) solid CanvasText;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.step-bar__item.is-past .step-bar__item-marker {
|
|
194
|
+
background-color: var(--_step-bar-progress-color);
|
|
195
|
+
color: var(--_step-bar-progress-content-color);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.step-bar__item.is-current .step-bar__item-marker {
|
|
199
|
+
border: var(--_step-bar-track-thickness) solid var(--_step-bar-progress-color);
|
|
200
|
+
background-color: var(--_step-bar-current-fill-color);
|
|
201
|
+
color: var(--_step-bar-progress-color);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.step-bar__item-icon {
|
|
205
|
+
width: var(--_step-bar-icon-size);
|
|
206
|
+
height: var(--_step-bar-icon-size);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.step-bar__item-title {
|
|
210
|
+
color: var(--_step-bar-title-color);
|
|
211
|
+
font: var(--primitives-font-body-sm-regular-flat);
|
|
212
|
+
overflow-wrap: anywhere;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.step-bar__item.is-current .step-bar__item-title {
|
|
216
|
+
color: var(--_step-bar-current-title-color);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* Standard visually-hidden recipe. */
|
|
220
|
+
.step-bar__item-status {
|
|
221
|
+
position: absolute;
|
|
222
|
+
width: 1px;
|
|
223
|
+
height: 1px;
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
clip-path: inset(50%);
|
|
226
|
+
white-space: nowrap;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.step-bar__item-control {
|
|
230
|
+
position: relative;
|
|
231
|
+
display: flex;
|
|
232
|
+
width: fit-content;
|
|
233
|
+
max-width: 100%;
|
|
234
|
+
flex-direction: column;
|
|
235
|
+
align-items: center;
|
|
236
|
+
gap: var(--_step-bar-item-gap);
|
|
237
|
+
padding: 0;
|
|
238
|
+
border: none;
|
|
239
|
+
border-radius: var(--_step-bar-control-corner-radius);
|
|
240
|
+
background: none;
|
|
241
|
+
color: inherit;
|
|
242
|
+
cursor: var(--semantics-controls-link-cursor);
|
|
243
|
+
font: inherit;
|
|
244
|
+
text-decoration: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Two layers on the same box, bleeding past the control rather than padding
|
|
248
|
+
it: padding would move the marker down while the track sits at a fixed
|
|
249
|
+
offset, and the two would no longer line up. ::before carries the fill and
|
|
250
|
+
stays under the track; ::after carries the focus ring and goes over it. */
|
|
251
|
+
.step-bar__item-control::before,
|
|
252
|
+
.step-bar__item-control::after {
|
|
253
|
+
position: absolute;
|
|
254
|
+
inset: calc(var(--_step-bar-control-bleed-block) * -1) calc(var(--_step-bar-control-bleed-inline) * -1);
|
|
255
|
+
border-radius: var(--_step-bar-control-corner-radius);
|
|
256
|
+
content: "";
|
|
257
|
+
pointer-events: none;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.step-bar__item-control::before {
|
|
261
|
+
z-index: var(--_step-bar-control-fill-z-index);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.step-bar__item-control::after {
|
|
265
|
+
z-index: var(--_step-bar-control-ring-z-index);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.step-bar__item-control:focus-visible {
|
|
269
|
+
/* The ring lives on ::after, so the control's own must go — two rings on
|
|
270
|
+
one control is what the browser default would add here. */
|
|
271
|
+
outline: none;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.step-bar__item-control:focus-visible::after {
|
|
275
|
+
outline: var(--semantics-focus-ring-outline);
|
|
276
|
+
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
277
|
+
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/* Hover only on hover-capable devices: keeps a touch-scroll from lighting up
|
|
281
|
+
the step under the finger. */
|
|
282
|
+
@media (hover: hover) {
|
|
283
|
+
.step-bar__item-control:hover {
|
|
284
|
+
/* The marker's ring masks the track in the surrounding color, so it
|
|
285
|
+
has to follow the hover fill or it paints a halo on top of it. */
|
|
286
|
+
--_step-bar-ring-color: var(--_step-bar-control-hover-background-color);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.step-bar__item-control:hover::before {
|
|
290
|
+
background-color: var(--_step-bar-control-hover-background-color);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
`;
|
|
294
|
+
//# sourceMappingURL=step-bar.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-bar.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-bar/step-bar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmC5B,kBAAkB;;;;;;;;;;;;;;;;2BAgBK,KAAK;;;;;;;;;;;;;;;;;;;2BAmBL,KAAK;;;;;;;;;;;;;;;;2BAgBL,KAAK;;;;;;;;;;;;;;;CAe/B,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;IAMhC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoLrB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import type { NLDDStepBar, NLDDStepBarItem } from './step-bar.js';
|
|
3
|
+
export declare function stepBarTemplate(component: NLDDStepBar): TemplateResult;
|
|
4
|
+
export declare function stepBarItemTemplate(component: NLDDStepBarItem): TemplateResult;
|
|
5
|
+
//# sourceMappingURL=step-bar.template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-bar.template.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-bar/step-bar.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAElE,wBAAgB,eAAe,CAAC,SAAS,EAAE,WAAW,GAAG,cAAc,CAmCtE;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,GAAG,cAAc,CAiC9E"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { html, nothing } from 'lit';
|
|
2
|
+
export function stepBarTemplate(component) {
|
|
3
|
+
const label = component.accessibleLabel || component._t('components.step-bar.accessible-label');
|
|
4
|
+
const current = component.resolvedCurrent;
|
|
5
|
+
const total = component.total;
|
|
6
|
+
const currentTitle = component.currentItem?.text ?? '';
|
|
7
|
+
const compactText = component._t('components.step-bar.compact-text', { current, total });
|
|
8
|
+
return html `
|
|
9
|
+
<nav class="step-bar"
|
|
10
|
+
aria-label=${label || nothing}
|
|
11
|
+
>
|
|
12
|
+
<div class="step-bar__items"
|
|
13
|
+
role="list"
|
|
14
|
+
>
|
|
15
|
+
<slot @slotchange=${component._onSlotChange}></slot>
|
|
16
|
+
</div>
|
|
17
|
+
${total > 0 ? html `
|
|
18
|
+
<p class="step-bar__compact-text"
|
|
19
|
+
aria-hidden="true"
|
|
20
|
+
>
|
|
21
|
+
${currentTitle ? html `<span class="step-bar__compact-title">${currentTitle}</span>` : nothing}
|
|
22
|
+
<span class="step-bar__compact-count">${compactText}</span>
|
|
23
|
+
</p>
|
|
24
|
+
<div class="step-bar__compact-bar"
|
|
25
|
+
aria-hidden="true"
|
|
26
|
+
>
|
|
27
|
+
${Array.from({ length: total }, (_, index) => html `
|
|
28
|
+
<span class="step-bar__compact-bar-segment"
|
|
29
|
+
?data-filled=${index + 1 <= current}
|
|
30
|
+
></span>
|
|
31
|
+
`)}
|
|
32
|
+
</div>
|
|
33
|
+
` : nothing}
|
|
34
|
+
</nav>
|
|
35
|
+
`;
|
|
36
|
+
}
|
|
37
|
+
export function stepBarItemTemplate(component) {
|
|
38
|
+
const status = component.resolvedStatus;
|
|
39
|
+
// A past step shows a check mark instead of its number; the number stays in
|
|
40
|
+
// the status text for anyone who can't see it.
|
|
41
|
+
const marker = component.icon
|
|
42
|
+
? html `<nldd-icon class="step-bar__item-icon" icon=${component.icon}></nldd-icon>`
|
|
43
|
+
: status === 'past'
|
|
44
|
+
? html `<nldd-icon class="step-bar__item-icon" icon="check-mark"></nldd-icon>`
|
|
45
|
+
: html `<span class="step-bar__item-number">${component._index}</span>`;
|
|
46
|
+
const content = html `
|
|
47
|
+
<span class="step-bar__item-marker"
|
|
48
|
+
aria-hidden="true"
|
|
49
|
+
>${marker}</span>
|
|
50
|
+
<span class="step-bar__item-title">
|
|
51
|
+
${component.text || html `<slot></slot>`}
|
|
52
|
+
<span class="step-bar__item-status">, ${component._statusText}</span>
|
|
53
|
+
</span>
|
|
54
|
+
`;
|
|
55
|
+
return html `
|
|
56
|
+
<div class="step-bar__item is-${status}">
|
|
57
|
+
${component.href ? html `
|
|
58
|
+
<a class="step-bar__item-control"
|
|
59
|
+
href=${component.href}
|
|
60
|
+
>${content}</a>
|
|
61
|
+
` : component.button ? html `
|
|
62
|
+
<button class="step-bar__item-control"
|
|
63
|
+
type="button"
|
|
64
|
+
>${content}</button>
|
|
65
|
+
` : content}
|
|
66
|
+
</div>
|
|
67
|
+
`;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=step-bar.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-bar.template.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/step-bar/step-bar.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAuB,MAAM,KAAK,CAAC;AAGzD,MAAM,UAAU,eAAe,CAAC,SAAsB;IACrD,MAAM,KAAK,GAAG,SAAS,CAAC,eAAe,IAAI,SAAS,CAAC,EAAE,CAAC,sCAAsC,CAAC,CAAC;IAChG,MAAM,OAAO,GAAG,SAAS,CAAC,eAAe,CAAC;IAC1C,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC;IAC9B,MAAM,YAAY,GAAG,SAAS,CAAC,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC;IACvD,MAAM,WAAW,GAAG,SAAS,CAAC,EAAE,CAAC,kCAAkC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;IAEzF,OAAO,IAAI,CAAA;;gBAEI,KAAK,IAAI,OAAO;;;;;wBAKR,SAAS,CAAC,aAAa;;KAE1C,KAAK,GAAG,CAAC,C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is auto. On the
|
|
3
|
+
root it covers the whole page, light DOM and shadow roots alike. */
|
|
4
|
+
html {
|
|
5
|
+
-webkit-text-size-adjust: 100%;
|
|
6
|
+
text-size-adjust: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
2
9
|
html:has(nldd-app-view),
|
|
3
10
|
html:has(nldd-app-view) body {
|
|
4
11
|
margin: 0;
|