@evergis/charts 3.1.1 → 3.1.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/dist/charts/BarChart/drawLines/index.d.ts +3 -4
- package/dist/charts/BarChart/getBars/index.d.ts +1 -1
- package/dist/charts/BarChart/index.d.ts +2 -2
- package/dist/charts/BarChart/styled.d.ts +3 -2
- package/dist/charts/BarChart/types.d.ts +8 -8
- package/dist/charts/BubbleChart/index.d.ts +3 -3
- package/dist/charts/BubbleChart/styled.d.ts +2 -1
- package/dist/charts/BubbleChart/types.d.ts +5 -5
- package/dist/charts/BubbleChart/unmount.d.ts +1 -1
- package/dist/charts/CalendarChart/index.d.ts +3 -3
- package/dist/charts/CalendarChart/types.d.ts +5 -5
- package/dist/charts/HorizontalBarChart/hooks/useStackWrapper.d.ts +4 -4
- package/dist/charts/HorizontalBarChart/index.d.ts +3 -3
- package/dist/charts/HorizontalBarChart/types.d.ts +3 -3
- package/dist/charts/LineChart/index.d.ts +3 -3
- package/dist/charts/LineChart/styled.d.ts +2 -1
- package/dist/charts/LineChart/types.d.ts +3 -3
- package/dist/charts/PieChart/index.d.ts +3 -3
- package/dist/charts/PieChart/types.d.ts +4 -4
- package/dist/charts.cjs.development.js +241 -451
- package/dist/charts.cjs.development.js.map +1 -1
- package/dist/charts.cjs.production.min.js +1 -1
- package/dist/charts.cjs.production.min.js.map +1 -1
- package/dist/charts.esm.js +241 -451
- package/dist/charts.esm.js.map +1 -1
- package/dist/common/components/SwipeScroll/index.d.ts +2 -2
- package/dist/common/components/SwipeScroll/types.d.ts +4 -3
- package/dist/common/components/labels/index.d.ts +1 -1
- package/dist/common/components/labels/types.d.ts +2 -2
- package/dist/hooks/useNode.d.ts +1 -1
- package/dist/hooks/useResize.d.ts +1 -1
- package/dist/index.d.ts +26 -26
- package/dist/jest.config.d.ts +14 -0
- package/dist/stories/Bar/Examples.stories.d.ts +23 -0
- package/dist/stories/Bar/HorizontalBar.stories.d.ts +25 -0
- package/dist/stories/Bar/Statistics.stories.d.ts +7 -0
- package/dist/stories/Bar/VerticalBar.stories.d.ts +41 -0
- package/dist/stories/Bubble/Bubble.stories.d.ts +23 -0
- package/dist/stories/Bubble/Examples.stories.d.ts +4 -0
- package/dist/stories/Bubble/examples/VEB/InvestBubble.d.ts +5 -0
- package/dist/stories/Bubble/examples/VEB/hooks/useCustomize.d.ts +3 -0
- package/dist/stories/Bubble/examples/VEB/hooks/useRenderTooltip/index.d.ts +4 -0
- package/dist/stories/Bubble/examples/VEB/hooks/useRenderTooltip/styled.d.ts +8 -0
- package/dist/stories/Bubble/examples/VEB/styled.d.ts +1 -0
- package/dist/stories/Calendar/Calendar.stories.d.ts +23 -0
- package/dist/stories/Calendar/ColorScheme.stories.d.ts +7 -0
- package/dist/stories/Calendar/Examples.stories.d.ts +11 -0
- package/dist/stories/Calendar/Legend.stories.d.ts +30 -0
- package/dist/stories/Common/SwipeScroll/SwipeScroll.stories.d.ts +13 -0
- package/dist/stories/Common/SwipeScroll/hooks/useSwipe.d.ts +1 -0
- package/dist/stories/Line/Examples.stories.d.ts +7 -0
- package/dist/stories/Line/Line.stories.d.ts +48 -0
- package/dist/stories/Line/examples/Beeline.d.ts +5 -0
- package/dist/stories/Line/examples/GeoVeb.d.ts +5 -0
- package/dist/stories/Line/examples/GeoVebInterval/data.d.ts +9 -0
- package/dist/stories/Line/examples/GeoVebInterval/index.d.ts +5 -0
- package/dist/stories/Line/examples/GeoVebInterval/styled.d.ts +4 -0
- package/dist/stories/Line/examples/Msp.d.ts +5 -0
- package/dist/stories/Pie/ColorScheme.stories.d.ts +7 -0
- package/dist/stories/Pie/Examples.stories.d.ts +7 -0
- package/dist/stories/Pie/Pie.stories.d.ts +47 -0
- package/dist/stories/Radar/Chart.stories.d.ts +38 -0
- package/dist/stories/Radar/Github.stories.d.ts +7 -0
- package/dist/stories/Radar/Gradient.stories.d.ts +7 -0
- package/dist/stories/Radar/Veb.stories.d.ts +7 -0
- package/dist/stories/Sankey/Examples.stories.d.ts +4 -0
- package/dist/stories/Sankey/examples/RelatedIndustries/data.d.ts +2 -0
- package/dist/stories/Sankey/examples/RelatedIndustries/index.d.ts +5 -0
- package/dist/stories/__internal__/colors.d.ts +40 -0
- package/dist/stories/__internal__/components/BeelineLineChart/hooks/useCustomize.d.ts +11 -0
- package/dist/stories/__internal__/components/BeelineLineChart/hooks/useLineRenderTooltip/index.d.ts +5 -0
- package/dist/stories/__internal__/components/BeelineLineChart/hooks/useLineRenderTooltip/styled.d.ts +5 -0
- package/dist/stories/__internal__/components/BeelineLineChart/index.d.ts +3 -0
- package/dist/stories/__internal__/components/BeelineLineChart/styled.d.ts +3 -0
- package/dist/stories/__internal__/components/BeelineRangeLineChart/Range/index.d.ts +7 -0
- package/dist/stories/__internal__/components/BeelineRangeLineChart/Range/styled.d.ts +3 -0
- package/dist/stories/__internal__/components/BeelineRangeLineChart/hooks/useChange.d.ts +8 -0
- package/dist/stories/__internal__/components/BeelineRangeLineChart/index.d.ts +2 -0
- package/dist/stories/__internal__/components/BeelineRangeLineChart/styled.d.ts +4 -0
- package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/data.d.ts +5 -0
- package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/hooks/useRenderDataTable.d.ts +2 -0
- package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/index.d.ts +2 -0
- package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/styled.d.ts +3 -0
- package/dist/stories/__internal__/components/Divider.d.ts +6 -0
- package/dist/stories/__internal__/components/GeoVebBarCharts.d.ts +2 -0
- package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/data.d.ts +47 -0
- package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/hooks/useRenderTooltip.d.ts +3 -0
- package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/hooks/useSimpleRenderTooltip.d.ts +3 -0
- package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/index.d.ts +4 -0
- package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/styled.d.ts +4 -0
- package/dist/stories/__internal__/components/GeoYearsBarChart/index.d.ts +2 -0
- package/dist/stories/__internal__/components/GeoYearsBarChart/styled.d.ts +4 -0
- package/dist/stories/__internal__/components/MixedTableChart/Chart/index.d.ts +3 -0
- package/dist/stories/__internal__/components/MixedTableChart/Chart/styled.d.ts +2 -0
- package/dist/stories/__internal__/components/MixedTableChart/index.d.ts +3 -0
- package/dist/stories/__internal__/components/MixedTableChart/styled.d.ts +5 -0
- package/dist/stories/__internal__/components/MixedTableChart/types.d.ts +21 -0
- package/dist/stories/__internal__/components/MspDashboardChart/hooks/useAnimation.d.ts +5 -0
- package/dist/stories/__internal__/components/MspDashboardChart/index.d.ts +3 -0
- package/dist/stories/__internal__/components/MspDashboardChart/styled.d.ts +5 -0
- package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useAnimationAreas.d.ts +6 -0
- package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useAnimationBars.d.ts +5 -0
- package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useCustomize.d.ts +4 -0
- package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useData.d.ts +8 -0
- package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useMarshalledMap.d.ts +1 -0
- package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useRenderTooltip.d.ts +2 -0
- package/dist/stories/__internal__/components/MspPromSupplyBarChart/index.d.ts +9 -0
- package/dist/stories/__internal__/components/MspPromSupplyBarChart/styled.d.ts +22 -0
- package/dist/stories/__internal__/components/SankeyTriChart/Groups/getCSSProperties.d.ts +4 -0
- package/dist/stories/__internal__/components/SankeyTriChart/Groups/helpers.d.ts +1 -0
- package/dist/stories/__internal__/components/SankeyTriChart/Groups/index.d.ts +5 -0
- package/dist/stories/__internal__/components/SankeyTriChart/Groups/styled.d.ts +1 -0
- package/dist/stories/__internal__/components/SankeyTriChart/ItemContent/getCSSProperties.d.ts +3 -0
- package/dist/stories/__internal__/components/SankeyTriChart/ItemContent/index.d.ts +5 -0
- package/dist/stories/__internal__/components/SankeyTriChart/ItemContent/styled.d.ts +8 -0
- package/dist/stories/__internal__/components/SankeyTriChart/draw.d.ts +2 -0
- package/dist/stories/__internal__/components/SankeyTriChart/helpers.d.ts +9 -0
- package/dist/stories/__internal__/components/SankeyTriChart/index.d.ts +10 -0
- package/dist/stories/__internal__/components/SankeyTriChart/marshaling.d.ts +6 -0
- package/dist/stories/__internal__/components/SankeyTriChart/styled.d.ts +1 -0
- package/dist/stories/__internal__/components/SankeyTriChart/types.d.ts +40 -0
- package/dist/stories/__internal__/components/SberBarMixChart/colors.d.ts +3 -0
- package/dist/stories/__internal__/components/SberBarMixChart/data.d.ts +8 -0
- package/dist/stories/__internal__/components/SberBarMixChart/hooks/styled.d.ts +3 -0
- package/dist/stories/__internal__/components/SberBarMixChart/hooks/useRenderTooltip.d.ts +2 -0
- package/dist/stories/__internal__/components/SberBarMixChart/index.d.ts +2 -0
- package/dist/stories/__internal__/components/SberBarMixChart/styled.d.ts +1 -0
- package/dist/stories/__internal__/components/StatisticsBarCharts/NumbersStatistics.d.ts +2 -0
- package/dist/stories/__internal__/components/StatisticsBarCharts/StringsStatistics.d.ts +2 -0
- package/dist/stories/__internal__/components/StatisticsBarCharts/index.d.ts +2 -0
- package/dist/stories/__internal__/components/StatisticsBarCharts/styled.d.ts +1 -0
- package/dist/stories/__internal__/components/VebEstimationBarChart/data.d.ts +38 -0
- package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useCustomize.d.ts +5 -0
- package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useDrawBars.d.ts +4 -0
- package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderLabel/index.d.ts +9 -0
- package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderLabel/styled.d.ts +1 -0
- package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderTooltip/index.d.ts +8 -0
- package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderTooltip/styled.d.ts +13 -0
- package/dist/stories/__internal__/components/VebEstimationBarChart/index.d.ts +3 -0
- package/dist/stories/__internal__/components/VebEstimationBarChart/styled.d.ts +2 -0
- package/dist/stories/__internal__/components/VebFilterBarChart/index.d.ts +2 -0
- package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderSum/index.d.ts +3 -0
- package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderSum/styled.d.ts +1 -0
- package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderTooltip/index.d.ts +1 -0
- package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderTooltip/styled.d.ts +5 -0
- package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/index.d.ts +3 -0
- package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/styled.d.ts +5 -0
- package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/types.d.ts +11 -0
- package/dist/stories/__internal__/curves.d.ts +8 -0
- package/dist/stories/__internal__/data/msp.d.ts +14 -0
- package/dist/stories/__internal__/data/mspDashboard.d.ts +1 -0
- package/dist/stories/__internal__/data/mspPromSupply.d.ts +11 -0
- package/dist/stories/__internal__/data/population.d.ts +4 -0
- package/dist/stories/__internal__/data/veb.d.ts +31 -0
- package/dist/stories/__internal__/helpers/Path.d.ts +10 -0
- package/dist/stories/__internal__/helpers/Vector.d.ts +9 -0
- package/dist/stories/__internal__/helpers/animation.d.ts +15 -0
- package/dist/stories/__internal__/helpers/hexToRGB.d.ts +1 -0
- package/dist/stories/__internal__/helpers/random.d.ts +1 -0
- package/dist/stories/__internal__/helpers/randomData.d.ts +14 -0
- package/dist/stories/__internal__/helpers/randomHorizontalBarData.d.ts +5 -0
- package/dist/stories/__internal__/helpers/randomIntervalData.d.ts +11 -0
- package/dist/stories/__internal__/helpers/randomLineData.d.ts +8 -0
- package/dist/stories/__internal__/helpers/randomText.d.ts +1 -0
- package/dist/stories/__internal__/helpers/roundedRect.d.ts +10 -0
- package/dist/stories/__internal__/helpers/shuffleArray.d.ts +1 -0
- package/dist/stories/__internal__/hooks/useBarData.d.ts +10 -0
- package/dist/stories/__internal__/hooks/useLegend.d.ts +1 -0
- package/dist/stories/__internal__/hooks/useMinMaxValue.d.ts +4 -0
- package/dist/stories/__internal__/interpolates.d.ts +23 -0
- package/dist/storybook-static/1.05dfd83c.iframe.bundle.d.ts +0 -0
- package/dist/storybook-static/189.8c077122866758d3cf20.manager.bundle.d.ts +0 -0
- package/dist/storybook-static/190.58050c9beb344d4cefd9.manager.bundle.d.ts +2 -0
- package/dist/storybook-static/191.b202c06c72968435b80b.manager.bundle.d.ts +0 -0
- package/dist/storybook-static/192.83987c5b15f8a80893c5.manager.bundle.d.ts +0 -0
- package/dist/storybook-static/193.8a12aa992b466e778018.manager.bundle.d.ts +2 -0
- package/dist/storybook-static/2.0231c7b6.iframe.bundle.d.ts +0 -0
- package/dist/storybook-static/6.6185fd0d.iframe.bundle.d.ts +0 -0
- package/dist/storybook-static/7.0ede09e9.iframe.bundle.d.ts +0 -0
- package/dist/storybook-static/8.6f0230ef.iframe.bundle.d.ts +2 -0
- package/dist/storybook-static/main.6b7543c14993fcfcab71.manager.bundle.d.ts +2 -0
- package/dist/storybook-static/main.724b5942.iframe.bundle.d.ts +9 -0
- package/dist/storybook-static/runtime~main.92273705.iframe.bundle.d.ts +1 -0
- package/dist/storybook-static/runtime~main.c89e55a461c11ef29193.manager.bundle.d.ts +1 -0
- package/package.json +12 -11
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as d3 from 'd3';
|
|
2
|
-
import { BarChartLineData } from '../types';
|
|
3
2
|
import { DrawLinesProps } from './types';
|
|
4
3
|
export declare const barChartLinesClassNames: {
|
|
5
4
|
barChartLinesGlobal: string;
|
|
@@ -8,7 +7,7 @@ export declare const barChartLinesClassNames: {
|
|
|
8
7
|
barChartArea: string;
|
|
9
8
|
};
|
|
10
9
|
export declare const drawLines: ({ svg, lineData, min, yScale, xScale, curve, stackedLine, }: DrawLinesProps) => {
|
|
11
|
-
areasSelection:
|
|
12
|
-
linesSelection:
|
|
13
|
-
area: d3.Area<[number, number]
|
|
10
|
+
areasSelection: any;
|
|
11
|
+
linesSelection: any;
|
|
12
|
+
area: d3.Area<[number, number]>;
|
|
14
13
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BarChartMarshalledGroup } from '../types';
|
|
2
2
|
import { GetBarsProps } from './types';
|
|
3
|
-
export declare const getBars: ({ groups, barWidth }: GetBarsProps) => import("d3-selection").Selection<Element | import("d3-selection").EnterElement | Document | Window | SVGRectElement
|
|
3
|
+
export declare const getBars: ({ groups, barWidth }: GetBarsProps) => import("d3-selection").Selection<Element | import("d3-selection").EnterElement | Document | Window | SVGRectElement, BarChartMarshalledGroup, SVGGElement, BarChartMarshalledGroup[]>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { BarChartProps } from
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { BarChartProps } from "./types";
|
|
3
3
|
export declare const BarChart: FC<BarChartProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSXElementConstructor } from "react";
|
|
1
2
|
export declare const barChartClassNames: {
|
|
2
3
|
barChartLinesGlobal: string;
|
|
3
4
|
barChartLine: string;
|
|
@@ -31,6 +32,6 @@ export declare const barChartClassNames: {
|
|
|
31
32
|
barChartSelection: string;
|
|
32
33
|
};
|
|
33
34
|
export declare const SvgWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
34
|
-
selectable?: boolean
|
|
35
|
+
selectable?: boolean;
|
|
35
36
|
}, never>;
|
|
36
|
-
export declare const TooltipStyles:
|
|
37
|
+
export declare const TooltipStyles: JSXElementConstructor<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as d3 from
|
|
2
|
-
import { CSSProperties, ReactNode } from
|
|
3
|
-
import { Margin } from
|
|
1
|
+
import * as d3 from "d3";
|
|
2
|
+
import { CSSProperties, PropsWithChildren, ReactNode } from "react";
|
|
3
|
+
import { Margin } from "../../common/types/margin";
|
|
4
4
|
export declare type BarChartData = {
|
|
5
5
|
groupName: string | number;
|
|
6
6
|
[key: string]: any;
|
|
@@ -13,7 +13,7 @@ export declare type LegendItemsGroupedStackedBarChart = {
|
|
|
13
13
|
export declare type BarChartColors = {
|
|
14
14
|
[key: string]: string;
|
|
15
15
|
};
|
|
16
|
-
export declare type BarChartLabelPosition =
|
|
16
|
+
export declare type BarChartLabelPosition = "top" | "center" | "bottom";
|
|
17
17
|
export declare type BarChartLabelSetTooltipPosition = (position: {
|
|
18
18
|
tooltip: d3.Selection<HTMLDivElement, unknown, null, undefined>;
|
|
19
19
|
left: number;
|
|
@@ -30,7 +30,7 @@ export interface BarChartMarker {
|
|
|
30
30
|
line?: boolean;
|
|
31
31
|
align?: "center" | "left" | "right";
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export interface BarChartProps extends PropsWithChildren {
|
|
34
34
|
className?: string;
|
|
35
35
|
style?: CSSProperties;
|
|
36
36
|
data: BarChartData[];
|
|
@@ -119,7 +119,7 @@ export declare type BarChartProps = {
|
|
|
119
119
|
onSelect?: (value: [number, number]) => void;
|
|
120
120
|
onBarClick?: (group: BarChartMarshalledGroup) => void;
|
|
121
121
|
onBarHover?: (group?: BarChartMarshalledGroup) => void;
|
|
122
|
-
}
|
|
122
|
+
}
|
|
123
123
|
export declare type BarChartMergedData = (BarChartMarshalledGroup & BarChartLineData & {
|
|
124
124
|
groupName: string;
|
|
125
125
|
})[];
|
|
@@ -127,7 +127,7 @@ export declare type BarChartMarshaling = {
|
|
|
127
127
|
yScale: (value: number) => number;
|
|
128
128
|
xScale: d3.ScaleBand<string>;
|
|
129
129
|
marginTop?: number;
|
|
130
|
-
} & Pick<BarChartProps,
|
|
130
|
+
} & Pick<BarChartProps, "barPadding" | "barWidth" | "data" | "colors">;
|
|
131
131
|
export declare type BarChartMarshalledGroup = {
|
|
132
132
|
x: number;
|
|
133
133
|
y: number;
|
|
@@ -140,7 +140,7 @@ export declare type BarChartMarshalledGroup = {
|
|
|
140
140
|
groupIndex: number;
|
|
141
141
|
};
|
|
142
142
|
export declare type BarChartLineData = {
|
|
143
|
-
lineType:
|
|
143
|
+
lineType: "line" | "area";
|
|
144
144
|
name: string;
|
|
145
145
|
values: (number | null)[];
|
|
146
146
|
stroke?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BubbleChartProps } from
|
|
3
|
-
export declare const BubbleChart:
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { BubbleChartProps } from "./types";
|
|
3
|
+
export declare const BubbleChart: FC<BubbleChartProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSXElementConstructor } from "react";
|
|
1
2
|
export declare const bubbleChartClassNames: {
|
|
2
3
|
bubbleChartYAxis: string;
|
|
3
4
|
bubbleChartYAxisZeroTick: string;
|
|
@@ -13,4 +14,4 @@ export declare const bubbleChartClassNames: {
|
|
|
13
14
|
bubbleChartTip: string;
|
|
14
15
|
};
|
|
15
16
|
export declare const SvgWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
-
export declare const TooltipStyles:
|
|
17
|
+
export declare const TooltipStyles: JSXElementConstructor<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { Margin } from
|
|
1
|
+
import { CSSProperties, PropsWithChildren } from "react";
|
|
2
|
+
import * as d3 from "d3";
|
|
3
|
+
import { Margin } from "../../common/types/margin";
|
|
4
4
|
export declare type BubbleChartData = {
|
|
5
5
|
xValue: number;
|
|
6
6
|
yValue: number;
|
|
@@ -22,7 +22,7 @@ export declare type BubbleChartCustomizeProps = {
|
|
|
22
22
|
sizeScale: d3.ScaleLinear<number, number>;
|
|
23
23
|
bubbles: d3.Selection<SVGCircleElement, BubbleChartData, SVGGElement, unknown>;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export interface BubbleChartProps extends PropsWithChildren {
|
|
26
26
|
className?: string;
|
|
27
27
|
style?: CSSProperties;
|
|
28
28
|
width?: number;
|
|
@@ -52,4 +52,4 @@ export declare type BubbleChartProps = {
|
|
|
52
52
|
tooltipRoot?: Element;
|
|
53
53
|
tooltipClassName?: string;
|
|
54
54
|
renderTooltip?: (props: RenderTooltipProps) => void;
|
|
55
|
-
}
|
|
55
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const unmount: (tooltipRoot?: Element
|
|
1
|
+
export declare const unmount: (tooltipRoot?: Element) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CalendarChartProps } from
|
|
3
|
-
export declare const CalendarChart:
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { CalendarChartProps } from "./types";
|
|
3
|
+
export declare const CalendarChart: FC<CalendarChartProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSSProperties } from
|
|
2
|
-
import { Interpolator } from
|
|
3
|
-
import { GetLegendProps } from
|
|
1
|
+
import { CSSProperties, PropsWithChildren } from "react";
|
|
2
|
+
import { Interpolator } from "../../common/types/interpolator";
|
|
3
|
+
import { GetLegendProps } from "../../helpers/getLegend/types";
|
|
4
4
|
export declare type OnEachDay = (data: CalendarChartData, element: HTMLDivElement, color: string) => void;
|
|
5
|
-
export
|
|
5
|
+
export interface CalendarChartProps extends PropsWithChildren {
|
|
6
6
|
className?: string;
|
|
7
7
|
style?: CSSProperties;
|
|
8
8
|
data: CalendarChartData[];
|
|
@@ -15,7 +15,7 @@ export declare type CalendarChartProps = {
|
|
|
15
15
|
onEachDay?: OnEachDay;
|
|
16
16
|
colorRange?: [string, string];
|
|
17
17
|
legendProps?: GetLegendProps;
|
|
18
|
-
}
|
|
18
|
+
}
|
|
19
19
|
export declare type CalendarChartData = {
|
|
20
20
|
date: Date;
|
|
21
21
|
value: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { UseTooltip } from './useTooltip/types';
|
|
3
3
|
import { HorizontalBarChartMarshalingData, HorizontalBarChartProps } from '../types';
|
|
4
|
-
export declare const useStackWrapper: (stackedTooltip?: boolean
|
|
5
|
-
style?:
|
|
4
|
+
export declare const useStackWrapper: (stackedTooltip?: boolean) => (({ item, mouseMove, mouseLeave, tooltipBind, ...props }: {
|
|
5
|
+
style?: CSSProperties;
|
|
6
6
|
item: HorizontalBarChartMarshalingData[];
|
|
7
7
|
tooltipBind: HorizontalBarChartProps['tooltipBind'];
|
|
8
8
|
mouseMove: UseTooltip[0];
|
|
9
9
|
mouseLeave: UseTooltip[1];
|
|
10
|
-
}) => JSX.Element) | (({ children }: {
|
|
10
|
+
}) => React.JSX.Element) | (({ children }: {
|
|
11
11
|
children?: ReactNode;
|
|
12
|
-
}) => JSX.Element);
|
|
12
|
+
}) => React.JSX.Element);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { HorizontalBarChartProps } from
|
|
3
|
-
export declare const HorizontalBarChart:
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { HorizontalBarChartProps } from "./types";
|
|
3
|
+
export declare const HorizontalBarChart: FC<HorizontalBarChartProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from
|
|
1
|
+
import { CSSProperties, PropsWithChildren, ReactNode } from "react";
|
|
2
2
|
export declare type HorizontalBarChartData = {
|
|
3
3
|
name?: ReactNode;
|
|
4
4
|
value: number;
|
|
5
5
|
color: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export interface HorizontalBarChartProps extends PropsWithChildren {
|
|
8
8
|
style?: CSSProperties;
|
|
9
9
|
className?: string;
|
|
10
10
|
data: HorizontalBarChartData[][];
|
|
@@ -30,7 +30,7 @@ export declare type HorizontalBarChartProps = {
|
|
|
30
30
|
renderDataTable?: (stack: HorizontalBarChartMarshalingData[], stackSum: number, rowIndex: number) => ReactNode;
|
|
31
31
|
thead?: ReactNode;
|
|
32
32
|
withoutXScale?: boolean;
|
|
33
|
-
}
|
|
33
|
+
}
|
|
34
34
|
export declare type HorizontalBarChartMarshalingData = HorizontalBarChartData & {
|
|
35
35
|
width: number;
|
|
36
36
|
groupName: ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { LineChartProps } from
|
|
3
|
-
export declare const LineChart:
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { LineChartProps } from "./types";
|
|
3
|
+
export declare const LineChart: FC<LineChartProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSXElementConstructor } from "react";
|
|
1
2
|
export declare const lineChartClassNames: {
|
|
2
3
|
lineChartYScaleGlobal: string;
|
|
3
4
|
lineChartYScaleRight: string;
|
|
@@ -23,4 +24,4 @@ export declare const lineChartClassNames: {
|
|
|
23
24
|
lineChartMouseLabel: string;
|
|
24
25
|
};
|
|
25
26
|
export declare const SvgWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
26
|
-
export declare const TooltipStyles:
|
|
27
|
+
export declare const TooltipStyles: JSXElementConstructor<any>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { CSSProperties, PropsWithChildren, ReactNode } from "react";
|
|
1
2
|
import * as d3 from 'd3';
|
|
2
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { Margin } from '../../common/types/margin';
|
|
4
4
|
export declare type LineChartCustomAxis = (axis: d3.Axis<d3.NumberValue>) => void;
|
|
5
5
|
declare type LineChartCustomAxisSelection = (selection: d3.Selection<SVGGElement, unknown, null, undefined>) => void;
|
|
6
|
-
export
|
|
6
|
+
export interface LineChartProps extends PropsWithChildren {
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: CSSProperties;
|
|
9
9
|
data: LineChartData[];
|
|
@@ -51,7 +51,7 @@ export declare type LineChartProps = {
|
|
|
51
51
|
xScaleItemWidth?: number;
|
|
52
52
|
dotSnapping?: boolean;
|
|
53
53
|
rightAxis?: number[];
|
|
54
|
-
}
|
|
54
|
+
}
|
|
55
55
|
export declare type LineChartDot = {
|
|
56
56
|
radius?: number;
|
|
57
57
|
style?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PieChartProps } from
|
|
3
|
-
export declare const PieChart:
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { PieChartProps } from "./types";
|
|
3
|
+
export declare const PieChart: FC<PieChartProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, CSSProperties } from
|
|
2
|
-
import * as d3 from
|
|
3
|
-
import { Margin } from
|
|
4
|
-
export interface PieChartProps {
|
|
1
|
+
import { ReactElement, ReactNode, CSSProperties, PropsWithChildren } from "react";
|
|
2
|
+
import * as d3 from "d3";
|
|
3
|
+
import { Margin } from "../../common/types/margin";
|
|
4
|
+
export interface PieChartProps extends PropsWithChildren {
|
|
5
5
|
data: PieChartData[];
|
|
6
6
|
className?: string;
|
|
7
7
|
style?: CSSProperties;
|