@nldd/design-system 0.8.78 → 0.8.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1513 -476
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +4 -1
- package/dist/components/actions/button/button.styles.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/menu/menu.d.ts +19 -1
- package/dist/components/actions/menu/menu.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.js +55 -25
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.d.ts +9 -0
- package/dist/components/actions/toolbar/toolbar.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.i18n.d.ts +1 -0
- package/dist/components/actions/toolbar/toolbar.i18n.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.i18n.js +1 -0
- package/dist/components/actions/toolbar/toolbar.i18n.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.js +20 -0
- 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 +39 -5
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.template.js +19 -1
- package/dist/components/actions/toolbar/toolbar.template.js.map +1 -1
- package/dist/components/components.js +97 -94
- package/dist/components/content/avatar/avatar.d.ts +51 -47
- package/dist/components/content/avatar/avatar.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.js +85 -75
- package/dist/components/content/avatar/avatar.js.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +2 -2
- package/dist/components/content/avatar/avatar.template.d.ts +1 -0
- package/dist/components/content/avatar/avatar.template.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.template.js +26 -18
- package/dist/components/content/avatar/avatar.template.js.map +1 -1
- package/dist/components/content/avatar-group/avatar-group.d.ts +90 -0
- package/dist/components/content/avatar-group/avatar-group.d.ts.map +1 -0
- package/dist/components/content/avatar-group/avatar-group.i18n.d.ts +6 -0
- package/dist/components/content/avatar-group/avatar-group.i18n.d.ts.map +1 -0
- package/dist/components/content/avatar-group/avatar-group.i18n.js +5 -0
- package/dist/components/content/avatar-group/avatar-group.i18n.js.map +1 -0
- package/dist/components/content/avatar-group/avatar-group.js +169 -0
- package/dist/components/content/avatar-group/avatar-group.js.map +1 -0
- package/dist/components/content/avatar-group/avatar-group.styles.d.ts +2 -0
- package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -0
- package/dist/components/content/avatar-group/avatar-group.styles.js +132 -0
- package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -0
- package/dist/components/content/avatar-group/avatar-group.template.d.ts +3 -0
- package/dist/components/content/avatar-group/avatar-group.template.d.ts.map +1 -0
- package/dist/components/content/avatar-group/avatar-group.template.js +50 -0
- package/dist/components/content/avatar-group/avatar-group.template.js.map +1 -0
- package/dist/components/content/blockquote/blockquote.d.ts +3 -3
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +8 -8
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +1 -1
- package/dist/components/content/blockquote/blockquote.template.js +1 -1
- package/dist/components/content/blockquote/blockquote.template.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts +4 -4
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +5 -13
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +18 -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 +65 -27
- 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 +16 -12
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +71 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -0
- package/dist/components/content/identity/identity.js +124 -0
- package/dist/components/content/identity/identity.js.map +1 -0
- package/dist/components/content/identity/identity.styles.d.ts +2 -0
- package/dist/components/content/identity/identity.styles.d.ts.map +1 -0
- package/dist/components/content/{byline/byline.styles.js → identity/identity.styles.js} +28 -47
- package/dist/components/content/identity/identity.styles.js.map +1 -0
- package/dist/components/content/identity/identity.template.d.ts +3 -0
- package/dist/components/content/identity/identity.template.d.ts.map +1 -0
- package/dist/components/content/{byline/byline.template.js → identity/identity.template.js} +12 -11
- package/dist/components/content/identity/identity.template.js.map +1 -0
- package/dist/components/content/tag/tag.d.ts +15 -10
- package/dist/components/content/tag/tag.d.ts.map +1 -1
- package/dist/components/content/tag/tag.js +15 -10
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/content/title/title.d.ts +4 -4
- package/dist/components/content/title/title.js +4 -4
- package/dist/components/content/title/title.styles.js +1 -1
- package/dist/components/content/title/title.template.js +2 -2
- package/dist/components/content/token/token.d.ts +6 -2
- package/dist/components/content/token/token.d.ts.map +1 -1
- package/dist/components/content/token/token.js +6 -2
- package/dist/components/content/token/token.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +26 -25
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +31 -25
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/{index-v6dIt9IT.js → index-8pDDdMeW.js} +1 -1
- package/dist/components/{index-CcCKQ3Dj.js → index-C7QocEcT.js} +1 -1
- package/dist/components/{index-BNg_kPou.js → index-CDz7-C9c.js} +1 -1
- package/dist/components/{index-CU-wlUnI.js → index-CWQunWUb.js} +54096 -52492
- package/dist/components/{index-BmVf8Da6.js → index-CoY3JfIy.js} +1 -1
- package/dist/components/{index-D03jbAoU.js → index-DP9dl7P7.js} +1 -1
- package/dist/components/{index-D68oJ-Le.js → index-DV_2YpaH.js} +1 -1
- package/dist/components/index.d.ts +4 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts +5 -0
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +8 -0
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +17 -0
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.js +11 -0
- package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +7 -0
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +7 -2
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- package/dist/components/inputs/file-field/file-field.d.ts +112 -0
- package/dist/components/inputs/file-field/file-field.d.ts.map +1 -0
- package/dist/components/inputs/file-field/file-field.i18n.d.ts +10 -0
- package/dist/components/inputs/file-field/file-field.i18n.d.ts.map +1 -0
- package/dist/components/inputs/file-field/file-field.i18n.js +9 -0
- package/dist/components/inputs/file-field/file-field.i18n.js.map +1 -0
- package/dist/components/inputs/file-field/file-field.js +246 -0
- package/dist/components/inputs/file-field/file-field.js.map +1 -0
- package/dist/components/inputs/file-field/file-field.styles.d.ts +2 -0
- package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -0
- package/dist/components/inputs/file-field/file-field.styles.js +134 -0
- package/dist/components/inputs/file-field/file-field.styles.js.map +1 -0
- package/dist/components/inputs/file-field/file-field.template.d.ts +7 -0
- package/dist/components/inputs/file-field/file-field.template.d.ts.map +1 -0
- package/dist/components/inputs/file-field/file-field.template.js +63 -0
- package/dist/components/inputs/file-field/file-field.template.js.map +1 -0
- package/dist/components/inputs/radio-button/radio-button.d.ts +5 -0
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +8 -0
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +11 -0
- package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.js +10 -0
- package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.caret.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.caret.js +7 -1
- package/dist/components/inputs/text-editor/text-editor.caret.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +0 -4
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +0 -6
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +1 -9
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/time-picker/time-picker.styles.js +7 -2
- package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +17 -7
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +17 -7
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +9 -2
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +10 -0
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +38 -0
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +10 -1
- package/dist/components/layout/container/container.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 +8 -1
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +32 -33
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +32 -33
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.js +1 -1
- package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +7 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +12 -0
- 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.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +19 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
- package/dist/components/layout/popover/popover.d.ts +34 -28
- package/dist/components/layout/popover/popover.d.ts.map +1 -1
- package/dist/components/layout/popover/popover.js +44 -31
- package/dist/components/layout/popover/popover.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +2 -0
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +12 -1
- package/dist/components/layout/sheet/sheet.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 +9 -1
- package/dist/components/lists-and-tables/cells/description-cell/description-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 +9 -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.d.ts +14 -14
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/timeline-track-cell/timeline-track-cell.js +13 -13
- 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 +13 -2
- 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 +8 -11
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +8 -10
- 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 +13 -6
- 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 +20 -16
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +44 -30
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +15 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +44 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js +3 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +23 -11
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +32 -14
- 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 +59 -2
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.template.js +6 -1
- package/dist/components/status-and-feedback/badge/badge.template.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 +6 -0
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +2 -0
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +14 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/notification/notification-region.d.ts +6 -0
- package/dist/components/status-and-feedback/notification/notification-region.d.ts.map +1 -0
- package/dist/components/status-and-feedback/notification/notification-region.js +245 -0
- package/dist/components/status-and-feedback/notification/notification-region.js.map +1 -0
- package/dist/components/status-and-feedback/notification/notification.d.ts +129 -0
- package/dist/components/status-and-feedback/notification/notification.d.ts.map +1 -0
- package/dist/components/status-and-feedback/notification/notification.i18n.d.ts +6 -0
- package/dist/components/status-and-feedback/notification/notification.i18n.d.ts.map +1 -0
- package/dist/components/status-and-feedback/notification/notification.i18n.js +5 -0
- package/dist/components/status-and-feedback/notification/notification.i18n.js.map +1 -0
- package/dist/components/status-and-feedback/notification/notification.js +269 -0
- package/dist/components/status-and-feedback/notification/notification.js.map +1 -0
- package/dist/components/status-and-feedback/notification/notification.styles.d.ts +2 -0
- package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/notification/notification.styles.js +177 -0
- package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -0
- package/dist/components/status-and-feedback/notification/notification.template.d.ts +4 -0
- package/dist/components/status-and-feedback/notification/notification.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/notification/notification.template.js +40 -0
- package/dist/components/status-and-feedback/notification/notification.template.js.map +1 -0
- 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 +1 -0
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts +30 -30
- package/dist/components/status-and-feedback/step-indicator/step-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js +33 -30
- package/dist/components/status-and-feedback/step-indicator/step-indicator.js.map +1 -1
- package/dist/css/variables.css +24 -0
- package/dist/nldd.min.js +8381 -7593
- package/dist/types/vue.d.ts +257 -152
- package/dist/utilities/open-when-rendered.d.ts +21 -0
- package/dist/utilities/open-when-rendered.d.ts.map +1 -0
- package/dist/utilities/open-when-rendered.js +30 -0
- package/dist/utilities/open-when-rendered.js.map +1 -0
- package/dist/utilities/reflect-non-default.d.ts +3 -3
- package/dist/utilities/reflect-non-default.d.ts.map +1 -1
- package/dist/utilities/reflect-non-default.js +7 -4
- package/dist/utilities/reflect-non-default.js.map +1 -1
- package/dist/utilities/visibility-mixin.d.ts +5 -0
- package/dist/utilities/visibility-mixin.d.ts.map +1 -1
- package/dist/utilities/visibility-mixin.js +22 -0
- package/dist/utilities/visibility-mixin.js.map +1 -1
- package/package.json +34 -23
- package/dist/components/content/byline/byline.d.ts +0 -73
- package/dist/components/content/byline/byline.d.ts.map +0 -1
- package/dist/components/content/byline/byline.js +0 -125
- package/dist/components/content/byline/byline.js.map +0 -1
- package/dist/components/content/byline/byline.styles.d.ts +0 -2
- package/dist/components/content/byline/byline.styles.d.ts.map +0 -1
- package/dist/components/content/byline/byline.styles.js.map +0 -1
- package/dist/components/content/byline/byline.template.d.ts +0 -3
- package/dist/components/content/byline/byline.template.d.ts.map +0 -1
- package/dist/components/content/byline/byline.template.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/container/container.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"container.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/container/container.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA+CX,KAAK;uBACL,KAAK,qBAAqB,KAAK;uBAC/B,KAAK;;4CAEgB,KAAK;4CACL,KAAK,qBAAqB,KAAK;4CAC/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA8B1B,KAAK;;;;;;;uBAOL,KAAK,qBAAqB,KAAK;;;;;;;uBAO/B,KAAK;;;;;;;4CAOgB,KAAK;;;;;;;4CAOL,KAAK,qBAAqB,KAAK;;;;;;;4CAO/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA0GvB,KAAK;;;;;;;;;;;;;;;0BAeL,KAAK,qBAAqB,KAAK;;;;;;;;;;;;;;;0BAe/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;0BAyBL,KAAK;;;;0BAIL,KAAK,qBAAqB,KAAK;;;;0BAI/B,KAAK;;;CAG9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/page/page.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"page.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/page/page.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBAgMtB,CAAC"}
|
|
@@ -75,10 +75,17 @@ export const pageStyles = css `
|
|
|
75
75
|
|
|
76
76
|
/* Root-scroll mode: no inner scroller; content-sized (flex-shrink:0) so the
|
|
77
77
|
sticky header/footer's containing block spans the whole document rather
|
|
78
|
-
than being squeezed to a definite ancestor height.
|
|
78
|
+
than being squeezed to a definite ancestor height.
|
|
79
|
+
|
|
80
|
+
Content-sized costs the page its floor, though: nested mode inherits one
|
|
81
|
+
from the pane it stretches inside, and here there is nothing to stretch in.
|
|
82
|
+
A short page would end where its content ends and leave anything after it
|
|
83
|
+
(an nldd-page-footer, say) stranded mid-viewport. The minimum restores that
|
|
84
|
+
floor without pinning: longer content still pushes past it. */
|
|
79
85
|
:host([data-scroll="root"]) .page {
|
|
80
86
|
overflow: visible;
|
|
81
87
|
flex-shrink: 0;
|
|
88
|
+
min-height: calc(100dvh - var(--context-layer-top, 0px) - var(--context-layer-bottom, 0px));
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/page/page.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"page.styles.js","sourceRoot":"","sources":["../../../../src/components/layout/page/page.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgM5B,CAAC"}
|
|
@@ -1,46 +1,45 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NLDD Design System Hero Component (Lit + TypeScript)
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* A page header with a media area and a text panel (the main) that can stand in
|
|
5
|
+
* six positions. Every area is rectangular.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `main-background="base"`
|
|
11
|
-
*
|
|
7
|
+
* With `main-width="full"` the media area sits as its own strip above or below
|
|
8
|
+
* the panel rather than behind it. On mobile the media always stacks above the
|
|
9
|
+
* full-width panel. Without media the main fills the whole area; with
|
|
10
|
+
* `main-background="base"` that area gets a border so it stays visible on the
|
|
11
|
+
* base surface.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* contrast houden.
|
|
13
|
+
* `main-background` gives the panel a surface color from the filled categories.
|
|
14
|
+
* Those carry a pure white or black content color along, so components with
|
|
15
|
+
* `color="inherit"` (title, rich-text) are guaranteed to keep their contrast.
|
|
17
16
|
*
|
|
18
17
|
* @element nldd-hero
|
|
19
18
|
*
|
|
20
19
|
* @attr {'top-left'|'top-right'|'bottom-left'|'bottom-right'|'left'|'right'} main-position -
|
|
21
|
-
*
|
|
22
|
-
* @attr {'1/2'|'2/3'|'3/4'|'full'} main-width -
|
|
23
|
-
* 'full'
|
|
24
|
-
* @attr {string} main-background -
|
|
25
|
-
*
|
|
20
|
+
* Position of the text panel (default: 'bottom-left'); 'left'/'right' span the full height
|
|
21
|
+
* @attr {'1/2'|'2/3'|'3/4'|'full'} main-width - Width of the panel (default: '1/2');
|
|
22
|
+
* 'full' makes a full top or bottom strip and is ignored with 'left'/'right'
|
|
23
|
+
* @attr {string} main-background - Surface color of the panel: 'base' (the base surface)
|
|
24
|
+
* or a category color — 'accent' (default) or a Rijkshuisstijl color such as
|
|
26
25
|
* 'lintblauw'|'donkerblauw'|'oranje'
|
|
27
|
-
* @attr {string} media-aspect-ratio - Aspect ratio
|
|
28
|
-
* default '21/9'.
|
|
29
|
-
* @attr {string} media-src -
|
|
30
|
-
*
|
|
31
|
-
* @attr {string} media-srcset - Responsive source set
|
|
32
|
-
* @attr {string} media-sizes - Source sizes
|
|
33
|
-
* @attr {string} media-alt - Alt
|
|
34
|
-
* @attr {'inherit'|'base'|'tinted'} background - Surface
|
|
35
|
-
* @attr {'inherit'|'light'|'dark'|'inverted'} scheme -
|
|
36
|
-
* @attr {string} width - Body max-width; 'full'
|
|
37
|
-
* @attr {string} height -
|
|
38
|
-
* @attr {string} padding-block -
|
|
26
|
+
* @attr {string} media-aspect-ratio - Aspect ratio of the media area (CSS form, '16/9' or '16:9');
|
|
27
|
+
* default '21/9'. On md/lg it sets the height of the hero, on sm the height of the media area
|
|
28
|
+
* @attr {string} media-src - Source of the media area (an alternative to the media slot);
|
|
29
|
+
* ignored as soon as the media slot is filled
|
|
30
|
+
* @attr {string} media-srcset - Responsive source set for media-src
|
|
31
|
+
* @attr {string} media-sizes - Source sizes hint for media-src
|
|
32
|
+
* @attr {string} media-alt - Alt text for media-src; empty means decorative
|
|
33
|
+
* @attr {'inherit'|'base'|'tinted'} background - Surface behind the hero (section API)
|
|
34
|
+
* @attr {'inherit'|'light'|'dark'|'inverted'} scheme - Color scheme (section API)
|
|
35
|
+
* @attr {string} width - Body max-width; 'full' removes the bound (section API)
|
|
36
|
+
* @attr {string} height - Minimum height of the section (section API)
|
|
37
|
+
* @attr {string} padding-block - Block padding override, also per edge and responsive (section API)
|
|
39
38
|
*
|
|
40
|
-
* @slot media -
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* @slot -
|
|
39
|
+
* @slot media - Image or illustration (img or nldd-image); fills the area and is clipped.
|
|
40
|
+
* Takes precedence over the media-src attributes. Set `alt=""` when the image is decorative;
|
|
41
|
+
* otherwise give a describing alt text.
|
|
42
|
+
* @slot - Content of the text panel (nldd-title and nldd-rich-text with color="inherit", for instance)
|
|
44
43
|
*/
|
|
45
44
|
import { LitElement, type PropertyValues } from 'lit';
|
|
46
45
|
export type HeroMainPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left' | 'right';
|
|
@@ -75,7 +74,7 @@ export declare class NLDDHero extends NLDDHero_base {
|
|
|
75
74
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
76
75
|
width: string;
|
|
77
76
|
/** Hybrid media source: media-src renders an internal <img>, but a slotted
|
|
78
|
-
* media element wins (mirrors nldd-image / nldd-
|
|
77
|
+
* media element wins (mirrors nldd-image / nldd-identity). srcset/sizes/alt
|
|
79
78
|
* feed that internal img. */
|
|
80
79
|
mediaSrc: string;
|
|
81
80
|
mediaSrcset: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAOtD,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAC5G,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAC3D,MAAM,MAAM,kBAAkB,GAC3B,MAAM,GAAG,QAAQ,GACjB,WAAW,GAAG,aAAa,GAAG,YAAY,GAAG,YAAY,GACzD,OAAO,GAAG,QAAQ,GAClB,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GACzC,YAAY,GAAG,MAAM,GACrB,aAAa,GAAG,OAAO,GACvB,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;AAEtD,qBACa,QAAS,SAAQ,aAA4B;IACzD,OAAgB,MAAM,0BAAc;IAGpC,YAAY,EAAE,gBAAgB,CAAiB;IAG/C,SAAS,EAAE,aAAa,CAAS;IAGjC,cAAc,EAAE,kBAAkB,CAAY;IAE9C;qEACiE;IAEjE,gBAAgB,SAAM;IAEtB,qEAAqE;IAErE,KAAK,SAAM;IAEX;;kCAE8B;IAE9B,QAAQ,SAAM;IAGd,WAAW,SAAM;IAGjB,UAAU,SAAM;IAGhB,QAAQ,SAAM;IAGd,aAAa,UAAS;IAEtB,sEAAsE;IACtE,IAAI,SAAS,IAAI,OAAO,CAEvB;IAEQ,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAMzC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAyB/C,4EAA4E;IAC5E,kBAAkB,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAKzB,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
|
|
@@ -7,46 +7,45 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
/**
|
|
8
8
|
* NLDD Design System Hero Component (Lit + TypeScript)
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* A page header with a media area and a text panel (the main) that can stand in
|
|
11
|
+
* six positions. Every area is rectangular.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* `main-background="base"`
|
|
17
|
-
*
|
|
13
|
+
* With `main-width="full"` the media area sits as its own strip above or below
|
|
14
|
+
* the panel rather than behind it. On mobile the media always stacks above the
|
|
15
|
+
* full-width panel. Without media the main fills the whole area; with
|
|
16
|
+
* `main-background="base"` that area gets a border so it stays visible on the
|
|
17
|
+
* base surface.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* contrast houden.
|
|
19
|
+
* `main-background` gives the panel a surface color from the filled categories.
|
|
20
|
+
* Those carry a pure white or black content color along, so components with
|
|
21
|
+
* `color="inherit"` (title, rich-text) are guaranteed to keep their contrast.
|
|
23
22
|
*
|
|
24
23
|
* @element nldd-hero
|
|
25
24
|
*
|
|
26
25
|
* @attr {'top-left'|'top-right'|'bottom-left'|'bottom-right'|'left'|'right'} main-position -
|
|
27
|
-
*
|
|
28
|
-
* @attr {'1/2'|'2/3'|'3/4'|'full'} main-width -
|
|
29
|
-
* 'full'
|
|
30
|
-
* @attr {string} main-background -
|
|
31
|
-
*
|
|
26
|
+
* Position of the text panel (default: 'bottom-left'); 'left'/'right' span the full height
|
|
27
|
+
* @attr {'1/2'|'2/3'|'3/4'|'full'} main-width - Width of the panel (default: '1/2');
|
|
28
|
+
* 'full' makes a full top or bottom strip and is ignored with 'left'/'right'
|
|
29
|
+
* @attr {string} main-background - Surface color of the panel: 'base' (the base surface)
|
|
30
|
+
* or a category color — 'accent' (default) or a Rijkshuisstijl color such as
|
|
32
31
|
* 'lintblauw'|'donkerblauw'|'oranje'
|
|
33
|
-
* @attr {string} media-aspect-ratio - Aspect ratio
|
|
34
|
-
* default '21/9'.
|
|
35
|
-
* @attr {string} media-src -
|
|
36
|
-
*
|
|
37
|
-
* @attr {string} media-srcset - Responsive source set
|
|
38
|
-
* @attr {string} media-sizes - Source sizes
|
|
39
|
-
* @attr {string} media-alt - Alt
|
|
40
|
-
* @attr {'inherit'|'base'|'tinted'} background - Surface
|
|
41
|
-
* @attr {'inherit'|'light'|'dark'|'inverted'} scheme -
|
|
42
|
-
* @attr {string} width - Body max-width; 'full'
|
|
43
|
-
* @attr {string} height -
|
|
44
|
-
* @attr {string} padding-block -
|
|
32
|
+
* @attr {string} media-aspect-ratio - Aspect ratio of the media area (CSS form, '16/9' or '16:9');
|
|
33
|
+
* default '21/9'. On md/lg it sets the height of the hero, on sm the height of the media area
|
|
34
|
+
* @attr {string} media-src - Source of the media area (an alternative to the media slot);
|
|
35
|
+
* ignored as soon as the media slot is filled
|
|
36
|
+
* @attr {string} media-srcset - Responsive source set for media-src
|
|
37
|
+
* @attr {string} media-sizes - Source sizes hint for media-src
|
|
38
|
+
* @attr {string} media-alt - Alt text for media-src; empty means decorative
|
|
39
|
+
* @attr {'inherit'|'base'|'tinted'} background - Surface behind the hero (section API)
|
|
40
|
+
* @attr {'inherit'|'light'|'dark'|'inverted'} scheme - Color scheme (section API)
|
|
41
|
+
* @attr {string} width - Body max-width; 'full' removes the bound (section API)
|
|
42
|
+
* @attr {string} height - Minimum height of the section (section API)
|
|
43
|
+
* @attr {string} padding-block - Block padding override, also per edge and responsive (section API)
|
|
45
44
|
*
|
|
46
|
-
* @slot media -
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* @slot -
|
|
45
|
+
* @slot media - Image or illustration (img or nldd-image); fills the area and is clipped.
|
|
46
|
+
* Takes precedence over the media-src attributes. Set `alt=""` when the image is decorative;
|
|
47
|
+
* otherwise give a describing alt text.
|
|
48
|
+
* @slot - Content of the text panel (nldd-title and nldd-rich-text with color="inherit", for instance)
|
|
50
49
|
*/
|
|
51
50
|
import { LitElement } from 'lit';
|
|
52
51
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
@@ -66,7 +65,7 @@ let NLDDHero = class NLDDHero extends PageSectionMixin(LitElement) {
|
|
|
66
65
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
67
66
|
this.width = '';
|
|
68
67
|
/** Hybrid media source: media-src renders an internal <img>, but a slotted
|
|
69
|
-
* media element wins (mirrors nldd-image / nldd-
|
|
68
|
+
* media element wins (mirrors nldd-image / nldd-identity). srcset/sizes/alt
|
|
70
69
|
* feed that internal img. */
|
|
71
70
|
this.mediaSrc = '';
|
|
72
71
|
this.mediaSrcset = '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"hero.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAc3C,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,gBAAgB,CAAC,UAAU,CAAC;IAAnD;;QAIN,iBAAY,GAAqB,aAAa,CAAC;QAG/C,cAAS,GAAkB,KAAK,CAAC;QAGjC,mBAAc,GAAuB,QAAQ,CAAC;QAE9C;yEACiE;QAEjE,qBAAgB,GAAG,EAAE,CAAC;QAEtB,qEAAqE;QAErE,UAAK,GAAG,EAAE,CAAC;QAEX;;sCAE8B;QAE9B,aAAQ,GAAG,EAAE,CAAC;QAGd,gBAAW,GAAG,EAAE,CAAC;QAGjB,eAAU,GAAG,EAAE,CAAC;QAGhB,aAAQ,GAAG,EAAE,CAAC;QAGd,kBAAa,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ACrC;AAGjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;4CACrC;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;0CACrC;AAGd;IADC,KAAK,EAAE;+CACc;AArCV,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAoFpB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { html, nothing } from 'lit';
|
|
2
2
|
export function heroTemplate(component) {
|
|
3
3
|
// Internal media image from media-src, only when nothing is slotted (the
|
|
4
|
-
// slot wins, mirroring nldd-image / nldd-
|
|
4
|
+
// slot wins, mirroring nldd-image / nldd-identity).
|
|
5
5
|
const mediaImage = component.mediaSrc && !component._slotHasMedia
|
|
6
6
|
? html `<img src=${component.mediaSrc}
|
|
7
7
|
srcset=${component.mediaSrcset || nothing}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.template.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAGpD,MAAM,UAAU,YAAY,CAAC,SAAmB;IAC/C,yEAAyE;IACzE,
|
|
1
|
+
{"version":3,"file":"hero.template.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAGpD,MAAM,UAAU,YAAY,CAAC,SAAmB;IAC/C,yEAAyE;IACzE,oDAAoD;IACpD,MAAM,UAAU,GAAG,SAAS,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,aAAa;QAChE,CAAC,CAAC,IAAI,CAAA,YAAY,SAAS,CAAC,QAAQ;aACzB,SAAS,CAAC,WAAW,IAAI,OAAO;YACjC,SAAS,CAAC,UAAU,IAAI,OAAO;UACjC,SAAS,CAAC,QAAQ;;;KAGvB;QACH,CAAC,CAAC,OAAO,CAAC;IACX,OAAO,IAAI,CAAA;;;;eAIG,CAAC,SAAS,CAAC,SAAS;;sCAEG,SAAS,CAAC,kBAAkB;OAC3D,UAAU;;;;;;;EAOf,CAAC;AACH,CAAC"}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
|
|
15
15
|
* @attr {'inherit'|'light'|'dark'|'inverted'} [scheme] - Color scheme ('inherit' default; 'inverted' = opposite of the surrounding page scheme).
|
|
16
16
|
* @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
|
|
17
|
+
* @attr {'left'|'center'|'right'} [horizontal-alignment] - Where the body's children sit across the body ('left' default). Use it to place something narrower than the body, such as a container with a max-width.
|
|
18
|
+
* @attr {'top'|'center'|'bottom'} [vertical-alignment] - Where the body's children sit down the section ('top' default). Only visible when the section is taller than its content.
|
|
17
19
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
18
20
|
* @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
|
|
19
21
|
* @attr {string} [padding-top] - Top padding override.
|
|
@@ -21,6 +23,8 @@
|
|
|
21
23
|
* @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
|
|
22
24
|
*/
|
|
23
25
|
import { LitElement } from 'lit';
|
|
26
|
+
type HorizontalAlignment = 'left' | 'center' | 'right';
|
|
27
|
+
type VerticalAlignment = 'top' | 'center' | 'bottom';
|
|
24
28
|
declare const NLDDSimpleSection_base: typeof LitElement & (new (...args: any[]) => LitElement & {
|
|
25
29
|
background: import("../../../../utilities/page-section-mixin.js").PageSectionBackground;
|
|
26
30
|
scheme: import("../../../../utilities/page-section-mixin.js").PageSectionScheme;
|
|
@@ -43,6 +47,9 @@ export declare class NLDDSimpleSection extends NLDDSimpleSection_base {
|
|
|
43
47
|
static styles: import("lit").CSSResult;
|
|
44
48
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
45
49
|
width: string;
|
|
50
|
+
/** Where the body's children sit; the body itself keeps its own max-width. */
|
|
51
|
+
horizontalAlignment: HorizontalAlignment;
|
|
52
|
+
verticalAlignment: VerticalAlignment;
|
|
46
53
|
updated(changedProperties: Map<string, unknown>): void;
|
|
47
54
|
render(): import("lit-html").TemplateResult;
|
|
48
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-section.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/simple-section/simple-section.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"simple-section.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/simple-section/simple-section.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAOjC,KAAK,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AACvD,KAAK,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;AAErD,qBACa,iBAAkB,SAAQ,sBAA4B;IAClE,OAAgB,MAAM,0BAAuB;IAE7C,qEAAqE;IAErE,KAAK,SAAM;IAEX,8EAA8E;IAE9E,mBAAmB,EAAE,mBAAmB,CAAU;IAGlD,iBAAiB,EAAE,iBAAiB,CAAS;IAEpC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAetD,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,qBAAqB,EAAE,iBAAiB,CAAC;KACzC;CACD"}
|
|
@@ -20,6 +20,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
20
20
|
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
|
|
21
21
|
* @attr {'inherit'|'light'|'dark'|'inverted'} [scheme] - Color scheme ('inherit' default; 'inverted' = opposite of the surrounding page scheme).
|
|
22
22
|
* @attr {string} [width] - Body max-width: 'full' removes the constraint so the section spans the full available width. Any CSS length (e.g. '480px') overrides the default max-width.
|
|
23
|
+
* @attr {'left'|'center'|'right'} [horizontal-alignment] - Where the body's children sit across the body ('left' default). Use it to place something narrower than the body, such as a container with a max-width.
|
|
24
|
+
* @attr {'top'|'center'|'bottom'} [vertical-alignment] - Where the body's children sit down the section ('top' default). Only visible when the section is taller than its content.
|
|
23
25
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
24
26
|
* @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
|
|
25
27
|
* @attr {string} [padding-top] - Top padding override.
|
|
@@ -29,6 +31,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
29
31
|
import { LitElement } from 'lit';
|
|
30
32
|
import { customElement, property } from 'lit/decorators.js';
|
|
31
33
|
import { PageSectionMixin } from '../../../../utilities/page-section-mixin.js';
|
|
34
|
+
import { reflectNonDefault } from '../../../../utilities/reflect-non-default.js';
|
|
32
35
|
import { simpleSectionStyles } from './simple-section.styles.js';
|
|
33
36
|
import { simpleSectionTemplate } from './simple-section.template.js';
|
|
34
37
|
let NLDDSimpleSection = class NLDDSimpleSection extends PageSectionMixin(LitElement) {
|
|
@@ -36,6 +39,9 @@ let NLDDSimpleSection = class NLDDSimpleSection extends PageSectionMixin(LitElem
|
|
|
36
39
|
super(...arguments);
|
|
37
40
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
38
41
|
this.width = '';
|
|
42
|
+
/** Where the body's children sit; the body itself keeps its own max-width. */
|
|
43
|
+
this.horizontalAlignment = 'left';
|
|
44
|
+
this.verticalAlignment = 'top';
|
|
39
45
|
}
|
|
40
46
|
updated(changedProperties) {
|
|
41
47
|
super.updated(changedProperties);
|
|
@@ -60,6 +66,12 @@ NLDDSimpleSection.styles = simpleSectionStyles;
|
|
|
60
66
|
__decorate([
|
|
61
67
|
property({ type: String, reflect: true })
|
|
62
68
|
], NLDDSimpleSection.prototype, "width", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
property({ reflect: true, attribute: 'horizontal-alignment', converter: reflectNonDefault('left') })
|
|
71
|
+
], NLDDSimpleSection.prototype, "horizontalAlignment", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
property({ reflect: true, attribute: 'vertical-alignment', converter: reflectNonDefault('top') })
|
|
74
|
+
], NLDDSimpleSection.prototype, "verticalAlignment", void 0);
|
|
63
75
|
NLDDSimpleSection = __decorate([
|
|
64
76
|
customElement('nldd-simple-section')
|
|
65
77
|
], NLDDSimpleSection);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-section.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/simple-section/simple-section.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"simple-section.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/simple-section/simple-section.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO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EAAE,SAAS,EAAE,iBAAiB,CAAoB,KAAK,CAAC,EAAE,CAAC;4DACxE;AAZjC,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAgC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-section.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/simple-section/simple-section.styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"simple-section.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/simple-section/simple-section.styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,yBAgI/B,CAAC"}
|
|
@@ -46,6 +46,25 @@ export const simpleSectionStyles = css `
|
|
|
46
46
|
--_max-width: none;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/* On the main rather than the body: the body also holds the header and the
|
|
50
|
+
footer, and the children land in the main. It is a flex column, so down the
|
|
51
|
+
section is the main axis and across it is the cross axis. */
|
|
52
|
+
:host([vertical-alignment="center"]) .simple-section__main {
|
|
53
|
+
justify-content: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host([vertical-alignment="bottom"]) .simple-section__main {
|
|
57
|
+
justify-content: flex-end;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host([horizontal-alignment="center"]) .simple-section__main {
|
|
61
|
+
align-items: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([horizontal-alignment="right"]) .simple-section__main {
|
|
65
|
+
align-items: flex-end;
|
|
66
|
+
}
|
|
67
|
+
|
|
49
68
|
|
|
50
69
|
/* # Block */
|
|
51
70
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-section.styles.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/simple-section/simple-section.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAEvE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"simple-section.styles.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/simple-section/simple-section.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAEvE,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyEX,KAAK;;;;;;2BAML,KAAK,qBAAqB,KAAK;;;;;;2BAM/B,KAAK;;;;;;;;;;;;;;;;;2BAiBL,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;;;;;;;CAkB/B,CAAC"}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Nederlandse Digitale Dienst Popover Component (Lit + TypeScript)
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* A non-modal floating panel anchored to a trigger element. Built on the native
|
|
5
|
+
* Popover API (popover="auto") with Floating UI for positioning. The browser
|
|
6
|
+
* handles opening, toggling and light dismiss; this component only handles
|
|
7
|
+
* positioning and focus.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
9
|
+
* The recommended use is through popovertarget, so the browser owns the toggle:
|
|
10
10
|
*
|
|
11
11
|
* <nldd-button id="info-trigger" popovertarget="info-popover">Info</nldd-button>
|
|
12
12
|
* <nldd-popover id="info-popover" anchor="info-trigger" accessible-label="Info">
|
|
13
13
|
* <nldd-container>
|
|
14
|
-
* <p>
|
|
14
|
+
* <p>Content of the popover.</p>
|
|
15
15
|
* </nldd-container>
|
|
16
16
|
* </nldd-popover>
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
18
|
+
* For a custom focus target inside the popover, put `autofocus` on the child you
|
|
19
|
+
* want. Without it the popover host itself takes focus.
|
|
20
20
|
*
|
|
21
21
|
* @element nldd-popover
|
|
22
22
|
*
|
|
23
|
-
* @attr {string} anchor - ID
|
|
23
|
+
* @attr {string} anchor - ID of the trigger element, used for positioning
|
|
24
24
|
* @attr {string} placement - Floating UI placement (default: 'bottom-start')
|
|
25
|
-
* @attr {string} width -
|
|
26
|
-
* @attr {string} top - CSS top
|
|
27
|
-
* @attr {string} left - CSS left
|
|
28
|
-
* @attr {string} right - CSS right
|
|
29
|
-
* @attr {string} bottom - CSS bottom
|
|
30
|
-
* @attr {boolean} centered -
|
|
31
|
-
* @attr {boolean} sm-full-height -
|
|
32
|
-
* @attr {string} accessible-label - (
|
|
33
|
-
* @attr {string} role - ARIA role (default: 'dialog').
|
|
34
|
-
* @attr {object} translations - Override translation keys; unset keys
|
|
25
|
+
* @attr {string} width - Width as a CSS length (default: 320px through --components-popover-default-width). A content-based size (`fit-content`, `min-content`, `max-content`, `auto`) is refused: the popover is an inline-size container so slotted components can adapt to it, and its width cannot then come from that same content. Such a value is ignored, with a warning in DEV.
|
|
26
|
+
* @attr {string} top - CSS top position. When set (on its own, or together with other edge attributes or `centered`) Floating UI's anchor positioning is skipped and the popover stands free on the screen. The `anchor` is still needed for the ARIA link on the trigger. No effect on sm, where the bottom sheet wins.
|
|
27
|
+
* @attr {string} left - CSS left position. See `top` for the semantics.
|
|
28
|
+
* @attr {string} right - CSS right position. See `top` for the semantics.
|
|
29
|
+
* @attr {string} bottom - CSS bottom position. See `top` for the semantics.
|
|
30
|
+
* @attr {boolean} centered - Centers both axes on the viewport. Overridable per axis: `centered top="0"` is centered horizontally, aligned to the top. Mirrors CSS `place-items: center` with `align-items`/`justify-items` overrides.
|
|
31
|
+
* @attr {boolean} sm-full-height - On an sm viewport (where the popover renders as a bottom sheet) fills the whole available height instead of shrinking to its content. No effect on md and up (anchored mode). Opt-in for content-heavy cases such as search results or long detail views; content-sized is the default, following the Apple and Material convention.
|
|
32
|
+
* @attr {string} accessible-label - (required) Accessible name (aria-label). Falls back to the i18n default ('Popover') when unset — always give a unique, describing name.
|
|
33
|
+
* @attr {string} role - ARIA role (default: 'dialog'). For informational content (a tooltip callout, a rich-text help panel) without a dialog interaction pattern, set `role="region"`. For menu-style triggers, `role="menu"` plus `aria-haspopup="menu"` on the anchor. The popover never overwrites a role that was set explicitly.
|
|
34
|
+
* @attr {object} translations - Override translation keys; unset keys fall back to the Dutch default.
|
|
35
35
|
*
|
|
36
|
-
* @prop {Element|null} anchorElement -
|
|
37
|
-
* @prop {boolean} open - (read-only)
|
|
36
|
+
* @prop {Element|null} anchorElement - Programmatic anchor (takes precedence over the anchor attribute)
|
|
37
|
+
* @prop {boolean} open - (read-only) Whether the popover is open right now
|
|
38
38
|
*
|
|
39
|
-
* @slot -
|
|
39
|
+
* @slot - Free content (an nldd-container with a form or info, for instance)
|
|
40
40
|
*
|
|
41
|
-
* @fires open -
|
|
42
|
-
* @fires close -
|
|
41
|
+
* @fires open - When the popover opens
|
|
42
|
+
* @fires close - When the popover closes
|
|
43
43
|
*
|
|
44
|
-
* @method show() -
|
|
45
|
-
* @method hide() -
|
|
46
|
-
* @method toggle() -
|
|
47
|
-
* @method reposition() -
|
|
44
|
+
* @method show() - Opens the popover
|
|
45
|
+
* @method hide() - Closes the popover
|
|
46
|
+
* @method toggle() - Toggles the popover
|
|
47
|
+
* @method reposition() - Recalculates the position relative to the anchor
|
|
48
48
|
*/
|
|
49
49
|
import { LitElement, PropertyValues } from 'lit';
|
|
50
50
|
import { type Placement } from '@floating-ui/dom';
|
|
@@ -77,6 +77,12 @@ export declare class NLDDPopover extends LitElement {
|
|
|
77
77
|
private _wasOnSm;
|
|
78
78
|
private _previousAnchorEl;
|
|
79
79
|
get open(): boolean;
|
|
80
|
+
/** Widths that come from the content instead of from a length. The popover is
|
|
81
|
+
* an inline-size query container so slotted components can adapt to it, and
|
|
82
|
+
* containment exists precisely to forbid a box from depending on its own
|
|
83
|
+
* contents in that axis. CSS resolves the cycle by making the box zero wide,
|
|
84
|
+
* which is invisible on screen and hard to trace back; better to say no. */
|
|
85
|
+
private static readonly CONTENT_WIDTHS;
|
|
80
86
|
connectedCallback(): void;
|
|
81
87
|
disconnectedCallback(): void;
|
|
82
88
|
updated(changed: PropertyValues): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/popover/popover.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAEjD,OAAO,EAAkD,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlG,OAAO,EAA2B,KAAK,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AA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