@warp-ds/elements 2.9.0-next.5 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/custom-elements.json +221 -118
  2. package/dist/docs/affix/affix.md +49 -61
  3. package/dist/docs/affix/api.md +25 -23
  4. package/dist/docs/affix/examples.md +24 -38
  5. package/dist/docs/alert/accessibility.md +4 -9
  6. package/dist/docs/alert/alert.md +36 -51
  7. package/dist/docs/alert/api.md +12 -12
  8. package/dist/docs/alert/examples.md +20 -30
  9. package/dist/docs/attention/accessibility.md +50 -0
  10. package/dist/docs/attention/api.md +72 -59
  11. package/dist/docs/attention/attention.md +305 -56
  12. package/dist/docs/attention/examples.md +91 -0
  13. package/dist/docs/attention/usage.md +91 -0
  14. package/dist/docs/badge/accessibility.md +44 -0
  15. package/dist/docs/badge/api.md +12 -8
  16. package/dist/docs/badge/badge.md +178 -10
  17. package/dist/docs/badge/examples.md +69 -0
  18. package/dist/docs/badge/usage.md +53 -0
  19. package/dist/docs/button/api.md +46 -42
  20. package/dist/docs/button/button.md +46 -42
  21. package/dist/docs/card/api.md +11 -11
  22. package/dist/docs/card/card.md +11 -11
  23. package/dist/docs/combobox/api.md +62 -62
  24. package/dist/docs/combobox/combobox.md +62 -62
  25. package/dist/docs/datepicker/api.md +74 -66
  26. package/dist/docs/datepicker/datepicker.md +74 -66
  27. package/dist/docs/expandable/api.md +26 -26
  28. package/dist/docs/expandable/expandable.md +26 -26
  29. package/dist/docs/link/api.md +28 -28
  30. package/dist/docs/link/link.md +28 -28
  31. package/dist/docs/page-indicator/api.md +6 -6
  32. package/dist/docs/page-indicator/page-indicator.md +6 -6
  33. package/dist/docs/pagination/api.md +3 -3
  34. package/dist/docs/pagination/pagination.md +3 -3
  35. package/dist/docs/pill/api.md +19 -15
  36. package/dist/docs/pill/pill.md +19 -15
  37. package/dist/docs/select/api.md +44 -44
  38. package/dist/docs/select/select.md +44 -44
  39. package/dist/docs/slider/api.md +80 -78
  40. package/dist/docs/slider/slider.md +80 -78
  41. package/dist/docs/slider-thumb/api.md +28 -76
  42. package/dist/docs/slider-thumb/slider-thumb.md +28 -76
  43. package/dist/docs/switch/api.md +16 -16
  44. package/dist/docs/switch/switch.md +16 -16
  45. package/dist/docs/tab/api.md +26 -40
  46. package/dist/docs/tab/tab.md +26 -40
  47. package/dist/docs/tab-panel/api.md +1 -17
  48. package/dist/docs/tab-panel/tab-panel.md +1 -17
  49. package/dist/docs/tabs/api.md +3 -3
  50. package/dist/docs/tabs/tabs.md +3 -3
  51. package/dist/docs/textarea/accessibility.md +5 -0
  52. package/dist/docs/textarea/api.md +52 -65
  53. package/dist/docs/textarea/examples.md +81 -0
  54. package/dist/docs/textarea/textarea.md +151 -65
  55. package/dist/docs/textarea/usage.md +9 -0
  56. package/dist/docs/textfield/accessibility.md +15 -0
  57. package/dist/docs/textfield/api.md +86 -83
  58. package/dist/docs/textfield/examples.md +130 -0
  59. package/dist/docs/textfield/textfield.md +258 -86
  60. package/dist/docs/textfield/usage.md +26 -0
  61. package/dist/index.d.ts +456 -330
  62. package/dist/packages/attention/attention.d.ts +46 -37
  63. package/dist/packages/attention/attention.js +20 -20
  64. package/dist/packages/attention/attention.js.map +3 -3
  65. package/dist/packages/badge/badge.d.ts +7 -5
  66. package/dist/packages/badge/badge.js.map +2 -2
  67. package/dist/packages/datepicker/datepicker.js +1 -1
  68. package/dist/packages/datepicker/datepicker.js.map +2 -2
  69. package/dist/packages/datepicker/datepicker.react.stories.d.ts +9 -1
  70. package/dist/packages/datepicker/react.d.ts +4 -0
  71. package/dist/packages/datepicker/react.js +4 -0
  72. package/dist/packages/textarea/textarea.d.ts +38 -29
  73. package/dist/packages/textarea/textarea.js.map +2 -2
  74. package/dist/packages/textfield/textfield.d.ts +57 -60
  75. package/dist/packages/textfield/textfield.js +5 -5
  76. package/dist/packages/textfield/textfield.js.map +2 -2
  77. package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
  78. package/dist/web-types.json +573 -153
  79. package/package.json +1 -2
@@ -143,18 +143,19 @@
143
143
  "declarations": [
144
144
  {
145
145
  "kind": "class",
146
- "description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)",
146
+ "description": "A single-line input component used for entering and editing textual or numeric data.",
147
147
  "name": "WarpTextField",
148
- "members": [
148
+ "slots": [
149
149
  {
150
- "kind": "field",
151
- "name": "shadowRootOptions",
152
- "type": {
153
- "text": "object"
154
- },
155
- "static": true,
156
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
150
+ "description": "Use with `<w-affix>` to include a suffix, for example the unit for a number (e. g. km or sek).",
151
+ "name": "suffix"
157
152
  },
153
+ {
154
+ "description": "Use with `<w-affix>` to include a prefix, for example a search icon.",
155
+ "name": "prefix"
156
+ }
157
+ ],
158
+ "members": [
158
159
  {
159
160
  "kind": "field",
160
161
  "name": "disabled",
@@ -162,6 +163,8 @@
162
163
  "text": "boolean"
163
164
  },
164
165
  "default": "false",
166
+ "description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
167
+ "summary": "Makes the element not focusable and hides it from form submits",
165
168
  "attribute": "disabled",
166
169
  "reflects": true
167
170
  },
@@ -172,24 +175,18 @@
172
175
  "text": "boolean"
173
176
  },
174
177
  "default": "false",
178
+ "description": "Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem.",
179
+ "summary": "Mark the form field as invalid.",
175
180
  "attribute": "invalid",
176
181
  "reflects": true
177
182
  },
178
- {
179
- "kind": "field",
180
- "name": "id",
181
- "type": {
182
- "text": "string"
183
- },
184
- "attribute": "id",
185
- "reflects": true
186
- },
187
183
  {
188
184
  "kind": "field",
189
185
  "name": "label",
190
186
  "type": {
191
187
  "text": "string"
192
188
  },
189
+ "description": "Either a `label` or an `aria-label` must be provided.",
193
190
  "attribute": "label",
194
191
  "reflects": true
195
192
  },
@@ -199,6 +196,8 @@
199
196
  "type": {
200
197
  "text": "string"
201
198
  },
199
+ "description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
200
+ "summary": "Description shown below the input field",
202
201
  "attribute": "help-text",
203
202
  "reflects": true
204
203
  },
@@ -208,6 +207,7 @@
208
207
  "type": {
209
208
  "text": "string"
210
209
  },
210
+ "description": "Sets the [size](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#size) (width) of the input field to fit the expected length of inputs.",
211
211
  "attribute": "size",
212
212
  "reflects": true
213
213
  },
@@ -217,6 +217,7 @@
217
217
  "type": {
218
218
  "text": "number"
219
219
  },
220
+ "description": "Use with `type=\"number\"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).",
220
221
  "attribute": "max",
221
222
  "reflects": true
222
223
  },
@@ -226,6 +227,7 @@
226
227
  "type": {
227
228
  "text": "number"
228
229
  },
230
+ "description": "Use with `type=\"number\"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).",
229
231
  "attribute": "min",
230
232
  "reflects": true
231
233
  },
@@ -235,24 +237,47 @@
235
237
  "type": {
236
238
  "text": "number"
237
239
  },
240
+ "deprecated": "Use the native `minlength` attribute",
238
241
  "attribute": "min-length",
239
242
  "reflects": true
240
243
  },
244
+ {
245
+ "kind": "field",
246
+ "name": "minlength",
247
+ "type": {
248
+ "text": "number"
249
+ },
250
+ "description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [minimum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength) required.",
251
+ "attribute": "minlength",
252
+ "reflects": true
253
+ },
241
254
  {
242
255
  "kind": "field",
243
256
  "name": "maxLength",
244
257
  "type": {
245
258
  "text": "number"
246
259
  },
260
+ "deprecated": "Use the native `maxlength` attribute",
247
261
  "attribute": "max-length",
248
262
  "reflects": true
249
263
  },
264
+ {
265
+ "kind": "field",
266
+ "name": "maxlength",
267
+ "type": {
268
+ "text": "number"
269
+ },
270
+ "description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [maximum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength) allowed.",
271
+ "attribute": "maxlength",
272
+ "reflects": true
273
+ },
250
274
  {
251
275
  "kind": "field",
252
276
  "name": "pattern",
253
277
  "type": {
254
278
  "text": "string"
255
279
  },
280
+ "description": "Sets a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that the input's value must [match to pass validation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#pattern)",
256
281
  "attribute": "pattern",
257
282
  "reflects": true
258
283
  },
@@ -262,6 +287,8 @@
262
287
  "type": {
263
288
  "text": "string"
264
289
  },
290
+ "description": "Set a text that is shown in the textfield when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
291
+ "summary": "Shown in the textfield when it doesn't have a value",
265
292
  "attribute": "placeholder",
266
293
  "reflects": true
267
294
  },
@@ -283,6 +310,7 @@
283
310
  "text": "boolean"
284
311
  },
285
312
  "default": "false",
313
+ "description": "Whether the input can be selected but not changed by the user.",
286
314
  "attribute": "readonly",
287
315
  "reflects": true
288
316
  },
@@ -293,6 +321,7 @@
293
321
  "text": "boolean"
294
322
  },
295
323
  "default": "false",
324
+ "description": "Whether user input is required on the input before form submission.",
296
325
  "attribute": "required",
297
326
  "reflects": true
298
327
  },
@@ -302,6 +331,7 @@
302
331
  "type": {
303
332
  "text": "string"
304
333
  },
334
+ "description": "The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).",
305
335
  "attribute": "type",
306
336
  "reflects": true
307
337
  },
@@ -311,6 +341,7 @@
311
341
  "type": {
312
342
  "text": "string"
313
343
  },
344
+ "description": "Lets you set the current value.",
314
345
  "attribute": "value",
315
346
  "reflects": true
316
347
  },
@@ -320,6 +351,7 @@
320
351
  "type": {
321
352
  "text": "string"
322
353
  },
354
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.",
323
355
  "attribute": "name",
324
356
  "reflects": true
325
357
  },
@@ -329,6 +361,8 @@
329
361
  "type": {
330
362
  "text": "number"
331
363
  },
364
+ "description": "When used with `number` this attribute forces inputs to be a whole number of `step`.\n\nFor example with a `step=\"5\"` only values that divide evenly on 5 are allowed.\nUsing arrow up and down in the input field increments and decrements by 5.",
365
+ "summary": "Forces `number` inputs to be a whole number of `step`",
332
366
  "attribute": "step",
333
367
  "reflects": true
334
368
  },
@@ -338,6 +372,7 @@
338
372
  "type": {
339
373
  "text": "string | undefined"
340
374
  },
375
+ "description": "A space-separated string that hints to browsers [what type of content it can suggest](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete#value) to autofill.",
341
376
  "attribute": "autocomplete",
342
377
  "reflects": true
343
378
  },
@@ -346,7 +381,9 @@
346
381
  "name": "formatter",
347
382
  "type": {
348
383
  "text": "(value: string) => string"
349
- }
384
+ },
385
+ "description": "Function to format value when the input field.\n\nOnly active when the input field does not have focus,\nsimilar to the accessible input [masking example from Filament Group](https://filamentgroup.github.io/politespace/demo/demo.html).",
386
+ "summary": "Function to format value when the input field"
350
387
  },
351
388
  {
352
389
  "kind": "field",
@@ -397,14 +434,6 @@
397
434
  "type": {
398
435
  "text": "suffixSlotChange() => void"
399
436
  }
400
- },
401
- {
402
- "name": "_hasPrefix",
403
- "kind": "field"
404
- },
405
- {
406
- "name": "_hasSuffix",
407
- "kind": "field"
408
437
  }
409
438
  ],
410
439
  "attributes": [
@@ -414,6 +443,8 @@
414
443
  "text": "boolean"
415
444
  },
416
445
  "default": "false",
446
+ "description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
447
+ "summary": "Makes the element not focusable and hides it from form submits",
417
448
  "fieldName": "disabled"
418
449
  },
419
450
  {
@@ -422,20 +453,16 @@
422
453
  "text": "boolean"
423
454
  },
424
455
  "default": "false",
456
+ "description": "Mark the form field as invalid. Make sure to also set a `help-text` to help users fix the validation problem.",
457
+ "summary": "Mark the form field as invalid.",
425
458
  "fieldName": "invalid"
426
459
  },
427
- {
428
- "name": "id",
429
- "type": {
430
- "text": "string"
431
- },
432
- "fieldName": "id"
433
- },
434
460
  {
435
461
  "name": "label",
436
462
  "type": {
437
463
  "text": "string"
438
464
  },
465
+ "description": "Either a `label` or an `aria-label` must be provided.",
439
466
  "fieldName": "label"
440
467
  },
441
468
  {
@@ -443,6 +470,8 @@
443
470
  "type": {
444
471
  "text": "string"
445
472
  },
473
+ "description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
474
+ "summary": "Description shown below the input field",
446
475
  "fieldName": "helpText"
447
476
  },
448
477
  {
@@ -450,6 +479,7 @@
450
479
  "type": {
451
480
  "text": "string"
452
481
  },
482
+ "description": "Sets the [size](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#size) (width) of the input field to fit the expected length of inputs.",
453
483
  "fieldName": "size"
454
484
  },
455
485
  {
@@ -457,6 +487,7 @@
457
487
  "type": {
458
488
  "text": "number"
459
489
  },
490
+ "description": "Use with `type=\"number\"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).",
460
491
  "fieldName": "max"
461
492
  },
462
493
  {
@@ -464,6 +495,7 @@
464
495
  "type": {
465
496
  "text": "number"
466
497
  },
498
+ "description": "Use with `type=\"number\"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).",
467
499
  "fieldName": "min"
468
500
  },
469
501
  {
@@ -471,20 +503,39 @@
471
503
  "type": {
472
504
  "text": "number"
473
505
  },
506
+ "deprecated": "Use the native `minlength` attribute",
474
507
  "fieldName": "minLength"
475
508
  },
509
+ {
510
+ "name": "minlength",
511
+ "type": {
512
+ "text": "number"
513
+ },
514
+ "description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [minimum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength) required.",
515
+ "fieldName": "minlength"
516
+ },
476
517
  {
477
518
  "name": "max-length",
478
519
  "type": {
479
520
  "text": "number"
480
521
  },
522
+ "deprecated": "Use the native `maxlength` attribute",
481
523
  "fieldName": "maxLength"
482
524
  },
525
+ {
526
+ "name": "maxlength",
527
+ "type": {
528
+ "text": "number"
529
+ },
530
+ "description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [maximum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength) allowed.",
531
+ "fieldName": "maxlength"
532
+ },
483
533
  {
484
534
  "name": "pattern",
485
535
  "type": {
486
536
  "text": "string"
487
537
  },
538
+ "description": "Sets a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that the input's value must [match to pass validation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#pattern)",
488
539
  "fieldName": "pattern"
489
540
  },
490
541
  {
@@ -492,6 +543,8 @@
492
543
  "type": {
493
544
  "text": "string"
494
545
  },
546
+ "description": "Set a text that is shown in the textfield when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
547
+ "summary": "Shown in the textfield when it doesn't have a value",
495
548
  "fieldName": "placeholder"
496
549
  },
497
550
  {
@@ -509,6 +562,7 @@
509
562
  "text": "boolean"
510
563
  },
511
564
  "default": "false",
565
+ "description": "Whether the input can be selected but not changed by the user.",
512
566
  "fieldName": "readonly"
513
567
  },
514
568
  {
@@ -517,6 +571,7 @@
517
571
  "text": "boolean"
518
572
  },
519
573
  "default": "false",
574
+ "description": "Whether user input is required on the input before form submission.",
520
575
  "fieldName": "required"
521
576
  },
522
577
  {
@@ -524,6 +579,7 @@
524
579
  "type": {
525
580
  "text": "string"
526
581
  },
582
+ "description": "The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).",
527
583
  "fieldName": "type"
528
584
  },
529
585
  {
@@ -531,6 +587,7 @@
531
587
  "type": {
532
588
  "text": "string"
533
589
  },
590
+ "description": "Lets you set the current value.",
534
591
  "fieldName": "value"
535
592
  },
536
593
  {
@@ -538,6 +595,7 @@
538
595
  "type": {
539
596
  "text": "string"
540
597
  },
598
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.",
541
599
  "fieldName": "name"
542
600
  },
543
601
  {
@@ -545,6 +603,8 @@
545
603
  "type": {
546
604
  "text": "number"
547
605
  },
606
+ "description": "When used with `number` this attribute forces inputs to be a whole number of `step`.\n\nFor example with a `step=\"5\"` only values that divide evenly on 5 are allowed.\nUsing arrow up and down in the input field increments and decrements by 5.",
607
+ "summary": "Forces `number` inputs to be a whole number of `step`",
548
608
  "fieldName": "step"
549
609
  },
550
610
  {
@@ -552,6 +612,7 @@
552
612
  "type": {
553
613
  "text": "string | undefined"
554
614
  },
615
+ "description": "A space-separated string that hints to browsers [what type of content it can suggest](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete#value) to autofill.",
555
616
  "fieldName": "autocomplete"
556
617
  }
557
618
  ],
@@ -608,8 +669,7 @@
608
669
  "default": "null",
609
670
  "summary": "Accessible label for icon-button variants.",
610
671
  "attribute": "aria-label",
611
- "reflects": true,
612
- "description": "Used to override the default `aria-label`s for the internal button when `search` or `clear` is enabled."
672
+ "reflects": true
613
673
  },
614
674
  {
615
675
  "kind": "field",
@@ -618,7 +678,7 @@
618
678
  "text": "boolean"
619
679
  },
620
680
  "default": "false",
621
- "description": "Shows a clickable close icon meant for reset/clear actions, typically in a suffix slot.",
681
+ "description": "Add this property to render a clickable Warp close icon.\n\nSet an `aria-label` that explains the action when using this.",
622
682
  "summary": "Renders a clear icon button.",
623
683
  "attribute": "clear"
624
684
  },
@@ -629,7 +689,7 @@
629
689
  "text": "boolean"
630
690
  },
631
691
  "default": "false",
632
- "description": "Shows a clickable search icon, typically in a prefix slot for search fields.",
692
+ "description": "Add this property to render a clickable Warp search icon.",
633
693
  "summary": "Renders a search icon button.",
634
694
  "attribute": "search"
635
695
  },
@@ -642,8 +702,7 @@
642
702
  "default": "''",
643
703
  "summary": "Text label shown as prefix/suffix content.",
644
704
  "attribute": "label",
645
- "reflects": true,
646
- "description": "Displays plain text such as a currency or unit label (for example `kr` or `%`) instead of an icon button."
705
+ "reflects": true
647
706
  },
648
707
  {
649
708
  "kind": "field",
@@ -654,8 +713,7 @@
654
713
  "default": "null",
655
714
  "summary": "Icon name rendered as prefix/suffix content.",
656
715
  "attribute": "icon",
657
- "reflects": true,
658
- "description": "Displays a non-interactive `w-icon` in the affix area using the provided icon name (for example `Search` or `Close`) instead of text."
716
+ "reflects": true
659
717
  },
660
718
  {
661
719
  "kind": "field",
@@ -776,8 +834,7 @@
776
834
  "reflects": true,
777
835
  "parsedType": {
778
836
  "text": "'negative' | 'positive' | 'warning' | 'info'"
779
- },
780
- "description": "Controls both the color treatment and icon used by the component. Accepted values are `info`, `warning`, `positive`, and `negative`. Use the variant that matches the message severity so users can quickly distinguish informative messages from warnings, errors, and confirmations."
837
+ }
781
838
  },
782
839
  {
783
840
  "kind": "field",
@@ -788,8 +845,7 @@
788
845
  "default": "false",
789
846
  "summary": "Whether the alert is visible.",
790
847
  "attribute": "show",
791
- "reflects": true,
792
- "description": "Alerts are hidden by default (`false`). Set this to `true` to render and expand the content. This is reflected as an attribute, so visibility can be controlled from markup (`show`) or from JavaScript (`element.show = true`)."
848
+ "reflects": true
793
849
  },
794
850
  {
795
851
  "kind": "field",
@@ -800,8 +856,7 @@
800
856
  "default": "'alert'",
801
857
  "summary": "ARIA role announced to assistive technology.",
802
858
  "attribute": "role",
803
- "reflects": true,
804
- "description": "Defaults to `alert` so urgent changes are announced by screen readers. Override this only when your use case requires a different announcement behavior, for example a less assertive live region strategy."
859
+ "reflects": true
805
860
  }
806
861
  ],
807
862
  "attributes": [
@@ -1414,7 +1469,7 @@
1414
1469
  "declarations": [
1415
1470
  {
1416
1471
  "kind": "class",
1417
- "description": "",
1472
+ "description": "Attention is a versatile component for displaying contextual information and messages. It can be used for a wide range of purposes, such as tooltips, callouts, popovers, and highlights.\n\nThe component is designed to be anchored to a trigger element, providing contextual information related to that element. It supports various placements and styling options to accommodate different use cases and design needs.\n\nNote: attention will soon be split into multiple components (tooltip, callout, popover, highlight) at which time this component will be deprecated. For now, use the `tooltip`, `callout`, `popover`, and `highlight` boolean properties to achieve the desired style and behavior.",
1418
1473
  "name": "WarpAttention",
1419
1474
  "members": [
1420
1475
  {
@@ -1424,6 +1479,7 @@
1424
1479
  "text": "boolean"
1425
1480
  },
1426
1481
  "default": "false",
1482
+ "description": "Controls whether the attention panel is visible.\nSet to `true` to show the attention content and `false` to hide it.",
1427
1483
  "attribute": "show",
1428
1484
  "reflects": true
1429
1485
  },
@@ -1433,6 +1489,7 @@
1433
1489
  "type": {
1434
1490
  "text": "Directions"
1435
1491
  },
1492
+ "description": "Preferred placement relative to the trigger element.\nSets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.",
1436
1493
  "default": "'bottom'",
1437
1494
  "attribute": "placement"
1438
1495
  },
@@ -1443,6 +1500,7 @@
1443
1500
  "text": "boolean"
1444
1501
  },
1445
1502
  "default": "false",
1503
+ "description": "Renders the component with tooltip styling and behavior.\nUse for compact, non-modal contextual hints anchored to another element.",
1446
1504
  "attribute": "tooltip",
1447
1505
  "reflects": true
1448
1506
  },
@@ -1453,6 +1511,7 @@
1453
1511
  "text": "boolean"
1454
1512
  },
1455
1513
  "default": "false",
1514
+ "description": "Renders the component as an inline callout.\nCallout mode is used for always-in-flow informational content instead of floating overlay behavior.",
1456
1515
  "attribute": "callout",
1457
1516
  "reflects": true
1458
1517
  },
@@ -1462,6 +1521,7 @@
1462
1521
  "type": {
1463
1522
  "text": "boolean"
1464
1523
  },
1524
+ "description": "Enables native popover behavior for the attention element.\nWhen enabled, the component uses popover semantics and styling suitable for floating surface UI.",
1465
1525
  "default": "false",
1466
1526
  "attribute": "popover",
1467
1527
  "reflects": true
@@ -1473,6 +1533,7 @@
1473
1533
  "text": "boolean"
1474
1534
  },
1475
1535
  "default": "false",
1536
+ "description": "Renders the component with highlight styling.\nUse highlight mode to visually emphasize important contextual information.",
1476
1537
  "attribute": "highlight",
1477
1538
  "reflects": true
1478
1539
  },
@@ -1483,6 +1544,7 @@
1483
1544
  "text": "boolean"
1484
1545
  },
1485
1546
  "default": "false",
1547
+ "description": "Shows a close button inside the attention component.\nAdds an internal dismiss action that lets users close the attention panel.",
1486
1548
  "attribute": "can-close",
1487
1549
  "reflects": true
1488
1550
  },
@@ -1493,6 +1555,7 @@
1493
1555
  "text": "boolean"
1494
1556
  },
1495
1557
  "default": "false",
1558
+ "description": "Hides the directional arrow of the attention component.\nDisable the arrow when the visual connection to the trigger should not be shown.",
1496
1559
  "attribute": "no-arrow",
1497
1560
  "reflects": true
1498
1561
  },
@@ -1502,6 +1565,7 @@
1502
1565
  "type": {
1503
1566
  "text": "number"
1504
1567
  },
1568
+ "description": "Distance offset between trigger and attention panel.\nDefines the main-axis spacing in pixels from the anchor element.",
1505
1569
  "default": "8",
1506
1570
  "attribute": "distance"
1507
1571
  },
@@ -1511,6 +1575,7 @@
1511
1575
  "type": {
1512
1576
  "text": "number"
1513
1577
  },
1578
+ "description": "Cross-axis offset for fine-grained positioning.\nMoves the panel along the cross axis in pixels to adjust alignment with the trigger.",
1514
1579
  "default": "0",
1515
1580
  "attribute": "skidding"
1516
1581
  },
@@ -1521,6 +1586,7 @@
1521
1586
  "text": "boolean"
1522
1587
  },
1523
1588
  "default": "false",
1589
+ "description": "Enables automatic flipping when placement has no space.\nAllows the component to choose an alternative side if the preferred placement would overflow.",
1524
1590
  "attribute": "flip",
1525
1591
  "reflects": true
1526
1592
  },
@@ -1531,6 +1597,7 @@
1531
1597
  "text": "boolean"
1532
1598
  },
1533
1599
  "default": "false",
1600
+ "description": "Allows overflow checks on the cross axis when flipping.\nUse with `flip` to improve collision handling when space is constrained horizontally or vertically.",
1534
1601
  "attribute": "cross-axis",
1535
1602
  "reflects": true
1536
1603
  },
@@ -1540,6 +1607,8 @@
1540
1607
  "type": {
1541
1608
  "text": "Directions[]"
1542
1609
  },
1610
+ "default": "[]",
1611
+ "description": "Ordered list of fallback placements.\nProvides explicit alternative placements to try when `flip` is enabled and the preferred placement does not fit.",
1543
1612
  "attribute": "fallback-placements",
1544
1613
  "reflects": true
1545
1614
  },
@@ -1609,6 +1678,7 @@
1609
1678
  "text": "boolean"
1610
1679
  },
1611
1680
  "default": "false",
1681
+ "description": "Controls whether the attention panel is visible.\nSet to `true` to show the attention content and `false` to hide it.",
1612
1682
  "fieldName": "show"
1613
1683
  },
1614
1684
  {
@@ -1616,6 +1686,7 @@
1616
1686
  "type": {
1617
1687
  "text": "Directions"
1618
1688
  },
1689
+ "description": "Preferred placement relative to the trigger element.\nSets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.",
1619
1690
  "default": "'bottom'",
1620
1691
  "fieldName": "placement"
1621
1692
  },
@@ -1625,6 +1696,7 @@
1625
1696
  "text": "boolean"
1626
1697
  },
1627
1698
  "default": "false",
1699
+ "description": "Renders the component with tooltip styling and behavior.\nUse for compact, non-modal contextual hints anchored to another element.",
1628
1700
  "fieldName": "tooltip"
1629
1701
  },
1630
1702
  {
@@ -1633,6 +1705,7 @@
1633
1705
  "text": "boolean"
1634
1706
  },
1635
1707
  "default": "false",
1708
+ "description": "Renders the component as an inline callout.\nCallout mode is used for always-in-flow informational content instead of floating overlay behavior.",
1636
1709
  "fieldName": "callout"
1637
1710
  },
1638
1711
  {
@@ -1640,6 +1713,7 @@
1640
1713
  "type": {
1641
1714
  "text": "boolean"
1642
1715
  },
1716
+ "description": "Enables native popover behavior for the attention element.\nWhen enabled, the component uses popover semantics and styling suitable for floating surface UI.",
1643
1717
  "default": "false",
1644
1718
  "fieldName": "popover"
1645
1719
  },
@@ -1649,6 +1723,7 @@
1649
1723
  "text": "boolean"
1650
1724
  },
1651
1725
  "default": "false",
1726
+ "description": "Renders the component with highlight styling.\nUse highlight mode to visually emphasize important contextual information.",
1652
1727
  "fieldName": "highlight"
1653
1728
  },
1654
1729
  {
@@ -1657,6 +1732,7 @@
1657
1732
  "text": "boolean"
1658
1733
  },
1659
1734
  "default": "false",
1735
+ "description": "Shows a close button inside the attention component.\nAdds an internal dismiss action that lets users close the attention panel.",
1660
1736
  "fieldName": "canClose"
1661
1737
  },
1662
1738
  {
@@ -1665,6 +1741,7 @@
1665
1741
  "text": "boolean"
1666
1742
  },
1667
1743
  "default": "false",
1744
+ "description": "Hides the directional arrow of the attention component.\nDisable the arrow when the visual connection to the trigger should not be shown.",
1668
1745
  "fieldName": "noArrow"
1669
1746
  },
1670
1747
  {
@@ -1672,6 +1749,7 @@
1672
1749
  "type": {
1673
1750
  "text": "number"
1674
1751
  },
1752
+ "description": "Distance offset between trigger and attention panel.\nDefines the main-axis spacing in pixels from the anchor element.",
1675
1753
  "default": "8",
1676
1754
  "fieldName": "distance"
1677
1755
  },
@@ -1680,6 +1758,7 @@
1680
1758
  "type": {
1681
1759
  "text": "number"
1682
1760
  },
1761
+ "description": "Cross-axis offset for fine-grained positioning.\nMoves the panel along the cross axis in pixels to adjust alignment with the trigger.",
1683
1762
  "default": "0",
1684
1763
  "fieldName": "skidding"
1685
1764
  },
@@ -1689,6 +1768,7 @@
1689
1768
  "text": "boolean"
1690
1769
  },
1691
1770
  "default": "false",
1771
+ "description": "Enables automatic flipping when placement has no space.\nAllows the component to choose an alternative side if the preferred placement would overflow.",
1692
1772
  "fieldName": "flip"
1693
1773
  },
1694
1774
  {
@@ -1697,6 +1777,7 @@
1697
1777
  "text": "boolean"
1698
1778
  },
1699
1779
  "default": "false",
1780
+ "description": "Allows overflow checks on the cross axis when flipping.\nUse with `flip` to improve collision handling when space is constrained horizontally or vertically.",
1700
1781
  "fieldName": "crossAxis"
1701
1782
  },
1702
1783
  {
@@ -1704,6 +1785,8 @@
1704
1785
  "type": {
1705
1786
  "text": "Directions[]"
1706
1787
  },
1788
+ "default": "[]",
1789
+ "description": "Ordered list of fallback placements.\nProvides explicit alternative placements to try when `flip` is enabled and the preferred placement does not fit.",
1707
1790
  "fieldName": "fallbackPlacements"
1708
1791
  }
1709
1792
  ],
@@ -1742,8 +1825,14 @@
1742
1825
  "declarations": [
1743
1826
  {
1744
1827
  "kind": "class",
1745
- "description": "`w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)",
1828
+ "description": "`w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.",
1746
1829
  "name": "WarpBadge",
1830
+ "slots": [
1831
+ {
1832
+ "description": "The content of the badge, which is typically a short string like \"New\" or \"4\".",
1833
+ "name": ""
1834
+ }
1835
+ ],
1747
1836
  "members": [
1748
1837
  {
1749
1838
  "kind": "field",
@@ -1751,6 +1840,7 @@
1751
1840
  "type": {
1752
1841
  "text": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'"
1753
1842
  },
1843
+ "description": "Controls the badge color treatment.\nIf omitted, the badge uses neutral styling without reflecting a `variant` attribute.\nAccepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.",
1754
1844
  "attribute": "variant",
1755
1845
  "reflects": true
1756
1846
  },
@@ -1760,6 +1850,7 @@
1760
1850
  "type": {
1761
1851
  "text": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'"
1762
1852
  },
1853
+ "description": "Positions the badge in a corner of a parent element.\nUse this with a parent element that has `position: relative`. When set, the badge uses absolute positioning and adjusts its corner radii so it sits flush against the selected corner.\nUse this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.",
1763
1854
  "attribute": "position",
1764
1855
  "reflects": true
1765
1856
  }
@@ -1770,6 +1861,7 @@
1770
1861
  "type": {
1771
1862
  "text": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'"
1772
1863
  },
1864
+ "description": "Controls the badge color treatment.\nIf omitted, the badge uses neutral styling without reflecting a `variant` attribute.\nAccepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.",
1773
1865
  "fieldName": "variant"
1774
1866
  },
1775
1867
  {
@@ -1777,6 +1869,7 @@
1777
1869
  "type": {
1778
1870
  "text": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'"
1779
1871
  },
1872
+ "description": "Positions the badge in a corner of a parent element.\nUse this with a parent element that has `position: relative`. When set, the badge uses absolute positioning and adjusts its corner radii so it sits flush against the selected corner.\nUse this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.",
1780
1873
  "fieldName": "position"
1781
1874
  }
1782
1875
  ],
@@ -2890,6 +2983,7 @@
2890
2983
  "text": "ComboboxOption[]"
2891
2984
  },
2892
2985
  "default": "[]",
2986
+ "description": "The available options to select from",
2893
2987
  "attribute": "options"
2894
2988
  },
2895
2989
  {
@@ -2899,6 +2993,7 @@
2899
2993
  "text": "string | undefined"
2900
2994
  },
2901
2995
  "default": "''",
2996
+ "description": "Label above input",
2902
2997
  "attribute": "label",
2903
2998
  "reflects": true
2904
2999
  },
@@ -2909,6 +3004,7 @@
2909
3004
  "text": "string | undefined"
2910
3005
  },
2911
3006
  "default": "''",
3007
+ "description": "Input placeholder",
2912
3008
  "attribute": "placeholder",
2913
3009
  "reflects": true
2914
3010
  },
@@ -2919,6 +3015,7 @@
2919
3015
  "text": "string"
2920
3016
  },
2921
3017
  "default": "''",
3018
+ "description": "The input value",
2922
3019
  "attribute": "value",
2923
3020
  "reflects": true
2924
3021
  },
@@ -2929,6 +3026,7 @@
2929
3026
  "text": "boolean"
2930
3027
  },
2931
3028
  "default": "false",
3029
+ "description": "Whether the popover opens when focus is on the text field",
2932
3030
  "attribute": "open-on-focus",
2933
3031
  "reflects": true
2934
3032
  },
@@ -2939,6 +3037,7 @@
2939
3037
  "text": "boolean"
2940
3038
  },
2941
3039
  "default": "true",
3040
+ "description": "Select active option on blur",
2942
3041
  "attribute": "select-on-blur",
2943
3042
  "reflects": true
2944
3043
  },
@@ -2949,6 +3048,7 @@
2949
3048
  "text": "boolean"
2950
3049
  },
2951
3050
  "default": "false",
3051
+ "description": "Whether the matching text segments in the options should be highlighted",
2952
3052
  "attribute": "match-text-segments",
2953
3053
  "reflects": true
2954
3054
  },
@@ -2959,6 +3059,7 @@
2959
3059
  "text": "boolean"
2960
3060
  },
2961
3061
  "default": "false",
3062
+ "description": "Disable client-side static filtering",
2962
3063
  "attribute": "disable-static-filtering",
2963
3064
  "reflects": true
2964
3065
  },
@@ -2969,6 +3070,7 @@
2969
3070
  "text": "boolean"
2970
3071
  },
2971
3072
  "default": "false",
3073
+ "description": "Renders the input field in an invalid state",
2972
3074
  "attribute": "invalid",
2973
3075
  "reflects": true
2974
3076
  },
@@ -2979,6 +3081,7 @@
2979
3081
  "text": "string | undefined"
2980
3082
  },
2981
3083
  "default": "''",
3084
+ "description": "The content to display as the help text",
2982
3085
  "attribute": "help-text",
2983
3086
  "reflects": true
2984
3087
  },
@@ -2989,6 +3092,7 @@
2989
3092
  "text": "boolean"
2990
3093
  },
2991
3094
  "default": "false",
3095
+ "description": "Whether the element is disabled",
2992
3096
  "attribute": "disabled",
2993
3097
  "reflects": true
2994
3098
  },
@@ -2999,6 +3103,7 @@
2999
3103
  "text": "boolean"
3000
3104
  },
3001
3105
  "default": "false",
3106
+ "description": "Whether the element is required",
3002
3107
  "attribute": "required",
3003
3108
  "reflects": true
3004
3109
  },
@@ -3009,6 +3114,7 @@
3009
3114
  "text": "boolean"
3010
3115
  },
3011
3116
  "default": "false",
3117
+ "description": "Whether to show optional text",
3012
3118
  "attribute": "optional",
3013
3119
  "reflects": true
3014
3120
  },
@@ -3019,6 +3125,7 @@
3019
3125
  "text": "string | undefined"
3020
3126
  },
3021
3127
  "default": "''",
3128
+ "description": "Name attribute for form submission",
3022
3129
  "attribute": "name",
3023
3130
  "reflects": true
3024
3131
  },
@@ -3029,6 +3136,7 @@
3029
3136
  "text": "string | undefined"
3030
3137
  },
3031
3138
  "default": "'off'",
3139
+ "description": "Autocomplete attribute for the input field",
3032
3140
  "attribute": "autocomplete",
3033
3141
  "reflects": true
3034
3142
  },
@@ -3486,6 +3594,7 @@
3486
3594
  "type": {
3487
3595
  "text": "string"
3488
3596
  },
3597
+ "description": "Takes precedence over the `<html>` lang attribute.",
3489
3598
  "attribute": "lang",
3490
3599
  "reflects": true
3491
3600
  },
@@ -3514,6 +3623,7 @@
3514
3623
  "text": "string"
3515
3624
  },
3516
3625
  "default": "'MMMM yyyy'",
3626
+ "description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
3517
3627
  "attribute": "header-format"
3518
3628
  },
3519
3629
  {
@@ -3523,6 +3633,7 @@
3523
3633
  "text": "string"
3524
3634
  },
3525
3635
  "default": "'EEEEEE'",
3636
+ "description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
3526
3637
  "attribute": "weekday-format"
3527
3638
  },
3528
3639
  {
@@ -3530,7 +3641,8 @@
3530
3641
  "name": "isDayDisabled",
3531
3642
  "type": {
3532
3643
  "text": "(day: Date) => boolean"
3533
- }
3644
+ },
3645
+ "description": "Lets you control if a date in the calendar should be disabled.\n\nThis needs to be set on the element instance in JavaScript, not as an HTML attribute."
3534
3646
  },
3535
3647
  {
3536
3648
  "kind": "field",
@@ -3539,6 +3651,7 @@
3539
3651
  "text": "string"
3540
3652
  },
3541
3653
  "default": "'PPPP'",
3654
+ "description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
3542
3655
  "attribute": "day-format"
3543
3656
  },
3544
3657
  {
@@ -4533,6 +4646,7 @@
4533
4646
  "type": {
4534
4647
  "text": "number"
4535
4648
  },
4649
+ "description": "Currently selected page (1-based index, clamped to valid range)",
4536
4650
  "attribute": "selected-page",
4537
4651
  "reflects": true
4538
4652
  },
@@ -4542,6 +4656,7 @@
4542
4656
  "type": {
4543
4657
  "text": "number"
4544
4658
  },
4659
+ "description": "Total number of pages (minimum 1)",
4545
4660
  "attribute": "page-count",
4546
4661
  "reflects": true
4547
4662
  },
@@ -5835,6 +5950,7 @@
5835
5950
  "text": "boolean"
5836
5951
  },
5837
5952
  "default": "false",
5953
+ "description": "Whether the element should receive focus on render.",
5838
5954
  "deprecated": "Use the native `autofocus` attribute instead.",
5839
5955
  "attribute": "auto-focus",
5840
5956
  "reflects": true
@@ -5846,6 +5962,7 @@
5846
5962
  "text": "boolean"
5847
5963
  },
5848
5964
  "default": "false",
5965
+ "description": "Whether the element should receive focus on render",
5849
5966
  "attribute": "autofocus",
5850
5967
  "reflects": true
5851
5968
  },
@@ -5855,6 +5972,7 @@
5855
5972
  "type": {
5856
5973
  "text": "string"
5857
5974
  },
5975
+ "description": "The content displayed as the help text. Paired with `invalid` to show the text as a validation error.",
5858
5976
  "attribute": "help-text",
5859
5977
  "reflects": true
5860
5978
  },
@@ -5865,6 +5983,7 @@
5865
5983
  "text": "boolean"
5866
5984
  },
5867
5985
  "default": "false",
5986
+ "description": "Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.",
5868
5987
  "attribute": "invalid",
5869
5988
  "reflects": true
5870
5989
  },
@@ -5875,6 +5994,7 @@
5875
5994
  "text": "boolean"
5876
5995
  },
5877
5996
  "default": "false",
5997
+ "description": "Whether to always show a hint.",
5878
5998
  "deprecated": "Use `help-text` instead and only set it if you want to display the help text.",
5879
5999
  "attribute": "always",
5880
6000
  "reflects": true
@@ -5885,6 +6005,7 @@
5885
6005
  "type": {
5886
6006
  "text": "string"
5887
6007
  },
6008
+ "description": "The content displayed as the help text.",
5888
6009
  "deprecated": "Use `help-text` instead.",
5889
6010
  "attribute": "hint",
5890
6011
  "reflects": true
@@ -5895,6 +6016,7 @@
5895
6016
  "type": {
5896
6017
  "text": "string"
5897
6018
  },
6019
+ "description": "The content to disply as the label",
5898
6020
  "attribute": "label",
5899
6021
  "reflects": true
5900
6022
  },
@@ -5905,6 +6027,7 @@
5905
6027
  "text": "boolean"
5906
6028
  },
5907
6029
  "default": "false",
6030
+ "description": "Whether to show optional text",
5908
6031
  "attribute": "optional",
5909
6032
  "reflects": true
5910
6033
  },
@@ -5915,6 +6038,7 @@
5915
6038
  "text": "boolean"
5916
6039
  },
5917
6040
  "default": "false",
6041
+ "description": "Renders the field in a disabled state.",
5918
6042
  "attribute": "disabled",
5919
6043
  "reflects": true
5920
6044
  },
@@ -5925,6 +6049,7 @@
5925
6049
  "text": "boolean"
5926
6050
  },
5927
6051
  "default": "false",
6052
+ "description": "Renders the field in a readonly state.",
5928
6053
  "deprecated": "Use the native readonly attribute instead.",
5929
6054
  "attribute": "read-only",
5930
6055
  "reflects": true
@@ -5936,6 +6061,7 @@
5936
6061
  "text": "boolean"
5937
6062
  },
5938
6063
  "default": "false",
6064
+ "description": "Renders the field in a readonly state.",
5939
6065
  "attribute": "readonly",
5940
6066
  "reflects": true
5941
6067
  },
@@ -6127,10 +6253,6 @@
6127
6253
  "type": {
6128
6254
  "text": "onChange(event: Event) => void"
6129
6255
  }
6130
- },
6131
- {
6132
- "name": "_options",
6133
- "kind": "field"
6134
6256
  }
6135
6257
  ],
6136
6258
  "events": [
@@ -6550,30 +6672,6 @@
6550
6672
  "kind": "field",
6551
6673
  "name": "ariaDescriptionText",
6552
6674
  "readonly": true
6553
- },
6554
- {
6555
- "name": "disabled",
6556
- "kind": "field"
6557
- },
6558
- {
6559
- "name": "invalid",
6560
- "kind": "field"
6561
- },
6562
- {
6563
- "name": "openEnded",
6564
- "kind": "field"
6565
- },
6566
- {
6567
- "name": "valueFormatter",
6568
- "kind": "field"
6569
- },
6570
- {
6571
- "name": "tooltipFormatter",
6572
- "kind": "field"
6573
- },
6574
- {
6575
- "name": "labelFormatter",
6576
- "kind": "field"
6577
6675
  }
6578
6676
  ],
6579
6677
  "events": [
@@ -6708,6 +6806,7 @@
6708
6806
  "type": {
6709
6807
  "text": "string"
6710
6808
  },
6809
+ "description": "The slider fieldset label. Required for proper accessibility.\n\nIf you need to display HTML, use the `label` slot instead (f. ex. `<legend class=\"sr-only\" slot=\"label\">Production year</legend>`)",
6711
6810
  "attribute": "label",
6712
6811
  "reflects": true
6713
6812
  },
@@ -6728,6 +6827,7 @@
6728
6827
  "text": "boolean"
6729
6828
  },
6730
6829
  "default": "false",
6830
+ "description": "Whether or not to allow values outside the range such as \"Before 1950\" and \"2025+\".",
6731
6831
  "attribute": "open-ended"
6732
6832
  },
6733
6833
  {
@@ -6765,6 +6865,7 @@
6765
6865
  "text": "boolean"
6766
6866
  },
6767
6867
  "default": "false",
6868
+ "description": "Ensures a child slider thumb has a value before allowing the containing form to submit.",
6768
6869
  "attribute": "required",
6769
6870
  "reflects": true
6770
6871
  },
@@ -6792,6 +6893,7 @@
6792
6893
  "type": {
6793
6894
  "text": "number"
6794
6895
  },
6896
+ "description": "Pass a value similar to step to create visual markers at that interval",
6795
6897
  "attribute": "markers",
6796
6898
  "reflects": true
6797
6899
  },
@@ -6810,6 +6912,7 @@
6810
6912
  "type": {
6811
6913
  "text": "string"
6812
6914
  },
6915
+ "description": "Suffix used in text input fields and for the min and max values of the slider.",
6813
6916
  "attribute": "suffix",
6814
6917
  "reflects": true
6815
6918
  },
@@ -6828,21 +6931,24 @@
6828
6931
  "name": "valueFormatter",
6829
6932
  "type": {
6830
6933
  "text": "(value: string, slot: SliderSlot) => string"
6831
- }
6934
+ },
6935
+ "description": "Formatter for the tooltip and input mask values."
6832
6936
  },
6833
6937
  {
6834
6938
  "kind": "field",
6835
6939
  "name": "tooltipFormatter",
6836
6940
  "type": {
6837
6941
  "text": "(value: string, slot: SliderSlot) => string"
6838
- }
6942
+ },
6943
+ "description": "Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example \"300+ hk\" instead of \"Max\" in the tooltip."
6839
6944
  },
6840
6945
  {
6841
6946
  "kind": "field",
6842
6947
  "name": "labelFormatter",
6843
6948
  "type": {
6844
6949
  "text": "(slot: SliderSlot) => string"
6845
- }
6950
+ },
6951
+ "description": "Formatter for the min and max labels below the range."
6846
6952
  },
6847
6953
  {
6848
6954
  "kind": "field",
@@ -7642,14 +7748,6 @@
7642
7748
  "kind": "method",
7643
7749
  "name": "syncAriaControls",
7644
7750
  "privacy": "private"
7645
- },
7646
- {
7647
- "name": "_parentTabIndex",
7648
- "kind": "field"
7649
- },
7650
- {
7651
- "name": "_parentAriaSelected",
7652
- "kind": "field"
7653
7751
  }
7654
7752
  ],
7655
7753
  "attributes": [
@@ -7766,14 +7864,6 @@
7766
7864
  "kind": "method",
7767
7865
  "name": "syncA11yState",
7768
7866
  "privacy": "private"
7769
- },
7770
- {
7771
- "name": "_parentActive",
7772
- "kind": "field"
7773
- },
7774
- {
7775
- "name": "_parentAriaLabelledBy",
7776
- "kind": "field"
7777
7867
  }
7778
7868
  ],
7779
7869
  "attributes": [
@@ -7986,18 +8076,9 @@
7986
8076
  "declarations": [
7987
8077
  {
7988
8078
  "kind": "class",
7989
- "description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)",
8079
+ "description": "A multi-line text input with built-in form validation, auto-resizing, and styling support.\n\nThe component automatically handles:\n - Form integration\n - Auto-resizing based on content and row constraints\n - Built-in validation with customizable error messages\n - Accessibility attributes and labeling",
7990
8080
  "name": "WarpTextarea",
7991
8081
  "members": [
7992
- {
7993
- "kind": "field",
7994
- "name": "shadowRootOptions",
7995
- "type": {
7996
- "text": "object"
7997
- },
7998
- "static": true,
7999
- "default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
8000
- },
8001
8082
  {
8002
8083
  "kind": "field",
8003
8084
  "name": "disabled",
@@ -8005,6 +8086,8 @@
8005
8086
  "text": "boolean"
8006
8087
  },
8007
8088
  "default": "false",
8089
+ "description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
8090
+ "summary": "Makes the element not focusable and hides it from form submits",
8008
8091
  "attribute": "disabled",
8009
8092
  "reflects": true
8010
8093
  },
@@ -8015,6 +8098,7 @@
8015
8098
  "text": "boolean"
8016
8099
  },
8017
8100
  "default": "false",
8101
+ "description": "Mark the form field as invalid.\n\nMake sure to also set a `help-text` to help users fix the validation problem.",
8018
8102
  "attribute": "invalid",
8019
8103
  "reflects": true
8020
8104
  },
@@ -8024,6 +8108,7 @@
8024
8108
  "type": {
8025
8109
  "text": "string"
8026
8110
  },
8111
+ "description": "Either a `label` or an `aria-label` must be provided.",
8027
8112
  "attribute": "label",
8028
8113
  "reflects": true
8029
8114
  },
@@ -8033,6 +8118,8 @@
8033
8118
  "type": {
8034
8119
  "text": "string"
8035
8120
  },
8121
+ "description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
8122
+ "summary": "Description shown below the input field",
8036
8123
  "attribute": "help-text",
8037
8124
  "reflects": true
8038
8125
  },
@@ -8042,6 +8129,7 @@
8042
8129
  "type": {
8043
8130
  "text": "number"
8044
8131
  },
8132
+ "description": "Sets the maximum number of text rows before the content starts scrolling.",
8045
8133
  "attribute": "maximum-rows",
8046
8134
  "reflects": true
8047
8135
  },
@@ -8051,6 +8139,7 @@
8051
8139
  "type": {
8052
8140
  "text": "number"
8053
8141
  },
8142
+ "description": "Sets the minimum number of text rows the textarea should display",
8054
8143
  "attribute": "minimum-rows",
8055
8144
  "reflects": true
8056
8145
  },
@@ -8060,6 +8149,7 @@
8060
8149
  "type": {
8061
8150
  "text": "string"
8062
8151
  },
8152
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form",
8063
8153
  "attribute": "name",
8064
8154
  "reflects": true
8065
8155
  },
@@ -8069,6 +8159,8 @@
8069
8159
  "type": {
8070
8160
  "text": "string"
8071
8161
  },
8162
+ "description": "Set a text that is shown in the textarea when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
8163
+ "summary": "Shown in the textarea when it doesn't have a value",
8072
8164
  "attribute": "placeholder",
8073
8165
  "reflects": true
8074
8166
  },
@@ -8079,7 +8171,7 @@
8079
8171
  "text": "boolean"
8080
8172
  },
8081
8173
  "default": "false",
8082
- "deprecated": "Use the native readonly attribute instead. Here for API consistency with `w-textfield`.",
8174
+ "deprecated": "Use the native `readonly` attribute instead",
8083
8175
  "attribute": "read-only",
8084
8176
  "reflects": true
8085
8177
  },
@@ -8090,6 +8182,7 @@
8090
8182
  "text": "boolean"
8091
8183
  },
8092
8184
  "default": "false",
8185
+ "description": "Whether the input can be selected but not changed by the user",
8093
8186
  "attribute": "readonly",
8094
8187
  "reflects": true
8095
8188
  },
@@ -8100,6 +8193,7 @@
8100
8193
  "text": "boolean"
8101
8194
  },
8102
8195
  "default": "false",
8196
+ "description": "Whether user input is required on the input before form submission",
8103
8197
  "attribute": "required",
8104
8198
  "reflects": true
8105
8199
  },
@@ -8109,6 +8203,7 @@
8109
8203
  "type": {
8110
8204
  "text": "string"
8111
8205
  },
8206
+ "description": "Lets you set the current value",
8112
8207
  "attribute": "value",
8113
8208
  "reflects": true
8114
8209
  },
@@ -8119,17 +8214,10 @@
8119
8214
  "text": "boolean"
8120
8215
  },
8121
8216
  "default": "false",
8217
+ "description": "Show an icon behind the label indicating the field is optional",
8122
8218
  "attribute": "optional",
8123
8219
  "reflects": true
8124
8220
  },
8125
- {
8126
- "kind": "field",
8127
- "name": "minHeight"
8128
- },
8129
- {
8130
- "kind": "field",
8131
- "name": "maxHeight"
8132
- },
8133
8221
  {
8134
8222
  "kind": "field",
8135
8223
  "name": "_textarea",
@@ -8293,6 +8381,8 @@
8293
8381
  "text": "boolean"
8294
8382
  },
8295
8383
  "default": "false",
8384
+ "description": "Keep in mind that using disabled in its current form is an anti-pattern.\n\nThere will always be users who don't understand why an element is disabled, or users who can't even see that it is disabled because of poor lighting conditions or other reasons.\n\nPlease consider more informative alternatives before choosing to use disabled on an element.",
8385
+ "summary": "Makes the element not focusable and hides it from form submits",
8296
8386
  "fieldName": "disabled"
8297
8387
  },
8298
8388
  {
@@ -8301,6 +8391,7 @@
8301
8391
  "text": "boolean"
8302
8392
  },
8303
8393
  "default": "false",
8394
+ "description": "Mark the form field as invalid.\n\nMake sure to also set a `help-text` to help users fix the validation problem.",
8304
8395
  "fieldName": "invalid"
8305
8396
  },
8306
8397
  {
@@ -8308,6 +8399,7 @@
8308
8399
  "type": {
8309
8400
  "text": "string"
8310
8401
  },
8402
+ "description": "Either a `label` or an `aria-label` must be provided.",
8311
8403
  "fieldName": "label"
8312
8404
  },
8313
8405
  {
@@ -8315,6 +8407,8 @@
8315
8407
  "type": {
8316
8408
  "text": "string"
8317
8409
  },
8410
+ "description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
8411
+ "summary": "Description shown below the input field",
8318
8412
  "fieldName": "helpText"
8319
8413
  },
8320
8414
  {
@@ -8322,6 +8416,7 @@
8322
8416
  "type": {
8323
8417
  "text": "number"
8324
8418
  },
8419
+ "description": "Sets the maximum number of text rows before the content starts scrolling.",
8325
8420
  "fieldName": "maxRows"
8326
8421
  },
8327
8422
  {
@@ -8329,6 +8424,7 @@
8329
8424
  "type": {
8330
8425
  "text": "number"
8331
8426
  },
8427
+ "description": "Sets the minimum number of text rows the textarea should display",
8332
8428
  "fieldName": "minRows"
8333
8429
  },
8334
8430
  {
@@ -8336,6 +8432,7 @@
8336
8432
  "type": {
8337
8433
  "text": "string"
8338
8434
  },
8435
+ "description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form",
8339
8436
  "fieldName": "name"
8340
8437
  },
8341
8438
  {
@@ -8343,6 +8440,8 @@
8343
8440
  "type": {
8344
8441
  "text": "string"
8345
8442
  },
8443
+ "description": "Set a text that is shown in the textarea when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
8444
+ "summary": "Shown in the textarea when it doesn't have a value",
8346
8445
  "fieldName": "placeholder"
8347
8446
  },
8348
8447
  {
@@ -8351,7 +8450,7 @@
8351
8450
  "text": "boolean"
8352
8451
  },
8353
8452
  "default": "false",
8354
- "deprecated": "Use the native readonly attribute instead. Here for API consistency with `w-textfield`.",
8453
+ "deprecated": "Use the native `readonly` attribute instead",
8355
8454
  "fieldName": "readOnly"
8356
8455
  },
8357
8456
  {
@@ -8360,6 +8459,7 @@
8360
8459
  "text": "boolean"
8361
8460
  },
8362
8461
  "default": "false",
8462
+ "description": "Whether the input can be selected but not changed by the user",
8363
8463
  "fieldName": "readonly"
8364
8464
  },
8365
8465
  {
@@ -8368,6 +8468,7 @@
8368
8468
  "text": "boolean"
8369
8469
  },
8370
8470
  "default": "false",
8471
+ "description": "Whether user input is required on the input before form submission",
8371
8472
  "fieldName": "required"
8372
8473
  },
8373
8474
  {
@@ -8375,6 +8476,7 @@
8375
8476
  "type": {
8376
8477
  "text": "string"
8377
8478
  },
8479
+ "description": "Lets you set the current value",
8378
8480
  "fieldName": "value"
8379
8481
  },
8380
8482
  {
@@ -8383,6 +8485,7 @@
8383
8485
  "text": "boolean"
8384
8486
  },
8385
8487
  "default": "false",
8488
+ "description": "Show an icon behind the label indicating the field is optional",
8386
8489
  "fieldName": "optional"
8387
8490
  }
8388
8491
  ],