@zohodesk/dot 1.4.13 → 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 (176) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +6 -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/IconButton/IconButton.js +4 -5
  37. package/es/IconButton/IconButton.module.css +0 -1
  38. package/es/Link/Link.js +8 -10
  39. package/es/Message/Message.js +4 -5
  40. package/es/TagWithIcon/TagWithIcon.module.css +0 -3
  41. package/es/ToastMessage/ToastMessage.js +2 -4
  42. package/es/actions/AutoClose.js +2 -1
  43. package/es/alert/AlertLookup/AlertLookup.js +14 -12
  44. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  45. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  46. package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
  47. package/es/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  48. package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
  49. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  50. package/es/avatar/AvatarUser/AvatarUser.js +10 -9
  51. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  52. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
  53. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  54. package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  55. package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
  56. package/es/form/fields/DateField/DateField.js +14 -14
  57. package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  58. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  59. package/es/form/fields/RadioField/RadioField.js +18 -15
  60. package/es/form/fields/SelectField/SelectField.js +14 -14
  61. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  62. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  63. package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
  64. package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
  65. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  66. package/es/form/fields/TextareaField/TextareaField.js +14 -13
  67. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  68. package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
  69. package/es/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  70. package/es/list/Comment/Comment.module.css +0 -1
  71. package/es/list/Dot/Dot.module.css +0 -1
  72. package/es/list/ListLayout/ListLayout.js +4 -5
  73. package/es/list/ListLayout/ListLayout.module.css +0 -6
  74. package/es/list/SecondaryText/AccountName.js +12 -12
  75. package/es/list/SecondaryText/ContactName.js +8 -9
  76. package/es/list/SecondaryText/Email.js +8 -8
  77. package/es/list/SecondaryText/PhoneNumber.js +8 -8
  78. package/es/list/SecondaryText/SecondaryText.js +4 -5
  79. package/es/list/SecondaryText/TicketId.js +7 -7
  80. package/es/list/Subject/Subject.js +7 -7
  81. package/es/list/Subject/Subject.module.css +8 -1
  82. package/es/list/Thread/Thread.module.css +0 -1
  83. package/es/list/status/StatusListItem/StatusListItem.js +5 -5
  84. package/es/lookup/Lookup/Lookup.js +7 -7
  85. package/es/lookup/Lookup/Lookup.module.css +4 -1
  86. package/es/lookup/Lookup/props/propTypes.js +3 -2
  87. package/es/lookup/header/Search/Search.js +5 -3
  88. package/es/lookup/header/TicketHeader/TicketHeader.js +88 -73
  89. package/es/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  90. package/es/lookup/header/TicketHeader/props/propTypes.js +2 -1
  91. package/es/v1/Drawer/Drawer.js +4 -5
  92. package/es/v1/ExternalLink/ExternalLink.js +4 -5
  93. package/es/v1/FlipCard/FlipCard.js +14 -12
  94. package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
  95. package/es/v1/IconButton/IconButton.js +4 -5
  96. package/es/v1/Link/Link.js +8 -10
  97. package/es/v1/Message/Message.js +4 -5
  98. package/es/v1/ToastMessage/ToastMessage.js +2 -4
  99. package/es/v1/actions/AutoClose.js +2 -1
  100. package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
  101. package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
  102. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
  103. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +4 -5
  104. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
  105. package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
  106. package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
  107. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  108. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
  109. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  110. package/es/v1/form/fields/CurrencyField/CurrencyField.js +14 -12
  111. package/es/v1/form/fields/DateField/DateField.js +14 -14
  112. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  113. package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
  114. package/es/v1/form/fields/RadioField/RadioField.js +18 -16
  115. package/es/v1/form/fields/SelectField/SelectField.js +14 -14
  116. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  117. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  118. package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
  119. package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
  120. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  121. package/es/v1/form/fields/TextareaField/TextareaField.js +14 -13
  122. package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
  123. package/es/v1/list/ListLayout/ListLayout.js +4 -5
  124. package/es/v1/list/SecondaryText/AccountName.js +12 -12
  125. package/es/v1/list/SecondaryText/ContactName.js +8 -9
  126. package/es/v1/list/SecondaryText/Email.js +8 -8
  127. package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
  128. package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
  129. package/es/v1/list/SecondaryText/TicketId.js +7 -7
  130. package/es/v1/list/Subject/Subject.js +7 -7
  131. package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
  132. package/es/v1/lookup/Lookup/Lookup.js +7 -7
  133. package/es/v1/lookup/Lookup/props/propTypes.js +3 -2
  134. package/es/v1/lookup/header/Search/Search.js +5 -3
  135. package/es/v1/lookup/header/TicketHeader/TicketHeader.js +30 -12
  136. package/es/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  137. package/es/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  138. package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -7
  139. package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
  140. package/es/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  141. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  142. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  143. package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
  144. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  145. package/lib/ActionButton/ActionButton.module.css +51 -4
  146. package/lib/AlphabeticList/AlphabeticList.module.css +0 -2
  147. package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -2
  148. package/lib/ChannelIcon/ChannelIcon.module.css +9 -4
  149. package/lib/FormAction/FormAction.module.css +18 -1
  150. package/lib/IconButton/IconButton.module.css +0 -1
  151. package/lib/TagWithIcon/TagWithIcon.module.css +0 -3
  152. package/lib/avatar/AvatarIcon/AvatarIcon.module.css +0 -6
  153. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +0 -4
  154. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +0 -1
  155. package/lib/layout/SubtabLayout/SubtabLayout.module.css +0 -2
  156. package/lib/list/Comment/Comment.module.css +0 -1
  157. package/lib/list/Dot/Dot.module.css +0 -1
  158. package/lib/list/ListLayout/ListLayout.module.css +0 -6
  159. package/lib/list/Subject/Subject.module.css +8 -1
  160. package/lib/list/Thread/Thread.module.css +0 -1
  161. package/lib/lookup/Lookup/Lookup.js +3 -2
  162. package/lib/lookup/Lookup/Lookup.module.css +4 -1
  163. package/lib/lookup/Lookup/props/propTypes.js +3 -2
  164. package/lib/lookup/header/TicketHeader/TicketHeader.js +93 -106
  165. package/lib/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  166. package/lib/lookup/header/TicketHeader/props/propTypes.js +2 -1
  167. package/lib/v1/lookup/Lookup/Lookup.js +3 -2
  168. package/lib/v1/lookup/Lookup/props/propTypes.js +3 -2
  169. package/lib/v1/lookup/header/TicketHeader/TicketHeader.js +37 -12
  170. package/lib/v1/lookup/header/TicketHeader/props/defaultProps.js +7 -1
  171. package/lib/v1/lookup/header/TicketHeader/props/propTypes.js +2 -1
  172. package/lib/version2/GlobalNotification/GlobalNotification.module.css +0 -4
  173. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +0 -1
  174. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +0 -2
  175. package/package.json +9 -9
  176. package/result.json +1 -1
@@ -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 } from './props/propTypes';
@@ -91,7 +89,7 @@ const TextEditorWrapper = props => {
91
89
  return /*#__PURE__*/React.createElement("div", {
92
90
  className: style.container,
93
91
  "data-selector-id": dataSelectorId
94
- }, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, _extends({
92
+ }, !isEditorShow ? /*#__PURE__*/React.createElement(Textarea, {
95
93
  onFocus: handleTextareaFocus,
96
94
  text: value,
97
95
  animated: !needEditor,
@@ -103,8 +101,9 @@ const TextEditorWrapper = props => {
103
101
  getRef: getRef,
104
102
  size: textBoxSize,
105
103
  variant: textBoxVariant,
106
- customClass: style.textBox
107
- }, Textarea1Props)) : null, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
104
+ customClass: style.textBox,
105
+ ...Textarea1Props
106
+ }) : null, /*#__PURE__*/React.createElement(VelocityAnimationGroup, {
108
107
  name: "slideDown",
109
108
  runOnMount: true,
110
109
  enterDuration: '300',
@@ -113,7 +112,7 @@ const TextEditorWrapper = props => {
113
112
  component: "div"
114
113
  }, /*#__PURE__*/React.createElement("div", {
115
114
  className: style.textEditor
116
- }, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor, _extends({
115
+ }, isEditorShow && needEditor ? /*#__PURE__*/React.createElement(TextEditor, {
117
116
  id: id,
118
117
  value: value,
119
118
  onChange: !isReadOnly && !isDisabled ? onChange : null,
@@ -141,8 +140,9 @@ const TextEditorWrapper = props => {
141
140
  setInlineAttachmentInProgress: setInlineAttachmentInProgress,
142
141
  handleDropUpload: handleEditorDropUpload,
143
142
  onFocus: focusCallback,
144
- needInlineAttachment: needInlineAttachment
145
- }, TextEditorProps)) : /*#__PURE__*/React.createElement(Textarea, _extends({
143
+ needInlineAttachment: needInlineAttachment,
144
+ ...TextEditorProps
145
+ }) : /*#__PURE__*/React.createElement(Textarea, {
146
146
  onFocus: handleTextareaFocus,
147
147
  text: value,
148
148
  animated: !needEditor,
@@ -153,8 +153,9 @@ const TextEditorWrapper = props => {
153
153
  needEffect: !(isReadOnly || isDisabled),
154
154
  getRef: getRef,
155
155
  size: textBoxSize,
156
- variant: textBoxVariant
157
- }, Textarea2Props)))));
156
+ variant: textBoxVariant,
157
+ ...Textarea2Props
158
+ }))));
158
159
  };
159
160
 
160
161
  export default TextEditorWrapper;
@@ -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, { memo } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -82,17 +80,18 @@ const TextareaField = props => {
82
80
  isLocked: isLocked,
83
81
  lockedInfoText: lockedInfoText,
84
82
  renderProps: renderLabelProps
85
- }, /*#__PURE__*/React.createElement(Label, _extends({
83
+ }, /*#__PURE__*/React.createElement(Label, {
86
84
  text: labelName,
87
85
  id: id,
88
86
  size: fieldSize === 'small' ? 'small' : 'medium',
89
87
  palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
90
88
  customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
91
89
  htmlFor: uniqueId,
92
- dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
93
- }, LabelProps))), /*#__PURE__*/React.createElement("div", {
90
+ dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`,
91
+ ...LabelProps
92
+ })), /*#__PURE__*/React.createElement("div", {
94
93
  className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
95
- }, /*#__PURE__*/React.createElement(Textarea, _extends({
94
+ }, /*#__PURE__*/React.createElement(Textarea, {
96
95
  onChange: handleChange,
97
96
  animated: animated,
98
97
  size: fieldSize === 'medium' ? textBoxSize : 'xmedium',
@@ -110,24 +109,26 @@ const TextareaField = props => {
110
109
  needEffect: isReadOnly || isDisabled ? false : true,
111
110
  resize: "vertical" // onKeyDown={onKeyDown}
112
111
  ,
113
- htmlId: uniqueId
114
- }, TextareaProps, {
112
+ htmlId: uniqueId,
113
+ ...TextareaProps,
115
114
  a11y: {
116
115
  ariaLabelledby: labelName
117
116
  }
118
- })), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
117
+ }), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
119
118
  text: validationMessage,
120
119
  palette: validationPalette,
121
120
  type: errorType,
122
121
  htmlFor: uniqueId,
123
- dataId: `${dataId}_ValidationMessage`
124
- }, ValidationMessageProps1)), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
122
+ dataId: `${dataId}_ValidationMessage`,
123
+ ...ValidationMessageProps1
124
+ }), validationRuleMessage && /*#__PURE__*/React.createElement(ValidationMessage, {
125
125
  text: validationRuleMessage,
126
126
  palette: validationRulePalette,
127
127
  type: errorType,
128
128
  htmlFor: uniqueId,
129
- dataId: `${dataId}_ValidationRuleMessage`
130
- }, ValidationMessageProps2))));
129
+ dataId: `${dataId}_ValidationRuleMessage`,
130
+ ...ValidationMessageProps2
131
+ })));
131
132
  };
132
133
 
133
134
  TextareaField.propTypes = propTypes;
@@ -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 { SubtabHeader_propTypes, SubtabFooter_propTypes, SubtabContent_propTypes, SubtabLayout_propTypes } from './props/propTypes';
5
3
  import { SubtabHeader_defaultProps, SubtabFooter_defaultProps, SubtabContent_defaultProps, SubtabLayout_defaultProps } from './props/defaultProps';
@@ -114,15 +112,15 @@ export default function SubtabLayout(props) {
114
112
  children,
115
113
  dataId
116
114
  } = props;
117
- return /*#__PURE__*/React.createElement(Card, _extends({
115
+ return /*#__PURE__*/React.createElement(Card, {
118
116
  isScrollAttribute: true,
119
- dataId: dataId
120
- }, props, {
117
+ dataId: dataId,
118
+ ...props,
121
119
  childTypes: {
122
120
  cardHeader: SubtabHeader,
123
121
  cardContent: SubtabContent
124
122
  }
125
- }), children);
123
+ }, children);
126
124
  }
127
125
  SubtabLayout.defaultProps = SubtabLayout_defaultProps;
128
126
  SubtabLayout.propTypes = SubtabLayout_propTypes;
@@ -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 { ListLayout_defaultProps } from './props/defaultProps';
5
3
  import { ListLayout_propTypes, Column_propTypes } from './props/propTypes';
@@ -57,9 +55,10 @@ export function Column(props) {
57
55
  children,
58
56
  className
59
57
  } = props;
60
- return /*#__PURE__*/React.createElement(Box, _extends({
61
- className: `${className ? className : ''}`
62
- }, props), children);
58
+ return /*#__PURE__*/React.createElement(Box, {
59
+ className: `${className ? className : ''}`,
60
+ ...props
61
+ }, children);
63
62
  }
64
63
  Column.propTypes = Column_propTypes; // if (__DOCS__) {
65
64
  // ListLayout.docs = {
@@ -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 ****/
@@ -52,26 +50,28 @@ export default function AccountName(props) {
52
50
  }, /*#__PURE__*/React.createElement(Box, {
53
51
  className: style.primaryAccountName,
54
52
  shrink: true
55
- }, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
53
+ }, isLink ? /*#__PURE__*/React.createElement(Link, {
56
54
  href: href,
57
55
  urlName: urlName,
58
56
  urlData: urlData,
59
57
  onClick: onClick,
60
58
  dataId: `${dataId}_link`,
61
- className: style.link
62
- }, LinkProps, {
59
+ className: style.link,
60
+ ...LinkProps,
63
61
  ariaLabel: `Account Name ${text}`
64
- }), /*#__PURE__*/React.createElement("div", {
62
+ }, /*#__PURE__*/React.createElement("div", {
65
63
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
66
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
67
- className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`
68
- }, TextProps), text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
64
+ }, text)) : /*#__PURE__*/React.createElement("div", {
65
+ className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
66
+ ...TextProps
67
+ }, text)), secondaryAccountText && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Link, {
69
68
  href: secondaryAccountHref,
70
69
  onClick: secondaryAccountClick,
71
70
  className: style.link
72
- }, /*#__PURE__*/React.createElement("div", _extends({
73
- className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
74
- }, SecondaryTextProps), secondaryAccountText))))));
71
+ }, /*#__PURE__*/React.createElement("div", {
72
+ className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
73
+ ...SecondaryTextProps
74
+ }, secondaryAccountText))))));
75
75
  }
76
76
  AccountName.propTypes = AccountName_propTypes;
77
77
  AccountName.defaultProps = AccountName_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 { ContactName_defaultProps } from './props/defaultProps';
5
3
  import { ContactName_propTypes } from './props/propTypes';
@@ -53,22 +51,23 @@ export default function ContactName(props) {
53
51
  iconClass: style.icon
54
52
  })), /*#__PURE__*/React.createElement(Box, {
55
53
  flexible: true
56
- }, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
54
+ }, isLink ? /*#__PURE__*/React.createElement(Link, {
57
55
  urlName: urlName,
58
56
  href: href,
59
57
  urlData: urlData,
60
58
  onClick: onClick,
61
59
  title: dataTitle,
62
60
  dataId: `${dataId}_link`,
63
- className: style.link
64
- }, LinkProps, {
61
+ className: style.link,
62
+ ...LinkProps,
65
63
  ariaLabel: `Contact Name ${text}`
66
- }), /*#__PURE__*/React.createElement("div", {
64
+ }, /*#__PURE__*/React.createElement("div", {
67
65
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
68
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
66
+ }, text)) : /*#__PURE__*/React.createElement("div", {
69
67
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''} ${notAccessible ? style.disable : ''}`,
70
- "data-title": dataTitle
71
- }, TextProps), text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
68
+ "data-title": dataTitle,
69
+ ...TextProps
70
+ }, text)), sentimentType && /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(SentimentStatus, {
72
71
  type: sentimentType,
73
72
  dataTitle: sentimentDataTitle
74
73
  })));
@@ -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 ****/
@@ -29,19 +27,21 @@ export default function Email(props) {
29
27
  LinkProps = {},
30
28
  TextProps = {}
31
29
  } = customProps;
32
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
30
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
33
31
  href: href,
34
32
  title: title,
35
33
  urlData: urlData,
36
34
  urlName: urlName,
37
35
  target: target,
38
- className: style.link
39
- }, LinkProps), /*#__PURE__*/React.createElement("div", {
36
+ className: style.link,
37
+ ...LinkProps
38
+ }, /*#__PURE__*/React.createElement("div", {
40
39
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
41
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
40
+ }, text)) : /*#__PURE__*/React.createElement("div", {
42
41
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
43
- "data-title": title
44
- }, TextProps), text));
42
+ "data-title": title,
43
+ ...TextProps
44
+ }, text));
45
45
  }
46
46
  Email.propTypes = Email_propTypes;
47
47
  Email.defaultProps = Email_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
  /* 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;
@@ -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';
@@ -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
  };