@zohodesk/dot 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +16 -12
  5. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +1 -1
  6. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +1 -1
  7. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +1 -1
  8. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +1 -1
  9. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +1 -1
  10. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +1 -1
  11. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +1 -1
  12. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +1 -1
  13. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +1 -1
  14. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +1 -1
  15. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +1 -1
  16. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +1 -1
  17. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +1 -1
  18. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +1 -1
  19. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +1 -1
  20. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  21. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  22. package/coverage/ExternalLink/index.html +1 -1
  23. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  24. package/coverage/ExternalLink/props/index.html +1 -1
  25. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  26. package/coverage/IconButton/IconButton.js.html +466 -0
  27. package/coverage/IconButton/IconButton.module.css.html +151 -0
  28. package/coverage/IconButton/index.html +131 -0
  29. package/coverage/IconButton/props/defaultProps.js.html +136 -0
  30. package/coverage/IconButton/props/index.html +131 -0
  31. package/coverage/IconButton/props/propTypes.js.html +187 -0
  32. package/coverage/Image/Image.js.html +1 -1
  33. package/coverage/Image/Image.module.css.html +1 -1
  34. package/coverage/Image/index.html +1 -1
  35. package/coverage/Image/props/defaultProps.js.html +1 -1
  36. package/coverage/Image/props/index.html +1 -1
  37. package/coverage/Image/props/propTypes.js.html +1 -1
  38. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  39. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  40. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  41. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  42. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  43. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  44. package/coverage/coverage-final.json +16 -12
  45. package/coverage/coverage-summary.json +17 -13
  46. package/coverage/index.html +40 -10
  47. package/es/IconButton/__tests__/IconButton.spec.js +148 -0
  48. package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  49. package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
  50. package/es/v1/ActionButton/ActionButton.js +2 -2
  51. package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
  52. package/es/v1/Attachment/Attachment.js +78 -75
  53. package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
  54. package/es/v1/Image/Image.js +26 -33
  55. package/es/v1/Loader/Loader.js +12 -18
  56. package/es/v1/Message/Message.js +16 -42
  57. package/es/v1/PlusIcon/PlusIcon.js +25 -37
  58. package/es/v1/Separator/Separator.js +40 -47
  59. package/es/v1/Upload/Upload.js +59 -66
  60. package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
  61. package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
  62. package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
  63. package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
  64. package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
  65. package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
  66. package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
  67. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
  68. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
  69. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
  70. package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
  71. package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
  72. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
  73. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  74. package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  75. package/es/v1/form/fields/DateField/DateField.js +6 -6
  76. package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  77. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  78. package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
  79. package/es/v1/form/fields/RadioField/RadioField.js +89 -97
  80. package/es/v1/form/fields/SelectField/SelectField.js +139 -154
  81. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
  82. package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
  83. package/es/v1/list/SecondaryText/AccountName.js +61 -69
  84. package/es/v1/list/SecondaryText/ContactName.js +66 -74
  85. package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
  86. package/es/v1/list/SecondaryText/Email.js +32 -40
  87. package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
  88. package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
  89. package/es/v1/list/SecondaryText/PriorityText.js +16 -28
  90. package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
  91. package/es/v1/list/SecondaryText/StatusText.js +17 -29
  92. package/es/v1/list/SecondaryText/TicketId.js +33 -45
  93. package/es/v1/list/SecondaryText/Website.js +22 -30
  94. package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
  95. package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
  96. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  97. package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
  98. package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
  99. package/es/v1/lookup/Section/Section.js +14 -20
  100. package/es/v1/svg/PlusIcon.js +20 -27
  101. package/es/v1/svg/SnippetIcon.js +22 -29
  102. package/es/v1/svg/TemplateIcon.js +23 -30
  103. package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
  104. package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  105. package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
  106. package/lib/v1/ActionButton/ActionButton.js +2 -2
  107. package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
  108. package/lib/v1/Attachment/Attachment.js +77 -112
  109. package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
  110. package/lib/v1/Image/Image.js +26 -71
  111. package/lib/v1/Loader/Loader.js +12 -55
  112. package/lib/v1/Message/Message.js +23 -80
  113. package/lib/v1/PlusIcon/PlusIcon.js +25 -71
  114. package/lib/v1/Separator/Separator.js +44 -85
  115. package/lib/v1/Upload/Upload.js +58 -103
  116. package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
  117. package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
  118. package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
  119. package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
  120. package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
  121. package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
  122. package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
  123. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
  124. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
  125. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
  126. package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
  127. package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
  128. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
  129. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  130. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  131. package/lib/v1/form/fields/DateField/DateField.js +6 -6
  132. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  133. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  134. package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
  135. package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
  136. package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
  137. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
  138. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
  139. package/lib/v1/list/SecondaryText/AccountName.js +63 -113
  140. package/lib/v1/list/SecondaryText/ContactName.js +67 -117
  141. package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
  142. package/lib/v1/list/SecondaryText/Email.js +32 -82
  143. package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
  144. package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
  145. package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
  146. package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
  147. package/lib/v1/list/SecondaryText/StatusText.js +17 -67
  148. package/lib/v1/list/SecondaryText/TicketId.js +33 -83
  149. package/lib/v1/list/SecondaryText/Website.js +29 -72
  150. package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
  151. package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
  152. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  153. package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
  154. package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
  155. package/lib/v1/lookup/Section/Section.js +14 -58
  156. package/lib/v1/svg/PlusIcon.js +20 -65
  157. package/lib/v1/svg/SnippetIcon.js +22 -67
  158. package/lib/v1/svg/TemplateIcon.js +23 -68
  159. package/package.json +6 -6
  160. package/result.json +1 -1
  161. package/unittest/index.html +1 -1
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- 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); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = PhoneNumber;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _defaultProps = require("../../../list/SecondaryText/props/defaultProps");
13
11
 
@@ -19,89 +17,41 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
- 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); }
23
-
24
- 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; }
25
-
26
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
27
21
 
28
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
-
30
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31
-
32
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
-
34
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
-
36
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
-
38
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
39
-
40
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
22
+ function PhoneNumber(props) {
23
+ var text = props.text,
24
+ urlData = props.urlData,
25
+ urlName = props.urlName,
26
+ className = props.className,
27
+ title = props.title,
28
+ href = props.href,
29
+ dataId = props.dataId,
30
+ isLink = props.isLink,
31
+ target = props.target,
32
+ hasReload = props.hasReload,
33
+ fontWeight = props.fontWeight,
34
+ customProps = props.customProps;
35
+ var _customProps$LinkProp = customProps.LinkProps,
36
+ LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
37
+ _customProps$TextProp = customProps.TextProps,
38
+ TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
39
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
40
+ href: href,
41
+ title: title,
42
+ urlData: urlData,
43
+ urlName: urlName,
44
+ dataId: dataId,
45
+ target: target,
46
+ hasReload: hasReload,
47
+ className: _SecondaryTextModule["default"].link
48
+ }, LinkProps), /*#__PURE__*/_react["default"].createElement("div", {
49
+ className: "".concat(_SecondaryTextModule["default"].phoneNumber, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
50
+ }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
51
+ className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
52
+ "data-title": title
53
+ }, TextProps), text));
54
+ }
41
55
 
42
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
-
44
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
-
46
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
-
48
- var PhoneNumber = /*#__PURE__*/function (_Component) {
49
- _inherits(PhoneNumber, _Component);
50
-
51
- var _super = _createSuper(PhoneNumber);
52
-
53
- function PhoneNumber() {
54
- _classCallCheck(this, PhoneNumber);
55
-
56
- return _super.apply(this, arguments);
57
- }
58
-
59
- _createClass(PhoneNumber, [{
60
- key: "render",
61
- value: function render() {
62
- var _this$props = this.props,
63
- text = _this$props.text,
64
- urlData = _this$props.urlData,
65
- urlName = _this$props.urlName,
66
- className = _this$props.className,
67
- title = _this$props.title,
68
- href = _this$props.href,
69
- dataId = _this$props.dataId,
70
- isLink = _this$props.isLink,
71
- target = _this$props.target,
72
- hasReload = _this$props.hasReload,
73
- fontWeight = _this$props.fontWeight,
74
- customProps = _this$props.customProps;
75
- var _customProps$LinkProp = customProps.LinkProps,
76
- LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
77
- _customProps$TextProp = customProps.TextProps,
78
- TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
79
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
80
- href: href,
81
- title: title,
82
- urlData: urlData,
83
- urlName: urlName,
84
- dataId: dataId,
85
- target: target,
86
- hasReload: hasReload,
87
- className: _SecondaryTextModule["default"].link
88
- }, LinkProps), /*#__PURE__*/_react["default"].createElement("div", {
89
- className: "".concat(_SecondaryTextModule["default"].phoneNumber, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
90
- }, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
91
- className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
92
- "data-title": title
93
- }, TextProps), text));
94
- }
95
- }]);
96
-
97
- return PhoneNumber;
98
- }(_react.Component);
99
-
100
- exports["default"] = PhoneNumber;
101
56
  PhoneNumber.propTypes = _propTypes.PhoneNumber_propTypes;
102
- PhoneNumber.defaultProps = _defaultProps.PhoneNumber_defaultProps; // if (__DOCS__) {
103
- // PhoneNumber.docs = {
104
- // folderName: 'List',
105
- // componentGroup: 'PhoneNumberText'
106
- // };
107
- // }
57
+ PhoneNumber.defaultProps = _defaultProps.PhoneNumber_defaultProps;
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- 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); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = PriorityText;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _defaultProps = require("../../../list/SecondaryText/props/defaultProps");
13
11
 
@@ -17,67 +15,19 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- 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); }
21
-
22
- 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; }
23
-
24
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
-
26
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
-
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
-
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
-
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
-
34
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
-
36
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
18
+ function PriorityText(props) {
19
+ var className = props.className,
20
+ color = props.color,
21
+ text = props.text,
22
+ dataTitle = props.dataTitle,
23
+ dataId = props.dataId;
24
+ return /*#__PURE__*/_react["default"].createElement("div", {
25
+ className: "".concat(_SecondaryTextModule["default"].priorityText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(className ? className : ''),
26
+ "data-title": dataTitle,
27
+ "data-id": dataId,
28
+ "data-test-id": dataId
29
+ }, text);
30
+ }
37
31
 
38
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
-
40
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
-
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
-
44
- var PriorityText = /*#__PURE__*/function (_Component) {
45
- _inherits(PriorityText, _Component);
46
-
47
- var _super = _createSuper(PriorityText);
48
-
49
- function PriorityText(props) {
50
- _classCallCheck(this, PriorityText);
51
-
52
- return _super.call(this, props);
53
- }
54
-
55
- _createClass(PriorityText, [{
56
- key: "render",
57
- value: function render() {
58
- var _this$props = this.props,
59
- className = _this$props.className,
60
- color = _this$props.color,
61
- text = _this$props.text,
62
- dataTitle = _this$props.dataTitle,
63
- dataId = _this$props.dataId;
64
- return /*#__PURE__*/_react["default"].createElement("div", {
65
- className: "".concat(_SecondaryTextModule["default"].priorityText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(className ? className : ''),
66
- "data-title": dataTitle,
67
- "data-id": dataId,
68
- "data-test-id": dataId
69
- }, text);
70
- }
71
- }]);
72
-
73
- return PriorityText;
74
- }(_react.Component);
75
-
76
- exports["default"] = PriorityText;
77
32
  PriorityText.propTypes = _propTypes.PriorityText_propTypes;
78
- PriorityText.defaultProps = _defaultProps.PriorityText_defaultProps; // if (__DOCS__) {
79
- // PriorityText.docs = {
80
- // folderName: 'List',
81
- // componentGroup: 'PriorityText'
82
- // };
83
- // }
33
+ PriorityText.defaultProps = _defaultProps.PriorityText_defaultProps;
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- 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); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = SecondaryText;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _defaultProps = require("../../../list/SecondaryText/props/defaultProps");
13
11
 
@@ -17,72 +15,24 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- 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); }
21
-
22
- 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; }
23
-
24
18
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
25
19
 
26
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
27
-
28
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
29
-
30
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
31
-
32
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
-
34
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
35
-
36
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
37
-
38
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
20
+ function SecondaryText(props) {
21
+ var className = props.className,
22
+ text = props.text,
23
+ dataTitle = props.dataTitle,
24
+ dataId = props.dataId,
25
+ onClick = props.onClick,
26
+ customProps = props.customProps;
27
+ var SecondaryTextProps = customProps.SecondaryTextProps;
28
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
29
+ className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
30
+ "data-title": dataTitle,
31
+ "data-id": dataId,
32
+ "data-test-id": dataId,
33
+ onClick: onClick
34
+ }, SecondaryTextProps), text);
35
+ }
39
36
 
40
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
41
-
42
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
43
-
44
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
-
46
- var SecondaryText = /*#__PURE__*/function (_Component) {
47
- _inherits(SecondaryText, _Component);
48
-
49
- var _super = _createSuper(SecondaryText);
50
-
51
- function SecondaryText(props) {
52
- _classCallCheck(this, SecondaryText);
53
-
54
- return _super.call(this, props);
55
- }
56
-
57
- _createClass(SecondaryText, [{
58
- key: "render",
59
- value: function render() {
60
- var _this$props = this.props,
61
- className = _this$props.className,
62
- text = _this$props.text,
63
- dataTitle = _this$props.dataTitle,
64
- dataId = _this$props.dataId,
65
- onClick = _this$props.onClick,
66
- customProps = _this$props.customProps;
67
- var SecondaryTextProps = customProps.SecondaryTextProps;
68
- return /*#__PURE__*/_react["default"].createElement("div", _extends({
69
- className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
70
- "data-title": dataTitle,
71
- "data-id": dataId,
72
- "data-test-id": dataId,
73
- onClick: onClick
74
- }, SecondaryTextProps), text);
75
- }
76
- }]);
77
-
78
- return SecondaryText;
79
- }(_react.Component);
80
-
81
- exports["default"] = SecondaryText;
82
37
  SecondaryText.propTypes = _propTypes.SecondaryText_propTypes;
83
- SecondaryText.defaultProps = _defaultProps.SecondaryText_defaultProps; // if (__DOCS__) {
84
- // SecondaryText.docs = {
85
- // folderName: 'List',
86
- // componentGroup: 'SecondaryText'
87
- // };
88
- // }
38
+ SecondaryText.defaultProps = _defaultProps.SecondaryText_defaultProps;
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- 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); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = StatusText;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _defaultProps = require("../../../list/SecondaryText/props/defaultProps");
13
11
 
@@ -17,68 +15,20 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- 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); }
21
-
22
- 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; }
23
-
24
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
-
26
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
27
-
28
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
-
30
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
-
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
-
34
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
-
36
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
18
+ function StatusText(props) {
19
+ var className = props.className,
20
+ color = props.color,
21
+ text = props.text,
22
+ dataTitle = props.dataTitle,
23
+ fontWeight = props.fontWeight,
24
+ dataId = props.dataId;
25
+ return /*#__PURE__*/_react["default"].createElement("div", {
26
+ className: "".concat(_SecondaryTextModule["default"].statusText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
27
+ "data-title": dataTitle,
28
+ "data-id": dataId,
29
+ "data-test-id": dataId
30
+ }, text);
31
+ }
37
32
 
38
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
-
40
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
-
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
-
44
- var StatusText = /*#__PURE__*/function (_Component) {
45
- _inherits(StatusText, _Component);
46
-
47
- var _super = _createSuper(StatusText);
48
-
49
- function StatusText(props) {
50
- _classCallCheck(this, StatusText);
51
-
52
- return _super.call(this, props);
53
- }
54
-
55
- _createClass(StatusText, [{
56
- key: "render",
57
- value: function render() {
58
- var _this$props = this.props,
59
- className = _this$props.className,
60
- color = _this$props.color,
61
- text = _this$props.text,
62
- dataTitle = _this$props.dataTitle,
63
- fontWeight = _this$props.fontWeight,
64
- dataId = _this$props.dataId;
65
- return /*#__PURE__*/_react["default"].createElement("div", {
66
- className: "".concat(_SecondaryTextModule["default"].statusText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : ''),
67
- "data-title": dataTitle,
68
- "data-id": dataId,
69
- "data-test-id": dataId
70
- }, text);
71
- }
72
- }]);
73
-
74
- return StatusText;
75
- }(_react.Component);
76
-
77
- exports["default"] = StatusText;
78
33
  StatusText.propTypes = _propTypes.StatusText_propTypes;
79
- StatusText.defaultProps = _defaultProps.StatusText_defaultProps; // if (__DOCS__) {
80
- // StatusText.docs = {
81
- // folderName: 'List',
82
- // componentGroup: 'StatusText'
83
- // };
84
- // }
34
+ StatusText.defaultProps = _defaultProps.StatusText_defaultProps;
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- 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); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = TicketId;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
10
  var _defaultProps = require("../../../list/SecondaryText/props/defaultProps");
13
11
 
@@ -19,86 +17,38 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
- 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); }
23
-
24
- 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; }
25
-
26
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
27
21
 
28
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
-
30
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31
-
32
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
-
34
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
-
36
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
-
38
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
39
-
40
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
22
+ function TicketId(props) {
23
+ var text = props.text,
24
+ className = props.className,
25
+ dataId = props.dataId,
26
+ isLink = props.isLink,
27
+ dataTitle = props.dataTitle,
28
+ onClick = props.onClick,
29
+ url = props.url,
30
+ target = props.target,
31
+ urlName = props.urlName,
32
+ urlData = props.urlData,
33
+ customProps = props.customProps;
34
+ var _customProps$LinkProp = customProps.LinkProps,
35
+ LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
36
+ _customProps$TicketId = customProps.TicketIdProps,
37
+ TicketIdProps = _customProps$TicketId === void 0 ? {} : _customProps$TicketId;
38
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
39
+ className: "".concat(_SecondaryTextModule["default"].ticketId, " ").concat(isLink ? _SecondaryTextModule["default"].ticketIdLink : '', " ").concat(className ? className : ''),
40
+ "data-id": dataId,
41
+ "data-test-id": dataId,
42
+ "data-title": dataTitle,
43
+ onClick: !isLink && onClick
44
+ }, TicketIdProps), isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
45
+ urlName: urlName,
46
+ urlData: urlData,
47
+ href: url,
48
+ target: target,
49
+ onClick: onClick
50
+ }, LinkProps), text) : text);
51
+ }
41
52
 
42
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
-
44
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
-
46
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
-
48
- var TicketId = /*#__PURE__*/function (_Component) {
49
- _inherits(TicketId, _Component);
50
-
51
- var _super = _createSuper(TicketId);
52
-
53
- function TicketId(props) {
54
- _classCallCheck(this, TicketId);
55
-
56
- return _super.call(this, props);
57
- }
58
-
59
- _createClass(TicketId, [{
60
- key: "render",
61
- value: function render() {
62
- var _this$props = this.props,
63
- text = _this$props.text,
64
- className = _this$props.className,
65
- dataId = _this$props.dataId,
66
- isLink = _this$props.isLink,
67
- dataTitle = _this$props.dataTitle,
68
- onClick = _this$props.onClick,
69
- url = _this$props.url,
70
- target = _this$props.target,
71
- urlName = _this$props.urlName,
72
- urlData = _this$props.urlData,
73
- customProps = _this$props.customProps;
74
- var _customProps$LinkProp = customProps.LinkProps,
75
- LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
76
- _customProps$TicketId = customProps.TicketIdProps,
77
- TicketIdProps = _customProps$TicketId === void 0 ? {} : _customProps$TicketId;
78
- return /*#__PURE__*/_react["default"].createElement("div", _extends({
79
- className: "".concat(_SecondaryTextModule["default"].ticketId, " ").concat(isLink ? _SecondaryTextModule["default"].ticketIdLink : '', " ").concat(className ? className : ''),
80
- "data-id": dataId,
81
- "data-test-id": dataId,
82
- "data-title": dataTitle,
83
- onClick: !isLink && onClick
84
- }, TicketIdProps), isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
85
- urlName: urlName,
86
- urlData: urlData,
87
- href: url,
88
- target: target,
89
- onClick: onClick
90
- }, LinkProps), text) : text);
91
- }
92
- }]);
93
-
94
- return TicketId;
95
- }(_react.Component);
96
-
97
- exports["default"] = TicketId;
98
53
  TicketId.propTypes = _propTypes.TicketId_propTypes;
99
- TicketId.defaultProps = _defaultProps.TicketId_defaultProps; // if (__DOCS__) {
100
- // TicketId.docs = {
101
- // folderName: 'List',
102
- // componentGroup: 'TicketId'
103
- // };
104
- // }
54
+ TicketId.defaultProps = _defaultProps.TicketId_defaultProps;