@alfalab/core-components-chart 3.1.8 → 3.1.9
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.
- package/Component.js +1 -1
- package/components/Dot/index.css +8 -8
- package/components/Dot/index.js +1 -1
- package/components/Legends/index.css +8 -8
- package/components/Legends/index.js +1 -1
- package/components/Tick/index.css +4 -4
- package/components/Tick/index.js +1 -1
- package/components/TooltipContent/index.css +7 -7
- package/components/TooltipContent/index.js +1 -1
- package/esm/Component.js +1 -1
- package/esm/components/Dot/index.css +8 -8
- package/esm/components/Dot/index.js +1 -1
- package/esm/components/Legends/index.css +8 -8
- package/esm/components/Legends/index.js +1 -1
- package/esm/components/Tick/index.css +4 -4
- package/esm/components/Tick/index.js +1 -1
- package/esm/components/TooltipContent/index.css +7 -7
- package/esm/components/TooltipContent/index.js +1 -1
- package/esm/index.css +5 -5
- package/index.css +5 -5
- package/modern/Component.js +1 -1
- package/modern/components/Dot/index.css +8 -8
- package/modern/components/Dot/index.js +1 -1
- package/modern/components/Legends/index.css +8 -8
- package/modern/components/Legends/index.js +1 -1
- package/modern/components/Tick/index.css +4 -4
- package/modern/components/Tick/index.js +1 -1
- package/modern/components/TooltipContent/index.css +7 -7
- package/modern/components/TooltipContent/index.js +1 -1
- package/modern/index.css +5 -5
- package/package.json +2 -2
package/Component.js
CHANGED
|
@@ -36,7 +36,7 @@ var CustomizedHOC = function (Component, options) {
|
|
|
36
36
|
return NewComponent;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
var styles = {"coreChart":"
|
|
39
|
+
var styles = {"coreChart":"chart__coreChart_1g9e3","bar":"chart__bar_1g9e3","unfocused":"chart__unfocused_1g9e3"};
|
|
40
40
|
require('./index.css')
|
|
41
41
|
|
|
42
42
|
var Chart = function (props) {
|
package/components/Dot/index.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 1ckc2 */
|
|
2
|
+
.chart__dotUnfocused_p7bjp {
|
|
3
3
|
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
6
|
+
.chart__dot_p7bjp,
|
|
7
|
+
.chart__dotItem_p7bjp,
|
|
8
|
+
.chart__dotWrap_p7bjp {
|
|
9
9
|
transition: all 0.2s ease;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
12
|
+
.chart__dot_p7bjp {
|
|
13
|
+
animation: chart__showDot_p7bjp 0.5s ease;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@keyframes
|
|
16
|
+
@keyframes chart__showDot_p7bjp {
|
|
17
17
|
from {
|
|
18
18
|
opacity: 0;
|
|
19
19
|
}
|
package/components/Dot/index.js
CHANGED
|
@@ -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":"
|
|
12
|
+
var styles = {"dotUnfocused":"chart__dotUnfocused_p7bjp","dot":"chart__dot_p7bjp","dotItem":"chart__dotItem_p7bjp","dotWrap":"chart__dotWrap_p7bjp","showDot":"chart__showDot_p7bjp"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var Dot = React__default.default.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: nmflm */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
--gap-2xl: 32px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .chart__legendContent_cb6tz {
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
flex-wrap: wrap;
|
|
22
|
-
} .
|
|
22
|
+
} .chart__legendWrap_cb6tz {
|
|
23
23
|
width: 100%;
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding: 0;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__legendItem_cb6tz {
|
|
27
27
|
margin-right: var(--gap-2xl);
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
display: inline-block;
|
|
30
|
-
} .
|
|
30
|
+
} .chart__legendItem_cb6tz:last-child {
|
|
31
31
|
margin-right: 0;
|
|
32
|
-
} .
|
|
32
|
+
} .chart__legendUnactive_cb6tz {
|
|
33
33
|
opacity: 0.3;
|
|
34
|
-
} .
|
|
34
|
+
} .chart__legendIcon_cb6tz {
|
|
35
35
|
margin-right: 13px;
|
|
36
36
|
display: flex;
|
|
37
|
-
} .
|
|
37
|
+
} .chart__legendValue_cb6tz {
|
|
38
38
|
text-transform: capitalize;
|
|
39
39
|
}
|
|
@@ -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":"
|
|
16
|
+
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"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var icons = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: x0lns */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-dark-bg-primary: #0b1f35;
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .chart__tickText_1t0io {
|
|
20
20
|
fill: var(--color-light-text-primary);
|
|
21
21
|
font-size: 16px;
|
|
22
22
|
line-height: 24px;
|
|
23
23
|
font-weight: 400;
|
|
24
|
-
} .
|
|
24
|
+
} .chart__circle_1t0io {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
fill: var(--color-dark-bg-primary);
|
|
27
|
-
} .
|
|
27
|
+
} .chart__circle_1t0io {
|
|
28
28
|
opacity: 0.3;
|
|
29
29
|
fill: var(--color-dark-bg-primary);
|
|
30
30
|
}
|
package/components/Tick/index.js
CHANGED
|
@@ -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":"
|
|
11
|
+
var styles = {"tickText":"chart__tickText_1t0io","circle":"chart__circle_1t0io"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Tick = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fv9xh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--gap-m: 16px;
|
|
21
21
|
} :root {
|
|
22
22
|
} :root {
|
|
23
|
-
} .
|
|
23
|
+
} .chart__tooltip_p68vf {
|
|
24
24
|
background-color: var(--color-light-bg-primary);
|
|
25
25
|
border: 1px solid var(--color-light-border-primary);
|
|
26
26
|
box-shadow: var(--shadow-l);
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
padding: var(--gap-s) var(--gap-m);
|
|
29
29
|
pointer-events: none;
|
|
30
30
|
position: relative;
|
|
31
|
-
} .
|
|
31
|
+
} .chart__tooltipList_p68vf {
|
|
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
|
+
} .chart__tooltipItem_p68vf {
|
|
38
38
|
margin-bottom: 10px;
|
|
39
|
-
} .
|
|
39
|
+
} .chart__tooltipArrow_p68vf {
|
|
40
40
|
position: absolute;
|
|
41
41
|
left: 0;
|
|
42
42
|
top: 50%;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
height: 10px;
|
|
46
46
|
border: 1px solid var(--color-light-border-primary);
|
|
47
47
|
background-color: var(--color-light-bg-primary);
|
|
48
|
-
} .
|
|
48
|
+
} .chart__tooltipArrow_p68vf:before {
|
|
49
49
|
content: '';
|
|
50
50
|
position: absolute;
|
|
51
51
|
left: -2px;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
border-style: solid;
|
|
56
56
|
border-width: 0 24px 24px 0;
|
|
57
57
|
border-color: transparent var(--color-light-bg-primary) transparent transparent;
|
|
58
|
-
} .
|
|
58
|
+
} .chart__tooltipArrowRight_p68vf {
|
|
59
59
|
left: 100%;
|
|
60
60
|
transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
|
|
61
61
|
}
|
|
@@ -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":"
|
|
12
|
+
var styles = {"tooltip":"chart__tooltip_p68vf","tooltipList":"chart__tooltipList_p68vf","tooltipItem":"chart__tooltipItem_p68vf","tooltipArrow":"chart__tooltipArrow_p68vf","tooltipArrowRight":"chart__tooltipArrowRight_p68vf"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var TooltipContent = function (_a) {
|
package/esm/Component.js
CHANGED
|
@@ -29,7 +29,7 @@ var CustomizedHOC = function (Component, options) {
|
|
|
29
29
|
return NewComponent;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
var styles = {"coreChart":"
|
|
32
|
+
var styles = {"coreChart":"chart__coreChart_1g9e3","bar":"chart__bar_1g9e3","unfocused":"chart__unfocused_1g9e3"};
|
|
33
33
|
require('./index.css')
|
|
34
34
|
|
|
35
35
|
var Chart = function (props) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 1ckc2 */
|
|
2
|
+
.chart__dotUnfocused_p7bjp {
|
|
3
3
|
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
6
|
+
.chart__dot_p7bjp,
|
|
7
|
+
.chart__dotItem_p7bjp,
|
|
8
|
+
.chart__dotWrap_p7bjp {
|
|
9
9
|
transition: all 0.2s ease;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
12
|
+
.chart__dot_p7bjp {
|
|
13
|
+
animation: chart__showDot_p7bjp 0.5s ease;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@keyframes
|
|
16
|
+
@keyframes chart__showDot_p7bjp {
|
|
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":"
|
|
5
|
+
var styles = {"dotUnfocused":"chart__dotUnfocused_p7bjp","dot":"chart__dot_p7bjp","dotItem":"chart__dotItem_p7bjp","dotWrap":"chart__dotWrap_p7bjp","showDot":"chart__showDot_p7bjp"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Dot = React.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: nmflm */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
--gap-2xl: 32px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .chart__legendContent_cb6tz {
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
flex-wrap: wrap;
|
|
22
|
-
} .
|
|
22
|
+
} .chart__legendWrap_cb6tz {
|
|
23
23
|
width: 100%;
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding: 0;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__legendItem_cb6tz {
|
|
27
27
|
margin-right: var(--gap-2xl);
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
display: inline-block;
|
|
30
|
-
} .
|
|
30
|
+
} .chart__legendItem_cb6tz:last-child {
|
|
31
31
|
margin-right: 0;
|
|
32
|
-
} .
|
|
32
|
+
} .chart__legendUnactive_cb6tz {
|
|
33
33
|
opacity: 0.3;
|
|
34
|
-
} .
|
|
34
|
+
} .chart__legendIcon_cb6tz {
|
|
35
35
|
margin-right: 13px;
|
|
36
36
|
display: flex;
|
|
37
|
-
} .
|
|
37
|
+
} .chart__legendValue_cb6tz {
|
|
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":"
|
|
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"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var icons = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: x0lns */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-dark-bg-primary: #0b1f35;
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .chart__tickText_1t0io {
|
|
20
20
|
fill: var(--color-light-text-primary);
|
|
21
21
|
font-size: 16px;
|
|
22
22
|
line-height: 24px;
|
|
23
23
|
font-weight: 400;
|
|
24
|
-
} .
|
|
24
|
+
} .chart__circle_1t0io {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
fill: var(--color-dark-bg-primary);
|
|
27
|
-
} .
|
|
27
|
+
} .chart__circle_1t0io {
|
|
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":"
|
|
4
|
+
var styles = {"tickText":"chart__tickText_1t0io","circle":"chart__circle_1t0io"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Tick = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fv9xh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--gap-m: 16px;
|
|
21
21
|
} :root {
|
|
22
22
|
} :root {
|
|
23
|
-
} .
|
|
23
|
+
} .chart__tooltip_p68vf {
|
|
24
24
|
background-color: var(--color-light-bg-primary);
|
|
25
25
|
border: 1px solid var(--color-light-border-primary);
|
|
26
26
|
box-shadow: var(--shadow-l);
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
padding: var(--gap-s) var(--gap-m);
|
|
29
29
|
pointer-events: none;
|
|
30
30
|
position: relative;
|
|
31
|
-
} .
|
|
31
|
+
} .chart__tooltipList_p68vf {
|
|
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
|
+
} .chart__tooltipItem_p68vf {
|
|
38
38
|
margin-bottom: 10px;
|
|
39
|
-
} .
|
|
39
|
+
} .chart__tooltipArrow_p68vf {
|
|
40
40
|
position: absolute;
|
|
41
41
|
left: 0;
|
|
42
42
|
top: 50%;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
height: 10px;
|
|
46
46
|
border: 1px solid var(--color-light-border-primary);
|
|
47
47
|
background-color: var(--color-light-bg-primary);
|
|
48
|
-
} .
|
|
48
|
+
} .chart__tooltipArrow_p68vf:before {
|
|
49
49
|
content: '';
|
|
50
50
|
position: absolute;
|
|
51
51
|
left: -2px;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
border-style: solid;
|
|
56
56
|
border-width: 0 24px 24px 0;
|
|
57
57
|
border-color: transparent var(--color-light-bg-primary) transparent transparent;
|
|
58
|
-
} .
|
|
58
|
+
} .chart__tooltipArrowRight_p68vf {
|
|
59
59
|
left: 100%;
|
|
60
60
|
transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
|
|
61
61
|
}
|
|
@@ -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":"
|
|
5
|
+
var styles = {"tooltip":"chart__tooltip_p68vf","tooltipList":"chart__tooltipList_p68vf","tooltipItem":"chart__tooltipItem_p68vf","tooltipArrow":"chart__tooltipArrow_p68vf","tooltipArrowRight":"chart__tooltipArrowRight_p68vf"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TooltipContent = function (_a) {
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7db35 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .chart__coreChart_1g9e3 .recharts-line path {
|
|
19
19
|
transition: d 0.2s ease-out;
|
|
20
|
-
} .
|
|
20
|
+
} .chart__coreChart_1g9e3 .recharts-text tspan {
|
|
21
21
|
fill: var(--color-light-text-primary);
|
|
22
22
|
font-size: 16px;
|
|
23
23
|
line-height: 22px;
|
|
24
|
-
} .
|
|
24
|
+
} .chart__bar_1g9e3 {
|
|
25
25
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__unfocused_1g9e3 {
|
|
27
27
|
opacity: 0.3;
|
|
28
28
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 7db35 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .chart__coreChart_1g9e3 .recharts-line path {
|
|
19
19
|
transition: d 0.2s ease-out;
|
|
20
|
-
} .
|
|
20
|
+
} .chart__coreChart_1g9e3 .recharts-text tspan {
|
|
21
21
|
fill: var(--color-light-text-primary);
|
|
22
22
|
font-size: 16px;
|
|
23
23
|
line-height: 22px;
|
|
24
|
-
} .
|
|
24
|
+
} .chart__bar_1g9e3 {
|
|
25
25
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__unfocused_1g9e3 {
|
|
27
27
|
opacity: 0.3;
|
|
28
28
|
}
|
package/modern/Component.js
CHANGED
|
@@ -28,7 +28,7 @@ const CustomizedHOC = (Component, options) => {
|
|
|
28
28
|
return NewComponent;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
const styles = {"coreChart":"
|
|
31
|
+
const styles = {"coreChart":"chart__coreChart_1g9e3","bar":"chart__bar_1g9e3","unfocused":"chart__unfocused_1g9e3"};
|
|
32
32
|
require('./index.css')
|
|
33
33
|
|
|
34
34
|
const Chart = (props) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 1ckc2 */
|
|
2
|
+
.chart__dotUnfocused_p7bjp {
|
|
3
3
|
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
6
|
+
.chart__dot_p7bjp,
|
|
7
|
+
.chart__dotItem_p7bjp,
|
|
8
|
+
.chart__dotWrap_p7bjp {
|
|
9
9
|
transition: all 0.2s ease;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
12
|
+
.chart__dot_p7bjp {
|
|
13
|
+
animation: chart__showDot_p7bjp 0.5s ease;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@keyframes
|
|
16
|
+
@keyframes chart__showDot_p7bjp {
|
|
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":"
|
|
5
|
+
const styles = {"dotUnfocused":"chart__dotUnfocused_p7bjp","dot":"chart__dot_p7bjp","dotItem":"chart__dotItem_p7bjp","dotWrap":"chart__dotWrap_p7bjp","showDot":"chart__showDot_p7bjp"};
|
|
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:
|
|
1
|
+
/* hash: nmflm */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
--gap-2xl: 32px;
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .chart__legendContent_cb6tz {
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
flex-wrap: wrap;
|
|
22
|
-
} .
|
|
22
|
+
} .chart__legendWrap_cb6tz {
|
|
23
23
|
width: 100%;
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding: 0;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__legendItem_cb6tz {
|
|
27
27
|
margin-right: var(--gap-2xl);
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
display: inline-block;
|
|
30
|
-
} .
|
|
30
|
+
} .chart__legendItem_cb6tz:last-child {
|
|
31
31
|
margin-right: 0;
|
|
32
|
-
} .
|
|
32
|
+
} .chart__legendUnactive_cb6tz {
|
|
33
33
|
opacity: 0.3;
|
|
34
|
-
} .
|
|
34
|
+
} .chart__legendIcon_cb6tz {
|
|
35
35
|
margin-right: 13px;
|
|
36
36
|
display: flex;
|
|
37
|
-
} .
|
|
37
|
+
} .chart__legendValue_cb6tz {
|
|
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":"
|
|
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"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const icons = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: x0lns */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-dark-bg-primary: #0b1f35;
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
18
|
} :root {
|
|
19
|
-
} .
|
|
19
|
+
} .chart__tickText_1t0io {
|
|
20
20
|
fill: var(--color-light-text-primary);
|
|
21
21
|
font-size: 16px;
|
|
22
22
|
line-height: 24px;
|
|
23
23
|
font-weight: 400;
|
|
24
|
-
} .
|
|
24
|
+
} .chart__circle_1t0io {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
fill: var(--color-dark-bg-primary);
|
|
27
|
-
} .
|
|
27
|
+
} .chart__circle_1t0io {
|
|
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":"
|
|
4
|
+
const styles = {"tickText":"chart__tickText_1t0io","circle":"chart__circle_1t0io"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Tick = ({ y, payload, tickFormatter, xAxis }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: fv9xh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--gap-m: 16px;
|
|
21
21
|
} :root {
|
|
22
22
|
} :root {
|
|
23
|
-
} .
|
|
23
|
+
} .chart__tooltip_p68vf {
|
|
24
24
|
background-color: var(--color-light-bg-primary);
|
|
25
25
|
border: 1px solid var(--color-light-border-primary);
|
|
26
26
|
box-shadow: var(--shadow-l);
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
padding: var(--gap-s) var(--gap-m);
|
|
29
29
|
pointer-events: none;
|
|
30
30
|
position: relative;
|
|
31
|
-
} .
|
|
31
|
+
} .chart__tooltipList_p68vf {
|
|
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
|
+
} .chart__tooltipItem_p68vf {
|
|
38
38
|
margin-bottom: 10px;
|
|
39
|
-
} .
|
|
39
|
+
} .chart__tooltipArrow_p68vf {
|
|
40
40
|
position: absolute;
|
|
41
41
|
left: 0;
|
|
42
42
|
top: 50%;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
height: 10px;
|
|
46
46
|
border: 1px solid var(--color-light-border-primary);
|
|
47
47
|
background-color: var(--color-light-bg-primary);
|
|
48
|
-
} .
|
|
48
|
+
} .chart__tooltipArrow_p68vf:before {
|
|
49
49
|
content: '';
|
|
50
50
|
position: absolute;
|
|
51
51
|
left: -2px;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
border-style: solid;
|
|
56
56
|
border-width: 0 24px 24px 0;
|
|
57
57
|
border-color: transparent var(--color-light-bg-primary) transparent transparent;
|
|
58
|
-
} .
|
|
58
|
+
} .chart__tooltipArrowRight_p68vf {
|
|
59
59
|
left: 100%;
|
|
60
60
|
transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
|
|
61
61
|
}
|
|
@@ -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":"
|
|
5
|
+
const styles = {"tooltip":"chart__tooltip_p68vf","tooltipList":"chart__tooltipList_p68vf","tooltipItem":"chart__tooltipItem_p68vf","tooltipArrow":"chart__tooltipArrow_p68vf","tooltipArrowRight":"chart__tooltipArrowRight_p68vf"};
|
|
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:
|
|
1
|
+
/* hash: 7db35 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .chart__coreChart_1g9e3 .recharts-line path {
|
|
19
19
|
transition: d 0.2s ease-out;
|
|
20
|
-
} .
|
|
20
|
+
} .chart__coreChart_1g9e3 .recharts-text tspan {
|
|
21
21
|
fill: var(--color-light-text-primary);
|
|
22
22
|
font-size: 16px;
|
|
23
23
|
line-height: 22px;
|
|
24
|
-
} .
|
|
24
|
+
} .chart__bar_1g9e3 {
|
|
25
25
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__unfocused_1g9e3 {
|
|
27
27
|
opacity: 0.3;
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-chart",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
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.
|
|
17
|
+
"@alfalab/core-components-typography": "^3.2.0",
|
|
18
18
|
"classnames": "^2.3.1",
|
|
19
19
|
"recharts": "^2.1.2",
|
|
20
20
|
"tslib": "^2.4.0"
|