@proximus/lavender 1.4.7-alpha.3 → 1.4.7-alpha.5

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.
@@ -881,43 +881,43 @@ function transferAccessibilityAttributes(sourceElement, targetElement, applyLabe
881
881
  sourceElement.setAttribute("aria-labelledby", id);
882
882
  }
883
883
  }
884
- function cssTokenBreakpoints(attributeName, selector, attributeValues, cssPropertyPrefix = "", generatedCssPropertyName) {
884
+ function cssTokenBreakpoints(attributeName, selector, attributeValues, cssPropertyPrefix = "", generatedCssPropertyName, selectorAttributeName = attributeName) {
885
885
  const stylesheet2 = new CSSStyleSheet();
886
886
  const styles2 = attributeValues.reduce(
887
887
  (prev, attributeValue) => prev + `
888
- ${selector(attributeName, attributeValue)} {
888
+ ${selector(selectorAttributeName, attributeValue)} {
889
889
  ${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop);
890
890
  ${generatedCssPropertyName ? `${generatedCssPropertyName}:var(--${cssPropertyPrefix}-${attributeValue}-desktop)` : ""}
891
891
  }
892
892
  /* Mobile only - max 767px */
893
893
  @media only screen and (max-width: 47.938em) {
894
- ${selector(attributeName, attributeValue)} {
894
+ ${selector(selectorAttributeName, attributeValue)} {
895
895
  ${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-mobile);
896
896
  ${generatedCssPropertyName ? `${generatedCssPropertyName}: var(--${cssPropertyPrefix}-${attributeValue}-mobile)` : ""}
897
897
  }
898
898
  }
899
- ${selector(attributeName, attributeValue, "mobile")} {
899
+ ${selector(selectorAttributeName, attributeValue, "mobile")} {
900
900
  /* Mobile only - max 767px */
901
901
  @media only screen and (max-width: 47.938em) {
902
902
  ${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-mobile) !important;
903
903
  ${generatedCssPropertyName ? `${generatedCssPropertyName}: var(--${cssPropertyPrefix}-${attributeValue}-mobile)` : ""}
904
904
  }
905
905
  }
906
- ${selector(attributeName, attributeValue, "tablet")} {
906
+ ${selector(selectorAttributeName, attributeValue, "tablet")} {
907
907
  /* Tablet - min 768px max 1024px */
908
908
  @media only screen and (min-width: 48em) and (max-width: 64em) {
909
909
  ${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop) !important;
910
910
  ${generatedCssPropertyName ? `${generatedCssPropertyName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop)` : ""}
911
911
  }
912
912
  }
913
- ${selector(attributeName, attributeValue, "laptop")} {
913
+ ${selector(selectorAttributeName, attributeValue, "laptop")} {
914
914
  /* Laptop - 1025px*/
915
915
  @media only screen and (min-width: 64.0625em) {
916
916
  ${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop) !important;
917
917
  ${generatedCssPropertyName ? `${generatedCssPropertyName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop)` : ""}
918
918
  }
919
919
  }
920
- ${selector(attributeName, attributeValue, "desktop")} {
920
+ ${selector(selectorAttributeName, attributeValue, "desktop")} {
921
921
  /* Desktop - 1025px*/
922
922
  @media only screen and (min-width: 64.0625em) {
923
923
  ${attributeName}: var(--${cssPropertyPrefix}-${attributeValue}-desktop) !important;
@@ -2270,7 +2270,7 @@ let Span = _Span;
2270
2270
  if (!customElements.get("px-span")) {
2271
2271
  customElements.define("px-span", Span);
2272
2272
  }
2273
- const containerCss = ':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)}@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}}';
2273
+ const containerCss = ':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}}';
2274
2274
  const containerStyles = new CSSStyleSheet();
2275
2275
  containerStyles.replaceSync(containerCss);
2276
2276
  const anchorSpacingValues = [
@@ -2279,6 +2279,20 @@ const anchorSpacingValues = [
2279
2279
  "has-ribbon",
2280
2280
  "neighbor-has-ribbon"
2281
2281
  ];
2282
+ const subgridRowsValues = [
2283
+ "1",
2284
+ "2",
2285
+ "3",
2286
+ "4",
2287
+ "5",
2288
+ "6",
2289
+ "7",
2290
+ "8",
2291
+ "9",
2292
+ "10",
2293
+ "11",
2294
+ "12"
2295
+ ];
2282
2296
  const attributeBreakpointCSSSelector$3 = (attributeName, attributeValue, device) => `:host([${attributeName}${device ? `--${device}` : ""}='${attributeValue}']) .container`;
2283
2297
  const paddingPrefix$1 = "px-padding";
2284
2298
  const containerBreakpoints = [
@@ -2326,9 +2340,17 @@ const containerBreakpoints = [
2326
2340
  paddingValues,
2327
2341
  paddingPrefix$1,
2328
2342
  "--container-padding-left"
2343
+ ),
2344
+ cssTokenBreakpoints(
2345
+ "gap",
2346
+ attributeBreakpointCSSSelector$3,
2347
+ gapValues,
2348
+ "px-spacing",
2349
+ void 0,
2350
+ "subgrid-gap"
2329
2351
  )
2330
2352
  ];
2331
- const _Container = class _Container extends VerticallyExtendedElement {
2353
+ const _Container = class _Container extends WithExtraAttributes {
2332
2354
  constructor() {
2333
2355
  super(containerStyles, ...containerBreakpoints);
2334
2356
  this.template = () => `<div class="container">
@@ -2339,6 +2361,7 @@ const _Container = class _Container extends VerticallyExtendedElement {
2339
2361
  </div>`;
2340
2362
  this._bgObserver = null;
2341
2363
  this._isInViewport = false;
2364
+ this.contentObserver = null;
2342
2365
  this.shadowRoot.innerHTML = this.template();
2343
2366
  }
2344
2367
  static get observedAttributes() {
@@ -2372,11 +2395,11 @@ const _Container = class _Container extends VerticallyExtendedElement {
2372
2395
  "box-shadow",
2373
2396
  "anchor-offset",
2374
2397
  "anchor-spacing",
2375
- "inverted"
2398
+ "inverted",
2399
+ "subgrid-rows"
2376
2400
  ];
2377
2401
  }
2378
2402
  connectedCallback() {
2379
- super.connectedCallback();
2380
2403
  if (!this.padding) {
2381
2404
  this.padding = "m";
2382
2405
  }
@@ -2412,9 +2435,9 @@ const _Container = class _Container extends VerticallyExtendedElement {
2412
2435
  this._bgObserver.observe(this.$el);
2413
2436
  }
2414
2437
  disconnectedCallback() {
2415
- var _a;
2438
+ var _a, _b;
2416
2439
  (_a = this._bgObserver) == null ? void 0 : _a.disconnect();
2417
- this.contentObserver.disconnect();
2440
+ (_b = this.contentObserver) == null ? void 0 : _b.disconnect();
2418
2441
  }
2419
2442
  attributeChangedCallback(attrName, oldValue, newValue) {
2420
2443
  if (oldValue !== newValue) {
@@ -2492,6 +2515,14 @@ const _Container = class _Container extends VerticallyExtendedElement {
2492
2515
  case "anchor-spacing":
2493
2516
  this.updateAnchorSpacing(oldValue, newValue, anchorSpacingValues);
2494
2517
  break;
2518
+ case "subgrid-rows":
2519
+ this.updateSubgridRows(
2520
+ attrName,
2521
+ oldValue,
2522
+ newValue,
2523
+ subgridRowsValues
2524
+ );
2525
+ break;
2495
2526
  default:
2496
2527
  super.attributeChangedCallback(attrName, oldValue, newValue);
2497
2528
  break;
@@ -2673,6 +2704,19 @@ const _Container = class _Container extends VerticallyExtendedElement {
2673
2704
  updateAnchorSpacingStyle(oldValue);
2674
2705
  updateAnchorSpacingStyle(newValue);
2675
2706
  }
2707
+ updateSubgridRows(attrName, oldValue, newValue, attrValues) {
2708
+ if (!checkName(attrValues, newValue)) {
2709
+ log(
2710
+ `${newValue} is not an allowed ${attrName} value for ${this.tagName.toLowerCase()}`
2711
+ );
2712
+ } else {
2713
+ this.style.setProperty(`--${attrName}`, newValue);
2714
+ }
2715
+ }
2716
+ get $el() {
2717
+ var _a;
2718
+ return (_a = this == null ? void 0 : this.shadowRoot) == null ? void 0 : _a.querySelector(".container");
2719
+ }
2676
2720
  get $slotAnchor() {
2677
2721
  return this.querySelector('[slot^="anchor"]');
2678
2722
  }
@@ -3013,10 +3057,44 @@ const _Container = class _Container extends VerticallyExtendedElement {
3013
3057
  this.setAttribute("anchor-spacing", value);
3014
3058
  }
3015
3059
  get inverted() {
3016
- return this.getAttribute("inverted");
3060
+ return this.hasAttribute("inverted");
3017
3061
  }
3018
3062
  set inverted(value) {
3019
- this.setAttribute("inverted", value);
3063
+ if (value) {
3064
+ this.setAttribute("inverted", "");
3065
+ } else {
3066
+ this.removeAttribute("inverted");
3067
+ }
3068
+ }
3069
+ get subgridRows() {
3070
+ return this.getAttribute("subgrid-rows");
3071
+ }
3072
+ set subgridRows(value) {
3073
+ this.setAttribute("subgrid-rows", value);
3074
+ }
3075
+ get subgridGap() {
3076
+ return this.getAttribute("subgrid-gap");
3077
+ }
3078
+ set subgridGap(value) {
3079
+ this.setAttribute("subgrid-gap", value);
3080
+ }
3081
+ get subgridGapMobile() {
3082
+ return this.getAttribute("subgrid-gap--mobile");
3083
+ }
3084
+ set subgridGapMobile(value) {
3085
+ this.setAttribute("subgrid-gap--mobile", value);
3086
+ }
3087
+ get subgridGapTablet() {
3088
+ return this.getAttribute("subgrid-gap--tablet");
3089
+ }
3090
+ set subgridGapTablet(value) {
3091
+ this.setAttribute("subgrid-gap--tablet", value);
3092
+ }
3093
+ get subgridGapLaptop() {
3094
+ return this.getAttribute("subgrid-gap--laptop");
3095
+ }
3096
+ set subgridGapLaptop(value) {
3097
+ this.setAttribute("subgrid-gap--laptop", value);
3020
3098
  }
3021
3099
  };
3022
3100
  _Container.nativeName = "div";
@@ -7795,7 +7873,7 @@ class CellRadio extends WithExtraAttributes {
7795
7873
  }
7796
7874
  connectedCallback() {
7797
7875
  var _a;
7798
- this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.firstElementChild) === this ? 0 : -1;
7876
+ this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.querySelector("px-cell-radio")) === this ? 0 : -1;
7799
7877
  this.role = "radio";
7800
7878
  if (this.internals) {
7801
7879
  this.internals.role = "radio";
@@ -9492,19 +9570,14 @@ class Drawer extends HTMLElement {
9492
9570
  connectedCallback() {
9493
9571
  var _a;
9494
9572
  this.toggleFooterVisibility = this.toggleFooterVisibility.bind(this);
9495
- if (!this.hasAttribute("showfrom")) {
9496
- this.setAttribute("showfrom", "bottom");
9573
+ if (this.$opener) {
9574
+ this.addOpenListener();
9497
9575
  }
9498
- if (this.hasAttribute("closedby")) {
9499
- const $closer = document.querySelector(
9500
- `#${this.getAttribute("closedby")}`
9501
- );
9502
- $closer == null ? void 0 : $closer.addEventListener("click", () => {
9503
- this.hide();
9504
- });
9576
+ if (this.$closer) {
9577
+ this.addCloseListener();
9505
9578
  }
9506
- if (this.hasAttribute("openedby")) {
9507
- this.addOpenListener();
9579
+ if (!this.hasAttribute("showfrom")) {
9580
+ this.setAttribute("showfrom", "bottom");
9508
9581
  }
9509
9582
  this.$closeButton.addEventListener("click", () => {
9510
9583
  this.hide();
@@ -9516,36 +9589,56 @@ class Drawer extends HTMLElement {
9516
9589
  );
9517
9590
  }
9518
9591
  static get observedAttributes() {
9519
- return ["open", "aria-label-close-button", "openedby"];
9592
+ return ["open", "aria-label-close-button", "openedby", "closedby"];
9520
9593
  }
9521
- attributeChangedCallback(name, oldValue, newValue) {
9594
+ attributeChangedCallback(attrName, oldValue, newValue) {
9522
9595
  var _a, _b, _c;
9523
- if (name === "open") {
9524
- if (newValue !== null) {
9525
- this.show();
9526
- } else {
9527
- this.hide();
9528
- }
9529
- } else if (name === "aria-label-close-button") {
9530
- if (!newValue) {
9531
- (_a = this.$closeButton) == null ? void 0 : _a.removeAttribute("aria-label");
9532
- } else {
9533
- (_c = (_b = this.$closeButton) == null ? void 0 : _b.setAttribute) == null ? void 0 : _c.call(
9534
- _b,
9535
- "aria-label",
9536
- newValue || "Close drawer"
9537
- );
9538
- }
9539
- } else if (name === "openedby") {
9540
- this.addOpenListener();
9596
+ switch (attrName) {
9597
+ case "open":
9598
+ if (newValue !== null) {
9599
+ this.show();
9600
+ } else {
9601
+ this.hide();
9602
+ }
9603
+ break;
9604
+ case "aria-label-close-button":
9605
+ if (!newValue) {
9606
+ (_a = this.$closeButton) == null ? void 0 : _a.removeAttribute("aria-label");
9607
+ } else {
9608
+ (_c = (_b = this.$closeButton) == null ? void 0 : _b.setAttribute) == null ? void 0 : _c.call(
9609
+ _b,
9610
+ "aria-label",
9611
+ newValue || "Close drawer"
9612
+ );
9613
+ }
9614
+ break;
9615
+ case "openedby":
9616
+ if (newValue !== oldValue) {
9617
+ if (oldValue) {
9618
+ const oldOpener = document.querySelector(`#${oldValue}`);
9619
+ oldOpener == null ? void 0 : oldOpener.removeEventListener("click", () => this.show());
9620
+ }
9621
+ this.addOpenListener();
9622
+ }
9623
+ break;
9624
+ case "closedby":
9625
+ this.addCloseListener();
9626
+ break;
9541
9627
  }
9542
9628
  }
9543
9629
  disconnectedCallback() {
9544
- var _a;
9630
+ var _a, _b;
9545
9631
  (_a = this.$slotFooter) == null ? void 0 : _a.removeEventListener(
9546
9632
  "slotchange",
9547
9633
  this.toggleFooterVisibility
9548
9634
  );
9635
+ (_b = this.observer) == null ? void 0 : _b.disconnect();
9636
+ if (this.$opener) {
9637
+ this.$opener.removeEventListener("click", () => this.show());
9638
+ }
9639
+ if (this.$closer) {
9640
+ this.$closer.removeEventListener("click", () => this.hide());
9641
+ }
9549
9642
  }
9550
9643
  show() {
9551
9644
  var _a, _b;
@@ -9571,15 +9664,41 @@ class Drawer extends HTMLElement {
9571
9664
  }
9572
9665
  }
9573
9666
  addOpenListener() {
9574
- var _a, _b, _c;
9575
- if (((_a = this.$opener) == null ? void 0 : _a.getAttribute("data-has-opener")) !== "true") {
9576
- (_b = this.$opener) == null ? void 0 : _b.setAttribute("data-has-opener", "true");
9577
- (_c = this.$opener) == null ? void 0 : _c.addEventListener("click", () => this.show());
9667
+ if (this.$opener) {
9668
+ if (this.$opener.getAttribute("data-has-opener") !== "true") {
9669
+ this.$opener.setAttribute("data-has-opener", "true");
9670
+ this.$opener.addEventListener("click", () => this.show());
9671
+ }
9672
+ } else {
9673
+ this.observer = new MutationObserver(() => {
9674
+ if (this.$opener) {
9675
+ this.observer.disconnect();
9676
+ this.observer = null;
9677
+ this.addOpenListener();
9678
+ }
9679
+ });
9680
+ this.observer.observe(document.body, {
9681
+ childList: true,
9682
+ subtree: true
9683
+ });
9684
+ }
9685
+ }
9686
+ addCloseListener() {
9687
+ var _a;
9688
+ if (this.$closer) {
9689
+ (_a = this.$closer) == null ? void 0 : _a.addEventListener("click", () => {
9690
+ this.hide();
9691
+ });
9578
9692
  }
9579
9693
  }
9580
9694
  get $opener() {
9581
9695
  return document.querySelector(
9582
- `px-button#${this.getAttribute("openedby")}`
9696
+ `#${this.getAttribute("openedby")}`
9697
+ );
9698
+ }
9699
+ get $closer() {
9700
+ return document.querySelector(
9701
+ `#${this.getAttribute("closedby")}`
9583
9702
  );
9584
9703
  }
9585
9704
  get $closeButton() {
@@ -9609,10 +9728,10 @@ class Drawer extends HTMLElement {
9609
9728
  this.removeAttribute("open");
9610
9729
  }
9611
9730
  }
9612
- get ariaLabelCloseButton() {
9731
+ get AriaLabelCloseButton() {
9613
9732
  return this.getAttribute("aria-label-close-button");
9614
9733
  }
9615
- set ariaLabelCloseButton(value) {
9734
+ set AriaLabelCloseButton(value) {
9616
9735
  this.setAttribute("aria-label-close-button", value);
9617
9736
  }
9618
9737
  get openedby() {
@@ -9621,6 +9740,12 @@ class Drawer extends HTMLElement {
9621
9740
  set openedby(value) {
9622
9741
  this.setAttribute("openedby", value);
9623
9742
  }
9743
+ get closedby() {
9744
+ return this.getAttribute("closedby");
9745
+ }
9746
+ set closedby(value) {
9747
+ this.setAttribute("closedby", value);
9748
+ }
9624
9749
  }
9625
9750
  if (!customElements.get("px-drawer")) {
9626
9751
  customElements.define("px-drawer", Drawer);
@@ -12615,6 +12740,7 @@ class Modal extends HTMLElement {
12615
12740
  this.onOpenClick = () => this.show();
12616
12741
  this.onCloseClick = () => this.close();
12617
12742
  this.commandButtonCleanups = [];
12743
+ this.opener = null;
12618
12744
  this.openerElement = null;
12619
12745
  this.closerElement = null;
12620
12746
  this.template = `<dialog>
@@ -12819,12 +12945,29 @@ class Modal extends HTMLElement {
12819
12945
  addOpenListener() {
12820
12946
  var _a;
12821
12947
  this.removeOpenListener();
12822
- this.openerElement = this.$opener;
12823
- (_a = this.openerElement) == null ? void 0 : _a.addEventListener("click", this.onOpenClick);
12948
+ if (this.$opener) {
12949
+ this.openerElement = this.$opener;
12950
+ this.openerElement.addEventListener("click", this.onOpenClick);
12951
+ } else {
12952
+ (_a = this.opener) == null ? void 0 : _a.disconnect();
12953
+ this.opener = new MutationObserver(() => {
12954
+ if (this.$opener) {
12955
+ this.opener.disconnect();
12956
+ this.opener = null;
12957
+ this.addOpenListener();
12958
+ }
12959
+ });
12960
+ this.opener.observe(document.body, {
12961
+ childList: true,
12962
+ subtree: true
12963
+ });
12964
+ }
12824
12965
  }
12825
12966
  removeOpenListener() {
12826
- var _a;
12827
- (_a = this.openerElement) == null ? void 0 : _a.removeEventListener("click", this.onOpenClick);
12967
+ var _a, _b;
12968
+ (_a = this.opener) == null ? void 0 : _a.disconnect();
12969
+ this.opener = null;
12970
+ (_b = this.openerElement) == null ? void 0 : _b.removeEventListener("click", this.onOpenClick);
12828
12971
  this.openerElement = null;
12829
12972
  }
12830
12973
  addCloseListener(value) {
@@ -13751,7 +13894,7 @@ class SelectableBoxRadio extends WithExtraAttributes {
13751
13894
  this.internals.ariaChecked = `${this.checked}`;
13752
13895
  }
13753
13896
  this.ariaChecked = `${this.checked}`;
13754
- this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.firstElementChild) === this ? 0 : -1;
13897
+ this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.querySelector("px-selectable-box-radio")) === this ? 0 : -1;
13755
13898
  this.toggleFooterVisibility();
13756
13899
  this.$slotFooter.addEventListener(
13757
13900
  "slotchange",
@@ -16098,7 +16241,7 @@ class TileRadio extends WithExtraAttributes {
16098
16241
  this.internals.ariaChecked = `${this.checked}`;
16099
16242
  }
16100
16243
  this.ariaChecked = `${this.checked}`;
16101
- this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.firstElementChild) === this ? 0 : -1;
16244
+ this.tabIndex = ((_a = this.parentElement) == null ? void 0 : _a.querySelector("px-tile-radio")) === this ? 0 : -1;
16102
16245
  if (this.$slotPrefix) {
16103
16246
  const prefixImg = this.querySelector('px-img[slot="prefix"]');
16104
16247
  if (prefixImg) {
@@ -17137,6 +17280,7 @@ export {
17137
17280
  statusStateValues,
17138
17281
  statusValues,
17139
17282
  styleSheet$A as styleSheet,
17283
+ subgridRowsValues,
17140
17284
  suffixButtonIconVariantValues,
17141
17285
  textalignValues,
17142
17286
  tileBackgroundColorValues,