@proximus/lavender-list 2.0.0-alpha.137 → 2.0.0-alpha.139
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 +52 -47
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var $ = (
|
|
2
|
-
throw TypeError(
|
|
1
|
+
var $ = (r) => {
|
|
2
|
+
throw TypeError(r);
|
|
3
3
|
};
|
|
4
|
-
var O = (
|
|
5
|
-
var S = (
|
|
6
|
-
var p = (
|
|
7
|
-
const N = ".list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}", _ = ":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" };
|
|
8
|
-
function B(
|
|
9
|
-
const t = document.createElement(
|
|
4
|
+
var O = (r, t, e) => t.has(r) || $("Cannot " + e);
|
|
5
|
+
var S = (r, t, e) => t.has(r) ? $("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
6
|
+
var p = (r, t, e) => (O(r, t, "access private method"), e);
|
|
7
|
+
const N = ".list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}", _ = ":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" };
|
|
8
|
+
function B(r) {
|
|
9
|
+
const t = document.createElement(r), e = Object.getPrototypeOf(t);
|
|
10
10
|
return Object.getOwnPropertyNames(e);
|
|
11
11
|
}
|
|
12
|
-
function G(
|
|
13
|
-
const t = document.createElement(
|
|
12
|
+
function G(r) {
|
|
13
|
+
const t = document.createElement(r), e = Object.getPrototypeOf(t);
|
|
14
14
|
return Object.getOwnPropertyNames(e).map(
|
|
15
15
|
(s) => s.toLowerCase()
|
|
16
16
|
);
|
|
@@ -18,15 +18,15 @@ function G(o) {
|
|
|
18
18
|
const C = new CSSStyleSheet();
|
|
19
19
|
C.replaceSync(_);
|
|
20
20
|
const h = typeof import.meta < "u" && typeof x < "u" ? x : void 0, P = (h == null ? void 0 : h.VITE_COMPONENT_DEBUG) === "true" || (h == null ? void 0 : h.DEV) === !0;
|
|
21
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
22
|
-
function
|
|
21
|
+
typeof window < "u" && (window.isComponentDebug = k);
|
|
22
|
+
function k() {
|
|
23
23
|
return P;
|
|
24
24
|
}
|
|
25
|
-
function T(
|
|
26
|
-
|
|
25
|
+
function T(r) {
|
|
26
|
+
k() && console.error(r);
|
|
27
27
|
}
|
|
28
|
-
typeof window < "u" && (window.isComponentDebug =
|
|
29
|
-
class
|
|
28
|
+
typeof window < "u" && (window.isComponentDebug = k);
|
|
29
|
+
class v extends HTMLElement {
|
|
30
30
|
static get observedAttributes() {
|
|
31
31
|
return [
|
|
32
32
|
"grow",
|
|
@@ -75,7 +75,12 @@ class k extends HTMLElement {
|
|
|
75
75
|
"order--laptop",
|
|
76
76
|
"order--desktop",
|
|
77
77
|
"sticky-top",
|
|
78
|
-
"sticky-bottom"
|
|
78
|
+
"sticky-bottom",
|
|
79
|
+
"word-break-all",
|
|
80
|
+
"word-break-all--mobile",
|
|
81
|
+
"word-break-all--tablet",
|
|
82
|
+
"word-break-all--laptop",
|
|
83
|
+
"word-break-all--desktop"
|
|
79
84
|
];
|
|
80
85
|
}
|
|
81
86
|
constructor(...t) {
|
|
@@ -86,7 +91,7 @@ class k extends HTMLElement {
|
|
|
86
91
|
}
|
|
87
92
|
attributeChangedCallback(t, e, s) {
|
|
88
93
|
var i;
|
|
89
|
-
if (
|
|
94
|
+
if (v.observedAttributes.indexOf(t) !== -1)
|
|
90
95
|
switch (t) {
|
|
91
96
|
case "grow":
|
|
92
97
|
case "grow--mobile":
|
|
@@ -433,7 +438,7 @@ class k extends HTMLElement {
|
|
|
433
438
|
this.setAttribute("order--desktop", t);
|
|
434
439
|
}
|
|
435
440
|
}
|
|
436
|
-
const A = class A extends
|
|
441
|
+
const A = class A extends v {
|
|
437
442
|
// nativeName: string;
|
|
438
443
|
static get observedAttributes() {
|
|
439
444
|
return [
|
|
@@ -538,7 +543,7 @@ const R = [
|
|
|
538
543
|
"12"
|
|
539
544
|
], z = ["Xs", "S", "M", "L", "Xl"];
|
|
540
545
|
[
|
|
541
|
-
...z.map((
|
|
546
|
+
...z.map((r) => r.toLowerCase())
|
|
542
547
|
];
|
|
543
548
|
const W = [
|
|
544
549
|
"none",
|
|
@@ -551,46 +556,46 @@ const W = [
|
|
|
551
556
|
"heading-to-content",
|
|
552
557
|
"page-layout-between-sections"
|
|
553
558
|
];
|
|
554
|
-
function I(
|
|
559
|
+
function I(r, t, e, s = "", i, l = r) {
|
|
555
560
|
const n = new CSSStyleSheet(), d = e.reduce(
|
|
556
|
-
(E,
|
|
557
|
-
${t(l,
|
|
558
|
-
${
|
|
559
|
-
${`${i}:var(--${s}-${
|
|
561
|
+
(E, o) => E + `
|
|
562
|
+
${t(l, o)} {
|
|
563
|
+
${r}: var(--${s}-${o}-desktop);
|
|
564
|
+
${`${i}:var(--${s}-${o}-desktop)`}
|
|
560
565
|
}
|
|
561
566
|
/* Mobile only - max 767px */
|
|
562
567
|
@media only screen and (max-width: 47.938rem) {
|
|
563
|
-
${t(l,
|
|
564
|
-
${
|
|
565
|
-
${`${i}: var(--${s}-${
|
|
568
|
+
${t(l, o)} {
|
|
569
|
+
${r}: var(--${s}-${o}-mobile);
|
|
570
|
+
${`${i}: var(--${s}-${o}-mobile)`}
|
|
566
571
|
}
|
|
567
572
|
}
|
|
568
|
-
${t(l,
|
|
573
|
+
${t(l, o, "mobile")} {
|
|
569
574
|
/* Mobile only - max 767px */
|
|
570
575
|
@media only screen and (max-width: 47.938rem) {
|
|
571
|
-
${
|
|
572
|
-
${`${i}: var(--${s}-${
|
|
576
|
+
${r}: var(--${s}-${o}-mobile) !important;
|
|
577
|
+
${`${i}: var(--${s}-${o}-mobile)`}
|
|
573
578
|
}
|
|
574
579
|
}
|
|
575
|
-
${t(l,
|
|
580
|
+
${t(l, o, "tablet")} {
|
|
576
581
|
/* Tablet - min 768px max 1024px */
|
|
577
582
|
@media only screen and (min-width: 48rem) and (max-width: 64rem) {
|
|
578
|
-
${
|
|
579
|
-
${`${i}: var(--${s}-${
|
|
583
|
+
${r}: var(--${s}-${o}-desktop) !important;
|
|
584
|
+
${`${i}: var(--${s}-${o}-desktop)`}
|
|
580
585
|
}
|
|
581
586
|
}
|
|
582
|
-
${t(l,
|
|
587
|
+
${t(l, o, "laptop")} {
|
|
583
588
|
/* Laptop - 1025px*/
|
|
584
589
|
@media only screen and (min-width: 64.0625rem) {
|
|
585
|
-
${
|
|
586
|
-
${`${i}: var(--${s}-${
|
|
590
|
+
${r}: var(--${s}-${o}-desktop) !important;
|
|
591
|
+
${`${i}: var(--${s}-${o}-desktop)`}
|
|
587
592
|
}
|
|
588
593
|
}
|
|
589
|
-
${t(l,
|
|
594
|
+
${t(l, o, "desktop")} {
|
|
590
595
|
/* Desktop - 1025px*/
|
|
591
596
|
@media only screen and (min-width: 64.0625rem) {
|
|
592
|
-
${
|
|
593
|
-
${`${i}: var(--${s}-${
|
|
597
|
+
${r}: var(--${s}-${o}-desktop) !important;
|
|
598
|
+
${`${i}: var(--${s}-${o}-desktop)`}
|
|
594
599
|
}
|
|
595
600
|
}`,
|
|
596
601
|
""
|
|
@@ -599,7 +604,7 @@ function I(o, t, e, s = "", i, l = o) {
|
|
|
599
604
|
}
|
|
600
605
|
const J = '.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);color:var(--px-color-text-neutral-default)}.list-item[inverted]{color:var(--px-color-text-neutral-inverted)}:host([variant="ul"]) .list-item,:host([variant="ol"]) .list-item{display:list-item;margin-left:var(--px-spacing-default-mobile)}:host([variant="ul"]) .list-item{list-style-type:disc}:host([variant="ol"]) .list-item{counter-set:list-item var(--item-index, 0);list-style-type:decimal}@media screen and (min-width: 48rem){.list-item{gap:var(--px-spacing-xs-tablet)}}@media screen and (min-width: 64.0625rem){.list-item{gap:var(--px-spacing-xs-laptop)}}@media screen and (min-width: 90.0625rem){.list-item{gap:var(--px-spacing-xs-desktop)}}', D = new CSSStyleSheet();
|
|
601
606
|
D.replaceSync(J);
|
|
602
|
-
const M = "px-list-item-connected",
|
|
607
|
+
const M = "px-list-item-connected", w = class w extends b {
|
|
603
608
|
template() {
|
|
604
609
|
return `
|
|
605
610
|
<div class="list-item" role="listitem">
|
|
@@ -643,12 +648,12 @@ const M = "px-list-item-connected", y = class y extends b {
|
|
|
643
648
|
t ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
|
|
644
649
|
}
|
|
645
650
|
};
|
|
646
|
-
|
|
647
|
-
let u =
|
|
651
|
+
w.nativeName = "div";
|
|
652
|
+
let u = w;
|
|
648
653
|
customElements.get("px-list-item") || customElements.define("px-list-item", u);
|
|
649
654
|
const L = new CSSStyleSheet();
|
|
650
655
|
L.replaceSync(N);
|
|
651
|
-
const j = ["", "ul", "ol"], F = (
|
|
656
|
+
const j = ["", "ul", "ol"], F = (r, t, e) => `:host([${r}${e ? `--${e}` : ""}='${t}']) .list`, K = "px-spacing", Q = I(
|
|
652
657
|
"gap",
|
|
653
658
|
F,
|
|
654
659
|
W,
|
|
@@ -656,7 +661,7 @@ const j = ["", "ul", "ol"], F = (o, t, e) => `:host([${o}${e ? `--${e}` : ""}='$
|
|
|
656
661
|
"--list-gap"
|
|
657
662
|
);
|
|
658
663
|
var a, g, f, m;
|
|
659
|
-
const
|
|
664
|
+
const y = class y extends b {
|
|
660
665
|
constructor() {
|
|
661
666
|
super(L, Q);
|
|
662
667
|
S(this, a);
|
|
@@ -752,8 +757,8 @@ a = new WeakSet(), g = function() {
|
|
|
752
757
|
const i = this.$children[s];
|
|
753
758
|
e !== null ? (i.setAttribute("variant", e), e === "ol" ? i.style.setProperty("--item-index", String(s + 1)) : i.style.removeProperty("--item-index")) : (i.removeAttribute("variant"), i.style.removeProperty("--item-index"));
|
|
754
759
|
}
|
|
755
|
-
},
|
|
756
|
-
let c =
|
|
760
|
+
}, y.nativeName = "div";
|
|
761
|
+
let c = y;
|
|
757
762
|
customElements.get("px-list") || customElements.define("px-list", c);
|
|
758
763
|
export {
|
|
759
764
|
M as LIST_ITEM_CONNECTED_EVENT,
|