@deepnoid/ui 1.0.21 → 1.0.23

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 (319) hide show
  1. package/dist/{chunk-N4KPGD2N.mjs → chunk-25LWG2XP.mjs} +20 -20
  2. package/dist/{chunk-ZOTHPHXA.mjs → chunk-2C4HKBHM.mjs} +4 -4
  3. package/dist/{chunk-H7D5EBLL.mjs → chunk-32GYEUAB.mjs} +14 -8
  4. package/dist/{chunk-3K4OTUIB.mjs → chunk-3Z2WSTCH.mjs} +13 -13
  5. package/dist/{chunk-JGF5TY7M.mjs → chunk-4ALAPTAW.mjs} +10 -10
  6. package/dist/{chunk-O5VW7CHY.mjs → chunk-4FUD3BZV.mjs} +13 -14
  7. package/dist/{chunk-WTBRXQFT.mjs → chunk-5TBL2VZ5.mjs} +30 -30
  8. package/dist/{chunk-LHWHM4LQ.mjs → chunk-6J6AXUUE.mjs} +2 -2
  9. package/dist/{chunk-WQG4OYM6.mjs → chunk-7K3EB4DC.mjs} +67 -63
  10. package/dist/{chunk-WS4SOWDZ.mjs → chunk-AHKNFPHN.mjs} +27 -25
  11. package/dist/{chunk-IOJMTN6X.mjs → chunk-APZCX3PY.mjs} +7 -7
  12. package/dist/{chunk-KAB3AB67.mjs → chunk-AZ5QZAO6.mjs} +59 -53
  13. package/dist/{chunk-D7DDV4UN.mjs → chunk-B2LJEDXL.mjs} +22 -14
  14. package/dist/{chunk-6PN3DGOE.mjs → chunk-BEFT2F7D.mjs} +3 -3
  15. package/dist/{chunk-BJWYF2WY.mjs → chunk-C6S73EGR.mjs} +15 -17
  16. package/dist/{chunk-A6UUVHC6.mjs → chunk-C7OETP3D.mjs} +4 -4
  17. package/dist/{chunk-5RJYESLP.mjs → chunk-EVXLGMV6.mjs} +3 -3
  18. package/dist/{chunk-3IBJXQTJ.mjs → chunk-GWOMD7ZU.mjs} +1 -1
  19. package/dist/{chunk-62M6VPFS.mjs → chunk-HDCCDPYL.mjs} +65 -55
  20. package/dist/{chunk-7OP3JEMA.mjs → chunk-HLO5N6WD.mjs} +1 -1
  21. package/dist/{chunk-CBIV6KFQ.mjs → chunk-IF6XCBGN.mjs} +6 -6
  22. package/dist/{chunk-Y3A7PN4Q.mjs → chunk-IPP2GKZN.mjs} +16 -16
  23. package/dist/{chunk-SXSVNBRO.mjs → chunk-J2URLA5S.mjs} +22 -16
  24. package/dist/{chunk-ZCJPPLYH.mjs → chunk-JUPZBZ5Q.mjs} +7 -7
  25. package/dist/{chunk-USZSQXHS.mjs → chunk-KFM54LT4.mjs} +1 -1
  26. package/dist/{chunk-2J4MNIMS.mjs → chunk-KGRQ3ZYI.mjs} +10 -4
  27. package/dist/{chunk-27Y6K5NK.mjs → chunk-KJFYLLMP.mjs} +3 -3
  28. package/dist/{chunk-G6SZN3EK.mjs → chunk-LHEENTLV.mjs} +2 -2
  29. package/dist/{chunk-MAGZDGUW.mjs → chunk-LIYGCVZ3.mjs} +11 -11
  30. package/dist/{chunk-O2KC4CDE.mjs → chunk-MLMG22I4.mjs} +33 -31
  31. package/dist/{chunk-KIINY2GS.mjs → chunk-MS65QLWR.mjs} +6 -6
  32. package/dist/{chunk-XTMOAGLY.mjs → chunk-MVCUYH2W.mjs} +8 -8
  33. package/dist/{chunk-LCEFG5IY.mjs → chunk-NATO6PUP.mjs} +7 -7
  34. package/dist/{chunk-7CTICAGW.mjs → chunk-NMPATSTB.mjs} +2 -2
  35. package/dist/{chunk-R32BQ3NV.mjs → chunk-NUXN36KF.mjs} +22 -22
  36. package/dist/{chunk-CXVDES22.mjs → chunk-NYQKX23D.mjs} +12 -8
  37. package/dist/{chunk-MC7SI5Q7.mjs → chunk-OI5NXYUY.mjs} +8 -6
  38. package/dist/chunk-PPTFOHMW.mjs +169 -0
  39. package/dist/chunk-Q3SNUBIS.mjs +114 -0
  40. package/dist/{chunk-AO6LNH3D.mjs → chunk-QDAHI6GC.mjs} +4 -4
  41. package/dist/{chunk-AOU4QX7H.mjs → chunk-QOOYAQJ5.mjs} +773 -773
  42. package/dist/{chunk-D3DKXTTY.mjs → chunk-R6N6IQPN.mjs} +3 -3
  43. package/dist/{chunk-37BZALDV.mjs → chunk-RZD3NZIL.mjs} +10 -10
  44. package/dist/{chunk-SR76DO4M.mjs → chunk-SJLO65GQ.mjs} +12 -12
  45. package/dist/{chunk-PIUOU6LS.mjs → chunk-TEF3UA4E.mjs} +13 -13
  46. package/dist/{chunk-SLKXMIWY.mjs → chunk-TPWND4RF.mjs} +7 -8
  47. package/dist/{chunk-E3G5QXSH.mjs → chunk-UWT2WB6H.mjs} +2 -4
  48. package/dist/{chunk-MT7AFUKT.mjs → chunk-VJ7BQ3PK.mjs} +6 -5
  49. package/dist/{chunk-VZPVEICG.mjs → chunk-W6CQRLD2.mjs} +37 -29
  50. package/dist/{chunk-KE26ONWZ.mjs → chunk-YM5JOOTO.mjs} +3 -3
  51. package/dist/{chunk-FNFQCMB4.mjs → chunk-YNPIAFQ7.mjs} +31 -27
  52. package/dist/{chunk-QUWWLVCI.mjs → chunk-YUNTNMZ4.mjs} +6 -6
  53. package/dist/{chunk-XS32UZI3.mjs → chunk-YYWOSKGH.mjs} +3 -3
  54. package/dist/components/accordion/accordion.js +7 -8
  55. package/dist/components/accordion/accordion.mjs +2 -2
  56. package/dist/components/accordion/accordionItem.js +8 -11
  57. package/dist/components/accordion/accordionItem.mjs +2 -2
  58. package/dist/components/accordion/index.js +13 -15
  59. package/dist/components/accordion/index.mjs +3 -3
  60. package/dist/components/avatar/avatar.js +775 -775
  61. package/dist/components/avatar/avatar.mjs +2 -2
  62. package/dist/components/avatar/index.js +775 -775
  63. package/dist/components/avatar/index.mjs +2 -2
  64. package/dist/components/backdrop/backdrop.d.mts +4 -4
  65. package/dist/components/backdrop/backdrop.d.ts +4 -4
  66. package/dist/components/backdrop/backdrop.js +5 -5
  67. package/dist/components/backdrop/backdrop.mjs +2 -2
  68. package/dist/components/backdrop/index.js +5 -5
  69. package/dist/components/backdrop/index.mjs +2 -2
  70. package/dist/components/breadcrumb/breadcrumb.d.mts +2 -2
  71. package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
  72. package/dist/components/breadcrumb/breadcrumb.js +812 -814
  73. package/dist/components/breadcrumb/breadcrumb.mjs +13 -12
  74. package/dist/components/breadcrumb/index.js +812 -814
  75. package/dist/components/breadcrumb/index.mjs +13 -12
  76. package/dist/components/button/button-group.js +4 -4
  77. package/dist/components/button/button-group.mjs +2 -2
  78. package/dist/components/button/button.js +2976 -2979
  79. package/dist/components/button/button.mjs +6 -6
  80. package/dist/components/button/icon-button.js +2968 -2970
  81. package/dist/components/button/icon-button.mjs +6 -6
  82. package/dist/components/button/image-button.d.mts +194 -0
  83. package/dist/components/button/image-button.d.ts +194 -0
  84. package/dist/components/button/image-button.js +5572 -0
  85. package/dist/components/button/image-button.mjs +16 -0
  86. package/dist/components/button/index.d.mts +1 -0
  87. package/dist/components/button/index.d.ts +1 -0
  88. package/dist/components/button/index.js +3059 -2969
  89. package/dist/components/button/index.mjs +15 -11
  90. package/dist/components/button/text-button.js +62 -64
  91. package/dist/components/button/text-button.mjs +3 -3
  92. package/dist/components/charts/areaChart.d.mts +4 -4
  93. package/dist/components/charts/areaChart.d.ts +4 -4
  94. package/dist/components/charts/areaChart.js +39 -41
  95. package/dist/components/charts/areaChart.mjs +4 -4
  96. package/dist/components/charts/barChart.d.mts +8 -8
  97. package/dist/components/charts/barChart.d.ts +8 -8
  98. package/dist/components/charts/barChart.js +66 -58
  99. package/dist/components/charts/barChart.mjs +2 -2
  100. package/dist/components/charts/circularProgress.d.mts +2 -2
  101. package/dist/components/charts/circularProgress.d.ts +2 -2
  102. package/dist/components/charts/circularProgress.js +14 -16
  103. package/dist/components/charts/circularProgress.mjs +2 -2
  104. package/dist/components/charts/index.js +158 -148
  105. package/dist/components/charts/index.mjs +10 -10
  106. package/dist/components/charts/radarChart.d.mts +6 -6
  107. package/dist/components/charts/radarChart.d.ts +6 -6
  108. package/dist/components/charts/radarChart.js +17 -19
  109. package/dist/components/charts/radarChart.mjs +2 -2
  110. package/dist/components/charts/simpleBarChart.d.mts +6 -6
  111. package/dist/components/charts/simpleBarChart.d.ts +6 -6
  112. package/dist/components/charts/simpleBarChart.js +31 -33
  113. package/dist/components/charts/simpleBarChart.mjs +2 -2
  114. package/dist/components/checkbox/checkbox.js +13 -15
  115. package/dist/components/checkbox/checkbox.mjs +3 -3
  116. package/dist/components/checkbox/index.js +13 -15
  117. package/dist/components/checkbox/index.mjs +3 -3
  118. package/dist/components/chip/chip.js +782 -784
  119. package/dist/components/chip/chip.mjs +5 -5
  120. package/dist/components/chip/index.js +782 -784
  121. package/dist/components/chip/index.mjs +5 -5
  122. package/dist/components/drawer/drawer.js +15 -13
  123. package/dist/components/drawer/drawer.mjs +3 -3
  124. package/dist/components/drawer/index.js +15 -13
  125. package/dist/components/drawer/index.mjs +3 -3
  126. package/dist/components/fileUpload/fileUpload.d.mts +4 -4
  127. package/dist/components/fileUpload/fileUpload.d.ts +4 -4
  128. package/dist/components/fileUpload/fileUpload.js +880 -885
  129. package/dist/components/fileUpload/fileUpload.mjs +15 -14
  130. package/dist/components/fileUpload/index.js +880 -885
  131. package/dist/components/fileUpload/index.mjs +15 -14
  132. package/dist/components/icon/Icon.d.mts +179 -704
  133. package/dist/components/icon/Icon.d.ts +179 -704
  134. package/dist/components/icon/Icon.js +776 -776
  135. package/dist/components/icon/Icon.mjs +2 -2
  136. package/dist/components/icon/index.d.mts +1 -1
  137. package/dist/components/icon/index.d.ts +1 -1
  138. package/dist/components/icon/index.js +776 -776
  139. package/dist/components/icon/index.mjs +3 -3
  140. package/dist/components/icon/template.d.mts +3 -3
  141. package/dist/components/icon/template.d.ts +3 -3
  142. package/dist/components/icon/template.js +773 -773
  143. package/dist/components/icon/template.mjs +1 -1
  144. package/dist/components/input/index.js +793 -797
  145. package/dist/components/input/index.mjs +6 -6
  146. package/dist/components/input/input.js +793 -797
  147. package/dist/components/input/input.mjs +6 -6
  148. package/dist/components/list/index.js +786 -788
  149. package/dist/components/list/index.mjs +9 -9
  150. package/dist/components/list/list.js +3 -5
  151. package/dist/components/list/list.mjs +2 -2
  152. package/dist/components/list/listItem.js +785 -787
  153. package/dist/components/list/listItem.mjs +6 -6
  154. package/dist/components/modal/GlobalModalProvider.js +884 -887
  155. package/dist/components/modal/GlobalModalProvider.mjs +15 -14
  156. package/dist/components/modal/index.js +884 -887
  157. package/dist/components/modal/index.mjs +16 -15
  158. package/dist/components/modal/modal.js +875 -878
  159. package/dist/components/modal/modal.mjs +14 -13
  160. package/dist/components/modal/useGlobalModal.mjs +16 -15
  161. package/dist/components/pagination/index.js +850 -852
  162. package/dist/components/pagination/index.mjs +7 -7
  163. package/dist/components/pagination/pagination.js +850 -852
  164. package/dist/components/pagination/pagination.mjs +7 -7
  165. package/dist/components/picker/datePicker.d.mts +2 -2
  166. package/dist/components/picker/datePicker.d.ts +2 -2
  167. package/dist/components/picker/datePicker.js +1004 -1005
  168. package/dist/components/picker/datePicker.mjs +16 -15
  169. package/dist/components/picker/day.js +3 -5
  170. package/dist/components/picker/day.mjs +2 -2
  171. package/dist/components/picker/index.js +1026 -1011
  172. package/dist/components/picker/index.mjs +19 -18
  173. package/dist/components/picker/timePicker/Panel.d.mts +2 -2
  174. package/dist/components/picker/timePicker/Panel.d.ts +2 -2
  175. package/dist/components/picker/timePicker/Panel.js +116 -106
  176. package/dist/components/picker/timePicker/Panel.mjs +15 -14
  177. package/dist/components/picker/timePicker/WheelColumn.d.mts +2 -2
  178. package/dist/components/picker/timePicker/WheelColumn.d.ts +2 -2
  179. package/dist/components/picker/timePicker/WheelColumn.js +10 -4
  180. package/dist/components/picker/timePicker/WheelColumn.mjs +1 -1
  181. package/dist/components/picker/timePicker/index.js +1573 -1561
  182. package/dist/components/picker/timePicker/index.mjs +17 -16
  183. package/dist/components/picker/utils.js +1 -1
  184. package/dist/components/picker/utils.mjs +1 -1
  185. package/dist/components/progress/index.js +4 -6
  186. package/dist/components/progress/index.mjs +2 -2
  187. package/dist/components/progress/progress.d.mts +1 -1
  188. package/dist/components/progress/progress.d.ts +1 -1
  189. package/dist/components/progress/progress.js +4 -6
  190. package/dist/components/progress/progress.mjs +2 -2
  191. package/dist/components/radio/index.js +7 -9
  192. package/dist/components/radio/index.mjs +3 -3
  193. package/dist/components/radio/radio.js +7 -9
  194. package/dist/components/radio/radio.mjs +3 -3
  195. package/dist/components/ripple/index.js +3 -3
  196. package/dist/components/ripple/index.mjs +1 -1
  197. package/dist/components/ripple/ripple.d.mts +1 -1
  198. package/dist/components/ripple/ripple.d.ts +1 -1
  199. package/dist/components/ripple/ripple.js +3 -3
  200. package/dist/components/ripple/ripple.mjs +1 -1
  201. package/dist/components/ripple/useRipple.d.mts +2 -2
  202. package/dist/components/ripple/useRipple.d.ts +2 -2
  203. package/dist/components/scroll/index.js +5 -5
  204. package/dist/components/scroll/index.mjs +2 -2
  205. package/dist/components/scroll/scrollArea.d.mts +6 -6
  206. package/dist/components/scroll/scrollArea.d.ts +6 -6
  207. package/dist/components/scroll/scrollArea.js +5 -5
  208. package/dist/components/scroll/scrollArea.mjs +2 -2
  209. package/dist/components/select/index.js +884 -878
  210. package/dist/components/select/index.mjs +13 -12
  211. package/dist/components/select/select.d.mts +2 -2
  212. package/dist/components/select/select.d.ts +2 -2
  213. package/dist/components/select/select.js +884 -878
  214. package/dist/components/select/select.mjs +13 -12
  215. package/dist/components/skeleton/index.js +5 -5
  216. package/dist/components/skeleton/index.mjs +2 -2
  217. package/dist/components/skeleton/skeleton.d.mts +4 -4
  218. package/dist/components/skeleton/skeleton.d.ts +4 -4
  219. package/dist/components/skeleton/skeleton.js +5 -5
  220. package/dist/components/skeleton/skeleton.mjs +2 -2
  221. package/dist/components/slider/index.js +8 -10
  222. package/dist/components/slider/index.mjs +2 -2
  223. package/dist/components/slider/slider.js +8 -10
  224. package/dist/components/slider/slider.mjs +2 -2
  225. package/dist/components/starRating/index.js +798 -792
  226. package/dist/components/starRating/index.mjs +5 -5
  227. package/dist/components/starRating/starRating.js +798 -792
  228. package/dist/components/starRating/starRating.mjs +5 -5
  229. package/dist/components/switch/index.js +7 -9
  230. package/dist/components/switch/index.mjs +2 -2
  231. package/dist/components/switch/switch.js +7 -9
  232. package/dist/components/switch/switch.mjs +2 -2
  233. package/dist/components/table/definition-table.d.mts +11 -4
  234. package/dist/components/table/definition-table.d.ts +11 -4
  235. package/dist/components/table/definition-table.js +89 -60
  236. package/dist/components/table/definition-table.mjs +2 -2
  237. package/dist/components/table/form-table.d.mts +2 -2
  238. package/dist/components/table/form-table.d.ts +2 -2
  239. package/dist/components/table/form-table.js +10 -8
  240. package/dist/components/table/form-table.mjs +10 -8
  241. package/dist/components/table/index.js +2059 -2028
  242. package/dist/components/table/index.mjs +14 -14
  243. package/dist/components/table/table-body.d.mts +1 -1
  244. package/dist/components/table/table-body.d.ts +1 -1
  245. package/dist/components/table/table-body.js +1559 -1557
  246. package/dist/components/table/table-body.mjs +11 -11
  247. package/dist/components/table/table-head.d.mts +3 -3
  248. package/dist/components/table/table-head.d.ts +3 -3
  249. package/dist/components/table/table-head.js +1583 -1581
  250. package/dist/components/table/table-head.mjs +11 -11
  251. package/dist/components/table/table.d.mts +6 -6
  252. package/dist/components/table/table.d.ts +6 -6
  253. package/dist/components/table/table.js +1910 -1908
  254. package/dist/components/table/table.mjs +11 -11
  255. package/dist/components/tabs/index.js +2 -4
  256. package/dist/components/tabs/index.mjs +2 -2
  257. package/dist/components/tabs/tabs.d.mts +2 -2
  258. package/dist/components/tabs/tabs.d.ts +2 -2
  259. package/dist/components/tabs/tabs.js +2 -4
  260. package/dist/components/tabs/tabs.mjs +2 -2
  261. package/dist/components/textarea/index.js +14 -16
  262. package/dist/components/textarea/index.mjs +3 -3
  263. package/dist/components/textarea/textarea.js +14 -16
  264. package/dist/components/textarea/textarea.mjs +3 -3
  265. package/dist/components/timePicker/calendar.js +791 -791
  266. package/dist/components/timePicker/calendar.mjs +19 -17
  267. package/dist/components/timePicker/useDateTimePicker.d.mts +2 -2
  268. package/dist/components/timePicker/useDateTimePicker.d.ts +2 -2
  269. package/dist/components/timePicker/useDateTimePicker.js +3 -1
  270. package/dist/components/timePicker/useDateTimePicker.mjs +4 -2
  271. package/dist/components/toast/index.d.mts +1 -1
  272. package/dist/components/toast/index.d.ts +1 -1
  273. package/dist/components/toast/index.js +801 -797
  274. package/dist/components/toast/index.mjs +8 -8
  275. package/dist/components/toast/toast-utils.js +4 -4
  276. package/dist/components/toast/toast-utils.mjs +1 -1
  277. package/dist/components/toast/toast.d.mts +1 -1
  278. package/dist/components/toast/toast.d.ts +1 -1
  279. package/dist/components/toast/toast.js +785 -787
  280. package/dist/components/toast/toast.mjs +6 -6
  281. package/dist/components/toast/use-toast.d.mts +3 -3
  282. package/dist/components/toast/use-toast.d.ts +3 -3
  283. package/dist/components/toast/use-toast.js +801 -797
  284. package/dist/components/toast/use-toast.mjs +8 -8
  285. package/dist/components/tooltip/index.d.mts +1 -1
  286. package/dist/components/tooltip/index.d.ts +1 -1
  287. package/dist/components/tooltip/index.js +9 -9
  288. package/dist/components/tooltip/index.mjs +2 -2
  289. package/dist/components/tooltip/tooltip-utils.d.mts +1 -1
  290. package/dist/components/tooltip/tooltip-utils.d.ts +1 -1
  291. package/dist/components/tooltip/tooltip.d.mts +1 -1
  292. package/dist/components/tooltip/tooltip.d.ts +1 -1
  293. package/dist/components/tooltip/tooltip.js +9 -9
  294. package/dist/components/tooltip/tooltip.mjs +2 -2
  295. package/dist/components/tooltip/useTooltip.d.mts +1 -1
  296. package/dist/components/tooltip/useTooltip.d.ts +1 -1
  297. package/dist/components/tree/index.js +799 -799
  298. package/dist/components/tree/index.mjs +5 -5
  299. package/dist/components/tree/tree.d.mts +8 -8
  300. package/dist/components/tree/tree.d.ts +8 -8
  301. package/dist/components/tree/tree.js +799 -799
  302. package/dist/components/tree/tree.mjs +5 -5
  303. package/dist/hooks/useIsMounted.d.mts +2 -2
  304. package/dist/hooks/useIsMounted.d.ts +2 -2
  305. package/dist/index.d.mts +2 -1
  306. package/dist/index.d.ts +2 -1
  307. package/dist/index.js +2606 -2421
  308. package/dist/index.mjs +95 -91
  309. package/dist/{tooltip-utils-DO3LQaVM.d.ts → tooltip-utils-dEqsJ9t8.d.mts} +2 -2
  310. package/dist/{tooltip-utils-DO3LQaVM.d.mts → tooltip-utils-dEqsJ9t8.d.ts} +2 -2
  311. package/dist/utils/clsx.js +3 -3
  312. package/dist/utils/clsx.mjs +1 -1
  313. package/dist/utils/props.js +2 -4
  314. package/dist/utils/props.mjs +1 -1
  315. package/package.json +1 -1
  316. package/dist/chunk-HXBZB7CW.mjs +0 -140
  317. package/dist/{chunk-LXHUO6VM.mjs → chunk-EAFNOTY3.mjs} +3 -3
  318. /package/dist/{chunk-MY5U63QO.mjs → chunk-M5PMA3CT.mjs} +0 -0
  319. /package/dist/{chunk-ZYIIXWVY.mjs → chunk-WG2WVMAR.mjs} +0 -0
@@ -42,16 +42,14 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
42
42
  const picked = variantKeys.reduce((acc, key) => {
43
43
  if (key in props) {
44
44
  return { ...acc, [key]: props[key] };
45
- } else {
46
- return acc;
47
45
  }
46
+ return acc;
48
47
  }, {});
49
48
  if (removeVariantProps) {
50
49
  const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
51
50
  return [omitted, picked];
52
- } else {
53
- return [props, picked];
54
51
  }
52
+ return [props, picked];
55
53
  };
56
54
 
57
55
  // src/utils/tailwind-variants.ts
@@ -135,21 +133,21 @@ var CircularProgress = (0, import_react.forwardRef)((originalProps, ref) => {
135
133
  const wrappedInnerContent = (0, import_react.useMemo)(() => {
136
134
  return wrapSpanWithClass(innerContent);
137
135
  }, [innerContent]);
138
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
136
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
139
137
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
140
138
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
141
139
  import_recharts.RadialBarChart,
142
140
  {
143
- width: size,
141
+ barSize: BAR_SIZE,
142
+ data,
143
+ endAngle: -270,
144
144
  height: size,
145
145
  innerRadius: INNER_RADIUS - 0.1,
146
146
  outerRadius: OUTER_RADIUS,
147
- barSize: BAR_SIZE,
148
- data,
149
147
  startAngle: 90,
150
- endAngle: -270,
148
+ width: size,
151
149
  children: [
152
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: gradientId, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
150
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: gradientId, x1: "0%", x2: "100%", y1: "0%", y2: "100%", children: [
153
151
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "0%", stopColor: currentGradient.start }),
154
152
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "100%", stopColor: currentGradient.end })
155
153
  ] }) }),
@@ -158,8 +156,8 @@ var CircularProgress = (0, import_react.forwardRef)((originalProps, ref) => {
158
156
  {
159
157
  cx: size / 2,
160
158
  cy: size / 2,
161
- r: OUTER_RADIUS + BORDER_MARGIN,
162
159
  fill: "#fff",
160
+ r: OUTER_RADIUS + BORDER_MARGIN,
163
161
  stroke: "#DFE2E7",
164
162
  strokeWidth: "1"
165
163
  }
@@ -169,20 +167,20 @@ var CircularProgress = (0, import_react.forwardRef)((originalProps, ref) => {
169
167
  {
170
168
  cx: size / 2,
171
169
  cy: size / 2,
172
- r: BACKGROUND_RADIUS,
173
170
  fill: "none",
171
+ r: BACKGROUND_RADIUS,
174
172
  stroke: "rgba(0, 0, 0, 0.05)",
175
173
  strokeWidth: BAR_SIZE
176
174
  }
177
175
  ),
178
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
179
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.RadialBar, { dataKey: "value", cornerRadius: 12, animationDuration: 1e3, fill: `url(#${gradientId})` })
176
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarAngleAxis, { angleAxisId: 0, domain: [0, 100], tick: false, type: "number" }),
177
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.RadialBar, { animationDuration: 1e3, cornerRadius: 12, dataKey: "value", fill: `url(#${gradientId})` })
180
178
  ]
181
179
  }
182
180
  ),
183
- innerContent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: slots.inner({ class: classNames == null ? void 0 : classNames.inner }), children: wrappedInnerContent })
181
+ innerContent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: slots.inner({ class: classNames == null ? void 0 : classNames.inner }), children: wrappedInnerContent }) : null
184
182
  ] }),
185
- label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
183
+ label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null
186
184
  ] });
187
185
  });
188
186
  CircularProgress.displayName = "CircularProgress";
@@ -253,7 +251,7 @@ var import_tailwind_variants3 = require("tailwind-variants");
253
251
 
254
252
  // src/utils/clsx.ts
255
253
  function clsx(...args) {
256
- var i = 0, tmp, x, str = "";
254
+ let i = 0, tmp, x, str = "";
257
255
  while (i < args.length) {
258
256
  if (tmp = args[i++]) {
259
257
  if (x = toVal(tmp)) {
@@ -265,12 +263,12 @@ function clsx(...args) {
265
263
  return str;
266
264
  }
267
265
  function toVal(mix) {
268
- var k, y, str = "";
266
+ let k, y, str = "";
269
267
  if (typeof mix === "string" || typeof mix === "number") {
270
268
  str += mix;
271
269
  } else if (typeof mix === "object") {
272
270
  if (Array.isArray(mix)) {
273
- var len = mix.length;
271
+ const len = mix.length;
274
272
  for (k = 0; k < len; k++) {
275
273
  if (mix[k]) {
276
274
  if (y = toVal(mix[k])) {
@@ -293,9 +291,9 @@ function toVal(mix) {
293
291
 
294
292
  // src/components/scroll/scrollArea.tsx
295
293
  var import_jsx_runtime2 = require("react/jsx-runtime");
296
- var ScrollArea = ({ children, className, direction, size, variant }) => {
294
+ function ScrollArea({ children, className, direction, size, variant }) {
297
295
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size, variant }), className), children });
298
- };
296
+ }
299
297
  ScrollArea.displayName = "ScrollArea";
300
298
  var scrollArea_default = ScrollArea;
301
299
  var scrollAreaStyle = (0, import_tailwind_variants3.tv)({
@@ -358,7 +356,7 @@ var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
358
356
  }, [data, startFromZero]);
359
357
  const [tickPositions, setTickPositions] = (0, import_react2.useState)([]);
360
358
  const tickRef = (0, import_react2.useRef)([]);
361
- const CustomTick = ({ x, y, payload }) => {
359
+ function CustomTick({ x, y, payload }) {
362
360
  if (x !== void 0) {
363
361
  tickRef.current.push(x);
364
362
  }
@@ -368,17 +366,17 @@ var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
368
366
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
369
367
  "text",
370
368
  {
371
- x,
372
- y: y + 11,
373
- textAnchor: "middle",
369
+ className: "text-body-foreground",
370
+ fill: "currentColor",
374
371
  fontSize: 12,
375
372
  fontWeight: 700,
376
- fill: "currentColor",
377
- className: "text-body-foreground",
373
+ textAnchor: "middle",
374
+ x,
375
+ y: y + 11,
378
376
  children: payload.value
379
377
  }
380
378
  );
381
- };
379
+ }
382
380
  (0, import_react2.useEffect)(() => {
383
381
  const raf = requestAnimationFrame(() => {
384
382
  const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
@@ -389,19 +387,21 @@ var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
389
387
  setTickPositions(mids);
390
388
  tickRef.current = [];
391
389
  });
392
- return () => cancelAnimationFrame(raf);
390
+ return () => {
391
+ cancelAnimationFrame(raf);
392
+ };
393
393
  }, [processedData]);
394
- const CustomDotWithShadow = (props2) => {
394
+ function CustomDotWithShadow(props2) {
395
395
  const { cx, cy, fill, stroke, payload } = props2;
396
396
  if (cx === void 0 || cy === void 0) return null;
397
397
  if (startFromZero && (payload == null ? void 0 : payload.name) === "") {
398
398
  return null;
399
399
  }
400
400
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
401
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
402
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
401
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx, cy, fill, opacity: 0.2, r: 8 }),
402
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx, cy, fill, r: 3.5, stroke, strokeWidth: 2 })
403
403
  ] });
404
- };
404
+ }
405
405
  const chartContent = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
406
406
  "div",
407
407
  {
@@ -412,33 +412,33 @@ var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
412
412
  children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
413
413
  import_recharts2.AreaChart,
414
414
  {
415
- width: totalChartWidth || 400,
416
- height: chartHeight + 30,
415
+ className: "bg-body-background [&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
417
416
  data: processedData,
417
+ height: chartHeight + 30,
418
418
  margin: { left: -30 },
419
- className: "bg-body-background [&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
419
+ width: totalChartWidth || 400,
420
420
  children: [
421
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
421
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", x2: "0", y1: "0", y2: "1", children: [
422
422
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
423
423
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
424
424
  ] }) }),
425
425
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
426
426
  import_recharts2.CartesianGrid,
427
427
  {
428
- vertical: true,
428
+ className: "stroke-neutral-light",
429
429
  horizontal: false,
430
430
  strokeDasharray: "4 4",
431
- className: "stroke-neutral-light",
431
+ vertical: true,
432
432
  verticalPoints: tickPositions
433
433
  }
434
434
  ),
435
435
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
436
436
  import_recharts2.XAxis,
437
437
  {
438
- dataKey: "name",
439
438
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
440
- tickLine: false,
439
+ dataKey: "name",
441
440
  tick: CustomTick,
441
+ tickLine: false,
442
442
  padding: { left: 35.5, right: 35.5 }
443
443
  }
444
444
  ),
@@ -446,7 +446,7 @@ var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
446
446
  import_recharts2.YAxis,
447
447
  {
448
448
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
449
- tickLine: false,
449
+ domain: [-6, 110],
450
450
  tick: {
451
451
  fontSize: 12,
452
452
  fontWeight: 700,
@@ -454,20 +454,20 @@ var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
454
454
  textAnchor: "middle",
455
455
  dx: -10
456
456
  },
457
- ticks: [0, 20, 40, 60, 80, 100],
458
- domain: [-6, 110]
457
+ tickLine: false,
458
+ ticks: [0, 20, 40, 60, 80, 100]
459
459
  }
460
460
  ),
461
461
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
462
462
  import_recharts2.Area,
463
463
  {
464
- type: "monotone",
464
+ activeDot: false,
465
465
  dataKey: "value",
466
+ dot: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CustomDotWithShadow, { fill: colorHex, stroke: colorHex }),
467
+ fill: `url(#colorGradient-${uniqueId})`,
466
468
  stroke: colorHex,
467
469
  strokeWidth: 2,
468
- fill: `url(#colorGradient-${uniqueId})`,
469
- dot: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
470
- activeDot: false
470
+ type: "monotone"
471
471
  }
472
472
  )
473
473
  ]
@@ -475,8 +475,8 @@ var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
475
475
  )
476
476
  }
477
477
  );
478
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
479
- label && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
478
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
479
+ label ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
480
480
  headerContent,
481
481
  needsScroll ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(scrollArea_default, { direction: "x", size: "sm", children: chartContent }) : chartContent
482
482
  ] });
@@ -531,7 +531,7 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
531
531
  const handleMouseEnter = (e, dataKey) => {
532
532
  if (!tooltipFormatter || !chartRef.current) return;
533
533
  const { payload, x, y } = e;
534
- if (!payload || !payload[dataKey]) return;
534
+ if (!(payload == null ? void 0 : payload[dataKey])) return;
535
535
  setTooltipState({
536
536
  barX: x,
537
537
  barY: y - 10,
@@ -543,7 +543,7 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
543
543
  const handleMouseLeave = () => {
544
544
  setTooltipState(null);
545
545
  };
546
- const CustomBarShape = ({ x, y, width, height, fill }) => {
546
+ function CustomBarShape({ x, y, width, height, fill }) {
547
547
  var _a;
548
548
  const radius = 5;
549
549
  const [minDomain, maxDomain] = yAxisDomain;
@@ -562,38 +562,40 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
562
562
  d: `M${x},${bottomY} L${x},${adjustedY + radius} Q${x},${adjustedY} ${x + radius},${adjustedY} L${x + width - radius},${adjustedY} Q${x + width},${adjustedY} ${x + width},${adjustedY + radius} L${x + width},${bottomY} Z`,
563
563
  fill
564
564
  }
565
- ) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x, y, width, height: 0, fill });
566
- };
567
- const CustomTick = ({ x, y, payload }) => {
565
+ ) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { fill, height: 0, width, x, y });
566
+ }
567
+ function CustomTick({ x, y, payload }) {
568
568
  if (x !== void 0) tickRef.current.push(x);
569
569
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
570
570
  "text",
571
571
  {
572
+ className: "text-body-foreground",
573
+ fill: "currentColor",
574
+ fontSize: 12,
575
+ fontWeight: 700,
576
+ textAnchor: "middle",
572
577
  x,
573
578
  y: y + 14,
574
- textAnchor: "middle",
579
+ children: payload.value
580
+ }
581
+ );
582
+ }
583
+ function CustomYAxisTick({ x, y, payload }) {
584
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
585
+ "text",
586
+ {
587
+ className: "text-body-foreground",
588
+ dy: 4,
589
+ fill: "currentColor",
575
590
  fontSize: 12,
576
591
  fontWeight: 700,
577
- fill: "currentColor",
578
- className: "text-body-foreground",
579
- children: payload.value
592
+ textAnchor: "middle",
593
+ x: x - 10,
594
+ y,
595
+ children: yAxisTickFormatter(payload.value)
580
596
  }
581
597
  );
582
- };
583
- const CustomYAxisTick = ({ x, y, payload }) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
584
- "text",
585
- {
586
- x: x - 10,
587
- y,
588
- textAnchor: "middle",
589
- fontSize: 12,
590
- fontWeight: 700,
591
- fill: "currentColor",
592
- className: "text-body-foreground",
593
- dy: 4,
594
- children: yAxisTickFormatter(payload.value)
595
- }
596
- );
598
+ }
597
599
  (0, import_react3.useEffect)(() => {
598
600
  const raf = requestAnimationFrame(() => {
599
601
  const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
@@ -604,7 +606,9 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
604
606
  setTickPositions(mids);
605
607
  tickRef.current = [];
606
608
  });
607
- return () => cancelAnimationFrame(raf);
609
+ return () => {
610
+ cancelAnimationFrame(raf);
611
+ };
608
612
  }, [data]);
609
613
  (0, import_react3.useLayoutEffect)(() => {
610
614
  if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
@@ -624,7 +628,6 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
624
628
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
625
629
  "div",
626
630
  {
627
- ref: chartRef,
628
631
  className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
629
632
  onMouseLeave: handleMouseLeave,
630
633
  onMouseMove: (e) => {
@@ -633,27 +636,28 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
633
636
  setTooltipState(null);
634
637
  }
635
638
  },
639
+ ref: chartRef,
636
640
  children: [
637
- label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
638
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
641
+ label ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
642
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.ResponsiveContainer, { height: "100%", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
639
643
  import_recharts3.BarChart,
640
644
  {
641
- data,
642
- margin: { left: -20 },
643
- barSize: 20,
644
645
  barGap,
646
+ barSize: 20,
645
647
  className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
648
+ data,
649
+ margin: { left: -20 },
646
650
  children: [
647
651
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("defs", { children: [
648
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "blueGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
652
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "blueGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
649
653
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#DEC1FA" }),
650
654
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#3F9CF2" })
651
655
  ] }),
652
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "greenGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
656
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "greenGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
653
657
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#C2E59C" }),
654
658
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#64B3F4" })
655
659
  ] }),
656
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "pinkGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
660
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "pinkGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
657
661
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#DDD6F3" }),
658
662
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#FAACA8" })
659
663
  ] })
@@ -661,31 +665,31 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
661
665
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
662
666
  import_recharts3.CartesianGrid,
663
667
  {
664
- vertical: true,
668
+ className: "stroke-neutral-light",
665
669
  horizontal: false,
666
670
  strokeDasharray: "4 4",
667
- className: "stroke-neutral-light",
671
+ vertical: true,
668
672
  verticalPoints: tickPositions
669
673
  }
670
674
  ),
671
675
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
672
676
  import_recharts3.XAxis,
673
677
  {
674
- dataKey: "title",
675
678
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
676
- tickLine: false,
679
+ dataKey: "title",
680
+ padding: { left: 0, right: 0 },
677
681
  tick: CustomTick,
678
- padding: { left: 0, right: 0 }
682
+ tickLine: false
679
683
  }
680
684
  ),
681
685
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
682
686
  import_recharts3.YAxis,
683
687
  {
684
688
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
685
- tickLine: false,
689
+ domain: yAxisDomain,
686
690
  tick: CustomYAxisTick,
687
- ticks: yAxisTicks,
688
- domain: yAxisDomain
691
+ tickLine: false,
692
+ ticks: yAxisTicks
689
693
  }
690
694
  ),
691
695
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
@@ -693,9 +697,11 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
693
697
  {
694
698
  dataKey: "blue",
695
699
  fill: "url(#blueGradient)",
696
- shape: CustomBarShape,
697
- onMouseEnter: (e) => handleMouseEnter(e, "blue"),
698
- onMouseLeave: handleMouseLeave
700
+ onMouseEnter: (e) => {
701
+ handleMouseEnter(e, "blue");
702
+ },
703
+ onMouseLeave: handleMouseLeave,
704
+ shape: CustomBarShape
699
705
  }
700
706
  ),
701
707
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
@@ -703,9 +709,11 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
703
709
  {
704
710
  dataKey: "green",
705
711
  fill: "url(#greenGradient)",
706
- shape: CustomBarShape,
707
- onMouseEnter: (e) => handleMouseEnter(e, "green"),
708
- onMouseLeave: handleMouseLeave
712
+ onMouseEnter: (e) => {
713
+ handleMouseEnter(e, "green");
714
+ },
715
+ onMouseLeave: handleMouseLeave,
716
+ shape: CustomBarShape
709
717
  }
710
718
  ),
711
719
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
@@ -713,15 +721,17 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
713
721
  {
714
722
  dataKey: "pink",
715
723
  fill: "url(#pinkGradient)",
716
- shape: CustomBarShape,
717
- onMouseEnter: (e) => handleMouseEnter(e, "pink"),
718
- onMouseLeave: handleMouseLeave
724
+ onMouseEnter: (e) => {
725
+ handleMouseEnter(e, "pink");
726
+ },
727
+ onMouseLeave: handleMouseLeave,
728
+ shape: CustomBarShape
719
729
  }
720
730
  )
721
731
  ]
722
732
  }
723
733
  ) }),
724
- tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
734
+ tooltipFormatter ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
725
735
  "div",
726
736
  {
727
737
  ref: tooltipRef,
@@ -737,9 +747,9 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
737
747
  width: "fit-content",
738
748
  whiteSpace: "nowrap"
739
749
  },
740
- children: tooltipState && tooltipFormatter(tooltipState)
750
+ children: tooltipState ? tooltipFormatter(tooltipState) : null
741
751
  }
742
- )
752
+ ) : null
743
753
  ]
744
754
  }
745
755
  );
@@ -797,14 +807,14 @@ var RadarChart = (0, import_react4.forwardRef)((originalProps, ref) => {
797
807
  if (data.length === 3) return { cx: "50%", cy: "65%" };
798
808
  return {};
799
809
  }, [data]);
800
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
801
- label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
802
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_recharts4.ResponsiveContainer, { width: "100%", height: containerHeight, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
810
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
811
+ label ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
812
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_recharts4.ResponsiveContainer, { height: containerHeight, width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
803
813
  import_recharts4.RadarChart,
804
814
  {
805
815
  data: normalizedData,
806
- outerRadius,
807
816
  margin: chartMargin,
817
+ outerRadius,
808
818
  ...chartCenter,
809
819
  className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
810
820
  children: [
@@ -818,22 +828,23 @@ var RadarChart = (0, import_react4.forwardRef)((originalProps, ref) => {
818
828
  tickSize: 15
819
829
  }
820
830
  ),
821
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_recharts4.PolarRadiusAxis, { domain: [0, 100], tick: false, tickCount: 6, axisLine: false }),
831
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_recharts4.PolarRadiusAxis, { axisLine: false, domain: [0, 100], tick: false, tickCount: 6 }),
822
832
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
823
833
  import_recharts4.Radar,
824
834
  {
825
- name: label,
835
+ activeDot: false,
826
836
  dataKey: "value",
827
- stroke: "#3F9CF2",
828
- fill: "#EFF8FF",
829
- strokeWidth: 1.75,
830
837
  dot: false,
831
- activeDot: false
838
+ fill: "#EFF8FF",
839
+ name: label,
840
+ stroke: "#3F9CF2",
841
+ strokeWidth: 1.75
832
842
  }
833
843
  ),
834
- tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
844
+ tooltipFormatter ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
835
845
  import_recharts4.Tooltip,
836
846
  {
847
+ allowEscapeViewBox: { x: true, y: true },
837
848
  content: ({ active, payload, label: tooltipLabel }) => {
838
849
  var _a, _b;
839
850
  const currentData = data == null ? void 0 : data.find((item) => item.name === tooltipLabel);
@@ -844,12 +855,11 @@ var RadarChart = (0, import_react4.forwardRef)((originalProps, ref) => {
844
855
  data: currentData
845
856
  }) });
846
857
  },
847
- wrapperStyle: { zIndex: 9999 },
848
- allowEscapeViewBox: { x: true, y: true },
858
+ cursor: false,
849
859
  isAnimationActive: false,
850
- cursor: false
860
+ wrapperStyle: { zIndex: 9999 }
851
861
  }
852
- )
862
+ ) : null
853
863
  ]
854
864
  }
855
865
  ) }) })
@@ -934,7 +944,7 @@ var SimpleBarChartComponent = (0, import_react5.forwardRef)((originalProps, ref)
934
944
  const handleMouseLeave = () => {
935
945
  setTooltipState(null);
936
946
  };
937
- const CustomBarShape = ({ x, y, width, height, fill }) => {
947
+ function CustomBarShape({ x, y, width, height, fill }) {
938
948
  const radius = 4;
939
949
  const extraHeight = 10;
940
950
  const adjustedHeight = height + extraHeight;
@@ -946,23 +956,23 @@ var SimpleBarChartComponent = (0, import_react5.forwardRef)((originalProps, ref)
946
956
  d: `M${x},${bottomY} L${x},${adjustedY + radius} Q${x},${adjustedY} ${x + radius},${adjustedY} L${x + width - radius},${adjustedY} Q${x + width},${adjustedY} ${x + width},${adjustedY + radius} L${x + width},${bottomY} Z`,
947
957
  fill
948
958
  }
949
- ) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { x, y, width, height: 0, fill });
950
- };
951
- const CustomTick = ({ x, y, payload }) => {
959
+ ) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("rect", { fill, height: 0, width, x, y });
960
+ }
961
+ function CustomTick({ x, y, payload }) {
952
962
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
953
963
  "text",
954
964
  {
955
- x,
956
- y: y + 14,
957
- textAnchor: "middle",
965
+ className: "text-body-foreground",
966
+ fill: "currentColor",
958
967
  fontSize: 12,
959
968
  fontWeight: 700,
960
- fill: "currentColor",
961
- className: "text-body-foreground",
969
+ textAnchor: "middle",
970
+ x,
971
+ y: y + 14,
962
972
  children: payload.value
963
973
  }
964
974
  );
965
- };
975
+ }
966
976
  (0, import_react5.useLayoutEffect)(() => {
967
977
  if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
968
978
  const chartRect = chartRef.current.getBoundingClientRect();
@@ -981,7 +991,6 @@ var SimpleBarChartComponent = (0, import_react5.forwardRef)((originalProps, ref)
981
991
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
982
992
  "div",
983
993
  {
984
- ref: chartRef,
985
994
  className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
986
995
  onMouseLeave: handleMouseLeave,
987
996
  onMouseMove: (e) => {
@@ -990,63 +999,64 @@ var SimpleBarChartComponent = (0, import_react5.forwardRef)((originalProps, ref)
990
999
  setTooltipState(null);
991
1000
  }
992
1001
  },
1002
+ ref: chartRef,
993
1003
  children: [
994
- label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
995
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_recharts5.ResponsiveContainer, { width: "100%", height: 140, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1004
+ label ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
1005
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_recharts5.ResponsiveContainer, { height: 140, width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
996
1006
  import_recharts5.BarChart,
997
1007
  {
998
- data,
999
- margin: { left: 0, right: 0, top: 0, bottom: 0 },
1000
- barSize: 10,
1001
1008
  barGap,
1009
+ barSize: 10,
1002
1010
  className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
1011
+ data,
1012
+ margin: { left: 0, right: 0, top: 0, bottom: 0 },
1003
1013
  children: [
1004
1014
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1005
1015
  import_recharts5.CartesianGrid,
1006
1016
  {
1007
- vertical: true,
1017
+ className: "stroke-neutral-light",
1008
1018
  horizontal: false,
1009
1019
  strokeDasharray: "4 4",
1010
- className: "stroke-neutral-light",
1020
+ vertical: true,
1011
1021
  verticalPoints: tickPositions
1012
1022
  }
1013
1023
  ),
1014
1024
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1015
1025
  import_recharts5.CartesianGrid,
1016
1026
  {
1017
- vertical: true,
1027
+ className: "stroke-neutral-light",
1018
1028
  horizontal: false,
1019
1029
  strokeDasharray: "0",
1020
1030
  strokeWidth: 2,
1021
- className: "stroke-neutral-light",
1031
+ vertical: true,
1022
1032
  verticalPoints: [0]
1023
1033
  }
1024
1034
  ),
1025
1035
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1026
1036
  import_recharts5.XAxis,
1027
1037
  {
1028
- dataKey: "title",
1029
1038
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
1030
- tickLine: false,
1039
+ dataKey: "title",
1040
+ padding: { left: 0, right: 0 },
1031
1041
  tick: CustomTick,
1032
- padding: { left: 0, right: 0 }
1042
+ tickLine: false
1033
1043
  }
1034
1044
  ),
1035
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_recharts5.YAxis, { hide: true, ticks: yAxisTicks, domain: yAxisDomain }),
1045
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_recharts5.YAxis, { domain: yAxisDomain, hide: true, ticks: yAxisTicks }),
1036
1046
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1037
1047
  import_recharts5.Bar,
1038
1048
  {
1039
1049
  dataKey: "value",
1040
1050
  fill: "#C7E5FA",
1041
- shape: CustomBarShape,
1042
1051
  onMouseEnter: handleMouseEnter,
1043
- onMouseLeave: handleMouseLeave
1052
+ onMouseLeave: handleMouseLeave,
1053
+ shape: CustomBarShape
1044
1054
  }
1045
1055
  )
1046
1056
  ]
1047
1057
  }
1048
1058
  ) }),
1049
- tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1059
+ tooltipFormatter ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1050
1060
  "div",
1051
1061
  {
1052
1062
  ref: tooltipRef,
@@ -1062,9 +1072,9 @@ var SimpleBarChartComponent = (0, import_react5.forwardRef)((originalProps, ref)
1062
1072
  width: "fit-content",
1063
1073
  whiteSpace: "nowrap"
1064
1074
  },
1065
- children: tooltipState && tooltipFormatter(tooltipState)
1075
+ children: tooltipState ? tooltipFormatter(tooltipState) : null
1066
1076
  }
1067
- )
1077
+ ) : null
1068
1078
  ]
1069
1079
  }
1070
1080
  );