@nldd/design-system 0.8.45 → 0.8.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/actions/button/button.d.ts +3 -0
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +26 -0
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +4 -1
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +2 -0
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +23 -0
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/components.js +83 -78
- package/dist/components/content/{code/code.d.ts → code-viewer/code-viewer.d.ts} +12 -11
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -0
- package/dist/components/content/{code/code.js → code-viewer/code-viewer.js} +32 -25
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts +2 -0
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.styles.js +89 -0
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.template.d.ts +4 -0
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -0
- package/dist/components/content/{code/code.template.js → code-viewer/code-viewer.template.js} +3 -3
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -0
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +3 -1
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/{index-iTa3Ua3y.js → index-CuzqC3j7.js} +3045 -1775
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +10 -0
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +12 -0
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/token/token.styles.d.ts.map +1 -1
- package/dist/components/inputs/token/token.styles.js +13 -3
- package/dist/components/inputs/token/token.styles.js.map +1 -1
- package/dist/components/layout/app-view/app-view.d.ts +2 -2
- package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.js +2 -2
- package/dist/components/layout/app-view/app-view.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +2 -0
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +8 -0
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +4 -0
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.template.js +5 -2
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +62 -8
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +113 -11
- 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 +262 -16
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/container/container.template.d.ts.map +1 -1
- package/dist/components/layout/container/container.template.js +5 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +2 -2
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +1 -1
- 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-footer/page-footer.d.ts +84 -0
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -0
- package/dist/components/layout/page-footer/page-footer.i18n.d.ts +5 -0
- package/dist/components/layout/page-footer/page-footer.i18n.d.ts.map +1 -0
- package/dist/components/layout/page-footer/page-footer.i18n.js +4 -0
- package/dist/components/layout/page-footer/page-footer.i18n.js.map +1 -0
- package/dist/components/layout/page-footer/page-footer.js +217 -0
- package/dist/components/layout/page-footer/page-footer.js.map +1 -0
- package/dist/components/layout/page-footer/page-footer.styles.d.ts +4 -0
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -0
- package/dist/components/layout/page-footer/page-footer.styles.js +207 -0
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -0
- package/dist/components/layout/page-footer/page-footer.template.d.ts +6 -0
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -0
- package/dist/components/layout/page-footer/page-footer.template.js +73 -0
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +26 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +10 -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 +23 -35
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +26 -1
- 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 +10 -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 +26 -53
- 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 +26 -1
- 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 +10 -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 +33 -51
- 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 +226 -0
- package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -0
- package/dist/components/layout/page-sections/page-section-controls.js +104 -0
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +26 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +10 -1
- 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 +24 -38
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +26 -1
- 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 +10 -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 +33 -51
- 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/split-views/bar-split-view/bar-split-view.d.ts +2 -2
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- 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/bar-split-view/bar-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +2 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts +2 -2
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +1 -1
- package/dist/components/layout/window/window.d.ts +5 -0
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +28 -13
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/layout/window/window.styles.d.ts.map +1 -1
- package/dist/components/layout/window/window.styles.js +1 -7
- package/dist/components/layout/window/window.styles.js.map +1 -1
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.d.ts +6 -5
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.js +16 -111
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.d.ts +2 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +1 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.js +94 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.js.map +1 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.d.ts +4 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +1 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.js +20 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.js.map +1 -0
- package/dist/components/lists-and-menus/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/list-item/list-item.styles.js +9 -13
- package/dist/components/lists-and-menus/list-item/list-item.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +80 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts +6 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js +5 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +192 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts +3 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +124 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts +6 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +57 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -0
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +3 -4
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +14 -17
- 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 +47 -46
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +2 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.d.ts +8 -0
- package/dist/components/navigation/pagination/pagination.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.js +11 -0
- package/dist/components/navigation/pagination/pagination.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +61 -1
- package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.js +1 -0
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +15 -0
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +28 -26
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +1 -1
- package/dist/components/prism-gherkin-CMPYyXOQ.js +82 -0
- package/dist/components/prism-python-DUL3Gysb.js +99 -0
- package/dist/components/prism-rust-BGBMvZa7.js +157 -0
- package/dist/components/prism-sql-BGqCBMyJ.js +33 -0
- package/dist/components/prism-toml-Ubdq-a5x.js +45 -0
- package/dist/components/{prism-typescript-DG_p4Wyh.js → prism-typescript-QDrnGhET.js} +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +3 -0
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +5 -0
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +20 -4
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +16 -14
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js.map +1 -1
- package/dist/css/form.css +4 -5
- package/dist/css/rich-text.css +27 -115
- package/dist/css/settings.css +46 -37
- package/dist/utilities/page-section-mixin.d.ts +53 -0
- package/dist/utilities/page-section-mixin.d.ts.map +1 -0
- package/dist/utilities/page-section-mixin.js +239 -0
- package/dist/utilities/page-section-mixin.js.map +1 -0
- package/package.json +12 -4
- package/dist/components/content/code/code.d.ts.map +0 -1
- package/dist/components/content/code/code.js.map +0 -1
- package/dist/components/content/code/code.styles.d.ts +0 -2
- package/dist/components/content/code/code.styles.d.ts.map +0 -1
- package/dist/components/content/code/code.styles.js +0 -89
- package/dist/components/content/code/code.styles.js.map +0 -1
- package/dist/components/content/code/code.template.d.ts +0 -4
- package/dist/components/content/code/code.template.d.ts.map +0 -1
- package/dist/components/content/code/code.template.js.map +0 -1
|
@@ -9,10 +9,18 @@ export const oneThirdTwoThirdsSectionStyles = css `
|
|
|
9
9
|
|
|
10
10
|
/* # Host */
|
|
11
11
|
|
|
12
|
-
/* No own container-type: page-sections read the outer layout-container
|
|
13
|
-
(set by nldd-page / nldd-card). @media is the fallback for contexts
|
|
14
|
-
without a layout-container. */
|
|
15
12
|
:host {
|
|
13
|
+
container-type: inline-size;
|
|
14
|
+
/* Block-padding overrides from PageSectionMixin; 'initial' lets the
|
|
15
|
+
block fall back to the responsive default until the mixin sets one. */
|
|
16
|
+
--_padding-top: initial;
|
|
17
|
+
--_padding-bottom: initial;
|
|
18
|
+
--_sm-padding-top: initial;
|
|
19
|
+
--_sm-padding-bottom: initial;
|
|
20
|
+
--_md-padding-top: initial;
|
|
21
|
+
--_md-padding-bottom: initial;
|
|
22
|
+
--_lg-padding-top: initial;
|
|
23
|
+
--_lg-padding-bottom: initial;
|
|
16
24
|
--_max-width: var(--semantics-page-sections-body-max-width);
|
|
17
25
|
|
|
18
26
|
display: flex;
|
|
@@ -39,34 +47,23 @@ export const oneThirdTwoThirdsSectionStyles = css `
|
|
|
39
47
|
flex-direction: column;
|
|
40
48
|
align-items: center;
|
|
41
49
|
|
|
42
|
-
@media (max-width: ${smMax}) {
|
|
43
|
-
padding-inline: var(--semantics-page-sections-sm-margin-inline);
|
|
44
|
-
padding-block: var(--semantics-page-sections-sm-margin-block);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@media (min-width: ${mdMin}) and (max-width: ${mdMax}) {
|
|
48
|
-
padding-inline: var(--semantics-page-sections-md-margin-inline);
|
|
49
|
-
padding-block: var(--semantics-page-sections-md-margin-block);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@media (min-width: ${lgMin}) {
|
|
53
|
-
padding-inline: var(--semantics-page-sections-lg-margin-inline);
|
|
54
|
-
padding-block: var(--semantics-page-sections-lg-margin-block);
|
|
55
|
-
}
|
|
56
50
|
|
|
57
|
-
@container
|
|
51
|
+
@container (max-width: ${smMax}) {
|
|
58
52
|
padding-inline: var(--semantics-page-sections-sm-margin-inline);
|
|
59
|
-
padding-
|
|
53
|
+
padding-top: var(--_sm-padding-top, var(--_padding-top, var(--semantics-page-sections-sm-margin-block)));
|
|
54
|
+
padding-bottom: var(--_sm-padding-bottom, var(--_padding-bottom, var(--semantics-page-sections-sm-margin-block)));
|
|
60
55
|
}
|
|
61
56
|
|
|
62
|
-
@container
|
|
57
|
+
@container (min-width: ${mdMin}) and (max-width: ${mdMax}) {
|
|
63
58
|
padding-inline: var(--semantics-page-sections-md-margin-inline);
|
|
64
|
-
padding-
|
|
59
|
+
padding-top: var(--_md-padding-top, var(--_padding-top, var(--semantics-page-sections-md-margin-block)));
|
|
60
|
+
padding-bottom: var(--_md-padding-bottom, var(--_padding-bottom, var(--semantics-page-sections-md-margin-block)));
|
|
65
61
|
}
|
|
66
62
|
|
|
67
|
-
@container
|
|
63
|
+
@container (min-width: ${lgMin}) {
|
|
68
64
|
padding-inline: var(--semantics-page-sections-lg-margin-inline);
|
|
69
|
-
padding-
|
|
65
|
+
padding-top: var(--_lg-padding-top, var(--_padding-top, var(--semantics-page-sections-lg-margin-block)));
|
|
66
|
+
padding-bottom: var(--_lg-padding-bottom, var(--_padding-bottom, var(--semantics-page-sections-lg-margin-block)));
|
|
70
67
|
}
|
|
71
68
|
}
|
|
72
69
|
|
|
@@ -79,27 +76,15 @@ export const oneThirdTwoThirdsSectionStyles = css `
|
|
|
79
76
|
max-width: var(--_max-width);
|
|
80
77
|
flex-direction: column;
|
|
81
78
|
|
|
82
|
-
@
|
|
83
|
-
gap: var(--semantics-page-sections-sm-gap);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@media (min-width: ${mdMin}) and (max-width: ${mdMax}) {
|
|
87
|
-
gap: var(--semantics-page-sections-md-gap);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@media (min-width: ${lgMin}) {
|
|
91
|
-
gap: var(--semantics-page-sections-lg-gap);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@container layout-container (max-width: ${smMax}) {
|
|
79
|
+
@container (max-width: ${smMax}) {
|
|
95
80
|
gap: var(--semantics-page-sections-sm-gap);
|
|
96
81
|
}
|
|
97
82
|
|
|
98
|
-
@container
|
|
83
|
+
@container (min-width: ${mdMin}) and (max-width: ${mdMax}) {
|
|
99
84
|
gap: var(--semantics-page-sections-md-gap);
|
|
100
85
|
}
|
|
101
86
|
|
|
102
|
-
@container
|
|
87
|
+
@container (min-width: ${lgMin}) {
|
|
103
88
|
gap: var(--semantics-page-sections-lg-gap);
|
|
104
89
|
}
|
|
105
90
|
}
|
|
@@ -108,27 +93,24 @@ export const oneThirdTwoThirdsSectionStyles = css `
|
|
|
108
93
|
display: flex;
|
|
109
94
|
flex-wrap: wrap;
|
|
110
95
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
@
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
@media (min-width: ${lgMin}) {
|
|
120
|
-
gap: var(--semantics-page-sections-lg-gap);
|
|
96
|
+
/* Below ~768px the 2/3 column would shrink under 400px and read as
|
|
97
|
+
two near-equal columns; stack to a single column instead. nowrap
|
|
98
|
+
stops the column-direction wrap container from stretching the
|
|
99
|
+
shorter column to fill height. */
|
|
100
|
+
@container (max-width: 768px) {
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
flex-wrap: nowrap;
|
|
121
103
|
}
|
|
122
104
|
|
|
123
|
-
@container
|
|
105
|
+
@container (max-width: ${smMax}) {
|
|
124
106
|
gap: var(--semantics-page-sections-sm-gap);
|
|
125
107
|
}
|
|
126
108
|
|
|
127
|
-
@container
|
|
109
|
+
@container (min-width: ${mdMin}) and (max-width: ${mdMax}) {
|
|
128
110
|
gap: var(--semantics-page-sections-md-gap);
|
|
129
111
|
}
|
|
130
112
|
|
|
131
|
-
@container
|
|
113
|
+
@container (min-width: ${lgMin}) {
|
|
132
114
|
gap: var(--semantics-page-sections-lg-gap);
|
|
133
115
|
}
|
|
134
116
|
}
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4CtB,KAAK;;;;;;2BAML,KAAK,qBAAqB,KAAK;;;;;;2BAM/B,KAAK;;;;;;;;;;;;;;;;2BAgBL,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;;;;;;;2BAkBL,KAAK;;;;2BAIL,KAAK,qBAAqB,KAAK;;;;2BAI/B,KAAK;;;;;;;;;;;;;;;;;;CAkB/B,CAAC"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { Directive, type ElementPart, type PartInfo } from 'lit/directive.js';
|
|
2
|
+
/**
|
|
3
|
+
* Shared Storybook controls for the PageSectionMixin surface API
|
|
4
|
+
* (background, scheme, width, height and the 12 block-padding overrides).
|
|
5
|
+
* Spread into a section story's `argTypes` / `args`, and bind onto the host
|
|
6
|
+
* element in `render` with the `pageSectionAttrs` directive.
|
|
7
|
+
*/
|
|
8
|
+
export declare const pageSectionArgTypes: {
|
|
9
|
+
background: {
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
options: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
table: {
|
|
16
|
+
defaultValue: {
|
|
17
|
+
summary: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
scheme: {
|
|
22
|
+
control: {
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
options: string[];
|
|
26
|
+
description: string;
|
|
27
|
+
table: {
|
|
28
|
+
defaultValue: {
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
width: {
|
|
34
|
+
control: string;
|
|
35
|
+
description: string;
|
|
36
|
+
table: {
|
|
37
|
+
defaultValue: {
|
|
38
|
+
summary: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
height: {
|
|
43
|
+
control: string;
|
|
44
|
+
description: string;
|
|
45
|
+
table: {
|
|
46
|
+
defaultValue: {
|
|
47
|
+
summary: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
'padding-block': {
|
|
52
|
+
control: {
|
|
53
|
+
type: "select";
|
|
54
|
+
};
|
|
55
|
+
options: string[];
|
|
56
|
+
description: string;
|
|
57
|
+
table: {
|
|
58
|
+
defaultValue: {
|
|
59
|
+
summary: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
'padding-top': {
|
|
64
|
+
control: {
|
|
65
|
+
type: "select";
|
|
66
|
+
};
|
|
67
|
+
options: string[];
|
|
68
|
+
description: string;
|
|
69
|
+
table: {
|
|
70
|
+
defaultValue: {
|
|
71
|
+
summary: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
'padding-bottom': {
|
|
76
|
+
control: {
|
|
77
|
+
type: "select";
|
|
78
|
+
};
|
|
79
|
+
options: string[];
|
|
80
|
+
description: string;
|
|
81
|
+
table: {
|
|
82
|
+
defaultValue: {
|
|
83
|
+
summary: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
'sm-padding-block': {
|
|
88
|
+
control: {
|
|
89
|
+
type: "select";
|
|
90
|
+
};
|
|
91
|
+
options: string[];
|
|
92
|
+
description: string;
|
|
93
|
+
table: {
|
|
94
|
+
defaultValue: {
|
|
95
|
+
summary: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
'sm-padding-top': {
|
|
100
|
+
control: {
|
|
101
|
+
type: "select";
|
|
102
|
+
};
|
|
103
|
+
options: string[];
|
|
104
|
+
description: string;
|
|
105
|
+
table: {
|
|
106
|
+
defaultValue: {
|
|
107
|
+
summary: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
'sm-padding-bottom': {
|
|
112
|
+
control: {
|
|
113
|
+
type: "select";
|
|
114
|
+
};
|
|
115
|
+
options: string[];
|
|
116
|
+
description: string;
|
|
117
|
+
table: {
|
|
118
|
+
defaultValue: {
|
|
119
|
+
summary: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
'md-padding-block': {
|
|
124
|
+
control: {
|
|
125
|
+
type: "select";
|
|
126
|
+
};
|
|
127
|
+
options: string[];
|
|
128
|
+
description: string;
|
|
129
|
+
table: {
|
|
130
|
+
defaultValue: {
|
|
131
|
+
summary: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
'md-padding-top': {
|
|
136
|
+
control: {
|
|
137
|
+
type: "select";
|
|
138
|
+
};
|
|
139
|
+
options: string[];
|
|
140
|
+
description: string;
|
|
141
|
+
table: {
|
|
142
|
+
defaultValue: {
|
|
143
|
+
summary: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
'md-padding-bottom': {
|
|
148
|
+
control: {
|
|
149
|
+
type: "select";
|
|
150
|
+
};
|
|
151
|
+
options: string[];
|
|
152
|
+
description: string;
|
|
153
|
+
table: {
|
|
154
|
+
defaultValue: {
|
|
155
|
+
summary: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
'lg-padding-block': {
|
|
160
|
+
control: {
|
|
161
|
+
type: "select";
|
|
162
|
+
};
|
|
163
|
+
options: string[];
|
|
164
|
+
description: string;
|
|
165
|
+
table: {
|
|
166
|
+
defaultValue: {
|
|
167
|
+
summary: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
'lg-padding-top': {
|
|
172
|
+
control: {
|
|
173
|
+
type: "select";
|
|
174
|
+
};
|
|
175
|
+
options: string[];
|
|
176
|
+
description: string;
|
|
177
|
+
table: {
|
|
178
|
+
defaultValue: {
|
|
179
|
+
summary: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
'lg-padding-bottom': {
|
|
184
|
+
control: {
|
|
185
|
+
type: "select";
|
|
186
|
+
};
|
|
187
|
+
options: string[];
|
|
188
|
+
description: string;
|
|
189
|
+
table: {
|
|
190
|
+
defaultValue: {
|
|
191
|
+
summary: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
export declare const pageSectionArgs: {
|
|
197
|
+
background: string;
|
|
198
|
+
scheme: string;
|
|
199
|
+
width: string;
|
|
200
|
+
height: string;
|
|
201
|
+
'padding-block': string;
|
|
202
|
+
'padding-top': string;
|
|
203
|
+
'padding-bottom': string;
|
|
204
|
+
'sm-padding-block': string;
|
|
205
|
+
'sm-padding-top': string;
|
|
206
|
+
'sm-padding-bottom': string;
|
|
207
|
+
'md-padding-block': string;
|
|
208
|
+
'md-padding-top': string;
|
|
209
|
+
'md-padding-bottom': string;
|
|
210
|
+
'lg-padding-block': string;
|
|
211
|
+
'lg-padding-top': string;
|
|
212
|
+
'lg-padding-bottom': string;
|
|
213
|
+
};
|
|
214
|
+
declare class PageSectionAttrsDirective extends Directive {
|
|
215
|
+
constructor(partInfo: PartInfo);
|
|
216
|
+
render(_args: Record<string, unknown>): symbol;
|
|
217
|
+
update(part: ElementPart, [args]: [Record<string, unknown>]): symbol;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Element-part directive that mirrors the PageSectionMixin args onto a section
|
|
221
|
+
* host: `<nldd-simple-section ${pageSectionAttrs(args)}>`. Empty/non-string
|
|
222
|
+
* values remove the attribute so unset controls fall back to the defaults.
|
|
223
|
+
*/
|
|
224
|
+
export declare const pageSectionAttrs: (_args: Record<string, unknown>) => import("lit-html/directive.js").DirectiveResult<typeof PageSectionAttrsDirective>;
|
|
225
|
+
export {};
|
|
226
|
+
//# sourceMappingURL=page-section-controls.d.ts.map
|
|
@@ -0,0 +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;AAc1B;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC/B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;CAiB3B,CAAC;AAIF,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;CAYpE;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,uHAAuC,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { nothing } from 'lit';
|
|
2
|
+
import { Directive, directive, PartType, } from 'lit/directive.js';
|
|
3
|
+
const PADDING_OPTIONS = [
|
|
4
|
+
'', '0', '2', '4', '6', '8', '10', '12', '16', '20', '24',
|
|
5
|
+
'28', '32', '40', '44', '48', '56', '64', '80', '96',
|
|
6
|
+
];
|
|
7
|
+
const paddingControl = (description) => ({
|
|
8
|
+
control: { type: 'select' },
|
|
9
|
+
options: PADDING_OPTIONS,
|
|
10
|
+
description,
|
|
11
|
+
table: { defaultValue: { summary: '' } },
|
|
12
|
+
});
|
|
13
|
+
/**
|
|
14
|
+
* Shared Storybook controls for the PageSectionMixin surface API
|
|
15
|
+
* (background, scheme, width, height and the 12 block-padding overrides).
|
|
16
|
+
* Spread into a section story's `argTypes` / `args`, and bind onto the host
|
|
17
|
+
* element in `render` with the `pageSectionAttrs` directive.
|
|
18
|
+
*/
|
|
19
|
+
export const pageSectionArgTypes = {
|
|
20
|
+
background: {
|
|
21
|
+
control: { type: 'select' },
|
|
22
|
+
options: ['inherit', 'base', 'tinted'],
|
|
23
|
+
description: 'Oppervlak: "inherit" (transparant) toont het oppervlak van de ouder; "base"/"tinted" tekenen een oppervlak en cascaden het naar afstammelingen',
|
|
24
|
+
table: { defaultValue: { summary: 'inherit' } },
|
|
25
|
+
},
|
|
26
|
+
scheme: {
|
|
27
|
+
control: { type: 'select' },
|
|
28
|
+
options: ['inherit', 'light', 'dark', 'inverted'],
|
|
29
|
+
description: 'Kleurschema: "inherit" erft; "inverted" is het tegenovergestelde van het omliggende paginaschema',
|
|
30
|
+
table: { defaultValue: { summary: 'inherit' } },
|
|
31
|
+
},
|
|
32
|
+
width: {
|
|
33
|
+
control: 'text',
|
|
34
|
+
description: 'Body max-width: "full" verwijdert de constraint, of een CSS length (bv. "480px") overschrijft de default max-width',
|
|
35
|
+
table: { defaultValue: { summary: '' } },
|
|
36
|
+
},
|
|
37
|
+
height: {
|
|
38
|
+
control: 'text',
|
|
39
|
+
description: 'Minimale sectiehoogte (CSS length, bv. "400px", "100dvh") — net als width op de body-max-width, mapt height op min-height van de host',
|
|
40
|
+
table: { defaultValue: { summary: '' } },
|
|
41
|
+
},
|
|
42
|
+
'padding-block': paddingControl('Block (boven+onder) padding-override (token 0–96; "0" verwijdert de padding)'),
|
|
43
|
+
'padding-top': paddingControl('Override van alleen de bovenpadding'),
|
|
44
|
+
'padding-bottom': paddingControl('Override van alleen de onderpadding'),
|
|
45
|
+
'sm-padding-block': paddingControl('Block-padding op sm (≤640px)'),
|
|
46
|
+
'sm-padding-top': paddingControl('Bovenpadding op sm (≤640px)'),
|
|
47
|
+
'sm-padding-bottom': paddingControl('Onderpadding op sm (≤640px)'),
|
|
48
|
+
'md-padding-block': paddingControl('Block-padding op md (641–1007px)'),
|
|
49
|
+
'md-padding-top': paddingControl('Bovenpadding op md (641–1007px)'),
|
|
50
|
+
'md-padding-bottom': paddingControl('Onderpadding op md (641–1007px)'),
|
|
51
|
+
'lg-padding-block': paddingControl('Block-padding op lg (≥1008px)'),
|
|
52
|
+
'lg-padding-top': paddingControl('Bovenpadding op lg (≥1008px)'),
|
|
53
|
+
'lg-padding-bottom': paddingControl('Onderpadding op lg (≥1008px)'),
|
|
54
|
+
};
|
|
55
|
+
export const pageSectionArgs = {
|
|
56
|
+
background: 'inherit',
|
|
57
|
+
scheme: 'inherit',
|
|
58
|
+
width: '',
|
|
59
|
+
height: '',
|
|
60
|
+
'padding-block': '',
|
|
61
|
+
'padding-top': '',
|
|
62
|
+
'padding-bottom': '',
|
|
63
|
+
'sm-padding-block': '',
|
|
64
|
+
'sm-padding-top': '',
|
|
65
|
+
'sm-padding-bottom': '',
|
|
66
|
+
'md-padding-block': '',
|
|
67
|
+
'md-padding-top': '',
|
|
68
|
+
'md-padding-bottom': '',
|
|
69
|
+
'lg-padding-block': '',
|
|
70
|
+
'lg-padding-top': '',
|
|
71
|
+
'lg-padding-bottom': '',
|
|
72
|
+
};
|
|
73
|
+
const PAGE_SECTION_ATTR_KEYS = Object.keys(pageSectionArgs);
|
|
74
|
+
class PageSectionAttrsDirective extends Directive {
|
|
75
|
+
constructor(partInfo) {
|
|
76
|
+
super(partInfo);
|
|
77
|
+
if (partInfo.type !== PartType.ELEMENT) {
|
|
78
|
+
throw new Error('pageSectionAttrs must be used on an element');
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
render(_args) {
|
|
82
|
+
return nothing;
|
|
83
|
+
}
|
|
84
|
+
update(part, [args]) {
|
|
85
|
+
const el = part.element;
|
|
86
|
+
for (const key of PAGE_SECTION_ATTR_KEYS) {
|
|
87
|
+
const value = args[key];
|
|
88
|
+
if (typeof value === 'string' && value !== '') {
|
|
89
|
+
el.setAttribute(key, value);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
el.removeAttribute(key);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return nothing;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Element-part directive that mirrors the PageSectionMixin args onto a section
|
|
100
|
+
* host: `<nldd-simple-section ${pageSectionAttrs(args)}>`. Empty/non-string
|
|
101
|
+
* values remove the attribute so unset controls fall back to the defaults.
|
|
102
|
+
*/
|
|
103
|
+
export const pageSectionAttrs = directive(PageSectionAttrsDirective);
|
|
104
|
+
//# sourceMappingURL=page-section-controls.js.map
|
|
@@ -0,0 +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,GAGR,MAAM,kBAAkB,CAAC;AAE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;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,GAAG,IAAI,sBAAsB,EAAE,CAAC;YAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;gBAC/C,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAC7B,CAAC;iBAAM,CAAC;gBACP,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;YACzB,CAAC;QACF,CAAC;QACD,OAAO,OAAO,CAAC;IAChB,CAAC;CACD;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC,yBAAyB,CAAC,CAAC"}
|
|
@@ -11,12 +11,36 @@
|
|
|
11
11
|
* @slot - Main content
|
|
12
12
|
* @slot footer - Content below the main content
|
|
13
13
|
*
|
|
14
|
+
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
|
|
15
|
+
* @attr {'inherit'|'light'|'dark'|'inverted'} [scheme] - Color scheme ('inherit' default; 'inverted' = opposite of the surrounding page scheme).
|
|
14
16
|
* @attr {string} [width] - Body max-width: 'full' removes the constraint so the
|
|
15
17
|
* section spans the full available width. Any CSS
|
|
16
18
|
* length (e.g. '480px') overrides the default max-width.
|
|
19
|
+
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
20
|
+
* @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
|
|
21
|
+
* @attr {string} [padding-top] - Top padding override.
|
|
22
|
+
* @attr {string} [padding-bottom] - Bottom padding override.
|
|
23
|
+
* @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
|
|
17
24
|
*/
|
|
18
25
|
import { LitElement } from 'lit';
|
|
19
|
-
|
|
26
|
+
declare const NLDDSimpleSection_base: typeof LitElement & (new (...args: any[]) => LitElement & {
|
|
27
|
+
background: import("../../../../utilities/page-section-mixin.js").PageSectionBackground;
|
|
28
|
+
scheme: import("../../../../utilities/page-section-mixin.js").PageSectionScheme;
|
|
29
|
+
paddingBlock?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
30
|
+
paddingTop?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
31
|
+
paddingBottom?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
32
|
+
smPaddingBlock?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
33
|
+
smPaddingTop?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
34
|
+
smPaddingBottom?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
35
|
+
mdPaddingBlock?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
36
|
+
mdPaddingTop?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
37
|
+
mdPaddingBottom?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
38
|
+
lgPaddingBlock?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
39
|
+
lgPaddingTop?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
40
|
+
lgPaddingBottom?: import("../../../../utilities/page-section-mixin.js").PageSectionPadding;
|
|
41
|
+
height?: string;
|
|
42
|
+
});
|
|
43
|
+
export declare class NLDDSimpleSection extends NLDDSimpleSection_base {
|
|
20
44
|
static styles: import("lit").CSSResult;
|
|
21
45
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
22
46
|
width: string;
|
|
@@ -29,4 +53,5 @@ declare global {
|
|
|
29
53
|
'nldd-simple-section': NLDDSimpleSection;
|
|
30
54
|
}
|
|
31
55
|
}
|
|
56
|
+
export {};
|
|
32
57
|
//# sourceMappingURL=simple-section.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;AAMjC,qBACa,iBAAkB,SAAQ,sBAA4B;IAClE,OAAgB,MAAM,0BAAuB;IAE7C,qEAAqE;IAErE,KAAK,SAAM;IAEF,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAe/D,aAAa,CAAC,CAAC,EAAE,KAAK;IAMb,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,qBAAqB,EAAE,iBAAiB,CAAC;KACzC;CACD"}
|
|
@@ -17,21 +17,30 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
17
17
|
* @slot - Main content
|
|
18
18
|
* @slot footer - Content below the main content
|
|
19
19
|
*
|
|
20
|
+
* @attr {'inherit'|'base'|'tinted'} [background] - Surface background ('inherit' default; 'base'/'tinted' paint and cascade a surface).
|
|
21
|
+
* @attr {'inherit'|'light'|'dark'|'inverted'} [scheme] - Color scheme ('inherit' default; 'inverted' = opposite of the surrounding page scheme).
|
|
20
22
|
* @attr {string} [width] - Body max-width: 'full' removes the constraint so the
|
|
21
23
|
* section spans the full available width. Any CSS
|
|
22
24
|
* length (e.g. '480px') overrides the default max-width.
|
|
25
|
+
* @attr {string} [height] - Minimum section height (any CSS length, e.g. '400px', '100dvh') (mirrors width, which sets the body max-width).
|
|
26
|
+
* @attr {string} [padding-block] - Block (top and bottom) padding override (token 0-96; '0' strips it).
|
|
27
|
+
* @attr {string} [padding-top] - Top padding override.
|
|
28
|
+
* @attr {string} [padding-bottom] - Bottom padding override.
|
|
29
|
+
* @attr {string} [sm-padding-block] - Responsive block padding (sm/md/lg, also per edge: {sm,md,lg}-padding-{top,bottom}).
|
|
23
30
|
*/
|
|
24
31
|
import { LitElement } from 'lit';
|
|
25
32
|
import { customElement, property } from 'lit/decorators.js';
|
|
33
|
+
import { PageSectionMixin } from '../../../../utilities/page-section-mixin.js';
|
|
26
34
|
import { simpleSectionStyles } from './simple-section.styles.js';
|
|
27
35
|
import { simpleSectionTemplate } from './simple-section.template.js';
|
|
28
|
-
let NLDDSimpleSection = class NLDDSimpleSection extends LitElement {
|
|
36
|
+
let NLDDSimpleSection = class NLDDSimpleSection extends PageSectionMixin(LitElement) {
|
|
29
37
|
constructor() {
|
|
30
38
|
super(...arguments);
|
|
31
39
|
/** Width mode: 'full' (removes body max-width) or any CSS length. */
|
|
32
40
|
this.width = '';
|
|
33
41
|
}
|
|
34
42
|
updated(changedProperties) {
|
|
43
|
+
super.updated(changedProperties);
|
|
35
44
|
if (changedProperties.has('width')) {
|
|
36
45
|
const w = this.width;
|
|
37
46
|
// Sections constrain the body's max-width rather than the host's
|
|
@@ -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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,gBAAgB,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC;IACvD,CAAC;IAEQ,MAAM;QACd,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;;AA7Be,wBAAM,GAAG,mBAAmB,AAAtB,CAAuB;AAI7C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC/B;AALC,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CA+B7B"}
|
|
@@ -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,yBA0G/B,CAAC"}
|