@proximus/lavender-common 2.0.0-alpha.14 → 2.0.0-alpha.140
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 +248 -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}: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
|
-
|
|
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);
|
|
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 = w);
|
|
98
|
+
class y extends HTMLElement {
|
|
15
99
|
static get observedAttributes() {
|
|
16
100
|
return [
|
|
17
101
|
"grow",
|
|
@@ -58,18 +142,25 @@ 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",
|
|
148
|
+
"word-break-all",
|
|
149
|
+
"word-break-all--mobile",
|
|
150
|
+
"word-break-all--tablet",
|
|
151
|
+
"word-break-all--laptop",
|
|
152
|
+
"word-break-all--desktop"
|
|
62
153
|
];
|
|
63
154
|
}
|
|
64
155
|
constructor(...t) {
|
|
65
156
|
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
66
|
-
|
|
157
|
+
j,
|
|
67
158
|
...t
|
|
68
159
|
];
|
|
69
160
|
}
|
|
70
161
|
attributeChangedCallback(t, s, e) {
|
|
71
162
|
var o;
|
|
72
|
-
if (
|
|
163
|
+
if (y.observedAttributes.indexOf(t) !== -1)
|
|
73
164
|
switch (t) {
|
|
74
165
|
case "grow":
|
|
75
166
|
case "grow--mobile":
|
|
@@ -97,7 +188,7 @@ class h extends HTMLElement {
|
|
|
97
188
|
t,
|
|
98
189
|
s,
|
|
99
190
|
e,
|
|
100
|
-
((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ?
|
|
191
|
+
((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ? I : _
|
|
101
192
|
);
|
|
102
193
|
break;
|
|
103
194
|
case "justify-self":
|
|
@@ -109,7 +200,7 @@ class h extends HTMLElement {
|
|
|
109
200
|
t,
|
|
110
201
|
s,
|
|
111
202
|
e,
|
|
112
|
-
|
|
203
|
+
P
|
|
113
204
|
);
|
|
114
205
|
break;
|
|
115
206
|
case "col-span":
|
|
@@ -117,38 +208,37 @@ class h extends HTMLElement {
|
|
|
117
208
|
case "col-span--tablet":
|
|
118
209
|
case "col-span--laptop":
|
|
119
210
|
case "col-span--desktop":
|
|
120
|
-
this.updateProperties(t, s, e,
|
|
211
|
+
this.updateProperties(t, s, e, G);
|
|
121
212
|
break;
|
|
122
213
|
case "order":
|
|
123
214
|
case "order--mobile":
|
|
124
215
|
case "order--tablet":
|
|
125
216
|
case "order--laptop":
|
|
126
217
|
case "order--desktop":
|
|
127
|
-
this.updateProperties(t, s, e,
|
|
218
|
+
this.updateProperties(t, s, e, q);
|
|
128
219
|
break;
|
|
129
220
|
}
|
|
130
221
|
}
|
|
131
222
|
updateProperties(t, s, e, o) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
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)
|
|
138
228
|
this.style.setProperty(
|
|
139
|
-
`--${
|
|
229
|
+
`--${b}-value`,
|
|
140
230
|
s
|
|
141
231
|
), this.style.setProperty(
|
|
142
|
-
`--${
|
|
232
|
+
`--${b}-value`,
|
|
143
233
|
e
|
|
144
234
|
);
|
|
145
235
|
else {
|
|
146
|
-
const
|
|
236
|
+
const m = t.split("--")[1];
|
|
147
237
|
this.style.setProperty(
|
|
148
|
-
`--${
|
|
238
|
+
`--${b}--${m}-value`,
|
|
149
239
|
s
|
|
150
240
|
), this.style.setProperty(
|
|
151
|
-
`--${
|
|
241
|
+
`--${b}--${m}-value`,
|
|
152
242
|
e
|
|
153
243
|
);
|
|
154
244
|
}
|
|
@@ -417,12 +507,12 @@ class h extends HTMLElement {
|
|
|
417
507
|
this.setAttribute("order--desktop", t);
|
|
418
508
|
}
|
|
419
509
|
}
|
|
420
|
-
const
|
|
510
|
+
const A = class A extends y {
|
|
421
511
|
// nativeName: string;
|
|
422
512
|
static get observedAttributes() {
|
|
423
513
|
return [
|
|
424
514
|
...super.observedAttributes,
|
|
425
|
-
...
|
|
515
|
+
...D(this.nativeName)
|
|
426
516
|
];
|
|
427
517
|
}
|
|
428
518
|
attributeChangedCallback(t, s, e) {
|
|
@@ -432,7 +522,7 @@ const u = class u extends h {
|
|
|
432
522
|
return Object.getPrototypeOf(this).constructor;
|
|
433
523
|
}
|
|
434
524
|
constructor(...t) {
|
|
435
|
-
super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames =
|
|
525
|
+
super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = N(
|
|
436
526
|
this.ctor.nativeName
|
|
437
527
|
)), this.enhanceWithNativeProperties();
|
|
438
528
|
}
|
|
@@ -463,37 +553,39 @@ const u = class u extends h {
|
|
|
463
553
|
s ? this.setAttribute(t, "") : this.removeAttribute(t);
|
|
464
554
|
}
|
|
465
555
|
};
|
|
466
|
-
|
|
467
|
-
let
|
|
468
|
-
class
|
|
556
|
+
A.accessorExclusions = [];
|
|
557
|
+
let v = A;
|
|
558
|
+
class V extends v {
|
|
469
559
|
connectedCallback() {
|
|
470
560
|
this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
|
|
471
561
|
}
|
|
472
562
|
}
|
|
473
|
-
const
|
|
563
|
+
const W = ["", "default", "none", "l"], _ = [
|
|
474
564
|
"",
|
|
475
565
|
"default",
|
|
476
566
|
"auto",
|
|
477
567
|
"flex-start",
|
|
568
|
+
"start",
|
|
478
569
|
"flex-end",
|
|
570
|
+
"end",
|
|
479
571
|
"center",
|
|
480
572
|
"baseline",
|
|
481
573
|
"stretch"
|
|
482
|
-
],
|
|
574
|
+
], I = [
|
|
483
575
|
"",
|
|
484
576
|
"default",
|
|
485
577
|
"start",
|
|
486
578
|
"end",
|
|
487
579
|
"center",
|
|
488
580
|
"stretch"
|
|
489
|
-
],
|
|
581
|
+
], P = [
|
|
490
582
|
"",
|
|
491
583
|
"default",
|
|
492
584
|
"start",
|
|
493
585
|
"end",
|
|
494
586
|
"center",
|
|
495
587
|
"stretch"
|
|
496
|
-
],
|
|
588
|
+
], G = [
|
|
497
589
|
"",
|
|
498
590
|
"1",
|
|
499
591
|
"2",
|
|
@@ -507,7 +599,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
507
599
|
"10",
|
|
508
600
|
"11",
|
|
509
601
|
"12"
|
|
510
|
-
],
|
|
602
|
+
], q = [
|
|
511
603
|
"",
|
|
512
604
|
"-1",
|
|
513
605
|
"0",
|
|
@@ -523,7 +615,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
523
615
|
"10",
|
|
524
616
|
"11",
|
|
525
617
|
"12"
|
|
526
|
-
],
|
|
618
|
+
], H = [
|
|
527
619
|
"",
|
|
528
620
|
"default",
|
|
529
621
|
"auto",
|
|
@@ -531,7 +623,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
531
623
|
"end",
|
|
532
624
|
"center",
|
|
533
625
|
"stretch"
|
|
534
|
-
],
|
|
626
|
+
], X = [
|
|
535
627
|
"",
|
|
536
628
|
"default",
|
|
537
629
|
"inherit",
|
|
@@ -547,7 +639,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
547
639
|
"heading-l",
|
|
548
640
|
"heading-m",
|
|
549
641
|
"heading-s"
|
|
550
|
-
],
|
|
642
|
+
], F = [
|
|
551
643
|
"",
|
|
552
644
|
"default",
|
|
553
645
|
"inherit",
|
|
@@ -562,7 +654,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
562
654
|
"state-hover",
|
|
563
655
|
"state-active",
|
|
564
656
|
"state-disabled"
|
|
565
|
-
],
|
|
657
|
+
], J = [
|
|
566
658
|
"",
|
|
567
659
|
"default",
|
|
568
660
|
"inherit",
|
|
@@ -570,11 +662,11 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
570
662
|
"title",
|
|
571
663
|
"title-large",
|
|
572
664
|
"subtitle"
|
|
573
|
-
],
|
|
665
|
+
], B = ["Xs", "S", "M", "L", "Xl"], K = [
|
|
574
666
|
"",
|
|
575
667
|
"default",
|
|
576
|
-
...
|
|
577
|
-
],
|
|
668
|
+
...B.map((i) => i.toLowerCase())
|
|
669
|
+
], Q = ["", "default", "left", "center", "right"], Y = [
|
|
578
670
|
"",
|
|
579
671
|
"none",
|
|
580
672
|
"3xs",
|
|
@@ -584,7 +676,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
584
676
|
"m",
|
|
585
677
|
"l",
|
|
586
678
|
"xl"
|
|
587
|
-
],
|
|
679
|
+
], Z = ["", "none", "s", "m", "l"], tt = ["", "none", "main", "pill"], et = [
|
|
588
680
|
"none",
|
|
589
681
|
"main",
|
|
590
682
|
"brand",
|
|
@@ -595,7 +687,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
595
687
|
"purpose-warning",
|
|
596
688
|
"purpose-error",
|
|
597
689
|
"purpose-unlimited"
|
|
598
|
-
],
|
|
690
|
+
], st = [
|
|
599
691
|
"",
|
|
600
692
|
"all",
|
|
601
693
|
"top",
|
|
@@ -604,7 +696,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
604
696
|
"left",
|
|
605
697
|
"block",
|
|
606
698
|
"inline"
|
|
607
|
-
],
|
|
699
|
+
], it = [
|
|
608
700
|
"",
|
|
609
701
|
"none",
|
|
610
702
|
"surface-light",
|
|
@@ -631,8 +723,8 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
631
723
|
"purpose-info",
|
|
632
724
|
"purpose-eco",
|
|
633
725
|
"purpose-notification",
|
|
634
|
-
"footer"
|
|
635
|
-
],
|
|
726
|
+
"footer-sitemap"
|
|
727
|
+
], ot = ["", "cover", "contain", "default"], rt = ["", "none", "s", "m", "l", "xl"], at = [
|
|
636
728
|
"",
|
|
637
729
|
"default",
|
|
638
730
|
"title-4xl",
|
|
@@ -643,7 +735,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
643
735
|
"title-m",
|
|
644
736
|
"title-s",
|
|
645
737
|
"subtitle"
|
|
646
|
-
],
|
|
738
|
+
], lt = [
|
|
647
739
|
"",
|
|
648
740
|
"purple-top-red",
|
|
649
741
|
"purple-top-magenta",
|
|
@@ -693,7 +785,7 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
693
785
|
"color-bottom-right-blue",
|
|
694
786
|
"color-bottom-right-turquoise",
|
|
695
787
|
"color-bottom-right-green"
|
|
696
|
-
],
|
|
788
|
+
], nt = [
|
|
697
789
|
"none",
|
|
698
790
|
"2xs",
|
|
699
791
|
"xs",
|
|
@@ -703,14 +795,14 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
703
795
|
"heading-to-subtitle",
|
|
704
796
|
"heading-to-content",
|
|
705
797
|
"page-layout-between-sections"
|
|
706
|
-
],
|
|
798
|
+
], pt = [
|
|
707
799
|
"",
|
|
708
800
|
"all",
|
|
709
801
|
"top",
|
|
710
802
|
"right",
|
|
711
803
|
"bottom",
|
|
712
804
|
"left"
|
|
713
|
-
],
|
|
805
|
+
], ht = [
|
|
714
806
|
"",
|
|
715
807
|
"default",
|
|
716
808
|
"xs",
|
|
@@ -719,117 +811,118 @@ const S = ["", "default", "none", "l"], f = [
|
|
|
719
811
|
"l",
|
|
720
812
|
"xl"
|
|
721
813
|
];
|
|
722
|
-
function
|
|
814
|
+
function ut(i) {
|
|
723
815
|
const t = document.createElement("style");
|
|
724
816
|
t.innerHTML = i, document.head.appendChild(t);
|
|
725
817
|
}
|
|
726
|
-
function
|
|
818
|
+
function bt(i) {
|
|
727
819
|
return typeof i == "string" && (i === "false" || i === "0" || i === "null") || typeof i == "boolean" && !i;
|
|
728
820
|
}
|
|
729
|
-
function
|
|
821
|
+
function dt() {
|
|
730
822
|
return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
|
|
731
823
|
}
|
|
732
|
-
function
|
|
824
|
+
function ct(i, t) {
|
|
733
825
|
return i.includes(t);
|
|
734
826
|
}
|
|
735
|
-
|
|
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) {
|
|
736
863
|
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) => {
|
|
864
|
+
if (z.forEach((o) => {
|
|
772
865
|
i.getAttribute(o) && (t.setAttribute(o, i.getAttribute(o)), i.removeAttribute(o));
|
|
773
|
-
}), s) {
|
|
866
|
+
}), s && !i.getAttribute("aria-labelledby")) {
|
|
774
867
|
const o = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
|
|
775
868
|
t.setAttribute("id", o), i.setAttribute("aria-labelledby", o);
|
|
776
869
|
}
|
|
777
870
|
}
|
|
778
|
-
function
|
|
779
|
-
const
|
|
780
|
-
(
|
|
781
|
-
${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)} {
|
|
782
875
|
${i}: var(--${e}-${r}-desktop);
|
|
783
876
|
${o ? `${o}:var(--${e}-${r}-desktop)` : ""}
|
|
784
877
|
}
|
|
785
878
|
/* Mobile only - max 767px */
|
|
786
|
-
@media only screen and (max-width: 47.
|
|
787
|
-
${t(
|
|
879
|
+
@media only screen and (max-width: 47.938rem) {
|
|
880
|
+
${t(l, r)} {
|
|
788
881
|
${i}: var(--${e}-${r}-mobile);
|
|
789
882
|
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
790
883
|
}
|
|
791
884
|
}
|
|
792
|
-
${t(
|
|
885
|
+
${t(l, r, "mobile")} {
|
|
793
886
|
/* Mobile only - max 767px */
|
|
794
|
-
@media only screen and (max-width: 47.
|
|
887
|
+
@media only screen and (max-width: 47.938rem) {
|
|
795
888
|
${i}: var(--${e}-${r}-mobile) !important;
|
|
796
889
|
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
797
890
|
}
|
|
798
891
|
}
|
|
799
|
-
${t(
|
|
892
|
+
${t(l, r, "tablet")} {
|
|
800
893
|
/* Tablet - min 768px max 1024px */
|
|
801
|
-
@media only screen and (min-width:
|
|
894
|
+
@media only screen and (min-width: 48rem) and (max-width: 64rem) {
|
|
802
895
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
803
896
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
804
897
|
}
|
|
805
898
|
}
|
|
806
|
-
${t(
|
|
899
|
+
${t(l, r, "laptop")} {
|
|
807
900
|
/* Laptop - 1025px*/
|
|
808
|
-
@media only screen and (min-width: 64.
|
|
901
|
+
@media only screen and (min-width: 64.0625rem) {
|
|
809
902
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
810
903
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
811
904
|
}
|
|
812
905
|
}
|
|
813
|
-
${t(
|
|
906
|
+
${t(l, r, "desktop")} {
|
|
814
907
|
/* Desktop - 1025px*/
|
|
815
|
-
@media only screen and (min-width: 64.
|
|
908
|
+
@media only screen and (min-width: 64.0625rem) {
|
|
816
909
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
817
910
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
818
911
|
}
|
|
819
912
|
}`,
|
|
820
913
|
""
|
|
821
914
|
);
|
|
822
|
-
return
|
|
915
|
+
return b.replaceSync(m), b;
|
|
823
916
|
}
|
|
824
|
-
class
|
|
917
|
+
class mt {
|
|
825
918
|
constructor(t, s, e, o) {
|
|
826
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(
|
|
827
920
|
this.component,
|
|
828
921
|
this.toCamelCase(this.attributeName),
|
|
829
922
|
{
|
|
830
923
|
get: () => this.component.getAttribute(this.attributeName),
|
|
831
|
-
set: (
|
|
832
|
-
this.component.setAttribute(this.attributeName,
|
|
924
|
+
set: (l) => {
|
|
925
|
+
this.component.setAttribute(this.attributeName, l);
|
|
833
926
|
}
|
|
834
927
|
}
|
|
835
928
|
);
|
|
@@ -888,12 +981,12 @@ class K {
|
|
|
888
981
|
o,
|
|
889
982
|
!1
|
|
890
983
|
);
|
|
891
|
-
const
|
|
984
|
+
const l = this.component.getAttribute(
|
|
892
985
|
this.attributeNameDesktop
|
|
893
986
|
);
|
|
894
|
-
|
|
987
|
+
l && this.setCSSProperty(
|
|
895
988
|
this.attributeNameDesktop,
|
|
896
|
-
|
|
989
|
+
l,
|
|
897
990
|
!1
|
|
898
991
|
);
|
|
899
992
|
}
|
|
@@ -902,42 +995,46 @@ class K {
|
|
|
902
995
|
}
|
|
903
996
|
}
|
|
904
997
|
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
|
-
|
|
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
|
|
943
1040
|
};
|