@proximus/lavender-content-header 1.4.6-beta.2 → 1.4.6
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/index.es.js +86 -155
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,87 +1,66 @@
|
|
|
1
|
-
import { cssTokenBreakpoints as d, paddingValues as
|
|
1
|
+
import { cssTokenBreakpoints as d, paddingValues as l, VerticallyExtendedElement as R, boxShadowValues as P, backgroundSizeValues as $, noBorderRadiusValues as D, borderRadiusValues as E, borderSideValues as H, borderValues as O, gradientValues as j, log as n, backgroundColorValues as u, borderColorValues as q, checkName as h, WithExtraAttributes as C, AttributeBreakpointHandlerDelegate as G, gapValues as w, PxElement as S } from "@proximus/lavender-common";
|
|
2
2
|
import "@proximus/lavender-heading";
|
|
3
|
-
const q = ":host{--min-height--mobile: 15.625em;--min-height--tablet: 17.5em;--min-height--laptop: 17.5em;--min-height--desktop: 17.5em}:host,:host>*{display:block;box-sizing:border-box}.content-header{position:relative;z-index:0}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2))}.content-header-content{display:flex;flex-direction:column;gap:var(--px-spacing-l-mobile);z-index:2;position:relative;box-sizing:border-box}.contrast-helper{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;display:none}[contrast-helper-gradient] .contrast-helper{display:block;background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%)}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{display:block;background-color:#ffffffb3}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media only screen and (min-width: 48em){.content-header-content{gap:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media only screen and (min-width: 64.0625em){.content-header-content{gap:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}", X = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', F = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{display:grid;grid-template-rows:subgrid;grid-row:span var(--subgrid-rows)}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}}@media only screen and (min-width: 1025px) and (max-width: 1440px){: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)}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (min-width: 1441px){: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)}}', L = new CSSStyleSheet();
|
|
4
|
-
L.replaceSync(
|
|
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)}}', N = ':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)}@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)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}', L = new CSSStyleSheet();
|
|
4
|
+
L.replaceSync(N);
|
|
5
5
|
const _ = [
|
|
6
6
|
"has-patch",
|
|
7
7
|
"neighbor-has-patch",
|
|
8
8
|
"has-ribbon",
|
|
9
9
|
"neighbor-has-ribbon"
|
|
10
|
-
],
|
|
11
|
-
"1",
|
|
12
|
-
"2",
|
|
13
|
-
"3",
|
|
14
|
-
"4",
|
|
15
|
-
"5",
|
|
16
|
-
"6",
|
|
17
|
-
"7",
|
|
18
|
-
"8",
|
|
19
|
-
"9",
|
|
20
|
-
"10",
|
|
21
|
-
"11",
|
|
22
|
-
"12"
|
|
23
|
-
], l = (n, t, i) => `:host([${n}${i ? `--${i}` : ""}='${t}']) .container`, b = "px-padding", Z = [
|
|
10
|
+
], c = (s, t, i) => `:host([${s}${i ? `--${i}` : ""}='${t}']) .container`, g = "px-padding", Z = [
|
|
24
11
|
d(
|
|
25
12
|
"padding",
|
|
13
|
+
c,
|
|
26
14
|
l,
|
|
27
15
|
g,
|
|
28
|
-
b,
|
|
29
16
|
"--container-padding"
|
|
30
17
|
),
|
|
31
18
|
d(
|
|
32
19
|
"padding-inline",
|
|
20
|
+
c,
|
|
33
21
|
l,
|
|
34
|
-
g
|
|
35
|
-
b
|
|
22
|
+
g
|
|
36
23
|
),
|
|
37
24
|
d(
|
|
38
25
|
"padding-block",
|
|
26
|
+
c,
|
|
39
27
|
l,
|
|
40
|
-
g
|
|
41
|
-
b
|
|
28
|
+
g
|
|
42
29
|
),
|
|
43
30
|
d(
|
|
44
31
|
"padding-top",
|
|
32
|
+
c,
|
|
45
33
|
l,
|
|
46
|
-
g
|
|
47
|
-
b
|
|
34
|
+
g
|
|
48
35
|
),
|
|
49
36
|
d(
|
|
50
37
|
"padding-right",
|
|
38
|
+
c,
|
|
51
39
|
l,
|
|
52
40
|
g,
|
|
53
|
-
b,
|
|
54
41
|
"--container-padding-right"
|
|
55
42
|
),
|
|
56
43
|
d(
|
|
57
44
|
"padding-bottom",
|
|
45
|
+
c,
|
|
58
46
|
l,
|
|
59
|
-
g
|
|
60
|
-
b
|
|
47
|
+
g
|
|
61
48
|
),
|
|
62
49
|
d(
|
|
63
50
|
"padding-left",
|
|
51
|
+
c,
|
|
64
52
|
l,
|
|
65
53
|
g,
|
|
66
|
-
b,
|
|
67
54
|
"--container-padding-left"
|
|
68
|
-
),
|
|
69
|
-
d(
|
|
70
|
-
"gap",
|
|
71
|
-
l,
|
|
72
|
-
v,
|
|
73
|
-
"px-spacing",
|
|
74
|
-
void 0,
|
|
75
|
-
"subgrid-gap"
|
|
76
55
|
)
|
|
77
|
-
],
|
|
56
|
+
], y = class y extends R {
|
|
78
57
|
constructor() {
|
|
79
58
|
super(L, ...Z), this.template = () => `<div class="container">
|
|
80
59
|
<slot></slot>
|
|
81
60
|
<slot name="anchor-left"></slot>
|
|
82
61
|
<slot name="anchor-right"></slot>
|
|
83
62
|
<slot name="anchor-full"></slot>
|
|
84
|
-
</div>`, this._bgObserver = null, this._isInViewport = !1, this.
|
|
63
|
+
</div>`, this._bgObserver = null, this._isInViewport = !1, this.shadowRoot.innerHTML = this.template();
|
|
85
64
|
}
|
|
86
65
|
static get observedAttributes() {
|
|
87
66
|
return [
|
|
@@ -114,12 +93,11 @@ const _ = [
|
|
|
114
93
|
"box-shadow",
|
|
115
94
|
"anchor-offset",
|
|
116
95
|
"anchor-spacing",
|
|
117
|
-
"inverted"
|
|
118
|
-
"subgrid-rows"
|
|
96
|
+
"inverted"
|
|
119
97
|
];
|
|
120
98
|
}
|
|
121
99
|
connectedCallback() {
|
|
122
|
-
this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
|
|
100
|
+
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
101
|
this.$slotAnchor && this.addAnchorClass();
|
|
124
102
|
}), this.contentObserver.observe(this, {
|
|
125
103
|
childList: !0,
|
|
@@ -133,14 +111,14 @@ const _ = [
|
|
|
133
111
|
}), this._bgObserver.observe(this.$el);
|
|
134
112
|
}
|
|
135
113
|
disconnectedCallback() {
|
|
136
|
-
var t
|
|
137
|
-
(t = this._bgObserver) == null || t.disconnect(),
|
|
114
|
+
var t;
|
|
115
|
+
(t = this._bgObserver) == null || t.disconnect(), this.contentObserver.disconnect();
|
|
138
116
|
}
|
|
139
117
|
attributeChangedCallback(t, i, e) {
|
|
140
118
|
if (i !== e)
|
|
141
119
|
switch (t) {
|
|
142
120
|
case "border":
|
|
143
|
-
this.updateAttribute(t, i, e,
|
|
121
|
+
this.updateAttribute(t, i, e, O);
|
|
144
122
|
break;
|
|
145
123
|
case "border-color":
|
|
146
124
|
this.updateBorderColor(t, e);
|
|
@@ -149,14 +127,14 @@ const _ = [
|
|
|
149
127
|
case "border-side--mobile":
|
|
150
128
|
case "border-side--tablet":
|
|
151
129
|
case "border-side--laptop":
|
|
152
|
-
this.updateAttribute(t, i, e,
|
|
130
|
+
this.updateAttribute(t, i, e, H);
|
|
153
131
|
break;
|
|
154
132
|
case "border-radius":
|
|
155
133
|
this.updateAttribute(
|
|
156
134
|
t,
|
|
157
135
|
i,
|
|
158
136
|
e,
|
|
159
|
-
|
|
137
|
+
E
|
|
160
138
|
);
|
|
161
139
|
break;
|
|
162
140
|
case "no-border-radius":
|
|
@@ -167,7 +145,7 @@ const _ = [
|
|
|
167
145
|
t,
|
|
168
146
|
i,
|
|
169
147
|
e,
|
|
170
|
-
|
|
148
|
+
D
|
|
171
149
|
);
|
|
172
150
|
break;
|
|
173
151
|
case "background-color":
|
|
@@ -187,7 +165,7 @@ const _ = [
|
|
|
187
165
|
t,
|
|
188
166
|
i,
|
|
189
167
|
e,
|
|
190
|
-
|
|
168
|
+
$
|
|
191
169
|
);
|
|
192
170
|
break;
|
|
193
171
|
case "background-image":
|
|
@@ -200,22 +178,14 @@ const _ = [
|
|
|
200
178
|
e !== null && e !== "" && (this.$el.style.backgroundPosition = e);
|
|
201
179
|
break;
|
|
202
180
|
case "box-shadow":
|
|
203
|
-
this.updateAttribute(t, i, e,
|
|
181
|
+
this.updateAttribute(t, i, e, P);
|
|
204
182
|
break;
|
|
205
183
|
case "anchor-offset":
|
|
206
|
-
this.updateAnchorOffset(i, e,
|
|
184
|
+
this.updateAnchorOffset(i, e, l);
|
|
207
185
|
break;
|
|
208
186
|
case "anchor-spacing":
|
|
209
187
|
this.updateAnchorSpacing(i, e, _);
|
|
210
188
|
break;
|
|
211
|
-
case "subgrid-rows":
|
|
212
|
-
this.updateSubgridRows(
|
|
213
|
-
t,
|
|
214
|
-
i,
|
|
215
|
-
e,
|
|
216
|
-
N
|
|
217
|
-
);
|
|
218
|
-
break;
|
|
219
189
|
default:
|
|
220
190
|
super.attributeChangedCallback(t, i, e);
|
|
221
191
|
break;
|
|
@@ -236,7 +206,7 @@ const _ = [
|
|
|
236
206
|
this.$el.style.setProperty(`--${t}`, `url("${i}")`);
|
|
237
207
|
}
|
|
238
208
|
updateGradient(t, i) {
|
|
239
|
-
if (this.checkName(
|
|
209
|
+
if (this.checkName(j, i)) {
|
|
240
210
|
const e = this.splitAttrNameFromBreakpoint(t);
|
|
241
211
|
t = e.attrName;
|
|
242
212
|
const o = e.breakpoint;
|
|
@@ -245,13 +215,13 @@ const _ = [
|
|
|
245
215
|
`linear-gradient(var(--px-color-background-gradient-${i}))`
|
|
246
216
|
);
|
|
247
217
|
} else
|
|
248
|
-
|
|
218
|
+
n(
|
|
249
219
|
`${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
250
220
|
);
|
|
251
221
|
}
|
|
252
222
|
updateBackgroundColor(t, i) {
|
|
253
223
|
const e = i.startsWith("surface-");
|
|
254
|
-
if (this.checkName(
|
|
224
|
+
if (this.checkName(u, i)) {
|
|
255
225
|
const o = this.splitAttrNameFromBreakpoint(t), r = o.breakpoint;
|
|
256
226
|
this.$el.style.setProperty(
|
|
257
227
|
`--${o.attrName}${r}`,
|
|
@@ -261,24 +231,24 @@ const _ = [
|
|
|
261
231
|
`var(--px-color-background-${i}${e ? "" : "-inverted"})`
|
|
262
232
|
);
|
|
263
233
|
} else
|
|
264
|
-
|
|
234
|
+
n(
|
|
265
235
|
`${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
266
236
|
);
|
|
267
237
|
}
|
|
268
238
|
updateBorderColor(t, i) {
|
|
269
|
-
this.checkName(
|
|
239
|
+
this.checkName(q, i) ? (this.$el.style.setProperty(
|
|
270
240
|
`--${t}`,
|
|
271
241
|
`var(--px-color-border-${i}-default)`
|
|
272
242
|
), this.$el.style.setProperty(
|
|
273
243
|
`--${t}-inverted`,
|
|
274
244
|
`var(--px-color-border-${i}-inverted)`
|
|
275
|
-
)) :
|
|
245
|
+
)) : n(
|
|
276
246
|
`${i} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
277
247
|
);
|
|
278
248
|
}
|
|
279
249
|
updateNoBorderRadius(t, i, e, o) {
|
|
280
250
|
if (!this.checkName(o, e))
|
|
281
|
-
|
|
251
|
+
n(
|
|
282
252
|
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
283
253
|
);
|
|
284
254
|
else {
|
|
@@ -292,7 +262,7 @@ const _ = [
|
|
|
292
262
|
}
|
|
293
263
|
updateAttribute(t, i, e, o) {
|
|
294
264
|
if (!this.checkName(o, e))
|
|
295
|
-
|
|
265
|
+
n(
|
|
296
266
|
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
297
267
|
);
|
|
298
268
|
else {
|
|
@@ -315,8 +285,8 @@ const _ = [
|
|
|
315
285
|
return { attrName: t, breakpoint: i };
|
|
316
286
|
}
|
|
317
287
|
updateAnchorOffset(t, i, e) {
|
|
318
|
-
if (!
|
|
319
|
-
|
|
288
|
+
if (!h(e, i)) {
|
|
289
|
+
n(
|
|
320
290
|
`${i} is not a valid anchor-offset value for ${this.tagName.toLowerCase()}`
|
|
321
291
|
);
|
|
322
292
|
return;
|
|
@@ -339,8 +309,8 @@ const _ = [
|
|
|
339
309
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
340
310
|
}
|
|
341
311
|
updateAnchorSpacing(t, i, e) {
|
|
342
|
-
if (!
|
|
343
|
-
|
|
312
|
+
if (!h(e, i)) {
|
|
313
|
+
n(
|
|
344
314
|
`${i} is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}`
|
|
345
315
|
);
|
|
346
316
|
return;
|
|
@@ -359,15 +329,6 @@ const _ = [
|
|
|
359
329
|
};
|
|
360
330
|
o(t), o(i);
|
|
361
331
|
}
|
|
362
|
-
updateSubgridRows(t, i, e, o) {
|
|
363
|
-
u(o, e) ? this.style.setProperty(`--${t}`, e) : s(
|
|
364
|
-
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
365
|
-
);
|
|
366
|
-
}
|
|
367
|
-
get $el() {
|
|
368
|
-
var t;
|
|
369
|
-
return (t = this == null ? void 0 : this.shadowRoot) == null ? void 0 : t.querySelector(".container");
|
|
370
|
-
}
|
|
371
332
|
get $slotAnchor() {
|
|
372
333
|
return this.querySelector('[slot^="anchor"]');
|
|
373
334
|
}
|
|
@@ -708,44 +669,14 @@ const _ = [
|
|
|
708
669
|
this.setAttribute("anchor-spacing", t);
|
|
709
670
|
}
|
|
710
671
|
get inverted() {
|
|
711
|
-
return this.
|
|
672
|
+
return this.getAttribute("inverted");
|
|
712
673
|
}
|
|
713
674
|
set inverted(t) {
|
|
714
|
-
|
|
715
|
-
}
|
|
716
|
-
get subgridRows() {
|
|
717
|
-
return this.getAttribute("subgrid-rows");
|
|
718
|
-
}
|
|
719
|
-
set subgridRows(t) {
|
|
720
|
-
this.setAttribute("subgrid-rows", t);
|
|
721
|
-
}
|
|
722
|
-
get subgridGap() {
|
|
723
|
-
return this.getAttribute("subgrid-gap");
|
|
724
|
-
}
|
|
725
|
-
set subgridGap(t) {
|
|
726
|
-
this.setAttribute("subgrid-gap", t);
|
|
727
|
-
}
|
|
728
|
-
get subgridGapMobile() {
|
|
729
|
-
return this.getAttribute("subgrid-gap--mobile");
|
|
730
|
-
}
|
|
731
|
-
set subgridGapMobile(t) {
|
|
732
|
-
this.setAttribute("subgrid-gap--mobile", t);
|
|
733
|
-
}
|
|
734
|
-
get subgridGapTablet() {
|
|
735
|
-
return this.getAttribute("subgrid-gap--tablet");
|
|
736
|
-
}
|
|
737
|
-
set subgridGapTablet(t) {
|
|
738
|
-
this.setAttribute("subgrid-gap--tablet", t);
|
|
739
|
-
}
|
|
740
|
-
get subgridGapLaptop() {
|
|
741
|
-
return this.getAttribute("subgrid-gap--laptop");
|
|
742
|
-
}
|
|
743
|
-
set subgridGapLaptop(t) {
|
|
744
|
-
this.setAttribute("subgrid-gap--laptop", t);
|
|
675
|
+
this.setAttribute("inverted", t);
|
|
745
676
|
}
|
|
746
677
|
};
|
|
747
|
-
|
|
748
|
-
let m =
|
|
678
|
+
y.nativeName = "div";
|
|
679
|
+
let m = y;
|
|
749
680
|
customElements.get("px-container") || customElements.define("px-container", m);
|
|
750
681
|
const W = ':host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}', T = new CSSStyleSheet();
|
|
751
682
|
T.replaceSync(W);
|
|
@@ -774,9 +705,9 @@ const Y = [
|
|
|
774
705
|
"space-around",
|
|
775
706
|
"space-evenly"
|
|
776
707
|
], Q = ["", "default", "nowrap", "wrap", "wrap-reverse"], U = ["", "visible", "hidden", "scroll", "auto"];
|
|
777
|
-
class
|
|
708
|
+
class v extends C {
|
|
778
709
|
constructor() {
|
|
779
|
-
super(T), this.overflowXAttributeDelegate = new
|
|
710
|
+
super(T), this.overflowXAttributeDelegate = new G(
|
|
780
711
|
this,
|
|
781
712
|
"overflow-x",
|
|
782
713
|
(t) => t,
|
|
@@ -830,7 +761,7 @@ class x extends y {
|
|
|
830
761
|
case "gap--tablet":
|
|
831
762
|
case "gap--laptop":
|
|
832
763
|
case "gap--desktop":
|
|
833
|
-
this.updateFlexProperties(t, i, e,
|
|
764
|
+
this.updateFlexProperties(t, i, e, w);
|
|
834
765
|
break;
|
|
835
766
|
case "justify-content":
|
|
836
767
|
case "justify-content--mobile":
|
|
@@ -878,8 +809,8 @@ class x extends y {
|
|
|
878
809
|
}
|
|
879
810
|
}
|
|
880
811
|
updateOverflowX(t, i, e, o) {
|
|
881
|
-
if (!
|
|
882
|
-
|
|
812
|
+
if (!h(o, e)) {
|
|
813
|
+
n(
|
|
883
814
|
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
884
815
|
);
|
|
885
816
|
return;
|
|
@@ -891,17 +822,17 @@ class x extends y {
|
|
|
891
822
|
);
|
|
892
823
|
}
|
|
893
824
|
updateFlexProperties(t, i, e, o) {
|
|
894
|
-
this.checkName(o, e) ||
|
|
825
|
+
this.checkName(o, e) || n(
|
|
895
826
|
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
896
827
|
);
|
|
897
828
|
const r = t.indexOf("--") > -1, a = r ? t.split("--")[0] : t, p = [];
|
|
898
829
|
if (!r)
|
|
899
|
-
this.getAttribute(a + "--mobile") || p.push("mobile"), this.getAttribute(a + "--tablet") || p.push("tablet"), this.getAttribute(a + "--laptop") || p.push("laptop"), this.getAttribute(a + "--desktop") || p.push("desktop"), p.forEach((
|
|
900
|
-
this.updateStyle(a,
|
|
830
|
+
this.getAttribute(a + "--mobile") || p.push("mobile"), this.getAttribute(a + "--tablet") || p.push("tablet"), this.getAttribute(a + "--laptop") || p.push("laptop"), this.getAttribute(a + "--desktop") || p.push("desktop"), p.forEach((b) => {
|
|
831
|
+
this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
|
|
901
832
|
});
|
|
902
833
|
else {
|
|
903
|
-
const
|
|
904
|
-
this.updateStyle(a,
|
|
834
|
+
const b = t.split("--")[1];
|
|
835
|
+
this.updateStyle(a, b, i, o), this.updateStyle(a, b, e, o);
|
|
905
836
|
}
|
|
906
837
|
}
|
|
907
838
|
updateStyle(t, i, e, o) {
|
|
@@ -1100,8 +1031,8 @@ class x extends y {
|
|
|
1100
1031
|
return this.shadowRoot.querySelector(".flex-container");
|
|
1101
1032
|
}
|
|
1102
1033
|
}
|
|
1103
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
1104
|
-
class V extends
|
|
1034
|
+
customElements.get("px-stack") || customElements.define("px-stack", v);
|
|
1035
|
+
class V extends v {
|
|
1105
1036
|
constructor() {
|
|
1106
1037
|
super();
|
|
1107
1038
|
}
|
|
@@ -1110,7 +1041,7 @@ class V extends x {
|
|
|
1110
1041
|
}
|
|
1111
1042
|
}
|
|
1112
1043
|
customElements.get("px-vstack") || customElements.define("px-vstack", V);
|
|
1113
|
-
class tt extends
|
|
1044
|
+
class tt extends v {
|
|
1114
1045
|
constructor() {
|
|
1115
1046
|
super();
|
|
1116
1047
|
}
|
|
@@ -1167,11 +1098,11 @@ class et extends HTMLElement {
|
|
|
1167
1098
|
}
|
|
1168
1099
|
}
|
|
1169
1100
|
customElements.get("px-spacer") || customElements.define("px-spacer", et);
|
|
1170
|
-
const it = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}",
|
|
1171
|
-
|
|
1172
|
-
class ot extends
|
|
1101
|
+
const it = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", I = new CSSStyleSheet();
|
|
1102
|
+
I.replaceSync(it);
|
|
1103
|
+
class ot extends C {
|
|
1173
1104
|
constructor() {
|
|
1174
|
-
super(
|
|
1105
|
+
super(I), this.template = (t) => `
|
|
1175
1106
|
<px-container border-radius="none" padding="none">
|
|
1176
1107
|
<px-vstack>
|
|
1177
1108
|
<px-container id="header-container" border-radius="none">
|
|
@@ -1348,7 +1279,7 @@ class ot extends y {
|
|
|
1348
1279
|
case "background-color":
|
|
1349
1280
|
this.$bodyContainer.setAttribute(
|
|
1350
1281
|
"background-color",
|
|
1351
|
-
|
|
1282
|
+
u.indexOf(e) > 0 ? e : "none"
|
|
1352
1283
|
);
|
|
1353
1284
|
break;
|
|
1354
1285
|
case "padding-vertical":
|
|
@@ -1369,8 +1300,8 @@ class ot extends y {
|
|
|
1369
1300
|
}
|
|
1370
1301
|
}
|
|
1371
1302
|
customElements.get("px-page") === void 0 && customElements.define("px-page", ot);
|
|
1372
|
-
const
|
|
1373
|
-
|
|
1303
|
+
const M = new CSSStyleSheet();
|
|
1304
|
+
M.replaceSync(F);
|
|
1374
1305
|
class rt extends HTMLElement {
|
|
1375
1306
|
constructor() {
|
|
1376
1307
|
super(), this.template = () => `
|
|
@@ -1387,7 +1318,7 @@ class rt extends HTMLElement {
|
|
|
1387
1318
|
<div class="content-wrapper">
|
|
1388
1319
|
<slot name="overlap"></slot>
|
|
1389
1320
|
</div>
|
|
1390
|
-
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [
|
|
1321
|
+
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [M];
|
|
1391
1322
|
}
|
|
1392
1323
|
connectedCallback() {
|
|
1393
1324
|
this.$container.setAttribute("background-color", this.backgroundColor), this.$slotOverlap && this.shadowRoot.firstElementChild.querySelector(".content-wrapper").classList.add("overlapped");
|
|
@@ -1430,7 +1361,7 @@ class rt extends HTMLElement {
|
|
|
1430
1361
|
if (i !== e)
|
|
1431
1362
|
switch (t) {
|
|
1432
1363
|
case "background-color":
|
|
1433
|
-
this.$container.backgroundColor =
|
|
1364
|
+
this.$container.backgroundColor = u.indexOf(e) > 0 ? e : "none";
|
|
1434
1365
|
break;
|
|
1435
1366
|
case "background-gradient":
|
|
1436
1367
|
this.$container.gradient = this.gradient;
|
|
@@ -1663,7 +1594,7 @@ class rt extends HTMLElement {
|
|
|
1663
1594
|
customElements.get("px-section") || customElements.define("px-section", rt);
|
|
1664
1595
|
const at = ":host{display:block;--grid-cols: initial;--grid-cols--mobile: initial;--grid-cols--tablet: initial;--grid-cols--laptop: initial;--grid-cols--desktop: initial;--justify-content: initial;--justify-items: initial;--align-content: initial;--align-items: initial}.grid{display:grid;grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr));justify-content:var(--justify-content);justify-items:var(--justify-items);align-content:var(--align-content);align-items:var(--align-items)}.justify-content-normal{justify-content:normal}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-center{justify-content:center}.justify-content-space-between{justify-content:space-between}.justify-content-space-around{justify-content:space-around}.justify-content-space-evenly{justify-content:space-evenly}.justify-content-stretch{justify-content:stretch}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-center{justify-items:center}.justify-items-stretch{justify-items:stretch}.align-content-normal{align-content:normal}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-center{align-content:center}.align-content-space-between{align-content:space-between}.align-content-space-around{align-content:space-around}.align-content-space-evenly{align-content:space-evenly}.align-content-stretch{align-content:stretch}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-center{align-items:center}.align-items-stretch{align-items:stretch}@media only screen and (max-width: 767px){.grid{grid-template-columns:repeat(var(--grid-cols--mobile, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-mobile{justify-content:normal}.justify-content-start-mobile{justify-content:start}.justify-content-end-mobile{justify-content:end}.justify-content-center-mobile{justify-content:center}.justify-content-space-between-mobile{justify-content:space-between}.justify-content-space-around-mobile{justify-content:space-around}.justify-content-space-evenly-mobile{justify-content:space-evenly}.justify-content-stretch-mobile{justify-content:stretch}.justify-items-start-mobile{justify-items:start}.justify-items-end-mobile{justify-items:end}.justify-items-center-mobile{justify-items:center}.justify-items-stretch-mobile{justify-items:stretch}.align-content-normal-mobile{align-content:normal}.align-content-start-mobile{align-content:start}.align-content-end-mobile{align-content:end}.align-content-center-mobile{align-content:center}.align-content-space-between-mobile{align-content:space-between}.align-content-space-around-mobile{align-content:space-around}.align-content-space-evenly-mobile{align-content:space-evenly}.align-content-stretch-mobile{align-content:stretch}.align-items-start-mobile{align-items:start}.align-items-end-mobile{align-items:end}.align-items-center-mobile{align-items:center}.align-items-stretch-mobile{align-items:stretch}}@media only screen and (min-width: 48em) and (max-width: 64em){.grid{grid-template-columns:repeat(var(--grid-cols--tablet, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-tablet{justify-content:normal}.justify-content-start-tablet{justify-content:start}.justify-content-end-tablet{justify-content:end}.justify-content-center-tablet{justify-content:center}.justify-content-space-between-tablet{justify-content:space-between}.justify-content-space-around-tablet{justify-content:space-around}.justify-content-space-evenly-tablet{justify-content:space-evenly}.justify-content-stretch-tablet{justify-content:stretch}.justify-items-start-tablet{justify-items:start}.justify-items-end-tablet{justify-items:end}.justify-items-center-tablet{justify-items:center}.justify-items-stretch-tablet{justify-items:stretch}.align-content-normal-tablet{align-content:normal}.align-content-start-tablet{align-content:start}.align-content-end-tablet{align-content:end}.align-content-center-tablet{align-content:center}.align-content-space-between-tablet{align-content:space-between}.align-content-space-around-tablet{align-content:space-around}.align-content-space-evenly-tablet{align-content:space-evenly}.align-content-stretch-tablet{align-content:stretch}.align-items-start-tablet{align-items:start}.align-items-end-tablet{align-items:end}.align-items-center-tablet{align-items:center}.align-items-stretch-tablet{align-items:stretch}}@media only screen and (min-width: 64.0625em){.grid{grid-template-columns:repeat(var(--grid-cols--laptop, var(--grid-cols)),minmax(0,1fr))}.justify-content-normal-laptop{justify-content:normal}.justify-content-start-laptop{justify-content:start}.justify-content-end-laptop{justify-content:end}.justify-content-center-laptop{justify-content:center}.justify-content-space-between-laptop{justify-content:space-between}.justify-content-space-around-laptop{justify-content:space-around}.justify-content-space-evenly-laptop{justify-content:space-evenly}.justify-content-stretch-laptop{justify-content:stretch}.justify-items-start-laptop{justify-items:start}.justify-items-end-laptop{justify-items:end}.justify-items-center-laptop{justify-items:center}.justify-items-stretch-laptop{justify-items:stretch}.align-content-normal-laptop{align-content:normal}.align-content-start-laptop{align-content:start}.align-content-end-laptop{align-content:end}.align-content-center-laptop{align-content:center}.align-content-space-between-laptop{align-content:space-between}.align-content-space-around-laptop{align-content:space-around}.align-content-space-evenly-laptop{align-content:space-evenly}.align-content-stretch-laptop{align-content:stretch}.align-items-start-laptop{align-items:start}.align-items-end-laptop{align-items:end}.align-items-center-laptop{align-items:center}.align-items-stretch-laptop{align-items:stretch}}", B = new CSSStyleSheet();
|
|
1665
1596
|
B.replaceSync(at);
|
|
1666
|
-
const
|
|
1597
|
+
const nt = [
|
|
1667
1598
|
"1",
|
|
1668
1599
|
"2",
|
|
1669
1600
|
"3",
|
|
@@ -1676,7 +1607,7 @@ const st = [
|
|
|
1676
1607
|
"10",
|
|
1677
1608
|
"11",
|
|
1678
1609
|
"12"
|
|
1679
|
-
],
|
|
1610
|
+
], st = [
|
|
1680
1611
|
"",
|
|
1681
1612
|
"start",
|
|
1682
1613
|
"end",
|
|
@@ -1685,15 +1616,15 @@ const st = [
|
|
|
1685
1616
|
"space-around",
|
|
1686
1617
|
"space-evenly",
|
|
1687
1618
|
"stretch"
|
|
1688
|
-
], dt = ["", "start", "end", "center", "stretch"], lt = (
|
|
1619
|
+
], dt = ["", "start", "end", "center", "stretch"], lt = (s, t, i) => `:host([${s}${i ? `--${i}` : ""}='${t}']) .grid`, ct = "px-spacing", gt = d(
|
|
1689
1620
|
"gap",
|
|
1690
1621
|
lt,
|
|
1691
|
-
|
|
1692
|
-
|
|
1622
|
+
w,
|
|
1623
|
+
ct,
|
|
1693
1624
|
"--grid-gap"
|
|
1694
|
-
),
|
|
1625
|
+
), x = class x extends S {
|
|
1695
1626
|
constructor() {
|
|
1696
|
-
super(B,
|
|
1627
|
+
super(B, gt), this.template = () => `<div class="grid">
|
|
1697
1628
|
<slot></slot>
|
|
1698
1629
|
</div>`, this.shadowRoot.innerHTML = this.template();
|
|
1699
1630
|
}
|
|
@@ -1736,7 +1667,7 @@ const st = [
|
|
|
1736
1667
|
case "grid-cols--mobile":
|
|
1737
1668
|
case "grid-cols--tablet":
|
|
1738
1669
|
case "grid-cols--laptop":
|
|
1739
|
-
this.updateAttribute(t, i, e,
|
|
1670
|
+
this.updateAttribute(t, i, e, nt);
|
|
1740
1671
|
break;
|
|
1741
1672
|
case "justify-content":
|
|
1742
1673
|
case "align-content":
|
|
@@ -1752,7 +1683,7 @@ const st = [
|
|
|
1752
1683
|
t,
|
|
1753
1684
|
i,
|
|
1754
1685
|
e,
|
|
1755
|
-
|
|
1686
|
+
st
|
|
1756
1687
|
);
|
|
1757
1688
|
break;
|
|
1758
1689
|
case "justify-items":
|
|
@@ -1779,7 +1710,7 @@ const st = [
|
|
|
1779
1710
|
}
|
|
1780
1711
|
updateGap(t, i, e) {
|
|
1781
1712
|
if (!this.checkName(e, i)) {
|
|
1782
|
-
|
|
1713
|
+
n(
|
|
1783
1714
|
`${i} is not an allowed gap value for ${this.tagName.toLowerCase()}`
|
|
1784
1715
|
);
|
|
1785
1716
|
return;
|
|
@@ -1799,7 +1730,7 @@ const st = [
|
|
|
1799
1730
|
o(t), o(i);
|
|
1800
1731
|
}
|
|
1801
1732
|
updateAttribute(t, i, e, o) {
|
|
1802
|
-
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}`)) :
|
|
1733
|
+
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}`)) : n(
|
|
1803
1734
|
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1804
1735
|
);
|
|
1805
1736
|
}
|
|
@@ -1972,12 +1903,12 @@ const st = [
|
|
|
1972
1903
|
this.setAttribute("align-items--desktop", t);
|
|
1973
1904
|
}
|
|
1974
1905
|
};
|
|
1975
|
-
|
|
1976
|
-
let f =
|
|
1906
|
+
x.nativeName = "div";
|
|
1907
|
+
let f = x;
|
|
1977
1908
|
customElements.get("px-grid") || customElements.define("px-grid", f);
|
|
1978
1909
|
const z = new CSSStyleSheet();
|
|
1979
|
-
z.replaceSync(
|
|
1980
|
-
const
|
|
1910
|
+
z.replaceSync(X);
|
|
1911
|
+
const A = class A extends S {
|
|
1981
1912
|
constructor() {
|
|
1982
1913
|
super(z), this.template = () => `<div class="content-header">
|
|
1983
1914
|
<div class="contrast-helper"></div>
|
|
@@ -2033,10 +1964,10 @@ const w = class w extends S {
|
|
|
2033
1964
|
if (i !== e)
|
|
2034
1965
|
switch (t) {
|
|
2035
1966
|
case "background-color":
|
|
2036
|
-
this.$section.backgroundColor =
|
|
1967
|
+
this.$section.backgroundColor = u.indexOf(e) > 0 ? e : "none";
|
|
2037
1968
|
break;
|
|
2038
1969
|
case "background-gradient":
|
|
2039
|
-
this.$section.gradient =
|
|
1970
|
+
this.$section.gradient = j.indexOf(e) > 0 ? e : "none";
|
|
2040
1971
|
break;
|
|
2041
1972
|
case "background-image":
|
|
2042
1973
|
this.$section.backgroundImage = e;
|
|
@@ -2051,7 +1982,7 @@ const w = class w extends S {
|
|
|
2051
1982
|
this.$section.backgroundImageLaptop = e;
|
|
2052
1983
|
break;
|
|
2053
1984
|
case "background-size":
|
|
2054
|
-
this.$section.backgroundSize =
|
|
1985
|
+
this.$section.backgroundSize = $.indexOf(e) > 0 ? e : "";
|
|
2055
1986
|
break;
|
|
2056
1987
|
case "background-position":
|
|
2057
1988
|
this.$section.backgroundPosition = e;
|
|
@@ -2217,8 +2148,8 @@ const w = class w extends S {
|
|
|
2217
2148
|
t ? this.setAttribute("min-height", "") : this.removeAttribute("min-height");
|
|
2218
2149
|
}
|
|
2219
2150
|
};
|
|
2220
|
-
|
|
2221
|
-
let k =
|
|
2151
|
+
A.nativeName = "div";
|
|
2152
|
+
let k = A;
|
|
2222
2153
|
customElements.get("px-content-header") || customElements.define("px-content-header", k);
|
|
2223
2154
|
export {
|
|
2224
2155
|
k as ContentHeader
|