@alfalab/core-components-chart 3.2.7 → 3.2.8
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.d.ts +4 -1
- package/Component.js +3 -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/cssm/Component.d.ts +4 -1
- package/cssm/Component.js +2 -0
- package/esm/Component.d.ts +4 -1
- package/esm/Component.js +4 -2
- 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.d.ts +4 -1
- package/modern/Component.js +4 -2
- 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 +1 -1
- package/src/Component.tsx +3 -0
package/Component.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { OptionsProps } from "./types/index";
|
|
4
|
-
declare const Chart:
|
|
4
|
+
declare const Chart: {
|
|
5
|
+
(props: OptionsProps): React.JSX.Element | null;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
5
8
|
export { Chart };
|
package/Component.js
CHANGED
|
@@ -25,7 +25,7 @@ var CustomizedHOC = function (Component, options) {
|
|
|
25
25
|
return NewComponent;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
var styles = {"coreChart":"
|
|
28
|
+
var styles = {"coreChart":"chart__coreChart_13gvq","bar":"chart__bar_13gvq","unfocused":"chart__unfocused_13gvq"};
|
|
29
29
|
require('./index.css')
|
|
30
30
|
|
|
31
31
|
var Chart = function (props) {
|
|
@@ -262,5 +262,7 @@ var Chart = function (props) {
|
|
|
262
262
|
state.brush && renderBrush,
|
|
263
263
|
state.legend && renderLegend))));
|
|
264
264
|
};
|
|
265
|
+
Chart.displayName = 'Chart';
|
|
266
|
+
recharts.ResponsiveContainer.displayName = 'ResponsiveContainer';
|
|
265
267
|
|
|
266
268
|
exports.Chart = Chart;
|
package/components/Dot/index.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 1e5ui */
|
|
2
|
+
.chart__dotUnfocused_376g6 {
|
|
3
3
|
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
6
|
+
.chart__dot_376g6,
|
|
7
|
+
.chart__dotItem_376g6,
|
|
8
|
+
.chart__dotWrap_376g6 {
|
|
9
9
|
transition: all 0.2s ease;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
12
|
+
.chart__dot_376g6 {
|
|
13
|
+
animation: chart__showDot_376g6 0.5s ease;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@keyframes
|
|
16
|
+
@keyframes chart__showDot_376g6 {
|
|
17
17
|
from {
|
|
18
18
|
opacity: 0;
|
|
19
19
|
}
|
package/components/Dot/index.js
CHANGED
|
@@ -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":"
|
|
14
|
+
var styles = {"dotUnfocused":"chart__dotUnfocused_376g6","dot":"chart__dot_376g6","dotItem":"chart__dotItem_376g6","dotWrap":"chart__dotWrap_376g6","showDot":"chart__showDot_376g6"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var Dot = React__default.default.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 8n5rq */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
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
|
-
} .
|
|
18
|
+
} .chart__legendContent_1scej {
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
flex-wrap: wrap;
|
|
22
|
-
} .
|
|
22
|
+
} .chart__legendWrap_1scej {
|
|
23
23
|
width: 100%;
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding: 0;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__legendItem_1scej {
|
|
27
27
|
margin-right: var(--gap-2xl);
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
display: inline-block;
|
|
30
|
-
} .
|
|
30
|
+
} .chart__legendItem_1scej:last-child {
|
|
31
31
|
margin-right: 0;
|
|
32
|
-
} .
|
|
32
|
+
} .chart__legendUnactive_1scej {
|
|
33
33
|
opacity: 0.3;
|
|
34
|
-
} .
|
|
34
|
+
} .chart__legendIcon_1scej {
|
|
35
35
|
margin-right: 13px;
|
|
36
36
|
display: flex;
|
|
37
|
-
} .
|
|
37
|
+
} .chart__legendValue_1scej {
|
|
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":"
|
|
18
|
+
var styles = {"legendContent":"chart__legendContent_1scej","legendWrap":"chart__legendWrap_1scej","legendItem":"chart__legendItem_1scej","legendUnactive":"chart__legendUnactive_1scej","legendIcon":"chart__legendIcon_1scej","legendValue":"chart__legendValue_1scej"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var icons = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qpcg */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
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
|
-
} .
|
|
19
|
+
} .chart__tickText_cb9wj {
|
|
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_cb9wj {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
fill: var(--color-dark-bg-primary);
|
|
27
|
-
} .
|
|
27
|
+
} .chart__circle_cb9wj {
|
|
28
28
|
opacity: 0.3;
|
|
29
29
|
fill: var(--color-dark-bg-primary);
|
|
30
30
|
}
|
package/components/Tick/index.js
CHANGED
|
@@ -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":"
|
|
13
|
+
var styles = {"tickText":"chart__tickText_cb9wj","circle":"chart__circle_cb9wj"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var Tick = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18ihj */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
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
|
-
} .
|
|
24
|
+
} .chart__tooltip_11kym {
|
|
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
|
-
} .
|
|
32
|
+
} .chart__tooltipList_11kym {
|
|
33
33
|
position: relative;
|
|
34
34
|
z-index: 5;
|
|
35
35
|
list-style-type: none;
|
|
36
36
|
padding: 0;
|
|
37
37
|
margin: 0;
|
|
38
|
-
} .
|
|
38
|
+
} .chart__tooltipItem_11kym {
|
|
39
39
|
margin-bottom: 10px;
|
|
40
|
-
} .
|
|
40
|
+
} .chart__tooltipArrow_11kym {
|
|
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
|
-
} .
|
|
49
|
+
} .chart__tooltipArrow_11kym: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
|
-
} .
|
|
59
|
+
} .chart__tooltipArrowRight_11kym {
|
|
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":"
|
|
14
|
+
var styles = {"tooltip":"chart__tooltip_11kym","tooltipList":"chart__tooltipList_11kym","tooltipItem":"chart__tooltipItem_11kym","tooltipArrow":"chart__tooltipArrow_11kym","tooltipArrowRight":"chart__tooltipArrowRight_11kym"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var TooltipContent = function (_a) {
|
package/cssm/Component.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { OptionsProps } from "./types/index";
|
|
4
|
-
declare const Chart:
|
|
4
|
+
declare const Chart: {
|
|
5
|
+
(props: OptionsProps): React.JSX.Element | null;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
5
8
|
export { Chart };
|
package/cssm/Component.js
CHANGED
package/esm/Component.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { OptionsProps } from "./types/index";
|
|
4
|
-
declare const Chart:
|
|
4
|
+
declare const Chart: {
|
|
5
|
+
(props: OptionsProps): React.JSX.Element | null;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
5
8
|
export { Chart };
|
package/esm/Component.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
2
|
import React, { useState, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
-
import { Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, LabelList, Cell,
|
|
4
|
+
import { ResponsiveContainer, Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, LabelList, Cell, ComposedChart } from 'recharts';
|
|
5
5
|
import { CustomizedLabel } from './components/CustomizedLabel.js';
|
|
6
6
|
import { Dot } from './components/Dot/index.js';
|
|
7
7
|
import { Legends } from './components/Legends/index.js';
|
|
@@ -16,7 +16,7 @@ var CustomizedHOC = function (Component, options) {
|
|
|
16
16
|
return NewComponent;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
var styles = {"coreChart":"
|
|
19
|
+
var styles = {"coreChart":"chart__coreChart_13gvq","bar":"chart__bar_13gvq","unfocused":"chart__unfocused_13gvq"};
|
|
20
20
|
require('./index.css')
|
|
21
21
|
|
|
22
22
|
var Chart = function (props) {
|
|
@@ -253,5 +253,7 @@ var Chart = function (props) {
|
|
|
253
253
|
state.brush && renderBrush,
|
|
254
254
|
state.legend && renderLegend))));
|
|
255
255
|
};
|
|
256
|
+
Chart.displayName = 'Chart';
|
|
257
|
+
ResponsiveContainer.displayName = 'ResponsiveContainer';
|
|
256
258
|
|
|
257
259
|
export { Chart };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 1e5ui */
|
|
2
|
+
.chart__dotUnfocused_376g6 {
|
|
3
3
|
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
6
|
+
.chart__dot_376g6,
|
|
7
|
+
.chart__dotItem_376g6,
|
|
8
|
+
.chart__dotWrap_376g6 {
|
|
9
9
|
transition: all 0.2s ease;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
12
|
+
.chart__dot_376g6 {
|
|
13
|
+
animation: chart__showDot_376g6 0.5s ease;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@keyframes
|
|
16
|
+
@keyframes chart__showDot_376g6 {
|
|
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_376g6","dot":"chart__dot_376g6","dotItem":"chart__dotItem_376g6","dotWrap":"chart__dotWrap_376g6","showDot":"chart__showDot_376g6"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Dot = React.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 8n5rq */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
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
|
-
} .
|
|
18
|
+
} .chart__legendContent_1scej {
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
flex-wrap: wrap;
|
|
22
|
-
} .
|
|
22
|
+
} .chart__legendWrap_1scej {
|
|
23
23
|
width: 100%;
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding: 0;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__legendItem_1scej {
|
|
27
27
|
margin-right: var(--gap-2xl);
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
display: inline-block;
|
|
30
|
-
} .
|
|
30
|
+
} .chart__legendItem_1scej:last-child {
|
|
31
31
|
margin-right: 0;
|
|
32
|
-
} .
|
|
32
|
+
} .chart__legendUnactive_1scej {
|
|
33
33
|
opacity: 0.3;
|
|
34
|
-
} .
|
|
34
|
+
} .chart__legendIcon_1scej {
|
|
35
35
|
margin-right: 13px;
|
|
36
36
|
display: flex;
|
|
37
|
-
} .
|
|
37
|
+
} .chart__legendValue_1scej {
|
|
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_1scej","legendWrap":"chart__legendWrap_1scej","legendItem":"chart__legendItem_1scej","legendUnactive":"chart__legendUnactive_1scej","legendIcon":"chart__legendIcon_1scej","legendValue":"chart__legendValue_1scej"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var icons = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qpcg */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
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
|
-
} .
|
|
19
|
+
} .chart__tickText_cb9wj {
|
|
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_cb9wj {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
fill: var(--color-dark-bg-primary);
|
|
27
|
-
} .
|
|
27
|
+
} .chart__circle_cb9wj {
|
|
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_cb9wj","circle":"chart__circle_cb9wj"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Tick = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18ihj */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
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
|
-
} .
|
|
24
|
+
} .chart__tooltip_11kym {
|
|
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
|
-
} .
|
|
32
|
+
} .chart__tooltipList_11kym {
|
|
33
33
|
position: relative;
|
|
34
34
|
z-index: 5;
|
|
35
35
|
list-style-type: none;
|
|
36
36
|
padding: 0;
|
|
37
37
|
margin: 0;
|
|
38
|
-
} .
|
|
38
|
+
} .chart__tooltipItem_11kym {
|
|
39
39
|
margin-bottom: 10px;
|
|
40
|
-
} .
|
|
40
|
+
} .chart__tooltipArrow_11kym {
|
|
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
|
-
} .
|
|
49
|
+
} .chart__tooltipArrow_11kym: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
|
-
} .
|
|
59
|
+
} .chart__tooltipArrowRight_11kym {
|
|
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":"
|
|
5
|
+
var styles = {"tooltip":"chart__tooltip_11kym","tooltipList":"chart__tooltipList_11kym","tooltipItem":"chart__tooltipItem_11kym","tooltipArrow":"chart__tooltipArrow_11kym","tooltipArrowRight":"chart__tooltipArrowRight_11kym"};
|
|
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: 17w3z */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: rgba(3, 3, 6, 0.88); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
|
-
} .
|
|
18
|
+
} .chart__coreChart_13gvq .recharts-line path {
|
|
19
19
|
transition: d 0.2s ease-out;
|
|
20
|
-
} .
|
|
20
|
+
} .chart__coreChart_13gvq .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_13gvq {
|
|
25
25
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__unfocused_13gvq {
|
|
27
27
|
opacity: 0.3;
|
|
28
28
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 17w3z */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: rgba(3, 3, 6, 0.88); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
|
-
} .
|
|
18
|
+
} .chart__coreChart_13gvq .recharts-line path {
|
|
19
19
|
transition: d 0.2s ease-out;
|
|
20
|
-
} .
|
|
20
|
+
} .chart__coreChart_13gvq .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_13gvq {
|
|
25
25
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__unfocused_13gvq {
|
|
27
27
|
opacity: 0.3;
|
|
28
28
|
}
|
package/modern/Component.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { OptionsProps } from "./types/index";
|
|
4
|
-
declare const Chart:
|
|
4
|
+
declare const Chart: {
|
|
5
|
+
(props: OptionsProps): React.JSX.Element | null;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
5
8
|
export { Chart };
|
package/modern/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, LabelList, Cell,
|
|
3
|
+
import { ResponsiveContainer, Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, LabelList, Cell, ComposedChart } from 'recharts';
|
|
4
4
|
import { CustomizedLabel } from './components/CustomizedLabel.js';
|
|
5
5
|
import { Dot } from './components/Dot/index.js';
|
|
6
6
|
import { Legends } from './components/Legends/index.js';
|
|
@@ -15,7 +15,7 @@ const CustomizedHOC = (Component, options) => {
|
|
|
15
15
|
return NewComponent;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
const styles = {"coreChart":"
|
|
18
|
+
const styles = {"coreChart":"chart__coreChart_13gvq","bar":"chart__bar_13gvq","unfocused":"chart__unfocused_13gvq"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
/* eslint-disable @typescript-eslint/no-explicit-any,prefer-template */
|
|
@@ -247,5 +247,7 @@ const Chart = (props) => {
|
|
|
247
247
|
state.brush && renderBrush,
|
|
248
248
|
state.legend && renderLegend))));
|
|
249
249
|
};
|
|
250
|
+
Chart.displayName = 'Chart';
|
|
251
|
+
ResponsiveContainer.displayName = 'ResponsiveContainer';
|
|
250
252
|
|
|
251
253
|
export { Chart };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: 1e5ui */
|
|
2
|
+
.chart__dotUnfocused_376g6 {
|
|
3
3
|
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
6
|
+
.chart__dot_376g6,
|
|
7
|
+
.chart__dotItem_376g6,
|
|
8
|
+
.chart__dotWrap_376g6 {
|
|
9
9
|
transition: all 0.2s ease;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
12
|
+
.chart__dot_376g6 {
|
|
13
|
+
animation: chart__showDot_376g6 0.5s ease;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@keyframes
|
|
16
|
+
@keyframes chart__showDot_376g6 {
|
|
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_376g6","dot":"chart__dot_376g6","dotItem":"chart__dotItem_376g6","dotWrap":"chart__dotWrap_376g6","showDot":"chart__showDot_376g6"};
|
|
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: 8n5rq */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
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
|
-
} .
|
|
18
|
+
} .chart__legendContent_1scej {
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
flex-wrap: wrap;
|
|
22
|
-
} .
|
|
22
|
+
} .chart__legendWrap_1scej {
|
|
23
23
|
width: 100%;
|
|
24
24
|
margin: 0;
|
|
25
25
|
padding: 0;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__legendItem_1scej {
|
|
27
27
|
margin-right: var(--gap-2xl);
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
display: inline-block;
|
|
30
|
-
} .
|
|
30
|
+
} .chart__legendItem_1scej:last-child {
|
|
31
31
|
margin-right: 0;
|
|
32
|
-
} .
|
|
32
|
+
} .chart__legendUnactive_1scej {
|
|
33
33
|
opacity: 0.3;
|
|
34
|
-
} .
|
|
34
|
+
} .chart__legendIcon_1scej {
|
|
35
35
|
margin-right: 13px;
|
|
36
36
|
display: flex;
|
|
37
|
-
} .
|
|
37
|
+
} .chart__legendValue_1scej {
|
|
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_1scej","legendWrap":"chart__legendWrap_1scej","legendItem":"chart__legendItem_1scej","legendUnactive":"chart__legendUnactive_1scej","legendIcon":"chart__legendIcon_1scej","legendValue":"chart__legendValue_1scej"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const icons = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1qpcg */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
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
|
-
} .
|
|
19
|
+
} .chart__tickText_cb9wj {
|
|
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_cb9wj {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
fill: var(--color-dark-bg-primary);
|
|
27
|
-
} .
|
|
27
|
+
} .chart__circle_cb9wj {
|
|
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_cb9wj","circle":"chart__circle_cb9wj"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Tick = ({ y, payload, tickFormatter, xAxis }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 18ihj */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
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
|
-
} .
|
|
24
|
+
} .chart__tooltip_11kym {
|
|
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
|
-
} .
|
|
32
|
+
} .chart__tooltipList_11kym {
|
|
33
33
|
position: relative;
|
|
34
34
|
z-index: 5;
|
|
35
35
|
list-style-type: none;
|
|
36
36
|
padding: 0;
|
|
37
37
|
margin: 0;
|
|
38
|
-
} .
|
|
38
|
+
} .chart__tooltipItem_11kym {
|
|
39
39
|
margin-bottom: 10px;
|
|
40
|
-
} .
|
|
40
|
+
} .chart__tooltipArrow_11kym {
|
|
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
|
-
} .
|
|
49
|
+
} .chart__tooltipArrow_11kym: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
|
-
} .
|
|
59
|
+
} .chart__tooltipArrowRight_11kym {
|
|
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":"
|
|
5
|
+
const styles = {"tooltip":"chart__tooltip_11kym","tooltipList":"chart__tooltipList_11kym","tooltipItem":"chart__tooltipItem_11kym","tooltipArrow":"chart__tooltipArrow_11kym","tooltipArrowRight":"chart__tooltipArrowRight_11kym"};
|
|
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: 17w3z */
|
|
2
2
|
: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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-text-primary: rgba(3, 3, 6, 0.88); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
|
-
} .
|
|
18
|
+
} .chart__coreChart_13gvq .recharts-line path {
|
|
19
19
|
transition: d 0.2s ease-out;
|
|
20
|
-
} .
|
|
20
|
+
} .chart__coreChart_13gvq .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_13gvq {
|
|
25
25
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__unfocused_13gvq {
|
|
27
27
|
opacity: 0.3;
|
|
28
28
|
}
|
package/package.json
CHANGED