@proximus/lavender-content-header 2.0.0-alpha.206 → 2.0.0-alpha.208

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 CHANGED
@@ -755,11 +755,7 @@ var M = [
755
755
  }
756
756
  }
757
757
  updateOverflowX(e, t, n, r) {
758
- if (!l(r, n)) {
759
- m(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
760
- return;
761
- }
762
- this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n);
758
+ l(r, n) ? this.overflowXAttributeDelegate.attributeChangedCallback(e, t, n) : m(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
763
759
  }
764
760
  updateFlexProperties(e, n, r, i) {
765
761
  r !== null && !this.checkName(i, r) && m(`"${r}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${i.join("\", \"")}".`);
@@ -772,11 +768,8 @@ var M = [
772
768
  }
773
769
  updateStyle(e, t, n, r) {
774
770
  let i = `--flex-${e}--${t}-value`, a = e === "gap";
775
- if (!n) {
776
- this.$el.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
777
- return;
778
- }
779
- if (a && r && r.includes(n)) {
771
+ if (!n) this.$el.style.removeProperty(i), a && this.style.removeProperty(`--host-gap--${t}`);
772
+ else if (a && r && r.includes(n)) {
780
773
  let e = `var(--px-spacing-${n}-${t === "laptop" ? "desktop" : t})`;
781
774
  this.$el.style.setProperty(i, e), this.style.setProperty(`--host-gap--${t}`, e);
782
775
  } else this.$el.style.setProperty(i, n);
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@proximus/lavender-content-header",
4
- "version": "2.0.0-alpha.206",
4
+ "version": "2.0.0-alpha.208",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "px-content-header",
11
- "description": "\n---\n",
11
+ "description": "\n\n---\n",
12
12
  "doc-url": "",
13
13
  "attributes": [
14
14
  { "name": "background-color", "value": { "type": "string" } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-content-header",
3
- "version": "2.0.0-alpha.206",
3
+ "version": "2.0.0-alpha.208",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",