@proximus/lavender 1.4.7-alpha.7 → 1.4.7-alpha.8

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.
@@ -6,7 +6,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
6
6
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
7
7
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
8
8
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
9
- var _src, _internals, _template, _Card_instances, updateMediaPosition_fn, updateMedia_fn, updateBackgroundColor_fn, _Dropdown_instances, resetManualPopoverDisplay_fn, _onTriggerClick, _beforeToggle, _onToggle, handleManualPopoverDisplay_fn, _onResize, _Header_instances, setMDDDialogOffset_fn, togglePanel_fn, showMobileMenu_fn, hideMobileMenu_fn, hidePanel_fn, $mobileMenu_get, $navigationItems_get, $headerWrapper_get, $megaDropdowns_get, _template2, _HeaderMobileMenu_instances, createMobileMenuPanelDropDowns_fn, _Select_instances, updateOptions_fn, _mutationObserver, _MegaDropDown_instances, $backButton_get, $title_get, $footer_get, $closeButtons_get, _Tabs_instances, handleInverted_fn, handleHideControls_fn;
9
+ var _src, _internals, _template, _Banner_instances, applyReducedPadding_fn, _Breadcrumb_instances, applyInverted_fn, _Card_instances, updateMediaPosition_fn, updateMedia_fn, updateBackgroundColor_fn, _Carousel_instances, syncItems_fn, _Dropdown_instances, resetManualPopoverDisplay_fn, _onTriggerClick, _beforeToggle, _onToggle, handleManualPopoverDisplay_fn, _onResize, _Header_instances, setMDDDialogOffset_fn, togglePanel_fn, showMobileMenu_fn, hideMobileMenu_fn, hidePanel_fn, $mobileMenu_get, $navigationItems_get, $headerWrapper_get, $megaDropdowns_get, _template2, _HeaderMobileMenu_instances, createMobileMenuPanelDropDowns_fn, _Select_instances, updateOptions_fn, _List_instances, syncChildren_fn, applyInverted_fn2, applyVariant_fn, _mutationObserver, _MegaDropDown_instances, $backButton_get, $title_get, $footer_get, $closeButtons_get, _Tabs_instances, handleInverted_fn, handleHideControls_fn, _Timeline_instances, applyInverted_fn3;
10
10
  const styles$K = ':host{display:block}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-mobile) - var(--host-gap--mobile))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-mobile) + var(--px-focus-offset-mobile))}.flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction--mobile-value);gap:var(--flex-gap--mobile-value);flex-wrap:var(--flex-wrap--mobile-value);justify-content:var(--flex-justify-content--mobile-value);align-items:var(--flex-align-items--mobile-value);overflow-x:var(--overflow-x-all)}@media only screen and (max-width: 47.9375em){.flex-container{overflow-x:var(--overflow-x-all-mobile, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 48em){.flex-container{flex-direction:var(--flex-direction--tablet-value);gap:var(--flex-gap--tablet-value);flex-wrap:var(--flex-wrap--tablet-value);justify-content:var(--flex-justify-content--tablet-value);align-items:var(--flex-align-items--tablet-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-tablet) - var(--host-gap--tablet))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-tablet) + var(--px-focus-offset-tablet))}}@media only screen and (min-width: 48em) and (max-width: 64em){.flex-container{overflow-x:var(--overflow-x-all-tablet, var(--overflow-x-all));scrollbar-width:none}.flex-container::-webkit-scrollbar{display:none}}@media only screen and (min-width: 64.0625em){.flex-container{flex-direction:var(--flex-direction--laptop-value);gap:var(--flex-gap--laptop-value);flex-wrap:var(--flex-wrap--laptop-value);justify-content:var(--flex-justify-content--laptop-value);align-items:var(--flex-align-items--laptop-value)}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-laptop) - var(--host-gap--laptop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-laptop) + var(--px-focus-offset-laptop))}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.flex-container{overflow-x:var(--overflow-x-all-laptop, var(--overflow-x-all))}}@media only screen and (min-width: 90.0625em){.flex-container{flex-direction:var(--flex-direction--desktop-value);gap:var(--flex-gap--desktop-value);flex-wrap:var(--flex-wrap--desktop-value);justify-content:var(--flex-justify-content--desktop-value);align-items:var(--flex-align-items--desktop-value);overflow-x:var(--overflow-x-all-desktop, var(--overflow-x-all))}:host ::slotted(px-h1[auto-spacing]),:host ::slotted(px-h2[auto-spacing]),:host ::slotted(px-h3[auto-spacing]),:host ::slotted(px-h4[auto-spacing]),:host ::slotted(px-h5[auto-spacing]),:host ::slotted(px-h6[auto-spacing]){margin-bottom:calc(var(--px-spacing-heading-to-content-desktop) - var(--host-gap--desktop))}:host([overflow-x="auto"]){margin:calc(calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop)) * -1)}:host([overflow-x="auto"]) .flex-container{padding:calc(var(--px-focus-outline-desktop) + var(--px-focus-offset-desktop))}}';
11
11
  const commonStyles = ":host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted(*[shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (max-width: 767px){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted(*[shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 768px) and (max-width: 1024px){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted(*[shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px){:host([shown--sr--laptop]),::slotted(*[shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px){:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}@media screen and (min-width: 1441px){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}}";
12
12
  const __vite_import_meta_env__ = {};
@@ -3761,6 +3761,7 @@ bannerStyles.replaceSync(bannerCss);
3761
3761
  const _Banner = class _Banner extends VerticallyExtendedElement {
3762
3762
  constructor() {
3763
3763
  super(bannerStyles);
3764
+ __privateAdd(this, _Banner_instances);
3764
3765
  this.template = () => `<div class="banner">
3765
3766
  <div class="contrast-helper"></div>
3766
3767
  <px-container class="banner-container" padding--mobile="m" border-radius="main" >
@@ -3806,11 +3807,7 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
3806
3807
  connectedCallback() {
3807
3808
  var _a;
3808
3809
  (_a = super.connectedCallback) == null ? void 0 : _a.call(this);
3809
- if (this.reduced) {
3810
- this.$container.setAttribute("padding", "m");
3811
- } else {
3812
- this.$container.setAttribute("padding", "l");
3813
- }
3810
+ __privateMethod(this, _Banner_instances, applyReducedPadding_fn).call(this);
3814
3811
  this.createGridTemplateAreas();
3815
3812
  this.createGridding();
3816
3813
  this.observer = new MutationObserver(() => {
@@ -3851,6 +3848,9 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
3851
3848
  break;
3852
3849
  case "reduced":
3853
3850
  this.$el.toggleAttribute("reduced", newValue !== null);
3851
+ if (this.isConnected) {
3852
+ __privateMethod(this, _Banner_instances, applyReducedPadding_fn).call(this);
3853
+ }
3854
3854
  this.createGridTemplateAreas();
3855
3855
  break;
3856
3856
  case "has-gridding":
@@ -4081,42 +4081,48 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
4081
4081
  }
4082
4082
  }
4083
4083
  };
4084
+ _Banner_instances = new WeakSet();
4085
+ applyReducedPadding_fn = function() {
4086
+ this.$container.setAttribute("padding", this.reduced ? "m" : "l");
4087
+ };
4084
4088
  _Banner.nativeName = "div";
4085
4089
  let Banner = _Banner;
4086
4090
  if (!customElements.get("px-banner")) {
4087
4091
  customElements.define("px-banner", Banner);
4088
4092
  }
4089
4093
  const breadcrumbCss = `:host{display:block}:host *{box-sizing:border-box}.breadcrumb{font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);margin:calc(var(--px-spacing-s-mobile) * -1) 0 0 0;padding:0}.breadcrumb div[role=list]{display:flex;flex-wrap:wrap;align-items:center}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-mobile)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){display:flex;align-items:center;margin-right:var(--px-spacing-xs-mobile)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{display:inline-block;content:"";width:16px;height:16px;-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='M5.90255 3.61987C5.6515 3.8749 5.6515 4.2884 5.90255 4.54343L9.30512 8.00002L5.90255 11.4566C5.6515 11.7116 5.6515 12.1251 5.90255 12.3802C6.1536 12.6352 6.56063 12.6352 6.81169 12.3802L10.6688 8.4618C10.9199 8.20677 10.9199 7.79327 10.6688 7.53823L6.81169 3.61987C6.56063 3.36483 6.1536 3.36483 5.90255 3.61987Z' fill='%23252525'/%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='M5.90255 3.61987C5.6515 3.8749 5.6515 4.2884 5.90255 4.54343L9.30512 8.00002L5.90255 11.4566C5.6515 11.7116 5.6515 12.1251 5.90255 12.3802C6.1536 12.6352 6.56063 12.6352 6.81169 12.3802L10.6688 8.4618C10.9199 8.20677 10.9199 7.79327 10.6688 7.53823L6.81169 3.61987C6.56063 3.36483 6.1536 3.36483 5.90255 3.61987Z' fill='%23252525'/%3E%3C/svg%3E");background-color:currentColor;color:var(--px-color-icon-neutral-default);margin-left:var(--px-spacing-xs-mobile)}@media only screen and (min-width: 48em){.breadcrumb{margin:calc(var(--px-spacing-s-tablet) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-tablet)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-tablet)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 64.0625em){.breadcrumb{margin:calc(var(--px-spacing-s-laptop) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-laptop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-laptop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 90.0625em){.breadcrumb{margin:calc(var(--px-spacing-s-desktop) * -1) 0 0 0}.breadcrumb ::slotted(px-breadcrumb-item){margin-top:var(--px-spacing-s-desktop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)){margin-right:var(--px-spacing-xs-desktop)}.breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{margin-left:var(--px-spacing-xs-desktop)}}:host([inverted]) .breadcrumb{color:var(--px-color-text-neutral-inverted)}:host([inverted]) .breadcrumb ::slotted(px-breadcrumb-item:not(:last-child)):after{color:var(--px-color-icon-neutral-inverted)}`;
4090
- const breadcrumbStyles = new CSSStyleSheet();
4091
- breadcrumbStyles.replaceSync(breadcrumbCss);
4092
- class Breadcrumb extends WithExtraAttributes {
4093
- template() {
4094
- return `
4095
- <nav class="breadcrumb">
4096
- <div role="list">
4097
- <slot></slot>
4098
- </div>
4099
- </nav>
4100
- `;
4101
- }
4094
+ const breadcrumbItemCss = ":host{display:block}:host *{box-sizing:border-box}.breadcrumb-item{display:flex}:host:has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item{color:var(--px-color-icon-accent-default)}:host:has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item:hover{color:var(--px-color-text-state-hover-default)}:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{line-height:var(--px-font-line-height-s);font-size:var(--px-text-size-link-s-mobile)}@media only screen and (min-width: 48em){:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{font-size:var(--px-text-size-link-s-tablet)}}@media only screen and (min-width: 64.0625em){:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{font-size:var(--px-text-size-link-s-laptop)}}@media only screen and (min-width: 90.0625em){:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{font-size:var(--px-text-size-link-s-desktop)}}:host([inverted]):has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item{color:var(--px-color-icon-accent-inverted)}:host([inverted]):has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item:hover{color:var(--px-color-text-state-hover-inverted)}";
4095
+ const breadcrumbItemStyles = new CSSStyleSheet();
4096
+ breadcrumbItemStyles.replaceSync(breadcrumbItemCss);
4097
+ const BREADCRUMB_ITEM_CONNECTED_EVENT = "px-breadcrumb-item-connected";
4098
+ const _BreadcrumbItem = class _BreadcrumbItem extends PxElement {
4102
4099
  constructor() {
4103
- super(breadcrumbStyles);
4104
- this.shadowRoot.innerHTML = this.template();
4105
- }
4106
- connectedCallback() {
4107
- if (!this.ariaLabel) {
4108
- this.ariaLabel = "Breadcrumb";
4100
+ super(breadcrumbItemStyles);
4101
+ this.template = () => `<div class="breadcrumb-item" role="listitem"><slot></slot></div>`;
4102
+ if (this.shadowRoot) {
4103
+ this.shadowRoot.innerHTML = this.template();
4109
4104
  }
4110
4105
  }
4111
4106
  static get observedAttributes() {
4112
- return [...super.observedAttributes, "inverted", "aria-label"];
4107
+ return [...super.observedAttributes, "inverted"];
4108
+ }
4109
+ connectedCallback() {
4110
+ if (this.$icon) {
4111
+ this.$icon.setAttribute("size", "s");
4112
+ }
4113
+ if (!this.$link) {
4114
+ this.$el.setAttribute("aria-current", "page");
4115
+ }
4116
+ this.dispatchEvent(
4117
+ new CustomEvent(BREADCRUMB_ITEM_CONNECTED_EVENT, {
4118
+ bubbles: true,
4119
+ composed: true
4120
+ })
4121
+ );
4113
4122
  }
4114
4123
  attributeChangedCallback(attrName, oldValue, newValue) {
4115
4124
  if (oldValue !== newValue) {
4116
4125
  switch (attrName) {
4117
- case "aria-label":
4118
- this.$el.setAttribute("aria-label", this.ariaLabel);
4119
- break;
4120
4126
  case "inverted":
4121
4127
  for (let i = 0; i < this.$children.length; i++) {
4122
4128
  if (!this.$children[i].hasAttribute("inverted")) {
@@ -4130,11 +4136,14 @@ class Breadcrumb extends WithExtraAttributes {
4130
4136
  }
4131
4137
  }
4132
4138
  }
4133
- get $el() {
4134
- return this.shadowRoot.querySelector(".breadcrumb");
4139
+ get $link() {
4140
+ return this.querySelector("px-a");
4141
+ }
4142
+ get $icon() {
4143
+ return this.querySelector("px-icon");
4135
4144
  }
4136
4145
  get $children() {
4137
- return this.querySelectorAll("px-breadcrumb > *");
4146
+ return this.querySelectorAll("px-breadcrumb-item > *");
4138
4147
  }
4139
4148
  get inverted() {
4140
4149
  return this.hasAttribute("inverted");
@@ -4146,50 +4155,50 @@ class Breadcrumb extends WithExtraAttributes {
4146
4155
  this.removeAttribute("inverted");
4147
4156
  }
4148
4157
  }
4149
- get ariaLabel() {
4150
- return this.getAttribute("aria-label");
4151
- }
4152
- set ariaLabel(value) {
4153
- if (value) {
4154
- this.setAttribute("aria-label", value);
4155
- } else {
4156
- this.removeAttribute("aria-label");
4157
- }
4158
- }
4159
- }
4160
- if (!customElements.get("px-breadcrumb")) {
4161
- customElements.define("px-breadcrumb", Breadcrumb);
4158
+ };
4159
+ _BreadcrumbItem.nativeName = "div";
4160
+ let BreadcrumbItem = _BreadcrumbItem;
4161
+ if (!customElements.get("px-breadcrumb-item")) {
4162
+ customElements.define("px-breadcrumb-item", BreadcrumbItem);
4162
4163
  }
4163
- const breadcrumbItemCss = ":host{display:block}:host *{box-sizing:border-box}.breadcrumb-item{display:flex}:host:has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item{color:var(--px-color-icon-accent-default)}:host:has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item:hover{color:var(--px-color-text-state-hover-default)}:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{line-height:var(--px-font-line-height-s);font-size:var(--px-text-size-link-s-mobile)}@media only screen and (min-width: 48em){:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{font-size:var(--px-text-size-link-s-tablet)}}@media only screen and (min-width: 64.0625em){:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{font-size:var(--px-text-size-link-s-laptop)}}@media only screen and (min-width: 90.0625em){:host:not(:has(px-a[variant=icon-link][color=inherit])) .breadcrumb-item{font-size:var(--px-text-size-link-s-desktop)}}:host([inverted]):has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item{color:var(--px-color-icon-accent-inverted)}:host([inverted]):has(px-a[variant=icon-link][color=inherit]) .breadcrumb-item:hover{color:var(--px-color-text-state-hover-inverted)}";
4164
- const breadcrumbItemStyles = new CSSStyleSheet();
4165
- breadcrumbItemStyles.replaceSync(breadcrumbItemCss);
4166
- const _BreadcrumbItem = class _BreadcrumbItem extends PxElement {
4164
+ const breadcrumbStyles = new CSSStyleSheet();
4165
+ breadcrumbStyles.replaceSync(breadcrumbCss);
4166
+ class Breadcrumb extends WithExtraAttributes {
4167
4167
  constructor() {
4168
- super(breadcrumbItemStyles);
4169
- this.template = () => `<div class="breadcrumb-item" role="listitem"><slot></slot></div>`;
4170
- if (this.shadowRoot) {
4171
- this.shadowRoot.innerHTML = this.template();
4172
- }
4168
+ super(breadcrumbStyles);
4169
+ __privateAdd(this, _Breadcrumb_instances);
4170
+ this.shadowRoot.innerHTML = this.template();
4173
4171
  }
4174
- static get observedAttributes() {
4175
- return [...super.observedAttributes, "inverted"];
4172
+ template() {
4173
+ return `
4174
+ <nav class="breadcrumb">
4175
+ <div role="list">
4176
+ <slot></slot>
4177
+ </div>
4178
+ </nav>
4179
+ `;
4176
4180
  }
4177
4181
  connectedCallback() {
4178
- if (this.$icon) {
4179
- this.$icon.setAttribute("size", "s");
4180
- }
4181
- if (!this.$link) {
4182
- this.$el.setAttribute("aria-current", "page");
4182
+ if (!this.ariaLabel) {
4183
+ this.ariaLabel = "Breadcrumb";
4183
4184
  }
4185
+ this.addEventListener(BREADCRUMB_ITEM_CONNECTED_EVENT, () => {
4186
+ __privateMethod(this, _Breadcrumb_instances, applyInverted_fn).call(this);
4187
+ });
4188
+ __privateMethod(this, _Breadcrumb_instances, applyInverted_fn).call(this);
4189
+ }
4190
+ static get observedAttributes() {
4191
+ return [...super.observedAttributes, "inverted", "aria-label"];
4184
4192
  }
4185
4193
  attributeChangedCallback(attrName, oldValue, newValue) {
4186
4194
  if (oldValue !== newValue) {
4187
4195
  switch (attrName) {
4196
+ case "aria-label":
4197
+ this.$el.setAttribute("aria-label", this.ariaLabel);
4198
+ break;
4188
4199
  case "inverted":
4189
- for (let i = 0; i < this.$children.length; i++) {
4190
- if (!this.$children[i].hasAttribute("inverted")) {
4191
- this.$children[i].toggleAttribute("inverted");
4192
- }
4200
+ if (this.isConnected) {
4201
+ __privateMethod(this, _Breadcrumb_instances, applyInverted_fn).call(this);
4193
4202
  }
4194
4203
  break;
4195
4204
  default:
@@ -4198,14 +4207,11 @@ const _BreadcrumbItem = class _BreadcrumbItem extends PxElement {
4198
4207
  }
4199
4208
  }
4200
4209
  }
4201
- get $link() {
4202
- return this.querySelector("px-a");
4203
- }
4204
- get $icon() {
4205
- return this.querySelector("px-icon");
4210
+ get $el() {
4211
+ return this.shadowRoot.querySelector(".breadcrumb");
4206
4212
  }
4207
4213
  get $children() {
4208
- return this.querySelectorAll("px-breadcrumb-item > *");
4214
+ return this.querySelectorAll("px-breadcrumb > *");
4209
4215
  }
4210
4216
  get inverted() {
4211
4217
  return this.hasAttribute("inverted");
@@ -4217,11 +4223,26 @@ const _BreadcrumbItem = class _BreadcrumbItem extends PxElement {
4217
4223
  this.removeAttribute("inverted");
4218
4224
  }
4219
4225
  }
4226
+ get ariaLabel() {
4227
+ return this.getAttribute("aria-label");
4228
+ }
4229
+ set ariaLabel(value) {
4230
+ if (value) {
4231
+ this.setAttribute("aria-label", value);
4232
+ } else {
4233
+ this.removeAttribute("aria-label");
4234
+ }
4235
+ }
4236
+ }
4237
+ _Breadcrumb_instances = new WeakSet();
4238
+ applyInverted_fn = function() {
4239
+ const on = this.hasAttribute("inverted");
4240
+ for (let i = 0; i < this.$children.length; i++) {
4241
+ this.$children[i].toggleAttribute("inverted", on);
4242
+ }
4220
4243
  };
4221
- _BreadcrumbItem.nativeName = "div";
4222
- let BreadcrumbItem = _BreadcrumbItem;
4223
- if (!customElements.get("px-breadcrumb-item")) {
4224
- customElements.define("px-breadcrumb-item", BreadcrumbItem);
4244
+ if (!customElements.get("px-breadcrumb")) {
4245
+ customElements.define("px-breadcrumb", Breadcrumb);
4225
4246
  }
4226
4247
  const buttonCss = `.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)}}`;
4227
4248
  const linkCss = ':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)}}';
@@ -5306,12 +5327,14 @@ function throttle(func, wait, options) {
5306
5327
  }
5307
5328
  const styleSheet$w = new CSSStyleSheet();
5308
5329
  styleSheet$w.replaceSync(styles$D);
5330
+ const CAROUSEL_ITEM_CONNECTED_EVENT = "px-carousel-item-connected";
5309
5331
  const attributeBreakpointCSSSelector = (attributeName, attributeValue, device) => `:host([${attributeName}${device ? `--${device}` : ""}='${attributeValue}']) .carousel`;
5310
5332
  const prefix = "px-spacing";
5311
5333
  const visibleItemCalcFunction = (spacingToken) => (numberOfItems, device) => `calc(((100% - ${Math.max(parseInt(numberOfItems), 2)} * ( var(--px-spacing-${spacingToken}-${device}))) / ${numberOfItems}) - ( 64px / ${Math.max(parseInt(numberOfItems), 2)}))`;
5312
5334
  class Carousel extends HTMLElement {
5313
5335
  constructor() {
5314
5336
  super();
5337
+ __privateAdd(this, _Carousel_instances);
5315
5338
  this.visibleItemsAttributeDelegate = new AttributeBreakpointHandlerDelegate(
5316
5339
  this,
5317
5340
  "visible-items",
@@ -5405,10 +5428,10 @@ class Carousel extends HTMLElement {
5405
5428
  this.visibleItemsAttributeDelegate.attributeValue = visibleItemCalcFunction(
5406
5429
  this.getAttribute("gap") || "s"
5407
5430
  );
5408
- requestAnimationFrame(() => {
5409
- this.handleAppleSeedDisplay();
5431
+ this.addEventListener(CAROUSEL_ITEM_CONNECTED_EVENT, () => {
5432
+ __privateMethod(this, _Carousel_instances, syncItems_fn).call(this);
5410
5433
  });
5411
- this.$appleseed.setAttribute("amount", `${this.itemNumbers}`);
5434
+ __privateMethod(this, _Carousel_instances, syncItems_fn).call(this);
5412
5435
  this.$carousel.addEventListener("scroll", throttle(this.onScroll, 500));
5413
5436
  this.$previous.addEventListener("click", () => {
5414
5437
  this.$carousel.scrollLeft -= this.$carousel.clientWidth;
@@ -5467,6 +5490,13 @@ class Carousel extends HTMLElement {
5467
5490
  return this.querySelectorAll("px-carousel-item").length;
5468
5491
  }
5469
5492
  }
5493
+ _Carousel_instances = new WeakSet();
5494
+ syncItems_fn = function() {
5495
+ this.$appleseed.setAttribute("amount", `${this.itemNumbers}`);
5496
+ requestAnimationFrame(() => {
5497
+ this.handleAppleSeedDisplay();
5498
+ });
5499
+ };
5470
5500
  if (!customElements.get("px-carousel")) {
5471
5501
  customElements.define("px-carousel", Carousel);
5472
5502
  }
@@ -5483,6 +5513,14 @@ class CarouselItem extends HTMLElement {
5483
5513
  this.shadowRoot.innerHTML = this.template;
5484
5514
  this.shadowRoot.adoptedStyleSheets = [styleSheet$w, itemStyleSheet];
5485
5515
  }
5516
+ connectedCallback() {
5517
+ this.dispatchEvent(
5518
+ new CustomEvent(CAROUSEL_ITEM_CONNECTED_EVENT, {
5519
+ bubbles: true,
5520
+ composed: true
5521
+ })
5522
+ );
5523
+ }
5486
5524
  }
5487
5525
  if (!customElements.get("px-carousel-item")) {
5488
5526
  customElements.define("px-carousel-item", CarouselItem);
@@ -8382,8 +8420,6 @@ const _ColorOptionLink = class _ColorOptionLink extends PxElement {
8382
8420
  this.shadowRoot.appendChild($root);
8383
8421
  }
8384
8422
  connectedCallback() {
8385
- if (this.deviceColor)
8386
- this.$colorOption.setAttribute("device-color", this.deviceColor);
8387
8423
  this.addEventListener("click", (e) => {
8388
8424
  e.preventDefault();
8389
8425
  this.clickColorOptionLink();
@@ -12080,8 +12116,70 @@ if (!customElements.get("px-fileupload")) {
12080
12116
  customElements.define("px-fileupload", Upload);
12081
12117
  }
12082
12118
  const styles$o = ".list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}";
12119
+ const styles$n = '.list-item{display:flex;gap:var(--px-spacing-xs-mobile);align-items:flex-start;font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default)}.list-item[inverted]{color:var(--px-color-text-neutral-inverted)}:host([variant="ul"]) .list-item,:host([variant="ol"]) .list-item{display:list-item;margin-left:var(--px-spacing-default-mobile)}:host([variant="ul"]) .list-item{list-style-type:disc}:host([variant="ol"]) .list-item{counter-set:list-item var(--item-index, 0);list-style-type:decimal}@media only screen and (min-width: 48em){.list-item{gap:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 64.0625em){.list-item{gap:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 90.0625em){.list-item{gap:var(--px-spacing-xs-desktop)}}';
12083
12120
  const styleSheet$l = new CSSStyleSheet();
12084
- styleSheet$l.replaceSync(styles$o);
12121
+ styleSheet$l.replaceSync(styles$n);
12122
+ const LIST_ITEM_CONNECTED_EVENT = "px-list-item-connected";
12123
+ const _ListItem = class _ListItem extends PxElement {
12124
+ template() {
12125
+ return `
12126
+ <div class="list-item" role="listitem">
12127
+ <slot name="icon"></slot>
12128
+ <slot name="label"></slot>
12129
+ </div>
12130
+ `;
12131
+ }
12132
+ constructor() {
12133
+ super(styleSheet$l);
12134
+ this.shadowRoot.innerHTML = this.template();
12135
+ }
12136
+ connectedCallback() {
12137
+ this.dispatchEvent(
12138
+ new CustomEvent(LIST_ITEM_CONNECTED_EVENT, {
12139
+ bubbles: true,
12140
+ composed: true
12141
+ })
12142
+ );
12143
+ }
12144
+ static get observedAttributes() {
12145
+ return ["inverted"];
12146
+ }
12147
+ // TODO: factorize code
12148
+ attributeChangedCallback(attrName, oldValue, newValue) {
12149
+ if (oldValue !== newValue) {
12150
+ switch (attrName) {
12151
+ case "inverted":
12152
+ for (let i = 0; i < this.$children.length; i++) {
12153
+ if (!this.$children[i].hasAttribute("inverted")) {
12154
+ this.$children[i].toggleAttribute("inverted");
12155
+ }
12156
+ }
12157
+ this.$el.toggleAttribute("inverted", newValue !== null);
12158
+ break;
12159
+ }
12160
+ }
12161
+ }
12162
+ get $children() {
12163
+ return this.querySelectorAll("px-list-item > *");
12164
+ }
12165
+ get inverted() {
12166
+ return this.hasAttribute("inverted");
12167
+ }
12168
+ set inverted(value) {
12169
+ if (value) {
12170
+ this.setAttribute("inverted", "");
12171
+ } else {
12172
+ this.removeAttribute("inverted");
12173
+ }
12174
+ }
12175
+ };
12176
+ _ListItem.nativeName = "div";
12177
+ let ListItem = _ListItem;
12178
+ if (!customElements.get("px-list-item")) {
12179
+ customElements.define("px-list-item", ListItem);
12180
+ }
12181
+ const styleSheet$k = new CSSStyleSheet();
12182
+ styleSheet$k.replaceSync(styles$o);
12085
12183
  const listVariantValues = ["", "ul", "ol"];
12086
12184
  const AttributeBreakpointCSSSelector = (attributeName, attributeValue, device) => `:host([${attributeName}${device ? `--${device}` : ""}='${attributeValue}']) .list`;
12087
12185
  const gapPrefix = "px-spacing";
@@ -12093,6 +12191,11 @@ const listCssTokenBreakpoints = cssTokenBreakpoints(
12093
12191
  "--list-gap"
12094
12192
  );
12095
12193
  const _List = class _List extends PxElement {
12194
+ constructor() {
12195
+ super(styleSheet$k, listCssTokenBreakpoints);
12196
+ __privateAdd(this, _List_instances);
12197
+ this.shadowRoot.innerHTML = this.template();
12198
+ }
12096
12199
  template() {
12097
12200
  return `
12098
12201
  <div class="list" role="list">
@@ -12100,10 +12203,6 @@ const _List = class _List extends PxElement {
12100
12203
  </div>
12101
12204
  `;
12102
12205
  }
12103
- constructor() {
12104
- super(styleSheet$l, listCssTokenBreakpoints);
12105
- this.shadowRoot.innerHTML = this.template();
12106
- }
12107
12206
  static get observedAttributes() {
12108
12207
  return ["inverted", "variant"];
12109
12208
  }
@@ -12111,17 +12210,18 @@ const _List = class _List extends PxElement {
12111
12210
  if (!this.gap) {
12112
12211
  this.gap = "xs";
12113
12212
  }
12213
+ this.addEventListener(LIST_ITEM_CONNECTED_EVENT, () => {
12214
+ __privateMethod(this, _List_instances, syncChildren_fn).call(this);
12215
+ });
12216
+ __privateMethod(this, _List_instances, syncChildren_fn).call(this);
12114
12217
  }
12115
12218
  attributeChangedCallback(attrName, oldValue, newValue) {
12116
12219
  if (oldValue !== newValue) {
12117
12220
  switch (attrName) {
12118
12221
  case "inverted":
12119
- for (let i = 0; i < this.$children.length; i++) {
12120
- if (!this.$children[i].hasAttribute("inverted")) {
12121
- this.$children[i].toggleAttribute("inverted");
12122
- }
12222
+ if (this.isConnected) {
12223
+ __privateMethod(this, _List_instances, applyInverted_fn2).call(this);
12123
12224
  }
12124
- this.$el.toggleAttribute("inverted", newValue !== null);
12125
12225
  break;
12126
12226
  case "variant":
12127
12227
  if (!this.checkName(listVariantValues, newValue)) {
@@ -12129,19 +12229,8 @@ const _List = class _List extends PxElement {
12129
12229
  `${newValue} is not an allowed variant value for ${this.tagName.toLowerCase()}`
12130
12230
  );
12131
12231
  }
12132
- for (let i = 0; i < this.$children.length; i++) {
12133
- const child = this.$children[i];
12134
- if (newValue !== null) {
12135
- child.setAttribute("variant", newValue);
12136
- if (newValue === "ol") {
12137
- child.style.setProperty("--item-index", String(i + 1));
12138
- } else {
12139
- child.style.removeProperty("--item-index");
12140
- }
12141
- } else {
12142
- child.removeAttribute("variant");
12143
- child.style.removeProperty("--item-index");
12144
- }
12232
+ if (this.isConnected) {
12233
+ __privateMethod(this, _List_instances, applyVariant_fn).call(this, newValue);
12145
12234
  }
12146
12235
  super.attributeChangedCallback(attrName, oldValue, newValue);
12147
12236
  break;
@@ -12225,63 +12314,39 @@ const _List = class _List extends PxElement {
12225
12314
  }
12226
12315
  }
12227
12316
  };
12228
- _List.nativeName = "div";
12229
- let List = _List;
12230
- if (!customElements.get("px-list")) {
12231
- customElements.define("px-list", List);
12232
- }
12233
- const styles$n = '.list-item{display:flex;gap:var(--px-spacing-xs-mobile);align-items:flex-start;font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l);color:var(--px-color-text-neutral-default)}.list-item[inverted]{color:var(--px-color-text-neutral-inverted)}:host([variant="ul"]) .list-item,:host([variant="ol"]) .list-item{display:list-item;margin-left:var(--px-spacing-default-mobile)}:host([variant="ul"]) .list-item{list-style-type:disc}:host([variant="ol"]) .list-item{counter-set:list-item var(--item-index, 0);list-style-type:decimal}@media only screen and (min-width: 48em){.list-item{gap:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 64.0625em){.list-item{gap:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 90.0625em){.list-item{gap:var(--px-spacing-xs-desktop)}}';
12234
- const styleSheet$k = new CSSStyleSheet();
12235
- styleSheet$k.replaceSync(styles$n);
12236
- const _ListItem = class _ListItem extends PxElement {
12237
- template() {
12238
- return `
12239
- <div class="list-item" role="listitem">
12240
- <slot name="icon"></slot>
12241
- <slot name="label"></slot>
12242
- </div>
12243
- `;
12244
- }
12245
- constructor() {
12246
- super(styleSheet$k);
12247
- this.shadowRoot.innerHTML = this.template();
12248
- }
12249
- static get observedAttributes() {
12250
- return ["inverted"];
12317
+ _List_instances = new WeakSet();
12318
+ syncChildren_fn = function() {
12319
+ __privateMethod(this, _List_instances, applyInverted_fn2).call(this);
12320
+ __privateMethod(this, _List_instances, applyVariant_fn).call(this, this.getAttribute("variant"));
12321
+ };
12322
+ applyInverted_fn2 = function() {
12323
+ var _a;
12324
+ const on = this.hasAttribute("inverted");
12325
+ for (let i = 0; i < this.$children.length; i++) {
12326
+ this.$children[i].toggleAttribute("inverted", on);
12251
12327
  }
12252
- // TODO: factorize code
12253
- attributeChangedCallback(attrName, oldValue, newValue) {
12254
- if (oldValue !== newValue) {
12255
- switch (attrName) {
12256
- case "inverted":
12257
- for (let i = 0; i < this.$children.length; i++) {
12258
- if (!this.$children[i].hasAttribute("inverted")) {
12259
- this.$children[i].toggleAttribute("inverted");
12260
- }
12261
- }
12262
- this.$el.toggleAttribute("inverted", newValue !== null);
12263
- break;
12328
+ (_a = this.$el) == null ? void 0 : _a.toggleAttribute("inverted", on);
12329
+ };
12330
+ applyVariant_fn = function(newValue) {
12331
+ for (let i = 0; i < this.$children.length; i++) {
12332
+ const child = this.$children[i];
12333
+ if (newValue !== null) {
12334
+ child.setAttribute("variant", newValue);
12335
+ if (newValue === "ol") {
12336
+ child.style.setProperty("--item-index", String(i + 1));
12337
+ } else {
12338
+ child.style.removeProperty("--item-index");
12264
12339
  }
12265
- }
12266
- }
12267
- get $children() {
12268
- return this.querySelectorAll("px-list-item > *");
12269
- }
12270
- get inverted() {
12271
- return this.hasAttribute("inverted");
12272
- }
12273
- set inverted(value) {
12274
- if (value) {
12275
- this.setAttribute("inverted", "");
12276
12340
  } else {
12277
- this.removeAttribute("inverted");
12341
+ child.removeAttribute("variant");
12342
+ child.style.removeProperty("--item-index");
12278
12343
  }
12279
12344
  }
12280
12345
  };
12281
- _ListItem.nativeName = "div";
12282
- let ListItem = _ListItem;
12283
- if (!customElements.get("px-list-item")) {
12284
- customElements.define("px-list-item", ListItem);
12346
+ _List.nativeName = "div";
12347
+ let List = _List;
12348
+ if (!customElements.get("px-list")) {
12349
+ customElements.define("px-list", List);
12285
12350
  }
12286
12351
  class MDDCloser extends HTMLElement {
12287
12352
  constructor() {
@@ -12791,14 +12856,11 @@ class Modal extends HTMLElement {
12791
12856
  if (this.hasAttribute("open")) {
12792
12857
  this.show();
12793
12858
  }
12794
- if (this.hasAttribute("closedby")) {
12795
- this.addCloseListener(this.getAttribute("closedby"));
12796
- }
12797
12859
  if (this.hasAttribute("openedby")) {
12798
12860
  this.addOpenListener();
12799
12861
  }
12800
- if (this.hasAttribute("media-src")) {
12801
- this.updateMediaSrc(this.getAttribute("media-src"));
12862
+ if (this.hasAttribute("closedby")) {
12863
+ this.addCloseListener(this.getAttribute("closedby"));
12802
12864
  }
12803
12865
  this.toggleDescriptionVisibility();
12804
12866
  (_a = this.$slotDescription) == null ? void 0 : _a.addEventListener(
@@ -12817,7 +12879,9 @@ class Modal extends HTMLElement {
12817
12879
  attributeChangedCallback(attrName, oldValue, newValue) {
12818
12880
  switch (attrName) {
12819
12881
  case "open":
12820
- this.handleOpenChange();
12882
+ if (this.isConnected) {
12883
+ this.handleOpenChange();
12884
+ }
12821
12885
  break;
12822
12886
  case "status":
12823
12887
  this.handleStatusChange(oldValue, newValue);
@@ -12826,10 +12890,14 @@ class Modal extends HTMLElement {
12826
12890
  this.updateMediaSrc(newValue);
12827
12891
  break;
12828
12892
  case "openedby":
12829
- this.addOpenListener();
12893
+ if (this.isConnected) {
12894
+ this.addOpenListener();
12895
+ }
12830
12896
  break;
12831
12897
  case "closedby":
12832
- this.addCloseListener(newValue);
12898
+ if (this.isConnected) {
12899
+ this.addCloseListener(newValue);
12900
+ }
12833
12901
  break;
12834
12902
  case "id":
12835
12903
  this.addEventListenersToCommandButtons();
@@ -13609,14 +13677,10 @@ class SelectableBoxCheckbox extends WithExtraAttributes {
13609
13677
  }
13610
13678
  connectedCallback() {
13611
13679
  this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
13612
- if (this.name) this.$checkbox.setAttribute("name", this.name);
13613
- if (this.value) this.$checkbox.setAttribute("value", this.value);
13614
13680
  this.role = "checkbox";
13615
13681
  if (this.internals) {
13616
13682
  this.internals.role = "checkbox";
13617
- this.internals.ariaChecked = `${this.checked}`;
13618
13683
  }
13619
- this.ariaChecked = `${this.checked}`;
13620
13684
  this.tabIndex = 0;
13621
13685
  this.toggleFooterVisibility();
13622
13686
  this.$slotFooter.addEventListener(
@@ -13627,9 +13691,6 @@ class SelectableBoxCheckbox extends WithExtraAttributes {
13627
13691
  this.addEventListener("mouseout", this.removeHoverAttribute);
13628
13692
  this.addEventListener("keypress", this.setKeypressEvent);
13629
13693
  this.addEventListener("click", this.setClickEvent);
13630
- if (this.hasAttribute("checked")) {
13631
- this.checked = true;
13632
- }
13633
13694
  }
13634
13695
  static get observedAttributes() {
13635
13696
  return [
@@ -13886,14 +13947,10 @@ class SelectableBoxRadio extends WithExtraAttributes {
13886
13947
  connectedCallback() {
13887
13948
  var _a;
13888
13949
  this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
13889
- if (this.name) this.$radio.setAttribute("name", this.name);
13890
- if (this.value) this.$radio.setAttribute("value", this.value);
13891
13950
  this.role = "radio";
13892
13951
  if (this.internals) {
13893
13952
  this.internals.role = "radio";
13894
- this.internals.ariaChecked = `${this.checked}`;
13895
13953
  }
13896
- this.ariaChecked = `${this.checked}`;
13897
13954
  this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.querySelector("px-selectable-box-radio")) === this ? 0 : -1;
13898
13955
  this.toggleFooterVisibility();
13899
13956
  this.$slotFooter.addEventListener(
@@ -13904,9 +13961,6 @@ class SelectableBoxRadio extends WithExtraAttributes {
13904
13961
  this.addEventListener("mouseout", this.removeHoverAttribute);
13905
13962
  this.addEventListener("keypress", this.setKeypressEvent);
13906
13963
  this.addEventListener("click", this.setClickEvent);
13907
- if (this.hasAttribute("checked")) {
13908
- this.checked = true;
13909
- }
13910
13964
  }
13911
13965
  static get observedAttributes() {
13912
13966
  return [
@@ -15166,7 +15220,6 @@ class Tabs extends HTMLElement {
15166
15220
  super();
15167
15221
  __privateAdd(this, _Tabs_instances);
15168
15222
  this._label = `tabs-${Math.random().toString(36).substring(2, 15)}`;
15169
- this.tabsConnected = 0;
15170
15223
  this.template = () => `
15171
15224
  <div id="container">
15172
15225
  <div id="tab-container">
@@ -15186,7 +15239,7 @@ class Tabs extends HTMLElement {
15186
15239
  </div>
15187
15240
  `;
15188
15241
  this.handleNextPreviousDisplay = () => {
15189
- if (this.allTabsConnected() && this.$prefixButton && this.$suffixButton) {
15242
+ if (this.$prefixButton && this.$suffixButton) {
15190
15243
  this.$prefixButton.style.display = this.shouldDisplayScrollLeftButton() ? "" : "none";
15191
15244
  this.$suffixButton.style.display = this.shouldDisplayScrollRightButton() ? "" : "none";
15192
15245
  }
@@ -15233,9 +15286,8 @@ class Tabs extends HTMLElement {
15233
15286
  }
15234
15287
  connectedCallback() {
15235
15288
  var _a, _b;
15236
- this.shadowRoot.querySelector("#tablist").setAttribute("aria-labelledby", this._label);
15237
- if (this.getAttribute("label")) {
15238
- this.label = this.getAttribute("label");
15289
+ if (!this.$tabList.hasAttribute("aria-labelledby")) {
15290
+ this.$tabList.setAttribute("aria-labelledby", this._label);
15239
15291
  }
15240
15292
  this.role = "tablist";
15241
15293
  if (this.internals) {
@@ -15262,15 +15314,13 @@ class Tabs extends HTMLElement {
15262
15314
  }
15263
15315
  );
15264
15316
  this.addEventListener(TAB_CONNECTED_EVENT, () => {
15265
- this.tabsConnected++;
15266
15317
  this.handleNextPreviousDisplay();
15267
- if (this.allTabsConnected() && this.inverted) {
15318
+ if (this.inverted) {
15268
15319
  __privateMethod(this, _Tabs_instances, handleInverted_fn).call(this, this.getAttribute("inverted"));
15269
15320
  }
15270
15321
  });
15271
- if (this.allTabsConnected()) {
15272
- __privateMethod(this, _Tabs_instances, handleInverted_fn).call(this, this.getAttribute("inverted"));
15273
- }
15322
+ this.handleNextPreviousDisplay();
15323
+ __privateMethod(this, _Tabs_instances, handleInverted_fn).call(this, this.getAttribute("inverted"));
15274
15324
  this.addEventListener("keydown", (event) => {
15275
15325
  var _a2, _b2;
15276
15326
  if ((event.key === "ArrowRight" || event.key === "ArrowLeft") && ((_b2 = (_a2 = document.activeElement) == null ? void 0 : _a2.localName) == null ? void 0 : _b2.endsWith("-tab"))) {
@@ -15311,11 +15361,8 @@ class Tabs extends HTMLElement {
15311
15361
  }
15312
15362
  this.$activePanel.selected = true;
15313
15363
  }
15314
- allTabsConnected() {
15315
- return this.tabsConnected === this.querySelectorAll('[slot="tabs"]').length || [...this.$tabs].every((tab) => tab.isConnected);
15316
- }
15317
15364
  shouldDisplayScrollRightButton() {
15318
- return this.allTabsConnected() && this.$tabList.scrollWidth > this.$tabList.clientWidth && this.$tabList.scrollWidth - this.$tabList.scrollLeft !== this.$tabList.clientWidth;
15365
+ return this.$tabList.scrollWidth > this.$tabList.clientWidth && this.$tabList.scrollWidth - this.$tabList.scrollLeft !== this.$tabList.clientWidth;
15319
15366
  }
15320
15367
  shouldDisplayScrollLeftButton() {
15321
15368
  return this.$tabList.scrollLeft > 0;
@@ -16916,67 +16963,10 @@ if (!customElements.get("px-tile-switch")) {
16916
16963
  customElements.define("px-tile-switch", TileSwitch);
16917
16964
  }
16918
16965
  const styles$1 = ".timeline{list-style:none;margin:0;padding:0}";
16919
- const styleSheet$1 = new CSSStyleSheet();
16920
- styleSheet$1.replaceSync(styles$1);
16921
- class Timeline extends HTMLElement {
16922
- template() {
16923
- return `
16924
- <ol class="timeline" role="list">
16925
- <slot></slot>
16926
- </ol>
16927
- `;
16928
- }
16929
- constructor() {
16930
- super();
16931
- this.attachShadow({ mode: "open" });
16932
- this.shadowRoot.innerHTML = this.template();
16933
- this.shadowRoot.adoptedStyleSheets = [styleSheet$1];
16934
- }
16935
- static get observedAttributes() {
16936
- return ["inverted"];
16937
- }
16938
- connectedCallback() {
16939
- this.configureChildren();
16940
- }
16941
- attributeChangedCallback(attrName, oldValue, newValue) {
16942
- if (oldValue !== newValue) {
16943
- switch (attrName) {
16944
- case "inverted":
16945
- for (let i = 0; i < this.$children.length; i++) {
16946
- this.$children[i].toggleAttribute("inverted");
16947
- }
16948
- break;
16949
- }
16950
- }
16951
- }
16952
- configureChildren() {
16953
- const lastChild = this.$children[this.$children.length - 1];
16954
- if (lastChild && !lastChild.hasAttribute("lastchild")) {
16955
- lastChild.setAttribute("lastchild", "");
16956
- }
16957
- for (let i = 0; i < this.$children.length; i++) {
16958
- this.$children[i].setAttribute("item", `${i + 1}`);
16959
- }
16960
- }
16961
- get $el() {
16962
- return this.shadowRoot.querySelector(".timeline");
16963
- }
16964
- get $children() {
16965
- return this.querySelectorAll("px-timeline-item");
16966
- }
16967
- get inverted() {
16968
- return this.getAttribute("inverted");
16969
- }
16970
- set inverted(value) {
16971
- this.setAttribute("inverted", value);
16972
- }
16973
- }
16974
- if (!customElements.get("px-timeline")) {
16975
- customElements.define("px-timeline", Timeline);
16976
- }
16977
16966
  const styles = '.timeline-item{display:flex;gap:var(--px-spacing-default-mobile);font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l)}.indicator-area{position:relative}.indicator-area:before{display:block;content:"";position:absolute;top:26px;left:12px;width:var(--px-size-border-m);height:calc(100% - 26px);background:var(--px-color-border-main-default)}.indicator-area .indicator{display:flex;align-items:center;justify-content:center;text-align:center;width:26px;height:26px;font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-m-mobile);color:var(--px-color-text-neutral-default);border-radius:var(--px-radius-pill);background:var(--px-color-background-container-default-default)}.content-area{display:flex;flex-direction:column;margin-bottom:var(--px-padding-m-mobile);gap:var(--px-spacing-xs-mobile)}.content-area ::slotted([slot="title"]){font-weight:var(--px-font-weight-title);font-size:var(--px-text-size-label-l-mobile);color:var(--px-color-text-neutral-default)}.content-area ::slotted([slot="content"]){font-weight:var(--px-font-weight-body);font-size:var(--px-text-size-body-m-mobile);color:var(--px-color-text-dimmed-default)}:host([lastchild]) .indicator-area:before{display:none}:host([lastchild]) .content-area{margin-bottom:0}:host([inverted]) .indicator-area:before{background:var(--px-color-border-main-inverted)}:host([inverted]) .indicator{color:var(--px-color-text-neutral-inverted);background:var(--px-color-background-container-default-inverted)}:host([inverted]) .content-area ::slotted([slot="title"]){color:var(--px-color-text-neutral-inverted)}:host([inverted]) .content-area ::slotted([slot="content"]){color:var(--px-color-text-dimmed-inverted)}@media only screen and (min-width: 768px){.timeline-item{gap:var(--px-spacing-default-tablet)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-tablet)}.content-area{margin-bottom:var(--px-padding-m-tablet);gap:var(--px-spacing-xs-tablet)}.content-area ::slotted([slot="title"]){font-size:var(--px-text-size-label-l-tablet)}.content-area ::slotted([slot="content"]){font-size:var(--px-text-size-body-m-tablet)}}@media only screen and (min-width: 1025px){.timeline-item{gap:var(--px-spacing-default-laptop)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-laptop)}.content-area{margin-bottom:var(--px-padding-m-laptop)}.content-area ::slotted([slot="title"]){font-size:var(--px-text-size-label-l-laptop)}.content-area ::slotted([slot="content"]){font-size:var(--px-text-size-body-m-laptop)}}@media only screen and (min-width: 90.0625em){.timeline-item{gap:var(--px-spacing-default-desktop)}.indicator-area .indicator{font-size:var(--px-text-size-label-m-desktop)}.content-area{margin-bottom:var(--px-padding-m-desktop)}.content-area ::slotted([slot="title"]){font-size:var(--px-text-size-label-l-desktop)}.content-area ::slotted([slot="content"]){font-size:var(--px-text-size-body-m-desktop)}}';
16978
- const styleSheet = new CSSStyleSheet();
16979
- styleSheet.replaceSync(styles);
16967
+ const styleSheet$1 = new CSSStyleSheet();
16968
+ styleSheet$1.replaceSync(styles);
16969
+ const TIMELINE_ITEM_CONNECTED_EVENT = "px-timeline-item-connected";
16980
16970
  let item = "1";
16981
16971
  class TimelineItem extends HTMLElement {
16982
16972
  template() {
@@ -16996,7 +16986,15 @@ class TimelineItem extends HTMLElement {
16996
16986
  super();
16997
16987
  this.attachShadow({ mode: "open" });
16998
16988
  this.shadowRoot.innerHTML = this.template();
16999
- this.shadowRoot.adoptedStyleSheets = [styleSheet];
16989
+ this.shadowRoot.adoptedStyleSheets = [styleSheet$1];
16990
+ }
16991
+ connectedCallback() {
16992
+ this.dispatchEvent(
16993
+ new CustomEvent(TIMELINE_ITEM_CONNECTED_EVENT, {
16994
+ bubbles: true,
16995
+ composed: true
16996
+ })
16997
+ );
17000
16998
  }
17001
16999
  static get observedAttributes() {
17002
17000
  return ["inverted", "lastchild", "item"];
@@ -17048,6 +17046,77 @@ class TimelineItem extends HTMLElement {
17048
17046
  if (!customElements.get("px-timeline-item")) {
17049
17047
  customElements.define("px-timeline-item", TimelineItem);
17050
17048
  }
17049
+ const styleSheet = new CSSStyleSheet();
17050
+ styleSheet.replaceSync(styles$1);
17051
+ class Timeline extends HTMLElement {
17052
+ constructor() {
17053
+ super();
17054
+ __privateAdd(this, _Timeline_instances);
17055
+ this.attachShadow({ mode: "open" });
17056
+ this.shadowRoot.innerHTML = this.template();
17057
+ this.shadowRoot.adoptedStyleSheets = [styleSheet];
17058
+ }
17059
+ template() {
17060
+ return `
17061
+ <ol class="timeline" role="list">
17062
+ <slot></slot>
17063
+ </ol>
17064
+ `;
17065
+ }
17066
+ static get observedAttributes() {
17067
+ return ["inverted"];
17068
+ }
17069
+ connectedCallback() {
17070
+ this.addEventListener(TIMELINE_ITEM_CONNECTED_EVENT, () => {
17071
+ this.configureChildren();
17072
+ __privateMethod(this, _Timeline_instances, applyInverted_fn3).call(this);
17073
+ });
17074
+ this.configureChildren();
17075
+ __privateMethod(this, _Timeline_instances, applyInverted_fn3).call(this);
17076
+ }
17077
+ attributeChangedCallback(attrName, oldValue, newValue) {
17078
+ if (oldValue !== newValue) {
17079
+ switch (attrName) {
17080
+ case "inverted":
17081
+ if (this.isConnected) {
17082
+ __privateMethod(this, _Timeline_instances, applyInverted_fn3).call(this);
17083
+ }
17084
+ break;
17085
+ }
17086
+ }
17087
+ }
17088
+ configureChildren() {
17089
+ const lastChild = this.$children[this.$children.length - 1];
17090
+ if (lastChild && !lastChild.hasAttribute("lastchild")) {
17091
+ lastChild.setAttribute("lastchild", "");
17092
+ }
17093
+ for (let i = 0; i < this.$children.length; i++) {
17094
+ this.$children[i].setAttribute("item", `${i + 1}`);
17095
+ }
17096
+ }
17097
+ get $el() {
17098
+ return this.shadowRoot.querySelector(".timeline");
17099
+ }
17100
+ get $children() {
17101
+ return this.querySelectorAll("px-timeline-item");
17102
+ }
17103
+ get inverted() {
17104
+ return this.getAttribute("inverted");
17105
+ }
17106
+ set inverted(value) {
17107
+ this.setAttribute("inverted", value);
17108
+ }
17109
+ }
17110
+ _Timeline_instances = new WeakSet();
17111
+ applyInverted_fn3 = function() {
17112
+ const on = this.hasAttribute("inverted");
17113
+ for (let i = 0; i < this.$children.length; i++) {
17114
+ this.$children[i].toggleAttribute("inverted", on);
17115
+ }
17116
+ };
17117
+ if (!customElements.get("px-timeline")) {
17118
+ customElements.define("px-timeline", Timeline);
17119
+ }
17051
17120
  const typographyCss = ":host{font-family:var(--px-font-family);font-weight:var(--px-font-weight-body);color:var(--px-color-text-neutral-default)}::slotted(ul),::slotted(ol){padding:0;margin:0 0 var(--px-spacing-xs-mobile) var(--px-spacing-default-mobile)}::slotted(blockquote){margin-bottom:var(--px-spacing-xs-mobile)}::slotted(b),::slotted(strong){font-weight:var(--px-font-weight-title)}::slotted(address){font-style:normal;font-weight:var(--px-font-weight-body)}::slotted(img){max-width:100%;height:auto}@media only screen and (min-width: 48em){::slotted(ul),::slotted(ol){margin:0 0 var(--px-spacing-xs-tablet) var(--px-spacing-default-tablet)}::slotted(blockquote){margin-bottom:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 64.0625em){::slotted(ul),::slotted(ol){margin:0 0 var(--px-spacing-xs-laptop) var(--px-spacing-default-laptop)}::slotted(blockquote){margin-bottom:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 90.0625em){::slotted(ul),::slotted(ol){margin:0 0 var(--px-spacing-xs-desktop) var(--px-spacing-default-desktop)}::slotted(blockquote){margin-bottom:var(--px-spacing-xs-desktop)}}:host([inverted]){color:var(--px-color-text-neutral-inverted)}";
17052
17121
  const lightStyles = ".li{margin-bottom:var(--px-padding-xs-mobile)}@media only screen and (min-width: 48em){.li{margin-bottom:var(--px-padding-xs-tablet)}}@media only screen and (min-width: 64.0625em){.li{margin-bottom:var(--px-padding-xs-laptop)}}@media only screen and (min-width: 90.0625em){.li{margin-bottom:var(--px-padding-xs-desktop)}}";
17053
17122
  const typographyStyles = new CSSStyleSheet();
@@ -17101,11 +17170,13 @@ export {
17101
17170
  AgGridTableThContent,
17102
17171
  AppleSeed,
17103
17172
  AttributeBreakpointHandlerDelegate,
17173
+ BREADCRUMB_ITEM_CONNECTED_EVENT,
17104
17174
  Banner,
17105
17175
  Breadcrumb,
17106
17176
  BreadcrumbItem,
17107
17177
  Button,
17108
17178
  ButtonIcon,
17179
+ CAROUSEL_ITEM_CONNECTED_EVENT,
17109
17180
  Card,
17110
17181
  Carousel,
17111
17182
  CarouselItem,
@@ -17142,6 +17213,7 @@ export {
17142
17213
  Image,
17143
17214
  Input,
17144
17215
  InputState,
17216
+ LIST_ITEM_CONNECTED_EVENT,
17145
17217
  Link,
17146
17218
  List,
17147
17219
  ListItem,
@@ -17177,6 +17249,7 @@ export {
17177
17249
  Status,
17178
17250
  StatusCard,
17179
17251
  Switch,
17252
+ TIMELINE_ITEM_CONNECTED_EVENT,
17180
17253
  Table,
17181
17254
  Tag,
17182
17255
  Tbody,