@alfalab/core-components-chart 3.2.4 → 3.2.6

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 (44) hide show
  1. package/Component.js +1 -14
  2. package/components/CustomizedLabel.js +0 -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/RectBar.js +0 -1
  8. package/components/Tick/index.css +4 -4
  9. package/components/Tick/index.js +1 -1
  10. package/components/TooltipContent/index.css +7 -7
  11. package/components/TooltipContent/index.js +1 -1
  12. package/cssm/Component.js +0 -17
  13. package/cssm/components/CustomizedLabel.js +0 -1
  14. package/cssm/components/RectBar.js +0 -1
  15. package/cssm/index.js +0 -30
  16. package/esm/Component.js +1 -14
  17. package/esm/components/CustomizedLabel.js +0 -1
  18. package/esm/components/Dot/index.css +8 -8
  19. package/esm/components/Dot/index.js +1 -1
  20. package/esm/components/Legends/index.css +8 -8
  21. package/esm/components/Legends/index.js +1 -1
  22. package/esm/components/RectBar.js +0 -1
  23. package/esm/components/Tick/index.css +4 -4
  24. package/esm/components/Tick/index.js +1 -1
  25. package/esm/components/TooltipContent/index.css +7 -7
  26. package/esm/components/TooltipContent/index.js +1 -1
  27. package/esm/index.css +5 -5
  28. package/esm/index.js +0 -25
  29. package/index.css +5 -5
  30. package/index.js +0 -25
  31. package/modern/Component.js +1 -14
  32. package/modern/components/CustomizedLabel.js +0 -1
  33. package/modern/components/Dot/index.css +8 -8
  34. package/modern/components/Dot/index.js +1 -1
  35. package/modern/components/Legends/index.css +8 -8
  36. package/modern/components/Legends/index.js +1 -1
  37. package/modern/components/RectBar.js +0 -1
  38. package/modern/components/Tick/index.css +4 -4
  39. package/modern/components/Tick/index.js +1 -1
  40. package/modern/components/TooltipContent/index.css +7 -7
  41. package/modern/components/TooltipContent/index.js +1 -1
  42. package/modern/index.css +5 -5
  43. package/modern/index.js +0 -24
  44. package/package.json +2 -2
package/Component.js CHANGED
@@ -14,19 +14,6 @@ var components_RectBar = require('./components/RectBar.js');
14
14
  var components_Tick_index = require('./components/Tick/index.js');
15
15
  var components_TooltipContent_index = require('./components/TooltipContent/index.js');
16
16
  var hooks_useSettings_index = require('./hooks/useSettings/index.js');
17
- require('./hooks/usePathBar/index.js');
18
- require('./hooks/usePathBar/utils/getRadius.js');
19
- require('./icons/Point.js');
20
- require('@alfalab/core-components-typography');
21
- require('./icons/Circle.js');
22
- require('./icons/CircleLine.js');
23
- require('./icons/FilledCircle.js');
24
- require('./icons/StrokeCircle.js');
25
- require('./hooks/useSettings/utils/setComposedChartsMargin.js');
26
- require('./hooks/useSettings/utils/setDatas.js');
27
- require('./hooks/useSettings/utils/setGradientCharts.js');
28
- require('./hooks/useSettings/utils/setLegendMargin.js');
29
- require('./hooks/useSettings/utils/sortByIndex.js');
30
17
 
31
18
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
32
19
 
@@ -38,7 +25,7 @@ var CustomizedHOC = function (Component, options) {
38
25
  return NewComponent;
39
26
  };
40
27
 
41
- var styles = {"coreChart":"chart__coreChart_l6viw","bar":"chart__bar_l6viw","unfocused":"chart__unfocused_l6viw"};
28
+ var styles = {"coreChart":"chart__coreChart_atfin","bar":"chart__bar_atfin","unfocused":"chart__unfocused_atfin"};
42
29
  require('./index.css')
43
30
 
44
31
  var Chart = function (props) {
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var hooks_usePathBar_index = require('../hooks/usePathBar/index.js');
7
- require('../hooks/usePathBar/utils/getRadius.js');
8
7
 
9
8
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
9
 
@@ -1,19 +1,19 @@
1
- /* hash: 1jx5r */
2
- .chart__dotUnfocused_lh6no {
1
+ /* hash: nv0jf */
2
+ .chart__dotUnfocused_9xeqi {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_lh6no,
7
- .chart__dotItem_lh6no,
8
- .chart__dotWrap_lh6no {
6
+ .chart__dot_9xeqi,
7
+ .chart__dotItem_9xeqi,
8
+ .chart__dotWrap_9xeqi {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_lh6no {
13
- animation: chart__showDot_lh6no 0.5s ease;
12
+ .chart__dot_9xeqi {
13
+ animation: chart__showDot_9xeqi 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_lh6no {
16
+ @keyframes chart__showDot_9xeqi {
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_lh6no","dot":"chart__dot_lh6no","dotItem":"chart__dotItem_lh6no","dotWrap":"chart__dotWrap_lh6no","showDot":"chart__showDot_lh6no"};
14
+ var styles = {"dotUnfocused":"chart__dotUnfocused_9xeqi","dot":"chart__dot_9xeqi","dotItem":"chart__dotItem_9xeqi","dotWrap":"chart__dotWrap_9xeqi","showDot":"chart__showDot_9xeqi"};
15
15
  require('./index.css')
16
16
 
17
17
  var Dot = React__default.default.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 1tifz */
1
+ /* hash: m8ieu */
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_blaor {
18
+ } .chart__legendContent_nmve7 {
19
19
  display: flex;
20
20
  align-items: center;
21
21
  flex-wrap: wrap;
22
- } .chart__legendWrap_blaor {
22
+ } .chart__legendWrap_nmve7 {
23
23
  width: 100%;
24
24
  margin: 0;
25
25
  padding: 0;
26
- } .chart__legendItem_blaor {
26
+ } .chart__legendItem_nmve7 {
27
27
  margin-right: var(--gap-2xl);
28
28
  cursor: pointer;
29
29
  display: inline-block;
30
- } .chart__legendItem_blaor:last-child {
30
+ } .chart__legendItem_nmve7:last-child {
31
31
  margin-right: 0;
32
- } .chart__legendUnactive_blaor {
32
+ } .chart__legendUnactive_nmve7 {
33
33
  opacity: 0.3;
34
- } .chart__legendIcon_blaor {
34
+ } .chart__legendIcon_nmve7 {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
- } .chart__legendValue_blaor {
37
+ } .chart__legendValue_nmve7 {
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_blaor","legendWrap":"chart__legendWrap_blaor","legendItem":"chart__legendItem_blaor","legendUnactive":"chart__legendUnactive_blaor","legendIcon":"chart__legendIcon_blaor","legendValue":"chart__legendValue_blaor"};
18
+ var styles = {"legendContent":"chart__legendContent_nmve7","legendWrap":"chart__legendWrap_nmve7","legendItem":"chart__legendItem_nmve7","legendUnactive":"chart__legendUnactive_nmve7","legendIcon":"chart__legendIcon_nmve7","legendValue":"chart__legendValue_nmve7"};
19
19
  require('./index.css')
20
20
 
21
21
  var icons = {
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var hooks_usePathBar_index = require('../hooks/usePathBar/index.js');
7
- require('../hooks/usePathBar/utils/getRadius.js');
8
7
 
9
8
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
9
 
@@ -1,4 +1,4 @@
1
- /* hash: 1wgnp */
1
+ /* hash: 1ts9m */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-dark-bg-primary: #0e0e0e;
@@ -16,15 +16,15 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- } .chart__tickText_1t2dr {
19
+ } .chart__tickText_op4y8 {
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_1t2dr {
24
+ } .chart__circle_op4y8 {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
- } .chart__circle_1t2dr {
27
+ } .chart__circle_op4y8 {
28
28
  opacity: 0.3;
29
29
  fill: var(--color-dark-bg-primary);
30
30
  }
@@ -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_1t2dr","circle":"chart__circle_1t2dr"};
13
+ var styles = {"tickText":"chart__tickText_op4y8","circle":"chart__circle_op4y8"};
14
14
  require('./index.css')
15
15
 
16
16
  var Tick = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1e9sr */
1
+ /* hash: 19qj4 */
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_jayf2 {
24
+ } .chart__tooltip_ophdo {
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_jayf2 {
32
+ } .chart__tooltipList_ophdo {
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_jayf2 {
38
+ } .chart__tooltipItem_ophdo {
39
39
  margin-bottom: 10px;
40
- } .chart__tooltipArrow_jayf2 {
40
+ } .chart__tooltipArrow_ophdo {
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_jayf2:before {
49
+ } .chart__tooltipArrow_ophdo: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_jayf2 {
59
+ } .chart__tooltipArrowRight_ophdo {
60
60
  left: 100%;
61
61
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
62
62
  }
@@ -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_jayf2","tooltipList":"chart__tooltipList_jayf2","tooltipItem":"chart__tooltipItem_jayf2","tooltipArrow":"chart__tooltipArrow_jayf2","tooltipArrowRight":"chart__tooltipArrowRight_jayf2"};
14
+ var styles = {"tooltip":"chart__tooltip_ophdo","tooltipList":"chart__tooltipList_ophdo","tooltipItem":"chart__tooltipItem_ophdo","tooltipArrow":"chart__tooltipArrow_ophdo","tooltipArrowRight":"chart__tooltipArrowRight_ophdo"};
15
15
  require('./index.css')
16
16
 
17
17
  var TooltipContent = function (_a) {
package/cssm/Component.js CHANGED
@@ -15,23 +15,6 @@ var components_Tick_index = require('./components/Tick/index.js');
15
15
  var components_TooltipContent_index = require('./components/TooltipContent/index.js');
16
16
  var hooks_useSettings_index = require('./hooks/useSettings/index.js');
17
17
  var styles = require('./index.module.css');
18
- require('./hooks/usePathBar/index.js');
19
- require('./hooks/usePathBar/utils/getRadius.js');
20
- require('./icons/Point.js');
21
- require('./components/Dot/index.module.css');
22
- require('@alfalab/core-components-typography/cssm');
23
- require('./icons/Circle.js');
24
- require('./icons/CircleLine.js');
25
- require('./icons/FilledCircle.js');
26
- require('./icons/StrokeCircle.js');
27
- require('./components/Legends/index.module.css');
28
- require('./components/Tick/index.module.css');
29
- require('./components/TooltipContent/index.module.css');
30
- require('./hooks/useSettings/utils/setComposedChartsMargin.js');
31
- require('./hooks/useSettings/utils/setDatas.js');
32
- require('./hooks/useSettings/utils/setGradientCharts.js');
33
- require('./hooks/useSettings/utils/setLegendMargin.js');
34
- require('./hooks/useSettings/utils/sortByIndex.js');
35
18
 
36
19
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
37
20
 
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var hooks_usePathBar_index = require('../hooks/usePathBar/index.js');
7
- require('../hooks/usePathBar/utils/getRadius.js');
8
7
 
9
8
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
9
 
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var hooks_usePathBar_index = require('../hooks/usePathBar/index.js');
7
- require('../hooks/usePathBar/utils/getRadius.js');
8
7
 
9
8
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
9
 
package/cssm/index.js CHANGED
@@ -3,36 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var Component = require('./Component.js');
6
- require('tslib');
7
- require('react');
8
- require('classnames');
9
- require('recharts');
10
- require('./components/CustomizedLabel.js');
11
- require('./hooks/usePathBar/index.js');
12
- require('./hooks/usePathBar/utils/getRadius.js');
13
- require('./components/Dot/index.js');
14
- require('./icons/Point.js');
15
- require('./components/Dot/index.module.css');
16
- require('./components/Legends/index.js');
17
- require('@alfalab/core-components-typography/cssm');
18
- require('./icons/Circle.js');
19
- require('./icons/CircleLine.js');
20
- require('./icons/FilledCircle.js');
21
- require('./icons/StrokeCircle.js');
22
- require('./components/Legends/index.module.css');
23
- require('./components/LinearGradient.js');
24
- require('./components/RectBar.js');
25
- require('./components/Tick/index.js');
26
- require('./components/Tick/index.module.css');
27
- require('./components/TooltipContent/index.js');
28
- require('./components/TooltipContent/index.module.css');
29
- require('./hooks/useSettings/index.js');
30
- require('./hooks/useSettings/utils/setComposedChartsMargin.js');
31
- require('./hooks/useSettings/utils/setDatas.js');
32
- require('./hooks/useSettings/utils/setGradientCharts.js');
33
- require('./hooks/useSettings/utils/setLegendMargin.js');
34
- require('./hooks/useSettings/utils/sortByIndex.js');
35
- require('./index.module.css');
36
6
 
37
7
 
38
8
 
package/esm/Component.js CHANGED
@@ -10,26 +10,13 @@ import { RectBar } from './components/RectBar.js';
10
10
  import { Tick } from './components/Tick/index.js';
11
11
  import { TooltipContent } from './components/TooltipContent/index.js';
12
12
  import { useSettings } from './hooks/useSettings/index.js';
13
- import './hooks/usePathBar/index.js';
14
- import './hooks/usePathBar/utils/getRadius.js';
15
- import './icons/Point.js';
16
- import '@alfalab/core-components-typography/esm';
17
- import './icons/Circle.js';
18
- import './icons/CircleLine.js';
19
- import './icons/FilledCircle.js';
20
- import './icons/StrokeCircle.js';
21
- import './hooks/useSettings/utils/setComposedChartsMargin.js';
22
- import './hooks/useSettings/utils/setDatas.js';
23
- import './hooks/useSettings/utils/setGradientCharts.js';
24
- import './hooks/useSettings/utils/setLegendMargin.js';
25
- import './hooks/useSettings/utils/sortByIndex.js';
26
13
 
27
14
  var CustomizedHOC = function (Component, options) {
28
15
  var NewComponent = function (props) { return React.createElement(Component, __assign({}, props, options)); };
29
16
  return NewComponent;
30
17
  };
31
18
 
32
- var styles = {"coreChart":"chart__coreChart_l6viw","bar":"chart__bar_l6viw","unfocused":"chart__unfocused_l6viw"};
19
+ var styles = {"coreChart":"chart__coreChart_atfin","bar":"chart__bar_atfin","unfocused":"chart__unfocused_atfin"};
33
20
  require('./index.css')
34
21
 
35
22
  var Chart = function (props) {
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { usePathBar } from '../hooks/usePathBar/index.js';
3
- import '../hooks/usePathBar/utils/getRadius.js';
4
3
 
5
4
  /* eslint-disable @typescript-eslint/no-explicit-any */
6
5
  var CustomizedLabel = function (_a) {
@@ -1,19 +1,19 @@
1
- /* hash: 1jx5r */
2
- .chart__dotUnfocused_lh6no {
1
+ /* hash: nv0jf */
2
+ .chart__dotUnfocused_9xeqi {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_lh6no,
7
- .chart__dotItem_lh6no,
8
- .chart__dotWrap_lh6no {
6
+ .chart__dot_9xeqi,
7
+ .chart__dotItem_9xeqi,
8
+ .chart__dotWrap_9xeqi {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_lh6no {
13
- animation: chart__showDot_lh6no 0.5s ease;
12
+ .chart__dot_9xeqi {
13
+ animation: chart__showDot_9xeqi 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_lh6no {
16
+ @keyframes chart__showDot_9xeqi {
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_lh6no","dot":"chart__dot_lh6no","dotItem":"chart__dotItem_lh6no","dotWrap":"chart__dotWrap_lh6no","showDot":"chart__showDot_lh6no"};
5
+ var styles = {"dotUnfocused":"chart__dotUnfocused_9xeqi","dot":"chart__dot_9xeqi","dotItem":"chart__dotItem_9xeqi","dotWrap":"chart__dotWrap_9xeqi","showDot":"chart__showDot_9xeqi"};
6
6
  require('./index.css')
7
7
 
8
8
  var Dot = React.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: 1tifz */
1
+ /* hash: m8ieu */
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_blaor {
18
+ } .chart__legendContent_nmve7 {
19
19
  display: flex;
20
20
  align-items: center;
21
21
  flex-wrap: wrap;
22
- } .chart__legendWrap_blaor {
22
+ } .chart__legendWrap_nmve7 {
23
23
  width: 100%;
24
24
  margin: 0;
25
25
  padding: 0;
26
- } .chart__legendItem_blaor {
26
+ } .chart__legendItem_nmve7 {
27
27
  margin-right: var(--gap-2xl);
28
28
  cursor: pointer;
29
29
  display: inline-block;
30
- } .chart__legendItem_blaor:last-child {
30
+ } .chart__legendItem_nmve7:last-child {
31
31
  margin-right: 0;
32
- } .chart__legendUnactive_blaor {
32
+ } .chart__legendUnactive_nmve7 {
33
33
  opacity: 0.3;
34
- } .chart__legendIcon_blaor {
34
+ } .chart__legendIcon_nmve7 {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
- } .chart__legendValue_blaor {
37
+ } .chart__legendValue_nmve7 {
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_blaor","legendWrap":"chart__legendWrap_blaor","legendItem":"chart__legendItem_blaor","legendUnactive":"chart__legendUnactive_blaor","legendIcon":"chart__legendIcon_blaor","legendValue":"chart__legendValue_blaor"};
9
+ var styles = {"legendContent":"chart__legendContent_nmve7","legendWrap":"chart__legendWrap_nmve7","legendItem":"chart__legendItem_nmve7","legendUnactive":"chart__legendUnactive_nmve7","legendIcon":"chart__legendIcon_nmve7","legendValue":"chart__legendValue_nmve7"};
10
10
  require('./index.css')
11
11
 
12
12
  var icons = {
@@ -1,6 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { usePathBar } from '../hooks/usePathBar/index.js';
3
- import '../hooks/usePathBar/utils/getRadius.js';
4
3
 
5
4
  /* eslint-disable @typescript-eslint/no-explicit-any */
6
5
  // eslint-disable-next-line complexity
@@ -1,4 +1,4 @@
1
- /* hash: 1wgnp */
1
+ /* hash: 1ts9m */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-dark-bg-primary: #0e0e0e;
@@ -16,15 +16,15 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- } .chart__tickText_1t2dr {
19
+ } .chart__tickText_op4y8 {
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_1t2dr {
24
+ } .chart__circle_op4y8 {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
- } .chart__circle_1t2dr {
27
+ } .chart__circle_op4y8 {
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_1t2dr","circle":"chart__circle_1t2dr"};
4
+ var styles = {"tickText":"chart__tickText_op4y8","circle":"chart__circle_op4y8"};
5
5
  require('./index.css')
6
6
 
7
7
  var Tick = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1e9sr */
1
+ /* hash: 19qj4 */
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_jayf2 {
24
+ } .chart__tooltip_ophdo {
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_jayf2 {
32
+ } .chart__tooltipList_ophdo {
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_jayf2 {
38
+ } .chart__tooltipItem_ophdo {
39
39
  margin-bottom: 10px;
40
- } .chart__tooltipArrow_jayf2 {
40
+ } .chart__tooltipArrow_ophdo {
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_jayf2:before {
49
+ } .chart__tooltipArrow_ophdo: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_jayf2 {
59
+ } .chart__tooltipArrowRight_ophdo {
60
60
  left: 100%;
61
61
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
62
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_jayf2","tooltipList":"chart__tooltipList_jayf2","tooltipItem":"chart__tooltipItem_jayf2","tooltipArrow":"chart__tooltipArrow_jayf2","tooltipArrowRight":"chart__tooltipArrowRight_jayf2"};
5
+ var styles = {"tooltip":"chart__tooltip_ophdo","tooltipList":"chart__tooltipList_ophdo","tooltipItem":"chart__tooltipItem_ophdo","tooltipArrow":"chart__tooltipArrow_ophdo","tooltipArrowRight":"chart__tooltipArrowRight_ophdo"};
6
6
  require('./index.css')
7
7
 
8
8
  var TooltipContent = function (_a) {
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1dnf7 */
1
+ /* hash: lw8py */
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_l6viw .recharts-line path {
18
+ } .chart__coreChart_atfin .recharts-line path {
19
19
  transition: d 0.2s ease-out;
20
- } .chart__coreChart_l6viw .recharts-text tspan {
20
+ } .chart__coreChart_atfin .recharts-text tspan {
21
21
  fill: var(--color-light-text-primary);
22
22
  font-size: 16px;
23
23
  line-height: 22px;
24
- } .chart__bar_l6viw {
24
+ } .chart__bar_atfin {
25
25
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
26
- } .chart__unfocused_l6viw {
26
+ } .chart__unfocused_atfin {
27
27
  opacity: 0.3;
28
28
  }
package/esm/index.js CHANGED
@@ -1,26 +1 @@
1
1
  export { Chart } from './Component.js';
2
- import 'tslib';
3
- import 'react';
4
- import 'classnames';
5
- import 'recharts';
6
- import './components/CustomizedLabel.js';
7
- import './hooks/usePathBar/index.js';
8
- import './hooks/usePathBar/utils/getRadius.js';
9
- import './components/Dot/index.js';
10
- import './icons/Point.js';
11
- import './components/Legends/index.js';
12
- import '@alfalab/core-components-typography/esm';
13
- import './icons/Circle.js';
14
- import './icons/CircleLine.js';
15
- import './icons/FilledCircle.js';
16
- import './icons/StrokeCircle.js';
17
- import './components/LinearGradient.js';
18
- import './components/RectBar.js';
19
- import './components/Tick/index.js';
20
- import './components/TooltipContent/index.js';
21
- import './hooks/useSettings/index.js';
22
- import './hooks/useSettings/utils/setComposedChartsMargin.js';
23
- import './hooks/useSettings/utils/setDatas.js';
24
- import './hooks/useSettings/utils/setGradientCharts.js';
25
- import './hooks/useSettings/utils/setLegendMargin.js';
26
- import './hooks/useSettings/utils/sortByIndex.js';
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1dnf7 */
1
+ /* hash: lw8py */
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_l6viw .recharts-line path {
18
+ } .chart__coreChart_atfin .recharts-line path {
19
19
  transition: d 0.2s ease-out;
20
- } .chart__coreChart_l6viw .recharts-text tspan {
20
+ } .chart__coreChart_atfin .recharts-text tspan {
21
21
  fill: var(--color-light-text-primary);
22
22
  font-size: 16px;
23
23
  line-height: 22px;
24
- } .chart__bar_l6viw {
24
+ } .chart__bar_atfin {
25
25
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
26
- } .chart__unfocused_l6viw {
26
+ } .chart__unfocused_atfin {
27
27
  opacity: 0.3;
28
28
  }
package/index.js CHANGED
@@ -3,31 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var Component = require('./Component.js');
6
- require('tslib');
7
- require('react');
8
- require('classnames');
9
- require('recharts');
10
- require('./components/CustomizedLabel.js');
11
- require('./hooks/usePathBar/index.js');
12
- require('./hooks/usePathBar/utils/getRadius.js');
13
- require('./components/Dot/index.js');
14
- require('./icons/Point.js');
15
- require('./components/Legends/index.js');
16
- require('@alfalab/core-components-typography');
17
- require('./icons/Circle.js');
18
- require('./icons/CircleLine.js');
19
- require('./icons/FilledCircle.js');
20
- require('./icons/StrokeCircle.js');
21
- require('./components/LinearGradient.js');
22
- require('./components/RectBar.js');
23
- require('./components/Tick/index.js');
24
- require('./components/TooltipContent/index.js');
25
- require('./hooks/useSettings/index.js');
26
- require('./hooks/useSettings/utils/setComposedChartsMargin.js');
27
- require('./hooks/useSettings/utils/setDatas.js');
28
- require('./hooks/useSettings/utils/setGradientCharts.js');
29
- require('./hooks/useSettings/utils/setLegendMargin.js');
30
- require('./hooks/useSettings/utils/sortByIndex.js');
31
6
 
32
7
 
33
8
 
@@ -9,26 +9,13 @@ import { RectBar } from './components/RectBar.js';
9
9
  import { Tick } from './components/Tick/index.js';
10
10
  import { TooltipContent } from './components/TooltipContent/index.js';
11
11
  import { useSettings } from './hooks/useSettings/index.js';
12
- import './hooks/usePathBar/index.js';
13
- import './hooks/usePathBar/utils/getRadius.js';
14
- import './icons/Point.js';
15
- import '@alfalab/core-components-typography/modern';
16
- import './icons/Circle.js';
17
- import './icons/CircleLine.js';
18
- import './icons/FilledCircle.js';
19
- import './icons/StrokeCircle.js';
20
- import './hooks/useSettings/utils/setComposedChartsMargin.js';
21
- import './hooks/useSettings/utils/setDatas.js';
22
- import './hooks/useSettings/utils/setGradientCharts.js';
23
- import './hooks/useSettings/utils/setLegendMargin.js';
24
- import './hooks/useSettings/utils/sortByIndex.js';
25
12
 
26
13
  const CustomizedHOC = (Component, options) => {
27
14
  const NewComponent = (props) => React.createElement(Component, { ...props, ...options });
28
15
  return NewComponent;
29
16
  };
30
17
 
31
- const styles = {"coreChart":"chart__coreChart_l6viw","bar":"chart__bar_l6viw","unfocused":"chart__unfocused_l6viw"};
18
+ const styles = {"coreChart":"chart__coreChart_atfin","bar":"chart__bar_atfin","unfocused":"chart__unfocused_atfin"};
32
19
  require('./index.css')
33
20
 
34
21
  /* eslint-disable @typescript-eslint/no-explicit-any,prefer-template */
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { usePathBar } from '../hooks/usePathBar/index.js';
3
- import '../hooks/usePathBar/utils/getRadius.js';
4
3
 
5
4
  /* eslint-disable @typescript-eslint/no-explicit-any */
6
5
  const CustomizedLabel = ({ x, y, value, offset, radius, height, width, formatter, }) => {
@@ -1,19 +1,19 @@
1
- /* hash: 1jx5r */
2
- .chart__dotUnfocused_lh6no {
1
+ /* hash: nv0jf */
2
+ .chart__dotUnfocused_9xeqi {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_lh6no,
7
- .chart__dotItem_lh6no,
8
- .chart__dotWrap_lh6no {
6
+ .chart__dot_9xeqi,
7
+ .chart__dotItem_9xeqi,
8
+ .chart__dotWrap_9xeqi {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_lh6no {
13
- animation: chart__showDot_lh6no 0.5s ease;
12
+ .chart__dot_9xeqi {
13
+ animation: chart__showDot_9xeqi 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_lh6no {
16
+ @keyframes chart__showDot_9xeqi {
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_lh6no","dot":"chart__dot_lh6no","dotItem":"chart__dotItem_lh6no","dotWrap":"chart__dotWrap_lh6no","showDot":"chart__showDot_lh6no"};
5
+ const styles = {"dotUnfocused":"chart__dotUnfocused_9xeqi","dot":"chart__dot_9xeqi","dotItem":"chart__dotItem_9xeqi","dotWrap":"chart__dotWrap_9xeqi","showDot":"chart__showDot_9xeqi"};
6
6
  require('./index.css')
7
7
 
8
8
  const Dot = React.forwardRef(({ cx, cy, index, activeDot, dataKey, dotSettings, value, stroke }, ref) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1tifz */
1
+ /* hash: m8ieu */
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_blaor {
18
+ } .chart__legendContent_nmve7 {
19
19
  display: flex;
20
20
  align-items: center;
21
21
  flex-wrap: wrap;
22
- } .chart__legendWrap_blaor {
22
+ } .chart__legendWrap_nmve7 {
23
23
  width: 100%;
24
24
  margin: 0;
25
25
  padding: 0;
26
- } .chart__legendItem_blaor {
26
+ } .chart__legendItem_nmve7 {
27
27
  margin-right: var(--gap-2xl);
28
28
  cursor: pointer;
29
29
  display: inline-block;
30
- } .chart__legendItem_blaor:last-child {
30
+ } .chart__legendItem_nmve7:last-child {
31
31
  margin-right: 0;
32
- } .chart__legendUnactive_blaor {
32
+ } .chart__legendUnactive_nmve7 {
33
33
  opacity: 0.3;
34
- } .chart__legendIcon_blaor {
34
+ } .chart__legendIcon_nmve7 {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
- } .chart__legendValue_blaor {
37
+ } .chart__legendValue_nmve7 {
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_blaor","legendWrap":"chart__legendWrap_blaor","legendItem":"chart__legendItem_blaor","legendUnactive":"chart__legendUnactive_blaor","legendIcon":"chart__legendIcon_blaor","legendValue":"chart__legendValue_blaor"};
9
+ const styles = {"legendContent":"chart__legendContent_nmve7","legendWrap":"chart__legendWrap_nmve7","legendItem":"chart__legendItem_nmve7","legendUnactive":"chart__legendUnactive_nmve7","legendIcon":"chart__legendIcon_nmve7","legendValue":"chart__legendValue_nmve7"};
10
10
  require('./index.css')
11
11
 
12
12
  const icons = {
@@ -1,6 +1,5 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import { usePathBar } from '../hooks/usePathBar/index.js';
3
- import '../hooks/usePathBar/utils/getRadius.js';
4
3
 
5
4
  /* eslint-disable @typescript-eslint/no-explicit-any */
6
5
  // eslint-disable-next-line complexity
@@ -1,4 +1,4 @@
1
- /* hash: 1wgnp */
1
+ /* hash: 1ts9m */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-dark-bg-primary: #0e0e0e;
@@ -16,15 +16,15 @@
16
16
  } :root {
17
17
  } :root {
18
18
  } :root {
19
- } .chart__tickText_1t2dr {
19
+ } .chart__tickText_op4y8 {
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_1t2dr {
24
+ } .chart__circle_op4y8 {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
- } .chart__circle_1t2dr {
27
+ } .chart__circle_op4y8 {
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_1t2dr","circle":"chart__circle_1t2dr"};
4
+ const styles = {"tickText":"chart__tickText_op4y8","circle":"chart__circle_op4y8"};
5
5
  require('./index.css')
6
6
 
7
7
  const Tick = ({ y, payload, tickFormatter, xAxis }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1e9sr */
1
+ /* hash: 19qj4 */
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_jayf2 {
24
+ } .chart__tooltip_ophdo {
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_jayf2 {
32
+ } .chart__tooltipList_ophdo {
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_jayf2 {
38
+ } .chart__tooltipItem_ophdo {
39
39
  margin-bottom: 10px;
40
- } .chart__tooltipArrow_jayf2 {
40
+ } .chart__tooltipArrow_ophdo {
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_jayf2:before {
49
+ } .chart__tooltipArrow_ophdo: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_jayf2 {
59
+ } .chart__tooltipArrowRight_ophdo {
60
60
  left: 100%;
61
61
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
62
62
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { Typography } from '@alfalab/core-components-typography/modern';
4
4
 
5
- const styles = {"tooltip":"chart__tooltip_jayf2","tooltipList":"chart__tooltipList_jayf2","tooltipItem":"chart__tooltipItem_jayf2","tooltipArrow":"chart__tooltipArrow_jayf2","tooltipArrowRight":"chart__tooltipArrowRight_jayf2"};
5
+ const styles = {"tooltip":"chart__tooltip_ophdo","tooltipList":"chart__tooltipList_ophdo","tooltipItem":"chart__tooltipItem_ophdo","tooltipArrow":"chart__tooltipArrow_ophdo","tooltipArrowRight":"chart__tooltipArrowRight_ophdo"};
6
6
  require('./index.css')
7
7
 
8
8
  const TooltipContent = ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }) => {
package/modern/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1dnf7 */
1
+ /* hash: lw8py */
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_l6viw .recharts-line path {
18
+ } .chart__coreChart_atfin .recharts-line path {
19
19
  transition: d 0.2s ease-out;
20
- } .chart__coreChart_l6viw .recharts-text tspan {
20
+ } .chart__coreChart_atfin .recharts-text tspan {
21
21
  fill: var(--color-light-text-primary);
22
22
  font-size: 16px;
23
23
  line-height: 22px;
24
- } .chart__bar_l6viw {
24
+ } .chart__bar_atfin {
25
25
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
26
- } .chart__unfocused_l6viw {
26
+ } .chart__unfocused_atfin {
27
27
  opacity: 0.3;
28
28
  }
package/modern/index.js CHANGED
@@ -1,25 +1 @@
1
1
  export { Chart } from './Component.js';
2
- import 'react';
3
- import 'classnames';
4
- import 'recharts';
5
- import './components/CustomizedLabel.js';
6
- import './hooks/usePathBar/index.js';
7
- import './hooks/usePathBar/utils/getRadius.js';
8
- import './components/Dot/index.js';
9
- import './icons/Point.js';
10
- import './components/Legends/index.js';
11
- import '@alfalab/core-components-typography/modern';
12
- import './icons/Circle.js';
13
- import './icons/CircleLine.js';
14
- import './icons/FilledCircle.js';
15
- import './icons/StrokeCircle.js';
16
- import './components/LinearGradient.js';
17
- import './components/RectBar.js';
18
- import './components/Tick/index.js';
19
- import './components/TooltipContent/index.js';
20
- import './hooks/useSettings/index.js';
21
- import './hooks/useSettings/utils/setComposedChartsMargin.js';
22
- import './hooks/useSettings/utils/setDatas.js';
23
- import './hooks/useSettings/utils/setGradientCharts.js';
24
- import './hooks/useSettings/utils/setLegendMargin.js';
25
- import './hooks/useSettings/utils/sortByIndex.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-chart",
3
- "version": "3.2.4",
3
+ "version": "3.2.6",
4
4
  "description": "Chart component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  "directory": "dist"
12
12
  },
13
13
  "dependencies": {
14
- "@alfalab/core-components-typography": "^4.3.0",
14
+ "@alfalab/core-components-typography": "^4.5.0",
15
15
  "classnames": "^2.3.1",
16
16
  "recharts": "^2.1.2",
17
17
  "tslib": "^2.4.0"