@popmenu/dashboard 0.88.0 → 0.90.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 +7 -20
- package/build/index.es.js.map +1 -1
- package/build/index.js +6 -21
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -4,10 +4,10 @@ import { makeStyles, Typography as Typography$1, Link as Link$1, Paper as Paper$
|
|
|
4
4
|
import '@material-ui/lab/Alert';
|
|
5
5
|
import '@material-ui/core/AppBar';
|
|
6
6
|
import MuiAvatar from '@material-ui/core/Avatar';
|
|
7
|
-
import { makeStyles as makeStyles$1
|
|
7
|
+
import { makeStyles as makeStyles$1 } from '@material-ui/core/styles';
|
|
8
8
|
import '@material-ui/core/Badge';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import '@material-ui/core/Button';
|
|
10
|
+
import '@material-ui/core/CircularProgress';
|
|
11
11
|
import '@material-ui/core/ButtonGroup';
|
|
12
12
|
import Card from '@material-ui/core/Card';
|
|
13
13
|
import '@material-ui/core/CardActionArea';
|
|
@@ -362,7 +362,7 @@ makeStyles$1(function (theme) { return ({
|
|
|
362
362
|
},
|
|
363
363
|
}); });
|
|
364
364
|
|
|
365
|
-
|
|
365
|
+
makeStyles$1(function () { return ({
|
|
366
366
|
root: {
|
|
367
367
|
minWidth: 'unset',
|
|
368
368
|
},
|
|
@@ -374,19 +374,6 @@ var useButtonStyles = makeStyles$1(function () { return ({
|
|
|
374
374
|
},
|
|
375
375
|
}); });
|
|
376
376
|
|
|
377
|
-
var Button = forwardRef(function (props, ref) {
|
|
378
|
-
props.textTransform; var loading = props.loading, classesOverride = props.classes, className = props.className, muiProps = __rest(props, ["textTransform", "loading", "classes", "className"]);
|
|
379
|
-
props.classes; var styleProps = __rest(props, ["classes"]);
|
|
380
|
-
var classes = useButtonStyles(styleProps);
|
|
381
|
-
var typography = useTheme().typography;
|
|
382
|
-
var loadingIndicator = {
|
|
383
|
-
startIcon: React__default.createElement(CircularProgress, { color: "inherit", size: typography.button.fontSize }),
|
|
384
|
-
disabled: true,
|
|
385
|
-
};
|
|
386
|
-
return (React__default.createElement(MuiButton, __assign({ ref: ref, classes: __assign(__assign({}, classes), classesOverride), className: classNames([className, 'pm-button']) }, muiProps, (loading && loadingIndicator))));
|
|
387
|
-
});
|
|
388
|
-
Button.displayName = 'Button';
|
|
389
|
-
|
|
390
377
|
var Checkbox = forwardRef(function (props, ref) {
|
|
391
378
|
var label = props.label, disabled = props.disabled, LabelProps = props.LabelProps, muiProps = __rest(props, ["label", "disabled", "LabelProps"]);
|
|
392
379
|
var control = React__default.createElement(MuiCheckbox, __assign({ disabled: label ? undefined : disabled }, muiProps));
|
|
@@ -541,12 +528,12 @@ var useTypographyStyles = makeStyles$1(function (theme) {
|
|
|
541
528
|
});
|
|
542
529
|
});
|
|
543
530
|
|
|
544
|
-
var Typography =
|
|
531
|
+
var Typography = function (props) {
|
|
545
532
|
props.weight; props.color; var restProps = __rest(props, ["weight", "color"]);
|
|
546
533
|
var classes = useTypographyStyles(__assign({}, props));
|
|
547
534
|
var variantMapping = { subtitle1: 'p' };
|
|
548
|
-
return React__default.createElement(Typography$1, __assign({
|
|
549
|
-
}
|
|
535
|
+
return React__default.createElement(Typography$1, __assign({ classes: classes, variantMapping: variantMapping }, restProps));
|
|
536
|
+
};
|
|
550
537
|
Typography.displayName = 'Typography';
|
|
551
538
|
Typography.defaultProps = defaultTypographyProps;
|
|
552
539
|
|