import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from "react";
import { Radio } from "@alicloudfe/components";
import cls from "classnames";

var BDesignContainer = function BDesignContainer(props) {
  var className = props.className,
      size = props.size,
      rest = _objectWithoutProperties(props, ["className", "size"]);

  return /*#__PURE__*/React.createElement(Radio, _extends({
    className: cls(className, {
      'next-radio-small': size === 'small',
      'next-radio-medium': size === 'medium',
      'next-radio-large': size === 'large'
    })
  }, rest));
};

var BDesignGroup = function BDesignGroup(props) {
  var className = props.className,
      type = props.type,
      theme = props.theme,
      rest = _objectWithoutProperties(props, ["className", "type", "theme"]);

  return /*#__PURE__*/React.createElement(Radio.Group, _extends({
    className: cls(className, {
      'next-radio-group-container': type === "container",
      'next-radio-group-dark': theme === "dark"
    })
  }, rest));
};

BDesignContainer.Group = BDesignGroup;
export default BDesignContainer;