@alfalab/core-components-chart 3.1.9 → 3.1.10

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 (82) hide show
  1. package/Component.d.ts +1 -1
  2. package/Component.js +3 -1
  3. package/components/CustomizedLabel.js +3 -0
  4. package/components/Dot/index.css +8 -8
  5. package/components/Dot/index.js +3 -1
  6. package/components/Legends/index.css +10 -10
  7. package/components/Legends/index.js +3 -1
  8. package/components/LinearGradient.js +2 -0
  9. package/components/RectBar.js +3 -0
  10. package/components/Tick/index.css +7 -7
  11. package/components/Tick/index.js +3 -1
  12. package/components/TooltipContent/index.css +11 -10
  13. package/components/TooltipContent/index.js +3 -1
  14. package/cssm/Component.d.ts +1 -1
  15. package/cssm/Component.js +2 -0
  16. package/cssm/components/CustomizedLabel.js +3 -0
  17. package/cssm/components/Dot/index.js +2 -0
  18. package/cssm/components/Legends/index.js +2 -0
  19. package/cssm/components/Legends/index.module.css +2 -2
  20. package/cssm/components/LinearGradient.js +2 -0
  21. package/cssm/components/RectBar.js +3 -0
  22. package/cssm/components/Tick/index.js +2 -0
  23. package/cssm/components/Tick/index.module.css +3 -3
  24. package/cssm/components/TooltipContent/index.js +2 -0
  25. package/cssm/components/TooltipContent/index.module.css +4 -3
  26. package/cssm/hooks/usePathBar/index.js +2 -0
  27. package/cssm/hooks/usePathBar/utils/getRadius.js +2 -0
  28. package/cssm/hooks/useSettings/index.js +2 -0
  29. package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +2 -0
  30. package/cssm/hooks/useSettings/utils/setDatas.js +2 -0
  31. package/cssm/hooks/useSettings/utils/setGradientCharts.js +2 -0
  32. package/cssm/hooks/useSettings/utils/setLegendMargin.js +2 -0
  33. package/cssm/hooks/useSettings/utils/sortByIndex.js +2 -0
  34. package/cssm/icons/Circle.js +2 -0
  35. package/cssm/icons/CircleLine.js +2 -0
  36. package/cssm/icons/FilledCircle.js +2 -0
  37. package/cssm/icons/Point.js +2 -0
  38. package/cssm/icons/StrokeCircle.js +2 -0
  39. package/cssm/index.js +2 -0
  40. package/cssm/index.module.css +2 -2
  41. package/esm/Component.d.ts +1 -1
  42. package/esm/Component.js +1 -1
  43. package/esm/components/CustomizedLabel.js +1 -0
  44. package/esm/components/Dot/index.css +8 -8
  45. package/esm/components/Dot/index.js +1 -1
  46. package/esm/components/Legends/index.css +10 -10
  47. package/esm/components/Legends/index.js +1 -1
  48. package/esm/components/RectBar.js +1 -0
  49. package/esm/components/Tick/index.css +7 -7
  50. package/esm/components/Tick/index.js +1 -1
  51. package/esm/components/TooltipContent/index.css +11 -10
  52. package/esm/components/TooltipContent/index.js +1 -1
  53. package/esm/index.css +7 -7
  54. package/hooks/usePathBar/index.js +2 -0
  55. package/hooks/usePathBar/utils/getRadius.js +2 -0
  56. package/hooks/useSettings/index.js +2 -0
  57. package/hooks/useSettings/utils/setComposedChartsMargin.js +2 -0
  58. package/hooks/useSettings/utils/setDatas.js +2 -0
  59. package/hooks/useSettings/utils/setGradientCharts.js +2 -0
  60. package/hooks/useSettings/utils/setLegendMargin.js +2 -0
  61. package/hooks/useSettings/utils/sortByIndex.js +2 -0
  62. package/icons/Circle.js +2 -0
  63. package/icons/CircleLine.js +2 -0
  64. package/icons/FilledCircle.js +2 -0
  65. package/icons/Point.js +2 -0
  66. package/icons/StrokeCircle.js +2 -0
  67. package/index.css +7 -7
  68. package/index.js +2 -0
  69. package/modern/Component.d.ts +1 -1
  70. package/modern/Component.js +2 -1
  71. package/modern/components/CustomizedLabel.js +1 -0
  72. package/modern/components/Dot/index.css +8 -8
  73. package/modern/components/Dot/index.js +1 -1
  74. package/modern/components/Legends/index.css +10 -10
  75. package/modern/components/Legends/index.js +1 -1
  76. package/modern/components/RectBar.js +1 -0
  77. package/modern/components/Tick/index.css +7 -7
  78. package/modern/components/Tick/index.js +1 -1
  79. package/modern/components/TooltipContent/index.css +11 -10
  80. package/modern/components/TooltipContent/index.js +1 -1
  81. package/modern/index.css +7 -7
  82. package/package.json +2 -2
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { usePathBar } from '../hooks/usePathBar/index.js';
3
3
  import '../hooks/usePathBar/utils/getRadius.js';
4
4
 
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
6
  var CustomizedLabel = function (_a) {
6
7
  var x = _a.x, y = _a.y, value = _a.value, offset = _a.offset, radius = _a.radius, height = _a.height, width = _a.width, formatter = _a.formatter;
7
8
  var initHeight = usePathBar({ radius: radius, height: height })[0];
@@ -1,19 +1,19 @@
1
- /* hash: 1ckc2 */
2
- .chart__dotUnfocused_p7bjp {
1
+ /* hash: 1maka */
2
+ .chart__dotUnfocused_1hjny {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_p7bjp,
7
- .chart__dotItem_p7bjp,
8
- .chart__dotWrap_p7bjp {
6
+ .chart__dot_1hjny,
7
+ .chart__dotItem_1hjny,
8
+ .chart__dotWrap_1hjny {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_p7bjp {
13
- animation: chart__showDot_p7bjp 0.5s ease;
12
+ .chart__dot_1hjny {
13
+ animation: chart__showDot_1hjny 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_p7bjp {
16
+ @keyframes chart__showDot_1hjny {
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_p7bjp","dot":"chart__dot_p7bjp","dotItem":"chart__dotItem_p7bjp","dotWrap":"chart__dotWrap_p7bjp","showDot":"chart__showDot_p7bjp"};
5
+ var styles = {"dotUnfocused":"chart__dotUnfocused_1hjny","dot":"chart__dot_1hjny","dotItem":"chart__dotItem_1hjny","dotWrap":"chart__dotWrap_1hjny","showDot":"chart__showDot_1hjny"};
6
6
  require('./index.css')
7
7
 
8
8
  var Dot = React.forwardRef(function (_a, ref) {
@@ -1,7 +1,7 @@
1
- /* hash: nmflm */
1
+ /* hash: 14k76 */
2
2
  :root {
3
- } /* deprecated */ :root {
4
- } :root {
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
+ } :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 */
5
5
  } :root {
6
6
  } :root {
7
7
 
@@ -15,25 +15,25 @@
15
15
  --gap-2xl: 32px;
16
16
  } :root {
17
17
  } :root {
18
- } .chart__legendContent_cb6tz {
18
+ } .chart__legendContent_llby3 {
19
19
  display: flex;
20
20
  align-items: center;
21
21
  flex-wrap: wrap;
22
- } .chart__legendWrap_cb6tz {
22
+ } .chart__legendWrap_llby3 {
23
23
  width: 100%;
24
24
  margin: 0;
25
25
  padding: 0;
26
- } .chart__legendItem_cb6tz {
26
+ } .chart__legendItem_llby3 {
27
27
  margin-right: var(--gap-2xl);
28
28
  cursor: pointer;
29
29
  display: inline-block;
30
- } .chart__legendItem_cb6tz:last-child {
30
+ } .chart__legendItem_llby3:last-child {
31
31
  margin-right: 0;
32
- } .chart__legendUnactive_cb6tz {
32
+ } .chart__legendUnactive_llby3 {
33
33
  opacity: 0.3;
34
- } .chart__legendIcon_cb6tz {
34
+ } .chart__legendIcon_llby3 {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
- } .chart__legendValue_cb6tz {
37
+ } .chart__legendValue_llby3 {
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_cb6tz","legendWrap":"chart__legendWrap_cb6tz","legendItem":"chart__legendItem_cb6tz","legendUnactive":"chart__legendUnactive_cb6tz","legendIcon":"chart__legendIcon_cb6tz","legendValue":"chart__legendValue_cb6tz"};
9
+ var styles = {"legendContent":"chart__legendContent_llby3","legendWrap":"chart__legendWrap_llby3","legendItem":"chart__legendItem_llby3","legendUnactive":"chart__legendUnactive_llby3","legendIcon":"chart__legendIcon_llby3","legendValue":"chart__legendValue_llby3"};
10
10
  require('./index.css')
11
11
 
12
12
  var icons = {
@@ -2,6 +2,7 @@ import React, { useMemo } from 'react';
2
2
  import { usePathBar } from '../hooks/usePathBar/index.js';
3
3
  import '../hooks/usePathBar/utils/getRadius.js';
4
4
 
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
6
  // eslint-disable-next-line complexity
6
7
  var getPath = function (x, width, height, initHeight, topRadius, bottomRadius, initY) {
7
8
  return "\n M".concat(x + ((height !== 0 && bottomRadius) || 0), " ").concat(initY + initHeight || 0, "\n Q").concat(x, " ").concat(initY + initHeight, " ").concat(x, " ").concat(initY + initHeight - ((height !== 0 && bottomRadius) || 0), "\n L").concat(x, " ").concat(initY + ((height !== 0 && topRadius) || 0), "\n Q").concat(x, " ").concat(initY, " ").concat(x + ((height !== 0 && topRadius) || 0), " ").concat(initY, "\n L").concat(x + width - ((height !== 0 && topRadius) || 0), " ").concat(initY, "\n Q").concat(x + width, " ").concat(initY, " ").concat(x + width, " ").concat(initY + (topRadius || 0), "\n L").concat(x + width, " ").concat(initY + initHeight - ((height !== 0 && bottomRadius) || 0), "\n Q").concat(x + width, " ").concat(initY + initHeight, " ").concat(x + width - ((height !== 0 && bottomRadius) || 0), " ").concat(initY + initHeight, "\n Z\n ");
@@ -1,9 +1,9 @@
1
- /* hash: x0lns */
1
+ /* hash: 1d9e0 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-dark-bg-primary: #0b1f35;
5
- --color-light-text-primary: #0b1f35;
6
- } :root {
4
+ --color-dark-bg-primary: #121212;
5
+ --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 */
6
+ } :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 */
7
7
  } :root {
8
8
  } :root {
9
9
 
@@ -16,15 +16,15 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- } .chart__tickText_1t0io {
19
+ } .chart__tickText_1h71f {
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_1t0io {
24
+ } .chart__circle_1h71f {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
- } .chart__circle_1t0io {
27
+ } .chart__circle_1h71f {
28
28
  opacity: 0.3;
29
29
  fill: var(--color-dark-bg-primary);
30
30
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"tickText":"chart__tickText_1t0io","circle":"chart__circle_1t0io"};
4
+ var styles = {"tickText":"chart__tickText_1h71f","circle":"chart__circle_1h71f"};
5
5
  require('./index.css')
6
6
 
7
7
  var Tick = function (_a) {
@@ -1,12 +1,13 @@
1
- /* hash: fv9xh */
1
+ /* hash: 1ynlm */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
5
- --color-light-border-primary: #dbdee1;
5
+ --color-light-border-primary: #dcdcdd; /* 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 */
6
+ } :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 */
6
7
  } :root {
7
8
  } :root {
8
- } :root {
9
- --shadow-l: 0 0 24px rgba(11, 31, 53, 0.12), 0 12px 24px rgba(11, 31, 53, 0.24);
9
+ --shadow-l: 0 24px 32px rgba(0, 0, 0, 0.08), 0 20px 24px rgba(0, 0, 0, 0.08),
10
+ 0 12px 16px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.04);
10
11
 
11
12
  /* Hard */
12
13
 
@@ -20,7 +21,7 @@
20
21
  --gap-m: 16px;
21
22
  } :root {
22
23
  } :root {
23
- } .chart__tooltip_p68vf {
24
+ } .chart__tooltip_10zq4 {
24
25
  background-color: var(--color-light-bg-primary);
25
26
  border: 1px solid var(--color-light-border-primary);
26
27
  box-shadow: var(--shadow-l);
@@ -28,15 +29,15 @@
28
29
  padding: var(--gap-s) var(--gap-m);
29
30
  pointer-events: none;
30
31
  position: relative;
31
- } .chart__tooltipList_p68vf {
32
+ } .chart__tooltipList_10zq4 {
32
33
  position: relative;
33
34
  z-index: 5;
34
35
  list-style-type: none;
35
36
  padding: 0;
36
37
  margin: 0;
37
- } .chart__tooltipItem_p68vf {
38
+ } .chart__tooltipItem_10zq4 {
38
39
  margin-bottom: 10px;
39
- } .chart__tooltipArrow_p68vf {
40
+ } .chart__tooltipArrow_10zq4 {
40
41
  position: absolute;
41
42
  left: 0;
42
43
  top: 50%;
@@ -45,7 +46,7 @@
45
46
  height: 10px;
46
47
  border: 1px solid var(--color-light-border-primary);
47
48
  background-color: var(--color-light-bg-primary);
48
- } .chart__tooltipArrow_p68vf:before {
49
+ } .chart__tooltipArrow_10zq4:before {
49
50
  content: '';
50
51
  position: absolute;
51
52
  left: -2px;
@@ -55,7 +56,7 @@
55
56
  border-style: solid;
56
57
  border-width: 0 24px 24px 0;
57
58
  border-color: transparent var(--color-light-bg-primary) transparent transparent;
58
- } .chart__tooltipArrowRight_p68vf {
59
+ } .chart__tooltipArrowRight_10zq4 {
59
60
  left: 100%;
60
61
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
61
62
  }
@@ -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_p68vf","tooltipList":"chart__tooltipList_p68vf","tooltipItem":"chart__tooltipItem_p68vf","tooltipArrow":"chart__tooltipArrow_p68vf","tooltipArrowRight":"chart__tooltipArrowRight_p68vf"};
5
+ var styles = {"tooltip":"chart__tooltip_10zq4","tooltipList":"chart__tooltipList_10zq4","tooltipItem":"chart__tooltipItem_10zq4","tooltipArrow":"chart__tooltipArrow_10zq4","tooltipArrowRight":"chart__tooltipArrowRight_10zq4"};
6
6
  require('./index.css')
7
7
 
8
8
  var TooltipContent = function (_a) {
package/esm/index.css CHANGED
@@ -1,8 +1,8 @@
1
- /* hash: 7db35 */
1
+ /* hash: 1b9vt */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-text-primary: #0b1f35;
5
- } :root {
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 */
5
+ } :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 */
6
6
  } :root {
7
7
  } :root {
8
8
 
@@ -15,14 +15,14 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .chart__coreChart_1g9e3 .recharts-line path {
18
+ } .chart__coreChart_1czu3 .recharts-line path {
19
19
  transition: d 0.2s ease-out;
20
- } .chart__coreChart_1g9e3 .recharts-text tspan {
20
+ } .chart__coreChart_1czu3 .recharts-text tspan {
21
21
  fill: var(--color-light-text-primary);
22
22
  font-size: 16px;
23
23
  line-height: 22px;
24
- } .chart__bar_1g9e3 {
24
+ } .chart__bar_1czu3 {
25
25
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
26
- } .chart__unfocused_1g9e3 {
26
+ } .chart__unfocused_1czu3 {
27
27
  opacity: 0.3;
28
28
  }
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var React = require('react');
4
6
  var hooks_usePathBar_utils_getRadius = require('./utils/getRadius.js');
5
7
 
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var getRadius = function (height, radius) {
4
6
  var result = radius && height / 2 < radius ? Math.ceil(height / 2) : radius || 0;
5
7
  return result;
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var tslib = require('tslib');
4
6
  var React = require('react');
5
7
  var hooks_useSettings_utils_setComposedChartsMargin = require('./utils/setComposedChartsMargin.js');
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var setComposedChartsMargin = function (composeChart, legend, brush, xAxis) {
4
6
  var _a, _b, _c, _d;
5
7
  return ({
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var tslib = require('tslib');
4
6
 
5
7
  var setDatas = function (series, labels) {
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var tslib = require('tslib');
4
6
 
5
7
  var setGradientCharts = function (series) {
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var setLegendMargin = function (brush, legend) {
4
6
  var top = 0;
5
7
  if (typeof (brush === null || brush === void 0 ? void 0 : brush.brushMargin) !== 'number' || !(legend === null || legend === void 0 ? void 0 : legend.verticalAlign))
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var sortByIndex = function (series) {
4
6
  return series.sort(function (a, b) {
5
7
  if ((a === null || a === void 0 ? void 0 : a.zIndex) && (b === null || b === void 0 ? void 0 : b.zIndex) && (a === null || a === void 0 ? void 0 : a.zIndex) > (b === null || b === void 0 ? void 0 : b.zIndex)) {
package/icons/Circle.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var React = require('react');
4
6
 
5
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var React = require('react');
4
6
 
5
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var React = require('react');
4
6
 
5
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
package/icons/Point.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var React = require('react');
4
6
 
5
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var React = require('react');
4
6
 
5
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
package/index.css CHANGED
@@ -1,8 +1,8 @@
1
- /* hash: 7db35 */
1
+ /* hash: 1b9vt */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-text-primary: #0b1f35;
5
- } :root {
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 */
5
+ } :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 */
6
6
  } :root {
7
7
  } :root {
8
8
 
@@ -15,14 +15,14 @@
15
15
  } :root {
16
16
  } :root {
17
17
  } :root {
18
- } .chart__coreChart_1g9e3 .recharts-line path {
18
+ } .chart__coreChart_1czu3 .recharts-line path {
19
19
  transition: d 0.2s ease-out;
20
- } .chart__coreChart_1g9e3 .recharts-text tspan {
20
+ } .chart__coreChart_1czu3 .recharts-text tspan {
21
21
  fill: var(--color-light-text-primary);
22
22
  font-size: 16px;
23
23
  line-height: 22px;
24
- } .chart__bar_1g9e3 {
24
+ } .chart__bar_1czu3 {
25
25
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
26
- } .chart__unfocused_1g9e3 {
26
+ } .chart__unfocused_1czu3 {
27
27
  opacity: 0.3;
28
28
  }
package/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var Component = require('./Component.js');
4
6
  require('tslib');
5
7
  require('react');
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { OptionsProps } from "./types/options.types";
2
+ import { OptionsProps } from "./types/index";
3
3
  declare const Chart: (props: OptionsProps) => JSX.Element | null;
4
4
  export { Chart };
@@ -28,9 +28,10 @@ const CustomizedHOC = (Component, options) => {
28
28
  return NewComponent;
29
29
  };
30
30
 
31
- const styles = {"coreChart":"chart__coreChart_1g9e3","bar":"chart__bar_1g9e3","unfocused":"chart__unfocused_1g9e3"};
31
+ const styles = {"coreChart":"chart__coreChart_1czu3","bar":"chart__bar_1czu3","unfocused":"chart__unfocused_1czu3"};
32
32
  require('./index.css')
33
33
 
34
+ /* eslint-disable @typescript-eslint/no-explicit-any */
34
35
  const Chart = (props) => {
35
36
  const [{ state, data, charts, filterCount }, { setCharts, setFilterCount }] = useSettings(props);
36
37
  const [activeDotsState, setActiveDotsState] = useState({
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { usePathBar } from '../hooks/usePathBar/index.js';
3
3
  import '../hooks/usePathBar/utils/getRadius.js';
4
4
 
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
6
  const CustomizedLabel = ({ x, y, value, offset, radius, height, width, formatter, }) => {
6
7
  const [initHeight] = usePathBar({ radius, height });
7
8
  return (React.createElement("text", { x: x + width / 2, y: y + height - (initHeight + offset), width: width, height: initHeight, textAnchor: 'middle' },
@@ -1,19 +1,19 @@
1
- /* hash: 1ckc2 */
2
- .chart__dotUnfocused_p7bjp {
1
+ /* hash: 1maka */
2
+ .chart__dotUnfocused_1hjny {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_p7bjp,
7
- .chart__dotItem_p7bjp,
8
- .chart__dotWrap_p7bjp {
6
+ .chart__dot_1hjny,
7
+ .chart__dotItem_1hjny,
8
+ .chart__dotWrap_1hjny {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_p7bjp {
13
- animation: chart__showDot_p7bjp 0.5s ease;
12
+ .chart__dot_1hjny {
13
+ animation: chart__showDot_1hjny 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_p7bjp {
16
+ @keyframes chart__showDot_1hjny {
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
- const styles = {"dotUnfocused":"chart__dotUnfocused_p7bjp","dot":"chart__dot_p7bjp","dotItem":"chart__dotItem_p7bjp","dotWrap":"chart__dotWrap_p7bjp","showDot":"chart__showDot_p7bjp"};
5
+ const styles = {"dotUnfocused":"chart__dotUnfocused_1hjny","dot":"chart__dot_1hjny","dotItem":"chart__dotItem_1hjny","dotWrap":"chart__dotWrap_1hjny","showDot":"chart__showDot_1hjny"};
6
6
  require('./index.css')
7
7
 
8
8
  const Dot = React.forwardRef(({ cx, cy, index, activeDot, dataKey, dotSettings, value, stroke }, ref) => {
@@ -1,7 +1,7 @@
1
- /* hash: nmflm */
1
+ /* hash: 14k76 */
2
2
  :root {
3
- } /* deprecated */ :root {
4
- } :root {
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
+ } :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 */
5
5
  } :root {
6
6
  } :root {
7
7
 
@@ -15,25 +15,25 @@
15
15
  --gap-2xl: 32px;
16
16
  } :root {
17
17
  } :root {
18
- } .chart__legendContent_cb6tz {
18
+ } .chart__legendContent_llby3 {
19
19
  display: flex;
20
20
  align-items: center;
21
21
  flex-wrap: wrap;
22
- } .chart__legendWrap_cb6tz {
22
+ } .chart__legendWrap_llby3 {
23
23
  width: 100%;
24
24
  margin: 0;
25
25
  padding: 0;
26
- } .chart__legendItem_cb6tz {
26
+ } .chart__legendItem_llby3 {
27
27
  margin-right: var(--gap-2xl);
28
28
  cursor: pointer;
29
29
  display: inline-block;
30
- } .chart__legendItem_cb6tz:last-child {
30
+ } .chart__legendItem_llby3:last-child {
31
31
  margin-right: 0;
32
- } .chart__legendUnactive_cb6tz {
32
+ } .chart__legendUnactive_llby3 {
33
33
  opacity: 0.3;
34
- } .chart__legendIcon_cb6tz {
34
+ } .chart__legendIcon_llby3 {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
- } .chart__legendValue_cb6tz {
37
+ } .chart__legendValue_llby3 {
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
- const styles = {"legendContent":"chart__legendContent_cb6tz","legendWrap":"chart__legendWrap_cb6tz","legendItem":"chart__legendItem_cb6tz","legendUnactive":"chart__legendUnactive_cb6tz","legendIcon":"chart__legendIcon_cb6tz","legendValue":"chart__legendValue_cb6tz"};
9
+ const styles = {"legendContent":"chart__legendContent_llby3","legendWrap":"chart__legendWrap_llby3","legendItem":"chart__legendItem_llby3","legendUnactive":"chart__legendUnactive_llby3","legendIcon":"chart__legendIcon_llby3","legendValue":"chart__legendValue_llby3"};
10
10
  require('./index.css')
11
11
 
12
12
  const icons = {
@@ -2,6 +2,7 @@ import React, { useMemo } from 'react';
2
2
  import { usePathBar } from '../hooks/usePathBar/index.js';
3
3
  import '../hooks/usePathBar/utils/getRadius.js';
4
4
 
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5
6
  // eslint-disable-next-line complexity
6
7
  const getPath = (x, width, height, initHeight, topRadius, bottomRadius, initY) => `
7
8
  M${x + ((height !== 0 && bottomRadius) || 0)} ${initY + initHeight || 0}
@@ -1,9 +1,9 @@
1
- /* hash: x0lns */
1
+ /* hash: 1d9e0 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-dark-bg-primary: #0b1f35;
5
- --color-light-text-primary: #0b1f35;
6
- } :root {
4
+ --color-dark-bg-primary: #121212;
5
+ --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 */
6
+ } :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 */
7
7
  } :root {
8
8
  } :root {
9
9
 
@@ -16,15 +16,15 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- } .chart__tickText_1t0io {
19
+ } .chart__tickText_1h71f {
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_1t0io {
24
+ } .chart__circle_1h71f {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
- } .chart__circle_1t0io {
27
+ } .chart__circle_1h71f {
28
28
  opacity: 0.3;
29
29
  fill: var(--color-dark-bg-primary);
30
30
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"tickText":"chart__tickText_1t0io","circle":"chart__circle_1t0io"};
4
+ const styles = {"tickText":"chart__tickText_1h71f","circle":"chart__circle_1h71f"};
5
5
  require('./index.css')
6
6
 
7
7
  const Tick = ({ y, payload, tickFormatter, xAxis }) => {