@warp-ds/elements 2.9.0-next.4 → 2.9.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +3346 -3296
- package/dist/docs/affix/accessibility.md +7 -0
- package/dist/docs/affix/affix.md +172 -10
- package/dist/docs/affix/api.md +26 -10
- package/dist/docs/affix/examples.md +92 -0
- package/dist/docs/affix/usage.md +47 -0
- package/dist/index.d.ts +225 -225
- package/dist/packages/affix/affix.d.ts +23 -14
- package/dist/packages/affix/affix.js +24 -11
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/affix/affix.stories.d.ts +3 -0
- package/dist/packages/affix/affix.stories.js +16 -0
- package/dist/packages/affix/affix.test.js +7 -0
- package/dist/packages/affix/locales/da/messages.d.mts +1 -0
- package/dist/packages/affix/locales/da/messages.mjs +1 -0
- package/dist/packages/affix/locales/en/messages.d.mts +1 -0
- package/dist/packages/affix/locales/en/messages.mjs +1 -0
- package/dist/packages/affix/locales/fi/messages.d.mts +1 -0
- package/dist/packages/affix/locales/fi/messages.mjs +1 -0
- package/dist/packages/affix/locales/nb/messages.d.mts +1 -0
- package/dist/packages/affix/locales/nb/messages.mjs +1 -0
- package/dist/packages/affix/locales/sv/messages.d.mts +1 -0
- package/dist/packages/affix/locales/sv/messages.mjs +1 -0
- package/dist/packages/badge/badge.react.stories.d.ts +1 -1
- package/dist/packages/box/box.react.stories.d.ts +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/card/card.react.stories.d.ts +1 -1
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
- package/dist/packages/expandable/expandable.react.stories.d.ts +1 -1
- package/dist/packages/link/link.react.stories.d.ts +1 -1
- package/dist/packages/page-indicator/page-indicator.react.stories.d.ts +1 -1
- package/dist/packages/pagination/pagination.react.stories.d.ts +1 -1
- package/dist/packages/pill/pill.react.stories.d.ts +1 -1
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.stories.d.ts +3 -0
- package/dist/packages/textfield/textfield.stories.js +45 -0
- package/dist/web-types.json +111 -82
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { WIcon } from "./packages/icon/icon.ts";
|
|
2
|
+
import type { WarpTextField } from "./packages/textfield/textfield.ts";
|
|
2
3
|
import type { WarpAffix } from "./packages/affix/affix.ts";
|
|
3
4
|
import type { WarpAlert } from "./packages/alert/alert.ts";
|
|
4
5
|
import type { WarpLink } from "./packages/link/link.ts";
|
|
@@ -22,7 +23,6 @@ import type { WarpPill } from "./packages/pill/pill.ts";
|
|
|
22
23
|
import type { WRadio } from "./packages/radio/radio.ts";
|
|
23
24
|
import type { WRadioGroup } from "./packages/radio-group/radio-group.ts";
|
|
24
25
|
import type { WarpSelect } from "./packages/select/select.ts";
|
|
25
|
-
import type { WarpTextField } from "./packages/textfield/textfield.ts";
|
|
26
26
|
import type { WarpSliderThumb } from "./packages/slider-thumb/slider-thumb.ts";
|
|
27
27
|
import type { WarpSlider } from "./packages/slider/slider.ts";
|
|
28
28
|
import type { WarpStep } from "./packages/step/step.ts";
|
|
@@ -128,6 +128,125 @@ export type WIconSolidJsProps = {
|
|
|
128
128
|
textContent?: string | number;
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
+
export type WarpTextFieldProps = {
|
|
132
|
+
/** */
|
|
133
|
+
disabled?: WarpTextField["disabled"];
|
|
134
|
+
/** */
|
|
135
|
+
invalid?: WarpTextField["invalid"];
|
|
136
|
+
/** */
|
|
137
|
+
id?: WarpTextField["id"];
|
|
138
|
+
/** */
|
|
139
|
+
label?: WarpTextField["label"];
|
|
140
|
+
/** */
|
|
141
|
+
"help-text"?: WarpTextField["helpText"];
|
|
142
|
+
/** */
|
|
143
|
+
helpText?: WarpTextField["helpText"];
|
|
144
|
+
/** */
|
|
145
|
+
size?: WarpTextField["size"];
|
|
146
|
+
/** */
|
|
147
|
+
max?: WarpTextField["max"];
|
|
148
|
+
/** */
|
|
149
|
+
min?: WarpTextField["min"];
|
|
150
|
+
/** */
|
|
151
|
+
"min-length"?: WarpTextField["minLength"];
|
|
152
|
+
/** */
|
|
153
|
+
minLength?: WarpTextField["minLength"];
|
|
154
|
+
/** */
|
|
155
|
+
"max-length"?: WarpTextField["maxLength"];
|
|
156
|
+
/** */
|
|
157
|
+
maxLength?: WarpTextField["maxLength"];
|
|
158
|
+
/** */
|
|
159
|
+
pattern?: WarpTextField["pattern"];
|
|
160
|
+
/** */
|
|
161
|
+
placeholder?: WarpTextField["placeholder"];
|
|
162
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
163
|
+
"read-only"?: WarpTextField["readOnly"];
|
|
164
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
165
|
+
readOnly?: WarpTextField["readOnly"];
|
|
166
|
+
/** */
|
|
167
|
+
readonly?: WarpTextField["readonly"];
|
|
168
|
+
/** */
|
|
169
|
+
required?: WarpTextField["required"];
|
|
170
|
+
/** */
|
|
171
|
+
type?: WarpTextField["type"];
|
|
172
|
+
/** */
|
|
173
|
+
value?: WarpTextField["value"];
|
|
174
|
+
/** */
|
|
175
|
+
name?: WarpTextField["name"];
|
|
176
|
+
/** */
|
|
177
|
+
step?: WarpTextField["step"];
|
|
178
|
+
/** */
|
|
179
|
+
autocomplete?: WarpTextField["autocomplete"];
|
|
180
|
+
/** */
|
|
181
|
+
formatter?: WarpTextField["formatter"];
|
|
182
|
+
/** */
|
|
183
|
+
_hasPrefix?: WarpTextField["_hasPrefix"];
|
|
184
|
+
/** */
|
|
185
|
+
_hasSuffix?: WarpTextField["_hasSuffix"];
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export type WarpTextFieldSolidJsProps = {
|
|
189
|
+
/** */
|
|
190
|
+
"prop:disabled"?: WarpTextField["disabled"];
|
|
191
|
+
/** */
|
|
192
|
+
"prop:invalid"?: WarpTextField["invalid"];
|
|
193
|
+
/** */
|
|
194
|
+
"prop:id"?: WarpTextField["id"];
|
|
195
|
+
/** */
|
|
196
|
+
"prop:label"?: WarpTextField["label"];
|
|
197
|
+
/** */
|
|
198
|
+
"attr:help-text"?: WarpTextField["helpText"];
|
|
199
|
+
/** */
|
|
200
|
+
"prop:helpText"?: WarpTextField["helpText"];
|
|
201
|
+
/** */
|
|
202
|
+
"prop:size"?: WarpTextField["size"];
|
|
203
|
+
/** */
|
|
204
|
+
"prop:max"?: WarpTextField["max"];
|
|
205
|
+
/** */
|
|
206
|
+
"prop:min"?: WarpTextField["min"];
|
|
207
|
+
/** */
|
|
208
|
+
"attr:min-length"?: WarpTextField["minLength"];
|
|
209
|
+
/** */
|
|
210
|
+
"prop:minLength"?: WarpTextField["minLength"];
|
|
211
|
+
/** */
|
|
212
|
+
"attr:max-length"?: WarpTextField["maxLength"];
|
|
213
|
+
/** */
|
|
214
|
+
"prop:maxLength"?: WarpTextField["maxLength"];
|
|
215
|
+
/** */
|
|
216
|
+
"prop:pattern"?: WarpTextField["pattern"];
|
|
217
|
+
/** */
|
|
218
|
+
"prop:placeholder"?: WarpTextField["placeholder"];
|
|
219
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
220
|
+
"bool:read-only"?: WarpTextField["readOnly"];
|
|
221
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
222
|
+
"prop:readOnly"?: WarpTextField["readOnly"];
|
|
223
|
+
/** */
|
|
224
|
+
"prop:readonly"?: WarpTextField["readonly"];
|
|
225
|
+
/** */
|
|
226
|
+
"prop:required"?: WarpTextField["required"];
|
|
227
|
+
/** */
|
|
228
|
+
"prop:type"?: WarpTextField["type"];
|
|
229
|
+
/** */
|
|
230
|
+
"prop:value"?: WarpTextField["value"];
|
|
231
|
+
/** */
|
|
232
|
+
"prop:name"?: WarpTextField["name"];
|
|
233
|
+
/** */
|
|
234
|
+
"prop:step"?: WarpTextField["step"];
|
|
235
|
+
/** */
|
|
236
|
+
"prop:autocomplete"?: WarpTextField["autocomplete"];
|
|
237
|
+
/** */
|
|
238
|
+
"prop:formatter"?: WarpTextField["formatter"];
|
|
239
|
+
/** */
|
|
240
|
+
"prop:_hasPrefix"?: WarpTextField["_hasPrefix"];
|
|
241
|
+
/** */
|
|
242
|
+
"prop:_hasSuffix"?: WarpTextField["_hasSuffix"];
|
|
243
|
+
|
|
244
|
+
/** Set the innerHTML of the element */
|
|
245
|
+
innerHTML?: string;
|
|
246
|
+
/** Set the textContent of the element */
|
|
247
|
+
textContent?: string | number;
|
|
248
|
+
};
|
|
249
|
+
|
|
131
250
|
export type WarpAffixProps = {
|
|
132
251
|
/** */
|
|
133
252
|
"aria-label"?: WarpAffix["ariaLabel"];
|
|
@@ -137,12 +256,12 @@ export type WarpAffixProps = {
|
|
|
137
256
|
|
|
138
257
|
Set an `aria-label` that explains the action when using this. */
|
|
139
258
|
clear?: WarpAffix["clear"];
|
|
140
|
-
/** Add this property to render a clickable Warp search icon.
|
|
141
|
-
|
|
142
|
-
Set an `aria-label` that explains the action when using this. */
|
|
259
|
+
/** Add this property to render a clickable Warp search icon. */
|
|
143
260
|
search?: WarpAffix["search"];
|
|
144
261
|
/** */
|
|
145
262
|
label?: WarpAffix["label"];
|
|
263
|
+
/** */
|
|
264
|
+
icon?: WarpAffix["icon"];
|
|
146
265
|
};
|
|
147
266
|
|
|
148
267
|
export type WarpAffixSolidJsProps = {
|
|
@@ -154,12 +273,12 @@ export type WarpAffixSolidJsProps = {
|
|
|
154
273
|
|
|
155
274
|
Set an `aria-label` that explains the action when using this. */
|
|
156
275
|
"prop:clear"?: WarpAffix["clear"];
|
|
157
|
-
/** Add this property to render a clickable Warp search icon.
|
|
158
|
-
|
|
159
|
-
Set an `aria-label` that explains the action when using this. */
|
|
276
|
+
/** Add this property to render a clickable Warp search icon. */
|
|
160
277
|
"prop:search"?: WarpAffix["search"];
|
|
161
278
|
/** */
|
|
162
279
|
"prop:label"?: WarpAffix["label"];
|
|
280
|
+
/** */
|
|
281
|
+
"prop:icon"?: WarpAffix["icon"];
|
|
163
282
|
|
|
164
283
|
/** Set the innerHTML of the element */
|
|
165
284
|
innerHTML?: string;
|
|
@@ -1293,125 +1412,6 @@ export type WarpSelectSolidJsProps = {
|
|
|
1293
1412
|
textContent?: string | number;
|
|
1294
1413
|
};
|
|
1295
1414
|
|
|
1296
|
-
export type WarpTextFieldProps = {
|
|
1297
|
-
/** */
|
|
1298
|
-
disabled?: WarpTextField["disabled"];
|
|
1299
|
-
/** */
|
|
1300
|
-
invalid?: WarpTextField["invalid"];
|
|
1301
|
-
/** */
|
|
1302
|
-
id?: WarpTextField["id"];
|
|
1303
|
-
/** */
|
|
1304
|
-
label?: WarpTextField["label"];
|
|
1305
|
-
/** */
|
|
1306
|
-
"help-text"?: WarpTextField["helpText"];
|
|
1307
|
-
/** */
|
|
1308
|
-
helpText?: WarpTextField["helpText"];
|
|
1309
|
-
/** */
|
|
1310
|
-
size?: WarpTextField["size"];
|
|
1311
|
-
/** */
|
|
1312
|
-
max?: WarpTextField["max"];
|
|
1313
|
-
/** */
|
|
1314
|
-
min?: WarpTextField["min"];
|
|
1315
|
-
/** */
|
|
1316
|
-
"min-length"?: WarpTextField["minLength"];
|
|
1317
|
-
/** */
|
|
1318
|
-
minLength?: WarpTextField["minLength"];
|
|
1319
|
-
/** */
|
|
1320
|
-
"max-length"?: WarpTextField["maxLength"];
|
|
1321
|
-
/** */
|
|
1322
|
-
maxLength?: WarpTextField["maxLength"];
|
|
1323
|
-
/** */
|
|
1324
|
-
pattern?: WarpTextField["pattern"];
|
|
1325
|
-
/** */
|
|
1326
|
-
placeholder?: WarpTextField["placeholder"];
|
|
1327
|
-
/** @deprecated Use the native readonly attribute instead. */
|
|
1328
|
-
"read-only"?: WarpTextField["readOnly"];
|
|
1329
|
-
/** @deprecated Use the native readonly attribute instead. */
|
|
1330
|
-
readOnly?: WarpTextField["readOnly"];
|
|
1331
|
-
/** */
|
|
1332
|
-
readonly?: WarpTextField["readonly"];
|
|
1333
|
-
/** */
|
|
1334
|
-
required?: WarpTextField["required"];
|
|
1335
|
-
/** */
|
|
1336
|
-
type?: WarpTextField["type"];
|
|
1337
|
-
/** */
|
|
1338
|
-
value?: WarpTextField["value"];
|
|
1339
|
-
/** */
|
|
1340
|
-
name?: WarpTextField["name"];
|
|
1341
|
-
/** */
|
|
1342
|
-
step?: WarpTextField["step"];
|
|
1343
|
-
/** */
|
|
1344
|
-
autocomplete?: WarpTextField["autocomplete"];
|
|
1345
|
-
/** */
|
|
1346
|
-
formatter?: WarpTextField["formatter"];
|
|
1347
|
-
/** */
|
|
1348
|
-
_hasPrefix?: WarpTextField["_hasPrefix"];
|
|
1349
|
-
/** */
|
|
1350
|
-
_hasSuffix?: WarpTextField["_hasSuffix"];
|
|
1351
|
-
};
|
|
1352
|
-
|
|
1353
|
-
export type WarpTextFieldSolidJsProps = {
|
|
1354
|
-
/** */
|
|
1355
|
-
"prop:disabled"?: WarpTextField["disabled"];
|
|
1356
|
-
/** */
|
|
1357
|
-
"prop:invalid"?: WarpTextField["invalid"];
|
|
1358
|
-
/** */
|
|
1359
|
-
"prop:id"?: WarpTextField["id"];
|
|
1360
|
-
/** */
|
|
1361
|
-
"prop:label"?: WarpTextField["label"];
|
|
1362
|
-
/** */
|
|
1363
|
-
"attr:help-text"?: WarpTextField["helpText"];
|
|
1364
|
-
/** */
|
|
1365
|
-
"prop:helpText"?: WarpTextField["helpText"];
|
|
1366
|
-
/** */
|
|
1367
|
-
"prop:size"?: WarpTextField["size"];
|
|
1368
|
-
/** */
|
|
1369
|
-
"prop:max"?: WarpTextField["max"];
|
|
1370
|
-
/** */
|
|
1371
|
-
"prop:min"?: WarpTextField["min"];
|
|
1372
|
-
/** */
|
|
1373
|
-
"attr:min-length"?: WarpTextField["minLength"];
|
|
1374
|
-
/** */
|
|
1375
|
-
"prop:minLength"?: WarpTextField["minLength"];
|
|
1376
|
-
/** */
|
|
1377
|
-
"attr:max-length"?: WarpTextField["maxLength"];
|
|
1378
|
-
/** */
|
|
1379
|
-
"prop:maxLength"?: WarpTextField["maxLength"];
|
|
1380
|
-
/** */
|
|
1381
|
-
"prop:pattern"?: WarpTextField["pattern"];
|
|
1382
|
-
/** */
|
|
1383
|
-
"prop:placeholder"?: WarpTextField["placeholder"];
|
|
1384
|
-
/** @deprecated Use the native readonly attribute instead. */
|
|
1385
|
-
"bool:read-only"?: WarpTextField["readOnly"];
|
|
1386
|
-
/** @deprecated Use the native readonly attribute instead. */
|
|
1387
|
-
"prop:readOnly"?: WarpTextField["readOnly"];
|
|
1388
|
-
/** */
|
|
1389
|
-
"prop:readonly"?: WarpTextField["readonly"];
|
|
1390
|
-
/** */
|
|
1391
|
-
"prop:required"?: WarpTextField["required"];
|
|
1392
|
-
/** */
|
|
1393
|
-
"prop:type"?: WarpTextField["type"];
|
|
1394
|
-
/** */
|
|
1395
|
-
"prop:value"?: WarpTextField["value"];
|
|
1396
|
-
/** */
|
|
1397
|
-
"prop:name"?: WarpTextField["name"];
|
|
1398
|
-
/** */
|
|
1399
|
-
"prop:step"?: WarpTextField["step"];
|
|
1400
|
-
/** */
|
|
1401
|
-
"prop:autocomplete"?: WarpTextField["autocomplete"];
|
|
1402
|
-
/** */
|
|
1403
|
-
"prop:formatter"?: WarpTextField["formatter"];
|
|
1404
|
-
/** */
|
|
1405
|
-
"prop:_hasPrefix"?: WarpTextField["_hasPrefix"];
|
|
1406
|
-
/** */
|
|
1407
|
-
"prop:_hasSuffix"?: WarpTextField["_hasSuffix"];
|
|
1408
|
-
|
|
1409
|
-
/** Set the innerHTML of the element */
|
|
1410
|
-
innerHTML?: string;
|
|
1411
|
-
/** Set the textContent of the element */
|
|
1412
|
-
textContent?: string | number;
|
|
1413
|
-
};
|
|
1414
|
-
|
|
1415
1415
|
export type WarpSliderThumbProps = {
|
|
1416
1416
|
/** */
|
|
1417
1417
|
"aria-label"?: WarpSliderThumb["ariaLabel"];
|
|
@@ -1878,6 +1878,52 @@ export type CustomElements = {
|
|
|
1878
1878
|
*/
|
|
1879
1879
|
"w-icon": Partial<WIconProps & BaseProps<WIcon> & BaseEvents>;
|
|
1880
1880
|
|
|
1881
|
+
/**
|
|
1882
|
+
* A single line text input element.
|
|
1883
|
+
*
|
|
1884
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
1885
|
+
*
|
|
1886
|
+
* ## Attributes & Properties
|
|
1887
|
+
*
|
|
1888
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1889
|
+
*
|
|
1890
|
+
* - `disabled`: undefined
|
|
1891
|
+
* - `invalid`: undefined
|
|
1892
|
+
* - `id`: undefined
|
|
1893
|
+
* - `label`: undefined
|
|
1894
|
+
* - `help-text`/`helpText`: undefined
|
|
1895
|
+
* - `size`: undefined
|
|
1896
|
+
* - `max`: undefined
|
|
1897
|
+
* - `min`: undefined
|
|
1898
|
+
* - `min-length`/`minLength`: undefined
|
|
1899
|
+
* - `max-length`/`maxLength`: undefined
|
|
1900
|
+
* - `pattern`: undefined
|
|
1901
|
+
* - `placeholder`: undefined
|
|
1902
|
+
* - `read-only`/`readOnly`: undefined
|
|
1903
|
+
* - `readonly`: undefined
|
|
1904
|
+
* - `required`: undefined
|
|
1905
|
+
* - `type`: undefined
|
|
1906
|
+
* - `value`: undefined
|
|
1907
|
+
* - `name`: undefined
|
|
1908
|
+
* - `step`: undefined
|
|
1909
|
+
* - `autocomplete`: undefined
|
|
1910
|
+
* - `formatter`: undefined (property only)
|
|
1911
|
+
* - `_hasPrefix`: undefined (property only)
|
|
1912
|
+
* - `_hasSuffix`: undefined (property only)
|
|
1913
|
+
*
|
|
1914
|
+
* ## Methods
|
|
1915
|
+
*
|
|
1916
|
+
* Methods that can be called to access component functionality.
|
|
1917
|
+
*
|
|
1918
|
+
* - `resetFormControl() => void`: undefined
|
|
1919
|
+
* - `handler(e: Event) => void`: undefined
|
|
1920
|
+
* - `prefixSlotChange() => void`: undefined
|
|
1921
|
+
* - `suffixSlotChange() => void`: undefined
|
|
1922
|
+
*/
|
|
1923
|
+
"w-textfield": Partial<
|
|
1924
|
+
WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents
|
|
1925
|
+
>;
|
|
1926
|
+
|
|
1881
1927
|
/**
|
|
1882
1928
|
* This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
|
|
1883
1929
|
*
|
|
@@ -1892,9 +1938,9 @@ export type CustomElements = {
|
|
|
1892
1938
|
*
|
|
1893
1939
|
* Set an `aria-label` that explains the action when using this.
|
|
1894
1940
|
* - `search`: Add this property to render a clickable Warp search icon.
|
|
1895
|
-
*
|
|
1896
|
-
* Set an `aria-label` that explains the action when using this.
|
|
1897
1941
|
* - `label`: undefined
|
|
1942
|
+
* - `icon`: undefined
|
|
1943
|
+
* - `_icon`: undefined (property only) (readonly)
|
|
1898
1944
|
*/
|
|
1899
1945
|
"w-affix": Partial<WarpAffixProps & BaseProps<WarpAffix> & BaseEvents>;
|
|
1900
1946
|
|
|
@@ -2525,52 +2571,6 @@ export type CustomElements = {
|
|
|
2525
2571
|
*/
|
|
2526
2572
|
"w-select": Partial<WarpSelectProps & BaseProps<WarpSelect> & BaseEvents>;
|
|
2527
2573
|
|
|
2528
|
-
/**
|
|
2529
|
-
* A single line text input element.
|
|
2530
|
-
*
|
|
2531
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
2532
|
-
*
|
|
2533
|
-
* ## Attributes & Properties
|
|
2534
|
-
*
|
|
2535
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2536
|
-
*
|
|
2537
|
-
* - `disabled`: undefined
|
|
2538
|
-
* - `invalid`: undefined
|
|
2539
|
-
* - `id`: undefined
|
|
2540
|
-
* - `label`: undefined
|
|
2541
|
-
* - `help-text`/`helpText`: undefined
|
|
2542
|
-
* - `size`: undefined
|
|
2543
|
-
* - `max`: undefined
|
|
2544
|
-
* - `min`: undefined
|
|
2545
|
-
* - `min-length`/`minLength`: undefined
|
|
2546
|
-
* - `max-length`/`maxLength`: undefined
|
|
2547
|
-
* - `pattern`: undefined
|
|
2548
|
-
* - `placeholder`: undefined
|
|
2549
|
-
* - `read-only`/`readOnly`: undefined
|
|
2550
|
-
* - `readonly`: undefined
|
|
2551
|
-
* - `required`: undefined
|
|
2552
|
-
* - `type`: undefined
|
|
2553
|
-
* - `value`: undefined
|
|
2554
|
-
* - `name`: undefined
|
|
2555
|
-
* - `step`: undefined
|
|
2556
|
-
* - `autocomplete`: undefined
|
|
2557
|
-
* - `formatter`: undefined (property only)
|
|
2558
|
-
* - `_hasPrefix`: undefined (property only)
|
|
2559
|
-
* - `_hasSuffix`: undefined (property only)
|
|
2560
|
-
*
|
|
2561
|
-
* ## Methods
|
|
2562
|
-
*
|
|
2563
|
-
* Methods that can be called to access component functionality.
|
|
2564
|
-
*
|
|
2565
|
-
* - `resetFormControl() => void`: undefined
|
|
2566
|
-
* - `handler(e: Event) => void`: undefined
|
|
2567
|
-
* - `prefixSlotChange() => void`: undefined
|
|
2568
|
-
* - `suffixSlotChange() => void`: undefined
|
|
2569
|
-
*/
|
|
2570
|
-
"w-textfield": Partial<
|
|
2571
|
-
WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents
|
|
2572
|
-
>;
|
|
2573
|
-
|
|
2574
2574
|
/**
|
|
2575
2575
|
* Component to place inside a `<w-slider>`.
|
|
2576
2576
|
*
|
|
@@ -2853,6 +2853,55 @@ export type CustomElementsSolidJs = {
|
|
|
2853
2853
|
WIconProps & WIconSolidJsProps & BaseProps<WIcon> & BaseEvents
|
|
2854
2854
|
>;
|
|
2855
2855
|
|
|
2856
|
+
/**
|
|
2857
|
+
* A single line text input element.
|
|
2858
|
+
*
|
|
2859
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
2860
|
+
*
|
|
2861
|
+
* ## Attributes & Properties
|
|
2862
|
+
*
|
|
2863
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2864
|
+
*
|
|
2865
|
+
* - `disabled`: undefined
|
|
2866
|
+
* - `invalid`: undefined
|
|
2867
|
+
* - `id`: undefined
|
|
2868
|
+
* - `label`: undefined
|
|
2869
|
+
* - `help-text`/`helpText`: undefined
|
|
2870
|
+
* - `size`: undefined
|
|
2871
|
+
* - `max`: undefined
|
|
2872
|
+
* - `min`: undefined
|
|
2873
|
+
* - `min-length`/`minLength`: undefined
|
|
2874
|
+
* - `max-length`/`maxLength`: undefined
|
|
2875
|
+
* - `pattern`: undefined
|
|
2876
|
+
* - `placeholder`: undefined
|
|
2877
|
+
* - `read-only`/`readOnly`: undefined
|
|
2878
|
+
* - `readonly`: undefined
|
|
2879
|
+
* - `required`: undefined
|
|
2880
|
+
* - `type`: undefined
|
|
2881
|
+
* - `value`: undefined
|
|
2882
|
+
* - `name`: undefined
|
|
2883
|
+
* - `step`: undefined
|
|
2884
|
+
* - `autocomplete`: undefined
|
|
2885
|
+
* - `formatter`: undefined (property only)
|
|
2886
|
+
* - `_hasPrefix`: undefined (property only)
|
|
2887
|
+
* - `_hasSuffix`: undefined (property only)
|
|
2888
|
+
*
|
|
2889
|
+
* ## Methods
|
|
2890
|
+
*
|
|
2891
|
+
* Methods that can be called to access component functionality.
|
|
2892
|
+
*
|
|
2893
|
+
* - `resetFormControl() => void`: undefined
|
|
2894
|
+
* - `handler(e: Event) => void`: undefined
|
|
2895
|
+
* - `prefixSlotChange() => void`: undefined
|
|
2896
|
+
* - `suffixSlotChange() => void`: undefined
|
|
2897
|
+
*/
|
|
2898
|
+
"w-textfield": Partial<
|
|
2899
|
+
WarpTextFieldProps &
|
|
2900
|
+
WarpTextFieldSolidJsProps &
|
|
2901
|
+
BaseProps<WarpTextField> &
|
|
2902
|
+
BaseEvents
|
|
2903
|
+
>;
|
|
2904
|
+
|
|
2856
2905
|
/**
|
|
2857
2906
|
* This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
|
|
2858
2907
|
*
|
|
@@ -2867,9 +2916,9 @@ export type CustomElementsSolidJs = {
|
|
|
2867
2916
|
*
|
|
2868
2917
|
* Set an `aria-label` that explains the action when using this.
|
|
2869
2918
|
* - `search`: Add this property to render a clickable Warp search icon.
|
|
2870
|
-
*
|
|
2871
|
-
* Set an `aria-label` that explains the action when using this.
|
|
2872
2919
|
* - `label`: undefined
|
|
2920
|
+
* - `icon`: undefined
|
|
2921
|
+
* - `_icon`: undefined (property only) (readonly)
|
|
2873
2922
|
*/
|
|
2874
2923
|
"w-affix": Partial<
|
|
2875
2924
|
WarpAffixProps & WarpAffixSolidJsProps & BaseProps<WarpAffix> & BaseEvents
|
|
@@ -3563,55 +3612,6 @@ export type CustomElementsSolidJs = {
|
|
|
3563
3612
|
BaseEvents
|
|
3564
3613
|
>;
|
|
3565
3614
|
|
|
3566
|
-
/**
|
|
3567
|
-
* A single line text input element.
|
|
3568
|
-
*
|
|
3569
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
3570
|
-
*
|
|
3571
|
-
* ## Attributes & Properties
|
|
3572
|
-
*
|
|
3573
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3574
|
-
*
|
|
3575
|
-
* - `disabled`: undefined
|
|
3576
|
-
* - `invalid`: undefined
|
|
3577
|
-
* - `id`: undefined
|
|
3578
|
-
* - `label`: undefined
|
|
3579
|
-
* - `help-text`/`helpText`: undefined
|
|
3580
|
-
* - `size`: undefined
|
|
3581
|
-
* - `max`: undefined
|
|
3582
|
-
* - `min`: undefined
|
|
3583
|
-
* - `min-length`/`minLength`: undefined
|
|
3584
|
-
* - `max-length`/`maxLength`: undefined
|
|
3585
|
-
* - `pattern`: undefined
|
|
3586
|
-
* - `placeholder`: undefined
|
|
3587
|
-
* - `read-only`/`readOnly`: undefined
|
|
3588
|
-
* - `readonly`: undefined
|
|
3589
|
-
* - `required`: undefined
|
|
3590
|
-
* - `type`: undefined
|
|
3591
|
-
* - `value`: undefined
|
|
3592
|
-
* - `name`: undefined
|
|
3593
|
-
* - `step`: undefined
|
|
3594
|
-
* - `autocomplete`: undefined
|
|
3595
|
-
* - `formatter`: undefined (property only)
|
|
3596
|
-
* - `_hasPrefix`: undefined (property only)
|
|
3597
|
-
* - `_hasSuffix`: undefined (property only)
|
|
3598
|
-
*
|
|
3599
|
-
* ## Methods
|
|
3600
|
-
*
|
|
3601
|
-
* Methods that can be called to access component functionality.
|
|
3602
|
-
*
|
|
3603
|
-
* - `resetFormControl() => void`: undefined
|
|
3604
|
-
* - `handler(e: Event) => void`: undefined
|
|
3605
|
-
* - `prefixSlotChange() => void`: undefined
|
|
3606
|
-
* - `suffixSlotChange() => void`: undefined
|
|
3607
|
-
*/
|
|
3608
|
-
"w-textfield": Partial<
|
|
3609
|
-
WarpTextFieldProps &
|
|
3610
|
-
WarpTextFieldSolidJsProps &
|
|
3611
|
-
BaseProps<WarpTextField> &
|
|
3612
|
-
BaseEvents
|
|
3613
|
-
>;
|
|
3614
|
-
|
|
3615
3615
|
/**
|
|
3616
3616
|
* Component to place inside a `<w-slider>`.
|
|
3617
3617
|
*
|
|
@@ -1,39 +1,43 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import '../icon/icon.js';
|
|
3
|
+
declare const WarpAffix_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
|
|
3
4
|
/**
|
|
4
5
|
* This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
|
|
5
6
|
*
|
|
6
7
|
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)
|
|
7
8
|
*/
|
|
8
|
-
declare class WarpAffix extends
|
|
9
|
+
declare class WarpAffix extends WarpAffix_base {
|
|
9
10
|
/**
|
|
10
|
-
* @summary
|
|
11
|
-
* @description
|
|
11
|
+
* @summary Accessible label for icon-button variants.
|
|
12
|
+
* @description Used to override the default `aria-label`s for the internal button when `search` or `clear` is enabled.
|
|
12
13
|
*/
|
|
13
|
-
ariaLabel: string;
|
|
14
|
+
ariaLabel: string | null;
|
|
14
15
|
/**
|
|
15
16
|
* Add this property to render a clickable Warp close icon.
|
|
16
17
|
*
|
|
17
18
|
* Set an `aria-label` that explains the action when using this.
|
|
18
|
-
|
|
19
|
-
* @summary
|
|
20
|
-
* @description
|
|
19
|
+
*
|
|
20
|
+
* @summary Renders a clear icon button.
|
|
21
|
+
* @description Shows a clickable close icon meant for reset/clear actions, typically in a suffix slot.
|
|
21
22
|
*/
|
|
22
23
|
clear: boolean;
|
|
23
24
|
/**
|
|
24
25
|
* Add this property to render a clickable Warp search icon.
|
|
25
26
|
*
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
* @summary
|
|
29
|
-
* @description
|
|
27
|
+
* @summary Renders a search icon button.
|
|
28
|
+
* @description Shows a clickable search icon, typically in a prefix slot for search fields.
|
|
30
29
|
*/
|
|
31
30
|
search: boolean;
|
|
32
31
|
/**
|
|
33
|
-
* @summary
|
|
34
|
-
* @description
|
|
32
|
+
* @summary Text label shown as prefix/suffix content.
|
|
33
|
+
* @description Displays plain text such as a currency or unit label (for example `kr` or `%`) instead of an icon button.
|
|
35
34
|
*/
|
|
36
35
|
label: string;
|
|
36
|
+
/**
|
|
37
|
+
* @summary Icon name rendered as prefix/suffix content.
|
|
38
|
+
* @description Displays a non-interactive `w-icon` in the affix area using the provided icon name (for example `Search` or `Close`) instead of text.
|
|
39
|
+
*/
|
|
40
|
+
icon: string | null;
|
|
37
41
|
static styles: import("lit").CSSResult[];
|
|
38
42
|
/** @internal */
|
|
39
43
|
get _classBase(): {
|
|
@@ -45,13 +49,18 @@ declare class WarpAffix extends LitElement {
|
|
|
45
49
|
/** @internal */
|
|
46
50
|
get _classes(): string;
|
|
47
51
|
/** @internal */
|
|
52
|
+
resetContainingTextField(e: Event): void;
|
|
53
|
+
/** @internal */
|
|
54
|
+
submitContainingForm(e: Event): void;
|
|
55
|
+
/** @internal */
|
|
48
56
|
get _searchButton(): import("lit").TemplateResult<1>;
|
|
49
57
|
/** @internal */
|
|
50
58
|
get _clearButton(): import("lit").TemplateResult<1>;
|
|
59
|
+
get _icon(): "" | import("lit").TemplateResult<1>;
|
|
51
60
|
/** @internal */
|
|
52
61
|
get _text(): import("lit").TemplateResult<1>;
|
|
53
62
|
/** @internal */
|
|
54
|
-
get _markup(): import("lit").TemplateResult<1>;
|
|
63
|
+
get _markup(): "" | import("lit").TemplateResult<1>;
|
|
55
64
|
render(): import("lit").TemplateResult<1>;
|
|
56
65
|
}
|
|
57
66
|
export { WarpAffix };
|