@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.
- package/Component.d.ts +1 -1
- package/Component.js +1 -1
- package/Component.js.map +1 -1
- package/components/Dot/index.css +7 -7
- package/components/Dot/index.d.ts +1 -1
- package/components/Dot/index.js.map +1 -1
- package/components/Dot/index.module.css.js +1 -1
- package/components/Legends/index.css +7 -7
- package/components/Legends/index.d.ts +3 -3
- package/components/Legends/index.js.map +1 -1
- package/components/Legends/index.module.css.js +1 -1
- package/components/Legends/index.module.css.js.map +1 -1
- package/components/LinearGradient.d.ts +1 -1
- package/components/LinearGradient.js.map +1 -1
- package/components/RectBar.js.map +1 -1
- package/components/Tick/index.css +2 -5
- package/components/Tick/index.d.ts +1 -1
- package/components/Tick/index.js.map +1 -1
- package/components/Tick/index.module.css.js +1 -1
- package/components/Tick/index.module.css.js.map +1 -1
- package/components/TooltipContent/index.css +8 -7
- package/components/TooltipContent/index.d.ts +3 -3
- package/components/TooltipContent/index.js.map +1 -1
- package/components/TooltipContent/index.module.css.js +1 -1
- package/components/TooltipContent/index.module.css.js.map +1 -1
- package/cssm/Component.d.ts +1 -1
- package/cssm/Component.js +1 -1
- package/cssm/Component.js.map +1 -1
- package/cssm/components/Dot/index.d.ts +1 -1
- package/cssm/components/Dot/index.js.map +1 -1
- package/cssm/components/Legends/index.d.ts +3 -3
- package/cssm/components/Legends/index.js.map +1 -1
- package/cssm/components/LinearGradient.d.ts +1 -1
- package/cssm/components/LinearGradient.js.map +1 -1
- package/cssm/components/RectBar.js.map +1 -1
- package/cssm/components/Tick/index.d.ts +1 -1
- package/cssm/components/Tick/index.js.map +1 -1
- package/cssm/components/Tick/index.module.css +0 -3
- package/cssm/components/TooltipContent/index.d.ts +3 -3
- package/cssm/components/TooltipContent/index.js.map +1 -1
- package/cssm/components/TooltipContent/index.module.css +2 -1
- package/cssm/hooks/usePathBar/index.d.ts +1 -1
- package/cssm/hooks/usePathBar/index.js.map +1 -1
- package/cssm/hooks/useSettings/index.d.ts +3 -3
- package/cssm/hooks/useSettings/index.js.map +1 -1
- package/cssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
- package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
- package/cssm/hooks/useSettings/utils/setDatas.d.ts +2 -2
- package/cssm/hooks/useSettings/utils/setDatas.js.map +1 -1
- package/cssm/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
- package/cssm/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
- package/cssm/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
- package/cssm/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
- package/cssm/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
- package/cssm/hooks/useSettings/utils/sortByIndex.js.map +1 -1
- package/cssm/index.module.css +3 -1
- package/cssm/types/brush.types.d.ts +2 -2
- package/cssm/types/chart.types.d.ts +5 -5
- package/cssm/types/legend.types.d.ts +1 -1
- package/cssm/types/options.types.d.ts +10 -10
- package/cssm/types/payload.types.d.ts +1 -1
- package/cssm/types/responsiveContainer.types.d.ts +1 -1
- package/cssm/types/seria.types.d.ts +4 -4
- package/cssm/types/tooltip.types.d.ts +2 -2
- package/cssm/types/utils/axis.types.d.ts +1 -1
- package/cssm/types/utils/dot.types.d.ts +2 -2
- package/cssm/types/utils/tick.types.d.ts +1 -1
- package/cssm/types/xAxis.types.d.ts +1 -1
- package/cssm/types/yAxis.types.d.ts +1 -1
- package/esm/Component.d.ts +1 -1
- package/esm/Component.js +1 -1
- package/esm/Component.js.map +1 -1
- package/esm/components/Dot/index.css +7 -7
- package/esm/components/Dot/index.d.ts +1 -1
- package/esm/components/Dot/index.js.map +1 -1
- package/esm/components/Dot/index.module.css.js +1 -1
- package/esm/components/Legends/index.css +7 -7
- package/esm/components/Legends/index.d.ts +3 -3
- package/esm/components/Legends/index.js.map +1 -1
- package/esm/components/Legends/index.module.css.js +1 -1
- package/esm/components/Legends/index.module.css.js.map +1 -1
- package/esm/components/LinearGradient.d.ts +1 -1
- package/esm/components/LinearGradient.js.map +1 -1
- package/esm/components/RectBar.js.map +1 -1
- package/esm/components/Tick/index.css +2 -5
- package/esm/components/Tick/index.d.ts +1 -1
- package/esm/components/Tick/index.js.map +1 -1
- package/esm/components/Tick/index.module.css.js +1 -1
- package/esm/components/Tick/index.module.css.js.map +1 -1
- package/esm/components/TooltipContent/index.css +8 -7
- package/esm/components/TooltipContent/index.d.ts +3 -3
- package/esm/components/TooltipContent/index.js.map +1 -1
- package/esm/components/TooltipContent/index.module.css.js +1 -1
- package/esm/components/TooltipContent/index.module.css.js.map +1 -1
- package/esm/hooks/usePathBar/index.d.ts +1 -1
- package/esm/hooks/usePathBar/index.js.map +1 -1
- package/esm/hooks/useSettings/index.d.ts +3 -3
- package/esm/hooks/useSettings/index.js.map +1 -1
- package/esm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
- package/esm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
- package/esm/hooks/useSettings/utils/setDatas.d.ts +2 -2
- package/esm/hooks/useSettings/utils/setDatas.js.map +1 -1
- package/esm/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
- package/esm/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
- package/esm/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
- package/esm/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
- package/esm/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
- package/esm/hooks/useSettings/utils/sortByIndex.js.map +1 -1
- package/esm/index.css +7 -5
- package/esm/index.module.css.js +1 -1
- package/esm/index.module.css.js.map +1 -1
- package/esm/types/brush.types.d.ts +2 -2
- package/esm/types/chart.types.d.ts +5 -5
- package/esm/types/legend.types.d.ts +1 -1
- package/esm/types/options.types.d.ts +10 -10
- package/esm/types/payload.types.d.ts +1 -1
- package/esm/types/responsiveContainer.types.d.ts +1 -1
- package/esm/types/seria.types.d.ts +4 -4
- package/esm/types/tooltip.types.d.ts +2 -2
- package/esm/types/utils/axis.types.d.ts +1 -1
- package/esm/types/utils/dot.types.d.ts +2 -2
- package/esm/types/utils/tick.types.d.ts +1 -1
- package/esm/types/xAxis.types.d.ts +1 -1
- package/esm/types/yAxis.types.d.ts +1 -1
- package/hooks/usePathBar/index.d.ts +1 -1
- package/hooks/usePathBar/index.js.map +1 -1
- package/hooks/useSettings/index.d.ts +3 -3
- package/hooks/useSettings/index.js.map +1 -1
- package/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
- package/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
- package/hooks/useSettings/utils/setDatas.d.ts +2 -2
- package/hooks/useSettings/utils/setDatas.js.map +1 -1
- package/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
- package/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
- package/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
- package/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
- package/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
- package/hooks/useSettings/utils/sortByIndex.js.map +1 -1
- package/index.css +7 -5
- package/index.module.css.js +1 -1
- package/index.module.css.js.map +1 -1
- package/modern/Component.d.ts +1 -1
- package/modern/Component.js +1 -1
- package/modern/Component.js.map +1 -1
- package/modern/components/Dot/index.css +7 -7
- package/modern/components/Dot/index.d.ts +1 -1
- package/modern/components/Dot/index.js.map +1 -1
- package/modern/components/Dot/index.module.css.js +1 -1
- package/modern/components/Legends/index.css +7 -7
- package/modern/components/Legends/index.d.ts +3 -3
- package/modern/components/Legends/index.js.map +1 -1
- package/modern/components/Legends/index.module.css.js +1 -1
- package/modern/components/Legends/index.module.css.js.map +1 -1
- package/modern/components/LinearGradient.d.ts +1 -1
- package/modern/components/LinearGradient.js.map +1 -1
- package/modern/components/RectBar.js.map +1 -1
- package/modern/components/Tick/index.css +2 -5
- package/modern/components/Tick/index.d.ts +1 -1
- package/modern/components/Tick/index.js.map +1 -1
- package/modern/components/Tick/index.module.css.js +1 -1
- package/modern/components/Tick/index.module.css.js.map +1 -1
- package/modern/components/TooltipContent/index.css +8 -7
- package/modern/components/TooltipContent/index.d.ts +3 -3
- package/modern/components/TooltipContent/index.js.map +1 -1
- package/modern/components/TooltipContent/index.module.css.js +1 -1
- package/modern/components/TooltipContent/index.module.css.js.map +1 -1
- package/modern/hooks/usePathBar/index.d.ts +1 -1
- package/modern/hooks/usePathBar/index.js.map +1 -1
- package/modern/hooks/useSettings/index.d.ts +3 -3
- package/modern/hooks/useSettings/index.js.map +1 -1
- package/modern/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
- package/modern/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
- package/modern/hooks/useSettings/utils/setDatas.d.ts +2 -2
- package/modern/hooks/useSettings/utils/setDatas.js.map +1 -1
- package/modern/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
- package/modern/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
- package/modern/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
- package/modern/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
- package/modern/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
- package/modern/hooks/useSettings/utils/sortByIndex.js.map +1 -1
- package/modern/index.css +7 -5
- package/modern/index.module.css.js +1 -1
- package/modern/index.module.css.js.map +1 -1
- package/modern/types/brush.types.d.ts +2 -2
- package/modern/types/chart.types.d.ts +5 -5
- package/modern/types/legend.types.d.ts +1 -1
- package/modern/types/options.types.d.ts +10 -10
- package/modern/types/payload.types.d.ts +1 -1
- package/modern/types/responsiveContainer.types.d.ts +1 -1
- package/modern/types/seria.types.d.ts +4 -4
- package/modern/types/tooltip.types.d.ts +2 -2
- package/modern/types/utils/axis.types.d.ts +1 -1
- package/modern/types/utils/dot.types.d.ts +2 -2
- package/modern/types/utils/tick.types.d.ts +1 -1
- package/modern/types/xAxis.types.d.ts +1 -1
- package/modern/types/yAxis.types.d.ts +1 -1
- package/moderncssm/Component.d.ts +1 -1
- package/moderncssm/Component.js +1 -1
- package/moderncssm/Component.js.map +1 -1
- package/moderncssm/components/Dot/index.d.ts +1 -1
- package/moderncssm/components/Dot/index.js.map +1 -1
- package/moderncssm/components/Legends/index.d.ts +3 -3
- package/moderncssm/components/Legends/index.js.map +1 -1
- package/moderncssm/components/Legends/index.module.css +2 -0
- package/moderncssm/components/LinearGradient.d.ts +1 -1
- package/moderncssm/components/LinearGradient.js.map +1 -1
- package/moderncssm/components/RectBar.js.map +1 -1
- package/moderncssm/components/Tick/index.d.ts +1 -1
- package/moderncssm/components/Tick/index.js.map +1 -1
- package/moderncssm/components/Tick/index.module.css +2 -5
- package/moderncssm/components/TooltipContent/index.d.ts +3 -3
- package/moderncssm/components/TooltipContent/index.js.map +1 -1
- package/moderncssm/components/TooltipContent/index.module.css +2 -0
- package/moderncssm/hooks/usePathBar/index.d.ts +1 -1
- package/moderncssm/hooks/usePathBar/index.js.map +1 -1
- package/moderncssm/hooks/useSettings/index.d.ts +3 -3
- package/moderncssm/hooks/useSettings/index.js.map +1 -1
- package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +4 -4
- package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -1
- package/moderncssm/hooks/useSettings/utils/setDatas.d.ts +2 -2
- package/moderncssm/hooks/useSettings/utils/setDatas.js.map +1 -1
- package/moderncssm/hooks/useSettings/utils/setGradientCharts.d.ts +1 -1
- package/moderncssm/hooks/useSettings/utils/setGradientCharts.js.map +1 -1
- package/moderncssm/hooks/useSettings/utils/setLegendMargin.d.ts +2 -2
- package/moderncssm/hooks/useSettings/utils/setLegendMargin.js.map +1 -1
- package/moderncssm/hooks/useSettings/utils/sortByIndex.d.ts +1 -1
- package/moderncssm/hooks/useSettings/utils/sortByIndex.js.map +1 -1
- package/moderncssm/index.module.css +5 -2
- package/moderncssm/types/brush.types.d.ts +2 -2
- package/moderncssm/types/chart.types.d.ts +5 -5
- package/moderncssm/types/legend.types.d.ts +1 -1
- package/moderncssm/types/options.types.d.ts +10 -10
- package/moderncssm/types/payload.types.d.ts +1 -1
- package/moderncssm/types/responsiveContainer.types.d.ts +1 -1
- package/moderncssm/types/seria.types.d.ts +4 -4
- package/moderncssm/types/tooltip.types.d.ts +2 -2
- package/moderncssm/types/utils/axis.types.d.ts +1 -1
- package/moderncssm/types/utils/dot.types.d.ts +2 -2
- package/moderncssm/types/utils/tick.types.d.ts +1 -1
- package/moderncssm/types/xAxis.types.d.ts +1 -1
- package/moderncssm/types/yAxis.types.d.ts +1 -1
- package/package.json +3 -3
- package/src/Component.tsx +8 -8
- package/src/components/Dot/index.tsx +1 -1
- package/src/components/Legends/index.module.css +1 -1
- package/src/components/Legends/index.tsx +3 -3
- package/src/components/LinearGradient.tsx +1 -1
- package/src/components/RectBar.tsx +4 -4
- package/src/components/Tick/index.module.css +1 -6
- package/src/components/Tick/index.tsx +1 -1
- package/src/components/TooltipContent/index.module.css +1 -1
- package/src/components/TooltipContent/index.tsx +3 -3
- package/src/hooks/usePathBar/{index.tsx → index.ts} +3 -3
- package/src/hooks/useSettings/{index.tsx → index.ts} +3 -3
- package/src/hooks/useSettings/utils/setComposedChartsMargin.ts +4 -4
- package/src/hooks/useSettings/utils/setDatas.ts +4 -4
- package/src/hooks/useSettings/utils/setGradientCharts.ts +2 -2
- package/src/hooks/useSettings/utils/setLegendMargin.ts +2 -2
- package/src/hooks/useSettings/utils/sortByIndex.ts +1 -1
- package/src/index.module.css +4 -2
- package/src/types/brush.types.ts +2 -2
- package/src/types/chart.types.ts +5 -5
- package/src/types/legend.types.ts +1 -1
- package/src/types/options.types.ts +10 -10
- package/src/types/payload.types.ts +1 -1
- package/src/types/responsiveContainer.types.ts +1 -1
- package/src/types/seria.types.ts +4 -4
- package/src/types/tooltip.types.ts +2 -2
- package/src/types/utils/axis.types.ts +1 -1
- package/src/types/utils/dot.types.ts +2 -2
- package/src/types/utils/tick.types.ts +1 -1
- package/src/types/xAxis.types.ts +1 -1
- package/src/types/yAxis.types.ts +1 -1
- package/types/brush.types.d.ts +2 -2
- package/types/chart.types.d.ts +5 -5
- package/types/legend.types.d.ts +1 -1
- package/types/options.types.d.ts +10 -10
- package/types/payload.types.d.ts +1 -1
- package/types/responsiveContainer.types.d.ts +1 -1
- package/types/seria.types.d.ts +4 -4
- package/types/tooltip.types.d.ts +2 -2
- package/types/utils/axis.types.d.ts +1 -1
- package/types/utils/dot.types.d.ts +2 -2
- package/types/utils/tick.types.d.ts +1 -1
- package/types/xAxis.types.d.ts +1 -1
- 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;
|
package/src/index.module.css
CHANGED
|
@@ -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:
|
|
16
|
+
transition:
|
|
17
|
+
opacity 0.2s ease-out,
|
|
18
|
+
d 0.2s ease-out;
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
.unfocused {
|
package/src/types/brush.types.ts
CHANGED
|
@@ -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
|
/**
|
package/src/types/chart.types.ts
CHANGED
|
@@ -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,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
|
/**
|
package/src/types/seria.types.ts
CHANGED
|
@@ -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
|
/**
|
package/src/types/xAxis.types.ts
CHANGED
package/src/types/yAxis.types.ts
CHANGED
package/types/brush.types.d.ts
CHANGED
package/types/chart.types.d.ts
CHANGED
|
@@ -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 {
|
package/types/legend.types.d.ts
CHANGED
package/types/options.types.d.ts
CHANGED
|
@@ -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
|
* Индефикатор графика
|
package/types/payload.types.d.ts
CHANGED
package/types/seria.types.d.ts
CHANGED
|
@@ -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;
|
package/types/tooltip.types.d.ts
CHANGED
|
@@ -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,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.
|
package/types/xAxis.types.d.ts
CHANGED
package/types/yAxis.types.d.ts
CHANGED