@chris-c-brine/form-dialog 1.2.0 → 1.3.1
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/components/buttons/FormCancelButton.d.ts +2 -1
- package/dist/components/buttons/FormResetButton.d.ts +3 -8
- package/dist/components/buttons/FormSubmitButton.d.ts +4 -11
- package/dist/components/buttons/LoadingButton.d.ts +2 -2
- package/dist/components/dialogs/FormDialogActions.d.ts +1 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useFormButton.d.ts +5 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +106 -17342
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +106 -17342
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +6 -46
- package/dist/utils/applyDefaultFormDialogProps.d.ts +256 -358
- package/dist/utils/formState.d.ts +7 -0
- package/dist/utils/index.d.ts +1 -1
- package/package.json +25 -29
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FieldValues, UseFormStateReturn } from "react-hook-form-mui";
|
|
2
|
+
export type DisabledWhileActionProps = {
|
|
3
|
+
formState: UseFormStateReturn<FieldValues>;
|
|
4
|
+
disabledForm: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const disabledWhileLoading: ({ formState, disabledForm }: DisabledWhileActionProps) => boolean;
|
|
7
|
+
export declare const enabledWhileDirty: ({ formState, disabledForm }: DisabledWhileActionProps) => boolean;
|
package/dist/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chris-c-brine/form-dialog",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Easy MUI Form Dialogs with react-hook-form!",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,39 +19,35 @@
|
|
|
19
19
|
"typescript",
|
|
20
20
|
"react-hook-form-mui"
|
|
21
21
|
],
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"lodash": "^4.17.21"
|
|
24
|
-
},
|
|
25
22
|
"peerDependencies": {
|
|
26
|
-
"@emotion/react": "
|
|
27
|
-
"@emotion/styled": "
|
|
28
|
-
"@mui/icons-material": "
|
|
29
|
-
"@mui/material": "
|
|
30
|
-
"react": "
|
|
31
|
-
"react-dom": "
|
|
32
|
-
"react-hook-form": "
|
|
33
|
-
"react-hook-form-mui": "
|
|
23
|
+
"@emotion/react": ">11.0.0",
|
|
24
|
+
"@emotion/styled": ">11.0.0",
|
|
25
|
+
"@mui/icons-material": ">7.0.0",
|
|
26
|
+
"@mui/material": ">7.0.0",
|
|
27
|
+
"react": ">19.0.0",
|
|
28
|
+
"react-dom": ">19.0.0",
|
|
29
|
+
"react-hook-form": ">7.0.0",
|
|
30
|
+
"react-hook-form-mui": ">7.0.0"
|
|
34
31
|
},
|
|
35
32
|
"devDependencies": {
|
|
36
33
|
"@emotion/react": "^11.14.0",
|
|
37
|
-
"@emotion/styled": "^11.14.
|
|
38
|
-
"@mui/icons-material": "^
|
|
39
|
-
"@mui/material": "^
|
|
40
|
-
"@
|
|
41
|
-
"@rollup/plugin-
|
|
42
|
-
"@rollup/plugin-
|
|
43
|
-
"@
|
|
44
|
-
"@types/react": "^19.
|
|
45
|
-
"@types/react-dom": "^19.
|
|
46
|
-
"react": "^19.
|
|
47
|
-
"react-dom": "^19.
|
|
48
|
-
"react-hook-form": "^7.
|
|
49
|
-
"react-hook-form-mui": "^
|
|
50
|
-
"rollup": "^4.
|
|
34
|
+
"@emotion/styled": "^11.14.1",
|
|
35
|
+
"@mui/icons-material": "^9.0.0",
|
|
36
|
+
"@mui/material": "^9.0.0",
|
|
37
|
+
"@rollup/plugin-commonjs": "^29.0.2",
|
|
38
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
39
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
40
|
+
"@types/node": "^25.6.0",
|
|
41
|
+
"@types/react": "^19.2.14",
|
|
42
|
+
"@types/react-dom": "^19.2.3",
|
|
43
|
+
"react": "^19.2.5",
|
|
44
|
+
"react-dom": "^19.2.5",
|
|
45
|
+
"react-hook-form": "^7.75.0",
|
|
46
|
+
"react-hook-form-mui": "^9.0.1",
|
|
47
|
+
"rollup": "^4.60.3",
|
|
51
48
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
52
49
|
"tslib": "^2.8.1",
|
|
53
|
-
"typescript": "^
|
|
54
|
-
"@types/node": "^22.15.17"
|
|
50
|
+
"typescript": "^6.0.3"
|
|
55
51
|
},
|
|
56
52
|
"author": "Christopher Brine",
|
|
57
53
|
"license": "AAL",
|
|
@@ -59,4 +55,4 @@
|
|
|
59
55
|
"url": "https://github.com/Chris-C-Brine/FormDialog/issues"
|
|
60
56
|
},
|
|
61
57
|
"homepage": "https://github.com/Chris-C-Brine/FormDialog#readme"
|
|
62
|
-
}
|
|
58
|
+
}
|