@proximus/lavender-common 2.0.0-alpha.16 → 2.0.0-alpha.160
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/breakpoints.d.ts +1 -1
- package/dist/common.d.ts +10 -1
- package/dist/index.es.js +246 -162
- package/package.json +1 -1
package/dist/breakpoints.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function cssTokenBreakpoints(attributeName: string, selector: (attributeName: string, attribute: string, device?: 'mobile' | 'tablet' | 'laptop' | 'desktop') => string, attributeValues: string[], cssPropertyPrefix?: string, generatedCssPropertyName?: string): CSSStyleSheet;
|
|
1
|
+
export declare function cssTokenBreakpoints(attributeName: string, selector: (attributeName: string, attribute: string, device?: 'mobile' | 'tablet' | 'laptop' | 'desktop') => string, attributeValues: string[], cssPropertyPrefix?: string, generatedCssPropertyName?: string, selectorAttributeName?: string): CSSStyleSheet;
|
|
2
2
|
export declare class AttributeBreakpointHandlerDelegate {
|
|
3
3
|
private readonly component;
|
|
4
4
|
private readonly attributeName;
|
package/dist/common.d.ts
CHANGED
|
@@ -11,6 +11,14 @@ 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
|
+
}
|
|
14
22
|
export declare class WithExtraAttributes extends HTMLElement {
|
|
15
23
|
static get observedAttributes(): string[];
|
|
16
24
|
constructor(...adoptedStylesheets: CSSStyleSheet[]);
|
|
@@ -117,7 +125,7 @@ export declare class VerticallyExtendedElement<HTML_TYPE extends Element> extend
|
|
|
117
125
|
connectedCallback(): void;
|
|
118
126
|
}
|
|
119
127
|
export declare const gridGapValues: string[];
|
|
120
|
-
export declare const flexboxAlignSelfValues: readonly ["", "default", "auto", "flex-start", "flex-end", "center", "baseline", "stretch"];
|
|
128
|
+
export declare const flexboxAlignSelfValues: readonly ["", "default", "auto", "flex-start", "start", "flex-end", "end", "center", "baseline", "stretch"];
|
|
121
129
|
export declare const cssGridAlignSelfValues: readonly ["", "default", "start", "end", "center", "stretch"];
|
|
122
130
|
export declare const cssGridJustifySelfValues: readonly ["", "default", "start", "end", "center", "stretch"];
|
|
123
131
|
export declare const cssGridColSpanValues: string[];
|
|
@@ -147,4 +155,5 @@ export declare function addGlobalStylesheet(inlineStyles: string): void;
|
|
|
147
155
|
export declare function isFalsy(value: string | boolean): boolean;
|
|
148
156
|
export declare function getViewportFormat(): "mobile" | "tablet" | "laptop";
|
|
149
157
|
export declare function checkName(values: string[], value: string): boolean;
|
|
158
|
+
export declare const accessibilityAttributes: string[];
|
|
150
159
|
export declare function transferAccessibilityAttributes(sourceElement: HTMLElement, targetElement: HTMLElement, applyLabelledBy?: boolean): void;
|
package/dist/index.es.js
CHANGED
|
@@ -1,26 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var S = (i) => {
|
|
2
|
+
throw TypeError(i);
|
|
3
|
+
};
|
|
4
|
+
var $ = (i, t, s) => t.has(i) || S("Cannot " + s);
|
|
5
|
+
var a = (i, t, s) => ($(i, t, "read from private field"), s ? s.call(i) : t.get(i)), d = (i, t, s) => t.has(i) ? S("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), p = (i, t, s, e) => ($(i, t, "write to private field"), e ? e.call(i, s) : t.set(i, s), s);
|
|
6
|
+
const M = ":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]),:host([sticky-bottom]){z-index:5}: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}:host([word-break-all]){word-break:break-all}@media screen and (max-width: 47.938rem){: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}}:host([word-break-all--mobile]){word-break:break-all!important}@media screen and (min-width: 48rem) and (max-width: 64rem){: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}}:host([word-break-all--tablet]){word-break:break-all!important}@media screen and (min-width: 64.0625rem){: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: 64.0625rem){: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}}:host([word-break-all--laptop]){word-break:break-all!important}@media screen and (min-width: 90.0625rem){: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}:host([word-break-all--desktop]){word-break:break-all!important}}", x = { DEV: !0, VITE_COMPONENT_DEBUG: "true" };
|
|
7
|
+
function N(i) {
|
|
3
8
|
const t = document.createElement(i), s = Object.getPrototypeOf(t);
|
|
4
9
|
return Object.getOwnPropertyNames(s);
|
|
5
10
|
}
|
|
6
|
-
function
|
|
11
|
+
function D(i) {
|
|
7
12
|
const t = document.createElement(i), s = Object.getPrototypeOf(t);
|
|
8
13
|
return Object.getOwnPropertyNames(s).map(
|
|
9
14
|
(e) => e.toLowerCase()
|
|
10
15
|
);
|
|
11
16
|
}
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
16
|
-
function
|
|
17
|
-
return
|
|
17
|
+
const j = new CSSStyleSheet();
|
|
18
|
+
j.replaceSync(M);
|
|
19
|
+
const c = typeof import.meta < "u" && typeof x < "u" ? x : void 0, T = (c == null ? void 0 : c.VITE_COMPONENT_DEBUG) === "true" || (c == null ? void 0 : c.DEV) === !0;
|
|
20
|
+
typeof window < "u" && (window.isComponentDebug = w);
|
|
21
|
+
function w() {
|
|
22
|
+
return T;
|
|
23
|
+
}
|
|
24
|
+
function E(i) {
|
|
25
|
+
w() && console.error(i);
|
|
18
26
|
}
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
var g, n, f, h, u, k, C;
|
|
28
|
+
class U {
|
|
29
|
+
constructor(t, s, e) {
|
|
30
|
+
d(this, k);
|
|
31
|
+
d(this, g);
|
|
32
|
+
d(this, n);
|
|
33
|
+
d(this, f);
|
|
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, g, t), p(this, n, s), p(this, f, 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, k, C);
|
|
74
|
+
if (!a(this, f).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
|
+
}
|
|
21
82
|
}
|
|
22
|
-
|
|
23
|
-
|
|
83
|
+
g = new WeakMap(), n = new WeakMap(), f = new WeakMap(), h = new WeakMap(), u = new WeakMap(), k = new WeakSet(), C = function() {
|
|
84
|
+
return Array.from(a(this, g).querySelectorAll("*")).filter(
|
|
85
|
+
O
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
function O(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;
|
|
96
|
+
}
|
|
97
|
+
typeof window < "u" && (window.isComponentDebug = w);
|
|
98
|
+
class y extends HTMLElement {
|
|
24
99
|
static get observedAttributes() {
|
|
25
100
|
return [
|
|
26
101
|
"grow",
|
|
@@ -67,18 +142,25 @@ class u extends HTMLElement {
|
|
|
67
142
|
"order--mobile",
|
|
68
143
|
"order--tablet",
|
|
69
144
|
"order--laptop",
|
|
70
|
-
"order--desktop"
|
|
145
|
+
"order--desktop",
|
|
146
|
+
"sticky-top",
|
|
147
|
+
"sticky-bottom",
|
|
148
|
+
"word-break-all",
|
|
149
|
+
"word-break-all--mobile",
|
|
150
|
+
"word-break-all--tablet",
|
|
151
|
+
"word-break-all--laptop",
|
|
152
|
+
"word-break-all--desktop"
|
|
71
153
|
];
|
|
72
154
|
}
|
|
73
155
|
constructor(...t) {
|
|
74
156
|
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
75
|
-
|
|
157
|
+
j,
|
|
76
158
|
...t
|
|
77
159
|
];
|
|
78
160
|
}
|
|
79
161
|
attributeChangedCallback(t, s, e) {
|
|
80
162
|
var o;
|
|
81
|
-
if (
|
|
163
|
+
if (y.observedAttributes.indexOf(t) !== -1)
|
|
82
164
|
switch (t) {
|
|
83
165
|
case "grow":
|
|
84
166
|
case "grow--mobile":
|
|
@@ -106,7 +188,7 @@ class u extends HTMLElement {
|
|
|
106
188
|
t,
|
|
107
189
|
s,
|
|
108
190
|
e,
|
|
109
|
-
((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ?
|
|
191
|
+
((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ? I : _
|
|
110
192
|
);
|
|
111
193
|
break;
|
|
112
194
|
case "justify-self":
|
|
@@ -118,7 +200,7 @@ class u extends HTMLElement {
|
|
|
118
200
|
t,
|
|
119
201
|
s,
|
|
120
202
|
e,
|
|
121
|
-
|
|
203
|
+
P
|
|
122
204
|
);
|
|
123
205
|
break;
|
|
124
206
|
case "col-span":
|
|
@@ -126,40 +208,37 @@ class u extends HTMLElement {
|
|
|
126
208
|
case "col-span--tablet":
|
|
127
209
|
case "col-span--laptop":
|
|
128
210
|
case "col-span--desktop":
|
|
129
|
-
this.updateProperties(t, s, e,
|
|
211
|
+
this.updateProperties(t, s, e, G);
|
|
130
212
|
break;
|
|
131
213
|
case "order":
|
|
132
214
|
case "order--mobile":
|
|
133
215
|
case "order--tablet":
|
|
134
216
|
case "order--laptop":
|
|
135
217
|
case "order--desktop":
|
|
136
|
-
this.updateProperties(t, s, e,
|
|
218
|
+
this.updateProperties(t, s, e, q);
|
|
137
219
|
break;
|
|
138
220
|
}
|
|
139
221
|
}
|
|
140
222
|
updateProperties(t, s, e, o) {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
const a = t.indexOf("--") > -1, l = a ? t.split("--")[0] : t;
|
|
148
|
-
if (!a)
|
|
223
|
+
o && (this.checkName(o, e) || E(
|
|
224
|
+
`"${e}" is not an allowed ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
225
|
+
));
|
|
226
|
+
const l = t.indexOf("--") > -1, b = l ? t.split("--")[0] : t;
|
|
227
|
+
if (!l)
|
|
149
228
|
this.style.setProperty(
|
|
150
|
-
`--${
|
|
229
|
+
`--${b}-value`,
|
|
151
230
|
s
|
|
152
231
|
), this.style.setProperty(
|
|
153
|
-
`--${
|
|
232
|
+
`--${b}-value`,
|
|
154
233
|
e
|
|
155
234
|
);
|
|
156
235
|
else {
|
|
157
|
-
const
|
|
236
|
+
const m = t.split("--")[1];
|
|
158
237
|
this.style.setProperty(
|
|
159
|
-
`--${
|
|
238
|
+
`--${b}--${m}-value`,
|
|
160
239
|
s
|
|
161
240
|
), this.style.setProperty(
|
|
162
|
-
`--${
|
|
241
|
+
`--${b}--${m}-value`,
|
|
163
242
|
e
|
|
164
243
|
);
|
|
165
244
|
}
|
|
@@ -428,12 +507,12 @@ class u extends HTMLElement {
|
|
|
428
507
|
this.setAttribute("order--desktop", t);
|
|
429
508
|
}
|
|
430
509
|
}
|
|
431
|
-
const
|
|
510
|
+
const A = class A extends y {
|
|
432
511
|
// nativeName: string;
|
|
433
512
|
static get observedAttributes() {
|
|
434
513
|
return [
|
|
435
514
|
...super.observedAttributes,
|
|
436
|
-
...
|
|
515
|
+
...D(this.nativeName)
|
|
437
516
|
];
|
|
438
517
|
}
|
|
439
518
|
attributeChangedCallback(t, s, e) {
|
|
@@ -443,7 +522,7 @@ const b = class b extends u {
|
|
|
443
522
|
return Object.getPrototypeOf(this).constructor;
|
|
444
523
|
}
|
|
445
524
|
constructor(...t) {
|
|
446
|
-
super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames =
|
|
525
|
+
super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = N(
|
|
447
526
|
this.ctor.nativeName
|
|
448
527
|
)), this.enhanceWithNativeProperties();
|
|
449
528
|
}
|
|
@@ -474,37 +553,39 @@ const b = class b extends u {
|
|
|
474
553
|
s ? this.setAttribute(t, "") : this.removeAttribute(t);
|
|
475
554
|
}
|
|
476
555
|
};
|
|
477
|
-
|
|
478
|
-
let
|
|
479
|
-
class
|
|
556
|
+
A.accessorExclusions = [];
|
|
557
|
+
let v = A;
|
|
558
|
+
class V extends v {
|
|
480
559
|
connectedCallback() {
|
|
481
560
|
this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
|
|
482
561
|
}
|
|
483
562
|
}
|
|
484
|
-
const
|
|
563
|
+
const W = ["", "default", "none", "l"], _ = [
|
|
485
564
|
"",
|
|
486
565
|
"default",
|
|
487
566
|
"auto",
|
|
488
567
|
"flex-start",
|
|
568
|
+
"start",
|
|
489
569
|
"flex-end",
|
|
570
|
+
"end",
|
|
490
571
|
"center",
|
|
491
572
|
"baseline",
|
|
492
573
|
"stretch"
|
|
493
|
-
],
|
|
574
|
+
], I = [
|
|
494
575
|
"",
|
|
495
576
|
"default",
|
|
496
577
|
"start",
|
|
497
578
|
"end",
|
|
498
579
|
"center",
|
|
499
580
|
"stretch"
|
|
500
|
-
],
|
|
581
|
+
], P = [
|
|
501
582
|
"",
|
|
502
583
|
"default",
|
|
503
584
|
"start",
|
|
504
585
|
"end",
|
|
505
586
|
"center",
|
|
506
587
|
"stretch"
|
|
507
|
-
],
|
|
588
|
+
], G = [
|
|
508
589
|
"",
|
|
509
590
|
"1",
|
|
510
591
|
"2",
|
|
@@ -518,7 +599,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
518
599
|
"10",
|
|
519
600
|
"11",
|
|
520
601
|
"12"
|
|
521
|
-
],
|
|
602
|
+
], q = [
|
|
522
603
|
"",
|
|
523
604
|
"-1",
|
|
524
605
|
"0",
|
|
@@ -534,7 +615,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
534
615
|
"10",
|
|
535
616
|
"11",
|
|
536
617
|
"12"
|
|
537
|
-
],
|
|
618
|
+
], H = [
|
|
538
619
|
"",
|
|
539
620
|
"default",
|
|
540
621
|
"auto",
|
|
@@ -542,7 +623,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
542
623
|
"end",
|
|
543
624
|
"center",
|
|
544
625
|
"stretch"
|
|
545
|
-
],
|
|
626
|
+
], X = [
|
|
546
627
|
"",
|
|
547
628
|
"default",
|
|
548
629
|
"inherit",
|
|
@@ -558,7 +639,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
558
639
|
"heading-l",
|
|
559
640
|
"heading-m",
|
|
560
641
|
"heading-s"
|
|
561
|
-
],
|
|
642
|
+
], F = [
|
|
562
643
|
"",
|
|
563
644
|
"default",
|
|
564
645
|
"inherit",
|
|
@@ -573,7 +654,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
573
654
|
"state-hover",
|
|
574
655
|
"state-active",
|
|
575
656
|
"state-disabled"
|
|
576
|
-
],
|
|
657
|
+
], J = [
|
|
577
658
|
"",
|
|
578
659
|
"default",
|
|
579
660
|
"inherit",
|
|
@@ -581,11 +662,11 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
581
662
|
"title",
|
|
582
663
|
"title-large",
|
|
583
664
|
"subtitle"
|
|
584
|
-
],
|
|
665
|
+
], B = ["Xs", "S", "M", "L", "Xl"], K = [
|
|
585
666
|
"",
|
|
586
667
|
"default",
|
|
587
|
-
...
|
|
588
|
-
],
|
|
668
|
+
...B.map((i) => i.toLowerCase())
|
|
669
|
+
], Q = ["", "default", "left", "center", "right"], Y = [
|
|
589
670
|
"",
|
|
590
671
|
"none",
|
|
591
672
|
"3xs",
|
|
@@ -595,7 +676,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
595
676
|
"m",
|
|
596
677
|
"l",
|
|
597
678
|
"xl"
|
|
598
|
-
],
|
|
679
|
+
], Z = ["", "none", "s", "m", "l"], tt = ["", "none", "main", "pill"], et = [
|
|
599
680
|
"none",
|
|
600
681
|
"main",
|
|
601
682
|
"brand",
|
|
@@ -606,7 +687,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
606
687
|
"purpose-warning",
|
|
607
688
|
"purpose-error",
|
|
608
689
|
"purpose-unlimited"
|
|
609
|
-
],
|
|
690
|
+
], st = [
|
|
610
691
|
"",
|
|
611
692
|
"all",
|
|
612
693
|
"top",
|
|
@@ -615,7 +696,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
615
696
|
"left",
|
|
616
697
|
"block",
|
|
617
698
|
"inline"
|
|
618
|
-
],
|
|
699
|
+
], it = [
|
|
619
700
|
"",
|
|
620
701
|
"none",
|
|
621
702
|
"surface-light",
|
|
@@ -642,8 +723,8 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
642
723
|
"purpose-info",
|
|
643
724
|
"purpose-eco",
|
|
644
725
|
"purpose-notification",
|
|
645
|
-
"footer"
|
|
646
|
-
],
|
|
726
|
+
"footer-sitemap"
|
|
727
|
+
], ot = ["", "cover", "contain", "default"], rt = ["", "none", "s", "m", "l", "xl"], at = [
|
|
647
728
|
"",
|
|
648
729
|
"default",
|
|
649
730
|
"title-4xl",
|
|
@@ -654,7 +735,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
654
735
|
"title-m",
|
|
655
736
|
"title-s",
|
|
656
737
|
"subtitle"
|
|
657
|
-
],
|
|
738
|
+
], lt = [
|
|
658
739
|
"",
|
|
659
740
|
"purple-top-red",
|
|
660
741
|
"purple-top-magenta",
|
|
@@ -704,7 +785,7 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
704
785
|
"color-bottom-right-blue",
|
|
705
786
|
"color-bottom-right-turquoise",
|
|
706
787
|
"color-bottom-right-green"
|
|
707
|
-
],
|
|
788
|
+
], nt = [
|
|
708
789
|
"none",
|
|
709
790
|
"2xs",
|
|
710
791
|
"xs",
|
|
@@ -714,14 +795,14 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
714
795
|
"heading-to-subtitle",
|
|
715
796
|
"heading-to-content",
|
|
716
797
|
"page-layout-between-sections"
|
|
717
|
-
],
|
|
798
|
+
], pt = [
|
|
718
799
|
"",
|
|
719
800
|
"all",
|
|
720
801
|
"top",
|
|
721
802
|
"right",
|
|
722
803
|
"bottom",
|
|
723
804
|
"left"
|
|
724
|
-
],
|
|
805
|
+
], ht = [
|
|
725
806
|
"",
|
|
726
807
|
"default",
|
|
727
808
|
"xs",
|
|
@@ -730,117 +811,118 @@ const C = ["", "default", "none", "l"], w = [
|
|
|
730
811
|
"l",
|
|
731
812
|
"xl"
|
|
732
813
|
];
|
|
733
|
-
function
|
|
814
|
+
function ut(i) {
|
|
734
815
|
const t = document.createElement("style");
|
|
735
816
|
t.innerHTML = i, document.head.appendChild(t);
|
|
736
817
|
}
|
|
737
|
-
function
|
|
818
|
+
function bt(i) {
|
|
738
819
|
return typeof i == "string" && (i === "false" || i === "0" || i === "null") || typeof i == "boolean" && !i;
|
|
739
820
|
}
|
|
740
|
-
function
|
|
821
|
+
function dt() {
|
|
741
822
|
return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
|
|
742
823
|
}
|
|
743
|
-
function
|
|
824
|
+
function ct(i, t) {
|
|
744
825
|
return i.includes(t);
|
|
745
826
|
}
|
|
746
|
-
|
|
827
|
+
const z = [
|
|
828
|
+
"aria-label",
|
|
829
|
+
"aria-labelledby",
|
|
830
|
+
"aria-describedby",
|
|
831
|
+
"aria-controls",
|
|
832
|
+
"aria-expanded",
|
|
833
|
+
"aria-haspopup",
|
|
834
|
+
"aria-pressed",
|
|
835
|
+
"aria-selected",
|
|
836
|
+
"aria-required",
|
|
837
|
+
"aria-disabled",
|
|
838
|
+
"aria-live",
|
|
839
|
+
"aria-atomic",
|
|
840
|
+
"aria-relevant",
|
|
841
|
+
"aria-orientation",
|
|
842
|
+
"aria-valuenow",
|
|
843
|
+
"aria-valuetext",
|
|
844
|
+
"aria-valuemin",
|
|
845
|
+
"aria-valuemax",
|
|
846
|
+
"aria-details",
|
|
847
|
+
"aria-modal",
|
|
848
|
+
"aria-autocomplete",
|
|
849
|
+
"aria-activedescendant",
|
|
850
|
+
"aria-colcount",
|
|
851
|
+
"aria-colindex",
|
|
852
|
+
"aria-colspan",
|
|
853
|
+
"aria-rowcount",
|
|
854
|
+
"aria-rowindex",
|
|
855
|
+
"aria-rowspan",
|
|
856
|
+
"aria-keyshortcuts",
|
|
857
|
+
"aria-placeholder",
|
|
858
|
+
"aria-invalid",
|
|
859
|
+
"aria-busy",
|
|
860
|
+
"aria-owns"
|
|
861
|
+
];
|
|
862
|
+
function gt(i, t, s = !1) {
|
|
747
863
|
var e;
|
|
748
|
-
if (
|
|
749
|
-
"aria-label",
|
|
750
|
-
"aria-labelledby",
|
|
751
|
-
"aria-describedby",
|
|
752
|
-
"aria-controls",
|
|
753
|
-
"aria-expanded",
|
|
754
|
-
"aria-haspopup",
|
|
755
|
-
"aria-pressed",
|
|
756
|
-
"aria-selected",
|
|
757
|
-
"aria-required",
|
|
758
|
-
"aria-disabled",
|
|
759
|
-
"aria-live",
|
|
760
|
-
"aria-atomic",
|
|
761
|
-
"aria-relevant",
|
|
762
|
-
"aria-orientation",
|
|
763
|
-
"aria-valuenow",
|
|
764
|
-
"aria-valuetext",
|
|
765
|
-
"aria-valuemin",
|
|
766
|
-
"aria-valuemax",
|
|
767
|
-
"aria-details",
|
|
768
|
-
"aria-modal",
|
|
769
|
-
"aria-autocomplete",
|
|
770
|
-
"aria-activedescendant",
|
|
771
|
-
"aria-colcount",
|
|
772
|
-
"aria-colindex",
|
|
773
|
-
"aria-colspan",
|
|
774
|
-
"aria-rowcount",
|
|
775
|
-
"aria-rowindex",
|
|
776
|
-
"aria-rowspan",
|
|
777
|
-
"aria-keyshortcuts",
|
|
778
|
-
"aria-placeholder",
|
|
779
|
-
"aria-invalid",
|
|
780
|
-
"aria-busy",
|
|
781
|
-
"aria-owns"
|
|
782
|
-
].forEach((o) => {
|
|
864
|
+
if (z.forEach((o) => {
|
|
783
865
|
i.getAttribute(o) && (t.setAttribute(o, i.getAttribute(o)), i.removeAttribute(o));
|
|
784
|
-
}), s) {
|
|
866
|
+
}), s && !i.getAttribute("aria-labelledby")) {
|
|
785
867
|
const o = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
|
|
786
868
|
t.setAttribute("id", o), i.setAttribute("aria-labelledby", o);
|
|
787
869
|
}
|
|
788
870
|
}
|
|
789
|
-
function
|
|
790
|
-
const
|
|
791
|
-
(
|
|
792
|
-
${t(
|
|
871
|
+
function ft(i, t, s, e = "", o, l = i) {
|
|
872
|
+
const b = new CSSStyleSheet(), m = s.reduce(
|
|
873
|
+
(L, r) => L + `
|
|
874
|
+
${t(l, r)} {
|
|
793
875
|
${i}: var(--${e}-${r}-desktop);
|
|
794
876
|
${o ? `${o}:var(--${e}-${r}-desktop)` : ""}
|
|
795
877
|
}
|
|
796
878
|
/* Mobile only - max 767px */
|
|
797
|
-
@media only screen and (max-width: 47.
|
|
798
|
-
${t(
|
|
879
|
+
@media only screen and (max-width: 47.938rem) {
|
|
880
|
+
${t(l, r)} {
|
|
799
881
|
${i}: var(--${e}-${r}-mobile);
|
|
800
882
|
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
801
883
|
}
|
|
802
884
|
}
|
|
803
|
-
${t(
|
|
885
|
+
${t(l, r, "mobile")} {
|
|
804
886
|
/* Mobile only - max 767px */
|
|
805
|
-
@media only screen and (max-width: 47.
|
|
887
|
+
@media only screen and (max-width: 47.938rem) {
|
|
806
888
|
${i}: var(--${e}-${r}-mobile) !important;
|
|
807
889
|
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
808
890
|
}
|
|
809
891
|
}
|
|
810
|
-
${t(
|
|
892
|
+
${t(l, r, "tablet")} {
|
|
811
893
|
/* Tablet - min 768px max 1024px */
|
|
812
|
-
@media only screen and (min-width:
|
|
894
|
+
@media only screen and (min-width: 48rem) and (max-width: 64rem) {
|
|
813
895
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
814
896
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
815
897
|
}
|
|
816
898
|
}
|
|
817
|
-
${t(
|
|
899
|
+
${t(l, r, "laptop")} {
|
|
818
900
|
/* Laptop - 1025px*/
|
|
819
|
-
@media only screen and (min-width: 64.
|
|
901
|
+
@media only screen and (min-width: 64.0625rem) {
|
|
820
902
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
821
903
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
822
904
|
}
|
|
823
905
|
}
|
|
824
|
-
${t(
|
|
906
|
+
${t(l, r, "desktop")} {
|
|
825
907
|
/* Desktop - 1025px*/
|
|
826
|
-
@media only screen and (min-width: 64.
|
|
908
|
+
@media only screen and (min-width: 64.0625rem) {
|
|
827
909
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
828
910
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
829
911
|
}
|
|
830
912
|
}`,
|
|
831
913
|
""
|
|
832
914
|
);
|
|
833
|
-
return
|
|
915
|
+
return b.replaceSync(m), b;
|
|
834
916
|
}
|
|
835
|
-
class
|
|
917
|
+
class mt {
|
|
836
918
|
constructor(t, s, e, o) {
|
|
837
919
|
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(
|
|
838
920
|
this.component,
|
|
839
921
|
this.toCamelCase(this.attributeName),
|
|
840
922
|
{
|
|
841
923
|
get: () => this.component.getAttribute(this.attributeName),
|
|
842
|
-
set: (
|
|
843
|
-
this.component.setAttribute(this.attributeName,
|
|
924
|
+
set: (l) => {
|
|
925
|
+
this.component.setAttribute(this.attributeName, l);
|
|
844
926
|
}
|
|
845
927
|
}
|
|
846
928
|
);
|
|
@@ -899,12 +981,12 @@ class Z {
|
|
|
899
981
|
o,
|
|
900
982
|
!1
|
|
901
983
|
);
|
|
902
|
-
const
|
|
984
|
+
const l = this.component.getAttribute(
|
|
903
985
|
this.attributeNameDesktop
|
|
904
986
|
);
|
|
905
|
-
|
|
987
|
+
l && this.setCSSProperty(
|
|
906
988
|
this.attributeNameDesktop,
|
|
907
|
-
|
|
989
|
+
l,
|
|
908
990
|
!1
|
|
909
991
|
);
|
|
910
992
|
}
|
|
@@ -913,44 +995,46 @@ class Z {
|
|
|
913
995
|
}
|
|
914
996
|
}
|
|
915
997
|
export {
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
998
|
+
mt as AttributeBreakpointHandlerDelegate,
|
|
999
|
+
v as PxElement,
|
|
1000
|
+
V as VerticallyExtendedElement,
|
|
1001
|
+
y as WithExtraAttributes,
|
|
1002
|
+
U as WrappedInteractiveStateController,
|
|
1003
|
+
z as accessibilityAttributes,
|
|
1004
|
+
ut as addGlobalStylesheet,
|
|
1005
|
+
ht as assetContainerImgWidthValues,
|
|
1006
|
+
it as backgroundColorValues,
|
|
1007
|
+
ot as backgroundSizeValues,
|
|
1008
|
+
et as borderColorValues,
|
|
1009
|
+
tt as borderRadiusValues,
|
|
1010
|
+
st as borderSideValues,
|
|
1011
|
+
Z as borderValues,
|
|
1012
|
+
rt as boxShadowValues,
|
|
1013
|
+
ct as checkName,
|
|
1014
|
+
F as colorValues,
|
|
1015
|
+
I as cssGridAlignSelfValues,
|
|
1016
|
+
G as cssGridColSpanValues,
|
|
1017
|
+
P as cssGridJustifySelfValues,
|
|
1018
|
+
q as cssGridOrderValues,
|
|
1019
|
+
H as cssGridPlaceSelfValues,
|
|
1020
|
+
ft as cssTokenBreakpoints,
|
|
1021
|
+
_ as flexboxAlignSelfValues,
|
|
1022
|
+
X as fontsizeValues,
|
|
1023
|
+
J as fontweightValues,
|
|
1024
|
+
nt as gapValues,
|
|
1025
|
+
D as getSupportedAttributeNames,
|
|
1026
|
+
N as getSupportedPropertyNames,
|
|
1027
|
+
dt as getViewportFormat,
|
|
1028
|
+
lt as gradientValues,
|
|
1029
|
+
W as gridGapValues,
|
|
1030
|
+
at as headingValues,
|
|
1031
|
+
B as iconSizeValues,
|
|
1032
|
+
K as iconSizeValuesKC,
|
|
1033
|
+
w as isComponentDebug,
|
|
1034
|
+
bt as isFalsy,
|
|
1035
|
+
E as log,
|
|
1036
|
+
pt as noBorderRadiusValues,
|
|
1037
|
+
Y as paddingValues,
|
|
1038
|
+
Q as textalignValues,
|
|
1039
|
+
gt as transferAccessibilityAttributes
|
|
956
1040
|
};
|