UNPKG

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