@popmenu/dashboard 0.50.0 → 0.51.0
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/build/index.es.js +21 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +21 -2
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -863,6 +863,24 @@ function SvgTrendDown(props) {
|
|
|
863
863
|
}))));
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
+
var _path$a;
|
|
867
|
+
|
|
868
|
+
function _extends$G() { _extends$G = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$G.apply(this, arguments); }
|
|
869
|
+
|
|
870
|
+
function SvgGitCommit(props) {
|
|
871
|
+
return /*#__PURE__*/React.createElement("svg", _extends$G({
|
|
872
|
+
viewBox: "0 0 16 16",
|
|
873
|
+
fill: "none",
|
|
874
|
+
strokeLinecap: "round",
|
|
875
|
+
strokeLinejoin: "round",
|
|
876
|
+
width: "1em",
|
|
877
|
+
height: "1em"
|
|
878
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
879
|
+
d: "M8 10.667a2.667 2.667 0 100-5.334 2.667 2.667 0 000 5.334zM.7 8h3.967m6.673 0h3.966",
|
|
880
|
+
stroke: "currentColor"
|
|
881
|
+
})));
|
|
882
|
+
}
|
|
883
|
+
|
|
866
884
|
var useLeaderboardStyles = makeStyles(function (theme) { return ({
|
|
867
885
|
root: {
|
|
868
886
|
'& >:nth-child(even) > li': {
|
|
@@ -1027,8 +1045,8 @@ var defaultProps = {
|
|
|
1027
1045
|
var KpiMetric = function (props) {
|
|
1028
1046
|
var KpiIcon = props.Icon, metric = props.metric, value = props.value, trend = props.trend, trendMessage = props.trendMessage, trendStatus = props.trendStatus;
|
|
1029
1047
|
var classes = useKpiMetricStyles(props);
|
|
1030
|
-
var trendColors = trendStatus === 'natural' ? ['success', 'warning'] : ['warning', 'success'];
|
|
1031
|
-
var trendColorMap = { up: 0, down: 1, level:
|
|
1048
|
+
var trendColors = trendStatus === 'natural' ? ['success', 'warning', 'grey.500'] : ['warning', 'success', 'grey.500'];
|
|
1049
|
+
var trendColorMap = { up: 0, down: 1, level: 2 };
|
|
1032
1050
|
return (React__default.createElement(Box, { className: classes.root },
|
|
1033
1051
|
KpiIcon && (React__default.createElement(Box, { className: classes.iconContainer },
|
|
1034
1052
|
React__default.createElement(Icon, { icon: KpiIcon, size: "inherit" }))),
|
|
@@ -1037,6 +1055,7 @@ var KpiMetric = function (props) {
|
|
|
1037
1055
|
trendMessage && (React__default.createElement(Typography, { style: { fontSize: 'inherit' }, variant: "body2", color: trend ? trendColors[trendColorMap[trend]] : 'grey.500' },
|
|
1038
1056
|
trend === 'up' && React__default.createElement(Icon, { className: classes.trendIcon, icon: SvgTrend, size: "inherit" }),
|
|
1039
1057
|
trend === 'down' && React__default.createElement(Icon, { className: classes.trendIcon, icon: SvgTrendDown, size: "inherit" }),
|
|
1058
|
+
trend === 'level' && React__default.createElement(Icon, { className: classes.trendIcon, icon: SvgGitCommit, size: "inherit" }),
|
|
1040
1059
|
trendMessage))));
|
|
1041
1060
|
};
|
|
1042
1061
|
KpiMetric.defaultProps = defaultProps;
|