Completely updated React, fixed #11, (hopefully)
This commit is contained in:
79
goTorrentWebUI/node_modules/material-ui/Table/TableHead.js
generated
vendored
79
goTorrentWebUI/node_modules/material-ui/Table/TableHead.js
generated
vendored
@@ -3,11 +3,6 @@
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.styles = undefined;
|
||||
|
||||
var _extends2 = require('babel-runtime/helpers/extends');
|
||||
|
||||
var _extends3 = _interopRequireDefault(_extends2);
|
||||
|
||||
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
|
||||
|
||||
@@ -41,53 +36,8 @@ var _propTypes = require('prop-types');
|
||||
|
||||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||||
|
||||
var _classnames = require('classnames');
|
||||
|
||||
var _classnames2 = _interopRequireDefault(_classnames);
|
||||
|
||||
var _withStyles = require('../styles/withStyles');
|
||||
|
||||
var _withStyles2 = _interopRequireDefault(_withStyles);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var babelPluginFlowReactPropTypes_proptype_Node = require('react').babelPluginFlowReactPropTypes_proptype_Node || require('prop-types').any;
|
||||
|
||||
var babelPluginFlowReactPropTypes_proptype_ElementType = require('react').babelPluginFlowReactPropTypes_proptype_ElementType || require('prop-types').any;
|
||||
|
||||
var styles = exports.styles = function styles(theme) {
|
||||
return {
|
||||
root: {
|
||||
fontSize: theme.typography.pxToRem(12),
|
||||
fontWeight: theme.typography.fontWeightMedium,
|
||||
color: theme.palette.text.secondary
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
var babelPluginFlowReactPropTypes_proptype_Props = {
|
||||
/**
|
||||
* The content of the component, normally `TableRow`.
|
||||
*/
|
||||
children: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node),
|
||||
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes: require('prop-types').object,
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: require('prop-types').string,
|
||||
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a DOM element or a component.
|
||||
*/
|
||||
component: typeof babelPluginFlowReactPropTypes_proptype_ElementType === 'function' ? babelPluginFlowReactPropTypes_proptype_ElementType : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_ElementType)
|
||||
};
|
||||
|
||||
var TableHead = function (_React$Component) {
|
||||
(0, _inherits3.default)(TableHead, _React$Component);
|
||||
|
||||
@@ -110,31 +60,34 @@ var TableHead = function (_React$Component) {
|
||||
key: 'render',
|
||||
value: function render() {
|
||||
var _props = this.props,
|
||||
classes = _props.classes,
|
||||
classNameProp = _props.className,
|
||||
children = _props.children,
|
||||
ComponentProp = _props.component,
|
||||
other = (0, _objectWithoutProperties3.default)(_props, ['classes', 'className', 'children', 'component']);
|
||||
Component = _props.component,
|
||||
other = (0, _objectWithoutProperties3.default)(_props, ['component']);
|
||||
|
||||
var className = (0, _classnames2.default)(classes.root, classNameProp);
|
||||
|
||||
return _react2.default.createElement(
|
||||
ComponentProp,
|
||||
(0, _extends3.default)({ className: className }, other),
|
||||
children
|
||||
);
|
||||
return _react2.default.createElement(Component, other);
|
||||
}
|
||||
}]);
|
||||
return TableHead;
|
||||
}(_react2.default.Component);
|
||||
|
||||
TableHead.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* The content of the component, normally `TableRow`.
|
||||
*/
|
||||
children: _propTypes2.default.node.isRequired,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a DOM element or a component.
|
||||
*/
|
||||
component: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.func])
|
||||
} : {};
|
||||
|
||||
TableHead.defaultProps = {
|
||||
component: 'thead'
|
||||
};
|
||||
|
||||
|
||||
TableHead.childContextTypes = {
|
||||
table: _propTypes2.default.object
|
||||
};
|
||||
|
||||
exports.default = (0, _withStyles2.default)(styles, { name: 'MuiTableHead' })(TableHead);
|
||||
exports.default = TableHead;
|
Reference in New Issue
Block a user