"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["default"] = exports.checkboxPropsDescription = exports.checkboxGroupPropsDescription = exports.checkboxGroupProps = exports.checkboxGroupDefaultProps = exports.checkboxDefaultProps = exports.checkboxContextPropsDescription = exports.checkboxContextProps = exports.checkboxContextDefaultProps = void 0;

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

var _Checkbox = _interopRequireWildcard(require("./Checkbox.ariaPropTypes"));

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

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

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

var _Checkbox2 = _interopRequireDefault(require("./Checkbox.customIds"));

var _Checkbox3 = _interopRequireWildcard(require("./Checkbox.constantProps"));

var _checkboxDefaultProps, _checkboxGroupDefault, _checkboxContextDefau;

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(_objectSpread({
  text: _propTypes["default"].string,
  name: _propTypes["default"].string.isRequired,
  id: _propTypes["default"].string,
  value: _propTypes["default"].string,
  size: _propTypes["default"].oneOf([_Checkbox3["default"].size.small, _Checkbox3["default"].size.medium, _Checkbox3["default"].size.large]),
  color: _propTypes["default"].oneOf([_Checkbox3["default"].color.primary, _Checkbox3["default"].color.danger, _Checkbox3["default"].color.success]),
  children: _propTypes["default"].any,
  selectedValue: _propTypes["default"].array,
  disabled: _propTypes["default"].bool,
  onChange: _propTypes["default"].func,
  checkboxCondition: _propTypes["default"].func
}, _customClassName["default"]), _automation["default"]), _htmlAttributes["default"]), _Checkbox["default"]);

exports["default"] = _default;
var checkboxDefaultProps = (_checkboxDefaultProps = {
  size: _Checkbox3["default"].size.medium,
  color: _Checkbox3["default"].color.primary,
  disabled: false
}, _defineProperty(_checkboxDefaultProps, _automation.automationPropsName, _Checkbox2["default"]), _defineProperty(_checkboxDefaultProps, _customClassName.customClassPropName, {}), _defineProperty(_checkboxDefaultProps, _htmlAttributes.tagAttributePropsName, {}), _checkboxDefaultProps);
exports.checkboxDefaultProps = checkboxDefaultProps;
var checkboxPropsDescription = {
  text: "This defines the text that is show the name",
  size: "This defines the size of Checkbox",
  id: "This defaines the id of the chekbox",
  name: "it unique identification for checkboxgroup",
  color: "This defines the color of Checkbox",
  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 checkbox button current selected value"
};
exports.checkboxPropsDescription = checkboxPropsDescription;

var checkboxGroupProps = _objectSpread(_objectSpread(_objectSpread(_objectSpread({
  children: _propTypes["default"].node,
  name: _propTypes["default"].string.isRequired,
  onChange: _propTypes["default"].func,
  selectedValue: _propTypes["default"].func,
  direction: _propTypes["default"].oneOf([_Checkbox3.CheckboxGroupConstant.direction.row, _Checkbox3.CheckboxGroupConstant.direction.column]),
  gap: _propTypes["default"].oneOf([_Checkbox3.CheckboxGroupConstant.gap.xSmall, _Checkbox3.CheckboxGroupConstant.gap.small, _Checkbox3.CheckboxGroupConstant.gap.medium, _Checkbox3.CheckboxGroupConstant.gap.large, _Checkbox3.CheckboxGroupConstant.gap.none]),
  defaultValue: _propTypes["default"].array,
  selectedId: _propTypes["default"].string
}, _customClassName["default"]), _htmlAttributes["default"]), _automation["default"]), _Checkbox.checkboxGroupDefaultAriaProps);

exports.checkboxGroupProps = checkboxGroupProps;
var checkboxGroupDefaultProps = (_checkboxGroupDefault = {
  direction: _Checkbox3.CheckboxGroupConstant.direction.row
}, _defineProperty(_checkboxGroupDefault, _customClassName.customClassPropName, {}), _defineProperty(_checkboxGroupDefault, _htmlAttributes.tagAttributePropsName, {}), _defineProperty(_checkboxGroupDefault, _automation.automationPropsName, _Checkbox2["default"]), _checkboxGroupDefault);
exports.checkboxGroupDefaultProps = checkboxGroupDefaultProps;
var checkboxGroupPropsDescription = {
  children: "This defines the children of the component",
  name: "it's defined for unique identification",
  direction: "This define the checkbox direction",
  defaultValue: "This define the default selected checkbox value",
  selectedvalue: "This define the state handling default selected checkbox 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 checkbox button current selected value"
};
exports.checkboxGroupPropsDescription = checkboxGroupPropsDescription;

var checkboxContextProps = _objectSpread(_objectSpread(_objectSpread({
  children: _propTypes["default"].node.isRequired,
  name: _propTypes["default"].string.isRequired,
  onChange: _propTypes["default"].func,
  selectedValue: _propTypes["default"].func,
  defaultValue: _propTypes["default"].array
}, _customClassName["default"]), _htmlAttributes["default"]), _automation["default"]);

exports.checkboxContextProps = checkboxContextProps;
var checkboxContextDefaultProps = (_checkboxContextDefau = {}, _defineProperty(_checkboxContextDefau, _customClassName.customClassPropName, {}), _defineProperty(_checkboxContextDefau, _htmlAttributes.tagAttributePropsName, {}), _defineProperty(_checkboxContextDefau, _automation.automationPropsName, _Checkbox2["default"]), _checkboxContextDefau);
exports.checkboxContextDefaultProps = checkboxContextDefaultProps;
var checkboxContextPropsDescription = {
  children: "This defines the children of the component",
  name: "it's defined for unique identification",
  defaultValue: "This define the default selected checkbox value",
  selectedValue: "This define the state handling default selected checkbox 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 checkbox button current selected value"
};
exports.checkboxContextPropsDescription = checkboxContextPropsDescription;