@ilokesto/form 2.0.1 → 2.0.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.
- package/README.ko.md +40 -924
- package/README.md +39 -924
- package/dist/{FormInput-DuT7QFe-.d.ts → FormInput-BpDWf4hF.d.ts} +3 -0
- package/dist/chunk-M7Y4OJPP.js +2166 -0
- package/dist/chunk-M7Y4OJPP.js.map +1 -0
- package/dist/{chunk-JK644RR7.js → chunk-WO5TIXCR.js} +3 -3
- package/dist/chunk-WO5TIXCR.js.map +1 -0
- package/dist/index.d.ts +194 -23
- package/dist/index.js +1 -1
- package/dist/react/index.d.ts +104 -2
- package/dist/react/index.js +2 -2
- package/dist/react/index.js.map +1 -1
- package/dist/solid/index.d.ts +103 -2
- package/dist/solid/index.js +2 -2
- package/dist/solid/index.js.map +1 -1
- package/dist/svelte/index.d.ts +75 -2
- package/dist/svelte/index.js +2 -2
- package/dist/svelte/index.js.map +1 -1
- package/dist/vue/index.d.ts +103 -2
- package/dist/vue/index.js +2 -2
- package/dist/vue/index.js.map +1 -1
- package/package.json +36 -23
- package/dist/chunk-4F4SAGQ5.js +0 -1465
- package/dist/chunk-4F4SAGQ5.js.map +0 -1
- package/dist/chunk-JK644RR7.js.map +0 -1
|
@@ -23,6 +23,7 @@ type RegisterOptions = FieldHookOptions & {
|
|
|
23
23
|
type DomValue = string | number | readonly string[];
|
|
24
24
|
|
|
25
25
|
type SubmitEventLike = {
|
|
26
|
+
/** Optional callback used to cancel native form submission. */
|
|
26
27
|
preventDefault?: () => void;
|
|
27
28
|
};
|
|
28
29
|
type SubmitValidHandler<TValues, TResult> = (values: TValues) => TResult | Promise<TResult>;
|
|
@@ -30,7 +31,9 @@ type SubmitInvalidHandler = (fields: Readonly<Record<PathKey, FieldState>>) => v
|
|
|
30
31
|
type SubmitHandler<TEvent extends SubmitEventLike, TResult> = (event?: TEvent) => Promise<TResult | undefined>;
|
|
31
32
|
|
|
32
33
|
type ReactiveFormOptions<TValues, TSource> = CreateFormOptions<TValues> & {
|
|
34
|
+
/** Replacement values; defined reference changes reset the form. */
|
|
33
35
|
readonly values?: TSource;
|
|
36
|
+
/** State preservation policy for external-value resets. */
|
|
34
37
|
readonly resetOptions?: ResetOptions;
|
|
35
38
|
};
|
|
36
39
|
|