@zohodesk/dot 1.4.0 → 1.4.2

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 (155) hide show
  1. package/.cli/AppearanceThemeValidationExcludeFiles.js +1 -0
  2. package/.cli/PropLessFiles.html +1 -1
  3. package/.cli/PropUnificationExcludeFilesArray.js +345 -0
  4. package/.cli/PropValidationExcludeFilesArray.js +8 -1
  5. package/.cli/propValidation_report.html +24 -2
  6. package/README.md +12 -0
  7. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +3 -0
  8. package/assets/Appearance/light/mode/Dot_LightMode.module.css +3 -0
  9. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +3 -0
  10. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  11. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  12. package/coverage/ExternalLink/index.html +1 -1
  13. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  14. package/coverage/ExternalLink/props/index.html +1 -1
  15. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  16. package/coverage/IconButton/IconButton.js.html +1 -1
  17. package/coverage/IconButton/IconButton.module.css.html +5 -2
  18. package/coverage/IconButton/index.html +1 -1
  19. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  20. package/coverage/IconButton/props/index.html +1 -1
  21. package/coverage/IconButton/props/propTypes.js.html +1 -1
  22. package/coverage/Image/Image.js.html +1 -1
  23. package/coverage/Image/Image.module.css.html +1 -1
  24. package/coverage/Image/index.html +1 -1
  25. package/coverage/Image/props/defaultProps.js.html +1 -1
  26. package/coverage/Image/props/index.html +1 -1
  27. package/coverage/Image/props/propTypes.js.html +1 -1
  28. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  29. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  30. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  31. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  32. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  33. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  34. package/coverage/coverage-final.json +16 -16
  35. package/coverage/coverage-summary.json +16 -16
  36. package/coverage/index.html +1 -1
  37. package/es/ActionButton/ActionButton.js +10 -1
  38. package/es/ActionButton/ActionButton.module.css +7 -0
  39. package/es/ActionButton/props/propTypes.js +2 -1
  40. package/es/AlphabeticList/AlphabeticList.module.css +2 -0
  41. package/es/AttachmentViewer/AttachmentViewer.module.css +2 -0
  42. package/es/ChannelIcon/ChannelIcon.module.css +4 -0
  43. package/es/Drawer/Drawer.js +2 -5
  44. package/es/FormAction/FormAction.module.css +2 -0
  45. package/es/IconButton/IconButton.module.css +1 -0
  46. package/es/Link/Link.js +1 -2
  47. package/es/Provider/Config.js +2 -1
  48. package/es/TagWithIcon/TagWithIcon.module.css +19 -5
  49. package/es/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
  50. package/es/avatar/AvatarStatus/AvatarStatus.js +0 -1
  51. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
  52. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
  53. package/es/layout/SubtabLayout/SubtabLayout.module.css +2 -0
  54. package/es/list/Comment/Comment.module.css +1 -0
  55. package/es/list/Dot/Dot.module.css +1 -0
  56. package/es/list/ListLayout/ListLayout.js +1 -1
  57. package/es/list/ListLayout/ListLayout.module.css +12 -0
  58. package/es/list/Subject/Subject.module.css +1 -0
  59. package/es/list/Thread/Thread.module.css +1 -0
  60. package/es/list/status/StatusDropdown/StatusDropdown.js +6 -6
  61. package/es/lookup/Lookup/Lookup.js +1 -1
  62. package/es/setup/header/Search/Search.module.css +1 -0
  63. package/es/setup/table/TableRow/SetupTableRow.module.css +3 -2
  64. package/es/v1/ActionButton/ActionButton.js +7 -2
  65. package/es/v1/Drawer/Drawer.js +2 -5
  66. package/es/v1/Link/Link.js +1 -2
  67. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +0 -1
  68. package/es/v1/list/ListLayout/ListLayout.js +1 -1
  69. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +6 -6
  70. package/es/v1/lookup/Lookup/Lookup.js +1 -1
  71. package/es/v1/notification/DesktopNotification/DesktopNotification.js +79 -55
  72. package/es/v1/notification/DesktopNotification/props/defaultProps.js +3 -1
  73. package/es/v1/notification/DesktopNotification/props/propTypes.js +2 -1
  74. package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +59 -23
  75. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +3 -1
  76. package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  77. package/es/v1/setup/header/Button/Button.js +17 -29
  78. package/es/v1/setup/header/Link/Link.js +23 -35
  79. package/es/v1/setup/header/Search/Search.js +43 -69
  80. package/es/v1/setup/header/Views/Views.js +27 -39
  81. package/es/v1/setup/helptips/Description/Description.js +8 -20
  82. package/es/v1/setup/helptips/Link/Link.js +20 -32
  83. package/es/v1/setup/helptips/ListGroup/ListGroup.js +18 -30
  84. package/es/v1/setup/helptips/Title/Title.js +8 -20
  85. package/es/version2/GlobalNotification/GlobalNotification.module.css +3 -0
  86. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -0
  87. package/es/version2/notification/DesktopNotification/DesktopNotification.js +78 -55
  88. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -4
  89. package/es/version2/notification/DesktopNotification/props/defaultProps.js +3 -1
  90. package/es/version2/notification/DesktopNotification/props/propTypes.js +2 -1
  91. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +59 -23
  92. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +14 -17
  93. package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +3 -1
  94. package/es/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  95. package/lib/ActionButton/ActionButton.js +41 -32
  96. package/lib/ActionButton/ActionButton.module.css +7 -0
  97. package/lib/ActionButton/props/propTypes.js +2 -1
  98. package/lib/AlphabeticList/AlphabeticList.module.css +2 -0
  99. package/lib/AttachmentViewer/AttachmentViewer.module.css +2 -0
  100. package/lib/ChannelIcon/ChannelIcon.module.css +4 -0
  101. package/lib/Drawer/Drawer.js +2 -5
  102. package/lib/FormAction/FormAction.module.css +2 -0
  103. package/lib/IconButton/IconButton.module.css +1 -0
  104. package/lib/Link/Link.js +1 -2
  105. package/lib/Provider/Config.js +2 -1
  106. package/lib/TagWithIcon/TagWithIcon.module.css +19 -5
  107. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
  108. package/lib/avatar/AvatarStatus/AvatarStatus.js +0 -1
  109. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -0
  110. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
  111. package/lib/layout/SubtabLayout/SubtabLayout.module.css +2 -0
  112. package/lib/list/Comment/Comment.module.css +1 -0
  113. package/lib/list/Dot/Dot.module.css +1 -0
  114. package/lib/list/ListLayout/ListLayout.js +1 -1
  115. package/lib/list/ListLayout/ListLayout.module.css +12 -0
  116. package/lib/list/Subject/Subject.module.css +1 -0
  117. package/lib/list/Thread/Thread.module.css +1 -0
  118. package/lib/list/status/StatusDropdown/StatusDropdown.js +6 -6
  119. package/lib/lookup/Lookup/Lookup.js +1 -1
  120. package/lib/setup/header/Search/Search.module.css +1 -0
  121. package/lib/setup/table/TableRow/SetupTableRow.module.css +3 -2
  122. package/lib/v1/ActionButton/ActionButton.js +7 -2
  123. package/lib/v1/Drawer/Drawer.js +2 -5
  124. package/lib/v1/Link/Link.js +1 -2
  125. package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +0 -1
  126. package/lib/v1/list/ListLayout/ListLayout.js +1 -1
  127. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +6 -6
  128. package/lib/v1/lookup/Lookup/Lookup.js +1 -1
  129. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +74 -55
  130. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +5 -1
  131. package/lib/v1/notification/DesktopNotification/props/propTypes.js +2 -1
  132. package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +57 -23
  133. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +5 -1
  134. package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  135. package/lib/v1/setup/header/Button/Button.js +17 -63
  136. package/lib/v1/setup/header/Link/Link.js +23 -69
  137. package/lib/v1/setup/header/Search/Search.js +57 -89
  138. package/lib/v1/setup/header/Views/Views.js +27 -73
  139. package/lib/v1/setup/helptips/Description/Description.js +8 -53
  140. package/lib/v1/setup/helptips/Link/Link.js +23 -69
  141. package/lib/v1/setup/helptips/ListGroup/ListGroup.js +26 -72
  142. package/lib/v1/setup/helptips/Title/Title.js +8 -53
  143. package/lib/version2/GlobalNotification/GlobalNotification.module.css +3 -0
  144. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +1 -0
  145. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +74 -55
  146. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -4
  147. package/lib/version2/notification/DesktopNotification/props/defaultProps.js +5 -1
  148. package/lib/version2/notification/DesktopNotification/props/propTypes.js +2 -1
  149. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +57 -23
  150. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +14 -17
  151. package/lib/version2/notification/DesktopNotificationHeader/props/defaultProps.js +5 -1
  152. package/lib/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  153. package/package.json +15 -13
  154. package/propValidationArg.json +8 -0
  155. package/result.json +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"] = ListGroup;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -15,74 +13,30 @@ var _ListGroupModule = _interopRequireDefault(require("../../../../setup/helptip
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
15
 
18
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
-
20
- 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); } }
21
-
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
-
24
- 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); }
25
-
26
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
-
28
- 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); }; }
29
-
30
- 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); }
31
-
32
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
-
34
- 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; } }
35
-
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
-
38
- var ListGroup = /*#__PURE__*/function (_React$Component) {
39
- _inherits(ListGroup, _React$Component);
40
-
41
- var _super = _createSuper(ListGroup);
42
-
43
- function ListGroup(props) {
44
- _classCallCheck(this, ListGroup);
45
-
46
- return _super.call(this, props);
16
+ function ListGroup(props) {
17
+ var isOrder = props.isOrder,
18
+ data = props.data;
19
+
20
+ if (isOrder) {
21
+ return /*#__PURE__*/_react["default"].createElement("ol", {
22
+ className: _ListGroupModule["default"].container,
23
+ type: "1"
24
+ }, data.map(function (text, index) {
25
+ return /*#__PURE__*/_react["default"].createElement("li", {
26
+ className: _ListGroupModule["default"].orderData,
27
+ key: index
28
+ }, text);
29
+ }));
47
30
  }
48
31
 
49
- _createClass(ListGroup, [{
50
- key: "render",
51
- value: function render() {
52
- var _this$props = this.props,
53
- isOrder = _this$props.isOrder,
54
- data = _this$props.data;
55
-
56
- if (isOrder) {
57
- return /*#__PURE__*/_react["default"].createElement("ol", {
58
- className: _ListGroupModule["default"].container,
59
- type: "1"
60
- }, data.map(function (text, index) {
61
- return /*#__PURE__*/_react["default"].createElement("li", {
62
- className: _ListGroupModule["default"].orderData,
63
- key: index
64
- }, text);
65
- }));
66
- }
67
-
68
- return /*#__PURE__*/_react["default"].createElement("ul", {
69
- className: _ListGroupModule["default"].container
70
- }, data.map(function (text, index) {
71
- return /*#__PURE__*/_react["default"].createElement("li", {
72
- className: _ListGroupModule["default"].unOrderData,
73
- key: index
74
- }, data);
75
- }));
76
- }
77
- }]);
78
-
79
- return ListGroup;
80
- }(_react["default"].Component);
81
-
82
- exports["default"] = ListGroup;
83
- ListGroup.propTypes = _propTypes.propTypes; // if (__DOCS__) {
84
- // ListGroup.docs = {
85
- // componentGroup: 'HelpTips',
86
- // folderName: 'Setup'
87
- // };
88
- // }
32
+ return /*#__PURE__*/_react["default"].createElement("ul", {
33
+ className: _ListGroupModule["default"].container
34
+ }, data.map(function (text, index) {
35
+ return /*#__PURE__*/_react["default"].createElement("li", {
36
+ className: _ListGroupModule["default"].unOrderData,
37
+ key: index
38
+ }, text);
39
+ }));
40
+ }
41
+
42
+ ListGroup.propTypes = _propTypes.propTypes;
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
- exports["default"] = void 0;
6
+ exports["default"] = Title;
9
7
 
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
@@ -15,54 +13,11 @@ var _HelpTipsTitleModule = _interopRequireDefault(require("../../../../setup/hel
15
13
 
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
15
 
18
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
-
20
- 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); } }
21
-
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
23
-
24
- 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); }
25
-
26
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
-
28
- 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); }; }
29
-
30
- 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); }
31
-
32
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
16
+ function Title(props) {
17
+ var text = props.text;
18
+ return /*#__PURE__*/_react["default"].createElement("div", {
19
+ className: _HelpTipsTitleModule["default"].title
20
+ }, text);
21
+ }
33
22
 
34
- 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; } }
35
-
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
-
38
- var Title = /*#__PURE__*/function (_React$Component) {
39
- _inherits(Title, _React$Component);
40
-
41
- var _super = _createSuper(Title);
42
-
43
- function Title(props) {
44
- _classCallCheck(this, Title);
45
-
46
- return _super.call(this, props);
47
- }
48
-
49
- _createClass(Title, [{
50
- key: "render",
51
- value: function render() {
52
- var text = this.props.text;
53
- return /*#__PURE__*/_react["default"].createElement("div", {
54
- className: _HelpTipsTitleModule["default"].title
55
- }, text);
56
- }
57
- }]);
58
-
59
- return Title;
60
- }(_react["default"].Component);
61
-
62
- exports["default"] = Title;
63
- Title.propTypes = _propTypes.propTypes; // if (__DOCS__) {
64
- // Title.docs = {
65
- // componentGroup: 'HelpTips',
66
- // folderName: 'Setup'
67
- // };
68
- // }
23
+ Title.propTypes = _propTypes.propTypes;
@@ -29,6 +29,9 @@
29
29
  .container {
30
30
  position: relative;
31
31
  pointer-events: initial;
32
+ /* css:theme-validation:ignore */
33
+ /* css:theme-validation:ignore */
34
+ /* css:theme-validation:ignore */
32
35
  color: var(--globalnotification_text_color);
33
36
  max-width: var(--zd_size490) ;
34
37
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
@@ -4,6 +4,7 @@
4
4
  .container {
5
5
  composes: varClass;
6
6
  position: relative;
7
+ /* css:theme-validation:ignore */
7
8
  background-color: var(--zdt_alertlookup_bg);
8
9
  border-style: solid;
9
10
  border-color: var(--commonalert_border_color);
@@ -26,6 +26,8 @@ var _FormAction = _interopRequireDefault(require("../../../FormAction/FormAction
26
26
 
27
27
  var _DesktopNotificationHeader = _interopRequireDefault(require("../DesktopNotificationHeader/DesktopNotificationHeader"));
28
28
 
29
+ var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
30
+
29
31
  var _DesktopNotificationModule = _interopRequireDefault(require("./DesktopNotification.module.css"));
30
32
 
31
33
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -89,7 +91,8 @@ function DesktopNotificationUI(props) {
89
91
  customClass = _props$customClass === void 0 ? {} : _props$customClass,
90
92
  _props$i18nKeys = props.i18nKeys,
91
93
  i18nKeys = _props$i18nKeys === void 0 ? {} : _props$i18nKeys,
92
- customProps = props.customProps;
94
+ customProps = props.customProps,
95
+ responsiveId = props.responsiveId;
93
96
  var _i18nKeys$closeTitle = i18nKeys.closeTitle,
94
97
  closeTitle = _i18nKeys$closeTitle === void 0 ? 'Close' : _i18nKeys$closeTitle;
95
98
  var containerClass = customClass.containerClass;
@@ -115,66 +118,82 @@ function DesktopNotificationUI(props) {
115
118
  var Zindex = isAnimate ? getNextIndex() : null;
116
119
  var uiVariantOne = title && (info || secondaryInfo);
117
120
  var uiVariantTwo = title && !(info || secondaryInfo) && !getSectionContainer;
121
+
122
+ function responsiveFunc(_ref2) {
123
+ var mediaQueryOR = _ref2.mediaQueryOR;
124
+ return {
125
+ uptoTablet: mediaQueryOR([{
126
+ maxWidth: 760
127
+ }])
128
+ };
129
+ }
130
+
118
131
  return /*#__PURE__*/_react["default"].createElement("div", {
119
132
  className: _DesktopNotificationModule["default"].parentElement,
120
133
  style: needAutoZindex && isAnimate ? {
121
134
  zIndex: "".concat(Zindex)
122
135
  } : {},
123
136
  "data-selector-id": dataSelectorId
124
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
125
- className: "".concat(_DesktopNotificationModule["default"].container, " ").concat(isAnimate ? animateClass : animateRemoveClass, " ").concat(_DesktopNotificationModule["default"]["".concat(size)] ? _DesktopNotificationModule["default"]["".concat(size)] : '', " ").concat(isShrinkView ? _DesktopNotificationModule["default"].globalNotify : '', " ").concat(containerClass),
126
- isCover: false,
127
- dataId: dataId,
128
- isInline: uiVariantTwo
129
- }, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_DesktopNotificationHeader["default"], {
130
- type: type,
131
- title: title,
132
- variant: titleVariant,
133
- needIcon: needIcon,
134
- onClose: onClose,
135
- closeTitle: closeTitle,
136
- dataId: "".concat(dataId, "_close"),
137
- needClose: needClose
138
- })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
139
- alignBox: "column"
140
- }, uiVariantOne && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
141
- flexible: true
142
- }, /*#__PURE__*/_react["default"].createElement("div", {
143
- className: "".concat(_DesktopNotificationModule["default"].section, " ").concat(_DesktopNotificationModule["default"].infoText)
144
- }, subTitle && /*#__PURE__*/_react["default"].createElement("div", {
145
- className: "".concat(_DesktopNotificationModule["default"].subTitle, " ").concat(info || secondaryInfo ? _DesktopNotificationModule["default"].subTitleMargin : '')
146
- }, subTitle), info && /*#__PURE__*/_react["default"].createElement("div", null, info), secondaryInfo && /*#__PURE__*/_react["default"].createElement("div", {
147
- className: "".concat(info ? _DesktopNotificationModule["default"].secondaryInfo : '')
148
- }, secondaryInfo))), getSectionContainer && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
149
- flexible: true
150
- }, getSectionContainer()), submitText || cancelText ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement("div", {
151
- className: _DesktopNotificationModule["default"].footer
152
- }, isMore ? /*#__PURE__*/_react["default"].createElement("div", {
153
- className: "".concat(_DesktopNotificationModule["default"].message),
154
- tagName: "p"
155
- }, message) : null, /*#__PURE__*/_react["default"].createElement(_FormAction["default"], {
156
- size: "small",
157
- paddingLeftSize: "xmedium"
158
- }, submitText ? /*#__PURE__*/_react["default"].createElement("div", {
159
- onClick: onClickSubmit,
160
- "data-id": "".concat(dataId, "_submitButton"),
161
- "data-test-id": "".concat(dataId, "_submitButton")
162
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
163
- align: "vertical",
164
- alignBox: "row"
165
- }, getSubmitContainer ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
166
- flexible: true
167
- }, getSubmitContainer()) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
168
- flexible: true
169
- }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
170
- text: submitText,
171
- palette: submitType ? submitType : buttonPalette
172
- })))) : null, cancelText ? /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
173
- text: cancelText,
174
- palette: "secondary",
175
- dataId: "".concat(dataId, "_cancelButton"),
176
- onClick: onClickCancel
177
- })) : null))) : null)), getBottomContainer ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, getBottomContainer()) : null));
137
+ }, /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
138
+ query: responsiveFunc,
139
+ responsiveId: responsiveId
140
+ }, function (_ref3) {
141
+ var uptoTablet = _ref3.uptoTablet;
142
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
143
+ className: "".concat(_DesktopNotificationModule["default"].container, " ").concat(isAnimate ? animateClass : animateRemoveClass, "\n ").concat(isShrinkView ? _DesktopNotificationModule["default"].globalNotify : '', " ").concat(containerClass, " ").concat(uptoTablet ? _DesktopNotificationModule["default"].tapWidth : _DesktopNotificationModule["default"]["".concat(size)]),
144
+ isCover: false,
145
+ dataId: dataId,
146
+ isInline: uiVariantTwo
147
+ }, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_DesktopNotificationHeader["default"], {
148
+ type: type,
149
+ title: title,
150
+ variant: titleVariant,
151
+ needIcon: needIcon,
152
+ onClose: onClose,
153
+ closeTitle: closeTitle,
154
+ dataId: "".concat(dataId, "_close"),
155
+ needClose: needClose
156
+ })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
157
+ alignBox: "column"
158
+ }, uiVariantOne && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
159
+ flexible: true
160
+ }, /*#__PURE__*/_react["default"].createElement("div", {
161
+ className: "".concat(_DesktopNotificationModule["default"].section, " ").concat(_DesktopNotificationModule["default"].infoText)
162
+ }, subTitle && /*#__PURE__*/_react["default"].createElement("div", {
163
+ className: "".concat(_DesktopNotificationModule["default"].subTitle, " ").concat(info || secondaryInfo ? _DesktopNotificationModule["default"].subTitleMargin : '')
164
+ }, subTitle), info && /*#__PURE__*/_react["default"].createElement("div", null, info), secondaryInfo && /*#__PURE__*/_react["default"].createElement("div", {
165
+ className: "".concat(info ? _DesktopNotificationModule["default"].secondaryInfo : '')
166
+ }, secondaryInfo))), getSectionContainer && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
167
+ flexible: true
168
+ }, getSectionContainer()), submitText || cancelText ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement("div", {
169
+ className: _DesktopNotificationModule["default"].footer
170
+ }, isMore ? /*#__PURE__*/_react["default"].createElement("div", {
171
+ className: "".concat(_DesktopNotificationModule["default"].message),
172
+ tagName: "p"
173
+ }, message) : null, /*#__PURE__*/_react["default"].createElement(_FormAction["default"], {
174
+ size: "small",
175
+ paddingLeftSize: "xmedium"
176
+ }, submitText ? /*#__PURE__*/_react["default"].createElement("div", {
177
+ onClick: onClickSubmit,
178
+ "data-id": "".concat(dataId, "_submitButton"),
179
+ "data-test-id": "".concat(dataId, "_submitButton")
180
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
181
+ align: "vertical",
182
+ alignBox: "row"
183
+ }, getSubmitContainer ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
184
+ flexible: true
185
+ }, getSubmitContainer()) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
186
+ flexible: true
187
+ }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
188
+ text: submitText,
189
+ palette: submitType ? submitType : buttonPalette
190
+ })))) : null, cancelText ? /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
191
+ text: cancelText,
192
+ palette: "secondary",
193
+ dataId: "".concat(dataId, "_cancelButton"),
194
+ onClick: onClickCancel
195
+ })) : null))) : null)), getBottomContainer ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, getBottomContainer()) : null);
196
+ }));
178
197
  }
179
198
 
180
199
  DesktopNotificationUI.propTypes = _propTypes.DesktopNotificationUI_propTypes;
@@ -28,6 +28,7 @@
28
28
  }
29
29
 
30
30
  /* Size */
31
+
31
32
  .medium {
32
33
  width: var(--zd_size452) ;
33
34
  }
@@ -35,6 +36,10 @@
35
36
  .large {
36
37
  width: var(--zd_size580) ;
37
38
  }
39
+ .tapWidth{
40
+ max-width: 100% ;
41
+ min-width: 100% ;
42
+ }
38
43
 
39
44
  /* Animation Style */
40
45
  .closeAnimation {
@@ -76,12 +81,12 @@
76
81
  /* Container Style */
77
82
  .message {
78
83
  position: relative;
79
- color: var(--zd_smoke18);
84
+ color: var(--zdt_desktopnotification_message_text);
80
85
  font-size: var(--zd_font_size11) ;
81
86
  composes: dotted textCap from '~@zohodesk/components/lib/common/common.module.css';
82
87
  height: var(--zd_size33) ;
83
88
  transition: padding var(--zd_transition3), height var(--zd_transition3);
84
- border-top: 1px solid var(--zd_smoke1);
89
+ border-top: 1px solid var(--zdt_desktopnotification_message_border);
85
90
  cursor: pointer;
86
91
  }
87
92
  [dir=ltr] .message {
@@ -92,7 +97,7 @@
92
97
  }
93
98
 
94
99
  .message:hover {
95
- background: var(--zd_alabaster);
100
+ background: var(--zdt_desktopnotification_message_hover_bg);
96
101
  }
97
102
 
98
103
  /* Section */
@@ -100,6 +105,7 @@
100
105
  padding: var(--zd_size15) var(--zd_size30) var(--zd_size30) ;
101
106
  }
102
107
 
108
+
103
109
  .subTitle {
104
110
  font-size: var(--zd_font_size15) ;
105
111
  line-height: var(--zd_size20);
@@ -124,4 +130,4 @@
124
130
  .footer {
125
131
  overflow: hidden;
126
132
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
127
- }
133
+ }
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.defaultProps = void 0;
7
+
8
+ var _Config = require("../../../../Provider/Config");
9
+
7
10
  var defaultProps = {
8
11
  isMore: false,
9
12
  isAnimate: true,
@@ -17,6 +20,7 @@ var defaultProps = {
17
20
  isShrinkView: false,
18
21
  needClose: true,
19
22
  customProps: {},
20
- dataSelectorId: 'desktopNotification'
23
+ dataSelectorId: 'desktopNotification',
24
+ responsiveId: (0, _Config.getDotLibraryConfig)('desktopNotificationResponsiveId')
21
25
  };
22
26
  exports.defaultProps = defaultProps;
@@ -14,7 +14,8 @@ var propTypes = {
14
14
  onPortalClose: _propTypes["default"].func,
15
15
  autoClose: _propTypes["default"].bool,
16
16
  hideTime: _propTypes["default"].string,
17
- Element: _propTypes["default"].element
17
+ Element: _propTypes["default"].element,
18
+ responsiveId: _propTypes["default"].string
18
19
  };
19
20
  exports.propTypes = propTypes;
20
21
  var DesktopNotificationUI_propTypes = {
@@ -19,6 +19,10 @@ var _AlertClose = _interopRequireDefault(require("../../AlertClose/AlertClose"))
19
19
 
20
20
  var _AlertIcons = _interopRequireDefault(require("../../alertIcons/AlertIcons"));
21
21
 
22
+ var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
23
+
24
+ var _Typography = _interopRequireDefault(require("@zohodesk/components/es/v1/Typography/Typography"));
25
+
22
26
  var _DesktopNotificationHeaderModule = _interopRequireDefault(require("./DesktopNotificationHeader.module.css"));
23
27
 
24
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -70,35 +74,65 @@ var DesktopNotificationHeader = /*#__PURE__*/function (_Component) {
70
74
  type = _this$props$type === void 0 ? '' : _this$props$type,
71
75
  needIcon = _this$props.needIcon,
72
76
  title = _this$props.title,
73
- needClose = _this$props.needClose;
77
+ needClose = _this$props.needClose,
78
+ responsiveId = _this$props.responsiveId;
79
+
80
+ function responsiveFunc(_ref) {
81
+ var mediaQueryOR = _ref.mediaQueryOR;
82
+ return {
83
+ uptoTablet: mediaQueryOR([{
84
+ maxWidth: 760
85
+ }])
86
+ };
87
+ }
88
+
74
89
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
75
90
  align: "vertical",
76
91
  alignBox: "row",
77
92
  className: "".concat(_DesktopNotificationHeaderModule["default"].container, " ").concat(_DesktopNotificationHeaderModule["default"][variant], " ").concat(_DesktopNotificationHeaderModule["default"][type]),
78
93
  isCover: false,
79
94
  wrap: "wrap"
80
- }, needIcon ? /*#__PURE__*/_react["default"].createElement("div", {
81
- className: _DesktopNotificationHeaderModule["default"].iconContainer
82
- }, /*#__PURE__*/_react["default"].createElement(_AlertIcons["default"], {
83
- type: type
84
- })) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
85
- flexible: true
86
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
87
- alignBox: "row",
88
- align: "center"
89
- }, variant === 'primary' ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
90
- className: _DesktopNotificationHeaderModule["default"].title,
91
- shrink: true
92
- }, title) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
93
- className: "".concat(_DesktopNotificationHeaderModule["default"].infoText)
94
- }, title))), needClose ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
95
- className: _DesktopNotificationHeaderModule["default"].close
96
- }, /*#__PURE__*/_react["default"].createElement(_AlertClose["default"], {
97
- onClose: onClose,
98
- dataTitle: closeTitle,
99
- dataId: dataId,
100
- type: "light"
101
- })) : null);
95
+ }, /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
96
+ query: responsiveFunc,
97
+ responsiveId: responsiveId
98
+ }, function (_ref2) {
99
+ var uptoTablet = _ref2.uptoTablet;
100
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, needIcon ? /*#__PURE__*/_react["default"].createElement("div", {
101
+ className: _DesktopNotificationHeaderModule["default"].iconContainer
102
+ }, /*#__PURE__*/_react["default"].createElement(_AlertIcons["default"], {
103
+ type: type
104
+ })) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
105
+ flexible: true
106
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
107
+ alignBox: "row",
108
+ align: "center"
109
+ }, variant === 'primary' ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
110
+ shrink: true
111
+ }, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
112
+ $i18n_dataTitle: title,
113
+ $ui_className: _DesktopNotificationHeaderModule["default"].title,
114
+ $ui_tagName: "h1",
115
+ $ui_size: uptoTablet ? '16' : '18',
116
+ $ui_lineHeight: "20",
117
+ $ui_weight: "bold",
118
+ $flag_reset: true,
119
+ $ui_wordBreak: "breakWord"
120
+ }, title)) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
121
+ className: "".concat(_DesktopNotificationHeaderModule["default"].infoText)
122
+ }, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
123
+ $i18n_dataTitle: title,
124
+ $ui_className: _DesktopNotificationHeaderModule["default"].title,
125
+ $ui_size: "14",
126
+ $ui_wordBreak: "breakWord"
127
+ }, title)))), needClose ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
128
+ className: _DesktopNotificationHeaderModule["default"].close
129
+ }, /*#__PURE__*/_react["default"].createElement(_AlertClose["default"], {
130
+ onClose: onClose,
131
+ dataTitle: closeTitle,
132
+ dataId: dataId,
133
+ type: "light"
134
+ })) : null);
135
+ }));
102
136
  }
103
137
  }]);
104
138