@warp-ds/elements 2.9.0-next.5 → 2.9.0
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/custom-elements.json +221 -118
- package/dist/docs/affix/affix.md +49 -61
- package/dist/docs/affix/api.md +25 -23
- package/dist/docs/affix/examples.md +24 -38
- package/dist/docs/alert/accessibility.md +4 -9
- package/dist/docs/alert/alert.md +36 -51
- package/dist/docs/alert/api.md +12 -12
- package/dist/docs/alert/examples.md +20 -30
- package/dist/docs/attention/accessibility.md +50 -0
- package/dist/docs/attention/api.md +72 -59
- package/dist/docs/attention/attention.md +305 -56
- package/dist/docs/attention/examples.md +91 -0
- package/dist/docs/attention/usage.md +91 -0
- package/dist/docs/badge/accessibility.md +44 -0
- package/dist/docs/badge/api.md +12 -8
- package/dist/docs/badge/badge.md +178 -10
- package/dist/docs/badge/examples.md +69 -0
- package/dist/docs/badge/usage.md +53 -0
- package/dist/docs/button/api.md +46 -42
- package/dist/docs/button/button.md +46 -42
- package/dist/docs/card/api.md +11 -11
- package/dist/docs/card/card.md +11 -11
- package/dist/docs/combobox/api.md +62 -62
- package/dist/docs/combobox/combobox.md +62 -62
- package/dist/docs/datepicker/api.md +74 -66
- package/dist/docs/datepicker/datepicker.md +74 -66
- package/dist/docs/expandable/api.md +26 -26
- package/dist/docs/expandable/expandable.md +26 -26
- package/dist/docs/link/api.md +28 -28
- package/dist/docs/link/link.md +28 -28
- package/dist/docs/page-indicator/api.md +6 -6
- package/dist/docs/page-indicator/page-indicator.md +6 -6
- package/dist/docs/pagination/api.md +3 -3
- package/dist/docs/pagination/pagination.md +3 -3
- package/dist/docs/pill/api.md +19 -15
- package/dist/docs/pill/pill.md +19 -15
- package/dist/docs/select/api.md +44 -44
- package/dist/docs/select/select.md +44 -44
- package/dist/docs/slider/api.md +80 -78
- package/dist/docs/slider/slider.md +80 -78
- package/dist/docs/slider-thumb/api.md +28 -76
- package/dist/docs/slider-thumb/slider-thumb.md +28 -76
- package/dist/docs/switch/api.md +16 -16
- package/dist/docs/switch/switch.md +16 -16
- package/dist/docs/tab/api.md +26 -40
- package/dist/docs/tab/tab.md +26 -40
- package/dist/docs/tab-panel/api.md +1 -17
- package/dist/docs/tab-panel/tab-panel.md +1 -17
- package/dist/docs/tabs/api.md +3 -3
- package/dist/docs/tabs/tabs.md +3 -3
- package/dist/docs/textarea/accessibility.md +5 -0
- package/dist/docs/textarea/api.md +52 -65
- package/dist/docs/textarea/examples.md +81 -0
- package/dist/docs/textarea/textarea.md +151 -65
- package/dist/docs/textarea/usage.md +9 -0
- package/dist/docs/textfield/accessibility.md +15 -0
- package/dist/docs/textfield/api.md +86 -83
- package/dist/docs/textfield/examples.md +130 -0
- package/dist/docs/textfield/textfield.md +258 -86
- package/dist/docs/textfield/usage.md +26 -0
- package/dist/index.d.ts +456 -330
- package/dist/packages/attention/attention.d.ts +46 -37
- package/dist/packages/attention/attention.js +20 -20
- package/dist/packages/attention/attention.js.map +3 -3
- package/dist/packages/badge/badge.d.ts +7 -5
- package/dist/packages/badge/badge.js.map +2 -2
- package/dist/packages/datepicker/datepicker.js +1 -1
- package/dist/packages/datepicker/datepicker.js.map +2 -2
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +9 -1
- package/dist/packages/datepicker/react.d.ts +4 -0
- package/dist/packages/datepicker/react.js +4 -0
- package/dist/packages/textarea/textarea.d.ts +38 -29
- package/dist/packages/textarea/textarea.js.map +2 -2
- package/dist/packages/textfield/textfield.d.ts +57 -60
- package/dist/packages/textfield/textfield.js +5 -5
- package/dist/packages/textfield/textfield.js.map +2 -2
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/web-types.json +573 -153
- package/package.json +1 -2
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@warp-ds/elements",
|
|
4
|
-
"version": "2.9.0-next.
|
|
4
|
+
"version": "2.9.0-next.6",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -51,74 +51,217 @@
|
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"name": "w-textfield",
|
|
54
|
-
"description": "A single
|
|
54
|
+
"description": "A single-line input component used for entering and editing textual or numeric data.\n---\n\n\n### **Slots:**\n - **suffix** - Use with `<w-affix>` to include a suffix, for example the unit for a number (e. g. km or sek).\n- **prefix** - Use with `<w-affix>` to include a prefix, for example a search icon.",
|
|
55
55
|
"doc-url": "",
|
|
56
56
|
"attributes": [
|
|
57
57
|
{
|
|
58
58
|
"name": "disabled",
|
|
59
|
+
"description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
|
|
59
60
|
"value": { "type": "boolean", "default": "false" }
|
|
60
61
|
},
|
|
61
62
|
{
|
|
62
63
|
"name": "invalid",
|
|
64
|
+
"description": "Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem.",
|
|
63
65
|
"value": { "type": "boolean", "default": "false" }
|
|
64
66
|
},
|
|
65
|
-
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
{
|
|
67
|
+
{
|
|
68
|
+
"name": "label",
|
|
69
|
+
"description": "Either a `label` or an `aria-label` must be provided.",
|
|
70
|
+
"value": { "type": "string" }
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "help-text",
|
|
74
|
+
"description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
|
|
75
|
+
"value": { "type": "string" }
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "size",
|
|
79
|
+
"description": "Sets the [size](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#size) (width) of the input field to fit the expected length of inputs.",
|
|
80
|
+
"value": { "type": "string" }
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "max",
|
|
84
|
+
"description": "Use with `type=\"number\"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).",
|
|
85
|
+
"value": { "type": "number" }
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "min",
|
|
89
|
+
"description": "Use with `type=\"number\"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).",
|
|
90
|
+
"value": { "type": "number" }
|
|
91
|
+
},
|
|
71
92
|
{ "name": "min-length", "value": { "type": "number" } },
|
|
93
|
+
{
|
|
94
|
+
"name": "minlength",
|
|
95
|
+
"description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [minimum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength) required.",
|
|
96
|
+
"value": { "type": "number" }
|
|
97
|
+
},
|
|
72
98
|
{ "name": "max-length", "value": { "type": "number" } },
|
|
73
|
-
{
|
|
74
|
-
|
|
99
|
+
{
|
|
100
|
+
"name": "maxlength",
|
|
101
|
+
"description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [maximum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength) allowed.",
|
|
102
|
+
"value": { "type": "number" }
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "pattern",
|
|
106
|
+
"description": "Sets a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that the input's value must [match to pass validation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#pattern)",
|
|
107
|
+
"value": { "type": "string" }
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "placeholder",
|
|
111
|
+
"description": "Set a text that is shown in the textfield when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
|
|
112
|
+
"value": { "type": "string" }
|
|
113
|
+
},
|
|
75
114
|
{
|
|
76
115
|
"name": "read-only",
|
|
77
116
|
"value": { "type": "boolean", "default": "false" }
|
|
78
117
|
},
|
|
79
118
|
{
|
|
80
119
|
"name": "readonly",
|
|
120
|
+
"description": "Whether the input can be selected but not changed by the user.",
|
|
81
121
|
"value": { "type": "boolean", "default": "false" }
|
|
82
122
|
},
|
|
83
123
|
{
|
|
84
124
|
"name": "required",
|
|
125
|
+
"description": "Whether user input is required on the input before form submission.",
|
|
85
126
|
"value": { "type": "boolean", "default": "false" }
|
|
86
127
|
},
|
|
87
|
-
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
128
|
+
{
|
|
129
|
+
"name": "type",
|
|
130
|
+
"description": "The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).",
|
|
131
|
+
"value": { "type": "string" }
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "value",
|
|
135
|
+
"description": "Lets you set the current value.",
|
|
136
|
+
"value": { "type": "string" }
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "name",
|
|
140
|
+
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.",
|
|
141
|
+
"value": { "type": "string" }
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "step",
|
|
145
|
+
"description": "When used with `number` this attribute forces inputs to be a whole number of `step`.\n\nFor example with a `step=\"5\"` only values that divide evenly on 5 are allowed.\nUsing arrow up and down in the input field increments and decrements by 5.",
|
|
146
|
+
"value": { "type": "number" }
|
|
147
|
+
},
|
|
91
148
|
{
|
|
92
149
|
"name": "autocomplete",
|
|
150
|
+
"description": "A space-separated string that hints to browsers [what type of content it can suggest](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete#value) to autofill.",
|
|
93
151
|
"value": { "type": "string | undefined" }
|
|
94
152
|
}
|
|
95
153
|
],
|
|
154
|
+
"slots": [
|
|
155
|
+
{
|
|
156
|
+
"name": "suffix",
|
|
157
|
+
"description": "Use with `<w-affix>` to include a suffix, for example the unit for a number (e. g. km or sek)."
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "prefix",
|
|
161
|
+
"description": "Use with `<w-affix>` to include a prefix, for example a search icon."
|
|
162
|
+
}
|
|
163
|
+
],
|
|
96
164
|
"events": [],
|
|
97
165
|
"js": {
|
|
98
166
|
"properties": [
|
|
99
|
-
{
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
|
|
167
|
+
{
|
|
168
|
+
"name": "disabled",
|
|
169
|
+
"description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
|
|
170
|
+
"type": "boolean"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "invalid",
|
|
174
|
+
"description": "Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem.",
|
|
175
|
+
"type": "boolean"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "label",
|
|
179
|
+
"description": "Either a `label` or an `aria-label` must be provided.",
|
|
180
|
+
"type": "string"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "helpText",
|
|
184
|
+
"description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "size",
|
|
189
|
+
"description": "Sets the [size](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#size) (width) of the input field to fit the expected length of inputs.",
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "max",
|
|
194
|
+
"description": "Use with `type=\"number\"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).",
|
|
195
|
+
"type": "number"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "min",
|
|
199
|
+
"description": "Use with `type=\"number\"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).",
|
|
200
|
+
"type": "number"
|
|
201
|
+
},
|
|
107
202
|
{ "name": "minLength", "type": "number" },
|
|
203
|
+
{
|
|
204
|
+
"name": "minlength",
|
|
205
|
+
"description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [minimum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength) required.",
|
|
206
|
+
"type": "number"
|
|
207
|
+
},
|
|
108
208
|
{ "name": "maxLength", "type": "number" },
|
|
109
|
-
{
|
|
110
|
-
|
|
209
|
+
{
|
|
210
|
+
"name": "maxlength",
|
|
211
|
+
"description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [maximum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength) allowed.",
|
|
212
|
+
"type": "number"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "pattern",
|
|
216
|
+
"description": "Sets a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that the input's value must [match to pass validation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#pattern)",
|
|
217
|
+
"type": "string"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "placeholder",
|
|
221
|
+
"description": "Set a text that is shown in the textfield when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
111
224
|
{ "name": "readOnly", "type": "boolean" },
|
|
112
|
-
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
{
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
225
|
+
{
|
|
226
|
+
"name": "readonly",
|
|
227
|
+
"description": "Whether the input can be selected but not changed by the user.",
|
|
228
|
+
"type": "boolean"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "required",
|
|
232
|
+
"description": "Whether user input is required on the input before form submission.",
|
|
233
|
+
"type": "boolean"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "type",
|
|
237
|
+
"description": "The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).",
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "value",
|
|
242
|
+
"description": "Lets you set the current value.",
|
|
243
|
+
"type": "string"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "name",
|
|
247
|
+
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.",
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "step",
|
|
252
|
+
"description": "When used with `number` this attribute forces inputs to be a whole number of `step`.\n\nFor example with a `step=\"5\"` only values that divide evenly on 5 are allowed.\nUsing arrow up and down in the input field increments and decrements by 5.",
|
|
253
|
+
"type": "number"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "autocomplete",
|
|
257
|
+
"description": "A space-separated string that hints to browsers [what type of content it can suggest](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete#value) to autofill.",
|
|
258
|
+
"type": "string | undefined"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "formatter",
|
|
262
|
+
"description": "Function to format value when the input field.\n\nOnly active when the input field does not have focus,\nsimilar to the accessible input [masking example from Filament Group](https://filamentgroup.github.io/politespace/demo/demo.html).",
|
|
263
|
+
"type": "(value: string) => string"
|
|
264
|
+
}
|
|
122
265
|
],
|
|
123
266
|
"events": []
|
|
124
267
|
}
|
|
@@ -151,31 +294,19 @@
|
|
|
151
294
|
"events": [],
|
|
152
295
|
"js": {
|
|
153
296
|
"properties": [
|
|
154
|
-
{
|
|
155
|
-
"name": "ariaLabel",
|
|
156
|
-
"description": "Used to override the default `aria-label`s for the internal button when `search` or `clear` is enabled.",
|
|
157
|
-
"type": "string | null"
|
|
158
|
-
},
|
|
297
|
+
{ "name": "ariaLabel", "type": "string | null" },
|
|
159
298
|
{
|
|
160
299
|
"name": "clear",
|
|
161
|
-
"description": "
|
|
300
|
+
"description": "Add this property to render a clickable Warp close icon.\n\nSet an `aria-label` that explains the action when using this.",
|
|
162
301
|
"type": "boolean"
|
|
163
302
|
},
|
|
164
303
|
{
|
|
165
304
|
"name": "search",
|
|
166
|
-
"description": "
|
|
305
|
+
"description": "Add this property to render a clickable Warp search icon.",
|
|
167
306
|
"type": "boolean"
|
|
168
307
|
},
|
|
169
|
-
{
|
|
170
|
-
|
|
171
|
-
"description": "Displays plain text such as a currency or unit label (for example `kr` or `%`) instead of an icon button.",
|
|
172
|
-
"type": "string"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"name": "icon",
|
|
176
|
-
"description": "Displays a non-interactive `w-icon` in the affix area using the provided icon name (for example `Search` or `Close`) instead of text.",
|
|
177
|
-
"type": "string | null"
|
|
178
|
-
},
|
|
308
|
+
{ "name": "label", "type": "string" },
|
|
309
|
+
{ "name": "icon", "type": "string | null" },
|
|
179
310
|
{ "name": "_icon" }
|
|
180
311
|
],
|
|
181
312
|
"events": []
|
|
@@ -207,19 +338,10 @@
|
|
|
207
338
|
"properties": [
|
|
208
339
|
{
|
|
209
340
|
"name": "variant",
|
|
210
|
-
"description": "Controls both the color treatment and icon used by the component. Accepted values are `info`, `warning`, `positive`, and `negative`. Use the variant that matches the message severity so users can quickly distinguish informative messages from warnings, errors, and confirmations.",
|
|
211
341
|
"type": "'negative' | 'positive' | 'warning' | 'info'"
|
|
212
342
|
},
|
|
213
|
-
{
|
|
214
|
-
|
|
215
|
-
"description": "Alerts are hidden by default (`false`). Set this to `true` to render and expand the content. This is reflected as an attribute, so visibility can be controlled from markup (`show`) or from JavaScript (`element.show = true`).",
|
|
216
|
-
"type": "boolean"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"name": "role",
|
|
220
|
-
"description": "Defaults to `alert` so urgent changes are announced by screen readers. Override this only when your use case requires a different announcement behavior, for example a less assertive live region strategy.",
|
|
221
|
-
"type": "string"
|
|
222
|
-
}
|
|
343
|
+
{ "name": "show", "type": "boolean" },
|
|
344
|
+
{ "name": "role", "type": "string" }
|
|
223
345
|
],
|
|
224
346
|
"events": []
|
|
225
347
|
}
|
|
@@ -351,78 +473,143 @@
|
|
|
351
473
|
},
|
|
352
474
|
{
|
|
353
475
|
"name": "w-attention",
|
|
354
|
-
"description": "\n---\n",
|
|
476
|
+
"description": "Attention is a versatile component for displaying contextual information and messages. It can be used for a wide range of purposes, such as tooltips, callouts, popovers, and highlights.\n\nThe component is designed to be anchored to a trigger element, providing contextual information related to that element. It supports various placements and styling options to accommodate different use cases and design needs.\n\nNote: attention will soon be split into multiple components (tooltip, callout, popover, highlight) at which time this component will be deprecated. For now, use the `tooltip`, `callout`, `popover`, and `highlight` boolean properties to achieve the desired style and behavior.\n---\n",
|
|
355
477
|
"doc-url": "",
|
|
356
478
|
"attributes": [
|
|
357
479
|
{
|
|
358
480
|
"name": "show",
|
|
481
|
+
"description": "Controls whether the attention panel is visible.\nSet to `true` to show the attention content and `false` to hide it.",
|
|
359
482
|
"value": { "type": "boolean", "default": "false" }
|
|
360
483
|
},
|
|
361
484
|
{
|
|
362
485
|
"name": "placement",
|
|
486
|
+
"description": "Preferred placement relative to the trigger element.\nSets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.",
|
|
363
487
|
"value": { "type": "Directions", "default": "'bottom'" }
|
|
364
488
|
},
|
|
365
489
|
{
|
|
366
490
|
"name": "tooltip",
|
|
491
|
+
"description": "Renders the component with tooltip styling and behavior.\nUse for compact, non-modal contextual hints anchored to another element.",
|
|
367
492
|
"value": { "type": "boolean", "default": "false" }
|
|
368
493
|
},
|
|
369
494
|
{
|
|
370
495
|
"name": "callout",
|
|
496
|
+
"description": "Renders the component as an inline callout.\nCallout mode is used for always-in-flow informational content instead of floating overlay behavior.",
|
|
371
497
|
"value": { "type": "boolean", "default": "false" }
|
|
372
498
|
},
|
|
373
499
|
{
|
|
374
500
|
"name": "popover",
|
|
501
|
+
"description": "Enables native popover behavior for the attention element.\nWhen enabled, the component uses popover semantics and styling suitable for floating surface UI.",
|
|
375
502
|
"value": { "type": "boolean", "default": "false" }
|
|
376
503
|
},
|
|
377
504
|
{
|
|
378
505
|
"name": "highlight",
|
|
506
|
+
"description": "Renders the component with highlight styling.\nUse highlight mode to visually emphasize important contextual information.",
|
|
379
507
|
"value": { "type": "boolean", "default": "false" }
|
|
380
508
|
},
|
|
381
509
|
{
|
|
382
510
|
"name": "can-close",
|
|
511
|
+
"description": "Shows a close button inside the attention component.\nAdds an internal dismiss action that lets users close the attention panel.",
|
|
383
512
|
"value": { "type": "boolean", "default": "false" }
|
|
384
513
|
},
|
|
385
514
|
{
|
|
386
515
|
"name": "no-arrow",
|
|
516
|
+
"description": "Hides the directional arrow of the attention component.\nDisable the arrow when the visual connection to the trigger should not be shown.",
|
|
387
517
|
"value": { "type": "boolean", "default": "false" }
|
|
388
518
|
},
|
|
389
519
|
{
|
|
390
520
|
"name": "distance",
|
|
521
|
+
"description": "Distance offset between trigger and attention panel.\nDefines the main-axis spacing in pixels from the anchor element.",
|
|
391
522
|
"value": { "type": "number", "default": "8" }
|
|
392
523
|
},
|
|
393
524
|
{
|
|
394
525
|
"name": "skidding",
|
|
526
|
+
"description": "Cross-axis offset for fine-grained positioning.\nMoves the panel along the cross axis in pixels to adjust alignment with the trigger.",
|
|
395
527
|
"value": { "type": "number", "default": "0" }
|
|
396
528
|
},
|
|
397
529
|
{
|
|
398
530
|
"name": "flip",
|
|
531
|
+
"description": "Enables automatic flipping when placement has no space.\nAllows the component to choose an alternative side if the preferred placement would overflow.",
|
|
399
532
|
"value": { "type": "boolean", "default": "false" }
|
|
400
533
|
},
|
|
401
534
|
{
|
|
402
535
|
"name": "cross-axis",
|
|
536
|
+
"description": "Allows overflow checks on the cross axis when flipping.\nUse with `flip` to improve collision handling when space is constrained horizontally or vertically.",
|
|
403
537
|
"value": { "type": "boolean", "default": "false" }
|
|
404
538
|
},
|
|
405
539
|
{
|
|
406
540
|
"name": "fallback-placements",
|
|
407
|
-
"
|
|
541
|
+
"description": "Ordered list of fallback placements.\nProvides explicit alternative placements to try when `flip` is enabled and the preferred placement does not fit.",
|
|
542
|
+
"value": { "type": "Directions[]", "default": "[]" }
|
|
408
543
|
}
|
|
409
544
|
],
|
|
410
545
|
"events": [],
|
|
411
546
|
"js": {
|
|
412
547
|
"properties": [
|
|
413
|
-
{
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
{
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
{
|
|
424
|
-
|
|
425
|
-
|
|
548
|
+
{
|
|
549
|
+
"name": "show",
|
|
550
|
+
"description": "Controls whether the attention panel is visible.\nSet to `true` to show the attention content and `false` to hide it.",
|
|
551
|
+
"type": "boolean"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "placement",
|
|
555
|
+
"description": "Preferred placement relative to the trigger element.\nSets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.",
|
|
556
|
+
"type": "Directions"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "tooltip",
|
|
560
|
+
"description": "Renders the component with tooltip styling and behavior.\nUse for compact, non-modal contextual hints anchored to another element.",
|
|
561
|
+
"type": "boolean"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "callout",
|
|
565
|
+
"description": "Renders the component as an inline callout.\nCallout mode is used for always-in-flow informational content instead of floating overlay behavior.",
|
|
566
|
+
"type": "boolean"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "popover",
|
|
570
|
+
"description": "Enables native popover behavior for the attention element.\nWhen enabled, the component uses popover semantics and styling suitable for floating surface UI.",
|
|
571
|
+
"type": "boolean"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "highlight",
|
|
575
|
+
"description": "Renders the component with highlight styling.\nUse highlight mode to visually emphasize important contextual information.",
|
|
576
|
+
"type": "boolean"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "canClose",
|
|
580
|
+
"description": "Shows a close button inside the attention component.\nAdds an internal dismiss action that lets users close the attention panel.",
|
|
581
|
+
"type": "boolean"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"name": "noArrow",
|
|
585
|
+
"description": "Hides the directional arrow of the attention component.\nDisable the arrow when the visual connection to the trigger should not be shown.",
|
|
586
|
+
"type": "boolean"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"name": "distance",
|
|
590
|
+
"description": "Distance offset between trigger and attention panel.\nDefines the main-axis spacing in pixels from the anchor element.",
|
|
591
|
+
"type": "number"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "skidding",
|
|
595
|
+
"description": "Cross-axis offset for fine-grained positioning.\nMoves the panel along the cross axis in pixels to adjust alignment with the trigger.",
|
|
596
|
+
"type": "number"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"name": "flip",
|
|
600
|
+
"description": "Enables automatic flipping when placement has no space.\nAllows the component to choose an alternative side if the preferred placement would overflow.",
|
|
601
|
+
"type": "boolean"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"name": "crossAxis",
|
|
605
|
+
"description": "Allows overflow checks on the cross axis when flipping.\nUse with `flip` to improve collision handling when space is constrained horizontally or vertically.",
|
|
606
|
+
"type": "boolean"
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "fallbackPlacements",
|
|
610
|
+
"description": "Ordered list of fallback placements.\nProvides explicit alternative placements to try when `flip` is enabled and the preferred placement does not fit.",
|
|
611
|
+
"type": "Directions[]"
|
|
612
|
+
},
|
|
426
613
|
{ "name": "_initialPlacement" },
|
|
427
614
|
{ "name": "_actualDirection" }
|
|
428
615
|
],
|
|
@@ -431,31 +618,41 @@
|
|
|
431
618
|
},
|
|
432
619
|
{
|
|
433
620
|
"name": "w-badge",
|
|
434
|
-
"description": "`w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.\n\n
|
|
621
|
+
"description": "`w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.\n---\n\n\n### **Slots:**\n - _default_ - The content of the badge, which is typically a short string like \"New\" or \"4\".",
|
|
435
622
|
"doc-url": "",
|
|
436
623
|
"attributes": [
|
|
437
624
|
{
|
|
438
625
|
"name": "variant",
|
|
626
|
+
"description": "Controls the badge color treatment.\nIf omitted, the badge uses neutral styling without reflecting a `variant` attribute.\nAccepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.",
|
|
439
627
|
"value": {
|
|
440
628
|
"type": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'"
|
|
441
629
|
}
|
|
442
630
|
},
|
|
443
631
|
{
|
|
444
632
|
"name": "position",
|
|
633
|
+
"description": "Positions the badge in a corner of a parent element.\nUse this with a parent element that has `position: relative`. When set, the badge uses absolute positioning and adjusts its corner radii so it sits flush against the selected corner.\nUse this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.",
|
|
445
634
|
"value": {
|
|
446
635
|
"type": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'"
|
|
447
636
|
}
|
|
448
637
|
}
|
|
449
638
|
],
|
|
639
|
+
"slots": [
|
|
640
|
+
{
|
|
641
|
+
"name": "",
|
|
642
|
+
"description": "The content of the badge, which is typically a short string like \"New\" or \"4\"."
|
|
643
|
+
}
|
|
644
|
+
],
|
|
450
645
|
"events": [],
|
|
451
646
|
"js": {
|
|
452
647
|
"properties": [
|
|
453
648
|
{
|
|
454
649
|
"name": "variant",
|
|
650
|
+
"description": "Controls the badge color treatment.\nIf omitted, the badge uses neutral styling without reflecting a `variant` attribute.\nAccepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.",
|
|
455
651
|
"type": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'"
|
|
456
652
|
},
|
|
457
653
|
{
|
|
458
654
|
"name": "position",
|
|
655
|
+
"description": "Positions the badge in a corner of a parent element.\nUse this with a parent element that has `position: relative`. When set, the badge uses absolute positioning and adjusts its corner radii so it sits flush against the selected corner.\nUse this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.",
|
|
459
656
|
"type": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'"
|
|
460
657
|
}
|
|
461
658
|
],
|
|
@@ -782,21 +979,81 @@
|
|
|
782
979
|
"events": [],
|
|
783
980
|
"js": {
|
|
784
981
|
"properties": [
|
|
785
|
-
{
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
{
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
{
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
982
|
+
{
|
|
983
|
+
"name": "options",
|
|
984
|
+
"description": "The available options to select from",
|
|
985
|
+
"type": "ComboboxOption[]"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"name": "label",
|
|
989
|
+
"description": "Label above input",
|
|
990
|
+
"type": "string | undefined"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"name": "placeholder",
|
|
994
|
+
"description": "Input placeholder",
|
|
995
|
+
"type": "string | undefined"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"name": "value",
|
|
999
|
+
"description": "The input value",
|
|
1000
|
+
"type": "string"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"name": "openOnFocus",
|
|
1004
|
+
"description": "Whether the popover opens when focus is on the text field",
|
|
1005
|
+
"type": "boolean"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"name": "selectOnBlur",
|
|
1009
|
+
"description": "Select active option on blur",
|
|
1010
|
+
"type": "boolean"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "matchTextSegments",
|
|
1014
|
+
"description": "Whether the matching text segments in the options should be highlighted",
|
|
1015
|
+
"type": "boolean"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"name": "disableStaticFiltering",
|
|
1019
|
+
"description": "Disable client-side static filtering",
|
|
1020
|
+
"type": "boolean"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"name": "invalid",
|
|
1024
|
+
"description": "Renders the input field in an invalid state",
|
|
1025
|
+
"type": "boolean"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "helpText",
|
|
1029
|
+
"description": "The content to display as the help text",
|
|
1030
|
+
"type": "string | undefined"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"name": "disabled",
|
|
1034
|
+
"description": "Whether the element is disabled",
|
|
1035
|
+
"type": "boolean"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"name": "required",
|
|
1039
|
+
"description": "Whether the element is required",
|
|
1040
|
+
"type": "boolean"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"name": "optional",
|
|
1044
|
+
"description": "Whether to show optional text",
|
|
1045
|
+
"type": "boolean"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "name",
|
|
1049
|
+
"description": "Name attribute for form submission",
|
|
1050
|
+
"type": "string | undefined"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"name": "autocomplete",
|
|
1054
|
+
"description": "Autocomplete attribute for the input field",
|
|
1055
|
+
"type": "string | undefined"
|
|
1056
|
+
}
|
|
800
1057
|
],
|
|
801
1058
|
"events": []
|
|
802
1059
|
}
|
|
@@ -834,13 +1091,33 @@
|
|
|
834
1091
|
"js": {
|
|
835
1092
|
"properties": [
|
|
836
1093
|
{ "name": "label", "type": "string" },
|
|
837
|
-
{
|
|
1094
|
+
{
|
|
1095
|
+
"name": "lang",
|
|
1096
|
+
"description": "Takes precedence over the `<html>` lang attribute.",
|
|
1097
|
+
"type": "string"
|
|
1098
|
+
},
|
|
838
1099
|
{ "name": "name", "type": "string" },
|
|
839
1100
|
{ "name": "value", "type": "string" },
|
|
840
|
-
{
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
1101
|
+
{
|
|
1102
|
+
"name": "headerFormat",
|
|
1103
|
+
"description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
1104
|
+
"type": "string"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"name": "weekdayFormat",
|
|
1108
|
+
"description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
1109
|
+
"type": "string"
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"name": "isDayDisabled",
|
|
1113
|
+
"description": "Lets you control if a date in the calendar should be disabled.\n\nThis needs to be set on the element instance in JavaScript, not as an HTML attribute.",
|
|
1114
|
+
"type": "(day: Date) => boolean"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"name": "dayFormat",
|
|
1118
|
+
"description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
1119
|
+
"type": "string"
|
|
1120
|
+
},
|
|
844
1121
|
{ "name": "isCalendarOpen", "type": "boolean" },
|
|
845
1122
|
{ "name": "navigationDate", "type": "Date" },
|
|
846
1123
|
{ "name": "selectedDate", "type": "Date | null" },
|
|
@@ -1033,8 +1310,16 @@
|
|
|
1033
1310
|
"events": [],
|
|
1034
1311
|
"js": {
|
|
1035
1312
|
"properties": [
|
|
1036
|
-
{
|
|
1037
|
-
|
|
1313
|
+
{
|
|
1314
|
+
"name": "selectedPage",
|
|
1315
|
+
"description": "Currently selected page (1-based index, clamped to valid range)",
|
|
1316
|
+
"type": "number"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"name": "pageCount",
|
|
1320
|
+
"description": "Total number of pages (minimum 1)",
|
|
1321
|
+
"type": "number"
|
|
1322
|
+
}
|
|
1038
1323
|
],
|
|
1039
1324
|
"events": []
|
|
1040
1325
|
}
|
|
@@ -1327,20 +1612,63 @@
|
|
|
1327
1612
|
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
1328
1613
|
"js": {
|
|
1329
1614
|
"properties": [
|
|
1330
|
-
{
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
{
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
{
|
|
1615
|
+
{
|
|
1616
|
+
"name": "autoFocus",
|
|
1617
|
+
"description": "Whether the element should receive focus on render.",
|
|
1618
|
+
"type": "boolean"
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
"name": "autofocus",
|
|
1622
|
+
"description": "Whether the element should receive focus on render",
|
|
1623
|
+
"type": "boolean"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"name": "helpText",
|
|
1627
|
+
"description": "The content displayed as the help text. Paired with `invalid` to show the text as a validation error.",
|
|
1628
|
+
"type": "string"
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
"name": "invalid",
|
|
1632
|
+
"description": "Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.",
|
|
1633
|
+
"type": "boolean"
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
"name": "always",
|
|
1637
|
+
"description": "Whether to always show a hint.",
|
|
1638
|
+
"type": "boolean"
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"name": "hint",
|
|
1642
|
+
"description": "The content displayed as the help text.",
|
|
1643
|
+
"type": "string"
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"name": "label",
|
|
1647
|
+
"description": "The content to disply as the label",
|
|
1648
|
+
"type": "string"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"name": "optional",
|
|
1652
|
+
"description": "Whether to show optional text",
|
|
1653
|
+
"type": "boolean"
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
"name": "disabled",
|
|
1657
|
+
"description": "Renders the field in a disabled state.",
|
|
1658
|
+
"type": "boolean"
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"name": "readOnly",
|
|
1662
|
+
"description": "Renders the field in a readonly state.",
|
|
1663
|
+
"type": "boolean"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"name": "readonly",
|
|
1667
|
+
"description": "Renders the field in a readonly state.",
|
|
1668
|
+
"type": "boolean"
|
|
1669
|
+
},
|
|
1341
1670
|
{ "name": "name", "type": "string" },
|
|
1342
|
-
{ "name": "value", "type": "string" }
|
|
1343
|
-
{ "name": "_options" }
|
|
1671
|
+
{ "name": "value", "type": "string" }
|
|
1344
1672
|
],
|
|
1345
1673
|
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
1346
1674
|
}
|
|
@@ -1380,13 +1708,7 @@
|
|
|
1380
1708
|
"description": "Value to display in the tooltip",
|
|
1381
1709
|
"type": "string | number"
|
|
1382
1710
|
},
|
|
1383
|
-
{ "name": "ariaDescriptionText" }
|
|
1384
|
-
{ "name": "disabled" },
|
|
1385
|
-
{ "name": "invalid" },
|
|
1386
|
-
{ "name": "openEnded" },
|
|
1387
|
-
{ "name": "valueFormatter" },
|
|
1388
|
-
{ "name": "tooltipFormatter" },
|
|
1389
|
-
{ "name": "labelFormatter" }
|
|
1711
|
+
{ "name": "ariaDescriptionText" }
|
|
1390
1712
|
],
|
|
1391
1713
|
"events": [
|
|
1392
1714
|
{ "name": "thumbreset", "type": "CustomEvent" },
|
|
@@ -1467,29 +1789,52 @@
|
|
|
1467
1789
|
"events": [],
|
|
1468
1790
|
"js": {
|
|
1469
1791
|
"properties": [
|
|
1470
|
-
{
|
|
1792
|
+
{
|
|
1793
|
+
"name": "label",
|
|
1794
|
+
"description": "The slider fieldset label. Required for proper accessibility.\n\nIf you need to display HTML, use the `label` slot instead (f. ex. `<legend class=\"sr-only\" slot=\"label\">Production year</legend>`)",
|
|
1795
|
+
"type": "string"
|
|
1796
|
+
},
|
|
1471
1797
|
{ "name": "disabled", "type": "boolean" },
|
|
1472
|
-
{
|
|
1798
|
+
{
|
|
1799
|
+
"name": "openEnded",
|
|
1800
|
+
"description": "Whether or not to allow values outside the range such as \"Before 1950\" and \"2025+\".",
|
|
1801
|
+
"type": "boolean"
|
|
1802
|
+
},
|
|
1473
1803
|
{ "name": "error", "type": "string" },
|
|
1474
1804
|
{ "name": "helpText", "type": "string" },
|
|
1475
1805
|
{ "name": "invalid", "type": "boolean" },
|
|
1476
|
-
{
|
|
1806
|
+
{
|
|
1807
|
+
"name": "required",
|
|
1808
|
+
"description": "Ensures a child slider thumb has a value before allowing the containing form to submit.",
|
|
1809
|
+
"type": "boolean"
|
|
1810
|
+
},
|
|
1477
1811
|
{ "name": "min", "type": "string" },
|
|
1478
1812
|
{ "name": "max", "type": "string" },
|
|
1479
|
-
{
|
|
1813
|
+
{
|
|
1814
|
+
"name": "markers",
|
|
1815
|
+
"description": "Pass a value similar to step to create visual markers at that interval",
|
|
1816
|
+
"type": "number"
|
|
1817
|
+
},
|
|
1480
1818
|
{ "name": "step", "type": "number" },
|
|
1481
|
-
{
|
|
1819
|
+
{
|
|
1820
|
+
"name": "suffix",
|
|
1821
|
+
"description": "Suffix used in text input fields and for the min and max values of the slider.",
|
|
1822
|
+
"type": "string"
|
|
1823
|
+
},
|
|
1482
1824
|
{ "name": "hiddenTextfield", "type": "boolean" },
|
|
1483
1825
|
{
|
|
1484
1826
|
"name": "valueFormatter",
|
|
1827
|
+
"description": "Formatter for the tooltip and input mask values.",
|
|
1485
1828
|
"type": "(value: string, slot: SliderSlot) => string"
|
|
1486
1829
|
},
|
|
1487
1830
|
{
|
|
1488
1831
|
"name": "tooltipFormatter",
|
|
1832
|
+
"description": "Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example \"300+ hk\" instead of \"Max\" in the tooltip.",
|
|
1489
1833
|
"type": "(value: string, slot: SliderSlot) => string"
|
|
1490
1834
|
},
|
|
1491
1835
|
{
|
|
1492
1836
|
"name": "labelFormatter",
|
|
1837
|
+
"description": "Formatter for the min and max labels below the range.",
|
|
1493
1838
|
"type": "(slot: SliderSlot) => string"
|
|
1494
1839
|
},
|
|
1495
1840
|
{ "name": "fieldset", "type": "HTMLFieldSetElement" },
|
|
@@ -1619,9 +1964,7 @@
|
|
|
1619
1964
|
},
|
|
1620
1965
|
{ "name": "ariaSelected", "type": "'true' | 'false'" },
|
|
1621
1966
|
{ "name": "active", "type": "boolean" },
|
|
1622
|
-
{ "name": "over", "type": "boolean" }
|
|
1623
|
-
{ "name": "_parentTabIndex" },
|
|
1624
|
-
{ "name": "_parentAriaSelected" }
|
|
1967
|
+
{ "name": "over", "type": "boolean" }
|
|
1625
1968
|
],
|
|
1626
1969
|
"events": []
|
|
1627
1970
|
}
|
|
@@ -1644,9 +1987,7 @@
|
|
|
1644
1987
|
"name": "active",
|
|
1645
1988
|
"description": "Whether this panel is active (visible).\nSet by parent w-tabs via the _parentActive property.",
|
|
1646
1989
|
"type": "boolean"
|
|
1647
|
-
}
|
|
1648
|
-
{ "name": "_parentActive" },
|
|
1649
|
-
{ "name": "_parentAriaLabelledBy" }
|
|
1990
|
+
}
|
|
1650
1991
|
],
|
|
1651
1992
|
"events": []
|
|
1652
1993
|
}
|
|
@@ -1668,59 +2009,138 @@
|
|
|
1668
2009
|
},
|
|
1669
2010
|
{
|
|
1670
2011
|
"name": "w-textarea",
|
|
1671
|
-
"description": "A
|
|
2012
|
+
"description": "A multi-line text input with built-in form validation, auto-resizing, and styling support.\n\nThe component automatically handles:\n - Form integration\n - Auto-resizing based on content and row constraints\n - Built-in validation with customizable error messages\n - Accessibility attributes and labeling\n---\n\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks whether the textarea passes constraint validation\n- **reportValidity(): _boolean_** - Checks validity and shows the browser's validation message if invalid\n- **setCustomValidity(message: _string_): _void_** - Sets a custom validation message. Pass an empty string to clear.",
|
|
1672
2013
|
"doc-url": "",
|
|
1673
2014
|
"attributes": [
|
|
1674
2015
|
{
|
|
1675
2016
|
"name": "disabled",
|
|
2017
|
+
"description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
|
|
1676
2018
|
"value": { "type": "boolean", "default": "false" }
|
|
1677
2019
|
},
|
|
1678
2020
|
{
|
|
1679
2021
|
"name": "invalid",
|
|
2022
|
+
"description": "Mark the form field as invalid.\n\nMake sure to also set a `help-text` to help users fix the validation problem.",
|
|
1680
2023
|
"value": { "type": "boolean", "default": "false" }
|
|
1681
2024
|
},
|
|
1682
|
-
{
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
{
|
|
2025
|
+
{
|
|
2026
|
+
"name": "label",
|
|
2027
|
+
"description": "Either a `label` or an `aria-label` must be provided.",
|
|
2028
|
+
"value": { "type": "string" }
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"name": "help-text",
|
|
2032
|
+
"description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
|
|
2033
|
+
"value": { "type": "string" }
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
"name": "maximum-rows",
|
|
2037
|
+
"description": "Sets the maximum number of text rows before the content starts scrolling.",
|
|
2038
|
+
"value": { "type": "number" }
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
"name": "minimum-rows",
|
|
2042
|
+
"description": "Sets the minimum number of text rows the textarea should display",
|
|
2043
|
+
"value": { "type": "number" }
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
"name": "name",
|
|
2047
|
+
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form",
|
|
2048
|
+
"value": { "type": "string" }
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"name": "placeholder",
|
|
2052
|
+
"description": "Set a text that is shown in the textarea when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
|
|
2053
|
+
"value": { "type": "string" }
|
|
2054
|
+
},
|
|
1688
2055
|
{
|
|
1689
2056
|
"name": "read-only",
|
|
1690
2057
|
"value": { "type": "boolean", "default": "false" }
|
|
1691
2058
|
},
|
|
1692
2059
|
{
|
|
1693
2060
|
"name": "readonly",
|
|
2061
|
+
"description": "Whether the input can be selected but not changed by the user",
|
|
1694
2062
|
"value": { "type": "boolean", "default": "false" }
|
|
1695
2063
|
},
|
|
1696
2064
|
{
|
|
1697
2065
|
"name": "required",
|
|
2066
|
+
"description": "Whether user input is required on the input before form submission",
|
|
1698
2067
|
"value": { "type": "boolean", "default": "false" }
|
|
1699
2068
|
},
|
|
1700
|
-
{
|
|
2069
|
+
{
|
|
2070
|
+
"name": "value",
|
|
2071
|
+
"description": "Lets you set the current value",
|
|
2072
|
+
"value": { "type": "string" }
|
|
2073
|
+
},
|
|
1701
2074
|
{
|
|
1702
2075
|
"name": "optional",
|
|
2076
|
+
"description": "Show an icon behind the label indicating the field is optional",
|
|
1703
2077
|
"value": { "type": "boolean", "default": "false" }
|
|
1704
2078
|
}
|
|
1705
2079
|
],
|
|
1706
2080
|
"events": [],
|
|
1707
2081
|
"js": {
|
|
1708
2082
|
"properties": [
|
|
1709
|
-
{
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
{
|
|
1715
|
-
|
|
1716
|
-
|
|
2083
|
+
{
|
|
2084
|
+
"name": "disabled",
|
|
2085
|
+
"description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
|
|
2086
|
+
"type": "boolean"
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
"name": "invalid",
|
|
2090
|
+
"description": "Mark the form field as invalid.\n\nMake sure to also set a `help-text` to help users fix the validation problem.",
|
|
2091
|
+
"type": "boolean"
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
"name": "label",
|
|
2095
|
+
"description": "Either a `label` or an `aria-label` must be provided.",
|
|
2096
|
+
"type": "string"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"name": "helpText",
|
|
2100
|
+
"description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
|
|
2101
|
+
"type": "string"
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
"name": "maxRows",
|
|
2105
|
+
"description": "Sets the maximum number of text rows before the content starts scrolling.",
|
|
2106
|
+
"type": "number"
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
"name": "minRows",
|
|
2110
|
+
"description": "Sets the minimum number of text rows the textarea should display",
|
|
2111
|
+
"type": "number"
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
"name": "name",
|
|
2115
|
+
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form",
|
|
2116
|
+
"type": "string"
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
"name": "placeholder",
|
|
2120
|
+
"description": "Set a text that is shown in the textarea when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
|
|
2121
|
+
"type": "string"
|
|
2122
|
+
},
|
|
1717
2123
|
{ "name": "readOnly", "type": "boolean" },
|
|
1718
|
-
{
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
{
|
|
2124
|
+
{
|
|
2125
|
+
"name": "readonly",
|
|
2126
|
+
"description": "Whether the input can be selected but not changed by the user",
|
|
2127
|
+
"type": "boolean"
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
"name": "required",
|
|
2131
|
+
"description": "Whether user input is required on the input before form submission",
|
|
2132
|
+
"type": "boolean"
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"name": "value",
|
|
2136
|
+
"description": "Lets you set the current value",
|
|
2137
|
+
"type": "string"
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
"name": "optional",
|
|
2141
|
+
"description": "Show an icon behind the label indicating the field is optional",
|
|
2142
|
+
"type": "boolean"
|
|
2143
|
+
},
|
|
1724
2144
|
{
|
|
1725
2145
|
"name": "validationMessage",
|
|
1726
2146
|
"description": "Returns the validation message if the textarea is invalid, otherwise an empty string",
|