@proximus/lavender-autocomplete 2.0.0-alpha.230 → 2.0.0-alpha.231

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
@@ -1179,12 +1179,8 @@ var Se = [
1179
1179
  this.$el.style.setProperty(`--${e}`, `url("${t}")`);
1180
1180
  }
1181
1181
  updateGradient(e, t) {
1182
- if (this.checkName(m, t)) {
1183
- let n = this.splitAttrNameFromBreakpoint(e);
1184
- e = n.attrName;
1185
- let r = n.breakpoint;
1186
- this.$el.style.setProperty(`--${e}${r}`, `linear-gradient(var(--px-color-background-gradient-${t}))`);
1187
- } else h(`"${t}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${m.join("\", \"")}".`);
1182
+ let { attrName: n, breakpoint: r } = this.splitAttrNameFromBreakpoint(e), i = `--${n}${r}`;
1183
+ t === null ? this.$el.style.removeProperty(i) : 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("\", \"")}".`);
1188
1184
  }
1189
1185
  updateBackgroundColor(e, t) {
1190
1186
  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": "2.0.0-alpha.230",
4
+ "version": "2.0.0-alpha.231",
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": "2.0.0-alpha.230",
3
+ "version": "2.0.0-alpha.231",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",