@alfalab/core-components-chart 2.0.3 → 2.0.4
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/CHANGELOG.md +27 -27
- package/dist/Component.js +2 -2
- package/dist/components/Dot/index.css +8 -8
- package/dist/components/Dot/index.js +1 -1
- package/dist/components/Legends/index.css +8 -8
- package/dist/components/Legends/index.js +1 -1
- package/dist/components/Tick/index.css +4 -4
- package/dist/components/Tick/index.js +1 -1
- package/dist/components/TooltipContent/index.css +7 -7
- package/dist/components/TooltipContent/index.js +1 -1
- package/dist/cssm/hooks/useSettings/utils/setDatas.d.ts +1 -2
- package/dist/esm/Component.js +2 -2
- package/dist/esm/components/Dot/index.css +8 -8
- package/dist/esm/components/Dot/index.js +1 -1
- package/dist/esm/components/Legends/index.css +8 -8
- package/dist/esm/components/Legends/index.js +1 -1
- package/dist/esm/components/Tick/index.css +4 -4
- package/dist/esm/components/Tick/index.js +1 -1
- package/dist/esm/components/TooltipContent/index.css +7 -7
- package/dist/esm/components/TooltipContent/index.js +1 -1
- package/dist/esm/hooks/useSettings/index.js +1 -1
- package/dist/esm/hooks/useSettings/utils/setDatas.js +1 -1
- package/dist/esm/hooks/useSettings/utils/setGradientCharts.js +1 -1
- package/dist/esm/index.css +3 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/{tslib.es6-3c7e2094.d.ts → tslib.es6-492ee33d.d.ts} +0 -0
- package/dist/esm/{tslib.es6-3c7e2094.js → tslib.es6-492ee33d.js} +0 -0
- package/dist/hooks/useSettings/index.js +1 -1
- package/dist/hooks/useSettings/utils/setDatas.d.ts +2 -1
- package/dist/hooks/useSettings/utils/setDatas.js +1 -1
- package/dist/hooks/useSettings/utils/setGradientCharts.js +1 -1
- package/dist/index.css +3 -3
- package/dist/index.js +1 -1
- package/dist/modern/Component.js +1 -1
- package/dist/modern/components/Dot/index.css +8 -8
- package/dist/modern/components/Dot/index.js +1 -1
- package/dist/modern/components/Legends/index.css +8 -8
- package/dist/modern/components/Legends/index.js +1 -1
- package/dist/modern/components/Tick/index.css +4 -4
- package/dist/modern/components/Tick/index.js +1 -1
- package/dist/modern/components/TooltipContent/index.css +7 -7
- package/dist/modern/components/TooltipContent/index.js +1 -1
- package/dist/modern/hooks/useSettings/utils/setDatas.d.ts +2 -1
- package/dist/modern/index.css +3 -3
- package/dist/{tslib.es6-c67688cb.d.ts → tslib.es6-058e904d.d.ts} +0 -0
- package/dist/{tslib.es6-c67688cb.js → tslib.es6-058e904d.js} +0 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [2.0.2](https://github.com/
|
|
6
|
+
## [2.0.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-chart@2.0.1...@alfalab/core-components-chart@2.0.2) (2022-03-30)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @alfalab/core-components-chart
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
## [2.0.1](https://github.com/
|
|
14
|
+
## [2.0.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-chart@2.0.0...@alfalab/core-components-chart@2.0.1) (2022-03-03)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @alfalab/core-components-chart
|
|
17
17
|
|
|
@@ -19,15 +19,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
# [2.0.0](https://github.com/
|
|
22
|
+
# [2.0.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-chart@1.2.2...@alfalab/core-components-chart@2.0.0) (2022-03-01)
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
### Features
|
|
26
26
|
|
|
27
|
-
* Исправить импорты в сторях. ([#998](https://github.com/
|
|
27
|
+
* Исправить импорты в сторях. ([#998](https://github.com/core-ds/core-components/issues/998)) ([e6a654a](https://github.com/core-ds/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
* refactor/calendar-range (#984) ([714f615](https://github.com/
|
|
30
|
+
* refactor/calendar-range (#984) ([714f615](https://github.com/core-ds/core-components/commit/714f61590586bafe1060e652943e95c133ed002a)), closes [#984](https://github.com/core-ds/core-components/issues/984)
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
### BREAKING CHANGES
|
|
@@ -80,7 +80,7 @@ Co-authored-by: dmitrsavk <dmitrsavk@yandex.ru>
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
## [1.2.2](https://github.com/
|
|
83
|
+
## [1.2.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-chart@1.2.1...@alfalab/core-components-chart@1.2.2) (2022-01-17)
|
|
84
84
|
|
|
85
85
|
**Note:** Version bump only for package @alfalab/core-components-chart
|
|
86
86
|
|
|
@@ -88,39 +88,39 @@ Co-authored-by: dmitrsavk <dmitrsavk@yandex.ru>
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
## [1.2.1](https://github.com/
|
|
91
|
+
## [1.2.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-chart@1.2.0...@alfalab/core-components-chart@1.2.1) (2021-10-19)
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
### Bug Fixes
|
|
95
95
|
|
|
96
|
-
* **chart:** fix deps, export types ([b46450a](https://github.com/
|
|
96
|
+
* **chart:** fix deps, export types ([b46450a](https://github.com/core-ds/core-components/commit/b46450ae954b10f0138c393482fe1271b001f085))
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
|
|
102
|
-
# [1.2.0](https://github.com/
|
|
102
|
+
# [1.2.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-chart@1.1.0...@alfalab/core-components-chart@1.2.0) (2021-10-11)
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
### Features
|
|
106
106
|
|
|
107
|
-
* **chart:** added border radius to bar charts ([cfd0ad2](https://github.com/
|
|
108
|
-
* **chart:** added chart component ([1119943](https://github.com/
|
|
109
|
-
* **chart:** added description ([8275346](https://github.com/
|
|
110
|
-
* **chart:** added props for legend icons height ([5c9b321](https://github.com/
|
|
111
|
-
* **chart:** bar radius ([e39251a](https://github.com/
|
|
112
|
-
* **chart:** beautifyed ([67cc96e](https://github.com/
|
|
113
|
-
* **chart:** edited doc ([8728271](https://github.com/
|
|
114
|
-
* **chart:** fix doc ([9d1e888](https://github.com/
|
|
115
|
-
* **chart:** fixed after pull master ) ([4c7d241](https://github.com/
|
|
116
|
-
* **chart:** fixed build error ([2efdd22](https://github.com/
|
|
117
|
-
* **chart:** fixed comments ([a611b9c](https://github.com/
|
|
118
|
-
* **chart:** fixed comments ([7ad1caf](https://github.com/
|
|
119
|
-
* **chart:** fixed comments ([555acb6](https://github.com/
|
|
120
|
-
* **chart:** fixed comments ([379e53d](https://github.com/
|
|
121
|
-
* **chart:** more description ([9a4c076](https://github.com/
|
|
122
|
-
* **chart:** pulled master ([176f7ae](https://github.com/
|
|
123
|
-
* **chart:** resolved conflicts ([7f734ba](https://github.com/
|
|
107
|
+
* **chart:** added border radius to bar charts ([cfd0ad2](https://github.com/core-ds/core-components/commit/cfd0ad2c23a2b80de0bc5dfae7b65a14263e37e9))
|
|
108
|
+
* **chart:** added chart component ([1119943](https://github.com/core-ds/core-components/commit/11199435e9ab53ae159707e94714a34952ad56c1))
|
|
109
|
+
* **chart:** added description ([8275346](https://github.com/core-ds/core-components/commit/827534640af0c0b06c1105755e9435d43cae8acd))
|
|
110
|
+
* **chart:** added props for legend icons height ([5c9b321](https://github.com/core-ds/core-components/commit/5c9b32154e6f39cddd3ac9668830959adba64648))
|
|
111
|
+
* **chart:** bar radius ([e39251a](https://github.com/core-ds/core-components/commit/e39251a37a52b6f434932439da0b86a03a26d901))
|
|
112
|
+
* **chart:** beautifyed ([67cc96e](https://github.com/core-ds/core-components/commit/67cc96e6afc020c3af5491d3d7ba0b89f50dbaf3))
|
|
113
|
+
* **chart:** edited doc ([8728271](https://github.com/core-ds/core-components/commit/8728271dc7f733c9b14a27c83a7136c22ef39ed6))
|
|
114
|
+
* **chart:** fix doc ([9d1e888](https://github.com/core-ds/core-components/commit/9d1e8889615f0701a43a9fbceca867557002ef31))
|
|
115
|
+
* **chart:** fixed after pull master ) ([4c7d241](https://github.com/core-ds/core-components/commit/4c7d241da264cde81e50573f96a2f035c31306e1))
|
|
116
|
+
* **chart:** fixed build error ([2efdd22](https://github.com/core-ds/core-components/commit/2efdd22f27e8229b2ad4cb7d355f61b218ea1bc1))
|
|
117
|
+
* **chart:** fixed comments ([a611b9c](https://github.com/core-ds/core-components/commit/a611b9c1c9bab1d5a15c2021bff270e9bbf5a934))
|
|
118
|
+
* **chart:** fixed comments ([7ad1caf](https://github.com/core-ds/core-components/commit/7ad1caf5be9f2da6a218b2c97cc7d96efb4d286d))
|
|
119
|
+
* **chart:** fixed comments ([555acb6](https://github.com/core-ds/core-components/commit/555acb699549c52f85d0dd58009ab1692344eb44))
|
|
120
|
+
* **chart:** fixed comments ([379e53d](https://github.com/core-ds/core-components/commit/379e53ddf8c857424600d5fc49b41c03f5ac11ea))
|
|
121
|
+
* **chart:** more description ([9a4c076](https://github.com/core-ds/core-components/commit/9a4c0762782c2f8ccee0e0c7c660514a10119960))
|
|
122
|
+
* **chart:** pulled master ([176f7ae](https://github.com/core-ds/core-components/commit/176f7ae6e7cdb2a3e18d2136523e5be6ecdbde3e))
|
|
123
|
+
* **chart:** resolved conflicts ([7f734ba](https://github.com/core-ds/core-components/commit/7f734bab0347af6e5d56d717d8b5cc0cf192f9f3))
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
|
|
@@ -131,7 +131,7 @@ Co-authored-by: dmitrsavk <dmitrsavk@yandex.ru>
|
|
|
131
131
|
|
|
132
132
|
### Features
|
|
133
133
|
|
|
134
|
-
* **chart:** add component ([#835](https://github.com/
|
|
134
|
+
* **chart:** add component ([#835](https://github.com/core-ds/core-components/issues/835)) ([17d840b](https://github.com/core-ds/core-components/commit/17d840b9f9f64474491d3ec58d3cda53ad07f0ca))
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
|
package/dist/Component.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-058e904d.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var cn = require('classnames');
|
|
8
8
|
var recharts = require('recharts');
|
|
@@ -40,7 +40,7 @@ var CustomizedHOC = function (Component, options) {
|
|
|
40
40
|
return NewComponent;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
var styles = {"coreChart":"
|
|
43
|
+
var styles = {"coreChart":"chart__coreChart_k5fw4","bar":"chart__bar_k5fw4","unfocused":"chart__unfocused_k5fw4"};
|
|
44
44
|
require('./index.css')
|
|
45
45
|
|
|
46
46
|
var Chart = function (props) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: ur80b */
|
|
2
|
+
.chart__dotUnfocused_1aqg3 {
|
|
3
3
|
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
6
|
+
.chart__dot_1aqg3,
|
|
7
|
+
.chart__dotItem_1aqg3,
|
|
8
|
+
.chart__dotWrap_1aqg3 {
|
|
9
9
|
transition: all 0.2s ease;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
12
|
+
.chart__dot_1aqg3 {
|
|
13
|
+
animation: chart__showDot_1aqg3 0.5s ease;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@keyframes
|
|
16
|
+
@keyframes chart__showDot_1aqg3 {
|
|
17
17
|
from {
|
|
18
18
|
opacity: 0;
|
|
19
19
|
}
|
|
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"dotUnfocused":"
|
|
14
|
+
var styles = {"dotUnfocused":"chart__dotUnfocused_1aqg3","dot":"chart__dot_1aqg3","dotItem":"chart__dotItem_1aqg3","dotWrap":"chart__dotWrap_1aqg3","showDot":"chart__showDot_1aqg3"};
|
|
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: igqhv */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,31 +10,31 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-2xl: 32px;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.chart__legendContent_1h21j {
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
flex-wrap: wrap;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.chart__legendWrap_1h21j {
|
|
19
19
|
width: 100%;
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding: 0;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.chart__legendItem_1h21j {
|
|
24
24
|
margin-right: var(--gap-2xl);
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
display: inline-block;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.chart__legendItem_1h21j:last-child {
|
|
29
29
|
margin-right: 0;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.chart__legendUnactive_1h21j {
|
|
32
32
|
opacity: 0.3;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.chart__legendIcon_1h21j {
|
|
35
35
|
margin-right: 13px;
|
|
36
36
|
display: flex;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.chart__legendValue_1h21j {
|
|
39
39
|
text-transform: capitalize;
|
|
40
40
|
}
|
|
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
16
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
17
17
|
|
|
18
|
-
var styles = {"legendContent":"
|
|
18
|
+
var styles = {"legendContent":"chart__legendContent_1h21j","legendWrap":"chart__legendWrap_1h21j","legendItem":"chart__legendItem_1h21j","legendUnactive":"chart__legendUnactive_1h21j","legendIcon":"chart__legendIcon_1h21j","legendValue":"chart__legendValue_1h21j"};
|
|
19
19
|
require('./index.css')
|
|
20
20
|
|
|
21
21
|
var icons = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1sdpd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-dark-bg-primary: #0b1f35;
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
|
|
12
12
|
/* Hard up */
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
.chart__tickText_alayv {
|
|
15
15
|
fill: var(--color-light-text-primary);
|
|
16
16
|
font-size: 16px;
|
|
17
17
|
line-height: 24px;
|
|
18
18
|
font-weight: 400;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.chart__circle_alayv {
|
|
21
21
|
opacity: 0.3;
|
|
22
22
|
fill: var(--color-dark-bg-primary);
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.chart__circle_alayv {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
fill: var(--color-dark-bg-primary);
|
|
27
27
|
}
|
|
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
11
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
12
12
|
|
|
13
|
-
var styles = {"tickText":"
|
|
13
|
+
var styles = {"tickText":"chart__tickText_alayv","circle":"chart__circle_alayv"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
var Tick = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 180ns */
|
|
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_q3q2x {
|
|
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_q3q2x {
|
|
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_q3q2x {
|
|
39
39
|
margin-bottom: 10px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.chart__tooltipArrow_q3q2x {
|
|
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_q3q2x: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_q3q2x {
|
|
63
63
|
left: 100%;
|
|
64
64
|
transform: translate(-50%, -50%) scale(-1, 1) rotate(45deg);
|
|
65
65
|
}
|
|
@@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"tooltip":"
|
|
14
|
+
var styles = {"tooltip":"chart__tooltip_q3q2x","tooltipList":"chart__tooltipList_q3q2x","tooltipItem":"chart__tooltipItem_q3q2x","tooltipArrow":"chart__tooltipArrow_q3q2x","tooltipArrowRight":"chart__tooltipArrowRight_q3q2x"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var TooltipContent = function (_a) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { DataDynamicBooleanProps, DataDynamicProps } from "../../../types/utils/data.types";
|
|
3
2
|
import { SeriaProps } from "../../../types/seria.types";
|
|
4
3
|
type DatasResultProps = [DataDynamicProps[], DataDynamicBooleanProps, number];
|
|
5
|
-
declare const setDatas: (series: SeriaProps[], labels:
|
|
4
|
+
declare const setDatas: (series: SeriaProps[], labels: (string | number)[]) => DatasResultProps;
|
|
6
5
|
export { setDatas };
|
package/dist/esm/Component.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __assign } from './tslib.es6-492ee33d.js';
|
|
2
2
|
import React, { useState, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { Legend, CartesianGrid, XAxis, YAxis, Brush, Tooltip, Area, Line, Bar, LabelList, Cell, ResponsiveContainer, ComposedChart } from 'recharts';
|
|
@@ -31,7 +31,7 @@ var CustomizedHOC = function (Component, options) {
|
|
|
31
31
|
return NewComponent;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
var styles = {"coreChart":"
|
|
34
|
+
var styles = {"coreChart":"chart__coreChart_k5fw4","bar":"chart__bar_k5fw4","unfocused":"chart__unfocused_k5fw4"};
|
|
35
35
|
require('./index.css')
|
|
36
36
|
|
|
37
37
|
var Chart = function (props) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: ur80b */
|
|
2
|
+
.chart__dotUnfocused_1aqg3 {
|
|
3
3
|
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
6
|
+
.chart__dot_1aqg3,
|
|
7
|
+
.chart__dotItem_1aqg3,
|
|
8
|
+
.chart__dotWrap_1aqg3 {
|
|
9
9
|
transition: all 0.2s ease;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
12
|
+
.chart__dot_1aqg3 {
|
|
13
|
+
animation: chart__showDot_1aqg3 0.5s ease;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@keyframes
|
|
16
|
+
@keyframes chart__showDot_1aqg3 {
|
|
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_1aqg3","dot":"chart__dot_1aqg3","dotItem":"chart__dotItem_1aqg3","dotWrap":"chart__dotWrap_1aqg3","showDot":"chart__showDot_1aqg3"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Dot = React.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: igqhv */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,31 +10,31 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-2xl: 32px;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.chart__legendContent_1h21j {
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
flex-wrap: wrap;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.chart__legendWrap_1h21j {
|
|
19
19
|
width: 100%;
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding: 0;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.chart__legendItem_1h21j {
|
|
24
24
|
margin-right: var(--gap-2xl);
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
display: inline-block;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.chart__legendItem_1h21j:last-child {
|
|
29
29
|
margin-right: 0;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.chart__legendUnactive_1h21j {
|
|
32
32
|
opacity: 0.3;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.chart__legendIcon_1h21j {
|
|
35
35
|
margin-right: 13px;
|
|
36
36
|
display: flex;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.chart__legendValue_1h21j {
|
|
39
39
|
text-transform: capitalize;
|
|
40
40
|
}
|
|
@@ -6,7 +6,7 @@ import { CircleLineIcon } from '../../icons/CircleLine.js';
|
|
|
6
6
|
import { FilledCircleIcon } from '../../icons/FilledCircle.js';
|
|
7
7
|
import { StrokeCircleIcon } from '../../icons/StrokeCircle.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"legendContent":"
|
|
9
|
+
var styles = {"legendContent":"chart__legendContent_1h21j","legendWrap":"chart__legendWrap_1h21j","legendItem":"chart__legendItem_1h21j","legendUnactive":"chart__legendUnactive_1h21j","legendIcon":"chart__legendIcon_1h21j","legendValue":"chart__legendValue_1h21j"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
var icons = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1sdpd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-dark-bg-primary: #0b1f35;
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
|
|
12
12
|
/* Hard up */
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
.chart__tickText_alayv {
|
|
15
15
|
fill: var(--color-light-text-primary);
|
|
16
16
|
font-size: 16px;
|
|
17
17
|
line-height: 24px;
|
|
18
18
|
font-weight: 400;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.chart__circle_alayv {
|
|
21
21
|
opacity: 0.3;
|
|
22
22
|
fill: var(--color-dark-bg-primary);
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.chart__circle_alayv {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
fill: var(--color-dark-bg-primary);
|
|
27
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"tickText":"
|
|
4
|
+
var styles = {"tickText":"chart__tickText_alayv","circle":"chart__circle_alayv"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Tick = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 180ns */
|
|
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_q3q2x {
|
|
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_q3q2x {
|
|
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_q3q2x {
|
|
39
39
|
margin-bottom: 10px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.chart__tooltipArrow_q3q2x {
|
|
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_q3q2x: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_q3q2x {
|
|
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/dist/esm';
|
|
4
4
|
|
|
5
|
-
var styles = {"tooltip":"
|
|
5
|
+
var styles = {"tooltip":"chart__tooltip_q3q2x","tooltipList":"chart__tooltipList_q3q2x","tooltipItem":"chart__tooltipItem_q3q2x","tooltipArrow":"chart__tooltipArrow_q3q2x","tooltipArrowRight":"chart__tooltipArrowRight_q3q2x"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var TooltipContent = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __assign } from '../../tslib.es6-492ee33d.js';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
import { setComposedChartsMargin } from './utils/setComposedChartsMargin.js';
|
|
4
4
|
import { setDatas } from './utils/setDatas.js';
|
package/dist/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1raqh */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.chart__bar_k5fw4 {
|
|
11
11
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.chart__unfocused_k5fw4 {
|
|
14
14
|
opacity: 0.3;
|
|
15
15
|
}
|
package/dist/esm/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../tslib.es6-058e904d.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var hooks_useSettings_utils_setComposedChartsMargin = require('./utils/setComposedChartsMargin.js');
|
|
8
8
|
var hooks_useSettings_utils_setDatas = require('./utils/setDatas.js');
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DataDynamicBooleanProps, DataDynamicProps } from "../../../types/utils/data.types";
|
|
2
3
|
import { SeriaProps } from "../../../types/seria.types";
|
|
3
4
|
type DatasResultProps = [DataDynamicProps[], DataDynamicBooleanProps, number];
|
|
4
|
-
declare const setDatas: (series: SeriaProps[], labels: (
|
|
5
|
+
declare const setDatas: (series: SeriaProps[], labels: import("react").Key[]) => DatasResultProps;
|
|
5
6
|
export { setDatas };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('../../../tslib.es6-
|
|
5
|
+
var tslib_es6 = require('../../../tslib.es6-058e904d.js');
|
|
6
6
|
|
|
7
7
|
var setGradientCharts = function (series) {
|
|
8
8
|
var filterSeries = series.filter(function (item) { return item.chart !== 'gradient'; });
|
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1raqh */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.chart__bar_k5fw4 {
|
|
11
11
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.chart__unfocused_k5fw4 {
|
|
14
14
|
opacity: 0.3;
|
|
15
15
|
}
|
package/dist/index.js
CHANGED
package/dist/modern/Component.js
CHANGED
|
@@ -30,7 +30,7 @@ const CustomizedHOC = (Component, options) => {
|
|
|
30
30
|
return NewComponent;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
var styles = {"coreChart":"
|
|
33
|
+
var styles = {"coreChart":"chart__coreChart_k5fw4","bar":"chart__bar_k5fw4","unfocused":"chart__unfocused_k5fw4"};
|
|
34
34
|
require('./index.css')
|
|
35
35
|
|
|
36
36
|
const Chart = (props) => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
1
|
+
/* hash: ur80b */
|
|
2
|
+
.chart__dotUnfocused_1aqg3 {
|
|
3
3
|
opacity: 0.3;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
6
|
+
.chart__dot_1aqg3,
|
|
7
|
+
.chart__dotItem_1aqg3,
|
|
8
|
+
.chart__dotWrap_1aqg3 {
|
|
9
9
|
transition: all 0.2s ease;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
12
|
+
.chart__dot_1aqg3 {
|
|
13
|
+
animation: chart__showDot_1aqg3 0.5s ease;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@keyframes
|
|
16
|
+
@keyframes chart__showDot_1aqg3 {
|
|
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_1aqg3","dot":"chart__dot_1aqg3","dotItem":"chart__dotItem_1aqg3","dotWrap":"chart__dotWrap_1aqg3","showDot":"chart__showDot_1aqg3"};
|
|
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: igqhv */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -10,31 +10,31 @@
|
|
|
10
10
|
:root {
|
|
11
11
|
--gap-2xl: 32px;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.chart__legendContent_1h21j {
|
|
14
14
|
display: flex;
|
|
15
15
|
align-items: center;
|
|
16
16
|
flex-wrap: wrap;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.chart__legendWrap_1h21j {
|
|
19
19
|
width: 100%;
|
|
20
20
|
margin: 0;
|
|
21
21
|
padding: 0;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.chart__legendItem_1h21j {
|
|
24
24
|
margin-right: var(--gap-2xl);
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
display: inline-block;
|
|
27
27
|
}
|
|
28
|
-
.
|
|
28
|
+
.chart__legendItem_1h21j:last-child {
|
|
29
29
|
margin-right: 0;
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.chart__legendUnactive_1h21j {
|
|
32
32
|
opacity: 0.3;
|
|
33
33
|
}
|
|
34
|
-
.
|
|
34
|
+
.chart__legendIcon_1h21j {
|
|
35
35
|
margin-right: 13px;
|
|
36
36
|
display: flex;
|
|
37
37
|
}
|
|
38
|
-
.
|
|
38
|
+
.chart__legendValue_1h21j {
|
|
39
39
|
text-transform: capitalize;
|
|
40
40
|
}
|
|
@@ -6,7 +6,7 @@ import { CircleLineIcon } from '../../icons/CircleLine.js';
|
|
|
6
6
|
import { FilledCircleIcon } from '../../icons/FilledCircle.js';
|
|
7
7
|
import { StrokeCircleIcon } from '../../icons/StrokeCircle.js';
|
|
8
8
|
|
|
9
|
-
var styles = {"legendContent":"
|
|
9
|
+
var styles = {"legendContent":"chart__legendContent_1h21j","legendWrap":"chart__legendWrap_1h21j","legendItem":"chart__legendItem_1h21j","legendUnactive":"chart__legendUnactive_1h21j","legendIcon":"chart__legendIcon_1h21j","legendValue":"chart__legendValue_1h21j"};
|
|
10
10
|
require('./index.css')
|
|
11
11
|
|
|
12
12
|
const icons = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1sdpd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-dark-bg-primary: #0b1f35;
|
|
4
4
|
--color-light-text-primary: #0b1f35;
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
|
|
12
12
|
/* Hard up */
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
.chart__tickText_alayv {
|
|
15
15
|
fill: var(--color-light-text-primary);
|
|
16
16
|
font-size: 16px;
|
|
17
17
|
line-height: 24px;
|
|
18
18
|
font-weight: 400;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.chart__circle_alayv {
|
|
21
21
|
opacity: 0.3;
|
|
22
22
|
fill: var(--color-dark-bg-primary);
|
|
23
23
|
}
|
|
24
|
-
.
|
|
24
|
+
.chart__circle_alayv {
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
fill: var(--color-dark-bg-primary);
|
|
27
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"tickText":"
|
|
4
|
+
var styles = {"tickText":"chart__tickText_alayv","circle":"chart__circle_alayv"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Tick = ({ y, payload, tickFormatter, xAxis }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 180ns */
|
|
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_q3q2x {
|
|
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_q3q2x {
|
|
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_q3q2x {
|
|
39
39
|
margin-bottom: 10px;
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.chart__tooltipArrow_q3q2x {
|
|
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_q3q2x: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_q3q2x {
|
|
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/dist/modern';
|
|
4
4
|
|
|
5
|
-
var styles = {"tooltip":"
|
|
5
|
+
var styles = {"tooltip":"chart__tooltip_q3q2x","tooltipList":"chart__tooltipList_q3q2x","tooltipItem":"chart__tooltipItem_q3q2x","tooltipArrow":"chart__tooltipArrow_q3q2x","tooltipArrowRight":"chart__tooltipArrowRight_q3q2x"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const TooltipContent = ({ payload, separator, label, tooltipArrowSide, arrow, series, labelFormatter, labelStyle, }) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DataDynamicBooleanProps, DataDynamicProps } from "../../../types/utils/data.types";
|
|
2
3
|
import { SeriaProps } from "../../../types/seria.types";
|
|
3
4
|
type DatasResultProps = [DataDynamicProps[], DataDynamicBooleanProps, number];
|
|
4
|
-
declare const setDatas: (series: SeriaProps[], labels: (
|
|
5
|
+
declare const setDatas: (series: SeriaProps[], labels: import("react").Key[]) => DatasResultProps;
|
|
5
6
|
export { setDatas };
|
package/dist/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1raqh */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
/* Hard up */
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.chart__bar_k5fw4 {
|
|
11
11
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.chart__unfocused_k5fw4 {
|
|
14
14
|
opacity: 0.3;
|
|
15
15
|
}
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-chart",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Chart component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@alfalab/core-components-typography": "^2.5.
|
|
18
|
+
"@alfalab/core-components-typography": "^2.5.2",
|
|
19
19
|
"classnames": "2.2.6",
|
|
20
20
|
"recharts": "2.1.2"
|
|
21
21
|
},
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.9.0 || ^17.0.1"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "8d998af881e79e8b524179aa50cdb117c1380c74"
|
|
29
29
|
}
|