@proximus/lavender-section 1.0.0-alpha.10 → 1.0.0-alpha.11
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/PxSection.es.js +15 -5
- package/package.json +2 -2
package/dist/PxSection.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { bgColorValues as a } from "@proximus/lavender-common";
|
|
2
2
|
import "@proximus/lavender-container";
|
|
3
3
|
import "@proximus/lavender-layout";
|
|
4
|
-
const
|
|
5
|
-
i.replaceSync(
|
|
6
|
-
class
|
|
4
|
+
const r = ":host,:host *{box-sizing:border-box}:host .content-wrapper{margin-inline:1rem;max-width:1200px}@media only screen and (min-width: 1232px){:host .content-wrapper{margin-inline:auto}}", i = new CSSStyleSheet();
|
|
5
|
+
i.replaceSync(r);
|
|
6
|
+
class n extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(), this.template = () => `
|
|
9
9
|
<px-container border-radius="none" padding="none" background-color="${this.bgColor}">
|
|
@@ -25,6 +25,7 @@ class r extends HTMLElement {
|
|
|
25
25
|
return [
|
|
26
26
|
"background-color",
|
|
27
27
|
"background-gradient",
|
|
28
|
+
"background-image",
|
|
28
29
|
"background-image--mobile",
|
|
29
30
|
"background-image--tablet",
|
|
30
31
|
"background-image--laptop",
|
|
@@ -47,6 +48,9 @@ class r extends HTMLElement {
|
|
|
47
48
|
case "background-gradient":
|
|
48
49
|
this.$container.gradient = this.gradient;
|
|
49
50
|
break;
|
|
51
|
+
case "background-image":
|
|
52
|
+
this.$container.bgImg = e;
|
|
53
|
+
break;
|
|
50
54
|
case "background-image--mobile":
|
|
51
55
|
this.$container.bgImgMobile = e;
|
|
52
56
|
break;
|
|
@@ -85,6 +89,12 @@ class r extends HTMLElement {
|
|
|
85
89
|
set gradient(t) {
|
|
86
90
|
this.setAttribute("background-gradient", t);
|
|
87
91
|
}
|
|
92
|
+
get bgImg() {
|
|
93
|
+
return this.getAttribute("background-image");
|
|
94
|
+
}
|
|
95
|
+
set bgImg(t) {
|
|
96
|
+
this.setAttribute("background-image", t);
|
|
97
|
+
}
|
|
88
98
|
get bgImgMobile() {
|
|
89
99
|
return this.getAttribute("background-image--mobile");
|
|
90
100
|
}
|
|
@@ -134,7 +144,7 @@ class r extends HTMLElement {
|
|
|
134
144
|
this.setAttribute("padding-bottom", t);
|
|
135
145
|
}
|
|
136
146
|
}
|
|
137
|
-
customElements.define("px-section",
|
|
147
|
+
customElements.define("px-section", n);
|
|
138
148
|
export {
|
|
139
|
-
|
|
149
|
+
n as Section
|
|
140
150
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-section",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "7bfc4da367e602d38e2e3d5dab4cb901b66decde"
|
|
40
40
|
}
|