@alfalab/core-components-chart 3.4.16 → 4.0.0-snapshot-6a9d3fc

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 (716) hide show
  1. package/Component.d.ts +2 -4
  2. package/Component.js +23 -28
  3. package/Component.js.map +1 -0
  4. package/components/CustomizedLabel.d.ts +1 -3
  5. package/components/CustomizedLabel.js +3 -2
  6. package/components/CustomizedLabel.js.map +1 -0
  7. package/components/Dot/index.css +7 -8
  8. package/components/Dot/index.d.ts +2 -4
  9. package/components/Dot/index.js +8 -9
  10. package/components/Dot/index.js.map +1 -0
  11. package/components/Dot/index.module.css.js +8 -0
  12. package/components/Dot/index.module.css.js.map +1 -0
  13. package/components/Legends/index.css +9 -31
  14. package/components/Legends/index.d.ts +5 -6
  15. package/components/Legends/index.js +16 -17
  16. package/components/Legends/index.js.map +1 -0
  17. package/components/Legends/index.module.css.js +8 -0
  18. package/components/Legends/index.module.css.js.map +1 -0
  19. package/components/LinearGradient.d.ts +2 -4
  20. package/components/LinearGradient.js +1 -0
  21. package/components/LinearGradient.js.map +1 -0
  22. package/components/RectBar.d.ts +1 -2
  23. package/components/RectBar.js +3 -2
  24. package/components/RectBar.js.map +1 -0
  25. package/components/Tick/index.css +5 -27
  26. package/components/Tick/index.d.ts +2 -4
  27. package/components/Tick/index.js +5 -6
  28. package/components/Tick/index.js.map +1 -0
  29. package/components/Tick/index.module.css.js +8 -0
  30. package/components/Tick/index.module.css.js.map +1 -0
  31. package/components/TooltipContent/index.css +14 -33
  32. package/components/TooltipContent/index.d.ts +5 -7
  33. package/components/TooltipContent/index.js +10 -11
  34. package/components/TooltipContent/index.js.map +1 -0
  35. package/components/TooltipContent/index.module.css.js +8 -0
  36. package/components/TooltipContent/index.module.css.js.map +1 -0
  37. package/cssm/Component.d.ts +2 -4
  38. package/cssm/Component.js +19 -22
  39. package/cssm/Component.js.map +1 -0
  40. package/cssm/components/CustomizedLabel.d.ts +1 -3
  41. package/cssm/components/CustomizedLabel.js +3 -2
  42. package/cssm/components/CustomizedLabel.js.map +1 -0
  43. package/cssm/components/Dot/index.d.ts +2 -4
  44. package/cssm/components/Dot/index.js +3 -2
  45. package/cssm/components/Dot/index.js.map +1 -0
  46. package/cssm/components/Legends/index.d.ts +5 -6
  47. package/cssm/components/Legends/index.js +12 -11
  48. package/cssm/components/Legends/index.js.map +1 -0
  49. package/cssm/components/Legends/index.module.css +3 -24
  50. package/cssm/components/LinearGradient.d.ts +2 -4
  51. package/cssm/components/LinearGradient.js +1 -0
  52. package/cssm/components/LinearGradient.js.map +1 -0
  53. package/cssm/components/RectBar.d.ts +1 -2
  54. package/cssm/components/RectBar.js +3 -2
  55. package/cssm/components/RectBar.js.map +1 -0
  56. package/cssm/components/Tick/index.d.ts +2 -4
  57. package/cssm/components/Tick/index.js +1 -0
  58. package/cssm/components/Tick/index.js.map +1 -0
  59. package/cssm/components/Tick/index.module.css +3 -24
  60. package/cssm/components/TooltipContent/index.d.ts +5 -7
  61. package/cssm/components/TooltipContent/index.js +5 -4
  62. package/cssm/components/TooltipContent/index.js.map +1 -0
  63. package/cssm/components/TooltipContent/index.module.css +9 -27
  64. package/cssm/hoc/Customized.d.ts +2 -0
  65. package/cssm/hoc/Customized.js +18 -0
  66. package/cssm/hoc/Customized.js.map +1 -0
  67. package/cssm/hooks/usePathBar/index.d.ts +3 -4
  68. package/cssm/hooks/usePathBar/index.js +4 -3
  69. package/cssm/hooks/usePathBar/index.js.map +1 -0
  70. package/cssm/hooks/usePathBar/utils/getRadius.d.ts +1 -2
  71. package/cssm/hooks/usePathBar/utils/getRadius.js +1 -0
  72. package/cssm/hooks/usePathBar/utils/getRadius.js.map +1 -0
  73. package/cssm/hooks/useSettings/index.d.ts +5 -5
  74. package/cssm/hooks/useSettings/index.js +11 -10
  75. package/cssm/hooks/useSettings/index.js.map +1 -0
  76. package/cssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
  77. package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
  78. package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
  79. package/cssm/hooks/useSettings/utils/setDatas.d.ts +5 -5
  80. package/cssm/hooks/useSettings/utils/setDatas.js +1 -0
  81. package/cssm/hooks/useSettings/utils/setDatas.js.map +1 -0
  82. package/cssm/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
  83. package/cssm/hooks/useSettings/utils/setGradientCharts.js +1 -0
  84. package/cssm/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
  85. package/cssm/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
  86. package/cssm/hooks/useSettings/utils/setLegendMargin.js +1 -0
  87. package/cssm/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
  88. package/cssm/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
  89. package/cssm/hooks/useSettings/utils/sortByIndex.js +1 -0
  90. package/cssm/hooks/useSettings/utils/sortByIndex.js.map +1 -0
  91. package/cssm/icons/Circle.d.ts +3 -4
  92. package/cssm/icons/Circle.js +1 -0
  93. package/cssm/icons/Circle.js.map +1 -0
  94. package/cssm/icons/CircleLine.d.ts +3 -4
  95. package/cssm/icons/CircleLine.js +1 -0
  96. package/cssm/icons/CircleLine.js.map +1 -0
  97. package/cssm/icons/FilledCircle.d.ts +3 -4
  98. package/cssm/icons/FilledCircle.js +1 -0
  99. package/cssm/icons/FilledCircle.js.map +1 -0
  100. package/cssm/icons/Point.d.ts +3 -4
  101. package/cssm/icons/Point.js +1 -0
  102. package/cssm/icons/Point.js.map +1 -0
  103. package/cssm/icons/StrokeCircle.d.ts +3 -4
  104. package/cssm/icons/StrokeCircle.js +1 -0
  105. package/cssm/icons/StrokeCircle.js.map +1 -0
  106. package/cssm/index.d.ts +2 -2
  107. package/cssm/index.js +1 -0
  108. package/cssm/index.js.map +1 -0
  109. package/cssm/index.module.css +3 -24
  110. package/cssm/types/brush.types.d.ts +1 -2
  111. package/cssm/types/brush.types.js +1 -0
  112. package/cssm/types/brush.types.js.map +1 -0
  113. package/cssm/types/cartesianGrid.types.d.ts +1 -2
  114. package/cssm/types/cartesianGrid.types.js +1 -0
  115. package/cssm/types/cartesianGrid.types.js.map +1 -0
  116. package/cssm/types/chart.types.d.ts +7 -7
  117. package/cssm/types/chart.types.js +1 -0
  118. package/cssm/types/chart.types.js.map +1 -0
  119. package/cssm/types/composedChart.types.d.ts +1 -2
  120. package/cssm/types/composedChart.types.js +1 -0
  121. package/cssm/types/composedChart.types.js.map +1 -0
  122. package/cssm/types/index.d.ts +14 -14
  123. package/cssm/types/index.js +1 -0
  124. package/cssm/types/index.js.map +1 -0
  125. package/cssm/types/labelList.types.d.ts +1 -2
  126. package/cssm/types/labelList.types.js +1 -0
  127. package/cssm/types/labelList.types.js.map +1 -0
  128. package/cssm/types/legend.types.d.ts +1 -2
  129. package/cssm/types/legend.types.js +1 -0
  130. package/cssm/types/legend.types.js.map +1 -0
  131. package/cssm/types/options.types.d.ts +10 -12
  132. package/cssm/types/options.types.js +1 -0
  133. package/cssm/types/options.types.js.map +1 -0
  134. package/cssm/types/payload.types.d.ts +2 -3
  135. package/cssm/types/payload.types.js +1 -0
  136. package/cssm/types/payload.types.js.map +1 -0
  137. package/cssm/types/responsiveContainer.types.d.ts +1 -3
  138. package/cssm/types/responsiveContainer.types.js +1 -0
  139. package/cssm/types/responsiveContainer.types.js.map +1 -0
  140. package/cssm/types/seria.types.d.ts +6 -7
  141. package/cssm/types/seria.types.js +1 -0
  142. package/cssm/types/seria.types.js.map +1 -0
  143. package/cssm/types/tooltip.types.d.ts +1 -2
  144. package/cssm/types/tooltip.types.js +1 -0
  145. package/cssm/types/tooltip.types.js.map +1 -0
  146. package/cssm/types/utils/axis.types.d.ts +1 -2
  147. package/cssm/types/utils/axis.types.js +1 -0
  148. package/cssm/types/utils/axis.types.js.map +1 -0
  149. package/cssm/types/utils/coordinates.types.d.ts +1 -2
  150. package/cssm/types/utils/coordinates.types.js +1 -0
  151. package/cssm/types/utils/coordinates.types.js.map +1 -0
  152. package/cssm/types/utils/data.types.d.ts +3 -4
  153. package/cssm/types/utils/data.types.js +1 -0
  154. package/cssm/types/utils/data.types.js.map +1 -0
  155. package/cssm/types/utils/dot.types.d.ts +6 -7
  156. package/cssm/types/utils/dot.types.js +1 -0
  157. package/cssm/types/utils/dot.types.js.map +1 -0
  158. package/cssm/types/utils/gradient.types.d.ts +2 -3
  159. package/cssm/types/utils/gradient.types.js +1 -0
  160. package/cssm/types/utils/gradient.types.js.map +1 -0
  161. package/cssm/types/utils/index.d.ts +6 -7
  162. package/cssm/types/utils/index.js +1 -0
  163. package/cssm/types/utils/index.js.map +1 -0
  164. package/cssm/types/utils/tick.types.d.ts +2 -3
  165. package/cssm/types/utils/tick.types.js +1 -0
  166. package/cssm/types/utils/tick.types.js.map +1 -0
  167. package/cssm/types/xAxis.types.d.ts +2 -3
  168. package/cssm/types/xAxis.types.js +1 -0
  169. package/cssm/types/xAxis.types.js.map +1 -0
  170. package/cssm/types/yAxis.types.d.ts +2 -3
  171. package/cssm/types/yAxis.types.js +1 -0
  172. package/cssm/types/yAxis.types.js.map +1 -0
  173. package/esm/Component.d.ts +2 -4
  174. package/esm/Component.js +3 -8
  175. package/esm/Component.js.map +1 -0
  176. package/esm/components/CustomizedLabel.d.ts +1 -3
  177. package/esm/components/CustomizedLabel.js +1 -0
  178. package/esm/components/CustomizedLabel.js.map +1 -0
  179. package/esm/components/Dot/index.css +7 -8
  180. package/esm/components/Dot/index.d.ts +2 -4
  181. package/esm/components/Dot/index.js +2 -3
  182. package/esm/components/Dot/index.js.map +1 -0
  183. package/esm/components/Dot/index.module.css.js +6 -0
  184. package/esm/components/Dot/index.module.css.js.map +1 -0
  185. package/esm/components/Legends/index.css +9 -31
  186. package/esm/components/Legends/index.d.ts +5 -6
  187. package/esm/components/Legends/index.js +2 -3
  188. package/esm/components/Legends/index.js.map +1 -0
  189. package/esm/components/Legends/index.module.css.js +6 -0
  190. package/esm/components/Legends/index.module.css.js.map +1 -0
  191. package/esm/components/LinearGradient.d.ts +2 -4
  192. package/esm/components/LinearGradient.js +1 -0
  193. package/esm/components/LinearGradient.js.map +1 -0
  194. package/esm/components/RectBar.d.ts +1 -2
  195. package/esm/components/RectBar.js +1 -0
  196. package/esm/components/RectBar.js.map +1 -0
  197. package/esm/components/Tick/index.css +5 -27
  198. package/esm/components/Tick/index.d.ts +2 -4
  199. package/esm/components/Tick/index.js +2 -3
  200. package/esm/components/Tick/index.js.map +1 -0
  201. package/esm/components/Tick/index.module.css.js +6 -0
  202. package/esm/components/Tick/index.module.css.js.map +1 -0
  203. package/esm/components/TooltipContent/index.css +14 -33
  204. package/esm/components/TooltipContent/index.d.ts +5 -7
  205. package/esm/components/TooltipContent/index.js +2 -3
  206. package/esm/components/TooltipContent/index.js.map +1 -0
  207. package/esm/components/TooltipContent/index.module.css.js +6 -0
  208. package/esm/components/TooltipContent/index.module.css.js.map +1 -0
  209. package/esm/hoc/Customized.d.ts +2 -0
  210. package/esm/hoc/Customized.js +10 -0
  211. package/esm/hoc/Customized.js.map +1 -0
  212. package/esm/hooks/usePathBar/index.d.ts +3 -4
  213. package/esm/hooks/usePathBar/index.js +1 -0
  214. package/esm/hooks/usePathBar/index.js.map +1 -0
  215. package/esm/hooks/usePathBar/utils/getRadius.d.ts +1 -2
  216. package/esm/hooks/usePathBar/utils/getRadius.js +1 -0
  217. package/esm/hooks/usePathBar/utils/getRadius.js.map +1 -0
  218. package/esm/hooks/useSettings/index.d.ts +5 -5
  219. package/esm/hooks/useSettings/index.js +1 -0
  220. package/esm/hooks/useSettings/index.js.map +1 -0
  221. package/esm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
  222. package/esm/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
  223. package/esm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
  224. package/esm/hooks/useSettings/utils/setDatas.d.ts +5 -5
  225. package/esm/hooks/useSettings/utils/setDatas.js +1 -0
  226. package/esm/hooks/useSettings/utils/setDatas.js.map +1 -0
  227. package/esm/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
  228. package/esm/hooks/useSettings/utils/setGradientCharts.js +1 -0
  229. package/esm/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
  230. package/esm/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
  231. package/esm/hooks/useSettings/utils/setLegendMargin.js +1 -0
  232. package/esm/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
  233. package/esm/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
  234. package/esm/hooks/useSettings/utils/sortByIndex.js +1 -0
  235. package/esm/hooks/useSettings/utils/sortByIndex.js.map +1 -0
  236. package/esm/icons/Circle.d.ts +3 -4
  237. package/esm/icons/Circle.js +1 -0
  238. package/esm/icons/Circle.js.map +1 -0
  239. package/esm/icons/CircleLine.d.ts +3 -4
  240. package/esm/icons/CircleLine.js +1 -0
  241. package/esm/icons/CircleLine.js.map +1 -0
  242. package/esm/icons/FilledCircle.d.ts +3 -4
  243. package/esm/icons/FilledCircle.js +1 -0
  244. package/esm/icons/FilledCircle.js.map +1 -0
  245. package/esm/icons/Point.d.ts +3 -4
  246. package/esm/icons/Point.js +1 -0
  247. package/esm/icons/Point.js.map +1 -0
  248. package/esm/icons/StrokeCircle.d.ts +3 -4
  249. package/esm/icons/StrokeCircle.js +1 -0
  250. package/esm/icons/StrokeCircle.js.map +1 -0
  251. package/esm/index.css +6 -28
  252. package/esm/index.d.ts +2 -2
  253. package/esm/index.js +1 -0
  254. package/esm/index.js.map +1 -0
  255. package/esm/index.module.css.js +6 -0
  256. package/esm/index.module.css.js.map +1 -0
  257. package/esm/types/brush.types.d.ts +1 -2
  258. package/esm/types/brush.types.js +1 -0
  259. package/esm/types/brush.types.js.map +1 -0
  260. package/esm/types/cartesianGrid.types.d.ts +1 -2
  261. package/esm/types/cartesianGrid.types.js +1 -0
  262. package/esm/types/cartesianGrid.types.js.map +1 -0
  263. package/esm/types/chart.types.d.ts +7 -7
  264. package/esm/types/chart.types.js +1 -0
  265. package/esm/types/chart.types.js.map +1 -0
  266. package/esm/types/composedChart.types.d.ts +1 -2
  267. package/esm/types/composedChart.types.js +1 -0
  268. package/esm/types/composedChart.types.js.map +1 -0
  269. package/esm/types/index.d.ts +14 -14
  270. package/esm/types/index.js +1 -0
  271. package/esm/types/index.js.map +1 -0
  272. package/esm/types/labelList.types.d.ts +1 -2
  273. package/esm/types/labelList.types.js +1 -0
  274. package/esm/types/labelList.types.js.map +1 -0
  275. package/esm/types/legend.types.d.ts +1 -2
  276. package/esm/types/legend.types.js +1 -0
  277. package/esm/types/legend.types.js.map +1 -0
  278. package/esm/types/options.types.d.ts +10 -12
  279. package/esm/types/options.types.js +1 -0
  280. package/esm/types/options.types.js.map +1 -0
  281. package/esm/types/payload.types.d.ts +2 -3
  282. package/esm/types/payload.types.js +1 -0
  283. package/esm/types/payload.types.js.map +1 -0
  284. package/esm/types/responsiveContainer.types.d.ts +1 -3
  285. package/esm/types/responsiveContainer.types.js +1 -0
  286. package/esm/types/responsiveContainer.types.js.map +1 -0
  287. package/esm/types/seria.types.d.ts +6 -7
  288. package/esm/types/seria.types.js +1 -0
  289. package/esm/types/seria.types.js.map +1 -0
  290. package/esm/types/tooltip.types.d.ts +1 -2
  291. package/esm/types/tooltip.types.js +1 -0
  292. package/esm/types/tooltip.types.js.map +1 -0
  293. package/esm/types/utils/axis.types.d.ts +1 -2
  294. package/esm/types/utils/axis.types.js +1 -0
  295. package/esm/types/utils/axis.types.js.map +1 -0
  296. package/esm/types/utils/coordinates.types.d.ts +1 -2
  297. package/esm/types/utils/coordinates.types.js +1 -0
  298. package/esm/types/utils/coordinates.types.js.map +1 -0
  299. package/esm/types/utils/data.types.d.ts +3 -4
  300. package/esm/types/utils/data.types.js +1 -0
  301. package/esm/types/utils/data.types.js.map +1 -0
  302. package/esm/types/utils/dot.types.d.ts +6 -7
  303. package/esm/types/utils/dot.types.js +1 -0
  304. package/esm/types/utils/dot.types.js.map +1 -0
  305. package/esm/types/utils/gradient.types.d.ts +2 -3
  306. package/esm/types/utils/gradient.types.js +1 -0
  307. package/esm/types/utils/gradient.types.js.map +1 -0
  308. package/esm/types/utils/index.d.ts +6 -7
  309. package/esm/types/utils/index.js +1 -0
  310. package/esm/types/utils/index.js.map +1 -0
  311. package/esm/types/utils/tick.types.d.ts +2 -3
  312. package/esm/types/utils/tick.types.js +1 -0
  313. package/esm/types/utils/tick.types.js.map +1 -0
  314. package/esm/types/xAxis.types.d.ts +2 -3
  315. package/esm/types/xAxis.types.js +1 -0
  316. package/esm/types/xAxis.types.js.map +1 -0
  317. package/esm/types/yAxis.types.d.ts +2 -3
  318. package/esm/types/yAxis.types.js +1 -0
  319. package/esm/types/yAxis.types.js.map +1 -0
  320. package/hoc/Customized.d.ts +2 -0
  321. package/hoc/Customized.js +18 -0
  322. package/hoc/Customized.js.map +1 -0
  323. package/hooks/usePathBar/index.d.ts +3 -4
  324. package/hooks/usePathBar/index.js +4 -3
  325. package/hooks/usePathBar/index.js.map +1 -0
  326. package/hooks/usePathBar/utils/getRadius.d.ts +1 -2
  327. package/hooks/usePathBar/utils/getRadius.js +1 -0
  328. package/hooks/usePathBar/utils/getRadius.js.map +1 -0
  329. package/hooks/useSettings/index.d.ts +5 -5
  330. package/hooks/useSettings/index.js +11 -10
  331. package/hooks/useSettings/index.js.map +1 -0
  332. package/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
  333. package/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
  334. package/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
  335. package/hooks/useSettings/utils/setDatas.d.ts +5 -5
  336. package/hooks/useSettings/utils/setDatas.js +1 -0
  337. package/hooks/useSettings/utils/setDatas.js.map +1 -0
  338. package/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
  339. package/hooks/useSettings/utils/setGradientCharts.js +1 -0
  340. package/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
  341. package/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
  342. package/hooks/useSettings/utils/setLegendMargin.js +1 -0
  343. package/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
  344. package/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
  345. package/hooks/useSettings/utils/sortByIndex.js +1 -0
  346. package/hooks/useSettings/utils/sortByIndex.js.map +1 -0
  347. package/icons/Circle.d.ts +3 -4
  348. package/icons/Circle.js +1 -0
  349. package/icons/Circle.js.map +1 -0
  350. package/icons/CircleLine.d.ts +3 -4
  351. package/icons/CircleLine.js +1 -0
  352. package/icons/CircleLine.js.map +1 -0
  353. package/icons/FilledCircle.d.ts +3 -4
  354. package/icons/FilledCircle.js +1 -0
  355. package/icons/FilledCircle.js.map +1 -0
  356. package/icons/Point.d.ts +3 -4
  357. package/icons/Point.js +1 -0
  358. package/icons/Point.js.map +1 -0
  359. package/icons/StrokeCircle.d.ts +3 -4
  360. package/icons/StrokeCircle.js +1 -0
  361. package/icons/StrokeCircle.js.map +1 -0
  362. package/index.css +6 -28
  363. package/index.d.ts +2 -2
  364. package/index.js +1 -0
  365. package/index.js.map +1 -0
  366. package/index.module.css.js +8 -0
  367. package/index.module.css.js.map +1 -0
  368. package/modern/Component.d.ts +2 -4
  369. package/modern/Component.js +3 -8
  370. package/modern/Component.js.map +1 -0
  371. package/modern/components/CustomizedLabel.d.ts +1 -3
  372. package/modern/components/CustomizedLabel.js +1 -0
  373. package/modern/components/CustomizedLabel.js.map +1 -0
  374. package/modern/components/Dot/index.css +7 -8
  375. package/modern/components/Dot/index.d.ts +2 -4
  376. package/modern/components/Dot/index.js +2 -3
  377. package/modern/components/Dot/index.js.map +1 -0
  378. package/modern/components/Dot/index.module.css.js +6 -0
  379. package/modern/components/Dot/index.module.css.js.map +1 -0
  380. package/modern/components/Legends/index.css +9 -31
  381. package/modern/components/Legends/index.d.ts +5 -6
  382. package/modern/components/Legends/index.js +2 -3
  383. package/modern/components/Legends/index.js.map +1 -0
  384. package/modern/components/Legends/index.module.css.js +6 -0
  385. package/modern/components/Legends/index.module.css.js.map +1 -0
  386. package/modern/components/LinearGradient.d.ts +2 -4
  387. package/modern/components/LinearGradient.js +1 -0
  388. package/modern/components/LinearGradient.js.map +1 -0
  389. package/modern/components/RectBar.d.ts +1 -2
  390. package/modern/components/RectBar.js +1 -0
  391. package/modern/components/RectBar.js.map +1 -0
  392. package/modern/components/Tick/index.css +5 -27
  393. package/modern/components/Tick/index.d.ts +2 -4
  394. package/modern/components/Tick/index.js +2 -3
  395. package/modern/components/Tick/index.js.map +1 -0
  396. package/modern/components/Tick/index.module.css.js +6 -0
  397. package/modern/components/Tick/index.module.css.js.map +1 -0
  398. package/modern/components/TooltipContent/index.css +14 -33
  399. package/modern/components/TooltipContent/index.d.ts +5 -7
  400. package/modern/components/TooltipContent/index.js +2 -3
  401. package/modern/components/TooltipContent/index.js.map +1 -0
  402. package/modern/components/TooltipContent/index.module.css.js +6 -0
  403. package/modern/components/TooltipContent/index.module.css.js.map +1 -0
  404. package/modern/hoc/Customized.d.ts +2 -0
  405. package/modern/hoc/Customized.js +10 -0
  406. package/modern/hoc/Customized.js.map +1 -0
  407. package/modern/hooks/usePathBar/index.d.ts +3 -4
  408. package/modern/hooks/usePathBar/index.js +1 -0
  409. package/modern/hooks/usePathBar/index.js.map +1 -0
  410. package/modern/hooks/usePathBar/utils/getRadius.d.ts +1 -2
  411. package/modern/hooks/usePathBar/utils/getRadius.js +1 -0
  412. package/modern/hooks/usePathBar/utils/getRadius.js.map +1 -0
  413. package/modern/hooks/useSettings/index.d.ts +5 -5
  414. package/modern/hooks/useSettings/index.js +1 -0
  415. package/modern/hooks/useSettings/index.js.map +1 -0
  416. package/modern/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
  417. package/modern/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
  418. package/modern/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
  419. package/modern/hooks/useSettings/utils/setDatas.d.ts +5 -5
  420. package/modern/hooks/useSettings/utils/setDatas.js +1 -0
  421. package/modern/hooks/useSettings/utils/setDatas.js.map +1 -0
  422. package/modern/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
  423. package/modern/hooks/useSettings/utils/setGradientCharts.js +1 -0
  424. package/modern/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
  425. package/modern/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
  426. package/modern/hooks/useSettings/utils/setLegendMargin.js +1 -0
  427. package/modern/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
  428. package/modern/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
  429. package/modern/hooks/useSettings/utils/sortByIndex.js +1 -0
  430. package/modern/hooks/useSettings/utils/sortByIndex.js.map +1 -0
  431. package/modern/icons/Circle.d.ts +3 -4
  432. package/modern/icons/Circle.js +1 -0
  433. package/modern/icons/Circle.js.map +1 -0
  434. package/modern/icons/CircleLine.d.ts +3 -4
  435. package/modern/icons/CircleLine.js +1 -0
  436. package/modern/icons/CircleLine.js.map +1 -0
  437. package/modern/icons/FilledCircle.d.ts +3 -4
  438. package/modern/icons/FilledCircle.js +1 -0
  439. package/modern/icons/FilledCircle.js.map +1 -0
  440. package/modern/icons/Point.d.ts +3 -4
  441. package/modern/icons/Point.js +1 -0
  442. package/modern/icons/Point.js.map +1 -0
  443. package/modern/icons/StrokeCircle.d.ts +3 -4
  444. package/modern/icons/StrokeCircle.js +1 -0
  445. package/modern/icons/StrokeCircle.js.map +1 -0
  446. package/modern/index.css +6 -28
  447. package/modern/index.d.ts +2 -2
  448. package/modern/index.js +1 -0
  449. package/modern/index.js.map +1 -0
  450. package/modern/index.module.css.js +6 -0
  451. package/modern/index.module.css.js.map +1 -0
  452. package/modern/types/brush.types.d.ts +1 -2
  453. package/modern/types/brush.types.js +1 -0
  454. package/modern/types/brush.types.js.map +1 -0
  455. package/modern/types/cartesianGrid.types.d.ts +1 -2
  456. package/modern/types/cartesianGrid.types.js +1 -0
  457. package/modern/types/cartesianGrid.types.js.map +1 -0
  458. package/modern/types/chart.types.d.ts +7 -7
  459. package/modern/types/chart.types.js +1 -0
  460. package/modern/types/chart.types.js.map +1 -0
  461. package/modern/types/composedChart.types.d.ts +1 -2
  462. package/modern/types/composedChart.types.js +1 -0
  463. package/modern/types/composedChart.types.js.map +1 -0
  464. package/modern/types/index.d.ts +14 -14
  465. package/modern/types/index.js +1 -0
  466. package/modern/types/index.js.map +1 -0
  467. package/modern/types/labelList.types.d.ts +1 -2
  468. package/modern/types/labelList.types.js +1 -0
  469. package/modern/types/labelList.types.js.map +1 -0
  470. package/modern/types/legend.types.d.ts +1 -2
  471. package/modern/types/legend.types.js +1 -0
  472. package/modern/types/legend.types.js.map +1 -0
  473. package/modern/types/options.types.d.ts +10 -12
  474. package/modern/types/options.types.js +1 -0
  475. package/modern/types/options.types.js.map +1 -0
  476. package/modern/types/payload.types.d.ts +2 -3
  477. package/modern/types/payload.types.js +1 -0
  478. package/modern/types/payload.types.js.map +1 -0
  479. package/modern/types/responsiveContainer.types.d.ts +1 -3
  480. package/modern/types/responsiveContainer.types.js +1 -0
  481. package/modern/types/responsiveContainer.types.js.map +1 -0
  482. package/modern/types/seria.types.d.ts +6 -7
  483. package/modern/types/seria.types.js +1 -0
  484. package/modern/types/seria.types.js.map +1 -0
  485. package/modern/types/tooltip.types.d.ts +1 -2
  486. package/modern/types/tooltip.types.js +1 -0
  487. package/modern/types/tooltip.types.js.map +1 -0
  488. package/modern/types/utils/axis.types.d.ts +1 -2
  489. package/modern/types/utils/axis.types.js +1 -0
  490. package/modern/types/utils/axis.types.js.map +1 -0
  491. package/modern/types/utils/coordinates.types.d.ts +1 -2
  492. package/modern/types/utils/coordinates.types.js +1 -0
  493. package/modern/types/utils/coordinates.types.js.map +1 -0
  494. package/modern/types/utils/data.types.d.ts +3 -4
  495. package/modern/types/utils/data.types.js +1 -0
  496. package/modern/types/utils/data.types.js.map +1 -0
  497. package/modern/types/utils/dot.types.d.ts +6 -7
  498. package/modern/types/utils/dot.types.js +1 -0
  499. package/modern/types/utils/dot.types.js.map +1 -0
  500. package/modern/types/utils/gradient.types.d.ts +2 -3
  501. package/modern/types/utils/gradient.types.js +1 -0
  502. package/modern/types/utils/gradient.types.js.map +1 -0
  503. package/modern/types/utils/index.d.ts +6 -7
  504. package/modern/types/utils/index.js +1 -0
  505. package/modern/types/utils/index.js.map +1 -0
  506. package/modern/types/utils/tick.types.d.ts +2 -3
  507. package/modern/types/utils/tick.types.js +1 -0
  508. package/modern/types/utils/tick.types.js.map +1 -0
  509. package/modern/types/xAxis.types.d.ts +2 -3
  510. package/modern/types/xAxis.types.js +1 -0
  511. package/modern/types/xAxis.types.js.map +1 -0
  512. package/modern/types/yAxis.types.d.ts +2 -3
  513. package/modern/types/yAxis.types.js +1 -0
  514. package/modern/types/yAxis.types.js.map +1 -0
  515. package/moderncssm/Component.d.ts +2 -4
  516. package/moderncssm/Component.js +2 -5
  517. package/moderncssm/Component.js.map +1 -0
  518. package/moderncssm/components/CustomizedLabel.d.ts +1 -3
  519. package/moderncssm/components/CustomizedLabel.js +1 -0
  520. package/moderncssm/components/CustomizedLabel.js.map +1 -0
  521. package/moderncssm/components/Dot/index.d.ts +2 -4
  522. package/moderncssm/components/Dot/index.js +1 -0
  523. package/moderncssm/components/Dot/index.js.map +1 -0
  524. package/moderncssm/components/Legends/index.d.ts +5 -6
  525. package/moderncssm/components/Legends/index.js +1 -0
  526. package/moderncssm/components/Legends/index.js.map +1 -0
  527. package/moderncssm/components/Legends/index.module.css +0 -2
  528. package/moderncssm/components/LinearGradient.d.ts +2 -4
  529. package/moderncssm/components/LinearGradient.js +1 -0
  530. package/moderncssm/components/LinearGradient.js.map +1 -0
  531. package/moderncssm/components/RectBar.d.ts +1 -2
  532. package/moderncssm/components/RectBar.js +1 -0
  533. package/moderncssm/components/RectBar.js.map +1 -0
  534. package/moderncssm/components/Tick/index.d.ts +2 -4
  535. package/moderncssm/components/Tick/index.js +1 -0
  536. package/moderncssm/components/Tick/index.js.map +1 -0
  537. package/moderncssm/components/Tick/index.module.css +0 -2
  538. package/moderncssm/components/TooltipContent/index.d.ts +5 -7
  539. package/moderncssm/components/TooltipContent/index.js +1 -0
  540. package/moderncssm/components/TooltipContent/index.js.map +1 -0
  541. package/moderncssm/components/TooltipContent/index.module.css +0 -2
  542. package/moderncssm/hoc/Customized.d.ts +2 -0
  543. package/moderncssm/hoc/Customized.js +10 -0
  544. package/moderncssm/hoc/Customized.js.map +1 -0
  545. package/moderncssm/hooks/usePathBar/index.d.ts +3 -4
  546. package/moderncssm/hooks/usePathBar/index.js +1 -0
  547. package/moderncssm/hooks/usePathBar/index.js.map +1 -0
  548. package/moderncssm/hooks/usePathBar/utils/getRadius.d.ts +1 -2
  549. package/moderncssm/hooks/usePathBar/utils/getRadius.js +1 -0
  550. package/moderncssm/hooks/usePathBar/utils/getRadius.js.map +1 -0
  551. package/moderncssm/hooks/useSettings/index.d.ts +5 -5
  552. package/moderncssm/hooks/useSettings/index.js +1 -0
  553. package/moderncssm/hooks/useSettings/index.js.map +1 -0
  554. package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
  555. package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
  556. package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
  557. package/moderncssm/hooks/useSettings/utils/setDatas.d.ts +5 -5
  558. package/moderncssm/hooks/useSettings/utils/setDatas.js +1 -0
  559. package/moderncssm/hooks/useSettings/utils/setDatas.js.map +1 -0
  560. package/moderncssm/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
  561. package/moderncssm/hooks/useSettings/utils/setGradientCharts.js +1 -0
  562. package/moderncssm/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
  563. package/moderncssm/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
  564. package/moderncssm/hooks/useSettings/utils/setLegendMargin.js +1 -0
  565. package/moderncssm/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
  566. package/moderncssm/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
  567. package/moderncssm/hooks/useSettings/utils/sortByIndex.js +1 -0
  568. package/moderncssm/hooks/useSettings/utils/sortByIndex.js.map +1 -0
  569. package/moderncssm/icons/Circle.d.ts +3 -4
  570. package/moderncssm/icons/Circle.js +1 -0
  571. package/moderncssm/icons/Circle.js.map +1 -0
  572. package/moderncssm/icons/CircleLine.d.ts +3 -4
  573. package/moderncssm/icons/CircleLine.js +1 -0
  574. package/moderncssm/icons/CircleLine.js.map +1 -0
  575. package/moderncssm/icons/FilledCircle.d.ts +3 -4
  576. package/moderncssm/icons/FilledCircle.js +1 -0
  577. package/moderncssm/icons/FilledCircle.js.map +1 -0
  578. package/moderncssm/icons/Point.d.ts +3 -4
  579. package/moderncssm/icons/Point.js +1 -0
  580. package/moderncssm/icons/Point.js.map +1 -0
  581. package/moderncssm/icons/StrokeCircle.d.ts +3 -4
  582. package/moderncssm/icons/StrokeCircle.js +1 -0
  583. package/moderncssm/icons/StrokeCircle.js.map +1 -0
  584. package/moderncssm/index.d.ts +2 -2
  585. package/moderncssm/index.js +1 -0
  586. package/moderncssm/index.js.map +1 -0
  587. package/moderncssm/index.module.css +0 -2
  588. package/moderncssm/types/brush.types.d.ts +1 -2
  589. package/moderncssm/types/brush.types.js +1 -0
  590. package/moderncssm/types/brush.types.js.map +1 -0
  591. package/moderncssm/types/cartesianGrid.types.d.ts +1 -2
  592. package/moderncssm/types/cartesianGrid.types.js +1 -0
  593. package/moderncssm/types/cartesianGrid.types.js.map +1 -0
  594. package/moderncssm/types/chart.types.d.ts +7 -7
  595. package/moderncssm/types/chart.types.js +1 -0
  596. package/moderncssm/types/chart.types.js.map +1 -0
  597. package/moderncssm/types/composedChart.types.d.ts +1 -2
  598. package/moderncssm/types/composedChart.types.js +1 -0
  599. package/moderncssm/types/composedChart.types.js.map +1 -0
  600. package/moderncssm/types/index.d.ts +14 -14
  601. package/moderncssm/types/index.js +1 -0
  602. package/moderncssm/types/index.js.map +1 -0
  603. package/moderncssm/types/labelList.types.d.ts +1 -2
  604. package/moderncssm/types/labelList.types.js +1 -0
  605. package/moderncssm/types/labelList.types.js.map +1 -0
  606. package/moderncssm/types/legend.types.d.ts +1 -2
  607. package/moderncssm/types/legend.types.js +1 -0
  608. package/moderncssm/types/legend.types.js.map +1 -0
  609. package/moderncssm/types/options.types.d.ts +10 -12
  610. package/moderncssm/types/options.types.js +1 -0
  611. package/moderncssm/types/options.types.js.map +1 -0
  612. package/moderncssm/types/payload.types.d.ts +2 -3
  613. package/moderncssm/types/payload.types.js +1 -0
  614. package/moderncssm/types/payload.types.js.map +1 -0
  615. package/moderncssm/types/responsiveContainer.types.d.ts +1 -3
  616. package/moderncssm/types/responsiveContainer.types.js +1 -0
  617. package/moderncssm/types/responsiveContainer.types.js.map +1 -0
  618. package/moderncssm/types/seria.types.d.ts +6 -7
  619. package/moderncssm/types/seria.types.js +1 -0
  620. package/moderncssm/types/seria.types.js.map +1 -0
  621. package/moderncssm/types/tooltip.types.d.ts +1 -2
  622. package/moderncssm/types/tooltip.types.js +1 -0
  623. package/moderncssm/types/tooltip.types.js.map +1 -0
  624. package/moderncssm/types/utils/axis.types.d.ts +1 -2
  625. package/moderncssm/types/utils/axis.types.js +1 -0
  626. package/moderncssm/types/utils/axis.types.js.map +1 -0
  627. package/moderncssm/types/utils/coordinates.types.d.ts +1 -2
  628. package/moderncssm/types/utils/coordinates.types.js +1 -0
  629. package/moderncssm/types/utils/coordinates.types.js.map +1 -0
  630. package/moderncssm/types/utils/data.types.d.ts +3 -4
  631. package/moderncssm/types/utils/data.types.js +1 -0
  632. package/moderncssm/types/utils/data.types.js.map +1 -0
  633. package/moderncssm/types/utils/dot.types.d.ts +6 -7
  634. package/moderncssm/types/utils/dot.types.js +1 -0
  635. package/moderncssm/types/utils/dot.types.js.map +1 -0
  636. package/moderncssm/types/utils/gradient.types.d.ts +2 -3
  637. package/moderncssm/types/utils/gradient.types.js +1 -0
  638. package/moderncssm/types/utils/gradient.types.js.map +1 -0
  639. package/moderncssm/types/utils/index.d.ts +6 -7
  640. package/moderncssm/types/utils/index.js +1 -0
  641. package/moderncssm/types/utils/index.js.map +1 -0
  642. package/moderncssm/types/utils/tick.types.d.ts +2 -3
  643. package/moderncssm/types/utils/tick.types.js +1 -0
  644. package/moderncssm/types/utils/tick.types.js.map +1 -0
  645. package/moderncssm/types/xAxis.types.d.ts +2 -3
  646. package/moderncssm/types/xAxis.types.js +1 -0
  647. package/moderncssm/types/xAxis.types.js.map +1 -0
  648. package/moderncssm/types/yAxis.types.d.ts +2 -3
  649. package/moderncssm/types/yAxis.types.js +1 -0
  650. package/moderncssm/types/yAxis.types.js.map +1 -0
  651. package/package.json +6 -8
  652. package/src/hoc/Customized.tsx +8 -0
  653. package/types/brush.types.d.ts +1 -2
  654. package/types/brush.types.js +1 -0
  655. package/types/brush.types.js.map +1 -0
  656. package/types/cartesianGrid.types.d.ts +1 -2
  657. package/types/cartesianGrid.types.js +1 -0
  658. package/types/cartesianGrid.types.js.map +1 -0
  659. package/types/chart.types.d.ts +7 -7
  660. package/types/chart.types.js +1 -0
  661. package/types/chart.types.js.map +1 -0
  662. package/types/composedChart.types.d.ts +1 -2
  663. package/types/composedChart.types.js +1 -0
  664. package/types/composedChart.types.js.map +1 -0
  665. package/types/index.d.ts +14 -14
  666. package/types/index.js +1 -0
  667. package/types/index.js.map +1 -0
  668. package/types/labelList.types.d.ts +1 -2
  669. package/types/labelList.types.js +1 -0
  670. package/types/labelList.types.js.map +1 -0
  671. package/types/legend.types.d.ts +1 -2
  672. package/types/legend.types.js +1 -0
  673. package/types/legend.types.js.map +1 -0
  674. package/types/options.types.d.ts +10 -12
  675. package/types/options.types.js +1 -0
  676. package/types/options.types.js.map +1 -0
  677. package/types/payload.types.d.ts +2 -3
  678. package/types/payload.types.js +1 -0
  679. package/types/payload.types.js.map +1 -0
  680. package/types/responsiveContainer.types.d.ts +1 -3
  681. package/types/responsiveContainer.types.js +1 -0
  682. package/types/responsiveContainer.types.js.map +1 -0
  683. package/types/seria.types.d.ts +6 -7
  684. package/types/seria.types.js +1 -0
  685. package/types/seria.types.js.map +1 -0
  686. package/types/tooltip.types.d.ts +1 -2
  687. package/types/tooltip.types.js +1 -0
  688. package/types/tooltip.types.js.map +1 -0
  689. package/types/utils/axis.types.d.ts +1 -2
  690. package/types/utils/axis.types.js +1 -0
  691. package/types/utils/axis.types.js.map +1 -0
  692. package/types/utils/coordinates.types.d.ts +1 -2
  693. package/types/utils/coordinates.types.js +1 -0
  694. package/types/utils/coordinates.types.js.map +1 -0
  695. package/types/utils/data.types.d.ts +3 -4
  696. package/types/utils/data.types.js +1 -0
  697. package/types/utils/data.types.js.map +1 -0
  698. package/types/utils/dot.types.d.ts +6 -7
  699. package/types/utils/dot.types.js +1 -0
  700. package/types/utils/dot.types.js.map +1 -0
  701. package/types/utils/gradient.types.d.ts +2 -3
  702. package/types/utils/gradient.types.js +1 -0
  703. package/types/utils/gradient.types.js.map +1 -0
  704. package/types/utils/index.d.ts +6 -7
  705. package/types/utils/index.js +1 -0
  706. package/types/utils/index.js.map +1 -0
  707. package/types/utils/tick.types.d.ts +2 -3
  708. package/types/utils/tick.types.js +1 -0
  709. package/types/utils/tick.types.js.map +1 -0
  710. package/types/xAxis.types.d.ts +2 -3
  711. package/types/xAxis.types.js +1 -0
  712. package/types/xAxis.types.js.map +1 -0
  713. package/types/yAxis.types.d.ts +2 -3
  714. package/types/yAxis.types.js +1 -0
  715. package/types/yAxis.types.js.map +1 -0
  716. package/src/hoc/Customized.jsx +0 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setDatas.js","sources":["../../../src/hooks/useSettings/utils/setDatas.ts"],"sourcesContent":["import { SeriaProps } from '../../../types/seria.types';\nimport {\n DataDynamicBooleanProps,\n DataDynamicProps,\n DataProps,\n} from '../../../types/utils/data.types';\n\ntype DatasResultProps = [DataDynamicProps[], DataDynamicBooleanProps, number];\n\nexport const setDatas = (\n series: SeriaProps[],\n labels: Array<string | number>,\n): DatasResultProps => {\n const initData: DataDynamicProps[] = [];\n const chartsNames: DataDynamicBooleanProps = {};\n let count = 0;\n\n for (let i = 0; i < series.length; i++) {\n const {\n properties: { dataKey = '' } = {},\n data: seriaData = [],\n hideLegend,\n hide,\n } = series[i];\n\n if (!hideLegend && !hide) count += 1;\n\n labels.map((label) => {\n const item = seriaData.find((d: DataProps) => d.label === label);\n\n if (item) {\n const obj: DataDynamicProps = {\n label,\n };\n\n obj[`${dataKey}`] = item.value;\n\n if (!chartsNames[`${dataKey}`]) chartsNames[`${dataKey}`] = true;\n\n const index = initData\n .map((dataItem: DataDynamicProps) => dataItem.label)\n .indexOf(label);\n\n if (index === -1) initData.push(obj);\n else initData[index] = { ...initData[index], ...obj };\n }\n\n return null;\n });\n }\n\n return [initData, chartsNames, count];\n};\n"],"names":["__assign"],"mappings":";;;;;;AASa,IAAA,QAAQ,GAAG,UACpB,MAAoB,EACpB,MAA8B,EAAA;IAE9B,IAAM,QAAQ,GAAuB,EAAE;IACvC,IAAM,WAAW,GAA4B,EAAE;IAC/C,IAAI,KAAK,GAAG,CAAC;4BAEJ,CAAC,EAAA;AACA,QAAA,IAAA,EAKF,GAAA,MAAM,CAAC,CAAC,CAAC,EAJT,EAAiC,GAAA,EAAA,CAAA,UAAA,EAAjC,EAA+B,GAAA,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA,EAAnB,eAAY,EAAZ,OAAO,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA,EAC1B,EAAoB,GAAA,EAAA,CAAA,IAAA,EAAd,SAAS,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA,EACpB,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,IAAI,UACK;AAEb,QAAA,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI;YAAE,KAAK,IAAI,CAAC;AAEpC,QAAA,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK,EAAA;AACb,YAAA,IAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,UAAC,CAAY,EAAA,EAAK,OAAA,CAAC,CAAC,KAAK,KAAK,KAAK,CAAjB,EAAiB,CAAC;AAEhE,YAAA,IAAI,IAAI,EAAE;AACN,gBAAA,IAAM,GAAG,GAAqB;AAC1B,oBAAA,KAAK,EAAA,KAAA;iBACR;gBAED,GAAG,CAAC,UAAG,OAAO,CAAE,CAAC,GAAG,IAAI,CAAC,KAAK;AAE9B,gBAAA,IAAI,CAAC,WAAW,CAAC,EAAG,CAAA,MAAA,CAAA,OAAO,CAAE,CAAC;AAAE,oBAAA,WAAW,CAAC,EAAG,CAAA,MAAA,CAAA,OAAO,CAAE,CAAC,GAAG,IAAI;gBAEhE,IAAM,KAAK,GAAG;qBACT,GAAG,CAAC,UAAC,QAA0B,EAAK,EAAA,OAAA,QAAQ,CAAC,KAAK,CAAd,EAAc;qBAClD,OAAO,CAAC,KAAK,CAAC;gBAEnB,IAAI,KAAK,KAAK,EAAE;AAAE,oBAAA,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;;oBAC/B,QAAQ,CAAC,KAAK,CAAC,GAAQA,cAAA,CAAAA,cAAA,CAAA,EAAA,EAAA,QAAQ,CAAC,KAAK,CAAC,CAAA,EAAK,GAAG,CAAE;AACxD;AAED,YAAA,OAAO,IAAI;AACf,SAAC,CAAC;;AA/BN,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAA;gBAA7B,CAAC,CAAA;AAgCT;AAED,IAAA,OAAO,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,CAAC;AACzC;;;;"}
@@ -1,3 +1,2 @@
1
- import { SeriaProps } from "../../../types/seria.types";
2
- declare const setGradientCharts: (series: SeriaProps[]) => SeriaProps[];
3
- export { setGradientCharts };
1
+ import { SeriaProps } from '../../../types/seria.types';
2
+ export declare const setGradientCharts: (series: SeriaProps[]) => SeriaProps[];
@@ -27,3 +27,4 @@ var setGradientCharts = function (series) {
27
27
  };
28
28
 
29
29
  exports.setGradientCharts = setGradientCharts;
30
+ //# sourceMappingURL=setGradientCharts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setGradientCharts.js","sources":["../../../src/hooks/useSettings/utils/setGradientCharts.ts"],"sourcesContent":["import { SeriaProps } from '../../../types/seria.types';\nimport { DataProps } from '../../../types/utils/data.types';\n\nexport const setGradientCharts = (series: SeriaProps[]): SeriaProps[] => {\n const filterSeries = series.filter((item) => item.chart !== 'gradient');\n\n return filterSeries.reduce((accum: SeriaProps[], item: SeriaProps) => {\n const { chart, data: dataSeria, offset, fill } = item;\n\n if (chart === 'area') {\n let newData = null;\n\n if (offset) {\n newData = dataSeria.map((d: DataProps) => {\n const { label, value } = d;\n\n return {\n label,\n value: Math.ceil(value - value * offset),\n };\n });\n }\n\n accum.push({\n ...item,\n zIndex: -100,\n chart: 'gradient',\n hideLegend: true,\n hideTooltip: true,\n properties: {\n ...item.properties,\n dataKey: `${item.properties.dataKey}-gradient`,\n fill,\n },\n data: newData || item.data,\n });\n }\n\n accum.push(item);\n\n return accum;\n }, []);\n};\n"],"names":["__assign"],"mappings":";;;;;;AAGO,IAAM,iBAAiB,GAAG,UAAC,MAAoB,EAAA;AAClD,IAAA,IAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,UAAC,IAAI,EAAA,EAAK,OAAA,IAAI,CAAC,KAAK,KAAK,UAAU,CAAzB,EAAyB,CAAC;AAEvE,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAC,KAAmB,EAAE,IAAgB,EAAA;AACrD,QAAA,IAAA,KAAK,GAAoC,IAAI,MAAxC,EAAQ,SAAS,GAAmB,IAAI,CAAA,IAAvB,EAAE,MAAM,GAAW,IAAI,CAAf,MAAA,EAAE,IAAI,GAAK,IAAI,KAAT;QAE5C,IAAI,KAAK,KAAK,MAAM,EAAE;YAClB,IAAI,OAAO,GAAG,IAAI;AAElB,YAAA,IAAI,MAAM,EAAE;AACR,gBAAA,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,UAAC,CAAY,EAAA;oBACzB,IAAA,KAAK,GAAY,CAAC,CAAA,KAAb,EAAE,KAAK,GAAK,CAAC,CAAA,KAAN;oBAEpB,OAAO;AACH,wBAAA,KAAK,EAAA,KAAA;wBACL,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;qBAC3C;AACL,iBAAC,CAAC;AACL;YAED,KAAK,CAAC,IAAI,CACHA,cAAA,CAAAA,cAAA,CAAA,EAAA,EAAA,IAAI,KACP,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,UAAU,EACjB,UAAU,EAAE,IAAI,EAChB,WAAW,EAAE,IAAI,EACjB,UAAU,EAAAA,cAAA,CAAAA,cAAA,CAAA,EAAA,EACH,IAAI,CAAC,UAAU,KAClB,OAAO,EAAE,UAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAA,WAAA,CAAW,EAC9C,IAAI,EAAA,IAAA,EAER,CAAA,EAAA,IAAI,EAAE,OAAO,IAAI,IAAI,CAAC,IAAI,EAAA,CAAA,CAC5B;AACL;AAED,QAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AAEhB,QAAA,OAAO,KAAK;KACf,EAAE,EAAE,CAAC;AACV;;;;"}
@@ -1,4 +1,3 @@
1
- import { BrushProps } from "../../../types/brush.types";
2
- import { LegendProps } from "../../../types/legend.types";
3
- declare const setLegendMargin: (brush: BrushProps, legend: LegendProps) => number;
4
- export { setLegendMargin };
1
+ import { BrushProps } from '../../../types/brush.types';
2
+ import { LegendProps } from '../../../types/legend.types';
3
+ export declare const setLegendMargin: (brush: BrushProps, legend: LegendProps) => number;
@@ -16,3 +16,4 @@ var setLegendMargin = function (brush, legend) {
16
16
  };
17
17
 
18
18
  exports.setLegendMargin = setLegendMargin;
19
+ //# sourceMappingURL=setLegendMargin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setLegendMargin.js","sources":["../../../src/hooks/useSettings/utils/setLegendMargin.ts"],"sourcesContent":["import { BrushProps } from '../../../types/brush.types';\nimport { LegendProps } from '../../../types/legend.types';\n\nexport const setLegendMargin = (brush: BrushProps, legend: LegendProps): number => {\n let top = 0;\n\n if (typeof brush?.brushMargin !== 'number' || !legend?.verticalAlign) return top;\n\n if (legend.verticalAlign === 'top') {\n top = legend.marginTop ? Number(legend.marginTop * -1) : 0;\n } else {\n top = legend?.marginTop ? legend.marginTop + (brush?.brushMargin || 0) : brush?.brushMargin;\n }\n\n return top;\n};\n"],"names":[],"mappings":";;;;AAGa,IAAA,eAAe,GAAG,UAAC,KAAiB,EAAE,MAAmB,EAAA;IAClE,IAAI,GAAG,GAAG,CAAC;IAEX,IAAI,QAAO,KAAK,KAAA,IAAA,IAAL,KAAK,KAAL,MAAA,GAAA,MAAA,GAAA,KAAK,CAAE,WAAW,CAAA,KAAK,QAAQ,IAAI,EAAC,MAAM,KAAA,IAAA,IAAN,MAAM,KAAN,MAAA,GAAA,MAAA,GAAA,MAAM,CAAE,aAAa,CAAA;AAAE,QAAA,OAAO,GAAG;AAEhF,IAAA,IAAI,MAAM,CAAC,aAAa,KAAK,KAAK,EAAE;QAChC,GAAG,GAAG,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,EAAE,CAAC,GAAG,CAAC;AAC7D;AAAM,SAAA;AACH,QAAA,GAAG,GAAG,CAAA,MAAM,KAAN,IAAA,IAAA,MAAM,uBAAN,MAAM,CAAE,SAAS,IAAG,MAAM,CAAC,SAAS,IAAI,CAAA,KAAK,KAAL,IAAA,IAAA,KAAK,uBAAL,KAAK,CAAE,WAAW,KAAI,CAAC,CAAC,GAAG,KAAK,KAAL,IAAA,IAAA,KAAK,uBAAL,KAAK,CAAE,WAAW;AAC9F;AAED,IAAA,OAAO,GAAG;AACd;;;;"}
@@ -1,3 +1,2 @@
1
- import { SeriaProps } from "../../../types/seria.types";
2
- declare const sortByIndex: (series: SeriaProps[]) => SeriaProps[];
3
- export { sortByIndex };
1
+ import { SeriaProps } from '../../../types/seria.types';
2
+ export declare const sortByIndex: (series: SeriaProps[]) => SeriaProps[];
@@ -12,3 +12,4 @@ var sortByIndex = function (series) {
12
12
  };
13
13
 
14
14
  exports.sortByIndex = sortByIndex;
15
+ //# sourceMappingURL=sortByIndex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortByIndex.js","sources":["../../../src/hooks/useSettings/utils/sortByIndex.ts"],"sourcesContent":["import { SeriaProps } from '../../../types/seria.types';\n\nexport const sortByIndex = (series: SeriaProps[]): SeriaProps[] =>\n series.sort((a: SeriaProps, b: SeriaProps) => {\n if (a?.zIndex && b?.zIndex && a?.zIndex > b?.zIndex) {\n return 1;\n }\n\n return -1;\n });\n"],"names":[],"mappings":";;;;AAEO,IAAM,WAAW,GAAG,UAAC,MAAoB,EAAA;AAC5C,IAAA,OAAA,MAAM,CAAC,IAAI,CAAC,UAAC,CAAa,EAAE,CAAa,EAAA;AACrC,QAAA,IAAI,CAAA,CAAC,KAAD,IAAA,IAAA,CAAC,uBAAD,CAAC,CAAE,MAAM,MAAI,CAAC,KAAD,IAAA,IAAA,CAAC,KAAD,MAAA,GAAA,MAAA,GAAA,CAAC,CAAE,MAAM,CAAA,IAAI,CAAA,CAAC,KAAD,IAAA,IAAA,CAAC,KAAD,MAAA,GAAA,MAAA,GAAA,CAAC,CAAE,MAAM,KAAG,CAAC,KAAA,IAAA,IAAD,CAAC,KAAD,MAAA,GAAA,MAAA,GAAA,CAAC,CAAE,MAAM,CAAA,EAAE;AACjD,YAAA,OAAO,CAAC;AACX;QAED,OAAO,EAAE;AACb,KAAC,CAAC;AANF;;;;"}
package/icons/Circle.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- type Props = {
2
+ declare type Props = {
4
3
  fill?: string;
5
4
  height?: number;
6
5
  };
7
- declare const CircleIcon: ({ fill, height }: Props) => React.JSX.Element;
8
- export { CircleIcon };
6
+ export declare const CircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
+ export {};
package/icons/Circle.js CHANGED
@@ -15,3 +15,4 @@ var CircleIcon = function (_a) {
15
15
  };
16
16
 
17
17
  exports.CircleIcon = CircleIcon;
18
+ //# sourceMappingURL=Circle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Circle.js","sources":["../src/icons/Circle.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const CircleIcon = ({ fill = '#FF5C5C', height = 16 }: Props) => (\n <svg xmlns='http://www.w3.org/2000/svg' height={height} viewBox='0 0 16 16' fill='none'>\n <circle cx='8' cy='8' r='8' fill={fill} />\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,UAAU,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;AAAc,IAAA,QACpEA,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;AACnF,QAAAA,sBAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAA,CAAI,CACxC;AAH8D;;;;"}
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- type Props = {
2
+ declare type Props = {
4
3
  fill?: string;
5
4
  height?: number;
6
5
  };
7
- declare const CircleLineIcon: ({ fill, height }: Props) => React.ReactElement;
8
- export { CircleLineIcon };
6
+ export declare const CircleLineIcon: ({ fill, height }: Props) => React.ReactElement;
7
+ export {};
@@ -16,3 +16,4 @@ var CircleLineIcon = function (_a) {
16
16
  };
17
17
 
18
18
  exports.CircleLineIcon = CircleLineIcon;
19
+ //# sourceMappingURL=CircleLine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CircleLine.js","sources":["../src/icons/CircleLine.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const CircleLineIcon = ({ fill = '#FF5C5C', height = 16 }: Props): React.ReactElement => (\n <svg xmlns='http://www.w3.org/2000/svg' height={height} viewBox='0 0 22 12' fill='none'>\n <circle cx='11' cy='6' r='6' fill={fill} />\n <rect y='5' width='22' height='2' fill={fill} />\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,cAAc,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;AAAkC,IAAA,QAC5FA,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;AACnF,QAAAA,sBAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAI,CAAA;AAC3C,QAAAA,sBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAA,CAAI,CAC9C;AAJsF;;;;"}
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- type Props = {
2
+ declare type Props = {
4
3
  fill?: string;
5
4
  height?: number;
6
5
  };
7
- declare const FilledCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
8
- export { FilledCircleIcon };
6
+ export declare const FilledCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
+ export {};
@@ -19,3 +19,4 @@ var FilledCircleIcon = function (_a) {
19
19
  };
20
20
 
21
21
  exports.FilledCircleIcon = FilledCircleIcon;
22
+ //# sourceMappingURL=FilledCircle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilledCircle.js","sources":["../src/icons/FilledCircle.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const FilledCircleIcon = ({ fill = '#5A8ECF', height = 16 }: Props) => (\n <svg xmlns='http://www.w3.org/2000/svg' height={height} viewBox='0 0 22 22' fill='none'>\n <circle cx='11' cy='11' r='10' fill='url(#paint0_linear)' stroke={fill} strokeWidth='2' />\n <defs>\n <linearGradient\n id='paint0_linear'\n x1='11'\n y1='1'\n x2='11'\n y2='21'\n gradientUnits='userSpaceOnUse'\n >\n <stop stopColor={fill} stopOpacity='0.2' />\n <stop offset='1' stopColor={fill} stopOpacity='0' />\n </linearGradient>\n </defs>\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,gBAAgB,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;AAAc,IAAA,QAC1EA,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;QACnFA,sBAAQ,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,IAAI,EAAC,qBAAqB,EAAC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAC,GAAG,EAAG,CAAA;AAC1F,QAAAA,sBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA;YACIA,sBACI,CAAA,aAAA,CAAA,gBAAA,EAAA,EAAA,EAAE,EAAC,eAAe,EAClB,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,aAAa,EAAC,gBAAgB,EAAA;AAE9B,gBAAAA,sBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,IAAI,EAAE,WAAW,EAAC,KAAK,EAAG,CAAA;AAC3C,gBAAAA,sBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAC,GAAG,EAAA,CAAG,CACvC,CACd,CACL;AAhBoE;;;;"}
package/icons/Point.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- type Props = {
2
+ declare type Props = {
4
3
  fill?: string;
5
4
  height?: number;
6
5
  };
7
- declare const PointIcon: ({ fill, height }: Props) => React.JSX.Element;
8
- export { PointIcon };
6
+ export declare const PointIcon: ({ fill, height }: Props) => React.JSX.Element;
7
+ export {};
package/icons/Point.js CHANGED
@@ -16,3 +16,4 @@ var PointIcon = function (_a) {
16
16
  };
17
17
 
18
18
  exports.PointIcon = PointIcon;
19
+ //# sourceMappingURL=Point.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Point.js","sources":["../src/icons/Point.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const PointIcon = ({ fill = '#5A8ECF', height = 16 }: Props) => (\n <svg height={height} viewBox='0 0 18 18'>\n <circle cx='9' cy='9' r='9' strokeWidth='1' fill={fill} fillOpacity='0.4' />\n <circle cx='9' cy='9' r='3' strokeWidth='2' stroke='#fff' fill={fill} />\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,SAAS,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;IAAc,QACnEA,8CAAK,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAA;QACpCA,sBAAQ,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,WAAW,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAC,KAAK,EAAG,CAAA;QAC5EA,sBAAQ,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,WAAW,EAAC,GAAG,EAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAI,CAAA,CACtE;AAJ6D;;;;"}
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- type Props = {
2
+ declare type Props = {
4
3
  fill?: string;
5
4
  height?: number;
6
5
  };
7
- declare const StrokeCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
8
- export { StrokeCircleIcon };
6
+ export declare const StrokeCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
+ export {};
@@ -15,3 +15,4 @@ var StrokeCircleIcon = function (_a) {
15
15
  };
16
16
 
17
17
  exports.StrokeCircleIcon = StrokeCircleIcon;
18
+ //# sourceMappingURL=StrokeCircle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StrokeCircle.js","sources":["../src/icons/StrokeCircle.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const StrokeCircleIcon = ({ fill = '#5A8ECF', height = 16 }: Props) => (\n <svg xmlns='http://www.w3.org/2000/svg' height={height} viewBox='0 0 22 22' fill='none'>\n <circle cx='11' cy='11' r='10' stroke={fill} strokeWidth='2' strokeDasharray='8 8' />\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,gBAAgB,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;AAAc,IAAA,QAC1EA,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;QACnFA,sBAAQ,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAC,GAAG,EAAC,eAAe,EAAC,KAAK,EAAG,CAAA,CACnF;AAHoE;;;;"}
package/index.css CHANGED
@@ -1,35 +1,13 @@
1
- /* hash: 1fosr */
2
- :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
- } /* deprecated */ :root {
4
- --color-light-text-primary: rgba(3, 3, 6, 0.88); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
5
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
6
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
7
- } :root {
8
-
9
- /* Hard */
10
-
11
- /* Up */
12
-
13
- /* Hard up */
14
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
15
-
16
- /* новые значения, используйте их */
17
- } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
18
-
19
- /* новые значения, используйте их */
20
-
21
- /* no-unit может приводить к проблемам в calc (#1559) */
22
- /* stylelint-disable-next-line length-zero-no-unit */
23
- } :root {
24
- } /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
25
- } /* сбрасывает синюю подсветку при нажатии */ .chart__coreChart_fap27 .recharts-line path {
1
+ :root {
2
+ --color-light-text-primary: rgba(3, 3, 6, 0.88);
3
+ } .chart__coreChart_1x2bj .recharts-line path {
26
4
  transition: d 0.2s ease-out;
27
- } .chart__coreChart_fap27 .recharts-text tspan {
5
+ } .chart__coreChart_1x2bj .recharts-text tspan {
28
6
  fill: var(--color-light-text-primary);
29
7
  font-size: 16px;
30
8
  line-height: 22px;
31
- } .chart__bar_fap27 {
9
+ } .chart__bar_1x2bj {
32
10
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
33
- } .chart__unfocused_fap27 {
11
+ } .chart__unfocused_1x2bj {
34
12
  opacity: 0.3;
35
13
  }
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Component";
2
- export * from "./types/index";
1
+ export * from './Component';
2
+ export * from './types';
package/index.js CHANGED
@@ -7,3 +7,4 @@ var Component = require('./Component.js');
7
7
 
8
8
 
9
9
  exports.Chart = Component.Chart;
10
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./index.css');
4
+
5
+ var styles = {"coreChart":"chart__coreChart_1x2bj","bar":"chart__bar_1x2bj","unfocused":"chart__unfocused_1x2bj"};
6
+
7
+ module.exports = styles;
8
+ //# sourceMappingURL=index.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.coreChart {\n & :global(.recharts-line path) {\n transition: d 0.2s ease-out;\n }\n\n & :global(.recharts-text tspan) {\n fill: var(--color-light-text-primary);\n font-size: 16px;\n line-height: 22px;\n }\n}\n\n.bar {\n transition: opacity 0.2s ease-out, d 0.2s ease-out;\n}\n\n.unfocused {\n opacity: 0.3;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,WAAW,CAAC,wBAAwB,CAAC,KAAK,CAAC,kBAAkB,CAAC,WAAW,CAAC,wBAAwB,CAAC;;;;"}
@@ -1,8 +1,6 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- import { OptionsProps } from "./types/index";
4
- declare const Chart: {
2
+ import { OptionsProps } from './types';
3
+ export declare const Chart: {
5
4
  (props: OptionsProps): React.JSX.Element | null;
6
5
  displayName: string;
7
6
  };
8
- export { Chart };
@@ -8,15 +8,9 @@ import { LinearGradient } from './components/LinearGradient.js';
8
8
  import { RectBar } from './components/RectBar.js';
9
9
  import { Tick } from './components/Tick/index.js';
10
10
  import { TooltipContent } from './components/TooltipContent/index.js';
11
+ import { CustomizedHOC } from './hoc/Customized.js';
11
12
  import { useSettings } from './hooks/useSettings/index.js';
12
-
13
- const CustomizedHOC = (Component, options) => {
14
- const NewComponent = (props) => React.createElement(Component, { ...props, ...options });
15
- return NewComponent;
16
- };
17
-
18
- const styles = {"coreChart":"chart__coreChart_fap27","bar":"chart__bar_fap27","unfocused":"chart__unfocused_fap27"};
19
- require('./index.css')
13
+ import styles from './index.module.css.js';
20
14
 
21
15
  /* eslint-disable @typescript-eslint/no-explicit-any,prefer-template */
22
16
  const Chart = (props) => {
@@ -251,3 +245,4 @@ Chart.displayName = 'Chart';
251
245
  ResponsiveContainer.displayName = 'ResponsiveContainer';
252
246
 
253
247
  export { Chart };
248
+ //# sourceMappingURL=Component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.js","sources":["../src/Component.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any,prefer-template */\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport cn from 'classnames';\nimport {\n Area,\n Bar,\n Brush,\n CartesianGrid,\n Cell,\n ComposedChart,\n LabelList,\n Legend,\n Line,\n ResponsiveContainer,\n Tooltip,\n XAxis,\n YAxis,\n} from 'recharts';\n\nimport { CustomizedLabel } from './components/CustomizedLabel';\nimport { Dot } from './components/Dot';\nimport { Legends } from './components/Legends';\nimport { LinearGradient } from './components/LinearGradient';\nimport { RectBar } from './components/RectBar';\nimport { Tick } from './components/Tick';\nimport { TooltipContent } from './components/TooltipContent';\nimport { CustomizedHOC } from './hoc/Customized';\nimport { useSettings } from './hooks/useSettings';\nimport {\n ActiveDotProps,\n CoordinatesProps,\n DataDynamicBooleanProps,\n DataDynamicProps,\n OptionsProps,\n SeriaProps,\n ToggleChartProps,\n} from './types';\n\nimport styles from './index.module.css';\n\nexport const Chart = (props: OptionsProps) => {\n const [{ state, data, charts, filterCount }, { setCharts, setFilterCount }] =\n useSettings(props);\n const [activeDotsState, setActiveDotsState] = useState<ActiveDotProps>({\n prev: null,\n active: null,\n });\n\n const [yBrush, setYBrush] = useState<number | null>(null);\n const [tooltipArrowSide, setTooltipArrowSide] = useState<boolean | null>(null);\n const [heightLegend, setHeightLegend] = useState<number>(0);\n\n const svgRef = useRef<HTMLDivElement>(null);\n const tooltipRef = useRef<any>(null);\n\n const renderGradient = useMemo(() => {\n if (!state) return null;\n\n return state.series.map((item: SeriaProps) => {\n const { chart, gradient } = item;\n\n if (chart !== 'gradient' || !gradient) return null;\n const { gid, points } = gradient;\n\n return (\n <LinearGradient\n key={`${state.id}-${gid}`}\n id={state.id}\n gid={gid}\n points={points}\n />\n );\n });\n }, [state]);\n\n const toggleChart = useCallback(\n (item: ToggleChartProps): void => {\n const {\n chart,\n properties: { dataKey },\n } = item;\n\n const withGrad = chart === 'area';\n let changed = false;\n\n if (charts[dataKey + ''] && filterCount > 1) {\n changed = true;\n setFilterCount((prev) => prev - 1);\n }\n\n if (!charts[dataKey + '']) {\n changed = true;\n setFilterCount((prev) => prev + 1);\n }\n\n if (!changed) return;\n setCharts((prev: DataDynamicBooleanProps) => {\n const newState = { ...prev };\n\n newState[dataKey + ''] = !newState[dataKey + ''];\n if (withGrad) newState[dataKey + '-gradient'] = !newState[dataKey + '-gradient'];\n\n return newState;\n });\n },\n [charts, filterCount, setCharts, setFilterCount],\n );\n\n const legendRef = useCallback((node: HTMLUListElement): void => {\n if (node !== null) {\n setTimeout(() => {\n const { height } = node.getBoundingClientRect();\n\n setHeightLegend(height);\n }, 0);\n }\n }, []);\n\n const renderLegend = useMemo((): React.ReactElement | null => {\n if (!state?.legend) return null;\n\n const translate =\n state?.xAxis?.tickMargin && state?.legend?.verticalAlign !== 'top'\n ? state.xAxis.tickMargin + (state?.brush?.brushMargin || 0)\n : 0;\n\n return (\n <Legend\n {...(state.legend || null)}\n content={\n <Legends\n legend={state.legend}\n series={state.series}\n id={state.id}\n toggleChart={toggleChart}\n ref={legendRef}\n charts={charts}\n />\n }\n wrapperStyle={{\n transform: `translateY(${translate}px)`,\n }}\n />\n );\n }, [state, charts, toggleChart, legendRef]);\n\n const renderCartesianGrid = useMemo((): React.ReactElement | null => {\n if (!state?.cartesianGrid) return null;\n\n return <CartesianGrid {...state.cartesianGrid} />;\n }, [state]);\n\n const renderXAxis = useMemo((): React.ReactElement | null => {\n if (!state?.xAxis) return null;\n\n let tick;\n\n if (state?.xAxis?.tickType === 'point') {\n tick = CustomizedHOC(Tick, { xAxis: state.xAxis });\n } else if (typeof state.xAxis.tick === 'boolean') {\n tick = state.xAxis.tick;\n } else {\n tick = true;\n }\n\n return <XAxis {...state.xAxis} tick={tick} />;\n }, [state]);\n\n const renderYAxis = useMemo((): React.ReactElement | null => {\n if (!state?.yAxis) return null;\n\n let tick;\n\n if (state?.yAxis?.tick) {\n tick = CustomizedHOC(state.yAxis.tick, { state });\n } else if (typeof state.yAxis.tick === 'boolean') {\n tick = state.yAxis.tick;\n } else {\n tick = true;\n }\n\n return <YAxis {...state.yAxis} tick={tick} />;\n }, [state]);\n\n const renderBrush = useMemo((): React.ReactElement | null => {\n if (!state?.brush) return null;\n\n return <Brush y={typeof yBrush === 'number' ? yBrush : 0} {...state.brush} />;\n }, [state, yBrush]);\n\n const renderTooltip = useMemo((): React.ReactElement | null => {\n if (!state?.tooltip) return null;\n\n return (\n <Tooltip\n ref={tooltipRef}\n {...state.tooltip}\n content={CustomizedHOC(TooltipContent, { series: state.series, tooltipArrowSide })}\n />\n );\n }, [state, tooltipArrowSide]);\n\n const renderChartsItems = useMemo(() => {\n if (!state || !charts) return null;\n\n return state.series.map((item: SeriaProps) => {\n const { chart, properties, radius, labelList } = item;\n const show = charts[`${properties.dataKey}`];\n\n switch (chart) {\n case 'bar':\n return show && !item?.hide ? (\n <Bar\n key={`${state.id}-${properties.dataKey}`}\n {...properties}\n shape={<RectBar radius={radius} />}\n >\n {labelList && (\n <LabelList\n dataKey={properties.dataKey.toString()}\n {...labelList}\n content={<CustomizedLabel radius={radius} />}\n />\n )}\n {data.map((_: DataDynamicProps, index: number) => {\n const key = `${state.id}-${properties.dataKey}-${index}`;\n\n return (\n <Cell\n key={key}\n className={cn(\n styles.bar,\n typeof activeDotsState.active === 'number' &&\n activeDotsState.active !== index\n ? styles.unfocused\n : '',\n )}\n />\n );\n })}\n </Bar>\n ) : null;\n\n case 'area':\n case 'line':\n return show && !item?.hide ? (\n <Line\n key={`${state.id}-${properties.dataKey}`}\n {...properties}\n dot={\n properties.dot && properties.dotSettings\n ? CustomizedHOC(Dot, {\n activeDot: activeDotsState.active,\n dotSettings: properties.dotSettings,\n inherit: properties?.inheritStroke\n ? properties.inheritStroke\n : false,\n })\n : false\n }\n activeDot={false}\n />\n ) : null;\n\n case 'gradient':\n return show && !item?.hide ? (\n <Area\n {...item.properties}\n key={`${state.id}-${item.properties.dataKey}`}\n dataKey={`${item.properties.dataKey}`}\n stroke='transparent'\n fill={\n item.gradient.gid\n ? `url(#${state.id}-${item.gradient.gid})`\n : item.properties.fill\n }\n dot={false}\n activeDot={false}\n />\n ) : null;\n\n default:\n return null;\n }\n });\n }, [charts, state, activeDotsState, data]);\n\n // Позиционирование brush\n useEffect(() => {\n if (!state || !state.brush) return;\n if (!heightLegend || heightLegend === 0) return;\n\n const align = state?.legend?.verticalAlign;\n const legendHeight = align === 'top' ? 0 : heightLegend;\n const marginTick = state?.xAxis?.tickMargin ? state?.xAxis?.tickMargin : 0;\n const brushY =\n (svgRef.current?.clientHeight ? svgRef.current.clientHeight : 0) -\n legendHeight -\n state.brush.height -\n (state?.composeChart?.margin?.bottom ? state.composeChart.margin.bottom : 0) +\n marginTick +\n (state.brush?.brushMargin ? state.brush.brushMargin : 0);\n\n setYBrush(brushY);\n }, [heightLegend, state]);\n\n const leaveEvent = (isTooltipActive: boolean): void => {\n if (isTooltipActive) return;\n\n if (typeof activeDotsState.prev !== 'number' || typeof activeDotsState.active !== 'number')\n return;\n\n setActiveDotsState({\n prev: null,\n active: null,\n });\n };\n\n const arrowTooltipEvent = (activeCoordinate: CoordinatesProps): void => {\n if (!state?.tooltip?.arrow) return;\n\n if (state?.tooltip?.arrow && activeCoordinate?.x) {\n const side =\n (svgRef?.current?.clientWidth || 0) -\n (state?.composeChart?.margin?.right || 0) -\n activeCoordinate.x -\n (tooltipRef.current?.state?.boxWidth || 0) >\n 20;\n\n setTooltipArrowSide(side);\n }\n };\n\n const hoverEvent = (isTooltipActive: boolean, activeTooltipIndex: number | undefined): void => {\n if (!isTooltipActive) return;\n\n if (\n typeof activeDotsState.active === 'number' &&\n activeTooltipIndex === activeDotsState.active\n )\n return;\n if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.active !== 'number') {\n setActiveDotsState({\n prev: activeTooltipIndex,\n active: activeTooltipIndex,\n });\n }\n\n if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.prev === 'number') {\n setActiveDotsState((prev: ActiveDotProps) => ({\n prev: prev.active,\n active: activeTooltipIndex,\n }));\n }\n };\n\n const mouseMove = (e: any): void => {\n if (!state?.tooltip) return;\n\n arrowTooltipEvent(e.activeCoordinate);\n hoverEvent(e.isTooltipActive, e.activeTooltipIndex);\n leaveEvent(e.isTooltipActive);\n };\n\n const mouseLeave = (e: any): void => {\n if (!state?.tooltip) return;\n\n leaveEvent(e.isTooltipActive);\n };\n\n if (!data || !charts || !state) return null;\n\n return (\n <div\n className={styles.coreChart}\n ref={svgRef}\n id={state?.id || ''}\n style={{ width: '100%', height: '100%' }}\n >\n <ResponsiveContainer\n debounce={\n state?.responsiveContainer?.debounce ? state.responsiveContainer.debounce : 0\n }\n width='100%'\n >\n <ComposedChart\n {...state?.composeChart}\n onMouseMove={mouseMove}\n onMouseLeave={mouseLeave}\n data={data}\n >\n <defs>{renderGradient}</defs>\n {state.cartesianGrid && renderCartesianGrid}\n {state.xAxis && renderXAxis}\n {state.yAxis && renderYAxis}\n {renderChartsItems}\n {state.tooltip && renderTooltip}\n {state.brush && renderBrush}\n {state.legend && renderLegend}\n </ComposedChart>\n </ResponsiveContainer>\n </div>\n );\n};\n\nChart.displayName = 'Chart';\nResponsiveContainer.displayName = 'ResponsiveContainer';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;AAwCa,MAAA,KAAK,GAAG,CAAC,KAAmB,KAAI;IACzC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,GACvE,WAAW,CAAC,KAAK,CAAC;AACtB,IAAA,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAiB;AACnE,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,MAAM,EAAE,IAAI;AACf,KAAA,CAAC;IAEF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC;IACzD,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,QAAQ,CAAiB,IAAI,CAAC;IAC9E,MAAM,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AE,UAAU,EACxB,IAAI,EAAE,IAAI,EAAA;AAEV,gBAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA,EAAO,cAAc,CAAQ;gBAC5B,KAAK,CAAC,aAAa,IAAI,mBAAmB;gBAC1C,KAAK,CAAC,KAAK,IAAI,WAAW;gBAC1B,KAAK,CAAC,KAAK,IAAI,WAAW;gBAC1B,iBAAiB;gBACjB,KAAK,CAAC,OAAO,IAAI,aAAa;gBAC9B,KAAK,CAAC,KAAK,IAAI,WAAW;gBAC1B,KAAK,CAAC,MAAM,IAAI,YAAY,CACjB,CACE,CACpB;AAEd;AAEA,KAAK,CAAC,WAAW,GAAG,OAAO;AAC3B,mBAAmB,CAAC,WAAW,GAAG,qBAAqB;;;;"}
@@ -1,4 +1,2 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- declare const CustomizedLabel: React.FC<any>;
4
- export { CustomizedLabel };
2
+ export declare const CustomizedLabel: React.FC<any>;
@@ -9,3 +9,4 @@ const CustomizedLabel = ({ x, y, value, offset, radius, height, width, formatter
9
9
  };
10
10
 
11
11
  export { CustomizedLabel };
12
+ //# sourceMappingURL=CustomizedLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomizedLabel.js","sources":["../../src/components/CustomizedLabel.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React from 'react';\n\nimport { usePathBar } from '../hooks/usePathBar';\n\nexport const CustomizedLabel: React.FC<any> = ({\n x,\n y,\n value,\n offset,\n radius,\n height,\n width,\n formatter,\n}) => {\n const [initHeight] = usePathBar({ radius, height });\n\n return (\n <text\n x={x + width / 2}\n y={y + height - (initHeight + offset)}\n width={width}\n height={initHeight}\n textAnchor='middle'\n >\n <tspan x={x + width / 2}>{formatter ? formatter(value) : value}</tspan>\n </text>\n );\n};\n"],"names":[],"mappings":";;;AAAA;MAKa,eAAe,GAAkB,CAAC,EAC3C,CAAC,EACD,CAAC,EACD,KAAK,EACL,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EACL,SAAS,GACZ,KAAI;AACD,IAAA,MAAM,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAEnD,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACI,CAAC,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,EAChB,CAAC,EAAE,CAAC,GAAG,MAAM,IAAI,UAAU,GAAG,MAAM,CAAC,EACrC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,UAAU,EAClB,UAAU,EAAC,QAAQ,EAAA;QAEnB,KAAO,CAAA,aAAA,CAAA,OAAA,EAAA,EAAA,CAAC,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,EAAG,EAAA,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK,CAAS,CACpE;AAEf;;;;"}
@@ -1,19 +1,18 @@
1
- /* hash: 1ua4x */
2
- .chart__dotUnfocused_1yhxl {
1
+ .chart__dotUnfocused_h58u9 {
3
2
  opacity: 0.3;
4
3
  }
5
4
 
6
- .chart__dot_1yhxl,
7
- .chart__dotItem_1yhxl,
8
- .chart__dotWrap_1yhxl {
5
+ .chart__dot_h58u9,
6
+ .chart__dotItem_h58u9,
7
+ .chart__dotWrap_h58u9 {
9
8
  transition: all 0.2s ease;
10
9
  }
11
10
 
12
- .chart__dot_1yhxl {
13
- animation: chart__showDot_1yhxl 0.5s ease;
11
+ .chart__dot_h58u9 {
12
+ animation: chart__showDot_h58u9 0.5s ease;
14
13
  }
15
14
 
16
- @keyframes chart__showDot_1yhxl {
15
+ @keyframes chart__showDot_h58u9 {
17
16
  from {
18
17
  opacity: 0;
19
18
  }
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- import { DotProps } from "../../types/utils/dot.types";
4
- declare const Dot: React.ForwardRefExoticComponent<DotProps & React.RefAttributes<SVGSVGElement>>;
5
- export { Dot };
2
+ import { DotProps } from '../../types/utils/dot.types';
3
+ export declare const Dot: React.ForwardRefExoticComponent<DotProps & React.RefAttributes<SVGSVGElement>>;
@@ -1,9 +1,7 @@
1
1
  import React, { useState, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { PointIcon } from '../../icons/Point.js';
4
-
5
- const styles = {"dotUnfocused":"chart__dotUnfocused_1yhxl","dot":"chart__dot_1yhxl","dotItem":"chart__dotItem_1yhxl","dotWrap":"chart__dotWrap_1yhxl","showDot":"chart__showDot_1yhxl"};
6
- require('./index.css')
4
+ import styles from './index.module.css.js';
7
5
 
8
6
  const Dot = React.forwardRef(({ cx, cy, index, activeDot, dataKey, dotSettings, value, stroke }, ref) => {
9
7
  const [windowWidth, setWindowWidth] = useState(0);
@@ -43,3 +41,4 @@ const Dot = React.forwardRef(({ cx, cy, index, activeDot, dataKey, dotSettings,
43
41
  });
44
42
 
45
43
  export { Dot };
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Dot/index.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport cn from 'classnames';\n\nimport { PointIcon } from '../../icons/Point';\nimport { DotProps, DotSettingProps } from '../../types/utils/dot.types';\n\nimport styles from './index.module.css';\n\nexport const Dot = React.forwardRef<SVGSVGElement, DotProps>(\n (\n { cx, cy, index, activeDot, dataKey, dotSettings, value, stroke },\n ref,\n ): React.ReactElement | null => {\n const [windowWidth, setWindowWidth] = useState<number>(0);\n\n const [height, setHeight] = useState<number>(0);\n const [width, setWidth] = useState<number>(0);\n const [option, setOption] = useState<DotSettingProps | null>(null);\n\n useEffect(() => {\n let dotSetting: DotSettingProps =\n Array.isArray(dotSettings) && dotSettings.length > 0\n ? dotSettings.find((item) => item.media && windowWidth < item.media)\n : dotSettings;\n\n if (Array.isArray(dotSettings) && dotSettings.length > 0 && !dotSetting) {\n dotSetting = dotSettings[dotSettings.length - 1];\n }\n\n setWindowWidth(window.innerWidth);\n setOption(dotSetting);\n }, [dotSettings, windowWidth]);\n\n useEffect(() => {\n if (!option) return;\n\n if (typeof activeDot === 'number' && activeDot === index) {\n setHeight(option.height * option.scale);\n setWidth(option.width * option.scale);\n } else {\n setHeight(option.height * option.initScale);\n setWidth(option.width * option.initScale);\n }\n }, [activeDot, index, option]);\n\n if (!value) return null;\n\n return (\n <g\n ref={ref}\n className={cn(styles.dot)}\n transform={`translate(${cx - width / 2}, ${cy - height / 2})`}\n >\n <g\n className={cn(styles.dotWrap)}\n transform={`scale(${\n activeDot === index ? option?.scale || 0 : option?.initScale || 0\n })`}\n >\n <svg\n className={cn(\n styles.dotItem,\n activeDot === index ? styles.dotActive : '',\n typeof activeDot === 'number' && activeDot !== index\n ? styles.dotUnfocused\n : '',\n )}\n data-id={index}\n data-name={dataKey}\n width={option?.width || 0}\n height={option?.height || 0}\n >\n <PointIcon fill={stroke} />\n </svg>\n </g>\n </g>\n );\n },\n);\n"],"names":[],"mappings":";;;;;AAQO,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAC/B,CACI,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,EACjE,GAAG,KACwB;IAC3B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IAEzD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IAC/C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IAC7C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAyB,IAAI,CAAC;IAElE,SAAS,CAAC,MAAK;AACX,QAAA,IAAI,UAAU,GACV,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,MAAM,GAAG;AAC/C,cAAE,WAAW,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AAA,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAC7B,SAAS,EAAE,CAAA,MAAA,EACP,SAAS,KAAK,KAAK,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC,GAAG,MAAM,EAAE,SAAS,IAAI,CACpE,CAAG,CAAA,CAAA,EAAA;AAEH,YAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,OAAO,EACd,SAAS,KAAK,KAAK,GAAG,MAAM,CAAC,SAAS,GAAG,EAAE,EAC3C,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK;sBACzC,MAAM,CAAC;sBACP,EAAE,CACX,EAAA,SAAA,EACQ,KAAK,EACH,WAAA,EAAA,OAAO,EAClB,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC,EACzB,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,EAAA;gBAE3B,KAAC,CAAA,aAAA,CAAA,SAAS,EAAC,EAAA,IAAI,EAAE,MAAM,GAAI,CACzB,CACN,CACJ;AAEZ,CAAC;;;;"}
@@ -0,0 +1,6 @@
1
+ import './index.css';
2
+
3
+ const styles = {"dotUnfocused":"chart__dotUnfocused_h58u9","dot":"chart__dot_h58u9","dotItem":"chart__dotItem_h58u9","dotWrap":"chart__dotWrap_h58u9"};
4
+
5
+ export { styles as default };
6
+ //# sourceMappingURL=index.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.module.css.js","sources":["../../src/components/Dot/index.module.css"],"sourcesContent":[".dotUnfocused {\n opacity: 0.3;\n}\n\n.dot,\n.dotItem,\n.dotWrap {\n transition: all 0.2s ease;\n}\n\n.dot {\n animation: showDot 0.5s ease;\n}\n\n@keyframes showDot {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,cAAc,CAAC,2BAA2B,CAAC,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,sBAAuD,CAAC;;;;"}