@proximus/lavender-section 2.0.0-alpha.2 → 2.0.0-alpha.21
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.es.js +8 -7
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { backgroundColorValues as a } from "@proximus/lavender-common";
|
|
2
2
|
import "@proximus/lavender-container";
|
|
3
3
|
import "@proximus/lavender-layout";
|
|
4
|
-
const
|
|
5
|
-
o.replaceSync(
|
|
6
|
-
class
|
|
4
|
+
const r = ':host{display:block}:host,:host *{box-sizing:border-box}.content-wrapper{margin-inline:var(--px-padding-s-mobile);max-width:var(--px-content-wrapper-max-width-desktop)}@media only screen and (min-width: 77em){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-mobile)}@media only screen and (min-width: 48em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}@media only screen and (min-width: 64.0625em){.overlapped{margin-bottom:calc(var(--px-overlapped-desktop) * -1)}::slotted([slot="overlap"]){margin-top:var(--px-overlapped-desktop)}}', o = new CSSStyleSheet();
|
|
5
|
+
o.replaceSync(r);
|
|
6
|
+
class d extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(), this.template = () => `
|
|
9
|
-
<px-container border-radius="none" padding-inline="none"
|
|
10
|
-
<div class="content-wrapper
|
|
9
|
+
<px-container border-radius="none" padding-inline="none">
|
|
10
|
+
<div class="content-wrapper">
|
|
11
11
|
<px-vstack gap="heading-to-content">
|
|
12
12
|
<slot name="heading"></slot>
|
|
13
13
|
<px-vstack gap="none">
|
|
@@ -22,6 +22,7 @@ class r extends HTMLElement {
|
|
|
22
22
|
`, this.attachShadow({ mode: "open" }), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [o];
|
|
23
23
|
}
|
|
24
24
|
connectedCallback() {
|
|
25
|
+
this.$container.setAttribute("background-color", this.backgroundColor), this.$slotOverlap && this.shadowRoot.firstElementChild.querySelector(".content-wrapper").classList.add("overlapped");
|
|
25
26
|
const t = this.querySelector('[slot="heading"]');
|
|
26
27
|
!this.paddingBlock && !this.paddingTop && !this.paddingBottom && !this.paddingBlockMobile && !this.paddingTopMobile && !this.paddingBottomMobile && !this.paddingBlockTablet && !this.paddingTopTablet && !this.paddingBottomTablet && !this.paddingBlockLaptop && !this.paddingTopLaptop && !this.paddingBottomLaptop && (this.$container.paddingBlock = "none"), t || this.shadowRoot.querySelector("px-vstack").setAttribute("gap", "none");
|
|
27
28
|
}
|
|
@@ -291,7 +292,7 @@ class r extends HTMLElement {
|
|
|
291
292
|
this.setAttribute("border-side--laptop", t);
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
|
-
customElements.get("px-section") || customElements.define("px-section",
|
|
295
|
+
customElements.get("px-section") || customElements.define("px-section", d);
|
|
295
296
|
export {
|
|
296
|
-
|
|
297
|
+
d as Section
|
|
297
298
|
};
|