"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 _Text = _interopRequireDefault(require("./Text.ariaPropTypes"));

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

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

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

var _Text2 = _interopRequireDefault(require("./Text.customIds"));

var _Text3 = _interopRequireDefault(require("./Text.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({
  textEllipsis: _propTypes["default"].bool,
  wordWrap: _propTypes["default"].bool,
  variant: _propTypes["default"].oneOf([_Text3["default"].variant.normal, _Text3["default"].variant.primary, _Text3["default"].variant.secondary]),
  size: _propTypes["default"].oneOf([_Text3["default"].size.xSmall, _Text3["default"].size.small, _Text3["default"].size.medium, _Text3["default"].size.large, _Text3["default"].size.xLarge, _Text3["default"].size.xxLarge]),
  direction: _propTypes["default"].oneOf([_Text3["default"].direction.vertical, _Text3["default"].direction.horizontal]),
  auto: _propTypes["default"].bool,
  stretch: _propTypes["default"].bool,
  align: _propTypes["default"].oneOf([_Text3["default"].align.left, _Text3["default"].align.center, _Text3["default"].align.right]),
  weight: _propTypes["default"].oneOf([_Text3["default"].weight.xSmall, _Text3["default"].weight.small, _Text3["default"].weight.medium, _Text3["default"].weight.large, _Text3["default"].weight.xLarge, _Text3["default"].weight.bold, _Text3["default"].weight.bolder, _Text3["default"].weight.lighter, _Text3["default"].weight.normal]),
  transform: _propTypes["default"].oneOf([_Text3["default"].transform.upperCase, _Text3["default"].transform.lowerCase, _Text3["default"].transform.capitalize]),
  colorPalette: _propTypes["default"].oneOf([_Text3["default"].colorPalette.darknight, _Text3["default"].colorPalette.danger, _Text3["default"].colorPalette.grayness, _Text3["default"].colorPalette.whiteness, _Text3["default"].colorPalette.success, _Text3["default"].colorPalette.info, _Text3["default"].colorPalette.highlight, _Text3["default"].colorPalette.lighter]),
  lineHeight: _propTypes["default"].oneOf([_Text3["default"].lineHeight.xSmall, _Text3["default"].lineHeight.small, _Text3["default"].lineHeight.medium, _Text3["default"].lineHeight.large, _Text3["default"].lineHeight.xLarge, _Text3["default"].lineHeight.xxLarge]),
  letterSpacing: _propTypes["default"].oneOf([_Text3["default"].letterSpacing.xSmall, _Text3["default"].letterSpacing.small, _Text3["default"].letterSpacing.medium, _Text3["default"].letterSpacing.large, _Text3["default"].letterSpacing.xLarge, _Text3["default"].letterSpacing.xxLarge]),
  indent: _propTypes["default"].oneOf([_Text3["default"].indent.small, _Text3["default"].indent.medium, _Text3["default"].indent.large]),
  decoration: _propTypes["default"].oneOf([_Text3["default"].decoration.lineThrough, _Text3["default"].decoration.underLine, _Text3["default"].decoration.overLine]),
  decorationColor: _propTypes["default"].oneOf([_Text3["default"].decorationColor.darknight, _Text3["default"].decorationColor.danger, _Text3["default"].decorationColor.grayness, _Text3["default"].decorationColor.whiteness, _Text3["default"].decorationColor.success, _Text3["default"].decorationColor.info, _Text3["default"].decorationColor.highlight, _Text3["default"].decorationColor.lighter]),
  type: _propTypes["default"].oneOf([_Text3["default"].type.heading, _Text3["default"].type.paragraph, _Text3["default"].type.blockquote]),
  level: _propTypes["default"].oneOf([_Text3["default"].level.one, _Text3["default"].level.two, _Text3["default"].level.three, _Text3["default"].level.four, _Text3["default"].level.five, _Text3["default"].level.six]),
  children: _propTypes["default"].any,
  content: _propTypes["default"].string,
  tagName: _propTypes["default"].string,
  onClick: _propTypes["default"].func,
  startIcon: _propTypes["default"].any,
  endIcon: _propTypes["default"].any
}, _Text["default"]), _customClassName["default"]), _automation["default"]), _htmlAttributes["default"]);

exports["default"] = _default;
var defaultProps = (_defaultProps = {}, _defineProperty(_defaultProps, _automation.automationPropsName, _Text2["default"]), _defineProperty(_defaultProps, _customClassName.customClassPropName, {}), _defineProperty(_defaultProps, _htmlAttributes.tagAttributePropsName, {}), _defaultProps);
exports.defaultProps = defaultProps;
var propsDescription = {
  variant: "The Text can be any of the two available variants.",
  textEllipsis: "The Text ellipsis is a method to display the overflow property",
  wordWrap: "The Text Wrap is used for wrap the words in sentence",
  weight: "The Text weight is given based on  user centric values",
  align: "The Text is aligned based of the position",
  direction: "The Text and icons can be showing as direction defined",
  auto: "The Text component will take remaining with of parent area",
  stretch: "The Text componet will take 100 percenatge of parent area",
  tagName: "the TagName defines the text to be rendered in given tags",
  size: "The size defines the font size of the text",
  dimension: "The dimension defines the respective measurement of the text parent",
  transform: "The Transform property denotes the whethet the text is in case",
  type: "the Type defines the type of text of available",
  level: "the level used to show heading level like h1, h2, h3...",
  colorPalette: "The Text can be displayed in available colors",
  decoration: "the decoration can be any of three of available",
  decorationColor: "the decoration color can be any these of available",
  indent: "the indent can  be any of three of available",
  startIcon: "the icon component will be display in start of text",
  endIcon: "the icon component will be display in end of text",
  tagAttributeProps: "the tag Attribute props defines the attributes that can be directly given to the tag",
  children: "the children defines the child nodes that are directly given to the tag",
  customClassName: "the CustomClassName defines the classnames that can be directly given to the component"
};
exports.propsDescription = propsDescription;