@warp-ds/elements 2.8.0-next.2 → 2.8.0-next.3
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 +4097 -3178
- package/dist/index.d.ts +1053 -832
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/radio/base-element.d.ts +46 -0
- package/dist/packages/radio/base-element.js +100 -0
- package/dist/packages/radio/custom-error-validator.d.ts +6 -0
- package/dist/packages/radio/custom-error-validator.js +22 -0
- package/dist/packages/radio/form-associated-element.d.ts +103 -0
- package/dist/packages/radio/form-associated-element.js +282 -0
- package/dist/packages/radio/host-styles.d.ts +1 -0
- package/dist/packages/radio/host-styles.js +12 -0
- package/dist/packages/radio/invalid.d.ts +8 -0
- package/dist/packages/radio/invalid.js +5 -0
- package/dist/packages/radio/radio-styles.d.ts +1 -0
- package/dist/packages/radio/radio-styles.js +148 -0
- package/dist/packages/radio/radio.a11y.test.d.ts +2 -0
- package/dist/packages/radio/radio.a11y.test.js +81 -0
- package/dist/packages/radio/radio.d.ts +53 -0
- package/dist/packages/radio/radio.js +2602 -0
- package/dist/packages/radio/radio.js.map +7 -0
- package/dist/packages/radio/radio.react.stories.d.ts +9 -0
- package/dist/packages/radio/radio.react.stories.js +10 -0
- package/dist/packages/radio/radio.stories.d.ts +32 -0
- package/dist/packages/radio/radio.stories.js +275 -0
- package/dist/packages/radio/radio.test.d.ts +1 -0
- package/dist/packages/radio/radio.test.js +185 -0
- package/dist/packages/radio/react.d.ts +2 -0
- package/dist/packages/radio/react.js +11 -0
- package/dist/packages/radio/required-validator.d.ts +11 -0
- package/dist/packages/radio/required-validator.js +34 -0
- package/dist/packages/radio/slot.d.ts +20 -0
- package/dist/packages/radio/slot.js +71 -0
- package/dist/packages/radio/watch.d.ts +26 -0
- package/dist/packages/radio/watch.js +39 -0
- package/dist/packages/radio-group/locales/da/messages.d.mts +1 -0
- package/dist/packages/radio-group/locales/da/messages.mjs +1 -0
- package/dist/packages/radio-group/locales/en/messages.d.mts +1 -0
- package/dist/packages/radio-group/locales/en/messages.mjs +1 -0
- package/dist/packages/radio-group/locales/fi/messages.d.mts +1 -0
- package/dist/packages/radio-group/locales/fi/messages.mjs +1 -0
- package/dist/packages/radio-group/locales/nb/messages.d.mts +1 -0
- package/dist/packages/radio-group/locales/nb/messages.mjs +1 -0
- package/dist/packages/radio-group/locales/sv/messages.d.mts +1 -0
- package/dist/packages/radio-group/locales/sv/messages.mjs +1 -0
- package/dist/packages/radio-group/radio-group-styles.d.ts +1 -0
- package/dist/packages/radio-group/radio-group-styles.js +61 -0
- package/dist/packages/radio-group/radio-group.a11y.test.d.ts +2 -0
- package/dist/packages/radio-group/radio-group.a11y.test.js +118 -0
- package/dist/packages/radio-group/radio-group.d.ts +88 -0
- package/dist/packages/radio-group/radio-group.js +2704 -0
- package/dist/packages/radio-group/radio-group.js.map +7 -0
- package/dist/packages/radio-group/radio-group.test.d.ts +2 -0
- package/dist/packages/radio-group/radio-group.test.js +392 -0
- package/dist/packages/radio-group/react.d.ts +7 -0
- package/dist/packages/radio-group/react.js +17 -0
- 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/web-types.json +579 -398
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ import type { WarpBadge } from "./packages/badge/badge.ts";
|
|
|
8
8
|
import type { WarpBox } from "./packages/box/box.ts";
|
|
9
9
|
import type { WarpBreadcrumbs } from "./packages/breadcrumbs/breadcrumbs.ts";
|
|
10
10
|
import type { WarpCard } from "./packages/card/card.ts";
|
|
11
|
+
import type { WCheckbox } from "./packages/checkbox/checkbox.ts";
|
|
12
|
+
import type { WCheckboxGroup } from "./packages/checkbox-group/checkbox-group.ts";
|
|
11
13
|
import type { WarpCombobox } from "./packages/combobox/combobox.ts";
|
|
12
14
|
import type { WarpDatepicker } from "./packages/datepicker/datepicker.ts";
|
|
13
15
|
import type { WarpExpandable } from "./packages/expandable/expandable.ts";
|
|
@@ -17,7 +19,12 @@ import type { ModalHeader } from "./packages/modal-header/modal-header.ts";
|
|
|
17
19
|
import type { WarpPageIndicator } from "./packages/page-indicator/page-indicator.ts";
|
|
18
20
|
import type { WarpPagination } from "./packages/pagination/pagination.ts";
|
|
19
21
|
import type { WarpPill } from "./packages/pill/pill.ts";
|
|
22
|
+
import type { WRadio } from "./packages/radio/radio.ts";
|
|
23
|
+
import type { WRadioGroup } from "./packages/radio-group/radio-group.ts";
|
|
20
24
|
import type { WarpSelect } from "./packages/select/select.ts";
|
|
25
|
+
import type { WarpTextField } from "./packages/textfield/textfield.ts";
|
|
26
|
+
import type { WarpSliderThumb } from "./packages/slider-thumb/slider-thumb.ts";
|
|
27
|
+
import type { WarpSlider } from "./packages/slider/slider.ts";
|
|
21
28
|
import type { WarpStep } from "./packages/step/step.ts";
|
|
22
29
|
import type { WarpStepIndicator } from "./packages/step-indicator/step-indicator.ts";
|
|
23
30
|
import type { WarpSwitch } from "./packages/switch/switch.ts";
|
|
@@ -25,12 +32,7 @@ import type { WarpTab } from "./packages/tab/tab.ts";
|
|
|
25
32
|
import type { WarpTabPanel } from "./packages/tab-panel/tab-panel.ts";
|
|
26
33
|
import type { WarpTabs } from "./packages/tabs/tabs.ts";
|
|
27
34
|
import type { WarpTextarea } from "./packages/textarea/textarea.ts";
|
|
28
|
-
import type { WarpTextField } from "./packages/textfield/textfield.ts";
|
|
29
35
|
import type { WarpToastContainer } from "./packages/toast-container/toast-container.ts";
|
|
30
|
-
import type { WCheckbox } from "./packages/checkbox/checkbox.ts";
|
|
31
|
-
import type { WCheckboxGroup } from "./packages/checkbox-group/checkbox-group.ts";
|
|
32
|
-
import type { WarpSliderThumb } from "./packages/slider-thumb/slider-thumb.ts";
|
|
33
|
-
import type { WarpSlider } from "./packages/slider/slider.ts";
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
38
|
* This type can be used to create scoped tags for your components.
|
|
@@ -494,6 +496,93 @@ export type WarpCardSolidJsProps = {
|
|
|
494
496
|
textContent?: string | number;
|
|
495
497
|
};
|
|
496
498
|
|
|
499
|
+
export type WCheckboxProps = {
|
|
500
|
+
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
501
|
+
name?: WCheckbox["name"];
|
|
502
|
+
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
503
|
+
value?: WCheckbox["value"];
|
|
504
|
+
/** Draws the checkbox in an indeterminate state. */
|
|
505
|
+
indeterminate?: WCheckbox["indeterminate"];
|
|
506
|
+
/** Draws the checkbox in a checked state (reflected to attribute). */
|
|
507
|
+
checked?: WCheckbox["checked"];
|
|
508
|
+
/** Disables the checkbox. */
|
|
509
|
+
disabled?: WCheckbox["disabled"];
|
|
510
|
+
/** Makes the checkbox a required field. */
|
|
511
|
+
required?: WCheckbox["required"];
|
|
512
|
+
/** Draws the checkbox in an invalid state. */
|
|
513
|
+
invalid?: WCheckbox["invalid"];
|
|
514
|
+
/** */
|
|
515
|
+
input?: WCheckbox["input"];
|
|
516
|
+
|
|
517
|
+
/** */
|
|
518
|
+
onchange?: (e: Event) => void;
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
export type WCheckboxSolidJsProps = {
|
|
522
|
+
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
523
|
+
"prop:name"?: WCheckbox["name"];
|
|
524
|
+
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
525
|
+
"prop:value"?: WCheckbox["value"];
|
|
526
|
+
/** Draws the checkbox in an indeterminate state. */
|
|
527
|
+
"prop:indeterminate"?: WCheckbox["indeterminate"];
|
|
528
|
+
/** Draws the checkbox in a checked state (reflected to attribute). */
|
|
529
|
+
"prop:checked"?: WCheckbox["checked"];
|
|
530
|
+
/** Disables the checkbox. */
|
|
531
|
+
"prop:disabled"?: WCheckbox["disabled"];
|
|
532
|
+
/** Makes the checkbox a required field. */
|
|
533
|
+
"prop:required"?: WCheckbox["required"];
|
|
534
|
+
/** Draws the checkbox in an invalid state. */
|
|
535
|
+
"prop:invalid"?: WCheckbox["invalid"];
|
|
536
|
+
/** */
|
|
537
|
+
"prop:input"?: WCheckbox["input"];
|
|
538
|
+
/** */
|
|
539
|
+
"on:change"?: (e: Event) => void;
|
|
540
|
+
|
|
541
|
+
/** Set the innerHTML of the element */
|
|
542
|
+
innerHTML?: string;
|
|
543
|
+
/** Set the textContent of the element */
|
|
544
|
+
textContent?: string | number;
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
export type WCheckboxGroupProps = {
|
|
548
|
+
/** The group label displayed above the checkboxes. */
|
|
549
|
+
label?: WCheckboxGroup["label"];
|
|
550
|
+
/** The name applied to child checkboxes when they do not provide one. */
|
|
551
|
+
name?: WCheckboxGroup["name"];
|
|
552
|
+
/** Whether to show optional text next to the label. */
|
|
553
|
+
optional?: WCheckboxGroup["optional"];
|
|
554
|
+
/** */
|
|
555
|
+
"help-text"?: WCheckboxGroup["helpText"];
|
|
556
|
+
/** */
|
|
557
|
+
helpText?: WCheckboxGroup["helpText"];
|
|
558
|
+
/** Makes the checkbox group required. */
|
|
559
|
+
required?: WCheckboxGroup["required"];
|
|
560
|
+
/** Marks the checkbox group as invalid. */
|
|
561
|
+
invalid?: WCheckboxGroup["invalid"];
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
export type WCheckboxGroupSolidJsProps = {
|
|
565
|
+
/** The group label displayed above the checkboxes. */
|
|
566
|
+
"prop:label"?: WCheckboxGroup["label"];
|
|
567
|
+
/** The name applied to child checkboxes when they do not provide one. */
|
|
568
|
+
"prop:name"?: WCheckboxGroup["name"];
|
|
569
|
+
/** Whether to show optional text next to the label. */
|
|
570
|
+
"prop:optional"?: WCheckboxGroup["optional"];
|
|
571
|
+
/** */
|
|
572
|
+
"attr:help-text"?: WCheckboxGroup["helpText"];
|
|
573
|
+
/** */
|
|
574
|
+
"prop:helpText"?: WCheckboxGroup["helpText"];
|
|
575
|
+
/** Makes the checkbox group required. */
|
|
576
|
+
"prop:required"?: WCheckboxGroup["required"];
|
|
577
|
+
/** Marks the checkbox group as invalid. */
|
|
578
|
+
"prop:invalid"?: WCheckboxGroup["invalid"];
|
|
579
|
+
|
|
580
|
+
/** Set the innerHTML of the element */
|
|
581
|
+
innerHTML?: string;
|
|
582
|
+
/** Set the textContent of the element */
|
|
583
|
+
textContent?: string | number;
|
|
584
|
+
};
|
|
585
|
+
|
|
497
586
|
export type WarpComboboxProps = {
|
|
498
587
|
/** The available options to select from */
|
|
499
588
|
options?: WarpCombobox["options"];
|
|
@@ -1023,6 +1112,90 @@ export type WarpPillSolidJsProps = {
|
|
|
1023
1112
|
textContent?: string | number;
|
|
1024
1113
|
};
|
|
1025
1114
|
|
|
1115
|
+
export type WRadioProps = {
|
|
1116
|
+
/** The name of the radio, submitted as a name/value pair with form data. */
|
|
1117
|
+
name?: WRadio["name"];
|
|
1118
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
1119
|
+
value?: WRadio["value"];
|
|
1120
|
+
/** Draws the radio in a checked state (reflected to attribute). */
|
|
1121
|
+
checked?: WRadio["checked"];
|
|
1122
|
+
/** Disables the radio. */
|
|
1123
|
+
disabled?: WRadio["disabled"];
|
|
1124
|
+
/** Makes the radio a required field. */
|
|
1125
|
+
required?: WRadio["required"];
|
|
1126
|
+
/** Draws the radio in an invalid state. */
|
|
1127
|
+
invalid?: WRadio["invalid"];
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
export type WRadioSolidJsProps = {
|
|
1131
|
+
/** The name of the radio, submitted as a name/value pair with form data. */
|
|
1132
|
+
"prop:name"?: WRadio["name"];
|
|
1133
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
1134
|
+
"prop:value"?: WRadio["value"];
|
|
1135
|
+
/** Draws the radio in a checked state (reflected to attribute). */
|
|
1136
|
+
"prop:checked"?: WRadio["checked"];
|
|
1137
|
+
/** Disables the radio. */
|
|
1138
|
+
"prop:disabled"?: WRadio["disabled"];
|
|
1139
|
+
/** Makes the radio a required field. */
|
|
1140
|
+
"prop:required"?: WRadio["required"];
|
|
1141
|
+
/** Draws the radio in an invalid state. */
|
|
1142
|
+
"prop:invalid"?: WRadio["invalid"];
|
|
1143
|
+
|
|
1144
|
+
/** Set the innerHTML of the element */
|
|
1145
|
+
innerHTML?: string;
|
|
1146
|
+
/** Set the textContent of the element */
|
|
1147
|
+
textContent?: string | number;
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
export type WRadioGroupProps = {
|
|
1151
|
+
/** The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
1152
|
+
instead. */
|
|
1153
|
+
label?: WRadioGroup["label"];
|
|
1154
|
+
/** The radio group's help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
1155
|
+
"help-text"?: WRadioGroup["helpText"];
|
|
1156
|
+
/** The radio group's help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
1157
|
+
helpText?: WRadioGroup["helpText"];
|
|
1158
|
+
/** Optional indicator for the label. */
|
|
1159
|
+
optional?: WRadioGroup["optional"];
|
|
1160
|
+
/** Marks the radio group as invalid. */
|
|
1161
|
+
invalid?: WRadioGroup["invalid"];
|
|
1162
|
+
/** The name of the radio group */
|
|
1163
|
+
name?: WRadioGroup["name"];
|
|
1164
|
+
/** Disables the radio group and all child radios. */
|
|
1165
|
+
disabled?: WRadioGroup["disabled"];
|
|
1166
|
+
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
1167
|
+
required?: WRadioGroup["required"];
|
|
1168
|
+
/** */
|
|
1169
|
+
hasInteracted?: WRadioGroup["hasInteracted"];
|
|
1170
|
+
};
|
|
1171
|
+
|
|
1172
|
+
export type WRadioGroupSolidJsProps = {
|
|
1173
|
+
/** The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
1174
|
+
instead. */
|
|
1175
|
+
"prop:label"?: WRadioGroup["label"];
|
|
1176
|
+
/** The radio group's help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
1177
|
+
"attr:help-text"?: WRadioGroup["helpText"];
|
|
1178
|
+
/** The radio group's help text. If you need to display HTML, use the `help-text` slot instead. */
|
|
1179
|
+
"prop:helpText"?: WRadioGroup["helpText"];
|
|
1180
|
+
/** Optional indicator for the label. */
|
|
1181
|
+
"prop:optional"?: WRadioGroup["optional"];
|
|
1182
|
+
/** Marks the radio group as invalid. */
|
|
1183
|
+
"prop:invalid"?: WRadioGroup["invalid"];
|
|
1184
|
+
/** The name of the radio group */
|
|
1185
|
+
"prop:name"?: WRadioGroup["name"];
|
|
1186
|
+
/** Disables the radio group and all child radios. */
|
|
1187
|
+
"prop:disabled"?: WRadioGroup["disabled"];
|
|
1188
|
+
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
1189
|
+
"prop:required"?: WRadioGroup["required"];
|
|
1190
|
+
/** */
|
|
1191
|
+
"prop:hasInteracted"?: WRadioGroup["hasInteracted"];
|
|
1192
|
+
|
|
1193
|
+
/** Set the innerHTML of the element */
|
|
1194
|
+
innerHTML?: string;
|
|
1195
|
+
/** Set the textContent of the element */
|
|
1196
|
+
textContent?: string | number;
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1026
1199
|
export type WarpSelectProps = {
|
|
1027
1200
|
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
1028
1201
|
"auto-focus"?: WarpSelect["autoFocus"];
|
|
@@ -1098,299 +1271,84 @@ export type WarpSelectSolidJsProps = {
|
|
|
1098
1271
|
textContent?: string | number;
|
|
1099
1272
|
};
|
|
1100
1273
|
|
|
1101
|
-
export type
|
|
1102
|
-
/** */
|
|
1103
|
-
active?: WarpStep["active"];
|
|
1104
|
-
/** */
|
|
1105
|
-
completed?: WarpStep["completed"];
|
|
1106
|
-
};
|
|
1107
|
-
|
|
1108
|
-
export type WarpStepSolidJsProps = {
|
|
1274
|
+
export type WarpTextFieldProps = {
|
|
1109
1275
|
/** */
|
|
1110
|
-
|
|
1276
|
+
disabled?: WarpTextField["disabled"];
|
|
1111
1277
|
/** */
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
/** Set the innerHTML of the element */
|
|
1115
|
-
innerHTML?: string;
|
|
1116
|
-
/** Set the textContent of the element */
|
|
1117
|
-
textContent?: string | number;
|
|
1118
|
-
};
|
|
1119
|
-
|
|
1120
|
-
export type WarpStepIndicatorProps = {
|
|
1278
|
+
invalid?: WarpTextField["invalid"];
|
|
1121
1279
|
/** */
|
|
1122
|
-
|
|
1280
|
+
id?: WarpTextField["id"];
|
|
1123
1281
|
/** */
|
|
1124
|
-
|
|
1125
|
-
};
|
|
1126
|
-
|
|
1127
|
-
export type WarpStepIndicatorSolidJsProps = {
|
|
1282
|
+
label?: WarpTextField["label"];
|
|
1128
1283
|
/** */
|
|
1129
|
-
"
|
|
1284
|
+
"help-text"?: WarpTextField["helpText"];
|
|
1130
1285
|
/** */
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
/** Set the innerHTML of the element */
|
|
1134
|
-
innerHTML?: string;
|
|
1135
|
-
/** Set the textContent of the element */
|
|
1136
|
-
textContent?: string | number;
|
|
1137
|
-
};
|
|
1138
|
-
|
|
1139
|
-
export type WarpSwitchProps = {
|
|
1286
|
+
helpText?: WarpTextField["helpText"];
|
|
1140
1287
|
/** */
|
|
1141
|
-
|
|
1288
|
+
size?: WarpTextField["size"];
|
|
1142
1289
|
/** */
|
|
1143
|
-
|
|
1290
|
+
max?: WarpTextField["max"];
|
|
1144
1291
|
/** */
|
|
1145
|
-
|
|
1292
|
+
min?: WarpTextField["min"];
|
|
1146
1293
|
/** */
|
|
1147
|
-
|
|
1148
|
-
|
|
1294
|
+
"min-length"?: WarpTextField["minLength"];
|
|
1149
1295
|
/** */
|
|
1150
|
-
|
|
1151
|
-
};
|
|
1152
|
-
|
|
1153
|
-
export type WarpSwitchSolidJsProps = {
|
|
1296
|
+
minLength?: WarpTextField["minLength"];
|
|
1154
1297
|
/** */
|
|
1155
|
-
"
|
|
1298
|
+
"max-length"?: WarpTextField["maxLength"];
|
|
1156
1299
|
/** */
|
|
1157
|
-
|
|
1300
|
+
maxLength?: WarpTextField["maxLength"];
|
|
1158
1301
|
/** */
|
|
1159
|
-
|
|
1302
|
+
pattern?: WarpTextField["pattern"];
|
|
1160
1303
|
/** */
|
|
1161
|
-
|
|
1304
|
+
placeholder?: WarpTextField["placeholder"];
|
|
1305
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
1306
|
+
"read-only"?: WarpTextField["readOnly"];
|
|
1307
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
1308
|
+
readOnly?: WarpTextField["readOnly"];
|
|
1162
1309
|
/** */
|
|
1163
|
-
"
|
|
1164
|
-
|
|
1165
|
-
/** Set the innerHTML of the element */
|
|
1166
|
-
innerHTML?: string;
|
|
1167
|
-
/** Set the textContent of the element */
|
|
1168
|
-
textContent?: string | number;
|
|
1169
|
-
};
|
|
1170
|
-
|
|
1171
|
-
export type WarpTabProps = {
|
|
1310
|
+
readonly?: WarpTextField["readonly"];
|
|
1172
1311
|
/** */
|
|
1173
|
-
|
|
1312
|
+
required?: WarpTextField["required"];
|
|
1174
1313
|
/** */
|
|
1175
|
-
|
|
1314
|
+
type?: WarpTextField["type"];
|
|
1176
1315
|
/** */
|
|
1177
|
-
|
|
1178
|
-
};
|
|
1179
|
-
|
|
1180
|
-
export type WarpTabSolidJsProps = {
|
|
1316
|
+
value?: WarpTextField["value"];
|
|
1181
1317
|
/** */
|
|
1182
|
-
|
|
1318
|
+
name?: WarpTextField["name"];
|
|
1183
1319
|
/** */
|
|
1184
|
-
|
|
1320
|
+
step?: WarpTextField["step"];
|
|
1185
1321
|
/** */
|
|
1186
|
-
|
|
1322
|
+
autocomplete?: WarpTextField["autocomplete"];
|
|
1323
|
+
/** Function to format value when the input field.
|
|
1187
1324
|
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
/** Set the textContent of the element */
|
|
1191
|
-
textContent?: string | number;
|
|
1192
|
-
};
|
|
1325
|
+
Only active when the input field does not have focus,
|
|
1326
|
+
similar to the accessible input masking example from Filament Group
|
|
1193
1327
|
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1328
|
+
https://css-tricks.com/input-masking/
|
|
1329
|
+
https://filamentgroup.github.io/politespace/demo/demo.html */
|
|
1330
|
+
formatter?: WarpTextField["formatter"];
|
|
1197
1331
|
};
|
|
1198
1332
|
|
|
1199
|
-
export type
|
|
1333
|
+
export type WarpTextFieldSolidJsProps = {
|
|
1200
1334
|
/** */
|
|
1201
|
-
"prop:
|
|
1202
|
-
|
|
1203
|
-
/** Set the innerHTML of the element */
|
|
1204
|
-
innerHTML?: string;
|
|
1205
|
-
/** Set the textContent of the element */
|
|
1206
|
-
textContent?: string | number;
|
|
1207
|
-
};
|
|
1208
|
-
|
|
1209
|
-
export type WarpTabsProps = {
|
|
1335
|
+
"prop:disabled"?: WarpTextField["disabled"];
|
|
1210
1336
|
/** */
|
|
1211
|
-
|
|
1212
|
-
|
|
1337
|
+
"prop:invalid"?: WarpTextField["invalid"];
|
|
1213
1338
|
/** */
|
|
1214
|
-
|
|
1215
|
-
};
|
|
1216
|
-
|
|
1217
|
-
export type WarpTabsSolidJsProps = {
|
|
1339
|
+
"prop:id"?: WarpTextField["id"];
|
|
1218
1340
|
/** */
|
|
1219
|
-
"prop:
|
|
1341
|
+
"prop:label"?: WarpTextField["label"];
|
|
1220
1342
|
/** */
|
|
1221
|
-
"
|
|
1222
|
-
|
|
1223
|
-
/** Set the innerHTML of the element */
|
|
1224
|
-
innerHTML?: string;
|
|
1225
|
-
/** Set the textContent of the element */
|
|
1226
|
-
textContent?: string | number;
|
|
1227
|
-
};
|
|
1228
|
-
|
|
1229
|
-
export type WarpTextareaProps = {
|
|
1343
|
+
"attr:help-text"?: WarpTextField["helpText"];
|
|
1230
1344
|
/** */
|
|
1231
|
-
|
|
1345
|
+
"prop:helpText"?: WarpTextField["helpText"];
|
|
1232
1346
|
/** */
|
|
1233
|
-
|
|
1347
|
+
"prop:size"?: WarpTextField["size"];
|
|
1234
1348
|
/** */
|
|
1235
|
-
|
|
1349
|
+
"prop:max"?: WarpTextField["max"];
|
|
1236
1350
|
/** */
|
|
1237
|
-
"
|
|
1238
|
-
/** */
|
|
1239
|
-
helpText?: WarpTextarea["helpText"];
|
|
1240
|
-
/** */
|
|
1241
|
-
"maximum-rows"?: WarpTextarea["maxRows"];
|
|
1242
|
-
/** */
|
|
1243
|
-
maxRows?: WarpTextarea["maxRows"];
|
|
1244
|
-
/** */
|
|
1245
|
-
"minimum-rows"?: WarpTextarea["minRows"];
|
|
1246
|
-
/** */
|
|
1247
|
-
minRows?: WarpTextarea["minRows"];
|
|
1248
|
-
/** */
|
|
1249
|
-
name?: WarpTextarea["name"];
|
|
1250
|
-
/** */
|
|
1251
|
-
placeholder?: WarpTextarea["placeholder"];
|
|
1252
|
-
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1253
|
-
"read-only"?: WarpTextarea["readOnly"];
|
|
1254
|
-
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1255
|
-
readOnly?: WarpTextarea["readOnly"];
|
|
1256
|
-
/** */
|
|
1257
|
-
readonly?: WarpTextarea["readonly"];
|
|
1258
|
-
/** */
|
|
1259
|
-
required?: WarpTextarea["required"];
|
|
1260
|
-
/** */
|
|
1261
|
-
value?: WarpTextarea["value"];
|
|
1262
|
-
/** */
|
|
1263
|
-
optional?: WarpTextarea["optional"];
|
|
1264
|
-
/** */
|
|
1265
|
-
minHeight?: WarpTextarea["minHeight"];
|
|
1266
|
-
/** */
|
|
1267
|
-
maxHeight?: WarpTextarea["maxHeight"];
|
|
1268
|
-
};
|
|
1269
|
-
|
|
1270
|
-
export type WarpTextareaSolidJsProps = {
|
|
1271
|
-
/** */
|
|
1272
|
-
"prop:disabled"?: WarpTextarea["disabled"];
|
|
1273
|
-
/** */
|
|
1274
|
-
"prop:invalid"?: WarpTextarea["invalid"];
|
|
1275
|
-
/** */
|
|
1276
|
-
"prop:label"?: WarpTextarea["label"];
|
|
1277
|
-
/** */
|
|
1278
|
-
"attr:help-text"?: WarpTextarea["helpText"];
|
|
1279
|
-
/** */
|
|
1280
|
-
"prop:helpText"?: WarpTextarea["helpText"];
|
|
1281
|
-
/** */
|
|
1282
|
-
"attr:maximum-rows"?: WarpTextarea["maxRows"];
|
|
1283
|
-
/** */
|
|
1284
|
-
"prop:maxRows"?: WarpTextarea["maxRows"];
|
|
1285
|
-
/** */
|
|
1286
|
-
"attr:minimum-rows"?: WarpTextarea["minRows"];
|
|
1287
|
-
/** */
|
|
1288
|
-
"prop:minRows"?: WarpTextarea["minRows"];
|
|
1289
|
-
/** */
|
|
1290
|
-
"prop:name"?: WarpTextarea["name"];
|
|
1291
|
-
/** */
|
|
1292
|
-
"prop:placeholder"?: WarpTextarea["placeholder"];
|
|
1293
|
-
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1294
|
-
"bool:read-only"?: WarpTextarea["readOnly"];
|
|
1295
|
-
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1296
|
-
"prop:readOnly"?: WarpTextarea["readOnly"];
|
|
1297
|
-
/** */
|
|
1298
|
-
"prop:readonly"?: WarpTextarea["readonly"];
|
|
1299
|
-
/** */
|
|
1300
|
-
"prop:required"?: WarpTextarea["required"];
|
|
1301
|
-
/** */
|
|
1302
|
-
"prop:value"?: WarpTextarea["value"];
|
|
1303
|
-
/** */
|
|
1304
|
-
"prop:optional"?: WarpTextarea["optional"];
|
|
1305
|
-
/** */
|
|
1306
|
-
"prop:minHeight"?: WarpTextarea["minHeight"];
|
|
1307
|
-
/** */
|
|
1308
|
-
"prop:maxHeight"?: WarpTextarea["maxHeight"];
|
|
1309
|
-
|
|
1310
|
-
/** Set the innerHTML of the element */
|
|
1311
|
-
innerHTML?: string;
|
|
1312
|
-
/** Set the textContent of the element */
|
|
1313
|
-
textContent?: string | number;
|
|
1314
|
-
};
|
|
1315
|
-
|
|
1316
|
-
export type WarpTextFieldProps = {
|
|
1317
|
-
/** */
|
|
1318
|
-
disabled?: WarpTextField["disabled"];
|
|
1319
|
-
/** */
|
|
1320
|
-
invalid?: WarpTextField["invalid"];
|
|
1321
|
-
/** */
|
|
1322
|
-
id?: WarpTextField["id"];
|
|
1323
|
-
/** */
|
|
1324
|
-
label?: WarpTextField["label"];
|
|
1325
|
-
/** */
|
|
1326
|
-
"help-text"?: WarpTextField["helpText"];
|
|
1327
|
-
/** */
|
|
1328
|
-
helpText?: WarpTextField["helpText"];
|
|
1329
|
-
/** */
|
|
1330
|
-
size?: WarpTextField["size"];
|
|
1331
|
-
/** */
|
|
1332
|
-
max?: WarpTextField["max"];
|
|
1333
|
-
/** */
|
|
1334
|
-
min?: WarpTextField["min"];
|
|
1335
|
-
/** */
|
|
1336
|
-
"min-length"?: WarpTextField["minLength"];
|
|
1337
|
-
/** */
|
|
1338
|
-
minLength?: WarpTextField["minLength"];
|
|
1339
|
-
/** */
|
|
1340
|
-
"max-length"?: WarpTextField["maxLength"];
|
|
1341
|
-
/** */
|
|
1342
|
-
maxLength?: WarpTextField["maxLength"];
|
|
1343
|
-
/** */
|
|
1344
|
-
pattern?: WarpTextField["pattern"];
|
|
1345
|
-
/** */
|
|
1346
|
-
placeholder?: WarpTextField["placeholder"];
|
|
1347
|
-
/** @deprecated Use the native readonly attribute instead. */
|
|
1348
|
-
"read-only"?: WarpTextField["readOnly"];
|
|
1349
|
-
/** @deprecated Use the native readonly attribute instead. */
|
|
1350
|
-
readOnly?: WarpTextField["readOnly"];
|
|
1351
|
-
/** */
|
|
1352
|
-
readonly?: WarpTextField["readonly"];
|
|
1353
|
-
/** */
|
|
1354
|
-
required?: WarpTextField["required"];
|
|
1355
|
-
/** */
|
|
1356
|
-
type?: WarpTextField["type"];
|
|
1357
|
-
/** */
|
|
1358
|
-
value?: WarpTextField["value"];
|
|
1359
|
-
/** */
|
|
1360
|
-
name?: WarpTextField["name"];
|
|
1361
|
-
/** */
|
|
1362
|
-
step?: WarpTextField["step"];
|
|
1363
|
-
/** */
|
|
1364
|
-
autocomplete?: WarpTextField["autocomplete"];
|
|
1365
|
-
/** Function to format value when the input field.
|
|
1366
|
-
|
|
1367
|
-
Only active when the input field does not have focus,
|
|
1368
|
-
similar to the accessible input masking example from Filament Group
|
|
1369
|
-
|
|
1370
|
-
https://css-tricks.com/input-masking/
|
|
1371
|
-
https://filamentgroup.github.io/politespace/demo/demo.html */
|
|
1372
|
-
formatter?: WarpTextField["formatter"];
|
|
1373
|
-
};
|
|
1374
|
-
|
|
1375
|
-
export type WarpTextFieldSolidJsProps = {
|
|
1376
|
-
/** */
|
|
1377
|
-
"prop:disabled"?: WarpTextField["disabled"];
|
|
1378
|
-
/** */
|
|
1379
|
-
"prop:invalid"?: WarpTextField["invalid"];
|
|
1380
|
-
/** */
|
|
1381
|
-
"prop:id"?: WarpTextField["id"];
|
|
1382
|
-
/** */
|
|
1383
|
-
"prop:label"?: WarpTextField["label"];
|
|
1384
|
-
/** */
|
|
1385
|
-
"attr:help-text"?: WarpTextField["helpText"];
|
|
1386
|
-
/** */
|
|
1387
|
-
"prop:helpText"?: WarpTextField["helpText"];
|
|
1388
|
-
/** */
|
|
1389
|
-
"prop:size"?: WarpTextField["size"];
|
|
1390
|
-
/** */
|
|
1391
|
-
"prop:max"?: WarpTextField["max"];
|
|
1392
|
-
/** */
|
|
1393
|
-
"prop:min"?: WarpTextField["min"];
|
|
1351
|
+
"prop:min"?: WarpTextField["min"];
|
|
1394
1352
|
/** */
|
|
1395
1353
|
"attr:min-length"?: WarpTextField["minLength"];
|
|
1396
1354
|
/** */
|
|
@@ -1436,102 +1394,6 @@ https://filamentgroup.github.io/politespace/demo/demo.html */
|
|
|
1436
1394
|
textContent?: string | number;
|
|
1437
1395
|
};
|
|
1438
1396
|
|
|
1439
|
-
export type WarpToastContainerProps = {};
|
|
1440
|
-
|
|
1441
|
-
export type WarpToastContainerSolidJsProps = {
|
|
1442
|
-
/** Set the innerHTML of the element */
|
|
1443
|
-
innerHTML?: string;
|
|
1444
|
-
/** Set the textContent of the element */
|
|
1445
|
-
textContent?: string | number;
|
|
1446
|
-
};
|
|
1447
|
-
|
|
1448
|
-
export type WCheckboxProps = {
|
|
1449
|
-
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
1450
|
-
name?: WCheckbox["name"];
|
|
1451
|
-
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
1452
|
-
value?: WCheckbox["value"];
|
|
1453
|
-
/** Draws the checkbox in an indeterminate state. */
|
|
1454
|
-
indeterminate?: WCheckbox["indeterminate"];
|
|
1455
|
-
/** Draws the checkbox in a checked state (reflected to attribute). */
|
|
1456
|
-
checked?: WCheckbox["checked"];
|
|
1457
|
-
/** Disables the checkbox. */
|
|
1458
|
-
disabled?: WCheckbox["disabled"];
|
|
1459
|
-
/** Makes the checkbox a required field. */
|
|
1460
|
-
required?: WCheckbox["required"];
|
|
1461
|
-
/** Draws the checkbox in an invalid state. */
|
|
1462
|
-
invalid?: WCheckbox["invalid"];
|
|
1463
|
-
/** */
|
|
1464
|
-
input?: WCheckbox["input"];
|
|
1465
|
-
|
|
1466
|
-
/** */
|
|
1467
|
-
onchange?: (e: Event) => void;
|
|
1468
|
-
};
|
|
1469
|
-
|
|
1470
|
-
export type WCheckboxSolidJsProps = {
|
|
1471
|
-
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
1472
|
-
"prop:name"?: WCheckbox["name"];
|
|
1473
|
-
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
1474
|
-
"prop:value"?: WCheckbox["value"];
|
|
1475
|
-
/** Draws the checkbox in an indeterminate state. */
|
|
1476
|
-
"prop:indeterminate"?: WCheckbox["indeterminate"];
|
|
1477
|
-
/** Draws the checkbox in a checked state (reflected to attribute). */
|
|
1478
|
-
"prop:checked"?: WCheckbox["checked"];
|
|
1479
|
-
/** Disables the checkbox. */
|
|
1480
|
-
"prop:disabled"?: WCheckbox["disabled"];
|
|
1481
|
-
/** Makes the checkbox a required field. */
|
|
1482
|
-
"prop:required"?: WCheckbox["required"];
|
|
1483
|
-
/** Draws the checkbox in an invalid state. */
|
|
1484
|
-
"prop:invalid"?: WCheckbox["invalid"];
|
|
1485
|
-
/** */
|
|
1486
|
-
"prop:input"?: WCheckbox["input"];
|
|
1487
|
-
/** */
|
|
1488
|
-
"on:change"?: (e: Event) => void;
|
|
1489
|
-
|
|
1490
|
-
/** Set the innerHTML of the element */
|
|
1491
|
-
innerHTML?: string;
|
|
1492
|
-
/** Set the textContent of the element */
|
|
1493
|
-
textContent?: string | number;
|
|
1494
|
-
};
|
|
1495
|
-
|
|
1496
|
-
export type WCheckboxGroupProps = {
|
|
1497
|
-
/** The group label displayed above the checkboxes. */
|
|
1498
|
-
label?: WCheckboxGroup["label"];
|
|
1499
|
-
/** The name applied to child checkboxes when they do not provide one. */
|
|
1500
|
-
name?: WCheckboxGroup["name"];
|
|
1501
|
-
/** Whether to show optional text next to the label. */
|
|
1502
|
-
optional?: WCheckboxGroup["optional"];
|
|
1503
|
-
/** */
|
|
1504
|
-
"help-text"?: WCheckboxGroup["helpText"];
|
|
1505
|
-
/** */
|
|
1506
|
-
helpText?: WCheckboxGroup["helpText"];
|
|
1507
|
-
/** Makes the checkbox group required. */
|
|
1508
|
-
required?: WCheckboxGroup["required"];
|
|
1509
|
-
/** Marks the checkbox group as invalid. */
|
|
1510
|
-
invalid?: WCheckboxGroup["invalid"];
|
|
1511
|
-
};
|
|
1512
|
-
|
|
1513
|
-
export type WCheckboxGroupSolidJsProps = {
|
|
1514
|
-
/** The group label displayed above the checkboxes. */
|
|
1515
|
-
"prop:label"?: WCheckboxGroup["label"];
|
|
1516
|
-
/** The name applied to child checkboxes when they do not provide one. */
|
|
1517
|
-
"prop:name"?: WCheckboxGroup["name"];
|
|
1518
|
-
/** Whether to show optional text next to the label. */
|
|
1519
|
-
"prop:optional"?: WCheckboxGroup["optional"];
|
|
1520
|
-
/** */
|
|
1521
|
-
"attr:help-text"?: WCheckboxGroup["helpText"];
|
|
1522
|
-
/** */
|
|
1523
|
-
"prop:helpText"?: WCheckboxGroup["helpText"];
|
|
1524
|
-
/** Makes the checkbox group required. */
|
|
1525
|
-
"prop:required"?: WCheckboxGroup["required"];
|
|
1526
|
-
/** Marks the checkbox group as invalid. */
|
|
1527
|
-
"prop:invalid"?: WCheckboxGroup["invalid"];
|
|
1528
|
-
|
|
1529
|
-
/** Set the innerHTML of the element */
|
|
1530
|
-
innerHTML?: string;
|
|
1531
|
-
/** Set the textContent of the element */
|
|
1532
|
-
textContent?: string | number;
|
|
1533
|
-
};
|
|
1534
|
-
|
|
1535
1397
|
export type WarpSliderThumbProps = {
|
|
1536
1398
|
/** */
|
|
1537
1399
|
"aria-label"?: WarpSliderThumb["ariaLabel"];
|
|
@@ -1695,10 +1557,234 @@ If you need to display HTML, use the `label` slot instead (f. ex. `<legend class
|
|
|
1695
1557
|
textContent?: string | number;
|
|
1696
1558
|
};
|
|
1697
1559
|
|
|
1698
|
-
export type
|
|
1699
|
-
/**
|
|
1700
|
-
|
|
1701
|
-
|
|
1560
|
+
export type WarpStepProps = {
|
|
1561
|
+
/** */
|
|
1562
|
+
active?: WarpStep["active"];
|
|
1563
|
+
/** */
|
|
1564
|
+
completed?: WarpStep["completed"];
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
export type WarpStepSolidJsProps = {
|
|
1568
|
+
/** */
|
|
1569
|
+
"prop:active"?: WarpStep["active"];
|
|
1570
|
+
/** */
|
|
1571
|
+
"prop:completed"?: WarpStep["completed"];
|
|
1572
|
+
|
|
1573
|
+
/** Set the innerHTML of the element */
|
|
1574
|
+
innerHTML?: string;
|
|
1575
|
+
/** Set the textContent of the element */
|
|
1576
|
+
textContent?: string | number;
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
export type WarpStepIndicatorProps = {
|
|
1580
|
+
/** */
|
|
1581
|
+
horizontal?: WarpStepIndicator["horizontal"];
|
|
1582
|
+
/** */
|
|
1583
|
+
right?: WarpStepIndicator["right"];
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1586
|
+
export type WarpStepIndicatorSolidJsProps = {
|
|
1587
|
+
/** */
|
|
1588
|
+
"prop:horizontal"?: WarpStepIndicator["horizontal"];
|
|
1589
|
+
/** */
|
|
1590
|
+
"prop:right"?: WarpStepIndicator["right"];
|
|
1591
|
+
|
|
1592
|
+
/** Set the innerHTML of the element */
|
|
1593
|
+
innerHTML?: string;
|
|
1594
|
+
/** Set the textContent of the element */
|
|
1595
|
+
textContent?: string | number;
|
|
1596
|
+
};
|
|
1597
|
+
|
|
1598
|
+
export type WarpSwitchProps = {
|
|
1599
|
+
/** */
|
|
1600
|
+
name?: WarpSwitch["name"];
|
|
1601
|
+
/** */
|
|
1602
|
+
value?: WarpSwitch["value"];
|
|
1603
|
+
/** */
|
|
1604
|
+
checked?: WarpSwitch["checked"];
|
|
1605
|
+
/** */
|
|
1606
|
+
disabled?: WarpSwitch["disabled"];
|
|
1607
|
+
|
|
1608
|
+
/** */
|
|
1609
|
+
onchange?: (e: CustomEvent) => void;
|
|
1610
|
+
};
|
|
1611
|
+
|
|
1612
|
+
export type WarpSwitchSolidJsProps = {
|
|
1613
|
+
/** */
|
|
1614
|
+
"prop:name"?: WarpSwitch["name"];
|
|
1615
|
+
/** */
|
|
1616
|
+
"prop:value"?: WarpSwitch["value"];
|
|
1617
|
+
/** */
|
|
1618
|
+
"prop:checked"?: WarpSwitch["checked"];
|
|
1619
|
+
/** */
|
|
1620
|
+
"prop:disabled"?: WarpSwitch["disabled"];
|
|
1621
|
+
/** */
|
|
1622
|
+
"on:change"?: (e: CustomEvent) => void;
|
|
1623
|
+
|
|
1624
|
+
/** Set the innerHTML of the element */
|
|
1625
|
+
innerHTML?: string;
|
|
1626
|
+
/** Set the textContent of the element */
|
|
1627
|
+
textContent?: string | number;
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
export type WarpTabProps = {
|
|
1631
|
+
/** */
|
|
1632
|
+
for?: WarpTab["for"];
|
|
1633
|
+
/** */
|
|
1634
|
+
active?: WarpTab["active"];
|
|
1635
|
+
/** */
|
|
1636
|
+
over?: WarpTab["over"];
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
export type WarpTabSolidJsProps = {
|
|
1640
|
+
/** */
|
|
1641
|
+
"prop:for"?: WarpTab["for"];
|
|
1642
|
+
/** */
|
|
1643
|
+
"prop:active"?: WarpTab["active"];
|
|
1644
|
+
/** */
|
|
1645
|
+
"prop:over"?: WarpTab["over"];
|
|
1646
|
+
|
|
1647
|
+
/** Set the innerHTML of the element */
|
|
1648
|
+
innerHTML?: string;
|
|
1649
|
+
/** Set the textContent of the element */
|
|
1650
|
+
textContent?: string | number;
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
export type WarpTabPanelProps = {
|
|
1654
|
+
/** */
|
|
1655
|
+
hidden?: WarpTabPanel["hidden"];
|
|
1656
|
+
};
|
|
1657
|
+
|
|
1658
|
+
export type WarpTabPanelSolidJsProps = {
|
|
1659
|
+
/** */
|
|
1660
|
+
"prop:hidden"?: WarpTabPanel["hidden"];
|
|
1661
|
+
|
|
1662
|
+
/** Set the innerHTML of the element */
|
|
1663
|
+
innerHTML?: string;
|
|
1664
|
+
/** Set the textContent of the element */
|
|
1665
|
+
textContent?: string | number;
|
|
1666
|
+
};
|
|
1667
|
+
|
|
1668
|
+
export type WarpTabsProps = {
|
|
1669
|
+
/** */
|
|
1670
|
+
active?: WarpTabs["active"];
|
|
1671
|
+
|
|
1672
|
+
/** */
|
|
1673
|
+
onchange?: (e: CustomEvent) => void;
|
|
1674
|
+
};
|
|
1675
|
+
|
|
1676
|
+
export type WarpTabsSolidJsProps = {
|
|
1677
|
+
/** */
|
|
1678
|
+
"prop:active"?: WarpTabs["active"];
|
|
1679
|
+
/** */
|
|
1680
|
+
"on:change"?: (e: CustomEvent) => void;
|
|
1681
|
+
|
|
1682
|
+
/** Set the innerHTML of the element */
|
|
1683
|
+
innerHTML?: string;
|
|
1684
|
+
/** Set the textContent of the element */
|
|
1685
|
+
textContent?: string | number;
|
|
1686
|
+
};
|
|
1687
|
+
|
|
1688
|
+
export type WarpTextareaProps = {
|
|
1689
|
+
/** */
|
|
1690
|
+
disabled?: WarpTextarea["disabled"];
|
|
1691
|
+
/** */
|
|
1692
|
+
invalid?: WarpTextarea["invalid"];
|
|
1693
|
+
/** */
|
|
1694
|
+
label?: WarpTextarea["label"];
|
|
1695
|
+
/** */
|
|
1696
|
+
"help-text"?: WarpTextarea["helpText"];
|
|
1697
|
+
/** */
|
|
1698
|
+
helpText?: WarpTextarea["helpText"];
|
|
1699
|
+
/** */
|
|
1700
|
+
"maximum-rows"?: WarpTextarea["maxRows"];
|
|
1701
|
+
/** */
|
|
1702
|
+
maxRows?: WarpTextarea["maxRows"];
|
|
1703
|
+
/** */
|
|
1704
|
+
"minimum-rows"?: WarpTextarea["minRows"];
|
|
1705
|
+
/** */
|
|
1706
|
+
minRows?: WarpTextarea["minRows"];
|
|
1707
|
+
/** */
|
|
1708
|
+
name?: WarpTextarea["name"];
|
|
1709
|
+
/** */
|
|
1710
|
+
placeholder?: WarpTextarea["placeholder"];
|
|
1711
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1712
|
+
"read-only"?: WarpTextarea["readOnly"];
|
|
1713
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1714
|
+
readOnly?: WarpTextarea["readOnly"];
|
|
1715
|
+
/** */
|
|
1716
|
+
readonly?: WarpTextarea["readonly"];
|
|
1717
|
+
/** */
|
|
1718
|
+
required?: WarpTextarea["required"];
|
|
1719
|
+
/** */
|
|
1720
|
+
value?: WarpTextarea["value"];
|
|
1721
|
+
/** */
|
|
1722
|
+
optional?: WarpTextarea["optional"];
|
|
1723
|
+
/** */
|
|
1724
|
+
minHeight?: WarpTextarea["minHeight"];
|
|
1725
|
+
/** */
|
|
1726
|
+
maxHeight?: WarpTextarea["maxHeight"];
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1729
|
+
export type WarpTextareaSolidJsProps = {
|
|
1730
|
+
/** */
|
|
1731
|
+
"prop:disabled"?: WarpTextarea["disabled"];
|
|
1732
|
+
/** */
|
|
1733
|
+
"prop:invalid"?: WarpTextarea["invalid"];
|
|
1734
|
+
/** */
|
|
1735
|
+
"prop:label"?: WarpTextarea["label"];
|
|
1736
|
+
/** */
|
|
1737
|
+
"attr:help-text"?: WarpTextarea["helpText"];
|
|
1738
|
+
/** */
|
|
1739
|
+
"prop:helpText"?: WarpTextarea["helpText"];
|
|
1740
|
+
/** */
|
|
1741
|
+
"attr:maximum-rows"?: WarpTextarea["maxRows"];
|
|
1742
|
+
/** */
|
|
1743
|
+
"prop:maxRows"?: WarpTextarea["maxRows"];
|
|
1744
|
+
/** */
|
|
1745
|
+
"attr:minimum-rows"?: WarpTextarea["minRows"];
|
|
1746
|
+
/** */
|
|
1747
|
+
"prop:minRows"?: WarpTextarea["minRows"];
|
|
1748
|
+
/** */
|
|
1749
|
+
"prop:name"?: WarpTextarea["name"];
|
|
1750
|
+
/** */
|
|
1751
|
+
"prop:placeholder"?: WarpTextarea["placeholder"];
|
|
1752
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1753
|
+
"bool:read-only"?: WarpTextarea["readOnly"];
|
|
1754
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1755
|
+
"prop:readOnly"?: WarpTextarea["readOnly"];
|
|
1756
|
+
/** */
|
|
1757
|
+
"prop:readonly"?: WarpTextarea["readonly"];
|
|
1758
|
+
/** */
|
|
1759
|
+
"prop:required"?: WarpTextarea["required"];
|
|
1760
|
+
/** */
|
|
1761
|
+
"prop:value"?: WarpTextarea["value"];
|
|
1762
|
+
/** */
|
|
1763
|
+
"prop:optional"?: WarpTextarea["optional"];
|
|
1764
|
+
/** */
|
|
1765
|
+
"prop:minHeight"?: WarpTextarea["minHeight"];
|
|
1766
|
+
/** */
|
|
1767
|
+
"prop:maxHeight"?: WarpTextarea["maxHeight"];
|
|
1768
|
+
|
|
1769
|
+
/** Set the innerHTML of the element */
|
|
1770
|
+
innerHTML?: string;
|
|
1771
|
+
/** Set the textContent of the element */
|
|
1772
|
+
textContent?: string | number;
|
|
1773
|
+
};
|
|
1774
|
+
|
|
1775
|
+
export type WarpToastContainerProps = {};
|
|
1776
|
+
|
|
1777
|
+
export type WarpToastContainerSolidJsProps = {
|
|
1778
|
+
/** Set the innerHTML of the element */
|
|
1779
|
+
innerHTML?: string;
|
|
1780
|
+
/** Set the textContent of the element */
|
|
1781
|
+
textContent?: string | number;
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1784
|
+
export type CustomElements = {
|
|
1785
|
+
/**
|
|
1786
|
+
*
|
|
1787
|
+
*
|
|
1702
1788
|
* ## Attributes & Properties
|
|
1703
1789
|
*
|
|
1704
1790
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
@@ -1906,31 +1992,94 @@ export type CustomElements = {
|
|
|
1906
1992
|
"w-card": Partial<WarpCardProps & BaseProps<WarpCard> & BaseEvents>;
|
|
1907
1993
|
|
|
1908
1994
|
/**
|
|
1909
|
-
* A combobox element for text input with selectable options.
|
|
1910
1995
|
*
|
|
1911
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
1912
1996
|
*
|
|
1913
1997
|
* ## Attributes & Properties
|
|
1914
1998
|
*
|
|
1915
1999
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1916
2000
|
*
|
|
1917
|
-
* - `
|
|
1918
|
-
* - `
|
|
1919
|
-
* - `
|
|
1920
|
-
* - `
|
|
1921
|
-
* - `
|
|
1922
|
-
* - `
|
|
1923
|
-
* - `
|
|
1924
|
-
* - `
|
|
1925
|
-
* - `
|
|
1926
|
-
* - `
|
|
1927
|
-
* - `disabled`: Whether the element is disabled
|
|
1928
|
-
* - `required`: Whether the element is required
|
|
1929
|
-
* - `optional`: Whether to show optional text
|
|
1930
|
-
* - `name`: Name attribute for form submission
|
|
1931
|
-
* - `autocomplete`: Autocomplete attribute for the input field
|
|
2001
|
+
* - `name`: The name of the checkbox, submitted as a name/value pair with form data.
|
|
2002
|
+
* - `value`: The value of the checkbox, submitted as a name/value pair with form data.
|
|
2003
|
+
* - `indeterminate`: Draws the checkbox in an indeterminate state.
|
|
2004
|
+
* - `checked`: Draws the checkbox in a checked state (reflected to attribute).
|
|
2005
|
+
* - `disabled`: Disables the checkbox.
|
|
2006
|
+
* - `required`: Makes the checkbox a required field.
|
|
2007
|
+
* - `invalid`: Draws the checkbox in an invalid state.
|
|
2008
|
+
* - `input`: undefined (property only)
|
|
2009
|
+
* - `validationMessage`: Returns the validation message if the checkbox is invalid, otherwise an empty string (property only) (readonly)
|
|
2010
|
+
* - `validity`: Returns the validity state of the checkbox (property only) (readonly)
|
|
1932
2011
|
*
|
|
1933
|
-
* ##
|
|
2012
|
+
* ## Events
|
|
2013
|
+
*
|
|
2014
|
+
* Events that will be emitted by the component.
|
|
2015
|
+
*
|
|
2016
|
+
* - `change`: undefined
|
|
2017
|
+
*
|
|
2018
|
+
* ## Methods
|
|
2019
|
+
*
|
|
2020
|
+
* Methods that can be called to access component functionality.
|
|
2021
|
+
*
|
|
2022
|
+
* - `resetFormControl() => void`: undefined
|
|
2023
|
+
* - `click() => void`: undefined
|
|
2024
|
+
* - `focus(options?: FocusOptions) => void`: undefined
|
|
2025
|
+
* - `blur() => void`: undefined
|
|
2026
|
+
* - `checkValidity() => boolean`: Checks whether the checkbox passes constraint validation
|
|
2027
|
+
* - `reportValidity() => boolean`: Checks validity and shows the browser's validation message if invalid
|
|
2028
|
+
*/
|
|
2029
|
+
"w-checkbox": Partial<WCheckboxProps & BaseProps<WCheckbox> & BaseEvents>;
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
*
|
|
2033
|
+
*
|
|
2034
|
+
* ## Attributes & Properties
|
|
2035
|
+
*
|
|
2036
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2037
|
+
*
|
|
2038
|
+
* - `label`: The group label displayed above the checkboxes.
|
|
2039
|
+
* - `name`: The name applied to child checkboxes when they do not provide one.
|
|
2040
|
+
* - `optional`: Whether to show optional text next to the label.
|
|
2041
|
+
* - `help-text`/`helpText`: undefined
|
|
2042
|
+
* - `required`: Makes the checkbox group required.
|
|
2043
|
+
* - `invalid`: Marks the checkbox group as invalid.
|
|
2044
|
+
*
|
|
2045
|
+
* ## Methods
|
|
2046
|
+
*
|
|
2047
|
+
* Methods that can be called to access component functionality.
|
|
2048
|
+
*
|
|
2049
|
+
* - `checkValidity() => boolean`: Checks whether the group passes constraint validation
|
|
2050
|
+
* - `reportValidity() => boolean`: Checks validity and shows the validation message if invalid
|
|
2051
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the checkbox group.
|
|
2052
|
+
*/
|
|
2053
|
+
"w-checkbox-group": Partial<
|
|
2054
|
+
WCheckboxGroupProps & BaseProps<WCheckboxGroup> & BaseEvents
|
|
2055
|
+
>;
|
|
2056
|
+
|
|
2057
|
+
/**
|
|
2058
|
+
* A combobox element for text input with selectable options.
|
|
2059
|
+
*
|
|
2060
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
2061
|
+
*
|
|
2062
|
+
* ## Attributes & Properties
|
|
2063
|
+
*
|
|
2064
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2065
|
+
*
|
|
2066
|
+
* - `options`: The available options to select from
|
|
2067
|
+
* - `label`: Label above input
|
|
2068
|
+
* - `placeholder`: Input placeholder
|
|
2069
|
+
* - `value`: The input value
|
|
2070
|
+
* - `open-on-focus`/`openOnFocus`: Whether the popover opens when focus is on the text field
|
|
2071
|
+
* - `select-on-blur`/`selectOnBlur`: Select active option on blur
|
|
2072
|
+
* - `match-text-segments`/`matchTextSegments`: Whether the matching text segments in the options should be highlighted
|
|
2073
|
+
* - `disable-static-filtering`/`disableStaticFiltering`: Disable client-side static filtering
|
|
2074
|
+
* - `invalid`: Renders the input field in an invalid state
|
|
2075
|
+
* - `help-text`/`helpText`: The content to display as the help text
|
|
2076
|
+
* - `disabled`: Whether the element is disabled
|
|
2077
|
+
* - `required`: Whether the element is required
|
|
2078
|
+
* - `optional`: Whether to show optional text
|
|
2079
|
+
* - `name`: Name attribute for form submission
|
|
2080
|
+
* - `autocomplete`: Autocomplete attribute for the input field
|
|
2081
|
+
*
|
|
2082
|
+
* ## Methods
|
|
1934
2083
|
*
|
|
1935
2084
|
* Methods that can be called to access component functionality.
|
|
1936
2085
|
*
|
|
@@ -2185,6 +2334,71 @@ export type CustomElements = {
|
|
|
2185
2334
|
*/
|
|
2186
2335
|
"w-pill": Partial<WarpPillProps & BaseProps<WarpPill> & BaseEvents>;
|
|
2187
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
*
|
|
2339
|
+
*
|
|
2340
|
+
* ## Attributes & Properties
|
|
2341
|
+
*
|
|
2342
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2343
|
+
*
|
|
2344
|
+
* - `name`: The name of the radio, submitted as a name/value pair with form data.
|
|
2345
|
+
* - `value`: The radio's value. When selected, the radio group will receive this value.
|
|
2346
|
+
* - `checked`: Draws the radio in a checked state (reflected to attribute).
|
|
2347
|
+
* - `disabled`: Disables the radio.
|
|
2348
|
+
* - `required`: Makes the radio a required field.
|
|
2349
|
+
* - `invalid`: Draws the radio in an invalid state.
|
|
2350
|
+
* - `validationMessage`: Returns the validation message if the radio is invalid, otherwise an empty string (property only) (readonly)
|
|
2351
|
+
* - `validity`: Returns the validity state of the radio (property only) (readonly)
|
|
2352
|
+
*
|
|
2353
|
+
* ## Methods
|
|
2354
|
+
*
|
|
2355
|
+
* Methods that can be called to access component functionality.
|
|
2356
|
+
*
|
|
2357
|
+
* - `resetFormControl() => void`: undefined
|
|
2358
|
+
* - `checkValidity() => boolean`: Checks whether the radio passes constraint validation
|
|
2359
|
+
* - `reportValidity() => boolean`: Checks validity and shows the browser's validation message if invalid
|
|
2360
|
+
*/
|
|
2361
|
+
"w-radio": Partial<WRadioProps & BaseProps<WRadio> & BaseEvents>;
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
*
|
|
2365
|
+
*
|
|
2366
|
+
* ## Attributes & Properties
|
|
2367
|
+
*
|
|
2368
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2369
|
+
*
|
|
2370
|
+
* - `label`: The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
2371
|
+
* instead.
|
|
2372
|
+
* - `help-text`/`helpText`: The radio group's help text. If you need to display HTML, use the `help-text` slot instead.
|
|
2373
|
+
* - `optional`: Optional indicator for the label.
|
|
2374
|
+
* - `invalid`: Marks the radio group as invalid.
|
|
2375
|
+
* - `name`: The name of the radio group
|
|
2376
|
+
* - `disabled`: Disables the radio group and all child radios.
|
|
2377
|
+
* - `required`: Ensures a child radio is checked before allowing the containing form to submit.
|
|
2378
|
+
* - `hasInteracted`: undefined (property only)
|
|
2379
|
+
* - `validationTarget`: We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on
|
|
2380
|
+
* the first radio element. (property only) (readonly)
|
|
2381
|
+
*
|
|
2382
|
+
* ## Slots
|
|
2383
|
+
*
|
|
2384
|
+
* Areas where markup can be added to the component.
|
|
2385
|
+
*
|
|
2386
|
+
* - `label`: Alternative to the `label` attribute should you need custom HTML.
|
|
2387
|
+
* - `help-text`: Alternative to the `help-text` attribute should you need custom HTML.
|
|
2388
|
+
*
|
|
2389
|
+
* ## Methods
|
|
2390
|
+
*
|
|
2391
|
+
* Methods that can be called to access component functionality.
|
|
2392
|
+
*
|
|
2393
|
+
* - `resetFormControl() => void`: undefined
|
|
2394
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the radio group.
|
|
2395
|
+
* - `checkValidity() => void`: undefined
|
|
2396
|
+
* - `reportValidity() => void`: undefined
|
|
2397
|
+
*/
|
|
2398
|
+
"w-radio-group": Partial<
|
|
2399
|
+
WRadioGroupProps & BaseProps<WRadioGroup> & BaseEvents
|
|
2400
|
+
>;
|
|
2401
|
+
|
|
2188
2402
|
/**
|
|
2189
2403
|
* A dropdown component for selecting a single value.
|
|
2190
2404
|
*
|
|
@@ -2218,6 +2432,143 @@ export type CustomElements = {
|
|
|
2218
2432
|
*/
|
|
2219
2433
|
"w-select": Partial<WarpSelectProps & BaseProps<WarpSelect> & BaseEvents>;
|
|
2220
2434
|
|
|
2435
|
+
/**
|
|
2436
|
+
* A single line text input element.
|
|
2437
|
+
*
|
|
2438
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
2439
|
+
*
|
|
2440
|
+
* ## Attributes & Properties
|
|
2441
|
+
*
|
|
2442
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2443
|
+
*
|
|
2444
|
+
* - `disabled`: undefined
|
|
2445
|
+
* - `invalid`: undefined
|
|
2446
|
+
* - `id`: undefined
|
|
2447
|
+
* - `label`: undefined
|
|
2448
|
+
* - `help-text`/`helpText`: undefined
|
|
2449
|
+
* - `size`: undefined
|
|
2450
|
+
* - `max`: undefined
|
|
2451
|
+
* - `min`: undefined
|
|
2452
|
+
* - `min-length`/`minLength`: undefined
|
|
2453
|
+
* - `max-length`/`maxLength`: undefined
|
|
2454
|
+
* - `pattern`: undefined
|
|
2455
|
+
* - `placeholder`: undefined
|
|
2456
|
+
* - `read-only`/`readOnly`: undefined
|
|
2457
|
+
* - `readonly`: undefined
|
|
2458
|
+
* - `required`: undefined
|
|
2459
|
+
* - `type`: undefined
|
|
2460
|
+
* - `value`: undefined
|
|
2461
|
+
* - `name`: undefined
|
|
2462
|
+
* - `step`: undefined
|
|
2463
|
+
* - `autocomplete`: undefined
|
|
2464
|
+
* - `formatter`: Function to format value when the input field.
|
|
2465
|
+
*
|
|
2466
|
+
* Only active when the input field does not have focus,
|
|
2467
|
+
* similar to the accessible input masking example from Filament Group
|
|
2468
|
+
*
|
|
2469
|
+
* https://css-tricks.com/input-masking/
|
|
2470
|
+
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
2471
|
+
*
|
|
2472
|
+
* ## Methods
|
|
2473
|
+
*
|
|
2474
|
+
* Methods that can be called to access component functionality.
|
|
2475
|
+
*
|
|
2476
|
+
* - `resetFormControl() => void`: undefined
|
|
2477
|
+
* - `handler(e: Event) => void`: undefined
|
|
2478
|
+
* - `prefixSlotChange() => void`: undefined
|
|
2479
|
+
* - `suffixSlotChange() => void`: undefined
|
|
2480
|
+
*/
|
|
2481
|
+
"w-textfield": Partial<
|
|
2482
|
+
WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents
|
|
2483
|
+
>;
|
|
2484
|
+
|
|
2485
|
+
/**
|
|
2486
|
+
* Component to place inside a `<w-slider>`.
|
|
2487
|
+
*
|
|
2488
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
2489
|
+
*
|
|
2490
|
+
* ## Attributes & Properties
|
|
2491
|
+
*
|
|
2492
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2493
|
+
*
|
|
2494
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
2495
|
+
* - `aria-description`/`ariaDescription`: undefined
|
|
2496
|
+
* - `name`: undefined
|
|
2497
|
+
* - `value`: undefined
|
|
2498
|
+
* - `placeholder`: undefined
|
|
2499
|
+
* - `range`: undefined (property only)
|
|
2500
|
+
* - `tooltipTarget`: undefined (property only)
|
|
2501
|
+
* - `textfield`: undefined (property only)
|
|
2502
|
+
* - `boundaryValue`: undefined (property only) (readonly)
|
|
2503
|
+
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
2504
|
+
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
2505
|
+
* - `ariaDescriptionText`: undefined (property only) (readonly)
|
|
2506
|
+
*
|
|
2507
|
+
* ## Events
|
|
2508
|
+
*
|
|
2509
|
+
* Events that will be emitted by the component.
|
|
2510
|
+
*
|
|
2511
|
+
* - `slidervalidity`: undefined
|
|
2512
|
+
*
|
|
2513
|
+
* ## Methods
|
|
2514
|
+
*
|
|
2515
|
+
* Methods that can be called to access component functionality.
|
|
2516
|
+
*
|
|
2517
|
+
* - `resetFormControl() => void`: undefined
|
|
2518
|
+
* - `updateFieldAfterValidation() => void`: undefined
|
|
2519
|
+
*/
|
|
2520
|
+
"w-slider-thumb": Partial<
|
|
2521
|
+
WarpSliderThumbProps & BaseProps<WarpSliderThumb> & BaseEvents
|
|
2522
|
+
>;
|
|
2523
|
+
|
|
2524
|
+
/**
|
|
2525
|
+
* Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
|
|
2526
|
+
*
|
|
2527
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
2528
|
+
*
|
|
2529
|
+
* ## Attributes & Properties
|
|
2530
|
+
*
|
|
2531
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2532
|
+
*
|
|
2533
|
+
* - `label`: The slider fieldset label. Required for proper accessibility.
|
|
2534
|
+
*
|
|
2535
|
+
* If you need to display HTML, use the `label` slot instead (f. ex. `<legend class="sr-only" slot="label">Production year</legend>`)
|
|
2536
|
+
* - `disabled`: undefined
|
|
2537
|
+
* - `open-ended`/`openEnded`: Whether or not to allow values outside the range such as "Before 1950" and "2025+".
|
|
2538
|
+
* - `error`: undefined
|
|
2539
|
+
* - `help-text`/`helpText`: undefined
|
|
2540
|
+
* - `invalid`: undefined
|
|
2541
|
+
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
2542
|
+
* - `min`: undefined
|
|
2543
|
+
* - `max`: undefined
|
|
2544
|
+
* - `markers`: Pass a value similar to step to create visual markers at that interval
|
|
2545
|
+
* - `step`: undefined
|
|
2546
|
+
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
2547
|
+
* - `hidden-textfield`/`hiddenTextfield`: undefined
|
|
2548
|
+
* - `valueFormatter`: Formatter for the tooltip and input mask values. (property only)
|
|
2549
|
+
* - `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)
|
|
2550
|
+
* - `labelFormatter`: Formatter for the min and max labels below the range. (property only)
|
|
2551
|
+
* - `_invalidMessage`: undefined (property only)
|
|
2552
|
+
* - `_hasInternalError`: undefined (property only)
|
|
2553
|
+
* - `_showError`: undefined (property only)
|
|
2554
|
+
* - `_tabbableElements`: undefined (property only)
|
|
2555
|
+
* - `edgeMin`: undefined (property only) (readonly)
|
|
2556
|
+
* - `edgeMax`: undefined (property only) (readonly)
|
|
2557
|
+
* - `componentHasError`: undefined (property only) (readonly)
|
|
2558
|
+
* - `errorText`: undefined (property only) (readonly)
|
|
2559
|
+
*
|
|
2560
|
+
* ## Slots
|
|
2561
|
+
*
|
|
2562
|
+
* Areas where markup can be added to the component.
|
|
2563
|
+
*
|
|
2564
|
+
* - `(default)`: For single sliders place a `<w-slider-thumb>` in the default slot.
|
|
2565
|
+
* - `label`: Label for the slider or range slider as a whole.
|
|
2566
|
+
* - `description`: Optional description between the label and slider.
|
|
2567
|
+
* - `from`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
2568
|
+
* - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
2569
|
+
*/
|
|
2570
|
+
"w-slider": Partial<WarpSliderProps & BaseProps<WarpSlider> & BaseEvents>;
|
|
2571
|
+
|
|
2221
2572
|
/**
|
|
2222
2573
|
* Individual step component that shows a single step in a process
|
|
2223
2574
|
*
|
|
@@ -2379,61 +2730,11 @@ export type CustomElements = {
|
|
|
2379
2730
|
>;
|
|
2380
2731
|
|
|
2381
2732
|
/**
|
|
2382
|
-
* A single line text input element.
|
|
2383
2733
|
*
|
|
2384
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
2385
2734
|
*
|
|
2386
|
-
* ##
|
|
2735
|
+
* ## Methods
|
|
2387
2736
|
*
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2390
|
-
* - `disabled`: undefined
|
|
2391
|
-
* - `invalid`: undefined
|
|
2392
|
-
* - `id`: undefined
|
|
2393
|
-
* - `label`: undefined
|
|
2394
|
-
* - `help-text`/`helpText`: undefined
|
|
2395
|
-
* - `size`: undefined
|
|
2396
|
-
* - `max`: undefined
|
|
2397
|
-
* - `min`: undefined
|
|
2398
|
-
* - `min-length`/`minLength`: undefined
|
|
2399
|
-
* - `max-length`/`maxLength`: undefined
|
|
2400
|
-
* - `pattern`: undefined
|
|
2401
|
-
* - `placeholder`: undefined
|
|
2402
|
-
* - `read-only`/`readOnly`: undefined
|
|
2403
|
-
* - `readonly`: undefined
|
|
2404
|
-
* - `required`: undefined
|
|
2405
|
-
* - `type`: undefined
|
|
2406
|
-
* - `value`: undefined
|
|
2407
|
-
* - `name`: undefined
|
|
2408
|
-
* - `step`: undefined
|
|
2409
|
-
* - `autocomplete`: undefined
|
|
2410
|
-
* - `formatter`: Function to format value when the input field.
|
|
2411
|
-
*
|
|
2412
|
-
* Only active when the input field does not have focus,
|
|
2413
|
-
* similar to the accessible input masking example from Filament Group
|
|
2414
|
-
*
|
|
2415
|
-
* https://css-tricks.com/input-masking/
|
|
2416
|
-
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
2417
|
-
*
|
|
2418
|
-
* ## Methods
|
|
2419
|
-
*
|
|
2420
|
-
* Methods that can be called to access component functionality.
|
|
2421
|
-
*
|
|
2422
|
-
* - `resetFormControl() => void`: undefined
|
|
2423
|
-
* - `handler(e: Event) => void`: undefined
|
|
2424
|
-
* - `prefixSlotChange() => void`: undefined
|
|
2425
|
-
* - `suffixSlotChange() => void`: undefined
|
|
2426
|
-
*/
|
|
2427
|
-
"w-textfield": Partial<
|
|
2428
|
-
WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents
|
|
2429
|
-
>;
|
|
2430
|
-
|
|
2431
|
-
/**
|
|
2432
|
-
*
|
|
2433
|
-
*
|
|
2434
|
-
* ## Methods
|
|
2435
|
-
*
|
|
2436
|
-
* Methods that can be called to access component functionality.
|
|
2737
|
+
* Methods that can be called to access component functionality.
|
|
2437
2738
|
*
|
|
2438
2739
|
* - `init() => void`: undefined
|
|
2439
2740
|
* - `get(id: string | number) => ToastInternal | undefined`: undefined
|
|
@@ -2443,156 +2744,6 @@ export type CustomElements = {
|
|
|
2443
2744
|
"w-toast-container": Partial<
|
|
2444
2745
|
WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents
|
|
2445
2746
|
>;
|
|
2446
|
-
|
|
2447
|
-
/**
|
|
2448
|
-
*
|
|
2449
|
-
*
|
|
2450
|
-
* ## Attributes & Properties
|
|
2451
|
-
*
|
|
2452
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2453
|
-
*
|
|
2454
|
-
* - `name`: The name of the checkbox, submitted as a name/value pair with form data.
|
|
2455
|
-
* - `value`: The value of the checkbox, submitted as a name/value pair with form data.
|
|
2456
|
-
* - `indeterminate`: Draws the checkbox in an indeterminate state.
|
|
2457
|
-
* - `checked`: Draws the checkbox in a checked state (reflected to attribute).
|
|
2458
|
-
* - `disabled`: Disables the checkbox.
|
|
2459
|
-
* - `required`: Makes the checkbox a required field.
|
|
2460
|
-
* - `invalid`: Draws the checkbox in an invalid state.
|
|
2461
|
-
* - `input`: undefined (property only)
|
|
2462
|
-
* - `validationMessage`: Returns the validation message if the checkbox is invalid, otherwise an empty string (property only) (readonly)
|
|
2463
|
-
* - `validity`: Returns the validity state of the checkbox (property only) (readonly)
|
|
2464
|
-
*
|
|
2465
|
-
* ## Events
|
|
2466
|
-
*
|
|
2467
|
-
* Events that will be emitted by the component.
|
|
2468
|
-
*
|
|
2469
|
-
* - `change`: undefined
|
|
2470
|
-
*
|
|
2471
|
-
* ## Methods
|
|
2472
|
-
*
|
|
2473
|
-
* Methods that can be called to access component functionality.
|
|
2474
|
-
*
|
|
2475
|
-
* - `resetFormControl() => void`: undefined
|
|
2476
|
-
* - `click() => void`: undefined
|
|
2477
|
-
* - `focus(options?: FocusOptions) => void`: undefined
|
|
2478
|
-
* - `blur() => void`: undefined
|
|
2479
|
-
* - `checkValidity() => boolean`: Checks whether the checkbox passes constraint validation
|
|
2480
|
-
* - `reportValidity() => boolean`: Checks validity and shows the browser's validation message if invalid
|
|
2481
|
-
*/
|
|
2482
|
-
"w-checkbox": Partial<WCheckboxProps & BaseProps<WCheckbox> & BaseEvents>;
|
|
2483
|
-
|
|
2484
|
-
/**
|
|
2485
|
-
*
|
|
2486
|
-
*
|
|
2487
|
-
* ## Attributes & Properties
|
|
2488
|
-
*
|
|
2489
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2490
|
-
*
|
|
2491
|
-
* - `label`: The group label displayed above the checkboxes.
|
|
2492
|
-
* - `name`: The name applied to child checkboxes when they do not provide one.
|
|
2493
|
-
* - `optional`: Whether to show optional text next to the label.
|
|
2494
|
-
* - `help-text`/`helpText`: undefined
|
|
2495
|
-
* - `required`: Makes the checkbox group required.
|
|
2496
|
-
* - `invalid`: Marks the checkbox group as invalid.
|
|
2497
|
-
*
|
|
2498
|
-
* ## Methods
|
|
2499
|
-
*
|
|
2500
|
-
* Methods that can be called to access component functionality.
|
|
2501
|
-
*
|
|
2502
|
-
* - `checkValidity() => boolean`: Checks whether the group passes constraint validation
|
|
2503
|
-
* - `reportValidity() => boolean`: Checks validity and shows the validation message if invalid
|
|
2504
|
-
* - `focus(options?: FocusOptions) => void`: Sets focus on the checkbox group.
|
|
2505
|
-
*/
|
|
2506
|
-
"w-checkbox-group": Partial<
|
|
2507
|
-
WCheckboxGroupProps & BaseProps<WCheckboxGroup> & BaseEvents
|
|
2508
|
-
>;
|
|
2509
|
-
|
|
2510
|
-
/**
|
|
2511
|
-
* Component to place inside a `<w-slider>`.
|
|
2512
|
-
*
|
|
2513
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
2514
|
-
*
|
|
2515
|
-
* ## Attributes & Properties
|
|
2516
|
-
*
|
|
2517
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2518
|
-
*
|
|
2519
|
-
* - `aria-label`/`ariaLabel`: undefined
|
|
2520
|
-
* - `aria-description`/`ariaDescription`: undefined
|
|
2521
|
-
* - `name`: undefined
|
|
2522
|
-
* - `value`: undefined
|
|
2523
|
-
* - `placeholder`: undefined
|
|
2524
|
-
* - `range`: undefined (property only)
|
|
2525
|
-
* - `tooltipTarget`: undefined (property only)
|
|
2526
|
-
* - `textfield`: undefined (property only)
|
|
2527
|
-
* - `boundaryValue`: undefined (property only) (readonly)
|
|
2528
|
-
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
2529
|
-
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
2530
|
-
* - `ariaDescriptionText`: undefined (property only) (readonly)
|
|
2531
|
-
*
|
|
2532
|
-
* ## Events
|
|
2533
|
-
*
|
|
2534
|
-
* Events that will be emitted by the component.
|
|
2535
|
-
*
|
|
2536
|
-
* - `slidervalidity`: undefined
|
|
2537
|
-
*
|
|
2538
|
-
* ## Methods
|
|
2539
|
-
*
|
|
2540
|
-
* Methods that can be called to access component functionality.
|
|
2541
|
-
*
|
|
2542
|
-
* - `resetFormControl() => void`: undefined
|
|
2543
|
-
* - `updateFieldAfterValidation() => void`: undefined
|
|
2544
|
-
*/
|
|
2545
|
-
"w-slider-thumb": Partial<
|
|
2546
|
-
WarpSliderThumbProps & BaseProps<WarpSliderThumb> & BaseEvents
|
|
2547
|
-
>;
|
|
2548
|
-
|
|
2549
|
-
/**
|
|
2550
|
-
* Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
|
|
2551
|
-
*
|
|
2552
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
2553
|
-
*
|
|
2554
|
-
* ## Attributes & Properties
|
|
2555
|
-
*
|
|
2556
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2557
|
-
*
|
|
2558
|
-
* - `label`: The slider fieldset label. Required for proper accessibility.
|
|
2559
|
-
*
|
|
2560
|
-
* If you need to display HTML, use the `label` slot instead (f. ex. `<legend class="sr-only" slot="label">Production year</legend>`)
|
|
2561
|
-
* - `disabled`: undefined
|
|
2562
|
-
* - `open-ended`/`openEnded`: Whether or not to allow values outside the range such as "Before 1950" and "2025+".
|
|
2563
|
-
* - `error`: undefined
|
|
2564
|
-
* - `help-text`/`helpText`: undefined
|
|
2565
|
-
* - `invalid`: undefined
|
|
2566
|
-
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
2567
|
-
* - `min`: undefined
|
|
2568
|
-
* - `max`: undefined
|
|
2569
|
-
* - `markers`: Pass a value similar to step to create visual markers at that interval
|
|
2570
|
-
* - `step`: undefined
|
|
2571
|
-
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
2572
|
-
* - `hidden-textfield`/`hiddenTextfield`: undefined
|
|
2573
|
-
* - `valueFormatter`: Formatter for the tooltip and input mask values. (property only)
|
|
2574
|
-
* - `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)
|
|
2575
|
-
* - `labelFormatter`: Formatter for the min and max labels below the range. (property only)
|
|
2576
|
-
* - `_invalidMessage`: undefined (property only)
|
|
2577
|
-
* - `_hasInternalError`: undefined (property only)
|
|
2578
|
-
* - `_showError`: undefined (property only)
|
|
2579
|
-
* - `_tabbableElements`: undefined (property only)
|
|
2580
|
-
* - `edgeMin`: undefined (property only) (readonly)
|
|
2581
|
-
* - `edgeMax`: undefined (property only) (readonly)
|
|
2582
|
-
* - `componentHasError`: undefined (property only) (readonly)
|
|
2583
|
-
* - `errorText`: undefined (property only) (readonly)
|
|
2584
|
-
*
|
|
2585
|
-
* ## Slots
|
|
2586
|
-
*
|
|
2587
|
-
* Areas where markup can be added to the component.
|
|
2588
|
-
*
|
|
2589
|
-
* - `(default)`: For single sliders place a `<w-slider-thumb>` in the default slot.
|
|
2590
|
-
* - `label`: Label for the slider or range slider as a whole.
|
|
2591
|
-
* - `description`: Optional description between the label and slider.
|
|
2592
|
-
* - `from`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
2593
|
-
* - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
2594
|
-
*/
|
|
2595
|
-
"w-slider": Partial<WarpSliderProps & BaseProps<WarpSlider> & BaseEvents>;
|
|
2596
2747
|
};
|
|
2597
2748
|
|
|
2598
2749
|
export type CustomElementsSolidJs = {
|
|
@@ -2831,62 +2982,130 @@ export type CustomElementsSolidJs = {
|
|
|
2831
2982
|
>;
|
|
2832
2983
|
|
|
2833
2984
|
/**
|
|
2834
|
-
* A combobox element for text input with selectable options.
|
|
2835
2985
|
*
|
|
2836
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
2837
2986
|
*
|
|
2838
2987
|
* ## Attributes & Properties
|
|
2839
2988
|
*
|
|
2840
2989
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2841
2990
|
*
|
|
2842
|
-
* - `
|
|
2843
|
-
* - `
|
|
2844
|
-
* - `
|
|
2845
|
-
* - `
|
|
2846
|
-
* - `
|
|
2847
|
-
* - `
|
|
2848
|
-
* - `
|
|
2849
|
-
* - `
|
|
2850
|
-
* - `
|
|
2851
|
-
* - `
|
|
2852
|
-
*
|
|
2853
|
-
*
|
|
2854
|
-
*
|
|
2855
|
-
*
|
|
2856
|
-
*
|
|
2991
|
+
* - `name`: The name of the checkbox, submitted as a name/value pair with form data.
|
|
2992
|
+
* - `value`: The value of the checkbox, submitted as a name/value pair with form data.
|
|
2993
|
+
* - `indeterminate`: Draws the checkbox in an indeterminate state.
|
|
2994
|
+
* - `checked`: Draws the checkbox in a checked state (reflected to attribute).
|
|
2995
|
+
* - `disabled`: Disables the checkbox.
|
|
2996
|
+
* - `required`: Makes the checkbox a required field.
|
|
2997
|
+
* - `invalid`: Draws the checkbox in an invalid state.
|
|
2998
|
+
* - `input`: undefined (property only)
|
|
2999
|
+
* - `validationMessage`: Returns the validation message if the checkbox is invalid, otherwise an empty string (property only) (readonly)
|
|
3000
|
+
* - `validity`: Returns the validity state of the checkbox (property only) (readonly)
|
|
3001
|
+
*
|
|
3002
|
+
* ## Events
|
|
3003
|
+
*
|
|
3004
|
+
* Events that will be emitted by the component.
|
|
3005
|
+
*
|
|
3006
|
+
* - `change`: undefined
|
|
2857
3007
|
*
|
|
2858
3008
|
* ## Methods
|
|
2859
3009
|
*
|
|
2860
3010
|
* Methods that can be called to access component functionality.
|
|
2861
3011
|
*
|
|
2862
3012
|
* - `resetFormControl() => void`: undefined
|
|
3013
|
+
* - `click() => void`: undefined
|
|
3014
|
+
* - `focus(options?: FocusOptions) => void`: undefined
|
|
3015
|
+
* - `blur() => void`: undefined
|
|
3016
|
+
* - `checkValidity() => boolean`: Checks whether the checkbox passes constraint validation
|
|
3017
|
+
* - `reportValidity() => boolean`: Checks validity and shows the browser's validation message if invalid
|
|
2863
3018
|
*/
|
|
2864
|
-
"w-
|
|
2865
|
-
|
|
2866
|
-
WarpComboboxSolidJsProps &
|
|
2867
|
-
BaseProps<WarpCombobox> &
|
|
2868
|
-
BaseEvents
|
|
3019
|
+
"w-checkbox": Partial<
|
|
3020
|
+
WCheckboxProps & WCheckboxSolidJsProps & BaseProps<WCheckbox> & BaseEvents
|
|
2869
3021
|
>;
|
|
2870
3022
|
|
|
2871
3023
|
/**
|
|
2872
|
-
* An input for dates.
|
|
2873
|
-
*
|
|
2874
|
-
* Uses the `lang` attribute on either the element or on `<html>` to determine the locale options.
|
|
2875
3024
|
*
|
|
2876
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)
|
|
2877
3025
|
*
|
|
2878
3026
|
* ## Attributes & Properties
|
|
2879
3027
|
*
|
|
2880
3028
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2881
3029
|
*
|
|
2882
|
-
* - `label`:
|
|
2883
|
-
* - `
|
|
2884
|
-
* - `
|
|
2885
|
-
* - `
|
|
2886
|
-
* - `
|
|
3030
|
+
* - `label`: The group label displayed above the checkboxes.
|
|
3031
|
+
* - `name`: The name applied to child checkboxes when they do not provide one.
|
|
3032
|
+
* - `optional`: Whether to show optional text next to the label.
|
|
3033
|
+
* - `help-text`/`helpText`: undefined
|
|
3034
|
+
* - `required`: Makes the checkbox group required.
|
|
3035
|
+
* - `invalid`: Marks the checkbox group as invalid.
|
|
2887
3036
|
*
|
|
2888
|
-
*
|
|
2889
|
-
*
|
|
3037
|
+
* ## Methods
|
|
3038
|
+
*
|
|
3039
|
+
* Methods that can be called to access component functionality.
|
|
3040
|
+
*
|
|
3041
|
+
* - `checkValidity() => boolean`: Checks whether the group passes constraint validation
|
|
3042
|
+
* - `reportValidity() => boolean`: Checks validity and shows the validation message if invalid
|
|
3043
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the checkbox group.
|
|
3044
|
+
*/
|
|
3045
|
+
"w-checkbox-group": Partial<
|
|
3046
|
+
WCheckboxGroupProps &
|
|
3047
|
+
WCheckboxGroupSolidJsProps &
|
|
3048
|
+
BaseProps<WCheckboxGroup> &
|
|
3049
|
+
BaseEvents
|
|
3050
|
+
>;
|
|
3051
|
+
|
|
3052
|
+
/**
|
|
3053
|
+
* A combobox element for text input with selectable options.
|
|
3054
|
+
*
|
|
3055
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
3056
|
+
*
|
|
3057
|
+
* ## Attributes & Properties
|
|
3058
|
+
*
|
|
3059
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3060
|
+
*
|
|
3061
|
+
* - `options`: The available options to select from
|
|
3062
|
+
* - `label`: Label above input
|
|
3063
|
+
* - `placeholder`: Input placeholder
|
|
3064
|
+
* - `value`: The input value
|
|
3065
|
+
* - `open-on-focus`/`openOnFocus`: Whether the popover opens when focus is on the text field
|
|
3066
|
+
* - `select-on-blur`/`selectOnBlur`: Select active option on blur
|
|
3067
|
+
* - `match-text-segments`/`matchTextSegments`: Whether the matching text segments in the options should be highlighted
|
|
3068
|
+
* - `disable-static-filtering`/`disableStaticFiltering`: Disable client-side static filtering
|
|
3069
|
+
* - `invalid`: Renders the input field in an invalid state
|
|
3070
|
+
* - `help-text`/`helpText`: The content to display as the help text
|
|
3071
|
+
* - `disabled`: Whether the element is disabled
|
|
3072
|
+
* - `required`: Whether the element is required
|
|
3073
|
+
* - `optional`: Whether to show optional text
|
|
3074
|
+
* - `name`: Name attribute for form submission
|
|
3075
|
+
* - `autocomplete`: Autocomplete attribute for the input field
|
|
3076
|
+
*
|
|
3077
|
+
* ## Methods
|
|
3078
|
+
*
|
|
3079
|
+
* Methods that can be called to access component functionality.
|
|
3080
|
+
*
|
|
3081
|
+
* - `resetFormControl() => void`: undefined
|
|
3082
|
+
*/
|
|
3083
|
+
"w-combobox": Partial<
|
|
3084
|
+
WarpComboboxProps &
|
|
3085
|
+
WarpComboboxSolidJsProps &
|
|
3086
|
+
BaseProps<WarpCombobox> &
|
|
3087
|
+
BaseEvents
|
|
3088
|
+
>;
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* An input for dates.
|
|
3092
|
+
*
|
|
3093
|
+
* Uses the `lang` attribute on either the element or on `<html>` to determine the locale options.
|
|
3094
|
+
*
|
|
3095
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)
|
|
3096
|
+
*
|
|
3097
|
+
* ## Attributes & Properties
|
|
3098
|
+
*
|
|
3099
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3100
|
+
*
|
|
3101
|
+
* - `label`: undefined
|
|
3102
|
+
* - `lang`: Takes precedence over the `<html>` lang attribute.
|
|
3103
|
+
* - `name`: undefined
|
|
3104
|
+
* - `value`: undefined
|
|
3105
|
+
* - `header-format`/`headerFormat`: Decides the format of the date as shown in the calendar header.
|
|
3106
|
+
*
|
|
3107
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
3108
|
+
* - `weekday-format`/`weekdayFormat`: Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
2890
3109
|
*
|
|
2891
3110
|
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
2892
3111
|
* - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
|
|
@@ -3135,6 +3354,76 @@ export type CustomElementsSolidJs = {
|
|
|
3135
3354
|
WarpPillProps & WarpPillSolidJsProps & BaseProps<WarpPill> & BaseEvents
|
|
3136
3355
|
>;
|
|
3137
3356
|
|
|
3357
|
+
/**
|
|
3358
|
+
*
|
|
3359
|
+
*
|
|
3360
|
+
* ## Attributes & Properties
|
|
3361
|
+
*
|
|
3362
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3363
|
+
*
|
|
3364
|
+
* - `name`: The name of the radio, submitted as a name/value pair with form data.
|
|
3365
|
+
* - `value`: The radio's value. When selected, the radio group will receive this value.
|
|
3366
|
+
* - `checked`: Draws the radio in a checked state (reflected to attribute).
|
|
3367
|
+
* - `disabled`: Disables the radio.
|
|
3368
|
+
* - `required`: Makes the radio a required field.
|
|
3369
|
+
* - `invalid`: Draws the radio in an invalid state.
|
|
3370
|
+
* - `validationMessage`: Returns the validation message if the radio is invalid, otherwise an empty string (property only) (readonly)
|
|
3371
|
+
* - `validity`: Returns the validity state of the radio (property only) (readonly)
|
|
3372
|
+
*
|
|
3373
|
+
* ## Methods
|
|
3374
|
+
*
|
|
3375
|
+
* Methods that can be called to access component functionality.
|
|
3376
|
+
*
|
|
3377
|
+
* - `resetFormControl() => void`: undefined
|
|
3378
|
+
* - `checkValidity() => boolean`: Checks whether the radio passes constraint validation
|
|
3379
|
+
* - `reportValidity() => boolean`: Checks validity and shows the browser's validation message if invalid
|
|
3380
|
+
*/
|
|
3381
|
+
"w-radio": Partial<
|
|
3382
|
+
WRadioProps & WRadioSolidJsProps & BaseProps<WRadio> & BaseEvents
|
|
3383
|
+
>;
|
|
3384
|
+
|
|
3385
|
+
/**
|
|
3386
|
+
*
|
|
3387
|
+
*
|
|
3388
|
+
* ## Attributes & Properties
|
|
3389
|
+
*
|
|
3390
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3391
|
+
*
|
|
3392
|
+
* - `label`: The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
3393
|
+
* instead.
|
|
3394
|
+
* - `help-text`/`helpText`: The radio group's help text. If you need to display HTML, use the `help-text` slot instead.
|
|
3395
|
+
* - `optional`: Optional indicator for the label.
|
|
3396
|
+
* - `invalid`: Marks the radio group as invalid.
|
|
3397
|
+
* - `name`: The name of the radio group
|
|
3398
|
+
* - `disabled`: Disables the radio group and all child radios.
|
|
3399
|
+
* - `required`: Ensures a child radio is checked before allowing the containing form to submit.
|
|
3400
|
+
* - `hasInteracted`: undefined (property only)
|
|
3401
|
+
* - `validationTarget`: We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on
|
|
3402
|
+
* the first radio element. (property only) (readonly)
|
|
3403
|
+
*
|
|
3404
|
+
* ## Slots
|
|
3405
|
+
*
|
|
3406
|
+
* Areas where markup can be added to the component.
|
|
3407
|
+
*
|
|
3408
|
+
* - `label`: Alternative to the `label` attribute should you need custom HTML.
|
|
3409
|
+
* - `help-text`: Alternative to the `help-text` attribute should you need custom HTML.
|
|
3410
|
+
*
|
|
3411
|
+
* ## Methods
|
|
3412
|
+
*
|
|
3413
|
+
* Methods that can be called to access component functionality.
|
|
3414
|
+
*
|
|
3415
|
+
* - `resetFormControl() => void`: undefined
|
|
3416
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the radio group.
|
|
3417
|
+
* - `checkValidity() => void`: undefined
|
|
3418
|
+
* - `reportValidity() => void`: undefined
|
|
3419
|
+
*/
|
|
3420
|
+
"w-radio-group": Partial<
|
|
3421
|
+
WRadioGroupProps &
|
|
3422
|
+
WRadioGroupSolidJsProps &
|
|
3423
|
+
BaseProps<WRadioGroup> &
|
|
3424
|
+
BaseEvents
|
|
3425
|
+
>;
|
|
3426
|
+
|
|
3138
3427
|
/**
|
|
3139
3428
|
* A dropdown component for selecting a single value.
|
|
3140
3429
|
*
|
|
@@ -3173,6 +3462,154 @@ export type CustomElementsSolidJs = {
|
|
|
3173
3462
|
BaseEvents
|
|
3174
3463
|
>;
|
|
3175
3464
|
|
|
3465
|
+
/**
|
|
3466
|
+
* A single line text input element.
|
|
3467
|
+
*
|
|
3468
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
3469
|
+
*
|
|
3470
|
+
* ## Attributes & Properties
|
|
3471
|
+
*
|
|
3472
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3473
|
+
*
|
|
3474
|
+
* - `disabled`: undefined
|
|
3475
|
+
* - `invalid`: undefined
|
|
3476
|
+
* - `id`: undefined
|
|
3477
|
+
* - `label`: undefined
|
|
3478
|
+
* - `help-text`/`helpText`: undefined
|
|
3479
|
+
* - `size`: undefined
|
|
3480
|
+
* - `max`: undefined
|
|
3481
|
+
* - `min`: undefined
|
|
3482
|
+
* - `min-length`/`minLength`: undefined
|
|
3483
|
+
* - `max-length`/`maxLength`: undefined
|
|
3484
|
+
* - `pattern`: undefined
|
|
3485
|
+
* - `placeholder`: undefined
|
|
3486
|
+
* - `read-only`/`readOnly`: undefined
|
|
3487
|
+
* - `readonly`: undefined
|
|
3488
|
+
* - `required`: undefined
|
|
3489
|
+
* - `type`: undefined
|
|
3490
|
+
* - `value`: undefined
|
|
3491
|
+
* - `name`: undefined
|
|
3492
|
+
* - `step`: undefined
|
|
3493
|
+
* - `autocomplete`: undefined
|
|
3494
|
+
* - `formatter`: Function to format value when the input field.
|
|
3495
|
+
*
|
|
3496
|
+
* Only active when the input field does not have focus,
|
|
3497
|
+
* similar to the accessible input masking example from Filament Group
|
|
3498
|
+
*
|
|
3499
|
+
* https://css-tricks.com/input-masking/
|
|
3500
|
+
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
3501
|
+
*
|
|
3502
|
+
* ## Methods
|
|
3503
|
+
*
|
|
3504
|
+
* Methods that can be called to access component functionality.
|
|
3505
|
+
*
|
|
3506
|
+
* - `resetFormControl() => void`: undefined
|
|
3507
|
+
* - `handler(e: Event) => void`: undefined
|
|
3508
|
+
* - `prefixSlotChange() => void`: undefined
|
|
3509
|
+
* - `suffixSlotChange() => void`: undefined
|
|
3510
|
+
*/
|
|
3511
|
+
"w-textfield": Partial<
|
|
3512
|
+
WarpTextFieldProps &
|
|
3513
|
+
WarpTextFieldSolidJsProps &
|
|
3514
|
+
BaseProps<WarpTextField> &
|
|
3515
|
+
BaseEvents
|
|
3516
|
+
>;
|
|
3517
|
+
|
|
3518
|
+
/**
|
|
3519
|
+
* Component to place inside a `<w-slider>`.
|
|
3520
|
+
*
|
|
3521
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
3522
|
+
*
|
|
3523
|
+
* ## Attributes & Properties
|
|
3524
|
+
*
|
|
3525
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3526
|
+
*
|
|
3527
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
3528
|
+
* - `aria-description`/`ariaDescription`: undefined
|
|
3529
|
+
* - `name`: undefined
|
|
3530
|
+
* - `value`: undefined
|
|
3531
|
+
* - `placeholder`: undefined
|
|
3532
|
+
* - `range`: undefined (property only)
|
|
3533
|
+
* - `tooltipTarget`: undefined (property only)
|
|
3534
|
+
* - `textfield`: undefined (property only)
|
|
3535
|
+
* - `boundaryValue`: undefined (property only) (readonly)
|
|
3536
|
+
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
3537
|
+
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
3538
|
+
* - `ariaDescriptionText`: undefined (property only) (readonly)
|
|
3539
|
+
*
|
|
3540
|
+
* ## Events
|
|
3541
|
+
*
|
|
3542
|
+
* Events that will be emitted by the component.
|
|
3543
|
+
*
|
|
3544
|
+
* - `slidervalidity`: undefined
|
|
3545
|
+
*
|
|
3546
|
+
* ## Methods
|
|
3547
|
+
*
|
|
3548
|
+
* Methods that can be called to access component functionality.
|
|
3549
|
+
*
|
|
3550
|
+
* - `resetFormControl() => void`: undefined
|
|
3551
|
+
* - `updateFieldAfterValidation() => void`: undefined
|
|
3552
|
+
*/
|
|
3553
|
+
"w-slider-thumb": Partial<
|
|
3554
|
+
WarpSliderThumbProps &
|
|
3555
|
+
WarpSliderThumbSolidJsProps &
|
|
3556
|
+
BaseProps<WarpSliderThumb> &
|
|
3557
|
+
BaseEvents
|
|
3558
|
+
>;
|
|
3559
|
+
|
|
3560
|
+
/**
|
|
3561
|
+
* Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
|
|
3562
|
+
*
|
|
3563
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
3564
|
+
*
|
|
3565
|
+
* ## Attributes & Properties
|
|
3566
|
+
*
|
|
3567
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3568
|
+
*
|
|
3569
|
+
* - `label`: The slider fieldset label. Required for proper accessibility.
|
|
3570
|
+
*
|
|
3571
|
+
* If you need to display HTML, use the `label` slot instead (f. ex. `<legend class="sr-only" slot="label">Production year</legend>`)
|
|
3572
|
+
* - `disabled`: undefined
|
|
3573
|
+
* - `open-ended`/`openEnded`: Whether or not to allow values outside the range such as "Before 1950" and "2025+".
|
|
3574
|
+
* - `error`: undefined
|
|
3575
|
+
* - `help-text`/`helpText`: undefined
|
|
3576
|
+
* - `invalid`: undefined
|
|
3577
|
+
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
3578
|
+
* - `min`: undefined
|
|
3579
|
+
* - `max`: undefined
|
|
3580
|
+
* - `markers`: Pass a value similar to step to create visual markers at that interval
|
|
3581
|
+
* - `step`: undefined
|
|
3582
|
+
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
3583
|
+
* - `hidden-textfield`/`hiddenTextfield`: undefined
|
|
3584
|
+
* - `valueFormatter`: Formatter for the tooltip and input mask values. (property only)
|
|
3585
|
+
* - `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)
|
|
3586
|
+
* - `labelFormatter`: Formatter for the min and max labels below the range. (property only)
|
|
3587
|
+
* - `_invalidMessage`: undefined (property only)
|
|
3588
|
+
* - `_hasInternalError`: undefined (property only)
|
|
3589
|
+
* - `_showError`: undefined (property only)
|
|
3590
|
+
* - `_tabbableElements`: undefined (property only)
|
|
3591
|
+
* - `edgeMin`: undefined (property only) (readonly)
|
|
3592
|
+
* - `edgeMax`: undefined (property only) (readonly)
|
|
3593
|
+
* - `componentHasError`: undefined (property only) (readonly)
|
|
3594
|
+
* - `errorText`: undefined (property only) (readonly)
|
|
3595
|
+
*
|
|
3596
|
+
* ## Slots
|
|
3597
|
+
*
|
|
3598
|
+
* Areas where markup can be added to the component.
|
|
3599
|
+
*
|
|
3600
|
+
* - `(default)`: For single sliders place a `<w-slider-thumb>` in the default slot.
|
|
3601
|
+
* - `label`: Label for the slider or range slider as a whole.
|
|
3602
|
+
* - `description`: Optional description between the label and slider.
|
|
3603
|
+
* - `from`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
3604
|
+
* - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
3605
|
+
*/
|
|
3606
|
+
"w-slider": Partial<
|
|
3607
|
+
WarpSliderProps &
|
|
3608
|
+
WarpSliderSolidJsProps &
|
|
3609
|
+
BaseProps<WarpSlider> &
|
|
3610
|
+
BaseEvents
|
|
3611
|
+
>;
|
|
3612
|
+
|
|
3176
3613
|
/**
|
|
3177
3614
|
* Individual step component that shows a single step in a process
|
|
3178
3615
|
*
|
|
@@ -3353,59 +3790,6 @@ export type CustomElementsSolidJs = {
|
|
|
3353
3790
|
BaseEvents
|
|
3354
3791
|
>;
|
|
3355
3792
|
|
|
3356
|
-
/**
|
|
3357
|
-
* A single line text input element.
|
|
3358
|
-
*
|
|
3359
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
3360
|
-
*
|
|
3361
|
-
* ## Attributes & Properties
|
|
3362
|
-
*
|
|
3363
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3364
|
-
*
|
|
3365
|
-
* - `disabled`: undefined
|
|
3366
|
-
* - `invalid`: undefined
|
|
3367
|
-
* - `id`: undefined
|
|
3368
|
-
* - `label`: undefined
|
|
3369
|
-
* - `help-text`/`helpText`: undefined
|
|
3370
|
-
* - `size`: undefined
|
|
3371
|
-
* - `max`: undefined
|
|
3372
|
-
* - `min`: undefined
|
|
3373
|
-
* - `min-length`/`minLength`: undefined
|
|
3374
|
-
* - `max-length`/`maxLength`: undefined
|
|
3375
|
-
* - `pattern`: undefined
|
|
3376
|
-
* - `placeholder`: undefined
|
|
3377
|
-
* - `read-only`/`readOnly`: undefined
|
|
3378
|
-
* - `readonly`: undefined
|
|
3379
|
-
* - `required`: undefined
|
|
3380
|
-
* - `type`: undefined
|
|
3381
|
-
* - `value`: undefined
|
|
3382
|
-
* - `name`: undefined
|
|
3383
|
-
* - `step`: undefined
|
|
3384
|
-
* - `autocomplete`: undefined
|
|
3385
|
-
* - `formatter`: Function to format value when the input field.
|
|
3386
|
-
*
|
|
3387
|
-
* Only active when the input field does not have focus,
|
|
3388
|
-
* similar to the accessible input masking example from Filament Group
|
|
3389
|
-
*
|
|
3390
|
-
* https://css-tricks.com/input-masking/
|
|
3391
|
-
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
3392
|
-
*
|
|
3393
|
-
* ## Methods
|
|
3394
|
-
*
|
|
3395
|
-
* Methods that can be called to access component functionality.
|
|
3396
|
-
*
|
|
3397
|
-
* - `resetFormControl() => void`: undefined
|
|
3398
|
-
* - `handler(e: Event) => void`: undefined
|
|
3399
|
-
* - `prefixSlotChange() => void`: undefined
|
|
3400
|
-
* - `suffixSlotChange() => void`: undefined
|
|
3401
|
-
*/
|
|
3402
|
-
"w-textfield": Partial<
|
|
3403
|
-
WarpTextFieldProps &
|
|
3404
|
-
WarpTextFieldSolidJsProps &
|
|
3405
|
-
BaseProps<WarpTextField> &
|
|
3406
|
-
BaseEvents
|
|
3407
|
-
>;
|
|
3408
|
-
|
|
3409
3793
|
/**
|
|
3410
3794
|
*
|
|
3411
3795
|
*
|
|
@@ -3424,169 +3808,6 @@ export type CustomElementsSolidJs = {
|
|
|
3424
3808
|
BaseProps<WarpToastContainer> &
|
|
3425
3809
|
BaseEvents
|
|
3426
3810
|
>;
|
|
3427
|
-
|
|
3428
|
-
/**
|
|
3429
|
-
*
|
|
3430
|
-
*
|
|
3431
|
-
* ## Attributes & Properties
|
|
3432
|
-
*
|
|
3433
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3434
|
-
*
|
|
3435
|
-
* - `name`: The name of the checkbox, submitted as a name/value pair with form data.
|
|
3436
|
-
* - `value`: The value of the checkbox, submitted as a name/value pair with form data.
|
|
3437
|
-
* - `indeterminate`: Draws the checkbox in an indeterminate state.
|
|
3438
|
-
* - `checked`: Draws the checkbox in a checked state (reflected to attribute).
|
|
3439
|
-
* - `disabled`: Disables the checkbox.
|
|
3440
|
-
* - `required`: Makes the checkbox a required field.
|
|
3441
|
-
* - `invalid`: Draws the checkbox in an invalid state.
|
|
3442
|
-
* - `input`: undefined (property only)
|
|
3443
|
-
* - `validationMessage`: Returns the validation message if the checkbox is invalid, otherwise an empty string (property only) (readonly)
|
|
3444
|
-
* - `validity`: Returns the validity state of the checkbox (property only) (readonly)
|
|
3445
|
-
*
|
|
3446
|
-
* ## Events
|
|
3447
|
-
*
|
|
3448
|
-
* Events that will be emitted by the component.
|
|
3449
|
-
*
|
|
3450
|
-
* - `change`: undefined
|
|
3451
|
-
*
|
|
3452
|
-
* ## Methods
|
|
3453
|
-
*
|
|
3454
|
-
* Methods that can be called to access component functionality.
|
|
3455
|
-
*
|
|
3456
|
-
* - `resetFormControl() => void`: undefined
|
|
3457
|
-
* - `click() => void`: undefined
|
|
3458
|
-
* - `focus(options?: FocusOptions) => void`: undefined
|
|
3459
|
-
* - `blur() => void`: undefined
|
|
3460
|
-
* - `checkValidity() => boolean`: Checks whether the checkbox passes constraint validation
|
|
3461
|
-
* - `reportValidity() => boolean`: Checks validity and shows the browser's validation message if invalid
|
|
3462
|
-
*/
|
|
3463
|
-
"w-checkbox": Partial<
|
|
3464
|
-
WCheckboxProps & WCheckboxSolidJsProps & BaseProps<WCheckbox> & BaseEvents
|
|
3465
|
-
>;
|
|
3466
|
-
|
|
3467
|
-
/**
|
|
3468
|
-
*
|
|
3469
|
-
*
|
|
3470
|
-
* ## Attributes & Properties
|
|
3471
|
-
*
|
|
3472
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3473
|
-
*
|
|
3474
|
-
* - `label`: The group label displayed above the checkboxes.
|
|
3475
|
-
* - `name`: The name applied to child checkboxes when they do not provide one.
|
|
3476
|
-
* - `optional`: Whether to show optional text next to the label.
|
|
3477
|
-
* - `help-text`/`helpText`: undefined
|
|
3478
|
-
* - `required`: Makes the checkbox group required.
|
|
3479
|
-
* - `invalid`: Marks the checkbox group as invalid.
|
|
3480
|
-
*
|
|
3481
|
-
* ## Methods
|
|
3482
|
-
*
|
|
3483
|
-
* Methods that can be called to access component functionality.
|
|
3484
|
-
*
|
|
3485
|
-
* - `checkValidity() => boolean`: Checks whether the group passes constraint validation
|
|
3486
|
-
* - `reportValidity() => boolean`: Checks validity and shows the validation message if invalid
|
|
3487
|
-
* - `focus(options?: FocusOptions) => void`: Sets focus on the checkbox group.
|
|
3488
|
-
*/
|
|
3489
|
-
"w-checkbox-group": Partial<
|
|
3490
|
-
WCheckboxGroupProps &
|
|
3491
|
-
WCheckboxGroupSolidJsProps &
|
|
3492
|
-
BaseProps<WCheckboxGroup> &
|
|
3493
|
-
BaseEvents
|
|
3494
|
-
>;
|
|
3495
|
-
|
|
3496
|
-
/**
|
|
3497
|
-
* Component to place inside a `<w-slider>`.
|
|
3498
|
-
*
|
|
3499
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
3500
|
-
*
|
|
3501
|
-
* ## Attributes & Properties
|
|
3502
|
-
*
|
|
3503
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3504
|
-
*
|
|
3505
|
-
* - `aria-label`/`ariaLabel`: undefined
|
|
3506
|
-
* - `aria-description`/`ariaDescription`: undefined
|
|
3507
|
-
* - `name`: undefined
|
|
3508
|
-
* - `value`: undefined
|
|
3509
|
-
* - `placeholder`: undefined
|
|
3510
|
-
* - `range`: undefined (property only)
|
|
3511
|
-
* - `tooltipTarget`: undefined (property only)
|
|
3512
|
-
* - `textfield`: undefined (property only)
|
|
3513
|
-
* - `boundaryValue`: undefined (property only) (readonly)
|
|
3514
|
-
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
3515
|
-
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
3516
|
-
* - `ariaDescriptionText`: undefined (property only) (readonly)
|
|
3517
|
-
*
|
|
3518
|
-
* ## Events
|
|
3519
|
-
*
|
|
3520
|
-
* Events that will be emitted by the component.
|
|
3521
|
-
*
|
|
3522
|
-
* - `slidervalidity`: undefined
|
|
3523
|
-
*
|
|
3524
|
-
* ## Methods
|
|
3525
|
-
*
|
|
3526
|
-
* Methods that can be called to access component functionality.
|
|
3527
|
-
*
|
|
3528
|
-
* - `resetFormControl() => void`: undefined
|
|
3529
|
-
* - `updateFieldAfterValidation() => void`: undefined
|
|
3530
|
-
*/
|
|
3531
|
-
"w-slider-thumb": Partial<
|
|
3532
|
-
WarpSliderThumbProps &
|
|
3533
|
-
WarpSliderThumbSolidJsProps &
|
|
3534
|
-
BaseProps<WarpSliderThumb> &
|
|
3535
|
-
BaseEvents
|
|
3536
|
-
>;
|
|
3537
|
-
|
|
3538
|
-
/**
|
|
3539
|
-
* Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
|
|
3540
|
-
*
|
|
3541
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
3542
|
-
*
|
|
3543
|
-
* ## Attributes & Properties
|
|
3544
|
-
*
|
|
3545
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3546
|
-
*
|
|
3547
|
-
* - `label`: The slider fieldset label. Required for proper accessibility.
|
|
3548
|
-
*
|
|
3549
|
-
* If you need to display HTML, use the `label` slot instead (f. ex. `<legend class="sr-only" slot="label">Production year</legend>`)
|
|
3550
|
-
* - `disabled`: undefined
|
|
3551
|
-
* - `open-ended`/`openEnded`: Whether or not to allow values outside the range such as "Before 1950" and "2025+".
|
|
3552
|
-
* - `error`: undefined
|
|
3553
|
-
* - `help-text`/`helpText`: undefined
|
|
3554
|
-
* - `invalid`: undefined
|
|
3555
|
-
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
3556
|
-
* - `min`: undefined
|
|
3557
|
-
* - `max`: undefined
|
|
3558
|
-
* - `markers`: Pass a value similar to step to create visual markers at that interval
|
|
3559
|
-
* - `step`: undefined
|
|
3560
|
-
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
3561
|
-
* - `hidden-textfield`/`hiddenTextfield`: undefined
|
|
3562
|
-
* - `valueFormatter`: Formatter for the tooltip and input mask values. (property only)
|
|
3563
|
-
* - `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)
|
|
3564
|
-
* - `labelFormatter`: Formatter for the min and max labels below the range. (property only)
|
|
3565
|
-
* - `_invalidMessage`: undefined (property only)
|
|
3566
|
-
* - `_hasInternalError`: undefined (property only)
|
|
3567
|
-
* - `_showError`: undefined (property only)
|
|
3568
|
-
* - `_tabbableElements`: undefined (property only)
|
|
3569
|
-
* - `edgeMin`: undefined (property only) (readonly)
|
|
3570
|
-
* - `edgeMax`: undefined (property only) (readonly)
|
|
3571
|
-
* - `componentHasError`: undefined (property only) (readonly)
|
|
3572
|
-
* - `errorText`: undefined (property only) (readonly)
|
|
3573
|
-
*
|
|
3574
|
-
* ## Slots
|
|
3575
|
-
*
|
|
3576
|
-
* Areas where markup can be added to the component.
|
|
3577
|
-
*
|
|
3578
|
-
* - `(default)`: For single sliders place a `<w-slider-thumb>` in the default slot.
|
|
3579
|
-
* - `label`: Label for the slider or range slider as a whole.
|
|
3580
|
-
* - `description`: Optional description between the label and slider.
|
|
3581
|
-
* - `from`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
3582
|
-
* - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
3583
|
-
*/
|
|
3584
|
-
"w-slider": Partial<
|
|
3585
|
-
WarpSliderProps &
|
|
3586
|
-
WarpSliderSolidJsProps &
|
|
3587
|
-
BaseProps<WarpSlider> &
|
|
3588
|
-
BaseEvents
|
|
3589
|
-
>;
|
|
3590
3811
|
};
|
|
3591
3812
|
|
|
3592
3813
|
export type CustomCssProperties = {};
|