@proximus/lavender-color-option 2.0.0-alpha.21 → 2.0.0-alpha.210

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.
@@ -1,17 +1,17 @@
1
1
  import { PxElement } from '@proximus/lavender-common';
2
2
  export declare const colorOptionSizeValues: string[];
3
3
  export declare class ColorOption extends PxElement<HTMLDivElement> {
4
+ protected static readonly template: HTMLTemplateElement;
4
5
  static nativeName: string;
5
- private template;
6
6
  constructor();
7
7
  static get observedAttributes(): string[];
8
8
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
9
9
  updateSize(attrName: string, oldValue: string, newValue: string, attrValues: string[]): void;
10
10
  updateDeviceColor(attrName: string, oldValue: string, newValue: string): void;
11
- get size(): string;
12
- set size(value: string);
13
- get deviceColor(): string;
14
- set deviceColor(value: string);
11
+ get size(): string | null;
12
+ set size(value: string | null);
13
+ get deviceColor(): string | null;
14
+ set deviceColor(value: string | null);
15
15
  get unavailable(): boolean;
16
16
  set unavailable(value: boolean);
17
17
  }
@@ -1,16 +1,16 @@
1
1
  import { PxElement } from '@proximus/lavender-common';
2
2
  import { ColorOption } from './ColorOption';
3
3
  export declare class ColorOptionLink extends PxElement<HTMLLinkElement> {
4
+ protected static readonly template: HTMLTemplateElement;
4
5
  static nativeName: string;
5
- private template;
6
6
  constructor();
7
7
  connectedCallback(): void;
8
8
  static get observedAttributes(): string[];
9
9
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
10
10
  clickColorOptionLink(): void;
11
11
  get $colorOption(): ColorOption;
12
- get deviceColor(): string;
13
- set deviceColor(value: string);
12
+ get deviceColor(): string | null;
13
+ set deviceColor(value: string | null);
14
14
  get unavailable(): boolean;
15
15
  set unavailable(value: boolean);
16
16
  get selected(): boolean;
@@ -0,0 +1,280 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/ColorOption.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "variable",
11
+ "name": "colorOptionSizeValues",
12
+ "type": {
13
+ "text": "array"
14
+ },
15
+ "default": "['', 'default', 'small']"
16
+ },
17
+ {
18
+ "kind": "class",
19
+ "description": "",
20
+ "name": "ColorOption",
21
+ "members": [
22
+ {
23
+ "kind": "field",
24
+ "name": "template",
25
+ "privacy": "protected",
26
+ "static": true,
27
+ "readonly": true
28
+ },
29
+ {
30
+ "kind": "field",
31
+ "name": "nativeName",
32
+ "type": {
33
+ "text": "string"
34
+ },
35
+ "static": true,
36
+ "default": "'div'"
37
+ },
38
+ {
39
+ "kind": "method",
40
+ "name": "updateSize",
41
+ "parameters": [
42
+ {
43
+ "name": "attrName",
44
+ "type": {
45
+ "text": "string"
46
+ }
47
+ },
48
+ {
49
+ "name": "oldValue",
50
+ "type": {
51
+ "text": "string"
52
+ }
53
+ },
54
+ {
55
+ "name": "newValue",
56
+ "type": {
57
+ "text": "string"
58
+ }
59
+ },
60
+ {
61
+ "name": "attrValues",
62
+ "type": {
63
+ "text": "string[]"
64
+ }
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "kind": "method",
70
+ "name": "updateDeviceColor",
71
+ "parameters": [
72
+ {
73
+ "name": "attrName",
74
+ "type": {
75
+ "text": "string"
76
+ }
77
+ },
78
+ {
79
+ "name": "oldValue",
80
+ "type": {
81
+ "text": "string"
82
+ }
83
+ },
84
+ {
85
+ "name": "newValue",
86
+ "type": {
87
+ "text": "string"
88
+ }
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "kind": "field",
94
+ "name": "size"
95
+ },
96
+ {
97
+ "kind": "field",
98
+ "name": "deviceColor"
99
+ },
100
+ {
101
+ "kind": "field",
102
+ "name": "unavailable"
103
+ }
104
+ ],
105
+ "attributes": [
106
+ {
107
+ "name": "size"
108
+ },
109
+ {
110
+ "name": "device-color"
111
+ },
112
+ {
113
+ "name": "unavailable"
114
+ }
115
+ ],
116
+ "superclass": {
117
+ "name": "PxElement",
118
+ "package": "@proximus/lavender-common"
119
+ },
120
+ "tagName": "px-color-option",
121
+ "customElement": true
122
+ }
123
+ ],
124
+ "exports": [
125
+ {
126
+ "kind": "js",
127
+ "name": "colorOptionSizeValues",
128
+ "declaration": {
129
+ "name": "colorOptionSizeValues",
130
+ "module": "src/ColorOption.ts"
131
+ }
132
+ },
133
+ {
134
+ "kind": "js",
135
+ "name": "ColorOption",
136
+ "declaration": {
137
+ "name": "ColorOption",
138
+ "module": "src/ColorOption.ts"
139
+ }
140
+ },
141
+ {
142
+ "kind": "custom-element-definition",
143
+ "name": "px-color-option",
144
+ "declaration": {
145
+ "name": "ColorOption",
146
+ "module": "src/ColorOption.ts"
147
+ }
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "kind": "javascript-module",
153
+ "path": "src/ColorOptionLink.ts",
154
+ "declarations": [
155
+ {
156
+ "kind": "class",
157
+ "description": "",
158
+ "name": "ColorOptionLink",
159
+ "members": [
160
+ {
161
+ "kind": "field",
162
+ "name": "template",
163
+ "privacy": "protected",
164
+ "static": true,
165
+ "readonly": true
166
+ },
167
+ {
168
+ "kind": "field",
169
+ "name": "nativeName",
170
+ "type": {
171
+ "text": "string"
172
+ },
173
+ "static": true,
174
+ "default": "'a'"
175
+ },
176
+ {
177
+ "kind": "method",
178
+ "name": "clickColorOptionLink"
179
+ },
180
+ {
181
+ "kind": "field",
182
+ "name": "$colorOption",
183
+ "readonly": true
184
+ },
185
+ {
186
+ "kind": "field",
187
+ "name": "deviceColor"
188
+ },
189
+ {
190
+ "kind": "field",
191
+ "name": "unavailable"
192
+ },
193
+ {
194
+ "kind": "field",
195
+ "name": "selected"
196
+ }
197
+ ],
198
+ "events": [
199
+ {
200
+ "name": "CLICK_EVENT",
201
+ "type": {
202
+ "text": "CustomEvent"
203
+ }
204
+ }
205
+ ],
206
+ "attributes": [
207
+ {
208
+ "name": "device-color"
209
+ },
210
+ {
211
+ "name": "unavailable"
212
+ },
213
+ {
214
+ "name": "selected"
215
+ }
216
+ ],
217
+ "superclass": {
218
+ "name": "PxElement",
219
+ "package": "@proximus/lavender-common"
220
+ },
221
+ "tagName": "px-color-option-link",
222
+ "customElement": true
223
+ }
224
+ ],
225
+ "exports": [
226
+ {
227
+ "kind": "js",
228
+ "name": "ColorOptionLink",
229
+ "declaration": {
230
+ "name": "ColorOptionLink",
231
+ "module": "src/ColorOptionLink.ts"
232
+ }
233
+ },
234
+ {
235
+ "kind": "custom-element-definition",
236
+ "name": "px-color-option-link",
237
+ "declaration": {
238
+ "name": "ColorOptionLink",
239
+ "module": "src/ColorOptionLink.ts"
240
+ }
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "kind": "javascript-module",
246
+ "path": "src/color-option-link.css",
247
+ "declarations": [],
248
+ "exports": []
249
+ },
250
+ {
251
+ "kind": "javascript-module",
252
+ "path": "src/color-option.css",
253
+ "declarations": [],
254
+ "exports": []
255
+ },
256
+ {
257
+ "kind": "javascript-module",
258
+ "path": "src/index.ts",
259
+ "declarations": [],
260
+ "exports": [
261
+ {
262
+ "kind": "js",
263
+ "name": "*",
264
+ "declaration": {
265
+ "name": "*",
266
+ "module": "src/ColorOption"
267
+ }
268
+ },
269
+ {
270
+ "kind": "js",
271
+ "name": "*",
272
+ "declaration": {
273
+ "name": "*",
274
+ "module": "src/ColorOptionLink"
275
+ }
276
+ }
277
+ ]
278
+ }
279
+ ]
280
+ }
package/dist/index.es.js CHANGED
@@ -1,149 +1,138 @@
1
- import { PxElement as a, checkName as p, log as b } from "@proximus/lavender-common";
2
- const u = ':host{display:inline-block;line-height:0}:host *{box-sizing:border-box}.color-option{display:inline-block;width:32px;height:32px!important;border-radius:var(--px-radius-pill);background-color:var(--color-option-device-color);border:var(--px-size-border-m) var(--px-color-border-main-default) solid}.color-option[unavailable]{position:relative}.color-option[unavailable]:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-45deg);width:44px;height:var(--px-size-border-m);background-color:var(--px-color-border-neutral-default)}.color-option--size-small{width:16px;height:16px!important;border-width:var(--px-size-border-s)}.color-option--size-small[unavailable]:before{width:22px;height:var(--px-size-border-s)}', n = new CSSStyleSheet();
3
- n.replaceSync(u);
4
- const h = ["", "default", "small"], l = class l extends a {
5
- template() {
6
- return `
7
- <slot></slot>
8
- `;
9
- }
10
- constructor() {
11
- super(n);
12
- const e = document.createElement("div");
13
- e.classList.add("color-option"), e.innerHTML = this.template(), this.shadowRoot.appendChild(e);
14
- }
15
- static get observedAttributes() {
16
- return [...super.observedAttributes, "size", "device-color", "unavailable"];
17
- }
18
- attributeChangedCallback(e, o, t) {
19
- if (o !== t)
20
- switch (e) {
21
- case "size":
22
- this.updateSize(e, o, t, h);
23
- break;
24
- case "device-color":
25
- this.updateDeviceColor(e, o, t);
26
- break;
27
- case "unavailable":
28
- this.$el.toggleAttribute("unavailable");
29
- break;
30
- default:
31
- super.attributeChangedCallback(e, o, t);
32
- break;
33
- }
34
- }
35
- updateSize(e, o, t, d) {
36
- if (!p(d, t)) {
37
- b(
38
- `${t} is not an allowed ${e} value for ${this.tagName.toLowerCase()}`
39
- );
40
- return;
41
- }
42
- o !== null && o !== "" && o !== "default" && this.$el.classList.toggle(`color-option--size-${o}`), t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`color-option--size-${t}`);
43
- }
44
- updateDeviceColor(e, o, t) {
45
- o !== null && o !== "" && this.$el.style.setProperty("--color-option-device-color", o), t !== null && t !== "" && this.$el.style.setProperty("--color-option-device-color", t);
46
- }
47
- get size() {
48
- return this.getAttribute("size");
49
- }
50
- set size(e) {
51
- e ? this.setAttribute("size", e) : this.removeAttribute("size");
52
- }
53
- get deviceColor() {
54
- return this.getAttribute("device-color");
55
- }
56
- set deviceColor(e) {
57
- e ? this.setAttribute("device-color", e) : this.removeAttribute("device-color");
58
- }
59
- get unavailable() {
60
- return this.hasAttribute("unavailable");
61
- }
62
- set unavailable(e) {
63
- e ? this.setAttribute("unavailable", "") : this.removeAttribute("unavailable");
64
- }
1
+ import { PxElement as e, checkName as t, createTemplate as n, log as r, renderTemplate as i } from "@proximus/lavender-common";
2
+ //#region src/color-option.css?inline
3
+ var a = ":host{line-height:0;display:inline-block}:host *{box-sizing:border-box}.color-option{border-radius:var(--px-radius-pill);background-color:var(--color-option-device-color);border:var(--px-size-border-m) var(--px-color-border-main-default) solid;width:32px;display:inline-block;height:32px!important}.color-option[unavailable]{position:relative}.color-option[unavailable]:before{content:\"\";width:44px;height:var(--px-size-border-m);background-color:var(--px-color-border-neutral-default);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-45deg)}.color-option--size-small{border-width:var(--px-size-border-s);width:16px;height:16px!important}.color-option--size-small[unavailable]:before{width:22px;height:var(--px-size-border-s)}", o = new CSSStyleSheet();
4
+ o.replaceSync(a);
5
+ var s = [
6
+ "",
7
+ "default",
8
+ "small"
9
+ ], c = class a extends e {
10
+ static {
11
+ this.template = n("<div class=\"color-option\"><slot></slot></div>");
12
+ }
13
+ static {
14
+ this.nativeName = "div";
15
+ }
16
+ constructor() {
17
+ super(o), i(this.shadowRoot, a.template);
18
+ }
19
+ static get observedAttributes() {
20
+ return [
21
+ ...super.observedAttributes,
22
+ "size",
23
+ "device-color",
24
+ "unavailable"
25
+ ];
26
+ }
27
+ attributeChangedCallback(e, t, n) {
28
+ if (t !== n) switch (e) {
29
+ case "size":
30
+ this.updateSize(e, t, n, s);
31
+ break;
32
+ case "device-color":
33
+ this.updateDeviceColor(e, t, n);
34
+ break;
35
+ case "unavailable":
36
+ this.$el.toggleAttribute("unavailable");
37
+ break;
38
+ default: super.attributeChangedCallback(e, t, n);
39
+ }
40
+ }
41
+ updateSize(e, n, i, a) {
42
+ t(a, i) ? (n !== null && n !== "" && n !== "default" && this.$el.classList.toggle(`color-option--size-${n}`), i !== null && i !== "" && i !== "default" && this.$el.classList.toggle(`color-option--size-${i}`)) : r(`"${i}" is not a valid ${e} value for a color option. Allowed values are: "${a.join("\", \"")}".`);
43
+ }
44
+ updateDeviceColor(e, t, n) {
45
+ t !== null && t !== "" && this.$el.style.setProperty("--color-option-device-color", t), n !== null && n !== "" && this.$el.style.setProperty("--color-option-device-color", n);
46
+ }
47
+ get size() {
48
+ return this.getAttribute("size");
49
+ }
50
+ set size(e) {
51
+ this._updateAttribute("size", e);
52
+ }
53
+ get deviceColor() {
54
+ return this.getAttribute("device-color");
55
+ }
56
+ set deviceColor(e) {
57
+ this._updateAttribute("device-color", e);
58
+ }
59
+ get unavailable() {
60
+ return this.hasAttribute("unavailable");
61
+ }
62
+ set unavailable(e) {
63
+ this._updateBooleanAttribute("unavailable", e);
64
+ }
65
65
  };
66
- l.nativeName = "div";
67
- let r = l;
68
- customElements.get("px-color-option") || customElements.define("px-color-option", r);
69
- const v = ":host{display:inline-block;line-height:0}:host *{box-sizing:border-box}.color-option-link{display:inline-block;text-decoration:none;padding:var(--px-padding-2xs-mobile);border-radius:var(--px-radius-pill);--btn-transition: all .2s ease-in-out 0s;transition:var(--btn-transition)}.color-option-link[selected]{box-shadow:inset 0 0 0 var(--px-size-border-m) var(--px-color-border-brand-default)}.color-option-link:hover{box-shadow:inset 0 0 0 var(--px-size-border-s) var(--px-color-border-neutral-default)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media only screen and (min-width: 48em){.color-option-link{padding:var(--px-padding-2xs-tablet)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media only screen and (min-width: 64.0625em){.color-option-link{padding:var(--px-padding-2xs-laptop)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media only screen and (min-width: 90.0625em){.color-option-link{padding:var(--px-padding-2xs-desktop)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}", c = new CSSStyleSheet();
70
- c.replaceSync(v);
71
- const f = "px.lavender.color-option-link.click", i = class i extends a {
72
- template() {
73
- return `
74
- <px-color-option><slot></slot></px-color-option>
75
- `;
76
- }
77
- constructor() {
78
- super(c);
79
- const e = document.createElement(i.nativeName);
80
- e.classList.add("color-option-link"), e.innerHTML = this.template(), this.shadowRoot.appendChild(e);
81
- }
82
- connectedCallback() {
83
- this.deviceColor && this.$colorOption.setAttribute("device-color", this.deviceColor), this.addEventListener("click", (e) => {
84
- e.preventDefault(), this.clickColorOptionLink();
85
- });
86
- }
87
- static get observedAttributes() {
88
- return [
89
- ...super.observedAttributes,
90
- "device-color",
91
- "unavailable",
92
- "selected"
93
- ];
94
- }
95
- attributeChangedCallback(e, o, t) {
96
- if (o !== t)
97
- switch (e) {
98
- case "device-color":
99
- this.$colorOption.setAttribute(e, t);
100
- break;
101
- case "unavailable":
102
- this.$colorOption.toggleAttribute(e);
103
- break;
104
- case "selected":
105
- this.$el.toggleAttribute("selected");
106
- break;
107
- default:
108
- super.attributeChangedCallback(e, o, t);
109
- break;
110
- }
111
- }
112
- clickColorOptionLink() {
113
- this.dispatchEvent(
114
- new CustomEvent(f, {
115
- bubbles: !0,
116
- composed: !0
117
- })
118
- );
119
- }
120
- get $colorOption() {
121
- return this.shadowRoot.querySelector("px-color-option");
122
- }
123
- get deviceColor() {
124
- return this.getAttribute("device-color");
125
- }
126
- set deviceColor(e) {
127
- e ? this.setAttribute("device-color", e) : this.removeAttribute("device-color");
128
- }
129
- get unavailable() {
130
- return this.hasAttribute("unavailable");
131
- }
132
- set unavailable(e) {
133
- e ? this.setAttribute("unavailable", "") : this.removeAttribute("unavailable");
134
- }
135
- get selected() {
136
- return this.hasAttribute("selected");
137
- }
138
- set selected(e) {
139
- e ? this.setAttribute("selected", "") : this.removeAttribute("selected");
140
- }
141
- };
142
- i.nativeName = "a";
143
- let s = i;
144
- customElements.get("px-color-option-link") || customElements.define("px-color-option-link", s);
145
- export {
146
- r as ColorOption,
147
- s as ColorOptionLink,
148
- h as colorOptionSizeValues
66
+ customElements.get("px-color-option") || customElements.define("px-color-option", c);
67
+ //#endregion
68
+ //#region src/color-option-link.css?inline
69
+ var l = ":host{line-height:0;display:inline-block}:host *{box-sizing:border-box}.color-option-link{padding:var(--px-padding-2xs-mobile);border-radius:var(--px-radius-pill);--btn-transition:all .2s ease-in-out 0s;transition:var(--btn-transition);text-decoration:none;display:inline-block}.color-option-link[selected]{box-shadow:inset 0px 0px 0px var(--px-size-border-m) var(--px-color-border-brand-default)}.color-option-link:hover{box-shadow:inset 0px 0px 0px var(--px-size-border-s) var(--px-color-border-neutral-default)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-mobile);outline:var(--px-focus-outline-mobile) solid var(--px-color-border-focus-outline-default)}@media screen and (width>=48rem){.color-option-link{padding:var(--px-padding-2xs-tablet)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-tablet);outline-width:var(--px-focus-outline-tablet)}}@media screen and (width>=64.0625rem){.color-option-link{padding:var(--px-padding-2xs-laptop)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-laptop);outline-width:var(--px-focus-outline-laptop)}}@media screen and (width>=90.0625rem){.color-option-link{padding:var(--px-padding-2xs-desktop)}.color-option-link:focus-visible{outline-offset:var(--px-focus-offset-desktop);outline-width:var(--px-focus-outline-desktop)}}", u = new CSSStyleSheet();
70
+ u.replaceSync(l);
71
+ var d = "px.lavender.color-option-link.click", f = class t extends e {
72
+ static {
73
+ this.template = n("<a class=\"color-option-link\"><px-color-option><slot></slot></px-color-option></a>");
74
+ }
75
+ static {
76
+ this.nativeName = "a";
77
+ }
78
+ constructor() {
79
+ super(u), i(this.shadowRoot, t.template);
80
+ }
81
+ connectedCallback() {
82
+ this.addEventListener("click", (e) => {
83
+ e.preventDefault(), this.clickColorOptionLink();
84
+ });
85
+ }
86
+ static get observedAttributes() {
87
+ return [
88
+ ...super.observedAttributes,
89
+ "device-color",
90
+ "unavailable",
91
+ "selected"
92
+ ];
93
+ }
94
+ attributeChangedCallback(e, t, n) {
95
+ if (t !== n) switch (e) {
96
+ case "device-color":
97
+ this.$colorOption.setAttribute(e, n);
98
+ break;
99
+ case "unavailable":
100
+ this.$colorOption.toggleAttribute(e);
101
+ break;
102
+ case "selected":
103
+ this.$el.toggleAttribute("selected");
104
+ break;
105
+ default: super.attributeChangedCallback(e, t, n);
106
+ }
107
+ }
108
+ clickColorOptionLink() {
109
+ this.dispatchEvent(new CustomEvent(d, {
110
+ bubbles: !0,
111
+ composed: !0
112
+ }));
113
+ }
114
+ get $colorOption() {
115
+ return this.shadowRoot.querySelector("px-color-option");
116
+ }
117
+ get deviceColor() {
118
+ return this.getAttribute("device-color");
119
+ }
120
+ set deviceColor(e) {
121
+ this._updateAttribute("device-color", e);
122
+ }
123
+ get unavailable() {
124
+ return this.hasAttribute("unavailable");
125
+ }
126
+ set unavailable(e) {
127
+ this._updateBooleanAttribute("unavailable", e);
128
+ }
129
+ get selected() {
130
+ return this.hasAttribute("selected");
131
+ }
132
+ set selected(e) {
133
+ this._updateBooleanAttribute("selected", e);
134
+ }
149
135
  };
136
+ customElements.get("px-color-option-link") || customElements.define("px-color-option-link", f);
137
+ //#endregion
138
+ export { c as ColorOption, f as ColorOptionLink, s as colorOptionSizeValues };
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "properties": [],
5
+ "pseudoElements": []
6
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "tags": [
5
+ {
6
+ "name": "px-color-option",
7
+ "description": "\n---\n",
8
+ "attributes": [
9
+ { "name": "size", "values": [] },
10
+ { "name": "device-color", "values": [] },
11
+ { "name": "unavailable", "values": [] }
12
+ ],
13
+ "references": []
14
+ },
15
+ {
16
+ "name": "px-color-option-link",
17
+ "description": "\n---\n\n\n### **Events:**\n - **CLICK_EVENT**",
18
+ "attributes": [
19
+ { "name": "device-color", "values": [] },
20
+ { "name": "unavailable", "values": [] },
21
+ { "name": "selected", "values": [] }
22
+ ],
23
+ "references": []
24
+ }
25
+ ]
26
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
+ "name": "@proximus/lavender-color-option",
4
+ "version": "2.0.0-alpha.210",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "px-color-option",
11
+ "description": "\n\n---\n",
12
+ "doc-url": "",
13
+ "attributes": [
14
+ { "name": "size", "value": { "type": "string" } },
15
+ { "name": "device-color", "value": { "type": "string" } },
16
+ { "name": "unavailable", "value": { "type": "string" } }
17
+ ],
18
+ "events": [],
19
+ "js": {
20
+ "properties": [
21
+ { "name": "size" },
22
+ { "name": "deviceColor" },
23
+ { "name": "unavailable" }
24
+ ],
25
+ "events": []
26
+ }
27
+ },
28
+ {
29
+ "name": "px-color-option-link",
30
+ "description": "\n\n---\n\n\n### **Events:**\n - **CLICK_EVENT**",
31
+ "doc-url": "",
32
+ "attributes": [
33
+ { "name": "device-color", "value": { "type": "string" } },
34
+ { "name": "unavailable", "value": { "type": "string" } },
35
+ { "name": "selected", "value": { "type": "string" } }
36
+ ],
37
+ "events": [{ "name": "CLICK_EVENT", "type": "CustomEvent" }],
38
+ "js": {
39
+ "properties": [
40
+ { "name": "$colorOption" },
41
+ { "name": "deviceColor" },
42
+ { "name": "unavailable" },
43
+ { "name": "selected" }
44
+ ],
45
+ "events": [{ "name": "CLICK_EVENT", "type": "CustomEvent" }]
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ "css": {
51
+ "properties": [],
52
+ "pseudo-elements": []
53
+ }
54
+ }
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-color-option",
3
- "version": "2.0.0-alpha.21",
3
+ "version": "2.0.0-alpha.210",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "clean": "rm -rf dist",
14
14
  "build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
15
15
  "test": "vitest run --coverage",
16
- "wc-manifest": "cem analyze --globs \"src/*\" --config ../custom-elements-manifest.config.js --outdir dist"
16
+ "wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"