@warp-ds/elements 2.10.0-next.1 → 2.10.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 +146 -69
- package/dist/docs/card/accessibility.md +74 -0
- package/dist/docs/card/api.md +9 -3
- package/dist/docs/card/card.md +234 -3
- package/dist/docs/card/examples.md +75 -0
- package/dist/docs/card/usage.md +76 -0
- package/dist/docs/combobox/accessibility.md +71 -0
- package/dist/docs/combobox/api.md +60 -30
- package/dist/docs/combobox/combobox.md +203 -30
- package/dist/docs/combobox/examples.md +44 -0
- package/dist/docs/combobox/usage.md +28 -0
- package/dist/docs/icon/accessibility.md +5 -0
- package/dist/docs/icon/api.md +37 -0
- package/dist/docs/icon/examples.md +45 -0
- package/dist/docs/icon/icon.md +107 -0
- package/dist/docs/icon/usage.md +11 -0
- package/dist/docs/link/api.md +18 -22
- package/dist/docs/link/examples.md +75 -0
- package/dist/docs/link/link.md +111 -22
- package/dist/docs/link/usage.md +18 -0
- package/dist/index.d.ts +479 -183
- package/dist/packages/affix/affix.js +3 -3
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/alert/alert.js +1 -1
- package/dist/packages/alert/alert.js.map +3 -3
- package/dist/packages/attention/attention.js.map +4 -4
- package/dist/packages/attention/attention.test.js +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/packages/button/button.js.map +3 -3
- package/dist/packages/card/card.d.ts +9 -6
- package/dist/packages/card/card.js.map +3 -3
- package/dist/packages/checkbox/checkbox.d.ts +40 -11
- package/dist/packages/checkbox/checkbox.js.map +2 -2
- package/dist/packages/checkbox/checkbox.test.js +1 -1
- package/dist/packages/checkbox-group/checkbox-group.a11y.test.js +1 -1
- package/dist/packages/checkbox-group/checkbox-group.d.ts +30 -5
- package/dist/packages/checkbox-group/checkbox-group.js.map +3 -3
- package/dist/packages/combobox/combobox.a11y.test.js +24 -0
- package/dist/packages/combobox/combobox.d.ts +65 -45
- package/dist/packages/combobox/combobox.hydration.test.js +39 -1
- package/dist/packages/combobox/combobox.js +13 -13
- package/dist/packages/combobox/combobox.js.map +4 -4
- package/dist/packages/combobox/combobox.stories.js +28 -15
- package/dist/packages/combobox/combobox.test.js +110 -0
- package/dist/packages/datepicker/DatePicker.test.js +1 -1
- package/dist/packages/datepicker/datepicker.js.map +4 -4
- package/dist/packages/datepicker/datepicker.test.js +1 -1
- package/dist/packages/expandable/expandable.js +2 -2
- package/dist/packages/expandable/expandable.js.map +3 -3
- package/dist/packages/icon/icon.d.ts +13 -3
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +3 -3
- package/dist/packages/icon/icon.react.stories.d.ts +1 -1
- package/dist/packages/icon/react.d.ts +2 -2
- package/dist/packages/link/link.d.ts +15 -16
- package/dist/packages/link/link.js.map +2 -2
- package/dist/packages/link/link.test.js +1 -1
- package/dist/packages/modal-header/modal-header.js +3 -1
- package/dist/packages/modal-header/modal-header.js.map +4 -4
- package/dist/packages/page-indicator/page-indicator.js.map +1 -1
- package/dist/packages/pagination/pagination.js.map +4 -4
- package/dist/packages/pagination/pagination.test.js +1 -1
- package/dist/packages/pill/pill.js.map +4 -4
- package/dist/packages/radio/radio.test.js +1 -1
- package/dist/packages/radio-group/radio-group.a11y.test.js +1 -1
- package/dist/packages/radio-group/radio-group.js.map +1 -1
- package/dist/packages/select/select.js.map +4 -4
- package/dist/packages/slider/slider.js.map +1 -1
- package/dist/packages/slider/slider.test.js +1 -1
- package/dist/packages/slider-thumb/slider-thumb.js.map +1 -1
- package/dist/packages/step/step.js +1 -1
- package/dist/packages/step/step.js.map +4 -4
- package/dist/packages/switch/switch.a11y.test.js +1 -1
- package/dist/packages/tabs/tabs.a11y.test.js +1 -1
- package/dist/packages/tabs/tabs.test.js +1 -1
- package/dist/packages/textarea/textarea.js.map +1 -1
- package/dist/packages/textarea/textarea.test.js +1 -1
- package/dist/packages/textfield/textfield.test.js +1 -1
- package/dist/packages/toast/toast.js +3 -3
- package/dist/packages/toast/toast.js.map +4 -4
- package/dist/packages/toast/toast.stories.d.ts +1 -5
- package/dist/packages/toast/toast.stories.js +0 -17
- package/dist/web-types.json +147 -75
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WIcon } from "./packages/icon/icon.ts";
|
|
1
|
+
import type { WarpIcon, WIcon } from "./packages/icon/icon.ts";
|
|
2
2
|
import type { WarpTextField } from "./packages/textfield/textfield.ts";
|
|
3
3
|
import type { WarpAffix } from "./packages/affix/affix.ts";
|
|
4
4
|
import type { WarpAlert } from "./packages/alert/alert.ts";
|
|
@@ -114,22 +114,26 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
114
114
|
|
|
115
115
|
type BaseEvents = {};
|
|
116
116
|
|
|
117
|
-
export type
|
|
117
|
+
export type WarpIconProps = {
|
|
118
118
|
/** Icon filename (without .svg) */
|
|
119
|
-
name?:
|
|
120
|
-
/** Size: small, medium, large or pixel value (e.g. "32px") */
|
|
121
|
-
size?:
|
|
122
|
-
/** Locale used
|
|
123
|
-
|
|
119
|
+
name?: WarpIcon["name"];
|
|
120
|
+
/** Size: small, medium, large or pixel value (e.g. "32px"). */
|
|
121
|
+
size?: WarpIcon["size"];
|
|
122
|
+
/** Locale used for `<title>` text.
|
|
123
|
+
|
|
124
|
+
Reads the `lang` attribute from `<html>`, falls back to 'en'. */
|
|
125
|
+
locale?: WarpIcon["locale"];
|
|
124
126
|
};
|
|
125
127
|
|
|
126
|
-
export type
|
|
128
|
+
export type WarpIconSolidJsProps = {
|
|
127
129
|
/** Icon filename (without .svg) */
|
|
128
|
-
"prop:name"?:
|
|
129
|
-
/** Size: small, medium, large or pixel value (e.g. "32px") */
|
|
130
|
-
"prop:size"?:
|
|
131
|
-
/** Locale used
|
|
132
|
-
|
|
130
|
+
"prop:name"?: WarpIcon["name"];
|
|
131
|
+
/** Size: small, medium, large or pixel value (e.g. "32px"). */
|
|
132
|
+
"prop:size"?: WarpIcon["size"];
|
|
133
|
+
/** Locale used for `<title>` text.
|
|
134
|
+
|
|
135
|
+
Reads the `lang` attribute from `<html>`, falls back to 'en'. */
|
|
136
|
+
"prop:locale"?: WarpIcon["locale"];
|
|
133
137
|
|
|
134
138
|
/** Set the innerHTML of the element */
|
|
135
139
|
innerHTML?: string;
|
|
@@ -343,44 +347,52 @@ export type WarpAlertSolidJsProps = {
|
|
|
343
347
|
};
|
|
344
348
|
|
|
345
349
|
export type WarpLinkProps = {
|
|
346
|
-
/**
|
|
350
|
+
/** Focus the link after it is rendered */
|
|
347
351
|
autofocus?: WarpLink["autofocus"];
|
|
348
|
-
/**
|
|
352
|
+
/** Visual style for the link/button. */
|
|
349
353
|
variant?: WarpLink["variant"];
|
|
350
|
-
/**
|
|
354
|
+
/** Render a smaller version */
|
|
351
355
|
small?: WarpLink["small"];
|
|
352
|
-
/**
|
|
356
|
+
/** The URL the link points to */
|
|
353
357
|
href?: WarpLink["href"];
|
|
354
|
-
/**
|
|
358
|
+
/** Applies disabled styling, but you need to disable clicks on your own.
|
|
359
|
+
|
|
360
|
+
The component renders an `<a>` element; `disabled` affects styling, but does not inherently prevent navigation. If you need to fully disable interaction, omit `href` and/or prevent default click behavior. */
|
|
355
361
|
disabled?: WarpLink["disabled"];
|
|
356
|
-
/**
|
|
362
|
+
/** Where to display the linked URL (e.g. `_blank`) */
|
|
357
363
|
target?: WarpLink["target"];
|
|
358
|
-
/**
|
|
364
|
+
/** Relationship of the linked URL.
|
|
365
|
+
|
|
366
|
+
If `target="_blank"` and `rel` is not provided, the component uses `noopener`. */
|
|
359
367
|
rel?: WarpLink["rel"];
|
|
360
|
-
/**
|
|
368
|
+
/** Makes the link take up the full width of its parent */
|
|
361
369
|
"full-width"?: WarpLink["fullWidth"];
|
|
362
|
-
/**
|
|
370
|
+
/** Makes the link take up the full width of its parent */
|
|
363
371
|
fullWidth?: WarpLink["fullWidth"];
|
|
364
372
|
};
|
|
365
373
|
|
|
366
374
|
export type WarpLinkSolidJsProps = {
|
|
367
|
-
/**
|
|
375
|
+
/** Focus the link after it is rendered */
|
|
368
376
|
"prop:autofocus"?: WarpLink["autofocus"];
|
|
369
|
-
/**
|
|
377
|
+
/** Visual style for the link/button. */
|
|
370
378
|
"prop:variant"?: WarpLink["variant"];
|
|
371
|
-
/**
|
|
379
|
+
/** Render a smaller version */
|
|
372
380
|
"prop:small"?: WarpLink["small"];
|
|
373
|
-
/**
|
|
381
|
+
/** The URL the link points to */
|
|
374
382
|
"prop:href"?: WarpLink["href"];
|
|
375
|
-
/**
|
|
383
|
+
/** Applies disabled styling, but you need to disable clicks on your own.
|
|
384
|
+
|
|
385
|
+
The component renders an `<a>` element; `disabled` affects styling, but does not inherently prevent navigation. If you need to fully disable interaction, omit `href` and/or prevent default click behavior. */
|
|
376
386
|
"prop:disabled"?: WarpLink["disabled"];
|
|
377
|
-
/**
|
|
387
|
+
/** Where to display the linked URL (e.g. `_blank`) */
|
|
378
388
|
"prop:target"?: WarpLink["target"];
|
|
379
|
-
/**
|
|
389
|
+
/** Relationship of the linked URL.
|
|
390
|
+
|
|
391
|
+
If `target="_blank"` and `rel` is not provided, the component uses `noopener`. */
|
|
380
392
|
"prop:rel"?: WarpLink["rel"];
|
|
381
|
-
/**
|
|
393
|
+
/** Makes the link take up the full width of its parent */
|
|
382
394
|
"bool:full-width"?: WarpLink["fullWidth"];
|
|
383
|
-
/**
|
|
395
|
+
/** Makes the link take up the full width of its parent */
|
|
384
396
|
"prop:fullWidth"?: WarpLink["fullWidth"];
|
|
385
397
|
|
|
386
398
|
/** Set the innerHTML of the element */
|
|
@@ -723,22 +735,34 @@ Defaults to the localized "You are here" label. Set `aria-label` when the defaul
|
|
|
723
735
|
};
|
|
724
736
|
|
|
725
737
|
export type WarpCardProps = {
|
|
726
|
-
/**
|
|
738
|
+
/** Whether the card is visually selected.
|
|
739
|
+
|
|
740
|
+
Use this when the card represents a selected item or choice. This only controls the visual selected state; update it from your application state when the selection changes. */
|
|
727
741
|
selected?: WarpCard["selected"];
|
|
728
|
-
/**
|
|
742
|
+
/** Whether the card uses the flat visual treatment.
|
|
743
|
+
|
|
744
|
+
Flat cards use a bordered surface instead of the default elevated surface. Use this for denser layouts or when the card sits inside another surface. */
|
|
729
745
|
flat?: WarpCard["flat"];
|
|
730
|
-
/**
|
|
746
|
+
/** Whether the whole card is interactive.
|
|
747
|
+
|
|
748
|
+
When set, the card becomes keyboard focusable and Enter or Space triggers a click on the card. Use this only when the whole card has one action or represents one selectable choice. */
|
|
731
749
|
clickable?: WarpCard["clickable"];
|
|
732
750
|
/** */
|
|
733
751
|
buttonText?: WarpCard["buttonText"];
|
|
734
752
|
};
|
|
735
753
|
|
|
736
754
|
export type WarpCardSolidJsProps = {
|
|
737
|
-
/**
|
|
755
|
+
/** Whether the card is visually selected.
|
|
756
|
+
|
|
757
|
+
Use this when the card represents a selected item or choice. This only controls the visual selected state; update it from your application state when the selection changes. */
|
|
738
758
|
"prop:selected"?: WarpCard["selected"];
|
|
739
|
-
/**
|
|
759
|
+
/** Whether the card uses the flat visual treatment.
|
|
760
|
+
|
|
761
|
+
Flat cards use a bordered surface instead of the default elevated surface. Use this for denser layouts or when the card sits inside another surface. */
|
|
740
762
|
"prop:flat"?: WarpCard["flat"];
|
|
741
|
-
/**
|
|
763
|
+
/** Whether the whole card is interactive.
|
|
764
|
+
|
|
765
|
+
When set, the card becomes keyboard focusable and Enter or Space triggers a click on the card. Use this only when the whole card has one action or represents one selectable choice. */
|
|
742
766
|
"prop:clickable"?: WarpCard["clickable"];
|
|
743
767
|
/** */
|
|
744
768
|
"prop:buttonText"?: WarpCard["buttonText"];
|
|
@@ -750,19 +774,33 @@ export type WarpCardSolidJsProps = {
|
|
|
750
774
|
};
|
|
751
775
|
|
|
752
776
|
export type WCheckboxProps = {
|
|
753
|
-
/** The name of the checkbox
|
|
777
|
+
/** The name of the checkbox.
|
|
778
|
+
|
|
779
|
+
When the checkbox is checked and belongs to a form, this name is submitted with the checkbox value. If the checkbox is inside a `w-checkbox-group` with a name, the group name is used when the checkbox does not have its own name. */
|
|
754
780
|
name?: WCheckbox["name"];
|
|
755
|
-
/** The value
|
|
781
|
+
/** The value submitted when the checkbox is checked.
|
|
782
|
+
|
|
783
|
+
If no value attribute is set, the checkbox defaults to `on`. Unchecked and disabled checkboxes do not submit a value. */
|
|
756
784
|
value?: WCheckbox["value"];
|
|
757
|
-
/**
|
|
785
|
+
/** Whether the checkbox is visually indeterminate.
|
|
786
|
+
|
|
787
|
+
Use this for parent options that represent a mixed set of child selections. Clicking the checkbox clears the indeterminate state and sets the checkbox to checked. */
|
|
758
788
|
indeterminate?: WCheckbox["indeterminate"];
|
|
759
|
-
/**
|
|
789
|
+
/** Whether the checkbox is checked.
|
|
790
|
+
|
|
791
|
+
Checked checkboxes submit their value with form data. The property is reflected to the `checked` attribute. */
|
|
760
792
|
checked?: WCheckbox["checked"];
|
|
761
|
-
/**
|
|
793
|
+
/** Whether the checkbox is disabled.
|
|
794
|
+
|
|
795
|
+
Disabled checkboxes cannot be focused, changed, or submitted with form data. */
|
|
762
796
|
disabled?: WCheckbox["disabled"];
|
|
763
|
-
/**
|
|
797
|
+
/** Whether the checkbox must be checked before form submission.
|
|
798
|
+
|
|
799
|
+
A required checkbox is invalid until it is checked. For requiring at least one option in a set, use `required` on `w-checkbox-group`. */
|
|
764
800
|
required?: WCheckbox["required"];
|
|
765
|
-
/**
|
|
801
|
+
/** Whether the checkbox is visually invalid.
|
|
802
|
+
|
|
803
|
+
Use this to show an externally managed validation error. Required validation also sets the invalid state after the user interacts with the checkbox or tries to submit the form. */
|
|
766
804
|
invalid?: WCheckbox["invalid"];
|
|
767
805
|
/** */
|
|
768
806
|
input?: WCheckbox["input"];
|
|
@@ -772,19 +810,33 @@ export type WCheckboxProps = {
|
|
|
772
810
|
};
|
|
773
811
|
|
|
774
812
|
export type WCheckboxSolidJsProps = {
|
|
775
|
-
/** The name of the checkbox
|
|
813
|
+
/** The name of the checkbox.
|
|
814
|
+
|
|
815
|
+
When the checkbox is checked and belongs to a form, this name is submitted with the checkbox value. If the checkbox is inside a `w-checkbox-group` with a name, the group name is used when the checkbox does not have its own name. */
|
|
776
816
|
"prop:name"?: WCheckbox["name"];
|
|
777
|
-
/** The value
|
|
817
|
+
/** The value submitted when the checkbox is checked.
|
|
818
|
+
|
|
819
|
+
If no value attribute is set, the checkbox defaults to `on`. Unchecked and disabled checkboxes do not submit a value. */
|
|
778
820
|
"prop:value"?: WCheckbox["value"];
|
|
779
|
-
/**
|
|
821
|
+
/** Whether the checkbox is visually indeterminate.
|
|
822
|
+
|
|
823
|
+
Use this for parent options that represent a mixed set of child selections. Clicking the checkbox clears the indeterminate state and sets the checkbox to checked. */
|
|
780
824
|
"prop:indeterminate"?: WCheckbox["indeterminate"];
|
|
781
|
-
/**
|
|
825
|
+
/** Whether the checkbox is checked.
|
|
826
|
+
|
|
827
|
+
Checked checkboxes submit their value with form data. The property is reflected to the `checked` attribute. */
|
|
782
828
|
"prop:checked"?: WCheckbox["checked"];
|
|
783
|
-
/**
|
|
829
|
+
/** Whether the checkbox is disabled.
|
|
830
|
+
|
|
831
|
+
Disabled checkboxes cannot be focused, changed, or submitted with form data. */
|
|
784
832
|
"prop:disabled"?: WCheckbox["disabled"];
|
|
785
|
-
/**
|
|
833
|
+
/** Whether the checkbox must be checked before form submission.
|
|
834
|
+
|
|
835
|
+
A required checkbox is invalid until it is checked. For requiring at least one option in a set, use `required` on `w-checkbox-group`. */
|
|
786
836
|
"prop:required"?: WCheckbox["required"];
|
|
787
|
-
/**
|
|
837
|
+
/** Whether the checkbox is visually invalid.
|
|
838
|
+
|
|
839
|
+
Use this to show an externally managed validation error. Required validation also sets the invalid state after the user interacts with the checkbox or tries to submit the form. */
|
|
788
840
|
"prop:invalid"?: WCheckbox["invalid"];
|
|
789
841
|
/** */
|
|
790
842
|
"prop:input"?: WCheckbox["input"];
|
|
@@ -798,36 +850,64 @@ export type WCheckboxSolidJsProps = {
|
|
|
798
850
|
};
|
|
799
851
|
|
|
800
852
|
export type WCheckboxGroupProps = {
|
|
801
|
-
/** The group label displayed above the checkboxes.
|
|
853
|
+
/** The group label displayed above the checkboxes.
|
|
854
|
+
|
|
855
|
+
Use this to describe the shared question or topic for the checkbox options. The label is connected to the internal group for assistive technologies. */
|
|
802
856
|
label?: WCheckboxGroup["label"];
|
|
803
|
-
/** The name applied to child checkboxes when they do not provide one.
|
|
857
|
+
/** The name applied to child checkboxes when they do not provide one.
|
|
858
|
+
|
|
859
|
+
Use this when the grouped checkboxes should submit values under the same form field name. Individual checkboxes can still override the group name with their own `name`. */
|
|
804
860
|
name?: WCheckboxGroup["name"];
|
|
805
|
-
/** Whether to show optional text next to the label.
|
|
861
|
+
/** Whether to show optional text next to the label.
|
|
862
|
+
|
|
863
|
+
Use this to indicate that selecting an option from the group is not required. */
|
|
806
864
|
optional?: WCheckboxGroup["optional"];
|
|
807
|
-
/**
|
|
865
|
+
/** Help text displayed below the checkbox group.
|
|
866
|
+
|
|
867
|
+
Use this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message. */
|
|
808
868
|
"help-text"?: WCheckboxGroup["helpText"];
|
|
809
|
-
/**
|
|
869
|
+
/** Help text displayed below the checkbox group.
|
|
870
|
+
|
|
871
|
+
Use this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message. */
|
|
810
872
|
helpText?: WCheckboxGroup["helpText"];
|
|
811
|
-
/**
|
|
873
|
+
/** Whether at least one checkbox in the group must be selected.
|
|
874
|
+
|
|
875
|
+
Required validation is managed by the group. The individual checkboxes provide the submitted form values. */
|
|
812
876
|
required?: WCheckboxGroup["required"];
|
|
813
|
-
/**
|
|
877
|
+
/** Whether the checkbox group is visually invalid.
|
|
878
|
+
|
|
879
|
+
Use this to show an externally managed validation error for the group. The invalid state is also shared with child checkboxes for consistent styling and accessibility state. */
|
|
814
880
|
invalid?: WCheckboxGroup["invalid"];
|
|
815
881
|
};
|
|
816
882
|
|
|
817
883
|
export type WCheckboxGroupSolidJsProps = {
|
|
818
|
-
/** The group label displayed above the checkboxes.
|
|
884
|
+
/** The group label displayed above the checkboxes.
|
|
885
|
+
|
|
886
|
+
Use this to describe the shared question or topic for the checkbox options. The label is connected to the internal group for assistive technologies. */
|
|
819
887
|
"prop:label"?: WCheckboxGroup["label"];
|
|
820
|
-
/** The name applied to child checkboxes when they do not provide one.
|
|
888
|
+
/** The name applied to child checkboxes when they do not provide one.
|
|
889
|
+
|
|
890
|
+
Use this when the grouped checkboxes should submit values under the same form field name. Individual checkboxes can still override the group name with their own `name`. */
|
|
821
891
|
"prop:name"?: WCheckboxGroup["name"];
|
|
822
|
-
/** Whether to show optional text next to the label.
|
|
892
|
+
/** Whether to show optional text next to the label.
|
|
893
|
+
|
|
894
|
+
Use this to indicate that selecting an option from the group is not required. */
|
|
823
895
|
"prop:optional"?: WCheckboxGroup["optional"];
|
|
824
|
-
/**
|
|
896
|
+
/** Help text displayed below the checkbox group.
|
|
897
|
+
|
|
898
|
+
Use this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message. */
|
|
825
899
|
"attr:help-text"?: WCheckboxGroup["helpText"];
|
|
826
|
-
/**
|
|
900
|
+
/** Help text displayed below the checkbox group.
|
|
901
|
+
|
|
902
|
+
Use this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message. */
|
|
827
903
|
"prop:helpText"?: WCheckboxGroup["helpText"];
|
|
828
|
-
/**
|
|
904
|
+
/** Whether at least one checkbox in the group must be selected.
|
|
905
|
+
|
|
906
|
+
Required validation is managed by the group. The individual checkboxes provide the submitted form values. */
|
|
829
907
|
"prop:required"?: WCheckboxGroup["required"];
|
|
830
|
-
/**
|
|
908
|
+
/** Whether the checkbox group is visually invalid.
|
|
909
|
+
|
|
910
|
+
Use this to show an externally managed validation error for the group. The invalid state is also shared with child checkboxes for consistent styling and accessibility state. */
|
|
831
911
|
"prop:invalid"?: WCheckboxGroup["invalid"];
|
|
832
912
|
|
|
833
913
|
/** Set the innerHTML of the element */
|
|
@@ -837,88 +917,168 @@ export type WCheckboxGroupSolidJsProps = {
|
|
|
837
917
|
};
|
|
838
918
|
|
|
839
919
|
export type WarpComboboxProps = {
|
|
840
|
-
/** The available options to select from
|
|
920
|
+
/** The available options to select from.
|
|
921
|
+
|
|
922
|
+
Use this for framework usage, application state, or remote search results. When `options` contains entries, it is used instead of child `<option>` elements. */
|
|
841
923
|
options?: WarpCombobox["options"];
|
|
842
|
-
/**
|
|
924
|
+
/** The label displayed above the input.
|
|
925
|
+
|
|
926
|
+
Use this to give the combobox a visible and accessible name. */
|
|
843
927
|
label?: WarpCombobox["label"];
|
|
844
|
-
/**
|
|
928
|
+
/** Placeholder text displayed when the input is empty.
|
|
929
|
+
|
|
930
|
+
Use this as a short hint for the expected input. Do not use placeholder text as a replacement for a label. */
|
|
845
931
|
placeholder?: WarpCombobox["placeholder"];
|
|
846
|
-
/** The
|
|
932
|
+
/** The selected or typed value.
|
|
933
|
+
|
|
934
|
+
When an option is selected, this is set to the option value. The displayed text may differ when the option has a separate label. */
|
|
847
935
|
value?: WarpCombobox["value"];
|
|
848
|
-
/** Whether the
|
|
936
|
+
/** Whether the option list opens when the input receives focus.
|
|
937
|
+
|
|
938
|
+
Use this when users should see available options before they start typing. */
|
|
849
939
|
"open-on-focus"?: WarpCombobox["openOnFocus"];
|
|
850
|
-
/** Whether the
|
|
940
|
+
/** Whether the option list opens when the input receives focus.
|
|
941
|
+
|
|
942
|
+
Use this when users should see available options before they start typing. */
|
|
851
943
|
openOnFocus?: WarpCombobox["openOnFocus"];
|
|
852
|
-
/**
|
|
944
|
+
/** Whether the active option is selected when the input loses focus.
|
|
945
|
+
|
|
946
|
+
When enabled, the combobox selects the keyboard-highlighted option, or an option whose value exactly matches the current input value, on blur. */
|
|
853
947
|
"select-on-blur"?: WarpCombobox["selectOnBlur"];
|
|
854
|
-
/**
|
|
948
|
+
/** Whether the active option is selected when the input loses focus.
|
|
949
|
+
|
|
950
|
+
When enabled, the combobox selects the keyboard-highlighted option, or an option whose value exactly matches the current input value, on blur. */
|
|
855
951
|
selectOnBlur?: WarpCombobox["selectOnBlur"];
|
|
856
|
-
/** Whether
|
|
952
|
+
/** Whether matching text segments in options are highlighted.
|
|
953
|
+
|
|
954
|
+
Use this to visually emphasize the part of each option that matches the current input value. */
|
|
857
955
|
"match-text-segments"?: WarpCombobox["matchTextSegments"];
|
|
858
|
-
/** Whether
|
|
956
|
+
/** Whether matching text segments in options are highlighted.
|
|
957
|
+
|
|
958
|
+
Use this to visually emphasize the part of each option that matches the current input value. */
|
|
859
959
|
matchTextSegments?: WarpCombobox["matchTextSegments"];
|
|
860
|
-
/**
|
|
960
|
+
/** Whether built-in client-side filtering is disabled.
|
|
961
|
+
|
|
962
|
+
Use this for remote search or externally filtered results. When disabled, all entries in `options` are rendered as provided. */
|
|
861
963
|
"disable-static-filtering"?: WarpCombobox["disableStaticFiltering"];
|
|
862
|
-
/**
|
|
964
|
+
/** Whether built-in client-side filtering is disabled.
|
|
965
|
+
|
|
966
|
+
Use this for remote search or externally filtered results. When disabled, all entries in `options` are rendered as provided. */
|
|
863
967
|
disableStaticFiltering?: WarpCombobox["disableStaticFiltering"];
|
|
864
|
-
/**
|
|
968
|
+
/** Whether the combobox is visually invalid.
|
|
969
|
+
|
|
970
|
+
Use this to show an externally managed validation error. Pair it with `help-text` to explain how to fix the error. */
|
|
865
971
|
invalid?: WarpCombobox["invalid"];
|
|
866
|
-
/**
|
|
972
|
+
/** Help text displayed below the input.
|
|
973
|
+
|
|
974
|
+
Use this for supporting guidance or validation feedback. */
|
|
867
975
|
"help-text"?: WarpCombobox["helpText"];
|
|
868
|
-
/**
|
|
976
|
+
/** Help text displayed below the input.
|
|
977
|
+
|
|
978
|
+
Use this for supporting guidance or validation feedback. */
|
|
869
979
|
helpText?: WarpCombobox["helpText"];
|
|
870
|
-
/** Whether the
|
|
980
|
+
/** Whether the combobox is disabled.
|
|
981
|
+
|
|
982
|
+
Disabled comboboxes cannot be focused, changed, or submitted with form data. */
|
|
871
983
|
disabled?: WarpCombobox["disabled"];
|
|
872
|
-
/** Whether the
|
|
984
|
+
/** Whether the combobox is required before form submission.
|
|
985
|
+
|
|
986
|
+
Use this when the user must provide a value before submitting the form. */
|
|
873
987
|
required?: WarpCombobox["required"];
|
|
874
|
-
/** Whether to show optional text
|
|
988
|
+
/** Whether to show optional text next to the label.
|
|
989
|
+
|
|
990
|
+
Use this to indicate that the combobox is not required. */
|
|
875
991
|
optional?: WarpCombobox["optional"];
|
|
876
|
-
/**
|
|
992
|
+
/** The name submitted with the combobox value.
|
|
993
|
+
|
|
994
|
+
Use this when the combobox belongs to a form and its value should be included in form data. */
|
|
877
995
|
name?: WarpCombobox["name"];
|
|
878
|
-
/**
|
|
996
|
+
/** The autocomplete attribute passed to the internal input.
|
|
997
|
+
|
|
998
|
+
Defaults to `off`. Set this when browser autocomplete should be enabled or scoped to a specific autocomplete token. */
|
|
879
999
|
autocomplete?: WarpCombobox["autocomplete"];
|
|
880
1000
|
};
|
|
881
1001
|
|
|
882
1002
|
export type WarpComboboxSolidJsProps = {
|
|
883
|
-
/** The available options to select from
|
|
1003
|
+
/** The available options to select from.
|
|
1004
|
+
|
|
1005
|
+
Use this for framework usage, application state, or remote search results. When `options` contains entries, it is used instead of child `<option>` elements. */
|
|
884
1006
|
"prop:options"?: WarpCombobox["options"];
|
|
885
|
-
/**
|
|
1007
|
+
/** The label displayed above the input.
|
|
1008
|
+
|
|
1009
|
+
Use this to give the combobox a visible and accessible name. */
|
|
886
1010
|
"prop:label"?: WarpCombobox["label"];
|
|
887
|
-
/**
|
|
1011
|
+
/** Placeholder text displayed when the input is empty.
|
|
1012
|
+
|
|
1013
|
+
Use this as a short hint for the expected input. Do not use placeholder text as a replacement for a label. */
|
|
888
1014
|
"prop:placeholder"?: WarpCombobox["placeholder"];
|
|
889
|
-
/** The
|
|
1015
|
+
/** The selected or typed value.
|
|
1016
|
+
|
|
1017
|
+
When an option is selected, this is set to the option value. The displayed text may differ when the option has a separate label. */
|
|
890
1018
|
"prop:value"?: WarpCombobox["value"];
|
|
891
|
-
/** Whether the
|
|
1019
|
+
/** Whether the option list opens when the input receives focus.
|
|
1020
|
+
|
|
1021
|
+
Use this when users should see available options before they start typing. */
|
|
892
1022
|
"bool:open-on-focus"?: WarpCombobox["openOnFocus"];
|
|
893
|
-
/** Whether the
|
|
1023
|
+
/** Whether the option list opens when the input receives focus.
|
|
1024
|
+
|
|
1025
|
+
Use this when users should see available options before they start typing. */
|
|
894
1026
|
"prop:openOnFocus"?: WarpCombobox["openOnFocus"];
|
|
895
|
-
/**
|
|
1027
|
+
/** Whether the active option is selected when the input loses focus.
|
|
1028
|
+
|
|
1029
|
+
When enabled, the combobox selects the keyboard-highlighted option, or an option whose value exactly matches the current input value, on blur. */
|
|
896
1030
|
"bool:select-on-blur"?: WarpCombobox["selectOnBlur"];
|
|
897
|
-
/**
|
|
1031
|
+
/** Whether the active option is selected when the input loses focus.
|
|
1032
|
+
|
|
1033
|
+
When enabled, the combobox selects the keyboard-highlighted option, or an option whose value exactly matches the current input value, on blur. */
|
|
898
1034
|
"prop:selectOnBlur"?: WarpCombobox["selectOnBlur"];
|
|
899
|
-
/** Whether
|
|
1035
|
+
/** Whether matching text segments in options are highlighted.
|
|
1036
|
+
|
|
1037
|
+
Use this to visually emphasize the part of each option that matches the current input value. */
|
|
900
1038
|
"bool:match-text-segments"?: WarpCombobox["matchTextSegments"];
|
|
901
|
-
/** Whether
|
|
1039
|
+
/** Whether matching text segments in options are highlighted.
|
|
1040
|
+
|
|
1041
|
+
Use this to visually emphasize the part of each option that matches the current input value. */
|
|
902
1042
|
"prop:matchTextSegments"?: WarpCombobox["matchTextSegments"];
|
|
903
|
-
/**
|
|
1043
|
+
/** Whether built-in client-side filtering is disabled.
|
|
1044
|
+
|
|
1045
|
+
Use this for remote search or externally filtered results. When disabled, all entries in `options` are rendered as provided. */
|
|
904
1046
|
"bool:disable-static-filtering"?: WarpCombobox["disableStaticFiltering"];
|
|
905
|
-
/**
|
|
1047
|
+
/** Whether built-in client-side filtering is disabled.
|
|
1048
|
+
|
|
1049
|
+
Use this for remote search or externally filtered results. When disabled, all entries in `options` are rendered as provided. */
|
|
906
1050
|
"prop:disableStaticFiltering"?: WarpCombobox["disableStaticFiltering"];
|
|
907
|
-
/**
|
|
1051
|
+
/** Whether the combobox is visually invalid.
|
|
1052
|
+
|
|
1053
|
+
Use this to show an externally managed validation error. Pair it with `help-text` to explain how to fix the error. */
|
|
908
1054
|
"prop:invalid"?: WarpCombobox["invalid"];
|
|
909
|
-
/**
|
|
1055
|
+
/** Help text displayed below the input.
|
|
1056
|
+
|
|
1057
|
+
Use this for supporting guidance or validation feedback. */
|
|
910
1058
|
"attr:help-text"?: WarpCombobox["helpText"];
|
|
911
|
-
/**
|
|
1059
|
+
/** Help text displayed below the input.
|
|
1060
|
+
|
|
1061
|
+
Use this for supporting guidance or validation feedback. */
|
|
912
1062
|
"prop:helpText"?: WarpCombobox["helpText"];
|
|
913
|
-
/** Whether the
|
|
1063
|
+
/** Whether the combobox is disabled.
|
|
1064
|
+
|
|
1065
|
+
Disabled comboboxes cannot be focused, changed, or submitted with form data. */
|
|
914
1066
|
"prop:disabled"?: WarpCombobox["disabled"];
|
|
915
|
-
/** Whether the
|
|
1067
|
+
/** Whether the combobox is required before form submission.
|
|
1068
|
+
|
|
1069
|
+
Use this when the user must provide a value before submitting the form. */
|
|
916
1070
|
"prop:required"?: WarpCombobox["required"];
|
|
917
|
-
/** Whether to show optional text
|
|
1071
|
+
/** Whether to show optional text next to the label.
|
|
1072
|
+
|
|
1073
|
+
Use this to indicate that the combobox is not required. */
|
|
918
1074
|
"prop:optional"?: WarpCombobox["optional"];
|
|
919
|
-
/**
|
|
1075
|
+
/** The name submitted with the combobox value.
|
|
1076
|
+
|
|
1077
|
+
Use this when the combobox belongs to a form and its value should be included in form data. */
|
|
920
1078
|
"prop:name"?: WarpCombobox["name"];
|
|
921
|
-
/**
|
|
1079
|
+
/** The autocomplete attribute passed to the internal input.
|
|
1080
|
+
|
|
1081
|
+
Defaults to `off`. Set this when browser autocomplete should be enabled or scoped to a specific autocomplete token. */
|
|
922
1082
|
"prop:autocomplete"?: WarpCombobox["autocomplete"];
|
|
923
1083
|
|
|
924
1084
|
/** Set the innerHTML of the element */
|
|
@@ -1918,10 +2078,12 @@ export type CustomElements = {
|
|
|
1918
2078
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1919
2079
|
*
|
|
1920
2080
|
* - `name`: Icon filename (without .svg)
|
|
1921
|
-
* - `size`: Size: small, medium, large or pixel value (e.g. "32px")
|
|
1922
|
-
* - `locale`: Locale used
|
|
2081
|
+
* - `size`: Size: small, medium, large or pixel value (e.g. "32px").
|
|
2082
|
+
* - `locale`: Locale used for `<title>` text.
|
|
2083
|
+
*
|
|
2084
|
+
* Reads the `lang` attribute from `<html>`, falls back to 'en'.
|
|
1923
2085
|
*/
|
|
1924
|
-
"w-icon": Partial<
|
|
2086
|
+
"w-icon": Partial<WarpIconProps & BaseProps<WarpIcon> & BaseEvents>;
|
|
1925
2087
|
|
|
1926
2088
|
/**
|
|
1927
2089
|
* A single-line input component used for entering and editing textual or numeric data.
|
|
@@ -2032,14 +2194,18 @@ export type CustomElements = {
|
|
|
2032
2194
|
*
|
|
2033
2195
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2034
2196
|
*
|
|
2035
|
-
* - `autofocus`:
|
|
2036
|
-
* - `variant`:
|
|
2037
|
-
* - `small`:
|
|
2038
|
-
* - `href`:
|
|
2039
|
-
* - `disabled`:
|
|
2040
|
-
*
|
|
2041
|
-
*
|
|
2042
|
-
* - `
|
|
2197
|
+
* - `autofocus`: Focus the link after it is rendered
|
|
2198
|
+
* - `variant`: Visual style for the link/button.
|
|
2199
|
+
* - `small`: Render a smaller version
|
|
2200
|
+
* - `href`: The URL the link points to
|
|
2201
|
+
* - `disabled`: Applies disabled styling, but you need to disable clicks on your own.
|
|
2202
|
+
*
|
|
2203
|
+
* The component renders an `<a>` element; `disabled` affects styling, but does not inherently prevent navigation. If you need to fully disable interaction, omit `href` and/or prevent default click behavior.
|
|
2204
|
+
* - `target`: Where to display the linked URL (e.g. `_blank`)
|
|
2205
|
+
* - `rel`: Relationship of the linked URL.
|
|
2206
|
+
*
|
|
2207
|
+
* If `target="_blank"` and `rel` is not provided, the component uses `noopener`.
|
|
2208
|
+
* - `full-width`/`fullWidth`: Makes the link take up the full width of its parent
|
|
2043
2209
|
*/
|
|
2044
2210
|
"w-link": Partial<WarpLinkProps & BaseProps<WarpLink> & BaseEvents>;
|
|
2045
2211
|
|
|
@@ -2219,9 +2385,15 @@ export type CustomElements = {
|
|
|
2219
2385
|
*
|
|
2220
2386
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2221
2387
|
*
|
|
2222
|
-
* - `selected`:
|
|
2223
|
-
*
|
|
2224
|
-
*
|
|
2388
|
+
* - `selected`: Whether the card is visually selected.
|
|
2389
|
+
*
|
|
2390
|
+
* Use this when the card represents a selected item or choice. This only controls the visual selected state; update it from your application state when the selection changes.
|
|
2391
|
+
* - `flat`: Whether the card uses the flat visual treatment.
|
|
2392
|
+
*
|
|
2393
|
+
* Flat cards use a bordered surface instead of the default elevated surface. Use this for denser layouts or when the card sits inside another surface.
|
|
2394
|
+
* - `clickable`: Whether the whole card is interactive.
|
|
2395
|
+
*
|
|
2396
|
+
* When set, the card becomes keyboard focusable and Enter or Space triggers a click on the card. Use this only when the whole card has one action or represents one selectable choice.
|
|
2225
2397
|
* - `buttonText`: undefined (property only)
|
|
2226
2398
|
*
|
|
2227
2399
|
* ## Methods
|
|
@@ -2239,13 +2411,27 @@ export type CustomElements = {
|
|
|
2239
2411
|
*
|
|
2240
2412
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2241
2413
|
*
|
|
2242
|
-
* - `name`: The name of the checkbox
|
|
2243
|
-
*
|
|
2244
|
-
*
|
|
2245
|
-
* - `
|
|
2246
|
-
*
|
|
2247
|
-
*
|
|
2248
|
-
* - `
|
|
2414
|
+
* - `name`: The name of the checkbox.
|
|
2415
|
+
*
|
|
2416
|
+
* When the checkbox is checked and belongs to a form, this name is submitted with the checkbox value. If the checkbox is inside a `w-checkbox-group` with a name, the group name is used when the checkbox does not have its own name.
|
|
2417
|
+
* - `value`: The value submitted when the checkbox is checked.
|
|
2418
|
+
*
|
|
2419
|
+
* If no value attribute is set, the checkbox defaults to `on`. Unchecked and disabled checkboxes do not submit a value.
|
|
2420
|
+
* - `indeterminate`: Whether the checkbox is visually indeterminate.
|
|
2421
|
+
*
|
|
2422
|
+
* Use this for parent options that represent a mixed set of child selections. Clicking the checkbox clears the indeterminate state and sets the checkbox to checked.
|
|
2423
|
+
* - `checked`: Whether the checkbox is checked.
|
|
2424
|
+
*
|
|
2425
|
+
* Checked checkboxes submit their value with form data. The property is reflected to the `checked` attribute.
|
|
2426
|
+
* - `disabled`: Whether the checkbox is disabled.
|
|
2427
|
+
*
|
|
2428
|
+
* Disabled checkboxes cannot be focused, changed, or submitted with form data.
|
|
2429
|
+
* - `required`: Whether the checkbox must be checked before form submission.
|
|
2430
|
+
*
|
|
2431
|
+
* A required checkbox is invalid until it is checked. For requiring at least one option in a set, use `required` on `w-checkbox-group`.
|
|
2432
|
+
* - `invalid`: Whether the checkbox is visually invalid.
|
|
2433
|
+
*
|
|
2434
|
+
* Use this to show an externally managed validation error. Required validation also sets the invalid state after the user interacts with the checkbox or tries to submit the form.
|
|
2249
2435
|
* - `input`: undefined (property only)
|
|
2250
2436
|
* - `_computedInvalid`: Computed invalid state: combines own invalid with group invalid (property only) (readonly)
|
|
2251
2437
|
* - `validationMessage`: Returns the validation message if the checkbox is invalid, otherwise an empty string (property only) (readonly)
|
|
@@ -2278,11 +2464,23 @@ export type CustomElements = {
|
|
|
2278
2464
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2279
2465
|
*
|
|
2280
2466
|
* - `label`: The group label displayed above the checkboxes.
|
|
2467
|
+
*
|
|
2468
|
+
* Use this to describe the shared question or topic for the checkbox options. The label is connected to the internal group for assistive technologies.
|
|
2281
2469
|
* - `name`: The name applied to child checkboxes when they do not provide one.
|
|
2470
|
+
*
|
|
2471
|
+
* Use this when the grouped checkboxes should submit values under the same form field name. Individual checkboxes can still override the group name with their own `name`.
|
|
2282
2472
|
* - `optional`: Whether to show optional text next to the label.
|
|
2283
|
-
*
|
|
2284
|
-
*
|
|
2285
|
-
* - `
|
|
2473
|
+
*
|
|
2474
|
+
* Use this to indicate that selecting an option from the group is not required.
|
|
2475
|
+
* - `help-text`/`helpText`: Help text displayed below the checkbox group.
|
|
2476
|
+
*
|
|
2477
|
+
* Use this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message.
|
|
2478
|
+
* - `required`: Whether at least one checkbox in the group must be selected.
|
|
2479
|
+
*
|
|
2480
|
+
* Required validation is managed by the group. The individual checkboxes provide the submitted form values.
|
|
2481
|
+
* - `invalid`: Whether the checkbox group is visually invalid.
|
|
2482
|
+
*
|
|
2483
|
+
* Use this to show an externally managed validation error for the group. The invalid state is also shared with child checkboxes for consistent styling and accessibility state.
|
|
2286
2484
|
*
|
|
2287
2485
|
* ## Methods
|
|
2288
2486
|
*
|
|
@@ -2305,21 +2503,51 @@ export type CustomElements = {
|
|
|
2305
2503
|
*
|
|
2306
2504
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2307
2505
|
*
|
|
2308
|
-
* - `options`: The available options to select from
|
|
2309
|
-
*
|
|
2310
|
-
*
|
|
2311
|
-
* - `
|
|
2312
|
-
*
|
|
2313
|
-
*
|
|
2314
|
-
* - `
|
|
2315
|
-
*
|
|
2316
|
-
*
|
|
2317
|
-
* - `
|
|
2318
|
-
*
|
|
2319
|
-
*
|
|
2320
|
-
* - `
|
|
2321
|
-
*
|
|
2322
|
-
*
|
|
2506
|
+
* - `options`: The available options to select from.
|
|
2507
|
+
*
|
|
2508
|
+
* Use this for framework usage, application state, or remote search results. When `options` contains entries, it is used instead of child `<option>` elements.
|
|
2509
|
+
* - `label`: The label displayed above the input.
|
|
2510
|
+
*
|
|
2511
|
+
* Use this to give the combobox a visible and accessible name.
|
|
2512
|
+
* - `placeholder`: Placeholder text displayed when the input is empty.
|
|
2513
|
+
*
|
|
2514
|
+
* Use this as a short hint for the expected input. Do not use placeholder text as a replacement for a label.
|
|
2515
|
+
* - `value`: The selected or typed value.
|
|
2516
|
+
*
|
|
2517
|
+
* When an option is selected, this is set to the option value. The displayed text may differ when the option has a separate label.
|
|
2518
|
+
* - `open-on-focus`/`openOnFocus`: Whether the option list opens when the input receives focus.
|
|
2519
|
+
*
|
|
2520
|
+
* Use this when users should see available options before they start typing.
|
|
2521
|
+
* - `select-on-blur`/`selectOnBlur`: Whether the active option is selected when the input loses focus.
|
|
2522
|
+
*
|
|
2523
|
+
* When enabled, the combobox selects the keyboard-highlighted option, or an option whose value exactly matches the current input value, on blur.
|
|
2524
|
+
* - `match-text-segments`/`matchTextSegments`: Whether matching text segments in options are highlighted.
|
|
2525
|
+
*
|
|
2526
|
+
* Use this to visually emphasize the part of each option that matches the current input value.
|
|
2527
|
+
* - `disable-static-filtering`/`disableStaticFiltering`: Whether built-in client-side filtering is disabled.
|
|
2528
|
+
*
|
|
2529
|
+
* Use this for remote search or externally filtered results. When disabled, all entries in `options` are rendered as provided.
|
|
2530
|
+
* - `invalid`: Whether the combobox is visually invalid.
|
|
2531
|
+
*
|
|
2532
|
+
* Use this to show an externally managed validation error. Pair it with `help-text` to explain how to fix the error.
|
|
2533
|
+
* - `help-text`/`helpText`: Help text displayed below the input.
|
|
2534
|
+
*
|
|
2535
|
+
* Use this for supporting guidance or validation feedback.
|
|
2536
|
+
* - `disabled`: Whether the combobox is disabled.
|
|
2537
|
+
*
|
|
2538
|
+
* Disabled comboboxes cannot be focused, changed, or submitted with form data.
|
|
2539
|
+
* - `required`: Whether the combobox is required before form submission.
|
|
2540
|
+
*
|
|
2541
|
+
* Use this when the user must provide a value before submitting the form.
|
|
2542
|
+
* - `optional`: Whether to show optional text next to the label.
|
|
2543
|
+
*
|
|
2544
|
+
* Use this to indicate that the combobox is not required.
|
|
2545
|
+
* - `name`: The name submitted with the combobox value.
|
|
2546
|
+
*
|
|
2547
|
+
* Use this when the combobox belongs to a form and its value should be included in form data.
|
|
2548
|
+
* - `autocomplete`: The autocomplete attribute passed to the internal input.
|
|
2549
|
+
*
|
|
2550
|
+
* Defaults to `off`. Set this when browser autocomplete should be enabled or scoped to a specific autocomplete token.
|
|
2323
2551
|
*
|
|
2324
2552
|
* ## Methods
|
|
2325
2553
|
*
|
|
@@ -2870,11 +3098,13 @@ export type CustomElementsSolidJs = {
|
|
|
2870
3098
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2871
3099
|
*
|
|
2872
3100
|
* - `name`: Icon filename (without .svg)
|
|
2873
|
-
* - `size`: Size: small, medium, large or pixel value (e.g. "32px")
|
|
2874
|
-
* - `locale`: Locale used
|
|
3101
|
+
* - `size`: Size: small, medium, large or pixel value (e.g. "32px").
|
|
3102
|
+
* - `locale`: Locale used for `<title>` text.
|
|
3103
|
+
*
|
|
3104
|
+
* Reads the `lang` attribute from `<html>`, falls back to 'en'.
|
|
2875
3105
|
*/
|
|
2876
3106
|
"w-icon": Partial<
|
|
2877
|
-
|
|
3107
|
+
WarpIconProps & WarpIconSolidJsProps & BaseProps<WarpIcon> & BaseEvents
|
|
2878
3108
|
>;
|
|
2879
3109
|
|
|
2880
3110
|
/**
|
|
@@ -2993,14 +3223,18 @@ export type CustomElementsSolidJs = {
|
|
|
2993
3223
|
*
|
|
2994
3224
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2995
3225
|
*
|
|
2996
|
-
* - `autofocus`:
|
|
2997
|
-
* - `variant`:
|
|
2998
|
-
* - `small`:
|
|
2999
|
-
* - `href`:
|
|
3000
|
-
* - `disabled`:
|
|
3001
|
-
*
|
|
3002
|
-
*
|
|
3003
|
-
* - `
|
|
3226
|
+
* - `autofocus`: Focus the link after it is rendered
|
|
3227
|
+
* - `variant`: Visual style for the link/button.
|
|
3228
|
+
* - `small`: Render a smaller version
|
|
3229
|
+
* - `href`: The URL the link points to
|
|
3230
|
+
* - `disabled`: Applies disabled styling, but you need to disable clicks on your own.
|
|
3231
|
+
*
|
|
3232
|
+
* The component renders an `<a>` element; `disabled` affects styling, but does not inherently prevent navigation. If you need to fully disable interaction, omit `href` and/or prevent default click behavior.
|
|
3233
|
+
* - `target`: Where to display the linked URL (e.g. `_blank`)
|
|
3234
|
+
* - `rel`: Relationship of the linked URL.
|
|
3235
|
+
*
|
|
3236
|
+
* If `target="_blank"` and `rel` is not provided, the component uses `noopener`.
|
|
3237
|
+
* - `full-width`/`fullWidth`: Makes the link take up the full width of its parent
|
|
3004
3238
|
*/
|
|
3005
3239
|
"w-link": Partial<
|
|
3006
3240
|
WarpLinkProps & WarpLinkSolidJsProps & BaseProps<WarpLink> & BaseEvents
|
|
@@ -3197,9 +3431,15 @@ export type CustomElementsSolidJs = {
|
|
|
3197
3431
|
*
|
|
3198
3432
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3199
3433
|
*
|
|
3200
|
-
* - `selected`:
|
|
3201
|
-
*
|
|
3202
|
-
*
|
|
3434
|
+
* - `selected`: Whether the card is visually selected.
|
|
3435
|
+
*
|
|
3436
|
+
* Use this when the card represents a selected item or choice. This only controls the visual selected state; update it from your application state when the selection changes.
|
|
3437
|
+
* - `flat`: Whether the card uses the flat visual treatment.
|
|
3438
|
+
*
|
|
3439
|
+
* Flat cards use a bordered surface instead of the default elevated surface. Use this for denser layouts or when the card sits inside another surface.
|
|
3440
|
+
* - `clickable`: Whether the whole card is interactive.
|
|
3441
|
+
*
|
|
3442
|
+
* When set, the card becomes keyboard focusable and Enter or Space triggers a click on the card. Use this only when the whole card has one action or represents one selectable choice.
|
|
3203
3443
|
* - `buttonText`: undefined (property only)
|
|
3204
3444
|
*
|
|
3205
3445
|
* ## Methods
|
|
@@ -3219,13 +3459,27 @@ export type CustomElementsSolidJs = {
|
|
|
3219
3459
|
*
|
|
3220
3460
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3221
3461
|
*
|
|
3222
|
-
* - `name`: The name of the checkbox
|
|
3223
|
-
*
|
|
3224
|
-
*
|
|
3225
|
-
* - `
|
|
3226
|
-
*
|
|
3227
|
-
*
|
|
3228
|
-
* - `
|
|
3462
|
+
* - `name`: The name of the checkbox.
|
|
3463
|
+
*
|
|
3464
|
+
* When the checkbox is checked and belongs to a form, this name is submitted with the checkbox value. If the checkbox is inside a `w-checkbox-group` with a name, the group name is used when the checkbox does not have its own name.
|
|
3465
|
+
* - `value`: The value submitted when the checkbox is checked.
|
|
3466
|
+
*
|
|
3467
|
+
* If no value attribute is set, the checkbox defaults to `on`. Unchecked and disabled checkboxes do not submit a value.
|
|
3468
|
+
* - `indeterminate`: Whether the checkbox is visually indeterminate.
|
|
3469
|
+
*
|
|
3470
|
+
* Use this for parent options that represent a mixed set of child selections. Clicking the checkbox clears the indeterminate state and sets the checkbox to checked.
|
|
3471
|
+
* - `checked`: Whether the checkbox is checked.
|
|
3472
|
+
*
|
|
3473
|
+
* Checked checkboxes submit their value with form data. The property is reflected to the `checked` attribute.
|
|
3474
|
+
* - `disabled`: Whether the checkbox is disabled.
|
|
3475
|
+
*
|
|
3476
|
+
* Disabled checkboxes cannot be focused, changed, or submitted with form data.
|
|
3477
|
+
* - `required`: Whether the checkbox must be checked before form submission.
|
|
3478
|
+
*
|
|
3479
|
+
* A required checkbox is invalid until it is checked. For requiring at least one option in a set, use `required` on `w-checkbox-group`.
|
|
3480
|
+
* - `invalid`: Whether the checkbox is visually invalid.
|
|
3481
|
+
*
|
|
3482
|
+
* Use this to show an externally managed validation error. Required validation also sets the invalid state after the user interacts with the checkbox or tries to submit the form.
|
|
3229
3483
|
* - `input`: undefined (property only)
|
|
3230
3484
|
* - `_computedInvalid`: Computed invalid state: combines own invalid with group invalid (property only) (readonly)
|
|
3231
3485
|
* - `validationMessage`: Returns the validation message if the checkbox is invalid, otherwise an empty string (property only) (readonly)
|
|
@@ -3260,11 +3514,23 @@ export type CustomElementsSolidJs = {
|
|
|
3260
3514
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3261
3515
|
*
|
|
3262
3516
|
* - `label`: The group label displayed above the checkboxes.
|
|
3517
|
+
*
|
|
3518
|
+
* Use this to describe the shared question or topic for the checkbox options. The label is connected to the internal group for assistive technologies.
|
|
3263
3519
|
* - `name`: The name applied to child checkboxes when they do not provide one.
|
|
3520
|
+
*
|
|
3521
|
+
* Use this when the grouped checkboxes should submit values under the same form field name. Individual checkboxes can still override the group name with their own `name`.
|
|
3264
3522
|
* - `optional`: Whether to show optional text next to the label.
|
|
3265
|
-
*
|
|
3266
|
-
*
|
|
3267
|
-
* - `
|
|
3523
|
+
*
|
|
3524
|
+
* Use this to indicate that selecting an option from the group is not required.
|
|
3525
|
+
* - `help-text`/`helpText`: Help text displayed below the checkbox group.
|
|
3526
|
+
*
|
|
3527
|
+
* Use this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message.
|
|
3528
|
+
* - `required`: Whether at least one checkbox in the group must be selected.
|
|
3529
|
+
*
|
|
3530
|
+
* Required validation is managed by the group. The individual checkboxes provide the submitted form values.
|
|
3531
|
+
* - `invalid`: Whether the checkbox group is visually invalid.
|
|
3532
|
+
*
|
|
3533
|
+
* Use this to show an externally managed validation error for the group. The invalid state is also shared with child checkboxes for consistent styling and accessibility state.
|
|
3268
3534
|
*
|
|
3269
3535
|
* ## Methods
|
|
3270
3536
|
*
|
|
@@ -3290,21 +3556,51 @@ export type CustomElementsSolidJs = {
|
|
|
3290
3556
|
*
|
|
3291
3557
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3292
3558
|
*
|
|
3293
|
-
* - `options`: The available options to select from
|
|
3294
|
-
*
|
|
3295
|
-
*
|
|
3296
|
-
* - `
|
|
3297
|
-
*
|
|
3298
|
-
*
|
|
3299
|
-
* - `
|
|
3300
|
-
*
|
|
3301
|
-
*
|
|
3302
|
-
* - `
|
|
3303
|
-
*
|
|
3304
|
-
*
|
|
3305
|
-
* - `
|
|
3306
|
-
*
|
|
3307
|
-
*
|
|
3559
|
+
* - `options`: The available options to select from.
|
|
3560
|
+
*
|
|
3561
|
+
* Use this for framework usage, application state, or remote search results. When `options` contains entries, it is used instead of child `<option>` elements.
|
|
3562
|
+
* - `label`: The label displayed above the input.
|
|
3563
|
+
*
|
|
3564
|
+
* Use this to give the combobox a visible and accessible name.
|
|
3565
|
+
* - `placeholder`: Placeholder text displayed when the input is empty.
|
|
3566
|
+
*
|
|
3567
|
+
* Use this as a short hint for the expected input. Do not use placeholder text as a replacement for a label.
|
|
3568
|
+
* - `value`: The selected or typed value.
|
|
3569
|
+
*
|
|
3570
|
+
* When an option is selected, this is set to the option value. The displayed text may differ when the option has a separate label.
|
|
3571
|
+
* - `open-on-focus`/`openOnFocus`: Whether the option list opens when the input receives focus.
|
|
3572
|
+
*
|
|
3573
|
+
* Use this when users should see available options before they start typing.
|
|
3574
|
+
* - `select-on-blur`/`selectOnBlur`: Whether the active option is selected when the input loses focus.
|
|
3575
|
+
*
|
|
3576
|
+
* When enabled, the combobox selects the keyboard-highlighted option, or an option whose value exactly matches the current input value, on blur.
|
|
3577
|
+
* - `match-text-segments`/`matchTextSegments`: Whether matching text segments in options are highlighted.
|
|
3578
|
+
*
|
|
3579
|
+
* Use this to visually emphasize the part of each option that matches the current input value.
|
|
3580
|
+
* - `disable-static-filtering`/`disableStaticFiltering`: Whether built-in client-side filtering is disabled.
|
|
3581
|
+
*
|
|
3582
|
+
* Use this for remote search or externally filtered results. When disabled, all entries in `options` are rendered as provided.
|
|
3583
|
+
* - `invalid`: Whether the combobox is visually invalid.
|
|
3584
|
+
*
|
|
3585
|
+
* Use this to show an externally managed validation error. Pair it with `help-text` to explain how to fix the error.
|
|
3586
|
+
* - `help-text`/`helpText`: Help text displayed below the input.
|
|
3587
|
+
*
|
|
3588
|
+
* Use this for supporting guidance or validation feedback.
|
|
3589
|
+
* - `disabled`: Whether the combobox is disabled.
|
|
3590
|
+
*
|
|
3591
|
+
* Disabled comboboxes cannot be focused, changed, or submitted with form data.
|
|
3592
|
+
* - `required`: Whether the combobox is required before form submission.
|
|
3593
|
+
*
|
|
3594
|
+
* Use this when the user must provide a value before submitting the form.
|
|
3595
|
+
* - `optional`: Whether to show optional text next to the label.
|
|
3596
|
+
*
|
|
3597
|
+
* Use this to indicate that the combobox is not required.
|
|
3598
|
+
* - `name`: The name submitted with the combobox value.
|
|
3599
|
+
*
|
|
3600
|
+
* Use this when the combobox belongs to a form and its value should be included in form data.
|
|
3601
|
+
* - `autocomplete`: The autocomplete attribute passed to the internal input.
|
|
3602
|
+
*
|
|
3603
|
+
* Defaults to `off`. Set this when browser autocomplete should be enabled or scoped to a specific autocomplete token.
|
|
3308
3604
|
*
|
|
3309
3605
|
* ## Methods
|
|
3310
3606
|
*
|