@alfalab/core-components-chart 4.0.1 → 4.0.2

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 (286) hide show
  1. package/Component.d.ts +1 -1
  2. package/Component.js +1 -1
  3. package/Component.js.map +1 -1
  4. package/components/Dot/index.css +7 -7
  5. package/components/Dot/index.d.ts +1 -1
  6. package/components/Dot/index.js.map +1 -1
  7. package/components/Dot/index.module.css.js +1 -1
  8. package/components/Legends/index.css +7 -7
  9. package/components/Legends/index.d.ts +3 -3
  10. package/components/Legends/index.js.map +1 -1
  11. package/components/Legends/index.module.css.js +1 -1
  12. package/components/Legends/index.module.css.js.map +1 -1
  13. package/components/LinearGradient.d.ts +1 -1
  14. package/components/LinearGradient.js.map +1 -1
  15. package/components/RectBar.js.map +1 -1
  16. package/components/Tick/index.css +2 -5
  17. package/components/Tick/index.d.ts +1 -1
  18. package/components/Tick/index.js.map +1 -1
  19. package/components/Tick/index.module.css.js +1 -1
  20. package/components/Tick/index.module.css.js.map +1 -1
  21. package/components/TooltipContent/index.css +8 -7
  22. package/components/TooltipContent/index.d.ts +3 -3
  23. package/components/TooltipContent/index.js.map +1 -1
  24. package/components/TooltipContent/index.module.css.js +1 -1
  25. package/components/TooltipContent/index.module.css.js.map +1 -1
  26. package/cssm/Component.d.ts +1 -1
  27. package/cssm/Component.js +1 -1
  28. package/cssm/Component.js.map +1 -1
  29. package/cssm/components/Dot/index.d.ts +1 -1
  30. package/cssm/components/Dot/index.js.map +1 -1
  31. package/cssm/components/Legends/index.d.ts +3 -3
  32. package/cssm/components/Legends/index.js.map +1 -1
  33. package/cssm/components/LinearGradient.d.ts +1 -1
  34. package/cssm/components/LinearGradient.js.map +1 -1
  35. package/cssm/components/RectBar.js.map +1 -1
  36. package/cssm/components/Tick/index.d.ts +1 -1
  37. package/cssm/components/Tick/index.js.map +1 -1
  38. package/cssm/components/Tick/index.module.css +0 -3
  39. package/cssm/components/TooltipContent/index.d.ts +3 -3
  40. package/cssm/components/TooltipContent/index.js.map +1 -1
  41. package/cssm/components/TooltipContent/index.module.css +2 -1
  42. package/cssm/hooks/usePathBar/index.d.ts +1 -1
  43. package/cssm/hooks/usePathBar/index.js.map +1 -1
  44. package/cssm/hooks/useSettings/index.d.ts +3 -3
  45. package/cssm/hooks/useSettings/index.js.map +1 -1
  46. package/cssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
  47. package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
  48. package/cssm/hooks/useSettings/utils/setDatas.d.ts +2 -2
  49. package/cssm/hooks/useSettings/utils/setDatas.js.map +1 -1
  50. package/cssm/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
  51. package/cssm/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
  52. package/cssm/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
  53. package/cssm/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
  54. package/cssm/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
  55. package/cssm/hooks/useSettings/utils/sortByIndex.js.map +1 -1
  56. package/cssm/index.module.css +3 -1
  57. package/cssm/types/brush.types.d.ts +2 -2
  58. package/cssm/types/chart.types.d.ts +5 -5
  59. package/cssm/types/legend.types.d.ts +1 -1
  60. package/cssm/types/options.types.d.ts +10 -10
  61. package/cssm/types/payload.types.d.ts +1 -1
  62. package/cssm/types/responsiveContainer.types.d.ts +1 -1
  63. package/cssm/types/seria.types.d.ts +4 -4
  64. package/cssm/types/tooltip.types.d.ts +2 -2
  65. package/cssm/types/utils/axis.types.d.ts +1 -1
  66. package/cssm/types/utils/dot.types.d.ts +2 -2
  67. package/cssm/types/utils/tick.types.d.ts +1 -1
  68. package/cssm/types/xAxis.types.d.ts +1 -1
  69. package/cssm/types/yAxis.types.d.ts +1 -1
  70. package/esm/Component.d.ts +1 -1
  71. package/esm/Component.js +1 -1
  72. package/esm/Component.js.map +1 -1
  73. package/esm/components/Dot/index.css +7 -7
  74. package/esm/components/Dot/index.d.ts +1 -1
  75. package/esm/components/Dot/index.js.map +1 -1
  76. package/esm/components/Dot/index.module.css.js +1 -1
  77. package/esm/components/Legends/index.css +7 -7
  78. package/esm/components/Legends/index.d.ts +3 -3
  79. package/esm/components/Legends/index.js.map +1 -1
  80. package/esm/components/Legends/index.module.css.js +1 -1
  81. package/esm/components/Legends/index.module.css.js.map +1 -1
  82. package/esm/components/LinearGradient.d.ts +1 -1
  83. package/esm/components/LinearGradient.js.map +1 -1
  84. package/esm/components/RectBar.js.map +1 -1
  85. package/esm/components/Tick/index.css +2 -5
  86. package/esm/components/Tick/index.d.ts +1 -1
  87. package/esm/components/Tick/index.js.map +1 -1
  88. package/esm/components/Tick/index.module.css.js +1 -1
  89. package/esm/components/Tick/index.module.css.js.map +1 -1
  90. package/esm/components/TooltipContent/index.css +8 -7
  91. package/esm/components/TooltipContent/index.d.ts +3 -3
  92. package/esm/components/TooltipContent/index.js.map +1 -1
  93. package/esm/components/TooltipContent/index.module.css.js +1 -1
  94. package/esm/components/TooltipContent/index.module.css.js.map +1 -1
  95. package/esm/hooks/usePathBar/index.d.ts +1 -1
  96. package/esm/hooks/usePathBar/index.js.map +1 -1
  97. package/esm/hooks/useSettings/index.d.ts +3 -3
  98. package/esm/hooks/useSettings/index.js.map +1 -1
  99. package/esm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
  100. package/esm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
  101. package/esm/hooks/useSettings/utils/setDatas.d.ts +2 -2
  102. package/esm/hooks/useSettings/utils/setDatas.js.map +1 -1
  103. package/esm/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
  104. package/esm/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
  105. package/esm/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
  106. package/esm/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
  107. package/esm/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
  108. package/esm/hooks/useSettings/utils/sortByIndex.js.map +1 -1
  109. package/esm/index.css +7 -5
  110. package/esm/index.module.css.js +1 -1
  111. package/esm/index.module.css.js.map +1 -1
  112. package/esm/types/brush.types.d.ts +2 -2
  113. package/esm/types/chart.types.d.ts +5 -5
  114. package/esm/types/legend.types.d.ts +1 -1
  115. package/esm/types/options.types.d.ts +10 -10
  116. package/esm/types/payload.types.d.ts +1 -1
  117. package/esm/types/responsiveContainer.types.d.ts +1 -1
  118. package/esm/types/seria.types.d.ts +4 -4
  119. package/esm/types/tooltip.types.d.ts +2 -2
  120. package/esm/types/utils/axis.types.d.ts +1 -1
  121. package/esm/types/utils/dot.types.d.ts +2 -2
  122. package/esm/types/utils/tick.types.d.ts +1 -1
  123. package/esm/types/xAxis.types.d.ts +1 -1
  124. package/esm/types/yAxis.types.d.ts +1 -1
  125. package/hooks/usePathBar/index.d.ts +1 -1
  126. package/hooks/usePathBar/index.js.map +1 -1
  127. package/hooks/useSettings/index.d.ts +3 -3
  128. package/hooks/useSettings/index.js.map +1 -1
  129. package/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
  130. package/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
  131. package/hooks/useSettings/utils/setDatas.d.ts +2 -2
  132. package/hooks/useSettings/utils/setDatas.js.map +1 -1
  133. package/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
  134. package/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
  135. package/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
  136. package/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
  137. package/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
  138. package/hooks/useSettings/utils/sortByIndex.js.map +1 -1
  139. package/index.css +7 -5
  140. package/index.module.css.js +1 -1
  141. package/index.module.css.js.map +1 -1
  142. package/modern/Component.d.ts +1 -1
  143. package/modern/Component.js +1 -1
  144. package/modern/Component.js.map +1 -1
  145. package/modern/components/Dot/index.css +7 -7
  146. package/modern/components/Dot/index.d.ts +1 -1
  147. package/modern/components/Dot/index.js.map +1 -1
  148. package/modern/components/Dot/index.module.css.js +1 -1
  149. package/modern/components/Legends/index.css +7 -7
  150. package/modern/components/Legends/index.d.ts +3 -3
  151. package/modern/components/Legends/index.js.map +1 -1
  152. package/modern/components/Legends/index.module.css.js +1 -1
  153. package/modern/components/Legends/index.module.css.js.map +1 -1
  154. package/modern/components/LinearGradient.d.ts +1 -1
  155. package/modern/components/LinearGradient.js.map +1 -1
  156. package/modern/components/RectBar.js.map +1 -1
  157. package/modern/components/Tick/index.css +2 -5
  158. package/modern/components/Tick/index.d.ts +1 -1
  159. package/modern/components/Tick/index.js.map +1 -1
  160. package/modern/components/Tick/index.module.css.js +1 -1
  161. package/modern/components/Tick/index.module.css.js.map +1 -1
  162. package/modern/components/TooltipContent/index.css +8 -7
  163. package/modern/components/TooltipContent/index.d.ts +3 -3
  164. package/modern/components/TooltipContent/index.js.map +1 -1
  165. package/modern/components/TooltipContent/index.module.css.js +1 -1
  166. package/modern/components/TooltipContent/index.module.css.js.map +1 -1
  167. package/modern/hooks/usePathBar/index.d.ts +1 -1
  168. package/modern/hooks/usePathBar/index.js.map +1 -1
  169. package/modern/hooks/useSettings/index.d.ts +3 -3
  170. package/modern/hooks/useSettings/index.js.map +1 -1
  171. package/modern/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
  172. package/modern/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
  173. package/modern/hooks/useSettings/utils/setDatas.d.ts +2 -2
  174. package/modern/hooks/useSettings/utils/setDatas.js.map +1 -1
  175. package/modern/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
  176. package/modern/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
  177. package/modern/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
  178. package/modern/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
  179. package/modern/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
  180. package/modern/hooks/useSettings/utils/sortByIndex.js.map +1 -1
  181. package/modern/index.css +7 -5
  182. package/modern/index.module.css.js +1 -1
  183. package/modern/index.module.css.js.map +1 -1
  184. package/modern/types/brush.types.d.ts +2 -2
  185. package/modern/types/chart.types.d.ts +5 -5
  186. package/modern/types/legend.types.d.ts +1 -1
  187. package/modern/types/options.types.d.ts +10 -10
  188. package/modern/types/payload.types.d.ts +1 -1
  189. package/modern/types/responsiveContainer.types.d.ts +1 -1
  190. package/modern/types/seria.types.d.ts +4 -4
  191. package/modern/types/tooltip.types.d.ts +2 -2
  192. package/modern/types/utils/axis.types.d.ts +1 -1
  193. package/modern/types/utils/dot.types.d.ts +2 -2
  194. package/modern/types/utils/tick.types.d.ts +1 -1
  195. package/modern/types/xAxis.types.d.ts +1 -1
  196. package/modern/types/yAxis.types.d.ts +1 -1
  197. package/moderncssm/Component.d.ts +1 -1
  198. package/moderncssm/Component.js +1 -1
  199. package/moderncssm/Component.js.map +1 -1
  200. package/moderncssm/components/Dot/index.d.ts +1 -1
  201. package/moderncssm/components/Dot/index.js.map +1 -1
  202. package/moderncssm/components/Legends/index.d.ts +3 -3
  203. package/moderncssm/components/Legends/index.js.map +1 -1
  204. package/moderncssm/components/Legends/index.module.css +2 -0
  205. package/moderncssm/components/LinearGradient.d.ts +1 -1
  206. package/moderncssm/components/LinearGradient.js.map +1 -1
  207. package/moderncssm/components/RectBar.js.map +1 -1
  208. package/moderncssm/components/Tick/index.d.ts +1 -1
  209. package/moderncssm/components/Tick/index.js.map +1 -1
  210. package/moderncssm/components/Tick/index.module.css +2 -5
  211. package/moderncssm/components/TooltipContent/index.d.ts +3 -3
  212. package/moderncssm/components/TooltipContent/index.js.map +1 -1
  213. package/moderncssm/components/TooltipContent/index.module.css +2 -0
  214. package/moderncssm/hooks/usePathBar/index.d.ts +1 -1
  215. package/moderncssm/hooks/usePathBar/index.js.map +1 -1
  216. package/moderncssm/hooks/useSettings/index.d.ts +3 -3
  217. package/moderncssm/hooks/useSettings/index.js.map +1 -1
  218. package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
  219. package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
  220. package/moderncssm/hooks/useSettings/utils/setDatas.d.ts +2 -2
  221. package/moderncssm/hooks/useSettings/utils/setDatas.js.map +1 -1
  222. package/moderncssm/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
  223. package/moderncssm/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
  224. package/moderncssm/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
  225. package/moderncssm/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
  226. package/moderncssm/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
  227. package/moderncssm/hooks/useSettings/utils/sortByIndex.js.map +1 -1
  228. package/moderncssm/index.module.css +5 -2
  229. package/moderncssm/types/brush.types.d.ts +2 -2
  230. package/moderncssm/types/chart.types.d.ts +5 -5
  231. package/moderncssm/types/legend.types.d.ts +1 -1
  232. package/moderncssm/types/options.types.d.ts +10 -10
  233. package/moderncssm/types/payload.types.d.ts +1 -1
  234. package/moderncssm/types/responsiveContainer.types.d.ts +1 -1
  235. package/moderncssm/types/seria.types.d.ts +4 -4
  236. package/moderncssm/types/tooltip.types.d.ts +2 -2
  237. package/moderncssm/types/utils/axis.types.d.ts +1 -1
  238. package/moderncssm/types/utils/dot.types.d.ts +2 -2
  239. package/moderncssm/types/utils/tick.types.d.ts +1 -1
  240. package/moderncssm/types/xAxis.types.d.ts +1 -1
  241. package/moderncssm/types/yAxis.types.d.ts +1 -1
  242. package/package.json +3 -3
  243. package/src/Component.tsx +8 -8
  244. package/src/components/Dot/index.tsx +1 -1
  245. package/src/components/Legends/index.module.css +1 -1
  246. package/src/components/Legends/index.tsx +3 -3
  247. package/src/components/LinearGradient.tsx +1 -1
  248. package/src/components/RectBar.tsx +4 -4
  249. package/src/components/Tick/index.module.css +1 -6
  250. package/src/components/Tick/index.tsx +1 -1
  251. package/src/components/TooltipContent/index.module.css +1 -1
  252. package/src/components/TooltipContent/index.tsx +3 -3
  253. package/src/hooks/usePathBar/{index.tsx → index.ts} +3 -3
  254. package/src/hooks/useSettings/{index.tsx → index.ts} +3 -3
  255. package/src/hooks/useSettings/utils/setComposedChartsMargin.ts +4 -4
  256. package/src/hooks/useSettings/utils/setDatas.ts +4 -4
  257. package/src/hooks/useSettings/utils/setGradientCharts.ts +2 -2
  258. package/src/hooks/useSettings/utils/setLegendMargin.ts +2 -2
  259. package/src/hooks/useSettings/utils/sortByIndex.ts +1 -1
  260. package/src/index.module.css +4 -2
  261. package/src/types/brush.types.ts +2 -2
  262. package/src/types/chart.types.ts +5 -5
  263. package/src/types/legend.types.ts +1 -1
  264. package/src/types/options.types.ts +10 -10
  265. package/src/types/payload.types.ts +1 -1
  266. package/src/types/responsiveContainer.types.ts +1 -1
  267. package/src/types/seria.types.ts +4 -4
  268. package/src/types/tooltip.types.ts +2 -2
  269. package/src/types/utils/axis.types.ts +1 -1
  270. package/src/types/utils/dot.types.ts +2 -2
  271. package/src/types/utils/tick.types.ts +1 -1
  272. package/src/types/xAxis.types.ts +1 -1
  273. package/src/types/yAxis.types.ts +1 -1
  274. package/types/brush.types.d.ts +2 -2
  275. package/types/chart.types.d.ts +5 -5
  276. package/types/legend.types.d.ts +1 -1
  277. package/types/options.types.d.ts +10 -10
  278. package/types/payload.types.d.ts +1 -1
  279. package/types/responsiveContainer.types.d.ts +1 -1
  280. package/types/seria.types.d.ts +4 -4
  281. package/types/tooltip.types.d.ts +2 -2
  282. package/types/utils/axis.types.d.ts +1 -1
  283. package/types/utils/dot.types.d.ts +2 -2
  284. package/types/utils/tick.types.d.ts +1 -1
  285. package/types/xAxis.types.d.ts +1 -1
  286. package/types/yAxis.types.d.ts +1 -1
@@ -1,5 +1,5 @@
1
- import { SeriaProps } from '../../../types/seria.types';
2
- import { DataProps } from '../../../types/utils/data.types';
1
+ import { type SeriaProps } from '../../../types/seria.types';
2
+ import { type DataProps } from '../../../types/utils/data.types';
3
3
 
4
4
  export const setGradientCharts = (series: SeriaProps[]): SeriaProps[] => {
5
5
  const filterSeries = series.filter((item) => item.chart !== 'gradient');
@@ -1,5 +1,5 @@
1
- import { BrushProps } from '../../../types/brush.types';
2
- import { LegendProps } from '../../../types/legend.types';
1
+ import { type BrushProps } from '../../../types/brush.types';
2
+ import { type LegendProps } from '../../../types/legend.types';
3
3
 
4
4
  export const setLegendMargin = (brush: BrushProps, legend: LegendProps): number => {
5
5
  let top = 0;
@@ -1,4 +1,4 @@
1
- import { SeriaProps } from '../../../types/seria.types';
1
+ import { type SeriaProps } from '../../../types/seria.types';
2
2
 
3
3
  export const sortByIndex = (series: SeriaProps[]): SeriaProps[] =>
4
4
  series.sort((a: SeriaProps, b: SeriaProps) => {
@@ -1,4 +1,4 @@
1
- @import '@alfalab/core-components-vars/src/index.css';
1
+ @import '@alfalab/core-components-vars/src/no-typography-index.css';
2
2
 
3
3
  .coreChart {
4
4
  & :global(.recharts-line path) {
@@ -13,7 +13,9 @@
13
13
  }
14
14
 
15
15
  .bar {
16
- transition: opacity 0.2s ease-out, d 0.2s ease-out;
16
+ transition:
17
+ opacity 0.2s ease-out,
18
+ d 0.2s ease-out;
17
19
  }
18
20
 
19
21
  .unfocused {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { ReactText } from 'react';
3
- import { DataKey } from 'recharts/types/util/types';
2
+ import { type ReactText } from 'react';
3
+ import { type DataKey } from 'recharts/types/util/types';
4
4
 
5
5
  export interface BrushProps {
6
6
  /**
@@ -1,10 +1,10 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { ReactElement } from 'react';
3
- import { RectangleProps } from 'recharts';
4
- import { DataKey } from 'recharts/types/util/types';
2
+ import { type ReactElement } from 'react';
3
+ import { type RectangleProps } from 'recharts';
4
+ import { type DataKey } from 'recharts/types/util/types';
5
5
 
6
- import { DataProps } from './utils/data.types';
7
- import { DotSettingProps } from './utils/dot.types';
6
+ import { type DataProps } from './utils/data.types';
7
+ import { type DotSettingProps } from './utils/dot.types';
8
8
 
9
9
  type CurveType = 'linear' | 'monotone' | 'step';
10
10
 
@@ -1,4 +1,4 @@
1
- import { Formatter } from 'recharts/types/component/DefaultLegendContent';
1
+ import { type Formatter } from 'recharts/types/component/DefaultLegendContent';
2
2
 
3
3
  export interface LegendProps {
4
4
  /**
@@ -1,14 +1,14 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
 
3
- import { BrushProps } from './brush.types';
4
- import { CartesianGridProps } from './cartesianGrid.types';
5
- import { ComposedChartProps } from './composedChart.types';
6
- import { LegendProps } from './legend.types';
7
- import { ResponsiveContainerProps } from './responsiveContainer.types';
8
- import { SeriaProps } from './seria.types';
9
- import { TooltipProps } from './tooltip.types';
10
- import { XAxisProps } from './xAxis.types';
11
- import { YAxisProps } from './yAxis.types';
3
+ import { type BrushProps } from './brush.types';
4
+ import { type CartesianGridProps } from './cartesianGrid.types';
5
+ import { type ComposedChartProps } from './composedChart.types';
6
+ import { type LegendProps } from './legend.types';
7
+ import { type ResponsiveContainerProps } from './responsiveContainer.types';
8
+ import { type SeriaProps } from './seria.types';
9
+ import { type TooltipProps } from './tooltip.types';
10
+ import { type XAxisProps } from './xAxis.types';
11
+ import { type YAxisProps } from './yAxis.types';
12
12
 
13
13
  export interface OptionsProps {
14
14
  /**
@@ -1,4 +1,4 @@
1
- import { DataDynamicBooleanProps } from './utils/data.types';
1
+ import { type DataDynamicBooleanProps } from './utils/data.types';
2
2
 
3
3
  export interface PayloadProps {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
 
3
3
  export interface ResponsiveContainerProps {
4
4
  /**
@@ -1,7 +1,7 @@
1
- import { DataProps } from './utils/data.types';
2
- import { GradientProps } from './utils/gradient.types';
3
- import { ChartProps } from './chart.types';
4
- import { LabelListProps } from './labelList.types';
1
+ import { type DataProps } from './utils/data.types';
2
+ import { type GradientProps } from './utils/gradient.types';
3
+ import { type ChartProps } from './chart.types';
4
+ import { type LabelListProps } from './labelList.types';
5
5
 
6
6
  export type RadiusProp = {
7
7
  top?: number;
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { ReactElement, ReactText, SVGProps } from 'react';
3
- import { AnimationTiming } from 'recharts/types/util/types';
2
+ import { type ReactElement, type ReactText, type SVGProps } from 'react';
3
+ import { type AnimationTiming } from 'recharts/types/util/types';
4
4
 
5
5
  export interface TooltipProps {
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { ReactElement, SVGProps } from 'react';
2
+ import { type ReactElement, type SVGProps } from 'react';
3
3
 
4
4
  export interface AxisProps {
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { CoordinatesProps } from './coordinates.types';
2
- import { DataProps } from './data.types';
1
+ import { type CoordinatesProps } from './coordinates.types';
2
+ import { type DataProps } from './data.types';
3
3
 
4
4
  export interface DotSettingProps {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { XAxisProps } from '../xAxis.types';
1
+ import { type XAxisProps } from '../xAxis.types';
2
2
 
3
3
  export interface TickProps {
4
4
  /*
@@ -1,4 +1,4 @@
1
- import { AxisProps } from './utils/axis.types';
1
+ import { type AxisProps } from './utils/axis.types';
2
2
 
3
3
  export interface XAxisProps extends AxisProps {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { AxisProps } from './utils/axis.types';
1
+ import { type AxisProps } from './utils/axis.types';
2
2
 
3
3
  export interface YAxisProps extends AxisProps {
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { ReactText } from 'react';
2
- import { DataKey } from 'recharts/types/util/types';
1
+ import { type ReactText } from 'react';
2
+ import { type DataKey } from 'recharts/types/util/types';
3
3
  export interface BrushProps {
4
4
  /**
5
5
  * Ключ данных
@@ -1,8 +1,8 @@
1
- import { ReactElement } from 'react';
2
- import { RectangleProps } from 'recharts';
3
- import { DataKey } from 'recharts/types/util/types';
4
- import { DataProps } from './utils/data.types';
5
- import { DotSettingProps } from './utils/dot.types';
1
+ import { type ReactElement } from 'react';
2
+ import { type RectangleProps } from 'recharts';
3
+ import { type DataKey } from 'recharts/types/util/types';
4
+ import { type DataProps } from './utils/data.types';
5
+ import { type DotSettingProps } from './utils/dot.types';
6
6
  declare type CurveType = 'linear' | 'monotone' | 'step';
7
7
  export declare type RectangleShapeType = ReactElement<SVGElement> | ((props: any) => ReactElement<SVGElement>) | RectangleProps | boolean;
8
8
  export interface ChartProps {
@@ -1,4 +1,4 @@
1
- import { Formatter } from 'recharts/types/component/DefaultLegendContent';
1
+ import { type Formatter } from 'recharts/types/component/DefaultLegendContent';
2
2
  export interface LegendProps {
3
3
  /**
4
4
  * Выравнивание элементов легенды в вертикальном направлении.
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- import { BrushProps } from './brush.types';
3
- import { CartesianGridProps } from './cartesianGrid.types';
4
- import { ComposedChartProps } from './composedChart.types';
5
- import { LegendProps } from './legend.types';
6
- import { ResponsiveContainerProps } from './responsiveContainer.types';
7
- import { SeriaProps } from './seria.types';
8
- import { TooltipProps } from './tooltip.types';
9
- import { XAxisProps } from './xAxis.types';
10
- import { YAxisProps } from './yAxis.types';
1
+ import type React from 'react';
2
+ import { type BrushProps } from './brush.types';
3
+ import { type CartesianGridProps } from './cartesianGrid.types';
4
+ import { type ComposedChartProps } from './composedChart.types';
5
+ import { type LegendProps } from './legend.types';
6
+ import { type ResponsiveContainerProps } from './responsiveContainer.types';
7
+ import { type SeriaProps } from './seria.types';
8
+ import { type TooltipProps } from './tooltip.types';
9
+ import { type XAxisProps } from './xAxis.types';
10
+ import { type YAxisProps } from './yAxis.types';
11
11
  export interface OptionsProps {
12
12
  /**
13
13
  * Индефикатор графика
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { DataDynamicBooleanProps } from './utils/data.types';
2
+ import { type DataDynamicBooleanProps } from './utils/data.types';
3
3
  export interface PayloadProps {
4
4
  /**
5
5
  * Цвет графика
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface ResponsiveContainerProps {
3
3
  /**
4
4
  * Debounce функция при ресайзе
@@ -1,7 +1,7 @@
1
- import { DataProps } from './utils/data.types';
2
- import { GradientProps } from './utils/gradient.types';
3
- import { ChartProps } from './chart.types';
4
- import { LabelListProps } from './labelList.types';
1
+ import { type DataProps } from './utils/data.types';
2
+ import { type GradientProps } from './utils/gradient.types';
3
+ import { type ChartProps } from './chart.types';
4
+ import { type LabelListProps } from './labelList.types';
5
5
  export declare type RadiusProp = {
6
6
  top?: number;
7
7
  bottom?: number;
@@ -1,5 +1,5 @@
1
- import { ReactElement, ReactText, SVGProps } from 'react';
2
- import { AnimationTiming } from 'recharts/types/util/types';
1
+ import { type ReactElement, type ReactText, type SVGProps } from 'react';
2
+ import { type AnimationTiming } from 'recharts/types/util/types';
3
3
  export interface TooltipProps {
4
4
  /**
5
5
  * Разделитель между именем и значением.
@@ -1,4 +1,4 @@
1
- import { ReactElement, SVGProps } from 'react';
1
+ import { type ReactElement, type SVGProps } from 'react';
2
2
  export interface AxisProps {
3
3
  /**
4
4
  * Скрыть ось
@@ -1,5 +1,5 @@
1
- import { CoordinatesProps } from './coordinates.types';
2
- import { DataProps } from './data.types';
1
+ import { type CoordinatesProps } from './coordinates.types';
2
+ import { type DataProps } from './data.types';
3
3
  export interface DotSettingProps {
4
4
  /**
5
5
  * Значение media query.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { XAxisProps } from '../xAxis.types';
2
+ import { type XAxisProps } from '../xAxis.types';
3
3
  export interface TickProps {
4
4
  payload: {
5
5
  coordinate: number;
@@ -1,4 +1,4 @@
1
- import { AxisProps } from './utils/axis.types';
1
+ import { type AxisProps } from './utils/axis.types';
2
2
  export interface XAxisProps extends AxisProps {
3
3
  /**
4
4
  * Ключ данных, отображаемых на оси.
@@ -1,4 +1,4 @@
1
- import { AxisProps } from './utils/axis.types';
1
+ import { type AxisProps } from './utils/axis.types';
2
2
  export interface YAxisProps extends AxisProps {
3
3
  /**
4
4
  * Ориентация оси