@proximus/lavender-common 2.0.0-alpha.8 → 2.0.0-alpha.80
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 +27 -3
- package/dist/index.es.js +259 -155
- 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[]);
|
|
@@ -91,16 +110,20 @@ export declare class WithExtraAttributes extends HTMLElement {
|
|
|
91
110
|
}
|
|
92
111
|
export declare abstract class PxElement<HTML_TYPE extends Element> extends WithExtraAttributes {
|
|
93
112
|
static nativeName: string;
|
|
94
|
-
|
|
95
|
-
accessorExclusions: string[];
|
|
113
|
+
static supportedPropertyNames: string[];
|
|
114
|
+
static accessorExclusions: string[];
|
|
96
115
|
static get observedAttributes(): string[];
|
|
97
116
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
117
|
+
protected get ctor(): any;
|
|
98
118
|
protected constructor(...adoptedStylesheets: CSSStyleSheet[]);
|
|
99
|
-
|
|
119
|
+
enhanceWithNativeProperties(): void;
|
|
100
120
|
get $el(): HTML_TYPE;
|
|
101
121
|
protected _updateAttribute(name: string, value: string): void;
|
|
102
122
|
protected _updateBooleanAttribute(name: string, value: boolean): void;
|
|
103
123
|
}
|
|
124
|
+
export declare class VerticallyExtendedElement<HTML_TYPE extends Element> extends PxElement<HTML_TYPE> {
|
|
125
|
+
connectedCallback(): void;
|
|
126
|
+
}
|
|
104
127
|
export declare const gridGapValues: string[];
|
|
105
128
|
export declare const flexboxAlignSelfValues: readonly ["", "default", "auto", "flex-start", "flex-end", "center", "baseline", "stretch"];
|
|
106
129
|
export declare const cssGridAlignSelfValues: readonly ["", "default", "start", "end", "center", "stretch"];
|
|
@@ -132,4 +155,5 @@ export declare function addGlobalStylesheet(inlineStyles: string): void;
|
|
|
132
155
|
export declare function isFalsy(value: string | boolean): boolean;
|
|
133
156
|
export declare function getViewportFormat(): "mobile" | "tablet" | "laptop";
|
|
134
157
|
export declare function checkName(values: string[], value: string): boolean;
|
|
158
|
+
export declare const accessibilityAttributes: string[];
|
|
135
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 A = (i) => {
|
|
2
|
+
throw TypeError(i);
|
|
3
|
+
};
|
|
4
|
+
var S = (i, t, s) => t.has(i) || A("Cannot " + s);
|
|
5
|
+
var a = (i, t, s) => (S(i, t, "read from private field"), s ? s.call(i) : t.get(i)), d = (i, t, s) => t.has(i) ? A("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, s), p = (i, t, s, e) => (S(i, t, "write to private field"), e ? e.call(i, s) : t.set(i, s), s);
|
|
6
|
+
const C = ":host([grow]){flex-grow:var(--grow-value)}:host([shrink]){flex-shrink:var(--shrink-value)}:host([basis]){flex-basis:var(--basis-value)}:host([align-self]){align-self:var(--align-self-value)}:host([col-span]){grid-column:span var(--col-span-value) / span var(--col-span-value)}:host([justify-self]){justify-self:var(--justify-self-value)}:host([order]),::slotted([order]){order:var(--order-value)}:host([sticky-top]){position:sticky;top:0}:host([sticky-bottom]){position:sticky;bottom:0}:host([hidden]),::slotted([hidden]){display:none}:host([shown--sr]),::slotted(*[shown--sr]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media screen and (max-width: 767px){:host([hidden--mobile]),::slotted([hidden--mobile]){display:none}:host([grow--mobile]){flex-grow:var(--grow--mobile-value)!important}:host([shrink--mobile]){flex-shrink:var(--shrink--mobile-value)!important}:host([basis--mobile]){flex-basis:var(--basis--mobile-value)!important}:host([align-self--mobile]){align-self:var(--align-self--mobile-value)!important}:host([col-span--mobile]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)!important}:host([justify-self--mobile]){justify-self:var(--justify-self--mobile-value)!important}:host([order--mobile]),::slotted([order--mobile]){order:var(--order--mobile-value)!important}:host([shown--sr--mobile]),::slotted(*[shown--sr--mobile]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 768px) and (max-width: 1024px){:host([hidden--tablet]),::slotted([hidden--tablet]){display:none}:host([grow--tablet]){flex-grow:var(--grow--tablet-value)!important}:host([shrink--tablet]){flex-shrink:var(--shrink--tablet-value)!important}:host([basis--tablet]){flex-basis:var(--basis--tablet-value)!important}:host([align-self--tablet]){align-self:var(--align-self--tablet-value)!important}:host([col-span--tablet]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)!important}:host([justify-self--tablet]){justify-self:var(--justify-self--tablet-value)!important}:host([order--tablet]),::slotted([order--tablet]){order:var(--order--tablet-value)!important}:host([shown--sr--tablet]),::slotted(*[shown--sr--tablet]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px){:host([shown--sr--laptop]),::slotted(*[shown--sr--laptop]){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}}@media screen and (min-width: 1025px){:host([hidden--laptop]),::slotted([hidden--laptop]){display:none!important}:host([grow--laptop]){flex-grow:var(--grow--laptop-value)!important}:host([shrink--laptop]){flex-shrink:var(--shrink--laptop-value)!important}:host([basis--laptop]){flex-basis:var(--basis--laptop-value)!important}:host([align-self--laptop]){align-self:var(--align-self--laptop-value)!important}:host([col-span--laptop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)!important}:host([justify-self--laptop]){justify-self:var(--justify-self--laptop-value)!important}:host([order--laptop]),::slotted([order--laptop]){order:var(--order--laptop-value)!important}}@media screen and (min-width: 1441px){:host([col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)!important}:host([justify-self--desktop]){justify-self:var(--justify-self--desktop-value)!important}:host([order--desktop]),::slotted([order--desktop]){order:var(--order--desktop-value)!important}:host([hidden--desktop]),::slotted([hidden--desktop]){display:none!important}:host([grow--desktop]){flex-grow:var(--grow--desktop-value)!important}:host([shrink--desktop]){flex-shrink:var(--shrink--desktop-value)!important}:host([basis--desktop]){flex-basis:var(--basis--desktop-value)!important}:host([align-self--desktop]){align-self:var(--align-self--desktop-value)!important}}", L = {};
|
|
7
|
+
function N(i) {
|
|
3
8
|
const t = document.createElement(i), s = Object.getPrototypeOf(t);
|
|
4
9
|
return Object.getOwnPropertyNames(s);
|
|
5
10
|
}
|
|
6
|
-
function
|
|
11
|
+
function M(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 $ = new CSSStyleSheet();
|
|
18
|
+
$.replaceSync(C);
|
|
19
|
+
const D = typeof import.meta < "u" && typeof L < "u" && !0;
|
|
20
|
+
typeof window < "u" && (window.isComponentDebug = v);
|
|
21
|
+
function v() {
|
|
22
|
+
return D;
|
|
23
|
+
}
|
|
24
|
+
function T(i) {
|
|
25
|
+
v() && console.error(i);
|
|
26
|
+
}
|
|
27
|
+
var c, n, g, h, u, m, x;
|
|
28
|
+
class R {
|
|
29
|
+
constructor(t, s, e) {
|
|
30
|
+
d(this, m);
|
|
31
|
+
d(this, c);
|
|
32
|
+
d(this, n);
|
|
33
|
+
d(this, g);
|
|
34
|
+
d(this, h);
|
|
35
|
+
d(this, u);
|
|
36
|
+
p(this, h, !1), p(this, u, () => {
|
|
37
|
+
this.setInteractiveState("hover");
|
|
38
|
+
}), this.clearInteractiveState = () => {
|
|
39
|
+
this.setInteractiveState(null);
|
|
40
|
+
}, p(this, c, t), p(this, n, s), p(this, g, e);
|
|
41
|
+
}
|
|
42
|
+
connect() {
|
|
43
|
+
a(this, h) || (a(this, n).addEventListener(
|
|
44
|
+
"pointerenter",
|
|
45
|
+
a(this, u)
|
|
46
|
+
), a(this, n).addEventListener(
|
|
47
|
+
"pointerleave",
|
|
48
|
+
this.clearInteractiveState
|
|
49
|
+
), a(this, n).addEventListener(
|
|
50
|
+
"focusin",
|
|
51
|
+
a(this, u)
|
|
52
|
+
), a(this, n).addEventListener(
|
|
53
|
+
"focusout",
|
|
54
|
+
this.clearInteractiveState
|
|
55
|
+
), p(this, h, !0));
|
|
56
|
+
}
|
|
57
|
+
disconnect() {
|
|
58
|
+
a(this, h) && (a(this, n).removeEventListener(
|
|
59
|
+
"pointerenter",
|
|
60
|
+
a(this, u)
|
|
61
|
+
), a(this, n).removeEventListener(
|
|
62
|
+
"pointerleave",
|
|
63
|
+
this.clearInteractiveState
|
|
64
|
+
), a(this, n).removeEventListener(
|
|
65
|
+
"focusin",
|
|
66
|
+
a(this, u)
|
|
67
|
+
), a(this, n).removeEventListener(
|
|
68
|
+
"focusout",
|
|
69
|
+
this.clearInteractiveState
|
|
70
|
+
), p(this, h, !1));
|
|
71
|
+
}
|
|
72
|
+
setInteractiveState(t) {
|
|
73
|
+
const s = a(this, m, x);
|
|
74
|
+
if (!a(this, g).call(this)) {
|
|
75
|
+
s.forEach((e) => e.removeAttribute("interactive-state"));
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
s.forEach((e) => {
|
|
79
|
+
t ? e.setAttribute("interactive-state", t) : e.removeAttribute("interactive-state");
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
c = new WeakMap(), n = new WeakMap(), g = new WeakMap(), h = new WeakMap(), u = new WeakMap(), m = new WeakSet(), x = function() {
|
|
84
|
+
return Array.from(a(this, c).querySelectorAll("*")).filter(
|
|
85
|
+
E
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
function E(i) {
|
|
89
|
+
var s;
|
|
90
|
+
if (i.hasAttribute("interactive-state"))
|
|
91
|
+
return !0;
|
|
92
|
+
const t = customElements.get(
|
|
93
|
+
i.localName
|
|
94
|
+
);
|
|
95
|
+
return ((s = t == null ? void 0 : t.observedAttributes) == null ? void 0 : s.includes("interactive-state")) ?? !1;
|
|
96
|
+
}
|
|
97
|
+
typeof window < "u" && (window.isComponentDebug = v);
|
|
98
|
+
class y extends HTMLElement {
|
|
15
99
|
static get observedAttributes() {
|
|
16
100
|
return [
|
|
17
101
|
"grow",
|
|
@@ -58,18 +142,20 @@ class p 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
|
+
$,
|
|
67
153
|
...t
|
|
68
154
|
];
|
|
69
155
|
}
|
|
70
156
|
attributeChangedCallback(t, s, e) {
|
|
71
157
|
var o;
|
|
72
|
-
if (
|
|
158
|
+
if (y.observedAttributes.indexOf(t) !== -1)
|
|
73
159
|
switch (t) {
|
|
74
160
|
case "grow":
|
|
75
161
|
case "grow--mobile":
|
|
@@ -97,7 +183,7 @@ class p 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 : O
|
|
101
187
|
);
|
|
102
188
|
break;
|
|
103
189
|
case "justify-self":
|
|
@@ -109,7 +195,7 @@ class p extends HTMLElement {
|
|
|
109
195
|
t,
|
|
110
196
|
s,
|
|
111
197
|
e,
|
|
112
|
-
|
|
198
|
+
_
|
|
113
199
|
);
|
|
114
200
|
break;
|
|
115
201
|
case "col-span":
|
|
@@ -117,38 +203,37 @@ class p 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, q);
|
|
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, P);
|
|
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) || T(
|
|
219
|
+
`${e} is not an allowed ${o} value for ${this.tagName.toLowerCase()}`
|
|
220
|
+
));
|
|
221
|
+
const l = t.indexOf("--") > -1, b = l ? t.split("--")[0] : t;
|
|
222
|
+
if (!l)
|
|
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 f = t.split("--")[1];
|
|
147
232
|
this.style.setProperty(
|
|
148
|
-
`--${
|
|
233
|
+
`--${b}--${f}-value`,
|
|
149
234
|
s
|
|
150
235
|
), this.style.setProperty(
|
|
151
|
-
`--${
|
|
236
|
+
`--${b}--${f}-value`,
|
|
152
237
|
e
|
|
153
238
|
);
|
|
154
239
|
}
|
|
@@ -417,38 +502,44 @@ class p extends HTMLElement {
|
|
|
417
502
|
this.setAttribute("order--desktop", t);
|
|
418
503
|
}
|
|
419
504
|
}
|
|
420
|
-
class
|
|
421
|
-
|
|
422
|
-
super(...t), this.accessorExclusions = [], this.nativeName = Object.getPrototypeOf(this).constructor.nativeName, this.accessorExclusions = Object.getPrototypeOf(this).constructor.accessorExclusions || [];
|
|
423
|
-
}
|
|
505
|
+
const w = class w extends y {
|
|
506
|
+
// nativeName: string;
|
|
424
507
|
static get observedAttributes() {
|
|
425
508
|
return [
|
|
426
509
|
...super.observedAttributes,
|
|
427
|
-
...
|
|
510
|
+
...M(this.nativeName)
|
|
428
511
|
];
|
|
429
512
|
}
|
|
430
513
|
attributeChangedCallback(t, s, e) {
|
|
431
514
|
super.attributeChangedCallback(t, s, e), e === null ? this.$el.toggleAttribute(t) : this.$el.setAttribute(t, e);
|
|
432
515
|
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
516
|
+
get ctor() {
|
|
517
|
+
return Object.getPrototypeOf(this).constructor;
|
|
518
|
+
}
|
|
519
|
+
constructor(...t) {
|
|
520
|
+
super(...t), this.ctor.supportedPropertyNames || (this.ctor.supportedPropertyNames = N(
|
|
521
|
+
this.ctor.nativeName
|
|
522
|
+
)), this.enhanceWithNativeProperties();
|
|
523
|
+
}
|
|
524
|
+
enhanceWithNativeProperties() {
|
|
525
|
+
var t;
|
|
526
|
+
for (const s of this.ctor.supportedPropertyNames)
|
|
527
|
+
if (!(s === "constructor" || (((t = this.ctor) == null ? void 0 : t.accessorExclusions) ?? []).includes(s)))
|
|
436
528
|
try {
|
|
437
|
-
Object.defineProperty(this,
|
|
529
|
+
Object.defineProperty(this, s, {
|
|
438
530
|
get() {
|
|
439
|
-
return this.$el[
|
|
531
|
+
return this.$el[s];
|
|
440
532
|
},
|
|
441
|
-
set(
|
|
442
|
-
this.$el[
|
|
533
|
+
set(e) {
|
|
534
|
+
this.$el[s] !== e && (this.$el[s] = e);
|
|
443
535
|
}
|
|
444
536
|
});
|
|
445
|
-
} catch (
|
|
446
|
-
console.warn(`Could not create property ${
|
|
537
|
+
} catch (e) {
|
|
538
|
+
console.warn(`Could not create property ${s} for`, this.$el, e);
|
|
447
539
|
}
|
|
448
|
-
this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
|
|
449
540
|
}
|
|
450
541
|
get $el() {
|
|
451
|
-
return this.shadowRoot.querySelector(this.nativeName);
|
|
542
|
+
return this.shadowRoot.querySelector(this.ctor.nativeName);
|
|
452
543
|
}
|
|
453
544
|
_updateAttribute(t, s) {
|
|
454
545
|
s ? this.setAttribute(t, s) : this.removeAttribute(t);
|
|
@@ -456,8 +547,15 @@ class y extends p {
|
|
|
456
547
|
_updateBooleanAttribute(t, s) {
|
|
457
548
|
s ? this.setAttribute(t, "") : this.removeAttribute(t);
|
|
458
549
|
}
|
|
550
|
+
};
|
|
551
|
+
w.accessorExclusions = [];
|
|
552
|
+
let k = w;
|
|
553
|
+
class z extends k {
|
|
554
|
+
connectedCallback() {
|
|
555
|
+
this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
|
|
556
|
+
}
|
|
459
557
|
}
|
|
460
|
-
const
|
|
558
|
+
const W = ["", "default", "none", "l"], O = [
|
|
461
559
|
"",
|
|
462
560
|
"default",
|
|
463
561
|
"auto",
|
|
@@ -466,21 +564,21 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
466
564
|
"center",
|
|
467
565
|
"baseline",
|
|
468
566
|
"stretch"
|
|
469
|
-
],
|
|
567
|
+
], I = [
|
|
470
568
|
"",
|
|
471
569
|
"default",
|
|
472
570
|
"start",
|
|
473
571
|
"end",
|
|
474
572
|
"center",
|
|
475
573
|
"stretch"
|
|
476
|
-
],
|
|
574
|
+
], _ = [
|
|
477
575
|
"",
|
|
478
576
|
"default",
|
|
479
577
|
"start",
|
|
480
578
|
"end",
|
|
481
579
|
"center",
|
|
482
580
|
"stretch"
|
|
483
|
-
],
|
|
581
|
+
], q = [
|
|
484
582
|
"",
|
|
485
583
|
"1",
|
|
486
584
|
"2",
|
|
@@ -494,7 +592,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
494
592
|
"10",
|
|
495
593
|
"11",
|
|
496
594
|
"12"
|
|
497
|
-
],
|
|
595
|
+
], P = [
|
|
498
596
|
"",
|
|
499
597
|
"-1",
|
|
500
598
|
"0",
|
|
@@ -510,7 +608,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
510
608
|
"10",
|
|
511
609
|
"11",
|
|
512
610
|
"12"
|
|
513
|
-
],
|
|
611
|
+
], H = [
|
|
514
612
|
"",
|
|
515
613
|
"default",
|
|
516
614
|
"auto",
|
|
@@ -518,7 +616,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
518
616
|
"end",
|
|
519
617
|
"center",
|
|
520
618
|
"stretch"
|
|
521
|
-
],
|
|
619
|
+
], X = [
|
|
522
620
|
"",
|
|
523
621
|
"default",
|
|
524
622
|
"inherit",
|
|
@@ -534,7 +632,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
534
632
|
"heading-l",
|
|
535
633
|
"heading-m",
|
|
536
634
|
"heading-s"
|
|
537
|
-
],
|
|
635
|
+
], F = [
|
|
538
636
|
"",
|
|
539
637
|
"default",
|
|
540
638
|
"inherit",
|
|
@@ -549,7 +647,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
549
647
|
"state-hover",
|
|
550
648
|
"state-active",
|
|
551
649
|
"state-disabled"
|
|
552
|
-
],
|
|
650
|
+
], U = [
|
|
553
651
|
"",
|
|
554
652
|
"default",
|
|
555
653
|
"inherit",
|
|
@@ -557,11 +655,11 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
557
655
|
"title",
|
|
558
656
|
"title-large",
|
|
559
657
|
"subtitle"
|
|
560
|
-
],
|
|
658
|
+
], G = ["Xs", "S", "M", "L", "Xl"], J = [
|
|
561
659
|
"",
|
|
562
660
|
"default",
|
|
563
|
-
...
|
|
564
|
-
],
|
|
661
|
+
...G.map((i) => i.toLowerCase())
|
|
662
|
+
], K = ["", "default", "left", "center", "right"], Q = [
|
|
565
663
|
"",
|
|
566
664
|
"none",
|
|
567
665
|
"3xs",
|
|
@@ -571,7 +669,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
571
669
|
"m",
|
|
572
670
|
"l",
|
|
573
671
|
"xl"
|
|
574
|
-
],
|
|
672
|
+
], Y = ["", "none", "s", "m", "l"], Z = ["", "none", "main", "pill"], tt = [
|
|
575
673
|
"none",
|
|
576
674
|
"main",
|
|
577
675
|
"brand",
|
|
@@ -582,7 +680,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
582
680
|
"purpose-warning",
|
|
583
681
|
"purpose-error",
|
|
584
682
|
"purpose-unlimited"
|
|
585
|
-
],
|
|
683
|
+
], et = [
|
|
586
684
|
"",
|
|
587
685
|
"all",
|
|
588
686
|
"top",
|
|
@@ -591,7 +689,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
591
689
|
"left",
|
|
592
690
|
"block",
|
|
593
691
|
"inline"
|
|
594
|
-
],
|
|
692
|
+
], st = [
|
|
595
693
|
"",
|
|
596
694
|
"none",
|
|
597
695
|
"surface-light",
|
|
@@ -618,8 +716,8 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
618
716
|
"purpose-info",
|
|
619
717
|
"purpose-eco",
|
|
620
718
|
"purpose-notification",
|
|
621
|
-
"footer"
|
|
622
|
-
],
|
|
719
|
+
"footer-sitemap"
|
|
720
|
+
], it = ["", "cover", "contain", "default"], ot = ["", "none", "s", "m", "l", "xl"], rt = [
|
|
623
721
|
"",
|
|
624
722
|
"default",
|
|
625
723
|
"title-4xl",
|
|
@@ -630,7 +728,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
630
728
|
"title-m",
|
|
631
729
|
"title-s",
|
|
632
730
|
"subtitle"
|
|
633
|
-
],
|
|
731
|
+
], at = [
|
|
634
732
|
"",
|
|
635
733
|
"purple-top-red",
|
|
636
734
|
"purple-top-magenta",
|
|
@@ -680,7 +778,7 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
680
778
|
"color-bottom-right-blue",
|
|
681
779
|
"color-bottom-right-turquoise",
|
|
682
780
|
"color-bottom-right-green"
|
|
683
|
-
],
|
|
781
|
+
], lt = [
|
|
684
782
|
"none",
|
|
685
783
|
"2xs",
|
|
686
784
|
"xs",
|
|
@@ -690,14 +788,14 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
690
788
|
"heading-to-subtitle",
|
|
691
789
|
"heading-to-content",
|
|
692
790
|
"page-layout-between-sections"
|
|
693
|
-
],
|
|
791
|
+
], nt = [
|
|
694
792
|
"",
|
|
695
793
|
"all",
|
|
696
794
|
"top",
|
|
697
795
|
"right",
|
|
698
796
|
"bottom",
|
|
699
797
|
"left"
|
|
700
|
-
],
|
|
798
|
+
], pt = [
|
|
701
799
|
"",
|
|
702
800
|
"default",
|
|
703
801
|
"xs",
|
|
@@ -706,98 +804,99 @@ const w = ["", "default", "none", "l"], c = [
|
|
|
706
804
|
"l",
|
|
707
805
|
"xl"
|
|
708
806
|
];
|
|
709
|
-
function
|
|
807
|
+
function ht(i) {
|
|
710
808
|
const t = document.createElement("style");
|
|
711
809
|
t.innerHTML = i, document.head.appendChild(t);
|
|
712
810
|
}
|
|
713
|
-
function
|
|
811
|
+
function ut(i) {
|
|
714
812
|
return typeof i == "string" && (i === "false" || i === "0" || i === "null") || typeof i == "boolean" && !i;
|
|
715
813
|
}
|
|
716
|
-
function
|
|
814
|
+
function bt() {
|
|
717
815
|
return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
|
|
718
816
|
}
|
|
719
|
-
function
|
|
817
|
+
function dt(i, t) {
|
|
720
818
|
return i.includes(t);
|
|
721
819
|
}
|
|
722
|
-
|
|
820
|
+
const B = [
|
|
821
|
+
"aria-label",
|
|
822
|
+
"aria-labelledby",
|
|
823
|
+
"aria-describedby",
|
|
824
|
+
"aria-controls",
|
|
825
|
+
"aria-expanded",
|
|
826
|
+
"aria-haspopup",
|
|
827
|
+
"aria-pressed",
|
|
828
|
+
"aria-selected",
|
|
829
|
+
"aria-required",
|
|
830
|
+
"aria-disabled",
|
|
831
|
+
"aria-live",
|
|
832
|
+
"aria-atomic",
|
|
833
|
+
"aria-relevant",
|
|
834
|
+
"aria-orientation",
|
|
835
|
+
"aria-valuenow",
|
|
836
|
+
"aria-valuetext",
|
|
837
|
+
"aria-valuemin",
|
|
838
|
+
"aria-valuemax",
|
|
839
|
+
"aria-details",
|
|
840
|
+
"aria-modal",
|
|
841
|
+
"aria-autocomplete",
|
|
842
|
+
"aria-activedescendant",
|
|
843
|
+
"aria-colcount",
|
|
844
|
+
"aria-colindex",
|
|
845
|
+
"aria-colspan",
|
|
846
|
+
"aria-rowcount",
|
|
847
|
+
"aria-rowindex",
|
|
848
|
+
"aria-rowspan",
|
|
849
|
+
"aria-keyshortcuts",
|
|
850
|
+
"aria-placeholder",
|
|
851
|
+
"aria-invalid",
|
|
852
|
+
"aria-busy",
|
|
853
|
+
"aria-owns"
|
|
854
|
+
];
|
|
855
|
+
function ct(i, t, s = !1) {
|
|
723
856
|
var e;
|
|
724
|
-
if (
|
|
725
|
-
"aria-label",
|
|
726
|
-
"aria-labelledby",
|
|
727
|
-
"aria-describedby",
|
|
728
|
-
"aria-controls",
|
|
729
|
-
"aria-expanded",
|
|
730
|
-
"aria-haspopup",
|
|
731
|
-
"aria-pressed",
|
|
732
|
-
"aria-selected",
|
|
733
|
-
"aria-required",
|
|
734
|
-
"aria-disabled",
|
|
735
|
-
"aria-live",
|
|
736
|
-
"aria-atomic",
|
|
737
|
-
"aria-relevant",
|
|
738
|
-
"aria-orientation",
|
|
739
|
-
"aria-valuenow",
|
|
740
|
-
"aria-valuetext",
|
|
741
|
-
"aria-valuemin",
|
|
742
|
-
"aria-valuemax",
|
|
743
|
-
"aria-details",
|
|
744
|
-
"aria-modal",
|
|
745
|
-
"aria-autocomplete",
|
|
746
|
-
"aria-activedescendant",
|
|
747
|
-
"aria-colcount",
|
|
748
|
-
"aria-colindex",
|
|
749
|
-
"aria-colspan",
|
|
750
|
-
"aria-rowcount",
|
|
751
|
-
"aria-rowindex",
|
|
752
|
-
"aria-rowspan",
|
|
753
|
-
"aria-keyshortcuts",
|
|
754
|
-
"aria-placeholder",
|
|
755
|
-
"aria-invalid",
|
|
756
|
-
"aria-busy",
|
|
757
|
-
"aria-owns"
|
|
758
|
-
].forEach((o) => {
|
|
857
|
+
if (B.forEach((o) => {
|
|
759
858
|
i.getAttribute(o) && (t.setAttribute(o, i.getAttribute(o)), i.removeAttribute(o));
|
|
760
|
-
}), s) {
|
|
859
|
+
}), s && !i.getAttribute("aria-labelledby")) {
|
|
761
860
|
const o = `px-${((e = t.localName) == null ? void 0 : e.toLowerCase()) ?? "component"}-${Math.random().toString(36).substring(2, 15)}`;
|
|
762
861
|
t.setAttribute("id", o), i.setAttribute("aria-labelledby", o);
|
|
763
862
|
}
|
|
764
863
|
}
|
|
765
|
-
function
|
|
766
|
-
const
|
|
767
|
-
(
|
|
768
|
-
${t(
|
|
864
|
+
function gt(i, t, s, e = "", o, l = i) {
|
|
865
|
+
const b = new CSSStyleSheet(), f = s.reduce(
|
|
866
|
+
(j, r) => j + `
|
|
867
|
+
${t(l, r)} {
|
|
769
868
|
${i}: var(--${e}-${r}-desktop);
|
|
770
869
|
${o ? `${o}:var(--${e}-${r}-desktop)` : ""}
|
|
771
870
|
}
|
|
772
871
|
/* Mobile only - max 767px */
|
|
773
872
|
@media only screen and (max-width: 47.938em) {
|
|
774
|
-
${t(
|
|
873
|
+
${t(l, r)} {
|
|
775
874
|
${i}: var(--${e}-${r}-mobile);
|
|
776
875
|
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
777
876
|
}
|
|
778
877
|
}
|
|
779
|
-
${t(
|
|
878
|
+
${t(l, r, "mobile")} {
|
|
780
879
|
/* Mobile only - max 767px */
|
|
781
880
|
@media only screen and (max-width: 47.938em) {
|
|
782
881
|
${i}: var(--${e}-${r}-mobile) !important;
|
|
783
882
|
${o ? `${o}: var(--${e}-${r}-mobile)` : ""}
|
|
784
883
|
}
|
|
785
884
|
}
|
|
786
|
-
${t(
|
|
885
|
+
${t(l, r, "tablet")} {
|
|
787
886
|
/* Tablet - min 768px max 1024px */
|
|
788
887
|
@media only screen and (min-width: 48em) and (max-width: 64em) {
|
|
789
888
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
790
889
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
791
890
|
}
|
|
792
891
|
}
|
|
793
|
-
${t(
|
|
892
|
+
${t(l, r, "laptop")} {
|
|
794
893
|
/* Laptop - 1025px*/
|
|
795
894
|
@media only screen and (min-width: 64.0625em) {
|
|
796
895
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
797
896
|
${o ? `${o}: var(--${e}-${r}-desktop)` : ""}
|
|
798
897
|
}
|
|
799
898
|
}
|
|
800
|
-
${t(
|
|
899
|
+
${t(l, r, "desktop")} {
|
|
801
900
|
/* Desktop - 1025px*/
|
|
802
901
|
@media only screen and (min-width: 64.0625em) {
|
|
803
902
|
${i}: var(--${e}-${r}-desktop) !important;
|
|
@@ -806,17 +905,17 @@ function X(i, t, s, e = "", o) {
|
|
|
806
905
|
}`,
|
|
807
906
|
""
|
|
808
907
|
);
|
|
809
|
-
return
|
|
908
|
+
return b.replaceSync(f), b;
|
|
810
909
|
}
|
|
811
|
-
class
|
|
910
|
+
class ft {
|
|
812
911
|
constructor(t, s, e, o) {
|
|
813
912
|
this.component = t, this.attributeName = s, this.cssVariable = o, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = e, Object.defineProperty(
|
|
814
913
|
this.component,
|
|
815
914
|
this.toCamelCase(this.attributeName),
|
|
816
915
|
{
|
|
817
916
|
get: () => this.component.getAttribute(this.attributeName),
|
|
818
|
-
set: (
|
|
819
|
-
this.component.setAttribute(this.attributeName,
|
|
917
|
+
set: (l) => {
|
|
918
|
+
this.component.setAttribute(this.attributeName, l);
|
|
820
919
|
}
|
|
821
920
|
}
|
|
822
921
|
);
|
|
@@ -875,12 +974,12 @@ class J {
|
|
|
875
974
|
o,
|
|
876
975
|
!1
|
|
877
976
|
);
|
|
878
|
-
const
|
|
977
|
+
const l = this.component.getAttribute(
|
|
879
978
|
this.attributeNameDesktop
|
|
880
979
|
);
|
|
881
|
-
|
|
980
|
+
l && this.setCSSProperty(
|
|
882
981
|
this.attributeNameDesktop,
|
|
883
|
-
|
|
982
|
+
l,
|
|
884
983
|
!1
|
|
885
984
|
);
|
|
886
985
|
}
|
|
@@ -889,41 +988,46 @@ class J {
|
|
|
889
988
|
}
|
|
890
989
|
}
|
|
891
990
|
export {
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
R as
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
991
|
+
ft as AttributeBreakpointHandlerDelegate,
|
|
992
|
+
k as PxElement,
|
|
993
|
+
z as VerticallyExtendedElement,
|
|
994
|
+
y as WithExtraAttributes,
|
|
995
|
+
R as WrappedInteractiveStateController,
|
|
996
|
+
B as accessibilityAttributes,
|
|
997
|
+
ht as addGlobalStylesheet,
|
|
998
|
+
pt as assetContainerImgWidthValues,
|
|
999
|
+
st as backgroundColorValues,
|
|
1000
|
+
it as backgroundSizeValues,
|
|
1001
|
+
tt as borderColorValues,
|
|
1002
|
+
Z as borderRadiusValues,
|
|
1003
|
+
et as borderSideValues,
|
|
1004
|
+
Y as borderValues,
|
|
1005
|
+
ot as boxShadowValues,
|
|
1006
|
+
dt as checkName,
|
|
1007
|
+
F as colorValues,
|
|
1008
|
+
I as cssGridAlignSelfValues,
|
|
1009
|
+
q as cssGridColSpanValues,
|
|
1010
|
+
_ as cssGridJustifySelfValues,
|
|
1011
|
+
P as cssGridOrderValues,
|
|
1012
|
+
H as cssGridPlaceSelfValues,
|
|
1013
|
+
gt as cssTokenBreakpoints,
|
|
1014
|
+
O as flexboxAlignSelfValues,
|
|
1015
|
+
X as fontsizeValues,
|
|
1016
|
+
U as fontweightValues,
|
|
1017
|
+
lt as gapValues,
|
|
1018
|
+
M as getSupportedAttributeNames,
|
|
1019
|
+
N as getSupportedPropertyNames,
|
|
1020
|
+
bt as getViewportFormat,
|
|
1021
|
+
at as gradientValues,
|
|
1022
|
+
W as gridGapValues,
|
|
1023
|
+
rt as headingValues,
|
|
1024
|
+
G as iconSizeValues,
|
|
1025
|
+
J as iconSizeValuesKC,
|
|
1026
|
+
v as isComponentDebug,
|
|
1027
|
+
ut as isFalsy,
|
|
1028
|
+
T as log,
|
|
1029
|
+
nt as noBorderRadiusValues,
|
|
1030
|
+
Q as paddingValues,
|
|
1031
|
+
K as textalignValues,
|
|
1032
|
+
ct as transferAccessibilityAttributes
|
|
929
1033
|
};
|