@alfalab/core-components-chart 3.1.11 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/Component.d.ts +2 -1
  2. package/Component.js +1 -1
  3. package/components/Dot/index.css +8 -8
  4. package/components/Dot/index.js +1 -1
  5. package/components/Legends/index.css +8 -8
  6. package/components/Legends/index.js +1 -1
  7. package/components/Tick/index.css +4 -4
  8. package/components/Tick/index.d.ts +2 -1
  9. package/components/Tick/index.js +1 -1
  10. package/components/TooltipContent/index.css +7 -7
  11. package/components/TooltipContent/index.d.ts +2 -1
  12. package/components/TooltipContent/index.js +1 -1
  13. package/cssm/Component.d.ts +2 -1
  14. package/cssm/components/Tick/index.d.ts +2 -1
  15. package/cssm/components/TooltipContent/index.d.ts +2 -1
  16. package/cssm/icons/Circle.d.ts +2 -1
  17. package/cssm/icons/FilledCircle.d.ts +2 -1
  18. package/cssm/icons/Point.d.ts +2 -1
  19. package/cssm/icons/StrokeCircle.d.ts +2 -1
  20. package/esm/Component.d.ts +2 -1
  21. package/esm/Component.js +1 -1
  22. package/esm/components/Dot/index.css +8 -8
  23. package/esm/components/Dot/index.js +1 -1
  24. package/esm/components/Legends/index.css +8 -8
  25. package/esm/components/Legends/index.js +1 -1
  26. package/esm/components/Tick/index.css +4 -4
  27. package/esm/components/Tick/index.d.ts +2 -1
  28. package/esm/components/Tick/index.js +1 -1
  29. package/esm/components/TooltipContent/index.css +7 -7
  30. package/esm/components/TooltipContent/index.d.ts +2 -1
  31. package/esm/components/TooltipContent/index.js +1 -1
  32. package/esm/icons/Circle.d.ts +2 -1
  33. package/esm/icons/FilledCircle.d.ts +2 -1
  34. package/esm/icons/Point.d.ts +2 -1
  35. package/esm/icons/StrokeCircle.d.ts +2 -1
  36. package/esm/index.css +5 -5
  37. package/icons/Circle.d.ts +2 -1
  38. package/icons/FilledCircle.d.ts +2 -1
  39. package/icons/Point.d.ts +2 -1
  40. package/icons/StrokeCircle.d.ts +2 -1
  41. package/index.css +5 -5
  42. package/modern/Component.d.ts +2 -1
  43. package/modern/Component.js +1 -1
  44. package/modern/components/Dot/index.css +8 -8
  45. package/modern/components/Dot/index.js +1 -1
  46. package/modern/components/Legends/index.css +8 -8
  47. package/modern/components/Legends/index.js +1 -1
  48. package/modern/components/Tick/index.css +4 -4
  49. package/modern/components/Tick/index.d.ts +2 -1
  50. package/modern/components/Tick/index.js +1 -1
  51. package/modern/components/TooltipContent/index.css +7 -7
  52. package/modern/components/TooltipContent/index.d.ts +2 -1
  53. package/modern/components/TooltipContent/index.js +1 -1
  54. package/modern/icons/Circle.d.ts +2 -1
  55. package/modern/icons/FilledCircle.d.ts +2 -1
  56. package/modern/icons/Point.d.ts +2 -1
  57. package/modern/icons/StrokeCircle.d.ts +2 -1
  58. package/modern/index.css +5 -5
  59. package/package.json +2 -5
  60. package/src/Component.tsx +404 -0
  61. package/src/components/CustomizedLabel.tsx +29 -0
  62. package/src/components/Dot/index.module.css +22 -0
  63. package/src/components/Dot/index.tsx +79 -0
  64. package/src/components/Legends/index.module.css +36 -0
  65. package/src/components/Legends/index.tsx +85 -0
  66. package/src/components/LinearGradient.tsx +16 -0
  67. package/src/components/RectBar.tsx +50 -0
  68. package/src/components/Tick/index.module.css +16 -0
  69. package/src/components/Tick/index.tsx +32 -0
  70. package/src/components/TooltipContent/index.module.css +51 -0
  71. package/src/components/TooltipContent/index.tsx +83 -0
  72. package/src/hoc/Customized.jsx +7 -0
  73. package/src/hooks/usePathBar/index.tsx +56 -0
  74. package/src/hooks/usePathBar/utils/getRadius.ts +5 -0
  75. package/src/hooks/useSettings/index.tsx +66 -0
  76. package/src/hooks/useSettings/utils/setComposedChartsMargin.ts +29 -0
  77. package/src/hooks/useSettings/utils/setDatas.ts +53 -0
  78. package/src/hooks/useSettings/utils/setGradientCharts.ts +43 -0
  79. package/src/hooks/useSettings/utils/setLegendMargin.ts +16 -0
  80. package/src/hooks/useSettings/utils/sortByIndex.ts +10 -0
  81. package/src/icons/Circle.tsx +12 -0
  82. package/src/icons/CircleLine.tsx +13 -0
  83. package/src/icons/FilledCircle.tsx +25 -0
  84. package/src/icons/Point.tsx +13 -0
  85. package/src/icons/StrokeCircle.tsx +12 -0
  86. package/src/index.module.css +21 -0
  87. package/src/index.ts +2 -0
  88. package/src/types/brush.types.ts +50 -0
  89. package/src/types/cartesianGrid.types.ts +26 -0
  90. package/src/types/chart.types.ts +81 -0
  91. package/src/types/composedChart.types.ts +36 -0
  92. package/src/types/index.ts +14 -0
  93. package/src/types/labelList.types.ts +5 -0
  94. package/src/types/legend.types.ts +35 -0
  95. package/src/types/options.types.ts +69 -0
  96. package/src/types/payload.types.ts +33 -0
  97. package/src/types/responsiveContainer.types.ts +9 -0
  98. package/src/types/seria.types.ts +86 -0
  99. package/src/types/tooltip.types.ts +85 -0
  100. package/src/types/utils/axis.types.ts +88 -0
  101. package/src/types/utils/coordinates.types.ts +11 -0
  102. package/src/types/utils/data.types.ts +19 -0
  103. package/src/types/utils/dot.types.ts +88 -0
  104. package/src/types/utils/gradient.types.ts +33 -0
  105. package/src/types/utils/index.ts +6 -0
  106. package/src/types/utils/tick.types.ts +38 -0
  107. package/src/types/xAxis.types.ts +18 -0
  108. package/src/types/yAxis.types.ts +8 -0
  109. package/send-stats.js +0 -82
package/Component.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { OptionsProps } from "./types/index";
3
- declare const Chart: (props: OptionsProps) => JSX.Element | null;
4
+ declare const Chart: (props: OptionsProps) => React.JSX.Element | null;
4
5
  export { Chart };
package/Component.js CHANGED
@@ -38,7 +38,7 @@ var CustomizedHOC = function (Component, options) {
38
38
  return NewComponent;
39
39
  };
40
40
 
41
- var styles = {"coreChart":"chart__coreChart_1a8to","bar":"chart__bar_1a8to","unfocused":"chart__unfocused_1a8to"};
41
+ var styles = {"coreChart":"chart__coreChart_bgqh","bar":"chart__bar_bgqh","unfocused":"chart__unfocused_bgqh"};
42
42
  require('./index.css')
43
43
 
44
44
  var Chart = function (props) {
@@ -1,19 +1,19 @@
1
- /* hash: 1ccab */
2
- .chart__dotUnfocused_1bm1e {
1
+ /* hash: 15k7m */
2
+ .chart__dotUnfocused_10twu {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_1bm1e,
7
- .chart__dotItem_1bm1e,
8
- .chart__dotWrap_1bm1e {
6
+ .chart__dot_10twu,
7
+ .chart__dotItem_10twu,
8
+ .chart__dotWrap_10twu {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_1bm1e {
13
- animation: chart__showDot_1bm1e 0.5s ease;
12
+ .chart__dot_10twu {
13
+ animation: chart__showDot_10twu 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_1bm1e {
16
+ @keyframes chart__showDot_10twu {
17
17
  from {
18
18
  opacity: 0;
19
19
  }
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"dotUnfocused":"chart__dotUnfocused_1bm1e","dot":"chart__dot_1bm1e","dotItem":"chart__dotItem_1bm1e","dotWrap":"chart__dotWrap_1bm1e","showDot":"chart__showDot_1bm1e"};
14
+ var styles = {"dotUnfocused":"chart__dotUnfocused_10twu","dot":"chart__dot_10twu","dotItem":"chart__dotItem_10twu","dotWrap":"chart__dotWrap_10twu","showDot":"chart__showDot_10twu"};
15
15
  require('./index.css')
16
16
 
17
17
  var Dot = React__default.default.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: vaobp */
1
+ /* hash: oilmw */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,25 +15,25 @@
15
15
  --gap-2xl: 32px;
16
16
  } :root {
17
17
  } :root {
18
- } .chart__legendContent_1kzcr {
18
+ } .chart__legendContent_14gcl {
19
19
  display: flex;
20
20
  align-items: center;
21
21
  flex-wrap: wrap;
22
- } .chart__legendWrap_1kzcr {
22
+ } .chart__legendWrap_14gcl {
23
23
  width: 100%;
24
24
  margin: 0;
25
25
  padding: 0;
26
- } .chart__legendItem_1kzcr {
26
+ } .chart__legendItem_14gcl {
27
27
  margin-right: var(--gap-2xl);
28
28
  cursor: pointer;
29
29
  display: inline-block;
30
- } .chart__legendItem_1kzcr:last-child {
30
+ } .chart__legendItem_14gcl:last-child {
31
31
  margin-right: 0;
32
- } .chart__legendUnactive_1kzcr {
32
+ } .chart__legendUnactive_14gcl {
33
33
  opacity: 0.3;
34
- } .chart__legendIcon_1kzcr {
34
+ } .chart__legendIcon_14gcl {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
- } .chart__legendValue_1kzcr {
37
+ } .chart__legendValue_14gcl {
38
38
  text-transform: capitalize;
39
39
  }
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
- var styles = {"legendContent":"chart__legendContent_1kzcr","legendWrap":"chart__legendWrap_1kzcr","legendItem":"chart__legendItem_1kzcr","legendUnactive":"chart__legendUnactive_1kzcr","legendIcon":"chart__legendIcon_1kzcr","legendValue":"chart__legendValue_1kzcr"};
18
+ var styles = {"legendContent":"chart__legendContent_14gcl","legendWrap":"chart__legendWrap_14gcl","legendItem":"chart__legendItem_14gcl","legendUnactive":"chart__legendUnactive_14gcl","legendIcon":"chart__legendIcon_14gcl","legendValue":"chart__legendValue_14gcl"};
19
19
  require('./index.css')
20
20
 
21
21
  var icons = {
@@ -1,4 +1,4 @@
1
- /* hash: 13icr */
1
+ /* hash: 11fth */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-dark-bg-primary: #121212;
@@ -16,15 +16,15 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- } .chart__tickText_m7nsj {
19
+ } .chart__tickText_1l4ba {
20
20
  fill: var(--color-light-text-primary);
21
21
  font-size: 16px;
22
22
  line-height: 24px;
23
23
  font-weight: 400;
24
- } .chart__circle_m7nsj {
24
+ } .chart__circle_1l4ba {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
- } .chart__circle_m7nsj {
27
+ } .chart__circle_1l4ba {
28
28
  opacity: 0.3;
29
29
  fill: var(--color-dark-bg-primary);
30
30
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { TickProps } from "../../types/utils/tick.types";
3
- declare const Tick: ({ y, payload, tickFormatter, xAxis }: TickProps) => JSX.Element;
4
+ declare const Tick: ({ y, payload, tickFormatter, xAxis }: TickProps) => React.JSX.Element;
4
5
  export { Tick };
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
10
10
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
11
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
12
12
 
13
- var styles = {"tickText":"chart__tickText_m7nsj","circle":"chart__circle_m7nsj"};
13
+ var styles = {"tickText":"chart__tickText_1l4ba","circle":"chart__circle_1l4ba"};
14
14
  require('./index.css')
15
15
 
16
16
  var Tick = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: xadgo */
1
+ /* hash: v7u75 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -21,7 +21,7 @@
21
21
  --gap-m: 16px;
22
22
  } :root {
23
23
  } :root {
24
- } .chart__tooltip_t9vbe {
24
+ } .chart__tooltip_1siiu {
25
25
  background-color: var(--color-light-bg-primary);
26
26
  border: 1px solid var(--color-light-border-primary);
27
27
  box-shadow: var(--shadow-l);
@@ -29,15 +29,15 @@
29
29
  padding: var(--gap-s) var(--gap-m);
30
30
  pointer-events: none;
31
31
  position: relative;
32
- } .chart__tooltipList_t9vbe {
32
+ } .chart__tooltipList_1siiu {
33
33
  position: relative;
34
34
  z-index: 5;
35
35
  list-style-type: none;
36
36
  padding: 0;
37
37
  margin: 0;
38
- } .chart__tooltipItem_t9vbe {
38
+ } .chart__tooltipItem_1siiu {
39
39
  margin-bottom: 10px;
40
- } .chart__tooltipArrow_t9vbe {
40
+ } .chart__tooltipArrow_1siiu {
41
41
  position: absolute;
42
42
  left: 0;
43
43
  top: 50%;
@@ -46,7 +46,7 @@
46
46
  height: 10px;
47
47
  border: 1px solid var(--color-light-border-primary);
48
48
  background-color: var(--color-light-bg-primary);
49
- } .chart__tooltipArrow_t9vbe:before {
49
+ } .chart__tooltipArrow_1siiu:before {
50
50
  content: '';
51
51
  position: absolute;
52
52
  left: -2px;
@@ -56,7 +56,7 @@
56
56
  border-style: solid;
57
57
  border-width: 0 24px 24px 0;
58
58
  border-color: transparent var(--color-light-bg-primary) transparent transparent;
59
- } .chart__tooltipArrowRight_t9vbe {
59
+ } .chart__tooltipArrowRight_1siiu {
60
60
  left: 100%;
61
61
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
62
62
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { PayloadProps } from "../../types/payload.types";
3
4
  import { SeriaProps } from "../../types/seria.types";
4
5
  import { TooltipProps } from "../../types/tooltip.types";
@@ -6,5 +7,5 @@ interface TooltipContentProps extends TooltipProps {
6
7
  payload: PayloadProps[];
7
8
  series: SeriaProps[];
8
9
  }
9
- declare const TooltipContent: ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }: TooltipContentProps) => JSX.Element | null;
10
+ declare const TooltipContent: ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }: TooltipContentProps) => React.JSX.Element | null;
10
11
  export { TooltipContentProps, TooltipContent };
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"tooltip":"chart__tooltip_t9vbe","tooltipList":"chart__tooltipList_t9vbe","tooltipItem":"chart__tooltipItem_t9vbe","tooltipArrow":"chart__tooltipArrow_t9vbe","tooltipArrowRight":"chart__tooltipArrowRight_t9vbe"};
14
+ var styles = {"tooltip":"chart__tooltip_1siiu","tooltipList":"chart__tooltipList_1siiu","tooltipItem":"chart__tooltipItem_1siiu","tooltipArrow":"chart__tooltipArrow_1siiu","tooltipArrowRight":"chart__tooltipArrowRight_1siiu"};
15
15
  require('./index.css')
16
16
 
17
17
  var TooltipContent = function (_a) {
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { OptionsProps } from "./types/index";
3
- declare const Chart: (props: OptionsProps) => JSX.Element | null;
4
+ declare const Chart: (props: OptionsProps) => React.JSX.Element | null;
4
5
  export { Chart };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { TickProps } from "../../types/utils/tick.types";
3
- declare const Tick: ({ y, payload, tickFormatter, xAxis }: TickProps) => JSX.Element;
4
+ declare const Tick: ({ y, payload, tickFormatter, xAxis }: TickProps) => React.JSX.Element;
4
5
  export { Tick };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { PayloadProps } from "../../types/payload.types";
3
4
  import { SeriaProps } from "../../types/seria.types";
4
5
  import { TooltipProps } from "../../types/tooltip.types";
@@ -6,5 +7,5 @@ interface TooltipContentProps extends TooltipProps {
6
7
  payload: PayloadProps[];
7
8
  series: SeriaProps[];
8
9
  }
9
- declare const TooltipContent: ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }: TooltipContentProps) => JSX.Element | null;
10
+ declare const TooltipContent: ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }: TooltipContentProps) => React.JSX.Element | null;
10
11
  export { TooltipContentProps, TooltipContent };
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const CircleIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const CircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { CircleIcon };
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const FilledCircleIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const FilledCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { FilledCircleIcon };
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const PointIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const PointIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { PointIcon };
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const StrokeCircleIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const StrokeCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { StrokeCircleIcon };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { OptionsProps } from "./types/index";
3
- declare const Chart: (props: OptionsProps) => JSX.Element | null;
4
+ declare const Chart: (props: OptionsProps) => React.JSX.Element | null;
4
5
  export { Chart };
package/esm/Component.js CHANGED
@@ -29,7 +29,7 @@ var CustomizedHOC = function (Component, options) {
29
29
  return NewComponent;
30
30
  };
31
31
 
32
- var styles = {"coreChart":"chart__coreChart_1a8to","bar":"chart__bar_1a8to","unfocused":"chart__unfocused_1a8to"};
32
+ var styles = {"coreChart":"chart__coreChart_bgqh","bar":"chart__bar_bgqh","unfocused":"chart__unfocused_bgqh"};
33
33
  require('./index.css')
34
34
 
35
35
  var Chart = function (props) {
@@ -1,19 +1,19 @@
1
- /* hash: 1ccab */
2
- .chart__dotUnfocused_1bm1e {
1
+ /* hash: 15k7m */
2
+ .chart__dotUnfocused_10twu {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_1bm1e,
7
- .chart__dotItem_1bm1e,
8
- .chart__dotWrap_1bm1e {
6
+ .chart__dot_10twu,
7
+ .chart__dotItem_10twu,
8
+ .chart__dotWrap_10twu {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_1bm1e {
13
- animation: chart__showDot_1bm1e 0.5s ease;
12
+ .chart__dot_10twu {
13
+ animation: chart__showDot_10twu 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_1bm1e {
16
+ @keyframes chart__showDot_10twu {
17
17
  from {
18
18
  opacity: 0;
19
19
  }
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { PointIcon } from '../../icons/Point.js';
4
4
 
5
- var styles = {"dotUnfocused":"chart__dotUnfocused_1bm1e","dot":"chart__dot_1bm1e","dotItem":"chart__dotItem_1bm1e","dotWrap":"chart__dotWrap_1bm1e","showDot":"chart__showDot_1bm1e"};
5
+ var styles = {"dotUnfocused":"chart__dotUnfocused_10twu","dot":"chart__dot_10twu","dotItem":"chart__dotItem_10twu","dotWrap":"chart__dotWrap_10twu","showDot":"chart__showDot_10twu"};
6
6
  require('./index.css')
7
7
 
8
8
  var Dot = React.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: vaobp */
1
+ /* hash: oilmw */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,25 +15,25 @@
15
15
  --gap-2xl: 32px;
16
16
  } :root {
17
17
  } :root {
18
- } .chart__legendContent_1kzcr {
18
+ } .chart__legendContent_14gcl {
19
19
  display: flex;
20
20
  align-items: center;
21
21
  flex-wrap: wrap;
22
- } .chart__legendWrap_1kzcr {
22
+ } .chart__legendWrap_14gcl {
23
23
  width: 100%;
24
24
  margin: 0;
25
25
  padding: 0;
26
- } .chart__legendItem_1kzcr {
26
+ } .chart__legendItem_14gcl {
27
27
  margin-right: var(--gap-2xl);
28
28
  cursor: pointer;
29
29
  display: inline-block;
30
- } .chart__legendItem_1kzcr:last-child {
30
+ } .chart__legendItem_14gcl:last-child {
31
31
  margin-right: 0;
32
- } .chart__legendUnactive_1kzcr {
32
+ } .chart__legendUnactive_14gcl {
33
33
  opacity: 0.3;
34
- } .chart__legendIcon_1kzcr {
34
+ } .chart__legendIcon_14gcl {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
- } .chart__legendValue_1kzcr {
37
+ } .chart__legendValue_14gcl {
38
38
  text-transform: capitalize;
39
39
  }
@@ -6,7 +6,7 @@ import { CircleLineIcon } from '../../icons/CircleLine.js';
6
6
  import { FilledCircleIcon } from '../../icons/FilledCircle.js';
7
7
  import { StrokeCircleIcon } from '../../icons/StrokeCircle.js';
8
8
 
9
- var styles = {"legendContent":"chart__legendContent_1kzcr","legendWrap":"chart__legendWrap_1kzcr","legendItem":"chart__legendItem_1kzcr","legendUnactive":"chart__legendUnactive_1kzcr","legendIcon":"chart__legendIcon_1kzcr","legendValue":"chart__legendValue_1kzcr"};
9
+ var styles = {"legendContent":"chart__legendContent_14gcl","legendWrap":"chart__legendWrap_14gcl","legendItem":"chart__legendItem_14gcl","legendUnactive":"chart__legendUnactive_14gcl","legendIcon":"chart__legendIcon_14gcl","legendValue":"chart__legendValue_14gcl"};
10
10
  require('./index.css')
11
11
 
12
12
  var icons = {
@@ -1,4 +1,4 @@
1
- /* hash: 13icr */
1
+ /* hash: 11fth */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-dark-bg-primary: #121212;
@@ -16,15 +16,15 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- } .chart__tickText_m7nsj {
19
+ } .chart__tickText_1l4ba {
20
20
  fill: var(--color-light-text-primary);
21
21
  font-size: 16px;
22
22
  line-height: 24px;
23
23
  font-weight: 400;
24
- } .chart__circle_m7nsj {
24
+ } .chart__circle_1l4ba {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
- } .chart__circle_m7nsj {
27
+ } .chart__circle_1l4ba {
28
28
  opacity: 0.3;
29
29
  fill: var(--color-dark-bg-primary);
30
30
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { TickProps } from "../../types/utils/tick.types";
3
- declare const Tick: ({ y, payload, tickFormatter, xAxis }: TickProps) => JSX.Element;
4
+ declare const Tick: ({ y, payload, tickFormatter, xAxis }: TickProps) => React.JSX.Element;
4
5
  export { Tick };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"tickText":"chart__tickText_m7nsj","circle":"chart__circle_m7nsj"};
4
+ var styles = {"tickText":"chart__tickText_1l4ba","circle":"chart__circle_1l4ba"};
5
5
  require('./index.css')
6
6
 
7
7
  var Tick = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: xadgo */
1
+ /* hash: v7u75 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -21,7 +21,7 @@
21
21
  --gap-m: 16px;
22
22
  } :root {
23
23
  } :root {
24
- } .chart__tooltip_t9vbe {
24
+ } .chart__tooltip_1siiu {
25
25
  background-color: var(--color-light-bg-primary);
26
26
  border: 1px solid var(--color-light-border-primary);
27
27
  box-shadow: var(--shadow-l);
@@ -29,15 +29,15 @@
29
29
  padding: var(--gap-s) var(--gap-m);
30
30
  pointer-events: none;
31
31
  position: relative;
32
- } .chart__tooltipList_t9vbe {
32
+ } .chart__tooltipList_1siiu {
33
33
  position: relative;
34
34
  z-index: 5;
35
35
  list-style-type: none;
36
36
  padding: 0;
37
37
  margin: 0;
38
- } .chart__tooltipItem_t9vbe {
38
+ } .chart__tooltipItem_1siiu {
39
39
  margin-bottom: 10px;
40
- } .chart__tooltipArrow_t9vbe {
40
+ } .chart__tooltipArrow_1siiu {
41
41
  position: absolute;
42
42
  left: 0;
43
43
  top: 50%;
@@ -46,7 +46,7 @@
46
46
  height: 10px;
47
47
  border: 1px solid var(--color-light-border-primary);
48
48
  background-color: var(--color-light-bg-primary);
49
- } .chart__tooltipArrow_t9vbe:before {
49
+ } .chart__tooltipArrow_1siiu:before {
50
50
  content: '';
51
51
  position: absolute;
52
52
  left: -2px;
@@ -56,7 +56,7 @@
56
56
  border-style: solid;
57
57
  border-width: 0 24px 24px 0;
58
58
  border-color: transparent var(--color-light-bg-primary) transparent transparent;
59
- } .chart__tooltipArrowRight_t9vbe {
59
+ } .chart__tooltipArrowRight_1siiu {
60
60
  left: 100%;
61
61
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
62
62
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  import { PayloadProps } from "../../types/payload.types";
3
4
  import { SeriaProps } from "../../types/seria.types";
4
5
  import { TooltipProps } from "../../types/tooltip.types";
@@ -6,5 +7,5 @@ interface TooltipContentProps extends TooltipProps {
6
7
  payload: PayloadProps[];
7
8
  series: SeriaProps[];
8
9
  }
9
- declare const TooltipContent: ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }: TooltipContentProps) => JSX.Element | null;
10
+ declare const TooltipContent: ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }: TooltipContentProps) => React.JSX.Element | null;
10
11
  export { TooltipContentProps, TooltipContent };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Typography } from '@alfalab/core-components-typography/esm';
4
4
 
5
- var styles = {"tooltip":"chart__tooltip_t9vbe","tooltipList":"chart__tooltipList_t9vbe","tooltipItem":"chart__tooltipItem_t9vbe","tooltipArrow":"chart__tooltipArrow_t9vbe","tooltipArrowRight":"chart__tooltipArrowRight_t9vbe"};
5
+ var styles = {"tooltip":"chart__tooltip_1siiu","tooltipList":"chart__tooltipList_1siiu","tooltipItem":"chart__tooltipItem_1siiu","tooltipArrow":"chart__tooltipArrow_1siiu","tooltipArrowRight":"chart__tooltipArrowRight_1siiu"};
6
6
  require('./index.css')
7
7
 
8
8
  var TooltipContent = function (_a) {
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const CircleIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const CircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { CircleIcon };
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const FilledCircleIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const FilledCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { FilledCircleIcon };
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const PointIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const PointIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { PointIcon };
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const StrokeCircleIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const StrokeCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { StrokeCircleIcon };
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1w93y */
1
+ /* hash: 402lo */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -15,14 +15,14 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .chart__coreChart_1a8to .recharts-line path {
18
+ } .chart__coreChart_bgqh .recharts-line path {
19
19
  transition: d 0.2s ease-out;
20
- } .chart__coreChart_1a8to .recharts-text tspan {
20
+ } .chart__coreChart_bgqh .recharts-text tspan {
21
21
  fill: var(--color-light-text-primary);
22
22
  font-size: 16px;
23
23
  line-height: 22px;
24
- } .chart__bar_1a8to {
24
+ } .chart__bar_bgqh {
25
25
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
26
- } .chart__unfocused_1a8to {
26
+ } .chart__unfocused_bgqh {
27
27
  opacity: 0.3;
28
28
  }
package/icons/Circle.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const CircleIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const CircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { CircleIcon };
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const FilledCircleIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const FilledCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { FilledCircleIcon };
package/icons/Point.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import React from 'react';
2
3
  type Props = {
3
4
  fill?: string;
4
5
  height?: number;
5
6
  };
6
- declare const PointIcon: ({ fill, height }: Props) => JSX.Element;
7
+ declare const PointIcon: ({ fill, height }: Props) => React.JSX.Element;
7
8
  export { PointIcon };