"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _InputLabel = _interopRequireDefault(require("@material-ui/core/InputLabel"));

var _propTypes = _interopRequireDefault(require("prop-types"));

var _react = _interopRequireDefault(require("react"));

var _classnames = _interopRequireDefault(require("classnames"));

var _styles = require("@material-ui/core/styles");

var _FormControl = _interopRequireDefault(require("@material-ui/core/FormControl"));

var RawInputContainer = function RawInputContainer(props) {
  var label = props.label,
      className = props.className,
      children = props.children,
      classes = props.classes;
  var names = (0, _classnames["default"])(classes.formControl, className);
  return /*#__PURE__*/_react["default"].createElement(_FormControl["default"], {
    className: names
  }, /*#__PURE__*/_react["default"].createElement(_InputLabel["default"], {
    className: classes.label,
    shrink: true
  }, label), children);
};

RawInputContainer.propTypes = {
  label: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].object]).isRequired,
  className: _propTypes["default"].string,
  children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired,
  classes: _propTypes["default"].object.isRequired
};

var _default = (0, _styles.withStyles)(function (theme) {
  return {
    formControl: {
      marginLeft: 0,
      marginRight: 0,
      paddingBottom: theme.spacing.unit,
      flex: '1 0 auto',
      minWidth: theme.spacing.unit * 4
    },
    label: {
      fontSize: 'inherit',
      whiteSpace: 'nowrap'
    }
  };
})(RawInputContainer);

exports["default"] = _default;
//# sourceMappingURL=input-container.js.map