@uxf/form 11.19.1 → 11.19.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.
- package/package.json +1 -1
- package/select/select.d.ts +5 -2
package/package.json
CHANGED
package/select/select.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { SelectBaseValueId } from "@uxf/ui/_select-base";
|
|
2
|
-
import { SelectProps as UISelectProps } from "@uxf/ui/select";
|
|
2
|
+
import { SelectProps as UISelectProps, SelectValue as UISelectValue } from "@uxf/ui/select";
|
|
3
|
+
import { FormControlProps } from "@uxf/ui/types";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import { FieldValues } from "react-hook-form";
|
|
5
6
|
import { ControlProps } from "../types";
|
|
7
|
+
type OnChangeHandler = FormControlProps<UISelectValue | null>["onChange"];
|
|
6
8
|
export type SelectProps<FormData extends FieldValues> = ControlProps<FormData> & Omit<UISelectProps, "isInvalid" | "name" | "onChange" | "value"> & {
|
|
7
|
-
onChange?:
|
|
9
|
+
onChange?: OnChangeHandler;
|
|
8
10
|
requiredMessage?: string;
|
|
9
11
|
};
|
|
10
12
|
export type SelectValue<T extends SelectBaseValueId> = T | null;
|
|
@@ -12,3 +14,4 @@ export declare function Select<FormData extends Record<string, any>>(props: Sele
|
|
|
12
14
|
export declare namespace Select {
|
|
13
15
|
var displayName: string;
|
|
14
16
|
}
|
|
17
|
+
export {};
|