@proximus/lavender-mega-dropdown 2.0.0-alpha.6 → 2.0.0-alpha.60
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 +422 -270
- 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
|
|
6
|
-
import { PxElement as
|
|
5
|
+
var d = (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), z = (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 A, transferAccessibilityAttributes as V, log as n, checkName as y, WithExtraAttributes as tt, iconSizeValuesKC as Et, textalignValues as et, colorValues as _, headingValues as ot, cssTokenBreakpoints as c, paddingValues as g, gapValues 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 rt, borderColorValues as Ot, fontweightValues as it, fontsizeValues as at } from "@proximus/lavender-common";
|
|
7
7
|
import "@proximus/lavender-layout";
|
|
8
|
-
const it = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-state-active-default);background:var(--px-color-background-state-hover-bordered-default)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-primary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-mobile) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[disabled],.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown)[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown).loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn.secondary{color:var(--px-color-text-brand-default);background:var(--px-color-background-container-secondary-default);min-height:var(--px-spacing-l-mobile);padding:var(--px-padding-xs-mobile) var(--px-padding-m-mobile);border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.secondary[disabled],.btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.secondary.loading{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-brand-default);border-color:transparent}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn.tertiary{background:none;color:var(--px-color-text-brand-default);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid transparent;padding:var(--px-padding-2xs-mobile) 0;gap:var(--px-spacing-xs-mobile)}.btn.tertiary ::slotted(px-icon){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-container-secondary-default);transition:var(--btn-transition)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-mobile) var(--px-padding-s-mobile)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),.btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent;margin:0 -8px;width:inherit;height:inherit}.btn.tertiary[disabled],.btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-default)}.btn.tertiary[disabled] ::slotted(px-icon),.btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-default)}.btn.tertiary.loading{color:var(--px-color-text-brand-default);border-color:transparent}.btn.tertiary.loading ::slotted(px-spinner){display:flex;align-items:center;justify-content:center;width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);padding:4px;border-radius:var(--px-radius-pill);background:var(--px-color-background-state-disabled-default)}.btn.patch{display:inline-flex}.btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.patch[disabled],.btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}.btn.actionable-tag{background:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-xs-mobile);border-radius:var(--px-radius-pill);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default)}.btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-default);color:var(--px-color-text-state-active-inverted);border-color:var(--px-color-border-none-default)}.btn.actionable-tag[disabled],.btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default);border-color:var(--px-color-border-none-default)}.btn.header-dropdown{display:flex;justify-content:space-between;width:100%;color:var(--px-color-text-neutral-default);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-l-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);border-radius:var(--px-radius-main);background-color:var(--px-color-background-container-default-default);touch-action:manipulation}.btn.header-dropdown:after{display:inline-block;content:"";width:var(--px-size-icon-xs);height:var(--px-size-icon-xs);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:cover;mask-size:cover;-webkit-mask-position:50% 50%;mask-position:50% 50%;-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' fill='%235C2D91'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.4753 7.37808C15.1565 7.06426 14.6396 7.06426 14.3208 7.37808L10.0001 11.6313L5.67934 7.37808C5.36055 7.06426 4.84368 7.06426 4.52488 7.37808C4.20608 7.69189 4.20608 8.20069 4.52488 8.5145L9.42284 13.3359C9.74163 13.6497 10.2585 13.6497 10.5773 13.3359L15.4753 8.5145C15.7941 8.20069 15.7941 7.69189 15.4753 7.37808Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default)}button.link{background:none;border:none;text-decoration:underline;padding:0;cursor:pointer}button.link[disabled],button.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}:host([inverted]) .btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn:focus-visible:not([disabled],[aria-disabled=true]){outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) .btn:active:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-active-inverted);color:var(--px-color-text-state-active-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag){color:var(--px-color-text-brand-default);background:var(--px-color-background-container-primary-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag):hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[disabled],:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag)[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn:not(.secondary,.tertiary,.patch,.actionable-tag).loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.secondary{color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.secondary:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .btn.secondary[disabled],:host([inverted]) .btn.secondary[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.secondary.loading{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-brand-inverted);border-color:transparent}:host([inverted]) .btn.tertiary{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary ::slotted(px-icon){background:var(--px-color-background-container-secondary-inverted)}:host([inverted]) .btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon),:host([inverted]) .btn.tertiary:active:not([disabled],[aria-disabled=true],.loading) ::slotted(px-icon){background:transparent}:host([inverted]) .btn.tertiary[disabled],:host([inverted]) .btn.tertiary[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.tertiary[disabled] ::slotted(px-icon),:host([inverted]) .btn.tertiary[aria-disabled=true] ::slotted(px-icon){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.tertiary.loading{color:var(--px-color-text-brand-inverted)}:host([inverted]) .btn.tertiary.loading ::slotted(px-spinner){background:var(--px-color-background-state-disabled-inverted)}:host([inverted]) .btn.patch:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted)}:host([inverted]) .btn.patch[disabled],:host([inverted]) .btn.patch[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) .btn.actionable-tag{background:var(--px-color-background-container-default-default);color:var(--px-color-text-brand-inverted);border-color:var(--px-color-border-neutral-inverted)}:host([inverted]) .btn.actionable-tag:hover:not([disabled],[aria-disabled=true],.loading){color:var(--px-color-text-brand-inverted);background:var(--px-color-background-state-hover-bordered-inverted);border-color:var(--px-color-border-state-hover-inverted)}:host([inverted]) .btn.actionable-tag:active:not([disabled],[aria-disabled=true],.loading){background:var(--px-color-background-state-active-inverted);color:var(--px-color-text-state-active-default);border-color:var(--px-color-border-none-inverted)}:host([inverted]) .btn.actionable-tag[disabled],:host([inverted]) .btn.actionable-tag[aria-disabled=true]{background:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted);border-color:var(--px-color-border-none-default)}:host([inverted]) button.link[disabled],:host([inverted]) button.link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}@media only screen and (max-width: 47.938em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--mobile=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em) and (max-width: 64em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--tablet=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 48em){.btn{width:var(--button-extended--tablet, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{justify-content:flex-start;align-items:center;width:inherit;color:var(--px-color-text-brand-default);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-tablet);border:none;padding:0;border-radius:0;background:none}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--laptop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}}@media only screen and (min-width: 64.0625em){.btn{width:var(--button-extended--laptop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-2xs-laptop)}.btn:focus-visble:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}.btn.actionable-tag{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-xs-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-laptop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-laptop) * -1)}.btn.secondary{padding:var(--px-padding-xs-laptop) var(--px-padding-m-laptop)}.btn.tertiary{padding:var(--px-padding-2xs-laptop) 0;gap:var(--px-spacing-xs-laptop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-laptop) var(--px-padding-s-laptop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-laptop);padding:0}}@media only screen and (min-width: 90.0625em){.btn{width:var(--button-extended--desktop, var(--button-extended, auto));font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}.btn.actionable-tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-xs-desktop)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=alternative]{border-radius:var(--px-radius-button-small)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-left]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big)}.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=bottom-right],.btn:not(.tertiary,.patch,.actionable-tag,.header-dropdown)[shape--desktop=default]{border-radius:var(--px-radius-button-small) var(--px-radius-button-small) var(--px-radius-button-big) var(--px-radius-button-small)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="after"]){margin-right:calc(var(--px-padding-xs-desktop) * -1)}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown) ::slotted([slot="before"]){margin-left:calc(var(--px-padding-xs-desktop) * -1)}.btn.secondary{padding:var(--px-padding-xs-desktop) var(--px-padding-m-desktop)}.btn.tertiary{padding:var(--px-padding-2xs-desktop) 0;gap:var(--px-spacing-xs-desktop)}.btn.tertiary ::slotted(px-icon){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.tertiary:hover:not([disabled],[aria-disabled=true],.loading){padding:var(--px-padding-2xs-desktop) var(--px-padding-s-desktop)}.btn.tertiary.loading ::slotted(px-spinner){width:var(--px-size-icon-xs);height:var(--px-size-icon-xs)}.btn.header-dropdown{font-size:var(--px-text-size-label-m-desktop);padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`, at = ':host([variant="icon-link"]){display:inline-flex}a,.link,::slotted(a){display:inline;align-items:center;font-family:var(--px-font-family);font-size:var(--px-text-size-link-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}a:hover,.link:hover{color:var(--px-color-text-state-hover-default)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}a[aria-disabled=true],.link[aria-disabled=true]{cursor:default;pointer-events:none;color:var(--px-color-text-state-disabled-default)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-mobile)}a ::slotted(span[slot="after"]),a ::slotted(span[slot="before"]),.link ::slotted(span[slot="after"]),.link ::slotted(span[slot="before"]){display:inline-block}::slotted(a:hover){color:var(--px-color-text-state-hover-default)}a.no-style{text-decoration:none}a.no-style:hover,a.no-style:focus-visible{color:inherit}a.skip-link{position:absolute;left:-10000px;top:auto;overflow:hidden;background-color:var(--px-color-background-container-default-default);padding:var(--px-padding-xs-mobile)}a.skip-link:focus-visible{left:auto;z-index:999}:host([target="_blank"]) ::slotted(px-icon){vertical-align:middle}.icon-link{color:var(--px-color-icon-brand-default);line-height:1;display:inline-flex}:host([inverted]) a,:host([inverted]) .link,:host([inverted]) ::slotted(a){color:var(--px-color-text-neutral-inverted)}:host([inverted]) a:hover,:host([inverted]) .link:hover{color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a:focus-visible,:host([inverted]) .link:focus-visible{outline-color:var(--px-color-border-focus-outline-inverted)}:host([inverted]) a[aria-disabled=true],:host([inverted]) .link[aria-disabled=true]{color:var(--px-color-text-state-disabled-inverted)}:host([inverted]) ::slotted(a:hover){color:var(--px-color-text-state-hover-inverted)}:host([inverted]) a.skip-link{background-color:var(--px-color-background-container-default-inverted)}:host([inverted]) .icon-link{color:var(--px-color-icon-brand-inverted)}@media only screen and (min-width: 768px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-tablet)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-tablet)}a.skip-link{padding:var(--px-padding-xs-tablet)}}@media only screen and (min-width: 1025px){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-laptop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-laptop)}a.skip-link{padding:var(--px-padding-xs-laptop)}}@media only screen and (min-width: 90.0625em){a,.link,::slotted(a){font-size:var(--px-text-size-link-m-desktop)}a:focus-visible,.link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}a ::slotted([slot="after"]),.link ::slotted([slot="after"]){margin-left:var(--px-spacing-2xs-desktop)}a.skip-link{padding:var(--px-padding-xs-desktop)}}', Ht = ".patch{display:inline-flex;align-items:center;padding:var(--px-padding-3xs-mobile) var(--px-padding-s-mobile);border:var(--px-size-border-m) solid transparent;border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small);font-family:var(--px-font-family);font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);background-color:var(--px-color-background-purpose-promo-default);color:var(--px-color-text-neutral-inverted)}.patch,.patch *{box-sizing:border-box}[shape=bottom-right]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small) var(--px-radius-patch-big)}[shape=bottom-left],[shape=default]{border-radius:var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-big) var(--px-radius-patch-small)}.info{background-color:var(--px-color-background-purpose-info-default);color:var(--px-color-text-neutral-default)}.black-friday{background-color:var(--px-color-background-surface-dark);color:var(--px-color-text-neutral-inverted)}.eco{background-color:var(--px-color-background-purpose-success-default);color:var(--px-color-text-neutral-inverted)}.greyed{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .patch{background-color:var(--px-color-background-purpose-promo-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]) .info{background-color:var(--px-color-background-purpose-info-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .black-friday{background-color:var(--px-color-background-container-light-default);color:var(--px-color-text-neutral-default)}:host([inverted]) .eco{background-color:var(--px-color-background-purpose-success-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]) .greyed{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media only screen and (min-width: 768px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1025px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}@media only screen and (min-width: 1441px){.patch{padding:0 var(--px-padding-s-desktop);font-size:var(--px-text-size-label-m-desktop)}}", Ot = ":host:has(.tag){display:inline-block}.tag{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);gap:var(--px-spacing-xs-mobile);background-color:var(--px-color-background-container-default-default);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-s) solid transparent;border-radius:var(--px-radius-main)}.tag,.tag *{box-sizing:border-box}:host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .tag{background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]):host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media only screen and (min-width: 768px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}@media only screen and (min-width: 1025px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}", st = new CSSStyleSheet(), nt = new CSSStyleSheet(), dt = new CSSStyleSheet(), lt = new CSSStyleSheet();
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
8
|
+
const st = `.btn{width:var(--button-extended--mobile, var(--button-extended, auto));display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);text-align:center;gap:var(--px-spacing-2xs-mobile);cursor:pointer;text-decoration:none;--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition);border:var(--px-size-border-m) solid transparent}.btn,.btn *{box-sizing:border-box}.btn ::slotted(px-icon){line-height:0}.btn:hover:not([disabled],[aria-disabled=true],.loading){border-color:var(--px-color-border-state-hover-default)}.btn:focus-visible:not([disabled],[aria-disabled=true]){outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}.btn:active:not([disabled],[aria-disabled=true],.loading){transform:scale(.95);border-color:var(--px-color-border-state-active-default);color:var(--px-color-text-brand-default);background:var(--px-color-background-state-hover-bordered-default)}.btn[disabled],.btn[aria-disabled=true]{cursor:default;pointer-events:none}.btn.loading{cursor:inherit}.btn.loading ::slotted(px-spinner){line-height:0}.btn:not(.secondary,.tertiary,.patch,.actionable-tag,.header-dropdown){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;gap:var(--px-spacing-s-mobile);width:100%;color:var(--px-color-text-neutral-default);font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-label-l-mobile);border:var(--px-size-border-m) solid var(--px-color-border-neutral-default);padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);border-radius:var(--px-radius-main);background-color:var(--px-color-background-container-default-default);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='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.38 5.90237C12.125 5.65131 11.7115 5.65131 11.4564 5.90237L7.99986 9.30494L4.54328 5.90237C4.28824 5.65131 3.87474 5.65131 3.61971 5.90237C3.36467 6.15342 3.36467 6.56045 3.61971 6.8115L7.53808 10.6686C7.79311 10.9197 8.20661 10.9197 8.46164 10.6686L12.38 6.8115C12.635 6.56045 12.635 6.15342 12.38 5.90237Z' fill='%235C2D91'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-brand-default);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}.btn.header-dropdown[aria-expanded=true]:after{transform:rotate(180deg)}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-brand-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;gap:var(--px-spacing-xs-tablet);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{gap:var(--px-spacing-xs-laptop);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{gap:var(--px-spacing-xs-desktop);font-size:var(--px-text-size-label-m-desktop);padding:0}}@keyframes anim-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}`, nt = ':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)}}", dt = new CSSStyleSheet(), lt = new CSSStyleSheet(), pt = new CSSStyleSheet(), bt = new CSSStyleSheet();
|
|
9
|
+
dt.replaceSync(st);
|
|
10
|
+
lt.replaceSync(nt);
|
|
11
|
+
pt.replaceSync(_t);
|
|
12
|
+
bt.replaceSync(Ft);
|
|
13
|
+
const Nt = [
|
|
14
14
|
"",
|
|
15
15
|
"default",
|
|
16
16
|
"secondary",
|
|
@@ -22,15 +22,15 @@ const _t = [
|
|
|
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 A {
|
|
32
32
|
constructor() {
|
|
33
|
-
super(
|
|
33
|
+
super(dt, lt, pt, bt), 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 _t = [
|
|
|
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 _t = [
|
|
|
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 _t = [
|
|
|
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) || n(
|
|
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) || n(
|
|
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 _t = [
|
|
|
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 (!y(o, e)) {
|
|
137
|
+
n(
|
|
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 _t = [
|
|
|
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 L = N;
|
|
237
|
+
customElements.get("px-button") || customElements.define("px-button", L);
|
|
238
|
+
class Gt extends HTMLElement {
|
|
236
239
|
constructor() {
|
|
237
240
|
super();
|
|
238
241
|
}
|
|
@@ -265,7 +268,7 @@ class Wt extends HTMLElement {
|
|
|
265
268
|
t && t.remove();
|
|
266
269
|
}
|
|
267
270
|
}
|
|
268
|
-
customElements.get("px-icon-set") || customElements.define("px-icon-set",
|
|
271
|
+
customElements.get("px-icon-set") || customElements.define("px-icon-set", Gt);
|
|
269
272
|
const jt = [
|
|
270
273
|
"Brand",
|
|
271
274
|
"Accent",
|
|
@@ -281,31 +284,31 @@ const jt = [
|
|
|
281
284
|
"StateDisabled"
|
|
282
285
|
], Yt = ["Inherit", ...jt].map(
|
|
283
286
|
(s) => s.replace(/([A-Z])/g, "-$1").toLowerCase().slice(1)
|
|
284
|
-
), Zt = ":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)}",
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
"size",
|
|
289
|
-
"color",
|
|
290
|
-
"aria-label",
|
|
291
|
-
"inverted",
|
|
292
|
-
"from",
|
|
293
|
-
"disabled"
|
|
294
|
-
];
|
|
295
|
-
var u, p, z;
|
|
296
|
-
class Kt extends Lt {
|
|
287
|
+
), Zt = ":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)}", ct = new CSSStyleSheet();
|
|
288
|
+
ct.replaceSync(Zt);
|
|
289
|
+
var x, b, S;
|
|
290
|
+
class Kt extends tt {
|
|
297
291
|
constructor(...e) {
|
|
298
292
|
var o;
|
|
299
|
-
super(...e,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
<use
|
|
293
|
+
super(...e, ct);
|
|
294
|
+
v(this, x);
|
|
295
|
+
v(this, b);
|
|
296
|
+
v(this, S, () => `<svg aria-hidden="true">
|
|
297
|
+
<use></use>
|
|
304
298
|
</svg>`);
|
|
305
|
-
this.shadowRoot.innerHTML =
|
|
299
|
+
this.shadowRoot.innerHTML = d(this, S).call(this), z(this, b, (o = this.attachInternals) == null ? void 0 : o.call(this)), d(this, b) && (d(this, b).role = "img");
|
|
306
300
|
}
|
|
307
301
|
static get observedAttributes() {
|
|
308
|
-
return [
|
|
302
|
+
return [
|
|
303
|
+
...super.observedAttributes,
|
|
304
|
+
"name",
|
|
305
|
+
"size",
|
|
306
|
+
"color",
|
|
307
|
+
"aria-label",
|
|
308
|
+
"inverted",
|
|
309
|
+
"from",
|
|
310
|
+
"disabled"
|
|
311
|
+
];
|
|
309
312
|
}
|
|
310
313
|
attributeChangedCallback(e, o, r) {
|
|
311
314
|
if (o !== r)
|
|
@@ -314,7 +317,7 @@ 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
323
|
this.updateAttribute(e, o, r, Yt);
|
|
@@ -323,13 +326,14 @@ class Kt extends Lt {
|
|
|
323
326
|
this.color = "state-disabled";
|
|
324
327
|
break;
|
|
325
328
|
case "aria-label":
|
|
326
|
-
if (!
|
|
329
|
+
if (!d(this, b))
|
|
327
330
|
return;
|
|
328
|
-
r ? (
|
|
331
|
+
r ? (d(this, b).ariaHidden = "false", this.ariaHidden = "false") : (d(this, b).ariaHidden = "true", this.ariaHidden = "true");
|
|
329
332
|
break;
|
|
330
333
|
}
|
|
331
334
|
}
|
|
332
335
|
connectedCallback() {
|
|
336
|
+
this.role = "img";
|
|
333
337
|
const e = document.querySelectorAll("px-icon-set");
|
|
334
338
|
e || console.log("<px-icon-set> component not found");
|
|
335
339
|
for (const o of e) {
|
|
@@ -337,20 +341,22 @@ class Kt extends Lt {
|
|
|
337
341
|
console.error("Icon name or src not found");
|
|
338
342
|
continue;
|
|
339
343
|
}
|
|
340
|
-
o.getAttribute("name") === this.from && o.getAttribute("type") !== "font" && (
|
|
341
|
-
"
|
|
342
|
-
`${
|
|
344
|
+
o.getAttribute("name") === this.from && o.getAttribute("type") !== "font" && (z(this, x, o.getAttribute("src")), this.$el.firstElementChild.setAttribute(
|
|
345
|
+
"href",
|
|
346
|
+
`${d(this, x)}#icon-${this.name}`
|
|
343
347
|
));
|
|
344
348
|
}
|
|
345
|
-
!this.ariaLabel &&
|
|
349
|
+
!this.ariaLabel && d(this, b) && (d(this, b).ariaHidden = "true", this.ariaHidden = "true");
|
|
346
350
|
}
|
|
347
351
|
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) ||
|
|
352
|
+
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) || n(
|
|
353
|
+
`${r} is not an allowed ${e} value for ${this.tagName.toLowerCase()}`
|
|
354
|
+
);
|
|
349
355
|
}
|
|
350
356
|
updateName(e, o) {
|
|
351
|
-
|
|
352
|
-
"
|
|
353
|
-
`${
|
|
357
|
+
d(this, x) && this.$el.firstElementChild.setAttribute(
|
|
358
|
+
"href",
|
|
359
|
+
`${d(this, x)}#icon-${o}`
|
|
354
360
|
);
|
|
355
361
|
}
|
|
356
362
|
get $el() {
|
|
@@ -399,18 +405,18 @@ class Kt extends Lt {
|
|
|
399
405
|
this.setAttribute("disabled", e);
|
|
400
406
|
}
|
|
401
407
|
}
|
|
402
|
-
|
|
408
|
+
x = new WeakMap(), b = new WeakMap(), S = new WeakMap();
|
|
403
409
|
customElements.get("px-icon") || customElements.define("px-icon", Kt);
|
|
404
|
-
const bt = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title)}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-l-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-m-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-base-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-l-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media only screen and (min-width: 768px){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-tablet)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-base-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}@media only screen and (min-width: 1025px){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-laptop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-base-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}@media screen and (min-width: 1441px){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-desktop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop, left)}}", H = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media only screen and (min-width: 48em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}@media only screen and (min-width: 64.0625em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", ct = new CSSStyleSheet();
|
|
405
|
-
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
class f extends
|
|
410
|
+
const ht = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title)}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-xl-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media only screen and (min-width: 48em){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-tablet)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-tablet)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-tablet)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-tablet)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-tablet)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-tablet)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-tablet)}.style-title-s{font-size:var(--px-text-size-heading-s-tablet)}.style-subtitle{font-size:var(--px-text-size-heading-xl-tablet)}}@media only screen and (min-width: 64.0625em){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-laptop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-laptop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-laptop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-laptop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-laptop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-laptop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-laptop)}.style-title-s{font-size:var(--px-text-size-heading-s-laptop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-laptop)}}@media only screen and (min-width: 90.0625em){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-desktop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-s-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}", 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)}", gt = new CSSStyleSheet();
|
|
411
|
+
gt.replaceSync(ht);
|
|
412
|
+
const ut = new CSSStyleSheet();
|
|
413
|
+
ut.replaceSync(F);
|
|
414
|
+
class f extends A {
|
|
409
415
|
template() {
|
|
410
416
|
return "<slot></slot>";
|
|
411
417
|
}
|
|
412
418
|
constructor(t) {
|
|
413
|
-
super(
|
|
419
|
+
super(gt, ut);
|
|
414
420
|
const e = document.createElement(t);
|
|
415
421
|
e.innerHTML = this.template(), this.shadowRoot.appendChild(e);
|
|
416
422
|
}
|
|
@@ -424,24 +430,25 @@ class f extends m {
|
|
|
424
430
|
"text-align--tablet",
|
|
425
431
|
"text-align--laptop",
|
|
426
432
|
"text-align--desktop",
|
|
427
|
-
"inverted"
|
|
433
|
+
"inverted",
|
|
434
|
+
"auto-spacing"
|
|
428
435
|
];
|
|
429
436
|
}
|
|
430
437
|
attributeChangedCallback(t, e, o) {
|
|
431
438
|
if (e !== o)
|
|
432
439
|
switch (t) {
|
|
433
440
|
case "variant":
|
|
434
|
-
this.updateAttribute(t, e, o,
|
|
441
|
+
this.updateAttribute(t, e, o, ot);
|
|
435
442
|
break;
|
|
436
443
|
case "color":
|
|
437
|
-
this.updateColor(e, o,
|
|
444
|
+
this.updateColor(e, o, _);
|
|
438
445
|
break;
|
|
439
446
|
case "text-align":
|
|
440
447
|
case "text-align--mobile":
|
|
441
448
|
case "text-align--tablet":
|
|
442
449
|
case "text-align--laptop":
|
|
443
450
|
case "text-align--desktop":
|
|
444
|
-
this.updateTextAlign(t, e, o,
|
|
451
|
+
this.updateTextAlign(t, e, o, et);
|
|
445
452
|
break;
|
|
446
453
|
default:
|
|
447
454
|
super.attributeChangedCallback(t, e, o);
|
|
@@ -452,11 +459,15 @@ class f extends m {
|
|
|
452
459
|
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
|
|
453
460
|
}
|
|
454
461
|
updateAttribute(t, e, o, r) {
|
|
455
|
-
this.checkName(r, o) ? this.toggleClass(e, o) :
|
|
462
|
+
this.checkName(r, o) ? this.toggleClass(e, o) : n(
|
|
463
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
464
|
+
);
|
|
456
465
|
}
|
|
457
466
|
updateColor(t, e, o) {
|
|
458
467
|
if (!this.checkName(o, e)) {
|
|
459
|
-
|
|
468
|
+
n(
|
|
469
|
+
`${e} is not an allowed color value for ${this.tagName.toLowerCase()}`
|
|
470
|
+
);
|
|
460
471
|
return;
|
|
461
472
|
}
|
|
462
473
|
const r = (i) => {
|
|
@@ -472,13 +483,15 @@ class f extends m {
|
|
|
472
483
|
}
|
|
473
484
|
updateTextAlign(t, e, o, r) {
|
|
474
485
|
if (!this.checkName(r, o)) {
|
|
475
|
-
|
|
486
|
+
n(
|
|
487
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
488
|
+
);
|
|
476
489
|
return;
|
|
477
490
|
}
|
|
478
|
-
const i = (a,
|
|
479
|
-
|
|
491
|
+
const i = (a, l) => {
|
|
492
|
+
l !== null && l !== "" && l !== "default" && this.$el.style.setProperty(
|
|
480
493
|
`--heading-text-align--${a}`,
|
|
481
|
-
|
|
494
|
+
l
|
|
482
495
|
);
|
|
483
496
|
};
|
|
484
497
|
if (t === "text-align")
|
|
@@ -538,57 +551,63 @@ class f extends m {
|
|
|
538
551
|
set inverted(t) {
|
|
539
552
|
this.setAttribute("inverted", t);
|
|
540
553
|
}
|
|
554
|
+
get autoSpacing() {
|
|
555
|
+
return this.hasAttribute("auto-spacing");
|
|
556
|
+
}
|
|
557
|
+
set autoSpacing(t) {
|
|
558
|
+
t ? this.setAttribute("auto-spacing", "") : this.removeAttribute("auto-spacing");
|
|
559
|
+
}
|
|
541
560
|
}
|
|
542
|
-
const
|
|
561
|
+
const W = class W extends f {
|
|
543
562
|
constructor() {
|
|
544
563
|
super("h1");
|
|
545
564
|
}
|
|
546
565
|
};
|
|
547
|
-
|
|
548
|
-
let
|
|
549
|
-
customElements.get("px-h1") || customElements.define("px-h1",
|
|
550
|
-
const
|
|
566
|
+
W.nativeName = "h1";
|
|
567
|
+
let T = W;
|
|
568
|
+
customElements.get("px-h1") || customElements.define("px-h1", T);
|
|
569
|
+
const G = class G extends f {
|
|
551
570
|
constructor() {
|
|
552
571
|
super("h2");
|
|
553
572
|
}
|
|
554
573
|
};
|
|
555
|
-
|
|
556
|
-
let
|
|
557
|
-
customElements.get("px-h2") || customElements.define("px-h2",
|
|
558
|
-
const
|
|
574
|
+
G.nativeName = "h2";
|
|
575
|
+
let E = G;
|
|
576
|
+
customElements.get("px-h2") || customElements.define("px-h2", E);
|
|
577
|
+
const j = class j extends f {
|
|
559
578
|
constructor() {
|
|
560
579
|
super("h3");
|
|
561
580
|
}
|
|
562
581
|
};
|
|
563
|
-
|
|
564
|
-
let
|
|
565
|
-
customElements.get("px-h3") || customElements.define("px-h3",
|
|
566
|
-
const
|
|
582
|
+
j.nativeName = "h3";
|
|
583
|
+
let B = j;
|
|
584
|
+
customElements.get("px-h3") || customElements.define("px-h3", B);
|
|
585
|
+
const Y = class Y extends f {
|
|
567
586
|
constructor() {
|
|
568
587
|
super("h4");
|
|
569
588
|
}
|
|
570
589
|
};
|
|
571
|
-
|
|
572
|
-
let
|
|
573
|
-
customElements.get("px-h4") || customElements.define("px-h4",
|
|
574
|
-
const
|
|
590
|
+
Y.nativeName = "h4";
|
|
591
|
+
let M = Y;
|
|
592
|
+
customElements.get("px-h4") || customElements.define("px-h4", M);
|
|
593
|
+
const Z = class Z extends f {
|
|
575
594
|
constructor() {
|
|
576
595
|
super("h5");
|
|
577
596
|
}
|
|
578
597
|
};
|
|
579
|
-
|
|
580
|
-
let
|
|
581
|
-
customElements.get("px-h5") || customElements.define("px-h5",
|
|
582
|
-
const
|
|
598
|
+
Z.nativeName = "h5";
|
|
599
|
+
let R = Z;
|
|
600
|
+
customElements.get("px-h5") || customElements.define("px-h5", R);
|
|
601
|
+
const K = class K extends f {
|
|
583
602
|
constructor() {
|
|
584
603
|
super("h6");
|
|
585
604
|
}
|
|
586
605
|
};
|
|
587
|
-
|
|
588
|
-
let
|
|
589
|
-
customElements.get("px-h6") || customElements.define("px-h6",
|
|
590
|
-
const Xt = ".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}}",
|
|
591
|
-
|
|
606
|
+
K.nativeName = "h6";
|
|
607
|
+
let I = K;
|
|
608
|
+
customElements.get("px-h6") || customElements.define("px-h6", I);
|
|
609
|
+
const Xt = ".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}}", xt = new CSSStyleSheet();
|
|
610
|
+
xt.replaceSync(Xt);
|
|
592
611
|
const Ut = [
|
|
593
612
|
"",
|
|
594
613
|
"default",
|
|
@@ -606,11 +625,11 @@ const Ut = [
|
|
|
606
625
|
"purpose-unlimited",
|
|
607
626
|
"state-hover",
|
|
608
627
|
"state-active"
|
|
609
|
-
],
|
|
628
|
+
], w = class w extends A {
|
|
610
629
|
constructor() {
|
|
611
630
|
var e;
|
|
612
|
-
super(
|
|
613
|
-
const t = document.createElement(
|
|
631
|
+
super(xt);
|
|
632
|
+
const t = document.createElement(w.nativeName);
|
|
614
633
|
t.classList.add("separator"), this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.shadowRoot.appendChild(t);
|
|
615
634
|
}
|
|
616
635
|
static get observedAttributes() {
|
|
@@ -659,7 +678,9 @@ const Ut = [
|
|
|
659
678
|
`var(--px-size-border-${a})`
|
|
660
679
|
);
|
|
661
680
|
};
|
|
662
|
-
this.checkName(r, o) ? (i(e), i(o)) :
|
|
681
|
+
this.checkName(r, o) ? (i(e), i(o)) : n(
|
|
682
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
683
|
+
);
|
|
663
684
|
}
|
|
664
685
|
updateColor(t, e, o, r) {
|
|
665
686
|
const i = (a) => {
|
|
@@ -671,14 +692,18 @@ const Ut = [
|
|
|
671
692
|
`var(--px-color-border-${a}-inverted)`
|
|
672
693
|
));
|
|
673
694
|
};
|
|
674
|
-
this.checkName(r, o) ? (i(e), i(o)) :
|
|
695
|
+
this.checkName(r, o) ? (i(e), i(o)) : n(
|
|
696
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
697
|
+
);
|
|
675
698
|
}
|
|
676
699
|
updateDirection(t, e, o, r) {
|
|
677
|
-
const i = (a,
|
|
678
|
-
|
|
700
|
+
const i = (a, l) => {
|
|
701
|
+
l !== null && l !== "" && l !== "default" && this.$el.classList.add(`separator-direction-${l}--${a}`);
|
|
679
702
|
};
|
|
680
703
|
if (!this.checkName(r, o))
|
|
681
|
-
|
|
704
|
+
n(
|
|
705
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
706
|
+
);
|
|
682
707
|
else if (t === "direction")
|
|
683
708
|
["mobile", "tablet", "laptop", "desktop"].forEach((a) => {
|
|
684
709
|
Array.from(this.$el.classList).find(
|
|
@@ -686,11 +711,11 @@ const Ut = [
|
|
|
686
711
|
) || i(a, o);
|
|
687
712
|
});
|
|
688
713
|
else {
|
|
689
|
-
const a = t.split("--")[1],
|
|
714
|
+
const a = t.split("--")[1], l = Array.from(this.$el.classList).find(
|
|
690
715
|
(k) => k.startsWith("separator-direction-") && k.endsWith(`--${a}`)
|
|
691
716
|
);
|
|
692
|
-
|
|
693
|
-
|
|
717
|
+
l ? this.$el.classList.replace(
|
|
718
|
+
l,
|
|
694
719
|
`separator-direction-${o}--${a}`
|
|
695
720
|
) : i(a, o);
|
|
696
721
|
}
|
|
@@ -744,66 +769,91 @@ const Ut = [
|
|
|
744
769
|
this.setAttribute("inverted", t);
|
|
745
770
|
}
|
|
746
771
|
};
|
|
747
|
-
|
|
748
|
-
let
|
|
749
|
-
customElements.get("px-separator") || customElements.define("px-separator",
|
|
750
|
-
const Nt = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', Vt = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}', ut = new CSSStyleSheet();
|
|
751
|
-
|
|
752
|
-
const
|
|
772
|
+
w.nativeName = "hr";
|
|
773
|
+
let P = w;
|
|
774
|
+
customElements.get("px-separator") || customElements.define("px-separator", P);
|
|
775
|
+
const Vt = ':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)}}', te = ':host{display:block}.container{font-family:var(--px-font-family);background-color:var(--background-color);border-radius:var(--px-radius-main);box-sizing:border-box;height:100%}:host([background-image]) .container{background-image:var(--background-image)}:host([background-gradient]) .container{background-image:var(--background-gradient)}:host([inverted]) .container{background-color:var(--background-color-inverted);color:var(--px-color-text-neutral-inverted)}.border-none{border:none}.border-s{border:var(--px-size-border-s) solid var(--border-color)}.border-m{border:var(--px-size-border-m) solid var(--border-color)}.border-l{border:var(--px-size-border-l) solid var(--border-color)}.border-side-top{border-bottom-style:none;border-right-style:none;border-left-style:none}.border-side-right{border-top-style:none;border-bottom-style:none;border-left-style:none}.border-side-bottom{border-top-style:none;border-right-style:none;border-left-style:none}.border-side-left{border-top-style:none;border-right-style:none;border-bottom-style:none}.border-side-block{border-inline-style:none}.border-side-inline{border-block-style:none}:host([inverted]) .border-s,:host([inverted]) .border-m,:host([inverted]) .border-l{border-color:var(--border-color-inverted)}.border-radius-main{border-radius:var(--px-radius-main)}.border-radius-pill{border-radius:var(--px-radius-pill)}.no-border-radius-top{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all,.border-radius-none{border-radius:var(--px-radius-none)}.bgimg{background-repeat:no-repeat}.background-size-cover{background-size:cover;background-position:center center}.background-size-contain{background-size:contain}.box-shadow-none{box-shadow:none}.box-shadow-s{box-shadow:0 1px 2px #2525251f}.box-shadow-m{box-shadow:0 4px 6px -1px #25252514}.box-shadow-l{box-shadow:0 10px 15px -3px #25252514}.box-shadow-xl{box-shadow:0 20px 25px -5px #25252514}.anchored{position:relative}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]),::slotted([slot="anchor-full"]){position:absolute;top:0}::slotted([slot="anchor-right"]),::slotted([slot="anchor-left"]){transform:translateY(-50%);z-index:3}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--mobile, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--mobile, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-full"]){transform:translateY(-100%);right:0;left:0;text-align:center;z-index:2}::slotted(px-vstack:only-of-type),::slotted(px-hstack:only-of-type),::slotted(px-stack:only-of-type),::slotted(px-grid:only-of-type){height:100%}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--mobile)}.border-s ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-s) * -1);left:calc(var(--px-size-border-s) * -1)}.border-m ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-m) * -1);left:calc(var(--px-size-border-m) * -1)}.border-l ::slotted([slot="anchor-full"]){right:calc(var(--px-size-border-l) * -1);left:calc(var(--px-size-border-l) * -1)}:host([subgrid-rows]){display:contents}:host([subgrid-rows]) .container{display:grid;grid-template-rows:subgrid;grid-row:span var(--subgrid-rows)}@media only screen and (max-width: 47.938em){.container{background-color:var(--background-color--mobile, var(--background-color))}:host([background-image--mobile]) .container{background-image:var(--background-image--mobile, var(--background-image))}:host([background-gradient--mobile]) .container{background-image:var( --background-gradient--mobile, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--mobile, var(--background-color-inverted) )}.border-side-top--mobile{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--mobile{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--mobile{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--mobile{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--mobile{border-inline-style:none;border-block-style:solid}.border-side-inline--mobile{border-block-style:none;border-inline-style:solid}.no-border-radius-top--mobile{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--mobile{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--mobile{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--mobile{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--mobile{border-radius:var(--px-radius-none)}}@media only screen and (min-width: 48em) and (max-width: 64em){.container{background-color:var(--background-color--tablet, var(--background-color))}:host([background-image--tablet]) .container{background-image:var(--background-image--tablet, var(--background-image))}:host([background-gradient--tablet]) .container{background-image:var( --background-gradient--tablet, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--tablet, var(--background-color-inverted) )}.no-border-radius-top--tablet{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--tablet{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--tablet{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--tablet{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--tablet{border-radius:var(--px-radius-none)}.border-side-top--tablet{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--tablet{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--tablet{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--tablet{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--tablet{border-inline-style:none;border-block-style:solid}.border-side-inline--tablet{border-block-style:none;border-inline-style:solid}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--tablet, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--tablet, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--tablet)}}@media only screen and (min-width: 64.0625em){.container{background-color:var(--background-color--laptop, var(--background-color))}:host([background-image--laptop]) .container{background-image:var(--background-image--laptop, var(--background-image))}:host([background-gradient--laptop]) .container{background-image:var( --background-gradient--laptop, var(--background-gradient) )}:host([inverted]) .container{background-color:var( --background-color-inverted--laptop, var(--background-color-inverted) )}.no-border-radius-top--laptop{border-top-left-radius:var(--px-radius-none);border-top-right-radius:var(--px-radius-none)}.no-border-radius-right--laptop{border-top-right-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-bottom--laptop{border-bottom-left-radius:var(--px-radius-none);border-bottom-right-radius:var(--px-radius-none)}.no-border-radius-left--laptop{border-top-left-radius:var(--px-radius-none);border-bottom-left-radius:var(--px-radius-none)}.no-border-radius-all--laptop{border-radius:var(--px-radius-none)}::slotted([slot="anchor-right"]){right:var( --container-anchor-offset--laptop, var( --container-padding-right, var(--container-padding-inline, var(--container-padding)) ) )}::slotted([slot="anchor-left"]){left:var( --container-anchor-offset--laptop, var( --container-padding-left, var(--container-padding-inline, var(--container-padding)) ) )}:host([anchor-spacing]){margin-top:var(--container-anchor-spacing--laptop)}.border-side-top--laptop{border-top-style:solid;border-right-style:none;border-bottom-style:none;border-left-style:none}.border-side-right--laptop{border-top-style:none;border-right-style:solid;border-bottom-style:none;border-left-style:none}.border-side-bottom--laptop{border-top-style:none;border-right-style:none;border-bottom-style:solid;border-left-style:none}.border-side-left--laptop{border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:solid}.border-side-block--laptop{border-inline-style:none;border-block-style:solid}.border-side-inline--laptop{border-block-style:none;border-inline-style:solid}}', vt = new CSSStyleSheet();
|
|
776
|
+
vt.replaceSync(te);
|
|
777
|
+
const ee = [
|
|
778
|
+
"has-patch",
|
|
779
|
+
"neighbor-has-patch",
|
|
780
|
+
"has-ribbon",
|
|
781
|
+
"neighbor-has-ribbon"
|
|
782
|
+
], oe = [
|
|
783
|
+
"1",
|
|
784
|
+
"2",
|
|
785
|
+
"3",
|
|
786
|
+
"4",
|
|
787
|
+
"5",
|
|
788
|
+
"6",
|
|
789
|
+
"7",
|
|
790
|
+
"8",
|
|
791
|
+
"9",
|
|
792
|
+
"10",
|
|
793
|
+
"11",
|
|
794
|
+
"12"
|
|
795
|
+
], h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, u = "px-padding", re = [
|
|
796
|
+
c(
|
|
797
|
+
"padding",
|
|
798
|
+
h,
|
|
799
|
+
g,
|
|
800
|
+
u,
|
|
801
|
+
"--container-padding"
|
|
802
|
+
),
|
|
803
|
+
c(
|
|
804
|
+
"padding-inline",
|
|
805
|
+
h,
|
|
806
|
+
g,
|
|
807
|
+
u
|
|
808
|
+
),
|
|
809
|
+
c(
|
|
810
|
+
"padding-block",
|
|
811
|
+
h,
|
|
812
|
+
g,
|
|
813
|
+
u
|
|
814
|
+
),
|
|
815
|
+
c(
|
|
816
|
+
"padding-top",
|
|
817
|
+
h,
|
|
818
|
+
g,
|
|
819
|
+
u
|
|
820
|
+
),
|
|
821
|
+
c(
|
|
822
|
+
"padding-right",
|
|
823
|
+
h,
|
|
824
|
+
g,
|
|
825
|
+
u,
|
|
826
|
+
"--container-padding-right"
|
|
827
|
+
),
|
|
828
|
+
c(
|
|
829
|
+
"padding-bottom",
|
|
830
|
+
h,
|
|
831
|
+
g,
|
|
832
|
+
u
|
|
833
|
+
),
|
|
834
|
+
c(
|
|
835
|
+
"padding-left",
|
|
836
|
+
h,
|
|
837
|
+
g,
|
|
838
|
+
u,
|
|
839
|
+
"--container-padding-left"
|
|
840
|
+
),
|
|
841
|
+
c(
|
|
842
|
+
"gap",
|
|
843
|
+
h,
|
|
844
|
+
Bt,
|
|
845
|
+
"px-spacing",
|
|
846
|
+
void 0,
|
|
847
|
+
"subgrid-gap"
|
|
848
|
+
)
|
|
849
|
+
], X = class X extends tt {
|
|
753
850
|
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">
|
|
851
|
+
super(vt, ...re), this.template = () => `<div class="container">
|
|
802
852
|
<slot></slot>
|
|
803
853
|
<slot name="anchor-left"></slot>
|
|
804
854
|
<slot name="anchor-right"></slot>
|
|
805
855
|
<slot name="anchor-full"></slot>
|
|
806
|
-
</div>`, this._bgObserver = null, this._isInViewport = !1, this.shadowRoot.innerHTML = this.template();
|
|
856
|
+
</div>`, this._bgObserver = null, this._isInViewport = !1, this.contentObserver = null, this.shadowRoot.innerHTML = this.template();
|
|
807
857
|
}
|
|
808
858
|
static get observedAttributes() {
|
|
809
859
|
return [
|
|
@@ -835,11 +885,13 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
835
885
|
"background-position",
|
|
836
886
|
"box-shadow",
|
|
837
887
|
"anchor-offset",
|
|
838
|
-
"
|
|
888
|
+
"anchor-spacing",
|
|
889
|
+
"inverted",
|
|
890
|
+
"subgrid-rows"
|
|
839
891
|
];
|
|
840
892
|
}
|
|
841
893
|
connectedCallback() {
|
|
842
|
-
|
|
894
|
+
this.padding || (this.padding = "m"), this.backgroundColor || (this.backgroundColor = "surface-light"), this.borderColor || (this.borderColor = "main"), this.$slotAnchor && this.addAnchorClass(), this.contentObserver = new MutationObserver(() => {
|
|
843
895
|
this.$slotAnchor && this.addAnchorClass();
|
|
844
896
|
}), this.contentObserver.observe(this, {
|
|
845
897
|
childList: !0,
|
|
@@ -853,14 +905,14 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
853
905
|
}), this._bgObserver.observe(this.$el);
|
|
854
906
|
}
|
|
855
907
|
disconnectedCallback() {
|
|
856
|
-
var t;
|
|
857
|
-
(t = this._bgObserver) == null || t.disconnect(), this.contentObserver.disconnect();
|
|
908
|
+
var t, e;
|
|
909
|
+
(t = this._bgObserver) == null || t.disconnect(), (e = this.contentObserver) == null || e.disconnect();
|
|
858
910
|
}
|
|
859
911
|
attributeChangedCallback(t, e, o) {
|
|
860
912
|
if (e !== o)
|
|
861
913
|
switch (t) {
|
|
862
914
|
case "border":
|
|
863
|
-
this.updateAttribute(t, e, o,
|
|
915
|
+
this.updateAttribute(t, e, o, Dt);
|
|
864
916
|
break;
|
|
865
917
|
case "border-color":
|
|
866
918
|
this.updateBorderColor(t, o);
|
|
@@ -869,14 +921,14 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
869
921
|
case "border-side--mobile":
|
|
870
922
|
case "border-side--tablet":
|
|
871
923
|
case "border-side--laptop":
|
|
872
|
-
this.updateAttribute(t, e, o,
|
|
924
|
+
this.updateAttribute(t, e, o, qt);
|
|
873
925
|
break;
|
|
874
926
|
case "border-radius":
|
|
875
927
|
this.updateAttribute(
|
|
876
928
|
t,
|
|
877
929
|
e,
|
|
878
930
|
o,
|
|
879
|
-
|
|
931
|
+
Pt
|
|
880
932
|
);
|
|
881
933
|
break;
|
|
882
934
|
case "no-border-radius":
|
|
@@ -887,7 +939,7 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
887
939
|
t,
|
|
888
940
|
e,
|
|
889
941
|
o,
|
|
890
|
-
|
|
942
|
+
It
|
|
891
943
|
);
|
|
892
944
|
break;
|
|
893
945
|
case "background-color":
|
|
@@ -907,7 +959,7 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
907
959
|
t,
|
|
908
960
|
e,
|
|
909
961
|
o,
|
|
910
|
-
|
|
962
|
+
Rt
|
|
911
963
|
);
|
|
912
964
|
break;
|
|
913
965
|
case "background-image":
|
|
@@ -920,10 +972,21 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
920
972
|
o !== null && o !== "" && (this.$el.style.backgroundPosition = o);
|
|
921
973
|
break;
|
|
922
974
|
case "box-shadow":
|
|
923
|
-
this.updateAttribute(t, e, o,
|
|
975
|
+
this.updateAttribute(t, e, o, Mt);
|
|
924
976
|
break;
|
|
925
977
|
case "anchor-offset":
|
|
926
|
-
this.updateAnchorOffset(e, o,
|
|
978
|
+
this.updateAnchorOffset(e, o, g);
|
|
979
|
+
break;
|
|
980
|
+
case "anchor-spacing":
|
|
981
|
+
this.updateAnchorSpacing(e, o, ee);
|
|
982
|
+
break;
|
|
983
|
+
case "subgrid-rows":
|
|
984
|
+
this.updateSubgridRows(
|
|
985
|
+
t,
|
|
986
|
+
e,
|
|
987
|
+
o,
|
|
988
|
+
oe
|
|
989
|
+
);
|
|
927
990
|
break;
|
|
928
991
|
default:
|
|
929
992
|
super.attributeChangedCallback(t, e, o);
|
|
@@ -945,7 +1008,7 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
945
1008
|
this.$el.style.setProperty(`--${t}`, `url("${e}")`);
|
|
946
1009
|
}
|
|
947
1010
|
updateGradient(t, e) {
|
|
948
|
-
if (this.checkName(
|
|
1011
|
+
if (this.checkName(Ht, e)) {
|
|
949
1012
|
const o = this.splitAttrNameFromBreakpoint(t);
|
|
950
1013
|
t = o.attrName;
|
|
951
1014
|
const r = o.breakpoint;
|
|
@@ -954,11 +1017,13 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
954
1017
|
`linear-gradient(var(--px-color-background-gradient-${e}))`
|
|
955
1018
|
);
|
|
956
1019
|
} else
|
|
957
|
-
|
|
1020
|
+
n(
|
|
1021
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1022
|
+
);
|
|
958
1023
|
}
|
|
959
1024
|
updateBackgroundColor(t, e) {
|
|
960
1025
|
const o = e.startsWith("surface-");
|
|
961
|
-
if (this.checkName(
|
|
1026
|
+
if (this.checkName(rt, e)) {
|
|
962
1027
|
const r = this.splitAttrNameFromBreakpoint(t), i = r.breakpoint;
|
|
963
1028
|
this.$el.style.setProperty(
|
|
964
1029
|
`--${r.attrName}${i}`,
|
|
@@ -968,20 +1033,26 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
968
1033
|
`var(--px-color-background-${e}${o ? "" : "-inverted"})`
|
|
969
1034
|
);
|
|
970
1035
|
} else
|
|
971
|
-
|
|
1036
|
+
n(
|
|
1037
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1038
|
+
);
|
|
972
1039
|
}
|
|
973
1040
|
updateBorderColor(t, e) {
|
|
974
|
-
this.checkName(
|
|
1041
|
+
this.checkName(Ot, e) ? (this.$el.style.setProperty(
|
|
975
1042
|
`--${t}`,
|
|
976
1043
|
`var(--px-color-border-${e}-default)`
|
|
977
1044
|
), this.$el.style.setProperty(
|
|
978
1045
|
`--${t}-inverted`,
|
|
979
1046
|
`var(--px-color-border-${e}-inverted)`
|
|
980
|
-
)) :
|
|
1047
|
+
)) : n(
|
|
1048
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1049
|
+
);
|
|
981
1050
|
}
|
|
982
1051
|
updateNoBorderRadius(t, e, o, r) {
|
|
983
1052
|
if (!this.checkName(r, o))
|
|
984
|
-
|
|
1053
|
+
n(
|
|
1054
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1055
|
+
);
|
|
985
1056
|
else {
|
|
986
1057
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
987
1058
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
@@ -993,7 +1064,9 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
993
1064
|
}
|
|
994
1065
|
updateAttribute(t, e, o, r) {
|
|
995
1066
|
if (!this.checkName(r, o))
|
|
996
|
-
|
|
1067
|
+
n(
|
|
1068
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1069
|
+
);
|
|
997
1070
|
else {
|
|
998
1071
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
999
1072
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
@@ -1014,8 +1087,10 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
1014
1087
|
return { attrName: t, breakpoint: e };
|
|
1015
1088
|
}
|
|
1016
1089
|
updateAnchorOffset(t, e, o) {
|
|
1017
|
-
if (!
|
|
1018
|
-
|
|
1090
|
+
if (!y(o, e)) {
|
|
1091
|
+
n(
|
|
1092
|
+
`${e} is not a valid anchor-offset value for ${this.tagName.toLowerCase()}`
|
|
1093
|
+
);
|
|
1019
1094
|
return;
|
|
1020
1095
|
}
|
|
1021
1096
|
const r = (i) => {
|
|
@@ -1035,6 +1110,36 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
1035
1110
|
addAnchorClass() {
|
|
1036
1111
|
this.$el.classList.contains("anchored") || this.$el.classList.add("anchored");
|
|
1037
1112
|
}
|
|
1113
|
+
updateAnchorSpacing(t, e, o) {
|
|
1114
|
+
if (!y(o, e)) {
|
|
1115
|
+
n(
|
|
1116
|
+
`${e} is not a valid anchor-spacing value for ${this.tagName.toLowerCase()}`
|
|
1117
|
+
);
|
|
1118
|
+
return;
|
|
1119
|
+
}
|
|
1120
|
+
const r = (i) => {
|
|
1121
|
+
i !== null && i !== "" && i !== "default" && (this.style.setProperty(
|
|
1122
|
+
"--container-anchor-spacing--mobile",
|
|
1123
|
+
`var(--px-spacing-${i}-mobile)`
|
|
1124
|
+
), this.style.setProperty(
|
|
1125
|
+
"--container-anchor-spacing--tablet",
|
|
1126
|
+
`var(--px-spacing-${i}-tablet)`
|
|
1127
|
+
), this.style.setProperty(
|
|
1128
|
+
"--container-anchor-spacing--laptop",
|
|
1129
|
+
`var(--px-spacing-${i}-laptop)`
|
|
1130
|
+
));
|
|
1131
|
+
};
|
|
1132
|
+
r(t), r(e);
|
|
1133
|
+
}
|
|
1134
|
+
updateSubgridRows(t, e, o, r) {
|
|
1135
|
+
y(r, o) ? this.style.setProperty(`--${t}`, o) : n(
|
|
1136
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1137
|
+
);
|
|
1138
|
+
}
|
|
1139
|
+
get $el() {
|
|
1140
|
+
var t;
|
|
1141
|
+
return (t = this == null ? void 0 : this.shadowRoot) == null ? void 0 : t.querySelector(".container");
|
|
1142
|
+
}
|
|
1038
1143
|
get $slotAnchor() {
|
|
1039
1144
|
return this.querySelector('[slot^="anchor"]');
|
|
1040
1145
|
}
|
|
@@ -1368,23 +1473,59 @@ const h = (s, t, e) => `:host([${s}${e ? `--${e}` : ""}='${t}']) .container`, g
|
|
|
1368
1473
|
set anchorOffset(t) {
|
|
1369
1474
|
this.setAttribute("anchor-offset", t);
|
|
1370
1475
|
}
|
|
1476
|
+
get anchorSpacing() {
|
|
1477
|
+
return this.getAttribute("anchor-spacing");
|
|
1478
|
+
}
|
|
1479
|
+
set anchorSpacing(t) {
|
|
1480
|
+
this.setAttribute("anchor-spacing", t);
|
|
1481
|
+
}
|
|
1371
1482
|
get inverted() {
|
|
1372
|
-
return this.
|
|
1483
|
+
return this.hasAttribute("inverted");
|
|
1373
1484
|
}
|
|
1374
1485
|
set inverted(t) {
|
|
1375
|
-
this.setAttribute("inverted",
|
|
1486
|
+
t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
|
|
1487
|
+
}
|
|
1488
|
+
get subgridRows() {
|
|
1489
|
+
return this.getAttribute("subgrid-rows");
|
|
1490
|
+
}
|
|
1491
|
+
set subgridRows(t) {
|
|
1492
|
+
this.setAttribute("subgrid-rows", t);
|
|
1493
|
+
}
|
|
1494
|
+
get subgridGap() {
|
|
1495
|
+
return this.getAttribute("subgrid-gap");
|
|
1496
|
+
}
|
|
1497
|
+
set subgridGap(t) {
|
|
1498
|
+
this.setAttribute("subgrid-gap", t);
|
|
1499
|
+
}
|
|
1500
|
+
get subgridGapMobile() {
|
|
1501
|
+
return this.getAttribute("subgrid-gap--mobile");
|
|
1502
|
+
}
|
|
1503
|
+
set subgridGapMobile(t) {
|
|
1504
|
+
this.setAttribute("subgrid-gap--mobile", t);
|
|
1505
|
+
}
|
|
1506
|
+
get subgridGapTablet() {
|
|
1507
|
+
return this.getAttribute("subgrid-gap--tablet");
|
|
1508
|
+
}
|
|
1509
|
+
set subgridGapTablet(t) {
|
|
1510
|
+
this.setAttribute("subgrid-gap--tablet", t);
|
|
1511
|
+
}
|
|
1512
|
+
get subgridGapLaptop() {
|
|
1513
|
+
return this.getAttribute("subgrid-gap--laptop");
|
|
1514
|
+
}
|
|
1515
|
+
set subgridGapLaptop(t) {
|
|
1516
|
+
this.setAttribute("subgrid-gap--laptop", t);
|
|
1376
1517
|
}
|
|
1377
1518
|
};
|
|
1378
|
-
|
|
1379
|
-
let
|
|
1380
|
-
customElements.get("px-container") || customElements.define("px-container",
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1383
|
-
class
|
|
1519
|
+
X.nativeName = "div";
|
|
1520
|
+
let q = X;
|
|
1521
|
+
customElements.get("px-container") || customElements.define("px-container", q);
|
|
1522
|
+
const mt = new CSSStyleSheet();
|
|
1523
|
+
mt.replaceSync(Vt);
|
|
1524
|
+
class ie extends HTMLElement {
|
|
1384
1525
|
constructor() {
|
|
1385
1526
|
super(), this.template = () => `
|
|
1386
|
-
<px-container border-radius="none" padding-inline="none"
|
|
1387
|
-
<div class="content-wrapper
|
|
1527
|
+
<px-container border-radius="none" padding-inline="none">
|
|
1528
|
+
<div class="content-wrapper">
|
|
1388
1529
|
<px-vstack gap="heading-to-content">
|
|
1389
1530
|
<slot name="heading"></slot>
|
|
1390
1531
|
<px-vstack gap="none">
|
|
@@ -1396,9 +1537,10 @@ class te extends HTMLElement {
|
|
|
1396
1537
|
<div class="content-wrapper">
|
|
1397
1538
|
<slot name="overlap"></slot>
|
|
1398
1539
|
</div>
|
|
1399
|
-
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [
|
|
1540
|
+
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [mt];
|
|
1400
1541
|
}
|
|
1401
1542
|
connectedCallback() {
|
|
1543
|
+
this.$container.setAttribute("background-color", this.backgroundColor), this.$slotOverlap && this.shadowRoot.firstElementChild.querySelector(".content-wrapper").classList.add("overlapped");
|
|
1402
1544
|
const t = this.querySelector('[slot="heading"]');
|
|
1403
1545
|
!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");
|
|
1404
1546
|
}
|
|
@@ -1438,7 +1580,7 @@ class te extends HTMLElement {
|
|
|
1438
1580
|
if (e !== o)
|
|
1439
1581
|
switch (t) {
|
|
1440
1582
|
case "background-color":
|
|
1441
|
-
this.$container.backgroundColor =
|
|
1583
|
+
this.$container.backgroundColor = rt.indexOf(o) > 0 ? o : "none";
|
|
1442
1584
|
break;
|
|
1443
1585
|
case "background-gradient":
|
|
1444
1586
|
this.$container.gradient = this.gradient;
|
|
@@ -1668,14 +1810,14 @@ class te extends HTMLElement {
|
|
|
1668
1810
|
this.setAttribute("border-side--laptop", t);
|
|
1669
1811
|
}
|
|
1670
1812
|
}
|
|
1671
|
-
customElements.get("px-section") || customElements.define("px-section",
|
|
1672
|
-
const
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
const
|
|
1813
|
+
customElements.get("px-section") || customElements.define("px-section", ie);
|
|
1814
|
+
const ae = "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)}}", ft = new CSSStyleSheet(), kt = new CSSStyleSheet(), yt = new CSSStyleSheet();
|
|
1815
|
+
ft.replaceSync(ae);
|
|
1816
|
+
kt.replaceSync(F);
|
|
1817
|
+
yt.replaceSync(ht);
|
|
1818
|
+
const U = class U extends A {
|
|
1677
1819
|
constructor() {
|
|
1678
|
-
super(
|
|
1820
|
+
super(kt, yt, ft), this.template = "<p><slot></slot></p>", this.shadowRoot.innerHTML = this.template;
|
|
1679
1821
|
}
|
|
1680
1822
|
static get observedAttributes() {
|
|
1681
1823
|
return [
|
|
@@ -1696,22 +1838,22 @@ const X = class X extends m {
|
|
|
1696
1838
|
if (e !== o)
|
|
1697
1839
|
switch (t) {
|
|
1698
1840
|
case "variant":
|
|
1699
|
-
this.updateVariant(t, e, o,
|
|
1841
|
+
this.updateVariant(t, e, o, ot);
|
|
1700
1842
|
break;
|
|
1701
1843
|
case "color":
|
|
1702
|
-
this.updateTypography(t, e, o,
|
|
1844
|
+
this.updateTypography(t, e, o, _);
|
|
1703
1845
|
break;
|
|
1704
1846
|
case "font-size":
|
|
1705
|
-
this.updateTypography(t, e, o,
|
|
1847
|
+
this.updateTypography(t, e, o, at);
|
|
1706
1848
|
break;
|
|
1707
1849
|
case "font-weight":
|
|
1708
|
-
this.updateTypography(t, e, o,
|
|
1850
|
+
this.updateTypography(t, e, o, it);
|
|
1709
1851
|
break;
|
|
1710
1852
|
case "text-align":
|
|
1711
1853
|
case "text-align--mobile":
|
|
1712
1854
|
case "text-align--tablet":
|
|
1713
1855
|
case "text-align--laptop":
|
|
1714
|
-
this.updateTypography(t, e, o,
|
|
1856
|
+
this.updateTypography(t, e, o, et);
|
|
1715
1857
|
break;
|
|
1716
1858
|
case "disabled":
|
|
1717
1859
|
this.color = "state-disabled";
|
|
@@ -1725,11 +1867,15 @@ const X = class X extends m {
|
|
|
1725
1867
|
t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`);
|
|
1726
1868
|
}
|
|
1727
1869
|
updateVariant(t, e, o, r) {
|
|
1728
|
-
this.checkName(r, o) ? this.toggleClass(e, o) :
|
|
1870
|
+
this.checkName(r, o) ? this.toggleClass(e, o) : n(
|
|
1871
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1872
|
+
);
|
|
1729
1873
|
}
|
|
1730
1874
|
updateTypography(t, e, o, r) {
|
|
1731
1875
|
if (!this.checkName(r, o))
|
|
1732
|
-
|
|
1876
|
+
n(
|
|
1877
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
1878
|
+
);
|
|
1733
1879
|
else {
|
|
1734
1880
|
const i = this.splitAttrNameFromBreakpoint(t), a = i.breakpoint;
|
|
1735
1881
|
e !== null && e !== "" && this.$el.classList.toggle(
|
|
@@ -1810,10 +1956,10 @@ const X = class X extends m {
|
|
|
1810
1956
|
this.setAttribute("disabled", t);
|
|
1811
1957
|
}
|
|
1812
1958
|
};
|
|
1813
|
-
|
|
1814
|
-
let
|
|
1815
|
-
customElements.get("px-p") || customElements.define("px-p",
|
|
1816
|
-
class
|
|
1959
|
+
U.nativeName = "p";
|
|
1960
|
+
let D = U;
|
|
1961
|
+
customElements.get("px-p") || customElements.define("px-p", D);
|
|
1962
|
+
class se extends HTMLElement {
|
|
1817
1963
|
constructor() {
|
|
1818
1964
|
super(), this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = `
|
|
1819
1965
|
<button aria-hidden="true" style="width: 0; height: 0; border: 0; background-color: #00000000;"></button>
|
|
@@ -1827,16 +1973,16 @@ class oe extends HTMLElement {
|
|
|
1827
1973
|
});
|
|
1828
1974
|
}
|
|
1829
1975
|
}
|
|
1830
|
-
customElements.get("px-mdd-closer") || customElements.define("px-mdd-closer",
|
|
1831
|
-
const
|
|
1832
|
-
|
|
1833
|
-
var
|
|
1834
|
-
class
|
|
1976
|
+
customElements.get("px-mdd-closer") || customElements.define("px-mdd-closer", se);
|
|
1977
|
+
const ne = ":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)}}", At = new CSSStyleSheet();
|
|
1978
|
+
At.replaceSync(ne);
|
|
1979
|
+
var m, p, H, zt, $, $t;
|
|
1980
|
+
class de extends HTMLElement {
|
|
1835
1981
|
constructor() {
|
|
1836
1982
|
var e;
|
|
1837
1983
|
super();
|
|
1838
|
-
|
|
1839
|
-
|
|
1984
|
+
v(this, p);
|
|
1985
|
+
v(this, m);
|
|
1840
1986
|
this.template = `<dialog>
|
|
1841
1987
|
<px-section>
|
|
1842
1988
|
<px-container
|
|
@@ -1893,7 +2039,7 @@ class ie extends HTMLElement {
|
|
|
1893
2039
|
<slot name="mdd-footer"></slot>
|
|
1894
2040
|
</px-hstack>
|
|
1895
2041
|
</px-section>
|
|
1896
|
-
</dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [
|
|
2042
|
+
</dialog>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [At], this.internals = (e = this.attachInternals) == null ? void 0 : e.call(this), this.role = "menu", this.internals && (this.internals.role = "menu");
|
|
1897
2043
|
}
|
|
1898
2044
|
static get observedAttributes() {
|
|
1899
2045
|
return ["hidden", "name", "close-button-aria-label", "back-to-menu-label"];
|
|
@@ -1926,14 +2072,14 @@ class ie extends HTMLElement {
|
|
|
1926
2072
|
}
|
|
1927
2073
|
})
|
|
1928
2074
|
);
|
|
1929
|
-
}), this.getAttribute("name") === "__lavender_mobile_menu" && (
|
|
2075
|
+
}), this.getAttribute("name") === "__lavender_mobile_menu" && (d(this, p, H).style.visibility = "hidden"), this.getAttribute("name") !== "__lavender_mobile_menu" && (d(this, p, zt).innerText = ((o = (e = this.closest("px-header")) == null ? void 0 : e.querySelector(
|
|
1930
2076
|
`px-header-item[for="${this.getAttribute("name")}"]`
|
|
1931
|
-
)) == null ? void 0 : o.innerText) ?? ""), this.$slotMddFooter || (
|
|
1932
|
-
this.$slotMddFooter && (
|
|
1933
|
-
})),
|
|
2077
|
+
)) == null ? void 0 : o.innerText) ?? ""), this.$slotMddFooter || (d(this, p, $).style.display = "none"), z(this, m, new MutationObserver(() => {
|
|
2078
|
+
this.$slotMddFooter && (d(this, p, $).style.display = "block");
|
|
2079
|
+
})), d(this, m).observe(this, { childList: !0, subtree: !0 });
|
|
1934
2080
|
}
|
|
1935
2081
|
disconnectedCallback() {
|
|
1936
|
-
|
|
2082
|
+
d(this, m).disconnect();
|
|
1937
2083
|
}
|
|
1938
2084
|
attributeChangedCallback(e, o, r) {
|
|
1939
2085
|
if (e === "name" && !r)
|
|
@@ -1941,15 +2087,15 @@ class ie extends HTMLElement {
|
|
|
1941
2087
|
if (e === "name" && (this.id = r), e === "hidden" && this.internals) {
|
|
1942
2088
|
const i = r === "true" || r === "" ? "true" : "false";
|
|
1943
2089
|
this.internals.ariaHidden = i, this.ariaHidden = i;
|
|
1944
|
-
const
|
|
2090
|
+
const l = d(this, p, $).offsetHeight / parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
1945
2091
|
this.style.setProperty(
|
|
1946
2092
|
"--mdd-section-container-padding-bottom",
|
|
1947
|
-
`${
|
|
2093
|
+
`${l}em`
|
|
1948
2094
|
);
|
|
1949
2095
|
}
|
|
1950
|
-
e === "close-button-aria-label" &&
|
|
2096
|
+
e === "close-button-aria-label" && d(this, p, $t).forEach((i) => {
|
|
1951
2097
|
r ? i.setAttribute("aria-label", r || "Close") : i.removeAttribute("aria-label");
|
|
1952
|
-
}), e === "back-to-menu-label" && (
|
|
2098
|
+
}), e === "back-to-menu-label" && (d(this, p, H).innerHTML = `
|
|
1953
2099
|
<px-icon name="chevron_left" from="lavender"></px-icon>
|
|
1954
2100
|
${r || "Back to menu"}
|
|
1955
2101
|
`);
|
|
@@ -1992,19 +2138,19 @@ class ie extends HTMLElement {
|
|
|
1992
2138
|
this.$dialog.style.setProperty("--mdd-dialog-offset-top", e);
|
|
1993
2139
|
}
|
|
1994
2140
|
}
|
|
1995
|
-
|
|
2141
|
+
m = new WeakMap(), p = new WeakSet(), H = function() {
|
|
1996
2142
|
return this.shadowRoot.querySelector("#back-button");
|
|
1997
|
-
},
|
|
2143
|
+
}, zt = function() {
|
|
1998
2144
|
return this.shadowRoot.querySelector("px-p");
|
|
1999
|
-
},
|
|
2145
|
+
}, $ = function() {
|
|
2000
2146
|
return this.shadowRoot.querySelector("#footer");
|
|
2001
|
-
},
|
|
2147
|
+
}, $t = function() {
|
|
2002
2148
|
return this.shadowRoot.querySelectorAll("px-button-icon");
|
|
2003
2149
|
};
|
|
2004
|
-
customElements.get("px-mdd") || customElements.define("px-mdd",
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2007
|
-
class
|
|
2150
|
+
customElements.get("px-mdd") || customElements.define("px-mdd", de);
|
|
2151
|
+
const le = ':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)}}', St = new CSSStyleSheet();
|
|
2152
|
+
St.replaceSync(le);
|
|
2153
|
+
class pe extends HTMLElement {
|
|
2008
2154
|
constructor() {
|
|
2009
2155
|
super(), this.template = `<px-vstack gap="default">
|
|
2010
2156
|
<px-p font-size="heading-l" font-weight="title">
|
|
@@ -2018,7 +2164,7 @@ class se extends HTMLElement {
|
|
|
2018
2164
|
<px-vstack gap="default" gap--mobile="default">
|
|
2019
2165
|
<slot name="footer"></slot>
|
|
2020
2166
|
</px-vstack>
|
|
2021
|
-
</px-vstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [
|
|
2167
|
+
</px-vstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template, this.shadowRoot.adoptedStyleSheets = [St];
|
|
2022
2168
|
}
|
|
2023
2169
|
connectedCallback() {
|
|
2024
2170
|
this.$slotTitle || this.$title.setAttribute("hidden", ""), this.setupForId();
|
|
@@ -2057,12 +2203,12 @@ class se extends HTMLElement {
|
|
|
2057
2203
|
t ? this.setAttribute("hidden-title", "") : this.removeAttribute("hidden-title");
|
|
2058
2204
|
}
|
|
2059
2205
|
}
|
|
2060
|
-
customElements.get("px-mdd-section") || customElements.define("px-mdd-section",
|
|
2061
|
-
const
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
const
|
|
2206
|
+
customElements.get("px-mdd-section") || customElements.define("px-mdd-section", pe);
|
|
2207
|
+
const wt = new CSSStyleSheet(), Ct = new CSSStyleSheet(), Lt = new CSSStyleSheet();
|
|
2208
|
+
wt.replaceSync(nt);
|
|
2209
|
+
Ct.replaceSync(st);
|
|
2210
|
+
Lt.replaceSync(F);
|
|
2211
|
+
const be = [...at, "link-m", "link-s"], ce = [
|
|
2066
2212
|
"link",
|
|
2067
2213
|
"no-style",
|
|
2068
2214
|
"skip-link",
|
|
@@ -2070,10 +2216,10 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2070
2216
|
"btn-secondary",
|
|
2071
2217
|
"btn-tertiary",
|
|
2072
2218
|
"icon-link"
|
|
2073
|
-
],
|
|
2219
|
+
], he = ["", "default", "alternative"], C = class C extends A {
|
|
2074
2220
|
constructor() {
|
|
2075
|
-
super(
|
|
2076
|
-
const t = document.createElement(
|
|
2221
|
+
super(wt, Ct, Lt), this.template = () => '<slot name="before"></slot><slot></slot><slot name="after"></slot>';
|
|
2222
|
+
const t = document.createElement(C.nativeName);
|
|
2077
2223
|
t.innerHTML = this.template(), this.shadowRoot.appendChild(t);
|
|
2078
2224
|
}
|
|
2079
2225
|
static get observedAttributes() {
|
|
@@ -2099,7 +2245,7 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2099
2245
|
];
|
|
2100
2246
|
}
|
|
2101
2247
|
connectedCallback() {
|
|
2102
|
-
|
|
2248
|
+
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);
|
|
2103
2249
|
}
|
|
2104
2250
|
attributeChangedCallback(t, e, o) {
|
|
2105
2251
|
if (e !== o)
|
|
@@ -2115,7 +2261,7 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2115
2261
|
case "shape--tablet":
|
|
2116
2262
|
case "shape--laptop":
|
|
2117
2263
|
case "shape--desktop":
|
|
2118
|
-
this.updateShape(t, o,
|
|
2264
|
+
this.updateShape(t, o, he);
|
|
2119
2265
|
break;
|
|
2120
2266
|
case "extended":
|
|
2121
2267
|
case "extended--mobile":
|
|
@@ -2129,14 +2275,14 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2129
2275
|
t,
|
|
2130
2276
|
e,
|
|
2131
2277
|
o,
|
|
2132
|
-
|
|
2278
|
+
be
|
|
2133
2279
|
);
|
|
2134
2280
|
break;
|
|
2135
2281
|
case "color":
|
|
2136
|
-
this.updateTypography(t, e, o,
|
|
2282
|
+
this.updateTypography(t, e, o, _);
|
|
2137
2283
|
break;
|
|
2138
2284
|
case "font-weight":
|
|
2139
|
-
this.updateTypography(t, e, o,
|
|
2285
|
+
this.updateTypography(t, e, o, it);
|
|
2140
2286
|
break;
|
|
2141
2287
|
case "title":
|
|
2142
2288
|
o && (this.$el.setAttribute("title", o), this.removeAttribute("title"));
|
|
@@ -2161,17 +2307,23 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2161
2307
|
this.$el.classList.toggle(t);
|
|
2162
2308
|
}
|
|
2163
2309
|
updateVariant(t, e) {
|
|
2164
|
-
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(
|
|
2310
|
+
t !== null && t !== "" && t !== "link" && this._toggleClassList(t), e !== null && e !== "" && e !== "link" && this._toggleClassList(e), this.checkName(ce, e) || n(
|
|
2311
|
+
`${e} is not an allowed variant value for ${this.tagName.toLowerCase()}`
|
|
2312
|
+
), e === "icon-link" && this.$iconNotBeforeAfter.setAttribute("color", "inherit");
|
|
2165
2313
|
}
|
|
2166
2314
|
updateShape(t, e, o) {
|
|
2167
|
-
if (!
|
|
2168
|
-
|
|
2315
|
+
if (!y(o, e)) {
|
|
2316
|
+
n(
|
|
2317
|
+
`${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
2318
|
+
);
|
|
2169
2319
|
return;
|
|
2170
2320
|
}
|
|
2171
2321
|
e !== null && e !== "" && this.$el.setAttribute(t, e);
|
|
2172
2322
|
}
|
|
2173
2323
|
updateTypography(t, e, o, r) {
|
|
2174
|
-
e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`${t}-${e}`), o !== null && o !== "" && o !== "default" && this.$el.classList.toggle(`${t}-${o}`), this.checkName(r, o) ||
|
|
2324
|
+
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) || n(
|
|
2325
|
+
`${o} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
|
|
2326
|
+
);
|
|
2175
2327
|
}
|
|
2176
2328
|
updateExtended(t, e) {
|
|
2177
2329
|
e === null ? this.$el.style.setProperty(`--button-${t}`, "") : this.$el.style.setProperty(`--button-${t}`, "100%");
|
|
@@ -2290,12 +2442,12 @@ const ne = [...rt, "link-m", "link-s"], de = [
|
|
|
2290
2442
|
t ? this.setAttribute("title", t) : this.removeAttribute("title");
|
|
2291
2443
|
}
|
|
2292
2444
|
};
|
|
2293
|
-
|
|
2294
|
-
let
|
|
2295
|
-
customElements.get("px-a") || customElements.define("px-a",
|
|
2296
|
-
const
|
|
2297
|
-
|
|
2298
|
-
class
|
|
2445
|
+
C.nativeName = "a";
|
|
2446
|
+
let O = C;
|
|
2447
|
+
customElements.get("px-a") || customElements.define("px-a", O);
|
|
2448
|
+
const ge = '.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)}}', Tt = new CSSStyleSheet();
|
|
2449
|
+
Tt.replaceSync(ge);
|
|
2450
|
+
class ue extends HTMLElement {
|
|
2299
2451
|
constructor() {
|
|
2300
2452
|
var t;
|
|
2301
2453
|
super(), this.template = `
|
|
@@ -2306,7 +2458,7 @@ class be extends HTMLElement {
|
|
|
2306
2458
|
</span>
|
|
2307
2459
|
<px-spacer></px-spacer>
|
|
2308
2460
|
<px-icon name="chevron_right" from="lavender"></px-icon>
|
|
2309
|
-
</px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
2461
|
+
</px-hstack>`, this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [Tt], this.internals = (t = this.attachInternals) == null ? void 0 : t.call(this), this.role = "listitem", this.internals && (this.internals.role = "listitem");
|
|
2310
2462
|
}
|
|
2311
2463
|
static get observedAttributes() {
|
|
2312
2464
|
return ["href", "for"];
|
|
@@ -2355,9 +2507,9 @@ class be extends HTMLElement {
|
|
|
2355
2507
|
);
|
|
2356
2508
|
}
|
|
2357
2509
|
}
|
|
2358
|
-
customElements.get("px-mdd-section-item") || customElements.define("px-mdd-section-item",
|
|
2510
|
+
customElements.get("px-mdd-section-item") || customElements.define("px-mdd-section-item", ue);
|
|
2359
2511
|
export {
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2512
|
+
pe as MddSection,
|
|
2513
|
+
ue as MddSectionItem,
|
|
2514
|
+
de as MegaDropDown
|
|
2363
2515
|
};
|