@vef-framework/components 2.0.11 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (773) hide show
  1. package/dist/cjs/_base/constants/breakpoints.cjs +1 -1
  2. package/dist/cjs/_base/constants/common.cjs +1 -1
  3. package/dist/cjs/_base/constants/css-vars.cjs +1 -1
  4. package/dist/cjs/_base/constants/index.cjs +1 -1
  5. package/dist/cjs/_base/constants/theme.cjs +1 -0
  6. package/dist/cjs/_base/helpers/breakpoints.cjs +1 -1
  7. package/dist/cjs/_base/helpers/color.cjs +1 -1
  8. package/dist/cjs/_base/helpers/common.cjs +1 -1
  9. package/dist/cjs/_base/helpers/index.cjs +1 -1
  10. package/dist/cjs/_base/helpers/message.cjs +1 -1
  11. package/dist/cjs/_base/helpers/modal.cjs +1 -1
  12. package/dist/cjs/_base/helpers/notification.cjs +1 -1
  13. package/dist/cjs/_base/helpers/props.cjs +1 -1
  14. package/dist/cjs/_base/helpers/react.cjs +1 -1
  15. package/dist/cjs/_base/hooks/index.cjs +1 -1
  16. package/dist/cjs/_base/hooks/use-theme-tokens.cjs +1 -1
  17. package/dist/cjs/_base/index.cjs +1 -1
  18. package/dist/cjs/_base/styles/common.cjs +1 -1
  19. package/dist/cjs/_base/styles/index.cjs +0 -1
  20. package/dist/cjs/_base/types/breakpoints.cjs +0 -1
  21. package/dist/cjs/_base/types/common.cjs +0 -1
  22. package/dist/cjs/_base/types/index.cjs +0 -1
  23. package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
  24. package/dist/cjs/action-button/index.cjs +1 -1
  25. package/dist/cjs/action-button/use-action-button.cjs +1 -1
  26. package/dist/cjs/action-group/index.cjs +1 -1
  27. package/dist/cjs/action-group/use-action-group.cjs +1 -1
  28. package/dist/cjs/action-group/use-computed-action-buttons.cjs +1 -1
  29. package/dist/cjs/affix/index.cjs +1 -1
  30. package/dist/cjs/alert/index.cjs +1 -1
  31. package/dist/cjs/anchor/index.cjs +1 -1
  32. package/dist/cjs/auto-complete/index.cjs +1 -1
  33. package/dist/cjs/avatar/index.cjs +1 -1
  34. package/dist/cjs/badge/index.cjs +1 -1
  35. package/dist/cjs/bool/index.cjs +1 -1
  36. package/dist/cjs/breadcrumb/index.cjs +1 -1
  37. package/dist/cjs/button/index.cjs +1 -1
  38. package/dist/cjs/calendar/index.cjs +1 -1
  39. package/dist/cjs/card/index.cjs +1 -1
  40. package/dist/cjs/carousel/index.cjs +1 -1
  41. package/dist/cjs/cascader/index.cjs +1 -1
  42. package/dist/cjs/center/index.cjs +1 -1
  43. package/dist/cjs/charts/chart.cjs +1 -1
  44. package/dist/cjs/charts/helpers/group.cjs +1 -1
  45. package/dist/cjs/charts/helpers/index.cjs +1 -1
  46. package/dist/cjs/charts/hooks/index.cjs +1 -1
  47. package/dist/cjs/charts/hooks/use-chart.cjs +1 -1
  48. package/dist/cjs/charts/index.cjs +1 -1
  49. package/dist/cjs/charts/themes/index.cjs +1 -1
  50. package/dist/cjs/charts/themes/walden-dark.cjs +1 -1
  51. package/dist/cjs/charts/themes/walden.cjs +1 -1
  52. package/dist/cjs/charts/themes/wonderland-dark.cjs +1 -1
  53. package/dist/cjs/charts/themes/wonderland.cjs +1 -1
  54. package/dist/cjs/checkbox/index.cjs +1 -1
  55. package/dist/cjs/code-highlighter/index.cjs +1 -1
  56. package/dist/cjs/col/index.cjs +1 -1
  57. package/dist/cjs/collapse/index.cjs +1 -1
  58. package/dist/cjs/color-picker/index.cjs +1 -1
  59. package/dist/cjs/compact/index.cjs +1 -1
  60. package/dist/cjs/config-provider/app.cjs +1 -1
  61. package/dist/cjs/config-provider/constants.cjs +1 -0
  62. package/dist/cjs/config-provider/context-holder.cjs +1 -1
  63. package/dist/cjs/config-provider/css-vars.cjs +1 -0
  64. package/dist/cjs/config-provider/dark-mode-context.cjs +1 -1
  65. package/dist/cjs/config-provider/error-fallback.cjs +1 -1
  66. package/dist/cjs/config-provider/global-style.cjs +1 -1
  67. package/dist/cjs/config-provider/index.cjs +1 -1
  68. package/dist/cjs/config-provider/theme-config.cjs +1 -0
  69. package/dist/cjs/config-provider/use-config-provider.cjs +1 -1
  70. package/dist/cjs/date-picker/index.cjs +1 -1
  71. package/dist/cjs/descriptions/index.cjs +1 -1
  72. package/dist/cjs/divider/index.cjs +1 -1
  73. package/dist/cjs/drawer/index.cjs +1 -1
  74. package/dist/cjs/dropdown/index.cjs +1 -1
  75. package/dist/cjs/dynamic-icon/index.cjs +1 -1
  76. package/dist/cjs/dynamic-icon/placeholder-icon.cjs +1 -1
  77. package/dist/cjs/dynamic-icon/unknown-icon.cjs +1 -1
  78. package/dist/cjs/empty/empty.cjs +1 -1
  79. package/dist/cjs/empty/index.cjs +1 -1
  80. package/dist/cjs/flex/index.cjs +1 -1
  81. package/dist/cjs/flip-text/index.cjs +1 -1
  82. package/dist/cjs/float-button/index.cjs +1 -1
  83. package/dist/cjs/form/components/form.cjs +1 -1
  84. package/dist/cjs/form/components/index.cjs +1 -1
  85. package/dist/cjs/form/components/reset-button.cjs +1 -1
  86. package/dist/cjs/form/components/submit-button.cjs +1 -1
  87. package/dist/cjs/form/contexts/form-context.cjs +1 -1
  88. package/dist/cjs/form/contexts/form-layout.cjs +1 -1
  89. package/dist/cjs/form/contexts/index.cjs +1 -1
  90. package/dist/cjs/form/fields/auto-complete/index.cjs +1 -1
  91. package/dist/cjs/form/fields/bool/index.cjs +1 -1
  92. package/dist/cjs/form/fields/cascader/index.cjs +1 -1
  93. package/dist/cjs/form/fields/checkbox/index.cjs +1 -1
  94. package/dist/cjs/form/fields/color-picker/index.cjs +1 -1
  95. package/dist/cjs/form/fields/date-picker/index.cjs +1 -1
  96. package/dist/cjs/form/fields/date-range-picker/index.cjs +1 -1
  97. package/dist/cjs/form/fields/index.cjs +1 -1
  98. package/dist/cjs/form/fields/input/index.cjs +1 -1
  99. package/dist/cjs/form/fields/input-number/index.cjs +1 -1
  100. package/dist/cjs/form/fields/mentions/index.cjs +1 -1
  101. package/dist/cjs/form/fields/password/index.cjs +1 -1
  102. package/dist/cjs/form/fields/radio/index.cjs +1 -1
  103. package/dist/cjs/form/fields/rate/index.cjs +1 -1
  104. package/dist/cjs/form/fields/select/index.cjs +1 -1
  105. package/dist/cjs/form/fields/slider/index.cjs +1 -1
  106. package/dist/cjs/form/fields/textarea/index.cjs +1 -1
  107. package/dist/cjs/form/fields/time-picker/index.cjs +1 -1
  108. package/dist/cjs/form/fields/time-range-picker/index.cjs +1 -1
  109. package/dist/cjs/form/fields/transfer/index.cjs +1 -1
  110. package/dist/cjs/form/fields/tree-select/index.cjs +1 -1
  111. package/dist/cjs/form/fields/upload/index.cjs +1 -1
  112. package/dist/cjs/form/form.cjs +1 -1
  113. package/dist/cjs/form/helpers/index.cjs +1 -1
  114. package/dist/cjs/form/helpers/with-form-item.cjs +1 -1
  115. package/dist/cjs/form/hooks/use-form-item-props.cjs +1 -1
  116. package/dist/cjs/form/hooks/use-label-width.cjs +1 -1
  117. package/dist/cjs/form/index.cjs +1 -1
  118. package/dist/cjs/form/use-form.cjs +1 -1
  119. package/dist/cjs/grid/context.cjs +1 -1
  120. package/dist/cjs/grid/grid-item.cjs +1 -1
  121. package/dist/cjs/grid/hooks/index.cjs +1 -1
  122. package/dist/cjs/grid/hooks/use-container-breakpoints.cjs +1 -1
  123. package/dist/cjs/grid/hooks/use-container-width.cjs +1 -1
  124. package/dist/cjs/grid/hooks/use-grid-collapsed.cjs +1 -1
  125. package/dist/cjs/grid/hooks/use-normalized-gap.cjs +1 -1
  126. package/dist/cjs/grid/hooks/use-responsive-breakpoint.cjs +1 -1
  127. package/dist/cjs/grid/hooks/use-responsive-value.cjs +1 -1
  128. package/dist/cjs/grid/index.cjs +1 -1
  129. package/dist/cjs/grid/styles.cjs +1 -1
  130. package/dist/cjs/group/index.cjs +1 -1
  131. package/dist/cjs/icon/index.cjs +1 -1
  132. package/dist/cjs/icon-button/index.cjs +1 -1
  133. package/dist/cjs/image/index.cjs +1 -1
  134. package/dist/cjs/index.cjs +1 -1
  135. package/dist/cjs/input/index.cjs +1 -1
  136. package/dist/cjs/input-number/index.cjs +1 -1
  137. package/dist/cjs/keyboard/index.cjs +1 -1
  138. package/dist/cjs/list/index.cjs +1 -1
  139. package/dist/cjs/loader/index.cjs +1 -1
  140. package/dist/cjs/mentions/index.cjs +1 -1
  141. package/dist/cjs/menu/index.cjs +1 -1
  142. package/dist/cjs/modal/index.cjs +1 -1
  143. package/dist/cjs/operation-button/index.cjs +1 -1
  144. package/dist/cjs/pagination/index.cjs +1 -1
  145. package/dist/cjs/permission-gate/index.cjs +1 -1
  146. package/dist/cjs/popconfirm/index.cjs +1 -1
  147. package/dist/cjs/popover/index.cjs +1 -1
  148. package/dist/cjs/progress/index.cjs +1 -1
  149. package/dist/cjs/qrcode/index.cjs +1 -1
  150. package/dist/cjs/radio/index.cjs +1 -1
  151. package/dist/cjs/rate/index.cjs +1 -1
  152. package/dist/cjs/result/index.cjs +1 -1
  153. package/dist/cjs/row/index.cjs +1 -1
  154. package/dist/cjs/scroll-area/index.cjs +1 -1
  155. package/dist/cjs/scroll-area/styles.cjs +1 -1
  156. package/dist/cjs/segmented/index.cjs +1 -1
  157. package/dist/cjs/select/hooks/index.cjs +1 -1
  158. package/dist/cjs/select/hooks/use-data-options-select.cjs +1 -1
  159. package/dist/cjs/select/index.cjs +1 -1
  160. package/dist/cjs/skeleton/index.cjs +1 -1
  161. package/dist/cjs/slider/index.cjs +1 -1
  162. package/dist/cjs/space/index.cjs +1 -1
  163. package/dist/cjs/space/space.cjs +1 -1
  164. package/dist/cjs/sparkles-text/index.cjs +1 -1
  165. package/dist/cjs/sparkles-text/sparkle.cjs +1 -1
  166. package/dist/cjs/spin/index.cjs +1 -1
  167. package/dist/cjs/split-text/index.cjs +1 -1
  168. package/dist/cjs/splitter/index.cjs +1 -1
  169. package/dist/cjs/stack/index.cjs +1 -1
  170. package/dist/cjs/statistic/index.cjs +1 -1
  171. package/dist/cjs/steps/index.cjs +1 -1
  172. package/dist/cjs/switch/index.cjs +1 -1
  173. package/dist/cjs/table/index.cjs +1 -1
  174. package/dist/cjs/table/use-pagination-props.cjs +1 -1
  175. package/dist/cjs/tabs/index.cjs +1 -1
  176. package/dist/cjs/tag/index.cjs +1 -1
  177. package/dist/cjs/time-picker/index.cjs +1 -1
  178. package/dist/cjs/timeline/index.cjs +1 -1
  179. package/dist/cjs/tooltip/index.cjs +1 -1
  180. package/dist/cjs/tour/index.cjs +1 -1
  181. package/dist/cjs/transfer/index.cjs +1 -1
  182. package/dist/cjs/tree/hooks/index.cjs +1 -1
  183. package/dist/cjs/tree/hooks/use-data-options-tree.cjs +1 -1
  184. package/dist/cjs/tree/index.cjs +1 -1
  185. package/dist/cjs/tree-select/hooks/index.cjs +1 -1
  186. package/dist/cjs/tree-select/hooks/use-data-options-tree-select.cjs +1 -1
  187. package/dist/cjs/tree-select/index.cjs +1 -1
  188. package/dist/cjs/typing-animation/index.cjs +1 -1
  189. package/dist/cjs/typography/index.cjs +1 -1
  190. package/dist/cjs/upload/index.cjs +1 -1
  191. package/dist/cjs/watermark/index.cjs +1 -1
  192. package/dist/es/_base/constants/breakpoints.js +12 -11
  193. package/dist/es/_base/constants/common.js +31 -24
  194. package/dist/es/_base/constants/css-vars.js +677 -676
  195. package/dist/es/_base/constants/index.js +4 -15
  196. package/dist/es/_base/constants/theme.js +5 -0
  197. package/dist/es/_base/helpers/breakpoints.js +19 -21
  198. package/dist/es/_base/helpers/color.js +9 -9
  199. package/dist/es/_base/helpers/common.js +9 -10
  200. package/dist/es/_base/helpers/index.js +9 -34
  201. package/dist/es/_base/helpers/message.js +35 -40
  202. package/dist/es/_base/helpers/modal.js +67 -100
  203. package/dist/es/_base/helpers/notification.js +53 -65
  204. package/dist/es/_base/helpers/props.js +12 -12
  205. package/dist/es/_base/helpers/react.js +7 -6
  206. package/dist/es/_base/hooks/index.js +2 -4
  207. package/dist/es/_base/hooks/use-theme-tokens.js +8 -12
  208. package/dist/es/_base/index.js +13 -5
  209. package/dist/es/_base/styles/common.js +19 -18
  210. package/dist/es/_base/styles/index.js +1 -4
  211. package/dist/es/_base/types/breakpoints.js +1 -1
  212. package/dist/es/_base/types/common.js +1 -1
  213. package/dist/es/_base/types/index.js +1 -2
  214. package/dist/es/action-button/index.js +37 -38
  215. package/dist/es/action-button/use-action-button.js +41 -45
  216. package/dist/es/action-group/index.js +10 -14
  217. package/dist/es/action-group/use-action-group.js +9 -13
  218. package/dist/es/action-group/use-computed-action-buttons.js +34 -25
  219. package/dist/es/affix/index.js +3 -4
  220. package/dist/es/alert/index.js +3 -4
  221. package/dist/es/anchor/index.js +3 -4
  222. package/dist/es/auto-complete/index.js +3 -4
  223. package/dist/es/avatar/index.js +3 -4
  224. package/dist/es/badge/index.js +3 -4
  225. package/dist/es/bool/index.js +68 -49
  226. package/dist/es/breadcrumb/index.js +2 -4
  227. package/dist/es/button/index.js +3 -4
  228. package/dist/es/calendar/index.js +2 -3
  229. package/dist/es/card/index.js +3 -4
  230. package/dist/es/carousel/index.js +3 -5
  231. package/dist/es/cascader/index.js +2 -3
  232. package/dist/es/center/index.js +15 -14
  233. package/dist/es/charts/chart.js +20 -19
  234. package/dist/es/charts/helpers/group.js +9 -9
  235. package/dist/es/charts/helpers/index.js +2 -5
  236. package/dist/es/charts/hooks/index.js +2 -4
  237. package/dist/es/charts/hooks/use-chart.js +107 -109
  238. package/dist/es/charts/index.js +4 -6
  239. package/dist/es/charts/themes/index.js +5 -10
  240. package/dist/es/charts/themes/walden-dark.js +294 -393
  241. package/dist/es/charts/themes/walden.js +277 -358
  242. package/dist/es/charts/themes/wonderland-dark.js +298 -393
  243. package/dist/es/charts/themes/wonderland.js +281 -358
  244. package/dist/es/checkbox/index.js +3 -4
  245. package/dist/es/code-highlighter/index.js +39 -36
  246. package/dist/es/col/index.js +2 -3
  247. package/dist/es/collapse/index.js +3 -4
  248. package/dist/es/color-picker/index.js +2 -3
  249. package/dist/es/compact/index.js +6 -7
  250. package/dist/es/config-provider/app.js +17 -23
  251. package/dist/es/config-provider/constants.js +26 -0
  252. package/dist/es/config-provider/context-holder.js +20 -23
  253. package/dist/es/config-provider/css-vars.js +67 -0
  254. package/dist/es/config-provider/dark-mode-context.js +8 -8
  255. package/dist/es/config-provider/error-fallback.js +48 -13
  256. package/dist/es/config-provider/global-style.js +9 -9
  257. package/dist/es/config-provider/index.js +68 -52
  258. package/dist/es/config-provider/theme-config.js +98 -0
  259. package/dist/es/config-provider/use-config-provider.js +28 -168
  260. package/dist/es/date-picker/index.js +3 -5
  261. package/dist/es/descriptions/index.js +2 -3
  262. package/dist/es/divider/index.js +3 -4
  263. package/dist/es/drawer/index.js +3 -4
  264. package/dist/es/dropdown/index.js +3 -4
  265. package/dist/es/dynamic-icon/index.js +44 -24
  266. package/dist/es/dynamic-icon/placeholder-icon.js +22 -11
  267. package/dist/es/dynamic-icon/unknown-icon.js +57 -13
  268. package/dist/es/empty/empty.js +10 -9
  269. package/dist/es/empty/index.js +2 -4
  270. package/dist/es/flex/index.js +3 -4
  271. package/dist/es/flip-text/index.js +48 -52
  272. package/dist/es/float-button/index.js +3 -4
  273. package/dist/es/form/components/form.js +37 -30
  274. package/dist/es/form/components/index.js +10 -9
  275. package/dist/es/form/components/reset-button.js +24 -20
  276. package/dist/es/form/components/submit-button.js +25 -23
  277. package/dist/es/form/contexts/form-context.js +6 -13
  278. package/dist/es/form/contexts/form-layout.js +13 -16
  279. package/dist/es/form/contexts/index.js +3 -11
  280. package/dist/es/form/fields/auto-complete/index.js +23 -30
  281. package/dist/es/form/fields/bool/index.js +18 -23
  282. package/dist/es/form/fields/cascader/index.js +20 -26
  283. package/dist/es/form/fields/checkbox/index.js +29 -39
  284. package/dist/es/form/fields/color-picker/index.js +18 -24
  285. package/dist/es/form/fields/date-picker/index.js +20 -26
  286. package/dist/es/form/fields/date-range-picker/index.js +20 -26
  287. package/dist/es/form/fields/index.js +46 -45
  288. package/dist/es/form/fields/input/index.js +23 -30
  289. package/dist/es/form/fields/input-number/index.js +21 -27
  290. package/dist/es/form/fields/mentions/index.js +21 -27
  291. package/dist/es/form/fields/password/index.js +23 -30
  292. package/dist/es/form/fields/radio/index.js +21 -27
  293. package/dist/es/form/fields/rate/index.js +19 -25
  294. package/dist/es/form/fields/select/index.js +19 -25
  295. package/dist/es/form/fields/slider/index.js +18 -24
  296. package/dist/es/form/fields/textarea/index.js +23 -30
  297. package/dist/es/form/fields/time-picker/index.js +20 -26
  298. package/dist/es/form/fields/time-range-picker/index.js +20 -26
  299. package/dist/es/form/fields/transfer/index.js +20 -26
  300. package/dist/es/form/fields/tree-select/index.js +18 -24
  301. package/dist/es/form/fields/upload/index.js +36 -45
  302. package/dist/es/form/form.js +14 -24
  303. package/dist/es/form/helpers/index.js +2 -4
  304. package/dist/es/form/helpers/with-form-item.js +32 -41
  305. package/dist/es/form/hooks/use-form-item-props.js +20 -35
  306. package/dist/es/form/hooks/use-label-width.js +11 -11
  307. package/dist/es/form/index.js +3 -8
  308. package/dist/es/form/use-form.js +14 -18
  309. package/dist/es/grid/context.js +10 -11
  310. package/dist/es/grid/grid-item.js +27 -33
  311. package/dist/es/grid/hooks/index.js +7 -15
  312. package/dist/es/grid/hooks/use-container-breakpoints.js +15 -14
  313. package/dist/es/grid/hooks/use-container-width.js +25 -27
  314. package/dist/es/grid/hooks/use-grid-collapsed.js +11 -13
  315. package/dist/es/grid/hooks/use-normalized-gap.js +24 -33
  316. package/dist/es/grid/hooks/use-responsive-breakpoint.js +10 -11
  317. package/dist/es/grid/hooks/use-responsive-value.js +18 -26
  318. package/dist/es/grid/index.js +95 -97
  319. package/dist/es/grid/styles.js +19 -20
  320. package/dist/es/group/index.js +15 -15
  321. package/dist/es/icon/index.js +28 -20
  322. package/dist/es/icon-button/index.js +30 -34
  323. package/dist/es/image/index.js +3 -4
  324. package/dist/es/index.js +109 -254
  325. package/dist/es/input/index.js +3 -4
  326. package/dist/es/input-number/index.js +3 -4
  327. package/dist/es/keyboard/index.js +38 -40
  328. package/dist/es/list/index.js +3 -4
  329. package/dist/es/loader/index.js +29 -35
  330. package/dist/es/mentions/index.js +3 -4
  331. package/dist/es/menu/index.js +3 -5
  332. package/dist/es/modal/index.js +3 -4
  333. package/dist/es/operation-button/index.js +26 -24
  334. package/dist/es/pagination/index.js +3 -4
  335. package/dist/es/permission-gate/index.js +9 -13
  336. package/dist/es/popconfirm/index.js +3 -4
  337. package/dist/es/popover/index.js +2 -3
  338. package/dist/es/progress/index.js +2 -3
  339. package/dist/es/qrcode/index.js +3 -4
  340. package/dist/es/radio/index.js +3 -4
  341. package/dist/es/rate/index.js +3 -4
  342. package/dist/es/result/index.js +3 -4
  343. package/dist/es/row/index.js +2 -3
  344. package/dist/es/scroll-area/index.js +56 -52
  345. package/dist/es/scroll-area/styles.js +30 -32
  346. package/dist/es/segmented/index.js +3 -4
  347. package/dist/es/select/hooks/index.js +2 -4
  348. package/dist/es/select/hooks/use-data-options-select.js +45 -55
  349. package/dist/es/select/index.js +4 -5
  350. package/dist/es/skeleton/index.js +3 -4
  351. package/dist/es/slider/index.js +3 -4
  352. package/dist/es/space/index.js +2 -4
  353. package/dist/es/space/space.js +12 -11
  354. package/dist/es/sparkles-text/index.js +47 -51
  355. package/dist/es/sparkles-text/sparkle.js +52 -34
  356. package/dist/es/spin/index.js +3 -4
  357. package/dist/es/split-text/index.js +148 -161
  358. package/dist/es/splitter/index.js +2 -3
  359. package/dist/es/stack/index.js +14 -14
  360. package/dist/es/statistic/index.js +3 -4
  361. package/dist/es/steps/index.js +3 -4
  362. package/dist/es/switch/index.js +3 -4
  363. package/dist/es/table/index.js +46 -47
  364. package/dist/es/table/use-pagination-props.js +48 -43
  365. package/dist/es/tabs/index.js +3 -4
  366. package/dist/es/tag/index.js +3 -4
  367. package/dist/es/time-picker/index.js +3 -4
  368. package/dist/es/timeline/index.js +3 -4
  369. package/dist/es/tooltip/index.js +3 -4
  370. package/dist/es/tour/index.js +2 -3
  371. package/dist/es/transfer/index.js +3 -4
  372. package/dist/es/tree/hooks/index.js +2 -4
  373. package/dist/es/tree/hooks/use-data-options-tree.js +38 -54
  374. package/dist/es/tree/index.js +4 -5
  375. package/dist/es/tree-select/hooks/index.js +2 -4
  376. package/dist/es/tree-select/hooks/use-data-options-tree-select.js +47 -51
  377. package/dist/es/tree-select/index.js +4 -5
  378. package/dist/es/typing-animation/index.js +45 -43
  379. package/dist/es/typography/index.js +6 -17
  380. package/dist/es/upload/index.js +59 -51
  381. package/dist/es/watermark/index.js +2 -3
  382. package/dist/types/_base/constants/common.d.ts +3 -32
  383. package/dist/types/_base/constants/css-vars.d.ts +673 -673
  384. package/dist/types/_base/constants/index.d.ts +1 -0
  385. package/dist/types/_base/constants/theme.d.ts +5 -6
  386. package/dist/types/_base/helpers/breakpoints.d.ts +1 -4
  387. package/dist/types/_base/helpers/color.d.ts +0 -12
  388. package/dist/types/_base/helpers/common.d.ts +2 -24
  389. package/dist/types/_base/helpers/message.d.ts +4 -31
  390. package/dist/types/_base/helpers/modal.d.ts +10 -87
  391. package/dist/types/_base/helpers/notification.d.ts +6 -63
  392. package/dist/types/_base/helpers/props.d.ts +3 -16
  393. package/dist/types/_base/helpers/react.d.ts +0 -6
  394. package/dist/types/_base/hooks/use-theme-tokens.d.ts +0 -5
  395. package/dist/types/_base/index.d.ts +0 -1
  396. package/dist/types/_base/styles/common.d.ts +2 -1
  397. package/dist/types/_base/types/common.d.ts +8 -71
  398. package/dist/types/action-button/use-action-button.d.ts +5 -2
  399. package/dist/types/action-group/use-action-group.d.ts +2 -1
  400. package/dist/types/action-group/use-computed-action-buttons.d.ts +3 -1
  401. package/dist/types/charts/chart.d.ts +3 -16
  402. package/dist/types/charts/helpers/group.d.ts +0 -8
  403. package/dist/types/charts/hooks/use-chart.d.ts +0 -27
  404. package/dist/types/config-provider/app.d.ts +5 -4
  405. package/dist/types/config-provider/constants.d.ts +22 -0
  406. package/dist/types/config-provider/context-holder.d.ts +6 -5
  407. package/dist/types/config-provider/css-vars.d.ts +6 -0
  408. package/dist/types/config-provider/error-fallback.d.ts +2 -1
  409. package/dist/types/config-provider/index.d.ts +3 -2
  410. package/dist/types/config-provider/theme-config.d.ts +7 -0
  411. package/dist/types/config-provider/use-config-provider.d.ts +8 -5
  412. package/dist/types/dynamic-icon/index.d.ts +1 -1
  413. package/dist/types/form/components/form.d.ts +0 -3
  414. package/dist/types/form/fields/auto-complete/props.d.ts +1 -0
  415. package/dist/types/form/fields/input/props.d.ts +1 -0
  416. package/dist/types/form/fields/password/props.d.ts +1 -0
  417. package/dist/types/form/fields/textarea/props.d.ts +1 -0
  418. package/dist/types/form/form.d.ts +3 -1
  419. package/dist/types/form/helpers/with-form-item.d.ts +1 -1
  420. package/dist/types/form/hooks/use-label-width.d.ts +3 -5
  421. package/dist/types/form/types.d.ts +4 -4
  422. package/dist/types/select/hooks/use-data-options-select.d.ts +1 -0
  423. package/dist/types/split-text/index.d.ts +2 -2
  424. package/dist/types/split-text/props.d.ts +10 -0
  425. package/dist/types/src/_base/constants/breakpoints.d.ts +9 -0
  426. package/dist/types/src/_base/constants/common.d.ts +10 -0
  427. package/dist/types/src/_base/constants/css-vars.d.ts +673 -0
  428. package/dist/types/src/_base/constants/index.d.ts +4 -0
  429. package/dist/types/src/_base/constants/theme.d.ts +8 -0
  430. package/dist/types/src/_base/helpers/breakpoints.d.ts +7 -0
  431. package/dist/types/src/_base/helpers/color.d.ts +3 -0
  432. package/dist/types/src/_base/helpers/common.d.ts +8 -0
  433. package/dist/types/src/_base/helpers/index.d.ts +8 -0
  434. package/dist/types/src/_base/helpers/message.d.ts +11 -0
  435. package/dist/types/src/_base/helpers/modal.d.ts +31 -0
  436. package/dist/types/src/_base/helpers/notification.d.ts +17 -0
  437. package/dist/types/src/_base/helpers/props.d.ts +5 -0
  438. package/dist/types/src/_base/helpers/react.d.ts +2 -0
  439. package/dist/types/src/_base/hooks/index.d.ts +1 -0
  440. package/dist/types/src/_base/hooks/use-theme-tokens.d.ts +2 -0
  441. package/dist/types/src/_base/index.d.ts +5 -0
  442. package/dist/types/src/_base/styles/common.d.ts +4 -0
  443. package/dist/types/src/_base/styles/index.d.ts +1 -0
  444. package/dist/types/src/_base/types/breakpoints.d.ts +2 -0
  445. package/dist/types/src/_base/types/common.d.ts +41 -0
  446. package/dist/types/src/_base/types/index.d.ts +2 -0
  447. package/dist/types/src/action-button/index.d.ts +3 -0
  448. package/dist/types/src/action-button/props.d.ts +39 -0
  449. package/dist/types/src/action-button/use-action-button.d.ts +12 -0
  450. package/dist/types/src/action-group/index.d.ts +7 -0
  451. package/dist/types/src/action-group/props.d.ts +18 -0
  452. package/dist/types/src/action-group/use-action-group.d.ts +8 -0
  453. package/dist/types/src/action-group/use-computed-action-buttons.d.ts +12 -0
  454. package/dist/types/src/affix/index.d.ts +2 -0
  455. package/dist/types/src/alert/index.d.ts +2 -0
  456. package/dist/types/src/anchor/index.d.ts +4 -0
  457. package/dist/types/src/auto-complete/index.d.ts +4 -0
  458. package/dist/types/src/avatar/index.d.ts +3 -0
  459. package/dist/types/src/badge/index.d.ts +4 -0
  460. package/dist/types/src/bool/index.d.ts +4 -0
  461. package/dist/types/src/bool/props.d.ts +67 -0
  462. package/dist/types/src/breadcrumb/index.d.ts +5 -0
  463. package/dist/types/src/button/index.d.ts +3 -0
  464. package/dist/types/src/calendar/index.d.ts +2 -0
  465. package/dist/types/src/card/index.d.ts +3 -0
  466. package/dist/types/src/carousel/index.d.ts +3 -0
  467. package/dist/types/src/cascader/index.d.ts +3 -0
  468. package/dist/types/src/center/index.d.ts +4 -0
  469. package/dist/types/src/center/props.d.ts +13 -0
  470. package/dist/types/src/charts/chart.d.ts +11 -0
  471. package/dist/types/src/charts/helpers/group.d.ts +2 -0
  472. package/dist/types/src/charts/helpers/index.d.ts +1 -0
  473. package/dist/types/src/charts/hooks/index.d.ts +2 -0
  474. package/dist/types/src/charts/hooks/use-chart.d.ts +15 -0
  475. package/dist/types/src/charts/index.d.ts +4 -0
  476. package/dist/types/src/charts/themes/index.d.ts +4 -0
  477. package/dist/types/src/charts/themes/walden-dark.d.ts +1 -0
  478. package/dist/types/src/charts/themes/walden.d.ts +1 -0
  479. package/dist/types/src/charts/themes/wonderland-dark.d.ts +1 -0
  480. package/dist/types/src/charts/themes/wonderland.d.ts +1 -0
  481. package/dist/types/src/checkbox/index.d.ts +5 -0
  482. package/dist/types/src/code-highlighter/index.d.ts +3 -0
  483. package/dist/types/src/code-highlighter/props.d.ts +58 -0
  484. package/dist/types/src/col/index.d.ts +2 -0
  485. package/dist/types/src/collapse/index.d.ts +5 -0
  486. package/dist/types/src/color-picker/index.d.ts +2 -0
  487. package/dist/types/src/compact/index.d.ts +5 -0
  488. package/dist/types/src/config-provider/app.d.ts +9 -0
  489. package/dist/types/src/config-provider/constants.d.ts +22 -0
  490. package/dist/types/src/config-provider/context-holder.d.ts +6 -0
  491. package/dist/types/src/config-provider/css-vars.d.ts +6 -0
  492. package/dist/types/src/config-provider/dark-mode-context.d.ts +3 -0
  493. package/dist/types/src/config-provider/error-fallback.d.ts +3 -0
  494. package/dist/types/src/config-provider/global-style.d.ts +2 -0
  495. package/dist/types/src/config-provider/index.d.ts +5 -0
  496. package/dist/types/src/config-provider/props.d.ts +34 -0
  497. package/dist/types/src/config-provider/theme-config.d.ts +7 -0
  498. package/dist/types/src/config-provider/use-config-provider.d.ts +10 -0
  499. package/dist/types/src/date-picker/index.d.ts +5 -0
  500. package/dist/types/src/descriptions/index.d.ts +4 -0
  501. package/dist/types/src/divider/index.d.ts +2 -0
  502. package/dist/types/src/drawer/index.d.ts +2 -0
  503. package/dist/types/src/dropdown/index.d.ts +5 -0
  504. package/dist/types/src/dynamic-icon/index.d.ts +7 -0
  505. package/dist/types/src/dynamic-icon/placeholder-icon.d.ts +2 -0
  506. package/dist/types/src/dynamic-icon/props.d.ts +13 -0
  507. package/dist/types/src/dynamic-icon/unknown-icon.d.ts +2 -0
  508. package/dist/types/src/empty/empty.d.ts +2 -0
  509. package/dist/types/src/empty/index.d.ts +2 -0
  510. package/dist/types/src/flex/index.d.ts +14 -0
  511. package/dist/types/src/flip-text/index.d.ts +3 -0
  512. package/dist/types/src/flip-text/props.d.ts +32 -0
  513. package/dist/types/src/float-button/index.d.ts +2 -0
  514. package/dist/types/src/form/components/form.d.ts +10 -0
  515. package/dist/types/src/form/components/index.d.ts +11 -0
  516. package/dist/types/src/form/components/reset-button.d.ts +6 -0
  517. package/dist/types/src/form/components/submit-button.d.ts +6 -0
  518. package/dist/types/src/form/contexts/form-context.d.ts +4 -0
  519. package/dist/types/src/form/contexts/form-layout.d.ts +7 -0
  520. package/dist/types/src/form/contexts/index.d.ts +3 -0
  521. package/dist/types/src/form/fields/auto-complete/index.d.ts +5 -0
  522. package/dist/types/src/form/fields/auto-complete/props.d.ts +10 -0
  523. package/dist/types/src/form/fields/bool/index.d.ts +5 -0
  524. package/dist/types/src/form/fields/bool/props.d.ts +4 -0
  525. package/dist/types/src/form/fields/cascader/index.d.ts +5 -0
  526. package/dist/types/src/form/fields/cascader/props.d.ts +4 -0
  527. package/dist/types/src/form/fields/checkbox/index.d.ts +6 -0
  528. package/dist/types/src/form/fields/checkbox/props.d.ts +6 -0
  529. package/dist/types/src/form/fields/color-picker/index.d.ts +5 -0
  530. package/dist/types/src/form/fields/color-picker/props.d.ts +4 -0
  531. package/dist/types/src/form/fields/date-picker/index.d.ts +5 -0
  532. package/dist/types/src/form/fields/date-picker/props.d.ts +4 -0
  533. package/dist/types/src/form/fields/date-range-picker/index.d.ts +5 -0
  534. package/dist/types/src/form/fields/date-range-picker/props.d.ts +4 -0
  535. package/dist/types/src/form/fields/index.d.ts +68 -0
  536. package/dist/types/src/form/fields/input/index.d.ts +5 -0
  537. package/dist/types/src/form/fields/input/props.d.ts +10 -0
  538. package/dist/types/src/form/fields/input-number/index.d.ts +5 -0
  539. package/dist/types/src/form/fields/input-number/props.d.ts +4 -0
  540. package/dist/types/src/form/fields/mentions/index.d.ts +5 -0
  541. package/dist/types/src/form/fields/mentions/props.d.ts +4 -0
  542. package/dist/types/src/form/fields/password/index.d.ts +5 -0
  543. package/dist/types/src/form/fields/password/props.d.ts +10 -0
  544. package/dist/types/src/form/fields/radio/index.d.ts +5 -0
  545. package/dist/types/src/form/fields/radio/props.d.ts +4 -0
  546. package/dist/types/src/form/fields/rate/index.d.ts +5 -0
  547. package/dist/types/src/form/fields/rate/props.d.ts +4 -0
  548. package/dist/types/src/form/fields/select/index.d.ts +6 -0
  549. package/dist/types/src/form/fields/select/props.d.ts +5 -0
  550. package/dist/types/src/form/fields/slider/index.d.ts +5 -0
  551. package/dist/types/src/form/fields/slider/props.d.ts +4 -0
  552. package/dist/types/src/form/fields/textarea/index.d.ts +5 -0
  553. package/dist/types/src/form/fields/textarea/props.d.ts +10 -0
  554. package/dist/types/src/form/fields/time-picker/index.d.ts +5 -0
  555. package/dist/types/src/form/fields/time-picker/props.d.ts +4 -0
  556. package/dist/types/src/form/fields/time-range-picker/index.d.ts +5 -0
  557. package/dist/types/src/form/fields/time-range-picker/props.d.ts +4 -0
  558. package/dist/types/src/form/fields/transfer/index.d.ts +5 -0
  559. package/dist/types/src/form/fields/transfer/props.d.ts +4 -0
  560. package/dist/types/src/form/fields/tree-select/index.d.ts +6 -0
  561. package/dist/types/src/form/fields/tree-select/props.d.ts +5 -0
  562. package/dist/types/src/form/fields/upload/index.d.ts +5 -0
  563. package/dist/types/src/form/fields/upload/props.d.ts +4 -0
  564. package/dist/types/src/form/form.d.ts +183 -0
  565. package/dist/types/src/form/helpers/index.d.ts +1 -0
  566. package/dist/types/src/form/helpers/with-form-item.d.ts +3 -0
  567. package/dist/types/src/form/hooks/use-form-item-props.d.ts +15 -0
  568. package/dist/types/src/form/hooks/use-label-width.d.ts +7 -0
  569. package/dist/types/src/form/index.d.ts +5 -0
  570. package/dist/types/src/form/types.d.ts +17 -0
  571. package/dist/types/src/form/use-form.d.ts +38 -0
  572. package/dist/types/src/grid/context.d.ts +15 -0
  573. package/dist/types/src/grid/grid-item.d.ts +5 -0
  574. package/dist/types/src/grid/hooks/index.d.ts +6 -0
  575. package/dist/types/src/grid/hooks/use-container-breakpoints.d.ts +1 -0
  576. package/dist/types/src/grid/hooks/use-container-width.d.ts +5 -0
  577. package/dist/types/src/grid/hooks/use-grid-collapsed.d.ts +4 -0
  578. package/dist/types/src/grid/hooks/use-normalized-gap.d.ts +3 -0
  579. package/dist/types/src/grid/hooks/use-responsive-breakpoint.d.ts +2 -0
  580. package/dist/types/src/grid/hooks/use-responsive-value.d.ts +4 -0
  581. package/dist/types/src/grid/index.d.ts +8 -0
  582. package/dist/types/src/grid/props.d.ts +85 -0
  583. package/dist/types/src/grid/styles.d.ts +4 -0
  584. package/dist/types/src/group/index.d.ts +4 -0
  585. package/dist/types/src/group/props.d.ts +13 -0
  586. package/dist/types/src/icon/index.d.ts +3 -0
  587. package/dist/types/src/icon/props.d.ts +20 -0
  588. package/dist/types/src/icon-button/index.d.ts +3 -0
  589. package/dist/types/src/icon-button/props.d.ts +22 -0
  590. package/dist/types/src/image/index.d.ts +2 -0
  591. package/dist/types/src/index.d.ts +90 -0
  592. package/dist/types/src/input/index.d.ts +4 -0
  593. package/dist/types/src/input-number/index.d.ts +2 -0
  594. package/dist/types/src/keyboard/index.d.ts +3 -0
  595. package/dist/types/src/keyboard/props.d.ts +13 -0
  596. package/dist/types/src/list/index.d.ts +3 -0
  597. package/dist/types/src/loader/index.d.ts +3 -0
  598. package/dist/types/src/loader/props.d.ts +20 -0
  599. package/dist/types/src/mentions/index.d.ts +4 -0
  600. package/dist/types/src/menu/index.d.ts +5 -0
  601. package/dist/types/src/modal/index.d.ts +2 -0
  602. package/dist/types/src/operation-button/index.d.ts +3 -0
  603. package/dist/types/src/operation-button/props.d.ts +10 -0
  604. package/dist/types/src/pagination/index.d.ts +2 -0
  605. package/dist/types/src/permission-gate/index.d.ts +4 -0
  606. package/dist/types/src/permission-gate/props.d.ts +26 -0
  607. package/dist/types/src/popconfirm/index.d.ts +2 -0
  608. package/dist/types/src/popover/index.d.ts +2 -0
  609. package/dist/types/src/progress/index.d.ts +2 -0
  610. package/dist/types/src/qrcode/index.d.ts +2 -0
  611. package/dist/types/src/radio/index.d.ts +4 -0
  612. package/dist/types/src/rate/index.d.ts +2 -0
  613. package/dist/types/src/result/index.d.ts +2 -0
  614. package/dist/types/src/row/index.d.ts +2 -0
  615. package/dist/types/src/scroll-area/index.d.ts +3 -0
  616. package/dist/types/src/scroll-area/props.d.ts +49 -0
  617. package/dist/types/src/scroll-area/styles.d.ts +5 -0
  618. package/dist/types/src/segmented/index.d.ts +5 -0
  619. package/dist/types/src/select/hooks/index.d.ts +1 -0
  620. package/dist/types/src/select/hooks/use-data-options-select.d.ts +16 -0
  621. package/dist/types/src/select/index.d.ts +5 -0
  622. package/dist/types/src/skeleton/index.d.ts +8 -0
  623. package/dist/types/src/slider/index.d.ts +5 -0
  624. package/dist/types/src/space/index.d.ts +2 -0
  625. package/dist/types/src/space/props.d.ts +13 -0
  626. package/dist/types/src/space/space.d.ts +2 -0
  627. package/dist/types/src/sparkles-text/index.d.ts +3 -0
  628. package/dist/types/src/sparkles-text/props.d.ts +12 -0
  629. package/dist/types/src/sparkles-text/sparkle.d.ts +10 -0
  630. package/dist/types/src/spin/index.d.ts +2 -0
  631. package/dist/types/src/split-text/index.d.ts +4 -0
  632. package/dist/types/src/split-text/props.d.ts +78 -0
  633. package/dist/types/src/splitter/index.d.ts +2 -0
  634. package/dist/types/src/stack/index.d.ts +4 -0
  635. package/dist/types/src/stack/props.d.ts +13 -0
  636. package/dist/types/src/statistic/index.d.ts +2 -0
  637. package/dist/types/src/steps/index.d.ts +2 -0
  638. package/dist/types/src/switch/index.d.ts +2 -0
  639. package/dist/types/src/table/index.d.ts +7 -0
  640. package/dist/types/src/table/props.d.ts +13 -0
  641. package/dist/types/src/table/use-pagination-props.d.ts +9 -0
  642. package/dist/types/src/tabs/index.d.ts +4 -0
  643. package/dist/types/src/tag/index.d.ts +3 -0
  644. package/dist/types/src/time-picker/index.d.ts +2 -0
  645. package/dist/types/src/timeline/index.d.ts +4 -0
  646. package/dist/types/src/tooltip/index.d.ts +3 -0
  647. package/dist/types/src/tour/index.d.ts +4 -0
  648. package/dist/types/src/transfer/index.d.ts +3 -0
  649. package/dist/types/src/tree/hooks/index.d.ts +1 -0
  650. package/dist/types/src/tree/hooks/use-data-options-tree.d.ts +16 -0
  651. package/dist/types/src/tree/index.d.ts +5 -0
  652. package/dist/types/src/tree-select/hooks/index.d.ts +1 -0
  653. package/dist/types/src/tree-select/hooks/use-data-options-tree-select.d.ts +16 -0
  654. package/dist/types/src/tree-select/index.d.ts +3 -0
  655. package/dist/types/src/typing-animation/index.d.ts +3 -0
  656. package/dist/types/src/typing-animation/props.d.ts +25 -0
  657. package/dist/types/src/typography/index.d.ts +11 -0
  658. package/dist/types/src/upload/index.d.ts +4 -0
  659. package/dist/types/src/upload/props.d.ts +15 -0
  660. package/dist/types/src/watermark/index.d.ts +2 -0
  661. package/dist/types/table/props.d.ts +1 -0
  662. package/dist/types/tree-select/hooks/use-data-options-tree-select.d.ts +1 -0
  663. package/dist/types/upload/props.d.ts +1 -0
  664. package/dist/types/x-actions/index.d.ts +2 -0
  665. package/dist/types/x-attachments/index.d.ts +2 -0
  666. package/dist/types/x-bubble/index.d.ts +2 -0
  667. package/dist/types/x-code-highlighter/index.d.ts +3 -0
  668. package/dist/types/x-code-highlighter/props.d.ts +3 -0
  669. package/dist/types/x-conversations/index.d.ts +2 -0
  670. package/dist/types/x-file-card/index.d.ts +2 -0
  671. package/dist/types/x-markdown/components/code/index.d.ts +5 -0
  672. package/dist/types/x-markdown/components/index.d.ts +6 -0
  673. package/dist/types/x-markdown/components/think/index.d.ts +5 -0
  674. package/dist/types/x-markdown/extensions.d.ts +3 -0
  675. package/dist/types/x-markdown/index.d.ts +5 -0
  676. package/dist/types/x-markdown/props.d.ts +3 -0
  677. package/dist/types/x-mermaid/index.d.ts +3 -0
  678. package/dist/types/x-mermaid/props.d.ts +3 -0
  679. package/dist/types/x-notification/index.d.ts +2 -0
  680. package/dist/types/x-prompts/index.d.ts +2 -0
  681. package/dist/types/x-sender/index.d.ts +2 -0
  682. package/dist/types/x-sources/index.d.ts +2 -0
  683. package/dist/types/x-suggestion/index.d.ts +2 -0
  684. package/dist/types/x-think/index.d.ts +2 -0
  685. package/dist/types/x-thought-chain/index.d.ts +2 -0
  686. package/dist/types/x-welcome/index.d.ts +2 -0
  687. package/package.json +16 -15
  688. package/dist/cjs/action-button/props.cjs +0 -1
  689. package/dist/cjs/action-group/props.cjs +0 -1
  690. package/dist/cjs/center/props.cjs +0 -1
  691. package/dist/cjs/code-highlighter/props.cjs +0 -1
  692. package/dist/cjs/config-provider/props.cjs +0 -1
  693. package/dist/cjs/dynamic-icon/props.cjs +0 -1
  694. package/dist/cjs/flip-text/props.cjs +0 -1
  695. package/dist/cjs/form/fields/auto-complete/props.cjs +0 -1
  696. package/dist/cjs/form/fields/bool/props.cjs +0 -1
  697. package/dist/cjs/form/fields/cascader/props.cjs +0 -1
  698. package/dist/cjs/form/fields/checkbox/props.cjs +0 -1
  699. package/dist/cjs/form/fields/color-picker/props.cjs +0 -1
  700. package/dist/cjs/form/fields/date-picker/props.cjs +0 -1
  701. package/dist/cjs/form/fields/date-range-picker/props.cjs +0 -1
  702. package/dist/cjs/form/fields/input/props.cjs +0 -1
  703. package/dist/cjs/form/fields/input-number/props.cjs +0 -1
  704. package/dist/cjs/form/fields/mentions/props.cjs +0 -1
  705. package/dist/cjs/form/fields/password/props.cjs +0 -1
  706. package/dist/cjs/form/fields/radio/props.cjs +0 -1
  707. package/dist/cjs/form/fields/rate/props.cjs +0 -1
  708. package/dist/cjs/form/fields/select/props.cjs +0 -1
  709. package/dist/cjs/form/fields/slider/props.cjs +0 -1
  710. package/dist/cjs/form/fields/textarea/props.cjs +0 -1
  711. package/dist/cjs/form/fields/time-picker/props.cjs +0 -1
  712. package/dist/cjs/form/fields/time-range-picker/props.cjs +0 -1
  713. package/dist/cjs/form/fields/transfer/props.cjs +0 -1
  714. package/dist/cjs/form/fields/tree-select/props.cjs +0 -1
  715. package/dist/cjs/form/fields/upload/props.cjs +0 -1
  716. package/dist/cjs/grid/props.cjs +0 -1
  717. package/dist/cjs/group/props.cjs +0 -1
  718. package/dist/cjs/icon/props.cjs +0 -1
  719. package/dist/cjs/icon-button/props.cjs +0 -1
  720. package/dist/cjs/keyboard/props.cjs +0 -1
  721. package/dist/cjs/loader/props.cjs +0 -1
  722. package/dist/cjs/operation-button/props.cjs +0 -1
  723. package/dist/cjs/permission-gate/props.cjs +0 -1
  724. package/dist/cjs/scroll-area/props.cjs +0 -1
  725. package/dist/cjs/sparkles-text/props.cjs +0 -1
  726. package/dist/cjs/split-text/props.cjs +0 -1
  727. package/dist/cjs/stack/props.cjs +0 -1
  728. package/dist/cjs/table/props.cjs +0 -1
  729. package/dist/cjs/typing-animation/props.cjs +0 -1
  730. package/dist/cjs/upload/props.cjs +0 -1
  731. package/dist/es/action-button/props.js +0 -1
  732. package/dist/es/action-group/props.js +0 -1
  733. package/dist/es/center/props.js +0 -1
  734. package/dist/es/code-highlighter/props.js +0 -1
  735. package/dist/es/config-provider/props.js +0 -1
  736. package/dist/es/dynamic-icon/props.js +0 -1
  737. package/dist/es/flip-text/props.js +0 -1
  738. package/dist/es/form/fields/auto-complete/props.js +0 -1
  739. package/dist/es/form/fields/bool/props.js +0 -1
  740. package/dist/es/form/fields/cascader/props.js +0 -1
  741. package/dist/es/form/fields/checkbox/props.js +0 -1
  742. package/dist/es/form/fields/color-picker/props.js +0 -1
  743. package/dist/es/form/fields/date-picker/props.js +0 -1
  744. package/dist/es/form/fields/date-range-picker/props.js +0 -1
  745. package/dist/es/form/fields/input/props.js +0 -1
  746. package/dist/es/form/fields/input-number/props.js +0 -1
  747. package/dist/es/form/fields/mentions/props.js +0 -1
  748. package/dist/es/form/fields/password/props.js +0 -1
  749. package/dist/es/form/fields/radio/props.js +0 -1
  750. package/dist/es/form/fields/rate/props.js +0 -1
  751. package/dist/es/form/fields/select/props.js +0 -1
  752. package/dist/es/form/fields/slider/props.js +0 -1
  753. package/dist/es/form/fields/textarea/props.js +0 -1
  754. package/dist/es/form/fields/time-picker/props.js +0 -1
  755. package/dist/es/form/fields/time-range-picker/props.js +0 -1
  756. package/dist/es/form/fields/transfer/props.js +0 -1
  757. package/dist/es/form/fields/tree-select/props.js +0 -1
  758. package/dist/es/form/fields/upload/props.js +0 -1
  759. package/dist/es/grid/props.js +0 -1
  760. package/dist/es/group/props.js +0 -1
  761. package/dist/es/icon/props.js +0 -1
  762. package/dist/es/icon-button/props.js +0 -1
  763. package/dist/es/keyboard/props.js +0 -1
  764. package/dist/es/loader/props.js +0 -1
  765. package/dist/es/operation-button/props.js +0 -1
  766. package/dist/es/permission-gate/props.js +0 -1
  767. package/dist/es/scroll-area/props.js +0 -1
  768. package/dist/es/sparkles-text/props.js +0 -1
  769. package/dist/es/split-text/props.js +0 -1
  770. package/dist/es/stack/props.js +0 -1
  771. package/dist/es/table/props.js +0 -1
  772. package/dist/es/typing-animation/props.js +0 -1
  773. package/dist/es/upload/props.js +0 -1
@@ -1,3 +1,4 @@
1
1
  export * from './breakpoints';
2
2
  export * from './common';
3
3
  export * from './css-vars';
4
+ export * from './theme';
@@ -1,9 +1,8 @@
1
+ export interface ThemeColorTokens {
2
+ colors: Record<string, string | number>;
3
+ }
1
4
  export interface GlobalThemeTokens {
2
- light: {
3
- colors: Record<string, string | number>;
4
- };
5
- dark: {
6
- colors: Record<string, string | number>;
7
- };
5
+ light: ThemeColorTokens;
6
+ dark: ThemeColorTokens;
8
7
  }
9
8
  export declare const globalThemeTokens: GlobalThemeTokens;
@@ -2,9 +2,6 @@ import { MaybeUndefined } from '@vef-framework/shared';
2
2
  import { Breakpoint, Length } from '../types';
3
3
  /**
4
4
  * Resolves a breakpoint value from a partial breakpoints config.
5
- *
6
- * @param breakpointValues - Partial config with breakpoint values
7
- * @param breakpoint - The current breakpoint to resolve
8
- * @returns The resolved value, or undefined if no value can be found
5
+ * Falls back to the nearest defined breakpoint value (smaller first, then larger).
9
6
  */
10
7
  export declare function resolveBreakpointValue(breakpointValues: Partial<Record<Breakpoint, Length>>, breakpoint: Breakpoint): MaybeUndefined<Length>;
@@ -1,15 +1,3 @@
1
1
  import { PresetColor, SemanticColor } from '../types';
2
- /**
3
- * Check if the given color is a preset color
4
- *
5
- * @param color - The color to check
6
- * @returns True if the color is a preset color, false otherwise
7
- */
8
2
  export declare function isPresetColor(color: string): color is PresetColor;
9
- /**
10
- * Check if the given color is a semantic color
11
- *
12
- * @param color - The color to check
13
- * @returns True if the color is a semantic color, false otherwise
14
- */
15
3
  export declare function isSemanticColor(color: string): color is SemanticColor;
@@ -1,30 +1,8 @@
1
1
  import { MaybeUndefined } from '@vef-framework/shared';
2
2
  import { Length, Size } from '../types';
3
- /**
4
- * Get the spacing value
5
- *
6
- * @param value - The spacing value
7
- * @returns The spacing value
8
- */
9
3
  export declare function getSpacingValue(value: Length): string;
10
4
  /**
11
- * Maps the VEF Framework Standard Size type to Ant Design size type.
12
- *
13
- * This function is necessary for compatibility with Ant Design components,
14
- * which use "middle" instead of "medium" for the medium size value.
15
- * This is not a standard naming convention - "medium" is more widely used
16
- * in the industry.
17
- *
18
- * NOTE: This function can be deprecated once Ant Design updates their
19
- * Size type to use standard naming conventions (i.e., "medium" instead of "middle").
20
- *
21
- * @param size - The VEF Framework size value
22
- * @returns The corresponding Ant Design size value
23
- *
24
- * @example
25
- * ```tsx
26
- * const antdSize = mapSize("medium"); // Returns "middle"
27
- * const antdSize = mapSize("small"); // Returns "small"
28
- * ```
5
+ * Maps VEF Framework size to Ant Design size.
6
+ * Ant Design uses "middle" instead of the standard "medium".
29
7
  */
30
8
  export declare function mapSize(size?: Size): MaybeUndefined<"small" | "middle" | "large">;
@@ -1,38 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
- /**
3
- * Show a success message
4
- *
5
- * @param content - The content of the message
6
- */
7
2
  export declare function showSuccessMessage(content: ReactNode): void;
8
- /**
9
- * Show an info message
10
- *
11
- * @param content - The content of the message
12
- */
13
3
  export declare function showInfoMessage(content: ReactNode): void;
14
- /**
15
- * Show a warning message
16
- *
17
- * @param content - The content of the message
18
- */
19
4
  export declare function showWarningMessage(content: ReactNode): void;
20
- /**
21
- * Show an error message
22
- *
23
- * @param content - The content of the message
24
- */
25
5
  export declare function showErrorMessage(content: ReactNode): void;
26
- /**
27
- * Show a loading message
28
- *
29
- * @param content - The content of the message
30
- */
31
- export declare function showLoadingMessage(content: ReactNode): {
6
+ export interface LoadingMessageHandle {
32
7
  close: () => void;
33
- update: (content: ReactNode) => undefined;
34
- };
35
- /**
36
- * Close all messages
37
- */
8
+ update: (content: ReactNode) => void;
9
+ }
10
+ export declare function showLoadingMessage(content: ReactNode): LoadingMessageHandle;
38
11
  export declare function closeAllMessages(): void;
@@ -2,107 +2,30 @@ import { Awaitable, Except } from '@vef-framework/shared';
2
2
  import { ButtonProps } from 'antd';
3
3
  import { ReactNode } from 'react';
4
4
  import { Length } from '../types';
5
- /**
6
- * The options for the confirm modal.
7
- */
8
5
  export interface ConfirmOptions {
9
- /**
10
- * The title of the confirm modal.
11
- */
12
6
  title?: ReactNode;
13
- /**
14
- * The text of the OK button.
15
- */
16
7
  okText?: ReactNode;
17
- /**
18
- * The text of the cancel button.
19
- */
20
8
  cancelText?: ReactNode;
21
- /**
22
- * The props of the OK button.
23
- */
24
9
  okButtonProps?: ButtonProps;
25
- /**
26
- * The props of the cancel button.
27
- */
28
10
  cancelButtonProps?: ButtonProps;
29
- /**
30
- * The width of the modal.
31
- */
32
11
  width?: Length;
33
- /**
34
- * Whether the modal is closable.
35
- */
36
12
  closable?: boolean;
37
- /**
38
- * The callback function when the OK button is clicked.
39
- */
40
13
  onOk?: () => Awaitable<void>;
41
- /**
42
- * The callback function when the cancel button is clicked.
43
- */
44
14
  onCancel?: () => Awaitable<void>;
45
- /**
46
- * The callback function after the confirm dialog is opened.
47
- */
48
15
  onAfterOpen?: () => void;
49
- /**
50
- * The callback function after the confirm dialog is closed.
51
- */
52
16
  onAfterClose?: () => void;
53
17
  }
54
- /**
55
- * The options for the alert modal.
56
- */
57
- export interface AlertOptions extends Except<ConfirmOptions, "cancelText" | "cancelButtonProps"> {
58
- }
59
- /**
60
- * Show a confirm modal.
61
- *
62
- * @param content - The content of the modal.
63
- * @param options - The options of the modal.
64
- */
65
- export declare function showConfirm(content: ReactNode, options?: ConfirmOptions): {
18
+ export type AlertOptions = Except<ConfirmOptions, "cancelText" | "cancelButtonProps">;
19
+ export interface ModalHandle {
66
20
  close: () => void;
67
21
  update: (content: ReactNode, options?: ConfirmOptions) => void;
68
- };
69
- /**
70
- * Show a success alert modal.
71
- *
72
- * @param content - The content of the modal.
73
- * @param options - The options of the modal.
74
- */
75
- export declare function showSuccessAlert(content: ReactNode, options?: AlertOptions): {
76
- close: () => void;
77
- update: (content: ReactNode, options?: AlertOptions) => void;
78
- };
79
- /**
80
- * Show an info alert modal.
81
- *
82
- * @param content - The content of the modal.
83
- * @param options - The options of the modal.
84
- */
85
- export declare function showInfoAlert(content: ReactNode, options?: AlertOptions): {
86
- close: () => void;
87
- update: (content: ReactNode, options?: AlertOptions) => void;
88
- };
89
- /**
90
- * Show a warning alert modal.
91
- *
92
- * @param content - The content of the modal.
93
- * @param options - The options of the modal.
94
- */
95
- export declare function showWarningAlert(content: ReactNode, options?: AlertOptions): {
96
- close: () => void;
97
- update: (content: ReactNode, options?: AlertOptions) => void;
98
- };
99
- /**
100
- * Show an error alert modal.
101
- *
102
- * @param content - The content of the modal.
103
- * @param options - The options of the modal.
104
- */
105
- export declare function showErrorAlert(content: ReactNode, options?: AlertOptions): {
22
+ }
23
+ export interface AlertHandle {
106
24
  close: () => void;
107
25
  update: (content: ReactNode, options?: AlertOptions) => void;
108
- };
26
+ }
27
+ export declare function showConfirm(content: ReactNode, options?: ConfirmOptions): ModalHandle;
28
+ export declare function showSuccessAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
29
+ export declare function showInfoAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
30
+ export declare function showWarningAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
31
+ export declare function showErrorAlert(content: ReactNode, options?: AlertOptions): AlertHandle;
@@ -1,74 +1,17 @@
1
1
  import { ReactNode } from 'react';
2
- /**
3
- * The options for the notification.
4
- */
5
2
  export interface NotificationOptions {
6
- /**
7
- * The title of the notification.
8
- */
9
3
  title?: ReactNode;
10
- /**
11
- * The duration of the notification.
12
- */
13
4
  duration?: number;
14
- /**
15
- * The actions of the notification.
16
- */
17
5
  actions?: ReactNode;
18
- /**
19
- * Whether the notification is closable.
20
- */
21
6
  closable?: boolean;
22
- /**
23
- * The icon of the notification.
24
- */
25
7
  icon?: ReactNode;
26
8
  }
27
- /**
28
- * Show a success notification
29
- *
30
- * @param content - The content of the notification
31
- * @param options - The options of the notification
32
- * @returns An object with close and update methods
33
- */
34
- export declare function showSuccessNotification(content: ReactNode, options?: NotificationOptions): {
9
+ export interface NotificationHandle {
35
10
  close: () => void;
36
11
  update: (content: ReactNode, options?: NotificationOptions) => void;
37
- };
38
- /**
39
- * Show an info notification
40
- *
41
- * @param content - The content of the notification
42
- * @param options - The options of the notification
43
- * @returns An object with close and update methods
44
- */
45
- export declare function showInfoNotification(content: ReactNode, options?: NotificationOptions): {
46
- close: () => void;
47
- update: (content: ReactNode, options?: NotificationOptions) => void;
48
- };
49
- /**
50
- * Show a warning notification
51
- *
52
- * @param content - The content of the notification
53
- * @param options - The options of the notification
54
- * @returns An object with close and update methods
55
- */
56
- export declare function showWarningNotification(content: ReactNode, options?: NotificationOptions): {
57
- close: () => void;
58
- update: (content: ReactNode, options?: NotificationOptions) => void;
59
- };
60
- /**
61
- * Show an error notification
62
- *
63
- * @param content - The content of the notification
64
- * @param options - The options of the notification
65
- * @returns An object with close and update methods
66
- */
67
- export declare function showErrorNotification(content: ReactNode, options?: NotificationOptions): {
68
- close: () => void;
69
- update: (content: ReactNode, options?: NotificationOptions) => void;
70
- };
71
- /**
72
- * Close all notifications
73
- */
12
+ }
13
+ export declare function showSuccessNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
14
+ export declare function showInfoNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
15
+ export declare function showWarningNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
16
+ export declare function showErrorNotification(content: ReactNode, options?: NotificationOptions): NotificationHandle;
74
17
  export declare function closeAllNotifications(): void;
@@ -1,18 +1,5 @@
1
- export type FilterProps<T extends Record<string, any>> = {
1
+ export type FilteredProps<T extends Record<string, unknown>> = {
2
2
  [K in keyof T]-?: T[K] extends undefined ? never : T[K];
3
3
  };
4
- /**
5
- * Filters out undefined props
6
- *
7
- * @param props The props to filter
8
- * @returns The filtered props
9
- */
10
- export declare function filterProps<T extends Record<string, any>>(props: T): FilterProps<T>;
11
- /**
12
- * Merges the props with the default props
13
- *
14
- * @param props The props to merge
15
- * @param defaultProps The default props
16
- * @returns The merged props
17
- */
18
- export declare function mergeProps<TProps extends Record<string, any>, TDefault extends TProps>(props: TProps, defaultProps: TDefault): TDefault & FilterProps<TProps>;
4
+ export declare function filterProps<T extends Record<string, unknown>>(props: T): FilteredProps<T>;
5
+ export declare function mergeProps<TProps extends Record<string, unknown>, TDefault extends TProps>(props: TProps, defaultProps: TDefault): TDefault & FilteredProps<TProps>;
@@ -1,8 +1,2 @@
1
1
  import { FragmentProps, ReactElement, ReactNode } from 'react';
2
- /**
3
- * Check if the node is a Fragment
4
- *
5
- * @param node The node to check
6
- * @returns Whether the node is a Fragment
7
- */
8
2
  export declare function isFragment(node: ReactNode): node is ReactElement<FragmentProps>;
@@ -1,7 +1,2 @@
1
1
  import { GlobalToken } from 'antd';
2
- /**
3
- * Use the theme tokens
4
- *
5
- * @returns The theme tokens
6
- */
7
2
  export declare function useThemeTokens(): GlobalToken;
@@ -2,5 +2,4 @@ export * from './constants';
2
2
  export * from './helpers';
3
3
  export * from './hooks';
4
4
  export * from './styles';
5
- export * from './styles';
6
5
  export * from './types';
@@ -1,3 +1,4 @@
1
- import { SerializedStyles } from '@emotion/serialize';
1
+ import { SerializedStyles } from '@emotion/react';
2
2
  export declare const fullWidth: SerializedStyles;
3
3
  export declare const fullHeight: SerializedStyles;
4
+ export declare const fullSize: SerializedStyles;
@@ -1,104 +1,41 @@
1
1
  import { PermissionCheckMode } from '@vef-framework/core';
2
- import { Awaitable, EmptyObject, Expand, If, IsNever, LiteralUnion } from '@vef-framework/shared';
2
+ import { AnyObject, Awaitable, EmptyObject, If, IsNever, LiteralUnion, Simplify } from '@vef-framework/shared';
3
3
  import { ReactNode, Ref } from 'react';
4
4
  import { ButtonColor, ButtonVariant } from '../../button';
5
- import { fullSizes, presetColors, semanticColors, semanticScenes, sizes } from '../constants';
6
- /**
7
- * The preset color
8
- */
5
+ import { colors, fullSizes, presetColors, semanticColors, semanticScenes, sizes } from '../constants';
9
6
  export type PresetColor = (typeof presetColors)[number];
10
- /**
11
- * The semantic scene
12
- */
13
7
  export type SemanticScene = (typeof semanticScenes)[number];
14
- /**
15
- * The semantic color
16
- */
17
8
  export type SemanticColor = (typeof semanticColors)[number];
18
- /**
19
- * The color
20
- */
21
- export type Color = Expand<PresetColor | SemanticColor>;
22
- export type Size = typeof sizes[number];
23
- export type FullSize = typeof fullSizes[number];
9
+ export type Color = Simplify<PresetColor | SemanticColor>;
10
+ export type Colors = typeof colors;
11
+ export type Size = (typeof sizes)[number];
12
+ export type FullSize = (typeof fullSizes)[number];
24
13
  export type Orientation = "horizontal" | "vertical";
25
14
  export type ActionConfirmMode = "popover" | "dialog";
26
- export type ActionButtonMaybeComputed<TContext, TValue> = If<IsNever<TContext>, TValue, TValue | ((context: TContext) => TValue)>;
27
15
  export type Length = string | number;
16
+ export type ActionButtonMaybeComputed<TContext, TValue> = If<IsNever<TContext>, TValue, TValue | ((context: TContext) => TValue)>;
28
17
  export type SizeableLength<TSize extends FullSize | Size> = LiteralUnion<TSize, Length>;
29
18
  export type { GetProp, GetProps, GetRef } from 'antd';
30
- export type PropsWithRef<TRef, TProps = EmptyObject> = TProps & {
19
+ export type PropsWithRef<TRef, TProps extends AnyObject = EmptyObject> = TProps & {
31
20
  ref?: Ref<TRef>;
32
21
  };
33
- /**
34
- * The position
35
- */
36
22
  export interface Position {
37
23
  x: number;
38
24
  y: number;
39
25
  }
40
- /**
41
- * The config for the action button.
42
- *
43
- * @template TContext - The context type of the action button.
44
- */
45
26
  export interface ActionButtonConfig<TContext = never> {
46
- /**
47
- * The key of the action button.
48
- */
49
27
  key: string;
50
- /**
51
- * The label of the action button.
52
- */
53
28
  label: string;
54
- /**
55
- * Whether the action button is disabled.
56
- */
57
29
  disabled?: ActionButtonMaybeComputed<TContext, boolean>;
58
- /**
59
- * Whether the action button is hidden.
60
- */
61
30
  hidden?: ActionButtonMaybeComputed<TContext, boolean>;
62
- /**
63
- * The color of the action button.
64
- */
65
31
  color?: ButtonColor;
66
- /**
67
- * The variant of the action button.
68
- */
69
32
  variant?: ButtonVariant;
70
- /**
71
- * The icon of the action button.
72
- */
73
33
  icon?: ReactNode;
74
- /**
75
- * The permission tokens of the action button.
76
- */
77
34
  permTokens?: string[];
78
- /**
79
- * The permission check mode of the action button.
80
- * Default is "any".
81
- */
82
35
  checkMode?: PermissionCheckMode;
83
- /**
84
- * Whether the action button is confirmable.
85
- */
86
36
  confirmable?: ActionButtonMaybeComputed<TContext, boolean>;
87
- /**
88
- * The confirm mode of the action button.
89
- * Default is "popover".
90
- */
91
37
  confirmMode?: ActionButtonMaybeComputed<TContext, ActionConfirmMode>;
92
- /**
93
- * The confirm title of the action button.
94
- */
95
38
  confirmTitle?: ActionButtonMaybeComputed<TContext, ReactNode>;
96
- /**
97
- * The confirm description of the action button.
98
- */
99
39
  confirmDescription?: ActionButtonMaybeComputed<TContext, ReactNode>;
100
- /**
101
- * The callback function when the action button is clicked.
102
- */
103
40
  onClick: (context: If<IsNever<TContext>, void, TContext>) => Awaitable<void>;
104
41
  }
@@ -2,8 +2,11 @@ import { Except, SetRequired } from '@vef-framework/shared';
2
2
  import { MouseEvent, MouseEventHandler } from 'react';
3
3
  import { ButtonProps } from '../button';
4
4
  import { ActionButtonProps } from './props';
5
- export declare function useActionButton({ confirmable, confirmMode, confirmTitle, confirmDescription, onClick }: SetRequired<Except<ActionButtonProps, keyof Except<ButtonProps, "loading" | "onClick">>, "confirmable" | "confirmMode" | "confirmTitle" | "confirmDescription">): {
5
+ type UseActionButtonOptions = SetRequired<Except<ActionButtonProps, keyof Except<ButtonProps, "loading" | "onClick">>, "confirmable" | "confirmMode" | "confirmTitle" | "confirmDescription">;
6
+ interface UseActionButtonReturn {
6
7
  loading: boolean;
7
8
  invokeClickAction: (event: MouseEvent<HTMLElement>, waitForActionDone?: boolean) => Promise<void>;
8
9
  handleClick: MouseEventHandler<HTMLElement>;
9
- };
10
+ }
11
+ export declare function useActionButton({ confirmable, confirmMode, confirmTitle, confirmDescription, onClick }: UseActionButtonOptions): UseActionButtonReturn;
12
+ export {};
@@ -1,7 +1,8 @@
1
1
  import { EmptyObject, If, IsNever } from '@vef-framework/shared';
2
2
  import { ActionGroupProps } from './props';
3
+ import { ReactNode } from 'react';
3
4
  export declare function useActionGroup<TContext>(props: ActionGroupProps<TContext> & If<IsNever<TContext>, EmptyObject, {
4
5
  context: TContext;
5
6
  }>): {
6
- buttonNodes: (import("@emotion/react/jsx-runtime").JSX.Element | null)[];
7
+ buttonNodes: ReactNode[];
7
8
  };
@@ -1,10 +1,12 @@
1
1
  import { SizeType } from 'antd/es/config-provider/SizeContext';
2
+ import { ReactNode } from 'react';
2
3
  import { ActionButtonConfig } from '../_base';
3
4
  /**
4
5
  * The hook to compute the action buttons.
5
6
  *
6
7
  * @param buttons - The action button configs.
8
+ * @param size - The button size.
7
9
  * @param context - The context.
8
10
  * @returns The computed action buttons.
9
11
  */
10
- export declare function useComputedActionButtons<TContext>(buttons: Array<ActionButtonConfig<TContext>>, size: SizeType, context: TContext): (import("@emotion/react/jsx-runtime").JSX.Element | null)[];
12
+ export declare function useComputedActionButtons<TContext>(buttons: Array<ActionButtonConfig<TContext>>, size: SizeType, context: TContext): ReactNode[];
@@ -1,24 +1,11 @@
1
1
  import { CSSProperties, MemoExoticComponent } from 'react';
2
2
  import { PropsWithRef } from '../_base';
3
3
  import { UseChartOptions } from './hooks';
4
- /**
5
- * The props for the Chart component.
6
- */
7
4
  export interface ChartProps extends UseChartOptions {
8
- /**
9
- * Additional CSS class name for the container
10
- */
11
5
  className?: string;
12
- /**
13
- * Inline styles for the container
14
- */
15
6
  style?: CSSProperties;
16
- /**
17
- * Whether to use deep memoization for option
18
- */
19
7
  deepMemo?: boolean;
20
8
  }
21
- /**
22
- * Chart component - a wrapper around ECharts (memoized)
23
- */
24
- export declare const Chart: MemoExoticComponent<({ className, style, ref, deepMemo: _, ...options }: PropsWithRef<HTMLDivElement, ChartProps>) => import("@emotion/react/jsx-runtime").JSX.Element>;
9
+ declare function ChartComponent({ className, style, ref, deepMemo: _deepMemo, ...options }: PropsWithRef<HTMLDivElement, ChartProps>): import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export declare const Chart: MemoExoticComponent<typeof ChartComponent>;
11
+ export {};
@@ -1,10 +1,2 @@
1
- /**
2
- *
3
- * @param groupId
4
- */
5
1
  export declare function connectCharts(groupId: string): void;
6
- /**
7
- *
8
- * @param groupId
9
- */
10
2
  export declare function disconnectCharts(groupId: string): void;
@@ -1,41 +1,14 @@
1
1
  import { AnyObject, Except } from '@vef-framework/shared';
2
2
  import { ECharts, EChartsInitOpts, EChartsOption, SetOptionOpts } from 'echarts';
3
3
  import { RefObject } from 'react';
4
- /**
5
- * Options for useChart hook
6
- */
7
4
  export interface UseChartOptions extends Except<EChartsInitOpts, "width" | "height">, SetOptionOpts {
8
- /**
9
- * ECharts option configuration
10
- */
11
5
  option: EChartsOption;
12
- /**
13
- * Theme name or object
14
- */
15
6
  theme?: "walden" | "wonderland" | AnyObject;
16
- /**
17
- * Loading state
18
- */
19
7
  loading?: boolean;
20
- /**
21
- * Container width
22
- */
23
8
  width?: number | "auto";
24
- /**
25
- * Container height
26
- */
27
9
  height?: number | "auto";
28
- /**
29
- * Group id for chart synchronization
30
- */
31
10
  group?: string;
32
- /**
33
- * Callback when chart is ready
34
- */
35
11
  onReady?: (chart: ECharts) => void;
36
- /**
37
- * Callback before chart is disposed
38
- */
39
12
  onBeforeDispose?: (chart: ECharts) => void;
40
13
  }
41
14
  export declare function useChart({ option, theme, loading, group, onReady, onBeforeDispose, notMerge, replaceMerge, lazyUpdate, silent, transition, renderer, devicePixelRatio, width, height, ssr, useCoarsePointer, useDirtyRect, pointerSize, locale }: UseChartOptions): RefObject<HTMLDivElement | null>;
@@ -1,8 +1,9 @@
1
- import { CSSProperties, PropsWithChildren } from 'react';
2
- interface AppProps extends PropsWithChildren {
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ interface AppProps {
3
3
  className?: string;
4
4
  style?: CSSProperties;
5
+ children?: ReactNode;
5
6
  }
6
- export declare const rootElementId = "root";
7
- export default function App({ className, style, children }: AppProps): import("@emotion/react/jsx-runtime").JSX.Element;
7
+ export declare const ROOT_ELEMENT_ID = "root";
8
+ export default function App({ className, style, children }: AppProps): ReactNode;
8
9
  export {};
@@ -0,0 +1,22 @@
1
+ export declare const mergedPresetColors: {
2
+ red: string;
3
+ orange: string;
4
+ yellow: string;
5
+ lime: string;
6
+ green: string;
7
+ cyan: string;
8
+ blue: string;
9
+ purple: string;
10
+ pink: string;
11
+ geekblue: string;
12
+ magenta: string;
13
+ volcano: string;
14
+ gold: string;
15
+ };
16
+ export declare const defaultColors: {
17
+ readonly primary: "blue";
18
+ readonly success: "green";
19
+ readonly info: "blue";
20
+ readonly warning: "orange";
21
+ readonly error: "red";
22
+ };
@@ -1,5 +1,6 @@
1
- import { NamedExoticComponent, ReactNode } from 'react';
2
- declare const ContextHolder: NamedExoticComponent<{
3
- children?: ReactNode | undefined;
4
- }>;
5
- export default ContextHolder;
1
+ import { ReactNode } from 'react';
2
+ interface ContextHolderProps {
3
+ children?: ReactNode;
4
+ }
5
+ export default function ContextHolder({ children }: ContextHolderProps): ReactNode;
6
+ export {};