@zohodesk/components 1.0.0-temp-220.8 → 1.0.0-temp-224

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 (297) hide show
  1. package/README.md +0 -1
  2. package/es/Accordion/Accordion.js +2 -2
  3. package/es/Accordion/AccordionItem.js +4 -4
  4. package/es/Accordion/__tests__/Accordion.spec.js +1 -1
  5. package/es/Accordion/__tests__/AccordionItem.spec.js +1 -1
  6. package/es/Accordion/index.js +2 -2
  7. package/es/Animation/Animation.js +3 -3
  8. package/es/Animation/__tests__/Animation.spec.js +1 -1
  9. package/es/Animation/utils.js +1 -1
  10. package/es/AppContainer/AppContainer.js +9 -9
  11. package/es/AppContainer/__tests__/AppContainer.spec.js +1 -1
  12. package/es/Avatar/Avatar.js +5 -5
  13. package/es/Avatar/__tests__/Avatar.spec.js +1 -1
  14. package/es/AvatarTeam/AvatarTeam.js +4 -4
  15. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -1
  16. package/es/AvatarTeam/props/propTypes.js +1 -1
  17. package/es/Button/Button.js +4 -4
  18. package/es/Button/__tests__/Button.spec.js +1 -1
  19. package/es/Button/index.js +2 -2
  20. package/es/Button/props/defaultProps.js +1 -1
  21. package/es/Buttongroup/Buttongroup.js +3 -3
  22. package/es/Buttongroup/__tests__/Buttongroup.spec.js +1 -1
  23. package/es/Card/Card.js +5 -5
  24. package/es/Card/__tests__/Card.spec.js +1 -1
  25. package/es/Card/index.js +4 -4
  26. package/es/CheckBox/CheckBox.js +6 -6
  27. package/es/CheckBox/__tests__/CheckBox.spec.js +1 -1
  28. package/es/DateTime/CalendarView.js +6 -6
  29. package/es/DateTime/DateTime.js +15 -15
  30. package/es/DateTime/DateTimePopupFooter.js +5 -5
  31. package/es/DateTime/DateTimePopupHeader.js +4 -4
  32. package/es/DateTime/DateWidget.js +17 -17
  33. package/es/DateTime/DaysRow.js +3 -3
  34. package/es/DateTime/Time.js +5 -5
  35. package/es/DateTime/YearView.js +6 -6
  36. package/es/DateTime/__tests__/CalendarView.spec.js +1 -1
  37. package/es/DateTime/__tests__/DateTime.spec.js +1 -1
  38. package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +1 -1
  39. package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +1 -1
  40. package/es/DateTime/__tests__/DateWidget.spec.js +1 -1
  41. package/es/DateTime/__tests__/DaysRow.spec.js +1 -1
  42. package/es/DateTime/__tests__/Time.spec.js +1 -1
  43. package/es/DateTime/__tests__/YearView.spec.js +1 -1
  44. package/es/DateTime/dateFormatUtils/dateFormat.js +4 -4
  45. package/es/DateTime/dateFormatUtils/dayChange.js +2 -2
  46. package/es/DateTime/dateFormatUtils/index.js +3 -3
  47. package/es/DateTime/dateFormatUtils/monthChange.js +2 -2
  48. package/es/DateTime/dateFormatUtils/timeChange.js +2 -2
  49. package/es/DateTime/dateFormatUtils/yearChange.js +2 -2
  50. package/es/DateTime/index.js +1 -1
  51. package/es/DateTime/props/propTypes.js +1 -1
  52. package/es/DateTime/validator.js +2 -2
  53. package/es/DropBox/DropBox.js +9 -9
  54. package/es/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  55. package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +1 -1
  56. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
  57. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +1 -1
  58. package/es/DropBox/__tests__/DropBox.spec.js +1 -1
  59. package/es/DropBox/css/cssJSLogic.js +1 -1
  60. package/es/DropBox/props/defaultProps.js +1 -1
  61. package/es/DropBox/props/propTypes.js +1 -1
  62. package/es/DropBox/utils/isMobilePopover.js +1 -1
  63. package/es/DropDown/DropDown.js +4 -4
  64. package/es/DropDown/DropDownHeading.js +3 -3
  65. package/es/DropDown/DropDownItem.js +3 -3
  66. package/es/DropDown/DropDownSearch.js +4 -4
  67. package/es/DropDown/DropDownSeparator.js +2 -2
  68. package/es/DropDown/__tests__/DropDown.spec.js +1 -1
  69. package/es/DropDown/__tests__/DropDownHeading.spec.js +1 -1
  70. package/es/DropDown/__tests__/DropDownItem.spec.js +1 -1
  71. package/es/DropDown/__tests__/DropDownSearch.spec.js +1 -1
  72. package/es/DropDown/__tests__/DropDownSeparator.spec.js +1 -1
  73. package/es/DropDown/index.js +7 -7
  74. package/es/DropDown/props/propTypes.js +1 -1
  75. package/es/Heading/Heading.js +4 -4
  76. package/es/Heading/__tests__/Heading.spec.js +1 -1
  77. package/es/Label/Label.js +4 -4
  78. package/es/Label/__tests__/Label.spec.js +1 -1
  79. package/es/Layout/Box.js +4 -4
  80. package/es/Layout/Container.js +4 -4
  81. package/es/Layout/__tests__/Box.spec.js +1 -1
  82. package/es/Layout/__tests__/Container.spec.js +1 -1
  83. package/es/Layout/index.js +2 -2
  84. package/es/ListItem/ListContainer.js +6 -6
  85. package/es/ListItem/ListItem.js +5 -5
  86. package/es/ListItem/ListItemWithAvatar.js +7 -7
  87. package/es/ListItem/ListItemWithCheckBox.js +6 -6
  88. package/es/ListItem/ListItemWithIcon.js +5 -5
  89. package/es/ListItem/ListItemWithRadio.js +6 -6
  90. package/es/ListItem/__tests__/ListContainer.spec.js +1 -1
  91. package/es/ListItem/__tests__/ListItem.spec.js +1 -1
  92. package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +1 -1
  93. package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +1 -1
  94. package/es/ListItem/__tests__/ListItemWithIcon.spec.js +1 -1
  95. package/es/ListItem/__tests__/ListItemWithRadio.spec.js +1 -1
  96. package/es/ListItem/index.js +6 -6
  97. package/es/ListItem/props/propTypes.js +2 -2
  98. package/es/Modal/Modal.js +3 -3
  99. package/es/Modal/__tests__/Modal.spec.js +1 -1
  100. package/es/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
  101. package/es/MultiSelect/AdvancedMultiSelect.js +17 -17
  102. package/es/MultiSelect/EmptyState.js +3 -3
  103. package/es/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  104. package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +1 -1
  105. package/es/MultiSelect/MultiSelect.js +20 -20
  106. package/es/MultiSelect/MultiSelectHeader.js +4 -4
  107. package/es/MultiSelect/MultiSelectWithAvatar.js +16 -16
  108. package/es/MultiSelect/SelectedOptions.js +5 -5
  109. package/es/MultiSelect/Suggestions.js +6 -6
  110. package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +1 -1
  111. package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +1 -1
  112. package/es/MultiSelect/__tests__/EmptyState.spec.js +1 -1
  113. package/es/MultiSelect/__tests__/MultiSelect.spec.js +1 -1
  114. package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +1 -1
  115. package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +1 -1
  116. package/es/MultiSelect/__tests__/SelectedOptions.spec.js +1 -1
  117. package/es/MultiSelect/__tests__/Suggestions.spec.js +1 -1
  118. package/es/MultiSelect/index.js +4 -4
  119. package/es/MultiSelect/props/defaultProps.js +1 -1
  120. package/es/PopOver/PopOver.js +6 -6
  121. package/es/PopOver/__tests__/PopOver.spec.js +1 -1
  122. package/es/PopOver/index.js +3 -3
  123. package/es/Popup/Popup.js +46 -114
  124. package/es/Provider/AvatarSize.js +1 -1
  125. package/es/Provider/Config.js +1 -2
  126. package/es/Provider/CssProvider.js +1 -1
  127. package/es/Provider/IdProvider.js +2 -2
  128. package/es/Provider/LibraryContext.js +2 -2
  129. package/es/Provider/ZindexProvider.js +2 -2
  130. package/es/Provider/index.js +4 -4
  131. package/es/Radio/Radio.js +6 -6
  132. package/es/Radio/__tests__/Radio.spec.js +1 -1
  133. package/es/Responsive/CustomResponsive.js +7 -7
  134. package/es/Responsive/ResizeComponent.js +2 -2
  135. package/es/Responsive/Responsive.js +6 -6
  136. package/es/Responsive/index.js +3 -3
  137. package/es/Responsive/utils/index.js +1 -1
  138. package/es/Responsive/windowResizeObserver.js +1 -1
  139. package/es/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  140. package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +1 -1
  141. package/es/ResponsiveDropBox/props/propTypes.js +1 -1
  142. package/es/Ribbon/Ribbon.js +3 -3
  143. package/es/Ribbon/__tests__/Ribbon.spec.js +1 -1
  144. package/es/RippleEffect/RippleEffect.js +4 -4
  145. package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
  146. package/es/Select/GroupSelect.js +16 -16
  147. package/es/Select/Select.js +15 -15
  148. package/es/Select/SelectWithAvatar.js +17 -17
  149. package/es/Select/SelectWithIcon.js +13 -13
  150. package/es/Select/__tests__/GroupSelect.spec.js +1 -1
  151. package/es/Select/__tests__/Select.spec.js +1 -1
  152. package/es/Select/__tests__/SelectWithAvatar.spec.js +1 -1
  153. package/es/Select/__tests__/SelectWithIcon.spec.js +1 -1
  154. package/es/Select/index.js +4 -4
  155. package/es/Select/props/defaultProps.js +1 -1
  156. package/es/Stencils/Stencils.js +3 -3
  157. package/es/Stencils/__tests__/Stencils.spec.js +1 -1
  158. package/es/Switch/Switch.js +5 -5
  159. package/es/Switch/__tests__/Switch.spec.js +1 -1
  160. package/es/Tab/Tab.js +5 -5
  161. package/es/Tab/TabContent.js +4 -4
  162. package/es/Tab/TabContentWrapper.js +3 -3
  163. package/es/Tab/TabWrapper.js +6 -5
  164. package/es/Tab/Tabs.js +13 -13
  165. package/es/Tab/__tests__/Tab.spec.js +1 -1
  166. package/es/Tab/__tests__/TabContent.spec.js +1 -1
  167. package/es/Tab/__tests__/TabContentWrapper.spec.js +1 -1
  168. package/es/Tab/__tests__/TabWrapper.spec.js +1 -1
  169. package/es/Tab/__tests__/Tabs.spec.js +1 -1
  170. package/es/Tab/index.js +5 -5
  171. package/es/Tag/Tag.js +7 -7
  172. package/es/Tag/__tests__/Tag.spec.js +1 -1
  173. package/es/Tag/props/propTypes.js +1 -1
  174. package/es/TextBox/TextBox.js +3 -3
  175. package/es/TextBox/__tests__/TextBox.spec.js +1 -1
  176. package/es/TextBoxIcon/TextBoxIcon.js +6 -6
  177. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -1
  178. package/es/TextBoxIcon/props/propTypes.js +1 -1
  179. package/es/Textarea/Textarea.js +3 -3
  180. package/es/Textarea/__tests__/Textarea.spec.js +1 -1
  181. package/es/Tooltip/Tooltip.js +6 -6
  182. package/es/Typography/Typography.js +4 -4
  183. package/es/Typography/css/cssJSLogic.js +1 -1
  184. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  185. package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +1 -1
  186. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  187. package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +1 -1
  188. package/es/VelocityAnimation/index.js +2 -2
  189. package/es/css.js +37 -37
  190. package/es/deprecated/PortalLayer/PortalLayer.js +3 -3
  191. package/es/index.js +39 -39
  192. package/es/semantic/Button/Button.js +3 -3
  193. package/es/semantic/Button/__tests__/Button.spec.js +1 -1
  194. package/es/semantic/index.js +1 -1
  195. package/es/utils/Common.js +1 -1
  196. package/es/utils/ContextOptimizer.js +1 -1
  197. package/es/utils/cssUtils.js +1 -1
  198. package/es/utils/datetime/common.js +1 -1
  199. package/es/utils/dropDownUtils.js +1 -1
  200. package/es/utils/index.js +1 -1
  201. package/es/v1/Accordion/Accordion.js +2 -2
  202. package/es/v1/Accordion/AccordionItem.js +4 -4
  203. package/es/v1/Accordion/index.js +2 -2
  204. package/es/v1/Animation/Animation.js +3 -3
  205. package/es/v1/Animation/utils.js +1 -1
  206. package/es/v1/AppContainer/AppContainer.js +8 -8
  207. package/es/v1/Avatar/Avatar.js +5 -5
  208. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  209. package/es/v1/Button/Button.js +4 -4
  210. package/es/v1/Button/props/defaultProps.js +1 -1
  211. package/es/v1/Buttongroup/Buttongroup.js +3 -3
  212. package/es/v1/Card/Card.js +5 -5
  213. package/es/v1/Card/index.js +4 -4
  214. package/es/v1/CheckBox/CheckBox.js +6 -6
  215. package/es/v1/DateTime/CalendarView.js +7 -7
  216. package/es/v1/DateTime/DateTime.js +15 -15
  217. package/es/v1/DateTime/DateTimePopupFooter.js +5 -5
  218. package/es/v1/DateTime/DateTimePopupHeader.js +4 -4
  219. package/es/v1/DateTime/DateWidget.js +17 -17
  220. package/es/v1/DateTime/DaysRow.js +3 -3
  221. package/es/v1/DateTime/Time.js +5 -5
  222. package/es/v1/DateTime/YearView.js +6 -6
  223. package/es/v1/DateTime/index.js +1 -1
  224. package/es/v1/DateTime/props/propTypes.js +1 -1
  225. package/es/v1/DropBox/DropBox.js +9 -9
  226. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  227. package/es/v1/DropBox/props/defaultProps.js +1 -1
  228. package/es/v1/DropBox/props/propTypes.js +1 -1
  229. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  230. package/es/v1/DropDown/DropDown.js +4 -4
  231. package/es/v1/DropDown/DropDownHeading.js +3 -3
  232. package/es/v1/DropDown/DropDownItem.js +3 -3
  233. package/es/v1/DropDown/DropDownSearch.js +4 -4
  234. package/es/v1/DropDown/DropDownSeparator.js +2 -2
  235. package/es/v1/DropDown/props/propTypes.js +1 -1
  236. package/es/v1/Heading/Heading.js +4 -4
  237. package/es/v1/Label/Label.js +4 -4
  238. package/es/v1/Layout/Box.js +4 -4
  239. package/es/v1/Layout/Container.js +4 -4
  240. package/es/v1/Layout/index.js +2 -2
  241. package/es/v1/ListItem/ListContainer.js +6 -6
  242. package/es/v1/ListItem/ListItem.js +5 -5
  243. package/es/v1/ListItem/ListItemWithAvatar.js +7 -7
  244. package/es/v1/ListItem/ListItemWithCheckBox.js +6 -6
  245. package/es/v1/ListItem/ListItemWithIcon.js +5 -5
  246. package/es/v1/ListItem/ListItemWithRadio.js +6 -6
  247. package/es/v1/ListItem/index.js +6 -6
  248. package/es/v1/Modal/Modal.js +3 -3
  249. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
  250. package/es/v1/MultiSelect/AdvancedMultiSelect.js +17 -17
  251. package/es/v1/MultiSelect/EmptyState.js +3 -3
  252. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  253. package/es/v1/MultiSelect/MultiSelect.js +19 -19
  254. package/es/v1/MultiSelect/MultiSelectHeader.js +4 -4
  255. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +16 -16
  256. package/es/v1/MultiSelect/SelectedOptions.js +5 -5
  257. package/es/v1/MultiSelect/Suggestions.js +6 -6
  258. package/es/v1/MultiSelect/index.js +4 -4
  259. package/es/v1/MultiSelect/props/defaultProps.js +1 -1
  260. package/es/v1/PopOver/PopOver.js +6 -6
  261. package/es/v1/Popup/Popup.js +3 -3
  262. package/es/v1/Radio/Radio.js +5 -5
  263. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  264. package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
  265. package/es/v1/Ribbon/Ribbon.js +3 -3
  266. package/es/v1/RippleEffect/RippleEffect.js +4 -4
  267. package/es/v1/Select/GroupSelect.js +16 -16
  268. package/es/v1/Select/Select.js +15 -15
  269. package/es/v1/Select/SelectWithAvatar.js +17 -17
  270. package/es/v1/Select/SelectWithIcon.js +13 -13
  271. package/es/v1/Select/index.js +4 -4
  272. package/es/v1/Select/props/defaultProps.js +1 -1
  273. package/es/v1/Stencils/Stencils.js +3 -3
  274. package/es/v1/Switch/Switch.js +5 -5
  275. package/es/v1/Tab/Tab.js +5 -5
  276. package/es/v1/Tab/TabContent.js +4 -4
  277. package/es/v1/Tab/TabContentWrapper.js +3 -3
  278. package/es/v1/Tab/TabWrapper.js +3 -3
  279. package/es/v1/Tab/Tabs.js +13 -13
  280. package/es/v1/Tab/index.js +5 -5
  281. package/es/v1/Tag/Tag.js +7 -7
  282. package/es/v1/TextBox/TextBox.js +3 -3
  283. package/es/v1/TextBoxIcon/TextBoxIcon.js +6 -6
  284. package/es/v1/TextBoxIcon/props/propTypes.js +1 -1
  285. package/es/v1/Textarea/Textarea.js +3 -3
  286. package/es/v1/Tooltip/Tooltip.js +6 -6
  287. package/es/v1/Typography/Typography.js +4 -4
  288. package/es/v1/Typography/css/cssJSLogic.js +1 -1
  289. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  290. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  291. package/es/v1/semantic/Button/Button.js +3 -3
  292. package/es/v1/semantic/index.js +1 -1
  293. package/lib/Popup/Popup.js +92 -168
  294. package/lib/Provider/Config.js +1 -2
  295. package/lib/Tab/TabWrapper.js +3 -2
  296. package/package.json +4 -4
  297. package/result.json +1 -1
@@ -1,5 +1,5 @@
1
- export { default as TabWrapper } from "./TabWrapper";
2
- export { default as TabContentWrapper } from "./TabContentWrapper";
3
- export { default as TabContent } from "./TabContent";
4
- export { default as Tabs } from "./Tabs";
5
- export { default as Tab } from "./Tab";
1
+ export { default as TabWrapper } from './TabWrapper';
2
+ export { default as TabContentWrapper } from './TabContentWrapper';
3
+ export { default as TabContent } from './TabContent';
4
+ export { default as Tabs } from './Tabs';
5
+ export { default as Tab } from './Tab';
package/es/v1/Tag/Tag.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import React, { memo } from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
4
  import { Icon } from '@zohodesk/icons';
5
- import Avatar from "../Avatar/Avatar";
6
- import { Container } from "../Layout";
7
- import Button from "../semantic/Button/Button";
8
- import { useUniqueId } from "../../Provider/IdProvider";
9
- import style from "../../Tag/Tag.module.css";
5
+ import Avatar from '../Avatar/Avatar';
6
+ import { Container } from '../Layout';
7
+ import Button from '../semantic/Button/Button';
8
+ import { useUniqueId } from '../../Provider/IdProvider';
9
+ import style from '../../Tag/Tag.module.css';
10
10
  /*
11
11
  * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
12
12
  * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
@@ -1,7 +1,7 @@
1
1
  import React, { memo, useRef, useCallback } from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
4
- import style from "../../TextBox/TextBox.module.css";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
+ import style from '../../TextBox/TextBox.module.css';
5
5
 
6
6
  function TextBox(props) {
7
7
  let {
@@ -1,11 +1,11 @@
1
1
  import React, { useState, useRef, useCallback } from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
4
- import TextBox from "../TextBox/TextBox";
5
- import { Container, Box } from "../Layout";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
+ import TextBox from '../TextBox/TextBox';
5
+ import { Container, Box } from '../Layout';
6
6
  import { Icon } from '@zohodesk/icons';
7
- import btnStyle from "../../semantic/Button/semanticButton.module.css";
8
- import style from "../../TextBoxIcon/TextBoxIcon.module.css";
7
+ import btnStyle from '../../semantic/Button/semanticButton.module.css';
8
+ import style from '../../TextBoxIcon/TextBoxIcon.module.css';
9
9
  /* eslint-disable react/forbid-component-props */
10
10
 
11
11
  export default function TextBoxIcon(props) {
@@ -1,5 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
- import { propTypes as TextBox_propTypes } from "../../TextBox/props/propTypes";
2
+ import { propTypes as TextBox_propTypes } from '../../TextBox/props/propTypes';
3
3
  export const propTypes = { ...TextBox_propTypes,
4
4
  borderColor: PropTypes.oneOf(['transparent', 'default', 'error']),
5
5
  children: PropTypes.node,
@@ -1,7 +1,7 @@
1
1
  import React, { useRef } from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
4
- import style from "../../Textarea/Textarea.module.css";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
+ import style from '../../Textarea/Textarea.module.css';
5
5
  export default function Textarea(props) {
6
6
  let {
7
7
  size,
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
4
- import { getLibraryConfig } from "../../Provider/Config";
5
- import ResizeObserver from "../../Responsive/ResizeObserver";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
+ import { getLibraryConfig } from '../../Provider/Config';
5
+ import ResizeObserver from '../../Responsive/ResizeObserver';
6
6
  import selectn from 'selectn';
7
- import { whiteSpaceClassMapping } from "../../utils/cssUtils";
8
- import style from "../../Tooltip/Tooltip.module.css";
7
+ import { whiteSpaceClassMapping } from '../../utils/cssUtils';
8
+ import style from '../../Tooltip/Tooltip.module.css';
9
9
  export default class Tooltip extends React.Component {
10
10
  constructor(props) {
11
11
  super(props);
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
4
- import cssJSLogic from "./css/cssJSLogic";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
+ import cssJSLogic from './css/cssJSLogic';
5
5
  import { mergeStyle } from '@zohodesk/utils';
6
- import defaultStyle from "./css/v1_Typography.module.css";
6
+ import defaultStyle from './css/v1_Typography.module.css';
7
7
 
8
8
  const Typography = props => {
9
9
  const {
@@ -1,5 +1,5 @@
1
1
  import { compileClassNames } from '@zohodesk/utils';
2
- import { letterspacingMapping, lineheightMapping } from "../utils";
2
+ import { letterspacingMapping, lineheightMapping } from '../utils';
3
3
  export default function cssJSLogic(_ref) {
4
4
  let {
5
5
  props,
@@ -1,9 +1,9 @@
1
1
  import React, { useContext } from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
4
  import { VelocityComponent } from 'velocity-react';
5
5
  import 'velocity-animate/velocity.ui';
6
- import LibraryContext from "../../../Provider/LibraryContextInit";
6
+ import LibraryContext from '../../../Provider/LibraryContextInit';
7
7
  export default function VelocityAnimation(props) {
8
8
  let {
9
9
  children,
@@ -1,9 +1,9 @@
1
1
  import React, { useContext } from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
4
  import { VelocityTransitionGroup } from 'velocity-react';
5
5
  import 'velocity-animate/velocity.ui';
6
- import LibraryContext from "../../../Provider/LibraryContextInit";
6
+ import LibraryContext from '../../../Provider/LibraryContextInit';
7
7
 
8
8
  function clearProps(props) {
9
9
  let newProps = Object.assign({}, props);
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
4
- import style from "../../../semantic/Button/semanticButton.module.css";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
+ import style from '../../../semantic/Button/semanticButton.module.css';
5
5
  export default function Button(props) {
6
6
  const {
7
7
  value,
@@ -1 +1 @@
1
- export { default as SemanticButton } from "./Button/Button";
1
+ export { default as SemanticButton } from './Button/Button';
@@ -29,8 +29,6 @@ var _isMobilePopover = _interopRequireDefault(require("../DropBox/utils/isMobile
29
29
 
30
30
  var _selectn = _interopRequireDefault(require("selectn"));
31
31
 
32
- var _Config = require("../Provider/Config.js");
33
-
34
32
  var _excluded = ["isMobile"];
35
33
 
36
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -99,53 +97,6 @@ var defaultState = {
99
97
  //{height: ‘’, width: ‘’,}
100
98
  isAbsolutePositioningNeeded: true
101
99
  };
102
- var SCROLL_BLOCK_EVENTS = Object.freeze([{
103
- name: 'wheel',
104
- handlerName: 'handleBlockScroll',
105
- options: {
106
- capture: true,
107
- passive: false
108
- }
109
- }, {
110
- name: 'touchmove',
111
- handlerName: 'handleBlockScroll',
112
- options: {
113
- capture: true,
114
- passive: false
115
- }
116
- }, {
117
- name: 'scroll',
118
- handlerName: 'handlePositionChange',
119
- options: {
120
- capture: true,
121
- passive: false
122
- }
123
- }, {
124
- name: 'keydown',
125
- handlerName: 'preventKeyboardScroll',
126
- options: {
127
- capture: true,
128
- passive: false
129
- }
130
- }]);
131
- var IFRAME_SCROLL_BLOCK_EVENTS = Object.freeze(SCROLL_BLOCK_EVENTS.filter(function (event) {
132
- return event.name !== 'keydown';
133
- }));
134
- var CLICK_EVENTS = Object.freeze([{
135
- name: 'click',
136
- handlerName: 'documentClickHandler',
137
- options: {
138
- capture: false,
139
- passive: false
140
- }
141
- }, {
142
- name: 'click',
143
- handlerName: 'documentClickHandler1',
144
- options: {
145
- capture: true,
146
- passive: false
147
- }
148
- }]);
149
100
  /* eslint-disable react/no-deprecated */
150
101
 
151
102
  /* eslint-disable react/prop-types */
@@ -221,7 +172,6 @@ var Popup = function Popup(Component) {
221
172
  _this.handleBlockScroll = _this.handleBlockScroll.bind(_assertThisInitialized(_this));
222
173
  _this.handlePositionChange = _this.handlePositionChange.bind(_assertThisInitialized(_this));
223
174
  _this.preventKeyboardScroll = _this.preventKeyboardScroll.bind(_assertThisInitialized(_this));
224
- _this.updateListeners = _this.updateListeners.bind(_assertThisInitialized(_this));
225
175
  _this.addScrollBlockListeners = _this.addScrollBlockListeners.bind(_assertThisInitialized(_this));
226
176
  _this.removeScrollBlockListeners = _this.removeScrollBlockListeners.bind(_assertThisInitialized(_this));
227
177
  _this.handleAddingScrollBlock = _this.handleAddingScrollBlock.bind(_assertThisInitialized(_this));
@@ -233,11 +183,8 @@ var Popup = function Popup(Component) {
233
183
  _this.setContainerDynamicPositioning = _this.setContainerDynamicPositioning.bind(_assertThisInitialized(_this));
234
184
  _this.updatePopupState = _this.updatePopupState.bind(_assertThisInitialized(_this));
235
185
  _this.handleScrollAndBlockEvents = _this.handleScrollAndBlockEvents.bind(_assertThisInitialized(_this));
236
- _this.handleIframeEventListeners = _this.handleIframeEventListeners.bind(_assertThisInitialized(_this));
237
186
  _this.handleDropElementStyleUpdate = _this.handleDropElementStyleUpdate.bind(_assertThisInitialized(_this));
238
- _this.getRootElement = _this.getRootElement.bind(_assertThisInitialized(_this));
239
187
  _this.positionRef = /*#__PURE__*/_react["default"].createRef();
240
- _this.rootElement = _this.getRootElement();
241
188
  _this.popupObserver = new _ResizeObserver["default"](_this.handlePopupResize); //dropBoxSize
242
189
 
243
190
  _this.size = null;
@@ -265,10 +212,11 @@ var Popup = function Popup(Component) {
265
212
  popups[group] = groupPopups;
266
213
 
267
214
  if (Object.keys(popups).length === 1 && groupPopups.length === 1) {
268
- this.updateListeners(true, CLICK_EVENTS, document);
215
+ document.addEventListener('click', this.documentClickHandler, false);
269
216
  document.addEventListener('keyup', this.documentKeyupHandler, false); // document.addEventListener('scroll', this.handleScroll, true);
270
217
 
271
218
  window.addEventListener('resize', this.handleResize);
219
+ document.addEventListener('click', this.documentClickHandler1, true);
272
220
  document.addEventListener('mousedown', this.handleDocumentMouseDown, true);
273
221
  document.addEventListener('focus', this.handleDocumentFocus, true);
274
222
  }
@@ -285,25 +233,10 @@ var Popup = function Popup(Component) {
285
233
  });
286
234
  }
287
235
  }
288
- }, {
289
- key: "getRootElement",
290
- value: function getRootElement() {
291
- var getRootElement = (0, _Config.getLibraryConfig)('getRootElement');
292
-
293
- if (getRootElement && typeof getRootElement === 'function') {
294
- var parent = getRootElement();
295
-
296
- if (parent) {
297
- return parent;
298
- }
299
- }
300
-
301
- return document;
302
- }
303
236
  }, {
304
237
  key: "handleScrollAndBlockEvents",
305
- value: function handleScrollAndBlockEvents(shouldAdd) {
306
- if (shouldAdd) {
238
+ value: function handleScrollAndBlockEvents(isPopupReady, isMobile) {
239
+ if (isPopupReady && !isMobile) {
307
240
  this.handleAddingScrollBlock();
308
241
  this.handleAddingScrollToUpdatePosition();
309
242
  } else {
@@ -311,19 +244,6 @@ var Popup = function Popup(Component) {
311
244
  this.handleRemovingScrollToUpdatePosition();
312
245
  }
313
246
  }
314
- }, {
315
- key: "handleIframeEventListeners",
316
- value: function handleIframeEventListeners(shouldAdd, eventList) {
317
- var _this2 = this;
318
-
319
- this.rootElement.querySelectorAll('iframe').forEach(function (frame) {
320
- var frameDocument = frame.contentDocument;
321
-
322
- if (frameDocument) {
323
- _this2.updateListeners(shouldAdd, eventList, frameDocument);
324
- }
325
- });
326
- }
327
247
  }, {
328
248
  key: "componentDidUpdate",
329
249
  value: function componentDidUpdate(prevProps, prevState) {
@@ -349,22 +269,20 @@ var Popup = function Popup(Component) {
349
269
  }
350
270
 
351
271
  if (oldStateOpen !== isPopupReady && !isMobile || oldIsMobileState !== isMobile) {
352
- var shouldAdd = isPopupReady && !isMobile;
353
- this.handleScrollAndBlockEvents(shouldAdd);
354
- this.handleIframeEventListeners(shouldAdd, CLICK_EVENTS);
272
+ this.handleScrollAndBlockEvents(isPopupReady, isMobile);
355
273
  }
356
274
  }
357
275
  }, {
358
276
  key: "componentWillUnmount",
359
277
  value: function componentWillUnmount() {
360
- var _this3 = this;
278
+ var _this2 = this;
361
279
 
362
280
  var group = this.getGroup();
363
281
  popups = Object.keys(popups).reduce(function (res, groupName) {
364
282
  if (groupName === group) {
365
283
  var groupPopups = popups[group];
366
284
  var newGroupPopups = groupPopups.filter(function (popup) {
367
- return popup !== _this3;
285
+ return popup !== _this2;
368
286
  });
369
287
  newGroupPopups.length === 0 && lastOpenedGroup.indexOf(group) >= 0 && lastOpenedGroup.splice(lastOpenedGroup.indexOf(group), 1);
370
288
  res[group] = newGroupPopups;
@@ -374,7 +292,6 @@ var Popup = function Popup(Component) {
374
292
  }, popups);
375
293
  this.handleRemovingScrollBlock();
376
294
  this.handleRemovingScrollToUpdatePosition();
377
- this.handleIframeEventListeners(false, CLICK_EVENTS);
378
295
  var noPopups = true;
379
296
 
380
297
  for (var i in popups) {
@@ -389,10 +306,11 @@ var Popup = function Popup(Component) {
389
306
  }
390
307
 
391
308
  if (noPopups) {
392
- this.updateListeners(false, CLICK_EVENTS, document);
309
+ document.removeEventListener('click', this.documentClickHandler);
393
310
  document.removeEventListener('keyup', this.documentKeyupHandler); // document.removeEventListener('scroll', this.handleScroll);
394
311
 
395
312
  window.removeEventListener('resize', this.handleResize);
313
+ document.removeEventListener('click', this.documentClickHandler1, true);
396
314
  document.removeEventListener('mousedown', this.handleDocumentMouseDown, true);
397
315
  document.removeEventListener('focus', this.handleDocumentFocus, true);
398
316
  }
@@ -511,39 +429,45 @@ var Popup = function Popup(Component) {
511
429
  this.handlePopupPosition(defaultPosition, true);
512
430
  }
513
431
  }
514
- }, {
515
- key: "updateListeners",
516
- value: function updateListeners() {
517
- var _this4 = this;
518
-
519
- var add = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
520
- var eventList = arguments.length > 1 ? arguments[1] : undefined;
521
- var element = arguments.length > 2 ? arguments[2] : undefined;
522
- var method = add ? 'addEventListener' : 'removeEventListener';
523
- eventList.forEach(function (_ref5) {
524
- var name = _ref5.name,
525
- handlerName = _ref5.handlerName,
526
- options = _ref5.options;
527
- var handler = _this4[handlerName];
528
-
529
- if (handler) {
530
- element[method](name, handler, options);
531
- }
532
- });
533
- }
534
432
  }, {
535
433
  key: "addScrollBlockListeners",
536
434
  value: function addScrollBlockListeners() {
537
- // Main document
538
- this.updateListeners(true, SCROLL_BLOCK_EVENTS, document); // Attach event listeners to all iframes within rootElement
539
-
540
- this.handleIframeEventListeners(true, IFRAME_SCROLL_BLOCK_EVENTS);
435
+ document.addEventListener('wheel', this.handleBlockScroll, {
436
+ capture: true,
437
+ passive: false
438
+ });
439
+ document.addEventListener('touchmove', this.handleBlockScroll, {
440
+ capture: true,
441
+ passive: false
442
+ });
443
+ document.addEventListener('scroll', this.handlePositionChange, {
444
+ capture: true,
445
+ passive: false
446
+ });
447
+ document.addEventListener('keydown', this.preventKeyboardScroll, {
448
+ capture: true,
449
+ passive: false
450
+ });
541
451
  }
542
452
  }, {
543
453
  key: "removeScrollBlockListeners",
544
454
  value: function removeScrollBlockListeners() {
545
- this.updateListeners(false, SCROLL_BLOCK_EVENTS, document);
546
- this.handleIframeEventListeners(false, IFRAME_SCROLL_BLOCK_EVENTS);
455
+ document.removeEventListener('wheel', this.handleBlockScroll, {
456
+ capture: true,
457
+ passive: false
458
+ });
459
+ document.removeEventListener('touchmove', this.handleBlockScroll, {
460
+ capture: true,
461
+ passive: false
462
+ });
463
+ document.removeEventListener('scroll', this.handlePositionChange, {
464
+ capture: true,
465
+ passive: false
466
+ });
467
+ document.removeEventListener('keydown', this.preventKeyboardScroll, {
468
+ capture: true,
469
+ passive: false
470
+ });
547
471
  }
548
472
  }, {
549
473
  key: "handleBlockScroll",
@@ -653,7 +577,7 @@ var Popup = function Popup(Component) {
653
577
  }, {
654
578
  key: "togglePopup",
655
579
  value: function togglePopup(e, defaultPosition) {
656
- var _this5 = this;
580
+ var _this3 = this;
657
581
 
658
582
  var group = this.getGroup();
659
583
  this.removeClose(e);
@@ -662,7 +586,7 @@ var Popup = function Popup(Component) {
662
586
  lastOpenedGroup = !isPopupOpen && lastOpenedGroup.indexOf(group) === -1 ? [group].concat(_toConsumableArray(lastOpenedGroup)) : lastOpenedGroup;
663
587
  isPopupOpen && lastOpenedGroup.splice(0, 1);
664
588
  groupPopups.forEach(function (popup) {
665
- if (popup !== _this5 && popup.state.isPopupOpen) {
589
+ if (popup !== _this3 && popup.state.isPopupOpen) {
666
590
  popup.setState({
667
591
  isPopupOpen: false,
668
592
  isPopupReady: false
@@ -832,14 +756,14 @@ var Popup = function Popup(Component) {
832
756
  }, {
833
757
  key: "handlePopupPosition",
834
758
  value: function handlePopupPosition() {
835
- var _this6 = this;
759
+ var _this4 = this;
836
760
 
837
761
  var defaultPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'bottomCenter';
838
762
  var isUpdatePosition = arguments.length > 1 ? arguments[1] : undefined;
839
763
 
840
764
  // isUpdatePosition --->>> Window resize and dropBox resize and to update the position
841
- var _ref6 = this.context || {},
842
- direction = _ref6.direction;
765
+ var _ref5 = this.context || {},
766
+ direction = _ref5.direction;
843
767
 
844
768
  var placeHolderElement = this.placeHolderElement,
845
769
  dropElement = this.dropElement;
@@ -865,11 +789,11 @@ var Popup = function Popup(Component) {
865
789
 
866
790
  var setPosition = function setPosition() {
867
791
  requestAnimationFrame(function () {
868
- var placeHolderElement = _this6.placeHolderElement,
869
- dropElement = _this6.dropElement;
870
- var _this6$state = _this6.state,
871
- position = _this6$state.position,
872
- isPopupReady = _this6$state.isPopupReady;
792
+ var placeHolderElement = _this4.placeHolderElement,
793
+ dropElement = _this4.dropElement;
794
+ var _this4$state = _this4.state,
795
+ position = _this4$state.position,
796
+ isPopupReady = _this4$state.isPopupReady;
873
797
  var scrollContainer = placeHolderElement.closest('[data-scroll=true]') || document.body;
874
798
 
875
799
  var betterPosition = _viewPort["default"].betterView(dropElement, placeHolderElement, defaultPosition, scrollContainer, {
@@ -878,26 +802,26 @@ var Popup = function Popup(Component) {
878
802
  customOrder: customOrder
879
803
  });
880
804
 
881
- var _ref7 = betterPosition || _Common.DUMMY_OBJECT,
882
- view = _ref7.view,
883
- views = _ref7.views,
884
- viewsOffset = _ref7.viewsOffset,
885
- targetOffset = _ref7.targetOffset,
886
- popupOffset = _ref7.popupOffset;
805
+ var _ref6 = betterPosition || _Common.DUMMY_OBJECT,
806
+ view = _ref6.view,
807
+ views = _ref6.views,
808
+ viewsOffset = _ref6.viewsOffset,
809
+ targetOffset = _ref6.targetOffset,
810
+ popupOffset = _ref6.popupOffset;
887
811
 
888
812
  if (!isAbsolute) {
889
813
  if (!isPopupReady) {
890
- _this6.updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute);
814
+ _this4.updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute);
891
815
  }
892
816
 
893
817
  if (!dropElement) {
894
818
  return;
895
819
  }
896
820
 
897
- _this6.setContainerDynamicPositioning(betterPosition, needArrow);
821
+ _this4.setContainerDynamicPositioning(betterPosition, needArrow);
898
822
  } else {
899
823
  if (position !== view || !isPopupReady) {
900
- _this6.updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute);
824
+ _this4.updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute);
901
825
  }
902
826
  }
903
827
  });
@@ -916,7 +840,7 @@ var Popup = function Popup(Component) {
916
840
  }, {
917
841
  key: "handleOpenPopupPositionChange",
918
842
  value: function handleOpenPopupPositionChange() {
919
- var _this7 = this;
843
+ var _this5 = this;
920
844
 
921
845
  Object.keys(popups).forEach(function (groupName) {
922
846
  var groupPopups = popups[groupName] || [];
@@ -933,11 +857,11 @@ var Popup = function Popup(Component) {
933
857
  if (placeHolderElement && dropElement) {
934
858
  var scrollContainer = placeHolderElement.closest('[data-scroll=true]') || document.body;
935
859
  requestAnimationFrame(function () {
936
- var needArrow = _this7.getNeedArrow(popup);
860
+ var needArrow = _this5.getNeedArrow(popup);
937
861
 
938
- var isAbsolute = _this7.getIsAbsolutePopup(popup);
862
+ var isAbsolute = _this5.getIsAbsolutePopup(popup);
939
863
 
940
- var customOrder = _this7.getCustomPositionOrder(popup);
864
+ var customOrder = _this5.getCustomPositionOrder(popup);
941
865
 
942
866
  var isMobile = (0, _isMobilePopover["default"])(true);
943
867
 
@@ -947,33 +871,33 @@ var Popup = function Popup(Component) {
947
871
  customOrder: customOrder
948
872
  });
949
873
 
950
- var _ref8 = betterPosition || {},
951
- view = _ref8.view,
952
- views = _ref8.views,
953
- _ref8$viewsOffset = _ref8.viewsOffset,
954
- viewsOffset = _ref8$viewsOffset === void 0 ? {} : _ref8$viewsOffset,
955
- targetOffset = _ref8.targetOffset,
956
- popupOffset = _ref8.popupOffset;
957
-
958
- var _ref9 = positionsOffset[position] || {},
874
+ var _ref7 = betterPosition || {},
875
+ view = _ref7.view,
876
+ views = _ref7.views,
877
+ _ref7$viewsOffset = _ref7.viewsOffset,
878
+ viewsOffset = _ref7$viewsOffset === void 0 ? {} : _ref7$viewsOffset,
879
+ targetOffset = _ref7.targetOffset,
880
+ popupOffset = _ref7.popupOffset;
881
+
882
+ var _ref8 = positionsOffset[position] || {},
883
+ _ref8$left = _ref8.left,
884
+ oldLeft = _ref8$left === void 0 ? '' : _ref8$left,
885
+ _ref8$top = _ref8.top,
886
+ oldTop = _ref8$top === void 0 ? '' : _ref8$top,
887
+ _ref8$bottom = _ref8.bottom,
888
+ oldBottom = _ref8$bottom === void 0 ? '' : _ref8$bottom,
889
+ _ref8$right = _ref8.right,
890
+ oldRight = _ref8$right === void 0 ? '' : _ref8$right;
891
+
892
+ var _ref9 = viewsOffset[view] || {},
959
893
  _ref9$left = _ref9.left,
960
- oldLeft = _ref9$left === void 0 ? '' : _ref9$left,
894
+ left = _ref9$left === void 0 ? '' : _ref9$left,
961
895
  _ref9$top = _ref9.top,
962
- oldTop = _ref9$top === void 0 ? '' : _ref9$top,
896
+ top = _ref9$top === void 0 ? '' : _ref9$top,
963
897
  _ref9$bottom = _ref9.bottom,
964
- oldBottom = _ref9$bottom === void 0 ? '' : _ref9$bottom,
898
+ bottom = _ref9$bottom === void 0 ? '' : _ref9$bottom,
965
899
  _ref9$right = _ref9.right,
966
- oldRight = _ref9$right === void 0 ? '' : _ref9$right;
967
-
968
- var _ref10 = viewsOffset[view] || {},
969
- _ref10$left = _ref10.left,
970
- left = _ref10$left === void 0 ? '' : _ref10$left,
971
- _ref10$top = _ref10.top,
972
- top = _ref10$top === void 0 ? '' : _ref10$top,
973
- _ref10$bottom = _ref10.bottom,
974
- bottom = _ref10$bottom === void 0 ? '' : _ref10$bottom,
975
- _ref10$right = _ref10.right,
976
- right = _ref10$right === void 0 ? '' : _ref10$right;
900
+ right = _ref9$right === void 0 ? '' : _ref9$right;
977
901
 
978
902
  var changeState = isAbsolute ? position !== view : oldLeft !== left || oldTop !== top || oldBottom !== bottom || oldRight !== right; // let isInViewPort = viewPort.isInViewPort(
979
903
  // placeHolderElement,
@@ -1032,11 +956,11 @@ var Popup = function Popup(Component) {
1032
956
  var height = popupSize.height,
1033
957
  width = popupSize.width;
1034
958
 
1035
- var _ref11 = this.size || {},
1036
- _ref11$height = _ref11.height,
1037
- oldHeight = _ref11$height === void 0 ? 0 : _ref11$height,
1038
- _ref11$width = _ref11.width,
1039
- oldWidth = _ref11$width === void 0 ? 0 : _ref11$width;
959
+ var _ref10 = this.size || {},
960
+ _ref10$height = _ref10.height,
961
+ oldHeight = _ref10$height === void 0 ? 0 : _ref10$height,
962
+ _ref10$width = _ref10.width,
963
+ oldWidth = _ref10$width === void 0 ? 0 : _ref10$width;
1040
964
 
1041
965
  var _this$state2 = this.state,
1042
966
  isPopupReady = _this$state2.isPopupReady,
@@ -15,8 +15,7 @@ var id = {
15
15
  direction: 'ltr',
16
16
  tooltipDebounce: 175,
17
17
  getTooltipContainer: function getTooltipContainer() {},
18
- autoComplete: false,
19
- getRootElement: function getRootElement() {}
18
+ autoComplete: false
20
19
  };
21
20
 
22
21
  function getLibraryConfig(key) {
@@ -46,7 +46,8 @@ function TabWrapper(_ref) {
46
46
  align = _ref.align,
47
47
  dataId = _ref.dataId,
48
48
  children = _ref.children,
49
- dataSelectorId = _ref.dataSelectorId;
49
+ dataSelectorId = _ref.dataSelectorId,
50
+ alignWrapper = _ref.alignWrapper;
50
51
 
51
52
  var _useState = (0, _react.useState)(!hookToDisableInternalState ? defaultTab || 0 : null),
52
53
  _useState2 = _slicedToArray(_useState, 2),
@@ -61,7 +62,7 @@ function TabWrapper(_ref) {
61
62
  onSelect && onSelect(id);
62
63
  }, [hookToDisableInternalState, onSelect]);
63
64
  return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
64
- alignBox: align === 'vertical' ? 'column' : 'row',
65
+ alignBox: alignWrapper ? alignWrapper : align === 'vertical' ? 'column' : 'row',
65
66
  dataId: dataId,
66
67
  dataSelectorId: dataSelectorId
67
68
  }, _react["default"].Children.map(children, function (child) {