@proximus/lavender-section 1.4.19-beta.1 → 1.4.20-alpha.1
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 +3 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WithExtraAttributes as e, backgroundColorValues as t, createTemplate as n, propertyToAttributeSetter as r, renderTemplate as i } from "@proximus/lavender-common";
|
|
2
2
|
import "@proximus/lavender-container";
|
|
3
3
|
import "@proximus/lavender-layout";
|
|
4
|
-
|
|
4
|
+
//#region src/section.css?inline
|
|
5
5
|
var a = ":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 screen and (width>=77rem){.content-wrapper{margin-inline:auto}}.overlapped{margin-bottom:calc(var(--px-overlapped-mobile) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-mobile)}@media screen and (width>=48rem){.overlapped{margin-bottom:calc(var(--px-overlapped-tablet) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-tablet)}}@media screen and (width>=64.0625rem){.overlapped{margin-bottom:calc(var(--px-overlapped-laptop) * -1)}::slotted([slot=overlap]){margin-top:var(--px-overlapped-laptop)}}", o = new CSSStyleSheet();
|
|
6
6
|
o.replaceSync(a);
|
|
7
7
|
var s = class a extends e {
|
|
@@ -12,7 +12,7 @@ var s = class a extends e {
|
|
|
12
12
|
super(o), i(this.shadowRoot, a.template);
|
|
13
13
|
}
|
|
14
14
|
connectedCallback() {
|
|
15
|
-
r(this.$container, "background-color", this.backgroundColor), this.paddingBlock
|
|
15
|
+
r(this.$container, "background-color", this.backgroundColor), !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"), this.setHeadingSpacing = this.setHeadingSpacing.bind(this), this.setHeadingSpacing(), this.$slotHeading?.addEventListener("slotchange", this.setHeadingSpacing), this.toggleOverlapSpacing = this.toggleOverlapSpacing.bind(this), this.toggleOverlapSpacing(), this.$slotOverlap?.addEventListener("slotchange", this.toggleOverlapSpacing);
|
|
16
16
|
}
|
|
17
17
|
static get observedAttributes() {
|
|
18
18
|
return [
|
|
@@ -310,4 +310,5 @@ var s = class a extends e {
|
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
customElements.get("px-section") || customElements.define("px-section", s);
|
|
313
|
+
//#endregion
|
|
313
314
|
export { s as Section };
|