"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _css2 = require("@emotion/css");

var _css3 = _interopRequireDefault(_css2);

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

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

var _propTypes2 = _interopRequireDefault(_propTypes);

var _presets = require("../../utils/presets");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

/** @jsx jsx */
var InputError = function InputError(_ref) {
  var children = _ref.children;
  return (0, _core.jsx)("p", {
    css:
    /*#__PURE__*/
    (0, _css3["default"])({
      color: _presets.colors.red[60],
      fontSize: _presets.fontSizes.xs,
      lineHeight: "1",
      padding: "0",
      margin: "".concat(_presets.spaces.xs, " ").concat(_presets.spaces["2xs"], " 0"),
      svg: {
        color: "current-color",
        marginRight: _presets.spaces["2xs"],
        verticalAlign: "text-top"
      }
    }, "label:InputError;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0lucHV0RXJyb3IvSW5wdXRFcnJvci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRSSIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9JbnB1dEVycm9yL0lucHV0RXJyb3IuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gXCJAZW1vdGlvbi9jb3JlXCJcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSBcInByb3AtdHlwZXNcIlxuXG5pbXBvcnQgeyBzcGFjZXMsIGNvbG9ycywgZm9udFNpemVzIH0gZnJvbSBcIi4uLy4uL3V0aWxzL3ByZXNldHNcIlxuXG5jb25zdCBJbnB1dEVycm9yID0gKHsgY2hpbGRyZW4gfSkgPT4gKFxuICA8cFxuICAgIGNzcz17e1xuICAgICAgY29sb3I6IGNvbG9ycy5yZWRbNjBdLFxuICAgICAgZm9udFNpemU6IGZvbnRTaXplcy54cyxcbiAgICAgIGxpbmVIZWlnaHQ6IGAxYCxcbiAgICAgIHBhZGRpbmc6IGAwYCxcbiAgICAgIG1hcmdpbjogYCR7c3BhY2VzLnhzfSAke3NwYWNlc1tgMnhzYF19IDBgLFxuICAgICAgc3ZnOiB7XG4gICAgICAgIGNvbG9yOiBgY3VycmVudC1jb2xvcmAsXG4gICAgICAgIG1hcmdpblJpZ2h0OiBzcGFjZXNbYDJ4c2BdLFxuICAgICAgICB2ZXJ0aWNhbEFsaWduOiBgdGV4dC10b3BgLFxuICAgICAgfSxcbiAgICB9fVxuICA+XG4gICAge2NoaWxkcmVufVxuICA8L3A+XG4pXG5cbklucHV0RXJyb3IucHJvcFR5cGVzID0ge1xuICBjaGlsZHJlbjogUHJvcFR5cGVzLm5vZGUsXG59XG5cbmV4cG9ydCBkZWZhdWx0IElucHV0RXJyb3JcbiJdfQ== */"))
  }, children);
};

InputError.propTypes = {
  children: _propTypes2["default"].node
};
exports["default"] = InputError;