@bioturing/components 0.31.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (507) hide show
  1. package/dist/components/badge/component.d.ts +7 -0
  2. package/dist/components/badge/component.d.ts.map +1 -0
  3. package/dist/components/badge/component.js.map +1 -1
  4. package/dist/components/badge/index.d.ts +2 -0
  5. package/dist/components/badge/index.d.ts.map +1 -0
  6. package/dist/components/breadcrumb/component.d.ts +6 -0
  7. package/dist/components/breadcrumb/component.d.ts.map +1 -0
  8. package/dist/components/breadcrumb/component.js.map +1 -1
  9. package/dist/components/breadcrumb/index.d.ts +3 -0
  10. package/dist/components/breadcrumb/index.d.ts.map +1 -0
  11. package/dist/components/breadcrumb/types.d.ts +19 -0
  12. package/dist/components/breadcrumb/types.d.ts.map +1 -0
  13. package/dist/components/breadcrumb/useItemRender.d.ts +7 -0
  14. package/dist/components/breadcrumb/useItemRender.d.ts.map +1 -0
  15. package/dist/components/breadcrumb/useItemRender.js.map +1 -1
  16. package/dist/components/button/component.d.ts +14 -0
  17. package/dist/components/button/component.d.ts.map +1 -0
  18. package/dist/components/button/component.js.map +1 -1
  19. package/dist/components/button/index.d.ts +2 -0
  20. package/dist/components/button/index.d.ts.map +1 -0
  21. package/dist/components/checkbox/component.d.ts +16 -0
  22. package/dist/components/checkbox/component.d.ts.map +1 -0
  23. package/dist/components/checkbox/component.js.map +1 -1
  24. package/dist/components/checkbox/index.d.ts +2 -0
  25. package/dist/components/checkbox/index.d.ts.map +1 -0
  26. package/dist/components/choice-list/component.d.ts +35 -0
  27. package/dist/components/choice-list/component.d.ts.map +1 -0
  28. package/dist/components/choice-list/component.js.map +1 -1
  29. package/dist/components/choice-list/index.d.ts +2 -0
  30. package/dist/components/choice-list/index.d.ts.map +1 -0
  31. package/dist/components/cmdk/command-score.d.ts +2 -0
  32. package/dist/components/cmdk/command-score.d.ts.map +1 -0
  33. package/dist/components/cmdk/command-score.js.map +1 -1
  34. package/dist/components/cmdk/index.d.ts +440 -0
  35. package/dist/components/cmdk/index.d.ts.map +1 -0
  36. package/dist/components/cmdk/index.js +332 -348
  37. package/dist/components/cmdk/index.js.map +1 -1
  38. package/dist/components/code-block/component.d.ts +3 -0
  39. package/dist/components/code-block/component.d.ts.map +1 -0
  40. package/dist/components/code-block/component.js +83 -84
  41. package/dist/components/code-block/component.js.map +1 -1
  42. package/dist/components/code-block/index.d.ts +3 -0
  43. package/dist/components/code-block/index.d.ts.map +1 -0
  44. package/dist/components/code-block/types.d.ts +64 -0
  45. package/dist/components/code-block/types.d.ts.map +1 -0
  46. package/dist/components/collapse/component.d.ts +14 -0
  47. package/dist/components/collapse/component.d.ts.map +1 -0
  48. package/dist/components/collapse/component.js.map +1 -1
  49. package/dist/components/collapse/index.d.ts +2 -0
  50. package/dist/components/collapse/index.d.ts.map +1 -0
  51. package/dist/components/color-select/component.d.ts +36 -0
  52. package/dist/components/color-select/component.d.ts.map +1 -0
  53. package/dist/components/color-select/component.js +28 -30
  54. package/dist/components/color-select/component.js.map +1 -1
  55. package/dist/components/color-select/index.d.ts +2 -0
  56. package/dist/components/color-select/index.d.ts.map +1 -0
  57. package/dist/components/combobox/component.d.ts +119 -0
  58. package/dist/components/combobox/component.d.ts.map +1 -0
  59. package/dist/components/combobox/component.js +166 -162
  60. package/dist/components/combobox/component.js.map +1 -1
  61. package/dist/components/combobox/index.d.ts +3 -0
  62. package/dist/components/combobox/index.d.ts.map +1 -0
  63. package/dist/components/command-palette/component.d.ts +41 -0
  64. package/dist/components/command-palette/component.d.ts.map +1 -0
  65. package/dist/components/command-palette/component.js +36 -36
  66. package/dist/components/command-palette/component.js.map +1 -1
  67. package/dist/components/command-palette/index.d.ts +2 -0
  68. package/dist/components/command-palette/index.d.ts.map +1 -0
  69. package/dist/components/command-palette/style.css +1 -1
  70. package/dist/components/drag-drop/context.d.ts +10 -0
  71. package/dist/components/drag-drop/context.d.ts.map +1 -0
  72. package/dist/components/drag-drop/context.js.map +1 -1
  73. package/dist/components/drag-drop/draggable.d.ts +6 -0
  74. package/dist/components/drag-drop/draggable.d.ts.map +1 -0
  75. package/dist/components/drag-drop/draggable.js.map +1 -1
  76. package/dist/components/drag-drop/droppable.d.ts +9 -0
  77. package/dist/components/drag-drop/droppable.d.ts.map +1 -0
  78. package/dist/components/drag-drop/droppable.js.map +1 -1
  79. package/dist/components/drag-drop/hooks.d.ts +42 -0
  80. package/dist/components/drag-drop/hooks.d.ts.map +1 -0
  81. package/dist/components/drag-drop/hooks.js +71 -73
  82. package/dist/components/drag-drop/hooks.js.map +1 -1
  83. package/dist/components/drag-drop/index.d.ts +26 -0
  84. package/dist/components/drag-drop/index.d.ts.map +1 -0
  85. package/dist/components/drag-drop/index.js.map +1 -1
  86. package/dist/components/drag-drop/types.d.ts +232 -0
  87. package/dist/components/drag-drop/types.d.ts.map +1 -0
  88. package/dist/components/drag-drop/value.d.ts +8 -0
  89. package/dist/components/drag-drop/value.d.ts.map +1 -0
  90. package/dist/components/drag-drop/value.js +66 -66
  91. package/dist/components/drag-drop/value.js.map +1 -1
  92. package/dist/components/dropdown-menu/component.d.ts +79 -0
  93. package/dist/components/dropdown-menu/component.d.ts.map +1 -0
  94. package/dist/components/dropdown-menu/component.js +108 -106
  95. package/dist/components/dropdown-menu/component.js.map +1 -1
  96. package/dist/components/dropdown-menu/divider.d.ts +6 -0
  97. package/dist/components/dropdown-menu/divider.d.ts.map +1 -0
  98. package/dist/components/dropdown-menu/divider.js.map +1 -1
  99. package/dist/components/dropdown-menu/index.d.ts +4 -0
  100. package/dist/components/dropdown-menu/index.d.ts.map +1 -0
  101. package/dist/components/dropdown-menu/item.d.ts +56 -0
  102. package/dist/components/dropdown-menu/item.d.ts.map +1 -0
  103. package/dist/components/dropdown-menu/item.js +72 -66
  104. package/dist/components/dropdown-menu/item.js.map +1 -1
  105. package/dist/components/dropdown-menu/types.d.ts +88 -0
  106. package/dist/components/dropdown-menu/types.d.ts.map +1 -0
  107. package/dist/components/dropdown-menu/useDropdownMenu.d.ts +58 -0
  108. package/dist/components/dropdown-menu/useDropdownMenu.d.ts.map +1 -0
  109. package/dist/components/dropdown-menu/useDropdownMenu.js +80 -77
  110. package/dist/components/dropdown-menu/useDropdownMenu.js.map +1 -1
  111. package/dist/components/ds-root/component.d.ts +14 -0
  112. package/dist/components/ds-root/component.d.ts.map +1 -0
  113. package/dist/components/ds-root/component.js.map +1 -1
  114. package/dist/components/ds-root/context.d.ts +8 -0
  115. package/dist/components/ds-root/context.d.ts.map +1 -0
  116. package/dist/components/ds-root/index.d.ts +3 -0
  117. package/dist/components/ds-root/index.d.ts.map +1 -0
  118. package/dist/components/empty/component.d.ts +13 -0
  119. package/dist/components/empty/component.d.ts.map +1 -0
  120. package/dist/components/empty/component.js.map +1 -1
  121. package/dist/components/empty/index.d.ts +2 -0
  122. package/dist/components/empty/index.d.ts.map +1 -0
  123. package/dist/components/field/component.d.ts +42 -0
  124. package/dist/components/field/component.d.ts.map +1 -0
  125. package/dist/components/field/component.js.map +1 -1
  126. package/dist/components/field/index.d.ts +2 -0
  127. package/dist/components/field/index.d.ts.map +1 -0
  128. package/dist/components/form/component.d.ts +22 -0
  129. package/dist/components/form/component.d.ts.map +1 -0
  130. package/dist/components/form/component.js.map +1 -1
  131. package/dist/components/form/index.d.ts +2 -0
  132. package/dist/components/form/index.d.ts.map +1 -0
  133. package/dist/components/form/item.d.ts +24 -0
  134. package/dist/components/form/item.d.ts.map +1 -0
  135. package/dist/components/form/item.js +24 -24
  136. package/dist/components/form/item.js.map +1 -1
  137. package/dist/components/form/label.d.ts +32 -0
  138. package/dist/components/form/label.d.ts.map +1 -0
  139. package/dist/components/form/label.js.map +1 -1
  140. package/dist/components/hooks/antd.d.ts +11 -0
  141. package/dist/components/hooks/antd.d.ts.map +1 -0
  142. package/dist/components/hooks/antd.js.map +1 -1
  143. package/dist/components/hooks/base-ui.d.ts +11 -0
  144. package/dist/components/hooks/base-ui.d.ts.map +1 -0
  145. package/dist/components/hooks/base-ui.js +22 -25
  146. package/dist/components/hooks/base-ui.js.map +1 -1
  147. package/dist/components/hooks/index.d.ts +11 -0
  148. package/dist/components/hooks/index.d.ts.map +1 -0
  149. package/dist/components/hooks/useBreakpoint.d.ts +39 -0
  150. package/dist/components/hooks/useBreakpoint.d.ts.map +1 -0
  151. package/dist/components/hooks/useBreakpoint.js +14 -15
  152. package/dist/components/hooks/useBreakpoint.js.map +1 -1
  153. package/dist/components/hooks/useCSSVariables.d.ts +7 -0
  154. package/dist/components/hooks/useCSSVariables.d.ts.map +1 -0
  155. package/dist/components/hooks/useCSSVariables.js.map +1 -1
  156. package/dist/components/hooks/useCharts.d.ts +41 -0
  157. package/dist/components/hooks/useCharts.d.ts.map +1 -0
  158. package/dist/components/hooks/useCharts.js.map +1 -1
  159. package/dist/components/hooks/useControlledState.d.ts +13 -0
  160. package/dist/components/hooks/useControlledState.d.ts.map +1 -0
  161. package/dist/components/hooks/useControlledState.js.map +1 -1
  162. package/dist/components/hooks/useDraggable.d.ts +4 -0
  163. package/dist/components/hooks/useDraggable.d.ts.map +1 -0
  164. package/dist/components/hooks/useDraggable.js +19 -20
  165. package/dist/components/hooks/useDraggable.js.map +1 -1
  166. package/dist/components/hooks/useHover.d.ts +5 -0
  167. package/dist/components/hooks/useHover.d.ts.map +1 -0
  168. package/dist/components/hooks/useHover.js +16 -17
  169. package/dist/components/hooks/useHover.js.map +1 -1
  170. package/dist/components/hooks/useResizeObserver.d.ts +9 -0
  171. package/dist/components/hooks/useResizeObserver.d.ts.map +1 -0
  172. package/dist/components/hooks/useResizeObserver.js +29 -30
  173. package/dist/components/hooks/useResizeObserver.js.map +1 -1
  174. package/dist/components/hooks/useTransitionStatus.d.ts +13 -0
  175. package/dist/components/hooks/useTransitionStatus.d.ts.map +1 -0
  176. package/dist/components/hooks/useTransitionStatus.js.map +1 -1
  177. package/dist/components/hooks/useWindowSize.d.ts +5 -0
  178. package/dist/components/hooks/useWindowSize.d.ts.map +1 -0
  179. package/dist/components/hooks/useWindowSize.js.map +1 -1
  180. package/dist/components/icon-button/component.d.ts +45 -0
  181. package/dist/components/icon-button/component.d.ts.map +1 -0
  182. package/dist/components/icon-button/component.js.map +1 -1
  183. package/dist/components/icon-button/index.d.ts +2 -0
  184. package/dist/components/icon-button/index.d.ts.map +1 -0
  185. package/dist/components/index.d.ts +53 -0
  186. package/dist/components/index.d.ts.map +1 -0
  187. package/dist/components/input/component.d.ts +29 -0
  188. package/dist/components/input/component.d.ts.map +1 -0
  189. package/dist/components/input/component.js +42 -41
  190. package/dist/components/input/component.js.map +1 -1
  191. package/dist/components/input/index.d.ts +2 -0
  192. package/dist/components/input/index.d.ts.map +1 -0
  193. package/dist/components/keyboard-shortcut/component.d.ts +15 -0
  194. package/dist/components/keyboard-shortcut/component.d.ts.map +1 -0
  195. package/dist/components/keyboard-shortcut/component.js.map +1 -1
  196. package/dist/components/keyboard-shortcut/index.d.ts +2 -0
  197. package/dist/components/keyboard-shortcut/index.d.ts.map +1 -0
  198. package/dist/components/loader/component.d.ts +5 -0
  199. package/dist/components/loader/component.d.ts.map +1 -0
  200. package/dist/components/loader/component.js.map +1 -1
  201. package/dist/components/loader/index.d.ts +2 -0
  202. package/dist/components/loader/index.d.ts.map +1 -0
  203. package/dist/components/modal/Modal.d.ts +85 -0
  204. package/dist/components/modal/Modal.d.ts.map +1 -0
  205. package/dist/components/modal/Modal.js +75 -75
  206. package/dist/components/modal/Modal.js.map +1 -1
  207. package/dist/components/modal/ModalProvider.d.ts +6 -0
  208. package/dist/components/modal/ModalProvider.d.ts.map +1 -0
  209. package/dist/components/modal/ModalProvider.js +25 -25
  210. package/dist/components/modal/ModalProvider.js.map +1 -1
  211. package/dist/components/modal/ModalService.d.ts +34 -0
  212. package/dist/components/modal/ModalService.d.ts.map +1 -0
  213. package/dist/components/modal/ModalService.js +5 -10
  214. package/dist/components/modal/ModalService.js.map +1 -1
  215. package/dist/components/modal/constants.d.ts +10 -0
  216. package/dist/components/modal/constants.d.ts.map +1 -0
  217. package/dist/components/modal/constants.js.map +1 -1
  218. package/dist/components/modal/functions.d.ts +28 -0
  219. package/dist/components/modal/functions.d.ts.map +1 -0
  220. package/dist/components/modal/functions.js.map +1 -1
  221. package/dist/components/modal/index.d.ts +16 -0
  222. package/dist/components/modal/index.d.ts.map +1 -0
  223. package/dist/components/modal/index.js.map +1 -1
  224. package/dist/components/nav/context.d.ts +10 -0
  225. package/dist/components/nav/context.d.ts.map +1 -0
  226. package/dist/components/nav/context.js.map +1 -1
  227. package/dist/components/nav/group.d.ts +15 -0
  228. package/dist/components/nav/group.d.ts.map +1 -0
  229. package/dist/components/nav/group.js.map +1 -1
  230. package/dist/components/nav/heading.d.ts +6 -0
  231. package/dist/components/nav/heading.d.ts.map +1 -0
  232. package/dist/components/nav/heading.js.map +1 -1
  233. package/dist/components/nav/index.d.ts +12 -0
  234. package/dist/components/nav/index.d.ts.map +1 -0
  235. package/dist/components/nav/item.d.ts +35 -0
  236. package/dist/components/nav/item.d.ts.map +1 -0
  237. package/dist/components/nav/item.js.map +1 -1
  238. package/dist/components/popover/component.d.ts +10 -0
  239. package/dist/components/popover/component.d.ts.map +1 -0
  240. package/dist/components/popover/component.js.map +1 -1
  241. package/dist/components/popover/index.d.ts +2 -0
  242. package/dist/components/popover/index.d.ts.map +1 -0
  243. package/dist/components/popup-panel/component.d.ts +100 -0
  244. package/dist/components/popup-panel/component.d.ts.map +1 -0
  245. package/dist/components/popup-panel/component.js +105 -105
  246. package/dist/components/popup-panel/component.js.map +1 -1
  247. package/dist/components/popup-panel/constants.d.ts +8 -0
  248. package/dist/components/popup-panel/constants.d.ts.map +1 -0
  249. package/dist/components/popup-panel/constants.js.map +1 -1
  250. package/dist/components/popup-panel/index.d.ts +2 -0
  251. package/dist/components/popup-panel/index.d.ts.map +1 -0
  252. package/dist/components/radio/component.d.ts +8 -0
  253. package/dist/components/radio/component.d.ts.map +1 -0
  254. package/dist/components/radio/component.js.map +1 -1
  255. package/dist/components/radio/index.d.ts +3 -0
  256. package/dist/components/radio/index.d.ts.map +1 -0
  257. package/dist/components/radio/interface.d.ts +6 -0
  258. package/dist/components/radio/interface.d.ts.map +1 -0
  259. package/dist/components/resizable/component.d.ts +70 -0
  260. package/dist/components/resizable/component.d.ts.map +1 -0
  261. package/dist/components/resizable/component.js +147 -147
  262. package/dist/components/resizable/component.js.map +1 -1
  263. package/dist/components/resizable/index.d.ts +3 -0
  264. package/dist/components/resizable/index.d.ts.map +1 -0
  265. package/dist/components/scroll-area/component.d.ts +67 -0
  266. package/dist/components/scroll-area/component.d.ts.map +1 -0
  267. package/dist/components/scroll-area/component.js +75 -56
  268. package/dist/components/scroll-area/component.js.map +1 -1
  269. package/dist/components/scroll-area/index.d.ts +2 -0
  270. package/dist/components/scroll-area/index.d.ts.map +1 -0
  271. package/dist/components/segmented/component.d.ts +10 -0
  272. package/dist/components/segmented/component.d.ts.map +1 -0
  273. package/dist/components/segmented/component.js.map +1 -1
  274. package/dist/components/segmented/index.d.ts +2 -0
  275. package/dist/components/segmented/index.d.ts.map +1 -0
  276. package/dist/components/select/component.d.ts +48 -0
  277. package/dist/components/select/component.d.ts.map +1 -0
  278. package/dist/components/select/component.js +93 -94
  279. package/dist/components/select/component.js.map +1 -1
  280. package/dist/components/select/index.d.ts +2 -0
  281. package/dist/components/select/index.d.ts.map +1 -0
  282. package/dist/components/select/item.d.ts +14 -0
  283. package/dist/components/select/item.d.ts.map +1 -0
  284. package/dist/components/select/item.js.map +1 -1
  285. package/dist/components/select-trigger/component.d.ts +45 -0
  286. package/dist/components/select-trigger/component.d.ts.map +1 -0
  287. package/dist/components/select-trigger/component.js +96 -96
  288. package/dist/components/select-trigger/component.js.map +1 -1
  289. package/dist/components/select-trigger/index.d.ts +3 -0
  290. package/dist/components/select-trigger/index.d.ts.map +1 -0
  291. package/dist/components/slider/component.d.ts +6 -0
  292. package/dist/components/slider/component.d.ts.map +1 -0
  293. package/dist/components/slider/component.js.map +1 -1
  294. package/dist/components/slider/index.d.ts +2 -0
  295. package/dist/components/slider/index.d.ts.map +1 -0
  296. package/dist/components/spin/component.d.ts +6 -0
  297. package/dist/components/spin/component.d.ts.map +1 -0
  298. package/dist/components/spin/component.js.map +1 -1
  299. package/dist/components/spin/index.d.ts +2 -0
  300. package/dist/components/spin/index.d.ts.map +1 -0
  301. package/dist/components/splitter/component.d.ts +10 -0
  302. package/dist/components/splitter/component.d.ts.map +1 -0
  303. package/dist/components/splitter/component.js +7 -7
  304. package/dist/components/splitter/component.js.map +1 -1
  305. package/dist/components/splitter/context.d.ts +5 -0
  306. package/dist/components/splitter/context.d.ts.map +1 -0
  307. package/dist/components/splitter/context.js.map +1 -1
  308. package/dist/components/splitter/index.d.ts +2 -0
  309. package/dist/components/splitter/index.d.ts.map +1 -0
  310. package/dist/components/splitter/splitter-panel.d.ts +12 -0
  311. package/dist/components/splitter/splitter-panel.d.ts.map +1 -0
  312. package/dist/components/splitter/splitter-panel.js.map +1 -1
  313. package/dist/components/splitter/splitter.d.ts +11 -0
  314. package/dist/components/splitter/splitter.d.ts.map +1 -0
  315. package/dist/components/splitter/splitter.js +112 -112
  316. package/dist/components/splitter/splitter.js.map +1 -1
  317. package/dist/components/splitter/useSizes.d.ts +9 -0
  318. package/dist/components/splitter/useSizes.d.ts.map +1 -0
  319. package/dist/components/splitter/useSizes.js +35 -35
  320. package/dist/components/splitter/useSizes.js.map +1 -1
  321. package/dist/components/stack/Stack.d.ts +40 -0
  322. package/dist/components/stack/Stack.d.ts.map +1 -0
  323. package/dist/components/stack/Stack.js.map +1 -1
  324. package/dist/components/stack/StackChild.d.ts +31 -0
  325. package/dist/components/stack/StackChild.d.ts.map +1 -0
  326. package/dist/components/stack/StackChild.js.map +1 -1
  327. package/dist/components/stack/index.d.ts +8 -0
  328. package/dist/components/stack/index.d.ts.map +1 -0
  329. package/dist/components/stack/index.js.map +1 -1
  330. package/dist/components/status-icon/component.d.ts +23 -0
  331. package/dist/components/status-icon/component.d.ts.map +1 -0
  332. package/dist/components/status-icon/component.js.map +1 -1
  333. package/dist/components/status-icon/index.d.ts +2 -0
  334. package/dist/components/status-icon/index.d.ts.map +1 -0
  335. package/dist/components/switch/component.d.ts +9 -0
  336. package/dist/components/switch/component.d.ts.map +1 -0
  337. package/dist/components/switch/component.js.map +1 -1
  338. package/dist/components/switch/index.d.ts +2 -0
  339. package/dist/components/switch/index.d.ts.map +1 -0
  340. package/dist/components/table/component.d.ts +32 -0
  341. package/dist/components/table/component.d.ts.map +1 -0
  342. package/dist/components/table/component.js +57 -58
  343. package/dist/components/table/component.js.map +1 -1
  344. package/dist/components/table/index.d.ts +2 -0
  345. package/dist/components/table/index.d.ts.map +1 -0
  346. package/dist/components/tag/component.d.ts +22 -0
  347. package/dist/components/tag/component.d.ts.map +1 -0
  348. package/dist/components/tag/component.js.map +1 -1
  349. package/dist/components/tag/index.d.ts +2 -0
  350. package/dist/components/tag/index.d.ts.map +1 -0
  351. package/dist/components/theme-provider/component.d.ts +7 -0
  352. package/dist/components/theme-provider/component.d.ts.map +1 -0
  353. package/dist/components/theme-provider/component.js.map +1 -1
  354. package/dist/components/theme-provider/index.d.ts +2 -0
  355. package/dist/components/theme-provider/index.d.ts.map +1 -0
  356. package/dist/components/toast/component.d.ts +15 -0
  357. package/dist/components/toast/component.d.ts.map +1 -0
  358. package/dist/components/toast/component.js +49 -50
  359. package/dist/components/toast/component.js.map +1 -1
  360. package/dist/components/toast/function.d.ts +11 -0
  361. package/dist/components/toast/function.d.ts.map +1 -0
  362. package/dist/components/toast/function.js.map +1 -1
  363. package/dist/components/toast/index.d.ts +4 -0
  364. package/dist/components/toast/index.d.ts.map +1 -0
  365. package/dist/components/toast/types.d.ts +4 -0
  366. package/dist/components/toast/types.d.ts.map +1 -0
  367. package/dist/components/tooltip/component.d.ts +10 -0
  368. package/dist/components/tooltip/component.d.ts.map +1 -0
  369. package/dist/components/tooltip/component.js.map +1 -1
  370. package/dist/components/tooltip/index.d.ts +2 -0
  371. package/dist/components/tooltip/index.d.ts.map +1 -0
  372. package/dist/components/tour/component.d.ts +8 -0
  373. package/dist/components/tour/component.d.ts.map +1 -0
  374. package/dist/components/tour/component.js.map +1 -1
  375. package/dist/components/tour/index.d.ts +2 -0
  376. package/dist/components/tour/index.d.ts.map +1 -0
  377. package/dist/components/transition/component.d.ts +30 -0
  378. package/dist/components/transition/component.d.ts.map +1 -0
  379. package/dist/components/transition/component.js +32 -32
  380. package/dist/components/transition/component.js.map +1 -1
  381. package/dist/components/transition/index.d.ts +2 -0
  382. package/dist/components/transition/index.d.ts.map +1 -0
  383. package/dist/components/tree/components.d.ts +14 -0
  384. package/dist/components/tree/components.d.ts.map +1 -0
  385. package/dist/components/tree/components.js.map +1 -1
  386. package/dist/components/tree/helpers.d.ts +6 -0
  387. package/dist/components/tree/helpers.d.ts.map +1 -0
  388. package/dist/components/tree/helpers.js.map +1 -1
  389. package/dist/components/tree/index.d.ts +5 -0
  390. package/dist/components/tree/index.d.ts.map +1 -0
  391. package/dist/components/tree/types.d.ts +56 -0
  392. package/dist/components/tree/types.d.ts.map +1 -0
  393. package/dist/components/tree/useTreeCommon.d.ts +179 -0
  394. package/dist/components/tree/useTreeCommon.d.ts.map +1 -0
  395. package/dist/components/tree/useTreeCommon.js +29 -29
  396. package/dist/components/tree/useTreeCommon.js.map +1 -1
  397. package/dist/components/tree/useUniqueKeysTree.d.ts +34 -0
  398. package/dist/components/tree/useUniqueKeysTree.d.ts.map +1 -0
  399. package/dist/components/tree/useUniqueKeysTree.js.map +1 -1
  400. package/dist/components/truncate/component.d.ts +17 -0
  401. package/dist/components/truncate/component.d.ts.map +1 -0
  402. package/dist/components/truncate/component.js +38 -39
  403. package/dist/components/truncate/component.js.map +1 -1
  404. package/dist/components/truncate/helpers.d.ts +17 -0
  405. package/dist/components/truncate/helpers.d.ts.map +1 -0
  406. package/dist/components/truncate/helpers.js +27 -30
  407. package/dist/components/truncate/helpers.js.map +1 -1
  408. package/dist/components/truncate/index.d.ts +2 -0
  409. package/dist/components/truncate/index.d.ts.map +1 -0
  410. package/dist/components/upload/component.d.ts +17 -0
  411. package/dist/components/upload/component.d.ts.map +1 -0
  412. package/dist/components/upload/component.js.map +1 -1
  413. package/dist/components/upload/dragger.d.ts +14 -0
  414. package/dist/components/upload/dragger.d.ts.map +1 -0
  415. package/dist/components/upload/dragger.js.map +1 -1
  416. package/dist/components/upload/hooks.d.ts +6 -0
  417. package/dist/components/upload/hooks.d.ts.map +1 -0
  418. package/dist/components/upload/hooks.js.map +1 -1
  419. package/dist/components/upload/index.d.ts +4 -0
  420. package/dist/components/upload/index.d.ts.map +1 -0
  421. package/dist/components/upload/item.d.ts +12 -0
  422. package/dist/components/upload/item.d.ts.map +1 -0
  423. package/dist/components/upload/item.js.map +1 -1
  424. package/dist/components/upload/utils.d.ts +2 -0
  425. package/dist/components/upload/utils.d.ts.map +1 -0
  426. package/dist/components/upload/utils.js.map +1 -1
  427. package/dist/components/utils/WithAntdTokens.d.ts +8 -0
  428. package/dist/components/utils/WithAntdTokens.d.ts.map +1 -0
  429. package/dist/components/utils/WithAntdTokens.js.map +1 -1
  430. package/dist/components/utils/WithRenderProp.d.ts +14 -0
  431. package/dist/components/utils/WithRenderProp.d.ts.map +1 -0
  432. package/dist/components/utils/WithRenderProp.js.map +1 -1
  433. package/dist/components/utils/antdUtils.d.ts +11 -0
  434. package/dist/components/utils/antdUtils.d.ts.map +1 -0
  435. package/dist/components/utils/antdUtils.js +9 -12
  436. package/dist/components/utils/antdUtils.js.map +1 -1
  437. package/dist/components/utils/client.d.ts +6 -0
  438. package/dist/components/utils/client.d.ts.map +1 -0
  439. package/dist/components/utils/cn.d.ts +5 -0
  440. package/dist/components/utils/cn.d.ts.map +1 -0
  441. package/dist/components/utils/cn.js.map +1 -1
  442. package/dist/components/utils/colors.d.ts +2 -0
  443. package/dist/components/utils/colors.d.ts.map +1 -0
  444. package/dist/components/utils/constants.d.ts +15 -0
  445. package/dist/components/utils/constants.d.ts.map +1 -0
  446. package/dist/components/utils/index.d.ts +6 -0
  447. package/dist/components/utils/index.d.ts.map +1 -0
  448. package/dist/components/utils/isTracebackError.d.ts +2 -0
  449. package/dist/components/utils/isTracebackError.d.ts.map +1 -0
  450. package/dist/components/utils/isTracebackError.js.map +1 -1
  451. package/dist/components/utils/main.d.ts +7 -0
  452. package/dist/components/utils/main.d.ts.map +1 -0
  453. package/dist/components/utils/placement.d.ts +21 -0
  454. package/dist/components/utils/placement.d.ts.map +1 -0
  455. package/dist/components/utils/placement.js.map +1 -1
  456. package/dist/components/utils/reactElement.d.ts +2 -0
  457. package/dist/components/utils/reactElement.d.ts.map +1 -0
  458. package/dist/components/utils/reactToString.d.ts +3 -0
  459. package/dist/components/utils/reactToString.d.ts.map +1 -0
  460. package/dist/components/utils/reactToString.js.map +1 -1
  461. package/dist/components/utils/selectionRange.d.ts +2 -0
  462. package/dist/components/utils/selectionRange.d.ts.map +1 -0
  463. package/dist/components/utils/selectionRange.js.map +1 -1
  464. package/dist/components/utils/theme.d.ts +6 -0
  465. package/dist/components/utils/theme.d.ts.map +1 -0
  466. package/dist/components/utils/theme.js.map +1 -1
  467. package/dist/components/utils/types.d.ts +12 -0
  468. package/dist/components/utils/types.d.ts.map +1 -0
  469. package/dist/components/vertical-collapsible-panel/component.d.ts +65 -0
  470. package/dist/components/vertical-collapsible-panel/component.d.ts.map +1 -0
  471. package/dist/components/vertical-collapsible-panel/component.js.map +1 -1
  472. package/dist/components/vertical-collapsible-panel/index.d.ts +2 -0
  473. package/dist/components/vertical-collapsible-panel/index.d.ts.map +1 -0
  474. package/dist/index.d.ts +4 -4390
  475. package/dist/index.d.ts.map +1 -0
  476. package/dist/index.js +166 -164
  477. package/dist/index.js.map +1 -1
  478. package/dist/metadata.d.ts +446 -0
  479. package/dist/metadata.d.ts.map +1 -0
  480. package/dist/metadata.js.map +1 -1
  481. package/dist/tokens/and-theme/index.d.ts +2 -0
  482. package/dist/tokens/and-theme/index.d.ts.map +1 -0
  483. package/dist/tokens/and-theme/tokens.d.ts +6 -0
  484. package/dist/tokens/and-theme/tokens.d.ts.map +1 -0
  485. package/dist/tokens/and-theme/tokens.js.map +1 -1
  486. package/dist/tokens/charts/index.d.ts +5 -0
  487. package/dist/tokens/charts/index.d.ts.map +1 -0
  488. package/dist/tokens/charts/palettes/cloudscape.d.ts +460 -0
  489. package/dist/tokens/charts/palettes/cloudscape.d.ts.map +1 -0
  490. package/dist/tokens/charts/palettes/cloudscape.js.map +1 -1
  491. package/dist/tokens/charts/palettes/colorbrewer.d.ts +338 -0
  492. package/dist/tokens/charts/palettes/colorbrewer.d.ts.map +1 -0
  493. package/dist/tokens/charts/palettes/colorbrewer.js.map +1 -1
  494. package/dist/tokens/charts/palettes/index.d.ts +24 -0
  495. package/dist/tokens/charts/palettes/index.d.ts.map +1 -0
  496. package/dist/tokens/charts/palettes/index.js.map +1 -1
  497. package/dist/tokens/charts/palettes/tableau.d.ts +11 -0
  498. package/dist/tokens/charts/palettes/tableau.d.ts.map +1 -0
  499. package/dist/tokens/index.d.ts +5 -0
  500. package/dist/tokens/index.d.ts.map +1 -0
  501. package/dist/tokens/types.d.ts +10 -0
  502. package/dist/tokens/types.d.ts.map +1 -0
  503. package/dist/tokens/utils.d.ts +9 -0
  504. package/dist/tokens/utils.d.ts.map +1 -0
  505. package/dist/tokens/utils.js.map +1 -1
  506. package/package.json +2 -2
  507. package/dist/tailwind.d.ts +0 -1
package/dist/index.d.ts CHANGED
@@ -1,4390 +1,4 @@
1
- import { Affix } from 'antd';
2
- import { AffixProps } from 'antd';
3
- import { AffixRef } from 'antd';
4
- import { Alert } from 'antd';
5
- import { AlertProps } from 'antd';
6
- import { AliasToken } from 'antd/es/theme/internal';
7
- import { Anchor } from 'antd';
8
- import { AnchorLinkProps } from 'antd';
9
- import { AnchorProps } from 'antd';
10
- import { App } from 'antd';
11
- import { AppProps } from 'antd';
12
- import { AutoComplete } from 'antd';
13
- import { AutoCompleteProps } from 'antd';
14
- import { Avatar } from 'antd';
15
- import { AvatarProps } from 'antd';
16
- import { BackTop } from 'antd';
17
- import { BackTopProps } from 'antd';
18
- import { BadgeProps as BadgeProps_2 } from 'antd/es/badge';
19
- import { BasicDataNode } from 'antd/es/tree';
20
- import { BreadcrumbItemProps as BreadcrumbItemProps_2 } from 'antd/es/breadcrumb';
21
- import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
22
- import { BreadcrumbProps as BreadcrumbProps_2 } from 'antd/es/breadcrumb';
23
- import { BreadcrumbSeparatorType } from 'antd/es/breadcrumb/Breadcrumb';
24
- import { ButtonProps as ButtonProps_2 } from 'antd/es/button';
25
- import { Calendar } from 'antd';
26
- import { CalendarMode } from 'antd';
27
- import { CalendarProps } from 'antd';
28
- import { Card } from 'antd';
29
- import { CardProps } from 'antd';
30
- import { Carousel } from 'antd';
31
- import { CarouselProps } from 'antd';
32
- import { Cascader } from 'antd';
33
- import { CascaderAutoProps } from 'antd';
34
- import { CascaderPanelAutoProps } from 'antd';
35
- import { CascaderPanelProps } from 'antd';
36
- import { CascaderProps } from 'antd';
37
- import { CheckableTagProps as CheckableTagProps_2 } from 'antd/es/tag/CheckableTag';
38
- import { Checkbox as Checkbox_2 } from 'antd';
39
- import { CheckboxChangeEvent } from 'antd';
40
- import { CheckboxGroupProps } from 'antd/es/checkbox';
41
- import { CheckboxOptionType } from 'antd';
42
- import { CheckboxProps as CheckboxProps_2 } from 'antd';
43
- import { CheckboxRef } from 'antd';
44
- import { Col } from 'antd';
45
- import { CollapsePanelProps as CollapsePanelProps_2 } from 'antd';
46
- import { CollapseProps as CollapseProps_2 } from 'antd';
47
- import { ColorPicker } from 'antd';
48
- import { ColorPickerProps } from 'antd';
49
- import { ColorPickerProps as ColorPickerProps_2 } from 'antd/es/color-picker';
50
- import { ColProps } from 'antd';
51
- import { ComponentProps } from 'react';
52
- import { ComponentPropsWithoutRef } from 'react';
53
- import { ComponentPropsWithRef } from 'react';
54
- import { ConfigProvider } from 'antd';
55
- import { ConfigProviderProps } from 'antd';
56
- import { ConfigProviderProps as ConfigProviderProps_2 } from 'antd/es/config-provider';
57
- import { CountdownProps } from 'antd';
58
- import { CSSProperties } from 'react';
59
- import { DataNode } from 'antd/es/tree';
60
- import { DatePicker } from 'antd';
61
- import { DatePickerProps } from 'antd';
62
- import { default as default_2 } from 'react';
63
- import { default as default_3 } from 'antd/es/select';
64
- import { default as default_4 } from 'antd/es/switch';
65
- import { default as default_5 } from 'antd/es/segmented';
66
- import { default as default_6 } from 'antd/es/table';
67
- import { default as default_7 } from 'antd/es/tree';
68
- import { default as default_8 } from 'antd/es/form/Form';
69
- import { default as default_9 } from 'antd/es/form/hooks/useFormInstance';
70
- import { Descriptions } from 'antd';
71
- import { DescriptionsProps } from 'antd';
72
- import { Dialog } from '@base-ui-components/react';
73
- import { DirectoryTreeProps as DirectoryTreeProps_2 } from 'antd/es/tree';
74
- import { Divider } from 'antd';
75
- import { DividerProps } from 'antd';
76
- import { DragDropValueProps as DragDropValueProps_2 } from './types';
77
- import { DraggerProps } from './dragger';
78
- import { Drawer } from 'antd';
79
- import { DrawerProps } from 'antd';
80
- import { Dropdown } from 'antd';
81
- import { DropDownProps } from 'antd';
82
- import { DropdownProps } from 'antd';
83
- import { ElementType } from 'react';
84
- import { ElementTypeToDOMType as ElementTypeToDOMType_2 } from '..';
85
- import { EmptyProps as EmptyProps_2 } from 'antd/es/empty';
86
- import { ErrorListProps } from 'antd/es/form';
87
- import { EventDataNode } from 'antd/es/tree';
88
- import { FC } from 'react';
89
- import { Flex } from 'antd';
90
- import { FlexProps } from 'antd';
91
- import { FloatButton } from 'antd';
92
- import { FloatButtonGroupProps } from 'antd';
93
- import { FloatButtonProps } from 'antd';
94
- import { FloatButtonRef } from 'antd';
95
- import { FormInstance } from 'antd';
96
- import { FormItemProps as FormItemProps_2 } from 'antd/es/form/FormItem';
97
- import { FormLabelProps } from './label';
98
- import { FormListFieldData } from 'antd';
99
- import { FormListOperation } from 'antd';
100
- import { FormListProps } from 'antd/es/form';
101
- import { FormProps } from 'antd';
102
- import { FormProviderProps } from 'antd/es/form/context';
103
- import { ForwardedRef } from 'react';
104
- import { ForwardRefExoticComponent } from 'react';
105
- import { GlobalToken } from 'antd';
106
- import { Grid } from 'antd';
107
- import { HighlightProps } from 'prism-react-renderer';
108
- import { HookAPI } from 'antd/es/modal/useModal';
109
- import { InputNumber } from 'antd';
110
- import { InputNumberProps } from 'antd';
111
- import { InputProps as InputProps_2 } from 'antd';
112
- import { InputRef } from 'antd';
113
- import { InternalPanelProps } from 'antd/es/splitter/interface';
114
- import { JSX } from 'react/jsx-runtime';
115
- import { JSX as JSX_2 } from 'react';
116
- import { JSXElementConstructor } from 'react';
117
- import { Key } from 'react';
118
- import { Layout } from 'antd';
119
- import { LayoutProps } from 'antd';
120
- import { List } from 'antd';
121
- import { ListProps } from 'antd';
122
- import { MappingAlgorithm } from 'antd';
123
- import { MentionProps } from 'antd';
124
- import { Mentions } from 'antd';
125
- import { MentionsProps } from 'antd';
126
- import { Menu } from 'antd';
127
- import { Menu as Menu_2 } from '@base-ui-components/react/menu';
128
- import { MenuItemProps } from 'antd';
129
- import { MenuProps } from 'antd';
130
- import { MenuRef } from 'antd';
131
- import { MenuTheme } from 'antd';
132
- import { message } from 'antd';
133
- import { MessageArgsProps } from 'antd';
134
- import { MessageInstance } from 'antd/es/message/interface';
135
- import { ModalFuncProps } from 'antd';
136
- import { ModalProps as ModalProps_2 } from 'antd/es/modal';
137
- import { ModalRef } from './functions';
138
- import { MoveValues } from 'react-use-resizable';
139
- import { notification } from 'antd';
140
- import { NotificationArgsProps } from 'antd';
141
- import { OptionFC } from 'rc-select/lib/Option';
142
- import { OptionGroupFC } from 'rc-select/lib/OptGroup';
143
- import { Pagination } from 'antd';
144
- import { PaginationProps } from 'antd';
145
- import { PasswordProps as PasswordProps_2 } from 'antd/es/input';
146
- import { Popconfirm } from 'antd';
147
- import { PopconfirmProps } from 'antd';
148
- import { Popover as Popover_2 } from '@base-ui-components/react/popover';
149
- import { PopoverProps as PopoverProps_2 } from 'antd/es/popover';
150
- import { Progress } from 'antd';
151
- import { ProgressProps } from 'antd';
152
- import { PropsWithChildren } from 'react';
153
- import { QRCode } from 'antd';
154
- import { QRCodeProps } from 'antd';
155
- import { QRPropsCanvas } from 'antd';
156
- import { QRPropsSvg } from 'antd';
157
- import { RadioChangeEvent as RadioChangeEvent_2 } from 'antd/es/radio';
158
- import { RadioGroupProps as RadioGroupProps_2 } from 'antd/es/radio';
159
- import { RadioProps as RadioProps_2 } from 'antd';
160
- import { RadioProps as RadioProps_3 } from 'antd/es/radio';
161
- import { RadioRef as RadioRef_2 } from 'antd/es/radio';
162
- import { Rate } from 'antd';
163
- import { RateProps } from 'antd';
164
- import { RawColorTokenValue as RawColorTokenValue_2 } from '../..';
165
- import { RcFile } from 'antd/es/upload';
166
- import * as React_2 from 'react';
167
- import { ReactElement } from 'react';
168
- import { ReactNode } from 'react';
169
- import { Ref } from 'react';
170
- import { RefAttributes } from 'react';
171
- import { RefObject } from 'react';
172
- import { RefSelectProps } from 'antd';
173
- import { RefSelectProps as RefSelectProps_2 } from 'antd/es/select';
174
- import { ResizableProps as ResizableProps_2 } from 'react-use-resizable';
175
- import { Result } from 'antd';
176
- import { ResultProps } from 'antd';
177
- import { RibbonProps } from 'antd/es/badge/Ribbon';
178
- import { Row } from 'antd';
179
- import { RowProps } from 'antd';
180
- import { SearchProps as SearchProps_2 } from 'antd/es/input';
181
- import { SeedToken } from 'antd/es/theme/internal';
182
- import { SegmentedProps as SegmentedProps_2 } from 'antd/es/segmented';
183
- import { BaseOptionType as SelectBaseOptionType } from 'antd/es/select';
184
- import { DefaultOptionType as SelectDefaultOptionType } from 'antd/es/select';
185
- import { SelectProps as SelectProps_2 } from 'antd/es/select';
186
- import { SelectProps as SelectProps_3 } from 'antd';
187
- import { SiderProps } from 'antd';
188
- import { SizeType } from 'antd/es/config-provider/SizeContext';
189
- import { Skeleton } from 'antd';
190
- import { SkeletonProps } from 'antd';
191
- import { SliderRangeProps } from 'antd/es/slider';
192
- import { SliderSingleProps } from 'antd';
193
- import { SliderSingleProps as SliderSingleProps_2 } from 'antd/es/slider';
194
- import { Space } from 'antd';
195
- import { SpaceProps } from 'antd';
196
- import { SpinProps as SpinProps_2 } from 'antd/es/spin';
197
- import { SplitterProps as SplitterProps_2 } from 'antd/es/splitter/interface';
198
- import { Statistic } from 'antd';
199
- import { StatisticProps } from 'antd';
200
- import { StepProps } from 'antd';
201
- import { Steps } from 'antd';
202
- import { StepsProps } from 'antd';
203
- import { SubMenuProps } from 'antd';
204
- import { SwitchProps as SwitchProps_2 } from 'antd/es/switch';
205
- import { TableColumnGroupType } from 'antd';
206
- import { TableColumnProps } from 'antd';
207
- import { TableColumnsType } from 'antd';
208
- import { TableColumnType } from 'antd';
209
- import { TablePaginationConfig } from 'antd';
210
- import { TableProps as TableProps_2 } from 'antd/es/table';
211
- import { TableRef } from 'antd/es/table';
212
- import { TabPaneProps } from 'antd';
213
- import { Tabs } from 'antd';
214
- import { TabsProps } from 'antd';
215
- import { TagProps as TagProps_2 } from 'antd/es/tag';
216
- import { TagType } from 'antd';
217
- import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
218
- import { theme } from 'antd';
219
- import { Theme as Theme_2 } from '@ant-design/cssinjs';
220
- import { ThemeConfig } from 'antd';
221
- import { Timeline } from 'antd';
222
- import { TimelineItemProps } from 'antd';
223
- import { TimelineProps } from 'antd';
224
- import { TimePicker } from 'antd';
225
- import { TimePickerProps } from 'antd';
226
- import { TimeRangePickerProps } from 'antd';
227
- import { Toast as Toast_2 } from '@base-ui-components/react';
228
- import { TooltipProps as TooltipProps_2 } from 'antd/es/tooltip';
229
- import { TourProps as TourProps_2 } from 'antd/es/tour/interface';
230
- import { TourStepProps as TourStepProps_2 } from 'antd/es/tour/interface';
231
- import { Transfer } from 'antd';
232
- import { TransferProps } from 'antd';
233
- import { TreeNodeProps } from 'rc-tree';
234
- import { TreeProps as TreeProps_2 } from 'antd/es/tree';
235
- import { TreeSelect } from 'antd';
236
- import { TreeSelectProps } from 'antd';
237
- import { Typography } from 'antd';
238
- import { TypographyProps } from 'antd';
239
- import { unstableSetRender } from 'antd';
240
- import { UploadChangeParam } from 'antd/es/upload';
241
- import { UploadFile } from 'antd';
242
- import { UploadItemProps as UploadItemProps_2 } from './item';
243
- import { UploadProps as UploadProps_2 } from 'antd/es/upload';
244
- import { default as useApp } from 'antd/es/app/useApp';
245
- import { useForm } from 'antd/es/form/Form';
246
- import { useLayoutEffect } from 'react';
247
- import { useRender } from '@base-ui-components/react/use-render';
248
- import { useRender as useRender_2 } from '@base-ui-components/react';
249
- import { useWatch } from 'antd/es/form/Form';
250
- import { ValidateStatus } from 'antd/es/form/FormItem';
251
- import { version } from 'antd';
252
- import { Watermark } from 'antd';
253
- import { WatermarkProps } from 'antd';
254
-
255
- export { Affix }
256
-
257
- export { AffixProps }
258
-
259
- export { AffixRef }
260
-
261
- export { Alert }
262
-
263
- export { AlertProps }
264
-
265
- export { Anchor }
266
-
267
- export { AnchorLinkProps }
268
-
269
- export { AnchorProps }
270
-
271
- export declare const antdColorTokens: ColorTokens;
272
-
273
- export declare type AntdPlacement = PopoverProps_2["placement"];
274
-
275
- declare type AnyFunction = (...args: any[]) => any;
276
-
277
- declare type AnyObject = Record<PropertyKey, any>;
278
-
279
- export { App }
280
-
281
- export { AppProps }
282
-
283
- export { AutoComplete }
284
-
285
- export { AutoCompleteProps }
286
-
287
- export { Avatar }
288
-
289
- export { AvatarProps }
290
-
291
- export { BackTop }
292
-
293
- export { BackTopProps }
294
-
295
- export declare const Badge: (({ count, showZero, ...rest }: BadgeProps) => JSX.Element) & {
296
- Ribbon: FC<RibbonProps>;
297
- };
298
-
299
- export declare type BadgeProps = BadgeProps_2;
300
-
301
- declare type BaseBreadcrumbItemType = BreadcrumbItemType_2 & {
302
- icon?: React.ReactNode;
303
- };
304
-
305
- declare interface BaseFieldProps extends React.HTMLAttributes<HTMLDivElement> {
306
- label?: React.ReactNode;
307
- /**
308
- * Block or inline display
309
- * @default false
310
- */
311
- block?: boolean;
312
- /**
313
- * Size of the field
314
- * @default "small"
315
- */
316
- size?: SizeType;
317
- /**
318
- * Colon after label
319
- * @default true
320
- */
321
- colon?: boolean;
322
- }
323
-
324
- export declare type BaseUIAlign = "start" | "end" | "center";
325
-
326
- export declare interface BaseUIPlacement {
327
- side: BaseUISide;
328
- align: BaseUIAlign;
329
- }
330
-
331
- export declare type BaseUISide = "top" | "bottom" | "left" | "right";
332
-
333
- export declare const Breadcrumb: (({ className, items, noWrap, itemRender: outsideItemRender, ...rest }: BreadcrumbProps) => JSX.Element) & {
334
- Item: (props: BreadcrumbItemProps) => JSX.Element;
335
- Separator: (props: React.HTMLAttributes<HTMLSpanElement>) => JSX.Element;
336
- };
337
-
338
- export declare interface BreadcrumbItemProps extends BreadcrumbItemProps_2 {
339
- }
340
-
341
- export declare type BreadcrumbItemType = Partial<BaseBreadcrumbItemType & BreadcrumbSeparatorType>;
342
-
343
- export declare interface BreadcrumbProps<T extends AnyObject = AnyObject> extends Omit<BreadcrumbProps_2<T>, "items" | "itemRender"> {
344
- /**
345
- * No wrap
346
- */
347
- noWrap?: boolean;
348
- items: BreadcrumbItemType[];
349
- itemRender?: (route: BreadcrumbItemType, params: T, routes: BreadcrumbItemType[], paths: string[]) => React.ReactNode;
350
- }
351
-
352
- declare type Breakpoint = "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
353
-
354
- export declare const BREAKPOINTS: {
355
- sm: number;
356
- md: number;
357
- lg: number;
358
- xl: number;
359
- "2xl": number;
360
- };
361
-
362
- /**
363
- * Build Antd placement string from BaseUI side and align values
364
- * @param placement - Object with side and align properties
365
- * @returns Antd placement string
366
- */
367
- export declare function buildAntdPlacement(placement: BaseUIPlacement): AntdPlacement;
368
-
369
- export declare const Button: (props: ButtonProps & {
370
- ref?: React.ForwardedRef<HTMLButtonElement | HTMLAnchorElement>;
371
- }) => ReturnType<typeof ButtonInner>;
372
-
373
- declare const ButtonInner: ({ negativeMargin, type, size, variant, icon, ...rest }: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => JSX.Element;
374
-
375
- export declare interface ButtonProps extends ButtonProps_2 {
376
- /**
377
- * If true, negative margin will be applied to the text and link buttons to make it align with content
378
- * @default true
379
- */
380
- negativeMargin?: boolean;
381
- }
382
-
383
- export { Calendar }
384
-
385
- export { CalendarMode }
386
-
387
- export { CalendarProps }
388
-
389
- export { Card }
390
-
391
- export { CardProps }
392
-
393
- export { Carousel }
394
-
395
- export { CarouselProps }
396
-
397
- export { Cascader }
398
-
399
- export { CascaderAutoProps }
400
-
401
- export { CascaderPanelAutoProps }
402
-
403
- export { CascaderPanelProps }
404
-
405
- export { CascaderProps }
406
-
407
- export declare const CATEGORICAL_PALETTE_NAMES: readonly ["cloudscape", "tab10", "tab20", "tab20b", "tab20c"];
408
-
409
- export declare const CATEGORICAL_PALETTES: Record<CategoricalPaletteName, Record<Theme, string[]>>;
410
-
411
- export declare const categoricalChartColorKeys: Array<keyof typeof chartColorTokens>;
412
-
413
- export declare const categoricalChartColorTokens: Record<"colorChartsRed300" | "colorChartsRed400" | "colorChartsRed500" | "colorChartsRed600" | "colorChartsRed700" | "colorChartsRed800" | "colorChartsRed900" | "colorChartsRed1000" | "colorChartsRed1100" | "colorChartsRed1200" | "colorChartsOrange300" | "colorChartsOrange400" | "colorChartsOrange500" | "colorChartsOrange600" | "colorChartsOrange700" | "colorChartsOrange800" | "colorChartsOrange900" | "colorChartsOrange1000" | "colorChartsOrange1100" | "colorChartsOrange1200" | "colorChartsYellow300" | "colorChartsYellow400" | "colorChartsYellow500" | "colorChartsYellow600" | "colorChartsYellow700" | "colorChartsYellow800" | "colorChartsYellow900" | "colorChartsYellow1000" | "colorChartsYellow1100" | "colorChartsYellow1200" | "colorChartsGreen300" | "colorChartsGreen400" | "colorChartsGreen500" | "colorChartsGreen600" | "colorChartsGreen700" | "colorChartsGreen800" | "colorChartsGreen900" | "colorChartsGreen1000" | "colorChartsGreen1100" | "colorChartsGreen1200" | "colorChartsTeal300" | "colorChartsTeal400" | "colorChartsTeal500" | "colorChartsTeal600" | "colorChartsTeal700" | "colorChartsTeal800" | "colorChartsTeal900" | "colorChartsTeal1000" | "colorChartsTeal1100" | "colorChartsTeal1200" | "colorChartsBlue1300" | "colorChartsBlue1400" | "colorChartsBlue1500" | "colorChartsBlue1600" | "colorChartsBlue1700" | "colorChartsBlue1800" | "colorChartsBlue1900" | "colorChartsBlue11000" | "colorChartsBlue11100" | "colorChartsBlue11200" | "colorChartsBlue2300" | "colorChartsBlue2400" | "colorChartsBlue2500" | "colorChartsBlue2600" | "colorChartsBlue2700" | "colorChartsBlue2800" | "colorChartsBlue2900" | "colorChartsBlue21000" | "colorChartsBlue21100" | "colorChartsBlue21200" | "colorChartsPurple300" | "colorChartsPurple400" | "colorChartsPurple500" | "colorChartsPurple600" | "colorChartsPurple700" | "colorChartsPurple800" | "colorChartsPurple900" | "colorChartsPurple1000" | "colorChartsPurple1100" | "colorChartsPurple1200" | "colorChartsPink300" | "colorChartsPink400" | "colorChartsPink500" | "colorChartsPink600" | "colorChartsPink700" | "colorChartsPink800" | "colorChartsPink900" | "colorChartsPink1000" | "colorChartsPink1100" | "colorChartsPink1200" | "colorChartsStatusCritical" | "colorChartsStatusHigh" | "colorChartsStatusMedium" | "colorChartsStatusLow" | "colorChartsStatusPositive" | "colorChartsStatusInfo" | "colorChartsStatusNeutral" | "colorChartsThresholdNegative" | "colorChartsThresholdPositive" | "colorChartsThresholdInfo" | "colorChartsThresholdNeutral" | "colorChartsLineGrid" | "colorChartsLineTick" | "colorChartsLineAxis" | "colorChartsLabelAxis" | "colorChartsPaletteCategorical1" | "colorChartsPaletteCategorical2" | "colorChartsPaletteCategorical3" | "colorChartsPaletteCategorical4" | "colorChartsPaletteCategorical5" | "colorChartsPaletteCategorical6" | "colorChartsPaletteCategorical7" | "colorChartsPaletteCategorical8" | "colorChartsPaletteCategorical9" | "colorChartsPaletteCategorical10" | "colorChartsPaletteCategorical11" | "colorChartsPaletteCategorical12" | "colorChartsPaletteCategorical13" | "colorChartsPaletteCategorical14" | "colorChartsPaletteCategorical15" | "colorChartsPaletteCategorical16" | "colorChartsPaletteCategorical17" | "colorChartsPaletteCategorical18" | "colorChartsPaletteCategorical19" | "colorChartsPaletteCategorical20" | "colorChartsPaletteCategorical21" | "colorChartsPaletteCategorical22" | "colorChartsPaletteCategorical23" | "colorChartsPaletteCategorical24" | "colorChartsPaletteCategorical25" | "colorChartsPaletteCategorical26" | "colorChartsPaletteCategorical27" | "colorChartsPaletteCategorical28" | "colorChartsPaletteCategorical29" | "colorChartsPaletteCategorical30" | "colorChartsPaletteCategorical31" | "colorChartsPaletteCategorical32" | "colorChartsPaletteCategorical33" | "colorChartsPaletteCategorical34" | "colorChartsPaletteCategorical35" | "colorChartsPaletteCategorical36" | "colorChartsPaletteCategorical37" | "colorChartsPaletteCategorical38" | "colorChartsPaletteCategorical39" | "colorChartsPaletteCategorical40" | "colorChartsPaletteCategorical41" | "colorChartsPaletteCategorical42" | "colorChartsPaletteCategorical43" | "colorChartsPaletteCategorical44" | "colorChartsPaletteCategorical45" | "colorChartsPaletteCategorical46" | "colorChartsPaletteCategorical47" | "colorChartsPaletteCategorical48" | "colorChartsPaletteCategorical49" | "colorChartsPaletteCategorical50", ColorTokenValue>;
414
-
415
- export declare const categoricalChartsColors: ColorTokenValue[];
416
-
417
- export declare type CategoricalPaletteName = (typeof CATEGORICAL_PALETTE_NAMES)[number];
418
-
419
- /**
420
- * Changes the theme without transition
421
- * @param fn Callback function to change the theme
422
- */
423
- export declare const changeThemeWithoutTransition: (fn: () => void) => void;
424
-
425
- export declare const chartColorTokens: Record<"colorChartsRed300" | "colorChartsRed400" | "colorChartsRed500" | "colorChartsRed600" | "colorChartsRed700" | "colorChartsRed800" | "colorChartsRed900" | "colorChartsRed1000" | "colorChartsRed1100" | "colorChartsRed1200" | "colorChartsOrange300" | "colorChartsOrange400" | "colorChartsOrange500" | "colorChartsOrange600" | "colorChartsOrange700" | "colorChartsOrange800" | "colorChartsOrange900" | "colorChartsOrange1000" | "colorChartsOrange1100" | "colorChartsOrange1200" | "colorChartsYellow300" | "colorChartsYellow400" | "colorChartsYellow500" | "colorChartsYellow600" | "colorChartsYellow700" | "colorChartsYellow800" | "colorChartsYellow900" | "colorChartsYellow1000" | "colorChartsYellow1100" | "colorChartsYellow1200" | "colorChartsGreen300" | "colorChartsGreen400" | "colorChartsGreen500" | "colorChartsGreen600" | "colorChartsGreen700" | "colorChartsGreen800" | "colorChartsGreen900" | "colorChartsGreen1000" | "colorChartsGreen1100" | "colorChartsGreen1200" | "colorChartsTeal300" | "colorChartsTeal400" | "colorChartsTeal500" | "colorChartsTeal600" | "colorChartsTeal700" | "colorChartsTeal800" | "colorChartsTeal900" | "colorChartsTeal1000" | "colorChartsTeal1100" | "colorChartsTeal1200" | "colorChartsBlue1300" | "colorChartsBlue1400" | "colorChartsBlue1500" | "colorChartsBlue1600" | "colorChartsBlue1700" | "colorChartsBlue1800" | "colorChartsBlue1900" | "colorChartsBlue11000" | "colorChartsBlue11100" | "colorChartsBlue11200" | "colorChartsBlue2300" | "colorChartsBlue2400" | "colorChartsBlue2500" | "colorChartsBlue2600" | "colorChartsBlue2700" | "colorChartsBlue2800" | "colorChartsBlue2900" | "colorChartsBlue21000" | "colorChartsBlue21100" | "colorChartsBlue21200" | "colorChartsPurple300" | "colorChartsPurple400" | "colorChartsPurple500" | "colorChartsPurple600" | "colorChartsPurple700" | "colorChartsPurple800" | "colorChartsPurple900" | "colorChartsPurple1000" | "colorChartsPurple1100" | "colorChartsPurple1200" | "colorChartsPink300" | "colorChartsPink400" | "colorChartsPink500" | "colorChartsPink600" | "colorChartsPink700" | "colorChartsPink800" | "colorChartsPink900" | "colorChartsPink1000" | "colorChartsPink1100" | "colorChartsPink1200" | "colorChartsStatusCritical" | "colorChartsStatusHigh" | "colorChartsStatusMedium" | "colorChartsStatusLow" | "colorChartsStatusPositive" | "colorChartsStatusInfo" | "colorChartsStatusNeutral" | "colorChartsThresholdNegative" | "colorChartsThresholdPositive" | "colorChartsThresholdInfo" | "colorChartsThresholdNeutral" | "colorChartsLineGrid" | "colorChartsLineTick" | "colorChartsLineAxis" | "colorChartsLabelAxis" | "colorChartsPaletteCategorical1" | "colorChartsPaletteCategorical2" | "colorChartsPaletteCategorical3" | "colorChartsPaletteCategorical4" | "colorChartsPaletteCategorical5" | "colorChartsPaletteCategorical6" | "colorChartsPaletteCategorical7" | "colorChartsPaletteCategorical8" | "colorChartsPaletteCategorical9" | "colorChartsPaletteCategorical10" | "colorChartsPaletteCategorical11" | "colorChartsPaletteCategorical12" | "colorChartsPaletteCategorical13" | "colorChartsPaletteCategorical14" | "colorChartsPaletteCategorical15" | "colorChartsPaletteCategorical16" | "colorChartsPaletteCategorical17" | "colorChartsPaletteCategorical18" | "colorChartsPaletteCategorical19" | "colorChartsPaletteCategorical20" | "colorChartsPaletteCategorical21" | "colorChartsPaletteCategorical22" | "colorChartsPaletteCategorical23" | "colorChartsPaletteCategorical24" | "colorChartsPaletteCategorical25" | "colorChartsPaletteCategorical26" | "colorChartsPaletteCategorical27" | "colorChartsPaletteCategorical28" | "colorChartsPaletteCategorical29" | "colorChartsPaletteCategorical30" | "colorChartsPaletteCategorical31" | "colorChartsPaletteCategorical32" | "colorChartsPaletteCategorical33" | "colorChartsPaletteCategorical34" | "colorChartsPaletteCategorical35" | "colorChartsPaletteCategorical36" | "colorChartsPaletteCategorical37" | "colorChartsPaletteCategorical38" | "colorChartsPaletteCategorical39" | "colorChartsPaletteCategorical40" | "colorChartsPaletteCategorical41" | "colorChartsPaletteCategorical42" | "colorChartsPaletteCategorical43" | "colorChartsPaletteCategorical44" | "colorChartsPaletteCategorical45" | "colorChartsPaletteCategorical46" | "colorChartsPaletteCategorical47" | "colorChartsPaletteCategorical48" | "colorChartsPaletteCategorical49" | "colorChartsPaletteCategorical50", ColorTokenValue>;
426
-
427
- export declare interface CheckableTagProps extends CheckableTagProps_2 {
428
- size?: "small" | "medium" | "large";
429
- }
430
-
431
- export declare const Checkbox: ((props: CheckboxProps & {
432
- ref?: React.ForwardedRef<React.ComponentRef<typeof Checkbox_2>>;
433
- }) => ReturnType<typeof MainCheckboxInner>) & {
434
- Group: <T = any>(props: CheckboxGroupProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
435
- };
436
-
437
- export { CheckboxChangeEvent }
438
-
439
- export { CheckboxOptionType }
440
-
441
- export declare interface CheckboxProps extends CheckboxProps_2 {
442
- /**
443
- * Checkbox appearance variant
444
- * @default 'default'
445
- */
446
- variant?: "default" | "outlined";
447
- }
448
-
449
- export { CheckboxRef }
450
-
451
- export declare interface CheckInfo<TreeDataType extends BasicDataNode = TreeDataNode> {
452
- event: "check";
453
- node: EventDataNode<TreeDataType>;
454
- checked: boolean;
455
- nativeEvent: MouseEvent;
456
- checkedNodes: TreeDataType[];
457
- checkedNodesPositions?: {
458
- node: TreeDataType;
459
- pos: string;
460
- }[];
461
- halfCheckedKeys?: Key[];
462
- }
463
-
464
- declare type Children = {
465
- children?: default_2.ReactNode;
466
- };
467
-
468
- export declare const ChoiceList: <M extends boolean = false>({ options, multiple, value, defaultValue, onChange, searchProps, showSelectAll, className, placeholder, disabled: disabledProp, status: statusProp, getItemKeywords, ...rest }: ChoiceListProps<M>) => JSX.Element;
469
-
470
- export declare type ChoiceListOption = {
471
- label: React.ReactNode;
472
- value?: string;
473
- };
474
-
475
- export declare interface ChoiceListProps<M extends boolean = false> extends Omit<CommandProps, "value" | "onChange" | "defaultValue"> {
476
- options: ChoiceListOption[];
477
- multiple?: M;
478
- value?: M extends true ? string[] : string;
479
- defaultValue?: M extends true ? string[] : string;
480
- onChange?: (value: M extends true ? string[] : string) => void;
481
- searchProps?: React.ComponentProps<typeof pkg.Input>;
482
- /**
483
- * Show select all option when in multiple mode
484
- * @default false
485
- */
486
- showSelectAll?: boolean;
487
- placeholder?: string;
488
- /**
489
- * Whether the choice list is disabled
490
- * @default false
491
- */
492
- disabled?: boolean;
493
- /**
494
- * Validation status
495
- */
496
- status?: "error" | "warning" | "success" | "validating";
497
- /**
498
- * Function to extract keywords from the item for search filtering
499
- * @default (item) => [item.value, reactNodeToString(item.label)]
500
- */
501
- getItemKeywords?: (item: ChoiceListOption) => string[];
502
- }
503
-
504
- export declare interface ClassArray extends Array<ClassValue> {
505
- }
506
-
507
- export declare interface ClassDictionary {
508
- [id: string]: boolean | undefined | null;
509
- }
510
-
511
- export declare type ClassValue = string | number | boolean | null | undefined | ClassDictionary | ClassArray;
512
-
513
- export declare function clsx(...args: ClassValue[]): string;
514
-
515
- export declare function cn(...args: ClassValue[]): string;
516
-
517
- export declare const CodeBlock: ({ code, children, lang: defaultLang, className, options, activeOption: controlledActiveOption, defaultActiveOption, onActiveOptionChange, copyText, copySuccessText, classNames, maxHeight, onCopy, ...rest }: CodeBlockProps) => JSX.Element;
518
-
519
- export declare interface CodeBlockProps extends Omit<React.ComponentPropsWithRef<"div">, "onCopy"> {
520
- /**
521
- * The code to be highlighted
522
- */
523
- code?: string;
524
- /**
525
- * The language of the code
526
- * @default "tsx"
527
- */
528
- lang?: string;
529
- /**
530
- * Additional class name for the component
531
- */
532
- className?: string;
533
- /**
534
- * Options for the code block
535
- * @default []
536
- */
537
- options?: CodeOption[];
538
- /**
539
- * The active option when the component is controlled
540
- */
541
- activeOption?: number;
542
- /**
543
- * The default active option when the component is uncontrolled
544
- * @default 0
545
- */
546
- defaultActiveOption?: number;
547
- /**
548
- * Callback function when the active option changes
549
- */
550
- onActiveOptionChange?: (option: number) => void;
551
- /**
552
- * Copy text label
553
- */
554
- copyText?: string;
555
- /**
556
- * Copy success text label
557
- */
558
- copySuccessText?: string;
559
- /**
560
- * Custom class names for each part of the code block
561
- */
562
- classNames?: {
563
- root?: string;
564
- content?: string;
565
- header?: string;
566
- };
567
- /**
568
- * Maximum height of the code block
569
- */
570
- maxHeight?: string | number;
571
- /**
572
- * Copy callback function
573
- */
574
- onCopy?: (code?: string) => void;
575
- }
576
-
577
- export declare interface CodeOption {
578
- label: string;
579
- code: string;
580
- lang?: HighlightProps["language"];
581
- }
582
-
583
- export { Col }
584
-
585
- export declare const Collapse: ((props: CollapseProps & {
586
- ref?: React.ForwardedRef<HTMLDivElement>;
587
- }) => ReturnType<typeof CollapseInner>) & {
588
- Panel: (props: CollapsePanelProps) => JSX.Element;
589
- };
590
-
591
- declare const CollapseInner: (props: CollapseProps, ref: ForwardedRef<HTMLDivElement>) => JSX.Element;
592
-
593
- export declare interface CollapsePanelProps extends CollapsePanelProps_2 {
594
- }
595
-
596
- export declare interface CollapseProps extends CollapseProps_2 {
597
- }
598
-
599
- export declare const COLORBREWER: {
600
- YlGn: {
601
- 3: string[];
602
- 4: string[];
603
- 5: string[];
604
- 6: string[];
605
- 7: string[];
606
- 8: string[];
607
- 9: string[];
608
- };
609
- YlGnBu: {
610
- 3: string[];
611
- 4: string[];
612
- 5: string[];
613
- 6: string[];
614
- 7: string[];
615
- 8: string[];
616
- 9: string[];
617
- };
618
- GnBu: {
619
- 3: string[];
620
- 4: string[];
621
- 5: string[];
622
- 6: string[];
623
- 7: string[];
624
- 8: string[];
625
- 9: string[];
626
- };
627
- BuGn: {
628
- 3: string[];
629
- 4: string[];
630
- 5: string[];
631
- 6: string[];
632
- 7: string[];
633
- 8: string[];
634
- 9: string[];
635
- };
636
- PuBuGn: {
637
- 3: string[];
638
- 4: string[];
639
- 5: string[];
640
- 6: string[];
641
- 7: string[];
642
- 8: string[];
643
- 9: string[];
644
- };
645
- PuBu: {
646
- 3: string[];
647
- 4: string[];
648
- 5: string[];
649
- 6: string[];
650
- 7: string[];
651
- 8: string[];
652
- 9: string[];
653
- };
654
- BuPu: {
655
- 3: string[];
656
- 4: string[];
657
- 5: string[];
658
- 6: string[];
659
- 7: string[];
660
- 8: string[];
661
- 9: string[];
662
- };
663
- RdPu: {
664
- 3: string[];
665
- 4: string[];
666
- 5: string[];
667
- 6: string[];
668
- 7: string[];
669
- 8: string[];
670
- 9: string[];
671
- };
672
- PuRd: {
673
- 3: string[];
674
- 4: string[];
675
- 5: string[];
676
- 6: string[];
677
- 7: string[];
678
- 8: string[];
679
- 9: string[];
680
- };
681
- OrRd: {
682
- 3: string[];
683
- 4: string[];
684
- 5: string[];
685
- 6: string[];
686
- 7: string[];
687
- 8: string[];
688
- 9: string[];
689
- };
690
- YlOrRd: {
691
- 3: string[];
692
- 4: string[];
693
- 5: string[];
694
- 6: string[];
695
- 7: string[];
696
- 8: string[];
697
- 9: string[];
698
- };
699
- YlOrBr: {
700
- 3: string[];
701
- 4: string[];
702
- 5: string[];
703
- 6: string[];
704
- 7: string[];
705
- 8: string[];
706
- 9: string[];
707
- };
708
- Purples: {
709
- 3: string[];
710
- 4: string[];
711
- 5: string[];
712
- 6: string[];
713
- 7: string[];
714
- 8: string[];
715
- 9: string[];
716
- };
717
- Blues: {
718
- 3: string[];
719
- 4: string[];
720
- 5: string[];
721
- 6: string[];
722
- 7: string[];
723
- 8: string[];
724
- 9: string[];
725
- };
726
- Greens: {
727
- 3: string[];
728
- 4: string[];
729
- 5: string[];
730
- 6: string[];
731
- 7: string[];
732
- 8: string[];
733
- 9: string[];
734
- };
735
- Oranges: {
736
- 3: string[];
737
- 4: string[];
738
- 5: string[];
739
- 6: string[];
740
- 7: string[];
741
- 8: string[];
742
- 9: string[];
743
- };
744
- Reds: {
745
- 3: string[];
746
- 4: string[];
747
- 5: string[];
748
- 6: string[];
749
- 7: string[];
750
- 8: string[];
751
- 9: string[];
752
- };
753
- Greys: {
754
- 3: string[];
755
- 4: string[];
756
- 5: string[];
757
- 6: string[];
758
- 7: string[];
759
- 8: string[];
760
- 9: string[];
761
- };
762
- PuOr: {
763
- 3: string[];
764
- 4: string[];
765
- 5: string[];
766
- 6: string[];
767
- 7: string[];
768
- 8: string[];
769
- 9: string[];
770
- 10: string[];
771
- 11: string[];
772
- };
773
- BrBG: {
774
- 3: string[];
775
- 4: string[];
776
- 5: string[];
777
- 6: string[];
778
- 7: string[];
779
- 8: string[];
780
- 9: string[];
781
- 10: string[];
782
- 11: string[];
783
- };
784
- PRGn: {
785
- 3: string[];
786
- 4: string[];
787
- 5: string[];
788
- 6: string[];
789
- 7: string[];
790
- 8: string[];
791
- 9: string[];
792
- 10: string[];
793
- 11: string[];
794
- };
795
- PiYG: {
796
- 3: string[];
797
- 4: string[];
798
- 5: string[];
799
- 6: string[];
800
- 7: string[];
801
- 8: string[];
802
- 9: string[];
803
- 10: string[];
804
- 11: string[];
805
- };
806
- RdBu: {
807
- 3: string[];
808
- 4: string[];
809
- 5: string[];
810
- 6: string[];
811
- 7: string[];
812
- 8: string[];
813
- 9: string[];
814
- 10: string[];
815
- 11: string[];
816
- };
817
- RdGy: {
818
- 3: string[];
819
- 4: string[];
820
- 5: string[];
821
- 6: string[];
822
- 7: string[];
823
- 8: string[];
824
- 9: string[];
825
- 10: string[];
826
- 11: string[];
827
- };
828
- RdYlBu: {
829
- 3: string[];
830
- 4: string[];
831
- 5: string[];
832
- 6: string[];
833
- 7: string[];
834
- 8: string[];
835
- 9: string[];
836
- 10: string[];
837
- 11: string[];
838
- };
839
- Spectral: {
840
- 3: string[];
841
- 4: string[];
842
- 5: string[];
843
- 6: string[];
844
- 7: string[];
845
- 8: string[];
846
- 9: string[];
847
- 10: string[];
848
- 11: string[];
849
- };
850
- RdYlGn: {
851
- 3: string[];
852
- 4: string[];
853
- 5: string[];
854
- 6: string[];
855
- 7: string[];
856
- 8: string[];
857
- 9: string[];
858
- 10: string[];
859
- 11: string[];
860
- };
861
- Accent: {
862
- 3: string[];
863
- 4: string[];
864
- 5: string[];
865
- 6: string[];
866
- 7: string[];
867
- 8: string[];
868
- };
869
- Dark2: {
870
- 3: string[];
871
- 4: string[];
872
- 5: string[];
873
- 6: string[];
874
- 7: string[];
875
- 8: string[];
876
- };
877
- Paired: {
878
- 3: string[];
879
- 4: string[];
880
- 5: string[];
881
- 6: string[];
882
- 7: string[];
883
- 8: string[];
884
- 9: string[];
885
- 10: string[];
886
- 11: string[];
887
- 12: string[];
888
- };
889
- Pastel1: {
890
- 3: string[];
891
- 4: string[];
892
- 5: string[];
893
- 6: string[];
894
- 7: string[];
895
- 8: string[];
896
- 9: string[];
897
- };
898
- Pastel2: {
899
- 3: string[];
900
- 4: string[];
901
- 5: string[];
902
- 6: string[];
903
- 7: string[];
904
- 8: string[];
905
- };
906
- Set1: {
907
- 3: string[];
908
- 4: string[];
909
- 5: string[];
910
- 6: string[];
911
- 7: string[];
912
- 8: string[];
913
- 9: string[];
914
- };
915
- Set2: {
916
- 3: string[];
917
- 4: string[];
918
- 5: string[];
919
- 6: string[];
920
- 7: string[];
921
- 8: string[];
922
- };
923
- Set3: {
924
- 3: string[];
925
- 4: string[];
926
- 5: string[];
927
- 6: string[];
928
- 7: string[];
929
- 8: string[];
930
- 9: string[];
931
- 10: string[];
932
- 11: string[];
933
- 12: string[];
934
- };
935
- };
936
-
937
- export { ColorPicker }
938
-
939
- export { ColorPickerProps }
940
-
941
- export declare const ColorSelect: default_2.ForwardRefExoticComponent<Omit<{
942
- [x: string]: any;
943
- className: any;
944
- value: any;
945
- defaultValue: any;
946
- onChange: any;
947
- colorPickerProps: any;
948
- presetColors: any;
949
- open: any;
950
- onOpenChange: any;
951
- defaultOpen: any;
952
- }, "ref"> & default_2.RefAttributes<HTMLInputElement>>;
953
-
954
- /**
955
- * Props for the ColorSelect component.
956
- */
957
- export declare interface ColorSelectProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange"> {
958
- /** Controlled list of selected hex colors */
959
- value?: string[];
960
- /** Default list of selected hex colors for uncontrolled usage */
961
- defaultValue?: string[];
962
- /** Callback invoked when selected colors change */
963
- onChange?: (value: string[]) => void;
964
- /** Props to pass through to the Ant Design ColorPicker, excluding value/onChange/onChangeComplete */
965
- colorPickerProps?: Omit<ColorPickerProps_2, "value" | "onChange" | "onChangeComplete">;
966
- /** Preset color swatches displayed in the picker */
967
- presetColors?: string[];
968
- /** Controlled open state of the ColorPicker dropdown */
969
- open?: boolean;
970
- /** Callback invoked when open state changes */
971
- onOpenChange?: (open: boolean) => void;
972
- /** Default open state for uncontrolled usage */
973
- defaultOpen?: boolean;
974
- }
975
-
976
- export declare type ColorTokens = {
977
- [key: string]: RawColorTokenValue;
978
- };
979
-
980
- export declare type ColorTokenValue = {
981
- light: string;
982
- dark: string;
983
- };
984
-
985
- export { ColProps }
986
-
987
- export declare const Combobox: default_2.ForwardRefExoticComponent<ComboboxProps & default_2.RefAttributes<HTMLDivElement>>;
988
-
989
- export declare interface ComboboxOption {
990
- value: string | number;
991
- label: default_2.ReactNode;
992
- disabled?: boolean;
993
- icon?: default_2.ReactNode;
994
- }
995
-
996
- export declare interface ComboboxProps {
997
- /** Array of options to be displayed in the combobox */
998
- options?: ComboboxOption[];
999
- /** Current value of the combobox */
1000
- value?: string | number | Array<string | number>;
1001
- /** Default value when uncontrolled */
1002
- defaultValue?: string | number | Array<string | number>;
1003
- /** Callback when value changes */
1004
- onChange?: (value: string | number | Array<string | number>) => void;
1005
- /** Placeholder text for the input */
1006
- placeholder?: string;
1007
- /** Whether the combobox is disabled */
1008
- disabled?: boolean;
1009
- /** Validation status */
1010
- status?: ValidateStatus;
1011
- /** Whether to allow clearing the selection */
1012
- allowClear?: boolean;
1013
- /** Whether to allow multiple selections */
1014
- multiple?: boolean;
1015
- /** Maximum number of tags to show */
1016
- maxTagCount?: number;
1017
- /** Whether to show search functionality */
1018
- showSearch?: boolean;
1019
- /** Controlled open state */
1020
- open?: boolean;
1021
- /** Callback when open state changes */
1022
- onOpenChange?: (open: boolean) => void;
1023
- /** Placement of the dropdown */
1024
- placement?: PopoverProps_2["placement"];
1025
- /** Custom className for the component */
1026
- className?: string;
1027
- /** Custom class names for different parts */
1028
- classNames?: {
1029
- trigger?: string;
1030
- input?: string;
1031
- option?: string;
1032
- optionIcon?: string;
1033
- optionText?: string;
1034
- };
1035
- /** Size of the combobox */
1036
- size?: "small" | "middle" | "large";
1037
- /** Loading state */
1038
- loading?: boolean;
1039
- /** Custom render for options */
1040
- optionRender?: (option: ComboboxOption, props: default_2.HTMLAttributes<HTMLElement>) => default_2.ReactElement;
1041
- /** Filter function for search */
1042
- filterOption?: boolean | ((input: string, option: ComboboxOption) => boolean);
1043
- /** Callback when search input changes */
1044
- onSearch?: (value: string) => void;
1045
- /** Custom dropdown render */
1046
- dropdownRender?: (menu: default_2.ReactElement) => default_2.ReactElement;
1047
- /** Custom clear icon */
1048
- clearIcon?: default_2.ReactNode;
1049
- /** Custom suffix icon */
1050
- suffixIcon?: default_2.ReactNode;
1051
- /**
1052
- * Props to pass to the dropdown menu
1053
- */
1054
- dropdownMenuProps?: DropdownMenuProps;
1055
- /**
1056
- * Props to pass to the combobox trigger
1057
- */
1058
- triggerProps?: default_2.ComponentPropsWithoutRef<typeof SelectTrigger>;
1059
- searchProps?: {
1060
- placeholder?: string;
1061
- onValueChange?: (value: string) => void;
1062
- value?: string;
1063
- };
1064
- /**
1065
- * Show selection summary instead of individual tags when multiple
1066
- * @default false
1067
- */
1068
- showSelectionSummary?: boolean;
1069
- /**
1070
- * Render function for the selection summary in multiple case
1071
- * @default (selectedValues) => `${selectedValues.length} items selected`
1072
- */
1073
- selectionSummaryRender?: (selectedValues: Array<string | number>) => default_2.ReactNode;
1074
- /**
1075
- * Show select all option when in multiple mode
1076
- * @default false
1077
- */
1078
- showSelectAll?: boolean;
1079
- /**
1080
- * Render function for the select all option
1081
- */
1082
- selectAllRender?: (props: {
1083
- onSelectAll: () => void;
1084
- onDeselectAll: () => void;
1085
- checked: boolean;
1086
- indeterminate: boolean;
1087
- }) => default_2.ReactNode;
1088
- /**
1089
- * Function to extract keywords from the item for search filtering
1090
- * @default (option) => [String(option.key), reactNodeToString(option.label)]
1091
- */
1092
- getOptionKeywords?: (option: DropdownMenuItemType & {
1093
- type: "item";
1094
- }) => string[];
1095
- }
1096
-
1097
- declare type CommandFilter = (value: string, search: string, keywords?: string[]) => number;
1098
-
1099
- export declare const CommandPalette: default_2.FC<CommandPaletteProps>;
1100
-
1101
- export declare interface CommandPaletteProps {
1102
- /** Whether the command palette is open */
1103
- open?: boolean;
1104
- /** Callback fired when the open state changes */
1105
- onOpenChange?: (open: boolean) => void;
1106
- /**
1107
- * Default open state
1108
- */
1109
- defaultOpen?: boolean;
1110
- /** Items to display in the command palette */
1111
- items?: DropdownMenuItemType[];
1112
- /** Keyboard shortcuts to open the palette */
1113
- shortcuts?: CommandPaletteShortcut[];
1114
- /** Placeholder text for the search input */
1115
- placeholder?: string;
1116
- /** Text to show when no results are found */
1117
- emptyText?: string;
1118
- /** Accessible label for the command palette */
1119
- label?: string;
1120
- /** Additional CSS class names */
1121
- className?: string;
1122
- classNames?: {
1123
- root?: string;
1124
- mask?: string;
1125
- content?: string;
1126
- group?: string;
1127
- item?: string;
1128
- groupLabel?: string;
1129
- };
1130
- }
1131
-
1132
- export declare type CommandPaletteShortcut = {
1133
- key: string;
1134
- metaKey?: boolean;
1135
- ctrlKey?: boolean;
1136
- altKey?: boolean;
1137
- shiftKey?: boolean;
1138
- };
1139
-
1140
- declare type CommandProps = Children & DivProps & {
1141
- /**
1142
- * Accessible label for this command menu. Not shown visibly.
1143
- */
1144
- label?: string;
1145
- /**
1146
- * Optionally set to `false` to turn off the automatic filtering and sorting.
1147
- * If `false`, you must conditionally render valid items based on the search query yourself.
1148
- */
1149
- shouldFilter?: boolean;
1150
- /**
1151
- * Custom filter function for whether each command menu item should matches the given search query.
1152
- * It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
1153
- * By default, uses the `command-score` library.
1154
- */
1155
- filter?: CommandFilter;
1156
- /**
1157
- * Optional default item value when it is initially rendered.
1158
- */
1159
- defaultValue?: string;
1160
- /**
1161
- * Optional controlled state of the selected command menu item.
1162
- */
1163
- value?: string;
1164
- /**
1165
- * Event handler called when the selected item of the menu changes.
1166
- */
1167
- onValueChange?: (value: string) => void;
1168
- /**
1169
- * Optionally set to `true` to turn on looping around when using the arrow keys.
1170
- */
1171
- loop?: boolean;
1172
- /**
1173
- * Optionally set to `true` to disable selection via pointer events.
1174
- */
1175
- disablePointerSelection?: boolean;
1176
- /**
1177
- * Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
1178
- */
1179
- vimBindings?: boolean;
1180
- };
1181
-
1182
- export declare type ComponentCategory = "Actions" | "General" | "Layout" | "Navigation" | "Data Entry" | "Data Display" | "Feedback" | "Overlay" | "Utility";
1183
-
1184
- /**
1185
- * Component metadata for the BioTuring Design System
1186
- * This file provides information about all components including:
1187
- * - name: Component name
1188
- * - link: Documentation link
1189
- * - base: What the component is based on (antd, base-ui, or custom)
1190
- * - refinements: Whether the component has been refined beyond its base
1191
- * - category: Component category for organization
1192
- * - packages: Additional packages used by the component
1193
- */
1194
- export declare type ComponentMetadata = {
1195
- name: string;
1196
- link: string;
1197
- base: "antd" | "base-ui" | "custom";
1198
- refinements: string[];
1199
- category: ComponentCategory;
1200
- packages?: string[];
1201
- originalDocUrl?: string;
1202
- description?: string;
1203
- };
1204
-
1205
- export declare const componentMetadata: {
1206
- ChoiceList: {
1207
- name: string;
1208
- link: string;
1209
- base: "custom";
1210
- refinements: string[];
1211
- category: "Data Entry";
1212
- description: string;
1213
- };
1214
- DragDrop: {
1215
- name: string;
1216
- link: string;
1217
- base: "custom";
1218
- refinements: string[];
1219
- category: "Data Entry";
1220
- description: string;
1221
- };
1222
- Badge: {
1223
- name: string;
1224
- link: string;
1225
- base: "antd";
1226
- refinements: string[];
1227
- category: "Data Display";
1228
- originalDocUrl: string;
1229
- description: string;
1230
- };
1231
- Breadcrumb: {
1232
- name: string;
1233
- link: string;
1234
- base: "antd";
1235
- refinements: string[];
1236
- category: "Navigation";
1237
- originalDocUrl: string;
1238
- description: string;
1239
- };
1240
- Button: {
1241
- name: string;
1242
- link: string;
1243
- base: "antd";
1244
- refinements: any[];
1245
- category: "Actions";
1246
- originalDocUrl: string;
1247
- description: string;
1248
- };
1249
- Checkbox: {
1250
- name: string;
1251
- link: string;
1252
- base: "antd";
1253
- refinements: any[];
1254
- category: "Data Entry";
1255
- originalDocUrl: string;
1256
- description: string;
1257
- };
1258
- CodeBlock: {
1259
- name: string;
1260
- link: string;
1261
- base: "custom";
1262
- refinements: string[];
1263
- category: "Data Display";
1264
- packages: string[];
1265
- description: string;
1266
- };
1267
- Collapse: {
1268
- name: string;
1269
- link: string;
1270
- base: "antd";
1271
- refinements: any[];
1272
- category: "Data Display";
1273
- originalDocUrl: string;
1274
- description: string;
1275
- };
1276
- DropdownMenu: {
1277
- name: string;
1278
- link: string;
1279
- base: "base-ui";
1280
- refinements: string[];
1281
- category: "Navigation";
1282
- packages: string[];
1283
- originalDocUrl: string;
1284
- description: string;
1285
- };
1286
- Nav: {
1287
- name: string;
1288
- link: string;
1289
- base: "custom";
1290
- refinements: string[];
1291
- category: "Navigation";
1292
- description: string;
1293
- };
1294
- Empty: {
1295
- name: string;
1296
- link: string;
1297
- base: "antd";
1298
- refinements: string[];
1299
- category: "Data Display";
1300
- originalDocUrl: string;
1301
- description: string;
1302
- };
1303
- Field: {
1304
- name: string;
1305
- link: string;
1306
- base: "custom";
1307
- refinements: string[];
1308
- category: "Data Entry";
1309
- description: string;
1310
- };
1311
- Form: {
1312
- name: string;
1313
- link: string;
1314
- base: "antd";
1315
- refinements: any[];
1316
- category: "Data Entry";
1317
- originalDocUrl: string;
1318
- description: string;
1319
- };
1320
- IconButton: {
1321
- name: string;
1322
- link: string;
1323
- base: "custom";
1324
- refinements: string[];
1325
- category: "Actions";
1326
- description: string;
1327
- };
1328
- Input: {
1329
- name: string;
1330
- link: string;
1331
- base: "antd";
1332
- refinements: any[];
1333
- category: "Data Entry";
1334
- originalDocUrl: string;
1335
- description: string;
1336
- };
1337
- Message: {
1338
- name: string;
1339
- link: string;
1340
- base: "antd";
1341
- refinements: any[];
1342
- category: "Feedback";
1343
- originalDocUrl: string;
1344
- description: string;
1345
- };
1346
- Modal: {
1347
- name: string;
1348
- link: string;
1349
- base: "antd";
1350
- refinements: string[];
1351
- category: "Overlay";
1352
- originalDocUrl: string;
1353
- description: string;
1354
- };
1355
- Popover: {
1356
- name: string;
1357
- link: string;
1358
- base: "antd";
1359
- refinements: any[];
1360
- category: "Overlay";
1361
- originalDocUrl: string;
1362
- description: string;
1363
- };
1364
- PopupPanel: {
1365
- name: string;
1366
- link: string;
1367
- base: "base-ui";
1368
- refinements: string[];
1369
- category: "Overlay";
1370
- packages: string[];
1371
- originalDocUrl: string;
1372
- description: string;
1373
- };
1374
- Resizable: {
1375
- name: string;
1376
- link: string;
1377
- base: "custom";
1378
- refinements: string[];
1379
- category: "Utility";
1380
- packages: string[];
1381
- description: string;
1382
- };
1383
- Radio: {
1384
- name: string;
1385
- link: string;
1386
- base: "antd";
1387
- refinements: any[];
1388
- category: "Data Entry";
1389
- originalDocUrl: string;
1390
- description: string;
1391
- };
1392
- ScrollArea: {
1393
- name: string;
1394
- link: string;
1395
- base: "base-ui";
1396
- refinements: string[];
1397
- category: "Layout";
1398
- packages: string[];
1399
- originalDocUrl: string;
1400
- description: string;
1401
- };
1402
- Segmented: {
1403
- name: string;
1404
- link: string;
1405
- base: "antd";
1406
- refinements: string[];
1407
- category: "Data Entry";
1408
- originalDocUrl: string;
1409
- description: string;
1410
- };
1411
- Select: {
1412
- name: string;
1413
- link: string;
1414
- base: "antd";
1415
- refinements: string[];
1416
- category: "Data Entry";
1417
- packages: string[];
1418
- originalDocUrl: string;
1419
- description: string;
1420
- };
1421
- Slider: {
1422
- name: string;
1423
- link: string;
1424
- base: "antd";
1425
- refinements: string[];
1426
- category: "Data Entry";
1427
- originalDocUrl: string;
1428
- description: string;
1429
- };
1430
- Loader: {
1431
- name: string;
1432
- link: string;
1433
- base: "custom";
1434
- refinements: string[];
1435
- category: "Feedback";
1436
- description: string;
1437
- };
1438
- Spin: {
1439
- name: string;
1440
- link: string;
1441
- base: "antd";
1442
- refinements: any[];
1443
- category: "Feedback";
1444
- originalDocUrl: string;
1445
- description: string;
1446
- };
1447
- Splitter: {
1448
- name: string;
1449
- link: string;
1450
- base: "antd";
1451
- refinements: string[];
1452
- category: "Layout";
1453
- description: string;
1454
- };
1455
- Stack: {
1456
- name: string;
1457
- link: string;
1458
- base: "custom";
1459
- refinements: string[];
1460
- category: "Layout";
1461
- description: string;
1462
- };
1463
- Switch: {
1464
- name: string;
1465
- link: string;
1466
- base: "antd";
1467
- refinements: string[];
1468
- category: "Data Entry";
1469
- originalDocUrl: string;
1470
- description: string;
1471
- };
1472
- Table: {
1473
- name: string;
1474
- link: string;
1475
- base: "antd";
1476
- refinements: string[];
1477
- category: "Data Display";
1478
- originalDocUrl: string;
1479
- description: string;
1480
- };
1481
- Tag: {
1482
- name: string;
1483
- link: string;
1484
- base: "antd";
1485
- refinements: string[];
1486
- category: "Data Display";
1487
- originalDocUrl: string;
1488
- description: string;
1489
- };
1490
- Combobox: {
1491
- name: string;
1492
- link: string;
1493
- base: "custom";
1494
- refinements: string[];
1495
- category: "Data Entry";
1496
- packages: string[];
1497
- description: string;
1498
- };
1499
- ColorSelect: {
1500
- name: string;
1501
- link: string;
1502
- base: "antd";
1503
- refinements: string[];
1504
- category: "Data Entry";
1505
- description: string;
1506
- };
1507
- ThemeProvider: {
1508
- name: string;
1509
- link: string;
1510
- base: "custom";
1511
- refinements: string[];
1512
- category: "Utility";
1513
- description: string;
1514
- };
1515
- Toast: {
1516
- name: string;
1517
- link: string;
1518
- base: "base-ui";
1519
- refinements: string[];
1520
- category: "Feedback";
1521
- packages: string[];
1522
- originalDocUrl: string;
1523
- description: string;
1524
- };
1525
- Tooltip: {
1526
- name: string;
1527
- link: string;
1528
- base: "antd";
1529
- refinements: string[];
1530
- category: "Overlay";
1531
- originalDocUrl: string;
1532
- description: string;
1533
- };
1534
- Tour: {
1535
- name: string;
1536
- link: string;
1537
- base: "antd";
1538
- refinements: string[];
1539
- category: "Feedback";
1540
- originalDocUrl: string;
1541
- description: string;
1542
- };
1543
- Transition: {
1544
- name: string;
1545
- link: string;
1546
- base: "base-ui";
1547
- refinements: string[];
1548
- category: "Utility";
1549
- packages: string[];
1550
- originalDocUrl: string;
1551
- description: string;
1552
- };
1553
- Typography: {
1554
- name: string;
1555
- link: string;
1556
- base: "antd";
1557
- refinements: string[];
1558
- category: "Data Display";
1559
- originalDocUrl: string;
1560
- description: string;
1561
- };
1562
- Tree: {
1563
- name: string;
1564
- link: string;
1565
- base: "antd";
1566
- refinements: string[];
1567
- category: "Data Display";
1568
- packages: string[];
1569
- originalDocUrl: string;
1570
- description: string;
1571
- };
1572
- Truncate: {
1573
- name: string;
1574
- link: string;
1575
- base: "custom";
1576
- refinements: string[];
1577
- category: "Data Display";
1578
- description: string;
1579
- };
1580
- Upload: {
1581
- name: string;
1582
- link: string;
1583
- base: "antd";
1584
- refinements: string[];
1585
- category: "Data Entry";
1586
- originalDocUrl: string;
1587
- description: string;
1588
- };
1589
- StatusIcon: {
1590
- name: string;
1591
- link: string;
1592
- base: "custom";
1593
- refinements: string[];
1594
- category: "Feedback";
1595
- description: string;
1596
- };
1597
- CommandPalette: {
1598
- name: string;
1599
- link: string;
1600
- base: "custom";
1601
- refinements: string[];
1602
- category: "Navigation";
1603
- packages: string[];
1604
- description: string;
1605
- };
1606
- KeyboardShortcut: {
1607
- name: string;
1608
- link: string;
1609
- base: "custom";
1610
- refinements: string[];
1611
- category: "Data Display";
1612
- description: string;
1613
- };
1614
- VerticalCollapsiblePanel: {
1615
- name: string;
1616
- link: string;
1617
- base: "base-ui";
1618
- refinements: string[];
1619
- category: "Layout";
1620
- packages: string[];
1621
- originalDocUrl: string;
1622
- description: string;
1623
- };
1624
- };
1625
-
1626
- export { ConfigProvider }
1627
-
1628
- export { ConfigProviderProps }
1629
-
1630
- export { CountdownProps }
1631
-
1632
- export declare function cx(...args: ClassValue[]): string[];
1633
-
1634
- export declare const darkTheme: ThemeConfig;
1635
-
1636
- export { DatePicker }
1637
-
1638
- export { DatePickerProps }
1639
-
1640
- export declare const DefaultUpload: ({ showRemoveButton, className, fileList, children, ...restProps }: UploadProps) => JSX.Element;
1641
-
1642
- export { Descriptions }
1643
-
1644
- export { DescriptionsProps }
1645
-
1646
- declare const DirectoryTreeInner: <T extends DataNode = TreeDataNode>(props: DirectoryTreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
1647
-
1648
- export declare interface DirectoryTreeProps<T extends DataNode = TreeDataNode> extends Omit<DirectoryTreeProps_2<T>, "treeData" | "expandedKeys" | "defaultExpandedKeys" | "onExpand" | "checkedKeys" | "defaultCheckedKeys" | "onCheck" | "draggable"> {
1649
- treeData?: T[];
1650
- expandedKeys?: Key[];
1651
- defaultExpandedKeys?: Key[];
1652
- onExpand?: (expandedKeys: Key[], info: ExpandInfo<T>) => void;
1653
- checkedKeys?: Key[] | {
1654
- checked: Key[];
1655
- halfChecked: Key[];
1656
- };
1657
- defaultCheckedKeys?: Key[];
1658
- onCheck?: (checkedKeys: Key[], info: CheckInfo<T> & {
1659
- triggeredOriginalKey?: Key;
1660
- }) => void;
1661
- allowDuplicatedKeys?: boolean;
1662
- /** Draggable configuration for directory tree items */
1663
- draggable?: DirectoryTreeProps_2<T>["draggable"];
1664
- }
1665
-
1666
- export { Divider }
1667
-
1668
- export { DividerProps }
1669
-
1670
- declare type DivProps = WithRenderPropProps<"div">;
1671
-
1672
- export declare type DragData = unknown;
1673
-
1674
- /**
1675
- * Drag component with subcomponents
1676
- */
1677
- export declare const DragDrop: typeof DragDropRoot & {
1678
- /**
1679
- * Item that can be dragged
1680
- */
1681
- Draggable: <T extends DragData = unknown>({ id, children, className, disabled, data, style, render, onDragEnd, onDragStart, indicator, onlyIndicatorDraggable, ...rest }: DragDropDraggableProps<T>) => null;
1682
- /**
1683
- * Zone where items can be dropped
1684
- */
1685
- Droppable: <T extends DragData = unknown, M extends boolean = false>({ id, children, className, disabled, placeholder, icon, render, onDrop, validate, multiple, value, onChange, maxItems, renderValueLabel, renderValueIcon, ...rest }: DragDropDroppableProps<T, M>) => null;
1686
- /**
1687
- * Value component to display the value of the dragged item
1688
- */
1689
- Value: <T extends DragData, M extends boolean>(props: DragDropValueProps_2<T, M> & {
1690
- ref?: ForwardedRef<HTMLDivElement>;
1691
- }) => ReturnType<(<T_1 extends DragData, M_1 extends boolean>({ value, onChange, multiple, renderValueLabel, renderValueIcon, className, style, maxItems, ...rest }: DragDropValueProps_2<T_1, M_1>, ref: ForwardedRef<HTMLDivElement>) => JSX.Element)>;
1692
- };
1693
-
1694
- /**
1695
- * Props for the draggable item component
1696
- */
1697
- export declare interface DragDropDraggableProps<T extends DragData = DragData> extends Omit<React.ComponentPropsWithoutRef<"div">, "id" | "onDragEnd" | "onDragStart"> {
1698
- /**
1699
- * Unique identifier for the draggable item
1700
- */
1701
- id: UniqueIdentifier;
1702
- /**
1703
- * Whether the item is disabled from being dragged
1704
- * @default false
1705
- */
1706
- disabled?: boolean;
1707
- /**
1708
- * Data to be passed to the drag event
1709
- */
1710
- data?: T;
1711
- /**
1712
- * Function to render the item
1713
- */
1714
- render?: useRender.RenderProp<DraggableInfo<T> & {
1715
- isDragging: boolean;
1716
- }>;
1717
- /**
1718
- * Callback fired when the drag operation ends
1719
- */
1720
- onDragEnd?: (event: DragEndEvent<T>) => void;
1721
- /**
1722
- * Callback fired when the drag operation starts
1723
- */
1724
- onDragStart?: (event: DragStartEvent<T>) => void;
1725
- /**
1726
- * Indicator to display if item is draggable
1727
- * @default false
1728
- */
1729
- indicator?: ReactNode | boolean;
1730
- /**
1731
- * Whether if only indicator is draggable
1732
- * @default false
1733
- */
1734
- onlyIndicatorDraggable?: boolean;
1735
- }
1736
-
1737
- declare type DragDropDropableRenderFnProps<T extends DragData = DragData, M extends boolean = false> = {
1738
- isOver: boolean;
1739
- id: UniqueIdentifier;
1740
- value: M extends true ? T[] : T;
1741
- onChange: (value: M extends true ? T[] : T) => void;
1742
- };
1743
-
1744
- /**
1745
- * Props for the DropZone component
1746
- */
1747
- export declare interface DragDropDroppableProps<T extends DragData = DragData, M extends boolean = false> extends Omit<React.ComponentPropsWithoutRef<"div">, "id" | "onDragEnter" | "onDragOver" | "onDragLeave" | "onDrop" | "onChange">, Omit<DragDropValueProps<T, M>, "id"> {
1748
- /**
1749
- * Unique identifier for the droppable area
1750
- */
1751
- id: UniqueIdentifier;
1752
- /**
1753
- * Whether the drop zone is disabled
1754
- * @default false
1755
- */
1756
- disabled?: boolean;
1757
- /**
1758
- * Text to display when no children are provided
1759
- * @default "Drop items here"
1760
- */
1761
- placeholder?: ReactNode;
1762
- /**
1763
- * Icon to display when no children are provided
1764
- */
1765
- icon?: ReactNode;
1766
- /**
1767
- * Custom render function
1768
- */
1769
- render?: useRender.RenderProp<DragDropDropableRenderFnProps<T, M>>;
1770
- /**
1771
- * Callback fired when an item is dropped on this zone
1772
- */
1773
- onDrop?: (item: {
1774
- id: UniqueIdentifier;
1775
- data: T;
1776
- }) => void;
1777
- /**
1778
- * Validate if the item can be dropped
1779
- */
1780
- validate?: (item: DraggableInfo<T>) => boolean;
1781
- }
1782
-
1783
- /**
1784
- * Props for the Drag component
1785
- */
1786
- export declare interface DragDropProps<T extends DragData = DragData> {
1787
- /**
1788
- * Children of the component
1789
- */
1790
- children: ReactNode;
1791
- /**
1792
- * Callback fired when a drag operation ends
1793
- */
1794
- onDragEnd?: (event: DragEndEvent<T>) => void;
1795
- /**
1796
- * Callback fired when a drag operation starts
1797
- */
1798
- onDragStart?: (event: DragStartEvent<T>) => void;
1799
- /**
1800
- * Callback fired when an item is dropped on this zone
1801
- */
1802
- onDrop?: (item: DraggableInfo<T>) => void;
1803
- /**
1804
- * Additional class name
1805
- */
1806
- className?: string;
1807
- /**
1808
- * Whether to cancel drops on containers that don't handle the dropped item type
1809
- * @default true
1810
- */
1811
- cancelDrop?: boolean;
1812
- }
1813
-
1814
- /**
1815
- * The root component for the drag and drop functionality
1816
- */
1817
- export declare function DragDropRoot<T extends DragData = DragData>({ children, onDragEnd: _onDragEnd, onDragStart: _onDragStart, onDrop: _onDrop, className, }: DragDropProps<T>): JSX.Element;
1818
-
1819
- declare interface DragDropValueProps<T extends DragData = DragData, M extends boolean = false> extends Omit<ComponentPropsWithoutRef<"div">, "onDragEnter" | "onDragOver" | "onDragLeave" | "onDrop" | "onChange"> {
1820
- /**
1821
- * Whether to allow multiple values
1822
- * @default false
1823
- */
1824
- multiple?: M;
1825
- /**
1826
- * The current value(s) of the drop zone
1827
- */
1828
- value?: M extends true ? T[] : T;
1829
- /**
1830
- * Callback fired when the value changes
1831
- */
1832
- onChange?: M extends true ? (value: T[]) => void : (value: T) => void;
1833
- /**
1834
- * Function to render the label for a single value
1835
- */
1836
- renderValueLabel?: (singleValue: T) => ReactElement | string;
1837
- /**
1838
- * Function to render the icon for a single value
1839
- */
1840
- renderValueIcon?: (singleValue: T) => ReactElement;
1841
- /**
1842
- * Maximum number of items that can be dropped
1843
- */
1844
- maxItems?: number;
1845
- }
1846
-
1847
- export declare interface DragEndEvent<T extends DragData = DragData> {
1848
- active: {
1849
- id: UniqueIdentifier;
1850
- data: T;
1851
- };
1852
- over: {
1853
- id: UniqueIdentifier;
1854
- } | null;
1855
- }
1856
-
1857
- declare type DraggableInfo<T extends DragData = DragData> = {
1858
- id: UniqueIdentifier;
1859
- data: T;
1860
- };
1861
-
1862
- /**
1863
- * Event types for drag and drop operations
1864
- */
1865
- export declare interface DragStartEvent<T extends DragData = DragData> {
1866
- active: {
1867
- id: UniqueIdentifier;
1868
- data: T;
1869
- };
1870
- }
1871
-
1872
- export { Drawer }
1873
-
1874
- export { DrawerProps }
1875
-
1876
- export { Dropdown }
1877
-
1878
- /**
1879
- * Used for dropdowns that usually strictly prefer top/bottom placements and
1880
- * use `var(--available-height)` to limit their height.
1881
- */
1882
- export declare const DROPDOWN_COLLISION_AVOIDANCE: {
1883
- readonly fallbackAxisSide: "none";
1884
- };
1885
-
1886
- export declare const DropdownMenu: ({ children, items, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, defaultOpen, className, itemRender, classNames, size, showSearch, inCombobox: inComboboxProp, searchProps, popupMatchTriggerWidth, beforeList, afterList, keepOpenOnSelect, highlightedItemKey, selectedItemKeys, getItemKeywords, showCheckbox, }: DropdownMenuProps) => JSX.Element;
1887
-
1888
- export declare interface DropdownMenuGroup {
1889
- label: default_2.ReactNode | null;
1890
- items: DropdownMenuItemType[];
1891
- }
1892
-
1893
- export declare const DropdownMenuItem: default_2.FC<DropdownMenuItemProps>;
1894
-
1895
- export declare interface DropdownMenuItemProps {
1896
- /** The menu item data */
1897
- item: DropdownMenuItemType & {
1898
- type: "item";
1899
- };
1900
- /** Custom render function for the item */
1901
- itemRender?: (item: DropdownMenuItemType, props: default_2.HTMLAttributes<HTMLElement>) => default_2.ReactElement;
1902
- /** Additional props to pass to the item */
1903
- itemProps?: default_2.HTMLAttributes<HTMLElement>;
1904
- /** Class names from parent DropdownMenu */
1905
- classNames?: {
1906
- item?: string;
1907
- itemIcon?: string;
1908
- itemText?: string;
1909
- itemSuffix?: string;
1910
- };
1911
- onSelect?: (item: DropdownMenuItemType & {
1912
- type: "item";
1913
- }) => void;
1914
- /**
1915
- * Whether the menu item is in a combobox
1916
- */
1917
- inCombobox?: boolean;
1918
- /**
1919
- * Whether the menu item is in a menu
1920
- */
1921
- renderAsNativeElement?: boolean;
1922
- /**
1923
- * Whether the menu item is selected (for combobox)
1924
- * @default false
1925
- */
1926
- selected?: boolean;
1927
- /**
1928
- * Whether to show checkbox (only for decoration purpose)
1929
- */
1930
- showCheckbox?: boolean;
1931
- /**
1932
- * Whether the menu item checkbox is indeterminate (for combobox)
1933
- * @default false
1934
- */
1935
- indeterminate?: boolean;
1936
- /**
1937
- * Function to extract keywords from the item for search filtering
1938
- * @default (item) => [String(item.key), reactNodeToString(item.label)]
1939
- */
1940
- getItemKeywords?: (item: DropdownMenuItemType & {
1941
- type: "item";
1942
- }) => string[];
1943
- }
1944
-
1945
- export declare type DropdownMenuItemType = {
1946
- /**
1947
- * The type of the menu item
1948
- */
1949
- type: "item";
1950
- /**
1951
- * The label of the menu item
1952
- */
1953
- label?: default_2.ReactNode;
1954
- /**
1955
- * Whether the menu item is disabled
1956
- */
1957
- disabled?: boolean;
1958
- /**
1959
- * The icon of the menu item
1960
- */
1961
- icon?: default_2.ReactNode;
1962
- /**
1963
- * The suffix of the menu item
1964
- */
1965
- suffix?: default_2.ReactNode;
1966
- /**
1967
- * The key of the menu item
1968
- */
1969
- key: default_2.Key;
1970
- /**
1971
- * The onSelect event handler of the menu item
1972
- */
1973
- onSelect?: (item: DropdownMenuItemType & {
1974
- type: "item";
1975
- }) => void;
1976
- /**
1977
- * The onClick event handler of the menu item
1978
- */
1979
- onClick?: default_2.HTMLAttributes<HTMLElement>["onClick"];
1980
- /**
1981
- * The onMouseEnter event handler of the menu item
1982
- */
1983
- onMouseEnter?: default_2.HTMLAttributes<HTMLElement>["onMouseEnter"];
1984
- /**
1985
- * The onMouseLeave event handler of the menu item
1986
- */
1987
- onMouseLeave?: default_2.HTMLAttributes<HTMLElement>["onMouseLeave"];
1988
- /**
1989
- * The onMouseOver event handler of the menu item
1990
- */
1991
- onMouseOver?: default_2.HTMLAttributes<HTMLElement>["onMouseOver"];
1992
- /**
1993
- * The onMouseOut event handler of the menu item
1994
- */
1995
- onMouseOut?: default_2.HTMLAttributes<HTMLElement>["onMouseOut"];
1996
- /**
1997
- * The className of the menu item
1998
- */
1999
- className?: string;
2000
- /**
2001
- * Whether the menu item is a danger item
2002
- */
2003
- danger?: boolean;
2004
- /**
2005
- * The ref of the menu item
2006
- */
2007
- ref?: default_2.Ref<HTMLElement>;
2008
- } | {
2009
- /**
2010
- * The type of the menu item
2011
- */
2012
- type: "divider";
2013
- } | {
2014
- /**
2015
- * The type of the menu item
2016
- */
2017
- type: "header";
2018
- /**
2019
- * The title of the menu item
2020
- */
2021
- title?: default_2.ReactNode;
2022
- /**
2023
- * The className of the menu item
2024
- */
2025
- className?: string;
2026
- };
2027
-
2028
- export declare interface DropdownMenuProps extends Omit<UseDropdownMenuProps, "classNames"> {
2029
- /** Array of menu items to be displayed in the dropdown */
2030
- items: DropdownMenuItemType[];
2031
- /** Custom render function for the trigger element */
2032
- children?: React.ComponentProps<typeof Menu_2.Trigger>["render"];
2033
- /**
2034
- * Placement of the dropdown relative to the trigger element
2035
- * @default "bottomLeft"
2036
- */
2037
- placement?: PopoverProps_2["placement"];
2038
- /**
2039
- * Whether to open the dropdown on hover instead of click
2040
- * @default false
2041
- */
2042
- openOnHover?: boolean;
2043
- /**
2044
- * Controlled open state of the dropdown
2045
- */
2046
- open?: boolean;
2047
- /**
2048
- * Callback fired when the dropdown open state changes
2049
- */
2050
- onOpenChange?: (open: boolean) => void;
2051
- /**
2052
- * Default open state of the dropdown
2053
- */
2054
- defaultOpen?: boolean;
2055
- /**
2056
- * Additional CSS class for the dropdown component
2057
- */
2058
- className?: string;
2059
- /**
2060
- * Custom class names for different parts of the dropdown
2061
- * @default {}
2062
- */
2063
- classNames?: {
2064
- root?: string;
2065
- trigger?: string;
2066
- popup?: string;
2067
- itemIcon?: string;
2068
- itemText?: string;
2069
- positioner?: string;
2070
- } & UseDropdownMenuProps["classNames"];
2071
- /**
2072
- * Whether to show search input
2073
- * @default false
2074
- */
2075
- showSearch?: boolean;
2076
- /**
2077
- * Size of the dropdown menu
2078
- * @default "auto"
2079
- */
2080
- size?: "auto" | keyof typeof PopupPanelSize;
2081
- /**
2082
- * Search placeholder
2083
- */
2084
- searchProps?: Omit<React.ComponentProps<typeof pkg.Input>, "size" | "ref">;
2085
- /**
2086
- * Whether to match the width of the popup with the trigger
2087
- * @default false
2088
- */
2089
- popupMatchTriggerWidth?: boolean;
2090
- /**
2091
- * Content to display before the list
2092
- */
2093
- beforeList?: React.ReactNode;
2094
- /**
2095
- * Content to display after the list
2096
- */
2097
- afterList?: React.ReactNode;
2098
- }
2099
-
2100
- export { DropDownProps }
2101
-
2102
- export { DropdownProps }
2103
-
2104
- export declare const DSRoot: ({ className, appendClassesTo, children, theme, ...props }: DSRootProps) => JSX.Element;
2105
-
2106
- export declare const DSRootContextProvider: default_2.Provider<{
2107
- theme: "light" | "dark";
2108
- }>;
2109
-
2110
- export declare interface DSRootProps extends ThemeProviderProps {
2111
- /**
2112
- * Classname passed to App component
2113
- */
2114
- className?: string;
2115
- /**
2116
- * Element to which the theme classes are appended
2117
- * @default "html"
2118
- */
2119
- appendClassesTo?: string | HTMLElement;
2120
- }
2121
-
2122
- export declare type ElementTypeToDOMType<T extends React.ElementType> = T extends keyof JSX_2.IntrinsicElements ? JSX_2.IntrinsicElements[T] extends React.DetailedHTMLProps<infer _Props, infer Element> ? Element : never : never;
2123
-
2124
- export declare const Empty: ({ image, size, className, ...rest }: EmptyProps) => JSX.Element;
2125
-
2126
- export declare const EmptyIcon: React_2.FC<React_2.ComponentPropsWithRef<"svg">>;
2127
-
2128
- export declare interface EmptyProps extends EmptyProps_2 {
2129
- /**
2130
- * Empty icon size
2131
- * @default 'medium'
2132
- */
2133
- size?: "small" | "medium" | "large";
2134
- }
2135
-
2136
- export declare type ExpandInfo<T extends DataNode> = {
2137
- node: EventDataNode<T>;
2138
- expanded: boolean;
2139
- nativeEvent: MouseEvent;
2140
- triggeredOriginalKey?: Key;
2141
- };
2142
-
2143
- export declare const Field: <T extends FieldType>(props: FieldProps<T> & {
2144
- ref?: ForwardedRef<RefType<T>>;
2145
- }) => ReturnType<typeof FieldInner<T>>;
2146
-
2147
- /**
2148
- * Generic Field component that forwards ref to Input or Select
2149
- */
2150
- declare const FieldInner: <T extends FieldType>({ label, className, size, colon, type, ...rest }: FieldProps<T>, ref: ForwardedRef<RefType<T>>) => JSX.Element;
2151
-
2152
- export declare type FieldProps<T extends FieldType = "input"> = T extends "input" ? InputFieldProps : SelectFieldProps;
2153
-
2154
- export declare type FieldType = "input" | "select";
2155
-
2156
- export { Flex }
2157
-
2158
- export { FlexProps }
2159
-
2160
- export { FloatButton }
2161
-
2162
- export { FloatButtonGroupProps }
2163
-
2164
- export { FloatButtonProps }
2165
-
2166
- export { FloatButtonRef }
2167
-
2168
- export declare const Form: (<Values = unknown>({ ...rest }: InternalFormProps<Values>) => JSX.Element) & {
2169
- useForm: typeof useForm;
2170
- useFormInstance: typeof default_9;
2171
- useWatch: typeof useWatch;
2172
- Item: <Values = unknown>({ tooltip, label, optionalMark, requiredMark, labelRender, required, rules, children, ...rest }: FormItemProps<Values>) => JSX.Element;
2173
- List: React_2.FC<FormListProps>;
2174
- ErrorList: React_2.FC<ErrorListProps>;
2175
- Provider: React_2.FC<FormProviderProps>;
2176
- Label: <E extends React_2.ElementType = "label">(props: FormLabelProps<E> & {
2177
- ref?: React_2.ComponentPropsWithRef<E>["ref"];
2178
- }) => ReturnType<(<E_1 extends React_2.ElementType = "label">({ label, tooltip, optionalMark, requiredMark, className, as, render, ...rest }: FormLabelProps<E_1>, ref: React_2.Ref<ElementTypeToDOMType_2<E_1>>) => JSX.Element)>;
2179
- };
2180
-
2181
- export { FormInstance }
2182
-
2183
- export declare interface FormItemProps<Values = unknown> extends Omit<FormItemProps_2<Values>, "children"> {
2184
- /**
2185
- * Whether show the optional mark. By default, optional item will not show the optional mark.
2186
- * @default false
2187
- */
2188
- optionalMark?: boolean | default_2.ReactNode;
2189
- /**
2190
- * Whether show the asterisk when the field is required
2191
- * @default true
2192
- */
2193
- requiredMark?: boolean | default_2.ReactNode;
2194
- /**
2195
- * Custom render function for the label
2196
- */
2197
- labelRender?: (label: default_2.ReactElement) => default_2.ReactElement;
2198
- /**
2199
- * Form item children - can be React nodes or render functions
2200
- */
2201
- children?: FormItemProps_2<Values>["children"];
2202
- }
2203
-
2204
- export { FormListFieldData }
2205
-
2206
- export { FormListOperation }
2207
-
2208
- export { FormProps }
2209
-
2210
- export declare type GenericHTMLProps = React.HTMLAttributes<any> & {
2211
- ref?: React.Ref<any> | undefined;
2212
- };
2213
-
2214
- /**
2215
- * Get all categorical chart colors for a theme
2216
- */
2217
- export declare function getAllCategoricalChartColors(theme?: Theme): Record<CategoricalPaletteName, string[]>;
2218
-
2219
- /**
2220
- * Get all sequential chart colors for a theme
2221
- */
2222
- export declare function getAllSequentialChartColors(theme?: Theme): Record<SequentialPaletteName, string[]>;
2223
-
2224
- /**
2225
- * Get categorical chart colors for a specific palette and theme
2226
- */
2227
- export declare function getCategoricalChartColors(palette: CategoricalPaletteName, theme?: Theme): string[];
2228
-
2229
- export declare const getColorsByTheme: <T extends ColorTokens>(colorsOrTokens: T | ColorTokenValue[], theme: Theme) => string[];
2230
-
2231
- /**
2232
- * Get all components by category
2233
- */
2234
- export declare const getComponentsByCategory: () => Record<ComponentCategory, ComponentMetadata[]>;
2235
-
2236
- export declare const getReactElementProp: <T>(el: React.ReactElement, propKey: string, defaultValue?: T) => T;
2237
-
2238
- /**
2239
- * Get sequential chart colors for a specific palette and theme
2240
- */
2241
- export declare function getSequentialChartColors(palette: SequentialPaletteName, theme?: Theme): string[];
2242
-
2243
- export declare const getTokensByTheme: <T extends ColorTokens>(originTokens: T, theme: Theme) => Partial<Record<keyof T, string>>;
2244
-
2245
- export declare const getUniqueKeysFromOriginals: (nodes: DataNode[] | undefined, originalKeysToFind: Set<Key>, map: Map<Key, Key>) => Key[];
2246
-
2247
- export { GlobalToken }
2248
-
2249
- export { Grid }
2250
-
2251
- export declare const IconButton: <E extends ElementType = "button">(props: IconButtonProps<E> & {
2252
- ref?: ComponentPropsWithRef<E>["ref"];
2253
- }) => ReturnType<typeof IconButtonImpl>;
2254
-
2255
- /**
2256
- * Implementation of the IconButton component
2257
- */
2258
- declare const IconButtonImpl: <E extends ElementType = "button">({ label, size, negativeMargin, children, className, tooltipProps, active, as, href, target, rel, download, hrefLang, referrerPolicy, loading, render, ...rest }: IconButtonProps<E>, ref: Ref<ElementTypeToDOMType<E>>) => JSX.Element;
2259
-
2260
- export declare type IconButtonProps<E extends ElementType = "button"> = WithRenderPropProps<E, {
2261
- loading: boolean;
2262
- }> & {
2263
- /**
2264
- * Label text or element to display within tooltip
2265
- * @default undefined
2266
- */
2267
- label?: default_2.ReactNode;
2268
- /**
2269
- * Size of the icon button: small (1.25rem) or medium (1.5rem)
2270
- * @default medium
2271
- */
2272
- size?: "small" | "medium";
2273
- /**
2274
- * Whether to apply negative margin for better visual alignment
2275
- * @default true
2276
- */
2277
- negativeMargin?: boolean;
2278
- /**
2279
- * Whether to show loading state
2280
- * @default false
2281
- */
2282
- loading?: boolean;
2283
- /**
2284
- * Props to pass to the Tooltip component when wrapping the button
2285
- */
2286
- tooltipProps?: TooltipProps;
2287
- /**
2288
- * Whether to show active state
2289
- * @default false
2290
- */
2291
- active?: boolean;
2292
- };
2293
-
2294
- declare const InnerInternalTable: <RecordType extends object = object>({ columns, locale, emptyDescription, loading, virtual, scroll: scrollProp, className, variant, ...rest }: TableProps<RecordType>, ref: Ref<TableRef>) => JSX.Element;
2295
-
2296
- declare function InnerToast({ toast, }: {
2297
- toast: Toast_2.Root.ToastObject<ToastData>;
2298
- }): JSX.Element;
2299
-
2300
- export declare const Input: ((props: InputProps & {
2301
- ref?: React.ForwardedRef<InputRef>;
2302
- }) => ReturnType<typeof MainInputInner>) & {
2303
- Password: (props: PasswordProps & {
2304
- ref?: React.ForwardedRef<InputRef>;
2305
- }) => ReturnType<typeof PasswordInner>;
2306
- Search: (props: SearchProps & {
2307
- ref?: React.ForwardedRef<InputRef>;
2308
- }) => ReturnType<typeof SearchInner>;
2309
- TextArea: (props: TextAreaProps & {
2310
- ref?: React.ForwardedRef<HTMLTextAreaElement>;
2311
- }) => ReturnType<typeof TextAreaInner>;
2312
- };
2313
-
2314
- declare type InputFieldProps = BaseFieldProps & {
2315
- type?: "input";
2316
- inputProps: InputProps_2;
2317
- };
2318
-
2319
- export { InputNumber }
2320
-
2321
- export { InputNumberProps }
2322
-
2323
- export declare interface InputProps extends InputProps_2 {
2324
- }
2325
-
2326
- export declare const InternalBadge: ({ count, showZero, ...rest }: BadgeProps) => JSX.Element;
2327
-
2328
- declare interface InternalFormProps<Values = unknown> extends React_2.ComponentProps<typeof default_8<Values>> {
2329
- }
2330
-
2331
- declare const InternalTable: <RecordType extends object = object>(props: TableProps<RecordType> & {
2332
- ref?: ForwardedRef<TableRef>;
2333
- }) => ReturnType<typeof InnerInternalTable>;
2334
-
2335
- declare type IntrinsicElement = keyof JSX_2.IntrinsicElements | JSXElementConstructor<any>;
2336
-
2337
- export declare function isTracebackError(error: unknown): boolean;
2338
-
2339
- export declare const isValidHexColor: (hex: string, acceptWithoutPrefix?: boolean) => boolean;
2340
-
2341
- export declare const KeyboardShortcut: default_2.FC<KeyboardShortcutProps>;
2342
-
2343
- export declare interface KeyboardShortcutProps {
2344
- /** The keyboard shortcut keys to display (optional if using children) */
2345
- keys?: string[];
2346
- /** Custom className */
2347
- className?: string;
2348
- /** Custom style */
2349
- style?: default_2.CSSProperties;
2350
- /** Size variant */
2351
- size?: "small" | "medium" | "large";
2352
- /** Children to display as keyboard shortcuts */
2353
- children?: default_2.ReactNode;
2354
- }
2355
-
2356
- export { Layout }
2357
-
2358
- export { LayoutProps }
2359
-
2360
- export declare const lightTheme: ThemeConfig;
2361
-
2362
- export { List }
2363
-
2364
- export { ListProps }
2365
-
2366
- export declare const Loader: ForwardRefExoticComponent<LoaderProps & RefAttributes<HTMLSpanElement>>;
2367
-
2368
- export declare interface LoaderProps extends React.ComponentPropsWithoutRef<"span"> {
2369
- text?: string;
2370
- }
2371
-
2372
- declare const MainCheckboxInner: ({ variant, className, ...props }: CheckboxProps, ref: React.Ref<React.ComponentRef<typeof Checkbox_2>>) => JSX.Element;
2373
-
2374
- declare const MainInputInner: (props: InputProps, ref: React.Ref<InputRef>) => JSX.Element;
2375
-
2376
- declare const MainSegmentedInner: <T>(props: SegmentedProps<T>, ref: React.Ref<React.ComponentRef<typeof default_5>>) => JSX.Element;
2377
-
2378
- declare const MainSelectInner: <ValueType = unknown, OptionType extends SelectBaseOptionType | SelectDefaultOptionType = SelectDefaultOptionType>({ mode, className, open: openProp, defaultOpen, onOpenChange, popupClassName, onDropdownVisibleChange, enhancePositioner, getPopupContainer, popupSize, popupRender, dropdownRender, classNames, styles, showSelectionSummary, selectionSummaryRender, value: valueProp, onChange: onChangeProp, defaultValue, showSelectAll, selectAllRender, options, ...rest }: SelectProps<ValueType, OptionType>, ref: default_2.Ref<default_2.ComponentRef<typeof default_3>>) => JSX.Element;
2379
-
2380
- declare const MainSwitchInner: ({ ...rest }: SwitchProps, ref: React.Ref<React.ComponentRef<typeof default_4>>) => JSX.Element;
2381
-
2382
- declare const MainTreeInner: <T extends DataNode = TreeDataNode>(props: TreeProps<T>, ref: React.Ref<React.ComponentRef<typeof default_7<T>>>) => JSX.Element;
2383
-
2384
- export { MappingAlgorithm }
2385
-
2386
- export { MentionProps }
2387
-
2388
- export { Mentions }
2389
-
2390
- export { MentionsProps }
2391
-
2392
- export { Menu }
2393
-
2394
- export { MenuItemProps }
2395
-
2396
- export { MenuProps }
2397
-
2398
- export { MenuRef }
2399
-
2400
- export { MenuTheme }
2401
-
2402
- export { message }
2403
-
2404
- export { MessageArgsProps }
2405
-
2406
- export declare const Modal: (({ open: externalOpen, closeIcon, children, size: sizeProp, footer, width, style, styles, classNames, okButtonProps, cancelButtonProps, loading, onOk, onCancel, okText, okType, confirmLoading, cancelText, hideOkButton, hideCancelButton, contentPadding, title, afterTitle, beforeCloseButton, afterCloseButton, defaultFixedHeaderFooter, centered, type, defaultOpen, background: backgroundProp, bodyScrollable, ...rest }: ModalProps) => JSX.Element) & {
2407
- Provider: FC<ModalProviderProps>;
2408
- open: (config: ModalFuncProps_2) => ModalRef;
2409
- info: (config: ModalFuncProps_2) => ModalRef;
2410
- success: (config: ModalFuncProps_2) => ModalRef;
2411
- error: (config: ModalFuncProps_2) => ModalRef;
2412
- warning: (config: ModalFuncProps_2) => ModalRef;
2413
- confirm: (config: ModalFuncProps_2) => ModalRef;
2414
- destroyAll: () => void;
2415
- useModal: () => HookAPI;
2416
- };
2417
-
2418
- export { ModalFuncProps }
2419
-
2420
- declare type ModalFuncProps_2 = ModalProps & {
2421
- /**
2422
- * Content to be displayed in the modal
2423
- * Similar to children prop in Modal component
2424
- * Keep this to be compatible with antd ModalFuncProps
2425
- */
2426
- content?: default_2.ReactNode;
2427
- };
2428
-
2429
- export declare interface ModalProps extends Omit<ModalProps_2, "centered"> {
2430
- /**
2431
- * Predefined sizes for the modal
2432
- * - xsmall: 400px
2433
- * - small: 520px
2434
- * - medium: 640px (default)
2435
- * - large: 840px
2436
- * - xlarge: 1024px
2437
- * - fullscreen: 100vw (takes full screen width with margins)
2438
- * @default "medium" for default type, "xsmall" for other types
2439
- */
2440
- size?: "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge" | "fullscreen";
2441
- /**
2442
- * Mark modal as loading
2443
- * @default false
2444
- */
2445
- loading?: boolean;
2446
- /**
2447
- * Hide Ok button
2448
- * @default false
2449
- */
2450
- hideOkButton?: boolean;
2451
- /**
2452
- * Hide Cancel button
2453
- * @default false
2454
- */
2455
- hideCancelButton?: boolean;
2456
- /**
2457
- * Custom Content Padding
2458
- * @default "24px"
2459
- */
2460
- contentPadding?: number | string | boolean;
2461
- /**
2462
- * Add more content below the title
2463
- */
2464
- afterTitle?: default_2.ReactNode;
2465
- /**
2466
- * Add more actions before close button
2467
- */
2468
- beforeCloseButton?: default_2.ReactNode;
2469
- /**
2470
- * Add more actions after close button
2471
- */
2472
- afterCloseButton?: default_2.ReactNode;
2473
- /**
2474
- * Set header and footer to fixed position
2475
- * @default false
2476
- */
2477
- defaultFixedHeaderFooter?: boolean;
2478
- /**
2479
- * Centered Modal
2480
- * @default true
2481
- */
2482
- centered?: boolean;
2483
- /**
2484
- * Modal type
2485
- * @default "default"
2486
- */
2487
- type?: ModalType;
2488
- /**
2489
- * Default open state for uncontrolled modal
2490
- * @default true
2491
- */
2492
- defaultOpen?: boolean;
2493
- /**
2494
- * Modal background
2495
- * @default "elevated" if size smaller than "medium", otherwise "container"
2496
- */
2497
- background?: "elevated" | "container";
2498
- /**
2499
- * Modal old close callback
2500
- * @deprecated use onCancel instead
2501
- */
2502
- onClose?: () => void;
2503
- /**
2504
- * Make modal body scrollable
2505
- * @default true
2506
- */
2507
- bodyScrollable?: boolean;
2508
- }
2509
-
2510
- export declare interface ModalProviderProps {
2511
- children?: default_2.ReactNode;
2512
- }
2513
-
2514
- declare type ModalType = NonNullable<ModalFuncProps["type"]> | "default";
2515
-
2516
- export declare function moveTypingCursorToEnd(contentEditableElement: HTMLElement): void;
2517
-
2518
- export declare const Nav: {
2519
- Item: <T extends HTMLElement>(props: NavItemProps & {
2520
- ref?: React.Ref<T>;
2521
- }) => ReturnType<(<T_1 extends HTMLElement>({ icon, active, render, className, children, changeIconWeightOnActive, ...rest }: NavItemProps, ref: React.Ref<T_1>) => null)>;
2522
- Heading: ({ children, className, ...rest }: NavHeadingProps) => JSX.Element;
2523
- Group: ForwardRefExoticComponent<NavGroupProps & RefAttributes<HTMLDivElement>>;
2524
- };
2525
-
2526
- export declare interface NavGroupProps extends default_2.ComponentPropsWithoutRef<"div"> {
2527
- /**
2528
- * Size of the nav
2529
- * @default "medium"
2530
- */
2531
- size?: "small" | "medium" | "large";
2532
- /**
2533
- * Weather it's collapsible or not
2534
- */
2535
- collapsible?: boolean;
2536
- }
2537
-
2538
- export declare interface NavHeadingProps extends default_2.HTMLAttributes<HTMLHeadingElement> {
2539
- children: default_2.ReactNode;
2540
- }
2541
-
2542
- export declare interface NavItemProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
2543
- /**
2544
- * The icon to display in the nav item
2545
- */
2546
- icon?: default_2.ReactNode;
2547
- /**
2548
- * Whether the nav item is active
2549
- */
2550
- active?: boolean;
2551
- /**
2552
- * The render prop to render the nav item
2553
- */
2554
- render?: useRender.RenderProp<{
2555
- active: boolean;
2556
- icon?: default_2.ReactNode;
2557
- }>;
2558
- /**
2559
- * The size of the nav item
2560
- * @default "medium"
2561
- */
2562
- size?: "small" | "medium" | "large";
2563
- /**
2564
- * Whether to change the icon weight on active state
2565
- * @default true
2566
- */
2567
- changeIconWeightOnActive?: boolean;
2568
- }
2569
-
2570
- export { notification }
2571
-
2572
- export { NotificationArgsProps }
2573
-
2574
- declare type ObserverRect = Omit<DOMRectReadOnly, 'toJSON'>;
2575
-
2576
- export { Pagination }
2577
-
2578
- export { PaginationProps }
2579
-
2580
- /**
2581
- * Parse Antd placement string into BaseUI side and align values
2582
- * @param placement - Antd placement string (e.g., "bottomLeft", "top", "rightTop")
2583
- * @returns Object with side and align properties for BaseUI components
2584
- */
2585
- export declare function parseAntdPlacement(placement?: AntdPlacement): BaseUIPlacement;
2586
-
2587
- declare const PasswordInner: (props: PasswordProps, ref: React.Ref<InputRef>) => JSX.Element;
2588
-
2589
- export declare interface PasswordProps extends PasswordProps_2 {
2590
- }
2591
-
2592
- declare const pkg: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2593
- render?: useRender_2.RenderProp<Record<string, unknown>>;
2594
- as?: "div";
2595
- state?: Record<string, unknown>;
2596
- } & {
2597
- /**
2598
- * Accessible label for this command menu. Not shown visibly.
2599
- */
2600
- label?: string;
2601
- /**
2602
- * Optionally set to `false` to turn off the automatic filtering and sorting.
2603
- * If `false`, you must conditionally render valid items based on the search query yourself.
2604
- */
2605
- shouldFilter?: boolean;
2606
- /**
2607
- * Custom filter function for whether each command menu item should matches the given search query.
2608
- * It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
2609
- * By default, uses the `command-score` library.
2610
- */
2611
- filter?: CommandFilter;
2612
- /**
2613
- * Optional default item value when it is initially rendered.
2614
- */
2615
- defaultValue?: string;
2616
- /**
2617
- * Optional controlled state of the selected command menu item.
2618
- */
2619
- value?: string;
2620
- /**
2621
- * Event handler called when the selected item of the menu changes.
2622
- */
2623
- onValueChange?: (value: string) => void;
2624
- /**
2625
- * Optionally set to `true` to turn on looping around when using the arrow keys.
2626
- */
2627
- loop?: boolean;
2628
- /**
2629
- * Optionally set to `true` to disable selection via pointer events.
2630
- */
2631
- disablePointerSelection?: boolean;
2632
- /**
2633
- * Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
2634
- */
2635
- vimBindings?: boolean;
2636
- } & default_2.RefAttributes<HTMLDivElement>> & {
2637
- List: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2638
- render?: useRender_2.RenderProp<Record<string, unknown>>;
2639
- as?: "div";
2640
- state?: Record<string, unknown>;
2641
- } & {
2642
- /**
2643
- * Accessible label for this List of suggestions. Not shown visibly.
2644
- */
2645
- label?: string;
2646
- } & default_2.RefAttributes<HTMLDivElement>>;
2647
- Item: default_2.ForwardRefExoticComponent<Children & Omit<DivProps, "value" | "onSelect" | "disabled"> & {
2648
- /** Whether this item is currently disabled. */
2649
- disabled?: boolean;
2650
- /** Event handler for when this item is selected, either via click or keyboard selection. */
2651
- onSelect?: (value: string) => void;
2652
- /**
2653
- * A unique value for this item.
2654
- * If no value is provided, it will be inferred from `children` or the rendered `textContent`. If your `textContent` changes between renders, you _must_ provide a stable, unique `value`.
2655
- */
2656
- value?: string;
2657
- /** Optional keywords to match against when filtering. */
2658
- keywords?: string[];
2659
- /** Whether this item is forcibly rendered regardless of filtering. */
2660
- forceMount?: boolean;
2661
- } & default_2.RefAttributes<HTMLDivElement>>;
2662
- Input: default_2.ForwardRefExoticComponent<Omit<WithRenderPropProps<"input">, "type" | "value" | "onChange"> & {
2663
- /**
2664
- * Optional controlled state for the value of the search input.
2665
- */
2666
- value?: string;
2667
- /**
2668
- * Event handler called when the search value changes.
2669
- */
2670
- onValueChange?: (search: string) => void;
2671
- } & default_2.RefAttributes<HTMLInputElement>>;
2672
- Group: default_2.ForwardRefExoticComponent<Children & Omit<DivProps, "value" | "heading"> & {
2673
- /** Optional heading to render for this group. */
2674
- heading?: default_2.ReactNode;
2675
- /** If no heading is provided, you must provide a value that is unique for this group. */
2676
- value?: string;
2677
- /** Whether this group is forcibly rendered regardless of filtering. */
2678
- forceMount?: boolean;
2679
- } & default_2.RefAttributes<HTMLDivElement>>;
2680
- Separator: default_2.ForwardRefExoticComponent<Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2681
- render?: useRender_2.RenderProp<Record<string, unknown>>;
2682
- as?: "div";
2683
- state?: Record<string, unknown>;
2684
- } & {
2685
- /** Whether this separator should always be rendered. Useful if you disable automatic filtering. */
2686
- alwaysRender?: boolean;
2687
- } & default_2.RefAttributes<HTMLDivElement>>;
2688
- Dialog: default_2.ForwardRefExoticComponent<Dialog.Root.Props & Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2689
- render?: useRender_2.RenderProp<Record<string, unknown>>;
2690
- as?: "div";
2691
- state?: Record<string, unknown>;
2692
- } & {
2693
- /**
2694
- * Accessible label for this command menu. Not shown visibly.
2695
- */
2696
- label?: string;
2697
- /**
2698
- * Optionally set to `false` to turn off the automatic filtering and sorting.
2699
- * If `false`, you must conditionally render valid items based on the search query yourself.
2700
- */
2701
- shouldFilter?: boolean;
2702
- /**
2703
- * Custom filter function for whether each command menu item should matches the given search query.
2704
- * It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely.
2705
- * By default, uses the `command-score` library.
2706
- */
2707
- filter?: CommandFilter;
2708
- /**
2709
- * Optional default item value when it is initially rendered.
2710
- */
2711
- defaultValue?: string;
2712
- /**
2713
- * Optional controlled state of the selected command menu item.
2714
- */
2715
- value?: string;
2716
- /**
2717
- * Event handler called when the selected item of the menu changes.
2718
- */
2719
- onValueChange?: (value: string) => void;
2720
- /**
2721
- * Optionally set to `true` to turn on looping around when using the arrow keys.
2722
- */
2723
- loop?: boolean;
2724
- /**
2725
- * Optionally set to `true` to disable selection via pointer events.
2726
- */
2727
- disablePointerSelection?: boolean;
2728
- /**
2729
- * Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`.
2730
- */
2731
- vimBindings?: boolean;
2732
- } & {
2733
- /** Provide a className to the Dialog overlay. */
2734
- overlayClassName?: string;
2735
- /** Provide a className to the Dialog content. */
2736
- contentClassName?: string;
2737
- /** Provide a custom element the Dialog should portal into. */
2738
- container?: HTMLElement;
2739
- } & default_2.RefAttributes<HTMLDivElement>>;
2740
- Empty: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2741
- render?: useRender_2.RenderProp<Record<string, unknown>>;
2742
- as?: "div";
2743
- state?: Record<string, unknown>;
2744
- } & default_2.RefAttributes<HTMLDivElement>>;
2745
- Loading: default_2.ForwardRefExoticComponent<Children & Omit<default_2.DetailedHTMLProps<default_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2746
- render?: useRender_2.RenderProp<Record<string, unknown>>;
2747
- as?: "div";
2748
- state?: Record<string, unknown>;
2749
- } & {
2750
- /** Estimated progress of loading asynchronous options. */
2751
- progress?: number;
2752
- /**
2753
- * Accessible label for this loading progressbar. Not shown visibly.
2754
- */
2755
- label?: string;
2756
- } & default_2.RefAttributes<HTMLDivElement>>;
2757
- };
2758
-
2759
- export { Popconfirm }
2760
-
2761
- export { PopconfirmProps }
2762
-
2763
- export declare const Popover: ({ className, style, arrow, ...rest }: PopoverProps) => JSX.Element;
2764
-
2765
- export declare interface PopoverProps extends PopoverProps_2 {
2766
- /**
2767
- * Arrow config for of the popover
2768
- * @default false
2769
- */
2770
- arrow?: PopoverProps_2["arrow"];
2771
- }
2772
-
2773
- /**
2774
- * Used by regular popups that usually aren't scrollable and are allowed to
2775
- * freely flip to any axis of placement.
2776
- */
2777
- export declare const POPUP_COLLISION_AVOIDANCE: {
2778
- readonly fallbackAxisSide: "end";
2779
- };
2780
-
2781
- export declare const PopupPanel: ({ children, placement, openOnHover, open: outsideOpen, onOpenChange: outsideOnOpenChange, content, title, trigger, className, anchor, beforeCloseButton, afterCloseButton, afterTitle, size, footer, defaultOpen, resizable, draggable, maintainAspectRatio, classNames, modal, closeOnClickOutside, onPlacementChange, ...rest }: PopupPanelProps) => JSX.Element;
2782
-
2783
- export declare interface PopupPanelProps extends Omit<React.ComponentPropsWithRef<"div">, "title" | "content" | "children">, Omit<Popover_2.Root.Props, "children"> {
2784
- /** The trigger element that opens the popup panel */
2785
- children?: React.ComponentProps<typeof Popover_2.Trigger>["render"];
2786
- /** Placement of the popup panel relative to its trigger */
2787
- placement?: PopoverProps_2["placement"];
2788
- /** Whether to open the popup panel on hover */
2789
- openOnHover?: boolean;
2790
- /** Controls the open state of the popup panel */
2791
- open?: boolean;
2792
- /** Callback fired when the open state changes */
2793
- onOpenChange?: Popover_2.Root.Props["onOpenChange"];
2794
- /** Content to display inside the popup panel */
2795
- content?: React.ReactNode;
2796
- /** Title text or element to display in the panel header */
2797
- title?: React.ReactNode;
2798
- /** The event that triggers the popup panel */
2799
- /**
2800
- * @default "click"
2801
- */
2802
- trigger?: "click" | "hover";
2803
- /** Custom anchor element for positioning the panel */
2804
- anchor?: Popover_2.Positioner.Props["anchor"];
2805
- /** Content to display before the close button */
2806
- beforeCloseButton?: React.ReactNode;
2807
- /** Content to display after the close button */
2808
- afterCloseButton?: React.ReactNode;
2809
- /** Content to display after the title */
2810
- afterTitle?: React.ReactNode;
2811
- /**
2812
- * Predefined sizes for the popup panel
2813
- * - xsmall: 320px
2814
- * - small: 400px
2815
- * - medium: 480px (default)
2816
- * - large: 640px
2817
- * - xlarge: 840px
2818
- * @default "medium" for default type, "xsmall" for other types
2819
- */
2820
- size?: keyof typeof PopupPanelSize;
2821
- /**
2822
- * Footer content for the popup panel
2823
- * Can be a React node or a function that returns a React node
2824
- */
2825
- footer?: React.ReactNode | ((props: {
2826
- close: () => void;
2827
- }) => React.ReactNode);
2828
- /**
2829
- * Whether the panel should be open by default when uncontrolled
2830
- * @default false
2831
- */
2832
- defaultOpen?: boolean;
2833
- /**
2834
- * Whether the panel should be resizable
2835
- * @default false
2836
- */
2837
- resizable?: boolean;
2838
- /**
2839
- * Whether the panel should be draggable
2840
- * @default false
2841
- */
2842
- draggable?: boolean;
2843
- /**
2844
- * Whether to maintain aspect ratio when resizing
2845
- * Only applies when resizable is true
2846
- * @default false
2847
- */
2848
- maintainAspectRatio?: boolean;
2849
- /**
2850
- * Custom class names for different parts of the popup panel
2851
- * @default {}
2852
- */
2853
- classNames?: {
2854
- root?: string;
2855
- trigger?: string;
2856
- popup?: string;
2857
- header?: string;
2858
- title?: string;
2859
- content?: string;
2860
- footer?: string;
2861
- resizeHandle?: string;
2862
- };
2863
- /**
2864
- * Whether to close the panel when clicking outside
2865
- * @default true
2866
- */
2867
- closeOnClickOutside?: boolean;
2868
- /**
2869
- * Whether to use modal mode
2870
- * @default false
2871
- */
2872
- modal?: Popover_2.Root.Props["modal"];
2873
- /**
2874
- * Callback function when the placement changes
2875
- */
2876
- onPlacementChange?: (placement: PopoverProps_2["placement"]) => void;
2877
- }
2878
-
2879
- declare enum PopupPanelSize {
2880
- xsmall = "320px",
2881
- small = "400px",
2882
- medium = "480px",
2883
- large = "640px",
2884
- xlarge = "840px"
2885
- }
2886
-
2887
- export declare const processTreeData: <T extends DataNode = DataNode>(nodes: T[] | undefined, expandedOriginalKeys: Set<Key>, // Use Set for faster lookups
2888
- parentKeyPrefix: string, keyMap: Map<Key, Key>) => T[] | undefined;
2889
-
2890
- export { Progress }
2891
-
2892
- export { ProgressProps }
2893
-
2894
- export { QRCode }
2895
-
2896
- export { QRCodeProps }
2897
-
2898
- export { QRPropsCanvas }
2899
-
2900
- export { QRPropsSvg }
2901
-
2902
- export declare const Radio: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<CheckboxRef>> & {
2903
- Group: (props: RadioGroupProps & {
2904
- ref?: React.Ref<HTMLDivElement>;
2905
- }) => JSX.Element;
2906
- Button: ForwardRefExoticComponent<RadioProps_2 & RefAttributes<CheckboxRef>>;
2907
- };
2908
-
2909
- export declare type RadioChangeEvent = RadioChangeEvent_2;
2910
-
2911
- export declare type RadioGroupProps = RadioGroupProps_2;
2912
-
2913
- export declare type RadioProps = RadioProps_3;
2914
-
2915
- export declare type RadioRef = RadioRef_2;
2916
-
2917
- export { Rate }
2918
-
2919
- export { RateProps }
2920
-
2921
- export declare const rawChartColorTokens: {
2922
- colorChartsRed300: {
2923
- light: string;
2924
- dark: string;
2925
- };
2926
- colorChartsRed400: {
2927
- light: string;
2928
- dark: string;
2929
- };
2930
- colorChartsRed500: {
2931
- light: string;
2932
- dark: string;
2933
- };
2934
- colorChartsRed600: {
2935
- light: string;
2936
- dark: string;
2937
- };
2938
- colorChartsRed700: {
2939
- light: string;
2940
- dark: string;
2941
- };
2942
- colorChartsRed800: {
2943
- light: string;
2944
- dark: string;
2945
- };
2946
- colorChartsRed900: {
2947
- light: string;
2948
- dark: string;
2949
- };
2950
- colorChartsRed1000: {
2951
- light: string;
2952
- dark: string;
2953
- };
2954
- colorChartsRed1100: {
2955
- light: string;
2956
- dark: string;
2957
- };
2958
- colorChartsRed1200: {
2959
- light: string;
2960
- dark: string;
2961
- };
2962
- colorChartsOrange300: {
2963
- light: string;
2964
- dark: string;
2965
- };
2966
- colorChartsOrange400: {
2967
- light: string;
2968
- dark: string;
2969
- };
2970
- colorChartsOrange500: {
2971
- light: string;
2972
- dark: string;
2973
- };
2974
- colorChartsOrange600: {
2975
- light: string;
2976
- dark: string;
2977
- };
2978
- colorChartsOrange700: {
2979
- light: string;
2980
- dark: string;
2981
- };
2982
- colorChartsOrange800: {
2983
- light: string;
2984
- dark: string;
2985
- };
2986
- colorChartsOrange900: {
2987
- light: string;
2988
- dark: string;
2989
- };
2990
- colorChartsOrange1000: {
2991
- light: string;
2992
- dark: string;
2993
- };
2994
- colorChartsOrange1100: {
2995
- light: string;
2996
- dark: string;
2997
- };
2998
- colorChartsOrange1200: {
2999
- light: string;
3000
- dark: string;
3001
- };
3002
- colorChartsYellow300: {
3003
- light: string;
3004
- dark: string;
3005
- };
3006
- colorChartsYellow400: {
3007
- light: string;
3008
- dark: string;
3009
- };
3010
- colorChartsYellow500: {
3011
- light: string;
3012
- dark: string;
3013
- };
3014
- colorChartsYellow600: {
3015
- light: string;
3016
- dark: string;
3017
- };
3018
- colorChartsYellow700: {
3019
- light: string;
3020
- dark: string;
3021
- };
3022
- colorChartsYellow800: {
3023
- light: string;
3024
- dark: string;
3025
- };
3026
- colorChartsYellow900: {
3027
- light: string;
3028
- dark: string;
3029
- };
3030
- colorChartsYellow1000: {
3031
- light: string;
3032
- dark: string;
3033
- };
3034
- colorChartsYellow1100: {
3035
- light: string;
3036
- dark: string;
3037
- };
3038
- colorChartsYellow1200: {
3039
- light: string;
3040
- dark: string;
3041
- };
3042
- colorChartsGreen300: {
3043
- light: string;
3044
- dark: string;
3045
- };
3046
- colorChartsGreen400: {
3047
- light: string;
3048
- dark: string;
3049
- };
3050
- colorChartsGreen500: {
3051
- light: string;
3052
- dark: string;
3053
- };
3054
- colorChartsGreen600: {
3055
- light: string;
3056
- dark: string;
3057
- };
3058
- colorChartsGreen700: {
3059
- light: string;
3060
- dark: string;
3061
- };
3062
- colorChartsGreen800: {
3063
- light: string;
3064
- dark: string;
3065
- };
3066
- colorChartsGreen900: {
3067
- light: string;
3068
- dark: string;
3069
- };
3070
- colorChartsGreen1000: {
3071
- light: string;
3072
- dark: string;
3073
- };
3074
- colorChartsGreen1100: {
3075
- light: string;
3076
- dark: string;
3077
- };
3078
- colorChartsGreen1200: {
3079
- light: string;
3080
- dark: string;
3081
- };
3082
- colorChartsTeal300: {
3083
- light: string;
3084
- dark: string;
3085
- };
3086
- colorChartsTeal400: {
3087
- light: string;
3088
- dark: string;
3089
- };
3090
- colorChartsTeal500: {
3091
- light: string;
3092
- dark: string;
3093
- };
3094
- colorChartsTeal600: {
3095
- light: string;
3096
- dark: string;
3097
- };
3098
- colorChartsTeal700: {
3099
- light: string;
3100
- dark: string;
3101
- };
3102
- colorChartsTeal800: {
3103
- light: string;
3104
- dark: string;
3105
- };
3106
- colorChartsTeal900: {
3107
- light: string;
3108
- dark: string;
3109
- };
3110
- colorChartsTeal1000: {
3111
- light: string;
3112
- dark: string;
3113
- };
3114
- colorChartsTeal1100: {
3115
- light: string;
3116
- dark: string;
3117
- };
3118
- colorChartsTeal1200: {
3119
- light: string;
3120
- dark: string;
3121
- };
3122
- colorChartsBlue1300: {
3123
- light: string;
3124
- dark: string;
3125
- };
3126
- colorChartsBlue1400: {
3127
- light: string;
3128
- dark: string;
3129
- };
3130
- colorChartsBlue1500: {
3131
- light: string;
3132
- dark: string;
3133
- };
3134
- colorChartsBlue1600: {
3135
- light: string;
3136
- dark: string;
3137
- };
3138
- colorChartsBlue1700: {
3139
- light: string;
3140
- dark: string;
3141
- };
3142
- colorChartsBlue1800: {
3143
- light: string;
3144
- dark: string;
3145
- };
3146
- colorChartsBlue1900: {
3147
- light: string;
3148
- dark: string;
3149
- };
3150
- colorChartsBlue11000: {
3151
- light: string;
3152
- dark: string;
3153
- };
3154
- colorChartsBlue11100: {
3155
- light: string;
3156
- dark: string;
3157
- };
3158
- colorChartsBlue11200: {
3159
- light: string;
3160
- dark: string;
3161
- };
3162
- colorChartsBlue2300: {
3163
- light: string;
3164
- dark: string;
3165
- };
3166
- colorChartsBlue2400: {
3167
- light: string;
3168
- dark: string;
3169
- };
3170
- colorChartsBlue2500: {
3171
- light: string;
3172
- dark: string;
3173
- };
3174
- colorChartsBlue2600: {
3175
- light: string;
3176
- dark: string;
3177
- };
3178
- colorChartsBlue2700: {
3179
- light: string;
3180
- dark: string;
3181
- };
3182
- colorChartsBlue2800: {
3183
- light: string;
3184
- dark: string;
3185
- };
3186
- colorChartsBlue2900: {
3187
- light: string;
3188
- dark: string;
3189
- };
3190
- colorChartsBlue21000: {
3191
- light: string;
3192
- dark: string;
3193
- };
3194
- colorChartsBlue21100: {
3195
- light: string;
3196
- dark: string;
3197
- };
3198
- colorChartsBlue21200: {
3199
- light: string;
3200
- dark: string;
3201
- };
3202
- colorChartsPurple300: {
3203
- light: string;
3204
- dark: string;
3205
- };
3206
- colorChartsPurple400: {
3207
- light: string;
3208
- dark: string;
3209
- };
3210
- colorChartsPurple500: {
3211
- light: string;
3212
- dark: string;
3213
- };
3214
- colorChartsPurple600: {
3215
- light: string;
3216
- dark: string;
3217
- };
3218
- colorChartsPurple700: {
3219
- light: string;
3220
- dark: string;
3221
- };
3222
- colorChartsPurple800: {
3223
- light: string;
3224
- dark: string;
3225
- };
3226
- colorChartsPurple900: {
3227
- light: string;
3228
- dark: string;
3229
- };
3230
- colorChartsPurple1000: {
3231
- light: string;
3232
- dark: string;
3233
- };
3234
- colorChartsPurple1100: {
3235
- light: string;
3236
- dark: string;
3237
- };
3238
- colorChartsPurple1200: {
3239
- light: string;
3240
- dark: string;
3241
- };
3242
- colorChartsPink300: {
3243
- light: string;
3244
- dark: string;
3245
- };
3246
- colorChartsPink400: {
3247
- light: string;
3248
- dark: string;
3249
- };
3250
- colorChartsPink500: {
3251
- light: string;
3252
- dark: string;
3253
- };
3254
- colorChartsPink600: {
3255
- light: string;
3256
- dark: string;
3257
- };
3258
- colorChartsPink700: {
3259
- light: string;
3260
- dark: string;
3261
- };
3262
- colorChartsPink800: {
3263
- light: string;
3264
- dark: string;
3265
- };
3266
- colorChartsPink900: {
3267
- light: string;
3268
- dark: string;
3269
- };
3270
- colorChartsPink1000: {
3271
- light: string;
3272
- dark: string;
3273
- };
3274
- colorChartsPink1100: {
3275
- light: string;
3276
- dark: string;
3277
- };
3278
- colorChartsPink1200: {
3279
- light: string;
3280
- dark: string;
3281
- };
3282
- colorChartsStatusCritical: {
3283
- light: string;
3284
- dark: string;
3285
- };
3286
- colorChartsStatusHigh: {
3287
- light: string;
3288
- dark: string;
3289
- };
3290
- colorChartsStatusMedium: {
3291
- light: string;
3292
- dark: string;
3293
- };
3294
- colorChartsStatusLow: {
3295
- light: string;
3296
- dark: string;
3297
- };
3298
- colorChartsStatusPositive: {
3299
- light: string;
3300
- dark: string;
3301
- };
3302
- colorChartsStatusInfo: {
3303
- light: string;
3304
- dark: string;
3305
- };
3306
- colorChartsStatusNeutral: RawColorTokenValue_2;
3307
- colorChartsThresholdNegative: RawColorTokenValue_2;
3308
- colorChartsThresholdPositive: RawColorTokenValue_2;
3309
- colorChartsThresholdInfo: RawColorTokenValue_2;
3310
- colorChartsThresholdNeutral: RawColorTokenValue_2;
3311
- colorChartsLineGrid: {
3312
- light: string;
3313
- dark: string;
3314
- };
3315
- colorChartsLineTick: string;
3316
- colorChartsLineAxis: {
3317
- light: string;
3318
- dark: string;
3319
- };
3320
- colorChartsLabelAxis: {
3321
- light: string;
3322
- dark: string;
3323
- };
3324
- colorChartsPaletteCategorical1: string;
3325
- colorChartsPaletteCategorical2: string;
3326
- colorChartsPaletteCategorical3: string;
3327
- colorChartsPaletteCategorical4: string;
3328
- colorChartsPaletteCategorical5: string;
3329
- colorChartsPaletteCategorical6: string;
3330
- colorChartsPaletteCategorical7: string;
3331
- colorChartsPaletteCategorical8: string;
3332
- colorChartsPaletteCategorical9: string;
3333
- colorChartsPaletteCategorical10: string;
3334
- colorChartsPaletteCategorical11: string;
3335
- colorChartsPaletteCategorical12: string;
3336
- colorChartsPaletteCategorical13: string;
3337
- colorChartsPaletteCategorical14: string;
3338
- colorChartsPaletteCategorical15: string;
3339
- colorChartsPaletteCategorical16: string;
3340
- colorChartsPaletteCategorical17: string;
3341
- colorChartsPaletteCategorical18: string;
3342
- colorChartsPaletteCategorical19: string;
3343
- colorChartsPaletteCategorical20: string;
3344
- colorChartsPaletteCategorical21: string;
3345
- colorChartsPaletteCategorical22: string;
3346
- colorChartsPaletteCategorical23: string;
3347
- colorChartsPaletteCategorical24: string;
3348
- colorChartsPaletteCategorical25: string;
3349
- colorChartsPaletteCategorical26: string;
3350
- colorChartsPaletteCategorical27: string;
3351
- colorChartsPaletteCategorical28: string;
3352
- colorChartsPaletteCategorical29: string;
3353
- colorChartsPaletteCategorical30: string;
3354
- colorChartsPaletteCategorical31: string;
3355
- colorChartsPaletteCategorical32: string;
3356
- colorChartsPaletteCategorical33: string;
3357
- colorChartsPaletteCategorical34: string;
3358
- colorChartsPaletteCategorical35: string;
3359
- colorChartsPaletteCategorical36: string;
3360
- colorChartsPaletteCategorical37: string;
3361
- colorChartsPaletteCategorical38: string;
3362
- colorChartsPaletteCategorical39: string;
3363
- colorChartsPaletteCategorical40: string;
3364
- colorChartsPaletteCategorical41: string;
3365
- colorChartsPaletteCategorical42: string;
3366
- colorChartsPaletteCategorical43: string;
3367
- colorChartsPaletteCategorical44: string;
3368
- colorChartsPaletteCategorical45: string;
3369
- colorChartsPaletteCategorical46: string;
3370
- colorChartsPaletteCategorical47: string;
3371
- colorChartsPaletteCategorical48: string;
3372
- colorChartsPaletteCategorical49: string;
3373
- colorChartsPaletteCategorical50: string;
3374
- };
3375
-
3376
- export declare type RawColorTokenValue = string | ColorTokenValue;
3377
-
3378
- export { RcFile }
3379
-
3380
- export declare type RcSegmentedValue = string | number;
3381
-
3382
- export declare function reactNodeToString(node: ReactNode): string;
3383
-
3384
- export { RefSelectProps }
3385
-
3386
- declare type RefType<T extends FieldType> = T extends "input" ? InputRef : T extends "select" ? RefSelectProps_2 : never;
3387
-
3388
- export declare const Resizable: ({ children, resizable, handles, absolutePositioning, classNames, className: containerClassName, style: containerStyle, resetKey, maxHeight, maxWidth, minHeight, minWidth, lockHorizontal, lockVertical, onResize, onDragEnd: onDragEndProp, onDragStart: onDragStartProp, disabled, maintainAspectRatio, interval, initialHeight: initialHeightProp, initialWidth: initialWidthProp, ...rest }: ResizableProps) => JSX.Element;
3389
-
3390
- export declare interface ResizableProps extends Omit<WithRenderPropProps, keyof ResizableProps_2>, ResizableProps_2 {
3391
- /**
3392
- * Single React element child that will be enhanced with resize handles
3393
- */
3394
- children: default_2.ReactNode;
3395
- /**
3396
- * Whether the component should be resizable
3397
- * @default false
3398
- */
3399
- resizable?: boolean;
3400
- /**
3401
- * Configure which resize handles to show
3402
- * @default { bottom: true, right: true, left: true, top: true }
3403
- */
3404
- handles?: {
3405
- bottom?: boolean;
3406
- right?: boolean;
3407
- left?: boolean;
3408
- top?: boolean;
3409
- };
3410
- /**
3411
- * Whether to use absolute positioning for left handle resizing
3412
- * Set to true when used in absolutely positioned containers like PopupPanel
3413
- * @default false
3414
- */
3415
- absolutePositioning?: boolean;
3416
- /**
3417
- * Custom class names for different parts of the resizable component
3418
- */
3419
- classNames?: {
3420
- root?: string;
3421
- resizeHandle?: string;
3422
- };
3423
- /**
3424
- * Key to reset dimensions to current element size
3425
- * When this value changes, the component will recalculate its dimensions
3426
- * Similar to React's key prop pattern for forcing component resets
3427
- */
3428
- resetKey?: default_2.Key;
3429
- /**
3430
- * Maximum width the component can be resized to
3431
- */
3432
- maxWidth?: number;
3433
- /**
3434
- * Maximum height the component can be resized to
3435
- */
3436
- maxHeight?: number;
3437
- /**
3438
- * Minimum width the component can be resized to
3439
- */
3440
- minWidth?: number;
3441
- /**
3442
- * Minimum height the component can be resized to
3443
- */
3444
- minHeight?: number;
3445
- /**
3446
- * Callback fired during resize operations
3447
- */
3448
- onResize?: (values: MoveValues) => void;
3449
- /**
3450
- * Whether to maintain aspect ratio during resize
3451
- * @default false
3452
- */
3453
- maintainAspectRatio?: boolean;
3454
- }
3455
-
3456
- /**
3457
- * Resolves chart color tokens by replacing reference strings with actual values.
3458
- * @returns Record of token names to resolved light/dark color objects
3459
- */
3460
- export declare function resolveColorTokens<T extends ColorTokens>(colors: T): Record<keyof T, ColorTokenValue>;
3461
-
3462
- export { Result }
3463
-
3464
- export { ResultProps }
3465
-
3466
- export { Row }
3467
-
3468
- export { RowProps }
3469
-
3470
- export declare const ScrollArea: ({ children, className, classNames, orientation, fadeEdges, onScroll, }: ScrollAreaProps) => JSX.Element;
3471
-
3472
- export declare interface ScrollAreaProps {
3473
- children: ReactNode;
3474
- /**
3475
- * Additional class name for the root component
3476
- */
3477
- className?: string;
3478
- /**
3479
- * Custom class names for each part of the scroll area
3480
- */
3481
- classNames?: {
3482
- /**
3483
- * Class name for the viewport element
3484
- */
3485
- viewport?: string;
3486
- /**
3487
- * Class name for the scrollbar element
3488
- */
3489
- scrollbar?: string;
3490
- /**
3491
- * Class name for the thumb element
3492
- */
3493
- thumb?: string;
3494
- };
3495
- /**
3496
- * Orientation of the scrollbar
3497
- * @default "vertical"
3498
- */
3499
- orientation?: "vertical" | "horizontal";
3500
- /**
3501
- * Enable fade-out effect at scrollable edges
3502
- * @default false
3503
- */
3504
- fadeEdges?: boolean;
3505
- /**
3506
- * Callback fired when the scroll position changes
3507
- */
3508
- onScroll?: (event: Event) => void;
3509
- }
3510
-
3511
- declare const SearchInner: ({ enterButton, onSearch, prefix, onPressEnter, onClear, loading, ...rest }: SearchProps, ref: React.Ref<InputRef>) => JSX.Element;
3512
-
3513
- export declare interface SearchProps extends SearchProps_2 {
3514
- }
3515
-
3516
- export declare const Segmented: <T = RcSegmentedValue>(props: SegmentedProps<T> & {
3517
- ref?: React.Ref<React.ComponentRef<typeof default_5>>;
3518
- }) => ReturnType<typeof MainSegmentedInner>;
3519
-
3520
- export declare interface SegmentedProps<T = RcSegmentedValue> extends SegmentedProps_2<T> {
3521
- }
3522
-
3523
- export declare const Select: (<ValueType = unknown, OptionType extends SelectBaseOptionType | SelectDefaultOptionType = SelectDefaultOptionType>(props: SelectProps<ValueType, OptionType> & {
3524
- ref?: default_2.ForwardedRef<default_2.ComponentRef<typeof default_3>>;
3525
- }) => ReturnType<typeof MainSelectInner>) & {
3526
- Option: OptionFC;
3527
- OptGroup: OptionGroupFC;
3528
- };
3529
-
3530
- export { SelectBaseOptionType }
3531
-
3532
- export { SelectDefaultOptionType }
3533
-
3534
- declare type SelectFieldProps = BaseFieldProps & {
3535
- type: "select";
3536
- selectProps: SelectProps_3;
3537
- };
3538
-
3539
- export declare interface SelectProps<ValueType = unknown, OptionType extends SelectBaseOptionType | SelectDefaultOptionType = SelectDefaultOptionType> extends SelectProps_2<ValueType, OptionType> {
3540
- /**
3541
- * Whether to enhance the positioner using floating-ui
3542
- * @default false
3543
- */
3544
- enhancePositioner?: boolean;
3545
- /**
3546
- * Size of the popup panel
3547
- * Will be ignored if enhancePositioner is false
3548
- */
3549
- popupSize?: string | number | PopupPanelSize;
3550
- /**
3551
- * Show selection summary instead of tags in multiple case
3552
- * @default false
3553
- */
3554
- showSelectionSummary?: boolean;
3555
- /**
3556
- * Render function for the selection summary in multiple case
3557
- * @default (value) => `${value.length} items selected`
3558
- */
3559
- selectionSummaryRender?: (value: ValueType) => default_2.ReactNode;
3560
- /**
3561
- * Show select all option when in multiple mode
3562
- * @default false
3563
- */
3564
- showSelectAll?: boolean;
3565
- /**
3566
- * Render function for the select all option
3567
- */
3568
- selectAllRender?: (props: {
3569
- onClick: () => void;
3570
- checked: CheckboxProps["checked"];
3571
- indeterminate: CheckboxProps["indeterminate"];
3572
- }) => default_2.ReactNode;
3573
- }
3574
-
3575
- export declare const SelectTrigger: default_2.ForwardRefExoticComponent<SelectTriggerProps & default_2.RefAttributes<HTMLButtonElement>>;
3576
-
3577
- export declare interface SelectTriggerProps extends Omit<WithRenderPropProps<"button", SelectTriggerState>, "value" | "prefix"> {
3578
- /** Size variant */
3579
- size?: "small" | "middle" | "large";
3580
- /** Whether the component is disabled */
3581
- disabled?: boolean;
3582
- /** Whether the dropdown/popup is open */
3583
- open?: boolean;
3584
- /** Validation status */
3585
- status?: ValidateStatus;
3586
- /** Placeholder text */
3587
- placeholder?: string;
3588
- /** Current value/content to display */
3589
- value?: default_2.ReactNode;
3590
- /** Prefix content to display before the value (e.g., icon) */
3591
- prefix?: default_2.ReactNode;
3592
- /** Whether to show clear button when there's a value */
3593
- allowClear?: boolean;
3594
- /** Custom suffix icon (arrow icon) */
3595
- suffixIcon?: default_2.ReactNode;
3596
- /** Custom clear icon */
3597
- clearIcon?: default_2.ReactNode;
3598
- /** Clear handler */
3599
- onClear?: () => void;
3600
- /** Open state change handler */
3601
- onOpenChange?: (open: boolean) => void;
3602
- /** Custom class names */
3603
- classNames?: {
3604
- trigger?: string;
3605
- content?: string;
3606
- suffix?: string;
3607
- placeholder?: string;
3608
- value?: string;
3609
- };
3610
- }
3611
-
3612
- export declare type SelectTriggerState = {
3613
- disabled: boolean;
3614
- open: boolean;
3615
- hasValue: boolean;
3616
- size: "small" | "middle" | "large";
3617
- };
3618
-
3619
- export declare const SEQUENTIAL_PALETTE_NAMES: readonly ["YlOrBr", "YlOrRd", "OrRd", "PuRd", "RdPu", "BuPu", "GnBu", "PuBu", "YlGnBu", "PuBuGn", "BuGn", "YlGn"];
3620
-
3621
- export declare const SEQUENTIAL_PALETTES: Record<SequentialPaletteName, Record<Theme, string[]>>;
3622
-
3623
- export declare type SequentialPaletteName = (typeof SEQUENTIAL_PALETTE_NAMES)[number];
3624
-
3625
- export { SiderProps }
3626
-
3627
- export { Skeleton }
3628
-
3629
- export { SkeletonProps }
3630
-
3631
- export declare const Slider: ({ className, tooltip, style, ...rest }: SliderProps) => JSX.Element;
3632
-
3633
- export declare type SliderProps = SliderSingleProps_2 | SliderRangeProps;
3634
-
3635
- export { SliderRangeProps }
3636
-
3637
- export { SliderSingleProps }
3638
-
3639
- export { Space }
3640
-
3641
- export { SpaceProps }
3642
-
3643
- export declare const Spin: ({ indicator, size, className, ...rest }: SpinProps) => JSX.Element;
3644
-
3645
- export declare type SpinProps = Omit<SpinProps_2, "size"> & {
3646
- size?: "small" | "default" | "large" | number;
3647
- };
3648
-
3649
- export declare const Split: FC<PropsWithChildren<SplitterProps>> & {
3650
- Panel: ForwardRefExoticComponent<Omit<SplitterPanelProps, "ref"> & RefAttributes<HTMLElement>>;
3651
- };
3652
-
3653
- export declare const Splitter: FC<PropsWithChildren<SplitterProps>> & {
3654
- Panel: ForwardRefExoticComponent<Omit<SplitterPanelProps, "ref"> & RefAttributes<HTMLElement>>;
3655
- };
3656
-
3657
- export declare type SplitterPanelProps = InternalPanelProps & {
3658
- children?: default_2.ReactNode;
3659
- } & default_2.RefAttributes<HTMLElement> & {
3660
- /**
3661
- * Default size of the panel. Can be a percentage string, number, or CSS intrinsic sizing values
3662
- */
3663
- defaultSize?: string | number | "max-content" | "min-content" | "fit-content";
3664
- };
3665
-
3666
- export declare interface SplitterProps extends SplitterProps_2 {
3667
- /**
3668
- * Whether to show the split bars between panels
3669
- * @default true
3670
- */
3671
- showSplitBar?: boolean;
3672
- }
3673
-
3674
- export declare const Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>> & {
3675
- Child: ForwardRefExoticComponent<StackChildProps & RefAttributes<HTMLDivElement>>;
3676
- };
3677
-
3678
- export declare const StackChild: default_2.ForwardRefExoticComponent<StackChildProps & default_2.RefAttributes<HTMLDivElement>>;
3679
-
3680
- export declare interface StackChildProps extends StackProps {
3681
- /**
3682
- * CSS flex property value (e.g. "1", "1 0 auto", "0 1 auto")
3683
- * When boolean: true = 1, false = 0
3684
- * @default undefined
3685
- */
3686
- flex?: string | number | boolean;
3687
- /**
3688
- * Whether this child should grow to fill available space
3689
- * @default false
3690
- */
3691
- grow?: boolean;
3692
- /**
3693
- * Whether this child should shrink if necessary
3694
- * @default false
3695
- */
3696
- shrink?: boolean;
3697
- /**
3698
- * Children of the stack child
3699
- */
3700
- children?: default_2.ReactNode;
3701
- /**
3702
- * Whether to render the child with a stack wrapper
3703
- * @default false
3704
- */
3705
- stack?: boolean;
3706
- }
3707
-
3708
- declare type StackGap = 0 | 1 | 2 | 4 | 8 | 12 | 16 | 24 | 28 | 32 | 40 | 48;
3709
-
3710
- export declare interface StackProps extends default_2.HTMLAttributes<HTMLDivElement> {
3711
- /**
3712
- * Whether the stack should hug its content (inline-flex) instead of filling available space
3713
- * @default false
3714
- */
3715
- hug?: boolean;
3716
- /**
3717
- * Vertical alignment of items within the stack
3718
- * @default "flex-start"
3719
- */
3720
- align?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
3721
- /**
3722
- * Horizontal alignment of items within the stack
3723
- * @default "flex-start"
3724
- */
3725
- justify?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
3726
- /**
3727
- * Whether the stack should render items vertically
3728
- * @default false
3729
- */
3730
- vertical?: boolean;
3731
- /**
3732
- * Gap between stack items in pixels
3733
- * @default 0
3734
- */
3735
- gap?: StackGap;
3736
- /**
3737
- * Wrap items to multiple lines if needed
3738
- * @default false
3739
- */
3740
- wrap?: boolean;
3741
- /**
3742
- * Children of the stack
3743
- */
3744
- children?: default_2.ReactNode;
3745
- }
3746
-
3747
- export { Statistic }
3748
-
3749
- export { StatisticProps }
3750
-
3751
- export declare const StatusIcon: ForwardRefExoticComponent<StatusIconProps & RefAttributes<SVGSVGElement>>;
3752
-
3753
- export declare interface StatusIconProps extends React.ComponentPropsWithoutRef<"svg"> {
3754
- /**
3755
- * Status of the icon
3756
- * @default info
3757
- */
3758
- status?: "success" | "error" | "warning" | "info" | "processing";
3759
- /**
3760
- * Size of the icon
3761
- * - small: 12px
3762
- * - medium: 16px
3763
- * - large: 20px
3764
- * - xlarge: 24px
3765
- * - xxlarge: 28px
3766
- * @default medium
3767
- */
3768
- size?: "small" | "medium" | "large" | "xlarge";
3769
- /**
3770
- * Weight of the icon
3771
- */
3772
- weight?: "regular" | "bold" | "fill" | "duotone";
3773
- }
3774
-
3775
- export { StepProps }
3776
-
3777
- export { Steps }
3778
-
3779
- export { StepsProps }
3780
-
3781
- export { SubMenuProps }
3782
-
3783
- export declare const Switch: (props: SwitchProps & {
3784
- ref?: React.ForwardedRef<React.ComponentRef<typeof default_4>>;
3785
- }) => ReturnType<typeof MainSwitchInner>;
3786
-
3787
- export declare interface SwitchProps extends SwitchProps_2 {
3788
- }
3789
-
3790
- export declare const tab10: string[];
3791
-
3792
- export declare const tab20: string[];
3793
-
3794
- /**
3795
- * Darker variant groups
3796
- */
3797
- export declare const tab20b: string[];
3798
-
3799
- /**
3800
- * Lighter variant groups
3801
- */
3802
- export declare const tab20c: string[];
3803
-
3804
- export declare const Table: typeof InternalTable & {
3805
- Column: typeof default_6.Column;
3806
- ColumnGroup: typeof default_6.ColumnGroup;
3807
- SELECTION_COLUMN: typeof default_6.SELECTION_COLUMN;
3808
- EXPAND_COLUMN: typeof default_6.EXPAND_COLUMN;
3809
- SELECTION_ALL: typeof default_6.SELECTION_ALL;
3810
- SELECTION_INVERT: typeof default_6.SELECTION_INVERT;
3811
- SELECTION_NONE: typeof default_6.SELECTION_NONE;
3812
- Summary: typeof default_6.Summary;
3813
- };
3814
-
3815
- export { TableColumnGroupType }
3816
-
3817
- export { TableColumnProps }
3818
-
3819
- export { TableColumnsType }
3820
-
3821
- export { TableColumnType }
3822
-
3823
- export { TablePaginationConfig }
3824
-
3825
- export declare interface TableProps<RecordType extends object = object> extends TableProps_2<RecordType> {
3826
- /**
3827
- * Add empty description for the table
3828
- */
3829
- emptyDescription?: React.ReactNode;
3830
- /**
3831
- * Table ref
3832
- */
3833
- tableRef?: React.Ref<HTMLDivElement>;
3834
- /**
3835
- * Table style
3836
- */
3837
- variant?: "default" | "zebra";
3838
- }
3839
-
3840
- export { TabPaneProps }
3841
-
3842
- export { Tabs }
3843
-
3844
- export { TabsProps }
3845
-
3846
- export declare const Tag: ForwardRefExoticComponent<TagProps & RefAttributes<HTMLSpanElement>> & {
3847
- CheckableTag: ForwardRefExoticComponent<CheckableTagProps & RefAttributes<HTMLSpanElement>>;
3848
- };
3849
-
3850
- export declare interface TagProps extends TagProps_2 {
3851
- /**
3852
- * Indicates if the tag is active
3853
- * @default false
3854
- */
3855
- active?: boolean;
3856
- /**
3857
- * Size of the tag
3858
- * @default "small"
3859
- */
3860
- size?: "small" | "medium" | "large";
3861
- }
3862
-
3863
- export { TagType }
3864
-
3865
- declare const TextAreaInner: (props: TextAreaProps, ref: React.Ref<HTMLTextAreaElement>) => JSX.Element;
3866
-
3867
- export declare interface TextAreaProps extends TextAreaProps_2 {
3868
- }
3869
-
3870
- export declare type Theme = "light" | "dark";
3871
-
3872
- export { theme }
3873
-
3874
- export { ThemeConfig }
3875
-
3876
- export declare const ThemeProvider: ({ theme, appendClassesTo, children, }: ThemeProviderProps) => JSX.Element;
3877
-
3878
- export declare interface ThemeProviderProps extends Omit<ConfigProviderProps_2, "theme" | "prefixCls"> {
3879
- theme: "light" | "dark";
3880
- appendClassesTo?: string | HTMLElement;
3881
- }
3882
-
3883
- export { Timeline }
3884
-
3885
- export { TimelineItemProps }
3886
-
3887
- export { TimelineProps }
3888
-
3889
- export { TimePicker }
3890
-
3891
- export { TimePickerProps }
3892
-
3893
- export { TimeRangePickerProps }
3894
-
3895
- export declare const Toast: typeof InnerToast & {
3896
- List: typeof ToastList;
3897
- Provider: typeof ToastProvider;
3898
- };
3899
-
3900
- export declare const toast: ((message: string, options?: Omit<Toast_2.useToastManager.AddOptions<ToastData>, "data" | "description">) => string) & {
3901
- info: (message: string, options?: Omit<Toast_2.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
3902
- success: (message: string, options?: Omit<Toast_2.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
3903
- error: (message: string, options?: Omit<Toast_2.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
3904
- warning: (message: string, options?: Omit<Toast_2.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
3905
- progress: (message: string, options?: Omit<Toast_2.useToastManager.AddOptions<ToastData>, "data" | "description">) => string;
3906
- };
3907
-
3908
- export declare type ToastData = {
3909
- type: "info" | "success" | "error" | "warning" | "progress";
3910
- };
3911
-
3912
- declare function ToastList({ className }: {
3913
- className?: string;
3914
- }): JSX.Element;
3915
-
3916
- export declare const toastManager: Toast_2.createToastManager.ToastManager;
3917
-
3918
- declare function ToastProvider(props: Toast_2.Provider.Props): JSX.Element;
3919
-
3920
- export declare const Tooltip: ({ arrow, ...rest }: TooltipProps) => JSX.Element;
3921
-
3922
- export declare type TooltipProps = TooltipProps_2 & {
3923
- /**
3924
- * Arrow config for of the tooltip
3925
- * @default false
3926
- */
3927
- arrow?: TooltipProps_2["arrow"];
3928
- };
3929
-
3930
- export declare const Tour: ({ indicatorsRender, ...rest }: TourProps) => JSX.Element;
3931
-
3932
- export declare interface TourProps extends TourProps_2 {
3933
- }
3934
-
3935
- export declare interface TourStepProps extends TourStepProps_2 {
3936
- }
3937
-
3938
- export { Transfer }
3939
-
3940
- export { TransferProps }
3941
-
3942
- export declare function Transition({ children, className, starting, ending, show, keepMounted, onTransitionComplete, listenToChildAnimations, asChild, ...otherProps }: TransitionProps): null;
3943
-
3944
- export declare type TransitionProps = Omit<useRender.ComponentProps<"div">, "render" | "children"> & {
3945
- /** Whether the component should be shown */
3946
- show?: boolean;
3947
- /** CSS classes to apply when the component is opened */
3948
- starting?: string | CSSProperties;
3949
- /** CSS classes to apply when the component is closed */
3950
- ending?: string | CSSProperties;
3951
- /** CSS classes to apply to the component */
3952
- className?: string;
3953
- /** Keep mounted */
3954
- keepMounted?: boolean;
3955
- /**
3956
- * Callback function to be called when the transition ends
3957
- */
3958
- onTransitionComplete?: (show?: boolean) => void;
3959
- /**
3960
- * Whether to listen for animations in child elements
3961
- */
3962
- listenToChildAnimations?: boolean;
3963
- /**
3964
- * Whether to render the child as a child element
3965
- * @default true
3966
- */
3967
- asChild?: boolean;
3968
- children?: React.ReactNode | useRender.ComponentProps<"div">["render"];
3969
- };
3970
-
3971
- export declare const Tree: (<T extends DataNode = DataNode>(props: TreeProps<T> & {
3972
- ref?: React.ForwardedRef<React.ComponentRef<typeof default_7<T>>>;
3973
- }) => ReturnType<typeof MainTreeInner<T>>) & {
3974
- DirectoryTree: <T extends DataNode = DataNode>(props: DirectoryTreeProps<T> & {
3975
- ref?: React.ForwardedRef<React.ComponentRef<typeof default_7<T>>>;
3976
- }) => ReturnType<typeof DirectoryTreeInner<T>>;
3977
- TreeNode: FC<Readonly<TreeNodeProps<DataNode>>>;
3978
- };
3979
-
3980
- export declare type TreeDataNode = DataNode;
3981
-
3982
- export declare interface TreeProps<T extends DataNode = TreeDataNode> extends Omit<TreeProps_2<T>, "treeData" | "expandedKeys" | "defaultExpandedKeys" | "onExpand" | "checkedKeys" | "defaultCheckedKeys" | "onCheck" | "draggable"> {
3983
- treeData?: T[];
3984
- expandedKeys?: Key[];
3985
- defaultExpandedKeys?: Key[];
3986
- onExpand?: (expandedKeys: Key[], info: ExpandInfo<T>) => void;
3987
- checkedKeys?: Key[] | {
3988
- checked: Key[];
3989
- halfChecked: Key[];
3990
- };
3991
- defaultCheckedKeys?: Key[];
3992
- onCheck?: (checkedKeys: Key[], info: CheckInfo<T> & {
3993
- triggeredOriginalKey?: Key;
3994
- }) => void;
3995
- allowDuplicatedKeys?: boolean;
3996
- /** Draggable configuration for tree items */
3997
- draggable?: TreeProps_2<T>["draggable"];
3998
- }
3999
-
4000
- export { TreeSelect }
4001
-
4002
- export { TreeSelectProps }
4003
-
4004
- export declare const Truncate: default_2.FC<TruncateProps>;
4005
-
4006
- export declare type TruncatePosition = "middle" | "end";
4007
-
4008
- export declare interface TruncateProps extends Omit<default_2.ComponentPropsWithoutRef<"span">, "title"> {
4009
- /** Text content to be truncated */
4010
- children: string;
4011
- /** Position where the truncation should occur */
4012
- position?: TruncatePosition;
4013
- /**
4014
- * Number of lines to display before truncating
4015
- * @default 1
4016
- * @remarks Use 'auto' to fit parent height
4017
- */
4018
- lines?: number | "auto";
4019
- container?: HTMLElement | default_2.RefObject<HTMLElement>;
4020
- }
4021
-
4022
- export { Typography }
4023
-
4024
- export { TypographyProps }
4025
-
4026
- /**
4027
- * Base data type for drag and drop operations
4028
- */
4029
- declare type UniqueIdentifier = string | number;
4030
-
4031
- export { unstableSetRender }
4032
-
4033
- export declare const Upload: (({ showRemoveButton, className, fileList, children, ...restProps }: UploadProps) => JSX.Element) & {
4034
- Dragger: ({ children, uploadTitle, uploadDescription, itemRender, className, ...rest }: DraggerProps) => JSX.Element;
4035
- Item: ({ fileName, fileType, status, percent, removable, onRemove, extraActions, className, ...rest }: UploadItemProps_2) => JSX.Element;
4036
- };
4037
-
4038
- export { UploadChangeParam }
4039
-
4040
- export { UploadFile }
4041
-
4042
- export declare type UploadFileStatus = "error" | "done" | "uploading" | "removed" | "pending";
4043
-
4044
- export declare interface UploadItemProps extends React.HTMLAttributes<HTMLDivElement> {
4045
- fileName: string;
4046
- fileType?: string;
4047
- status?: UploadFileStatus;
4048
- percent?: number;
4049
- removable?: boolean;
4050
- onRemove?: () => void;
4051
- extraActions?: React.ReactNode;
4052
- }
4053
-
4054
- export declare interface UploadProps extends UploadProps_2 {
4055
- /**
4056
- * Show remove button for uploaded files
4057
- * @default true
4058
- */
4059
- showRemoveButton?: boolean;
4060
- }
4061
-
4062
- export declare function useAnimationsFinished(ref: React.RefObject<HTMLElement | null>, { waitForNextTick, subtree, }: {
4063
- waitForNextTick?: boolean;
4064
- subtree?: boolean;
4065
- }): (fnToExecute: () => void) => void;
4066
-
4067
- /**
4068
- *
4069
- * @returns the antd classname providing css variables
4070
- */
4071
- export declare const useAntdCssVarClassname: () => string;
4072
-
4073
- export { useApp }
4074
-
4075
- /**
4076
- * A responsive breakpoint hook using window.matchMedia for optimal performance.
4077
- *
4078
- * @param ssrBreakpoint - The breakpoint to use during SSR and before hydration.
4079
- * Defaults to "lg" for better SEO (search engines typically use desktop viewports).
4080
- *
4081
- * @example
4082
- * ```tsx
4083
- * // Default: uses "lg" for SSR
4084
- * const bp = useBreakpoint();
4085
- *
4086
- * // Custom SSR breakpoint
4087
- * const bp = useBreakpoint("md");
4088
- *
4089
- * // Usage
4090
- * bp.breakpoint // Current breakpoint: "sm" | "md" | "lg" | "xl" | "2xl"
4091
- * bp.up("md") // true if screen >= 768px
4092
- * bp.down("lg") // true if screen < 1024px
4093
- * bp.between("md", "xl") // true if 768px <= screen < 1280px
4094
- * bp.only("lg") // true if screen is exactly in "lg" range
4095
- * ```
4096
- */
4097
- export declare const useBreakpoint: (ssrBreakpoint?: Breakpoint) => {
4098
- breakpoint: Breakpoint;
4099
- up: (bp: Breakpoint) => boolean;
4100
- down: (bp: Breakpoint) => boolean;
4101
- between: (minBp: Breakpoint, maxBp: Breakpoint) => boolean;
4102
- only: (bp: Breakpoint) => boolean;
4103
- };
4104
-
4105
- /**
4106
- * Get chart colors and axis configuration based on the current theme.
4107
- * @param options
4108
- * @returns
4109
- */
4110
- export declare const useCharts: (options?: UseChartsOptions) => {
4111
- axisLineColor: string;
4112
- splitLineColor: string;
4113
- axisLabelColor: string;
4114
- chartColors: string[];
4115
- echartsAxisConfig: {
4116
- axisLine: {
4117
- lineStyle: {
4118
- color: string;
4119
- };
4120
- };
4121
- splitLine: {
4122
- lineStyle: {
4123
- color: string;
4124
- };
4125
- };
4126
- axisLabel: {
4127
- color: string;
4128
- fontFamily: string;
4129
- };
4130
- };
4131
- };
4132
-
4133
- export declare interface UseChartsOptions {
4134
- /**
4135
- * The palette to use for the charts.
4136
- * @default "cloudscape"
4137
- */
4138
- palette?: SequentialPaletteName | CategoricalPaletteName;
4139
- /**
4140
- * The theme to use for the charts.
4141
- * @default "light"
4142
- */
4143
- theme?: Theme;
4144
- }
4145
-
4146
- export declare const useCls: () => (...args: ClassValue[]) => string;
4147
-
4148
- /**
4149
- * A hook that manages state that can be either controlled or uncontrolled.
4150
- *
4151
- * @param value - The controlled value
4152
- * @param onChange - Callback when the value changes
4153
- * @param defaultValue - Default value for uncontrolled state
4154
- * @returns [currentValue, setValue] - Current value and setter function
4155
- */
4156
- export declare function useControlledState<T, K extends unknown[] = []>(value?: T, onChange?: ((value: T, ...args: K | []) => void) | React.Dispatch<React.SetStateAction<T>>, defaultValue?: T): [
4157
- T | undefined,
4158
- (value: T | ((prev: T | undefined) => T), ...args: K | []) => void
4159
- ];
4160
-
4161
- /**
4162
- * Get CSS variables from the document
4163
- * @param variables CSS variable names
4164
- * @returns CSS variable values
4165
- */
4166
- export declare const useCSSVariables: (variables: string | string[]) => Record<string, string>;
4167
-
4168
- export declare function useDraggable(enabled?: boolean): {
4169
- ref: (element: HTMLElement | null) => () => void;
4170
- };
4171
-
4172
- declare interface UseDropdownMenuProps {
4173
- /**
4174
- * Callback function to handle the open state change of the dropdown menu.
4175
- */
4176
- onOpenChange?: (open: boolean) => void;
4177
- items: DropdownMenuItemType[];
4178
- inCombobox?: boolean;
4179
- classNames?: {
4180
- item?: string;
4181
- itemIcon?: string;
4182
- itemSuffix?: string;
4183
- group?: string;
4184
- groupLabel?: string;
4185
- divider?: string;
4186
- };
4187
- /**
4188
- * Custom render function for menu items
4189
- */
4190
- itemRender?: (item: DropdownMenuItemType, props: React.HTMLAttributes<HTMLElement>) => React.ReactElement;
4191
- /**
4192
- * Whether to keep the dropdown open when an item is selected
4193
- * @default false
4194
- */
4195
- keepOpenOnSelect?: boolean;
4196
- /**
4197
- * Control the highlighted state of the menu item
4198
- */
4199
- highlightedItemKey?: React.Key;
4200
- /**
4201
- * Control the selected state of the menu item
4202
- */
4203
- selectedItemKeys?: React.Key[];
4204
- /**
4205
- * Whether to show checkbox
4206
- * @default false
4207
- */
4208
- showCheckbox?: boolean;
4209
- /**
4210
- * Function to extract keywords from the item for search filtering
4211
- * @default (item) => [String(item.key), reactNodeToString(item.label)]
4212
- */
4213
- getItemKeywords?: (item: DropdownMenuItemType & {
4214
- type: "item";
4215
- }) => string[];
4216
- }
4217
-
4218
- export declare const useDS: () => {
4219
- theme: "light" | "dark";
4220
- };
4221
-
4222
- export declare function useElementSize<T extends HTMLElement = any>(options?: ResizeObserverOptions): {
4223
- ref: RefObject<T>;
4224
- width: number;
4225
- height: number;
4226
- };
4227
-
4228
- export declare const useEnhancedEffect: typeof useLayoutEffect;
4229
-
4230
- export declare function useEventCallback<Fn extends AnyFunction>(fn?: Fn): Fn;
4231
-
4232
- export { useForm }
4233
-
4234
- export declare const useGetPrefixCls: () => {
4235
- getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string;
4236
- };
4237
-
4238
- export declare function useHover<T extends HTMLElement>(): [
4239
- (node: T) => void,
4240
- boolean
4241
- ];
4242
-
4243
- export declare function useLatestRef<T>(value: T): RefObject<T>;
4244
-
4245
- export declare const useMessage: () => MessageInstance;
4246
-
4247
- export declare const useModal: () => HookAPI;
4248
-
4249
- export declare function useResizeObserver<T extends HTMLElement = any>(options?: ResizeObserverOptions): readonly [RefObject<T>, ObserverRect];
4250
-
4251
- export declare const useToken: () => {
4252
- theme: Theme_2<SeedToken, AliasToken>;
4253
- token: GlobalToken;
4254
- hashId: string;
4255
- };
4256
-
4257
- export declare const useUniqueKeysTree: <T extends DataNode>({ treeData: originTreeData, expandedKeys, defaultExpandedKeys, onExpand, checkedKeys, defaultCheckedKeys, onCheck, allowDuplicatedKeys, }: UseUniqueKeysTreeProps<T>) => {
4258
- processedTreeData: T[];
4259
- currentUniqueExpandedKeys: Key[];
4260
- currentUniqueCheckedKeys: Key[];
4261
- handleAntTreeExpand: (uniqueKeys: readonly Key[], info: {
4262
- node: EventDataNode<T>;
4263
- expanded: boolean;
4264
- nativeEvent: MouseEvent;
4265
- }) => void;
4266
- handleAntTreeCheck: (checkedInfoOrKeys: readonly Key[] | {
4267
- checked: readonly Key[];
4268
- halfChecked: readonly Key[];
4269
- }, info: CheckInfo<T>) => void;
4270
- };
4271
-
4272
- declare interface UseUniqueKeysTreeProps<T extends DataNode> {
4273
- treeData: T[] | undefined;
4274
- expandedKeys?: Key[];
4275
- defaultExpandedKeys?: Key[];
4276
- onExpand?: (expandedKeys: Key[], info: ExpandInfo<T>) => void;
4277
- checkedKeys?: Key[] | {
4278
- checked: Key[];
4279
- halfChecked: Key[];
4280
- };
4281
- defaultCheckedKeys?: Key[];
4282
- onCheck?: (checkedKeys: Key[], info: CheckInfo<T> & {
4283
- triggeredOriginalKey?: Key;
4284
- }) => void;
4285
- allowDuplicatedKeys?: boolean;
4286
- }
4287
-
4288
- export declare const useUploadItemRender: (props: UseUploadItemRenderProps) => UploadProps_2["itemRender"];
4289
-
4290
- export declare type UseUploadItemRenderProps = {
4291
- showRemoveButton?: boolean;
4292
- };
4293
-
4294
- export { useWatch }
4295
-
4296
- export declare function useWindowSize(): {
4297
- width: any;
4298
- height: any;
4299
- };
4300
-
4301
- export { version }
4302
-
4303
- export declare const VerticalCollapsiblePanel: default_2.FC<VerticalCollapsiblePanelProps>;
4304
-
4305
- export declare interface VerticalCollapsiblePanelProps {
4306
- /**
4307
- * The content of the panel that will be toggled
4308
- */
4309
- children: default_2.ReactNode;
4310
- /**
4311
- * The header of the panel
4312
- */
4313
- title?: default_2.ReactNode;
4314
- /**
4315
- * Indicate if the title should be used as a trigger
4316
- * @default true
4317
- */
4318
- useTitleAsTrigger?: boolean;
4319
- /**
4320
- * Custom Content Padding
4321
- * @default "24px"
4322
- */
4323
- contentPadding?: number | string | boolean;
4324
- /**
4325
- * Add more content below the title
4326
- * Only show when panel is open
4327
- */
4328
- afterTitle?: default_2.ReactNode;
4329
- /**
4330
- * Whether the panel is expanded by default
4331
- */
4332
- defaultOpen?: boolean;
4333
- /**
4334
- * Control the open state (makes the component controlled)
4335
- */
4336
- open?: boolean;
4337
- /**
4338
- * Callback when the open state changes
4339
- */
4340
- onOpenChange?: (open: boolean) => void;
4341
- /**
4342
- * Additional class name for the component
4343
- */
4344
- className?: string;
4345
- /**
4346
- * Addtional class name for the header
4347
- */
4348
- headerClassName?: string;
4349
- /**
4350
- * Addtional class name for the header
4351
- */
4352
- headerInnerClassName?: string;
4353
- /**
4354
- * Addtional class name for the body
4355
- * */
4356
- bodyClassName?: string;
4357
- /**
4358
- * Actions to be displayed in the header
4359
- * Only show when panel is open
4360
- */
4361
- actions?: default_2.ReactNode;
4362
- /**
4363
- * Keeping it as mounted, just hide the content
4364
- */
4365
- keepMounted?: boolean;
4366
- }
4367
-
4368
- export { Watermark }
4369
-
4370
- export { WatermarkProps }
4371
-
4372
- export declare type WidthAntdTokensProps<T extends IntrinsicElement> = {
4373
- as?: IntrinsicElement;
4374
- } & ComponentProps<T>;
4375
-
4376
- export declare const WithAntdTokens: <T extends IntrinsicElement = "div">({ as: Tag, ref, className, ...rest }: WidthAntdTokensProps<T>) => null;
4377
-
4378
- export declare const WithRenderProp: <T extends default_2.ElementType = "div", State extends Record<string, unknown> = Record<string, unknown>>(props: WithRenderPropProps<T, State> & {
4379
- ref?: default_2.Ref<ElementTypeToDOMType<T>>;
4380
- }) => ReturnType<typeof WithRenderPropInner>;
4381
-
4382
- declare const WithRenderPropInner: <T extends default_2.ElementType = "div", State extends Record<string, unknown> = Record<string, unknown>>(props: WithRenderPropProps<T, State>, ref: default_2.ForwardedRef<T>) => null;
4383
-
4384
- export declare type WithRenderPropProps<T extends default_2.ElementType = "div", State extends Record<string | number | symbol, unknown> = Record<string, unknown>> = default_2.ComponentPropsWithoutRef<T> & {
4385
- render?: useRender.RenderProp<State>;
4386
- as?: T;
4387
- state?: State;
4388
- };
4389
-
4390
- export { }
1
+ export * from './components';
2
+ export * from './tokens';
3
+ export * from './metadata';
4
+ //# sourceMappingURL=index.d.ts.map