@zohodesk/dot 1.9.11 → 1.9.13

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 (68) hide show
  1. package/README.md +20 -0
  2. package/es/ActionButton/__tests__/ActionButton.spec.js +4 -5
  3. package/es/AttachmentViewer/AttachmentImage.js +3 -1
  4. package/es/AttachmentViewer/AttachmentViewer.js +340 -273
  5. package/es/AttachmentViewer/AttachmentViewer.module.css +8 -15
  6. package/es/AttachmentViewer/__tests__/AttachmentViewer.spec.js +104 -100
  7. package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  8. package/es/AttachmentViewer/props/defaultProps.js +4 -2
  9. package/es/AttachmentViewer/props/propTypes.js +9 -2
  10. package/es/AttachmentViewer/utils.js +6 -7
  11. package/es/AudioPlayer/utils/utils.js +2 -5
  12. package/es/DotProvider/hooks/useDotProvider.js +14 -15
  13. package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +12 -13
  14. package/es/DotProvider/props/defaultProps.js +1 -1
  15. package/es/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +3 -4
  16. package/es/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +4 -5
  17. package/es/DotProvider/utils/errorValidation.js +5 -6
  18. package/es/DotProvider/utils/getAssetsImportPromises.js +4 -5
  19. package/es/Drawer/Drawer.js +6 -8
  20. package/es/FreezeLayer/css/cssJSLogic.js +4 -5
  21. package/es/Hooks/Dragger/useDragger.js +5 -6
  22. package/es/Hooks/Dragger/utils/DraggerUtil.js +7 -8
  23. package/es/Hooks/useFreezeLayer.js +4 -5
  24. package/es/Link/Link.js +4 -3
  25. package/es/Link/props/propTypes.js +1 -0
  26. package/es/Onboarding/CarouselDots/CarouselDots.js +29 -32
  27. package/es/Onboarding/Onboarding.js +23 -24
  28. package/es/Onboarding/hooks/useOnboarding.js +4 -5
  29. package/es/Onboarding/hooks/useOnboardingSlider.js +5 -6
  30. package/es/deprecated/SelectDropdown/SelectDropdown.js +43 -47
  31. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +214 -225
  32. package/es/errorstate/Inconvenience/Inconvenience.js +32 -36
  33. package/es/errorstate/NoRequestFound/NoRequestFound.js +32 -36
  34. package/es/errorstate/PermissionPlay/PermissionPlay.js +31 -35
  35. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +32 -36
  36. package/es/errorstate/UnableToProcess/UnableToProcess.js +32 -36
  37. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +32 -36
  38. package/es/errorstate/WillBack/WillBack.js +30 -34
  39. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +81 -85
  40. package/es/list/status/StatusDropdown/StatusDropdown.js +109 -113
  41. package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +3 -4
  42. package/es/lookup/header/Search/Search.js +4 -5
  43. package/es/lookup/header/Search/__tests__/Search.spec.js +3 -4
  44. package/es/lookup/header/ViewDropDown/ViewDropDown.js +67 -75
  45. package/es/utils/General.js +2 -7
  46. package/es/utils/editorUtils.js +1 -5
  47. package/es/version2/lookup/AlertHeader/AlertHeader.js +5 -3
  48. package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +24 -0
  49. package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +34 -0
  50. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +4 -5
  51. package/es/version2/lookup/AlertHeader/props/propTypes.js +2 -1
  52. package/es/version2/notification/DesktopNotification/DesktopNotification.js +59 -63
  53. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +40 -44
  54. package/lib/AttachmentViewer/AttachmentImage.js +3 -1
  55. package/lib/AttachmentViewer/AttachmentViewer.js +158 -82
  56. package/lib/AttachmentViewer/AttachmentViewer.module.css +8 -15
  57. package/lib/AttachmentViewer/__tests__/AttachmentViewer.spec.js +100 -100
  58. package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  59. package/lib/AttachmentViewer/props/defaultProps.js +6 -2
  60. package/lib/AttachmentViewer/props/propTypes.js +9 -2
  61. package/lib/DotProvider/props/defaultProps.js +2 -2
  62. package/lib/Link/Link.js +4 -3
  63. package/lib/Link/props/propTypes.js +1 -0
  64. package/lib/version2/lookup/AlertHeader/AlertHeader.js +5 -2
  65. package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +26 -0
  66. package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +34 -0
  67. package/lib/version2/lookup/AlertHeader/props/propTypes.js +2 -1
  68. package/package.json +26 -24
@@ -13,10 +13,9 @@ export default class PermissionPlay extends React.Component {
13
13
  this.responsiveFunc = this.responsiveFunc.bind(this);
14
14
  }
15
15
 
16
- responsiveFunc(_ref) {
17
- let {
18
- mediaQueryOR
19
- } = _ref;
16
+ responsiveFunc({
17
+ mediaQueryOR
18
+ }) {
20
19
  return {
21
20
  tablet: mediaQueryOR([{
22
21
  minWidth: 481,
@@ -41,37 +40,34 @@ export default class PermissionPlay extends React.Component {
41
40
  } = this.props;
42
41
  return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
43
42
  query: this.responsiveFunc
44
- }, _ref2 => {
45
- let {
46
- tablet,
47
- uptoMobile
48
- } = _ref2;
49
- return /*#__PURE__*/React.createElement(Container, {
50
- className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
51
- dataId: dataId,
52
- scroll: "vertical"
53
- }, /*#__PURE__*/React.createElement(Box, {
54
- className: commonStyle.top
55
- }, title ? /*#__PURE__*/React.createElement("div", {
56
- className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
57
- }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
58
- className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
59
- }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
60
- className: uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer
61
- }, /*#__PURE__*/React.createElement(UnauthorizedLoginSVG, {
62
- isFluid: true,
63
- dataId: `${dataId}_svg`
64
- })), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
65
- className: `${style.lastBox} ${tablet || uptoMobile ? style.max : style.min}`
66
- }, /*#__PURE__*/React.createElement("span", null, description), /*#__PURE__*/React.createElement("span", {
67
- className: style.lineText
68
- }, /*#__PURE__*/React.createElement(LinkText, {
69
- text: urlText,
70
- href: url,
71
- onClick: onClick,
72
- dataId: `${dataId}_link`
73
- })))));
74
- });
43
+ }, ({
44
+ tablet,
45
+ uptoMobile
46
+ }) => /*#__PURE__*/React.createElement(Container, {
47
+ className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
48
+ dataId: dataId,
49
+ scroll: "vertical"
50
+ }, /*#__PURE__*/React.createElement(Box, {
51
+ className: commonStyle.top
52
+ }, title ? /*#__PURE__*/React.createElement("div", {
53
+ className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
54
+ }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
55
+ className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
56
+ }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
57
+ className: uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer
58
+ }, /*#__PURE__*/React.createElement(UnauthorizedLoginSVG, {
59
+ isFluid: true,
60
+ dataId: `${dataId}_svg`
61
+ })), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
62
+ className: `${style.lastBox} ${tablet || uptoMobile ? style.max : style.min}`
63
+ }, /*#__PURE__*/React.createElement("span", null, description), /*#__PURE__*/React.createElement("span", {
64
+ className: style.lineText
65
+ }, /*#__PURE__*/React.createElement(LinkText, {
66
+ text: urlText,
67
+ href: url,
68
+ onClick: onClick,
69
+ dataId: `${dataId}_link`
70
+ }))))));
75
71
  }
76
72
 
77
73
  }
@@ -13,10 +13,9 @@ export default class RequestUrlNotFound extends React.Component {
13
13
  this.responsiveFunc = this.responsiveFunc.bind(this);
14
14
  }
15
15
 
16
- responsiveFunc(_ref) {
17
- let {
18
- mediaQueryOR
19
- } = _ref;
16
+ responsiveFunc({
17
+ mediaQueryOR
18
+ }) {
20
19
  return {
21
20
  tablet: mediaQueryOR([{
22
21
  minWidth: 481,
@@ -41,38 +40,35 @@ export default class RequestUrlNotFound extends React.Component {
41
40
  } = this.props;
42
41
  return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
43
42
  query: this.responsiveFunc
44
- }, _ref2 => {
45
- let {
46
- tablet,
47
- uptoMobile
48
- } = _ref2;
49
- return /*#__PURE__*/React.createElement(Container, {
50
- className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
51
- dataId: dataId,
52
- scroll: "vertical"
53
- }, /*#__PURE__*/React.createElement(Box, {
54
- className: commonStyle.top
55
- }, title ? /*#__PURE__*/React.createElement("div", {
56
- className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
57
- }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
58
- className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
59
- }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
60
- className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer}`
61
- }, /*#__PURE__*/React.createElement(UrlNotFound, {
62
- isFluid: true,
63
- dataId: `${dataId}_svg`
64
- })), /*#__PURE__*/React.createElement(Box, {
65
- className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
66
- }, /*#__PURE__*/React.createElement("div", {
67
- className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
68
- }, description), /*#__PURE__*/React.createElement(LinkText, {
69
- text: urlText,
70
- href: url,
71
- onClick: onClick,
72
- dataId: `${dataId}_link`,
73
- customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
74
- })));
75
- });
43
+ }, ({
44
+ tablet,
45
+ uptoMobile
46
+ }) => /*#__PURE__*/React.createElement(Container, {
47
+ className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
48
+ dataId: dataId,
49
+ scroll: "vertical"
50
+ }, /*#__PURE__*/React.createElement(Box, {
51
+ className: commonStyle.top
52
+ }, title ? /*#__PURE__*/React.createElement("div", {
53
+ className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
54
+ }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
55
+ className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
56
+ }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
57
+ className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : tablet ? commonStyle.tabletImageContainer : commonStyle.imageContainer}`
58
+ }, /*#__PURE__*/React.createElement(UrlNotFound, {
59
+ isFluid: true,
60
+ dataId: `${dataId}_svg`
61
+ })), /*#__PURE__*/React.createElement(Box, {
62
+ className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
63
+ }, /*#__PURE__*/React.createElement("div", {
64
+ className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
65
+ }, description), /*#__PURE__*/React.createElement(LinkText, {
66
+ text: urlText,
67
+ href: url,
68
+ onClick: onClick,
69
+ dataId: `${dataId}_link`,
70
+ customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
71
+ }))));
76
72
  }
77
73
 
78
74
  }
@@ -13,10 +13,9 @@ export default class UnableToProcess extends React.Component {
13
13
  this.responsiveFunc = this.responsiveFunc.bind(this);
14
14
  }
15
15
 
16
- responsiveFunc(_ref) {
17
- let {
18
- mediaQueryOR
19
- } = _ref;
16
+ responsiveFunc({
17
+ mediaQueryOR
18
+ }) {
20
19
  return {
21
20
  tablet: mediaQueryOR([{
22
21
  minWidth: 481,
@@ -41,38 +40,35 @@ export default class UnableToProcess extends React.Component {
41
40
  } = this.props;
42
41
  return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
43
42
  query: this.responsiveFunc
44
- }, _ref2 => {
45
- let {
46
- tablet,
47
- uptoMobile
48
- } = _ref2;
49
- return /*#__PURE__*/React.createElement(Container, {
50
- className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
51
- dataId: dataId,
52
- scroll: "vertical"
53
- }, /*#__PURE__*/React.createElement(Box, {
54
- className: commonStyle.top
55
- }, title ? /*#__PURE__*/React.createElement("div", {
56
- className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
57
- }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
58
- className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
59
- }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
60
- className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : commonStyle.tabletImageContainer}`
61
- }, /*#__PURE__*/React.createElement(UnableToProcessRequest, {
62
- isFluid: true,
63
- dataId: `${dataId}_svg`
64
- })), /*#__PURE__*/React.createElement(Box, {
65
- className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
66
- }, /*#__PURE__*/React.createElement("div", {
67
- className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
68
- }, description), /*#__PURE__*/React.createElement(LinkText, {
69
- text: urlText,
70
- href: url,
71
- onClick: onClick,
72
- dataId: `${dataId}_link`,
73
- customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
74
- })));
75
- });
43
+ }, ({
44
+ tablet,
45
+ uptoMobile
46
+ }) => /*#__PURE__*/React.createElement(Container, {
47
+ className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
48
+ dataId: dataId,
49
+ scroll: "vertical"
50
+ }, /*#__PURE__*/React.createElement(Box, {
51
+ className: commonStyle.top
52
+ }, title ? /*#__PURE__*/React.createElement("div", {
53
+ className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
54
+ }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
55
+ className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
56
+ }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
57
+ className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : commonStyle.tabletImageContainer}`
58
+ }, /*#__PURE__*/React.createElement(UnableToProcessRequest, {
59
+ isFluid: true,
60
+ dataId: `${dataId}_svg`
61
+ })), /*#__PURE__*/React.createElement(Box, {
62
+ className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
63
+ }, /*#__PURE__*/React.createElement("div", {
64
+ className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
65
+ }, description), /*#__PURE__*/React.createElement(LinkText, {
66
+ text: urlText,
67
+ href: url,
68
+ onClick: onClick,
69
+ dataId: `${dataId}_link`,
70
+ customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
71
+ }))));
76
72
  }
77
73
 
78
74
  }
@@ -13,10 +13,9 @@ export default class UnauthorizedLogin extends React.Component {
13
13
  this.responsiveFunc = this.responsiveFunc.bind(this);
14
14
  }
15
15
 
16
- responsiveFunc(_ref) {
17
- let {
18
- mediaQueryOR
19
- } = _ref;
16
+ responsiveFunc({
17
+ mediaQueryOR
18
+ }) {
20
19
  return {
21
20
  tablet: mediaQueryOR([{
22
21
  minWidth: 481,
@@ -41,38 +40,35 @@ export default class UnauthorizedLogin extends React.Component {
41
40
  } = this.props;
42
41
  return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
43
42
  query: this.responsiveFunc
44
- }, _ref2 => {
45
- let {
46
- tablet,
47
- uptoMobile
48
- } = _ref2;
49
- return /*#__PURE__*/React.createElement(Container, {
50
- className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
51
- dataId: dataId,
52
- scroll: "vertical"
53
- }, /*#__PURE__*/React.createElement(Box, {
54
- className: commonStyle.top
55
- }, title ? /*#__PURE__*/React.createElement("div", {
56
- className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
57
- }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
58
- className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
59
- }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
60
- className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : commonStyle.tabletImageContainer}`
61
- }, /*#__PURE__*/React.createElement(UnauthorizedLoginSVG, {
62
- isFluid: true,
63
- dataId: `${dataId}_svg`
64
- })), /*#__PURE__*/React.createElement(Box, {
65
- className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
66
- }, /*#__PURE__*/React.createElement("div", {
67
- className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
68
- }, description), /*#__PURE__*/React.createElement(LinkText, {
69
- text: urlText,
70
- href: url,
71
- onClick: onClick,
72
- dataId: `${dataId}_link`,
73
- customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
74
- })));
75
- });
43
+ }, ({
44
+ tablet,
45
+ uptoMobile
46
+ }) => /*#__PURE__*/React.createElement(Container, {
47
+ className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
48
+ dataId: dataId,
49
+ scroll: "vertical"
50
+ }, /*#__PURE__*/React.createElement(Box, {
51
+ className: commonStyle.top
52
+ }, title ? /*#__PURE__*/React.createElement("div", {
53
+ className: uptoMobile ? commonStyle.mobileTitle : tablet ? commonStyle.tabletTitle : commonStyle.title
54
+ }, title) : null, subtitle ? /*#__PURE__*/React.createElement("div", {
55
+ className: uptoMobile ? commonStyle.mobileSubTitle : tablet ? commonStyle.tabletSubTitle : commonStyle.subtitle
56
+ }, subtitle) : null), /*#__PURE__*/React.createElement(Box, {
57
+ className: `${style.imageContainer} ${uptoMobile ? commonStyle.mobileImageContainer : commonStyle.tabletImageContainer}`
58
+ }, /*#__PURE__*/React.createElement(UnauthorizedLoginSVG, {
59
+ isFluid: true,
60
+ dataId: `${dataId}_svg`
61
+ })), /*#__PURE__*/React.createElement(Box, {
62
+ className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
63
+ }, /*#__PURE__*/React.createElement("div", {
64
+ className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
65
+ }, description), /*#__PURE__*/React.createElement(LinkText, {
66
+ text: urlText,
67
+ href: url,
68
+ onClick: onClick,
69
+ dataId: `${dataId}_link`,
70
+ customClass: uptoMobile || tablet ? commonStyle.tabletBtmText : ''
71
+ }))));
76
72
  }
77
73
 
78
74
  }
@@ -12,10 +12,9 @@ export default class WillBack extends React.Component {
12
12
  this.responsiveFunc = this.responsiveFunc.bind(this);
13
13
  }
14
14
 
15
- responsiveFunc(_ref) {
16
- let {
17
- mediaQueryOR
18
- } = _ref;
15
+ responsiveFunc({
16
+ mediaQueryOR
17
+ }) {
19
18
  return {
20
19
  tablet: mediaQueryOR([{
21
20
  minWidth: 481,
@@ -34,36 +33,33 @@ export default class WillBack extends React.Component {
34
33
  } = this.props;
35
34
  return /*#__PURE__*/React.createElement(ResponsiveReceiver, {
36
35
  query: this.responsiveFunc
37
- }, _ref2 => {
38
- let {
39
- tablet,
40
- uptoMobile
41
- } = _ref2;
42
- return /*#__PURE__*/React.createElement(Container, {
43
- className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
44
- dataId: dataId,
45
- scroll: "vertical"
46
- }, /*#__PURE__*/React.createElement(Box, {
47
- className: commonStyle.top
48
- }, /*#__PURE__*/React.createElement("div", {
49
- className: uptoMobile || tablet ? '' : `${commonStyle.header} ${style.header} `
50
- }, /*#__PURE__*/React.createElement("div", {
51
- className: uptoMobile ? style.mobileTitle : tablet ? style.tabletTitle : style.title
52
- }, "We'll be right back !"))), /*#__PURE__*/React.createElement(Box, {
53
- className: uptoMobile ? style.mobileImageContainer : tablet ? style.tabletImageContainer : style.imageContainer
54
- }, /*#__PURE__*/React.createElement(WillBeRightBack, {
55
- isFluid: true,
56
- dataId: `${dataId}_svg`
57
- })), /*#__PURE__*/React.createElement(Box, {
58
- className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
59
- }, /*#__PURE__*/React.createElement("div", {
60
- className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
61
- }, "Our Service is temporarity unavailable. We are currently working to restore it."), /*#__PURE__*/React.createElement("div", {
62
- className: `${uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText} ${style.bottomSpace} `
63
- }, "Please try again later or report this issue"), /*#__PURE__*/React.createElement("div", {
64
- className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
65
- }, "2013, Zoho Corp, All rights reserved.")));
66
- });
36
+ }, ({
37
+ tablet,
38
+ uptoMobile
39
+ }) => /*#__PURE__*/React.createElement(Container, {
40
+ className: `${uptoMobile || tablet ? commonStyle.tabletContainer : commonStyle.container} ${customClass}`,
41
+ dataId: dataId,
42
+ scroll: "vertical"
43
+ }, /*#__PURE__*/React.createElement(Box, {
44
+ className: commonStyle.top
45
+ }, /*#__PURE__*/React.createElement("div", {
46
+ className: uptoMobile || tablet ? '' : `${commonStyle.header} ${style.header} `
47
+ }, /*#__PURE__*/React.createElement("div", {
48
+ className: uptoMobile ? style.mobileTitle : tablet ? style.tabletTitle : style.title
49
+ }, "We'll be right back !"))), /*#__PURE__*/React.createElement(Box, {
50
+ className: uptoMobile ? style.mobileImageContainer : tablet ? style.tabletImageContainer : style.imageContainer
51
+ }, /*#__PURE__*/React.createElement(WillBeRightBack, {
52
+ isFluid: true,
53
+ dataId: `${dataId}_svg`
54
+ })), /*#__PURE__*/React.createElement(Box, {
55
+ className: `${uptoMobile || tablet ? '' : commonStyle.footerWidth} ${commonStyle.footer}`
56
+ }, /*#__PURE__*/React.createElement("div", {
57
+ className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
58
+ }, "Our Service is temporarity unavailable. We are currently working to restore it."), /*#__PURE__*/React.createElement("div", {
59
+ className: `${uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText} ${style.bottomSpace} `
60
+ }, "Please try again later or report this issue"), /*#__PURE__*/React.createElement("div", {
61
+ className: uptoMobile || tablet ? commonStyle.tabletBtmText : commonStyle.btmText
62
+ }, "2013, Zoho Corp, All rights reserved."))));
67
63
  }
68
64
 
69
65
  }
@@ -102,10 +102,9 @@ export default class TagsMultiSelect extends React.Component {
102
102
  this.containerRef = ele;
103
103
  }
104
104
 
105
- responsiveFunc(_ref) {
106
- let {
107
- mediaQueryOR
108
- } = _ref;
105
+ responsiveFunc({
106
+ mediaQueryOR
107
+ }) {
109
108
  return {
110
109
  tabletMode: mediaQueryOR([{
111
110
  maxWidth: 700
@@ -239,91 +238,88 @@ export default class TagsMultiSelect extends React.Component {
239
238
  }, TextBoxIconProps), getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
240
239
  query: this.responsiveFunc,
241
240
  responsiveId: "Helmet"
242
- }, _ref2 => {
241
+ }, ({
242
+ tabletMode
243
+ }) => /*#__PURE__*/React.createElement(ResponsiveDropBox, {
244
+ isAnimate: false,
245
+ isActive: isPopupReady,
246
+ isArrow: false,
247
+ getRef: getContainerRef,
248
+ isBoxPaddingNeed: true,
249
+ size: boxSize,
250
+ boxPosition: boxPosition,
251
+ isPadding: false,
252
+ customClass: {
253
+ customDropBoxWrap: style.dropdown,
254
+ customDropBox: dropBoxClass
255
+ },
256
+ dataId: `${dataId}_dropbox`,
257
+ isResponsivePadding: true,
258
+ alignBox: "row",
259
+ isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
260
+ isRestrictScroll: isRestrictScroll,
261
+ positionsOffset: positionsOffset,
262
+ targetOffset: targetOffset
263
+ }, /*#__PURE__*/React.createElement(Box, {
264
+ flexible: true
265
+ }, needSelectAll ? /*#__PURE__*/React.createElement(MultiSelectHeader, {
266
+ onSelect: handleSelectAll,
267
+ selectAllText: selectAllText,
268
+ suggestions: searchList,
269
+ dataId: `${dataId}_selectAll`
270
+ }) : null, isTagListLoading ? /*#__PURE__*/React.createElement(Container, {
271
+ align: "both",
272
+ className: `${tabletMode ? '' : style.viewpopNew}`
273
+ }, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, {
274
+ scroll: "vertical",
275
+ className: `${tabletMode ? '' : style.viewpopNew}`,
276
+ onScroll: this.onScroll,
277
+ eleRef: this.getContainerRef
278
+ }, searchList.length ? /*#__PURE__*/React.createElement(Box, {
279
+ flexible: true,
280
+ shrink: true,
281
+ dataId: `${dataId}_Options`
282
+ }, searchList.map((item, index) => {
243
283
  let {
244
- tabletMode
245
- } = _ref2;
246
- return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
247
- isAnimate: false,
248
- isActive: isPopupReady,
249
- isArrow: false,
250
- getRef: getContainerRef,
251
- isBoxPaddingNeed: true,
252
- size: boxSize,
253
- boxPosition: boxPosition,
254
- isPadding: false,
255
- customClass: {
256
- customDropBoxWrap: style.dropdown,
257
- customDropBox: dropBoxClass
258
- },
259
- dataId: `${dataId}_dropbox`,
260
- isResponsivePadding: true,
284
+ name,
285
+ isNew,
286
+ listItemProps: listProps
287
+ } = item;
288
+ return /*#__PURE__*/React.createElement(React.Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/React.createElement(DropDownSeparator, null) : null, /*#__PURE__*/React.createElement(ListItem, _extends({}, ListItemProps, {
289
+ key: index,
290
+ index: index,
291
+ autoHover: true,
292
+ value: isNew ? '' : name,
293
+ title: isNew ? '' : name,
294
+ onClick: addTag.bind(this, item),
295
+ needTick: true,
296
+ highlight: selectSearchIndex === index,
297
+ getRef: this.getSelectedItemRef,
298
+ isDisabled: listDisabled,
299
+ customProps: listProps,
300
+ customClass: listItemClass
301
+ }), isNew ? /*#__PURE__*/React.createElement(Container, {
261
302
  alignBox: "row",
262
- isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
263
- isRestrictScroll: isRestrictScroll,
264
- positionsOffset: positionsOffset,
265
- targetOffset: targetOffset
303
+ align: "vertical"
266
304
  }, /*#__PURE__*/React.createElement(Box, {
267
- flexible: true
268
- }, needSelectAll ? /*#__PURE__*/React.createElement(MultiSelectHeader, {
269
- onSelect: handleSelectAll,
270
- selectAllText: selectAllText,
271
- suggestions: searchList,
272
- dataId: `${dataId}_selectAll`
273
- }) : null, isTagListLoading ? /*#__PURE__*/React.createElement(Container, {
274
- align: "both",
275
- className: `${tabletMode ? '' : style.viewpopNew}`
276
- }, /*#__PURE__*/React.createElement(Loader, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Container, {
277
- scroll: "vertical",
278
- className: `${tabletMode ? '' : style.viewpopNew}`,
279
- onScroll: this.onScroll,
280
- eleRef: this.getContainerRef
281
- }, searchList.length ? /*#__PURE__*/React.createElement(Box, {
282
- flexible: true,
305
+ className: style.newTagLabel
306
+ }, i18nKeys.newTagText, ":"), /*#__PURE__*/React.createElement(Box, {
283
307
  shrink: true,
284
- dataId: `${dataId}_Options`
285
- }, searchList.map((item, index) => {
286
- let {
287
- name,
288
- isNew,
289
- listItemProps: listProps
290
- } = item;
291
- return /*#__PURE__*/React.createElement(React.Fragment, null, searchList.length > 1 && isNew ? /*#__PURE__*/React.createElement(DropDownSeparator, null) : null, /*#__PURE__*/React.createElement(ListItem, _extends({}, ListItemProps, {
292
- key: index,
293
- index: index,
294
- autoHover: true,
295
- value: isNew ? '' : name,
296
- title: isNew ? '' : name,
297
- onClick: addTag.bind(this, item),
298
- needTick: true,
299
- highlight: selectSearchIndex === index,
300
- getRef: this.getSelectedItemRef,
301
- isDisabled: listDisabled,
302
- customProps: listProps,
303
- customClass: listItemClass
304
- }), isNew ? /*#__PURE__*/React.createElement(Container, {
305
- alignBox: "row",
306
- align: "vertical"
307
- }, /*#__PURE__*/React.createElement(Box, {
308
- className: style.newTagLabel
309
- }, i18nKeys.newTagText, ":"), /*#__PURE__*/React.createElement(Box, {
310
- shrink: true,
311
- "data-title": name,
312
- className: `${style.dotted} ${style.newTagText} `,
313
- dataId: `${dataId}_new_tag_text`
314
- }, name)) : null));
315
- })) : /*#__PURE__*/React.createElement(Box, {
316
- flexible: true,
317
- dataId: `${dataId}_empty`
318
- }, /*#__PURE__*/React.createElement(Container, {
319
- className: style.searchEmpty
320
- }, /*#__PURE__*/React.createElement(CommonEmptyState, {
321
- title: i18nKeys.emptyTitleText,
322
- description: i18nKeys.emptyDescription,
323
- size: "small",
324
- getEmptyState: this.emptySearchSVG
325
- })))))));
326
- }) : null);
308
+ "data-title": name,
309
+ className: `${style.dotted} ${style.newTagText} `,
310
+ dataId: `${dataId}_new_tag_text`
311
+ }, name)) : null));
312
+ })) : /*#__PURE__*/React.createElement(Box, {
313
+ flexible: true,
314
+ dataId: `${dataId}_empty`
315
+ }, /*#__PURE__*/React.createElement(Container, {
316
+ className: style.searchEmpty
317
+ }, /*#__PURE__*/React.createElement(CommonEmptyState, {
318
+ title: i18nKeys.emptyTitleText,
319
+ description: i18nKeys.emptyDescription,
320
+ size: "small",
321
+ getEmptyState: this.emptySearchSVG
322
+ })))))))) : null);
327
323
  }
328
324
 
329
325
  }