@proximus/lavender 1.4.5-beta.1 → 1.4.6-alpha.2
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/lavender.cjs.js +1 -1
- package/dist/lavender.es.js +86 -39
- package/dist/lavender.umd.js +1 -1
- package/package.json +1 -1
package/dist/lavender.es.js
CHANGED
|
@@ -718,7 +718,7 @@ const backgroundColorValues = [
|
|
|
718
718
|
"purpose-info",
|
|
719
719
|
"purpose-eco",
|
|
720
720
|
"purpose-notification",
|
|
721
|
-
"footer"
|
|
721
|
+
"footer-sitemap"
|
|
722
722
|
];
|
|
723
723
|
const backgroundSizeValues = ["", "cover", "contain", "default"];
|
|
724
724
|
const boxShadowValues = ["", "none", "s", "m", "l", "xl"];
|
|
@@ -2276,9 +2276,15 @@ let Span = _Span;
|
|
|
2276
2276
|
if (!customElements.get("px-span")) {
|
|
2277
2277
|
customElements.define("px-span", Span);
|
|
2278
2278
|
}
|
|
2279
|
-
const containerCss = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}';
|
|
2279
|
+
const containerCss = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}';
|
|
2280
2280
|
const containerStyles = new CSSStyleSheet();
|
|
2281
2281
|
containerStyles.replaceSync(containerCss);
|
|
2282
|
+
const anchorSpacingValues = [
|
|
2283
|
+
"has-patch",
|
|
2284
|
+
"neighbor-has-patch",
|
|
2285
|
+
"has-ribbon",
|
|
2286
|
+
"neighbor-has-ribbon"
|
|
2287
|
+
];
|
|
2282
2288
|
const attributeBreakpointCSSSelector$3 = (attributeName, attributeValue, device) => `:host([${attributeName}${device ? `--${device}` : ""}='${attributeValue}']) .container`;
|
|
2283
2289
|
const paddingPrefix$1 = "px-padding";
|
|
2284
2290
|
const containerBreakpoints = [
|
|
@@ -2371,6 +2377,7 @@ const _Container = class _Container extends VerticallyExtendedElement {
|
|
|
2371
2377
|
"background-position",
|
|
2372
2378
|
"box-shadow",
|
|
2373
2379
|
"anchor-offset",
|
|
2380
|
+
"anchor-spacing",
|
|
2374
2381
|
"inverted"
|
|
2375
2382
|
];
|
|
2376
2383
|
}
|
|
@@ -2488,6 +2495,9 @@ const _Container = class _Container extends VerticallyExtendedElement {
|
|
|
2488
2495
|
case "anchor-offset":
|
|
2489
2496
|
this.updateAnchorOffset(oldValue, newValue, paddingValues);
|
|
2490
2497
|
break;
|
|
2498
|
+
case "anchor-spacing":
|
|
2499
|
+
this.updateAnchorSpacing(oldValue, newValue, anchorSpacingValues);
|
|
2500
|
+
break;
|
|
2491
2501
|
default:
|
|
2492
2502
|
super.attributeChangedCallback(attrName, oldValue, newValue);
|
|
2493
2503
|
break;
|
|
@@ -2643,6 +2653,32 @@ const _Container = class _Container extends VerticallyExtendedElement {
|
|
|
2643
2653
|
this.$el.classList.add("anchored");
|
|
2644
2654
|
}
|
|
2645
2655
|
}
|
|
2656
|
+
updateAnchorSpacing(oldValue, newValue, attrValue) {
|
|
2657
|
+
if (!checkName(attrValue, newValue)) {
|
|
2658
|
+
log(
|
|
2659
|
+
`${newValue} is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}`
|
|
2660
|
+
);
|
|
2661
|
+
return;
|
|
2662
|
+
}
|
|
2663
|
+
const updateAnchorSpacingStyle = (value) => {
|
|
2664
|
+
if (value !== null && value !== "" && value !== "default") {
|
|
2665
|
+
this.style.setProperty(
|
|
2666
|
+
`--container-anchor-spacing--mobile`,
|
|
2667
|
+
`var(--px-spacing-${value}-mobile)`
|
|
2668
|
+
);
|
|
2669
|
+
this.style.setProperty(
|
|
2670
|
+
`--container-anchor-spacing--tablet`,
|
|
2671
|
+
`var(--px-spacing-${value}-tablet)`
|
|
2672
|
+
);
|
|
2673
|
+
this.style.setProperty(
|
|
2674
|
+
`--container-anchor-spacing--laptop`,
|
|
2675
|
+
`var(--px-spacing-${value}-laptop)`
|
|
2676
|
+
);
|
|
2677
|
+
}
|
|
2678
|
+
};
|
|
2679
|
+
updateAnchorSpacingStyle(oldValue);
|
|
2680
|
+
updateAnchorSpacingStyle(newValue);
|
|
2681
|
+
}
|
|
2646
2682
|
get $slotAnchor() {
|
|
2647
2683
|
return this.querySelector('[slot^="anchor"]');
|
|
2648
2684
|
}
|
|
@@ -2976,6 +3012,12 @@ const _Container = class _Container extends VerticallyExtendedElement {
|
|
|
2976
3012
|
set anchorOffset(value) {
|
|
2977
3013
|
this.setAttribute("anchor-offset", value);
|
|
2978
3014
|
}
|
|
3015
|
+
get anchorSpacing() {
|
|
3016
|
+
return this.getAttribute("anchor-spacing");
|
|
3017
|
+
}
|
|
3018
|
+
set anchorSpacing(value) {
|
|
3019
|
+
this.setAttribute("anchor-spacing", value);
|
|
3020
|
+
}
|
|
2979
3021
|
get inverted() {
|
|
2980
3022
|
return this.getAttribute("inverted");
|
|
2981
3023
|
}
|
|
@@ -3659,7 +3701,6 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3659
3701
|
<slot name="title"></slot>
|
|
3660
3702
|
<slot name="description"></slot>
|
|
3661
3703
|
<slot name="content"></slot>
|
|
3662
|
-
|
|
3663
3704
|
</div>
|
|
3664
3705
|
</px-container>
|
|
3665
3706
|
</px-grid>
|
|
@@ -3693,6 +3734,11 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3693
3734
|
connectedCallback() {
|
|
3694
3735
|
var _a;
|
|
3695
3736
|
(_a = super.connectedCallback) == null ? void 0 : _a.call(this);
|
|
3737
|
+
if (this.reduced) {
|
|
3738
|
+
this.$container.setAttribute("padding", "m");
|
|
3739
|
+
} else {
|
|
3740
|
+
this.$container.setAttribute("padding", "l");
|
|
3741
|
+
}
|
|
3696
3742
|
this.createGridTemplateAreas();
|
|
3697
3743
|
this.createGridding();
|
|
3698
3744
|
}
|
|
@@ -3780,20 +3826,20 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3780
3826
|
}
|
|
3781
3827
|
createGridding(value) {
|
|
3782
3828
|
const breakpoints = [
|
|
3783
|
-
{ prop: "hasGridding",
|
|
3829
|
+
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
3784
3830
|
{
|
|
3785
3831
|
prop: "hasGriddingMobile",
|
|
3786
|
-
|
|
3832
|
+
gridAttr: "grid-cols--mobile",
|
|
3787
3833
|
attr: "col-span--mobile"
|
|
3788
3834
|
},
|
|
3789
3835
|
{
|
|
3790
3836
|
prop: "hasGriddingTablet",
|
|
3791
|
-
|
|
3837
|
+
gridAttr: "grid-cols--tablet",
|
|
3792
3838
|
attr: "col-span--tablet"
|
|
3793
3839
|
},
|
|
3794
3840
|
{
|
|
3795
3841
|
prop: "hasGriddingLaptop",
|
|
3796
|
-
|
|
3842
|
+
gridAttr: "grid-cols--laptop",
|
|
3797
3843
|
attr: "col-span--laptop"
|
|
3798
3844
|
}
|
|
3799
3845
|
];
|
|
@@ -3801,16 +3847,16 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
|
|
|
3801
3847
|
"px-grid > px-container"
|
|
3802
3848
|
);
|
|
3803
3849
|
if (value !== null) {
|
|
3804
|
-
breakpoints.forEach(({ prop,
|
|
3850
|
+
breakpoints.forEach(({ prop, gridAttr, attr }) => {
|
|
3805
3851
|
if (this[prop]) {
|
|
3806
|
-
this.$grid
|
|
3807
|
-
spanElement.setAttribute(attr, "2");
|
|
3852
|
+
this.$grid.setAttribute(gridAttr, "3");
|
|
3853
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
|
|
3808
3854
|
}
|
|
3809
3855
|
});
|
|
3810
3856
|
} else {
|
|
3811
|
-
breakpoints.forEach(({
|
|
3812
|
-
this.$grid
|
|
3813
|
-
spanElement.
|
|
3857
|
+
breakpoints.forEach(({ gridAttr, attr }) => {
|
|
3858
|
+
this.$grid.setAttribute(gridAttr, "1");
|
|
3859
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
|
|
3814
3860
|
});
|
|
3815
3861
|
}
|
|
3816
3862
|
}
|
|
@@ -6834,7 +6880,7 @@ class CellSwitch extends WithExtraAttributes {
|
|
|
6834
6880
|
return `
|
|
6835
6881
|
<div class="cell-switch">
|
|
6836
6882
|
<px-cell hoverable>
|
|
6837
|
-
<px-switch slot="action-indicator"
|
|
6883
|
+
<px-switch slot="action-indicator" inert></px-switch>
|
|
6838
6884
|
<slot name="visual" slot="visual"></slot>
|
|
6839
6885
|
<slot name="label" slot="label"></slot>
|
|
6840
6886
|
<slot name="description" slot="description"></slot>
|
|
@@ -7728,7 +7774,7 @@ class CellRadio extends WithExtraAttributes {
|
|
|
7728
7774
|
return `
|
|
7729
7775
|
<div class="cell-radio">
|
|
7730
7776
|
<px-cell hoverable>
|
|
7731
|
-
<px-radio slot="prefix"
|
|
7777
|
+
<px-radio slot="prefix" inert></px-radio>
|
|
7732
7778
|
<slot name="visual" slot="visual"></slot>
|
|
7733
7779
|
<slot name="label" slot="label"></slot>
|
|
7734
7780
|
<slot name="description" slot="description"></slot>
|
|
@@ -8642,7 +8688,7 @@ class Section extends HTMLElement {
|
|
|
8642
8688
|
if (!customElements.get("px-section")) {
|
|
8643
8689
|
customElements.define("px-section", Section);
|
|
8644
8690
|
}
|
|
8645
|
-
const headingCss = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title)}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-
|
|
8691
|
+
const headingCss = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title)}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-xl-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media only screen and (min-width: 48em){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-tablet)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-tablet)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-tablet)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-tablet)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-tablet)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-tablet)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-tablet)}.style-title-s{font-size:var(--px-text-size-heading-s-tablet)}.style-subtitle{font-size:var(--px-text-size-heading-xl-tablet)}}@media only screen and (min-width: 64.0625em){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-laptop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-laptop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-laptop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-laptop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-laptop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-laptop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-laptop)}.style-title-s{font-size:var(--px-text-size-heading-s-laptop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-laptop)}}@media only screen and (min-width: 90.0625em){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-desktop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-s-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}";
|
|
8646
8692
|
const headingStyles$2 = new CSSStyleSheet();
|
|
8647
8693
|
headingStyles$2.replaceSync(headingCss);
|
|
8648
8694
|
const typographyStyles$4 = new CSSStyleSheet();
|
|
@@ -8885,16 +8931,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
8885
8931
|
this.template = () => `<div class="content-header">
|
|
8886
8932
|
<div class="contrast-helper"></div>
|
|
8887
8933
|
<px-section padding-block="l">
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8934
|
+
<px-grid gap="none">
|
|
8935
|
+
<px-container padding="none" border-radius="none" background-color="none" >
|
|
8936
|
+
<div class="content-header-content">
|
|
8937
|
+
<px-vstack gap="heading-to-subtitle">
|
|
8938
|
+
<px-h1><slot></slot></px-h1>
|
|
8939
|
+
<slot name="subtitle"></slot>
|
|
8940
|
+
</px-vstack>
|
|
8941
|
+
</div>
|
|
8942
|
+
</px-container>
|
|
8943
|
+
</px-grid>
|
|
8898
8944
|
</px-section>
|
|
8899
8945
|
</div>`;
|
|
8900
8946
|
this.shadowRoot.innerHTML = this.template();
|
|
@@ -9005,20 +9051,20 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
9005
9051
|
}
|
|
9006
9052
|
createGridding(value) {
|
|
9007
9053
|
const breakpoints = [
|
|
9008
|
-
{ prop: "hasGridding",
|
|
9054
|
+
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
9009
9055
|
{
|
|
9010
9056
|
prop: "hasGriddingMobile",
|
|
9011
|
-
|
|
9057
|
+
gridAttr: "grid-cols--mobile",
|
|
9012
9058
|
attr: "col-span--mobile"
|
|
9013
9059
|
},
|
|
9014
9060
|
{
|
|
9015
9061
|
prop: "hasGriddingTablet",
|
|
9016
|
-
|
|
9062
|
+
gridAttr: "grid-cols--tablet",
|
|
9017
9063
|
attr: "col-span--tablet"
|
|
9018
9064
|
},
|
|
9019
9065
|
{
|
|
9020
9066
|
prop: "hasGriddingLaptop",
|
|
9021
|
-
|
|
9067
|
+
gridAttr: "grid-cols--laptop",
|
|
9022
9068
|
attr: "col-span--laptop"
|
|
9023
9069
|
}
|
|
9024
9070
|
];
|
|
@@ -9026,16 +9072,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
|
|
|
9026
9072
|
"px-grid > px-container"
|
|
9027
9073
|
);
|
|
9028
9074
|
if (value !== null) {
|
|
9029
|
-
breakpoints.forEach(({ prop,
|
|
9075
|
+
breakpoints.forEach(({ prop, gridAttr, attr }) => {
|
|
9030
9076
|
if (this[prop]) {
|
|
9031
|
-
this.$grid
|
|
9032
|
-
spanElement.setAttribute(attr, "2");
|
|
9077
|
+
this.$grid.setAttribute(gridAttr, "3");
|
|
9078
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
|
|
9033
9079
|
}
|
|
9034
9080
|
});
|
|
9035
9081
|
} else {
|
|
9036
|
-
breakpoints.forEach(({
|
|
9037
|
-
this.$grid
|
|
9038
|
-
spanElement.
|
|
9082
|
+
breakpoints.forEach(({ gridAttr, attr }) => {
|
|
9083
|
+
this.$grid.setAttribute(gridAttr, "1");
|
|
9084
|
+
spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
|
|
9039
9085
|
});
|
|
9040
9086
|
}
|
|
9041
9087
|
}
|
|
@@ -15627,7 +15673,7 @@ class TileCheckbox extends WithExtraAttributes {
|
|
|
15627
15673
|
<div class="tile-checkbox">
|
|
15628
15674
|
<px-tile hoverable>
|
|
15629
15675
|
<slot name="prefix" slot="prefix"></slot>
|
|
15630
|
-
<px-checkbox slot="suffix"
|
|
15676
|
+
<px-checkbox slot="suffix" inert></px-checkbox>
|
|
15631
15677
|
<slot name="label" slot="label"></slot>
|
|
15632
15678
|
<slot name="description" slot="description"></slot>
|
|
15633
15679
|
</px-tile>
|
|
@@ -15907,7 +15953,7 @@ class TileRadio extends WithExtraAttributes {
|
|
|
15907
15953
|
<div class="tile-radio">
|
|
15908
15954
|
<px-tile hoverable>
|
|
15909
15955
|
<slot name="prefix" slot="prefix"></slot>
|
|
15910
|
-
<px-radio slot="suffix"
|
|
15956
|
+
<px-radio slot="suffix" inert></px-radio>
|
|
15911
15957
|
<slot name="label" slot="label"></slot>
|
|
15912
15958
|
<slot name="description" slot="description"></slot>
|
|
15913
15959
|
</px-tile>
|
|
@@ -16349,7 +16395,7 @@ class TileSwitch extends WithExtraAttributes {
|
|
|
16349
16395
|
<div class="tile-switch">
|
|
16350
16396
|
<px-tile hoverable>
|
|
16351
16397
|
<slot name="prefix" slot="prefix"></slot>
|
|
16352
|
-
<px-switch slot="suffix"
|
|
16398
|
+
<px-switch slot="suffix" inert></px-switch>
|
|
16353
16399
|
<slot name="label" slot="label"></slot>
|
|
16354
16400
|
<slot name="description" slot="description"></slot>
|
|
16355
16401
|
</px-tile>
|
|
@@ -16889,6 +16935,7 @@ export {
|
|
|
16889
16935
|
accordionVariantValues,
|
|
16890
16936
|
addGlobalStylesheet,
|
|
16891
16937
|
alignItemsValues,
|
|
16938
|
+
anchorSpacingValues,
|
|
16892
16939
|
assetContainerImgWidthValues,
|
|
16893
16940
|
backgroundColorValues,
|
|
16894
16941
|
backgroundSizeValues,
|