"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.radioPropsDescription = exports.radioGroupPropsDescription = exports.radioGroupProps = exports.radioGroupDefaultProps = exports.radioDefaultProps = exports.radioContextPropsDescription = exports.radioContextProps = exports.radioContextDefaultProps = exports["default"] = void 0;

var _propTypes = _interopRequireDefault(require("prop-types"));

var _htmlAttributes = _interopRequireWildcard(require("../../propTypes/htmlAttributes.propTypes"));

var _customClassName = _interopRequireWildcard(require("../../propTypes/customClassName.propTypes"));

var _automation = _interopRequireWildcard(require("../../propTypes/automation.propTypes"));

var _RadioGroup = _interopRequireDefault(require("./RadioGroup.customIds"));

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

var _radioDefaultProps, _radioGroupDefaultPro, _radioContextDefaultP;

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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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 = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var _default = _objectSpread(_objectSpread(_objectSpread({
  text: _propTypes["default"].string.isRequired,
  name: _propTypes["default"].string,
  value: _propTypes["default"].string,
  variant: _propTypes["default"].oneOf([_RadioGroup2["default"].variant.inner, _RadioGroup2["default"].variant.outer]),
  size: _propTypes["default"].oneOf([_RadioGroup2["default"].size.small, _RadioGroup2["default"].size.medium, _RadioGroup2["default"].size.large]),
  color: _propTypes["default"].oneOf([_RadioGroup2["default"].color.primary, _RadioGroup2["default"].color.danger]),
  selectedValue: _propTypes["default"].string,
  disabled: _propTypes["default"].bool,
  onChange: _propTypes["default"].func,
  radioCondition: _propTypes["default"].func
}, _customClassName["default"]), _automation["default"]), _htmlAttributes["default"]);

exports["default"] = _default;
var radioDefaultProps = (_radioDefaultProps = {
  variant: _RadioGroup2["default"].variant.inner,
  size: _RadioGroup2["default"].size.medium,
  color: _RadioGroup2["default"].color.primary,
  disabled: false
}, _defineProperty(_radioDefaultProps, _automation.automationPropsName, _RadioGroup["default"]), _defineProperty(_radioDefaultProps, _customClassName.customClassPropName, {}), _defineProperty(_radioDefaultProps, _htmlAttributes.tagAttributePropsName, {}), _radioDefaultProps);
exports.radioDefaultProps = radioDefaultProps;
var radioPropsDescription = {
  text: "This defines the text that is show the name",
  size: "This defines the size of Radio",
  name: "it unique identification for radiogroup",
  variant: "This defines the structural view of Radio",
  color: "This defines the color of Radio",
  disabled: "This defines the disabled state",
  tagAttributeProps: "The tag Attribute props defines the attributes that can be directly given to the tag",
  customClassName: "The CustomClassName defines the classnames that can be directly given to the component",
  customId: "This defines the dataId that are used by automation purpose",
  customIdPrefix: "This defines the dataId that are used by automation purpose",
  customIdSuffix: "This defines the dataId that are used by automation purpose",
  onChange: "This define the function, on radio button current selected value"
};
exports.radioPropsDescription = radioPropsDescription;

var radioGroupProps = _objectSpread(_objectSpread(_objectSpread({
  children: _propTypes["default"].node,
  name: _propTypes["default"].string.isRequired,
  onChange: _propTypes["default"].func,
  setSelectedValue: _propTypes["default"].func,
  direction: _propTypes["default"].oneOf([_RadioGroup2.RadioGroupConstant.direction.horizontal, _RadioGroup2.RadioGroupConstant.direction.vertical]),
  defaultValue: _propTypes["default"].string,
  selectedId: _propTypes["default"].string
}, _customClassName["default"]), _htmlAttributes["default"]), _automation["default"]);

exports.radioGroupProps = radioGroupProps;
var radioGroupDefaultProps = (_radioGroupDefaultPro = {
  direction: _RadioGroup2.RadioGroupConstant.direction.horizontal
}, _defineProperty(_radioGroupDefaultPro, _customClassName.customClassPropName, {}), _defineProperty(_radioGroupDefaultPro, _htmlAttributes.tagAttributePropsName, {}), _defineProperty(_radioGroupDefaultPro, _automation.automationPropsName, _RadioGroup["default"]), _radioGroupDefaultPro);
exports.radioGroupDefaultProps = radioGroupDefaultProps;
var radioGroupPropsDescription = {
  children: "This defines the children of the component",
  name: "it's defined for unique identification",
  direction: "This define the radio direction",
  defaultValue: "This define the default selected radio value",
  selectedId: "This define the state handling default selected radio value",
  customClassName: "The CustomClassName defines the classnames that can be directly given to the component",
  tagAttributeProps: "The tag Attribute props defines the attributes that can be directly given to the tag",
  customId: "This defines the dataId that are used by automation purpose",
  customIdPrefix: "This defines the dataId that are used by automation purpose",
  customIdSuffix: "This defines the dataId that are used by automation purpose",
  onChange: "This define the function, on radio button current selected value"
};
exports.radioGroupPropsDescription = radioGroupPropsDescription;

var radioContextProps = _objectSpread(_objectSpread(_objectSpread({
  children: _propTypes["default"].node,
  name: _propTypes["default"].string.isRequired,
  onChange: _propTypes["default"].func,
  setSelectedValue: _propTypes["default"].func,
  direction: _propTypes["default"].oneOf([_RadioGroup2.RadioGroupConstant.direction.horizontal, _RadioGroup2.RadioGroupConstant.direction.vertical]),
  defaultValue: _propTypes["default"].string,
  selectedId: _propTypes["default"].string
}, _customClassName["default"]), _htmlAttributes["default"]), _automation["default"]);

exports.radioContextProps = radioContextProps;
var radioContextDefaultProps = (_radioContextDefaultP = {
  direction: _RadioGroup2.RadioGroupConstant.direction.horizontal
}, _defineProperty(_radioContextDefaultP, _customClassName.customClassPropName, {}), _defineProperty(_radioContextDefaultP, _htmlAttributes.tagAttributePropsName, {}), _defineProperty(_radioContextDefaultP, _automation.automationPropsName, _RadioGroup["default"]), _radioContextDefaultP);
exports.radioContextDefaultProps = radioContextDefaultProps;
var radioContextPropsDescription = {
  children: "This defines the children of the component",
  name: "it's defined for unique identification",
  direction: "This define the radio direction",
  defaultValue: "This define the default selected radio value",
  selectedId: "This define the state handling default selected radio value",
  customClassName: "The CustomClassName defines the classnames that can be directly given to the component",
  tagAttributeProps: "The tag Attribute props defines the attributes that can be directly given to the tag",
  customId: "This defines the dataId that are used by automation purpose",
  customIdPrefix: "This defines the dataId that are used by automation purpose",
  customIdSuffix: "This defines the dataId that are used by automation purpose",
  onChange: "This define the function, on radio button current selected value"
};
exports.radioContextPropsDescription = radioContextPropsDescription;