@proximus/lavender-layout 1.1.0-alpha.2 → 1.1.0-alpha.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.js +26 -63
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { WithFlexAttributes as o, bgColorValues as p } from "@proximus/lavender-common";
2
- const c = ".flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction-mobile-value);gap:var(--flex-gap-mobile-value);flex-wrap:var(--flex-wrap-mobile-value);justify-content:var(--flex-justify-content-mobile-value);align-items:var(--flex-align-items-mobile-value)}@media screen and (min-width: 768px){.flex-container{flex-direction:var(--flex-direction-tablet-value);gap:var(--flex-gap-tablet-value);flex-wrap:var(--flex-wrap-tablet-value);justify-content:var(--flex-justify-content-tablet-value);align-items:var(--flex-align-items-tablet-value)}}@media screen and (min-width: 1025px){.flex-container{flex-direction:var(--flex-direction-laptop-value);gap:var(--flex-gap-laptop-value);flex-wrap:var(--flex-wrap-laptop-value);justify-content:var(--flex-justify-content-laptop-value);align-items:var(--flex-align-items-laptop-value)}}@media screen and (min-width: 1441px){.flex-container{flex-direction:var(--flex-direction-desktop-value);gap:var(--flex-gap-desktop-value);flex-wrap:var(--flex-wrap-desktop-value);justify-content:var(--flex-justify-content-desktop-value);align-items:var(--flex-align-items-desktop-value)}}", s = new CSSStyleSheet();
3
- s.replaceSync(c);
4
- const g = [
1
+ import { WithFlexAttributes as r, bgColorValues as l } from "@proximus/lavender-common";
2
+ const p = ".flex-container{display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:var(--flex-direction-mobile-value);gap:var(--flex-gap-mobile-value);flex-wrap:var(--flex-wrap-mobile-value);justify-content:var(--flex-justify-content-mobile-value);align-items:var(--flex-align-items-mobile-value)}@media screen and (min-width: 768px){.flex-container{flex-direction:var(--flex-direction-tablet-value);gap:var(--flex-gap-tablet-value);flex-wrap:var(--flex-wrap-tablet-value);justify-content:var(--flex-justify-content-tablet-value);align-items:var(--flex-align-items-tablet-value)}}@media screen and (min-width: 1025px){.flex-container{flex-direction:var(--flex-direction-laptop-value);gap:var(--flex-gap-laptop-value);flex-wrap:var(--flex-wrap-laptop-value);justify-content:var(--flex-justify-content-laptop-value);align-items:var(--flex-align-items-laptop-value)}}@media screen and (min-width: 1441px){.flex-container{flex-direction:var(--flex-direction-desktop-value);gap:var(--flex-gap-desktop-value);flex-wrap:var(--flex-wrap-desktop-value);justify-content:var(--flex-justify-content-desktop-value);align-items:var(--flex-align-items-desktop-value)}}", s = new CSSStyleSheet();
3
+ s.replaceSync(p);
4
+ const c = [
5
5
  // Vertical
6
6
  "between-section-vertical",
7
7
  "between-options-vertical",
@@ -30,7 +30,7 @@ const g = [
30
30
  "component-compact-horizontal-mobile",
31
31
  "component-default-horizontal-mobile"
32
32
  ];
33
- class r extends o {
33
+ class o extends r {
34
34
  constructor() {
35
35
  super(s), this.template = `<div class="flex-container">
36
36
  <slot></slot>
@@ -168,7 +168,7 @@ class r extends o {
168
168
  }
169
169
  }
170
170
  getGapCSSVariable(t) {
171
- return g.includes(t) ? `var(--px-spacing-${t})` : t;
171
+ return c.includes(t) ? `var(--px-spacing-${t})` : t;
172
172
  }
173
173
  get direction() {
174
174
  return this.getAttribute("direction");
@@ -318,8 +318,8 @@ class r extends o {
318
318
  return this.shadowRoot.querySelector(".flex-container");
319
319
  }
320
320
  }
321
- customElements.get("px-stack") || customElements.define("px-stack", r);
322
- class d extends r {
321
+ customElements.get("px-stack") || customElements.define("px-stack", o);
322
+ class d extends o {
323
323
  constructor() {
324
324
  super();
325
325
  }
@@ -328,7 +328,7 @@ class d extends r {
328
328
  }
329
329
  }
330
330
  customElements.get("px-vstack") || customElements.define("px-vstack", d);
331
- class b extends r {
331
+ class g extends o {
332
332
  constructor() {
333
333
  super();
334
334
  }
@@ -336,8 +336,8 @@ class b extends r {
336
336
  super.connectedCallback(), this.direction = "row", this.directionMobile = "row", this.directionTablet = "row", this.directionLaptop = "row", this.directionDesktop = "row";
337
337
  }
338
338
  }
339
- customElements.get("px-hstack") || customElements.define("px-hstack", b);
340
- class u extends HTMLElement {
339
+ customElements.get("px-hstack") || customElements.define("px-hstack", g);
340
+ class b extends HTMLElement {
341
341
  constructor() {
342
342
  super();
343
343
  }
@@ -357,45 +357,12 @@ class u extends HTMLElement {
357
357
  this.setAttribute("grow", t);
358
358
  }
359
359
  }
360
- customElements.define("px-spacer", u);
361
- const h = "slot[name=heading]{display:block;margin-top:1rem;margin-bottom:1rem}", n = new CSSStyleSheet();
362
- n.replaceSync(h);
363
- class m extends o {
360
+ customElements.define("px-spacer", b);
361
+ const u = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", n = new CSSStyleSheet();
362
+ n.replaceSync(u);
363
+ class h extends r {
364
364
  constructor() {
365
- super(n), this.template = `
366
- <section>
367
- <slot name="heading"></slot>
368
- <px-stack direction="column" gap="1rem">
369
- <slot></slot>
370
- </px-stack>
371
- </section>`, this.shadowRoot.innerHTML = this.template;
372
- }
373
- static get observedAttributes() {
374
- return [...super.observedAttributes, "gap"];
375
- }
376
- attributeChangedCallback(t, i, e) {
377
- if (t === "gap" && i !== e) {
378
- this.$el.gap = e;
379
- return;
380
- }
381
- super.attributeChangedCallback(t, i, e);
382
- }
383
- get gap() {
384
- return this.getAttribute("gap");
385
- }
386
- set gap(t) {
387
- this.setAttribute("gap", t);
388
- }
389
- get $el() {
390
- return this.shadowRoot.querySelector('px-stack[direction="column"]');
391
- }
392
- }
393
- customElements.define("px-section-damien", m);
394
- const x = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5rem}", l = new CSSStyleSheet();
395
- l.replaceSync(x);
396
- class f extends o {
397
- constructor() {
398
- super(l), this.template = (t) => `
365
+ super(n), this.template = (t) => `
399
366
  <px-container border-radius="none" padding="none">
400
367
  <px-vstack>
401
368
  <px-container id="header-container" border-radius="none">
@@ -466,7 +433,7 @@ class f extends o {
466
433
  id="contact-container"
467
434
  border-radius="none"
468
435
  id="main"
469
- background-color="weak"
436
+ background-color="container-weak"
470
437
  padding="none"
471
438
  padding-top="xl"
472
439
  padding-bottom="xl"
@@ -481,7 +448,7 @@ class f extends o {
481
448
  </px-container>
482
449
  <px-container
483
450
  id="footer-container"
484
- background-color="none"
451
+ background-color="container-none"
485
452
  border-radius="none"
486
453
  style="background-color: rgb(108, 66, 156)"
487
454
  padding-top="xl"
@@ -564,10 +531,7 @@ class f extends o {
564
531
  if (i !== e)
565
532
  switch (t) {
566
533
  case "background-image":
567
- this.$imageContainer.setAttribute(
568
- "background-image-mobile",
569
- e
570
- );
534
+ this.$imageContainer.setAttribute("background-image", e);
571
535
  break;
572
536
  case "gap":
573
537
  this.$bodyVStackContainer.setAttribute("gap", e);
@@ -575,7 +539,7 @@ class f extends o {
575
539
  case "background-color":
576
540
  this.$bodyContainer.setAttribute(
577
541
  "background-color",
578
- p.indexOf(e) > 0 ? e : "none"
542
+ l.indexOf(e) > 0 ? e : "none"
579
543
  );
580
544
  break;
581
545
  case "padding-vertical":
@@ -595,13 +559,12 @@ class f extends o {
595
559
  this.$headerContainer.paddingLeft = t, this.$headerContainer.paddingRight = t, this.$bodyContainer.paddingLeft = t, this.$bodyContainer.paddingRight = t, this.$contactContainer.paddingLeft = t, this.$contactContainer.paddingRight = t, this.$footerContainer.paddingLeft = t, this.$footerContainer.paddingRight = t, this.$imageContainer.paddingLeft = t, this.$imageContainer.paddingRight = t;
596
560
  }
597
561
  }
598
- customElements.get("px-page") === void 0 && customElements.define("px-page", f);
562
+ customElements.get("px-page") === void 0 && customElements.define("px-page", h);
599
563
  export {
600
- b as HStack,
601
- f as Page,
602
- m as Section,
603
- u as Spacer,
604
- r as Stack,
564
+ g as HStack,
565
+ h as Page,
566
+ b as Spacer,
567
+ o as Stack,
605
568
  d as VStack,
606
- g as gapValues
569
+ c as gapValues
607
570
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-layout",
3
- "version": "1.1.0-alpha.2",
3
+ "version": "1.1.0-alpha.4",
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": "08fb9ddab89cd17f18333bee8be670cf03f369d5",
27
+ "gitHead": "ed8a4de0e426c1a90028306fc874cf3409db4459",
28
28
  "lerna": {
29
29
  "command": {
30
30
  "publish": {