@uxf/form 11.49.1 → 11.49.2
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.
|
@@ -8,11 +8,11 @@ export type CheckboxListOption = {
|
|
|
8
8
|
label: ReactNode;
|
|
9
9
|
isDisabled?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export type CheckboxListValue =
|
|
12
|
-
type
|
|
13
|
-
onChange?: FormControlProps<CheckboxListValue
|
|
11
|
+
export type CheckboxListValue<T> = T[] | null;
|
|
12
|
+
type CheckboxListProps<FormData extends FieldValues> = UseControllerProps<FormData> & Omit<UICheckboxInputProps, "isInvalid" | "name" | "onChange" | "value"> & {
|
|
13
|
+
onChange?: FormControlProps<CheckboxListValue<string | number>>["onChange"];
|
|
14
14
|
options: CheckboxListOption[];
|
|
15
15
|
requiredMessage?: string;
|
|
16
16
|
};
|
|
17
|
-
export declare function CheckboxList<FormData extends FieldValues>(props:
|
|
17
|
+
export declare function CheckboxList<FormData extends FieldValues>(props: CheckboxListProps<FormData>): React.JSX.Element;
|
|
18
18
|
export {};
|