@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
@@ -77,16 +77,14 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
77
77
  const picked = variantKeys.reduce((acc, key) => {
78
78
  if (key in props) {
79
79
  return { ...acc, [key]: props[key] };
80
- } else {
81
- return acc;
82
80
  }
81
+ return acc;
83
82
  }, {});
84
83
  if (removeVariantProps) {
85
84
  const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
86
85
  return [omitted, picked];
87
- } else {
88
- return [props, picked];
89
86
  }
87
+ return [props, picked];
90
88
  };
91
89
 
92
90
  // src/components/charts/barChart.tsx
@@ -113,7 +111,7 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
113
111
  const handleMouseEnter = (e, dataKey) => {
114
112
  if (!tooltipFormatter || !chartRef.current) return;
115
113
  const { payload, x, y } = e;
116
- if (!payload || !payload[dataKey]) return;
114
+ if (!(payload == null ? void 0 : payload[dataKey])) return;
117
115
  setTooltipState({
118
116
  barX: x,
119
117
  barY: y - 10,
@@ -125,7 +123,7 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
125
123
  const handleMouseLeave = () => {
126
124
  setTooltipState(null);
127
125
  };
128
- const CustomBarShape = ({ x, y, width, height, fill }) => {
126
+ function CustomBarShape({ x, y, width, height, fill }) {
129
127
  var _a;
130
128
  const radius = 5;
131
129
  const [minDomain, maxDomain] = yAxisDomain;
@@ -144,38 +142,40 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
144
142
  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`,
145
143
  fill
146
144
  }
147
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { x, y, width, height: 0, fill });
148
- };
149
- const CustomTick = ({ x, y, payload }) => {
145
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { fill, height: 0, width, x, y });
146
+ }
147
+ function CustomTick({ x, y, payload }) {
150
148
  if (x !== void 0) tickRef.current.push(x);
151
149
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
152
150
  "text",
153
151
  {
152
+ className: "text-body-foreground",
153
+ fill: "currentColor",
154
+ fontSize: 12,
155
+ fontWeight: 700,
156
+ textAnchor: "middle",
154
157
  x,
155
158
  y: y + 14,
156
- textAnchor: "middle",
159
+ children: payload.value
160
+ }
161
+ );
162
+ }
163
+ function CustomYAxisTick({ x, y, payload }) {
164
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
165
+ "text",
166
+ {
167
+ className: "text-body-foreground",
168
+ dy: 4,
169
+ fill: "currentColor",
157
170
  fontSize: 12,
158
171
  fontWeight: 700,
159
- fill: "currentColor",
160
- className: "text-body-foreground",
161
- children: payload.value
172
+ textAnchor: "middle",
173
+ x: x - 10,
174
+ y,
175
+ children: yAxisTickFormatter(payload.value)
162
176
  }
163
177
  );
164
- };
165
- const CustomYAxisTick = ({ x, y, payload }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
166
- "text",
167
- {
168
- x: x - 10,
169
- y,
170
- textAnchor: "middle",
171
- fontSize: 12,
172
- fontWeight: 700,
173
- fill: "currentColor",
174
- className: "text-body-foreground",
175
- dy: 4,
176
- children: yAxisTickFormatter(payload.value)
177
- }
178
- );
178
+ }
179
179
  (0, import_react.useEffect)(() => {
180
180
  const raf = requestAnimationFrame(() => {
181
181
  const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
@@ -186,7 +186,9 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
186
186
  setTickPositions(mids);
187
187
  tickRef.current = [];
188
188
  });
189
- return () => cancelAnimationFrame(raf);
189
+ return () => {
190
+ cancelAnimationFrame(raf);
191
+ };
190
192
  }, [data]);
191
193
  (0, import_react.useLayoutEffect)(() => {
192
194
  if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
@@ -206,7 +208,6 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
206
208
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
207
209
  "div",
208
210
  {
209
- ref: chartRef,
210
211
  className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
211
212
  onMouseLeave: handleMouseLeave,
212
213
  onMouseMove: (e) => {
@@ -215,27 +216,28 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
215
216
  setTooltipState(null);
216
217
  }
217
218
  },
219
+ ref: chartRef,
218
220
  children: [
219
- label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
220
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
221
+ label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null,
222
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { height: "100%", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
221
223
  import_recharts.BarChart,
222
224
  {
223
- data,
224
- margin: { left: -20 },
225
- barSize: 20,
226
225
  barGap,
226
+ barSize: 20,
227
227
  className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
228
+ data,
229
+ margin: { left: -20 },
228
230
  children: [
229
231
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("defs", { children: [
230
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "blueGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
232
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "blueGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
231
233
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "0%", stopColor: "#DEC1FA" }),
232
234
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "100%", stopColor: "#3F9CF2" })
233
235
  ] }),
234
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "greenGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
236
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "greenGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
235
237
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "0%", stopColor: "#C2E59C" }),
236
238
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "100%", stopColor: "#64B3F4" })
237
239
  ] }),
238
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "pinkGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
240
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: "pinkGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
239
241
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "0%", stopColor: "#DDD6F3" }),
240
242
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "100%", stopColor: "#FAACA8" })
241
243
  ] })
@@ -243,31 +245,31 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
243
245
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
244
246
  import_recharts.CartesianGrid,
245
247
  {
246
- vertical: true,
248
+ className: "stroke-neutral-light",
247
249
  horizontal: false,
248
250
  strokeDasharray: "4 4",
249
- className: "stroke-neutral-light",
251
+ vertical: true,
250
252
  verticalPoints: tickPositions
251
253
  }
252
254
  ),
253
255
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
254
256
  import_recharts.XAxis,
255
257
  {
256
- dataKey: "title",
257
258
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
258
- tickLine: false,
259
+ dataKey: "title",
260
+ padding: { left: 0, right: 0 },
259
261
  tick: CustomTick,
260
- padding: { left: 0, right: 0 }
262
+ tickLine: false
261
263
  }
262
264
  ),
263
265
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
264
266
  import_recharts.YAxis,
265
267
  {
266
268
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
267
- tickLine: false,
269
+ domain: yAxisDomain,
268
270
  tick: CustomYAxisTick,
269
- ticks: yAxisTicks,
270
- domain: yAxisDomain
271
+ tickLine: false,
272
+ ticks: yAxisTicks
271
273
  }
272
274
  ),
273
275
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -275,9 +277,11 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
275
277
  {
276
278
  dataKey: "blue",
277
279
  fill: "url(#blueGradient)",
278
- shape: CustomBarShape,
279
- onMouseEnter: (e) => handleMouseEnter(e, "blue"),
280
- onMouseLeave: handleMouseLeave
280
+ onMouseEnter: (e) => {
281
+ handleMouseEnter(e, "blue");
282
+ },
283
+ onMouseLeave: handleMouseLeave,
284
+ shape: CustomBarShape
281
285
  }
282
286
  ),
283
287
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -285,9 +289,11 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
285
289
  {
286
290
  dataKey: "green",
287
291
  fill: "url(#greenGradient)",
288
- shape: CustomBarShape,
289
- onMouseEnter: (e) => handleMouseEnter(e, "green"),
290
- onMouseLeave: handleMouseLeave
292
+ onMouseEnter: (e) => {
293
+ handleMouseEnter(e, "green");
294
+ },
295
+ onMouseLeave: handleMouseLeave,
296
+ shape: CustomBarShape
291
297
  }
292
298
  ),
293
299
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -295,15 +301,17 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
295
301
  {
296
302
  dataKey: "pink",
297
303
  fill: "url(#pinkGradient)",
298
- shape: CustomBarShape,
299
- onMouseEnter: (e) => handleMouseEnter(e, "pink"),
300
- onMouseLeave: handleMouseLeave
304
+ onMouseEnter: (e) => {
305
+ handleMouseEnter(e, "pink");
306
+ },
307
+ onMouseLeave: handleMouseLeave,
308
+ shape: CustomBarShape
301
309
  }
302
310
  )
303
311
  ]
304
312
  }
305
313
  ) }),
306
- tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
314
+ tooltipFormatter ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
307
315
  "div",
308
316
  {
309
317
  ref: tooltipRef,
@@ -319,9 +327,9 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
319
327
  width: "fit-content",
320
328
  whiteSpace: "nowrap"
321
329
  },
322
- children: tooltipState && tooltipFormatter(tooltipState)
330
+ children: tooltipState ? tooltipFormatter(tooltipState) : null
323
331
  }
324
- )
332
+ ) : null
325
333
  ]
326
334
  }
327
335
  );
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  BarChartTooltip,
4
4
  barChart_default
5
- } from "../../chunk-62M6VPFS.mjs";
6
- import "../../chunk-E3G5QXSH.mjs";
5
+ } from "../../chunk-HDCCDPYL.mjs";
6
+ import "../../chunk-UWT2WB6H.mjs";
7
7
  import "../../chunk-UP6RPQDX.mjs";
8
8
  export {
9
9
  BarChartTooltip,
@@ -4,13 +4,13 @@ import * as react from 'react';
4
4
  import { ReactNode } from 'react';
5
5
  import { SlotsToClasses } from '../../utils/types.mjs';
6
6
 
7
- type Props = {
7
+ interface Props {
8
8
  label?: string;
9
9
  size?: number;
10
10
  percentage: number;
11
11
  innerContent?: ReactNode;
12
12
  classNames?: SlotsToClasses<CircularProgressSlots>;
13
- };
13
+ }
14
14
  type CircularProgressProps = Props & CircularProgressVariantProps;
15
15
  declare const CircularProgress: react.ForwardRefExoticComponent<Props & CircularProgressVariantProps & react.RefAttributes<HTMLDivElement>>;
16
16
 
@@ -4,13 +4,13 @@ import * as react from 'react';
4
4
  import { ReactNode } from 'react';
5
5
  import { SlotsToClasses } from '../../utils/types.js';
6
6
 
7
- type Props = {
7
+ interface Props {
8
8
  label?: string;
9
9
  size?: number;
10
10
  percentage: number;
11
11
  innerContent?: ReactNode;
12
12
  classNames?: SlotsToClasses<CircularProgressSlots>;
13
- };
13
+ }
14
14
  type CircularProgressProps = Props & CircularProgressVariantProps;
15
15
  declare const CircularProgress: react.ForwardRefExoticComponent<Props & CircularProgressVariantProps & react.RefAttributes<HTMLDivElement>>;
16
16
 
@@ -35,16 +35,14 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
35
35
  const picked = variantKeys.reduce((acc, key) => {
36
36
  if (key in props) {
37
37
  return { ...acc, [key]: props[key] };
38
- } else {
39
- return acc;
40
38
  }
39
+ return acc;
41
40
  }, {});
42
41
  if (removeVariantProps) {
43
42
  const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
44
43
  return [omitted, picked];
45
- } else {
46
- return [props, picked];
47
44
  }
45
+ return [props, picked];
48
46
  };
49
47
 
50
48
  // src/utils/tailwind-variants.ts
@@ -128,21 +126,21 @@ var CircularProgress = (0, import_react.forwardRef)((originalProps, ref) => {
128
126
  const wrappedInnerContent = (0, import_react.useMemo)(() => {
129
127
  return wrapSpanWithClass(innerContent);
130
128
  }, [innerContent]);
131
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
129
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
132
130
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
133
131
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
134
132
  import_recharts.RadialBarChart,
135
133
  {
136
- width: size,
134
+ barSize: BAR_SIZE,
135
+ data,
136
+ endAngle: -270,
137
137
  height: size,
138
138
  innerRadius: INNER_RADIUS - 0.1,
139
139
  outerRadius: OUTER_RADIUS,
140
- barSize: BAR_SIZE,
141
- data,
142
140
  startAngle: 90,
143
- endAngle: -270,
141
+ width: size,
144
142
  children: [
145
- /* @__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: [
143
+ /* @__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: [
146
144
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "0%", stopColor: currentGradient.start }),
147
145
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "100%", stopColor: currentGradient.end })
148
146
  ] }) }),
@@ -151,8 +149,8 @@ var CircularProgress = (0, import_react.forwardRef)((originalProps, ref) => {
151
149
  {
152
150
  cx: size / 2,
153
151
  cy: size / 2,
154
- r: OUTER_RADIUS + BORDER_MARGIN,
155
152
  fill: "#fff",
153
+ r: OUTER_RADIUS + BORDER_MARGIN,
156
154
  stroke: "#DFE2E7",
157
155
  strokeWidth: "1"
158
156
  }
@@ -162,20 +160,20 @@ var CircularProgress = (0, import_react.forwardRef)((originalProps, ref) => {
162
160
  {
163
161
  cx: size / 2,
164
162
  cy: size / 2,
165
- r: BACKGROUND_RADIUS,
166
163
  fill: "none",
164
+ r: BACKGROUND_RADIUS,
167
165
  stroke: "rgba(0, 0, 0, 0.05)",
168
166
  strokeWidth: BAR_SIZE
169
167
  }
170
168
  ),
171
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
172
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.RadialBar, { dataKey: "value", cornerRadius: 12, animationDuration: 1e3, fill: `url(#${gradientId})` })
169
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarAngleAxis, { angleAxisId: 0, domain: [0, 100], tick: false, type: "number" }),
170
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.RadialBar, { animationDuration: 1e3, cornerRadius: 12, dataKey: "value", fill: `url(#${gradientId})` })
173
171
  ]
174
172
  }
175
173
  ),
176
- innerContent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: slots.inner({ class: classNames == null ? void 0 : classNames.inner }), children: wrappedInnerContent })
174
+ innerContent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: slots.inner({ class: classNames == null ? void 0 : classNames.inner }), children: wrappedInnerContent }) : null
177
175
  ] }),
178
- label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
176
+ label ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }) : null
179
177
  ] });
180
178
  });
181
179
  CircularProgress.displayName = "CircularProgress";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  circularProgress_default
4
- } from "../../chunk-PIUOU6LS.mjs";
5
- import "../../chunk-E3G5QXSH.mjs";
4
+ } from "../../chunk-TEF3UA4E.mjs";
5
+ import "../../chunk-UWT2WB6H.mjs";
6
6
  import "../../chunk-UP6RPQDX.mjs";
7
7
  export {
8
8
  circularProgress_default as default