"use strict";

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

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

var _core = require("@emotion/core");

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

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

var _styledBase = _interopRequireDefault(require("@emotion/styled-base"));

var _InputLight = require("../InputLight");

var _InputLabelLight = require("../InputLabelLight");

var _Hint = require("../../Hint");

var _TextFieldLight = _interopRequireDefault(require("./TextFieldLight.styles"));

var TextFieldLightOrigin = function TextFieldLightOrigin(_ref) {
  var label = _ref.label,
      id = _ref.id,
      error = _ref.error,
      hovered = _ref.hovered,
      focused = _ref.focused,
      success = _ref.success,
      hint = _ref.hint,
      className = _ref.className,
      rest = (0, _objectWithoutProperties2["default"])(_ref, ["label", "id", "error", "hovered", "focused", "success", "hint", "className"]);
  return (0, _core.jsx)("div", {
    className: className
  }, (0, _core.jsx)(_InputLight.InputLight, (0, _extends2["default"])({
    id: id,
    error: error,
    hovered: hovered,
    focused: focused
  }, rest)), label && (0, _core.jsx)(_InputLabelLight.InputLabelLight, {
    htmlFor: id,
    error: error,
    success: success
  }, label), (0, _core.jsx)(_Hint.Hint, {
    success: success,
    error: error,
    hint: hint
  }));
};

var TextFieldLight = (
/*#__PURE__*/
0, _styledBase["default"])(TextFieldLightOrigin, {
  target: "ero47h20",
  label: "TextFieldLight"
})(_TextFieldLight["default"].base, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ZpZWxkcy9MaWdodC9UZXh0RmllbGRMaWdodC9UZXh0RmllbGRMaWdodC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBMENtRCIsImZpbGUiOiIuLi8uLi8uLi8uL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vycm9yfSBob3ZlcmVkPXtob3ZlcmVkfSBmb2N1c2VkPXtmb2N1c2VkfSB7Li4ucmVzdH0gLz5cbiAgICB7bGFiZWwgJiYgKFxuICAgICAgPElucHV0TGFiZWxMaWdodCBodG1sRm9yPXtpZH0gZXJyb3I9e2Vycm9yfSBzdWNjZXNzPXtzdWNjZXNzfT5cbiAgICAgICAge2xhYmVsfVxuICAgICAgPC9JbnB1dExhYmVsTGlnaHQ+XG4gICAgKX1cbiAgICA8SGludCBzdWNjZXNzPXtzdWNjZXNzfSBlcnJvcj17ZXJyb3J9IGhpbnQ9e2hpbnR9IC8+XG4gIDwvZGl2PlxuKVxuXG5jb25zdCBUZXh0RmllbGRMaWdodCA9IHN0eWxlZChUZXh0RmllbGRMaWdodE9yaWdpbilgXG4gICR7c3R5bGVzLmJhc2V9XG5gXG5leHBvcnQgeyBUZXh0RmllbGRMaWdodCB9XG5cbmV4cG9ydCBkZWZhdWx0IFRleHRGaWVsZExpZ2h0XG4iXX0= */");
exports.TextFieldLight = TextFieldLight;
var _default = TextFieldLight;
exports["default"] = _default;