@bouku/modal 0.0.6 → 0.0.8
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.
|
@@ -11,7 +11,7 @@ type ModalProps = Component & {
|
|
|
11
11
|
};
|
|
12
12
|
type Props<T extends FormData = FormData, P extends PresetName | undefined = undefined> = {
|
|
13
13
|
fields: FormBuilderField[][];
|
|
14
|
-
initialData?: Partial<T
|
|
14
|
+
initialData?: Partial<FormSchema<T, P>>;
|
|
15
15
|
submitLabel?: string;
|
|
16
16
|
validator?: (data: FormSchema<T, P>) => {
|
|
17
17
|
success: boolean;
|
|
@@ -29,7 +29,7 @@ type Props<T extends FormData = FormData, P extends PresetName | undefined = und
|
|
|
29
29
|
* Combines a standard modal layout with a form builder.
|
|
30
30
|
* Wraps @bouko/form `FormBuilder` for form handling.
|
|
31
31
|
**/
|
|
32
|
-
export declare function FormModal({ style, fields, initialData, submitLabel, submit, oops, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function FormModal<T extends FormData = FormData, P extends PresetName | undefined = undefined>({ style, fields, initialData, submitLabel, submit, oops, ...props }: Props<T, P>): import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
export default FormModal;
|
|
34
34
|
/**
|
|
35
35
|
* Problems:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bouku/modal",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@bouku/animate": "^0.0.1",
|
|
24
24
|
"@bouku/core": "^0.4.1",
|
|
25
25
|
"@bouku/form": "^0.1.9",
|
|
26
|
-
"@bouku/notify": "^0.0.
|
|
26
|
+
"@bouku/notify": "^0.0.3",
|
|
27
27
|
"clsx": "^2.1.1",
|
|
28
28
|
"formeact": "^0.0.3",
|
|
29
29
|
"framer-motion": "^12.16.0",
|