@zohodesk/dot 1.0.0-temp-184.2 → 1.0.0-temp-185

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 (170) hide show
  1. package/.cli/PropUnificationExcludeFilesArray.js +344 -344
  2. package/.cli/PropValidationExcludeFilesArray.js +8 -8
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +8 -0
  5. package/coverage/ExternalLink/ExternalLink.js.html +1 -1
  6. package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
  7. package/coverage/ExternalLink/index.html +1 -1
  8. package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
  9. package/coverage/ExternalLink/props/index.html +1 -1
  10. package/coverage/ExternalLink/props/propTypes.js.html +1 -1
  11. package/coverage/IconButton/IconButton.js.html +1 -1
  12. package/coverage/IconButton/IconButton.module.css.html +1 -1
  13. package/coverage/IconButton/index.html +1 -1
  14. package/coverage/IconButton/props/defaultProps.js.html +1 -1
  15. package/coverage/IconButton/props/index.html +1 -1
  16. package/coverage/IconButton/props/propTypes.js.html +1 -1
  17. package/coverage/Image/Image.js.html +1 -1
  18. package/coverage/Image/Image.module.css.html +1 -1
  19. package/coverage/Image/index.html +1 -1
  20. package/coverage/Image/props/defaultProps.js.html +1 -1
  21. package/coverage/Image/props/index.html +1 -1
  22. package/coverage/Image/props/propTypes.js.html +1 -1
  23. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
  24. package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
  25. package/coverage/avatar/AvatarWithTeam/index.html +1 -1
  26. package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
  27. package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
  28. package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
  29. package/coverage/coverage-final.json +16 -16
  30. package/coverage/coverage-summary.json +16 -16
  31. package/coverage/index.html +1 -1
  32. package/css_error.log +1 -1
  33. package/es/AttachmentViewer/AttachmentViewer.module.css +1 -1
  34. package/es/Drawer/Drawer.js +4 -5
  35. package/es/Drawer/Drawer.module.css +2 -2
  36. package/es/ExternalLink/ExternalLink.js +4 -5
  37. package/es/FlipCard/FlipCard.js +14 -12
  38. package/es/IconButton/IconButton.js +4 -5
  39. package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -316
  40. package/es/Link/Link.js +8 -10
  41. package/es/Message/Message.js +4 -5
  42. package/es/Message/Message.module.css +1 -1
  43. package/es/PlusIcon/PlusIcon.module.css +1 -1
  44. package/es/ToastMessage/ToastMessage.js +2 -4
  45. package/es/ToastMessage/ToastMessage.module.css +1 -1
  46. package/es/actions/AutoClose.js +2 -1
  47. package/es/alert/AlertLookup/AlertLookup.js +14 -12
  48. package/es/avatar/AvatarClose/AvatarClose.js +7 -7
  49. package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
  50. package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
  51. package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
  52. package/es/avatar/AvatarThread/AvatarThread.js +7 -7
  53. package/es/avatar/AvatarUser/AvatarUser.js +10 -9
  54. package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  55. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
  56. package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  57. package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
  58. package/es/form/fields/DateField/DateField.js +14 -14
  59. package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  60. package/es/form/fields/PhoneField/PhoneField.js +7 -7
  61. package/es/form/fields/RadioField/RadioField.js +18 -15
  62. package/es/form/fields/SelectField/SelectField.js +14 -14
  63. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  64. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  65. package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
  66. package/es/form/fields/TextEditor/TextEditor.module.css +49 -63
  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 +14 -13
  70. package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
  71. package/es/layout/SubtabLayout/SubtabLayout.module.css +1 -1
  72. package/es/list/DotNew/DotNew.module.css +2 -1
  73. package/es/list/ListLayout/ListLayout.js +4 -5
  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/TagNew/TagNew.module.css +1 -1
  82. package/es/list/status/StatusDropdown/StatusDropdown.js +30 -115
  83. package/es/list/status/StatusDropdown/StatusDropdown.module.css +1 -10
  84. package/es/list/status/StatusDropdown/props/defaultProps.js +2 -1
  85. package/es/list/status/StatusDropdown/props/propTypes.js +1 -1
  86. package/es/list/status/StatusListItem/StatusListItem.js +5 -5
  87. package/es/lookup/Lookup/Lookup.js +4 -5
  88. package/es/lookup/Section/LookupSection.module.css +1 -1
  89. package/es/lookup/header/Search/Search.js +5 -3
  90. package/es/v1/Drawer/Drawer.js +4 -5
  91. package/es/v1/ExternalLink/ExternalLink.js +4 -5
  92. package/es/v1/FlipCard/FlipCard.js +14 -12
  93. package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
  94. package/es/v1/IconButton/IconButton.js +4 -5
  95. package/es/v1/Link/Link.js +8 -10
  96. package/es/v1/Message/Message.js +4 -5
  97. package/es/v1/ToastMessage/ToastMessage.js +2 -4
  98. package/es/v1/actions/AutoClose.js +2 -1
  99. package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
  100. package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
  101. package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
  102. package/es/v1/avatar/AvatarIcon/AvatarIcon.js +4 -5
  103. package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
  104. package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
  105. package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
  106. package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
  107. package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
  108. package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
  109. package/es/v1/form/fields/CurrencyField/CurrencyField.js +14 -12
  110. package/es/v1/form/fields/DateField/DateField.js +14 -14
  111. package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +13 -12
  112. package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
  113. package/es/v1/form/fields/RadioField/RadioField.js +18 -16
  114. package/es/v1/form/fields/SelectField/SelectField.js +14 -14
  115. package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
  116. package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
  117. package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
  118. package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
  119. package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
  120. package/es/v1/form/fields/TextareaField/TextareaField.js +14 -13
  121. package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
  122. package/es/v1/list/ListLayout/ListLayout.js +4 -5
  123. package/es/v1/list/SecondaryText/AccountName.js +12 -12
  124. package/es/v1/list/SecondaryText/ContactName.js +8 -9
  125. package/es/v1/list/SecondaryText/Email.js +8 -8
  126. package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
  127. package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
  128. package/es/v1/list/SecondaryText/TicketId.js +7 -7
  129. package/es/v1/list/Subject/Subject.js +7 -7
  130. package/es/v1/list/status/StatusDropdown/StatusDropdown.js +32 -106
  131. package/es/v1/list/status/StatusDropdown/props/defaultProps.js +2 -1
  132. package/es/v1/list/status/StatusDropdown/props/propTypes.js +1 -1
  133. package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
  134. package/es/v1/lookup/Lookup/Lookup.js +4 -5
  135. package/es/v1/lookup/header/Search/Search.js +5 -3
  136. package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -7
  137. package/es/v1/svg/PlusIcon.js +1 -1
  138. package/es/v1/svg/SnippetIcon.js +2 -2
  139. package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
  140. package/es/version2/GlobalNotification/GlobalNotification.module.css +2 -2
  141. package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
  142. package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
  143. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -3
  144. package/lib/AttachmentViewer/AttachmentViewer.module.css +1 -1
  145. package/lib/Drawer/Drawer.module.css +2 -2
  146. package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -316
  147. package/lib/Message/Message.module.css +1 -1
  148. package/lib/PlusIcon/PlusIcon.module.css +1 -1
  149. package/lib/ToastMessage/ToastMessage.module.css +1 -1
  150. package/lib/form/fields/TextEditor/TextEditor.module.css +49 -63
  151. package/lib/layout/SubtabLayout/SubtabLayout.module.css +1 -1
  152. package/lib/list/DotNew/DotNew.module.css +2 -1
  153. package/lib/list/TagNew/TagNew.module.css +1 -1
  154. package/lib/list/status/StatusDropdown/StatusDropdown.js +77 -161
  155. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +1 -10
  156. package/lib/list/status/StatusDropdown/props/defaultProps.js +2 -1
  157. package/lib/list/status/StatusDropdown/props/propTypes.js +1 -1
  158. package/lib/lookup/Section/LookupSection.module.css +1 -1
  159. package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +31 -103
  160. package/lib/v1/list/status/StatusDropdown/props/defaultProps.js +2 -1
  161. package/lib/v1/list/status/StatusDropdown/props/propTypes.js +1 -1
  162. package/lib/v1/svg/PlusIcon.js +1 -1
  163. package/lib/v1/svg/SnippetIcon.js +2 -2
  164. package/lib/version2/GlobalNotification/GlobalNotification.module.css +2 -2
  165. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +4 -3
  166. package/package.json +11 -7
  167. package/propValidationArg.json +11 -11
  168. package/result.json +1 -1
  169. /package/es/{common → deprecated}/dot_boxShadow.module.css +0 -0
  170. /package/lib/{common → deprecated}/dot_boxShadow.module.css +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 ****/
@@ -30,19 +28,21 @@ export default class Email extends Component {
30
28
  LinkProps = {},
31
29
  TextProps = {}
32
30
  } = customProps;
33
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
31
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
34
32
  href: href,
35
33
  title: title,
36
34
  urlData: urlData,
37
35
  urlName: urlName,
38
36
  target: target,
39
- className: style.link
40
- }, LinkProps), /*#__PURE__*/React.createElement("div", {
37
+ className: style.link,
38
+ ...LinkProps
39
+ }, /*#__PURE__*/React.createElement("div", {
41
40
  className: `${style.textStyle} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
42
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
41
+ }, text)) : /*#__PURE__*/React.createElement("div", {
43
42
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
44
- "data-title": title
45
- }, TextProps), text));
43
+ "data-title": title,
44
+ ...TextProps
45
+ }, text));
46
46
  }
47
47
 
48
48
  }
@@ -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 ****/
@@ -32,7 +30,7 @@ export default class PhoneNumber extends Component {
32
30
  LinkProps = {},
33
31
  TextProps = {}
34
32
  } = customProps;
35
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
33
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
36
34
  href: href,
37
35
  title: title,
38
36
  urlData: urlData,
@@ -40,13 +38,15 @@ export default class PhoneNumber extends Component {
40
38
  dataId: dataId,
41
39
  target: target,
42
40
  hasReload: hasReload,
43
- className: style.link
44
- }, LinkProps), /*#__PURE__*/React.createElement("div", {
41
+ className: style.link,
42
+ ...LinkProps
43
+ }, /*#__PURE__*/React.createElement("div", {
45
44
  className: `${style.phoneNumber} ${style[`font_${fontWeight}`]} ${className ? className : ''}`
46
- }, text)) : /*#__PURE__*/React.createElement("div", _extends({
45
+ }, text)) : /*#__PURE__*/React.createElement("div", {
47
46
  className: `${style.secondaryText} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
48
- "data-title": title
49
- }, TextProps), text));
47
+ "data-title": title,
48
+ ...TextProps
49
+ }, text));
50
50
  }
51
51
 
52
52
  }
@@ -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, { Component } from 'react';
4
2
  import { SecondaryText_defaultProps } from './props/defaultProps';
5
3
  import { SecondaryText_propTypes } from './props/propTypes';
@@ -21,13 +19,14 @@ export default class SecondaryText extends Component {
21
19
  let {
22
20
  SecondaryTextProps
23
21
  } = customProps;
24
- return /*#__PURE__*/React.createElement("div", _extends({
22
+ return /*#__PURE__*/React.createElement("div", {
25
23
  className: `${style.secondaryText} ${className ? className : ''}`,
26
24
  "data-title": dataTitle,
27
25
  "data-id": dataId,
28
26
  "data-test-id": dataId,
29
- onClick: onClick
30
- }, SecondaryTextProps), text);
27
+ onClick: onClick,
28
+ ...SecondaryTextProps
29
+ }, text);
31
30
  }
32
31
 
33
32
  }
@@ -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, { Component } from 'react';
4
2
  import { TicketId_defaultProps } from './props/defaultProps';
5
3
  import { TicketId_propTypes } from './props/propTypes';
@@ -28,19 +26,21 @@ export default class TicketId extends Component {
28
26
  LinkProps = {},
29
27
  TicketIdProps = {}
30
28
  } = customProps;
31
- return /*#__PURE__*/React.createElement("div", _extends({
29
+ return /*#__PURE__*/React.createElement("div", {
32
30
  className: `${style.ticketId} ${isLink ? style.ticketIdLink : ''} ${className ? className : ''}`,
33
31
  "data-id": dataId,
34
32
  "data-test-id": dataId,
35
33
  "data-title": dataTitle,
36
- onClick: !isLink && onClick
37
- }, TicketIdProps), isLink ? /*#__PURE__*/React.createElement(Link, _extends({
34
+ onClick: !isLink && onClick,
35
+ ...TicketIdProps
36
+ }, isLink ? /*#__PURE__*/React.createElement(Link, {
38
37
  urlName: urlName,
39
38
  urlData: urlData,
40
39
  href: url,
41
40
  target: target,
42
- onClick: onClick
43
- }, LinkProps), text) : text);
41
+ onClick: onClick,
42
+ ...LinkProps
43
+ }, text) : text);
44
44
  }
45
45
 
46
46
  }
@@ -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, { Component } from 'react';
4
2
  import { defaultProps } from './props/defaultProps';
5
3
  import { propTypes } from './props/propTypes';
@@ -30,7 +28,7 @@ export default class Subject extends Component {
30
28
  LinkProps = {},
31
29
  TextProps = {}
32
30
  } = customProps;
33
- return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, _extends({
31
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isLink ? /*#__PURE__*/React.createElement(Link, {
34
32
  urlName: urlName,
35
33
  href: href,
36
34
  urlData: urlData,
@@ -38,13 +36,15 @@ export default class Subject extends Component {
38
36
  className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]} ${style.cursorPointer}`,
39
37
  dataId: dataId,
40
38
  title: text,
41
- target: target
42
- }, LinkProps), children ? children : text) : /*#__PURE__*/React.createElement("span", _extends({
39
+ target: target,
40
+ ...LinkProps
41
+ }, children ? children : text) : /*#__PURE__*/React.createElement("span", {
43
42
  className: `${style.subject} ${isDotted ? style.dotted : ''} ${className} ${style[`font_${fontWeight}`]}`,
44
43
  "data-title": text,
45
44
  "data-id": dataId,
46
- "data-test-id": dataId
47
- }, TextProps), text));
45
+ "data-test-id": dataId,
46
+ ...TextProps
47
+ }, text));
48
48
  }
49
49
 
50
50
  }
@@ -10,7 +10,7 @@
10
10
  visibility: hidden;
11
11
  border-radius: var(--zd_size14);
12
12
  background-color: var(--zdt_tagnew_default_bg);
13
- box-shadow: var(--zd_bs_tagnew_shadow);
13
+ box-shadow: var(--zd_bs_contrast_outline, 0 8px 30px 0 var(--zdt_tagnew_default_box_shadow));
14
14
  padding: 0 var(--zd_size15) ;
15
15
  transform: scale(0);
16
16
  cursor: pointer;
@@ -7,9 +7,7 @@ import { Box, Container } from '@zohodesk/components/lib/Layout';
7
7
  import DropDownHeading from '@zohodesk/components/lib/DropDown/DropDownHeading';
8
8
  import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
9
9
  import Loader from '@zohodesk/svg/lib/Loader/Loader';
10
- import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch'; // import { scrollTo } from '@zohodesk/components/lib/utils/Common.js';
11
- // import TextBox from '@zohodesk/components/lib/TextBox/TextBox';
12
-
10
+ import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
13
11
  import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
14
12
  import StatusListItem from '../StatusListItem/StatusListItem';
15
13
  import commonStyle from '@zohodesk/components/lib/common/common.module.css';
@@ -23,20 +21,13 @@ export class StatusDropdown extends React.Component {
23
21
  super(props);
24
22
  this.state = {
25
23
  searchString: '',
26
- // selectedIndex: 0,
27
24
  options: props.options
28
25
  };
29
- this.handleChange = this.handleChange.bind(this); // this.handleKeyDown = this.handleKeyDown.bind(this);
30
-
26
+ this.handleChange = this.handleChange.bind(this);
31
27
  this.onSelect = this.onSelect.bind(this);
32
28
  this.handleTogglePopup = this.handleTogglePopup.bind(this);
33
29
  this.onSearchClear = this.onSearchClear.bind(this);
34
- this.searchList = this.searchList.bind(this); // this.scrollContentRef = this.scrollContentRef.bind(this);
35
- // this.handleMouseEnter = this.handleMouseEnter.bind(this);
36
- // this.searchInputRef = this.searchInputRef.bind(this);
37
- // this.itemRef = this.itemRef.bind(this);
38
- // this.inputRef = this.inputRef.bind(this);
39
-
30
+ this.searchList = this.searchList.bind(this);
40
31
  this.handleScroll = this.handleScroll.bind(this);
41
32
  this.emptySearchSVG = this.emptySearchSVG.bind(this);
42
33
  this.getAriaId = getUniqueId(this);
@@ -46,16 +37,7 @@ export class StatusDropdown extends React.Component {
46
37
  return /*#__PURE__*/React.createElement(EmptySearch, {
47
38
  size: "small"
48
39
  });
49
- } // inputRef(el) {
50
- // this.hiddenInput = el;
51
- // }
52
- // itemRef(ele, index, id) {
53
- // this[`suggestion_${id}`] = ele;
54
- // }
55
- // searchInputRef(el) {
56
- // this.searchInput = el;
57
- // }
58
-
40
+ }
59
41
 
60
42
  handleTogglePopup(e) {
61
43
  let {
@@ -68,13 +50,7 @@ export class StatusDropdown extends React.Component {
68
50
  !isPopupOpen && onSelectLabel && onSelectLabel(e);
69
51
  onTogglePopup && onTogglePopup(isPopupOpen);
70
52
  togglePopup(e, boxPosition);
71
- } // scrollContentRef(el) {
72
- // let { isPopupOpen } = this.props;
73
- // if (isPopupOpen) {
74
- // this.optionsContainer = el;
75
- // }
76
- // }
77
-
53
+ }
78
54
 
79
55
  componentWillReceiveProps(nextProps) {
80
56
  if (nextProps.options.length != this.props.options.length) {
@@ -97,68 +73,10 @@ export class StatusDropdown extends React.Component {
97
73
  }
98
74
 
99
75
  componentDidUpdate(prevProps) {
100
- // let { isPopupOpen, isSearch, idName } = this.props;
101
- // let { selectedIndex, options } = this.state;
102
- // if (prevProps.isPopupOpen != isPopupOpen) {
103
- // setTimeout(() => {
104
- // isPopupOpen && isSearch
105
- // ? this.searchInput && this.searchInput.focus()
106
- // : this.hiddenInput && this.hiddenInput.focus();
107
- // }, 10);
108
- // }
109
- // let mergeOptions = options;
110
- // let option = mergeOptions[selectedIndex];
111
- // let id = (option && option[idName]) || {};
112
- // let selSuggestion = this[`suggestion_${id}`];
113
- // if (isPopupOpen) {
114
- // this.optionsContainer && scrollTo(this.optionsContainer, selSuggestion);
115
- // }
116
76
  if (!prevProps.isPopupOpen && this.props.isPopupOpen) {
117
77
  this.onSearchClear();
118
78
  }
119
- } // handleKeyDown(e) {
120
- // let { keyCode } = e;
121
- // let { selectedIndex, options } = this.state;
122
- // let totalIndex = options.length;
123
- // let { togglePopup, onClick, boxPosition, isPopupReady, isNextOptions, getNextOptions, onTogglePopup, isPopupOpen } =
124
- // this.props;
125
- // if (isPopupReady && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
126
- // e.preventDefault(); //prevent body scroll
127
- // }
128
- // if (isPopupReady) {
129
- // switch (keyCode) {
130
- // case 40:
131
- // if (selectedIndex === totalIndex - 1) {
132
- // this.setState({ selectedIndex: 0 });
133
- // } else {
134
- // if (selectedIndex === totalIndex - 3) {
135
- // isNextOptions && getNextOptions && getNextOptions();
136
- // }
137
- // this.setState({ selectedIndex: selectedIndex + 1 });
138
- // }
139
- // break;
140
- // case 38:
141
- // if (selectedIndex === 0) {
142
- // this.setState({ selectedIndex: totalIndex - 1 });
143
- // } else {
144
- // this.setState({ selectedIndex: selectedIndex - 1 });
145
- // }
146
- // break;
147
- // case 13:
148
- // onClick && onClick(options[selectedIndex].name, e);
149
- // onTogglePopup && onTogglePopup(isPopupOpen);
150
- // togglePopup(e, boxPosition);
151
- // break;
152
- // default:
153
- // break;
154
- // }
155
- // } else {
156
- // if (keyCode === 13 || keyCode === 40) {
157
- // togglePopup(e, boxPosition);
158
- // }
159
- // }
160
- // }
161
-
79
+ }
162
80
 
163
81
  searchList(value) {
164
82
  let {
@@ -173,7 +91,6 @@ export class StatusDropdown extends React.Component {
173
91
  let foptions = this.searchList(value);
174
92
  this.setState({
175
93
  searchString: value,
176
- // selectedIndex: -1,
177
94
  options: foptions
178
95
  });
179
96
  }
@@ -184,21 +101,15 @@ export class StatusDropdown extends React.Component {
184
101
  searchString: '',
185
102
  options: foptions
186
103
  });
187
- } // handleMouseEnter(id, value, index, e) {
188
- // this.setState({
189
- // selectedIndex: index
190
- // });
191
- // }
192
-
104
+ }
193
105
 
194
106
  handleScroll(e) {
195
107
  const {
196
- isNextOptions,
197
108
  getNextOptions
198
109
  } = this.props;
199
110
 
200
111
  if (e.target.scrollTop + e.target.offsetHeight > e.target.scrollHeight - 1) {
201
- isNextOptions && getNextOptions && getNextOptions(e);
112
+ getNextOptions && getNextOptions(e);
202
113
  }
203
114
  }
204
115
 
@@ -259,6 +170,8 @@ export class StatusDropdown extends React.Component {
259
170
  needExternalPopupState = false,
260
171
  isPopupActive = false,
261
172
  needMultiLineText,
173
+ isFetchingOptions,
174
+ getNextOptions,
262
175
  a11y = {}
263
176
  } = this.props;
264
177
  const {
@@ -328,7 +241,14 @@ export class StatusDropdown extends React.Component {
328
241
  needResponsive: needResponsive,
329
242
  isResponsivePadding: true,
330
243
  needFocusScope: true,
331
- onClose: this.handleTogglePopup
244
+ onClose: this.handleTogglePopup,
245
+ customProps: {
246
+ focusScopeProps: {
247
+ loadNextOptions: getNextOptions,
248
+ searchValue: searchString,
249
+ isFetchingOptions: isFetchingOptions
250
+ }
251
+ }
332
252
  }, /*#__PURE__*/React.createElement(React.Fragment, null, isSearch ? /*#__PURE__*/React.createElement(Box, {
333
253
  className: style.search
334
254
  }, /*#__PURE__*/React.createElement(TextBoxIcon, {
@@ -336,9 +256,7 @@ export class StatusDropdown extends React.Component {
336
256
  onChange: this.handleChange,
337
257
  value: searchString,
338
258
  onClear: this.onSearchClear,
339
- size: searchBoxSize // inputRef={this.searchInputRef}
340
- // onKeyDown={this.handleKeyDown}
341
- ,
259
+ size: searchBoxSize,
342
260
  customProps: {
343
261
  TextBoxProps: {
344
262
  'data-a11y-autofocus': true
@@ -365,30 +283,24 @@ export class StatusDropdown extends React.Component {
365
283
  shrink: true,
366
284
  dataId: `${dataId}_list`,
367
285
  preventParentScroll: "vertical",
368
- className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt}` // eleRef={this.scrollContentRef}
369
- ,
286
+ className: `${tabletMode ? style.responsivemaxHgt : style.maxHgt}`,
370
287
  onScroll: this.handleScroll,
371
288
  role: isSearch ? 'listbox' : 'menu',
372
289
  tabindex: "-1",
373
- "data-scroll": "true"
290
+ isScrollAttribute: true
374
291
  }, options.length != 0 && isDataLoaded ? /*#__PURE__*/React.createElement(React.Fragment, null, options.map((item, i) => {
375
292
  const listItemText = item[keyName];
376
- ;
377
293
  const isActive = value === listItemText;
378
- return /*#__PURE__*/React.createElement(React.Fragment, {
379
- key: i
380
- }, /*#__PURE__*/React.createElement(StatusListItem, {
294
+ return /*#__PURE__*/React.createElement(StatusListItem, {
295
+ key: i,
381
296
  dataId: `dataid_${i}`,
382
297
  value: listItemText,
383
298
  id: item[idName],
384
299
  active: isActive,
385
300
  onClick: this.onSelect.bind(this, item),
386
- index: i // highlight={selectedIndex === i}
387
- ,
301
+ index: i,
388
302
  needTick: needTick,
389
- needBorder: false // onMouseEnter={this.handleMouseEnter}
390
- // getRef={this.itemRef}
391
- ,
303
+ needBorder: false,
392
304
  bulletColor: item[statusColor],
393
305
  title: listItemText,
394
306
  needMultiLineText: needMultiLineText,
@@ -398,8 +310,11 @@ export class StatusDropdown extends React.Component {
398
310
  ariaSelected: isActive,
399
311
  ariaLabel: listItemText
400
312
  }
401
- }));
402
- })) : isDataLoaded ? /*#__PURE__*/React.createElement(CommonEmptyState, {
313
+ });
314
+ }), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
315
+ isCover: false,
316
+ align: "both"
317
+ }, /*#__PURE__*/React.createElement(Loader, null))) : isDataLoaded ? /*#__PURE__*/React.createElement(CommonEmptyState, {
403
318
  className: style.svgWrapper,
404
319
  title: searchErrorText || 'No results',
405
320
  description: searchEmptyHint,
@@ -80,13 +80,4 @@
80
80
  height: var(--zd_size1) ;
81
81
  border-bottom: 1px solid var(--zdt_statusdropdown_line_border);
82
82
  margin: var(--zd_size9) 0 var(--zd_size10) ;
83
- }
84
- /* .hiddenInput {
85
- width: 0;
86
- height: 0;
87
- opacity: 0;
88
- }
89
- .hiddenInput > input {
90
- width: 100%;
91
- padding: 0;
92
- } */
83
+ }
@@ -15,5 +15,6 @@ export const defaultProps = {
15
15
  boxSize: 'medium',
16
16
  needExternalPopupState: false,
17
17
  statusColor: 'statusColor',
18
- needMultiLineText: false
18
+ needMultiLineText: false,
19
+ isFetchingOptions: false
19
20
  };
@@ -19,7 +19,7 @@ export const propTypes = {
19
19
  isDataLoaded: PropTypes.bool,
20
20
  isDisabled: PropTypes.bool,
21
21
  isEditable: PropTypes.bool,
22
- isNextOptions: PropTypes.bool,
22
+ isFetchingOptions: PropTypes.bool,
23
23
  isPopupActive: PropTypes.bool,
24
24
  isPopupOpen: PropTypes.bool,
25
25
  isPopupReady: PropTypes.bool,
@@ -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 from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -86,7 +84,7 @@ export default class StatusListItem extends React.Component {
86
84
  options.target = `_${target}`;
87
85
  }
88
86
 
89
- return /*#__PURE__*/React.createElement(Container, _extends({
87
+ return /*#__PURE__*/React.createElement(Container, {
90
88
  role: role,
91
89
  "aria-selected": ariaSelected,
92
90
  "aria-label": ariaLabel,
@@ -101,8 +99,10 @@ export default class StatusListItem extends React.Component {
101
99
  eleRef: this.getRef,
102
100
  tagName: isLink ? 'a' : 'li',
103
101
  "data-title": isDisabled ? disableTitle : null,
104
- tabindex: isDisabled ? '-1' : '0'
105
- }, options, a11y), /*#__PURE__*/React.createElement(Box, {
102
+ tabindex: isDisabled ? '-1' : '0',
103
+ ...options,
104
+ ...a11y
105
+ }, /*#__PURE__*/React.createElement(Box, {
106
106
  className: `${style.statusType} ${style[bulletColor]}`
107
107
  }), /*#__PURE__*/React.createElement(Box, {
108
108
  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, { Component } from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -78,7 +76,7 @@ export default class Lookup extends Component {
78
76
  needFocusLoop = true,
79
77
  needEnterAction = true
80
78
  } = focusScopeProps;
81
- const content = /*#__PURE__*/React.createElement("div", _extends({
79
+ const content = /*#__PURE__*/React.createElement("div", {
82
80
  ref: this.createRef,
83
81
  tabIndex: "-1",
84
82
  "data-a11y-need-focus-style": "false",
@@ -90,8 +88,9 @@ export default class Lookup extends Component {
90
88
  id: htmlId,
91
89
  className: `${style.box} ${style[`${size}Size`]} ${lookupClass ? lookupClass : ''}`,
92
90
  "data-id": dataId,
93
- "data-test-id": dataId
94
- }, a11yAttributes), /*#__PURE__*/React.createElement(Container, {
91
+ "data-test-id": dataId,
92
+ ...a11yAttributes
93
+ }, /*#__PURE__*/React.createElement(Container, {
95
94
  "data-drag-container": "true",
96
95
  isCover: false,
97
96
  className: isMinHeight ? `${style.wrapper}` : `${style.coverwrap}`
@@ -5,5 +5,5 @@
5
5
  composes: flexgrow from '~@zohodesk/components/lib/common/common.module.css';
6
6
  border-radius: 0 0 var(--zd_size10) var(--zd_size10);
7
7
  background-color: var(--zdt_lookupsection_bg);
8
- box-shadow: var(--zd_bs_lookupsection_shadow)
8
+ box-shadow: var(--zd_bs_contrast_outline, 0px 4px 20px var(--zdt_lookupsection_box_shadow))
9
9
  }
@@ -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 ***/
@@ -100,7 +98,11 @@ export default class Search extends Component {
100
98
  selectedId: selectedId,
101
99
  onDropDownOpen: this.handleDropDownOpen,
102
100
  onDropDownClose: this.handleDropDownClose
103
- }, /*#__PURE__*/React.createElement(SearchUI, _extends({}, this.props, searchUIExtraProps))) : /*#__PURE__*/React.createElement(SearchUI, _extends({}, this.props, searchUIExtraProps));
101
+ }, /*#__PURE__*/React.createElement(SearchUI, { ...this.props,
102
+ ...searchUIExtraProps
103
+ })) : /*#__PURE__*/React.createElement(SearchUI, { ...this.props,
104
+ ...searchUIExtraProps
105
+ });
104
106
  }
105
107
 
106
108
  }
@@ -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, { useRef } from 'react';
4
2
  import { Header_defaultProps, Footer_defaultProps, Drawer_defaultProps } from './props/defaultProps';
5
3
  import { Header_propTypes, Content_propTypes, Footer_propTypes, Drawer_propTypes } from './props/propTypes';
@@ -161,12 +159,13 @@ export default function Drawer(props) {
161
159
 
162
160
  return child;
163
161
  });
164
- let content = /*#__PURE__*/React.createElement(Box, _extends({
162
+ let content = /*#__PURE__*/React.createElement(Box, {
165
163
  className: `${style.container} ${style.columns} ${style.drawerModal} ${uptoTablet ? style.mbleSize : style[size]}`,
166
164
  "data-a11y-need-focus-style": "false",
167
165
  tabindex: -1,
168
- eleRef: contentRef
169
- }, a11y), /*#__PURE__*/React.createElement(Card, {
166
+ eleRef: contentRef,
167
+ ...a11y
168
+ }, /*#__PURE__*/React.createElement(Card, {
170
169
  onClick: e => {
171
170
  e && e.stopPropagation && e.stopPropagation();
172
171
  onBodyClick(e);
@@ -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 from 'react';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -32,7 +30,7 @@ const ExternalLink = props => {
32
30
  };
33
31
 
34
32
  let urlOutput = href && typeof href !== 'boolean' ? addHttp(String(href)) : 'javascript:void(0);';
35
- return /*#__PURE__*/React.createElement("a", _extends({
33
+ return /*#__PURE__*/React.createElement("a", {
36
34
  href: urlOutput,
37
35
  target: target,
38
36
  className: `${style.link} ${className ? className : ''}`,
@@ -40,8 +38,9 @@ const ExternalLink = props => {
40
38
  rel: rel,
41
39
  "data-id": dataId,
42
40
  "data-test-id": dataId,
43
- onClick: onClick
44
- }, customProps), children);
41
+ onClick: onClick,
42
+ ...customProps
43
+ }, children);
45
44
  };
46
45
 
47
46
  ExternalLink.defaultProps = 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';
@@ -76,16 +74,17 @@ export default function FlipCard(props) {
76
74
  }, !noNeedFlip ? /*#__PURE__*/React.createElement(Container, {
77
75
  align: "both",
78
76
  className: `${style.front} ${frontClass ? frontClass : ''}`
79
- }, /*#__PURE__*/React.createElement(CheckBox, _extends({
77
+ }, /*#__PURE__*/React.createElement(CheckBox, {
80
78
  isFilled: isFilledCheckbox,
81
79
  checked: isChecked,
82
80
  onChange: onChange,
83
81
  id: `checkbox_${id}`,
84
- dataId: `listViewCheckBox_${id}`
85
- }, CheckBoxProps))) : null, /*#__PURE__*/React.createElement(Container, {
82
+ dataId: `listViewCheckBox_${id}`,
83
+ ...CheckBoxProps
84
+ })) : null, /*#__PURE__*/React.createElement(Container, {
86
85
  align: "both",
87
86
  className: style.back
88
- }, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon, _extends({
87
+ }, channel && action ? /*#__PURE__*/React.createElement(ChannelIcon, {
89
88
  name: channel,
90
89
  action: action,
91
90
  size: size,
@@ -98,8 +97,9 @@ export default function FlipCard(props) {
98
97
  customTextClass: customTextClass,
99
98
  iconColor: iconColor,
100
99
  title: channelTitle,
101
- iconTitle: channelTitle
102
- }, ChannelIconProps)) : icon ? /*#__PURE__*/React.createElement(AvatarIcon, _extends({
100
+ iconTitle: channelTitle,
101
+ ...ChannelIconProps
102
+ }) : icon ? /*#__PURE__*/React.createElement(AvatarIcon, {
103
103
  name: icon,
104
104
  iconSize: iconSize,
105
105
  size: size,
@@ -107,8 +107,9 @@ export default function FlipCard(props) {
107
107
  dataId: icon,
108
108
  className: className,
109
109
  iconColor: iconColor,
110
- title: needTitle ? name : ''
111
- }, AvatarIconProps)) : /*#__PURE__*/React.createElement(AvatarUser, _extends({
110
+ title: needTitle ? name : '',
111
+ ...AvatarIconProps
112
+ }) : /*#__PURE__*/React.createElement(AvatarUser, {
112
113
  name: name,
113
114
  initial: initial,
114
115
  size: size,
@@ -119,8 +120,9 @@ export default function FlipCard(props) {
119
120
  needTitle: needTitle,
120
121
  palette: palette,
121
122
  textPalette: textPalette,
122
- customTextClass: customTextClass
123
- }, AvatarUserProps)))));
123
+ customTextClass: customTextClass,
124
+ ...AvatarUserProps
125
+ }))));
124
126
  }
125
127
  FlipCard.propTypes = propTypes;
126
128
  FlipCard.defaultProps = defaultProps; // if (__DOCS__) {