@zohodesk/dot 1.0.0-temp-175.6 → 1.0.0-temp-175.7

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 (33) hide show
  1. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  2. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  3. package/coverage/ExternalLink/index.html +1 -1
  4. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  5. package/coverage/ExternalLink/props/index.html +1 -1
  6. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  7. package/coverage/IconButton/IconButton.js.html +1 -1
  8. package/coverage/IconButton/IconButton.module.css.html +1 -1
  9. package/coverage/IconButton/index.html +1 -1
  10. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  11. package/coverage/IconButton/props/index.html +1 -1
  12. package/coverage/IconButton/props/propTypes.js.html +1 -1
  13. package/coverage/Image/Image.js.html +1 -1
  14. package/coverage/Image/Image.module.css.html +1 -1
  15. package/coverage/Image/index.html +1 -1
  16. package/coverage/Image/props/defaultProps.js.html +1 -1
  17. package/coverage/Image/props/index.html +1 -1
  18. package/coverage/Image/props/propTypes.js.html +1 -1
  19. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  20. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  25. package/coverage/index.html +1 -1
  26. package/es/v1/GlobalNotification/GlobalNotification.js +51 -19
  27. package/es/v1/GlobalNotification/props/defaultProps.js +3 -1
  28. package/es/v1/GlobalNotification/props/propTypes.js +12 -2
  29. package/lib/v1/GlobalNotification/GlobalNotification.js +66 -17
  30. package/lib/v1/GlobalNotification/props/defaultProps.js +3 -1
  31. package/lib/v1/GlobalNotification/props/propTypes.js +17 -4
  32. package/package.json +1 -1
  33. package/result.json +1 -1
@@ -214,7 +214,7 @@ ExternalLink.propTypes = propTypes;
214
214
  <div class='footer quiet pad2 space-top1 center small'>
215
215
  Code coverage generated by
216
216
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
217
- at 2024-02-09T11:40:13.729Z
217
+ at 2024-02-09T15:28:50.021Z
218
218
  </div>
219
219
  <script src="../prettify.js"></script>
220
220
  <script>
@@ -79,7 +79,7 @@
79
79
  <div class='footer quiet pad2 space-top1 center small'>
80
80
  Code coverage generated by
81
81
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
82
- at 2024-02-09T11:40:13.729Z
82
+ at 2024-02-09T15:28:50.021Z
83
83
  </div>
84
84
  <script src="../prettify.js"></script>
85
85
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2024-02-09T11:40:13.729Z
119
+ at 2024-02-09T15:28:50.021Z
120
120
  </div>
121
121
  <script src="../prettify.js"></script>
122
122
  <script>
@@ -85,7 +85,7 @@
85
85
  <div class='footer quiet pad2 space-top1 center small'>
86
86
  Code coverage generated by
87
87
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
88
- at 2024-02-09T11:40:13.729Z
88
+ at 2024-02-09T15:28:50.021Z
89
89
  </div>
90
90
  <script src="../../prettify.js"></script>
91
91
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2024-02-09T11:40:13.729Z
119
+ at 2024-02-09T15:28:50.021Z
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -109,7 +109,7 @@ export const propTypes = {
109
109
  <div class='footer quiet pad2 space-top1 center small'>
110
110
  Code coverage generated by
111
111
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
112
- at 2024-02-09T11:40:13.729Z
112
+ at 2024-02-09T15:28:50.021Z
113
113
  </div>
114
114
  <script src="../../prettify.js"></script>
115
115
  <script>
@@ -451,7 +451,7 @@ IconButton.defaultProps = defaultProps;
451
451
  <div class='footer quiet pad2 space-top1 center small'>
452
452
  Code coverage generated by
453
453
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
454
- at 2024-02-09T11:40:13.729Z
454
+ at 2024-02-09T15:28:50.021Z
455
455
  </div>
456
456
  <script src="../prettify.js"></script>
457
457
  <script>
@@ -139,7 +139,7 @@
139
139
  <div class='footer quiet pad2 space-top1 center small'>
140
140
  Code coverage generated by
141
141
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
142
- at 2024-02-09T11:40:13.729Z
142
+ at 2024-02-09T15:28:50.021Z
143
143
  </div>
144
144
  <script src="../prettify.js"></script>
145
145
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2024-02-09T11:40:13.729Z
119
+ at 2024-02-09T15:28:50.021Z
120
120
  </div>
121
121
  <script src="../prettify.js"></script>
122
122
  <script>
@@ -121,7 +121,7 @@
121
121
  <div class='footer quiet pad2 space-top1 center small'>
122
122
  Code coverage generated by
123
123
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
124
- at 2024-02-09T11:40:13.729Z
124
+ at 2024-02-09T15:28:50.021Z
125
125
  </div>
126
126
  <script src="../../prettify.js"></script>
127
127
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2024-02-09T11:40:13.729Z
119
+ at 2024-02-09T15:28:50.021Z
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -172,7 +172,7 @@ export const propTypes = {
172
172
  <div class='footer quiet pad2 space-top1 center small'>
173
173
  Code coverage generated by
174
174
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
175
- at 2024-02-09T11:40:13.729Z
175
+ at 2024-02-09T15:28:50.021Z
176
176
  </div>
177
177
  <script src="../../prettify.js"></script>
178
178
  <script>
@@ -169,7 +169,7 @@ Image.defaultProps = defaultProps;
169
169
  <div class='footer quiet pad2 space-top1 center small'>
170
170
  Code coverage generated by
171
171
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
172
- at 2024-02-09T11:40:13.729Z
172
+ at 2024-02-09T15:28:50.021Z
173
173
  </div>
174
174
  <script src="../prettify.js"></script>
175
175
  <script>
@@ -103,7 +103,7 @@
103
103
  <div class='footer quiet pad2 space-top1 center small'>
104
104
  Code coverage generated by
105
105
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
106
- at 2024-02-09T11:40:13.729Z
106
+ at 2024-02-09T15:28:50.021Z
107
107
  </div>
108
108
  <script src="../prettify.js"></script>
109
109
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2024-02-09T11:40:13.729Z
119
+ at 2024-02-09T15:28:50.021Z
120
120
  </div>
121
121
  <script src="../prettify.js"></script>
122
122
  <script>
@@ -82,7 +82,7 @@
82
82
  <div class='footer quiet pad2 space-top1 center small'>
83
83
  Code coverage generated by
84
84
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
85
- at 2024-02-09T11:40:13.729Z
85
+ at 2024-02-09T15:28:50.021Z
86
86
  </div>
87
87
  <script src="../../prettify.js"></script>
88
88
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2024-02-09T11:40:13.729Z
119
+ at 2024-02-09T15:28:50.021Z
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -112,7 +112,7 @@ export const propTypes = {
112
112
  <div class='footer quiet pad2 space-top1 center small'>
113
113
  Code coverage generated by
114
114
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
115
- at 2024-02-09T11:40:13.729Z
115
+ at 2024-02-09T15:28:50.021Z
116
116
  </div>
117
117
  <script src="../../prettify.js"></script>
118
118
  <script>
@@ -433,7 +433,7 @@ AvatarWithTeam.propTypes = propTypes;
433
433
  <div class='footer quiet pad2 space-top1 center small'>
434
434
  Code coverage generated by
435
435
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
436
- at 2024-02-09T11:40:13.729Z
436
+ at 2024-02-09T15:28:50.021Z
437
437
  </div>
438
438
  <script src="../../prettify.js"></script>
439
439
  <script>
@@ -118,7 +118,7 @@
118
118
  <div class='footer quiet pad2 space-top1 center small'>
119
119
  Code coverage generated by
120
120
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
121
- at 2024-02-09T11:40:13.729Z
121
+ at 2024-02-09T15:28:50.021Z
122
122
  </div>
123
123
  <script src="../../prettify.js"></script>
124
124
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2024-02-09T11:40:13.729Z
119
+ at 2024-02-09T15:28:50.021Z
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -97,7 +97,7 @@
97
97
  <div class='footer quiet pad2 space-top1 center small'>
98
98
  Code coverage generated by
99
99
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
100
- at 2024-02-09T11:40:13.729Z
100
+ at 2024-02-09T15:28:50.021Z
101
101
  </div>
102
102
  <script src="../../../prettify.js"></script>
103
103
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2024-02-09T11:40:13.729Z
119
+ at 2024-02-09T15:28:50.021Z
120
120
  </div>
121
121
  <script src="../../../prettify.js"></script>
122
122
  <script>
@@ -148,7 +148,7 @@ export const propTypes = {
148
148
  <div class='footer quiet pad2 space-top1 center small'>
149
149
  Code coverage generated by
150
150
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
151
- at 2024-02-09T11:40:13.729Z
151
+ at 2024-02-09T15:28:50.021Z
152
152
  </div>
153
153
  <script src="../../../prettify.js"></script>
154
154
  <script>
@@ -206,7 +206,7 @@
206
206
  <div class='footer quiet pad2 space-top1 center small'>
207
207
  Code coverage generated by
208
208
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
209
- at 2024-02-09T11:40:13.729Z
209
+ at 2024-02-09T15:28:50.021Z
210
210
  </div>
211
211
  <script src="prettify.js"></script>
212
212
  <script>
@@ -7,28 +7,50 @@ import AutoClose from '../../actions/AutoClose';
7
7
  import AlertIcons from '../alert/alertIcons/AlertIcons';
8
8
  import AlertClose from '../alert/AlertClose/AlertClose';
9
9
  import { Container, Box } from '@zohodesk/components/es/v1/Layout';
10
+ import { cancelBubblingEffect } from '@zohodesk/components/es/utils/Common';
10
11
  import style from '../../version2/GlobalNotification/GlobalNotification.module.css';
11
12
  export default function GlobalNotification(props) {
12
13
  let {
13
14
  type,
14
15
  message,
15
16
  hideMessage,
17
+ hideTime,
16
18
  onClick,
19
+ onClose,
20
+ needAutoClose,
17
21
  i18nKeys = {},
18
22
  customProps,
19
23
  dataSelectorId,
20
- showMessage
24
+ id,
25
+ needShadow,
26
+ shadowCount,
27
+ eleRef
21
28
  } = props;
29
+ const hideMessageTimer = useRef(null);
30
+ const [shadowClose, setShadowClose] = useState(true);
22
31
  useEffect(() => {
23
- if (!['danger', 'error', 'warning'].includes(type)) {
24
- setTimeout(() => {
25
- hideMessage();
26
- }, 3000);
32
+ if (needAutoClose) {
33
+ hideMessageTimer.current = setTimeout(() => {
34
+ hideMessage(id);
35
+ }, hideTime);
27
36
  }
28
- }, [showMessage, type]);
37
+
38
+ return () => {
39
+ if (hideMessageTimer.current) {
40
+ clearTimeout(hideMessageTimer.current);
41
+ }
42
+ };
43
+ }, []);
29
44
  let {
30
45
  closeTitle = 'Close'
31
46
  } = i18nKeys;
47
+
48
+ function onCloseLocal(e) {
49
+ setShadowClose(false);
50
+ hideMessage && hideMessage(id);
51
+ onClose && onClose(e);
52
+ }
53
+
32
54
  return /*#__PURE__*/React.createElement(GlobalNotificationUI, {
33
55
  type: type,
34
56
  message: message,
@@ -36,7 +58,12 @@ export default function GlobalNotification(props) {
36
58
  onClick: onClick,
37
59
  closeTitle: closeTitle,
38
60
  customProps: customProps,
39
- dataSelectorId: dataSelectorId
61
+ dataSelectorId: dataSelectorId,
62
+ id: id,
63
+ shadowCount: shadowCount,
64
+ onClose: onCloseLocal,
65
+ needShadow: shadowClose && needShadow,
66
+ eleRef: eleRef
40
67
  });
41
68
  }
42
69
  GlobalNotification.propTypes = propTypes;
@@ -48,28 +75,33 @@ GlobalNotification.defaultProps = defaultProps; // if (__DOCS__) {
48
75
  // }
49
76
 
50
77
  export function GlobalNotificationUI(props) {
51
- function onClose(e) {
52
- let {
53
- hideMessage,
54
- onClose
55
- } = props;
56
- hideMessage && hideMessage(e);
57
- onClose && onClose(e);
58
- }
59
-
60
78
  let {
61
79
  type = '',
62
80
  message,
63
81
  onClick,
64
82
  closeTitle = '',
65
83
  customProps = {},
66
- dataSelectorId
84
+ dataSelectorId,
85
+ shadowCount,
86
+ needShadow,
87
+ eleRef,
88
+ onClose
67
89
  } = props;
68
90
  let {
69
91
  ExtraProps = {}
70
92
  } = customProps;
93
+
94
+ function onCloseLocal(e) {
95
+ cancelBubblingEffect(e);
96
+ onClose && onClose(e);
97
+ }
98
+
71
99
  return /*#__PURE__*/React.createElement("div", _extends({
72
- className: `${style.message} ${type ? style[type] : ''}`,
100
+ ref: eleRef,
101
+ className: ` ${style.message}
102
+ ${needShadow && shadowCount >= 2 ? shadowCount > 2 ? `${style.stackShadowTwo} ${style.stackShadowOne}` : style.stackShadowOne : ''}
103
+ ${type ? style[type] : ''}
104
+ `,
73
105
  "data-id": `show_${type}_message`,
74
106
  "data-test-id": `show_${type}_message`,
75
107
  tabIndex: 0,
@@ -100,7 +132,7 @@ export function GlobalNotificationUI(props) {
100
132
  }, /*#__PURE__*/React.createElement(AlertClose, {
101
133
  dataId: `close_${type}_message`,
102
134
  dataTitle: closeTitle,
103
- onClose: onClose,
135
+ onClose: onCloseLocal,
104
136
  type: type
105
137
  }))));
106
138
  }
@@ -1,4 +1,6 @@
1
1
  export const defaultProps = {
2
2
  customProps: {},
3
- dataSelectorId: 'globalNotification'
3
+ dataSelectorId: 'globalNotification',
4
+ needAutoClose: true,
5
+ hideTime: 3000
4
6
  };
@@ -9,7 +9,13 @@ export const propTypes = {
9
9
  i18nKeys: PropTypes.object,
10
10
  customProps: PropTypes.shape({
11
11
  ExtraProps: PropTypes.object
12
- })
12
+ }),
13
+ id: PropTypes.number,
14
+ hideTime: PropTypes.number,
15
+ needAutoClose: PropTypes.bool,
16
+ isCollapseView: PropTypes.bool,
17
+ shadowCount: PropTypes.number,
18
+ needShadow: PropTypes.bool
13
19
  };
14
20
  export const UI_propTypes = {
15
21
  dataSelectorId: PropTypes.string,
@@ -21,7 +27,11 @@ export const UI_propTypes = {
21
27
  type: PropTypes.oneOf(['success', 'danger', 'info', 'warning', 'error']),
22
28
  customProps: PropTypes.shape({
23
29
  ExtraProps: PropTypes.object
24
- })
30
+ }),
31
+ needShadow: PropTypes.bool,
32
+ shadowCount: PropTypes.number,
33
+ id: PropTypes.number,
34
+ onClose: PropTypes.func
25
35
  };
26
36
  export const new_propTypes = {
27
37
  Element: PropTypes.element,
@@ -23,6 +23,8 @@ var _AlertClose = _interopRequireDefault(require("../alert/AlertClose/AlertClose
23
23
 
24
24
  var _Layout = require("@zohodesk/components/es/v1/Layout");
25
25
 
26
+ var _Common = require("@zohodesk/components/es/utils/Common");
27
+
26
28
  var _GlobalNotificationModule = _interopRequireDefault(require("../../version2/GlobalNotification/GlobalNotification.module.css"));
27
29
 
28
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -33,25 +35,63 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
33
35
 
34
36
  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); }
35
37
 
38
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
39
+
40
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
41
+
42
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
43
+
44
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
45
+
46
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
47
+
48
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
49
+
36
50
  function GlobalNotification(props) {
37
51
  var type = props.type,
38
52
  message = props.message,
39
53
  hideMessage = props.hideMessage,
54
+ hideTime = props.hideTime,
40
55
  onClick = props.onClick,
56
+ onClose = props.onClose,
57
+ needAutoClose = props.needAutoClose,
41
58
  _props$i18nKeys = props.i18nKeys,
42
59
  i18nKeys = _props$i18nKeys === void 0 ? {} : _props$i18nKeys,
43
60
  customProps = props.customProps,
44
61
  dataSelectorId = props.dataSelectorId,
45
- showMessage = props.showMessage;
62
+ id = props.id,
63
+ needShadow = props.needShadow,
64
+ shadowCount = props.shadowCount,
65
+ eleRef = props.eleRef;
66
+ var hideMessageTimer = useRef(null);
67
+
68
+ var _useState = useState(true),
69
+ _useState2 = _slicedToArray(_useState, 2),
70
+ shadowClose = _useState2[0],
71
+ setShadowClose = _useState2[1];
72
+
46
73
  (0, _react.useEffect)(function () {
47
- if (!['danger', 'error', 'warning'].includes(type)) {
48
- setTimeout(function () {
49
- hideMessage();
50
- }, 3000);
74
+ if (needAutoClose) {
75
+ hideMessageTimer.current = setTimeout(function () {
76
+ hideMessage(id);
77
+ }, hideTime);
51
78
  }
52
- }, [showMessage, type]);
79
+
80
+ return function () {
81
+ if (hideMessageTimer.current) {
82
+ clearTimeout(hideMessageTimer.current);
83
+ }
84
+ };
85
+ }, []);
53
86
  var _i18nKeys$closeTitle = i18nKeys.closeTitle,
54
87
  closeTitle = _i18nKeys$closeTitle === void 0 ? 'Close' : _i18nKeys$closeTitle;
88
+
89
+ function onCloseLocal(e) {
90
+ setShadowClose(false);
91
+ hideMessage && hideMessage(id);
92
+ onClose && onClose(e);
93
+ }
94
+
55
95
  return /*#__PURE__*/_react["default"].createElement(GlobalNotificationUI, {
56
96
  type: type,
57
97
  message: message,
@@ -59,7 +99,12 @@ function GlobalNotification(props) {
59
99
  onClick: onClick,
60
100
  closeTitle: closeTitle,
61
101
  customProps: customProps,
62
- dataSelectorId: dataSelectorId
102
+ dataSelectorId: dataSelectorId,
103
+ id: id,
104
+ shadowCount: shadowCount,
105
+ onClose: onCloseLocal,
106
+ needShadow: shadowClose && needShadow,
107
+ eleRef: eleRef
63
108
  });
64
109
  }
65
110
 
@@ -72,13 +117,6 @@ GlobalNotification.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
72
117
  // }
73
118
 
74
119
  function GlobalNotificationUI(props) {
75
- function onClose(e) {
76
- var hideMessage = props.hideMessage,
77
- onClose = props.onClose;
78
- hideMessage && hideMessage(e);
79
- onClose && onClose(e);
80
- }
81
-
82
120
  var _props$type = props.type,
83
121
  type = _props$type === void 0 ? '' : _props$type,
84
122
  message = props.message,
@@ -87,11 +125,22 @@ function GlobalNotificationUI(props) {
87
125
  closeTitle = _props$closeTitle === void 0 ? '' : _props$closeTitle,
88
126
  _props$customProps = props.customProps,
89
127
  customProps = _props$customProps === void 0 ? {} : _props$customProps,
90
- dataSelectorId = props.dataSelectorId;
128
+ dataSelectorId = props.dataSelectorId,
129
+ shadowCount = props.shadowCount,
130
+ needShadow = props.needShadow,
131
+ eleRef = props.eleRef,
132
+ onClose = props.onClose;
91
133
  var _customProps$ExtraPro = customProps.ExtraProps,
92
134
  ExtraProps = _customProps$ExtraPro === void 0 ? {} : _customProps$ExtraPro;
135
+
136
+ function onCloseLocal(e) {
137
+ (0, _Common.cancelBubblingEffect)(e);
138
+ onClose && onClose(e);
139
+ }
140
+
93
141
  return /*#__PURE__*/_react["default"].createElement("div", _extends({
94
- className: "".concat(_GlobalNotificationModule["default"].message, " ").concat(type ? _GlobalNotificationModule["default"][type] : ''),
142
+ ref: eleRef,
143
+ className: " ".concat(_GlobalNotificationModule["default"].message, " \n ").concat(needShadow && shadowCount >= 2 ? shadowCount > 2 ? "".concat(_GlobalNotificationModule["default"].stackShadowTwo, " ").concat(_GlobalNotificationModule["default"].stackShadowOne) : _GlobalNotificationModule["default"].stackShadowOne : '', "\n ").concat(type ? _GlobalNotificationModule["default"][type] : '', "\n "),
95
144
  "data-id": "show_".concat(type, "_message"),
96
145
  "data-test-id": "show_".concat(type, "_message"),
97
146
  tabIndex: 0,
@@ -122,7 +171,7 @@ function GlobalNotificationUI(props) {
122
171
  }, /*#__PURE__*/_react["default"].createElement(_AlertClose["default"], {
123
172
  dataId: "close_".concat(type, "_message"),
124
173
  dataTitle: closeTitle,
125
- onClose: onClose,
174
+ onClose: onCloseLocal,
126
175
  type: type
127
176
  }))));
128
177
  }
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.defaultProps = void 0;
7
7
  var defaultProps = {
8
8
  customProps: {},
9
- dataSelectorId: 'globalNotification'
9
+ dataSelectorId: 'globalNotification',
10
+ needAutoClose: true,
11
+ hideTime: 3000
10
12
  };
11
13
  exports.defaultProps = defaultProps;
@@ -9,6 +9,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
 
10
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
 
12
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
+
12
14
  var propTypes = {
13
15
  dataSelectorId: _propTypes["default"].string,
14
16
  hideMessage: _propTypes["default"].func,
@@ -19,10 +21,17 @@ var propTypes = {
19
21
  i18nKeys: _propTypes["default"].object,
20
22
  customProps: _propTypes["default"].shape({
21
23
  ExtraProps: _propTypes["default"].object
22
- })
24
+ }),
25
+ id: _propTypes["default"].number,
26
+ hideTime: _propTypes["default"].number,
27
+ needAutoClose: _propTypes["default"].bool,
28
+ isCollapseView: _propTypes["default"].bool,
29
+ shadowCount: _propTypes["default"].number,
30
+ needShadow: _propTypes["default"].bool
23
31
  };
24
32
  exports.propTypes = propTypes;
25
- var UI_propTypes = {
33
+
34
+ var UI_propTypes = _defineProperty({
26
35
  dataSelectorId: _propTypes["default"].string,
27
36
  onClose: _propTypes["default"].func,
28
37
  closeTitle: _propTypes["default"].string,
@@ -32,8 +41,12 @@ var UI_propTypes = {
32
41
  type: _propTypes["default"].oneOf(['success', 'danger', 'info', 'warning', 'error']),
33
42
  customProps: _propTypes["default"].shape({
34
43
  ExtraProps: _propTypes["default"].object
35
- })
36
- };
44
+ }),
45
+ needShadow: _propTypes["default"].bool,
46
+ shadowCount: _propTypes["default"].number,
47
+ id: _propTypes["default"].number
48
+ }, "onClose", _propTypes["default"].func);
49
+
37
50
  exports.UI_propTypes = UI_propTypes;
38
51
  var new_propTypes = {
39
52
  Element: _propTypes["default"].element,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-temp-175.6",
3
+ "version": "1.0.0-temp-175.7",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
package/result.json CHANGED
@@ -1 +1 @@
1
- {"jobDetails":{"isRunByLocal":true,"hostName":"prakash-zt376","platForm":"Darwin","branchName":"setuplayouts_components"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":36,"numberOfFails":0,"numberOfCases":36,"numberOfSuites":4,"endTime":1707478813756,"startTime":1707478808314,"coverageDetail":{"codeCoveragePercentage":84.23,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/prakash-zt376/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/prakash-zt376/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/prakash-zt376/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/prakash-zt376/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/IconButton/__tests__/IconButton.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- primaryFilled","rendering the palette of- default","rendering the isActive true with palette of- primary","rendering the isActive true with palette of- primaryFilled","rendering the isActive true with palette of- default","rendering the hovertypes- default","rendering the hovertypes- border","rendering the hovertypes- bg","rendering isNeedEffect is False","rendering ally","rendering ally","rendering needButtonTag","rendering tourId","rendering in Icon","rendering in dataIsHtml is True","rendering in isDisabled is True","rendering in ClassName","rendering in title","eleRef prop is a function","Checking the \"Children\""],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/IconButton/__tests__/IconButton.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- primaryFilled","rendering the palette of- default","rendering the isActive true with palette of- primary","rendering the isActive true with palette of- primaryFilled","rendering the isActive true with palette of- default","rendering the hovertypes- default","rendering the hovertypes- border","rendering the hovertypes- bg","rendering isNeedEffect is False","rendering ally","rendering ally","rendering needButtonTag","rendering tourId","rendering in Icon","rendering in dataIsHtml is True","rendering in isDisabled is True","rendering in ClassName","rendering in title","eleRef prop is a function","Checking the \"Children\""],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/IconButton/__tests__/IconButton.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- primaryFilled","rendering the palette of- default","rendering the isActive true with palette of- primary","rendering the isActive true with palette of- primaryFilled","rendering the isActive true with palette of- default","rendering the hovertypes- default","rendering the hovertypes- border","rendering the hovertypes- bg","rendering isNeedEffect is False","rendering ally","rendering ally","rendering needButtonTag","rendering tourId","rendering in Icon","rendering in dataIsHtml is True","rendering in isDisabled is True","rendering in ClassName","rendering in title","eleRef prop is a function","Checking the \"Children\""],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/IconButton/__tests__/IconButton.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- primaryFilled","rendering the palette of- default","rendering the isActive true with palette of- primary","rendering the isActive true with palette of- primaryFilled","rendering the isActive true with palette of- default","rendering the hovertypes- default","rendering the hovertypes- border","rendering the hovertypes- bg","rendering isNeedEffect is False","rendering ally","rendering ally","rendering needButtonTag","rendering tourId","rendering in Icon","rendering in dataIsHtml is True","rendering in isDisabled is True","rendering in ClassName","rendering in title","eleRef prop is a function","Checking the \"Children\""],"failedCaseList":[]}}]}}}
1
+ {"jobDetails":{"isRunByLocal":true,"hostName":"prakash-zt376","platForm":"Darwin","branchName":"setuplayouts_components"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":36,"numberOfFails":0,"numberOfCases":36,"numberOfSuites":4,"endTime":1707492530045,"startTime":1707492525211,"coverageDetail":{"codeCoveragePercentage":84.23,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/prakash-zt376/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/prakash-zt376/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/prakash-zt376/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/prakash-zt376/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/IconButton/__tests__/IconButton.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- primaryFilled","rendering the palette of- default","rendering the isActive true with palette of- primary","rendering the isActive true with palette of- primaryFilled","rendering the isActive true with palette of- default","rendering the hovertypes- default","rendering the hovertypes- border","rendering the hovertypes- bg","rendering isNeedEffect is False","rendering ally","rendering ally","rendering needButtonTag","rendering tourId","rendering in Icon","rendering in dataIsHtml is True","rendering in isDisabled is True","rendering in ClassName","rendering in title","eleRef prop is a function","Checking the \"Children\""],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/IconButton/__tests__/IconButton.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- primaryFilled","rendering the palette of- default","rendering the isActive true with palette of- primary","rendering the isActive true with palette of- primaryFilled","rendering the isActive true with palette of- default","rendering the hovertypes- default","rendering the hovertypes- border","rendering the hovertypes- bg","rendering isNeedEffect is False","rendering ally","rendering ally","rendering needButtonTag","rendering tourId","rendering in Icon","rendering in dataIsHtml is True","rendering in isDisabled is True","rendering in ClassName","rendering in title","eleRef prop is a function","Checking the \"Children\""],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/IconButton/__tests__/IconButton.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- primaryFilled","rendering the palette of- default","rendering the isActive true with palette of- primary","rendering the isActive true with palette of- primaryFilled","rendering the isActive true with palette of- default","rendering the hovertypes- default","rendering the hovertypes- border","rendering the hovertypes- bg","rendering isNeedEffect is False","rendering ally","rendering ally","rendering needButtonTag","rendering tourId","rendering in Icon","rendering in dataIsHtml is True","rendering in isDisabled is True","rendering in ClassName","rendering in title","eleRef prop is a function","Checking the \"Children\""],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/IconButton/__tests__/IconButton.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- primaryFilled","rendering the palette of- default","rendering the isActive true with palette of- primary","rendering the isActive true with palette of- primaryFilled","rendering the isActive true with palette of- default","rendering the hovertypes- default","rendering the hovertypes- border","rendering the hovertypes- bg","rendering isNeedEffect is False","rendering ally","rendering ally","rendering needButtonTag","rendering tourId","rendering in Icon","rendering in dataIsHtml is True","rendering in isDisabled is True","rendering in ClassName","rendering in title","eleRef prop is a function","Checking the \"Children\""],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/ExternalLink/__tests__/ExternalLink.spec.js","CaseList":{"passedCaseList":["should add http/https to href tag if it is not already present","should not add http/https to href tag if it is already present","should default to / if href is undefined"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":["rendering the default props","checking \"isCover\" is false","rendering \"alt\" and \"src\" value ","rendering \"dataid\" value","rendering \"Original\" value","rendering \"Id\" value","rendering \"title\" value"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/avatar/AvatarWithTeam/__tests__/AvatarWithTeam.spec.js","CaseList":{"passedCaseList":["Check whether Avatar mounted or not","Check children length ","Check whether AvatarWithTeam mounted or not","Check whether AvatarTeam mounted or not"],"failedCaseList":[]}},{"fileName":"/Users/prakash-19994/Works/React/CodeReviewLibrary/jsapps/dot/dot/src/IconButton/__tests__/IconButton.spec.js","CaseList":{"passedCaseList":["rendering the defult props","rendering the palette of- primary","rendering the palette of- primaryFilled","rendering the palette of- default","rendering the isActive true with palette of- primary","rendering the isActive true with palette of- primaryFilled","rendering the isActive true with palette of- default","rendering the hovertypes- default","rendering the hovertypes- border","rendering the hovertypes- bg","rendering isNeedEffect is False","rendering ally","rendering ally","rendering needButtonTag","rendering tourId","rendering in Icon","rendering in dataIsHtml is True","rendering in isDisabled is True","rendering in ClassName","rendering in title","eleRef prop is a function","Checking the \"Children\""],"failedCaseList":[]}}]}}}