UNPKG

material-ui-cordova

Version:

React components that implement Google's Material Design.

31 lines (23 loc) 1.2 kB
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } // weak import React from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = theme => ({ root: { display: 'flex', flexGrow: 1, padding: `${theme.spacing.unit}px ${theme.spacing.unit * 3}px ${theme.spacing.unit * 3}px` } }); function ExpansionPanelDetails(props) { const { classes, children, className } = props, other = _objectWithoutProperties(props, ['classes', 'children', 'className']); return React.createElement( 'div', _extends({ className: classNames(classes.root, className) }, other), children ); } export default withStyles(styles, { name: 'MuiExpansionPanelDetails' })(ExpansionPanelDetails);