@proximus/lavender 1.4.7-alpha.8 → 1.4.7-beta.1

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.
@@ -3774,6 +3774,7 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
3774
3774
  <slot name="title"></slot>
3775
3775
  <slot name="description"></slot>
3776
3776
  <slot name="content"></slot>
3777
+
3777
3778
  </div>
3778
3779
  </px-container>
3779
3780
  </px-grid>
@@ -3909,20 +3910,20 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
3909
3910
  }
3910
3911
  createGridding(value) {
3911
3912
  const breakpoints = [
3912
- { prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
3913
+ { prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
3913
3914
  {
3914
3915
  prop: "hasGriddingMobile",
3915
- gridAttr: "grid-cols--mobile",
3916
+ gridProp: "gridColsMobile",
3916
3917
  attr: "col-span--mobile"
3917
3918
  },
3918
3919
  {
3919
3920
  prop: "hasGriddingTablet",
3920
- gridAttr: "grid-cols--tablet",
3921
+ gridProp: "gridColsTablet",
3921
3922
  attr: "col-span--tablet"
3922
3923
  },
3923
3924
  {
3924
3925
  prop: "hasGriddingLaptop",
3925
- gridAttr: "grid-cols--laptop",
3926
+ gridProp: "gridColsLaptop",
3926
3927
  attr: "col-span--laptop"
3927
3928
  }
3928
3929
  ];
@@ -3930,16 +3931,16 @@ const _Banner = class _Banner extends VerticallyExtendedElement {
3930
3931
  "px-grid > px-container"
3931
3932
  );
3932
3933
  if (value !== null) {
3933
- breakpoints.forEach(({ prop, gridAttr, attr }) => {
3934
+ breakpoints.forEach(({ prop, gridProp, attr }) => {
3934
3935
  if (this[prop]) {
3935
- this.$grid.setAttribute(gridAttr, "3");
3936
- spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
3936
+ this.$grid[gridProp] = "3";
3937
+ spanElement.setAttribute(attr, "2");
3937
3938
  }
3938
3939
  });
3939
3940
  } else {
3940
- breakpoints.forEach(({ gridAttr, attr }) => {
3941
- this.$grid.setAttribute(gridAttr, "1");
3942
- spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
3941
+ breakpoints.forEach(({ gridProp, attr }) => {
3942
+ this.$grid[gridProp] = "1";
3943
+ spanElement.removeAttribute(attr);
3943
3944
  });
3944
3945
  }
3945
3946
  }
@@ -7001,7 +7002,7 @@ class CellSwitch extends WithExtraAttributes {
7001
7002
  return `
7002
7003
  <div class="cell-switch">
7003
7004
  <px-cell hoverable>
7004
- <px-switch slot="action-indicator" inert></px-switch>
7005
+ <px-switch slot="action-indicator" aria-hidden="true" tabindex="-1"></px-switch>
7005
7006
  <slot name="visual" slot="visual"></slot>
7006
7007
  <slot name="label" slot="label"></slot>
7007
7008
  <slot name="description" slot="description"></slot>
@@ -7895,7 +7896,7 @@ class CellRadio extends WithExtraAttributes {
7895
7896
  return `
7896
7897
  <div class="cell-radio">
7897
7898
  <px-cell hoverable>
7898
- <px-radio slot="prefix" inert></px-radio>
7899
+ <px-radio slot="prefix" aria-hidden="true" tabindex="-1"></px-radio>
7899
7900
  <slot name="visual" slot="visual"></slot>
7900
7901
  <slot name="label" slot="label"></slot>
7901
7902
  <slot name="description" slot="description"></slot>
@@ -9170,20 +9171,20 @@ const _ContentHeader = class _ContentHeader extends PxElement {
9170
9171
  }
9171
9172
  createGridding(value) {
9172
9173
  const breakpoints = [
9173
- { prop: "hasGridding", gridAttr: "grid-cols", attr: "col-span" },
9174
+ { prop: "hasGridding", gridProp: "gridCols", attr: "col-span" },
9174
9175
  {
9175
9176
  prop: "hasGriddingMobile",
9176
- gridAttr: "grid-cols--mobile",
9177
+ gridProp: "gridColsMobile",
9177
9178
  attr: "col-span--mobile"
9178
9179
  },
9179
9180
  {
9180
9181
  prop: "hasGriddingTablet",
9181
- gridAttr: "grid-cols--tablet",
9182
+ gridProp: "gridColsTablet",
9182
9183
  attr: "col-span--tablet"
9183
9184
  },
9184
9185
  {
9185
9186
  prop: "hasGriddingLaptop",
9186
- gridAttr: "grid-cols--laptop",
9187
+ gridProp: "gridColsLaptop",
9187
9188
  attr: "col-span--laptop"
9188
9189
  }
9189
9190
  ];
@@ -9191,16 +9192,16 @@ const _ContentHeader = class _ContentHeader extends PxElement {
9191
9192
  "px-grid > px-container"
9192
9193
  );
9193
9194
  if (value !== null) {
9194
- breakpoints.forEach(({ prop, gridAttr, attr }) => {
9195
+ breakpoints.forEach(({ prop, gridProp, attr }) => {
9195
9196
  if (this[prop]) {
9196
- this.$grid.setAttribute(gridAttr, "3");
9197
- spanElement == null ? void 0 : spanElement.setAttribute(attr, "2");
9197
+ this.$grid[gridProp] = "3";
9198
+ spanElement.setAttribute(attr, "2");
9198
9199
  }
9199
9200
  });
9200
9201
  } else {
9201
- breakpoints.forEach(({ gridAttr, attr }) => {
9202
- this.$grid.setAttribute(gridAttr, "1");
9203
- spanElement == null ? void 0 : spanElement.setAttribute(attr, "1");
9202
+ breakpoints.forEach(({ gridProp, attr }) => {
9203
+ this.$grid[gridProp] = "1";
9204
+ spanElement.removeAttribute(attr);
9204
9205
  });
9205
9206
  }
9206
9207
  }
@@ -13450,7 +13451,9 @@ const _Price = class _Price extends PxElement {
13450
13451
  });
13451
13452
  this.observer.observe(this, {
13452
13453
  childList: true,
13453
- subtree: true
13454
+ subtree: true,
13455
+ // By observing characterData, we ensure that any changes to the text content of the price element will trigger a rebuild of the price display, allowing it to update correctly in response to dynamic data changes.
13456
+ characterData: true
13454
13457
  });
13455
13458
  }
13456
13459
  attributeChangedCallback(attrName, oldValue, newValue) {
@@ -15219,7 +15222,6 @@ class Tabs extends HTMLElement {
15219
15222
  var _a;
15220
15223
  super();
15221
15224
  __privateAdd(this, _Tabs_instances);
15222
- this._label = `tabs-${Math.random().toString(36).substring(2, 15)}`;
15223
15225
  this.template = () => `
15224
15226
  <div id="container">
15225
15227
  <div id="tab-container">
@@ -15251,7 +15253,6 @@ class Tabs extends HTMLElement {
15251
15253
  }
15252
15254
  static get observedAttributes() {
15253
15255
  return [
15254
- "label",
15255
15256
  "inverted",
15256
15257
  "aria-label-next",
15257
15258
  "aria-label-previous",
@@ -15260,9 +15261,6 @@ class Tabs extends HTMLElement {
15260
15261
  }
15261
15262
  attributeChangedCallback(name, oldValue, newValue) {
15262
15263
  switch (name) {
15263
- case "label":
15264
- this.label = newValue;
15265
- break;
15266
15264
  case "aria-label-next":
15267
15265
  if (!this.hasAttribute("hide-controls")) {
15268
15266
  this.$suffixButton.setAttribute("aria-label", newValue || "Next tab");
@@ -15286,9 +15284,6 @@ class Tabs extends HTMLElement {
15286
15284
  }
15287
15285
  connectedCallback() {
15288
15286
  var _a, _b;
15289
- if (!this.$tabList.hasAttribute("aria-labelledby")) {
15290
- this.$tabList.setAttribute("aria-labelledby", this._label);
15291
- }
15292
15287
  this.role = "tablist";
15293
15288
  if (this.internals) {
15294
15289
  this.internals.role = "tablist";
@@ -15405,12 +15400,6 @@ class Tabs extends HTMLElement {
15405
15400
  get $suffixButton() {
15406
15401
  return this.shadowRoot.querySelector("#next");
15407
15402
  }
15408
- get label() {
15409
- return this.$tabList.getAttribute("aria-labelledby");
15410
- }
15411
- set label(value) {
15412
- this.$tabList.setAttribute("aria-labelledby", value);
15413
- }
15414
15403
  get inverted() {
15415
15404
  return this.hasAttribute("inverted");
15416
15405
  }
@@ -15987,7 +15976,7 @@ class TileCheckbox extends WithExtraAttributes {
15987
15976
  <div class="tile-checkbox">
15988
15977
  <px-tile hoverable>
15989
15978
  <slot name="prefix" slot="prefix"></slot>
15990
- <px-checkbox slot="suffix" inert></px-checkbox>
15979
+ <px-checkbox slot="suffix" aria-hidden="true" tabindex="-1"></px-checkbox>
15991
15980
  <slot name="label" slot="label"></slot>
15992
15981
  <slot name="description" slot="description"></slot>
15993
15982
  </px-tile>
@@ -16267,7 +16256,7 @@ class TileRadio extends WithExtraAttributes {
16267
16256
  <div class="tile-radio">
16268
16257
  <px-tile hoverable>
16269
16258
  <slot name="prefix" slot="prefix"></slot>
16270
- <px-radio slot="suffix" inert></px-radio>
16259
+ <px-radio slot="suffix" aria-hidden="true" tabindex="-1"></px-radio>
16271
16260
  <slot name="label" slot="label"></slot>
16272
16261
  <slot name="description" slot="description"></slot>
16273
16262
  </px-tile>
@@ -16709,7 +16698,7 @@ class TileSwitch extends WithExtraAttributes {
16709
16698
  <div class="tile-switch">
16710
16699
  <px-tile hoverable>
16711
16700
  <slot name="prefix" slot="prefix"></slot>
16712
- <px-switch slot="suffix" inert></px-switch>
16701
+ <px-switch slot="suffix" aria-hidden="true" tabindex="-1"></px-switch>
16713
16702
  <slot name="label" slot="label"></slot>
16714
16703
  <slot name="description" slot="description"></slot>
16715
16704
  </px-tile>