@nldd/design-system 0.8.96 → 0.8.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -10
- package/custom-elements.json +528 -107
- package/dist/components/components.js +894 -267
- package/dist/components/content/code-viewer/code-viewer.d.ts +4 -1
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.js +43 -5
- package/dist/components/content/code-viewer/code-viewer.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 +11 -0
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +1 -0
- package/dist/components/content/code-viewer/code-viewer.template.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-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +15 -4
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.js +12 -12
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/image/image.d.ts +19 -3
- package/dist/components/content/image/image.d.ts.map +1 -1
- package/dist/components/content/image/image.js +25 -4
- package/dist/components/content/image/image.js.map +1 -1
- package/dist/components/content/image/image.styles.d.ts.map +1 -1
- package/dist/components/content/image/image.styles.js +36 -0
- package/dist/components/content/image/image.styles.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +13 -1
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +25 -12
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +25 -12
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +7 -0
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +29 -2
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/{dist-CH9m014O.js → dist-B2QcygzG.js} +1 -1
- package/dist/components/{dist-DMHTTJRJ.js → dist-BB5mlo7D.js} +2 -2
- package/dist/components/{dist-C3uWRipu.js → dist-Bo5Jeyfn.js} +1 -1
- package/dist/components/{dist-CpW8MF-L.js → dist-Bud_7w5g.js} +232 -214
- package/dist/components/{dist-CvL6_ezZ.js → dist-CA0yDFIt.js} +2 -2
- package/dist/components/{dist-DV6Mp5N1.js → dist-CaxHkqR2.js} +3 -3
- package/dist/components/{dist-BWRYv3Mp.js → dist-Ch3gNAuT.js} +1 -1
- package/dist/components/{dist-PlhQXXtE.js → dist-DbNhCpS5.js} +1 -1
- package/dist/components/{dist-DTOshgo1.js → dist-DkqAbJH8.js} +1 -1
- package/dist/components/{dist-BWEAw34D.js → dist-DnZmcpbQ.js} +1 -1
- package/dist/components/{dist-Bi4EHsFY.js → dist-iC2RTM0V.js} +2 -2
- package/dist/components/forms/validation-list/validation-list.d.ts +19 -9
- package/dist/components/forms/validation-list/validation-list.d.ts.map +1 -1
- package/dist/components/forms/validation-list/validation-list.js +38 -12
- package/dist/components/forms/validation-list/validation-list.js.map +1 -1
- package/dist/components/{icon-DQHT2C7z.js → icon-D_ZGezHx.js} +13 -13
- package/dist/components/{icon-button-mevRsl4C.js → icon-button-CJIikwyu.js} +16 -3
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +1 -4
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +1 -4
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +1 -1
- package/dist/components/layout/box/box.js +1 -1
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +2 -1
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +9 -3
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +36 -13
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.js +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +2 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +3 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +5 -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 +57 -11
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.js +158 -15
- 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 +95 -41
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +4 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +8 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +13 -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.d.ts +4 -0
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +8 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +17 -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/page-section-controls.d.ts +11 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.js +11 -2
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +5 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +6 -2
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +13 -10
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js +6 -6
- package/dist/components/layout/page-sections/sidebar-section/sidebar-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +2 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +3 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +2 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +4 -0
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +8 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +17 -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/sheet/sheet.js +1 -1
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/{app-view/app-view.d.ts → shell/shell.d.ts} +11 -11
- package/dist/components/layout/shell/shell.d.ts.map +1 -0
- package/dist/components/layout/{app-view/app-view.js → shell/shell.js} +24 -24
- package/dist/components/layout/shell/shell.js.map +1 -0
- package/dist/components/layout/shell/shell.styles.d.ts +2 -0
- package/dist/components/layout/shell/shell.styles.d.ts.map +1 -0
- package/dist/components/layout/{app-view/app-view.styles.js → shell/shell.styles.js} +8 -8
- package/dist/components/layout/shell/shell.styles.js.map +1 -0
- package/dist/components/layout/shell/shell.template.d.ts +4 -0
- package/dist/components/layout/shell/shell.template.d.ts.map +1 -0
- package/dist/components/layout/shell/shell.template.js +9 -0
- package/dist/components/layout/shell/shell.template.js.map +1 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +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 +2 -0
- package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +2 -0
- 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 +6 -1
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +7 -2
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +31 -6
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +55 -11
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +7 -6
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +4 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +8 -2
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar/menu-bar.js +19 -2
- package/dist/components/navigation/menu-bar/menu-bar.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +7 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +15 -3
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +12 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts +1 -0
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +55 -40
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.d.ts +50 -4
- package/dist/components/navigation/skip-link/skip-link.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.js +140 -13
- package/dist/components/navigation/skip-link/skip-link.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.template.js +1 -0
- package/dist/components/navigation/skip-link/skip-link.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +8 -1
- 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 +9 -2
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +10 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +21 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/css/document-reset.css +3 -3
- package/dist/css/rich-text.css +36 -90
- package/dist/nldd.min.js +912 -736
- package/dist/types/vue.d.ts +85 -38
- package/dist/utilities/page-section-mixin.d.ts +5 -0
- package/dist/utilities/page-section-mixin.d.ts.map +1 -1
- package/dist/utilities/page-section-mixin.js +10 -1
- package/dist/utilities/page-section-mixin.js.map +1 -1
- package/dist/utilities/scroll-mode-controller.d.ts +29 -13
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +48 -13
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/package.json +5 -5
- package/dist/components/layout/app-view/app-view.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.js.map +0 -1
- package/dist/components/layout/app-view/app-view.styles.d.ts +0 -2
- package/dist/components/layout/app-view/app-view.styles.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.styles.js.map +0 -1
- package/dist/components/layout/app-view/app-view.template.d.ts +0 -4
- package/dist/components/layout/app-view/app-view.template.d.ts.map +0 -1
- package/dist/components/layout/app-view/app-view.template.js +0 -9
- package/dist/components/layout/app-view/app-view.template.js.map +0 -1
- package/dist/components/palettes.html +0 -245
- package/dist/components/sample-images/butterfly-1200.jpg +0 -0
- package/dist/components/sample-images/butterfly-1600.jpg +0 -0
- package/dist/components/sample-images/butterfly-480.jpg +0 -0
- package/dist/components/sample-images/butterfly-960.jpg +0 -0
- package/dist/palettes.html +0 -245
- package/dist/sample-images/butterfly-1200.jpg +0 -0
- package/dist/sample-images/butterfly-1600.jpg +0 -0
- package/dist/sample-images/butterfly-480.jpg +0 -0
- package/dist/sample-images/butterfly-960.jpg +0 -0
|
@@ -28,10 +28,19 @@ export const heroStyles = css `
|
|
|
28
28
|
--_hero-lg-padding-bottom: initial;
|
|
29
29
|
--_hero-max-width: var(--semantics-page-sections-body-max-width);
|
|
30
30
|
--_hero-media-aspect-ratio: 21 / 9;
|
|
31
|
-
--_hero-
|
|
31
|
+
--_hero-media-height: auto;
|
|
32
|
+
--_hero-main-min-width: var(--primitives-area-480);
|
|
33
|
+
--_hero-main-max-width: var(--primitives-area-640);
|
|
34
|
+
--_hero-main-width: auto;
|
|
32
35
|
--_hero-main-background-color: var(--semantics-categories-accent-reference-background-color);
|
|
33
36
|
--_hero-main-content-color: var(--semantics-categories-accent-reference-content-color);
|
|
34
37
|
--_hero-main-padding: var(--primitives-space-16);
|
|
38
|
+
--_hero-main-inset: var(--primitives-space-0);
|
|
39
|
+
--_hero-sm-main-inset: var(--semantics-page-sections-sm-gap);
|
|
40
|
+
--_hero-sm-main-overlap: var(--primitives-space-48);
|
|
41
|
+
--_hero-overlap-size: initial;
|
|
42
|
+
--_hero-default-overlap-size: var(--primitives-space-0);
|
|
43
|
+
--_hero-default-media-height: auto;
|
|
35
44
|
|
|
36
45
|
${inheritedTextReset}
|
|
37
46
|
display: flex;
|
|
@@ -44,8 +53,8 @@ export const heroStyles = css `
|
|
|
44
53
|
display: none;
|
|
45
54
|
}
|
|
46
55
|
|
|
47
|
-
:host(
|
|
48
|
-
:host(
|
|
56
|
+
:host([data-growing]),
|
|
57
|
+
:host([grow]) {
|
|
49
58
|
flex-grow: 1;
|
|
50
59
|
}
|
|
51
60
|
|
|
@@ -53,18 +62,6 @@ export const heroStyles = css `
|
|
|
53
62
|
--_hero-max-width: none;
|
|
54
63
|
}
|
|
55
64
|
|
|
56
|
-
:host([main-width="2/3"]) {
|
|
57
|
-
--_hero-main-width: 66.667%;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:host([main-width="3/4"]) {
|
|
61
|
-
--_hero-main-width: 75%;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
:host([main-width="full"]) {
|
|
65
|
-
--_hero-main-width: 100%;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
65
|
:host([main-background="base"]) {
|
|
69
66
|
--_hero-main-background-color: var(--semantics-surfaces-base-background-color);
|
|
70
67
|
--_hero-main-content-color: var(--semantics-content-color);
|
|
@@ -177,21 +174,27 @@ export const heroStyles = css `
|
|
|
177
174
|
|
|
178
175
|
@container (max-width: ${smMax}) {
|
|
179
176
|
padding-inline: var(--semantics-page-sections-sm-margin-inline);
|
|
180
|
-
padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top, var(--semantics-page-sections-sm-margin-block)));
|
|
177
|
+
padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-sm-margin-block) / 2)));
|
|
181
178
|
padding-bottom: var(--_hero-sm-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-sm-margin-block)));
|
|
182
179
|
}
|
|
183
180
|
|
|
184
181
|
@container (min-width: ${mdMin}) and (max-width: ${mdMax}) {
|
|
185
182
|
--_hero-main-padding: var(--primitives-space-24);
|
|
183
|
+
--_hero-main-inset: var(--semantics-page-sections-md-gap);
|
|
184
|
+
--_hero-default-overlap-size: var(--primitives-area-160);
|
|
185
|
+
--_hero-default-media-height: var(--primitives-area-320);
|
|
186
186
|
padding-inline: var(--semantics-page-sections-md-margin-inline);
|
|
187
|
-
padding-top: var(--_hero-md-padding-top, var(--_hero-padding-top, var(--semantics-page-sections-md-margin-block)));
|
|
187
|
+
padding-top: var(--_hero-md-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-md-margin-block) / 2)));
|
|
188
188
|
padding-bottom: var(--_hero-md-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-md-margin-block)));
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
@container (min-width: ${lgMin}) {
|
|
192
192
|
--_hero-main-padding: var(--primitives-space-32);
|
|
193
|
+
--_hero-main-inset: var(--semantics-page-sections-lg-gap);
|
|
194
|
+
--_hero-default-overlap-size: var(--primitives-area-160);
|
|
195
|
+
--_hero-default-media-height: var(--primitives-area-400);
|
|
193
196
|
padding-inline: var(--semantics-page-sections-lg-margin-inline);
|
|
194
|
-
padding-top: var(--_hero-lg-padding-top, var(--_hero-padding-top, var(--semantics-page-sections-lg-margin-block)));
|
|
197
|
+
padding-top: var(--_hero-lg-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-lg-margin-block) / 2)));
|
|
195
198
|
padding-bottom: var(--_hero-lg-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-lg-margin-block)));
|
|
196
199
|
}
|
|
197
200
|
}
|
|
@@ -207,13 +210,16 @@ export const heroStyles = css `
|
|
|
207
210
|
.hero__body {
|
|
208
211
|
display: grid;
|
|
209
212
|
position: relative;
|
|
210
|
-
background-color: var(--_hero-main-background-color);
|
|
211
213
|
width: 100%;
|
|
212
214
|
max-width: var(--_hero-max-width);
|
|
213
215
|
flex-grow: 1;
|
|
214
216
|
grid-template-columns: 100%;
|
|
215
217
|
}
|
|
216
218
|
|
|
219
|
+
:host(:not([data-has-media])) .hero__body {
|
|
220
|
+
background-color: var(--_hero-main-background-color);
|
|
221
|
+
}
|
|
222
|
+
|
|
217
223
|
/* Without media a base-colored panel would be invisible on the base surface;
|
|
218
224
|
give it a full border so the rectangle reads. */
|
|
219
225
|
:host(:not([data-has-media])[main-background="base"]) .hero__body {
|
|
@@ -226,9 +232,10 @@ export const heroStyles = css `
|
|
|
226
232
|
(instead of aspect-ratio on the body) keeps growth content-driven
|
|
227
233
|
rather than rigidly tied to the width. align-self: start stops the
|
|
228
234
|
stretch fit from cancelling the ratio. */
|
|
229
|
-
:host([data-has-media]
|
|
235
|
+
:host([data-has-media]) .hero__body::before {
|
|
230
236
|
@container (min-width: ${mdMin}) {
|
|
231
237
|
content: '';
|
|
238
|
+
height: var(--_hero-media-height);
|
|
232
239
|
aspect-ratio: var(--_hero-media-aspect-ratio);
|
|
233
240
|
grid-area: 1 / 1;
|
|
234
241
|
align-self: start;
|
|
@@ -262,7 +269,11 @@ export const heroStyles = css `
|
|
|
262
269
|
object-fit: cover !important;
|
|
263
270
|
}
|
|
264
271
|
|
|
272
|
+
/* Two heights: the host fills the media area, and the variable makes the
|
|
273
|
+
image inside the host fill the host. Without either one it collapses. */
|
|
265
274
|
.hero__media ::slotted(nldd-image) {
|
|
275
|
+
--context-image-height: 100%;
|
|
276
|
+
|
|
266
277
|
display: block !important;
|
|
267
278
|
width: 100% !important;
|
|
268
279
|
height: 100% !important;
|
|
@@ -291,7 +302,9 @@ export const heroStyles = css `
|
|
|
291
302
|
align-self: end;
|
|
292
303
|
justify-self: start;
|
|
293
304
|
background-color: var(--_hero-main-background-color);
|
|
294
|
-
width:
|
|
305
|
+
width: fit-content;
|
|
306
|
+
min-width: min(var(--_hero-main-min-width), 100% - 2 * var(--_hero-main-inset));
|
|
307
|
+
max-width: min(var(--_hero-main-max-width), 100% - 2 * var(--_hero-main-inset));
|
|
295
308
|
padding: var(--_hero-main-padding);
|
|
296
309
|
flex-direction: column;
|
|
297
310
|
color: var(--_hero-main-content-color);
|
|
@@ -299,6 +312,26 @@ export const heroStyles = css `
|
|
|
299
312
|
|
|
300
313
|
:host(:not([data-has-media])) .hero__main {
|
|
301
314
|
width: 100%;
|
|
315
|
+
min-width: 0;
|
|
316
|
+
max-width: none;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
:host([data-has-media]) .hero__main {
|
|
320
|
+
margin: var(--_hero-main-inset);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
:host([data-has-media][data-main-width-length]) .hero__main {
|
|
324
|
+
@container (min-width: ${mdMin}) {
|
|
325
|
+
width: var(--_hero-main-width);
|
|
326
|
+
min-width: 0;
|
|
327
|
+
max-width: calc(100% - 2 * var(--_hero-main-inset));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
:host([data-has-media][main-width="full"]) .hero__main {
|
|
332
|
+
width: auto;
|
|
333
|
+
max-width: none;
|
|
334
|
+
justify-self: stretch;
|
|
302
335
|
}
|
|
303
336
|
|
|
304
337
|
:host([main-position="top-left"]) .hero__main {
|
|
@@ -314,6 +347,15 @@ export const heroStyles = css `
|
|
|
314
347
|
justify-self: end;
|
|
315
348
|
}
|
|
316
349
|
|
|
350
|
+
:host([main-position="bottom-center"]) .hero__main {
|
|
351
|
+
justify-self: center;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
:host([main-position="top-center"]) .hero__main {
|
|
355
|
+
align-self: start;
|
|
356
|
+
justify-self: center;
|
|
357
|
+
}
|
|
358
|
+
|
|
317
359
|
:host([main-position="left"]) .hero__main {
|
|
318
360
|
align-self: stretch;
|
|
319
361
|
}
|
|
@@ -330,32 +372,38 @@ export const heroStyles = css `
|
|
|
330
372
|
}
|
|
331
373
|
|
|
332
374
|
|
|
333
|
-
/* #
|
|
334
|
-
|
|
335
|
-
media stacks on the opposite side instead of sitting behind it. Switch the
|
|
336
|
-
body to a column so the two blocks stack: a bottom panel keeps the media on
|
|
337
|
-
top, a top panel (column-reverse) drops it below. The media keeps the
|
|
338
|
-
overlay's 21/9 strip. Below sm every layout already stacks, so this only
|
|
339
|
-
targets md and up. */
|
|
375
|
+
/* # Overlap (md+) — the media keeps a fixed height; the panel sits in the
|
|
376
|
+
row below it, pulled up over it by the overlap size. */
|
|
340
377
|
|
|
341
378
|
@container (min-width: ${mdMin}) {
|
|
342
|
-
:host([data-has-media][
|
|
343
|
-
|
|
344
|
-
|
|
379
|
+
:host([data-has-media]:not([layout="contained"])) .hero__body::before {
|
|
380
|
+
content: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
:host([data-has-media]:not([layout="contained"])) .hero__media {
|
|
384
|
+
position: relative;
|
|
385
|
+
width: 100%;
|
|
386
|
+
height: var(--_hero-media-height);
|
|
387
|
+
aspect-ratio: var(--_hero-media-aspect-ratio);
|
|
388
|
+
grid-area: 1 / 1;
|
|
389
|
+
align-self: start;
|
|
345
390
|
}
|
|
346
391
|
|
|
347
|
-
:host([data-has-media][
|
|
348
|
-
|
|
392
|
+
:host([data-has-media]:not([layout="contained"]):not([media-height], [media-aspect-ratio])) .hero__media {
|
|
393
|
+
height: var(--_hero-default-media-height);
|
|
349
394
|
}
|
|
350
395
|
|
|
351
|
-
:host([data-has-media][
|
|
352
|
-
|
|
353
|
-
|
|
396
|
+
:host([data-has-media]:not([layout="contained"])) .hero__main {
|
|
397
|
+
margin-top: calc(-1 * var(--_hero-overlap-size, var(--_hero-default-overlap-size)));
|
|
398
|
+
margin-bottom: 0;
|
|
399
|
+
grid-area: 2 / 1;
|
|
400
|
+
align-self: start;
|
|
354
401
|
}
|
|
355
402
|
}
|
|
356
403
|
|
|
357
404
|
|
|
358
|
-
/* # Mobile —
|
|
405
|
+
/* # Mobile — the media on top, the panel below it, indented and overlapping
|
|
406
|
+
it a little. */
|
|
359
407
|
|
|
360
408
|
@container (max-width: ${smMax}) {
|
|
361
409
|
.hero__body {
|
|
@@ -363,18 +411,24 @@ export const heroStyles = css `
|
|
|
363
411
|
flex-direction: column;
|
|
364
412
|
}
|
|
365
413
|
|
|
366
|
-
:host(:is([main-position="top-left"], [main-position="top-right"])) .hero__body {
|
|
367
|
-
flex-direction: column-reverse;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
414
|
.hero__media {
|
|
371
415
|
position: static;
|
|
416
|
+
width: 100%;
|
|
417
|
+
height: var(--_hero-media-height);
|
|
372
418
|
overflow: hidden;
|
|
373
419
|
aspect-ratio: var(--_hero-media-aspect-ratio);
|
|
374
420
|
}
|
|
375
421
|
|
|
376
422
|
.hero__main {
|
|
377
423
|
width: 100%;
|
|
424
|
+
min-width: 0;
|
|
425
|
+
max-width: none;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
:host([data-has-media]) .hero__main {
|
|
429
|
+
margin: calc(-1 * var(--_hero-sm-main-overlap)) var(--_hero-sm-main-inset) 0;
|
|
430
|
+
width: auto;
|
|
431
|
+
align-self: stretch;
|
|
378
432
|
}
|
|
379
433
|
}
|
|
380
434
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hero.styles.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAE9F,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,UAAU,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"hero.styles.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/hero/hero.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAE9F,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,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqCzB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkIK,KAAK;;;;;;2BAML,KAAK,qBAAqB,KAAK;;;;;;;;;;2BAU/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA6CL,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6B5B,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA2DW,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAsDN,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA8BL,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B9B,CAAC"}
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
|
|
11
11
|
* @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.
|
|
12
12
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
13
|
+
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
13
14
|
* @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
|
|
14
15
|
* @attr {string} [padding-top] - Top padding override.
|
|
15
16
|
* @attr {string} [padding-bottom] - Bottom padding override.
|
|
16
17
|
* @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
|
|
18
|
+
* @attr {'top'|'center'|'bottom'} [vertical-alignment] - Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other.
|
|
17
19
|
*
|
|
18
20
|
* @slot header - Content above the columns
|
|
19
21
|
* @slot - Left column (1/2), alternative for slot="left"
|
|
@@ -37,12 +39,14 @@ declare const NLDDOneHalfOneHalfSection_base: typeof LitElement & (new (...args:
|
|
|
37
39
|
lgPaddingTop?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
38
40
|
lgPaddingBottom?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
39
41
|
height?: string;
|
|
42
|
+
grow: boolean;
|
|
40
43
|
_onSlotChange(e: Event): void;
|
|
41
44
|
});
|
|
42
45
|
export declare class NLDDOneHalfOneHalfSection extends NLDDOneHalfOneHalfSection_base {
|
|
43
46
|
static styles: import("lit").CSSResult;
|
|
44
47
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
45
48
|
width: string;
|
|
49
|
+
verticalAlignment: 'top' | 'center' | 'bottom';
|
|
46
50
|
updated(changedProperties: Map<string, unknown>): void;
|
|
47
51
|
render(): import("lit-html").TemplateResult;
|
|
48
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-half-one-half-section.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"one-half-one-half-section.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;AAOjC,qBACa,yBAA0B,SAAQ,8BAA4B;IAC1E,OAAgB,MAAM,0BAA+B;IAErD,qEAAqE;IAErE,KAAK,SAAM;IAGX,iBAAiB,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAS;IAE9C,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAetD,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gCAAgC,EAAE,yBAAyB,CAAC;KAC5D;CACD"}
|
package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js
CHANGED
|
@@ -16,10 +16,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
16
16
|
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
|
|
17
17
|
* @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.
|
|
18
18
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
19
|
+
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
19
20
|
* @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
|
|
20
21
|
* @attr {string} [padding-top] - Top padding override.
|
|
21
22
|
* @attr {string} [padding-bottom] - Bottom padding override.
|
|
22
23
|
* @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
|
|
24
|
+
* @attr {'top'|'center'|'bottom'} [vertical-alignment] - Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other.
|
|
23
25
|
*
|
|
24
26
|
* @slot header - Content above the columns
|
|
25
27
|
* @slot - Left column (1/2), alternative for slot="left"
|
|
@@ -29,6 +31,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
29
31
|
*/
|
|
30
32
|
import { LitElement } from 'lit';
|
|
31
33
|
import { customElement, property } from 'lit/decorators.js';
|
|
34
|
+
import { reflectNonDefault } from '../../../../utilities/reflect-non-default.js';
|
|
32
35
|
import { PageSectionMixin } from '../../../../utilities/page-section-mixin.js';
|
|
33
36
|
import { oneHalfOneHalfSectionStyles } from './one-half-one-half-section.styles.js';
|
|
34
37
|
import { oneHalfOneHalfSectionTemplate } from './one-half-one-half-section.template.js';
|
|
@@ -37,6 +40,7 @@ let NLDDOneHalfOneHalfSection = class NLDDOneHalfOneHalfSection extends PageSect
|
|
|
37
40
|
super(...arguments);
|
|
38
41
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
39
42
|
this.width = '';
|
|
43
|
+
this.verticalAlignment = 'top';
|
|
40
44
|
}
|
|
41
45
|
updated(changedProperties) {
|
|
42
46
|
super.updated(changedProperties);
|
|
@@ -59,8 +63,11 @@ let NLDDOneHalfOneHalfSection = class NLDDOneHalfOneHalfSection extends PageSect
|
|
|
59
63
|
};
|
|
60
64
|
NLDDOneHalfOneHalfSection.styles = oneHalfOneHalfSectionStyles;
|
|
61
65
|
__decorate([
|
|
62
|
-
property({
|
|
66
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
63
67
|
], NLDDOneHalfOneHalfSection.prototype, "width", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
property({ reflect: true, attribute: 'vertical-alignment', converter: reflectNonDefault('top') })
|
|
70
|
+
], NLDDOneHalfOneHalfSection.prototype, "verticalAlignment", void 0);
|
|
64
71
|
NLDDOneHalfOneHalfSection = __decorate([
|
|
65
72
|
customElement('nldd-one-half-one-half-section')
|
|
66
73
|
], NLDDOneHalfOneHalfSection);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-half-one-half-section.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"one-half-one-half-section.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAGjF,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,gBAAgB,CAAC,UAAU,CAAC;IAApE;;QAGN,qEAAqE;QAErE,UAAK,GAAG,EAAE,CAAC;QAGX,sBAAiB,GAAgC,KAAK,CAAC;IAoBxD,CAAC;IAlBS,OAAO,CAAC,iBAAuC;QACvD,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;QACjC,IAAI,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACpC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YACrB,iEAAiE;YACjE,0DAA0D;YAC1D,+GAA+G;YAC/G,IAAI,CAAC,IAAI,CAAC,KAAK,MAAM,IAAI,GAAG,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC;gBACvD,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,wCAAwC,EAAE,CAAC,CAAC,CAAC;YACrE,CAAC;iBAAM,CAAC;gBACP,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,wCAAwC,CAAC,CAAC;YACrE,CAAC;QACF,CAAC;IACF,CAAC;IAEQ,MAAM;QACd,OAAO,6BAA6B,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;;AA1Be,gCAAM,GAAG,2BAA2B,AAA9B,CAA+B;AAIrD;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,EAAE,CAAC,EAAE,CAAC;wDAC3D;AAGX;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,oBAAoB,EAAE,SAAS,EAAE,iBAAiB,CAA8B,KAAK,CAAC,EAAE,CAAC;oEACxE;AAR3C,yBAAyB;IADrC,aAAa,CAAC,gCAAgC,CAAC;GACnC,yBAAyB,CA4BrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-half-one-half-section.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"one-half-one-half-section.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,2BAA2B,yBAwIvC,CAAC"}
|
|
@@ -36,6 +36,11 @@ export const oneHalfOneHalfSectionStyles = css `
|
|
|
36
36
|
display: none;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
:host([data-growing]),
|
|
40
|
+
:host([grow]) {
|
|
41
|
+
flex-grow: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
:host([width="full"]) {
|
|
40
45
|
--_one-half-one-half-section-max-width: none;
|
|
41
46
|
}
|
|
@@ -114,6 +119,14 @@ export const oneHalfOneHalfSectionStyles = css `
|
|
|
114
119
|
}
|
|
115
120
|
}
|
|
116
121
|
|
|
122
|
+
:host([vertical-alignment="center"]) .one-half-one-half-section__columns {
|
|
123
|
+
align-items: center;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host([vertical-alignment="bottom"]) .one-half-one-half-section__columns {
|
|
127
|
+
align-items: flex-end;
|
|
128
|
+
}
|
|
129
|
+
|
|
117
130
|
.one-half-one-half-section__left-column {
|
|
118
131
|
min-width: var(--primitives-area-280);
|
|
119
132
|
flex-grow: 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-half-one-half-section.styles.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-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,2BAA2B,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"one-half-one-half-section.styles.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-half-one-half-section/one-half-one-half-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,2BAA2B,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoDnB,KAAK;;;;;;2BAML,KAAK,qBAAqB,KAAK;;;;;;2BAM/B,KAAK;;;;;;;;;;;;;;;;2BAgBL,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;;;2BAcL,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B/B,CAAC"}
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
|
|
11
11
|
* @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.
|
|
12
12
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
13
|
+
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
13
14
|
* @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
|
|
14
15
|
* @attr {string} [padding-top] - Top padding override.
|
|
15
16
|
* @attr {string} [padding-bottom] - Bottom padding override.
|
|
16
17
|
* @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
|
|
18
|
+
* @attr {'top'|'center'|'bottom'} [vertical-alignment] - Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other.
|
|
17
19
|
*
|
|
18
20
|
* @slot header - Content above the columns
|
|
19
21
|
* @slot left - Left column (1/3)
|
|
@@ -37,12 +39,14 @@ declare const NLDDOneThirdTwoThirdsSection_base: typeof LitElement & (new (...ar
|
|
|
37
39
|
lgPaddingTop?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
38
40
|
lgPaddingBottom?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
39
41
|
height?: string;
|
|
42
|
+
grow: boolean;
|
|
40
43
|
_onSlotChange(e: Event): void;
|
|
41
44
|
});
|
|
42
45
|
export declare class NLDDOneThirdTwoThirdsSection extends NLDDOneThirdTwoThirdsSection_base {
|
|
43
46
|
static styles: import("lit").CSSResult;
|
|
44
47
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
45
48
|
width: string;
|
|
49
|
+
verticalAlignment: 'top' | 'center' | 'bottom';
|
|
46
50
|
updated(changedProperties: Map<string, unknown>): void;
|
|
47
51
|
render(): import("lit-html").TemplateResult;
|
|
48
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-third-two-thirds-section.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"one-third-two-thirds-section.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;;;;;;;;;AAOjC,qBACa,4BAA6B,SAAQ,iCAA4B;IAC7E,OAAgB,MAAM,0BAAkC;IAExD,qEAAqE;IAErE,KAAK,SAAM;IAGX,iBAAiB,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAS;IAE9C,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAetD,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,mCAAmC,EAAE,4BAA4B,CAAC;KAClE;CACD"}
|
|
@@ -16,10 +16,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
16
16
|
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
|
|
17
17
|
* @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.
|
|
18
18
|
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
19
|
+
* @attr {boolean} grow - Takes the height the page has left, so the footer sits at the bottom of a short page. Without it, nldd-page lets its last section grow.
|
|
19
20
|
* @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
|
|
20
21
|
* @attr {string} [padding-top] - Top padding override.
|
|
21
22
|
* @attr {string} [padding-bottom] - Bottom padding override.
|
|
22
23
|
* @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
|
|
24
|
+
* @attr {'top'|'center'|'bottom'} [vertical-alignment] - Where the shorter column sits next to the longer one ('top' default). Only where the columns stand side by side; stacked, they follow each other.
|
|
23
25
|
*
|
|
24
26
|
* @slot header - Content above the columns
|
|
25
27
|
* @slot left - Left column (1/3)
|
|
@@ -29,6 +31,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
29
31
|
*/
|
|
30
32
|
import { LitElement } from 'lit';
|
|
31
33
|
import { customElement, property } from 'lit/decorators.js';
|
|
34
|
+
import { reflectNonDefault } from '../../../../utilities/reflect-non-default.js';
|
|
32
35
|
import { PageSectionMixin } from '../../../../utilities/page-section-mixin.js';
|
|
33
36
|
import { oneThirdTwoThirdsSectionStyles } from './one-third-two-thirds-section.styles.js';
|
|
34
37
|
import { oneThirdTwoThirdsSectionTemplate } from './one-third-two-thirds-section.template.js';
|
|
@@ -37,6 +40,7 @@ let NLDDOneThirdTwoThirdsSection = class NLDDOneThirdTwoThirdsSection extends Pa
|
|
|
37
40
|
super(...arguments);
|
|
38
41
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
39
42
|
this.width = '';
|
|
43
|
+
this.verticalAlignment = 'top';
|
|
40
44
|
}
|
|
41
45
|
updated(changedProperties) {
|
|
42
46
|
super.updated(changedProperties);
|
|
@@ -59,8 +63,11 @@ let NLDDOneThirdTwoThirdsSection = class NLDDOneThirdTwoThirdsSection extends Pa
|
|
|
59
63
|
};
|
|
60
64
|
NLDDOneThirdTwoThirdsSection.styles = oneThirdTwoThirdsSectionStyles;
|
|
61
65
|
__decorate([
|
|
62
|
-
property({
|
|
66
|
+
property({ reflect: true, converter: reflectNonDefault('') })
|
|
63
67
|
], NLDDOneThirdTwoThirdsSection.prototype, "width", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
property({ reflect: true, attribute: 'vertical-alignment', converter: reflectNonDefault('top') })
|
|
70
|
+
], NLDDOneThirdTwoThirdsSection.prototype, "verticalAlignment", void 0);
|
|
64
71
|
NLDDOneThirdTwoThirdsSection = __decorate([
|
|
65
72
|
customElement('nldd-one-third-two-thirds-section')
|
|
66
73
|
], NLDDOneThirdTwoThirdsSection);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-third-two-thirds-section.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"one-third-two-thirds-section.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE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AR3C,4BAA4B;IADxC,aAAa,CAAC,mCAAmC,CAAC;GACtC,4BAA4B,CA4BxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-third-two-thirds-section.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"one-third-two-thirds-section.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,8BAA8B,yBAqJ1C,CAAC"}
|
|
@@ -36,6 +36,11 @@ export const oneThirdTwoThirdsSectionStyles = css `
|
|
|
36
36
|
display: none;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
:host([data-growing]),
|
|
40
|
+
:host([grow]) {
|
|
41
|
+
flex-grow: 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
:host([width="full"]) {
|
|
40
45
|
--_one-third-two-thirds-section-max-width: none;
|
|
41
46
|
}
|
|
@@ -123,6 +128,18 @@ export const oneThirdTwoThirdsSectionStyles = css `
|
|
|
123
128
|
}
|
|
124
129
|
}
|
|
125
130
|
|
|
131
|
+
:host([vertical-alignment="center"]) .one-third-two-thirds-section__columns {
|
|
132
|
+
@container (min-width: 769px) {
|
|
133
|
+
align-items: center;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host([vertical-alignment="bottom"]) .one-third-two-thirds-section__columns {
|
|
138
|
+
@container (min-width: 769px) {
|
|
139
|
+
align-items: flex-end;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
126
143
|
.one-third-two-thirds-section__left-column {
|
|
127
144
|
min-width: var(--primitives-area-280);
|
|
128
145
|
flex-grow: 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-third-two-thirds-section.styles.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-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,8BAA8B,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"one-third-two-thirds-section.styles.js","sourceRoot":"","sources":["../../../../../src/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-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,8BAA8B,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoDtB,KAAK;;;;;;2BAML,KAAK,qBAAqB,KAAK;;;;;;2BAM/B,KAAK;;;;;;;;;;;;;;;;2BAgBL,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;2BAuBL,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B/B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Directive, type ElementPart, type PartInfo } from 'lit/directive.js';
|
|
2
2
|
/**
|
|
3
3
|
* Shared Storybook controls for the PageSectionMixin surface API
|
|
4
|
-
* (background, width, height and the 12 block-padding overrides).
|
|
4
|
+
* (background, width, height, grow and the 12 block-padding overrides).
|
|
5
5
|
* Spread into a section story's `args` / `argTypes`, and bind onto the host
|
|
6
6
|
* element in `render` with the `pageSectionAttrs` directive.
|
|
7
7
|
*/
|
|
@@ -9,6 +9,7 @@ export declare const pageSectionArgs: {
|
|
|
9
9
|
background: string;
|
|
10
10
|
width: string;
|
|
11
11
|
height: string;
|
|
12
|
+
grow: boolean;
|
|
12
13
|
paddingBlock: string;
|
|
13
14
|
paddingTop: string;
|
|
14
15
|
paddingBottom: string;
|
|
@@ -43,6 +44,15 @@ export declare const pageSectionArgTypes: {
|
|
|
43
44
|
control: string;
|
|
44
45
|
description: string;
|
|
45
46
|
};
|
|
47
|
+
grow: {
|
|
48
|
+
control: string;
|
|
49
|
+
description: string;
|
|
50
|
+
table: {
|
|
51
|
+
defaultValue: {
|
|
52
|
+
summary: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
46
56
|
paddingBlock: {
|
|
47
57
|
name: string;
|
|
48
58
|
control: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-section-controls.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/page-sections/page-section-controls.ts"],"names":[],"mappings":"AACA,OAAO,EACN,SAAS,EAGT,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,MAAM,kBAAkB,CAAC;AAgB1B;;;;;GAKG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"page-section-controls.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/page-sections/page-section-controls.ts"],"names":[],"mappings":"AACA,OAAO,EACN,SAAS,EAGT,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,MAAM,kBAAkB,CAAC;AAgB1B;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;CAiB3B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC/B,CAAC;AAMF,cAAM,yBAA0B,SAAQ,SAAS;gBACpC,QAAQ,EAAE,QAAQ;IAO9B,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI5B,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAcpE;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,uHAAuC,CAAC"}
|
|
@@ -14,7 +14,7 @@ const paddingControl = (name, description) => ({
|
|
|
14
14
|
});
|
|
15
15
|
/**
|
|
16
16
|
* Shared Storybook controls for the PageSectionMixin surface API
|
|
17
|
-
* (background, width, height and the 12 block-padding overrides).
|
|
17
|
+
* (background, width, height, grow and the 12 block-padding overrides).
|
|
18
18
|
* Spread into a section story's `args` / `argTypes`, and bind onto the host
|
|
19
19
|
* element in `render` with the `pageSectionAttrs` directive.
|
|
20
20
|
*/
|
|
@@ -22,6 +22,7 @@ export const pageSectionArgs = {
|
|
|
22
22
|
background: 'inherit',
|
|
23
23
|
width: '',
|
|
24
24
|
height: '',
|
|
25
|
+
grow: false,
|
|
25
26
|
paddingBlock: '',
|
|
26
27
|
paddingTop: '',
|
|
27
28
|
paddingBottom: '',
|
|
@@ -50,6 +51,11 @@ export const pageSectionArgTypes = {
|
|
|
50
51
|
control: 'text',
|
|
51
52
|
description: 'Minimale hoogte van de sectie, als CSS-lengte (bv. "400px" of "100dvh")',
|
|
52
53
|
},
|
|
54
|
+
grow: {
|
|
55
|
+
control: 'boolean',
|
|
56
|
+
description: 'Neemt de hoogte die de pagina over heeft, zodat de footer onderaan staat. Zonder `grow` groeit de laatste sectie van een `nldd-page`.',
|
|
57
|
+
table: { defaultValue: { summary: false } },
|
|
58
|
+
},
|
|
53
59
|
paddingBlock: paddingControl('padding-block', 'Padding boven en onder (token 0 tot 96, "0" haalt hem weg)'),
|
|
54
60
|
paddingTop: paddingControl('padding-top', 'Alleen de padding boven'),
|
|
55
61
|
paddingBottom: paddingControl('padding-bottom', 'Alleen de padding onder'),
|
|
@@ -79,7 +85,10 @@ class PageSectionAttrsDirective extends Directive {
|
|
|
79
85
|
const el = part.element;
|
|
80
86
|
for (const [key, attribute] of PAGE_SECTION_ATTRS) {
|
|
81
87
|
const value = args[key];
|
|
82
|
-
if (typeof value === '
|
|
88
|
+
if (typeof value === 'boolean') {
|
|
89
|
+
el.toggleAttribute(attribute, value);
|
|
90
|
+
}
|
|
91
|
+
else if (typeof value === 'string' && value !== '') {
|
|
83
92
|
el.setAttribute(attribute, value);
|
|
84
93
|
}
|
|
85
94
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-section-controls.js","sourceRoot":"","sources":["../../../../src/components/layout/page-sections/page-section-controls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAO,EACN,SAAS,EACT,SAAS,EACT,QAAQ,G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,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE9F,MAAM,yBAA0B,SAAQ,SAAS;IAChD,YAAY,QAAkB;QAC7B,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChB,IAAI,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,OAAO,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;QAChE,CAAC;IACF,CAAC;IAED,MAAM,CAAC,KAA8B;QACpC,OAAO,OAAO,CAAC;IAChB,CAAC;IAEQ,MAAM,CAAC,IAAiB,EAAE,CAAC,IAAI,CAA4B;QACnE,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QACxB,KAAK,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,kBAAkB,EAAE,CAAC;YACnD,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"page-section-controls.js","sourceRoot":"","sources":["../../../../src/components/layout/page-sections/page-section-controls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAO,EACN,SAAS,EACT,SAAS,EACT,QAAQ,GAGR,MAAM,kBAAkB,CAAC;AAE1B,MAAM,eAAe,GAAG;IACvB,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;IAC/D,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI;CACpD,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,WAAmB,EAAE,EAAE,CAAC,CAAC;IAC9D,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