@zohodesk/dot 1.0.0-temp-166 → 1.0.0-temp-168

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 (145) 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 +3 -1
  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.module.css +7 -0
  38. package/es/AlphabeticList/AlphabeticList.module.css +2 -0
  39. package/es/Attachment/Attachment.js +8 -4
  40. package/es/Attachment/Attachment.module.css +13 -2
  41. package/es/Attachment/props/defaultProps.js +2 -1
  42. package/es/Attachment/props/propTypes.js +2 -1
  43. package/es/AttachmentViewer/AttachmentViewer.module.css +3 -1
  44. package/es/ChannelIcon/ChannelIcon.module.css +4 -0
  45. package/es/FormAction/FormAction.module.css +2 -0
  46. package/es/IconButton/IconButton.module.css +1 -0
  47. package/es/ImportantNotes/ImportantNotes.module.css +2 -6
  48. package/es/Provider/Config.js +2 -1
  49. package/es/TagWithIcon/TagWithIcon.module.css +19 -5
  50. package/es/ToastMessage/ToastMessage.module.css +2 -2
  51. package/es/Upload/Upload.module.css +1 -1
  52. package/es/alert/AlertLookup/AlertLookup.module.css +1 -1
  53. package/es/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
  54. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +5 -1
  55. package/es/errorstate/EmptyStates.module.css +3 -3
  56. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
  57. package/es/form/fields/Fields.module.css +1 -1
  58. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
  59. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  60. package/es/layout/SubtabLayout/SubtabLayout.module.css +2 -0
  61. package/es/list/Comment/Comment.module.css +1 -0
  62. package/es/list/Dot/Dot.module.css +1 -0
  63. package/es/list/ListLayout/ListLayout.module.css +12 -0
  64. package/es/list/Subject/Subject.module.css +1 -0
  65. package/es/list/Thread/Thread.module.css +1 -0
  66. package/es/list/status/StatusListItem/StatusListItem.module.css +1 -1
  67. package/es/lookup/header/Close/LookupClose.module.css +1 -1
  68. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
  69. package/es/setup/header/Search/Search.module.css +1 -0
  70. package/es/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
  71. package/es/setup/table/TableRow/SetupTableRow.module.css +3 -2
  72. package/es/v1/notification/DesktopNotification/DesktopNotification.js +79 -55
  73. package/es/v1/notification/DesktopNotification/props/defaultProps.js +3 -1
  74. package/es/v1/notification/DesktopNotification/props/propTypes.js +2 -1
  75. package/es/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +59 -23
  76. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +3 -1
  77. package/es/v1/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  78. package/es/version2/GlobalNotification/GlobalNotification.module.css +4 -1
  79. package/es/version2/errorstate/V2_ErrorStates.module.css +1 -1
  80. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -1
  81. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  82. package/es/version2/notification/DesktopNotification/DesktopNotification.js +78 -55
  83. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +12 -6
  84. package/es/version2/notification/DesktopNotification/props/defaultProps.js +3 -1
  85. package/es/version2/notification/DesktopNotification/props/propTypes.js +2 -1
  86. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +59 -23
  87. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +16 -19
  88. package/es/version2/notification/DesktopNotificationHeader/props/defaultProps.js +3 -1
  89. package/es/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  90. package/lib/ActionButton/ActionButton.module.css +7 -0
  91. package/lib/AlphabeticList/AlphabeticList.module.css +2 -0
  92. package/lib/Attachment/Attachment.js +8 -4
  93. package/lib/Attachment/Attachment.module.css +13 -2
  94. package/lib/Attachment/props/defaultProps.js +2 -1
  95. package/lib/Attachment/props/propTypes.js +2 -1
  96. package/lib/AttachmentViewer/AttachmentViewer.module.css +3 -1
  97. package/lib/ChannelIcon/ChannelIcon.module.css +4 -0
  98. package/lib/FormAction/FormAction.module.css +2 -0
  99. package/lib/IconButton/IconButton.module.css +1 -0
  100. package/lib/ImportantNotes/ImportantNotes.module.css +2 -6
  101. package/lib/Provider/Config.js +2 -1
  102. package/lib/TagWithIcon/TagWithIcon.module.css +19 -5
  103. package/lib/ToastMessage/ToastMessage.module.css +2 -2
  104. package/lib/Upload/Upload.module.css +1 -1
  105. package/lib/alert/AlertLookup/AlertLookup.module.css +1 -1
  106. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +6 -0
  107. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +5 -1
  108. package/lib/errorstate/EmptyStates.module.css +3 -3
  109. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +1 -1
  110. package/lib/form/fields/Fields.module.css +1 -1
  111. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +1 -0
  112. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +4 -4
  113. package/lib/layout/SubtabLayout/SubtabLayout.module.css +2 -0
  114. package/lib/list/Comment/Comment.module.css +1 -0
  115. package/lib/list/Dot/Dot.module.css +1 -0
  116. package/lib/list/ListLayout/ListLayout.module.css +12 -0
  117. package/lib/list/Subject/Subject.module.css +1 -0
  118. package/lib/list/Thread/Thread.module.css +1 -0
  119. package/lib/list/status/StatusListItem/StatusListItem.module.css +1 -1
  120. package/lib/lookup/header/Close/LookupClose.module.css +1 -1
  121. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +1 -1
  122. package/lib/setup/header/Search/Search.module.css +1 -0
  123. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +1 -1
  124. package/lib/setup/table/TableRow/SetupTableRow.module.css +3 -2
  125. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +74 -55
  126. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +5 -1
  127. package/lib/v1/notification/DesktopNotification/props/propTypes.js +2 -1
  128. package/lib/v1/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +57 -23
  129. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +5 -1
  130. package/lib/v1/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  131. package/lib/version2/GlobalNotification/GlobalNotification.module.css +4 -1
  132. package/lib/version2/errorstate/V2_ErrorStates.module.css +1 -1
  133. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +2 -1
  134. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +1 -1
  135. package/lib/version2/notification/DesktopNotification/DesktopNotification.js +74 -55
  136. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +12 -6
  137. package/lib/version2/notification/DesktopNotification/props/defaultProps.js +5 -1
  138. package/lib/version2/notification/DesktopNotification/props/propTypes.js +2 -1
  139. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +57 -23
  140. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +16 -19
  141. package/lib/version2/notification/DesktopNotificationHeader/props/defaultProps.js +5 -1
  142. package/lib/version2/notification/DesktopNotificationHeader/props/propTypes.js +2 -1
  143. package/package.json +14 -12
  144. package/propValidationArg.json +8 -0
  145. package/result.json +1 -1
@@ -169,7 +169,7 @@
169
169
  color: var(--zdt_fields_phitag_text);
170
170
  font-size: var(--zd_font_size12) ;
171
171
  height: var(--zd_size18) ;
172
- line-height: 1.5;
172
+ line-height: var(--zd_size18);
173
173
  background-color: var(--zdt_fields_phitag_bg);
174
174
  border: 1px solid var(--zdt_fields_phitag_border);
175
175
  padding: 0 var(--zd_size5) ;
@@ -5,6 +5,7 @@
5
5
  display: inline;
6
6
  }
7
7
  .icon{
8
+ /* css:theme-validation:ignore */
8
9
  color:var(--label_text_color);
9
10
  display: inline-block;
10
11
  margin: 0 var(--zd_size5) ;
@@ -12,7 +12,7 @@
12
12
  font-size: var(--zd_font_size12) ;
13
13
  display: inline-block;
14
14
  color: var(--zdt_setupdetail_backicon);
15
- line-height: 2.5;
15
+ line-height: var(--zd_size30);
16
16
  text-align: center;
17
17
  border-radius: 50%;
18
18
  cursor: pointer;
@@ -29,7 +29,7 @@
29
29
  }
30
30
  .title {
31
31
  font-size: var(--zd_font_size16) ;
32
- line-height: 1;
32
+ line-height: var(--zd_size16);
33
33
  font-family: var(--zd_semibold);
34
34
  color: var(--zdt_setupdetail_backicon);
35
35
  composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
@@ -57,7 +57,7 @@
57
57
  padding: var(--zd_size12) 0 0 var(--zd_size15) ;
58
58
  }
59
59
  .helpInfo {
60
- line-height: 2.3636;
60
+ line-height: var(--zd_size26);
61
61
  height: var(--zd_size28) ;
62
62
  width: var(--zd_size28) ;
63
63
  color: var(--zdt_setupdetail_helpinfo_text);
@@ -120,7 +120,7 @@
120
120
  height: var(--zd_size26) ;
121
121
  width: var(--zd_size26) ;
122
122
  font-size: var(--zd_font_size12) ;
123
- line-height: 2;
123
+ line-height: var(--zd_size24);
124
124
  text-align: center;
125
125
  border: 1px solid var(--zdt_setupdetail_infoicon_border);
126
126
  border-radius: 2px;
@@ -48,6 +48,7 @@
48
48
  }
49
49
 
50
50
  .tertiary_borderStyle {
51
+ /* css:theme-validation:ignore */
51
52
  border-bottom: 1px solid var(--borderColor);
52
53
  }
53
54
 
@@ -149,6 +150,7 @@
149
150
 
150
151
  .footer {
151
152
  composes: varClass;
153
+ /* css:theme-validation:ignore */
152
154
  border-top: 1px solid var(--borderColor);
153
155
  }
154
156
 
@@ -5,6 +5,7 @@
5
5
  composes: varClass;
6
6
  composes: inlineBlockMiddle from '../listCommon.module.css';
7
7
  position: relative;
8
+ /* css:theme-validation:ignore */
8
9
  color: var(--icon_color);
9
10
  padding: 0 var(--zd_size2) ;
10
11
  cursor: pointer;
@@ -4,6 +4,7 @@
4
4
  .dot {
5
5
  composes: varClass;
6
6
  font-size: var(--zd_font_size16) ;
7
+ /* css:theme-validation:ignore */
7
8
  color: var(--dotColor);
8
9
  transform: perspective(1px);
9
10
  }
@@ -35,10 +35,22 @@
35
35
  padding: var(--zd_size2) 0 ;
36
36
  }
37
37
 
38
+ .compact .innerContainer,
39
+ .classic .innerContainer,
40
+ .superCompact .innerContainer {
41
+ /* css:theme-validation:ignore */
42
+ }
43
+
38
44
  .compact .innerContainer, .classic .innerContainer, .superCompact .innerContainer {
39
45
  border-bottom: 1px dotted var(--listBorder);
40
46
  }
41
47
 
48
+ .compact,
49
+ .classic,
50
+ .superCompact {
51
+ /* css:theme-validation:ignore */
52
+ }
53
+
42
54
  [dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
43
55
  border-left: var(--zd_size2) solid transparent;
44
56
  }
@@ -3,6 +3,7 @@
3
3
  }
4
4
  .subject {
5
5
  composes: varClass;
6
+ /* css:theme-validation:ignore */
6
7
  color: var(--subject_text);
7
8
  display: block;
8
9
  }
@@ -4,6 +4,7 @@
4
4
  .container {
5
5
  composes: varClass;
6
6
  position: relative;
7
+ /* css:theme-validation:ignore */
7
8
  color: var(--icon_color);
8
9
  cursor: pointer;
9
10
  }
@@ -31,7 +31,7 @@
31
31
  padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3) ;
32
32
  }
33
33
  .value,.multiLineValue {
34
- line-height: 1.5385;
34
+ line-height: var(--zd_size20);
35
35
  }
36
36
  .value {
37
37
  composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
@@ -1,7 +1,7 @@
1
1
  .container {
2
2
  width: var(--zd_size25) ;
3
3
  height: var(--zd_size25) ;
4
- line-height: 2.7778;
4
+ line-height: var(--zd_size25);
5
5
  color: var(--zdt_lookupclose_default_text);
6
6
  transition: var(--zd_transition2) cubic-bezier(0.4, 1, 0.65, 1);
7
7
  font-size: var(--zd_font_size9) ;
@@ -26,7 +26,7 @@
26
26
  /* Label Style */
27
27
  .labelCnt {
28
28
  composes: dInflex alignVertical from '~@zohodesk/components/lib/common/common.module.css';
29
- line-height: 1.6667;
29
+ line-height: var(--zd_size20);
30
30
  color: var(--zdt_viewdropdown_label_text);
31
31
  cursor: pointer;
32
32
  }
@@ -35,6 +35,7 @@
35
35
  font-size: var(--zd_font_size13) ;
36
36
  width: 100% ;
37
37
  letter-spacing: 0.2px;
38
+ /* css:theme-validation:ignore */
38
39
  transition: all var(--zd_transition3) ease;
39
40
  color: var(--zdt_search_input_text);
40
41
  font-family: var(--zd_regular);
@@ -1,6 +1,6 @@
1
1
  .text {
2
2
  font-size: var(--zd_font_size14) ;
3
3
  color: var(--zdt_helptips_text);
4
- line-height: 1.7143;
4
+ line-height: var(--zd_size24);
5
5
  margin: var(--zd_size10) 0 ;
6
6
  }
@@ -9,6 +9,7 @@
9
9
  margin-left: var(--zd_size40) ;
10
10
  margin-right: var(--zd_size40) ;
11
11
  }
12
+
12
13
  .container:hover {
13
- background-color: var( --zdt_setuptablerow_hover_bg);
14
- }
14
+ background-color: var(--zdt_setuptablerow_hover_bg);
15
+ }
@@ -24,6 +24,8 @@ var _FormAction = _interopRequireDefault(require("../../../FormAction/FormAction
24
24
 
25
25
  var _DesktopNotificationHeader = _interopRequireDefault(require("../DesktopNotificationHeader/DesktopNotificationHeader"));
26
26
 
27
+ var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
28
+
27
29
  var _DesktopNotificationModule = _interopRequireDefault(require("../../../version2/notification/DesktopNotification/DesktopNotification.module.css"));
28
30
 
29
31
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -84,7 +86,8 @@ function DesktopNotificationUI(props) {
84
86
  customClass = _props$customClass === void 0 ? {} : _props$customClass,
85
87
  _props$i18nKeys = props.i18nKeys,
86
88
  i18nKeys = _props$i18nKeys === void 0 ? {} : _props$i18nKeys,
87
- customProps = props.customProps;
89
+ customProps = props.customProps,
90
+ responsiveId = props.responsiveId;
88
91
  var _i18nKeys$closeTitle = i18nKeys.closeTitle,
89
92
  closeTitle = _i18nKeys$closeTitle === void 0 ? 'Close' : _i18nKeys$closeTitle;
90
93
  var containerClass = customClass.containerClass;
@@ -110,66 +113,82 @@ function DesktopNotificationUI(props) {
110
113
  var Zindex = isAnimate ? getNextIndex() : null;
111
114
  var uiVariantOne = title && (info || secondaryInfo);
112
115
  var uiVariantTwo = title && !(info || secondaryInfo) && !getSectionContainer;
116
+
117
+ function responsiveFunc(_ref2) {
118
+ var mediaQueryOR = _ref2.mediaQueryOR;
119
+ return {
120
+ uptoTablet: mediaQueryOR([{
121
+ maxWidth: 760
122
+ }])
123
+ };
124
+ }
125
+
113
126
  return /*#__PURE__*/_react["default"].createElement("div", {
114
127
  className: _DesktopNotificationModule["default"].parentElement,
115
128
  style: needAutoZindex && isAnimate ? {
116
129
  zIndex: "".concat(Zindex)
117
130
  } : {},
118
131
  "data-selector-id": dataSelectorId
119
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
120
- 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),
121
- isCover: false,
122
- dataId: dataId,
123
- isInline: uiVariantTwo
124
- }, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_DesktopNotificationHeader["default"], {
125
- type: type,
126
- title: title,
127
- variant: titleVariant,
128
- needIcon: needIcon,
129
- onClose: onClose,
130
- closeTitle: closeTitle,
131
- renderAlertIcon: renderAlertIcon,
132
- dataId: "".concat(dataId, "_close"),
133
- needClose: needClose
134
- })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
135
- alignBox: "column"
136
- }, uiVariantOne && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
137
- flexible: true
138
- }, /*#__PURE__*/_react["default"].createElement("div", {
139
- className: "".concat(_DesktopNotificationModule["default"].section, " ").concat(_DesktopNotificationModule["default"].infoText)
140
- }, subTitle && /*#__PURE__*/_react["default"].createElement("div", {
141
- className: "".concat(_DesktopNotificationModule["default"].subTitle, " ").concat(info || secondaryInfo ? _DesktopNotificationModule["default"].subTitleMargin : '')
142
- }, subTitle), info && /*#__PURE__*/_react["default"].createElement("div", null, info), secondaryInfo && /*#__PURE__*/_react["default"].createElement("div", {
143
- className: "".concat(info ? _DesktopNotificationModule["default"].secondaryInfo : '')
144
- }, secondaryInfo))), getSectionContainer && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
145
- flexible: true
146
- }, getSectionContainer()), submitText || cancelText ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement("div", {
147
- className: _DesktopNotificationModule["default"].footer
148
- }, isMore ? /*#__PURE__*/_react["default"].createElement("div", {
149
- className: "".concat(_DesktopNotificationModule["default"].message)
150
- }, message) : null, /*#__PURE__*/_react["default"].createElement(_FormAction["default"], {
151
- size: "small",
152
- paddingLeftSize: "xmedium"
153
- }, submitText ? /*#__PURE__*/_react["default"].createElement("div", {
154
- onClick: onClickSubmit,
155
- "data-id": "".concat(dataId, "_submitButton"),
156
- "data-test-id": "".concat(dataId, "_submitButton")
157
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
158
- align: "vertical",
159
- alignBox: "row"
160
- }, getSubmitContainer ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
161
- flexible: true
162
- }, getSubmitContainer()) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
163
- flexible: true
164
- }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
165
- text: submitText,
166
- palette: submitType ? submitType : buttonPalette
167
- })))) : null, cancelText ? /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
168
- text: cancelText,
169
- palette: "secondary",
170
- dataId: "".concat(dataId, "_cancelButton"),
171
- onClick: onClickCancel
172
- })) : null))) : null)), getBottomContainer ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, getBottomContainer()) : null));
132
+ }, /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
133
+ query: responsiveFunc,
134
+ responsiveId: responsiveId
135
+ }, function (_ref3) {
136
+ var uptoTablet = _ref3.uptoTablet;
137
+ return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
138
+ className: "".concat(_DesktopNotificationModule["default"].container, " ").concat(isAnimate ? animateClass : animateRemoveClass, "\n ").concat(isShrinkView ? _DesktopNotificationModule["default"].globalNotify : '', " ").concat(containerClass, "\n ").concat(uptoTablet ? _DesktopNotificationModule["default"].tapWidth : _DesktopNotificationModule["default"]["".concat(size)]),
139
+ isCover: false,
140
+ dataId: dataId,
141
+ isInline: uiVariantTwo
142
+ }, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_DesktopNotificationHeader["default"], {
143
+ type: type,
144
+ title: title,
145
+ variant: titleVariant,
146
+ needIcon: needIcon,
147
+ onClose: onClose,
148
+ closeTitle: closeTitle,
149
+ renderAlertIcon: renderAlertIcon,
150
+ dataId: "".concat(dataId, "_close"),
151
+ needClose: needClose
152
+ })), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
153
+ alignBox: "column"
154
+ }, uiVariantOne && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
155
+ flexible: true
156
+ }, /*#__PURE__*/_react["default"].createElement("div", {
157
+ className: "".concat(_DesktopNotificationModule["default"].section, " ").concat(_DesktopNotificationModule["default"].infoText)
158
+ }, subTitle && /*#__PURE__*/_react["default"].createElement("div", {
159
+ className: "".concat(_DesktopNotificationModule["default"].subTitle, " ").concat(info || secondaryInfo ? _DesktopNotificationModule["default"].subTitleMargin : '')
160
+ }, subTitle), info && /*#__PURE__*/_react["default"].createElement("div", null, info), secondaryInfo && /*#__PURE__*/_react["default"].createElement("div", {
161
+ className: "".concat(info ? _DesktopNotificationModule["default"].secondaryInfo : '')
162
+ }, secondaryInfo))), getSectionContainer && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
163
+ flexible: true
164
+ }, getSectionContainer()), submitText || cancelText ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement("div", {
165
+ className: _DesktopNotificationModule["default"].footer
166
+ }, isMore ? /*#__PURE__*/_react["default"].createElement("div", {
167
+ className: "".concat(_DesktopNotificationModule["default"].message)
168
+ }, message) : null, /*#__PURE__*/_react["default"].createElement(_FormAction["default"], {
169
+ size: "small",
170
+ paddingLeftSize: "xmedium"
171
+ }, submitText ? /*#__PURE__*/_react["default"].createElement("div", {
172
+ onClick: onClickSubmit,
173
+ "data-id": "".concat(dataId, "_submitButton"),
174
+ "data-test-id": "".concat(dataId, "_submitButton")
175
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
176
+ align: "vertical",
177
+ alignBox: "row"
178
+ }, getSubmitContainer ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
179
+ flexible: true
180
+ }, getSubmitContainer()) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
181
+ flexible: true
182
+ }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
183
+ text: submitText,
184
+ palette: submitType ? submitType : buttonPalette
185
+ })))) : null, cancelText ? /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
186
+ text: cancelText,
187
+ palette: "secondary",
188
+ dataId: "".concat(dataId, "_cancelButton"),
189
+ onClick: onClickCancel
190
+ })) : null))) : null)), getBottomContainer ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, getBottomContainer()) : null);
191
+ }));
173
192
  }
174
193
 
175
194
  DesktopNotificationUI.propTypes = _propTypes.DesktopNotificationUI_propTypes;
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
+
8
+ var _Config = require("../../../../Provider/Config");
9
+
7
10
  var _default = {
8
11
  isMore: false,
9
12
  isAnimate: true,
@@ -17,6 +20,7 @@ var _default = {
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["default"] = _default;
@@ -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 = {
@@ -17,6 +17,10 @@ var _AlertClose = _interopRequireDefault(require("../../alert/AlertClose/AlertCl
17
17
 
18
18
  var _AlertIcons = _interopRequireDefault(require("../../alert/alertIcons/AlertIcons"));
19
19
 
20
+ var _CustomResponsive = require("@zohodesk/components/lib/Responsive/CustomResponsive");
21
+
22
+ var _Typography = _interopRequireDefault(require("@zohodesk/components/es/v1/Typography/Typography"));
23
+
20
24
  var _DesktopNotificationHeaderModule = _interopRequireDefault(require("../../../version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css"));
21
25
 
22
26
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -31,35 +35,65 @@ function DesktopNotificationHeader(props) {
31
35
  needIcon = props.needIcon,
32
36
  title = props.title,
33
37
  renderAlertIcon = props.renderAlertIcon,
34
- needClose = props.needClose;
38
+ needClose = props.needClose,
39
+ responsiveId = props.responsiveId;
40
+
41
+ function responsiveFunc(_ref) {
42
+ var mediaQueryOR = _ref.mediaQueryOR;
43
+ return {
44
+ uptoTablet: mediaQueryOR([{
45
+ maxWidth: 760
46
+ }])
47
+ };
48
+ }
49
+
35
50
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
36
51
  align: "vertical",
37
52
  alignBox: "row",
38
53
  className: "".concat(_DesktopNotificationHeaderModule["default"].container, " ").concat(_DesktopNotificationHeaderModule["default"][variant], " ").concat(_DesktopNotificationHeaderModule["default"][type]),
39
54
  isCover: false,
40
55
  wrap: "wrap"
41
- }, needIcon ? /*#__PURE__*/_react["default"].createElement("div", {
42
- className: _DesktopNotificationHeaderModule["default"].iconContainer
43
- }, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/_react["default"].createElement(_AlertIcons["default"], {
44
- type: type
45
- })) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
46
- flexible: true
47
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
48
- alignBox: "row",
49
- align: "center"
50
- }, variant === 'primary' ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
51
- className: _DesktopNotificationHeaderModule["default"].title,
52
- shrink: true
53
- }, title) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
54
- className: "".concat(_DesktopNotificationHeaderModule["default"].infoText)
55
- }, title))), needClose ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
56
- className: _DesktopNotificationHeaderModule["default"].close
57
- }, /*#__PURE__*/_react["default"].createElement(_AlertClose["default"], {
58
- onClose: onClose,
59
- dataTitle: closeTitle,
60
- dataId: dataId,
61
- type: "light"
62
- })) : null);
56
+ }, /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
57
+ query: responsiveFunc,
58
+ responsiveId: responsiveId
59
+ }, function (_ref2) {
60
+ var uptoTablet = _ref2.uptoTablet;
61
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, needIcon ? /*#__PURE__*/_react["default"].createElement("div", {
62
+ className: _DesktopNotificationHeaderModule["default"].iconContainer
63
+ }, renderAlertIcon ? renderAlertIcon() : /*#__PURE__*/_react["default"].createElement(_AlertIcons["default"], {
64
+ type: type
65
+ })) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
66
+ flexible: true
67
+ }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
68
+ alignBox: "row",
69
+ align: "center"
70
+ }, variant === 'primary' ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
71
+ shrink: true
72
+ }, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
73
+ $i18n_dataTitle: title,
74
+ $ui_className: _DesktopNotificationHeaderModule["default"].title,
75
+ $ui_tagName: "h1",
76
+ $ui_size: uptoTablet ? '16' : '18',
77
+ $ui_lineHeight: "20",
78
+ $ui_weight: "bold",
79
+ $flag_reset: true,
80
+ $ui_wordBreak: "breakWord"
81
+ }, title)) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
82
+ className: "".concat(_DesktopNotificationHeaderModule["default"].infoText)
83
+ }, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
84
+ $i18n_dataTitle: title,
85
+ $ui_className: _DesktopNotificationHeaderModule["default"].title,
86
+ $ui_size: "14",
87
+ $ui_wordBreak: "breakWord"
88
+ }, title)))), needClose ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
89
+ className: _DesktopNotificationHeaderModule["default"].close
90
+ }, /*#__PURE__*/_react["default"].createElement(_AlertClose["default"], {
91
+ onClose: onClose,
92
+ dataTitle: closeTitle,
93
+ dataId: dataId,
94
+ type: "light"
95
+ })) : null);
96
+ }));
63
97
  }
64
98
 
65
99
  DesktopNotificationHeader.propTypes = _propTypes["default"];
@@ -4,9 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
+
8
+ var _Config = require("../../../../Provider/Config");
9
+
7
10
  var _default = {
8
11
  needIcon: true,
9
12
  variant: 'primary',
10
- needClose: true
13
+ needClose: true,
14
+ responsiveId: (0, _Config.getDotLibraryConfig)('desktopNotificationResponsiveId')
11
15
  };
12
16
  exports["default"] = _default;
@@ -18,6 +18,7 @@ var _default = {
18
18
  title: _propTypes["default"].string,
19
19
  renderAlertIcon: _propTypes["default"].func,
20
20
  type: _propTypes["default"].oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
21
- variant: _propTypes["default"].oneOf(['primary', 'secondary'])
21
+ variant: _propTypes["default"].oneOf(['primary', 'secondary']),
22
+ responsiveId: _propTypes["default"].string
22
23
  };
23
24
  exports["default"] = _default;
@@ -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';
@@ -99,7 +102,7 @@
99
102
  font-size: var(--zd_font_size14) ;
100
103
  font-family: var(--zd_semibold);
101
104
  composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
102
- line-height: 1.4286;
105
+ line-height: var(--zd_size20);
103
106
  }
104
107
 
105
108
  [dir=ltr] .text {
@@ -8,7 +8,7 @@
8
8
  font-family: var(--zd_bold);
9
9
  }
10
10
  .desc {
11
- line-height: 1.5714;
11
+ line-height: var(--zd_size22);
12
12
  }
13
13
  .large .errorState {
14
14
  width: var(--zd_size450) ;
@@ -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);
@@ -55,7 +56,7 @@
55
56
  .title {
56
57
  color: var(--zdt_alertlookupnew_text);
57
58
  font-size: var(--zd_font_size18) ;
58
- line-height: 1.2222;
59
+ line-height: var(--zd_size22);
59
60
  font-family: var(--zd_bold);
60
61
  composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
61
62
  vertical-align: middle;
@@ -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: 1.428;
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
  }