@refinedev/antd 5.40.0 → 5.41.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.
Files changed (150) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/dist/components/autoSaveIndicator/index.d.mts.map +4 -1
  3. package/dist/components/breadcrumb/index.d.mts.map +6 -1
  4. package/dist/components/buttons/clone/index.d.mts.map +11 -1
  5. package/dist/components/buttons/create/index.d.mts.map +11 -1
  6. package/dist/components/buttons/delete/index.d.mts.map +10 -1
  7. package/dist/components/buttons/edit/index.d.mts.map +11 -1
  8. package/dist/components/buttons/export/index.d.mts.map +10 -1
  9. package/dist/components/buttons/import/index.d.mts.map +11 -1
  10. package/dist/components/buttons/index.d.mts.map +12 -1
  11. package/dist/components/buttons/list/index.d.mts.map +11 -1
  12. package/dist/components/buttons/refresh/index.d.mts.map +10 -1
  13. package/dist/components/buttons/save/index.d.mts.map +10 -1
  14. package/dist/components/buttons/show/index.d.mts.map +11 -1
  15. package/dist/components/buttons/types.d.mts.map +24 -1
  16. package/dist/components/crud/create/index.d.mts.map +10 -1
  17. package/dist/components/crud/edit/index.d.mts.map +10 -1
  18. package/dist/components/crud/index.d.mts.map +6 -1
  19. package/dist/components/crud/list/index.d.mts.map +10 -1
  20. package/dist/components/crud/show/index.d.mts.map +10 -1
  21. package/dist/components/crud/types.d.mts.map +10 -1
  22. package/dist/components/fields/boolean/index.d.mts.map +9 -1
  23. package/dist/components/fields/date/index.d.mts.map +9 -1
  24. package/dist/components/fields/email/index.d.mts.map +10 -1
  25. package/dist/components/fields/file/index.d.mts.map +9 -1
  26. package/dist/components/fields/image/index.d.mts.map +9 -1
  27. package/dist/components/fields/index.d.mts.map +12 -1
  28. package/dist/components/fields/markdown/index.d.mts.map +9 -1
  29. package/dist/components/fields/number/index.d.mts.map +9 -1
  30. package/dist/components/fields/tag/index.d.mts.map +9 -1
  31. package/dist/components/fields/text/index.d.mts.map +9 -1
  32. package/dist/components/fields/types.d.mts.map +20 -1
  33. package/dist/components/fields/url/index.d.mts.map +10 -1
  34. package/dist/components/index.d.mts.map +24 -1
  35. package/dist/components/layout/header/index.d.mts.map +4 -1
  36. package/dist/components/layout/index.d.mts.map +8 -1
  37. package/dist/components/layout/sider/index.d.mts.map +4 -1
  38. package/dist/components/layout/sider/styles.d.mts.map +3 -1
  39. package/dist/components/layout/title/index.d.mts.map +4 -1
  40. package/dist/components/layout/types.d.mts.map +3 -1
  41. package/dist/components/pageHeader/index.d.cts.map +1 -1
  42. package/dist/components/pageHeader/index.d.mts.map +5 -1
  43. package/dist/components/pageHeader/index.d.ts.map +1 -1
  44. package/dist/components/pages/auth/components/forgotPassword/index.d.mts.map +12 -1
  45. package/dist/components/pages/auth/components/index.d.mts.map +5 -1
  46. package/dist/components/pages/auth/components/login/index.d.mts.map +12 -1
  47. package/dist/components/pages/auth/components/register/index.d.mts.map +12 -1
  48. package/dist/components/pages/auth/components/styles.d.mts.map +7 -1
  49. package/dist/components/pages/auth/components/updatePassword/index.d.mts.map +12 -1
  50. package/dist/components/pages/auth/index.d.mts.map +14 -1
  51. package/dist/components/pages/error/index.d.mts.map +10 -1
  52. package/dist/components/pages/index.d.mts.map +7 -1
  53. package/dist/components/pages/login/index.d.mts.map +15 -1
  54. package/dist/components/pages/login/styles.d.mts.map +6 -1
  55. package/dist/components/pages/ready/index.d.mts.map +9 -1
  56. package/dist/components/pages/welcome/index.d.mts.map +7 -1
  57. package/dist/components/table/components/filterDropdown/index.d.mts.map +16 -1
  58. package/dist/components/table/components/index.d.mts.map +3 -1
  59. package/dist/components/table/index.d.mts.map +2 -1
  60. package/dist/components/themedLayout/header/index.d.mts.map +7 -1
  61. package/dist/components/themedLayout/index.d.mts.map +7 -1
  62. package/dist/components/themedLayout/sider/index.d.mts.map +7 -1
  63. package/dist/components/themedLayout/sider/styles.d.mts.map +3 -1
  64. package/dist/components/themedLayout/title/index.d.mts.map +7 -1
  65. package/dist/components/themedLayout/types.d.mts.map +3 -1
  66. package/dist/components/themedLayoutV2/header/index.d.mts.map +4 -1
  67. package/dist/components/themedLayoutV2/index.d.mts.map +4 -1
  68. package/dist/components/themedLayoutV2/sider/index.d.cts.map +1 -1
  69. package/dist/components/themedLayoutV2/sider/index.d.mts.map +4 -1
  70. package/dist/components/themedLayoutV2/sider/index.d.ts.map +1 -1
  71. package/dist/components/themedLayoutV2/sider/styles.d.mts.map +3 -1
  72. package/dist/components/themedLayoutV2/title/index.d.mts.map +4 -1
  73. package/dist/components/themedLayoutV2/types.d.mts.map +6 -1
  74. package/dist/components/undoableNotification/index.d.mts.map +10 -1
  75. package/dist/contexts/index.d.mts.map +2 -1
  76. package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.mts.map +7 -1
  77. package/dist/contexts/themedLayoutContext/index.d.mts.map +8 -1
  78. package/dist/definitions/filter-mappers/index.d.mts.map +29 -1
  79. package/dist/definitions/index.d.mts.map +5 -1
  80. package/dist/definitions/table/index.d.mts.map +13 -1
  81. package/dist/definitions/themes/index.d.mts.map +6 -1
  82. package/dist/definitions/upload/index.d.mts.map +4 -1
  83. package/dist/hooks/fields/index.d.mts.map +4 -1
  84. package/dist/hooks/fields/useCheckboxGroup/index.d.cts +1 -1
  85. package/dist/hooks/fields/useCheckboxGroup/index.d.cts.map +1 -1
  86. package/dist/hooks/fields/useCheckboxGroup/index.d.mts +1 -1
  87. package/dist/hooks/fields/useCheckboxGroup/index.d.mts.map +29 -1
  88. package/dist/hooks/fields/useCheckboxGroup/index.d.ts +1 -1
  89. package/dist/hooks/fields/useCheckboxGroup/index.d.ts.map +1 -1
  90. package/dist/hooks/fields/useRadioGroup/index.d.cts +1 -1
  91. package/dist/hooks/fields/useRadioGroup/index.d.cts.map +1 -1
  92. package/dist/hooks/fields/useRadioGroup/index.d.mts +1 -1
  93. package/dist/hooks/fields/useRadioGroup/index.d.mts.map +29 -1
  94. package/dist/hooks/fields/useRadioGroup/index.d.ts +1 -1
  95. package/dist/hooks/fields/useRadioGroup/index.d.ts.map +1 -1
  96. package/dist/hooks/fields/useSelect/index.d.mts.map +20 -1
  97. package/dist/hooks/form/index.d.mts.map +5 -1
  98. package/dist/hooks/form/useDrawerForm/index.d.mts.map +2 -1
  99. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.cts +1 -2
  100. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.cts.map +1 -1
  101. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.mts +1 -2
  102. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.mts.map +36 -1
  103. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts +1 -2
  104. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts.map +1 -1
  105. package/dist/hooks/form/useForm.d.cts +4 -3
  106. package/dist/hooks/form/useForm.d.cts.map +1 -1
  107. package/dist/hooks/form/useForm.d.mts +4 -3
  108. package/dist/hooks/form/useForm.d.mts.map +41 -1
  109. package/dist/hooks/form/useForm.d.ts +4 -3
  110. package/dist/hooks/form/useForm.d.ts.map +1 -1
  111. package/dist/hooks/form/useModalForm/index.d.mts.map +2 -1
  112. package/dist/hooks/form/useModalForm/useModalForm.d.mts.map +42 -1
  113. package/dist/hooks/form/useStepsForm/index.d.mts.map +2 -1
  114. package/dist/hooks/form/useStepsForm/useStepsForm.d.mts.map +35 -1
  115. package/dist/hooks/import/index.d.mts.map +18 -1
  116. package/dist/hooks/index.d.mts.map +10 -1
  117. package/dist/hooks/list/index.d.mts.map +2 -1
  118. package/dist/hooks/list/useSimpleList/index.d.mts.map +2 -1
  119. package/dist/hooks/list/useSimpleList/useSimpleList.d.mts.map +24 -1
  120. package/dist/hooks/modal/index.d.mts.map +2 -1
  121. package/dist/hooks/modal/useModal/index.d.mts.map +18 -1
  122. package/dist/hooks/table/index.d.mts.map +3 -1
  123. package/dist/hooks/table/useEditableTable/index.d.mts.map +2 -1
  124. package/dist/hooks/table/useEditableTable/useEditableTable.d.mts.map +40 -1
  125. package/dist/hooks/table/useTable/index.d.mts.map +2 -1
  126. package/dist/hooks/table/useTable/paginationLink.d.mts.map +8 -1
  127. package/dist/hooks/table/useTable/useTable.d.mts.map +24 -1
  128. package/dist/hooks/useFileUploadState/index.d.mts.map +7 -1
  129. package/dist/hooks/useSiderVisible/index.d.mts.map +11 -1
  130. package/dist/hooks/useThemedLayoutContext/index.d.mts.map +4 -1
  131. package/dist/index.cjs +1 -1
  132. package/dist/index.cjs.map +1 -1
  133. package/dist/index.d.mts.map +9 -1
  134. package/dist/index.mjs +1 -1
  135. package/dist/index.mjs.map +1 -1
  136. package/dist/interfaces/field.d.mts.map +4 -1
  137. package/dist/interfaces/index.d.mts.map +19 -1
  138. package/dist/interfaces/upload.d.mts.map +10 -1
  139. package/dist/providers/index.d.mts.map +2 -1
  140. package/dist/providers/notificationProvider/index.d.mts.map +8 -1
  141. package/package.json +4 -4
  142. package/src/components/autoSaveIndicator/index.tsx +7 -7
  143. package/src/components/layout/sider/index.tsx +2 -2
  144. package/src/components/pageHeader/index.tsx +12 -9
  145. package/src/components/themedLayout/sider/index.tsx +2 -2
  146. package/src/components/themedLayoutV2/sider/index.tsx +23 -19
  147. package/src/hooks/fields/useCheckboxGroup/index.ts +2 -0
  148. package/src/hooks/fields/useRadioGroup/index.ts +2 -0
  149. package/src/hooks/form/useDrawerForm/useDrawerForm.ts +1 -2
  150. package/src/hooks/form/useForm.ts +12 -3
@@ -1 +1,18 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/modal/useModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAEL,KAAK,kBAAkB,IAAI,sBAAsB,EAClD,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,EAAE,UAAU,CAAC;CACxB,GAAG,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,qBAElB,aAAa,KAAQ,kBAkBvB,CAAC"}
1
+ import type { ModalProps } from "antd";
2
+ import { type useModalReturnType as useCoreModelReturnType } from "@refinedev/core";
3
+ export type useModalReturnType = {
4
+ modalProps: ModalProps;
5
+ } & Omit<useCoreModelReturnType, "visible">;
6
+ export type useModalProps = {
7
+ /**
8
+ * Default props for Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
9
+ */
10
+ modalProps?: ModalProps;
11
+ };
12
+ /**
13
+ * By using `useModal` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
14
+ *
15
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/ui/useModal} for more details.
16
+ */
17
+ export declare const useModal: ({ modalProps, }?: useModalProps) => useModalReturnType;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,3 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
1
+ export * from "./useTable";
2
+ export * from "./useEditableTable";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,2 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useEditableTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ export { useEditableTable } from "./useEditableTable";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,40 @@
1
- {"version":3,"file":"useEditableTable.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useEditableTable/useEditableTable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,SAAS,EACT,YAAY,EACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,KAAK,iBAAiB,EAAW,MAAM,oBAAoB,CAAC;AAErE,MAAM,MAAM,0BAA0B,CACpC,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,gBAAgB,GAAG,OAAO,EAC1B,KAAK,SAAS,UAAU,GAAG,YAAY,IACrC,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,CAAC,GACrD,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,GAAG;IACpD,eAAe,EAAE,WAAW,GAAG;QAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,iBAAiB,EAAE,WAAW,GAAG;QAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,eAAe,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,WAAW,GAAG;QAC9C,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,SAAS,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,OAAO,CAAC;CACrC,CAAC;AAEJ,KAAK,qBAAqB,CACxB,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,gBAAgB,GAAG,OAAO,EAC1B,KAAK,SAAS,UAAU,GAAG,YAAY,IACrC,IAAI,CACN,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAC5D,qBAAqB,GAAG,mBAAmB,CAC5C,GACC,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,GAAG;IAC/C;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEJ;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,6MAS1B,sBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,gBAAgB,EAChB,KAAK,CACN,KAAQ,2BACP,YAAY,EACZ,MAAM,EACN,UAAU,EACV,gBAAgB,EAChB,KAAK,CA+CN,CAAC"}
1
+ import type { BaseKey, BaseRecord, HttpError, UseFormProps } from "@refinedev/core";
2
+ import type { ButtonProps } from "antd";
3
+ import type { useTableProps, useTableReturnType } from "../useTable";
4
+ import { type UseFormReturnType } from "../../form/useForm";
5
+ export type useEditableTableReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = useTableReturnType<TData, TError, TSearchVariables> & UseFormReturnType<TQueryFnData, TError, TVariables> & {
6
+ saveButtonProps: ButtonProps & {
7
+ onClick: () => void;
8
+ };
9
+ cancelButtonProps: ButtonProps & {
10
+ onClick: () => void;
11
+ };
12
+ editButtonProps: (id: BaseKey) => ButtonProps & {
13
+ onClick: () => void;
14
+ };
15
+ isEditing: (id: BaseKey) => boolean;
16
+ };
17
+ type useEditableTableProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = Omit<useTableProps<TQueryFnData, TError, TSearchVariables, TData>, "successNotification" | "errorNotification"> & UseFormProps<TQueryFnData, TError, TVariables> & {
18
+ /**
19
+ * When true, row will be closed after successful submit.
20
+ */
21
+ autoSubmitClose?: boolean;
22
+ };
23
+ /**
24
+ * `useEditeableTable` allows you to implement edit feature on the table with ease,
25
+ * on top of all the features that {@link https://refine.dev/docs/api-reference/core/hooks/useTable/ `useTable`} provides.
26
+ * `useEditableTable` return properties that can be used on Ant Design's {@link https://ant.design/components/table/ `<Table>`}
27
+ * and {@link https://ant.design/components/form/ `<Form>`} components.
28
+ *
29
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/table/useTable/} for more details.
30
+ *
31
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
32
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
33
+ * @typeParam TVariables - Values for params
34
+ * @typeParam TSearchVariables - Values for search params
35
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
36
+ *
37
+ */
38
+ export declare const useEditableTable: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ autoSubmitClose, ...props }?: useEditableTableProps<TQueryFnData, TError, TVariables, TSearchVariables, TData>) => useEditableTableReturnType<TQueryFnData, TError, TVariables, TSearchVariables, TData>;
39
+ export {};
40
+ //# sourceMappingURL=useEditableTable.d.ts.map
@@ -1 +1,2 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC"}
1
+ export { useTable, useTableProps, useTableReturnType } from "./useTable";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,8 @@
1
- {"version":3,"file":"paginationLink.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useTable/paginationLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,oBAAqB,mBAAmB,sBAkBlE,CAAC"}
1
+ import React, { type ReactNode } from "react";
2
+ interface PaginationLinkProps {
3
+ to: string;
4
+ element: ReactNode;
5
+ }
6
+ export declare const PaginationLink: ({ to, element }: PaginationLinkProps) => React.JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=paginationLink.d.ts.map
@@ -1 +1,24 @@
1
- {"version":3,"file":"useTable.d.ts","sourceRoot":"","sources":["../../../../src/hooks/table/useTable/useTable.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EAGd,KAAK,UAAU,EAChB,MAAM,MAAM,CAAC;AAGd,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,aAAa,IAAI,iBAAiB,EACvC,KAAK,kBAAkB,IAAI,sBAAsB,EAGlD,MAAM,iBAAiB,CAAC;AASzB,MAAM,MAAM,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,IACrE,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;IAC/C,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC3E,CAAC;AAEJ,MAAM,MAAM,kBAAkB,CAC5B,KAAK,SAAS,UAAU,GAAG,UAAU,EACrC,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,gBAAgB,GAAG,OAAO,IACxB,sBAAsB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG;IAC1C,eAAe,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC7C,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,QAAQ,+hBA6BlB,cACD,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,KAAK,CACN,KAAQ,mBAAmB,KAAK,EAAE,MAAM,EAAE,gBAAgB,CA4M1D,CAAC"}
1
+ import { type FormProps, type TableProps } from "antd";
2
+ import { type BaseRecord, type CrudFilters, type HttpError, type useTableProps as useTablePropsCore, type useTableReturnType as useTableCoreReturnType } from "@refinedev/core";
3
+ export type useTableProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
4
+ onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
5
+ };
6
+ export type useTableReturnType<TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown> = useTableCoreReturnType<TData, TError> & {
7
+ searchFormProps: FormProps<TSearchVariables>;
8
+ tableProps: TableProps<TData>;
9
+ };
10
+ /**
11
+ * By using useTable, you are able to get properties that are compatible with
12
+ * Ant Design {@link https://ant.design/components/table/ `<Table>`} component.
13
+ * All features such as sorting, filtering and pagination comes as out of box.
14
+ *
15
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/table/useTable/} for more details.
16
+ *
17
+ * @typeParam TQueryFnData - Result data returned by the query function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
18
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#httperror `HttpError`}
19
+ * @typeParam TSearchVariables - Values for search params
20
+ * @typeParam TData - Result data returned by the `select` function. Extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}. Defaults to `TQueryFnData`
21
+ *
22
+ */
23
+ export declare const useTable: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ onSearch, initialCurrent, initialPageSize, hasPagination, pagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, filters: filtersFromProp, sorters: sortersFromProp, syncWithLocation, resource, successNotification, errorNotification, queryOptions, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useTableProps<TQueryFnData, TError, TSearchVariables, TData>) => useTableReturnType<TData, TError, TSearchVariables>;
24
+ //# sourceMappingURL=useTable.d.ts.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFileUploadState/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG,MAAM;IACzC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC"}
1
+ import type { UploadChangeParam } from "antd/lib/upload";
2
+ export type UseFileUploadStateType = () => {
3
+ isLoading: boolean;
4
+ onChange: (info: UploadChangeParam) => void;
5
+ };
6
+ export declare const useFileUploadState: UseFileUploadStateType;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,11 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSiderVisible/index.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,qBAAqB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,QAAO,mBAclC,CAAC"}
1
+ export type UseSiderVisibleType = {
2
+ siderVisible: boolean;
3
+ drawerSiderVisible: boolean;
4
+ setSiderVisible: (visible: boolean) => void;
5
+ setDrawerSiderVisible: (visible: boolean) => void;
6
+ };
7
+ /**
8
+ * @deprecated Please use `useThemedLayoutContext` instead.
9
+ */
10
+ export declare const useSiderVisible: () => UseSiderVisibleType;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1,4 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useThemedLayoutContext/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAE/F,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAC;AAE9D,eAAO,MAAM,sBAAsB,QAAO,0BAczC,CAAC"}
1
+ import type { IThemedLayoutContext } from "@contexts/themedLayoutContext/IThemedLayoutContext";
2
+ export type UseThemedLayoutContextType = IThemedLayoutContext;
3
+ export declare const useThemedLayoutContext: () => UseThemedLayoutContextType;
4
+ //# sourceMappingURL=index.d.ts.map