@semcore/mini-chart 0.29.1 → 16.0.0-prerelease.11
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 +6 -0
- package/lib/cjs/component/score/Donut.js +14 -16
- package/lib/cjs/component/score/Donut.js.map +1 -1
- package/lib/cjs/component/score/Line.js +21 -23
- package/lib/cjs/component/score/Line.js.map +1 -1
- package/lib/cjs/component/score/Line.types.js.map +1 -1
- package/lib/cjs/component/trend/Bar.js +12 -14
- package/lib/cjs/component/trend/Bar.js.map +1 -1
- package/lib/cjs/component/trend/Line.js +13 -15
- package/lib/cjs/component/trend/Line.js.map +1 -1
- package/lib/es6/component/score/Donut.js +13 -13
- package/lib/es6/component/score/Donut.js.map +1 -1
- package/lib/es6/component/score/Line.js +21 -21
- package/lib/es6/component/score/Line.js.map +1 -1
- package/lib/es6/component/score/Line.types.js.map +1 -1
- package/lib/es6/component/trend/Bar.js +11 -11
- package/lib/es6/component/trend/Bar.js.map +1 -1
- package/lib/es6/component/trend/Line.js +12 -12
- package/lib/es6/component/trend/Line.js.map +1 -1
- package/lib/esm/component/score/Donut.mjs +101 -85
- package/lib/esm/component/score/Line.mjs +102 -83
- package/lib/esm/component/trend/Bar.mjs +82 -70
- package/lib/esm/component/trend/Line.mjs +116 -101
- package/lib/esm/component/trend/Trend.mjs +47 -35
- package/lib/esm/index.mjs +13 -13
- package/lib/types/component/score/Donut.d.ts +1 -1
- package/lib/types/component/score/Line.types.d.ts +2 -2
- package/lib/types/component/trend/Bar.d.ts +1 -1
- package/lib/types/component/trend/Line.d.ts +1 -1
- package/package.json +3 -8
|
@@ -1,140 +1,155 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { sstyled
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
var M = (
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
+
import { sstyled, createComponent, assignProps } from "@semcore/core";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
11
|
+
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
12
|
+
import { Trend } from "./Trend.mjs";
|
|
13
|
+
import { Box } from "@semcore/flex-box";
|
|
14
|
+
import { extractAriaProps } from "@semcore/core/lib/utils/ariaProps";
|
|
15
|
+
var style = (
|
|
17
16
|
/*__reshadow_css_start__*/
|
|
18
|
-
(
|
|
17
|
+
(sstyled.insert(
|
|
19
18
|
/*__inner_css_start__*/
|
|
20
|
-
"@keyframes
|
|
21
|
-
"
|
|
19
|
+
"@keyframes pulse_7jer1{0%,to{opacity:1}50%{opacity:.4}}.___SDonutContainer_7jer1_gg_.__loading_7jer1_gg_,.___SLineGauge_7jer1_gg_.__loading_7jer1_gg_,.___STrendBar_7jer1_gg_.__loading_7jer1_gg_,.___STrendLine_7jer1_gg_.__loading_7jer1_gg_{animation-name:pulse_7jer1;animation-iteration-count:infinite;animation-timing-function:ease-in-out;animation-duration:1.6s;will-change:opacity}",
|
|
20
|
+
"7jer1_gg_"
|
|
22
21
|
), {
|
|
23
|
-
__SLineGauge: "
|
|
24
|
-
_loading: "
|
|
25
|
-
__SDonutContainer: "
|
|
26
|
-
__STrendLine: "
|
|
27
|
-
__STrendBar: "
|
|
28
|
-
"@pulse": "
|
|
22
|
+
"__SLineGauge": "___SLineGauge_7jer1_gg_",
|
|
23
|
+
"_loading": "__loading_7jer1_gg_",
|
|
24
|
+
"__SDonutContainer": "___SDonutContainer_7jer1_gg_",
|
|
25
|
+
"__STrendLine": "___STrendLine_7jer1_gg_",
|
|
26
|
+
"__STrendBar": "___STrendBar_7jer1_gg_",
|
|
27
|
+
"@pulse": "pulse_7jer1"
|
|
29
28
|
})
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
);
|
|
30
|
+
var TrendLineRoot = /* @__PURE__ */ function(_Trend) {
|
|
31
|
+
_inherits(TrendLineRoot2, _Trend);
|
|
32
|
+
var _super = _createSuper(TrendLineRoot2);
|
|
33
|
+
function TrendLineRoot2() {
|
|
34
|
+
_classCallCheck(this, TrendLineRoot2);
|
|
35
|
+
return _super.apply(this, arguments);
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
+
_createClass(TrendLineRoot2, [{
|
|
37
38
|
key: "defaultData",
|
|
38
|
-
get: function() {
|
|
39
|
+
get: function get() {
|
|
39
40
|
return [15, 70, 20, 85, 20];
|
|
40
41
|
}
|
|
41
42
|
}, {
|
|
42
43
|
key: "lastPointRadius",
|
|
43
|
-
get: function() {
|
|
44
|
-
var
|
|
45
|
-
return (
|
|
44
|
+
get: function get() {
|
|
45
|
+
var _this$asProps$lastPoi;
|
|
46
|
+
return (_this$asProps$lastPoi = this.asProps.lastPointRadius) !== null && _this$asProps$lastPoi !== void 0 ? _this$asProps$lastPoi : 6;
|
|
46
47
|
}
|
|
47
48
|
}, {
|
|
48
49
|
key: "data",
|
|
49
|
-
get: function() {
|
|
50
|
-
var
|
|
51
|
-
|
|
50
|
+
get: function get() {
|
|
51
|
+
var _this$asProps = this.asProps, data = _this$asProps.data, loading = _this$asProps.loading;
|
|
52
|
+
if (loading) {
|
|
53
|
+
return this.defaultData;
|
|
54
|
+
}
|
|
55
|
+
return data;
|
|
52
56
|
}
|
|
53
57
|
}, {
|
|
54
58
|
key: "svgWidth",
|
|
55
|
-
get: function() {
|
|
59
|
+
get: function get() {
|
|
56
60
|
return this.asProps.lastPointColor ? this.defaultWidth + this.lastPointRadius : this.defaultWidth;
|
|
57
61
|
}
|
|
58
62
|
}, {
|
|
59
63
|
key: "svgHeight",
|
|
60
|
-
get: function() {
|
|
64
|
+
get: function get() {
|
|
61
65
|
return this.asProps.lastPointColor ? this.defaultHeight + this.lastPointRadius : this.defaultHeight;
|
|
62
66
|
}
|
|
63
67
|
}, {
|
|
64
68
|
key: "color",
|
|
65
|
-
get: function() {
|
|
66
|
-
var
|
|
67
|
-
|
|
69
|
+
get: function get() {
|
|
70
|
+
var _this$asProps2 = this.asProps, resolveColor = _this$asProps2.resolveColor, _this$asProps2$color = _this$asProps2.color, color = _this$asProps2$color === void 0 ? "chart-palette-order-1" : _this$asProps2$color, loading = _this$asProps2.loading;
|
|
71
|
+
if (loading) {
|
|
72
|
+
return resolveColor("skeleton-bg");
|
|
73
|
+
}
|
|
74
|
+
return resolveColor(color);
|
|
68
75
|
}
|
|
69
76
|
}, {
|
|
70
77
|
key: "render",
|
|
71
|
-
value: function() {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
fill:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
78
|
+
value: function render() {
|
|
79
|
+
var _ref = this.asProps, _ref2;
|
|
80
|
+
var STrendLine = Box;
|
|
81
|
+
var _this$asProps3 = this.asProps, uid = _this$asProps3.uid, withArea = _this$asProps3.withArea, animate = _this$asProps3.animate, lastPointColor = _this$asProps3.lastPointColor, resolveColor = _this$asProps3.resolveColor, loading = _this$asProps3.loading, styles = _this$asProps3.styles;
|
|
82
|
+
var points = [];
|
|
83
|
+
var length = this.data.length;
|
|
84
|
+
var step = this.defaultWidth / (length - 1);
|
|
85
|
+
for (var i = 0; i < length; i++) {
|
|
86
|
+
points.push("".concat(step * i, ",").concat(this.defaultHeight - this.data[i]));
|
|
87
|
+
}
|
|
88
|
+
var _extractAriaProps = extractAriaProps(this.asProps), __excludeProps = _extractAriaProps.__excludeProps, extractedAriaProps = _extractAriaProps.extractedAriaProps;
|
|
89
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(STrendLine, _ref2.cn("STrendLine", _objectSpread({}, assignProps({
|
|
90
|
+
"ref": this.containerRef,
|
|
91
|
+
"__excludeProps": ["data"].concat(_toConsumableArray(__excludeProps))
|
|
92
|
+
}, _ref))), /* @__PURE__ */ React.createElement("svg", _ref2.cn("svg", _objectSpread({
|
|
93
|
+
"width": "100%",
|
|
94
|
+
"height": "100%",
|
|
95
|
+
"viewBox": "0 0 ".concat(this.svgWidth, " ").concat(this.svgHeight),
|
|
96
|
+
"role": "img"
|
|
97
|
+
}, extractedAriaProps)), /* @__PURE__ */ React.createElement("polyline", _ref2.cn("polyline", {
|
|
98
|
+
"points": points.join(" "),
|
|
99
|
+
"stroke": this.color,
|
|
100
|
+
"strokeWidth": "4",
|
|
101
|
+
"fill": "none",
|
|
102
|
+
"clipPath": "url(#".concat(uid, ")")
|
|
103
|
+
})), withArea && /* @__PURE__ */ React.createElement("polyline", _ref2.cn("polyline", {
|
|
104
|
+
"points": "0,".concat(this.defaultHeight, " ").concat(points.join(" "), " ").concat(this.defaultWidth, ",").concat(this.defaultHeight),
|
|
105
|
+
"fill": this.color,
|
|
106
|
+
"fillOpacity": 0.2,
|
|
107
|
+
"clipPath": "url(#".concat(uid, ")")
|
|
108
|
+
})), lastPointColor && !loading && /* @__PURE__ */ React.createElement("circle", _ref2.cn("circle", {
|
|
109
|
+
"cx": step * (length - 1),
|
|
110
|
+
"cy": this.defaultHeight - this.data[length - 1],
|
|
111
|
+
"r": this.lastPointRadius,
|
|
112
|
+
"fill": resolveColor(lastPointColor),
|
|
113
|
+
"stroke": resolveColor("chart-grid-border"),
|
|
114
|
+
"strokeWidth": 4,
|
|
115
|
+
"clipPath": "url(#".concat(uid, ")")
|
|
116
|
+
})), animate && !loading && /* @__PURE__ */ React.createElement("clipPath", _ref2.cn("clipPath", {
|
|
117
|
+
"id": uid
|
|
118
|
+
}), /* @__PURE__ */ React.createElement("rect", _ref2.cn("rect", {
|
|
119
|
+
"x": "0",
|
|
120
|
+
"y": "0",
|
|
121
|
+
"width": "100%",
|
|
122
|
+
"height": "100%",
|
|
123
|
+
"fill": "black"
|
|
124
|
+
}), /* @__PURE__ */ React.createElement("animate", _ref2.cn("animate", {
|
|
125
|
+
"dur": "500ms",
|
|
126
|
+
"attributeName": "width",
|
|
127
|
+
"values": "0;100%"
|
|
114
128
|
}))))));
|
|
115
129
|
}
|
|
116
|
-
}])
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
130
|
+
}]);
|
|
131
|
+
return TrendLineRoot2;
|
|
132
|
+
}(Trend);
|
|
133
|
+
_defineProperty(TrendLineRoot, "enhance", [resolveColorEnhance(), uniqueIDEnhancement()]);
|
|
134
|
+
_defineProperty(TrendLineRoot, "style", style);
|
|
135
|
+
_defineProperty(TrendLineRoot, "defaultProps", {
|
|
136
|
+
animate: true
|
|
122
137
|
});
|
|
123
|
-
var
|
|
124
|
-
|
|
125
|
-
var
|
|
138
|
+
var TrendLine = createComponent(TrendLineRoot);
|
|
139
|
+
TrendLine.displayName = "MiniChart.TrendLine";
|
|
140
|
+
var TrendArea = createComponent(TrendLineRoot, {}, {
|
|
126
141
|
enhancements: [function() {
|
|
127
142
|
return {
|
|
128
|
-
wrapperProps: function(
|
|
129
|
-
return
|
|
130
|
-
withArea:
|
|
143
|
+
wrapperProps: function wrapperProps(props) {
|
|
144
|
+
return assignProps(props, {
|
|
145
|
+
withArea: true
|
|
131
146
|
});
|
|
132
147
|
}
|
|
133
148
|
};
|
|
134
149
|
}]
|
|
135
150
|
});
|
|
136
|
-
|
|
151
|
+
TrendArea.displayName = "MiniChart.TrendArea";
|
|
137
152
|
export {
|
|
138
|
-
|
|
139
|
-
|
|
153
|
+
TrendArea,
|
|
154
|
+
TrendLine
|
|
140
155
|
};
|
|
@@ -1,66 +1,78 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { Component
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
4
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { Component } from "@semcore/core";
|
|
9
|
+
var Trend = /* @__PURE__ */ function(_Component) {
|
|
10
|
+
_inherits(Trend2, _Component);
|
|
11
|
+
var _super = _createSuper(Trend2);
|
|
12
|
+
function Trend2() {
|
|
13
|
+
var _this;
|
|
14
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
15
|
+
args[_key] = arguments[_key];
|
|
16
|
+
}
|
|
17
|
+
_classCallCheck(this, Trend2);
|
|
18
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
19
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
16
20
|
width: 200,
|
|
17
21
|
height: 100
|
|
18
|
-
})
|
|
22
|
+
});
|
|
23
|
+
_defineProperty(_assertThisInitialized(_this), "containerRef", /* @__PURE__ */ React.createRef());
|
|
24
|
+
return _this;
|
|
19
25
|
}
|
|
20
|
-
|
|
26
|
+
_createClass(Trend2, [{
|
|
21
27
|
key: "componentDidMount",
|
|
22
|
-
value: function() {
|
|
28
|
+
value: function componentDidMount() {
|
|
23
29
|
this.setSizes();
|
|
24
30
|
}
|
|
25
31
|
}, {
|
|
26
32
|
key: "componentDidUpdate",
|
|
27
|
-
value: function(
|
|
28
|
-
(
|
|
33
|
+
value: function componentDidUpdate(prevProps) {
|
|
34
|
+
if (prevProps.w !== this.props.w || prevProps.h !== this.props.h || prevProps.data !== this.props.data) {
|
|
35
|
+
this.setSizes();
|
|
36
|
+
}
|
|
29
37
|
}
|
|
30
38
|
}, {
|
|
31
39
|
key: "defaultWidth",
|
|
32
|
-
get: function() {
|
|
33
|
-
var
|
|
34
|
-
return
|
|
40
|
+
get: function get() {
|
|
41
|
+
var _this$state = this.state, width = _this$state.width, height = _this$state.height;
|
|
42
|
+
return width / height * this.defaultHeight;
|
|
35
43
|
}
|
|
36
44
|
}, {
|
|
37
45
|
key: "defaultHeight",
|
|
38
|
-
get: function() {
|
|
46
|
+
get: function get() {
|
|
39
47
|
return 100;
|
|
40
48
|
}
|
|
41
49
|
}, {
|
|
42
50
|
key: "svgWidth",
|
|
43
|
-
get: function() {
|
|
51
|
+
get: function get() {
|
|
44
52
|
return this.defaultWidth;
|
|
45
53
|
}
|
|
46
54
|
}, {
|
|
47
55
|
key: "svgHeight",
|
|
48
|
-
get: function() {
|
|
56
|
+
get: function get() {
|
|
49
57
|
return this.defaultHeight;
|
|
50
58
|
}
|
|
51
59
|
}, {
|
|
52
60
|
key: "setSizes",
|
|
53
|
-
value: function() {
|
|
61
|
+
value: function setSizes() {
|
|
54
62
|
if (this.containerRef.current) {
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
var boundingClientRect = this.containerRef.current.getBoundingClientRect();
|
|
64
|
+
var width = boundingClientRect.width, height = boundingClientRect.height;
|
|
65
|
+
if (width > 0 && height > 0) {
|
|
66
|
+
this.setState({
|
|
67
|
+
width,
|
|
68
|
+
height
|
|
69
|
+
});
|
|
70
|
+
}
|
|
60
71
|
}
|
|
61
72
|
}
|
|
62
|
-
}])
|
|
63
|
-
|
|
73
|
+
}]);
|
|
74
|
+
return Trend2;
|
|
75
|
+
}(Component);
|
|
64
76
|
export {
|
|
65
|
-
|
|
77
|
+
Trend
|
|
66
78
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ScoreSemiDonut
|
|
2
|
-
import { ScoreLine
|
|
3
|
-
import { TrendLine
|
|
4
|
-
import { TrendBar
|
|
5
|
-
var
|
|
6
|
-
TrendLine
|
|
7
|
-
TrendArea
|
|
8
|
-
TrendBar
|
|
9
|
-
TrendHistogram
|
|
10
|
-
ScoreSemiDonut
|
|
11
|
-
ScoreDonut
|
|
12
|
-
ScoreLine
|
|
1
|
+
import { ScoreSemiDonut, ScoreDonut } from "./component/score/Donut.mjs";
|
|
2
|
+
import { ScoreLine } from "./component/score/Line.mjs";
|
|
3
|
+
import { TrendLine, TrendArea } from "./component/trend/Line.mjs";
|
|
4
|
+
import { TrendBar, TrendHistogram } from "./component/trend/Bar.mjs";
|
|
5
|
+
var miniCharts = {
|
|
6
|
+
TrendLine,
|
|
7
|
+
TrendArea,
|
|
8
|
+
TrendBar,
|
|
9
|
+
TrendHistogram,
|
|
10
|
+
ScoreSemiDonut,
|
|
11
|
+
ScoreDonut,
|
|
12
|
+
ScoreLine
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
miniCharts as default
|
|
16
16
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from '@semcore/core';
|
|
2
2
|
import { BoxProps } from '@semcore/flex-box';
|
|
3
|
-
import resolveColorEnhance from '@semcore/
|
|
3
|
+
import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';
|
|
4
4
|
import { CommonScoreProps } from './Score';
|
|
5
5
|
export type ScoreDonutProps = BoxProps & CommonScoreProps;
|
|
6
6
|
type Enhances = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Intergalactic, ComponentType } from '@semcore/
|
|
1
|
+
import { Intergalactic, ComponentType } from '@semcore/core';
|
|
2
2
|
import { CommonScoreProps } from './Score';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { BoxProps, Box } from '@semcore/flex-box';
|
|
5
|
-
import resolveColorEnhance from '@semcore/
|
|
5
|
+
import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';
|
|
6
6
|
type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
|
|
7
7
|
type Range<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
|
|
8
8
|
export type SegmentColor = `chart-palette-order-${Range<1, 24>}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from '@semcore/core';
|
|
2
|
-
import resolveColorEnhance from '@semcore/
|
|
2
|
+
import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';
|
|
3
3
|
import { CommonTrendProps } from './Trend';
|
|
4
4
|
type BarItem = {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from '@semcore/core';
|
|
2
|
-
import resolveColorEnhance from '@semcore/
|
|
2
|
+
import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';
|
|
3
3
|
import { CommonTrendProps } from './Trend';
|
|
4
4
|
export type TrendLineProps = CommonTrendProps & {
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/mini-chart",
|
|
3
3
|
"description": "Semrush MiniChart Component",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "16.0.0-prerelease.11",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -13,14 +13,9 @@
|
|
|
13
13
|
"import": "./lib/esm/index.mjs",
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "5.41.1",
|
|
18
|
-
"@semcore/utils": "4.48.1"
|
|
19
|
-
},
|
|
20
16
|
"peerDependencies": {
|
|
21
|
-
"@semcore/
|
|
22
|
-
"
|
|
23
|
-
"react-dom": "16.8 - 18"
|
|
17
|
+
"@semcore/base-components": "^16.0.0-prerelease.11",
|
|
18
|
+
"@semcore/flex-box": "^16.0.0-prerelease.11"
|
|
24
19
|
},
|
|
25
20
|
"repository": {
|
|
26
21
|
"type": "git",
|