ingeniuscliq-core 0.3.18 → 0.3.19
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseStyleProps } from '../../../types/ui/main';
|
|
2
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
3
|
+
import { CustomSelectProps } from '../select';
|
|
4
|
+
interface FormSelectProps<T extends FieldValues = FieldValues> extends BaseStyleProps {
|
|
5
|
+
readonly control: Control<T>;
|
|
6
|
+
readonly name: Path<T>;
|
|
7
|
+
readonly placeholder?: string;
|
|
8
|
+
readonly options: CustomSelectProps['options'];
|
|
9
|
+
readonly className: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function FormSelect<T extends FieldValues = FieldValues>({ control, name, placeholder, className, options }: FormSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseStyleProps } from '../../../types/ui/main';
|
|
2
|
-
interface CustomSelectProps extends BaseStyleProps {
|
|
2
|
+
export interface CustomSelectProps extends BaseStyleProps {
|
|
3
3
|
readonly options: {
|
|
4
4
|
readonly value: string;
|
|
5
5
|
readonly label: string | React.ReactNode;
|
|
@@ -7,4 +7,3 @@ interface CustomSelectProps extends BaseStyleProps {
|
|
|
7
7
|
readonly placeholder?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare function CustomSelect({ options, placeholder, className }: CustomSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|