@proximus/lavender-content-header 2.0.0-alpha.10 → 2.0.0-alpha.100

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.
Files changed (2) hide show
  1. package/dist/index.es.js +368 -189
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -1,62 +1,88 @@
1
- import { PxElement as f, cssTokenBreakpoints as d, paddingValues as s, boxShadowValues as R, backgroundSizeValues as A, noBorderRadiusValues as P, borderRadiusValues as D, borderSideValues as E, borderValues as H, gradientValues as $, backgroundColorValues as p, borderColorValues as O, checkName as j, WithExtraAttributes as C, AttributeBreakpointHandlerDelegate as w, gapValues as S } from "@proximus/lavender-common";
1
+ import { cssTokenBreakpoints as d, paddingValues as g, gapValues as v, WithExtraAttributes as y, boxShadowValues as R, backgroundSizeValues as j, noBorderRadiusValues as P, borderRadiusValues as H, borderSideValues as D, borderValues as O, gradientValues as C, log as s, backgroundColorValues as h, borderColorValues as E, checkName as u, AttributeBreakpointHandlerDelegate as G, PxElement as S } from "@proximus/lavender-common";
2
2
  import "@proximus/lavender-heading";
3
- const q = ":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))}}", G = ':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)}}', X = ':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}}', T = new CSSStyleSheet();
4
- T.replaceSync(X);
5
- const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b = "px-padding", v = class v extends f {
3
+ const q = ":host{--min-height--mobile: 15.625rem;--min-height--tablet: 17.5rem;--min-height--laptop: 17.5rem;--min-height--desktop: 17.5rem}: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 screen and (min-width: 48rem){.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 screen and (min-width: 64.0625rem){.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))}}", N = ':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 screen and (min-width: 77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media screen and (min-width: 48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media screen and (min-width: 64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', X = ':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)}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (max-width: 47.938rem){.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)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (min-width: 48rem) and (max-width: 64rem){.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)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (min-width: 64.0625rem){.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}}@media screen and (min-width: 90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}', L = new CSSStyleSheet();
4
+ L.replaceSync(X);
5
+ const F = [
6
+ "top-patch",
7
+ "top-neighbor-patch",
8
+ "top-ribbon",
9
+ "top-neighbor-ribbon",
10
+ "top-patch-and-neighbor-ribbon"
11
+ ], _ = [
12
+ "1",
13
+ "2",
14
+ "3",
15
+ "4",
16
+ "5",
17
+ "6",
18
+ "7",
19
+ "8",
20
+ "9",
21
+ "10",
22
+ "11",
23
+ "12"
24
+ ], l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, p = "px-padding", Z = [
25
+ d(
26
+ "padding",
27
+ l,
28
+ g,
29
+ p,
30
+ "--container-padding"
31
+ ),
32
+ d(
33
+ "padding-inline",
34
+ l,
35
+ g,
36
+ p
37
+ ),
38
+ d(
39
+ "padding-block",
40
+ l,
41
+ g,
42
+ p
43
+ ),
44
+ d(
45
+ "padding-top",
46
+ l,
47
+ g,
48
+ p
49
+ ),
50
+ d(
51
+ "padding-right",
52
+ l,
53
+ g,
54
+ p,
55
+ "--container-padding-right"
56
+ ),
57
+ d(
58
+ "padding-bottom",
59
+ l,
60
+ g,
61
+ p
62
+ ),
63
+ d(
64
+ "padding-left",
65
+ l,
66
+ g,
67
+ p,
68
+ "--container-padding-left"
69
+ ),
70
+ d(
71
+ "gap",
72
+ l,
73
+ v,
74
+ "px-spacing",
75
+ void 0,
76
+ "subgrid-gap"
77
+ )
78
+ ], A = class A extends y {
6
79
  constructor() {
7
- super(
8
- T,
9
- d(
10
- "padding",
11
- l,
12
- s,
13
- b,
14
- "--container-padding"
15
- ),
16
- d(
17
- "padding-inline",
18
- l,
19
- s,
20
- b
21
- ),
22
- d(
23
- "padding-block",
24
- l,
25
- s,
26
- b
27
- ),
28
- d(
29
- "padding-top",
30
- l,
31
- s,
32
- b
33
- ),
34
- d(
35
- "padding-right",
36
- l,
37
- s,
38
- b,
39
- "--container-padding-right"
40
- ),
41
- d(
42
- "padding-bottom",
43
- l,
44
- s,
45
- b
46
- ),
47
- d(
48
- "padding-left",
49
- l,
50
- s,
51
- b,
52
- "--container-padding-left"
53
- )
54
- ), this.template = () => `<div class="container">
80
+ super(L, ...Z), this.template = () => `<div class="container">
55
81
  <slot></slot>
56
82
  <slot name="anchor-left"></slot>
57
83
  <slot name="anchor-right"></slot>
58
84
  <slot name="anchor-full"></slot>
59
- </div>`, this._bgObserver = null, this._isInViewport = !1, this.shadowRoot.innerHTML = this.template();
85
+ </div>`, this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, this.shadowRoot.innerHTML = this.template();
60
86
  }
61
87
  static get observedAttributes() {
62
88
  return [
@@ -88,11 +114,13 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
88
114
  "background-position",
89
115
  "box-shadow",
90
116
  "anchor-offset",
91
- "inverted"
117
+ "anchor-spacing",
118
+ "inverted",
119
+ "subgrid-rows"
92
120
  ];
93
121
  }
94
122
  connectedCallback() {
95
- 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(() => {
123
+ this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
96
124
  this.$slotAnchor && this.addAnchorClass();
97
125
  }), this.contentObserver.observe(this, {
98
126
  childList: !0,
@@ -106,14 +134,14 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
106
134
  }), this._bgObserver.observe(this.$el);
107
135
  }
108
136
  disconnectedCallback() {
109
- var t;
110
- (t = this._bgObserver) == null || t.disconnect(), this.contentObserver.disconnect();
137
+ var t, i;
138
+ (t = this._bgObserver) == null || t.disconnect(), (i = this.contentObserver) == null || i.disconnect();
111
139
  }
112
140
  attributeChangedCallback(t, i, e) {
113
141
  if (i !== e)
114
142
  switch (t) {
115
143
  case "border":
116
- this.updateAttribute(t, i, e, H);
144
+ this.updateAttribute(t, i, e, O);
117
145
  break;
118
146
  case "border-color":
119
147
  this.updateBorderColor(t, e);
@@ -122,14 +150,14 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
122
150
  case "border-side--mobile":
123
151
  case "border-side--tablet":
124
152
  case "border-side--laptop":
125
- this.updateAttribute(t, i, e, E);
153
+ this.updateAttribute(t, i, e, D);
126
154
  break;
127
155
  case "border-radius":
128
156
  this.updateAttribute(
129
157
  t,
130
158
  i,
131
159
  e,
132
- D
160
+ H
133
161
  );
134
162
  break;
135
163
  case "no-border-radius":
@@ -160,7 +188,7 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
160
188
  t,
161
189
  i,
162
190
  e,
163
- A
191
+ j
164
192
  );
165
193
  break;
166
194
  case "background-image":
@@ -176,7 +204,18 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
176
204
  this.updateAttribute(t, i, e, R);
177
205
  break;
178
206
  case "anchor-offset":
179
- this.updateAnchorOffset(i, e, s);
207
+ this.updateAnchorOffset(i, e, g);
208
+ break;
209
+ case "anchor-spacing":
210
+ this.updateAnchorSpacing(i, e, F);
211
+ break;
212
+ case "subgrid-rows":
213
+ this.updateSubgridRows(
214
+ t,
215
+ i,
216
+ e,
217
+ _
218
+ );
180
219
  break;
181
220
  default:
182
221
  super.attributeChangedCallback(t, i, e);
@@ -198,7 +237,7 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
198
237
  this.$el.style.setProperty(`--${t}`, `url("${i}")`);
199
238
  }
200
239
  updateGradient(t, i) {
201
- if (this.checkName($, i)) {
240
+ if (this.checkName(C, i)) {
202
241
  const e = this.splitAttrNameFromBreakpoint(t);
203
242
  t = e.attrName;
204
243
  const o = e.breakpoint;
@@ -207,11 +246,13 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
207
246
  `linear-gradient(var(--px-color-background-gradient-${i}))`
208
247
  );
209
248
  } else
210
- console.error(`${i} is not an allowed background-gradient value`);
249
+ s(
250
+ `${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
251
+ );
211
252
  }
212
253
  updateBackgroundColor(t, i) {
213
254
  const e = i.startsWith("surface-");
214
- if (this.checkName(p, i)) {
255
+ if (this.checkName(h, i)) {
215
256
  const o = this.splitAttrNameFromBreakpoint(t), r = o.breakpoint;
216
257
  this.$el.style.setProperty(
217
258
  `--${o.attrName}${r}`,
@@ -221,20 +262,26 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
221
262
  `var(--px-color-background-${i}${e ? "" : "-inverted"})`
222
263
  );
223
264
  } else
224
- console.error(`${i} is not an allowed ${t} value`);
265
+ s(
266
+ `${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
267
+ );
225
268
  }
226
269
  updateBorderColor(t, i) {
227
- this.checkName(O, i) ? (this.$el.style.setProperty(
270
+ this.checkName(E, i) ? (this.$el.style.setProperty(
228
271
  `--${t}`,
229
272
  `var(--px-color-border-${i}-default)`
230
273
  ), this.$el.style.setProperty(
231
274
  `--${t}-inverted`,
232
275
  `var(--px-color-border-${i}-inverted)`
233
- )) : console.error(`${i} is not an allowed ${t} value`);
276
+ )) : s(
277
+ `${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
278
+ );
234
279
  }
235
280
  updateNoBorderRadius(t, i, e, o) {
236
281
  if (!this.checkName(o, e))
237
- console.error(`${e} is not an allowed ${t} value`);
282
+ s(
283
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
284
+ );
238
285
  else {
239
286
  const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
240
287
  i !== null && i !== "" && this.$el.classList.toggle(
@@ -246,7 +293,9 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
246
293
  }
247
294
  updateAttribute(t, i, e, o) {
248
295
  if (!this.checkName(o, e))
249
- console.error(`${e} is not an allowed ${t} value`);
296
+ s(
297
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
298
+ );
250
299
  else {
251
300
  const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
252
301
  i !== null && i !== "" && this.$el.classList.toggle(
@@ -267,8 +316,10 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
267
316
  return { attrName: t, breakpoint: i };
268
317
  }
269
318
  updateAnchorOffset(t, i, e) {
270
- if (!j(e, i)) {
271
- console.error(`${i} is not a valid anchor-offset value`);
319
+ if (!u(e, i)) {
320
+ s(
321
+ `${i} is not a valid anchor-offset value for ${this.tagName.toLowerCase()}`
322
+ );
272
323
  return;
273
324
  }
274
325
  const o = (r) => {
@@ -288,6 +339,39 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
288
339
  addAnchorClass() {
289
340
  this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
290
341
  }
342
+ updateAnchorSpacing(t, i, e) {
343
+ if (!u(e, i)) {
344
+ s(
345
+ `${i} is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}`
346
+ );
347
+ return;
348
+ }
349
+ const o = (r) => {
350
+ r !== null && r !== "" && r !== "default" && (this.style.setProperty(
351
+ "--container-anchor-spacing--mobile",
352
+ `var(--px-spacing-${r}-mobile)`
353
+ ), this.style.setProperty(
354
+ "--container-anchor-spacing--tablet",
355
+ `var(--px-spacing-${r}-tablet)`
356
+ ), this.style.setProperty(
357
+ "--container-anchor-spacing--laptop",
358
+ `var(--px-spacing-${r}-laptop)`
359
+ ), this.style.setProperty(
360
+ "--container-anchor-spacing--desktop",
361
+ `var(--px-spacing-${r}-desktop)`
362
+ ));
363
+ };
364
+ o(t), o(i);
365
+ }
366
+ updateSubgridRows(t, i, e, o) {
367
+ u(o, e) ? this.style.setProperty(`--${t}`, e) : s(
368
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
369
+ );
370
+ }
371
+ get $el() {
372
+ var t;
373
+ return (t = this == null ? void 0 : this.shadowRoot) == null ? void 0 : t.querySelector(".container");
374
+ }
291
375
  get $slotAnchor() {
292
376
  return this.querySelector('[slot^="anchor"]');
293
377
  }
@@ -621,26 +705,62 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
621
705
  set anchorOffset(t) {
622
706
  this.setAttribute("anchor-offset", t);
623
707
  }
708
+ get anchorSpacing() {
709
+ return this.getAttribute("anchor-spacing");
710
+ }
711
+ set anchorSpacing(t) {
712
+ this.setAttribute("anchor-spacing", t);
713
+ }
624
714
  get inverted() {
625
- return this.getAttribute("inverted");
715
+ return this.hasAttribute("inverted");
626
716
  }
627
717
  set inverted(t) {
628
- this.setAttribute("inverted", t);
718
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
719
+ }
720
+ get subgridRows() {
721
+ return this.getAttribute("subgrid-rows");
722
+ }
723
+ set subgridRows(t) {
724
+ this.setAttribute("subgrid-rows", t);
725
+ }
726
+ get subgridGap() {
727
+ return this.getAttribute("subgrid-gap");
728
+ }
729
+ set subgridGap(t) {
730
+ this.setAttribute("subgrid-gap", t);
731
+ }
732
+ get subgridGapMobile() {
733
+ return this.getAttribute("subgrid-gap--mobile");
734
+ }
735
+ set subgridGapMobile(t) {
736
+ this.setAttribute("subgrid-gap--mobile", t);
737
+ }
738
+ get subgridGapTablet() {
739
+ return this.getAttribute("subgrid-gap--tablet");
740
+ }
741
+ set subgridGapTablet(t) {
742
+ this.setAttribute("subgrid-gap--tablet", t);
743
+ }
744
+ get subgridGapLaptop() {
745
+ return this.getAttribute("subgrid-gap--laptop");
746
+ }
747
+ set subgridGapLaptop(t) {
748
+ this.setAttribute("subgrid-gap--laptop", t);
629
749
  }
630
750
  };
631
- v.nativeName = "div";
632
- let u = v;
633
- customElements.get("px-container") || customElements.define("px-container", u);
634
- const F = ':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))}}', L = new CSSStyleSheet();
635
- L.replaceSync(F);
636
- const _ = [
751
+ A.nativeName = "div";
752
+ let m = A;
753
+ customElements.get("px-container") || customElements.define("px-container", m);
754
+ 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 screen and (max-width: 47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 48rem){.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 screen and (min-width: 48rem) and (max-width: 64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 64.0625rem){.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 screen and (min-width: 64.0625rem) and (max-width: 90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media screen and (min-width: 90.0625rem){.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();
755
+ T.replaceSync(W);
756
+ const Y = [
637
757
  "",
638
758
  "default",
639
759
  "row",
640
760
  "row-reverse",
641
761
  "column",
642
762
  "column-reverse"
643
- ], Z = [
763
+ ], J = [
644
764
  "",
645
765
  "default",
646
766
  "stretch",
@@ -648,7 +768,7 @@ const _ = [
648
768
  "flex-end",
649
769
  "center",
650
770
  "baseline"
651
- ], W = [
771
+ ], K = [
652
772
  "",
653
773
  "default",
654
774
  "flex-start",
@@ -657,10 +777,10 @@ const _ = [
657
777
  "space-between",
658
778
  "space-around",
659
779
  "space-evenly"
660
- ], Y = ["", "default", "nowrap", "wrap", "wrap-reverse"], J = ["", "visible", "hidden", "scroll", "auto"];
661
- class k extends C {
780
+ ], Q = ["", "default", "nowrap", "wrap", "wrap-reverse"], U = ["", "visible", "hidden", "scroll", "auto"];
781
+ class x extends y {
662
782
  constructor() {
663
- super(L), this.overflowXAttributeDelegate = new w(
783
+ super(T), this.overflowXAttributeDelegate = new G(
664
784
  this,
665
785
  "overflow-x",
666
786
  (t) => t,
@@ -714,7 +834,7 @@ class k extends C {
714
834
  case "gap--tablet":
715
835
  case "gap--laptop":
716
836
  case "gap--desktop":
717
- this.updateFlexProperties(t, i, e, S);
837
+ this.updateFlexProperties(t, i, e, v);
718
838
  break;
719
839
  case "justify-content":
720
840
  case "justify-content--mobile":
@@ -725,7 +845,7 @@ class k extends C {
725
845
  t,
726
846
  i,
727
847
  e,
728
- W
848
+ K
729
849
  );
730
850
  break;
731
851
  case "align-items":
@@ -733,28 +853,28 @@ class k extends C {
733
853
  case "align-items--tablet":
734
854
  case "align-items--laptop":
735
855
  case "align-items--desktop":
736
- this.updateFlexProperties(t, i, e, Z);
856
+ this.updateFlexProperties(t, i, e, J);
737
857
  break;
738
858
  case "wrap":
739
859
  case "wrap--mobile":
740
860
  case "wrap--tablet":
741
861
  case "wrap--laptop":
742
862
  case "wrap--desktop":
743
- this.updateFlexProperties(t, i, e, Y);
863
+ this.updateFlexProperties(t, i, e, Q);
744
864
  break;
745
865
  case "direction":
746
866
  case "direction--mobile":
747
867
  case "direction--tablet":
748
868
  case "direction--laptop":
749
869
  case "direction--desktop":
750
- this.updateFlexProperties(t, i, e, _);
870
+ this.updateFlexProperties(t, i, e, Y);
751
871
  break;
752
872
  case "overflow-x":
753
873
  case "overflow-x--mobile":
754
874
  case "overflow-x--tablet":
755
875
  case "overflow-x--laptop":
756
876
  case "overflow-x--desktop":
757
- this.updateOverflowX(t, i, e, J);
877
+ this.updateOverflowX(t, i, e, U);
758
878
  break;
759
879
  default:
760
880
  super.attributeChangedCallback(t, i, e);
@@ -762,8 +882,10 @@ class k extends C {
762
882
  }
763
883
  }
764
884
  updateOverflowX(t, i, e, o) {
765
- if (!j(o, e)) {
766
- console.error(`${e} is not an allowed ${t} value`);
885
+ if (!u(o, e)) {
886
+ s(
887
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
888
+ );
767
889
  return;
768
890
  }
769
891
  this.overflowXAttributeDelegate.attributeChangedCallback(
@@ -773,22 +895,27 @@ class k extends C {
773
895
  );
774
896
  }
775
897
  updateFlexProperties(t, i, e, o) {
776
- this.checkName(o, e) || console.error(`${e} is not a valid value for ${o}`);
898
+ this.checkName(o, e) || s(
899
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
900
+ );
777
901
  const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, c = [];
778
902
  if (!r)
779
- 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((g) => {
780
- this.updateStyle(a, g, i, o), this.updateStyle(a, g, e, o);
903
+ 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((b) => {
904
+ this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
781
905
  });
782
906
  else {
783
- const g = t.split("--")[1];
784
- this.updateStyle(a, g, i, o), this.updateStyle(a, g, e, o);
907
+ const b = t.split("--")[1];
908
+ this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
785
909
  }
786
910
  }
787
911
  updateStyle(t, i, e, o) {
788
- e && (t === "gap" && o && o.includes(e) ? this.$el.style.setProperty(
912
+ e && (t === "gap" && o && o.includes(e) ? (this.$el.style.setProperty(
789
913
  `--flex-${t}--${i}-value`,
790
914
  `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
791
- ) : this.$el.style.setProperty(
915
+ ), this.style.setProperty(
916
+ `--host-gap--${i}`,
917
+ `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
918
+ )) : this.$el.style.setProperty(
792
919
  `--flex-${t}--${i}-value`,
793
920
  e
794
921
  ));
@@ -977,8 +1104,8 @@ class k extends C {
977
1104
  return this.shadowRoot.querySelector(".flex-container");
978
1105
  }
979
1106
  }
980
- customElements.get("px-stack") || customElements.define("px-stack", k);
981
- class K extends k {
1107
+ customElements.get("px-stack") || customElements.define("px-stack", x);
1108
+ class V extends x {
982
1109
  constructor() {
983
1110
  super();
984
1111
  }
@@ -986,8 +1113,8 @@ class K extends k {
986
1113
  super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
987
1114
  }
988
1115
  }
989
- customElements.get("px-vstack") || customElements.define("px-vstack", K);
990
- class Q extends k {
1116
+ customElements.get("px-vstack") || customElements.define("px-vstack", V);
1117
+ class tt extends x {
991
1118
  constructor() {
992
1119
  super();
993
1120
  }
@@ -995,21 +1122,21 @@ class Q extends k {
995
1122
  super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
996
1123
  }
997
1124
  }
998
- customElements.get("px-hstack") || customElements.define("px-hstack", Q);
999
- class U extends HTMLElement {
1125
+ customElements.get("px-hstack") || customElements.define("px-hstack", tt);
1126
+ class et extends HTMLElement {
1000
1127
  constructor() {
1001
1128
  super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
1002
1129
  }
1003
1130
  static get observedAttributes() {
1004
- return ["grow"];
1131
+ return ["grow", "nogap"];
1005
1132
  }
1006
1133
  attributeChangedCallback(t, i, e) {
1007
1134
  t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
1008
1135
  }
1009
1136
  connectedCallback() {
1010
- this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.resizeObserver = new ResizeObserver(() => {
1137
+ this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
1011
1138
  this.handleSizeChange();
1012
- }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck();
1139
+ }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
1013
1140
  }
1014
1141
  disconnectedCallback() {
1015
1142
  var t;
@@ -1036,11 +1163,17 @@ class U extends HTMLElement {
1036
1163
  updateParticipation() {
1037
1164
  this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
1038
1165
  }
1166
+ get nogap() {
1167
+ return this.hasAttribute("nogap");
1168
+ }
1169
+ set nogap(t) {
1170
+ t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
1171
+ }
1039
1172
  }
1040
- customElements.get("px-spacer") || customElements.define("px-spacer", U);
1041
- const N = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", I = new CSSStyleSheet();
1042
- I.replaceSync(N);
1043
- class V extends C {
1173
+ customElements.get("px-spacer") || customElements.define("px-spacer", et);
1174
+ const it = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", I = new CSSStyleSheet();
1175
+ I.replaceSync(it);
1176
+ class ot extends y {
1044
1177
  constructor() {
1045
1178
  super(I), this.template = (t) => `
1046
1179
  <px-container border-radius="none" padding="none">
@@ -1219,7 +1352,7 @@ class V extends C {
1219
1352
  case "background-color":
1220
1353
  this.$bodyContainer.setAttribute(
1221
1354
  "background-color",
1222
- p.indexOf(e) > 0 ? e : "none"
1355
+ h.indexOf(e) > 0 ? e : "none"
1223
1356
  );
1224
1357
  break;
1225
1358
  case "padding-vertical":
@@ -1239,14 +1372,14 @@ class V extends C {
1239
1372
  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;
1240
1373
  }
1241
1374
  }
1242
- customElements.get("px-page") === void 0 && customElements.define("px-page", V);
1375
+ customElements.get("px-page") === void 0 && customElements.define("px-page", ot);
1243
1376
  const M = new CSSStyleSheet();
1244
- M.replaceSync(G);
1245
- class tt extends HTMLElement {
1377
+ M.replaceSync(N);
1378
+ class rt extends HTMLElement {
1246
1379
  constructor() {
1247
1380
  super(), this.template = () => `
1248
- <px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
1249
- <div class="content-wrapper ${this.$slotOverlap ? "overlapped" : ""}">
1381
+ <px-container border-radius="none" padding-inline="none">
1382
+ <div class="content-wrapper">
1250
1383
  <px-vstack gap="heading-to-content">
1251
1384
  <slot name="heading"></slot>
1252
1385
  <px-vstack gap="none">
@@ -1261,8 +1394,11 @@ class tt extends HTMLElement {
1261
1394
  `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [M];
1262
1395
  }
1263
1396
  connectedCallback() {
1264
- const t = this.querySelector('[slot="heading"]');
1265
- !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");
1397
+ var t, i;
1398
+ this.$container.setAttribute("background-color", this.backgroundColor), !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"), this.setHeadingSpacing = this.setHeadingSpacing.bind(this), this.setHeadingSpacing(), (t = this.$slotHeading) == null || t.addEventListener("slotchange", this.setHeadingSpacing), this.toggleOverlapSpacing = this.toggleOverlapSpacing.bind(this), this.toggleOverlapSpacing(), (i = this.$slotOverlap) == null || i.addEventListener(
1399
+ "slotchange",
1400
+ this.toggleOverlapSpacing
1401
+ );
1266
1402
  }
1267
1403
  static get observedAttributes() {
1268
1404
  return [
@@ -1293,14 +1429,11 @@ class tt extends HTMLElement {
1293
1429
  "border-side--laptop"
1294
1430
  ];
1295
1431
  }
1296
- get $container() {
1297
- return this.shadowRoot.querySelector("px-container");
1298
- }
1299
1432
  attributeChangedCallback(t, i, e) {
1300
1433
  if (i !== e)
1301
1434
  switch (t) {
1302
1435
  case "background-color":
1303
- this.$container.backgroundColor = p.indexOf(e) > 0 ? e : "none";
1436
+ this.$container.backgroundColor = h.indexOf(e) > 0 ? e : "none";
1304
1437
  break;
1305
1438
  case "background-gradient":
1306
1439
  this.$container.gradient = this.gradient;
@@ -1376,9 +1509,56 @@ class tt extends HTMLElement {
1376
1509
  break;
1377
1510
  }
1378
1511
  }
1512
+ disconnectedCallback() {
1513
+ var t, i;
1514
+ (t = this.$slotHeading) == null || t.removeEventListener(
1515
+ "slotchange",
1516
+ this.setHeadingSpacing
1517
+ ), (i = this.$slotOverlap) == null || i.removeEventListener(
1518
+ "slotchange",
1519
+ this.toggleOverlapSpacing
1520
+ );
1521
+ }
1522
+ toggleOverlapSpacing() {
1523
+ const t = this.$slotOverlap, i = this.$mainContentWrapper;
1524
+ if (!t || !i) return;
1525
+ const o = t.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
1526
+ i.classList.toggle("overlapped", o);
1527
+ }
1528
+ isNotEmptyNode(t) {
1529
+ return t.nodeType === Node.ELEMENT_NODE ? !0 : t.nodeType === Node.TEXT_NODE ? (t.textContent ?? "").trim().length > 0 : !1;
1530
+ }
1531
+ setHeadingSpacing() {
1532
+ var e;
1533
+ const t = this.$slotHeading, i = (e = this.shadowRoot) == null ? void 0 : e.querySelector("px-vstack");
1534
+ t && i && (t.assignedElements().length > 0 ? i.setAttribute("gap", "heading-to-content") : i.setAttribute("gap", "none"));
1535
+ }
1536
+ get $container() {
1537
+ var t;
1538
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector("px-container");
1539
+ }
1540
+ get $mainContentWrapper() {
1541
+ var t;
1542
+ return (t = this.$container) == null ? void 0 : t.querySelector(".content-wrapper");
1543
+ }
1379
1544
  get $slotOverlap() {
1545
+ var t;
1546
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1547
+ 'slot[name="overlap"]'
1548
+ );
1549
+ }
1550
+ get $slottedOverlap() {
1380
1551
  return this.querySelector('[slot="overlap"]');
1381
1552
  }
1553
+ get $slotHeading() {
1554
+ var t;
1555
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1556
+ 'slot[name="heading"]'
1557
+ );
1558
+ }
1559
+ get $slottedHeading() {
1560
+ return this.querySelector('[slot="heading"]');
1561
+ }
1382
1562
  get backgroundColor() {
1383
1563
  return this.getAttribute("background-color") || "none";
1384
1564
  }
@@ -1530,10 +1710,10 @@ class tt extends HTMLElement {
1530
1710
  this.setAttribute("border-side--laptop", t);
1531
1711
  }
1532
1712
  }
1533
- customElements.get("px-section") || customElements.define("px-section", tt);
1534
- const et = ":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();
1535
- B.replaceSync(et);
1536
- const it = [
1713
+ customElements.get("px-section") || customElements.define("px-section", rt);
1714
+ 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 screen and (max-width: 47.938rem){.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 screen and (min-width: 48rem) and (max-width: 64rem){.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 screen and (min-width: 64.0625rem){.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();
1715
+ B.replaceSync(at);
1716
+ const st = [
1537
1717
  "1",
1538
1718
  "2",
1539
1719
  "3",
@@ -1546,7 +1726,7 @@ const it = [
1546
1726
  "10",
1547
1727
  "11",
1548
1728
  "12"
1549
- ], ot = [
1729
+ ], nt = [
1550
1730
  "",
1551
1731
  "start",
1552
1732
  "end",
@@ -1555,25 +1735,17 @@ const it = [
1555
1735
  "space-around",
1556
1736
  "space-evenly",
1557
1737
  "stretch"
1558
- ], rt = ["", "start", "end", "center", "stretch"], at = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, nt = "px-spacing", y = class y extends f {
1738
+ ], dt = ["", "start", "end", "center", "stretch"], lt = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, gt = "px-spacing", pt = d(
1739
+ "gap",
1740
+ lt,
1741
+ v,
1742
+ gt,
1743
+ "--grid-gap"
1744
+ ), $ = class $ extends S {
1559
1745
  constructor() {
1560
- super(
1561
- B,
1562
- d(
1563
- "gap",
1564
- at,
1565
- S,
1566
- nt,
1567
- "--grid-gap"
1568
- )
1569
- ), this.template = () => `<div class="grid">
1746
+ super(B, pt), this.template = () => `<div class="grid">
1570
1747
  <slot></slot>
1571
- </div>`, this.gapAttributeDelegate = new w(
1572
- this,
1573
- "gap",
1574
- (t) => t,
1575
- "--gap"
1576
- ), this.shadowRoot.innerHTML = this.template();
1748
+ </div>`, this.shadowRoot.innerHTML = this.template();
1577
1749
  }
1578
1750
  static get observedAttributes() {
1579
1751
  return [
@@ -1605,7 +1777,7 @@ const it = [
1605
1777
  ];
1606
1778
  }
1607
1779
  connectedCallback() {
1608
- super.connectedCallback(), this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
1780
+ this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
1609
1781
  }
1610
1782
  attributeChangedCallback(t, i, e) {
1611
1783
  if (i !== e)
@@ -1614,7 +1786,7 @@ const it = [
1614
1786
  case "grid-cols--mobile":
1615
1787
  case "grid-cols--tablet":
1616
1788
  case "grid-cols--laptop":
1617
- this.updateAttribute(t, i, e, it);
1789
+ this.updateAttribute(t, i, e, st);
1618
1790
  break;
1619
1791
  case "justify-content":
1620
1792
  case "align-content":
@@ -1630,7 +1802,7 @@ const it = [
1630
1802
  t,
1631
1803
  i,
1632
1804
  e,
1633
- ot
1805
+ nt
1634
1806
  );
1635
1807
  break;
1636
1808
  case "justify-items":
@@ -1647,7 +1819,7 @@ const it = [
1647
1819
  t,
1648
1820
  i,
1649
1821
  e,
1650
- rt
1822
+ dt
1651
1823
  );
1652
1824
  break;
1653
1825
  default:
@@ -1657,7 +1829,9 @@ const it = [
1657
1829
  }
1658
1830
  updateGap(t, i, e) {
1659
1831
  if (!this.checkName(e, i)) {
1660
- console.error(`${i} is not a valid gap value`);
1832
+ s(
1833
+ `${i} is not an allowed gap value for ${this.tagName.toLowerCase()}`
1834
+ );
1661
1835
  return;
1662
1836
  }
1663
1837
  const o = (r) => {
@@ -1675,7 +1849,9 @@ const it = [
1675
1849
  o(t), o(i);
1676
1850
  }
1677
1851
  updateAttribute(t, i, e, o) {
1678
- 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}`)) : console.error(`${e} is not an allowed ${t} value`);
1852
+ 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(
1853
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1854
+ );
1679
1855
  }
1680
1856
  get gap() {
1681
1857
  return this.getAttribute("gap");
@@ -1846,31 +2022,27 @@ const it = [
1846
2022
  this.setAttribute("align-items--desktop", t);
1847
2023
  }
1848
2024
  };
1849
- y.nativeName = "div";
1850
- let h = y;
1851
- customElements.get("px-grid") || customElements.define("px-grid", h);
2025
+ $.nativeName = "div";
2026
+ let f = $;
2027
+ customElements.get("px-grid") || customElements.define("px-grid", f);
1852
2028
  const z = new CSSStyleSheet();
1853
2029
  z.replaceSync(q);
1854
- const x = class x extends f {
2030
+ const w = class w extends S {
1855
2031
  constructor() {
1856
2032
  super(z), this.template = () => `<div class="content-header">
1857
2033
  <div class="contrast-helper"></div>
1858
2034
  <px-section padding-block="l">
1859
- <px-grid gap="none">
1860
- <px-container padding="none" border-radius="none" background-color="none" >
1861
- <div class="content-header-content">
1862
- <px-vstack gap="heading-to-subtitle">
1863
- <px-h1 variant="title-3xl"><slot></slot></px-h1>
1864
- <slot name="subtitle"></slot>
1865
- </px-vstack>
1866
- ${this.$patchDescriptionSlot ? `<px-stack gap="s" direction="row" direction--mobile="column">
1867
- <slot name="patch" shrink></slot>
1868
- <slot name="patch-description"></slot>
1869
- </px-stack>` : ""}
1870
- </div>
1871
- </px-container>
1872
- </px-grid>
1873
- ${this.$overlapSlot ? '<slot name="overlap" slot="overlap"></slot>' : ""}
2035
+ <px-grid gap="none">
2036
+ <px-container padding="none" border-radius="none" background-color="none" >
2037
+ <div class="content-header-content">
2038
+ <px-vstack gap="heading-to-subtitle">
2039
+ <px-h1><slot></slot></px-h1>
2040
+ <slot name="subtitle"></slot>
2041
+ </px-vstack>
2042
+ </div>
2043
+ </px-container>
2044
+ </px-grid>
2045
+ <slot name="overlap" slot="overlap"></slot>
1874
2046
  </px-section>
1875
2047
  </div>`, this.shadowRoot.innerHTML = this.template();
1876
2048
  }
@@ -1895,17 +2067,24 @@ const x = class x extends f {
1895
2067
  ];
1896
2068
  }
1897
2069
  connectedCallback() {
1898
- var t;
1899
- (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();
2070
+ this.$patchDescriptionSlot && this.shadowRoot.querySelector(
2071
+ ".content-header-content"
2072
+ ).insertAdjacentHTML(
2073
+ "beforeend",
2074
+ `<px-stack gap="s" direction="row" direction--mobile="column">
2075
+ <slot name="patch" shrink></slot>
2076
+ <slot name="patch-description"></slot>
2077
+ </px-stack>`
2078
+ ), 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();
1900
2079
  }
1901
2080
  attributeChangedCallback(t, i, e) {
1902
2081
  if (i !== e)
1903
2082
  switch (t) {
1904
2083
  case "background-color":
1905
- this.$section.backgroundColor = p.indexOf(e) > 0 ? e : "none";
2084
+ this.$section.backgroundColor = h.indexOf(e) > 0 ? e : "none";
1906
2085
  break;
1907
2086
  case "background-gradient":
1908
- this.$section.gradient = $.indexOf(e) > 0 ? e : "none";
2087
+ this.$section.gradient = C.indexOf(e) > 0 ? e : "none";
1909
2088
  break;
1910
2089
  case "background-image":
1911
2090
  this.$section.backgroundImage = e;
@@ -1920,7 +2099,7 @@ const x = class x extends f {
1920
2099
  this.$section.backgroundImageLaptop = e;
1921
2100
  break;
1922
2101
  case "background-size":
1923
- this.$section.backgroundSize = A.indexOf(e) > 0 ? e : "";
2102
+ this.$section.backgroundSize = j.indexOf(e) > 0 ? e : "";
1924
2103
  break;
1925
2104
  case "background-position":
1926
2105
  this.$section.backgroundPosition = e;
@@ -1943,29 +2122,29 @@ const x = class x extends f {
1943
2122
  }
1944
2123
  createGridding(t) {
1945
2124
  const i = [
1946
- { prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
2125
+ { prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
1947
2126
  {
1948
2127
  prop: "hasGriddingMobile",
1949
- gridProp: "gridColsMobile",
2128
+ gridAttr: "grid-cols--mobile",
1950
2129
  attr: "col-span--mobile"
1951
2130
  },
1952
2131
  {
1953
2132
  prop: "hasGriddingTablet",
1954
- gridProp: "gridColsTablet",
2133
+ gridAttr: "grid-cols--tablet",
1955
2134
  attr: "col-span--tablet"
1956
2135
  },
1957
2136
  {
1958
2137
  prop: "hasGriddingLaptop",
1959
- gridProp: "gridColsLaptop",
2138
+ gridAttr: "grid-cols--laptop",
1960
2139
  attr: "col-span--laptop"
1961
2140
  }
1962
2141
  ], e = this.shadowRoot.querySelector(
1963
2142
  "px-grid > px-container"
1964
2143
  );
1965
- t !== null ? i.forEach(({ prop: o, gridProp: r, attr: a }) => {
1966
- this[o] && (this.$grid[r] = "3", e.setAttribute(a, "2"));
1967
- }) : i.forEach(({ gridProp: o, attr: r }) => {
1968
- this.$grid[o] = "1", e.removeAttribute(r);
2144
+ t !== null ? i.forEach(({ prop: o, gridAttr: r, attr: a }) => {
2145
+ this[o] && (this.$grid.setAttribute(r, "2"), e == null || e.setAttribute(a, "1"));
2146
+ }) : i.forEach(({ gridAttr: o, attr: r }) => {
2147
+ this.$grid.setAttribute(o, "1"), e == null || e.setAttribute(r, "1");
1969
2148
  });
1970
2149
  }
1971
2150
  get $grid() {
@@ -2086,9 +2265,9 @@ const x = class x extends f {
2086
2265
  t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
2087
2266
  }
2088
2267
  };
2089
- x.nativeName = "div";
2090
- let m = x;
2091
- customElements.get("px-content-header") || customElements.define("px-content-header", m);
2268
+ w.nativeName = "div";
2269
+ let k = w;
2270
+ customElements.get("px-content-header") || customElements.define("px-content-header", k);
2092
2271
  export {
2093
- m as ContentHeader
2272
+ k as ContentHeader
2094
2273
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-content-header",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.100",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "clean": "rm -rf dist",
14
14
  "build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
15
15
  "test": "vitest run --coverage",
16
- "wc-manifest": "cem analyze --globs \"src/*\" --config ../custom-elements-manifest.config.js --outdir dist"
16
+ "wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"