@proximus/lavender-common 1.4.7-beta.2 → 1.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/common.d.ts CHANGED
@@ -11,14 +11,6 @@ export declare function isComponentDebug(): boolean;
11
11
  * Usage: log('message')
12
12
  */
13
13
  export declare function log(message: string): void;
14
- export declare class WrappedInteractiveStateController {
15
- #private;
16
- constructor(host: HTMLElement, interactiveElement: HTMLElement, canSetInteractiveState: () => boolean);
17
- clearInteractiveState: () => void;
18
- connect(): void;
19
- disconnect(): void;
20
- setInteractiveState(state: 'hover' | null): void;
21
- }
22
14
  export declare class WithExtraAttributes extends HTMLElement {
23
15
  static get observedAttributes(): string[];
24
16
  constructor(...adoptedStylesheets: CSSStyleSheet[]);
package/dist/index.es.js CHANGED
@@ -1,101 +1,25 @@
1
- var A = (i) => {
2
- throw TypeError(i);
3
- };
4
- var S = (i, t, s) => t.has(i) || A("Cannot " + s);
5
- var a = (i, t, s) => (S(i, t, "read from private field"), s ? s.call(i) : t.get(i)), d = (i, t, s) => t.has(i) ? A("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), p = (i, t, s, e) => (S(i, t, "write to private field"), e ? e.call(i, s) : t.set(i, s), s);
6
- const C = ":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([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}: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}}", L = {};
7
- function N(i) {
8
- const t = document.createElement(i), s = Object.getPrototypeOf(t);
1
+ const g = ":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}}", f = {};
2
+ function m(o) {
3
+ const t = document.createElement(o), s = Object.getPrototypeOf(t);
9
4
  return Object.getOwnPropertyNames(s);
10
5
  }
11
- function M(i) {
12
- const t = document.createElement(i), s = Object.getPrototypeOf(t);
6
+ function k(o) {
7
+ const t = document.createElement(o), s = Object.getPrototypeOf(t);
13
8
  return Object.getOwnPropertyNames(s).map(
14
9
  (e) => e.toLowerCase()
15
10
  );
16
11
  }
17
- const $ = new CSSStyleSheet();
18
- $.replaceSync(C);
19
- const D = typeof import.meta < "u" && typeof L < "u" && !0;
20
- typeof window < "u" && (window.isComponentDebug = v);
21
- function v() {
22
- return D;
23
- }
24
- function T(i) {
25
- v() && console.error(i);
12
+ const b = new CSSStyleSheet();
13
+ b.replaceSync(g);
14
+ const v = typeof import.meta < "u" && typeof f < "u" && !1;
15
+ typeof window < "u" && (window.isComponentDebug = d);
16
+ function d() {
17
+ return v;
26
18
  }
27
- var c, n, g, h, u, m, x;
28
- class R {
29
- constructor(t, s, e) {
30
- d(this, m);
31
- d(this, c);
32
- d(this, n);
33
- d(this, g);
34
- d(this, h);
35
- d(this, u);
36
- p(this, h, !1), p(this, u, () => {
37
- this.setInteractiveState("hover");
38
- }), this.clearInteractiveState = () => {
39
- this.setInteractiveState(null);
40
- }, p(this, c, t), p(this, n, s), p(this, g, e);
41
- }
42
- connect() {
43
- a(this, h) || (a(this, n).addEventListener(
44
- "pointerenter",
45
- a(this, u)
46
- ), a(this, n).addEventListener(
47
- "pointerleave",
48
- this.clearInteractiveState
49
- ), a(this, n).addEventListener(
50
- "focusin",
51
- a(this, u)
52
- ), a(this, n).addEventListener(
53
- "focusout",
54
- this.clearInteractiveState
55
- ), p(this, h, !0));
56
- }
57
- disconnect() {
58
- a(this, h) && (a(this, n).removeEventListener(
59
- "pointerenter",
60
- a(this, u)
61
- ), a(this, n).removeEventListener(
62
- "pointerleave",
63
- this.clearInteractiveState
64
- ), a(this, n).removeEventListener(
65
- "focusin",
66
- a(this, u)
67
- ), a(this, n).removeEventListener(
68
- "focusout",
69
- this.clearInteractiveState
70
- ), p(this, h, !1));
71
- }
72
- setInteractiveState(t) {
73
- const s = a(this, m, x);
74
- if (!a(this, g).call(this)) {
75
- s.forEach((e) => e.removeAttribute("interactive-state"));
76
- return;
77
- }
78
- s.forEach((e) => {
79
- t ? e.setAttribute("interactive-state", t) : e.removeAttribute("interactive-state");
80
- });
81
- }
82
- }
83
- c = new WeakMap(), n = new WeakMap(), g = new WeakMap(), h = new WeakMap(), u = new WeakMap(), m = new WeakSet(), x = function() {
84
- return Array.from(a(this, c).querySelectorAll("*")).filter(
85
- E
86
- );
87
- };
88
- function E(i) {
89
- var s;
90
- if (i.hasAttribute("interactive-state"))
91
- return !0;
92
- const t = customElements.get(
93
- i.localName
94
- );
95
- return ((s = t == null ? void 0 : t.observedAttributes) == null ? void 0 : s.includes("interactive-state")) ?? !1;
19
+ function C(o) {
96
20
  }
97
- typeof window < "u" && (window.isComponentDebug = v);
98
- class y extends HTMLElement {
21
+ typeof window < "u" && (window.isComponentDebug = d);
22
+ class h extends HTMLElement {
99
23
  static get observedAttributes() {
100
24
  return [
101
25
  "grow",
@@ -142,20 +66,18 @@ class y extends HTMLElement {
142
66
  "order--mobile",
143
67
  "order--tablet",
144
68
  "order--laptop",
145
- "order--desktop",
146
- "sticky-top",
147
- "sticky-bottom"
69
+ "order--desktop"
148
70
  ];
149
71
  }
150
72
  constructor(...t) {
151
73
  super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
152
- $,
74
+ b,
153
75
  ...t
154
76
  ];
155
77
  }
156
78
  attributeChangedCallback(t, s, e) {
157
- var o;
158
- if (y.observedAttributes.indexOf(t) !== -1)
79
+ var i;
80
+ if (h.observedAttributes.indexOf(t) !== -1)
159
81
  switch (t) {
160
82
  case "grow":
161
83
  case "grow--mobile":
@@ -183,7 +105,7 @@ class y extends HTMLElement {
183
105
  t,
184
106
  s,
185
107
  e,
186
- ((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ? I : O
108
+ ((i = this.parentElement) == null ? void 0 : i.localName) === "px-grid" ? y : w
187
109
  );
188
110
  break;
189
111
  case "justify-self":
@@ -195,7 +117,7 @@ class y extends HTMLElement {
195
117
  t,
196
118
  s,
197
119
  e,
198
- _
120
+ A
199
121
  );
200
122
  break;
201
123
  case "col-span":
@@ -203,37 +125,35 @@ class y extends HTMLElement {
203
125
  case "col-span--tablet":
204
126
  case "col-span--laptop":
205
127
  case "col-span--desktop":
206
- this.updateProperties(t, s, e, q);
128
+ this.updateProperties(t, s, e, S);
207
129
  break;
208
130
  case "order":
209
131
  case "order--mobile":
210
132
  case "order--tablet":
211
133
  case "order--laptop":
212
134
  case "order--desktop":
213
- this.updateProperties(t, s, e, P);
135
+ this.updateProperties(t, s, e, $);
214
136
  break;
215
137
  }
216
138
  }
217
- updateProperties(t, s, e, o) {
218
- o && (this.checkName(o, e) || T(
219
- `${e} is not an allowed ${o} value for ${this.tagName.toLowerCase()}`
220
- ));
221
- const l = t.indexOf("--") > -1, b = l ? t.split("--")[0] : t;
222
- if (!l)
139
+ updateProperties(t, s, e, i) {
140
+ i && (this.checkName(i, e) || (`${e}${i}${this.tagName.toLowerCase()}`, void 0));
141
+ const a = t.indexOf("--") > -1, l = a ? t.split("--")[0] : t;
142
+ if (!a)
223
143
  this.style.setProperty(
224
- `--${b}-value`,
144
+ `--${l}-value`,
225
145
  s
226
146
  ), this.style.setProperty(
227
- `--${b}-value`,
147
+ `--${l}-value`,
228
148
  e
229
149
  );
230
150
  else {
231
- const f = t.split("--")[1];
151
+ const n = t.split("--")[1];
232
152
  this.style.setProperty(
233
- `--${b}--${f}-value`,
153
+ `--${l}--${n}-value`,
234
154
  s
235
155
  ), this.style.setProperty(
236
- `--${b}--${f}-value`,
156
+ `--${l}--${n}-value`,
237
157
  e
238
158
  );
239
159
  }
@@ -502,12 +422,12 @@ class y extends HTMLElement {
502
422
  this.setAttribute("order--desktop", t);
503
423
  }
504
424
  }
505
- const w = class w extends y {
425
+ const u = class u extends h {
506
426
  // nativeName: string;
507
427
  static get observedAttributes() {
508
428
  return [
509
429
  ...super.observedAttributes,
510
- ...M(this.nativeName)
430
+ ...k(this.nativeName)
511
431
  ];
512
432
  }
513
433
  attributeChangedCallback(t, s, e) {
@@ -517,7 +437,7 @@ const w = class w extends y {
517
437
  return Object.getPrototypeOf(this).constructor;
518
438
  }
519
439
  constructor(...t) {
520
- super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = N(
440
+ super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = m(
521
441
  this.ctor.nativeName
522
442
  )), this.enhanceWithNativeProperties();
523
443
  }
@@ -548,14 +468,14 @@ const w = class w extends y {
548
468
  s ? this.setAttribute(t, "") : this.removeAttribute(t);
549
469
  }
550
470
  };
551
- w.accessorExclusions = [];
552
- let k = w;
553
- class z extends k {
471
+ u.accessorExclusions = [];
472
+ let p = u;
473
+ class L extends p {
554
474
  connectedCallback() {
555
475
  this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
556
476
  }
557
477
  }
558
- const W = ["", "default", "none", "l"], O = [
478
+ const M = ["", "default", "none", "l"], w = [
559
479
  "",
560
480
  "default",
561
481
  "auto",
@@ -564,21 +484,21 @@ const W = ["", "default", "none", "l"], O = [
564
484
  "center",
565
485
  "baseline",
566
486
  "stretch"
567
- ], I = [
487
+ ], y = [
568
488
  "",
569
489
  "default",
570
490
  "start",
571
491
  "end",
572
492
  "center",
573
493
  "stretch"
574
- ], _ = [
494
+ ], A = [
575
495
  "",
576
496
  "default",
577
497
  "start",
578
498
  "end",
579
499
  "center",
580
500
  "stretch"
581
- ], q = [
501
+ ], S = [
582
502
  "",
583
503
  "1",
584
504
  "2",
@@ -592,7 +512,7 @@ const W = ["", "default", "none", "l"], O = [
592
512
  "10",
593
513
  "11",
594
514
  "12"
595
- ], P = [
515
+ ], $ = [
596
516
  "",
597
517
  "-1",
598
518
  "0",
@@ -608,7 +528,7 @@ const W = ["", "default", "none", "l"], O = [
608
528
  "10",
609
529
  "11",
610
530
  "12"
611
- ], H = [
531
+ ], N = [
612
532
  "",
613
533
  "default",
614
534
  "auto",
@@ -616,7 +536,7 @@ const W = ["", "default", "none", "l"], O = [
616
536
  "end",
617
537
  "center",
618
538
  "stretch"
619
- ], X = [
539
+ ], D = [
620
540
  "",
621
541
  "default",
622
542
  "inherit",
@@ -632,7 +552,7 @@ const W = ["", "default", "none", "l"], O = [
632
552
  "heading-l",
633
553
  "heading-m",
634
554
  "heading-s"
635
- ], F = [
555
+ ], T = [
636
556
  "",
637
557
  "default",
638
558
  "inherit",
@@ -647,7 +567,7 @@ const W = ["", "default", "none", "l"], O = [
647
567
  "state-hover",
648
568
  "state-active",
649
569
  "state-disabled"
650
- ], U = [
570
+ ], O = [
651
571
  "",
652
572
  "default",
653
573
  "inherit",
@@ -655,11 +575,11 @@ const W = ["", "default", "none", "l"], O = [
655
575
  "title",
656
576
  "title-large",
657
577
  "subtitle"
658
- ], G = ["Xs", "S", "M", "L", "Xl"], J = [
578
+ ], x = ["Xs", "S", "M", "L", "Xl"], _ = [
659
579
  "",
660
580
  "default",
661
- ...G.map((i) => i.toLowerCase())
662
- ], K = ["", "default", "left", "center", "right"], Q = [
581
+ ...x.map((o) => o.toLowerCase())
582
+ ], P = ["", "default", "left", "center", "right"], q = [
663
583
  "",
664
584
  "none",
665
585
  "3xs",
@@ -669,7 +589,7 @@ const W = ["", "default", "none", "l"], O = [
669
589
  "m",
670
590
  "l",
671
591
  "xl"
672
- ], Y = ["", "none", "s", "m", "l"], Z = ["", "none", "main", "pill"], tt = [
592
+ ], G = ["", "none", "s", "m", "l"], E = ["", "none", "main", "pill"], B = [
673
593
  "none",
674
594
  "main",
675
595
  "brand",
@@ -680,7 +600,7 @@ const W = ["", "default", "none", "l"], O = [
680
600
  "purpose-warning",
681
601
  "purpose-error",
682
602
  "purpose-unlimited"
683
- ], et = [
603
+ ], V = [
684
604
  "",
685
605
  "all",
686
606
  "top",
@@ -689,7 +609,7 @@ const W = ["", "default", "none", "l"], O = [
689
609
  "left",
690
610
  "block",
691
611
  "inline"
692
- ], st = [
612
+ ], R = [
693
613
  "",
694
614
  "none",
695
615
  "surface-light",
@@ -717,7 +637,7 @@ const W = ["", "default", "none", "l"], O = [
717
637
  "purpose-eco",
718
638
  "purpose-notification",
719
639
  "footer-sitemap"
720
- ], it = ["", "cover", "contain", "default"], ot = ["", "none", "s", "m", "l", "xl"], rt = [
640
+ ], z = ["", "cover", "contain", "default"], H = ["", "none", "s", "m", "l", "xl"], I = [
721
641
  "",
722
642
  "default",
723
643
  "title-4xl",
@@ -728,7 +648,7 @@ const W = ["", "default", "none", "l"], O = [
728
648
  "title-m",
729
649
  "title-s",
730
650
  "subtitle"
731
- ], at = [
651
+ ], W = [
732
652
  "",
733
653
  "purple-top-red",
734
654
  "purple-top-magenta",
@@ -778,7 +698,7 @@ const W = ["", "default", "none", "l"], O = [
778
698
  "color-bottom-right-blue",
779
699
  "color-bottom-right-turquoise",
780
700
  "color-bottom-right-green"
781
- ], lt = [
701
+ ], X = [
782
702
  "none",
783
703
  "2xs",
784
704
  "xs",
@@ -788,14 +708,14 @@ const W = ["", "default", "none", "l"], O = [
788
708
  "heading-to-subtitle",
789
709
  "heading-to-content",
790
710
  "page-layout-between-sections"
791
- ], nt = [
711
+ ], F = [
792
712
  "",
793
713
  "all",
794
714
  "top",
795
715
  "right",
796
716
  "bottom",
797
717
  "left"
798
- ], pt = [
718
+ ], U = [
799
719
  "",
800
720
  "default",
801
721
  "xs",
@@ -804,20 +724,20 @@ const W = ["", "default", "none", "l"], O = [
804
724
  "l",
805
725
  "xl"
806
726
  ];
807
- function ht(i) {
727
+ function J(o) {
808
728
  const t = document.createElement("style");
809
- t.innerHTML = i, document.head.appendChild(t);
729
+ t.innerHTML = o, document.head.appendChild(t);
810
730
  }
811
- function ut(i) {
812
- return typeof i == "string" && (i === "false" || i === "0" || i === "null") || typeof i == "boolean" && !i;
731
+ function K(o) {
732
+ return typeof o == "string" && (o === "false" || o === "0" || o === "null") || typeof o == "boolean" && !o;
813
733
  }
814
- function bt() {
734
+ function Q() {
815
735
  return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
816
736
  }
817
- function dt(i, t) {
818
- return i.includes(t);
737
+ function Y(o, t) {
738
+ return o.includes(t);
819
739
  }
820
- const B = [
740
+ const j = [
821
741
  "aria-label",
822
742
  "aria-labelledby",
823
743
  "aria-describedby",
@@ -852,70 +772,70 @@ const B = [
852
772
  "aria-busy",
853
773
  "aria-owns"
854
774
  ];
855
- function ct(i, t, s = !1) {
775
+ function Z(o, t, s = !0) {
856
776
  var e;
857
- if (B.forEach((o) => {
858
- i.getAttribute(o) && (t.setAttribute(o, i.getAttribute(o)), i.removeAttribute(o));
859
- }), s && !i.getAttribute("aria-labelledby")) {
860
- const o = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
861
- t.setAttribute("id", o), i.setAttribute("aria-labelledby", o);
777
+ if (j.forEach((i) => {
778
+ o.getAttribute(i) && (t.setAttribute(i, o.getAttribute(i)), o.removeAttribute(i));
779
+ }), s) {
780
+ const i = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
781
+ t.setAttribute("id", i), o.setAttribute("aria-labelledby", i);
862
782
  }
863
783
  }
864
- function gt(i, t, s, e = "", o, l = i) {
865
- const b = new CSSStyleSheet(), f = s.reduce(
866
- (j, r) => j + `
867
- ${t(l, r)} {
868
- ${i}: var(--${e}-${r}-desktop);
869
- ${o ? `${o}:var(--${e}-${r}-desktop)` : ""}
784
+ function tt(o, t, s, e = "", i, a = o) {
785
+ const l = new CSSStyleSheet(), n = s.reduce(
786
+ (c, r) => c + `
787
+ ${t(a, r)} {
788
+ ${o}: var(--${e}-${r}-desktop);
789
+ ${i ? `${i}:var(--${e}-${r}-desktop)` : ""}
870
790
  }
871
791
  /* Mobile only - max 767px */
872
792
  @media only screen and (max-width: 47.938em) {
873
- ${t(l, r)} {
874
- ${i}: var(--${e}-${r}-mobile);
875
- ${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
793
+ ${t(a, r)} {
794
+ ${o}: var(--${e}-${r}-mobile);
795
+ ${i ? `${i}: var(--${e}-${r}-mobile)` : ""}
876
796
  }
877
797
  }
878
- ${t(l, r, "mobile")} {
798
+ ${t(a, r, "mobile")} {
879
799
  /* Mobile only - max 767px */
880
800
  @media only screen and (max-width: 47.938em) {
881
- ${i}: var(--${e}-${r}-mobile) !important;
882
- ${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
801
+ ${o}: var(--${e}-${r}-mobile) !important;
802
+ ${i ? `${i}: var(--${e}-${r}-mobile)` : ""}
883
803
  }
884
804
  }
885
- ${t(l, r, "tablet")} {
805
+ ${t(a, r, "tablet")} {
886
806
  /* Tablet - min 768px max 1024px */
887
807
  @media only screen and (min-width: 48em) and (max-width: 64em) {
888
- ${i}: var(--${e}-${r}-desktop) !important;
889
- ${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
808
+ ${o}: var(--${e}-${r}-desktop) !important;
809
+ ${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
890
810
  }
891
811
  }
892
- ${t(l, r, "laptop")} {
812
+ ${t(a, r, "laptop")} {
893
813
  /* Laptop - 1025px*/
894
814
  @media only screen and (min-width: 64.0625em) {
895
- ${i}: var(--${e}-${r}-desktop) !important;
896
- ${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
815
+ ${o}: var(--${e}-${r}-desktop) !important;
816
+ ${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
897
817
  }
898
818
  }
899
- ${t(l, r, "desktop")} {
819
+ ${t(a, r, "desktop")} {
900
820
  /* Desktop - 1025px*/
901
821
  @media only screen and (min-width: 64.0625em) {
902
- ${i}: var(--${e}-${r}-desktop) !important;
903
- ${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
822
+ ${o}: var(--${e}-${r}-desktop) !important;
823
+ ${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
904
824
  }
905
825
  }`,
906
826
  ""
907
827
  );
908
- return b.replaceSync(f), b;
828
+ return l.replaceSync(n), l;
909
829
  }
910
- class ft {
911
- constructor(t, s, e, o) {
912
- this.component = t, this.attributeName = s, this.cssVariable = o, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = e, Object.defineProperty(
830
+ class et {
831
+ constructor(t, s, e, i) {
832
+ this.component = t, this.attributeName = s, this.cssVariable = i, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = e, Object.defineProperty(
913
833
  this.component,
914
834
  this.toCamelCase(this.attributeName),
915
835
  {
916
836
  get: () => this.component.getAttribute(this.attributeName),
917
- set: (l) => {
918
- this.component.setAttribute(this.attributeName, l);
837
+ set: (a) => {
838
+ this.component.setAttribute(this.attributeName, a);
919
839
  }
920
840
  }
921
841
  );
@@ -941,10 +861,10 @@ class ft {
941
861
  }
942
862
  }
943
863
  setCSSProperty(t, s, e = !0) {
944
- const [, o = ""] = t.split("--");
864
+ const [, i = ""] = t.split("--");
945
865
  this.component.style.setProperty(
946
- `${this.cssVariable}${e ? "-all" : ""}${o ? `-${o}` : ""}`,
947
- `${this._attributeValue(s, o)}`
866
+ `${this.cssVariable}${e ? "-all" : ""}${i ? `-${i}` : ""}`,
867
+ `${this._attributeValue(s, i)}`
948
868
  );
949
869
  }
950
870
  setCSSProperties() {
@@ -966,20 +886,20 @@ class ft {
966
886
  e,
967
887
  !1
968
888
  );
969
- const o = this.component.getAttribute(
889
+ const i = this.component.getAttribute(
970
890
  this.attributeNameLaptop
971
891
  );
972
- o && this.setCSSProperty(
892
+ i && this.setCSSProperty(
973
893
  this.attributeNameLaptop,
974
- o,
894
+ i,
975
895
  !1
976
896
  );
977
- const l = this.component.getAttribute(
897
+ const a = this.component.getAttribute(
978
898
  this.attributeNameDesktop
979
899
  );
980
- l && this.setCSSProperty(
900
+ a && this.setCSSProperty(
981
901
  this.attributeNameDesktop,
982
- l,
902
+ a,
983
903
  !1
984
904
  );
985
905
  }
@@ -988,46 +908,45 @@ class ft {
988
908
  }
989
909
  }
990
910
  export {
991
- ft as AttributeBreakpointHandlerDelegate,
992
- k as PxElement,
993
- z as VerticallyExtendedElement,
994
- y as WithExtraAttributes,
995
- R as WrappedInteractiveStateController,
996
- B as accessibilityAttributes,
997
- ht as addGlobalStylesheet,
998
- pt as assetContainerImgWidthValues,
999
- st as backgroundColorValues,
1000
- it as backgroundSizeValues,
1001
- tt as borderColorValues,
1002
- Z as borderRadiusValues,
1003
- et as borderSideValues,
1004
- Y as borderValues,
1005
- ot as boxShadowValues,
1006
- dt as checkName,
1007
- F as colorValues,
1008
- I as cssGridAlignSelfValues,
1009
- q as cssGridColSpanValues,
1010
- _ as cssGridJustifySelfValues,
1011
- P as cssGridOrderValues,
1012
- H as cssGridPlaceSelfValues,
1013
- gt as cssTokenBreakpoints,
1014
- O as flexboxAlignSelfValues,
1015
- X as fontsizeValues,
1016
- U as fontweightValues,
1017
- lt as gapValues,
1018
- M as getSupportedAttributeNames,
1019
- N as getSupportedPropertyNames,
1020
- bt as getViewportFormat,
1021
- at as gradientValues,
1022
- W as gridGapValues,
1023
- rt as headingValues,
1024
- G as iconSizeValues,
1025
- J as iconSizeValuesKC,
1026
- v as isComponentDebug,
1027
- ut as isFalsy,
1028
- T as log,
1029
- nt as noBorderRadiusValues,
1030
- Q as paddingValues,
1031
- K as textalignValues,
1032
- ct as transferAccessibilityAttributes
911
+ et as AttributeBreakpointHandlerDelegate,
912
+ p as PxElement,
913
+ L as VerticallyExtendedElement,
914
+ h as WithExtraAttributes,
915
+ j as accessibilityAttributes,
916
+ J as addGlobalStylesheet,
917
+ U as assetContainerImgWidthValues,
918
+ R as backgroundColorValues,
919
+ z as backgroundSizeValues,
920
+ B as borderColorValues,
921
+ E as borderRadiusValues,
922
+ V as borderSideValues,
923
+ G as borderValues,
924
+ H as boxShadowValues,
925
+ Y as checkName,
926
+ T as colorValues,
927
+ y as cssGridAlignSelfValues,
928
+ S as cssGridColSpanValues,
929
+ A as cssGridJustifySelfValues,
930
+ $ as cssGridOrderValues,
931
+ N as cssGridPlaceSelfValues,
932
+ tt as cssTokenBreakpoints,
933
+ w as flexboxAlignSelfValues,
934
+ D as fontsizeValues,
935
+ O as fontweightValues,
936
+ X as gapValues,
937
+ k as getSupportedAttributeNames,
938
+ m as getSupportedPropertyNames,
939
+ Q as getViewportFormat,
940
+ W as gradientValues,
941
+ M as gridGapValues,
942
+ I as headingValues,
943
+ x as iconSizeValues,
944
+ _ as iconSizeValuesKC,
945
+ d as isComponentDebug,
946
+ K as isFalsy,
947
+ C as log,
948
+ F as noBorderRadiusValues,
949
+ q as paddingValues,
950
+ P as textalignValues,
951
+ Z as transferAccessibilityAttributes
1033
952
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "1.4.7-beta.2",
3
+ "version": "1.4.7",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",