Completely updated React, fixed #11, (hopefully)
This commit is contained in:
60
goTorrentWebUI/node_modules/material-ui/Table/Table.js
generated
vendored
60
goTorrentWebUI/node_modules/material-ui/Table/Table.js
generated
vendored
@@ -51,10 +51,6 @@ 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: {
|
||||
@@ -67,29 +63,6 @@ var styles = exports.styles = function styles(theme) {
|
||||
};
|
||||
};
|
||||
|
||||
var babelPluginFlowReactPropTypes_proptype_Props = {
|
||||
/**
|
||||
* The content of the table, normally `TableHeader` and `TableBody`.
|
||||
*/
|
||||
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 Table = function (_React$Component) {
|
||||
(0, _inherits3.default)(Table, _React$Component);
|
||||
|
||||
@@ -112,27 +85,40 @@ var Table = function (_React$Component) {
|
||||
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, ['classes', 'className', '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, (0, _extends3.default)({ className: (0, _classnames2.default)(classes.root, classNameProp) }, other));
|
||||
}
|
||||
}]);
|
||||
return Table;
|
||||
}(_react2.default.Component);
|
||||
|
||||
Table.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* The content of the table, normally `TableHeader` and `TableBody`.
|
||||
*/
|
||||
children: _propTypes2.default.node.isRequired,
|
||||
/**
|
||||
* Useful to extend the style applied to components.
|
||||
*/
|
||||
classes: _propTypes2.default.object.isRequired,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes2.default.string,
|
||||
/**
|
||||
* 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])
|
||||
} : {};
|
||||
|
||||
Table.defaultProps = {
|
||||
component: 'table'
|
||||
};
|
||||
|
||||
|
||||
Table.childContextTypes = {
|
||||
table: _propTypes2.default.object
|
||||
};
|
||||
|
Reference in New Issue
Block a user