@proximus/lavender-content-header 2.0.0-alpha.6 → 2.0.0-alpha.60

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/index.es.js CHANGED
@@ -1,61 +1,87 @@
1
- import { PxElement as v, cssTokenBreakpoints as d, paddingValues as s, boxShadowValues as B, backgroundSizeValues as x, noBorderRadiusValues as z, borderRadiusValues as M, borderSideValues as I, borderValues as R, gradientValues as A, backgroundColorValues as c, borderColorValues as P, checkName as y, WithExtraAttributes as $, AttributeBreakpointHandlerDelegate as j, gapValues as D } from "@proximus/lavender-common";
2
- const O = ":host{--min-height--mobile: 15.625em;--min-height--tablet: 17.5em;--min-height--laptop: 17.5em;--min-height--desktop: 17.5em}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;gap:var(--px-spacing-l-mobile);z-index:2;position:relative;box-sizing:border-box}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media only screen and (min-width: 48em){.content-header-content{gap:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media only screen and (min-width: 64.0625em){.content-header-content{gap:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}", H = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', E = ':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}}', w = new CSSStyleSheet();
3
- w.replaceSync(E);
4
- const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b = "px-padding", k = class k extends v {
1
+ import { cssTokenBreakpoints as d, paddingValues as g, gapValues as v, WithExtraAttributes as y, boxShadowValues as R, backgroundSizeValues as w, noBorderRadiusValues as P, borderRadiusValues as D, borderSideValues as H, borderValues as G, gradientValues as C, log as s, backgroundColorValues as h, borderColorValues as O, checkName as u, AttributeBreakpointHandlerDelegate as q, PxElement as S } from "@proximus/lavender-common";
2
+ import "@proximus/lavender-heading";
3
+ const E = ":host{--min-height--mobile: 15.625em;--min-height--tablet: 17.5em;--min-height--laptop: 17.5em;--min-height--desktop: 17.5em}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;gap:var(--px-spacing-l-mobile);z-index:2;position:relative;box-sizing:border-box}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media only screen and (min-width: 48em){.content-header-content{gap:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media only screen and (min-width: 64.0625em){.content-header-content{gap:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}", X = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', F = ':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)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{display:grid;grid-template-rows:subgrid;grid-row:span var(--subgrid-rows)}@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}}', L = new CSSStyleSheet();
4
+ L.replaceSync(F);
5
+ const _ = [
6
+ "has-patch",
7
+ "neighbor-has-patch",
8
+ "has-ribbon",
9
+ "neighbor-has-ribbon"
10
+ ], N = [
11
+ "1",
12
+ "2",
13
+ "3",
14
+ "4",
15
+ "5",
16
+ "6",
17
+ "7",
18
+ "8",
19
+ "9",
20
+ "10",
21
+ "11",
22
+ "12"
23
+ ], l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b = "px-padding", Z = [
24
+ d(
25
+ "padding",
26
+ l,
27
+ g,
28
+ b,
29
+ "--container-padding"
30
+ ),
31
+ d(
32
+ "padding-inline",
33
+ l,
34
+ g,
35
+ b
36
+ ),
37
+ d(
38
+ "padding-block",
39
+ l,
40
+ g,
41
+ b
42
+ ),
43
+ d(
44
+ "padding-top",
45
+ l,
46
+ g,
47
+ b
48
+ ),
49
+ d(
50
+ "padding-right",
51
+ l,
52
+ g,
53
+ b,
54
+ "--container-padding-right"
55
+ ),
56
+ d(
57
+ "padding-bottom",
58
+ l,
59
+ g,
60
+ b
61
+ ),
62
+ d(
63
+ "padding-left",
64
+ l,
65
+ g,
66
+ b,
67
+ "--container-padding-left"
68
+ ),
69
+ d(
70
+ "gap",
71
+ l,
72
+ v,
73
+ "px-spacing",
74
+ void 0,
75
+ "subgrid-gap"
76
+ )
77
+ ], A = class A extends y {
5
78
  constructor() {
6
- super(
7
- w,
8
- d(
9
- "padding",
10
- l,
11
- s,
12
- b,
13
- "--container-padding"
14
- ),
15
- d(
16
- "padding-inline",
17
- l,
18
- s,
19
- b
20
- ),
21
- d(
22
- "padding-block",
23
- l,
24
- s,
25
- b
26
- ),
27
- d(
28
- "padding-top",
29
- l,
30
- s,
31
- b
32
- ),
33
- d(
34
- "padding-right",
35
- l,
36
- s,
37
- b,
38
- "--container-padding-right"
39
- ),
40
- d(
41
- "padding-bottom",
42
- l,
43
- s,
44
- b
45
- ),
46
- d(
47
- "padding-left",
48
- l,
49
- s,
50
- b,
51
- "--container-padding-left"
52
- )
53
- ), this.template = () => `<div class="container">
79
+ super(L, ...Z), this.template = () => `<div class="container">
54
80
  <slot></slot>
55
81
  <slot name="anchor-left"></slot>
56
82
  <slot name="anchor-right"></slot>
57
83
  <slot name="anchor-full"></slot>
58
- </div>`, this._bgObserver = null, this._isInViewport = !1, this.shadowRoot.innerHTML = this.template();
84
+ </div>`, this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, this.shadowRoot.innerHTML = this.template();
59
85
  }
60
86
  static get observedAttributes() {
61
87
  return [
@@ -87,32 +113,34 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
87
113
  "background-position",
88
114
  "box-shadow",
89
115
  "anchor-offset",
90
- "inverted"
116
+ "anchor-spacing",
117
+ "inverted",
118
+ "subgrid-rows"
91
119
  ];
92
120
  }
93
121
  connectedCallback() {
94
- super.connectedCallback(), this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
122
+ this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
95
123
  this.$slotAnchor && this.addAnchorClass();
96
124
  }), this.contentObserver.observe(this, {
97
125
  childList: !0,
98
126
  subtree: !0,
99
127
  characterData: !0
100
128
  }), this._bgObserver = new IntersectionObserver((t) => {
101
- t.forEach((r) => {
129
+ t.forEach((i) => {
102
130
  var e;
103
- r.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (e = this._bgObserver) == null || e.disconnect());
131
+ i.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (e = this._bgObserver) == null || e.disconnect());
104
132
  });
105
133
  }), this._bgObserver.observe(this.$el);
106
134
  }
107
135
  disconnectedCallback() {
108
- var t;
109
- (t = this._bgObserver) == null || t.disconnect(), this.contentObserver.disconnect();
136
+ var t, i;
137
+ (t = this._bgObserver) == null || t.disconnect(), (i = this.contentObserver) == null || i.disconnect();
110
138
  }
111
- attributeChangedCallback(t, r, e) {
112
- if (r !== e)
139
+ attributeChangedCallback(t, i, e) {
140
+ if (i !== e)
113
141
  switch (t) {
114
142
  case "border":
115
- this.updateAttribute(t, r, e, R);
143
+ this.updateAttribute(t, i, e, G);
116
144
  break;
117
145
  case "border-color":
118
146
  this.updateBorderColor(t, e);
@@ -121,14 +149,14 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
121
149
  case "border-side--mobile":
122
150
  case "border-side--tablet":
123
151
  case "border-side--laptop":
124
- this.updateAttribute(t, r, e, I);
152
+ this.updateAttribute(t, i, e, H);
125
153
  break;
126
154
  case "border-radius":
127
155
  this.updateAttribute(
128
156
  t,
129
- r,
157
+ i,
130
158
  e,
131
- M
159
+ D
132
160
  );
133
161
  break;
134
162
  case "no-border-radius":
@@ -137,9 +165,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
137
165
  case "no-border-radius--laptop":
138
166
  this.updateNoBorderRadius(
139
167
  t,
140
- r,
168
+ i,
141
169
  e,
142
- z
170
+ P
143
171
  );
144
172
  break;
145
173
  case "background-color":
@@ -157,9 +185,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
157
185
  case "background-size":
158
186
  this.updateAttribute(
159
187
  t,
160
- r,
188
+ i,
161
189
  e,
162
- x
190
+ w
163
191
  );
164
192
  break;
165
193
  case "background-image":
@@ -172,13 +200,24 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
172
200
  e !== null && e !== "" && (this.$el.style.backgroundPosition = e);
173
201
  break;
174
202
  case "box-shadow":
175
- this.updateAttribute(t, r, e, B);
203
+ this.updateAttribute(t, i, e, R);
176
204
  break;
177
205
  case "anchor-offset":
178
- this.updateAnchorOffset(r, e, s);
206
+ this.updateAnchorOffset(i, e, g);
207
+ break;
208
+ case "anchor-spacing":
209
+ this.updateAnchorSpacing(i, e, _);
210
+ break;
211
+ case "subgrid-rows":
212
+ this.updateSubgridRows(
213
+ t,
214
+ i,
215
+ e,
216
+ N
217
+ );
179
218
  break;
180
219
  default:
181
- super.attributeChangedCallback(t, r, e);
220
+ super.attributeChangedCallback(t, i, e);
182
221
  break;
183
222
  }
184
223
  }
@@ -188,105 +227,147 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
188
227
  "background-image--mobile",
189
228
  "background-image--tablet",
190
229
  "background-image--laptop"
191
- ].forEach((r) => {
192
- const e = this.getAttribute(r);
193
- e && this.updateBackgroundImg(r, e);
230
+ ].forEach((i) => {
231
+ const e = this.getAttribute(i);
232
+ e && this.updateBackgroundImg(i, e);
194
233
  });
195
234
  }
196
- updateBackgroundImg(t, r) {
197
- this.$el.style.setProperty(`--${t}`, `url("${r}")`);
235
+ updateBackgroundImg(t, i) {
236
+ this.$el.style.setProperty(`--${t}`, `url("${i}")`);
198
237
  }
199
- updateGradient(t, r) {
200
- if (this.checkName(A, r)) {
238
+ updateGradient(t, i) {
239
+ if (this.checkName(C, i)) {
201
240
  const e = this.splitAttrNameFromBreakpoint(t);
202
241
  t = e.attrName;
203
242
  const o = e.breakpoint;
204
243
  this.$el.style.setProperty(
205
244
  `--${t}${o}`,
206
- `linear-gradient(var(--px-color-background-gradient-${r}))`
245
+ `linear-gradient(var(--px-color-background-gradient-${i}))`
207
246
  );
208
247
  } else
209
- console.error(`${r} is not an allowed background-gradient value`);
248
+ s(
249
+ `${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
250
+ );
210
251
  }
211
- updateBackgroundColor(t, r) {
212
- const e = r.startsWith("surface-");
213
- if (this.checkName(c, r)) {
214
- const o = this.splitAttrNameFromBreakpoint(t), i = o.breakpoint;
252
+ updateBackgroundColor(t, i) {
253
+ const e = i.startsWith("surface-");
254
+ if (this.checkName(h, i)) {
255
+ const o = this.splitAttrNameFromBreakpoint(t), r = o.breakpoint;
215
256
  this.$el.style.setProperty(
216
- `--${o.attrName}${i}`,
217
- `var(--px-color-background-${r}${e ? "" : "-default"})`
257
+ `--${o.attrName}${r}`,
258
+ `var(--px-color-background-${i}${e ? "" : "-default"})`
218
259
  ), this.$el.style.setProperty(
219
- `--${o.attrName}-inverted${i}`,
220
- `var(--px-color-background-${r}${e ? "" : "-inverted"})`
260
+ `--${o.attrName}-inverted${r}`,
261
+ `var(--px-color-background-${i}${e ? "" : "-inverted"})`
221
262
  );
222
263
  } else
223
- console.error(`${r} is not an allowed ${t} value`);
264
+ s(
265
+ `${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
266
+ );
224
267
  }
225
- updateBorderColor(t, r) {
226
- this.checkName(P, r) ? (this.$el.style.setProperty(
268
+ updateBorderColor(t, i) {
269
+ this.checkName(O, i) ? (this.$el.style.setProperty(
227
270
  `--${t}`,
228
- `var(--px-color-border-${r}-default)`
271
+ `var(--px-color-border-${i}-default)`
229
272
  ), this.$el.style.setProperty(
230
273
  `--${t}-inverted`,
231
- `var(--px-color-border-${r}-inverted)`
232
- )) : console.error(`${r} is not an allowed ${t} value`);
274
+ `var(--px-color-border-${i}-inverted)`
275
+ )) : s(
276
+ `${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
277
+ );
233
278
  }
234
- updateNoBorderRadius(t, r, e, o) {
279
+ updateNoBorderRadius(t, i, e, o) {
235
280
  if (!this.checkName(o, e))
236
- console.error(`${e} is not an allowed ${t} value`);
281
+ s(
282
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
283
+ );
237
284
  else {
238
- const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
239
- r !== null && r !== "" && this.$el.classList.toggle(
240
- `${i.attrName}-${r}${a}`
285
+ const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
286
+ i !== null && i !== "" && this.$el.classList.toggle(
287
+ `${r.attrName}-${i}${a}`
241
288
  ), e !== null && e !== "" && this.$el.classList.toggle(
242
- `${i.attrName}-${e}${a}`
289
+ `${r.attrName}-${e}${a}`
243
290
  );
244
291
  }
245
292
  }
246
- updateAttribute(t, r, e, o) {
293
+ updateAttribute(t, i, e, o) {
247
294
  if (!this.checkName(o, e))
248
- console.error(`${e} is not an allowed ${t} value`);
295
+ s(
296
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
297
+ );
249
298
  else {
250
- const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
251
- r !== null && r !== "" && this.$el.classList.toggle(
252
- `${i.attrName}-${r}${a}`
299
+ const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
300
+ i !== null && i !== "" && this.$el.classList.toggle(
301
+ `${r.attrName}-${i}${a}`
253
302
  ), e !== null && e !== "" && this.$el.classList.toggle(
254
- `${i.attrName}-${e}${a}`
303
+ `${r.attrName}-${e}${a}`
255
304
  );
256
305
  }
257
306
  }
258
307
  splitAttrNameFromBreakpoint(t) {
259
- let r = "";
308
+ let i = "";
260
309
  if (["--mobile", "--tablet", "--laptop"].some(
261
310
  (e) => t.includes(e)
262
311
  )) {
263
312
  const e = t.split("--");
264
- t = e[0], r = `--${e[1]}`;
313
+ t = e[0], i = `--${e[1]}`;
265
314
  }
266
- return { attrName: t, breakpoint: r };
315
+ return { attrName: t, breakpoint: i };
267
316
  }
268
- updateAnchorOffset(t, r, e) {
269
- if (!y(e, r)) {
270
- console.error(`${r} is not a valid anchor-offset value`);
317
+ updateAnchorOffset(t, i, e) {
318
+ if (!u(e, i)) {
319
+ s(
320
+ `${i} is not a valid anchor-offset value for ${this.tagName.toLowerCase()}`
321
+ );
271
322
  return;
272
323
  }
273
- const o = (i) => {
274
- i !== null && i !== "" && i !== "default" && (this.$el.style.setProperty(
324
+ const o = (r) => {
325
+ r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
275
326
  "--container-anchor-offset--mobile",
276
- `var(--px-padding-${i}-mobile)`
327
+ `var(--px-padding-${r}-mobile)`
277
328
  ), this.$el.style.setProperty(
278
329
  "--container-anchor-offset--tablet",
279
- `var(--px-padding-${i}-tablet)`
330
+ `var(--px-padding-${r}-tablet)`
280
331
  ), this.$el.style.setProperty(
281
332
  "--container-anchor-offset--laptop",
282
- `var(--px-padding-${i}-laptop)`
333
+ `var(--px-padding-${r}-laptop)`
283
334
  ));
284
335
  };
285
- o(t), o(r);
336
+ o(t), o(i);
286
337
  }
287
338
  addAnchorClass() {
288
339
  this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
289
340
  }
341
+ updateAnchorSpacing(t, i, e) {
342
+ if (!u(e, i)) {
343
+ s(
344
+ `${i} is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}`
345
+ );
346
+ return;
347
+ }
348
+ const o = (r) => {
349
+ r !== null && r !== "" && r !== "default" && (this.style.setProperty(
350
+ "--container-anchor-spacing--mobile",
351
+ `var(--px-spacing-${r}-mobile)`
352
+ ), this.style.setProperty(
353
+ "--container-anchor-spacing--tablet",
354
+ `var(--px-spacing-${r}-tablet)`
355
+ ), this.style.setProperty(
356
+ "--container-anchor-spacing--laptop",
357
+ `var(--px-spacing-${r}-laptop)`
358
+ ));
359
+ };
360
+ o(t), o(i);
361
+ }
362
+ updateSubgridRows(t, i, e, o) {
363
+ u(o, e) ? this.style.setProperty(`--${t}`, e) : s(
364
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
365
+ );
366
+ }
367
+ get $el() {
368
+ var t;
369
+ return (t = this == null ? void 0 : this.shadowRoot) == null ? void 0 : t.querySelector(".container");
370
+ }
290
371
  get $slotAnchor() {
291
372
  return this.querySelector('[slot^="anchor"]');
292
373
  }
@@ -620,26 +701,62 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
620
701
  set anchorOffset(t) {
621
702
  this.setAttribute("anchor-offset", t);
622
703
  }
704
+ get anchorSpacing() {
705
+ return this.getAttribute("anchor-spacing");
706
+ }
707
+ set anchorSpacing(t) {
708
+ this.setAttribute("anchor-spacing", t);
709
+ }
623
710
  get inverted() {
624
- return this.getAttribute("inverted");
711
+ return this.hasAttribute("inverted");
625
712
  }
626
713
  set inverted(t) {
627
- this.setAttribute("inverted", t);
714
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
715
+ }
716
+ get subgridRows() {
717
+ return this.getAttribute("subgrid-rows");
718
+ }
719
+ set subgridRows(t) {
720
+ this.setAttribute("subgrid-rows", t);
721
+ }
722
+ get subgridGap() {
723
+ return this.getAttribute("subgrid-gap");
724
+ }
725
+ set subgridGap(t) {
726
+ this.setAttribute("subgrid-gap", t);
727
+ }
728
+ get subgridGapMobile() {
729
+ return this.getAttribute("subgrid-gap--mobile");
730
+ }
731
+ set subgridGapMobile(t) {
732
+ this.setAttribute("subgrid-gap--mobile", t);
733
+ }
734
+ get subgridGapTablet() {
735
+ return this.getAttribute("subgrid-gap--tablet");
736
+ }
737
+ set subgridGapTablet(t) {
738
+ this.setAttribute("subgrid-gap--tablet", t);
739
+ }
740
+ get subgridGapLaptop() {
741
+ return this.getAttribute("subgrid-gap--laptop");
742
+ }
743
+ set subgridGapLaptop(t) {
744
+ this.setAttribute("subgrid-gap--laptop", t);
628
745
  }
629
746
  };
630
- k.nativeName = "div";
631
- let u = k;
632
- customElements.get("px-container") || customElements.define("px-container", u);
633
- const q = ':host{display:block}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', S = new CSSStyleSheet();
634
- S.replaceSync(q);
635
- const G = [
747
+ A.nativeName = "div";
748
+ let m = A;
749
+ customElements.get("px-container") || customElements.define("px-container", m);
750
+ const W = ':host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', T = new CSSStyleSheet();
751
+ T.replaceSync(W);
752
+ const Y = [
636
753
  "",
637
754
  "default",
638
755
  "row",
639
756
  "row-reverse",
640
757
  "column",
641
758
  "column-reverse"
642
- ], X = [
759
+ ], J = [
643
760
  "",
644
761
  "default",
645
762
  "stretch",
@@ -647,7 +764,7 @@ const G = [
647
764
  "flex-end",
648
765
  "center",
649
766
  "baseline"
650
- ], F = [
767
+ ], K = [
651
768
  "",
652
769
  "default",
653
770
  "flex-start",
@@ -656,10 +773,10 @@ const G = [
656
773
  "space-between",
657
774
  "space-around",
658
775
  "space-evenly"
659
- ], _ = ["", "default", "nowrap", "wrap", "wrap-reverse"], N = ["", "visible", "hidden", "scroll", "auto"];
660
- class m extends $ {
776
+ ], Q = ["", "default", "nowrap", "wrap", "wrap-reverse"], U = ["", "visible", "hidden", "scroll", "auto"];
777
+ class x extends y {
661
778
  constructor() {
662
- super(S), this.overflowXAttributeDelegate = new j(
779
+ super(T), this.overflowXAttributeDelegate = new q(
663
780
  this,
664
781
  "overflow-x",
665
782
  (t) => t,
@@ -706,14 +823,14 @@ class m extends $ {
706
823
  "overflow-x--desktop"
707
824
  ];
708
825
  }
709
- attributeChangedCallback(t, r, e) {
826
+ attributeChangedCallback(t, i, e) {
710
827
  switch (t) {
711
828
  case "gap":
712
829
  case "gap--mobile":
713
830
  case "gap--tablet":
714
831
  case "gap--laptop":
715
832
  case "gap--desktop":
716
- this.updateFlexProperties(t, r, e, D);
833
+ this.updateFlexProperties(t, i, e, v);
717
834
  break;
718
835
  case "justify-content":
719
836
  case "justify-content--mobile":
@@ -722,9 +839,9 @@ class m extends $ {
722
839
  case "justify-content--desktop":
723
840
  this.updateFlexProperties(
724
841
  t,
725
- r,
842
+ i,
726
843
  e,
727
- F
844
+ K
728
845
  );
729
846
  break;
730
847
  case "align-items":
@@ -732,63 +849,70 @@ class m extends $ {
732
849
  case "align-items--tablet":
733
850
  case "align-items--laptop":
734
851
  case "align-items--desktop":
735
- this.updateFlexProperties(t, r, e, X);
852
+ this.updateFlexProperties(t, i, e, J);
736
853
  break;
737
854
  case "wrap":
738
855
  case "wrap--mobile":
739
856
  case "wrap--tablet":
740
857
  case "wrap--laptop":
741
858
  case "wrap--desktop":
742
- this.updateFlexProperties(t, r, e, _);
859
+ this.updateFlexProperties(t, i, e, Q);
743
860
  break;
744
861
  case "direction":
745
862
  case "direction--mobile":
746
863
  case "direction--tablet":
747
864
  case "direction--laptop":
748
865
  case "direction--desktop":
749
- this.updateFlexProperties(t, r, e, G);
866
+ this.updateFlexProperties(t, i, e, Y);
750
867
  break;
751
868
  case "overflow-x":
752
869
  case "overflow-x--mobile":
753
870
  case "overflow-x--tablet":
754
871
  case "overflow-x--laptop":
755
872
  case "overflow-x--desktop":
756
- this.updateOverflowX(t, r, e, N);
873
+ this.updateOverflowX(t, i, e, U);
757
874
  break;
758
875
  default:
759
- super.attributeChangedCallback(t, r, e);
876
+ super.attributeChangedCallback(t, i, e);
760
877
  break;
761
878
  }
762
879
  }
763
- updateOverflowX(t, r, e, o) {
764
- if (!y(o, e)) {
765
- console.error(`${e} is not an allowed ${t} value`);
880
+ updateOverflowX(t, i, e, o) {
881
+ if (!u(o, e)) {
882
+ s(
883
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
884
+ );
766
885
  return;
767
886
  }
768
887
  this.overflowXAttributeDelegate.attributeChangedCallback(
769
888
  t,
770
- r,
889
+ i,
771
890
  e
772
891
  );
773
892
  }
774
- updateFlexProperties(t, r, e, o) {
775
- this.checkName(o, e) || console.error(`${e} is not a valid value for ${o}`);
776
- const i = t.indexOf("--") > -1, a = i ? t.split("--")[0] : t, p = [];
777
- if (!i)
778
- this.getAttribute(a + "--mobile") || p.push("mobile"), this.getAttribute(a + "--tablet") || p.push("tablet"), this.getAttribute(a + "--laptop") || p.push("laptop"), this.getAttribute(a + "--desktop") || p.push("desktop"), p.forEach((g) => {
779
- this.updateStyle(a, g, r, o), this.updateStyle(a, g, e, o);
893
+ updateFlexProperties(t, i, e, o) {
894
+ this.checkName(o, e) || s(
895
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
896
+ );
897
+ const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, c = [];
898
+ if (!r)
899
+ this.getAttribute(a + "--mobile") || c.push("mobile"), this.getAttribute(a + "--tablet") || c.push("tablet"), this.getAttribute(a + "--laptop") || c.push("laptop"), this.getAttribute(a + "--desktop") || c.push("desktop"), c.forEach((p) => {
900
+ this.updateStyle(a, p, i, o), this.updateStyle(a, p, e, o);
780
901
  });
781
902
  else {
782
- const g = t.split("--")[1];
783
- this.updateStyle(a, g, r, o), this.updateStyle(a, g, e, o);
903
+ const p = t.split("--")[1];
904
+ this.updateStyle(a, p, i, o), this.updateStyle(a, p, e, o);
784
905
  }
785
906
  }
786
- updateStyle(t, r, e, o) {
787
- e && (t === "gap" && o && o.includes(e) ? this.$el.style.setProperty(
788
- `--flex-${t}--${r}-value`,
789
- `var(--px-spacing-${e}-${r === "laptop" ? "desktop" : r})`
790
- ) : this.$el.style.setProperty(
791
- `--flex-${t}--${r}-value`,
907
+ updateStyle(t, i, e, o) {
908
+ e && (t === "gap" && o && o.includes(e) ? (this.$el.style.setProperty(
909
+ `--flex-${t}--${i}-value`,
910
+ `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
911
+ ), this.style.setProperty(
912
+ `--host-gap--${i}`,
913
+ `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
914
+ )) : this.$el.style.setProperty(
915
+ `--flex-${t}--${i}-value`,
792
916
  e
793
917
  ));
794
918
  }
@@ -976,8 +1100,8 @@ class m extends $ {
976
1100
  return this.shadowRoot.querySelector(".flex-container");
977
1101
  }
978
1102
  }
979
- customElements.get("px-stack") || customElements.define("px-stack", m);
980
- class Z extends m {
1103
+ customElements.get("px-stack") || customElements.define("px-stack", x);
1104
+ class V extends x {
981
1105
  constructor() {
982
1106
  super();
983
1107
  }
@@ -985,8 +1109,8 @@ class Z extends m {
985
1109
  super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
986
1110
  }
987
1111
  }
988
- customElements.get("px-vstack") || customElements.define("px-vstack", Z);
989
- class W extends m {
1112
+ customElements.get("px-vstack") || customElements.define("px-vstack", V);
1113
+ class tt extends x {
990
1114
  constructor() {
991
1115
  super();
992
1116
  }
@@ -994,21 +1118,21 @@ class W extends m {
994
1118
  super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
995
1119
  }
996
1120
  }
997
- customElements.get("px-hstack") || customElements.define("px-hstack", W);
998
- class Y extends HTMLElement {
1121
+ customElements.get("px-hstack") || customElements.define("px-hstack", tt);
1122
+ class et extends HTMLElement {
999
1123
  constructor() {
1000
1124
  super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
1001
1125
  }
1002
1126
  static get observedAttributes() {
1003
- return ["grow"];
1127
+ return ["grow", "nogap"];
1004
1128
  }
1005
- attributeChangedCallback(t, r, e) {
1129
+ attributeChangedCallback(t, i, e) {
1006
1130
  t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
1007
1131
  }
1008
1132
  connectedCallback() {
1009
- this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.resizeObserver = new ResizeObserver(() => {
1133
+ this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
1010
1134
  this.handleSizeChange();
1011
- }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck();
1135
+ }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
1012
1136
  }
1013
1137
  disconnectedCallback() {
1014
1138
  var t;
@@ -1029,19 +1153,25 @@ class Y extends HTMLElement {
1029
1153
  this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
1030
1154
  }
1031
1155
  handleSizeChange() {
1032
- const t = this.getBoundingClientRect(), r = t.width === 0 && !this.isVertical || t.height === 0 && this.isVertical;
1033
- this.isZeroSized !== r && (this.isZeroSized = r, this.updateParticipation());
1156
+ const t = this.getBoundingClientRect(), i = t.width === 0 && !this.isVertical || t.height === 0 && this.isVertical;
1157
+ this.isZeroSized !== i && (this.isZeroSized = i, this.updateParticipation());
1034
1158
  }
1035
1159
  updateParticipation() {
1036
1160
  this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
1037
1161
  }
1162
+ get nogap() {
1163
+ return this.hasAttribute("nogap");
1164
+ }
1165
+ set nogap(t) {
1166
+ t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
1167
+ }
1038
1168
  }
1039
- customElements.get("px-spacer") || customElements.define("px-spacer", Y);
1040
- const J = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", C = new CSSStyleSheet();
1041
- C.replaceSync(J);
1042
- class K extends $ {
1169
+ customElements.get("px-spacer") || customElements.define("px-spacer", et);
1170
+ const it = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", I = new CSSStyleSheet();
1171
+ I.replaceSync(it);
1172
+ class ot extends y {
1043
1173
  constructor() {
1044
- super(C), this.template = (t) => `
1174
+ super(I), this.template = (t) => `
1045
1175
  <px-container border-radius="none" padding="none">
1046
1176
  <px-vstack>
1047
1177
  <px-container id="header-container" border-radius="none">
@@ -1206,8 +1336,8 @@ class K extends $ {
1206
1336
  connectedCallback() {
1207
1337
  this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
1208
1338
  }
1209
- attributeChangedCallback(t, r, e) {
1210
- if (r !== e)
1339
+ attributeChangedCallback(t, i, e) {
1340
+ if (i !== e)
1211
1341
  switch (t) {
1212
1342
  case "background-image":
1213
1343
  this.$imageContainer.setAttribute("background-image", e);
@@ -1218,7 +1348,7 @@ class K extends $ {
1218
1348
  case "background-color":
1219
1349
  this.$bodyContainer.setAttribute(
1220
1350
  "background-color",
1221
- c.indexOf(e) > 0 ? e : "none"
1351
+ h.indexOf(e) > 0 ? e : "none"
1222
1352
  );
1223
1353
  break;
1224
1354
  case "padding-vertical":
@@ -1228,7 +1358,7 @@ class K extends $ {
1228
1358
  this.handlePaddingHorizontalChange(e);
1229
1359
  break;
1230
1360
  default:
1231
- super.attributeChangedCallback(t, r, e);
1361
+ super.attributeChangedCallback(t, i, e);
1232
1362
  }
1233
1363
  }
1234
1364
  handlePaddingVerticalChange(t) {
@@ -1238,14 +1368,14 @@ class K extends $ {
1238
1368
  this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
1239
1369
  }
1240
1370
  }
1241
- customElements.get("px-page") === void 0 && customElements.define("px-page", K);
1242
- const T = new CSSStyleSheet();
1243
- T.replaceSync(H);
1244
- class Q extends HTMLElement {
1371
+ customElements.get("px-page") === void 0 && customElements.define("px-page", ot);
1372
+ const M = new CSSStyleSheet();
1373
+ M.replaceSync(X);
1374
+ class rt extends HTMLElement {
1245
1375
  constructor() {
1246
1376
  super(), this.template = () => `
1247
- <px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
1248
- <div class="content-wrapper ${this.$slotOverlap ? "overlapped" : ""}">
1377
+ <px-container border-radius="none" padding-inline="none">
1378
+ <div class="content-wrapper">
1249
1379
  <px-vstack gap="heading-to-content">
1250
1380
  <slot name="heading"></slot>
1251
1381
  <px-vstack gap="none">
@@ -1257,9 +1387,10 @@ class Q extends HTMLElement {
1257
1387
  <div class="content-wrapper">
1258
1388
  <slot name="overlap"></slot>
1259
1389
  </div>
1260
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [T];
1390
+ `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [M];
1261
1391
  }
1262
1392
  connectedCallback() {
1393
+ this.$container.setAttribute("background-color", this.backgroundColor), this.$slotOverlap && this.shadowRoot.firstElementChild.querySelector(".content-wrapper").classList.add("overlapped");
1263
1394
  const t = this.querySelector('[slot="heading"]');
1264
1395
  !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), t || this.shadowRoot.querySelector("px-vstack").setAttribute("gap", "none");
1265
1396
  }
@@ -1295,11 +1426,11 @@ class Q extends HTMLElement {
1295
1426
  get $container() {
1296
1427
  return this.shadowRoot.querySelector("px-container");
1297
1428
  }
1298
- attributeChangedCallback(t, r, e) {
1299
- if (r !== e)
1429
+ attributeChangedCallback(t, i, e) {
1430
+ if (i !== e)
1300
1431
  switch (t) {
1301
1432
  case "background-color":
1302
- this.$container.backgroundColor = c.indexOf(e) > 0 ? e : "none";
1433
+ this.$container.backgroundColor = h.indexOf(e) > 0 ? e : "none";
1303
1434
  break;
1304
1435
  case "background-gradient":
1305
1436
  this.$container.gradient = this.gradient;
@@ -1529,29 +1660,338 @@ class Q extends HTMLElement {
1529
1660
  this.setAttribute("border-side--laptop", t);
1530
1661
  }
1531
1662
  }
1532
- customElements.get("px-section") || customElements.define("px-section", Q);
1533
- const L = new CSSStyleSheet();
1534
- L.replaceSync(O);
1535
- const f = class f extends v {
1663
+ customElements.get("px-section") || customElements.define("px-section", rt);
1664
+ const at = ":host{display:block;--grid-cols: initial;--grid-cols--mobile: initial;--grid-cols--tablet: initial;--grid-cols--laptop: initial;--grid-cols--desktop: initial;--justify-content: initial;--justify-items: initial;--align-content: initial;--align-items: initial}.grid{display:grid;grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items)}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media only screen and (max-width: 767px){.grid{grid-template-columns:repeat(var(--grid-cols--mobile, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media only screen and (min-width: 48em) and (max-width: 64em){.grid{grid-template-columns:repeat(var(--grid-cols--tablet, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media only screen and (min-width: 64.0625em){.grid{grid-template-columns:repeat(var(--grid-cols--laptop, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}", B = new CSSStyleSheet();
1665
+ B.replaceSync(at);
1666
+ const st = [
1667
+ "1",
1668
+ "2",
1669
+ "3",
1670
+ "4",
1671
+ "5",
1672
+ "6",
1673
+ "7",
1674
+ "8",
1675
+ "9",
1676
+ "10",
1677
+ "11",
1678
+ "12"
1679
+ ], nt = [
1680
+ "",
1681
+ "start",
1682
+ "end",
1683
+ "center",
1684
+ "space-between",
1685
+ "space-around",
1686
+ "space-evenly",
1687
+ "stretch"
1688
+ ], dt = ["", "start", "end", "center", "stretch"], lt = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, gt = "px-spacing", bt = d(
1689
+ "gap",
1690
+ lt,
1691
+ v,
1692
+ gt,
1693
+ "--grid-gap"
1694
+ ), $ = class $ extends S {
1695
+ constructor() {
1696
+ super(B, bt), this.template = () => `<div class="grid">
1697
+ <slot></slot>
1698
+ </div>`, this.shadowRoot.innerHTML = this.template();
1699
+ }
1700
+ static get observedAttributes() {
1701
+ return [
1702
+ ...super.observedAttributes,
1703
+ "grid-cols",
1704
+ "grid-cols--mobile",
1705
+ "grid-cols--tablet",
1706
+ "grid-cols--laptop",
1707
+ "justify-content",
1708
+ "justify-items",
1709
+ "align-content",
1710
+ "align-items",
1711
+ "justify-content--mobile",
1712
+ "justify-items--mobile",
1713
+ "align-content--mobile",
1714
+ "align-items--mobile",
1715
+ "justify-content--tablet",
1716
+ "justify-items--tablet",
1717
+ "align-content--tablet",
1718
+ "align-items--tablet",
1719
+ "justify-content--laptop",
1720
+ "justify-items--laptop",
1721
+ "align-content--laptop",
1722
+ "align-items--laptop",
1723
+ "justify-content--desktop",
1724
+ "justify-items--desktop",
1725
+ "align-content--desktop",
1726
+ "align-items--desktop"
1727
+ ];
1728
+ }
1729
+ connectedCallback() {
1730
+ this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
1731
+ }
1732
+ attributeChangedCallback(t, i, e) {
1733
+ if (i !== e)
1734
+ switch (t) {
1735
+ case "grid-cols":
1736
+ case "grid-cols--mobile":
1737
+ case "grid-cols--tablet":
1738
+ case "grid-cols--laptop":
1739
+ this.updateAttribute(t, i, e, st);
1740
+ break;
1741
+ case "justify-content":
1742
+ case "align-content":
1743
+ case "justify-content--mobile":
1744
+ case "align-content--mobile":
1745
+ case "justify-content--tablet":
1746
+ case "align-content--tablet":
1747
+ case "justify-content--laptop":
1748
+ case "align-content--laptop":
1749
+ case "justify-content--desktop":
1750
+ case "align-content--desktop":
1751
+ this.updateAttribute(
1752
+ t,
1753
+ i,
1754
+ e,
1755
+ nt
1756
+ );
1757
+ break;
1758
+ case "justify-items":
1759
+ case "align-items":
1760
+ case "justify-items--mobile":
1761
+ case "align-items--mobile":
1762
+ case "justify-items--tablet":
1763
+ case "align-items--tablet":
1764
+ case "justify-items--laptop":
1765
+ case "align-items--laptop":
1766
+ case "justify-items--desktop":
1767
+ case "align-items--desktop":
1768
+ this.updateAttribute(
1769
+ t,
1770
+ i,
1771
+ e,
1772
+ dt
1773
+ );
1774
+ break;
1775
+ default:
1776
+ super.attributeChangedCallback(t, i, e);
1777
+ break;
1778
+ }
1779
+ }
1780
+ updateGap(t, i, e) {
1781
+ if (!this.checkName(e, i)) {
1782
+ s(
1783
+ `${i} is not an allowed gap value for ${this.tagName.toLowerCase()}`
1784
+ );
1785
+ return;
1786
+ }
1787
+ const o = (r) => {
1788
+ r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
1789
+ "--grid-gap--mobile",
1790
+ `var(--px-spacing-${r}-mobile)`
1791
+ ), this.$el.style.setProperty(
1792
+ "--grid-gap--tablet",
1793
+ `var(--px-spacing-${r}-tablet)`
1794
+ ), this.$el.style.setProperty(
1795
+ "--grid-gap--laptop",
1796
+ `var(--px-spacing-${r}-laptop)`
1797
+ ));
1798
+ };
1799
+ o(t), o(i);
1800
+ }
1801
+ updateAttribute(t, i, e, o) {
1802
+ this.checkName(o, e) ? t === "grid-cols" || t === "grid-cols--mobile" || t === "grid-cols--tablet" || t === "grid-cols--laptop" || t === "grid-cols--desktop" ? this.$el.style.setProperty(`--${t}`, e) : (i !== null && i !== "" && i !== "default" && this.$el.classList.toggle(`${t}-${i}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`)) : s(
1803
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1804
+ );
1805
+ }
1806
+ get gap() {
1807
+ return this.getAttribute("gap");
1808
+ }
1809
+ set gap(t) {
1810
+ this.setAttribute("gap", t);
1811
+ }
1812
+ get gapMobile() {
1813
+ return this.getAttribute("gap--mobile");
1814
+ }
1815
+ set gapMobile(t) {
1816
+ this.setAttribute("gap--mobile", t);
1817
+ }
1818
+ get gapTablet() {
1819
+ return this.getAttribute("gap--tablet");
1820
+ }
1821
+ set gapTablet(t) {
1822
+ this.setAttribute("gap--tablet", t);
1823
+ }
1824
+ get gapLaptop() {
1825
+ return this.getAttribute("gap--laptop");
1826
+ }
1827
+ set gapLaptop(t) {
1828
+ this.setAttribute("gap--laptop", t);
1829
+ }
1830
+ get gridCols() {
1831
+ return this.getAttribute("grid-cols");
1832
+ }
1833
+ set gridCols(t) {
1834
+ this.setAttribute("grid-cols", t);
1835
+ }
1836
+ get gridColsMobile() {
1837
+ return this.getAttribute("grid-cols--mobile");
1838
+ }
1839
+ set gridColsMobile(t) {
1840
+ this.setAttribute("grid-cols--mobile", t);
1841
+ }
1842
+ get gridColsTablet() {
1843
+ return this.getAttribute("grid-cols--tablet");
1844
+ }
1845
+ set gridColsTablet(t) {
1846
+ this.setAttribute("grid-cols--tablet", t);
1847
+ }
1848
+ get gridColsLaptop() {
1849
+ return this.getAttribute("grid-cols--laptop");
1850
+ }
1851
+ set gridColsLaptop(t) {
1852
+ this.setAttribute("grid-cols--laptop", t);
1853
+ }
1854
+ get justifyContent() {
1855
+ return this.getAttribute("justify-content");
1856
+ }
1857
+ set justifyContent(t) {
1858
+ this.setAttribute("justify-content", t);
1859
+ }
1860
+ get justifyItems() {
1861
+ return this.getAttribute("justify-items");
1862
+ }
1863
+ set justifyItems(t) {
1864
+ this.setAttribute("justify-items", t);
1865
+ }
1866
+ get alignContent() {
1867
+ return this.getAttribute("align-content");
1868
+ }
1869
+ set alignContent(t) {
1870
+ this.setAttribute("align-content", t);
1871
+ }
1872
+ get alignItems() {
1873
+ return this.getAttribute("align-items");
1874
+ }
1875
+ set alignItems(t) {
1876
+ this.setAttribute("align-items", t);
1877
+ }
1878
+ get justifyContentMobile() {
1879
+ return this.getAttribute("justify-content--mobile");
1880
+ }
1881
+ set justifyContentMobile(t) {
1882
+ this.setAttribute("justify-content--mobile", t);
1883
+ }
1884
+ get justifyItemsMobile() {
1885
+ return this.getAttribute("justify-items--mobile");
1886
+ }
1887
+ set justifyItemsMobile(t) {
1888
+ this.setAttribute("justify-items--mobile", t);
1889
+ }
1890
+ get alignContentMobile() {
1891
+ return this.getAttribute("align-content--mobile");
1892
+ }
1893
+ set alignContentMobile(t) {
1894
+ this.setAttribute("align-content--mobile", t);
1895
+ }
1896
+ get alignItemsMobile() {
1897
+ return this.getAttribute("align-items--mobile");
1898
+ }
1899
+ set alignItemsMobile(t) {
1900
+ this.setAttribute("align-items--mobile", t);
1901
+ }
1902
+ get justifyContentTablet() {
1903
+ return this.getAttribute("justify-content--tablet");
1904
+ }
1905
+ set justifyContentTablet(t) {
1906
+ this.setAttribute("justify-content--tablet", t);
1907
+ }
1908
+ get justifyItemsTablet() {
1909
+ return this.getAttribute("justify-items--tablet");
1910
+ }
1911
+ set justifyItemsTablet(t) {
1912
+ this.setAttribute("justify-items--tablet", t);
1913
+ }
1914
+ get alignContentTablet() {
1915
+ return this.getAttribute("align-content--tablet");
1916
+ }
1917
+ set alignContentTablet(t) {
1918
+ this.setAttribute("align-content--tablet", t);
1919
+ }
1920
+ get alignItemsTablet() {
1921
+ return this.getAttribute("align-items--tablet");
1922
+ }
1923
+ set alignItemsTablet(t) {
1924
+ this.setAttribute("align-items--tablet", t);
1925
+ }
1926
+ get justifyContentLaptop() {
1927
+ return this.getAttribute("justify-content--laptop");
1928
+ }
1929
+ set justifyContentLaptop(t) {
1930
+ this.setAttribute("justify-content--laptop", t);
1931
+ }
1932
+ get justifyItemsLaptop() {
1933
+ return this.getAttribute("justify-items--laptop");
1934
+ }
1935
+ set justifyItemsLaptop(t) {
1936
+ this.setAttribute("justify-items--laptop", t);
1937
+ }
1938
+ get alignContentLaptop() {
1939
+ return this.getAttribute("align-content--laptop");
1940
+ }
1941
+ set alignContentLaptop(t) {
1942
+ this.setAttribute("align-content--laptop", t);
1943
+ }
1944
+ get alignItemsLaptop() {
1945
+ return this.getAttribute("align-items--laptop");
1946
+ }
1947
+ set alignItemsLaptop(t) {
1948
+ this.setAttribute("align-items--laptop", t);
1949
+ }
1950
+ get justifyContentDesktop() {
1951
+ return this.getAttribute("justify-content--desktop");
1952
+ }
1953
+ set justifyContentDesktop(t) {
1954
+ this.setAttribute("justify-content--desktop", t);
1955
+ }
1956
+ get justifyItemsDesktop() {
1957
+ return this.getAttribute("justify-items--desktop");
1958
+ }
1959
+ set justifyItemsDesktop(t) {
1960
+ this.setAttribute("justify-items--desktop", t);
1961
+ }
1962
+ get alignContentDesktop() {
1963
+ return this.getAttribute("align-content--desktop");
1964
+ }
1965
+ set alignContentDesktop(t) {
1966
+ this.setAttribute("align-content--desktop", t);
1967
+ }
1968
+ get alignItemsDesktop() {
1969
+ return this.getAttribute("align-items--desktop");
1970
+ }
1971
+ set alignItemsDesktop(t) {
1972
+ this.setAttribute("align-items--desktop", t);
1973
+ }
1974
+ };
1975
+ $.nativeName = "div";
1976
+ let f = $;
1977
+ customElements.get("px-grid") || customElements.define("px-grid", f);
1978
+ const z = new CSSStyleSheet();
1979
+ z.replaceSync(E);
1980
+ const j = class j extends S {
1536
1981
  constructor() {
1537
- super(L), this.template = () => `<div class="content-header">
1982
+ super(z), this.template = () => `<div class="content-header">
1538
1983
  <div class="contrast-helper"></div>
1539
1984
  <px-section padding-block="l">
1540
- <px-grid gap="none">
1541
- <px-container padding="none" border-radius="none" background-color="none" >
1542
- <div class="content-header-content">
1543
- <px-vstack gap="heading-to-subtitle">
1544
- <px-h1 variant="title-3xl"><slot></slot></px-h1>
1545
- <slot name="subtitle"></slot>
1546
- </px-vstack>
1547
- ${this.$patchDescriptionSlot ? `<px-stack gap="s" direction="row" direction--mobile="column">
1548
- <slot name="patch" shrink></slot>
1549
- <slot name="patch-description"></slot>
1550
- </px-stack>` : ""}
1551
- </div>
1552
- </px-container>
1553
- </px-grid>
1554
- ${this.$overlapSlot ? '<slot name="overlap" slot="overlap"></slot>' : ""}
1985
+ <px-grid gap="none">
1986
+ <px-container padding="none" border-radius="none" background-color="none" >
1987
+ <div class="content-header-content">
1988
+ <px-vstack gap="heading-to-subtitle">
1989
+ <px-h1><slot></slot></px-h1>
1990
+ <slot name="subtitle"></slot>
1991
+ </px-vstack>
1992
+ </div>
1993
+ </px-container>
1994
+ </px-grid>
1555
1995
  </px-section>
1556
1996
  </div>`, this.shadowRoot.innerHTML = this.template();
1557
1997
  }
@@ -1576,17 +2016,27 @@ const f = class f extends v {
1576
2016
  ];
1577
2017
  }
1578
2018
  connectedCallback() {
1579
- var t;
1580
- (t = super.connectedCallback) == null || t.call(this), this.$subtitleSlot && this.$subtitleSlot.setAttribute("variant", "subtitle"), this.$patchDescriptionSlot && (this.$patchDescriptionSlot.localName === "px-p" && this.$patchDescriptionSlot.setAttribute("variant", "default"), (this.$patchDescriptionSlot.localName === "px-p" || this.$patchDescriptionSlot.localName === "px-span") && (this.$patchDescriptionSlot.setAttribute("font-size", "body-l"), this.$patchDescriptionSlot.removeAttribute("font-weight"), this.$patchDescriptionSlot.removeAttribute("color")), this.$patchDescriptionSlot.localName === "px-price" && this.$patchDescriptionSlot.setAttribute("size", "m")), this.createGridding();
1581
- }
1582
- attributeChangedCallback(t, r, e) {
1583
- if (r !== e)
2019
+ this.$patchDescriptionSlot && this.shadowRoot.querySelector(
2020
+ ".content-header-content"
2021
+ ).insertAdjacentHTML(
2022
+ "beforeend",
2023
+ `<px-stack gap="s" direction="row" direction--mobile="column">
2024
+ <slot name="patch" shrink></slot>
2025
+ <slot name="patch-description"></slot>
2026
+ </px-stack>`
2027
+ ), this.$overlapSlot && this.shadowRoot.querySelector("px-section").insertAdjacentHTML(
2028
+ "beforeend",
2029
+ '<slot name="overlap" slot="overlap"></slot>'
2030
+ ), this.$subtitleSlot && this.$subtitleSlot.setAttribute("variant", "subtitle"), this.$patchDescriptionSlot && (this.$patchDescriptionSlot.localName === "px-p" && this.$patchDescriptionSlot.setAttribute("variant", "default"), (this.$patchDescriptionSlot.localName === "px-p" || this.$patchDescriptionSlot.localName === "px-span") && (this.$patchDescriptionSlot.setAttribute("font-size", "body-l"), this.$patchDescriptionSlot.removeAttribute("font-weight"), this.$patchDescriptionSlot.removeAttribute("color")), this.$patchDescriptionSlot.localName === "px-price" && this.$patchDescriptionSlot.setAttribute("size", "m")), this.createGridding();
2031
+ }
2032
+ attributeChangedCallback(t, i, e) {
2033
+ if (i !== e)
1584
2034
  switch (t) {
1585
2035
  case "background-color":
1586
- this.$section.backgroundColor = c.indexOf(e) > 0 ? e : "none";
2036
+ this.$section.backgroundColor = h.indexOf(e) > 0 ? e : "none";
1587
2037
  break;
1588
2038
  case "background-gradient":
1589
- this.$section.gradient = A.indexOf(e) > 0 ? e : "none";
2039
+ this.$section.gradient = C.indexOf(e) > 0 ? e : "none";
1590
2040
  break;
1591
2041
  case "background-image":
1592
2042
  this.$section.backgroundImage = e;
@@ -1601,7 +2051,7 @@ const f = class f extends v {
1601
2051
  this.$section.backgroundImageLaptop = e;
1602
2052
  break;
1603
2053
  case "background-size":
1604
- this.$section.backgroundSize = x.indexOf(e) > 0 ? e : "";
2054
+ this.$section.backgroundSize = w.indexOf(e) > 0 ? e : "";
1605
2055
  break;
1606
2056
  case "background-position":
1607
2057
  this.$section.backgroundPosition = e;
@@ -1610,7 +2060,7 @@ const f = class f extends v {
1610
2060
  case "has-gridding--mobile":
1611
2061
  case "has-gridding--tablet":
1612
2062
  case "has-gridding--laptop":
1613
- this.createGridding();
2063
+ this.createGridding(e);
1614
2064
  break;
1615
2065
  case "inverted":
1616
2066
  for (let o = 0; o < this.$children.length; o++)
@@ -1618,33 +2068,35 @@ const f = class f extends v {
1618
2068
  this.$h1.toggleAttribute("inverted", e !== null), this.$el.toggleAttribute("inverted", e !== null);
1619
2069
  break;
1620
2070
  default:
1621
- super.attributeChangedCallback(t, r, e);
2071
+ super.attributeChangedCallback(t, i, e);
1622
2072
  break;
1623
2073
  }
1624
2074
  }
1625
- createGridding() {
1626
- const t = [
1627
- { prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
2075
+ createGridding(t) {
2076
+ const i = [
2077
+ { prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
1628
2078
  {
1629
2079
  prop: "hasGriddingMobile",
1630
- gridProp: "gridColsMobile",
2080
+ gridAttr: "grid-cols--mobile",
1631
2081
  attr: "col-span--mobile"
1632
2082
  },
1633
2083
  {
1634
2084
  prop: "hasGriddingTablet",
1635
- gridProp: "gridColsTablet",
2085
+ gridAttr: "grid-cols--tablet",
1636
2086
  attr: "col-span--tablet"
1637
2087
  },
1638
2088
  {
1639
2089
  prop: "hasGriddingLaptop",
1640
- gridProp: "gridColsLaptop",
2090
+ gridAttr: "grid-cols--laptop",
1641
2091
  attr: "col-span--laptop"
1642
2092
  }
1643
- ], r = this.shadowRoot.querySelector(
2093
+ ], e = this.shadowRoot.querySelector(
1644
2094
  "px-grid > px-container"
1645
2095
  );
1646
- t.forEach(({ prop: e, gridProp: o, attr: i }) => {
1647
- this[e] && (this.$grid[o] = "3", r.setAttribute(i, "2"));
2096
+ t !== null ? i.forEach(({ prop: o, gridAttr: r, attr: a }) => {
2097
+ this[o] && (this.$grid.setAttribute(r, "3"), e == null || e.setAttribute(a, "2"));
2098
+ }) : i.forEach(({ gridAttr: o, attr: r }) => {
2099
+ this.$grid.setAttribute(o, "1"), e == null || e.setAttribute(r, "1");
1648
2100
  });
1649
2101
  }
1650
2102
  get $grid() {
@@ -1765,9 +2217,9 @@ const f = class f extends v {
1765
2217
  t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
1766
2218
  }
1767
2219
  };
1768
- f.nativeName = "div";
1769
- let h = f;
1770
- customElements.get("px-content-header") || customElements.define("px-content-header", h);
2220
+ j.nativeName = "div";
2221
+ let k = j;
2222
+ customElements.get("px-content-header") || customElements.define("px-content-header", k);
1771
2223
  export {
1772
- h as ContentHeader
2224
+ k as ContentHeader
1773
2225
  };