@alfalab/core-components-chart 3.1.8 → 3.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component.d.ts +1 -1
- package/Component.js +3 -1
- package/components/CustomizedLabel.js +3 -0
- package/components/Dot/index.css +8 -8
- package/components/Dot/index.js +3 -1
- package/components/Legends/index.css +10 -10
- package/components/Legends/index.js +3 -1
- package/components/LinearGradient.js +2 -0
- package/components/RectBar.js +3 -0
- package/components/Tick/index.css +7 -7
- package/components/Tick/index.js +3 -1
- package/components/TooltipContent/index.css +11 -10
- package/components/TooltipContent/index.js +3 -1
- package/cssm/Component.d.ts +1 -1
- package/cssm/Component.js +2 -0
- package/cssm/components/CustomizedLabel.js +3 -0
- package/cssm/components/Dot/index.js +2 -0
- package/cssm/components/Legends/index.js +2 -0
- package/cssm/components/Legends/index.module.css +2 -2
- package/cssm/components/LinearGradient.js +2 -0
- package/cssm/components/RectBar.js +3 -0
- package/cssm/components/Tick/index.js +2 -0
- package/cssm/components/Tick/index.module.css +3 -3
- package/cssm/components/TooltipContent/index.js +2 -0
- package/cssm/components/TooltipContent/index.module.css +4 -3
- package/cssm/hooks/usePathBar/index.js +2 -0
- package/cssm/hooks/usePathBar/utils/getRadius.js +2 -0
- package/cssm/hooks/useSettings/index.js +2 -0
- package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +2 -0
- package/cssm/hooks/useSettings/utils/setDatas.js +2 -0
- package/cssm/hooks/useSettings/utils/setGradientCharts.js +2 -0
- package/cssm/hooks/useSettings/utils/setLegendMargin.js +2 -0
- package/cssm/hooks/useSettings/utils/sortByIndex.js +2 -0
- package/cssm/icons/Circle.js +2 -0
- package/cssm/icons/CircleLine.js +2 -0
- package/cssm/icons/FilledCircle.js +2 -0
- package/cssm/icons/Point.js +2 -0
- package/cssm/icons/StrokeCircle.js +2 -0
- package/cssm/index.js +2 -0
- package/cssm/index.module.css +2 -2
- package/esm/Component.d.ts +1 -1
- package/esm/Component.js +1 -1
- package/esm/components/CustomizedLabel.js +1 -0
- package/esm/components/Dot/index.css +8 -8
- package/esm/components/Dot/index.js +1 -1
- package/esm/components/Legends/index.css +10 -10
- package/esm/components/Legends/index.js +1 -1
- package/esm/components/RectBar.js +1 -0
- package/esm/components/Tick/index.css +7 -7
- package/esm/components/Tick/index.js +1 -1
- package/esm/components/TooltipContent/index.css +11 -10
- package/esm/components/TooltipContent/index.js +1 -1
- package/esm/index.css +7 -7
- package/hooks/usePathBar/index.js +2 -0
- package/hooks/usePathBar/utils/getRadius.js +2 -0
- package/hooks/useSettings/index.js +2 -0
- package/hooks/useSettings/utils/setComposedChartsMargin.js +2 -0
- package/hooks/useSettings/utils/setDatas.js +2 -0
- package/hooks/useSettings/utils/setGradientCharts.js +2 -0
- package/hooks/useSettings/utils/setLegendMargin.js +2 -0
- package/hooks/useSettings/utils/sortByIndex.js +2 -0
- package/icons/Circle.js +2 -0
- package/icons/CircleLine.js +2 -0
- package/icons/FilledCircle.js +2 -0
- package/icons/Point.js +2 -0
- package/icons/StrokeCircle.js +2 -0
- package/index.css +7 -7
- package/index.js +2 -0
- package/modern/Component.d.ts +1 -1
- package/modern/Component.js +2 -1
- package/modern/components/CustomizedLabel.js +1 -0
- package/modern/components/Dot/index.css +8 -8
- package/modern/components/Dot/index.js +1 -1
- package/modern/components/Legends/index.css +10 -10
- package/modern/components/Legends/index.js +1 -1
- package/modern/components/RectBar.js +1 -0
- package/modern/components/Tick/index.css +7 -7
- package/modern/components/Tick/index.js +1 -1
- package/modern/components/TooltipContent/index.css +11 -10
- package/modern/components/TooltipContent/index.js +1 -1
- package/modern/index.css +7 -7
- package/package.json +2 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1ynlm */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
5
|
-
--color-light-border-primary: #
|
|
5
|
+
--color-light-border-primary: #dcdcdd; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
7
|
} :root {
|
|
7
8
|
} :root {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
--shadow-l: 0 24px 32px rgba(0, 0, 0, 0.08), 0 20px 24px rgba(0, 0, 0, 0.08),
|
|
10
|
+
0 12px 16px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.04);
|
|
10
11
|
|
|
11
12
|
/* Hard */
|
|
12
13
|
|
|
@@ -20,7 +21,7 @@
|
|
|
20
21
|
--gap-m: 16px;
|
|
21
22
|
} :root {
|
|
22
23
|
} :root {
|
|
23
|
-
} .
|
|
24
|
+
} .chart__tooltip_10zq4 {
|
|
24
25
|
background-color: var(--color-light-bg-primary);
|
|
25
26
|
border: 1px solid var(--color-light-border-primary);
|
|
26
27
|
box-shadow: var(--shadow-l);
|
|
@@ -28,15 +29,15 @@
|
|
|
28
29
|
padding: var(--gap-s) var(--gap-m);
|
|
29
30
|
pointer-events: none;
|
|
30
31
|
position: relative;
|
|
31
|
-
} .
|
|
32
|
+
} .chart__tooltipList_10zq4 {
|
|
32
33
|
position: relative;
|
|
33
34
|
z-index: 5;
|
|
34
35
|
list-style-type: none;
|
|
35
36
|
padding: 0;
|
|
36
37
|
margin: 0;
|
|
37
|
-
} .
|
|
38
|
+
} .chart__tooltipItem_10zq4 {
|
|
38
39
|
margin-bottom: 10px;
|
|
39
|
-
} .
|
|
40
|
+
} .chart__tooltipArrow_10zq4 {
|
|
40
41
|
position: absolute;
|
|
41
42
|
left: 0;
|
|
42
43
|
top: 50%;
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
height: 10px;
|
|
46
47
|
border: 1px solid var(--color-light-border-primary);
|
|
47
48
|
background-color: var(--color-light-bg-primary);
|
|
48
|
-
} .
|
|
49
|
+
} .chart__tooltipArrow_10zq4:before {
|
|
49
50
|
content: '';
|
|
50
51
|
position: absolute;
|
|
51
52
|
left: -2px;
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
border-style: solid;
|
|
56
57
|
border-width: 0 24px 24px 0;
|
|
57
58
|
border-color: transparent var(--color-light-bg-primary) transparent transparent;
|
|
58
|
-
} .
|
|
59
|
+
} .chart__tooltipArrowRight_10zq4 {
|
|
59
60
|
left: 100%;
|
|
60
61
|
transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
|
|
61
62
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
4
4
|
|
|
5
|
-
const styles = {"tooltip":"
|
|
5
|
+
const styles = {"tooltip":"chart__tooltip_10zq4","tooltipList":"chart__tooltipList_10zq4","tooltipItem":"chart__tooltipItem_10zq4","tooltipArrow":"chart__tooltipArrow_10zq4","tooltipArrowRight":"chart__tooltipArrowRight_10zq4"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const TooltipContent = ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }) => {
|
package/modern/index.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1b9vt */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-text-primary: #
|
|
5
|
-
} :root {
|
|
4
|
+
--color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
+
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
6
|
} :root {
|
|
7
7
|
} :root {
|
|
8
8
|
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
} :root {
|
|
16
16
|
} :root {
|
|
17
17
|
} :root {
|
|
18
|
-
} .
|
|
18
|
+
} .chart__coreChart_1czu3 .recharts-line path {
|
|
19
19
|
transition: d 0.2s ease-out;
|
|
20
|
-
} .
|
|
20
|
+
} .chart__coreChart_1czu3 .recharts-text tspan {
|
|
21
21
|
fill: var(--color-light-text-primary);
|
|
22
22
|
font-size: 16px;
|
|
23
23
|
line-height: 22px;
|
|
24
|
-
} .
|
|
24
|
+
} .chart__bar_1czu3 {
|
|
25
25
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
26
|
-
} .
|
|
26
|
+
} .chart__unfocused_1czu3 {
|
|
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.10",
|
|
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.1",
|
|
18
18
|
"classnames": "^2.3.1",
|
|
19
19
|
"recharts": "^2.1.2",
|
|
20
20
|
"tslib": "^2.4.0"
|