@alfalab/core-components-chart 3.1.6 → 3.1.7

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 (43) hide show
  1. package/Component.js +2 -2
  2. package/components/Dot/index.css +8 -8
  3. package/components/Dot/index.js +1 -1
  4. package/components/Legends/index.css +8 -8
  5. package/components/Legends/index.js +1 -1
  6. package/components/Tick/index.css +4 -4
  7. package/components/Tick/index.js +1 -1
  8. package/components/TooltipContent/index.css +7 -7
  9. package/components/TooltipContent/index.js +1 -1
  10. package/esm/Component.js +2 -2
  11. package/esm/components/Dot/index.css +8 -8
  12. package/esm/components/Dot/index.js +1 -1
  13. package/esm/components/Legends/index.css +8 -8
  14. package/esm/components/Legends/index.js +1 -1
  15. package/esm/components/Tick/index.css +4 -4
  16. package/esm/components/Tick/index.js +1 -1
  17. package/esm/components/TooltipContent/index.css +7 -7
  18. package/esm/components/TooltipContent/index.js +1 -1
  19. package/esm/hooks/useSettings/index.js +1 -1
  20. package/esm/hooks/useSettings/utils/setDatas.js +1 -1
  21. package/esm/hooks/useSettings/utils/setGradientCharts.js +1 -1
  22. package/esm/index.css +5 -5
  23. package/esm/index.js +1 -1
  24. package/esm/{tslib.es6-44e6acd2.d.ts → tslib.es6-69453a3a.d.ts} +0 -0
  25. package/esm/{tslib.es6-44e6acd2.js → tslib.es6-69453a3a.js} +0 -0
  26. package/hooks/useSettings/index.js +1 -1
  27. package/hooks/useSettings/utils/setDatas.js +1 -1
  28. package/hooks/useSettings/utils/setGradientCharts.js +1 -1
  29. package/index.css +5 -5
  30. package/index.js +1 -1
  31. package/modern/Component.js +1 -1
  32. package/modern/components/Dot/index.css +8 -8
  33. package/modern/components/Dot/index.js +1 -1
  34. package/modern/components/Legends/index.css +8 -8
  35. package/modern/components/Legends/index.js +1 -1
  36. package/modern/components/Tick/index.css +4 -4
  37. package/modern/components/Tick/index.js +1 -1
  38. package/modern/components/TooltipContent/index.css +7 -7
  39. package/modern/components/TooltipContent/index.js +1 -1
  40. package/modern/index.css +5 -5
  41. package/package.json +2 -2
  42. /package/{tslib.es6-0a16d1e2.d.ts → tslib.es6-692855d9.d.ts} +0 -0
  43. /package/{tslib.es6-0a16d1e2.js → tslib.es6-692855d9.js} +0 -0
package/Component.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-0a16d1e2.js');
3
+ var tslib_es6 = require('./tslib.es6-692855d9.js');
4
4
  var React = require('react');
5
5
  var cn = require('classnames');
6
6
  var recharts = require('recharts');
@@ -36,7 +36,7 @@ var CustomizedHOC = function (Component, options) {
36
36
  return NewComponent;
37
37
  };
38
38
 
39
- var styles = {"coreChart":"chart__coreChart_12np2","bar":"chart__bar_12np2","unfocused":"chart__unfocused_12np2"};
39
+ var styles = {"coreChart":"chart__coreChart_sapp3","bar":"chart__bar_sapp3","unfocused":"chart__unfocused_sapp3"};
40
40
  require('./index.css')
41
41
 
42
42
  var Chart = function (props) {
@@ -1,19 +1,19 @@
1
- /* hash: 6blwv */
2
- .chart__dotUnfocused_1ysgs {
1
+ /* hash: 16i6x */
2
+ .chart__dotUnfocused_1k2nr {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_1ysgs,
7
- .chart__dotItem_1ysgs,
8
- .chart__dotWrap_1ysgs {
6
+ .chart__dot_1k2nr,
7
+ .chart__dotItem_1k2nr,
8
+ .chart__dotWrap_1k2nr {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_1ysgs {
13
- animation: chart__showDot_1ysgs 0.5s ease;
12
+ .chart__dot_1k2nr {
13
+ animation: chart__showDot_1k2nr 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_1ysgs {
16
+ @keyframes chart__showDot_1k2nr {
17
17
  from {
18
18
  opacity: 0;
19
19
  }
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
9
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
11
11
 
12
- var styles = {"dotUnfocused":"chart__dotUnfocused_1ysgs","dot":"chart__dot_1ysgs","dotItem":"chart__dotItem_1ysgs","dotWrap":"chart__dotWrap_1ysgs","showDot":"chart__showDot_1ysgs"};
12
+ var styles = {"dotUnfocused":"chart__dotUnfocused_1k2nr","dot":"chart__dot_1k2nr","dotItem":"chart__dotItem_1k2nr","dotWrap":"chart__dotWrap_1k2nr","showDot":"chart__showDot_1k2nr"};
13
13
  require('./index.css')
14
14
 
15
15
  var Dot = React__default.default.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: li1ih */
1
+ /* hash: 4rv6w */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,31 +10,31 @@
10
10
  :root {
11
11
  --gap-2xl: 32px;
12
12
  }
13
- .chart__legendContent_vxgym {
13
+ .chart__legendContent_hzv13 {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  flex-wrap: wrap;
17
17
  }
18
- .chart__legendWrap_vxgym {
18
+ .chart__legendWrap_hzv13 {
19
19
  width: 100%;
20
20
  margin: 0;
21
21
  padding: 0;
22
22
  }
23
- .chart__legendItem_vxgym {
23
+ .chart__legendItem_hzv13 {
24
24
  margin-right: var(--gap-2xl);
25
25
  cursor: pointer;
26
26
  display: inline-block;
27
27
  }
28
- .chart__legendItem_vxgym:last-child {
28
+ .chart__legendItem_hzv13:last-child {
29
29
  margin-right: 0;
30
30
  }
31
- .chart__legendUnactive_vxgym {
31
+ .chart__legendUnactive_hzv13 {
32
32
  opacity: 0.3;
33
33
  }
34
- .chart__legendIcon_vxgym {
34
+ .chart__legendIcon_hzv13 {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
37
  }
38
- .chart__legendValue_vxgym {
38
+ .chart__legendValue_hzv13 {
39
39
  text-transform: capitalize;
40
40
  }
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"legendContent":"chart__legendContent_vxgym","legendWrap":"chart__legendWrap_vxgym","legendItem":"chart__legendItem_vxgym","legendUnactive":"chart__legendUnactive_vxgym","legendIcon":"chart__legendIcon_vxgym","legendValue":"chart__legendValue_vxgym"};
16
+ var styles = {"legendContent":"chart__legendContent_hzv13","legendWrap":"chart__legendWrap_hzv13","legendItem":"chart__legendItem_hzv13","legendUnactive":"chart__legendUnactive_hzv13","legendIcon":"chart__legendIcon_hzv13","legendValue":"chart__legendValue_hzv13"};
17
17
  require('./index.css')
18
18
 
19
19
  var icons = {
@@ -1,4 +1,4 @@
1
- /* hash: iolvt */
1
+ /* hash: 4c7i4 */
2
2
  :root {
3
3
  --color-dark-bg-primary: #0b1f35;
4
4
  --color-light-text-primary: #0b1f35;
@@ -11,17 +11,17 @@
11
11
 
12
12
  /* Hard up */
13
13
  }
14
- .chart__tickText_gmual {
14
+ .chart__tickText_1p75j {
15
15
  fill: var(--color-light-text-primary);
16
16
  font-size: 16px;
17
17
  line-height: 24px;
18
18
  font-weight: 400;
19
19
  }
20
- .chart__circle_gmual {
20
+ .chart__circle_1p75j {
21
21
  opacity: 0.3;
22
22
  fill: var(--color-dark-bg-primary);
23
23
  }
24
- .chart__circle_gmual {
24
+ .chart__circle_1p75j {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
27
  }
@@ -8,7 +8,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
8
8
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
9
9
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
10
10
 
11
- var styles = {"tickText":"chart__tickText_gmual","circle":"chart__circle_gmual"};
11
+ var styles = {"tickText":"chart__tickText_1p75j","circle":"chart__circle_1p75j"};
12
12
  require('./index.css')
13
13
 
14
14
  var Tick = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: ion8l */
1
+ /* hash: yyy00 */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -19,7 +19,7 @@
19
19
  :root {
20
20
  --border-radius-m: 8px;
21
21
  }
22
- .chart__tooltip_59a0x {
22
+ .chart__tooltip_1tjmf {
23
23
  background-color: var(--color-light-bg-primary);
24
24
  border: 1px solid var(--color-light-border-primary);
25
25
  box-shadow: var(--shadow-l);
@@ -28,17 +28,17 @@
28
28
  pointer-events: none;
29
29
  position: relative;
30
30
  }
31
- .chart__tooltipList_59a0x {
31
+ .chart__tooltipList_1tjmf {
32
32
  position: relative;
33
33
  z-index: 5;
34
34
  list-style-type: none;
35
35
  padding: 0;
36
36
  margin: 0;
37
37
  }
38
- .chart__tooltipItem_59a0x {
38
+ .chart__tooltipItem_1tjmf {
39
39
  margin-bottom: 10px;
40
40
  }
41
- .chart__tooltipArrow_59a0x {
41
+ .chart__tooltipArrow_1tjmf {
42
42
  position: absolute;
43
43
  left: 0;
44
44
  top: 50%;
@@ -48,7 +48,7 @@
48
48
  border: 1px solid var(--color-light-border-primary);
49
49
  background-color: var(--color-light-bg-primary);
50
50
  }
51
- .chart__tooltipArrow_59a0x:before {
51
+ .chart__tooltipArrow_1tjmf:before {
52
52
  content: '';
53
53
  position: absolute;
54
54
  left: -2px;
@@ -59,7 +59,7 @@
59
59
  border-width: 0 24px 24px 0;
60
60
  border-color: transparent var(--color-light-bg-primary) transparent transparent;
61
61
  }
62
- .chart__tooltipArrowRight_59a0x {
62
+ .chart__tooltipArrowRight_1tjmf {
63
63
  left: 100%;
64
64
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
65
65
  }
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
9
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
11
11
 
12
- var styles = {"tooltip":"chart__tooltip_59a0x","tooltipList":"chart__tooltipList_59a0x","tooltipItem":"chart__tooltipItem_59a0x","tooltipArrow":"chart__tooltipArrow_59a0x","tooltipArrowRight":"chart__tooltipArrowRight_59a0x"};
12
+ var styles = {"tooltip":"chart__tooltip_1tjmf","tooltipList":"chart__tooltipList_1tjmf","tooltipItem":"chart__tooltipItem_1tjmf","tooltipArrow":"chart__tooltipArrow_1tjmf","tooltipArrowRight":"chart__tooltipArrowRight_1tjmf"};
13
13
  require('./index.css')
14
14
 
15
15
  var TooltipContent = function (_a) {
package/esm/Component.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from './tslib.es6-44e6acd2.js';
1
+ import { _ as __assign } from './tslib.es6-69453a3a.js';
2
2
  import React, { useState, useRef, useMemo, useCallback, useEffect } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, LabelList, Cell, ResponsiveContainer, ComposedChart } from 'recharts';
@@ -29,7 +29,7 @@ var CustomizedHOC = function (Component, options) {
29
29
  return NewComponent;
30
30
  };
31
31
 
32
- var styles = {"coreChart":"chart__coreChart_12np2","bar":"chart__bar_12np2","unfocused":"chart__unfocused_12np2"};
32
+ var styles = {"coreChart":"chart__coreChart_sapp3","bar":"chart__bar_sapp3","unfocused":"chart__unfocused_sapp3"};
33
33
  require('./index.css')
34
34
 
35
35
  var Chart = function (props) {
@@ -1,19 +1,19 @@
1
- /* hash: 6blwv */
2
- .chart__dotUnfocused_1ysgs {
1
+ /* hash: 16i6x */
2
+ .chart__dotUnfocused_1k2nr {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_1ysgs,
7
- .chart__dotItem_1ysgs,
8
- .chart__dotWrap_1ysgs {
6
+ .chart__dot_1k2nr,
7
+ .chart__dotItem_1k2nr,
8
+ .chart__dotWrap_1k2nr {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_1ysgs {
13
- animation: chart__showDot_1ysgs 0.5s ease;
12
+ .chart__dot_1k2nr {
13
+ animation: chart__showDot_1k2nr 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_1ysgs {
16
+ @keyframes chart__showDot_1k2nr {
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_1ysgs","dot":"chart__dot_1ysgs","dotItem":"chart__dotItem_1ysgs","dotWrap":"chart__dotWrap_1ysgs","showDot":"chart__showDot_1ysgs"};
5
+ var styles = {"dotUnfocused":"chart__dotUnfocused_1k2nr","dot":"chart__dot_1k2nr","dotItem":"chart__dotItem_1k2nr","dotWrap":"chart__dotWrap_1k2nr","showDot":"chart__showDot_1k2nr"};
6
6
  require('./index.css')
7
7
 
8
8
  var Dot = React.forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: li1ih */
1
+ /* hash: 4rv6w */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,31 +10,31 @@
10
10
  :root {
11
11
  --gap-2xl: 32px;
12
12
  }
13
- .chart__legendContent_vxgym {
13
+ .chart__legendContent_hzv13 {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  flex-wrap: wrap;
17
17
  }
18
- .chart__legendWrap_vxgym {
18
+ .chart__legendWrap_hzv13 {
19
19
  width: 100%;
20
20
  margin: 0;
21
21
  padding: 0;
22
22
  }
23
- .chart__legendItem_vxgym {
23
+ .chart__legendItem_hzv13 {
24
24
  margin-right: var(--gap-2xl);
25
25
  cursor: pointer;
26
26
  display: inline-block;
27
27
  }
28
- .chart__legendItem_vxgym:last-child {
28
+ .chart__legendItem_hzv13:last-child {
29
29
  margin-right: 0;
30
30
  }
31
- .chart__legendUnactive_vxgym {
31
+ .chart__legendUnactive_hzv13 {
32
32
  opacity: 0.3;
33
33
  }
34
- .chart__legendIcon_vxgym {
34
+ .chart__legendIcon_hzv13 {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
37
  }
38
- .chart__legendValue_vxgym {
38
+ .chart__legendValue_hzv13 {
39
39
  text-transform: capitalize;
40
40
  }
@@ -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_vxgym","legendWrap":"chart__legendWrap_vxgym","legendItem":"chart__legendItem_vxgym","legendUnactive":"chart__legendUnactive_vxgym","legendIcon":"chart__legendIcon_vxgym","legendValue":"chart__legendValue_vxgym"};
9
+ var styles = {"legendContent":"chart__legendContent_hzv13","legendWrap":"chart__legendWrap_hzv13","legendItem":"chart__legendItem_hzv13","legendUnactive":"chart__legendUnactive_hzv13","legendIcon":"chart__legendIcon_hzv13","legendValue":"chart__legendValue_hzv13"};
10
10
  require('./index.css')
11
11
 
12
12
  var icons = {
@@ -1,4 +1,4 @@
1
- /* hash: iolvt */
1
+ /* hash: 4c7i4 */
2
2
  :root {
3
3
  --color-dark-bg-primary: #0b1f35;
4
4
  --color-light-text-primary: #0b1f35;
@@ -11,17 +11,17 @@
11
11
 
12
12
  /* Hard up */
13
13
  }
14
- .chart__tickText_gmual {
14
+ .chart__tickText_1p75j {
15
15
  fill: var(--color-light-text-primary);
16
16
  font-size: 16px;
17
17
  line-height: 24px;
18
18
  font-weight: 400;
19
19
  }
20
- .chart__circle_gmual {
20
+ .chart__circle_1p75j {
21
21
  opacity: 0.3;
22
22
  fill: var(--color-dark-bg-primary);
23
23
  }
24
- .chart__circle_gmual {
24
+ .chart__circle_1p75j {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
27
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"tickText":"chart__tickText_gmual","circle":"chart__circle_gmual"};
4
+ var styles = {"tickText":"chart__tickText_1p75j","circle":"chart__circle_1p75j"};
5
5
  require('./index.css')
6
6
 
7
7
  var Tick = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: ion8l */
1
+ /* hash: yyy00 */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -19,7 +19,7 @@
19
19
  :root {
20
20
  --border-radius-m: 8px;
21
21
  }
22
- .chart__tooltip_59a0x {
22
+ .chart__tooltip_1tjmf {
23
23
  background-color: var(--color-light-bg-primary);
24
24
  border: 1px solid var(--color-light-border-primary);
25
25
  box-shadow: var(--shadow-l);
@@ -28,17 +28,17 @@
28
28
  pointer-events: none;
29
29
  position: relative;
30
30
  }
31
- .chart__tooltipList_59a0x {
31
+ .chart__tooltipList_1tjmf {
32
32
  position: relative;
33
33
  z-index: 5;
34
34
  list-style-type: none;
35
35
  padding: 0;
36
36
  margin: 0;
37
37
  }
38
- .chart__tooltipItem_59a0x {
38
+ .chart__tooltipItem_1tjmf {
39
39
  margin-bottom: 10px;
40
40
  }
41
- .chart__tooltipArrow_59a0x {
41
+ .chart__tooltipArrow_1tjmf {
42
42
  position: absolute;
43
43
  left: 0;
44
44
  top: 50%;
@@ -48,7 +48,7 @@
48
48
  border: 1px solid var(--color-light-border-primary);
49
49
  background-color: var(--color-light-bg-primary);
50
50
  }
51
- .chart__tooltipArrow_59a0x:before {
51
+ .chart__tooltipArrow_1tjmf:before {
52
52
  content: '';
53
53
  position: absolute;
54
54
  left: -2px;
@@ -59,7 +59,7 @@
59
59
  border-width: 0 24px 24px 0;
60
60
  border-color: transparent var(--color-light-bg-primary) transparent transparent;
61
61
  }
62
- .chart__tooltipArrowRight_59a0x {
62
+ .chart__tooltipArrowRight_1tjmf {
63
63
  left: 100%;
64
64
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
65
65
  }
@@ -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_59a0x","tooltipList":"chart__tooltipList_59a0x","tooltipItem":"chart__tooltipItem_59a0x","tooltipArrow":"chart__tooltipArrow_59a0x","tooltipArrowRight":"chart__tooltipArrowRight_59a0x"};
5
+ var styles = {"tooltip":"chart__tooltip_1tjmf","tooltipList":"chart__tooltipList_1tjmf","tooltipItem":"chart__tooltipItem_1tjmf","tooltipArrow":"chart__tooltipArrow_1tjmf","tooltipArrowRight":"chart__tooltipArrowRight_1tjmf"};
6
6
  require('./index.css')
7
7
 
8
8
  var TooltipContent = function (_a) {
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from '../../tslib.es6-44e6acd2.js';
1
+ import { _ as __assign } from '../../tslib.es6-69453a3a.js';
2
2
  import { useState, useEffect } from 'react';
3
3
  import { setComposedChartsMargin } from './utils/setComposedChartsMargin.js';
4
4
  import { setDatas } from './utils/setDatas.js';
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from '../../../tslib.es6-44e6acd2.js';
1
+ import { _ as __assign } from '../../../tslib.es6-69453a3a.js';
2
2
 
3
3
  var setDatas = function (series, labels) {
4
4
  var initData = [];
@@ -1,4 +1,4 @@
1
- import { _ as __assign } from '../../../tslib.es6-44e6acd2.js';
1
+ import { _ as __assign } from '../../../tslib.es6-69453a3a.js';
2
2
 
3
3
  var setGradientCharts = function (series) {
4
4
  var filterSeries = series.filter(function (item) { return item.chart !== 'gradient'; });
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1uc1h */
1
+ /* hash: 392bu */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  }
@@ -10,17 +10,17 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .chart__coreChart_12np2 .recharts-line path {
13
+ .chart__coreChart_sapp3 .recharts-line path {
14
14
  transition: d 0.2s ease-out;
15
15
  }
16
- .chart__coreChart_12np2 .recharts-text tspan {
16
+ .chart__coreChart_sapp3 .recharts-text tspan {
17
17
  fill: var(--color-light-text-primary);
18
18
  font-size: 16px;
19
19
  line-height: 22px;
20
20
  }
21
- .chart__bar_12np2 {
21
+ .chart__bar_sapp3 {
22
22
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
23
23
  }
24
- .chart__unfocused_12np2 {
24
+ .chart__unfocused_sapp3 {
25
25
  opacity: 0.3;
26
26
  }
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { Chart } from './Component.js';
2
- import './tslib.es6-44e6acd2.js';
2
+ import './tslib.es6-69453a3a.js';
3
3
  import 'react';
4
4
  import 'classnames';
5
5
  import 'recharts';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../tslib.es6-0a16d1e2.js');
3
+ var tslib_es6 = require('../../tslib.es6-692855d9.js');
4
4
  var React = require('react');
5
5
  var hooks_useSettings_utils_setComposedChartsMargin = require('./utils/setComposedChartsMargin.js');
6
6
  var hooks_useSettings_utils_setDatas = require('./utils/setDatas.js');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../../tslib.es6-0a16d1e2.js');
3
+ var tslib_es6 = require('../../../tslib.es6-692855d9.js');
4
4
 
5
5
  var setDatas = function (series, labels) {
6
6
  var initData = [];
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../../tslib.es6-0a16d1e2.js');
3
+ var tslib_es6 = require('../../../tslib.es6-692855d9.js');
4
4
 
5
5
  var setGradientCharts = function (series) {
6
6
  var filterSeries = series.filter(function (item) { return item.chart !== 'gradient'; });
package/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1uc1h */
1
+ /* hash: 392bu */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  }
@@ -10,17 +10,17 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .chart__coreChart_12np2 .recharts-line path {
13
+ .chart__coreChart_sapp3 .recharts-line path {
14
14
  transition: d 0.2s ease-out;
15
15
  }
16
- .chart__coreChart_12np2 .recharts-text tspan {
16
+ .chart__coreChart_sapp3 .recharts-text tspan {
17
17
  fill: var(--color-light-text-primary);
18
18
  font-size: 16px;
19
19
  line-height: 22px;
20
20
  }
21
- .chart__bar_12np2 {
21
+ .chart__bar_sapp3 {
22
22
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
23
23
  }
24
- .chart__unfocused_12np2 {
24
+ .chart__unfocused_sapp3 {
25
25
  opacity: 0.3;
26
26
  }
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var Component = require('./Component.js');
4
- require('./tslib.es6-0a16d1e2.js');
4
+ require('./tslib.es6-692855d9.js');
5
5
  require('react');
6
6
  require('classnames');
7
7
  require('recharts');
@@ -28,7 +28,7 @@ const CustomizedHOC = (Component, options) => {
28
28
  return NewComponent;
29
29
  };
30
30
 
31
- const styles = {"coreChart":"chart__coreChart_12np2","bar":"chart__bar_12np2","unfocused":"chart__unfocused_12np2"};
31
+ const styles = {"coreChart":"chart__coreChart_sapp3","bar":"chart__bar_sapp3","unfocused":"chart__unfocused_sapp3"};
32
32
  require('./index.css')
33
33
 
34
34
  const Chart = (props) => {
@@ -1,19 +1,19 @@
1
- /* hash: 6blwv */
2
- .chart__dotUnfocused_1ysgs {
1
+ /* hash: 16i6x */
2
+ .chart__dotUnfocused_1k2nr {
3
3
  opacity: 0.3;
4
4
  }
5
5
 
6
- .chart__dot_1ysgs,
7
- .chart__dotItem_1ysgs,
8
- .chart__dotWrap_1ysgs {
6
+ .chart__dot_1k2nr,
7
+ .chart__dotItem_1k2nr,
8
+ .chart__dotWrap_1k2nr {
9
9
  transition: all 0.2s ease;
10
10
  }
11
11
 
12
- .chart__dot_1ysgs {
13
- animation: chart__showDot_1ysgs 0.5s ease;
12
+ .chart__dot_1k2nr {
13
+ animation: chart__showDot_1k2nr 0.5s ease;
14
14
  }
15
15
 
16
- @keyframes chart__showDot_1ysgs {
16
+ @keyframes chart__showDot_1k2nr {
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_1ysgs","dot":"chart__dot_1ysgs","dotItem":"chart__dotItem_1ysgs","dotWrap":"chart__dotWrap_1ysgs","showDot":"chart__showDot_1ysgs"};
5
+ const styles = {"dotUnfocused":"chart__dotUnfocused_1k2nr","dot":"chart__dot_1k2nr","dotItem":"chart__dotItem_1k2nr","dotWrap":"chart__dotWrap_1k2nr","showDot":"chart__showDot_1k2nr"};
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: li1ih */
1
+ /* hash: 4rv6w */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -10,31 +10,31 @@
10
10
  :root {
11
11
  --gap-2xl: 32px;
12
12
  }
13
- .chart__legendContent_vxgym {
13
+ .chart__legendContent_hzv13 {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  flex-wrap: wrap;
17
17
  }
18
- .chart__legendWrap_vxgym {
18
+ .chart__legendWrap_hzv13 {
19
19
  width: 100%;
20
20
  margin: 0;
21
21
  padding: 0;
22
22
  }
23
- .chart__legendItem_vxgym {
23
+ .chart__legendItem_hzv13 {
24
24
  margin-right: var(--gap-2xl);
25
25
  cursor: pointer;
26
26
  display: inline-block;
27
27
  }
28
- .chart__legendItem_vxgym:last-child {
28
+ .chart__legendItem_hzv13:last-child {
29
29
  margin-right: 0;
30
30
  }
31
- .chart__legendUnactive_vxgym {
31
+ .chart__legendUnactive_hzv13 {
32
32
  opacity: 0.3;
33
33
  }
34
- .chart__legendIcon_vxgym {
34
+ .chart__legendIcon_hzv13 {
35
35
  margin-right: 13px;
36
36
  display: flex;
37
37
  }
38
- .chart__legendValue_vxgym {
38
+ .chart__legendValue_hzv13 {
39
39
  text-transform: capitalize;
40
40
  }
@@ -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_vxgym","legendWrap":"chart__legendWrap_vxgym","legendItem":"chart__legendItem_vxgym","legendUnactive":"chart__legendUnactive_vxgym","legendIcon":"chart__legendIcon_vxgym","legendValue":"chart__legendValue_vxgym"};
9
+ const styles = {"legendContent":"chart__legendContent_hzv13","legendWrap":"chart__legendWrap_hzv13","legendItem":"chart__legendItem_hzv13","legendUnactive":"chart__legendUnactive_hzv13","legendIcon":"chart__legendIcon_hzv13","legendValue":"chart__legendValue_hzv13"};
10
10
  require('./index.css')
11
11
 
12
12
  const icons = {
@@ -1,4 +1,4 @@
1
- /* hash: iolvt */
1
+ /* hash: 4c7i4 */
2
2
  :root {
3
3
  --color-dark-bg-primary: #0b1f35;
4
4
  --color-light-text-primary: #0b1f35;
@@ -11,17 +11,17 @@
11
11
 
12
12
  /* Hard up */
13
13
  }
14
- .chart__tickText_gmual {
14
+ .chart__tickText_1p75j {
15
15
  fill: var(--color-light-text-primary);
16
16
  font-size: 16px;
17
17
  line-height: 24px;
18
18
  font-weight: 400;
19
19
  }
20
- .chart__circle_gmual {
20
+ .chart__circle_1p75j {
21
21
  opacity: 0.3;
22
22
  fill: var(--color-dark-bg-primary);
23
23
  }
24
- .chart__circle_gmual {
24
+ .chart__circle_1p75j {
25
25
  opacity: 0.3;
26
26
  fill: var(--color-dark-bg-primary);
27
27
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"tickText":"chart__tickText_gmual","circle":"chart__circle_gmual"};
4
+ const styles = {"tickText":"chart__tickText_1p75j","circle":"chart__circle_1p75j"};
5
5
  require('./index.css')
6
6
 
7
7
  const Tick = ({ y, payload, tickFormatter, xAxis }) => {
@@ -1,4 +1,4 @@
1
- /* hash: ion8l */
1
+ /* hash: yyy00 */
2
2
  :root {
3
3
  --color-light-bg-primary: #fff;
4
4
  --color-light-border-primary: #dbdee1;
@@ -19,7 +19,7 @@
19
19
  :root {
20
20
  --border-radius-m: 8px;
21
21
  }
22
- .chart__tooltip_59a0x {
22
+ .chart__tooltip_1tjmf {
23
23
  background-color: var(--color-light-bg-primary);
24
24
  border: 1px solid var(--color-light-border-primary);
25
25
  box-shadow: var(--shadow-l);
@@ -28,17 +28,17 @@
28
28
  pointer-events: none;
29
29
  position: relative;
30
30
  }
31
- .chart__tooltipList_59a0x {
31
+ .chart__tooltipList_1tjmf {
32
32
  position: relative;
33
33
  z-index: 5;
34
34
  list-style-type: none;
35
35
  padding: 0;
36
36
  margin: 0;
37
37
  }
38
- .chart__tooltipItem_59a0x {
38
+ .chart__tooltipItem_1tjmf {
39
39
  margin-bottom: 10px;
40
40
  }
41
- .chart__tooltipArrow_59a0x {
41
+ .chart__tooltipArrow_1tjmf {
42
42
  position: absolute;
43
43
  left: 0;
44
44
  top: 50%;
@@ -48,7 +48,7 @@
48
48
  border: 1px solid var(--color-light-border-primary);
49
49
  background-color: var(--color-light-bg-primary);
50
50
  }
51
- .chart__tooltipArrow_59a0x:before {
51
+ .chart__tooltipArrow_1tjmf:before {
52
52
  content: '';
53
53
  position: absolute;
54
54
  left: -2px;
@@ -59,7 +59,7 @@
59
59
  border-width: 0 24px 24px 0;
60
60
  border-color: transparent var(--color-light-bg-primary) transparent transparent;
61
61
  }
62
- .chart__tooltipArrowRight_59a0x {
62
+ .chart__tooltipArrowRight_1tjmf {
63
63
  left: 100%;
64
64
  transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
65
65
  }
@@ -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_59a0x","tooltipList":"chart__tooltipList_59a0x","tooltipItem":"chart__tooltipItem_59a0x","tooltipArrow":"chart__tooltipArrow_59a0x","tooltipArrowRight":"chart__tooltipArrowRight_59a0x"};
5
+ const styles = {"tooltip":"chart__tooltip_1tjmf","tooltipList":"chart__tooltipList_1tjmf","tooltipItem":"chart__tooltipItem_1tjmf","tooltipArrow":"chart__tooltipArrow_1tjmf","tooltipArrowRight":"chart__tooltipArrowRight_1tjmf"};
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: 1uc1h */
1
+ /* hash: 392bu */
2
2
  :root {
3
3
  --color-light-text-primary: #0b1f35;
4
4
  }
@@ -10,17 +10,17 @@
10
10
 
11
11
  /* Hard up */
12
12
  }
13
- .chart__coreChart_12np2 .recharts-line path {
13
+ .chart__coreChart_sapp3 .recharts-line path {
14
14
  transition: d 0.2s ease-out;
15
15
  }
16
- .chart__coreChart_12np2 .recharts-text tspan {
16
+ .chart__coreChart_sapp3 .recharts-text tspan {
17
17
  fill: var(--color-light-text-primary);
18
18
  font-size: 16px;
19
19
  line-height: 22px;
20
20
  }
21
- .chart__bar_12np2 {
21
+ .chart__bar_sapp3 {
22
22
  transition: opacity 0.2s ease-out, d 0.2s ease-out;
23
23
  }
24
- .chart__unfocused_12np2 {
24
+ .chart__unfocused_sapp3 {
25
25
  opacity: 0.3;
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-chart",
3
- "version": "3.1.6",
3
+ "version": "3.1.7",
4
4
  "description": "Chart component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "directory": "dist"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-typography": "^3.0.8",
17
+ "@alfalab/core-components-typography": "^3.1.0",
18
18
  "classnames": "^2.3.1",
19
19
  "recharts": "^2.1.2"
20
20
  },