@proximus/lavender-content-header 2.0.0-alpha.13 → 2.0.0-alpha.130

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.
@@ -14,12 +14,17 @@ export declare class ContentHeader extends PxElement<HTMLDivElement> {
14
14
  static get observedAttributes(): string[];
15
15
  connectedCallback(): void;
16
16
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
17
+ disconnectedCallback(): void;
18
+ stylepatchDescriptionSlotted(): void;
19
+ styleSubtitleSlot(): void;
17
20
  createGridding(value?: string): void;
18
21
  get $grid(): Grid;
19
22
  get $section(): Section;
20
23
  get $h1(): H1;
21
24
  get $subtitleSlot(): HTMLSlotElement;
25
+ get $subtitleSlotted(): HTMLSlotElement;
22
26
  get $patchDescriptionSlot(): HTMLSlotElement;
27
+ get $patchDescriptionSlotted(): HTMLSlotElement;
23
28
  get $overlapSlot(): HTMLSlotElement;
24
29
  get $children(): NodeListOf<Element>;
25
30
  get backgroundColor(): string;
@@ -50,6 +55,8 @@ export declare class ContentHeader extends PxElement<HTMLDivElement> {
50
55
  set hasGriddingTablet(value: boolean);
51
56
  get hasGriddingLaptop(): boolean;
52
57
  set hasGriddingLaptop(value: boolean);
58
+ get hasGriddingDesktop(): boolean;
59
+ set hasGriddingDesktop(value: boolean);
53
60
  get inverted(): boolean;
54
61
  set inverted(value: boolean);
55
62
  get minHeight(): boolean;
package/dist/index.es.js CHANGED
@@ -1,61 +1,88 @@
1
- import { cssTokenBreakpoints as s, paddingValues as d, VerticallyExtendedElement as z, boxShadowValues as R, backgroundSizeValues as x, noBorderRadiusValues as P, borderRadiusValues as D, borderSideValues as E, borderValues as H, gradientValues as A, backgroundColorValues as p, borderColorValues as O, checkName as $, WithExtraAttributes as j, AttributeBreakpointHandlerDelegate as q, gapValues as C, PxElement as w } from "@proximus/lavender-common";
1
+ import { cssTokenBreakpoints as d, paddingValues as g, gapValues as x, WithExtraAttributes as m, boxShadowValues as D, backgroundSizeValues as C, noBorderRadiusValues as P, borderRadiusValues as E, borderSideValues as O, borderValues as H, gradientValues as f, log as s, backgroundColorValues as u, borderColorValues as S, checkName as h, AttributeBreakpointHandlerDelegate as G, PxElement as L } from "@proximus/lavender-common";
2
2
  import "@proximus/lavender-heading";
3
- const G = ":host{--min-height--mobile: 15.625em;--min-height--tablet: 17.5em;--min-height--laptop: 17.5em;--min-height--desktop: 17.5em}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;gap:var(--px-spacing-l-mobile);z-index:2;position:relative;box-sizing:border-box}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media only screen and (min-width: 48em){.content-header-content{gap:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media only screen and (min-width: 64.0625em){.content-header-content{gap:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}", X = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', F = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}.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}}', S = new CSSStyleSheet();
4
- S.replaceSync(F);
5
- const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b = "px-padding", _ = [
6
- s(
3
+ const q = ':host{--min-height--mobile: 15.625rem;--min-height--tablet: 17.5rem;--min-height--laptop: 17.5rem;--min-height--desktop: 17.5rem}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;z-index:2;position:relative;box-sizing:border-box}.content-header-content ::slotted([slot="patch"]){margin-top:var(--px-spacing-l-mobile)}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media screen and (min-width: 48rem){.content-header-content ::slotted([slot="patch"]){flex-shrink:0}.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-tablet)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media screen and (min-width: 64.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}@media screen and (min-width: 90.0625rem){.content-header-content ::slotted([slot="patch"]),.content-header-content ::slotted([slot="patch-description"]){margin-top:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--desktop) - (var(--px-spacing-l-desktop) * 2))}}', N = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media screen and (min-width: 77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media screen and (min-width: 48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media screen and (min-width: 64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', X = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{display:grid;grid-template-rows:subgrid;grid-row:span var(--subgrid-rows)}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (max-width: 47.938rem){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (min-width: 48rem) and (max-width: 64rem){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (min-width: 64.0625rem){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (min-width: 90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}', T = new CSSStyleSheet();
4
+ T.replaceSync(X);
5
+ const F = [
6
+ "top-patch",
7
+ "top-neighbor-patch",
8
+ "top-ribbon",
9
+ "top-neighbor-ribbon",
10
+ "top-patch-and-neighbor-ribbon"
11
+ ], _ = [
12
+ "1",
13
+ "2",
14
+ "3",
15
+ "4",
16
+ "5",
17
+ "6",
18
+ "7",
19
+ "8",
20
+ "9",
21
+ "10",
22
+ "11",
23
+ "12"
24
+ ], l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, p = "px-padding", Z = [
25
+ d(
7
26
  "padding",
8
27
  l,
9
- d,
10
- b,
28
+ g,
29
+ p,
11
30
  "--container-padding"
12
31
  ),
13
- s(
32
+ d(
14
33
  "padding-inline",
15
34
  l,
16
- d,
17
- b
35
+ g,
36
+ p
18
37
  ),
19
- s(
38
+ d(
20
39
  "padding-block",
21
40
  l,
22
- d,
23
- b
41
+ g,
42
+ p
24
43
  ),
25
- s(
44
+ d(
26
45
  "padding-top",
27
46
  l,
28
- d,
29
- b
47
+ g,
48
+ p
30
49
  ),
31
- s(
50
+ d(
32
51
  "padding-right",
33
52
  l,
34
- d,
35
- b,
53
+ g,
54
+ p,
36
55
  "--container-padding-right"
37
56
  ),
38
- s(
57
+ d(
39
58
  "padding-bottom",
40
59
  l,
41
- d,
42
- b
60
+ g,
61
+ p
43
62
  ),
44
- s(
63
+ d(
45
64
  "padding-left",
46
65
  l,
47
- d,
48
- b,
66
+ g,
67
+ p,
49
68
  "--container-padding-left"
69
+ ),
70
+ d(
71
+ "gap",
72
+ l,
73
+ x,
74
+ "px-spacing",
75
+ void 0,
76
+ "subgrid-gap"
50
77
  )
51
- ], k = class k extends z {
78
+ ], $ = class $ extends m {
52
79
  constructor() {
53
- super(S, ..._), this.template = () => `<div class="container">
80
+ super(T, ...Z), this.template = () => `<div class="container">
54
81
  <slot></slot>
55
82
  <slot name="anchor-left"></slot>
56
83
  <slot name="anchor-right"></slot>
57
84
  <slot name="anchor-full"></slot>
58
- </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();
59
86
  }
60
87
  static get observedAttributes() {
61
88
  return [
@@ -87,11 +114,13 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
87
114
  "background-position",
88
115
  "box-shadow",
89
116
  "anchor-offset",
90
- "inverted"
117
+ "anchor-spacing",
118
+ "inverted",
119
+ "subgrid-rows"
91
120
  ];
92
121
  }
93
122
  connectedCallback() {
94
- super.connectedCallback(), this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
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(() => {
95
124
  this.$slotAnchor && this.addAnchorClass();
96
125
  }), this.contentObserver.observe(this, {
97
126
  childList: !0,
@@ -105,8 +134,8 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
105
134
  }), this._bgObserver.observe(this.$el);
106
135
  }
107
136
  disconnectedCallback() {
108
- var t;
109
- (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();
110
139
  }
111
140
  attributeChangedCallback(t, i, e) {
112
141
  if (i !== e)
@@ -121,14 +150,14 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
121
150
  case "border-side--mobile":
122
151
  case "border-side--tablet":
123
152
  case "border-side--laptop":
124
- this.updateAttribute(t, i, e, E);
153
+ this.updateAttribute(t, i, e, O);
125
154
  break;
126
155
  case "border-radius":
127
156
  this.updateAttribute(
128
157
  t,
129
158
  i,
130
159
  e,
131
- D
160
+ E
132
161
  );
133
162
  break;
134
163
  case "no-border-radius":
@@ -159,7 +188,7 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
159
188
  t,
160
189
  i,
161
190
  e,
162
- x
191
+ C
163
192
  );
164
193
  break;
165
194
  case "background-image":
@@ -172,10 +201,21 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
172
201
  e !== null && e !== "" && (this.$el.style.backgroundPosition = e);
173
202
  break;
174
203
  case "box-shadow":
175
- this.updateAttribute(t, i, e, R);
204
+ this.updateAttribute(t, i, e, D);
176
205
  break;
177
206
  case "anchor-offset":
178
- this.updateAnchorOffset(i, e, d);
207
+ this.updateAnchorOffset(i, e, g);
208
+ break;
209
+ case "anchor-spacing":
210
+ this.updateAnchorSpacing(i, e, F);
211
+ break;
212
+ case "subgrid-rows":
213
+ this.updateSubgridRows(
214
+ t,
215
+ i,
216
+ e,
217
+ _
218
+ );
179
219
  break;
180
220
  default:
181
221
  super.attributeChangedCallback(t, i, e);
@@ -197,7 +237,7 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
197
237
  this.$el.style.setProperty(`--${t}`, `url("${i}")`);
198
238
  }
199
239
  updateGradient(t, i) {
200
- if (this.checkName(A, i)) {
240
+ if (this.checkName(f, i)) {
201
241
  const e = this.splitAttrNameFromBreakpoint(t);
202
242
  t = e.attrName;
203
243
  const o = e.breakpoint;
@@ -206,11 +246,13 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
206
246
  `linear-gradient(var(--px-color-background-gradient-${i}))`
207
247
  );
208
248
  } else
209
- console.error(`${i} is not an allowed background-gradient value`);
249
+ s(
250
+ `"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${f.join('", "')}".`
251
+ );
210
252
  }
211
253
  updateBackgroundColor(t, i) {
212
254
  const e = i.startsWith("surface-");
213
- if (this.checkName(p, i)) {
255
+ if (this.checkName(u, i)) {
214
256
  const o = this.splitAttrNameFromBreakpoint(t), r = o.breakpoint;
215
257
  this.$el.style.setProperty(
216
258
  `--${o.attrName}${r}`,
@@ -220,20 +262,26 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
220
262
  `var(--px-color-background-${i}${e ? "" : "-inverted"})`
221
263
  );
222
264
  } else
223
- console.error(`${i} is not an allowed ${t} value`);
265
+ s(
266
+ `"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${u.join('", "')}".`
267
+ );
224
268
  }
225
269
  updateBorderColor(t, i) {
226
- this.checkName(O, i) ? (this.$el.style.setProperty(
270
+ this.checkName(S, i) ? (this.$el.style.setProperty(
227
271
  `--${t}`,
228
272
  `var(--px-color-border-${i}-default)`
229
273
  ), this.$el.style.setProperty(
230
274
  `--${t}-inverted`,
231
275
  `var(--px-color-border-${i}-inverted)`
232
- )) : console.error(`${i} is not an allowed ${t} value`);
276
+ )) : s(
277
+ `"${i}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${S.join('", "')}".`
278
+ );
233
279
  }
234
280
  updateNoBorderRadius(t, i, e, o) {
235
281
  if (!this.checkName(o, e))
236
- console.error(`${e} is not an allowed ${t} value`);
282
+ s(
283
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
284
+ );
237
285
  else {
238
286
  const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
239
287
  i !== null && i !== "" && this.$el.classList.toggle(
@@ -245,7 +293,9 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
245
293
  }
246
294
  updateAttribute(t, i, e, o) {
247
295
  if (!this.checkName(o, e))
248
- console.error(`${e} is not an allowed ${t} value`);
296
+ s(
297
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
298
+ );
249
299
  else {
250
300
  const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
251
301
  i !== null && i !== "" && this.$el.classList.toggle(
@@ -266,8 +316,10 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
266
316
  return { attrName: t, breakpoint: i };
267
317
  }
268
318
  updateAnchorOffset(t, i, e) {
269
- if (!$(e, i)) {
270
- console.error(`${i} is not a valid anchor-offset value`);
319
+ if (!h(e, i)) {
320
+ s(
321
+ `"${i}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
322
+ );
271
323
  return;
272
324
  }
273
325
  const o = (r) => {
@@ -287,6 +339,39 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
287
339
  addAnchorClass() {
288
340
  this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
289
341
  }
342
+ updateAnchorSpacing(t, i, e) {
343
+ if (!h(e, i)) {
344
+ s(
345
+ `"${i}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
346
+ );
347
+ return;
348
+ }
349
+ const o = (r) => {
350
+ r !== null && r !== "" && r !== "default" && (this.style.setProperty(
351
+ "--container-anchor-spacing--mobile",
352
+ `var(--px-spacing-${r}-mobile)`
353
+ ), this.style.setProperty(
354
+ "--container-anchor-spacing--tablet",
355
+ `var(--px-spacing-${r}-tablet)`
356
+ ), this.style.setProperty(
357
+ "--container-anchor-spacing--laptop",
358
+ `var(--px-spacing-${r}-laptop)`
359
+ ), this.style.setProperty(
360
+ "--container-anchor-spacing--desktop",
361
+ `var(--px-spacing-${r}-desktop)`
362
+ ));
363
+ };
364
+ o(t), o(i);
365
+ }
366
+ updateSubgridRows(t, i, e, o) {
367
+ h(o, e) ? this.style.setProperty(`--${t}`, e) : s(
368
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
369
+ );
370
+ }
371
+ get $el() {
372
+ var t;
373
+ return (t = this == null ? void 0 : this.shadowRoot) == null ? void 0 : t.querySelector(".container");
374
+ }
290
375
  get $slotAnchor() {
291
376
  return this.querySelector('[slot^="anchor"]');
292
377
  }
@@ -620,46 +705,86 @@ const l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b
620
705
  set anchorOffset(t) {
621
706
  this.setAttribute("anchor-offset", t);
622
707
  }
708
+ get anchorSpacing() {
709
+ return this.getAttribute("anchor-spacing");
710
+ }
711
+ set anchorSpacing(t) {
712
+ this.setAttribute("anchor-spacing", t);
713
+ }
623
714
  get inverted() {
624
- return this.getAttribute("inverted");
715
+ return this.hasAttribute("inverted");
625
716
  }
626
717
  set inverted(t) {
627
- this.setAttribute("inverted", t);
718
+ t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
719
+ }
720
+ get subgridRows() {
721
+ return this.getAttribute("subgrid-rows");
722
+ }
723
+ set subgridRows(t) {
724
+ this.setAttribute("subgrid-rows", t);
725
+ }
726
+ get subgridGap() {
727
+ return this.getAttribute("subgrid-gap");
728
+ }
729
+ set subgridGap(t) {
730
+ this.setAttribute("subgrid-gap", t);
731
+ }
732
+ get subgridGapMobile() {
733
+ return this.getAttribute("subgrid-gap--mobile");
734
+ }
735
+ set subgridGapMobile(t) {
736
+ this.setAttribute("subgrid-gap--mobile", t);
737
+ }
738
+ get subgridGapTablet() {
739
+ return this.getAttribute("subgrid-gap--tablet");
740
+ }
741
+ set subgridGapTablet(t) {
742
+ this.setAttribute("subgrid-gap--tablet", t);
743
+ }
744
+ get subgridGapLaptop() {
745
+ return this.getAttribute("subgrid-gap--laptop");
746
+ }
747
+ set subgridGapLaptop(t) {
748
+ this.setAttribute("subgrid-gap--laptop", t);
628
749
  }
629
750
  };
630
- k.nativeName = "div";
631
- let u = k;
632
- customElements.get("px-container") || customElements.define("px-container", u);
633
- const Z = ':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))}}', T = new CSSStyleSheet();
634
- T.replaceSync(Z);
635
- const W = [
751
+ $.nativeName = "div";
752
+ let k = $;
753
+ customElements.get("px-container") || customElements.define("px-container", k);
754
+ const W = ':host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media screen and (max-width: 47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (min-width: 48rem) and (max-width: 64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (min-width: 64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media screen and (min-width: 90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', I = new CSSStyleSheet();
755
+ I.replaceSync(W);
756
+ const Y = [
636
757
  "",
637
758
  "default",
638
759
  "row",
639
760
  "row-reverse",
640
761
  "column",
641
762
  "column-reverse"
642
- ], Y = [
763
+ ], J = [
643
764
  "",
644
765
  "default",
645
766
  "stretch",
646
767
  "flex-start",
768
+ "start",
647
769
  "flex-end",
770
+ "end",
648
771
  "center",
649
772
  "baseline"
650
- ], J = [
773
+ ], K = [
651
774
  "",
652
775
  "default",
653
776
  "flex-start",
777
+ "start",
654
778
  "flex-end",
779
+ "end",
655
780
  "center",
656
781
  "space-between",
657
782
  "space-around",
658
783
  "space-evenly"
659
- ], K = ["", "default", "nowrap", "wrap", "wrap-reverse"], Q = ["", "visible", "hidden", "scroll", "auto"];
660
- class f extends j {
784
+ ], Q = ["", "default", "nowrap", "wrap", "wrap-reverse"], U = ["", "visible", "hidden", "scroll", "auto"];
785
+ class A extends m {
661
786
  constructor() {
662
- super(T), this.overflowXAttributeDelegate = new q(
787
+ super(I), this.overflowXAttributeDelegate = new G(
663
788
  this,
664
789
  "overflow-x",
665
790
  (t) => t,
@@ -713,7 +838,7 @@ class f extends j {
713
838
  case "gap--tablet":
714
839
  case "gap--laptop":
715
840
  case "gap--desktop":
716
- this.updateFlexProperties(t, i, e, C);
841
+ this.updateFlexProperties(t, i, e, x);
717
842
  break;
718
843
  case "justify-content":
719
844
  case "justify-content--mobile":
@@ -724,7 +849,7 @@ class f extends j {
724
849
  t,
725
850
  i,
726
851
  e,
727
- J
852
+ K
728
853
  );
729
854
  break;
730
855
  case "align-items":
@@ -732,28 +857,28 @@ class f extends j {
732
857
  case "align-items--tablet":
733
858
  case "align-items--laptop":
734
859
  case "align-items--desktop":
735
- this.updateFlexProperties(t, i, e, Y);
860
+ this.updateFlexProperties(t, i, e, J);
736
861
  break;
737
862
  case "wrap":
738
863
  case "wrap--mobile":
739
864
  case "wrap--tablet":
740
865
  case "wrap--laptop":
741
866
  case "wrap--desktop":
742
- this.updateFlexProperties(t, i, e, K);
867
+ this.updateFlexProperties(t, i, e, Q);
743
868
  break;
744
869
  case "direction":
745
870
  case "direction--mobile":
746
871
  case "direction--tablet":
747
872
  case "direction--laptop":
748
873
  case "direction--desktop":
749
- this.updateFlexProperties(t, i, e, W);
874
+ this.updateFlexProperties(t, i, e, Y);
750
875
  break;
751
876
  case "overflow-x":
752
877
  case "overflow-x--mobile":
753
878
  case "overflow-x--tablet":
754
879
  case "overflow-x--laptop":
755
880
  case "overflow-x--desktop":
756
- this.updateOverflowX(t, i, e, Q);
881
+ this.updateOverflowX(t, i, e, U);
757
882
  break;
758
883
  default:
759
884
  super.attributeChangedCallback(t, i, e);
@@ -761,8 +886,10 @@ class f extends j {
761
886
  }
762
887
  }
763
888
  updateOverflowX(t, i, e, o) {
764
- if (!$(o, e)) {
765
- console.error(`${e} is not an allowed ${t} value`);
889
+ if (!h(o, e)) {
890
+ s(
891
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
892
+ );
766
893
  return;
767
894
  }
768
895
  this.overflowXAttributeDelegate.attributeChangedCallback(
@@ -772,22 +899,27 @@ class f extends j {
772
899
  );
773
900
  }
774
901
  updateFlexProperties(t, i, e, o) {
775
- this.checkName(o, e) || console.error(`${e} is not a valid value for ${o}`);
902
+ this.checkName(o, e) || s(
903
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
904
+ );
776
905
  const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, c = [];
777
906
  if (!r)
778
- 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) => {
779
- this.updateStyle(a, g, i, o), this.updateStyle(a, g, e, o);
907
+ this.getAttribute(a + "--mobile") || c.push("mobile"), this.getAttribute(a + "--tablet") || c.push("tablet"), this.getAttribute(a + "--laptop") || c.push("laptop"), this.getAttribute(a + "--desktop") || c.push("desktop"), c.forEach((b) => {
908
+ this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
780
909
  });
781
910
  else {
782
- const g = t.split("--")[1];
783
- this.updateStyle(a, g, i, o), this.updateStyle(a, g, e, o);
911
+ const b = t.split("--")[1];
912
+ this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
784
913
  }
785
914
  }
786
915
  updateStyle(t, i, e, o) {
787
- e && (t === "gap" && o && o.includes(e) ? this.$el.style.setProperty(
916
+ e && (t === "gap" && o && o.includes(e) ? (this.$el.style.setProperty(
788
917
  `--flex-${t}--${i}-value`,
789
918
  `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
790
- ) : this.$el.style.setProperty(
919
+ ), this.style.setProperty(
920
+ `--host-gap--${i}`,
921
+ `var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
922
+ )) : this.$el.style.setProperty(
791
923
  `--flex-${t}--${i}-value`,
792
924
  e
793
925
  ));
@@ -976,8 +1108,8 @@ class f extends j {
976
1108
  return this.shadowRoot.querySelector(".flex-container");
977
1109
  }
978
1110
  }
979
- customElements.get("px-stack") || customElements.define("px-stack", f);
980
- class U extends f {
1111
+ customElements.get("px-stack") || customElements.define("px-stack", A);
1112
+ class V extends A {
981
1113
  constructor() {
982
1114
  super();
983
1115
  }
@@ -985,8 +1117,8 @@ class U extends f {
985
1117
  super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
986
1118
  }
987
1119
  }
988
- customElements.get("px-vstack") || customElements.define("px-vstack", U);
989
- class N extends f {
1120
+ customElements.get("px-vstack") || customElements.define("px-vstack", V);
1121
+ class tt extends A {
990
1122
  constructor() {
991
1123
  super();
992
1124
  }
@@ -994,8 +1126,8 @@ class N extends f {
994
1126
  super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
995
1127
  }
996
1128
  }
997
- customElements.get("px-hstack") || customElements.define("px-hstack", N);
998
- class V extends HTMLElement {
1129
+ customElements.get("px-hstack") || customElements.define("px-hstack", tt);
1130
+ class et extends HTMLElement {
999
1131
  constructor() {
1000
1132
  super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
1001
1133
  }
@@ -1042,12 +1174,12 @@ class V extends HTMLElement {
1042
1174
  t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
1043
1175
  }
1044
1176
  }
1045
- customElements.get("px-spacer") || customElements.define("px-spacer", V);
1046
- const tt = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", L = new CSSStyleSheet();
1047
- L.replaceSync(tt);
1048
- class et extends j {
1177
+ customElements.get("px-spacer") || customElements.define("px-spacer", et);
1178
+ const it = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", M = new CSSStyleSheet();
1179
+ M.replaceSync(it);
1180
+ class ot extends m {
1049
1181
  constructor() {
1050
- super(L), this.template = (t) => `
1182
+ super(M), this.template = (t) => `
1051
1183
  <px-container border-radius="none" padding="none">
1052
1184
  <px-vstack>
1053
1185
  <px-container id="header-container" border-radius="none">
@@ -1224,7 +1356,7 @@ class et extends j {
1224
1356
  case "background-color":
1225
1357
  this.$bodyContainer.setAttribute(
1226
1358
  "background-color",
1227
- p.indexOf(e) > 0 ? e : "none"
1359
+ u.indexOf(e) > 0 ? e : "none"
1228
1360
  );
1229
1361
  break;
1230
1362
  case "padding-vertical":
@@ -1244,14 +1376,14 @@ class et extends j {
1244
1376
  this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
1245
1377
  }
1246
1378
  }
1247
- customElements.get("px-page") === void 0 && customElements.define("px-page", et);
1248
- const I = new CSSStyleSheet();
1249
- I.replaceSync(X);
1250
- class it extends HTMLElement {
1379
+ customElements.get("px-page") === void 0 && customElements.define("px-page", ot);
1380
+ const B = new CSSStyleSheet();
1381
+ B.replaceSync(N);
1382
+ class rt extends m {
1251
1383
  constructor() {
1252
- super(), this.template = () => `
1253
- <px-container border-radius="none" padding-inline="none" background-color="${this.backgroundColor}">
1254
- <div class="content-wrapper ${this.$slotOverlap ? "overlapped" : ""}">
1384
+ super(B), this.template = () => `
1385
+ <px-container border-radius="none" padding-inline="none">
1386
+ <div class="content-wrapper">
1255
1387
  <px-vstack gap="heading-to-content">
1256
1388
  <slot name="heading"></slot>
1257
1389
  <px-vstack gap="none">
@@ -1263,14 +1395,18 @@ class it extends HTMLElement {
1263
1395
  <div class="content-wrapper">
1264
1396
  <slot name="overlap"></slot>
1265
1397
  </div>
1266
- `, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [I];
1398
+ `, this.shadowRoot.innerHTML = this.template();
1267
1399
  }
1268
1400
  connectedCallback() {
1269
- const t = this.querySelector('[slot="heading"]');
1270
- !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), t || this.shadowRoot.querySelector("px-vstack").setAttribute("gap", "none");
1401
+ var t, i;
1402
+ this.$container.setAttribute("background-color", this.backgroundColor), !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), this.setHeadingSpacing = this.setHeadingSpacing.bind(this), this.setHeadingSpacing(), (t = this.$slotHeading) == null || t.addEventListener("slotchange", this.setHeadingSpacing), this.toggleOverlapSpacing = this.toggleOverlapSpacing.bind(this), this.toggleOverlapSpacing(), (i = this.$slotOverlap) == null || i.addEventListener(
1403
+ "slotchange",
1404
+ this.toggleOverlapSpacing
1405
+ );
1271
1406
  }
1272
1407
  static get observedAttributes() {
1273
1408
  return [
1409
+ ...super.observedAttributes,
1274
1410
  "background-color",
1275
1411
  "background-gradient",
1276
1412
  "background-image",
@@ -1298,14 +1434,11 @@ class it extends HTMLElement {
1298
1434
  "border-side--laptop"
1299
1435
  ];
1300
1436
  }
1301
- get $container() {
1302
- return this.shadowRoot.querySelector("px-container");
1303
- }
1304
1437
  attributeChangedCallback(t, i, e) {
1305
1438
  if (i !== e)
1306
1439
  switch (t) {
1307
1440
  case "background-color":
1308
- this.$container.backgroundColor = p.indexOf(e) > 0 ? e : "none";
1441
+ this.$container.backgroundColor = u.indexOf(e) > 0 ? e : "none";
1309
1442
  break;
1310
1443
  case "background-gradient":
1311
1444
  this.$container.gradient = this.gradient;
@@ -1379,11 +1512,61 @@ class it extends HTMLElement {
1379
1512
  case "border-side--laptop":
1380
1513
  this.$container.borderSideLaptop = e;
1381
1514
  break;
1515
+ default:
1516
+ super.attributeChangedCallback(t, i, e);
1517
+ break;
1382
1518
  }
1383
1519
  }
1520
+ disconnectedCallback() {
1521
+ var t, i;
1522
+ (t = this.$slotHeading) == null || t.removeEventListener(
1523
+ "slotchange",
1524
+ this.setHeadingSpacing
1525
+ ), (i = this.$slotOverlap) == null || i.removeEventListener(
1526
+ "slotchange",
1527
+ this.toggleOverlapSpacing
1528
+ );
1529
+ }
1530
+ toggleOverlapSpacing() {
1531
+ const t = this.$slotOverlap, i = this.$mainContentWrapper;
1532
+ if (!t || !i) return;
1533
+ const o = t.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
1534
+ i.classList.toggle("overlapped", o);
1535
+ }
1536
+ isNotEmptyNode(t) {
1537
+ return t.nodeType === Node.ELEMENT_NODE ? !0 : t.nodeType === Node.TEXT_NODE ? (t.textContent ?? "").trim().length > 0 : !1;
1538
+ }
1539
+ setHeadingSpacing() {
1540
+ var e;
1541
+ const t = this.$slotHeading, i = (e = this.shadowRoot) == null ? void 0 : e.querySelector("px-vstack");
1542
+ t && i && (t.assignedElements().length > 0 ? i.setAttribute("gap", "heading-to-content") : i.setAttribute("gap", "none"));
1543
+ }
1544
+ get $container() {
1545
+ var t;
1546
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector("px-container");
1547
+ }
1548
+ get $mainContentWrapper() {
1549
+ var t;
1550
+ return (t = this.$container) == null ? void 0 : t.querySelector(".content-wrapper");
1551
+ }
1384
1552
  get $slotOverlap() {
1553
+ var t;
1554
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1555
+ 'slot[name="overlap"]'
1556
+ );
1557
+ }
1558
+ get $slottedOverlap() {
1385
1559
  return this.querySelector('[slot="overlap"]');
1386
1560
  }
1561
+ get $slotHeading() {
1562
+ var t;
1563
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
1564
+ 'slot[name="heading"]'
1565
+ );
1566
+ }
1567
+ get $slottedHeading() {
1568
+ return this.querySelector('[slot="heading"]');
1569
+ }
1387
1570
  get backgroundColor() {
1388
1571
  return this.getAttribute("background-color") || "none";
1389
1572
  }
@@ -1535,10 +1718,10 @@ class it extends HTMLElement {
1535
1718
  this.setAttribute("border-side--laptop", t);
1536
1719
  }
1537
1720
  }
1538
- customElements.get("px-section") || customElements.define("px-section", it);
1539
- const ot = ":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}}", M = new CSSStyleSheet();
1540
- M.replaceSync(ot);
1541
- const rt = [
1721
+ customElements.get("px-section") || customElements.define("px-section", rt);
1722
+ const at = ":host{display:block;--grid-cols: initial;--grid-cols--mobile: initial;--grid-cols--tablet: initial;--grid-cols--laptop: initial;--grid-cols--desktop: initial;--justify-content: initial;--justify-items: initial;--align-content: initial;--align-items: initial}.grid{display:grid;grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items)}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media screen and (max-width: 47.938rem){.grid{grid-template-columns:repeat(var(--grid-cols--mobile, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media screen and (min-width: 48rem) and (max-width: 64rem){.grid{grid-template-columns:repeat(var(--grid-cols--tablet, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media screen and (min-width: 64.0625rem){.grid{grid-template-columns:repeat(var(--grid-cols--laptop, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}", z = new CSSStyleSheet();
1723
+ z.replaceSync(at);
1724
+ const st = [
1542
1725
  "1",
1543
1726
  "2",
1544
1727
  "3",
@@ -1551,7 +1734,7 @@ const rt = [
1551
1734
  "10",
1552
1735
  "11",
1553
1736
  "12"
1554
- ], at = [
1737
+ ], nt = [
1555
1738
  "",
1556
1739
  "start",
1557
1740
  "end",
@@ -1560,15 +1743,15 @@ const rt = [
1560
1743
  "space-around",
1561
1744
  "space-evenly",
1562
1745
  "stretch"
1563
- ], nt = ["", "start", "end", "center", "stretch"], st = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, dt = "px-spacing", lt = s(
1746
+ ], dt = ["", "start", "end", "center", "stretch"], lt = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, gt = "px-spacing", pt = d(
1564
1747
  "gap",
1565
- st,
1566
- C,
1567
- dt,
1748
+ lt,
1749
+ x,
1750
+ gt,
1568
1751
  "--grid-gap"
1569
- ), v = class v extends w {
1752
+ ), w = class w extends L {
1570
1753
  constructor() {
1571
- super(M, lt), this.template = () => `<div class="grid">
1754
+ super(z, pt), this.template = () => `<div class="grid">
1572
1755
  <slot></slot>
1573
1756
  </div>`, this.shadowRoot.innerHTML = this.template();
1574
1757
  }
@@ -1611,7 +1794,7 @@ const rt = [
1611
1794
  case "grid-cols--mobile":
1612
1795
  case "grid-cols--tablet":
1613
1796
  case "grid-cols--laptop":
1614
- this.updateAttribute(t, i, e, rt);
1797
+ this.updateAttribute(t, i, e, st);
1615
1798
  break;
1616
1799
  case "justify-content":
1617
1800
  case "align-content":
@@ -1627,7 +1810,7 @@ const rt = [
1627
1810
  t,
1628
1811
  i,
1629
1812
  e,
1630
- at
1813
+ nt
1631
1814
  );
1632
1815
  break;
1633
1816
  case "justify-items":
@@ -1644,7 +1827,7 @@ const rt = [
1644
1827
  t,
1645
1828
  i,
1646
1829
  e,
1647
- nt
1830
+ dt
1648
1831
  );
1649
1832
  break;
1650
1833
  default:
@@ -1654,7 +1837,9 @@ const rt = [
1654
1837
  }
1655
1838
  updateGap(t, i, e) {
1656
1839
  if (!this.checkName(e, i)) {
1657
- console.error(`${i} is not a valid gap value`);
1840
+ s(
1841
+ `"${i}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${e.join('", "')}".`
1842
+ );
1658
1843
  return;
1659
1844
  }
1660
1845
  const o = (r) => {
@@ -1672,7 +1857,9 @@ const rt = [
1672
1857
  o(t), o(i);
1673
1858
  }
1674
1859
  updateAttribute(t, i, e, o) {
1675
- 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`);
1860
+ 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(
1861
+ `"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
1862
+ );
1676
1863
  }
1677
1864
  get gap() {
1678
1865
  return this.getAttribute("gap");
@@ -1843,31 +2030,31 @@ const rt = [
1843
2030
  this.setAttribute("align-items--desktop", t);
1844
2031
  }
1845
2032
  };
1846
- v.nativeName = "div";
1847
- let h = v;
1848
- customElements.get("px-grid") || customElements.define("px-grid", h);
1849
- const B = new CSSStyleSheet();
1850
- B.replaceSync(G);
1851
- const y = class y extends w {
2033
+ w.nativeName = "div";
2034
+ let v = w;
2035
+ customElements.get("px-grid") || customElements.define("px-grid", v);
2036
+ const R = new CSSStyleSheet();
2037
+ R.replaceSync(q);
2038
+ const j = class j extends L {
1852
2039
  constructor() {
1853
- super(B), this.template = () => `<div class="content-header">
2040
+ super(R), this.template = () => `<div class="content-header">
1854
2041
  <div class="contrast-helper"></div>
1855
2042
  <px-section padding-block="l">
1856
- <px-grid gap="none">
1857
- <px-container padding="none" border-radius="none" background-color="none" >
1858
- <div class="content-header-content">
1859
- <px-vstack gap="heading-to-subtitle">
1860
- <px-h1 variant="title-3xl"><slot></slot></px-h1>
1861
- <slot name="subtitle"></slot>
1862
- </px-vstack>
1863
- ${this.$patchDescriptionSlot ? `<px-stack gap="s" direction="row" direction--mobile="column">
1864
- <slot name="patch" shrink></slot>
1865
- <slot name="patch-description"></slot>
1866
- </px-stack>` : ""}
1867
- </div>
1868
- </px-container>
1869
- </px-grid>
1870
- ${this.$overlapSlot ? '<slot name="overlap" slot="overlap"></slot>' : ""}
2043
+ <px-grid gap="none">
2044
+ <px-container padding="none" border-radius="none" background-color="none" >
2045
+ <div class="content-header-content">
2046
+ <px-vstack gap="heading-to-subtitle">
2047
+ <px-h1><slot></slot></px-h1>
2048
+ <slot name="subtitle"></slot>
2049
+ </px-vstack>
2050
+ <px-stack gap="s" direction="row" direction--mobile="column">
2051
+ <slot name="patch" shrink></slot>
2052
+ <slot name="patch-description"></slot>
2053
+ </px-stack>
2054
+ </div>
2055
+ </px-container>
2056
+ </px-grid>
2057
+ <slot name="overlap" slot="overlap"></slot>
1871
2058
  </px-section>
1872
2059
  </div>`, this.shadowRoot.innerHTML = this.template();
1873
2060
  }
@@ -1888,20 +2075,25 @@ const y = class y extends w {
1888
2075
  "has-gridding--mobile",
1889
2076
  "has-gridding--tablet",
1890
2077
  "has-gridding--laptop",
2078
+ "has-gridding--desktop",
1891
2079
  "inverted"
1892
2080
  ];
1893
2081
  }
1894
2082
  connectedCallback() {
1895
- 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();
2083
+ var t, i;
2084
+ this.styleSubtitleSlot = this.styleSubtitleSlot.bind(this), this.stylepatchDescriptionSlotted = this.stylepatchDescriptionSlotted.bind(this), this.styleSubtitleSlot(), this.stylepatchDescriptionSlotted(), this.createGridding(), (t = this.$subtitleSlot) == null || t.addEventListener("slotchange", this.styleSubtitleSlot), (i = this.$patchDescriptionSlot) == null || i.addEventListener(
2085
+ "slotchange",
2086
+ this.stylepatchDescriptionSlotted
2087
+ );
1896
2088
  }
1897
2089
  attributeChangedCallback(t, i, e) {
1898
2090
  if (i !== e)
1899
2091
  switch (t) {
1900
2092
  case "background-color":
1901
- this.$section.backgroundColor = p.indexOf(e) > 0 ? e : "none";
2093
+ this.$section.backgroundColor = u.indexOf(e) > 0 ? e : "none";
1902
2094
  break;
1903
2095
  case "background-gradient":
1904
- this.$section.gradient = A.indexOf(e) > 0 ? e : "none";
2096
+ this.$section.gradient = f.indexOf(e) > 0 ? e : "none";
1905
2097
  break;
1906
2098
  case "background-image":
1907
2099
  this.$section.backgroundImage = e;
@@ -1916,7 +2108,7 @@ const y = class y extends w {
1916
2108
  this.$section.backgroundImageLaptop = e;
1917
2109
  break;
1918
2110
  case "background-size":
1919
- this.$section.backgroundSize = x.indexOf(e) > 0 ? e : "";
2111
+ this.$section.backgroundSize = C.indexOf(e) > 0 ? e : "";
1920
2112
  break;
1921
2113
  case "background-position":
1922
2114
  this.$section.backgroundPosition = e;
@@ -1925,6 +2117,7 @@ const y = class y extends w {
1925
2117
  case "has-gridding--mobile":
1926
2118
  case "has-gridding--tablet":
1927
2119
  case "has-gridding--laptop":
2120
+ case "has-gridding--desktop":
1928
2121
  this.createGridding(e);
1929
2122
  break;
1930
2123
  case "inverted":
@@ -1937,31 +2130,52 @@ const y = class y extends w {
1937
2130
  break;
1938
2131
  }
1939
2132
  }
2133
+ disconnectedCallback() {
2134
+ var t, i;
2135
+ (t = this.$subtitleSlot) == null || t.removeEventListener(
2136
+ "slotchange",
2137
+ this.styleSubtitleSlot
2138
+ ), (i = this.$patchDescriptionSlot) == null || i.removeEventListener(
2139
+ "slotchange",
2140
+ this.stylepatchDescriptionSlotted
2141
+ );
2142
+ }
2143
+ stylepatchDescriptionSlotted() {
2144
+ this.$patchDescriptionSlotted && (this.$patchDescriptionSlotted.localName === "px-p" && this.$patchDescriptionSlotted.setAttribute("variant", "default"), (this.$patchDescriptionSlotted.localName === "px-p" || this.$patchDescriptionSlotted.localName === "px-span") && (this.$patchDescriptionSlotted.setAttribute("font-size", "body-l"), this.$patchDescriptionSlotted.removeAttribute("font-weight"), this.$patchDescriptionSlotted.removeAttribute("color")), this.$patchDescriptionSlotted.localName === "px-price" && this.$patchDescriptionSlotted.setAttribute("size", "m"));
2145
+ }
2146
+ styleSubtitleSlot() {
2147
+ this.$subtitleSlotted && this.$subtitleSlotted.setAttribute("variant", "subtitle");
2148
+ }
1940
2149
  createGridding(t) {
1941
2150
  const i = [
1942
- { prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
2151
+ { prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
1943
2152
  {
1944
2153
  prop: "hasGriddingMobile",
1945
- gridProp: "gridColsMobile",
2154
+ gridAttr: "grid-cols--mobile",
1946
2155
  attr: "col-span--mobile"
1947
2156
  },
1948
2157
  {
1949
2158
  prop: "hasGriddingTablet",
1950
- gridProp: "gridColsTablet",
2159
+ gridAttr: "grid-cols--tablet",
1951
2160
  attr: "col-span--tablet"
1952
2161
  },
1953
2162
  {
1954
2163
  prop: "hasGriddingLaptop",
1955
- gridProp: "gridColsLaptop",
2164
+ gridAttr: "grid-cols--laptop",
1956
2165
  attr: "col-span--laptop"
2166
+ },
2167
+ {
2168
+ prop: "hasGriddingDesktop",
2169
+ gridAttr: "grid-cols--desktop",
2170
+ attr: "col-span--desktop"
1957
2171
  }
1958
2172
  ], e = this.shadowRoot.querySelector(
1959
2173
  "px-grid > px-container"
1960
2174
  );
1961
- t !== null ? i.forEach(({ prop: o, gridProp: r, attr: a }) => {
1962
- this[o] && (this.$grid[r] = "3", e.setAttribute(a, "2"));
1963
- }) : i.forEach(({ gridProp: o, attr: r }) => {
1964
- this.$grid[o] = "1", e.removeAttribute(r);
2175
+ t !== null ? i.forEach(({ prop: o, gridAttr: r, attr: a }) => {
2176
+ this[o] && (this.$grid.setAttribute(r, "2"), e == null || e.setAttribute(a, "1"));
2177
+ }) : i.forEach(({ gridAttr: o, attr: r }) => {
2178
+ this.$grid.setAttribute(o, "1"), e == null || e.setAttribute(r, "1");
1965
2179
  });
1966
2180
  }
1967
2181
  get $grid() {
@@ -1974,9 +2188,21 @@ const y = class y extends w {
1974
2188
  return this.shadowRoot.querySelector("px-h1");
1975
2189
  }
1976
2190
  get $subtitleSlot() {
2191
+ var t;
2192
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
2193
+ 'slot[name="subtitle"]'
2194
+ );
2195
+ }
2196
+ get $subtitleSlotted() {
1977
2197
  return this.querySelector('[slot="subtitle"]');
1978
2198
  }
1979
2199
  get $patchDescriptionSlot() {
2200
+ var t;
2201
+ return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
2202
+ 'slot[name="patch-description"]'
2203
+ );
2204
+ }
2205
+ get $patchDescriptionSlotted() {
1980
2206
  return this.querySelector('[slot="patch-description"]');
1981
2207
  }
1982
2208
  get $overlapSlot() {
@@ -2069,6 +2295,12 @@ const y = class y extends w {
2069
2295
  set hasGriddingLaptop(t) {
2070
2296
  t ? this.setAttribute("has-gridding--laptop", "") : this.removeAttribute("has-gridding--laptop");
2071
2297
  }
2298
+ get hasGriddingDesktop() {
2299
+ return this.hasAttribute("has-gridding--desktop");
2300
+ }
2301
+ set hasGriddingDesktop(t) {
2302
+ t ? this.setAttribute("has-gridding--desktop", "") : this.removeAttribute("has-gridding--desktop");
2303
+ }
2072
2304
  get inverted() {
2073
2305
  return this.hasAttribute("inverted");
2074
2306
  }
@@ -2082,9 +2314,9 @@ const y = class y extends w {
2082
2314
  t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
2083
2315
  }
2084
2316
  };
2085
- y.nativeName = "div";
2086
- let m = y;
2087
- customElements.get("px-content-header") || customElements.define("px-content-header", m);
2317
+ j.nativeName = "div";
2318
+ let y = j;
2319
+ customElements.get("px-content-header") || customElements.define("px-content-header", y);
2088
2320
  export {
2089
- m as ContentHeader
2321
+ y as ContentHeader
2090
2322
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-content-header",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.130",
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"