"use strict";

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

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

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

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

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

var _components = require("@alicloudfe/components");

var _classnames = _interopRequireDefault(require("classnames"));

var BDesignContainer = function BDesignContainer(props) {
  var className = props.className,
      size = props.size,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "size"]);
  return /*#__PURE__*/_react.default.createElement(_components.Radio, (0, _extends2.default)({
    className: (0, _classnames.default)(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 = (0, _objectWithoutProperties2.default)(props, ["className", "type", "theme"]);
  return /*#__PURE__*/_react.default.createElement(_components.Radio.Group, (0, _extends2.default)({
    className: (0, _classnames.default)(className, {
      'next-radio-group-container': type === "container",
      'next-radio-group-dark': theme === "dark"
    })
  }, rest));
};

BDesignContainer.Group = BDesignGroup;
var _default = BDesignContainer;
exports.default = _default;