Completely updated React, fixed #11, (hopefully)
This commit is contained in:
86
goTorrentWebUI/node_modules/material-ui/Input/InputAdornment.js
generated
vendored
86
goTorrentWebUI/node_modules/material-ui/Input/InputAdornment.js
generated
vendored
@@ -17,12 +17,14 @@ var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProp
|
||||
|
||||
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
|
||||
|
||||
var _ref;
|
||||
|
||||
var _react = require('react');
|
||||
|
||||
var _react2 = _interopRequireDefault(_react);
|
||||
|
||||
var _propTypes = require('prop-types');
|
||||
|
||||
var _propTypes2 = _interopRequireDefault(_propTypes);
|
||||
|
||||
var _classnames = require('classnames');
|
||||
|
||||
var _classnames2 = _interopRequireDefault(_classnames);
|
||||
@@ -37,16 +39,12 @@ var _withStyles2 = _interopRequireDefault(_withStyles);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var babelPluginFlowReactPropTypes_proptype_ElementType = require('react').babelPluginFlowReactPropTypes_proptype_ElementType || require('prop-types').any;
|
||||
|
||||
var babelPluginFlowReactPropTypes_proptype_Node = require('react').babelPluginFlowReactPropTypes_proptype_Node || require('prop-types').any;
|
||||
|
||||
var styles = exports.styles = function styles(theme) {
|
||||
return {
|
||||
root: {
|
||||
'label + div > &': {
|
||||
marginTop: -theme.spacing.unit * 2
|
||||
}
|
||||
display: 'flex',
|
||||
maxHeight: '2em',
|
||||
alignItems: 'center'
|
||||
},
|
||||
positionStart: {
|
||||
marginRight: theme.spacing.unit
|
||||
@@ -57,40 +55,6 @@ var styles = exports.styles = function styles(theme) {
|
||||
};
|
||||
};
|
||||
|
||||
var babelPluginFlowReactPropTypes_proptype_Props = {
|
||||
/**
|
||||
* The content of the component, normally an `IconButton` or string.
|
||||
*/
|
||||
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),
|
||||
|
||||
/**
|
||||
* If children is a string then disable wrapping in a Typography component.
|
||||
*/
|
||||
disableTypography: require('prop-types').bool,
|
||||
|
||||
/**
|
||||
* The position this adornment should appear relative to the `Input`.
|
||||
*/
|
||||
position: require('prop-types').oneOf(['start', 'end']).isRequired
|
||||
};
|
||||
|
||||
|
||||
function InputAdornment(props) {
|
||||
var _classNames;
|
||||
|
||||
@@ -110,18 +74,40 @@ function InputAdornment(props) {
|
||||
}, other),
|
||||
typeof children === 'string' && !disableTypography ? _react2.default.createElement(
|
||||
_Typography2.default,
|
||||
{ color: 'secondary' },
|
||||
{ color: 'textSecondary' },
|
||||
children
|
||||
) : children
|
||||
);
|
||||
}
|
||||
|
||||
InputAdornment.propTypes = process.env.NODE_ENV !== "production" ? (_ref = {
|
||||
classes: require('prop-types').object.isRequired,
|
||||
component: typeof babelPluginFlowReactPropTypes_proptype_ElementType === 'function' ? babelPluginFlowReactPropTypes_proptype_ElementType.isRequired ? babelPluginFlowReactPropTypes_proptype_ElementType.isRequired : babelPluginFlowReactPropTypes_proptype_ElementType : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_ElementType).isRequired,
|
||||
disableTypography: require('prop-types').bool.isRequired,
|
||||
children: typeof babelPluginFlowReactPropTypes_proptype_Node === 'function' ? babelPluginFlowReactPropTypes_proptype_Node : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_Node)
|
||||
}, (0, _defineProperty3.default)(_ref, 'classes', require('prop-types').object), (0, _defineProperty3.default)(_ref, 'className', require('prop-types').string), (0, _defineProperty3.default)(_ref, 'component', typeof babelPluginFlowReactPropTypes_proptype_ElementType === 'function' ? babelPluginFlowReactPropTypes_proptype_ElementType : require('prop-types').shape(babelPluginFlowReactPropTypes_proptype_ElementType)), (0, _defineProperty3.default)(_ref, 'disableTypography', require('prop-types').bool), (0, _defineProperty3.default)(_ref, 'position', require('prop-types').oneOf(['start', 'end']).isRequired), _ref) : {};
|
||||
InputAdornment.propTypes = process.env.NODE_ENV !== "production" ? {
|
||||
/**
|
||||
* The content of the component, normally an `IconButton` or string.
|
||||
*/
|
||||
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]),
|
||||
/**
|
||||
* If children is a string then disable wrapping in a Typography component.
|
||||
*/
|
||||
disableTypography: _propTypes2.default.bool,
|
||||
/**
|
||||
* The position this adornment should appear relative to the `Input`.
|
||||
*/
|
||||
position: _propTypes2.default.oneOf(['start', 'end'])
|
||||
} : {};
|
||||
|
||||
InputAdornment.defaultProps = {
|
||||
component: 'div',
|
||||
disableTypography: false
|
||||
|
Reference in New Issue
Block a user