@zohodesk/dot 1.4.12 → 1.4.14

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 (229) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +13 -0
  3. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  4. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  5. package/coverage/ExternalLink/index.html +1 -1
  6. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  7. package/coverage/ExternalLink/props/index.html +1 -1
  8. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  9. package/coverage/IconButton/IconButton.js.html +1 -1
  10. package/coverage/IconButton/IconButton.module.css.html +2 -5
  11. package/coverage/IconButton/index.html +1 -1
  12. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  13. package/coverage/IconButton/props/index.html +1 -1
  14. package/coverage/IconButton/props/propTypes.js.html +1 -1
  15. package/coverage/Image/Image.js.html +1 -1
  16. package/coverage/Image/Image.module.css.html +1 -1
  17. package/coverage/Image/index.html +1 -1
  18. package/coverage/Image/props/defaultProps.js.html +1 -1
  19. package/coverage/Image/props/index.html +1 -1
  20. package/coverage/Image/props/propTypes.js.html +1 -1
  21. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  22. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  27. package/coverage/index.html +1 -1
  28. package/es/ActionButton/ActionButton.module.css +51 -4
  29. package/es/AlphabeticList/AlphabeticList.module.css +0 -2
  30. package/es/AttachmentViewer/AttachmentViewer.module.css +0 -2
  31. package/es/ChannelIcon/ChannelIcon.module.css +9 -4
  32. package/es/Drawer/Drawer.js +4 -5
  33. package/es/ExternalLink/ExternalLink.js +4 -5
  34. package/es/FlipCard/FlipCard.js +14 -12
  35. package/es/FormAction/FormAction.module.css +18 -1
  36. package/es/FreezeLayer/FreezeLayer.js +1 -1
  37. package/es/IconButton/IconButton.js +4 -5
  38. package/es/IconButton/IconButton.module.css +0 -1
  39. package/es/Link/Link.js +8 -10
  40. package/es/Message/Message.js +4 -5
  41. package/es/TagWithIcon/TagWithIcon.module.css +0 -3
  42. package/es/ToastMessage/ToastMessage.js +2 -4
  43. package/es/actions/AutoClose.js +2 -1
  44. package/es/alert/AlertLookup/AlertLookup.js +14 -12
  45. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  46. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  47. package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
  48. package/es/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  49. package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
  50. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  51. package/es/avatar/AvatarUser/AvatarUser.js +10 -9
  52. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  53. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +36 -24
  54. package/es/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  55. package/es/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  56. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  57. package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  58. package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
  59. package/es/form/fields/DateField/DateField.js +14 -14
  60. package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  61. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  62. package/es/form/fields/RadioField/RadioField.js +21 -15
  63. package/es/form/fields/SelectField/SelectField.js +14 -14
  64. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  65. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  66. package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
  67. package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
  68. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  69. package/es/form/fields/TextareaField/TextareaField.js +16 -13
  70. package/es/form/fields/TextareaField/props/propTypes.js +1 -0
  71. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  72. package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
  73. package/es/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  74. package/es/list/Comment/Comment.module.css +0 -1
  75. package/es/list/Dot/Dot.module.css +0 -1
  76. package/es/list/ListLayout/ListLayout.js +4 -5
  77. package/es/list/ListLayout/ListLayout.module.css +0 -6
  78. package/es/list/SecondaryText/AccountName.js +12 -12
  79. package/es/list/SecondaryText/ContactName.js +8 -9
  80. package/es/list/SecondaryText/Email.js +8 -8
  81. package/es/list/SecondaryText/PhoneNumber.js +8 -8
  82. package/es/list/SecondaryText/SecondaryText.js +4 -5
  83. package/es/list/SecondaryText/TicketId.js +7 -7
  84. package/es/list/Subject/Subject.js +7 -7
  85. package/es/list/Subject/Subject.module.css +8 -1
  86. package/es/list/Thread/Thread.module.css +0 -1
  87. package/es/list/status/StatusListItem/StatusListItem.js +5 -5
  88. package/es/lookup/Lookup/Lookup.js +7 -7
  89. package/es/lookup/Lookup/Lookup.module.css +4 -1
  90. package/es/lookup/Lookup/props/propTypes.js +3 -2
  91. package/es/lookup/header/Search/Search.js +5 -3
  92. package/es/lookup/header/TicketHeader/TicketHeader.js +88 -73
  93. package/es/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  94. package/es/lookup/header/TicketHeader/props/propTypes.js +2 -1
  95. package/es/v1/ActionButton/ActionButton.js +1 -1
  96. package/es/v1/AttachmentViewer/AttachmentViewer.js +2 -2
  97. package/es/v1/Drawer/Drawer.js +6 -7
  98. package/es/v1/ExternalLink/ExternalLink.js +4 -5
  99. package/es/v1/FlipCard/FlipCard.js +15 -13
  100. package/es/v1/FreezeLayer/FreezeLayer.js +2 -2
  101. package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
  102. package/es/v1/IconButton/IconButton.js +4 -5
  103. package/es/v1/Link/Link.js +8 -10
  104. package/es/v1/Loader/Loader.js +1 -1
  105. package/es/v1/Message/Message.js +4 -5
  106. package/es/v1/ToastMessage/ToastMessage.js +4 -6
  107. package/es/v1/actions/AutoClose.js +2 -1
  108. package/es/v1/alert/AlertLookup/AlertLookup.js +16 -16
  109. package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
  110. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
  111. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +5 -6
  112. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
  113. package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
  114. package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
  115. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  116. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +39 -27
  117. package/es/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  118. package/es/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  119. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  120. package/es/v1/form/fields/CurrencyField/CurrencyField.js +15 -13
  121. package/es/v1/form/fields/DateField/DateField.js +15 -15
  122. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +14 -13
  123. package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
  124. package/es/v1/form/fields/RadioField/RadioField.js +21 -16
  125. package/es/v1/form/fields/SelectField/SelectField.js +15 -15
  126. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +14 -11
  127. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  128. package/es/v1/form/fields/TextBoxField/TextBoxField.js +15 -15
  129. package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
  130. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  131. package/es/v1/form/fields/TextareaField/TextareaField.js +17 -14
  132. package/es/v1/form/fields/TextareaField/props/propTypes.js +1 -0
  133. package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
  134. package/es/v1/list/ListLayout/ListLayout.js +4 -5
  135. package/es/v1/list/SecondaryText/AccountName.js +12 -12
  136. package/es/v1/list/SecondaryText/ContactName.js +8 -9
  137. package/es/v1/list/SecondaryText/Email.js +8 -8
  138. package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
  139. package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
  140. package/es/v1/list/SecondaryText/TicketId.js +7 -7
  141. package/es/v1/list/Subject/Subject.js +7 -7
  142. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  143. package/es/v1/list/status/StatusListItem/StatusListItem.js +6 -6
  144. package/es/v1/lookup/Lookup/Lookup.js +7 -7
  145. package/es/v1/lookup/Lookup/props/propTypes.js +3 -2
  146. package/es/v1/lookup/header/Search/Search.js +5 -3
  147. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +30 -12
  148. package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  149. package/es/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  150. package/es/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  151. package/es/v1/notification/DesktopNotification/DesktopNotification.js +7 -8
  152. package/es/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
  153. package/es/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
  154. package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
  155. package/es/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  156. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  157. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  158. package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
  159. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  160. package/lib/ActionButton/ActionButton.module.css +51 -4
  161. package/lib/AlphabeticList/AlphabeticList.module.css +0 -2
  162. package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -2
  163. package/lib/ChannelIcon/ChannelIcon.module.css +9 -4
  164. package/lib/FormAction/FormAction.module.css +18 -1
  165. package/lib/FreezeLayer/FreezeLayer.js +1 -1
  166. package/lib/IconButton/IconButton.module.css +0 -1
  167. package/lib/TagWithIcon/TagWithIcon.module.css +0 -3
  168. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  169. package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +8 -0
  170. package/lib/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  171. package/lib/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  172. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  173. package/lib/form/fields/RadioField/RadioField.js +3 -0
  174. package/lib/form/fields/TextareaField/TextareaField.js +2 -0
  175. package/lib/form/fields/TextareaField/props/propTypes.js +1 -0
  176. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  177. package/lib/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  178. package/lib/list/Comment/Comment.module.css +0 -1
  179. package/lib/list/Dot/Dot.module.css +0 -1
  180. package/lib/list/ListLayout/ListLayout.module.css +0 -6
  181. package/lib/list/Subject/Subject.module.css +8 -1
  182. package/lib/list/Thread/Thread.module.css +0 -1
  183. package/lib/lookup/Lookup/Lookup.js +3 -2
  184. package/lib/lookup/Lookup/Lookup.module.css +4 -1
  185. package/lib/lookup/Lookup/props/propTypes.js +3 -2
  186. package/lib/lookup/header/TicketHeader/TicketHeader.js +93 -106
  187. package/lib/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  188. package/lib/lookup/header/TicketHeader/props/propTypes.js +2 -1
  189. package/lib/v1/ActionButton/ActionButton.js +1 -1
  190. package/lib/v1/AttachmentViewer/AttachmentViewer.js +2 -2
  191. package/lib/v1/Drawer/Drawer.js +2 -2
  192. package/lib/v1/FlipCard/FlipCard.js +1 -1
  193. package/lib/v1/FreezeLayer/FreezeLayer.js +2 -2
  194. package/lib/v1/Loader/Loader.js +1 -1
  195. package/lib/v1/ToastMessage/ToastMessage.js +2 -2
  196. package/lib/v1/alert/AlertLookup/AlertLookup.js +1 -1
  197. package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +1 -1
  198. package/lib/v1/dropdown/ToggleDropDown/ToggleDropDown.js +11 -3
  199. package/lib/v1/dropdown/ToggleDropDown/props/defaultProps.js +2 -0
  200. package/lib/v1/dropdown/ToggleDropDown/props/propTypes.js +4 -0
  201. package/lib/v1/form/fields/CurrencyField/CurrencyField.js +1 -1
  202. package/lib/v1/form/fields/DateField/DateField.js +1 -1
  203. package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +1 -1
  204. package/lib/v1/form/fields/RadioField/RadioField.js +3 -0
  205. package/lib/v1/form/fields/SelectField/SelectField.js +1 -1
  206. package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -1
  207. package/lib/v1/form/fields/TextBoxField/TextBoxField.js +1 -1
  208. package/lib/v1/form/fields/TextareaField/TextareaField.js +3 -1
  209. package/lib/v1/form/fields/TextareaField/props/propTypes.js +1 -0
  210. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
  211. package/lib/v1/list/status/StatusListItem/StatusListItem.js +1 -1
  212. package/lib/v1/lookup/Lookup/Lookup.js +3 -2
  213. package/lib/v1/lookup/Lookup/props/propTypes.js +3 -2
  214. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +37 -12
  215. package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  216. package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  217. package/lib/v1/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
  218. package/lib/v1/notification/DesktopNotification/DesktopNotification.js +1 -1
  219. package/lib/v1/notification/DesktopNotification/props/defaultProps.js +1 -1
  220. package/lib/v1/notification/DesktopNotificationHeader/props/defaultProps.js +1 -1
  221. package/lib/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  222. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  223. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  224. package/package.json +11 -11
  225. package/result.json +1 -1
  226. package/es/v1/Provider/Config.js +0 -20
  227. package/lib/v1/Provider/Config.js +0 -29
  228. /package/es/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
  229. /package/lib/{FreezeLayer → Hooks}/useFreezeLayer.js +0 -0
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /* eslint-disable react/forbid-component-props */
4
2
 
5
3
  /**** Libraries ****/
@@ -31,7 +29,7 @@ export default function PhoneNumber(props) {
31
29
  LinkProps = {},
32
30
  TextProps = {}
33
31
  } = customProps;
34
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
32
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
35
33
  href: href,
36
34
  title: title,
37
35
  urlData: urlData,
@@ -39,13 +37,15 @@ export default function PhoneNumber(props) {
39
37
  dataId: dataId,
40
38
  target: target,
41
39
  hasReload: hasReload,
42
- className: style.link
43
- }, LinkProps), /*#__PURE__*/React.createElement("div", {
40
+ className: style.link,
41
+ ...LinkProps
42
+ }, /*#__PURE__*/React.createElement("div", {
44
43
  className: `${style.phoneNumber} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
45
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
44
+ }, text)) : /*#__PURE__*/React.createElement("div", {
46
45
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
47
- "data-title": title
48
- }, TextProps), text));
46
+ "data-title": title,
47
+ ...TextProps
48
+ }, text));
49
49
  }
50
50
  PhoneNumber.propTypes = PhoneNumber_propTypes;
51
51
  PhoneNumber.defaultProps = PhoneNumber_defaultProps;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from 'react';
4
2
  import { SecondaryText_defaultProps } from './props/defaultProps';
5
3
  import { SecondaryText_propTypes } from './props/propTypes';
@@ -16,13 +14,14 @@ export default function SecondaryText(props) {
16
14
  let {
17
15
  SecondaryTextProps
18
16
  } = customProps;
19
- return /*#__PURE__*/React.createElement("div", _extends({
17
+ return /*#__PURE__*/React.createElement("div", {
20
18
  className: `${style.secondaryText} ${className ? className : ''}`,
21
19
  "data-title": dataTitle,
22
20
  "data-id": dataId,
23
21
  "data-test-id": dataId,
24
- onClick: onClick
25
- }, SecondaryTextProps), text);
22
+ onClick: onClick,
23
+ ...SecondaryTextProps
24
+ }, text);
26
25
  }
27
26
  SecondaryText.propTypes = SecondaryText_propTypes;
28
27
  SecondaryText.defaultProps = SecondaryText_defaultProps;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from 'react';
4
2
  import { TicketId_defaultProps } from './props/defaultProps';
5
3
  import { TicketId_propTypes } from './props/propTypes';
@@ -23,19 +21,21 @@ export default function TicketId(props) {
23
21
  LinkProps = {},
24
22
  TicketIdProps = {}
25
23
  } = customProps;
26
- return /*#__PURE__*/React.createElement("div", _extends({
24
+ return /*#__PURE__*/React.createElement("div", {
27
25
  className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
28
26
  "data-id": dataId,
29
27
  "data-test-id": dataId,
30
28
  "data-title": dataTitle,
31
- onClick: !isLink && onClick
32
- }, TicketIdProps), isLink ? /*#__PURE__*/React.createElement(Link, _extends({
29
+ onClick: !isLink && onClick,
30
+ ...TicketIdProps
31
+ }, isLink ? /*#__PURE__*/React.createElement(Link, {
33
32
  urlName: urlName,
34
33
  urlData: urlData,
35
34
  href: url,
36
35
  target: target,
37
- onClick: onClick
38
- }, LinkProps), text) : text);
36
+ onClick: onClick,
37
+ ...LinkProps
38
+ }, text) : text);
39
39
  }
40
40
  TicketId.propTypes = TicketId_propTypes;
41
41
  TicketId.defaultProps = TicketId_defaultProps;
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -26,7 +24,7 @@ const Subject = props => {
26
24
  LinkProps = {},
27
25
  TextProps = {}
28
26
  } = customProps;
29
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
27
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
30
28
  urlName: urlName,
31
29
  href: href,
32
30
  urlData: urlData,
@@ -34,13 +32,15 @@ const Subject = props => {
34
32
  className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
35
33
  dataId: dataId,
36
34
  title: text,
37
- target: target
38
- }, LinkProps), children ? children : text) : /*#__PURE__*/React.createElement("span", _extends({
35
+ target: target,
36
+ ...LinkProps
37
+ }, children ? children : text) : /*#__PURE__*/React.createElement("span", {
39
38
  className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
40
39
  "data-title": text,
41
40
  "data-id": dataId,
42
- "data-test-id": dataId
43
- }, TextProps), text));
41
+ "data-test-id": dataId,
42
+ ...TextProps
43
+ }, text));
44
44
  };
45
45
 
46
46
  export default Subject;
@@ -15,8 +15,8 @@ import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptySt
15
15
  import StatusListItem from '../StatusListItem/StatusListItem';
16
16
  import commonStyle from '@zohodesk/components/es/common/common.module.css';
17
17
  import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
18
- import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
19
- import { useUniqueId } from '@zohodesk/components/es/v1/Provider/IdProvider';
18
+ import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
19
+ import { useUniqueId } from '@zohodesk/components/es/Provider/IdProvider';
20
20
  import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
21
21
  import style from '../../../../list/status/StatusDropdown/StatusDropdown.module.css';
22
22
 
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React, { useRef } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -8,7 +6,7 @@ import { Container, Box } from '@zohodesk/components/es/v1/Layout';
8
6
  /**** Components ****/
9
7
 
10
8
  import { Icon } from '@zohodesk/icons';
11
- import CssProvider from '@zohodesk/components/es/v1/Provider/CssProvider';
9
+ import CssProvider from '@zohodesk/components/es/Provider/CssProvider';
12
10
  /**** CSS ****/
13
11
 
14
12
  import style from '../../../../list/status/StatusListItem/StatusListItem.module.css';
@@ -66,7 +64,7 @@ export default function StatusListItem(props) {
66
64
  onMouseEnter && onMouseEnter(id, value, index, e);
67
65
  }
68
66
 
69
- return /*#__PURE__*/React.createElement(Container, _extends({
67
+ return /*#__PURE__*/React.createElement(Container, {
70
68
  role: role,
71
69
  "aria-selected": ariaSelected,
72
70
  isCover: false,
@@ -79,8 +77,10 @@ export default function StatusListItem(props) {
79
77
  eleRef: getReference,
80
78
  tagName: isLink ? 'a' : 'li',
81
79
  "data-title": isDisabled ? disableTitle : null,
82
- tabindex: isDisabled ? '-1' : '0'
83
- }, options, a11y), /*#__PURE__*/React.createElement(Box, {
80
+ tabindex: isDisabled ? '-1' : '0',
81
+ ...options,
82
+ ...a11y
83
+ }, /*#__PURE__*/React.createElement(Box, {
84
84
  className: `${style.statusType} ${style[bulletColor]}`
85
85
  }), /*#__PURE__*/React.createElement(Box, {
86
86
  flexible: true,
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /*** Libraries ***/
4
2
  import React, { useRef, useCallback, useEffect } from 'react';
5
3
  import { useEffectCallOnlyAfterState } from '@zohodesk/hooks';
@@ -31,7 +29,8 @@ export default function Lookup(props) {
31
29
  needFocusScope,
32
30
  customProps,
33
31
  onKeyDown,
34
- isMinHeight
32
+ isMinHeight,
33
+ lookupClass
35
34
  } = props;
36
35
  const {
37
36
  role = 'dialog',
@@ -67,7 +66,7 @@ export default function Lookup(props) {
67
66
  document.removeEventListener('keydown', handleKeyDown);
68
67
  };
69
68
  }, []);
70
- const content = /*#__PURE__*/React.createElement("div", _extends({
69
+ const content = /*#__PURE__*/React.createElement("div", {
71
70
  ref: createRef,
72
71
  tabIndex: "-1",
73
72
  "data-a11y-need-focus-style": "false",
@@ -77,10 +76,11 @@ export default function Lookup(props) {
77
76
  "aria-label": ariaLabel,
78
77
  "aria-modal": ariaModal,
79
78
  id: htmlId,
80
- className: `${style.box} ${style[`${size}Size`]}`,
79
+ className: `${style.box} ${style[`${size}Size`]} ${lookupClass ? lookupClass : ''}`,
81
80
  "data-id": dataId,
82
- "data-test-id": dataId
83
- }, a11yAttributes), /*#__PURE__*/React.createElement(Container, {
81
+ "data-test-id": dataId,
82
+ ...a11yAttributes
83
+ }, /*#__PURE__*/React.createElement(Container, {
84
84
  "data-drag-container": "true",
85
85
  isCover: false,
86
86
  className: isMinHeight ? `${style.wrapper}` : `${style.coverwrap}`
@@ -4,7 +4,7 @@ export const propTypes = {
4
4
  customClass: PropTypes.string,
5
5
  dataId: PropTypes.string,
6
6
  isActive: PropTypes.bool,
7
- size: PropTypes.oneOf(['small', 'xmedium', 'medium', 'large', 'full']),
7
+ size: PropTypes.oneOf(['small', 'xmedium', 'medium', 'large', 'xlarge', 'full']),
8
8
  htmlId: PropTypes.string,
9
9
  a11y: PropTypes.shape({
10
10
  role: PropTypes.string,
@@ -19,5 +19,6 @@ export const propTypes = {
19
19
  forwardRef: PropTypes.object,
20
20
  onClick: PropTypes.func,
21
21
  onClose: PropTypes.func,
22
- isMinHeight: PropTypes.bool
22
+ isMinHeight: PropTypes.bool,
23
+ lookupClass: PropTypes.string
23
24
  };
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /* eslint-disable react/forbid-component-props */
4
2
 
5
3
  /*** Libraries ***/
@@ -71,7 +69,11 @@ export default function Search(props) {
71
69
  selectedId: selectedId,
72
70
  onDropDownOpen: handleDropDownOpen,
73
71
  onDropDownClose: handleDropDownClose
74
- }, /*#__PURE__*/React.createElement(SearchUI, _extends({}, props, searchUIExtraProps))) : /*#__PURE__*/React.createElement(SearchUI, _extends({}, props, searchUIExtraProps));
72
+ }, /*#__PURE__*/React.createElement(SearchUI, { ...props,
73
+ ...searchUIExtraProps
74
+ })) : /*#__PURE__*/React.createElement(SearchUI, { ...props,
75
+ ...searchUIExtraProps
76
+ });
75
77
  }
76
78
  Search.propTypes = Search_propTypes;
77
79
 
@@ -1,5 +1,5 @@
1
1
  /*** Libraries ***/
2
- import React from 'react';
2
+ import React, { memo, useRef } from 'react';
3
3
  import { defaultProps } from './props/defaultProps';
4
4
  import { propTypes } from './props/propTypes';
5
5
  /*** Components ***/
@@ -9,6 +9,7 @@ import Close from '../Close/Close';
9
9
  import Search from '../Search/Search';
10
10
  import ViewDropDown from '../../../../lookup/header/ViewDropDown/ViewDropDown';
11
11
  import { Container, Box } from '@zohodesk/components/es/v1/Layout';
12
+ import useDragger from '../../../../Hooks/Dragger/useDragger';
12
13
  /*** CSS ***/
13
14
 
14
15
  import commonStyle from '../../../../lookup/header/lookupHeaderCommon.module.css';
@@ -16,7 +17,7 @@ import commonResponsive from '../../../../lookup/header/lookupHeaderCommonRespon
16
17
  import style from '../../../../lookup/header/TicketHeader/TicketHeader.module.css';
17
18
  /* eslint-disable react/forbid-component-props */
18
19
 
19
- export default function TicketHeader(props) {
20
+ function TicketHeader(props) {
20
21
  let {
21
22
  needSearch,
22
23
  onLookupClose,
@@ -32,23 +33,29 @@ export default function TicketHeader(props) {
32
33
  getSearchBoxRef,
33
34
  needViewsList,
34
35
  i18nKeys,
35
- palette
36
+ palette,
37
+ dragBoundaryLimit
36
38
  } = props;
37
39
  let {
38
40
  menuEmptyMessage = 'No matches found'
39
41
  } = i18nKeys;
42
+ const dragRef = useRef(null); //dragRef
43
+
44
+ useDragger({
45
+ isActive: true,
46
+ ChildRef: dragRef,
47
+ boundaryLimit: dragBoundaryLimit
48
+ }); //custom Hook
49
+
40
50
  return /*#__PURE__*/React.createElement(Container, {
41
51
  align: "vertical",
42
52
  alignBox: "row",
43
53
  className: `${commonStyle.container} ${commonStyle[`${palette}`]} ${commonResponsive.container} ${style.container}`,
44
54
  isCover: false,
45
- wrap: "wrap"
46
- }, /*#__PURE__*/React.createElement("div", {
47
- className: commonStyle.closeContainer
48
- }, /*#__PURE__*/React.createElement(Close, {
49
- onClose: onLookupClose,
50
- dataId: "close"
51
- })), /*#__PURE__*/React.createElement(Box, {
55
+ wrap: "wrap",
56
+ ref: dragRef,
57
+ "data-drag-hook": "true"
58
+ }, /*#__PURE__*/React.createElement(Box, {
52
59
  flexible: true
53
60
  }, /*#__PURE__*/React.createElement(Container, {
54
61
  alignBox: "column",
@@ -84,7 +91,18 @@ export default function TicketHeader(props) {
84
91
  dataId: "search",
85
92
  needOnTypeSearch: needOnTypeSearch,
86
93
  getRef: getSearchBoxRef
87
- })) : null);
94
+ })) : null, /*#__PURE__*/React.createElement("div", {
95
+ className: commonStyle.closeContainer
96
+ }, /*#__PURE__*/React.createElement(Close, {
97
+ onClose: onLookupClose,
98
+ dataId: "close"
99
+ })));
88
100
  }
101
+
89
102
  TicketHeader.propTypes = propTypes;
90
- TicketHeader.defaultProps = defaultProps;
103
+ TicketHeader.defaultProps = defaultProps;
104
+ const MemoizedTicketHeader = /*#__PURE__*/memo(TicketHeader);
105
+ MemoizedTicketHeader.propTypes = propTypes;
106
+ MemoizedTicketHeader.defaultProps = defaultProps;
107
+ MemoizedTicketHeader.displayName = 'TicketHeader';
108
+ export default MemoizedTicketHeader;
@@ -1,4 +1,10 @@
1
1
  export const defaultProps = {
2
2
  i18nKeys: {},
3
- palette: 'default'
3
+ palette: 'default',
4
+ dragBoundaryLimit: {
5
+ top: 0,
6
+ left: 50,
7
+ right: 50,
8
+ bottom: 50
9
+ }
4
10
  };
@@ -16,5 +16,6 @@ export const propTypes = {
16
16
  i18nKeys: PropTypes.shape({
17
17
  menuEmptyMessage: PropTypes.string
18
18
  }),
19
- palette: PropTypes.oneOf(['default', 'white'])
19
+ palette: PropTypes.oneOf(['default', 'white']),
20
+ dragBoundaryLimit: PropTypes.object
20
21
  };
@@ -10,7 +10,7 @@ import ListItem from '@zohodesk/components/es/v1/ListItem/ListItem';
10
10
  import DropDownSearch from '@zohodesk/components/es/v1/DropDown/DropDownSearch';
11
11
  import { Card, CardHeader, CardContent } from '@zohodesk/components/es/v1/Card';
12
12
  import ResponsiveDropBox from '@zohodesk/components/es/v1/ResponsiveDropBox/ResponsiveDropBox';
13
- import { ResponsiveReceiver } from '@zohodesk/components/es/v1/Responsive/CustomResponsive';
13
+ import { ResponsiveReceiver } from '@zohodesk/components/es/Responsive/CustomResponsive';
14
14
  /**** Icons ****/
15
15
 
16
16
  import { Icon } from '@zohodesk/icons';
@@ -1,10 +1,8 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from 'react';
4
2
  import defaultProps from './props/defaultProps';
5
3
  import { propTypes, DesktopNotificationUI_propTypes } from './props/propTypes';
6
4
  import { Container, Box } from '@zohodesk/components/es/v1/Layout';
7
- import { useZIndex } from '@zohodesk/components/es/v1/Provider/ZindexProvider';
5
+ import { useZIndex } from '@zohodesk/components/es/Provider/ZindexProvider';
8
6
  import AutoClose from '../../../actions/AutoClose';
9
7
  import Button from '@zohodesk/components/es/v1/Button/Button';
10
8
  import FormAction from '../../../FormAction/FormAction';
@@ -117,14 +115,15 @@ export function DesktopNotificationUI(props) {
117
115
  let {
118
116
  uptoTablet
119
117
  } = _ref2;
120
- return /*#__PURE__*/React.createElement(Container, _extends({
118
+ return /*#__PURE__*/React.createElement(Container, {
121
119
  className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass}
122
120
  ${isShrinkView ? style.globalNotify : ''} ${containerClass}
123
121
  ${uptoTablet ? style.tapWidth : style[`${size}`]}`,
124
122
  isCover: false,
125
123
  dataId: dataId,
126
- isInline: uiVariantTwo
127
- }, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
124
+ isInline: uiVariantTwo,
125
+ ...ExtraProps
126
+ }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
128
127
  type: type,
129
128
  title: title,
130
129
  variant: titleVariant,
@@ -178,9 +177,9 @@ export function DesktopNotificationUI(props) {
178
177
  DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
179
178
  DesktopNotificationUI.propTypes = defaultProps;
180
179
  export default function DesktopNotification(props) {
181
- return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
180
+ return /*#__PURE__*/React.createElement(AutoClose, { ...props,
182
181
  Element: DesktopNotificationUI
183
- }));
182
+ });
184
183
  }
185
184
  DesktopNotification.propTypes = propTypes;
186
185
  DesktopNotification.defaultProps = defaultProps; // if (__DOCS__) {
@@ -1,4 +1,4 @@
1
- import { getDotLibraryConfig } from '../../../Provider/Config';
1
+ import { getDotLibraryConfig } from '../../../../Provider/Config';
2
2
  export default {
3
3
  isMore: false,
4
4
  isAnimate: true,
@@ -1,4 +1,4 @@
1
- import { getDotLibraryConfig } from '../../../Provider/Config';
1
+ import { getDotLibraryConfig } from '../../../../Provider/Config';
2
2
  export default {
3
3
  needIcon: true,
4
4
  variant: 'primary',
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes, UI_propTypes, new_propTypes } from './props/propTypes';
@@ -121,7 +119,7 @@ export function GlobalNotificationUI(props) {
121
119
  let {
122
120
  ExtraProps = {}
123
121
  } = customProps;
124
- return /*#__PURE__*/React.createElement("div", _extends({
122
+ return /*#__PURE__*/React.createElement("div", {
125
123
  ref: eleRef,
126
124
  className: ` ${style.message}
127
125
  ${needShadow && shadowCount >= 2 ? shadowCount > 2 ? `${style.stackShadowTwo} ${style.stackShadowOne}` : style.stackShadowOne : ''}
@@ -130,8 +128,9 @@ export function GlobalNotificationUI(props) {
130
128
  "data-id": `show_${type}_message`,
131
129
  "data-test-id": `show_${type}_message`,
132
130
  tabIndex: 0,
133
- "data-selector-id": dataSelectorId
134
- }, ExtraProps), /*#__PURE__*/React.createElement(Container, {
131
+ "data-selector-id": dataSelectorId,
132
+ ...ExtraProps
133
+ }, /*#__PURE__*/React.createElement(Container, {
135
134
  className: `${style.container}`,
136
135
  alignBox: "row",
137
136
  isCover: false,
@@ -163,8 +162,8 @@ export function GlobalNotificationUI(props) {
163
162
  }
164
163
  GlobalNotificationUI.propTypes = UI_propTypes;
165
164
  export function GlobalNotificationNew(props) {
166
- return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
165
+ return /*#__PURE__*/React.createElement(AutoClose, { ...props,
167
166
  Element: GlobalNotificationUI
168
- }));
167
+ });
169
168
  }
170
169
  GlobalNotificationNew.propTypes = new_propTypes;
@@ -29,7 +29,6 @@
29
29
  .stackShadowTwo::before {
30
30
  content: '';
31
31
  position: absolute;
32
- /* css:theme-validation:ignore */
33
32
  height: var(--zd_size20) ;
34
33
  }
35
34
 
@@ -78,9 +77,6 @@
78
77
  .container {
79
78
  position: relative;
80
79
  pointer-events: initial;
81
- /* css:theme-validation:ignore */
82
- /* css:theme-validation:ignore */
83
- /* css:theme-validation:ignore */
84
80
  color: var(--globalnotification_text_color);
85
81
  z-index: 1;
86
82
  composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
@@ -4,7 +4,6 @@
4
4
  .container {
5
5
  composes: varClass;
6
6
  position: relative;
7
- /* css:theme-validation:ignore */
8
7
  background-color: var(--zdt_alertlookup_bg);
9
8
  border-style: solid;
10
9
  border-color: var(--commonalert_border_color);
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  /**** Libraries ****/
4
2
  import React, { Component } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -123,7 +121,7 @@ export default class AlertLookup extends Component {
123
121
  ariaLabelledby: a11y && a11y.ariaLabelledby ? a11y.ariaLabelledby : ariaTitleId,
124
122
  ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
125
123
  };
126
- return /*#__PURE__*/React.createElement(Lookup, _extends({
124
+ return /*#__PURE__*/React.createElement(Lookup, {
127
125
  onClose: onEsc == 'close' ? onClose : onCancelClick,
128
126
  needFocusScope: true,
129
127
  isActive: isActive,
@@ -133,8 +131,9 @@ export default class AlertLookup extends Component {
133
131
  onClick: onLookupClick,
134
132
  customClass: containerClass,
135
133
  a11y: a11y,
136
- childAnimationName: childAnimationName
137
- }, LookupProps), /*#__PURE__*/React.createElement(Container, {
134
+ childAnimationName: childAnimationName,
135
+ ...LookupProps
136
+ }, /*#__PURE__*/React.createElement(Container, {
138
137
  alignBox: "row",
139
138
  align: align,
140
139
  wrap: "wrap"
@@ -143,14 +142,15 @@ export default class AlertLookup extends Component {
143
142
  className: style.section
144
143
  }, /*#__PURE__*/React.createElement(Container, {
145
144
  alignBox: "column"
146
- }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, _extends({
145
+ }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(AlertHeader, {
147
146
  htmlId: ariaTitleId,
148
147
  title: title,
149
148
  type: type,
150
149
  needIcon: needIcon,
151
150
  onClose: onClose,
152
- breakChildren: wrapHeader
153
- }, AlertHeaderProps), headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
151
+ breakChildren: wrapHeader,
152
+ ...AlertHeaderProps
153
+ }, headerChildren ? headerChildren() : null)), /*#__PURE__*/React.createElement(Box, {
154
154
  flexible: true
155
155
  }, /*#__PURE__*/React.createElement("div", {
156
156
  className: `${style.innerSection} ${style[`${scroll}Scroll`] ? style[`${scroll}Scroll`] : ''} ${sectionClass}`
@@ -169,30 +169,30 @@ export default class AlertLookup extends Component {
169
169
  }, /*#__PURE__*/React.createElement(FormAction, {
170
170
  size: "small",
171
171
  paddingLeftSize: "xmedium"
172
- }, /*#__PURE__*/React.createElement(Button, _extends({
172
+ }, /*#__PURE__*/React.createElement(Button, {
173
173
  text: submitText,
174
174
  dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : `${dataId}_confirmButton`,
175
175
  onClick: onSubmitClick,
176
176
  palette: buttonPalette,
177
177
  customProps: {
178
178
  'data-a11y-autofocus': isDefaultFocus
179
- }
180
- }, PrimaryButtonProps, {
179
+ },
180
+ ...PrimaryButtonProps,
181
181
  a11y: {
182
182
  'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaLeaveButtonId
183
183
  },
184
184
  id: ariaLeaveButtonId
185
- })), cancelText && /*#__PURE__*/React.createElement(Button, _extends({
185
+ }), cancelText && /*#__PURE__*/React.createElement(Button, {
186
186
  dataId: dataId === 'alertPopup' ? 'alertCancelButton' : `${dataId}_cancelButton`,
187
187
  text: cancelText,
188
188
  onClick: onCancelClick,
189
- palette: "secondary"
190
- }, SecondaryButtonProps, {
189
+ palette: "secondary",
190
+ ...SecondaryButtonProps,
191
191
  a11y: {
192
192
  'aria-labelledby': ariaTitleId + ' ' + ariaMessageId + ' ' + ariaStayButtonId
193
193
  },
194
194
  id: ariaStayButtonId
195
- }))))) : null))));
195
+ })))) : null))));
196
196
  }
197
197
 
198
198
  }
@@ -1,5 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
1
  import React, { useState } from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes, DesktopNotificationUI_propTypes } from './props/propTypes';
@@ -116,13 +114,14 @@ export function DesktopNotificationUI(props) {
116
114
  let {
117
115
  uptoTablet
118
116
  } = _ref2;
119
- return /*#__PURE__*/React.createElement(Container, _extends({
117
+ return /*#__PURE__*/React.createElement(Container, {
120
118
  className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass}
121
119
  ${isShrinkView ? style.globalNotify : ''} ${containerClass} ${uptoTablet ? style.tapWidth : style[`${size}`]}`,
122
120
  isCover: false,
123
121
  dataId: dataId,
124
- isInline: uiVariantTwo
125
- }, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
122
+ isInline: uiVariantTwo,
123
+ ...ExtraProps
124
+ }, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
126
125
  type: type,
127
126
  title: title,
128
127
  variant: titleVariant,
@@ -175,9 +174,9 @@ export function DesktopNotificationUI(props) {
175
174
  }
176
175
  DesktopNotificationUI.propTypes = DesktopNotificationUI_propTypes;
177
176
  export default function DesktopNotification(props) {
178
- return /*#__PURE__*/React.createElement(AutoClose, _extends({}, props, {
177
+ return /*#__PURE__*/React.createElement(AutoClose, { ...props,
179
178
  Element: DesktopNotificationUI
180
- }));
179
+ });
181
180
  }
182
181
  DesktopNotification.propTypes = propTypes;
183
182
  DesktopNotification.defaultProps = defaultProps; // if (__DOCS__) {
@@ -5,8 +5,6 @@
5
5
  composes: varClass;
6
6
  min-height: var(--zd_size54) ;
7
7
  position: relative;
8
- /* css:theme-validation:ignore */
9
- /* css:theme-validation:ignore */
10
8
  color: var(--zdt_desktopnotification_text);
11
9
  background-color: var(--alert_lookup_bg_color);
12
10
  border-style: solid;