@warp-ds/elements 2.9.0-next.5 → 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 (65) hide show
  1. package/dist/custom-elements.json +159 -97
  2. package/dist/docs/affix/affix.md +25 -23
  3. package/dist/docs/affix/api.md +25 -23
  4. package/dist/docs/alert/alert.md +12 -12
  5. package/dist/docs/alert/api.md +12 -12
  6. package/dist/docs/attention/api.md +46 -46
  7. package/dist/docs/attention/attention.md +46 -46
  8. package/dist/docs/badge/accessibility.md +44 -0
  9. package/dist/docs/badge/api.md +12 -8
  10. package/dist/docs/badge/badge.md +191 -10
  11. package/dist/docs/badge/examples.md +82 -0
  12. package/dist/docs/badge/usage.md +53 -0
  13. package/dist/docs/button/api.md +46 -42
  14. package/dist/docs/button/button.md +46 -42
  15. package/dist/docs/card/api.md +11 -11
  16. package/dist/docs/card/card.md +11 -11
  17. package/dist/docs/combobox/api.md +62 -62
  18. package/dist/docs/combobox/combobox.md +62 -62
  19. package/dist/docs/datepicker/api.md +74 -66
  20. package/dist/docs/datepicker/datepicker.md +74 -66
  21. package/dist/docs/expandable/api.md +26 -26
  22. package/dist/docs/expandable/expandable.md +26 -26
  23. package/dist/docs/link/api.md +28 -28
  24. package/dist/docs/link/link.md +28 -28
  25. package/dist/docs/page-indicator/api.md +6 -6
  26. package/dist/docs/page-indicator/page-indicator.md +6 -6
  27. package/dist/docs/pagination/api.md +3 -3
  28. package/dist/docs/pagination/pagination.md +3 -3
  29. package/dist/docs/pill/api.md +19 -15
  30. package/dist/docs/pill/pill.md +19 -15
  31. package/dist/docs/select/api.md +44 -44
  32. package/dist/docs/select/select.md +44 -44
  33. package/dist/docs/slider/api.md +80 -78
  34. package/dist/docs/slider/slider.md +80 -78
  35. package/dist/docs/slider-thumb/api.md +28 -76
  36. package/dist/docs/slider-thumb/slider-thumb.md +28 -76
  37. package/dist/docs/switch/api.md +16 -16
  38. package/dist/docs/switch/switch.md +16 -16
  39. package/dist/docs/tab/api.md +26 -40
  40. package/dist/docs/tab/tab.md +26 -40
  41. package/dist/docs/tab-panel/api.md +1 -17
  42. package/dist/docs/tab-panel/tab-panel.md +1 -17
  43. package/dist/docs/tabs/api.md +3 -3
  44. package/dist/docs/tabs/tabs.md +3 -3
  45. package/dist/docs/textarea/api.md +42 -40
  46. package/dist/docs/textarea/textarea.md +42 -40
  47. package/dist/docs/textfield/accessibility.md +15 -0
  48. package/dist/docs/textfield/api.md +86 -83
  49. package/dist/docs/textfield/examples.md +147 -0
  50. package/dist/docs/textfield/textfield.md +279 -86
  51. package/dist/docs/textfield/usage.md +30 -0
  52. package/dist/index.d.ts +220 -196
  53. package/dist/packages/badge/badge.d.ts +7 -5
  54. package/dist/packages/badge/badge.js.map +2 -2
  55. package/dist/packages/datepicker/datepicker.js +1 -1
  56. package/dist/packages/datepicker/datepicker.js.map +2 -2
  57. package/dist/packages/datepicker/datepicker.react.stories.d.ts +9 -1
  58. package/dist/packages/datepicker/react.d.ts +4 -0
  59. package/dist/packages/datepicker/react.js +4 -0
  60. package/dist/packages/textfield/textfield.d.ts +57 -60
  61. package/dist/packages/textfield/textfield.js +5 -5
  62. package/dist/packages/textfield/textfield.js.map +2 -2
  63. package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
  64. package/dist/web-types.json +392 -116
  65. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -129,117 +129,141 @@ export type WIconSolidJsProps = {
129
129
  };
130
130
 
131
131
  export type WarpTextFieldProps = {
132
- /** */
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. */
133
137
  disabled?: WarpTextField["disabled"];
134
- /** */
138
+ /** Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem. */
135
139
  invalid?: WarpTextField["invalid"];
136
- /** */
137
- id?: WarpTextField["id"];
138
- /** */
140
+ /** Either a `label` or an `aria-label` must be provided. */
139
141
  label?: WarpTextField["label"];
140
- /** */
142
+ /** Use in combination with `invalid` to show as a validation error message,
143
+ or on its own to show a help text. */
141
144
  "help-text"?: WarpTextField["helpText"];
142
- /** */
145
+ /** Use in combination with `invalid` to show as a validation error message,
146
+ or on its own to show a help text. */
143
147
  helpText?: WarpTextField["helpText"];
144
- /** */
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. */
145
149
  size?: WarpTextField["size"];
146
- /** */
150
+ /** Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength). */
147
151
  max?: WarpTextField["max"];
148
- /** */
152
+ /** Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength). */
149
153
  min?: WarpTextField["min"];
150
- /** */
154
+ /** @deprecated Use the native `minlength` attribute */
151
155
  "min-length"?: WarpTextField["minLength"];
152
- /** */
156
+ /** @deprecated Use the native `minlength` attribute */
153
157
  minLength?: WarpTextField["minLength"];
154
- /** */
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 */
155
161
  "max-length"?: WarpTextField["maxLength"];
156
- /** */
162
+ /** @deprecated Use the native `maxlength` attribute */
157
163
  maxLength?: WarpTextField["maxLength"];
158
- /** */
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) */
159
167
  pattern?: WarpTextField["pattern"];
160
- /** */
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. */
161
171
  placeholder?: WarpTextField["placeholder"];
162
172
  /** @deprecated Use the native readonly attribute instead. */
163
173
  "read-only"?: WarpTextField["readOnly"];
164
174
  /** @deprecated Use the native readonly attribute instead. */
165
175
  readOnly?: WarpTextField["readOnly"];
166
- /** */
176
+ /** Whether the input can be selected but not changed by the user. */
167
177
  readonly?: WarpTextField["readonly"];
168
- /** */
178
+ /** Whether user input is required on the input before form submission. */
169
179
  required?: WarpTextField["required"];
170
- /** */
180
+ /** The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types). */
171
181
  type?: WarpTextField["type"];
172
- /** */
182
+ /** Lets you set the current value. */
173
183
  value?: WarpTextField["value"];
174
- /** */
184
+ /** The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form. */
175
185
  name?: WarpTextField["name"];
176
- /** */
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. */
177
190
  step?: WarpTextField["step"];
178
- /** */
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. */
179
192
  autocomplete?: WarpTextField["autocomplete"];
180
- /** */
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). */
181
197
  formatter?: WarpTextField["formatter"];
182
- /** */
183
- _hasPrefix?: WarpTextField["_hasPrefix"];
184
- /** */
185
- _hasSuffix?: WarpTextField["_hasSuffix"];
186
198
  };
187
199
 
188
200
  export type WarpTextFieldSolidJsProps = {
189
- /** */
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. */
190
206
  "prop:disabled"?: WarpTextField["disabled"];
191
- /** */
207
+ /** Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem. */
192
208
  "prop:invalid"?: WarpTextField["invalid"];
193
- /** */
194
- "prop:id"?: WarpTextField["id"];
195
- /** */
209
+ /** Either a `label` or an `aria-label` must be provided. */
196
210
  "prop:label"?: WarpTextField["label"];
197
- /** */
211
+ /** Use in combination with `invalid` to show as a validation error message,
212
+ or on its own to show a help text. */
198
213
  "attr:help-text"?: WarpTextField["helpText"];
199
- /** */
214
+ /** Use in combination with `invalid` to show as a validation error message,
215
+ or on its own to show a help text. */
200
216
  "prop:helpText"?: WarpTextField["helpText"];
201
- /** */
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. */
202
218
  "prop:size"?: WarpTextField["size"];
203
- /** */
219
+ /** Use with `type="number"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength). */
204
220
  "prop:max"?: WarpTextField["max"];
205
- /** */
221
+ /** Use with `type="number"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength). */
206
222
  "prop:min"?: WarpTextField["min"];
207
- /** */
223
+ /** @deprecated Use the native `minlength` attribute */
208
224
  "attr:min-length"?: WarpTextField["minLength"];
209
- /** */
225
+ /** @deprecated Use the native `minlength` attribute */
210
226
  "prop:minLength"?: WarpTextField["minLength"];
211
- /** */
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 */
212
230
  "attr:max-length"?: WarpTextField["maxLength"];
213
- /** */
231
+ /** @deprecated Use the native `maxlength` attribute */
214
232
  "prop:maxLength"?: WarpTextField["maxLength"];
215
- /** */
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) */
216
236
  "prop:pattern"?: WarpTextField["pattern"];
217
- /** */
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. */
218
240
  "prop:placeholder"?: WarpTextField["placeholder"];
219
241
  /** @deprecated Use the native readonly attribute instead. */
220
242
  "bool:read-only"?: WarpTextField["readOnly"];
221
243
  /** @deprecated Use the native readonly attribute instead. */
222
244
  "prop:readOnly"?: WarpTextField["readOnly"];
223
- /** */
245
+ /** Whether the input can be selected but not changed by the user. */
224
246
  "prop:readonly"?: WarpTextField["readonly"];
225
- /** */
247
+ /** Whether user input is required on the input before form submission. */
226
248
  "prop:required"?: WarpTextField["required"];
227
- /** */
249
+ /** The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types). */
228
250
  "prop:type"?: WarpTextField["type"];
229
- /** */
251
+ /** Lets you set the current value. */
230
252
  "prop:value"?: WarpTextField["value"];
231
- /** */
253
+ /** The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form. */
232
254
  "prop:name"?: WarpTextField["name"];
233
- /** */
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. */
234
259
  "prop:step"?: WarpTextField["step"];
235
- /** */
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. */
236
261
  "prop:autocomplete"?: WarpTextField["autocomplete"];
237
- /** */
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). */
238
266
  "prop:formatter"?: WarpTextField["formatter"];
239
- /** */
240
- "prop:_hasPrefix"?: WarpTextField["_hasPrefix"];
241
- /** */
242
- "prop:_hasSuffix"?: WarpTextField["_hasSuffix"];
243
267
 
244
268
  /** Set the innerHTML of the element */
245
269
  innerHTML?: string;
@@ -531,16 +555,24 @@ export type WarpAttentionSolidJsProps = {
531
555
  };
532
556
 
533
557
  export type WarpBadgeProps = {
534
- /** */
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. */
535
561
  variant?: WarpBadge["variant"];
536
- /** */
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`. */
537
565
  position?: WarpBadge["position"];
538
566
  };
539
567
 
540
568
  export type WarpBadgeSolidJsProps = {
541
- /** */
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. */
542
572
  "prop:variant"?: WarpBadge["variant"];
543
- /** */
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`. */
544
576
  "prop:position"?: WarpBadge["position"];
545
577
 
546
578
  /** Set the innerHTML of the element */
@@ -833,7 +865,9 @@ The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/form
833
865
 
834
866
  The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
835
867
  dayFormat?: WarpDatepicker["dayFormat"];
836
- /** */
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. */
837
871
  isDayDisabled?: WarpDatepicker["isDayDisabled"];
838
872
  /** */
839
873
  isCalendarOpen?: WarpDatepicker["isCalendarOpen"];
@@ -892,7 +926,9 @@ The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/form
892
926
 
893
927
  The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
894
928
  "prop:dayFormat"?: WarpDatepicker["dayFormat"];
895
- /** */
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. */
896
932
  "prop:isDayDisabled"?: WarpDatepicker["isDayDisabled"];
897
933
  /** */
898
934
  "prop:isCalendarOpen"?: WarpDatepicker["isCalendarOpen"];
@@ -1361,8 +1397,6 @@ export type WarpSelectProps = {
1361
1397
  name?: WarpSelect["name"];
1362
1398
  /** */
1363
1399
  value?: WarpSelect["value"];
1364
- /** */
1365
- _options?: WarpSelect["_options"];
1366
1400
 
1367
1401
  /** */
1368
1402
  onchange?: (e: CustomEvent) => void;
@@ -1402,8 +1436,6 @@ export type WarpSelectSolidJsProps = {
1402
1436
  /** */
1403
1437
  "prop:value"?: WarpSelect["value"];
1404
1438
  /** */
1405
- "prop:_options"?: WarpSelect["_options"];
1406
- /** */
1407
1439
  "on:change"?: (e: CustomEvent) => void;
1408
1440
 
1409
1441
  /** Set the innerHTML of the element */
@@ -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;
@@ -1879,37 +1871,54 @@ export type CustomElements = {
1879
1871
  "w-icon": Partial<WIconProps & BaseProps<WIcon> & BaseEvents>;
1880
1872
 
1881
1873
  /**
1882
- * A single line text input element.
1883
- *
1884
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
1874
+ * A single-line input component used for entering and editing textual or numeric data.
1885
1875
  *
1886
1876
  * ## Attributes & Properties
1887
1877
  *
1888
1878
  * Component attributes and properties that can be applied to the element or by using JavaScript.
1889
1879
  *
1890
- * - `disabled`: undefined
1891
- * - `invalid`: undefined
1892
- * - `id`: undefined
1893
- * - `label`: undefined
1894
- * - `help-text`/`helpText`: undefined
1895
- * - `size`: undefined
1896
- * - `max`: undefined
1897
- * - `min`: undefined
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).
1898
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.
1899
1894
  * - `max-length`/`maxLength`: undefined
1900
- * - `pattern`: undefined
1901
- * - `placeholder`: 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.
1902
1900
  * - `read-only`/`readOnly`: undefined
1903
- * - `readonly`: undefined
1904
- * - `required`: undefined
1905
- * - `type`: undefined
1906
- * - `value`: undefined
1907
- * - `name`: undefined
1908
- * - `step`: undefined
1909
- * - `autocomplete`: undefined
1910
- * - `formatter`: undefined (property only)
1911
- * - `_hasPrefix`: undefined (property only)
1912
- * - `_hasSuffix`: undefined (property only)
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.
1913
1922
  *
1914
1923
  * ## Methods
1915
1924
  *
@@ -2056,14 +2065,22 @@ export type CustomElements = {
2056
2065
  /**
2057
2066
  * `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
2058
2067
  *
2059
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
2060
- *
2061
2068
  * ## Attributes & Properties
2062
2069
  *
2063
2070
  * Component attributes and properties that can be applied to the element or by using JavaScript.
2064
2071
  *
2065
- * - `variant`: undefined
2066
- * - `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".
2067
2084
  */
2068
2085
  "w-badge": Partial<WarpBadgeProps & BaseProps<WarpBadge> & BaseEvents>;
2069
2086
 
@@ -2244,7 +2261,9 @@ export type CustomElements = {
2244
2261
  * - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
2245
2262
  *
2246
2263
  * The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
2247
- * - `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)
2248
2267
  * - `isCalendarOpen`: undefined (property only)
2249
2268
  * - `navigationDate`: undefined (property only)
2250
2269
  * - `selectedDate`: undefined (property only) (readonly)
@@ -2552,7 +2571,6 @@ export type CustomElements = {
2552
2571
  * - `readonly`: Renders the field in a readonly state.
2553
2572
  * - `name`: undefined
2554
2573
  * - `value`: undefined
2555
- * - `_options`: undefined (property only)
2556
2574
  *
2557
2575
  * ## Events
2558
2576
  *
@@ -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
@@ -2854,37 +2862,54 @@ export type CustomElementsSolidJs = {
2854
2862
  >;
2855
2863
 
2856
2864
  /**
2857
- * A single line text input element.
2858
- *
2859
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
2865
+ * A single-line input component used for entering and editing textual or numeric data.
2860
2866
  *
2861
2867
  * ## Attributes & Properties
2862
2868
  *
2863
2869
  * Component attributes and properties that can be applied to the element or by using JavaScript.
2864
2870
  *
2865
- * - `disabled`: undefined
2866
- * - `invalid`: undefined
2867
- * - `id`: undefined
2868
- * - `label`: undefined
2869
- * - `help-text`/`helpText`: undefined
2870
- * - `size`: undefined
2871
- * - `max`: undefined
2872
- * - `min`: undefined
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).
2873
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.
2874
2885
  * - `max-length`/`maxLength`: undefined
2875
- * - `pattern`: undefined
2876
- * - `placeholder`: 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.
2877
2891
  * - `read-only`/`readOnly`: undefined
2878
- * - `readonly`: undefined
2879
- * - `required`: undefined
2880
- * - `type`: undefined
2881
- * - `value`: undefined
2882
- * - `name`: undefined
2883
- * - `step`: undefined
2884
- * - `autocomplete`: undefined
2885
- * - `formatter`: undefined (property only)
2886
- * - `_hasPrefix`: undefined (property only)
2887
- * - `_hasSuffix`: undefined (property only)
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.
2888
2913
  *
2889
2914
  * ## Methods
2890
2915
  *
@@ -3048,14 +3073,22 @@ export type CustomElementsSolidJs = {
3048
3073
  /**
3049
3074
  * `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
3050
3075
  *
3051
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
3052
- *
3053
3076
  * ## Attributes & Properties
3054
3077
  *
3055
3078
  * Component attributes and properties that can be applied to the element or by using JavaScript.
3056
3079
  *
3057
- * - `variant`: undefined
3058
- * - `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".
3059
3092
  */
3060
3093
  "w-badge": Partial<
3061
3094
  WarpBadgeProps & WarpBadgeSolidJsProps & BaseProps<WarpBadge> & BaseEvents
@@ -3253,7 +3286,9 @@ export type CustomElementsSolidJs = {
3253
3286
  * - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
3254
3287
  *
3255
3288
  * The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
3256
- * - `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)
3257
3292
  * - `isCalendarOpen`: undefined (property only)
3258
3293
  * - `navigationDate`: undefined (property only)
3259
3294
  * - `selectedDate`: undefined (property only) (readonly)
@@ -3588,7 +3623,6 @@ export type CustomElementsSolidJs = {
3588
3623
  * - `readonly`: Renders the field in a readonly state.
3589
3624
  * - `name`: undefined
3590
3625
  * - `value`: undefined
3591
- * - `_options`: undefined (property only)
3592
3626
  *
3593
3627
  * ## Events
3594
3628
  *
@@ -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 &