@alfalab/core-components-chart 3.1.4 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Component.js +39 -41
- package/components/CustomizedLabel.js +5 -7
- package/components/Dot/index.css +8 -8
- package/components/Dot/index.js +9 -11
- package/components/Legends/index.css +8 -8
- package/components/Legends/index.js +13 -15
- package/components/LinearGradient.js +3 -5
- package/components/RectBar.js +5 -7
- package/components/Tick/index.css +4 -4
- package/components/Tick/index.js +7 -9
- package/components/TooltipContent/index.css +7 -7
- package/components/TooltipContent/index.js +12 -14
- package/cssm/Component.js +41 -43
- package/cssm/components/CustomizedLabel.js +5 -7
- package/cssm/components/Dot/index.js +10 -12
- package/cssm/components/Legends/index.js +13 -15
- package/cssm/components/LinearGradient.js +3 -5
- package/cssm/components/RectBar.js +5 -7
- package/cssm/components/Tick/index.js +7 -9
- package/cssm/components/TooltipContent/index.js +12 -14
- package/cssm/hooks/usePathBar/index.js +0 -2
- package/cssm/hooks/usePathBar/utils/getRadius.js +0 -2
- package/cssm/hooks/useSettings/index.js +1 -3
- package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +0 -2
- package/cssm/hooks/useSettings/utils/setDatas.js +4 -6
- package/cssm/hooks/useSettings/utils/setGradientCharts.js +2 -4
- package/cssm/hooks/useSettings/utils/setLegendMargin.js +0 -2
- package/cssm/hooks/useSettings/utils/sortByIndex.js +0 -2
- package/cssm/icons/Circle.js +4 -6
- package/cssm/icons/CircleLine.js +5 -7
- package/cssm/icons/FilledCircle.js +8 -10
- package/cssm/icons/Point.js +5 -7
- package/cssm/icons/StrokeCircle.js +4 -6
- package/cssm/index.js +9 -11
- package/cssm/{tslib.es6-0de342ae.d.ts → tslib.es6-19b064c1.d.ts} +0 -0
- package/cssm/{tslib.es6-0de342ae.js → tslib.es6-19b064c1.js} +0 -0
- package/cssm/types/utils/index.d.ts +1 -0
- package/esm/Component.js +23 -23
- package/esm/components/CustomizedLabel.js +1 -1
- package/esm/components/Dot/index.css +8 -8
- package/esm/components/Dot/index.js +3 -3
- package/esm/components/Legends/index.css +8 -8
- package/esm/components/Legends/index.js +4 -4
- package/esm/components/LinearGradient.js +1 -1
- package/esm/components/RectBar.js +2 -2
- package/esm/components/Tick/index.css +4 -4
- package/esm/components/Tick/index.js +2 -2
- package/esm/components/TooltipContent/index.css +7 -7
- package/esm/components/TooltipContent/index.js +2 -2
- package/esm/hooks/useSettings/index.js +1 -1
- package/esm/hooks/useSettings/utils/setDatas.js +4 -4
- package/esm/hooks/useSettings/utils/setGradientCharts.js +2 -2
- package/esm/index.css +5 -5
- package/esm/index.js +7 -7
- package/esm/{tslib.es6-98750278.d.ts → tslib.es6-44e6acd2.d.ts} +0 -0
- package/esm/{tslib.es6-98750278.js → tslib.es6-44e6acd2.js} +0 -0
- package/esm/types/utils/index.d.ts +1 -0
- package/hooks/usePathBar/index.js +0 -2
- package/hooks/usePathBar/utils/getRadius.js +0 -2
- package/hooks/useSettings/index.js +1 -3
- package/hooks/useSettings/utils/setComposedChartsMargin.js +0 -2
- package/hooks/useSettings/utils/setDatas.js +4 -6
- package/hooks/useSettings/utils/setGradientCharts.js +2 -4
- package/hooks/useSettings/utils/setLegendMargin.js +0 -2
- package/hooks/useSettings/utils/sortByIndex.js +0 -2
- package/icons/Circle.js +4 -6
- package/icons/CircleLine.js +5 -7
- package/icons/FilledCircle.js +8 -10
- package/icons/Point.js +5 -7
- package/icons/StrokeCircle.js +4 -6
- package/index.css +5 -5
- package/index.js +7 -9
- package/modern/Component.js +10 -10
- package/modern/components/CustomizedLabel.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/RectBar.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/modern/index.js +6 -6
- package/modern/types/utils/index.d.ts +1 -0
- package/package.json +2 -2
- package/{tslib.es6-27fe16ea.d.ts → tslib.es6-0a16d1e2.d.ts} +0 -0
- package/{tslib.es6-27fe16ea.js → tslib.es6-0a16d1e2.js} +0 -0
- package/types/utils/index.d.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const styles = {"tickText":"chart__tickText_gmual","circle":"chart__circle_gmual"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Tick = ({ y, payload, tickFormatter, xAxis }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ion8l */
|
|
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
|
-
.
|
|
22
|
+
.chart__tooltip_59a0x {
|
|
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
|
-
.
|
|
31
|
+
.chart__tooltipList_59a0x {
|
|
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
|
-
.
|
|
38
|
+
.chart__tooltipItem_59a0x {
|
|
39
39
|
margin-bottom: 10px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.chart__tooltipArrow_59a0x {
|
|
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
|
-
.
|
|
51
|
+
.chart__tooltipArrow_59a0x: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
|
-
.
|
|
62
|
+
.chart__tooltipArrowRight_59a0x {
|
|
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
|
-
|
|
5
|
+
const styles = {"tooltip":"chart__tooltip_59a0x","tooltipList":"chart__tooltipList_59a0x","tooltipItem":"chart__tooltipItem_59a0x","tooltipArrow":"chart__tooltipArrow_59a0x","tooltipArrowRight":"chart__tooltipArrowRight_59a0x"};
|
|
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: 1uc1h */
|
|
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
|
-
.
|
|
13
|
+
.chart__coreChart_12np2 .recharts-line path {
|
|
14
14
|
transition: d 0.2s ease-out;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.chart__coreChart_12np2 .recharts-text tspan {
|
|
17
17
|
fill: var(--color-light-text-primary);
|
|
18
18
|
font-size: 16px;
|
|
19
19
|
line-height: 22px;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
21
|
+
.chart__bar_12np2 {
|
|
22
22
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.chart__unfocused_12np2 {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
}
|
package/modern/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
+
export { Chart } from './Component.js';
|
|
1
2
|
import 'react';
|
|
2
3
|
import 'classnames';
|
|
3
4
|
import 'recharts';
|
|
4
|
-
import './hooks/usePathBar/utils/getRadius.js';
|
|
5
|
-
import './hooks/usePathBar/index.js';
|
|
6
5
|
import './components/CustomizedLabel.js';
|
|
7
|
-
import './
|
|
6
|
+
import './hooks/usePathBar/index.js';
|
|
7
|
+
import './hooks/usePathBar/utils/getRadius.js';
|
|
8
8
|
import './components/Dot/index.js';
|
|
9
|
+
import './icons/Point.js';
|
|
10
|
+
import './components/Legends/index.js';
|
|
9
11
|
import '@alfalab/core-components-typography/modern';
|
|
10
12
|
import './icons/Circle.js';
|
|
11
13
|
import './icons/CircleLine.js';
|
|
12
14
|
import './icons/FilledCircle.js';
|
|
13
15
|
import './icons/StrokeCircle.js';
|
|
14
|
-
import './components/Legends/index.js';
|
|
15
16
|
import './components/LinearGradient.js';
|
|
16
17
|
import './components/RectBar.js';
|
|
17
18
|
import './components/Tick/index.js';
|
|
18
19
|
import './components/TooltipContent/index.js';
|
|
19
|
-
|
|
20
|
+
import './hooks/useSettings/index.js';
|
|
20
21
|
import './hooks/useSettings/utils/setComposedChartsMargin.js';
|
|
21
22
|
import './hooks/useSettings/utils/setDatas.js';
|
|
22
23
|
import './hooks/useSettings/utils/setGradientCharts.js';
|
|
23
24
|
import './hooks/useSettings/utils/setLegendMargin.js';
|
|
24
25
|
import './hooks/useSettings/utils/sortByIndex.js';
|
|
25
|
-
import './hooks/useSettings/index.js';
|
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.6",
|
|
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.
|
|
17
|
+
"@alfalab/core-components-typography": "^3.0.8",
|
|
18
18
|
"classnames": "^2.3.1",
|
|
19
19
|
"recharts": "^2.1.2"
|
|
20
20
|
},
|
|
File without changes
|
|
File without changes
|
package/types/utils/index.d.ts
CHANGED