@proximus/lavender-button 2.0.0-alpha.227 → 2.0.0-alpha.229
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/Button.d.ts +72 -9
- package/dist/custom-elements.json +820 -29
- package/dist/index.es.js +23 -14
- package/dist/vscode.html-custom-data.json +147 -4
- package/dist/web-types.json +216 -7
- package/package.json +1 -1
package/dist/web-types.json
CHANGED
|
@@ -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-button",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.229",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "px-button",
|
|
11
|
-
"description": "
|
|
11
|
+
"description": "Primary button for actions, forms, and more.\n\n---\n\n\n### **Slots:**\n - **before** - Content to be placed before the button text.\n- **after** - Content to be placed after the button text.",
|
|
12
12
|
"doc-url": "",
|
|
13
13
|
"attributes": [
|
|
14
14
|
{ "name": "variant", "value": { "type": "string" } },
|
|
@@ -27,12 +27,97 @@
|
|
|
27
27
|
{ "name": "extended--laptop", "value": { "type": "string" } },
|
|
28
28
|
{ "name": "extended--desktop", "value": { "type": "string" } },
|
|
29
29
|
{ "name": "size", "value": { "type": "string" } },
|
|
30
|
+
{
|
|
31
|
+
"name": "disabled",
|
|
32
|
+
"description": "Whether the native button is disabled.",
|
|
33
|
+
"value": { "type": "boolean" }
|
|
34
|
+
},
|
|
30
35
|
{
|
|
31
36
|
"name": "name",
|
|
32
|
-
"description": "The name
|
|
37
|
+
"description": "The name submitted with the button's value.",
|
|
38
|
+
"value": { "type": "string" }
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "value",
|
|
42
|
+
"description": "The value associated with the button.",
|
|
43
|
+
"value": { "type": "string" }
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "type",
|
|
47
|
+
"description": "The native button behavior: submit, reset, or button.",
|
|
48
|
+
"value": { "type": "'submit' | 'reset' | 'button'" }
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "formaction",
|
|
52
|
+
"description": "The submission URL override.",
|
|
53
|
+
"value": { "type": "string" }
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "formenctype",
|
|
57
|
+
"description": "The submission encoding override.",
|
|
58
|
+
"value": { "type": "string" }
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "formmethod",
|
|
62
|
+
"description": "The submission method override.",
|
|
63
|
+
"value": { "type": "string" }
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "formnovalidate",
|
|
67
|
+
"description": "Whether submission bypasses validation.",
|
|
68
|
+
"value": { "type": "boolean" }
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "formtarget",
|
|
72
|
+
"description": "The submission target override.",
|
|
73
|
+
"value": { "type": "string" }
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "autofocus",
|
|
77
|
+
"description": "Whether the native button requests autofocus.",
|
|
78
|
+
"value": { "type": "boolean" }
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "title",
|
|
82
|
+
"description": "The native button tooltip.",
|
|
83
|
+
"value": { "type": "string" }
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "popovertargetaction",
|
|
87
|
+
"description": "The action for the target popover.",
|
|
88
|
+
"value": { "type": "string" }
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "command",
|
|
92
|
+
"description": "The command for the target element, where supported.",
|
|
93
|
+
"value": { "type": "string" }
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "commandfor",
|
|
97
|
+
"description": "The ID of the command target.",
|
|
98
|
+
"value": { "type": "string" }
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "popovertarget",
|
|
102
|
+
"description": "The ID of the target popover.",
|
|
103
|
+
"value": { "type": "string" }
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "form",
|
|
107
|
+
"description": "The ID of the associated form; the form property is the native form reference.",
|
|
33
108
|
"value": { "type": "string" }
|
|
34
109
|
}
|
|
35
110
|
],
|
|
111
|
+
"slots": [
|
|
112
|
+
{
|
|
113
|
+
"name": "before",
|
|
114
|
+
"description": "Content to be placed before the button text."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "after",
|
|
118
|
+
"description": "Content to be placed after the button text."
|
|
119
|
+
}
|
|
120
|
+
],
|
|
36
121
|
"events": [],
|
|
37
122
|
"js": {
|
|
38
123
|
"properties": [
|
|
@@ -51,7 +136,39 @@
|
|
|
51
136
|
{ "name": "shapeDesktop" },
|
|
52
137
|
{ "name": "inverted" },
|
|
53
138
|
{ "name": "ariaExpanded" },
|
|
54
|
-
{ "name": "size" }
|
|
139
|
+
{ "name": "size" },
|
|
140
|
+
{ "name": "form", "type": "HTMLFormElement | null" },
|
|
141
|
+
{ "name": "labels", "type": "NodeListOf<HTMLLabelElement>" },
|
|
142
|
+
{ "name": "popoverTargetElement", "type": "Element | null" },
|
|
143
|
+
{ "name": "commandForElement", "type": "Element | null" },
|
|
144
|
+
{ "name": "disabled", "type": "boolean" },
|
|
145
|
+
{ "name": "name", "type": "string" },
|
|
146
|
+
{ "name": "value", "type": "string" },
|
|
147
|
+
{ "name": "type", "type": "'submit' | 'reset' | 'button'" },
|
|
148
|
+
{ "name": "formAction", "type": "string" },
|
|
149
|
+
{ "name": "formEnctype", "type": "string" },
|
|
150
|
+
{ "name": "formMethod", "type": "string" },
|
|
151
|
+
{ "name": "formNoValidate", "type": "boolean" },
|
|
152
|
+
{ "name": "formTarget", "type": "string" },
|
|
153
|
+
{ "name": "autofocus", "type": "boolean" },
|
|
154
|
+
{ "name": "title", "type": "string" },
|
|
155
|
+
{ "name": "popoverTargetAction", "type": "string" },
|
|
156
|
+
{ "name": "command", "type": "string" },
|
|
157
|
+
{ "name": "validity", "type": "ValidityState" },
|
|
158
|
+
{ "name": "validationMessage", "type": "string" },
|
|
159
|
+
{ "name": "willValidate", "type": "boolean" },
|
|
160
|
+
{
|
|
161
|
+
"name": "checkValidity",
|
|
162
|
+
"type": "HTMLButtonElement['checkValidity']"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "reportValidity",
|
|
166
|
+
"type": "HTMLButtonElement['reportValidity']"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "setCustomValidity",
|
|
170
|
+
"type": "HTMLButtonElement['setCustomValidity']"
|
|
171
|
+
}
|
|
55
172
|
],
|
|
56
173
|
"events": []
|
|
57
174
|
}
|
|
@@ -74,7 +191,7 @@
|
|
|
74
191
|
{
|
|
75
192
|
"name": "type",
|
|
76
193
|
"description": "The default behavior of the button. Possible values are 'submit', 'reset', and 'button'.",
|
|
77
|
-
"value": { "type": "
|
|
194
|
+
"value": { "type": "'submit' | 'reset' | 'button'" }
|
|
78
195
|
},
|
|
79
196
|
{
|
|
80
197
|
"name": "disabled",
|
|
@@ -96,7 +213,67 @@
|
|
|
96
213
|
{ "name": "extended--tablet", "value": { "type": "string" } },
|
|
97
214
|
{ "name": "extended--laptop", "value": { "type": "string" } },
|
|
98
215
|
{ "name": "extended--desktop", "value": { "type": "string" } },
|
|
99
|
-
{ "name": "size", "value": { "type": "string" } }
|
|
216
|
+
{ "name": "size", "value": { "type": "string" } },
|
|
217
|
+
{
|
|
218
|
+
"name": "formaction",
|
|
219
|
+
"description": "The submission URL override.",
|
|
220
|
+
"value": { "type": "string" }
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "formenctype",
|
|
224
|
+
"description": "The submission encoding override.",
|
|
225
|
+
"value": { "type": "string" }
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "formmethod",
|
|
229
|
+
"description": "The submission method override.",
|
|
230
|
+
"value": { "type": "string" }
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "formnovalidate",
|
|
234
|
+
"description": "Whether submission bypasses validation.",
|
|
235
|
+
"value": { "type": "boolean" }
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "formtarget",
|
|
239
|
+
"description": "The submission target override.",
|
|
240
|
+
"value": { "type": "string" }
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "autofocus",
|
|
244
|
+
"description": "Whether the native button requests autofocus.",
|
|
245
|
+
"value": { "type": "boolean" }
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "title",
|
|
249
|
+
"description": "The native button tooltip.",
|
|
250
|
+
"value": { "type": "string" }
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "popovertargetaction",
|
|
254
|
+
"description": "The action for the target popover.",
|
|
255
|
+
"value": { "type": "string" }
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "command",
|
|
259
|
+
"description": "The command for the target element, where supported.",
|
|
260
|
+
"value": { "type": "string" }
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "commandfor",
|
|
264
|
+
"description": "The ID of the command target.",
|
|
265
|
+
"value": { "type": "string" }
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "popovertarget",
|
|
269
|
+
"description": "The ID of the target popover.",
|
|
270
|
+
"value": { "type": "string" }
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "form",
|
|
274
|
+
"description": "The ID of the associated form; the form property is the native form reference.",
|
|
275
|
+
"value": { "type": "string" }
|
|
276
|
+
}
|
|
100
277
|
],
|
|
101
278
|
"slots": [
|
|
102
279
|
{
|
|
@@ -126,7 +303,39 @@
|
|
|
126
303
|
{ "name": "shapeDesktop" },
|
|
127
304
|
{ "name": "inverted" },
|
|
128
305
|
{ "name": "ariaExpanded" },
|
|
129
|
-
{ "name": "size" }
|
|
306
|
+
{ "name": "size" },
|
|
307
|
+
{ "name": "form", "type": "HTMLFormElement | null" },
|
|
308
|
+
{ "name": "labels", "type": "NodeListOf<HTMLLabelElement>" },
|
|
309
|
+
{ "name": "popoverTargetElement", "type": "Element | null" },
|
|
310
|
+
{ "name": "commandForElement", "type": "Element | null" },
|
|
311
|
+
{ "name": "disabled", "type": "boolean" },
|
|
312
|
+
{ "name": "name", "type": "string" },
|
|
313
|
+
{ "name": "value", "type": "string" },
|
|
314
|
+
{ "name": "type", "type": "'submit' | 'reset' | 'button'" },
|
|
315
|
+
{ "name": "formAction", "type": "string" },
|
|
316
|
+
{ "name": "formEnctype", "type": "string" },
|
|
317
|
+
{ "name": "formMethod", "type": "string" },
|
|
318
|
+
{ "name": "formNoValidate", "type": "boolean" },
|
|
319
|
+
{ "name": "formTarget", "type": "string" },
|
|
320
|
+
{ "name": "autofocus", "type": "boolean" },
|
|
321
|
+
{ "name": "title", "type": "string" },
|
|
322
|
+
{ "name": "popoverTargetAction", "type": "string" },
|
|
323
|
+
{ "name": "command", "type": "string" },
|
|
324
|
+
{ "name": "validity", "type": "ValidityState" },
|
|
325
|
+
{ "name": "validationMessage", "type": "string" },
|
|
326
|
+
{ "name": "willValidate", "type": "boolean" },
|
|
327
|
+
{
|
|
328
|
+
"name": "checkValidity",
|
|
329
|
+
"type": "HTMLButtonElement['checkValidity']"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "reportValidity",
|
|
333
|
+
"type": "HTMLButtonElement['reportValidity']"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "setCustomValidity",
|
|
337
|
+
"type": "HTMLButtonElement['setCustomValidity']"
|
|
338
|
+
}
|
|
130
339
|
],
|
|
131
340
|
"events": []
|
|
132
341
|
}
|