@proximus/lavender-autocomplete 1.4.20-alpha.6 → 1.4.20-alpha.7

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
@@ -1192,12 +1192,12 @@ var Se = [
1192
1192
  this.$el.style.setProperty(`--${e}`, `url("${t}")`);
1193
1193
  }
1194
1194
  updateGradient(e, t) {
1195
- if (this.checkName(m, t)) {
1196
- let n = this.splitAttrNameFromBreakpoint(e);
1197
- e = n.attrName;
1198
- let r = n.breakpoint;
1199
- this.$el.style.setProperty(`--${e}${r}`, `linear-gradient(var(--px-color-background-gradient-${t}))`);
1200
- } else h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${m.join("\", \"")}".`);
1195
+ let { attrName: n, breakpoint: r } = this.splitAttrNameFromBreakpoint(e), i = `--${n}${r}`;
1196
+ if (t === null) {
1197
+ this.$el.style.removeProperty(i);
1198
+ return;
1199
+ }
1200
+ this.checkName(m, t) ? this.$el.style.setProperty(i, `linear-gradient(var(--px-color-background-gradient-${t}))`) : h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${m.join("\", \"")}".`);
1201
1201
  }
1202
1202
  updateBackgroundColor(e, t) {
1203
1203
  let n = t.startsWith("surface-");
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@proximus/lavender-autocomplete",
4
- "version": "1.4.20-alpha.6",
4
+ "version": "1.4.20-alpha.7",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-autocomplete",
3
- "version": "1.4.20-alpha.6",
3
+ "version": "1.4.20-alpha.7",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",