@zohodesk/dot 1.3.2 → 1.4.0

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 (88) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +13 -0
  4. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +546 -163
  5. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +12 -3
  6. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +12 -3
  7. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +12 -3
  8. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +12 -3
  9. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +12 -3
  10. package/assets/Appearance/light/mode/Dot_LightMode.module.css +546 -163
  11. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +12 -3
  12. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +12 -3
  13. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +12 -3
  14. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +12 -3
  15. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +12 -3
  16. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +546 -163
  17. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +12 -3
  18. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +12 -3
  19. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +12 -3
  20. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +12 -3
  21. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +12 -3
  22. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  23. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  24. package/coverage/ExternalLink/index.html +1 -1
  25. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  26. package/coverage/ExternalLink/props/index.html +1 -1
  27. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  28. package/coverage/IconButton/IconButton.js.html +1 -1
  29. package/coverage/IconButton/IconButton.module.css.html +1 -1
  30. package/coverage/IconButton/index.html +1 -1
  31. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  32. package/coverage/IconButton/props/index.html +1 -1
  33. package/coverage/IconButton/props/propTypes.js.html +1 -1
  34. package/coverage/Image/Image.js.html +1 -1
  35. package/coverage/Image/Image.module.css.html +1 -1
  36. package/coverage/Image/index.html +1 -1
  37. package/coverage/Image/props/defaultProps.js.html +1 -1
  38. package/coverage/Image/props/index.html +1 -1
  39. package/coverage/Image/props/propTypes.js.html +1 -1
  40. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  41. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  42. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  43. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  44. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  45. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  46. package/coverage/coverage-final.json +16 -16
  47. package/coverage/coverage-summary.json +16 -16
  48. package/coverage/index.html +1 -1
  49. package/es/list/Comment/Comment.js +4 -7
  50. package/es/list/Comment/props/defaultProps.js +2 -1
  51. package/es/list/Comment/props/propTypes.js +1 -0
  52. package/es/list/index.js +1 -2
  53. package/es/v1/alert/AlertHeader/AlertHeader.js +2 -1
  54. package/es/v1/list/Comment/Comment.js +4 -7
  55. package/es/v1/list/index.js +1 -2
  56. package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -3
  57. package/es/v1/notification/DesktopNotification/props/defaultProps.js +15 -0
  58. package/es/v1/notification/DesktopNotification/props/propTypes.js +42 -0
  59. package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +5 -4
  60. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +5 -0
  61. package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +12 -0
  62. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  63. package/lib/list/Comment/Comment.js +4 -8
  64. package/lib/list/Comment/props/defaultProps.js +2 -1
  65. package/lib/list/Comment/props/propTypes.js +1 -0
  66. package/lib/list/index.js +0 -8
  67. package/lib/v1/alert/AlertHeader/AlertHeader.js +2 -1
  68. package/lib/v1/list/Comment/Comment.js +4 -8
  69. package/lib/v1/list/index.js +0 -8
  70. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +7 -10
  71. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +22 -0
  72. package/lib/v1/notification/DesktopNotification/props/propTypes.js +54 -0
  73. package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +7 -12
  74. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +12 -0
  75. package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +23 -0
  76. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  77. package/package.json +7 -9
  78. package/result.json +1 -1
  79. package/es/list/UserTime/UserTime.js +0 -83
  80. package/es/list/UserTime/UserTime.module.css +0 -58
  81. package/es/list/UserTime/props/defaultProps.js +0 -3
  82. package/es/list/UserTime/props/propTypes.js +0 -18
  83. package/es/v1/list/UserTime/UserTime.js +0 -83
  84. package/lib/list/UserTime/UserTime.js +0 -136
  85. package/lib/list/UserTime/UserTime.module.css +0 -58
  86. package/lib/list/UserTime/props/defaultProps.js +0 -10
  87. package/lib/list/UserTime/props/propTypes.js +0 -29
  88. package/lib/v1/list/UserTime/UserTime.js +0 -136
@@ -1,17 +1,15 @@
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
6
  exports["default"] = DesktopNotificationHeader;
9
7
 
10
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
11
9
 
12
- var _defaultProps = require("../../../version2/notification/DesktopNotificationHeader/props/defaultProps");
10
+ var _defaultProps = _interopRequireDefault(require("./props/defaultProps"));
13
11
 
14
- var _propTypes = require("../../../version2/notification/DesktopNotificationHeader/props/propTypes");
12
+ var _propTypes = _interopRequireDefault(require("./props/propTypes"));
15
13
 
16
14
  var _Layout = require("@zohodesk/components/es/v1/Layout");
17
15
 
@@ -23,10 +21,6 @@ var _DesktopNotificationHeaderModule = _interopRequireDefault(require("../../../
23
21
 
24
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
23
 
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); }
27
-
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; }
29
-
30
24
  function DesktopNotificationHeader(props) {
31
25
  var onClose = props.onClose,
32
26
  closeTitle = props.closeTitle,
@@ -36,6 +30,7 @@ function DesktopNotificationHeader(props) {
36
30
  type = _props$type === void 0 ? '' : _props$type,
37
31
  needIcon = props.needIcon,
38
32
  title = props.title,
33
+ renderAlertIcon = props.renderAlertIcon,
39
34
  needClose = props.needClose;
40
35
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
41
36
  align: "vertical",
@@ -45,7 +40,7 @@ function DesktopNotificationHeader(props) {
45
40
  wrap: "wrap"
46
41
  }, needIcon ? /*#__PURE__*/_react["default"].createElement("div", {
47
42
  className: _DesktopNotificationHeaderModule["default"].iconContainer
48
- }, /*#__PURE__*/_react["default"].createElement(_AlertIcons["default"], {
43
+ }, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/_react["default"].createElement(_AlertIcons["default"], {
49
44
  type: type
50
45
  })) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
51
46
  flexible: true
@@ -67,8 +62,8 @@ function DesktopNotificationHeader(props) {
67
62
  })) : null);
68
63
  }
69
64
 
70
- DesktopNotificationHeader.propTypes = _propTypes.propTypes;
71
- DesktopNotificationHeader.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
65
+ DesktopNotificationHeader.propTypes = _propTypes["default"];
66
+ DesktopNotificationHeader.defaultProps = _defaultProps["default"]; // if (__DOCS__) {
72
67
  // DesktopNotificationHeader.docs = {
73
68
  // componentGroup: 'DesktopNotificationHeader',
74
69
  // folderName: 'Alert'
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _default = {
8
+ needIcon: true,
9
+ variant: 'primary',
10
+ needClose: true
11
+ };
12
+ exports["default"] = _default;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+
12
+ var _default = {
13
+ closeTitle: _propTypes["default"].string,
14
+ dataId: _propTypes["default"].string,
15
+ needClose: _propTypes["default"].bool,
16
+ needIcon: _propTypes["default"].bool,
17
+ onClose: _propTypes["default"].func,
18
+ title: _propTypes["default"].string,
19
+ renderAlertIcon: _propTypes["default"].func,
20
+ type: _propTypes["default"].oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
21
+ variant: _propTypes["default"].oneOf(['primary', 'secondary'])
22
+ };
23
+ exports["default"] = _default;
@@ -5,7 +5,7 @@
5
5
  .innerSection {
6
6
  color: var(--zdt_alertlookupnew_text);
7
7
  font-size: var(--zd_font_size14) ;
8
- line-height: var(--zd_size18);
8
+ line-height: var(--zd_size20);
9
9
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
10
10
  padding: var(--zd_size17) var(--zd_size30) var(--zd_size30) ;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.3.2",
3
+ "version": "1.4.0",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -36,7 +36,7 @@
36
36
  "sstest": "react-cli sstest",
37
37
  "common_package_build": "cd ../common && npm run build && cd ../dot",
38
38
  "docs": "npm run dubCheck && review:props && react-cli docs",
39
- "prepublishOnly": "node prePublish.js && npm run review:props && npm run test",
39
+ "prepublishOnly": "node prePublish.js && npm run download && npm run test && npm run review:props",
40
40
  "postpublish": "node postPublish.js",
41
41
  "download": "react-cli clean ./node_modules ./package-lock.json && npm install",
42
42
  "expublish": "npm publish --tag experimental-version",
@@ -51,11 +51,10 @@
51
51
  "@zohodesk-private/node-plugins": "^1.0.0",
52
52
  "@zohodesk-private/color-variable-preprocessor": "1.1.0",
53
53
  "@zohodesk-private/react-prop-validator": "1.1.0",
54
- "@zohodesk/components": "1.2.14",
54
+ "@zohodesk/components": "1.2.16",
55
55
  "@zohodesk/a11y": "2.1.0",
56
- "@zohodesk/i18n": "1.0.0-beta.23",
57
56
  "@zohodesk/icons": "1.0.19",
58
- "@zohodesk/svg": "1.1.5",
57
+ "@zohodesk/svg": "1.1.6",
59
58
  "@zohodesk/variables": "1.0.0",
60
59
  "@zohodesk/virtualizer": "1.0.3",
61
60
  "react-sortable-hoc": "^0.8.3",
@@ -70,14 +69,13 @@
70
69
  "peerDependencies": {
71
70
  "velocity-react": "1.4.3",
72
71
  "@zohodesk/variables": "1.0.0",
73
- "@zohodesk/i18n": "1.0.0-beta.23",
74
- "@zohodesk/components": "1.2.14",
72
+ "@zohodesk/components": "1.2.16",
75
73
  "@zohodesk/icons": "1.0.19",
76
- "@zohodesk/svg": "1.1.5",
74
+ "@zohodesk/svg": "1.1.6",
77
75
  "@zohodesk/virtualizer": "1.0.3",
78
76
  "react-sortable-hoc": "^0.8.3",
79
77
  "@zohodesk/hooks": "2.0.2",
80
78
  "@zohodesk/utils": "1.3.13",
81
79
  "@zohodesk/a11y": "2.1.0"
82
80
  }
83
- }
81
+ }
package/result.json CHANGED
@@ -1 +1 @@
1
- {"jobDetails":{"isRunByLocal":true,"hostName":"bharathi-zt93","platForm":"Darwin","branchName":"testcase_gowtham"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":36,"numberOfFails":0,"numberOfCases":36,"numberOfSuites":4,"endTime":1700736878844,"startTime":1700736875488,"coverageDetail":{"codeCoveragePercentage":84.23,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/bharathi-zt93/git/library/jsapps/dot/dot/src/Image/__tests__/Image.spec.js","CaseList":{"passedCaseList":[],"failedCaseList":[]}},{"fileName":"/Users/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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/bharathi-zt93/git/library/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":1700896825140,"startTime":1700896820975,"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":[]}}]}}}
@@ -1,83 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { defaultProps } from './props/defaultProps';
3
- import { propTypes } from './props/propTypes';
4
- import { Icon } from '@zohodesk/icons';
5
- import { Box } from '@zohodesk/components/lib/Layout';
6
- import { UserTimeDiffFormat } from '@zohodesk/i18n';
7
- import style from './UserTime.module.css';
8
- export default class UserTime extends Component {
9
- constructor(props) {
10
- super(props);
11
- }
12
-
13
- render() {
14
- let {
15
- type,
16
- page,
17
- isNeedTime,
18
- icon,
19
- iconColor,
20
- to,
21
- ago,
22
- later,
23
- format,
24
- title,
25
- textClass,
26
- iconClass,
27
- containerClass,
28
- dataId,
29
- isOverdue
30
- } = this.props;
31
- return /*#__PURE__*/React.createElement("div", {
32
- className: `${style.container} ${containerClass ? containerClass : ''}`,
33
- "data-title": title,
34
- "data-id": dataId,
35
- "data-test-id": dataId,
36
- "aria-label": title,
37
- tabIndex: "0"
38
- }, icon && /*#__PURE__*/React.createElement(Box, {
39
- className: `${style.iconColor} ${style[iconColor] ? style[iconColor] : ''}`
40
- }, icon === 'closedTime' ? /*#__PURE__*/React.createElement(Icon, {
41
- iconClass: `${style.iconStyle} ${style.closedTime} ${style.f8} ${iconClass ? iconClass : ''}`,
42
- name: "ZD-closedtime1"
43
- }) : icon === 'overdue' ? /*#__PURE__*/React.createElement(Icon, {
44
- name: "ZD-TK-sandClock",
45
- iconClass: `${style.iconStyle} ${style.f10} ${iconClass ? iconClass : ''}`
46
- }) : icon === 'createdTime' ? /*#__PURE__*/React.createElement(Icon, {
47
- name: "ZD-createdtime2",
48
- iconClass: `${style.iconStyle} ${style.f8} ${iconClass ? iconClass : ''}`
49
- }) : icon === 'completedTask' ? /*#__PURE__*/React.createElement(Icon, {
50
- iconClass: `${style.iconStyle} ${style.f8} ${style.completedTask} ${iconClass ? iconClass : ''}`,
51
- name: "ZD-completedTask1"
52
- }) : icon === 'onholdTime' ? /*#__PURE__*/React.createElement(Icon, {
53
- iconClass: `${style.iconStyle} ${style.f10} ${iconClass ? iconClass : ''}`,
54
- name: "ZD-onHold"
55
- }) : icon === 'responseDueDate' ? /*#__PURE__*/React.createElement(Icon, {
56
- name: "ZD-responsiveIconFinal",
57
- iconClass: `${style.iconStyle} ${style.f8} ${iconClass ? iconClass : ''}`
58
- }) : /*#__PURE__*/React.createElement(Icon, {
59
- name: "ZD-dueTime",
60
- iconClass: `${style.iconStyle} ${style.f8} ${iconClass ? iconClass : ''}`
61
- })), /*#__PURE__*/React.createElement(Box, {
62
- flexible: true
63
- }, /*#__PURE__*/React.createElement(UserTimeDiffFormat, {
64
- type: type,
65
- page: page,
66
- isNeedTime: isNeedTime,
67
- ago: ago,
68
- className: `${style.textStyle} ${textClass ? textClass : ''}`,
69
- format: format,
70
- later: later,
71
- to: to,
72
- isOverdue: isOverdue
73
- })));
74
- }
75
-
76
- }
77
- UserTime.propTypes = propTypes;
78
- UserTime.defaultProps = defaultProps; // if (__DOCS__) {
79
- // UserTime.docs = {
80
- // folderName: 'List',
81
- // componentGroup: 'UserTime'
82
- // };
83
- // }
@@ -1,58 +0,0 @@
1
- .varClass {
2
- --text_color: var(--zdt_usertime_timeText);
3
- --icon_color: var(--zdt_usertime_icon_gray);
4
- }
5
- .container {
6
- composes: dInflex alignBaseline from '~@zohodesk/components/lib/common/common.module.css';
7
- max-width: 100% ;
8
- composes: varClass;
9
- }
10
- .f8 {
11
- font-size: var(--zd_font_size8) ;
12
- }
13
- .f9 {
14
- font-size: var(--zd_font_size9) ;
15
- }
16
- .f10 {
17
- font-size: var(--zd_font_size10) ;
18
- }
19
- .closedTime span:last-child:before,
20
- .completedTask span:first-child:before {
21
- color: inherit;
22
- }
23
- .closedTime span:first-child:before {
24
- color: var(--zdt_usertime_icon_green);
25
- }
26
- .textStyle {
27
- font-size: var(--zd_font_size12) ;
28
- color: var(--text_color);
29
- display: block;
30
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
31
- }
32
- .iconStyle {
33
- display: block;
34
- }
35
- [dir=ltr] .iconStyle {
36
- margin-right: var(--zd_size3) ;
37
- margin-left: var(--zd_size1) ;
38
- }
39
- [dir=rtl] .iconStyle {
40
- margin-left: var(--zd_size3) ;
41
- margin-right: var(--zd_size1) ;
42
- }
43
- /* colors */
44
- .iconColor {
45
- color: var(--icon_color)
46
- }
47
- .red {
48
- --icon_color: var(--zdt_usertime_icon_red);
49
- }
50
- .green {
51
- --icon_color: var(--zdt_usertime_icon_green);
52
- }
53
- .orange {
54
- --icon_color: var(--zdt_usertime_icon_orange);
55
- }
56
- .gray {
57
- --icon_color: var(--zdt_usertime_icon_gray);
58
- }
@@ -1,3 +0,0 @@
1
- export const defaultProps = {
2
- dataId: 'userTime'
3
- };
@@ -1,18 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- export const propTypes = {
3
- ago: PropTypes.string,
4
- containerClass: PropTypes.string,
5
- dataId: PropTypes.string,
6
- format: PropTypes.func,
7
- icon: PropTypes.oneOf(['closedTime', 'overdue', 'createdTime', 'completedTask', 'dueTime']),
8
- iconClass: PropTypes.string,
9
- iconColor: PropTypes.oneOf(['red', 'green', 'orange', 'gray']),
10
- later: PropTypes.string,
11
- textClass: PropTypes.string,
12
- title: PropTypes.string,
13
- to: PropTypes.string,
14
- type: PropTypes.string,
15
- page: PropTypes.string,
16
- isNeedTime: PropTypes.bool,
17
- isOverdue: PropTypes.bool
18
- };
@@ -1,83 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { defaultProps } from '../../../list/UserTime/props/defaultProps';
3
- import { propTypes } from '../../../list/UserTime/props/propTypes';
4
- import { Icon } from '@zohodesk/icons';
5
- import { Box } from '@zohodesk/components/es/v1/Layout';
6
- import { UserTimeDiffFormat } from '@zohodesk/i18n';
7
- import style from '../../../list/UserTime/UserTime.module.css';
8
- export default class UserTime extends Component {
9
- constructor(props) {
10
- super(props);
11
- }
12
-
13
- render() {
14
- let {
15
- type,
16
- page,
17
- isNeedTime,
18
- icon,
19
- iconColor,
20
- to,
21
- ago,
22
- later,
23
- format,
24
- title,
25
- textClass,
26
- iconClass,
27
- containerClass,
28
- dataId,
29
- isOverdue
30
- } = this.props;
31
- return /*#__PURE__*/React.createElement("div", {
32
- className: `${style.container} ${containerClass ? containerClass : ''}`,
33
- "data-title": title,
34
- "data-id": dataId,
35
- "data-test-id": dataId,
36
- "aria-label": title,
37
- tabIndex: "0"
38
- }, icon && /*#__PURE__*/React.createElement(Box, {
39
- className: `${style.iconColor} ${style[iconColor] ? style[iconColor] : ''}`
40
- }, icon === 'closedTime' ? /*#__PURE__*/React.createElement(Icon, {
41
- iconClass: `${style.iconStyle} ${style.closedTime} ${style.f8} ${iconClass ? iconClass : ''}`,
42
- name: "ZD-closedtime1"
43
- }) : icon === 'overdue' ? /*#__PURE__*/React.createElement(Icon, {
44
- name: "ZD-TK-sandClock",
45
- iconClass: `${style.iconStyle} ${style.f10} ${iconClass ? iconClass : ''}`
46
- }) : icon === 'createdTime' ? /*#__PURE__*/React.createElement(Icon, {
47
- name: "ZD-createdtime2",
48
- iconClass: `${style.iconStyle} ${style.f8} ${iconClass ? iconClass : ''}`
49
- }) : icon === 'completedTask' ? /*#__PURE__*/React.createElement(Icon, {
50
- iconClass: `${style.iconStyle} ${style.f8} ${style.completedTask} ${iconClass ? iconClass : ''}`,
51
- name: "ZD-completedTask1"
52
- }) : icon === 'onholdTime' ? /*#__PURE__*/React.createElement(Icon, {
53
- iconClass: `${style.iconStyle} ${style.f10} ${iconClass ? iconClass : ''}`,
54
- name: "ZD-onHold"
55
- }) : icon === 'responseDueDate' ? /*#__PURE__*/React.createElement(Icon, {
56
- name: "ZD-responsiveIconFinal",
57
- iconClass: `${style.iconStyle} ${style.f8} ${iconClass ? iconClass : ''}`
58
- }) : /*#__PURE__*/React.createElement(Icon, {
59
- name: "ZD-dueTime",
60
- iconClass: `${style.iconStyle} ${style.f8} ${iconClass ? iconClass : ''}`
61
- })), /*#__PURE__*/React.createElement(Box, {
62
- flexible: true
63
- }, /*#__PURE__*/React.createElement(UserTimeDiffFormat, {
64
- type: type,
65
- page: page,
66
- isNeedTime: isNeedTime,
67
- ago: ago,
68
- className: `${style.textStyle} ${textClass ? textClass : ''}`,
69
- format: format,
70
- later: later,
71
- to: to,
72
- isOverdue: isOverdue
73
- })));
74
- }
75
-
76
- }
77
- UserTime.propTypes = propTypes;
78
- UserTime.defaultProps = defaultProps; // if (__DOCS__) {
79
- // UserTime.docs = {
80
- // folderName: 'List',
81
- // componentGroup: 'UserTime'
82
- // };
83
- // }
@@ -1,136 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _defaultProps = require("./props/defaultProps");
13
-
14
- var _propTypes = require("./props/propTypes");
15
-
16
- var _icons = require("@zohodesk/icons");
17
-
18
- var _Layout = require("@zohodesk/components/lib/Layout");
19
-
20
- var _i18n = require("@zohodesk/i18n");
21
-
22
- var _UserTimeModule = _interopRequireDefault(require("./UserTime.module.css"));
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
-
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); }
27
-
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; }
29
-
30
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
-
32
- 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); } }
33
-
34
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
-
36
- 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); }
37
-
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
-
40
- 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); }; }
41
-
42
- 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); }
43
-
44
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
-
46
- 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; } }
47
-
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
-
50
- var UserTime = /*#__PURE__*/function (_Component) {
51
- _inherits(UserTime, _Component);
52
-
53
- var _super = _createSuper(UserTime);
54
-
55
- function UserTime(props) {
56
- _classCallCheck(this, UserTime);
57
-
58
- return _super.call(this, props);
59
- }
60
-
61
- _createClass(UserTime, [{
62
- key: "render",
63
- value: function render() {
64
- var _this$props = this.props,
65
- type = _this$props.type,
66
- page = _this$props.page,
67
- isNeedTime = _this$props.isNeedTime,
68
- icon = _this$props.icon,
69
- iconColor = _this$props.iconColor,
70
- to = _this$props.to,
71
- ago = _this$props.ago,
72
- later = _this$props.later,
73
- format = _this$props.format,
74
- title = _this$props.title,
75
- textClass = _this$props.textClass,
76
- iconClass = _this$props.iconClass,
77
- containerClass = _this$props.containerClass,
78
- dataId = _this$props.dataId,
79
- isOverdue = _this$props.isOverdue;
80
- return /*#__PURE__*/_react["default"].createElement("div", {
81
- className: "".concat(_UserTimeModule["default"].container, " ").concat(containerClass ? containerClass : ''),
82
- "data-title": title,
83
- "data-id": dataId,
84
- "data-test-id": dataId,
85
- "aria-label": title,
86
- tabIndex: "0"
87
- }, icon && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
88
- className: "".concat(_UserTimeModule["default"].iconColor, " ").concat(_UserTimeModule["default"][iconColor] ? _UserTimeModule["default"][iconColor] : '')
89
- }, icon === 'closedTime' ? /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
90
- iconClass: "".concat(_UserTimeModule["default"].iconStyle, " ").concat(_UserTimeModule["default"].closedTime, " ").concat(_UserTimeModule["default"].f8, " ").concat(iconClass ? iconClass : ''),
91
- name: "ZD-closedtime1"
92
- }) : icon === 'overdue' ? /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
93
- name: "ZD-TK-sandClock",
94
- iconClass: "".concat(_UserTimeModule["default"].iconStyle, " ").concat(_UserTimeModule["default"].f10, " ").concat(iconClass ? iconClass : '')
95
- }) : icon === 'createdTime' ? /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
96
- name: "ZD-createdtime2",
97
- iconClass: "".concat(_UserTimeModule["default"].iconStyle, " ").concat(_UserTimeModule["default"].f8, " ").concat(iconClass ? iconClass : '')
98
- }) : icon === 'completedTask' ? /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
99
- iconClass: "".concat(_UserTimeModule["default"].iconStyle, " ").concat(_UserTimeModule["default"].f8, " ").concat(_UserTimeModule["default"].completedTask, " ").concat(iconClass ? iconClass : ''),
100
- name: "ZD-completedTask1"
101
- }) : icon === 'onholdTime' ? /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
102
- iconClass: "".concat(_UserTimeModule["default"].iconStyle, " ").concat(_UserTimeModule["default"].f10, " ").concat(iconClass ? iconClass : ''),
103
- name: "ZD-onHold"
104
- }) : icon === 'responseDueDate' ? /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
105
- name: "ZD-responsiveIconFinal",
106
- iconClass: "".concat(_UserTimeModule["default"].iconStyle, " ").concat(_UserTimeModule["default"].f8, " ").concat(iconClass ? iconClass : '')
107
- }) : /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
108
- name: "ZD-dueTime",
109
- iconClass: "".concat(_UserTimeModule["default"].iconStyle, " ").concat(_UserTimeModule["default"].f8, " ").concat(iconClass ? iconClass : '')
110
- })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
111
- flexible: true
112
- }, /*#__PURE__*/_react["default"].createElement(_i18n.UserTimeDiffFormat, {
113
- type: type,
114
- page: page,
115
- isNeedTime: isNeedTime,
116
- ago: ago,
117
- className: "".concat(_UserTimeModule["default"].textStyle, " ").concat(textClass ? textClass : ''),
118
- format: format,
119
- later: later,
120
- to: to,
121
- isOverdue: isOverdue
122
- })));
123
- }
124
- }]);
125
-
126
- return UserTime;
127
- }(_react.Component);
128
-
129
- exports["default"] = UserTime;
130
- UserTime.propTypes = _propTypes.propTypes;
131
- UserTime.defaultProps = _defaultProps.defaultProps; // if (__DOCS__) {
132
- // UserTime.docs = {
133
- // folderName: 'List',
134
- // componentGroup: 'UserTime'
135
- // };
136
- // }
@@ -1,58 +0,0 @@
1
- .varClass {
2
- --text_color: var(--zdt_usertime_timeText);
3
- --icon_color: var(--zdt_usertime_icon_gray);
4
- }
5
- .container {
6
- composes: dInflex alignBaseline from '~@zohodesk/components/lib/common/common.module.css';
7
- max-width: 100% ;
8
- composes: varClass;
9
- }
10
- .f8 {
11
- font-size: var(--zd_font_size8) ;
12
- }
13
- .f9 {
14
- font-size: var(--zd_font_size9) ;
15
- }
16
- .f10 {
17
- font-size: var(--zd_font_size10) ;
18
- }
19
- .closedTime span:last-child:before,
20
- .completedTask span:first-child:before {
21
- color: inherit;
22
- }
23
- .closedTime span:first-child:before {
24
- color: var(--zdt_usertime_icon_green);
25
- }
26
- .textStyle {
27
- font-size: var(--zd_font_size12) ;
28
- color: var(--text_color);
29
- display: block;
30
- composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
31
- }
32
- .iconStyle {
33
- display: block;
34
- }
35
- [dir=ltr] .iconStyle {
36
- margin-right: var(--zd_size3) ;
37
- margin-left: var(--zd_size1) ;
38
- }
39
- [dir=rtl] .iconStyle {
40
- margin-left: var(--zd_size3) ;
41
- margin-right: var(--zd_size1) ;
42
- }
43
- /* colors */
44
- .iconColor {
45
- color: var(--icon_color)
46
- }
47
- .red {
48
- --icon_color: var(--zdt_usertime_icon_red);
49
- }
50
- .green {
51
- --icon_color: var(--zdt_usertime_icon_green);
52
- }
53
- .orange {
54
- --icon_color: var(--zdt_usertime_icon_orange);
55
- }
56
- .gray {
57
- --icon_color: var(--zdt_usertime_icon_gray);
58
- }