@proximus/lavender-content-header 2.0.0-alpha.4 → 2.0.0-alpha.40
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.
- package/dist/ContentHeader.d.ts +7 -3
- package/dist/index.es.js +563 -216
- package/package.json +2 -2
package/dist/ContentHeader.d.ts
CHANGED
|
@@ -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
|
|
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,56 +1,56 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
1
|
+
import { cssTokenBreakpoints as d, paddingValues as l, VerticallyExtendedElement as R, boxShadowValues as P, backgroundSizeValues as A, noBorderRadiusValues as D, borderRadiusValues as H, borderSideValues as E, borderValues as O, gradientValues as $, log as s, backgroundColorValues as u, borderColorValues as q, checkName as j, WithExtraAttributes as w, AttributeBreakpointHandlerDelegate as G, gapValues as C, PxElement as S } from "@proximus/lavender-common";
|
|
2
|
+
import "@proximus/lavender-heading";
|
|
3
|
+
const X = ":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))}}", F = ':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)}}', _ = ':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}}', L = new CSSStyleSheet();
|
|
4
|
+
L.replaceSync(_);
|
|
5
|
+
const b = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, g = "px-padding", N = [
|
|
6
|
+
d(
|
|
7
|
+
"padding",
|
|
8
|
+
b,
|
|
9
|
+
l,
|
|
10
|
+
g,
|
|
11
|
+
"--container-padding"
|
|
12
|
+
),
|
|
13
|
+
d(
|
|
14
|
+
"padding-inline",
|
|
15
|
+
b,
|
|
16
|
+
l,
|
|
17
|
+
g
|
|
18
|
+
),
|
|
19
|
+
d(
|
|
20
|
+
"padding-block",
|
|
21
|
+
b,
|
|
22
|
+
l,
|
|
23
|
+
g
|
|
24
|
+
),
|
|
25
|
+
d(
|
|
26
|
+
"padding-top",
|
|
27
|
+
b,
|
|
28
|
+
l,
|
|
29
|
+
g
|
|
30
|
+
),
|
|
31
|
+
d(
|
|
32
|
+
"padding-right",
|
|
33
|
+
b,
|
|
34
|
+
l,
|
|
35
|
+
g,
|
|
36
|
+
"--container-padding-right"
|
|
37
|
+
),
|
|
38
|
+
d(
|
|
39
|
+
"padding-bottom",
|
|
40
|
+
b,
|
|
41
|
+
l,
|
|
42
|
+
g
|
|
43
|
+
),
|
|
44
|
+
d(
|
|
45
|
+
"padding-left",
|
|
46
|
+
b,
|
|
47
|
+
l,
|
|
48
|
+
g,
|
|
49
|
+
"--container-padding-left"
|
|
50
|
+
)
|
|
51
|
+
], v = class v extends R {
|
|
5
52
|
constructor() {
|
|
6
|
-
super(
|
|
7
|
-
w,
|
|
8
|
-
d(
|
|
9
|
-
"padding",
|
|
10
|
-
l,
|
|
11
|
-
s,
|
|
12
|
-
b,
|
|
13
|
-
"--container-padding"
|
|
14
|
-
),
|
|
15
|
-
d(
|
|
16
|
-
"padding-inline",
|
|
17
|
-
l,
|
|
18
|
-
s,
|
|
19
|
-
b
|
|
20
|
-
),
|
|
21
|
-
d(
|
|
22
|
-
"padding-block",
|
|
23
|
-
l,
|
|
24
|
-
s,
|
|
25
|
-
b
|
|
26
|
-
),
|
|
27
|
-
d(
|
|
28
|
-
"padding-top",
|
|
29
|
-
l,
|
|
30
|
-
s,
|
|
31
|
-
b
|
|
32
|
-
),
|
|
33
|
-
d(
|
|
34
|
-
"padding-right",
|
|
35
|
-
l,
|
|
36
|
-
s,
|
|
37
|
-
b,
|
|
38
|
-
"--container-padding-right"
|
|
39
|
-
),
|
|
40
|
-
d(
|
|
41
|
-
"padding-bottom",
|
|
42
|
-
l,
|
|
43
|
-
s,
|
|
44
|
-
b
|
|
45
|
-
),
|
|
46
|
-
d(
|
|
47
|
-
"padding-left",
|
|
48
|
-
l,
|
|
49
|
-
s,
|
|
50
|
-
b,
|
|
51
|
-
"--container-padding-left"
|
|
52
|
-
)
|
|
53
|
-
), this.template = () => `<div class="container">
|
|
53
|
+
super(L, ...N), this.template = () => `<div class="container">
|
|
54
54
|
<slot></slot>
|
|
55
55
|
<slot name="anchor-left"></slot>
|
|
56
56
|
<slot name="anchor-right"></slot>
|
|
@@ -98,9 +98,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
98
98
|
subtree: !0,
|
|
99
99
|
characterData: !0
|
|
100
100
|
}), this._bgObserver = new IntersectionObserver((t) => {
|
|
101
|
-
t.forEach((
|
|
101
|
+
t.forEach((i) => {
|
|
102
102
|
var e;
|
|
103
|
-
|
|
103
|
+
i.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (e = this._bgObserver) == null || e.disconnect());
|
|
104
104
|
});
|
|
105
105
|
}), this._bgObserver.observe(this.$el);
|
|
106
106
|
}
|
|
@@ -108,11 +108,11 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
108
108
|
var t;
|
|
109
109
|
(t = this._bgObserver) == null || t.disconnect(), this.contentObserver.disconnect();
|
|
110
110
|
}
|
|
111
|
-
attributeChangedCallback(t,
|
|
112
|
-
if (
|
|
111
|
+
attributeChangedCallback(t, i, e) {
|
|
112
|
+
if (i !== e)
|
|
113
113
|
switch (t) {
|
|
114
114
|
case "border":
|
|
115
|
-
this.updateAttribute(t,
|
|
115
|
+
this.updateAttribute(t, i, e, O);
|
|
116
116
|
break;
|
|
117
117
|
case "border-color":
|
|
118
118
|
this.updateBorderColor(t, e);
|
|
@@ -121,14 +121,14 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
121
121
|
case "border-side--mobile":
|
|
122
122
|
case "border-side--tablet":
|
|
123
123
|
case "border-side--laptop":
|
|
124
|
-
this.updateAttribute(t,
|
|
124
|
+
this.updateAttribute(t, i, e, E);
|
|
125
125
|
break;
|
|
126
126
|
case "border-radius":
|
|
127
127
|
this.updateAttribute(
|
|
128
128
|
t,
|
|
129
|
-
|
|
129
|
+
i,
|
|
130
130
|
e,
|
|
131
|
-
|
|
131
|
+
H
|
|
132
132
|
);
|
|
133
133
|
break;
|
|
134
134
|
case "no-border-radius":
|
|
@@ -137,9 +137,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
137
137
|
case "no-border-radius--laptop":
|
|
138
138
|
this.updateNoBorderRadius(
|
|
139
139
|
t,
|
|
140
|
-
|
|
140
|
+
i,
|
|
141
141
|
e,
|
|
142
|
-
|
|
142
|
+
D
|
|
143
143
|
);
|
|
144
144
|
break;
|
|
145
145
|
case "background-color":
|
|
@@ -157,9 +157,9 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
157
157
|
case "background-size":
|
|
158
158
|
this.updateAttribute(
|
|
159
159
|
t,
|
|
160
|
-
|
|
160
|
+
i,
|
|
161
161
|
e,
|
|
162
|
-
|
|
162
|
+
A
|
|
163
163
|
);
|
|
164
164
|
break;
|
|
165
165
|
case "background-image":
|
|
@@ -172,13 +172,13 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
172
172
|
e !== null && e !== "" && (this.$el.style.backgroundPosition = e);
|
|
173
173
|
break;
|
|
174
174
|
case "box-shadow":
|
|
175
|
-
this.updateAttribute(t,
|
|
175
|
+
this.updateAttribute(t, i, e, P);
|
|
176
176
|
break;
|
|
177
177
|
case "anchor-offset":
|
|
178
|
-
this.updateAnchorOffset(
|
|
178
|
+
this.updateAnchorOffset(i, e, l);
|
|
179
179
|
break;
|
|
180
180
|
default:
|
|
181
|
-
super.attributeChangedCallback(t,
|
|
181
|
+
super.attributeChangedCallback(t, i, e);
|
|
182
182
|
break;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -188,101 +188,113 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
188
188
|
"background-image--mobile",
|
|
189
189
|
"background-image--tablet",
|
|
190
190
|
"background-image--laptop"
|
|
191
|
-
].forEach((
|
|
192
|
-
const e = this.getAttribute(
|
|
193
|
-
e && this.updateBackgroundImg(
|
|
191
|
+
].forEach((i) => {
|
|
192
|
+
const e = this.getAttribute(i);
|
|
193
|
+
e && this.updateBackgroundImg(i, e);
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
|
-
updateBackgroundImg(t,
|
|
197
|
-
this.$el.style.setProperty(`--${t}`, `url("${
|
|
196
|
+
updateBackgroundImg(t, i) {
|
|
197
|
+
this.$el.style.setProperty(`--${t}`, `url("${i}")`);
|
|
198
198
|
}
|
|
199
|
-
updateGradient(t,
|
|
200
|
-
if (this.checkName(
|
|
199
|
+
updateGradient(t, i) {
|
|
200
|
+
if (this.checkName($, i)) {
|
|
201
201
|
const e = this.splitAttrNameFromBreakpoint(t);
|
|
202
202
|
t = e.attrName;
|
|
203
203
|
const o = e.breakpoint;
|
|
204
204
|
this.$el.style.setProperty(
|
|
205
205
|
`--${t}${o}`,
|
|
206
|
-
`linear-gradient(var(--px-color-background-gradient-${
|
|
206
|
+
`linear-gradient(var(--px-color-background-gradient-${i}))`
|
|
207
207
|
);
|
|
208
208
|
} else
|
|
209
|
-
|
|
209
|
+
s(
|
|
210
|
+
`${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
211
|
+
);
|
|
210
212
|
}
|
|
211
|
-
updateBackgroundColor(t,
|
|
212
|
-
const e =
|
|
213
|
-
if (this.checkName(
|
|
214
|
-
const o = this.splitAttrNameFromBreakpoint(t),
|
|
213
|
+
updateBackgroundColor(t, i) {
|
|
214
|
+
const e = i.startsWith("surface-");
|
|
215
|
+
if (this.checkName(u, i)) {
|
|
216
|
+
const o = this.splitAttrNameFromBreakpoint(t), r = o.breakpoint;
|
|
215
217
|
this.$el.style.setProperty(
|
|
216
|
-
`--${o.attrName}${
|
|
217
|
-
`var(--px-color-background-${
|
|
218
|
+
`--${o.attrName}${r}`,
|
|
219
|
+
`var(--px-color-background-${i}${e ? "" : "-default"})`
|
|
218
220
|
), this.$el.style.setProperty(
|
|
219
|
-
`--${o.attrName}-inverted${
|
|
220
|
-
`var(--px-color-background-${
|
|
221
|
+
`--${o.attrName}-inverted${r}`,
|
|
222
|
+
`var(--px-color-background-${i}${e ? "" : "-inverted"})`
|
|
221
223
|
);
|
|
222
224
|
} else
|
|
223
|
-
|
|
225
|
+
s(
|
|
226
|
+
`${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
227
|
+
);
|
|
224
228
|
}
|
|
225
|
-
updateBorderColor(t,
|
|
226
|
-
this.checkName(
|
|
229
|
+
updateBorderColor(t, i) {
|
|
230
|
+
this.checkName(q, i) ? (this.$el.style.setProperty(
|
|
227
231
|
`--${t}`,
|
|
228
|
-
`var(--px-color-border-${
|
|
232
|
+
`var(--px-color-border-${i}-default)`
|
|
229
233
|
), this.$el.style.setProperty(
|
|
230
234
|
`--${t}-inverted`,
|
|
231
|
-
`var(--px-color-border-${
|
|
232
|
-
)) :
|
|
235
|
+
`var(--px-color-border-${i}-inverted)`
|
|
236
|
+
)) : s(
|
|
237
|
+
`${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
238
|
+
);
|
|
233
239
|
}
|
|
234
|
-
updateNoBorderRadius(t,
|
|
240
|
+
updateNoBorderRadius(t, i, e, o) {
|
|
235
241
|
if (!this.checkName(o, e))
|
|
236
|
-
|
|
242
|
+
s(
|
|
243
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
244
|
+
);
|
|
237
245
|
else {
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
`${
|
|
246
|
+
const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
|
|
247
|
+
i !== null && i !== "" && this.$el.classList.toggle(
|
|
248
|
+
`${r.attrName}-${i}${a}`
|
|
241
249
|
), e !== null && e !== "" && this.$el.classList.toggle(
|
|
242
|
-
`${
|
|
250
|
+
`${r.attrName}-${e}${a}`
|
|
243
251
|
);
|
|
244
252
|
}
|
|
245
253
|
}
|
|
246
|
-
updateAttribute(t,
|
|
254
|
+
updateAttribute(t, i, e, o) {
|
|
247
255
|
if (!this.checkName(o, e))
|
|
248
|
-
|
|
256
|
+
s(
|
|
257
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
258
|
+
);
|
|
249
259
|
else {
|
|
250
|
-
const
|
|
251
|
-
|
|
252
|
-
`${
|
|
260
|
+
const r = this.splitAttrNameFromBreakpoint(t), a = r.breakpoint;
|
|
261
|
+
i !== null && i !== "" && this.$el.classList.toggle(
|
|
262
|
+
`${r.attrName}-${i}${a}`
|
|
253
263
|
), e !== null && e !== "" && this.$el.classList.toggle(
|
|
254
|
-
`${
|
|
264
|
+
`${r.attrName}-${e}${a}`
|
|
255
265
|
);
|
|
256
266
|
}
|
|
257
267
|
}
|
|
258
268
|
splitAttrNameFromBreakpoint(t) {
|
|
259
|
-
let
|
|
269
|
+
let i = "";
|
|
260
270
|
if (["--mobile", "--tablet", "--laptop"].some(
|
|
261
271
|
(e) => t.includes(e)
|
|
262
272
|
)) {
|
|
263
273
|
const e = t.split("--");
|
|
264
|
-
t = e[0],
|
|
274
|
+
t = e[0], i = `--${e[1]}`;
|
|
265
275
|
}
|
|
266
|
-
return { attrName: t, breakpoint:
|
|
276
|
+
return { attrName: t, breakpoint: i };
|
|
267
277
|
}
|
|
268
|
-
updateAnchorOffset(t,
|
|
269
|
-
if (!
|
|
270
|
-
|
|
278
|
+
updateAnchorOffset(t, i, e) {
|
|
279
|
+
if (!j(e, i)) {
|
|
280
|
+
s(
|
|
281
|
+
`${i} is not a valid anchor-offset value for ${this.tagName.toLowerCase()}`
|
|
282
|
+
);
|
|
271
283
|
return;
|
|
272
284
|
}
|
|
273
|
-
const o = (
|
|
274
|
-
|
|
285
|
+
const o = (r) => {
|
|
286
|
+
r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
|
|
275
287
|
"--container-anchor-offset--mobile",
|
|
276
|
-
`var(--px-padding-${
|
|
288
|
+
`var(--px-padding-${r}-mobile)`
|
|
277
289
|
), this.$el.style.setProperty(
|
|
278
290
|
"--container-anchor-offset--tablet",
|
|
279
|
-
`var(--px-padding-${
|
|
291
|
+
`var(--px-padding-${r}-tablet)`
|
|
280
292
|
), this.$el.style.setProperty(
|
|
281
293
|
"--container-anchor-offset--laptop",
|
|
282
|
-
`var(--px-padding-${
|
|
294
|
+
`var(--px-padding-${r}-laptop)`
|
|
283
295
|
));
|
|
284
296
|
};
|
|
285
|
-
o(t), o(
|
|
297
|
+
o(t), o(i);
|
|
286
298
|
}
|
|
287
299
|
addAnchorClass() {
|
|
288
300
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
@@ -627,19 +639,19 @@ const l = (n, t, r) => `:host([${n}${r ? `--${r}` : ""}='${t}']) .container`, b
|
|
|
627
639
|
this.setAttribute("inverted", t);
|
|
628
640
|
}
|
|
629
641
|
};
|
|
630
|
-
|
|
631
|
-
let
|
|
632
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
const
|
|
642
|
+
v.nativeName = "div";
|
|
643
|
+
let h = v;
|
|
644
|
+
customElements.get("px-container") || customElements.define("px-container", h);
|
|
645
|
+
const Z = ':host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', T = new CSSStyleSheet();
|
|
646
|
+
T.replaceSync(Z);
|
|
647
|
+
const W = [
|
|
636
648
|
"",
|
|
637
649
|
"default",
|
|
638
650
|
"row",
|
|
639
651
|
"row-reverse",
|
|
640
652
|
"column",
|
|
641
653
|
"column-reverse"
|
|
642
|
-
],
|
|
654
|
+
], Y = [
|
|
643
655
|
"",
|
|
644
656
|
"default",
|
|
645
657
|
"stretch",
|
|
@@ -647,7 +659,7 @@ const G = [
|
|
|
647
659
|
"flex-end",
|
|
648
660
|
"center",
|
|
649
661
|
"baseline"
|
|
650
|
-
],
|
|
662
|
+
], J = [
|
|
651
663
|
"",
|
|
652
664
|
"default",
|
|
653
665
|
"flex-start",
|
|
@@ -656,10 +668,10 @@ const G = [
|
|
|
656
668
|
"space-between",
|
|
657
669
|
"space-around",
|
|
658
670
|
"space-evenly"
|
|
659
|
-
],
|
|
660
|
-
class
|
|
671
|
+
], K = ["", "default", "nowrap", "wrap", "wrap-reverse"], Q = ["", "visible", "hidden", "scroll", "auto"];
|
|
672
|
+
class k extends w {
|
|
661
673
|
constructor() {
|
|
662
|
-
super(
|
|
674
|
+
super(T), this.overflowXAttributeDelegate = new G(
|
|
663
675
|
this,
|
|
664
676
|
"overflow-x",
|
|
665
677
|
(t) => t,
|
|
@@ -706,14 +718,14 @@ class m extends $ {
|
|
|
706
718
|
"overflow-x--desktop"
|
|
707
719
|
];
|
|
708
720
|
}
|
|
709
|
-
attributeChangedCallback(t,
|
|
721
|
+
attributeChangedCallback(t, i, e) {
|
|
710
722
|
switch (t) {
|
|
711
723
|
case "gap":
|
|
712
724
|
case "gap--mobile":
|
|
713
725
|
case "gap--tablet":
|
|
714
726
|
case "gap--laptop":
|
|
715
727
|
case "gap--desktop":
|
|
716
|
-
this.updateFlexProperties(t,
|
|
728
|
+
this.updateFlexProperties(t, i, e, C);
|
|
717
729
|
break;
|
|
718
730
|
case "justify-content":
|
|
719
731
|
case "justify-content--mobile":
|
|
@@ -722,9 +734,9 @@ class m extends $ {
|
|
|
722
734
|
case "justify-content--desktop":
|
|
723
735
|
this.updateFlexProperties(
|
|
724
736
|
t,
|
|
725
|
-
|
|
737
|
+
i,
|
|
726
738
|
e,
|
|
727
|
-
|
|
739
|
+
J
|
|
728
740
|
);
|
|
729
741
|
break;
|
|
730
742
|
case "align-items":
|
|
@@ -732,63 +744,70 @@ class m extends $ {
|
|
|
732
744
|
case "align-items--tablet":
|
|
733
745
|
case "align-items--laptop":
|
|
734
746
|
case "align-items--desktop":
|
|
735
|
-
this.updateFlexProperties(t,
|
|
747
|
+
this.updateFlexProperties(t, i, e, Y);
|
|
736
748
|
break;
|
|
737
749
|
case "wrap":
|
|
738
750
|
case "wrap--mobile":
|
|
739
751
|
case "wrap--tablet":
|
|
740
752
|
case "wrap--laptop":
|
|
741
753
|
case "wrap--desktop":
|
|
742
|
-
this.updateFlexProperties(t,
|
|
754
|
+
this.updateFlexProperties(t, i, e, K);
|
|
743
755
|
break;
|
|
744
756
|
case "direction":
|
|
745
757
|
case "direction--mobile":
|
|
746
758
|
case "direction--tablet":
|
|
747
759
|
case "direction--laptop":
|
|
748
760
|
case "direction--desktop":
|
|
749
|
-
this.updateFlexProperties(t,
|
|
761
|
+
this.updateFlexProperties(t, i, e, W);
|
|
750
762
|
break;
|
|
751
763
|
case "overflow-x":
|
|
752
764
|
case "overflow-x--mobile":
|
|
753
765
|
case "overflow-x--tablet":
|
|
754
766
|
case "overflow-x--laptop":
|
|
755
767
|
case "overflow-x--desktop":
|
|
756
|
-
this.updateOverflowX(t,
|
|
768
|
+
this.updateOverflowX(t, i, e, Q);
|
|
757
769
|
break;
|
|
758
770
|
default:
|
|
759
|
-
super.attributeChangedCallback(t,
|
|
771
|
+
super.attributeChangedCallback(t, i, e);
|
|
760
772
|
break;
|
|
761
773
|
}
|
|
762
774
|
}
|
|
763
|
-
updateOverflowX(t,
|
|
764
|
-
if (!
|
|
765
|
-
|
|
775
|
+
updateOverflowX(t, i, e, o) {
|
|
776
|
+
if (!j(o, e)) {
|
|
777
|
+
s(
|
|
778
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
779
|
+
);
|
|
766
780
|
return;
|
|
767
781
|
}
|
|
768
782
|
this.overflowXAttributeDelegate.attributeChangedCallback(
|
|
769
783
|
t,
|
|
770
|
-
|
|
784
|
+
i,
|
|
771
785
|
e
|
|
772
786
|
);
|
|
773
787
|
}
|
|
774
|
-
updateFlexProperties(t,
|
|
775
|
-
this.checkName(o, e) ||
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
788
|
+
updateFlexProperties(t, i, e, o) {
|
|
789
|
+
this.checkName(o, e) || s(
|
|
790
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
791
|
+
);
|
|
792
|
+
const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, c = [];
|
|
793
|
+
if (!r)
|
|
794
|
+
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((p) => {
|
|
795
|
+
this.updateStyle(a, p, i, o), this.updateStyle(a, p, e, o);
|
|
780
796
|
});
|
|
781
797
|
else {
|
|
782
|
-
const
|
|
783
|
-
this.updateStyle(a,
|
|
798
|
+
const p = t.split("--")[1];
|
|
799
|
+
this.updateStyle(a, p, i, o), this.updateStyle(a, p, e, o);
|
|
784
800
|
}
|
|
785
801
|
}
|
|
786
|
-
updateStyle(t,
|
|
787
|
-
e && (t === "gap" && o && o.includes(e) ? this.$el.style.setProperty(
|
|
788
|
-
`--flex-${t}--${
|
|
789
|
-
`var(--px-spacing-${e}-${
|
|
790
|
-
)
|
|
791
|
-
`--
|
|
802
|
+
updateStyle(t, i, e, o) {
|
|
803
|
+
e && (t === "gap" && o && o.includes(e) ? (this.$el.style.setProperty(
|
|
804
|
+
`--flex-${t}--${i}-value`,
|
|
805
|
+
`var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
|
|
806
|
+
), this.style.setProperty(
|
|
807
|
+
`--host-gap--${i}`,
|
|
808
|
+
`var(--px-spacing-${e}-${i === "laptop" ? "desktop" : i})`
|
|
809
|
+
)) : this.$el.style.setProperty(
|
|
810
|
+
`--flex-${t}--${i}-value`,
|
|
792
811
|
e
|
|
793
812
|
));
|
|
794
813
|
}
|
|
@@ -976,8 +995,8 @@ class m extends $ {
|
|
|
976
995
|
return this.shadowRoot.querySelector(".flex-container");
|
|
977
996
|
}
|
|
978
997
|
}
|
|
979
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
980
|
-
class
|
|
998
|
+
customElements.get("px-stack") || customElements.define("px-stack", k);
|
|
999
|
+
class U extends k {
|
|
981
1000
|
constructor() {
|
|
982
1001
|
super();
|
|
983
1002
|
}
|
|
@@ -985,8 +1004,8 @@ class Z extends m {
|
|
|
985
1004
|
super.connectedCallback(), this.direction = "column", this.directionMobile = "column", this.directionTablet = "column", this.directionLaptop = "column", this.directionDesktop = "column";
|
|
986
1005
|
}
|
|
987
1006
|
}
|
|
988
|
-
customElements.get("px-vstack") || customElements.define("px-vstack",
|
|
989
|
-
class
|
|
1007
|
+
customElements.get("px-vstack") || customElements.define("px-vstack", U);
|
|
1008
|
+
class V extends k {
|
|
990
1009
|
constructor() {
|
|
991
1010
|
super();
|
|
992
1011
|
}
|
|
@@ -994,21 +1013,21 @@ class W extends m {
|
|
|
994
1013
|
super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
|
|
995
1014
|
}
|
|
996
1015
|
}
|
|
997
|
-
customElements.get("px-hstack") || customElements.define("px-hstack",
|
|
998
|
-
class
|
|
1016
|
+
customElements.get("px-hstack") || customElements.define("px-hstack", V);
|
|
1017
|
+
class tt extends HTMLElement {
|
|
999
1018
|
constructor() {
|
|
1000
1019
|
super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
|
|
1001
1020
|
}
|
|
1002
1021
|
static get observedAttributes() {
|
|
1003
|
-
return ["grow"];
|
|
1022
|
+
return ["grow", "nogap"];
|
|
1004
1023
|
}
|
|
1005
|
-
attributeChangedCallback(t,
|
|
1024
|
+
attributeChangedCallback(t, i, e) {
|
|
1006
1025
|
t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
|
|
1007
1026
|
}
|
|
1008
1027
|
connectedCallback() {
|
|
1009
|
-
this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.resizeObserver = new ResizeObserver(() => {
|
|
1028
|
+
this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
|
|
1010
1029
|
this.handleSizeChange();
|
|
1011
|
-
}), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck();
|
|
1030
|
+
}), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
|
|
1012
1031
|
}
|
|
1013
1032
|
disconnectedCallback() {
|
|
1014
1033
|
var t;
|
|
@@ -1029,19 +1048,25 @@ class Y extends HTMLElement {
|
|
|
1029
1048
|
this.isConnected && (this.style.display = "", this.style.flexGrow = this.growValue, this.handleSizeChange());
|
|
1030
1049
|
}
|
|
1031
1050
|
handleSizeChange() {
|
|
1032
|
-
const t = this.getBoundingClientRect(),
|
|
1033
|
-
this.isZeroSized !==
|
|
1051
|
+
const t = this.getBoundingClientRect(), i = t.width === 0 && !this.isVertical || t.height === 0 && this.isVertical;
|
|
1052
|
+
this.isZeroSized !== i && (this.isZeroSized = i, this.updateParticipation());
|
|
1034
1053
|
}
|
|
1035
1054
|
updateParticipation() {
|
|
1036
1055
|
this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
|
|
1037
1056
|
}
|
|
1057
|
+
get nogap() {
|
|
1058
|
+
return this.hasAttribute("nogap");
|
|
1059
|
+
}
|
|
1060
|
+
set nogap(t) {
|
|
1061
|
+
t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
|
|
1062
|
+
}
|
|
1038
1063
|
}
|
|
1039
|
-
customElements.get("px-spacer") || customElements.define("px-spacer",
|
|
1040
|
-
const
|
|
1041
|
-
|
|
1042
|
-
class
|
|
1064
|
+
customElements.get("px-spacer") || customElements.define("px-spacer", tt);
|
|
1065
|
+
const et = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", I = new CSSStyleSheet();
|
|
1066
|
+
I.replaceSync(et);
|
|
1067
|
+
class it extends w {
|
|
1043
1068
|
constructor() {
|
|
1044
|
-
super(
|
|
1069
|
+
super(I), this.template = (t) => `
|
|
1045
1070
|
<px-container border-radius="none" padding="none">
|
|
1046
1071
|
<px-vstack>
|
|
1047
1072
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1206,8 +1231,8 @@ class K extends $ {
|
|
|
1206
1231
|
connectedCallback() {
|
|
1207
1232
|
this.handlePaddingVerticalChange(this.paddingVertical), this.handlePaddingHorizontalChange(this.paddingHorizontal);
|
|
1208
1233
|
}
|
|
1209
|
-
attributeChangedCallback(t,
|
|
1210
|
-
if (
|
|
1234
|
+
attributeChangedCallback(t, i, e) {
|
|
1235
|
+
if (i !== e)
|
|
1211
1236
|
switch (t) {
|
|
1212
1237
|
case "background-image":
|
|
1213
1238
|
this.$imageContainer.setAttribute("background-image", e);
|
|
@@ -1218,7 +1243,7 @@ class K extends $ {
|
|
|
1218
1243
|
case "background-color":
|
|
1219
1244
|
this.$bodyContainer.setAttribute(
|
|
1220
1245
|
"background-color",
|
|
1221
|
-
|
|
1246
|
+
u.indexOf(e) > 0 ? e : "none"
|
|
1222
1247
|
);
|
|
1223
1248
|
break;
|
|
1224
1249
|
case "padding-vertical":
|
|
@@ -1228,7 +1253,7 @@ class K extends $ {
|
|
|
1228
1253
|
this.handlePaddingHorizontalChange(e);
|
|
1229
1254
|
break;
|
|
1230
1255
|
default:
|
|
1231
|
-
super.attributeChangedCallback(t,
|
|
1256
|
+
super.attributeChangedCallback(t, i, e);
|
|
1232
1257
|
}
|
|
1233
1258
|
}
|
|
1234
1259
|
handlePaddingVerticalChange(t) {
|
|
@@ -1238,14 +1263,14 @@ class K extends $ {
|
|
|
1238
1263
|
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
1264
|
}
|
|
1240
1265
|
}
|
|
1241
|
-
customElements.get("px-page") === void 0 && customElements.define("px-page",
|
|
1242
|
-
const
|
|
1243
|
-
|
|
1244
|
-
class
|
|
1266
|
+
customElements.get("px-page") === void 0 && customElements.define("px-page", it);
|
|
1267
|
+
const M = new CSSStyleSheet();
|
|
1268
|
+
M.replaceSync(F);
|
|
1269
|
+
class ot extends HTMLElement {
|
|
1245
1270
|
constructor() {
|
|
1246
1271
|
super(), this.template = () => `
|
|
1247
|
-
<px-container border-radius="none" padding-inline="none"
|
|
1248
|
-
<div class="content-wrapper
|
|
1272
|
+
<px-container border-radius="none" padding-inline="none">
|
|
1273
|
+
<div class="content-wrapper">
|
|
1249
1274
|
<px-vstack gap="heading-to-content">
|
|
1250
1275
|
<slot name="heading"></slot>
|
|
1251
1276
|
<px-vstack gap="none">
|
|
@@ -1257,9 +1282,10 @@ class Q extends HTMLElement {
|
|
|
1257
1282
|
<div class="content-wrapper">
|
|
1258
1283
|
<slot name="overlap"></slot>
|
|
1259
1284
|
</div>
|
|
1260
|
-
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [
|
|
1285
|
+
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [M];
|
|
1261
1286
|
}
|
|
1262
1287
|
connectedCallback() {
|
|
1288
|
+
this.$container.setAttribute("background-color", this.backgroundColor), this.$slotOverlap && this.shadowRoot.firstElementChild.querySelector(".content-wrapper").classList.add("overlapped");
|
|
1263
1289
|
const t = this.querySelector('[slot="heading"]');
|
|
1264
1290
|
!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");
|
|
1265
1291
|
}
|
|
@@ -1295,11 +1321,11 @@ class Q extends HTMLElement {
|
|
|
1295
1321
|
get $container() {
|
|
1296
1322
|
return this.shadowRoot.querySelector("px-container");
|
|
1297
1323
|
}
|
|
1298
|
-
attributeChangedCallback(t,
|
|
1299
|
-
if (
|
|
1324
|
+
attributeChangedCallback(t, i, e) {
|
|
1325
|
+
if (i !== e)
|
|
1300
1326
|
switch (t) {
|
|
1301
1327
|
case "background-color":
|
|
1302
|
-
this.$container.backgroundColor =
|
|
1328
|
+
this.$container.backgroundColor = u.indexOf(e) > 0 ? e : "none";
|
|
1303
1329
|
break;
|
|
1304
1330
|
case "background-gradient":
|
|
1305
1331
|
this.$container.gradient = this.gradient;
|
|
@@ -1529,12 +1555,326 @@ class Q extends HTMLElement {
|
|
|
1529
1555
|
this.setAttribute("border-side--laptop", t);
|
|
1530
1556
|
}
|
|
1531
1557
|
}
|
|
1532
|
-
customElements.get("px-section") || customElements.define("px-section",
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1535
|
-
const
|
|
1558
|
+
customElements.get("px-section") || customElements.define("px-section", ot);
|
|
1559
|
+
const rt = ":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();
|
|
1560
|
+
B.replaceSync(rt);
|
|
1561
|
+
const at = [
|
|
1562
|
+
"1",
|
|
1563
|
+
"2",
|
|
1564
|
+
"3",
|
|
1565
|
+
"4",
|
|
1566
|
+
"5",
|
|
1567
|
+
"6",
|
|
1568
|
+
"7",
|
|
1569
|
+
"8",
|
|
1570
|
+
"9",
|
|
1571
|
+
"10",
|
|
1572
|
+
"11",
|
|
1573
|
+
"12"
|
|
1574
|
+
], st = [
|
|
1575
|
+
"",
|
|
1576
|
+
"start",
|
|
1577
|
+
"end",
|
|
1578
|
+
"center",
|
|
1579
|
+
"space-between",
|
|
1580
|
+
"space-around",
|
|
1581
|
+
"space-evenly",
|
|
1582
|
+
"stretch"
|
|
1583
|
+
], nt = ["", "start", "end", "center", "stretch"], dt = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .grid`, lt = "px-spacing", bt = d(
|
|
1584
|
+
"gap",
|
|
1585
|
+
dt,
|
|
1586
|
+
C,
|
|
1587
|
+
lt,
|
|
1588
|
+
"--grid-gap"
|
|
1589
|
+
), y = class y extends S {
|
|
1590
|
+
constructor() {
|
|
1591
|
+
super(B, bt), this.template = () => `<div class="grid">
|
|
1592
|
+
<slot></slot>
|
|
1593
|
+
</div>`, this.shadowRoot.innerHTML = this.template();
|
|
1594
|
+
}
|
|
1595
|
+
static get observedAttributes() {
|
|
1596
|
+
return [
|
|
1597
|
+
...super.observedAttributes,
|
|
1598
|
+
"grid-cols",
|
|
1599
|
+
"grid-cols--mobile",
|
|
1600
|
+
"grid-cols--tablet",
|
|
1601
|
+
"grid-cols--laptop",
|
|
1602
|
+
"justify-content",
|
|
1603
|
+
"justify-items",
|
|
1604
|
+
"align-content",
|
|
1605
|
+
"align-items",
|
|
1606
|
+
"justify-content--mobile",
|
|
1607
|
+
"justify-items--mobile",
|
|
1608
|
+
"align-content--mobile",
|
|
1609
|
+
"align-items--mobile",
|
|
1610
|
+
"justify-content--tablet",
|
|
1611
|
+
"justify-items--tablet",
|
|
1612
|
+
"align-content--tablet",
|
|
1613
|
+
"align-items--tablet",
|
|
1614
|
+
"justify-content--laptop",
|
|
1615
|
+
"justify-items--laptop",
|
|
1616
|
+
"align-content--laptop",
|
|
1617
|
+
"align-items--laptop",
|
|
1618
|
+
"justify-content--desktop",
|
|
1619
|
+
"justify-items--desktop",
|
|
1620
|
+
"align-content--desktop",
|
|
1621
|
+
"align-items--desktop"
|
|
1622
|
+
];
|
|
1623
|
+
}
|
|
1624
|
+
connectedCallback() {
|
|
1625
|
+
this.gap || (this.gap = "default"), this.alignItems || (this.alignItems = "stretch");
|
|
1626
|
+
}
|
|
1627
|
+
attributeChangedCallback(t, i, e) {
|
|
1628
|
+
if (i !== e)
|
|
1629
|
+
switch (t) {
|
|
1630
|
+
case "grid-cols":
|
|
1631
|
+
case "grid-cols--mobile":
|
|
1632
|
+
case "grid-cols--tablet":
|
|
1633
|
+
case "grid-cols--laptop":
|
|
1634
|
+
this.updateAttribute(t, i, e, at);
|
|
1635
|
+
break;
|
|
1636
|
+
case "justify-content":
|
|
1637
|
+
case "align-content":
|
|
1638
|
+
case "justify-content--mobile":
|
|
1639
|
+
case "align-content--mobile":
|
|
1640
|
+
case "justify-content--tablet":
|
|
1641
|
+
case "align-content--tablet":
|
|
1642
|
+
case "justify-content--laptop":
|
|
1643
|
+
case "align-content--laptop":
|
|
1644
|
+
case "justify-content--desktop":
|
|
1645
|
+
case "align-content--desktop":
|
|
1646
|
+
this.updateAttribute(
|
|
1647
|
+
t,
|
|
1648
|
+
i,
|
|
1649
|
+
e,
|
|
1650
|
+
st
|
|
1651
|
+
);
|
|
1652
|
+
break;
|
|
1653
|
+
case "justify-items":
|
|
1654
|
+
case "align-items":
|
|
1655
|
+
case "justify-items--mobile":
|
|
1656
|
+
case "align-items--mobile":
|
|
1657
|
+
case "justify-items--tablet":
|
|
1658
|
+
case "align-items--tablet":
|
|
1659
|
+
case "justify-items--laptop":
|
|
1660
|
+
case "align-items--laptop":
|
|
1661
|
+
case "justify-items--desktop":
|
|
1662
|
+
case "align-items--desktop":
|
|
1663
|
+
this.updateAttribute(
|
|
1664
|
+
t,
|
|
1665
|
+
i,
|
|
1666
|
+
e,
|
|
1667
|
+
nt
|
|
1668
|
+
);
|
|
1669
|
+
break;
|
|
1670
|
+
default:
|
|
1671
|
+
super.attributeChangedCallback(t, i, e);
|
|
1672
|
+
break;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
updateGap(t, i, e) {
|
|
1676
|
+
if (!this.checkName(e, i)) {
|
|
1677
|
+
s(
|
|
1678
|
+
`${i} is not an allowed gap value for ${this.tagName.toLowerCase()}`
|
|
1679
|
+
);
|
|
1680
|
+
return;
|
|
1681
|
+
}
|
|
1682
|
+
const o = (r) => {
|
|
1683
|
+
r !== null && r !== "" && r !== "default" && (this.$el.style.setProperty(
|
|
1684
|
+
"--grid-gap--mobile",
|
|
1685
|
+
`var(--px-spacing-${r}-mobile)`
|
|
1686
|
+
), this.$el.style.setProperty(
|
|
1687
|
+
"--grid-gap--tablet",
|
|
1688
|
+
`var(--px-spacing-${r}-tablet)`
|
|
1689
|
+
), this.$el.style.setProperty(
|
|
1690
|
+
"--grid-gap--laptop",
|
|
1691
|
+
`var(--px-spacing-${r}-laptop)`
|
|
1692
|
+
));
|
|
1693
|
+
};
|
|
1694
|
+
o(t), o(i);
|
|
1695
|
+
}
|
|
1696
|
+
updateAttribute(t, i, e, o) {
|
|
1697
|
+
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(
|
|
1698
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1699
|
+
);
|
|
1700
|
+
}
|
|
1701
|
+
get gap() {
|
|
1702
|
+
return this.getAttribute("gap");
|
|
1703
|
+
}
|
|
1704
|
+
set gap(t) {
|
|
1705
|
+
this.setAttribute("gap", t);
|
|
1706
|
+
}
|
|
1707
|
+
get gapMobile() {
|
|
1708
|
+
return this.getAttribute("gap--mobile");
|
|
1709
|
+
}
|
|
1710
|
+
set gapMobile(t) {
|
|
1711
|
+
this.setAttribute("gap--mobile", t);
|
|
1712
|
+
}
|
|
1713
|
+
get gapTablet() {
|
|
1714
|
+
return this.getAttribute("gap--tablet");
|
|
1715
|
+
}
|
|
1716
|
+
set gapTablet(t) {
|
|
1717
|
+
this.setAttribute("gap--tablet", t);
|
|
1718
|
+
}
|
|
1719
|
+
get gapLaptop() {
|
|
1720
|
+
return this.getAttribute("gap--laptop");
|
|
1721
|
+
}
|
|
1722
|
+
set gapLaptop(t) {
|
|
1723
|
+
this.setAttribute("gap--laptop", t);
|
|
1724
|
+
}
|
|
1725
|
+
get gridCols() {
|
|
1726
|
+
return this.getAttribute("grid-cols");
|
|
1727
|
+
}
|
|
1728
|
+
set gridCols(t) {
|
|
1729
|
+
this.setAttribute("grid-cols", t);
|
|
1730
|
+
}
|
|
1731
|
+
get gridColsMobile() {
|
|
1732
|
+
return this.getAttribute("grid-cols--mobile");
|
|
1733
|
+
}
|
|
1734
|
+
set gridColsMobile(t) {
|
|
1735
|
+
this.setAttribute("grid-cols--mobile", t);
|
|
1736
|
+
}
|
|
1737
|
+
get gridColsTablet() {
|
|
1738
|
+
return this.getAttribute("grid-cols--tablet");
|
|
1739
|
+
}
|
|
1740
|
+
set gridColsTablet(t) {
|
|
1741
|
+
this.setAttribute("grid-cols--tablet", t);
|
|
1742
|
+
}
|
|
1743
|
+
get gridColsLaptop() {
|
|
1744
|
+
return this.getAttribute("grid-cols--laptop");
|
|
1745
|
+
}
|
|
1746
|
+
set gridColsLaptop(t) {
|
|
1747
|
+
this.setAttribute("grid-cols--laptop", t);
|
|
1748
|
+
}
|
|
1749
|
+
get justifyContent() {
|
|
1750
|
+
return this.getAttribute("justify-content");
|
|
1751
|
+
}
|
|
1752
|
+
set justifyContent(t) {
|
|
1753
|
+
this.setAttribute("justify-content", t);
|
|
1754
|
+
}
|
|
1755
|
+
get justifyItems() {
|
|
1756
|
+
return this.getAttribute("justify-items");
|
|
1757
|
+
}
|
|
1758
|
+
set justifyItems(t) {
|
|
1759
|
+
this.setAttribute("justify-items", t);
|
|
1760
|
+
}
|
|
1761
|
+
get alignContent() {
|
|
1762
|
+
return this.getAttribute("align-content");
|
|
1763
|
+
}
|
|
1764
|
+
set alignContent(t) {
|
|
1765
|
+
this.setAttribute("align-content", t);
|
|
1766
|
+
}
|
|
1767
|
+
get alignItems() {
|
|
1768
|
+
return this.getAttribute("align-items");
|
|
1769
|
+
}
|
|
1770
|
+
set alignItems(t) {
|
|
1771
|
+
this.setAttribute("align-items", t);
|
|
1772
|
+
}
|
|
1773
|
+
get justifyContentMobile() {
|
|
1774
|
+
return this.getAttribute("justify-content--mobile");
|
|
1775
|
+
}
|
|
1776
|
+
set justifyContentMobile(t) {
|
|
1777
|
+
this.setAttribute("justify-content--mobile", t);
|
|
1778
|
+
}
|
|
1779
|
+
get justifyItemsMobile() {
|
|
1780
|
+
return this.getAttribute("justify-items--mobile");
|
|
1781
|
+
}
|
|
1782
|
+
set justifyItemsMobile(t) {
|
|
1783
|
+
this.setAttribute("justify-items--mobile", t);
|
|
1784
|
+
}
|
|
1785
|
+
get alignContentMobile() {
|
|
1786
|
+
return this.getAttribute("align-content--mobile");
|
|
1787
|
+
}
|
|
1788
|
+
set alignContentMobile(t) {
|
|
1789
|
+
this.setAttribute("align-content--mobile", t);
|
|
1790
|
+
}
|
|
1791
|
+
get alignItemsMobile() {
|
|
1792
|
+
return this.getAttribute("align-items--mobile");
|
|
1793
|
+
}
|
|
1794
|
+
set alignItemsMobile(t) {
|
|
1795
|
+
this.setAttribute("align-items--mobile", t);
|
|
1796
|
+
}
|
|
1797
|
+
get justifyContentTablet() {
|
|
1798
|
+
return this.getAttribute("justify-content--tablet");
|
|
1799
|
+
}
|
|
1800
|
+
set justifyContentTablet(t) {
|
|
1801
|
+
this.setAttribute("justify-content--tablet", t);
|
|
1802
|
+
}
|
|
1803
|
+
get justifyItemsTablet() {
|
|
1804
|
+
return this.getAttribute("justify-items--tablet");
|
|
1805
|
+
}
|
|
1806
|
+
set justifyItemsTablet(t) {
|
|
1807
|
+
this.setAttribute("justify-items--tablet", t);
|
|
1808
|
+
}
|
|
1809
|
+
get alignContentTablet() {
|
|
1810
|
+
return this.getAttribute("align-content--tablet");
|
|
1811
|
+
}
|
|
1812
|
+
set alignContentTablet(t) {
|
|
1813
|
+
this.setAttribute("align-content--tablet", t);
|
|
1814
|
+
}
|
|
1815
|
+
get alignItemsTablet() {
|
|
1816
|
+
return this.getAttribute("align-items--tablet");
|
|
1817
|
+
}
|
|
1818
|
+
set alignItemsTablet(t) {
|
|
1819
|
+
this.setAttribute("align-items--tablet", t);
|
|
1820
|
+
}
|
|
1821
|
+
get justifyContentLaptop() {
|
|
1822
|
+
return this.getAttribute("justify-content--laptop");
|
|
1823
|
+
}
|
|
1824
|
+
set justifyContentLaptop(t) {
|
|
1825
|
+
this.setAttribute("justify-content--laptop", t);
|
|
1826
|
+
}
|
|
1827
|
+
get justifyItemsLaptop() {
|
|
1828
|
+
return this.getAttribute("justify-items--laptop");
|
|
1829
|
+
}
|
|
1830
|
+
set justifyItemsLaptop(t) {
|
|
1831
|
+
this.setAttribute("justify-items--laptop", t);
|
|
1832
|
+
}
|
|
1833
|
+
get alignContentLaptop() {
|
|
1834
|
+
return this.getAttribute("align-content--laptop");
|
|
1835
|
+
}
|
|
1836
|
+
set alignContentLaptop(t) {
|
|
1837
|
+
this.setAttribute("align-content--laptop", t);
|
|
1838
|
+
}
|
|
1839
|
+
get alignItemsLaptop() {
|
|
1840
|
+
return this.getAttribute("align-items--laptop");
|
|
1841
|
+
}
|
|
1842
|
+
set alignItemsLaptop(t) {
|
|
1843
|
+
this.setAttribute("align-items--laptop", t);
|
|
1844
|
+
}
|
|
1845
|
+
get justifyContentDesktop() {
|
|
1846
|
+
return this.getAttribute("justify-content--desktop");
|
|
1847
|
+
}
|
|
1848
|
+
set justifyContentDesktop(t) {
|
|
1849
|
+
this.setAttribute("justify-content--desktop", t);
|
|
1850
|
+
}
|
|
1851
|
+
get justifyItemsDesktop() {
|
|
1852
|
+
return this.getAttribute("justify-items--desktop");
|
|
1853
|
+
}
|
|
1854
|
+
set justifyItemsDesktop(t) {
|
|
1855
|
+
this.setAttribute("justify-items--desktop", t);
|
|
1856
|
+
}
|
|
1857
|
+
get alignContentDesktop() {
|
|
1858
|
+
return this.getAttribute("align-content--desktop");
|
|
1859
|
+
}
|
|
1860
|
+
set alignContentDesktop(t) {
|
|
1861
|
+
this.setAttribute("align-content--desktop", t);
|
|
1862
|
+
}
|
|
1863
|
+
get alignItemsDesktop() {
|
|
1864
|
+
return this.getAttribute("align-items--desktop");
|
|
1865
|
+
}
|
|
1866
|
+
set alignItemsDesktop(t) {
|
|
1867
|
+
this.setAttribute("align-items--desktop", t);
|
|
1868
|
+
}
|
|
1869
|
+
};
|
|
1870
|
+
y.nativeName = "div";
|
|
1871
|
+
let m = y;
|
|
1872
|
+
customElements.get("px-grid") || customElements.define("px-grid", m);
|
|
1873
|
+
const z = new CSSStyleSheet();
|
|
1874
|
+
z.replaceSync(X);
|
|
1875
|
+
const x = class x extends S {
|
|
1536
1876
|
constructor() {
|
|
1537
|
-
super(
|
|
1877
|
+
super(z), this.template = () => `<div class="content-header">
|
|
1538
1878
|
<div class="contrast-helper"></div>
|
|
1539
1879
|
<px-section padding-block="l">
|
|
1540
1880
|
<px-grid gap="none">
|
|
@@ -1544,14 +1884,9 @@ const f = class f extends v {
|
|
|
1544
1884
|
<px-h1 variant="title-3xl"><slot></slot></px-h1>
|
|
1545
1885
|
<slot name="subtitle"></slot>
|
|
1546
1886
|
</px-vstack>
|
|
1547
|
-
${this.$patchDescriptionSlot ? `<px-stack gap="s" direction="row" direction--mobile="column">
|
|
1548
|
-
<slot name="patch" shrink></slot>
|
|
1549
|
-
<slot name="patch-description"></slot>
|
|
1550
|
-
</px-stack>` : ""}
|
|
1551
1887
|
</div>
|
|
1552
1888
|
</px-container>
|
|
1553
1889
|
</px-grid>
|
|
1554
|
-
${this.$overlapSlot ? '<slot name="overlap" slot="overlap"></slot>' : ""}
|
|
1555
1890
|
</px-section>
|
|
1556
1891
|
</div>`, this.shadowRoot.innerHTML = this.template();
|
|
1557
1892
|
}
|
|
@@ -1576,17 +1911,27 @@ const f = class f extends v {
|
|
|
1576
1911
|
];
|
|
1577
1912
|
}
|
|
1578
1913
|
connectedCallback() {
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1914
|
+
this.$patchDescriptionSlot && this.shadowRoot.querySelector(
|
|
1915
|
+
".content-header-content"
|
|
1916
|
+
).insertAdjacentHTML(
|
|
1917
|
+
"beforeend",
|
|
1918
|
+
`<px-stack gap="s" direction="row" direction--mobile="column">
|
|
1919
|
+
<slot name="patch" shrink></slot>
|
|
1920
|
+
<slot name="patch-description"></slot>
|
|
1921
|
+
</px-stack>`
|
|
1922
|
+
), this.$overlapSlot && this.shadowRoot.querySelector("px-section").insertAdjacentHTML(
|
|
1923
|
+
"beforeend",
|
|
1924
|
+
'<slot name="overlap" slot="overlap"></slot>'
|
|
1925
|
+
), 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();
|
|
1926
|
+
}
|
|
1927
|
+
attributeChangedCallback(t, i, e) {
|
|
1928
|
+
if (i !== e)
|
|
1584
1929
|
switch (t) {
|
|
1585
1930
|
case "background-color":
|
|
1586
|
-
this.$section.backgroundColor =
|
|
1931
|
+
this.$section.backgroundColor = u.indexOf(e) > 0 ? e : "none";
|
|
1587
1932
|
break;
|
|
1588
1933
|
case "background-gradient":
|
|
1589
|
-
this.$section.gradient =
|
|
1934
|
+
this.$section.gradient = $.indexOf(e) > 0 ? e : "none";
|
|
1590
1935
|
break;
|
|
1591
1936
|
case "background-image":
|
|
1592
1937
|
this.$section.backgroundImage = e;
|
|
@@ -1601,7 +1946,7 @@ const f = class f extends v {
|
|
|
1601
1946
|
this.$section.backgroundImageLaptop = e;
|
|
1602
1947
|
break;
|
|
1603
1948
|
case "background-size":
|
|
1604
|
-
this.$section.backgroundSize =
|
|
1949
|
+
this.$section.backgroundSize = A.indexOf(e) > 0 ? e : "";
|
|
1605
1950
|
break;
|
|
1606
1951
|
case "background-position":
|
|
1607
1952
|
this.$section.backgroundPosition = e;
|
|
@@ -1610,7 +1955,7 @@ const f = class f extends v {
|
|
|
1610
1955
|
case "has-gridding--mobile":
|
|
1611
1956
|
case "has-gridding--tablet":
|
|
1612
1957
|
case "has-gridding--laptop":
|
|
1613
|
-
this.createGridding();
|
|
1958
|
+
this.createGridding(e);
|
|
1614
1959
|
break;
|
|
1615
1960
|
case "inverted":
|
|
1616
1961
|
for (let o = 0; o < this.$children.length; o++)
|
|
@@ -1618,33 +1963,35 @@ const f = class f extends v {
|
|
|
1618
1963
|
this.$h1.toggleAttribute("inverted", e !== null), this.$el.toggleAttribute("inverted", e !== null);
|
|
1619
1964
|
break;
|
|
1620
1965
|
default:
|
|
1621
|
-
super.attributeChangedCallback(t,
|
|
1966
|
+
super.attributeChangedCallback(t, i, e);
|
|
1622
1967
|
break;
|
|
1623
1968
|
}
|
|
1624
1969
|
}
|
|
1625
|
-
createGridding() {
|
|
1626
|
-
const
|
|
1627
|
-
{ prop: "hasGridding",
|
|
1970
|
+
createGridding(t) {
|
|
1971
|
+
const i = [
|
|
1972
|
+
{ prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
|
|
1628
1973
|
{
|
|
1629
1974
|
prop: "hasGriddingMobile",
|
|
1630
|
-
|
|
1975
|
+
gridAttr: "grid-cols--mobile",
|
|
1631
1976
|
attr: "col-span--mobile"
|
|
1632
1977
|
},
|
|
1633
1978
|
{
|
|
1634
1979
|
prop: "hasGriddingTablet",
|
|
1635
|
-
|
|
1980
|
+
gridAttr: "grid-cols--tablet",
|
|
1636
1981
|
attr: "col-span--tablet"
|
|
1637
1982
|
},
|
|
1638
1983
|
{
|
|
1639
1984
|
prop: "hasGriddingLaptop",
|
|
1640
|
-
|
|
1985
|
+
gridAttr: "grid-cols--laptop",
|
|
1641
1986
|
attr: "col-span--laptop"
|
|
1642
1987
|
}
|
|
1643
|
-
],
|
|
1988
|
+
], e = this.shadowRoot.querySelector(
|
|
1644
1989
|
"px-grid > px-container"
|
|
1645
1990
|
);
|
|
1646
|
-
t.forEach(({ prop:
|
|
1647
|
-
this[
|
|
1991
|
+
t !== null ? i.forEach(({ prop: o, gridAttr: r, attr: a }) => {
|
|
1992
|
+
this[o] && (this.$grid.setAttribute(r, "3"), e == null || e.setAttribute(a, "2"));
|
|
1993
|
+
}) : i.forEach(({ gridAttr: o, attr: r }) => {
|
|
1994
|
+
this.$grid.setAttribute(o, "1"), e == null || e.setAttribute(r, "1");
|
|
1648
1995
|
});
|
|
1649
1996
|
}
|
|
1650
1997
|
get $grid() {
|
|
@@ -1765,9 +2112,9 @@ const f = class f extends v {
|
|
|
1765
2112
|
t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
|
|
1766
2113
|
}
|
|
1767
2114
|
};
|
|
1768
|
-
|
|
1769
|
-
let
|
|
1770
|
-
customElements.get("px-content-header") || customElements.define("px-content-header",
|
|
2115
|
+
x.nativeName = "div";
|
|
2116
|
+
let f = x;
|
|
2117
|
+
customElements.get("px-content-header") || customElements.define("px-content-header", f);
|
|
1771
2118
|
export {
|
|
1772
|
-
|
|
2119
|
+
f as ContentHeader
|
|
1773
2120
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-content-header",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.40",
|
|
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
|
|
16
|
+
"wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|