@popmenu/dashboard 0.40.3 → 0.43.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 +85 -12
- package/build/index.es.js.map +1 -1
- package/build/index.js +85 -12
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -169,19 +169,19 @@ function __rest(s, e) {
|
|
|
169
169
|
return t;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
var _path$
|
|
172
|
+
var _path$F;
|
|
173
173
|
|
|
174
|
-
function _extends$
|
|
174
|
+
function _extends$1s() { _extends$1s = 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$1s.apply(this, arguments); }
|
|
175
175
|
|
|
176
176
|
function SvgUser(props) {
|
|
177
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
177
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1s({
|
|
178
178
|
viewBox: "0 0 16 16",
|
|
179
179
|
fill: "none",
|
|
180
180
|
strokeLinecap: "round",
|
|
181
181
|
strokeLinejoin: "round",
|
|
182
182
|
width: "1em",
|
|
183
183
|
height: "1em"
|
|
184
|
-
}, props), _path$
|
|
184
|
+
}, props), _path$F || (_path$F = /*#__PURE__*/React__namespace.createElement("path", {
|
|
185
185
|
d: "M13.333 14v-1.333A2.667 2.667 0 0010.667 10H5.333a2.667 2.667 0 00-2.666 2.667V14M8 7.333A2.667 2.667 0 108 2a2.667 2.667 0 000 5.333z",
|
|
186
186
|
stroke: "currentColor"
|
|
187
187
|
})));
|
|
@@ -414,6 +414,79 @@ var Checkbox = React.forwardRef(function (props, ref) {
|
|
|
414
414
|
});
|
|
415
415
|
Checkbox.displayName = 'Checkbox';
|
|
416
416
|
|
|
417
|
+
var getBackground = function (theme) { return function (props) {
|
|
418
|
+
var variant = props.variant, severity = props.severity;
|
|
419
|
+
var background;
|
|
420
|
+
var backgrounds = {
|
|
421
|
+
outlined: 'none',
|
|
422
|
+
error: 'error.main',
|
|
423
|
+
warning: 'warning.main',
|
|
424
|
+
info: 'info.light',
|
|
425
|
+
success: 'success.light',
|
|
426
|
+
};
|
|
427
|
+
if (variant === 'outlined') {
|
|
428
|
+
background = backgrounds[variant];
|
|
429
|
+
}
|
|
430
|
+
else if (severity) {
|
|
431
|
+
var _a = backgrounds[severity].split('.'), color = _a[0], colorVariant = _a[1];
|
|
432
|
+
background = theme.palette[color][colorVariant];
|
|
433
|
+
}
|
|
434
|
+
return background;
|
|
435
|
+
}; };
|
|
436
|
+
var getColor = function (theme) { return function (props) {
|
|
437
|
+
var variant = props.variant, severity = props.severity;
|
|
438
|
+
var textColor;
|
|
439
|
+
if (variant === 'outlined' && severity) {
|
|
440
|
+
var textColors = {
|
|
441
|
+
error: theme.palette.error.main,
|
|
442
|
+
info: theme.palette.info.main,
|
|
443
|
+
warning: theme.palette.warning.dark,
|
|
444
|
+
success: theme.palette.success.dark,
|
|
445
|
+
};
|
|
446
|
+
textColor = textColors[severity];
|
|
447
|
+
}
|
|
448
|
+
else if (variant === 'outlined' && !severity) {
|
|
449
|
+
textColor = theme.palette.grey[700];
|
|
450
|
+
}
|
|
451
|
+
else if ((variant === 'default' || variant === undefined) && severity) {
|
|
452
|
+
var textColors = {
|
|
453
|
+
error: theme.palette.common.white,
|
|
454
|
+
info: theme.palette.secondary.main,
|
|
455
|
+
warning: theme.palette.secondary.main,
|
|
456
|
+
success: theme.palette.secondary.main,
|
|
457
|
+
};
|
|
458
|
+
textColor = textColors[severity];
|
|
459
|
+
}
|
|
460
|
+
return textColor;
|
|
461
|
+
}; };
|
|
462
|
+
var getBorder = function (theme) { return function (props) {
|
|
463
|
+
var variant = props.variant, severity = props.severity;
|
|
464
|
+
var borderColor;
|
|
465
|
+
if (variant === 'outlined' && severity) {
|
|
466
|
+
var borderColors = {
|
|
467
|
+
error: theme.palette.error.main,
|
|
468
|
+
info: theme.palette.info.main,
|
|
469
|
+
warning: theme.palette.warning.dark,
|
|
470
|
+
success: theme.palette.success.dark,
|
|
471
|
+
};
|
|
472
|
+
borderColor = borderColors[severity];
|
|
473
|
+
}
|
|
474
|
+
return borderColor;
|
|
475
|
+
}; };
|
|
476
|
+
styles.makeStyles(function (theme) { return ({
|
|
477
|
+
root: {
|
|
478
|
+
background: getBackground(theme),
|
|
479
|
+
color: getColor(theme),
|
|
480
|
+
borderColor: getBorder(theme),
|
|
481
|
+
borderRadius: theme.spacing(0.5),
|
|
482
|
+
},
|
|
483
|
+
icon: {
|
|
484
|
+
color: 'inherit',
|
|
485
|
+
height: theme.spacing(2),
|
|
486
|
+
width: theme.spacing(2),
|
|
487
|
+
},
|
|
488
|
+
}); });
|
|
489
|
+
|
|
417
490
|
var defaultTypographyProps = {
|
|
418
491
|
variant: 'body1',
|
|
419
492
|
};
|
|
@@ -828,19 +901,19 @@ var LeaderboardTile = function (props) {
|
|
|
828
901
|
React__default['default'].createElement(Leaderboard, __assign$1({}, restProps))));
|
|
829
902
|
};
|
|
830
903
|
|
|
831
|
-
var _g$
|
|
904
|
+
var _g$N;
|
|
832
905
|
|
|
833
|
-
function _extends$
|
|
906
|
+
function _extends$1u() { _extends$1u = 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$1u.apply(this, arguments); }
|
|
834
907
|
|
|
835
908
|
function SvgTrend(props) {
|
|
836
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
909
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1u({
|
|
837
910
|
viewBox: "0 0 16 16",
|
|
838
911
|
fill: "none",
|
|
839
912
|
strokeLinecap: "round",
|
|
840
913
|
strokeLinejoin: "round",
|
|
841
914
|
width: "1em",
|
|
842
915
|
height: "1em"
|
|
843
|
-
}, props), _g$
|
|
916
|
+
}, props), _g$N || (_g$N = /*#__PURE__*/React__namespace.createElement("g", {
|
|
844
917
|
stroke: "currentColor"
|
|
845
918
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
846
919
|
d: "M15.333 4L9 10.333 5.667 7l-5 5"
|
|
@@ -849,19 +922,19 @@ function SvgTrend(props) {
|
|
|
849
922
|
}))));
|
|
850
923
|
}
|
|
851
924
|
|
|
852
|
-
var _g$
|
|
925
|
+
var _g$M;
|
|
853
926
|
|
|
854
|
-
function _extends$
|
|
927
|
+
function _extends$1t() { _extends$1t = 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$1t.apply(this, arguments); }
|
|
855
928
|
|
|
856
929
|
function SvgTrendDown(props) {
|
|
857
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
930
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1t({
|
|
858
931
|
viewBox: "0 0 16 16",
|
|
859
932
|
fill: "none",
|
|
860
933
|
strokeLinecap: "round",
|
|
861
934
|
strokeLinejoin: "round",
|
|
862
935
|
width: "1em",
|
|
863
936
|
height: "1em"
|
|
864
|
-
}, props), _g$
|
|
937
|
+
}, props), _g$M || (_g$M = /*#__PURE__*/React__namespace.createElement("g", {
|
|
865
938
|
stroke: "currentColor"
|
|
866
939
|
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
867
940
|
d: "M15.333 12L9 5.667 5.667 9l-5-5"
|