import { _ as _extends } from '../extends-C4cduGrv.js';
import { _ as _defineProperty } from '../defineProperty-CEd-kZQW.js';
import { _ as _objectWithoutProperties } from '../objectWithoutProperties-TXwlfNxG.js';
import React__default from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';

var _excluded = ["className", "style", "color"];

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

function Radio(_ref) {
  var className = _ref.className,
      style = _ref.style,
      color = _ref.color,
      props = _objectWithoutProperties(_ref, _excluded);

  var classNames = cx(className, "design-custom-box", "design-radio");
  var colors = {
    blue: "var(--blue-500)",
    red: "var(--red-500)"
  };
  var styleOverride = color && color !== "green" ? {
    "--active-checkbox": colors[color]
  } : null;
  return /*#__PURE__*/React__default.createElement("input", _extends({
    className: classNames,
    style: _objectSpread(_objectSpread({}, styleOverride), style),
    type: "radio"
  }, props));
}

Radio.propTypes = {
  className: PropTypes.string,
  style: PropTypes.object,
  color: PropTypes.oneOf(["green", "blue", "red"])
};

export { Radio as default };
