@proximus/lavender-content-header 2.0.0-alpha.8 → 2.0.0-alpha.80

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 +316 -184
  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 D, borderSideValues as H, borderValues as G, gradientValues as C, log as s, backgroundColorValues as h, borderColorValues as O, checkName as u, AttributeBreakpointHandlerDelegate as q, PxElement as S } from "@proximus/lavender-common";
2
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 E = ":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 only screen and (min-width: 48em){.content-header-content{gap:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media only screen and (min-width: 64.0625em){.content-header-content{gap:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}", X = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', F = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{display:grid;grid-template-rows:subgrid;grid-row:span var(--subgrid-rows)}: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 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)}: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 only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}: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 only screen and (min-width: 64.0625em) and (max-width: 90em){: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 only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (min-width: 90.0625em){: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(F);
5
+ const _ = [
6
+ "top-patch",
7
+ "top-neighbor-patch",
8
+ "top-ribbon",
9
+ "top-neighbor-ribbon",
10
+ "top-patch-and-neighbor-ribbon"
11
+ ], N = [
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`, b = "px-padding", Z = [
25
+ d(
26
+ "padding",
27
+ l,
28
+ g,
29
+ b,
30
+ "--container-padding"
31
+ ),
32
+ d(
33
+ "padding-inline",
34
+ l,
35
+ g,
36
+ b
37
+ ),
38
+ d(
39
+ "padding-block",
40
+ l,
41
+ g,
42
+ b
43
+ ),
44
+ d(
45
+ "padding-top",
46
+ l,
47
+ g,
48
+ b
49
+ ),
50
+ d(
51
+ "padding-right",
52
+ l,
53
+ g,
54
+ b,
55
+ "--container-padding-right"
56
+ ),
57
+ d(
58
+ "padding-bottom",
59
+ l,
60
+ g,
61
+ b
62
+ ),
63
+ d(
64
+ "padding-left",
65
+ l,
66
+ g,
67
+ b,
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, G);
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, H);
126
154
  break;
127
155
  case "border-radius":
128
156
  this.updateAttribute(
@@ -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, _);
211
+ break;
212
+ case "subgrid-rows":
213
+ this.updateSubgridRows(
214
+ t,
215
+ i,
216
+ e,
217
+ N
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,7 +262,9 @@ 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
270
  this.checkName(O, i) ? (this.$el.style.setProperty(
@@ -230,11 +273,15 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
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,36 @@ 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
+ ));
360
+ };
361
+ o(t), o(i);
362
+ }
363
+ updateSubgridRows(t, i, e, o) {
364
+ u(o, e) ? this.style.setProperty(`--${t}`, e) : s(
365
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
366
+ );
367
+ }
368
+ get $el() {
369
+ var t;
370
+ return (t = this == null ? void 0 : this.shadowRoot) == null ? void 0 : t.querySelector(".container");
371
+ }
291
372
  get $slotAnchor() {
292
373
  return this.querySelector('[slot^="anchor"]');
293
374
  }
@@ -621,26 +702,62 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
621
702
  set anchorOffset(t) {
622
703
  this.setAttribute("anchor-offset", t);
623
704
  }
705
+ get anchorSpacing() {
706
+ return this.getAttribute("anchor-spacing");
707
+ }
708
+ set anchorSpacing(t) {
709
+ this.setAttribute("anchor-spacing", t);
710
+ }
624
711
  get inverted() {
625
- return this.getAttribute("inverted");
712
+ return this.hasAttribute("inverted");
626
713
  }
627
714
  set inverted(t) {
628
- this.setAttribute("inverted", t);
715
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
716
+ }
717
+ get subgridRows() {
718
+ return this.getAttribute("subgrid-rows");
719
+ }
720
+ set subgridRows(t) {
721
+ this.setAttribute("subgrid-rows", t);
722
+ }
723
+ get subgridGap() {
724
+ return this.getAttribute("subgrid-gap");
725
+ }
726
+ set subgridGap(t) {
727
+ this.setAttribute("subgrid-gap", t);
728
+ }
729
+ get subgridGapMobile() {
730
+ return this.getAttribute("subgrid-gap--mobile");
731
+ }
732
+ set subgridGapMobile(t) {
733
+ this.setAttribute("subgrid-gap--mobile", t);
734
+ }
735
+ get subgridGapTablet() {
736
+ return this.getAttribute("subgrid-gap--tablet");
737
+ }
738
+ set subgridGapTablet(t) {
739
+ this.setAttribute("subgrid-gap--tablet", t);
740
+ }
741
+ get subgridGapLaptop() {
742
+ return this.getAttribute("subgrid-gap--laptop");
743
+ }
744
+ set subgridGapLaptop(t) {
745
+ this.setAttribute("subgrid-gap--laptop", t);
629
746
  }
630
747
  };
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 _ = [
748
+ A.nativeName = "div";
749
+ let m = A;
750
+ customElements.get("px-container") || customElements.define("px-container", m);
751
+ const W = ':host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', T = new CSSStyleSheet();
752
+ T.replaceSync(W);
753
+ const Y = [
637
754
  "",
638
755
  "default",
639
756
  "row",
640
757
  "row-reverse",
641
758
  "column",
642
759
  "column-reverse"
643
- ], Z = [
760
+ ], J = [
644
761
  "",
645
762
  "default",
646
763
  "stretch",
@@ -648,7 +765,7 @@ const _ = [
648
765
  "flex-end",
649
766
  "center",
650
767
  "baseline"
651
- ], W = [
768
+ ], K = [
652
769
  "",
653
770
  "default",
654
771
  "flex-start",
@@ -657,10 +774,10 @@ const _ = [
657
774
  "space-between",
658
775
  "space-around",
659
776
  "space-evenly"
660
- ], Y = ["", "default", "nowrap", "wrap", "wrap-reverse"], J = ["", "visible", "hidden", "scroll", "auto"];
661
- class k extends C {
777
+ ], Q = ["", "default", "nowrap", "wrap", "wrap-reverse"], U = ["", "visible", "hidden", "scroll", "auto"];
778
+ class x extends y {
662
779
  constructor() {
663
- super(L), this.overflowXAttributeDelegate = new w(
780
+ super(T), this.overflowXAttributeDelegate = new q(
664
781
  this,
665
782
  "overflow-x",
666
783
  (t) => t,
@@ -714,7 +831,7 @@ class k extends C {
714
831
  case "gap--tablet":
715
832
  case "gap--laptop":
716
833
  case "gap--desktop":
717
- this.updateFlexProperties(t, i, e, S);
834
+ this.updateFlexProperties(t, i, e, v);
718
835
  break;
719
836
  case "justify-content":
720
837
  case "justify-content--mobile":
@@ -725,7 +842,7 @@ class k extends C {
725
842
  t,
726
843
  i,
727
844
  e,
728
- W
845
+ K
729
846
  );
730
847
  break;
731
848
  case "align-items":
@@ -733,28 +850,28 @@ class k extends C {
733
850
  case "align-items--tablet":
734
851
  case "align-items--laptop":
735
852
  case "align-items--desktop":
736
- this.updateFlexProperties(t, i, e, Z);
853
+ this.updateFlexProperties(t, i, e, J);
737
854
  break;
738
855
  case "wrap":
739
856
  case "wrap--mobile":
740
857
  case "wrap--tablet":
741
858
  case "wrap--laptop":
742
859
  case "wrap--desktop":
743
- this.updateFlexProperties(t, i, e, Y);
860
+ this.updateFlexProperties(t, i, e, Q);
744
861
  break;
745
862
  case "direction":
746
863
  case "direction--mobile":
747
864
  case "direction--tablet":
748
865
  case "direction--laptop":
749
866
  case "direction--desktop":
750
- this.updateFlexProperties(t, i, e, _);
867
+ this.updateFlexProperties(t, i, e, Y);
751
868
  break;
752
869
  case "overflow-x":
753
870
  case "overflow-x--mobile":
754
871
  case "overflow-x--tablet":
755
872
  case "overflow-x--laptop":
756
873
  case "overflow-x--desktop":
757
- this.updateOverflowX(t, i, e, J);
874
+ this.updateOverflowX(t, i, e, U);
758
875
  break;
759
876
  default:
760
877
  super.attributeChangedCallback(t, i, e);
@@ -762,8 +879,10 @@ class k extends C {
762
879
  }
763
880
  }
764
881
  updateOverflowX(t, i, e, o) {
765
- if (!j(o, e)) {
766
- console.error(`${e} is not an allowed ${t} value`);
882
+ if (!u(o, e)) {
883
+ s(
884
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
885
+ );
767
886
  return;
768
887
  }
769
888
  this.overflowXAttributeDelegate.attributeChangedCallback(
@@ -773,22 +892,27 @@ class k extends C {
773
892
  );
774
893
  }
775
894
  updateFlexProperties(t, i, e, o) {
776
- this.checkName(o, e) || console.error(`${e} is not a valid value for ${o}`);
777
- const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, c = [];
895
+ this.checkName(o, e) || s(
896
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
897
+ );
898
+ const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, p = [];
778
899
  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);
900
+ this.getAttribute(a + "--mobile") || p.push("mobile"), this.getAttribute(a + "--tablet") || p.push("tablet"), this.getAttribute(a + "--laptop") || p.push("laptop"), this.getAttribute(a + "--desktop") || p.push("desktop"), p.forEach((c) => {
901
+ this.updateStyle(a, c, i, o), this.updateStyle(a, c, e, o);
781
902
  });
782
903
  else {
783
- const g = t.split("--")[1];
784
- this.updateStyle(a, g, i, o), this.updateStyle(a, g, e, o);
904
+ const c = t.split("--")[1];
905
+ this.updateStyle(a, c, i, o), this.updateStyle(a, c, e, o);
785
906
  }
786
907
  }
787
908
  updateStyle(t, i, e, o) {
788
- e && (t === "gap" && o && o.includes(e) ? this.$el.style.setProperty(
909
+ e && (t === "gap" && o && o.includes(e) ? (this.$el.style.setProperty(
789
910
  `--flex-${t}--${i}-value`,
790
911
  `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
791
- ) : this.$el.style.setProperty(
912
+ ), this.style.setProperty(
913
+ `--host-gap--${i}`,
914
+ `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
915
+ )) : this.$el.style.setProperty(
792
916
  `--flex-${t}--${i}-value`,
793
917
  e
794
918
  ));
@@ -977,8 +1101,8 @@ class k extends C {
977
1101
  return this.shadowRoot.querySelector(".flex-container");
978
1102
  }
979
1103
  }
980
- customElements.get("px-stack") || customElements.define("px-stack", k);
981
- class K extends k {
1104
+ customElements.get("px-stack") || customElements.define("px-stack", x);
1105
+ class V extends x {
982
1106
  constructor() {
983
1107
  super();
984
1108
  }
@@ -986,8 +1110,8 @@ class K extends k {
986
1110
  super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
987
1111
  }
988
1112
  }
989
- customElements.get("px-vstack") || customElements.define("px-vstack", K);
990
- class Q extends k {
1113
+ customElements.get("px-vstack") || customElements.define("px-vstack", V);
1114
+ class tt extends x {
991
1115
  constructor() {
992
1116
  super();
993
1117
  }
@@ -995,21 +1119,21 @@ class Q extends k {
995
1119
  super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
996
1120
  }
997
1121
  }
998
- customElements.get("px-hstack") || customElements.define("px-hstack", Q);
999
- class U extends HTMLElement {
1122
+ customElements.get("px-hstack") || customElements.define("px-hstack", tt);
1123
+ class et extends HTMLElement {
1000
1124
  constructor() {
1001
1125
  super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
1002
1126
  }
1003
1127
  static get observedAttributes() {
1004
- return ["grow"];
1128
+ return ["grow", "nogap"];
1005
1129
  }
1006
1130
  attributeChangedCallback(t, i, e) {
1007
1131
  t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
1008
1132
  }
1009
1133
  connectedCallback() {
1010
- this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.resizeObserver = new ResizeObserver(() => {
1134
+ this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
1011
1135
  this.handleSizeChange();
1012
- }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck();
1136
+ }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
1013
1137
  }
1014
1138
  disconnectedCallback() {
1015
1139
  var t;
@@ -1036,11 +1160,17 @@ class U extends HTMLElement {
1036
1160
  updateParticipation() {
1037
1161
  this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
1038
1162
  }
1163
+ get nogap() {
1164
+ return this.hasAttribute("nogap");
1165
+ }
1166
+ set nogap(t) {
1167
+ t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
1168
+ }
1039
1169
  }
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 {
1170
+ customElements.get("px-spacer") || customElements.define("px-spacer", et);
1171
+ 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();
1172
+ I.replaceSync(it);
1173
+ class ot extends y {
1044
1174
  constructor() {
1045
1175
  super(I), this.template = (t) => `
1046
1176
  <px-container border-radius="none" padding="none">
@@ -1219,7 +1349,7 @@ class V extends C {
1219
1349
  case "background-color":
1220
1350
  this.$bodyContainer.setAttribute(
1221
1351
  "background-color",
1222
- p.indexOf(e) > 0 ? e : "none"
1352
+ h.indexOf(e) > 0 ? e : "none"
1223
1353
  );
1224
1354
  break;
1225
1355
  case "padding-vertical":
@@ -1239,14 +1369,14 @@ class V extends C {
1239
1369
  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
1370
  }
1241
1371
  }
1242
- customElements.get("px-page") === void 0 && customElements.define("px-page", V);
1372
+ customElements.get("px-page") === void 0 && customElements.define("px-page", ot);
1243
1373
  const M = new CSSStyleSheet();
1244
- M.replaceSync(G);
1245
- class tt extends HTMLElement {
1374
+ M.replaceSync(X);
1375
+ class rt extends HTMLElement {
1246
1376
  constructor() {
1247
1377
  super(), this.template = () => `
1248
- <px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
1249
- <div class="content-wrapper ${this.$slotOverlap ? "overlapped" : ""}">
1378
+ <px-container border-radius="none" padding-inline="none">
1379
+ <div class="content-wrapper">
1250
1380
  <px-vstack gap="heading-to-content">
1251
1381
  <slot name="heading"></slot>
1252
1382
  <px-vstack gap="none">
@@ -1261,6 +1391,7 @@ class tt extends HTMLElement {
1261
1391
  `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [M];
1262
1392
  }
1263
1393
  connectedCallback() {
1394
+ this.$container.setAttribute("background-color", this.backgroundColor), this.$slotOverlap && this.shadowRoot.firstElementChild.querySelector(".content-wrapper").classList.add("overlapped");
1264
1395
  const t = this.querySelector('[slot="heading"]');
1265
1396
  !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");
1266
1397
  }
@@ -1300,7 +1431,7 @@ class tt extends HTMLElement {
1300
1431
  if (i !== e)
1301
1432
  switch (t) {
1302
1433
  case "background-color":
1303
- this.$container.backgroundColor = p.indexOf(e) > 0 ? e : "none";
1434
+ this.$container.backgroundColor = h.indexOf(e) > 0 ? e : "none";
1304
1435
  break;
1305
1436
  case "background-gradient":
1306
1437
  this.$container.gradient = this.gradient;
@@ -1530,10 +1661,10 @@ class tt extends HTMLElement {
1530
1661
  this.setAttribute("border-side--laptop", t);
1531
1662
  }
1532
1663
  }
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 = [
1664
+ customElements.get("px-section") || customElements.define("px-section", rt);
1665
+ const at = ":host{display:block;--grid-cols: initial;--grid-cols--mobile: initial;--grid-cols--tablet: initial;--grid-cols--laptop: initial;--grid-cols--desktop: initial;--justify-content: initial;--justify-items: initial;--align-content: initial;--align-items: initial}.grid{display:grid;grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items)}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media only screen and (max-width: 767px){.grid{grid-template-columns:repeat(var(--grid-cols--mobile, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media only screen and (min-width: 48em) and (max-width: 64em){.grid{grid-template-columns:repeat(var(--grid-cols--tablet, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media only screen and (min-width: 64.0625em){.grid{grid-template-columns:repeat(var(--grid-cols--laptop, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}", B = new CSSStyleSheet();
1666
+ B.replaceSync(at);
1667
+ const st = [
1537
1668
  "1",
1538
1669
  "2",
1539
1670
  "3",
@@ -1546,7 +1677,7 @@ const it = [
1546
1677
  "10",
1547
1678
  "11",
1548
1679
  "12"
1549
- ], ot = [
1680
+ ], nt = [
1550
1681
  "",
1551
1682
  "start",
1552
1683
  "end",
@@ -1555,25 +1686,17 @@ const it = [
1555
1686
  "space-around",
1556
1687
  "space-evenly",
1557
1688
  "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 {
1689
+ ], dt = ["", "start", "end", "center", "stretch"], lt = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, gt = "px-spacing", bt = d(
1690
+ "gap",
1691
+ lt,
1692
+ v,
1693
+ gt,
1694
+ "--grid-gap"
1695
+ ), $ = class $ extends S {
1559
1696
  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">
1697
+ super(B, bt), this.template = () => `<div class="grid">
1570
1698
  <slot></slot>
1571
- </div>`, this.gapAttributeDelegate = new w(
1572
- this,
1573
- "gap",
1574
- (t) => t,
1575
- "--gap"
1576
- ), this.shadowRoot.innerHTML = this.template();
1699
+ </div>`, this.shadowRoot.innerHTML = this.template();
1577
1700
  }
1578
1701
  static get observedAttributes() {
1579
1702
  return [
@@ -1605,7 +1728,7 @@ const it = [
1605
1728
  ];
1606
1729
  }
1607
1730
  connectedCallback() {
1608
- super.connectedCallback(), this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
1731
+ this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
1609
1732
  }
1610
1733
  attributeChangedCallback(t, i, e) {
1611
1734
  if (i !== e)
@@ -1614,7 +1737,7 @@ const it = [
1614
1737
  case "grid-cols--mobile":
1615
1738
  case "grid-cols--tablet":
1616
1739
  case "grid-cols--laptop":
1617
- this.updateAttribute(t, i, e, it);
1740
+ this.updateAttribute(t, i, e, st);
1618
1741
  break;
1619
1742
  case "justify-content":
1620
1743
  case "align-content":
@@ -1630,7 +1753,7 @@ const it = [
1630
1753
  t,
1631
1754
  i,
1632
1755
  e,
1633
- ot
1756
+ nt
1634
1757
  );
1635
1758
  break;
1636
1759
  case "justify-items":
@@ -1647,7 +1770,7 @@ const it = [
1647
1770
  t,
1648
1771
  i,
1649
1772
  e,
1650
- rt
1773
+ dt
1651
1774
  );
1652
1775
  break;
1653
1776
  default:
@@ -1657,7 +1780,9 @@ const it = [
1657
1780
  }
1658
1781
  updateGap(t, i, e) {
1659
1782
  if (!this.checkName(e, i)) {
1660
- console.error(`${i} is not a valid gap value`);
1783
+ s(
1784
+ `${i} is not an allowed gap value for ${this.tagName.toLowerCase()}`
1785
+ );
1661
1786
  return;
1662
1787
  }
1663
1788
  const o = (r) => {
@@ -1675,7 +1800,9 @@ const it = [
1675
1800
  o(t), o(i);
1676
1801
  }
1677
1802
  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`);
1803
+ 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(
1804
+ `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
1805
+ );
1679
1806
  }
1680
1807
  get gap() {
1681
1808
  return this.getAttribute("gap");
@@ -1846,31 +1973,26 @@ const it = [
1846
1973
  this.setAttribute("align-items--desktop", t);
1847
1974
  }
1848
1975
  };
1849
- y.nativeName = "div";
1850
- let h = y;
1851
- customElements.get("px-grid") || customElements.define("px-grid", h);
1976
+ $.nativeName = "div";
1977
+ let f = $;
1978
+ customElements.get("px-grid") || customElements.define("px-grid", f);
1852
1979
  const z = new CSSStyleSheet();
1853
- z.replaceSync(q);
1854
- const x = class x extends f {
1980
+ z.replaceSync(E);
1981
+ const w = class w extends S {
1855
1982
  constructor() {
1856
1983
  super(z), this.template = () => `<div class="content-header">
1857
1984
  <div class="contrast-helper"></div>
1858
1985
  <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>' : ""}
1986
+ <px-grid gap="none">
1987
+ <px-container padding="none" border-radius="none" background-color="none" >
1988
+ <div class="content-header-content">
1989
+ <px-vstack gap="heading-to-subtitle">
1990
+ <px-h1><slot></slot></px-h1>
1991
+ <slot name="subtitle"></slot>
1992
+ </px-vstack>
1993
+ </div>
1994
+ </px-container>
1995
+ </px-grid>
1874
1996
  </px-section>
1875
1997
  </div>`, this.shadowRoot.innerHTML = this.template();
1876
1998
  }
@@ -1895,17 +2017,27 @@ const x = class x extends f {
1895
2017
  ];
1896
2018
  }
1897
2019
  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();
2020
+ this.$patchDescriptionSlot && this.shadowRoot.querySelector(
2021
+ ".content-header-content"
2022
+ ).insertAdjacentHTML(
2023
+ "beforeend",
2024
+ `<px-stack gap="s" direction="row" direction--mobile="column">
2025
+ <slot name="patch" shrink></slot>
2026
+ <slot name="patch-description"></slot>
2027
+ </px-stack>`
2028
+ ), this.$overlapSlot && this.shadowRoot.querySelector("px-section").insertAdjacentHTML(
2029
+ "beforeend",
2030
+ '<slot name="overlap" slot="overlap"></slot>'
2031
+ ), 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
2032
  }
1901
2033
  attributeChangedCallback(t, i, e) {
1902
2034
  if (i !== e)
1903
2035
  switch (t) {
1904
2036
  case "background-color":
1905
- this.$section.backgroundColor = p.indexOf(e) > 0 ? e : "none";
2037
+ this.$section.backgroundColor = h.indexOf(e) > 0 ? e : "none";
1906
2038
  break;
1907
2039
  case "background-gradient":
1908
- this.$section.gradient = $.indexOf(e) > 0 ? e : "none";
2040
+ this.$section.gradient = C.indexOf(e) > 0 ? e : "none";
1909
2041
  break;
1910
2042
  case "background-image":
1911
2043
  this.$section.backgroundImage = e;
@@ -1920,7 +2052,7 @@ const x = class x extends f {
1920
2052
  this.$section.backgroundImageLaptop = e;
1921
2053
  break;
1922
2054
  case "background-size":
1923
- this.$section.backgroundSize = A.indexOf(e) > 0 ? e : "";
2055
+ this.$section.backgroundSize = j.indexOf(e) > 0 ? e : "";
1924
2056
  break;
1925
2057
  case "background-position":
1926
2058
  this.$section.backgroundPosition = e;
@@ -1943,29 +2075,29 @@ const x = class x extends f {
1943
2075
  }
1944
2076
  createGridding(t) {
1945
2077
  const i = [
1946
- { prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
2078
+ { prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
1947
2079
  {
1948
2080
  prop: "hasGriddingMobile",
1949
- gridProp: "gridColsMobile",
2081
+ gridAttr: "grid-cols--mobile",
1950
2082
  attr: "col-span--mobile"
1951
2083
  },
1952
2084
  {
1953
2085
  prop: "hasGriddingTablet",
1954
- gridProp: "gridColsTablet",
2086
+ gridAttr: "grid-cols--tablet",
1955
2087
  attr: "col-span--tablet"
1956
2088
  },
1957
2089
  {
1958
2090
  prop: "hasGriddingLaptop",
1959
- gridProp: "gridColsLaptop",
2091
+ gridAttr: "grid-cols--laptop",
1960
2092
  attr: "col-span--laptop"
1961
2093
  }
1962
2094
  ], e = this.shadowRoot.querySelector(
1963
2095
  "px-grid > px-container"
1964
2096
  );
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);
2097
+ t !== null ? i.forEach(({ prop: o, gridAttr: r, attr: a }) => {
2098
+ this[o] && (this.$grid.setAttribute(r, "3"), e == null || e.setAttribute(a, "2"));
2099
+ }) : i.forEach(({ gridAttr: o, attr: r }) => {
2100
+ this.$grid.setAttribute(o, "1"), e == null || e.setAttribute(r, "1");
1969
2101
  });
1970
2102
  }
1971
2103
  get $grid() {
@@ -2086,9 +2218,9 @@ const x = class x extends f {
2086
2218
  t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
2087
2219
  }
2088
2220
  };
2089
- x.nativeName = "div";
2090
- let m = x;
2091
- customElements.get("px-content-header") || customElements.define("px-content-header", m);
2221
+ w.nativeName = "div";
2222
+ let k = w;
2223
+ customElements.get("px-content-header") || customElements.define("px-content-header", k);
2092
2224
  export {
2093
- m as ContentHeader
2225
+ k as ContentHeader
2094
2226
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-content-header",
3
- "version": "2.0.0-alpha.8",
3
+ "version": "2.0.0-alpha.80",
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"