@proximus/lavender-cell 2.0.0-alpha.206 → 2.0.0-alpha.207

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
@@ -20,11 +20,7 @@ function p(e) {
20
20
  e.getAttribute("variant") === "contained" && !e.getAttribute("background-color") && e.setAttribute("background-color", "container-light");
21
21
  }
22
22
  function m(e, t, n) {
23
- if (!r(u, n)) {
24
- a(`"${n}" is not a valid variant value for a cell. Allowed values are: "${u.join("\", \"")}".`);
25
- return;
26
- }
27
- t !== null && t !== "" && t !== "default" && e.classList.toggle(t), n !== null && n !== "" && n !== "default" && e.classList.toggle(n);
23
+ r(u, n) ? (t !== null && t !== "" && t !== "default" && e.classList.toggle(t), n !== null && n !== "" && n !== "default" && e.classList.toggle(n)) : a(`"${n}" is not a valid variant value for a cell. Allowed values are: "${u.join("\", \"")}".`);
28
24
  }
29
25
  function h(e, t, n, r = []) {
30
26
  n ? (e.setAttribute("inverted", ""), r.forEach((e) => e.setAttribute("inverted", "")), t.forEach((e) => {
@@ -738,11 +734,7 @@ var P = [
738
734
  })));
739
735
  }
740
736
  handleCheckboxPositionChange(e) {
741
- if (!this.checkName(P, e)) {
742
- a(`"${e}" is not a valid position value for ${this.tagName.toLowerCase()}. Allowed values are: "${P.join("\", \"")}".`);
743
- return;
744
- }
745
- this.$checkbox && (e === "" || e === "left" ? this.$checkbox.setAttribute("slot", "prefix") : e === "right" && this.$checkbox.setAttribute("slot", "action-indicator"));
737
+ this.checkName(P, e) ? this.$checkbox && (e === "" || e === "left" ? this.$checkbox.setAttribute("slot", "prefix") : e === "right" && this.$checkbox.setAttribute("slot", "action-indicator")) : a(`"${e}" is not a valid position value for ${this.tagName.toLowerCase()}. Allowed values are: "${P.join("\", \"")}".`);
746
738
  }
747
739
  static get formAssociated() {
748
740
  return !0;
@@ -1251,11 +1243,7 @@ var z = [
1251
1243
  })));
1252
1244
  }
1253
1245
  handleRadioPositionChange(e) {
1254
- if (!this.checkName(z, e)) {
1255
- a(`"${e}" is not a valid position value for ${this.tagName.toLowerCase()}. Allowed values are: "${z.join("\", \"")}".`);
1256
- return;
1257
- }
1258
- this.$radio && (e === "" || e === "left" ? this.$radio.setAttribute("slot", "prefix") : e === "right" && this.$radio.setAttribute("slot", "action-indicator"));
1246
+ this.checkName(z, e) ? this.$radio && (e === "" || e === "left" ? this.$radio.setAttribute("slot", "prefix") : e === "right" && this.$radio.setAttribute("slot", "action-indicator")) : a(`"${e}" is not a valid position value for ${this.tagName.toLowerCase()}. Allowed values are: "${z.join("\", \"")}".`);
1259
1247
  }
1260
1248
  static get formAssociated() {
1261
1249
  return !0;
@@ -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-cell",
4
- "version": "2.0.0-alpha.206",
4
+ "version": "2.0.0-alpha.207",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "px-cell",
11
- "description": "\n---\n",
11
+ "description": "\n\n---\n",
12
12
  "doc-url": "",
13
13
  "attributes": [
14
14
  { "name": "inverted", "value": { "type": "string" } },
@@ -55,7 +55,7 @@
55
55
  },
56
56
  {
57
57
  "name": "px-cell-button",
58
- "description": "A cell component that acts as a button.\n---\n",
58
+ "description": "A cell component that acts as a button.\n\n---\n",
59
59
  "doc-url": "",
60
60
  "attributes": [
61
61
  { "name": "inverted", "value": { "type": "string" } },
@@ -120,7 +120,7 @@
120
120
  },
121
121
  {
122
122
  "name": "px-cell-checkbox",
123
- "description": "\n---\n\n\n### **Events:**\n - **change**",
123
+ "description": "\n\n---\n\n\n### **Events:**\n - **change**",
124
124
  "doc-url": "",
125
125
  "attributes": [
126
126
  { "name": "inverted", "value": { "type": "string" } },
@@ -179,7 +179,7 @@
179
179
  },
180
180
  {
181
181
  "name": "px-cell-link",
182
- "description": "\n---\n",
182
+ "description": "\n\n---\n",
183
183
  "doc-url": "",
184
184
  "attributes": [
185
185
  { "name": "inverted", "value": { "type": "string" } },
@@ -232,7 +232,7 @@
232
232
  },
233
233
  {
234
234
  "name": "px-cell-radio",
235
- "description": "\n---\n\n\n### **Events:**\n - **change**",
235
+ "description": "\n\n---\n\n\n### **Events:**\n - **change**",
236
236
  "doc-url": "",
237
237
  "attributes": [
238
238
  { "name": "inverted", "value": { "type": "string" } },
@@ -290,7 +290,7 @@
290
290
  },
291
291
  {
292
292
  "name": "px-cell-switch",
293
- "description": "\n---\n\n\n### **Events:**\n - **change**",
293
+ "description": "\n\n---\n\n\n### **Events:**\n - **change**",
294
294
  "doc-url": "",
295
295
  "attributes": [
296
296
  { "name": "inverted", "value": { "type": "string" } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-cell",
3
- "version": "2.0.0-alpha.206",
3
+ "version": "2.0.0-alpha.207",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",