"use strict";

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

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

var _radio = _interopRequireDefault(require("antd/es/radio"));

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

var InlineRadio = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
  return /*#__PURE__*/_react.default.createElement(_radio.default, Object.assign({
    ref: ref
  }, props, {
    prefixCls: "".concat(props.prefixCls, "-radio")
  }));
});

InlineRadio.defaultProps = {
  autoFocus: false,
  prefixCls: 'pxx'
};

var Group = function Group(props) {
  var radioGroupPrefixCls = "".concat(props.prefixCls, "-radio");
  return /*#__PURE__*/_react.default.createElement(_radio.default.Group, Object.assign({}, props, {
    prefixCls: radioGroupPrefixCls
  }));
};

exports.Group = Group;
Group.defaultProps = {
  prefixCls: 'pxx',
  buttonStyle: 'outline',
  disabled: false,
  optionType: 'default'
};

var Button = function Button(props) {
  return /*#__PURE__*/_react.default.createElement(_radio.default.Button, Object.assign({}, props, {
    prefixCls: "".concat(props.prefixCls, "-radio-group")
  }));
};

exports.Button = Button;
Button.defaultProps = {
  prefixCls: 'pxx'
};
var _default = InlineRadio;
exports.default = _default;