@proximus/lavender-layout 1.1.0-alpha.1 → 1.1.0-alpha.2
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.js +37 -34
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { WithFlexAttributes as
|
|
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)}}",
|
|
3
|
-
|
|
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
4
|
const g = [
|
|
5
5
|
// Vertical
|
|
6
6
|
"between-section-vertical",
|
|
@@ -30,9 +30,9 @@ const g = [
|
|
|
30
30
|
"component-compact-horizontal-mobile",
|
|
31
31
|
"component-default-horizontal-mobile"
|
|
32
32
|
];
|
|
33
|
-
class
|
|
33
|
+
class r extends o {
|
|
34
34
|
constructor() {
|
|
35
|
-
super(
|
|
35
|
+
super(s), this.template = `<div class="flex-container">
|
|
36
36
|
<slot></slot>
|
|
37
37
|
</div>`, this.shadowRoot.innerHTML = this.template;
|
|
38
38
|
}
|
|
@@ -318,8 +318,8 @@ class o extends s {
|
|
|
318
318
|
return this.shadowRoot.querySelector(".flex-container");
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
|
-
customElements.get("px-stack") || customElements.define("px-stack",
|
|
322
|
-
class d extends
|
|
321
|
+
customElements.get("px-stack") || customElements.define("px-stack", r);
|
|
322
|
+
class d extends r {
|
|
323
323
|
constructor() {
|
|
324
324
|
super();
|
|
325
325
|
}
|
|
@@ -328,7 +328,7 @@ class d extends o {
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
customElements.get("px-vstack") || customElements.define("px-vstack", d);
|
|
331
|
-
class b extends
|
|
331
|
+
class b extends r {
|
|
332
332
|
constructor() {
|
|
333
333
|
super();
|
|
334
334
|
}
|
|
@@ -360,7 +360,7 @@ class u extends HTMLElement {
|
|
|
360
360
|
customElements.define("px-spacer", u);
|
|
361
361
|
const h = "slot[name=heading]{display:block;margin-top:1rem;margin-bottom:1rem}", n = new CSSStyleSheet();
|
|
362
362
|
n.replaceSync(h);
|
|
363
|
-
class m extends
|
|
363
|
+
class m extends o {
|
|
364
364
|
constructor() {
|
|
365
365
|
super(n), this.template = `
|
|
366
366
|
<section>
|
|
@@ -393,12 +393,12 @@ class m extends s {
|
|
|
393
393
|
customElements.define("px-section-damien", m);
|
|
394
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
395
|
l.replaceSync(x);
|
|
396
|
-
class f extends
|
|
396
|
+
class f extends o {
|
|
397
397
|
constructor() {
|
|
398
398
|
super(l), this.template = (t) => `
|
|
399
|
-
<px-container
|
|
399
|
+
<px-container border-radius="none" padding="none">
|
|
400
400
|
<px-vstack>
|
|
401
|
-
<px-container id="header-container"
|
|
401
|
+
<px-container id="header-container" border-radius="none">
|
|
402
402
|
<px-hstack>
|
|
403
403
|
<px-spacer></px-spacer>
|
|
404
404
|
<px-vstack
|
|
@@ -414,14 +414,14 @@ class f extends s {
|
|
|
414
414
|
</px-container>
|
|
415
415
|
<px-container
|
|
416
416
|
id="image-container"
|
|
417
|
-
|
|
417
|
+
border-radius="none"
|
|
418
418
|
padding="none"
|
|
419
|
-
|
|
419
|
+
padding-top="xl"
|
|
420
420
|
id="image-box"
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
421
|
+
background-size="cover"
|
|
422
|
+
background-position="top center"
|
|
423
|
+
padding-bottom="xl"
|
|
424
|
+
border-radius="none"
|
|
425
425
|
bgimg="${this.backgroundImage}"
|
|
426
426
|
>
|
|
427
427
|
<px-hstack>
|
|
@@ -434,7 +434,7 @@ class f extends s {
|
|
|
434
434
|
</px-container>
|
|
435
435
|
${t ? ` <px-hstack>
|
|
436
436
|
<px-spacer></px-spacer>
|
|
437
|
-
<px-container
|
|
437
|
+
<px-container border-radius="none" box-shadow="xl" id="image-sticky-box" border="s" grow="${this.grow}" basis="${this.basis}" border-radius="m">
|
|
438
438
|
<px-vstack gap="1rem">
|
|
439
439
|
<slot name="image-sticky-container"></slot>
|
|
440
440
|
</px-vstack>
|
|
@@ -444,10 +444,10 @@ class f extends s {
|
|
|
444
444
|
<px-container
|
|
445
445
|
id="body-container"
|
|
446
446
|
id="main"
|
|
447
|
-
|
|
447
|
+
background-color="${this.backgroundColor}"
|
|
448
448
|
padding="none"
|
|
449
|
-
|
|
450
|
-
|
|
449
|
+
padding-top="xl"
|
|
450
|
+
padding-bottom="xl"
|
|
451
451
|
>
|
|
452
452
|
<px-hstack>
|
|
453
453
|
<px-spacer></px-spacer>
|
|
@@ -464,12 +464,12 @@ class f extends s {
|
|
|
464
464
|
</px-container>
|
|
465
465
|
<px-container
|
|
466
466
|
id="contact-container"
|
|
467
|
-
|
|
467
|
+
border-radius="none"
|
|
468
468
|
id="main"
|
|
469
|
-
|
|
469
|
+
background-color="weak"
|
|
470
470
|
padding="none"
|
|
471
|
-
|
|
472
|
-
|
|
471
|
+
padding-top="xl"
|
|
472
|
+
padding-bottom="xl"
|
|
473
473
|
>
|
|
474
474
|
<px-hstack>
|
|
475
475
|
<px-spacer></px-spacer>
|
|
@@ -481,11 +481,11 @@ class f extends s {
|
|
|
481
481
|
</px-container>
|
|
482
482
|
<px-container
|
|
483
483
|
id="footer-container"
|
|
484
|
-
|
|
485
|
-
|
|
484
|
+
background-color="none"
|
|
485
|
+
border-radius="none"
|
|
486
486
|
style="background-color: rgb(108, 66, 156)"
|
|
487
|
-
|
|
488
|
-
|
|
487
|
+
padding-top="xl"
|
|
488
|
+
padding-bottom="xl"
|
|
489
489
|
>
|
|
490
490
|
<px-hstack>
|
|
491
491
|
<px-spacer></px-spacer>
|
|
@@ -564,14 +564,17 @@ class f extends s {
|
|
|
564
564
|
if (i !== e)
|
|
565
565
|
switch (t) {
|
|
566
566
|
case "background-image":
|
|
567
|
-
this.$imageContainer.setAttribute(
|
|
567
|
+
this.$imageContainer.setAttribute(
|
|
568
|
+
"background-image-mobile",
|
|
569
|
+
e
|
|
570
|
+
);
|
|
568
571
|
break;
|
|
569
572
|
case "gap":
|
|
570
573
|
this.$bodyVStackContainer.setAttribute("gap", e);
|
|
571
574
|
break;
|
|
572
575
|
case "background-color":
|
|
573
576
|
this.$bodyContainer.setAttribute(
|
|
574
|
-
"
|
|
577
|
+
"background-color",
|
|
575
578
|
p.indexOf(e) > 0 ? e : "none"
|
|
576
579
|
);
|
|
577
580
|
break;
|
|
@@ -586,7 +589,7 @@ class f extends s {
|
|
|
586
589
|
}
|
|
587
590
|
}
|
|
588
591
|
handlePaddingVerticalChange(t) {
|
|
589
|
-
this.$headerContainer.setAttribute("
|
|
592
|
+
this.$headerContainer.setAttribute("padding-top", t), this.$footerContainer.setAttribute("padding-bottom", t);
|
|
590
593
|
}
|
|
591
594
|
handlePaddingHorizontalChange(t) {
|
|
592
595
|
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;
|
|
@@ -598,7 +601,7 @@ export {
|
|
|
598
601
|
f as Page,
|
|
599
602
|
m as Section,
|
|
600
603
|
u as Spacer,
|
|
601
|
-
|
|
604
|
+
r as Stack,
|
|
602
605
|
d as VStack,
|
|
603
606
|
g as gapValues
|
|
604
607
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-layout",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.2",
|
|
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": "
|
|
27
|
+
"gitHead": "08fb9ddab89cd17f18333bee8be670cf03f369d5",
|
|
28
28
|
"lerna": {
|
|
29
29
|
"command": {
|
|
30
30
|
"publish": {
|