@nldd/design-system 0.8.62 → 0.8.64
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/assets/styles/{slotted-reset.d.ts → style-resets.d.ts} +1 -1
- package/dist/assets/styles/style-resets.d.ts.map +1 -0
- package/dist/assets/styles/{slotted-reset.fixtures.d.ts → style-resets.fixtures.d.ts} +4 -4
- package/dist/assets/styles/style-resets.fixtures.d.ts.map +1 -0
- package/dist/assets/styles/{slotted-reset.fixtures.js → style-resets.fixtures.js} +4 -4
- package/dist/assets/styles/style-resets.fixtures.js.map +1 -0
- package/dist/assets/styles/{slotted-reset.js → style-resets.js} +1 -1
- package/dist/assets/styles/style-resets.js.map +1 -0
- package/dist/components/actions/button/button.d.ts +9 -2
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.i18n.d.ts +5 -0
- package/dist/components/actions/button/button.i18n.d.ts.map +1 -0
- package/dist/components/actions/button/button.i18n.js +4 -0
- package/dist/components/actions/button/button.i18n.js.map +1 -0
- package/dist/components/actions/button/button.js +5 -2
- 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 +21 -7
- 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 +17 -4
- package/dist/components/actions/button/button.template.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 +3 -0
- package/dist/components/actions/button-bar/button-bar.styles.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 +3 -0
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +10 -2
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts +5 -0
- package/dist/components/actions/icon-button/icon-button.i18n.d.ts.map +1 -0
- package/dist/components/actions/icon-button/icon-button.i18n.js +4 -0
- package/dist/components/actions/icon-button/icon-button.i18n.js.map +1 -0
- package/dist/components/actions/icon-button/icon-button.js +5 -2
- 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 +4 -1
- 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 +11 -2
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +4 -1
- package/dist/components/actions/menu/menu.styles.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 +4 -1
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +4 -1
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/components.js +64 -62
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +4 -1
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/byline/byline.d.ts +11 -0
- package/dist/components/content/byline/byline.d.ts.map +1 -1
- package/dist/components/content/byline/byline.js +20 -0
- package/dist/components/content/byline/byline.js.map +1 -1
- package/dist/components/content/byline/byline.styles.d.ts.map +1 -1
- package/dist/components/content/byline/byline.styles.js +17 -2
- package/dist/components/content/byline/byline.styles.js.map +1 -1
- package/dist/components/content/byline/byline.template.d.ts.map +1 -1
- package/dist/components/content/byline/byline.template.js +17 -2
- package/dist/components/content/byline/byline.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +4 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +1 -1
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
- package/dist/components/content/icon/icon.styles.js +3 -0
- package/dist/components/content/icon/icon.styles.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +4 -1
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +4 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/content/tag/tag.styles.js +4 -1
- package/dist/components/content/tag/tag.styles.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +4 -1
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +4 -1
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/forms/form-actions/form-actions.styles.d.ts.map +1 -1
- package/dist/components/forms/form-actions/form-actions.styles.js +4 -0
- package/dist/components/forms/form-actions/form-actions.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +5 -1
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/{index-DPe5myEj.js → index-BNhqNvDd.js} +4882 -2776
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- 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 +3 -0
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +4 -1
- package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +4 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +4 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +4 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +4 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +4 -1
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +4 -1
- package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +3 -0
- package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +4 -1
- package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.styles.js +4 -1
- package/dist/components/inputs/radio-button-group/radio-button-group.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +13 -1
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +47 -39
- package/dist/components/inputs/search-field/search-field.template.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 +4 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.styles.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.styles.js +3 -0
- package/dist/components/inputs/stepper/stepper.styles.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +3 -0
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js +4 -1
- package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +4 -1
- package/dist/components/inputs/text-field/text-field.styles.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 +4 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- 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 +3 -0
- package/dist/components/inputs/toggle-button-group/toggle-button-group.styles.js.map +1 -1
- package/dist/components/inputs/token/token.styles.d.ts.map +1 -1
- package/dist/components/inputs/token/token.styles.js +4 -1
- package/dist/components/inputs/token/token.styles.js.map +1 -1
- package/dist/components/layout/app-view/app-view.styles.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.styles.js +3 -0
- package/dist/components/layout/app-view/app-view.styles.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +3 -0
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/card/card.d.ts +28 -2
- package/dist/components/layout/card/card.d.ts.map +1 -1
- package/dist/components/layout/card/card.i18n.d.ts +5 -0
- package/dist/components/layout/card/card.i18n.d.ts.map +1 -0
- package/dist/components/layout/card/card.i18n.js +4 -0
- package/dist/components/layout/card/card.i18n.js.map +1 -0
- package/dist/components/layout/card/card.js +54 -2
- package/dist/components/layout/card/card.js.map +1 -1
- package/dist/components/layout/card/card.styles.d.ts.map +1 -1
- package/dist/components/layout/card/card.styles.js +20 -0
- package/dist/components/layout/card/card.styles.js.map +1 -1
- package/dist/components/layout/card/card.template.d.ts.map +1 -1
- package/dist/components/layout/card/card.template.js +17 -1
- package/dist/components/layout/card/card.template.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +7 -5
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +17 -5
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +12 -12
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.template.js +4 -2
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +7 -3
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +15 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +42 -1
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/divider/divider.styles.d.ts.map +1 -1
- package/dist/components/layout/divider/divider.styles.js +3 -0
- package/dist/components/layout/divider/divider.styles.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +3 -0
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +1 -0
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
- package/dist/components/layout/page-footer/page-footer.js +12 -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 +13 -1
- 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.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +3 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +25 -5
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +60 -11
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.styles.js +15 -4
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.js +13 -1
- package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +3 -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-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 +3 -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/sidebar-section/sidebar-section.d.ts +119 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.d.ts +6 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.d.ts.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.js +5 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.i18n.js.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +219 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts +2 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +157 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts +4 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.d.ts.map +1 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +57 -0
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +3 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +3 -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/popover/popover.styles.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.styles.js +3 -0
- package/dist/components/layout/popover/popover.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +3 -0
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/layout/spacer/spacer.styles.d.ts.map +1 -1
- package/dist/components/layout/spacer/spacer.styles.js +3 -0
- package/dist/components/layout/spacer/spacer.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +3 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +47 -19
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +123 -73
- 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.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +17 -14
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.d.ts.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +10 -8
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +3 -0
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js.map +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js +3 -0
- package/dist/components/layout/split-views/split-view-divider/split-view-divider.styles.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +3 -0
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +3 -0
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js.map +1 -1
- package/dist/components/layout/window/window.d.ts +1 -19
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +1 -187
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/layout/window/window.styles.d.ts.map +1 -1
- package/dist/components/layout/window/window.styles.js +5 -28
- package/dist/components/layout/window/window.styles.js.map +1 -1
- package/dist/components/layout/window/window.template.d.ts.map +1 -1
- package/dist/components/layout/window/window.template.js +1 -2
- package/dist/components/layout/window/window.template.js.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/cell/cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js +3 -0
- package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +3 -0
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js +3 -0
- package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js +3 -0
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +4 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +183 -8
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.d.ts +3 -0
- package/dist/components/lists-and-tables/list/list.i18n.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.i18n.js +3 -0
- package/dist/components/lists-and-tables/list/list.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +522 -17
- 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 +163 -25
- package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.d.ts +26 -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 +76 -18
- 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 +30 -9
- 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.i18n.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.i18n.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +81 -20
- 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 +55 -32
- package/dist/components/lists-and-tables/list-item/list-item.styles.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 +10 -5
- 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 +4 -1
- package/dist/components/lists-and-tables/table/table.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +0 -44
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts +0 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js +0 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +1 -84
- 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 +6 -52
- 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 +1 -17
- 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 +5 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/link/link.d.ts +9 -2
- package/dist/components/navigation/link/link.d.ts.map +1 -1
- package/dist/components/navigation/link/link.i18n.d.ts +5 -0
- package/dist/components/navigation/link/link.i18n.d.ts.map +1 -0
- package/dist/components/navigation/link/link.i18n.js +4 -0
- package/dist/components/navigation/link/link.i18n.js.map +1 -0
- package/dist/components/navigation/link/link.js +5 -2
- package/dist/components/navigation/link/link.js.map +1 -1
- package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
- package/dist/components/navigation/link/link.styles.js +18 -1
- package/dist/components/navigation/link/link.styles.js.map +1 -1
- package/dist/components/navigation/link/link.template.d.ts.map +1 -1
- package/dist/components/navigation/link/link.template.js +14 -1
- package/dist/components/navigation/link/link.template.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.styles.js +4 -1
- package/dist/components/navigation/menu-bar/menu-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 +4 -1
- 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 +4 -1
- package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.js +4 -1
- package/dist/components/navigation/skip-link/skip-link.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +11 -4
- 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 +29 -4
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts +5 -0
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +17 -0
- 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 +32 -16
- 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 +4 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.styles.js.map +1 -1
- package/dist/components/{prism-python-mIMEATOA.js → prism-python--N285k7w.js} +1 -1
- package/dist/components/{prism-rust-Ig3wVTFD.js → prism-rust-Cnm1tSdo.js} +1 -1
- package/dist/components/{prism-typescript-BeulJu8Z.js → prism-typescript-BPJAiB1s.js} +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +35 -12
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +48 -13
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +81 -18
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts +1 -2
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +21 -7
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.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 +4 -1
- 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 +4 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +12 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +4 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +124 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.i18n.d.ts +6 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.i18n.js +5 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +550 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts +2 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +304 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js.map +1 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.template.d.ts +4 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.template.js +72 -0
- package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.template.js.map +1 -0
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +4 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.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 +4 -1
- 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.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +4 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +6 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +23 -9
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +4 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js.map +1 -1
- package/dist/css/rich-text.css +63 -0
- package/dist/css/settings.css +10 -3
- package/package.json +9 -1
- package/dist/assets/styles/slotted-reset.d.ts.map +0 -1
- package/dist/assets/styles/slotted-reset.fixtures.d.ts.map +0 -1
- package/dist/assets/styles/slotted-reset.fixtures.js.map +0 -1
- package/dist/assets/styles/slotted-reset.js.map +0 -1
|
@@ -15,8 +15,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
15
15
|
*
|
|
16
16
|
* The default indicator is a simple icon-sized circle drawn in `currentColor`,
|
|
17
17
|
* with an optional label below (hidden unless `show-text` is set). Drop a
|
|
18
|
-
* `<nldd-progress-circle>`, `<nldd-progress-bar>` or any element in the
|
|
19
|
-
* to override it.
|
|
18
|
+
* `<nldd-progress-circle>`, `<nldd-progress-bar>` or any element in the
|
|
19
|
+
* `indicator` slot to override it.
|
|
20
|
+
*
|
|
21
|
+
* Overlay mode: put content in the default slot and the indicator wraps it — it
|
|
22
|
+
* becomes a `position: relative` container, renders the spinner over a dimming
|
|
23
|
+
* backdrop (opt out with `no-backdrop`), and makes the content `inert` so its
|
|
24
|
+
* controls can't be focused or clicked. Toggle loading with `complete`
|
|
25
|
+
* (`?complete=${!isLoading}`). With no slotted content it stays the standalone
|
|
26
|
+
* placeholder described above.
|
|
20
27
|
*
|
|
21
28
|
* Reconnect behaviour: every `connectedCallback` resets the timer and hides
|
|
22
29
|
* the indicator again. If a consumer toggles the element via a conditional
|
|
@@ -37,12 +44,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
37
44
|
* @attr {string} text - Label text. Falls back to the translated "Laden" when unset.
|
|
38
45
|
* @attr {'default'|'instant'} timing - 'default' waits 1000ms before showing (anti-flash); 'instant' shows immediately (the fade-in still plays). Default 'default'.
|
|
39
46
|
* @attr {boolean} complete - Mark the loader as finished while keeping the element mounted; clears aria-busy and hides the indicator.
|
|
40
|
-
* @attr {boolean} backdrop -
|
|
47
|
+
* @attr {boolean} no-backdrop - Overlay mode dims and blurs the wrapped content with a frosted backdrop by default; set this to show only the indicator panel without dimming. No effect in standalone mode.
|
|
41
48
|
* @attr {object} translations - Override translation keys; unset keys fall back to Dutch
|
|
42
49
|
*
|
|
43
|
-
* @slot -
|
|
44
|
-
*
|
|
45
|
-
*
|
|
50
|
+
* @slot - Content to wrap (overlay mode); made inert while loading. Leave empty
|
|
51
|
+
* for the standalone placeholder.
|
|
52
|
+
* @slot indicator - Optional custom indicator; overrides the default circle (and
|
|
53
|
+
* its visually-hidden label). Consumers replacing it supply their own indicator
|
|
54
|
+
* semantics; the host's role="status" still marks the loading region.
|
|
55
|
+
*
|
|
56
|
+
* @migration The custom-indicator override moved from the default slot to the
|
|
57
|
+
* `indicator` slot, since the default slot now holds wrapped content:
|
|
58
|
+
* `<nldd-progress-bar slot="indicator">`.
|
|
46
59
|
*/
|
|
47
60
|
import { LitElement } from 'lit';
|
|
48
61
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
@@ -66,13 +79,25 @@ let NLDDActivityIndicator = class NLDDActivityIndicator extends LitElement {
|
|
|
66
79
|
/** Mark the loader as finished while keeping the element mounted.
|
|
67
80
|
* Clears aria-busy and hides the indicator. Default false. */
|
|
68
81
|
this.complete = false;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
|
|
82
|
+
/** Opt out of the dimming backdrop in overlay mode. With wrapped content the
|
|
83
|
+
* backdrop is on by default — the content is inert, so it should read as
|
|
84
|
+
* inactive — so set `no-backdrop` to show only the indicator panel without
|
|
85
|
+
* dimming/blurring the content. No effect in standalone mode (no content to
|
|
86
|
+
* dim). */
|
|
87
|
+
this.noBackdrop = false;
|
|
74
88
|
this.translations = {};
|
|
75
89
|
this._visible = false;
|
|
90
|
+
/** Whether the default slot holds wrapped content (overlay mode) instead of
|
|
91
|
+
* being empty (standalone placeholder). Drives the host layout and whether
|
|
92
|
+
* the content is made inert while loading. */
|
|
93
|
+
this._hasContent = false;
|
|
94
|
+
/** Track default-slot content so the component can switch between the
|
|
95
|
+
* standalone placeholder and the content-wrapping overlay, and disable the
|
|
96
|
+
* wrapped content (via `inert`) while loading. */
|
|
97
|
+
this._onContentSlotChange = (e) => {
|
|
98
|
+
const slot = e.target;
|
|
99
|
+
this._hasContent = slot.assignedElements().length > 0;
|
|
100
|
+
};
|
|
76
101
|
}
|
|
77
102
|
_t(key) {
|
|
78
103
|
return this.translations[key] ?? nlddActivityIndicatorTranslations[key];
|
|
@@ -136,6 +161,13 @@ let NLDDActivityIndicator = class NLDDActivityIndicator extends LitElement {
|
|
|
136
161
|
this.setAttribute('role', 'status');
|
|
137
162
|
}
|
|
138
163
|
}
|
|
164
|
+
updated() {
|
|
165
|
+
// Reflect derived state as host attributes the styles key off: `loading`
|
|
166
|
+
// drives the indicator + backdrop fade (in AND out); `has-content` switches
|
|
167
|
+
// between the standalone placeholder and the content-wrapping overlay.
|
|
168
|
+
this.toggleAttribute('loading', this._visible && !this.complete);
|
|
169
|
+
this.toggleAttribute('has-content', this._hasContent);
|
|
170
|
+
}
|
|
139
171
|
render() {
|
|
140
172
|
return activityIndicatorTemplate(this);
|
|
141
173
|
}
|
|
@@ -157,14 +189,17 @@ __decorate([
|
|
|
157
189
|
property({ type: Boolean, reflect: true })
|
|
158
190
|
], NLDDActivityIndicator.prototype, "complete", void 0);
|
|
159
191
|
__decorate([
|
|
160
|
-
property({ type: Boolean, reflect: true })
|
|
161
|
-
], NLDDActivityIndicator.prototype, "
|
|
192
|
+
property({ type: Boolean, reflect: true, attribute: 'no-backdrop' })
|
|
193
|
+
], NLDDActivityIndicator.prototype, "noBackdrop", void 0);
|
|
162
194
|
__decorate([
|
|
163
195
|
property({ type: Object })
|
|
164
196
|
], NLDDActivityIndicator.prototype, "translations", void 0);
|
|
165
197
|
__decorate([
|
|
166
198
|
state()
|
|
167
199
|
], NLDDActivityIndicator.prototype, "_visible", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
state()
|
|
202
|
+
], NLDDActivityIndicator.prototype, "_hasContent", void 0);
|
|
168
203
|
NLDDActivityIndicator = __decorate([
|
|
169
204
|
customElement('nldd-activity-indicator')
|
|
170
205
|
], NLDDActivityIndicator);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-indicator.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"activity-indicator.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.ts"],"names":[],"mappings":"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"}
|
package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-indicator.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"activity-indicator.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,yBA+OnC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
import { inheritedTextReset } from '../../../assets/styles/
|
|
2
|
+
import { inheritedTextReset } from '../../../assets/styles/style-resets.js';
|
|
3
3
|
export const activityIndicatorStyles = css `
|
|
4
|
+
:host {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
/* # Host */
|
|
@@ -18,6 +21,8 @@ export const activityIndicatorStyles = css `
|
|
|
18
21
|
--_gap: var(--primitives-space-4);
|
|
19
22
|
--_text-font: var(--primitives-font-body-sm-regular-flat);
|
|
20
23
|
--_backdrop-blur: 3px;
|
|
24
|
+
--_overlay-panel-padding: var(--primitives-space-12);
|
|
25
|
+
--_overlay-panel-corner-radius: var(--primitives-corner-radius-md);
|
|
21
26
|
|
|
22
27
|
${inheritedTextReset}
|
|
23
28
|
box-sizing: border-box;
|
|
@@ -35,10 +40,13 @@ export const activityIndicatorStyles = css `
|
|
|
35
40
|
display: none;
|
|
36
41
|
}
|
|
37
42
|
|
|
38
|
-
/*
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
/* Overlay mode (content in the default slot): the host wraps the content and
|
|
44
|
+
is the containing block for the absolutely-positioned indicator + backdrop,
|
|
45
|
+
so it sizes to the content instead of filling its parent. */
|
|
46
|
+
:host([has-content]) {
|
|
47
|
+
display: block;
|
|
41
48
|
position: relative;
|
|
49
|
+
height: auto;
|
|
42
50
|
}
|
|
43
51
|
|
|
44
52
|
|
|
@@ -59,35 +67,75 @@ export const activityIndicatorStyles = css `
|
|
|
59
67
|
|
|
60
68
|
|
|
61
69
|
/* # Block
|
|
62
|
-
|
|
63
|
-
stacks the default circle + label as a centred column. width:100% +
|
|
70
|
+
Stacks the default circle + label as a centred column. width:100% +
|
|
64
71
|
max-width gives a slotted progress-bar a width to fill; the fixed-size
|
|
65
72
|
circle and the label stay centred via align-items. */
|
|
66
73
|
|
|
67
74
|
.activity-indicator {
|
|
68
75
|
/* position:relative so it paints above the absolutely-positioned backdrop
|
|
69
|
-
(both are z-index:auto; the backdrop comes first in the DOM).
|
|
76
|
+
(both are z-index:auto; the backdrop comes first in the DOM). Hidden by
|
|
77
|
+
default; the loading host attribute fades it (and the backdrop) in and
|
|
78
|
+
out — opacity + display via transition-behavior: allow-discrete, with a
|
|
79
|
+
starting-style for the entry. */
|
|
70
80
|
position: relative;
|
|
71
|
-
display:
|
|
72
|
-
|
|
81
|
+
display: none;
|
|
82
|
+
opacity: 0;
|
|
83
|
+
pointer-events: none;
|
|
73
84
|
width: 100%;
|
|
74
85
|
max-width: var(--_max-width);
|
|
86
|
+
flex-direction: column;
|
|
75
87
|
align-items: center;
|
|
76
88
|
gap: var(--_gap);
|
|
77
|
-
|
|
89
|
+
transition-property: opacity, display;
|
|
90
|
+
transition-duration: var(--_fade-duration);
|
|
91
|
+
transition-timing-function: var(--_fade-easing);
|
|
92
|
+
transition-behavior: allow-discrete;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host([loading]) .activity-indicator {
|
|
96
|
+
display: flex;
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@starting-style {
|
|
101
|
+
:host([loading]) .activity-indicator {
|
|
102
|
+
opacity: 0;
|
|
103
|
+
}
|
|
78
104
|
}
|
|
79
105
|
|
|
80
|
-
|
|
81
|
-
|
|
106
|
+
/* Overlay mode: the wrapped content flows normally; the indicator + backdrop
|
|
107
|
+
sit on top as absolute layers that fill the host. */
|
|
108
|
+
.activity-indicator__content {
|
|
109
|
+
display: block;
|
|
82
110
|
}
|
|
83
111
|
|
|
84
|
-
/*
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
112
|
+
/* Overlay mode: the indicator + label sit on a small rounded base-surface
|
|
113
|
+
panel that hugs them with padding (not the full component width) so they
|
|
114
|
+
keep contrast over the dimmed content, and read in the content colour
|
|
115
|
+
instead of inheriting currentColor. */
|
|
116
|
+
:host([has-content]) .activity-indicator {
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: 50%;
|
|
120
|
+
left: 50%;
|
|
121
|
+
border-radius: var(--_overlay-panel-corner-radius);
|
|
122
|
+
background-color: var(--semantics-surfaces-base-background-color);
|
|
123
|
+
width: max-content;
|
|
124
|
+
max-width: calc(100% - var(--primitives-space-32));
|
|
125
|
+
padding: var(--_overlay-panel-padding);
|
|
126
|
+
color: var(--semantics-content-color);
|
|
127
|
+
transform: translate(-50%, -50%);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Dimming layer (overlay mode, on by default; opt out with no-backdrop): the
|
|
131
|
+
context parent background colour — fallback the base surface — at one minus
|
|
132
|
+
the disabled opacity, so the content underneath reads as inactive while
|
|
133
|
+
loading. Fades in and out with the indicator via the loading attribute. */
|
|
88
134
|
.activity-indicator__backdrop {
|
|
89
135
|
position: absolute;
|
|
90
136
|
inset: 0;
|
|
137
|
+
display: none;
|
|
138
|
+
opacity: 0;
|
|
91
139
|
/* Frosted dim: the parent surface — fallback base surface — as a
|
|
92
140
|
translucent fill at one minus the disabled opacity (a translucent
|
|
93
141
|
colour, not element opacity, which would hide the blur), plus a blur so
|
|
@@ -96,7 +144,22 @@ export const activityIndicatorStyles = css `
|
|
|
96
144
|
background-color: color-mix(in oklab, var(--context-parent-background-color, var(--semantics-surfaces-base-background-color)) calc((1 - var(--primitives-opacity-disabled)) * 100%), transparent);
|
|
97
145
|
-webkit-backdrop-filter: blur(var(--_backdrop-blur));
|
|
98
146
|
backdrop-filter: blur(var(--_backdrop-blur));
|
|
99
|
-
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
transition-property: opacity, display;
|
|
149
|
+
transition-duration: var(--_fade-duration);
|
|
150
|
+
transition-timing-function: var(--_fade-easing);
|
|
151
|
+
transition-behavior: allow-discrete;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host([loading]) .activity-indicator__backdrop {
|
|
155
|
+
display: block;
|
|
156
|
+
opacity: 1;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@starting-style {
|
|
160
|
+
:host([loading]) .activity-indicator__backdrop {
|
|
161
|
+
opacity: 0;
|
|
162
|
+
}
|
|
100
163
|
}
|
|
101
164
|
|
|
102
165
|
/* display:contents so the default circle + label (or a slotted override)
|
|
@@ -162,7 +225,7 @@ export const activityIndicatorStyles = css `
|
|
|
162
225
|
@media (prefers-reduced-motion: reduce) {
|
|
163
226
|
.activity-indicator,
|
|
164
227
|
.activity-indicator__backdrop {
|
|
165
|
-
|
|
228
|
+
transition: none;
|
|
166
229
|
}
|
|
167
230
|
|
|
168
231
|
.activity-indicator__indicator {
|
package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-indicator.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"activity-indicator.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;IAwBtC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuNrB,CAAC"}
|
package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { nothing } from 'lit';
|
|
2
1
|
import type { NLDDActivityIndicator } from './activity-indicator.js';
|
|
3
|
-
export declare function activityIndicatorTemplate(component: NLDDActivityIndicator): import("lit-html").TemplateResult<1
|
|
2
|
+
export declare function activityIndicatorTemplate(component: NLDDActivityIndicator): import("lit-html").TemplateResult<1>;
|
|
4
3
|
//# sourceMappingURL=activity-indicator.template.d.ts.map
|
package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-indicator.template.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activity-indicator.template.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,qBAAqB,wCAoDzE"}
|
package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js
CHANGED
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
3
3
|
export function activityIndicatorTemplate(component) {
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
// Disable + busy-mark the wrapped content while loading (overlay mode). `inert`
|
|
5
|
+
// works over the flat tree, so it reaches the slotted (light-DOM) content and
|
|
6
|
+
// takes its controls out of the tab order — which pointer-events alone can't.
|
|
7
|
+
// (aria-busy below reflects the busy state explicitly as true/false rather than
|
|
8
|
+
// toggling the attribute, which some AT track more reliably; note that inert also
|
|
9
|
+
// removes the subtree from the a11y tree, so AT relies on the role="status" host,
|
|
10
|
+
// not this aria-busy, for the loading announcement.)
|
|
11
|
+
const disableContent = component._visible && !component.complete && component._hasContent;
|
|
12
|
+
// The backdrop dims the inert content in overlay mode (unless opted out). It
|
|
13
|
+
// renders for the whole overlay-mode lifetime; the `loading` host attribute —
|
|
14
|
+
// not conditional rendering — drives its (and the indicator's) fade in AND
|
|
15
|
+
// out, so the overlay can also transition away when loading finishes.
|
|
16
|
+
const renderBackdrop = component._hasContent && !component.noBackdrop;
|
|
9
17
|
// The label always renders so it is the announced content of the
|
|
10
18
|
// role="status" host; show-text only controls whether it is visible.
|
|
11
19
|
const text = component._accessibleName;
|
|
12
20
|
return html `
|
|
13
|
-
|
|
21
|
+
<div class="activity-indicator__content"
|
|
22
|
+
?inert=${disableContent}
|
|
23
|
+
aria-busy=${disableContent ? 'true' : 'false'}
|
|
24
|
+
>
|
|
25
|
+
<slot @slotchange=${component._onContentSlotChange}></slot>
|
|
26
|
+
</div>
|
|
27
|
+
${renderBackdrop ? html `<div class="activity-indicator__backdrop" aria-hidden="true"></div>` : nothing}
|
|
14
28
|
<div class="activity-indicator">
|
|
15
|
-
<slot>
|
|
29
|
+
<slot name="indicator">
|
|
16
30
|
<svg class="activity-indicator__circle"
|
|
17
31
|
viewBox="0 0 24 24"
|
|
18
32
|
fill="none"
|
package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-indicator.template.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,MAAM,UAAU,yBAAyB,CAAC,SAAgC;IACzE,
|
|
1
|
+
{"version":3,"file":"activity-indicator.template.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/activity-indicator/activity-indicator.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,MAAM,UAAU,yBAAyB,CAAC,SAAgC;IACzE,gFAAgF;IAChF,8EAA8E;IAC9E,8EAA8E;IAC9E,gFAAgF;IAChF,kFAAkF;IAClF,kFAAkF;IAClF,qDAAqD;IACrD,MAAM,cAAc,GAAG,SAAS,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,WAAW,CAAC;IAC1F,6EAA6E;IAC7E,8EAA8E;IAC9E,2EAA2E;IAC3E,sEAAsE;IACtE,MAAM,cAAc,GAAG,SAAS,CAAC,WAAW,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;IACtE,iEAAiE;IACjE,qEAAqE;IACrE,MAAM,IAAI,GAAG,SAAS,CAAC,eAAe,CAAC;IACvC,OAAO,IAAI,CAAA;;YAEA,cAAc;eACX,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;;uBAEzB,SAAS,CAAC,oBAAoB;;IAEjD,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA,qEAAqE,CAAC,CAAC,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;kBAqBtF,QAAQ,CAAC;QACvB,0BAA0B,EAAE,IAAI;QAChC,2CAA2C,EAAE,CAAC,SAAS,CAAC,QAAQ;KAChE,CAAC,IAAI,IAAI;;;EAGX,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,yBAmPvB,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
import { inheritedTextReset } from '../../../assets/styles/
|
|
2
|
+
import { inheritedTextReset } from '../../../assets/styles/style-resets.js';
|
|
3
3
|
export const badgeStyles = css `
|
|
4
|
+
:host {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
/* # Host */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"badge.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;IAqB1B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8NrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/banner/banner.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"banner.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/banner/banner.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,yBAmJxB,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
import { inheritedTextReset } from '../../../assets/styles/
|
|
2
|
+
import { inheritedTextReset } from '../../../assets/styles/style-resets.js';
|
|
3
3
|
export const bannerStyles = css `
|
|
4
|
+
:host {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
/* # Host */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/banner/banner.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"banner.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/banner/banner.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;IAuB3B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4HrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4CAA4C,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,SAAS,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAEhG,qBACa,gBAAiB,SAAQ,UAAU;IAC/C,OAAgB,MAAM,0BAAsB;IAG5C,OAAO,EAAE,mBAAmB,GAAG,EAAE,CAAM;IAGvC,IAAI,EAAE,gBAAgB,CAAQ;IAG9B,IAAI,SAAM;IAGV,SAAS,EAAE,qBAAqB,GAAG,EAAE,CAAM;IAG3C,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,YAAY,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAGlD,WAAW,UAAS;IAGpB,WAAW,UAAS;IAEpB,IAAI,iBAAiB,IAAI,MAAM,CAK9B;IAEQ,YAAY;
|
|
1
|
+
{"version":3,"file":"inline-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4CAA4C,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,SAAS,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAEhG,qBACa,gBAAiB,SAAQ,UAAU;IAC/C,OAAgB,MAAM,0BAAsB;IAG5C,OAAO,EAAE,mBAAmB,GAAG,EAAE,CAAM;IAGvC,IAAI,EAAE,gBAAgB,CAAQ;IAG9B,IAAI,SAAM;IAGV,SAAS,EAAE,qBAAqB,GAAG,EAAE,CAAM;IAG3C,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,YAAY,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAGlD,WAAW,UAAS;IAGpB,WAAW,UAAS;IAEpB,IAAI,iBAAiB,IAAI,MAAM,CAK9B;IAEQ,YAAY;IAgCZ,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,oBAAoB,EAAE,gBAAgB,CAAC;KACvC;CACD"}
|
|
@@ -67,8 +67,18 @@ let NLDDInlineDialog = class NLDDInlineDialog extends LitElement {
|
|
|
67
67
|
const syncActions = () => { this._hasActions = hasMeaningfulContent(actionsSlot); };
|
|
68
68
|
contentSlot?.addEventListener('slotchange', syncContent);
|
|
69
69
|
actionsSlot?.addEventListener('slotchange', syncActions);
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// Defer the initial sync out of the update lifecycle: setting reactive
|
|
71
|
+
// state synchronously here re-enters the current update and triggers Lit's
|
|
72
|
+
// change-in-update warning. A microtask runs after this update completes,
|
|
73
|
+
// so the follow-up render (when a slot has content) is scheduled cleanly.
|
|
74
|
+
// slotchange handles every later change; this covers the initial state.
|
|
75
|
+
// SSR caveat (no SSR today): on hydration the first paint can land before this
|
|
76
|
+
// microtask drains, briefly showing the empty-slot state. If SSR is adopted,
|
|
77
|
+
// move this into willUpdate (or a second requestUpdate in firstUpdated).
|
|
78
|
+
queueMicrotask(() => {
|
|
79
|
+
syncContent();
|
|
80
|
+
syncActions();
|
|
81
|
+
});
|
|
72
82
|
}
|
|
73
83
|
render() {
|
|
74
84
|
return inlineDialogTemplate(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,4BAA4B,CAAC;AACpC,OAAO,4CAA4C,CAAC;AAO7C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAIN,YAAO,GAA6B,EAAE,CAAC;QAGvC,SAAI,GAAqB,IAAI,CAAC;QAG9B,SAAI,GAAG,EAAE,CAAC;QAGV,cAAS,GAA+B,EAAE,CAAC;QAG3C,SAAI,GAAG,EAAE,CAAC;QAGV,mBAAc,GAAG,EAAE,CAAC;QAGpB,iBAAY,GAAiC,IAAI,CAAC;QAGlD,gBAAW,GAAG,KAAK,CAAC;QAGpB,gBAAW,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"inline-dialog.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,4BAA4B,CAAC;AACpC,OAAO,4CAA4C,CAAC;AAO7C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAIN,YAAO,GAA6B,EAAE,CAAC;QAGvC,SAAI,GAAqB,IAAI,CAAC;QAG9B,SAAI,GAAG,EAAE,CAAC;QAGV,cAAS,GAA+B,EAAE,CAAC;QAG3C,SAAI,GAAG,EAAE,CAAC;QAGV,mBAAc,GAAG,EAAE,CAAC;QAGpB,iBAAY,GAAiC,IAAI,CAAC;QAGlD,gBAAW,GAAG,KAAK,CAAC;QAGpB,gBAAW,GAAG,KAAK,CAAC;IA4CrB,CAAC;IA1CA,IAAI,iBAAiB;QACpB,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO;YAAE,OAAO,OAAO,CAAC;QAC7C,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS;YAAE,OAAO,SAAS,CAAC;QACjD,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC,IAAI,CAAC;QAChC,OAAO,EAAE,CAAC;IACX,CAAC;IAEQ,YAAY;QACpB,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,CAAkB,kBAAkB,CAAC,CAAC;QACxF,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,CAAkB,sBAAsB,CAAC,CAAC;QAC5F,wEAAwE;QACxE,wEAAwE;QACxE,oEAAoE;QACpE,gBAAgB;QAChB,MAAM,oBAAoB,GAAG,CAAC,IAAwC,EAAW,EAAE;YAClF,MAAM,KAAK,GAAG,IAAI,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;YAC3D,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CACrB,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY;mBAC7B,CAAC,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,CAC1E,CAAC;QACH,CAAC,CAAC;QACF,MAAM,WAAW,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC,WAAW,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QACpF,MAAM,WAAW,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC,WAAW,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QACpF,WAAW,EAAE,gBAAgB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QACzD,WAAW,EAAE,gBAAgB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QACzD,uEAAuE;QACvE,2EAA2E;QAC3E,0EAA0E;QAC1E,0EAA0E;QAC1E,wEAAwE;QACxE,+EAA+E;QAC/E,6EAA6E;QAC7E,yEAAyE;QACzE,cAAc,CAAC,GAAG,EAAE;YACnB,WAAW,EAAE,CAAC;YACd,WAAW,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;IACJ,CAAC;IAEQ,MAAM;QACd,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;;AAtEe,uBAAM,GAAG,kBAAkB,AAArB,CAAsB;AAG5C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDACH;AAGvC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CACZ;AAG9B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAChC;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;mDACxB;AAG3C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAChC;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;wDACpD;AAGpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;sDACpB;AAGlD;IADC,KAAK,EAAE;qDACY;AAGpB;IADC,KAAK,EAAE;qDACY;AA5BR,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAwE5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"inline-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,yBA8H9B,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
import { inheritedTextReset } from '../../../assets/styles/
|
|
2
|
+
import { inheritedTextReset } from '../../../assets/styles/style-resets.js';
|
|
3
3
|
export const inlineDialogStyles = css `
|
|
4
|
+
:host {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
4
7
|
|
|
5
8
|
|
|
6
9
|
/* # Host */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"inline-dialog.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAE5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;IAcjC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHrB,CAAC"}
|
package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nederlandse Digitale Dienst Just in Time Education Component (Lit + TypeScript)
|
|
3
|
+
*
|
|
4
|
+
* Een guided-discovery coach-mark. Plaats een control (bijv. nldd-search-field)
|
|
5
|
+
* in de default slot; zolang `active` is gezet tilt het component een callout
|
|
6
|
+
* (titel + supporting text + dismiss) in de top layer via de Popover API
|
|
7
|
+
* (`popover="manual"`), geankerd aan het control met Floating UI. Geen backdrop,
|
|
8
|
+
* non-modaal: de achtergrond blijft interactief. Het control zelf blijft op zijn
|
|
9
|
+
* plek in de flow staan.
|
|
10
|
+
*
|
|
11
|
+
* Met `dismissable` beheert het component het sluiten en vuurt het nldd-close:
|
|
12
|
+
* - de gebruiker voert de geadviseerde interactie uit op het control -> close{completed}
|
|
13
|
+
* - de dismiss-knop -> close{dismissed}
|
|
14
|
+
* - een klik/toets BUITEN de coach-mark -> close{ignored}
|
|
15
|
+
* Zonder `dismissable` sluit niets vanzelf (geen knop, geen buiten- of slot-klik);
|
|
16
|
+
* dan bepaalt de consumer het sluiten zelf via `active` of `complete()`. `complete()`
|
|
17
|
+
* werkt altijd en sluit met close{completed} (bijv. pas bij een echte zoekopdracht).
|
|
18
|
+
*
|
|
19
|
+
* @element nldd-just-in-time-education
|
|
20
|
+
* @attr {boolean} active - Toon de coach-mark. App-gestuurd; standaard false.
|
|
21
|
+
* @attr {string} text - Titel van de callout.
|
|
22
|
+
* @attr {string} supporting-text - Ondersteunende tekst onder de titel.
|
|
23
|
+
* @attr {string} placement - 'auto' | 'top' | 'bottom' | 'left' | 'right' (standaard 'auto').
|
|
24
|
+
* @attr {boolean} dismissable - Toon de dismiss-knop en sta sluiten toe via 1 klik/toets buiten de coach-mark. Standaard false: dan beheert de consumer het sluiten zelf.
|
|
25
|
+
* @attr {string} arrow-length - Pijllengte en dus de afstand tussen card en control, als CSS-lengte (bijv. \`333px\`, \`30vh\`). Leeg = DS-standaard; onder 40px wordt geklemd.
|
|
26
|
+
* @attr {boolean} no-arrow - Verberg de pijl; de card staat dan dicht tegen het control.
|
|
27
|
+
*
|
|
28
|
+
* @slot - Het control waar de coach-mark naar wijst (blijft in de normale flow).
|
|
29
|
+
*
|
|
30
|
+
* @fires nldd-close - Wanneer de coach-mark sluit. detail: { reason: 'completed' | 'dismissed' | 'ignored' }.
|
|
31
|
+
*
|
|
32
|
+
* @note Rendert via de native Popover API (`popover="manual"`) in de top layer,
|
|
33
|
+
* dus het escapet ancestor stacking contexts en `overflow: hidden` clipping.
|
|
34
|
+
* Positionering via Floating UI met `position: absolute` (default strategy) +
|
|
35
|
+
* `autoUpdate`: de callout staat in de documentstroom en scrollt native mee met
|
|
36
|
+
* de pagina, dus scrollen vraagt geen herpositionering. De kant wordt bepaald uit
|
|
37
|
+
* de beschikbare ruimte (horizontaal de viewport, verticaal het hele document)
|
|
38
|
+
* bij openen en bij window-resize.
|
|
39
|
+
*
|
|
40
|
+
* @note Focus-model (dismissable): de callout is een bewust NIET-modale dialog
|
|
41
|
+
* (`role="dialog"`, geen `aria-modal`, geen focus-trap). Bij openen gaat focus
|
|
42
|
+
* erin zodat de dismiss-knop bereikbaar is en Escape sluit; Tab verlaat de callout
|
|
43
|
+
* daarna expres naar de pagina, want de coach-mark wijst naar een control dat de
|
|
44
|
+
* gebruiker moet kunnen bereiken, dus focus vasthouden zou het doel ondermijnen.
|
|
45
|
+
* Niet-dismissable gebruikt een benoemde `role="region"` (aria-label = de titel) en
|
|
46
|
+
* verplaatst focus nooit; de polite live region kondigt de tip aan.
|
|
47
|
+
*/
|
|
48
|
+
import { LitElement } from 'lit';
|
|
49
|
+
import type { PropertyValues } from 'lit';
|
|
50
|
+
import '../../actions/icon-button/icon-button.js';
|
|
51
|
+
type Placement = 'auto' | 'top' | 'bottom' | 'left' | 'right';
|
|
52
|
+
export type JustInTimeEducationCloseReason = 'completed' | 'dismissed' | 'ignored';
|
|
53
|
+
declare const NLDDJustInTimeEducation_base: (abstract new (...args: any[]) => LitElement & {
|
|
54
|
+
translations: Partial<{
|
|
55
|
+
'components.just-in-time-education.accessible-label': string;
|
|
56
|
+
'components.just-in-time-education.dismiss-action': string;
|
|
57
|
+
}>;
|
|
58
|
+
_t(key: "components.just-in-time-education.accessible-label" | "components.just-in-time-education.dismiss-action", vars?: Record<string, string | number>): string;
|
|
59
|
+
}) & typeof LitElement;
|
|
60
|
+
export declare class NLDDJustInTimeEducation extends NLDDJustInTimeEducation_base {
|
|
61
|
+
static styles: import("lit").CSSResult;
|
|
62
|
+
private static readonly _ownAttributes;
|
|
63
|
+
active: boolean;
|
|
64
|
+
text: string;
|
|
65
|
+
supportingText: string;
|
|
66
|
+
placement: Placement;
|
|
67
|
+
dismissable: boolean;
|
|
68
|
+
arrowLength: string;
|
|
69
|
+
noArrow: boolean;
|
|
70
|
+
private _cleanupAutoUpdate;
|
|
71
|
+
private _attachTimeout;
|
|
72
|
+
private _attributeObserver;
|
|
73
|
+
private _boundDocumentInteraction;
|
|
74
|
+
private _resolvedSide;
|
|
75
|
+
private _lastViewportWidth;
|
|
76
|
+
private _lastViewportHeight;
|
|
77
|
+
readonly _arrowMarkerId: string;
|
|
78
|
+
updated(changed: PropertyValues): void;
|
|
79
|
+
private get _containerEl();
|
|
80
|
+
private get _cardEl();
|
|
81
|
+
private get _announcerEl();
|
|
82
|
+
private _getControl;
|
|
83
|
+
private _getControls;
|
|
84
|
+
/** Mirror one host attribute onto the slotted control(s) — or remove it —
|
|
85
|
+
* unless the component owns that attribute. */
|
|
86
|
+
private _forwardAttribute;
|
|
87
|
+
/** Forward every non-owned host attribute to the slotted control(s); run on
|
|
88
|
+
* slotchange so a freshly slotted control catches up with what's already set. */
|
|
89
|
+
_handleSlotChange(): void;
|
|
90
|
+
private _open;
|
|
91
|
+
private _closePopover;
|
|
92
|
+
private _startPositioning;
|
|
93
|
+
private _stopPositioning;
|
|
94
|
+
private _updatePosition;
|
|
95
|
+
private _chooseSide;
|
|
96
|
+
private _updateArrow;
|
|
97
|
+
/** Route 1: the advised interaction on the slotted control (only when
|
|
98
|
+
* dismissable; otherwise the consumer drives completion via complete()).
|
|
99
|
+
* A mouse click fires pointerdown then focusin, both landing here; the
|
|
100
|
+
* !this.active guard makes the second call a no-op so 'completed' fires once. */
|
|
101
|
+
_handleAdvisedInteraction(): void;
|
|
102
|
+
/** Route 2: a click/keystroke outside the coach-mark (only when dismissable). */
|
|
103
|
+
private _handleDocumentInteraction;
|
|
104
|
+
/** Route 3: the dismiss button. */
|
|
105
|
+
_handleDismiss(): void;
|
|
106
|
+
/** Escape while focus is inside the callout dismisses it (the ARIA non-modal
|
|
107
|
+
* dialog expectation). The document capture listener (route 2) treats inside
|
|
108
|
+
* events as not-outside and bails, so Escape is handled here. stopPropagation
|
|
109
|
+
* keeps it from also closing an ancestor (e.g. a modal the coach-mark sits in). */
|
|
110
|
+
_handleCalloutKeydown(e: KeyboardEvent): void;
|
|
111
|
+
/** Programmatically mark the advised interaction as done (success close). */
|
|
112
|
+
complete(): void;
|
|
113
|
+
private _close;
|
|
114
|
+
connectedCallback(): void;
|
|
115
|
+
disconnectedCallback(): void;
|
|
116
|
+
render(): import("lit-html").TemplateResult;
|
|
117
|
+
}
|
|
118
|
+
declare global {
|
|
119
|
+
interface HTMLElementTagNameMap {
|
|
120
|
+
'nldd-just-in-time-education': NLDDJustInTimeEducation;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export {};
|
|
124
|
+
//# sourceMappingURL=just-in-time-education.d.ts.map
|
package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"just-in-time-education.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/just-in-time-education/just-in-time-education.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAQ1C,OAAO,0CAA0C,CAAC;AAElD,KAAK,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAC9D,MAAM,MAAM,8BAA8B,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;;;;;;;;AAInF,qBACa,uBAAwB,SAAQ,4BAAsG;IAClJ,OAAgB,MAAM,0BAA6B;IAOnD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAGnC;IAGH,MAAM,UAAS;IAGf,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,SAAS,EAAE,SAAS,CAAU;IAG9B,WAAW,UAAS;IAGpB,WAAW,SAAM;IAGjB,OAAO,UAAS;IAEhB,OAAO,CAAC,kBAAkB,CAA6B;IACvD,OAAO,CAAC,cAAc,CAA8C;IACpE,OAAO,CAAC,kBAAkB,CAAiC;IAC3D,OAAO,CAAC,yBAAyB,CAAoD;IACrF,OAAO,CAAC,aAAa,CAAoD;IACzE,OAAO,CAAC,kBAAkB,CAAK;IAC/B,OAAO,CAAC,mBAAmB,CAAK;IAChC,QAAQ,CAAC,cAAc,SAAsC;IAEpD,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IA2B/C,OAAO,KAAK,YAAY,GAEvB;IAED,OAAO,KAAK,OAAO,GAElB;IAED,OAAO,KAAK,YAAY,GAEvB;IAED,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,YAAY;IAKpB;oDACgD;IAChD,OAAO,CAAC,iBAAiB;IAUzB;sFACkF;IAClF,iBAAiB,IAAI,IAAI;IAIzB,OAAO,CAAC,KAAK;IA8Bb,OAAO,CAAC,aAAa;IAoBrB,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,gBAAgB;YAMV,eAAe;IAwF7B,OAAO,CAAC,WAAW;IAoBnB,OAAO,CAAC,YAAY;IAiFpB;;;sFAGkF;IAClF,yBAAyB,IAAI,IAAI;IAKjC,iFAAiF;IACjF,OAAO,CAAC,0BAA0B;IASlC,mCAAmC;IACnC,cAAc,IAAI,IAAI;IAItB;;;wFAGoF;IACpF,qBAAqB,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAM7C,6EAA6E;IAC7E,QAAQ,IAAI,IAAI;IAIhB,OAAO,CAAC,MAAM;IASL,iBAAiB,IAAI,IAAI;IAezB,oBAAoB,IAAI,IAAI;IAM5B,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,6BAA6B,EAAE,uBAAuB,CAAC;KACvD;CACD"}
|
package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.i18n.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const nlddJustInTimeEducationTranslations: {
|
|
2
|
+
'components.just-in-time-education.accessible-label': string;
|
|
3
|
+
'components.just-in-time-education.dismiss-action': string;
|
|
4
|
+
};
|
|
5
|
+
export type NLDDJustInTimeEducationTranslations = typeof nlddJustInTimeEducationTranslations;
|
|
6
|
+
//# sourceMappingURL=just-in-time-education.i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"just-in-time-education.i18n.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/just-in-time-education/just-in-time-education.i18n.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC;;;CAG/C,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAC"}
|