@popmenu/dashboard
Advanced tools
Comparing version 0.50.0 to 0.51.0
@@ -866,2 +866,20 @@ import * as React from 'react'; | ||
var _path$a; | ||
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); } | ||
function SvgGitCommit(props) { | ||
return /*#__PURE__*/React.createElement("svg", _extends$G({ | ||
viewBox: "0 0 16 16", | ||
fill: "none", | ||
strokeLinecap: "round", | ||
strokeLinejoin: "round", | ||
width: "1em", | ||
height: "1em" | ||
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", { | ||
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", | ||
stroke: "currentColor" | ||
}))); | ||
} | ||
var useLeaderboardStyles = makeStyles(function (theme) { return ({ | ||
@@ -1031,4 +1049,4 @@ root: { | ||
var classes = useKpiMetricStyles(props); | ||
var trendColors = trendStatus === 'natural' ? ['success', 'warning'] : ['warning', 'success']; | ||
var trendColorMap = { up: 0, down: 1, level: 1 }; | ||
var trendColors = trendStatus === 'natural' ? ['success', 'warning', 'grey.500'] : ['warning', 'success', 'grey.500']; | ||
var trendColorMap = { up: 0, down: 1, level: 2 }; | ||
return (React__default.createElement(Box, { className: classes.root }, | ||
@@ -1042,2 +1060,3 @@ KpiIcon && (React__default.createElement(Box, { className: classes.iconContainer }, | ||
trend === 'down' && React__default.createElement(Icon, { className: classes.trendIcon, icon: SvgTrendDown, size: "inherit" }), | ||
trend === 'level' && React__default.createElement(Icon, { className: classes.trendIcon, icon: SvgGitCommit, size: "inherit" }), | ||
trendMessage)))); | ||
@@ -1044,0 +1063,0 @@ }; |
@@ -911,2 +911,20 @@ 'use strict'; | ||
var _path$a; | ||
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); } | ||
function SvgGitCommit(props) { | ||
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({ | ||
viewBox: "0 0 16 16", | ||
fill: "none", | ||
strokeLinecap: "round", | ||
strokeLinejoin: "round", | ||
width: "1em", | ||
height: "1em" | ||
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", { | ||
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", | ||
stroke: "currentColor" | ||
}))); | ||
} | ||
var useLeaderboardStyles = core.makeStyles(function (theme) { return ({ | ||
@@ -1076,4 +1094,4 @@ root: { | ||
var classes = useKpiMetricStyles(props); | ||
var trendColors = trendStatus === 'natural' ? ['success', 'warning'] : ['warning', 'success']; | ||
var trendColorMap = { up: 0, down: 1, level: 1 }; | ||
var trendColors = trendStatus === 'natural' ? ['success', 'warning', 'grey.500'] : ['warning', 'success', 'grey.500']; | ||
var trendColorMap = { up: 0, down: 1, level: 2 }; | ||
return (React__default['default'].createElement(core.Box, { className: classes.root }, | ||
@@ -1087,2 +1105,3 @@ KpiIcon && (React__default['default'].createElement(core.Box, { className: classes.iconContainer }, | ||
trend === 'down' && React__default['default'].createElement(Icon, { className: classes.trendIcon, icon: SvgTrendDown, size: "inherit" }), | ||
trend === 'level' && React__default['default'].createElement(Icon, { className: classes.trendIcon, icon: SvgGitCommit, size: "inherit" }), | ||
trendMessage)))); | ||
@@ -1089,0 +1108,0 @@ }; |
{ | ||
"name": "@popmenu/dashboard", | ||
"version": "0.50.0", | ||
"version": "0.51.0", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "author": "Popmenu Design System Team", | ||
"sideEffects": false, | ||
"gitHead": "e8a4a1c2c50fd1aeb8d23e02f84cb6cb5230d5f2" | ||
"gitHead": "8b8bbd30db55d90cf3ba64b96b660228d7c3fc0b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
674230
2246
0