@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.
Files changed (2) hide show
  1. package/dist/index.es.js +38 -43
  2. 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 m = new CSSStyleSheet();
13
- m.replaceSync(w);
14
- const x = typeof import.meta < "u" && typeof y < "u" && !0;
15
- typeof window < "u" && (window.isComponentDebug = b);
16
- function b() {
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
- function j(o) {
20
- b() && console.error(o);
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
- m,
72
+ f,
76
73
  ...t
77
74
  ];
78
75
  }
79
76
  attributeChangedCallback(t, s, e) {
80
77
  var i;
81
- if (u.observedAttributes.indexOf(t) !== -1)
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" ? T : M
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
- C
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, D);
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, L);
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
- j(
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 g = class g extends u {
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
- g.accessorExclusions = [];
478
- let p = g;
479
- const M = [
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
- ], T = [
483
+ ], M = [
489
484
  "",
490
485
  "default",
491
486
  "start",
492
487
  "end",
493
488
  "center",
494
489
  "stretch"
495
- ], C = [
490
+ ], T = [
496
491
  "",
497
492
  "default",
498
493
  "start",
499
494
  "end",
500
495
  "center",
501
496
  "stretch"
502
- ], D = [
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
- ], L = [
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
- ], O = ["Xs", "S", "M", "L", "Xl"];
527
+ ], L = ["Xs", "S", "M", "L", "Xl"];
533
528
  [
534
- ...O.map((o) => o.toLowerCase())
529
+ ...L.map((o) => o.toLowerCase())
535
530
  ];
536
- const E = [
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 N(o, t, s, e = "", i) {
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 _ = (o, t, s) => `:host([${o}${s ? `--${s}` : ""}='${t}']) .list`, B = "px-spacing", G = N(
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
- ), c = class c extends p {
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, G), this.shadowRoot.innerHTML = this.template();
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
- c.nativeName = "div";
669
- let h = c;
663
+ g.nativeName = "div";
664
+ let h = g;
670
665
  customElements.get("px-list") || customElements.define("px-list", h);
671
- const R = '.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();
672
- v.replaceSync(R);
673
- const f = class f extends p {
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
- f.nativeName = "div";
710
- let d = f;
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-list",
3
- "version": "1.4.3-beta.2",
3
+ "version": "1.4.3",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",