@zohodesk/dot 1.9.12 → 1.9.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 (167) hide show
  1. package/README.md +19 -6
  2. package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +7 -7
  3. package/assets/Appearance/dark/themes/blue/blue_DotCTA_DarkModifyCategory.module.css +13 -0
  4. package/assets/Appearance/dark/themes/green/green_DotCTA_DarkModifyCategory.module.css +13 -0
  5. package/assets/Appearance/dark/themes/orange/orange_DotCTA_DarkModifyCategory.module.css +13 -0
  6. package/assets/Appearance/dark/themes/red/red_DotCTA_DarkModifyCategory.module.css +13 -0
  7. package/assets/Appearance/dark/themes/yellow/yellow_DotCTA_DarkModifyCategory.module.css +13 -0
  8. package/assets/Appearance/light/mode/Dot_LightMode.module.css +13 -13
  9. package/assets/Appearance/light/themes/blue/blue_DotCTA_LightModifyCategory.module.css +13 -0
  10. package/assets/Appearance/light/themes/green/green_DotCTA_LightModifyCategory.module.css +13 -0
  11. package/assets/Appearance/light/themes/orange/orange_DotCTA_LightModifyCategory.module.css +13 -0
  12. package/assets/Appearance/light/themes/red/red_DotCTA_LightModifyCategory.module.css +13 -0
  13. package/assets/Appearance/light/themes/yellow/yellow_DotCTA_LightModifyCategory.module.css +13 -0
  14. package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +5 -5
  15. package/assets/Appearance/pureDark/themes/blue/blue_DotCTA_PureDarkModifyCategory.module.css +13 -0
  16. package/assets/Appearance/pureDark/themes/green/green_DotCTA_PureDarkModifyCategory.module.css +13 -0
  17. package/assets/Appearance/pureDark/themes/orange/orange_DotCTA_PureDarkModifyCategory.module.css +13 -0
  18. package/assets/Appearance/pureDark/themes/red/red_DotCTA_PureDarkModifyCategory.module.css +13 -0
  19. package/assets/Appearance/pureDark/themes/yellow/yellow_DotCTA_PureDarkModifyCategory.module.css +13 -0
  20. package/cbt.config.js +12 -3
  21. package/es/ActionButton/__tests__/ActionButton.spec.js +4 -5
  22. package/es/AttachmentViewer/AttachmentImage.js +3 -1
  23. package/es/AttachmentViewer/AttachmentViewer.js +340 -273
  24. package/es/AttachmentViewer/AttachmentViewer.module.css +8 -15
  25. package/es/AttachmentViewer/__tests__/AttachmentViewer.spec.js +104 -100
  26. package/es/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  27. package/es/AttachmentViewer/props/defaultProps.js +4 -2
  28. package/es/AttachmentViewer/props/propTypes.js +9 -2
  29. package/es/AttachmentViewer/utils.js +6 -7
  30. package/es/AudioPlayer/utils/utils.js +2 -5
  31. package/es/DotProvider/hooks/useDotProvider.js +14 -15
  32. package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +12 -13
  33. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +2 -1
  34. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +2 -1
  35. package/es/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +2 -1
  36. package/es/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +2 -1
  37. package/es/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +2 -1
  38. package/es/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +2 -1
  39. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +2 -1
  40. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +2 -1
  41. package/es/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +2 -1
  42. package/es/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +2 -1
  43. package/es/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +2 -1
  44. package/es/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +2 -1
  45. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +2 -1
  46. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +2 -1
  47. package/es/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +2 -1
  48. package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -0
  49. package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -0
  50. package/es/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -0
  51. package/es/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -0
  52. package/es/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -0
  53. package/es/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -0
  54. package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -0
  55. package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -0
  56. package/es/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -0
  57. package/es/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -0
  58. package/es/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -0
  59. package/es/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -0
  60. package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -0
  61. package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -0
  62. package/es/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -0
  63. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +1 -2
  64. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +1 -2
  65. package/es/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +1 -2
  66. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +1 -2
  67. package/es/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +1 -2
  68. package/es/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +1 -2
  69. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +1 -2
  70. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +1 -2
  71. package/es/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +1 -2
  72. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +1 -2
  73. package/es/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +1 -2
  74. package/es/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +1 -2
  75. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +1 -2
  76. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +1 -2
  77. package/es/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +1 -2
  78. package/es/DotProvider/utils/assetPromiseHandlers/themeAppearanceAssetPromise.js +3 -4
  79. package/es/DotProvider/utils/assetPromiseHandlers/themeColorAssetPromise.js +4 -5
  80. package/es/DotProvider/utils/errorValidation.js +5 -6
  81. package/es/DotProvider/utils/getAssetsImportPromises.js +4 -5
  82. package/es/Drawer/Drawer.js +6 -8
  83. package/es/FreezeLayer/css/cssJSLogic.js +4 -5
  84. package/es/Hooks/Dragger/useDragger.js +5 -6
  85. package/es/Hooks/Dragger/utils/DraggerUtil.js +7 -8
  86. package/es/Hooks/useFreezeLayer.js +4 -5
  87. package/es/Link/Link.js +4 -3
  88. package/es/Link/props/propTypes.js +1 -0
  89. package/es/Onboarding/CarouselDots/CarouselDots.js +29 -32
  90. package/es/Onboarding/Onboarding.js +23 -24
  91. package/es/Onboarding/hooks/useOnboarding.js +4 -5
  92. package/es/Onboarding/hooks/useOnboardingSlider.js +5 -6
  93. package/es/deprecated/SelectDropdown/SelectDropdown.js +43 -47
  94. package/es/dropdown/ToggleDropDown/ToggleDropDown.js +214 -225
  95. package/es/errorstate/Inconvenience/Inconvenience.js +32 -36
  96. package/es/errorstate/NoRequestFound/NoRequestFound.js +32 -36
  97. package/es/errorstate/PermissionPlay/PermissionPlay.js +31 -35
  98. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +32 -36
  99. package/es/errorstate/UnableToProcess/UnableToProcess.js +32 -36
  100. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +32 -36
  101. package/es/errorstate/WillBack/WillBack.js +30 -34
  102. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +81 -85
  103. package/es/list/status/StatusDropdown/StatusDropdown.js +109 -113
  104. package/es/list/status/StatusDropdown/__tests__/StatusDropdown.spec.js +3 -4
  105. package/es/lookup/header/Search/Search.js +4 -5
  106. package/es/lookup/header/Search/__tests__/Search.spec.js +3 -4
  107. package/es/lookup/header/ViewDropDown/ViewDropDown.js +67 -75
  108. package/es/utils/General.js +2 -7
  109. package/es/utils/editorUtils.js +1 -5
  110. package/es/version2/lookup/AlertHeader/css/cssJSLogic.js +4 -5
  111. package/es/version2/notification/DesktopNotification/DesktopNotification.js +59 -63
  112. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +40 -44
  113. package/lib/AttachmentViewer/AttachmentImage.js +3 -1
  114. package/lib/AttachmentViewer/AttachmentViewer.js +158 -82
  115. package/lib/AttachmentViewer/AttachmentViewer.module.css +8 -15
  116. package/lib/AttachmentViewer/__tests__/AttachmentViewer.spec.js +100 -100
  117. package/lib/AttachmentViewer/__tests__/__snapshots__/AttachmentViewer.spec.js.snap +778 -1
  118. package/lib/AttachmentViewer/props/defaultProps.js +6 -2
  119. package/lib/AttachmentViewer/props/propTypes.js +9 -2
  120. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Dark_Component.js +3 -1
  121. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_Light_Component.js +3 -1
  122. package/lib/DotProvider/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +3 -1
  123. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Dark_Component.js +3 -1
  124. package/lib/DotProvider/libraryChunks/themes/component/green/Green_Light_Component.js +3 -1
  125. package/lib/DotProvider/libraryChunks/themes/component/green/Green_PureDark_Component.js +3 -1
  126. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Dark_Component.js +3 -1
  127. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_Light_Component.js +3 -1
  128. package/lib/DotProvider/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +3 -1
  129. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Dark_Component.js +3 -1
  130. package/lib/DotProvider/libraryChunks/themes/component/red/Red_Light_Component.js +3 -1
  131. package/lib/DotProvider/libraryChunks/themes/component/red/Red_PureDark_Component.js +3 -1
  132. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +3 -1
  133. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +3 -1
  134. package/lib/DotProvider/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +3 -1
  135. package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +2 -0
  136. package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +2 -0
  137. package/lib/DotProvider/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +2 -0
  138. package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Dark_Dot.js +2 -0
  139. package/lib/DotProvider/libraryChunks/themes/dot/green/Green_Light_Dot.js +2 -0
  140. package/lib/DotProvider/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +2 -0
  141. package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +2 -0
  142. package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +2 -0
  143. package/lib/DotProvider/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +2 -0
  144. package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Dark_Dot.js +2 -0
  145. package/lib/DotProvider/libraryChunks/themes/dot/red/Red_Light_Dot.js +2 -0
  146. package/lib/DotProvider/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +2 -0
  147. package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +2 -0
  148. package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +2 -0
  149. package/lib/DotProvider/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +2 -0
  150. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Dark_Variables.js +1 -3
  151. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_Light_Variables.js +1 -3
  152. package/lib/DotProvider/libraryChunks/themes/variables/blue/Blue_PureDark_Variables.js +1 -3
  153. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Dark_Variables.js +1 -3
  154. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_Light_Variables.js +1 -3
  155. package/lib/DotProvider/libraryChunks/themes/variables/green/Green_PureDark_Variables.js +1 -3
  156. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Dark_Variables.js +1 -3
  157. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_Light_Variables.js +1 -3
  158. package/lib/DotProvider/libraryChunks/themes/variables/orange/Orange_PureDark_Variables.js +1 -3
  159. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Dark_Variables.js +1 -3
  160. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_Light_Variables.js +1 -3
  161. package/lib/DotProvider/libraryChunks/themes/variables/red/Red_PureDark_Variables.js +1 -3
  162. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Dark_Variables.js +1 -3
  163. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_Light_Variables.js +1 -3
  164. package/lib/DotProvider/libraryChunks/themes/variables/yellow/Yellow_PureDark_Variables.js +1 -3
  165. package/lib/Link/Link.js +4 -3
  166. package/lib/Link/props/propTypes.js +1 -0
  167. package/package.json +12 -11
@@ -5,38 +5,35 @@ import { defaultProps } from "./props/defaultProps";
5
5
  import CarouselDot from "./CarouselDot/CarouselDot";
6
6
  import style from "./css/CarouselDots.module.css";
7
7
 
8
- const CarouselDots = _ref => {
9
- let {
10
- sliderDetails,
11
- currentSliderIndex,
12
- isAnimationPaused,
13
- onClick,
14
- onMouseEnter,
15
- onMouseLeave,
16
- testId,
17
- customId
18
- } = _ref;
19
- return /*#__PURE__*/React.createElement(Flex, {
20
- $ui_displayMode: "flex",
21
- $ui_alignItems: "center",
22
- $ui_className: style.btnCnt,
23
- $ui_justifyContent: "center",
24
- $tagAttributes_container: {
25
- onMouseEnter: onMouseEnter,
26
- onMouseLeave: onMouseLeave
27
- },
28
- customId: customId,
29
- testId: testId
30
- }, sliderDetails.map((data, index) => /*#__PURE__*/React.createElement(CarouselDot, {
31
- key: data.tabName,
32
- isActive: index === currentSliderIndex,
33
- isAnimationPaused: isAnimationPaused,
34
- onClick: onClick,
35
- index: index,
36
- customId: customId + '_' + index,
37
- testId: testId + '_' + index
38
- })));
39
- };
8
+ const CarouselDots = ({
9
+ sliderDetails,
10
+ currentSliderIndex,
11
+ isAnimationPaused,
12
+ onClick,
13
+ onMouseEnter,
14
+ onMouseLeave,
15
+ testId,
16
+ customId
17
+ }) => /*#__PURE__*/React.createElement(Flex, {
18
+ $ui_displayMode: "flex",
19
+ $ui_alignItems: "center",
20
+ $ui_className: style.btnCnt,
21
+ $ui_justifyContent: "center",
22
+ $tagAttributes_container: {
23
+ onMouseEnter: onMouseEnter,
24
+ onMouseLeave: onMouseLeave
25
+ },
26
+ customId: customId,
27
+ testId: testId
28
+ }, sliderDetails.map((data, index) => /*#__PURE__*/React.createElement(CarouselDot, {
29
+ key: data.tabName,
30
+ isActive: index === currentSliderIndex,
31
+ isAnimationPaused: isAnimationPaused,
32
+ onClick: onClick,
33
+ index: index,
34
+ customId: customId + '_' + index,
35
+ testId: testId + '_' + index
36
+ })));
40
37
 
41
38
  CarouselDots.propTypes = propTypes;
42
39
  CarouselDots.defaultProps = defaultProps;
@@ -33,30 +33,29 @@ import { DUMMY_OBJECT } from "../utils/General";
33
33
 
34
34
  import defaultStyle from "./css/Onboarding.module.css";
35
35
 
36
- const Onboarding = _ref => {
37
- let {
38
- hasCloseIcon,
39
- onClose,
40
- ribbonText,
41
- hasRibbon,
42
- videoLookupCloseText,
43
- customStyle,
44
- sliderData,
45
- isAutoPlayAnimation,
46
- hasBouncAnimationOnMount,
47
- customId,
48
- testId,
49
- hasExpandedButton,
50
- onPrimaryButtonClick,
51
- onSecondaryButtonClick,
52
- customProps,
53
- tagAttributes,
54
- a11yAttributes,
55
- closeIconTooltip,
56
- dragBoundaryLimit,
57
- isDraggable,
58
- position
59
- } = _ref;
36
+ const Onboarding = ({
37
+ hasCloseIcon,
38
+ onClose,
39
+ ribbonText,
40
+ hasRibbon,
41
+ videoLookupCloseText,
42
+ customStyle,
43
+ sliderData,
44
+ isAutoPlayAnimation,
45
+ hasBouncAnimationOnMount,
46
+ customId,
47
+ testId,
48
+ hasExpandedButton,
49
+ onPrimaryButtonClick,
50
+ onSecondaryButtonClick,
51
+ customProps,
52
+ tagAttributes,
53
+ a11yAttributes,
54
+ closeIconTooltip,
55
+ dragBoundaryLimit,
56
+ isDraggable,
57
+ position
58
+ }) => {
60
59
  const getNextIndex = useZIndex();
61
60
  const style = useMergeStyle(defaultStyle, customStyle);
62
61
  const {
@@ -2,11 +2,10 @@ import { useRef } from 'react';
2
2
  import useMergeState from '@zohodesk/hooks/es/utils/useMergeState';
3
3
  import useDragger from "../../Hooks/Dragger/useDragger";
4
4
 
5
- const useOnboarding = _ref => {
6
- let {
7
- dragBoundaryLimit,
8
- isDraggable
9
- } = _ref;
5
+ const useOnboarding = ({
6
+ dragBoundaryLimit,
7
+ isDraggable
8
+ }) => {
10
9
  const dragRef = useRef(null);
11
10
  useDragger({
12
11
  isActive: isDraggable,
@@ -1,12 +1,11 @@
1
1
  import { useState, useEffect, useCallback, useRef } from 'react';
2
2
  const autoplayDelay = 50; // 5000ms divided by 100 for smoother animation
3
3
 
4
- const useOnboardingSlider = _ref => {
5
- let {
6
- isAutoPlayAnimation,
7
- sliderData,
8
- animationClass
9
- } = _ref;
4
+ const useOnboardingSlider = ({
5
+ isAutoPlayAnimation,
6
+ sliderData,
7
+ animationClass
8
+ }) => {
10
9
  const [currentSlide, setCurrentSlide] = useState(0);
11
10
  const [autoplay, setAutoplay] = useState(true);
12
11
  const progressRef = useRef(0);
@@ -33,10 +33,9 @@ class SelectDropdown extends React.Component {
33
33
  togglePopup(e, 'bottomRight');
34
34
  }
35
35
 
36
- responsiveFunc(_ref) {
37
- let {
38
- mediaQueryOR
39
- } = _ref;
36
+ responsiveFunc({
37
+ mediaQueryOR
38
+ }) {
40
39
  return {
41
40
  tabletMode: mediaQueryOR([{
42
41
  maxWidth: 700
@@ -78,49 +77,46 @@ class SelectDropdown extends React.Component {
78
77
  })), /*#__PURE__*/React.createElement(ResponsiveReceiver, {
79
78
  query: this.responsiveFunc,
80
79
  responsiveId: "Helmet"
81
- }, _ref2 => {
82
- let {
83
- tabletMode
84
- } = _ref2;
85
- return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
86
- size: "medium",
87
- boxPosition: "bottomRight",
88
- isArrow: true,
89
- isAnimate: true,
90
- right: "-25",
91
- isActive: isPopupOpen && isPopupReady,
92
- getRef: getContainerRef,
93
- isResponsivePadding: true,
94
- alignBox: "row"
95
- }, /*#__PURE__*/React.createElement(Box, {
96
- flexible: true
97
- }, /*#__PURE__*/React.createElement(Container, {
98
- alignBox: "column",
99
- className: `${tabletMode ? '' : style.rulesPopup}`
100
- }, /*#__PURE__*/React.createElement(Box, {
101
- className: style.rulesDepart
102
- }, /*#__PURE__*/React.createElement(DropDownHeading, {
103
- text: title
104
- })), isSearchRequired ? /*#__PURE__*/React.createElement(Box, {
105
- className: style.searchDepart
106
- }, /*#__PURE__*/React.createElement(TextBox, {
107
- name: "Test",
108
- id: "Test",
109
- maxLength: "150",
110
- placeHolder: "Search Department"
111
- })) : null, /*#__PURE__*/React.createElement(Box, {
112
- scroll: "vertical",
113
- flexible: true,
114
- shrink: true
115
- }, options && options.length && options.map((obj, index) => /*#__PURE__*/React.createElement(ListItem, {
116
- key: index,
117
- autoHover: true,
118
- value: obj[valueKey],
119
- active: selectedId == obj[idKey],
120
- id: obj[idKey],
121
- onClick: this.handleClick
122
- }))))));
123
- }));
80
+ }, ({
81
+ tabletMode
82
+ }) => /*#__PURE__*/React.createElement(ResponsiveDropBox, {
83
+ size: "medium",
84
+ boxPosition: "bottomRight",
85
+ isArrow: true,
86
+ isAnimate: true,
87
+ right: "-25",
88
+ isActive: isPopupOpen && isPopupReady,
89
+ getRef: getContainerRef,
90
+ isResponsivePadding: true,
91
+ alignBox: "row"
92
+ }, /*#__PURE__*/React.createElement(Box, {
93
+ flexible: true
94
+ }, /*#__PURE__*/React.createElement(Container, {
95
+ alignBox: "column",
96
+ className: `${tabletMode ? '' : style.rulesPopup}`
97
+ }, /*#__PURE__*/React.createElement(Box, {
98
+ className: style.rulesDepart
99
+ }, /*#__PURE__*/React.createElement(DropDownHeading, {
100
+ text: title
101
+ })), isSearchRequired ? /*#__PURE__*/React.createElement(Box, {
102
+ className: style.searchDepart
103
+ }, /*#__PURE__*/React.createElement(TextBox, {
104
+ name: "Test",
105
+ id: "Test",
106
+ maxLength: "150",
107
+ placeHolder: "Search Department"
108
+ })) : null, /*#__PURE__*/React.createElement(Box, {
109
+ scroll: "vertical",
110
+ flexible: true,
111
+ shrink: true
112
+ }, options && options.length && options.map((obj, index) => /*#__PURE__*/React.createElement(ListItem, {
113
+ key: index,
114
+ autoHover: true,
115
+ value: obj[valueKey],
116
+ active: selectedId == obj[idKey],
117
+ id: obj[idKey],
118
+ onClick: this.handleClick
119
+ }))))))));
124
120
  }
125
121
 
126
122
  }