Completely updated React, fixed #11, (hopefully)
This commit is contained in:
52
goTorrentWebUI/node_modules/material-ui/es/Menu/MenuItem.js
generated
vendored
52
goTorrentWebUI/node_modules/material-ui/es/Menu/MenuItem.js
generated
vendored
@@ -1,33 +1,26 @@
|
||||
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; }
|
||||
|
||||
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
|
||||
import _extends from 'babel-runtime/helpers/extends';
|
||||
// @inheritedComponent ListItem
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
import withStyles from '../styles/withStyles';
|
||||
import ListItem from '../List/ListItem';
|
||||
|
||||
export const styles = theme => ({
|
||||
root: _extends({}, theme.typography.subheading, {
|
||||
height: 24,
|
||||
height: theme.spacing.unit * 3,
|
||||
boxSizing: 'content-box',
|
||||
background: 'none',
|
||||
width: 'auto',
|
||||
overflow: 'hidden',
|
||||
textOverflow: 'ellipsis',
|
||||
whiteSpace: 'nowrap',
|
||||
'&:focus': {
|
||||
background: theme.palette.text.divider
|
||||
},
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.text.divider
|
||||
'&$selected': {
|
||||
backgroundColor: theme.palette.action.selected
|
||||
}
|
||||
}),
|
||||
selected: {
|
||||
backgroundColor: theme.palette.text.divider
|
||||
}
|
||||
selected: {}
|
||||
});
|
||||
|
||||
function MenuItem(props) {
|
||||
@@ -47,7 +40,36 @@ function MenuItem(props) {
|
||||
}, other));
|
||||
}
|
||||
|
||||
MenuItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* Menu item contents.
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes: PropTypes.object.isRequired,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a DOM element or a component.
|
||||
*/
|
||||
component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
role: PropTypes.string,
|
||||
/**
|
||||
* Use to apply selected styling.
|
||||
*/
|
||||
selected: PropTypes.bool
|
||||
} : {};
|
||||
|
||||
MenuItem.defaultProps = {
|
||||
component: 'li',
|
||||
role: 'menuitem',
|
||||
selected: false
|
||||
};
|
||||
|
Reference in New Issue
Block a user