@alfalab/core-components 20.3.2 → 20.4.0

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 (586) hide show
  1. package/calendar/Component.js +1 -1
  2. package/calendar/components/days-table/Component.js +1 -1
  3. package/calendar/components/days-table/index.js +1 -1
  4. package/calendar/components/header/Component.js +1 -1
  5. package/calendar/components/header/index.js +1 -1
  6. package/calendar/components/months-table/Component.js +1 -1
  7. package/calendar/components/months-table/index.js +1 -1
  8. package/calendar/components/select-button/Component.js +1 -1
  9. package/calendar/components/select-button/index.js +1 -1
  10. package/calendar/components/years-table/Component.js +1 -1
  11. package/calendar/components/years-table/index.js +1 -1
  12. package/calendar/esm/Component.js +1 -1
  13. package/calendar/esm/components/days-table/Component.js +1 -1
  14. package/calendar/esm/components/days-table/index.js +1 -1
  15. package/calendar/esm/components/header/Component.js +1 -1
  16. package/calendar/esm/components/header/index.js +1 -1
  17. package/calendar/esm/components/months-table/Component.js +1 -1
  18. package/calendar/esm/components/months-table/index.js +1 -1
  19. package/calendar/esm/components/select-button/Component.js +1 -1
  20. package/calendar/esm/components/select-button/index.js +1 -1
  21. package/calendar/esm/components/years-table/Component.js +1 -1
  22. package/calendar/esm/components/years-table/index.js +1 -1
  23. package/calendar/esm/index.js +1 -1
  24. package/calendar/esm/{tslib.es6-4c746bb4.d.ts → tslib.es6-decc30d3.d.ts} +0 -0
  25. package/calendar/esm/{tslib.es6-4c746bb4.js → tslib.es6-decc30d3.js} +0 -0
  26. package/calendar/index.js +1 -1
  27. package/calendar/{tslib.es6-7c2dd368.d.ts → tslib.es6-af3fab91.d.ts} +0 -0
  28. package/calendar/{tslib.es6-7c2dd368.js → tslib.es6-af3fab91.js} +0 -0
  29. package/chart/Component.d.ts +5 -0
  30. package/chart/Component.js +269 -0
  31. package/chart/components/Dot/index.css +23 -0
  32. package/chart/components/Dot/index.d.ts +5 -0
  33. package/chart/components/Dot/index.js +53 -0
  34. package/chart/components/Legends/index.css +40 -0
  35. package/chart/components/Legends/index.d.ts +14 -0
  36. package/chart/components/Legends/index.js +46 -0
  37. package/chart/components/LinearGradient.d.ts +5 -0
  38. package/chart/components/LinearGradient.js +14 -0
  39. package/chart/components/Tick/index.css +27 -0
  40. package/chart/components/Tick/index.d.ts +4 -0
  41. package/chart/components/Tick/index.js +28 -0
  42. package/chart/components/TooltipContent/index.css +65 -0
  43. package/chart/components/TooltipContent/index.d.ts +10 -0
  44. package/chart/components/TooltipContent/index.js +36 -0
  45. package/chart/cssm/Component.d.ts +5 -0
  46. package/chart/cssm/Component.js +272 -0
  47. package/chart/cssm/components/Dot/index.d.ts +5 -0
  48. package/chart/cssm/components/Dot/index.js +52 -0
  49. package/chart/cssm/components/Dot/index.module.css +22 -0
  50. package/chart/cssm/components/Legends/index.d.ts +14 -0
  51. package/chart/cssm/components/Legends/index.js +45 -0
  52. package/chart/cssm/components/Legends/index.module.css +39 -0
  53. package/chart/cssm/components/LinearGradient.d.ts +5 -0
  54. package/chart/cssm/components/LinearGradient.js +14 -0
  55. package/chart/cssm/components/Tick/index.d.ts +4 -0
  56. package/chart/cssm/components/Tick/index.js +27 -0
  57. package/chart/cssm/components/Tick/index.module.css +26 -0
  58. package/chart/cssm/components/TooltipContent/index.d.ts +10 -0
  59. package/chart/cssm/components/TooltipContent/index.js +35 -0
  60. package/chart/cssm/components/TooltipContent/index.module.css +64 -0
  61. package/chart/cssm/hooks/useSettings/index.d.ts +16 -0
  62. package/chart/cssm/hooks/useSettings/index.js +47 -0
  63. package/chart/cssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
  64. package/chart/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +17 -0
  65. package/chart/cssm/hooks/useSettings/utils/setDatas.d.ts +6 -0
  66. package/chart/cssm/hooks/useSettings/utils/setDatas.js +39 -0
  67. package/chart/cssm/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
  68. package/chart/cssm/hooks/useSettings/utils/setGradientCharts.js +27 -0
  69. package/chart/cssm/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
  70. package/chart/cssm/hooks/useSettings/utils/setLegendMargin.js +16 -0
  71. package/chart/cssm/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
  72. package/chart/cssm/hooks/useSettings/utils/sortByIndex.js +12 -0
  73. package/chart/cssm/icons/Circle.d.ts +7 -0
  74. package/chart/cssm/icons/Circle.js +15 -0
  75. package/chart/cssm/icons/CircleLine.d.ts +8 -0
  76. package/chart/cssm/icons/CircleLine.js +16 -0
  77. package/chart/cssm/icons/FilledCircle.d.ts +7 -0
  78. package/chart/cssm/icons/FilledCircle.js +19 -0
  79. package/chart/cssm/icons/Point.d.ts +7 -0
  80. package/chart/cssm/icons/Point.js +16 -0
  81. package/chart/cssm/icons/StrokeCircle.d.ts +7 -0
  82. package/chart/cssm/icons/StrokeCircle.js +15 -0
  83. package/chart/cssm/index.d.ts +1 -0
  84. package/chart/cssm/index.js +27 -0
  85. package/chart/cssm/index.module.css +25 -0
  86. package/{gallery/esm/tslib.es6-76ecfd4c.d.ts → chart/cssm/tslib.es6-2be2aee7.d.ts} +0 -0
  87. package/chart/cssm/tslib.es6-2be2aee7.js +26 -0
  88. package/chart/cssm/types/brush.types.d.ts +41 -0
  89. package/chart/cssm/types/brush.types.js +1 -0
  90. package/chart/cssm/types/cartesianGrid.types.d.ts +23 -0
  91. package/chart/cssm/types/cartesianGrid.types.js +1 -0
  92. package/chart/cssm/types/chart.types.d.ts +61 -0
  93. package/chart/cssm/types/chart.types.js +1 -0
  94. package/chart/cssm/types/composedChart.types.d.ts +33 -0
  95. package/chart/cssm/types/composedChart.types.js +1 -0
  96. package/chart/cssm/types/legend.types.d.ts +30 -0
  97. package/chart/cssm/types/legend.types.js +1 -0
  98. package/chart/cssm/types/options.types.d.ts +59 -0
  99. package/chart/cssm/types/options.types.js +1 -0
  100. package/chart/cssm/types/payload.types.d.ts +29 -0
  101. package/chart/cssm/types/payload.types.js +1 -0
  102. package/chart/cssm/types/responsiveContainer.types.d.ts +10 -0
  103. package/chart/cssm/types/responsiveContainer.types.js +1 -0
  104. package/chart/cssm/types/seria.types.d.ts +59 -0
  105. package/chart/cssm/types/seria.types.js +1 -0
  106. package/chart/cssm/types/tooltip.types.d.ts +70 -0
  107. package/chart/cssm/types/tooltip.types.js +1 -0
  108. package/chart/cssm/types/utils/axis.types.d.ts +68 -0
  109. package/chart/cssm/types/utils/axis.types.js +1 -0
  110. package/chart/cssm/types/utils/coordinates.types.d.ts +11 -0
  111. package/chart/cssm/types/utils/coordinates.types.js +1 -0
  112. package/chart/cssm/types/utils/data.types.d.ts +17 -0
  113. package/chart/cssm/types/utils/data.types.js +1 -0
  114. package/chart/cssm/types/utils/dot.types.d.ts +73 -0
  115. package/chart/cssm/types/utils/dot.types.js +1 -0
  116. package/chart/cssm/types/utils/gradient.types.d.ts +29 -0
  117. package/chart/cssm/types/utils/gradient.types.js +1 -0
  118. package/chart/cssm/types/utils/tick.types.d.ts +19 -0
  119. package/chart/cssm/types/utils/tick.types.js +1 -0
  120. package/chart/cssm/types/xAxis.types.d.ts +16 -0
  121. package/chart/cssm/types/xAxis.types.js +1 -0
  122. package/chart/cssm/types/yAxis.types.d.ts +8 -0
  123. package/chart/cssm/types/yAxis.types.js +1 -0
  124. package/chart/esm/Component.d.ts +5 -0
  125. package/chart/esm/Component.js +264 -0
  126. package/chart/esm/components/Dot/index.css +23 -0
  127. package/chart/esm/components/Dot/index.d.ts +5 -0
  128. package/chart/esm/components/Dot/index.js +46 -0
  129. package/chart/esm/components/Legends/index.css +40 -0
  130. package/chart/esm/components/Legends/index.d.ts +14 -0
  131. package/chart/esm/components/Legends/index.js +39 -0
  132. package/chart/esm/components/LinearGradient.d.ts +5 -0
  133. package/chart/esm/components/LinearGradient.js +8 -0
  134. package/chart/esm/components/Tick/index.css +27 -0
  135. package/chart/esm/components/Tick/index.d.ts +4 -0
  136. package/chart/esm/components/Tick/index.js +21 -0
  137. package/chart/esm/components/TooltipContent/index.css +65 -0
  138. package/chart/esm/components/TooltipContent/index.d.ts +10 -0
  139. package/chart/esm/components/TooltipContent/index.js +29 -0
  140. package/chart/esm/hooks/useSettings/index.d.ts +16 -0
  141. package/chart/esm/hooks/useSettings/index.js +45 -0
  142. package/chart/esm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
  143. package/chart/esm/hooks/useSettings/utils/setComposedChartsMargin.js +15 -0
  144. package/chart/esm/hooks/useSettings/utils/setDatas.d.ts +6 -0
  145. package/chart/esm/hooks/useSettings/utils/setDatas.js +37 -0
  146. package/chart/esm/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
  147. package/chart/esm/hooks/useSettings/utils/setGradientCharts.js +25 -0
  148. package/chart/esm/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
  149. package/chart/esm/hooks/useSettings/utils/setLegendMargin.js +14 -0
  150. package/chart/esm/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
  151. package/chart/esm/hooks/useSettings/utils/sortByIndex.js +10 -0
  152. package/chart/esm/icons/Circle.d.ts +7 -0
  153. package/chart/esm/icons/Circle.js +9 -0
  154. package/chart/esm/icons/CircleLine.d.ts +8 -0
  155. package/chart/esm/icons/CircleLine.js +10 -0
  156. package/chart/esm/icons/FilledCircle.d.ts +7 -0
  157. package/chart/esm/icons/FilledCircle.js +13 -0
  158. package/chart/esm/icons/Point.d.ts +7 -0
  159. package/chart/esm/icons/Point.js +10 -0
  160. package/chart/esm/icons/StrokeCircle.d.ts +7 -0
  161. package/chart/esm/icons/StrokeCircle.js +9 -0
  162. package/chart/esm/index.css +15 -0
  163. package/chart/esm/index.d.ts +1 -0
  164. package/chart/esm/index.js +22 -0
  165. package/{gallery/tslib.es6-d8fd377b.d.ts → chart/esm/tslib.es6-defbba9d.d.ts} +0 -0
  166. package/chart/esm/tslib.es6-defbba9d.js +28 -0
  167. package/chart/esm/types/brush.types.d.ts +41 -0
  168. package/chart/esm/types/brush.types.js +1 -0
  169. package/chart/esm/types/cartesianGrid.types.d.ts +23 -0
  170. package/chart/esm/types/cartesianGrid.types.js +1 -0
  171. package/chart/esm/types/chart.types.d.ts +61 -0
  172. package/chart/esm/types/chart.types.js +1 -0
  173. package/chart/esm/types/composedChart.types.d.ts +33 -0
  174. package/chart/esm/types/composedChart.types.js +1 -0
  175. package/chart/esm/types/legend.types.d.ts +30 -0
  176. package/chart/esm/types/legend.types.js +1 -0
  177. package/chart/esm/types/options.types.d.ts +59 -0
  178. package/chart/esm/types/options.types.js +1 -0
  179. package/chart/esm/types/payload.types.d.ts +29 -0
  180. package/chart/esm/types/payload.types.js +1 -0
  181. package/chart/esm/types/responsiveContainer.types.d.ts +10 -0
  182. package/chart/esm/types/responsiveContainer.types.js +1 -0
  183. package/chart/esm/types/seria.types.d.ts +59 -0
  184. package/chart/esm/types/seria.types.js +1 -0
  185. package/chart/esm/types/tooltip.types.d.ts +70 -0
  186. package/chart/esm/types/tooltip.types.js +1 -0
  187. package/chart/esm/types/utils/axis.types.d.ts +68 -0
  188. package/chart/esm/types/utils/axis.types.js +1 -0
  189. package/chart/esm/types/utils/coordinates.types.d.ts +11 -0
  190. package/chart/esm/types/utils/coordinates.types.js +1 -0
  191. package/chart/esm/types/utils/data.types.d.ts +17 -0
  192. package/chart/esm/types/utils/data.types.js +1 -0
  193. package/chart/esm/types/utils/dot.types.d.ts +73 -0
  194. package/chart/esm/types/utils/dot.types.js +1 -0
  195. package/chart/esm/types/utils/gradient.types.d.ts +29 -0
  196. package/chart/esm/types/utils/gradient.types.js +1 -0
  197. package/chart/esm/types/utils/tick.types.d.ts +19 -0
  198. package/chart/esm/types/utils/tick.types.js +1 -0
  199. package/chart/esm/types/xAxis.types.d.ts +16 -0
  200. package/chart/esm/types/xAxis.types.js +1 -0
  201. package/chart/esm/types/yAxis.types.d.ts +8 -0
  202. package/chart/esm/types/yAxis.types.js +1 -0
  203. package/chart/hooks/useSettings/index.d.ts +16 -0
  204. package/chart/hooks/useSettings/index.js +47 -0
  205. package/chart/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
  206. package/chart/hooks/useSettings/utils/setComposedChartsMargin.js +17 -0
  207. package/chart/hooks/useSettings/utils/setDatas.d.ts +6 -0
  208. package/chart/hooks/useSettings/utils/setDatas.js +39 -0
  209. package/chart/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
  210. package/chart/hooks/useSettings/utils/setGradientCharts.js +27 -0
  211. package/chart/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
  212. package/chart/hooks/useSettings/utils/setLegendMargin.js +16 -0
  213. package/chart/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
  214. package/chart/hooks/useSettings/utils/sortByIndex.js +12 -0
  215. package/chart/icons/Circle.d.ts +7 -0
  216. package/chart/icons/Circle.js +15 -0
  217. package/chart/icons/CircleLine.d.ts +8 -0
  218. package/chart/icons/CircleLine.js +16 -0
  219. package/chart/icons/FilledCircle.d.ts +7 -0
  220. package/chart/icons/FilledCircle.js +19 -0
  221. package/chart/icons/Point.d.ts +7 -0
  222. package/chart/icons/Point.js +16 -0
  223. package/chart/icons/StrokeCircle.d.ts +7 -0
  224. package/chart/icons/StrokeCircle.js +15 -0
  225. package/chart/index.css +15 -0
  226. package/chart/index.d.ts +1 -0
  227. package/chart/index.js +22 -0
  228. package/chart/modern/Component.d.ts +5 -0
  229. package/chart/modern/Component.js +258 -0
  230. package/chart/modern/components/Dot/index.css +23 -0
  231. package/chart/modern/components/Dot/index.d.ts +5 -0
  232. package/chart/modern/components/Dot/index.js +45 -0
  233. package/chart/modern/components/Legends/index.css +40 -0
  234. package/chart/modern/components/Legends/index.d.ts +14 -0
  235. package/chart/modern/components/Legends/index.js +38 -0
  236. package/chart/modern/components/LinearGradient.d.ts +5 -0
  237. package/chart/modern/components/LinearGradient.js +7 -0
  238. package/chart/modern/components/Tick/index.css +27 -0
  239. package/chart/modern/components/Tick/index.d.ts +4 -0
  240. package/chart/modern/components/Tick/index.js +20 -0
  241. package/chart/modern/components/TooltipContent/index.css +65 -0
  242. package/chart/modern/components/TooltipContent/index.d.ts +10 -0
  243. package/chart/modern/components/TooltipContent/index.js +28 -0
  244. package/chart/modern/hooks/useSettings/index.d.ts +16 -0
  245. package/chart/modern/hooks/useSettings/index.js +43 -0
  246. package/chart/modern/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
  247. package/chart/modern/hooks/useSettings/utils/setComposedChartsMargin.js +14 -0
  248. package/chart/modern/hooks/useSettings/utils/setDatas.d.ts +6 -0
  249. package/chart/modern/hooks/useSettings/utils/setDatas.js +32 -0
  250. package/chart/modern/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
  251. package/chart/modern/hooks/useSettings/utils/setGradientCharts.js +35 -0
  252. package/chart/modern/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
  253. package/chart/modern/hooks/useSettings/utils/setLegendMargin.js +14 -0
  254. package/chart/modern/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
  255. package/chart/modern/hooks/useSettings/utils/sortByIndex.js +10 -0
  256. package/chart/modern/icons/Circle.d.ts +7 -0
  257. package/chart/modern/icons/Circle.js +8 -0
  258. package/chart/modern/icons/CircleLine.d.ts +8 -0
  259. package/chart/modern/icons/CircleLine.js +9 -0
  260. package/chart/modern/icons/FilledCircle.d.ts +7 -0
  261. package/chart/modern/icons/FilledCircle.js +12 -0
  262. package/chart/modern/icons/Point.d.ts +7 -0
  263. package/chart/modern/icons/Point.js +7 -0
  264. package/chart/modern/icons/StrokeCircle.d.ts +7 -0
  265. package/chart/modern/icons/StrokeCircle.js +8 -0
  266. package/chart/modern/index.css +15 -0
  267. package/chart/modern/index.d.ts +1 -0
  268. package/chart/modern/index.js +21 -0
  269. package/chart/modern/types/brush.types.d.ts +41 -0
  270. package/chart/modern/types/brush.types.js +1 -0
  271. package/chart/modern/types/cartesianGrid.types.d.ts +23 -0
  272. package/chart/modern/types/cartesianGrid.types.js +1 -0
  273. package/chart/modern/types/chart.types.d.ts +61 -0
  274. package/chart/modern/types/chart.types.js +1 -0
  275. package/chart/modern/types/composedChart.types.d.ts +33 -0
  276. package/chart/modern/types/composedChart.types.js +1 -0
  277. package/chart/modern/types/legend.types.d.ts +30 -0
  278. package/chart/modern/types/legend.types.js +1 -0
  279. package/chart/modern/types/options.types.d.ts +59 -0
  280. package/chart/modern/types/options.types.js +1 -0
  281. package/chart/modern/types/payload.types.d.ts +29 -0
  282. package/chart/modern/types/payload.types.js +1 -0
  283. package/chart/modern/types/responsiveContainer.types.d.ts +10 -0
  284. package/chart/modern/types/responsiveContainer.types.js +1 -0
  285. package/chart/modern/types/seria.types.d.ts +59 -0
  286. package/chart/modern/types/seria.types.js +1 -0
  287. package/chart/modern/types/tooltip.types.d.ts +70 -0
  288. package/chart/modern/types/tooltip.types.js +1 -0
  289. package/chart/modern/types/utils/axis.types.d.ts +68 -0
  290. package/chart/modern/types/utils/axis.types.js +1 -0
  291. package/chart/modern/types/utils/coordinates.types.d.ts +11 -0
  292. package/chart/modern/types/utils/coordinates.types.js +1 -0
  293. package/chart/modern/types/utils/data.types.d.ts +17 -0
  294. package/chart/modern/types/utils/data.types.js +1 -0
  295. package/chart/modern/types/utils/dot.types.d.ts +73 -0
  296. package/chart/modern/types/utils/dot.types.js +1 -0
  297. package/chart/modern/types/utils/gradient.types.d.ts +29 -0
  298. package/chart/modern/types/utils/gradient.types.js +1 -0
  299. package/chart/modern/types/utils/tick.types.d.ts +19 -0
  300. package/chart/modern/types/utils/tick.types.js +1 -0
  301. package/chart/modern/types/xAxis.types.d.ts +16 -0
  302. package/chart/modern/types/xAxis.types.js +1 -0
  303. package/chart/modern/types/yAxis.types.d.ts +8 -0
  304. package/chart/modern/types/yAxis.types.js +1 -0
  305. package/chart/package.json +3 -0
  306. package/chart/send-stats.js +82 -0
  307. package/{modal/esm/tslib.es6-aaad616c.d.ts → chart/tslib.es6-62c2b032.d.ts} +0 -0
  308. package/chart/tslib.es6-62c2b032.js +26 -0
  309. package/chart/types/brush.types.d.ts +41 -0
  310. package/chart/types/brush.types.js +1 -0
  311. package/chart/types/cartesianGrid.types.d.ts +23 -0
  312. package/chart/types/cartesianGrid.types.js +1 -0
  313. package/chart/types/chart.types.d.ts +61 -0
  314. package/chart/types/chart.types.js +1 -0
  315. package/chart/types/composedChart.types.d.ts +33 -0
  316. package/chart/types/composedChart.types.js +1 -0
  317. package/chart/types/legend.types.d.ts +30 -0
  318. package/chart/types/legend.types.js +1 -0
  319. package/chart/types/options.types.d.ts +59 -0
  320. package/chart/types/options.types.js +1 -0
  321. package/chart/types/payload.types.d.ts +29 -0
  322. package/chart/types/payload.types.js +1 -0
  323. package/chart/types/responsiveContainer.types.d.ts +10 -0
  324. package/chart/types/responsiveContainer.types.js +1 -0
  325. package/chart/types/seria.types.d.ts +59 -0
  326. package/chart/types/seria.types.js +1 -0
  327. package/chart/types/tooltip.types.d.ts +70 -0
  328. package/chart/types/tooltip.types.js +1 -0
  329. package/chart/types/utils/axis.types.d.ts +68 -0
  330. package/chart/types/utils/axis.types.js +1 -0
  331. package/chart/types/utils/coordinates.types.d.ts +11 -0
  332. package/chart/types/utils/coordinates.types.js +1 -0
  333. package/chart/types/utils/data.types.d.ts +17 -0
  334. package/chart/types/utils/data.types.js +1 -0
  335. package/chart/types/utils/dot.types.d.ts +73 -0
  336. package/chart/types/utils/dot.types.js +1 -0
  337. package/chart/types/utils/gradient.types.d.ts +29 -0
  338. package/chart/types/utils/gradient.types.js +1 -0
  339. package/chart/types/utils/tick.types.d.ts +19 -0
  340. package/chart/types/utils/tick.types.js +1 -0
  341. package/chart/types/xAxis.types.d.ts +16 -0
  342. package/chart/types/xAxis.types.js +1 -0
  343. package/chart/types/yAxis.types.d.ts +8 -0
  344. package/chart/types/yAxis.types.js +1 -0
  345. package/gallery/Component.js +2 -2
  346. package/gallery/components/header/Component.js +1 -1
  347. package/gallery/components/header/buttons.js +1 -1
  348. package/gallery/components/header/index.js +1 -1
  349. package/gallery/components/image-viewer/component.js +2 -2
  350. package/gallery/components/image-viewer/index.js +2 -2
  351. package/gallery/components/image-viewer/slide.js +1 -1
  352. package/gallery/components/index.js +2 -2
  353. package/gallery/esm/Component.js +2 -2
  354. package/gallery/esm/components/header/Component.js +1 -1
  355. package/gallery/esm/components/header/buttons.js +1 -1
  356. package/gallery/esm/components/header/index.js +1 -1
  357. package/gallery/esm/components/image-viewer/component.js +2 -2
  358. package/gallery/esm/components/image-viewer/index.js +2 -2
  359. package/gallery/esm/components/image-viewer/slide.js +1 -1
  360. package/gallery/esm/components/index.js +2 -2
  361. package/gallery/esm/index.js +2 -2
  362. package/gallery/esm/{slide-87570b70.d.ts → slide-2c5303bf.d.ts} +0 -0
  363. package/gallery/esm/{slide-87570b70.js → slide-2c5303bf.js} +0 -0
  364. package/{modal/tslib.es6-39c837a9.d.ts → gallery/esm/tslib.es6-e5bfa024.d.ts} +0 -0
  365. package/gallery/esm/{tslib.es6-76ecfd4c.js → tslib.es6-e5bfa024.js} +0 -0
  366. package/gallery/index.js +2 -2
  367. package/gallery/modern/Component.js +1 -1
  368. package/gallery/modern/components/image-viewer/component.js +1 -1
  369. package/gallery/modern/components/image-viewer/index.js +1 -1
  370. package/gallery/modern/components/image-viewer/slide.js +1 -1
  371. package/gallery/modern/components/index.js +1 -1
  372. package/gallery/modern/index.js +1 -1
  373. package/gallery/modern/{slide-d973cd14.d.ts → slide-31efe610.d.ts} +0 -0
  374. package/gallery/modern/{slide-d973cd14.js → slide-31efe610.js} +0 -0
  375. package/gallery/{slide-4c7a53b7.d.ts → slide-5f9593b7.d.ts} +0 -0
  376. package/gallery/{slide-4c7a53b7.js → slide-5f9593b7.js} +0 -0
  377. package/{select/esm/tslib.es6-c18e9eca.d.ts → gallery/tslib.es6-d5e3524f.d.ts} +0 -0
  378. package/gallery/{tslib.es6-d8fd377b.js → tslib.es6-d5e3524f.js} +0 -0
  379. package/intl-phone-input/{component-b2d27dfb.d.ts → component-2901b48c.d.ts} +0 -0
  380. package/intl-phone-input/{component-b2d27dfb.js → component-2901b48c.js} +1 -1
  381. package/intl-phone-input/component.js +3 -3
  382. package/intl-phone-input/components/flag-icon/component.js +1 -1
  383. package/intl-phone-input/components/flag-icon/index.css +784 -784
  384. package/intl-phone-input/components/index.js +1 -1
  385. package/intl-phone-input/components/select/component.js +2 -2
  386. package/intl-phone-input/components/select/index.css +6 -6
  387. package/intl-phone-input/components/select/index.js +1 -1
  388. package/intl-phone-input/components/select-field/component.js +1 -1
  389. package/intl-phone-input/components/select-field/index.css +8 -8
  390. package/intl-phone-input/components/select-field/index.d.ts +1 -1
  391. package/intl-phone-input/components/select-field/index.js +1 -1
  392. package/intl-phone-input/esm/{component-087d1771.d.ts → component-b0494269.d.ts} +0 -0
  393. package/intl-phone-input/esm/{component-087d1771.js → component-b0494269.js} +1 -1
  394. package/intl-phone-input/esm/component.js +3 -3
  395. package/intl-phone-input/esm/components/flag-icon/component.js +1 -1
  396. package/intl-phone-input/esm/components/flag-icon/index.css +784 -784
  397. package/intl-phone-input/esm/components/index.js +1 -1
  398. package/intl-phone-input/esm/components/select/component.js +2 -2
  399. package/intl-phone-input/esm/components/select/index.css +6 -6
  400. package/intl-phone-input/esm/components/select/index.js +1 -1
  401. package/intl-phone-input/esm/components/select-field/component.js +1 -1
  402. package/intl-phone-input/esm/components/select-field/index.css +8 -8
  403. package/intl-phone-input/esm/components/select-field/index.d.ts +1 -1
  404. package/intl-phone-input/esm/components/select-field/index.js +1 -1
  405. package/intl-phone-input/esm/index.css +3 -3
  406. package/intl-phone-input/esm/index.js +1 -1
  407. package/intl-phone-input/esm/{libphonenumber-js.min-bc9d0c29.d.ts → libphonenumber-js.min-4d9b997b.d.ts} +0 -0
  408. package/intl-phone-input/esm/{libphonenumber-js.min-bc9d0c29.js → libphonenumber-js.min-4d9b997b.js} +0 -0
  409. package/intl-phone-input/index.css +3 -3
  410. package/intl-phone-input/index.js +1 -1
  411. package/intl-phone-input/{libphonenumber-js.min-7e154139.d.ts → libphonenumber-js.min-893b6a4c.d.ts} +0 -0
  412. package/intl-phone-input/{libphonenumber-js.min-7e154139.js → libphonenumber-js.min-893b6a4c.js} +0 -0
  413. package/intl-phone-input/modern/component.js +2 -2
  414. package/intl-phone-input/modern/components/flag-icon/component.js +1 -1
  415. package/intl-phone-input/modern/components/flag-icon/index.css +784 -784
  416. package/intl-phone-input/modern/components/select/component.js +1 -1
  417. package/intl-phone-input/modern/components/select/index.css +6 -6
  418. package/intl-phone-input/modern/components/select-field/component.js +1 -1
  419. package/intl-phone-input/modern/components/select-field/index.css +8 -8
  420. package/intl-phone-input/modern/index.css +3 -3
  421. package/intl-phone-input/modern/{libphonenumber-js.min-bc9d0c29.d.ts → libphonenumber-js.min-4d9b997b.d.ts} +0 -0
  422. package/intl-phone-input/modern/{libphonenumber-js.min-bc9d0c29.js → libphonenumber-js.min-4d9b997b.js} +0 -0
  423. package/modal/Component.desktop.js +2 -2
  424. package/modal/Component.mobile.js +2 -2
  425. package/modal/Component.responsive.js +2 -2
  426. package/modal/components/closer/Component.js +1 -1
  427. package/modal/components/content/Component.desktop.js +1 -1
  428. package/modal/components/content/Component.mobile.js +1 -1
  429. package/modal/components/footer/Component.desktop.js +1 -1
  430. package/modal/components/footer/Component.mobile.js +1 -1
  431. package/modal/components/header/Component.desktop.js +1 -1
  432. package/modal/components/header/Component.js +1 -1
  433. package/modal/components/header/Component.mobile.js +1 -1
  434. package/modal/desktop.js +2 -2
  435. package/modal/esm/Component.desktop.js +2 -2
  436. package/modal/esm/Component.mobile.js +2 -2
  437. package/modal/esm/Component.responsive.js +2 -2
  438. package/modal/esm/components/closer/Component.js +1 -1
  439. package/modal/esm/components/content/Component.desktop.js +1 -1
  440. package/modal/esm/components/content/Component.mobile.js +1 -1
  441. package/modal/esm/components/footer/Component.desktop.js +1 -1
  442. package/modal/esm/components/footer/Component.mobile.js +1 -1
  443. package/modal/esm/components/header/Component.desktop.js +1 -1
  444. package/modal/esm/components/header/Component.js +1 -1
  445. package/modal/esm/components/header/Component.mobile.js +1 -1
  446. package/modal/esm/desktop.js +2 -2
  447. package/modal/esm/index.js +2 -2
  448. package/modal/esm/mobile.js +2 -2
  449. package/modal/esm/responsive.js +2 -2
  450. package/modal/esm/{transitions.module-e77b5169.js → transitions.module-45fbb621.js} +0 -0
  451. package/{select/tslib.es6-507b73eb.d.ts → modal/esm/tslib.es6-4214739e.d.ts} +0 -0
  452. package/modal/esm/{tslib.es6-aaad616c.js → tslib.es6-4214739e.js} +0 -0
  453. package/modal/index.js +2 -2
  454. package/modal/mobile.js +2 -2
  455. package/modal/modern/Component.desktop.js +1 -1
  456. package/modal/modern/Component.mobile.js +1 -1
  457. package/modal/modern/Component.responsive.js +1 -1
  458. package/modal/modern/desktop.js +1 -1
  459. package/modal/modern/index.js +1 -1
  460. package/modal/modern/mobile.js +1 -1
  461. package/modal/modern/responsive.js +1 -1
  462. package/modal/modern/{transitions.module-e77b5169.js → transitions.module-45fbb621.js} +0 -0
  463. package/modal/responsive.js +2 -2
  464. package/modal/{transitions.module-ffa09972.js → transitions.module-b67d0f1c.js} +0 -0
  465. package/{tabs/esm/tslib.es6-8f0739df.d.ts → modal/tslib.es6-ccd35f7f.d.ts} +0 -0
  466. package/modal/{tslib.es6-39c837a9.js → tslib.es6-ccd35f7f.js} +0 -0
  467. package/package.json +9 -1
  468. package/select/Component.js +1 -1
  469. package/select/components/base-select/Component.js +1 -1
  470. package/select/components/base-select/index.js +1 -1
  471. package/select/components/field/Component.js +1 -1
  472. package/select/components/field/index.js +1 -1
  473. package/select/components/index.js +1 -1
  474. package/select/components/native-select/Component.js +1 -1
  475. package/select/components/native-select/index.js +1 -1
  476. package/select/components/option/Component.js +1 -1
  477. package/select/components/option/index.js +1 -1
  478. package/select/esm/Component.js +1 -1
  479. package/select/esm/components/base-select/Component.js +1 -1
  480. package/select/esm/components/base-select/index.js +1 -1
  481. package/select/esm/components/field/Component.js +1 -1
  482. package/select/esm/components/field/index.js +1 -1
  483. package/select/esm/components/index.js +1 -1
  484. package/select/esm/components/native-select/Component.js +1 -1
  485. package/select/esm/components/native-select/index.js +1 -1
  486. package/select/esm/components/option/Component.js +1 -1
  487. package/select/esm/components/option/index.js +1 -1
  488. package/select/esm/index.js +1 -1
  489. package/select/esm/presets/index.js +1 -1
  490. package/select/esm/presets/useLazyLoading/hook.js +1 -1
  491. package/select/esm/presets/useSelectWithLoading/hook.js +1 -1
  492. package/{tabs/tslib.es6-7078bc0a.d.ts → select/esm/tslib.es6-abde084a.d.ts} +0 -0
  493. package/select/esm/{tslib.es6-c18e9eca.js → tslib.es6-abde084a.js} +0 -0
  494. package/select/index.js +1 -1
  495. package/select/presets/index.js +1 -1
  496. package/select/presets/useLazyLoading/hook.js +1 -1
  497. package/select/presets/useSelectWithLoading/hook.js +1 -1
  498. package/{typography/colors.module-ded492e1.d.ts → select/tslib.es6-0f234b35.d.ts} +0 -0
  499. package/select/{tslib.es6-507b73eb.js → tslib.es6-0f234b35.js} +0 -0
  500. package/tabs/components/primary-tablist/Component.desktop.js +2 -2
  501. package/tabs/components/primary-tablist/Component.js +1 -1
  502. package/tabs/components/primary-tablist/Component.mobile.js +2 -2
  503. package/tabs/components/primary-tablist/Component.responsive.js +2 -2
  504. package/tabs/components/secondary-tablist/Component.desktop.js +2 -2
  505. package/tabs/components/secondary-tablist/Component.js +1 -1
  506. package/tabs/components/secondary-tablist/Component.mobile.js +2 -2
  507. package/tabs/components/secondary-tablist/Component.responsive.js +2 -2
  508. package/tabs/components/tabs/Component.desktop.js +3 -3
  509. package/tabs/components/tabs/Component.mobile.js +3 -3
  510. package/tabs/components/tabs/Component.responsive.js +3 -3
  511. package/tabs/desktop.js +3 -3
  512. package/tabs/esm/components/primary-tablist/Component.desktop.js +2 -2
  513. package/tabs/esm/components/primary-tablist/Component.js +1 -1
  514. package/tabs/esm/components/primary-tablist/Component.mobile.js +2 -2
  515. package/tabs/esm/components/primary-tablist/Component.responsive.js +2 -2
  516. package/tabs/esm/components/secondary-tablist/Component.desktop.js +2 -2
  517. package/tabs/esm/components/secondary-tablist/Component.js +1 -1
  518. package/tabs/esm/components/secondary-tablist/Component.mobile.js +2 -2
  519. package/tabs/esm/components/secondary-tablist/Component.responsive.js +2 -2
  520. package/tabs/esm/components/tabs/Component.desktop.js +3 -3
  521. package/tabs/esm/components/tabs/Component.mobile.js +3 -3
  522. package/tabs/esm/components/tabs/Component.responsive.js +3 -3
  523. package/tabs/esm/desktop.js +3 -3
  524. package/tabs/esm/index.js +3 -3
  525. package/tabs/esm/{index.module-2eb64cb0.js → index.module-c8448fef.js} +0 -0
  526. package/tabs/esm/{index.module-878a7a87.js → index.module-fbbc84ff.js} +0 -0
  527. package/tabs/esm/mobile.js +3 -3
  528. package/tabs/esm/responsive.js +3 -3
  529. package/{typography/esm/colors.module-d21f47ee.d.ts → tabs/esm/tslib.es6-787ef7a5.d.ts} +0 -0
  530. package/tabs/esm/{tslib.es6-8f0739df.js → tslib.es6-787ef7a5.js} +0 -0
  531. package/tabs/index.js +3 -3
  532. package/tabs/{index.module-278c87fb.js → index.module-91539407.js} +0 -0
  533. package/tabs/{index.module-adf99814.js → index.module-95d8761b.js} +0 -0
  534. package/tabs/mobile.js +3 -3
  535. package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
  536. package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
  537. package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
  538. package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
  539. package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
  540. package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
  541. package/tabs/modern/components/tabs/Component.desktop.js +2 -2
  542. package/tabs/modern/components/tabs/Component.mobile.js +2 -2
  543. package/tabs/modern/components/tabs/Component.responsive.js +2 -2
  544. package/tabs/modern/desktop.js +2 -2
  545. package/tabs/modern/index.js +2 -2
  546. package/tabs/modern/{index.module-2eb64cb0.js → index.module-c8448fef.js} +0 -0
  547. package/tabs/modern/{index.module-878a7a87.js → index.module-fbbc84ff.js} +0 -0
  548. package/tabs/modern/mobile.js +2 -2
  549. package/tabs/modern/responsive.js +2 -2
  550. package/tabs/responsive.js +3 -3
  551. package/tabs/tslib.es6-da6ab86a.d.ts +32 -0
  552. package/tabs/{tslib.es6-7078bc0a.js → tslib.es6-da6ab86a.js} +0 -0
  553. package/themes/compiled/mobile-dark-bluetint.css +2 -2
  554. package/themes/dist/compiled/mobile-dark-bluetint.css +96 -70
  555. package/typography/colors.module-b49182a7.d.ts +32 -0
  556. package/typography/{colors.module-ded492e1.js → colors.module-b49182a7.js} +0 -0
  557. package/typography/{common.module-1de331b9.js → common.module-263677ac.js} +0 -0
  558. package/typography/component.js +2 -2
  559. package/typography/esm/colors.module-509f4855.d.ts +32 -0
  560. package/typography/esm/{colors.module-d21f47ee.js → colors.module-509f4855.js} +0 -0
  561. package/typography/esm/{common.module-9782b936.js → common.module-961ee2a7.js} +0 -0
  562. package/typography/esm/component.js +2 -2
  563. package/typography/esm/index.js +2 -2
  564. package/typography/esm/text/component.js +1 -1
  565. package/typography/esm/text/index.js +1 -1
  566. package/typography/esm/title/component.js +1 -1
  567. package/typography/esm/title/index.js +2 -2
  568. package/typography/esm/title-responsive/component.js +2 -2
  569. package/typography/esm/title-responsive/index.js +2 -2
  570. package/typography/index.js +2 -2
  571. package/typography/modern/{colors.module-5a6490a8.js → colors.module-07a98532.js} +0 -0
  572. package/typography/modern/{common.module-9782b936.js → common.module-961ee2a7.js} +0 -0
  573. package/typography/modern/component.js +2 -2
  574. package/typography/modern/index.js +2 -2
  575. package/typography/modern/text/component.js +1 -1
  576. package/typography/modern/text/index.js +1 -1
  577. package/typography/modern/title/component.js +1 -1
  578. package/typography/modern/title/index.js +2 -2
  579. package/typography/modern/title-responsive/component.js +2 -2
  580. package/typography/modern/title-responsive/index.js +2 -2
  581. package/typography/text/component.js +1 -1
  582. package/typography/text/index.js +1 -1
  583. package/typography/title/component.js +1 -1
  584. package/typography/title/index.js +2 -2
  585. package/typography/title-responsive/component.js +2 -2
  586. package/typography/title-responsive/index.js +2 -2
@@ -0,0 +1,73 @@
1
+ import { CoordinatesProps } from "./coordinates.types";
2
+ import { DataProps } from "./data.types";
3
+ interface DotSettingProps {
4
+ /**
5
+ * Значение media query.
6
+ */
7
+ media?: number;
8
+ /**
9
+ * Значение маштаба при ховере.
10
+ */
11
+ scale: number;
12
+ /**
13
+ * Начальный значения маштаба.
14
+ */
15
+ initScale: number;
16
+ /**
17
+ * Ширина точки.
18
+ */
19
+ width: number;
20
+ /**
21
+ * Высота точки.
22
+ */
23
+ height: number;
24
+ }
25
+ interface ActiveDotProps {
26
+ /**
27
+ * Индекс предыдущей точки.
28
+ */
29
+ prev: number | null;
30
+ /**
31
+ * Индекс активной точки.
32
+ */
33
+ active: number | null;
34
+ }
35
+ interface PointProps extends CoordinatesProps {
36
+ value: string | number;
37
+ payload: DataProps;
38
+ }
39
+ interface DotProps {
40
+ /**
41
+ * Индекс активной точки на графике.
42
+ */
43
+ activeDot: null | number;
44
+ /**
45
+ * Координата Х.
46
+ */
47
+ cx: number;
48
+ /**
49
+ * Координата У.
50
+ */
51
+ cy: number;
52
+ /**
53
+ * Ключ данных.
54
+ */
55
+ dataKey: string;
56
+ /**
57
+ * Параметры точки.
58
+ */
59
+ dotSettings?: DotSettingProps;
60
+ /**
61
+ * Индекс.
62
+ */
63
+ index: number;
64
+ /**
65
+ * Цвет линии.
66
+ */
67
+ stroke: string;
68
+ /**
69
+ * Значения по этим координатам.
70
+ */
71
+ value: number;
72
+ }
73
+ export { DotSettingProps, ActiveDotProps, PointProps, DotProps };
@@ -0,0 +1,29 @@
1
+ interface GradientProps {
2
+ /**
3
+ * Отступ.
4
+ */
5
+ offset: number;
6
+ /**
7
+ * Цвет.
8
+ */
9
+ stopColor: string;
10
+ /**
11
+ * Значение празрачности.
12
+ */
13
+ stopOpacity: number;
14
+ }
15
+ interface LinearGradientProps {
16
+ /**
17
+ * Индефикатор графика.
18
+ */
19
+ id: string;
20
+ /**
21
+ * Индефикатор градиента.
22
+ */
23
+ gid: string;
24
+ /**
25
+ * Массив настроек градинта.
26
+ */
27
+ points: GradientProps[];
28
+ }
29
+ export { GradientProps, LinearGradientProps };
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { XAxisProps } from "../xAxis.types";
3
+ interface TickProps {
4
+ payload: {
5
+ coordinate: number;
6
+ value: number;
7
+ };
8
+ /**
9
+ * Функция форматирования
10
+ */
11
+ tickFormatter: (value: number | string) => React.ReactText;
12
+ x: number;
13
+ y: number;
14
+ /**
15
+ * Настройки оси Х
16
+ */
17
+ xAxis: XAxisProps;
18
+ }
19
+ export { TickProps };
@@ -0,0 +1,16 @@
1
+ import { AxisProps } from "./utils/axis.types";
2
+ interface XAxisProps extends AxisProps {
3
+ /**
4
+ * Ключ данных, отображаемых на оси.
5
+ */
6
+ dataKey: string | number;
7
+ /**
8
+ * Ориентация оси
9
+ */
10
+ orientation?: 'top' | 'bottom';
11
+ /**
12
+ * Тип деления оси
13
+ */
14
+ tickType?: 'point';
15
+ }
16
+ export { XAxisProps };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,8 @@
1
+ import { AxisProps } from "./utils/axis.types";
2
+ interface YAxisProps extends AxisProps {
3
+ /**
4
+ * Ориентация оси
5
+ */
6
+ orientation?: 'left' | 'right';
7
+ }
8
+ export { YAxisProps };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { OptionsProps } from "./types/options.types";
4
+ declare const _default: React.MemoExoticComponent<(props: OptionsProps) => JSX.Element | null>;
5
+ export { _default as default };
@@ -0,0 +1,264 @@
1
+ import { _ as __assign } from './tslib.es6-defbba9d.js';
2
+ import React, { useState, useRef, useMemo, useCallback, useEffect } from 'react';
3
+ import cn from 'classnames';
4
+ import { Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, Cell, ResponsiveContainer, ComposedChart } from 'recharts';
5
+ import { LinearGradient } from './components/LinearGradient.js';
6
+ import '../../typography/esm';
7
+ import './icons/Circle.js';
8
+ import './icons/CircleLine.js';
9
+ import './icons/FilledCircle.js';
10
+ import './icons/StrokeCircle.js';
11
+ import { Legends } from './components/Legends/index.js';
12
+ import './icons/Point.js';
13
+ import { Dot } from './components/Dot/index.js';
14
+ import './hooks/useSettings/utils/setComposedChartsMargin.js';
15
+ import './hooks/useSettings/utils/setDatas.js';
16
+ import './hooks/useSettings/utils/setGradientCharts.js';
17
+ import './hooks/useSettings/utils/setLegendMargin.js';
18
+ import './hooks/useSettings/utils/sortByIndex.js';
19
+ import { useSettings } from './hooks/useSettings/index.js';
20
+ import { Tick } from './components/Tick/index.js';
21
+ import { TooltipContent } from './components/TooltipContent/index.js';
22
+
23
+ var CustomizedHOC = function (Component, options) {
24
+ var NewComponent = function (props) {
25
+ return React.createElement(Component, __assign({}, props, options));
26
+ };
27
+ return NewComponent;
28
+ };
29
+
30
+ var styles = {"coreChart":"chart__coreChart_y5qhn","bar":"chart__bar_y5qhn","unfocused":"chart__unfocused_y5qhn"};
31
+ require('./index.css');
32
+
33
+ var Chart = function (props) {
34
+ var _a;
35
+ var _b = useSettings(props), _c = _b[0], state = _c.state, data = _c.data, charts = _c.charts, filterCount = _c.filterCount, _d = _b[1], setCharts = _d.setCharts, setFilterCount = _d.setFilterCount;
36
+ var _e = useState({
37
+ prev: null,
38
+ active: null,
39
+ }), activeDotsState = _e[0], setActiveDotsState = _e[1];
40
+ var _f = useState(null), yBrush = _f[0], setYBrush = _f[1];
41
+ var _g = useState(null), tooltipArrowSide = _g[0], setTooltipArrowSide = _g[1];
42
+ var _h = useState(0), heightLegend = _h[0], setHeightLegend = _h[1];
43
+ var svgRef = useRef(null);
44
+ var tooltipRef = useRef(null);
45
+ var renderGradient = useMemo(function () {
46
+ if (!state)
47
+ return null;
48
+ return state.series.map(function (item) {
49
+ var chart = item.chart, gradient = item.gradient;
50
+ if (chart !== 'gradient' || !gradient)
51
+ return null;
52
+ var gid = gradient.gid, points = gradient.points;
53
+ return (React.createElement(LinearGradient, { key: state.id + "-" + gid, id: state.id, gid: gid, points: points }));
54
+ });
55
+ }, [state]);
56
+ var toggleChart = useCallback(function (item) {
57
+ var chart = item.chart, dataKey = item.properties.dataKey;
58
+ var withGrad = chart === 'area';
59
+ var changed = false;
60
+ if (charts["" + dataKey] && filterCount > 1) {
61
+ changed = true;
62
+ setFilterCount(function (prev) { return prev - 1; });
63
+ }
64
+ if (!charts["" + dataKey]) {
65
+ changed = true;
66
+ setFilterCount(function (prev) { return prev + 1; });
67
+ }
68
+ if (!changed)
69
+ return;
70
+ setCharts(function (prev) {
71
+ var newState = __assign({}, prev);
72
+ newState["" + dataKey] = !newState["" + dataKey];
73
+ if (withGrad)
74
+ newState[dataKey + "-gradient"] = !newState[dataKey + "-gradient"];
75
+ return newState;
76
+ });
77
+ }, [charts, filterCount, setCharts, setFilterCount]);
78
+ var legendRef = useCallback(function (node) {
79
+ if (node !== null) {
80
+ setTimeout(function () {
81
+ var height = node.getBoundingClientRect().height;
82
+ setHeightLegend(height);
83
+ }, 0);
84
+ }
85
+ }, []);
86
+ var renderLegend = useMemo(function () {
87
+ var _a, _b, _c;
88
+ if (!(state === null || state === void 0 ? void 0 : state.legend))
89
+ return null;
90
+ var translate = ((_a = state === null || state === void 0 ? void 0 : state.xAxis) === null || _a === void 0 ? void 0 : _a.tickMargin) && ((_b = state === null || state === void 0 ? void 0 : state.legend) === null || _b === void 0 ? void 0 : _b.verticalAlign) !== 'top'
91
+ ? state.xAxis.tickMargin + (((_c = state === null || state === void 0 ? void 0 : state.brush) === null || _c === void 0 ? void 0 : _c.brushMargin) || 0)
92
+ : 0;
93
+ return (React.createElement(Legend, __assign({}, (state.legend || null), { content: React.createElement(Legends, { legend: state.legend, series: state.series, id: state.id, toggleChart: toggleChart, ref: legendRef, charts: charts }), wrapperStyle: {
94
+ transform: "translateY(" + translate + "px)",
95
+ } })));
96
+ }, [state, charts, toggleChart, legendRef]);
97
+ var renderCartesianGrid = useMemo(function () {
98
+ if (!(state === null || state === void 0 ? void 0 : state.cartesianGrid))
99
+ return null;
100
+ return React.createElement(CartesianGrid, __assign({}, state.cartesianGrid));
101
+ }, [state]);
102
+ var renderXAxis = useMemo(function () {
103
+ var _a;
104
+ if (!(state === null || state === void 0 ? void 0 : state.xAxis))
105
+ return null;
106
+ var tick;
107
+ if (((_a = state === null || state === void 0 ? void 0 : state.xAxis) === null || _a === void 0 ? void 0 : _a.tickType) === 'point') {
108
+ tick = CustomizedHOC(Tick, { xAxis: state.xAxis });
109
+ }
110
+ else if (typeof state.xAxis.tick === 'boolean') {
111
+ tick = state.xAxis.tick;
112
+ }
113
+ else {
114
+ tick = true;
115
+ }
116
+ return React.createElement(XAxis, __assign({}, state.xAxis, { tick: tick }));
117
+ }, [state]);
118
+ var renderYAxis = useMemo(function () {
119
+ var _a;
120
+ if (!(state === null || state === void 0 ? void 0 : state.yAxis))
121
+ return null;
122
+ var tick;
123
+ if ((_a = state === null || state === void 0 ? void 0 : state.yAxis) === null || _a === void 0 ? void 0 : _a.tick) {
124
+ tick = CustomizedHOC(state.yAxis.tick, { state: state });
125
+ }
126
+ else if (typeof state.yAxis.tick === 'boolean') {
127
+ tick = state.yAxis.tick;
128
+ }
129
+ else {
130
+ tick = true;
131
+ }
132
+ return React.createElement(YAxis, __assign({}, state.yAxis, { tick: tick }));
133
+ }, [state]);
134
+ var renderBrush = useMemo(function () {
135
+ if (!(state === null || state === void 0 ? void 0 : state.brush))
136
+ return null;
137
+ return React.createElement(Brush, __assign({ y: typeof yBrush === 'number' ? yBrush : 0 }, state.brush));
138
+ }, [state, yBrush]);
139
+ var renderTooltip = useMemo(function () {
140
+ if (!(state === null || state === void 0 ? void 0 : state.tooltip))
141
+ return null;
142
+ return (React.createElement(Tooltip, __assign({ ref: tooltipRef }, state.tooltip, { content: CustomizedHOC(TooltipContent, { series: state.series, tooltipArrowSide: tooltipArrowSide }) })));
143
+ }, [state, tooltipArrowSide]);
144
+ var renderChartsItems = useMemo(function () {
145
+ if (!state || !charts)
146
+ return null;
147
+ return state.series.map(function (item) {
148
+ var chart = item.chart, properties = item.properties;
149
+ var show = charts["" + properties.dataKey];
150
+ switch (chart) {
151
+ case 'bar':
152
+ return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React.createElement(Bar, __assign({ key: state.id + "-" + properties.dataKey }, properties), data.map(function (_, index) {
153
+ var key = state.id + "-" + properties.dataKey + "-" + index;
154
+ return (React.createElement(Cell, { key: key, className: cn(styles.bar, typeof activeDotsState.active === 'number' &&
155
+ activeDotsState.active !== index
156
+ ? styles.unfocused
157
+ : '') }));
158
+ }))) : null;
159
+ case 'area':
160
+ case 'line':
161
+ return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React.createElement(Line, __assign({ key: state.id + "-" + properties.dataKey }, properties, { dot: properties.dot && properties.dotSettings
162
+ ? CustomizedHOC(Dot, {
163
+ activeDot: activeDotsState.active,
164
+ dotSettings: properties.dotSettings,
165
+ inherit: (properties === null || properties === void 0 ? void 0 : properties.inheritStroke) ? properties.inheritStroke
166
+ : false,
167
+ })
168
+ : false, activeDot: false }))) : null;
169
+ case 'gradient':
170
+ return show && !(item === null || item === void 0 ? void 0 : item.hide) ? (React.createElement(Area, __assign({}, item.properties, { key: state.id + "-" + item.properties.dataKey, dataKey: "" + item.properties.dataKey, stroke: 'transparent', fill: item.gradient.gid
171
+ ? "url(#" + state.id + "-" + item.gradient.gid + ")"
172
+ : item.properties.fill, dot: false, activeDot: false }))) : null;
173
+ default:
174
+ return null;
175
+ }
176
+ });
177
+ }, [charts, state, activeDotsState, data]);
178
+ // Позиционирование brush
179
+ useEffect(function () {
180
+ var _a, _b, _c, _d, _e, _f, _g;
181
+ if (!state || !state.brush)
182
+ return;
183
+ if (!heightLegend || heightLegend === 0)
184
+ return;
185
+ var align = (_a = state === null || state === void 0 ? void 0 : state.legend) === null || _a === void 0 ? void 0 : _a.verticalAlign;
186
+ var legendHeight = align === 'top' ? 0 : heightLegend;
187
+ var marginTick = ((_b = state === null || state === void 0 ? void 0 : state.xAxis) === null || _b === void 0 ? void 0 : _b.tickMargin) ? (_c = state === null || state === void 0 ? void 0 : state.xAxis) === null || _c === void 0 ? void 0 : _c.tickMargin : 0;
188
+ var brushY = (((_d = svgRef.current) === null || _d === void 0 ? void 0 : _d.clientHeight) ? svgRef.current.clientHeight : 0) -
189
+ legendHeight -
190
+ state.brush.height -
191
+ (((_f = (_e = state === null || state === void 0 ? void 0 : state.composeChart) === null || _e === void 0 ? void 0 : _e.margin) === null || _f === void 0 ? void 0 : _f.bottom) ? state.composeChart.margin.bottom : 0) +
192
+ marginTick +
193
+ (((_g = state.brush) === null || _g === void 0 ? void 0 : _g.brushMargin) ? state.brush.brushMargin : 0);
194
+ setYBrush(brushY);
195
+ }, [heightLegend, state]);
196
+ var leaveEvent = function (isTooltipActive) {
197
+ if (isTooltipActive)
198
+ return;
199
+ if (typeof activeDotsState.prev !== 'number' || typeof activeDotsState.active !== 'number')
200
+ return;
201
+ setActiveDotsState({
202
+ prev: null,
203
+ active: null,
204
+ });
205
+ };
206
+ var arrowTooltipEvent = function (activeCoordinate) {
207
+ var _a, _b, _c, _d, _e, _f, _g;
208
+ if (!((_a = state === null || state === void 0 ? void 0 : state.tooltip) === null || _a === void 0 ? void 0 : _a.arrow))
209
+ return;
210
+ if (((_b = state === null || state === void 0 ? void 0 : state.tooltip) === null || _b === void 0 ? void 0 : _b.arrow) && (activeCoordinate === null || activeCoordinate === void 0 ? void 0 : activeCoordinate.x)) {
211
+ var side = (((_c = svgRef === null || svgRef === void 0 ? void 0 : svgRef.current) === null || _c === void 0 ? void 0 : _c.clientWidth) || 0) -
212
+ (((_e = (_d = state === null || state === void 0 ? void 0 : state.composeChart) === null || _d === void 0 ? void 0 : _d.margin) === null || _e === void 0 ? void 0 : _e.right) || 0) -
213
+ activeCoordinate.x -
214
+ (((_g = (_f = tooltipRef.current) === null || _f === void 0 ? void 0 : _f.state) === null || _g === void 0 ? void 0 : _g.boxWidth) || 0) >
215
+ 20;
216
+ setTooltipArrowSide(side);
217
+ }
218
+ };
219
+ var hoverEvent = function (isTooltipActive, activeTooltipIndex) {
220
+ if (!isTooltipActive)
221
+ return;
222
+ if (typeof activeDotsState.active === 'number' &&
223
+ activeTooltipIndex === activeDotsState.active)
224
+ return;
225
+ if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.active !== 'number') {
226
+ setActiveDotsState({
227
+ prev: activeTooltipIndex,
228
+ active: activeTooltipIndex,
229
+ });
230
+ }
231
+ if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.prev === 'number') {
232
+ setActiveDotsState(function (prev) {
233
+ return {
234
+ prev: prev.active,
235
+ active: activeTooltipIndex,
236
+ };
237
+ });
238
+ }
239
+ };
240
+ var mouseMove = function (e) {
241
+ arrowTooltipEvent(e.activeCoordinate);
242
+ hoverEvent(e.isTooltipActive, e.activeTooltipIndex);
243
+ leaveEvent(e.isTooltipActive);
244
+ };
245
+ var mouseLeave = function (e) {
246
+ leaveEvent(e.isTooltipActive);
247
+ };
248
+ if (!data || !charts || !state)
249
+ return null;
250
+ return (React.createElement("div", { className: styles.coreChart, ref: svgRef, id: (state === null || state === void 0 ? void 0 : state.id) || '', style: { width: '100%', height: '100%' } },
251
+ React.createElement(ResponsiveContainer, { debounce: ((_a = state === null || state === void 0 ? void 0 : state.responsiveContainer) === null || _a === void 0 ? void 0 : _a.debounce) ? state.responsiveContainer.debounce : 0, width: '100%' },
252
+ React.createElement(ComposedChart, __assign({}, state === null || state === void 0 ? void 0 : state.composeChart, { onMouseMove: mouseMove, onMouseLeave: mouseLeave, data: data }),
253
+ React.createElement("defs", null, renderGradient),
254
+ state.cartesianGrid && renderCartesianGrid,
255
+ state.xAxis && renderXAxis,
256
+ state.yAxis && renderYAxis,
257
+ renderChartsItems,
258
+ state.tooltip && renderTooltip,
259
+ state.brush && renderBrush,
260
+ state.legend && renderLegend))));
261
+ };
262
+ var Component = React.memo(Chart);
263
+
264
+ export default Component;
@@ -0,0 +1,23 @@
1
+ /* hash: 1pu5t */
2
+ .chart__dotUnfocused_1pu5t {
3
+ opacity: 0.3;
4
+ }
5
+
6
+ .chart__dot_1pu5t,
7
+ .chart__dotItem_1pu5t,
8
+ .chart__dotWrap_1pu5t {
9
+ transition: all 0.2s ease;
10
+ }
11
+
12
+ .chart__dot_1pu5t {
13
+ animation: chart__showDot_1pu5t 0.5s ease;
14
+ }
15
+
16
+ @keyframes chart__showDot_1pu5t {
17
+ from {
18
+ opacity: 0;
19
+ }
20
+ to {
21
+ opacity: 1;
22
+ }
23
+ }
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ 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 };
@@ -0,0 +1,46 @@
1
+ import React, { useState, useEffect } from 'react';
2
+ import cn from 'classnames';
3
+ import { PointIcon } from '../../icons/Point.js';
4
+
5
+ var styles = {"dotUnfocused":"chart__dotUnfocused_1pu5t","dot":"chart__dot_1pu5t","dotItem":"chart__dotItem_1pu5t","dotWrap":"chart__dotWrap_1pu5t","showDot":"chart__showDot_1pu5t"};
6
+ require('./index.css');
7
+
8
+ var Dot = React.forwardRef(function (_a, ref) {
9
+ var cx = _a.cx, cy = _a.cy, index = _a.index, activeDot = _a.activeDot, dataKey = _a.dataKey, dotSettings = _a.dotSettings, value = _a.value, stroke = _a.stroke;
10
+ var _b = useState(0), windowWidth = _b[0], setWindowWidth = _b[1];
11
+ var _c = useState(0), height = _c[0], setHeight = _c[1];
12
+ var _d = useState(0), width = _d[0], setWidth = _d[1];
13
+ var _e = useState(null), option = _e[0], setOption = _e[1];
14
+ useEffect(function () {
15
+ var dotSetting = Array.isArray(dotSettings) && dotSettings.length > 0
16
+ ? dotSettings.find(function (item) { return item.media && windowWidth < item.media; })
17
+ : dotSettings;
18
+ if (Array.isArray(dotSettings) && dotSettings.length > 0 && !dotSetting) {
19
+ dotSetting = dotSettings[dotSettings.length - 1];
20
+ }
21
+ setWindowWidth(window.innerWidth);
22
+ setOption(dotSetting);
23
+ }, [dotSettings, windowWidth]);
24
+ useEffect(function () {
25
+ if (!option)
26
+ return;
27
+ if (typeof activeDot === 'number' && activeDot === index) {
28
+ setHeight(option.height * option.scale);
29
+ setWidth(option.width * option.scale);
30
+ }
31
+ else {
32
+ setHeight(option.height * option.initScale);
33
+ setWidth(option.width * option.initScale);
34
+ }
35
+ }, [activeDot, index, option]);
36
+ if (!value)
37
+ return null;
38
+ return (React.createElement("g", { ref: ref, className: cn(styles.dot), transform: "translate(" + (cx - width / 2) + ", " + (cy - height / 2) + ")" },
39
+ React.createElement("g", { className: cn(styles.dotWrap), transform: "scale(" + (activeDot === index ? (option === null || option === void 0 ? void 0 : option.scale) || 0 : (option === null || option === void 0 ? void 0 : option.initScale) || 0) + ")" },
40
+ React.createElement("svg", { className: cn(styles.dotItem, activeDot === index ? styles.dotActive : '', typeof activeDot === 'number' && activeDot !== index
41
+ ? styles.dotUnfocused
42
+ : ''), "data-id": index, "data-name": dataKey, width: (option === null || option === void 0 ? void 0 : option.width) || 0, height: (option === null || option === void 0 ? void 0 : option.height) || 0 },
43
+ React.createElement(PointIcon, { fill: stroke })))));
44
+ });
45
+
46
+ export { Dot };
@@ -0,0 +1,40 @@
1
+ /* hash: hkiwp */
2
+ :root {
3
+
4
+ /* Hard */
5
+
6
+ /* Up */
7
+
8
+ /* Hard up */
9
+ }
10
+ :root {
11
+ --gap-2xl: 32px;
12
+ }
13
+ .chart__legendContent_hkiwp {
14
+ display: flex;
15
+ align-items: center;
16
+ flex-wrap: wrap;
17
+ }
18
+ .chart__legendWrap_hkiwp {
19
+ width: 100%;
20
+ margin: 0;
21
+ padding: 0;
22
+ }
23
+ .chart__legendItem_hkiwp {
24
+ margin-right: var(--gap-2xl);
25
+ cursor: pointer;
26
+ display: inline-block;
27
+ }
28
+ .chart__legendItem_hkiwp:last-child {
29
+ margin-right: 0;
30
+ }
31
+ .chart__legendUnactive_hkiwp {
32
+ opacity: 0.3;
33
+ }
34
+ .chart__legendIcon_hkiwp {
35
+ margin-right: 13px;
36
+ display: flex;
37
+ }
38
+ .chart__legendValue_hkiwp {
39
+ text-transform: capitalize;
40
+ }
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { DataDynamicBooleanProps } from "../../types/utils/data.types";
4
+ import { LegendProps } from "../../types/legend.types";
5
+ import { SeriaProps } from "../../types/seria.types";
6
+ interface Props {
7
+ legend: LegendProps;
8
+ series: SeriaProps[];
9
+ id: string;
10
+ charts: DataDynamicBooleanProps;
11
+ toggleChart(item: SeriaProps): void;
12
+ }
13
+ declare const Legends: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLUListElement>>;
14
+ export { Legends };
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import cn from 'classnames';
3
+ import { Typography } from '../../../../typography/esm';
4
+ import { CircleIcon } from '../../icons/Circle.js';
5
+ import { CircleLineIcon } from '../../icons/CircleLine.js';
6
+ import { FilledCircleIcon } from '../../icons/FilledCircle.js';
7
+ import { StrokeCircleIcon } from '../../icons/StrokeCircle.js';
8
+
9
+ var styles = {"legendContent":"chart__legendContent_hkiwp","legendWrap":"chart__legendWrap_hkiwp","legendItem":"chart__legendItem_hkiwp","legendUnactive":"chart__legendUnactive_hkiwp","legendIcon":"chart__legendIcon_hkiwp","legendValue":"chart__legendValue_hkiwp"};
10
+ require('./index.css');
11
+
12
+ var icons = {
13
+ circleLine: CircleLineIcon,
14
+ filledCircle: FilledCircleIcon,
15
+ strokeCircle: StrokeCircleIcon,
16
+ circle: CircleIcon,
17
+ };
18
+ var Legends = React.forwardRef(function (_a, ref) {
19
+ var legend = _a.legend, series = _a.series, id = _a.id, charts = _a.charts, toggleChart = _a.toggleChart;
20
+ var style = {
21
+ textAlign: legend.align || 'center',
22
+ transform: "translateY(" + ((legend === null || legend === void 0 ? void 0 : legend.marginTop) ? legend.marginTop : 0) *
23
+ (legend.verticalAlign === 'top' ? -1 : 1) + "px)",
24
+ };
25
+ return (React.createElement("ul", { ref: ref, className: cn(styles.legendWrap), style: style }, series.map(function (item) {
26
+ var _a, _b;
27
+ if (item.hideLegend || item.hide)
28
+ return null;
29
+ var Icon = icons[item.icon] || CircleIcon;
30
+ return (React.createElement("li", { role: 'presentation', key: id + "-" + item.properties.dataKey, className: cn(styles.legendItem, charts["" + item.properties.dataKey] ? '' : styles.legendUnactive), onClick: function () { return toggleChart(item); } },
31
+ React.createElement("div", { className: cn(styles.legendContent) },
32
+ Icon ? (React.createElement("i", { className: cn(styles.legendIcon) },
33
+ React.createElement(Icon, { fill: ((_a = item.properties) === null || _a === void 0 ? void 0 : _a.fill) || ((_b = item.properties) === null || _b === void 0 ? void 0 : _b.stroke) ||
34
+ '', height: legend.iconHeight || 16 }))) : null,
35
+ React.createElement(Typography.Text, { view: 'primary-medium', tag: 'span', className: cn(styles.legendValue) }, item.properties.name))));
36
+ })));
37
+ });
38
+
39
+ export { Legends };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { LinearGradientProps } from "../types/utils/gradient.types";
4
+ declare const LinearGradient: ({ id, gid, points }: LinearGradientProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
5
+ export { LinearGradient };
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+
3
+ var LinearGradient = function (_a) {
4
+ var id = _a.id, gid = _a.gid, points = _a.points;
5
+ return (React.createElement("linearGradient", { key: id + "-" + gid, id: id + "-" + gid, x1: '0', y1: '0', x2: '0', y2: '1' }, points.map(function (point, index) { return (React.createElement("stop", { key: "" + id + gid + "-" + index.toString(), offset: point.offset + "%", stopColor: point.stopColor, stopOpacity: point.stopOpacity })); })));
6
+ };
7
+
8
+ export { LinearGradient };
@@ -0,0 +1,27 @@
1
+ /* hash: 11yg1 */
2
+ :root {
3
+ --color-dark-bg-primary: #0b1f35;
4
+ --color-light-text-primary: #0b1f35;
5
+ }
6
+ :root {
7
+
8
+ /* Hard */
9
+
10
+ /* Up */
11
+
12
+ /* Hard up */
13
+ }
14
+ .chart__tickText_11yg1 {
15
+ fill: var(--color-light-text-primary);
16
+ font-size: 16px;
17
+ line-height: 24px;
18
+ font-weight: 400;
19
+ }
20
+ .chart__circle_11yg1 {
21
+ opacity: 0.3;
22
+ fill: var(--color-dark-bg-primary);
23
+ }
24
+ .chart__circle_11yg1 {
25
+ opacity: 0.3;
26
+ fill: var(--color-dark-bg-primary);
27
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TickProps } from "../../types/utils/tick.types";
3
+ declare const Tick: ({ y, payload, tickFormatter, xAxis }: TickProps) => JSX.Element;
4
+ export { Tick };