@refinedev/antd 5.2.0 → 5.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/CHANGELOG.md +86 -0
- package/dist/components/buttons/delete/index.d.ts.map +1 -1
- package/dist/components/layout/sider/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts +6 -2
- package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts.map +1 -1
- package/dist/hooks/form/useModalForm/useModalForm.d.ts +1 -1
- package/dist/hooks/form/useModalForm/useModalForm.d.ts.map +1 -1
- package/dist/iife/index.js +4 -4
- package/dist/iife/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/buttons/delete/index.tsx +4 -0
- package/src/components/layout/sider/index.tsx +21 -1
- package/src/hooks/form/useDrawerForm/useDrawerForm.ts +35 -39
- package/src/hooks/form/useModalForm/useModalForm.ts +7 -43
- package/src/types/sunflower.d.ts +5 -13
@@ -6,7 +6,11 @@ import { DeleteButtonProps } from "../../../components";
|
|
6
6
|
export interface UseDrawerFormConfig extends UseFormConfig {
|
7
7
|
action: "show" | "edit" | "create" | "clone";
|
8
8
|
}
|
9
|
-
export declare type UseDrawerFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormPropsCore<TData, TError, TVariables> & UseFormProps<TData, TError, TVariables> & UseDrawerFormConfig & LiveModeProps & FormWithSyncWithLocationParams
|
9
|
+
export declare type UseDrawerFormProps<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormPropsCore<TData, TError, TVariables> & UseFormProps<TData, TError, TVariables> & UseDrawerFormConfig & LiveModeProps & FormWithSyncWithLocationParams & {
|
10
|
+
defaultVisible?: boolean;
|
11
|
+
autoSubmitClose?: boolean;
|
12
|
+
autoResetForm?: boolean;
|
13
|
+
};
|
10
14
|
export declare type UseDrawerFormReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}> = UseFormReturnType<TData, TError, TVariables> & {
|
11
15
|
formProps: FormProps<TVariables> & {
|
12
16
|
form: FormInstance<TVariables>;
|
@@ -29,5 +33,5 @@ export declare type UseDrawerFormReturnType<TData extends BaseRecord = BaseRecor
|
|
29
33
|
*
|
30
34
|
*
|
31
35
|
*/
|
32
|
-
export declare const useDrawerForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({
|
36
|
+
export declare const useDrawerForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ syncWithLocation, defaultVisible, autoSubmitClose, autoResetForm, ...rest }: UseDrawerFormProps<TData, TError, TVariables>) => UseDrawerFormReturnType<TData, TError, TVariables>;
|
33
37
|
//# sourceMappingURL=useDrawerForm.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDrawerForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useDrawerForm/useDrawerForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,
|
1
|
+
{"version":3,"file":"useDrawerForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useDrawerForm/useDrawerForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,EAGH,YAAY,IAAI,gBAAgB,EAChC,SAAS,EACT,aAAa,EACb,UAAU,EACV,8BAA8B,EAC9B,OAAO,EAKV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,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 export declare type UseModalFormProps<TData extends BaseRecord = BaseRecord, TEr
|
|
34
34
|
*
|
35
35
|
*
|
36
36
|
*/
|
37
|
-
export declare const useModalForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({
|
37
|
+
export declare const useModalForm: <TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}>({ syncWithLocation, ...rest }: UseModalFormProps<TData, TError, TVariables>) => UseModalFormReturnType<TData, TError, TVariables>;
|
38
38
|
export {};
|
39
39
|
//# sourceMappingURL=useModalForm.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useModalForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useModalForm/useModalForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC3D,OAAO,EAEH,kBAAkB,IAAI,oBAAoB,EAC7C,MAAM,gBAAgB,CAAC;AAExB,OAAO,
|
1
|
+
{"version":3,"file":"useModalForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useModalForm/useModalForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC3D,OAAO,EAEH,kBAAkB,IAAI,oBAAoB,EAC7C,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAGH,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACV,aAAa,EACb,OAAO,EAGP,8BAA8B,EAGjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEtE,oBAAY,4BAA4B,CAAC,KAAK,EAAE,UAAU,IAAI;IAC1D,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,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