@zohodesk/dot 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/PropValidationExcludeFilesArray.js +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +16 -12
  5. package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +1 -1
  6. package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +1 -1
  7. package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +1 -1
  8. package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +1 -1
  9. package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +1 -1
  10. package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +1 -1
  11. package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +1 -1
  12. package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +1 -1
  13. package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +1 -1
  14. package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +1 -1
  15. package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +1 -1
  16. package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +1 -1
  17. package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +1 -1
  18. package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +1 -1
  19. package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +1 -1
  20. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  21. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  22. package/coverage/ExternalLink/index.html +1 -1
  23. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  24. package/coverage/ExternalLink/props/index.html +1 -1
  25. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  26. package/coverage/IconButton/IconButton.js.html +466 -0
  27. package/coverage/IconButton/IconButton.module.css.html +151 -0
  28. package/coverage/IconButton/index.html +131 -0
  29. package/coverage/IconButton/props/defaultProps.js.html +136 -0
  30. package/coverage/IconButton/props/index.html +131 -0
  31. package/coverage/IconButton/props/propTypes.js.html +187 -0
  32. package/coverage/Image/Image.js.html +1 -1
  33. package/coverage/Image/Image.module.css.html +1 -1
  34. package/coverage/Image/index.html +1 -1
  35. package/coverage/Image/props/defaultProps.js.html +1 -1
  36. package/coverage/Image/props/index.html +1 -1
  37. package/coverage/Image/props/propTypes.js.html +1 -1
  38. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  39. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  40. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  41. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  42. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  43. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  44. package/coverage/coverage-final.json +16 -12
  45. package/coverage/coverage-summary.json +17 -13
  46. package/coverage/index.html +40 -10
  47. package/es/IconButton/__tests__/IconButton.spec.js +148 -0
  48. package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  49. package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
  50. package/es/v1/ActionButton/ActionButton.js +2 -2
  51. package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
  52. package/es/v1/Attachment/Attachment.js +78 -75
  53. package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
  54. package/es/v1/Image/Image.js +26 -33
  55. package/es/v1/Loader/Loader.js +12 -18
  56. package/es/v1/Message/Message.js +16 -42
  57. package/es/v1/PlusIcon/PlusIcon.js +25 -37
  58. package/es/v1/Separator/Separator.js +40 -47
  59. package/es/v1/Upload/Upload.js +59 -66
  60. package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
  61. package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
  62. package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
  63. package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
  64. package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
  65. package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
  66. package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
  67. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
  68. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
  69. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
  70. package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
  71. package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
  72. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
  73. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  74. package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  75. package/es/v1/form/fields/DateField/DateField.js +6 -6
  76. package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  77. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  78. package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
  79. package/es/v1/form/fields/RadioField/RadioField.js +89 -97
  80. package/es/v1/form/fields/SelectField/SelectField.js +139 -154
  81. package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
  82. package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
  83. package/es/v1/list/SecondaryText/AccountName.js +61 -69
  84. package/es/v1/list/SecondaryText/ContactName.js +66 -74
  85. package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
  86. package/es/v1/list/SecondaryText/Email.js +32 -40
  87. package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
  88. package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
  89. package/es/v1/list/SecondaryText/PriorityText.js +16 -28
  90. package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
  91. package/es/v1/list/SecondaryText/StatusText.js +17 -29
  92. package/es/v1/list/SecondaryText/TicketId.js +33 -45
  93. package/es/v1/list/SecondaryText/Website.js +22 -30
  94. package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
  95. package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
  96. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  97. package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
  98. package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
  99. package/es/v1/lookup/Section/Section.js +14 -20
  100. package/es/v1/svg/PlusIcon.js +20 -27
  101. package/es/v1/svg/SnippetIcon.js +22 -29
  102. package/es/v1/svg/TemplateIcon.js +23 -30
  103. package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
  104. package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
  105. package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
  106. package/lib/v1/ActionButton/ActionButton.js +2 -2
  107. package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
  108. package/lib/v1/Attachment/Attachment.js +77 -112
  109. package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
  110. package/lib/v1/Image/Image.js +26 -71
  111. package/lib/v1/Loader/Loader.js +12 -55
  112. package/lib/v1/Message/Message.js +23 -80
  113. package/lib/v1/PlusIcon/PlusIcon.js +25 -71
  114. package/lib/v1/Separator/Separator.js +44 -85
  115. package/lib/v1/Upload/Upload.js +58 -103
  116. package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
  117. package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
  118. package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
  119. package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
  120. package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
  121. package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
  122. package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
  123. package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
  124. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
  125. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
  126. package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
  127. package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
  128. package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
  129. package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
  130. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
  131. package/lib/v1/form/fields/DateField/DateField.js +6 -6
  132. package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
  133. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
  134. package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
  135. package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
  136. package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
  137. package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
  138. package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
  139. package/lib/v1/list/SecondaryText/AccountName.js +63 -113
  140. package/lib/v1/list/SecondaryText/ContactName.js +67 -117
  141. package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
  142. package/lib/v1/list/SecondaryText/Email.js +32 -82
  143. package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
  144. package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
  145. package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
  146. package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
  147. package/lib/v1/list/SecondaryText/StatusText.js +17 -67
  148. package/lib/v1/list/SecondaryText/TicketId.js +33 -83
  149. package/lib/v1/list/SecondaryText/Website.js +29 -72
  150. package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
  151. package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
  152. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  153. package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
  154. package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
  155. package/lib/v1/lookup/Section/Section.js +14 -58
  156. package/lib/v1/svg/PlusIcon.js +20 -65
  157. package/lib/v1/svg/SnippetIcon.js +22 -67
  158. package/lib/v1/svg/TemplateIcon.js +23 -68
  159. package/package.json +6 -6
  160. package/result.json +1 -1
  161. package/unittest/index.html +1 -1
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = SnippetIcon;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -13,72 +11,29 @@ var _defaultProps = require("../../svg/props/defaultProps");
13
11
 
14
12
  var _propTypes = require("../../svg/props/propTypes");
15
13
 
16
- var _SVG = _interopRequireDefault(require("@zohodesk/svg/lib/SVG/SVG"));
14
+ var _SVG = _interopRequireDefault(require("@zohodesk/svg/lib/v1/SVG/SVG"));
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
-
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
-
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
-
30
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
31
-
32
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
33
-
34
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
+ function SnippetIcon(props) {
19
+ var isRender = props.isRender,
20
+ isSymbol = props.isSymbol,
21
+ className = props.className;
22
+ return /*#__PURE__*/_react["default"].createElement(_SVG["default"], {
23
+ viewBox: "0 0 31 32",
24
+ name: "SnippetIcon",
25
+ isRender: isRender,
26
+ isSymbol: isSymbol,
27
+ className: className
28
+ }, /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("path", {
29
+ d: "M14.4,8.2L15.6,9L16,8.4l-1-0.7l2.5-3.7L11.5,0L8.9,3.8L7.9,3L7.6,3.6l1.2,0.8c-2.3,3-5.9,0.8-6,0.7L2.3,4.9L0,23.8 l16.6-9.3l-0.4-0.3C15.9,13.9,12.6,11.5,14.4,8.2L14.4,8.2z M1.5,22l5.2-7.7c0.3,0.1,0.6,0.2,0.9,0.2c1.2,0,2.1-0.9,2.2-2.1 c0-1.2-0.9-2.1-2.1-2.2c-1.2,0-2.1,0.9-2.2,2.1c0,0.6,0.2,1.2,0.7,1.6L1,21.6L2.8,6c1.2,0.6,4.4,1.7,6.5-1.1l4.5,3 c-1.8,3,0.4,5.6,1.4,6.5L1.5,22L1.5,22z M6.7,13.6c-0.7-0.4-0.8-1.3-0.4-2s1.3-0.8,2-0.4c0.7,0.4,0.8,1.3,0.4,2 c-0.2,0.3-0.5,0.5-0.9,0.6C7.5,13.9,7.1,13.8,6.7,13.6L6.7,13.6z"
30
+ }), /*#__PURE__*/_react["default"].createElement("path", {
31
+ style: {
32
+ fill: '#03A3FE'
33
+ },
34
+ d: "M30.9,25c-4.9,0.7-5.4,1.2-5.9,6.7c-0.6-5.4-1.1-6-6.1-6.5c4.9-0.7,5.4-1.2,5.9-6.7 C25.4,23.9,25.9,24.5,30.9,25z M30.3,8.2c-4.5,0.6-4.9,1.1-5.5,6.3c-0.5-5.3-0.9-5.8-5.4-6.4c4.5-0.6,4.9-1.1,5.5-6.3 C25.4,7.1,25.8,7.6,30.3,8.2z M16.2,25.7c-4.5,0.6-4.9,1.1-5.5,6.3c-0.5-5.3-0.9-5.8-5.4-6.4c4.5-0.6,4.9-1.1,5.5-6.3 C11.3,24.6,11.7,25.1,16.2,25.7z"
35
+ })));
36
+ }
35
37
 
36
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
-
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
-
40
- var SnippetIcon = /*#__PURE__*/function (_React$Component) {
41
- _inherits(SnippetIcon, _React$Component);
42
-
43
- var _super = _createSuper(SnippetIcon);
44
-
45
- function SnippetIcon() {
46
- _classCallCheck(this, SnippetIcon);
47
-
48
- return _super.apply(this, arguments);
49
- }
50
-
51
- _createClass(SnippetIcon, [{
52
- key: "render",
53
- value: function render() {
54
- var _this$props = this.props,
55
- isRender = _this$props.isRender,
56
- isSymbol = _this$props.isSymbol,
57
- className = _this$props.className;
58
- return /*#__PURE__*/_react["default"].createElement(_SVG["default"], {
59
- viewBox: "0 0 31 32",
60
- name: "SnippetIcon",
61
- isRender: isRender,
62
- isSymbol: isSymbol,
63
- className: className
64
- }, /*#__PURE__*/_react["default"].createElement("g", null, /*#__PURE__*/_react["default"].createElement("path", {
65
- d: "M14.4,8.2L15.6,9L16,8.4l-1-0.7l2.5-3.7L11.5,0L8.9,3.8L7.9,3L7.6,3.6l1.2,0.8c-2.3,3-5.9,0.8-6,0.7L2.3,4.9L0,23.8 l16.6-9.3l-0.4-0.3C15.9,13.9,12.6,11.5,14.4,8.2L14.4,8.2z M1.5,22l5.2-7.7c0.3,0.1,0.6,0.2,0.9,0.2c1.2,0,2.1-0.9,2.2-2.1 c0-1.2-0.9-2.1-2.1-2.2c-1.2,0-2.1,0.9-2.2,2.1c0,0.6,0.2,1.2,0.7,1.6L1,21.6L2.8,6c1.2,0.6,4.4,1.7,6.5-1.1l4.5,3 c-1.8,3,0.4,5.6,1.4,6.5L1.5,22L1.5,22z M6.7,13.6c-0.7-0.4-0.8-1.3-0.4-2s1.3-0.8,2-0.4c0.7,0.4,0.8,1.3,0.4,2 c-0.2,0.3-0.5,0.5-0.9,0.6C7.5,13.9,7.1,13.8,6.7,13.6L6.7,13.6z"
66
- }), /*#__PURE__*/_react["default"].createElement("path", {
67
- style: {
68
- fill: '#03A3FE'
69
- },
70
- d: "M30.9,25c-4.9,0.7-5.4,1.2-5.9,6.7c-0.6-5.4-1.1-6-6.1-6.5c4.9-0.7,5.4-1.2,5.9-6.7 C25.4,23.9,25.9,24.5,30.9,25z M30.3,8.2c-4.5,0.6-4.9,1.1-5.5,6.3c-0.5-5.3-0.9-5.8-5.4-6.4c4.5-0.6,4.9-1.1,5.5-6.3 C25.4,7.1,25.8,7.6,30.3,8.2z M16.2,25.7c-4.5,0.6-4.9,1.1-5.5,6.3c-0.5-5.3-0.9-5.8-5.4-6.4c4.5-0.6,4.9-1.1,5.5-6.3 C11.3,24.6,11.7,25.1,16.2,25.7z"
71
- })));
72
- }
73
- }]);
74
-
75
- return SnippetIcon;
76
- }(_react["default"].Component);
77
-
78
- exports["default"] = SnippetIcon;
79
38
  SnippetIcon.propTypes = _propTypes.SnippetIcon_propTypes;
80
- SnippetIcon.defaultProps = _defaultProps.SnippetIcon_defaultProps; // if (__DOCS__) {
81
- // SnippetIcon.docs = {
82
- // componentGroup: 'SVG'
83
- // };
84
- // }
39
+ SnippetIcon.defaultProps = _defaultProps.SnippetIcon_defaultProps;
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = TemplateIcon;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -13,73 +11,30 @@ var _defaultProps = require("../../svg/props/defaultProps");
13
11
 
14
12
  var _propTypes = require("../../svg/props/propTypes");
15
13
 
16
- var _SVG = _interopRequireDefault(require("@zohodesk/svg/lib/SVG/SVG"));
14
+ var _SVG = _interopRequireDefault(require("@zohodesk/svg/lib/v1/SVG/SVG"));
17
15
 
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
20
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21
-
22
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
25
-
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
-
28
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
29
-
30
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
31
-
32
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
33
-
34
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
+ function TemplateIcon(props) {
19
+ var isRender = props.isRender,
20
+ isSymbol = props.isSymbol,
21
+ className = props.className;
22
+ return /*#__PURE__*/_react["default"].createElement(_SVG["default"], {
23
+ viewBox: "0 0 40 40",
24
+ name: "TemplateIcon",
25
+ isRender: isRender,
26
+ isSymbol: isSymbol,
27
+ className: className
28
+ }, /*#__PURE__*/_react["default"].createElement("path", {
29
+ d: "M33.09,3H6.91A3.91,3.91,0,0,0,3,6.91V33.09A3.91,3.91,0,0,0,6.91,37H33.09A3.91,3.91,0,0,0,37,33.09V6.91A3.92,3.92,0,0,0,33.09,3ZM6.91,5H33.09A1.92,1.92,0,0,1,35,6.91v4.62H5V6.91A1.92,1.92,0,0,1,6.91,5ZM33.09,35H6.91A1.92,1.92,0,0,1,5,33.09V13.53H35V33.09A1.92,1.92,0,0,1,33.09,35Z"
30
+ }), /*#__PURE__*/_react["default"].createElement("path", {
31
+ d: "M9.33,9.33A1.07,1.07,0,1,0,8.27,8.27,1.06,1.06,0,0,0,9.33,9.33Z"
32
+ }), /*#__PURE__*/_react["default"].createElement("path", {
33
+ d: "M13.6,9.33a1.07,1.07,0,1,0-1.07-1.06A1.06,1.06,0,0,0,13.6,9.33Z"
34
+ }), /*#__PURE__*/_react["default"].createElement("path", {
35
+ d: "M24.87,23H21V19.13a1,1,0,1,0-2,0V23H15.13a1,1,0,0,0,0,2H19v3.86a1,1,0,0,0,2,0V25h3.87a1,1,0,1,0,0-2Z"
36
+ }));
37
+ }
35
38
 
36
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
-
38
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
39
-
40
- var TemplateIcon = /*#__PURE__*/function (_React$Component) {
41
- _inherits(TemplateIcon, _React$Component);
42
-
43
- var _super = _createSuper(TemplateIcon);
44
-
45
- function TemplateIcon() {
46
- _classCallCheck(this, TemplateIcon);
47
-
48
- return _super.apply(this, arguments);
49
- }
50
-
51
- _createClass(TemplateIcon, [{
52
- key: "render",
53
- value: function render() {
54
- var _this$props = this.props,
55
- isRender = _this$props.isRender,
56
- isSymbol = _this$props.isSymbol,
57
- className = _this$props.className;
58
- return /*#__PURE__*/_react["default"].createElement(_SVG["default"], {
59
- viewBox: "0 0 40 40",
60
- name: "TemplateIcon",
61
- isRender: isRender,
62
- isSymbol: isSymbol,
63
- className: className
64
- }, /*#__PURE__*/_react["default"].createElement("path", {
65
- d: "M33.09,3H6.91A3.91,3.91,0,0,0,3,6.91V33.09A3.91,3.91,0,0,0,6.91,37H33.09A3.91,3.91,0,0,0,37,33.09V6.91A3.92,3.92,0,0,0,33.09,3ZM6.91,5H33.09A1.92,1.92,0,0,1,35,6.91v4.62H5V6.91A1.92,1.92,0,0,1,6.91,5ZM33.09,35H6.91A1.92,1.92,0,0,1,5,33.09V13.53H35V33.09A1.92,1.92,0,0,1,33.09,35Z"
66
- }), /*#__PURE__*/_react["default"].createElement("path", {
67
- d: "M9.33,9.33A1.07,1.07,0,1,0,8.27,8.27,1.06,1.06,0,0,0,9.33,9.33Z"
68
- }), /*#__PURE__*/_react["default"].createElement("path", {
69
- d: "M13.6,9.33a1.07,1.07,0,1,0-1.07-1.06A1.06,1.06,0,0,0,13.6,9.33Z"
70
- }), /*#__PURE__*/_react["default"].createElement("path", {
71
- d: "M24.87,23H21V19.13a1,1,0,1,0-2,0V23H15.13a1,1,0,0,0,0,2H19v3.86a1,1,0,0,0,2,0V25h3.87a1,1,0,1,0,0-2Z"
72
- }));
73
- }
74
- }]);
75
-
76
- return TemplateIcon;
77
- }(_react["default"].Component);
78
-
79
- exports["default"] = TemplateIcon;
80
39
  TemplateIcon.propTypes = _propTypes.TemplateIcon_propTypes;
81
- TemplateIcon.defaultProps = _defaultProps.TemplateIcon_defaultProps; // if (__DOCS__) {
82
- // TemplateIcon.docs = {
83
- // componentGroup: 'SVG'
84
- // };
85
- // }
40
+ TemplateIcon.defaultProps = _defaultProps.TemplateIcon_defaultProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -50,8 +50,8 @@
50
50
  "@zohodesk-private/css-variable-migrator": "^1.0.7",
51
51
  "@zohodesk-private/node-plugins": "^1.0.0",
52
52
  "@zohodesk-private/color-variable-preprocessor": "1.0.6",
53
- "@zohodesk-private/react-prop-validator": "0.1.1",
54
- "@zohodesk/components": "1.2.12",
53
+ "@zohodesk-private/react-prop-validator": "1.1.0",
54
+ "@zohodesk/components": "1.2.13",
55
55
  "@zohodesk/a11y": "2.1.0",
56
56
  "@zohodesk/i18n": "1.0.0-beta.23",
57
57
  "@zohodesk/icons": "1.0.10",
@@ -64,19 +64,19 @@
64
64
  "@testing-library/react": "^11.2.5",
65
65
  "@testing-library/react-hooks": "^7.0.2",
66
66
  "@testing-library/user-event": "^13.0.10",
67
- "@zohodesk/hooks": "2.0.1",
67
+ "@zohodesk/hooks": "2.0.2",
68
68
  "@zohodesk/utils": "1.3.13"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "velocity-react": "1.4.3",
72
72
  "@zohodesk/variables": "1.0.0",
73
73
  "@zohodesk/i18n": "1.0.0-beta.23",
74
- "@zohodesk/components": "1.2.12",
74
+ "@zohodesk/components": "1.2.13",
75
75
  "@zohodesk/icons": "1.0.10",
76
76
  "@zohodesk/svg": "1.1.4",
77
77
  "@zohodesk/virtualizer": "1.0.3",
78
78
  "react-sortable-hoc": "^0.8.3",
79
- "@zohodesk/hooks": "2.0.1",
79
+ "@zohodesk/hooks": "2.0.2",
80
80
  "@zohodesk/utils": "1.3.13",
81
81
  "@zohodesk/a11y": "2.1.0"
82
82
  }
package/result.json CHANGED
@@ -1 +1 @@
1
- {"jobDetails":{"isRunByLocal":true,"hostName":"bharathi-zt93","platForm":"Darwin","branchName":"testcase_gowtham"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":14,"numberOfFails":0,"numberOfCases":14,"numberOfSuites":3,"endTime":1697466153758,"startTime":1697466151244,"coverageDetail":{"codeCoveragePercentage":98.03,"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":[]}}]}}}
1
+ {"jobDetails":{"isRunByLocal":true,"hostName":"prakash-zt376","platForm":"Darwin","branchName":"testcase_gowtham"},"tests":{"unitCase":{"isExecuted":"Yes","numberOfSuccess":36,"numberOfFails":0,"numberOfCases":36,"numberOfSuites":4,"endTime":1700027488289,"startTime":1700027483883,"coverageDetail":{"codeCoveragePercentage":84.23,"fileCoveragePercentage":0},"fileDetails":[{"fileName":"/Users/prakash-zt376/Works/React/DeskLibrary/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","in Icon","Checking the \"Children\""],"failedCaseList":[]}},{"fileName":"/Users/prakash-zt376/Works/React/DeskLibrary/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-zt376/Works/React/DeskLibrary/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-zt376/Works/React/DeskLibrary/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/DeskLibrary/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/DeskLibrary/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/DeskLibrary/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":[]}}]}}}
@@ -31,7 +31,7 @@
31
31
  </tr>
32
32
 
33
33
  </table>
34
- <br/>COVERAGE <span class="green">98.03%</span> <br/> less than 60% consider failure
34
+ <br/>COVERAGE <span class="green">84.23%</span> <br/> less than 60% consider failure
35
35
  </body>
36
36
  </html>
37
37