@zohodesk/dot 1.0.0-temp-159 → 1.0.0-temp-162

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 (158) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +3 -2
  4. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +1 -1
  5. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +1 -1
  6. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +1 -1
  7. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +1 -1
  8. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +1 -1
  9. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +1 -1
  10. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +1 -1
  11. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +1 -1
  12. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +1 -1
  13. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +1 -1
  14. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +1 -1
  15. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +1 -1
  16. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +1 -1
  17. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +1 -1
  18. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +1 -1
  19. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  20. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  21. package/coverage/ExternalLink/index.html +1 -1
  22. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  23. package/coverage/ExternalLink/props/index.html +1 -1
  24. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  25. package/coverage/IconButton/IconButton.js.html +7 -7
  26. package/coverage/IconButton/IconButton.module.css.html +1 -1
  27. package/coverage/IconButton/index.html +11 -11
  28. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  29. package/coverage/IconButton/props/index.html +1 -1
  30. package/coverage/IconButton/props/propTypes.js.html +1 -1
  31. package/coverage/Image/Image.js.html +1 -1
  32. package/coverage/Image/Image.module.css.html +1 -1
  33. package/coverage/Image/index.html +1 -1
  34. package/coverage/Image/props/defaultProps.js.html +1 -1
  35. package/coverage/Image/props/index.html +1 -1
  36. package/coverage/Image/props/propTypes.js.html +1 -1
  37. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  38. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  39. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  40. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  41. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  42. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  43. package/coverage/coverage-final.json +16 -16
  44. package/coverage/coverage-summary.json +17 -17
  45. package/coverage/index.html +11 -11
  46. package/es/Attachment/Attachment.module.css +2 -2
  47. package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
  48. package/es/Drawer/Drawer.js +1 -1
  49. package/es/IconButton/IconButton.js +2 -2
  50. package/es/ImportantNotes/ImportantNotes.module.css +6 -2
  51. package/es/ToastMessage/ToastMessage.module.css +2 -2
  52. package/es/Upload/Upload.module.css +1 -1
  53. package/es/alert/AlertLookup/AlertLookup.module.css +1 -1
  54. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
  55. package/es/errorstate/EmptyStates.module.css +3 -3
  56. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
  57. package/es/form/fields/Fields.module.css +2 -2
  58. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  59. package/es/list/status/StatusDropdown/StatusDropdown.js +1 -2
  60. package/es/list/status/StatusListItem/StatusListItem.js +1 -1
  61. package/es/list/status/StatusListItem/StatusListItem.module.css +1 -1
  62. package/es/lookup/Lookup/Lookup.js +1 -1
  63. package/es/lookup/header/Close/LookupClose.module.css +1 -1
  64. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
  65. package/es/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
  66. package/es/v1/Image/Image.js +26 -33
  67. package/es/v1/Message/Message.js +16 -42
  68. package/es/v1/PlusIcon/PlusIcon.js +25 -37
  69. package/es/v1/Separator/Separator.js +40 -47
  70. package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
  71. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
  72. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
  73. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
  74. package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
  75. package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
  76. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
  77. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
  78. package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
  79. package/es/v1/list/SecondaryText/AccountName.js +61 -69
  80. package/es/v1/list/SecondaryText/ContactName.js +66 -74
  81. package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
  82. package/es/v1/list/SecondaryText/Email.js +32 -40
  83. package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
  84. package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
  85. package/es/v1/list/SecondaryText/PriorityText.js +16 -28
  86. package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
  87. package/es/v1/list/SecondaryText/StatusText.js +17 -29
  88. package/es/v1/list/SecondaryText/TicketId.js +33 -45
  89. package/es/v1/list/SecondaryText/Website.js +22 -30
  90. package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
  91. package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
  92. package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
  93. package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
  94. package/es/v1/lookup/Section/Section.js +14 -20
  95. package/es/version2/GlobalNotification/GlobalNotification.module.css +1 -1
  96. package/es/version2/errorstate/V2_ErrorStates.module.css +1 -1
  97. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
  98. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  99. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
  100. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -3
  101. package/lib/Attachment/Attachment.module.css +2 -2
  102. package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
  103. package/lib/Drawer/Drawer.js +1 -1
  104. package/lib/IconButton/IconButton.js +2 -2
  105. package/lib/ImportantNotes/ImportantNotes.module.css +6 -2
  106. package/lib/ToastMessage/ToastMessage.module.css +2 -2
  107. package/lib/Upload/Upload.module.css +1 -1
  108. package/lib/alert/AlertLookup/AlertLookup.module.css +1 -1
  109. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +1 -1
  110. package/lib/errorstate/EmptyStates.module.css +3 -3
  111. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
  112. package/lib/form/fields/Fields.module.css +2 -2
  113. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  114. package/lib/list/status/StatusDropdown/StatusDropdown.js +1 -2
  115. package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
  116. package/lib/list/status/StatusListItem/StatusListItem.module.css +1 -1
  117. package/lib/lookup/Lookup/Lookup.js +1 -1
  118. package/lib/lookup/header/Close/LookupClose.module.css +1 -1
  119. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
  120. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
  121. package/lib/v1/Image/Image.js +26 -71
  122. package/lib/v1/Message/Message.js +23 -80
  123. package/lib/v1/PlusIcon/PlusIcon.js +25 -71
  124. package/lib/v1/Separator/Separator.js +44 -85
  125. package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
  126. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
  127. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
  128. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
  129. package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
  130. package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
  131. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
  132. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
  133. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
  134. package/lib/v1/list/SecondaryText/AccountName.js +63 -113
  135. package/lib/v1/list/SecondaryText/ContactName.js +67 -117
  136. package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
  137. package/lib/v1/list/SecondaryText/Email.js +32 -82
  138. package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
  139. package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
  140. package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
  141. package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
  142. package/lib/v1/list/SecondaryText/StatusText.js +17 -67
  143. package/lib/v1/list/SecondaryText/TicketId.js +33 -83
  144. package/lib/v1/list/SecondaryText/Website.js +29 -72
  145. package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
  146. package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
  147. package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
  148. package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
  149. package/lib/v1/lookup/Section/Section.js +14 -58
  150. package/lib/version2/GlobalNotification/GlobalNotification.module.css +1 -1
  151. package/lib/version2/errorstate/V2_ErrorStates.module.css +1 -1
  152. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -1
  153. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  154. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +2 -2
  155. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +3 -3
  156. package/package.json +7 -7
  157. package/result.json +1 -1
  158. package/unittest/index.html +1 -1
@@ -1,6 +1,6 @@
1
1
  .text {
2
2
  font-size: var(--zd_font_size14) ;
3
3
  color: var(--zdt_helptips_text);
4
- line-height: var(--zd_size24);
4
+ line-height: 1.7142857142857142;
5
5
  margin: var(--zd_size10) 0 ;
6
6
  }
@@ -1,11 +1,9 @@
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"] = Image;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -17,73 +15,30 @@ var _ImageModule = _interopRequireDefault(require("../../Image/Image.module.css"
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- 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); } }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
-
26
- 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); }
27
-
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
-
30
- 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); }; }
31
-
32
- 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); }
33
-
34
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
+ function Image(props) {
19
+ var alt = props.alt,
20
+ src = props.src,
21
+ className = props.className,
22
+ isCover = props.isCover,
23
+ title = props.title,
24
+ onClick = props.onClick,
25
+ dataId = props.dataId,
26
+ htmlId = props.htmlId,
27
+ eleRef = props.eleRef,
28
+ original = props.original;
29
+ return /*#__PURE__*/_react["default"].createElement("img", {
30
+ src: src,
31
+ alt: alt,
32
+ "data-title": title,
33
+ "data-id": dataId,
34
+ "data-test-id": dataId,
35
+ className: " ".concat(className, " ").concat(isCover ? _ImageModule["default"].imgFullSize : _ImageModule["default"].imgMaxFullSize, " "),
36
+ onClick: onClick,
37
+ id: htmlId,
38
+ ref: eleRef,
39
+ "data-original": original
40
+ });
41
+ }
35
42
 
36
- 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; } }
37
-
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
-
40
- var Image = /*#__PURE__*/function (_React$Component) {
41
- _inherits(Image, _React$Component);
42
-
43
- var _super = _createSuper(Image);
44
-
45
- function Image() {
46
- _classCallCheck(this, Image);
47
-
48
- return _super.apply(this, arguments);
49
- }
50
-
51
- _createClass(Image, [{
52
- key: "render",
53
- value: function render() {
54
- var _this$props = this.props,
55
- alt = _this$props.alt,
56
- src = _this$props.src,
57
- className = _this$props.className,
58
- isCover = _this$props.isCover,
59
- title = _this$props.title,
60
- onClick = _this$props.onClick,
61
- dataId = _this$props.dataId,
62
- htmlId = _this$props.htmlId,
63
- eleRef = _this$props.eleRef,
64
- original = _this$props.original;
65
- return /*#__PURE__*/_react["default"].createElement("img", {
66
- src: src,
67
- alt: alt,
68
- "data-title": title,
69
- "data-id": dataId,
70
- "data-test-id": dataId,
71
- className: " ".concat(className, " ").concat(isCover ? _ImageModule["default"].imgFullSize : _ImageModule["default"].imgMaxFullSize, " "),
72
- onClick: onClick,
73
- id: htmlId,
74
- ref: eleRef,
75
- "data-original": original
76
- });
77
- }
78
- }]);
79
-
80
- return Image;
81
- }(_react["default"].Component);
82
-
83
- exports["default"] = Image;
84
43
  Image.propTypes = _propTypes.propTypes;
85
- Image.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
86
- // Image.docs = {
87
- // componentGroup: 'Atom'
88
- // };
89
- // }
44
+ Image.defaultProps = _defaultProps.defaultProps;
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.MessageNew = MessageNew;
9
9
  exports.MessageUI = MessageUI;
10
- exports["default"] = void 0;
10
+ exports["default"] = Message;
11
11
 
12
- var _react = _interopRequireDefault(require("react"));
12
+ var _react = _interopRequireWildcard(require("react"));
13
13
 
14
14
  var _defaultProps = require("../../Message/props/defaultProps");
15
15
 
@@ -23,90 +23,33 @@ var _MessageModule = _interopRequireDefault(require("../../Message/Message.modul
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
25
 
26
- 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
-
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); }
41
-
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; } }
26
+ 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); }
45
27
 
46
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
28
+ 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; }
47
29
 
48
- var Message = /*#__PURE__*/function (_React$Component) {
49
- _inherits(Message, _React$Component);
50
-
51
- var _super = _createSuper(Message);
52
-
53
- function Message(props) {
54
- var _this;
55
-
56
- _classCallCheck(this, Message);
57
-
58
- _this = _super.call(this, props);
59
- _this.state = {
60
- hideMessage: false
61
- };
62
- return _this;
63
- }
30
+ 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); }
64
31
 
65
- _createClass(Message, [{
66
- key: "UNSAFE_componentWillReceiveProps",
67
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
68
- var _this$props = this.props,
69
- showMessage = _this$props.showMessage,
70
- hideMessage = _this$props.hideMessage;
71
-
72
- if (showMessage !== nextProps.showMessage) {
73
- if (nextProps.type != 'alert') {
74
- setTimeout(function () {
75
- hideMessage();
76
- }, 3000);
77
- }
78
- }
32
+ function Message(props) {
33
+ // constructor(props) {
34
+ // super(props);
35
+ // this.state = { hideMessage: false };
36
+ // }
37
+ // const [hideMessage,setHideMessage] = useState(false)
38
+ var showMessage = props.showMessage,
39
+ hideMessage = props.hideMessage,
40
+ type = props.type;
41
+ (0, _react.useEffect)(function () {
42
+ if (type != 'alert') {
43
+ setTimeout(function () {
44
+ hideMessage();
45
+ }, 3000);
79
46
  }
80
- }, {
81
- key: "componentDidMount",
82
- value: function componentDidMount() {
83
- var _this$props2 = this.props,
84
- type = _this$props2.type,
85
- hideMessage = _this$props2.hideMessage;
86
-
87
- if (type != 'alert') {
88
- setTimeout(function () {
89
- hideMessage();
90
- }, 3000);
91
- }
92
- }
93
- }, {
94
- key: "render",
95
- value: function render() {
96
- return /*#__PURE__*/_react["default"].createElement(MessageUI, this.props);
97
- }
98
- }]);
99
-
100
- return Message;
101
- }(_react["default"].Component);
47
+ }, [showMessage]);
48
+ return /*#__PURE__*/_react["default"].createElement(MessageUI, props);
49
+ }
102
50
 
103
- exports["default"] = Message;
104
51
  Message.propTypes = _propTypes.propTypes;
105
- Message.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
106
- // Message.docs = {
107
- // componentGroup: 'Atom'
108
- // };
109
- // }
52
+ Message.defaultProps = _defaultProps.defaultProps;
110
53
 
111
54
  function MessageUI(props) {
112
55
  function onClose(e) {
@@ -1,11 +1,9 @@
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"] = PlusIcon;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -19,73 +17,29 @@ var _AvatarIcon = _interopRequireDefault(require("../avatar/AvatarIcon/AvatarIco
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
- 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); } }
25
-
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
-
28
- 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); }
29
-
30
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
-
32
- 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); }; }
33
-
34
- 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); }
35
-
36
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
20
+ function PlusIcon(props) {
21
+ var dataId = props.dataId,
22
+ iconName = props.iconName,
23
+ iconClass = props.iconClass,
24
+ iconSize = props.iconSize,
25
+ size = props.size,
26
+ onClick = props.onClick,
27
+ title = props.title,
28
+ customClass = props.customClass;
29
+ return /*#__PURE__*/_react["default"].createElement("span", {
30
+ className: _PlusIconModule["default"].container,
31
+ onClick: onClick,
32
+ "data-id": dataId,
33
+ "data-test-id": dataId,
34
+ "data-title": title
35
+ }, /*#__PURE__*/_react["default"].createElement(_AvatarIcon["default"], {
36
+ name: iconName,
37
+ iconClass: "".concat(iconClass, " ").concat(_PlusIconModule["default"].icon),
38
+ iconSize: iconSize,
39
+ size: size,
40
+ className: "".concat(customClass, " ").concat(_PlusIconModule["default"].plusIcon)
41
+ }));
42
+ }
37
43
 
38
- 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; } }
39
-
40
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
-
42
- var PlusIcon = /*#__PURE__*/function (_React$Component) {
43
- _inherits(PlusIcon, _React$Component);
44
-
45
- var _super = _createSuper(PlusIcon);
46
-
47
- function PlusIcon(props) {
48
- _classCallCheck(this, PlusIcon);
49
-
50
- return _super.call(this, props);
51
- }
52
-
53
- _createClass(PlusIcon, [{
54
- key: "render",
55
- value: function render() {
56
- var _this$props = this.props,
57
- dataId = _this$props.dataId,
58
- iconName = _this$props.iconName,
59
- iconClass = _this$props.iconClass,
60
- iconSize = _this$props.iconSize,
61
- size = _this$props.size,
62
- onClick = _this$props.onClick,
63
- title = _this$props.title,
64
- customClass = _this$props.customClass;
65
- return /*#__PURE__*/_react["default"].createElement("span", {
66
- className: _PlusIconModule["default"].container,
67
- onClick: onClick,
68
- "data-id": dataId,
69
- "data-test-id": dataId,
70
- "data-title": title
71
- }, /*#__PURE__*/_react["default"].createElement(_AvatarIcon["default"], {
72
- name: iconName,
73
- iconClass: "".concat(iconClass, " ").concat(_PlusIconModule["default"].icon),
74
- iconSize: iconSize,
75
- size: size,
76
- className: "".concat(customClass, " ").concat(_PlusIconModule["default"].plusIcon)
77
- }));
78
- }
79
- }]);
80
-
81
- return PlusIcon;
82
- }(_react["default"].Component);
83
-
84
- exports["default"] = PlusIcon;
85
44
  PlusIcon.defaultProps = _defaultProps.defaultProps;
86
- PlusIcon.propTypes = _propTypes.propTypes; // if (__DOCS__) {
87
- // PlusIcon.docs = {
88
- // componentGroup: 'Common',
89
- // folderName: 'Ticket DetailView'
90
- // };
91
- // }
45
+ PlusIcon.propTypes = _propTypes.propTypes;
@@ -1,11 +1,9 @@
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"] = Separator;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -19,89 +17,50 @@ var _SeparatorModule = _interopRequireDefault(require("../../Separator/Separator
19
17
 
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
22
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
- 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); } }
25
-
26
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
-
28
- 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); }
29
-
30
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
-
32
- 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); }; }
33
-
34
- 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); }
35
-
36
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
-
38
- 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; } }
39
-
40
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
-
42
- var Separator = /*#__PURE__*/function (_React$Component) {
43
- _inherits(Separator, _React$Component);
44
-
45
- var _super = _createSuper(Separator);
46
-
47
- function Separator(props) {
48
- _classCallCheck(this, Separator);
49
-
50
- return _super.call(this, props);
51
- }
52
-
53
- _createClass(Separator, [{
54
- key: "render",
55
- value: function render() {
56
- var _this$props = this.props,
57
- children = _this$props.children,
58
- type = _this$props.type,
59
- customSeparatorType = _this$props.customSeparatorType,
60
- palette = _this$props.palette,
61
- wrap = _this$props.wrap,
62
- shrink = _this$props.shrink,
63
- aligndirection = _this$props.aligndirection,
64
- customClass = _this$props.customClass;
65
- var customWrapper = customClass.customWrapper,
66
- customSeparator = customClass.customSeparator,
67
- customChildren = customClass.customChildren;
68
- var data = children.filter(function (el) {
69
- return el !== null && el !== undefined && el !== false;
70
- });
71
- return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
72
- alignBox: aligndirection,
73
- align: aligndirection === 'row' ? 'vertical' : '',
74
- wrap: wrap,
75
- isCover: false,
76
- className: "".concat(_SeparatorModule["default"].varClass, " ").concat(customWrapper)
77
- }, data.map(function (child, i) {
78
- if (child) {
79
- if (data.length - 1 == i || aligndirection == 'column') {
80
- return child && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
81
- shrink: shrink,
82
- key: i,
83
- className: customChildren
84
- }, child);
85
- }
86
-
87
- return child && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
88
- key: i
89
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
90
- shrink: shrink,
91
- key: i,
92
- className: customChildren
93
- }, child), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
94
- className: "".concat(_SeparatorModule["default"].separator, " ").concat(_SeparatorModule["default"][palette], " ").concat(customSeparatorType ? '' : _SeparatorModule["default"][type], " ").concat(customSeparator, " "),
95
- key: i
96
- }, customSeparatorType ? customSeparatorType : type == 'slash' ? '/' : type == 'arrow' ? '>' : type == 'comma' ? ',' : "\u2022"));
97
- }
98
- }));
20
+ function Separator(props) {
21
+ var children = props.children,
22
+ type = props.type,
23
+ customSeparatorType = props.customSeparatorType,
24
+ palette = props.palette,
25
+ wrap = props.wrap,
26
+ shrink = props.shrink,
27
+ aligndirection = props.aligndirection,
28
+ customClass = props.customClass;
29
+ var customWrapper = customClass.customWrapper,
30
+ customSeparator = customClass.customSeparator,
31
+ customChildren = customClass.customChildren;
32
+ var data = children.filter(function (el) {
33
+ return el !== null && el !== undefined && el !== false;
34
+ });
35
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
36
+ alignBox: aligndirection,
37
+ align: aligndirection === 'row' ? 'vertical' : '',
38
+ wrap: wrap,
39
+ isCover: false,
40
+ className: "".concat(_SeparatorModule["default"].varClass, " ").concat(customWrapper)
41
+ }, data.map(function (child, i) {
42
+ if (child) {
43
+ if (data.length - 1 == i || aligndirection == 'column') {
44
+ return child && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
45
+ shrink: shrink,
46
+ key: i,
47
+ className: customChildren
48
+ }, child);
49
+ }
50
+
51
+ return child && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
52
+ key: i
53
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
54
+ shrink: shrink,
55
+ key: i,
56
+ className: customChildren
57
+ }, child), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
58
+ className: "".concat(_SeparatorModule["default"].separator, " ").concat(_SeparatorModule["default"][palette], " ").concat(customSeparatorType ? '' : _SeparatorModule["default"][type], " ").concat(customSeparator, " "),
59
+ key: i
60
+ }, customSeparatorType ? customSeparatorType : type == 'slash' ? '/' : type == 'arrow' ? '>' : type == 'comma' ? ',' : "\u2022"));
99
61
  }
100
- }]);
62
+ }));
63
+ }
101
64
 
102
- return Separator;
103
- }(_react["default"].Component);
104
-
105
- exports["default"] = Separator;
106
65
  Separator.defaultProps = _defaultProps.defaultProps;
107
66
  Separator.propTypes = _propTypes.propTypes;
@@ -1,11 +1,9 @@
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"] = AvatarClose;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -23,79 +21,36 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
23
21
 
24
22
  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
23
 
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); }
39
-
40
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
+ function AvatarClose(props) {
25
+ var title = props.title,
26
+ src = props.src,
27
+ name = props.name,
28
+ size = props.size,
29
+ isClose = props.isClose,
30
+ onClick = props.onClick,
31
+ customProps = props.customProps,
32
+ dataSelectorId = props.dataSelectorId;
33
+ var _customProps$AvatarCl = customProps.AvatarCloseProps,
34
+ AvatarCloseProps = _customProps$AvatarCl === void 0 ? {} : _customProps$AvatarCl,
35
+ _customProps$AvatarPr = customProps.AvatarProps,
36
+ AvatarProps = _customProps$AvatarPr === void 0 ? {} : _customProps$AvatarPr;
37
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
38
+ className: _AvatarCloseModule["default"].container,
39
+ "data-selector-id": dataSelectorId
40
+ }, AvatarCloseProps), /*#__PURE__*/_react["default"].createElement(_Avatar["default"], _extends({
41
+ src: src,
42
+ name: name,
43
+ title: title,
44
+ size: size
45
+ }, AvatarProps)), isClose && /*#__PURE__*/_react["default"].createElement("span", {
46
+ className: _AvatarCloseModule["default"].pop,
47
+ onClick: onClick
48
+ }, /*#__PURE__*/_react["default"].createElement("span", {
49
+ className: _AvatarCloseModule["default"].icon
50
+ }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
51
+ name: "ZD-plus"
52
+ }))));
53
+ }
41
54
 
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 AvatarClose = /*#__PURE__*/function (_React$Component) {
47
- _inherits(AvatarClose, _React$Component);
48
-
49
- var _super = _createSuper(AvatarClose);
50
-
51
- function AvatarClose(props) {
52
- _classCallCheck(this, AvatarClose);
53
-
54
- return _super.call(this, props);
55
- }
56
-
57
- _createClass(AvatarClose, [{
58
- key: "render",
59
- value: function render() {
60
- var _this$props = this.props,
61
- title = _this$props.title,
62
- src = _this$props.src,
63
- name = _this$props.name,
64
- size = _this$props.size,
65
- isClose = _this$props.isClose,
66
- onClick = _this$props.onClick,
67
- customProps = _this$props.customProps,
68
- dataSelectorId = _this$props.dataSelectorId;
69
- var _customProps$AvatarCl = customProps.AvatarCloseProps,
70
- AvatarCloseProps = _customProps$AvatarCl === void 0 ? {} : _customProps$AvatarCl,
71
- _customProps$AvatarPr = customProps.AvatarProps,
72
- AvatarProps = _customProps$AvatarPr === void 0 ? {} : _customProps$AvatarPr;
73
- return /*#__PURE__*/_react["default"].createElement("div", _extends({
74
- className: _AvatarCloseModule["default"].container,
75
- "data-selector-id": dataSelectorId
76
- }, AvatarCloseProps), /*#__PURE__*/_react["default"].createElement(_Avatar["default"], _extends({
77
- src: src,
78
- name: name,
79
- title: title,
80
- size: size
81
- }, AvatarProps)), isClose && /*#__PURE__*/_react["default"].createElement("span", {
82
- className: _AvatarCloseModule["default"].pop,
83
- onClick: onClick
84
- }, /*#__PURE__*/_react["default"].createElement("span", {
85
- className: _AvatarCloseModule["default"].icon
86
- }, /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
87
- name: "ZD-plus"
88
- }))));
89
- }
90
- }]);
91
-
92
- return AvatarClose;
93
- }(_react["default"].Component);
94
-
95
- exports["default"] = AvatarClose;
96
55
  AvatarClose.propTypes = _propTypes.propTypes;
97
- AvatarClose.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
98
- // AvatarClose.docs = {
99
- // componentGroup: 'Avatar Group'
100
- // };
101
- // }
56
+ AvatarClose.defaultProps = _defaultProps.defaultProps;