@proximus/lavender-content-header 2.0.0-alpha.11 → 2.0.0-alpha.12

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.es.js +9 -3
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1001,15 +1001,15 @@ class U extends HTMLElement {
1001
1001
  super(), this.isZeroSized = !1, this.growValue = "1", this.isVertical = !1;
1002
1002
  }
1003
1003
  static get observedAttributes() {
1004
- return ["grow"];
1004
+ return ["grow", "nogap"];
1005
1005
  }
1006
1006
  attributeChangedCallback(t, i, e) {
1007
1007
  t === "grow" && (this.growValue = e || "1", this.isZeroSized || (this.style.flexGrow = this.growValue), this.scheduleRecheck());
1008
1008
  }
1009
1009
  connectedCallback() {
1010
- this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.resizeObserver = new ResizeObserver(() => {
1010
+ this.growValue = this.getAttribute("grow") || "1", this.style.flexGrow = this.growValue, this.nogap && (this.resizeObserver = new ResizeObserver(() => {
1011
1011
  this.handleSizeChange();
1012
- }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck();
1012
+ }), this.isVertical = this.parentElement.localName === "px-vstack" || this.parentElement.style.flexDirection === "column", this.resizeObserver.observe(this), this.scheduleRecheck());
1013
1013
  }
1014
1014
  disconnectedCallback() {
1015
1015
  var t;
@@ -1036,6 +1036,12 @@ class U extends HTMLElement {
1036
1036
  updateParticipation() {
1037
1037
  this.isZeroSized ? (this.style.display = "none", this.style.flexGrow = "0") : (this.style.display = "", this.style.flexGrow = this.growValue);
1038
1038
  }
1039
+ get nogap() {
1040
+ return this.hasAttribute("nogap");
1041
+ }
1042
+ set nogap(t) {
1043
+ t ? this.setAttribute("nogap", "") : this.removeAttribute("nogap");
1044
+ }
1039
1045
  }
1040
1046
  customElements.get("px-spacer") || customElements.define("px-spacer", U);
1041
1047
  const N = ":host{display:block;box-sizing:border-box}slot[name=body-container]{min-height:100vh}#image-sticky-box{margin-top:-2.5em}", I = new CSSStyleSheet();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-content-header",
3
- "version": "2.0.0-alpha.11",
3
+ "version": "2.0.0-alpha.12",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",