@max-ts/components 0.5.2 → 0.5.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.
|
@@ -22,4 +22,4 @@ export type SelectProps<Value> = WithoutEmotionSpecific<Omit<MuiSelectProps<Valu
|
|
|
22
22
|
error?: boolean;
|
|
23
23
|
label?: string;
|
|
24
24
|
};
|
|
25
|
-
export declare function Select<
|
|
25
|
+
export declare function Select<TValue>({ required, getOptionLabel, placeholder, helperText, hideHelperText, loading, success, children, disabled, error, label, fullWidth, onChange: externalOnChange, isShowClearButton, ...props }: SelectProps<TValue>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SelectProps } from '../../components';
|
|
2
2
|
import { WithFormFieldProps } from '../types';
|
|
3
|
-
export type FormSelectProps<FieldValues extends object> = WithFormFieldProps<SelectProps<
|
|
3
|
+
export type FormSelectProps<FieldValues extends object, TValue> = WithFormFieldProps<SelectProps<TValue>, FieldValues>;
|
|
4
4
|
/**
|
|
5
5
|
* @description Адаптер для Select
|
|
6
6
|
*/
|
|
7
|
-
export declare const FormSelect: <FieldValues extends object>({ name, control, ...rest }: FormSelectProps<FieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const FormSelect: <FieldValues extends object, TValue>({ name, control, ...rest }: FormSelectProps<FieldValues, TValue>) => import("react/jsx-runtime").JSX.Element;
|
package/lib/index.mjs
CHANGED