@evergis/charts 3.1.1 → 3.1.3

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 (185) hide show
  1. package/dist/charts/BarChart/drawLines/index.d.ts +3 -4
  2. package/dist/charts/BarChart/getBars/index.d.ts +1 -1
  3. package/dist/charts/BarChart/index.d.ts +2 -2
  4. package/dist/charts/BarChart/styled.d.ts +3 -2
  5. package/dist/charts/BarChart/types.d.ts +8 -8
  6. package/dist/charts/BubbleChart/index.d.ts +3 -3
  7. package/dist/charts/BubbleChart/styled.d.ts +2 -1
  8. package/dist/charts/BubbleChart/types.d.ts +5 -5
  9. package/dist/charts/BubbleChart/unmount.d.ts +1 -1
  10. package/dist/charts/CalendarChart/index.d.ts +3 -3
  11. package/dist/charts/CalendarChart/types.d.ts +5 -5
  12. package/dist/charts/HorizontalBarChart/hooks/useStackWrapper.d.ts +4 -4
  13. package/dist/charts/HorizontalBarChart/index.d.ts +3 -3
  14. package/dist/charts/HorizontalBarChart/types.d.ts +3 -3
  15. package/dist/charts/LineChart/index.d.ts +3 -3
  16. package/dist/charts/LineChart/styled.d.ts +2 -1
  17. package/dist/charts/LineChart/types.d.ts +3 -3
  18. package/dist/charts/PieChart/index.d.ts +3 -3
  19. package/dist/charts/PieChart/types.d.ts +4 -4
  20. package/dist/charts.cjs.development.js +241 -451
  21. package/dist/charts.cjs.development.js.map +1 -1
  22. package/dist/charts.cjs.production.min.js +1 -1
  23. package/dist/charts.cjs.production.min.js.map +1 -1
  24. package/dist/charts.esm.js +241 -451
  25. package/dist/charts.esm.js.map +1 -1
  26. package/dist/common/components/SwipeScroll/index.d.ts +2 -2
  27. package/dist/common/components/SwipeScroll/types.d.ts +4 -3
  28. package/dist/common/components/labels/index.d.ts +1 -1
  29. package/dist/common/components/labels/types.d.ts +2 -2
  30. package/dist/hooks/useNode.d.ts +1 -1
  31. package/dist/hooks/useResize.d.ts +1 -1
  32. package/dist/index.d.ts +26 -26
  33. package/dist/jest.config.d.ts +14 -0
  34. package/dist/stories/Bar/Examples.stories.d.ts +23 -0
  35. package/dist/stories/Bar/HorizontalBar.stories.d.ts +25 -0
  36. package/dist/stories/Bar/Statistics.stories.d.ts +7 -0
  37. package/dist/stories/Bar/VerticalBar.stories.d.ts +41 -0
  38. package/dist/stories/Bubble/Bubble.stories.d.ts +23 -0
  39. package/dist/stories/Bubble/Examples.stories.d.ts +4 -0
  40. package/dist/stories/Bubble/examples/VEB/InvestBubble.d.ts +5 -0
  41. package/dist/stories/Bubble/examples/VEB/hooks/useCustomize.d.ts +3 -0
  42. package/dist/stories/Bubble/examples/VEB/hooks/useRenderTooltip/index.d.ts +4 -0
  43. package/dist/stories/Bubble/examples/VEB/hooks/useRenderTooltip/styled.d.ts +8 -0
  44. package/dist/stories/Bubble/examples/VEB/styled.d.ts +1 -0
  45. package/dist/stories/Calendar/Calendar.stories.d.ts +23 -0
  46. package/dist/stories/Calendar/ColorScheme.stories.d.ts +7 -0
  47. package/dist/stories/Calendar/Examples.stories.d.ts +11 -0
  48. package/dist/stories/Calendar/Legend.stories.d.ts +30 -0
  49. package/dist/stories/Common/SwipeScroll/SwipeScroll.stories.d.ts +13 -0
  50. package/dist/stories/Common/SwipeScroll/hooks/useSwipe.d.ts +1 -0
  51. package/dist/stories/Line/Examples.stories.d.ts +7 -0
  52. package/dist/stories/Line/Line.stories.d.ts +48 -0
  53. package/dist/stories/Line/examples/Beeline.d.ts +5 -0
  54. package/dist/stories/Line/examples/GeoVeb.d.ts +5 -0
  55. package/dist/stories/Line/examples/GeoVebInterval/data.d.ts +9 -0
  56. package/dist/stories/Line/examples/GeoVebInterval/index.d.ts +5 -0
  57. package/dist/stories/Line/examples/GeoVebInterval/styled.d.ts +4 -0
  58. package/dist/stories/Line/examples/Msp.d.ts +5 -0
  59. package/dist/stories/Pie/ColorScheme.stories.d.ts +7 -0
  60. package/dist/stories/Pie/Examples.stories.d.ts +7 -0
  61. package/dist/stories/Pie/Pie.stories.d.ts +47 -0
  62. package/dist/stories/Radar/Chart.stories.d.ts +38 -0
  63. package/dist/stories/Radar/Github.stories.d.ts +7 -0
  64. package/dist/stories/Radar/Gradient.stories.d.ts +7 -0
  65. package/dist/stories/Radar/Veb.stories.d.ts +7 -0
  66. package/dist/stories/Sankey/Examples.stories.d.ts +4 -0
  67. package/dist/stories/Sankey/examples/RelatedIndustries/data.d.ts +2 -0
  68. package/dist/stories/Sankey/examples/RelatedIndustries/index.d.ts +5 -0
  69. package/dist/stories/__internal__/colors.d.ts +40 -0
  70. package/dist/stories/__internal__/components/BeelineLineChart/hooks/useCustomize.d.ts +11 -0
  71. package/dist/stories/__internal__/components/BeelineLineChart/hooks/useLineRenderTooltip/index.d.ts +5 -0
  72. package/dist/stories/__internal__/components/BeelineLineChart/hooks/useLineRenderTooltip/styled.d.ts +5 -0
  73. package/dist/stories/__internal__/components/BeelineLineChart/index.d.ts +3 -0
  74. package/dist/stories/__internal__/components/BeelineLineChart/styled.d.ts +3 -0
  75. package/dist/stories/__internal__/components/BeelineRangeLineChart/Range/index.d.ts +7 -0
  76. package/dist/stories/__internal__/components/BeelineRangeLineChart/Range/styled.d.ts +3 -0
  77. package/dist/stories/__internal__/components/BeelineRangeLineChart/hooks/useChange.d.ts +8 -0
  78. package/dist/stories/__internal__/components/BeelineRangeLineChart/index.d.ts +2 -0
  79. package/dist/stories/__internal__/components/BeelineRangeLineChart/styled.d.ts +4 -0
  80. package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/data.d.ts +5 -0
  81. package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/hooks/useRenderDataTable.d.ts +2 -0
  82. package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/index.d.ts +2 -0
  83. package/dist/stories/__internal__/components/BeelineTrafficHorizontalBarChart/styled.d.ts +3 -0
  84. package/dist/stories/__internal__/components/Divider.d.ts +6 -0
  85. package/dist/stories/__internal__/components/GeoVebBarCharts.d.ts +2 -0
  86. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/data.d.ts +47 -0
  87. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/hooks/useRenderTooltip.d.ts +3 -0
  88. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/hooks/useSimpleRenderTooltip.d.ts +3 -0
  89. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/index.d.ts +4 -0
  90. package/dist/stories/__internal__/components/GeoVebHorizontalBarCharts/styled.d.ts +4 -0
  91. package/dist/stories/__internal__/components/GeoYearsBarChart/index.d.ts +2 -0
  92. package/dist/stories/__internal__/components/GeoYearsBarChart/styled.d.ts +4 -0
  93. package/dist/stories/__internal__/components/MixedTableChart/Chart/index.d.ts +3 -0
  94. package/dist/stories/__internal__/components/MixedTableChart/Chart/styled.d.ts +2 -0
  95. package/dist/stories/__internal__/components/MixedTableChart/index.d.ts +3 -0
  96. package/dist/stories/__internal__/components/MixedTableChart/styled.d.ts +5 -0
  97. package/dist/stories/__internal__/components/MixedTableChart/types.d.ts +21 -0
  98. package/dist/stories/__internal__/components/MspDashboardChart/hooks/useAnimation.d.ts +5 -0
  99. package/dist/stories/__internal__/components/MspDashboardChart/index.d.ts +3 -0
  100. package/dist/stories/__internal__/components/MspDashboardChart/styled.d.ts +5 -0
  101. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useAnimationAreas.d.ts +6 -0
  102. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useAnimationBars.d.ts +5 -0
  103. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useCustomize.d.ts +4 -0
  104. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useData.d.ts +8 -0
  105. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useMarshalledMap.d.ts +1 -0
  106. package/dist/stories/__internal__/components/MspPromSupplyBarChart/hooks/useRenderTooltip.d.ts +2 -0
  107. package/dist/stories/__internal__/components/MspPromSupplyBarChart/index.d.ts +9 -0
  108. package/dist/stories/__internal__/components/MspPromSupplyBarChart/styled.d.ts +22 -0
  109. package/dist/stories/__internal__/components/SankeyTriChart/Groups/getCSSProperties.d.ts +4 -0
  110. package/dist/stories/__internal__/components/SankeyTriChart/Groups/helpers.d.ts +1 -0
  111. package/dist/stories/__internal__/components/SankeyTriChart/Groups/index.d.ts +5 -0
  112. package/dist/stories/__internal__/components/SankeyTriChart/Groups/styled.d.ts +1 -0
  113. package/dist/stories/__internal__/components/SankeyTriChart/ItemContent/getCSSProperties.d.ts +3 -0
  114. package/dist/stories/__internal__/components/SankeyTriChart/ItemContent/index.d.ts +5 -0
  115. package/dist/stories/__internal__/components/SankeyTriChart/ItemContent/styled.d.ts +8 -0
  116. package/dist/stories/__internal__/components/SankeyTriChart/draw.d.ts +2 -0
  117. package/dist/stories/__internal__/components/SankeyTriChart/helpers.d.ts +9 -0
  118. package/dist/stories/__internal__/components/SankeyTriChart/index.d.ts +10 -0
  119. package/dist/stories/__internal__/components/SankeyTriChart/marshaling.d.ts +6 -0
  120. package/dist/stories/__internal__/components/SankeyTriChart/styled.d.ts +1 -0
  121. package/dist/stories/__internal__/components/SankeyTriChart/types.d.ts +40 -0
  122. package/dist/stories/__internal__/components/SberBarMixChart/colors.d.ts +3 -0
  123. package/dist/stories/__internal__/components/SberBarMixChart/data.d.ts +8 -0
  124. package/dist/stories/__internal__/components/SberBarMixChart/hooks/styled.d.ts +3 -0
  125. package/dist/stories/__internal__/components/SberBarMixChart/hooks/useRenderTooltip.d.ts +2 -0
  126. package/dist/stories/__internal__/components/SberBarMixChart/index.d.ts +2 -0
  127. package/dist/stories/__internal__/components/SberBarMixChart/styled.d.ts +1 -0
  128. package/dist/stories/__internal__/components/StatisticsBarCharts/NumbersStatistics.d.ts +2 -0
  129. package/dist/stories/__internal__/components/StatisticsBarCharts/StringsStatistics.d.ts +2 -0
  130. package/dist/stories/__internal__/components/StatisticsBarCharts/index.d.ts +2 -0
  131. package/dist/stories/__internal__/components/StatisticsBarCharts/styled.d.ts +1 -0
  132. package/dist/stories/__internal__/components/VebEstimationBarChart/data.d.ts +38 -0
  133. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useCustomize.d.ts +5 -0
  134. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useDrawBars.d.ts +4 -0
  135. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderLabel/index.d.ts +9 -0
  136. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderLabel/styled.d.ts +1 -0
  137. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderTooltip/index.d.ts +8 -0
  138. package/dist/stories/__internal__/components/VebEstimationBarChart/hooks/useRenderTooltip/styled.d.ts +13 -0
  139. package/dist/stories/__internal__/components/VebEstimationBarChart/index.d.ts +3 -0
  140. package/dist/stories/__internal__/components/VebEstimationBarChart/styled.d.ts +2 -0
  141. package/dist/stories/__internal__/components/VebFilterBarChart/index.d.ts +2 -0
  142. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderSum/index.d.ts +3 -0
  143. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderSum/styled.d.ts +1 -0
  144. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderTooltip/index.d.ts +1 -0
  145. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/hooks/useRenderTooltip/styled.d.ts +5 -0
  146. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/index.d.ts +3 -0
  147. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/styled.d.ts +5 -0
  148. package/dist/stories/__internal__/components/VebGroupHorizontalBarChart/types.d.ts +11 -0
  149. package/dist/stories/__internal__/curves.d.ts +8 -0
  150. package/dist/stories/__internal__/data/msp.d.ts +14 -0
  151. package/dist/stories/__internal__/data/mspDashboard.d.ts +1 -0
  152. package/dist/stories/__internal__/data/mspPromSupply.d.ts +11 -0
  153. package/dist/stories/__internal__/data/population.d.ts +4 -0
  154. package/dist/stories/__internal__/data/veb.d.ts +31 -0
  155. package/dist/stories/__internal__/helpers/Path.d.ts +10 -0
  156. package/dist/stories/__internal__/helpers/Vector.d.ts +9 -0
  157. package/dist/stories/__internal__/helpers/animation.d.ts +15 -0
  158. package/dist/stories/__internal__/helpers/hexToRGB.d.ts +1 -0
  159. package/dist/stories/__internal__/helpers/random.d.ts +1 -0
  160. package/dist/stories/__internal__/helpers/randomData.d.ts +14 -0
  161. package/dist/stories/__internal__/helpers/randomHorizontalBarData.d.ts +5 -0
  162. package/dist/stories/__internal__/helpers/randomIntervalData.d.ts +11 -0
  163. package/dist/stories/__internal__/helpers/randomLineData.d.ts +8 -0
  164. package/dist/stories/__internal__/helpers/randomText.d.ts +1 -0
  165. package/dist/stories/__internal__/helpers/roundedRect.d.ts +10 -0
  166. package/dist/stories/__internal__/helpers/shuffleArray.d.ts +1 -0
  167. package/dist/stories/__internal__/hooks/useBarData.d.ts +10 -0
  168. package/dist/stories/__internal__/hooks/useLegend.d.ts +1 -0
  169. package/dist/stories/__internal__/hooks/useMinMaxValue.d.ts +4 -0
  170. package/dist/stories/__internal__/interpolates.d.ts +23 -0
  171. package/dist/storybook-static/1.05dfd83c.iframe.bundle.d.ts +0 -0
  172. package/dist/storybook-static/189.8c077122866758d3cf20.manager.bundle.d.ts +0 -0
  173. package/dist/storybook-static/190.58050c9beb344d4cefd9.manager.bundle.d.ts +2 -0
  174. package/dist/storybook-static/191.b202c06c72968435b80b.manager.bundle.d.ts +0 -0
  175. package/dist/storybook-static/192.83987c5b15f8a80893c5.manager.bundle.d.ts +0 -0
  176. package/dist/storybook-static/193.8a12aa992b466e778018.manager.bundle.d.ts +2 -0
  177. package/dist/storybook-static/2.0231c7b6.iframe.bundle.d.ts +0 -0
  178. package/dist/storybook-static/6.6185fd0d.iframe.bundle.d.ts +0 -0
  179. package/dist/storybook-static/7.0ede09e9.iframe.bundle.d.ts +0 -0
  180. package/dist/storybook-static/8.6f0230ef.iframe.bundle.d.ts +2 -0
  181. package/dist/storybook-static/main.6b7543c14993fcfcab71.manager.bundle.d.ts +2 -0
  182. package/dist/storybook-static/main.724b5942.iframe.bundle.d.ts +9 -0
  183. package/dist/storybook-static/runtime~main.92273705.iframe.bundle.d.ts +1 -0
  184. package/dist/storybook-static/runtime~main.c89e55a461c11ef29193.manager.bundle.d.ts +1 -0
  185. 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: d3.Selection<Element | d3.EnterElement | Document | Window | SVGPathElement | null, BarChartLineData, SVGGElement, unknown> | null;
12
- linesSelection: d3.Selection<Element | d3.EnterElement | Document | Window | SVGPathElement | null, BarChartLineData, SVGGElement, unknown> | null;
13
- area: d3.Area<[number, number]> | null;
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 | null, BarChartMarshalledGroup, SVGGElement, BarChartMarshalledGroup[]>;
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 'react';
2
- import { BarChartProps } from './types';
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 | undefined;
35
+ selectable?: boolean;
35
36
  }, never>;
36
- export declare const TooltipStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
37
+ export declare const TooltipStyles: JSXElementConstructor<any>;
@@ -1,6 +1,6 @@
1
- import * as d3 from 'd3';
2
- import { CSSProperties, ReactNode } from 'react';
3
- import { Margin } from '../../common/types/margin';
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 = 'top' | 'center' | 'bottom';
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 declare type BarChartProps = {
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, 'barPadding' | 'barWidth' | 'data' | 'colors'>;
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: 'line' | 'area';
143
+ lineType: "line" | "area";
144
144
  name: string;
145
145
  values: (number | null)[];
146
146
  stroke?: string;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { BubbleChartProps } from './types';
3
- export declare const BubbleChart: React.FC<BubbleChartProps>;
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: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
17
+ export declare const TooltipStyles: JSXElementConstructor<any>;
@@ -1,6 +1,6 @@
1
- import * as d3 from 'd3';
2
- import { CSSProperties } from 'react';
3
- import { Margin } from '../../common/types/margin';
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 declare type BubbleChartProps = {
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 | undefined) => void;
1
+ export declare const unmount: (tooltipRoot?: Element) => void;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { CalendarChartProps } from './types';
3
- export declare const CalendarChart: React.FC<CalendarChartProps>;
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 'react';
2
- import { Interpolator } from '../../common/types/interpolator';
3
- import { GetLegendProps } from '../../helpers/getLegend/types';
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 declare type CalendarChartProps = {
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 | undefined) => (({ item, mouseMove, mouseLeave, tooltipBind, ...props }: {
5
- style?: React.CSSProperties | undefined;
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 React from 'react';
2
- import { HorizontalBarChartProps } from './types';
3
- export declare const HorizontalBarChart: React.FC<HorizontalBarChartProps>;
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 'react';
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 declare type HorizontalBarChartProps = {
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 React from 'react';
2
- import { LineChartProps } from './types';
3
- export declare const LineChart: React.FC<LineChartProps>;
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: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
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 declare type LineChartProps = {
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 React from 'react';
2
- import { PieChartProps } from './types';
3
- export declare const PieChart: React.FC<PieChartProps>;
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 'react';
2
- import * as d3 from 'd3';
3
- import { Margin } from '../../common/types/margin';
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;