@proximus/lavender-mega-dropdown 1.4.12-alpha.2 → 1.4.12-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +263 -254
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,10 +2,10 @@ var at = (s) => {
|
|
|
2
2
|
throw TypeError(s);
|
|
3
3
|
};
|
|
4
4
|
var I = (s, t, e) => t.has(s) || at("Cannot " + e);
|
|
5
|
-
var n = (s, t, e) => (I(s, t, "read from private field"), e ? e.call(s) : t.get(s)), c = (s, t, e) => t.has(s) ? at("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), k = (s, t, e,
|
|
5
|
+
var n = (s, t, e) => (I(s, t, "read from private field"), e ? e.call(s) : t.get(s)), c = (s, t, e) => t.has(s) ? at("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), k = (s, t, e, o) => (I(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e), j = (s, t, e) => (I(s, t, "access private method"), e);
|
|
6
6
|
import { PxElement as $, transferAccessibilityAttributes as pt, log as d, checkName as w, WrappedInteractiveStateController as bt, WithExtraAttributes as X, iconSizeValuesKC as _t, textalignValues as ct, colorValues as Z, headingValues as ht, cssTokenBreakpoints as h, paddingValues as u, gapValues as Wt, boxShadowValues as Ft, backgroundSizeValues as Gt, noBorderRadiusValues as Yt, borderRadiusValues as Xt, borderSideValues as Zt, borderValues as Kt, gradientValues as st, backgroundColorValues as P, borderColorValues as nt, fontweightValues as gt, fontsizeValues as ut } from "@proximus/lavender-common";
|
|
7
7
|
import "@proximus/lavender-layout";
|
|
8
|
-
const xt = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-primary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[disabled],.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown).loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn.secondary{color:var(--px-color-text-brand-default);background:var(--px-color-background-container-secondary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.secondary.loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-color-text-brand-default);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid transparent;padding:var(--px-padding-2xs-mobile) 0;gap:var(--px-spacing-xs-mobile)}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-size-m);height:var(--px-size-m);border-radius:var(--px-radius-pill);background:var(--px-color-background-container-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-mobile) var(--px-padding-s-mobile)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent;margin:0 -8px}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-mobile)}:is()[slot=before]{padding:0 var(--px-padding-2xs-mobile) 0 0}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-default)}.btn.tertiary.loading{color:var(--px-color-text-brand-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-size-m);height:var(--px-size-m);border-radius:var(--px-radius-pill);background:var(--px-color-background-state-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.actionable-tag{background:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-xs-mobile);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default)}.btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-none-default)}.btn.actionable-tag[disabled],.btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}.btn.header-dropdown,.btn.header-minimal-dropdown{display:flex;align-items:center;touch-action:manipulation}.btn.header-dropdown:after,.btn.header-minimal-dropdown:after{display:inline-block;content:"";width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}.btn.header-dropdown[aria-expanded=true]:after,.btn.header-minimal-dropdown[aria-expanded=true]:after{transform:rotate(180deg)}.btn.header-dropdown{justify-content:space-between;gap:var(--px-spacing-s-mobile);width:100%;color:var(--px-color-text-neutral-default);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-l-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);border-radius:var(--px-radius-main);background-color:var(--px-color-background-container-default-default)}.btn.header-minimal-dropdown{justify-content:flex-start;gap:var(--px-spacing-xs-mobile);color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);border:none;padding:0;border-radius:0;background:none}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}button.wrapper{all:unset;cursor:pointer}button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}button.wrapper[disabled],button.wrapper[aria-disabled=true]{cursor:default;pointer-events:none}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn:active:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-active-inverted);color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){color:var(--px-color-text-brand-default);background:var(--px-color-background-container-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown).loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),:host([inverted]) .btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.actionable-tag{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) .btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-none-inverted)}:host([inverted]) .btn.actionable-tag[disabled],:host([inverted]) .btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-default)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) button.wrapper:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn.header-minimal-dropdown{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.header-minimal-dropdown:after{color:var(--px-color-icon-brand-inverted)}@media screen and (max-width: 47.938rem){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media screen and (min-width: 48rem) and (max-width: 64rem){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media screen and (min-width: 48rem){button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline:var(--px-focus-outline-tablet) solid var(--px-color-border-focus-outline-default)}.btn{width:var(--button-extended--tablet, var(--button-extended, auto));font-size:var(--px-text-size-label-m-tablet);gap:var(--px-spacing-2xs-tablet)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}.btn.actionable-tag{padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet);gap:var(--px-spacing-xs-tablet)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){padding:var(--px-padding-xs-tablet) var(--px-padding-m-tablet)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-tablet) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-tablet) * -1)}.btn.secondary{padding:var(--px-padding-xs-tablet) var(--px-padding-m-tablet)}.btn.tertiary{padding:var(--px-padding-2xs-tablet) 0;gap:var(--px-spacing-xs-tablet)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-tablet) var(--px-padding-s-tablet)}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-tablet)}:is()[slot=before]{padding:0 var(--px-padding-2xs-tablet) 0 0}.btn.header-dropdown,.btn.header-minimal-dropdown{gap:var(--px-spacing-xs-tablet);font-size:var(--px-text-size-label-m-tablet)}.btn.header-dropdown{justify-content:flex-start;align-items:center;width:inherit;color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);border:none;padding:0;border-radius:0;background:none}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media screen and (min-width: 64.0625rem){button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline:var(--px-focus-outline-laptop) solid var(--px-color-border-focus-outline-default)}.btn{width:var(--button-extended--laptop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-2xs-laptop)}.btn:focus-visble:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}.btn.actionable-tag{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-xs-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-laptop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-laptop) * -1)}.btn.secondary{padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn.tertiary{padding:var(--px-padding-2xs-laptop) 0;gap:var(--px-spacing-xs-laptop)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-laptop) var(--px-padding-s-laptop)}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-laptop)}:is()[slot=before]{padding:0 var(--px-padding-2xs-laptop) 0 0}.btn.header-dropdown,.btn.header-minimal-dropdown{gap:var(--px-spacing-xs-laptop);font-size:var(--px-text-size-label-m-laptop)}.btn.header-dropdown{padding:0}}@media screen and (min-width: 90.0625rem){button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline:var(--px-focus-outline-desktop) solid var(--px-color-border-focus-outline-default)}.btn{width:var(--button-extended--desktop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-desktop)}:is()[slot=before]{padding:0 var(--px-padding-2xs-desktop) 0 0}.btn.header-dropdown,.btn.header-minimal-dropdown{gap:var(--px-spacing-xs-desktop);font-size:var(--px-text-size-label-m-desktop)}.btn.header-dropdown{padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`, vt = ':host([variant="icon-link"]){display:inline-flex}a,.link,::slotted(a){display:inline;align-items:center;font-family:var(--px-font-family);font-size:var(--px-text-size-link-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}a:hover,.link:hover{color:var(--px-color-text-state-hover-default)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a ::slotted(span[slot="after"]),a ::slotted(span[slot="before"]),.link ::slotted(span[slot="after"]),.link ::slotted(span[slot="before"]){display:inline-block}::slotted(a:hover){color:var(--px-color-text-state-hover-default)}a.no-style,a.wrapper{text-decoration:none}a.no-style:hover,a.no-style:focus-visible,a.wrapper:hover,a.wrapper:focus-visible{color:inherit}a.wrapper{display:block;line-height:0}a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-background-container-default-default);padding:var(--px-padding-xs-mobile)}a.skip-link:focus-visible{left:auto;z-index:999}:host([target="_blank"]) ::slotted(px-icon){vertical-align:middle}.icon-link{color:var(--px-color-icon-brand-default);line-height:1;display:inline-flex}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-text-neutral-inverted)}:host([inverted]) a:hover,:host([inverted]) .link:hover{color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a:focus-visible,:host([inverted]) .link:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) ::slotted(a:hover){color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-background-container-default-inverted)}:host([inverted]) .icon-link{color:var(--px-color-icon-brand-inverted)}@media screen and (min-width: 48rem){a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline:var(--px-focus-outline-tablet) solid var(--px-color-border-focus-outline-default)}a,.link,::slotted(a){font-size:var(--px-text-size-link-m-tablet)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a.skip-link{padding:var(--px-padding-xs-tablet)}}@media screen and (min-width: 64.0625rem){a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline:var(--px-focus-outline-laptop) solid var(--px-color-border-focus-outline-default)}a,.link,::slotted(a){font-size:var(--px-text-size-link-m-laptop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a.skip-link{padding:var(--px-padding-xs-laptop)}}@media screen and (min-width: 90.0625rem){a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline:var(--px-focus-outline-desktop) solid var(--px-color-border-focus-outline-default)}a,.link,::slotted(a){font-size:var(--px-text-size-link-m-desktop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a.skip-link{padding:var(--px-padding-xs-desktop)}}', Ut = ".patch{display:inline-flex;align-items:center;padding:var(--px-padding-3xs-mobile) var(--px-padding-s-mobile);border:var(--px-size-border-m) solid transparent;border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small);font-family:var(--px-font-family);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);background-color:var(--px-color-background-purpose-promo-default);color:var(--px-color-text-neutral-inverted)}.patch,.patch *{box-sizing:border-box}[shape=bottom-right]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small) var(--px-radius-patch-big)}[shape=bottom-left],[shape=default]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small)}.info{background-color:var(--px-color-background-purpose-info-default);color:var(--px-color-text-neutral-default)}.black-friday{background-color:var(--px-color-background-surface-dark);color:var(--px-color-text-neutral-inverted)}.eco{background-color:var(--px-color-background-purpose-success-default);color:var(--px-color-text-neutral-inverted)}.greyed{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .patch{background-color:var(--px-color-background-purpose-promo-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info{background-color:var(--px-color-background-purpose-info-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .black-friday{background-color:var(--px-color-background-container-light-default);color:var(--px-color-text-neutral-default)}:host([inverted]) .eco{background-color:var(--px-color-background-purpose-success-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .greyed{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media screen and (min-width: 48rem){.patch{padding:0 var(--px-padding-s-tablet);font-size:var(--px-text-size-label-m-tablet)}}@media screen and (min-width: 64.0625rem){.patch{padding:0 var(--px-padding-s-laptop);font-size:var(--px-text-size-label-m-laptop)}}@media screen and (min-width: 90.0625rem){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}", Jt = ":host:has(.tag){display:inline-block}.tag{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);gap:var(--px-spacing-xs-mobile);background-color:var(--px-color-background-container-default-default);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-s) solid transparent;border-radius:var(--px-radius-main)}.tag,.tag *{box-sizing:border-box}:host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .tag{background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]):host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media screen and (min-width: 48rem){.tag{font-size:var(--px-text-size-label-m-tablet);gap:var(--px-spacing-xs-tablet);padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet)}}@media screen and (min-width: 64.0625rem){.tag{font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-xs-laptop);padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop)}}", mt = new CSSStyleSheet(), ft = new CSSStyleSheet(), kt = new CSSStyleSheet(), yt = new CSSStyleSheet();
|
|
8
|
+
const xt = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-primary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[disabled],.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown).loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn.secondary{color:var(--px-color-text-brand-default);background:var(--px-color-background-container-secondary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.secondary.loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-color-text-brand-default);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid transparent;padding:var(--px-padding-2xs-mobile) 0;gap:var(--px-spacing-xs-mobile)}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-size-m);height:var(--px-size-m);border-radius:var(--px-radius-pill);background:var(--px-color-background-container-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-mobile) var(--px-padding-s-mobile)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent;margin:0 -8px}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-mobile)}:is()[slot=before]{padding:0 var(--px-padding-2xs-mobile) 0 0}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-default)}.btn.tertiary.loading{color:var(--px-color-text-brand-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-size-m);height:var(--px-size-m);border-radius:var(--px-radius-pill);background:var(--px-color-background-state-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.actionable-tag{background:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-xs-mobile);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default)}.btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-none-default)}.btn.actionable-tag[disabled],.btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}.btn.header-dropdown,.btn.header-minimal-dropdown{display:flex;align-items:center;touch-action:manipulation}.btn.header-dropdown:after,.btn.header-minimal-dropdown:after{display:inline-block;content:"";width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}.btn.header-dropdown[aria-expanded=true]:after,.btn.header-minimal-dropdown[aria-expanded=true]:after{transform:rotate(180deg)}.btn.header-dropdown{justify-content:space-between;gap:var(--px-spacing-s-mobile);width:100%;color:var(--px-color-text-neutral-default);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-l-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);border-radius:var(--px-radius-main);background-color:var(--px-color-background-container-default-default)}.btn.header-minimal-dropdown{justify-content:flex-start;gap:var(--px-spacing-xs-mobile);color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);border:none;padding:0;border-radius:0;background:none}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}button.wrapper{all:unset;cursor:pointer}button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}button.wrapper[disabled],button.wrapper[aria-disabled=true]{cursor:default;pointer-events:none}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn:active:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-active-inverted);color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){color:var(--px-color-text-brand-default);background:var(--px-color-background-container-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown).loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),:host([inverted]) .btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.actionable-tag{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) .btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-none-inverted)}:host([inverted]) .btn.actionable-tag[disabled],:host([inverted]) .btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-default)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) button.wrapper:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn.header-minimal-dropdown{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.header-minimal-dropdown:after{color:var(--px-color-icon-brand-inverted)}@media screen and (max-width: 47.938rem){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--mobile=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media screen and (min-width: 48rem) and (max-width: 64rem){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--tablet=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media screen and (min-width: 48rem){button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline:var(--px-focus-outline-tablet) solid var(--px-color-border-focus-outline-default)}.btn{width:var(--button-extended--tablet, var(--button-extended, auto));font-size:var(--px-text-size-label-m-tablet);gap:var(--px-spacing-2xs-tablet)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}.btn.actionable-tag{padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet);gap:var(--px-spacing-xs-tablet)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){padding:var(--px-padding-xs-tablet) var(--px-padding-m-tablet)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-tablet) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-tablet) * -1)}.btn.secondary{padding:var(--px-padding-xs-tablet) var(--px-padding-m-tablet)}.btn.tertiary{padding:var(--px-padding-2xs-tablet) 0;gap:var(--px-spacing-xs-tablet)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-tablet) var(--px-padding-s-tablet)}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-tablet)}:is()[slot=before]{padding:0 var(--px-padding-2xs-tablet) 0 0}.btn.header-dropdown,.btn.header-minimal-dropdown{gap:var(--px-spacing-xs-tablet);font-size:var(--px-text-size-label-m-tablet)}.btn.header-dropdown{padding:var(--px-padding-xs-tablet) var(--px-padding-s-tablet)}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--laptop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media screen and (min-width: 64.0625rem){button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline:var(--px-focus-outline-laptop) solid var(--px-color-border-focus-outline-default)}.btn{width:var(--button-extended--laptop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-2xs-laptop)}.btn:focus-visble:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}.btn.actionable-tag{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-xs-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-laptop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-laptop) * -1)}.btn.secondary{padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn.tertiary{padding:var(--px-padding-2xs-laptop) 0;gap:var(--px-spacing-xs-laptop)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-laptop) var(--px-padding-s-laptop)}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-laptop)}:is()[slot=before]{padding:0 var(--px-padding-2xs-laptop) 0 0}.btn.header-dropdown,.btn.header-minimal-dropdown{gap:var(--px-spacing-xs-laptop);font-size:var(--px-text-size-label-m-laptop)}.btn.header-dropdown{justify-content:flex-start;align-items:center;width:inherit;color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);border:none;padding:0;border-radius:0;background:none}}@media screen and (min-width: 90.0625rem){button.wrapper:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline:var(--px-focus-outline-desktop) solid var(--px-color-border-focus-outline-default)}.btn{width:var(--button-extended--desktop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown)[shape--desktop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown,.header-minimal-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}:is()[slot=after]{padding:0 0 0 var(--px-padding-2xs-desktop)}:is()[slot=before]{padding:0 var(--px-padding-2xs-desktop) 0 0}.btn.header-dropdown,.btn.header-minimal-dropdown{gap:var(--px-spacing-xs-desktop);font-size:var(--px-text-size-label-m-desktop)}.btn.header-dropdown{padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`, vt = ':host([variant="icon-link"]){display:inline-flex}a,.link,::slotted(a){display:inline;align-items:center;font-family:var(--px-font-family);font-size:var(--px-text-size-link-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}a:hover,.link:hover{color:var(--px-color-text-state-hover-default)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a ::slotted(span[slot="after"]),a ::slotted(span[slot="before"]),.link ::slotted(span[slot="after"]),.link ::slotted(span[slot="before"]){display:inline-block}::slotted(a:hover){color:var(--px-color-text-state-hover-default)}a.no-style,a.wrapper{text-decoration:none}a.no-style:hover,a.no-style:focus-visible,a.wrapper:hover,a.wrapper:focus-visible{color:inherit}a.wrapper{display:block;line-height:0}a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-background-container-default-default);padding:var(--px-padding-xs-mobile)}a.skip-link:focus-visible{left:auto;z-index:999}:host([target="_blank"]) ::slotted(px-icon){vertical-align:middle}.icon-link{color:var(--px-color-icon-brand-default);line-height:1;display:inline-flex}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-text-neutral-inverted)}:host([inverted]) a:hover,:host([inverted]) .link:hover{color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a:focus-visible,:host([inverted]) .link:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) ::slotted(a:hover){color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-background-container-default-inverted)}:host([inverted]) .icon-link{color:var(--px-color-icon-brand-inverted)}@media screen and (min-width: 48rem){a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline:var(--px-focus-outline-tablet) solid var(--px-color-border-focus-outline-default)}a,.link,::slotted(a){font-size:var(--px-text-size-link-m-tablet)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a.skip-link{padding:var(--px-padding-xs-tablet)}}@media screen and (min-width: 64.0625rem){a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline:var(--px-focus-outline-laptop) solid var(--px-color-border-focus-outline-default)}a,.link,::slotted(a){font-size:var(--px-text-size-link-m-laptop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a.skip-link{padding:var(--px-padding-xs-laptop)}}@media screen and (min-width: 90.0625rem){a.wrapper:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline:var(--px-focus-outline-desktop) solid var(--px-color-border-focus-outline-default)}a,.link,::slotted(a){font-size:var(--px-text-size-link-m-desktop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a.skip-link{padding:var(--px-padding-xs-desktop)}}', Ut = ".patch{display:inline-flex;align-items:center;padding:var(--px-padding-3xs-mobile) var(--px-padding-s-mobile);border:var(--px-size-border-m) solid transparent;border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small);font-family:var(--px-font-family);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);background-color:var(--px-color-background-purpose-promo-default);color:var(--px-color-text-neutral-inverted)}.patch,.patch *{box-sizing:border-box}[shape=bottom-right]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small) var(--px-radius-patch-big)}[shape=bottom-left],[shape=default]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small)}.info{background-color:var(--px-color-background-purpose-info-default);color:var(--px-color-text-neutral-default)}.black-friday{background-color:var(--px-color-background-surface-dark);color:var(--px-color-text-neutral-inverted)}.eco{background-color:var(--px-color-background-purpose-success-default);color:var(--px-color-text-neutral-inverted)}.greyed{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .patch{background-color:var(--px-color-background-purpose-promo-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info{background-color:var(--px-color-background-purpose-info-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .black-friday{background-color:var(--px-color-background-container-light-default);color:var(--px-color-text-neutral-default)}:host([inverted]) .eco{background-color:var(--px-color-background-purpose-success-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .greyed{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media screen and (min-width: 48rem){.patch{padding:0 var(--px-padding-s-tablet);font-size:var(--px-text-size-label-m-tablet)}}@media screen and (min-width: 64.0625rem){.patch{padding:0 var(--px-padding-s-laptop);font-size:var(--px-text-size-label-m-laptop)}}@media screen and (min-width: 90.0625rem){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}", Jt = ":host:has(.tag){display:inline-block}.tag{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);gap:var(--px-spacing-xs-mobile);background-color:var(--px-color-background-container-default-default);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-s) solid transparent;border-radius:var(--px-radius-main)}.tag,.tag *{box-sizing:border-box}:host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .tag{background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]):host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media screen and (min-width: 48rem){.tag{font-size:var(--px-text-size-label-m-tablet);gap:var(--px-spacing-xs-tablet);padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet)}}@media screen and (min-width: 64.0625rem){.tag{font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-xs-laptop);padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop)}}", mt = new CSSStyleSheet(), ft = new CSSStyleSheet(), kt = new CSSStyleSheet(), yt = new CSSStyleSheet();
|
|
9
9
|
mt.replaceSync(xt);
|
|
10
10
|
ft.replaceSync(vt);
|
|
11
11
|
kt.replaceSync(Ut);
|
|
@@ -58,62 +58,62 @@ const dt = [
|
|
|
58
58
|
connectedCallback() {
|
|
59
59
|
const t = this.querySelectorAll("px-icon");
|
|
60
60
|
t && t.forEach((e) => {
|
|
61
|
-
const
|
|
61
|
+
const o = e.getAttribute("size"), r = e.getAttribute("color");
|
|
62
62
|
e && (e.addEventListener("click", () => {
|
|
63
63
|
this.$el.focus();
|
|
64
|
-
}),
|
|
64
|
+
}), o || e.setAttribute("size", "xs"), r || e.setAttribute("color", "inherit"));
|
|
65
65
|
}), pt(this, this.$el, !0), this.$el.type === "submit" && this.addEventListener("click", (e) => {
|
|
66
|
-
var
|
|
67
|
-
e.preventDefault(), (
|
|
66
|
+
var o;
|
|
67
|
+
e.preventDefault(), (o = this.closest("form")) == null || o.submit();
|
|
68
68
|
}), this.$el.type === "reset" && this.addEventListener("click", (e) => {
|
|
69
|
-
var
|
|
70
|
-
e.preventDefault(), (
|
|
69
|
+
var o;
|
|
70
|
+
e.preventDefault(), (o = this.closest("form")) == null || o.reset();
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
disconnectedCallback() {
|
|
74
74
|
}
|
|
75
|
-
attributeChangedCallback(t, e,
|
|
76
|
-
if (e !==
|
|
75
|
+
attributeChangedCallback(t, e, o) {
|
|
76
|
+
if (e !== o)
|
|
77
77
|
switch (t) {
|
|
78
78
|
case "variant":
|
|
79
|
-
this.updateVariant(e,
|
|
79
|
+
this.updateVariant(e, o);
|
|
80
80
|
break;
|
|
81
81
|
case "state":
|
|
82
|
-
this.updateState(e,
|
|
82
|
+
this.updateState(e, o);
|
|
83
83
|
break;
|
|
84
84
|
case "extended":
|
|
85
85
|
case "extended--mobile":
|
|
86
86
|
case "extended--tablet":
|
|
87
87
|
case "extended--laptop":
|
|
88
88
|
case "extended--desktop":
|
|
89
|
-
this.updateExtended(t,
|
|
89
|
+
this.updateExtended(t, o);
|
|
90
90
|
break;
|
|
91
91
|
case "loading":
|
|
92
92
|
this.updateLoading();
|
|
93
93
|
break;
|
|
94
94
|
case "disabled":
|
|
95
|
-
super.attributeChangedCallback(t, e,
|
|
95
|
+
super.attributeChangedCallback(t, e, o);
|
|
96
96
|
break;
|
|
97
97
|
case "shape":
|
|
98
98
|
case "shape--mobile":
|
|
99
99
|
case "shape--tablet":
|
|
100
100
|
case "shape--laptop":
|
|
101
101
|
case "shape--desktop":
|
|
102
|
-
this.updateShape(t,
|
|
102
|
+
this.updateShape(t, o, Qt);
|
|
103
103
|
break;
|
|
104
104
|
case "aria-expanded":
|
|
105
|
-
|
|
105
|
+
o && (this.$el.setAttribute("aria-expanded", o), this.removeAttribute("aria-expanded"));
|
|
106
106
|
break;
|
|
107
107
|
default:
|
|
108
|
-
super.attributeChangedCallback(t, e,
|
|
108
|
+
super.attributeChangedCallback(t, e, o);
|
|
109
109
|
break;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
checkClass(t) {
|
|
113
113
|
if (t.startsWith("patch-")) {
|
|
114
114
|
const e = t.split(/-(.*)/s);
|
|
115
|
-
for (const
|
|
116
|
-
|
|
115
|
+
for (const o of e)
|
|
116
|
+
o != "" && this.$el.classList.toggle(o);
|
|
117
117
|
} else
|
|
118
118
|
this.$el.classList.toggle(t);
|
|
119
119
|
}
|
|
@@ -126,9 +126,9 @@ const dt = [
|
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
128
|
updateState(t, e) {
|
|
129
|
-
const
|
|
130
|
-
this._toggleClass(t, e), this.checkName(
|
|
131
|
-
`"${e}" is not a valid state value for ${this.tagName.toLowerCase()}. Allowed values are: "${
|
|
129
|
+
const o = ["", "default", "success", "error"];
|
|
130
|
+
this._toggleClass(t, e), this.checkName(o, e) || d(
|
|
131
|
+
`"${e}" is not a valid state value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
134
|
updateExtended(t, e) {
|
|
@@ -138,10 +138,10 @@ const dt = [
|
|
|
138
138
|
const t = this.querySelector("px-spinner");
|
|
139
139
|
t && (t.getAttribute("size") || t.setAttribute("size", "xs")), this.$el.classList.toggle("loading");
|
|
140
140
|
}
|
|
141
|
-
updateShape(t, e,
|
|
142
|
-
if (!w(
|
|
141
|
+
updateShape(t, e, o) {
|
|
142
|
+
if (!w(o, e)) {
|
|
143
143
|
d(
|
|
144
|
-
`"${e}" is not a valid shape value for ${this.tagName.toLowerCase()}. Allowed values are: "${
|
|
144
|
+
`"${e}" is not a valid shape value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
145
145
|
);
|
|
146
146
|
return;
|
|
147
147
|
}
|
|
@@ -259,17 +259,17 @@ class Vt extends C {
|
|
|
259
259
|
disconnectedCallback() {
|
|
260
260
|
super.disconnectedCallback(), n(this, x).disconnect();
|
|
261
261
|
}
|
|
262
|
-
attributeChangedCallback(e,
|
|
263
|
-
if (
|
|
262
|
+
attributeChangedCallback(e, o, r) {
|
|
263
|
+
if (o !== r)
|
|
264
264
|
switch (e) {
|
|
265
265
|
case "loading":
|
|
266
|
-
super.attributeChangedCallback(e,
|
|
266
|
+
super.attributeChangedCallback(e, o, r), r !== null && n(this, x).clearInteractiveState();
|
|
267
267
|
break;
|
|
268
268
|
case "disabled":
|
|
269
|
-
super.attributeChangedCallback(e,
|
|
269
|
+
super.attributeChangedCallback(e, o, r), r !== null && n(this, x).clearInteractiveState();
|
|
270
270
|
break;
|
|
271
271
|
default:
|
|
272
|
-
super.attributeChangedCallback(e,
|
|
272
|
+
super.attributeChangedCallback(e, o, r);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
@@ -325,21 +325,21 @@ const ee = [
|
|
|
325
325
|
"StateHover",
|
|
326
326
|
"StateActive",
|
|
327
327
|
"StateDisabled"
|
|
328
|
-
],
|
|
328
|
+
], oe = ["Inherit", ...ee].map(
|
|
329
329
|
(s) => s.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)
|
|
330
|
-
),
|
|
331
|
-
zt.replaceSync(
|
|
330
|
+
), re = ":host{display:inline-flex;flex-direction:column;justify-content:center}svg{font-size:var(--px-size-icon-s);line-height:var(--px-font-line-height-xs);width:1em;height:1em;color:var(--px-color-icon-accent-default)}.inherit{color:inherit}.brand{color:var(--px-color-icon-brand-default)}.accent{color:var(--px-color-icon-accent-default)}.neutral{color:var(--px-color-icon-neutral-default)}.dimmed{color:var(--px-color-icon-dimmed-default)}.purpose-success{color:var(--px-color-icon-purpose-success-default)}.purpose-warning{color:var(--px-color-icon-purpose-warning-default)}.purpose-error{color:var(--px-color-icon-purpose-error-default)}.purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-default)}.purpose-promo{color:var(--px-color-icon-purpose-promo-default)}.state-hover:hover{color:var(--px-color-icon-state-hover-default)}.state-active:active{color:var(--px-color-icon-state-active-default)}.state-disabled{color:var(--px-color-icon-state-disabled-default)}:host([inverted]) svg{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .inherit{color:inherit}:host([inverted]) .brand{color:var(--px-color-icon-brand-inverted)}:host([inverted]) .accent{color:var(--px-color-icon-accent-inverted)}:host([inverted]) .neutral{color:var(--px-color-icon-neutral-inverted)}:host([inverted]) .dimmed{color:var(--px-color-icon-dimmed-inverted)}:host([inverted]) .purpose-success{color:var(--px-color-icon-purpose-success-inverted)}:host([inverted]) .purpose-warning{color:var(--px-color-icon-purpose-warning-inverted)}:host([inverted]) .purpose-error{color:var(--px-color-icon-purpose-error-inverted)}:host([inverted]) .purpose-unlimited{color:var(--px-color-icon-purpose-unlimited-inverted)}:host([inverted]) .purpose-promo{color:var(--px-color-icon-purpose-promo-inverted)}:host([inverted]) .state-hover:hover{color:var(--px-color-icon-state-hover-inverted)}:host([inverted]) .state-active:active{color:var(--px-color-icon-state-active-inverted)}:host([inverted]) .state-disabled{color:var(--px-color-icon-state-disabled-inverted)}.size-xs{font-size:var(--px-size-icon-xs)}.size-s{font-size:var(--px-size-icon-s)}.size-m{font-size:var(--px-size-icon-m)}.size-l{font-size:var(--px-size-icon-l)}.size-xl{font-size:var(--px-size-icon-xl)}", zt = new CSSStyleSheet();
|
|
331
|
+
zt.replaceSync(re);
|
|
332
332
|
var m, b, E;
|
|
333
333
|
class ie extends X {
|
|
334
334
|
constructor(...e) {
|
|
335
|
-
var
|
|
335
|
+
var o;
|
|
336
336
|
super(...e, zt);
|
|
337
337
|
c(this, m);
|
|
338
338
|
c(this, b);
|
|
339
339
|
c(this, E, () => `<svg aria-hidden="true">
|
|
340
340
|
<use></use>
|
|
341
341
|
</svg>`);
|
|
342
|
-
this.shadowRoot.innerHTML = n(this, E).call(this), k(this, b, (
|
|
342
|
+
this.shadowRoot.innerHTML = n(this, E).call(this), k(this, b, (o = this.attachInternals) == null ? void 0 : o.call(this)), n(this, b) && (n(this, b).role = "img");
|
|
343
343
|
}
|
|
344
344
|
static get observedAttributes() {
|
|
345
345
|
return [
|
|
@@ -353,17 +353,17 @@ class ie extends X {
|
|
|
353
353
|
"disabled"
|
|
354
354
|
];
|
|
355
355
|
}
|
|
356
|
-
attributeChangedCallback(e,
|
|
357
|
-
if (
|
|
356
|
+
attributeChangedCallback(e, o, r) {
|
|
357
|
+
if (o !== r)
|
|
358
358
|
switch (e) {
|
|
359
359
|
case "name":
|
|
360
|
-
this.updateName(
|
|
360
|
+
this.updateName(o, r);
|
|
361
361
|
break;
|
|
362
362
|
case "size":
|
|
363
|
-
this.updateAttribute(e,
|
|
363
|
+
this.updateAttribute(e, o, r, _t);
|
|
364
364
|
break;
|
|
365
365
|
case "color":
|
|
366
|
-
this.updateAttribute(e,
|
|
366
|
+
this.updateAttribute(e, o, r, oe);
|
|
367
367
|
break;
|
|
368
368
|
case "disabled":
|
|
369
369
|
this.color = "state-disabled";
|
|
@@ -371,36 +371,36 @@ class ie extends X {
|
|
|
371
371
|
case "aria-label":
|
|
372
372
|
if (!n(this, b))
|
|
373
373
|
return;
|
|
374
|
-
|
|
374
|
+
r ? (n(this, b).ariaHidden = "false", this.ariaHidden = "false") : (n(this, b).ariaHidden = "true", this.ariaHidden = "true");
|
|
375
375
|
break;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
connectedCallback() {
|
|
379
|
-
var
|
|
379
|
+
var o;
|
|
380
380
|
this.role = "img";
|
|
381
381
|
const e = document.querySelectorAll("px-icon-set");
|
|
382
382
|
e || console.log("<px-icon-set> component not found");
|
|
383
|
-
for (const
|
|
384
|
-
if (!
|
|
383
|
+
for (const r of e) {
|
|
384
|
+
if (!r.getAttribute("name") || !r.getAttribute("src")) {
|
|
385
385
|
console.error("Icon name or src not found");
|
|
386
386
|
continue;
|
|
387
387
|
}
|
|
388
|
-
|
|
388
|
+
r.getAttribute("name") === this.from && r.getAttribute("type") !== "font" && (k(this, m, r.getAttribute("src")), this.$el.firstElementChild.setAttribute(
|
|
389
389
|
"href",
|
|
390
390
|
`${n(this, m)}#icon-${this.name}`
|
|
391
391
|
));
|
|
392
392
|
}
|
|
393
|
-
!this.ariaLabel && n(this, b) && (n(this, b).ariaHidden = "true", this.ariaHidden = "true"), ((
|
|
393
|
+
!this.ariaLabel && n(this, b) && (n(this, b).ariaHidden = "true", this.ariaHidden = "true"), ((o = this.parentElement) == null ? void 0 : o.localName) === "px-a" && this.slot !== "before" && this.slot !== "after" && (this.color || this.setAttribute("color", "inherit"));
|
|
394
394
|
}
|
|
395
|
-
updateAttribute(e,
|
|
396
|
-
|
|
397
|
-
`${
|
|
395
|
+
updateAttribute(e, o, r, i) {
|
|
396
|
+
o !== null && o !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${o}`) : this.$el.classList.toggle(o)), r !== null && r !== "" && (e === "size" ? this.$el.classList.toggle(`${e}-${r}`) : this.$el.classList.toggle(r)), this.checkName(i, r) || d(
|
|
397
|
+
`${r} is not an allowed ${e} value for ${this.tagName.toLowerCase()}`
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
updateName(e,
|
|
400
|
+
updateName(e, o) {
|
|
401
401
|
n(this, m) && this.$el.firstElementChild.setAttribute(
|
|
402
402
|
"href",
|
|
403
|
-
`${n(this, m)}#icon-${
|
|
403
|
+
`${n(this, m)}#icon-${o}`
|
|
404
404
|
);
|
|
405
405
|
}
|
|
406
406
|
get $el() {
|
|
@@ -451,7 +451,7 @@ class ie extends X {
|
|
|
451
451
|
}
|
|
452
452
|
m = new WeakMap(), b = new WeakMap(), E = new WeakMap();
|
|
453
453
|
customElements.get("px-icon") || customElements.define("px-icon", ie);
|
|
454
|
-
const wt = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title)}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-xl-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media screen and (min-width: 48rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-tablet)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-tablet)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-tablet)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-tablet)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-tablet)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-tablet)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-tablet)}.style-title-s{font-size:var(--px-text-size-heading-s-tablet)}.style-subtitle{font-size:var(--px-text-size-heading-xl-tablet)}}@media screen and (min-width: 64.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-laptop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-laptop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-laptop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-laptop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-laptop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-laptop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-laptop)}.style-title-s{font-size:var(--px-text-size-heading-s-laptop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-laptop)}}@media screen and (min-width: 90.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-desktop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-s-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}", K = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media screen and (min-width: 48rem){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}@media screen and (min-width: 64.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", $t = new CSSStyleSheet();
|
|
454
|
+
const wt = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title)}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-xl-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media screen and (min-width: 48rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-tablet)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-tablet)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-tablet)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-tablet)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-tablet)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-tablet)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-tablet)}.style-title-s{font-size:var(--px-text-size-heading-s-tablet)}.style-subtitle{font-size:var(--px-text-size-heading-xl-tablet)}}@media screen and (min-width: 64.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-laptop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-laptop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-laptop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-laptop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-laptop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-laptop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-laptop)}.style-title-s{font-size:var(--px-text-size-heading-s-laptop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-laptop)}}@media screen and (min-width: 90.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-desktop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-s-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}", K = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media screen and (min-width: 48rem){.font-size-body-l{font-size:var(--px-text-size-body-l-tablet)}.font-size-body-m{font-size:var(--px-text-size-body-m-tablet)}.font-size-body-s{font-size:var(--px-text-size-body-s-tablet)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-tablet)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-tablet)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-tablet)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-tablet)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-tablet)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-tablet)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-tablet)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-tablet)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-tablet)}.font-size-link-m{font-size:var(--px-text-size-link-m-tablet)}.font-size-link-s{font-size:var(--px-text-size-link-s-tablet)}}@media screen and (min-width: 64.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-laptop)}.font-size-body-m{font-size:var(--px-text-size-body-m-laptop)}.font-size-body-s{font-size:var(--px-text-size-body-s-laptop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-laptop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-laptop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-laptop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-laptop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-laptop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-laptop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-laptop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-laptop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-laptop)}.font-size-link-m{font-size:var(--px-text-size-link-m-laptop)}.font-size-link-s{font-size:var(--px-text-size-link-s-laptop)}}@media screen and (min-width: 90.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", $t = new CSSStyleSheet();
|
|
455
455
|
$t.replaceSync(wt);
|
|
456
456
|
const St = new CSSStyleSheet();
|
|
457
457
|
St.replaceSync(K);
|
|
@@ -478,43 +478,43 @@ class A extends $ {
|
|
|
478
478
|
"auto-spacing"
|
|
479
479
|
];
|
|
480
480
|
}
|
|
481
|
-
attributeChangedCallback(t, e,
|
|
482
|
-
if (e !==
|
|
481
|
+
attributeChangedCallback(t, e, o) {
|
|
482
|
+
if (e !== o)
|
|
483
483
|
switch (t) {
|
|
484
484
|
case "variant":
|
|
485
|
-
this.updateAttribute(t, e,
|
|
485
|
+
this.updateAttribute(t, e, o, ht);
|
|
486
486
|
break;
|
|
487
487
|
case "color":
|
|
488
|
-
this.updateColor(e,
|
|
488
|
+
this.updateColor(e, o, Z);
|
|
489
489
|
break;
|
|
490
490
|
case "text-align":
|
|
491
491
|
case "text-align--mobile":
|
|
492
492
|
case "text-align--tablet":
|
|
493
493
|
case "text-align--laptop":
|
|
494
494
|
case "text-align--desktop":
|
|
495
|
-
this.updateTextAlign(t, e,
|
|
495
|
+
this.updateTextAlign(t, e, o, ct);
|
|
496
496
|
break;
|
|
497
497
|
default:
|
|
498
|
-
super.attributeChangedCallback(t, e,
|
|
498
|
+
super.attributeChangedCallback(t, e, o);
|
|
499
499
|
break;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
toggleClass(t, e) {
|
|
503
503
|
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
|
|
504
504
|
}
|
|
505
|
-
updateAttribute(t, e,
|
|
506
|
-
this.checkName(
|
|
507
|
-
`"${
|
|
505
|
+
updateAttribute(t, e, o, r) {
|
|
506
|
+
this.checkName(r, o) ? this.toggleClass(e, o) : d(
|
|
507
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
|
-
updateColor(t, e,
|
|
511
|
-
if (!this.checkName(
|
|
510
|
+
updateColor(t, e, o) {
|
|
511
|
+
if (!this.checkName(o, e)) {
|
|
512
512
|
d(
|
|
513
|
-
`"${e}" is not a valid color value for ${this.tagName.toLowerCase()}. Allowed values are: "${
|
|
513
|
+
`"${e}" is not a valid color value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
514
514
|
);
|
|
515
515
|
return;
|
|
516
516
|
}
|
|
517
|
-
const
|
|
517
|
+
const r = (i) => {
|
|
518
518
|
i !== null && i !== "" && i !== "default" && (this.$el.style.setProperty(
|
|
519
519
|
"--heading-color-default",
|
|
520
520
|
`var(--px-color-text-${i}-default)`
|
|
@@ -523,12 +523,12 @@ class A extends $ {
|
|
|
523
523
|
`var(--px-color-text-${i}-inverted)`
|
|
524
524
|
));
|
|
525
525
|
};
|
|
526
|
-
|
|
526
|
+
r(t), r(e);
|
|
527
527
|
}
|
|
528
|
-
updateTextAlign(t, e,
|
|
529
|
-
if (!this.checkName(
|
|
528
|
+
updateTextAlign(t, e, o, r) {
|
|
529
|
+
if (!this.checkName(r, o)) {
|
|
530
530
|
d(
|
|
531
|
-
`"${
|
|
531
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
532
532
|
);
|
|
533
533
|
return;
|
|
534
534
|
}
|
|
@@ -540,11 +540,11 @@ class A extends $ {
|
|
|
540
540
|
};
|
|
541
541
|
if (t === "text-align")
|
|
542
542
|
["mobile", "tablet", "laptop", "desktop"].forEach((a) => {
|
|
543
|
-
i(a, e), i(a,
|
|
543
|
+
i(a, e), i(a, o);
|
|
544
544
|
});
|
|
545
545
|
else {
|
|
546
546
|
const a = t.split("--")[1];
|
|
547
|
-
i(a, e), i(a,
|
|
547
|
+
i(a, e), i(a, o);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
get variant() {
|
|
@@ -642,13 +642,13 @@ const et = class et extends A {
|
|
|
642
642
|
et.nativeName = "h5";
|
|
643
643
|
let N = et;
|
|
644
644
|
customElements.get("px-h5") || customElements.define("px-h5", N);
|
|
645
|
-
const
|
|
645
|
+
const ot = class ot extends A {
|
|
646
646
|
constructor() {
|
|
647
647
|
super("h6");
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
|
-
|
|
651
|
-
let _ =
|
|
650
|
+
ot.nativeName = "h6";
|
|
651
|
+
let _ = ot;
|
|
652
652
|
customElements.get("px-h6") || customElements.define("px-h6", _);
|
|
653
653
|
const ae = ".separator{--separator-size: var(--px-size-border-m);--separator-direction--mobile-border-width: var(--separator-size) 0 0;--separator-direction--mobile-width: initial;--separator-direction--mobile-height: initial;clear:both;margin:0;border-style:solid;border-color:var( --separator-color-default, var(--px-color-border-main-default) );border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-horizontal--mobile{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--mobile{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}:host([inverted]) .separator{border-color:var( --separator-color-inverted, var(--px-color-border-main-inverted) )}@media screen and (min-width: 48rem){.separator-direction-horizontal--tablet{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--tablet{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}@media screen and (min-width: 64.0625rem){.separator-direction-horizontal--laptop{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--laptop{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}@media screen and (min-width: 90.0625rem){.separator-direction-horizontal--desktop{border-width:var(--separator-size) 0 0;width:initial;height:initial}.separator-direction-vertical--desktop{width:var(--separator-size);height:100%;border-width:0 var(--separator-size) 0 0}}", Ct = new CSSStyleSheet();
|
|
654
654
|
Ct.replaceSync(ae);
|
|
@@ -689,8 +689,8 @@ const se = [
|
|
|
689
689
|
"inverted"
|
|
690
690
|
];
|
|
691
691
|
}
|
|
692
|
-
attributeChangedCallback(t, e,
|
|
693
|
-
if (e !==
|
|
692
|
+
attributeChangedCallback(t, e, o) {
|
|
693
|
+
if (e !== o)
|
|
694
694
|
switch (t) {
|
|
695
695
|
case "direction":
|
|
696
696
|
case "direction--mobile":
|
|
@@ -700,33 +700,33 @@ const se = [
|
|
|
700
700
|
this.updateDirection(
|
|
701
701
|
t,
|
|
702
702
|
e,
|
|
703
|
-
|
|
703
|
+
o,
|
|
704
704
|
se
|
|
705
705
|
);
|
|
706
706
|
break;
|
|
707
707
|
case "size":
|
|
708
|
-
this.updateSize(t, e,
|
|
708
|
+
this.updateSize(t, e, o, ne);
|
|
709
709
|
break;
|
|
710
710
|
case "color":
|
|
711
|
-
this.updateColor(t, e,
|
|
711
|
+
this.updateColor(t, e, o, de);
|
|
712
712
|
break;
|
|
713
713
|
default:
|
|
714
|
-
super.attributeChangedCallback(t, e,
|
|
714
|
+
super.attributeChangedCallback(t, e, o);
|
|
715
715
|
break;
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
updateSize(t, e,
|
|
718
|
+
updateSize(t, e, o, r) {
|
|
719
719
|
const i = (a) => {
|
|
720
720
|
a !== null && a !== "" && a !== "default" && this.$el.style.setProperty(
|
|
721
721
|
"--separator-size",
|
|
722
722
|
`var(--px-size-border-${a})`
|
|
723
723
|
);
|
|
724
724
|
};
|
|
725
|
-
this.checkName(
|
|
726
|
-
`"${
|
|
725
|
+
this.checkName(r, o) ? (i(e), i(o)) : d(
|
|
726
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
727
727
|
);
|
|
728
728
|
}
|
|
729
|
-
updateColor(t, e,
|
|
729
|
+
updateColor(t, e, o, r) {
|
|
730
730
|
const i = (a) => {
|
|
731
731
|
a !== null && a !== "" && a !== "default" && (this.$el.style.setProperty(
|
|
732
732
|
"--separator-color-default",
|
|
@@ -736,23 +736,23 @@ const se = [
|
|
|
736
736
|
`var(--px-color-border-${a}-inverted)`
|
|
737
737
|
));
|
|
738
738
|
};
|
|
739
|
-
this.checkName(
|
|
740
|
-
`"${
|
|
739
|
+
this.checkName(r, o) ? (i(e), i(o)) : d(
|
|
740
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
741
741
|
);
|
|
742
742
|
}
|
|
743
|
-
updateDirection(t, e,
|
|
743
|
+
updateDirection(t, e, o, r) {
|
|
744
744
|
const i = (a, l) => {
|
|
745
745
|
l !== null && l !== "" && l !== "default" && this.$el.classList.add(`separator-direction-${l}--${a}`);
|
|
746
746
|
};
|
|
747
|
-
if (!this.checkName(
|
|
747
|
+
if (!this.checkName(r, o))
|
|
748
748
|
d(
|
|
749
|
-
`"${
|
|
749
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
750
750
|
);
|
|
751
751
|
else if (t === "direction")
|
|
752
752
|
["mobile", "tablet", "laptop", "desktop"].forEach((a) => {
|
|
753
753
|
Array.from(this.$el.classList).find(
|
|
754
754
|
(z) => z.startsWith("separator-direction-") && z.endsWith(`--${a}`)
|
|
755
|
-
) || i(a,
|
|
755
|
+
) || i(a, o);
|
|
756
756
|
});
|
|
757
757
|
else {
|
|
758
758
|
const a = t.split("--")[1], l = Array.from(this.$el.classList).find(
|
|
@@ -760,8 +760,8 @@ const se = [
|
|
|
760
760
|
);
|
|
761
761
|
l ? this.$el.classList.replace(
|
|
762
762
|
l,
|
|
763
|
-
`separator-direction-${
|
|
764
|
-
) : i(a,
|
|
763
|
+
`separator-direction-${o}--${a}`
|
|
764
|
+
) : i(a, o);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
get direction() {
|
|
@@ -891,7 +891,7 @@ const be = [
|
|
|
891
891
|
void 0,
|
|
892
892
|
"subgrid-gap"
|
|
893
893
|
)
|
|
894
|
-
],
|
|
894
|
+
], rt = class rt extends X {
|
|
895
895
|
constructor() {
|
|
896
896
|
super(Lt, ...he), this.template = () => `<div class="container">
|
|
897
897
|
<slot></slot>
|
|
@@ -944,8 +944,8 @@ const be = [
|
|
|
944
944
|
characterData: !0
|
|
945
945
|
}), this._bgObserver = new IntersectionObserver((t) => {
|
|
946
946
|
t.forEach((e) => {
|
|
947
|
-
var
|
|
948
|
-
e.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (
|
|
947
|
+
var o;
|
|
948
|
+
e.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (o = this._bgObserver) == null || o.disconnect());
|
|
949
949
|
});
|
|
950
950
|
}), this._bgObserver.observe(this.$el);
|
|
951
951
|
}
|
|
@@ -953,26 +953,26 @@ const be = [
|
|
|
953
953
|
var t, e;
|
|
954
954
|
(t = this._bgObserver) == null || t.disconnect(), (e = this.contentObserver) == null || e.disconnect();
|
|
955
955
|
}
|
|
956
|
-
attributeChangedCallback(t, e,
|
|
957
|
-
if (e !==
|
|
956
|
+
attributeChangedCallback(t, e, o) {
|
|
957
|
+
if (e !== o)
|
|
958
958
|
switch (t) {
|
|
959
959
|
case "border":
|
|
960
|
-
this.updateAttribute(t, e,
|
|
960
|
+
this.updateAttribute(t, e, o, Kt);
|
|
961
961
|
break;
|
|
962
962
|
case "border-color":
|
|
963
|
-
this.updateBorderColor(t,
|
|
963
|
+
this.updateBorderColor(t, o);
|
|
964
964
|
break;
|
|
965
965
|
case "border-side":
|
|
966
966
|
case "border-side--mobile":
|
|
967
967
|
case "border-side--tablet":
|
|
968
968
|
case "border-side--laptop":
|
|
969
|
-
this.updateAttribute(t, e,
|
|
969
|
+
this.updateAttribute(t, e, o, Zt);
|
|
970
970
|
break;
|
|
971
971
|
case "border-radius":
|
|
972
972
|
this.updateAttribute(
|
|
973
973
|
t,
|
|
974
974
|
e,
|
|
975
|
-
|
|
975
|
+
o,
|
|
976
976
|
Xt
|
|
977
977
|
);
|
|
978
978
|
break;
|
|
@@ -983,7 +983,7 @@ const be = [
|
|
|
983
983
|
this.updateNoBorderRadius(
|
|
984
984
|
t,
|
|
985
985
|
e,
|
|
986
|
-
|
|
986
|
+
o,
|
|
987
987
|
Yt
|
|
988
988
|
);
|
|
989
989
|
break;
|
|
@@ -991,19 +991,19 @@ const be = [
|
|
|
991
991
|
case "background-color--mobile":
|
|
992
992
|
case "background-color--tablet":
|
|
993
993
|
case "background-color--laptop":
|
|
994
|
-
this.updateBackgroundColor(t,
|
|
994
|
+
this.updateBackgroundColor(t, o);
|
|
995
995
|
break;
|
|
996
996
|
case "background-gradient":
|
|
997
997
|
case "background-gradient--mobile":
|
|
998
998
|
case "background-gradient--tablet":
|
|
999
999
|
case "background-gradient--laptop":
|
|
1000
|
-
this.updateGradient(t,
|
|
1000
|
+
this.updateGradient(t, o);
|
|
1001
1001
|
break;
|
|
1002
1002
|
case "background-size":
|
|
1003
1003
|
this.updateAttribute(
|
|
1004
1004
|
t,
|
|
1005
1005
|
e,
|
|
1006
|
-
|
|
1006
|
+
o,
|
|
1007
1007
|
Gt
|
|
1008
1008
|
);
|
|
1009
1009
|
break;
|
|
@@ -1011,30 +1011,30 @@ const be = [
|
|
|
1011
1011
|
case "background-image--mobile":
|
|
1012
1012
|
case "background-image--tablet":
|
|
1013
1013
|
case "background-image--laptop":
|
|
1014
|
-
this._isInViewport && this.updateBackgroundImg(t,
|
|
1014
|
+
this._isInViewport && this.updateBackgroundImg(t, o);
|
|
1015
1015
|
break;
|
|
1016
1016
|
case "background-position":
|
|
1017
|
-
|
|
1017
|
+
o !== null && o !== "" && (this.$el.style.backgroundPosition = o);
|
|
1018
1018
|
break;
|
|
1019
1019
|
case "box-shadow":
|
|
1020
|
-
this.updateAttribute(t, e,
|
|
1020
|
+
this.updateAttribute(t, e, o, Ft);
|
|
1021
1021
|
break;
|
|
1022
1022
|
case "anchor-offset":
|
|
1023
|
-
this.updateAnchorOffset(e,
|
|
1023
|
+
this.updateAnchorOffset(e, o, u);
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "anchor-spacing":
|
|
1026
|
-
this.updateAnchorSpacing(e,
|
|
1026
|
+
this.updateAnchorSpacing(e, o, be);
|
|
1027
1027
|
break;
|
|
1028
1028
|
case "subgrid-rows":
|
|
1029
1029
|
this.updateSubgridRows(
|
|
1030
1030
|
t,
|
|
1031
1031
|
e,
|
|
1032
|
-
|
|
1032
|
+
o,
|
|
1033
1033
|
ce
|
|
1034
1034
|
);
|
|
1035
1035
|
break;
|
|
1036
1036
|
default:
|
|
1037
|
-
super.attributeChangedCallback(t, e,
|
|
1037
|
+
super.attributeChangedCallback(t, e, o);
|
|
1038
1038
|
break;
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
@@ -1045,8 +1045,8 @@ const be = [
|
|
|
1045
1045
|
"background-image--tablet",
|
|
1046
1046
|
"background-image--laptop"
|
|
1047
1047
|
].forEach((e) => {
|
|
1048
|
-
const
|
|
1049
|
-
|
|
1048
|
+
const o = this.getAttribute(e);
|
|
1049
|
+
o && this.updateBackgroundImg(e, o);
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
1052
|
updateBackgroundImg(t, e) {
|
|
@@ -1054,11 +1054,11 @@ const be = [
|
|
|
1054
1054
|
}
|
|
1055
1055
|
updateGradient(t, e) {
|
|
1056
1056
|
if (this.checkName(st, e)) {
|
|
1057
|
-
const
|
|
1058
|
-
t =
|
|
1059
|
-
const
|
|
1057
|
+
const o = this.splitAttrNameFromBreakpoint(t);
|
|
1058
|
+
t = o.attrName;
|
|
1059
|
+
const r = o.breakpoint;
|
|
1060
1060
|
this.$el.style.setProperty(
|
|
1061
|
-
`--${t}${
|
|
1061
|
+
`--${t}${r}`,
|
|
1062
1062
|
`linear-gradient(var(--px-color-background-gradient-${e}))`
|
|
1063
1063
|
);
|
|
1064
1064
|
} else
|
|
@@ -1067,15 +1067,15 @@ const be = [
|
|
|
1067
1067
|
);
|
|
1068
1068
|
}
|
|
1069
1069
|
updateBackgroundColor(t, e) {
|
|
1070
|
-
const
|
|
1070
|
+
const o = e.startsWith("surface-");
|
|
1071
1071
|
if (this.checkName(P, e)) {
|
|
1072
|
-
const
|
|
1072
|
+
const r = this.splitAttrNameFromBreakpoint(t), i = r.breakpoint;
|
|
1073
1073
|
this.$el.style.setProperty(
|
|
1074
|
-
`--${
|
|
1075
|
-
`var(--px-color-background-${e}${
|
|
1074
|
+
`--${r.attrName}${i}`,
|
|
1075
|
+
`var(--px-color-background-${e}${o ? "" : "-default"})`
|
|
1076
1076
|
), this.$el.style.setProperty(
|
|
1077
|
-
`--${
|
|
1078
|
-
`var(--px-color-background-${e}${
|
|
1077
|
+
`--${r.attrName}-inverted${i}`,
|
|
1078
|
+
`var(--px-color-background-${e}${o ? "" : "-inverted"})`
|
|
1079
1079
|
);
|
|
1080
1080
|
} else
|
|
1081
1081
|
d(
|
|
@@ -1093,52 +1093,52 @@ const be = [
|
|
|
1093
1093
|
`"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${nt.join('", "')}".`
|
|
1094
1094
|
);
|
|
1095
1095
|
}
|
|
1096
|
-
updateNoBorderRadius(t, e,
|
|
1097
|
-
if (!this.checkName(
|
|
1096
|
+
updateNoBorderRadius(t, e, o, r) {
|
|
1097
|
+
if (!this.checkName(r, o))
|
|
1098
1098
|
d(
|
|
1099
|
-
`"${
|
|
1099
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1100
1100
|
);
|
|
1101
1101
|
else {
|
|
1102
1102
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
1103
1103
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
1104
1104
|
`${i.attrName}-${e}${a}`
|
|
1105
|
-
),
|
|
1106
|
-
`${i.attrName}-${
|
|
1105
|
+
), o !== null && o !== "" && this.$el.classList.toggle(
|
|
1106
|
+
`${i.attrName}-${o}${a}`
|
|
1107
1107
|
);
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
updateAttribute(t, e,
|
|
1111
|
-
if (!this.checkName(
|
|
1110
|
+
updateAttribute(t, e, o, r) {
|
|
1111
|
+
if (!this.checkName(r, o))
|
|
1112
1112
|
d(
|
|
1113
|
-
`"${
|
|
1113
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1114
1114
|
);
|
|
1115
1115
|
else {
|
|
1116
1116
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
1117
1117
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
1118
1118
|
`${i.attrName}-${e}${a}`
|
|
1119
|
-
),
|
|
1120
|
-
`${i.attrName}-${
|
|
1119
|
+
), o !== null && o !== "" && this.$el.classList.toggle(
|
|
1120
|
+
`${i.attrName}-${o}${a}`
|
|
1121
1121
|
);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
splitAttrNameFromBreakpoint(t) {
|
|
1125
1125
|
let e = "";
|
|
1126
1126
|
if (["--mobile", "--tablet", "--laptop"].some(
|
|
1127
|
-
(
|
|
1127
|
+
(o) => t.includes(o)
|
|
1128
1128
|
)) {
|
|
1129
|
-
const
|
|
1130
|
-
t =
|
|
1129
|
+
const o = t.split("--");
|
|
1130
|
+
t = o[0], e = `--${o[1]}`;
|
|
1131
1131
|
}
|
|
1132
1132
|
return { attrName: t, breakpoint: e };
|
|
1133
1133
|
}
|
|
1134
|
-
updateAnchorOffset(t, e,
|
|
1135
|
-
if (!w(
|
|
1134
|
+
updateAnchorOffset(t, e, o) {
|
|
1135
|
+
if (!w(o, e)) {
|
|
1136
1136
|
d(
|
|
1137
|
-
`"${e}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${
|
|
1137
|
+
`"${e}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
1138
1138
|
);
|
|
1139
1139
|
return;
|
|
1140
1140
|
}
|
|
1141
|
-
const
|
|
1141
|
+
const r = (i) => {
|
|
1142
1142
|
i !== null && i !== "" && i !== "default" && (this.$el.style.setProperty(
|
|
1143
1143
|
"--container-anchor-offset--mobile",
|
|
1144
1144
|
`var(--px-padding-${i}-mobile)`
|
|
@@ -1150,19 +1150,19 @@ const be = [
|
|
|
1150
1150
|
`var(--px-padding-${i}-laptop)`
|
|
1151
1151
|
));
|
|
1152
1152
|
};
|
|
1153
|
-
|
|
1153
|
+
r(t), r(e);
|
|
1154
1154
|
}
|
|
1155
1155
|
addAnchorClass() {
|
|
1156
1156
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
1157
1157
|
}
|
|
1158
|
-
updateAnchorSpacing(t, e,
|
|
1159
|
-
if (!w(
|
|
1158
|
+
updateAnchorSpacing(t, e, o) {
|
|
1159
|
+
if (!w(o, e)) {
|
|
1160
1160
|
d(
|
|
1161
|
-
`"${e}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${
|
|
1161
|
+
`"${e}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
1162
1162
|
);
|
|
1163
1163
|
return;
|
|
1164
1164
|
}
|
|
1165
|
-
const
|
|
1165
|
+
const r = (i) => {
|
|
1166
1166
|
i !== null && i !== "" && i !== "default" && (this.style.setProperty(
|
|
1167
1167
|
"--container-anchor-spacing--mobile",
|
|
1168
1168
|
`var(--px-spacing-${i}-mobile)`
|
|
@@ -1177,11 +1177,11 @@ const be = [
|
|
|
1177
1177
|
`var(--px-spacing-${i}-desktop)`
|
|
1178
1178
|
));
|
|
1179
1179
|
};
|
|
1180
|
-
|
|
1180
|
+
r(t), r(e);
|
|
1181
1181
|
}
|
|
1182
|
-
updateSubgridRows(t, e,
|
|
1183
|
-
w(
|
|
1184
|
-
`"${
|
|
1182
|
+
updateSubgridRows(t, e, o, r) {
|
|
1183
|
+
w(r, o) ? this.style.setProperty(`--${t}`, o) : d(
|
|
1184
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1185
1185
|
);
|
|
1186
1186
|
}
|
|
1187
1187
|
get $el() {
|
|
@@ -1564,8 +1564,8 @@ const be = [
|
|
|
1564
1564
|
this.setAttribute("subgrid-gap--laptop", t);
|
|
1565
1565
|
}
|
|
1566
1566
|
};
|
|
1567
|
-
|
|
1568
|
-
let F =
|
|
1567
|
+
rt.nativeName = "div";
|
|
1568
|
+
let F = rt;
|
|
1569
1569
|
customElements.get("px-container") || customElements.define("px-container", F);
|
|
1570
1570
|
const Tt = new CSSStyleSheet();
|
|
1571
1571
|
Tt.replaceSync(le);
|
|
@@ -1624,86 +1624,86 @@ class ge extends X {
|
|
|
1624
1624
|
"border-side--laptop"
|
|
1625
1625
|
];
|
|
1626
1626
|
}
|
|
1627
|
-
attributeChangedCallback(t, e,
|
|
1628
|
-
if (e !==
|
|
1627
|
+
attributeChangedCallback(t, e, o) {
|
|
1628
|
+
if (e !== o)
|
|
1629
1629
|
switch (t) {
|
|
1630
1630
|
case "background-color":
|
|
1631
|
-
this.$container.backgroundColor = P.indexOf(
|
|
1631
|
+
this.$container.backgroundColor = P.indexOf(o) > 0 ? o : "none";
|
|
1632
1632
|
break;
|
|
1633
1633
|
case "background-gradient":
|
|
1634
1634
|
this.$container.gradient = this.gradient;
|
|
1635
1635
|
break;
|
|
1636
1636
|
case "background-image":
|
|
1637
|
-
this.$container.backgroundImage =
|
|
1637
|
+
this.$container.backgroundImage = o;
|
|
1638
1638
|
break;
|
|
1639
1639
|
case "background-image--mobile":
|
|
1640
|
-
this.$container.backgroundImageMobile =
|
|
1640
|
+
this.$container.backgroundImageMobile = o;
|
|
1641
1641
|
break;
|
|
1642
1642
|
case "background-image--tablet":
|
|
1643
|
-
this.$container.backgroundImageTablet =
|
|
1643
|
+
this.$container.backgroundImageTablet = o;
|
|
1644
1644
|
break;
|
|
1645
1645
|
case "background-image--laptop":
|
|
1646
|
-
this.$container.backgroundImageLaptop =
|
|
1646
|
+
this.$container.backgroundImageLaptop = o;
|
|
1647
1647
|
break;
|
|
1648
1648
|
case "background-size":
|
|
1649
|
-
this.$container.backgroundSize =
|
|
1649
|
+
this.$container.backgroundSize = o;
|
|
1650
1650
|
break;
|
|
1651
1651
|
case "background-position":
|
|
1652
|
-
this.$container.backgroundPosition =
|
|
1652
|
+
this.$container.backgroundPosition = o;
|
|
1653
1653
|
break;
|
|
1654
1654
|
case "padding-block":
|
|
1655
|
-
this.$container.paddingBlock =
|
|
1655
|
+
this.$container.paddingBlock = o;
|
|
1656
1656
|
break;
|
|
1657
1657
|
case "padding-top":
|
|
1658
|
-
this.$container.paddingTop =
|
|
1658
|
+
this.$container.paddingTop = o;
|
|
1659
1659
|
break;
|
|
1660
1660
|
case "padding-bottom":
|
|
1661
|
-
this.$container.paddingBottom =
|
|
1661
|
+
this.$container.paddingBottom = o;
|
|
1662
1662
|
break;
|
|
1663
1663
|
case "padding-block--mobile":
|
|
1664
|
-
this.$container.paddingBlockMobile =
|
|
1664
|
+
this.$container.paddingBlockMobile = o;
|
|
1665
1665
|
break;
|
|
1666
1666
|
case "padding-top--mobile":
|
|
1667
|
-
this.$container.paddingTopMobile =
|
|
1667
|
+
this.$container.paddingTopMobile = o;
|
|
1668
1668
|
break;
|
|
1669
1669
|
case "padding-bottom--mobile":
|
|
1670
|
-
this.$container.paddingBottomMobile =
|
|
1670
|
+
this.$container.paddingBottomMobile = o;
|
|
1671
1671
|
break;
|
|
1672
1672
|
case "padding-block--tablet":
|
|
1673
|
-
this.$container.paddingBlockTablet =
|
|
1673
|
+
this.$container.paddingBlockTablet = o;
|
|
1674
1674
|
break;
|
|
1675
1675
|
case "padding-top--tablet":
|
|
1676
|
-
this.$container.paddingTopTablet =
|
|
1676
|
+
this.$container.paddingTopTablet = o;
|
|
1677
1677
|
break;
|
|
1678
1678
|
case "padding-bottom--tablet":
|
|
1679
|
-
this.$container.paddingBottomTablet =
|
|
1679
|
+
this.$container.paddingBottomTablet = o;
|
|
1680
1680
|
break;
|
|
1681
1681
|
case "padding-block--laptop":
|
|
1682
|
-
this.$container.paddingBlockLaptop =
|
|
1682
|
+
this.$container.paddingBlockLaptop = o;
|
|
1683
1683
|
break;
|
|
1684
1684
|
case "padding-top--laptop":
|
|
1685
|
-
this.$container.paddingTopLaptop =
|
|
1685
|
+
this.$container.paddingTopLaptop = o;
|
|
1686
1686
|
break;
|
|
1687
1687
|
case "padding-bottom--laptop":
|
|
1688
|
-
this.$container.paddingBottomLaptop =
|
|
1688
|
+
this.$container.paddingBottomLaptop = o;
|
|
1689
1689
|
break;
|
|
1690
1690
|
case "border":
|
|
1691
|
-
this.$container.border =
|
|
1691
|
+
this.$container.border = o;
|
|
1692
1692
|
break;
|
|
1693
1693
|
case "border-side":
|
|
1694
|
-
this.$container.borderSide =
|
|
1694
|
+
this.$container.borderSide = o;
|
|
1695
1695
|
break;
|
|
1696
1696
|
case "border-side--mobile":
|
|
1697
|
-
this.$container.borderSideMobile =
|
|
1697
|
+
this.$container.borderSideMobile = o;
|
|
1698
1698
|
break;
|
|
1699
1699
|
case "border-side--tablet":
|
|
1700
|
-
this.$container.borderSideTablet =
|
|
1700
|
+
this.$container.borderSideTablet = o;
|
|
1701
1701
|
break;
|
|
1702
1702
|
case "border-side--laptop":
|
|
1703
|
-
this.$container.borderSideLaptop =
|
|
1703
|
+
this.$container.borderSideLaptop = o;
|
|
1704
1704
|
break;
|
|
1705
1705
|
default:
|
|
1706
|
-
super.attributeChangedCallback(t, e,
|
|
1706
|
+
super.attributeChangedCallback(t, e, o);
|
|
1707
1707
|
break;
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
@@ -1720,15 +1720,15 @@ class ge extends X {
|
|
|
1720
1720
|
toggleOverlapSpacing() {
|
|
1721
1721
|
const t = this.$slotOverlap, e = this.$mainContentWrapper;
|
|
1722
1722
|
if (!t || !e) return;
|
|
1723
|
-
const
|
|
1724
|
-
e.classList.toggle("overlapped",
|
|
1723
|
+
const r = t.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
|
|
1724
|
+
e.classList.toggle("overlapped", r);
|
|
1725
1725
|
}
|
|
1726
1726
|
isNotEmptyNode(t) {
|
|
1727
1727
|
return t.nodeType === Node.ELEMENT_NODE ? !0 : t.nodeType === Node.TEXT_NODE ? (t.textContent ?? "").trim().length > 0 : !1;
|
|
1728
1728
|
}
|
|
1729
1729
|
setHeadingSpacing() {
|
|
1730
|
-
var
|
|
1731
|
-
const t = this.$slotHeading, e = (
|
|
1730
|
+
var o;
|
|
1731
|
+
const t = this.$slotHeading, e = (o = this.shadowRoot) == null ? void 0 : o.querySelector("px-vstack");
|
|
1732
1732
|
t && e && (t.assignedElements().length > 0 ? e.setAttribute("gap", "heading-to-content") : e.setAttribute("gap", "none"));
|
|
1733
1733
|
}
|
|
1734
1734
|
get $container() {
|
|
@@ -1932,64 +1932,64 @@ const it = class it extends $ {
|
|
|
1932
1932
|
"disabled"
|
|
1933
1933
|
];
|
|
1934
1934
|
}
|
|
1935
|
-
attributeChangedCallback(t, e,
|
|
1936
|
-
if (e !==
|
|
1935
|
+
attributeChangedCallback(t, e, o) {
|
|
1936
|
+
if (e !== o)
|
|
1937
1937
|
switch (t) {
|
|
1938
1938
|
case "variant":
|
|
1939
|
-
this.updateVariant(t, e,
|
|
1939
|
+
this.updateVariant(t, e, o, ht);
|
|
1940
1940
|
break;
|
|
1941
1941
|
case "color":
|
|
1942
|
-
this.updateTypography(t, e,
|
|
1942
|
+
this.updateTypography(t, e, o, Z);
|
|
1943
1943
|
break;
|
|
1944
1944
|
case "font-size":
|
|
1945
|
-
this.updateTypography(t, e,
|
|
1945
|
+
this.updateTypography(t, e, o, ut);
|
|
1946
1946
|
break;
|
|
1947
1947
|
case "font-weight":
|
|
1948
|
-
this.updateTypography(t, e,
|
|
1948
|
+
this.updateTypography(t, e, o, gt);
|
|
1949
1949
|
break;
|
|
1950
1950
|
case "text-align":
|
|
1951
1951
|
case "text-align--mobile":
|
|
1952
1952
|
case "text-align--tablet":
|
|
1953
1953
|
case "text-align--laptop":
|
|
1954
|
-
this.updateTypography(t, e,
|
|
1954
|
+
this.updateTypography(t, e, o, ct);
|
|
1955
1955
|
break;
|
|
1956
1956
|
case "disabled":
|
|
1957
1957
|
this.color = "state-disabled";
|
|
1958
1958
|
break;
|
|
1959
1959
|
default:
|
|
1960
|
-
super.attributeChangedCallback(t, e,
|
|
1960
|
+
super.attributeChangedCallback(t, e, o);
|
|
1961
1961
|
break;
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
1964
|
toggleClass(t, e) {
|
|
1965
1965
|
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
|
|
1966
1966
|
}
|
|
1967
|
-
updateVariant(t, e,
|
|
1968
|
-
this.checkName(
|
|
1969
|
-
`"${
|
|
1967
|
+
updateVariant(t, e, o, r) {
|
|
1968
|
+
this.checkName(r, o) ? this.toggleClass(e, o) : d(
|
|
1969
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1970
1970
|
);
|
|
1971
1971
|
}
|
|
1972
|
-
updateTypography(t, e,
|
|
1973
|
-
if (!this.checkName(
|
|
1972
|
+
updateTypography(t, e, o, r) {
|
|
1973
|
+
if (!this.checkName(r, o))
|
|
1974
1974
|
d(
|
|
1975
|
-
`"${
|
|
1975
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1976
1976
|
);
|
|
1977
1977
|
else {
|
|
1978
1978
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
1979
1979
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
1980
1980
|
`${i.attrName}-${e}${a}`
|
|
1981
|
-
),
|
|
1982
|
-
`${i.attrName}-${
|
|
1981
|
+
), o !== null && o !== "" && this.$el.classList.toggle(
|
|
1982
|
+
`${i.attrName}-${o}${a}`
|
|
1983
1983
|
);
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
1986
1986
|
splitAttrNameFromBreakpoint(t) {
|
|
1987
1987
|
let e = "";
|
|
1988
1988
|
if (["--mobile", "--tablet", "--laptop"].some(
|
|
1989
|
-
(
|
|
1989
|
+
(o) => t.includes(o)
|
|
1990
1990
|
)) {
|
|
1991
|
-
const
|
|
1992
|
-
t =
|
|
1991
|
+
const o = t.split("--");
|
|
1992
|
+
t = o[0], e = `--${o[1]}`;
|
|
1993
1993
|
}
|
|
1994
1994
|
return { attrName: t, breakpoint: e };
|
|
1995
1995
|
}
|
|
@@ -2060,7 +2060,7 @@ customElements.get("px-p") || customElements.define("px-p", G);
|
|
|
2060
2060
|
class xe extends HTMLElement {
|
|
2061
2061
|
constructor() {
|
|
2062
2062
|
super(), this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = `
|
|
2063
|
-
<button aria-hidden="true" style="width: 0; height: 0; border: 0; background-color: #00000000;"></button>
|
|
2063
|
+
<button aria-hidden="true" style="width: 0; height: 0; padding: 0; border: 0; background-color: #00000000;"></button>
|
|
2064
2064
|
`;
|
|
2065
2065
|
}
|
|
2066
2066
|
connectedCallback() {
|
|
@@ -2072,7 +2072,7 @@ class xe extends HTMLElement {
|
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
2074
|
customElements.get("px-mdd-closer") || customElements.define("px-mdd-closer", xe);
|
|
2075
|
-
const ve = ":host{--mdd-dialog-offset-top: 0}dialog{border:none;width:100%;margin-inline:0;margin-top:var(--mdd-dialog-offset-top);max-width:100%;max-height:100
|
|
2075
|
+
const ve = ":host{--mdd-dialog-offset-top: 0}dialog{border:none;width:100%;padding:0;margin-inline:0;margin-top:var(--mdd-dialog-offset-top);max-width:100%;max-height:calc(100% - var(--mdd-dialog-offset-top));background-color:var(--px-color-background-surface-default)}px-mdd-closer{display:contents}@keyframes slide-left-fade-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}dialog::backdrop{background-color:#0000}@media screen and (max-height: 17.813rem){dialog #footer{position:static}dialog::backdrop{background-color:#0006}}@media screen and (max-width: 64rem){dialog{max-height:100%;height:100dvh;margin:0;padding:0;animation:slide-left-fade-in .3s ease-in-out}px-container{height:100dvh}px-container>px-vstack px-button-icon:not(#mobile-close-button){position:initial;display:none;right:0}px-container>px-vstack>px-mdd-closer{display:none}dialog::backdrop{background-color:var(--px-color-background-surface-default)}}px-container{position:relative}px-container>px-vstack>px-button-icon{position:absolute;top:var(--px-padding-l-laptop);right:0}@media screen and (min-width: 90.0625rem){px-container>px-vstack>px-button-icon{top:var(--px-padding-l-desktop)}}#sections-container{overflow:auto}@media only screen and (min-width: 64.0625rem){#sections-container{padding-bottom:0;max-width:calc(100% - var(--px-spacing-default-laptop) - var(--px-size-icon-xs) - var(--px-padding-2xs-laptop) - var(--px-padding-2xs-laptop))}}@media screen and (min-width: 90.0625rem){#sections-container{max-width:calc(100% - var(--px-spacing-default-desktop) - var(--px-size-icon-xs) - var(--px-padding-2xs-desktop) - var(--px-padding-2xs-desktop))}}#mobile-header{display:none}@media screen and (max-width: 64rem){#mobile-header{display:block}}@media screen and (max-width: 47.938rem){#mobile-header{padding-bottom:var(--px-spacing-page-layout-between-sections-mobile)}}@media screen and (min-width: 48rem) and (max-width: 64rem){#mobile-header{padding-bottom:var(--px-spacing-page-layout-between-sections-tablet)}}px-p{display:none}@media screen and (max-width: 64rem){px-p{display:block}}@media screen and (max-width: 47.938rem){px-p{padding-bottom:var(--px-spacing-page-layout-between-sections-mobile)}}@media screen and (min-width: 48rem) and (max-width: 64rem){px-p{padding-bottom:var(--px-spacing-page-layout-between-sections-tablet)}}#footer{display:none}@media screen and (max-width: 64rem){#footer{display:block;position:absolute;bottom:0;left:0;right:0;background-color:var(--px-color-background-container-light-default);border-top:var(--px-size-border-m) solid var(--px-color-border-main-default)}}@media screen and (max-width: 47.938rem){#footer{padding:var(--px-padding-m-mobile) var(--px-padding-s-mobile)}}@media screen and (min-width: 48rem) and (max-width: 64rem){#footer{padding:var(--px-padding-m-tablet) var(--px-padding-s-tablet)}}", Rt = new CSSStyleSheet();
|
|
2076
2076
|
Rt.replaceSync(ve);
|
|
2077
2077
|
var y, p, Y, It, S, jt;
|
|
2078
2078
|
class me extends HTMLElement {
|
|
@@ -2087,6 +2087,7 @@ class me extends HTMLElement {
|
|
|
2087
2087
|
padding-inline="none"
|
|
2088
2088
|
padding-block="l"
|
|
2089
2089
|
padding-block--mobile="m"
|
|
2090
|
+
padding-block--tablet="m"
|
|
2090
2091
|
background-color="none"
|
|
2091
2092
|
>
|
|
2092
2093
|
<px-vstack>
|
|
@@ -2100,6 +2101,7 @@ class me extends HTMLElement {
|
|
|
2100
2101
|
<px-button-icon
|
|
2101
2102
|
size="small"
|
|
2102
2103
|
variant="secondary"
|
|
2104
|
+
id="mobile-close-button"
|
|
2103
2105
|
>
|
|
2104
2106
|
<px-icon name="cross" from="lavender" aria-label="${this.closeButtonAriaLabel || "Close"}" title="${this.closeButtonAriaLabel || "Close"}"></px-icon>
|
|
2105
2107
|
</px-button-icon>
|
|
@@ -2118,9 +2120,15 @@ class me extends HTMLElement {
|
|
|
2118
2120
|
</px-button-icon>
|
|
2119
2121
|
<px-stack
|
|
2120
2122
|
direction--mobile="column"
|
|
2123
|
+
direction--tablet="column"
|
|
2121
2124
|
direction="row"
|
|
2122
|
-
gap="
|
|
2125
|
+
gap="default"
|
|
2123
2126
|
gap--mobile="page-layout-between-sections"
|
|
2127
|
+
gap--tablet="page-layout-between-sections"
|
|
2128
|
+
wrap="wrap"
|
|
2129
|
+
wrap--mobile="nowrap"
|
|
2130
|
+
wrap--tablet="nowrap"
|
|
2131
|
+
grow="1"
|
|
2124
2132
|
id="sections-container"
|
|
2125
2133
|
>
|
|
2126
2134
|
<slot></slot>
|
|
@@ -2143,15 +2151,15 @@ class me extends HTMLElement {
|
|
|
2143
2151
|
return ["hidden", "name", "close-button-aria-label", "back-to-menu-label"];
|
|
2144
2152
|
}
|
|
2145
2153
|
connectedCallback() {
|
|
2146
|
-
var e,
|
|
2154
|
+
var e, o;
|
|
2147
2155
|
if (this.role = "menu", this.querySelectorAll("px-mdd-section").length === 0)
|
|
2148
2156
|
throw new Error("HeaderPanel must contain at least one MenuSection");
|
|
2149
|
-
this.hidden = !0, this.internals && (this.internals.ariaHidden = "true"), this.ariaHidden = "true", this.setAttribute("slot", "header-panels"), this.shadowRoot.addEventListener("click", (
|
|
2150
|
-
if (
|
|
2157
|
+
this.hidden = !0, this.internals && (this.internals.ariaHidden = "true"), this.ariaHidden = "true", this.setAttribute("slot", "header-panels"), this.shadowRoot.addEventListener("click", (r) => {
|
|
2158
|
+
if (r.target.closest("px-button-icon"))
|
|
2151
2159
|
this.dispatchEvent(
|
|
2152
2160
|
new CustomEvent("close-panel", { bubbles: !0, composed: !0 })
|
|
2153
2161
|
);
|
|
2154
|
-
else if (
|
|
2162
|
+
else if (r.target.closest("#back-button")) {
|
|
2155
2163
|
const i = new CustomEvent("back-to-mobile-menu", {
|
|
2156
2164
|
bubbles: !0,
|
|
2157
2165
|
composed: !0
|
|
@@ -2160,30 +2168,30 @@ class me extends HTMLElement {
|
|
|
2160
2168
|
}
|
|
2161
2169
|
}), this.$dialog.addEventListener("cancel", () => {
|
|
2162
2170
|
this.dispatchEvent(new CustomEvent("close-panel", { bubbles: !0 }));
|
|
2163
|
-
}), this.$dialog.addEventListener("click", (
|
|
2164
|
-
|
|
2171
|
+
}), this.$dialog.addEventListener("click", (r) => {
|
|
2172
|
+
r.target === this.$dialog && this.dispatchEvent(
|
|
2165
2173
|
new CustomEvent("close-panel-from-dialog", {
|
|
2166
2174
|
bubbles: !0,
|
|
2167
2175
|
detail: {
|
|
2168
|
-
clientX:
|
|
2169
|
-
clientY:
|
|
2176
|
+
clientX: r.clientX,
|
|
2177
|
+
clientY: r.clientY
|
|
2170
2178
|
}
|
|
2171
2179
|
})
|
|
2172
2180
|
);
|
|
2173
|
-
}), this.getAttribute("name") === "__lavender_mobile_menu" && (n(this, p, Y).style.display = "none"), this.getAttribute("name") !== "__lavender_mobile_menu" && (n(this, p, It).innerText = ((
|
|
2181
|
+
}), this.getAttribute("name") === "__lavender_mobile_menu" && (n(this, p, Y).style.display = "none"), this.getAttribute("name") !== "__lavender_mobile_menu" && (n(this, p, It).innerText = ((o = (e = this.closest("px-header")) == null ? void 0 : e.querySelector(
|
|
2174
2182
|
`px-header-item[for="${this.getAttribute("name")}"]`
|
|
2175
|
-
)) == null ? void 0 :
|
|
2183
|
+
)) == null ? void 0 : o.innerText) ?? ""), this.$slotMddFooter || (n(this, p, S).style.display = "none"), k(this, y, new MutationObserver(() => {
|
|
2176
2184
|
this.$slotMddFooter && (n(this, p, S).style.display = "block");
|
|
2177
2185
|
})), n(this, y).observe(this, { childList: !0, subtree: !0 });
|
|
2178
2186
|
}
|
|
2179
2187
|
disconnectedCallback() {
|
|
2180
2188
|
n(this, y).disconnect();
|
|
2181
2189
|
}
|
|
2182
|
-
attributeChangedCallback(e,
|
|
2183
|
-
if (e === "name" && !
|
|
2190
|
+
attributeChangedCallback(e, o, r) {
|
|
2191
|
+
if (e === "name" && !r)
|
|
2184
2192
|
throw new Error("Media Drop Down must have a name attribute");
|
|
2185
|
-
if (e === "name" && (this.id =
|
|
2186
|
-
const i =
|
|
2193
|
+
if (e === "name" && (this.id = r), e === "hidden" && this.internals) {
|
|
2194
|
+
const i = r === "true" || r === "" ? "true" : "false";
|
|
2187
2195
|
this.internals.ariaHidden = i, this.ariaHidden = i;
|
|
2188
2196
|
const l = n(this, p, S).offsetHeight / parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
2189
2197
|
this.style.setProperty(
|
|
@@ -2192,10 +2200,10 @@ class me extends HTMLElement {
|
|
|
2192
2200
|
);
|
|
2193
2201
|
}
|
|
2194
2202
|
e === "close-button-aria-label" && n(this, p, jt).forEach((i) => {
|
|
2195
|
-
|
|
2203
|
+
r ? i.setAttribute("aria-label", r || "Close") : i.removeAttribute("aria-label");
|
|
2196
2204
|
}), e === "back-to-menu-label" && (n(this, p, Y).innerHTML = `
|
|
2197
2205
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
2198
|
-
${
|
|
2206
|
+
${r || "Back to menu"}
|
|
2199
2207
|
`);
|
|
2200
2208
|
}
|
|
2201
2209
|
get $dialog() {
|
|
@@ -2246,7 +2254,7 @@ y = new WeakMap(), p = new WeakSet(), Y = function() {
|
|
|
2246
2254
|
return this.shadowRoot.querySelectorAll("px-button-icon");
|
|
2247
2255
|
};
|
|
2248
2256
|
customElements.get("px-mdd") || customElements.define("px-mdd", me);
|
|
2249
|
-
const fe = ':host{flex-basis:
|
|
2257
|
+
const fe = ':host{flex-basis:30%}@media screen and (max-width: 64rem){:host{width:100%;flex-basis:100%}#section-wrapper{background-color:var(--px-color-background-surface-light);border-radius:var(--px-radius-main);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile)}::slotted(px-mdd-section-item){border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}::slotted(px-mdd-section-item:first-of-type){padding-top:0}::slotted(px-mdd-section-item:last-of-type){padding-bottom:0;border-bottom:none}::slotted([slot="footer"]){background-color:var(--px-color-background-surface-light);border-radius:var(--px-radius-main)}:host([title-hidden]){padding-bottom:var(--mdd-section-container-padding-bottom, 0)}}@media screen and (max-width: 47.938rem){#section-wrapper{padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile)}::slotted(px-mdd-section-item){padding-block:var(--px-spacing-xs-mobile)}::slotted([slot="footer"]){padding:var(--px-padding-s-mobile) var(--px-padding-m-mobile)}}@media screen and (min-width: 48rem) and (max-width: 64rem){#section-wrapper{padding:var(--px-padding-xs-tablet) var(--px-padding-m-tablet)}::slotted(px-mdd-section-item){padding-block:var(--px-spacing-xs-tablet)}::slotted([slot="footer"]){padding:var(--px-padding-s-tablet) var(--px-padding-m-tablet)}}', Pt = new CSSStyleSheet();
|
|
2250
2258
|
Pt.replaceSync(fe);
|
|
2251
2259
|
class ke extends HTMLElement {
|
|
2252
2260
|
constructor() {
|
|
@@ -2270,11 +2278,11 @@ class ke extends HTMLElement {
|
|
|
2270
2278
|
static get observedAttributes() {
|
|
2271
2279
|
return ["title-hidden"];
|
|
2272
2280
|
}
|
|
2273
|
-
attributeChangedCallback(t, e,
|
|
2274
|
-
if (e !==
|
|
2281
|
+
attributeChangedCallback(t, e, o) {
|
|
2282
|
+
if (e !== o)
|
|
2275
2283
|
switch (t) {
|
|
2276
2284
|
case "title-hidden":
|
|
2277
|
-
this.$title.style.display =
|
|
2285
|
+
this.$title.style.display = o !== null ? "none" : "block";
|
|
2278
2286
|
break;
|
|
2279
2287
|
}
|
|
2280
2288
|
}
|
|
@@ -2313,7 +2321,8 @@ const ye = [...ut, "link-m", "link-s"], lt = [
|
|
|
2313
2321
|
"btn-default",
|
|
2314
2322
|
"btn-secondary",
|
|
2315
2323
|
"btn-tertiary",
|
|
2316
|
-
"icon-link"
|
|
2324
|
+
"icon-link",
|
|
2325
|
+
"wrapper"
|
|
2317
2326
|
], Ae = ["", "default", "alternative"], M = class M extends $ {
|
|
2318
2327
|
constructor() {
|
|
2319
2328
|
super(Ht, Ot, qt), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
|
|
@@ -2347,62 +2356,62 @@ const ye = [...ut, "link-m", "link-s"], lt = [
|
|
|
2347
2356
|
}
|
|
2348
2357
|
disconnectedCallback() {
|
|
2349
2358
|
}
|
|
2350
|
-
attributeChangedCallback(t, e,
|
|
2351
|
-
if (e !==
|
|
2359
|
+
attributeChangedCallback(t, e, o) {
|
|
2360
|
+
if (e !== o)
|
|
2352
2361
|
switch (t) {
|
|
2353
2362
|
case "disabled":
|
|
2354
|
-
this.$el.toggleAttribute("aria-disabled"),
|
|
2363
|
+
this.$el.toggleAttribute("aria-disabled"), o !== null && this.$el.setAttribute("aria-disabled", "true");
|
|
2355
2364
|
break;
|
|
2356
2365
|
case "variant":
|
|
2357
|
-
this.updateVariant(e,
|
|
2366
|
+
this.updateVariant(e, o);
|
|
2358
2367
|
break;
|
|
2359
2368
|
case "shape":
|
|
2360
2369
|
case "shape--mobile":
|
|
2361
2370
|
case "shape--tablet":
|
|
2362
2371
|
case "shape--laptop":
|
|
2363
2372
|
case "shape--desktop":
|
|
2364
|
-
this.updateShape(t,
|
|
2373
|
+
this.updateShape(t, o, Ae);
|
|
2365
2374
|
break;
|
|
2366
2375
|
case "extended":
|
|
2367
2376
|
case "extended--mobile":
|
|
2368
2377
|
case "extended--tablet":
|
|
2369
2378
|
case "extended--laptop":
|
|
2370
2379
|
case "extended--desktop":
|
|
2371
|
-
this.updateExtended(t,
|
|
2380
|
+
this.updateExtended(t, o);
|
|
2372
2381
|
break;
|
|
2373
2382
|
case "font-size":
|
|
2374
2383
|
this.updateTypography(
|
|
2375
2384
|
t,
|
|
2376
2385
|
e,
|
|
2377
|
-
|
|
2386
|
+
o,
|
|
2378
2387
|
ye
|
|
2379
2388
|
);
|
|
2380
2389
|
break;
|
|
2381
2390
|
case "color":
|
|
2382
|
-
this.updateTypography(t, e,
|
|
2391
|
+
this.updateTypography(t, e, o, Z);
|
|
2383
2392
|
break;
|
|
2384
2393
|
case "font-weight":
|
|
2385
|
-
this.updateTypography(t, e,
|
|
2394
|
+
this.updateTypography(t, e, o, gt);
|
|
2386
2395
|
break;
|
|
2387
2396
|
case "title":
|
|
2388
|
-
|
|
2397
|
+
o && (this.$el.setAttribute("title", o), this.removeAttribute("title"));
|
|
2389
2398
|
break;
|
|
2390
2399
|
default:
|
|
2391
|
-
super.attributeChangedCallback(t, e,
|
|
2400
|
+
super.attributeChangedCallback(t, e, o);
|
|
2392
2401
|
break;
|
|
2393
2402
|
}
|
|
2394
2403
|
}
|
|
2395
2404
|
configureBeforeAfterIcon(t) {
|
|
2396
|
-
const e = t.getAttribute("size"),
|
|
2405
|
+
const e = t.getAttribute("size"), o = t.getAttribute("color");
|
|
2397
2406
|
t.addEventListener("click", () => {
|
|
2398
2407
|
this.$el.focus();
|
|
2399
|
-
}), e || t.setAttribute("size", "xs"),
|
|
2408
|
+
}), e || t.setAttribute("size", "xs"), o || t.setAttribute("color", "inherit");
|
|
2400
2409
|
}
|
|
2401
2410
|
_toggleClassList(t) {
|
|
2402
2411
|
if (t.startsWith("btn-")) {
|
|
2403
2412
|
const e = t.split("-");
|
|
2404
|
-
for (const
|
|
2405
|
-
this.$el.classList.toggle(
|
|
2413
|
+
for (const o of e)
|
|
2414
|
+
this.$el.classList.toggle(o);
|
|
2406
2415
|
} else
|
|
2407
2416
|
this.$el.classList.toggle(t);
|
|
2408
2417
|
}
|
|
@@ -2411,18 +2420,18 @@ const ye = [...ut, "link-m", "link-s"], lt = [
|
|
|
2411
2420
|
`"${e}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${lt.join('", "')}".`
|
|
2412
2421
|
);
|
|
2413
2422
|
}
|
|
2414
|
-
updateShape(t, e,
|
|
2415
|
-
if (!w(
|
|
2423
|
+
updateShape(t, e, o) {
|
|
2424
|
+
if (!w(o, e)) {
|
|
2416
2425
|
d(
|
|
2417
|
-
`"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${
|
|
2426
|
+
`"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
2418
2427
|
);
|
|
2419
2428
|
return;
|
|
2420
2429
|
}
|
|
2421
2430
|
e !== null && e !== "" && this.$el.setAttribute(t, e);
|
|
2422
2431
|
}
|
|
2423
|
-
updateTypography(t, e,
|
|
2424
|
-
e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`),
|
|
2425
|
-
`"${
|
|
2432
|
+
updateTypography(t, e, o, r) {
|
|
2433
|
+
e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`), o !== null && o !== "" && o !== "default" && this.$el.classList.toggle(`${t}-${o}`), this.checkName(r, o) || d(
|
|
2434
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
2426
2435
|
);
|
|
2427
2436
|
}
|
|
2428
2437
|
updateExtended(t, e) {
|
|
@@ -2563,14 +2572,14 @@ class ze extends L {
|
|
|
2563
2572
|
disconnectedCallback() {
|
|
2564
2573
|
super.disconnectedCallback(), n(this, f).disconnect();
|
|
2565
2574
|
}
|
|
2566
|
-
attributeChangedCallback(e,
|
|
2567
|
-
if (
|
|
2575
|
+
attributeChangedCallback(e, o, r) {
|
|
2576
|
+
if (o !== r)
|
|
2568
2577
|
switch (e) {
|
|
2569
2578
|
case "disabled":
|
|
2570
|
-
super.attributeChangedCallback(e,
|
|
2579
|
+
super.attributeChangedCallback(e, o, r), r !== null && n(this, f).clearInteractiveState();
|
|
2571
2580
|
break;
|
|
2572
2581
|
default:
|
|
2573
|
-
super.attributeChangedCallback(e,
|
|
2582
|
+
super.attributeChangedCallback(e, o, r);
|
|
2574
2583
|
break;
|
|
2575
2584
|
}
|
|
2576
2585
|
}
|
|
@@ -2579,7 +2588,7 @@ f = new WeakMap(), R = new WeakSet(), Dt = function() {
|
|
|
2579
2588
|
return !this.hasAttribute("disabled") && this.$el.getAttribute("aria-disabled") !== "true";
|
|
2580
2589
|
};
|
|
2581
2590
|
customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper", ze);
|
|
2582
|
-
const we = '.mdd-section-item-action-container{display:inline-flex;align-items:center}a{text-decoration:none;color:inherit}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a:hover{text-decoration:underline;color:var(--px-color-text-state-hover-default)}button{background:none;border:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;width:100%;text-align:left;font-weight:var(--px-font-weight-title)}a,button{display:block;font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media screen and (max-width: 47.9375rem){a,button{padding:var(--px-spacing-
|
|
2591
|
+
const we = '.mdd-section-item-action-container{display:inline-flex;align-items:center}a{text-decoration:none;color:inherit}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a:hover{text-decoration:underline;color:var(--px-color-text-state-hover-default)}button{background:none;border:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;width:100%;text-align:left;font-weight:var(--px-font-weight-title)}a,button{display:block;font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media screen and (max-width: 47.9375rem){a,button{padding:var(--px-spacing-xs-mobile) 0}}@media screen and (min-width: 48rem) and (max-width: 64rem){a,button{padding:var(--px-spacing-xs-tablet) 0}}@media screen and (min-width: 48rem){a,button{font-size:var(--px-text-size-label-m-tablet)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media screen and (min-width: 64.0625rem){a{display:inline-block}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a,button{font-size:var(--px-text-size-label-m-laptop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media screen and (min-width: 90.0625rem){a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a,button{font-size:var(--px-text-size-label-m-desktop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}', Nt = new CSSStyleSheet();
|
|
2583
2592
|
Nt.replaceSync(we);
|
|
2584
2593
|
class $e extends HTMLElement {
|
|
2585
2594
|
constructor() {
|
|
@@ -2598,8 +2607,8 @@ class $e extends HTMLElement {
|
|
|
2598
2607
|
return ["href", "for"];
|
|
2599
2608
|
}
|
|
2600
2609
|
// ... existing code ...
|
|
2601
|
-
attributeChangedCallback(t, e,
|
|
2602
|
-
this.updateView(t,
|
|
2610
|
+
attributeChangedCallback(t, e, o) {
|
|
2611
|
+
this.updateView(t, o);
|
|
2603
2612
|
}
|
|
2604
2613
|
updateView(t, e) {
|
|
2605
2614
|
t === "href" && this.$link ? this.$link.href = e : t === "href" && !this.$link && e ? (this.shadowRoot.innerHTML = `<a href="${e}">${this.template}</a>`, this.shadowRoot.firstElementChild.setAttribute("tabindex", "0"), this.$arrowIcon.style.display = "none") : t === "for" && !this.$button && e && (this.shadowRoot.innerHTML = `<button>${this.template}</button>`, this.shadowRoot.firstElementChild.setAttribute("tabindex", "0"));
|