UNPKG

1.66 kBJavaScriptView Raw
1import _extends from "@babel/runtime/helpers/esm/extends";
2import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3import * as React from 'react';
4import PropTypes from 'prop-types';
5import { withStyles } from '@material-ui/core/styles';
6import { Typography } from '@material-ui/core';
7import clsx from 'clsx';
8export const styles = theme => ({
9 /* Styles applied to the root element. */
10 root: {
11 fontWeight: theme.typography.fontWeightMedium,
12 marginTop: -2
13 }
14});
15const AlertTitle = /*#__PURE__*/React.forwardRef(function AlertTitle(props, ref) {
16 const {
17 classes,
18 className
19 } = props,
20 other = _objectWithoutPropertiesLoose(props, ["classes", "className"]);
21
22 return /*#__PURE__*/React.createElement(Typography, _extends({
23 gutterBottom: true,
24 component: "div",
25 ref: ref,
26 className: clsx(classes.root, className)
27 }, other));
28});
29process.env.NODE_ENV !== "production" ? AlertTitle.propTypes = {
30 // ----------------------------- Warning --------------------------------
31 // | These PropTypes are generated from the TypeScript type definitions |
32 // | To update them edit the d.ts file and run "yarn proptypes" |
33 // ----------------------------------------------------------------------
34
35 /**
36 * The content of the component.
37 */
38 children: PropTypes.node,
39
40 /**
41 * Override or extend the styles applied to the component.
42 * See [CSS API](#css) below for more details.
43 */
44 classes: PropTypes.object,
45
46 /**
47 * @ignore
48 */
49 className: PropTypes.string
50} : void 0;
51export default withStyles(styles, {
52 name: 'MuiAlertTitle'
53})(AlertTitle);
\No newline at end of file