@proximus/lavender-common 0.1.0-alpha.53 → 0.1.0-alpha.55

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.js +396 -98
  2. package/package.json +4 -3
package/dist/index.js CHANGED
@@ -1,14 +1,15 @@
1
- const a = "::slotted(*[grow]){flex-grow:var(--flex-grow-value)}::slotted(*[shrink]){flex-shrink:var(--flex-shrink-value)}::slotted(*[basis]){flex-basis:var(--flex-basis-value)}::slotted(*[align-self]){align-self:var(--flex-align-self-value)}::slotted(*[grow--mobile]){flex-grow:var(--flex-grow--mobile-value)}::slotted(*[shrink--mobile]){flex-shrink:var(--flex-shrink--mobile-value)}::slotted(*[basis--mobile]){flex-basis:var(--flex-basis--mobile-value)}::slotted(*[align-self--mobile]){align-self:var(--flex-align-self--mobile-value)}@media screen and (min-width: 768px){::slotted(*[grow--tablet]){flex-grow:var(--flex-grow--tablet-value)}::slotted(*[shrink--tablet]){flex-shrink:var(--flex-shrink--tablet-value)}::slotted(*[basis--tablet]){flex-basis:var(--flex-basis--tablet-value)}::slotted(*[align-self--tablet]){align-self:var(--flex-align-self--tablet-value)}}@media screen and (min-width: 1025px){::slotted(*[grow--laptop]){flex-grow:var(--flex-grow--laptop-value)}::slotted(*[shrink--laptop]){flex-shrink:var(--flex-shrink--laptop-value)}::slotted(*[basis--laptop]){flex-basis:var(--flex-basis--laptop-value)}::slotted(*[align-self--laptop]){align-self:var(--flex-align-self--laptop-value)}}@media screen and (min-width: 1441px){::slotted(*[grow--desktop]){flex-grow:var(--flex-grow--desktop-value)}::slotted(*[shrink--desktop]){flex-shrink:var(--flex-shrink--desktop-value)}::slotted(*[basis--desktop]){flex-basis:var(--flex-basis--desktop-value)}::slotted(*[align-self--desktop]){align-self:var(--flex-align-self--desktop-value)}}@media only screen and (min-width: 0px) and (max-width: 767px){::slotted(*[hidden--mobile]){display:none}}@media only screen and (min-width: 768px) and (max-width: 1024px){::slotted(*[hidden--tablet]){display:none}}@media only screen and (min-width: 1025px) and (max-width: 1440px){::slotted(*[hidden--laptop]){display:none}}@media only screen and (min-width: 1441px){::slotted(*[hidden--desktop]){display:none}}";
2
- function r(e) {
3
- const t = document.createElement(e), s = Object.getPrototypeOf(t);
4
- return Object.getOwnPropertyNames(s);
1
+ const u = "::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--mobile-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--mobile-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--mobile-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--mobile-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--mobile-value) / span var(--col-span--mobile-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--mobile-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--mobile-value)}::slotted(*[hidden]),::slotted(*[hidden--mobile]){display:none}::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 (min-width: 768px){::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--tablet-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--tablet-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--tablet-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--tablet-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--tablet-value) / span var(--col-span--tablet-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--tablet-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--tablet-value)}::slotted(*[hidden]),::slotted(*[hidden--tablet]){display:none}}@media screen and (min-width: 1025px){::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--laptop-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--laptop-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--laptop-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--laptop-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--laptop-value) / span var(--col-span--laptop-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--laptop-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--laptop-value)}::slotted(*[hidden]),::slotted(*[hidden--laptop]){display:none}}@media screen and (min-width: 1441px){::slotted(*[grow]),::slotted(*[grow--mobile]),::slotted(*[grow--tablet]),::slotted(*[grow--laptop]),::slotted(*[grow--desktop]){flex-grow:var(--grow--desktop-value)}::slotted(*[shrink]),::slotted(*[shrink--mobile]),::slotted(*[shrink--tablet]),::slotted(*[shrink--laptop]),::slotted(*[shrink--desktop]){flex-shrink:var(--shrink--desktop-value)}::slotted(*[basis]),::slotted(*[basis--mobile]),::slotted(*[basis--tablet]),::slotted(*[basis--laptop]),::slotted(*[basis--desktop]){flex-basis:var(--basis--desktop-value)}::slotted(*[align-self]),::slotted(*[align-self--mobile]),::slotted(*[align-self--tablet]),::slotted(*[align-self--laptop]),::slotted(*[align-self--desktop]){align-self:var(--align-self--desktop-value)}::slotted(*[col-span]),::slotted(*[col-span--mobile]),::slotted(*[col-span--tablet]),::slotted(*[col-span--laptop]),::slotted(*[col-span--desktop]){grid-column:span var(--col-span--desktop-value) / span var(--col-span--desktop-value)}::slotted(*[justify-self]),::slotted(*[justify-self--mobile]),::slotted(*[justify-self--tablet]),::slotted(*[justify-self--laptop]),::slotted(*[justify-self--desktop]){justify-self:var(--justify-self--desktop-value)}::slotted(*[order]),::slotted(*[order--mobile]),::slotted(*[order--tablet]),::slotted(*[order--laptop]),::slotted(*[order--desktop]){order:var(--order--desktop-value)}::slotted(*[hidden]),::slotted(*[hidden--desktop]){display:none}}";
2
+ function d(o) {
3
+ const t = document.createElement(o), e = Object.getPrototypeOf(t);
4
+ return Object.getOwnPropertyNames(e);
5
5
  }
6
- const l = new CSSStyleSheet();
7
- l.replaceSync(a);
8
- class o extends HTMLElement {
6
+ const b = new CSSStyleSheet();
7
+ b.replaceSync(u);
8
+ class i extends HTMLElement {
9
9
  static get observedAttributes() {
10
10
  return [
11
11
  "grow",
12
+ "grow--mobile",
12
13
  "grow--tablet",
13
14
  "grow--laptop",
14
15
  "grow--desktop",
@@ -23,61 +24,161 @@ class o extends HTMLElement {
23
24
  "basis--laptop",
24
25
  "basis--desktop",
25
26
  "align-self",
27
+ "align-self--mobile",
28
+ "align-self--tablet",
29
+ "align-self--laptop",
30
+ "align-self--desktop",
31
+ "justify-self",
32
+ "justify-self--mobile",
33
+ "justify-self--tablet",
34
+ "justify-self--laptop",
35
+ "justify-self--desktop",
36
+ "hidden",
26
37
  "hidden--mobile",
27
38
  "hidden--tablet",
28
39
  "hidden--laptop",
29
- "hidden--desktop"
40
+ "hidden--desktop",
41
+ "shown--sr",
42
+ "col-span",
43
+ "col-span--mobile",
44
+ "col-span--tablet",
45
+ "col-span--laptop",
46
+ "col-span--desktop",
47
+ "order",
48
+ "order--mobile",
49
+ "order--tablet",
50
+ "order--laptop",
51
+ "order--desktop"
30
52
  ];
31
53
  }
32
54
  constructor(...t) {
33
55
  super(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.shadowRoot.adoptedStyleSheets = [
34
- l,
56
+ b,
35
57
  ...t
36
58
  ];
37
59
  }
38
- attributeChangedCallback(t, s, i) {
39
- if (o.observedAttributes.indexOf(t) !== -1)
40
- if (i === null)
41
- this.style.removeProperty(t);
42
- else
43
- switch (t) {
44
- case "grow":
45
- case "shrink":
46
- case "basis":
47
- case "grow--mobile":
48
- case "grow--tablet":
49
- case "grow--laptop":
50
- case "grow--desktop":
51
- case "shrink--mobile":
52
- case "shrink--tablet":
53
- case "shrink--laptop":
54
- case "shrink--desktop":
55
- case "basis--mobile":
56
- case "basis--tablet":
57
- case "basis--laptop":
58
- case "basis--desktop":
59
- case "align-self":
60
- this.style.setProperty(`--flex-${t}-value`, i);
61
- break;
62
- }
60
+ attributeChangedCallback(t, e, s) {
61
+ if (i.observedAttributes.indexOf(t) !== -1)
62
+ switch (t) {
63
+ case "grow":
64
+ case "grow--mobile":
65
+ case "grow--tablet":
66
+ case "grow--laptop":
67
+ case "grow--desktop":
68
+ case "shrink":
69
+ case "shrink--mobile":
70
+ case "shrink--tablet":
71
+ case "shrink--laptop":
72
+ case "shrink--desktop":
73
+ case "basis":
74
+ case "basis--mobile":
75
+ case "basis--tablet":
76
+ case "basis--laptop":
77
+ case "basis--desktop":
78
+ this.updateProperties(t, e, s, null);
79
+ break;
80
+ case "align-self":
81
+ case "align-self--mobile":
82
+ case "align-self--tablet":
83
+ case "align-self--laptop":
84
+ case "align-self--desktop":
85
+ this.updateProperties(
86
+ t,
87
+ e,
88
+ s,
89
+ this.isGrid ? h : g
90
+ );
91
+ break;
92
+ case "justify-self":
93
+ case "justify-self--mobile":
94
+ case "justify-self--tablet":
95
+ case "justify-self--laptop":
96
+ case "justify-self--desktop":
97
+ this.updateProperties(
98
+ t,
99
+ e,
100
+ s,
101
+ c
102
+ );
103
+ break;
104
+ case "col-span":
105
+ case "col-span--mobile":
106
+ case "col-span--tablet":
107
+ case "col-span--laptop":
108
+ case "col-span--desktop":
109
+ this.updateProperties(t, e, s, f);
110
+ break;
111
+ case "order":
112
+ case "order--mobile":
113
+ case "order--tablet":
114
+ case "order--laptop":
115
+ case "order--desktop":
116
+ this.updateProperties(t, e, s, k);
117
+ break;
118
+ }
119
+ }
120
+ updateProperties(t, e, s, n) {
121
+ if (n && !this.checkName(n, s)) {
122
+ console.error(`Bad ${t} value for`, this.$el);
123
+ return;
124
+ }
125
+ const p = t.indexOf("--") > -1, l = p ? t.split("--")[0] : t, r = [];
126
+ if (!p)
127
+ this.getAttribute(l + "--mobile") || r.push("mobile"), this.getAttribute(l + "--tablet") || r.push("tablet"), this.getAttribute(l + "--laptop") || r.push("laptop"), this.getAttribute(l + "--desktop") || r.push("desktop"), r.forEach((a) => {
128
+ i.prototype.updateStyle.call(
129
+ this,
130
+ l,
131
+ a,
132
+ e
133
+ ), i.prototype.updateStyle.call(
134
+ this,
135
+ l,
136
+ a,
137
+ s
138
+ );
139
+ });
140
+ else {
141
+ const a = t.split("--")[1];
142
+ i.prototype.updateStyle.call(
143
+ this,
144
+ l,
145
+ a,
146
+ e
147
+ ), i.prototype.updateStyle.call(
148
+ this,
149
+ l,
150
+ a,
151
+ s
152
+ );
153
+ }
154
+ }
155
+ updateStyle(t, e, s) {
156
+ s !== null && s !== "" && s !== "default" && this.style.setProperty(
157
+ `--${t}--${e}-value`,
158
+ s
159
+ );
160
+ }
161
+ checkName(t, e) {
162
+ return t.includes(e);
63
163
  }
64
- get grow() {
65
- return this.getAttribute("grow");
164
+ get $el() {
165
+ return this;
66
166
  }
67
- set grow(t) {
68
- this.setAttribute("grow", t);
167
+ get $parentElementName() {
168
+ var t;
169
+ return (t = this.parentElement) == null ? void 0 : t.tagName.toLowerCase();
69
170
  }
70
- get shrink() {
71
- return this.getAttribute("shrink");
171
+ get isGrid() {
172
+ return this.$parentElementName === "px-grid";
72
173
  }
73
- set shrink(t) {
74
- this.setAttribute("shrink", t);
174
+ get isStack() {
175
+ return this.$parentElementName === "px-stack";
75
176
  }
76
- get basis() {
77
- return this.getAttribute("basis");
177
+ get grow() {
178
+ return this.getAttribute("grow");
78
179
  }
79
- set basis(t) {
80
- this.setAttribute("basis", t);
180
+ set grow(t) {
181
+ this.setAttribute("grow", t);
81
182
  }
82
183
  get growMobile() {
83
184
  return this.getAttribute("grow--mobile");
@@ -103,6 +204,12 @@ class o extends HTMLElement {
103
204
  set growDesktop(t) {
104
205
  this.setAttribute("grow--desktop", t);
105
206
  }
207
+ get shrink() {
208
+ return this.getAttribute("shrink");
209
+ }
210
+ set shrink(t) {
211
+ this.setAttribute("shrink", t);
212
+ }
106
213
  get shrinkMobile() {
107
214
  return this.getAttribute("shrink--mobile");
108
215
  }
@@ -127,6 +234,12 @@ class o extends HTMLElement {
127
234
  set shrinkDesktop(t) {
128
235
  this.setAttribute("shrink--desktop", t);
129
236
  }
237
+ get basis() {
238
+ return this.getAttribute("basis");
239
+ }
240
+ set basis(t) {
241
+ this.setAttribute("basis", t);
242
+ }
130
243
  get basisMobile() {
131
244
  return this.getAttribute("basis--mobile");
132
245
  }
@@ -157,8 +270,59 @@ class o extends HTMLElement {
157
270
  set alignSelf(t) {
158
271
  this.setAttribute("align-self", t);
159
272
  }
160
- get $el() {
161
- return this;
273
+ get alignSelfMobile() {
274
+ return this.getAttribute("align-self--mobile");
275
+ }
276
+ set alignSelfMobile(t) {
277
+ this.setAttribute("align-self--mobile", t);
278
+ }
279
+ get alignSelfTablet() {
280
+ return this.getAttribute("align-self--tablet");
281
+ }
282
+ set alignSelfTablet(t) {
283
+ this.setAttribute("align-self--tablet", t);
284
+ }
285
+ get alignSelfLaptop() {
286
+ return this.getAttribute("align-self--laptop");
287
+ }
288
+ set alignSelfLaptop(t) {
289
+ this.setAttribute("align-self--laptop", t);
290
+ }
291
+ get alignSelfDesktop() {
292
+ return this.getAttribute("align-self--desktop");
293
+ }
294
+ set alignSelfDesktop(t) {
295
+ this.setAttribute("align-self--desktop", t);
296
+ }
297
+ get justifySelf() {
298
+ return this.getAttribute("justify-self");
299
+ }
300
+ set justifySelf(t) {
301
+ this.setAttribute("justify-self", t);
302
+ }
303
+ get justifySelfMobile() {
304
+ return this.getAttribute("justify-self--mobile");
305
+ }
306
+ set justifySelfMobile(t) {
307
+ this.setAttribute("justify-self--mobile", t);
308
+ }
309
+ get justifySelfTablet() {
310
+ return this.getAttribute("justify-self--tablet");
311
+ }
312
+ set justifySelfTablet(t) {
313
+ this.setAttribute("justify-self--tablet", t);
314
+ }
315
+ get justifySelfLaptop() {
316
+ return this.getAttribute("justify-self--laptop");
317
+ }
318
+ set justifySelfLaptop(t) {
319
+ this.setAttribute("justify-self--laptop", t);
320
+ }
321
+ get justifySelfDesktop() {
322
+ return this.getAttribute("justify-self--desktop");
323
+ }
324
+ set justifySelfDesktop(t) {
325
+ this.setAttribute("justify-self--desktop", t);
162
326
  }
163
327
  get hiddenMobile() {
164
328
  return this.getAttribute("hidden--mobile");
@@ -184,42 +348,166 @@ class o extends HTMLElement {
184
348
  set hiddenDesktop(t) {
185
349
  this.setAttribute("hidden--desktop", t);
186
350
  }
351
+ get colSpan() {
352
+ return this.getAttribute("col-span");
353
+ }
354
+ set colSpan(t) {
355
+ this.setAttribute("col-span", t);
356
+ }
357
+ get colSpanMobile() {
358
+ return this.getAttribute("col-span--mobile");
359
+ }
360
+ set colSpanMobile(t) {
361
+ this.setAttribute("col-span--mobile", t);
362
+ }
363
+ get colSpanTablet() {
364
+ return this.getAttribute("col-span--tablet");
365
+ }
366
+ set colSpanTablet(t) {
367
+ this.setAttribute("col-span--tablet", t);
368
+ }
369
+ get colSpanLaptop() {
370
+ return this.getAttribute("col-span--laptop");
371
+ }
372
+ set colSpanLaptop(t) {
373
+ this.setAttribute("col-span--laptop", t);
374
+ }
375
+ get colSpanDesktop() {
376
+ return this.getAttribute("col-span--desktop");
377
+ }
378
+ set colSpanDesktop(t) {
379
+ this.setAttribute("col-span--desktop", t);
380
+ }
381
+ get order() {
382
+ return this.getAttribute("order");
383
+ }
384
+ set order(t) {
385
+ this.setAttribute("order", t);
386
+ }
387
+ get orderMobile() {
388
+ return this.getAttribute("order--mobile");
389
+ }
390
+ set orderMobile(t) {
391
+ this.setAttribute("order--mobile", t);
392
+ }
393
+ get orderTablet() {
394
+ return this.getAttribute("order--tablet");
395
+ }
396
+ set orderTablet(t) {
397
+ this.setAttribute("order--tablet", t);
398
+ }
399
+ get orderLaptop() {
400
+ return this.getAttribute("order--laptop");
401
+ }
402
+ set orderLaptop(t) {
403
+ this.setAttribute("order--laptop", t);
404
+ }
405
+ get orderDesktop() {
406
+ return this.getAttribute("order--desktop");
407
+ }
408
+ set orderDesktop(t) {
409
+ this.setAttribute("order--desktop", t);
410
+ }
187
411
  }
188
- class n extends o {
412
+ class m extends i {
189
413
  static get observedAttributes() {
190
414
  return [
191
415
  ...super.observedAttributes,
192
- ...r(this.nativeName)
416
+ ...d(this.nativeName)
193
417
  ];
194
418
  }
195
- attributeChangedCallback(t, s, i) {
196
- super.attributeChangedCallback(t, s, i), i === null ? this.$el.toggleAttribute(t) : this.$el.setAttribute(t, i);
419
+ attributeChangedCallback(t, e, s) {
420
+ super.attributeChangedCallback(t, e, s), s === null ? this.$el.toggleAttribute(t) : this.$el.setAttribute(t, s);
197
421
  }
198
422
  constructor(...t) {
199
423
  super(...t), this.nativeName = Object.getPrototypeOf(this).constructor.nativeName;
200
424
  }
201
425
  connectedCallback() {
202
- for (const t of r(this.nativeName))
203
- t !== "constructor" && Object.defineProperty(this, t, {
426
+ var t;
427
+ for (const e of d(this.nativeName))
428
+ e !== "constructor" && Object.defineProperty(this, e, {
204
429
  get() {
205
- return this.$el[t];
430
+ return this.$el[e];
206
431
  },
207
432
  set(s) {
208
- this.$el[t] !== s && (this.$el[t] = s);
433
+ this.$el[e] !== s && (this.$el[e] = s);
209
434
  }
210
435
  });
436
+ if (this.isGrid || this.isStack) {
437
+ const e = (t = this.parentElement) == null ? void 0 : t.getAttribute("direction");
438
+ this.$el.style.display = "block", (this.isGrid || this.isStack && e === "row") && (this.$el.style.height = "100%");
439
+ }
211
440
  }
212
441
  get $el() {
213
442
  return this.shadowRoot.querySelector(this.nativeName);
214
443
  }
215
444
  }
216
- const p = [
445
+ const y = [
217
446
  "",
218
447
  "default",
219
448
  "inside-section-none",
220
449
  "inside-section-default",
221
450
  "inside-section-l"
222
- ], d = [
451
+ ], g = [
452
+ "",
453
+ "default",
454
+ "auto",
455
+ "flex-start",
456
+ "flex-end",
457
+ "center",
458
+ "baseline",
459
+ "stretch"
460
+ ], h = [
461
+ "",
462
+ "default",
463
+ "start",
464
+ "end",
465
+ "center",
466
+ "stretch"
467
+ ], c = [
468
+ "",
469
+ "default",
470
+ "start",
471
+ "end",
472
+ "center",
473
+ "stretch"
474
+ ], f = [
475
+ "",
476
+ "1",
477
+ "2",
478
+ "3",
479
+ "4",
480
+ "5",
481
+ "6",
482
+ "7",
483
+ "8",
484
+ "9",
485
+ "10",
486
+ "11",
487
+ "12"
488
+ ], k = [
489
+ "",
490
+ "1",
491
+ "2",
492
+ "3",
493
+ "4",
494
+ "5",
495
+ "6",
496
+ "7",
497
+ "8",
498
+ "9",
499
+ "10",
500
+ "11",
501
+ "12"
502
+ ], A = [
503
+ "",
504
+ "default",
505
+ "auto",
506
+ "start",
507
+ "end",
508
+ "center",
509
+ "stretch"
510
+ ], w = [
223
511
  "",
224
512
  "default",
225
513
  "inherit",
@@ -235,7 +523,7 @@ const p = [
235
523
  "heading-l",
236
524
  "heading-m",
237
525
  "heading-s"
238
- ], u = [
526
+ ], v = [
239
527
  "",
240
528
  "default",
241
529
  "inherit",
@@ -253,7 +541,7 @@ const p = [
253
541
  "purpose-error",
254
542
  "purpose-unlimited",
255
543
  "purpose-promo"
256
- ], b = [
544
+ ], j = [
257
545
  "",
258
546
  "default",
259
547
  "inherit",
@@ -261,7 +549,7 @@ const p = [
261
549
  "bold",
262
550
  "extrabold",
263
551
  "light"
264
- ], h = [
552
+ ], S = [
265
553
  "",
266
554
  "default",
267
555
  "2xs",
@@ -271,7 +559,7 @@ const p = [
271
559
  "l",
272
560
  "xl",
273
561
  "2xl"
274
- ], g = ["", "default", "left", "center", "right"], c = ["", "none", "2xs", "xs", "s", "m", "l"], m = ["", "none", "s", "m", "l"], f = ["", "none", "main", "pill"], k = [
562
+ ], x = ["", "default", "left", "center", "right"], M = ["", "none", "2xs", "xs", "s", "m", "l"], L = ["", "none", "s", "m", "l"], T = ["", "none", "main", "pill"], D = [
275
563
  "none",
276
564
  "container-main",
277
565
  "container-brand",
@@ -282,7 +570,7 @@ const p = [
282
570
  "purpose-warning",
283
571
  "purpose-error",
284
572
  "purpose-unlimited"
285
- ], x = [
573
+ ], $ = [
286
574
  "",
287
575
  "all",
288
576
  "top",
@@ -291,7 +579,7 @@ const p = [
291
579
  "left",
292
580
  "block",
293
581
  "inline"
294
- ], w = [
582
+ ], C = [
295
583
  "",
296
584
  "none",
297
585
  "container-neutral-bare",
@@ -317,7 +605,7 @@ const p = [
317
605
  "purpose-info",
318
606
  "purpose-eco",
319
607
  "purpose-notification"
320
- ], v = ["", "none", "s", "m", "l", "xl"], A = [
608
+ ], N = ["", "none", "s", "m", "l", "xl"], P = [
321
609
  "",
322
610
  "default",
323
611
  "title-4xl",
@@ -328,7 +616,7 @@ const p = [
328
616
  "title-m",
329
617
  "title-s",
330
618
  "subtitle"
331
- ], y = [
619
+ ], G = [
332
620
  "",
333
621
  "purple-top-red",
334
622
  "purple-top-magenta",
@@ -378,54 +666,64 @@ const p = [
378
666
  "color-bottom-right-blue",
379
667
  "color-bottom-right-turquoise",
380
668
  "color-bottom-right-green"
381
- ], S = [
669
+ ], V = [
382
670
  "",
383
671
  "all",
384
672
  "top",
385
673
  "right",
386
674
  "bottom",
387
675
  "left"
388
- ], V = [
676
+ ], O = [
389
677
  "",
390
678
  "default",
391
679
  "xs",
392
680
  "s",
393
681
  "l",
394
682
  "2xl"
395
- ], C = ["", "default", "s", "m", "l"];
396
- function M(e) {
683
+ ], q = ["", "default", "s", "m", "l"];
684
+ function E(o) {
397
685
  const t = document.createElement("style");
398
- t.innerHTML = e, document.head.appendChild(t);
686
+ t.innerHTML = o, document.head.appendChild(t);
399
687
  }
400
- function L(e) {
401
- return typeof e == "string" && (e === "false" || e === "0" || e === "null") || typeof e == "boolean" && !e;
688
+ function R(o) {
689
+ return typeof o == "string" && (o === "false" || o === "0" || o === "null") || typeof o == "boolean" && !o;
402
690
  }
403
- function T() {
691
+ function z() {
404
692
  return window.matchMedia("only screen and (min-width: 768px)").matches ? "tablet" : window.matchMedia("only screen and (min-width: 1025px)").matches ? "laptop" : "mobile";
405
693
  }
694
+ function B(o, t) {
695
+ return o.includes(t);
696
+ }
406
697
  export {
407
- n as PxElement,
408
- o as WithFlexAttributes,
409
- M as addGlobalStylesheet,
410
- V as assetContainerIconSizeValues,
411
- C as assetContainerImgWidthValues,
412
- w as backgroundColorValues,
413
- k as borderColorValues,
414
- f as borderRadiusValues,
415
- x as borderSideValues,
416
- m as borderValues,
417
- v as boxShadowValues,
418
- u as colorValues,
419
- d as fontsizeValues,
420
- b as fontweightValues,
421
- r as getSupportedAttributeNames,
422
- T as getViewportFormat,
423
- y as gradientValues,
424
- p as gridGapValues,
425
- A as headingValues,
426
- h as iconSizeValues,
427
- L as isFalsy,
428
- S as noBorderRadiusValues,
429
- c as paddingValues,
430
- g as textalignValues
698
+ m as PxElement,
699
+ i as WithExtraAttributes,
700
+ E as addGlobalStylesheet,
701
+ O as assetContainerIconSizeValues,
702
+ q as assetContainerImgWidthValues,
703
+ C as backgroundColorValues,
704
+ D as borderColorValues,
705
+ T as borderRadiusValues,
706
+ $ as borderSideValues,
707
+ L as borderValues,
708
+ N as boxShadowValues,
709
+ B as checkName,
710
+ v as colorValues,
711
+ h as cssGridAlignSelfValues,
712
+ f as cssGridColSpanValues,
713
+ c as cssGridJustifySelfValues,
714
+ k as cssGridOrderValues,
715
+ A as cssGridPlaceSelfValues,
716
+ g as flexboxAlignSelfValues,
717
+ w as fontsizeValues,
718
+ j as fontweightValues,
719
+ d as getSupportedAttributeNames,
720
+ z as getViewportFormat,
721
+ G as gradientValues,
722
+ y as gridGapValues,
723
+ P as headingValues,
724
+ S as iconSizeValues,
725
+ R as isFalsy,
726
+ V as noBorderRadiusValues,
727
+ M as paddingValues,
728
+ x as textalignValues
431
729
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "0.1.0-alpha.53",
3
+ "version": "0.1.0-alpha.55",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -24,7 +24,7 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "f746b7598c629d125506755f7bb0a5b7b520bcec",
27
+ "gitHead": "b8dcbe6979ae4c984cf44a4ce6d86b087446e711",
28
28
  "lerna": {
29
29
  "command": {
30
30
  "publish": {
@@ -33,7 +33,8 @@
33
33
  "package.json",
34
34
  "dist/*.js",
35
35
  "dist/*.cjs",
36
- "dist/css/**/*.css"
36
+ "dist/css/**/*.css",
37
+ "dist/js/**/*.js"
37
38
  ]
38
39
  }
39
40
  }