@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 +0 -8
- package/dist/index.es.js +148 -229
- package/package.json +1 -1
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
|
-
|
|
2
|
-
|
|
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
|
|
12
|
-
const t = document.createElement(
|
|
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
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
21
|
-
function
|
|
22
|
-
return
|
|
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
|
-
|
|
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 =
|
|
98
|
-
class
|
|
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
|
|
158
|
-
if (
|
|
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
|
-
((
|
|
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,
|
|
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,
|
|
135
|
+
this.updateProperties(t, s, e, $);
|
|
214
136
|
break;
|
|
215
137
|
}
|
|
216
138
|
}
|
|
217
|
-
updateProperties(t, s, e,
|
|
218
|
-
|
|
219
|
-
|
|
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
|
-
`--${
|
|
144
|
+
`--${l}-value`,
|
|
225
145
|
s
|
|
226
146
|
), this.style.setProperty(
|
|
227
|
-
`--${
|
|
147
|
+
`--${l}-value`,
|
|
228
148
|
e
|
|
229
149
|
);
|
|
230
150
|
else {
|
|
231
|
-
const
|
|
151
|
+
const n = t.split("--")[1];
|
|
232
152
|
this.style.setProperty(
|
|
233
|
-
`--${
|
|
153
|
+
`--${l}--${n}-value`,
|
|
234
154
|
s
|
|
235
155
|
), this.style.setProperty(
|
|
236
|
-
`--${
|
|
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
|
|
425
|
+
const u = class u extends h {
|
|
506
426
|
// nativeName: string;
|
|
507
427
|
static get observedAttributes() {
|
|
508
428
|
return [
|
|
509
429
|
...super.observedAttributes,
|
|
510
|
-
...
|
|
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 =
|
|
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
|
-
|
|
552
|
-
let
|
|
553
|
-
class
|
|
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
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
578
|
+
], x = ["Xs", "S", "M", "L", "Xl"], _ = [
|
|
659
579
|
"",
|
|
660
580
|
"default",
|
|
661
|
-
...
|
|
662
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
711
|
+
], F = [
|
|
792
712
|
"",
|
|
793
713
|
"all",
|
|
794
714
|
"top",
|
|
795
715
|
"right",
|
|
796
716
|
"bottom",
|
|
797
717
|
"left"
|
|
798
|
-
],
|
|
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
|
|
727
|
+
function J(o) {
|
|
808
728
|
const t = document.createElement("style");
|
|
809
|
-
t.innerHTML =
|
|
729
|
+
t.innerHTML = o, document.head.appendChild(t);
|
|
810
730
|
}
|
|
811
|
-
function
|
|
812
|
-
return typeof
|
|
731
|
+
function K(o) {
|
|
732
|
+
return typeof o == "string" && (o === "false" || o === "0" || o === "null") || typeof o == "boolean" && !o;
|
|
813
733
|
}
|
|
814
|
-
function
|
|
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
|
|
818
|
-
return
|
|
737
|
+
function Y(o, t) {
|
|
738
|
+
return o.includes(t);
|
|
819
739
|
}
|
|
820
|
-
const
|
|
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
|
|
775
|
+
function Z(o, t, s = !0) {
|
|
856
776
|
var e;
|
|
857
|
-
if (
|
|
858
|
-
|
|
859
|
-
}), s
|
|
860
|
-
const
|
|
861
|
-
t.setAttribute("id",
|
|
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
|
|
865
|
-
const
|
|
866
|
-
(
|
|
867
|
-
${t(
|
|
868
|
-
${
|
|
869
|
-
${
|
|
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(
|
|
874
|
-
${
|
|
875
|
-
${
|
|
793
|
+
${t(a, r)} {
|
|
794
|
+
${o}: var(--${e}-${r}-mobile);
|
|
795
|
+
${i ? `${i}: var(--${e}-${r}-mobile)` : ""}
|
|
876
796
|
}
|
|
877
797
|
}
|
|
878
|
-
${t(
|
|
798
|
+
${t(a, r, "mobile")} {
|
|
879
799
|
/* Mobile only - max 767px */
|
|
880
800
|
@media only screen and (max-width: 47.938em) {
|
|
881
|
-
${
|
|
882
|
-
${
|
|
801
|
+
${o}: var(--${e}-${r}-mobile) !important;
|
|
802
|
+
${i ? `${i}: var(--${e}-${r}-mobile)` : ""}
|
|
883
803
|
}
|
|
884
804
|
}
|
|
885
|
-
${t(
|
|
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
|
-
${
|
|
889
|
-
${
|
|
808
|
+
${o}: var(--${e}-${r}-desktop) !important;
|
|
809
|
+
${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
|
|
890
810
|
}
|
|
891
811
|
}
|
|
892
|
-
${t(
|
|
812
|
+
${t(a, r, "laptop")} {
|
|
893
813
|
/* Laptop - 1025px*/
|
|
894
814
|
@media only screen and (min-width: 64.0625em) {
|
|
895
|
-
${
|
|
896
|
-
${
|
|
815
|
+
${o}: var(--${e}-${r}-desktop) !important;
|
|
816
|
+
${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
|
|
897
817
|
}
|
|
898
818
|
}
|
|
899
|
-
${t(
|
|
819
|
+
${t(a, r, "desktop")} {
|
|
900
820
|
/* Desktop - 1025px*/
|
|
901
821
|
@media only screen and (min-width: 64.0625em) {
|
|
902
|
-
${
|
|
903
|
-
${
|
|
822
|
+
${o}: var(--${e}-${r}-desktop) !important;
|
|
823
|
+
${i ? `${i}: var(--${e}-${r}-desktop)` : ""}
|
|
904
824
|
}
|
|
905
825
|
}`,
|
|
906
826
|
""
|
|
907
827
|
);
|
|
908
|
-
return
|
|
828
|
+
return l.replaceSync(n), l;
|
|
909
829
|
}
|
|
910
|
-
class
|
|
911
|
-
constructor(t, s, e,
|
|
912
|
-
this.component = t, this.attributeName = s, this.cssVariable =
|
|
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: (
|
|
918
|
-
this.component.setAttribute(this.attributeName,
|
|
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 [,
|
|
864
|
+
const [, i = ""] = t.split("--");
|
|
945
865
|
this.component.style.setProperty(
|
|
946
|
-
`${this.cssVariable}${e ? "-all" : ""}${
|
|
947
|
-
`${this._attributeValue(s,
|
|
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
|
|
889
|
+
const i = this.component.getAttribute(
|
|
970
890
|
this.attributeNameLaptop
|
|
971
891
|
);
|
|
972
|
-
|
|
892
|
+
i && this.setCSSProperty(
|
|
973
893
|
this.attributeNameLaptop,
|
|
974
|
-
|
|
894
|
+
i,
|
|
975
895
|
!1
|
|
976
896
|
);
|
|
977
|
-
const
|
|
897
|
+
const a = this.component.getAttribute(
|
|
978
898
|
this.attributeNameDesktop
|
|
979
899
|
);
|
|
980
|
-
|
|
900
|
+
a && this.setCSSProperty(
|
|
981
901
|
this.attributeNameDesktop,
|
|
982
|
-
|
|
902
|
+
a,
|
|
983
903
|
!1
|
|
984
904
|
);
|
|
985
905
|
}
|
|
@@ -988,46 +908,45 @@ class ft {
|
|
|
988
908
|
}
|
|
989
909
|
}
|
|
990
910
|
export {
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
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
|
};
|