@proximus/lavender-common 2.0.0-alpha.13 → 2.0.0-alpha.130
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 +21 -1
- package/dist/index.es.js +243 -151
- 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
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
export declare function getSupportedPropertyNames(htmlElementName: string): string[];
|
|
2
2
|
export declare function getSupportedAttributeNames(htmlElementName: string): string[];
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
isComponentDebug?: () => boolean;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare function isComponentDebug(): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Logs an error message to the console if the global debug flag is set.
|
|
11
|
+
* Usage: log('message')
|
|
12
|
+
*/
|
|
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
|
+
}
|
|
3
22
|
export declare class WithExtraAttributes extends HTMLElement {
|
|
4
23
|
static get observedAttributes(): string[];
|
|
5
24
|
constructor(...adoptedStylesheets: CSSStyleSheet[]);
|
|
@@ -106,7 +125,7 @@ export declare class VerticallyExtendedElement<HTML_TYPE extends Element> extend
|
|
|
106
125
|
connectedCallback(): void;
|
|
107
126
|
}
|
|
108
127
|
export declare const gridGapValues: string[];
|
|
109
|
-
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"];
|
|
110
129
|
export declare const cssGridAlignSelfValues: readonly ["", "default", "start", "end", "center", "stretch"];
|
|
111
130
|
export declare const cssGridJustifySelfValues: readonly ["", "default", "start", "end", "center", "stretch"];
|
|
112
131
|
export declare const cssGridColSpanValues: string[];
|
|
@@ -136,4 +155,5 @@ export declare function addGlobalStylesheet(inlineStyles: string): void;
|
|
|
136
155
|
export declare function isFalsy(value: string | boolean): boolean;
|
|
137
156
|
export declare function getViewportFormat(): "mobile" | "tablet" | "laptop";
|
|
138
157
|
export declare function checkName(values: string[], value: string): boolean;
|
|
158
|
+
export declare const accessibilityAttributes: string[];
|
|
139
159
|
export declare function transferAccessibilityAttributes(sourceElement: HTMLElement, targetElement: HTMLElement, applyLabelledBy?: boolean): void;
|
package/dist/index.es.js
CHANGED
|
@@ -1,17 +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}@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}}@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}}@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}}@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}}", 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
|
-
|
|
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 = y);
|
|
21
|
+
function y() {
|
|
22
|
+
return T;
|
|
23
|
+
}
|
|
24
|
+
function E(i) {
|
|
25
|
+
y() && console.error(i);
|
|
26
|
+
}
|
|
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
|
+
}
|
|
82
|
+
}
|
|
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 = y);
|
|
98
|
+
class w extends HTMLElement {
|
|
15
99
|
static get observedAttributes() {
|
|
16
100
|
return [
|
|
17
101
|
"grow",
|
|
@@ -58,18 +142,20 @@ class h extends HTMLElement {
|
|
|
58
142
|
"order--mobile",
|
|
59
143
|
"order--tablet",
|
|
60
144
|
"order--laptop",
|
|
61
|
-
"order--desktop"
|
|
145
|
+
"order--desktop",
|
|
146
|
+
"sticky-top",
|
|
147
|
+
"sticky-bottom"
|
|
62
148
|
];
|
|
63
149
|
}
|
|
64
150
|
constructor(...t) {
|
|
65
151
|
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
66
|
-
|
|
152
|
+
j,
|
|
67
153
|
...t
|
|
68
154
|
];
|
|
69
155
|
}
|
|
70
156
|
attributeChangedCallback(t, s, e) {
|
|
71
157
|
var o;
|
|
72
|
-
if (
|
|
158
|
+
if (w.observedAttributes.indexOf(t) !== -1)
|
|
73
159
|
switch (t) {
|
|
74
160
|
case "grow":
|
|
75
161
|
case "grow--mobile":
|
|
@@ -97,7 +183,7 @@ class h extends HTMLElement {
|
|
|
97
183
|
t,
|
|
98
184
|
s,
|
|
99
185
|
e,
|
|
100
|
-
((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ?
|
|
186
|
+
((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ? I : _
|
|
101
187
|
);
|
|
102
188
|
break;
|
|
103
189
|
case "justify-self":
|
|
@@ -109,7 +195,7 @@ class h extends HTMLElement {
|
|
|
109
195
|
t,
|
|
110
196
|
s,
|
|
111
197
|
e,
|
|
112
|
-
|
|
198
|
+
P
|
|
113
199
|
);
|
|
114
200
|
break;
|
|
115
201
|
case "col-span":
|
|
@@ -117,38 +203,37 @@ class h extends HTMLElement {
|
|
|
117
203
|
case "col-span--tablet":
|
|
118
204
|
case "col-span--laptop":
|
|
119
205
|
case "col-span--desktop":
|
|
120
|
-
this.updateProperties(t, s, e,
|
|
206
|
+
this.updateProperties(t, s, e, G);
|
|
121
207
|
break;
|
|
122
208
|
case "order":
|
|
123
209
|
case "order--mobile":
|
|
124
210
|
case "order--tablet":
|
|
125
211
|
case "order--laptop":
|
|
126
212
|
case "order--desktop":
|
|
127
|
-
this.updateProperties(t, s, e,
|
|
213
|
+
this.updateProperties(t, s, e, q);
|
|
128
214
|
break;
|
|
129
215
|
}
|
|
130
216
|
}
|
|
131
217
|
updateProperties(t, s, e, o) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
if (!a)
|
|
218
|
+
o && (this.checkName(o, e) || E(
|
|
219
|
+
`"${e}" is not an allowed ${t} value for ${this.tagName.toLowerCase()}. Allowed values are: "${o.join('", "')}".`
|
|
220
|
+
));
|
|
221
|
+
const l = t.indexOf("--") > -1, b = l ? t.split("--")[0] : t;
|
|
222
|
+
if (!l)
|
|
138
223
|
this.style.setProperty(
|
|
139
|
-
`--${
|
|
224
|
+
`--${b}-value`,
|
|
140
225
|
s
|
|
141
226
|
), this.style.setProperty(
|
|
142
|
-
`--${
|
|
227
|
+
`--${b}-value`,
|
|
143
228
|
e
|
|
144
229
|
);
|
|
145
230
|
else {
|
|
146
|
-
const
|
|
231
|
+
const m = t.split("--")[1];
|
|
147
232
|
this.style.setProperty(
|
|
148
|
-
`--${
|
|
233
|
+
`--${b}--${m}-value`,
|
|
149
234
|
s
|
|
150
235
|
), this.style.setProperty(
|
|
151
|
-
`--${
|
|
236
|
+
`--${b}--${m}-value`,
|
|
152
237
|
e
|
|
153
238
|
);
|
|
154
239
|
}
|
|
@@ -417,12 +502,12 @@ class h extends HTMLElement {
|
|
|
417
502
|
this.setAttribute("order--desktop", t);
|
|
418
503
|
}
|
|
419
504
|
}
|
|
420
|
-
const
|
|
505
|
+
const A = class A extends w {
|
|
421
506
|
// nativeName: string;
|
|
422
507
|
static get observedAttributes() {
|
|
423
508
|
return [
|
|
424
509
|
...super.observedAttributes,
|
|
425
|
-
...
|
|
510
|
+
...D(this.nativeName)
|
|
426
511
|
];
|
|
427
512
|
}
|
|
428
513
|
attributeChangedCallback(t, s, e) {
|
|
@@ -432,7 +517,7 @@ const u = class u extends h {
|
|
|
432
517
|
return Object.getPrototypeOf(this).constructor;
|
|
433
518
|
}
|
|
434
519
|
constructor(...t) {
|
|
435
|
-
super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames =
|
|
520
|
+
super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = N(
|
|
436
521
|
this.ctor.nativeName
|
|
437
522
|
)), this.enhanceWithNativeProperties();
|
|
438
523
|
}
|
|
@@ -463,37 +548,39 @@ const u = class u extends h {
|
|
|
463
548
|
s ? this.setAttribute(t, "") : this.removeAttribute(t);
|
|
464
549
|
}
|
|
465
550
|
};
|
|
466
|
-
|
|
467
|
-
let
|
|
468
|
-
class
|
|
551
|
+
A.accessorExclusions = [];
|
|
552
|
+
let v = A;
|
|
553
|
+
class V extends v {
|
|
469
554
|
connectedCallback() {
|
|
470
555
|
this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
|
|
471
556
|
}
|
|
472
557
|
}
|
|
473
|
-
const
|
|
558
|
+
const W = ["", "default", "none", "l"], _ = [
|
|
474
559
|
"",
|
|
475
560
|
"default",
|
|
476
561
|
"auto",
|
|
477
562
|
"flex-start",
|
|
563
|
+
"start",
|
|
478
564
|
"flex-end",
|
|
565
|
+
"end",
|
|
479
566
|
"center",
|
|
480
567
|
"baseline",
|
|
481
568
|
"stretch"
|
|
482
|
-
],
|
|
569
|
+
], I = [
|
|
483
570
|
"",
|
|
484
571
|
"default",
|
|
485
572
|
"start",
|
|
486
573
|
"end",
|
|
487
574
|
"center",
|
|
488
575
|
"stretch"
|
|
489
|
-
],
|
|
576
|
+
], P = [
|
|
490
577
|
"",
|
|
491
578
|
"default",
|
|
492
579
|
"start",
|
|
493
580
|
"end",
|
|
494
581
|
"center",
|
|
495
582
|
"stretch"
|
|
496
|
-
],
|
|
583
|
+
], G = [
|
|
497
584
|
"",
|
|
498
585
|
"1",
|
|
499
586
|
"2",
|
|
@@ -507,7 +594,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
507
594
|
"10",
|
|
508
595
|
"11",
|
|
509
596
|
"12"
|
|
510
|
-
],
|
|
597
|
+
], q = [
|
|
511
598
|
"",
|
|
512
599
|
"-1",
|
|
513
600
|
"0",
|
|
@@ -523,7 +610,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
523
610
|
"10",
|
|
524
611
|
"11",
|
|
525
612
|
"12"
|
|
526
|
-
],
|
|
613
|
+
], H = [
|
|
527
614
|
"",
|
|
528
615
|
"default",
|
|
529
616
|
"auto",
|
|
@@ -531,7 +618,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
531
618
|
"end",
|
|
532
619
|
"center",
|
|
533
620
|
"stretch"
|
|
534
|
-
],
|
|
621
|
+
], X = [
|
|
535
622
|
"",
|
|
536
623
|
"default",
|
|
537
624
|
"inherit",
|
|
@@ -547,7 +634,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
547
634
|
"heading-l",
|
|
548
635
|
"heading-m",
|
|
549
636
|
"heading-s"
|
|
550
|
-
],
|
|
637
|
+
], F = [
|
|
551
638
|
"",
|
|
552
639
|
"default",
|
|
553
640
|
"inherit",
|
|
@@ -562,7 +649,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
562
649
|
"state-hover",
|
|
563
650
|
"state-active",
|
|
564
651
|
"state-disabled"
|
|
565
|
-
],
|
|
652
|
+
], J = [
|
|
566
653
|
"",
|
|
567
654
|
"default",
|
|
568
655
|
"inherit",
|
|
@@ -570,11 +657,11 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
570
657
|
"title",
|
|
571
658
|
"title-large",
|
|
572
659
|
"subtitle"
|
|
573
|
-
],
|
|
660
|
+
], B = ["Xs", "S", "M", "L", "Xl"], K = [
|
|
574
661
|
"",
|
|
575
662
|
"default",
|
|
576
|
-
...
|
|
577
|
-
],
|
|
663
|
+
...B.map((i) => i.toLowerCase())
|
|
664
|
+
], Q = ["", "default", "left", "center", "right"], Y = [
|
|
578
665
|
"",
|
|
579
666
|
"none",
|
|
580
667
|
"3xs",
|
|
@@ -584,7 +671,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
584
671
|
"m",
|
|
585
672
|
"l",
|
|
586
673
|
"xl"
|
|
587
|
-
],
|
|
674
|
+
], Z = ["", "none", "s", "m", "l"], tt = ["", "none", "main", "pill"], et = [
|
|
588
675
|
"none",
|
|
589
676
|
"main",
|
|
590
677
|
"brand",
|
|
@@ -595,7 +682,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
595
682
|
"purpose-warning",
|
|
596
683
|
"purpose-error",
|
|
597
684
|
"purpose-unlimited"
|
|
598
|
-
],
|
|
685
|
+
], st = [
|
|
599
686
|
"",
|
|
600
687
|
"all",
|
|
601
688
|
"top",
|
|
@@ -604,7 +691,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
604
691
|
"left",
|
|
605
692
|
"block",
|
|
606
693
|
"inline"
|
|
607
|
-
],
|
|
694
|
+
], it = [
|
|
608
695
|
"",
|
|
609
696
|
"none",
|
|
610
697
|
"surface-light",
|
|
@@ -631,8 +718,8 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
631
718
|
"purpose-info",
|
|
632
719
|
"purpose-eco",
|
|
633
720
|
"purpose-notification",
|
|
634
|
-
"footer"
|
|
635
|
-
],
|
|
721
|
+
"footer-sitemap"
|
|
722
|
+
], ot = ["", "cover", "contain", "default"], rt = ["", "none", "s", "m", "l", "xl"], at = [
|
|
636
723
|
"",
|
|
637
724
|
"default",
|
|
638
725
|
"title-4xl",
|
|
@@ -643,7 +730,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
643
730
|
"title-m",
|
|
644
731
|
"title-s",
|
|
645
732
|
"subtitle"
|
|
646
|
-
],
|
|
733
|
+
], lt = [
|
|
647
734
|
"",
|
|
648
735
|
"purple-top-red",
|
|
649
736
|
"purple-top-magenta",
|
|
@@ -693,7 +780,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
693
780
|
"color-bottom-right-blue",
|
|
694
781
|
"color-bottom-right-turquoise",
|
|
695
782
|
"color-bottom-right-green"
|
|
696
|
-
],
|
|
783
|
+
], nt = [
|
|
697
784
|
"none",
|
|
698
785
|
"2xs",
|
|
699
786
|
"xs",
|
|
@@ -703,14 +790,14 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
703
790
|
"heading-to-subtitle",
|
|
704
791
|
"heading-to-content",
|
|
705
792
|
"page-layout-between-sections"
|
|
706
|
-
],
|
|
793
|
+
], pt = [
|
|
707
794
|
"",
|
|
708
795
|
"all",
|
|
709
796
|
"top",
|
|
710
797
|
"right",
|
|
711
798
|
"bottom",
|
|
712
799
|
"left"
|
|
713
|
-
],
|
|
800
|
+
], ht = [
|
|
714
801
|
"",
|
|
715
802
|
"default",
|
|
716
803
|
"xs",
|
|
@@ -719,117 +806,118 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
719
806
|
"l",
|
|
720
807
|
"xl"
|
|
721
808
|
];
|
|
722
|
-
function
|
|
809
|
+
function ut(i) {
|
|
723
810
|
const t = document.createElement("style");
|
|
724
811
|
t.innerHTML = i, document.head.appendChild(t);
|
|
725
812
|
}
|
|
726
|
-
function
|
|
813
|
+
function bt(i) {
|
|
727
814
|
return typeof i == "string" && (i === "false" || i === "0" || i === "null") || typeof i == "boolean" && !i;
|
|
728
815
|
}
|
|
729
|
-
function
|
|
816
|
+
function dt() {
|
|
730
817
|
return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
|
|
731
818
|
}
|
|
732
|
-
function
|
|
819
|
+
function ct(i, t) {
|
|
733
820
|
return i.includes(t);
|
|
734
821
|
}
|
|
735
|
-
|
|
822
|
+
const z = [
|
|
823
|
+
"aria-label",
|
|
824
|
+
"aria-labelledby",
|
|
825
|
+
"aria-describedby",
|
|
826
|
+
"aria-controls",
|
|
827
|
+
"aria-expanded",
|
|
828
|
+
"aria-haspopup",
|
|
829
|
+
"aria-pressed",
|
|
830
|
+
"aria-selected",
|
|
831
|
+
"aria-required",
|
|
832
|
+
"aria-disabled",
|
|
833
|
+
"aria-live",
|
|
834
|
+
"aria-atomic",
|
|
835
|
+
"aria-relevant",
|
|
836
|
+
"aria-orientation",
|
|
837
|
+
"aria-valuenow",
|
|
838
|
+
"aria-valuetext",
|
|
839
|
+
"aria-valuemin",
|
|
840
|
+
"aria-valuemax",
|
|
841
|
+
"aria-details",
|
|
842
|
+
"aria-modal",
|
|
843
|
+
"aria-autocomplete",
|
|
844
|
+
"aria-activedescendant",
|
|
845
|
+
"aria-colcount",
|
|
846
|
+
"aria-colindex",
|
|
847
|
+
"aria-colspan",
|
|
848
|
+
"aria-rowcount",
|
|
849
|
+
"aria-rowindex",
|
|
850
|
+
"aria-rowspan",
|
|
851
|
+
"aria-keyshortcuts",
|
|
852
|
+
"aria-placeholder",
|
|
853
|
+
"aria-invalid",
|
|
854
|
+
"aria-busy",
|
|
855
|
+
"aria-owns"
|
|
856
|
+
];
|
|
857
|
+
function gt(i, t, s = !1) {
|
|
736
858
|
var e;
|
|
737
|
-
if (
|
|
738
|
-
"aria-label",
|
|
739
|
-
"aria-labelledby",
|
|
740
|
-
"aria-describedby",
|
|
741
|
-
"aria-controls",
|
|
742
|
-
"aria-expanded",
|
|
743
|
-
"aria-haspopup",
|
|
744
|
-
"aria-pressed",
|
|
745
|
-
"aria-selected",
|
|
746
|
-
"aria-required",
|
|
747
|
-
"aria-disabled",
|
|
748
|
-
"aria-live",
|
|
749
|
-
"aria-atomic",
|
|
750
|
-
"aria-relevant",
|
|
751
|
-
"aria-orientation",
|
|
752
|
-
"aria-valuenow",
|
|
753
|
-
"aria-valuetext",
|
|
754
|
-
"aria-valuemin",
|
|
755
|
-
"aria-valuemax",
|
|
756
|
-
"aria-details",
|
|
757
|
-
"aria-modal",
|
|
758
|
-
"aria-autocomplete",
|
|
759
|
-
"aria-activedescendant",
|
|
760
|
-
"aria-colcount",
|
|
761
|
-
"aria-colindex",
|
|
762
|
-
"aria-colspan",
|
|
763
|
-
"aria-rowcount",
|
|
764
|
-
"aria-rowindex",
|
|
765
|
-
"aria-rowspan",
|
|
766
|
-
"aria-keyshortcuts",
|
|
767
|
-
"aria-placeholder",
|
|
768
|
-
"aria-invalid",
|
|
769
|
-
"aria-busy",
|
|
770
|
-
"aria-owns"
|
|
771
|
-
].forEach((o) => {
|
|
859
|
+
if (z.forEach((o) => {
|
|
772
860
|
i.getAttribute(o) && (t.setAttribute(o, i.getAttribute(o)), i.removeAttribute(o));
|
|
773
|
-
}), s) {
|
|
861
|
+
}), s && !i.getAttribute("aria-labelledby")) {
|
|
774
862
|
const o = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
|
|
775
863
|
t.setAttribute("id", o), i.setAttribute("aria-labelledby", o);
|
|
776
864
|
}
|
|
777
865
|
}
|
|
778
|
-
function
|
|
779
|
-
const
|
|
780
|
-
(
|
|
781
|
-
${t(
|
|
866
|
+
function ft(i, t, s, e = "", o, l = i) {
|
|
867
|
+
const b = new CSSStyleSheet(), m = s.reduce(
|
|
868
|
+
(L, r) => L + `
|
|
869
|
+
${t(l, r)} {
|
|
782
870
|
${i}: var(--${e}-${r}-desktop);
|
|
783
871
|
${o ? `${o}:var(--${e}-${r}-desktop)` : ""}
|
|
784
872
|
}
|
|
785
873
|
/* Mobile only - max 767px */
|
|
786
|
-
@media only screen and (max-width: 47.
|
|
787
|
-
${t(
|
|
874
|
+
@media only screen and (max-width: 47.938rem) {
|
|
875
|
+
${t(l, r)} {
|
|
788
876
|
${i}: var(--${e}-${r}-mobile);
|
|
789
877
|
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
790
878
|
}
|
|
791
879
|
}
|
|
792
|
-
${t(
|
|
880
|
+
${t(l, r, "mobile")} {
|
|
793
881
|
/* Mobile only - max 767px */
|
|
794
|
-
@media only screen and (max-width: 47.
|
|
882
|
+
@media only screen and (max-width: 47.938rem) {
|
|
795
883
|
${i}: var(--${e}-${r}-mobile) !important;
|
|
796
884
|
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
797
885
|
}
|
|
798
886
|
}
|
|
799
|
-
${t(
|
|
887
|
+
${t(l, r, "tablet")} {
|
|
800
888
|
/* Tablet - min 768px max 1024px */
|
|
801
|
-
@media only screen and (min-width:
|
|
889
|
+
@media only screen and (min-width: 48rem) and (max-width: 64rem) {
|
|
802
890
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
803
891
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
804
892
|
}
|
|
805
893
|
}
|
|
806
|
-
${t(
|
|
894
|
+
${t(l, r, "laptop")} {
|
|
807
895
|
/* Laptop - 1025px*/
|
|
808
|
-
@media only screen and (min-width: 64.
|
|
896
|
+
@media only screen and (min-width: 64.0625rem) {
|
|
809
897
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
810
898
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
811
899
|
}
|
|
812
900
|
}
|
|
813
|
-
${t(
|
|
901
|
+
${t(l, r, "desktop")} {
|
|
814
902
|
/* Desktop - 1025px*/
|
|
815
|
-
@media only screen and (min-width: 64.
|
|
903
|
+
@media only screen and (min-width: 64.0625rem) {
|
|
816
904
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
817
905
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
818
906
|
}
|
|
819
907
|
}`,
|
|
820
908
|
""
|
|
821
909
|
);
|
|
822
|
-
return
|
|
910
|
+
return b.replaceSync(m), b;
|
|
823
911
|
}
|
|
824
|
-
class
|
|
912
|
+
class mt {
|
|
825
913
|
constructor(t, s, e, o) {
|
|
826
914
|
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(
|
|
827
915
|
this.component,
|
|
828
916
|
this.toCamelCase(this.attributeName),
|
|
829
917
|
{
|
|
830
918
|
get: () => this.component.getAttribute(this.attributeName),
|
|
831
|
-
set: (
|
|
832
|
-
this.component.setAttribute(this.attributeName,
|
|
919
|
+
set: (l) => {
|
|
920
|
+
this.component.setAttribute(this.attributeName, l);
|
|
833
921
|
}
|
|
834
922
|
}
|
|
835
923
|
);
|
|
@@ -888,12 +976,12 @@ class K {
|
|
|
888
976
|
o,
|
|
889
977
|
!1
|
|
890
978
|
);
|
|
891
|
-
const
|
|
979
|
+
const l = this.component.getAttribute(
|
|
892
980
|
this.attributeNameDesktop
|
|
893
981
|
);
|
|
894
|
-
|
|
982
|
+
l && this.setCSSProperty(
|
|
895
983
|
this.attributeNameDesktop,
|
|
896
|
-
|
|
984
|
+
l,
|
|
897
985
|
!1
|
|
898
986
|
);
|
|
899
987
|
}
|
|
@@ -902,42 +990,46 @@ class K {
|
|
|
902
990
|
}
|
|
903
991
|
}
|
|
904
992
|
export {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
z as
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
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
|
-
|
|
993
|
+
mt as AttributeBreakpointHandlerDelegate,
|
|
994
|
+
v as PxElement,
|
|
995
|
+
V as VerticallyExtendedElement,
|
|
996
|
+
w as WithExtraAttributes,
|
|
997
|
+
U as WrappedInteractiveStateController,
|
|
998
|
+
z as accessibilityAttributes,
|
|
999
|
+
ut as addGlobalStylesheet,
|
|
1000
|
+
ht as assetContainerImgWidthValues,
|
|
1001
|
+
it as backgroundColorValues,
|
|
1002
|
+
ot as backgroundSizeValues,
|
|
1003
|
+
et as borderColorValues,
|
|
1004
|
+
tt as borderRadiusValues,
|
|
1005
|
+
st as borderSideValues,
|
|
1006
|
+
Z as borderValues,
|
|
1007
|
+
rt as boxShadowValues,
|
|
1008
|
+
ct as checkName,
|
|
1009
|
+
F as colorValues,
|
|
1010
|
+
I as cssGridAlignSelfValues,
|
|
1011
|
+
G as cssGridColSpanValues,
|
|
1012
|
+
P as cssGridJustifySelfValues,
|
|
1013
|
+
q as cssGridOrderValues,
|
|
1014
|
+
H as cssGridPlaceSelfValues,
|
|
1015
|
+
ft as cssTokenBreakpoints,
|
|
1016
|
+
_ as flexboxAlignSelfValues,
|
|
1017
|
+
X as fontsizeValues,
|
|
1018
|
+
J as fontweightValues,
|
|
1019
|
+
nt as gapValues,
|
|
1020
|
+
D as getSupportedAttributeNames,
|
|
1021
|
+
N as getSupportedPropertyNames,
|
|
1022
|
+
dt as getViewportFormat,
|
|
1023
|
+
lt as gradientValues,
|
|
1024
|
+
W as gridGapValues,
|
|
1025
|
+
at as headingValues,
|
|
1026
|
+
B as iconSizeValues,
|
|
1027
|
+
K as iconSizeValuesKC,
|
|
1028
|
+
y as isComponentDebug,
|
|
1029
|
+
bt as isFalsy,
|
|
1030
|
+
E as log,
|
|
1031
|
+
pt as noBorderRadiusValues,
|
|
1032
|
+
Y as paddingValues,
|
|
1033
|
+
Q as textalignValues,
|
|
1034
|
+
gt as transferAccessibilityAttributes
|
|
943
1035
|
};
|