@proximus/lavender-list 1.4.3-beta.2 → 1.4.3
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/index.es.js +38 -43
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -9,18 +9,15 @@ function S(o) {
|
|
|
9
9
|
(e) => e.toLowerCase()
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const x = typeof import.meta < "u" && typeof y < "u" && !
|
|
15
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
16
|
-
function
|
|
12
|
+
const f = new CSSStyleSheet();
|
|
13
|
+
f.replaceSync(w);
|
|
14
|
+
const x = typeof import.meta < "u" && typeof y < "u" && !1;
|
|
15
|
+
typeof window < "u" && (window.isComponentDebug = m);
|
|
16
|
+
function m() {
|
|
17
17
|
return x;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
typeof window < "u" && (window.isComponentDebug = b);
|
|
23
|
-
class u extends HTMLElement {
|
|
19
|
+
typeof window < "u" && (window.isComponentDebug = m);
|
|
20
|
+
class b extends HTMLElement {
|
|
24
21
|
static get observedAttributes() {
|
|
25
22
|
return [
|
|
26
23
|
"grow",
|
|
@@ -72,13 +69,13 @@ class u extends HTMLElement {
|
|
|
72
69
|
}
|
|
73
70
|
constructor(...t) {
|
|
74
71
|
super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
|
|
75
|
-
|
|
72
|
+
f,
|
|
76
73
|
...t
|
|
77
74
|
];
|
|
78
75
|
}
|
|
79
76
|
attributeChangedCallback(t, s, e) {
|
|
80
77
|
var i;
|
|
81
|
-
if (
|
|
78
|
+
if (b.observedAttributes.indexOf(t) !== -1)
|
|
82
79
|
switch (t) {
|
|
83
80
|
case "grow":
|
|
84
81
|
case "grow--mobile":
|
|
@@ -106,7 +103,7 @@ class u extends HTMLElement {
|
|
|
106
103
|
t,
|
|
107
104
|
s,
|
|
108
105
|
e,
|
|
109
|
-
((i = this.parentElement) == null ? void 0 : i.localName) === "px-grid" ?
|
|
106
|
+
((i = this.parentElement) == null ? void 0 : i.localName) === "px-grid" ? M : j
|
|
110
107
|
);
|
|
111
108
|
break;
|
|
112
109
|
case "justify-self":
|
|
@@ -118,7 +115,7 @@ class u extends HTMLElement {
|
|
|
118
115
|
t,
|
|
119
116
|
s,
|
|
120
117
|
e,
|
|
121
|
-
|
|
118
|
+
T
|
|
122
119
|
);
|
|
123
120
|
break;
|
|
124
121
|
case "col-span":
|
|
@@ -126,22 +123,20 @@ class u extends HTMLElement {
|
|
|
126
123
|
case "col-span--tablet":
|
|
127
124
|
case "col-span--laptop":
|
|
128
125
|
case "col-span--desktop":
|
|
129
|
-
this.updateProperties(t, s, e,
|
|
126
|
+
this.updateProperties(t, s, e, C);
|
|
130
127
|
break;
|
|
131
128
|
case "order":
|
|
132
129
|
case "order--mobile":
|
|
133
130
|
case "order--tablet":
|
|
134
131
|
case "order--laptop":
|
|
135
132
|
case "order--desktop":
|
|
136
|
-
this.updateProperties(t, s, e,
|
|
133
|
+
this.updateProperties(t, s, e, D);
|
|
137
134
|
break;
|
|
138
135
|
}
|
|
139
136
|
}
|
|
140
137
|
updateProperties(t, s, e, i) {
|
|
141
138
|
if (i && !this.checkName(i, e)) {
|
|
142
|
-
|
|
143
|
-
`${e} is not an allowed ${i} value for ${this.tagName.toLowerCase()}`
|
|
144
|
-
);
|
|
139
|
+
`${e}${i}${this.tagName.toLowerCase()}`;
|
|
145
140
|
return;
|
|
146
141
|
}
|
|
147
142
|
const a = t.indexOf("--") > -1, l = a ? t.split("--")[0] : t;
|
|
@@ -428,7 +423,7 @@ class u extends HTMLElement {
|
|
|
428
423
|
this.setAttribute("order--desktop", t);
|
|
429
424
|
}
|
|
430
425
|
}
|
|
431
|
-
const
|
|
426
|
+
const u = class u extends b {
|
|
432
427
|
// nativeName: string;
|
|
433
428
|
static get observedAttributes() {
|
|
434
429
|
return [
|
|
@@ -474,9 +469,9 @@ const g = class g extends u {
|
|
|
474
469
|
s ? this.setAttribute(t, "") : this.removeAttribute(t);
|
|
475
470
|
}
|
|
476
471
|
};
|
|
477
|
-
|
|
478
|
-
let p =
|
|
479
|
-
const
|
|
472
|
+
u.accessorExclusions = [];
|
|
473
|
+
let p = u;
|
|
474
|
+
const j = [
|
|
480
475
|
"",
|
|
481
476
|
"default",
|
|
482
477
|
"auto",
|
|
@@ -485,21 +480,21 @@ const M = [
|
|
|
485
480
|
"center",
|
|
486
481
|
"baseline",
|
|
487
482
|
"stretch"
|
|
488
|
-
],
|
|
483
|
+
], M = [
|
|
489
484
|
"",
|
|
490
485
|
"default",
|
|
491
486
|
"start",
|
|
492
487
|
"end",
|
|
493
488
|
"center",
|
|
494
489
|
"stretch"
|
|
495
|
-
],
|
|
490
|
+
], T = [
|
|
496
491
|
"",
|
|
497
492
|
"default",
|
|
498
493
|
"start",
|
|
499
494
|
"end",
|
|
500
495
|
"center",
|
|
501
496
|
"stretch"
|
|
502
|
-
],
|
|
497
|
+
], C = [
|
|
503
498
|
"",
|
|
504
499
|
"1",
|
|
505
500
|
"2",
|
|
@@ -513,7 +508,7 @@ const M = [
|
|
|
513
508
|
"10",
|
|
514
509
|
"11",
|
|
515
510
|
"12"
|
|
516
|
-
],
|
|
511
|
+
], D = [
|
|
517
512
|
"",
|
|
518
513
|
"-1",
|
|
519
514
|
"0",
|
|
@@ -529,11 +524,11 @@ const M = [
|
|
|
529
524
|
"10",
|
|
530
525
|
"11",
|
|
531
526
|
"12"
|
|
532
|
-
],
|
|
527
|
+
], L = ["Xs", "S", "M", "L", "Xl"];
|
|
533
528
|
[
|
|
534
|
-
...
|
|
529
|
+
...L.map((o) => o.toLowerCase())
|
|
535
530
|
];
|
|
536
|
-
const
|
|
531
|
+
const O = [
|
|
537
532
|
"none",
|
|
538
533
|
"2xs",
|
|
539
534
|
"xs",
|
|
@@ -544,7 +539,7 @@ const E = [
|
|
|
544
539
|
"heading-to-content",
|
|
545
540
|
"page-layout-between-sections"
|
|
546
541
|
];
|
|
547
|
-
function
|
|
542
|
+
function E(o, t, s, e = "", i) {
|
|
548
543
|
const a = new CSSStyleSheet(), l = s.reduce(
|
|
549
544
|
(n, r) => n + `
|
|
550
545
|
${t(o, r)} {
|
|
@@ -592,13 +587,13 @@ function N(o, t, s, e = "", i) {
|
|
|
592
587
|
}
|
|
593
588
|
const k = new CSSStyleSheet();
|
|
594
589
|
k.replaceSync(A);
|
|
595
|
-
const
|
|
590
|
+
const N = (o, t, s) => `:host([${o}${s ? `--${s}` : ""}='${t}']) .list`, _ = "px-spacing", B = E(
|
|
596
591
|
"gap",
|
|
592
|
+
N,
|
|
593
|
+
O,
|
|
597
594
|
_,
|
|
598
|
-
E,
|
|
599
|
-
B,
|
|
600
595
|
"--list-gap"
|
|
601
|
-
),
|
|
596
|
+
), g = class g extends p {
|
|
602
597
|
template() {
|
|
603
598
|
return `
|
|
604
599
|
<div class="list" role="list">
|
|
@@ -607,7 +602,7 @@ const _ = (o, t, s) => `:host([${o}${s ? `--${s}` : ""}='${t}']) .list`, B = "px
|
|
|
607
602
|
`;
|
|
608
603
|
}
|
|
609
604
|
constructor() {
|
|
610
|
-
super(k,
|
|
605
|
+
super(k, B), this.shadowRoot.innerHTML = this.template();
|
|
611
606
|
}
|
|
612
607
|
static get observedAttributes() {
|
|
613
608
|
return ["inverted"];
|
|
@@ -665,12 +660,12 @@ const _ = (o, t, s) => `:host([${o}${s ? `--${s}` : ""}='${t}']) .list`, B = "px
|
|
|
665
660
|
t ? this.setAttribute("gap--desktop", t) : this.removeAttribute("gap--desktop");
|
|
666
661
|
}
|
|
667
662
|
};
|
|
668
|
-
|
|
669
|
-
let h =
|
|
663
|
+
g.nativeName = "div";
|
|
664
|
+
let h = g;
|
|
670
665
|
customElements.get("px-list") || customElements.define("px-list", h);
|
|
671
|
-
const
|
|
672
|
-
v.replaceSync(
|
|
673
|
-
const
|
|
666
|
+
const G = '.list-item{display:flex;gap:var(--px-spacing-xs-mobile);align-items:flex-start;font-family:var(--px-font-family);line-height:var(--px-line-height-ratio-l)}::slotted([slot="label"][inverted]){color:var(--px-color-text-neutral-inverted)}@media only screen and (min-width: 48em){.list-item{gap:var(--px-spacing-xs-tablet)}}@media only screen and (min-width: 64.0625em){.list-item{gap:var(--px-spacing-xs-laptop)}}@media only screen and (min-width: 90.0625em){.list-item{gap:var(--px-spacing-xs-desktop)}}', v = new CSSStyleSheet();
|
|
667
|
+
v.replaceSync(G);
|
|
668
|
+
const c = class c extends p {
|
|
674
669
|
template() {
|
|
675
670
|
return `
|
|
676
671
|
<div class="list-item" role="listitem">
|
|
@@ -706,8 +701,8 @@ const f = class f extends p {
|
|
|
706
701
|
t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
|
|
707
702
|
}
|
|
708
703
|
};
|
|
709
|
-
|
|
710
|
-
let d =
|
|
704
|
+
c.nativeName = "div";
|
|
705
|
+
let d = c;
|
|
711
706
|
customElements.get("px-list-item") || customElements.define("px-list-item", d);
|
|
712
707
|
export {
|
|
713
708
|
h as List,
|