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

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 +378 -195
  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 y, WithExtraAttributes as x, boxShadowValues as P, backgroundSizeValues as S, noBorderRadiusValues as H, borderRadiusValues as D, borderSideValues as O, borderValues as E, gradientValues as m, log as s, backgroundColorValues as u, borderColorValues as C, checkName as h, AttributeBreakpointHandlerDelegate as G, PxElement as L } 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();
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)}}', T = new CSSStyleSheet();
4
4
  T.replaceSync(X);
5
- const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b = "px-padding", v = class v extends f {
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
+ y,
74
+ "px-spacing",
75
+ void 0,
76
+ "subgrid-gap"
77
+ )
78
+ ], $ = class $ extends x {
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(T, ...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, E);
117
145
  break;
118
146
  case "border-color":
119
147
  this.updateBorderColor(t, e);
@@ -122,7 +150,7 @@ 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, O);
126
154
  break;
127
155
  case "border-radius":
128
156
  this.updateAttribute(
@@ -140,7 +168,7 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
140
168
  t,
141
169
  i,
142
170
  e,
143
- P
171
+ H
144
172
  );
145
173
  break;
146
174
  case "background-color":
@@ -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
+ S
164
192
  );
165
193
  break;
166
194
  case "background-image":
@@ -173,10 +201,21 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
173
201
  e !== null && e !== "" && (this.$el.style.backgroundPosition = e);
174
202
  break;
175
203
  case "box-shadow":
176
- this.updateAttribute(t, i, e, R);
204
+ this.updateAttribute(t, i, e, P);
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(m, 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 a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${m.join('", "')}".`
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(u, 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 a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${u.join('", "')}".`
267
+ );
225
268
  }
226
269
  updateBorderColor(t, i) {
227
- this.checkName(O, i) ? (this.$el.style.setProperty(
270
+ this.checkName(C, 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 a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${C.join('", "')}".`
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 a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
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 a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
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 (!h(e, i)) {
320
+ s(
321
+ `"${i}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
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 (!h(e, i)) {
344
+ s(
345
+ `"${i}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
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
+ h(o, e) ? this.style.setProperty(`--${t}`, e) : s(
368
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
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,46 +705,86 @@ 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
+ $.nativeName = "div";
752
+ let f = $;
753
+ customElements.get("px-container") || customElements.define("px-container", f);
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))}}', I = new CSSStyleSheet();
755
+ I.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",
647
767
  "flex-start",
768
+ "start",
648
769
  "flex-end",
770
+ "end",
649
771
  "center",
650
772
  "baseline"
651
- ], W = [
773
+ ], K = [
652
774
  "",
653
775
  "default",
654
776
  "flex-start",
777
+ "start",
655
778
  "flex-end",
779
+ "end",
656
780
  "center",
657
781
  "space-between",
658
782
  "space-around",
659
783
  "space-evenly"
660
- ], Y = ["", "default", "nowrap", "wrap", "wrap-reverse"], J = ["", "visible", "hidden", "scroll", "auto"];
661
- class k extends C {
784
+ ], Q = ["", "default", "nowrap", "wrap", "wrap-reverse"], U = ["", "visible", "hidden", "scroll", "auto"];
785
+ class A extends x {
662
786
  constructor() {
663
- super(L), this.overflowXAttributeDelegate = new w(
787
+ super(I), this.overflowXAttributeDelegate = new G(
664
788
  this,
665
789
  "overflow-x",
666
790
  (t) => t,
@@ -714,7 +838,7 @@ class k extends C {
714
838
  case "gap--tablet":
715
839
  case "gap--laptop":
716
840
  case "gap--desktop":
717
- this.updateFlexProperties(t, i, e, S);
841
+ this.updateFlexProperties(t, i, e, y);
718
842
  break;
719
843
  case "justify-content":
720
844
  case "justify-content--mobile":
@@ -725,7 +849,7 @@ class k extends C {
725
849
  t,
726
850
  i,
727
851
  e,
728
- W
852
+ K
729
853
  );
730
854
  break;
731
855
  case "align-items":
@@ -733,28 +857,28 @@ class k extends C {
733
857
  case "align-items--tablet":
734
858
  case "align-items--laptop":
735
859
  case "align-items--desktop":
736
- this.updateFlexProperties(t, i, e, Z);
860
+ this.updateFlexProperties(t, i, e, J);
737
861
  break;
738
862
  case "wrap":
739
863
  case "wrap--mobile":
740
864
  case "wrap--tablet":
741
865
  case "wrap--laptop":
742
866
  case "wrap--desktop":
743
- this.updateFlexProperties(t, i, e, Y);
867
+ this.updateFlexProperties(t, i, e, Q);
744
868
  break;
745
869
  case "direction":
746
870
  case "direction--mobile":
747
871
  case "direction--tablet":
748
872
  case "direction--laptop":
749
873
  case "direction--desktop":
750
- this.updateFlexProperties(t, i, e, _);
874
+ this.updateFlexProperties(t, i, e, Y);
751
875
  break;
752
876
  case "overflow-x":
753
877
  case "overflow-x--mobile":
754
878
  case "overflow-x--tablet":
755
879
  case "overflow-x--laptop":
756
880
  case "overflow-x--desktop":
757
- this.updateOverflowX(t, i, e, J);
881
+ this.updateOverflowX(t, i, e, U);
758
882
  break;
759
883
  default:
760
884
  super.attributeChangedCallback(t, i, e);
@@ -762,8 +886,10 @@ class k extends C {
762
886
  }
763
887
  }
764
888
  updateOverflowX(t, i, e, o) {
765
- if (!j(o, e)) {
766
- console.error(`${e} is not an allowed ${t} value`);
889
+ if (!h(o, e)) {
890
+ s(
891
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
892
+ );
767
893
  return;
768
894
  }
769
895
  this.overflowXAttributeDelegate.attributeChangedCallback(
@@ -773,22 +899,27 @@ class k extends C {
773
899
  );
774
900
  }
775
901
  updateFlexProperties(t, i, e, o) {
776
- this.checkName(o, e) || console.error(`${e} is not a valid value for ${o}`);
902
+ this.checkName(o, e) || s(
903
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
904
+ );
777
905
  const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, c = [];
778
906
  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);
907
+ 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) => {
908
+ this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
781
909
  });
782
910
  else {
783
- const g = t.split("--")[1];
784
- this.updateStyle(a, g, i, o), this.updateStyle(a, g, e, o);
911
+ const b = t.split("--")[1];
912
+ this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
785
913
  }
786
914
  }
787
915
  updateStyle(t, i, e, o) {
788
- e && (t === "gap" && o && o.includes(e) ? this.$el.style.setProperty(
916
+ e && (t === "gap" && o && o.includes(e) ? (this.$el.style.setProperty(
789
917
  `--flex-${t}--${i}-value`,
790
918
  `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
791
- ) : this.$el.style.setProperty(
919
+ ), this.style.setProperty(
920
+ `--host-gap--${i}`,
921
+ `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
922
+ )) : this.$el.style.setProperty(
792
923
  `--flex-${t}--${i}-value`,
793
924
  e
794
925
  ));
@@ -977,8 +1108,8 @@ class k extends C {
977
1108
  return this.shadowRoot.querySelector(".flex-container");
978
1109
  }
979
1110
  }
980
- customElements.get("px-stack") || customElements.define("px-stack", k);
981
- class K extends k {
1111
+ customElements.get("px-stack") || customElements.define("px-stack", A);
1112
+ class V extends A {
982
1113
  constructor() {
983
1114
  super();
984
1115
  }
@@ -986,8 +1117,8 @@ class K extends k {
986
1117
  super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
987
1118
  }
988
1119
  }
989
- customElements.get("px-vstack") || customElements.define("px-vstack", K);
990
- class Q extends k {
1120
+ customElements.get("px-vstack") || customElements.define("px-vstack", V);
1121
+ class tt extends A {
991
1122
  constructor() {
992
1123
  super();
993
1124
  }
@@ -995,21 +1126,21 @@ class Q extends k {
995
1126
  super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
996
1127
  }
997
1128
  }
998
- customElements.get("px-hstack") || customElements.define("px-hstack", Q);
999
- class U extends HTMLElement {
1129
+ customElements.get("px-hstack") || customElements.define("px-hstack", tt);
1130
+ class et extends HTMLElement {
1000
1131
  constructor() {
1001
1132
  super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
1002
1133
  }
1003
1134
  static get observedAttributes() {
1004
- return ["grow"];
1135
+ return ["grow", "nogap"];
1005
1136
  }
1006
1137
  attributeChangedCallback(t, i, e) {
1007
1138
  t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
1008
1139
  }
1009
1140
  connectedCallback() {
1010
- this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.resizeObserver = new ResizeObserver(() => {
1141
+ this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
1011
1142
  this.handleSizeChange();
1012
- }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck();
1143
+ }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
1013
1144
  }
1014
1145
  disconnectedCallback() {
1015
1146
  var t;
@@ -1036,13 +1167,19 @@ class U extends HTMLElement {
1036
1167
  updateParticipation() {
1037
1168
  this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
1038
1169
  }
1170
+ get nogap() {
1171
+ return this.hasAttribute("nogap");
1172
+ }
1173
+ set nogap(t) {
1174
+ t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
1175
+ }
1039
1176
  }
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 {
1177
+ customElements.get("px-spacer") || customElements.define("px-spacer", et);
1178
+ const it = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", M = new CSSStyleSheet();
1179
+ M.replaceSync(it);
1180
+ class ot extends x {
1044
1181
  constructor() {
1045
- super(I), this.template = (t) => `
1182
+ super(M), this.template = (t) => `
1046
1183
  <px-container border-radius="none" padding="none">
1047
1184
  <px-vstack>
1048
1185
  <px-container id="header-container" border-radius="none">
@@ -1219,7 +1356,7 @@ class V extends C {
1219
1356
  case "background-color":
1220
1357
  this.$bodyContainer.setAttribute(
1221
1358
  "background-color",
1222
- p.indexOf(e) > 0 ? e : "none"
1359
+ u.indexOf(e) > 0 ? e : "none"
1223
1360
  );
1224
1361
  break;
1225
1362
  case "padding-vertical":
@@ -1239,14 +1376,14 @@ class V extends C {
1239
1376
  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
1377
  }
1241
1378
  }
1242
- customElements.get("px-page") === void 0 && customElements.define("px-page", V);
1243
- const M = new CSSStyleSheet();
1244
- M.replaceSync(G);
1245
- class tt extends HTMLElement {
1379
+ customElements.get("px-page") === void 0 && customElements.define("px-page", ot);
1380
+ const B = new CSSStyleSheet();
1381
+ B.replaceSync(N);
1382
+ class rt extends HTMLElement {
1246
1383
  constructor() {
1247
1384
  super(), this.template = () => `
1248
- <px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
1249
- <div class="content-wrapper ${this.$slotOverlap ? "overlapped" : ""}">
1385
+ <px-container border-radius="none" padding-inline="none">
1386
+ <div class="content-wrapper">
1250
1387
  <px-vstack gap="heading-to-content">
1251
1388
  <slot name="heading"></slot>
1252
1389
  <px-vstack gap="none">
@@ -1258,11 +1395,14 @@ class tt extends HTMLElement {
1258
1395
  <div class="content-wrapper">
1259
1396
  <slot name="overlap"></slot>
1260
1397
  </div>
1261
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [M];
1398
+ `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [B];
1262
1399
  }
1263
1400
  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");
1401
+ var t, i;
1402
+ 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(
1403
+ "slotchange",
1404
+ this.toggleOverlapSpacing
1405
+ );
1266
1406
  }
1267
1407
  static get observedAttributes() {
1268
1408
  return [
@@ -1293,14 +1433,11 @@ class tt extends HTMLElement {
1293
1433
  "border-side--laptop"
1294
1434
  ];
1295
1435
  }
1296
- get $container() {
1297
- return this.shadowRoot.querySelector("px-container");
1298
- }
1299
1436
  attributeChangedCallback(t, i, e) {
1300
1437
  if (i !== e)
1301
1438
  switch (t) {
1302
1439
  case "background-color":
1303
- this.$container.backgroundColor = p.indexOf(e) > 0 ? e : "none";
1440
+ this.$container.backgroundColor = u.indexOf(e) > 0 ? e : "none";
1304
1441
  break;
1305
1442
  case "background-gradient":
1306
1443
  this.$container.gradient = this.gradient;
@@ -1376,9 +1513,56 @@ class tt extends HTMLElement {
1376
1513
  break;
1377
1514
  }
1378
1515
  }
1516
+ disconnectedCallback() {
1517
+ var t, i;
1518
+ (t = this.$slotHeading) == null || t.removeEventListener(
1519
+ "slotchange",
1520
+ this.setHeadingSpacing
1521
+ ), (i = this.$slotOverlap) == null || i.removeEventListener(
1522
+ "slotchange",
1523
+ this.toggleOverlapSpacing
1524
+ );
1525
+ }
1526
+ toggleOverlapSpacing() {
1527
+ const t = this.$slotOverlap, i = this.$mainContentWrapper;
1528
+ if (!t || !i) return;
1529
+ const o = t.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
1530
+ i.classList.toggle("overlapped", o);
1531
+ }
1532
+ isNotEmptyNode(t) {
1533
+ return t.nodeType === Node.ELEMENT_NODE ? !0 : t.nodeType === Node.TEXT_NODE ? (t.textContent ?? "").trim().length > 0 : !1;
1534
+ }
1535
+ setHeadingSpacing() {
1536
+ var e;
1537
+ const t = this.$slotHeading, i = (e = this.shadowRoot) == null ? void 0 : e.querySelector("px-vstack");
1538
+ t && i && (t.assignedElements().length > 0 ? i.setAttribute("gap", "heading-to-content") : i.setAttribute("gap", "none"));
1539
+ }
1540
+ get $container() {
1541
+ var t;
1542
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector("px-container");
1543
+ }
1544
+ get $mainContentWrapper() {
1545
+ var t;
1546
+ return (t = this.$container) == null ? void 0 : t.querySelector(".content-wrapper");
1547
+ }
1379
1548
  get $slotOverlap() {
1549
+ var t;
1550
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1551
+ 'slot[name="overlap"]'
1552
+ );
1553
+ }
1554
+ get $slottedOverlap() {
1380
1555
  return this.querySelector('[slot="overlap"]');
1381
1556
  }
1557
+ get $slotHeading() {
1558
+ var t;
1559
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1560
+ 'slot[name="heading"]'
1561
+ );
1562
+ }
1563
+ get $slottedHeading() {
1564
+ return this.querySelector('[slot="heading"]');
1565
+ }
1382
1566
  get backgroundColor() {
1383
1567
  return this.getAttribute("background-color") || "none";
1384
1568
  }
@@ -1530,10 +1714,10 @@ class tt extends HTMLElement {
1530
1714
  this.setAttribute("border-side--laptop", t);
1531
1715
  }
1532
1716
  }
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 = [
1717
+ customElements.get("px-section") || customElements.define("px-section", rt);
1718
+ 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}}", z = new CSSStyleSheet();
1719
+ z.replaceSync(at);
1720
+ const st = [
1537
1721
  "1",
1538
1722
  "2",
1539
1723
  "3",
@@ -1546,7 +1730,7 @@ const it = [
1546
1730
  "10",
1547
1731
  "11",
1548
1732
  "12"
1549
- ], ot = [
1733
+ ], nt = [
1550
1734
  "",
1551
1735
  "start",
1552
1736
  "end",
@@ -1555,25 +1739,17 @@ const it = [
1555
1739
  "space-around",
1556
1740
  "space-evenly",
1557
1741
  "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 {
1742
+ ], dt = ["", "start", "end", "center", "stretch"], lt = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, gt = "px-spacing", pt = d(
1743
+ "gap",
1744
+ lt,
1745
+ y,
1746
+ gt,
1747
+ "--grid-gap"
1748
+ ), w = class w extends L {
1559
1749
  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">
1750
+ super(z, pt), this.template = () => `<div class="grid">
1570
1751
  <slot></slot>
1571
- </div>`, this.gapAttributeDelegate = new w(
1572
- this,
1573
- "gap",
1574
- (t) => t,
1575
- "--gap"
1576
- ), this.shadowRoot.innerHTML = this.template();
1752
+ </div>`, this.shadowRoot.innerHTML = this.template();
1577
1753
  }
1578
1754
  static get observedAttributes() {
1579
1755
  return [
@@ -1605,7 +1781,7 @@ const it = [
1605
1781
  ];
1606
1782
  }
1607
1783
  connectedCallback() {
1608
- super.connectedCallback(), this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
1784
+ this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
1609
1785
  }
1610
1786
  attributeChangedCallback(t, i, e) {
1611
1787
  if (i !== e)
@@ -1614,7 +1790,7 @@ const it = [
1614
1790
  case "grid-cols--mobile":
1615
1791
  case "grid-cols--tablet":
1616
1792
  case "grid-cols--laptop":
1617
- this.updateAttribute(t, i, e, it);
1793
+ this.updateAttribute(t, i, e, st);
1618
1794
  break;
1619
1795
  case "justify-content":
1620
1796
  case "align-content":
@@ -1630,7 +1806,7 @@ const it = [
1630
1806
  t,
1631
1807
  i,
1632
1808
  e,
1633
- ot
1809
+ nt
1634
1810
  );
1635
1811
  break;
1636
1812
  case "justify-items":
@@ -1647,7 +1823,7 @@ const it = [
1647
1823
  t,
1648
1824
  i,
1649
1825
  e,
1650
- rt
1826
+ dt
1651
1827
  );
1652
1828
  break;
1653
1829
  default:
@@ -1657,7 +1833,9 @@ const it = [
1657
1833
  }
1658
1834
  updateGap(t, i, e) {
1659
1835
  if (!this.checkName(e, i)) {
1660
- console.error(`${i} is not a valid gap value`);
1836
+ s(
1837
+ `"${i}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
1838
+ );
1661
1839
  return;
1662
1840
  }
1663
1841
  const o = (r) => {
@@ -1675,7 +1853,9 @@ const it = [
1675
1853
  o(t), o(i);
1676
1854
  }
1677
1855
  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`);
1856
+ 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(
1857
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
1858
+ );
1679
1859
  }
1680
1860
  get gap() {
1681
1861
  return this.getAttribute("gap");
@@ -1846,31 +2026,27 @@ const it = [
1846
2026
  this.setAttribute("align-items--desktop", t);
1847
2027
  }
1848
2028
  };
1849
- y.nativeName = "div";
1850
- let h = y;
1851
- customElements.get("px-grid") || customElements.define("px-grid", h);
1852
- const z = new CSSStyleSheet();
1853
- z.replaceSync(q);
1854
- const x = class x extends f {
2029
+ w.nativeName = "div";
2030
+ let k = w;
2031
+ customElements.get("px-grid") || customElements.define("px-grid", k);
2032
+ const R = new CSSStyleSheet();
2033
+ R.replaceSync(q);
2034
+ const j = class j extends L {
1855
2035
  constructor() {
1856
- super(z), this.template = () => `<div class="content-header">
2036
+ super(R), this.template = () => `<div class="content-header">
1857
2037
  <div class="contrast-helper"></div>
1858
2038
  <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>' : ""}
2039
+ <px-grid gap="none">
2040
+ <px-container padding="none" border-radius="none" background-color="none" >
2041
+ <div class="content-header-content">
2042
+ <px-vstack gap="heading-to-subtitle">
2043
+ <px-h1><slot></slot></px-h1>
2044
+ <slot name="subtitle"></slot>
2045
+ </px-vstack>
2046
+ </div>
2047
+ </px-container>
2048
+ </px-grid>
2049
+ <slot name="overlap" slot="overlap"></slot>
1874
2050
  </px-section>
1875
2051
  </div>`, this.shadowRoot.innerHTML = this.template();
1876
2052
  }
@@ -1895,17 +2071,24 @@ const x = class x extends f {
1895
2071
  ];
1896
2072
  }
1897
2073
  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();
2074
+ this.$patchDescriptionSlot && this.shadowRoot.querySelector(
2075
+ ".content-header-content"
2076
+ ).insertAdjacentHTML(
2077
+ "beforeend",
2078
+ `<px-stack gap="s" direction="row" direction--mobile="column">
2079
+ <slot name="patch" shrink></slot>
2080
+ <slot name="patch-description"></slot>
2081
+ </px-stack>`
2082
+ ), 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
2083
  }
1901
2084
  attributeChangedCallback(t, i, e) {
1902
2085
  if (i !== e)
1903
2086
  switch (t) {
1904
2087
  case "background-color":
1905
- this.$section.backgroundColor = p.indexOf(e) > 0 ? e : "none";
2088
+ this.$section.backgroundColor = u.indexOf(e) > 0 ? e : "none";
1906
2089
  break;
1907
2090
  case "background-gradient":
1908
- this.$section.gradient = $.indexOf(e) > 0 ? e : "none";
2091
+ this.$section.gradient = m.indexOf(e) > 0 ? e : "none";
1909
2092
  break;
1910
2093
  case "background-image":
1911
2094
  this.$section.backgroundImage = e;
@@ -1920,7 +2103,7 @@ const x = class x extends f {
1920
2103
  this.$section.backgroundImageLaptop = e;
1921
2104
  break;
1922
2105
  case "background-size":
1923
- this.$section.backgroundSize = A.indexOf(e) > 0 ? e : "";
2106
+ this.$section.backgroundSize = S.indexOf(e) > 0 ? e : "";
1924
2107
  break;
1925
2108
  case "background-position":
1926
2109
  this.$section.backgroundPosition = e;
@@ -1943,29 +2126,29 @@ const x = class x extends f {
1943
2126
  }
1944
2127
  createGridding(t) {
1945
2128
  const i = [
1946
- { prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
2129
+ { prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
1947
2130
  {
1948
2131
  prop: "hasGriddingMobile",
1949
- gridProp: "gridColsMobile",
2132
+ gridAttr: "grid-cols--mobile",
1950
2133
  attr: "col-span--mobile"
1951
2134
  },
1952
2135
  {
1953
2136
  prop: "hasGriddingTablet",
1954
- gridProp: "gridColsTablet",
2137
+ gridAttr: "grid-cols--tablet",
1955
2138
  attr: "col-span--tablet"
1956
2139
  },
1957
2140
  {
1958
2141
  prop: "hasGriddingLaptop",
1959
- gridProp: "gridColsLaptop",
2142
+ gridAttr: "grid-cols--laptop",
1960
2143
  attr: "col-span--laptop"
1961
2144
  }
1962
2145
  ], e = this.shadowRoot.querySelector(
1963
2146
  "px-grid > px-container"
1964
2147
  );
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);
2148
+ t !== null ? i.forEach(({ prop: o, gridAttr: r, attr: a }) => {
2149
+ this[o] && (this.$grid.setAttribute(r, "2"), e == null || e.setAttribute(a, "1"));
2150
+ }) : i.forEach(({ gridAttr: o, attr: r }) => {
2151
+ this.$grid.setAttribute(o, "1"), e == null || e.setAttribute(r, "1");
1969
2152
  });
1970
2153
  }
1971
2154
  get $grid() {
@@ -2086,9 +2269,9 @@ const x = class x extends f {
2086
2269
  t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
2087
2270
  }
2088
2271
  };
2089
- x.nativeName = "div";
2090
- let m = x;
2091
- customElements.get("px-content-header") || customElements.define("px-content-header", m);
2272
+ j.nativeName = "div";
2273
+ let v = j;
2274
+ customElements.get("px-content-header") || customElements.define("px-content-header", v);
2092
2275
  export {
2093
- m as ContentHeader
2276
+ v as ContentHeader
2094
2277
  };
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.101",
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"