@proximus/lavender-common 1.4.4-beta.1 → 1.4.4

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 +34 -37
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -9,18 +9,17 @@ function m(i) {
9
9
  (e) => e.toLowerCase()
10
10
  );
11
11
  }
12
- const d = new CSSStyleSheet();
13
- d.replaceSync(c);
14
- const k = typeof import.meta < "u" && typeof g < "u" && !0;
15
- typeof window < "u" && (window.isComponentDebug = h);
16
- function h() {
12
+ const b = new CSSStyleSheet();
13
+ b.replaceSync(c);
14
+ const k = typeof import.meta < "u" && typeof g < "u" && !1;
15
+ typeof window < "u" && (window.isComponentDebug = d);
16
+ function d() {
17
17
  return k;
18
18
  }
19
- function v(i) {
20
- h() && console.error(i);
19
+ function x(i) {
21
20
  }
22
- typeof window < "u" && (window.isComponentDebug = h);
23
- class u extends HTMLElement {
21
+ typeof window < "u" && (window.isComponentDebug = d);
22
+ class h extends HTMLElement {
24
23
  static get observedAttributes() {
25
24
  return [
26
25
  "grow",
@@ -72,13 +71,13 @@ class u extends HTMLElement {
72
71
  }
73
72
  constructor(...t) {
74
73
  super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
75
- d,
74
+ b,
76
75
  ...t
77
76
  ];
78
77
  }
79
78
  attributeChangedCallback(t, s, e) {
80
79
  var o;
81
- if (u.observedAttributes.indexOf(t) !== -1)
80
+ if (h.observedAttributes.indexOf(t) !== -1)
82
81
  switch (t) {
83
82
  case "grow":
84
83
  case "grow--mobile":
@@ -106,7 +105,7 @@ class u extends HTMLElement {
106
105
  t,
107
106
  s,
108
107
  e,
109
- ((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ? y : w
108
+ ((o = this.parentElement) == null ? void 0 : o.localName) === "px-grid" ? w : v
110
109
  );
111
110
  break;
112
111
  case "justify-self":
@@ -118,7 +117,7 @@ class u extends HTMLElement {
118
117
  t,
119
118
  s,
120
119
  e,
121
- A
120
+ y
122
121
  );
123
122
  break;
124
123
  case "col-span":
@@ -126,22 +125,20 @@ class u extends HTMLElement {
126
125
  case "col-span--tablet":
127
126
  case "col-span--laptop":
128
127
  case "col-span--desktop":
129
- this.updateProperties(t, s, e, S);
128
+ this.updateProperties(t, s, e, A);
130
129
  break;
131
130
  case "order":
132
131
  case "order--mobile":
133
132
  case "order--tablet":
134
133
  case "order--laptop":
135
134
  case "order--desktop":
136
- this.updateProperties(t, s, e, $);
135
+ this.updateProperties(t, s, e, S);
137
136
  break;
138
137
  }
139
138
  }
140
139
  updateProperties(t, s, e, o) {
141
140
  if (o && !this.checkName(o, e)) {
142
- v(
143
- `${e} is not an allowed ${o} value for ${this.tagName.toLowerCase()}`
144
- );
141
+ `${e}${o}${this.tagName.toLowerCase()}`;
145
142
  return;
146
143
  }
147
144
  const a = t.indexOf("--") > -1, l = a ? t.split("--")[0] : t;
@@ -428,7 +425,7 @@ class u extends HTMLElement {
428
425
  this.setAttribute("order--desktop", t);
429
426
  }
430
427
  }
431
- const b = class b extends u {
428
+ const u = class u extends h {
432
429
  // nativeName: string;
433
430
  static get observedAttributes() {
434
431
  return [
@@ -474,14 +471,14 @@ const b = class b extends u {
474
471
  s ? this.setAttribute(t, "") : this.removeAttribute(t);
475
472
  }
476
473
  };
477
- b.accessorExclusions = [];
478
- let p = b;
474
+ u.accessorExclusions = [];
475
+ let p = u;
479
476
  class j extends p {
480
477
  connectedCallback() {
481
478
  this.isInsideGridOrStack && (this.$el.style.display = "block", this.$el.style.height = "100%");
482
479
  }
483
480
  }
484
- const C = ["", "default", "none", "l"], w = [
481
+ const C = ["", "default", "none", "l"], v = [
485
482
  "",
486
483
  "default",
487
484
  "auto",
@@ -490,21 +487,21 @@ const C = ["", "default", "none", "l"], w = [
490
487
  "center",
491
488
  "baseline",
492
489
  "stretch"
493
- ], y = [
490
+ ], w = [
494
491
  "",
495
492
  "default",
496
493
  "start",
497
494
  "end",
498
495
  "center",
499
496
  "stretch"
500
- ], A = [
497
+ ], y = [
501
498
  "",
502
499
  "default",
503
500
  "start",
504
501
  "end",
505
502
  "center",
506
503
  "stretch"
507
- ], S = [
504
+ ], A = [
508
505
  "",
509
506
  "1",
510
507
  "2",
@@ -518,7 +515,7 @@ const C = ["", "default", "none", "l"], w = [
518
515
  "10",
519
516
  "11",
520
517
  "12"
521
- ], $ = [
518
+ ], S = [
522
519
  "",
523
520
  "-1",
524
521
  "0",
@@ -581,10 +578,10 @@ const C = ["", "default", "none", "l"], w = [
581
578
  "title",
582
579
  "title-large",
583
580
  "subtitle"
584
- ], x = ["Xs", "S", "M", "L", "Xl"], T = [
581
+ ], $ = ["Xs", "S", "M", "L", "Xl"], T = [
585
582
  "",
586
583
  "default",
587
- ...x.map((i) => i.toLowerCase())
584
+ ...$.map((i) => i.toLowerCase())
588
585
  ], O = ["", "default", "left", "center", "right"], _ = [
589
586
  "",
590
587
  "none",
@@ -916,7 +913,7 @@ export {
916
913
  Z as AttributeBreakpointHandlerDelegate,
917
914
  p as PxElement,
918
915
  j as VerticallyExtendedElement,
919
- u as WithExtraAttributes,
916
+ h as WithExtraAttributes,
920
917
  F as addGlobalStylesheet,
921
918
  X as assetContainerImgWidthValues,
922
919
  B as backgroundColorValues,
@@ -928,13 +925,13 @@ export {
928
925
  R as boxShadowValues,
929
926
  K as checkName,
930
927
  N as colorValues,
931
- y as cssGridAlignSelfValues,
932
- S as cssGridColSpanValues,
933
- A as cssGridJustifySelfValues,
934
- $ as cssGridOrderValues,
928
+ w as cssGridAlignSelfValues,
929
+ A as cssGridColSpanValues,
930
+ y as cssGridJustifySelfValues,
931
+ S as cssGridOrderValues,
935
932
  L as cssGridPlaceSelfValues,
936
933
  Y as cssTokenBreakpoints,
937
- w as flexboxAlignSelfValues,
934
+ v as flexboxAlignSelfValues,
938
935
  M as fontsizeValues,
939
936
  D as fontweightValues,
940
937
  I as gapValues,
@@ -944,11 +941,11 @@ export {
944
941
  H as gradientValues,
945
942
  C as gridGapValues,
946
943
  z as headingValues,
947
- x as iconSizeValues,
944
+ $ as iconSizeValues,
948
945
  T as iconSizeValuesKC,
949
- h as isComponentDebug,
946
+ d as isComponentDebug,
950
947
  U as isFalsy,
951
- v as log,
948
+ x as log,
952
949
  W as noBorderRadiusValues,
953
950
  _ as paddingValues,
954
951
  O as textalignValues,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "1.4.4-beta.1",
3
+ "version": "1.4.4",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",