@proximus/lavender-mega-dropdown 2.0.0-alpha.3 → 2.0.0-alpha.30
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 +332 -271
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -2,15 +2,15 @@ var J = (s) => {
|
|
|
2
2
|
throw TypeError(s);
|
|
3
3
|
};
|
|
4
4
|
var Q = (s, t, e) => t.has(s) || J("Cannot " + e);
|
|
5
|
-
var n = (s, t, e) => (Q(s, t, "read from private field"), e ? e.call(s) : t.get(s)),
|
|
6
|
-
import { PxElement as
|
|
5
|
+
var n = (s, t, e) => (Q(s, t, "read from private field"), e ? e.call(s) : t.get(s)), v = (s, t, e) => t.has(s) ? J("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), A = (s, t, e, o) => (Q(s, t, "write to private field"), o ? o.call(s, e) : t.set(s, e), e);
|
|
6
|
+
import { PxElement as y, transferAccessibilityAttributes as V, log as d, checkName as O, WithExtraAttributes as Tt, iconSizeValuesKC as Et, textalignValues as tt, colorValues as _, headingValues as et, cssTokenBreakpoints as h, paddingValues as c, VerticallyExtendedElement as Bt, boxShadowValues as Mt, backgroundSizeValues as Rt, noBorderRadiusValues as It, borderRadiusValues as Pt, borderSideValues as qt, borderValues as Dt, gradientValues as Ht, backgroundColorValues as ot, borderColorValues as Ot, fontweightValues as rt, fontsizeValues as it } 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)}}', _t = ".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)}}", Ht = ":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
|
-
st.replaceSync(it);
|
|
8
|
+
const at = `.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)}}`, st = ':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)}}', _t = ".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)}}", Ft = ":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)}}", nt = new CSSStyleSheet(), dt = new CSSStyleSheet(), lt = new CSSStyleSheet(), pt = new CSSStyleSheet();
|
|
10
9
|
nt.replaceSync(at);
|
|
11
|
-
dt.replaceSync(
|
|
12
|
-
lt.replaceSync(
|
|
13
|
-
|
|
10
|
+
dt.replaceSync(st);
|
|
11
|
+
lt.replaceSync(_t);
|
|
12
|
+
pt.replaceSync(Ft);
|
|
13
|
+
const Nt = [
|
|
14
14
|
"",
|
|
15
15
|
"default",
|
|
16
16
|
"secondary",
|
|
@@ -22,15 +22,15 @@ const Ot = [
|
|
|
22
22
|
"patch-eco",
|
|
23
23
|
"actionable-tag",
|
|
24
24
|
"header-dropdown"
|
|
25
|
-
],
|
|
25
|
+
], Wt = [
|
|
26
26
|
"",
|
|
27
27
|
"default",
|
|
28
28
|
"bottom-right",
|
|
29
29
|
"bottom-left",
|
|
30
30
|
"alternative"
|
|
31
|
-
],
|
|
31
|
+
], N = class N extends y {
|
|
32
32
|
constructor() {
|
|
33
|
-
super(
|
|
33
|
+
super(nt, dt, lt, pt), this.template = () => `<button class="btn">
|
|
34
34
|
<slot name="before"></slot><slot></slot><slot name="after"></slot>
|
|
35
35
|
</button>`, this.shadowRoot.innerHTML = this.template();
|
|
36
36
|
}
|
|
@@ -55,14 +55,13 @@ const Ot = [
|
|
|
55
55
|
];
|
|
56
56
|
}
|
|
57
57
|
connectedCallback() {
|
|
58
|
-
super.connectedCallback();
|
|
59
58
|
const t = this.querySelectorAll("px-icon");
|
|
60
59
|
t && t.forEach((e) => {
|
|
61
60
|
const o = e.getAttribute("size"), r = e.getAttribute("color");
|
|
62
61
|
e && (e.addEventListener("click", () => {
|
|
63
62
|
this.$el.focus();
|
|
64
63
|
}), o || e.setAttribute("size", "xs"), r || e.setAttribute("color", "inherit"));
|
|
65
|
-
}),
|
|
64
|
+
}), V(this, this.$el), this.$el.type === "submit" && this.addEventListener("click", (e) => {
|
|
66
65
|
var o;
|
|
67
66
|
e.preventDefault(), (o = this.closest("form")) == null || o.submit();
|
|
68
67
|
}), this.$el.type === "reset" && this.addEventListener("click", (e) => {
|
|
@@ -94,7 +93,7 @@ const Ot = [
|
|
|
94
93
|
case "shape--tablet":
|
|
95
94
|
case "shape--laptop":
|
|
96
95
|
case "shape--desktop":
|
|
97
|
-
this.updateShape(t, o,
|
|
96
|
+
this.updateShape(t, o, Wt);
|
|
98
97
|
break;
|
|
99
98
|
case "aria-expanded":
|
|
100
99
|
o && (this.$el.setAttribute("aria-expanded", o), this.removeAttribute("aria-expanded"));
|
|
@@ -116,13 +115,15 @@ const Ot = [
|
|
|
116
115
|
t !== null && t !== "" && t !== "default" && this.checkClass(t), e !== null && e !== "" && e !== "default" && this.checkClass(e);
|
|
117
116
|
}
|
|
118
117
|
updateVariant(t, e) {
|
|
119
|
-
e === "link" ? this.$el.classList.remove("btn") : this.$el.classList.add("btn"), this._toggleClass(t, e), this.checkName(
|
|
120
|
-
`${e} is not a valid "variant" value for ${
|
|
118
|
+
e === "link" ? this.$el.classList.remove("btn") : this.$el.classList.add("btn"), this._toggleClass(t, e), this.checkName(Nt, e) || d(
|
|
119
|
+
`${e} is not a valid "variant" value for ${this.tagName.toLowerCase()}`
|
|
121
120
|
);
|
|
122
121
|
}
|
|
123
122
|
updateState(t, e) {
|
|
124
123
|
const o = ["", "default", "success", "error"];
|
|
125
|
-
this._toggleClass(t, e), this.checkName(o, e) ||
|
|
124
|
+
this._toggleClass(t, e), this.checkName(o, e) || d(
|
|
125
|
+
`${e} is not a valid "sate" value for ${this.tagName.toLowerCase()}`
|
|
126
|
+
);
|
|
126
127
|
}
|
|
127
128
|
updateExtended(t, e) {
|
|
128
129
|
e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
|
|
@@ -132,8 +133,10 @@ const Ot = [
|
|
|
132
133
|
t && (t.getAttribute("size") || t.setAttribute("size", "xs")), this.$el.classList.toggle("loading");
|
|
133
134
|
}
|
|
134
135
|
updateShape(t, e, o) {
|
|
135
|
-
if (!
|
|
136
|
-
|
|
136
|
+
if (!O(o, e)) {
|
|
137
|
+
d(
|
|
138
|
+
`${e} is not a valid shape value for ${this.tagName.toLowerCase()}`
|
|
139
|
+
);
|
|
137
140
|
return;
|
|
138
141
|
}
|
|
139
142
|
e !== null && e !== "" && this.$el.setAttribute(t, e);
|
|
@@ -229,10 +232,10 @@ const Ot = [
|
|
|
229
232
|
t ? this.setAttribute("aria-expanded", t) : this.removeAttribute("aria-expanded");
|
|
230
233
|
}
|
|
231
234
|
};
|
|
232
|
-
|
|
233
|
-
let
|
|
234
|
-
customElements.get("px-button") || customElements.define("px-button",
|
|
235
|
-
class
|
|
235
|
+
N.nativeName = "button";
|
|
236
|
+
let C = N;
|
|
237
|
+
customElements.get("px-button") || customElements.define("px-button", C);
|
|
238
|
+
class jt extends HTMLElement {
|
|
236
239
|
constructor() {
|
|
237
240
|
super();
|
|
238
241
|
}
|
|
@@ -265,8 +268,8 @@ class Wt extends HTMLElement {
|
|
|
265
268
|
t && t.remove();
|
|
266
269
|
}
|
|
267
270
|
}
|
|
268
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
269
|
-
const
|
|
271
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", jt);
|
|
272
|
+
const Yt = [
|
|
270
273
|
"Brand",
|
|
271
274
|
"Accent",
|
|
272
275
|
"Neutral",
|
|
@@ -279,11 +282,11 @@ const jt = [
|
|
|
279
282
|
"StateHover",
|
|
280
283
|
"StateActive",
|
|
281
284
|
"StateDisabled"
|
|
282
|
-
],
|
|
285
|
+
], Zt = ["Inherit", ...Yt].map(
|
|
283
286
|
(s) => s.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)
|
|
284
|
-
),
|
|
285
|
-
|
|
286
|
-
const
|
|
287
|
+
), Gt = ":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)}", bt = new CSSStyleSheet();
|
|
288
|
+
bt.replaceSync(Gt);
|
|
289
|
+
const Kt = [
|
|
287
290
|
"name",
|
|
288
291
|
"size",
|
|
289
292
|
"color",
|
|
@@ -292,20 +295,20 @@ const Gt = [
|
|
|
292
295
|
"from",
|
|
293
296
|
"disabled"
|
|
294
297
|
];
|
|
295
|
-
var
|
|
296
|
-
class
|
|
298
|
+
var x, b, $;
|
|
299
|
+
class Xt extends Tt {
|
|
297
300
|
constructor(...e) {
|
|
298
301
|
var o;
|
|
299
|
-
super(...e,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
<use xlink:href="
|
|
302
|
+
super(...e, bt);
|
|
303
|
+
v(this, x);
|
|
304
|
+
v(this, b);
|
|
305
|
+
v(this, $, () => `<svg aria-hidden="true">
|
|
306
|
+
<use xlink:href=""></use>
|
|
304
307
|
</svg>`);
|
|
305
|
-
this.shadowRoot.innerHTML = n(this,
|
|
308
|
+
this.shadowRoot.innerHTML = n(this, $).call(this), A(this, b, (o = this.attachInternals) == null ? void 0 : o.call(this)), n(this, b) && (n(this, b).role = "img");
|
|
306
309
|
}
|
|
307
310
|
static get observedAttributes() {
|
|
308
|
-
return [...super.observedAttributes, ...
|
|
311
|
+
return [...super.observedAttributes, ...Kt];
|
|
309
312
|
}
|
|
310
313
|
attributeChangedCallback(e, o, r) {
|
|
311
314
|
if (o !== r)
|
|
@@ -314,22 +317,26 @@ class Kt extends Lt {
|
|
|
314
317
|
this.updateName(o, r);
|
|
315
318
|
break;
|
|
316
319
|
case "size":
|
|
317
|
-
this.updateAttribute(e, o, r,
|
|
320
|
+
this.updateAttribute(e, o, r, Et);
|
|
318
321
|
break;
|
|
319
322
|
case "color":
|
|
320
|
-
this.updateAttribute(e, o, r,
|
|
323
|
+
this.updateAttribute(e, o, r, Zt);
|
|
321
324
|
break;
|
|
322
325
|
case "disabled":
|
|
323
326
|
this.color = "state-disabled";
|
|
324
327
|
break;
|
|
325
328
|
case "aria-label":
|
|
326
|
-
if (!n(this,
|
|
329
|
+
if (!n(this, b))
|
|
327
330
|
return;
|
|
328
|
-
r ? n(this,
|
|
331
|
+
r ? (n(this, b).ariaHidden = "false", this.ariaHidden = "false") : (n(this, b).ariaHidden = "true", this.ariaHidden = "true");
|
|
329
332
|
break;
|
|
330
333
|
}
|
|
331
334
|
}
|
|
332
335
|
connectedCallback() {
|
|
336
|
+
this.role = "img", this.name && this.$el.firstElementChild.setAttribute(
|
|
337
|
+
"xlink:href",
|
|
338
|
+
`#icon-${this.name}`
|
|
339
|
+
);
|
|
333
340
|
const e = document.querySelectorAll("px-icon-set");
|
|
334
341
|
e || console.log("<px-icon-set> component not found");
|
|
335
342
|
for (const o of e) {
|
|
@@ -337,20 +344,22 @@ class Kt extends Lt {
|
|
|
337
344
|
console.error("Icon name or src not found");
|
|
338
345
|
continue;
|
|
339
346
|
}
|
|
340
|
-
o.getAttribute("name") === this.from && o.getAttribute("type") !== "font" && (
|
|
347
|
+
o.getAttribute("name") === this.from && o.getAttribute("type") !== "font" && (A(this, x, o.getAttribute("src")), this.$el.firstElementChild.setAttribute(
|
|
341
348
|
"xlink:href",
|
|
342
|
-
`${n(this,
|
|
349
|
+
`${n(this, x)}#icon-${this.name}`
|
|
343
350
|
));
|
|
344
351
|
}
|
|
345
|
-
!this.ariaLabel && n(this,
|
|
352
|
+
!this.ariaLabel && n(this, b) && (n(this, b).ariaHidden = "true", this.ariaHidden = "true");
|
|
346
353
|
}
|
|
347
354
|
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) ||
|
|
355
|
+
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(
|
|
356
|
+
`${r} is not an allowed ${e} value for ${this.tagName.toLowerCase()}`
|
|
357
|
+
);
|
|
349
358
|
}
|
|
350
359
|
updateName(e, o) {
|
|
351
|
-
n(this,
|
|
360
|
+
n(this, x) && this.$el.firstElementChild.setAttribute(
|
|
352
361
|
"xlink:href",
|
|
353
|
-
`${n(this,
|
|
362
|
+
`${n(this, x)}#icon-${o}`
|
|
354
363
|
);
|
|
355
364
|
}
|
|
356
365
|
get $el() {
|
|
@@ -399,18 +408,18 @@ class Kt extends Lt {
|
|
|
399
408
|
this.setAttribute("disabled", e);
|
|
400
409
|
}
|
|
401
410
|
}
|
|
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)}: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){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){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){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)}}", _ = ".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
|
|
411
|
+
x = new WeakMap(), b = new WeakMap(), $ = new WeakMap();
|
|
412
|
+
customElements.get("px-icon") || customElements.define("px-icon", Xt);
|
|
413
|
+
const ct = "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)}}", F = ".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)}", ht = new CSSStyleSheet();
|
|
414
|
+
ht.replaceSync(ct);
|
|
415
|
+
const gt = new CSSStyleSheet();
|
|
416
|
+
gt.replaceSync(F);
|
|
417
|
+
class f extends y {
|
|
409
418
|
template() {
|
|
410
419
|
return "<slot></slot>";
|
|
411
420
|
}
|
|
412
421
|
constructor(t) {
|
|
413
|
-
super(
|
|
422
|
+
super(ht, gt);
|
|
414
423
|
const e = document.createElement(t);
|
|
415
424
|
e.innerHTML = this.template(), this.shadowRoot.appendChild(e);
|
|
416
425
|
}
|
|
@@ -424,24 +433,25 @@ class m extends f {
|
|
|
424
433
|
"text-align--tablet",
|
|
425
434
|
"text-align--laptop",
|
|
426
435
|
"text-align--desktop",
|
|
427
|
-
"inverted"
|
|
436
|
+
"inverted",
|
|
437
|
+
"auto-spacing"
|
|
428
438
|
];
|
|
429
439
|
}
|
|
430
440
|
attributeChangedCallback(t, e, o) {
|
|
431
441
|
if (e !== o)
|
|
432
442
|
switch (t) {
|
|
433
443
|
case "variant":
|
|
434
|
-
this.updateAttribute(t, e, o,
|
|
444
|
+
this.updateAttribute(t, e, o, et);
|
|
435
445
|
break;
|
|
436
446
|
case "color":
|
|
437
|
-
this.updateColor(e, o,
|
|
447
|
+
this.updateColor(e, o, _);
|
|
438
448
|
break;
|
|
439
449
|
case "text-align":
|
|
440
450
|
case "text-align--mobile":
|
|
441
451
|
case "text-align--tablet":
|
|
442
452
|
case "text-align--laptop":
|
|
443
453
|
case "text-align--desktop":
|
|
444
|
-
this.updateTextAlign(t, e, o,
|
|
454
|
+
this.updateTextAlign(t, e, o, tt);
|
|
445
455
|
break;
|
|
446
456
|
default:
|
|
447
457
|
super.attributeChangedCallback(t, e, o);
|
|
@@ -452,11 +462,15 @@ class m extends f {
|
|
|
452
462
|
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
|
|
453
463
|
}
|
|
454
464
|
updateAttribute(t, e, o, r) {
|
|
455
|
-
this.checkName(r, o) ? this.toggleClass(e, o) :
|
|
465
|
+
this.checkName(r, o) ? this.toggleClass(e, o) : d(
|
|
466
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
467
|
+
);
|
|
456
468
|
}
|
|
457
469
|
updateColor(t, e, o) {
|
|
458
470
|
if (!this.checkName(o, e)) {
|
|
459
|
-
|
|
471
|
+
d(
|
|
472
|
+
`${e} is not an allowed color value for ${this.tagName.toLowerCase()}`
|
|
473
|
+
);
|
|
460
474
|
return;
|
|
461
475
|
}
|
|
462
476
|
const r = (i) => {
|
|
@@ -472,13 +486,15 @@ class m extends f {
|
|
|
472
486
|
}
|
|
473
487
|
updateTextAlign(t, e, o, r) {
|
|
474
488
|
if (!this.checkName(r, o)) {
|
|
475
|
-
|
|
489
|
+
d(
|
|
490
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
491
|
+
);
|
|
476
492
|
return;
|
|
477
493
|
}
|
|
478
|
-
const i = (a,
|
|
479
|
-
|
|
494
|
+
const i = (a, l) => {
|
|
495
|
+
l !== null && l !== "" && l !== "default" && this.$el.style.setProperty(
|
|
480
496
|
`--heading-text-align--${a}`,
|
|
481
|
-
|
|
497
|
+
l
|
|
482
498
|
);
|
|
483
499
|
};
|
|
484
500
|
if (t === "text-align")
|
|
@@ -538,63 +554,69 @@ class m extends f {
|
|
|
538
554
|
set inverted(t) {
|
|
539
555
|
this.setAttribute("inverted", t);
|
|
540
556
|
}
|
|
557
|
+
get autoSpacing() {
|
|
558
|
+
return this.hasAttribute("auto-spacing");
|
|
559
|
+
}
|
|
560
|
+
set autoSpacing(t) {
|
|
561
|
+
t ? this.setAttribute("auto-spacing", "") : this.removeAttribute("auto-spacing");
|
|
562
|
+
}
|
|
541
563
|
}
|
|
542
|
-
const
|
|
564
|
+
const W = class W extends f {
|
|
543
565
|
constructor() {
|
|
544
566
|
super("h1");
|
|
545
567
|
}
|
|
546
568
|
};
|
|
547
|
-
|
|
548
|
-
let
|
|
549
|
-
customElements.get("px-h1") || customElements.define("px-h1",
|
|
550
|
-
const
|
|
569
|
+
W.nativeName = "h1";
|
|
570
|
+
let L = W;
|
|
571
|
+
customElements.get("px-h1") || customElements.define("px-h1", L);
|
|
572
|
+
const j = class j extends f {
|
|
551
573
|
constructor() {
|
|
552
574
|
super("h2");
|
|
553
575
|
}
|
|
554
576
|
};
|
|
555
|
-
|
|
556
|
-
let
|
|
557
|
-
customElements.get("px-h2") || customElements.define("px-h2",
|
|
558
|
-
const
|
|
577
|
+
j.nativeName = "h2";
|
|
578
|
+
let T = j;
|
|
579
|
+
customElements.get("px-h2") || customElements.define("px-h2", T);
|
|
580
|
+
const Y = class Y extends f {
|
|
559
581
|
constructor() {
|
|
560
582
|
super("h3");
|
|
561
583
|
}
|
|
562
584
|
};
|
|
563
|
-
|
|
564
|
-
let
|
|
565
|
-
customElements.get("px-h3") || customElements.define("px-h3",
|
|
566
|
-
const
|
|
585
|
+
Y.nativeName = "h3";
|
|
586
|
+
let E = Y;
|
|
587
|
+
customElements.get("px-h3") || customElements.define("px-h3", E);
|
|
588
|
+
const Z = class Z extends f {
|
|
567
589
|
constructor() {
|
|
568
590
|
super("h4");
|
|
569
591
|
}
|
|
570
592
|
};
|
|
571
|
-
|
|
572
|
-
let
|
|
573
|
-
customElements.get("px-h4") || customElements.define("px-h4",
|
|
574
|
-
const
|
|
593
|
+
Z.nativeName = "h4";
|
|
594
|
+
let B = Z;
|
|
595
|
+
customElements.get("px-h4") || customElements.define("px-h4", B);
|
|
596
|
+
const G = class G extends f {
|
|
575
597
|
constructor() {
|
|
576
598
|
super("h5");
|
|
577
599
|
}
|
|
578
600
|
};
|
|
579
|
-
|
|
580
|
-
let
|
|
581
|
-
customElements.get("px-h5") || customElements.define("px-h5",
|
|
582
|
-
const
|
|
601
|
+
G.nativeName = "h5";
|
|
602
|
+
let M = G;
|
|
603
|
+
customElements.get("px-h5") || customElements.define("px-h5", M);
|
|
604
|
+
const K = class K extends f {
|
|
583
605
|
constructor() {
|
|
584
606
|
super("h6");
|
|
585
607
|
}
|
|
586
608
|
};
|
|
587
|
-
|
|
588
|
-
let
|
|
589
|
-
customElements.get("px-h6") || customElements.define("px-h6",
|
|
590
|
-
const
|
|
591
|
-
|
|
592
|
-
const
|
|
609
|
+
K.nativeName = "h6";
|
|
610
|
+
let R = K;
|
|
611
|
+
customElements.get("px-h6") || customElements.define("px-h6", R);
|
|
612
|
+
const Ut = ".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 only screen and (min-width: 768px){.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 only screen and (min-width: 1025px){.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 only screen and (min-width: 1441px){.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}}", ut = new CSSStyleSheet();
|
|
613
|
+
ut.replaceSync(Ut);
|
|
614
|
+
const Jt = [
|
|
593
615
|
"",
|
|
594
616
|
"default",
|
|
595
617
|
"horizontal",
|
|
596
618
|
"vertical"
|
|
597
|
-
],
|
|
619
|
+
], Qt = ["", "default", "none", "s", "m", "l"], Vt = [
|
|
598
620
|
"",
|
|
599
621
|
"main",
|
|
600
622
|
"brand",
|
|
@@ -606,11 +628,11 @@ const Ut = [
|
|
|
606
628
|
"purpose-unlimited",
|
|
607
629
|
"state-hover",
|
|
608
630
|
"state-active"
|
|
609
|
-
],
|
|
631
|
+
], S = class S extends y {
|
|
610
632
|
constructor() {
|
|
611
633
|
var e;
|
|
612
|
-
super(
|
|
613
|
-
const t = document.createElement(
|
|
634
|
+
super(ut);
|
|
635
|
+
const t = document.createElement(S.nativeName);
|
|
614
636
|
t.classList.add("separator"), this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.shadowRoot.appendChild(t);
|
|
615
637
|
}
|
|
616
638
|
static get observedAttributes() {
|
|
@@ -638,14 +660,14 @@ const Ut = [
|
|
|
638
660
|
t,
|
|
639
661
|
e,
|
|
640
662
|
o,
|
|
641
|
-
|
|
663
|
+
Jt
|
|
642
664
|
);
|
|
643
665
|
break;
|
|
644
666
|
case "size":
|
|
645
|
-
this.updateSize(t, e, o,
|
|
667
|
+
this.updateSize(t, e, o, Qt);
|
|
646
668
|
break;
|
|
647
669
|
case "color":
|
|
648
|
-
this.updateColor(t, e, o,
|
|
670
|
+
this.updateColor(t, e, o, Vt);
|
|
649
671
|
break;
|
|
650
672
|
default:
|
|
651
673
|
super.attributeChangedCallback(t, e, o);
|
|
@@ -659,7 +681,9 @@ const Ut = [
|
|
|
659
681
|
`var(--px-size-border-${a})`
|
|
660
682
|
);
|
|
661
683
|
};
|
|
662
|
-
this.checkName(r, o) ? (i(e), i(o)) :
|
|
684
|
+
this.checkName(r, o) ? (i(e), i(o)) : d(
|
|
685
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
686
|
+
);
|
|
663
687
|
}
|
|
664
688
|
updateColor(t, e, o, r) {
|
|
665
689
|
const i = (a) => {
|
|
@@ -671,14 +695,18 @@ const Ut = [
|
|
|
671
695
|
`var(--px-color-border-${a}-inverted)`
|
|
672
696
|
));
|
|
673
697
|
};
|
|
674
|
-
this.checkName(r, o) ? (i(e), i(o)) :
|
|
698
|
+
this.checkName(r, o) ? (i(e), i(o)) : d(
|
|
699
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
700
|
+
);
|
|
675
701
|
}
|
|
676
702
|
updateDirection(t, e, o, r) {
|
|
677
|
-
const i = (a,
|
|
678
|
-
|
|
703
|
+
const i = (a, l) => {
|
|
704
|
+
l !== null && l !== "" && l !== "default" && this.$el.classList.add(`separator-direction-${l}--${a}`);
|
|
679
705
|
};
|
|
680
706
|
if (!this.checkName(r, o))
|
|
681
|
-
|
|
707
|
+
d(
|
|
708
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
709
|
+
);
|
|
682
710
|
else if (t === "direction")
|
|
683
711
|
["mobile", "tablet", "laptop", "desktop"].forEach((a) => {
|
|
684
712
|
Array.from(this.$el.classList).find(
|
|
@@ -686,11 +714,11 @@ const Ut = [
|
|
|
686
714
|
) || i(a, o);
|
|
687
715
|
});
|
|
688
716
|
else {
|
|
689
|
-
const a = t.split("--")[1],
|
|
717
|
+
const a = t.split("--")[1], l = Array.from(this.$el.classList).find(
|
|
690
718
|
(k) => k.startsWith("separator-direction-") && k.endsWith(`--${a}`)
|
|
691
719
|
);
|
|
692
|
-
|
|
693
|
-
|
|
720
|
+
l ? this.$el.classList.replace(
|
|
721
|
+
l,
|
|
694
722
|
`separator-direction-${o}--${a}`
|
|
695
723
|
) : i(a, o);
|
|
696
724
|
}
|
|
@@ -744,61 +772,60 @@ const Ut = [
|
|
|
744
772
|
this.setAttribute("inverted", t);
|
|
745
773
|
}
|
|
746
774
|
};
|
|
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);background-image:var(--background-image);background:var(--background-gradient);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}: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));background-image:var( --background-image--mobile, var( --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));background-image:var( --background-image--tablet, var( --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));background-image:var( --background-image--laptop, var( --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
|
|
775
|
+
S.nativeName = "hr";
|
|
776
|
+
let I = S;
|
|
777
|
+
customElements.get("px-separator") || customElements.define("px-separator", I);
|
|
778
|
+
const te = ':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)}}', ee = ':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}}', xt = new CSSStyleSheet();
|
|
779
|
+
xt.replaceSync(ee);
|
|
780
|
+
const g = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, u = "px-padding", oe = [
|
|
781
|
+
h(
|
|
782
|
+
"padding",
|
|
783
|
+
g,
|
|
784
|
+
c,
|
|
785
|
+
u,
|
|
786
|
+
"--container-padding"
|
|
787
|
+
),
|
|
788
|
+
h(
|
|
789
|
+
"padding-inline",
|
|
790
|
+
g,
|
|
791
|
+
c,
|
|
792
|
+
u
|
|
793
|
+
),
|
|
794
|
+
h(
|
|
795
|
+
"padding-block",
|
|
796
|
+
g,
|
|
797
|
+
c,
|
|
798
|
+
u
|
|
799
|
+
),
|
|
800
|
+
h(
|
|
801
|
+
"padding-top",
|
|
802
|
+
g,
|
|
803
|
+
c,
|
|
804
|
+
u
|
|
805
|
+
),
|
|
806
|
+
h(
|
|
807
|
+
"padding-right",
|
|
808
|
+
g,
|
|
809
|
+
c,
|
|
810
|
+
u,
|
|
811
|
+
"--container-padding-right"
|
|
812
|
+
),
|
|
813
|
+
h(
|
|
814
|
+
"padding-bottom",
|
|
815
|
+
g,
|
|
816
|
+
c,
|
|
817
|
+
u
|
|
818
|
+
),
|
|
819
|
+
h(
|
|
820
|
+
"padding-left",
|
|
821
|
+
g,
|
|
822
|
+
c,
|
|
823
|
+
u,
|
|
824
|
+
"--container-padding-left"
|
|
825
|
+
)
|
|
826
|
+
], X = class X extends Bt {
|
|
753
827
|
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">
|
|
828
|
+
super(xt, ...oe), this.template = () => `<div class="container">
|
|
802
829
|
<slot></slot>
|
|
803
830
|
<slot name="anchor-left"></slot>
|
|
804
831
|
<slot name="anchor-right"></slot>
|
|
@@ -839,24 +866,28 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
839
866
|
];
|
|
840
867
|
}
|
|
841
868
|
connectedCallback() {
|
|
842
|
-
super.connectedCallback(), this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
869
|
+
super.connectedCallback(), this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
|
|
870
|
+
this.$slotAnchor && this.addAnchorClass();
|
|
871
|
+
}), this.contentObserver.observe(this, {
|
|
872
|
+
childList: !0,
|
|
873
|
+
subtree: !0,
|
|
874
|
+
characterData: !0
|
|
875
|
+
}), this._bgObserver = new IntersectionObserver((t) => {
|
|
876
|
+
t.forEach((e) => {
|
|
877
|
+
var o;
|
|
878
|
+
e.isIntersecting && (this._isInViewport = !0, this._loadBackgroundImages(), (o = this._bgObserver) == null || o.disconnect());
|
|
848
879
|
});
|
|
849
880
|
}), this._bgObserver.observe(this.$el);
|
|
850
881
|
}
|
|
851
882
|
disconnectedCallback() {
|
|
852
883
|
var t;
|
|
853
|
-
(t = this._bgObserver) == null || t.disconnect();
|
|
884
|
+
(t = this._bgObserver) == null || t.disconnect(), this.contentObserver.disconnect();
|
|
854
885
|
}
|
|
855
886
|
attributeChangedCallback(t, e, o) {
|
|
856
887
|
if (e !== o)
|
|
857
888
|
switch (t) {
|
|
858
889
|
case "border":
|
|
859
|
-
this.updateAttribute(t, e, o,
|
|
890
|
+
this.updateAttribute(t, e, o, Dt);
|
|
860
891
|
break;
|
|
861
892
|
case "border-color":
|
|
862
893
|
this.updateBorderColor(t, o);
|
|
@@ -865,14 +896,14 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
865
896
|
case "border-side--mobile":
|
|
866
897
|
case "border-side--tablet":
|
|
867
898
|
case "border-side--laptop":
|
|
868
|
-
this.updateAttribute(t, e, o,
|
|
899
|
+
this.updateAttribute(t, e, o, qt);
|
|
869
900
|
break;
|
|
870
901
|
case "border-radius":
|
|
871
902
|
this.updateAttribute(
|
|
872
903
|
t,
|
|
873
904
|
e,
|
|
874
905
|
o,
|
|
875
|
-
|
|
906
|
+
Pt
|
|
876
907
|
);
|
|
877
908
|
break;
|
|
878
909
|
case "no-border-radius":
|
|
@@ -883,7 +914,7 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
883
914
|
t,
|
|
884
915
|
e,
|
|
885
916
|
o,
|
|
886
|
-
|
|
917
|
+
It
|
|
887
918
|
);
|
|
888
919
|
break;
|
|
889
920
|
case "background-color":
|
|
@@ -903,7 +934,7 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
903
934
|
t,
|
|
904
935
|
e,
|
|
905
936
|
o,
|
|
906
|
-
|
|
937
|
+
Rt
|
|
907
938
|
);
|
|
908
939
|
break;
|
|
909
940
|
case "background-image":
|
|
@@ -916,10 +947,10 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
916
947
|
o !== null && o !== "" && (this.$el.style.backgroundPosition = o);
|
|
917
948
|
break;
|
|
918
949
|
case "box-shadow":
|
|
919
|
-
this.updateAttribute(t, e, o,
|
|
950
|
+
this.updateAttribute(t, e, o, Mt);
|
|
920
951
|
break;
|
|
921
952
|
case "anchor-offset":
|
|
922
|
-
this.updateAnchorOffset(e, o,
|
|
953
|
+
this.updateAnchorOffset(e, o, c);
|
|
923
954
|
break;
|
|
924
955
|
default:
|
|
925
956
|
super.attributeChangedCallback(t, e, o);
|
|
@@ -941,7 +972,7 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
941
972
|
this.$el.style.setProperty(`--${t}`, `url("${e}")`);
|
|
942
973
|
}
|
|
943
974
|
updateGradient(t, e) {
|
|
944
|
-
if (this.checkName(
|
|
975
|
+
if (this.checkName(Ht, e)) {
|
|
945
976
|
const o = this.splitAttrNameFromBreakpoint(t);
|
|
946
977
|
t = o.attrName;
|
|
947
978
|
const r = o.breakpoint;
|
|
@@ -950,11 +981,13 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
950
981
|
`linear-gradient(var(--px-color-background-gradient-${e}))`
|
|
951
982
|
);
|
|
952
983
|
} else
|
|
953
|
-
|
|
984
|
+
d(
|
|
985
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
986
|
+
);
|
|
954
987
|
}
|
|
955
988
|
updateBackgroundColor(t, e) {
|
|
956
989
|
const o = e.startsWith("surface-");
|
|
957
|
-
if (this.checkName(
|
|
990
|
+
if (this.checkName(ot, e)) {
|
|
958
991
|
const r = this.splitAttrNameFromBreakpoint(t), i = r.breakpoint;
|
|
959
992
|
this.$el.style.setProperty(
|
|
960
993
|
`--${r.attrName}${i}`,
|
|
@@ -964,20 +997,26 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
964
997
|
`var(--px-color-background-${e}${o ? "" : "-inverted"})`
|
|
965
998
|
);
|
|
966
999
|
} else
|
|
967
|
-
|
|
1000
|
+
d(
|
|
1001
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1002
|
+
);
|
|
968
1003
|
}
|
|
969
1004
|
updateBorderColor(t, e) {
|
|
970
|
-
this.checkName(
|
|
1005
|
+
this.checkName(Ot, e) ? (this.$el.style.setProperty(
|
|
971
1006
|
`--${t}`,
|
|
972
1007
|
`var(--px-color-border-${e}-default)`
|
|
973
1008
|
), this.$el.style.setProperty(
|
|
974
1009
|
`--${t}-inverted`,
|
|
975
1010
|
`var(--px-color-border-${e}-inverted)`
|
|
976
|
-
)) :
|
|
1011
|
+
)) : d(
|
|
1012
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1013
|
+
);
|
|
977
1014
|
}
|
|
978
1015
|
updateNoBorderRadius(t, e, o, r) {
|
|
979
1016
|
if (!this.checkName(r, o))
|
|
980
|
-
|
|
1017
|
+
d(
|
|
1018
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1019
|
+
);
|
|
981
1020
|
else {
|
|
982
1021
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
983
1022
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
@@ -989,7 +1028,9 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
989
1028
|
}
|
|
990
1029
|
updateAttribute(t, e, o, r) {
|
|
991
1030
|
if (!this.checkName(r, o))
|
|
992
|
-
|
|
1031
|
+
d(
|
|
1032
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1033
|
+
);
|
|
993
1034
|
else {
|
|
994
1035
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
995
1036
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
@@ -1010,8 +1051,10 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
1010
1051
|
return { attrName: t, breakpoint: e };
|
|
1011
1052
|
}
|
|
1012
1053
|
updateAnchorOffset(t, e, o) {
|
|
1013
|
-
if (!
|
|
1014
|
-
|
|
1054
|
+
if (!O(o, e)) {
|
|
1055
|
+
d(
|
|
1056
|
+
`${e} is not a valid anchor-offset value for ${this.tagName.toLowerCase()}`
|
|
1057
|
+
);
|
|
1015
1058
|
return;
|
|
1016
1059
|
}
|
|
1017
1060
|
const r = (i) => {
|
|
@@ -1028,6 +1071,12 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
1028
1071
|
};
|
|
1029
1072
|
r(t), r(e);
|
|
1030
1073
|
}
|
|
1074
|
+
addAnchorClass() {
|
|
1075
|
+
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
1076
|
+
}
|
|
1077
|
+
get $slotAnchor() {
|
|
1078
|
+
return this.querySelector('[slot^="anchor"]');
|
|
1079
|
+
}
|
|
1031
1080
|
get padding() {
|
|
1032
1081
|
return this.getAttribute("padding");
|
|
1033
1082
|
}
|
|
@@ -1365,16 +1414,16 @@ const te = ["anchor-right", "anchor-left", "anchor-full"], h = (s, t, e) => `:ho
|
|
|
1365
1414
|
this.setAttribute("inverted", t);
|
|
1366
1415
|
}
|
|
1367
1416
|
};
|
|
1368
|
-
|
|
1369
|
-
let
|
|
1370
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
1371
|
-
const
|
|
1372
|
-
|
|
1373
|
-
class
|
|
1417
|
+
X.nativeName = "div";
|
|
1418
|
+
let P = X;
|
|
1419
|
+
customElements.get("px-container") || customElements.define("px-container", P);
|
|
1420
|
+
const vt = new CSSStyleSheet();
|
|
1421
|
+
vt.replaceSync(te);
|
|
1422
|
+
class re extends HTMLElement {
|
|
1374
1423
|
constructor() {
|
|
1375
1424
|
super(), this.template = () => `
|
|
1376
|
-
<px-container border-radius="none" padding-inline="none"
|
|
1377
|
-
<div class="content-wrapper
|
|
1425
|
+
<px-container border-radius="none" padding-inline="none">
|
|
1426
|
+
<div class="content-wrapper">
|
|
1378
1427
|
<px-vstack gap="heading-to-content">
|
|
1379
1428
|
<slot name="heading"></slot>
|
|
1380
1429
|
<px-vstack gap="none">
|
|
@@ -1386,9 +1435,10 @@ class ee extends HTMLElement {
|
|
|
1386
1435
|
<div class="content-wrapper">
|
|
1387
1436
|
<slot name="overlap"></slot>
|
|
1388
1437
|
</div>
|
|
1389
|
-
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [
|
|
1438
|
+
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [vt];
|
|
1390
1439
|
}
|
|
1391
1440
|
connectedCallback() {
|
|
1441
|
+
this.$container.setAttribute("background-color", this.backgroundColor), this.$slotOverlap && this.shadowRoot.firstElementChild.querySelector(".content-wrapper").classList.add("overlapped");
|
|
1392
1442
|
const t = this.querySelector('[slot="heading"]');
|
|
1393
1443
|
!this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), t || this.shadowRoot.querySelector("px-vstack").setAttribute("gap", "none");
|
|
1394
1444
|
}
|
|
@@ -1428,7 +1478,7 @@ class ee extends HTMLElement {
|
|
|
1428
1478
|
if (e !== o)
|
|
1429
1479
|
switch (t) {
|
|
1430
1480
|
case "background-color":
|
|
1431
|
-
this.$container.backgroundColor =
|
|
1481
|
+
this.$container.backgroundColor = ot.indexOf(o) > 0 ? o : "none";
|
|
1432
1482
|
break;
|
|
1433
1483
|
case "background-gradient":
|
|
1434
1484
|
this.$container.gradient = this.gradient;
|
|
@@ -1658,14 +1708,14 @@ class ee extends HTMLElement {
|
|
|
1658
1708
|
this.setAttribute("border-side--laptop", t);
|
|
1659
1709
|
}
|
|
1660
1710
|
}
|
|
1661
|
-
customElements.get("px-section") || customElements.define("px-section",
|
|
1662
|
-
const
|
|
1663
|
-
|
|
1664
|
-
ft.replaceSync(
|
|
1665
|
-
|
|
1666
|
-
const
|
|
1711
|
+
customElements.get("px-section") || customElements.define("px-section", re);
|
|
1712
|
+
const ie = "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 only screen and (max-width: 768px){.text-align-left--mobile{text-align:left}.text-align-center--mobile{text-align:center}.text-align-right--mobile{text-align:right}}@media only screen and (min-width: 768px){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 only screen and (min-width: 1025px){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 only screen and (min-width: 90.0625em){::slotted(p){margin-bottom:var(--px-spacing-xs-desktop)}}", mt = new CSSStyleSheet(), ft = new CSSStyleSheet(), kt = new CSSStyleSheet();
|
|
1713
|
+
mt.replaceSync(ie);
|
|
1714
|
+
ft.replaceSync(F);
|
|
1715
|
+
kt.replaceSync(ct);
|
|
1716
|
+
const U = class U extends y {
|
|
1667
1717
|
constructor() {
|
|
1668
|
-
super(ft,
|
|
1718
|
+
super(ft, kt, mt), this.template = "<p><slot></slot></p>", this.shadowRoot.innerHTML = this.template;
|
|
1669
1719
|
}
|
|
1670
1720
|
static get observedAttributes() {
|
|
1671
1721
|
return [
|
|
@@ -1686,22 +1736,22 @@ const X = class X extends f {
|
|
|
1686
1736
|
if (e !== o)
|
|
1687
1737
|
switch (t) {
|
|
1688
1738
|
case "variant":
|
|
1689
|
-
this.updateVariant(t, e, o,
|
|
1739
|
+
this.updateVariant(t, e, o, et);
|
|
1690
1740
|
break;
|
|
1691
1741
|
case "color":
|
|
1692
|
-
this.updateTypography(t, e, o,
|
|
1742
|
+
this.updateTypography(t, e, o, _);
|
|
1693
1743
|
break;
|
|
1694
1744
|
case "font-size":
|
|
1695
|
-
this.updateTypography(t, e, o,
|
|
1745
|
+
this.updateTypography(t, e, o, it);
|
|
1696
1746
|
break;
|
|
1697
1747
|
case "font-weight":
|
|
1698
|
-
this.updateTypography(t, e, o,
|
|
1748
|
+
this.updateTypography(t, e, o, rt);
|
|
1699
1749
|
break;
|
|
1700
1750
|
case "text-align":
|
|
1701
1751
|
case "text-align--mobile":
|
|
1702
1752
|
case "text-align--tablet":
|
|
1703
1753
|
case "text-align--laptop":
|
|
1704
|
-
this.updateTypography(t, e, o,
|
|
1754
|
+
this.updateTypography(t, e, o, tt);
|
|
1705
1755
|
break;
|
|
1706
1756
|
case "disabled":
|
|
1707
1757
|
this.color = "state-disabled";
|
|
@@ -1715,11 +1765,15 @@ const X = class X extends f {
|
|
|
1715
1765
|
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
|
|
1716
1766
|
}
|
|
1717
1767
|
updateVariant(t, e, o, r) {
|
|
1718
|
-
this.checkName(r, o) ? this.toggleClass(e, o) :
|
|
1768
|
+
this.checkName(r, o) ? this.toggleClass(e, o) : d(
|
|
1769
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1770
|
+
);
|
|
1719
1771
|
}
|
|
1720
1772
|
updateTypography(t, e, o, r) {
|
|
1721
1773
|
if (!this.checkName(r, o))
|
|
1722
|
-
|
|
1774
|
+
d(
|
|
1775
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1776
|
+
);
|
|
1723
1777
|
else {
|
|
1724
1778
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
1725
1779
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
@@ -1800,10 +1854,10 @@ const X = class X extends f {
|
|
|
1800
1854
|
this.setAttribute("disabled", t);
|
|
1801
1855
|
}
|
|
1802
1856
|
};
|
|
1803
|
-
|
|
1804
|
-
let
|
|
1805
|
-
customElements.get("px-p") || customElements.define("px-p",
|
|
1806
|
-
class
|
|
1857
|
+
U.nativeName = "p";
|
|
1858
|
+
let q = U;
|
|
1859
|
+
customElements.get("px-p") || customElements.define("px-p", q);
|
|
1860
|
+
class ae extends HTMLElement {
|
|
1807
1861
|
constructor() {
|
|
1808
1862
|
super(), this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = `
|
|
1809
1863
|
<button aria-hidden="true" style="width: 0; height: 0; border: 0; background-color: #00000000;"></button>
|
|
@@ -1817,16 +1871,16 @@ class re extends HTMLElement {
|
|
|
1817
1871
|
});
|
|
1818
1872
|
}
|
|
1819
1873
|
}
|
|
1820
|
-
customElements.get("px-mdd-closer") || customElements.define("px-mdd-closer",
|
|
1821
|
-
const
|
|
1822
|
-
|
|
1823
|
-
var
|
|
1824
|
-
class
|
|
1874
|
+
customElements.get("px-mdd-closer") || customElements.define("px-mdd-closer", ae);
|
|
1875
|
+
const se = ":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: 285px){dialog #footer{position:static}dialog::backdrop{background-color:#0006}}@media screen and (max-width: 767px){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:2em;right:1em}#sections-container{overflow:auto}@media only screen and (min-width: 48em){#sections-container{padding-bottom:0}}#mobile-header{display:none}@media screen and (max-width: 767px){#mobile-header{display:block;padding-bottom:2em}}px-p{display:none}@media screen and (max-width: 767px){px-p{display:block;padding-bottom:2em}}#footer{display:none}@media screen and (max-width: 767px){#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)}}", yt = new CSSStyleSheet();
|
|
1876
|
+
yt.replaceSync(se);
|
|
1877
|
+
var m, p, D, At, z, zt;
|
|
1878
|
+
class ne extends HTMLElement {
|
|
1825
1879
|
constructor() {
|
|
1826
1880
|
var e;
|
|
1827
1881
|
super();
|
|
1828
|
-
|
|
1829
|
-
|
|
1882
|
+
v(this, p);
|
|
1883
|
+
v(this, m);
|
|
1830
1884
|
this.template = `<dialog>
|
|
1831
1885
|
<px-section>
|
|
1832
1886
|
<px-container
|
|
@@ -1883,7 +1937,7 @@ class ae extends HTMLElement {
|
|
|
1883
1937
|
<slot name="mdd-footer"></slot>
|
|
1884
1938
|
</px-hstack>
|
|
1885
1939
|
</px-section>
|
|
1886
|
-
</dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [
|
|
1940
|
+
</dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [yt], this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.role = "menu", this.internals && (this.internals.role = "menu");
|
|
1887
1941
|
}
|
|
1888
1942
|
static get observedAttributes() {
|
|
1889
1943
|
return ["hidden", "name", "close-button-aria-label", "back-to-menu-label"];
|
|
@@ -1892,7 +1946,7 @@ class ae extends HTMLElement {
|
|
|
1892
1946
|
var e, o;
|
|
1893
1947
|
if (this.querySelectorAll("px-mdd-section").length === 0)
|
|
1894
1948
|
throw new Error("HeaderPanel must contain at least one MenuSection");
|
|
1895
|
-
this.hidden = !0, this.internals && (this.internals.ariaHidden = "true"), this.setAttribute("slot", "header-panels"), this.shadowRoot.addEventListener("click", (r) => {
|
|
1949
|
+
this.hidden = !0, this.internals && (this.internals.ariaHidden = "true"), this.ariaHidden = "true", this.setAttribute("slot", "header-panels"), this.shadowRoot.addEventListener("click", (r) => {
|
|
1896
1950
|
if (r.target.closest("px-button-icon"))
|
|
1897
1951
|
this.dispatchEvent(
|
|
1898
1952
|
new CustomEvent("close-panel", { bubbles: !0, composed: !0 })
|
|
@@ -1916,29 +1970,30 @@ class ae extends HTMLElement {
|
|
|
1916
1970
|
}
|
|
1917
1971
|
})
|
|
1918
1972
|
);
|
|
1919
|
-
}), this.getAttribute("name") === "__lavender_mobile_menu" && (n(this,
|
|
1973
|
+
}), this.getAttribute("name") === "__lavender_mobile_menu" && (n(this, p, D).style.visibility = "hidden"), this.getAttribute("name") !== "__lavender_mobile_menu" && (n(this, p, At).innerText = ((o = (e = this.closest("px-header")) == null ? void 0 : e.querySelector(
|
|
1920
1974
|
`px-header-item[for="${this.getAttribute("name")}"]`
|
|
1921
|
-
)) == null ? void 0 : o.innerText) ?? ""), this.$slotMddFooter || (n(this,
|
|
1922
|
-
|
|
1923
|
-
})), n(this,
|
|
1975
|
+
)) == null ? void 0 : o.innerText) ?? ""), this.$slotMddFooter || (n(this, p, z).style.display = "none"), A(this, m, new MutationObserver(() => {
|
|
1976
|
+
this.$slotMddFooter && (n(this, p, z).style.display = "block");
|
|
1977
|
+
})), n(this, m).observe(this, { childList: !0, subtree: !0 });
|
|
1924
1978
|
}
|
|
1925
1979
|
disconnectedCallback() {
|
|
1926
|
-
n(this,
|
|
1980
|
+
n(this, m).disconnect();
|
|
1927
1981
|
}
|
|
1928
1982
|
attributeChangedCallback(e, o, r) {
|
|
1929
1983
|
if (e === "name" && !r)
|
|
1930
1984
|
throw new Error("Media Drop Down must have a name attribute");
|
|
1931
1985
|
if (e === "name" && (this.id = r), e === "hidden" && this.internals) {
|
|
1932
|
-
|
|
1933
|
-
|
|
1986
|
+
const i = r === "true" || r === "" ? "true" : "false";
|
|
1987
|
+
this.internals.ariaHidden = i, this.ariaHidden = i;
|
|
1988
|
+
const l = n(this, p, z).offsetHeight / parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
1934
1989
|
this.style.setProperty(
|
|
1935
1990
|
"--mdd-section-container-padding-bottom",
|
|
1936
|
-
`${
|
|
1991
|
+
`${l}em`
|
|
1937
1992
|
);
|
|
1938
1993
|
}
|
|
1939
|
-
e === "close-button-aria-label" && n(this,
|
|
1994
|
+
e === "close-button-aria-label" && n(this, p, zt).forEach((i) => {
|
|
1940
1995
|
r ? i.setAttribute("aria-label", r || "Close") : i.removeAttribute("aria-label");
|
|
1941
|
-
}), e === "back-to-menu-label" && (n(this,
|
|
1996
|
+
}), e === "back-to-menu-label" && (n(this, p, D).innerHTML = `
|
|
1942
1997
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
1943
1998
|
${r || "Back to menu"}
|
|
1944
1999
|
`);
|
|
@@ -1952,7 +2007,7 @@ class ae extends HTMLElement {
|
|
|
1952
2007
|
set hidden(e) {
|
|
1953
2008
|
if (typeof e != "boolean")
|
|
1954
2009
|
throw new Error("hidden must be a boolean");
|
|
1955
|
-
e ? (this.internals && (this.internals.ariaHidden = "true"), this.setAttribute("hidden", ""), this.$dialog.open && this.$dialog.close()) : (this.internals && (this.internals.ariaHidden = "false"), this.$dialog.open || (this.$dialog.showModal(), setTimeout(() => {
|
|
2010
|
+
e ? (this.internals && (this.internals.ariaHidden = "true"), this.ariaHidden = "true", this.setAttribute("hidden", ""), this.$dialog.open && this.$dialog.close()) : (this.internals && (this.internals.ariaHidden = "false"), this.ariaHidden = "false", this.$dialog.open || (this.$dialog.showModal(), setTimeout(() => {
|
|
1956
2011
|
window.navigator.userAgent.match(/iPhone|iPad|iPod/i) && this.$dialog.focus();
|
|
1957
2012
|
}, 0)), this.removeAttribute("hidden"));
|
|
1958
2013
|
}
|
|
@@ -1981,19 +2036,19 @@ class ae extends HTMLElement {
|
|
|
1981
2036
|
this.$dialog.style.setProperty("--mdd-dialog-offset-top", e);
|
|
1982
2037
|
}
|
|
1983
2038
|
}
|
|
1984
|
-
|
|
2039
|
+
m = new WeakMap(), p = new WeakSet(), D = function() {
|
|
1985
2040
|
return this.shadowRoot.querySelector("#back-button");
|
|
1986
|
-
},
|
|
2041
|
+
}, At = function() {
|
|
1987
2042
|
return this.shadowRoot.querySelector("px-p");
|
|
1988
|
-
},
|
|
2043
|
+
}, z = function() {
|
|
1989
2044
|
return this.shadowRoot.querySelector("#footer");
|
|
1990
|
-
},
|
|
2045
|
+
}, zt = function() {
|
|
1991
2046
|
return this.shadowRoot.querySelectorAll("px-button-icon");
|
|
1992
2047
|
};
|
|
1993
|
-
customElements.get("px-mdd") || customElements.define("px-mdd",
|
|
1994
|
-
const
|
|
1995
|
-
|
|
1996
|
-
class
|
|
2048
|
+
customElements.get("px-mdd") || customElements.define("px-mdd", ne);
|
|
2049
|
+
const de = ':host{flex-basis:25%}@media screen and (max-width: 767px){:host{width:100%;flex-basis:100%}#section-wrapper{background-color:#fff;border-radius:.5em;padding-inline:1em}::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:.5em;padding-inline:1em;line-height:4em}:host([title-hidden]){padding-bottom:var(--mdd-section-container-padding-bottom, 0)}}', $t = new CSSStyleSheet();
|
|
2050
|
+
$t.replaceSync(de);
|
|
2051
|
+
class le extends HTMLElement {
|
|
1997
2052
|
constructor() {
|
|
1998
2053
|
super(), this.template = `<px-vstack gap="default">
|
|
1999
2054
|
<px-p font-size="heading-l" font-weight="title">
|
|
@@ -2007,7 +2062,7 @@ class ne extends HTMLElement {
|
|
|
2007
2062
|
<px-vstack gap="default" gap--mobile="default">
|
|
2008
2063
|
<slot name="footer"></slot>
|
|
2009
2064
|
</px-vstack>
|
|
2010
|
-
</px-vstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [
|
|
2065
|
+
</px-vstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [$t];
|
|
2011
2066
|
}
|
|
2012
2067
|
connectedCallback() {
|
|
2013
2068
|
this.$slotTitle || this.$title.setAttribute("hidden", ""), this.setupForId();
|
|
@@ -2046,12 +2101,12 @@ class ne extends HTMLElement {
|
|
|
2046
2101
|
t ? this.setAttribute("hidden-title", "") : this.removeAttribute("hidden-title");
|
|
2047
2102
|
}
|
|
2048
2103
|
}
|
|
2049
|
-
customElements.get("px-mdd-section") || customElements.define("px-mdd-section",
|
|
2050
|
-
const
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
const
|
|
2104
|
+
customElements.get("px-mdd-section") || customElements.define("px-mdd-section", le);
|
|
2105
|
+
const St = new CSSStyleSheet(), wt = new CSSStyleSheet(), Ct = new CSSStyleSheet();
|
|
2106
|
+
St.replaceSync(st);
|
|
2107
|
+
wt.replaceSync(at);
|
|
2108
|
+
Ct.replaceSync(F);
|
|
2109
|
+
const pe = [...it, "link-m", "link-s"], be = [
|
|
2055
2110
|
"link",
|
|
2056
2111
|
"no-style",
|
|
2057
2112
|
"skip-link",
|
|
@@ -2059,10 +2114,10 @@ const de = [...rt, "link-m", "link-s"], le = [
|
|
|
2059
2114
|
"btn-secondary",
|
|
2060
2115
|
"btn-tertiary",
|
|
2061
2116
|
"icon-link"
|
|
2062
|
-
],
|
|
2117
|
+
], ce = ["", "default", "alternative"], w = class w extends y {
|
|
2063
2118
|
constructor() {
|
|
2064
|
-
super(
|
|
2065
|
-
const t = document.createElement(
|
|
2119
|
+
super(St, wt, Ct), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
|
|
2120
|
+
const t = document.createElement(w.nativeName);
|
|
2066
2121
|
t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
|
|
2067
2122
|
}
|
|
2068
2123
|
static get observedAttributes() {
|
|
@@ -2088,7 +2143,7 @@ const de = [...rt, "link-m", "link-s"], le = [
|
|
|
2088
2143
|
];
|
|
2089
2144
|
}
|
|
2090
2145
|
connectedCallback() {
|
|
2091
|
-
|
|
2146
|
+
this.$before && this.$before.localName === "px-icon" && this.configureBeforeAfterIcon(this.$before), this.$after && this.$after.localName === "px-icon" && this.configureBeforeAfterIcon(this.$after), V(this, this.$el, !1);
|
|
2092
2147
|
}
|
|
2093
2148
|
attributeChangedCallback(t, e, o) {
|
|
2094
2149
|
if (e !== o)
|
|
@@ -2104,7 +2159,7 @@ const de = [...rt, "link-m", "link-s"], le = [
|
|
|
2104
2159
|
case "shape--tablet":
|
|
2105
2160
|
case "shape--laptop":
|
|
2106
2161
|
case "shape--desktop":
|
|
2107
|
-
this.updateShape(t, o,
|
|
2162
|
+
this.updateShape(t, o, ce);
|
|
2108
2163
|
break;
|
|
2109
2164
|
case "extended":
|
|
2110
2165
|
case "extended--mobile":
|
|
@@ -2118,14 +2173,14 @@ const de = [...rt, "link-m", "link-s"], le = [
|
|
|
2118
2173
|
t,
|
|
2119
2174
|
e,
|
|
2120
2175
|
o,
|
|
2121
|
-
|
|
2176
|
+
pe
|
|
2122
2177
|
);
|
|
2123
2178
|
break;
|
|
2124
2179
|
case "color":
|
|
2125
|
-
this.updateTypography(t, e, o,
|
|
2180
|
+
this.updateTypography(t, e, o, _);
|
|
2126
2181
|
break;
|
|
2127
2182
|
case "font-weight":
|
|
2128
|
-
this.updateTypography(t, e, o,
|
|
2183
|
+
this.updateTypography(t, e, o, rt);
|
|
2129
2184
|
break;
|
|
2130
2185
|
case "title":
|
|
2131
2186
|
o && (this.$el.setAttribute("title", o), this.removeAttribute("title"));
|
|
@@ -2150,17 +2205,23 @@ const de = [...rt, "link-m", "link-s"], le = [
|
|
|
2150
2205
|
this.$el.classList.toggle(t);
|
|
2151
2206
|
}
|
|
2152
2207
|
updateVariant(t, e) {
|
|
2153
|
-
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(
|
|
2208
|
+
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(be, e) || d(
|
|
2209
|
+
`${e} is not an allowed variant value for ${this.tagName.toLowerCase()}`
|
|
2210
|
+
), e === "icon-link" && this.$iconNotBeforeAfter.setAttribute("color", "inherit");
|
|
2154
2211
|
}
|
|
2155
2212
|
updateShape(t, e, o) {
|
|
2156
|
-
if (!
|
|
2157
|
-
|
|
2213
|
+
if (!O(o, e)) {
|
|
2214
|
+
d(
|
|
2215
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
2216
|
+
);
|
|
2158
2217
|
return;
|
|
2159
2218
|
}
|
|
2160
2219
|
e !== null && e !== "" && this.$el.setAttribute(t, e);
|
|
2161
2220
|
}
|
|
2162
2221
|
updateTypography(t, e, o, r) {
|
|
2163
|
-
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) ||
|
|
2222
|
+
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(
|
|
2223
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
2224
|
+
);
|
|
2164
2225
|
}
|
|
2165
2226
|
updateExtended(t, e) {
|
|
2166
2227
|
e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
|
|
@@ -2279,12 +2340,12 @@ const de = [...rt, "link-m", "link-s"], le = [
|
|
|
2279
2340
|
t ? this.setAttribute("title", t) : this.removeAttribute("title");
|
|
2280
2341
|
}
|
|
2281
2342
|
};
|
|
2282
|
-
|
|
2283
|
-
let
|
|
2284
|
-
customElements.get("px-a") || customElements.define("px-a",
|
|
2285
|
-
const
|
|
2286
|
-
|
|
2287
|
-
class
|
|
2343
|
+
w.nativeName = "a";
|
|
2344
|
+
let H = w;
|
|
2345
|
+
customElements.get("px-a") || customElements.define("px-a", H);
|
|
2346
|
+
const he = '.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 only screen and (max-width: 47.9375em){a,button{padding:var(--px-spacing-s-mobile) 0}}@media only screen and (min-width: 48em){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 only screen and (min-width: 64.0625em){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 only screen and (min-width: 90.0625em){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)}}', Lt = new CSSStyleSheet();
|
|
2347
|
+
Lt.replaceSync(he);
|
|
2348
|
+
class ge extends HTMLElement {
|
|
2288
2349
|
constructor() {
|
|
2289
2350
|
var t;
|
|
2290
2351
|
super(), this.template = `
|
|
@@ -2295,7 +2356,7 @@ class ce extends HTMLElement {
|
|
|
2295
2356
|
</span>
|
|
2296
2357
|
<px-spacer></px-spacer>
|
|
2297
2358
|
<px-icon name="chevron_right" from="lavender"></px-icon>
|
|
2298
|
-
</px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
2359
|
+
</px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [Lt], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.role = "listitem", this.internals && (this.internals.role = "listitem");
|
|
2299
2360
|
}
|
|
2300
2361
|
static get observedAttributes() {
|
|
2301
2362
|
return ["href", "for"];
|
|
@@ -2344,9 +2405,9 @@ class ce extends HTMLElement {
|
|
|
2344
2405
|
);
|
|
2345
2406
|
}
|
|
2346
2407
|
}
|
|
2347
|
-
customElements.get("px-mdd-section-item") || customElements.define("px-mdd-section-item",
|
|
2408
|
+
customElements.get("px-mdd-section-item") || customElements.define("px-mdd-section-item", ge);
|
|
2348
2409
|
export {
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2410
|
+
le as MddSection,
|
|
2411
|
+
ge as MddSectionItem,
|
|
2412
|
+
ne as MegaDropDown
|
|
2352
2413
|
};
|