1 | "use strict";
|
2 |
|
3 | var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
4 |
|
5 | var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
6 |
|
7 | Object.defineProperty(exports, "__esModule", {
|
8 | value: true
|
9 | });
|
10 | exports.default = exports.styles = void 0;
|
11 |
|
12 | var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
13 |
|
14 | var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
15 |
|
16 | var React = _interopRequireWildcard(require("react"));
|
17 |
|
18 | var _propTypes = _interopRequireDefault(require("prop-types"));
|
19 |
|
20 | var _clsx = _interopRequireDefault(require("clsx"));
|
21 |
|
22 | var _withStyles = _interopRequireDefault(require("../styles/withStyles"));
|
23 |
|
24 | var styles = {
|
25 |
|
26 | root: {
|
27 | display: 'flex',
|
28 | alignItems: 'center',
|
29 | padding: 8
|
30 | },
|
31 |
|
32 |
|
33 | spacing: {
|
34 | '& > :not(:first-child)': {
|
35 | marginLeft: 8
|
36 | }
|
37 | }
|
38 | };
|
39 | exports.styles = styles;
|
40 | var CardActions = React.forwardRef(function CardActions(props, ref) {
|
41 | var _props$disableSpacing = props.disableSpacing,
|
42 | disableSpacing = _props$disableSpacing === void 0 ? false : _props$disableSpacing,
|
43 | classes = props.classes,
|
44 | className = props.className,
|
45 | other = (0, _objectWithoutProperties2.default)(props, ["disableSpacing", "classes", "className"]);
|
46 | return React.createElement("div", (0, _extends2.default)({
|
47 | className: (0, _clsx.default)(classes.root, className, !disableSpacing && classes.spacing),
|
48 | ref: ref
|
49 | }, other));
|
50 | });
|
51 | process.env.NODE_ENV !== "production" ? CardActions.propTypes = {
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | |
58 |
|
59 |
|
60 | children: _propTypes.default.node,
|
61 |
|
62 | |
63 |
|
64 |
|
65 |
|
66 | classes: _propTypes.default.object,
|
67 |
|
68 | |
69 |
|
70 |
|
71 | className: _propTypes.default.string,
|
72 |
|
73 | |
74 |
|
75 |
|
76 | disableSpacing: _propTypes.default.bool
|
77 | } : void 0;
|
78 |
|
79 | var _default = (0, _withStyles.default)(styles, {
|
80 | name: 'MuiCardActions'
|
81 | })(CardActions);
|
82 |
|
83 | exports.default = _default; |
\ | No newline at end of file |