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