@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
@@ -14,3 +14,4 @@ const Tick = ({ y, payload, tickFormatter, xAxis }) => {
14
14
  };
15
15
 
16
16
  export { Tick };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Tick/index.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { TickProps } from '../../types/utils/tick.types';\n\nimport styles from './index.module.css';\n\nexport const Tick = ({ y, payload, tickFormatter, xAxis }: TickProps) => {\n const radius = 4;\n\n const marginTick =\n xAxis?.tickMargin &&\n (xAxis.tickMargin > 0 ? xAxis.tickMargin - radius / 2 : xAxis.tickMargin === 0)\n ? (radius / 2) * -1\n : null;\n\n return (\n <g\n className={cn(styles.tick)}\n opacity='1'\n textAnchor='middle'\n transform={`translate(${payload.coordinate}, ${\n y - (typeof marginTick === 'number' ? marginTick : 0) - radius * 2\n })`}\n >\n <text className={cn(styles.tickText)} y='30'>\n {tickFormatter ? tickFormatter(payload.value) : payload.value}\n </text>\n <circle r={radius} className={cn(styles.circle)} />\n </g>\n );\n};\n"],"names":[],"mappings":";;;;AAOO,MAAM,IAAI,GAAG,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,KAAK,EAAa,KAAI;IACpE,MAAM,MAAM,GAAG,CAAC;AAEhB,IAAA,MAAM,UAAU,GACZ,KAAK,EAAE,UAAU;SAChB,KAAK,CAAC,UAAU,GAAG,CAAC,GAAG,KAAK,CAAC,UAAU,GAAG,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,UAAU,KAAK,CAAC;UACxE,CAAC,MAAM,GAAG,CAAC,IAAI;UACf,IAAI;IAEd,QACI,2BACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAC1B,OAAO,EAAC,GAAG,EACX,UAAU,EAAC,QAAQ,EACnB,SAAS,EAAE,CAAa,UAAA,EAAA,OAAO,CAAC,UAAU,CAAA,EAAA,EACtC,CAAC,IAAI,OAAO,UAAU,KAAK,QAAQ,GAAG,UAAU,GAAG,CAAC,CAAC,GAAG,MAAM,GAAG,CACrE,CAAG,CAAA,CAAA,EAAA;AAEH,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAC,IAAI,EACvC,EAAA,aAAa,GAAG,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,KAAK,CAC1D;AACP,QAAA,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAI,CAAA,CACnD;AAEZ;;;;"}
@@ -1,5 +1,3 @@
1
- /* */
2
-
3
1
  .tickText {
4
2
  fill: var(--color-light-text-primary);
5
3
  font-size: 16px;
@@ -1,11 +1,9 @@
1
- /// <reference types="react" />
2
1
  import React from 'react';
3
- import { PayloadProps } from "../../types/payload.types";
4
- import { SeriaProps } from "../../types/seria.types";
5
- import { TooltipProps } from "../../types/tooltip.types";
6
- interface TooltipContentProps extends TooltipProps {
2
+ import { PayloadProps } from '../../types/payload.types';
3
+ import { SeriaProps } from '../../types/seria.types';
4
+ import { TooltipProps } from '../../types/tooltip.types';
5
+ export interface TooltipContentProps extends TooltipProps {
7
6
  payload: PayloadProps[];
8
7
  series: SeriaProps[];
9
8
  }
10
- declare const TooltipContent: ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }: TooltipContentProps) => React.JSX.Element | null;
11
- export { TooltipContentProps, TooltipContent };
9
+ export declare const TooltipContent: ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }: TooltipContentProps) => React.JSX.Element | null;
@@ -24,3 +24,4 @@ const TooltipContent = ({ payload, separator, label, tooltipArrowSide, arrow, se
24
24
  };
25
25
 
26
26
  export { TooltipContent };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/TooltipContent/index.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\n\nimport { Text } from '@alfalab/core-components-typography';\n\nimport { PayloadProps } from '../../types/payload.types';\nimport { SeriaProps } from '../../types/seria.types';\nimport { TooltipProps } from '../../types/tooltip.types';\n\nimport styles from './index.module.css';\n\nexport interface TooltipContentProps extends TooltipProps {\n payload: PayloadProps[];\n series: SeriaProps[];\n}\n\nexport const TooltipContent = ({\n payload,\n separator,\n label,\n tooltipArrowSide,\n arrow,\n series,\n labelFormatter,\n labelStyle,\n}: TooltipContentProps) => {\n if (!label || payload.length === 0) return null;\n\n return (\n <div className={cn(styles.tooltip)}>\n {arrow && (\n <span\n className={cn(\n styles.tooltipArrow,\n tooltipArrowSide ? '' : styles.tooltipArrowRight,\n )}\n />\n )}\n <ul className={cn(styles.tooltipList)}>\n <li className={cn(styles.tooltipItem)} style={labelStyle}>\n <Text\n view='primary-medium'\n tag='span'\n weight='medium'\n className={cn(styles.tooltipLabel)}\n >\n {labelFormatter ? labelFormatter(label) : label}\n </Text>\n </li>\n {payload.map((entry: PayloadProps) => {\n const data: SeriaProps | undefined = series.find(\n (d: SeriaProps) => d.properties.dataKey === entry.dataKey,\n );\n\n if (data?.hideTooltip || data?.hide) return null;\n\n return (\n <li\n className={cn(styles.tooltipItem)}\n key={entry.dataKey}\n style={{ color: entry.color }}\n >\n <Text\n view='primary-medium'\n tag='span'\n weight='medium'\n className={cn(styles.tooltipValue)}\n >\n {entry?.formatter ? entry.formatter(entry.value) : entry.value}\n {separator || ' '}\n </Text>\n <Text\n view='secondary-large'\n tag='span'\n className={cn(styles.tooltipName)}\n >{`${entry.name}`}</Text>\n </li>\n );\n })}\n </ul>\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;MAgBa,cAAc,GAAG,CAAC,EAC3B,OAAO,EACP,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,KAAK,EACL,MAAM,EACN,cAAc,EACd,UAAU,GACQ,KAAI;AACtB,IAAA,IAAI,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,IAAI;IAE/C,QACI,6BAAK,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAA;QAC7B,KAAK,KACF,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACI,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,YAAY,EACnB,gBAAgB,GAAG,EAAE,GAAG,MAAM,CAAC,iBAAiB,CACnD,EAAA,CACH,CACL;AACD,QAAA,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,EAAA;YACjC,KAAI,CAAA,aAAA,CAAA,IAAA,EAAA,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,UAAU,EAAA;AACpD,gBAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EACD,EAAA,IAAI,EAAC,gBAAgB,EACrB,GAAG,EAAC,MAAM,EACV,MAAM,EAAC,QAAQ,EACf,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,EAAA,EAEjC,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAC5C,CACN;AACJ,YAAA,OAAO,CAAC,GAAG,CAAC,CAAC,KAAmB,KAAI;gBACjC,MAAM,IAAI,GAA2B,MAAM,CAAC,IAAI,CAC5C,CAAC,CAAa,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,CAC5D;AAED,gBAAA,IAAI,IAAI,EAAE,WAAW,IAAI,IAAI,EAAE,IAAI;AAAE,oBAAA,OAAO,IAAI;gBAEhD,QACI,KACI,CAAA,aAAA,CAAA,IAAA,EAAA,EAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,EACjC,GAAG,EAAE,KAAK,CAAC,OAAO,EAClB,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,EAAA;oBAE7B,KAAC,CAAA,aAAA,CAAA,IAAI,IACD,IAAI,EAAC,gBAAgB,EACrB,GAAG,EAAC,MAAM,EACV,MAAM,EAAC,QAAQ,EACf,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,EAAA;AAEjC,wBAAA,KAAK,EAAE,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK;wBAC7D,SAAS,IAAI,GAAG,CACd;oBACP,KAAC,CAAA,aAAA,CAAA,IAAI,EACD,EAAA,IAAI,EAAC,iBAAiB,EACtB,GAAG,EAAC,MAAM,EACV,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,EAAA,EACnC,CAAG,EAAA,KAAK,CAAC,IAAI,CAAE,CAAA,CAAQ,CACxB;AAEb,aAAC,CAAC,CACD,CACH;AAEd;;;;"}
@@ -1,5 +1,3 @@
1
- /* */
2
-
3
1
  .tooltip {
4
2
  background-color: var(--color-light-base-bg-primary);
5
3
  border: 1px solid var(--color-light-neutral-400);
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CustomizedHOC: (Component: any, options: any) => (props: any) => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+
3
+ /* eslint-disable @typescript-eslint/no-explicit-any */
4
+ const CustomizedHOC = (Component, options) => {
5
+ const NewComponent = (props) => React.createElement(Component, { ...props, ...options });
6
+ return NewComponent;
7
+ };
8
+
9
+ export { CustomizedHOC };
10
+ //# sourceMappingURL=Customized.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Customized.js","sources":["../../src/hoc/Customized.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React from 'react';\n\nexport const CustomizedHOC = (Component: any, options: any) => {\n const NewComponent = (props: any) => <Component {...props} {...options} />;\n\n return NewComponent;\n};\n"],"names":[],"mappings":";;AAAA;MAGa,aAAa,GAAG,CAAC,SAAc,EAAE,OAAY,KAAI;AAC1D,IAAA,MAAM,YAAY,GAAG,CAAC,KAAU,KAAK,KAAC,CAAA,aAAA,CAAA,SAAS,EAAK,EAAA,GAAA,KAAK,EAAM,GAAA,OAAO,GAAI;AAE1E,IAAA,OAAO,YAAY;AACvB;;;;"}
@@ -1,5 +1,5 @@
1
- import { RadiusProp } from "../../types/seria.types";
2
- type usePathBarProps = {
1
+ import { RadiusProp } from '../../types/seria.types';
2
+ export declare type usePathBarProps = {
3
3
  radius?: RadiusProp;
4
4
  height: number;
5
5
  background?: {
@@ -10,5 +10,4 @@ type usePathBarProps = {
10
10
  };
11
11
  y?: number;
12
12
  };
13
- declare const usePathBar: (props: usePathBarProps) => number[];
14
- export { usePathBarProps, usePathBar };
13
+ export declare const usePathBar: (props: usePathBarProps) => number[];
@@ -35,3 +35,4 @@ const usePathBar = (props) => {
35
35
  };
36
36
 
37
37
  export { usePathBar };
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/hooks/usePathBar/index.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nimport { RadiusProp } from '../../types/seria.types';\n\nimport { getRadius } from './utils/getRadius';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport type usePathBarProps = {\n radius?: RadiusProp;\n height: number;\n background?: {\n x: number;\n y: number;\n height: number;\n width: number;\n };\n y?: number;\n};\n\nexport const usePathBar = (props: usePathBarProps): number[] => {\n const [topRadius, setTopRadius] = useState<number>(0);\n const [bottomRadius, setBottomRadius] = useState<number>(0);\n const [initHeight, setInitHeight] = useState<number>(0);\n const [initY, setInitY] = useState<number>(0);\n\n useEffect(() => {\n const { radius, height, background, y } = props;\n const radiusTop = radius?.top ? getRadius(height, radius.top) : 0;\n const radiusBottom = radius?.bottom ? getRadius(height, radius.bottom) : 0;\n\n const heightCheck =\n (radius && height !== 0 && height / 2 < (radius?.top || 0)) ||\n height / 2 < (radius?.bottom || 0);\n\n // eslint-disable-next-line no-nested-ternary\n const heightInit = heightCheck\n ? (radiusTop || radiusBottom) && radiusTop + radiusBottom\n : height > 0 && height < 2\n ? 2\n : height;\n\n if (background && y) {\n const yInit = heightCheck\n ? background.height + background.y - (radiusTop + radiusBottom)\n : y;\n\n setInitY(yInit);\n }\n\n if (radiusTop !== 0) setTopRadius(radiusTop);\n if (radiusBottom !== 0) setBottomRadius(radiusBottom);\n if (heightInit !== 0) setInitHeight(heightInit);\n }, [props]);\n\n return [initHeight, topRadius, bottomRadius, initY];\n};\n"],"names":[],"mappings":";;;AAmBa,MAAA,UAAU,GAAG,CAAC,KAAsB,KAAc;IAC3D,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IACrD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IAC3D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IACvD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IAE7C,SAAS,CAAC,MAAK;QACX,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,KAAK;QAC/C,MAAM,SAAS,GAAG,MAAM,EAAE,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC;QACjE,MAAM,YAAY,GAAG,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;QAE1E,MAAM,WAAW,GACb,CAAC,MAAM,IAAI,MAAM,KAAK,CAAC,IAAI,MAAM,GAAG,CAAC,IAAI,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;YAC1D,MAAM,GAAG,CAAC,IAAI,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC;;QAGtC,MAAM,UAAU,GAAG;cACb,CAAC,SAAS,IAAI,YAAY,KAAK,SAAS,GAAG;AAC7C,cAAE,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG;AACzB,kBAAE;kBACA,MAAM;QAEZ,IAAI,UAAU,IAAI,CAAC,EAAE;YACjB,MAAM,KAAK,GAAG;AACV,kBAAE,UAAU,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC,IAAI,SAAS,GAAG,YAAY;kBAC5D,CAAC;YAEP,QAAQ,CAAC,KAAK,CAAC;AAClB;QAED,IAAI,SAAS,KAAK,CAAC;YAAE,YAAY,CAAC,SAAS,CAAC;QAC5C,IAAI,YAAY,KAAK,CAAC;YAAE,eAAe,CAAC,YAAY,CAAC;QACrD,IAAI,UAAU,KAAK,CAAC;YAAE,aAAa,CAAC,UAAU,CAAC;AACnD,KAAC,EAAE,CAAC,KAAK,CAAC,CAAC;IAEX,OAAO,CAAC,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC;AACvD;;;;"}
@@ -1,2 +1 @@
1
- declare const getRadius: (height: number, radius: number) => number;
2
- export { getRadius };
1
+ export declare const getRadius: (height: number, radius: number) => number;
@@ -4,3 +4,4 @@ const getRadius = (height, radius) => {
4
4
  };
5
5
 
6
6
  export { getRadius };
7
+ //# sourceMappingURL=getRadius.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRadius.js","sources":["../../../../src/hooks/usePathBar/utils/getRadius.ts"],"sourcesContent":["export const getRadius = (height: number, radius: number): number => {\n const result = radius && height / 2 < radius ? Math.ceil(height / 2) : radius || 0;\n\n return result;\n};\n"],"names":[],"mappings":"MAAa,SAAS,GAAG,CAAC,MAAc,EAAE,MAAc,KAAY;IAChE,MAAM,MAAM,GAAG,MAAM,IAAI,MAAM,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC;AAElF,IAAA,OAAO,MAAM;AACjB;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { OptionsProps } from "../../types/options.types";
3
- import { DataDynamicBooleanProps, DataDynamicProps } from "../../types/utils/data.types";
4
- type Settings = [
2
+ import { OptionsProps } from '../../types/options.types';
3
+ import { DataDynamicBooleanProps, DataDynamicProps } from '../../types/utils/data.types';
4
+ declare type Settings = [
5
5
  {
6
6
  state: OptionsProps | null;
7
7
  data: DataDynamicProps[];
@@ -15,5 +15,5 @@ type Settings = [
15
15
  setFilterCount: Dispatch<SetStateAction<number>>;
16
16
  }
17
17
  ];
18
- declare const useSettings: (options: OptionsProps) => Settings;
19
- export { useSettings };
18
+ export declare const useSettings: (options: OptionsProps) => Settings;
19
+ export {};
@@ -41,3 +41,4 @@ const useSettings = (options) => {
41
41
  };
42
42
 
43
43
  export { useSettings };
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/hooks/useSettings/index.tsx"],"sourcesContent":["import { Dispatch, SetStateAction, useEffect, useState } from 'react';\n\nimport { OptionsProps } from '../../types/options.types';\nimport { DataDynamicBooleanProps, DataDynamicProps } from '../../types/utils/data.types';\n\nimport { setComposedChartsMargin } from './utils/setComposedChartsMargin';\nimport { setDatas } from './utils/setDatas';\nimport { setGradientCharts } from './utils/setGradientCharts';\nimport { setLegendMargin } from './utils/setLegendMargin';\nimport { sortByIndex } from './utils/sortByIndex';\n\ntype Settings = [\n {\n state: OptionsProps | null;\n data: DataDynamicProps[];\n charts: DataDynamicBooleanProps;\n filterCount: number;\n },\n {\n setState: Dispatch<SetStateAction<OptionsProps | null>>;\n setData: Dispatch<SetStateAction<DataDynamicProps[]>>;\n setCharts: Dispatch<SetStateAction<DataDynamicBooleanProps>>;\n setFilterCount: Dispatch<SetStateAction<number>>;\n },\n];\n\nexport const useSettings = (options: OptionsProps): Settings => {\n const [state, setState] = useState<OptionsProps | null>(null);\n const [charts, setCharts] = useState<DataDynamicBooleanProps>({});\n const [data, setData] = useState<DataDynamicProps[]>([]);\n const [filterCount, setFilterCount] = useState<number>(0);\n\n useEffect(() => {\n const settings: OptionsProps = { ...options };\n const { brush, legend, series, labels, composeChart, xAxis } = settings;\n\n if (settings.legend?.margin && brush && legend)\n settings.legend.margin.top = setLegendMargin(brush, legend);\n\n settings.series = setGradientCharts(series);\n const [initData, chartsNames, count] = setDatas(settings.series, labels);\n\n settings.composeChart.margin = setComposedChartsMargin(composeChart, legend, brush, xAxis);\n settings.series = sortByIndex(settings.series);\n\n setState(settings);\n setData(initData);\n setCharts(chartsNames);\n setFilterCount(count);\n }, [options]);\n\n return [\n {\n state,\n data,\n charts,\n filterCount,\n },\n {\n setState,\n setData,\n setCharts,\n setFilterCount,\n },\n ];\n};\n"],"names":[],"mappings":";;;;;;;AA0Ba,MAAA,WAAW,GAAG,CAAC,OAAqB,KAAc;IAC3D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAsB,IAAI,CAAC;IAC7D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAA0B,EAAE,CAAC;IACjE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAqB,EAAE,CAAC;IACxD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IAEzD,SAAS,CAAC,MAAK;AACX,QAAA,MAAM,QAAQ,GAAiB,EAAE,GAAG,OAAO,EAAE;AAC7C,QAAA,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,QAAQ;QAEvE,IAAI,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,KAAK,IAAI,MAAM;AAC1C,YAAA,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC;AAE/D,QAAA,QAAQ,CAAC,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC;AAC3C,QAAA,MAAM,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;AAExE,QAAA,QAAQ,CAAC,YAAY,CAAC,MAAM,GAAG,uBAAuB,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;QAC1F,QAAQ,CAAC,MAAM,GAAG,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC;QAE9C,QAAQ,CAAC,QAAQ,CAAC;QAClB,OAAO,CAAC,QAAQ,CAAC;QACjB,SAAS,CAAC,WAAW,CAAC;QACtB,cAAc,CAAC,KAAK,CAAC;AACzB,KAAC,EAAE,CAAC,OAAO,CAAC,CAAC;IAEb,OAAO;AACH,QAAA;YACI,KAAK;YACL,IAAI;YACJ,MAAM;YACN,WAAW;AACd,SAAA;AACD,QAAA;YACI,QAAQ;YACR,OAAO;YACP,SAAS;YACT,cAAc;AACjB,SAAA;KACJ;AACL;;;;"}
@@ -1,12 +1,12 @@
1
- import { BrushProps } from "../../../types/brush.types";
2
- import { ComposedChartProps } from "../../../types/composedChart.types";
3
- import { LegendProps } from "../../../types/legend.types";
4
- import { XAxisProps } from "../../../types/xAxis.types";
5
- type ComposedChartsMarginResultProps = {
1
+ import { BrushProps } from '../../../types/brush.types';
2
+ import { ComposedChartProps } from '../../../types/composedChart.types';
3
+ import { LegendProps } from '../../../types/legend.types';
4
+ import { XAxisProps } from '../../../types/xAxis.types';
5
+ declare type ComposedChartsMarginResultProps = {
6
6
  top: number;
7
7
  bottom: number;
8
8
  left: number;
9
9
  right: number;
10
10
  };
11
- declare const setComposedChartsMargin: (composeChart: ComposedChartProps, legend: LegendProps | undefined, brush: BrushProps | undefined, xAxis: XAxisProps) => ComposedChartsMarginResultProps;
12
- export { setComposedChartsMargin };
11
+ export declare const setComposedChartsMargin: (composeChart: ComposedChartProps, legend: LegendProps | undefined, brush: BrushProps | undefined, xAxis: XAxisProps) => ComposedChartsMarginResultProps;
12
+ export {};
@@ -10,3 +10,4 @@ const setComposedChartsMargin = (composeChart, legend, brush, xAxis) => ({
10
10
  });
11
11
 
12
12
  export { setComposedChartsMargin };
13
+ //# sourceMappingURL=setComposedChartsMargin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setComposedChartsMargin.js","sources":["../../../../src/hooks/useSettings/utils/setComposedChartsMargin.ts"],"sourcesContent":["import { BrushProps } from '../../../types/brush.types';\nimport { ComposedChartProps } from '../../../types/composedChart.types';\nimport { LegendProps } from '../../../types/legend.types';\nimport { XAxisProps } from '../../../types/xAxis.types';\n\ntype ComposedChartsMarginResultProps = {\n top: number;\n bottom: number;\n left: number;\n right: number;\n};\n\nexport const setComposedChartsMargin = (\n composeChart: ComposedChartProps,\n legend: LegendProps | undefined,\n brush: BrushProps | undefined,\n xAxis: XAxisProps,\n): ComposedChartsMarginResultProps => ({\n top:\n (composeChart?.initMargin?.top || 0) +\n (legend?.verticalAlign === 'top' && legend?.marginTop ? Math.abs(legend.marginTop) : 0),\n bottom:\n (composeChart?.initMargin?.bottom || 0) +\n (xAxis?.tickMargin || 0) +\n (brush?.brushMargin || 0) +\n (legend?.verticalAlign !== 'top' && legend?.marginTop ? legend.marginTop : 0),\n left: composeChart?.initMargin?.left || 0,\n right: composeChart?.initMargin?.right || 0,\n});\n"],"names":[],"mappings":"AAYO,MAAM,uBAAuB,GAAG,CACnC,YAAgC,EAChC,MAA+B,EAC/B,KAA6B,EAC7B,KAAiB,MACkB;IACnC,GAAG,EACC,CAAC,YAAY,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;SAClC,MAAM,EAAE,aAAa,KAAK,KAAK,IAAI,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3F,MAAM,EACF,CAAC,YAAY,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACtC,SAAC,KAAK,EAAE,UAAU,IAAI,CAAC,CAAC;AACxB,SAAC,KAAK,EAAE,WAAW,IAAI,CAAC,CAAC;AACzB,SAAC,MAAM,EAAE,aAAa,KAAK,KAAK,IAAI,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,SAAS,GAAG,CAAC,CAAC;AACjF,IAAA,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,IAAI,CAAC;AACzC,IAAA,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;AAC9C,CAAA;;;;"}
@@ -1,5 +1,5 @@
1
- import { SeriaProps } from "../../../types/seria.types";
2
- import { DataDynamicBooleanProps, DataDynamicProps } from "../../../types/utils/data.types";
3
- type DatasResultProps = [DataDynamicProps[], DataDynamicBooleanProps, number];
4
- declare const setDatas: (series: SeriaProps[], labels: Array<string | number>) => DatasResultProps;
5
- export { setDatas };
1
+ import { SeriaProps } from '../../../types/seria.types';
2
+ import { DataDynamicBooleanProps, DataDynamicProps } from '../../../types/utils/data.types';
3
+ declare type DatasResultProps = [DataDynamicProps[], DataDynamicBooleanProps, number];
4
+ export declare const setDatas: (series: SeriaProps[], labels: Array<string | number>) => DatasResultProps;
5
+ export {};
@@ -30,3 +30,4 @@ const setDatas = (series, labels) => {
30
30
  };
31
31
 
32
32
  export { setDatas };
33
+ //# sourceMappingURL=setDatas.js.map
@@ -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":[],"mappings":"MASa,QAAQ,GAAG,CACpB,MAAoB,EACpB,MAA8B,KACZ;IAClB,MAAM,QAAQ,GAAuB,EAAE;IACvC,MAAM,WAAW,GAA4B,EAAE;IAC/C,IAAI,KAAK,GAAG,CAAC;AAEb,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,MAAM,EACF,UAAU,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,GAAG,EAAE,EACjC,IAAI,EAAE,SAAS,GAAG,EAAE,EACpB,UAAU,EACV,IAAI,GACP,GAAG,MAAM,CAAC,CAAC,CAAC;AAEb,QAAA,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI;YAAE,KAAK,IAAI,CAAC;AAEpC,QAAA,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,KAAI;AACjB,YAAA,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAY,KAAK,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC;AAEhE,YAAA,IAAI,IAAI,EAAE;AACN,gBAAA,MAAM,GAAG,GAAqB;oBAC1B,KAAK;iBACR;gBAED,GAAG,CAAC,GAAG,OAAO,CAAA,CAAE,CAAC,GAAG,IAAI,CAAC,KAAK;AAE9B,gBAAA,IAAI,CAAC,WAAW,CAAC,CAAG,EAAA,OAAO,EAAE,CAAC;AAAE,oBAAA,WAAW,CAAC,CAAG,EAAA,OAAO,EAAE,CAAC,GAAG,IAAI;gBAEhE,MAAM,KAAK,GAAG;qBACT,GAAG,CAAC,CAAC,QAA0B,KAAK,QAAQ,CAAC,KAAK;qBAClD,OAAO,CAAC,KAAK,CAAC;gBAEnB,IAAI,KAAK,KAAK,EAAE;AAAE,oBAAA,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;;AAC/B,oBAAA,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,EAAE;AACxD;AAED,YAAA,OAAO,IAAI;AACf,SAAC,CAAC;AACL;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[];
@@ -33,3 +33,4 @@ const setGradientCharts = (series) => {
33
33
  };
34
34
 
35
35
  export { setGradientCharts };
36
+ //# 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":[],"mappings":"AAGa,MAAA,iBAAiB,GAAG,CAAC,MAAoB,KAAkB;AACpE,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,KAAK,UAAU,CAAC;IAEvE,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,KAAmB,EAAE,IAAgB,KAAI;AACjE,QAAA,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI;QAErD,IAAI,KAAK,KAAK,MAAM,EAAE;YAClB,IAAI,OAAO,GAAG,IAAI;AAElB,YAAA,IAAI,MAAM,EAAE;gBACR,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAY,KAAI;AACrC,oBAAA,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC;oBAE1B,OAAO;wBACH,KAAK;wBACL,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;qBAC3C;AACL,iBAAC,CAAC;AACL;YAED,KAAK,CAAC,IAAI,CAAC;AACP,gBAAA,GAAG,IAAI;gBACP,MAAM,EAAE,IAAI;AACZ,gBAAA,KAAK,EAAE,UAAU;AACjB,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,WAAW,EAAE,IAAI;AACjB,gBAAA,UAAU,EAAE;oBACR,GAAG,IAAI,CAAC,UAAU;AAClB,oBAAA,OAAO,EAAE,CAAG,EAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAW,SAAA,CAAA;oBAC9C,IAAI;AACP,iBAAA;AACD,gBAAA,IAAI,EAAE,OAAO,IAAI,IAAI,CAAC,IAAI;AAC7B,aAAA,CAAC;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;
@@ -12,3 +12,4 @@ const setLegendMargin = (brush, legend) => {
12
12
  };
13
13
 
14
14
  export { setLegendMargin };
15
+ //# 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":"MAGa,eAAe,GAAG,CAAC,KAAiB,EAAE,MAAmB,KAAY;IAC9E,IAAI,GAAG,GAAG,CAAC;IAEX,IAAI,OAAO,KAAK,EAAE,WAAW,KAAK,QAAQ,IAAI,CAAC,MAAM,EAAE,aAAa;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;QACH,GAAG,GAAG,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,KAAK,EAAE,WAAW,IAAI,CAAC,CAAC,GAAG,KAAK,EAAE,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[];
@@ -6,3 +6,4 @@ const sortByIndex = (series) => series.sort((a, b) => {
6
6
  });
7
7
 
8
8
  export { sortByIndex };
9
+ //# 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":"AAEa,MAAA,WAAW,GAAG,CAAC,MAAoB,KAC5C,MAAM,CAAC,IAAI,CAAC,CAAC,CAAa,EAAE,CAAa,KAAI;AACzC,IAAA,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,MAAM,EAAE;AACjD,QAAA,OAAO,CAAC;AACX;IAED,OAAO,EAAE;AACb,CAAC;;;;"}
@@ -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 {};
@@ -4,3 +4,4 @@ const CircleIcon = ({ fill = '#FF5C5C', height = 16 }) => (React.createElement("
4
4
  React.createElement("circle", { cx: '8', cy: '8', r: '8', fill: fill })));
5
5
 
6
6
  export { CircleIcon };
7
+ //# 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":[],"mappings":";;AAOO,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,MAAM,GAAG,EAAE,EAAS,MAC/D,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;AACnF,IAAA,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAI,CAAA,CACxC;;;;"}
@@ -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 {};
@@ -5,3 +5,4 @@ const CircleLineIcon = ({ fill = '#FF5C5C', height = 16 }) => (React.createEleme
5
5
  React.createElement("rect", { y: '5', width: '22', height: '2', fill: fill })));
6
6
 
7
7
  export { CircleLineIcon };
8
+ //# 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":[],"mappings":";;AAOO,MAAM,cAAc,GAAG,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,MAAM,GAAG,EAAE,EAAS,MACnE,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;AACnF,IAAA,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAI,CAAA;AAC3C,IAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAI,CAAA,CAC9C;;;;"}
@@ -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 {};
@@ -8,3 +8,4 @@ const FilledCircleIcon = ({ fill = '#5A8ECF', height = 16 }) => (React.createEle
8
8
  React.createElement("stop", { offset: '1', stopColor: fill, stopOpacity: '0' })))));
9
9
 
10
10
  export { FilledCircleIcon };
11
+ //# 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":[],"mappings":";;AAOO,MAAM,gBAAgB,GAAG,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,MAAM,GAAG,EAAE,EAAS,MACrE,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;IACnF,KAAQ,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,IAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA;QACI,KACI,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,YAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,IAAI,EAAE,WAAW,EAAC,KAAK,EAAG,CAAA;AAC3C,YAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAC,GAAG,EAAG,CAAA,CACvC,CACd,CACL;;;;"}
@@ -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 {};
@@ -5,3 +5,4 @@ const PointIcon = ({ fill = '#5A8ECF', height = 16 }) => (React.createElement("s
5
5
  React.createElement("circle", { cx: '9', cy: '9', r: '3', strokeWidth: '2', stroke: '#fff', fill: fill })));
6
6
 
7
7
  export { PointIcon };
8
+ //# 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":[],"mappings":";;AAOa,MAAA,SAAS,GAAG,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,MAAM,GAAG,EAAE,EAAS,MAC9D,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAA;IACpC,KAAQ,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;IAC5E,KAAQ,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,EAAA,CAAI,CACtE;;;;"}
@@ -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 {};
@@ -4,3 +4,4 @@ const StrokeCircleIcon = ({ fill = '#5A8ECF', height = 16 }) => (React.createEle
4
4
  React.createElement("circle", { cx: '11', cy: '11', r: '10', stroke: fill, strokeWidth: '2', strokeDasharray: '8 8' })));
5
5
 
6
6
  export { StrokeCircleIcon };
7
+ //# 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":[],"mappings":";;AAOO,MAAM,gBAAgB,GAAG,CAAC,EAAE,IAAI,GAAG,SAAS,EAAE,MAAM,GAAG,EAAE,EAAS,MACrE,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;IACnF,KAAQ,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,EAAA,CAAG,CACnF;;;;"}
@@ -1,2 +1,2 @@
1
- export * from "./Component";
2
- export * from "./types/index";
1
+ export * from './Component';
2
+ export * from './types';
@@ -1 +1,2 @@
1
1
  export { Chart } from './Component.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,5 +1,3 @@
1
- /* */
2
-
3
1
  .coreChart :global(.recharts-line path) {
4
2
  transition: d 0.2s ease-out;
5
3
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactText } from 'react';
2
2
  import { DataKey } from 'recharts/types/util/types';
3
- interface BrushProps {
3
+ export interface BrushProps {
4
4
  /**
5
5
  * Ключ данных
6
6
  */
@@ -38,4 +38,3 @@ interface BrushProps {
38
38
  */
39
39
  stroke?: string;
40
40
  }
41
- export { BrushProps };
@@ -1 +1,2 @@
1
1
 
2
+ //# sourceMappingURL=brush.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brush.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- interface CartesianGridProps {
1
+ export interface CartesianGridProps {
2
2
  /**
3
3
  * Отображение горизонтальной сетки
4
4
  */
@@ -20,4 +20,3 @@ interface CartesianGridProps {
20
20
  */
21
21
  fill?: string;
22
22
  }
23
- export { CartesianGridProps };
@@ -1 +1,2 @@
1
1
 
2
+ //# sourceMappingURL=cartesianGrid.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartesianGrid.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,11 +1,11 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { RectangleProps } from 'recharts';
3
3
  import { DataKey } from 'recharts/types/util/types';
4
- import { DataProps } from "./utils/data.types";
5
- import { DotSettingProps } from "./utils/dot.types";
6
- type CurveType = 'linear' | 'monotone' | 'step';
7
- type RectangleShapeType = ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | RectangleProps | boolean;
8
- interface ChartProps {
4
+ import { DataProps } from './utils/data.types';
5
+ import { DotSettingProps } from './utils/dot.types';
6
+ declare type CurveType = 'linear' | 'monotone' | 'step';
7
+ export declare type RectangleShapeType = ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | RectangleProps | boolean;
8
+ export interface ChartProps {
9
9
  /**
10
10
  * Название графика (отображается в легендах и тултипе)
11
11
  */
@@ -51,11 +51,11 @@ interface ChartProps {
51
51
  */
52
52
  strokeDasharray?: string | number;
53
53
  }
54
- interface ToggleChartProps {
54
+ export interface ToggleChartProps {
55
55
  chart?: 'line' | 'area' | 'bar' | 'gradient';
56
56
  data?: DataProps[];
57
57
  icon?: 'circleLine' | 'filledCircle' | 'strokeCircle' | 'circle';
58
58
  order?: number;
59
59
  properties: ChartProps;
60
60
  }
61
- export { RectangleShapeType, ChartProps, ToggleChartProps };
61
+ export {};
@@ -1 +1,2 @@
1
1
 
2
+ //# sourceMappingURL=chart.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- interface ComposedChartProps {
1
+ export interface ComposedChartProps {
2
2
  /**
3
3
  * Отступы графика на момент инициализации компонента
4
4
  */
@@ -30,4 +30,3 @@ interface ComposedChartProps {
30
30
  */
31
31
  barGap?: number;
32
32
  }
33
- export { ComposedChartProps };
@@ -1 +1,2 @@
1
1
 
2
+ //# sourceMappingURL=composedChart.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composedChart.types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,14 +1,14 @@
1
- export * from "./utils/index";
2
- export * from "./brush.types";
3
- export * from "./cartesianGrid.types";
4
- export * from "./chart.types";
5
- export * from "./composedChart.types";
6
- export * from "./labelList.types";
7
- export * from "./legend.types";
8
- export * from "./options.types";
9
- export * from "./payload.types";
10
- export * from "./responsiveContainer.types";
11
- export * from "./seria.types";
12
- export * from "./tooltip.types";
13
- export * from "./xAxis.types";
14
- export * from "./yAxis.types";
1
+ export * from './utils';
2
+ export * from './brush.types';
3
+ export * from './cartesianGrid.types';
4
+ export * from './chart.types';
5
+ export * from './composedChart.types';
6
+ export * from './labelList.types';
7
+ export * from './legend.types';
8
+ export * from './options.types';
9
+ export * from './payload.types';
10
+ export * from './responsiveContainer.types';
11
+ export * from './seria.types';
12
+ export * from './tooltip.types';
13
+ export * from './xAxis.types';
14
+ export * from './yAxis.types';
@@ -1 +1,2 @@
1
1
 
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,5 +1,4 @@
1
- interface LabelListProps {
1
+ export interface LabelListProps {
2
2
  formatter: Function;
3
3
  ofsset: number;
4
4
  }
5
- export { LabelListProps };
@@ -1 +1,2 @@
1
1
 
2
+ //# sourceMappingURL=labelList.types.js.map