"use strict";

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

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.TextareaFieldLight = 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 _TextareaLight = require("../TextareaLight");

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

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

var _TextareaFieldLight = _interopRequireDefault(require("./TextareaFieldLight.styles"));

var TextareaFieldLightOrigin = function TextareaFieldLightOrigin(_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)(_TextareaLight.TextareaLight, (0, _extends2["default"])({
    id: id,
    className: "textarea-light",
    error: error,
    success: success,
    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 TextareaFieldLight = (
/*#__PURE__*/
0, _styledBase["default"])(TextareaFieldLightOrigin, {
  target: "e12s5i9b0",
  label: "TextareaFieldLight"
})(_TextareaFieldLight["default"].base, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0ZpZWxkcy9MaWdodC9UZXh0YXJlYUZpZWxkTGlnaHQvVGV4dGFyZWFGaWVsZExpZ2h0LnRzeCJdL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FxuICAuLi5yZXN0XG59KSA9PiAoXG4gIDxkaXYgY2xhc3NOYW1lPXtjbGFzc05hbWV9PlxuICAgIDxUZXh0YXJlYUxpZ2h0XG4gICAgICBpZD17aWR9XG4gICAgICBjbGFzc05hbWU9XCJ0ZXh0YXJlYS1saWdodFwiXG4gICAgICBlcnJvcj17ZXJyb3J9XG4gICAgICBzdWNjZXNzPXtzdWNjZXNzfVxuICAgICAgaG92ZXJlZD17aG92ZXJlZH1cbiAgICAgIGZvY3VzZWQ9e2ZvY3VzZWR9XG4gICAgICB7Li4ucmVzdH1cbiAgICAvPlxuICAgIHtsYWJlbCAmJiAoXG4gICAgICA8SW5wdXRMYWJlbExpZ2h0IGh0bWxGb3I9e2lkfSBlcnJvcj17ZXJyb3J9IHN1Y2Nlc3M9e3N1Y2Nlc3N9PlxuICAgICAgICB7bGFiZWx9XG4gICAgICA8L0lucHV0TGFiZWxMaWdodD5cbiAgICApfVxuICAgIDxIaW50IHN1Y2Nlc3M9e3N1Y2Nlc3N9IGVycm9yPXtlcnJvcn0gaGludD17aGludH0gLz5cbiAgPC9kaXY+XG4pXG5cbmNvbnN0IFRleHRhcmVhRmllbGRMaWdodCA9IHN0eWxlZChUZXh0YXJlYUZpZWxkTGlnaHRPcmlnaW4pYFxuICAke3N0eWxlcy5iYXNlfVxuYFxuXG5leHBvcnQgeyBUZXh0YXJlYUZpZWxkTGlnaHQgfVxuXG5leHBvcnQgZGVmYXVsdCBUZXh0YXJlYUZpZWxkTGlnaHRcbiJdfQ== */");
exports.TextareaFieldLight = TextareaFieldLight;
var _default = TextareaFieldLight;
exports["default"] = _default;