@proximus/lavender-content-header 1.4.20-alpha.1 → 1.4.20-alpha.10
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 +3 -0
- package/dist/custom-elements.json +13 -0
- package/dist/index.es.js +378 -184
- package/dist/web-types.json +2 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, backgroundColorValues as r, backgroundSizeValues as i, booleanPropertyToAttributeSetter as a, borderColorValues as o, borderRadiusValues as s, borderSideValues as c, borderValues as
|
|
1
|
+
import { AttributeBreakpointHandlerDelegate as e, PxElement as t, WithExtraAttributes as n, backgroundColorValues as r, backgroundSizeValues as i, booleanPropertyToAttributeSetter as a, borderColorValues as o, borderRadiusValues as s, borderSideValues as c, borderValues as l, boxShadowValues as u, checkName as d, createTemplate as f, cssTokenBreakpoints as p, gapValues as m, gradientValues as h, log as g, noBorderRadiusValues as _, paddingValues as v, propertyToAttributeSetter as y, renderTemplate as b } from "@proximus/lavender-common";
|
|
2
2
|
import "@proximus/lavender-heading";
|
|
3
3
|
//#region src/contentheader.css?inline
|
|
4
|
-
var y = ":host{--min-height--mobile:15.625rem;--min-height--tablet:17.5rem;--min-height--laptop:17.5rem;--min-height--desktop:17.5rem}:host,:host>*{box-sizing:border-box;display:block}.content-header{z-index:0;position:relative}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2) )}.content-header-content{z-index:2;box-sizing:border-box;flex-direction:column;display:flex;position:relative}.content-header-content ::slotted([slot=patch]){margin-top:var(--px-spacing-l-mobile)}.contrast-helper{z-index:1;pointer-events:none;display:none;position:absolute;inset:0}[contrast-helper-gradient] .contrast-helper{background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%);display:block}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{background-color:#ffffffb3;display:block}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media screen and (width>=48rem){.content-header-content ::slotted([slot=patch]){flex-shrink:0}.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-tablet)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media screen and (width>=64.0625rem){.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}@media screen and (width>=90.0625rem){.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--desktop) - (var(--px-spacing-l-desktop) * 2))}}", b = ":host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media screen and (width>=77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-mobile)}@media screen and (width>=48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-tablet) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-tablet)}}@media screen and (width>=64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-laptop) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-laptop)}}", x = ":host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-left-style:none;border-right-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-left-style:none;border-right-style:none}.border-side-left{border-top-style:none;border-bottom-style:none;border-right-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-position:50%;background-size:cover}.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]){z-index:3;transform:translateY(-50%)}::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]){text-align:center;z-index:2;left:0;right:0;transform:translateY(-100%)}::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{grid-template-rows:subgrid;grid-row:span var(--subgrid-rows);display:grid}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (width<=47.938rem){.container{background-color:var(--background-color--mobile,var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile,var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var(--background-gradient--mobile,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--mobile,var(--background-color-inverted))}.border-side-top--mobile{border-style:solid none none}.border-side-right--mobile{border-style:none solid none none}.border-side-bottom--mobile{border-style:none none solid}.border-side-left--mobile{border-style:none none none solid}.border-side-block--mobile{border-block-style:solid;border-inline-style:none}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (width>=48rem) and (width<=64rem){.container{background-color:var(--background-color--tablet,var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet,var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var(--background-gradient--tablet,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--tablet,var(--background-color-inverted))}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-style:solid none none}.border-side-right--tablet{border-style:none solid none none}.border-side-bottom--tablet{border-style:none none solid}.border-side-left--tablet{border-style:none none none solid}.border-side-block--tablet{border-block-style:solid;border-inline-style:none}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--tablet,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--tablet,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (width>=64.0625rem) and (width<=90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (width>=64.0625rem){.container{background-color:var(--background-color--laptop,var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop,var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var(--background-gradient--laptop,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--laptop,var(--background-color-inverted))}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--laptop,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--laptop,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-style:solid none none}.border-side-right--laptop{border-style:none solid none none}.border-side-bottom--laptop{border-style:none none solid}.border-side-left--laptop{border-style:none none none solid}.border-side-block--laptop{border-block-style:solid;border-inline-style:none}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (width>=90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}", S = new CSSStyleSheet();
|
|
5
|
-
|
|
6
|
-
var
|
|
4
|
+
var x = ":host{--min-height--mobile:15.625rem;--min-height--tablet:17.5rem;--min-height--laptop:17.5rem;--min-height--desktop:17.5rem}:host,:host>*{box-sizing:border-box;display:block}.content-header{z-index:0;position:relative}[min-height] .content-header-content{min-height:calc(var(--min-height--mobile) - (var(--px-spacing-l-mobile) * 2) )}.content-header-content{z-index:2;box-sizing:border-box;flex-direction:column;display:flex;position:relative}.content-header-content ::slotted([slot=patch]){margin-top:var(--px-spacing-l-mobile)}.contrast-helper{z-index:1;pointer-events:none;display:none;position:absolute;inset:0}[contrast-helper-gradient] .contrast-helper{background-image:linear-gradient(90deg,#fff 23.43%,#fff0 81.69%);display:block}[inverted] :is([contrast-helper-gradient] .contrast-helper){background-image:linear-gradient(90deg,#000 23.43%,#0000 81.69%)}[contrast-helper-overlay] .contrast-helper{background-color:#ffffffb3;display:block}[inverted] :is([contrast-helper-overlay] .contrast-helper){background-color:#0006}@media screen and (width>=48rem){.content-header-content ::slotted([slot=patch]){flex-shrink:0}.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-tablet)}[min-height] .content-header-content{min-height:calc(var(--min-height--tablet) - (var(--px-spacing-l-tablet) * 2))}}@media screen and (width>=64.0625rem){.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-laptop)}[min-height] .content-header-content{min-height:calc(var(--min-height--laptop) - (var(--px-spacing-l-laptop) * 2))}}@media screen and (width>=90.0625rem){.content-header-content ::slotted([slot=patch]),.content-header-content ::slotted([slot=patch-description]){margin-top:var(--px-spacing-l-desktop)}[min-height] .content-header-content{min-height:calc(var(--min-height--desktop) - (var(--px-spacing-l-desktop) * 2))}}", S = ":host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media screen and (width>=77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-mobile)}@media screen and (width>=48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-tablet) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-tablet)}}@media screen and (width>=64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-laptop) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-laptop)}}", C = ":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-left-style:none;border-right-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-left-style:none;border-right-style:none}.border-side-left{border-top-style:none;border-bottom-style:none;border-right-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-position:50%;background-size:cover}.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]){z-index:3;transform:translateY(-50%)}::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]){text-align:center;z-index:2;left:0;right:0;transform:translateY(-100%)}::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{grid-template-rows:subgrid;grid-row:span var(--subgrid-rows);display:grid}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (width<=47.938rem){.container{background-color:var(--background-color--mobile,var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile,var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var(--background-gradient--mobile,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--mobile,var(--background-color-inverted))}.border-side-top--mobile{border-style:solid none none}.border-side-right--mobile{border-style:none solid none none}.border-side-bottom--mobile{border-style:none none solid}.border-side-left--mobile{border-style:none none none solid}.border-side-block--mobile{border-block-style:solid;border-inline-style:none}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (width>=48rem) and (width<=64rem){.container{background-color:var(--background-color--tablet,var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet,var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var(--background-gradient--tablet,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--tablet,var(--background-color-inverted))}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-style:solid none none}.border-side-right--tablet{border-style:none solid none none}.border-side-bottom--tablet{border-style:none none solid}.border-side-left--tablet{border-style:none none none solid}.border-side-block--tablet{border-block-style:solid;border-inline-style:none}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--tablet,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--tablet,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (width>=64.0625rem) and (width<=90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (width>=64.0625rem){.container{background-color:var(--background-color--laptop,var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop,var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var(--background-gradient--laptop,var(--background-gradient))}:host([inverted]) .container{background-color:var(--background-color-inverted--laptop,var(--background-color-inverted))}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot=anchor-right]){right:var(--container-anchor-offset--laptop,var(--container-padding-right,var(--container-padding-inline,var(--container-padding))))}::slotted([slot=anchor-left]){left:var(--container-anchor-offset--laptop,var(--container-padding-left,var(--container-padding-inline,var(--container-padding))))}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-style:solid none none}.border-side-right--laptop{border-style:none solid none none}.border-side-bottom--laptop{border-style:none none solid}.border-side-left--laptop{border-style:none none none solid}.border-side-block--laptop{border-block-style:solid;border-inline-style:none}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (width>=90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}", w = new CSSStyleSheet();
|
|
5
|
+
w.replaceSync(C);
|
|
6
|
+
var T = [
|
|
7
7
|
"top-patch",
|
|
8
8
|
"top-neighbor-patch",
|
|
9
9
|
"top-ribbon",
|
|
10
10
|
"top-neighbor-ribbon",
|
|
11
11
|
"top-patch-and-neighbor-ribbon"
|
|
12
|
-
],
|
|
12
|
+
], E = [
|
|
13
13
|
"1",
|
|
14
14
|
"2",
|
|
15
15
|
"3",
|
|
@@ -22,24 +22,24 @@ var C = [
|
|
|
22
22
|
"10",
|
|
23
23
|
"11",
|
|
24
24
|
"12"
|
|
25
|
-
],
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
],
|
|
25
|
+
], D = (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .container`, O = "px-padding", ee = [
|
|
26
|
+
p("padding", D, v, O, "--container-padding"),
|
|
27
|
+
p("padding-inline", D, v, O),
|
|
28
|
+
p("padding-block", D, v, O),
|
|
29
|
+
p("padding-top", D, v, O),
|
|
30
|
+
p("padding-right", D, v, O, "--container-padding-right"),
|
|
31
|
+
p("padding-bottom", D, v, O),
|
|
32
|
+
p("padding-left", D, v, O, "--container-padding-left"),
|
|
33
|
+
p("gap", D, m, "px-spacing", void 0, "subgrid-gap")
|
|
34
|
+
], te = class e extends n {
|
|
35
35
|
static {
|
|
36
|
-
this.template =
|
|
36
|
+
this.template = f("<div class=\"container\"><slot></slot><slot name=\"anchor-left\"></slot><slot name=\"anchor-right\"></slot><slot name=\"anchor-full\"></slot></div>");
|
|
37
37
|
}
|
|
38
38
|
static {
|
|
39
39
|
this.nativeName = "div";
|
|
40
40
|
}
|
|
41
41
|
constructor() {
|
|
42
|
-
super(
|
|
42
|
+
super(w, ...ee), this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, b(this.shadowRoot, e.template);
|
|
43
43
|
}
|
|
44
44
|
static get observedAttributes() {
|
|
45
45
|
return [
|
|
@@ -95,7 +95,7 @@ var C = [
|
|
|
95
95
|
attributeChangedCallback(e, t, n) {
|
|
96
96
|
if (t !== n) switch (e) {
|
|
97
97
|
case "border":
|
|
98
|
-
this.updateAttribute(e, t, n,
|
|
98
|
+
this.updateAttribute(e, t, n, l);
|
|
99
99
|
break;
|
|
100
100
|
case "border-color":
|
|
101
101
|
this.updateBorderColor(e, n);
|
|
@@ -113,7 +113,7 @@ var C = [
|
|
|
113
113
|
case "no-border-radius--mobile":
|
|
114
114
|
case "no-border-radius--tablet":
|
|
115
115
|
case "no-border-radius--laptop":
|
|
116
|
-
this.updateNoBorderRadius(e, t, n,
|
|
116
|
+
this.updateNoBorderRadius(e, t, n, _);
|
|
117
117
|
break;
|
|
118
118
|
case "background-color":
|
|
119
119
|
case "background-color--mobile":
|
|
@@ -140,16 +140,16 @@ var C = [
|
|
|
140
140
|
n !== null && n !== "" && (this.$el.style.backgroundPosition = n);
|
|
141
141
|
break;
|
|
142
142
|
case "box-shadow":
|
|
143
|
-
this.updateAttribute(e, t, n,
|
|
143
|
+
this.updateAttribute(e, t, n, u);
|
|
144
144
|
break;
|
|
145
145
|
case "anchor-offset":
|
|
146
|
-
this.updateAnchorOffset(t, n,
|
|
146
|
+
this.updateAnchorOffset(t, n, v);
|
|
147
147
|
break;
|
|
148
148
|
case "anchor-spacing":
|
|
149
|
-
this.updateAnchorSpacing(t, n,
|
|
149
|
+
this.updateAnchorSpacing(t, n, T);
|
|
150
150
|
break;
|
|
151
151
|
case "subgrid-rows":
|
|
152
|
-
this.updateSubgridRows(e, t, n,
|
|
152
|
+
this.updateSubgridRows(e, t, n, E);
|
|
153
153
|
break;
|
|
154
154
|
default: super.attributeChangedCallback(e, t, n);
|
|
155
155
|
}
|
|
@@ -169,32 +169,32 @@ var C = [
|
|
|
169
169
|
this.$el.style.setProperty(`--${e}`, `url("${t}")`);
|
|
170
170
|
}
|
|
171
171
|
updateGradient(e, t) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
172
|
+
let { attrName: n, breakpoint: r } = this.splitAttrNameFromBreakpoint(e), i = `--${n}${r}`;
|
|
173
|
+
if (t === null) {
|
|
174
|
+
this.$el.style.removeProperty(i);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
this.checkName(h, t) ? this.$el.style.setProperty(i, `linear-gradient(var(--px-color-background-gradient-${t}))`) : g(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${h.join("\", \"")}".`);
|
|
178
178
|
}
|
|
179
179
|
updateBackgroundColor(e, t) {
|
|
180
180
|
let n = t.startsWith("surface-");
|
|
181
181
|
if (this.checkName(r, t)) {
|
|
182
182
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
183
183
|
this.$el.style.setProperty(`--${r.attrName}${i}`, `var(--px-color-background-${t}${n ? "" : "-default"})`), this.$el.style.setProperty(`--${r.attrName}-inverted${i}`, `var(--px-color-background-${t}${n ? "" : "-inverted"})`);
|
|
184
|
-
} else
|
|
184
|
+
} else g(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
185
185
|
}
|
|
186
186
|
updateBorderColor(e, t) {
|
|
187
|
-
this.checkName(o, t) ? (this.$el.style.setProperty(`--${e}`, `var(--px-color-border-${t}-default)`), this.$el.style.setProperty(`--${e}-inverted`, `var(--px-color-border-${t}-inverted)`)) :
|
|
187
|
+
this.checkName(o, t) ? (this.$el.style.setProperty(`--${e}`, `var(--px-color-border-${t}-default)`), this.$el.style.setProperty(`--${e}-inverted`, `var(--px-color-border-${t}-inverted)`)) : g(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join("\", \"")}".`);
|
|
188
188
|
}
|
|
189
189
|
updateNoBorderRadius(e, t, n, r) {
|
|
190
|
-
if (!this.checkName(r, n))
|
|
190
|
+
if (!this.checkName(r, n)) g(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
191
191
|
else {
|
|
192
192
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
193
193
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
updateAttribute(e, t, n, r) {
|
|
197
|
-
if (!this.checkName(r, n))
|
|
197
|
+
if (!this.checkName(r, n)) g(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
198
198
|
else {
|
|
199
199
|
let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
|
|
200
200
|
t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
|
|
@@ -216,8 +216,8 @@ var C = [
|
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
updateAnchorOffset(e, t, n) {
|
|
219
|
-
if (!
|
|
220
|
-
|
|
219
|
+
if (!d(n, t)) {
|
|
220
|
+
g(`"${t}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
223
|
let r = (e) => {
|
|
@@ -229,8 +229,8 @@ var C = [
|
|
|
229
229
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
230
230
|
}
|
|
231
231
|
updateAnchorSpacing(e, t, n) {
|
|
232
|
-
if (!
|
|
233
|
-
|
|
232
|
+
if (!d(n, t)) {
|
|
233
|
+
g(`"${t}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
234
234
|
return;
|
|
235
235
|
}
|
|
236
236
|
let r = (e) => {
|
|
@@ -239,7 +239,7 @@ var C = [
|
|
|
239
239
|
r(e), r(t);
|
|
240
240
|
}
|
|
241
241
|
updateSubgridRows(e, t, n, r) {
|
|
242
|
-
|
|
242
|
+
d(r, n) ? this.style.setProperty(`--${e}`, n) : g(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
243
243
|
}
|
|
244
244
|
get $el() {
|
|
245
245
|
return this?.shadowRoot?.querySelector(".container");
|
|
@@ -251,337 +251,337 @@ var C = [
|
|
|
251
251
|
return this.getAttribute("padding");
|
|
252
252
|
}
|
|
253
253
|
set padding(e) {
|
|
254
|
-
|
|
254
|
+
y(this, "padding", e);
|
|
255
255
|
}
|
|
256
256
|
get paddingBlock() {
|
|
257
257
|
return this.getAttribute("padding-block");
|
|
258
258
|
}
|
|
259
259
|
set paddingBlock(e) {
|
|
260
|
-
|
|
260
|
+
y(this, "padding-block", e);
|
|
261
261
|
}
|
|
262
262
|
get paddingInline() {
|
|
263
263
|
return this.getAttribute("padding-inline");
|
|
264
264
|
}
|
|
265
265
|
set paddingInline(e) {
|
|
266
|
-
|
|
266
|
+
y(this, "padding-inline", e);
|
|
267
267
|
}
|
|
268
268
|
get paddingTop() {
|
|
269
269
|
return this.getAttribute("padding-top");
|
|
270
270
|
}
|
|
271
271
|
set paddingTop(e) {
|
|
272
|
-
|
|
272
|
+
y(this, "padding-top", e);
|
|
273
273
|
}
|
|
274
274
|
get paddingRight() {
|
|
275
275
|
return this.getAttribute("padding-right");
|
|
276
276
|
}
|
|
277
277
|
set paddingRight(e) {
|
|
278
|
-
|
|
278
|
+
y(this, "padding-right", e);
|
|
279
279
|
}
|
|
280
280
|
get paddingBottom() {
|
|
281
281
|
return this.getAttribute("padding-bottom");
|
|
282
282
|
}
|
|
283
283
|
set paddingBottom(e) {
|
|
284
|
-
|
|
284
|
+
y(this, "padding-bottom", e);
|
|
285
285
|
}
|
|
286
286
|
get paddingLeft() {
|
|
287
287
|
return this.getAttribute("padding-left");
|
|
288
288
|
}
|
|
289
289
|
set paddingLeft(e) {
|
|
290
|
-
|
|
290
|
+
y(this, "padding-left", e);
|
|
291
291
|
}
|
|
292
292
|
get paddingMobile() {
|
|
293
293
|
return this.getAttribute("padding--mobile");
|
|
294
294
|
}
|
|
295
295
|
set paddingMobile(e) {
|
|
296
|
-
|
|
296
|
+
y(this, "padding--mobile", e);
|
|
297
297
|
}
|
|
298
298
|
get paddingBlockMobile() {
|
|
299
299
|
return this.getAttribute("padding-block--mobile");
|
|
300
300
|
}
|
|
301
301
|
set paddingBlockMobile(e) {
|
|
302
|
-
|
|
302
|
+
y(this, "padding-block--mobile", e);
|
|
303
303
|
}
|
|
304
304
|
get paddingInlineMobile() {
|
|
305
305
|
return this.getAttribute("padding-inline--mobile");
|
|
306
306
|
}
|
|
307
307
|
set paddingInlineMobile(e) {
|
|
308
|
-
|
|
308
|
+
y(this, "padding-inline--mobile", e);
|
|
309
309
|
}
|
|
310
310
|
get paddingTopMobile() {
|
|
311
311
|
return this.getAttribute("padding-top--mobile");
|
|
312
312
|
}
|
|
313
313
|
set paddingTopMobile(e) {
|
|
314
|
-
|
|
314
|
+
y(this, "padding-top--mobile", e);
|
|
315
315
|
}
|
|
316
316
|
get paddingRightMobile() {
|
|
317
317
|
return this.getAttribute("padding-right--mobile");
|
|
318
318
|
}
|
|
319
319
|
set paddingRightMobile(e) {
|
|
320
|
-
|
|
320
|
+
y(this, "padding-right--mobile", e);
|
|
321
321
|
}
|
|
322
322
|
get paddingBottomMobile() {
|
|
323
323
|
return this.getAttribute("padding-bottom--mobile");
|
|
324
324
|
}
|
|
325
325
|
set paddingBottomMobile(e) {
|
|
326
|
-
|
|
326
|
+
y(this, "padding-bottom--mobile", e);
|
|
327
327
|
}
|
|
328
328
|
get paddingLeftMobile() {
|
|
329
329
|
return this.getAttribute("padding-left--mobile");
|
|
330
330
|
}
|
|
331
331
|
set paddingLeftMobile(e) {
|
|
332
|
-
|
|
332
|
+
y(this, "padding-left--mobile", e);
|
|
333
333
|
}
|
|
334
334
|
get paddingTablet() {
|
|
335
335
|
return this.getAttribute("padding--tablet");
|
|
336
336
|
}
|
|
337
337
|
set paddingTablet(e) {
|
|
338
|
-
|
|
338
|
+
y(this, "padding--tablet", e);
|
|
339
339
|
}
|
|
340
340
|
get paddingBlockTablet() {
|
|
341
341
|
return this.getAttribute("padding-block--tablet");
|
|
342
342
|
}
|
|
343
343
|
set paddingBlockTablet(e) {
|
|
344
|
-
|
|
344
|
+
y(this, "padding-block--tablet", e);
|
|
345
345
|
}
|
|
346
346
|
get paddingInlineTablet() {
|
|
347
347
|
return this.getAttribute("padding-inline--tablet");
|
|
348
348
|
}
|
|
349
349
|
set paddingInlineTablet(e) {
|
|
350
|
-
|
|
350
|
+
y(this, "padding-inline--tablet", e);
|
|
351
351
|
}
|
|
352
352
|
get paddingTopTablet() {
|
|
353
353
|
return this.getAttribute("padding-top--tablet");
|
|
354
354
|
}
|
|
355
355
|
set paddingTopTablet(e) {
|
|
356
|
-
|
|
356
|
+
y(this, "padding-top--tablet", e);
|
|
357
357
|
}
|
|
358
358
|
get paddingRightTablet() {
|
|
359
359
|
return this.getAttribute("padding-right--tablet");
|
|
360
360
|
}
|
|
361
361
|
set paddingRightTablet(e) {
|
|
362
|
-
|
|
362
|
+
y(this, "padding-right--tablet", e);
|
|
363
363
|
}
|
|
364
364
|
get paddingBottomTablet() {
|
|
365
365
|
return this.getAttribute("padding-bottom--tablet");
|
|
366
366
|
}
|
|
367
367
|
set paddingBottomTablet(e) {
|
|
368
|
-
|
|
368
|
+
y(this, "padding-bottom--tablet", e);
|
|
369
369
|
}
|
|
370
370
|
get paddingLeftTablet() {
|
|
371
371
|
return this.getAttribute("padding-left--tablet");
|
|
372
372
|
}
|
|
373
373
|
set paddingLeftTablet(e) {
|
|
374
|
-
|
|
374
|
+
y(this, "padding-left--tablet", e);
|
|
375
375
|
}
|
|
376
376
|
get paddingLaptop() {
|
|
377
377
|
return this.getAttribute("padding--laptop");
|
|
378
378
|
}
|
|
379
379
|
set paddingLaptop(e) {
|
|
380
|
-
|
|
380
|
+
y(this, "padding--laptop", e);
|
|
381
381
|
}
|
|
382
382
|
get paddingBlockLaptop() {
|
|
383
383
|
return this.getAttribute("padding-block--laptop");
|
|
384
384
|
}
|
|
385
385
|
set paddingBlockLaptop(e) {
|
|
386
|
-
|
|
386
|
+
y(this, "padding-block--laptop", e);
|
|
387
387
|
}
|
|
388
388
|
get paddingInlineLaptop() {
|
|
389
389
|
return this.getAttribute("padding-inline--laptop");
|
|
390
390
|
}
|
|
391
391
|
set paddingInlineLaptop(e) {
|
|
392
|
-
|
|
392
|
+
y(this, "padding-inline--laptop", e);
|
|
393
393
|
}
|
|
394
394
|
get paddingTopLaptop() {
|
|
395
395
|
return this.getAttribute("padding-top--laptop");
|
|
396
396
|
}
|
|
397
397
|
set paddingTopLaptop(e) {
|
|
398
|
-
|
|
398
|
+
y(this, "padding-top--laptop", e);
|
|
399
399
|
}
|
|
400
400
|
get paddingRightLaptop() {
|
|
401
401
|
return this.getAttribute("padding-right--laptop");
|
|
402
402
|
}
|
|
403
403
|
set paddingRightLaptop(e) {
|
|
404
|
-
|
|
404
|
+
y(this, "padding-right--laptop", e);
|
|
405
405
|
}
|
|
406
406
|
get paddingBottomLaptop() {
|
|
407
407
|
return this.getAttribute("padding-bottom--laptop");
|
|
408
408
|
}
|
|
409
409
|
set paddingBottomLaptop(e) {
|
|
410
|
-
|
|
410
|
+
y(this, "padding-bottom--laptop", e);
|
|
411
411
|
}
|
|
412
412
|
get paddingLeftLaptop() {
|
|
413
413
|
return this.getAttribute("padding-left--laptop");
|
|
414
414
|
}
|
|
415
415
|
set paddingLeftLaptop(e) {
|
|
416
|
-
|
|
416
|
+
y(this, "padding-left--laptop", e);
|
|
417
417
|
}
|
|
418
418
|
get border() {
|
|
419
419
|
return this.getAttribute("border");
|
|
420
420
|
}
|
|
421
421
|
set border(e) {
|
|
422
|
-
|
|
422
|
+
y(this, "border", e);
|
|
423
423
|
}
|
|
424
424
|
get borderColor() {
|
|
425
425
|
return this.getAttribute("border-color");
|
|
426
426
|
}
|
|
427
427
|
set borderColor(e) {
|
|
428
|
-
|
|
428
|
+
y(this, "border-color", e);
|
|
429
429
|
}
|
|
430
430
|
get borderSide() {
|
|
431
431
|
return this.getAttribute("border-side");
|
|
432
432
|
}
|
|
433
433
|
set borderSide(e) {
|
|
434
|
-
|
|
434
|
+
y(this, "border-side", e);
|
|
435
435
|
}
|
|
436
436
|
get borderSideMobile() {
|
|
437
437
|
return this.getAttribute("border-side--mobile");
|
|
438
438
|
}
|
|
439
439
|
set borderSideMobile(e) {
|
|
440
|
-
|
|
440
|
+
y(this, "border-side--mobile", e);
|
|
441
441
|
}
|
|
442
442
|
get borderSideTablet() {
|
|
443
443
|
return this.getAttribute("border-side--tablet");
|
|
444
444
|
}
|
|
445
445
|
set borderSideTablet(e) {
|
|
446
|
-
|
|
446
|
+
y(this, "border-side--tablet", e);
|
|
447
447
|
}
|
|
448
448
|
get borderSideLaptop() {
|
|
449
449
|
return this.getAttribute("border-side--laptop");
|
|
450
450
|
}
|
|
451
451
|
set borderSideLaptop(e) {
|
|
452
|
-
|
|
452
|
+
y(this, "border-side--laptop", e);
|
|
453
453
|
}
|
|
454
454
|
get borderRadius() {
|
|
455
455
|
return this.getAttribute("border-radius");
|
|
456
456
|
}
|
|
457
457
|
set borderRadius(e) {
|
|
458
|
-
|
|
458
|
+
y(this, "border-radius", e);
|
|
459
459
|
}
|
|
460
460
|
get noBorderRadius() {
|
|
461
461
|
return this.getAttribute("no-border-radius");
|
|
462
462
|
}
|
|
463
463
|
set noBorderRadius(e) {
|
|
464
|
-
|
|
464
|
+
y(this, "no-border-radius", e);
|
|
465
465
|
}
|
|
466
466
|
get noBorderRadiusMobile() {
|
|
467
467
|
return this.getAttribute("no-border-radius--mobile");
|
|
468
468
|
}
|
|
469
469
|
set noBorderRadiusMobile(e) {
|
|
470
|
-
|
|
470
|
+
y(this, "no-border-radius--mobile", e);
|
|
471
471
|
}
|
|
472
472
|
get noBorderRadiusTablet() {
|
|
473
473
|
return this.getAttribute("no-border-radius--tablet");
|
|
474
474
|
}
|
|
475
475
|
set noBorderRadiusTablet(e) {
|
|
476
|
-
|
|
476
|
+
y(this, "no-border-radius--tablet", e);
|
|
477
477
|
}
|
|
478
478
|
get noBorderRadiusLaptop() {
|
|
479
479
|
return this.getAttribute("no-border-radius--laptop");
|
|
480
480
|
}
|
|
481
481
|
set noBorderRadiusLaptop(e) {
|
|
482
|
-
|
|
482
|
+
y(this, "no-border-radius--laptop", e);
|
|
483
483
|
}
|
|
484
484
|
get backgroundColor() {
|
|
485
485
|
return this.getAttribute("background-color");
|
|
486
486
|
}
|
|
487
487
|
set backgroundColor(e) {
|
|
488
|
-
|
|
488
|
+
y(this, "background-color", e);
|
|
489
489
|
}
|
|
490
490
|
get backgroundColorMobile() {
|
|
491
491
|
return this.getAttribute("background-color--mobile");
|
|
492
492
|
}
|
|
493
493
|
set backgroundColorMobile(e) {
|
|
494
|
-
|
|
494
|
+
y(this, "background-color--mobile", e);
|
|
495
495
|
}
|
|
496
496
|
get backgroundColorTablet() {
|
|
497
497
|
return this.getAttribute("background-color--tablet");
|
|
498
498
|
}
|
|
499
499
|
set backgroundColorTablet(e) {
|
|
500
|
-
|
|
500
|
+
y(this, "background-color--tablet", e);
|
|
501
501
|
}
|
|
502
502
|
get backgroundColorLaptop() {
|
|
503
503
|
return this.getAttribute("background-color--laptop");
|
|
504
504
|
}
|
|
505
505
|
set backgroundColorLaptop(e) {
|
|
506
|
-
|
|
506
|
+
y(this, "background-color--laptop", e);
|
|
507
507
|
}
|
|
508
508
|
get gradient() {
|
|
509
509
|
return this.getAttribute("background-gradient");
|
|
510
510
|
}
|
|
511
511
|
set gradient(e) {
|
|
512
|
-
|
|
512
|
+
y(this, "background-gradient", e);
|
|
513
513
|
}
|
|
514
514
|
get gradientMobile() {
|
|
515
515
|
return this.getAttribute("background-gradient--mobile");
|
|
516
516
|
}
|
|
517
517
|
set gradientMobile(e) {
|
|
518
|
-
|
|
518
|
+
y(this, "background-gradient--mobile", e);
|
|
519
519
|
}
|
|
520
520
|
get gradientTablet() {
|
|
521
521
|
return this.getAttribute("background-gradient--tablet");
|
|
522
522
|
}
|
|
523
523
|
set gradientTablet(e) {
|
|
524
|
-
|
|
524
|
+
y(this, "background-gradient--tablet", e);
|
|
525
525
|
}
|
|
526
526
|
get gradientLaptop() {
|
|
527
527
|
return this.getAttribute("background-gradient--laptop");
|
|
528
528
|
}
|
|
529
529
|
set gradientLaptop(e) {
|
|
530
|
-
|
|
530
|
+
y(this, "background-gradient--laptop", e);
|
|
531
531
|
}
|
|
532
532
|
get backgroundImage() {
|
|
533
533
|
return this.getAttribute("background-image");
|
|
534
534
|
}
|
|
535
535
|
set backgroundImage(e) {
|
|
536
|
-
|
|
536
|
+
y(this, "background-image", e);
|
|
537
537
|
}
|
|
538
538
|
get backgroundImageMobile() {
|
|
539
539
|
return this.getAttribute("background-image--mobile");
|
|
540
540
|
}
|
|
541
541
|
set backgroundImageMobile(e) {
|
|
542
|
-
|
|
542
|
+
y(this, "background-image--mobile", e);
|
|
543
543
|
}
|
|
544
544
|
get backgroundImageTablet() {
|
|
545
545
|
return this.getAttribute("background-image--tablet");
|
|
546
546
|
}
|
|
547
547
|
set backgroundImageTablet(e) {
|
|
548
|
-
|
|
548
|
+
y(this, "background-image--tablet", e);
|
|
549
549
|
}
|
|
550
550
|
get backgroundImageLaptop() {
|
|
551
551
|
return this.getAttribute("background-image--laptop");
|
|
552
552
|
}
|
|
553
553
|
set backgroundImageLaptop(e) {
|
|
554
|
-
|
|
554
|
+
y(this, "background-image--laptop", e);
|
|
555
555
|
}
|
|
556
556
|
get backgroundSize() {
|
|
557
557
|
return this.getAttribute("background-size");
|
|
558
558
|
}
|
|
559
559
|
set backgroundSize(e) {
|
|
560
|
-
|
|
560
|
+
y(this, "background-size", e);
|
|
561
561
|
}
|
|
562
562
|
get backgroundPosition() {
|
|
563
563
|
return this.getAttribute("background-position");
|
|
564
564
|
}
|
|
565
565
|
set backgroundPosition(e) {
|
|
566
|
-
|
|
566
|
+
y(this, "background-position", e);
|
|
567
567
|
}
|
|
568
568
|
get boxShadow() {
|
|
569
569
|
return this.getAttribute("box-shadow");
|
|
570
570
|
}
|
|
571
571
|
set boxShadow(e) {
|
|
572
|
-
|
|
572
|
+
y(this, "box-shadow", e);
|
|
573
573
|
}
|
|
574
574
|
get anchorOffset() {
|
|
575
575
|
return this.getAttribute("anchor-offset");
|
|
576
576
|
}
|
|
577
577
|
set anchorOffset(e) {
|
|
578
|
-
|
|
578
|
+
y(this, "anchor-offset", e);
|
|
579
579
|
}
|
|
580
580
|
get anchorSpacing() {
|
|
581
581
|
return this.getAttribute("anchor-spacing");
|
|
582
582
|
}
|
|
583
583
|
set anchorSpacing(e) {
|
|
584
|
-
|
|
584
|
+
y(this, "anchor-spacing", e);
|
|
585
585
|
}
|
|
586
586
|
get inverted() {
|
|
587
587
|
return this.hasAttribute("inverted");
|
|
@@ -593,37 +593,37 @@ var C = [
|
|
|
593
593
|
return this.getAttribute("subgrid-rows");
|
|
594
594
|
}
|
|
595
595
|
set subgridRows(e) {
|
|
596
|
-
|
|
596
|
+
y(this, "subgrid-rows", e);
|
|
597
597
|
}
|
|
598
598
|
get subgridGap() {
|
|
599
599
|
return this.getAttribute("subgrid-gap");
|
|
600
600
|
}
|
|
601
601
|
set subgridGap(e) {
|
|
602
|
-
|
|
602
|
+
y(this, "subgrid-gap", e);
|
|
603
603
|
}
|
|
604
604
|
get subgridGapMobile() {
|
|
605
605
|
return this.getAttribute("subgrid-gap--mobile");
|
|
606
606
|
}
|
|
607
607
|
set subgridGapMobile(e) {
|
|
608
|
-
|
|
608
|
+
y(this, "subgrid-gap--mobile", e);
|
|
609
609
|
}
|
|
610
610
|
get subgridGapTablet() {
|
|
611
611
|
return this.getAttribute("subgrid-gap--tablet");
|
|
612
612
|
}
|
|
613
613
|
set subgridGapTablet(e) {
|
|
614
|
-
|
|
614
|
+
y(this, "subgrid-gap--tablet", e);
|
|
615
615
|
}
|
|
616
616
|
get subgridGapLaptop() {
|
|
617
617
|
return this.getAttribute("subgrid-gap--laptop");
|
|
618
618
|
}
|
|
619
619
|
set subgridGapLaptop(e) {
|
|
620
|
-
|
|
620
|
+
y(this, "subgrid-gap--laptop", e);
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
623
|
+
customElements.get("px-container") || customElements.define("px-container", te);
|
|
624
624
|
//#endregion
|
|
625
625
|
//#region ../Layout/src/Stack.css?inline
|
|
626
|
-
var k = ":host{--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;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{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;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);width:100%;height:100%;overflow-x:var(--overflow-x-all);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop,var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", A = new CSSStyleSheet();
|
|
626
|
+
var k = ":host{--flex-min-width--mobile-value:auto;--flex-min-width--tablet-value:auto;--flex-min-width--laptop-value:auto;--flex-min-width--desktop-value:auto;--flex-max-width--mobile-value:none;--flex-max-width--tablet-value:none;--flex-max-width--laptop-value:none;--flex-max-width--desktop-value:none;min-width:var(--flex-min-width--mobile-value);max-width:var(--flex-max-width--mobile-value);--host-gap--mobile:var(--px-spacing-none-mobile);--host-gap--tablet:var(--px-spacing-none-tablet);--host-gap--laptop:var(--px-spacing-none-desktop);--host-gap--desktop:var(--px-spacing-none-desktop);--overflow-x-all:visible;--overflow-x-all-mobile:initial;--overflow-x-all-tablet:initial;--overflow-x-all-laptop:initial;--overflow-x-all-desktop:initial;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{--flex-direction--mobile-value:row;--flex-direction--tablet-value:row;--flex-direction--laptop-value:row;--flex-direction--desktop-value:row;--flex-gap--mobile-value:var(--px-spacing-none-mobile);--flex-gap--tablet-value:var(--px-spacing-none-tablet);--flex-gap--laptop-value:var(--px-spacing-none-desktop);--flex-gap--desktop-value:var(--px-spacing-none-desktop);--flex-align-items--mobile-value:stretch;--flex-align-items--tablet-value:stretch;--flex-align-items--laptop-value:stretch;--flex-align-items--desktop-value:stretch;--flex-justify-content--mobile-value:flex-start;--flex-justify-content--tablet-value:flex-start;--flex-justify-content--laptop-value:flex-start;--flex-justify-content--desktop-value:flex-start;--flex-wrap--mobile-value:nowrap;--flex-wrap--tablet-value:nowrap;--flex-wrap--laptop-value:nowrap;--flex-wrap--desktop-value:nowrap;--flex-overflow-y--mobile-value:visible;--flex-overflow-y--tablet-value:visible;--flex-overflow-y--laptop-value:visible;--flex-overflow-y--desktop-value:visible;--flex-max-height--mobile-value:none;--flex-max-height--tablet-value:none;--flex-max-height--laptop-value:none;--flex-max-height--desktop-value:none;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);width:100%;height:100%;overflow-x:var(--overflow-x-all);overflow-y:var(--flex-overflow-y--mobile-value);max-height:var(--flex-max-height--mobile-value);display:flex}@media screen and (width<=47.938rem){.flex-container{overflow-x:var(--overflow-x-all-mobile,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=48rem){:host{min-width:var(--flex-min-width--tablet-value);max-width:var(--flex-max-width--tablet-value)}.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);overflow-y:var(--flex-overflow-y--tablet-value);max-height:var(--flex-max-height--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media screen and (width>=48rem) and (width<=64rem){.flex-container{overflow-x:var(--overflow-x-all-tablet,var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media screen and (width>=64.0625rem){:host{min-width:var(--flex-min-width--laptop-value);max-width:var(--flex-max-width--laptop-value)}.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);overflow-y:var(--flex-overflow-y--laptop-value);max-height:var(--flex-max-height--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x=auto]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x=auto]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media screen and (width>=64.0625rem) and (width<=90rem){.flex-container{overflow-x:var(--overflow-x-all-laptop,var(--overflow-x-all))}}@media screen and (width>=90.0625rem){:host{min-width:var(--flex-min-width--desktop-value);max-width:var(--flex-max-width--desktop-value)}.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-y:var(--flex-overflow-y--desktop-value);max-height:var(--flex-max-height--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))}}:host(px-vstack) .flex-container{--flex-direction--mobile-value:column!important;--flex-direction--tablet-value:column!important;--flex-direction--laptop-value:column!important;--flex-direction--desktop-value:column!important}:host(px-hstack) .flex-container{--flex-direction--mobile-value:row!important;--flex-direction--tablet-value:row!important;--flex-direction--laptop-value:row!important;--flex-direction--desktop-value:row!important}", A = new CSSStyleSheet();
|
|
627
627
|
A.replaceSync(k);
|
|
628
628
|
var j = document.createElement("template");
|
|
629
629
|
j.innerHTML = "<div class=\"flex-container\"><slot></slot></div>";
|
|
@@ -704,7 +704,27 @@ var M = [
|
|
|
704
704
|
"overflow-x--mobile",
|
|
705
705
|
"overflow-x--tablet",
|
|
706
706
|
"overflow-x--laptop",
|
|
707
|
-
"overflow-x--desktop"
|
|
707
|
+
"overflow-x--desktop",
|
|
708
|
+
"overflow-y",
|
|
709
|
+
"overflow-y--mobile",
|
|
710
|
+
"overflow-y--tablet",
|
|
711
|
+
"overflow-y--laptop",
|
|
712
|
+
"overflow-y--desktop",
|
|
713
|
+
"max-height",
|
|
714
|
+
"max-height--mobile",
|
|
715
|
+
"max-height--tablet",
|
|
716
|
+
"max-height--laptop",
|
|
717
|
+
"max-height--desktop",
|
|
718
|
+
"min-width",
|
|
719
|
+
"min-width--mobile",
|
|
720
|
+
"min-width--tablet",
|
|
721
|
+
"min-width--laptop",
|
|
722
|
+
"min-width--desktop",
|
|
723
|
+
"max-width",
|
|
724
|
+
"max-width--mobile",
|
|
725
|
+
"max-width--tablet",
|
|
726
|
+
"max-width--laptop",
|
|
727
|
+
"max-width--desktop"
|
|
708
728
|
];
|
|
709
729
|
}
|
|
710
730
|
attributeChangedCallback(e, t, n) {
|
|
@@ -714,7 +734,7 @@ var M = [
|
|
|
714
734
|
case "gap--tablet":
|
|
715
735
|
case "gap--laptop":
|
|
716
736
|
case "gap--desktop":
|
|
717
|
-
this.updateFlexProperties(e, t, n,
|
|
737
|
+
this.updateFlexProperties(e, t, n, m);
|
|
718
738
|
break;
|
|
719
739
|
case "justify-content":
|
|
720
740
|
case "justify-content--mobile":
|
|
@@ -742,7 +762,31 @@ var M = [
|
|
|
742
762
|
case "direction--tablet":
|
|
743
763
|
case "direction--laptop":
|
|
744
764
|
case "direction--desktop":
|
|
745
|
-
this.updateFlexProperties(e, t, n, M);
|
|
765
|
+
this.updateFlexProperties(e, t, n, M), this.updateVerticalStyles();
|
|
766
|
+
break;
|
|
767
|
+
case "min-width":
|
|
768
|
+
case "min-width--mobile":
|
|
769
|
+
case "min-width--tablet":
|
|
770
|
+
case "min-width--laptop":
|
|
771
|
+
case "min-width--desktop":
|
|
772
|
+
case "max-width":
|
|
773
|
+
case "max-width--mobile":
|
|
774
|
+
case "max-width--tablet":
|
|
775
|
+
case "max-width--laptop":
|
|
776
|
+
case "max-width--desktop":
|
|
777
|
+
n && !CSS.supports(e.split("--")[0], n) && g(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateFlexProperties(e, t, n);
|
|
778
|
+
break;
|
|
779
|
+
case "overflow-y":
|
|
780
|
+
case "overflow-y--mobile":
|
|
781
|
+
case "overflow-y--tablet":
|
|
782
|
+
case "overflow-y--laptop":
|
|
783
|
+
case "overflow-y--desktop":
|
|
784
|
+
case "max-height":
|
|
785
|
+
case "max-height--mobile":
|
|
786
|
+
case "max-height--tablet":
|
|
787
|
+
case "max-height--laptop":
|
|
788
|
+
case "max-height--desktop":
|
|
789
|
+
n && !this.isValidVerticalValue(e, n) && g(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}.`), this.updateVerticalStyles();
|
|
746
790
|
break;
|
|
747
791
|
case "overflow-x":
|
|
748
792
|
case "overflow-x--mobile":
|
|
@@ -754,15 +798,27 @@ var M = [
|
|
|
754
798
|
default: super.attributeChangedCallback(e, t, n);
|
|
755
799
|
}
|
|
756
800
|
}
|
|
801
|
+
isValidVerticalValue(e, t) {
|
|
802
|
+
return e.startsWith("overflow-y") ? I.includes(t) : CSS.supports("max-height", t);
|
|
803
|
+
}
|
|
804
|
+
updateVerticalStyles() {
|
|
805
|
+
for (let e of t.breakpoints) {
|
|
806
|
+
let t = this.localName === "px-stack" && this.getAttribute(`direction--${e}`) || this.direction, n = t === "column" || t === "column-reverse";
|
|
807
|
+
for (let t of ["overflow-y", "max-height"]) {
|
|
808
|
+
let r = this.getAttribute(`${t}--${e}`) || this.getAttribute(t);
|
|
809
|
+
this.updateStyle(t, e, n && r && this.isValidVerticalValue(t, r) ? r : null);
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
}
|
|
757
813
|
updateOverflowX(e, t, n, r) {
|
|
758
|
-
if (!
|
|
759
|
-
|
|
814
|
+
if (!d(r, n)) {
|
|
815
|
+
g(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
760
816
|
return;
|
|
761
817
|
}
|
|
762
818
|
this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
|
|
763
819
|
}
|
|
764
820
|
updateFlexProperties(e, n, r, i) {
|
|
765
|
-
r !== null && !this.checkName(i, r) &&
|
|
821
|
+
i && r !== null && !this.checkName(i, r) && g(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
|
|
766
822
|
let a = e.indexOf("--");
|
|
767
823
|
if (a === -1) for (let n of t.breakpoints) this.getAttribute(`${e}--${n}`) || this.updateStyle(e, n, r, i);
|
|
768
824
|
else {
|
|
@@ -771,15 +827,15 @@ var M = [
|
|
|
771
827
|
}
|
|
772
828
|
}
|
|
773
829
|
updateStyle(e, t, n, r) {
|
|
774
|
-
let i = `--flex-${e}--${t}-value`, a = e === "gap";
|
|
775
|
-
if (!n) {
|
|
776
|
-
|
|
830
|
+
let i = `--flex-${e}--${t}-value`, a = e === "gap", o = e === "min-width" || e === "max-width", s = o ? this : this.$el;
|
|
831
|
+
if (o && n && !CSS.supports(e, n) && (n = null), !n) {
|
|
832
|
+
s.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
|
|
777
833
|
return;
|
|
778
834
|
}
|
|
779
835
|
if (a && r && r.includes(n)) {
|
|
780
836
|
let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
|
|
781
837
|
this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
|
|
782
|
-
} else
|
|
838
|
+
} else s.style.setProperty(i, n);
|
|
783
839
|
}
|
|
784
840
|
static {
|
|
785
841
|
this.breakpoints = [
|
|
@@ -793,181 +849,301 @@ var M = [
|
|
|
793
849
|
return this.getAttribute("direction") ?? "row";
|
|
794
850
|
}
|
|
795
851
|
set direction(e) {
|
|
796
|
-
|
|
852
|
+
y(this, "direction", e);
|
|
797
853
|
}
|
|
798
854
|
get directionMobile() {
|
|
799
855
|
return this.getAttribute("direction--mobile");
|
|
800
856
|
}
|
|
801
857
|
set directionMobile(e) {
|
|
802
|
-
|
|
858
|
+
y(this, "direction--mobile", e);
|
|
803
859
|
}
|
|
804
860
|
get directionTablet() {
|
|
805
861
|
return this.getAttribute("direction--tablet");
|
|
806
862
|
}
|
|
807
863
|
set directionTablet(e) {
|
|
808
|
-
|
|
864
|
+
y(this, "direction--tablet", e);
|
|
809
865
|
}
|
|
810
866
|
get directionLaptop() {
|
|
811
867
|
return this.getAttribute("direction--laptop");
|
|
812
868
|
}
|
|
813
869
|
set directionLaptop(e) {
|
|
814
|
-
|
|
870
|
+
y(this, "direction--laptop", e);
|
|
815
871
|
}
|
|
816
872
|
get directionDesktop() {
|
|
817
873
|
return this.getAttribute("direction--desktop");
|
|
818
874
|
}
|
|
819
875
|
set directionDesktop(e) {
|
|
820
|
-
|
|
876
|
+
y(this, "direction--desktop", e);
|
|
821
877
|
}
|
|
822
878
|
get gap() {
|
|
823
879
|
return this.getAttribute("gap") ?? "none";
|
|
824
880
|
}
|
|
825
881
|
set gap(e) {
|
|
826
|
-
|
|
882
|
+
y(this, "gap", e);
|
|
827
883
|
}
|
|
828
884
|
get gapMobile() {
|
|
829
885
|
return this.getAttribute("gap--mobile");
|
|
830
886
|
}
|
|
831
887
|
set gapMobile(e) {
|
|
832
|
-
|
|
888
|
+
y(this, "gap--mobile", e);
|
|
833
889
|
}
|
|
834
890
|
get gapTablet() {
|
|
835
891
|
return this.getAttribute("gap--tablet");
|
|
836
892
|
}
|
|
837
893
|
set gapTablet(e) {
|
|
838
|
-
|
|
894
|
+
y(this, "gap--tablet", e);
|
|
839
895
|
}
|
|
840
896
|
get gapLaptop() {
|
|
841
897
|
return this.getAttribute("gap--laptop");
|
|
842
898
|
}
|
|
843
899
|
set gapLaptop(e) {
|
|
844
|
-
|
|
900
|
+
y(this, "gap--laptop", e);
|
|
845
901
|
}
|
|
846
902
|
get gapDesktop() {
|
|
847
903
|
return this.getAttribute("gap--desktop");
|
|
848
904
|
}
|
|
849
905
|
set gapDesktop(e) {
|
|
850
|
-
|
|
906
|
+
y(this, "gap--desktop", e);
|
|
851
907
|
}
|
|
852
908
|
get justifyContent() {
|
|
853
909
|
return this.getAttribute("justify-content") ?? "flex-start";
|
|
854
910
|
}
|
|
855
911
|
set justifyContent(e) {
|
|
856
|
-
|
|
912
|
+
y(this, "justify-content", e);
|
|
857
913
|
}
|
|
858
914
|
get justifyContentMobile() {
|
|
859
915
|
return this.getAttribute("justify-content--mobile");
|
|
860
916
|
}
|
|
861
917
|
set justifyContentMobile(e) {
|
|
862
|
-
|
|
918
|
+
y(this, "justify-content--mobile", e);
|
|
863
919
|
}
|
|
864
920
|
get justifyContentTablet() {
|
|
865
921
|
return this.getAttribute("justify-content--tablet");
|
|
866
922
|
}
|
|
867
923
|
set justifyContentTablet(e) {
|
|
868
|
-
|
|
924
|
+
y(this, "justify-content--tablet", e);
|
|
869
925
|
}
|
|
870
926
|
get justifyContentLaptop() {
|
|
871
927
|
return this.getAttribute("justify-content--laptop");
|
|
872
928
|
}
|
|
873
929
|
set justifyContentLaptop(e) {
|
|
874
|
-
|
|
930
|
+
y(this, "justify-content--laptop", e);
|
|
875
931
|
}
|
|
876
932
|
get justifyContentDesktop() {
|
|
877
933
|
return this.getAttribute("justify-content--desktop");
|
|
878
934
|
}
|
|
879
935
|
set justifyContentDesktop(e) {
|
|
880
|
-
|
|
936
|
+
y(this, "justify-content--desktop", e);
|
|
881
937
|
}
|
|
882
938
|
get alignItems() {
|
|
883
939
|
return this.getAttribute("align-items") ?? "stretch";
|
|
884
940
|
}
|
|
885
941
|
set alignItems(e) {
|
|
886
|
-
|
|
942
|
+
y(this, "align-items", e);
|
|
887
943
|
}
|
|
888
944
|
get alignItemsMobile() {
|
|
889
945
|
return this.getAttribute("align-items--mobile");
|
|
890
946
|
}
|
|
891
947
|
set alignItemsMobile(e) {
|
|
892
|
-
|
|
948
|
+
y(this, "align-items--mobile", e);
|
|
893
949
|
}
|
|
894
950
|
get alignItemsTablet() {
|
|
895
951
|
return this.getAttribute("align-items--tablet");
|
|
896
952
|
}
|
|
897
953
|
set alignItemsTablet(e) {
|
|
898
|
-
|
|
954
|
+
y(this, "align-items--tablet", e);
|
|
899
955
|
}
|
|
900
956
|
get alignItemsLaptop() {
|
|
901
957
|
return this.getAttribute("align-items--laptop");
|
|
902
958
|
}
|
|
903
959
|
set alignItemsLaptop(e) {
|
|
904
|
-
|
|
960
|
+
y(this, "align-items--laptop", e);
|
|
905
961
|
}
|
|
906
962
|
get alignItemsDesktop() {
|
|
907
963
|
return this.getAttribute("align-items--desktop");
|
|
908
964
|
}
|
|
909
965
|
set alignItemsDesktop(e) {
|
|
910
|
-
|
|
966
|
+
y(this, "align-items--desktop", e);
|
|
911
967
|
}
|
|
912
968
|
get wrap() {
|
|
913
969
|
return this.getAttribute("wrap") ?? "nowrap";
|
|
914
970
|
}
|
|
915
971
|
set wrap(e) {
|
|
916
|
-
|
|
972
|
+
y(this, "wrap", e);
|
|
917
973
|
}
|
|
918
974
|
get wrapMobile() {
|
|
919
975
|
return this.getAttribute("wrap--mobile");
|
|
920
976
|
}
|
|
921
977
|
set wrapMobile(e) {
|
|
922
|
-
|
|
978
|
+
y(this, "wrap--mobile", e);
|
|
923
979
|
}
|
|
924
980
|
get wrapTablet() {
|
|
925
981
|
return this.getAttribute("wrap--tablet");
|
|
926
982
|
}
|
|
927
983
|
set wrapTablet(e) {
|
|
928
|
-
|
|
984
|
+
y(this, "wrap--tablet", e);
|
|
929
985
|
}
|
|
930
986
|
get wrapLaptop() {
|
|
931
987
|
return this.getAttribute("wrap--laptop");
|
|
932
988
|
}
|
|
933
989
|
set wrapLaptop(e) {
|
|
934
|
-
|
|
990
|
+
y(this, "wrap--laptop", e);
|
|
935
991
|
}
|
|
936
992
|
get wrapDesktop() {
|
|
937
993
|
return this.getAttribute("wrap--desktop");
|
|
938
994
|
}
|
|
939
995
|
set wrapDesktop(e) {
|
|
940
|
-
|
|
996
|
+
y(this, "wrap--desktop", e);
|
|
941
997
|
}
|
|
942
998
|
get overflowX() {
|
|
943
999
|
return this.getAttribute("overflow-x") ?? "visible";
|
|
944
1000
|
}
|
|
945
1001
|
set overflowX(e) {
|
|
946
|
-
|
|
1002
|
+
y(this, "overflow-x", e);
|
|
947
1003
|
}
|
|
948
1004
|
get overflowXMobile() {
|
|
949
1005
|
return this.getAttribute("overflow-x--mobile");
|
|
950
1006
|
}
|
|
951
1007
|
set overflowXMobile(e) {
|
|
952
|
-
|
|
1008
|
+
y(this, "overflow-x--mobile", e);
|
|
953
1009
|
}
|
|
954
1010
|
get overflowXTablet() {
|
|
955
1011
|
return this.getAttribute("overflow-x--tablet");
|
|
956
1012
|
}
|
|
957
1013
|
set overflowXTablet(e) {
|
|
958
|
-
|
|
1014
|
+
y(this, "overflow-x--tablet", e);
|
|
959
1015
|
}
|
|
960
1016
|
get overflowXLaptop() {
|
|
961
1017
|
return this.getAttribute("overflow-x--laptop");
|
|
962
1018
|
}
|
|
963
1019
|
set overflowXLaptop(e) {
|
|
964
|
-
|
|
1020
|
+
y(this, "overflow-x--laptop", e);
|
|
965
1021
|
}
|
|
966
1022
|
get overflowXDesktop() {
|
|
967
1023
|
return this.getAttribute("overflow-x--desktop");
|
|
968
1024
|
}
|
|
969
1025
|
set overflowXDesktop(e) {
|
|
970
|
-
|
|
1026
|
+
y(this, "overflow-x--desktop", e);
|
|
1027
|
+
}
|
|
1028
|
+
get overflowY() {
|
|
1029
|
+
return this.getAttribute("overflow-y") ?? "visible";
|
|
1030
|
+
}
|
|
1031
|
+
set overflowY(e) {
|
|
1032
|
+
y(this, "overflow-y", e);
|
|
1033
|
+
}
|
|
1034
|
+
get overflowYMobile() {
|
|
1035
|
+
return this.getAttribute("overflow-y--mobile");
|
|
1036
|
+
}
|
|
1037
|
+
set overflowYMobile(e) {
|
|
1038
|
+
y(this, "overflow-y--mobile", e);
|
|
1039
|
+
}
|
|
1040
|
+
get overflowYTablet() {
|
|
1041
|
+
return this.getAttribute("overflow-y--tablet");
|
|
1042
|
+
}
|
|
1043
|
+
set overflowYTablet(e) {
|
|
1044
|
+
y(this, "overflow-y--tablet", e);
|
|
1045
|
+
}
|
|
1046
|
+
get overflowYLaptop() {
|
|
1047
|
+
return this.getAttribute("overflow-y--laptop");
|
|
1048
|
+
}
|
|
1049
|
+
set overflowYLaptop(e) {
|
|
1050
|
+
y(this, "overflow-y--laptop", e);
|
|
1051
|
+
}
|
|
1052
|
+
get overflowYDesktop() {
|
|
1053
|
+
return this.getAttribute("overflow-y--desktop");
|
|
1054
|
+
}
|
|
1055
|
+
set overflowYDesktop(e) {
|
|
1056
|
+
y(this, "overflow-y--desktop", e);
|
|
1057
|
+
}
|
|
1058
|
+
get maxHeight() {
|
|
1059
|
+
return this.getAttribute("max-height") ?? "none";
|
|
1060
|
+
}
|
|
1061
|
+
set maxHeight(e) {
|
|
1062
|
+
y(this, "max-height", e);
|
|
1063
|
+
}
|
|
1064
|
+
get maxHeightMobile() {
|
|
1065
|
+
return this.getAttribute("max-height--mobile");
|
|
1066
|
+
}
|
|
1067
|
+
set maxHeightMobile(e) {
|
|
1068
|
+
y(this, "max-height--mobile", e);
|
|
1069
|
+
}
|
|
1070
|
+
get maxHeightTablet() {
|
|
1071
|
+
return this.getAttribute("max-height--tablet");
|
|
1072
|
+
}
|
|
1073
|
+
set maxHeightTablet(e) {
|
|
1074
|
+
y(this, "max-height--tablet", e);
|
|
1075
|
+
}
|
|
1076
|
+
get maxHeightLaptop() {
|
|
1077
|
+
return this.getAttribute("max-height--laptop");
|
|
1078
|
+
}
|
|
1079
|
+
set maxHeightLaptop(e) {
|
|
1080
|
+
y(this, "max-height--laptop", e);
|
|
1081
|
+
}
|
|
1082
|
+
get maxHeightDesktop() {
|
|
1083
|
+
return this.getAttribute("max-height--desktop");
|
|
1084
|
+
}
|
|
1085
|
+
set maxHeightDesktop(e) {
|
|
1086
|
+
y(this, "max-height--desktop", e);
|
|
1087
|
+
}
|
|
1088
|
+
get minWidth() {
|
|
1089
|
+
return this.getAttribute("min-width") ?? "auto";
|
|
1090
|
+
}
|
|
1091
|
+
set minWidth(e) {
|
|
1092
|
+
y(this, "min-width", e);
|
|
1093
|
+
}
|
|
1094
|
+
get minWidthMobile() {
|
|
1095
|
+
return this.getAttribute("min-width--mobile");
|
|
1096
|
+
}
|
|
1097
|
+
set minWidthMobile(e) {
|
|
1098
|
+
y(this, "min-width--mobile", e);
|
|
1099
|
+
}
|
|
1100
|
+
get minWidthTablet() {
|
|
1101
|
+
return this.getAttribute("min-width--tablet");
|
|
1102
|
+
}
|
|
1103
|
+
set minWidthTablet(e) {
|
|
1104
|
+
y(this, "min-width--tablet", e);
|
|
1105
|
+
}
|
|
1106
|
+
get minWidthLaptop() {
|
|
1107
|
+
return this.getAttribute("min-width--laptop");
|
|
1108
|
+
}
|
|
1109
|
+
set minWidthLaptop(e) {
|
|
1110
|
+
y(this, "min-width--laptop", e);
|
|
1111
|
+
}
|
|
1112
|
+
get minWidthDesktop() {
|
|
1113
|
+
return this.getAttribute("min-width--desktop");
|
|
1114
|
+
}
|
|
1115
|
+
set minWidthDesktop(e) {
|
|
1116
|
+
y(this, "min-width--desktop", e);
|
|
1117
|
+
}
|
|
1118
|
+
get maxWidth() {
|
|
1119
|
+
return this.getAttribute("max-width") ?? "none";
|
|
1120
|
+
}
|
|
1121
|
+
set maxWidth(e) {
|
|
1122
|
+
y(this, "max-width", e);
|
|
1123
|
+
}
|
|
1124
|
+
get maxWidthMobile() {
|
|
1125
|
+
return this.getAttribute("max-width--mobile");
|
|
1126
|
+
}
|
|
1127
|
+
set maxWidthMobile(e) {
|
|
1128
|
+
y(this, "max-width--mobile", e);
|
|
1129
|
+
}
|
|
1130
|
+
get maxWidthTablet() {
|
|
1131
|
+
return this.getAttribute("max-width--tablet");
|
|
1132
|
+
}
|
|
1133
|
+
set maxWidthTablet(e) {
|
|
1134
|
+
y(this, "max-width--tablet", e);
|
|
1135
|
+
}
|
|
1136
|
+
get maxWidthLaptop() {
|
|
1137
|
+
return this.getAttribute("max-width--laptop");
|
|
1138
|
+
}
|
|
1139
|
+
set maxWidthLaptop(e) {
|
|
1140
|
+
y(this, "max-width--laptop", e);
|
|
1141
|
+
}
|
|
1142
|
+
get maxWidthDesktop() {
|
|
1143
|
+
return this.getAttribute("max-width--desktop");
|
|
1144
|
+
}
|
|
1145
|
+
set maxWidthDesktop(e) {
|
|
1146
|
+
y(this, "max-width--desktop", e);
|
|
971
1147
|
}
|
|
972
1148
|
get $el() {
|
|
973
1149
|
return this.shadowRoot.firstElementChild;
|
|
@@ -979,7 +1155,7 @@ var R = (e) => e === "direction" || e.startsWith("direction--"), z = class exten
|
|
|
979
1155
|
return "column";
|
|
980
1156
|
}
|
|
981
1157
|
set direction(e) {
|
|
982
|
-
|
|
1158
|
+
y(this, "direction", e);
|
|
983
1159
|
}
|
|
984
1160
|
attributeChangedCallback(e, t, n) {
|
|
985
1161
|
R(e) || super.attributeChangedCallback(e, t, n);
|
|
@@ -991,7 +1167,7 @@ var B = class extends L {
|
|
|
991
1167
|
return "row";
|
|
992
1168
|
}
|
|
993
1169
|
set direction(e) {
|
|
994
|
-
|
|
1170
|
+
y(this, "direction", e);
|
|
995
1171
|
}
|
|
996
1172
|
attributeChangedCallback(e, t, n) {
|
|
997
1173
|
R(e) || super.attributeChangedCallback(e, t, n);
|
|
@@ -1146,7 +1322,7 @@ var W = class extends n {
|
|
|
1146
1322
|
</px-container>
|
|
1147
1323
|
</px-vstack>
|
|
1148
1324
|
</px-container>
|
|
1149
|
-
`,
|
|
1325
|
+
`, b(this.shadowRoot, this.template());
|
|
1150
1326
|
}
|
|
1151
1327
|
static get observedAttributes() {
|
|
1152
1328
|
return [
|
|
@@ -1237,16 +1413,16 @@ customElements.get("px-page") === void 0 && customElements.define("px-page", W);
|
|
|
1237
1413
|
//#endregion
|
|
1238
1414
|
//#region ../Section/src/Section.ts
|
|
1239
1415
|
var G = new CSSStyleSheet();
|
|
1240
|
-
G.replaceSync(
|
|
1416
|
+
G.replaceSync(S);
|
|
1241
1417
|
var K = class e extends n {
|
|
1242
1418
|
static {
|
|
1243
|
-
this.template =
|
|
1419
|
+
this.template = f("<px-container border-radius=\"none\" padding-inline=\"none\"><div class=\"content-wrapper\"><px-vstack gap=\"heading-to-content\"><slot name=\"heading\"></slot><px-vstack gap=\"none\"><slot></slot></px-vstack></px-vstack></div></px-container><div class=\"content-wrapper\"><slot name=\"overlap\"></slot></div>");
|
|
1244
1420
|
}
|
|
1245
1421
|
constructor() {
|
|
1246
|
-
super(G),
|
|
1422
|
+
super(G), b(this.shadowRoot, e.template);
|
|
1247
1423
|
}
|
|
1248
1424
|
connectedCallback() {
|
|
1249
|
-
|
|
1425
|
+
y(this.$container, "background-color", this.backgroundColor), !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), this.setHeadingSpacing = this.setHeadingSpacing.bind(this), this.setHeadingSpacing(), this.$slotHeading?.addEventListener("slotchange", this.setHeadingSpacing), this.toggleOverlapSpacing = this.toggleOverlapSpacing.bind(this), this.toggleOverlapSpacing(), this.$slotOverlap?.addEventListener("slotchange", this.toggleOverlapSpacing);
|
|
1250
1426
|
}
|
|
1251
1427
|
static get observedAttributes() {
|
|
1252
1428
|
return [
|
|
@@ -1396,151 +1572,151 @@ var K = class e extends n {
|
|
|
1396
1572
|
return this.getAttribute("background-color") || "none";
|
|
1397
1573
|
}
|
|
1398
1574
|
set backgroundColor(e) {
|
|
1399
|
-
|
|
1575
|
+
y(this, "background-color", e);
|
|
1400
1576
|
}
|
|
1401
1577
|
get gradient() {
|
|
1402
1578
|
return this.getAttribute("background-gradient");
|
|
1403
1579
|
}
|
|
1404
1580
|
set gradient(e) {
|
|
1405
|
-
|
|
1581
|
+
y(this, "background-gradient", e);
|
|
1406
1582
|
}
|
|
1407
1583
|
get backgroundImage() {
|
|
1408
1584
|
return this.getAttribute("background-image");
|
|
1409
1585
|
}
|
|
1410
1586
|
set backgroundImage(e) {
|
|
1411
|
-
|
|
1587
|
+
y(this, "background-image", e);
|
|
1412
1588
|
}
|
|
1413
1589
|
get backgroundImageMobile() {
|
|
1414
1590
|
return this.getAttribute("background-image--mobile");
|
|
1415
1591
|
}
|
|
1416
1592
|
set backgroundImageMobile(e) {
|
|
1417
|
-
|
|
1593
|
+
y(this, "background-image--mobile", e);
|
|
1418
1594
|
}
|
|
1419
1595
|
get backgroundImageTablet() {
|
|
1420
1596
|
return this.getAttribute("background-image--tablet");
|
|
1421
1597
|
}
|
|
1422
1598
|
set backgroundImageTablet(e) {
|
|
1423
|
-
|
|
1599
|
+
y(this, "background-image--tablet", e);
|
|
1424
1600
|
}
|
|
1425
1601
|
get backgroundImageLaptop() {
|
|
1426
1602
|
return this.getAttribute("background-image--laptop");
|
|
1427
1603
|
}
|
|
1428
1604
|
set backgroundImageLaptop(e) {
|
|
1429
|
-
|
|
1605
|
+
y(this, "background-image--laptop", e);
|
|
1430
1606
|
}
|
|
1431
1607
|
get backgroundSize() {
|
|
1432
1608
|
return this.getAttribute("background-size");
|
|
1433
1609
|
}
|
|
1434
1610
|
set backgroundSize(e) {
|
|
1435
|
-
|
|
1611
|
+
y(this, "background-size", e);
|
|
1436
1612
|
}
|
|
1437
1613
|
get backgroundPosition() {
|
|
1438
1614
|
return this.getAttribute("background-position");
|
|
1439
1615
|
}
|
|
1440
1616
|
set backgroundPosition(e) {
|
|
1441
|
-
|
|
1617
|
+
y(this, "background-position", e);
|
|
1442
1618
|
}
|
|
1443
1619
|
get paddingBlock() {
|
|
1444
1620
|
return this.getAttribute("padding-block");
|
|
1445
1621
|
}
|
|
1446
1622
|
set paddingBlock(e) {
|
|
1447
|
-
|
|
1623
|
+
y(this, "padding-block", e);
|
|
1448
1624
|
}
|
|
1449
1625
|
get paddingTop() {
|
|
1450
1626
|
return this.getAttribute("padding-top");
|
|
1451
1627
|
}
|
|
1452
1628
|
set paddingTop(e) {
|
|
1453
|
-
|
|
1629
|
+
y(this, "padding-top", e);
|
|
1454
1630
|
}
|
|
1455
1631
|
get paddingBottom() {
|
|
1456
1632
|
return this.getAttribute("padding-bottom");
|
|
1457
1633
|
}
|
|
1458
1634
|
set paddingBottom(e) {
|
|
1459
|
-
|
|
1635
|
+
y(this, "padding-bottom", e);
|
|
1460
1636
|
}
|
|
1461
1637
|
get paddingBlockMobile() {
|
|
1462
1638
|
return this.getAttribute("padding-block--mobile");
|
|
1463
1639
|
}
|
|
1464
1640
|
set paddingBlockMobile(e) {
|
|
1465
|
-
|
|
1641
|
+
y(this, "padding-block--mobile", e);
|
|
1466
1642
|
}
|
|
1467
1643
|
get paddingTopMobile() {
|
|
1468
1644
|
return this.getAttribute("padding-top--mobile");
|
|
1469
1645
|
}
|
|
1470
1646
|
set paddingTopMobile(e) {
|
|
1471
|
-
|
|
1647
|
+
y(this, "padding-top--mobile", e);
|
|
1472
1648
|
}
|
|
1473
1649
|
get paddingBottomMobile() {
|
|
1474
1650
|
return this.getAttribute("padding-bottom--mobile");
|
|
1475
1651
|
}
|
|
1476
1652
|
set paddingBottomMobile(e) {
|
|
1477
|
-
|
|
1653
|
+
y(this, "padding-bottom--mobile", e);
|
|
1478
1654
|
}
|
|
1479
1655
|
get paddingBlockTablet() {
|
|
1480
1656
|
return this.getAttribute("padding-block--tablet");
|
|
1481
1657
|
}
|
|
1482
1658
|
set paddingBlockTablet(e) {
|
|
1483
|
-
|
|
1659
|
+
y(this, "padding-block--tablet", e);
|
|
1484
1660
|
}
|
|
1485
1661
|
get paddingTopTablet() {
|
|
1486
1662
|
return this.getAttribute("padding-top--tablet");
|
|
1487
1663
|
}
|
|
1488
1664
|
set paddingTopTablet(e) {
|
|
1489
|
-
|
|
1665
|
+
y(this, "padding-top--tablet", e);
|
|
1490
1666
|
}
|
|
1491
1667
|
get paddingBottomTablet() {
|
|
1492
1668
|
return this.getAttribute("padding-bottom--tablet");
|
|
1493
1669
|
}
|
|
1494
1670
|
set paddingBottomTablet(e) {
|
|
1495
|
-
|
|
1671
|
+
y(this, "padding-bottom--tablet", e);
|
|
1496
1672
|
}
|
|
1497
1673
|
get paddingBlockLaptop() {
|
|
1498
1674
|
return this.getAttribute("padding-block--laptop");
|
|
1499
1675
|
}
|
|
1500
1676
|
set paddingBlockLaptop(e) {
|
|
1501
|
-
|
|
1677
|
+
y(this, "padding-block--laptop", e);
|
|
1502
1678
|
}
|
|
1503
1679
|
get paddingTopLaptop() {
|
|
1504
1680
|
return this.getAttribute("padding-top--laptop");
|
|
1505
1681
|
}
|
|
1506
1682
|
set paddingTopLaptop(e) {
|
|
1507
|
-
|
|
1683
|
+
y(this, "padding-top--laptop", e);
|
|
1508
1684
|
}
|
|
1509
1685
|
get paddingBottomLaptop() {
|
|
1510
1686
|
return this.getAttribute("padding-bottom--laptop");
|
|
1511
1687
|
}
|
|
1512
1688
|
set paddingBottomLaptop(e) {
|
|
1513
|
-
|
|
1689
|
+
y(this, "padding-bottom--laptop", e);
|
|
1514
1690
|
}
|
|
1515
1691
|
get border() {
|
|
1516
1692
|
return this.getAttribute("border");
|
|
1517
1693
|
}
|
|
1518
1694
|
set border(e) {
|
|
1519
|
-
|
|
1695
|
+
y(this, "border", e);
|
|
1520
1696
|
}
|
|
1521
1697
|
get borderSide() {
|
|
1522
1698
|
return this.getAttribute("border-side");
|
|
1523
1699
|
}
|
|
1524
1700
|
set borderSide(e) {
|
|
1525
|
-
|
|
1701
|
+
y(this, "border-side", e);
|
|
1526
1702
|
}
|
|
1527
1703
|
get borderSideMobile() {
|
|
1528
1704
|
return this.getAttribute("border-side--mobile");
|
|
1529
1705
|
}
|
|
1530
1706
|
set borderSideMobile(e) {
|
|
1531
|
-
|
|
1707
|
+
y(this, "border-side--mobile", e);
|
|
1532
1708
|
}
|
|
1533
1709
|
get borderSideTablet() {
|
|
1534
1710
|
return this.getAttribute("border-side--tablet");
|
|
1535
1711
|
}
|
|
1536
1712
|
set borderSideTablet(e) {
|
|
1537
|
-
|
|
1713
|
+
y(this, "border-side--tablet", e);
|
|
1538
1714
|
}
|
|
1539
1715
|
get borderSideLaptop() {
|
|
1540
1716
|
return this.getAttribute("border-side--laptop");
|
|
1541
1717
|
}
|
|
1542
1718
|
set borderSideLaptop(e) {
|
|
1543
|
-
|
|
1719
|
+
y(this, "border-side--laptop", e);
|
|
1544
1720
|
}
|
|
1545
1721
|
};
|
|
1546
1722
|
customElements.get("px-section") || customElements.define("px-section", K);
|
|
@@ -1576,15 +1752,18 @@ var Y = [
|
|
|
1576
1752
|
"end",
|
|
1577
1753
|
"center",
|
|
1578
1754
|
"stretch"
|
|
1579
|
-
], ne =
|
|
1755
|
+
], ne = p("gap", (e, t, n) => `:host([${e}${n ? `--${n}` : ""}='${t}']) .grid`, m, "px-spacing", "--grid-gap"), re = class e extends t {
|
|
1580
1756
|
static {
|
|
1581
|
-
this.template =
|
|
1757
|
+
this.template = f("<div class=\"grid\"><slot></slot></div>");
|
|
1582
1758
|
}
|
|
1583
1759
|
static {
|
|
1584
1760
|
this.nativeName = "div";
|
|
1585
1761
|
}
|
|
1762
|
+
static {
|
|
1763
|
+
this.nativeAttributes = {};
|
|
1764
|
+
}
|
|
1586
1765
|
constructor() {
|
|
1587
|
-
super(J, ne),
|
|
1766
|
+
super(J, ne), b(this.shadowRoot, e.template);
|
|
1588
1767
|
}
|
|
1589
1768
|
static get observedAttributes() {
|
|
1590
1769
|
return [
|
|
@@ -1655,7 +1834,7 @@ var Y = [
|
|
|
1655
1834
|
}
|
|
1656
1835
|
updateGap(e, t, n) {
|
|
1657
1836
|
if (!this.checkName(n, t)) {
|
|
1658
|
-
|
|
1837
|
+
g(`"${t}" is not a valid gap value for ${this.tagName.toLowerCase()}. Allowed values are: "${n.join("\", \"")}".`);
|
|
1659
1838
|
return;
|
|
1660
1839
|
}
|
|
1661
1840
|
let r = (e) => {
|
|
@@ -1664,7 +1843,7 @@ var Y = [
|
|
|
1664
1843
|
r(e), r(t);
|
|
1665
1844
|
}
|
|
1666
1845
|
updateAttribute(e, t, n, r) {
|
|
1667
|
-
this.checkName(r, n) ? e === "grid-cols" || e === "grid-cols--mobile" || e === "grid-cols--tablet" || e === "grid-cols--laptop" || e === "grid-cols--desktop" ? this.$el.style.setProperty(`--${e}`, n) : (t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`${e}-${t}`), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(`${e}-${n}`)) :
|
|
1846
|
+
this.checkName(r, n) ? e === "grid-cols" || e === "grid-cols--mobile" || e === "grid-cols--tablet" || e === "grid-cols--laptop" || e === "grid-cols--desktop" ? this.$el.style.setProperty(`--${e}`, n) : (t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`${e}-${t}`), n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(`${e}-${n}`)) : g(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
|
|
1668
1847
|
}
|
|
1669
1848
|
get gap() {
|
|
1670
1849
|
return this.getAttribute("gap");
|
|
@@ -1839,19 +2018,23 @@ customElements.get("px-grid") || customElements.define("px-grid", re);
|
|
|
1839
2018
|
//#endregion
|
|
1840
2019
|
//#region src/ContentHeader.ts
|
|
1841
2020
|
var Q = new CSSStyleSheet();
|
|
1842
|
-
Q.replaceSync(
|
|
2021
|
+
Q.replaceSync(x);
|
|
1843
2022
|
var $ = class e extends t {
|
|
1844
2023
|
static {
|
|
1845
|
-
this.template =
|
|
2024
|
+
this.template = f("<div class=\"content-header\"><div class=\"contrast-helper\"></div><px-section padding-block=\"l\"><px-grid gap=\"none\"><px-container padding=\"none\" border-radius=\"none\" background-color=\"none\"><div class=\"content-header-content\"><px-vstack gap=\"heading-to-subtitle\"><px-h1><slot></slot></px-h1><slot name=\"subtitle\"></slot></px-vstack><px-stack gap=\"s\" direction=\"row\" direction--mobile=\"column\"><slot name=\"patch\" shrink></slot><slot name=\"patch-description\"></slot></px-stack></div></px-container></px-grid><slot name=\"overlap\" slot=\"overlap\"></slot></px-section></div>");
|
|
1846
2025
|
}
|
|
1847
2026
|
static {
|
|
1848
2027
|
this.nativeName = "div";
|
|
1849
2028
|
}
|
|
2029
|
+
static {
|
|
2030
|
+
this.nativeAttributes = {};
|
|
2031
|
+
}
|
|
1850
2032
|
constructor() {
|
|
1851
|
-
super(Q),
|
|
2033
|
+
super(Q), b(this.shadowRoot, e.template);
|
|
1852
2034
|
}
|
|
1853
2035
|
static get observedAttributes() {
|
|
1854
2036
|
return [
|
|
2037
|
+
...super.observedAttributes,
|
|
1855
2038
|
"background-color",
|
|
1856
2039
|
"background-gradient",
|
|
1857
2040
|
"background-image",
|
|
@@ -1876,11 +2059,16 @@ var $ = class e extends t {
|
|
|
1876
2059
|
}
|
|
1877
2060
|
attributeChangedCallback(e, t, n) {
|
|
1878
2061
|
if (t !== n) switch (e) {
|
|
2062
|
+
case "contrast-helper-gradient":
|
|
2063
|
+
case "contrast-helper-overlay":
|
|
2064
|
+
case "min-height":
|
|
2065
|
+
this._forwardNativeAttribute(e, n);
|
|
2066
|
+
break;
|
|
1879
2067
|
case "background-color":
|
|
1880
2068
|
this.$section.backgroundColor = r.indexOf(n) > 0 ? n : "none";
|
|
1881
2069
|
break;
|
|
1882
2070
|
case "background-gradient":
|
|
1883
|
-
this.$section.gradient =
|
|
2071
|
+
this.$section.gradient = n === null ? null : h.indexOf(n) > 0 ? n : "none";
|
|
1884
2072
|
break;
|
|
1885
2073
|
case "background-image":
|
|
1886
2074
|
this.$section.backgroundImage = n;
|
|
@@ -1990,12 +2178,18 @@ var $ = class e extends t {
|
|
|
1990
2178
|
set backgroundColor(e) {
|
|
1991
2179
|
this._updateAttribute("background-color", e);
|
|
1992
2180
|
}
|
|
1993
|
-
get
|
|
2181
|
+
get backgroundGradient() {
|
|
1994
2182
|
return this.getAttribute("background-gradient");
|
|
1995
2183
|
}
|
|
1996
|
-
set
|
|
2184
|
+
set backgroundGradient(e) {
|
|
1997
2185
|
this._updateAttribute("background-gradient", e);
|
|
1998
2186
|
}
|
|
2187
|
+
get gradient() {
|
|
2188
|
+
return this.backgroundGradient;
|
|
2189
|
+
}
|
|
2190
|
+
set gradient(e) {
|
|
2191
|
+
this.backgroundGradient = e;
|
|
2192
|
+
}
|
|
1999
2193
|
get backgroundImage() {
|
|
2000
2194
|
return this.getAttribute("background-image");
|
|
2001
2195
|
}
|