@proximus/lavender-content-header 2.0.0-alpha.7 → 2.0.0-alpha.9

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.
@@ -1,7 +1,11 @@
1
1
  import '@proximus/lavender-section';
2
2
  import { type Section } from '@proximus/lavender-section';
3
- import { H1 } from '@proximus/lavender-heading';
4
- import { Grid } from '@proximus/lavender-grid';
3
+ import type { H1 } from '@proximus/lavender-heading';
4
+ import '@proximus/lavender-heading';
5
+ import '@proximus/lavender-container';
6
+ import '@proximus/lavender-layout';
7
+ import type { Grid } from '@proximus/lavender-grid';
8
+ import '@proximus/lavender-grid';
5
9
  import { PxElement } from '@proximus/lavender-common';
6
10
  export declare class ContentHeader extends PxElement<HTMLDivElement> {
7
11
  static nativeName: string;
@@ -10,7 +14,7 @@ export declare class ContentHeader extends PxElement<HTMLDivElement> {
10
14
  static get observedAttributes(): string[];
11
15
  connectedCallback(): void;
12
16
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
13
- createGridding(): void;
17
+ createGridding(value?: string): void;
14
18
  get $grid(): Grid;
15
19
  get $section(): Section;
16
20
  get $h1(): H1;
package/dist/index.es.js CHANGED
@@ -1,10 +1,11 @@
1
- import { PxElement as v, cssTokenBreakpoints as d, paddingValues as s, boxShadowValues as B, backgroundSizeValues as x, noBorderRadiusValues as z, borderRadiusValues as M, borderSideValues as I, borderValues as R, gradientValues as A, backgroundColorValues as c, borderColorValues as P, checkName as y, WithExtraAttributes as $, AttributeBreakpointHandlerDelegate as j, gapValues as D } from "@proximus/lavender-common";
2
- const O = ":host{--min-height--mobile: 15.625em;--min-height--tablet: 17.5em;--min-height--laptop: 17.5em;--min-height--desktop: 17.5em}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;gap:var(--px-spacing-l-mobile);z-index:2;position:relative;box-sizing:border-box}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media only screen and (min-width: 48em){.content-header-content{gap:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media only screen and (min-width: 64.0625em){.content-header-content{gap:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}", H = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', E = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}', w = new CSSStyleSheet();
3
- w.replaceSync(E);
4
- const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b = "px-padding", k = class k extends v {
1
+ import { 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";
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 {
5
6
  constructor() {
6
7
  super(
7
- w,
8
+ T,
8
9
  d(
9
10
  "padding",
10
11
  l,
@@ -98,9 +99,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
98
99
  subtree: !0,
99
100
  characterData: !0
100
101
  }), this._bgObserver = new IntersectionObserver((t) => {
101
- t.forEach((r) => {
102
+ t.forEach((i) => {
102
103
  var e;
103
- r.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (e = this._bgObserver) == null || e.disconnect());
104
+ i.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (e = this._bgObserver) == null || e.disconnect());
104
105
  });
105
106
  }), this._bgObserver.observe(this.$el);
106
107
  }
@@ -108,11 +109,11 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
108
109
  var t;
109
110
  (t = this._bgObserver) == null || t.disconnect(), this.contentObserver.disconnect();
110
111
  }
111
- attributeChangedCallback(t, r, e) {
112
- if (r !== e)
112
+ attributeChangedCallback(t, i, e) {
113
+ if (i !== e)
113
114
  switch (t) {
114
115
  case "border":
115
- this.updateAttribute(t, r, e, R);
116
+ this.updateAttribute(t, i, e, H);
116
117
  break;
117
118
  case "border-color":
118
119
  this.updateBorderColor(t, e);
@@ -121,14 +122,14 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
121
122
  case "border-side--mobile":
122
123
  case "border-side--tablet":
123
124
  case "border-side--laptop":
124
- this.updateAttribute(t, r, e, I);
125
+ this.updateAttribute(t, i, e, E);
125
126
  break;
126
127
  case "border-radius":
127
128
  this.updateAttribute(
128
129
  t,
129
- r,
130
+ i,
130
131
  e,
131
- M
132
+ D
132
133
  );
133
134
  break;
134
135
  case "no-border-radius":
@@ -137,9 +138,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
137
138
  case "no-border-radius--laptop":
138
139
  this.updateNoBorderRadius(
139
140
  t,
140
- r,
141
+ i,
141
142
  e,
142
- z
143
+ P
143
144
  );
144
145
  break;
145
146
  case "background-color":
@@ -157,9 +158,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
157
158
  case "background-size":
158
159
  this.updateAttribute(
159
160
  t,
160
- r,
161
+ i,
161
162
  e,
162
- x
163
+ A
163
164
  );
164
165
  break;
165
166
  case "background-image":
@@ -172,13 +173,13 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
172
173
  e !== null && e !== "" && (this.$el.style.backgroundPosition = e);
173
174
  break;
174
175
  case "box-shadow":
175
- this.updateAttribute(t, r, e, B);
176
+ this.updateAttribute(t, i, e, R);
176
177
  break;
177
178
  case "anchor-offset":
178
- this.updateAnchorOffset(r, e, s);
179
+ this.updateAnchorOffset(i, e, s);
179
180
  break;
180
181
  default:
181
- super.attributeChangedCallback(t, r, e);
182
+ super.attributeChangedCallback(t, i, e);
182
183
  break;
183
184
  }
184
185
  }
@@ -188,101 +189,101 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
188
189
  "background-image--mobile",
189
190
  "background-image--tablet",
190
191
  "background-image--laptop"
191
- ].forEach((r) => {
192
- const e = this.getAttribute(r);
193
- e && this.updateBackgroundImg(r, e);
192
+ ].forEach((i) => {
193
+ const e = this.getAttribute(i);
194
+ e && this.updateBackgroundImg(i, e);
194
195
  });
195
196
  }
196
- updateBackgroundImg(t, r) {
197
- this.$el.style.setProperty(`--${t}`, `url("${r}")`);
197
+ updateBackgroundImg(t, i) {
198
+ this.$el.style.setProperty(`--${t}`, `url("${i}")`);
198
199
  }
199
- updateGradient(t, r) {
200
- if (this.checkName(A, r)) {
200
+ updateGradient(t, i) {
201
+ if (this.checkName($, i)) {
201
202
  const e = this.splitAttrNameFromBreakpoint(t);
202
203
  t = e.attrName;
203
204
  const o = e.breakpoint;
204
205
  this.$el.style.setProperty(
205
206
  `--${t}${o}`,
206
- `linear-gradient(var(--px-color-background-gradient-${r}))`
207
+ `linear-gradient(var(--px-color-background-gradient-${i}))`
207
208
  );
208
209
  } else
209
- console.error(`${r} is not an allowed background-gradient value`);
210
+ console.error(`${i} is not an allowed background-gradient value`);
210
211
  }
211
- updateBackgroundColor(t, r) {
212
- const e = r.startsWith("surface-");
213
- if (this.checkName(c, r)) {
214
- const o = this.splitAttrNameFromBreakpoint(t), i = o.breakpoint;
212
+ updateBackgroundColor(t, i) {
213
+ const e = i.startsWith("surface-");
214
+ if (this.checkName(p, i)) {
215
+ const o = this.splitAttrNameFromBreakpoint(t), r = o.breakpoint;
215
216
  this.$el.style.setProperty(
216
- `--${o.attrName}${i}`,
217
- `var(--px-color-background-${r}${e ? "" : "-default"})`
217
+ `--${o.attrName}${r}`,
218
+ `var(--px-color-background-${i}${e ? "" : "-default"})`
218
219
  ), this.$el.style.setProperty(
219
- `--${o.attrName}-inverted${i}`,
220
- `var(--px-color-background-${r}${e ? "" : "-inverted"})`
220
+ `--${o.attrName}-inverted${r}`,
221
+ `var(--px-color-background-${i}${e ? "" : "-inverted"})`
221
222
  );
222
223
  } else
223
- console.error(`${r} is not an allowed ${t} value`);
224
+ console.error(`${i} is not an allowed ${t} value`);
224
225
  }
225
- updateBorderColor(t, r) {
226
- this.checkName(P, r) ? (this.$el.style.setProperty(
226
+ updateBorderColor(t, i) {
227
+ this.checkName(O, i) ? (this.$el.style.setProperty(
227
228
  `--${t}`,
228
- `var(--px-color-border-${r}-default)`
229
+ `var(--px-color-border-${i}-default)`
229
230
  ), this.$el.style.setProperty(
230
231
  `--${t}-inverted`,
231
- `var(--px-color-border-${r}-inverted)`
232
- )) : console.error(`${r} is not an allowed ${t} value`);
232
+ `var(--px-color-border-${i}-inverted)`
233
+ )) : console.error(`${i} is not an allowed ${t} value`);
233
234
  }
234
- updateNoBorderRadius(t, r, e, o) {
235
+ updateNoBorderRadius(t, i, e, o) {
235
236
  if (!this.checkName(o, e))
236
237
  console.error(`${e} is not an allowed ${t} value`);
237
238
  else {
238
- const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
239
- r !== null && r !== "" && this.$el.classList.toggle(
240
- `${i.attrName}-${r}${a}`
239
+ const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
240
+ i !== null && i !== "" && this.$el.classList.toggle(
241
+ `${r.attrName}-${i}${a}`
241
242
  ), e !== null && e !== "" && this.$el.classList.toggle(
242
- `${i.attrName}-${e}${a}`
243
+ `${r.attrName}-${e}${a}`
243
244
  );
244
245
  }
245
246
  }
246
- updateAttribute(t, r, e, o) {
247
+ updateAttribute(t, i, e, o) {
247
248
  if (!this.checkName(o, e))
248
249
  console.error(`${e} is not an allowed ${t} value`);
249
250
  else {
250
- const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
251
- r !== null && r !== "" && this.$el.classList.toggle(
252
- `${i.attrName}-${r}${a}`
251
+ const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
252
+ i !== null && i !== "" && this.$el.classList.toggle(
253
+ `${r.attrName}-${i}${a}`
253
254
  ), e !== null && e !== "" && this.$el.classList.toggle(
254
- `${i.attrName}-${e}${a}`
255
+ `${r.attrName}-${e}${a}`
255
256
  );
256
257
  }
257
258
  }
258
259
  splitAttrNameFromBreakpoint(t) {
259
- let r = "";
260
+ let i = "";
260
261
  if (["--mobile", "--tablet", "--laptop"].some(
261
262
  (e) => t.includes(e)
262
263
  )) {
263
264
  const e = t.split("--");
264
- t = e[0], r = `--${e[1]}`;
265
+ t = e[0], i = `--${e[1]}`;
265
266
  }
266
- return { attrName: t, breakpoint: r };
267
+ return { attrName: t, breakpoint: i };
267
268
  }
268
- updateAnchorOffset(t, r, e) {
269
- if (!y(e, r)) {
270
- console.error(`${r} is not a valid anchor-offset value`);
269
+ updateAnchorOffset(t, i, e) {
270
+ if (!j(e, i)) {
271
+ console.error(`${i} is not a valid anchor-offset value`);
271
272
  return;
272
273
  }
273
- const o = (i) => {
274
- i !== null && i !== "" && i !== "default" && (this.$el.style.setProperty(
274
+ const o = (r) => {
275
+ r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
275
276
  "--container-anchor-offset--mobile",
276
- `var(--px-padding-${i}-mobile)`
277
+ `var(--px-padding-${r}-mobile)`
277
278
  ), this.$el.style.setProperty(
278
279
  "--container-anchor-offset--tablet",
279
- `var(--px-padding-${i}-tablet)`
280
+ `var(--px-padding-${r}-tablet)`
280
281
  ), this.$el.style.setProperty(
281
282
  "--container-anchor-offset--laptop",
282
- `var(--px-padding-${i}-laptop)`
283
+ `var(--px-padding-${r}-laptop)`
283
284
  ));
284
285
  };
285
- o(t), o(r);
286
+ o(t), o(i);
286
287
  }
287
288
  addAnchorClass() {
288
289
  this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
@@ -627,19 +628,19 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
627
628
  this.setAttribute("inverted", t);
628
629
  }
629
630
  };
630
- k.nativeName = "div";
631
- let u = k;
631
+ v.nativeName = "div";
632
+ let u = v;
632
633
  customElements.get("px-container") || customElements.define("px-container", u);
633
- const q = ':host{display:block}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', S = new CSSStyleSheet();
634
- S.replaceSync(q);
635
- const G = [
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 _ = [
636
637
  "",
637
638
  "default",
638
639
  "row",
639
640
  "row-reverse",
640
641
  "column",
641
642
  "column-reverse"
642
- ], X = [
643
+ ], Z = [
643
644
  "",
644
645
  "default",
645
646
  "stretch",
@@ -647,7 +648,7 @@ const G = [
647
648
  "flex-end",
648
649
  "center",
649
650
  "baseline"
650
- ], F = [
651
+ ], W = [
651
652
  "",
652
653
  "default",
653
654
  "flex-start",
@@ -656,10 +657,10 @@ const G = [
656
657
  "space-between",
657
658
  "space-around",
658
659
  "space-evenly"
659
- ], _ = ["", "default", "nowrap", "wrap", "wrap-reverse"], N = ["", "visible", "hidden", "scroll", "auto"];
660
- class m extends $ {
660
+ ], Y = ["", "default", "nowrap", "wrap", "wrap-reverse"], J = ["", "visible", "hidden", "scroll", "auto"];
661
+ class k extends C {
661
662
  constructor() {
662
- super(S), this.overflowXAttributeDelegate = new j(
663
+ super(L), this.overflowXAttributeDelegate = new w(
663
664
  this,
664
665
  "overflow-x",
665
666
  (t) => t,
@@ -706,14 +707,14 @@ class m extends $ {
706
707
  "overflow-x--desktop"
707
708
  ];
708
709
  }
709
- attributeChangedCallback(t, r, e) {
710
+ attributeChangedCallback(t, i, e) {
710
711
  switch (t) {
711
712
  case "gap":
712
713
  case "gap--mobile":
713
714
  case "gap--tablet":
714
715
  case "gap--laptop":
715
716
  case "gap--desktop":
716
- this.updateFlexProperties(t, r, e, D);
717
+ this.updateFlexProperties(t, i, e, S);
717
718
  break;
718
719
  case "justify-content":
719
720
  case "justify-content--mobile":
@@ -722,9 +723,9 @@ class m extends $ {
722
723
  case "justify-content--desktop":
723
724
  this.updateFlexProperties(
724
725
  t,
725
- r,
726
+ i,
726
727
  e,
727
- F
728
+ W
728
729
  );
729
730
  break;
730
731
  case "align-items":
@@ -732,63 +733,63 @@ class m extends $ {
732
733
  case "align-items--tablet":
733
734
  case "align-items--laptop":
734
735
  case "align-items--desktop":
735
- this.updateFlexProperties(t, r, e, X);
736
+ this.updateFlexProperties(t, i, e, Z);
736
737
  break;
737
738
  case "wrap":
738
739
  case "wrap--mobile":
739
740
  case "wrap--tablet":
740
741
  case "wrap--laptop":
741
742
  case "wrap--desktop":
742
- this.updateFlexProperties(t, r, e, _);
743
+ this.updateFlexProperties(t, i, e, Y);
743
744
  break;
744
745
  case "direction":
745
746
  case "direction--mobile":
746
747
  case "direction--tablet":
747
748
  case "direction--laptop":
748
749
  case "direction--desktop":
749
- this.updateFlexProperties(t, r, e, G);
750
+ this.updateFlexProperties(t, i, e, _);
750
751
  break;
751
752
  case "overflow-x":
752
753
  case "overflow-x--mobile":
753
754
  case "overflow-x--tablet":
754
755
  case "overflow-x--laptop":
755
756
  case "overflow-x--desktop":
756
- this.updateOverflowX(t, r, e, N);
757
+ this.updateOverflowX(t, i, e, J);
757
758
  break;
758
759
  default:
759
- super.attributeChangedCallback(t, r, e);
760
+ super.attributeChangedCallback(t, i, e);
760
761
  break;
761
762
  }
762
763
  }
763
- updateOverflowX(t, r, e, o) {
764
- if (!y(o, e)) {
764
+ updateOverflowX(t, i, e, o) {
765
+ if (!j(o, e)) {
765
766
  console.error(`${e} is not an allowed ${t} value`);
766
767
  return;
767
768
  }
768
769
  this.overflowXAttributeDelegate.attributeChangedCallback(
769
770
  t,
770
- r,
771
+ i,
771
772
  e
772
773
  );
773
774
  }
774
- updateFlexProperties(t, r, e, o) {
775
+ updateFlexProperties(t, i, e, o) {
775
776
  this.checkName(o, e) || console.error(`${e} is not a valid value for ${o}`);
776
- const i = t.indexOf("--") > -1, a = i ? t.split("--")[0] : t, p = [];
777
- if (!i)
778
- this.getAttribute(a + "--mobile") || p.push("mobile"), this.getAttribute(a + "--tablet") || p.push("tablet"), this.getAttribute(a + "--laptop") || p.push("laptop"), this.getAttribute(a + "--desktop") || p.push("desktop"), p.forEach((g) => {
779
- this.updateStyle(a, g, r, o), this.updateStyle(a, g, e, o);
777
+ const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, c = [];
778
+ 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);
780
781
  });
781
782
  else {
782
783
  const g = t.split("--")[1];
783
- this.updateStyle(a, g, r, o), this.updateStyle(a, g, e, o);
784
+ this.updateStyle(a, g, i, o), this.updateStyle(a, g, e, o);
784
785
  }
785
786
  }
786
- updateStyle(t, r, e, o) {
787
+ updateStyle(t, i, e, o) {
787
788
  e && (t === "gap" && o && o.includes(e) ? this.$el.style.setProperty(
788
- `--flex-${t}--${r}-value`,
789
- `var(--px-spacing-${e}-${r === "laptop" ? "desktop" : r})`
789
+ `--flex-${t}--${i}-value`,
790
+ `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
790
791
  ) : this.$el.style.setProperty(
791
- `--flex-${t}--${r}-value`,
792
+ `--flex-${t}--${i}-value`,
792
793
  e
793
794
  ));
794
795
  }
@@ -976,8 +977,8 @@ class m extends $ {
976
977
  return this.shadowRoot.querySelector(".flex-container");
977
978
  }
978
979
  }
979
- customElements.get("px-stack") || customElements.define("px-stack", m);
980
- class Z extends m {
980
+ customElements.get("px-stack") || customElements.define("px-stack", k);
981
+ class K extends k {
981
982
  constructor() {
982
983
  super();
983
984
  }
@@ -985,8 +986,8 @@ class Z extends m {
985
986
  super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
986
987
  }
987
988
  }
988
- customElements.get("px-vstack") || customElements.define("px-vstack", Z);
989
- class W extends m {
989
+ customElements.get("px-vstack") || customElements.define("px-vstack", K);
990
+ class Q extends k {
990
991
  constructor() {
991
992
  super();
992
993
  }
@@ -994,15 +995,15 @@ class W extends m {
994
995
  super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
995
996
  }
996
997
  }
997
- customElements.get("px-hstack") || customElements.define("px-hstack", W);
998
- class Y extends HTMLElement {
998
+ customElements.get("px-hstack") || customElements.define("px-hstack", Q);
999
+ class U extends HTMLElement {
999
1000
  constructor() {
1000
1001
  super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
1001
1002
  }
1002
1003
  static get observedAttributes() {
1003
1004
  return ["grow"];
1004
1005
  }
1005
- attributeChangedCallback(t, r, e) {
1006
+ attributeChangedCallback(t, i, e) {
1006
1007
  t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
1007
1008
  }
1008
1009
  connectedCallback() {
@@ -1029,19 +1030,19 @@ class Y extends HTMLElement {
1029
1030
  this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
1030
1031
  }
1031
1032
  handleSizeChange() {
1032
- const t = this.getBoundingClientRect(), r = t.width === 0 && !this.isVertical || t.height === 0 && this.isVertical;
1033
- this.isZeroSized !== r && (this.isZeroSized = r, this.updateParticipation());
1033
+ const t = this.getBoundingClientRect(), i = t.width === 0 && !this.isVertical || t.height === 0 && this.isVertical;
1034
+ this.isZeroSized !== i && (this.isZeroSized = i, this.updateParticipation());
1034
1035
  }
1035
1036
  updateParticipation() {
1036
1037
  this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
1037
1038
  }
1038
1039
  }
1039
- customElements.get("px-spacer") || customElements.define("px-spacer", Y);
1040
- const J = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", C = new CSSStyleSheet();
1041
- C.replaceSync(J);
1042
- class K extends $ {
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 {
1043
1044
  constructor() {
1044
- super(C), this.template = (t) => `
1045
+ super(I), this.template = (t) => `
1045
1046
  <px-container border-radius="none" padding="none">
1046
1047
  <px-vstack>
1047
1048
  <px-container id="header-container" border-radius="none">
@@ -1206,8 +1207,8 @@ class K extends $ {
1206
1207
  connectedCallback() {
1207
1208
  this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
1208
1209
  }
1209
- attributeChangedCallback(t, r, e) {
1210
- if (r !== e)
1210
+ attributeChangedCallback(t, i, e) {
1211
+ if (i !== e)
1211
1212
  switch (t) {
1212
1213
  case "background-image":
1213
1214
  this.$imageContainer.setAttribute("background-image", e);
@@ -1218,7 +1219,7 @@ class K extends $ {
1218
1219
  case "background-color":
1219
1220
  this.$bodyContainer.setAttribute(
1220
1221
  "background-color",
1221
- c.indexOf(e) > 0 ? e : "none"
1222
+ p.indexOf(e) > 0 ? e : "none"
1222
1223
  );
1223
1224
  break;
1224
1225
  case "padding-vertical":
@@ -1228,7 +1229,7 @@ class K extends $ {
1228
1229
  this.handlePaddingHorizontalChange(e);
1229
1230
  break;
1230
1231
  default:
1231
- super.attributeChangedCallback(t, r, e);
1232
+ super.attributeChangedCallback(t, i, e);
1232
1233
  }
1233
1234
  }
1234
1235
  handlePaddingVerticalChange(t) {
@@ -1238,10 +1239,10 @@ class K extends $ {
1238
1239
  this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
1239
1240
  }
1240
1241
  }
1241
- customElements.get("px-page") === void 0 && customElements.define("px-page", K);
1242
- const T = new CSSStyleSheet();
1243
- T.replaceSync(H);
1244
- class Q extends HTMLElement {
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 {
1245
1246
  constructor() {
1246
1247
  super(), this.template = () => `
1247
1248
  <px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
@@ -1257,7 +1258,7 @@ class Q extends HTMLElement {
1257
1258
  <div class="content-wrapper">
1258
1259
  <slot name="overlap"></slot>
1259
1260
  </div>
1260
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [T];
1261
+ `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [M];
1261
1262
  }
1262
1263
  connectedCallback() {
1263
1264
  const t = this.querySelector('[slot="heading"]');
@@ -1295,11 +1296,11 @@ class Q extends HTMLElement {
1295
1296
  get $container() {
1296
1297
  return this.shadowRoot.querySelector("px-container");
1297
1298
  }
1298
- attributeChangedCallback(t, r, e) {
1299
- if (r !== e)
1299
+ attributeChangedCallback(t, i, e) {
1300
+ if (i !== e)
1300
1301
  switch (t) {
1301
1302
  case "background-color":
1302
- this.$container.backgroundColor = c.indexOf(e) > 0 ? e : "none";
1303
+ this.$container.backgroundColor = p.indexOf(e) > 0 ? e : "none";
1303
1304
  break;
1304
1305
  case "background-gradient":
1305
1306
  this.$container.gradient = this.gradient;
@@ -1529,12 +1530,330 @@ class Q extends HTMLElement {
1529
1530
  this.setAttribute("border-side--laptop", t);
1530
1531
  }
1531
1532
  }
1532
- customElements.get("px-section") || customElements.define("px-section", Q);
1533
- const L = new CSSStyleSheet();
1534
- L.replaceSync(O);
1535
- const f = class f extends v {
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 = [
1537
+ "1",
1538
+ "2",
1539
+ "3",
1540
+ "4",
1541
+ "5",
1542
+ "6",
1543
+ "7",
1544
+ "8",
1545
+ "9",
1546
+ "10",
1547
+ "11",
1548
+ "12"
1549
+ ], ot = [
1550
+ "",
1551
+ "start",
1552
+ "end",
1553
+ "center",
1554
+ "space-between",
1555
+ "space-around",
1556
+ "space-evenly",
1557
+ "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 {
1559
+ 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">
1570
+ <slot></slot>
1571
+ </div>`, this.gapAttributeDelegate = new w(
1572
+ this,
1573
+ "gap",
1574
+ (t) => t,
1575
+ "--gap"
1576
+ ), this.shadowRoot.innerHTML = this.template();
1577
+ }
1578
+ static get observedAttributes() {
1579
+ return [
1580
+ ...super.observedAttributes,
1581
+ "grid-cols",
1582
+ "grid-cols--mobile",
1583
+ "grid-cols--tablet",
1584
+ "grid-cols--laptop",
1585
+ "justify-content",
1586
+ "justify-items",
1587
+ "align-content",
1588
+ "align-items",
1589
+ "justify-content--mobile",
1590
+ "justify-items--mobile",
1591
+ "align-content--mobile",
1592
+ "align-items--mobile",
1593
+ "justify-content--tablet",
1594
+ "justify-items--tablet",
1595
+ "align-content--tablet",
1596
+ "align-items--tablet",
1597
+ "justify-content--laptop",
1598
+ "justify-items--laptop",
1599
+ "align-content--laptop",
1600
+ "align-items--laptop",
1601
+ "justify-content--desktop",
1602
+ "justify-items--desktop",
1603
+ "align-content--desktop",
1604
+ "align-items--desktop"
1605
+ ];
1606
+ }
1607
+ connectedCallback() {
1608
+ super.connectedCallback(), this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
1609
+ }
1610
+ attributeChangedCallback(t, i, e) {
1611
+ if (i !== e)
1612
+ switch (t) {
1613
+ case "grid-cols":
1614
+ case "grid-cols--mobile":
1615
+ case "grid-cols--tablet":
1616
+ case "grid-cols--laptop":
1617
+ this.updateAttribute(t, i, e, it);
1618
+ break;
1619
+ case "justify-content":
1620
+ case "align-content":
1621
+ case "justify-content--mobile":
1622
+ case "align-content--mobile":
1623
+ case "justify-content--tablet":
1624
+ case "align-content--tablet":
1625
+ case "justify-content--laptop":
1626
+ case "align-content--laptop":
1627
+ case "justify-content--desktop":
1628
+ case "align-content--desktop":
1629
+ this.updateAttribute(
1630
+ t,
1631
+ i,
1632
+ e,
1633
+ ot
1634
+ );
1635
+ break;
1636
+ case "justify-items":
1637
+ case "align-items":
1638
+ case "justify-items--mobile":
1639
+ case "align-items--mobile":
1640
+ case "justify-items--tablet":
1641
+ case "align-items--tablet":
1642
+ case "justify-items--laptop":
1643
+ case "align-items--laptop":
1644
+ case "justify-items--desktop":
1645
+ case "align-items--desktop":
1646
+ this.updateAttribute(
1647
+ t,
1648
+ i,
1649
+ e,
1650
+ rt
1651
+ );
1652
+ break;
1653
+ default:
1654
+ super.attributeChangedCallback(t, i, e);
1655
+ break;
1656
+ }
1657
+ }
1658
+ updateGap(t, i, e) {
1659
+ if (!this.checkName(e, i)) {
1660
+ console.error(`${i} is not a valid gap value`);
1661
+ return;
1662
+ }
1663
+ const o = (r) => {
1664
+ r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
1665
+ "--grid-gap--mobile",
1666
+ `var(--px-spacing-${r}-mobile)`
1667
+ ), this.$el.style.setProperty(
1668
+ "--grid-gap--tablet",
1669
+ `var(--px-spacing-${r}-tablet)`
1670
+ ), this.$el.style.setProperty(
1671
+ "--grid-gap--laptop",
1672
+ `var(--px-spacing-${r}-laptop)`
1673
+ ));
1674
+ };
1675
+ o(t), o(i);
1676
+ }
1677
+ 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`);
1679
+ }
1680
+ get gap() {
1681
+ return this.getAttribute("gap");
1682
+ }
1683
+ set gap(t) {
1684
+ this.setAttribute("gap", t);
1685
+ }
1686
+ get gapMobile() {
1687
+ return this.getAttribute("gap--mobile");
1688
+ }
1689
+ set gapMobile(t) {
1690
+ this.setAttribute("gap--mobile", t);
1691
+ }
1692
+ get gapTablet() {
1693
+ return this.getAttribute("gap--tablet");
1694
+ }
1695
+ set gapTablet(t) {
1696
+ this.setAttribute("gap--tablet", t);
1697
+ }
1698
+ get gapLaptop() {
1699
+ return this.getAttribute("gap--laptop");
1700
+ }
1701
+ set gapLaptop(t) {
1702
+ this.setAttribute("gap--laptop", t);
1703
+ }
1704
+ get gridCols() {
1705
+ return this.getAttribute("grid-cols");
1706
+ }
1707
+ set gridCols(t) {
1708
+ this.setAttribute("grid-cols", t);
1709
+ }
1710
+ get gridColsMobile() {
1711
+ return this.getAttribute("grid-cols--mobile");
1712
+ }
1713
+ set gridColsMobile(t) {
1714
+ this.setAttribute("grid-cols--mobile", t);
1715
+ }
1716
+ get gridColsTablet() {
1717
+ return this.getAttribute("grid-cols--tablet");
1718
+ }
1719
+ set gridColsTablet(t) {
1720
+ this.setAttribute("grid-cols--tablet", t);
1721
+ }
1722
+ get gridColsLaptop() {
1723
+ return this.getAttribute("grid-cols--laptop");
1724
+ }
1725
+ set gridColsLaptop(t) {
1726
+ this.setAttribute("grid-cols--laptop", t);
1727
+ }
1728
+ get justifyContent() {
1729
+ return this.getAttribute("justify-content");
1730
+ }
1731
+ set justifyContent(t) {
1732
+ this.setAttribute("justify-content", t);
1733
+ }
1734
+ get justifyItems() {
1735
+ return this.getAttribute("justify-items");
1736
+ }
1737
+ set justifyItems(t) {
1738
+ this.setAttribute("justify-items", t);
1739
+ }
1740
+ get alignContent() {
1741
+ return this.getAttribute("align-content");
1742
+ }
1743
+ set alignContent(t) {
1744
+ this.setAttribute("align-content", t);
1745
+ }
1746
+ get alignItems() {
1747
+ return this.getAttribute("align-items");
1748
+ }
1749
+ set alignItems(t) {
1750
+ this.setAttribute("align-items", t);
1751
+ }
1752
+ get justifyContentMobile() {
1753
+ return this.getAttribute("justify-content--mobile");
1754
+ }
1755
+ set justifyContentMobile(t) {
1756
+ this.setAttribute("justify-content--mobile", t);
1757
+ }
1758
+ get justifyItemsMobile() {
1759
+ return this.getAttribute("justify-items--mobile");
1760
+ }
1761
+ set justifyItemsMobile(t) {
1762
+ this.setAttribute("justify-items--mobile", t);
1763
+ }
1764
+ get alignContentMobile() {
1765
+ return this.getAttribute("align-content--mobile");
1766
+ }
1767
+ set alignContentMobile(t) {
1768
+ this.setAttribute("align-content--mobile", t);
1769
+ }
1770
+ get alignItemsMobile() {
1771
+ return this.getAttribute("align-items--mobile");
1772
+ }
1773
+ set alignItemsMobile(t) {
1774
+ this.setAttribute("align-items--mobile", t);
1775
+ }
1776
+ get justifyContentTablet() {
1777
+ return this.getAttribute("justify-content--tablet");
1778
+ }
1779
+ set justifyContentTablet(t) {
1780
+ this.setAttribute("justify-content--tablet", t);
1781
+ }
1782
+ get justifyItemsTablet() {
1783
+ return this.getAttribute("justify-items--tablet");
1784
+ }
1785
+ set justifyItemsTablet(t) {
1786
+ this.setAttribute("justify-items--tablet", t);
1787
+ }
1788
+ get alignContentTablet() {
1789
+ return this.getAttribute("align-content--tablet");
1790
+ }
1791
+ set alignContentTablet(t) {
1792
+ this.setAttribute("align-content--tablet", t);
1793
+ }
1794
+ get alignItemsTablet() {
1795
+ return this.getAttribute("align-items--tablet");
1796
+ }
1797
+ set alignItemsTablet(t) {
1798
+ this.setAttribute("align-items--tablet", t);
1799
+ }
1800
+ get justifyContentLaptop() {
1801
+ return this.getAttribute("justify-content--laptop");
1802
+ }
1803
+ set justifyContentLaptop(t) {
1804
+ this.setAttribute("justify-content--laptop", t);
1805
+ }
1806
+ get justifyItemsLaptop() {
1807
+ return this.getAttribute("justify-items--laptop");
1808
+ }
1809
+ set justifyItemsLaptop(t) {
1810
+ this.setAttribute("justify-items--laptop", t);
1811
+ }
1812
+ get alignContentLaptop() {
1813
+ return this.getAttribute("align-content--laptop");
1814
+ }
1815
+ set alignContentLaptop(t) {
1816
+ this.setAttribute("align-content--laptop", t);
1817
+ }
1818
+ get alignItemsLaptop() {
1819
+ return this.getAttribute("align-items--laptop");
1820
+ }
1821
+ set alignItemsLaptop(t) {
1822
+ this.setAttribute("align-items--laptop", t);
1823
+ }
1824
+ get justifyContentDesktop() {
1825
+ return this.getAttribute("justify-content--desktop");
1826
+ }
1827
+ set justifyContentDesktop(t) {
1828
+ this.setAttribute("justify-content--desktop", t);
1829
+ }
1830
+ get justifyItemsDesktop() {
1831
+ return this.getAttribute("justify-items--desktop");
1832
+ }
1833
+ set justifyItemsDesktop(t) {
1834
+ this.setAttribute("justify-items--desktop", t);
1835
+ }
1836
+ get alignContentDesktop() {
1837
+ return this.getAttribute("align-content--desktop");
1838
+ }
1839
+ set alignContentDesktop(t) {
1840
+ this.setAttribute("align-content--desktop", t);
1841
+ }
1842
+ get alignItemsDesktop() {
1843
+ return this.getAttribute("align-items--desktop");
1844
+ }
1845
+ set alignItemsDesktop(t) {
1846
+ this.setAttribute("align-items--desktop", t);
1847
+ }
1848
+ };
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 {
1536
1855
  constructor() {
1537
- super(L), this.template = () => `<div class="content-header">
1856
+ super(z), this.template = () => `<div class="content-header">
1538
1857
  <div class="contrast-helper"></div>
1539
1858
  <px-section padding-block="l">
1540
1859
  <px-grid gap="none">
@@ -1579,14 +1898,14 @@ const f = class f extends v {
1579
1898
  var t;
1580
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();
1581
1900
  }
1582
- attributeChangedCallback(t, r, e) {
1583
- if (r !== e)
1901
+ attributeChangedCallback(t, i, e) {
1902
+ if (i !== e)
1584
1903
  switch (t) {
1585
1904
  case "background-color":
1586
- this.$section.backgroundColor = c.indexOf(e) > 0 ? e : "none";
1905
+ this.$section.backgroundColor = p.indexOf(e) > 0 ? e : "none";
1587
1906
  break;
1588
1907
  case "background-gradient":
1589
- this.$section.gradient = A.indexOf(e) > 0 ? e : "none";
1908
+ this.$section.gradient = $.indexOf(e) > 0 ? e : "none";
1590
1909
  break;
1591
1910
  case "background-image":
1592
1911
  this.$section.backgroundImage = e;
@@ -1601,7 +1920,7 @@ const f = class f extends v {
1601
1920
  this.$section.backgroundImageLaptop = e;
1602
1921
  break;
1603
1922
  case "background-size":
1604
- this.$section.backgroundSize = x.indexOf(e) > 0 ? e : "";
1923
+ this.$section.backgroundSize = A.indexOf(e) > 0 ? e : "";
1605
1924
  break;
1606
1925
  case "background-position":
1607
1926
  this.$section.backgroundPosition = e;
@@ -1610,7 +1929,7 @@ const f = class f extends v {
1610
1929
  case "has-gridding--mobile":
1611
1930
  case "has-gridding--tablet":
1612
1931
  case "has-gridding--laptop":
1613
- this.createGridding();
1932
+ this.createGridding(e);
1614
1933
  break;
1615
1934
  case "inverted":
1616
1935
  for (let o = 0; o < this.$children.length; o++)
@@ -1618,12 +1937,12 @@ const f = class f extends v {
1618
1937
  this.$h1.toggleAttribute("inverted", e !== null), this.$el.toggleAttribute("inverted", e !== null);
1619
1938
  break;
1620
1939
  default:
1621
- super.attributeChangedCallback(t, r, e);
1940
+ super.attributeChangedCallback(t, i, e);
1622
1941
  break;
1623
1942
  }
1624
1943
  }
1625
- createGridding() {
1626
- const t = [
1944
+ createGridding(t) {
1945
+ const i = [
1627
1946
  { prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
1628
1947
  {
1629
1948
  prop: "hasGriddingMobile",
@@ -1640,11 +1959,13 @@ const f = class f extends v {
1640
1959
  gridProp: "gridColsLaptop",
1641
1960
  attr: "col-span--laptop"
1642
1961
  }
1643
- ], r = this.shadowRoot.querySelector(
1962
+ ], e = this.shadowRoot.querySelector(
1644
1963
  "px-grid > px-container"
1645
1964
  );
1646
- t.forEach(({ prop: e, gridProp: o, attr: i }) => {
1647
- this[e] && (this.$grid[o] = "3", r.setAttribute(i, "2"));
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);
1648
1969
  });
1649
1970
  }
1650
1971
  get $grid() {
@@ -1765,9 +2086,9 @@ const f = class f extends v {
1765
2086
  t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
1766
2087
  }
1767
2088
  };
1768
- f.nativeName = "div";
1769
- let h = f;
1770
- customElements.get("px-content-header") || customElements.define("px-content-header", h);
2089
+ x.nativeName = "div";
2090
+ let m = x;
2091
+ customElements.get("px-content-header") || customElements.define("px-content-header", m);
1771
2092
  export {
1772
- h as ContentHeader
2093
+ m as ContentHeader
1773
2094
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-content-header",
3
- "version": "2.0.0-alpha.7",
3
+ "version": "2.0.0-alpha.9",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",