@proximus/lavender-mega-dropdown 2.0.0-alpha.11 → 2.0.0-alpha.110
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 +577 -292
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var at = (s) => {
|
|
2
2
|
throw TypeError(s);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var n = (s, t, e) => (
|
|
6
|
-
import { PxElement as
|
|
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, 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
|
+
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 it = `.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-state-active-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){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) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-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)[disabled],.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-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).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)[shape=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-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)[shape=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-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-icon-xs);height:var(--px-size-icon-xs);padding:4px;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;width:inherit;height:inherit}.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-icon-xs);height:var(--px-size-icon-xs);padding:4px;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{display:flex;justify-content:space-between;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);touch-action:manipulation}.btn.header-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='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' 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='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default)}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)}: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-state-active-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag){color:var(--px-color-text-brand-default);background:var(--px-color-background-container-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.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)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[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).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)}@media only screen and (max-width: 47.938em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-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)[shape--mobile=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-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 only screen and (min-width: 48em) and (max-width: 64em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-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)[shape--tablet=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-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 only screen and (min-width: 48em){.btn{width:var(--button-extended--tablet, 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(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-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 ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.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);font-size:var(--px-text-size-label-m-tablet);border:none;padding:0;border-radius:0;background:none}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-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)[shape--laptop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-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 only screen and (min-width: 64.0625em){.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){padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-laptop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-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 ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-laptop) var(--px-padding-s-laptop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-laptop);padding:0}}@media only screen and (min-width: 90.0625em){.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)[shape--desktop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-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)[shape--desktop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-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){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-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 ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-desktop);padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`, at = ':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{text-decoration:none}a.no-style:hover,a.no-style:focus-visible{color:inherit}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 only screen and (min-width: 768px){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 only screen and (min-width: 1025px){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 only screen and (min-width: 90.0625em){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)}}', Ht = ".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 only screen and (min-width: 768px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1025px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1441px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}", Ot = ":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 only screen and (min-width: 768px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}@media only screen and (min-width: 1025px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}", st = new CSSStyleSheet(), nt = new CSSStyleSheet(), dt = new CSSStyleSheet(), lt = new CSSStyleSheet();
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
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-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media screen and (min-width: 64.0625rem){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@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-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}@media screen and (min-width: 64.0625rem){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}", mt = new CSSStyleSheet(), ft = new CSSStyleSheet(), kt = new CSSStyleSheet(), yt = new CSSStyleSheet();
|
|
9
|
+
mt.replaceSync(xt);
|
|
10
|
+
ft.replaceSync(vt);
|
|
11
|
+
kt.replaceSync(Ut);
|
|
12
|
+
yt.replaceSync(Jt);
|
|
13
|
+
const dt = [
|
|
14
14
|
"",
|
|
15
15
|
"default",
|
|
16
16
|
"secondary",
|
|
@@ -21,16 +21,17 @@ const _t = [
|
|
|
21
21
|
"patch-black-friday",
|
|
22
22
|
"patch-eco",
|
|
23
23
|
"actionable-tag",
|
|
24
|
-
"header-dropdown"
|
|
25
|
-
|
|
24
|
+
"header-dropdown",
|
|
25
|
+
"header-minimal-dropdown"
|
|
26
|
+
], Qt = [
|
|
26
27
|
"",
|
|
27
28
|
"default",
|
|
28
29
|
"bottom-right",
|
|
29
30
|
"bottom-left",
|
|
30
31
|
"alternative"
|
|
31
|
-
],
|
|
32
|
+
], U = class U extends $ {
|
|
32
33
|
constructor() {
|
|
33
|
-
super(
|
|
34
|
+
super(mt, ft, kt, yt), this.template = () => `<button class="btn">
|
|
34
35
|
<slot name="before"></slot><slot></slot><slot name="after"></slot>
|
|
35
36
|
</button>`, this.shadowRoot.innerHTML = this.template();
|
|
36
37
|
}
|
|
@@ -55,14 +56,13 @@ const _t = [
|
|
|
55
56
|
];
|
|
56
57
|
}
|
|
57
58
|
connectedCallback() {
|
|
58
|
-
super.connectedCallback();
|
|
59
59
|
const t = this.querySelectorAll("px-icon");
|
|
60
60
|
t && t.forEach((e) => {
|
|
61
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
66
|
var o;
|
|
67
67
|
e.preventDefault(), (o = this.closest("form")) == null || o.submit();
|
|
68
68
|
}), this.$el.type === "reset" && this.addEventListener("click", (e) => {
|
|
@@ -70,6 +70,8 @@ const _t = [
|
|
|
70
70
|
e.preventDefault(), (o = this.closest("form")) == null || o.reset();
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
+
disconnectedCallback() {
|
|
74
|
+
}
|
|
73
75
|
attributeChangedCallback(t, e, o) {
|
|
74
76
|
if (e !== o)
|
|
75
77
|
switch (t) {
|
|
@@ -89,12 +91,15 @@ const _t = [
|
|
|
89
91
|
case "loading":
|
|
90
92
|
this.updateLoading();
|
|
91
93
|
break;
|
|
94
|
+
case "disabled":
|
|
95
|
+
super.attributeChangedCallback(t, e, o);
|
|
96
|
+
break;
|
|
92
97
|
case "shape":
|
|
93
98
|
case "shape--mobile":
|
|
94
99
|
case "shape--tablet":
|
|
95
100
|
case "shape--laptop":
|
|
96
101
|
case "shape--desktop":
|
|
97
|
-
this.updateShape(t, o,
|
|
102
|
+
this.updateShape(t, o, Qt);
|
|
98
103
|
break;
|
|
99
104
|
case "aria-expanded":
|
|
100
105
|
o && (this.$el.setAttribute("aria-expanded", o), this.removeAttribute("aria-expanded"));
|
|
@@ -116,13 +121,15 @@ const _t = [
|
|
|
116
121
|
t !== null && t !== "" && t !== "default" && this.checkClass(t), e !== null && e !== "" && e !== "default" && this.checkClass(e);
|
|
117
122
|
}
|
|
118
123
|
updateVariant(t, e) {
|
|
119
|
-
e === "link" ? this.$el.classList.remove("btn") : this.$el.classList.add("btn"), this._toggleClass(t, e), this.checkName(
|
|
120
|
-
|
|
124
|
+
e === "link" ? this.$el.classList.remove("btn") : this.$el.classList.add("btn"), this._toggleClass(t, e), this.checkName(dt, e) || d(
|
|
125
|
+
`"${e}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${dt.join('", "')}".`
|
|
121
126
|
);
|
|
122
127
|
}
|
|
123
128
|
updateState(t, e) {
|
|
124
129
|
const o = ["", "default", "success", "error"];
|
|
125
|
-
this._toggleClass(t, e), this.checkName(o, e) ||
|
|
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
|
+
);
|
|
126
133
|
}
|
|
127
134
|
updateExtended(t, e) {
|
|
128
135
|
e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
|
|
@@ -132,8 +139,10 @@ const _t = [
|
|
|
132
139
|
t && (t.getAttribute("size") || t.setAttribute("size", "xs")), this.$el.classList.toggle("loading");
|
|
133
140
|
}
|
|
134
141
|
updateShape(t, e, o) {
|
|
135
|
-
if (!
|
|
136
|
-
|
|
142
|
+
if (!w(o, e)) {
|
|
143
|
+
d(
|
|
144
|
+
`"${e}" is not a valid shape value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
145
|
+
);
|
|
137
146
|
return;
|
|
138
147
|
}
|
|
139
148
|
e !== null && e !== "" && this.$el.setAttribute(t, e);
|
|
@@ -229,10 +238,47 @@ const _t = [
|
|
|
229
238
|
t ? this.setAttribute("aria-expanded", t) : this.removeAttribute("aria-expanded");
|
|
230
239
|
}
|
|
231
240
|
};
|
|
232
|
-
|
|
233
|
-
let
|
|
234
|
-
customElements.get("px-button") || customElements.define("px-button",
|
|
235
|
-
|
|
241
|
+
U.nativeName = "button";
|
|
242
|
+
let C = U;
|
|
243
|
+
customElements.get("px-button") || customElements.define("px-button", C);
|
|
244
|
+
var x, T, At;
|
|
245
|
+
class Vt extends C {
|
|
246
|
+
constructor() {
|
|
247
|
+
super();
|
|
248
|
+
c(this, T);
|
|
249
|
+
c(this, x);
|
|
250
|
+
this.$el.classList.remove("btn"), this.$el.classList.add("wrapper"), k(this, x, new bt(
|
|
251
|
+
this,
|
|
252
|
+
this.$el,
|
|
253
|
+
() => j(this, T, At).call(this)
|
|
254
|
+
));
|
|
255
|
+
}
|
|
256
|
+
connectedCallback() {
|
|
257
|
+
super.connectedCallback(), n(this, x).connect();
|
|
258
|
+
}
|
|
259
|
+
disconnectedCallback() {
|
|
260
|
+
super.disconnectedCallback(), n(this, x).disconnect();
|
|
261
|
+
}
|
|
262
|
+
attributeChangedCallback(e, o, r) {
|
|
263
|
+
if (o !== r)
|
|
264
|
+
switch (e) {
|
|
265
|
+
case "loading":
|
|
266
|
+
super.attributeChangedCallback(e, o, r), r !== null && n(this, x).clearInteractiveState();
|
|
267
|
+
break;
|
|
268
|
+
case "disabled":
|
|
269
|
+
super.attributeChangedCallback(e, o, r), r !== null && n(this, x).clearInteractiveState();
|
|
270
|
+
break;
|
|
271
|
+
default:
|
|
272
|
+
super.attributeChangedCallback(e, o, r);
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
x = new WeakMap(), T = new WeakSet(), At = function() {
|
|
278
|
+
return !this.hasAttribute("disabled") && !this.$el.hasAttribute("disabled") && this.getAttribute("aria-disabled") !== "true" && this.$el.getAttribute("aria-disabled") !== "true" && !this.hasAttribute("loading");
|
|
279
|
+
};
|
|
280
|
+
customElements.get("px-button-wrapper") || customElements.define("px-button-wrapper", Vt);
|
|
281
|
+
class te extends HTMLElement {
|
|
236
282
|
constructor() {
|
|
237
283
|
super();
|
|
238
284
|
}
|
|
@@ -265,8 +311,8 @@ class Wt extends HTMLElement {
|
|
|
265
311
|
t && t.remove();
|
|
266
312
|
}
|
|
267
313
|
}
|
|
268
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
269
|
-
const
|
|
314
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", te);
|
|
315
|
+
const ee = [
|
|
270
316
|
"Brand",
|
|
271
317
|
"Accent",
|
|
272
318
|
"Neutral",
|
|
@@ -279,33 +325,33 @@ const jt = [
|
|
|
279
325
|
"StateHover",
|
|
280
326
|
"StateActive",
|
|
281
327
|
"StateDisabled"
|
|
282
|
-
],
|
|
328
|
+
], oe = ["Inherit", ...ee].map(
|
|
283
329
|
(s) => s.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)
|
|
284
|
-
),
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
"size",
|
|
289
|
-
"color",
|
|
290
|
-
"aria-label",
|
|
291
|
-
"inverted",
|
|
292
|
-
"from",
|
|
293
|
-
"disabled"
|
|
294
|
-
];
|
|
295
|
-
var u, p, z;
|
|
296
|
-
class Kt extends Lt {
|
|
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
|
+
var m, b, E;
|
|
333
|
+
class ie extends X {
|
|
297
334
|
constructor(...e) {
|
|
298
335
|
var o;
|
|
299
|
-
super(...e,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
<use
|
|
336
|
+
super(...e, zt);
|
|
337
|
+
c(this, m);
|
|
338
|
+
c(this, b);
|
|
339
|
+
c(this, E, () => `<svg aria-hidden="true">
|
|
340
|
+
<use></use>
|
|
304
341
|
</svg>`);
|
|
305
|
-
this.shadowRoot.innerHTML = n(this,
|
|
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");
|
|
306
343
|
}
|
|
307
344
|
static get observedAttributes() {
|
|
308
|
-
return [
|
|
345
|
+
return [
|
|
346
|
+
...super.observedAttributes,
|
|
347
|
+
"name",
|
|
348
|
+
"size",
|
|
349
|
+
"color",
|
|
350
|
+
"aria-label",
|
|
351
|
+
"inverted",
|
|
352
|
+
"from",
|
|
353
|
+
"disabled"
|
|
354
|
+
];
|
|
309
355
|
}
|
|
310
356
|
attributeChangedCallback(e, o, r) {
|
|
311
357
|
if (o !== r)
|
|
@@ -314,22 +360,23 @@ class Kt extends Lt {
|
|
|
314
360
|
this.updateName(o, r);
|
|
315
361
|
break;
|
|
316
362
|
case "size":
|
|
317
|
-
this.updateAttribute(e, o, r,
|
|
363
|
+
this.updateAttribute(e, o, r, _t);
|
|
318
364
|
break;
|
|
319
365
|
case "color":
|
|
320
|
-
this.updateAttribute(e, o, r,
|
|
366
|
+
this.updateAttribute(e, o, r, oe);
|
|
321
367
|
break;
|
|
322
368
|
case "disabled":
|
|
323
369
|
this.color = "state-disabled";
|
|
324
370
|
break;
|
|
325
371
|
case "aria-label":
|
|
326
|
-
if (!n(this,
|
|
372
|
+
if (!n(this, b))
|
|
327
373
|
return;
|
|
328
|
-
r ? (n(this,
|
|
374
|
+
r ? (n(this, b).ariaHidden = "false", this.ariaHidden = "false") : (n(this, b).ariaHidden = "true", this.ariaHidden = "true");
|
|
329
375
|
break;
|
|
330
376
|
}
|
|
331
377
|
}
|
|
332
378
|
connectedCallback() {
|
|
379
|
+
this.role = "img";
|
|
333
380
|
const e = document.querySelectorAll("px-icon-set");
|
|
334
381
|
e || console.log("<px-icon-set> component not found");
|
|
335
382
|
for (const o of e) {
|
|
@@ -337,20 +384,22 @@ class Kt extends Lt {
|
|
|
337
384
|
console.error("Icon name or src not found");
|
|
338
385
|
continue;
|
|
339
386
|
}
|
|
340
|
-
o.getAttribute("name") === this.from && o.getAttribute("type") !== "font" && (
|
|
341
|
-
"
|
|
342
|
-
`${n(this,
|
|
387
|
+
o.getAttribute("name") === this.from && o.getAttribute("type") !== "font" && (k(this, m, o.getAttribute("src")), this.$el.firstElementChild.setAttribute(
|
|
388
|
+
"href",
|
|
389
|
+
`${n(this, m)}#icon-${this.name}`
|
|
343
390
|
));
|
|
344
391
|
}
|
|
345
|
-
!this.ariaLabel && n(this,
|
|
392
|
+
!this.ariaLabel && n(this, b) && (n(this, b).ariaHidden = "true", this.ariaHidden = "true");
|
|
346
393
|
}
|
|
347
394
|
updateAttribute(e, o, r, i) {
|
|
348
|
-
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) ||
|
|
395
|
+
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(
|
|
396
|
+
`${r} is not an allowed ${e} value for ${this.tagName.toLowerCase()}`
|
|
397
|
+
);
|
|
349
398
|
}
|
|
350
399
|
updateName(e, o) {
|
|
351
|
-
n(this,
|
|
352
|
-
"
|
|
353
|
-
`${n(this,
|
|
400
|
+
n(this, m) && this.$el.firstElementChild.setAttribute(
|
|
401
|
+
"href",
|
|
402
|
+
`${n(this, m)}#icon-${o}`
|
|
354
403
|
);
|
|
355
404
|
}
|
|
356
405
|
get $el() {
|
|
@@ -399,18 +448,18 @@ class Kt extends Lt {
|
|
|
399
448
|
this.setAttribute("disabled", e);
|
|
400
449
|
}
|
|
401
450
|
}
|
|
402
|
-
|
|
403
|
-
customElements.get("px-icon") || customElements.define("px-icon",
|
|
404
|
-
const bt = "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-3xl-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-2xl-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-xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-l-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-m-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-base-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-l-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media only screen and (min-width: 768px){::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-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-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-base-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}@media only screen and (min-width: 1025px){::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-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-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-base-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}@media screen and (min-width: 1441px){::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)}}", H = ".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 only screen and (min-width: 48em){.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 only screen and (min-width: 64.0625em){.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)}", ct = new CSSStyleSheet();
|
|
405
|
-
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
class
|
|
451
|
+
m = new WeakMap(), b = new WeakMap(), E = new WeakMap();
|
|
452
|
+
customElements.get("px-icon") || customElements.define("px-icon", ie);
|
|
453
|
+
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
|
+
$t.replaceSync(wt);
|
|
455
|
+
const St = new CSSStyleSheet();
|
|
456
|
+
St.replaceSync(K);
|
|
457
|
+
class A extends $ {
|
|
409
458
|
template() {
|
|
410
459
|
return "<slot></slot>";
|
|
411
460
|
}
|
|
412
461
|
constructor(t) {
|
|
413
|
-
super(
|
|
462
|
+
super($t, St);
|
|
414
463
|
const e = document.createElement(t);
|
|
415
464
|
e.innerHTML = this.template(), this.shadowRoot.appendChild(e);
|
|
416
465
|
}
|
|
@@ -424,24 +473,25 @@ class f extends m {
|
|
|
424
473
|
"text-align--tablet",
|
|
425
474
|
"text-align--laptop",
|
|
426
475
|
"text-align--desktop",
|
|
427
|
-
"inverted"
|
|
476
|
+
"inverted",
|
|
477
|
+
"auto-spacing"
|
|
428
478
|
];
|
|
429
479
|
}
|
|
430
480
|
attributeChangedCallback(t, e, o) {
|
|
431
481
|
if (e !== o)
|
|
432
482
|
switch (t) {
|
|
433
483
|
case "variant":
|
|
434
|
-
this.updateAttribute(t, e, o,
|
|
484
|
+
this.updateAttribute(t, e, o, ht);
|
|
435
485
|
break;
|
|
436
486
|
case "color":
|
|
437
|
-
this.updateColor(e, o,
|
|
487
|
+
this.updateColor(e, o, Z);
|
|
438
488
|
break;
|
|
439
489
|
case "text-align":
|
|
440
490
|
case "text-align--mobile":
|
|
441
491
|
case "text-align--tablet":
|
|
442
492
|
case "text-align--laptop":
|
|
443
493
|
case "text-align--desktop":
|
|
444
|
-
this.updateTextAlign(t, e, o,
|
|
494
|
+
this.updateTextAlign(t, e, o, ct);
|
|
445
495
|
break;
|
|
446
496
|
default:
|
|
447
497
|
super.attributeChangedCallback(t, e, o);
|
|
@@ -452,11 +502,15 @@ class f extends m {
|
|
|
452
502
|
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
|
|
453
503
|
}
|
|
454
504
|
updateAttribute(t, e, o, r) {
|
|
455
|
-
this.checkName(r, o) ? this.toggleClass(e, o) :
|
|
505
|
+
this.checkName(r, o) ? this.toggleClass(e, o) : d(
|
|
506
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
507
|
+
);
|
|
456
508
|
}
|
|
457
509
|
updateColor(t, e, o) {
|
|
458
510
|
if (!this.checkName(o, e)) {
|
|
459
|
-
|
|
511
|
+
d(
|
|
512
|
+
`"${e}" is not a valid color value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
513
|
+
);
|
|
460
514
|
return;
|
|
461
515
|
}
|
|
462
516
|
const r = (i) => {
|
|
@@ -472,13 +526,15 @@ class f extends m {
|
|
|
472
526
|
}
|
|
473
527
|
updateTextAlign(t, e, o, r) {
|
|
474
528
|
if (!this.checkName(r, o)) {
|
|
475
|
-
|
|
529
|
+
d(
|
|
530
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
531
|
+
);
|
|
476
532
|
return;
|
|
477
533
|
}
|
|
478
|
-
const i = (a,
|
|
479
|
-
|
|
534
|
+
const i = (a, l) => {
|
|
535
|
+
l !== null && l !== "" && l !== "default" && this.$el.style.setProperty(
|
|
480
536
|
`--heading-text-align--${a}`,
|
|
481
|
-
|
|
537
|
+
l
|
|
482
538
|
);
|
|
483
539
|
};
|
|
484
540
|
if (t === "text-align")
|
|
@@ -538,63 +594,69 @@ class f extends m {
|
|
|
538
594
|
set inverted(t) {
|
|
539
595
|
this.setAttribute("inverted", t);
|
|
540
596
|
}
|
|
597
|
+
get autoSpacing() {
|
|
598
|
+
return this.hasAttribute("auto-spacing");
|
|
599
|
+
}
|
|
600
|
+
set autoSpacing(t) {
|
|
601
|
+
t ? this.setAttribute("auto-spacing", "") : this.removeAttribute("auto-spacing");
|
|
602
|
+
}
|
|
541
603
|
}
|
|
542
|
-
const
|
|
604
|
+
const J = class J extends A {
|
|
543
605
|
constructor() {
|
|
544
606
|
super("h1");
|
|
545
607
|
}
|
|
546
608
|
};
|
|
547
|
-
|
|
548
|
-
let
|
|
549
|
-
customElements.get("px-h1") || customElements.define("px-h1",
|
|
550
|
-
const
|
|
609
|
+
J.nativeName = "h1";
|
|
610
|
+
let H = J;
|
|
611
|
+
customElements.get("px-h1") || customElements.define("px-h1", H);
|
|
612
|
+
const Q = class Q extends A {
|
|
551
613
|
constructor() {
|
|
552
614
|
super("h2");
|
|
553
615
|
}
|
|
554
616
|
};
|
|
555
|
-
|
|
556
|
-
let
|
|
557
|
-
customElements.get("px-h2") || customElements.define("px-h2",
|
|
558
|
-
const
|
|
617
|
+
Q.nativeName = "h2";
|
|
618
|
+
let O = Q;
|
|
619
|
+
customElements.get("px-h2") || customElements.define("px-h2", O);
|
|
620
|
+
const V = class V extends A {
|
|
559
621
|
constructor() {
|
|
560
622
|
super("h3");
|
|
561
623
|
}
|
|
562
624
|
};
|
|
563
|
-
|
|
564
|
-
let
|
|
565
|
-
customElements.get("px-h3") || customElements.define("px-h3",
|
|
566
|
-
const
|
|
625
|
+
V.nativeName = "h3";
|
|
626
|
+
let q = V;
|
|
627
|
+
customElements.get("px-h3") || customElements.define("px-h3", q);
|
|
628
|
+
const tt = class tt extends A {
|
|
567
629
|
constructor() {
|
|
568
630
|
super("h4");
|
|
569
631
|
}
|
|
570
632
|
};
|
|
571
|
-
|
|
572
|
-
let
|
|
573
|
-
customElements.get("px-h4") || customElements.define("px-h4",
|
|
574
|
-
const
|
|
633
|
+
tt.nativeName = "h4";
|
|
634
|
+
let D = tt;
|
|
635
|
+
customElements.get("px-h4") || customElements.define("px-h4", D);
|
|
636
|
+
const et = class et extends A {
|
|
575
637
|
constructor() {
|
|
576
638
|
super("h5");
|
|
577
639
|
}
|
|
578
640
|
};
|
|
579
|
-
|
|
580
|
-
let
|
|
581
|
-
customElements.get("px-h5") || customElements.define("px-h5",
|
|
582
|
-
const
|
|
641
|
+
et.nativeName = "h5";
|
|
642
|
+
let N = et;
|
|
643
|
+
customElements.get("px-h5") || customElements.define("px-h5", N);
|
|
644
|
+
const ot = class ot extends A {
|
|
583
645
|
constructor() {
|
|
584
646
|
super("h6");
|
|
585
647
|
}
|
|
586
648
|
};
|
|
587
|
-
|
|
588
|
-
let
|
|
589
|
-
customElements.get("px-h6") || customElements.define("px-h6",
|
|
590
|
-
const
|
|
591
|
-
|
|
592
|
-
const
|
|
649
|
+
ot.nativeName = "h6";
|
|
650
|
+
let _ = ot;
|
|
651
|
+
customElements.get("px-h6") || customElements.define("px-h6", _);
|
|
652
|
+
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();
|
|
653
|
+
Ct.replaceSync(ae);
|
|
654
|
+
const se = [
|
|
593
655
|
"",
|
|
594
656
|
"default",
|
|
595
657
|
"horizontal",
|
|
596
658
|
"vertical"
|
|
597
|
-
],
|
|
659
|
+
], ne = ["", "default", "none", "s", "m", "l"], de = [
|
|
598
660
|
"",
|
|
599
661
|
"main",
|
|
600
662
|
"brand",
|
|
@@ -606,11 +668,11 @@ const Ut = [
|
|
|
606
668
|
"purpose-unlimited",
|
|
607
669
|
"state-hover",
|
|
608
670
|
"state-active"
|
|
609
|
-
],
|
|
671
|
+
], B = class B extends $ {
|
|
610
672
|
constructor() {
|
|
611
673
|
var e;
|
|
612
|
-
super(
|
|
613
|
-
const t = document.createElement(
|
|
674
|
+
super(Ct);
|
|
675
|
+
const t = document.createElement(B.nativeName);
|
|
614
676
|
t.classList.add("separator"), this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.shadowRoot.appendChild(t);
|
|
615
677
|
}
|
|
616
678
|
static get observedAttributes() {
|
|
@@ -638,14 +700,14 @@ const Ut = [
|
|
|
638
700
|
t,
|
|
639
701
|
e,
|
|
640
702
|
o,
|
|
641
|
-
|
|
703
|
+
se
|
|
642
704
|
);
|
|
643
705
|
break;
|
|
644
706
|
case "size":
|
|
645
|
-
this.updateSize(t, e, o,
|
|
707
|
+
this.updateSize(t, e, o, ne);
|
|
646
708
|
break;
|
|
647
709
|
case "color":
|
|
648
|
-
this.updateColor(t, e, o,
|
|
710
|
+
this.updateColor(t, e, o, de);
|
|
649
711
|
break;
|
|
650
712
|
default:
|
|
651
713
|
super.attributeChangedCallback(t, e, o);
|
|
@@ -659,7 +721,9 @@ const Ut = [
|
|
|
659
721
|
`var(--px-size-border-${a})`
|
|
660
722
|
);
|
|
661
723
|
};
|
|
662
|
-
this.checkName(r, o) ? (i(e), i(o)) :
|
|
724
|
+
this.checkName(r, o) ? (i(e), i(o)) : d(
|
|
725
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
726
|
+
);
|
|
663
727
|
}
|
|
664
728
|
updateColor(t, e, o, r) {
|
|
665
729
|
const i = (a) => {
|
|
@@ -671,26 +735,30 @@ const Ut = [
|
|
|
671
735
|
`var(--px-color-border-${a}-inverted)`
|
|
672
736
|
));
|
|
673
737
|
};
|
|
674
|
-
this.checkName(r, o) ? (i(e), i(o)) :
|
|
738
|
+
this.checkName(r, o) ? (i(e), i(o)) : d(
|
|
739
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
740
|
+
);
|
|
675
741
|
}
|
|
676
742
|
updateDirection(t, e, o, r) {
|
|
677
|
-
const i = (a,
|
|
678
|
-
|
|
743
|
+
const i = (a, l) => {
|
|
744
|
+
l !== null && l !== "" && l !== "default" && this.$el.classList.add(`separator-direction-${l}--${a}`);
|
|
679
745
|
};
|
|
680
746
|
if (!this.checkName(r, o))
|
|
681
|
-
|
|
747
|
+
d(
|
|
748
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
749
|
+
);
|
|
682
750
|
else if (t === "direction")
|
|
683
751
|
["mobile", "tablet", "laptop", "desktop"].forEach((a) => {
|
|
684
752
|
Array.from(this.$el.classList).find(
|
|
685
|
-
(
|
|
753
|
+
(z) => z.startsWith("separator-direction-") && z.endsWith(`--${a}`)
|
|
686
754
|
) || i(a, o);
|
|
687
755
|
});
|
|
688
756
|
else {
|
|
689
|
-
const a = t.split("--")[1],
|
|
690
|
-
(
|
|
757
|
+
const a = t.split("--")[1], l = Array.from(this.$el.classList).find(
|
|
758
|
+
(z) => z.startsWith("separator-direction-") && z.endsWith(`--${a}`)
|
|
691
759
|
);
|
|
692
|
-
|
|
693
|
-
|
|
760
|
+
l ? this.$el.classList.replace(
|
|
761
|
+
l,
|
|
694
762
|
`separator-direction-${o}--${a}`
|
|
695
763
|
) : i(a, o);
|
|
696
764
|
}
|
|
@@ -744,66 +812,92 @@ const Ut = [
|
|
|
744
812
|
this.setAttribute("inverted", t);
|
|
745
813
|
}
|
|
746
814
|
};
|
|
747
|
-
|
|
748
|
-
let
|
|
749
|
-
customElements.get("px-separator") || customElements.define("px-separator",
|
|
750
|
-
const Nt = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', Vt = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}', ut = new CSSStyleSheet();
|
|
751
|
-
|
|
752
|
-
const
|
|
815
|
+
B.nativeName = "hr";
|
|
816
|
+
let W = B;
|
|
817
|
+
customElements.get("px-separator") || customElements.define("px-separator", W);
|
|
818
|
+
const le = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media screen and (min-width: 77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media screen and (min-width: 48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media screen and (min-width: 64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', pe = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{display:grid;grid-template-rows:subgrid;grid-row:span var(--subgrid-rows)}:host([subgrid-rows]):host([grow]) .container{flex-grow:var(--grow-value)}:host([subgrid-rows]):host([shrink]) .container{flex-shrink:var(--shrink-value)}:host([subgrid-rows]):host([basis]) .container{flex-basis:var(--basis-value)}:host([subgrid-rows]):host([align-self]) .container{align-self:var(--align-self-value)}:host([subgrid-rows]):host([col-span]) .container{grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([subgrid-rows]):host([justify-self]) .container{justify-self:var(--justify-self-value)}:host([subgrid-rows]):host([order]) .container{order:var(--order-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--mobile)}@media screen and (max-width: 47.938rem){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}:host([subgrid-rows]):host([grow--mobile]) .container{flex-grow:var(--grow--mobile-value)}:host([subgrid-rows]):host([shrink--mobile]) .container{flex-shrink:var(--shrink--mobile-value)}:host([subgrid-rows]):host([basis--mobile]) .container{flex-basis:var(--basis--mobile-value)}:host([subgrid-rows]):host([align-self--mobile]) .container{align-self:var(--align-self--mobile-value)}:host([subgrid-rows]):host([col-span--mobile]) .container{grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}:host([subgrid-rows]):host([justify-self--mobile]) .container{justify-self:var(--justify-self--mobile-value)}:host([subgrid-rows]):host([order--mobile]) .container{order:var(--order--mobile-value)}}@media screen and (min-width: 48rem) and (max-width: 64rem){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}:host([subgrid-rows]):host([col-span--tablet]) .container{grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}:host([subgrid-rows]):host([grow--tablet]) .container{flex-grow:var(--grow--tablet-value)}:host([subgrid-rows]):host([shrink--tablet]) .container{flex-shrink:var(--shrink--tablet-value)}:host([subgrid-rows]):host([basis--tablet]) .container{flex-basis:var(--basis--tablet-value)}:host([subgrid-rows]):host([align-self--tablet]) .container{align-self:var(--align-self--tablet-value)}:host([subgrid-rows]):host([justify-self--tablet]) .container{justify-self:var(--justify-self--tablet-value)}:host([subgrid-rows]):host([order--tablet]) .container{order:var(--order--tablet-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--tablet)}}@media screen and (min-width: 64.0625rem) and (max-width: 90rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}:host([subgrid-rows]):host([col-span--laptop]) .container{grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}:host([subgrid-rows]):host([grow--laptop]) .container{flex-grow:var(--grow--laptop-value)}:host([subgrid-rows]):host([shrink--laptop]) .container{flex-shrink:var(--shrink--laptop-value)}:host([subgrid-rows]):host([basis--laptop]) .container{flex-basis:var(--basis--laptop-value)}:host([subgrid-rows]):host([align-self--laptop]) .container{align-self:var(--align-self--laptop-value)}:host([subgrid-rows]):host([justify-self--laptop]) .container{justify-self:var(--justify-self--laptop-value)}:host([subgrid-rows]):host([order--laptop]) .container{order:var(--order--laptop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--laptop)}}@media screen and (min-width: 64.0625rem){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}@media screen and (min-width: 90.0625rem){:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--desktop)}:host([subgrid-rows]):host([col-span--desktop]) .container{grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}:host([subgrid-rows]):host([grow--desktop]) .container{flex-grow:var(--grow--desktop-value)}:host([subgrid-rows]):host([shrink--desktop]) .container{flex-shrink:var(--shrink--desktop-value)}:host([subgrid-rows]):host([basis--desktop]) .container{flex-basis:var(--basis--desktop-value)}:host([subgrid-rows]):host([align-self--desktop]) .container{align-self:var(--align-self--desktop-value)}:host([subgrid-rows]):host([justify-self--desktop]) .container{justify-self:var(--justify-self--desktop-value)}:host([subgrid-rows]):host([order--desktop]) .container{order:var(--order--desktop-value)}:host([subgrid-rows]):host([anchor-spacing]) .container{margin-top:var(--container-anchor-spacing--desktop)}}', Lt = new CSSStyleSheet();
|
|
819
|
+
Lt.replaceSync(pe);
|
|
820
|
+
const be = [
|
|
821
|
+
"top-patch",
|
|
822
|
+
"top-neighbor-patch",
|
|
823
|
+
"top-ribbon",
|
|
824
|
+
"top-neighbor-ribbon",
|
|
825
|
+
"top-patch-and-neighbor-ribbon"
|
|
826
|
+
], ce = [
|
|
827
|
+
"1",
|
|
828
|
+
"2",
|
|
829
|
+
"3",
|
|
830
|
+
"4",
|
|
831
|
+
"5",
|
|
832
|
+
"6",
|
|
833
|
+
"7",
|
|
834
|
+
"8",
|
|
835
|
+
"9",
|
|
836
|
+
"10",
|
|
837
|
+
"11",
|
|
838
|
+
"12"
|
|
839
|
+
], g = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, v = "px-padding", he = [
|
|
840
|
+
h(
|
|
841
|
+
"padding",
|
|
842
|
+
g,
|
|
843
|
+
u,
|
|
844
|
+
v,
|
|
845
|
+
"--container-padding"
|
|
846
|
+
),
|
|
847
|
+
h(
|
|
848
|
+
"padding-inline",
|
|
849
|
+
g,
|
|
850
|
+
u,
|
|
851
|
+
v
|
|
852
|
+
),
|
|
853
|
+
h(
|
|
854
|
+
"padding-block",
|
|
855
|
+
g,
|
|
856
|
+
u,
|
|
857
|
+
v
|
|
858
|
+
),
|
|
859
|
+
h(
|
|
860
|
+
"padding-top",
|
|
861
|
+
g,
|
|
862
|
+
u,
|
|
863
|
+
v
|
|
864
|
+
),
|
|
865
|
+
h(
|
|
866
|
+
"padding-right",
|
|
867
|
+
g,
|
|
868
|
+
u,
|
|
869
|
+
v,
|
|
870
|
+
"--container-padding-right"
|
|
871
|
+
),
|
|
872
|
+
h(
|
|
873
|
+
"padding-bottom",
|
|
874
|
+
g,
|
|
875
|
+
u,
|
|
876
|
+
v
|
|
877
|
+
),
|
|
878
|
+
h(
|
|
879
|
+
"padding-left",
|
|
880
|
+
g,
|
|
881
|
+
u,
|
|
882
|
+
v,
|
|
883
|
+
"--container-padding-left"
|
|
884
|
+
),
|
|
885
|
+
h(
|
|
886
|
+
"gap",
|
|
887
|
+
g,
|
|
888
|
+
Wt,
|
|
889
|
+
"px-spacing",
|
|
890
|
+
void 0,
|
|
891
|
+
"subgrid-gap"
|
|
892
|
+
)
|
|
893
|
+
], rt = class rt extends X {
|
|
753
894
|
constructor() {
|
|
754
|
-
super(
|
|
755
|
-
ut,
|
|
756
|
-
c(
|
|
757
|
-
"padding",
|
|
758
|
-
h,
|
|
759
|
-
b,
|
|
760
|
-
g,
|
|
761
|
-
"--container-padding"
|
|
762
|
-
),
|
|
763
|
-
c(
|
|
764
|
-
"padding-inline",
|
|
765
|
-
h,
|
|
766
|
-
b,
|
|
767
|
-
g
|
|
768
|
-
),
|
|
769
|
-
c(
|
|
770
|
-
"padding-block",
|
|
771
|
-
h,
|
|
772
|
-
b,
|
|
773
|
-
g
|
|
774
|
-
),
|
|
775
|
-
c(
|
|
776
|
-
"padding-top",
|
|
777
|
-
h,
|
|
778
|
-
b,
|
|
779
|
-
g
|
|
780
|
-
),
|
|
781
|
-
c(
|
|
782
|
-
"padding-right",
|
|
783
|
-
h,
|
|
784
|
-
b,
|
|
785
|
-
g,
|
|
786
|
-
"--container-padding-right"
|
|
787
|
-
),
|
|
788
|
-
c(
|
|
789
|
-
"padding-bottom",
|
|
790
|
-
h,
|
|
791
|
-
b,
|
|
792
|
-
g
|
|
793
|
-
),
|
|
794
|
-
c(
|
|
795
|
-
"padding-left",
|
|
796
|
-
h,
|
|
797
|
-
b,
|
|
798
|
-
g,
|
|
799
|
-
"--container-padding-left"
|
|
800
|
-
)
|
|
801
|
-
), this.template = () => `<div class="container">
|
|
895
|
+
super(Lt, ...he), this.template = () => `<div class="container">
|
|
802
896
|
<slot></slot>
|
|
803
897
|
<slot name="anchor-left"></slot>
|
|
804
898
|
<slot name="anchor-right"></slot>
|
|
805
899
|
<slot name="anchor-full"></slot>
|
|
806
|
-
</div>`, this._bgObserver = null, this._isInViewport = !1, this.shadowRoot.innerHTML = this.template();
|
|
900
|
+
</div>`, this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, this.shadowRoot.innerHTML = this.template();
|
|
807
901
|
}
|
|
808
902
|
static get observedAttributes() {
|
|
809
903
|
return [
|
|
@@ -835,11 +929,13 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
835
929
|
"background-position",
|
|
836
930
|
"box-shadow",
|
|
837
931
|
"anchor-offset",
|
|
838
|
-
"
|
|
932
|
+
"anchor-spacing",
|
|
933
|
+
"inverted",
|
|
934
|
+
"subgrid-rows"
|
|
839
935
|
];
|
|
840
936
|
}
|
|
841
937
|
connectedCallback() {
|
|
842
|
-
|
|
938
|
+
this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
|
|
843
939
|
this.$slotAnchor && this.addAnchorClass();
|
|
844
940
|
}), this.contentObserver.observe(this, {
|
|
845
941
|
childList: !0,
|
|
@@ -853,14 +949,14 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
853
949
|
}), this._bgObserver.observe(this.$el);
|
|
854
950
|
}
|
|
855
951
|
disconnectedCallback() {
|
|
856
|
-
var t;
|
|
857
|
-
(t = this._bgObserver) == null || t.disconnect(), this.contentObserver.disconnect();
|
|
952
|
+
var t, e;
|
|
953
|
+
(t = this._bgObserver) == null || t.disconnect(), (e = this.contentObserver) == null || e.disconnect();
|
|
858
954
|
}
|
|
859
955
|
attributeChangedCallback(t, e, o) {
|
|
860
956
|
if (e !== o)
|
|
861
957
|
switch (t) {
|
|
862
958
|
case "border":
|
|
863
|
-
this.updateAttribute(t, e, o,
|
|
959
|
+
this.updateAttribute(t, e, o, Kt);
|
|
864
960
|
break;
|
|
865
961
|
case "border-color":
|
|
866
962
|
this.updateBorderColor(t, o);
|
|
@@ -869,14 +965,14 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
869
965
|
case "border-side--mobile":
|
|
870
966
|
case "border-side--tablet":
|
|
871
967
|
case "border-side--laptop":
|
|
872
|
-
this.updateAttribute(t, e, o,
|
|
968
|
+
this.updateAttribute(t, e, o, Zt);
|
|
873
969
|
break;
|
|
874
970
|
case "border-radius":
|
|
875
971
|
this.updateAttribute(
|
|
876
972
|
t,
|
|
877
973
|
e,
|
|
878
974
|
o,
|
|
879
|
-
|
|
975
|
+
Xt
|
|
880
976
|
);
|
|
881
977
|
break;
|
|
882
978
|
case "no-border-radius":
|
|
@@ -887,7 +983,7 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
887
983
|
t,
|
|
888
984
|
e,
|
|
889
985
|
o,
|
|
890
|
-
|
|
986
|
+
Yt
|
|
891
987
|
);
|
|
892
988
|
break;
|
|
893
989
|
case "background-color":
|
|
@@ -907,7 +1003,7 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
907
1003
|
t,
|
|
908
1004
|
e,
|
|
909
1005
|
o,
|
|
910
|
-
|
|
1006
|
+
Gt
|
|
911
1007
|
);
|
|
912
1008
|
break;
|
|
913
1009
|
case "background-image":
|
|
@@ -920,10 +1016,21 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
920
1016
|
o !== null && o !== "" && (this.$el.style.backgroundPosition = o);
|
|
921
1017
|
break;
|
|
922
1018
|
case "box-shadow":
|
|
923
|
-
this.updateAttribute(t, e, o,
|
|
1019
|
+
this.updateAttribute(t, e, o, Ft);
|
|
924
1020
|
break;
|
|
925
1021
|
case "anchor-offset":
|
|
926
|
-
this.updateAnchorOffset(e, o,
|
|
1022
|
+
this.updateAnchorOffset(e, o, u);
|
|
1023
|
+
break;
|
|
1024
|
+
case "anchor-spacing":
|
|
1025
|
+
this.updateAnchorSpacing(e, o, be);
|
|
1026
|
+
break;
|
|
1027
|
+
case "subgrid-rows":
|
|
1028
|
+
this.updateSubgridRows(
|
|
1029
|
+
t,
|
|
1030
|
+
e,
|
|
1031
|
+
o,
|
|
1032
|
+
ce
|
|
1033
|
+
);
|
|
927
1034
|
break;
|
|
928
1035
|
default:
|
|
929
1036
|
super.attributeChangedCallback(t, e, o);
|
|
@@ -945,7 +1052,7 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
945
1052
|
this.$el.style.setProperty(`--${t}`, `url("${e}")`);
|
|
946
1053
|
}
|
|
947
1054
|
updateGradient(t, e) {
|
|
948
|
-
if (this.checkName(
|
|
1055
|
+
if (this.checkName(st, e)) {
|
|
949
1056
|
const o = this.splitAttrNameFromBreakpoint(t);
|
|
950
1057
|
t = o.attrName;
|
|
951
1058
|
const r = o.breakpoint;
|
|
@@ -954,11 +1061,13 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
954
1061
|
`linear-gradient(var(--px-color-background-gradient-${e}))`
|
|
955
1062
|
);
|
|
956
1063
|
} else
|
|
957
|
-
|
|
1064
|
+
d(
|
|
1065
|
+
`"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${st.join('", "')}".`
|
|
1066
|
+
);
|
|
958
1067
|
}
|
|
959
1068
|
updateBackgroundColor(t, e) {
|
|
960
1069
|
const o = e.startsWith("surface-");
|
|
961
|
-
if (this.checkName(
|
|
1070
|
+
if (this.checkName(P, e)) {
|
|
962
1071
|
const r = this.splitAttrNameFromBreakpoint(t), i = r.breakpoint;
|
|
963
1072
|
this.$el.style.setProperty(
|
|
964
1073
|
`--${r.attrName}${i}`,
|
|
@@ -968,20 +1077,26 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
968
1077
|
`var(--px-color-background-${e}${o ? "" : "-inverted"})`
|
|
969
1078
|
);
|
|
970
1079
|
} else
|
|
971
|
-
|
|
1080
|
+
d(
|
|
1081
|
+
`"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${P.join('", "')}".`
|
|
1082
|
+
);
|
|
972
1083
|
}
|
|
973
1084
|
updateBorderColor(t, e) {
|
|
974
|
-
this.checkName(
|
|
1085
|
+
this.checkName(nt, e) ? (this.$el.style.setProperty(
|
|
975
1086
|
`--${t}`,
|
|
976
1087
|
`var(--px-color-border-${e}-default)`
|
|
977
1088
|
), this.$el.style.setProperty(
|
|
978
1089
|
`--${t}-inverted`,
|
|
979
1090
|
`var(--px-color-border-${e}-inverted)`
|
|
980
|
-
)) :
|
|
1091
|
+
)) : d(
|
|
1092
|
+
`"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${nt.join('", "')}".`
|
|
1093
|
+
);
|
|
981
1094
|
}
|
|
982
1095
|
updateNoBorderRadius(t, e, o, r) {
|
|
983
1096
|
if (!this.checkName(r, o))
|
|
984
|
-
|
|
1097
|
+
d(
|
|
1098
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1099
|
+
);
|
|
985
1100
|
else {
|
|
986
1101
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
987
1102
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
@@ -993,7 +1108,9 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
993
1108
|
}
|
|
994
1109
|
updateAttribute(t, e, o, r) {
|
|
995
1110
|
if (!this.checkName(r, o))
|
|
996
|
-
|
|
1111
|
+
d(
|
|
1112
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1113
|
+
);
|
|
997
1114
|
else {
|
|
998
1115
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
999
1116
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
@@ -1014,8 +1131,10 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
1014
1131
|
return { attrName: t, breakpoint: e };
|
|
1015
1132
|
}
|
|
1016
1133
|
updateAnchorOffset(t, e, o) {
|
|
1017
|
-
if (!
|
|
1018
|
-
|
|
1134
|
+
if (!w(o, e)) {
|
|
1135
|
+
d(
|
|
1136
|
+
`"${e}" is not a valid anchor-offset value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
1137
|
+
);
|
|
1019
1138
|
return;
|
|
1020
1139
|
}
|
|
1021
1140
|
const r = (i) => {
|
|
@@ -1035,6 +1154,39 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
1035
1154
|
addAnchorClass() {
|
|
1036
1155
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
1037
1156
|
}
|
|
1157
|
+
updateAnchorSpacing(t, e, o) {
|
|
1158
|
+
if (!w(o, e)) {
|
|
1159
|
+
d(
|
|
1160
|
+
`"${e}" is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
1161
|
+
);
|
|
1162
|
+
return;
|
|
1163
|
+
}
|
|
1164
|
+
const r = (i) => {
|
|
1165
|
+
i !== null && i !== "" && i !== "default" && (this.style.setProperty(
|
|
1166
|
+
"--container-anchor-spacing--mobile",
|
|
1167
|
+
`var(--px-spacing-${i}-mobile)`
|
|
1168
|
+
), this.style.setProperty(
|
|
1169
|
+
"--container-anchor-spacing--tablet",
|
|
1170
|
+
`var(--px-spacing-${i}-tablet)`
|
|
1171
|
+
), this.style.setProperty(
|
|
1172
|
+
"--container-anchor-spacing--laptop",
|
|
1173
|
+
`var(--px-spacing-${i}-laptop)`
|
|
1174
|
+
), this.style.setProperty(
|
|
1175
|
+
"--container-anchor-spacing--desktop",
|
|
1176
|
+
`var(--px-spacing-${i}-desktop)`
|
|
1177
|
+
));
|
|
1178
|
+
};
|
|
1179
|
+
r(t), r(e);
|
|
1180
|
+
}
|
|
1181
|
+
updateSubgridRows(t, e, o, r) {
|
|
1182
|
+
w(r, o) ? this.style.setProperty(`--${t}`, o) : d(
|
|
1183
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1184
|
+
);
|
|
1185
|
+
}
|
|
1186
|
+
get $el() {
|
|
1187
|
+
var t;
|
|
1188
|
+
return (t = this == null ? void 0 : this.shadowRoot) == null ? void 0 : t.querySelector(".container");
|
|
1189
|
+
}
|
|
1038
1190
|
get $slotAnchor() {
|
|
1039
1191
|
return this.querySelector('[slot^="anchor"]');
|
|
1040
1192
|
}
|
|
@@ -1368,23 +1520,59 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
1368
1520
|
set anchorOffset(t) {
|
|
1369
1521
|
this.setAttribute("anchor-offset", t);
|
|
1370
1522
|
}
|
|
1523
|
+
get anchorSpacing() {
|
|
1524
|
+
return this.getAttribute("anchor-spacing");
|
|
1525
|
+
}
|
|
1526
|
+
set anchorSpacing(t) {
|
|
1527
|
+
this.setAttribute("anchor-spacing", t);
|
|
1528
|
+
}
|
|
1371
1529
|
get inverted() {
|
|
1372
|
-
return this.
|
|
1530
|
+
return this.hasAttribute("inverted");
|
|
1373
1531
|
}
|
|
1374
1532
|
set inverted(t) {
|
|
1375
|
-
this.setAttribute("inverted",
|
|
1533
|
+
t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
|
|
1534
|
+
}
|
|
1535
|
+
get subgridRows() {
|
|
1536
|
+
return this.getAttribute("subgrid-rows");
|
|
1537
|
+
}
|
|
1538
|
+
set subgridRows(t) {
|
|
1539
|
+
this.setAttribute("subgrid-rows", t);
|
|
1540
|
+
}
|
|
1541
|
+
get subgridGap() {
|
|
1542
|
+
return this.getAttribute("subgrid-gap");
|
|
1543
|
+
}
|
|
1544
|
+
set subgridGap(t) {
|
|
1545
|
+
this.setAttribute("subgrid-gap", t);
|
|
1546
|
+
}
|
|
1547
|
+
get subgridGapMobile() {
|
|
1548
|
+
return this.getAttribute("subgrid-gap--mobile");
|
|
1549
|
+
}
|
|
1550
|
+
set subgridGapMobile(t) {
|
|
1551
|
+
this.setAttribute("subgrid-gap--mobile", t);
|
|
1552
|
+
}
|
|
1553
|
+
get subgridGapTablet() {
|
|
1554
|
+
return this.getAttribute("subgrid-gap--tablet");
|
|
1555
|
+
}
|
|
1556
|
+
set subgridGapTablet(t) {
|
|
1557
|
+
this.setAttribute("subgrid-gap--tablet", t);
|
|
1558
|
+
}
|
|
1559
|
+
get subgridGapLaptop() {
|
|
1560
|
+
return this.getAttribute("subgrid-gap--laptop");
|
|
1561
|
+
}
|
|
1562
|
+
set subgridGapLaptop(t) {
|
|
1563
|
+
this.setAttribute("subgrid-gap--laptop", t);
|
|
1376
1564
|
}
|
|
1377
1565
|
};
|
|
1378
|
-
|
|
1379
|
-
let
|
|
1380
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1383
|
-
class
|
|
1566
|
+
rt.nativeName = "div";
|
|
1567
|
+
let F = rt;
|
|
1568
|
+
customElements.get("px-container") || customElements.define("px-container", F);
|
|
1569
|
+
const Tt = new CSSStyleSheet();
|
|
1570
|
+
Tt.replaceSync(le);
|
|
1571
|
+
class ge extends X {
|
|
1384
1572
|
constructor() {
|
|
1385
|
-
super(), this.template = () => `
|
|
1386
|
-
<px-container border-radius="none" padding-inline="none"
|
|
1387
|
-
<div class="content-wrapper
|
|
1573
|
+
super(Tt), this.template = () => `
|
|
1574
|
+
<px-container border-radius="none" padding-inline="none">
|
|
1575
|
+
<div class="content-wrapper">
|
|
1388
1576
|
<px-vstack gap="heading-to-content">
|
|
1389
1577
|
<slot name="heading"></slot>
|
|
1390
1578
|
<px-vstack gap="none">
|
|
@@ -1396,14 +1584,18 @@ class te extends HTMLElement {
|
|
|
1396
1584
|
<div class="content-wrapper">
|
|
1397
1585
|
<slot name="overlap"></slot>
|
|
1398
1586
|
</div>
|
|
1399
|
-
`, this.
|
|
1587
|
+
`, this.shadowRoot.innerHTML = this.template();
|
|
1400
1588
|
}
|
|
1401
1589
|
connectedCallback() {
|
|
1402
|
-
|
|
1403
|
-
!this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"),
|
|
1590
|
+
var t, e;
|
|
1591
|
+
this.$container.setAttribute("background-color", this.backgroundColor), !this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), this.setHeadingSpacing = this.setHeadingSpacing.bind(this), this.setHeadingSpacing(), (t = this.$slotHeading) == null || t.addEventListener("slotchange", this.setHeadingSpacing), this.toggleOverlapSpacing = this.toggleOverlapSpacing.bind(this), this.toggleOverlapSpacing(), (e = this.$slotOverlap) == null || e.addEventListener(
|
|
1592
|
+
"slotchange",
|
|
1593
|
+
this.toggleOverlapSpacing
|
|
1594
|
+
);
|
|
1404
1595
|
}
|
|
1405
1596
|
static get observedAttributes() {
|
|
1406
1597
|
return [
|
|
1598
|
+
...super.observedAttributes,
|
|
1407
1599
|
"background-color",
|
|
1408
1600
|
"background-gradient",
|
|
1409
1601
|
"background-image",
|
|
@@ -1431,14 +1623,11 @@ class te extends HTMLElement {
|
|
|
1431
1623
|
"border-side--laptop"
|
|
1432
1624
|
];
|
|
1433
1625
|
}
|
|
1434
|
-
get $container() {
|
|
1435
|
-
return this.shadowRoot.querySelector("px-container");
|
|
1436
|
-
}
|
|
1437
1626
|
attributeChangedCallback(t, e, o) {
|
|
1438
1627
|
if (e !== o)
|
|
1439
1628
|
switch (t) {
|
|
1440
1629
|
case "background-color":
|
|
1441
|
-
this.$container.backgroundColor =
|
|
1630
|
+
this.$container.backgroundColor = P.indexOf(o) > 0 ? o : "none";
|
|
1442
1631
|
break;
|
|
1443
1632
|
case "background-gradient":
|
|
1444
1633
|
this.$container.gradient = this.gradient;
|
|
@@ -1512,11 +1701,61 @@ class te extends HTMLElement {
|
|
|
1512
1701
|
case "border-side--laptop":
|
|
1513
1702
|
this.$container.borderSideLaptop = o;
|
|
1514
1703
|
break;
|
|
1704
|
+
default:
|
|
1705
|
+
super.attributeChangedCallback(t, e, o);
|
|
1706
|
+
break;
|
|
1515
1707
|
}
|
|
1516
1708
|
}
|
|
1709
|
+
disconnectedCallback() {
|
|
1710
|
+
var t, e;
|
|
1711
|
+
(t = this.$slotHeading) == null || t.removeEventListener(
|
|
1712
|
+
"slotchange",
|
|
1713
|
+
this.setHeadingSpacing
|
|
1714
|
+
), (e = this.$slotOverlap) == null || e.removeEventListener(
|
|
1715
|
+
"slotchange",
|
|
1716
|
+
this.toggleOverlapSpacing
|
|
1717
|
+
);
|
|
1718
|
+
}
|
|
1719
|
+
toggleOverlapSpacing() {
|
|
1720
|
+
const t = this.$slotOverlap, e = this.$mainContentWrapper;
|
|
1721
|
+
if (!t || !e) return;
|
|
1722
|
+
const r = t.assignedNodes({ flatten: !0 }).some(this.isNotEmptyNode);
|
|
1723
|
+
e.classList.toggle("overlapped", r);
|
|
1724
|
+
}
|
|
1725
|
+
isNotEmptyNode(t) {
|
|
1726
|
+
return t.nodeType === Node.ELEMENT_NODE ? !0 : t.nodeType === Node.TEXT_NODE ? (t.textContent ?? "").trim().length > 0 : !1;
|
|
1727
|
+
}
|
|
1728
|
+
setHeadingSpacing() {
|
|
1729
|
+
var o;
|
|
1730
|
+
const t = this.$slotHeading, e = (o = this.shadowRoot) == null ? void 0 : o.querySelector("px-vstack");
|
|
1731
|
+
t && e && (t.assignedElements().length > 0 ? e.setAttribute("gap", "heading-to-content") : e.setAttribute("gap", "none"));
|
|
1732
|
+
}
|
|
1733
|
+
get $container() {
|
|
1734
|
+
var t;
|
|
1735
|
+
return (t = this.shadowRoot) == null ? void 0 : t.querySelector("px-container");
|
|
1736
|
+
}
|
|
1737
|
+
get $mainContentWrapper() {
|
|
1738
|
+
var t;
|
|
1739
|
+
return (t = this.$container) == null ? void 0 : t.querySelector(".content-wrapper");
|
|
1740
|
+
}
|
|
1517
1741
|
get $slotOverlap() {
|
|
1742
|
+
var t;
|
|
1743
|
+
return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
|
1744
|
+
'slot[name="overlap"]'
|
|
1745
|
+
);
|
|
1746
|
+
}
|
|
1747
|
+
get $slottedOverlap() {
|
|
1518
1748
|
return this.querySelector('[slot="overlap"]');
|
|
1519
1749
|
}
|
|
1750
|
+
get $slotHeading() {
|
|
1751
|
+
var t;
|
|
1752
|
+
return (t = this.shadowRoot) == null ? void 0 : t.querySelector(
|
|
1753
|
+
'slot[name="heading"]'
|
|
1754
|
+
);
|
|
1755
|
+
}
|
|
1756
|
+
get $slottedHeading() {
|
|
1757
|
+
return this.querySelector('[slot="heading"]');
|
|
1758
|
+
}
|
|
1520
1759
|
get backgroundColor() {
|
|
1521
1760
|
return this.getAttribute("background-color") || "none";
|
|
1522
1761
|
}
|
|
@@ -1668,14 +1907,14 @@ class te extends HTMLElement {
|
|
|
1668
1907
|
this.setAttribute("border-side--laptop", t);
|
|
1669
1908
|
}
|
|
1670
1909
|
}
|
|
1671
|
-
customElements.get("px-section") || customElements.define("px-section",
|
|
1672
|
-
const
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
const
|
|
1910
|
+
customElements.get("px-section") || customElements.define("px-section", ge);
|
|
1911
|
+
const ue = "p,::slotted(p){font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);font-size:var(--px-text-size-body-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l);margin:0}::slotted(p){margin-bottom:var(--px-spacing-xs-mobile)}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}:host([inverted]) p,:host([inverted]) ::slotted(p){color:var(--px-color-text-neutral-inverted)}@media screen and (max-width: 48rem){.text-align-left--mobile{text-align:left}.text-align-center--mobile{text-align:center}.text-align-right--mobile{text-align:right}}@media screen and (min-width: 48rem){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}::slotted(p){margin-bottom:var(--px-spacing-xs-tablet)}.text-align-left--tablet{text-align:left}.text-align-center--tablet{text-align:center}.text-align-right--tablet{text-align:right}}@media screen and (min-width: 64.0625rem){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}::slotted(p){margin-bottom:var(--px-spacing-xs-laptop)}.text-align-left--laptop{text-align:left}.text-align-center--laptop{text-align:center}.text-align-right--laptop{text-align:right}}@media screen and (min-width: 90.0625rem){::slotted(p){margin-bottom:var(--px-spacing-xs-desktop)}}", Et = new CSSStyleSheet(), Bt = new CSSStyleSheet(), Mt = new CSSStyleSheet();
|
|
1912
|
+
Et.replaceSync(ue);
|
|
1913
|
+
Bt.replaceSync(K);
|
|
1914
|
+
Mt.replaceSync(wt);
|
|
1915
|
+
const it = class it extends $ {
|
|
1677
1916
|
constructor() {
|
|
1678
|
-
super(
|
|
1917
|
+
super(Bt, Mt, Et), this.template = "<p><slot></slot></p>", this.shadowRoot.innerHTML = this.template;
|
|
1679
1918
|
}
|
|
1680
1919
|
static get observedAttributes() {
|
|
1681
1920
|
return [
|
|
@@ -1696,22 +1935,22 @@ const X = class X extends m {
|
|
|
1696
1935
|
if (e !== o)
|
|
1697
1936
|
switch (t) {
|
|
1698
1937
|
case "variant":
|
|
1699
|
-
this.updateVariant(t, e, o,
|
|
1938
|
+
this.updateVariant(t, e, o, ht);
|
|
1700
1939
|
break;
|
|
1701
1940
|
case "color":
|
|
1702
|
-
this.updateTypography(t, e, o,
|
|
1941
|
+
this.updateTypography(t, e, o, Z);
|
|
1703
1942
|
break;
|
|
1704
1943
|
case "font-size":
|
|
1705
|
-
this.updateTypography(t, e, o,
|
|
1944
|
+
this.updateTypography(t, e, o, ut);
|
|
1706
1945
|
break;
|
|
1707
1946
|
case "font-weight":
|
|
1708
|
-
this.updateTypography(t, e, o,
|
|
1947
|
+
this.updateTypography(t, e, o, gt);
|
|
1709
1948
|
break;
|
|
1710
1949
|
case "text-align":
|
|
1711
1950
|
case "text-align--mobile":
|
|
1712
1951
|
case "text-align--tablet":
|
|
1713
1952
|
case "text-align--laptop":
|
|
1714
|
-
this.updateTypography(t, e, o,
|
|
1953
|
+
this.updateTypography(t, e, o, ct);
|
|
1715
1954
|
break;
|
|
1716
1955
|
case "disabled":
|
|
1717
1956
|
this.color = "state-disabled";
|
|
@@ -1725,11 +1964,15 @@ const X = class X extends m {
|
|
|
1725
1964
|
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
|
|
1726
1965
|
}
|
|
1727
1966
|
updateVariant(t, e, o, r) {
|
|
1728
|
-
this.checkName(r, o) ? this.toggleClass(e, o) :
|
|
1967
|
+
this.checkName(r, o) ? this.toggleClass(e, o) : d(
|
|
1968
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1969
|
+
);
|
|
1729
1970
|
}
|
|
1730
1971
|
updateTypography(t, e, o, r) {
|
|
1731
1972
|
if (!this.checkName(r, o))
|
|
1732
|
-
|
|
1973
|
+
d(
|
|
1974
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
1975
|
+
);
|
|
1733
1976
|
else {
|
|
1734
1977
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
1735
1978
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
@@ -1810,10 +2053,10 @@ const X = class X extends m {
|
|
|
1810
2053
|
this.setAttribute("disabled", t);
|
|
1811
2054
|
}
|
|
1812
2055
|
};
|
|
1813
|
-
|
|
1814
|
-
let
|
|
1815
|
-
customElements.get("px-p") || customElements.define("px-p",
|
|
1816
|
-
class
|
|
2056
|
+
it.nativeName = "p";
|
|
2057
|
+
let G = it;
|
|
2058
|
+
customElements.get("px-p") || customElements.define("px-p", G);
|
|
2059
|
+
class xe extends HTMLElement {
|
|
1817
2060
|
constructor() {
|
|
1818
2061
|
super(), this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = `
|
|
1819
2062
|
<button aria-hidden="true" style="width: 0; height: 0; border: 0; background-color: #00000000;"></button>
|
|
@@ -1827,16 +2070,16 @@ class oe extends HTMLElement {
|
|
|
1827
2070
|
});
|
|
1828
2071
|
}
|
|
1829
2072
|
}
|
|
1830
|
-
customElements.get("px-mdd-closer") || customElements.define("px-mdd-closer",
|
|
1831
|
-
const
|
|
1832
|
-
|
|
1833
|
-
var
|
|
1834
|
-
class
|
|
2073
|
+
customElements.get("px-mdd-closer") || customElements.define("px-mdd-closer", xe);
|
|
2074
|
+
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%;background-color:var(--px-color-background-surface-default)}@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.8125rem){dialog #footer{position:static}dialog::backdrop{background-color:#0006}}@media screen and (max-width: 47.938rem){dialog{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{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:32px;right:16px}#sections-container{overflow:auto}@media screen and (min-width: 48rem){#sections-container{padding-bottom:0}}#mobile-header{display:none}@media screen and (max-width: 47.938rem){#mobile-header{display:block;padding-bottom:32px}}px-p{display:none}@media screen and (max-width: 47.938rem){px-p{display:block;padding-bottom:32px}}#footer{display:none}@media screen and (max-width: 47.938rem){#footer{display:block;position:absolute;bottom:0;left:0;right:0;padding:var(--px-padding-s-mobile);background-color:var(--px-color-background-container-light-default)}}", Rt = new CSSStyleSheet();
|
|
2075
|
+
Rt.replaceSync(ve);
|
|
2076
|
+
var y, p, Y, It, S, jt;
|
|
2077
|
+
class me extends HTMLElement {
|
|
1835
2078
|
constructor() {
|
|
1836
2079
|
var e;
|
|
1837
2080
|
super();
|
|
1838
|
-
|
|
1839
|
-
|
|
2081
|
+
c(this, p);
|
|
2082
|
+
c(this, y);
|
|
1840
2083
|
this.template = `<dialog>
|
|
1841
2084
|
<px-section>
|
|
1842
2085
|
<px-container
|
|
@@ -1893,14 +2136,14 @@ class ie extends HTMLElement {
|
|
|
1893
2136
|
<slot name="mdd-footer"></slot>
|
|
1894
2137
|
</px-hstack>
|
|
1895
2138
|
</px-section>
|
|
1896
|
-
</dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [
|
|
2139
|
+
</dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [Rt], this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.internals && (this.internals.role = "menu");
|
|
1897
2140
|
}
|
|
1898
2141
|
static get observedAttributes() {
|
|
1899
2142
|
return ["hidden", "name", "close-button-aria-label", "back-to-menu-label"];
|
|
1900
2143
|
}
|
|
1901
2144
|
connectedCallback() {
|
|
1902
2145
|
var e, o;
|
|
1903
|
-
if (this.querySelectorAll("px-mdd-section").length === 0)
|
|
2146
|
+
if (this.role = "menu", this.querySelectorAll("px-mdd-section").length === 0)
|
|
1904
2147
|
throw new Error("HeaderPanel must contain at least one MenuSection");
|
|
1905
2148
|
this.hidden = !0, this.internals && (this.internals.ariaHidden = "true"), this.ariaHidden = "true", this.setAttribute("slot", "header-panels"), this.shadowRoot.addEventListener("click", (r) => {
|
|
1906
2149
|
if (r.target.closest("px-button-icon"))
|
|
@@ -1926,14 +2169,14 @@ class ie extends HTMLElement {
|
|
|
1926
2169
|
}
|
|
1927
2170
|
})
|
|
1928
2171
|
);
|
|
1929
|
-
}), this.getAttribute("name") === "__lavender_mobile_menu" && (n(this,
|
|
2172
|
+
}), this.getAttribute("name") === "__lavender_mobile_menu" && (n(this, p, Y).style.visibility = "hidden"), this.getAttribute("name") !== "__lavender_mobile_menu" && (n(this, p, It).innerText = ((o = (e = this.closest("px-header")) == null ? void 0 : e.querySelector(
|
|
1930
2173
|
`px-header-item[for="${this.getAttribute("name")}"]`
|
|
1931
|
-
)) == null ? void 0 : o.innerText) ?? ""), this.$slotMddFooter || (n(this,
|
|
1932
|
-
this.$slotMddFooter && (n(this,
|
|
1933
|
-
})), n(this,
|
|
2174
|
+
)) == null ? void 0 : o.innerText) ?? ""), this.$slotMddFooter || (n(this, p, S).style.display = "none"), k(this, y, new MutationObserver(() => {
|
|
2175
|
+
this.$slotMddFooter && (n(this, p, S).style.display = "block");
|
|
2176
|
+
})), n(this, y).observe(this, { childList: !0, subtree: !0 });
|
|
1934
2177
|
}
|
|
1935
2178
|
disconnectedCallback() {
|
|
1936
|
-
n(this,
|
|
2179
|
+
n(this, y).disconnect();
|
|
1937
2180
|
}
|
|
1938
2181
|
attributeChangedCallback(e, o, r) {
|
|
1939
2182
|
if (e === "name" && !r)
|
|
@@ -1941,15 +2184,15 @@ class ie extends HTMLElement {
|
|
|
1941
2184
|
if (e === "name" && (this.id = r), e === "hidden" && this.internals) {
|
|
1942
2185
|
const i = r === "true" || r === "" ? "true" : "false";
|
|
1943
2186
|
this.internals.ariaHidden = i, this.ariaHidden = i;
|
|
1944
|
-
const
|
|
2187
|
+
const l = n(this, p, S).offsetHeight / parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
1945
2188
|
this.style.setProperty(
|
|
1946
2189
|
"--mdd-section-container-padding-bottom",
|
|
1947
|
-
`${
|
|
2190
|
+
`${l}em`
|
|
1948
2191
|
);
|
|
1949
2192
|
}
|
|
1950
|
-
e === "close-button-aria-label" && n(this,
|
|
2193
|
+
e === "close-button-aria-label" && n(this, p, jt).forEach((i) => {
|
|
1951
2194
|
r ? i.setAttribute("aria-label", r || "Close") : i.removeAttribute("aria-label");
|
|
1952
|
-
}), e === "back-to-menu-label" && (n(this,
|
|
2195
|
+
}), e === "back-to-menu-label" && (n(this, p, Y).innerHTML = `
|
|
1953
2196
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
1954
2197
|
${r || "Back to menu"}
|
|
1955
2198
|
`);
|
|
@@ -1992,19 +2235,19 @@ class ie extends HTMLElement {
|
|
|
1992
2235
|
this.$dialog.style.setProperty("--mdd-dialog-offset-top", e);
|
|
1993
2236
|
}
|
|
1994
2237
|
}
|
|
1995
|
-
|
|
2238
|
+
y = new WeakMap(), p = new WeakSet(), Y = function() {
|
|
1996
2239
|
return this.shadowRoot.querySelector("#back-button");
|
|
1997
|
-
},
|
|
2240
|
+
}, It = function() {
|
|
1998
2241
|
return this.shadowRoot.querySelector("px-p");
|
|
1999
|
-
},
|
|
2242
|
+
}, S = function() {
|
|
2000
2243
|
return this.shadowRoot.querySelector("#footer");
|
|
2001
|
-
},
|
|
2244
|
+
}, jt = function() {
|
|
2002
2245
|
return this.shadowRoot.querySelectorAll("px-button-icon");
|
|
2003
2246
|
};
|
|
2004
|
-
customElements.get("px-mdd") || customElements.define("px-mdd",
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2007
|
-
class
|
|
2247
|
+
customElements.get("px-mdd") || customElements.define("px-mdd", me);
|
|
2248
|
+
const fe = ':host{flex-basis:25%}@media screen and (max-width: 47.938rem){:host{width:100%;flex-basis:100%}#section-wrapper{background-color:#fff;border-radius:8px;padding-inline:16px}::slotted(px-mdd-section-item){border-bottom:var(--px-size-border-m) solid var(--px-color-border-main-default)}::slotted(px-mdd-section-item:last-of-type){border-bottom:none}::slotted([slot="footer"]){background-color:#fff;border-radius:8px;padding-inline:16px;line-height:4rem}:host([title-hidden]){padding-bottom:var(--mdd-section-container-padding-bottom, 0)}}', Pt = new CSSStyleSheet();
|
|
2249
|
+
Pt.replaceSync(fe);
|
|
2250
|
+
class ke extends HTMLElement {
|
|
2008
2251
|
constructor() {
|
|
2009
2252
|
super(), this.template = `<px-vstack gap="default">
|
|
2010
2253
|
<px-p font-size="heading-l" font-weight="title">
|
|
@@ -2018,7 +2261,7 @@ class se extends HTMLElement {
|
|
|
2018
2261
|
<px-vstack gap="default" gap--mobile="default">
|
|
2019
2262
|
<slot name="footer"></slot>
|
|
2020
2263
|
</px-vstack>
|
|
2021
|
-
</px-vstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [
|
|
2264
|
+
</px-vstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [Pt];
|
|
2022
2265
|
}
|
|
2023
2266
|
connectedCallback() {
|
|
2024
2267
|
this.$slotTitle || this.$title.setAttribute("hidden", ""), this.setupForId();
|
|
@@ -2057,12 +2300,12 @@ class se extends HTMLElement {
|
|
|
2057
2300
|
t ? this.setAttribute("hidden-title", "") : this.removeAttribute("hidden-title");
|
|
2058
2301
|
}
|
|
2059
2302
|
}
|
|
2060
|
-
customElements.get("px-mdd-section") || customElements.define("px-mdd-section",
|
|
2061
|
-
const
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
const
|
|
2303
|
+
customElements.get("px-mdd-section") || customElements.define("px-mdd-section", ke);
|
|
2304
|
+
const Ht = new CSSStyleSheet(), Ot = new CSSStyleSheet(), qt = new CSSStyleSheet();
|
|
2305
|
+
Ht.replaceSync(vt);
|
|
2306
|
+
Ot.replaceSync(xt);
|
|
2307
|
+
qt.replaceSync(K);
|
|
2308
|
+
const ye = [...ut, "link-m", "link-s"], lt = [
|
|
2066
2309
|
"link",
|
|
2067
2310
|
"no-style",
|
|
2068
2311
|
"skip-link",
|
|
@@ -2070,10 +2313,10 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2070
2313
|
"btn-secondary",
|
|
2071
2314
|
"btn-tertiary",
|
|
2072
2315
|
"icon-link"
|
|
2073
|
-
],
|
|
2316
|
+
], Ae = ["", "default", "alternative"], M = class M extends $ {
|
|
2074
2317
|
constructor() {
|
|
2075
|
-
super(
|
|
2076
|
-
const t = document.createElement(
|
|
2318
|
+
super(Ht, Ot, qt), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
|
|
2319
|
+
const t = document.createElement(M.nativeName);
|
|
2077
2320
|
t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
|
|
2078
2321
|
}
|
|
2079
2322
|
static get observedAttributes() {
|
|
@@ -2099,7 +2342,9 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2099
2342
|
];
|
|
2100
2343
|
}
|
|
2101
2344
|
connectedCallback() {
|
|
2102
|
-
|
|
2345
|
+
this.$before && this.$before.localName === "px-icon" && this.configureBeforeAfterIcon(this.$before), this.$after && this.$after.localName === "px-icon" && this.configureBeforeAfterIcon(this.$after), pt(this, this.$el, !1);
|
|
2346
|
+
}
|
|
2347
|
+
disconnectedCallback() {
|
|
2103
2348
|
}
|
|
2104
2349
|
attributeChangedCallback(t, e, o) {
|
|
2105
2350
|
if (e !== o)
|
|
@@ -2115,7 +2360,7 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2115
2360
|
case "shape--tablet":
|
|
2116
2361
|
case "shape--laptop":
|
|
2117
2362
|
case "shape--desktop":
|
|
2118
|
-
this.updateShape(t, o,
|
|
2363
|
+
this.updateShape(t, o, Ae);
|
|
2119
2364
|
break;
|
|
2120
2365
|
case "extended":
|
|
2121
2366
|
case "extended--mobile":
|
|
@@ -2129,14 +2374,14 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2129
2374
|
t,
|
|
2130
2375
|
e,
|
|
2131
2376
|
o,
|
|
2132
|
-
|
|
2377
|
+
ye
|
|
2133
2378
|
);
|
|
2134
2379
|
break;
|
|
2135
2380
|
case "color":
|
|
2136
|
-
this.updateTypography(t, e, o,
|
|
2381
|
+
this.updateTypography(t, e, o, Z);
|
|
2137
2382
|
break;
|
|
2138
2383
|
case "font-weight":
|
|
2139
|
-
this.updateTypography(t, e, o,
|
|
2384
|
+
this.updateTypography(t, e, o, gt);
|
|
2140
2385
|
break;
|
|
2141
2386
|
case "title":
|
|
2142
2387
|
o && (this.$el.setAttribute("title", o), this.removeAttribute("title"));
|
|
@@ -2161,17 +2406,23 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2161
2406
|
this.$el.classList.toggle(t);
|
|
2162
2407
|
}
|
|
2163
2408
|
updateVariant(t, e) {
|
|
2164
|
-
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(
|
|
2409
|
+
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(lt, e) || d(
|
|
2410
|
+
`"${e}" is not a valid variant value for ${this.tagName.toLowerCase()}. Allowed values are: "${lt.join('", "')}".`
|
|
2411
|
+
), e === "icon-link" && this.$iconNotBeforeAfter.setAttribute("color", "inherit");
|
|
2165
2412
|
}
|
|
2166
2413
|
updateShape(t, e, o) {
|
|
2167
|
-
if (!
|
|
2168
|
-
|
|
2414
|
+
if (!w(o, e)) {
|
|
2415
|
+
d(
|
|
2416
|
+
`"${e}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
2417
|
+
);
|
|
2169
2418
|
return;
|
|
2170
2419
|
}
|
|
2171
2420
|
e !== null && e !== "" && this.$el.setAttribute(t, e);
|
|
2172
2421
|
}
|
|
2173
2422
|
updateTypography(t, e, o, r) {
|
|
2174
|
-
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) ||
|
|
2423
|
+
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(
|
|
2424
|
+
`"${o}" is not a valid ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join('", "')}".`
|
|
2425
|
+
);
|
|
2175
2426
|
}
|
|
2176
2427
|
updateExtended(t, e) {
|
|
2177
2428
|
e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
|
|
@@ -2290,12 +2541,46 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2290
2541
|
t ? this.setAttribute("title", t) : this.removeAttribute("title");
|
|
2291
2542
|
}
|
|
2292
2543
|
};
|
|
2293
|
-
|
|
2294
|
-
let
|
|
2295
|
-
customElements.get("px-a") || customElements.define("px-a",
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2544
|
+
M.nativeName = "a";
|
|
2545
|
+
let L = M;
|
|
2546
|
+
customElements.get("px-a") || customElements.define("px-a", L);
|
|
2547
|
+
var f, R, Dt;
|
|
2548
|
+
class ze extends L {
|
|
2549
|
+
constructor() {
|
|
2550
|
+
super();
|
|
2551
|
+
c(this, R);
|
|
2552
|
+
c(this, f);
|
|
2553
|
+
this.$el.classList.add("wrapper"), k(this, f, new bt(
|
|
2554
|
+
this,
|
|
2555
|
+
this.$el,
|
|
2556
|
+
() => j(this, R, Dt).call(this)
|
|
2557
|
+
));
|
|
2558
|
+
}
|
|
2559
|
+
connectedCallback() {
|
|
2560
|
+
super.connectedCallback(), n(this, f).connect();
|
|
2561
|
+
}
|
|
2562
|
+
disconnectedCallback() {
|
|
2563
|
+
super.disconnectedCallback(), n(this, f).disconnect();
|
|
2564
|
+
}
|
|
2565
|
+
attributeChangedCallback(e, o, r) {
|
|
2566
|
+
if (o !== r)
|
|
2567
|
+
switch (e) {
|
|
2568
|
+
case "disabled":
|
|
2569
|
+
super.attributeChangedCallback(e, o, r), r !== null && n(this, f).clearInteractiveState();
|
|
2570
|
+
break;
|
|
2571
|
+
default:
|
|
2572
|
+
super.attributeChangedCallback(e, o, r);
|
|
2573
|
+
break;
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
f = new WeakMap(), R = new WeakSet(), Dt = function() {
|
|
2578
|
+
return !this.hasAttribute("disabled") && this.$el.getAttribute("aria-disabled") !== "true";
|
|
2579
|
+
};
|
|
2580
|
+
customElements.get("px-a-wrapper") || customElements.define("px-a-wrapper", ze);
|
|
2581
|
+
const we = '.mdd-section-item-action-container{display:inline-flex;align-items:center}a{text-decoration:none;color:inherit;font-size:var(--px-text-size-label-l-mobile)}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%}a,button{display:block}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.938rem){a,button{padding:var(--px-spacing-s-mobile) 0}}@media screen and (min-width: 48rem){a{display:inline-block;font-size:var(--px-text-size-label-l-tablet)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-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{font-size:var(--px-text-size-label-l-laptop)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-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{font-size:var(--px-text-size-label-l-desktop)}a ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a:focus-visible,button:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}', Nt = new CSSStyleSheet();
|
|
2582
|
+
Nt.replaceSync(we);
|
|
2583
|
+
class $e extends HTMLElement {
|
|
2299
2584
|
constructor() {
|
|
2300
2585
|
var t;
|
|
2301
2586
|
super(), this.template = `
|
|
@@ -2306,7 +2591,7 @@ class be extends HTMLElement {
|
|
|
2306
2591
|
</span>
|
|
2307
2592
|
<px-spacer></px-spacer>
|
|
2308
2593
|
<px-icon name="chevron_right" from="lavender"></px-icon>
|
|
2309
|
-
</px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
2594
|
+
</px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [Nt], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.internals && (this.internals.role = "listitem");
|
|
2310
2595
|
}
|
|
2311
2596
|
static get observedAttributes() {
|
|
2312
2597
|
return ["href", "for"];
|
|
@@ -2319,7 +2604,7 @@ class be extends HTMLElement {
|
|
|
2319
2604
|
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"));
|
|
2320
2605
|
}
|
|
2321
2606
|
connectedCallback() {
|
|
2322
|
-
this.hasAttribute("href") ? (this.updateView("href", this.href), this.$link.href = this.href) : this.hasAttribute("for") && (this.updateView("for", this.getAttribute("for")), this.addEventListener("click", this.handleClick)), this.$after && this.$after.localName === "px-icon" && this.configureAfterIcon(this.$after), this.$link && (this.$arrowIcon.style.display = "none");
|
|
2607
|
+
this.role = "listitem", this.hasAttribute("href") ? (this.updateView("href", this.href), this.$link.href = this.href) : this.hasAttribute("for") && (this.updateView("for", this.getAttribute("for")), this.addEventListener("click", this.handleClick)), this.$after && this.$after.localName === "px-icon" && this.configureAfterIcon(this.$after), this.$link && (this.$arrowIcon.style.display = "none");
|
|
2323
2608
|
}
|
|
2324
2609
|
handleClick() {
|
|
2325
2610
|
const t = new CustomEvent("section-item-click", {
|
|
@@ -2355,9 +2640,9 @@ class be extends HTMLElement {
|
|
|
2355
2640
|
);
|
|
2356
2641
|
}
|
|
2357
2642
|
}
|
|
2358
|
-
customElements.get("px-mdd-section-item") || customElements.define("px-mdd-section-item",
|
|
2643
|
+
customElements.get("px-mdd-section-item") || customElements.define("px-mdd-section-item", $e);
|
|
2359
2644
|
export {
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2645
|
+
ke as MddSection,
|
|
2646
|
+
$e as MddSectionItem,
|
|
2647
|
+
me as MegaDropDown
|
|
2363
2648
|
};
|