@parto-system-design/ui 1.1.11 → 1.1.16

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 (411) hide show
  1. package/dist/components/brand/parto-logo.cjs +130 -0
  2. package/dist/components/brand/parto-logo.cjs.map +1 -0
  3. package/dist/components/brand/parto-logo.d.cts +38 -0
  4. package/dist/components/brand/parto-logo.d.ts +38 -0
  5. package/dist/components/brand/parto-logo.js +108 -0
  6. package/dist/components/brand/parto-logo.js.map +1 -0
  7. package/dist/components/charts/PartoAreaChart.cjs +579 -7
  8. package/dist/components/charts/PartoAreaChart.cjs.map +1 -1
  9. package/dist/components/charts/PartoAreaChart.js +564 -4
  10. package/dist/components/charts/PartoAreaChart.js.map +1 -1
  11. package/dist/components/charts/PartoBarChart.cjs +616 -7
  12. package/dist/components/charts/PartoBarChart.cjs.map +1 -1
  13. package/dist/components/charts/PartoBarChart.js +601 -4
  14. package/dist/components/charts/PartoBarChart.js.map +1 -1
  15. package/dist/components/charts/PartoLineChart.cjs +584 -7
  16. package/dist/components/charts/PartoLineChart.cjs.map +1 -1
  17. package/dist/components/charts/PartoLineChart.js +569 -4
  18. package/dist/components/charts/PartoLineChart.js.map +1 -1
  19. package/dist/components/charts/PartoPieChart.cjs +566 -7
  20. package/dist/components/charts/PartoPieChart.cjs.map +1 -1
  21. package/dist/components/charts/PartoPieChart.js +551 -4
  22. package/dist/components/charts/PartoPieChart.js.map +1 -1
  23. package/dist/components/ui/accordion.cjs +97 -0
  24. package/dist/components/ui/accordion.cjs.map +1 -0
  25. package/dist/components/ui/accordion.d.cts +22 -0
  26. package/dist/components/ui/accordion.d.ts +22 -0
  27. package/dist/components/ui/accordion.js +72 -0
  28. package/dist/components/ui/accordion.js.map +1 -0
  29. package/dist/{chunk-MMC6M35Q.cjs → components/ui/alert-dialog.cjs} +216 -22
  30. package/dist/components/ui/alert-dialog.cjs.map +1 -0
  31. package/dist/components/ui/alert-dialog.d.cts +17 -0
  32. package/dist/components/ui/alert-dialog.d.ts +17 -0
  33. package/dist/{chunk-3QYYPPFJ.js → components/ui/alert-dialog.js} +175 -10
  34. package/dist/components/ui/alert-dialog.js.map +1 -0
  35. package/dist/components/ui/alert-rule-card.cjs +289 -8
  36. package/dist/components/ui/alert-rule-card.cjs.map +1 -1
  37. package/dist/components/ui/alert-rule-card.d.cts +1 -1
  38. package/dist/components/ui/alert-rule-card.d.ts +1 -1
  39. package/dist/components/ui/alert-rule-card.js +271 -4
  40. package/dist/components/ui/alert-rule-card.js.map +1 -1
  41. package/dist/components/ui/alert.cjs +81 -0
  42. package/dist/components/ui/alert.cjs.map +1 -0
  43. package/dist/components/ui/alert.d.cts +11 -0
  44. package/dist/components/ui/alert.d.ts +11 -0
  45. package/dist/components/ui/alert.js +57 -0
  46. package/dist/components/ui/alert.js.map +1 -0
  47. package/dist/components/ui/app-bar.cjs +67 -0
  48. package/dist/components/ui/app-bar.cjs.map +1 -0
  49. package/dist/components/ui/app-bar.d.cts +22 -0
  50. package/dist/components/ui/app-bar.d.ts +22 -0
  51. package/dist/components/ui/app-bar.js +44 -0
  52. package/dist/components/ui/app-bar.js.map +1 -0
  53. package/dist/components/ui/avatar.cjs +66 -14
  54. package/dist/components/ui/avatar.cjs.map +1 -1
  55. package/dist/components/ui/avatar.js +47 -2
  56. package/dist/components/ui/avatar.js.map +1 -1
  57. package/dist/components/ui/badge.cjs +113 -9
  58. package/dist/components/ui/badge.cjs.map +1 -1
  59. package/dist/components/ui/badge.d.cts +1 -1
  60. package/dist/components/ui/badge.d.ts +1 -1
  61. package/dist/components/ui/badge.js +96 -2
  62. package/dist/components/ui/badge.js.map +1 -1
  63. package/dist/components/ui/breadcrumb.cjs +100 -0
  64. package/dist/components/ui/breadcrumb.cjs.map +1 -0
  65. package/dist/components/ui/breadcrumb.d.cts +35 -0
  66. package/dist/components/ui/breadcrumb.d.ts +35 -0
  67. package/dist/components/ui/breadcrumb.js +92 -0
  68. package/dist/components/ui/breadcrumb.js.map +1 -0
  69. package/dist/components/ui/button.cjs +304 -11
  70. package/dist/components/ui/button.cjs.map +1 -1
  71. package/dist/components/ui/button.d.cts +3 -3
  72. package/dist/components/ui/button.d.ts +3 -3
  73. package/dist/components/ui/button.js +306 -3
  74. package/dist/components/ui/button.js.map +1 -1
  75. package/dist/components/ui/calendar.cjs +401 -8
  76. package/dist/components/ui/calendar.cjs.map +1 -1
  77. package/dist/components/ui/calendar.js +404 -4
  78. package/dist/components/ui/calendar.js.map +1 -1
  79. package/dist/components/ui/card.cjs +154 -30
  80. package/dist/components/ui/card.cjs.map +1 -1
  81. package/dist/components/ui/card.js +131 -2
  82. package/dist/components/ui/card.js.map +1 -1
  83. package/dist/{chunk-CAJKSTXX.cjs → components/ui/checkbox.cjs} +10 -5
  84. package/dist/components/ui/checkbox.cjs.map +1 -0
  85. package/dist/components/ui/checkbox.d.cts +6 -0
  86. package/dist/components/ui/checkbox.d.ts +6 -0
  87. package/dist/{chunk-5JJSRGJD.js → components/ui/checkbox.js} +9 -4
  88. package/dist/components/ui/checkbox.js.map +1 -0
  89. package/dist/components/ui/concept-card.cjs +728 -11
  90. package/dist/components/ui/concept-card.cjs.map +1 -1
  91. package/dist/components/ui/concept-card.d.cts +2 -2
  92. package/dist/components/ui/concept-card.d.ts +2 -2
  93. package/dist/components/ui/concept-card.js +710 -7
  94. package/dist/components/ui/concept-card.js.map +1 -1
  95. package/dist/components/ui/data-table.cjs +1553 -10
  96. package/dist/components/ui/data-table.cjs.map +1 -1
  97. package/dist/components/ui/data-table.js +1537 -7
  98. package/dist/components/ui/data-table.js.map +1 -1
  99. package/dist/components/ui/dialog.cjs +119 -42
  100. package/dist/components/ui/dialog.cjs.map +1 -1
  101. package/dist/components/ui/dialog.js +92 -2
  102. package/dist/components/ui/dialog.js.map +1 -1
  103. package/dist/components/ui/dropdown-menu.cjs +268 -0
  104. package/dist/components/ui/dropdown-menu.cjs.map +1 -0
  105. package/dist/components/ui/dropdown-menu.d.cts +73 -0
  106. package/dist/components/ui/dropdown-menu.d.ts +73 -0
  107. package/dist/components/ui/dropdown-menu.js +232 -0
  108. package/dist/components/ui/dropdown-menu.js.map +1 -0
  109. package/dist/components/ui/filter-provider.cjs +70 -13
  110. package/dist/components/ui/filter-provider.cjs.map +1 -1
  111. package/dist/components/ui/filter-provider.js +51 -1
  112. package/dist/components/ui/filter-provider.js.map +1 -1
  113. package/dist/components/ui/form.cjs +169 -0
  114. package/dist/components/ui/form.cjs.map +1 -0
  115. package/dist/components/ui/form.d.cts +46 -0
  116. package/dist/components/ui/form.d.ts +46 -0
  117. package/dist/components/ui/form.js +139 -0
  118. package/dist/components/ui/form.js.map +1 -0
  119. package/dist/components/ui/input.cjs +135 -15
  120. package/dist/components/ui/input.cjs.map +1 -1
  121. package/dist/components/ui/input.d.cts +15 -0
  122. package/dist/components/ui/input.d.ts +15 -0
  123. package/dist/components/ui/input.js +116 -3
  124. package/dist/components/ui/input.js.map +1 -1
  125. package/dist/components/ui/iran-province-heat.cjs +328 -5
  126. package/dist/components/ui/iran-province-heat.cjs.map +1 -1
  127. package/dist/components/ui/iran-province-heat.js +312 -2
  128. package/dist/components/ui/iran-province-heat.js.map +1 -1
  129. package/dist/components/ui/label.cjs +52 -0
  130. package/dist/components/ui/label.cjs.map +1 -0
  131. package/dist/components/ui/label.d.cts +10 -0
  132. package/dist/components/ui/label.d.ts +10 -0
  133. package/dist/components/ui/label.js +30 -0
  134. package/dist/components/ui/label.js.map +1 -0
  135. package/dist/components/ui/page-card.cjs +627 -8
  136. package/dist/components/ui/page-card.cjs.map +1 -1
  137. package/dist/components/ui/page-card.d.cts +3 -2
  138. package/dist/components/ui/page-card.d.ts +3 -2
  139. package/dist/components/ui/page-card.js +611 -5
  140. package/dist/components/ui/page-card.js.map +1 -1
  141. package/dist/components/ui/page-header.cjs +299 -0
  142. package/dist/components/ui/page-header.cjs.map +1 -0
  143. package/dist/components/ui/page-header.d.cts +21 -0
  144. package/dist/components/ui/page-header.d.ts +21 -0
  145. package/dist/components/ui/page-header.js +277 -0
  146. package/dist/components/ui/page-header.js.map +1 -0
  147. package/dist/components/ui/password-input.cjs +168 -0
  148. package/dist/components/ui/password-input.cjs.map +1 -0
  149. package/dist/components/ui/password-input.d.cts +48 -0
  150. package/dist/components/ui/password-input.d.ts +48 -0
  151. package/dist/components/ui/password-input.js +146 -0
  152. package/dist/components/ui/password-input.js.map +1 -0
  153. package/dist/components/ui/popover.cjs +51 -18
  154. package/dist/components/ui/popover.cjs.map +1 -1
  155. package/dist/components/ui/popover.js +30 -2
  156. package/dist/components/ui/popover.js.map +1 -1
  157. package/dist/components/ui/progress.cjs +95 -0
  158. package/dist/components/ui/progress.cjs.map +1 -0
  159. package/dist/components/ui/progress.d.cts +18 -0
  160. package/dist/components/ui/progress.d.ts +18 -0
  161. package/dist/components/ui/progress.js +72 -0
  162. package/dist/components/ui/progress.js.map +1 -0
  163. package/dist/components/ui/radio-card.cjs +84 -0
  164. package/dist/components/ui/radio-card.cjs.map +1 -0
  165. package/dist/components/ui/radio-card.d.cts +12 -0
  166. package/dist/components/ui/radio-card.d.ts +12 -0
  167. package/dist/components/ui/radio-card.js +58 -0
  168. package/dist/components/ui/radio-card.js.map +1 -0
  169. package/dist/components/ui/radio-group.cjs +62 -0
  170. package/dist/components/ui/radio-group.cjs.map +1 -0
  171. package/dist/components/ui/radio-group.d.cts +7 -0
  172. package/dist/components/ui/radio-group.d.ts +7 -0
  173. package/dist/components/ui/radio-group.js +38 -0
  174. package/dist/components/ui/radio-group.js.map +1 -0
  175. package/dist/components/ui/saved-query-card.cjs +409 -7
  176. package/dist/components/ui/saved-query-card.cjs.map +1 -1
  177. package/dist/components/ui/saved-query-card.js +394 -4
  178. package/dist/components/ui/saved-query-card.js.map +1 -1
  179. package/dist/components/ui/scroll-area.cjs +79 -0
  180. package/dist/components/ui/scroll-area.cjs.map +1 -0
  181. package/dist/components/ui/scroll-area.d.cts +14 -0
  182. package/dist/components/ui/scroll-area.d.ts +14 -0
  183. package/dist/components/ui/scroll-area.js +56 -0
  184. package/dist/components/ui/scroll-area.js.map +1 -0
  185. package/dist/components/ui/select.cjs +242 -0
  186. package/dist/components/ui/select.cjs.map +1 -0
  187. package/dist/components/ui/select.d.cts +29 -0
  188. package/dist/components/ui/select.d.ts +29 -0
  189. package/dist/components/ui/select.js +210 -0
  190. package/dist/components/ui/select.js.map +1 -0
  191. package/dist/components/ui/separator.cjs +105 -6
  192. package/dist/components/ui/separator.cjs.map +1 -1
  193. package/dist/components/ui/separator.js +87 -2
  194. package/dist/components/ui/separator.js.map +1 -1
  195. package/dist/components/ui/sheet.cjs +134 -38
  196. package/dist/components/ui/sheet.cjs.map +1 -1
  197. package/dist/components/ui/sheet.js +109 -2
  198. package/dist/components/ui/sheet.js.map +1 -1
  199. package/dist/{chunk-D2EBLE2B.cjs → components/ui/skeleton.cjs} +21 -16
  200. package/dist/components/ui/skeleton.cjs.map +1 -0
  201. package/dist/components/ui/skeleton.d.cts +90 -0
  202. package/dist/components/ui/skeleton.d.ts +90 -0
  203. package/dist/{chunk-SB5DSYR5.js → components/ui/skeleton.js} +8 -3
  204. package/dist/components/ui/skeleton.js.map +1 -0
  205. package/dist/components/ui/slider.cjs +129 -0
  206. package/dist/components/ui/slider.cjs.map +1 -0
  207. package/dist/components/ui/slider.d.cts +10 -0
  208. package/dist/components/ui/slider.d.ts +10 -0
  209. package/dist/components/ui/slider.js +107 -0
  210. package/dist/components/ui/slider.js.map +1 -0
  211. package/dist/components/ui/social-platform-badge.cjs +120 -0
  212. package/dist/components/ui/social-platform-badge.cjs.map +1 -0
  213. package/dist/components/ui/social-platform-badge.d.cts +21 -0
  214. package/dist/components/ui/social-platform-badge.d.ts +21 -0
  215. package/dist/components/ui/social-platform-badge.js +97 -0
  216. package/dist/components/ui/social-platform-badge.js.map +1 -0
  217. package/dist/components/ui/sonner.cjs +51 -0
  218. package/dist/components/ui/sonner.cjs.map +1 -0
  219. package/dist/components/ui/sonner.d.cts +13 -0
  220. package/dist/components/ui/sonner.d.ts +13 -0
  221. package/dist/components/ui/sonner.js +45 -0
  222. package/dist/components/ui/sonner.js.map +1 -0
  223. package/dist/components/ui/sparkline.cjs +159 -6
  224. package/dist/components/ui/sparkline.cjs.map +1 -1
  225. package/dist/components/ui/sparkline.js +142 -2
  226. package/dist/components/ui/sparkline.js.map +1 -1
  227. package/dist/components/ui/switch.cjs +96 -0
  228. package/dist/components/ui/switch.cjs.map +1 -0
  229. package/dist/components/ui/switch.d.cts +13 -0
  230. package/dist/components/ui/switch.d.ts +13 -0
  231. package/dist/components/ui/switch.js +73 -0
  232. package/dist/components/ui/switch.js.map +1 -0
  233. package/dist/components/ui/table.cjs +188 -0
  234. package/dist/components/ui/table.cjs.map +1 -0
  235. package/dist/components/ui/table.d.cts +59 -0
  236. package/dist/components/ui/table.d.ts +59 -0
  237. package/dist/components/ui/table.js +178 -0
  238. package/dist/components/ui/table.js.map +1 -0
  239. package/dist/components/ui/tabs.cjs +140 -0
  240. package/dist/components/ui/tabs.cjs.map +1 -0
  241. package/dist/components/ui/tabs.d.cts +21 -0
  242. package/dist/components/ui/tabs.d.ts +21 -0
  243. package/dist/components/ui/tabs.js +115 -0
  244. package/dist/components/ui/tabs.js.map +1 -0
  245. package/dist/components/ui/textarea.cjs +56 -0
  246. package/dist/components/ui/textarea.cjs.map +1 -0
  247. package/dist/components/ui/textarea.d.cts +5 -0
  248. package/dist/components/ui/textarea.d.ts +5 -0
  249. package/dist/components/ui/textarea.js +34 -0
  250. package/dist/components/ui/textarea.js.map +1 -0
  251. package/dist/components/ui/toggle-group.cjs +123 -0
  252. package/dist/components/ui/toggle-group.cjs.map +1 -0
  253. package/dist/components/ui/toggle-group.d.cts +7 -0
  254. package/dist/components/ui/toggle-group.d.ts +7 -0
  255. package/dist/components/ui/toggle-group.js +99 -0
  256. package/dist/components/ui/toggle-group.js.map +1 -0
  257. package/dist/components/ui/tooltip.cjs +77 -18
  258. package/dist/components/ui/tooltip.cjs.map +1 -1
  259. package/dist/components/ui/tooltip.js +56 -2
  260. package/dist/components/ui/tooltip.js.map +1 -1
  261. package/dist/{concept-card-RwPbqJ06.d.cts → concept-card-BXra9mr0.d.cts} +2 -2
  262. package/dist/{concept-card-CcOBb2Nz.d.ts → concept-card-BoJ5gIJD.d.ts} +2 -2
  263. package/dist/hooks/use-hotkey-registry.cjs +201 -14
  264. package/dist/hooks/use-hotkey-registry.cjs.map +1 -1
  265. package/dist/hooks/use-hotkey-registry.js +182 -2
  266. package/dist/hooks/use-hotkey-registry.js.map +1 -1
  267. package/dist/hooks/use-hotkeys.cjs +144 -9
  268. package/dist/hooks/use-hotkeys.cjs.map +1 -1
  269. package/dist/hooks/use-hotkeys.js +126 -1
  270. package/dist/hooks/use-hotkeys.js.map +1 -1
  271. package/dist/{i18n-CAd9wGOr.d.cts → i18n-BfRhV5aw.d.cts} +5 -3
  272. package/dist/{i18n-ArS3mqj0.d.ts → i18n-ewyqbKM-.d.ts} +5 -3
  273. package/dist/index.cjs +20906 -15706
  274. package/dist/index.cjs.map +1 -1
  275. package/dist/index.css +396 -69
  276. package/dist/index.d.cts +49 -490
  277. package/dist/index.d.ts +49 -490
  278. package/dist/index.js +7704 -2032
  279. package/dist/index.js.map +1 -1
  280. package/dist/{page-card-CmShVqG-.d.cts → page-card-C9XXXOVr.d.cts} +3 -20
  281. package/dist/{page-card-HBn-cy4J.d.ts → page-card-DAnbez_f.d.ts} +3 -20
  282. package/dist/toggle-group-B8r4LOQw.d.cts +26 -0
  283. package/dist/toggle-group-B8r4LOQw.d.ts +26 -0
  284. package/package.json +132 -2
  285. package/tailwind.config.ts +45 -0
  286. package/dist/chunk-2ACKKPWA.cjs +0 -112
  287. package/dist/chunk-2ACKKPWA.cjs.map +0 -1
  288. package/dist/chunk-2UD3LGVX.cjs +0 -316
  289. package/dist/chunk-2UD3LGVX.cjs.map +0 -1
  290. package/dist/chunk-3QYYPPFJ.js.map +0 -1
  291. package/dist/chunk-4SVQNEVH.js +0 -173
  292. package/dist/chunk-4SVQNEVH.js.map +0 -1
  293. package/dist/chunk-4WONHORR.cjs +0 -152
  294. package/dist/chunk-4WONHORR.cjs.map +0 -1
  295. package/dist/chunk-5HCXH6GS.js +0 -409
  296. package/dist/chunk-5HCXH6GS.js.map +0 -1
  297. package/dist/chunk-5JJSRGJD.js.map +0 -1
  298. package/dist/chunk-5K6E4ZSW.cjs +0 -77
  299. package/dist/chunk-5K6E4ZSW.cjs.map +0 -1
  300. package/dist/chunk-5NY26ULO.js +0 -89
  301. package/dist/chunk-5NY26ULO.js.map +0 -1
  302. package/dist/chunk-7RVPG3LE.cjs +0 -231
  303. package/dist/chunk-7RVPG3LE.cjs.map +0 -1
  304. package/dist/chunk-AYEK3WOM.js +0 -207
  305. package/dist/chunk-AYEK3WOM.js.map +0 -1
  306. package/dist/chunk-BRMBLIQG.js +0 -53
  307. package/dist/chunk-BRMBLIQG.js.map +0 -1
  308. package/dist/chunk-CAJKSTXX.cjs.map +0 -1
  309. package/dist/chunk-CKFWMHQU.js +0 -401
  310. package/dist/chunk-CKFWMHQU.js.map +0 -1
  311. package/dist/chunk-CV3N3HVK.js +0 -672
  312. package/dist/chunk-CV3N3HVK.js.map +0 -1
  313. package/dist/chunk-D2EBLE2B.cjs.map +0 -1
  314. package/dist/chunk-GCZ6YATL.js +0 -940
  315. package/dist/chunk-GCZ6YATL.js.map +0 -1
  316. package/dist/chunk-GKRAZGDI.cjs +0 -84
  317. package/dist/chunk-GKRAZGDI.cjs.map +0 -1
  318. package/dist/chunk-GPYJ66CG.js +0 -45
  319. package/dist/chunk-GPYJ66CG.js.map +0 -1
  320. package/dist/chunk-HF6XU5NI.js +0 -84
  321. package/dist/chunk-HF6XU5NI.js.map +0 -1
  322. package/dist/chunk-HJPDZOMJ.cjs +0 -87
  323. package/dist/chunk-HJPDZOMJ.cjs.map +0 -1
  324. package/dist/chunk-HS3XI3CC.cjs +0 -69
  325. package/dist/chunk-HS3XI3CC.cjs.map +0 -1
  326. package/dist/chunk-HUCC3QH5.cjs +0 -53
  327. package/dist/chunk-HUCC3QH5.cjs.map +0 -1
  328. package/dist/chunk-HYZ6BQPS.cjs +0 -425
  329. package/dist/chunk-HYZ6BQPS.cjs.map +0 -1
  330. package/dist/chunk-ISCSZMYW.cjs +0 -106
  331. package/dist/chunk-ISCSZMYW.cjs.map +0 -1
  332. package/dist/chunk-IXFEFIDO.js +0 -82
  333. package/dist/chunk-IXFEFIDO.js.map +0 -1
  334. package/dist/chunk-JCJLN437.js +0 -108
  335. package/dist/chunk-JCJLN437.js.map +0 -1
  336. package/dist/chunk-JMKNNH63.cjs +0 -982
  337. package/dist/chunk-JMKNNH63.cjs.map +0 -1
  338. package/dist/chunk-JUBHQAA2.js +0 -53
  339. package/dist/chunk-JUBHQAA2.js.map +0 -1
  340. package/dist/chunk-K6G63EED.cjs +0 -41
  341. package/dist/chunk-K6G63EED.cjs.map +0 -1
  342. package/dist/chunk-KCWRCSI7.js +0 -62
  343. package/dist/chunk-KCWRCSI7.js.map +0 -1
  344. package/dist/chunk-KYM7NIJO.cjs +0 -433
  345. package/dist/chunk-KYM7NIJO.cjs.map +0 -1
  346. package/dist/chunk-L2L5CKC2.js +0 -291
  347. package/dist/chunk-L2L5CKC2.js.map +0 -1
  348. package/dist/chunk-M5CHZ5BA.js +0 -124
  349. package/dist/chunk-M5CHZ5BA.js.map +0 -1
  350. package/dist/chunk-MEK4RSGC.js +0 -65
  351. package/dist/chunk-MEK4RSGC.js.map +0 -1
  352. package/dist/chunk-MEKWH3GS.js +0 -89
  353. package/dist/chunk-MEKWH3GS.js.map +0 -1
  354. package/dist/chunk-MFTX2DDQ.js +0 -27
  355. package/dist/chunk-MFTX2DDQ.js.map +0 -1
  356. package/dist/chunk-MMC6M35Q.cjs.map +0 -1
  357. package/dist/chunk-NMH43BDC.js +0 -130
  358. package/dist/chunk-NMH43BDC.js.map +0 -1
  359. package/dist/chunk-NORDUD2T.cjs +0 -135
  360. package/dist/chunk-NORDUD2T.cjs.map +0 -1
  361. package/dist/chunk-NV4JOKWL.cjs +0 -197
  362. package/dist/chunk-NV4JOKWL.cjs.map +0 -1
  363. package/dist/chunk-O2JG7WY5.cjs +0 -121
  364. package/dist/chunk-O2JG7WY5.cjs.map +0 -1
  365. package/dist/chunk-ONO2FTV4.cjs +0 -68
  366. package/dist/chunk-ONO2FTV4.cjs.map +0 -1
  367. package/dist/chunk-OQB6HIUL.cjs +0 -108
  368. package/dist/chunk-OQB6HIUL.cjs.map +0 -1
  369. package/dist/chunk-OS6CMYAS.cjs +0 -79
  370. package/dist/chunk-OS6CMYAS.cjs.map +0 -1
  371. package/dist/chunk-PYURPUTV.js +0 -402
  372. package/dist/chunk-PYURPUTV.js.map +0 -1
  373. package/dist/chunk-RJ3HYZ7S.js +0 -44
  374. package/dist/chunk-RJ3HYZ7S.js.map +0 -1
  375. package/dist/chunk-RZNRIOLT.js +0 -128
  376. package/dist/chunk-RZNRIOLT.js.map +0 -1
  377. package/dist/chunk-S3T2L6NA.js +0 -38
  378. package/dist/chunk-S3T2L6NA.js.map +0 -1
  379. package/dist/chunk-S5IPJQZ3.cjs +0 -161
  380. package/dist/chunk-S5IPJQZ3.cjs.map +0 -1
  381. package/dist/chunk-SB5DSYR5.js.map +0 -1
  382. package/dist/chunk-SFXV2DUH.js +0 -106
  383. package/dist/chunk-SFXV2DUH.js.map +0 -1
  384. package/dist/chunk-SXEPGD4Z.cjs +0 -152
  385. package/dist/chunk-SXEPGD4Z.cjs.map +0 -1
  386. package/dist/chunk-SXWSOU3Y.js +0 -89
  387. package/dist/chunk-SXWSOU3Y.js.map +0 -1
  388. package/dist/chunk-SZMVOHT7.cjs +0 -107
  389. package/dist/chunk-SZMVOHT7.cjs.map +0 -1
  390. package/dist/chunk-TWJXOV4C.js +0 -145
  391. package/dist/chunk-TWJXOV4C.js.map +0 -1
  392. package/dist/chunk-U3ADRIVO.cjs +0 -434
  393. package/dist/chunk-U3ADRIVO.cjs.map +0 -1
  394. package/dist/chunk-U5FLLCGC.cjs +0 -151
  395. package/dist/chunk-U5FLLCGC.cjs.map +0 -1
  396. package/dist/chunk-UOZN45G4.cjs +0 -130
  397. package/dist/chunk-UOZN45G4.cjs.map +0 -1
  398. package/dist/chunk-VHLDOG74.cjs +0 -167
  399. package/dist/chunk-VHLDOG74.cjs.map +0 -1
  400. package/dist/chunk-YC5KLN6I.js +0 -139
  401. package/dist/chunk-YC5KLN6I.js.map +0 -1
  402. package/dist/chunk-YENXXYUV.cjs +0 -111
  403. package/dist/chunk-YENXXYUV.cjs.map +0 -1
  404. package/dist/chunk-YFQWC2PW.js +0 -113
  405. package/dist/chunk-YFQWC2PW.js.map +0 -1
  406. package/dist/chunk-Z2TY4A75.cjs +0 -700
  407. package/dist/chunk-Z2TY4A75.cjs.map +0 -1
  408. package/dist/chunk-Z56O7UEU.cjs +0 -136
  409. package/dist/chunk-Z56O7UEU.cjs.map +0 -1
  410. package/dist/chunk-ZBZDR4ZC.js +0 -106
  411. package/dist/chunk-ZBZDR4ZC.js.map +0 -1
@@ -1,6 +1,571 @@
1
- export { PartoLineChart } from '../../chunk-YFQWC2PW.js';
2
- import '../../chunk-PYURPUTV.js';
3
- import '../../chunk-SB5DSYR5.js';
4
- import '../../chunk-4SVQNEVH.js';
1
+ 'use client';
2
+ import * as React2 from 'react';
3
+ import { useState, useEffect, useMemo } from 'react';
4
+ import { ResponsiveContainer, LineChart, CartesianGrid, XAxis, YAxis, Tooltip, Line } from 'recharts';
5
+ import { cva } from 'class-variance-authority';
6
+ import { clsx } from 'clsx';
7
+ import { twMerge } from 'tailwind-merge';
8
+ import { jsx, jsxs } from 'react/jsx-runtime';
9
+
10
+ function useRootStyles() {
11
+ const [version, setVersion] = useState(0);
12
+ useEffect(() => {
13
+ if (typeof window === "undefined" || !document?.documentElement) {
14
+ return;
15
+ }
16
+ const target = document.documentElement;
17
+ const observer = new MutationObserver(() => {
18
+ setVersion((prev) => prev + 1);
19
+ });
20
+ observer.observe(target, {
21
+ attributes: true,
22
+ attributeFilter: ["class", "data-theme"]
23
+ });
24
+ const media = window.matchMedia("(prefers-color-scheme: dark)");
25
+ const mediaHandler = () => setVersion((prev) => prev + 1);
26
+ media.addEventListener("change", mediaHandler);
27
+ return () => {
28
+ observer.disconnect();
29
+ media.removeEventListener("change", mediaHandler);
30
+ };
31
+ }, []);
32
+ return useMemo(() => {
33
+ if (typeof window === "undefined" || !document?.documentElement) {
34
+ return null;
35
+ }
36
+ return getComputedStyle(document.documentElement);
37
+ }, [version]);
38
+ }
39
+
40
+ // src/lib/theme.ts
41
+ var COLOR_VALUE_REGEX = /^(#|rgb|hsl|oklch)/i;
42
+ function resolveCssColor(styles, variable, fallback) {
43
+ if (!styles) return fallback;
44
+ const raw = styles.getPropertyValue(variable).trim();
45
+ if (!raw) return fallback;
46
+ if (COLOR_VALUE_REGEX.test(raw)) return raw;
47
+ if (raw.includes("%")) return `hsl(${raw})`;
48
+ return raw;
49
+ }
50
+
51
+ // src/hooks/use-chart-theme.ts
52
+ var FALLBACKS = {
53
+ foregroundMuted: "hsl(0 0% 50%)",
54
+ border: "hsl(0 0% 22%)",
55
+ popover: "hsl(0 0% 10%)",
56
+ popoverForeground: "hsl(0 0% 98%)",
57
+ chart1: "hsl(155 65% 38%)",
58
+ chart2: "hsl(198 50% 48%)",
59
+ chart3: "hsl(240 40% 54%)",
60
+ chart4: "hsl(310 38% 52%)",
61
+ chart5: "hsl(355 45% 52%)",
62
+ chart6: "hsl(35 52% 48%)",
63
+ chart7: "hsl(75 38% 46%)",
64
+ chart8: "hsl(118 35% 46%)"
65
+ };
66
+ var CHART_FONT_FAMILY = "Yekan Bakh, system-ui, -apple-system, sans-serif";
67
+ function useChartTheme() {
68
+ const styles = useRootStyles();
69
+ return React2.useMemo(() => {
70
+ const getColor = (variable, fallback) => resolveCssColor(styles, variable, fallback);
71
+ const chartColors = [
72
+ getColor("--chart-1", FALLBACKS.chart1),
73
+ getColor("--chart-2", FALLBACKS.chart2),
74
+ getColor("--chart-3", FALLBACKS.chart3),
75
+ getColor("--chart-4", FALLBACKS.chart4),
76
+ getColor("--chart-5", FALLBACKS.chart5),
77
+ getColor("--chart-6", FALLBACKS.chart6),
78
+ getColor("--chart-7", FALLBACKS.chart7),
79
+ getColor("--chart-8", FALLBACKS.chart8)
80
+ ];
81
+ const axisTickStyle = {
82
+ fontFamily: CHART_FONT_FAMILY,
83
+ fill: getColor("--foreground-lighter", FALLBACKS.foregroundMuted),
84
+ fontSize: 11,
85
+ fontWeight: 400
86
+ };
87
+ const gridStyle = {
88
+ stroke: getColor("--border", FALLBACKS.border),
89
+ strokeDasharray: "3 3",
90
+ strokeOpacity: 0.15
91
+ };
92
+ const tooltipStyle = {
93
+ fontFamily: CHART_FONT_FAMILY,
94
+ background: getColor("--background-overlay-default", FALLBACKS.popover),
95
+ color: getColor("--foreground-default", FALLBACKS.popoverForeground),
96
+ fontSize: 12,
97
+ lineHeight: "1.5",
98
+ borderRadius: "10px",
99
+ border: `1px solid ${getColor("--border-muted", FALLBACKS.border)}`,
100
+ boxShadow: "0 4px 24px -4px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06)",
101
+ padding: "10px 14px",
102
+ backdropFilter: "blur(8px)",
103
+ WebkitBackdropFilter: "blur(8px)"
104
+ };
105
+ const crosshairStyle = {
106
+ stroke: getColor("--foreground-muted", FALLBACKS.foregroundMuted),
107
+ strokeWidth: 1,
108
+ strokeDasharray: "4 4",
109
+ strokeOpacity: 0.5
110
+ };
111
+ return {
112
+ chartColors,
113
+ getColor,
114
+ fontFamily: CHART_FONT_FAMILY,
115
+ axisTickStyle,
116
+ gridStyle,
117
+ tooltipStyle,
118
+ crosshairStyle
119
+ };
120
+ }, [styles]);
121
+ }
122
+ function cn(...inputs) {
123
+ return twMerge(clsx(inputs));
124
+ }
125
+ function convertToLocalNumbers(text, locale) {
126
+ if (locale === "fa" || locale === "ar") {
127
+ const persianDigits = ["\u06F0", "\u06F1", "\u06F2", "\u06F3", "\u06F4", "\u06F5", "\u06F6", "\u06F7", "\u06F8", "\u06F9"];
128
+ return String(text).replace(/\d/g, (digit) => persianDigits[parseInt(digit)]);
129
+ }
130
+ return String(text);
131
+ }
132
+ function formatLargeNumber(num, locale) {
133
+ if (num >= 1e9) {
134
+ const formatted = (num / 1e9).toFixed(1).replace(/\.0$/, "");
135
+ return convertToLocalNumbers(formatted, locale) + (locale === "en" ? "B" : " \u0645\u06CC\u0644\u06CC\u0627\u0631\u062F");
136
+ }
137
+ if (num >= 1e6) {
138
+ const formatted = (num / 1e6).toFixed(1).replace(/\.0$/, "");
139
+ return convertToLocalNumbers(formatted, locale) + (locale === "en" ? "M" : " \u0645\u06CC\u0644\u06CC\u0648\u0646");
140
+ }
141
+ if (num >= 1e3) {
142
+ const formatted = (num / 1e3).toFixed(1).replace(/\.0$/, "");
143
+ return convertToLocalNumbers(formatted, locale) + (locale === "en" ? "K" : " \u0647\u0632\u0627\u0631");
144
+ }
145
+ return convertToLocalNumbers(num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","), locale);
146
+ }
147
+ var skeletonVariants = cva("bg-accent animate-pulse", {
148
+ variants: {
149
+ shape: {
150
+ rect: "rounded-md",
151
+ line: "rounded-full h-4 w-full",
152
+ circle: "rounded-full",
153
+ text: "rounded h-4"
154
+ },
155
+ size: {
156
+ sm: "",
157
+ md: "",
158
+ lg: ""
159
+ }
160
+ },
161
+ compoundVariants: [
162
+ { shape: "circle", size: "sm", class: "size-8" },
163
+ { shape: "circle", size: "md", class: "size-10" },
164
+ { shape: "circle", size: "lg", class: "size-14" }
165
+ ],
166
+ defaultVariants: {
167
+ shape: "rect",
168
+ size: "md"
169
+ }
170
+ });
171
+ function Skeleton({ className, shape, size, count, ...props }) {
172
+ if (count && count > 1) {
173
+ return /* @__PURE__ */ jsx("div", { role: "status", "aria-busy": "true", "aria-label": "Loading", className: "space-y-2", children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ jsx(
174
+ "div",
175
+ {
176
+ "data-slot": "skeleton",
177
+ "aria-hidden": "true",
178
+ className: cn(skeletonVariants({ shape, size }), className)
179
+ },
180
+ i
181
+ )) });
182
+ }
183
+ return /* @__PURE__ */ jsx(
184
+ "div",
185
+ {
186
+ "data-slot": "skeleton",
187
+ role: "status",
188
+ "aria-busy": "true",
189
+ "aria-label": "Loading",
190
+ ...props,
191
+ className: cn(skeletonVariants({ shape, size }), className)
192
+ }
193
+ );
194
+ }
195
+ Skeleton.displayName = "Skeleton";
196
+ var ChartContainer = React2.forwardRef(
197
+ ({ className, dataSlot, ariaLabel, children }, ref) => /* @__PURE__ */ jsx(
198
+ "div",
199
+ {
200
+ ref,
201
+ className,
202
+ dir: "ltr",
203
+ "data-slot": dataSlot,
204
+ role: "img",
205
+ "aria-label": ariaLabel ?? "\u0646\u0645\u0648\u062F\u0627\u0631",
206
+ style: { position: "relative", width: "100%", height: "100%" },
207
+ children
208
+ }
209
+ )
210
+ );
211
+ ChartContainer.displayName = "ChartContainer";
212
+ function ChartLoadingSkeleton({ className, shape = "rect" }) {
213
+ return /* @__PURE__ */ jsx(
214
+ "div",
215
+ {
216
+ "data-slot": "chart-loading-skeleton",
217
+ className,
218
+ dir: "ltr",
219
+ style: { position: "relative", width: "100%", height: "100%" },
220
+ role: "status",
221
+ "aria-label": "Loading chart",
222
+ children: /* @__PURE__ */ jsx(
223
+ Skeleton,
224
+ {
225
+ shape,
226
+ className: shape === "circle" ? "w-full h-full min-h-[200px] aspect-square mx-auto" : "w-full h-full min-h-[200px]"
227
+ }
228
+ )
229
+ }
230
+ );
231
+ }
232
+ var LOCALE_TO_BCP47 = {
233
+ fa: "fa-IR",
234
+ ar: "ar",
235
+ en: "en-US"
236
+ };
237
+ function ChartTooltip({ active, payload, label, tooltipStyle, formatter, locale = "fa" }) {
238
+ if (!active || !payload?.length) return null;
239
+ const bcp47 = LOCALE_TO_BCP47[locale] ?? "fa-IR";
240
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "chart-tooltip", style: tooltipStyle, children: [
241
+ label && /* @__PURE__ */ jsx("div", { style: { fontWeight: 500, fontSize: 13, marginBottom: 6 }, children: label }),
242
+ payload.map((entry, i) => /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: 8, marginTop: i > 0 ? 4 : 0 }, children: [
243
+ /* @__PURE__ */ jsx(
244
+ "div",
245
+ {
246
+ style: {
247
+ width: 10,
248
+ height: 10,
249
+ borderRadius: 2,
250
+ backgroundColor: entry.color,
251
+ flexShrink: 0
252
+ }
253
+ }
254
+ ),
255
+ formatter ? formatter(entry.name, entry.value) : /* @__PURE__ */ jsxs("span", { style: { display: "flex", justifyContent: "space-between", width: "100%", gap: 16 }, children: [
256
+ /* @__PURE__ */ jsx("span", { style: { opacity: 0.7 }, children: entry.name }),
257
+ /* @__PURE__ */ jsx("span", { style: { fontWeight: 600, fontVariantNumeric: "tabular-nums" }, children: typeof entry.value === "number" ? entry.value.toLocaleString(bcp47) : entry.value })
258
+ ] })
259
+ ] }, i))
260
+ ] });
261
+ }
262
+ function localeAwareNumberTick(locale) {
263
+ return (value) => {
264
+ if (typeof value === "number") return formatLargeNumber(value, locale);
265
+ if (typeof value === "string") {
266
+ if (/^-?\d+(\.\d+)?$/.test(value)) return convertToLocalNumbers(value, locale);
267
+ return value;
268
+ }
269
+ return String(value ?? "");
270
+ };
271
+ }
272
+ function localeAwareCategoryTick(locale) {
273
+ return (value) => convertToLocalNumbers(String(value ?? ""), locale);
274
+ }
275
+ var PATTERN_DASHARRAY = {
276
+ solid: void 0,
277
+ dashed: "4 3",
278
+ dotted: "1 3",
279
+ "dash-dot": "4 2 1 2"
280
+ };
281
+ var ChartLegend = React2.forwardRef(
282
+ ({ className, items, orientation = "horizontal", swatchSize = 10, ...props }, ref) => {
283
+ const isVertical = orientation === "vertical";
284
+ return /* @__PURE__ */ jsx(
285
+ "div",
286
+ {
287
+ ref,
288
+ "data-slot": "chart-legend",
289
+ "data-orientation": orientation,
290
+ className,
291
+ style: {
292
+ display: "flex",
293
+ flexWrap: isVertical ? "nowrap" : "wrap",
294
+ flexDirection: isVertical ? "column" : "row",
295
+ gap: isVertical ? "6px" : "12px 16px",
296
+ fontSize: 12,
297
+ color: "hsl(var(--foreground-light))"
298
+ },
299
+ role: "list",
300
+ ...props,
301
+ children: items.map((item) => /* @__PURE__ */ jsxs(
302
+ "div",
303
+ {
304
+ role: "listitem",
305
+ "data-slot": "chart-legend-item",
306
+ style: { display: "inline-flex", alignItems: "center", gap: 6, lineHeight: 1.2 },
307
+ children: [
308
+ /* @__PURE__ */ jsx(
309
+ ChartLegendSwatch,
310
+ {
311
+ color: item.color,
312
+ shape: item.shape ?? "dot",
313
+ pattern: item.pattern ?? "solid",
314
+ size: swatchSize
315
+ }
316
+ ),
317
+ /* @__PURE__ */ jsx("span", { style: { fontWeight: 500 }, children: item.label }),
318
+ item.value !== void 0 && /* @__PURE__ */ jsx(
319
+ "span",
320
+ {
321
+ style: { marginInlineStart: 4, fontVariantNumeric: "tabular-nums", opacity: 0.7 },
322
+ "data-slot": "chart-legend-value",
323
+ children: item.value
324
+ }
325
+ )
326
+ ]
327
+ },
328
+ item.key
329
+ ))
330
+ }
331
+ );
332
+ }
333
+ );
334
+ ChartLegend.displayName = "ChartLegend";
335
+ function ChartLegendSwatch({
336
+ color,
337
+ shape,
338
+ pattern,
339
+ size
340
+ }) {
341
+ if (shape === "dot") {
342
+ return /* @__PURE__ */ jsx(
343
+ "span",
344
+ {
345
+ "aria-hidden": "true",
346
+ style: {
347
+ display: "inline-block",
348
+ width: size,
349
+ height: size,
350
+ borderRadius: "50%",
351
+ backgroundColor: color,
352
+ flexShrink: 0
353
+ }
354
+ }
355
+ );
356
+ }
357
+ if (shape === "bar") {
358
+ return /* @__PURE__ */ jsx(
359
+ "span",
360
+ {
361
+ "aria-hidden": "true",
362
+ style: {
363
+ display: "inline-block",
364
+ width: size + 4,
365
+ height: Math.max(3, Math.round(size / 2.5)),
366
+ borderRadius: 2,
367
+ backgroundColor: color,
368
+ flexShrink: 0
369
+ }
370
+ }
371
+ );
372
+ }
373
+ return /* @__PURE__ */ jsx(
374
+ "svg",
375
+ {
376
+ "aria-hidden": "true",
377
+ width: size + 8,
378
+ height: Math.max(8, Math.round(size / 1.5)),
379
+ viewBox: `0 0 ${size + 8} ${Math.max(8, Math.round(size / 1.5))}`,
380
+ style: { flexShrink: 0 },
381
+ children: /* @__PURE__ */ jsx(
382
+ "line",
383
+ {
384
+ x1: 1,
385
+ y1: Math.max(8, Math.round(size / 1.5)) / 2,
386
+ x2: size + 7,
387
+ y2: Math.max(8, Math.round(size / 1.5)) / 2,
388
+ stroke: color,
389
+ strokeWidth: 2,
390
+ strokeLinecap: "round",
391
+ strokeDasharray: PATTERN_DASHARRAY[pattern]
392
+ }
393
+ )
394
+ }
395
+ );
396
+ }
397
+ var ChartGradientLegend = React2.forwardRef(
398
+ ({
399
+ className,
400
+ startColor,
401
+ endColor,
402
+ startLabel,
403
+ endLabel,
404
+ caption,
405
+ width = 160,
406
+ height = 8,
407
+ "aria-label": ariaLabelProp,
408
+ ...props
409
+ }, ref) => {
410
+ const ariaLabel = ariaLabelProp ?? (typeof startLabel === "string" && typeof endLabel === "string" ? `${startLabel} \u062A\u0627 ${endLabel}` : "\u0645\u0642\u06CC\u0627\u0633 \u0631\u0646\u06AF");
411
+ return /* @__PURE__ */ jsxs(
412
+ "div",
413
+ {
414
+ ref,
415
+ "data-slot": "chart-gradient-legend",
416
+ className,
417
+ role: "img",
418
+ "aria-label": ariaLabel,
419
+ style: {
420
+ display: "inline-flex",
421
+ flexDirection: "column",
422
+ gap: 4,
423
+ fontSize: 12,
424
+ color: "hsl(var(--foreground-light))"
425
+ },
426
+ ...props,
427
+ children: [
428
+ caption && /* @__PURE__ */ jsx("div", { "data-slot": "chart-gradient-legend-caption", style: { fontWeight: 500 }, children: caption }),
429
+ /* @__PURE__ */ jsx(
430
+ "div",
431
+ {
432
+ "data-slot": "chart-gradient-legend-bar",
433
+ "aria-hidden": "true",
434
+ style: {
435
+ width,
436
+ height,
437
+ borderRadius: height / 2,
438
+ background: `linear-gradient(to right, ${startColor}, ${endColor})`
439
+ }
440
+ }
441
+ ),
442
+ (startLabel !== void 0 || endLabel !== void 0) && /* @__PURE__ */ jsxs(
443
+ "div",
444
+ {
445
+ style: {
446
+ display: "flex",
447
+ justifyContent: "space-between",
448
+ width,
449
+ fontVariantNumeric: "tabular-nums",
450
+ opacity: 0.85
451
+ },
452
+ children: [
453
+ /* @__PURE__ */ jsx("span", { "data-slot": "chart-gradient-legend-start", children: startLabel }),
454
+ /* @__PURE__ */ jsx("span", { "data-slot": "chart-gradient-legend-end", children: endLabel })
455
+ ]
456
+ }
457
+ )
458
+ ]
459
+ }
460
+ );
461
+ }
462
+ );
463
+ ChartGradientLegend.displayName = "ChartGradientLegend";
464
+ var SERIES_PATTERNS = ["solid", "dashed", "dotted", "dash-dot"];
465
+ var SERIES_DASHARRAY = {
466
+ solid: void 0,
467
+ dashed: "6 4",
468
+ dotted: "2 4",
469
+ "dash-dot": "6 3 2 3"
470
+ };
471
+ var PartoLineChart = React2.forwardRef(function PartoLineChart2({
472
+ data,
473
+ dataKeys,
474
+ xAxisKey = "name",
475
+ curve = "monotone",
476
+ strokeWidth = 2.5,
477
+ showDots = false,
478
+ enableGridY = true,
479
+ enableGridX = false,
480
+ margin = { top: 20, right: 20, bottom: 50, left: 50 },
481
+ axisBottom,
482
+ axisLeft,
483
+ tooltipFormatter,
484
+ locale = "fa",
485
+ className,
486
+ isLoading = false,
487
+ ariaLabel,
488
+ chartProps,
489
+ legend = false
490
+ }, ref) {
491
+ const { chartColors, axisTickStyle, gridStyle, tooltipStyle, crosshairStyle } = useChartTheme();
492
+ const defaultXTick = React2.useMemo(() => localeAwareCategoryTick(locale), [locale]);
493
+ const defaultYTick = React2.useMemo(() => localeAwareNumberTick(locale), [locale]);
494
+ if (isLoading) {
495
+ return /* @__PURE__ */ jsx(ChartLoadingSkeleton, { className });
496
+ }
497
+ const usePatterns = legend === "patterns";
498
+ const seriesPattern = (i) => SERIES_PATTERNS[i % SERIES_PATTERNS.length];
499
+ const legendItems = legend ? dataKeys.map((key, i) => ({
500
+ key,
501
+ label: key,
502
+ color: chartColors[i % chartColors.length],
503
+ shape: "line",
504
+ pattern: usePatterns ? seriesPattern(i) : "solid"
505
+ })) : [];
506
+ return /* @__PURE__ */ jsx(ChartContainer, { ref, className, dataSlot: "line-chart", ariaLabel, children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", width: "100%", height: "100%" }, children: [
507
+ /* @__PURE__ */ jsx("div", { style: { flex: 1, minHeight: 0 }, children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(LineChart, { data, margin, ...chartProps, children: [
508
+ (enableGridX || enableGridY) && /* @__PURE__ */ jsx(
509
+ CartesianGrid,
510
+ {
511
+ horizontal: enableGridY,
512
+ vertical: enableGridX,
513
+ stroke: gridStyle.stroke,
514
+ strokeDasharray: gridStyle.strokeDasharray,
515
+ strokeOpacity: gridStyle.strokeOpacity
516
+ }
517
+ ),
518
+ axisBottom !== null && /* @__PURE__ */ jsx(
519
+ XAxis,
520
+ {
521
+ dataKey: xAxisKey,
522
+ tick: axisTickStyle,
523
+ tickLine: false,
524
+ axisLine: false,
525
+ tickMargin: 12,
526
+ tickFormatter: defaultXTick,
527
+ ...axisBottom
528
+ }
529
+ ),
530
+ axisLeft !== null && /* @__PURE__ */ jsx(
531
+ YAxis,
532
+ {
533
+ tick: axisTickStyle,
534
+ tickLine: false,
535
+ axisLine: false,
536
+ tickMargin: 12,
537
+ tickFormatter: defaultYTick,
538
+ ...axisLeft
539
+ }
540
+ ),
541
+ /* @__PURE__ */ jsx(
542
+ Tooltip,
543
+ {
544
+ cursor: crosshairStyle,
545
+ content: /* @__PURE__ */ jsx(ChartTooltip, { tooltipStyle, formatter: tooltipFormatter, locale })
546
+ }
547
+ ),
548
+ dataKeys.map((key, i) => /* @__PURE__ */ jsx(
549
+ Line,
550
+ {
551
+ type: curve,
552
+ dataKey: key,
553
+ stroke: chartColors[i % chartColors.length],
554
+ strokeWidth,
555
+ strokeDasharray: usePatterns ? SERIES_DASHARRAY[seriesPattern(i)] : void 0,
556
+ dot: showDots,
557
+ activeDot: { r: 4, strokeWidth: 2 },
558
+ animationDuration: 800,
559
+ animationEasing: "ease-out"
560
+ },
561
+ key
562
+ ))
563
+ ] }) }) }),
564
+ legend && /* @__PURE__ */ jsx(ChartLegend, { items: legendItems, style: { paddingTop: 12 } })
565
+ ] }) });
566
+ });
567
+ PartoLineChart.displayName = "PartoLineChart";
568
+
569
+ export { PartoLineChart };
5
570
  //# sourceMappingURL=PartoLineChart.js.map
6
571
  //# sourceMappingURL=PartoLineChart.js.map