"use strict";

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

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

var _styledComponents = require("styled-components");

var _typography = require("../../../mixins/typography");

var _numberedBullet = require("./numbered-bullet.css-rules");

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

var _NumberedBullet = function _NumberedBullet(_ref) {
  var theme = _ref.theme,
      value = _ref.value,
      disabled = _ref.disabled,
      _ref$inverted = _ref.inverted,
      inverted = _ref$inverted === void 0 ? false : _ref$inverted,
      colorName = _ref.colorName;
  return /*#__PURE__*/_react["default"].createElement("svg", {
    width: "22px",
    height: "22px",
    viewBox: "0 0 22 22",
    version: "1.1",
    xmlns: "http://www.w3.org/2000/svg"
  }, /*#__PURE__*/_react["default"].createElement("g", {
    stroke: "none",
    strokeWidth: "1",
    fill: "none",
    fillRule: "evenodd"
  }, /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("rect", {
    stroke: (0, _numberedBullet.getStrokeColor)(theme, disabled, inverted, colorName),
    fill: (0, _numberedBullet.getFillColor)(theme, disabled, inverted, colorName),
    x: "0.5",
    y: "0.5",
    width: "21",
    height: "21",
    rx: "11"
  }), /*#__PURE__*/_react["default"].createElement("text", {
    fontFamily: (0, _typography.getFontFamily)({
      theme: theme,
      bold: true
    }),
    fontSize: "14",
    fontWeight: "600",
    fill: (0, _numberedBullet.getFontColor)(theme, disabled, inverted, colorName)
  }, /*#__PURE__*/_react["default"].createElement("tspan", {
    x: "6.71044922",
    y: "16"
  }, value)))));
};

var NumberedBullet = (0, _styledComponents.withTheme)(_NumberedBullet);
exports.NumberedBullet = NumberedBullet;
NumberedBullet.displayName = 'NumberedBullet';