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 _styles = require("@material-ui/core/styles");
|
21 |
|
22 | var _core = require("@material-ui/core");
|
23 |
|
24 | var _clsx = _interopRequireDefault(require("clsx"));
|
25 |
|
26 | var styles = function styles(theme) {
|
27 | return {
|
28 |
|
29 | root: {
|
30 | fontWeight: theme.typography.fontWeightMedium,
|
31 | marginTop: -2
|
32 | }
|
33 | };
|
34 | };
|
35 |
|
36 | exports.styles = styles;
|
37 | var AlertTitle = React.forwardRef(function AlertTitle(props, ref) {
|
38 | var classes = props.classes,
|
39 | className = props.className,
|
40 | other = (0, _objectWithoutProperties2.default)(props, ["classes", "className"]);
|
41 | return React.createElement(_core.Typography, (0, _extends2.default)({
|
42 | gutterBottom: true,
|
43 | component: "div",
|
44 | ref: ref,
|
45 | className: (0, _clsx.default)(classes.root, className)
|
46 | }, other));
|
47 | });
|
48 | process.env.NODE_ENV !== "production" ? AlertTitle.propTypes = {
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 | |
55 |
|
56 |
|
57 | children: _propTypes.default.node,
|
58 |
|
59 | |
60 |
|
61 |
|
62 |
|
63 | classes: _propTypes.default.object,
|
64 |
|
65 | |
66 |
|
67 |
|
68 | className: _propTypes.default.string
|
69 | } : void 0;
|
70 |
|
71 | var _default = (0, _styles.withStyles)(styles, {
|
72 | name: 'MuiAlertTitle'
|
73 | })(AlertTitle);
|
74 |
|
75 | exports.default = _default; |
\ | No newline at end of file |