@refinedev/antd 5.37.4 → 5.37.6

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 (647) hide show
  1. package/CHANGELOG.md +1793 -1778
  2. package/README.md +109 -17
  3. package/dist/components/autoSaveIndicator/index.d.cts +4 -0
  4. package/dist/components/autoSaveIndicator/index.d.cts.map +1 -0
  5. package/dist/components/autoSaveIndicator/index.d.mts +4 -0
  6. package/dist/components/autoSaveIndicator/index.d.mts.map +1 -0
  7. package/dist/components/autoSaveIndicator/index.d.ts.map +1 -1
  8. package/dist/components/breadcrumb/index.d.cts +6 -0
  9. package/dist/components/breadcrumb/index.d.cts.map +1 -0
  10. package/dist/components/breadcrumb/index.d.mts +6 -0
  11. package/dist/components/breadcrumb/index.d.mts.map +1 -0
  12. package/dist/components/breadcrumb/index.d.ts +1 -1
  13. package/dist/components/breadcrumb/index.d.ts.map +1 -1
  14. package/dist/components/buttons/clone/index.d.cts +11 -0
  15. package/dist/components/buttons/clone/index.d.cts.map +1 -0
  16. package/dist/components/buttons/clone/index.d.mts +11 -0
  17. package/dist/components/buttons/clone/index.d.mts.map +1 -0
  18. package/dist/components/buttons/clone/index.d.ts +1 -1
  19. package/dist/components/buttons/clone/index.d.ts.map +1 -1
  20. package/dist/components/buttons/create/index.d.cts +11 -0
  21. package/dist/components/buttons/create/index.d.cts.map +1 -0
  22. package/dist/components/buttons/create/index.d.mts +11 -0
  23. package/dist/components/buttons/create/index.d.mts.map +1 -0
  24. package/dist/components/buttons/create/index.d.ts +1 -1
  25. package/dist/components/buttons/create/index.d.ts.map +1 -1
  26. package/dist/components/buttons/delete/index.d.cts +10 -0
  27. package/dist/components/buttons/delete/index.d.cts.map +1 -0
  28. package/dist/components/buttons/delete/index.d.mts +10 -0
  29. package/dist/components/buttons/delete/index.d.mts.map +1 -0
  30. package/dist/components/buttons/delete/index.d.ts +1 -1
  31. package/dist/components/buttons/delete/index.d.ts.map +1 -1
  32. package/dist/components/buttons/edit/index.d.cts +11 -0
  33. package/dist/components/buttons/edit/index.d.cts.map +1 -0
  34. package/dist/components/buttons/edit/index.d.mts +11 -0
  35. package/dist/components/buttons/edit/index.d.mts.map +1 -0
  36. package/dist/components/buttons/edit/index.d.ts.map +1 -1
  37. package/dist/components/buttons/export/index.d.cts +10 -0
  38. package/dist/components/buttons/export/index.d.cts.map +1 -0
  39. package/dist/components/buttons/export/index.d.mts +10 -0
  40. package/dist/components/buttons/export/index.d.mts.map +1 -0
  41. package/dist/components/buttons/import/index.d.cts +11 -0
  42. package/dist/components/buttons/import/index.d.cts.map +1 -0
  43. package/dist/components/buttons/import/index.d.mts +11 -0
  44. package/dist/components/buttons/import/index.d.mts.map +1 -0
  45. package/dist/components/buttons/import/index.d.ts.map +1 -1
  46. package/dist/components/buttons/index.d.cts +12 -0
  47. package/dist/components/buttons/index.d.cts.map +1 -0
  48. package/dist/components/buttons/index.d.mts +12 -0
  49. package/dist/components/buttons/index.d.mts.map +1 -0
  50. package/dist/components/buttons/list/index.d.cts +11 -0
  51. package/dist/components/buttons/list/index.d.cts.map +1 -0
  52. package/dist/components/buttons/list/index.d.mts +11 -0
  53. package/dist/components/buttons/list/index.d.mts.map +1 -0
  54. package/dist/components/buttons/list/index.d.ts.map +1 -1
  55. package/dist/components/buttons/refresh/index.d.cts +10 -0
  56. package/dist/components/buttons/refresh/index.d.cts.map +1 -0
  57. package/dist/components/buttons/refresh/index.d.mts +10 -0
  58. package/dist/components/buttons/refresh/index.d.mts.map +1 -0
  59. package/dist/components/buttons/refresh/index.d.ts.map +1 -1
  60. package/dist/components/buttons/save/index.d.cts +10 -0
  61. package/dist/components/buttons/save/index.d.cts.map +1 -0
  62. package/dist/components/buttons/save/index.d.mts +10 -0
  63. package/dist/components/buttons/save/index.d.mts.map +1 -0
  64. package/dist/components/buttons/show/index.d.cts +11 -0
  65. package/dist/components/buttons/show/index.d.cts.map +1 -0
  66. package/dist/components/buttons/show/index.d.mts +11 -0
  67. package/dist/components/buttons/show/index.d.mts.map +1 -0
  68. package/dist/components/buttons/show/index.d.ts.map +1 -1
  69. package/dist/components/buttons/types.d.cts +24 -0
  70. package/dist/components/buttons/types.d.cts.map +1 -0
  71. package/dist/components/buttons/types.d.mts +24 -0
  72. package/dist/components/buttons/types.d.mts.map +1 -0
  73. package/dist/components/buttons/types.d.ts +10 -10
  74. package/dist/components/buttons/types.d.ts.map +1 -1
  75. package/dist/components/crud/create/index.d.cts +10 -0
  76. package/dist/components/crud/create/index.d.cts.map +1 -0
  77. package/dist/components/crud/create/index.d.mts +10 -0
  78. package/dist/components/crud/create/index.d.mts.map +1 -0
  79. package/dist/components/crud/edit/index.d.cts +10 -0
  80. package/dist/components/crud/edit/index.d.cts.map +1 -0
  81. package/dist/components/crud/edit/index.d.mts +10 -0
  82. package/dist/components/crud/edit/index.d.mts.map +1 -0
  83. package/dist/components/crud/edit/index.d.ts.map +1 -1
  84. package/dist/components/crud/index.d.cts +6 -0
  85. package/dist/components/crud/index.d.cts.map +1 -0
  86. package/dist/components/crud/index.d.mts +6 -0
  87. package/dist/components/crud/index.d.mts.map +1 -0
  88. package/dist/components/crud/list/index.d.cts +10 -0
  89. package/dist/components/crud/list/index.d.cts.map +1 -0
  90. package/dist/components/crud/list/index.d.mts +10 -0
  91. package/dist/components/crud/list/index.d.mts.map +1 -0
  92. package/dist/components/crud/list/index.d.ts.map +1 -1
  93. package/dist/components/crud/show/index.d.cts +10 -0
  94. package/dist/components/crud/show/index.d.cts.map +1 -0
  95. package/dist/components/crud/show/index.d.mts +10 -0
  96. package/dist/components/crud/show/index.d.mts.map +1 -0
  97. package/dist/components/crud/show/index.d.ts.map +1 -1
  98. package/dist/components/crud/types.d.cts +10 -0
  99. package/dist/components/crud/types.d.cts.map +1 -0
  100. package/dist/components/crud/types.d.mts +10 -0
  101. package/dist/components/crud/types.d.mts.map +1 -0
  102. package/dist/components/crud/types.d.ts +4 -4
  103. package/dist/components/crud/types.d.ts.map +1 -1
  104. package/dist/components/fields/boolean/index.d.cts +9 -0
  105. package/dist/components/fields/boolean/index.d.cts.map +1 -0
  106. package/dist/components/fields/boolean/index.d.mts +9 -0
  107. package/dist/components/fields/boolean/index.d.mts.map +1 -0
  108. package/dist/components/fields/date/index.d.cts +9 -0
  109. package/dist/components/fields/date/index.d.cts.map +1 -0
  110. package/dist/components/fields/date/index.d.mts +9 -0
  111. package/dist/components/fields/date/index.d.mts.map +1 -0
  112. package/dist/components/fields/email/index.d.cts +10 -0
  113. package/dist/components/fields/email/index.d.cts.map +1 -0
  114. package/dist/components/fields/email/index.d.mts +10 -0
  115. package/dist/components/fields/email/index.d.mts.map +1 -0
  116. package/dist/components/fields/file/index.d.cts +9 -0
  117. package/dist/components/fields/file/index.d.cts.map +1 -0
  118. package/dist/components/fields/file/index.d.mts +9 -0
  119. package/dist/components/fields/file/index.d.mts.map +1 -0
  120. package/dist/components/fields/image/index.d.cts +9 -0
  121. package/dist/components/fields/image/index.d.cts.map +1 -0
  122. package/dist/components/fields/image/index.d.mts +9 -0
  123. package/dist/components/fields/image/index.d.mts.map +1 -0
  124. package/dist/components/fields/index.d.cts +12 -0
  125. package/dist/components/fields/index.d.cts.map +1 -0
  126. package/dist/components/fields/index.d.mts +12 -0
  127. package/dist/components/fields/index.d.mts.map +1 -0
  128. package/dist/components/fields/markdown/index.d.cts +9 -0
  129. package/dist/components/fields/markdown/index.d.cts.map +1 -0
  130. package/dist/components/fields/markdown/index.d.mts +9 -0
  131. package/dist/components/fields/markdown/index.d.mts.map +1 -0
  132. package/dist/components/fields/number/index.d.cts +9 -0
  133. package/dist/components/fields/number/index.d.cts.map +1 -0
  134. package/dist/components/fields/number/index.d.mts +9 -0
  135. package/dist/components/fields/number/index.d.mts.map +1 -0
  136. package/dist/components/fields/tag/index.d.cts +9 -0
  137. package/dist/components/fields/tag/index.d.cts.map +1 -0
  138. package/dist/components/fields/tag/index.d.mts +9 -0
  139. package/dist/components/fields/tag/index.d.mts.map +1 -0
  140. package/dist/components/fields/text/index.d.cts +9 -0
  141. package/dist/components/fields/text/index.d.cts.map +1 -0
  142. package/dist/components/fields/text/index.d.mts +9 -0
  143. package/dist/components/fields/text/index.d.mts.map +1 -0
  144. package/dist/components/fields/types.d.cts +20 -0
  145. package/dist/components/fields/types.d.cts.map +1 -0
  146. package/dist/components/fields/types.d.mts +20 -0
  147. package/dist/components/fields/types.d.mts.map +1 -0
  148. package/dist/components/fields/types.d.ts +10 -10
  149. package/dist/components/fields/types.d.ts.map +1 -1
  150. package/dist/components/fields/url/index.d.cts +10 -0
  151. package/dist/components/fields/url/index.d.cts.map +1 -0
  152. package/dist/components/fields/url/index.d.mts +10 -0
  153. package/dist/components/fields/url/index.d.mts.map +1 -0
  154. package/dist/components/index.d.cts +24 -0
  155. package/dist/components/index.d.cts.map +1 -0
  156. package/dist/components/index.d.mts +24 -0
  157. package/dist/components/index.d.mts.map +1 -0
  158. package/dist/components/layout/header/index.d.cts +4 -0
  159. package/dist/components/layout/header/index.d.cts.map +1 -0
  160. package/dist/components/layout/header/index.d.mts +4 -0
  161. package/dist/components/layout/header/index.d.mts.map +1 -0
  162. package/dist/components/layout/index.d.cts +8 -0
  163. package/dist/components/layout/index.d.cts.map +1 -0
  164. package/dist/components/layout/index.d.mts +8 -0
  165. package/dist/components/layout/index.d.mts.map +1 -0
  166. package/dist/components/layout/sider/index.d.cts +4 -0
  167. package/dist/components/layout/sider/index.d.cts.map +1 -0
  168. package/dist/components/layout/sider/index.d.mts +4 -0
  169. package/dist/components/layout/sider/index.d.mts.map +1 -0
  170. package/dist/components/layout/sider/index.d.ts.map +1 -1
  171. package/dist/components/layout/sider/styles.d.cts +3 -0
  172. package/dist/components/layout/sider/styles.d.cts.map +1 -0
  173. package/dist/components/layout/sider/styles.d.mts +3 -0
  174. package/dist/components/layout/sider/styles.d.mts.map +1 -0
  175. package/dist/components/layout/title/index.d.cts +4 -0
  176. package/dist/components/layout/title/index.d.cts.map +1 -0
  177. package/dist/components/layout/title/index.d.mts +4 -0
  178. package/dist/components/layout/title/index.d.mts.map +1 -0
  179. package/dist/components/layout/title/index.d.ts.map +1 -1
  180. package/dist/components/layout/types.d.cts +3 -0
  181. package/dist/components/layout/types.d.cts.map +1 -0
  182. package/dist/components/layout/types.d.mts +3 -0
  183. package/dist/components/layout/types.d.mts.map +1 -0
  184. package/dist/components/layout/types.d.ts.map +1 -1
  185. package/dist/components/pageHeader/index.d.cts +5 -0
  186. package/dist/components/pageHeader/index.d.cts.map +1 -0
  187. package/dist/components/pageHeader/index.d.mts +5 -0
  188. package/dist/components/pageHeader/index.d.mts.map +1 -0
  189. package/dist/components/pageHeader/index.d.ts +1 -1
  190. package/dist/components/pageHeader/index.d.ts.map +1 -1
  191. package/dist/components/pages/auth/components/forgotPassword/index.d.cts +12 -0
  192. package/dist/components/pages/auth/components/forgotPassword/index.d.cts.map +1 -0
  193. package/dist/components/pages/auth/components/forgotPassword/index.d.mts +12 -0
  194. package/dist/components/pages/auth/components/forgotPassword/index.d.mts.map +1 -0
  195. package/dist/components/pages/auth/components/forgotPassword/index.d.ts +1 -1
  196. package/dist/components/pages/auth/components/forgotPassword/index.d.ts.map +1 -1
  197. package/dist/components/pages/auth/components/index.d.cts +5 -0
  198. package/dist/components/pages/auth/components/index.d.cts.map +1 -0
  199. package/dist/components/pages/auth/components/index.d.mts +5 -0
  200. package/dist/components/pages/auth/components/index.d.mts.map +1 -0
  201. package/dist/components/pages/auth/components/login/index.d.cts +12 -0
  202. package/dist/components/pages/auth/components/login/index.d.cts.map +1 -0
  203. package/dist/components/pages/auth/components/login/index.d.mts +12 -0
  204. package/dist/components/pages/auth/components/login/index.d.mts.map +1 -0
  205. package/dist/components/pages/auth/components/login/index.d.ts +1 -1
  206. package/dist/components/pages/auth/components/login/index.d.ts.map +1 -1
  207. package/dist/components/pages/auth/components/register/index.d.cts +12 -0
  208. package/dist/components/pages/auth/components/register/index.d.cts.map +1 -0
  209. package/dist/components/pages/auth/components/register/index.d.mts +12 -0
  210. package/dist/components/pages/auth/components/register/index.d.mts.map +1 -0
  211. package/dist/components/pages/auth/components/register/index.d.ts +1 -1
  212. package/dist/components/pages/auth/components/register/index.d.ts.map +1 -1
  213. package/dist/components/pages/auth/components/styles.d.cts +7 -0
  214. package/dist/components/pages/auth/components/styles.d.cts.map +1 -0
  215. package/dist/components/pages/auth/components/styles.d.mts +7 -0
  216. package/dist/components/pages/auth/components/styles.d.mts.map +1 -0
  217. package/dist/components/pages/auth/components/updatePassword/index.d.cts +12 -0
  218. package/dist/components/pages/auth/components/updatePassword/index.d.cts.map +1 -0
  219. package/dist/components/pages/auth/components/updatePassword/index.d.mts +12 -0
  220. package/dist/components/pages/auth/components/updatePassword/index.d.mts.map +1 -0
  221. package/dist/components/pages/auth/components/updatePassword/index.d.ts +1 -1
  222. package/dist/components/pages/auth/components/updatePassword/index.d.ts.map +1 -1
  223. package/dist/components/pages/auth/index.d.cts +14 -0
  224. package/dist/components/pages/auth/index.d.cts.map +1 -0
  225. package/dist/components/pages/auth/index.d.mts +14 -0
  226. package/dist/components/pages/auth/index.d.mts.map +1 -0
  227. package/dist/components/pages/auth/index.d.ts +1 -1
  228. package/dist/components/pages/auth/index.d.ts.map +1 -1
  229. package/dist/components/pages/error/index.d.cts +10 -0
  230. package/dist/components/pages/error/index.d.cts.map +1 -0
  231. package/dist/components/pages/error/index.d.mts +10 -0
  232. package/dist/components/pages/error/index.d.mts.map +1 -0
  233. package/dist/components/pages/index.d.cts +7 -0
  234. package/dist/components/pages/index.d.cts.map +1 -0
  235. package/dist/components/pages/index.d.mts +7 -0
  236. package/dist/components/pages/index.d.mts.map +1 -0
  237. package/dist/components/pages/login/index.d.cts +15 -0
  238. package/dist/components/pages/login/index.d.cts.map +1 -0
  239. package/dist/components/pages/login/index.d.mts +15 -0
  240. package/dist/components/pages/login/index.d.mts.map +1 -0
  241. package/dist/components/pages/login/index.d.ts.map +1 -1
  242. package/dist/components/pages/login/styles.d.cts +6 -0
  243. package/dist/components/pages/login/styles.d.cts.map +1 -0
  244. package/dist/components/pages/login/styles.d.mts +6 -0
  245. package/dist/components/pages/login/styles.d.mts.map +1 -0
  246. package/dist/components/pages/ready/index.d.cts +9 -0
  247. package/dist/components/pages/ready/index.d.cts.map +1 -0
  248. package/dist/components/pages/ready/index.d.mts +9 -0
  249. package/dist/components/pages/ready/index.d.mts.map +1 -0
  250. package/dist/components/pages/ready/index.d.ts.map +1 -1
  251. package/dist/components/pages/welcome/index.d.cts +7 -0
  252. package/dist/components/pages/welcome/index.d.cts.map +1 -0
  253. package/dist/components/pages/welcome/index.d.mts +7 -0
  254. package/dist/components/pages/welcome/index.d.mts.map +1 -0
  255. package/dist/components/table/components/filterDropdown/index.d.cts +13 -0
  256. package/dist/components/table/components/filterDropdown/index.d.cts.map +1 -0
  257. package/dist/components/table/components/filterDropdown/index.d.mts +13 -0
  258. package/dist/components/table/components/filterDropdown/index.d.mts.map +1 -0
  259. package/dist/components/table/components/filterDropdown/index.d.ts +2 -2
  260. package/dist/components/table/components/filterDropdown/index.d.ts.map +1 -1
  261. package/dist/components/table/components/index.d.cts +2 -0
  262. package/dist/components/table/components/index.d.cts.map +1 -0
  263. package/dist/components/table/components/index.d.mts +2 -0
  264. package/dist/components/table/components/index.d.mts.map +1 -0
  265. package/dist/components/table/index.d.cts +2 -0
  266. package/dist/components/table/index.d.cts.map +1 -0
  267. package/dist/components/table/index.d.mts +2 -0
  268. package/dist/components/table/index.d.mts.map +1 -0
  269. package/dist/components/themedLayout/header/index.d.cts +7 -0
  270. package/dist/components/themedLayout/header/index.d.cts.map +1 -0
  271. package/dist/components/themedLayout/header/index.d.mts +7 -0
  272. package/dist/components/themedLayout/header/index.d.mts.map +1 -0
  273. package/dist/components/themedLayout/header/index.d.ts.map +1 -1
  274. package/dist/components/themedLayout/index.d.cts +7 -0
  275. package/dist/components/themedLayout/index.d.cts.map +1 -0
  276. package/dist/components/themedLayout/index.d.mts +7 -0
  277. package/dist/components/themedLayout/index.d.mts.map +1 -0
  278. package/dist/components/themedLayout/sider/index.d.cts +7 -0
  279. package/dist/components/themedLayout/sider/index.d.cts.map +1 -0
  280. package/dist/components/themedLayout/sider/index.d.mts +7 -0
  281. package/dist/components/themedLayout/sider/index.d.mts.map +1 -0
  282. package/dist/components/themedLayout/sider/styles.d.cts +3 -0
  283. package/dist/components/themedLayout/sider/styles.d.cts.map +1 -0
  284. package/dist/components/themedLayout/sider/styles.d.mts +3 -0
  285. package/dist/components/themedLayout/sider/styles.d.mts.map +1 -0
  286. package/dist/components/themedLayout/title/index.d.cts +7 -0
  287. package/dist/components/themedLayout/title/index.d.cts.map +1 -0
  288. package/dist/components/themedLayout/title/index.d.mts +7 -0
  289. package/dist/components/themedLayout/title/index.d.mts.map +1 -0
  290. package/dist/components/themedLayout/types.d.cts +3 -0
  291. package/dist/components/themedLayout/types.d.cts.map +1 -0
  292. package/dist/components/themedLayout/types.d.mts +3 -0
  293. package/dist/components/themedLayout/types.d.mts.map +1 -0
  294. package/dist/components/themedLayout/types.d.ts.map +1 -1
  295. package/dist/components/themedLayoutV2/header/index.d.cts +4 -0
  296. package/dist/components/themedLayoutV2/header/index.d.cts.map +1 -0
  297. package/dist/components/themedLayoutV2/header/index.d.mts +4 -0
  298. package/dist/components/themedLayoutV2/header/index.d.mts.map +1 -0
  299. package/dist/components/themedLayoutV2/header/index.d.ts.map +1 -1
  300. package/dist/components/themedLayoutV2/index.d.cts +4 -0
  301. package/dist/components/themedLayoutV2/index.d.cts.map +1 -0
  302. package/dist/components/themedLayoutV2/index.d.mts +4 -0
  303. package/dist/components/themedLayoutV2/index.d.mts.map +1 -0
  304. package/dist/components/themedLayoutV2/index.d.ts.map +1 -1
  305. package/dist/components/themedLayoutV2/sider/index.d.cts +4 -0
  306. package/dist/components/themedLayoutV2/sider/index.d.cts.map +1 -0
  307. package/dist/components/themedLayoutV2/sider/index.d.mts +4 -0
  308. package/dist/components/themedLayoutV2/sider/index.d.mts.map +1 -0
  309. package/dist/components/themedLayoutV2/sider/index.d.ts.map +1 -1
  310. package/dist/components/themedLayoutV2/sider/styles.d.cts +3 -0
  311. package/dist/components/themedLayoutV2/sider/styles.d.cts.map +1 -0
  312. package/dist/components/themedLayoutV2/sider/styles.d.mts +3 -0
  313. package/dist/components/themedLayoutV2/sider/styles.d.mts.map +1 -0
  314. package/dist/components/themedLayoutV2/title/index.d.cts +4 -0
  315. package/dist/components/themedLayoutV2/title/index.d.cts.map +1 -0
  316. package/dist/components/themedLayoutV2/title/index.d.mts +4 -0
  317. package/dist/components/themedLayoutV2/title/index.d.mts.map +1 -0
  318. package/dist/components/themedLayoutV2/types.d.cts +6 -0
  319. package/dist/components/themedLayoutV2/types.d.cts.map +1 -0
  320. package/dist/components/themedLayoutV2/types.d.mts +6 -0
  321. package/dist/components/themedLayoutV2/types.d.mts.map +1 -0
  322. package/dist/components/themedLayoutV2/types.d.ts +1 -1
  323. package/dist/components/themedLayoutV2/types.d.ts.map +1 -1
  324. package/dist/components/undoableNotification/index.d.cts +10 -0
  325. package/dist/components/undoableNotification/index.d.cts.map +1 -0
  326. package/dist/components/undoableNotification/index.d.mts +10 -0
  327. package/dist/components/undoableNotification/index.d.mts.map +1 -0
  328. package/dist/components/undoableNotification/index.d.ts +1 -1
  329. package/dist/components/undoableNotification/index.d.ts.map +1 -1
  330. package/dist/contexts/index.d.cts +2 -0
  331. package/dist/contexts/index.d.cts.map +1 -0
  332. package/dist/contexts/index.d.mts +2 -0
  333. package/dist/contexts/index.d.mts.map +1 -0
  334. package/dist/contexts/index.d.ts.map +1 -1
  335. package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.cts +7 -0
  336. package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.cts.map +1 -0
  337. package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.mts +7 -0
  338. package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.mts.map +1 -0
  339. package/dist/contexts/themedLayoutContext/IThemedLayoutContext.d.ts.map +1 -1
  340. package/dist/contexts/themedLayoutContext/index.d.cts +8 -0
  341. package/dist/contexts/themedLayoutContext/index.d.cts.map +1 -0
  342. package/dist/contexts/themedLayoutContext/index.d.mts +8 -0
  343. package/dist/contexts/themedLayoutContext/index.d.mts.map +1 -0
  344. package/dist/contexts/themedLayoutContext/index.d.ts.map +1 -1
  345. package/dist/definitions/index.d.cts +4 -0
  346. package/dist/definitions/index.d.cts.map +1 -0
  347. package/dist/definitions/index.d.mts +4 -0
  348. package/dist/definitions/index.d.mts.map +1 -0
  349. package/dist/definitions/table/index.d.cts +13 -0
  350. package/dist/definitions/table/index.d.cts.map +1 -0
  351. package/dist/definitions/table/index.d.mts +13 -0
  352. package/dist/definitions/table/index.d.mts.map +1 -0
  353. package/dist/definitions/table/index.d.ts +6 -3
  354. package/dist/definitions/table/index.d.ts.map +1 -1
  355. package/dist/definitions/themes/index.d.cts +6 -0
  356. package/dist/definitions/themes/index.d.cts.map +1 -0
  357. package/dist/definitions/themes/index.d.mts +6 -0
  358. package/dist/definitions/themes/index.d.mts.map +1 -0
  359. package/dist/definitions/themes/index.d.ts +2 -2
  360. package/dist/definitions/themes/index.d.ts.map +1 -1
  361. package/dist/definitions/upload/index.d.cts +4 -0
  362. package/dist/definitions/upload/index.d.cts.map +1 -0
  363. package/dist/definitions/upload/index.d.mts +4 -0
  364. package/dist/definitions/upload/index.d.mts.map +1 -0
  365. package/dist/hooks/fields/index.d.cts +4 -0
  366. package/dist/hooks/fields/index.d.cts.map +1 -0
  367. package/dist/hooks/fields/index.d.mts +4 -0
  368. package/dist/hooks/fields/index.d.mts.map +1 -0
  369. package/dist/hooks/fields/useCheckboxGroup/index.d.cts +29 -0
  370. package/dist/hooks/fields/useCheckboxGroup/index.d.cts.map +1 -0
  371. package/dist/hooks/fields/useCheckboxGroup/index.d.mts +29 -0
  372. package/dist/hooks/fields/useCheckboxGroup/index.d.mts.map +1 -0
  373. package/dist/hooks/fields/useCheckboxGroup/index.d.ts +2 -2
  374. package/dist/hooks/fields/useCheckboxGroup/index.d.ts.map +1 -1
  375. package/dist/hooks/fields/useRadioGroup/index.d.cts +29 -0
  376. package/dist/hooks/fields/useRadioGroup/index.d.cts.map +1 -0
  377. package/dist/hooks/fields/useRadioGroup/index.d.mts +29 -0
  378. package/dist/hooks/fields/useRadioGroup/index.d.mts.map +1 -0
  379. package/dist/hooks/fields/useRadioGroup/index.d.ts +2 -2
  380. package/dist/hooks/fields/useRadioGroup/index.d.ts.map +1 -1
  381. package/dist/hooks/fields/useSelect/index.d.cts +20 -0
  382. package/dist/hooks/fields/useSelect/index.d.cts.map +1 -0
  383. package/dist/hooks/fields/useSelect/index.d.mts +20 -0
  384. package/dist/hooks/fields/useSelect/index.d.mts.map +1 -0
  385. package/dist/hooks/fields/useSelect/index.d.ts +1 -1
  386. package/dist/hooks/fields/useSelect/index.d.ts.map +1 -1
  387. package/dist/hooks/form/index.d.cts +5 -0
  388. package/dist/hooks/form/index.d.cts.map +1 -0
  389. package/dist/hooks/form/index.d.mts +5 -0
  390. package/dist/hooks/form/index.d.mts.map +1 -0
  391. package/dist/hooks/form/index.d.ts.map +1 -1
  392. package/dist/hooks/form/useDrawerForm/index.d.cts +2 -0
  393. package/dist/hooks/form/useDrawerForm/index.d.cts.map +1 -0
  394. package/dist/hooks/form/useDrawerForm/index.d.mts +2 -0
  395. package/dist/hooks/form/useDrawerForm/index.d.mts.map +1 -0
  396. package/dist/hooks/form/useDrawerForm/index.d.ts.map +1 -1
  397. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.cts +37 -0
  398. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.cts.map +1 -0
  399. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.mts +37 -0
  400. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.mts.map +1 -0
  401. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts +2 -2
  402. package/dist/hooks/form/useDrawerForm/useDrawerForm.d.ts.map +1 -1
  403. package/dist/hooks/form/useForm.d.cts +40 -0
  404. package/dist/hooks/form/useForm.d.cts.map +1 -0
  405. package/dist/hooks/form/useForm.d.mts +40 -0
  406. package/dist/hooks/form/useForm.d.mts.map +1 -0
  407. package/dist/hooks/form/useForm.d.ts +2 -2
  408. package/dist/hooks/form/useForm.d.ts.map +1 -1
  409. package/dist/hooks/form/useModalForm/index.d.cts +2 -0
  410. package/dist/hooks/form/useModalForm/index.d.cts.map +1 -0
  411. package/dist/hooks/form/useModalForm/index.d.mts +2 -0
  412. package/dist/hooks/form/useModalForm/index.d.mts.map +1 -0
  413. package/dist/hooks/form/useModalForm/index.d.ts.map +1 -1
  414. package/dist/hooks/form/useModalForm/useModalForm.d.cts +42 -0
  415. package/dist/hooks/form/useModalForm/useModalForm.d.cts.map +1 -0
  416. package/dist/hooks/form/useModalForm/useModalForm.d.mts +42 -0
  417. package/dist/hooks/form/useModalForm/useModalForm.d.mts.map +1 -0
  418. package/dist/hooks/form/useModalForm/useModalForm.d.ts +4 -4
  419. package/dist/hooks/form/useModalForm/useModalForm.d.ts.map +1 -1
  420. package/dist/hooks/form/useStepsForm/index.d.cts +2 -0
  421. package/dist/hooks/form/useStepsForm/index.d.cts.map +1 -0
  422. package/dist/hooks/form/useStepsForm/index.d.mts +2 -0
  423. package/dist/hooks/form/useStepsForm/index.d.mts.map +1 -0
  424. package/dist/hooks/form/useStepsForm/index.d.ts.map +1 -1
  425. package/dist/hooks/form/useStepsForm/useStepsForm.d.cts +35 -0
  426. package/dist/hooks/form/useStepsForm/useStepsForm.d.cts.map +1 -0
  427. package/dist/hooks/form/useStepsForm/useStepsForm.d.mts +35 -0
  428. package/dist/hooks/form/useStepsForm/useStepsForm.d.mts.map +1 -0
  429. package/dist/hooks/form/useStepsForm/useStepsForm.d.ts +3 -3
  430. package/dist/hooks/form/useStepsForm/useStepsForm.d.ts.map +1 -1
  431. package/dist/hooks/import/index.d.cts +18 -0
  432. package/dist/hooks/import/index.d.cts.map +1 -0
  433. package/dist/hooks/import/index.d.mts +18 -0
  434. package/dist/hooks/import/index.d.mts.map +1 -0
  435. package/dist/hooks/import/index.d.ts.map +1 -1
  436. package/dist/hooks/index.d.cts +10 -0
  437. package/dist/hooks/index.d.cts.map +1 -0
  438. package/dist/hooks/index.d.mts +10 -0
  439. package/dist/hooks/index.d.mts.map +1 -0
  440. package/dist/hooks/list/index.d.cts +2 -0
  441. package/dist/hooks/list/index.d.cts.map +1 -0
  442. package/dist/hooks/list/index.d.mts +2 -0
  443. package/dist/hooks/list/index.d.mts.map +1 -0
  444. package/dist/hooks/list/useSimpleList/index.d.cts +2 -0
  445. package/dist/hooks/list/useSimpleList/index.d.cts.map +1 -0
  446. package/dist/hooks/list/useSimpleList/index.d.mts +2 -0
  447. package/dist/hooks/list/useSimpleList/index.d.mts.map +1 -0
  448. package/dist/hooks/list/useSimpleList/useSimpleList.d.cts +24 -0
  449. package/dist/hooks/list/useSimpleList/useSimpleList.d.cts.map +1 -0
  450. package/dist/hooks/list/useSimpleList/useSimpleList.d.mts +24 -0
  451. package/dist/hooks/list/useSimpleList/useSimpleList.d.mts.map +1 -0
  452. package/dist/hooks/list/useSimpleList/useSimpleList.d.ts +3 -3
  453. package/dist/hooks/list/useSimpleList/useSimpleList.d.ts.map +1 -1
  454. package/dist/hooks/modal/index.d.cts +2 -0
  455. package/dist/hooks/modal/index.d.cts.map +1 -0
  456. package/dist/hooks/modal/index.d.mts +2 -0
  457. package/dist/hooks/modal/index.d.mts.map +1 -0
  458. package/dist/hooks/modal/useModal/index.d.cts +18 -0
  459. package/dist/hooks/modal/useModal/index.d.cts.map +1 -0
  460. package/dist/hooks/modal/useModal/index.d.mts +18 -0
  461. package/dist/hooks/modal/useModal/index.d.mts.map +1 -0
  462. package/dist/hooks/modal/useModal/index.d.ts +2 -2
  463. package/dist/hooks/modal/useModal/index.d.ts.map +1 -1
  464. package/dist/hooks/table/index.d.cts +3 -0
  465. package/dist/hooks/table/index.d.cts.map +1 -0
  466. package/dist/hooks/table/index.d.mts +3 -0
  467. package/dist/hooks/table/index.d.mts.map +1 -0
  468. package/dist/hooks/table/useEditableTable/index.d.cts +2 -0
  469. package/dist/hooks/table/useEditableTable/index.d.cts.map +1 -0
  470. package/dist/hooks/table/useEditableTable/index.d.mts +2 -0
  471. package/dist/hooks/table/useEditableTable/index.d.mts.map +1 -0
  472. package/dist/hooks/table/useEditableTable/useEditableTable.d.cts +40 -0
  473. package/dist/hooks/table/useEditableTable/useEditableTable.d.cts.map +1 -0
  474. package/dist/hooks/table/useEditableTable/useEditableTable.d.mts +40 -0
  475. package/dist/hooks/table/useEditableTable/useEditableTable.d.mts.map +1 -0
  476. package/dist/hooks/table/useEditableTable/useEditableTable.d.ts +2 -2
  477. package/dist/hooks/table/useEditableTable/useEditableTable.d.ts.map +1 -1
  478. package/dist/hooks/table/useTable/index.d.cts +2 -0
  479. package/dist/hooks/table/useTable/index.d.cts.map +1 -0
  480. package/dist/hooks/table/useTable/index.d.mts +2 -0
  481. package/dist/hooks/table/useTable/index.d.mts.map +1 -0
  482. package/dist/hooks/table/useTable/paginationLink.d.cts +8 -0
  483. package/dist/hooks/table/useTable/paginationLink.d.cts.map +1 -0
  484. package/dist/hooks/table/useTable/paginationLink.d.mts +8 -0
  485. package/dist/hooks/table/useTable/paginationLink.d.mts.map +1 -0
  486. package/dist/hooks/table/useTable/paginationLink.d.ts.map +1 -1
  487. package/dist/hooks/table/useTable/useTable.d.cts +24 -0
  488. package/dist/hooks/table/useTable/useTable.d.cts.map +1 -0
  489. package/dist/hooks/table/useTable/useTable.d.mts +24 -0
  490. package/dist/hooks/table/useTable/useTable.d.mts.map +1 -0
  491. package/dist/hooks/table/useTable/useTable.d.ts +2 -2
  492. package/dist/hooks/table/useTable/useTable.d.ts.map +1 -1
  493. package/dist/hooks/useFileUploadState/index.d.cts +7 -0
  494. package/dist/hooks/useFileUploadState/index.d.cts.map +1 -0
  495. package/dist/hooks/useFileUploadState/index.d.mts +7 -0
  496. package/dist/hooks/useFileUploadState/index.d.mts.map +1 -0
  497. package/dist/hooks/useFileUploadState/index.d.ts +1 -1
  498. package/dist/hooks/useFileUploadState/index.d.ts.map +1 -1
  499. package/dist/hooks/useSiderVisible/index.d.cts +11 -0
  500. package/dist/hooks/useSiderVisible/index.d.cts.map +1 -0
  501. package/dist/hooks/useSiderVisible/index.d.mts +11 -0
  502. package/dist/hooks/useSiderVisible/index.d.mts.map +1 -0
  503. package/dist/hooks/useSiderVisible/index.d.ts +1 -1
  504. package/dist/hooks/useSiderVisible/index.d.ts.map +1 -1
  505. package/dist/hooks/useThemedLayoutContext/index.d.cts +4 -0
  506. package/dist/hooks/useThemedLayoutContext/index.d.cts.map +1 -0
  507. package/dist/hooks/useThemedLayoutContext/index.d.mts +4 -0
  508. package/dist/hooks/useThemedLayoutContext/index.d.mts.map +1 -0
  509. package/dist/hooks/useThemedLayoutContext/index.d.ts +1 -1
  510. package/dist/hooks/useThemedLayoutContext/index.d.ts.map +1 -1
  511. package/dist/index.cjs +3 -0
  512. package/dist/index.cjs.map +1 -0
  513. package/dist/index.d.cts +8 -0
  514. package/dist/index.d.cts.map +1 -0
  515. package/dist/index.d.mts +8 -0
  516. package/dist/index.d.mts.map +1 -0
  517. package/dist/index.d.ts.map +1 -1
  518. package/dist/index.mjs +3 -0
  519. package/dist/index.mjs.map +1 -0
  520. package/dist/interfaces/field.d.cts +4 -0
  521. package/dist/interfaces/field.d.cts.map +1 -0
  522. package/dist/interfaces/field.d.mts +4 -0
  523. package/dist/interfaces/field.d.mts.map +1 -0
  524. package/dist/interfaces/field.d.ts +1 -1
  525. package/dist/interfaces/field.d.ts.map +1 -1
  526. package/dist/interfaces/index.d.cts +19 -0
  527. package/dist/interfaces/index.d.cts.map +1 -0
  528. package/dist/interfaces/index.d.mts +19 -0
  529. package/dist/interfaces/index.d.mts.map +1 -0
  530. package/dist/interfaces/index.d.ts +3 -3
  531. package/dist/interfaces/index.d.ts.map +1 -1
  532. package/dist/interfaces/upload.d.cts +10 -0
  533. package/dist/interfaces/upload.d.cts.map +1 -0
  534. package/dist/interfaces/upload.d.mts +10 -0
  535. package/dist/interfaces/upload.d.mts.map +1 -0
  536. package/dist/interfaces/upload.d.ts.map +1 -1
  537. package/dist/providers/index.d.cts +2 -0
  538. package/dist/providers/index.d.cts.map +1 -0
  539. package/dist/providers/index.d.mts +2 -0
  540. package/dist/providers/index.d.mts.map +1 -0
  541. package/dist/providers/notificationProvider/index.d.cts +8 -0
  542. package/dist/providers/notificationProvider/index.d.cts.map +1 -0
  543. package/dist/providers/notificationProvider/index.d.mts +8 -0
  544. package/dist/providers/notificationProvider/index.d.mts.map +1 -0
  545. package/package.json +54 -37
  546. package/refine.config.js +497 -524
  547. package/src/components/autoSaveIndicator/index.tsx +69 -69
  548. package/src/components/breadcrumb/index.tsx +63 -65
  549. package/src/components/buttons/clone/index.tsx +47 -98
  550. package/src/components/buttons/create/index.tsx +49 -99
  551. package/src/components/buttons/delete/index.tsx +70 -130
  552. package/src/components/buttons/edit/index.tsx +47 -99
  553. package/src/components/buttons/export/index.tsx +18 -18
  554. package/src/components/buttons/import/index.tsx +22 -21
  555. package/src/components/buttons/list/index.tsx +44 -116
  556. package/src/components/buttons/refresh/index.tsx +29 -59
  557. package/src/components/buttons/save/index.tsx +18 -18
  558. package/src/components/buttons/show/index.tsx +46 -97
  559. package/src/components/buttons/types.ts +20 -20
  560. package/src/components/crud/create/index.tsx +120 -120
  561. package/src/components/crud/edit/index.tsx +205 -207
  562. package/src/components/crud/list/index.tsx +88 -90
  563. package/src/components/crud/show/index.tsx +175 -185
  564. package/src/components/crud/types.ts +41 -56
  565. package/src/components/fields/boolean/index.tsx +11 -11
  566. package/src/components/fields/date/index.tsx +13 -13
  567. package/src/components/fields/email/index.tsx +5 -5
  568. package/src/components/fields/file/index.tsx +8 -8
  569. package/src/components/fields/image/index.tsx +4 -4
  570. package/src/components/fields/markdown/index.tsx +9 -9
  571. package/src/components/fields/number/index.tsx +17 -17
  572. package/src/components/fields/tag/index.tsx +1 -1
  573. package/src/components/fields/text/index.tsx +1 -1
  574. package/src/components/fields/types.ts +18 -18
  575. package/src/components/fields/url/index.tsx +8 -8
  576. package/src/components/layout/header/index.tsx +25 -25
  577. package/src/components/layout/index.tsx +30 -30
  578. package/src/components/layout/sider/index.tsx +238 -246
  579. package/src/components/layout/sider/styles.ts +5 -5
  580. package/src/components/layout/title/index.tsx +40 -40
  581. package/src/components/layout/types.ts +6 -6
  582. package/src/components/pageHeader/index.tsx +44 -44
  583. package/src/components/pages/auth/components/forgotPassword/index.tsx +177 -180
  584. package/src/components/pages/auth/components/login/index.tsx +258 -271
  585. package/src/components/pages/auth/components/register/index.tsx +247 -263
  586. package/src/components/pages/auth/components/styles.ts +16 -16
  587. package/src/components/pages/auth/components/updatePassword/index.tsx +160 -174
  588. package/src/components/pages/auth/index.tsx +23 -23
  589. package/src/components/pages/error/index.tsx +57 -57
  590. package/src/components/pages/login/index.tsx +120 -146
  591. package/src/components/pages/login/styles.ts +12 -12
  592. package/src/components/pages/ready/index.tsx +72 -80
  593. package/src/components/pages/welcome/index.tsx +1 -1
  594. package/src/components/table/components/filterDropdown/index.tsx +90 -93
  595. package/src/components/themedLayout/header/index.tsx +28 -32
  596. package/src/components/themedLayout/index.tsx +30 -30
  597. package/src/components/themedLayout/sider/index.tsx +279 -279
  598. package/src/components/themedLayout/sider/styles.ts +5 -5
  599. package/src/components/themedLayout/title/index.tsx +66 -66
  600. package/src/components/themedLayout/types.ts +8 -8
  601. package/src/components/themedLayoutV2/header/index.tsx +37 -41
  602. package/src/components/themedLayoutV2/index.tsx +34 -36
  603. package/src/components/themedLayoutV2/sider/index.tsx +309 -313
  604. package/src/components/themedLayoutV2/sider/styles.ts +5 -5
  605. package/src/components/themedLayoutV2/title/index.tsx +66 -66
  606. package/src/components/themedLayoutV2/types.ts +9 -9
  607. package/src/components/undoableNotification/index.tsx +31 -31
  608. package/src/contexts/index.ts +2 -2
  609. package/src/contexts/themedLayoutContext/IThemedLayoutContext.ts +4 -4
  610. package/src/contexts/themedLayoutContext/index.tsx +22 -22
  611. package/src/definitions/table/index.ts +94 -83
  612. package/src/definitions/themes/index.ts +35 -35
  613. package/src/definitions/upload/index.ts +17 -17
  614. package/src/hooks/fields/useCheckboxGroup/index.ts +64 -64
  615. package/src/hooks/fields/useRadioGroup/index.ts +60 -63
  616. package/src/hooks/fields/useSelect/index.ts +30 -30
  617. package/src/hooks/form/index.ts +10 -10
  618. package/src/hooks/form/useDrawerForm/index.ts +4 -4
  619. package/src/hooks/form/useDrawerForm/useDrawerForm.ts +257 -261
  620. package/src/hooks/form/useForm.ts +258 -259
  621. package/src/hooks/form/useModalForm/index.ts +3 -3
  622. package/src/hooks/form/useModalForm/useModalForm.ts +289 -295
  623. package/src/hooks/form/useStepsForm/index.ts +3 -3
  624. package/src/hooks/form/useStepsForm/useStepsForm.ts +96 -96
  625. package/src/hooks/import/index.tsx +104 -106
  626. package/src/hooks/list/useSimpleList/useSimpleList.ts +179 -185
  627. package/src/hooks/modal/useModal/index.tsx +24 -24
  628. package/src/hooks/table/useEditableTable/useEditableTable.ts +85 -85
  629. package/src/hooks/table/useTable/paginationLink.tsx +17 -17
  630. package/src/hooks/table/useTable/useTable.ts +197 -207
  631. package/src/hooks/useFileUploadState/index.ts +20 -20
  632. package/src/hooks/useSiderVisible/index.ts +16 -16
  633. package/src/hooks/useThemedLayoutContext/index.ts +12 -12
  634. package/src/index.tsx +4 -4
  635. package/src/interfaces/field.ts +1 -1
  636. package/src/interfaces/index.ts +7 -8
  637. package/src/interfaces/upload.ts +7 -7
  638. package/src/providers/notificationProvider/index.tsx +78 -78
  639. package/src/types/index.d.ts +2 -2
  640. package/src/types/sunflower.d.ts +68 -68
  641. package/tsconfig.json +30 -26
  642. package/dist/esm/index.js +0 -3
  643. package/dist/esm/index.js.map +0 -1
  644. package/dist/iife/index.js +0 -72
  645. package/dist/iife/index.js.map +0 -1
  646. package/dist/index.js +0 -3
  647. package/dist/index.js.map +0 -1
@@ -0,0 +1,42 @@
1
+ import { FormInstance, FormProps, ModalProps } from "antd";
2
+ import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord, LiveModeProps, BaseKey, FormWithSyncWithLocationParams } from "@refinedev/core";
3
+ import { UseFormProps, UseFormReturnType } from "../useForm";
4
+ export type useModalFormFromSFReturnType<TResponse, TVariables> = {
5
+ open: boolean;
6
+ form: FormInstance<TVariables>;
7
+ show: (id?: BaseKey) => void;
8
+ close: () => void;
9
+ modalProps: ModalProps;
10
+ formProps: FormProps<TVariables>;
11
+ formLoading: boolean;
12
+ defaultFormValuesLoading: boolean;
13
+ formValues: {};
14
+ initialValues: {};
15
+ formResult: undefined;
16
+ submit: (values?: TVariables) => Promise<TResponse>;
17
+ /** @deprecated Please use `open` instead. */
18
+ visible: boolean;
19
+ };
20
+ type useModalFormConfig = {
21
+ action: "show" | "edit" | "create" | "clone";
22
+ };
23
+ export type UseModalFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = Omit<UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>, "saveButtonProps" | "deleteButtonProps"> & useModalFormFromSFReturnType<TResponse, TVariables>;
24
+ export type UseModalFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & useModalFormConfig & LiveModeProps & FormWithSyncWithLocationParams & {
25
+ defaultVisible?: boolean;
26
+ autoSubmitClose?: boolean;
27
+ autoResetForm?: boolean;
28
+ };
29
+ /**
30
+ * `useModalForm` hook allows you to manage a form within a modal. It returns Ant Design {@link https://ant.design/components/form/ Form} and {@link https://ant.design/components/modal/ Modal} components props.
31
+ *
32
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/form/useModalForm} for more details.
33
+ *
34
+ * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
35
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
36
+ * @typeParam TVariables - Values for params. default `{}`
37
+ *
38
+ *
39
+ */
40
+ export declare const useModalForm: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ syncWithLocation, defaultVisible, autoSubmitClose, autoResetForm, autoSave, invalidates, ...rest }: UseModalFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseModalFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
41
+ export {};
42
+ //# sourceMappingURL=useModalForm.d.ts.map
@@ -0,0 +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;AAE3D,OAAO,EAGL,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACV,aAAa,EACb,OAAO,EAGP,8BAA8B,EAI/B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGtE,MAAM,MAAM,4BAA4B,CAAC,SAAS,EAAE,UAAU,IAAI;IAChE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC,UA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,kBAAkB,GAClB,aAAa,GACb,8BAA8B,GAAG;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AACJ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,wUAetB,kBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,KAAG,uBACF,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAmOf,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { FormInstance, FormProps, ModalProps } from "antd";
2
2
  import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord, LiveModeProps, BaseKey, FormWithSyncWithLocationParams } from "@refinedev/core";
3
3
  import { UseFormProps, UseFormReturnType } from "../useForm";
4
- export declare type useModalFormFromSFReturnType<TResponse, TVariables> = {
4
+ export type useModalFormFromSFReturnType<TResponse, TVariables> = {
5
5
  open: boolean;
6
6
  form: FormInstance<TVariables>;
7
7
  show: (id?: BaseKey) => void;
@@ -17,11 +17,11 @@ export declare type useModalFormFromSFReturnType<TResponse, TVariables> = {
17
17
  /** @deprecated Please use `open` instead. */
18
18
  visible: boolean;
19
19
  };
20
- declare type useModalFormConfig = {
20
+ type useModalFormConfig = {
21
21
  action: "show" | "edit" | "create" | "clone";
22
22
  };
23
- export declare type UseModalFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = Omit<UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>, "saveButtonProps" | "deleteButtonProps"> & useModalFormFromSFReturnType<TResponse, TVariables>;
24
- export declare type UseModalFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & useModalFormConfig & LiveModeProps & FormWithSyncWithLocationParams & {
23
+ export type UseModalFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = Omit<UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>, "saveButtonProps" | "deleteButtonProps"> & useModalFormFromSFReturnType<TResponse, TVariables>;
24
+ export type UseModalFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & useModalFormConfig & LiveModeProps & FormWithSyncWithLocationParams & {
25
25
  defaultVisible?: boolean;
26
26
  autoSubmitClose?: boolean;
27
27
  autoResetForm?: boolean;
@@ -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;AAE3D,OAAO,EAGH,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACV,aAAa,EACb,OAAO,EAGP,8BAA8B,EAIjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGtE,oBAAY,4BAA4B,CAAC,SAAS,EAAE,UAAU,IAAI;IAC9D,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,YA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S,GAAG,MAAM,IACzC,gBAAgB,CAChB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACjB,GACG,YAAY,CACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACjB,GACD,kBAAkB,GAClB,aAAa,GACb,8BAA8B,GAAG;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AACN;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,4fAqQxB,CAAC"}
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;AAE3D,OAAO,EAGL,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACV,aAAa,EACb,OAAO,EAGP,8BAA8B,EAI/B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAGtE,MAAM,MAAM,4BAA4B,CAAC,SAAS,EAAE,UAAU,IAAI;IAChE,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;IAClC,UAAU,EAAE,EAAE,CAAC;IACf,aAAa,EAAE,EAAE,CAAC;IAClB,UAAU,EAAE,SAAS,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C;AACJ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,wUAetB,kBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,KAAG,uBACF,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAmOf,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useStepsForm, UseStepsFormProps, UseStepsFormReturnType, } from "./useStepsForm";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useStepsForm, UseStepsFormProps, UseStepsFormReturnType, } from "./useStepsForm";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACzB,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { UseStepsFormConfig } from "sunflower-antd";
2
+ import { FormInstance, FormProps } from "antd";
3
+ import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord } from "@refinedev/core";
4
+ import { UseFormProps, UseFormReturnType } from "../useForm";
5
+ export type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
6
+ current: number;
7
+ gotoStep: (step: number) => Promise<TVariables> | true;
8
+ stepsProps: {
9
+ current: number;
10
+ onChange: (currentStep: number) => void;
11
+ };
12
+ formProps: FormProps<TVariables>;
13
+ formLoading: boolean;
14
+ defaultFormValuesLoading: boolean;
15
+ formValues: {};
16
+ initialValues: {};
17
+ formResult: undefined;
18
+ form: FormInstance<TVariables>;
19
+ submit: (values?: TVariables) => Promise<TResponse>;
20
+ };
21
+ export type UseStepsFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormFromSFReturnType<TResponse, TVariables>;
22
+ export type UseStepsFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormConfig;
23
+ /**
24
+ * `useStepsForm` hook allows you to split your form under an Ant Design based {@link https://ant.design/components/steps/ Steps} component and provides you with a few useful functionalities that will help you manage your form.
25
+ *
26
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/form/useStepsForm} for more details.
27
+ *
28
+ * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
29
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
30
+ * @typeParam TVariables - Values for params. default `{}`
31
+ *
32
+ *
33
+ */
34
+ export declare const useStepsForm: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>(props?: UseStepsFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseStepsFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
35
+ //# sourceMappingURL=useStepsForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStepsForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/useStepsForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EACL,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,MAAM,4BAA4B,CAAC,SAAS,EAAE,UAAU,IAAI;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IACvD,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;KACzC,CAAC;IACF,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;IAClC,UAAU,EAAE,EAAE,CAAC;IACf,aAAa,EAAE,EAAE,CAAC;IAClB,UAAU,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/B,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,UAAU,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAChC,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,KAAK,SAAS,UAAU,GAAG,YAAY,EACvC,SAAS,SAAS,UAAU,GAAG,KAAK,EACpC,cAAc,SAAS,SAAS,GAAG,MAAM,IACvC,iBAAiB,CACnB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GACC,4BAA4B,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAEtD,MAAM,MAAM,iBAAiB,CAC3B,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,KAAK,SAAS,UAAU,GAAG,YAAY,EACvC,SAAS,SAAS,UAAU,GAAG,KAAK,EACpC,cAAc,SAAS,SAAS,GAAG,MAAM,IACvC,gBAAgB,CAClB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GACC,YAAY,CACV,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GACD,kBAAkB,CAAC;AAErB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,0OAQhB,kBACL,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,KACA,uBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAsCf,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { UseStepsFormConfig } from "sunflower-antd";
2
+ import { FormInstance, FormProps } from "antd";
3
+ import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord } from "@refinedev/core";
4
+ import { UseFormProps, UseFormReturnType } from "../useForm";
5
+ export type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
6
+ current: number;
7
+ gotoStep: (step: number) => Promise<TVariables> | true;
8
+ stepsProps: {
9
+ current: number;
10
+ onChange: (currentStep: number) => void;
11
+ };
12
+ formProps: FormProps<TVariables>;
13
+ formLoading: boolean;
14
+ defaultFormValuesLoading: boolean;
15
+ formValues: {};
16
+ initialValues: {};
17
+ formResult: undefined;
18
+ form: FormInstance<TVariables>;
19
+ submit: (values?: TVariables) => Promise<TResponse>;
20
+ };
21
+ export type UseStepsFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormFromSFReturnType<TResponse, TVariables>;
22
+ export type UseStepsFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormConfig;
23
+ /**
24
+ * `useStepsForm` hook allows you to split your form under an Ant Design based {@link https://ant.design/components/steps/ Steps} component and provides you with a few useful functionalities that will help you manage your form.
25
+ *
26
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/form/useStepsForm} for more details.
27
+ *
28
+ * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
29
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
30
+ * @typeParam TVariables - Values for params. default `{}`
31
+ *
32
+ *
33
+ */
34
+ export declare const useStepsForm: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>(props?: UseStepsFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseStepsFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
35
+ //# sourceMappingURL=useStepsForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStepsForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/useStepsForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EACL,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,MAAM,4BAA4B,CAAC,SAAS,EAAE,UAAU,IAAI;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IACvD,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;KACzC,CAAC;IACF,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,wBAAwB,EAAE,OAAO,CAAC;IAClC,UAAU,EAAE,EAAE,CAAC;IACf,aAAa,EAAE,EAAE,CAAC;IAClB,UAAU,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;IAC/B,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,UAAU,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAChC,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,KAAK,SAAS,UAAU,GAAG,YAAY,EACvC,SAAS,SAAS,UAAU,GAAG,KAAK,EACpC,cAAc,SAAS,SAAS,GAAG,MAAM,IACvC,iBAAiB,CACnB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GACC,4BAA4B,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAEtD,MAAM,MAAM,iBAAiB,CAC3B,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,KAAK,SAAS,UAAU,GAAG,YAAY,EACvC,SAAS,SAAS,UAAU,GAAG,KAAK,EACpC,cAAc,SAAS,SAAS,GAAG,MAAM,IACvC,gBAAgB,CAClB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GACC,YAAY,CACV,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,GACD,kBAAkB,CAAC;AAErB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,0OAQhB,kBACL,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,KACA,uBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAsCf,CAAC"}
@@ -2,7 +2,7 @@ import { UseStepsFormConfig } from "sunflower-antd";
2
2
  import { FormInstance, FormProps } from "antd";
3
3
  import { HttpError, UseFormProps as UseFormPropsCore, BaseRecord } from "@refinedev/core";
4
4
  import { UseFormProps, UseFormReturnType } from "../useForm";
5
- export declare type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
5
+ export type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
6
6
  current: number;
7
7
  gotoStep: (step: number) => Promise<TVariables> | true;
8
8
  stepsProps: {
@@ -18,8 +18,8 @@ export declare type UseStepsFormFromSFReturnType<TResponse, TVariables> = {
18
18
  form: FormInstance<TVariables>;
19
19
  submit: (values?: TVariables) => Promise<TResponse>;
20
20
  };
21
- export declare type UseStepsFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormFromSFReturnType<TResponse, TVariables>;
22
- export declare type UseStepsFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormConfig;
21
+ export type UseStepsFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormFromSFReturnType<TResponse, TVariables>;
22
+ export type UseStepsFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = {}, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & UseStepsFormConfig;
23
23
  /**
24
24
  * `useStepsForm` hook allows you to split your form under an Ant Design based {@link https://ant.design/components/steps/ Steps} component and provides you with a few useful functionalities that will help you manage your form.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,SAAS,GAAG,MAAM,IACzC,iBAAiB,CACjB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACjB,GACG,4BAA4B,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;AAExD,oBAAY,iBAAiB,CACzB,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,MAAM,SAAS,SAAS,GAAG,SAAS,EACpC,UAAU,GAAG,EAAE,EACf,KAAK,SAAS,UAAU,GAAG,YAAY,EACvC,SAAS,SAAS,UAAU,GAAG,KAAK,EACpC,cAAc,SAAS,SAAS,GAAG,MAAM,IACzC,gBAAgB,CAChB,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACjB,GACG,YAAY,CACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACjB,GACD,kBAAkB,CAAC;AAEvB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,8ZA4DxB,CAAC"}
1
+ {"version":3,"file":"useStepsForm.d.ts","sourceRoot":"","sources":["../../../../src/hooks/form/useStepsForm/useStepsForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kBAAkB,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAE/C,OAAO,EACL,SAAS,EACT,YAAY,IAAI,gBAAgB,EAChC,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAW,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,MAAM,4BAA4B,CAAC,SAAS,EAAE,UAAU,IAAI;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;IACvD,UAAU,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,Q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MAAM,YAAY,0OAQhB,kBACL,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CACf,KACA,uBACD,YAAY,EACZ,MAAM,EACN,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,CAsCf,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ButtonProps, UploadProps } from "antd";
2
+ import { BaseRecord, HttpError, UseImportReturnType, ImportOptions } from "@refinedev/core";
3
+ /**
4
+ * `useImport` hook allows you to handle your csv import logic easily.
5
+ *
6
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/import/useImport} for more details.
7
+ *
8
+ * @typeParam TItem - Interface of parsed csv data
9
+ * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
10
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
11
+ * @typeParam TVariables - Values for mutation function
12
+ *
13
+ */
14
+ export declare const useImport: <TItem = any, TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = any>({ resource: resourceFromProp, resourceName, mapData, paparseOptions, batchSize, onFinish, meta, metaData, dataProviderName, onProgress: onProgressFromProp, }?: ImportOptions<TItem, TVariables, TData>) => Omit<UseImportReturnType<TData, TVariables, TError>, "handleChange" | "inputProps"> & {
15
+ uploadProps: UploadProps;
16
+ buttonProps: ButtonProps;
17
+ };
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/import/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,WAAW,EAAY,MAAM,MAAM,CAAC;AACxE,OAAO,EAGL,UAAU,EACV,SAAS,EAET,mBAAmB,EACnB,aAAa,EAEd,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,+QAgBnB,cAAc,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,KAAQ,KAChD,oBAAoB,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,EAC9C,cAAc,GAAG,YAAY,CAC9B,GAAG;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;CAsF1B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ButtonProps, UploadProps } from "antd";
2
+ import { BaseRecord, HttpError, UseImportReturnType, ImportOptions } from "@refinedev/core";
3
+ /**
4
+ * `useImport` hook allows you to handle your csv import logic easily.
5
+ *
6
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/import/useImport} for more details.
7
+ *
8
+ * @typeParam TItem - Interface of parsed csv data
9
+ * @typeParam TData - Result data of the query extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences#baserecord `BaseRecord`}
10
+ * @typeParam TError - Custom error object that extends {@link https://refine.dev/docs/api-reference/core/interfaceReferences/#httperror `HttpError`}
11
+ * @typeParam TVariables - Values for mutation function
12
+ *
13
+ */
14
+ export declare const useImport: <TItem = any, TData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables = any>({ resource: resourceFromProp, resourceName, mapData, paparseOptions, batchSize, onFinish, meta, metaData, dataProviderName, onProgress: onProgressFromProp, }?: ImportOptions<TItem, TVariables, TData>) => Omit<UseImportReturnType<TData, TVariables, TError>, "handleChange" | "inputProps"> & {
15
+ uploadProps: UploadProps;
16
+ buttonProps: ButtonProps;
17
+ };
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/import/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,WAAW,EAAY,MAAM,MAAM,CAAC;AACxE,OAAO,EAGL,UAAU,EACV,SAAS,EAET,mBAAmB,EACnB,aAAa,EAEd,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,+QAgBnB,cAAc,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,KAAQ,KAChD,oBAAoB,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,EAC9C,cAAc,GAAG,YAAY,CAC9B,GAAG;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;CAsF1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/import/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,WAAW,EAAY,MAAM,MAAM,CAAC;AACxE,OAAO,EAGH,UAAU,EACV,SAAS,EAET,mBAAmB,EACnB,aAAa,EAEhB,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS;iBAoBL,WAAW;iBACX,WAAW;CAwF3B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/import/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAgB,WAAW,EAAY,MAAM,MAAM,CAAC;AACxE,OAAO,EAGL,UAAU,EACV,SAAS,EAET,mBAAmB,EACnB,aAAa,EAEd,MAAM,iBAAiB,CAAC;AAEzB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,+QAgBnB,cAAc,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,KAAQ,KAChD,oBAAoB,KAAK,EAAE,UAAU,EAAE,MAAM,CAAC,EAC9C,cAAc,GAAG,YAAY,CAC9B,GAAG;IACF,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;CAsF1B,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from "./form";
2
+ export * from "./table";
3
+ export * from "./fields";
4
+ export * from "./import";
5
+ export * from "./list";
6
+ export * from "./useFileUploadState";
7
+ export * from "./modal";
8
+ export * from "./useSiderVisible";
9
+ export * from "./useThemedLayoutContext";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from "./form";
2
+ export * from "./table";
3
+ export * from "./fields";
4
+ export * from "./import";
5
+ export * from "./list";
6
+ export * from "./useFileUploadState";
7
+ export * from "./modal";
8
+ export * from "./useSiderVisible";
9
+ export * from "./useThemedLayoutContext";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./useSimpleList";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/list/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./useSimpleList";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/list/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useSimpleList } from "./useSimpleList";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useSimpleList } from "./useSimpleList";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { ListProps, FormProps } from "antd";
2
+ import { BaseRecord, CrudFilters, HttpError, useTableProps as useTablePropsCore, useTableReturnType } from "@refinedev/core";
3
+ export type useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
4
+ onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
5
+ };
6
+ export type useSimpleListReturnType<TQueryFnData extends BaseRecord = BaseRecord, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = Omit<useTableReturnType<TData>, "tableQueryResult"> & {
7
+ listProps: ListProps<TData>;
8
+ queryResult: useTableReturnType["tableQueryResult"];
9
+ searchFormProps: FormProps<TSearchVariables>;
10
+ };
11
+ /**
12
+ * By using `useSimpleList` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/list/ `<List>`} component.
13
+ * All features such as pagination, sorting come out of the box.
14
+ *
15
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/list/useSimpleList} 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 - Antd form values
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 useSimpleList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ resource, initialCurrent, initialPageSize, pagination, hasPagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, filters: filtersFromProp, sorters: sortersFromProp, onSearch, queryOptions, syncWithLocation, successNotification, errorNotification, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData>) => useSimpleListReturnType<TData, TSearchVariables>;
24
+ //# sourceMappingURL=useSimpleList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSimpleList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/useSimpleList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAc,MAAM,MAAM,CAAC;AAExD,OAAO,EACL,UAAU,EACV,WAAW,EACX,SAAS,EAET,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,EAEnB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,IAC1E,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,uBAAuB,CACjC,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,gBAAgB,GAAG,OAAO,EAC1B,KAAK,SAAS,UAAU,GAAG,YAAY,IACrC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC,GAAG;IACxD,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,WAAW,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;IACpD,eAAe,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAC9C,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,aAAa,+hBA6BvB,mBACD,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,KAAK,CACN,KAAQ,wBAAwB,KAAK,EAAE,gBAAgB,CAmJvD,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { ListProps, FormProps } from "antd";
2
+ import { BaseRecord, CrudFilters, HttpError, useTableProps as useTablePropsCore, useTableReturnType } from "@refinedev/core";
3
+ export type useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
4
+ onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
5
+ };
6
+ export type useSimpleListReturnType<TQueryFnData extends BaseRecord = BaseRecord, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = Omit<useTableReturnType<TData>, "tableQueryResult"> & {
7
+ listProps: ListProps<TData>;
8
+ queryResult: useTableReturnType["tableQueryResult"];
9
+ searchFormProps: FormProps<TSearchVariables>;
10
+ };
11
+ /**
12
+ * By using `useSimpleList` you get props for your records from API in accordance with Ant Design {@link https://ant.design/components/list/ `<List>`} component.
13
+ * All features such as pagination, sorting come out of the box.
14
+ *
15
+ * @see {@link https://refine.dev/docs/api-reference/antd/hooks/list/useSimpleList} 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 - Antd form values
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 useSimpleList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ resource, initialCurrent, initialPageSize, pagination, hasPagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, filters: filtersFromProp, sorters: sortersFromProp, onSearch, queryOptions, syncWithLocation, successNotification, errorNotification, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData>) => useSimpleListReturnType<TData, TSearchVariables>;
24
+ //# sourceMappingURL=useSimpleList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSimpleList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/useSimpleList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAc,MAAM,MAAM,CAAC;AAExD,OAAO,EACL,UAAU,EACV,WAAW,EACX,SAAS,EAET,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,EAEnB,MAAM,iBAAiB,CAAC;AAKzB,MAAM,MAAM,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,IAC1E,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,uBAAuB,CACjC,YAAY,SAAS,UAAU,GAAG,UAAU,EAC5C,gBAAgB,GAAG,OAAO,EAC1B,KAAK,SAAS,UAAU,GAAG,YAAY,IACrC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC,GAAG;IACxD,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,WAAW,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;IACpD,eAAe,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAC9C,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,aAAa,+hBA6BvB,mBACD,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,KAAK,CACN,KAAQ,wBAAwB,KAAK,EAAE,gBAAgB,CAmJvD,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { ListProps, FormProps } from "antd";
2
2
  import { BaseRecord, CrudFilters, HttpError, useTableProps as useTablePropsCore, useTableReturnType } from "@refinedev/core";
3
- export declare type useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
3
+ export type useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData> = useTablePropsCore<TQueryFnData, TError, TData> & {
4
4
  onSearch?: (data: TSearchVariables) => CrudFilters | Promise<CrudFilters>;
5
5
  };
6
- export declare type useSimpleListReturnType<TQueryFnData extends BaseRecord = BaseRecord, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = Omit<useTableReturnType<TData>, "tableQueryResult"> & {
6
+ export type useSimpleListReturnType<TQueryFnData extends BaseRecord = BaseRecord, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData> = Omit<useTableReturnType<TData>, "tableQueryResult"> & {
7
7
  listProps: ListProps<TData>;
8
8
  queryResult: useTableReturnType["tableQueryResult"];
9
9
  searchFormProps: FormProps<TSearchVariables>;
@@ -20,5 +20,5 @@ export declare type useSimpleListReturnType<TQueryFnData extends BaseRecord = Ba
20
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
21
  *
22
22
  */
23
- export declare const useSimpleList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ resource, initialCurrent, initialPageSize, pagination, hasPagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, filters: filtersFromProp, sorters: sortersFromProp, onSearch, queryOptions, syncWithLocation, successNotification, errorNotification, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData>) => useSimpleListReturnType<TData, TSearchVariables, TData>;
23
+ export declare const useSimpleList: <TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TSearchVariables = unknown, TData extends BaseRecord = TQueryFnData>({ resource, initialCurrent, initialPageSize, pagination, hasPagination, initialSorter, permanentSorter, initialFilter, permanentFilter, defaultSetFilterBehavior, filters: filtersFromProp, sorters: sortersFromProp, onSearch, queryOptions, syncWithLocation, successNotification, errorNotification, liveMode: liveModeFromProp, onLiveEvent, liveParams, meta, metaData, dataProviderName, }?: useSimpleListProps<TQueryFnData, TError, TSearchVariables, TData>) => useSimpleListReturnType<TData, TSearchVariables>;
24
24
  //# sourceMappingURL=useSimpleList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSimpleList.d.ts","sourceRoot":"","sources":["../../../../src/hooks/list/useSimpleList/useSimpleList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAc,MAAM,MAAM,CAAC;AAExD,OAAO,EACH,UAAU,EACV,WAAW,EACX,SAAS,EAET,aAAa,IAAI,iBAAiB,EAClC,kBAAkB,EAErB,MAAM,iBAAiB,CAAC;AAKzB,oBAAY,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,KAAK,IACxE,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG;IAC7C,QAAQ,CAAC,EAAE,CACP,IA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xD,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,WAAW,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;IACpD,eAAe,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CAC9C,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,aAAa,+hBA6BvB,mBACD,YAAY,EACZ,MAAM,EACN,gBAAgB,EAChB,KAAK,CACN,KAAQ,wBAAwB,KAAK,EAAE,gBAAgB,CAmJvD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./useModal";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./useModal";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ModalProps } from "antd";
2
+ import { 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/modal/useModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAEL,kBAAkB,IAAI,sBAAsB,EAC7C,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"}
@@ -0,0 +1,18 @@
1
+ import { ModalProps } from "antd";
2
+ import { 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/modal/useModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAEL,kBAAkB,IAAI,sBAAsB,EAC7C,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,9 +1,9 @@
1
1
  import { ModalProps } from "antd";
2
2
  import { useModalReturnType as useCoreModelReturnType } from "@refinedev/core";
3
- export declare type useModalReturnType = {
3
+ export type useModalReturnType = {
4
4
  modalProps: ModalProps;
5
5
  } & Omit<useCoreModelReturnType, "visible">;
6
- export declare type useModalProps = {
6
+ export type useModalProps = {
7
7
  /**
8
8
  * Default props for Ant Design {@link https://ant.design/components/modal/ `<Modal>`} component.
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/modal/useModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAEH,kBAAkB,IAAI,sBAAsB,EAC/C,MAAM,iBAAiB,CAAC;AAEzB,oBAAY,kBAAkB,GAAG;IAC7B,UAAU,EAAE,UAAU,CAAC;CAC1B,GAAG,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAE5C,oBAAY,aAAa,GAAG;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,qBAElB,aAAa,KAAQ,kBAkBvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/modal/useModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAEL,kBAAkB,IAAI,sBAAsB,EAC7C,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"}
@@ -0,0 +1,3 @@
1
+ export * from "./useTable";
2
+ export * from "./useEditableTable";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./useTable";
2
+ export * from "./useEditableTable";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useEditableTable } from "./useEditableTable";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export { useEditableTable } from "./useEditableTable";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}