"use strict";

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

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.normalizeSize = exports.getStyles = exports.Tick = exports.SquareFeedbackBox = exports.Square = exports.RoundFeedbackBox = exports.IconRoot = exports.Circle = void 0;

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

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

var _sized = _interopRequireDefault(require("./sized"));

var normalizeSize = function normalizeSize(size) {
  return typeof size === 'string' ? size : typeof size === 'number' ? "".concat(size, "px") : '30px';
};

exports.normalizeSize = normalizeSize;

var IconRoot = function IconRoot(_ref) {
  var size = _ref.size,
      children = _ref.children;
  return /*#__PURE__*/_react["default"].createElement(_sized["default"], {
    size: size
  }, /*#__PURE__*/_react["default"].createElement("svg", {
    preserveAspectRatio: "xMinYMin meet",
    version: "1.1",
    x: "0px",
    y: "0px",
    viewBox: "0 0 44 40",
    style: {
      enableBackground: 'new 0 0 44 40'
    }
  }, ' ', children));
};

exports.IconRoot = IconRoot;
IconRoot.propTypes = {
  size: _propTypes["default"].oneOf([_propTypes["default"].string, _propTypes["default"].number]),
  children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired
};

var getStyles = function getStyles(name, fg, bg) {
  return {
    bg: {
      fill: "var(--icons-".concat(name, "-bg, ").concat(bg, ")")
    },
    fg: {
      fill: "var(--icons-".concat(name, "-fg, ").concat(fg, ")")
    }
  };
};

exports.getStyles = getStyles;

var Tick = function Tick(_ref2) {
  var className = _ref2.className;
  return /*#__PURE__*/_react["default"].createElement("polygon", {
    className: className,
    points: "17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7"
  });
};

exports.Tick = Tick;
Tick.propTypes = {
  className: _propTypes["default"].string
};

var SquareFeedbackBox = function SquareFeedbackBox(_ref3) {
  var className = _ref3.className;
  return /*#__PURE__*/_react["default"].createElement("polygon", {
    transform: "translate(2, 0)",
    className: className,
    points: "34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3"
  });
};

exports.SquareFeedbackBox = SquareFeedbackBox;
SquareFeedbackBox.propTypes = {
  className: _propTypes["default"].string
};

var RoundFeedbackBox = function RoundFeedbackBox(_ref4) {
  var className = _ref4.className;
  return /*#__PURE__*/_react["default"].createElement("path", {
    transform: "translate(1, 0)",
    className: className,
    d: "M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z"
  });
};

exports.RoundFeedbackBox = RoundFeedbackBox;
RoundFeedbackBox.propTypes = {
  className: _propTypes["default"].string
};

var Circle = function Circle(_ref5) {
  var className = _ref5.className;
  return /*#__PURE__*/_react["default"].createElement("circle", {
    transform: "translate(-3, 0)",
    className: className,
    cx: "23",
    cy: "20.4",
    r: "16"
  });
};

exports.Circle = Circle;
Circle.propTypes = {
  className: _propTypes["default"].string
};

var Square = function Square(_ref6) {
  var className = _ref6.className;
  return /*#__PURE__*/_react["default"].createElement("rect", {
    x: "3.6",
    y: "4.1",
    className: className,
    width: "32",
    height: "32"
  });
};

exports.Square = Square;
Square.propTypes = {
  className: _propTypes["default"].string
};
//# sourceMappingURL=icon-root.js.map