"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.Radio = Radio;
exports.RadioGroupContext = RadioGroupContext;
exports["default"] = RadioGroup;

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

var _RadioGroup = _interopRequireWildcard(require("./RadioGroup.behaviour"));

var _RadioGroup2 = _interopRequireWildcard(require("./RadioGroup.skeleton"));

var _RadioGroup3 = _interopRequireWildcard(require("./RadioGroup.propTypes"));

var _RadioGroup4 = _interopRequireWildcard(require("./RadioGroup.constantProps"));

var _componentCategories = _interopRequireDefault(require("../../docs-utils/componentCategories"));

var _componentGroups = _interopRequireDefault(require("../../docs-utils/componentGroups"));

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

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

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

function RadioGroup(props) {
  return /*#__PURE__*/_react["default"].createElement(_RadioGroup["default"], _extends({}, props, {
    renderComponent: _RadioGroup2["default"]
  }));
}

RadioGroup.propTypes = _RadioGroup3.radioGroupProps;
RadioGroup.defaultProps = _RadioGroup3.radioGroupDefaultProps;
RadioGroup.propsDescription = _RadioGroup3.radioGroupPropsDescription;
RadioGroup.constantProps = _RadioGroup4.RadioGroupConstant;

function RadioGroupContext(props) {
  return /*#__PURE__*/_react["default"].createElement(_RadioGroup.RadioContextBehaviour, _extends({}, props, {
    renderComponent: _RadioGroup2.RadioGroupContext
  }));
}

RadioGroupContext.propTypes = _RadioGroup3.radioContextProps;
RadioGroupContext.defaultProps = _RadioGroup3.radioContextDefaultProps;
RadioGroupContext.propsDescription = _RadioGroup3.radioContextPropsDescription;
RadioGroupContext.constantProps = _RadioGroup4.RadioGroupConstant;

function Radio(props) {
  return /*#__PURE__*/_react["default"].createElement(_RadioGroup.RadioBehaviour, _extends({}, props, {
    renderComponent: _RadioGroup2.Radio
  }));
}

Radio.propTypes = _RadioGroup3["default"];
Radio.defaultProps = _RadioGroup3.radioDefaultProps;
Radio.propsDescription = _RadioGroup3.radioPropsDescription;
Radio.constantProps = _RadioGroup4["default"];

if (false) {
  RadioGroup.docs = {
    componentGroup: _componentGroups["default"].Atom,
    folderName: _componentCategories["default"].Form
  };
}