@expcat/tigercat-react 0.3.0 → 0.3.69

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 (343) hide show
  1. package/dist/{chunk-IAF24RKI.mjs → chunk-24U2DQRP.mjs} +1 -1
  2. package/dist/{chunk-IL2Y5RCX.mjs → chunk-2DW3WFZI.mjs} +95 -45
  3. package/dist/{chunk-6MGEGOYJ.js → chunk-2GKTVAAB.js} +24 -18
  4. package/dist/{chunk-HGTF6A46.mjs → chunk-3577FW3I.mjs} +58 -92
  5. package/dist/{chunk-GY6D4XS3.js → chunk-3GW3UAKB.js} +40 -98
  6. package/dist/{chunk-VD3IK5XT.mjs → chunk-3M2IG6IN.mjs} +2 -3
  7. package/dist/{chunk-T3GSXTDU.js → chunk-3NE6VZRY.js} +2 -3
  8. package/dist/chunk-3PV2MDST.mjs +95 -0
  9. package/dist/{chunk-36RRHNZD.js → chunk-3T7L3MHX.js} +33 -15
  10. package/dist/{chunk-IY4LEJYF.js → chunk-4PPTEEDI.js} +29 -30
  11. package/dist/{chunk-Z4Z3I74Q.mjs → chunk-4Y7YH32A.mjs} +37 -46
  12. package/dist/chunk-56KTCMRE.mjs +77 -0
  13. package/dist/chunk-5P5M656V.mjs +75 -0
  14. package/dist/{chunk-Z6G4HABF.js → chunk-67FVBKBC.js} +58 -95
  15. package/dist/{chunk-KAEHFMTQ.mjs → chunk-6IH5QPTR.mjs} +121 -144
  16. package/dist/{chunk-C52ZCGYG.mjs → chunk-6PXNWGR5.mjs} +49 -65
  17. package/dist/{chunk-MQTHGPHF.js → chunk-72MWKUBC.js} +49 -42
  18. package/dist/{chunk-PT4WLSTJ.mjs → chunk-763M6U5U.mjs} +105 -65
  19. package/dist/{chunk-RTQNWZN4.mjs → chunk-77PE7OFK.mjs} +3 -5
  20. package/dist/{chunk-KPZTGRNA.js → chunk-7Z64GEMN.js} +51 -55
  21. package/dist/{chunk-3WPKVV4N.js → chunk-A3PYG3D6.js} +6 -39
  22. package/dist/chunk-AQ72JVUG.js +41 -0
  23. package/dist/{chunk-P4EFJIXU.mjs → chunk-AUP3PMDD.mjs} +18 -41
  24. package/dist/{chunk-PUDU34R4.mjs → chunk-AVUXDQYO.mjs} +26 -20
  25. package/dist/{chunk-HUZVBDHV.js → chunk-AY5Z3NIW.js} +15 -20
  26. package/dist/{chunk-67EK62HG.mjs → chunk-B3LRUKXM.mjs} +1 -1
  27. package/dist/{chunk-JAVDNFJD.js → chunk-C7UKFKVY.js} +26 -33
  28. package/dist/{chunk-TZ26HQAW.js → chunk-CI2WHAT2.js} +18 -38
  29. package/dist/{chunk-WYTHTJN3.mjs → chunk-CYZLGYY4.mjs} +112 -59
  30. package/dist/{chunk-NSGDRTSQ.mjs → chunk-D5KYIQWB.mjs} +6 -39
  31. package/dist/chunk-DQNA57CA.js +57 -0
  32. package/dist/{chunk-6575DOCV.mjs → chunk-DTQZPZSJ.mjs} +3 -3
  33. package/dist/{chunk-7P6PHSFM.js → chunk-DXXYPVJJ.js} +32 -35
  34. package/dist/{chunk-UFAXJVMD.js → chunk-EFLIFXZH.js} +3 -3
  35. package/dist/{chunk-JI7SFMUT.mjs → chunk-EIMAQHCQ.mjs} +29 -80
  36. package/dist/chunk-ENSLMM3L.mjs +68 -0
  37. package/dist/chunk-F24IF2QL.js +74 -0
  38. package/dist/{chunk-ZUUG3WOL.js → chunk-F4Q5QMX2.js} +171 -94
  39. package/dist/{chunk-V2HVHLBY.mjs → chunk-FE7PEZTI.mjs} +19 -39
  40. package/dist/chunk-FLYJVZED.mjs +30 -0
  41. package/dist/chunk-FMF2G6BJ.js +179 -0
  42. package/dist/{chunk-YIF5VX7K.mjs → chunk-FNDPGSEW.mjs} +14 -13
  43. package/dist/{chunk-HQLZL3XQ.mjs → chunk-FPNT7FV5.mjs} +3 -7
  44. package/dist/{chunk-YE2M2HNM.js → chunk-FSDZJD7M.js} +36 -45
  45. package/dist/{chunk-4PTI6ZUK.js → chunk-GASFXURT.js} +93 -43
  46. package/dist/chunk-GB5G2CJY.js +96 -0
  47. package/dist/{chunk-LXA2YBAO.js → chunk-GJEWBALW.js} +2 -2
  48. package/dist/{chunk-GXTBCX3M.js → chunk-H5MZ54PM.js} +16 -39
  49. package/dist/{chunk-4TWHENPT.js → chunk-HB2UYJBY.js} +32 -17
  50. package/dist/{chunk-5HUYCSA4.mjs → chunk-HPXLUJFJ.mjs} +22 -19
  51. package/dist/chunk-HQ3QOT7H.js +33 -0
  52. package/dist/chunk-I5TCE5E7.js +32 -0
  53. package/dist/{chunk-QFVE7GKD.js → chunk-IBYIPXIO.js} +5 -26
  54. package/dist/{chunk-3XXXM4OB.mjs → chunk-IGE44BIS.mjs} +67 -23
  55. package/dist/{chunk-XRFK2IXM.js → chunk-IHH2O7YK.js} +6 -7
  56. package/dist/chunk-IP3MAJSH.mjs +55 -0
  57. package/dist/{chunk-OVWCTDAL.js → chunk-IRH2ZVD3.js} +37 -49
  58. package/dist/chunk-IVGKPD2L.mjs +39 -0
  59. package/dist/{chunk-CJJ56NVL.mjs → chunk-IXJMMM26.mjs} +16 -60
  60. package/dist/{chunk-4IO2M3ZJ.js → chunk-J3HKED4B.js} +17 -17
  61. package/dist/{chunk-MF3H7WWW.mjs → chunk-JNLX47UL.mjs} +33 -15
  62. package/dist/{chunk-L63N3LCG.js → chunk-JQNKI2ZZ.js} +79 -31
  63. package/dist/{chunk-X4F6NSI5.mjs → chunk-JUWFVIDP.mjs} +2 -2
  64. package/dist/{chunk-LADCWARG.mjs → chunk-JVTAKNRO.mjs} +17 -15
  65. package/dist/{chunk-2Y327ZU4.js → chunk-KAWE5LQZ.js} +80 -83
  66. package/dist/{chunk-TR246HQP.mjs → chunk-KMTERPME.mjs} +14 -18
  67. package/dist/chunk-LIV33O73.mjs +26 -0
  68. package/dist/{chunk-PVOQUXIB.mjs → chunk-LL6B4BHF.mjs} +4 -4
  69. package/dist/chunk-LXQOQJMU.js +79 -0
  70. package/dist/{chunk-HT2BXCEM.js → chunk-M46L73HR.js} +19 -19
  71. package/dist/{chunk-NMDNLB3C.mjs → chunk-MDZDPGRK.mjs} +30 -27
  72. package/dist/{chunk-WKGCUR7O.mjs → chunk-MTL2QUM3.mjs} +7 -7
  73. package/dist/chunk-MWH6FCSE.js +97 -0
  74. package/dist/{chunk-YER7IQF4.mjs → chunk-N4EMXCRQ.mjs} +172 -95
  75. package/dist/{chunk-SIB4EHB6.js → chunk-NEP3CS6S.js} +111 -58
  76. package/dist/{chunk-FAZQT7YP.mjs → chunk-NJCKTIWB.mjs} +6 -6
  77. package/dist/{chunk-IIVRVCCP.mjs → chunk-NKKIJQMV.mjs} +53 -57
  78. package/dist/{chunk-MQXBU5YX.mjs → chunk-NQFHS4W2.mjs} +29 -21
  79. package/dist/chunk-NTODO3Q3.mjs +94 -0
  80. package/dist/{chunk-NDOYQK2R.mjs → chunk-NZLOLMT2.mjs} +41 -99
  81. package/dist/chunk-O3W3OZ6V.js +37 -0
  82. package/dist/{chunk-IFY46RWU.js → chunk-OESNOOOT.js} +1 -2
  83. package/dist/{chunk-IWENGARY.mjs → chunk-OFBK35TK.mjs} +1 -1
  84. package/dist/{chunk-R7TOQU3U.js → chunk-OIUIR5ZR.js} +15 -59
  85. package/dist/{chunk-QEAC4MIG.mjs → chunk-OUAZM7NY.mjs} +12 -59
  86. package/dist/{chunk-R67R3TVA.mjs → chunk-OXT5RN55.mjs} +5 -5
  87. package/dist/{chunk-CIL2AC3F.js → chunk-OYCMGKQ7.js} +15 -23
  88. package/dist/{chunk-IQINYCU6.js → chunk-PR3PQUKM.js} +17 -15
  89. package/dist/chunk-PTEDJ6MA.js +29 -0
  90. package/dist/{chunk-D3I2SY7X.js → chunk-PWZB45Z7.js} +13 -60
  91. package/dist/{chunk-GZPMLPRW.js → chunk-PXPUPQRO.js} +2 -2
  92. package/dist/{chunk-OZLGNWET.js → chunk-Q57BYUUW.js} +12 -28
  93. package/dist/chunk-QAO5KANE.mjs +36 -0
  94. package/dist/{chunk-AITVDDCE.mjs → chunk-QGCQAJGL.mjs} +81 -33
  95. package/dist/{chunk-JOHKSMJM.mjs → chunk-QLHFXYWA.mjs} +59 -96
  96. package/dist/{chunk-C5EFBJBR.js → chunk-QM4GOQDT.js} +119 -142
  97. package/dist/{chunk-PBJ2J2B3.js → chunk-QNRAM3CM.js} +2 -2
  98. package/dist/{chunk-Z5DDULTA.js → chunk-RARHRSPQ.js} +2 -2
  99. package/dist/{chunk-5QKMQRCW.js → chunk-RDIEZKV2.js} +28 -20
  100. package/dist/{chunk-OZLAGTZW.mjs → chunk-RGFSY3S2.mjs} +50 -43
  101. package/dist/{chunk-IYFSM2GA.mjs → chunk-RGZYYVQF.mjs} +26 -33
  102. package/dist/{chunk-3GD3LOII.mjs → chunk-RITTIFCJ.mjs} +1 -2
  103. package/dist/{chunk-Y2JOJ4D6.js → chunk-RKB2VUQO.js} +8 -10
  104. package/dist/{chunk-7SLNHUGJ.js → chunk-RNEL4XIO.js} +28 -79
  105. package/dist/{chunk-6ZTCBQJ7.mjs → chunk-RPTLVIBF.mjs} +17 -25
  106. package/dist/{chunk-5ZVSFIZD.js → chunk-RYWGELJ7.js} +2 -6
  107. package/dist/chunk-S4GNTA7V.mjs +176 -0
  108. package/dist/{chunk-VSF4DF7N.js → chunk-SAZ6V6DX.js} +21 -18
  109. package/dist/{chunk-Q3DPJHNM.js → chunk-SFALTVPS.js} +3 -5
  110. package/dist/{chunk-LZNG2HGC.mjs → chunk-SH6O6LDJ.mjs} +72 -30
  111. package/dist/{chunk-6E5UKM6O.js → chunk-SM7RDJFB.js} +104 -64
  112. package/dist/{chunk-DGBYGBLR.js → chunk-SOC74QA2.js} +32 -52
  113. package/dist/{chunk-KOLLAGRK.mjs → chunk-SQ7OL2X5.mjs} +2 -3
  114. package/dist/{chunk-VO4WDK4K.js → chunk-SSQOCZ6O.js} +1 -2
  115. package/dist/{chunk-KV4LLPAY.mjs → chunk-SW4I4X6E.mjs} +8 -10
  116. package/dist/{chunk-GQMYCYZ4.js → chunk-TDRINUMH.js} +31 -28
  117. package/dist/{chunk-DIZNY6N4.mjs → chunk-TGKNEMD4.mjs} +8 -8
  118. package/dist/{chunk-BAPR7UUR.mjs → chunk-TGPQ4KET.mjs} +13 -29
  119. package/dist/{chunk-3XKBDV2Q.mjs → chunk-TUA5PDRX.mjs} +7 -8
  120. package/dist/{chunk-CES6LGQ7.mjs → chunk-UE234MW4.mjs} +34 -37
  121. package/dist/{chunk-U4ZVEPYD.js → chunk-URM7QDHH.js} +14 -18
  122. package/dist/chunk-UZ7SBFQV.mjs +35 -0
  123. package/dist/{chunk-HGF2EL25.mjs → chunk-V5NIFF2F.mjs} +34 -54
  124. package/dist/{chunk-672SCJWZ.mjs → chunk-VCNZEQEB.mjs} +10 -10
  125. package/dist/{chunk-R7MS42PL.js → chunk-VCOBBJLP.js} +9 -9
  126. package/dist/{chunk-2TS6X5RA.js → chunk-VCULFIZ5.js} +7 -7
  127. package/dist/{chunk-N32MAX4A.js → chunk-W4TFISRK.js} +70 -28
  128. package/dist/{chunk-4MMT4EJJ.mjs → chunk-WAIXKROS.mjs} +17 -22
  129. package/dist/{chunk-YGOTPK2W.mjs → chunk-WGRYO5HX.mjs} +34 -19
  130. package/dist/{chunk-ZPWDDAFE.js → chunk-XID6T65A.js} +14 -13
  131. package/dist/chunk-XJ7U2W7S.mjs +27 -0
  132. package/dist/{chunk-ZN2BZCTI.js → chunk-XKDWDANG.js} +8 -8
  133. package/dist/{chunk-EI2GHMQS.js → chunk-XLVEI7GS.js} +15 -13
  134. package/dist/{chunk-6YKZAWNX.js → chunk-XWNVBCJA.js} +14 -14
  135. package/dist/{chunk-JW64IJP2.js → chunk-XWRJVNB6.js} +67 -23
  136. package/dist/{chunk-HDDBBZQH.js → chunk-YV6Y7C43.js} +48 -64
  137. package/dist/{chunk-XS5JP2KO.mjs → chunk-ZFHTSHXS.mjs} +82 -85
  138. package/dist/{chunk-73DMQ2SR.mjs → chunk-ZGQOYCQT.mjs} +32 -44
  139. package/dist/{chunk-WDAMDVLU.mjs → chunk-ZIUOENTL.mjs} +6 -27
  140. package/dist/{chunk-GJKT2B56.js → chunk-ZTVATZB6.js} +58 -92
  141. package/dist/components/ActivityFeed.js +10 -10
  142. package/dist/components/ActivityFeed.mjs +8 -8
  143. package/dist/components/Alert.js +3 -2
  144. package/dist/components/Alert.mjs +2 -1
  145. package/dist/components/Anchor.js +4 -4
  146. package/dist/components/Anchor.mjs +1 -1
  147. package/dist/components/AnchorLink.js +4 -4
  148. package/dist/components/AnchorLink.mjs +2 -2
  149. package/dist/components/AreaChart.d.mts +3 -0
  150. package/dist/components/AreaChart.d.ts +3 -0
  151. package/dist/components/AreaChart.js +3 -3
  152. package/dist/components/AreaChart.mjs +1 -1
  153. package/dist/components/Avatar.d.mts +1 -1
  154. package/dist/components/Avatar.d.ts +1 -1
  155. package/dist/components/Avatar.js +2 -2
  156. package/dist/components/Avatar.mjs +1 -1
  157. package/dist/components/BackTop.js +3 -3
  158. package/dist/components/BackTop.mjs +1 -1
  159. package/dist/components/Badge.d.mts +0 -3
  160. package/dist/components/Badge.d.ts +0 -3
  161. package/dist/components/Badge.js +2 -2
  162. package/dist/components/Badge.mjs +1 -1
  163. package/dist/components/BarChart.js +3 -3
  164. package/dist/components/BarChart.mjs +1 -1
  165. package/dist/components/Breadcrumb.d.mts +0 -1
  166. package/dist/components/Breadcrumb.d.ts +0 -1
  167. package/dist/components/BreadcrumbItem.js +2 -2
  168. package/dist/components/BreadcrumbItem.mjs +1 -1
  169. package/dist/components/Button.js +2 -2
  170. package/dist/components/Button.mjs +1 -1
  171. package/dist/components/Card.js +2 -2
  172. package/dist/components/Card.mjs +1 -1
  173. package/dist/components/Carousel.js +2 -2
  174. package/dist/components/Carousel.mjs +1 -1
  175. package/dist/components/ChatWindow.js +7 -7
  176. package/dist/components/ChatWindow.mjs +5 -5
  177. package/dist/components/Checkbox.js +2 -2
  178. package/dist/components/Checkbox.mjs +1 -1
  179. package/dist/components/Col.js +3 -3
  180. package/dist/components/Col.mjs +2 -2
  181. package/dist/components/CollapsePanel.js +3 -3
  182. package/dist/components/CollapsePanel.mjs +1 -1
  183. package/dist/components/CommentThread.js +8 -8
  184. package/dist/components/CommentThread.mjs +6 -6
  185. package/dist/components/DataTableWithToolbar.js +8 -11
  186. package/dist/components/DataTableWithToolbar.mjs +6 -9
  187. package/dist/components/DatePicker.js +2 -2
  188. package/dist/components/DatePicker.mjs +1 -1
  189. package/dist/components/Descriptions.js +3 -3
  190. package/dist/components/Descriptions.mjs +1 -1
  191. package/dist/components/Divider.d.mts +1 -3
  192. package/dist/components/Divider.d.ts +1 -3
  193. package/dist/components/Divider.js +2 -2
  194. package/dist/components/Divider.mjs +1 -1
  195. package/dist/components/DonutChart.d.mts +6 -0
  196. package/dist/components/DonutChart.d.ts +6 -0
  197. package/dist/components/DonutChart.js +4 -4
  198. package/dist/components/DonutChart.mjs +2 -2
  199. package/dist/components/Drawer.js +2 -2
  200. package/dist/components/Drawer.mjs +1 -1
  201. package/dist/components/Dropdown.d.mts +1 -15
  202. package/dist/components/Dropdown.d.ts +1 -15
  203. package/dist/components/Dropdown.js +3 -3
  204. package/dist/components/Dropdown.mjs +1 -1
  205. package/dist/components/DropdownItem.js +3 -3
  206. package/dist/components/DropdownItem.mjs +2 -2
  207. package/dist/components/Form.d.mts +1 -0
  208. package/dist/components/Form.d.ts +1 -0
  209. package/dist/components/Form.js +3 -3
  210. package/dist/components/Form.mjs +1 -1
  211. package/dist/components/FormItem.js +3 -3
  212. package/dist/components/FormItem.mjs +2 -2
  213. package/dist/components/FormWizard.js +6 -6
  214. package/dist/components/FormWizard.mjs +4 -4
  215. package/dist/components/Icon.js +2 -2
  216. package/dist/components/Icon.mjs +1 -1
  217. package/dist/components/Input.d.mts +4 -7
  218. package/dist/components/Input.d.ts +4 -7
  219. package/dist/components/Input.js +2 -2
  220. package/dist/components/Input.mjs +1 -1
  221. package/dist/components/LineChart.js +3 -3
  222. package/dist/components/LineChart.mjs +1 -1
  223. package/dist/components/Link.js +2 -2
  224. package/dist/components/Link.mjs +1 -1
  225. package/dist/components/List.js +2 -4
  226. package/dist/components/List.mjs +1 -3
  227. package/dist/components/Loading.js +2 -2
  228. package/dist/components/Loading.mjs +1 -1
  229. package/dist/components/Menu.js +3 -3
  230. package/dist/components/Menu.mjs +1 -1
  231. package/dist/components/MenuItem.js +3 -3
  232. package/dist/components/MenuItem.mjs +2 -2
  233. package/dist/components/MenuItemGroup.js +4 -4
  234. package/dist/components/MenuItemGroup.mjs +3 -3
  235. package/dist/components/Message.d.mts +0 -18
  236. package/dist/components/Message.d.ts +0 -18
  237. package/dist/components/Message.js +5 -4
  238. package/dist/components/Message.mjs +2 -1
  239. package/dist/components/Modal.d.mts +15 -0
  240. package/dist/components/Modal.d.ts +15 -0
  241. package/dist/components/Modal.js +3 -2
  242. package/dist/components/Modal.mjs +2 -1
  243. package/dist/components/Notification.d.mts +0 -15
  244. package/dist/components/Notification.d.ts +0 -15
  245. package/dist/components/Notification.js +5 -4
  246. package/dist/components/Notification.mjs +2 -1
  247. package/dist/components/NotificationCenter.js +9 -10
  248. package/dist/components/NotificationCenter.mjs +7 -8
  249. package/dist/components/Pagination.js +3 -3
  250. package/dist/components/Pagination.mjs +1 -1
  251. package/dist/components/PieChart.js +3 -3
  252. package/dist/components/PieChart.mjs +1 -1
  253. package/dist/components/Popconfirm.d.mts +0 -26
  254. package/dist/components/Popconfirm.d.ts +0 -26
  255. package/dist/components/Popconfirm.js +3 -2
  256. package/dist/components/Popconfirm.mjs +2 -1
  257. package/dist/components/Popover.d.mts +0 -8
  258. package/dist/components/Popover.d.ts +0 -8
  259. package/dist/components/Popover.js +3 -2
  260. package/dist/components/Popover.mjs +2 -1
  261. package/dist/components/Progress.js +2 -2
  262. package/dist/components/Progress.mjs +1 -1
  263. package/dist/components/RadarChart.d.mts +8 -0
  264. package/dist/components/RadarChart.d.ts +8 -0
  265. package/dist/components/RadarChart.js +4 -3
  266. package/dist/components/RadarChart.mjs +2 -1
  267. package/dist/components/Radio.js +3 -3
  268. package/dist/components/Radio.mjs +2 -2
  269. package/dist/components/RadioGroup.js +3 -3
  270. package/dist/components/RadioGroup.mjs +1 -1
  271. package/dist/components/Row.js +3 -3
  272. package/dist/components/Row.mjs +1 -1
  273. package/dist/components/ScatterChart.js +3 -3
  274. package/dist/components/ScatterChart.mjs +1 -1
  275. package/dist/components/Select.js +2 -2
  276. package/dist/components/Select.mjs +1 -1
  277. package/dist/components/Sidebar.js +2 -2
  278. package/dist/components/Sidebar.mjs +1 -1
  279. package/dist/components/Skeleton.js +2 -2
  280. package/dist/components/Skeleton.mjs +1 -1
  281. package/dist/components/Slider.js +2 -2
  282. package/dist/components/Slider.mjs +1 -1
  283. package/dist/components/Space.js +2 -2
  284. package/dist/components/Space.mjs +1 -1
  285. package/dist/components/Steps.js +3 -3
  286. package/dist/components/Steps.mjs +1 -1
  287. package/dist/components/StepsItem.js +2 -2
  288. package/dist/components/StepsItem.mjs +1 -1
  289. package/dist/components/SubMenu.js +5 -5
  290. package/dist/components/SubMenu.mjs +4 -4
  291. package/dist/components/TabPane.d.mts +18 -3
  292. package/dist/components/TabPane.d.ts +18 -3
  293. package/dist/components/TabPane.js +2 -2
  294. package/dist/components/TabPane.mjs +1 -1
  295. package/dist/components/Table.js +2 -2
  296. package/dist/components/Table.mjs +1 -1
  297. package/dist/components/Tabs.d.mts +44 -2
  298. package/dist/components/Tabs.d.ts +44 -2
  299. package/dist/components/Tabs.js +3 -3
  300. package/dist/components/Tabs.mjs +1 -1
  301. package/dist/components/Tag.js +2 -2
  302. package/dist/components/Tag.mjs +1 -1
  303. package/dist/components/Text.js +2 -2
  304. package/dist/components/Text.mjs +1 -1
  305. package/dist/components/Textarea.js +2 -2
  306. package/dist/components/Textarea.mjs +1 -1
  307. package/dist/components/TimePicker.js +2 -2
  308. package/dist/components/TimePicker.mjs +1 -1
  309. package/dist/components/Timeline.js +2 -2
  310. package/dist/components/Timeline.mjs +1 -1
  311. package/dist/components/Tooltip.d.mts +1 -11
  312. package/dist/components/Tooltip.d.ts +1 -11
  313. package/dist/components/Tooltip.js +3 -2
  314. package/dist/components/Tooltip.mjs +2 -1
  315. package/dist/components/Tree.js +3 -3
  316. package/dist/components/Tree.mjs +1 -1
  317. package/dist/components/Upload.js +2 -2
  318. package/dist/components/Upload.mjs +1 -1
  319. package/dist/index.js +152 -150
  320. package/dist/index.mjs +71 -69
  321. package/package.json +2 -2
  322. package/dist/chunk-3OF7XPIQ.js +0 -90
  323. package/dist/chunk-427CM2U6.mjs +0 -76
  324. package/dist/chunk-6DYS4PJT.mjs +0 -99
  325. package/dist/chunk-6YDIBMCM.mjs +0 -33
  326. package/dist/chunk-A3DJSVTE.js +0 -68
  327. package/dist/chunk-AGUPZEUL.mjs +0 -35
  328. package/dist/chunk-CKUSQR2H.mjs +0 -41
  329. package/dist/chunk-CR4QK2AB.mjs +0 -88
  330. package/dist/chunk-EB6EDLJZ.mjs +0 -50
  331. package/dist/chunk-GW4EWT2K.mjs +0 -125
  332. package/dist/chunk-KELLYJZY.mjs +0 -148
  333. package/dist/chunk-KUCFT2OA.js +0 -43
  334. package/dist/chunk-QY6I7LU5.js +0 -127
  335. package/dist/chunk-STEIWBMF.mjs +0 -66
  336. package/dist/chunk-T4TJJMLM.mjs +0 -34
  337. package/dist/chunk-UG3I4PCY.js +0 -102
  338. package/dist/chunk-YESS6YKC.js +0 -37
  339. package/dist/chunk-YYGTJKP5.js +0 -39
  340. package/dist/chunk-ZPFZMXA6.js +0 -150
  341. package/dist/chunk-ZREFCRX3.js +0 -52
  342. package/dist/{chunk-MKWXJZ3T.js → chunk-QYYAXM5F.js} +1 -1
  343. package/dist/{chunk-WSJO2PIE.mjs → chunk-XZVQ3PJS.mjs} +1 -1
@@ -0,0 +1,77 @@
1
+ import { usePopup } from './chunk-3PV2MDST.mjs';
2
+ import { useRef, useMemo } from 'react';
3
+ import { createFloatingIdFactory, classNames, getPopoverContainerClasses, getPopoverTriggerClasses, getPopoverContentClasses, POPOVER_TITLE_CLASSES, POPOVER_TEXT_CLASSES } from '@expcat/tigercat-core';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
+
6
+ var createPopoverId = createFloatingIdFactory("popover");
7
+ var Popover = ({
8
+ visible,
9
+ defaultVisible = false,
10
+ title,
11
+ content,
12
+ trigger = "click",
13
+ placement = "top",
14
+ disabled = false,
15
+ width,
16
+ offset = 8,
17
+ className,
18
+ style,
19
+ children,
20
+ titleContent,
21
+ contentContent,
22
+ onVisibleChange,
23
+ ...divProps
24
+ }) => {
25
+ const popoverIdRef = useRef(null);
26
+ if (!popoverIdRef.current) popoverIdRef.current = createPopoverId();
27
+ const popoverId = popoverIdRef.current;
28
+ const titleId = `${popoverId}-title`;
29
+ const contentId = `${popoverId}-content`;
30
+ const {
31
+ currentVisible,
32
+ containerRef,
33
+ triggerRef,
34
+ floatingRef,
35
+ floatingStyles,
36
+ triggerHandlers
37
+ } = usePopup({ visible, defaultVisible, disabled, trigger, placement, offset, onVisibleChange });
38
+ const containerClasses = useMemo(
39
+ () => classNames(getPopoverContainerClasses(), className),
40
+ [className]
41
+ );
42
+ const triggerClasses = useMemo(() => getPopoverTriggerClasses(disabled), [disabled]);
43
+ const contentClasses = useMemo(() => getPopoverContentClasses(width), [width]);
44
+ if (!children) return null;
45
+ const hasTitle = Boolean(title || titleContent);
46
+ const hasContent = Boolean(content || contentContent);
47
+ return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: containerClasses, style, ...divProps, children: [
48
+ /* @__PURE__ */ jsx(
49
+ "div",
50
+ {
51
+ ref: triggerRef,
52
+ className: triggerClasses,
53
+ "aria-haspopup": "dialog",
54
+ "aria-disabled": disabled ? "true" : void 0,
55
+ ...triggerHandlers,
56
+ children
57
+ }
58
+ ),
59
+ currentVisible && /* @__PURE__ */ jsx("div", { ref: floatingRef, style: floatingStyles, "aria-hidden": false, children: /* @__PURE__ */ jsxs(
60
+ "div",
61
+ {
62
+ id: popoverId,
63
+ role: "dialog",
64
+ "aria-modal": "false",
65
+ "aria-labelledby": hasTitle ? titleId : void 0,
66
+ "aria-describedby": hasContent ? contentId : void 0,
67
+ className: contentClasses,
68
+ children: [
69
+ hasTitle && /* @__PURE__ */ jsx("div", { id: titleId, className: POPOVER_TITLE_CLASSES, children: titleContent || title }),
70
+ hasContent && /* @__PURE__ */ jsx("div", { id: contentId, className: POPOVER_TEXT_CLASSES, children: contentContent || content })
71
+ ]
72
+ }
73
+ ) })
74
+ ] });
75
+ };
76
+
77
+ export { Popover };
@@ -0,0 +1,75 @@
1
+ import { getSkeletonClasses, getSkeletonDimensions, getParagraphRowWidth, classNames } from '@expcat/tigercat-core';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ // src/components/Skeleton.tsx
5
+ var Skeleton = ({
6
+ variant = "text",
7
+ animation = "pulse",
8
+ width,
9
+ height,
10
+ shape = "circle",
11
+ rows = 1,
12
+ paragraph = false,
13
+ className,
14
+ style,
15
+ "aria-label": ariaLabel,
16
+ "aria-labelledby": ariaLabelledBy,
17
+ "aria-hidden": ariaHidden,
18
+ ...divProps
19
+ }) => {
20
+ const visualClasses = getSkeletonClasses(variant, animation, shape);
21
+ const dimensions = getSkeletonDimensions(variant, width, height);
22
+ const computedAriaHidden = ariaHidden ?? (ariaLabel || ariaLabelledBy ? void 0 : true);
23
+ if (variant === "text" && rows > 1) {
24
+ const rowElements = [];
25
+ for (let i = 0; i < rows; i++) {
26
+ const rowStyle = {
27
+ height: dimensions.height
28
+ };
29
+ if (paragraph) {
30
+ rowStyle.width = getParagraphRowWidth(i, rows);
31
+ } else if (dimensions.width) {
32
+ rowStyle.width = dimensions.width;
33
+ }
34
+ rowElements.push(
35
+ /* @__PURE__ */ jsx(
36
+ "div",
37
+ {
38
+ className: classNames(visualClasses, i < rows - 1 && "mb-2"),
39
+ style: rowStyle
40
+ },
41
+ i
42
+ )
43
+ );
44
+ }
45
+ return /* @__PURE__ */ jsx(
46
+ "div",
47
+ {
48
+ ...divProps,
49
+ className: classNames("flex flex-col", className),
50
+ style,
51
+ "aria-label": ariaLabel,
52
+ "aria-labelledby": ariaLabelledBy,
53
+ "aria-hidden": computedAriaHidden,
54
+ children: rowElements
55
+ }
56
+ );
57
+ }
58
+ return /* @__PURE__ */ jsx(
59
+ "div",
60
+ {
61
+ ...divProps,
62
+ className: classNames(visualClasses, className),
63
+ style: {
64
+ ...style,
65
+ ...dimensions.width ? { width: dimensions.width } : void 0,
66
+ height: dimensions.height
67
+ },
68
+ "aria-label": ariaLabel,
69
+ "aria-labelledby": ariaLabelledBy,
70
+ "aria-hidden": computedAriaHidden
71
+ }
72
+ );
73
+ };
74
+
75
+ export { Skeleton };
@@ -30,7 +30,12 @@ var Carousel = React.forwardRef(
30
30
  }, ref) => {
31
31
  const [currentIndex, setCurrentIndex] = React.useState(initialSlide);
32
32
  const [isPaused, setIsPaused] = React.useState(false);
33
- const autoplayTimerRef = React.useRef(null);
33
+ const onChangeRef = React.useRef(onChange);
34
+ const onBeforeChangeRef = React.useRef(onBeforeChange);
35
+ onChangeRef.current = onChange;
36
+ onBeforeChangeRef.current = onBeforeChange;
37
+ const currentIndexRef = React.useRef(currentIndex);
38
+ currentIndexRef.current = currentIndex;
34
39
  const slides = React.useMemo(() => {
35
40
  return React__default.default.Children.toArray(children).filter((child) => React__default.default.isValidElement(child));
36
41
  }, [children]);
@@ -40,10 +45,7 @@ var Carousel = React.forwardRef(
40
45
  [className]
41
46
  );
42
47
  const trackClasses = React.useMemo(() => {
43
- if (effect === "fade") {
44
- return tigercatCore.carouselTrackFadeClasses;
45
- }
46
- return tigercatCore.carouselTrackScrollClasses;
48
+ return effect === "fade" ? tigercatCore.carouselTrackFadeClasses : tigercatCore.carouselTrackScrollClasses;
47
49
  }, [effect]);
48
50
  const trackStyle = React.useMemo(() => {
49
51
  if (effect === "scroll") {
@@ -54,26 +56,19 @@ var Carousel = React.forwardRef(
54
56
  }
55
57
  return {};
56
58
  }, [effect, currentIndex, speed]);
57
- const getSlideClasses = React.useCallback(
58
- (index) => {
59
- const isActive = index === currentIndex;
60
- if (effect === "fade") {
61
- const positionClass = index === 0 ? "relative" : "absolute inset-0";
62
- return tigercatCore.classNames(
63
- positionClass,
64
- "w-full transition-opacity ease-in-out",
65
- isActive ? "opacity-100 z-10" : "opacity-0 z-0"
66
- );
67
- }
68
- return tigercatCore.carouselSlideBaseClasses;
69
- },
70
- [effect, currentIndex]
71
- );
72
- const getSlideStyle = React.useCallback(() => {
73
- return {
74
- transitionDuration: `${speed}ms`
75
- };
76
- }, [speed]);
59
+ const slideStyle = React.useMemo(() => ({ transitionDuration: `${speed}ms` }), [speed]);
60
+ const getSlideClasses = (index) => {
61
+ const isActive = index === currentIndex;
62
+ if (effect === "fade") {
63
+ const positionClass = index === 0 ? "relative" : "absolute inset-0";
64
+ return tigercatCore.classNames(
65
+ positionClass,
66
+ "w-full transition-opacity ease-in-out",
67
+ isActive ? "opacity-100 z-10" : "opacity-0 z-0"
68
+ );
69
+ }
70
+ return tigercatCore.carouselSlideBaseClasses;
71
+ };
77
72
  const dotsClasses = React.useMemo(() => {
78
73
  return tigercatCore.getCarouselDotsClasses(dotPosition);
79
74
  }, [dotPosition]);
@@ -110,28 +105,18 @@ var Carousel = React.forwardRef(
110
105
  [next, prev, goTo]
111
106
  );
112
107
  React.useEffect(() => {
113
- if (autoplay && !isPaused) {
114
- if (autoplayTimerRef.current) {
115
- clearInterval(autoplayTimerRef.current);
116
- }
117
- autoplayTimerRef.current = setInterval(() => {
118
- setCurrentIndex((prevIndex) => {
119
- const nextIdx = tigercatCore.getNextSlideIndex(prevIndex, slideCount, infinite);
120
- if (nextIdx !== prevIndex) {
121
- onBeforeChange?.(prevIndex, nextIdx);
122
- onChange?.(nextIdx, prevIndex);
123
- }
124
- return nextIdx;
125
- });
126
- }, autoplaySpeed);
127
- }
128
- return () => {
129
- if (autoplayTimerRef.current) {
130
- clearInterval(autoplayTimerRef.current);
131
- autoplayTimerRef.current = null;
108
+ if (!autoplay || isPaused) return;
109
+ const timer = setInterval(() => {
110
+ const curr = currentIndexRef.current;
111
+ const nextIdx = tigercatCore.getNextSlideIndex(curr, slideCount, infinite);
112
+ if (nextIdx !== curr) {
113
+ onBeforeChangeRef.current?.(curr, nextIdx);
114
+ setCurrentIndex(nextIdx);
115
+ onChangeRef.current?.(nextIdx, curr);
132
116
  }
133
- };
134
- }, [autoplay, autoplaySpeed, isPaused, slideCount, infinite, onChange, onBeforeChange]);
117
+ }, autoplaySpeed);
118
+ return () => clearInterval(timer);
119
+ }, [autoplay, autoplaySpeed, isPaused, slideCount, infinite]);
135
120
  const handleMouseEnter = React.useCallback(() => {
136
121
  if (pauseOnHover && autoplay) {
137
122
  setIsPaused(true);
@@ -160,57 +145,35 @@ var Carousel = React.forwardRef(
160
145
  () => tigercatCore.isNextDisabled(currentIndex, slideCount, infinite),
161
146
  [currentIndex, slideCount, infinite]
162
147
  );
163
- const renderArrows = () => {
164
- if (!arrows) return null;
165
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
166
- /* @__PURE__ */ jsxRuntime.jsx(
167
- "button",
168
- {
169
- type: "button",
170
- className: tigercatCore.getCarouselArrowClasses("prev", isPrevArrowDisabled),
171
- onClick: prev,
172
- disabled: isPrevArrowDisabled,
173
- "aria-label": "Previous slide",
174
- children: /* @__PURE__ */ jsxRuntime.jsx(
175
- "svg",
176
- {
177
- xmlns: "http://www.w3.org/2000/svg",
178
- viewBox: "0 0 24 24",
179
- fill: "none",
180
- stroke: "currentColor",
181
- strokeWidth: "2",
182
- strokeLinecap: "round",
183
- strokeLinejoin: "round",
184
- className: "w-6 h-6",
185
- children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: tigercatCore.carouselPrevArrowPath })
186
- }
187
- )
188
- }
189
- ),
190
- /* @__PURE__ */ jsxRuntime.jsx(
191
- "button",
148
+ const renderArrowButton = (type, disabled, onClick, path) => /* @__PURE__ */ jsxRuntime.jsx(
149
+ "button",
150
+ {
151
+ type: "button",
152
+ className: tigercatCore.getCarouselArrowClasses(type, disabled),
153
+ onClick,
154
+ disabled,
155
+ "aria-label": type === "prev" ? "Previous slide" : "Next slide",
156
+ children: /* @__PURE__ */ jsxRuntime.jsx(
157
+ "svg",
192
158
  {
193
- type: "button",
194
- className: tigercatCore.getCarouselArrowClasses("next", isNextArrowDisabled),
195
- onClick: next,
196
- disabled: isNextArrowDisabled,
197
- "aria-label": "Next slide",
198
- children: /* @__PURE__ */ jsxRuntime.jsx(
199
- "svg",
200
- {
201
- xmlns: "http://www.w3.org/2000/svg",
202
- viewBox: "0 0 24 24",
203
- fill: "none",
204
- stroke: "currentColor",
205
- strokeWidth: "2",
206
- strokeLinecap: "round",
207
- strokeLinejoin: "round",
208
- className: "w-6 h-6",
209
- children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: tigercatCore.carouselNextArrowPath })
210
- }
211
- )
159
+ xmlns: "http://www.w3.org/2000/svg",
160
+ viewBox: "0 0 24 24",
161
+ fill: "none",
162
+ stroke: "currentColor",
163
+ strokeWidth: "2",
164
+ strokeLinecap: "round",
165
+ strokeLinejoin: "round",
166
+ className: "w-6 h-6",
167
+ children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: path })
212
168
  }
213
169
  )
170
+ }
171
+ );
172
+ const renderArrows = () => {
173
+ if (!arrows) return null;
174
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
175
+ renderArrowButton("prev", isPrevArrowDisabled, prev, tigercatCore.carouselPrevArrowPath),
176
+ renderArrowButton("next", isNextArrowDisabled, next, tigercatCore.carouselNextArrowPath)
214
177
  ] });
215
178
  };
216
179
  const renderDots = () => {
@@ -232,7 +195,7 @@ var Carousel = React.forwardRef(
232
195
  "div",
233
196
  {
234
197
  className: getSlideClasses(index),
235
- style: effect === "fade" ? getSlideStyle() : void 0,
198
+ style: effect === "fade" ? slideStyle : void 0,
236
199
  role: "group",
237
200
  "aria-roledescription": "slide",
238
201
  "aria-label": `Slide ${index + 1} of ${slideCount}`,
@@ -1,6 +1,6 @@
1
1
  import { useRef, useMemo, useState, useEffect, useCallback } from 'react';
2
- import { getSpinnerSVG, getAllKeys, calculateCheckedState, getVisibleTreeItems, filterTreeNodes, getAutoExpandKeys, findNode, handleNodeCheck, getCheckedKeysByStrategy, getParentKeys, treeNodeCheckboxClasses, treeNodeIconClasses, classNames, treeNodeLabelClasses, treeNodeWrapperClasses, getTreeNodeClasses, treeNodeChildrenClasses, treeLineClasses, treeEmptyStateClasses, treeBaseClasses, treeNodeIndentClasses, getTreeNodeExpandIconClasses, treeLoadingClasses } from '@expcat/tigercat-core';
3
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { getSpinnerSVG, getAllKeys, calculateCheckedState, getVisibleTreeItems, checkedSetsFromState, filterTreeNodes, getAutoExpandKeys, findNode, handleNodeCheck, getCheckedKeysByStrategy, getParentKeys, classNames, treeEmptyStateClasses, treeBaseClasses, treeNodeCheckboxClasses, treeNodeIconClasses, treeNodeLabelClasses, treeNodeWrapperClasses, getTreeNodeClasses, treeNodeChildrenClasses, treeLineClasses, treeNodeIndentClasses, getTreeNodeExpandIconClasses, treeLoadingClasses } from '@expcat/tigercat-core';
3
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
 
5
5
  // src/components/Tree.tsx
6
6
  var spinnerSvg = getSpinnerSVG("spinner");
@@ -143,6 +143,10 @@ var Tree = ({
143
143
  }
144
144
  return internalCheckedState;
145
145
  }, [controlledCheckedKeys, internalCheckedState, treeData, checkStrictly]);
146
+ const checkedSets = useMemo(
147
+ () => checkedSetsFromState(computedCheckedState),
148
+ [computedCheckedState]
149
+ );
146
150
  useEffect(() => {
147
151
  if (filterValue) {
148
152
  const matched = filterTreeNodes(treeData, filterValue, filterFn);
@@ -267,6 +271,20 @@ var Tree = ({
267
271
  },
268
272
  [treeData, computedCheckedState, checkStrictly, checkStrategy, controlledCheckedKeys, onCheck]
269
273
  );
274
+ const getFirstChildKey = useCallback(
275
+ (nodeKey) => {
276
+ const index = visibleItems.findIndex((i) => i.key === nodeKey);
277
+ if (index < 0) return void 0;
278
+ const base = visibleItems[index];
279
+ for (let i = index + 1; i < visibleItems.length; i++) {
280
+ const item = visibleItems[i];
281
+ if (item.level <= base.level) break;
282
+ if (item.parentKey === nodeKey && !item.node.disabled) return item.key;
283
+ }
284
+ return void 0;
285
+ },
286
+ [visibleItems]
287
+ );
270
288
  const handleKeyDown = useCallback(
271
289
  (e, node, isExpanded, isChecked) => {
272
290
  if (node.disabled) return;
@@ -275,18 +293,6 @@ var Tree = ({
275
293
  const isExpandable = !!(node.children && node.children.length > 0) || !!(loadData && !node.isLeaf);
276
294
  const parents = getParentKeys(treeData, node.key);
277
295
  const parentKey = parents[parents.length - 1];
278
- const getFirstChildKey = () => {
279
- const list = visibleItems;
280
- const index = list.findIndex((i) => i.key === node.key);
281
- if (index < 0) return void 0;
282
- const base = list[index];
283
- for (let i = index + 1; i < list.length; i++) {
284
- const item = list[i];
285
- if (item.level <= base.level) break;
286
- if (item.parentKey === node.key && !item.node.disabled) return item.key;
287
- }
288
- return void 0;
289
- };
290
296
  if (e.key === "ArrowDown") {
291
297
  e.preventDefault();
292
298
  setActiveKey(focusableKeys[currentIndex + 1] ?? currentKey);
@@ -314,7 +320,7 @@ var Tree = ({
314
320
  return;
315
321
  }
316
322
  if (isExpandable && isExpanded) {
317
- setActiveKey(getFirstChildKey() ?? currentKey);
323
+ setActiveKey(getFirstChildKey(node.key) ?? currentKey);
318
324
  }
319
325
  return;
320
326
  }
@@ -369,147 +375,118 @@ var Tree = ({
369
375
  activeKey,
370
376
  defaultActiveKey,
371
377
  focusableKeys,
372
- visibleItems,
373
378
  treeData,
374
379
  loadData,
375
380
  checkable,
376
381
  computedExpandedKeys,
377
382
  effectiveSelectable,
383
+ getFirstChildKey,
378
384
  handleExpand,
379
385
  handleSelect,
380
386
  handleCheck
381
387
  ]
382
388
  );
383
- const handleNodeClickInternal = useCallback(
384
- (node, event) => {
385
- if (node.disabled) return;
386
- onNodeClick?.(node, event);
387
- },
388
- [onNodeClick]
389
- );
390
- const renderTreeNode = useCallback(
391
- (node, level, _parentKey) => {
392
- const hasChildren = !!(node.children && node.children.length > 0);
393
- const isExpanded = computedExpandedKeys.has(node.key);
394
- const isSelected = computedSelectedKeys.has(node.key);
395
- const isChecked = computedCheckedState.checked.includes(node.key);
396
- const isHalfChecked = computedCheckedState.halfChecked.includes(node.key);
397
- const isLoading = loadingNodes.has(node.key);
398
- const isFiltered = filteredNodeKeys.size > 0;
399
- const isMatched = filteredNodeKeys.has(node.key);
400
- const isVisible = !isFiltered || isMatched;
401
- const isExpandable = hasChildren || !!(loadData && !node.isLeaf);
402
- const isFocusable = !node.disabled && node.key === (activeKey ?? defaultActiveKey);
403
- if (!isVisible) {
404
- return null;
405
- }
406
- const indent = [];
407
- for (let i = 0; i < level; i++) {
408
- indent.push(/* @__PURE__ */ jsx("span", { className: treeNodeIndentClasses }, i));
409
- }
410
- const nodeContent = /* @__PURE__ */ jsxs(Fragment, { children: [
411
- indent,
412
- /* @__PURE__ */ jsx(
413
- "span",
414
- {
415
- className: isExpandable ? "cursor-pointer" : "",
416
- onClick: (e) => {
417
- e.stopPropagation();
418
- if (isExpandable) {
419
- setActiveKey(node.key);
420
- handleExpand(node.key);
421
- }
422
- },
423
- children: /* @__PURE__ */ jsx(ExpandIcon, { expanded: isExpanded, hasChildren: isExpandable })
424
- }
425
- ),
426
- checkable && /* @__PURE__ */ jsx(
427
- "input",
428
- {
429
- type: "checkbox",
430
- "aria-label": `Select ${node.label}`,
431
- className: treeNodeCheckboxClasses,
432
- checked: isChecked,
433
- ref: (input) => {
434
- if (input) {
435
- input.indeterminate = isHalfChecked;
436
- }
437
- },
438
- disabled: node.disabled,
439
- onClick: (e) => {
440
- e.stopPropagation();
441
- },
442
- onChange: (e) => {
443
- handleCheck(node.key, e.target.checked);
444
- }
445
- }
446
- ),
447
- showIcon && node.icon && /* @__PURE__ */ jsx("span", { className: treeNodeIconClasses, children: node.icon }),
448
- /* @__PURE__ */ jsx(
449
- "span",
450
- {
451
- className: classNames(
452
- treeNodeLabelClasses,
453
- isFiltered && isMatched ? "font-semibold text-[var(--tiger-primary,#2563eb)]" : ""
454
- ),
455
- children: node.label
456
- }
457
- ),
458
- isLoading && /* @__PURE__ */ jsx(LoadingSpinner, {})
459
- ] });
460
- return /* @__PURE__ */ jsxs("div", { className: treeNodeWrapperClasses, children: [
461
- /* @__PURE__ */ jsx(
462
- "div",
463
- {
464
- className: getTreeNodeClasses(isSelected, !!node.disabled, blockNode),
465
- ref: (el) => {
466
- itemRefs.current.set(node.key, el);
467
- },
468
- role: "treeitem",
469
- "aria-level": level + 1,
470
- "aria-disabled": node.disabled || void 0,
471
- "aria-selected": effectiveSelectable ? isSelected : void 0,
472
- "aria-expanded": isExpandable ? isExpanded : void 0,
473
- "aria-checked": checkable ? isHalfChecked ? "mixed" : isChecked : void 0,
474
- tabIndex: isFocusable ? 0 : -1,
475
- onFocus: () => {
476
- if (!node.disabled) setActiveKey(node.key);
477
- },
478
- onKeyDown: (e) => handleKeyDown(e, node, isExpanded, isChecked),
479
- onClick: (e) => {
389
+ const renderTreeNode = (node, level) => {
390
+ const hasChildren = !!(node.children && node.children.length > 0);
391
+ const isExpanded = computedExpandedKeys.has(node.key);
392
+ const isSelected = computedSelectedKeys.has(node.key);
393
+ const isChecked = checkedSets.checkedSet.has(node.key);
394
+ const isHalfChecked = checkedSets.halfCheckedSet.has(node.key);
395
+ const isLoading = loadingNodes.has(node.key);
396
+ const isFiltered = filteredNodeKeys.size > 0;
397
+ const isMatched = filteredNodeKeys.has(node.key);
398
+ const isVisible = !isFiltered || isMatched;
399
+ const isExpandable = hasChildren || !!(loadData && !node.isLeaf);
400
+ const isFocusable = !node.disabled && node.key === (activeKey ?? defaultActiveKey);
401
+ if (!isVisible) {
402
+ return null;
403
+ }
404
+ const indent = [];
405
+ for (let i = 0; i < level; i++) {
406
+ indent.push(/* @__PURE__ */ jsx("span", { className: treeNodeIndentClasses }, i));
407
+ }
408
+ const nodeContent = /* @__PURE__ */ jsxs(Fragment, { children: [
409
+ indent,
410
+ /* @__PURE__ */ jsx(
411
+ "span",
412
+ {
413
+ className: isExpandable ? "cursor-pointer" : "",
414
+ onClick: (e) => {
415
+ e.stopPropagation();
416
+ if (isExpandable) {
480
417
  setActiveKey(node.key);
481
- handleNodeClickInternal(node, e);
482
- if (effectiveSelectable && !node.disabled) {
483
- handleSelect(node.key, e);
484
- }
485
- },
486
- children: nodeContent
418
+ handleExpand(node.key);
419
+ }
420
+ },
421
+ children: /* @__PURE__ */ jsx(ExpandIcon, { expanded: isExpanded, hasChildren: isExpandable })
422
+ }
423
+ ),
424
+ checkable && /* @__PURE__ */ jsx(
425
+ "input",
426
+ {
427
+ type: "checkbox",
428
+ "aria-label": `Select ${node.label}`,
429
+ className: treeNodeCheckboxClasses,
430
+ checked: isChecked,
431
+ ref: (input) => {
432
+ if (input) {
433
+ input.indeterminate = isHalfChecked;
434
+ }
435
+ },
436
+ disabled: node.disabled,
437
+ onClick: (e) => {
438
+ e.stopPropagation();
439
+ },
440
+ onChange: (e) => {
441
+ handleCheck(node.key, e.target.checked);
487
442
  }
488
- ),
489
- hasChildren && isExpanded && /* @__PURE__ */ jsx("div", { className: classNames(treeNodeChildrenClasses, showLine && treeLineClasses), children: node.children.map((child) => renderTreeNode(child, level + 1, node.key)) })
490
- ] }, node.key);
491
- },
492
- [
493
- computedExpandedKeys,
494
- computedSelectedKeys,
495
- computedCheckedState,
496
- loadingNodes,
497
- filteredNodeKeys,
498
- activeKey,
499
- defaultActiveKey,
500
- loadData,
501
- checkable,
502
- blockNode,
503
- effectiveSelectable,
504
- showIcon,
505
- showLine,
506
- handleExpand,
507
- handleCheck,
508
- handleSelect,
509
- handleNodeClickInternal,
510
- handleKeyDown
511
- ]
512
- );
443
+ }
444
+ ),
445
+ showIcon && node.icon && /* @__PURE__ */ jsx("span", { className: treeNodeIconClasses, children: node.icon }),
446
+ /* @__PURE__ */ jsx(
447
+ "span",
448
+ {
449
+ className: classNames(
450
+ treeNodeLabelClasses,
451
+ isFiltered && isMatched ? "font-semibold text-[var(--tiger-primary,#2563eb)]" : ""
452
+ ),
453
+ children: node.label
454
+ }
455
+ ),
456
+ isLoading && /* @__PURE__ */ jsx(LoadingSpinner, {})
457
+ ] });
458
+ return /* @__PURE__ */ jsxs("div", { className: treeNodeWrapperClasses, children: [
459
+ /* @__PURE__ */ jsx(
460
+ "div",
461
+ {
462
+ className: getTreeNodeClasses(isSelected, !!node.disabled, blockNode),
463
+ ref: (el) => {
464
+ itemRefs.current.set(node.key, el);
465
+ },
466
+ role: "treeitem",
467
+ "aria-level": level + 1,
468
+ "aria-disabled": node.disabled || void 0,
469
+ "aria-selected": effectiveSelectable ? isSelected : void 0,
470
+ "aria-expanded": isExpandable ? isExpanded : void 0,
471
+ "aria-checked": checkable ? isHalfChecked ? "mixed" : isChecked : void 0,
472
+ tabIndex: isFocusable ? 0 : -1,
473
+ onFocus: () => {
474
+ if (!node.disabled) setActiveKey(node.key);
475
+ },
476
+ onKeyDown: (e) => handleKeyDown(e, node, isExpanded, isChecked),
477
+ onClick: (e) => {
478
+ setActiveKey(node.key);
479
+ if (!node.disabled) onNodeClick?.(node, e);
480
+ if (effectiveSelectable && !node.disabled) {
481
+ handleSelect(node.key, e);
482
+ }
483
+ },
484
+ children: nodeContent
485
+ }
486
+ ),
487
+ hasChildren && isExpanded && /* @__PURE__ */ jsx("div", { className: classNames(treeNodeChildrenClasses, showLine && treeLineClasses), children: node.children.map((child) => renderTreeNode(child, level + 1)) })
488
+ ] }, node.key);
489
+ };
513
490
  if (!treeData || treeData.length === 0) {
514
491
  return /* @__PURE__ */ jsx(
515
492
  "div",