@proximus/lavender-tag 2.0.0-alpha.24 → 2.0.0-alpha.243

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/Tag.d.ts CHANGED
@@ -1,17 +1,36 @@
1
1
  import { PxElement } from '@proximus/lavender-common';
2
2
  import { type ButtonIcon } from '@proximus/lavender-button-icon';
3
3
  import '@proximus/lavender-button-icon';
4
+ export declare const tagSizeValues: string[];
5
+ export declare const tagStateValues: string[];
4
6
  export declare class Tag extends PxElement<HTMLDivElement> {
7
+ protected static readonly template: HTMLTemplateElement;
5
8
  static nativeName: string;
6
- private template;
9
+ static nativeAttributes: {};
7
10
  constructor();
8
11
  connectedCallback(): void;
9
12
  static get observedAttributes(): string[];
10
13
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
11
- get $iconSlot(): HTMLSlotElement;
12
- get $btnIcon(): ButtonIcon;
13
- get dismissible(): string;
14
- set dismissible(value: string);
15
- get inverted(): string;
16
- set inverted(value: string);
14
+ updateStateStyles(oldValue: string, newValue: string, attributeValues: string[]): void;
15
+ getStateIcon(state: string): "" | "checkmark_fill" | "minus_fill" | "exclamation_mark_fill";
16
+ updateStateIconLabel(newValue: string): void;
17
+ updateStateIconFrom(newValue: string): void;
18
+ styleBeforeIcon(): void;
19
+ styleAfterBtnIcon(): void;
20
+ get $slottedBeforeIcon(): HTMLSlotElement;
21
+ get $slotBefore(): HTMLSlotElement;
22
+ get $slottedAfterBtnIcon(): ButtonIcon;
23
+ get $slotAfter(): HTMLSlotElement;
24
+ get size(): string;
25
+ set size(value: string);
26
+ get state(): string;
27
+ set state(value: string);
28
+ get dismissible(): boolean;
29
+ set dismissible(value: boolean);
30
+ get inverted(): boolean;
31
+ set inverted(value: boolean);
32
+ get stateIconAriaLabel(): string;
33
+ set stateIconAriaLabel(value: string);
34
+ get stateIconFrom(): string;
35
+ set stateIconFrom(value: string);
17
36
  }
@@ -0,0 +1,264 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/Tag.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "variable",
11
+ "name": "tagSizeValues",
12
+ "type": {
13
+ "text": "array"
14
+ },
15
+ "default": "['', 's', 'm']"
16
+ },
17
+ {
18
+ "kind": "variable",
19
+ "name": "tagStateValues",
20
+ "type": {
21
+ "text": "array"
22
+ },
23
+ "default": "['', 'success', 'error', 'warning']"
24
+ },
25
+ {
26
+ "kind": "class",
27
+ "description": "",
28
+ "name": "Tag",
29
+ "members": [
30
+ {
31
+ "kind": "field",
32
+ "name": "template",
33
+ "privacy": "protected",
34
+ "static": true,
35
+ "readonly": true
36
+ },
37
+ {
38
+ "kind": "field",
39
+ "name": "nativeName",
40
+ "type": {
41
+ "text": "string"
42
+ },
43
+ "static": true,
44
+ "default": "'div'"
45
+ },
46
+ {
47
+ "kind": "field",
48
+ "name": "nativeAttributes",
49
+ "type": {
50
+ "text": "object"
51
+ },
52
+ "static": true,
53
+ "default": "{}"
54
+ },
55
+ {
56
+ "kind": "method",
57
+ "name": "updateStateStyles",
58
+ "parameters": [
59
+ {
60
+ "name": "oldValue",
61
+ "type": {
62
+ "text": "string"
63
+ }
64
+ },
65
+ {
66
+ "name": "newValue",
67
+ "type": {
68
+ "text": "string"
69
+ }
70
+ },
71
+ {
72
+ "name": "attributeValues",
73
+ "type": {
74
+ "text": "string[]"
75
+ }
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "kind": "method",
81
+ "name": "getStateIcon",
82
+ "parameters": [
83
+ {
84
+ "name": "state",
85
+ "type": {
86
+ "text": "string"
87
+ }
88
+ }
89
+ ]
90
+ },
91
+ {
92
+ "kind": "method",
93
+ "name": "updateStateIconLabel",
94
+ "parameters": [
95
+ {
96
+ "name": "newValue",
97
+ "type": {
98
+ "text": "string"
99
+ }
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "kind": "method",
105
+ "name": "updateStateIconFrom",
106
+ "parameters": [
107
+ {
108
+ "name": "newValue",
109
+ "type": {
110
+ "text": "string"
111
+ }
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "kind": "method",
117
+ "name": "styleBeforeIcon"
118
+ },
119
+ {
120
+ "kind": "method",
121
+ "name": "styleAfterBtnIcon"
122
+ },
123
+ {
124
+ "kind": "field",
125
+ "name": "$slottedBeforeIcon",
126
+ "readonly": true
127
+ },
128
+ {
129
+ "kind": "field",
130
+ "name": "$slotBefore",
131
+ "readonly": true
132
+ },
133
+ {
134
+ "kind": "field",
135
+ "name": "$slottedAfterBtnIcon",
136
+ "readonly": true
137
+ },
138
+ {
139
+ "kind": "field",
140
+ "name": "$slotAfter",
141
+ "readonly": true
142
+ },
143
+ {
144
+ "kind": "field",
145
+ "name": "size"
146
+ },
147
+ {
148
+ "kind": "field",
149
+ "name": "state"
150
+ },
151
+ {
152
+ "kind": "field",
153
+ "name": "dismissible"
154
+ },
155
+ {
156
+ "kind": "field",
157
+ "name": "inverted"
158
+ },
159
+ {
160
+ "kind": "field",
161
+ "name": "stateIconAriaLabel"
162
+ },
163
+ {
164
+ "kind": "field",
165
+ "name": "stateIconFrom"
166
+ },
167
+ {
168
+ "kind": "field",
169
+ "name": "adoptedStyleSheets",
170
+ "type": {
171
+ "text": "array"
172
+ },
173
+ "default": "[styleSheet]"
174
+ }
175
+ ],
176
+ "attributes": [
177
+ {
178
+ "name": "dismissible"
179
+ },
180
+ {
181
+ "name": "inverted"
182
+ },
183
+ {
184
+ "name": "disabled"
185
+ },
186
+ {
187
+ "name": "size"
188
+ },
189
+ {
190
+ "name": "state"
191
+ },
192
+ {
193
+ "name": "state-icon-aria-label"
194
+ },
195
+ {
196
+ "name": "state-icon-from"
197
+ }
198
+ ],
199
+ "superclass": {
200
+ "name": "PxElement",
201
+ "package": "@proximus/lavender-common"
202
+ },
203
+ "tagName": "px-tag",
204
+ "customElement": true
205
+ }
206
+ ],
207
+ "exports": [
208
+ {
209
+ "kind": "js",
210
+ "name": "tagSizeValues",
211
+ "declaration": {
212
+ "name": "tagSizeValues",
213
+ "module": "src/Tag.ts"
214
+ }
215
+ },
216
+ {
217
+ "kind": "js",
218
+ "name": "tagStateValues",
219
+ "declaration": {
220
+ "name": "tagStateValues",
221
+ "module": "src/Tag.ts"
222
+ }
223
+ },
224
+ {
225
+ "kind": "js",
226
+ "name": "Tag",
227
+ "declaration": {
228
+ "name": "Tag",
229
+ "module": "src/Tag.ts"
230
+ }
231
+ },
232
+ {
233
+ "kind": "custom-element-definition",
234
+ "name": "px-tag",
235
+ "declaration": {
236
+ "name": "Tag",
237
+ "module": "src/Tag.ts"
238
+ }
239
+ }
240
+ ]
241
+ },
242
+ {
243
+ "kind": "javascript-module",
244
+ "path": "src/index.ts",
245
+ "declarations": [],
246
+ "exports": [
247
+ {
248
+ "kind": "js",
249
+ "name": "*",
250
+ "declaration": {
251
+ "name": "*",
252
+ "module": "src/Tag"
253
+ }
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "kind": "javascript-module",
259
+ "path": "src/tag.css",
260
+ "declarations": [],
261
+ "exports": []
262
+ }
263
+ ]
264
+ }
package/dist/index.es.js CHANGED
@@ -1,59 +1,145 @@
1
- import { PxElement as o } from "@proximus/lavender-common";
1
+ import { PxElement as e, createTemplate as t, renderTemplate as n } from "@proximus/lavender-common";
2
2
  import "@proximus/lavender-button-icon";
3
- const n = ":host:has(.tag){display:inline-block}.tag{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);gap:var(--px-spacing-xs-mobile);background-color:var(--px-color-background-container-default-default);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-s) solid transparent;border-radius:var(--px-radius-main)}.tag,.tag *{box-sizing:border-box}:host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([inverted]) .tag{background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]):host([disabled]) .tag{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}@media only screen and (min-width: 768px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}@media only screen and (min-width: 1025px){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}}", e = new CSSStyleSheet();
4
- e.replaceSync(n);
5
- const s = class s extends o {
6
- template() {
7
- return `
8
- <div class="tag">
9
- <slot name="before"></slot>
10
- <slot></slot>
11
- <slot name="after"></slot>
12
- </div>
13
- `;
14
- }
15
- constructor() {
16
- super(e), this.shadowRoot.innerHTML = this.template(), this.shadowRoot.adoptedStyleSheets = [e];
17
- }
18
- connectedCallback() {
19
- this.$iconSlot && (this.$iconSlot.setAttribute("size", "xs"), this.$iconSlot.setAttribute("color", "inherit")), this.$btnIcon && (this.$btnIcon.getAttribute("variant") !== "secondary" && this.$btnIcon.setAttribute("variant", "secondary"), this.$btnIcon.getAttribute("size") !== "small" && this.$btnIcon.setAttribute("size", "small"));
20
- }
21
- static get observedAttributes() {
22
- return ["dismissible", "inverted", "disabled"];
23
- }
24
- attributeChangedCallback(t, r, a) {
25
- if (r !== a)
26
- switch (t) {
27
- case "inverted":
28
- this.hasAttribute("dismissible") && this.$btnIcon.toggleAttribute("inverted");
29
- break;
30
- default:
31
- super.attributeChangedCallback(t, r, a);
32
- break;
33
- }
34
- }
35
- get $iconSlot() {
36
- return this.querySelector('px-icon[slot="before"]');
37
- }
38
- get $btnIcon() {
39
- return this.querySelector("px-button-icon");
40
- }
41
- get dismissible() {
42
- return this.getAttribute("dismissible");
43
- }
44
- set dismissible(t) {
45
- this.setAttribute("dismissible", t);
46
- }
47
- get inverted() {
48
- return this.getAttribute("inverted");
49
- }
50
- set inverted(t) {
51
- this.setAttribute("inverted", t);
52
- }
53
- };
54
- s.nativeName = "div";
55
- let i = s;
56
- customElements.get("px-tag") || customElements.define("px-tag", i);
57
- export {
58
- i as Tag
3
+ //#region src/tag.css?inline
4
+ var r = ":host:has(.tag){display:inline-block}.tag,.tag *{box-sizing:border-box}.tag{vertical-align:middle;font-family:var(--px-font-family);font-size:var(--px-text-size-label-m-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-body);justify-content:center;align-items:center;gap:var(--px-spacing-2xs-mobile);background-color:var(--px-color-background-container-default-default);color:var(--px-color-text-neutral-default);padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);border:var(--px-size-border-s) solid transparent;border-radius:var(--px-radius-main);display:inline-flex}:host([disabled]:not([dismissible])) .tag{background-color:var(--px-color-background-state-disabled-default);color:var(--px-color-text-state-disabled-default)}:host([size=s]) .tag{padding:var(--px-padding-2xs-mobile) var(--px-padding-xs-mobile);gap:var(--px-spacing-2xs-mobile)}:host([size=m]) .tag{padding:var(--px-padding-xs-mobile) var(--px-padding-s-mobile);gap:var(--px-spacing-xs-mobile)}:host([state=success]) .tag{background-color:var(--px-color-background-purpose-success-default);color:var(--px-color-text-neutral-inverted)}:host([state=warning]) .tag{background-color:var(--px-color-background-purpose-warning-default);color:var(--px-color-text-neutral-inverted)}:host([state=error]) .tag{background-color:var(--px-color-background-purpose-error-default);color:var(--px-color-text-neutral-inverted)}:host([inverted]) .tag{background-color:var(--px-color-background-container-default-inverted);color:var(--px-color-text-neutral-inverted)}:host([inverted]):host([disabled]:not([dismissible])) .tag{background-color:var(--px-color-background-state-disabled-inverted);color:var(--px-color-text-state-disabled-inverted)}:host([inverted]):host([state=success]) .tag{background-color:var(--px-color-background-purpose-success-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]):host([state=warning]) .tag{background-color:var(--px-color-background-purpose-warning-inverted);color:var(--px-color-text-neutral-default)}:host([inverted]):host([state=error]) .tag{background-color:var(--px-color-background-purpose-error-inverted);color:var(--px-color-text-neutral-default)}@media screen and (width>=48rem){.tag{font-size:var(--px-text-size-label-m-tablet);gap:var(--px-spacing-2xs-tablet);padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet)}:host([size=s]) .tag{padding:var(--px-padding-2xs-tablet) var(--px-padding-xs-tablet);gap:var(--px-spacing-2xs-tablet)}:host([size=m]) .tag{padding:var(--px-padding-xs-tablet) var(--px-padding-s-tablet);gap:var(--px-spacing-xs-tablet)}}@media screen and (width>=64.0625rem){.tag{font-size:var(--px-text-size-label-m-laptop);gap:var(--px-spacing-2xs-laptop);padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop)}:host([size=s]) .tag{padding:var(--px-padding-2xs-laptop) var(--px-padding-xs-laptop);gap:var(--px-spacing-2xs-laptop)}:host([size=m]) .tag{padding:var(--px-padding-xs-laptop) var(--px-padding-s-laptop);gap:var(--px-spacing-xs-laptop)}}@media screen and (width>=90.0625rem){.tag{font-size:var(--px-text-size-label-m-desktop);gap:var(--px-spacing-2xs-desktop);padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop)}:host([size=s]) .tag{padding:var(--px-padding-2xs-desktop) var(--px-padding-xs-desktop);gap:var(--px-spacing-2xs-desktop)}:host([size=m]) .tag{padding:var(--px-padding-xs-desktop) var(--px-padding-s-desktop);gap:var(--px-spacing-xs-desktop)}}", i = new CSSStyleSheet();
5
+ i.replaceSync(r);
6
+ var a = [
7
+ "",
8
+ "s",
9
+ "m"
10
+ ], o = [
11
+ "",
12
+ "success",
13
+ "error",
14
+ "warning"
15
+ ], s = class r extends e {
16
+ static {
17
+ this.template = t("<div class=\"tag\"><slot name=\"before\"></slot><slot></slot><slot name=\"after\"></slot></div>");
18
+ }
19
+ static {
20
+ this.nativeName = "div";
21
+ }
22
+ static {
23
+ this.nativeAttributes = {};
24
+ }
25
+ constructor() {
26
+ super(i), n(this.shadowRoot, r.template), this.shadowRoot.adoptedStyleSheets = [i];
27
+ }
28
+ connectedCallback() {
29
+ this.styleBeforeIcon = this.styleBeforeIcon.bind(this), this.styleBeforeIcon(), this.$slotBefore?.addEventListener("slotchange", this.styleBeforeIcon), this.styleAfterBtnIcon = this.styleAfterBtnIcon.bind(this), this.styleAfterBtnIcon(), this.$slotAfter?.addEventListener("slotchange", this.styleAfterBtnIcon);
30
+ }
31
+ static get observedAttributes() {
32
+ return [
33
+ ...super.observedAttributes,
34
+ "dismissible",
35
+ "inverted",
36
+ "disabled",
37
+ "size",
38
+ "state",
39
+ "state-icon-aria-label",
40
+ "state-icon-from"
41
+ ];
42
+ }
43
+ attributeChangedCallback(e, t, n) {
44
+ if (t !== n) switch (e) {
45
+ case "inverted":
46
+ this.hasAttribute("dismissible") && this.$slottedAfterBtnIcon.toggleAttribute("inverted");
47
+ break;
48
+ case "state":
49
+ this.hasAttribute("dismissible") || this.updateStateStyles(t, n, o);
50
+ break;
51
+ case "state-icon-aria-label":
52
+ this.hasAttribute("dismissible") || this.updateStateIconLabel(n);
53
+ break;
54
+ case "state-icon-from":
55
+ this.hasAttribute("dismissible") || this.updateStateIconFrom(n);
56
+ break;
57
+ default: super.attributeChangedCallback(e, t, n);
58
+ }
59
+ }
60
+ updateStateStyles(e, t, n) {
61
+ if (!n.includes(e) && n.includes(t)) {
62
+ let e = document.createElement("px-icon");
63
+ e.setAttribute("size", "xs"), e.setAttribute("color", "inherit"), e.setAttribute("from", this.stateIconFrom ? this.stateIconFrom : "lavender"), e.setAttribute("name", this.getStateIcon(t)), this.stateIconAriaLabel && (e.setAttribute("aria-label", this.stateIconAriaLabel), e.setAttribute("title", this.stateIconAriaLabel)), this.$el.insertAdjacentElement("afterbegin", e);
64
+ } else if (n.includes(e) && !n.includes(t)) {
65
+ let e = this.$el.querySelector("px-icon");
66
+ e && this.$el.removeChild(e);
67
+ } else if (n.includes(e) && n.includes(t)) {
68
+ let e = this.$el.querySelector("px-icon");
69
+ e && e.setAttribute("name", this.getStateIcon(t));
70
+ }
71
+ }
72
+ getStateIcon(e) {
73
+ switch (e) {
74
+ case "success": return "checkmark_fill";
75
+ case "error": return "minus_fill";
76
+ case "warning": return "exclamation_mark_fill";
77
+ default: return "";
78
+ }
79
+ }
80
+ updateStateIconLabel(e) {
81
+ let t = this.$el.querySelector("px-icon");
82
+ t && (e ? (t.setAttribute("aria-label", e), t.setAttribute("title", e)) : (t.removeAttribute("aria-label"), t.removeAttribute("title")));
83
+ }
84
+ updateStateIconFrom(e) {
85
+ let t = this.$el.querySelector("px-icon");
86
+ t && (e ? t.setAttribute("from", e) : t.setAttribute("from", "lavender"));
87
+ }
88
+ styleBeforeIcon() {
89
+ this.$slottedBeforeIcon && (this.$slottedBeforeIcon.setAttribute("size", "xs"), this.$slottedBeforeIcon.setAttribute("color", "inherit"));
90
+ }
91
+ styleAfterBtnIcon() {
92
+ this.$slottedAfterBtnIcon && (this.$slottedAfterBtnIcon.setAttribute("variant", "secondary"), this.$slottedAfterBtnIcon.setAttribute("size", "small"));
93
+ }
94
+ get $slottedBeforeIcon() {
95
+ return this.querySelector("px-icon[slot=\"before\"]");
96
+ }
97
+ get $slotBefore() {
98
+ return this.shadowRoot?.querySelector("slot[name=\"before\"]");
99
+ }
100
+ get $slottedAfterBtnIcon() {
101
+ return this.querySelector("px-button-icon[slot=\"after\"]");
102
+ }
103
+ get $slotAfter() {
104
+ return this.shadowRoot?.querySelector("slot[name=\"after\"]");
105
+ }
106
+ get size() {
107
+ return this.getAttribute("size") || "";
108
+ }
109
+ set size(e) {
110
+ this.setAttribute("size", e);
111
+ }
112
+ get state() {
113
+ return this.getAttribute("state") || "";
114
+ }
115
+ set state(e) {
116
+ this.setAttribute("state", e);
117
+ }
118
+ get dismissible() {
119
+ return this.hasAttribute("dismissible");
120
+ }
121
+ set dismissible(e) {
122
+ e ? this.setAttribute("dismissible", "") : this.removeAttribute("dismissible");
123
+ }
124
+ get inverted() {
125
+ return this.hasAttribute("inverted");
126
+ }
127
+ set inverted(e) {
128
+ e ? this.setAttribute("inverted", "") : this.removeAttribute("inverted");
129
+ }
130
+ get stateIconAriaLabel() {
131
+ return this.getAttribute("state-icon-aria-label") || "";
132
+ }
133
+ set stateIconAriaLabel(e) {
134
+ this.setAttribute("state-icon-aria-label", e);
135
+ }
136
+ get stateIconFrom() {
137
+ return this.getAttribute("state-icon-from") || "";
138
+ }
139
+ set stateIconFrom(e) {
140
+ this.setAttribute("state-icon-from", e);
141
+ }
59
142
  };
143
+ customElements.get("px-tag") || customElements.define("px-tag", s);
144
+ //#endregion
145
+ export { s as Tag, a as tagSizeValues, o as tagStateValues };
@@ -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,20 @@
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-tag",
7
+ "description": "\n---\n",
8
+ "attributes": [
9
+ { "name": "dismissible", "values": [] },
10
+ { "name": "inverted", "values": [] },
11
+ { "name": "disabled", "values": [] },
12
+ { "name": "size", "values": [] },
13
+ { "name": "state", "values": [] },
14
+ { "name": "state-icon-aria-label", "values": [] },
15
+ { "name": "state-icon-from", "values": [] }
16
+ ],
17
+ "references": []
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
+ "name": "@proximus/lavender-tag",
4
+ "version": "2.0.0-alpha.243",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "px-tag",
11
+ "description": "\n\n---\n",
12
+ "doc-url": "",
13
+ "attributes": [
14
+ { "name": "dismissible", "value": { "type": "string" } },
15
+ { "name": "inverted", "value": { "type": "string" } },
16
+ { "name": "disabled", "value": { "type": "string" } },
17
+ { "name": "size", "value": { "type": "string" } },
18
+ { "name": "state", "value": { "type": "string" } },
19
+ { "name": "state-icon-aria-label", "value": { "type": "string" } },
20
+ { "name": "state-icon-from", "value": { "type": "string" } }
21
+ ],
22
+ "events": [],
23
+ "js": {
24
+ "properties": [
25
+ { "name": "$slottedBeforeIcon" },
26
+ { "name": "$slotBefore" },
27
+ { "name": "$slottedAfterBtnIcon" },
28
+ { "name": "$slotAfter" },
29
+ { "name": "size" },
30
+ { "name": "state" },
31
+ { "name": "dismissible" },
32
+ { "name": "inverted" },
33
+ { "name": "stateIconAriaLabel" },
34
+ { "name": "stateIconFrom" },
35
+ { "name": "adoptedStyleSheets", "type": "array" }
36
+ ],
37
+ "events": []
38
+ }
39
+ }
40
+ ]
41
+ },
42
+ "css": {
43
+ "properties": [],
44
+ "pseudo-elements": []
45
+ }
46
+ }
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-tag",
3
- "version": "2.0.0-alpha.24",
3
+ "version": "2.0.0-alpha.243",
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"