UNPKG

2.26 kBJavaScriptView Raw
1"use strict";
2
3var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
5var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
7Object.defineProperty(exports, "__esModule", {
8 value: true
9});
10exports.default = exports.styles = void 0;
11
12var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
14var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
15
16var React = _interopRequireWildcard(require("react"));
17
18var _propTypes = _interopRequireDefault(require("prop-types"));
19
20var _styles = require("@material-ui/core/styles");
21
22var _core = require("@material-ui/core");
23
24var _clsx = _interopRequireDefault(require("clsx"));
25
26var styles = function styles(theme) {
27 return {
28 /* Styles applied to the root element. */
29 root: {
30 fontWeight: theme.typography.fontWeightMedium,
31 marginTop: -2
32 }
33 };
34};
35
36exports.styles = styles;
37var AlertTitle = /*#__PURE__*/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 /*#__PURE__*/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});
48process.env.NODE_ENV !== "production" ? AlertTitle.propTypes = {
49 // ----------------------------- Warning --------------------------------
50 // | These PropTypes are generated from the TypeScript type definitions |
51 // | To update them edit the d.ts file and run "yarn proptypes" |
52 // ----------------------------------------------------------------------
53
54 /**
55 * The content of the component.
56 */
57 children: _propTypes.default.node,
58
59 /**
60 * Override or extend the styles applied to the component.
61 * See [CSS API](#css) below for more details.
62 */
63 classes: _propTypes.default.object,
64
65 /**
66 * @ignore
67 */
68 className: _propTypes.default.string
69} : void 0;
70
71var _default = (0, _styles.withStyles)(styles, {
72 name: 'MuiAlertTitle'
73})(AlertTitle);
74
75exports.default = _default;
\No newline at end of file