@proximus/lavender-common 2.0.0-alpha.205 → 2.0.0-alpha.207

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.
Files changed (2) hide show
  1. package/dist/index.es.js +6 -21
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -48,13 +48,9 @@ var c = class {
48
48
  }
49
49
  setInteractiveState(e) {
50
50
  let t = this.#a;
51
- if (!this.#n()) {
52
- t.forEach((e) => e.removeAttribute("interactive-state"));
53
- return;
54
- }
55
- t.forEach((t) => {
51
+ this.#n() ? t.forEach((t) => {
56
52
  e ? t.setAttribute("interactive-state", e) : t.removeAttribute("interactive-state");
57
- });
53
+ }) : t.forEach((e) => e.removeAttribute("interactive-state"));
58
54
  }
59
55
  get #a() {
60
56
  return Array.from(this.#e.querySelectorAll("*")).filter(l);
@@ -143,11 +139,8 @@ var u = class e extends HTMLElement {
143
139
  let e = this.parentElement;
144
140
  for (; e;) {
145
141
  if (e.localName === "px-grid" || e.localName === "px-stack" && e?.getAttribute("direction") === "row") return !0;
146
- if (window.getComputedStyle(e).display === "contents") {
147
- e = e.parentElement;
148
- continue;
149
- }
150
- break;
142
+ if (window.getComputedStyle(e).display === "contents") e = e.parentElement;
143
+ else break;
151
144
  }
152
145
  return !1;
153
146
  }
@@ -664,18 +657,10 @@ function W(e, t, n = !1) {
664
657
  }
665
658
  }
666
659
  function G(e, t, n) {
667
- if (n == null || n === "") {
668
- e.removeAttribute(t);
669
- return;
670
- }
671
- e.setAttribute(t, n.toString());
660
+ n == null || n === "" ? e.removeAttribute(t) : e.setAttribute(t, n.toString());
672
661
  }
673
662
  function K(e, t, n) {
674
- if (!n) {
675
- e.removeAttribute(t);
676
- return;
677
- }
678
- e.setAttribute(t, "");
663
+ n ? e.setAttribute(t, "") : e.removeAttribute(t);
679
664
  }
680
665
  //#endregion
681
666
  //#region src/breakpoints.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "2.0.0-alpha.205",
3
+ "version": "2.0.0-alpha.207",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",