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

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 (210) hide show
  1. package/dist/custom-elements.json +101 -173
  2. package/dist/docs/affix/accessibility.md +1 -0
  3. package/dist/docs/affix/affix.md +58 -0
  4. package/dist/docs/affix/api.md +44 -0
  5. package/dist/docs/affix/examples.md +1 -0
  6. package/dist/docs/affix/usage.md +1 -0
  7. package/dist/docs/alert/accessibility.md +30 -0
  8. package/dist/docs/alert/alert.md +208 -0
  9. package/dist/docs/alert/api.md +39 -0
  10. package/dist/docs/alert/examples.md +84 -0
  11. package/dist/docs/alert/usage.md +42 -0
  12. package/dist/docs/attention/accessibility.md +1 -0
  13. package/dist/docs/attention/api.md +132 -0
  14. package/dist/docs/attention/attention.md +144 -0
  15. package/dist/docs/attention/examples.md +1 -0
  16. package/dist/docs/attention/usage.md +1 -0
  17. package/dist/docs/badge/accessibility.md +1 -0
  18. package/dist/docs/badge/api.md +28 -0
  19. package/dist/docs/badge/badge.md +42 -0
  20. package/dist/docs/badge/examples.md +1 -0
  21. package/dist/docs/badge/usage.md +1 -0
  22. package/dist/docs/box/accessibility.md +1 -0
  23. package/dist/docs/box/api.md +52 -0
  24. package/dist/docs/box/box.md +66 -0
  25. package/dist/docs/box/examples.md +1 -0
  26. package/dist/docs/box/usage.md +1 -0
  27. package/dist/docs/breadcrumbs/accessibility.md +1 -0
  28. package/dist/docs/breadcrumbs/api.md +20 -0
  29. package/dist/docs/breadcrumbs/breadcrumbs.md +34 -0
  30. package/dist/docs/breadcrumbs/examples.md +1 -0
  31. package/dist/docs/breadcrumbs/usage.md +1 -0
  32. package/dist/docs/button/accessibility.md +1 -0
  33. package/dist/docs/button/api.md +155 -0
  34. package/dist/docs/button/button.md +169 -0
  35. package/dist/docs/button/examples.md +1 -0
  36. package/dist/docs/button/usage.md +1 -0
  37. package/dist/docs/card/accessibility.md +1 -0
  38. package/dist/docs/card/api.md +44 -0
  39. package/dist/docs/card/card.md +58 -0
  40. package/dist/docs/card/examples.md +1 -0
  41. package/dist/docs/card/usage.md +1 -0
  42. package/dist/docs/combobox/accessibility.md +1 -0
  43. package/dist/docs/combobox/api.md +132 -0
  44. package/dist/docs/combobox/combobox.md +146 -0
  45. package/dist/docs/combobox/examples.md +1 -0
  46. package/dist/docs/combobox/usage.md +1 -0
  47. package/dist/docs/datepicker/accessibility.md +1 -0
  48. package/dist/docs/datepicker/api.md +184 -0
  49. package/dist/docs/datepicker/datepicker.md +200 -0
  50. package/dist/docs/datepicker/examples.md +1 -0
  51. package/dist/docs/datepicker/usage.md +1 -0
  52. package/dist/docs/expandable/accessibility.md +1 -0
  53. package/dist/docs/expandable/api.md +100 -0
  54. package/dist/docs/expandable/examples.md +1 -0
  55. package/dist/docs/expandable/expandable.md +114 -0
  56. package/dist/docs/expandable/usage.md +1 -0
  57. package/dist/docs/link/accessibility.md +1 -0
  58. package/dist/docs/link/api.md +87 -0
  59. package/dist/docs/link/examples.md +1 -0
  60. package/dist/docs/link/link.md +101 -0
  61. package/dist/docs/link/usage.md +1 -0
  62. package/dist/docs/page-indicator/accessibility.md +1 -0
  63. package/dist/docs/page-indicator/api.md +28 -0
  64. package/dist/docs/page-indicator/examples.md +1 -0
  65. package/dist/docs/page-indicator/page-indicator.md +41 -0
  66. package/dist/docs/page-indicator/usage.md +1 -0
  67. package/dist/docs/pagination/accessibility.md +1 -0
  68. package/dist/docs/pagination/api.md +44 -0
  69. package/dist/docs/pagination/examples.md +1 -0
  70. package/dist/docs/pagination/pagination.md +58 -0
  71. package/dist/docs/pagination/usage.md +1 -0
  72. package/dist/docs/pill/accessibility.md +1 -0
  73. package/dist/docs/pill/api.md +76 -0
  74. package/dist/docs/pill/examples.md +1 -0
  75. package/dist/docs/pill/pill.md +90 -0
  76. package/dist/docs/pill/usage.md +1 -0
  77. package/dist/docs/select/accessibility.md +1 -0
  78. package/dist/docs/select/api.md +124 -0
  79. package/dist/docs/select/examples.md +1 -0
  80. package/dist/docs/select/select.md +138 -0
  81. package/dist/docs/select/usage.md +1 -0
  82. package/dist/docs/slider/accessibility.md +1 -0
  83. package/dist/docs/slider/api.md +220 -0
  84. package/dist/docs/slider/examples.md +1 -0
  85. package/dist/docs/slider/slider.md +234 -0
  86. package/dist/docs/slider/usage.md +1 -0
  87. package/dist/docs/slider-thumb/accessibility.md +1 -0
  88. package/dist/docs/slider-thumb/api.md +164 -0
  89. package/dist/docs/slider-thumb/examples.md +1 -0
  90. package/dist/docs/slider-thumb/slider-thumb.md +178 -0
  91. package/dist/docs/slider-thumb/usage.md +1 -0
  92. package/dist/docs/step/accessibility.md +1 -0
  93. package/dist/docs/step/api.md +28 -0
  94. package/dist/docs/step/examples.md +1 -0
  95. package/dist/docs/step/step.md +40 -0
  96. package/dist/docs/step/usage.md +1 -0
  97. package/dist/docs/step-indicator/accessibility.md +1 -0
  98. package/dist/docs/step-indicator/api.md +28 -0
  99. package/dist/docs/step-indicator/examples.md +1 -0
  100. package/dist/docs/step-indicator/step-indicator.md +42 -0
  101. package/dist/docs/step-indicator/usage.md +1 -0
  102. package/dist/docs/switch/accessibility.md +1 -0
  103. package/dist/docs/switch/api.md +52 -0
  104. package/dist/docs/switch/examples.md +1 -0
  105. package/dist/docs/switch/switch.md +64 -0
  106. package/dist/docs/switch/usage.md +1 -0
  107. package/dist/docs/tab/accessibility.md +1 -0
  108. package/dist/docs/tab/api.md +92 -0
  109. package/dist/docs/tab/examples.md +1 -0
  110. package/dist/docs/tab/tab.md +106 -0
  111. package/dist/docs/tab/usage.md +1 -0
  112. package/dist/docs/tab-panel/accessibility.md +1 -0
  113. package/dist/docs/tab-panel/api.md +37 -0
  114. package/dist/docs/tab-panel/examples.md +1 -0
  115. package/dist/docs/tab-panel/tab-panel.md +52 -0
  116. package/dist/docs/tab-panel/usage.md +1 -0
  117. package/dist/docs/tabs/accessibility.md +1 -0
  118. package/dist/docs/tabs/api.md +36 -0
  119. package/dist/docs/tabs/examples.md +1 -0
  120. package/dist/docs/tabs/tabs.md +50 -0
  121. package/dist/docs/tabs/usage.md +1 -0
  122. package/dist/docs/textarea/accessibility.md +1 -0
  123. package/dist/docs/textarea/api.md +156 -0
  124. package/dist/docs/textarea/examples.md +1 -0
  125. package/dist/docs/textarea/textarea.md +170 -0
  126. package/dist/docs/textarea/usage.md +1 -0
  127. package/dist/docs/textfield/accessibility.md +1 -0
  128. package/dist/docs/textfield/api.md +204 -0
  129. package/dist/docs/textfield/examples.md +1 -0
  130. package/dist/docs/textfield/textfield.md +218 -0
  131. package/dist/docs/textfield/usage.md +1 -0
  132. package/dist/docs/toast/accessibility.md +9 -0
  133. package/dist/docs/toast/api.md +71 -0
  134. package/dist/docs/toast/examples.md +29 -0
  135. package/dist/docs/toast/toast.md +150 -0
  136. package/dist/docs/toast/usage.md +31 -0
  137. package/dist/index.d.ts +104 -97
  138. package/dist/packages/affix/affix.d.ts +16 -2
  139. package/dist/packages/affix/affix.js +5 -5
  140. package/dist/packages/affix/affix.js.map +2 -2
  141. package/dist/packages/alert/alert.d.ts +15 -0
  142. package/dist/packages/alert/alert.js +6 -6
  143. package/dist/packages/alert/alert.js.map +2 -2
  144. package/dist/packages/attention/attention.d.ts +52 -0
  145. package/dist/packages/attention/attention.js +5 -5
  146. package/dist/packages/attention/attention.js.map +2 -2
  147. package/dist/packages/badge/badge.d.ts +8 -0
  148. package/dist/packages/badge/badge.js.map +2 -2
  149. package/dist/packages/box/box.d.ts +20 -0
  150. package/dist/packages/box/box.js.map +2 -2
  151. package/dist/packages/button/button.d.ts +60 -2
  152. package/dist/packages/button/button.js.map +2 -2
  153. package/dist/packages/card/card.d.ts +12 -0
  154. package/dist/packages/card/card.js.map +2 -2
  155. package/dist/packages/combobox/combobox.d.ts +60 -15
  156. package/dist/packages/combobox/combobox.js.map +2 -2
  157. package/dist/packages/datepicker/datepicker.d.ts +32 -5
  158. package/dist/packages/datepicker/datepicker.js +1 -1
  159. package/dist/packages/datepicker/datepicker.js.map +2 -2
  160. package/dist/packages/expandable/expandable.d.ts +44 -0
  161. package/dist/packages/expandable/expandable.js +7 -7
  162. package/dist/packages/expandable/expandable.js.map +2 -2
  163. package/dist/packages/icon/icon.js +2 -2
  164. package/dist/packages/icon/icon.js.map +2 -2
  165. package/dist/packages/icon/icon.test.js +14 -0
  166. package/dist/packages/link/link.d.ts +32 -0
  167. package/dist/packages/link/link.js.map +2 -2
  168. package/dist/packages/modal-header/modal-header.js +6 -6
  169. package/dist/packages/modal-header/modal-header.js.map +2 -2
  170. package/dist/packages/page-indicator/page-indicator.d.ts +8 -2
  171. package/dist/packages/page-indicator/page-indicator.js.map +2 -2
  172. package/dist/packages/pagination/pagination.d.ts +16 -0
  173. package/dist/packages/pagination/pagination.js +3 -3
  174. package/dist/packages/pagination/pagination.js.map +2 -2
  175. package/dist/packages/pill/pill.d.ts +24 -2
  176. package/dist/packages/pill/pill.js +3 -3
  177. package/dist/packages/pill/pill.js.map +2 -2
  178. package/dist/packages/select/select.d.ts +56 -12
  179. package/dist/packages/select/select.js +4 -4
  180. package/dist/packages/select/select.js.map +2 -2
  181. package/dist/packages/slider/slider.d.ts +65 -8
  182. package/dist/packages/slider/slider.js +7 -7
  183. package/dist/packages/slider/slider.js.map +3 -3
  184. package/dist/packages/slider/slider.test.js +68 -0
  185. package/dist/packages/slider-thumb/slider-thumb.d.ts +44 -6
  186. package/dist/packages/slider-thumb/slider-thumb.js +24 -23
  187. package/dist/packages/slider-thumb/slider-thumb.js.map +3 -3
  188. package/dist/packages/step/step.d.ts +8 -0
  189. package/dist/packages/step/step.js +4 -4
  190. package/dist/packages/step/step.js.map +2 -2
  191. package/dist/packages/step-indicator/step-indicator.d.ts +8 -0
  192. package/dist/packages/step-indicator/step-indicator.js.map +2 -2
  193. package/dist/packages/switch/switch.d.ts +16 -0
  194. package/dist/packages/switch/switch.js.map +2 -2
  195. package/dist/packages/tab/tab.d.ts +28 -3
  196. package/dist/packages/tab/tab.js.map +2 -2
  197. package/dist/packages/tab-panel/tab-panel.d.ts +8 -2
  198. package/dist/packages/tab-panel/tab-panel.js.map +2 -2
  199. package/dist/packages/tabs/tabs.d.ts +4 -0
  200. package/dist/packages/tabs/tabs.js.map +2 -2
  201. package/dist/packages/textarea/textarea.d.ts +52 -1
  202. package/dist/packages/textarea/textarea.js.map +2 -2
  203. package/dist/packages/textfield/textfield.d.ts +92 -4
  204. package/dist/packages/textfield/textfield.js.map +2 -2
  205. package/dist/packages/toast/toast.js +4 -4
  206. package/dist/packages/toast/toast.js.map +2 -2
  207. package/dist/packages/toast-container/toast-container.d.ts +14 -0
  208. package/dist/packages/toast-container/toast-container.js.map +2 -2
  209. package/dist/web-types.json +77 -225
  210. package/package.json +8 -3
@@ -0,0 +1,150 @@
1
+ # Toast
2
+
3
+ ## Description
4
+
5
+ Toasts are brief user feedback messages that overlay content.
6
+
7
+ ## Usage
8
+
9
+ You should not use the toast components directly. Instead use the JavaScript API exported from Warp Elements to create, update and remove toasts
10
+
11
+ <style-isolate id="toast-usage">
12
+ <w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern')">Show toast</w-button>
13
+ </style-isolate>
14
+
15
+
16
+ ```js
17
+ import { toast } from '@warp-ds/elements/toast';
18
+
19
+ const showBtn = document.getElementById("toast-btn");
20
+ showBtn.onclick = () => {
21
+ toast("Toasts are somewhat of an anti-pattern");
22
+ };
23
+ ```
24
+
25
+ ### Dismissable toast
26
+
27
+ The toast automatically closes by default, so you don't need to have a close button.
28
+
29
+ From an accessibility perspective, toasts should never contain interactive elements such as close buttons, as interactive elements should always appear in the same location as the action that triggered them.
30
+
31
+ It might be tempting to use this option and a high duration if you have a warning or error toast to "solve" the WCAG 2 success criteria 2.2.1, but please consider showing warnings and errors as a persistent [Alert](/docs/components/alert/overview) instead.
32
+
33
+ If the toast absolutely must be dismissible by the user, set the `canclose` property to `true`.
34
+
35
+ ```js
36
+ toast('message goes here', { type: 'success', canclose: true });
37
+ ```
38
+
39
+ ## Accessibility
40
+
41
+ From an accessibility perspective, toasts should never contain interactive elements, as these should always appear in the same location as the action that triggered them.
42
+
43
+ Auto-clearing toasts based on a timeout violate WCAG 2 success criteria 2.2.1, unless the information they contain is either redundant (i.e. also available elsewhere in a persistent manner) or insignificant to all people.
44
+
45
+ You are also advised to avoid putting information in a toast that cannot be re-accessed in any other way due to the impermanent nature of the current toast implementation.
46
+
47
+ Because of these points we consider the use of toasts to be somewhat of an anti-pattern, and recommend exploring alternative approaches wherever possible. That said, you may still use toasts, as long as you avoid interactive elements like links or close buttons.
48
+
49
+ ## Examples
50
+
51
+ ### Success / positive
52
+
53
+ This is the default.
54
+
55
+ <style-isolate id="toast-usage">
56
+ <w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern')">Show a success toast</w-button>
57
+ </style-isolate>
58
+
59
+ ### Warning
60
+
61
+ If the user should be warned about something, a toast is probably not the right way to do so. Consider an [Alert](/docs/components/alert/overview) instead.
62
+
63
+ A toast is easy to miss, especially on larger screens. Toasts that automatically close are also an accessibility problem if the information is not available elsewhere, or is insignificant (which shouldn't be the case for warnings).
64
+
65
+ <style-isolate id="toast-usage">
66
+ <w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern', { type: 'warning' })">Show a warning toast</w-button>
67
+ </style-isolate>
68
+
69
+ ### Error / negative
70
+
71
+ If the user should be told about an error, a toast is probably not the right way to do so. Consider an [Alert](/docs/components/alert/overview) instead.
72
+
73
+ A toast is easy to miss, especially on larger screens. Toasts that automatically close are also an accessibility problem if the information is not available elsewhere, or is insignificant (which shouldn't be the case for errors).
74
+
75
+ <style-isolate id="toast-usage">
76
+ <w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern', { type: 'error' })">Show an error toast</w-button>
77
+ </style-isolate>
78
+
79
+ ## API Documentation
80
+
81
+ ### toast
82
+
83
+ ```js
84
+ import { toast } from '@warp-ds/elements/toast';
85
+
86
+ const theToast = toast('Toasts are somewhat of an anti-pattern');
87
+ ```
88
+
89
+ Returns [ToastOptions](#toastoptions), which includes the ID you need for [updateToast](#updatetoast) and [removeToast](#removetoast).
90
+
91
+ If you can't pass the result from `toast` to where you call `updateToast` or `removeToast` you can set a known ID manually.
92
+
93
+ ```js
94
+ toast('Toasts are somewhat of an anti-pattern', {
95
+ id: 'something-unique-but-stable',
96
+ });
97
+ ```
98
+
99
+ | Parameter | Type | Summary |
100
+ | --- | --- | --- |
101
+ | message | `string` | The text content |
102
+ | options | [ToastOptions](#toastoptions) (optional) | |
103
+
104
+
105
+ ### updateToast
106
+
107
+ ```js
108
+ import { toast, updateToast } from '@warp-ds/elements/toast';
109
+
110
+ const theToast = toast('The toast function returns an ID');
111
+
112
+ updateToast(theToast.id, 'Use it to update the text');
113
+ ```
114
+
115
+ Returns [ToastOptions](#toastoptions).
116
+
117
+ | Parameter | Type | Summary |
118
+ | --- | --- | --- |
119
+ | id |  `string` | The ID of the toast you want to update |
120
+ | message | `string` | The new text content |
121
+ | options | [ToastOptions](#toastoptions) (optional) | |
122
+
123
+ ### removeToast
124
+
125
+ Toasts disappear after a set time, but if you need to remove one before that happens you can do so.
126
+
127
+ ```js
128
+ import { toast, removeToast } from '@warp-ds/elements/toast';
129
+
130
+ const theToast = toast('The toast function returns an ID');
131
+
132
+ removeToast(theToast.id);
133
+ ```
134
+
135
+ ### Types
136
+
137
+ #### ToastOptions
138
+
139
+ | Name | Type | Default | Summary |
140
+ | --- | --- | --- | --- |
141
+ | id | `string` | Random | Random generated unique ID for the toast element |
142
+ | type | [`ToastVariants`](#toastvariants) | `'success'` | Visual style of the toast |
143
+ | text | `string` | `-` | The given toast message |
144
+ | duration | `number` | `5000` | Duration of toast in milliseconds |
145
+ | canclose | `boolean` | `false` | See [Dismissable toast](#dismissable-toast) |
146
+
147
+ #### ToastVariants
148
+
149
+ `'success' | 'warning' | 'error'`
150
+
@@ -0,0 +1,31 @@
1
+ ## Usage
2
+
3
+ You should not use the toast components directly. Instead use the JavaScript API exported from Warp Elements to create, update and remove toasts
4
+
5
+ <style-isolate id="toast-usage">
6
+ <w-button id="toast-btn" onclick="toast('Toasts are somewhat of an anti-pattern')">Show toast</w-button>
7
+ </style-isolate>
8
+
9
+
10
+ ```js
11
+ import { toast } from '@warp-ds/elements/toast';
12
+
13
+ const showBtn = document.getElementById("toast-btn");
14
+ showBtn.onclick = () => {
15
+ toast("Toasts are somewhat of an anti-pattern");
16
+ };
17
+ ```
18
+
19
+ ### Dismissable toast
20
+
21
+ The toast automatically closes by default, so you don't need to have a close button.
22
+
23
+ From an accessibility perspective, toasts should never contain interactive elements such as close buttons, as interactive elements should always appear in the same location as the action that triggered them.
24
+
25
+ It might be tempting to use this option and a high duration if you have a warning or error toast to "solve" the WCAG 2 success criteria 2.2.1, but please consider showing warnings and errors as a persistent [Alert](/docs/components/alert/overview) instead.
26
+
27
+ If the toast absolutely must be dismissible by the user, set the `canclose` property to `true`.
28
+
29
+ ```js
30
+ toast('message goes here', { type: 'success', canclose: true });
31
+ ```
package/dist/index.d.ts CHANGED
@@ -32,7 +32,6 @@ import type { WarpTab } from "./packages/tab/tab.ts";
32
32
  import type { WarpTabPanel } from "./packages/tab-panel/tab-panel.ts";
33
33
  import type { WarpTabs } from "./packages/tabs/tabs.ts";
34
34
  import type { WarpTextarea } from "./packages/textarea/textarea.ts";
35
- import type { WarpToastContainer } from "./packages/toast-container/toast-container.ts";
36
35
 
37
36
  /**
38
37
  * This type can be used to create scoped tags for your components.
@@ -715,9 +714,7 @@ The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/form
715
714
 
716
715
  The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
717
716
  dayFormat?: WarpDatepicker["dayFormat"];
718
- /** Lets you control if a date in the calendar should be disabled.
719
-
720
- This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
717
+ /** */
721
718
  isDayDisabled?: WarpDatepicker["isDayDisabled"];
722
719
  /** */
723
720
  isCalendarOpen?: WarpDatepicker["isCalendarOpen"];
@@ -776,9 +773,7 @@ The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/form
776
773
 
777
774
  The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
778
775
  "prop:dayFormat"?: WarpDatepicker["dayFormat"];
779
- /** Lets you control if a date in the calendar should be disabled.
780
-
781
- This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
776
+ /** */
782
777
  "prop:isDayDisabled"?: WarpDatepicker["isDayDisabled"];
783
778
  /** */
784
779
  "prop:isCalendarOpen"?: WarpDatepicker["isCalendarOpen"];
@@ -1247,6 +1242,8 @@ export type WarpSelectProps = {
1247
1242
  name?: WarpSelect["name"];
1248
1243
  /** */
1249
1244
  value?: WarpSelect["value"];
1245
+ /** */
1246
+ _options?: WarpSelect["_options"];
1250
1247
 
1251
1248
  /** */
1252
1249
  onchange?: (e: CustomEvent) => void;
@@ -1286,6 +1283,8 @@ export type WarpSelectSolidJsProps = {
1286
1283
  /** */
1287
1284
  "prop:value"?: WarpSelect["value"];
1288
1285
  /** */
1286
+ "prop:_options"?: WarpSelect["_options"];
1287
+ /** */
1289
1288
  "on:change"?: (e: CustomEvent) => void;
1290
1289
 
1291
1290
  /** Set the innerHTML of the element */
@@ -1343,14 +1342,12 @@ export type WarpTextFieldProps = {
1343
1342
  step?: WarpTextField["step"];
1344
1343
  /** */
1345
1344
  autocomplete?: WarpTextField["autocomplete"];
1346
- /** Function to format value when the input field.
1347
-
1348
- Only active when the input field does not have focus,
1349
- similar to the accessible input masking example from Filament Group
1350
-
1351
- https://css-tricks.com/input-masking/
1352
- https://filamentgroup.github.io/politespace/demo/demo.html */
1345
+ /** */
1353
1346
  formatter?: WarpTextField["formatter"];
1347
+ /** */
1348
+ _hasPrefix?: WarpTextField["_hasPrefix"];
1349
+ /** */
1350
+ _hasSuffix?: WarpTextField["_hasSuffix"];
1354
1351
  };
1355
1352
 
1356
1353
  export type WarpTextFieldSolidJsProps = {
@@ -1402,14 +1399,12 @@ export type WarpTextFieldSolidJsProps = {
1402
1399
  "prop:step"?: WarpTextField["step"];
1403
1400
  /** */
1404
1401
  "prop:autocomplete"?: WarpTextField["autocomplete"];
1405
- /** Function to format value when the input field.
1406
-
1407
- Only active when the input field does not have focus,
1408
- similar to the accessible input masking example from Filament Group
1409
-
1410
- https://css-tricks.com/input-masking/
1411
- https://filamentgroup.github.io/politespace/demo/demo.html */
1402
+ /** */
1412
1403
  "prop:formatter"?: WarpTextField["formatter"];
1404
+ /** */
1405
+ "prop:_hasPrefix"?: WarpTextField["_hasPrefix"];
1406
+ /** */
1407
+ "prop:_hasSuffix"?: WarpTextField["_hasSuffix"];
1413
1408
 
1414
1409
  /** Set the innerHTML of the element */
1415
1410
  innerHTML?: string;
@@ -1438,6 +1433,18 @@ export type WarpSliderThumbProps = {
1438
1433
  tooltipTarget?: WarpSliderThumb["tooltipTarget"];
1439
1434
  /** */
1440
1435
  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"];
1441
1448
 
1442
1449
  /** */
1443
1450
  onthumbreset?: (e: CustomEvent) => void;
@@ -1467,6 +1474,18 @@ export type WarpSliderThumbSolidJsProps = {
1467
1474
  /** */
1468
1475
  "prop:textfield"?: WarpSliderThumb["textfield"];
1469
1476
  /** */
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
+ /** */
1470
1489
  "on:thumbreset"?: (e: CustomEvent) => void;
1471
1490
  /** */
1472
1491
  "on:slidervalidity"?: (e: CustomEvent) => void;
@@ -1512,13 +1531,15 @@ If you need to display HTML, use the `label` slot instead (f. ex. `<legend class
1512
1531
  "hidden-textfield"?: WarpSlider["hiddenTextfield"];
1513
1532
  /** */
1514
1533
  hiddenTextfield?: WarpSlider["hiddenTextfield"];
1515
- /** Formatter for the tooltip and input mask values. */
1534
+ /** */
1516
1535
  valueFormatter?: WarpSlider["valueFormatter"];
1517
- /** Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example "300+ hk" instead of "Max" in the tooltip. */
1536
+ /** */
1518
1537
  tooltipFormatter?: WarpSlider["tooltipFormatter"];
1519
- /** Formatter for the min and max labels below the range. */
1538
+ /** */
1520
1539
  labelFormatter?: WarpSlider["labelFormatter"];
1521
1540
  /** */
1541
+ fieldset?: WarpSlider["fieldset"];
1542
+ /** */
1522
1543
  _invalidMessage?: WarpSlider["_invalidMessage"];
1523
1544
  /** */
1524
1545
  _hasInternalError?: WarpSlider["_hasInternalError"];
@@ -1563,13 +1584,15 @@ If you need to display HTML, use the `label` slot instead (f. ex. `<legend class
1563
1584
  "bool:hidden-textfield"?: WarpSlider["hiddenTextfield"];
1564
1585
  /** */
1565
1586
  "prop:hiddenTextfield"?: WarpSlider["hiddenTextfield"];
1566
- /** Formatter for the tooltip and input mask values. */
1587
+ /** */
1567
1588
  "prop:valueFormatter"?: WarpSlider["valueFormatter"];
1568
- /** Replaces valueFormatter for the tooltip. Use in open-ended sliders to show for example "300+ hk" instead of "Max" in the tooltip. */
1589
+ /** */
1569
1590
  "prop:tooltipFormatter"?: WarpSlider["tooltipFormatter"];
1570
- /** Formatter for the min and max labels below the range. */
1591
+ /** */
1571
1592
  "prop:labelFormatter"?: WarpSlider["labelFormatter"];
1572
1593
  /** */
1594
+ "prop:fieldset"?: WarpSlider["fieldset"];
1595
+ /** */
1573
1596
  "prop:_invalidMessage"?: WarpSlider["_invalidMessage"];
1574
1597
  /** */
1575
1598
  "prop:_hasInternalError"?: WarpSlider["_hasInternalError"];
@@ -1673,6 +1696,10 @@ export type WarpTabProps = {
1673
1696
  over?: WarpTab["over"];
1674
1697
  /** Override tabIndex setter to set _parentTabIndex (for backwards compatibility). */
1675
1698
  tabIndex?: WarpTab["tabIndex"];
1699
+ /** */
1700
+ _parentTabIndex?: WarpTab["_parentTabIndex"];
1701
+ /** */
1702
+ _parentAriaSelected?: WarpTab["_parentAriaSelected"];
1676
1703
  };
1677
1704
 
1678
1705
  export type WarpTabSolidJsProps = {
@@ -1694,6 +1721,10 @@ export type WarpTabSolidJsProps = {
1694
1721
  "prop:over"?: WarpTab["over"];
1695
1722
  /** Override tabIndex setter to set _parentTabIndex (for backwards compatibility). */
1696
1723
  "prop:tabIndex"?: WarpTab["tabIndex"];
1724
+ /** */
1725
+ "prop:_parentTabIndex"?: WarpTab["_parentTabIndex"];
1726
+ /** */
1727
+ "prop:_parentAriaSelected"?: WarpTab["_parentAriaSelected"];
1697
1728
 
1698
1729
  /** Set the innerHTML of the element */
1699
1730
  innerHTML?: string;
@@ -1705,12 +1736,20 @@ export type WarpTabPanelProps = {
1705
1736
  /** Whether this panel is active (visible).
1706
1737
  Set by parent w-tabs via the _parentActive property. */
1707
1738
  active?: WarpTabPanel["active"];
1739
+ /** */
1740
+ _parentActive?: WarpTabPanel["_parentActive"];
1741
+ /** */
1742
+ _parentAriaLabelledBy?: WarpTabPanel["_parentAriaLabelledBy"];
1708
1743
  };
1709
1744
 
1710
1745
  export type WarpTabPanelSolidJsProps = {
1711
1746
  /** Whether this panel is active (visible).
1712
1747
  Set by parent w-tabs via the _parentActive property. */
1713
1748
  "prop:active"?: WarpTabPanel["active"];
1749
+ /** */
1750
+ "prop:_parentActive"?: WarpTabPanel["_parentActive"];
1751
+ /** */
1752
+ "prop:_parentAriaLabelledBy"?: WarpTabPanel["_parentAriaLabelledBy"];
1714
1753
 
1715
1754
  /** Set the innerHTML of the element */
1716
1755
  innerHTML?: string;
@@ -1825,15 +1864,6 @@ export type WarpTextareaSolidJsProps = {
1825
1864
  textContent?: string | number;
1826
1865
  };
1827
1866
 
1828
- export type WarpToastContainerProps = {};
1829
-
1830
- export type WarpToastContainerSolidJsProps = {
1831
- /** Set the innerHTML of the element */
1832
- innerHTML?: string;
1833
- /** Set the textContent of the element */
1834
- textContent?: string | number;
1835
- };
1836
-
1837
1867
  export type CustomElements = {
1838
1868
  /**
1839
1869
  *
@@ -2168,9 +2198,7 @@ export type CustomElements = {
2168
2198
  * - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
2169
2199
  *
2170
2200
  * The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
2171
- * - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
2172
- *
2173
- * This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
2201
+ * - `isDayDisabled`: undefined (property only)
2174
2202
  * - `isCalendarOpen`: undefined (property only)
2175
2203
  * - `navigationDate`: undefined (property only)
2176
2204
  * - `selectedDate`: undefined (property only) (readonly)
@@ -2478,6 +2506,7 @@ export type CustomElements = {
2478
2506
  * - `readonly`: Renders the field in a readonly state.
2479
2507
  * - `name`: undefined
2480
2508
  * - `value`: undefined
2509
+ * - `_options`: undefined (property only)
2481
2510
  *
2482
2511
  * ## Events
2483
2512
  *
@@ -2525,13 +2554,9 @@ export type CustomElements = {
2525
2554
  * - `name`: undefined
2526
2555
  * - `step`: undefined
2527
2556
  * - `autocomplete`: undefined
2528
- * - `formatter`: Function to format value when the input field.
2529
- *
2530
- * Only active when the input field does not have focus,
2531
- * similar to the accessible input masking example from Filament Group
2532
- *
2533
- * https://css-tricks.com/input-masking/
2534
- * https://filamentgroup.github.io/politespace/demo/demo.html (property only)
2557
+ * - `formatter`: undefined (property only)
2558
+ * - `_hasPrefix`: undefined (property only)
2559
+ * - `_hasSuffix`: undefined (property only)
2535
2560
  *
2536
2561
  * ## Methods
2537
2562
  *
@@ -2567,6 +2592,12 @@ export type CustomElements = {
2567
2592
  * - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
2568
2593
  * - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
2569
2594
  * - `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)
2570
2601
  *
2571
2602
  * ## Events
2572
2603
  *
@@ -2610,9 +2641,10 @@ export type CustomElements = {
2610
2641
  * - `step`: undefined
2611
2642
  * - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
2612
2643
  * - `hidden-textfield`/`hiddenTextfield`: undefined
2613
- * - `valueFormatter`: Formatter for the tooltip and input mask values. (property only)
2614
- * - `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)
2615
- * - `labelFormatter`: Formatter for the min and max labels below the range. (property only)
2644
+ * - `valueFormatter`: undefined (property only)
2645
+ * - `tooltipFormatter`: undefined (property only)
2646
+ * - `labelFormatter`: undefined (property only)
2647
+ * - `fieldset`: undefined (property only)
2616
2648
  * - `_invalidMessage`: undefined (property only)
2617
2649
  * - `_hasInternalError`: undefined (property only)
2618
2650
  * - `_showError`: undefined (property only)
@@ -2718,6 +2750,8 @@ export type CustomElements = {
2718
2750
  * - `over`: undefined
2719
2751
  * - `tabIndex`: Override tabIndex setter to set _parentTabIndex (for backwards compatibility). (property only)
2720
2752
  * - `_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)
2721
2755
  */
2722
2756
  "w-tab": Partial<WarpTabProps & BaseProps<WarpTab> & BaseEvents>;
2723
2757
 
@@ -2733,6 +2767,8 @@ export type CustomElements = {
2733
2767
  *
2734
2768
  * - `active`: Whether this panel is active (visible).
2735
2769
  * Set by parent w-tabs via the _parentActive property.
2770
+ * - `_parentActive`: undefined (property only)
2771
+ * - `_parentAriaLabelledBy`: undefined (property only)
2736
2772
  */
2737
2773
  "w-tab-panel": Partial<
2738
2774
  WarpTabPanelProps & BaseProps<WarpTabPanel> & BaseEvents
@@ -2799,22 +2835,6 @@ export type CustomElements = {
2799
2835
  "w-textarea": Partial<
2800
2836
  WarpTextareaProps & BaseProps<WarpTextarea> & BaseEvents
2801
2837
  >;
2802
-
2803
- /**
2804
- *
2805
- *
2806
- * ## Methods
2807
- *
2808
- * Methods that can be called to access component functionality.
2809
- *
2810
- * - `init() => void`: undefined
2811
- * - `get(id: string | number) => ToastInternal | undefined`: undefined
2812
- * - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
2813
- * - `del(id: string | number) => Promise<boolean>`: undefined
2814
- */
2815
- "w-toast-container": Partial<
2816
- WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents
2817
- >;
2818
2838
  };
2819
2839
 
2820
2840
  export type CustomElementsSolidJs = {
@@ -3184,9 +3204,7 @@ export type CustomElementsSolidJs = {
3184
3204
  * - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
3185
3205
  *
3186
3206
  * The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
3187
- * - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
3188
- *
3189
- * This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
3207
+ * - `isDayDisabled`: undefined (property only)
3190
3208
  * - `isCalendarOpen`: undefined (property only)
3191
3209
  * - `navigationDate`: undefined (property only)
3192
3210
  * - `selectedDate`: undefined (property only) (readonly)
@@ -3521,6 +3539,7 @@ export type CustomElementsSolidJs = {
3521
3539
  * - `readonly`: Renders the field in a readonly state.
3522
3540
  * - `name`: undefined
3523
3541
  * - `value`: undefined
3542
+ * - `_options`: undefined (property only)
3524
3543
  *
3525
3544
  * ## Events
3526
3545
  *
@@ -3573,13 +3592,9 @@ export type CustomElementsSolidJs = {
3573
3592
  * - `name`: undefined
3574
3593
  * - `step`: undefined
3575
3594
  * - `autocomplete`: undefined
3576
- * - `formatter`: Function to format value when the input field.
3577
- *
3578
- * Only active when the input field does not have focus,
3579
- * similar to the accessible input masking example from Filament Group
3580
- *
3581
- * https://css-tricks.com/input-masking/
3582
- * https://filamentgroup.github.io/politespace/demo/demo.html (property only)
3595
+ * - `formatter`: undefined (property only)
3596
+ * - `_hasPrefix`: undefined (property only)
3597
+ * - `_hasSuffix`: undefined (property only)
3583
3598
  *
3584
3599
  * ## Methods
3585
3600
  *
@@ -3618,6 +3633,12 @@ export type CustomElementsSolidJs = {
3618
3633
  * - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
3619
3634
  * - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
3620
3635
  * - `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)
3621
3642
  *
3622
3643
  * ## Events
3623
3644
  *
@@ -3664,9 +3685,10 @@ export type CustomElementsSolidJs = {
3664
3685
  * - `step`: undefined
3665
3686
  * - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
3666
3687
  * - `hidden-textfield`/`hiddenTextfield`: undefined
3667
- * - `valueFormatter`: Formatter for the tooltip and input mask values. (property only)
3668
- * - `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)
3669
- * - `labelFormatter`: Formatter for the min and max labels below the range. (property only)
3688
+ * - `valueFormatter`: undefined (property only)
3689
+ * - `tooltipFormatter`: undefined (property only)
3690
+ * - `labelFormatter`: undefined (property only)
3691
+ * - `fieldset`: undefined (property only)
3670
3692
  * - `_invalidMessage`: undefined (property only)
3671
3693
  * - `_hasInternalError`: undefined (property only)
3672
3694
  * - `_showError`: undefined (property only)
@@ -3787,6 +3809,8 @@ export type CustomElementsSolidJs = {
3787
3809
  * - `over`: undefined
3788
3810
  * - `tabIndex`: Override tabIndex setter to set _parentTabIndex (for backwards compatibility). (property only)
3789
3811
  * - `_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)
3790
3814
  */
3791
3815
  "w-tab": Partial<
3792
3816
  WarpTabProps & WarpTabSolidJsProps & BaseProps<WarpTab> & BaseEvents
@@ -3804,6 +3828,8 @@ export type CustomElementsSolidJs = {
3804
3828
  *
3805
3829
  * - `active`: Whether this panel is active (visible).
3806
3830
  * Set by parent w-tabs via the _parentActive property.
3831
+ * - `_parentActive`: undefined (property only)
3832
+ * - `_parentAriaLabelledBy`: undefined (property only)
3807
3833
  */
3808
3834
  "w-tab-panel": Partial<
3809
3835
  WarpTabPanelProps &
@@ -3878,25 +3904,6 @@ export type CustomElementsSolidJs = {
3878
3904
  BaseProps<WarpTextarea> &
3879
3905
  BaseEvents
3880
3906
  >;
3881
-
3882
- /**
3883
- *
3884
- *
3885
- * ## Methods
3886
- *
3887
- * Methods that can be called to access component functionality.
3888
- *
3889
- * - `init() => void`: undefined
3890
- * - `get(id: string | number) => ToastInternal | undefined`: undefined
3891
- * - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
3892
- * - `del(id: string | number) => Promise<boolean>`: undefined
3893
- */
3894
- "w-toast-container": Partial<
3895
- WarpToastContainerProps &
3896
- WarpToastContainerSolidJsProps &
3897
- BaseProps<WarpToastContainer> &
3898
- BaseEvents
3899
- >;
3900
3907
  };
3901
3908
 
3902
3909
  export type CustomCssProperties = {};
@@ -6,19 +6,33 @@ import '../icon/icon.js';
6
6
  * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)
7
7
  */
8
8
  declare class WarpAffix extends LitElement {
9
+ /**
10
+ * @summary
11
+ * @description
12
+ */
9
13
  ariaLabel: string;
10
14
  /**
11
15
  * Add this property to render a clickable Warp close icon.
12
16
  *
13
17
  * Set an `aria-label` that explains the action when using this.
14
- */
18
+
19
+ * @summary
20
+ * @description
21
+ */
15
22
  clear: boolean;
16
23
  /**
17
24
  * Add this property to render a clickable Warp search icon.
18
25
  *
19
26
  * Set an `aria-label` that explains the action when using this.
20
- */
27
+
28
+ * @summary
29
+ * @description
30
+ */
21
31
  search: boolean;
32
+ /**
33
+ * @summary
34
+ * @description
35
+ */
22
36
  label: string;
23
37
  static styles: import("lit").CSSResult[];
24
38
  /** @internal */