@chris-c-brine/form-dialog 1.0.6 → 1.1.0
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.md +107 -97
- package/dist/components/buttons/FormSubmitButton.d.ts +1 -1
- package/dist/components/dialogs/BaseDialog.d.ts +3 -3
- package/dist/components/dialogs/FormDialog.d.ts +7 -9
- package/dist/components/dialogs/FormDialogActions.d.ts +1 -1
- package/dist/components/forms/PaperForm.d.ts +14 -6
- package/dist/components/forms/PersistForm.d.ts +2 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useDialog.d.ts +9 -7
- package/dist/hooks/useFormDialog.d.ts +1 -1
- package/dist/hooks/usePersistForm.d.ts +29 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +185 -207
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +185 -207
- package/dist/index.js.map +1 -1
- package/dist/utils/ThemeBridge.d.ts +0 -1
- package/dist/utils/applyDefaultFormDialogProps.d.ts +24 -24
- package/package.json +1 -1
|
@@ -294,9 +294,6 @@ export declare function applyDefaultFormDialogProps({ resetProps, submitProps, g
|
|
|
294
294
|
fullWidth?: boolean | undefined;
|
|
295
295
|
size?: import("@mui/types").OverridableStringUnion<"small" | "medium" | "large", import("@mui/material").ButtonPropsSizeOverrides> | undefined;
|
|
296
296
|
variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides> | undefined;
|
|
297
|
-
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
298
|
-
name?: string | undefined | undefined;
|
|
299
|
-
value?: string | number | readonly string[] | undefined;
|
|
300
297
|
action?: React.Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
301
298
|
centerRipple?: boolean | undefined;
|
|
302
299
|
disableRipple?: boolean | undefined;
|
|
@@ -307,19 +304,22 @@ export declare function applyDefaultFormDialogProps({ resetProps, submitProps, g
|
|
|
307
304
|
onFocusVisible?: React.FocusEventHandler<any> | undefined;
|
|
308
305
|
TouchRippleProps?: Partial<import("@mui/material").TouchRippleProps> | undefined;
|
|
309
306
|
touchRippleRef?: React.Ref<import("@mui/material").TouchRippleActions> | undefined;
|
|
310
|
-
|
|
307
|
+
disableElevation?: boolean | undefined;
|
|
311
308
|
disableFocusRipple?: boolean | undefined;
|
|
309
|
+
endIcon?: ReactNode;
|
|
310
|
+
href?: string | undefined;
|
|
312
311
|
loading?: boolean | null | undefined;
|
|
313
312
|
loadingIndicator?: ReactNode;
|
|
313
|
+
loadingPosition?: "start" | "end" | "center" | undefined;
|
|
314
|
+
startIcon?: ReactNode;
|
|
314
315
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
315
316
|
formEncType?: string | undefined | undefined;
|
|
316
317
|
formMethod?: string | undefined | undefined;
|
|
317
318
|
formNoValidate?: boolean | undefined | undefined;
|
|
318
319
|
formTarget?: string | undefined | undefined;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
startIcon?: ReactNode;
|
|
320
|
+
name?: string | undefined | undefined;
|
|
321
|
+
type?: "submit" | "reset" | "button" | undefined | undefined;
|
|
322
|
+
value?: string | number | readonly string[] | undefined;
|
|
323
323
|
keepCount: boolean;
|
|
324
324
|
formKey?: string | undefined;
|
|
325
325
|
};
|
|
@@ -1065,9 +1065,6 @@ export declare function applyDefaultFormDialogProps({ resetProps, submitProps, g
|
|
|
1065
1065
|
size?: import("@mui/types").OverridableStringUnion<"small" | "medium" | "large", import("@mui/material").ButtonPropsSizeOverrides>;
|
|
1066
1066
|
disabled?: boolean;
|
|
1067
1067
|
variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides>;
|
|
1068
|
-
type?: "submit" | "reset" | "button" | undefined;
|
|
1069
|
-
name?: string | undefined;
|
|
1070
|
-
value?: string | readonly string[] | number | undefined;
|
|
1071
1068
|
action?: React.Ref<import("@mui/material").ButtonBaseActions>;
|
|
1072
1069
|
centerRipple?: boolean;
|
|
1073
1070
|
disableRipple?: boolean;
|
|
@@ -1078,19 +1075,22 @@ export declare function applyDefaultFormDialogProps({ resetProps, submitProps, g
|
|
|
1078
1075
|
onFocusVisible?: React.FocusEventHandler<any>;
|
|
1079
1076
|
TouchRippleProps?: Partial<import("@mui/material").TouchRippleProps>;
|
|
1080
1077
|
touchRippleRef?: React.Ref<import("@mui/material").TouchRippleActions>;
|
|
1081
|
-
|
|
1078
|
+
disableElevation?: boolean;
|
|
1082
1079
|
disableFocusRipple?: boolean;
|
|
1080
|
+
endIcon?: React.ReactNode;
|
|
1081
|
+
href?: string;
|
|
1083
1082
|
loading?: boolean | null;
|
|
1084
1083
|
loadingIndicator?: React.ReactNode;
|
|
1084
|
+
loadingPosition?: "start" | "end" | "center";
|
|
1085
|
+
startIcon?: React.ReactNode;
|
|
1085
1086
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
1086
1087
|
formEncType?: string | undefined;
|
|
1087
1088
|
formMethod?: string | undefined;
|
|
1088
1089
|
formNoValidate?: boolean | undefined;
|
|
1089
1090
|
formTarget?: string | undefined;
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
startIcon?: React.ReactNode;
|
|
1091
|
+
name?: string | undefined;
|
|
1092
|
+
type?: "submit" | "reset" | "button" | undefined;
|
|
1093
|
+
value?: string | readonly string[] | number | undefined;
|
|
1094
1094
|
keepCount?: boolean;
|
|
1095
1095
|
};
|
|
1096
1096
|
submitButtonProps: {
|
|
@@ -1383,9 +1383,6 @@ export declare function applyDefaultFormDialogProps({ resetProps, submitProps, g
|
|
|
1383
1383
|
size?: import("@mui/types").OverridableStringUnion<"small" | "medium" | "large", import("@mui/material").ButtonPropsSizeOverrides>;
|
|
1384
1384
|
disabled?: boolean;
|
|
1385
1385
|
variant?: import("@mui/types").OverridableStringUnion<"text" | "outlined" | "contained", import("@mui/material").ButtonPropsVariantOverrides>;
|
|
1386
|
-
type?: "submit" | "reset" | "button" | undefined;
|
|
1387
|
-
name?: string | undefined;
|
|
1388
|
-
value?: string | readonly string[] | number | undefined;
|
|
1389
1386
|
action?: React.Ref<import("@mui/material").ButtonBaseActions>;
|
|
1390
1387
|
centerRipple?: boolean;
|
|
1391
1388
|
disableRipple?: boolean;
|
|
@@ -1396,19 +1393,22 @@ export declare function applyDefaultFormDialogProps({ resetProps, submitProps, g
|
|
|
1396
1393
|
onFocusVisible?: React.FocusEventHandler<any>;
|
|
1397
1394
|
TouchRippleProps?: Partial<import("@mui/material").TouchRippleProps>;
|
|
1398
1395
|
touchRippleRef?: React.Ref<import("@mui/material").TouchRippleActions>;
|
|
1399
|
-
|
|
1396
|
+
disableElevation?: boolean;
|
|
1400
1397
|
disableFocusRipple?: boolean;
|
|
1398
|
+
endIcon?: React.ReactNode;
|
|
1399
|
+
href?: string;
|
|
1401
1400
|
loading?: boolean | undefined;
|
|
1402
1401
|
loadingIndicator?: React.ReactNode;
|
|
1402
|
+
loadingPosition?: "start" | "end" | "center";
|
|
1403
|
+
startIcon?: React.ReactNode;
|
|
1403
1404
|
formAction?: string | ((formData: FormData) => void | Promise<void>) | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_EXPERIMENTAL_FORM_ACTIONS] | undefined;
|
|
1404
1405
|
formEncType?: string | undefined;
|
|
1405
1406
|
formMethod?: string | undefined;
|
|
1406
1407
|
formNoValidate?: boolean | undefined;
|
|
1407
1408
|
formTarget?: string | undefined;
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
startIcon?: React.ReactNode;
|
|
1409
|
+
name?: string | undefined;
|
|
1410
|
+
type?: "submit" | "reset" | "button" | undefined;
|
|
1411
|
+
value?: string | readonly string[] | number | undefined;
|
|
1412
1412
|
altIcon?: ReactNode;
|
|
1413
1413
|
showAttempts?: boolean;
|
|
1414
1414
|
maxAttempts?: number;
|