@warp-ds/elements 2.9.0-next.4 → 2.9.0-next.6

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.
Files changed (99) hide show
  1. package/dist/custom-elements.json +3554 -3442
  2. package/dist/docs/affix/accessibility.md +7 -0
  3. package/dist/docs/affix/affix.md +174 -10
  4. package/dist/docs/affix/api.md +28 -10
  5. package/dist/docs/affix/examples.md +92 -0
  6. package/dist/docs/affix/usage.md +47 -0
  7. package/dist/docs/alert/alert.md +12 -12
  8. package/dist/docs/alert/api.md +12 -12
  9. package/dist/docs/attention/api.md +46 -46
  10. package/dist/docs/attention/attention.md +46 -46
  11. package/dist/docs/badge/accessibility.md +44 -0
  12. package/dist/docs/badge/api.md +12 -8
  13. package/dist/docs/badge/badge.md +191 -10
  14. package/dist/docs/badge/examples.md +82 -0
  15. package/dist/docs/badge/usage.md +53 -0
  16. package/dist/docs/button/api.md +46 -42
  17. package/dist/docs/button/button.md +46 -42
  18. package/dist/docs/card/api.md +11 -11
  19. package/dist/docs/card/card.md +11 -11
  20. package/dist/docs/combobox/api.md +62 -62
  21. package/dist/docs/combobox/combobox.md +62 -62
  22. package/dist/docs/datepicker/api.md +74 -66
  23. package/dist/docs/datepicker/datepicker.md +74 -66
  24. package/dist/docs/expandable/api.md +26 -26
  25. package/dist/docs/expandable/expandable.md +26 -26
  26. package/dist/docs/link/api.md +28 -28
  27. package/dist/docs/link/link.md +28 -28
  28. package/dist/docs/page-indicator/api.md +6 -6
  29. package/dist/docs/page-indicator/page-indicator.md +6 -6
  30. package/dist/docs/pagination/api.md +3 -3
  31. package/dist/docs/pagination/pagination.md +3 -3
  32. package/dist/docs/pill/api.md +19 -15
  33. package/dist/docs/pill/pill.md +19 -15
  34. package/dist/docs/select/api.md +44 -44
  35. package/dist/docs/select/select.md +44 -44
  36. package/dist/docs/slider/api.md +80 -78
  37. package/dist/docs/slider/slider.md +80 -78
  38. package/dist/docs/slider-thumb/api.md +28 -76
  39. package/dist/docs/slider-thumb/slider-thumb.md +28 -76
  40. package/dist/docs/switch/api.md +16 -16
  41. package/dist/docs/switch/switch.md +16 -16
  42. package/dist/docs/tab/api.md +26 -40
  43. package/dist/docs/tab/tab.md +26 -40
  44. package/dist/docs/tab-panel/api.md +1 -17
  45. package/dist/docs/tab-panel/tab-panel.md +1 -17
  46. package/dist/docs/tabs/api.md +3 -3
  47. package/dist/docs/tabs/tabs.md +3 -3
  48. package/dist/docs/textarea/api.md +42 -40
  49. package/dist/docs/textarea/textarea.md +42 -40
  50. package/dist/docs/textfield/accessibility.md +15 -0
  51. package/dist/docs/textfield/api.md +86 -83
  52. package/dist/docs/textfield/examples.md +147 -0
  53. package/dist/docs/textfield/textfield.md +279 -86
  54. package/dist/docs/textfield/usage.md +30 -0
  55. package/dist/index.d.ts +343 -319
  56. package/dist/packages/affix/affix.d.ts +23 -14
  57. package/dist/packages/affix/affix.js +24 -11
  58. package/dist/packages/affix/affix.js.map +4 -4
  59. package/dist/packages/affix/affix.stories.d.ts +3 -0
  60. package/dist/packages/affix/affix.stories.js +16 -0
  61. package/dist/packages/affix/affix.test.js +7 -0
  62. package/dist/packages/affix/locales/da/messages.d.mts +1 -0
  63. package/dist/packages/affix/locales/da/messages.mjs +1 -0
  64. package/dist/packages/affix/locales/en/messages.d.mts +1 -0
  65. package/dist/packages/affix/locales/en/messages.mjs +1 -0
  66. package/dist/packages/affix/locales/fi/messages.d.mts +1 -0
  67. package/dist/packages/affix/locales/fi/messages.mjs +1 -0
  68. package/dist/packages/affix/locales/nb/messages.d.mts +1 -0
  69. package/dist/packages/affix/locales/nb/messages.mjs +1 -0
  70. package/dist/packages/affix/locales/sv/messages.d.mts +1 -0
  71. package/dist/packages/affix/locales/sv/messages.mjs +1 -0
  72. package/dist/packages/badge/badge.d.ts +7 -5
  73. package/dist/packages/badge/badge.js.map +2 -2
  74. package/dist/packages/badge/badge.react.stories.d.ts +1 -1
  75. package/dist/packages/box/box.react.stories.d.ts +1 -1
  76. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
  77. package/dist/packages/button/button.react.stories.d.ts +1 -1
  78. package/dist/packages/card/card.react.stories.d.ts +1 -1
  79. package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
  80. package/dist/packages/datepicker/datepicker.js +1 -1
  81. package/dist/packages/datepicker/datepicker.js.map +2 -2
  82. package/dist/packages/datepicker/datepicker.react.stories.d.ts +9 -1
  83. package/dist/packages/datepicker/react.d.ts +4 -0
  84. package/dist/packages/datepicker/react.js +4 -0
  85. package/dist/packages/expandable/expandable.react.stories.d.ts +1 -1
  86. package/dist/packages/link/link.react.stories.d.ts +1 -1
  87. package/dist/packages/page-indicator/page-indicator.react.stories.d.ts +1 -1
  88. package/dist/packages/pagination/pagination.react.stories.d.ts +1 -1
  89. package/dist/packages/pill/pill.react.stories.d.ts +1 -1
  90. package/dist/packages/select/select.react.stories.d.ts +1 -1
  91. package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
  92. package/dist/packages/textfield/textfield.d.ts +57 -60
  93. package/dist/packages/textfield/textfield.js +5 -5
  94. package/dist/packages/textfield/textfield.js.map +2 -2
  95. package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
  96. package/dist/packages/textfield/textfield.stories.d.ts +3 -0
  97. package/dist/packages/textfield/textfield.stories.js +45 -0
  98. package/dist/web-types.json +452 -147
  99. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { WIcon } from "./packages/icon/icon.ts";
2
+ import type { WarpTextField } from "./packages/textfield/textfield.ts";
2
3
  import type { WarpAffix } from "./packages/affix/affix.ts";
3
4
  import type { WarpAlert } from "./packages/alert/alert.ts";
4
5
  import type { WarpLink } from "./packages/link/link.ts";
@@ -22,7 +23,6 @@ import type { WarpPill } from "./packages/pill/pill.ts";
22
23
  import type { WRadio } from "./packages/radio/radio.ts";
23
24
  import type { WRadioGroup } from "./packages/radio-group/radio-group.ts";
24
25
  import type { WarpSelect } from "./packages/select/select.ts";
25
- import type { WarpTextField } from "./packages/textfield/textfield.ts";
26
26
  import type { WarpSliderThumb } from "./packages/slider-thumb/slider-thumb.ts";
27
27
  import type { WarpSlider } from "./packages/slider/slider.ts";
28
28
  import type { WarpStep } from "./packages/step/step.ts";
@@ -128,6 +128,149 @@ export type WIconSolidJsProps = {
128
128
  textContent?: string | number;
129
129
  };
130
130
 
131
+ export type WarpTextFieldProps = {
132
+ /** Keep in mind that using disabled in its current form is an anti-pattern.
133
+
134
+ There 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.
135
+
136
+ Please consider more informative alternatives before choosing to use disabled on an element. */
137
+ disabled?: WarpTextField["disabled"];
138
+ /** Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem. */
139
+ invalid?: WarpTextField["invalid"];
140
+ /** Either a `label` or an `aria-label` must be provided. */
141
+ label?: WarpTextField["label"];
142
+ /** Use in combination with `invalid` to show as a validation error message,
143
+ or on its own to show a help text. */
144
+ "help-text"?: WarpTextField["helpText"];
145
+ /** Use in combination with `invalid` to show as a validation error message,
146
+ or on its own to show a help text. */
147
+ helpText?: WarpTextField["helpText"];
148
+ /** 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. */
149
+ size?: WarpTextField["size"];
150
+ /** Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength). */
151
+ max?: WarpTextField["max"];
152
+ /** Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength). */
153
+ min?: WarpTextField["min"];
154
+ /** @deprecated Use the native `minlength` attribute */
155
+ "min-length"?: WarpTextField["minLength"];
156
+ /** @deprecated Use the native `minlength` attribute */
157
+ minLength?: WarpTextField["minLength"];
158
+ /** 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. */
159
+ minlength?: WarpTextField["minlength"];
160
+ /** @deprecated Use the native `maxlength` attribute */
161
+ "max-length"?: WarpTextField["maxLength"];
162
+ /** @deprecated Use the native `maxlength` attribute */
163
+ maxLength?: WarpTextField["maxLength"];
164
+ /** 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. */
165
+ maxlength?: WarpTextField["maxlength"];
166
+ /** 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) */
167
+ pattern?: WarpTextField["pattern"];
168
+ /** Set a text that is shown in the textfield when it doesn't have a value.
169
+
170
+ Placeholder text should not be used as a substitute for labeling the element with a visible label. */
171
+ placeholder?: WarpTextField["placeholder"];
172
+ /** @deprecated Use the native readonly attribute instead. */
173
+ "read-only"?: WarpTextField["readOnly"];
174
+ /** @deprecated Use the native readonly attribute instead. */
175
+ readOnly?: WarpTextField["readOnly"];
176
+ /** Whether the input can be selected but not changed by the user. */
177
+ readonly?: WarpTextField["readonly"];
178
+ /** Whether user input is required on the input before form submission. */
179
+ required?: WarpTextField["required"];
180
+ /** The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types). */
181
+ type?: WarpTextField["type"];
182
+ /** Lets you set the current value. */
183
+ value?: WarpTextField["value"];
184
+ /** The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form. */
185
+ name?: WarpTextField["name"];
186
+ /** When used with `number` this attribute forces inputs to be a whole number of `step`.
187
+
188
+ For example with a `step="5"` only values that divide evenly on 5 are allowed.
189
+ Using arrow up and down in the input field increments and decrements by 5. */
190
+ step?: WarpTextField["step"];
191
+ /** 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. */
192
+ autocomplete?: WarpTextField["autocomplete"];
193
+ /** Function to format value when the input field.
194
+
195
+ Only active when the input field does not have focus,
196
+ similar to the accessible input [masking example from Filament Group](https://filamentgroup.github.io/politespace/demo/demo.html). */
197
+ formatter?: WarpTextField["formatter"];
198
+ };
199
+
200
+ export type WarpTextFieldSolidJsProps = {
201
+ /** Keep in mind that using disabled in its current form is an anti-pattern.
202
+
203
+ There 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.
204
+
205
+ Please consider more informative alternatives before choosing to use disabled on an element. */
206
+ "prop:disabled"?: WarpTextField["disabled"];
207
+ /** Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem. */
208
+ "prop:invalid"?: WarpTextField["invalid"];
209
+ /** Either a `label` or an `aria-label` must be provided. */
210
+ "prop:label"?: WarpTextField["label"];
211
+ /** Use in combination with `invalid` to show as a validation error message,
212
+ or on its own to show a help text. */
213
+ "attr:help-text"?: WarpTextField["helpText"];
214
+ /** Use in combination with `invalid` to show as a validation error message,
215
+ or on its own to show a help text. */
216
+ "prop:helpText"?: WarpTextField["helpText"];
217
+ /** 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. */
218
+ "prop:size"?: WarpTextField["size"];
219
+ /** Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength). */
220
+ "prop:max"?: WarpTextField["max"];
221
+ /** Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength). */
222
+ "prop:min"?: WarpTextField["min"];
223
+ /** @deprecated Use the native `minlength` attribute */
224
+ "attr:min-length"?: WarpTextField["minLength"];
225
+ /** @deprecated Use the native `minlength` attribute */
226
+ "prop:minLength"?: WarpTextField["minLength"];
227
+ /** 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. */
228
+ "prop:minlength"?: WarpTextField["minlength"];
229
+ /** @deprecated Use the native `maxlength` attribute */
230
+ "attr:max-length"?: WarpTextField["maxLength"];
231
+ /** @deprecated Use the native `maxlength` attribute */
232
+ "prop:maxLength"?: WarpTextField["maxLength"];
233
+ /** 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. */
234
+ "prop:maxlength"?: WarpTextField["maxlength"];
235
+ /** 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) */
236
+ "prop:pattern"?: WarpTextField["pattern"];
237
+ /** Set a text that is shown in the textfield when it doesn't have a value.
238
+
239
+ Placeholder text should not be used as a substitute for labeling the element with a visible label. */
240
+ "prop:placeholder"?: WarpTextField["placeholder"];
241
+ /** @deprecated Use the native readonly attribute instead. */
242
+ "bool:read-only"?: WarpTextField["readOnly"];
243
+ /** @deprecated Use the native readonly attribute instead. */
244
+ "prop:readOnly"?: WarpTextField["readOnly"];
245
+ /** Whether the input can be selected but not changed by the user. */
246
+ "prop:readonly"?: WarpTextField["readonly"];
247
+ /** Whether user input is required on the input before form submission. */
248
+ "prop:required"?: WarpTextField["required"];
249
+ /** The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types). */
250
+ "prop:type"?: WarpTextField["type"];
251
+ /** Lets you set the current value. */
252
+ "prop:value"?: WarpTextField["value"];
253
+ /** The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form. */
254
+ "prop:name"?: WarpTextField["name"];
255
+ /** When used with `number` this attribute forces inputs to be a whole number of `step`.
256
+
257
+ For example with a `step="5"` only values that divide evenly on 5 are allowed.
258
+ Using arrow up and down in the input field increments and decrements by 5. */
259
+ "prop:step"?: WarpTextField["step"];
260
+ /** 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. */
261
+ "prop:autocomplete"?: WarpTextField["autocomplete"];
262
+ /** Function to format value when the input field.
263
+
264
+ Only active when the input field does not have focus,
265
+ similar to the accessible input [masking example from Filament Group](https://filamentgroup.github.io/politespace/demo/demo.html). */
266
+ "prop:formatter"?: WarpTextField["formatter"];
267
+
268
+ /** Set the innerHTML of the element */
269
+ innerHTML?: string;
270
+ /** Set the textContent of the element */
271
+ textContent?: string | number;
272
+ };
273
+
131
274
  export type WarpAffixProps = {
132
275
  /** */
133
276
  "aria-label"?: WarpAffix["ariaLabel"];
@@ -137,12 +280,12 @@ export type WarpAffixProps = {
137
280
 
138
281
  Set an `aria-label` that explains the action when using this. */
139
282
  clear?: WarpAffix["clear"];
140
- /** Add this property to render a clickable Warp search icon.
141
-
142
- Set an `aria-label` that explains the action when using this. */
283
+ /** Add this property to render a clickable Warp search icon. */
143
284
  search?: WarpAffix["search"];
144
285
  /** */
145
286
  label?: WarpAffix["label"];
287
+ /** */
288
+ icon?: WarpAffix["icon"];
146
289
  };
147
290
 
148
291
  export type WarpAffixSolidJsProps = {
@@ -154,12 +297,12 @@ export type WarpAffixSolidJsProps = {
154
297
 
155
298
  Set an `aria-label` that explains the action when using this. */
156
299
  "prop:clear"?: WarpAffix["clear"];
157
- /** Add this property to render a clickable Warp search icon.
158
-
159
- Set an `aria-label` that explains the action when using this. */
300
+ /** Add this property to render a clickable Warp search icon. */
160
301
  "prop:search"?: WarpAffix["search"];
161
302
  /** */
162
303
  "prop:label"?: WarpAffix["label"];
304
+ /** */
305
+ "prop:icon"?: WarpAffix["icon"];
163
306
 
164
307
  /** Set the innerHTML of the element */
165
308
  innerHTML?: string;
@@ -412,16 +555,24 @@ export type WarpAttentionSolidJsProps = {
412
555
  };
413
556
 
414
557
  export type WarpBadgeProps = {
415
- /** */
558
+ /** Controls the badge color treatment.
559
+ If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
560
+ Accepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute. */
416
561
  variant?: WarpBadge["variant"];
417
- /** */
562
+ /** Positions the badge in a corner of a parent element.
563
+ Use 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.
564
+ Use this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`. */
418
565
  position?: WarpBadge["position"];
419
566
  };
420
567
 
421
568
  export type WarpBadgeSolidJsProps = {
422
- /** */
569
+ /** Controls the badge color treatment.
570
+ If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
571
+ Accepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute. */
423
572
  "prop:variant"?: WarpBadge["variant"];
424
- /** */
573
+ /** Positions the badge in a corner of a parent element.
574
+ Use 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.
575
+ Use this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`. */
425
576
  "prop:position"?: WarpBadge["position"];
426
577
 
427
578
  /** Set the innerHTML of the element */
@@ -714,7 +865,9 @@ The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/form
714
865
 
715
866
  The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
716
867
  dayFormat?: WarpDatepicker["dayFormat"];
717
- /** */
868
+ /** Lets you control if a date in the calendar should be disabled.
869
+
870
+ This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
718
871
  isDayDisabled?: WarpDatepicker["isDayDisabled"];
719
872
  /** */
720
873
  isCalendarOpen?: WarpDatepicker["isCalendarOpen"];
@@ -773,7 +926,9 @@ The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/form
773
926
 
774
927
  The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
775
928
  "prop:dayFormat"?: WarpDatepicker["dayFormat"];
776
- /** */
929
+ /** Lets you control if a date in the calendar should be disabled.
930
+
931
+ This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
777
932
  "prop:isDayDisabled"?: WarpDatepicker["isDayDisabled"];
778
933
  /** */
779
934
  "prop:isCalendarOpen"?: WarpDatepicker["isCalendarOpen"];
@@ -1242,8 +1397,6 @@ export type WarpSelectProps = {
1242
1397
  name?: WarpSelect["name"];
1243
1398
  /** */
1244
1399
  value?: WarpSelect["value"];
1245
- /** */
1246
- _options?: WarpSelect["_options"];
1247
1400
 
1248
1401
  /** */
1249
1402
  onchange?: (e: CustomEvent) => void;
@@ -1283,8 +1436,6 @@ export type WarpSelectSolidJsProps = {
1283
1436
  /** */
1284
1437
  "prop:value"?: WarpSelect["value"];
1285
1438
  /** */
1286
- "prop:_options"?: WarpSelect["_options"];
1287
- /** */
1288
1439
  "on:change"?: (e: CustomEvent) => void;
1289
1440
 
1290
1441
  /** Set the innerHTML of the element */
@@ -1293,125 +1444,6 @@ export type WarpSelectSolidJsProps = {
1293
1444
  textContent?: string | number;
1294
1445
  };
1295
1446
 
1296
- export type WarpTextFieldProps = {
1297
- /** */
1298
- disabled?: WarpTextField["disabled"];
1299
- /** */
1300
- invalid?: WarpTextField["invalid"];
1301
- /** */
1302
- id?: WarpTextField["id"];
1303
- /** */
1304
- label?: WarpTextField["label"];
1305
- /** */
1306
- "help-text"?: WarpTextField["helpText"];
1307
- /** */
1308
- helpText?: WarpTextField["helpText"];
1309
- /** */
1310
- size?: WarpTextField["size"];
1311
- /** */
1312
- max?: WarpTextField["max"];
1313
- /** */
1314
- min?: WarpTextField["min"];
1315
- /** */
1316
- "min-length"?: WarpTextField["minLength"];
1317
- /** */
1318
- minLength?: WarpTextField["minLength"];
1319
- /** */
1320
- "max-length"?: WarpTextField["maxLength"];
1321
- /** */
1322
- maxLength?: WarpTextField["maxLength"];
1323
- /** */
1324
- pattern?: WarpTextField["pattern"];
1325
- /** */
1326
- placeholder?: WarpTextField["placeholder"];
1327
- /** @deprecated Use the native readonly attribute instead. */
1328
- "read-only"?: WarpTextField["readOnly"];
1329
- /** @deprecated Use the native readonly attribute instead. */
1330
- readOnly?: WarpTextField["readOnly"];
1331
- /** */
1332
- readonly?: WarpTextField["readonly"];
1333
- /** */
1334
- required?: WarpTextField["required"];
1335
- /** */
1336
- type?: WarpTextField["type"];
1337
- /** */
1338
- value?: WarpTextField["value"];
1339
- /** */
1340
- name?: WarpTextField["name"];
1341
- /** */
1342
- step?: WarpTextField["step"];
1343
- /** */
1344
- autocomplete?: WarpTextField["autocomplete"];
1345
- /** */
1346
- formatter?: WarpTextField["formatter"];
1347
- /** */
1348
- _hasPrefix?: WarpTextField["_hasPrefix"];
1349
- /** */
1350
- _hasSuffix?: WarpTextField["_hasSuffix"];
1351
- };
1352
-
1353
- export type WarpTextFieldSolidJsProps = {
1354
- /** */
1355
- "prop:disabled"?: WarpTextField["disabled"];
1356
- /** */
1357
- "prop:invalid"?: WarpTextField["invalid"];
1358
- /** */
1359
- "prop:id"?: WarpTextField["id"];
1360
- /** */
1361
- "prop:label"?: WarpTextField["label"];
1362
- /** */
1363
- "attr:help-text"?: WarpTextField["helpText"];
1364
- /** */
1365
- "prop:helpText"?: WarpTextField["helpText"];
1366
- /** */
1367
- "prop:size"?: WarpTextField["size"];
1368
- /** */
1369
- "prop:max"?: WarpTextField["max"];
1370
- /** */
1371
- "prop:min"?: WarpTextField["min"];
1372
- /** */
1373
- "attr:min-length"?: WarpTextField["minLength"];
1374
- /** */
1375
- "prop:minLength"?: WarpTextField["minLength"];
1376
- /** */
1377
- "attr:max-length"?: WarpTextField["maxLength"];
1378
- /** */
1379
- "prop:maxLength"?: WarpTextField["maxLength"];
1380
- /** */
1381
- "prop:pattern"?: WarpTextField["pattern"];
1382
- /** */
1383
- "prop:placeholder"?: WarpTextField["placeholder"];
1384
- /** @deprecated Use the native readonly attribute instead. */
1385
- "bool:read-only"?: WarpTextField["readOnly"];
1386
- /** @deprecated Use the native readonly attribute instead. */
1387
- "prop:readOnly"?: WarpTextField["readOnly"];
1388
- /** */
1389
- "prop:readonly"?: WarpTextField["readonly"];
1390
- /** */
1391
- "prop:required"?: WarpTextField["required"];
1392
- /** */
1393
- "prop:type"?: WarpTextField["type"];
1394
- /** */
1395
- "prop:value"?: WarpTextField["value"];
1396
- /** */
1397
- "prop:name"?: WarpTextField["name"];
1398
- /** */
1399
- "prop:step"?: WarpTextField["step"];
1400
- /** */
1401
- "prop:autocomplete"?: WarpTextField["autocomplete"];
1402
- /** */
1403
- "prop:formatter"?: WarpTextField["formatter"];
1404
- /** */
1405
- "prop:_hasPrefix"?: WarpTextField["_hasPrefix"];
1406
- /** */
1407
- "prop:_hasSuffix"?: WarpTextField["_hasSuffix"];
1408
-
1409
- /** Set the innerHTML of the element */
1410
- innerHTML?: string;
1411
- /** Set the textContent of the element */
1412
- textContent?: string | number;
1413
- };
1414
-
1415
1447
  export type WarpSliderThumbProps = {
1416
1448
  /** */
1417
1449
  "aria-label"?: WarpSliderThumb["ariaLabel"];
@@ -1433,18 +1465,6 @@ export type WarpSliderThumbProps = {
1433
1465
  tooltipTarget?: WarpSliderThumb["tooltipTarget"];
1434
1466
  /** */
1435
1467
  textfield?: WarpSliderThumb["textfield"];
1436
- /** */
1437
- disabled?: WarpSliderThumb["disabled"];
1438
- /** */
1439
- invalid?: WarpSliderThumb["invalid"];
1440
- /** */
1441
- openEnded?: WarpSliderThumb["openEnded"];
1442
- /** */
1443
- valueFormatter?: WarpSliderThumb["valueFormatter"];
1444
- /** */
1445
- tooltipFormatter?: WarpSliderThumb["tooltipFormatter"];
1446
- /** */
1447
- labelFormatter?: WarpSliderThumb["labelFormatter"];
1448
1468
 
1449
1469
  /** */
1450
1470
  onthumbreset?: (e: CustomEvent) => void;
@@ -1474,18 +1494,6 @@ export type WarpSliderThumbSolidJsProps = {
1474
1494
  /** */
1475
1495
  "prop:textfield"?: WarpSliderThumb["textfield"];
1476
1496
  /** */
1477
- "prop:disabled"?: WarpSliderThumb["disabled"];
1478
- /** */
1479
- "prop:invalid"?: WarpSliderThumb["invalid"];
1480
- /** */
1481
- "prop:openEnded"?: WarpSliderThumb["openEnded"];
1482
- /** */
1483
- "prop:valueFormatter"?: WarpSliderThumb["valueFormatter"];
1484
- /** */
1485
- "prop:tooltipFormatter"?: WarpSliderThumb["tooltipFormatter"];
1486
- /** */
1487
- "prop:labelFormatter"?: WarpSliderThumb["labelFormatter"];
1488
- /** */
1489
1497
  "on:thumbreset"?: (e: CustomEvent) => void;
1490
1498
  /** */
1491
1499
  "on:slidervalidity"?: (e: CustomEvent) => void;
@@ -1531,11 +1539,11 @@ If you need to display HTML, use the `label` slot instead (f. ex. `<legend class
1531
1539
  "hidden-textfield"?: WarpSlider["hiddenTextfield"];
1532
1540
  /** */
1533
1541
  hiddenTextfield?: WarpSlider["hiddenTextfield"];
1534
- /** */
1542
+ /** Formatter for the tooltip and input mask values. */
1535
1543
  valueFormatter?: WarpSlider["valueFormatter"];
1536
- /** */
1544
+ /** Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example "300+ hk" instead of "Max" in the tooltip. */
1537
1545
  tooltipFormatter?: WarpSlider["tooltipFormatter"];
1538
- /** */
1546
+ /** Formatter for the min and max labels below the range. */
1539
1547
  labelFormatter?: WarpSlider["labelFormatter"];
1540
1548
  /** */
1541
1549
  fieldset?: WarpSlider["fieldset"];
@@ -1584,11 +1592,11 @@ If you need to display HTML, use the `label` slot instead (f. ex. `<legend class
1584
1592
  "bool:hidden-textfield"?: WarpSlider["hiddenTextfield"];
1585
1593
  /** */
1586
1594
  "prop:hiddenTextfield"?: WarpSlider["hiddenTextfield"];
1587
- /** */
1595
+ /** Formatter for the tooltip and input mask values. */
1588
1596
  "prop:valueFormatter"?: WarpSlider["valueFormatter"];
1589
- /** */
1597
+ /** Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example "300+ hk" instead of "Max" in the tooltip. */
1590
1598
  "prop:tooltipFormatter"?: WarpSlider["tooltipFormatter"];
1591
- /** */
1599
+ /** Formatter for the min and max labels below the range. */
1592
1600
  "prop:labelFormatter"?: WarpSlider["labelFormatter"];
1593
1601
  /** */
1594
1602
  "prop:fieldset"?: WarpSlider["fieldset"];
@@ -1696,10 +1704,6 @@ export type WarpTabProps = {
1696
1704
  over?: WarpTab["over"];
1697
1705
  /** Override tabIndex setter to set _parentTabIndex (for backwards compatibility). */
1698
1706
  tabIndex?: WarpTab["tabIndex"];
1699
- /** */
1700
- _parentTabIndex?: WarpTab["_parentTabIndex"];
1701
- /** */
1702
- _parentAriaSelected?: WarpTab["_parentAriaSelected"];
1703
1707
  };
1704
1708
 
1705
1709
  export type WarpTabSolidJsProps = {
@@ -1721,10 +1725,6 @@ export type WarpTabSolidJsProps = {
1721
1725
  "prop:over"?: WarpTab["over"];
1722
1726
  /** Override tabIndex setter to set _parentTabIndex (for backwards compatibility). */
1723
1727
  "prop:tabIndex"?: WarpTab["tabIndex"];
1724
- /** */
1725
- "prop:_parentTabIndex"?: WarpTab["_parentTabIndex"];
1726
- /** */
1727
- "prop:_parentAriaSelected"?: WarpTab["_parentAriaSelected"];
1728
1728
 
1729
1729
  /** Set the innerHTML of the element */
1730
1730
  innerHTML?: string;
@@ -1736,20 +1736,12 @@ export type WarpTabPanelProps = {
1736
1736
  /** Whether this panel is active (visible).
1737
1737
  Set by parent w-tabs via the _parentActive property. */
1738
1738
  active?: WarpTabPanel["active"];
1739
- /** */
1740
- _parentActive?: WarpTabPanel["_parentActive"];
1741
- /** */
1742
- _parentAriaLabelledBy?: WarpTabPanel["_parentAriaLabelledBy"];
1743
1739
  };
1744
1740
 
1745
1741
  export type WarpTabPanelSolidJsProps = {
1746
1742
  /** Whether this panel is active (visible).
1747
1743
  Set by parent w-tabs via the _parentActive property. */
1748
1744
  "prop:active"?: WarpTabPanel["active"];
1749
- /** */
1750
- "prop:_parentActive"?: WarpTabPanel["_parentActive"];
1751
- /** */
1752
- "prop:_parentAriaLabelledBy"?: WarpTabPanel["_parentAriaLabelledBy"];
1753
1745
 
1754
1746
  /** Set the innerHTML of the element */
1755
1747
  innerHTML?: string;
@@ -1878,6 +1870,69 @@ export type CustomElements = {
1878
1870
  */
1879
1871
  "w-icon": Partial<WIconProps & BaseProps<WIcon> & BaseEvents>;
1880
1872
 
1873
+ /**
1874
+ * A single-line input component used for entering and editing textual or numeric data.
1875
+ *
1876
+ * ## Attributes & Properties
1877
+ *
1878
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
1879
+ *
1880
+ * - `disabled`: Keep in mind that using disabled in its current form is an anti-pattern.
1881
+ *
1882
+ * There 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.
1883
+ *
1884
+ * Please consider more informative alternatives before choosing to use disabled on an element.
1885
+ * - `invalid`: Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem.
1886
+ * - `label`: Either a `label` or an `aria-label` must be provided.
1887
+ * - `help-text`/`helpText`: Use in combination with `invalid` to show as a validation error message,
1888
+ * or on its own to show a help text.
1889
+ * - `size`: 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.
1890
+ * - `max`: Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).
1891
+ * - `min`: Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).
1892
+ * - `min-length`/`minLength`: undefined
1893
+ * - `minlength`: 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.
1894
+ * - `max-length`/`maxLength`: undefined
1895
+ * - `maxlength`: 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.
1896
+ * - `pattern`: 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)
1897
+ * - `placeholder`: Set a text that is shown in the textfield when it doesn't have a value.
1898
+ *
1899
+ * Placeholder text should not be used as a substitute for labeling the element with a visible label.
1900
+ * - `read-only`/`readOnly`: undefined
1901
+ * - `readonly`: Whether the input can be selected but not changed by the user.
1902
+ * - `required`: Whether user input is required on the input before form submission.
1903
+ * - `type`: The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
1904
+ * - `value`: Lets you set the current value.
1905
+ * - `name`: The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.
1906
+ * - `step`: When used with `number` this attribute forces inputs to be a whole number of `step`.
1907
+ *
1908
+ * For example with a `step="5"` only values that divide evenly on 5 are allowed.
1909
+ * Using arrow up and down in the input field increments and decrements by 5.
1910
+ * - `autocomplete`: 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.
1911
+ * - `formatter`: Function to format value when the input field.
1912
+ *
1913
+ * Only active when the input field does not have focus,
1914
+ * similar to the accessible input [masking example from Filament Group](https://filamentgroup.github.io/politespace/demo/demo.html). (property only)
1915
+ *
1916
+ * ## Slots
1917
+ *
1918
+ * Areas where markup can be added to the component.
1919
+ *
1920
+ * - `suffix`: Use with `<w-affix>` to include a suffix, for example the unit for a number (e. g. km or sek).
1921
+ * - `prefix`: Use with `<w-affix>` to include a prefix, for example a search icon.
1922
+ *
1923
+ * ## Methods
1924
+ *
1925
+ * Methods that can be called to access component functionality.
1926
+ *
1927
+ * - `resetFormControl() => void`: undefined
1928
+ * - `handler(e: Event) => void`: undefined
1929
+ * - `prefixSlotChange() => void`: undefined
1930
+ * - `suffixSlotChange() => void`: undefined
1931
+ */
1932
+ "w-textfield": Partial<
1933
+ WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents
1934
+ >;
1935
+
1881
1936
  /**
1882
1937
  * This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
1883
1938
  *
@@ -1892,9 +1947,9 @@ export type CustomElements = {
1892
1947
  *
1893
1948
  * Set an `aria-label` that explains the action when using this.
1894
1949
  * - `search`: Add this property to render a clickable Warp search icon.
1895
- *
1896
- * Set an `aria-label` that explains the action when using this.
1897
1950
  * - `label`: undefined
1951
+ * - `icon`: undefined
1952
+ * - `_icon`: undefined (property only) (readonly)
1898
1953
  */
1899
1954
  "w-affix": Partial<WarpAffixProps & BaseProps<WarpAffix> & BaseEvents>;
1900
1955
 
@@ -2010,14 +2065,22 @@ export type CustomElements = {
2010
2065
  /**
2011
2066
  * `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
2012
2067
  *
2013
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
2014
- *
2015
2068
  * ## Attributes & Properties
2016
2069
  *
2017
2070
  * Component attributes and properties that can be applied to the element or by using JavaScript.
2018
2071
  *
2019
- * - `variant`: undefined
2020
- * - `position`: undefined
2072
+ * - `variant`: Controls the badge color treatment.
2073
+ * If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
2074
+ * Accepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
2075
+ * - `position`: Positions the badge in a corner of a parent element.
2076
+ * Use 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.
2077
+ * Use this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.
2078
+ *
2079
+ * ## Slots
2080
+ *
2081
+ * Areas where markup can be added to the component.
2082
+ *
2083
+ * - `(default)`: The content of the badge, which is typically a short string like "New" or "4".
2021
2084
  */
2022
2085
  "w-badge": Partial<WarpBadgeProps & BaseProps<WarpBadge> & BaseEvents>;
2023
2086
 
@@ -2198,7 +2261,9 @@ export type CustomElements = {
2198
2261
  * - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
2199
2262
  *
2200
2263
  * The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
2201
- * - `isDayDisabled`: undefined (property only)
2264
+ * - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
2265
+ *
2266
+ * This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
2202
2267
  * - `isCalendarOpen`: undefined (property only)
2203
2268
  * - `navigationDate`: undefined (property only)
2204
2269
  * - `selectedDate`: undefined (property only) (readonly)
@@ -2506,7 +2571,6 @@ export type CustomElements = {
2506
2571
  * - `readonly`: Renders the field in a readonly state.
2507
2572
  * - `name`: undefined
2508
2573
  * - `value`: undefined
2509
- * - `_options`: undefined (property only)
2510
2574
  *
2511
2575
  * ## Events
2512
2576
  *
@@ -2525,52 +2589,6 @@ export type CustomElements = {
2525
2589
  */
2526
2590
  "w-select": Partial<WarpSelectProps & BaseProps<WarpSelect> & BaseEvents>;
2527
2591
 
2528
- /**
2529
- * A single line text input element.
2530
- *
2531
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
2532
- *
2533
- * ## Attributes & Properties
2534
- *
2535
- * Component attributes and properties that can be applied to the element or by using JavaScript.
2536
- *
2537
- * - `disabled`: undefined
2538
- * - `invalid`: undefined
2539
- * - `id`: undefined
2540
- * - `label`: undefined
2541
- * - `help-text`/`helpText`: undefined
2542
- * - `size`: undefined
2543
- * - `max`: undefined
2544
- * - `min`: undefined
2545
- * - `min-length`/`minLength`: undefined
2546
- * - `max-length`/`maxLength`: undefined
2547
- * - `pattern`: undefined
2548
- * - `placeholder`: undefined
2549
- * - `read-only`/`readOnly`: undefined
2550
- * - `readonly`: undefined
2551
- * - `required`: undefined
2552
- * - `type`: undefined
2553
- * - `value`: undefined
2554
- * - `name`: undefined
2555
- * - `step`: undefined
2556
- * - `autocomplete`: undefined
2557
- * - `formatter`: undefined (property only)
2558
- * - `_hasPrefix`: undefined (property only)
2559
- * - `_hasSuffix`: undefined (property only)
2560
- *
2561
- * ## Methods
2562
- *
2563
- * Methods that can be called to access component functionality.
2564
- *
2565
- * - `resetFormControl() => void`: undefined
2566
- * - `handler(e: Event) => void`: undefined
2567
- * - `prefixSlotChange() => void`: undefined
2568
- * - `suffixSlotChange() => void`: undefined
2569
- */
2570
- "w-textfield": Partial<
2571
- WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents
2572
- >;
2573
-
2574
2592
  /**
2575
2593
  * Component to place inside a `<w-slider>`.
2576
2594
  *
@@ -2592,12 +2610,6 @@ export type CustomElements = {
2592
2610
  * - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
2593
2611
  * - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
2594
2612
  * - `ariaDescriptionText`: undefined (property only) (readonly)
2595
- * - `disabled`: undefined (property only)
2596
- * - `invalid`: undefined (property only)
2597
- * - `openEnded`: undefined (property only)
2598
- * - `valueFormatter`: undefined (property only)
2599
- * - `tooltipFormatter`: undefined (property only)
2600
- * - `labelFormatter`: undefined (property only)
2601
2613
  *
2602
2614
  * ## Events
2603
2615
  *
@@ -2641,9 +2653,9 @@ export type CustomElements = {
2641
2653
  * - `step`: undefined
2642
2654
  * - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
2643
2655
  * - `hidden-textfield`/`hiddenTextfield`: undefined
2644
- * - `valueFormatter`: undefined (property only)
2645
- * - `tooltipFormatter`: undefined (property only)
2646
- * - `labelFormatter`: undefined (property only)
2656
+ * - `valueFormatter`: Formatter for the tooltip and input mask values. (property only)
2657
+ * - `tooltipFormatter`: Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example "300+ hk" instead of "Max" in the tooltip. (property only)
2658
+ * - `labelFormatter`: Formatter for the min and max labels below the range. (property only)
2647
2659
  * - `fieldset`: undefined (property only)
2648
2660
  * - `_invalidMessage`: undefined (property only)
2649
2661
  * - `_hasInternalError`: undefined (property only)
@@ -2750,8 +2762,6 @@ export type CustomElements = {
2750
2762
  * - `over`: undefined
2751
2763
  * - `tabIndex`: Override tabIndex setter to set _parentTabIndex (for backwards compatibility). (property only)
2752
2764
  * - `_computedAriaSelected`: Computed aria-selected: prefers parent-managed, falls back to own property (property only) (readonly)
2753
- * - `_parentTabIndex`: undefined (property only)
2754
- * - `_parentAriaSelected`: undefined (property only)
2755
2765
  */
2756
2766
  "w-tab": Partial<WarpTabProps & BaseProps<WarpTab> & BaseEvents>;
2757
2767
 
@@ -2767,8 +2777,6 @@ export type CustomElements = {
2767
2777
  *
2768
2778
  * - `active`: Whether this panel is active (visible).
2769
2779
  * Set by parent w-tabs via the _parentActive property.
2770
- * - `_parentActive`: undefined (property only)
2771
- * - `_parentAriaLabelledBy`: undefined (property only)
2772
2780
  */
2773
2781
  "w-tab-panel": Partial<
2774
2782
  WarpTabPanelProps & BaseProps<WarpTabPanel> & BaseEvents
@@ -2853,6 +2861,72 @@ export type CustomElementsSolidJs = {
2853
2861
  WIconProps & WIconSolidJsProps & BaseProps<WIcon> & BaseEvents
2854
2862
  >;
2855
2863
 
2864
+ /**
2865
+ * A single-line input component used for entering and editing textual or numeric data.
2866
+ *
2867
+ * ## Attributes & Properties
2868
+ *
2869
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
2870
+ *
2871
+ * - `disabled`: Keep in mind that using disabled in its current form is an anti-pattern.
2872
+ *
2873
+ * There 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.
2874
+ *
2875
+ * Please consider more informative alternatives before choosing to use disabled on an element.
2876
+ * - `invalid`: Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem.
2877
+ * - `label`: Either a `label` or an `aria-label` must be provided.
2878
+ * - `help-text`/`helpText`: Use in combination with `invalid` to show as a validation error message,
2879
+ * or on its own to show a help text.
2880
+ * - `size`: 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.
2881
+ * - `max`: Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).
2882
+ * - `min`: Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).
2883
+ * - `min-length`/`minLength`: undefined
2884
+ * - `minlength`: 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.
2885
+ * - `max-length`/`maxLength`: undefined
2886
+ * - `maxlength`: 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.
2887
+ * - `pattern`: 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)
2888
+ * - `placeholder`: Set a text that is shown in the textfield when it doesn't have a value.
2889
+ *
2890
+ * Placeholder text should not be used as a substitute for labeling the element with a visible label.
2891
+ * - `read-only`/`readOnly`: undefined
2892
+ * - `readonly`: Whether the input can be selected but not changed by the user.
2893
+ * - `required`: Whether user input is required on the input before form submission.
2894
+ * - `type`: The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).
2895
+ * - `value`: Lets you set the current value.
2896
+ * - `name`: The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.
2897
+ * - `step`: When used with `number` this attribute forces inputs to be a whole number of `step`.
2898
+ *
2899
+ * For example with a `step="5"` only values that divide evenly on 5 are allowed.
2900
+ * Using arrow up and down in the input field increments and decrements by 5.
2901
+ * - `autocomplete`: 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.
2902
+ * - `formatter`: Function to format value when the input field.
2903
+ *
2904
+ * Only active when the input field does not have focus,
2905
+ * similar to the accessible input [masking example from Filament Group](https://filamentgroup.github.io/politespace/demo/demo.html). (property only)
2906
+ *
2907
+ * ## Slots
2908
+ *
2909
+ * Areas where markup can be added to the component.
2910
+ *
2911
+ * - `suffix`: Use with `<w-affix>` to include a suffix, for example the unit for a number (e. g. km or sek).
2912
+ * - `prefix`: Use with `<w-affix>` to include a prefix, for example a search icon.
2913
+ *
2914
+ * ## Methods
2915
+ *
2916
+ * Methods that can be called to access component functionality.
2917
+ *
2918
+ * - `resetFormControl() => void`: undefined
2919
+ * - `handler(e: Event) => void`: undefined
2920
+ * - `prefixSlotChange() => void`: undefined
2921
+ * - `suffixSlotChange() => void`: undefined
2922
+ */
2923
+ "w-textfield": Partial<
2924
+ WarpTextFieldProps &
2925
+ WarpTextFieldSolidJsProps &
2926
+ BaseProps<WarpTextField> &
2927
+ BaseEvents
2928
+ >;
2929
+
2856
2930
  /**
2857
2931
  * This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
2858
2932
  *
@@ -2867,9 +2941,9 @@ export type CustomElementsSolidJs = {
2867
2941
  *
2868
2942
  * Set an `aria-label` that explains the action when using this.
2869
2943
  * - `search`: Add this property to render a clickable Warp search icon.
2870
- *
2871
- * Set an `aria-label` that explains the action when using this.
2872
2944
  * - `label`: undefined
2945
+ * - `icon`: undefined
2946
+ * - `_icon`: undefined (property only) (readonly)
2873
2947
  */
2874
2948
  "w-affix": Partial<
2875
2949
  WarpAffixProps & WarpAffixSolidJsProps & BaseProps<WarpAffix> & BaseEvents
@@ -2999,14 +3073,22 @@ export type CustomElementsSolidJs = {
2999
3073
  /**
3000
3074
  * `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
3001
3075
  *
3002
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
3003
- *
3004
3076
  * ## Attributes & Properties
3005
3077
  *
3006
3078
  * Component attributes and properties that can be applied to the element or by using JavaScript.
3007
3079
  *
3008
- * - `variant`: undefined
3009
- * - `position`: undefined
3080
+ * - `variant`: Controls the badge color treatment.
3081
+ * If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
3082
+ * Accepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
3083
+ * - `position`: Positions the badge in a corner of a parent element.
3084
+ * Use 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.
3085
+ * Use this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.
3086
+ *
3087
+ * ## Slots
3088
+ *
3089
+ * Areas where markup can be added to the component.
3090
+ *
3091
+ * - `(default)`: The content of the badge, which is typically a short string like "New" or "4".
3010
3092
  */
3011
3093
  "w-badge": Partial<
3012
3094
  WarpBadgeProps & WarpBadgeSolidJsProps & BaseProps<WarpBadge> & BaseEvents
@@ -3204,7 +3286,9 @@ export type CustomElementsSolidJs = {
3204
3286
  * - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
3205
3287
  *
3206
3288
  * The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
3207
- * - `isDayDisabled`: undefined (property only)
3289
+ * - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
3290
+ *
3291
+ * This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
3208
3292
  * - `isCalendarOpen`: undefined (property only)
3209
3293
  * - `navigationDate`: undefined (property only)
3210
3294
  * - `selectedDate`: undefined (property only) (readonly)
@@ -3539,7 +3623,6 @@ export type CustomElementsSolidJs = {
3539
3623
  * - `readonly`: Renders the field in a readonly state.
3540
3624
  * - `name`: undefined
3541
3625
  * - `value`: undefined
3542
- * - `_options`: undefined (property only)
3543
3626
  *
3544
3627
  * ## Events
3545
3628
  *
@@ -3563,55 +3646,6 @@ export type CustomElementsSolidJs = {
3563
3646
  BaseEvents
3564
3647
  >;
3565
3648
 
3566
- /**
3567
- * A single line text input element.
3568
- *
3569
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
3570
- *
3571
- * ## Attributes & Properties
3572
- *
3573
- * Component attributes and properties that can be applied to the element or by using JavaScript.
3574
- *
3575
- * - `disabled`: undefined
3576
- * - `invalid`: undefined
3577
- * - `id`: undefined
3578
- * - `label`: undefined
3579
- * - `help-text`/`helpText`: undefined
3580
- * - `size`: undefined
3581
- * - `max`: undefined
3582
- * - `min`: undefined
3583
- * - `min-length`/`minLength`: undefined
3584
- * - `max-length`/`maxLength`: undefined
3585
- * - `pattern`: undefined
3586
- * - `placeholder`: undefined
3587
- * - `read-only`/`readOnly`: undefined
3588
- * - `readonly`: undefined
3589
- * - `required`: undefined
3590
- * - `type`: undefined
3591
- * - `value`: undefined
3592
- * - `name`: undefined
3593
- * - `step`: undefined
3594
- * - `autocomplete`: undefined
3595
- * - `formatter`: undefined (property only)
3596
- * - `_hasPrefix`: undefined (property only)
3597
- * - `_hasSuffix`: undefined (property only)
3598
- *
3599
- * ## Methods
3600
- *
3601
- * Methods that can be called to access component functionality.
3602
- *
3603
- * - `resetFormControl() => void`: undefined
3604
- * - `handler(e: Event) => void`: undefined
3605
- * - `prefixSlotChange() => void`: undefined
3606
- * - `suffixSlotChange() => void`: undefined
3607
- */
3608
- "w-textfield": Partial<
3609
- WarpTextFieldProps &
3610
- WarpTextFieldSolidJsProps &
3611
- BaseProps<WarpTextField> &
3612
- BaseEvents
3613
- >;
3614
-
3615
3649
  /**
3616
3650
  * Component to place inside a `<w-slider>`.
3617
3651
  *
@@ -3633,12 +3667,6 @@ export type CustomElementsSolidJs = {
3633
3667
  * - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
3634
3668
  * - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
3635
3669
  * - `ariaDescriptionText`: undefined (property only) (readonly)
3636
- * - `disabled`: undefined (property only)
3637
- * - `invalid`: undefined (property only)
3638
- * - `openEnded`: undefined (property only)
3639
- * - `valueFormatter`: undefined (property only)
3640
- * - `tooltipFormatter`: undefined (property only)
3641
- * - `labelFormatter`: undefined (property only)
3642
3670
  *
3643
3671
  * ## Events
3644
3672
  *
@@ -3685,9 +3713,9 @@ export type CustomElementsSolidJs = {
3685
3713
  * - `step`: undefined
3686
3714
  * - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
3687
3715
  * - `hidden-textfield`/`hiddenTextfield`: undefined
3688
- * - `valueFormatter`: undefined (property only)
3689
- * - `tooltipFormatter`: undefined (property only)
3690
- * - `labelFormatter`: undefined (property only)
3716
+ * - `valueFormatter`: Formatter for the tooltip and input mask values. (property only)
3717
+ * - `tooltipFormatter`: Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example "300+ hk" instead of "Max" in the tooltip. (property only)
3718
+ * - `labelFormatter`: Formatter for the min and max labels below the range. (property only)
3691
3719
  * - `fieldset`: undefined (property only)
3692
3720
  * - `_invalidMessage`: undefined (property only)
3693
3721
  * - `_hasInternalError`: undefined (property only)
@@ -3809,8 +3837,6 @@ export type CustomElementsSolidJs = {
3809
3837
  * - `over`: undefined
3810
3838
  * - `tabIndex`: Override tabIndex setter to set _parentTabIndex (for backwards compatibility). (property only)
3811
3839
  * - `_computedAriaSelected`: Computed aria-selected: prefers parent-managed, falls back to own property (property only) (readonly)
3812
- * - `_parentTabIndex`: undefined (property only)
3813
- * - `_parentAriaSelected`: undefined (property only)
3814
3840
  */
3815
3841
  "w-tab": Partial<
3816
3842
  WarpTabProps & WarpTabSolidJsProps & BaseProps<WarpTab> & BaseEvents
@@ -3828,8 +3854,6 @@ export type CustomElementsSolidJs = {
3828
3854
  *
3829
3855
  * - `active`: Whether this panel is active (visible).
3830
3856
  * Set by parent w-tabs via the _parentActive property.
3831
- * - `_parentActive`: undefined (property only)
3832
- * - `_parentAriaLabelledBy`: undefined (property only)
3833
3857
  */
3834
3858
  "w-tab-panel": Partial<
3835
3859
  WarpTabPanelProps &