indicator-ui 1.1.49 → 1.1.51
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.
|
@@ -56,5 +56,6 @@ export declare function useForm<TForm, TFormNullable extends Nullable<Undefinabl
|
|
|
56
56
|
getValidForm: () => Promise<TForm | null>;
|
|
57
57
|
submitForm: () => void;
|
|
58
58
|
resetForm: () => void;
|
|
59
|
+
removeError: <P extends FormPath<TFormNullable>>(path: P) => void;
|
|
59
60
|
};
|
|
60
61
|
export {};
|
|
@@ -10,7 +10,7 @@ type OptionsManagementProps<D, M extends boolean> = Parameters<typeof useOptions
|
|
|
10
10
|
type SearchingProps<D, M extends boolean> = Parameters<typeof useSearching<D, M>>[number];
|
|
11
11
|
type PaginationProps<D, M extends boolean> = Parameters<typeof usePagination<D, M>>[number];
|
|
12
12
|
type ComponentProps<D, M extends boolean> = Parameters<typeof useComponentProps<D, M>>[number];
|
|
13
|
-
type PropsType<D, M extends boolean> = Pick<React.ComponentProps<typeof FormField>, 'button' | 'help' | 'textSupport' | 'icon' | 'userPic'> & FieldPropsType<ValueType<D, M>> & Pick<OptionsManagementProps<D, M>, 'options'> & Pick<SearchingProps<D, M>, 'search'> & Pick<PaginationProps<D, M>, 'paginate'> & Pick<ComponentProps<D, M>, 'maxCount'> & {
|
|
13
|
+
type PropsType<D, M extends boolean> = Pick<React.ComponentProps<typeof FormField>, 'button' | 'help' | 'textSupport' | 'icon' | 'userPic' | 'placeholder'> & FieldPropsType<ValueType<D, M>> & Pick<OptionsManagementProps<D, M>, 'options'> & Pick<SearchingProps<D, M>, 'search'> & Pick<PaginationProps<D, M>, 'paginate'> & Pick<ComponentProps<D, M>, 'maxCount'> & {
|
|
14
14
|
multiple?: M;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
};
|
|
@@ -31,6 +31,7 @@ export declare function useSelectField<D, M extends boolean = false>(props: Prop
|
|
|
31
31
|
formFieldProps: {
|
|
32
32
|
button?: React.ReactNode;
|
|
33
33
|
icon?: React.ReactNode;
|
|
34
|
+
placeholder?: string | undefined | undefined;
|
|
34
35
|
textSupport?: React.ReactNode;
|
|
35
36
|
userPic?: React.ReactNode;
|
|
36
37
|
help?: React.ReactNode;
|