indicator-ui 1.0.3 → 1.0.5
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/dist/index.js
CHANGED
|
@@ -15740,7 +15740,8 @@ function fU(...n) {
|
|
|
15740
15740
|
v();
|
|
15741
15741
|
}, se = () => {
|
|
15742
15742
|
p().clear(), b();
|
|
15743
|
-
}
|
|
15743
|
+
};
|
|
15744
|
+
function ae(q = "", W) {
|
|
15744
15745
|
const K = { ...W || {}, ...r?.[q] || {} };
|
|
15745
15746
|
return Fx(q, K, { form: l(), formValidateFun: m() }), M8({
|
|
15746
15747
|
form: u,
|
|
@@ -15749,7 +15750,8 @@ function fU(...n) {
|
|
|
15749
15750
|
path: q,
|
|
15750
15751
|
highlightField: I
|
|
15751
15752
|
});
|
|
15752
|
-
}
|
|
15753
|
+
}
|
|
15754
|
+
const z = () => ({
|
|
15753
15755
|
noValidate: !0,
|
|
15754
15756
|
onReset: (q) => {
|
|
15755
15757
|
q.preventDefault(), j(), se();
|
|
@@ -208,7 +208,10 @@ export declare function useForm<Form, T extends Nullable<Undefinable<Form>> = Nu
|
|
|
208
208
|
clearForm: () => void;
|
|
209
209
|
clearErrors: () => void;
|
|
210
210
|
clearField: (_path: FormPath<T> | FormPath<T>[]) => void;
|
|
211
|
-
register:
|
|
211
|
+
register: {
|
|
212
|
+
(): FieldPropsType<FormValue<T, "">>;
|
|
213
|
+
<P extends FormPath<T>>(path: P, config?: FormSchemeType<T>[P]): FieldPropsType<FormValue<T, P>>;
|
|
214
|
+
};
|
|
212
215
|
registerForm: () => Pick<React.ComponentProps<"form">, "onSubmit" | "onReset" | "noValidate">;
|
|
213
216
|
getValidForm: () => Promise<Form | null>;
|
|
214
217
|
};
|
|
@@ -19,7 +19,7 @@ export type Nullable<T> = null | (IsObject<T> extends true ? IsArray<T> extends
|
|
|
19
19
|
[K in keyof T]: T[K] | null;
|
|
20
20
|
} : T);
|
|
21
21
|
export type Undefinable<T> = undefined | (IsObject<T> extends true ? IsArray<T> extends true ? T : {
|
|
22
|
-
[K in keyof T]
|
|
22
|
+
[K in keyof T]?: T[K] | undefined;
|
|
23
23
|
} : T);
|
|
24
24
|
export type Merge<A extends Record<any, any>, B extends Record<any, any>> = Omit<A, keyof B> & B;
|
|
25
25
|
export type AsProps<T extends ElementType, P extends Record<string, any> = {}> = Merge<React.ComponentProps<T>, {
|