"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.propsDescription = exports.defaultProps = exports["default"] = void 0;

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

var _Button = _interopRequireDefault(require("./Button.ariaPropTypes"));

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

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

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

var _Button2 = _interopRequireDefault(require("./Button.customIds"));

var _Button3 = _interopRequireDefault(require("./Button.constantProps"));

var _defaultProps;

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,
  children: _propTypes["default"].any,
  textEllipsis: _propTypes["default"].bool,
  focusClass: _propTypes["default"].string,
  size: _propTypes["default"].oneOf([_Button3["default"].size.small, _Button3["default"].size.medium, _Button3["default"].size.large, _Button3["default"].size.xLarge, _Button3["default"].size.stretch]),
  shape: _propTypes["default"].oneOf([_Button3["default"].shape.square, _Button3["default"].shape.oval, _Button3["default"].shape.circle, _Button3["default"].shape["default"]]),
  color: _propTypes["default"].oneOf([_Button3["default"].color.primary, _Button3["default"].color.secondary, _Button3["default"].color.success, _Button3["default"].color.danger]),
  variant: _propTypes["default"].oneOf([_Button3["default"].variant.contained, _Button3["default"].variant.outlined, _Button3["default"].variant.text]),
  active: _propTypes["default"].bool,
  hovered: _propTypes["default"].bool,
  disabled: _propTypes["default"].bool,
  onClick: _propTypes["default"].func,
  renderComponent: _propTypes["default"].func,
  startIcon: _propTypes["default"].any,
  endIcon: _propTypes["default"].any
}, _automation["default"]), _Button["default"]), _customClassName["default"]), _htmlAttributes["default"]);

exports["default"] = _default;
var defaultProps = (_defaultProps = {
  textEllipsis: false,
  size: _Button3["default"].size.medium,
  shape: _Button3["default"].shape["default"],
  variant: _Button3["default"].variant.contained,
  //color: constantProps.color.primary,
  // active : false,
  // hovered : false,
  // disabled : false,
  // autoFocus : false,
  tagAttributeProps: {}
}, _defineProperty(_defaultProps, _automation.automationPropsName, _Button2["default"]), _defineProperty(_defaultProps, _customClassName.customClassPropName, {}), _defineProperty(_defaultProps, _htmlAttributes.tagAttributePropsName, {}), _defaultProps);
exports.defaultProps = defaultProps;
var propsDescription = {
  text: "This defines the text that is show the message",
  children: "This defines the children that is show the button",
  textEllipsis: "This defines the text overflow handling in it",
  size: "This defines the size of button",
  shape: "This defines the shape of button",
  variant: "This defines the structural view of button",
  color: "This defines the color of button",
  active: "This defines the active state",
  hovered: "This defines the hovered state",
  disabled: "This defines the disabled state",
  autoFocus: "This defines the autofocus state",
  cursor: "This defines the state of cursor",
  onClick: "This defines the onClick action",
  startIcon: "This defines the icon to be placed in the front of button",
  endIcon: "This defines the icon to be placed in the end of button",
  tagAttributeProps: "This defines the props that the user want to show in the tags button",
  customClassName: "This defines the classname that are used by the user specifically",
  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",
  ariaLabel: "This defines the label of the element",
  role: "This defines the role of element",
  ariaLabelledby: "This defines the element labelled by its parent",
  ariaDisabled: "This defines the element disabled using aria",
  ariaPressed: "This defines the pressed state of button",
  ariaHasPopup: "This defines the popup of button",
  ariaExpanded: "This defines the popup used in button",
  ariaSelected: "This defines the selected state of button",
  ariaControls: "This defines the controls action in button",
  focusClass: "This defines the classname that applies when the element is focused",
  restoreFocus: "this defines whether the focus has to be restored to it "
};
exports.propsDescription = propsDescription;