@zohodesk/components 1.4.12 → 1.4.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 (1202) hide show
  1. package/README.md +6 -0
  2. package/package.json +2 -2
  3. package/es/Accordion/Accordion.js +0 -85
  4. package/es/Accordion/AccordionItem.js +0 -63
  5. package/es/Accordion/__tests__/Accordion.spec.js +0 -11
  6. package/es/Accordion/__tests__/AccordionItem.spec.js +0 -16
  7. package/es/Accordion/__tests__/__snapshots__/Accordion.spec.js.snap +0 -12
  8. package/es/Accordion/__tests__/__snapshots__/AccordionItem.spec.js.snap +0 -23
  9. package/es/Accordion/index.js +0 -2
  10. package/es/Accordion/props/defaultProps.js +0 -12
  11. package/es/Accordion/props/propTypes.js +0 -33
  12. package/es/Animation/Animation.js +0 -52
  13. package/es/Animation/__tests__/Animation.spec.js +0 -14
  14. package/es/Animation/__tests__/__snapshots__/Animation.spec.js.snap +0 -11
  15. package/es/Animation/props/defaultProps.js +0 -7
  16. package/es/Animation/props/propTypes.js +0 -12
  17. package/es/Animation/utils.js +0 -83
  18. package/es/AppContainer/AppContainer.js +0 -139
  19. package/es/AppContainer/AppContainer.module.css +0 -18
  20. package/es/AppContainer/__tests__/AppContainer.spec.js +0 -82
  21. package/es/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +0 -201
  22. package/es/AppContainer/props/defaultProps.js +0 -10
  23. package/es/AppContainer/props/propTypes.js +0 -17
  24. package/es/Avatar/Avatar.js +0 -195
  25. package/es/Avatar/Avatar.module.css +0 -176
  26. package/es/Avatar/__tests__/Avatar.spec.js +0 -181
  27. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +0 -591
  28. package/es/Avatar/props/defaultProps.js +0 -17
  29. package/es/Avatar/props/propTypes.js +0 -26
  30. package/es/AvatarTeam/AvatarTeam.js +0 -84
  31. package/es/AvatarTeam/AvatarTeam.module.css +0 -189
  32. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -138
  33. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +0 -705
  34. package/es/AvatarTeam/props/defaultProps.js +0 -17
  35. package/es/AvatarTeam/props/propTypes.js +0 -28
  36. package/es/Button/Button.js +0 -76
  37. package/es/Button/__tests__/Button.spec.js +0 -242
  38. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -412
  39. package/es/Button/css/Button.module.css +0 -613
  40. package/es/Button/css/cssJSLogic.js +0 -58
  41. package/es/Button/index.js +0 -2
  42. package/es/Button/props/defaultProps.js +0 -18
  43. package/es/Button/props/propTypes.js +0 -28
  44. package/es/Buttongroup/Buttongroup.js +0 -50
  45. package/es/Buttongroup/Buttongroup.module.css +0 -105
  46. package/es/Buttongroup/__tests__/Buttongroup.spec.js +0 -37
  47. package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +0 -191
  48. package/es/Buttongroup/props/defaultProps.js +0 -6
  49. package/es/Buttongroup/props/propTypes.js +0 -9
  50. package/es/Card/Card.js +0 -305
  51. package/es/Card/Card.module.css +0 -20
  52. package/es/Card/__tests__/Card.spec.js +0 -90
  53. package/es/Card/__tests__/__snapshots__/Card.spec.js.snap +0 -56
  54. package/es/Card/index.js +0 -4
  55. package/es/Card/props/defaultProps.js +0 -26
  56. package/es/Card/props/propTypes.js +0 -49
  57. package/es/CheckBox/CheckBox.js +0 -172
  58. package/es/CheckBox/CheckBox.module.css +0 -160
  59. package/es/CheckBox/__tests__/CheckBox.spec.js +0 -240
  60. package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +0 -1878
  61. package/es/CheckBox/props/defaultProps.js +0 -18
  62. package/es/CheckBox/props/propTypes.js +0 -42
  63. package/es/DateTime/CalendarView.js +0 -223
  64. package/es/DateTime/DateTime.js +0 -779
  65. package/es/DateTime/DateTime.module.css +0 -249
  66. package/es/DateTime/DateTimePopupFooter.js +0 -47
  67. package/es/DateTime/DateTimePopupHeader.js +0 -105
  68. package/es/DateTime/DateWidget.js +0 -1142
  69. package/es/DateTime/DateWidget.module.css +0 -39
  70. package/es/DateTime/DaysRow.js +0 -32
  71. package/es/DateTime/Time.js +0 -181
  72. package/es/DateTime/YearView.js +0 -264
  73. package/es/DateTime/YearView.module.css +0 -99
  74. package/es/DateTime/__tests__/CalendarView.spec.js +0 -13
  75. package/es/DateTime/__tests__/DateTime.spec.js +0 -21
  76. package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +0 -11
  77. package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +0 -11
  78. package/es/DateTime/__tests__/DateWidget.spec.js +0 -11
  79. package/es/DateTime/__tests__/DaysRow.spec.js +0 -13
  80. package/es/DateTime/__tests__/Time.spec.js +0 -11
  81. package/es/DateTime/__tests__/YearView.spec.js +0 -10
  82. package/es/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +0 -312
  83. package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +0 -938
  84. package/es/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +0 -34
  85. package/es/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +0 -72
  86. package/es/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +0 -79
  87. package/es/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +0 -12
  88. package/es/DateTime/__tests__/__snapshots__/Time.spec.js.snap +0 -310
  89. package/es/DateTime/common.js +0 -25
  90. package/es/DateTime/constants.js +0 -57
  91. package/es/DateTime/dateFormatUtils/dateFormat.js +0 -616
  92. package/es/DateTime/dateFormatUtils/dateFormats.js +0 -42
  93. package/es/DateTime/dateFormatUtils/dayChange.js +0 -83
  94. package/es/DateTime/dateFormatUtils/index.js +0 -267
  95. package/es/DateTime/dateFormatUtils/monthChange.js +0 -90
  96. package/es/DateTime/dateFormatUtils/timeChange.js +0 -228
  97. package/es/DateTime/dateFormatUtils/yearChange.js +0 -121
  98. package/es/DateTime/index.js +0 -1
  99. package/es/DateTime/objectUtils.js +0 -55
  100. package/es/DateTime/props/defaultProps.js +0 -65
  101. package/es/DateTime/props/propTypes.js +0 -203
  102. package/es/DateTime/typeChecker.js +0 -19
  103. package/es/DateTime/validator.js +0 -327
  104. package/es/DropBox/DropBox.js +0 -80
  105. package/es/DropBox/DropBoxElement/DropBoxElement.js +0 -137
  106. package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +0 -28
  107. package/es/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +0 -95
  108. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -442
  109. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +0 -91
  110. package/es/DropBox/DropBoxElement/props/defaultProps.js +0 -18
  111. package/es/DropBox/DropBoxElement/props/propTypes.js +0 -51
  112. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +0 -54
  113. package/es/DropBox/DropBoxPositionMapping.js +0 -142
  114. package/es/DropBox/__tests__/DropBox.spec.js +0 -11
  115. package/es/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +0 -36
  116. package/es/DropBox/css/DropBox.module.css +0 -59
  117. package/es/DropBox/css/cssJSLogic.js +0 -14
  118. package/es/DropBox/props/defaultProps.js +0 -14
  119. package/es/DropBox/props/propTypes.js +0 -16
  120. package/es/DropBox/utils/isMobilePopover.js +0 -17
  121. package/es/DropDown/DropDown.js +0 -76
  122. package/es/DropDown/DropDown.module.css +0 -5
  123. package/es/DropDown/DropDownHeading.js +0 -44
  124. package/es/DropDown/DropDownHeading.module.css +0 -53
  125. package/es/DropDown/DropDownItem.js +0 -76
  126. package/es/DropDown/DropDownItem.module.css +0 -94
  127. package/es/DropDown/DropDownSearch.js +0 -68
  128. package/es/DropDown/DropDownSearch.module.css +0 -14
  129. package/es/DropDown/DropDownSeparator.js +0 -15
  130. package/es/DropDown/DropDownSeparator.module.css +0 -7
  131. package/es/DropDown/__tests__/DropDown.spec.js +0 -11
  132. package/es/DropDown/__tests__/DropDownHeading.spec.js +0 -11
  133. package/es/DropDown/__tests__/DropDownItem.spec.js +0 -11
  134. package/es/DropDown/__tests__/DropDownSearch.spec.js +0 -11
  135. package/es/DropDown/__tests__/DropDownSeparator.spec.js +0 -11
  136. package/es/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +0 -54
  137. package/es/DropDown/__tests__/__snapshots__/DropDownHeading.spec.js.snap +0 -12
  138. package/es/DropDown/__tests__/__snapshots__/DropDownItem.spec.js.snap +0 -11
  139. package/es/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +0 -20
  140. package/es/DropDown/__tests__/__snapshots__/DropDownSeparator.spec.js.snap +0 -9
  141. package/es/DropDown/index.js +0 -7
  142. package/es/DropDown/props/defaultProps.js +0 -21
  143. package/es/DropDown/props/propTypes.js +0 -66
  144. package/es/Heading/Heading.js +0 -38
  145. package/es/Heading/Heading.module.css +0 -5
  146. package/es/Heading/__tests__/Heading.spec.js +0 -20
  147. package/es/Heading/__tests__/__snapshots__/Heading.spec.js.snap +0 -63
  148. package/es/Heading/props/defaultProps.js +0 -5
  149. package/es/Heading/props/propTypes.js +0 -12
  150. package/es/Label/Label.js +0 -51
  151. package/es/Label/Label.module.css +0 -57
  152. package/es/Label/LabelColors.module.css +0 -21
  153. package/es/Label/__tests__/Label.spec.js +0 -99
  154. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -312
  155. package/es/Label/props/defaultProps.js +0 -11
  156. package/es/Label/props/propTypes.js +0 -19
  157. package/es/Layout/Box.js +0 -115
  158. package/es/Layout/Container.js +0 -132
  159. package/es/Layout/Layout.module.css +0 -336
  160. package/es/Layout/__tests__/Box.spec.js +0 -11
  161. package/es/Layout/__tests__/Container.spec.js +0 -11
  162. package/es/Layout/__tests__/__snapshots__/Box.spec.js.snap +0 -16
  163. package/es/Layout/__tests__/__snapshots__/Container.spec.js.snap +0 -16
  164. package/es/Layout/index.js +0 -10
  165. package/es/Layout/props/defaultProps.js +0 -16
  166. package/es/Layout/props/propTypes.js +0 -46
  167. package/es/Layout/utils.js +0 -30
  168. package/es/ListItem/ListContainer.js +0 -105
  169. package/es/ListItem/ListItem.js +0 -151
  170. package/es/ListItem/ListItem.module.css +0 -261
  171. package/es/ListItem/ListItemWithAvatar.js +0 -178
  172. package/es/ListItem/ListItemWithCheckBox.js +0 -134
  173. package/es/ListItem/ListItemWithIcon.js +0 -158
  174. package/es/ListItem/ListItemWithRadio.js +0 -137
  175. package/es/ListItem/__tests__/ListContainer.spec.js +0 -19
  176. package/es/ListItem/__tests__/ListItem.spec.js +0 -11
  177. package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -46
  178. package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -46
  179. package/es/ListItem/__tests__/ListItemWithIcon.spec.js +0 -46
  180. package/es/ListItem/__tests__/ListItemWithRadio.spec.js +0 -46
  181. package/es/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +0 -27
  182. package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +0 -29
  183. package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +0 -222
  184. package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +0 -492
  185. package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +0 -222
  186. package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +0 -487
  187. package/es/ListItem/index.js +0 -6
  188. package/es/ListItem/props/defaultProps.js +0 -105
  189. package/es/ListItem/props/propTypes.js +0 -220
  190. package/es/Modal/Modal.js +0 -174
  191. package/es/Modal/Portal/Portal.js +0 -33
  192. package/es/Modal/Portal/__tests__/Portal.spec.js +0 -28
  193. package/es/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +0 -30
  194. package/es/Modal/Portal/props/defaultProps.js +0 -3
  195. package/es/Modal/Portal/props/propTypes.js +0 -5
  196. package/es/Modal/__tests__/Modal.spec.js +0 -15
  197. package/es/Modal/__tests__/__snapshots__/Modal.spec.js.snap +0 -26
  198. package/es/Modal/props/defaultProps.js +0 -3
  199. package/es/Modal/props/propTypes.js +0 -7
  200. package/es/MultiSelect/AdvancedGroupMultiSelect.js +0 -1109
  201. package/es/MultiSelect/AdvancedMultiSelect.js +0 -604
  202. package/es/MultiSelect/EmptyState.js +0 -65
  203. package/es/MultiSelect/MobileHeader/MobileHeader.js +0 -50
  204. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +0 -16
  205. package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +0 -11
  206. package/es/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +0 -39
  207. package/es/MultiSelect/MobileHeader/props/defaultProps.js +0 -7
  208. package/es/MultiSelect/MobileHeader/props/propTypes.js +0 -7
  209. package/es/MultiSelect/MultiSelect.js +0 -1186
  210. package/es/MultiSelect/MultiSelect.module.css +0 -216
  211. package/es/MultiSelect/MultiSelectHeader.js +0 -32
  212. package/es/MultiSelect/MultiSelectWithAvatar.js +0 -218
  213. package/es/MultiSelect/SelectedOptions.js +0 -86
  214. package/es/MultiSelect/SelectedOptions.module.css +0 -15
  215. package/es/MultiSelect/Suggestions.js +0 -225
  216. package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +0 -12
  217. package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +0 -47
  218. package/es/MultiSelect/__tests__/EmptyState.spec.js +0 -15
  219. package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -36
  220. package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +0 -21
  221. package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +0 -11
  222. package/es/MultiSelect/__tests__/SelectedOptions.spec.js +0 -28
  223. package/es/MultiSelect/__tests__/Suggestions.spec.js +0 -71
  224. package/es/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +0 -74
  225. package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +0 -534
  226. package/es/MultiSelect/__tests__/__snapshots__/EmptyState.spec.js.snap +0 -12
  227. package/es/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +0 -339
  228. package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +0 -63
  229. package/es/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +0 -85
  230. package/es/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +0 -80
  231. package/es/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +0 -363
  232. package/es/MultiSelect/constants.js +0 -6
  233. package/es/MultiSelect/index.js +0 -4
  234. package/es/MultiSelect/props/defaultProps.js +0 -173
  235. package/es/MultiSelect/props/propTypes.js +0 -300
  236. package/es/PopOver/PopOver.js +0 -211
  237. package/es/PopOver/PopOver.module.css +0 -9
  238. package/es/PopOver/__tests__/PopOver.spec.js +0 -11
  239. package/es/PopOver/__tests__/__snapshots__/PopOver.spec.js.snap +0 -13
  240. package/es/PopOver/index.js +0 -3
  241. package/es/PopOver/props/defaultProps.js +0 -7
  242. package/es/PopOver/props/propTypes.js +0 -53
  243. package/es/Popup/Popup.js +0 -1049
  244. package/es/Popup/PositionMapping.js +0 -72
  245. package/es/Popup/Registry.js +0 -36
  246. package/es/Popup/intersectionObserver.js +0 -49
  247. package/es/Popup/props/propTypes.js +0 -30
  248. package/es/Popup/viewPort.js +0 -373
  249. package/es/Provider/AvatarSize.js +0 -13
  250. package/es/Provider/Config.js +0 -21
  251. package/es/Provider/CssProvider.js +0 -16
  252. package/es/Provider/IdProvider.js +0 -66
  253. package/es/Provider/LibraryContext.js +0 -57
  254. package/es/Provider/LibraryContextInit.js +0 -3
  255. package/es/Provider/NumberGenerator/NumberGenerator.js +0 -136
  256. package/es/Provider/ZindexProvider.js +0 -57
  257. package/es/Provider/index.js +0 -4
  258. package/es/Radio/Radio.js +0 -138
  259. package/es/Radio/Radio.module.css +0 -115
  260. package/es/Radio/__tests__/Radio.spec.js +0 -238
  261. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +0 -1916
  262. package/es/Radio/props/defaultProps.js +0 -15
  263. package/es/Radio/props/propTypes.js +0 -41
  264. package/es/Responsive/CustomResponsive.js +0 -195
  265. package/es/Responsive/RefWrapper.js +0 -38
  266. package/es/Responsive/ResizeComponent.js +0 -197
  267. package/es/Responsive/ResizeObserver.js +0 -76
  268. package/es/Responsive/ResizeObserverWithPolyfill.js +0 -140
  269. package/es/Responsive/Responsive.js +0 -194
  270. package/es/Responsive/index.js +0 -9
  271. package/es/Responsive/props/defaultProps.js +0 -13
  272. package/es/Responsive/props/propTypes.js +0 -25
  273. package/es/Responsive/sizeObservers.js +0 -141
  274. package/es/Responsive/utils/index.js +0 -52
  275. package/es/Responsive/utils/shallowCompare.js +0 -28
  276. package/es/Responsive/windowResizeObserver.js +0 -51
  277. package/es/ResponsiveDropBox/ResponsiveDropBox.js +0 -65
  278. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +0 -6
  279. package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +0 -11
  280. package/es/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +0 -42
  281. package/es/ResponsiveDropBox/props/defaultProps.js +0 -4
  282. package/es/ResponsiveDropBox/props/propTypes.js +0 -8
  283. package/es/Ribbon/Ribbon.js +0 -51
  284. package/es/Ribbon/Ribbon.module.css +0 -500
  285. package/es/Ribbon/__tests__/Ribbon.spec.js +0 -52
  286. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +0 -374
  287. package/es/Ribbon/props/defaultProps.js +0 -9
  288. package/es/Ribbon/props/propTypes.js +0 -11
  289. package/es/RippleEffect/RippleEffect.js +0 -30
  290. package/es/RippleEffect/RippleEffect.module.css +0 -109
  291. package/es/RippleEffect/__tests__/RippleEffect.spec.js +0 -69
  292. package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -161
  293. package/es/RippleEffect/props/defaultProps.js +0 -10
  294. package/es/RippleEffect/props/propTypes.js +0 -12
  295. package/es/Select/GroupSelect.js +0 -825
  296. package/es/Select/Select.js +0 -1016
  297. package/es/Select/Select.module.css +0 -138
  298. package/es/Select/SelectWithAvatar.js +0 -358
  299. package/es/Select/SelectWithIcon.js +0 -563
  300. package/es/Select/__tests__/GroupSelect.spec.js +0 -19
  301. package/es/Select/__tests__/Select.spec.js +0 -1153
  302. package/es/Select/__tests__/SelectWithAvatar.spec.js +0 -12
  303. package/es/Select/__tests__/SelectWithIcon.spec.js +0 -12
  304. package/es/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +0 -90
  305. package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +0 -10446
  306. package/es/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +0 -45
  307. package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +0 -108
  308. package/es/Select/index.js +0 -4
  309. package/es/Select/props/defaultProps.js +0 -131
  310. package/es/Select/props/propTypes.js +0 -311
  311. package/es/Stencils/Stencils.js +0 -24
  312. package/es/Stencils/Stencils.module.css +0 -100
  313. package/es/Stencils/__tests__/Stencils.spec.js +0 -54
  314. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +0 -105
  315. package/es/Stencils/props/defaultProps.js +0 -7
  316. package/es/Stencils/props/propTypes.js +0 -8
  317. package/es/Switch/Switch.js +0 -99
  318. package/es/Switch/Switch.module.css +0 -128
  319. package/es/Switch/__tests__/Switch.spec.js +0 -156
  320. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +0 -831
  321. package/es/Switch/props/defaultProps.js +0 -11
  322. package/es/Switch/props/propTypes.js +0 -28
  323. package/es/Tab/Tab.js +0 -110
  324. package/es/Tab/Tab.module.css +0 -100
  325. package/es/Tab/TabContent.js +0 -30
  326. package/es/Tab/TabContent.module.css +0 -4
  327. package/es/Tab/TabContentWrapper.js +0 -33
  328. package/es/Tab/TabWrapper.js +0 -56
  329. package/es/Tab/Tabs.js +0 -723
  330. package/es/Tab/Tabs.module.css +0 -167
  331. package/es/Tab/__tests__/Tab.spec.js +0 -11
  332. package/es/Tab/__tests__/TabContent.spec.js +0 -11
  333. package/es/Tab/__tests__/TabContentWrapper.spec.js +0 -11
  334. package/es/Tab/__tests__/TabLayout.spec.js +0 -34
  335. package/es/Tab/__tests__/TabWrapper.spec.js +0 -11
  336. package/es/Tab/__tests__/Tabs.spec.js +0 -11
  337. package/es/Tab/__tests__/__snapshots__/Tab.spec.js.snap +0 -22
  338. package/es/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +0 -19
  339. package/es/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +0 -12
  340. package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +0 -341
  341. package/es/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +0 -20
  342. package/es/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +0 -33
  343. package/es/Tab/index.js +0 -5
  344. package/es/Tab/props/defaultProps.js +0 -51
  345. package/es/Tab/props/propTypes.js +0 -117
  346. package/es/Tab/utils/tabConfigs.js +0 -18
  347. package/es/Tag/Tag.js +0 -163
  348. package/es/Tag/Tag.module.css +0 -254
  349. package/es/Tag/__tests__/Tag.spec.js +0 -252
  350. package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +0 -3074
  351. package/es/Tag/props/defaultProps.js +0 -16
  352. package/es/Tag/props/propTypes.js +0 -42
  353. package/es/TextBox/TextBox.js +0 -189
  354. package/es/TextBox/TextBox.module.css +0 -197
  355. package/es/TextBox/__tests__/TextBox.spec.js +0 -327
  356. package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +0 -615
  357. package/es/TextBox/props/defaultProps.js +0 -20
  358. package/es/TextBox/props/propTypes.js +0 -53
  359. package/es/TextBoxIcon/TextBoxIcon.js +0 -203
  360. package/es/TextBoxIcon/TextBoxIcon.module.css +0 -79
  361. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -268
  362. package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +0 -1784
  363. package/es/TextBoxIcon/props/defaultProps.js +0 -24
  364. package/es/TextBoxIcon/props/propTypes.js +0 -55
  365. package/es/Textarea/Textarea.js +0 -125
  366. package/es/Textarea/Textarea.module.css +0 -148
  367. package/es/Textarea/__tests__/Textarea.spec.js +0 -266
  368. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +0 -525
  369. package/es/Textarea/props/defaultProps.js +0 -18
  370. package/es/Textarea/props/propTypes.js +0 -35
  371. package/es/Tooltip/Tooltip.js +0 -530
  372. package/es/Tooltip/Tooltip.module.css +0 -133
  373. package/es/Tooltip/props/defaultProps.js +0 -4
  374. package/es/Tooltip/props/propTypes.js +0 -5
  375. package/es/Typography/Typography.js +0 -38
  376. package/es/Typography/css/Typography.module.css +0 -489
  377. package/es/Typography/css/cssJSLogic.js +0 -56
  378. package/es/Typography/props/defaultProps.js +0 -8
  379. package/es/Typography/props/propTypes.js +0 -27
  380. package/es/Typography/utils/index.js +0 -50
  381. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -77
  382. package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +0 -11
  383. package/es/VelocityAnimation/VelocityAnimation/__tests__/__snapshots__/VelocityAnimation.spec.js.snap +0 -9
  384. package/es/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -7
  385. package/es/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -12
  386. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -144
  387. package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +0 -19
  388. package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/__snapshots__/VelocityAnimationGroup.spec.js.snap +0 -11
  389. package/es/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -15
  390. package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -22
  391. package/es/VelocityAnimation/index.js +0 -2
  392. package/es/common/a11y.module.css +0 -4
  393. package/es/common/animation.module.css +0 -624
  394. package/es/common/avatarsizes.module.css +0 -49
  395. package/es/common/basic.module.css +0 -31
  396. package/es/common/basicReset.module.css +0 -40
  397. package/es/common/boxShadow.module.css +0 -34
  398. package/es/common/common.module.css +0 -566
  399. package/es/common/customscroll.module.css +0 -142
  400. package/es/common/reset.module.css +0 -13
  401. package/es/common/transition.module.css +0 -146
  402. package/es/components_layer.module.css +0 -1
  403. package/es/css.js +0 -41
  404. package/es/deprecated/PortalLayer/PortalLayer.js +0 -108
  405. package/es/deprecated/PortalLayer/props/defaultProps.js +0 -5
  406. package/es/deprecated/PortalLayer/props/propTypes.js +0 -20
  407. package/es/deprecated/Switch/Switch.js +0 -94
  408. package/es/deprecated/Switch/props/defaultProps.js +0 -11
  409. package/es/deprecated/Switch/props/propTypes.js +0 -28
  410. package/es/index.js +0 -42
  411. package/es/semantic/Button/Button.js +0 -60
  412. package/es/semantic/Button/__tests__/Button.spec.js +0 -11
  413. package/es/semantic/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -15
  414. package/es/semantic/Button/props/defaultProps.js +0 -12
  415. package/es/semantic/Button/props/propTypes.js +0 -22
  416. package/es/semantic/Button/semanticButton.module.css +0 -9
  417. package/es/semantic/index.js +0 -1
  418. package/es/utils/Common.js +0 -417
  419. package/es/utils/ContextOptimizer.js +0 -38
  420. package/es/utils/constant.js +0 -2
  421. package/es/utils/constructFullName.js +0 -13
  422. package/es/utils/cssUtils.js +0 -11
  423. package/es/utils/datetime/GMTZones.js +0 -48
  424. package/es/utils/datetime/common.js +0 -204
  425. package/es/utils/debounce.js +0 -23
  426. package/es/utils/dropDownUtils.js +0 -510
  427. package/es/utils/dummyFunction.js +0 -1
  428. package/es/utils/getHTMLFontSize.js +0 -4
  429. package/es/utils/getInitial.js +0 -24
  430. package/es/utils/index.js +0 -1
  431. package/es/utils/scrollTo.js +0 -13
  432. package/es/utils/shallowEqual.js +0 -32
  433. package/es/v1/Accordion/Accordion.js +0 -66
  434. package/es/v1/Accordion/AccordionItem.js +0 -57
  435. package/es/v1/Accordion/index.js +0 -2
  436. package/es/v1/Accordion/props/defaultProps.js +0 -12
  437. package/es/v1/Accordion/props/propTypes.js +0 -33
  438. package/es/v1/Animation/Animation.js +0 -45
  439. package/es/v1/Animation/props/defaultProps.js +0 -7
  440. package/es/v1/Animation/props/propTypes.js +0 -12
  441. package/es/v1/Animation/utils.js +0 -83
  442. package/es/v1/AppContainer/AppContainer.js +0 -115
  443. package/es/v1/AppContainer/props/defaultProps.js +0 -10
  444. package/es/v1/AppContainer/props/propTypes.js +0 -17
  445. package/es/v1/Avatar/Avatar.js +0 -139
  446. package/es/v1/Avatar/props/defaultProps.js +0 -17
  447. package/es/v1/Avatar/props/propTypes.js +0 -26
  448. package/es/v1/AvatarTeam/AvatarTeam.js +0 -70
  449. package/es/v1/AvatarTeam/props/defaultProps.js +0 -17
  450. package/es/v1/AvatarTeam/props/propTypes.js +0 -27
  451. package/es/v1/Button/Button.js +0 -67
  452. package/es/v1/Button/props/defaultProps.js +0 -18
  453. package/es/v1/Button/props/propTypes.js +0 -28
  454. package/es/v1/Buttongroup/Buttongroup.js +0 -31
  455. package/es/v1/Buttongroup/props/defaultProps.js +0 -6
  456. package/es/v1/Buttongroup/props/propTypes.js +0 -9
  457. package/es/v1/Card/Card.js +0 -237
  458. package/es/v1/Card/index.js +0 -4
  459. package/es/v1/Card/props/defaultProps.js +0 -25
  460. package/es/v1/Card/props/propTypes.js +0 -48
  461. package/es/v1/CheckBox/CheckBox.js +0 -161
  462. package/es/v1/CheckBox/props/defaultProps.js +0 -18
  463. package/es/v1/CheckBox/props/propTypes.js +0 -41
  464. package/es/v1/DateTime/CalendarView.js +0 -254
  465. package/es/v1/DateTime/DateTime.js +0 -779
  466. package/es/v1/DateTime/DateTimePopupFooter.js +0 -47
  467. package/es/v1/DateTime/DateTimePopupHeader.js +0 -105
  468. package/es/v1/DateTime/DateWidget.js +0 -1134
  469. package/es/v1/DateTime/DaysRow.js +0 -32
  470. package/es/v1/DateTime/Time.js +0 -181
  471. package/es/v1/DateTime/YearView.js +0 -264
  472. package/es/v1/DateTime/index.js +0 -1
  473. package/es/v1/DateTime/props/defaultProps.js +0 -63
  474. package/es/v1/DateTime/props/propTypes.js +0 -206
  475. package/es/v1/DropBox/DropBox.js +0 -79
  476. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -133
  477. package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -18
  478. package/es/v1/DropBox/DropBoxElement/props/propTypes.js +0 -51
  479. package/es/v1/DropBox/props/defaultProps.js +0 -14
  480. package/es/v1/DropBox/props/propTypes.js +0 -16
  481. package/es/v1/DropBox/utils/isMobilePopover.js +0 -17
  482. package/es/v1/DropDown/DropDown.js +0 -53
  483. package/es/v1/DropDown/DropDownHeading.js +0 -36
  484. package/es/v1/DropDown/DropDownItem.js +0 -56
  485. package/es/v1/DropDown/DropDownSearch.js +0 -58
  486. package/es/v1/DropDown/DropDownSeparator.js +0 -12
  487. package/es/v1/DropDown/props/defaultProps.js +0 -21
  488. package/es/v1/DropDown/props/propTypes.js +0 -66
  489. package/es/v1/Heading/Heading.js +0 -35
  490. package/es/v1/Heading/props/defaultProps.js +0 -5
  491. package/es/v1/Heading/props/propTypes.js +0 -12
  492. package/es/v1/Label/Label.js +0 -40
  493. package/es/v1/Label/props/defaultProps.js +0 -11
  494. package/es/v1/Label/props/propTypes.js +0 -19
  495. package/es/v1/Layout/Box.js +0 -115
  496. package/es/v1/Layout/Container.js +0 -132
  497. package/es/v1/Layout/index.js +0 -2
  498. package/es/v1/Layout/props/defaultProps.js +0 -16
  499. package/es/v1/Layout/props/propTypes.js +0 -46
  500. package/es/v1/ListItem/ListContainer.js +0 -104
  501. package/es/v1/ListItem/ListItem.js +0 -123
  502. package/es/v1/ListItem/ListItemWithAvatar.js +0 -143
  503. package/es/v1/ListItem/ListItemWithCheckBox.js +0 -104
  504. package/es/v1/ListItem/ListItemWithIcon.js +0 -126
  505. package/es/v1/ListItem/ListItemWithRadio.js +0 -105
  506. package/es/v1/ListItem/index.js +0 -6
  507. package/es/v1/ListItem/props/defaultProps.js +0 -97
  508. package/es/v1/ListItem/props/propTypes.js +0 -202
  509. package/es/v1/Modal/Modal.js +0 -125
  510. package/es/v1/Modal/props/defaultProps.js +0 -3
  511. package/es/v1/Modal/props/propTypes.js +0 -7
  512. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1092
  513. package/es/v1/MultiSelect/AdvancedMultiSelect.js +0 -583
  514. package/es/v1/MultiSelect/EmptyState.js +0 -64
  515. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -50
  516. package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -7
  517. package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -7
  518. package/es/v1/MultiSelect/MultiSelect.js +0 -1119
  519. package/es/v1/MultiSelect/MultiSelectHeader.js +0 -32
  520. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +0 -208
  521. package/es/v1/MultiSelect/SelectedOptions.js +0 -84
  522. package/es/v1/MultiSelect/Suggestions.js +0 -141
  523. package/es/v1/MultiSelect/index.js +0 -4
  524. package/es/v1/MultiSelect/props/defaultProps.js +0 -165
  525. package/es/v1/MultiSelect/props/propTypes.js +0 -322
  526. package/es/v1/PopOver/PopOver.js +0 -176
  527. package/es/v1/PopOver/props/defaultProps.js +0 -7
  528. package/es/v1/PopOver/props/propTypes.js +0 -53
  529. package/es/v1/Popup/Popup.js +0 -644
  530. package/es/v1/Radio/Radio.js +0 -130
  531. package/es/v1/Radio/props/defaultProps.js +0 -15
  532. package/es/v1/Radio/props/propTypes.js +0 -40
  533. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -56
  534. package/es/v1/ResponsiveDropBox/props/defaultProps.js +0 -4
  535. package/es/v1/ResponsiveDropBox/props/propTypes.js +0 -8
  536. package/es/v1/Ribbon/Ribbon.js +0 -33
  537. package/es/v1/Ribbon/props/defaultProps.js +0 -9
  538. package/es/v1/Ribbon/props/propTypes.js +0 -11
  539. package/es/v1/RippleEffect/RippleEffect.js +0 -25
  540. package/es/v1/RippleEffect/props/defaultProps.js +0 -10
  541. package/es/v1/RippleEffect/props/propTypes.js +0 -12
  542. package/es/v1/Select/GroupSelect.js +0 -818
  543. package/es/v1/Select/Select.js +0 -975
  544. package/es/v1/Select/SelectWithAvatar.js +0 -356
  545. package/es/v1/Select/SelectWithIcon.js +0 -545
  546. package/es/v1/Select/index.js +0 -4
  547. package/es/v1/Select/props/defaultProps.js +0 -126
  548. package/es/v1/Select/props/propTypes.js +0 -297
  549. package/es/v1/Stencils/Stencils.js +0 -26
  550. package/es/v1/Stencils/props/defaultProps.js +0 -6
  551. package/es/v1/Stencils/props/propTypes.js +0 -7
  552. package/es/v1/Switch/Switch.js +0 -138
  553. package/es/v1/Switch/__tests__/Switch.spec.js +0 -30
  554. package/es/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +0 -135
  555. package/es/v1/Switch/contants/index.js +0 -24
  556. package/es/v1/Switch/css/Switch_v1.module.css +0 -134
  557. package/es/v1/Switch/css/cssJSLogic.js +0 -48
  558. package/es/v1/Switch/props/defaultProps.js +0 -11
  559. package/es/v1/Switch/props/propTypes.js +0 -36
  560. package/es/v1/Switch/useSwitch.js +0 -33
  561. package/es/v1/Tab/Tab.js +0 -106
  562. package/es/v1/Tab/TabContent.js +0 -30
  563. package/es/v1/Tab/TabContentWrapper.js +0 -33
  564. package/es/v1/Tab/TabWrapper.js +0 -55
  565. package/es/v1/Tab/Tabs.js +0 -619
  566. package/es/v1/Tab/index.js +0 -5
  567. package/es/v1/Tab/props/defaultProps.js +0 -51
  568. package/es/v1/Tab/props/propTypes.js +0 -117
  569. package/es/v1/Tab/v1Tab.module.css +0 -100
  570. package/es/v1/Tab/v1TabContent.module.css +0 -4
  571. package/es/v1/Tab/v1Tabs.module.css +0 -167
  572. package/es/v1/Tag/Tag.js +0 -140
  573. package/es/v1/Tag/props/defaultProps.js +0 -15
  574. package/es/v1/Tag/props/propTypes.js +0 -36
  575. package/es/v1/TextBox/TextBox.js +0 -160
  576. package/es/v1/TextBox/props/defaultProps.js +0 -20
  577. package/es/v1/TextBox/props/propTypes.js +0 -56
  578. package/es/v1/TextBoxIcon/TextBoxIcon.js +0 -166
  579. package/es/v1/TextBoxIcon/props/defaultProps.js +0 -24
  580. package/es/v1/TextBoxIcon/props/propTypes.js +0 -53
  581. package/es/v1/Textarea/Textarea.js +0 -100
  582. package/es/v1/Textarea/props/defaultProps.js +0 -17
  583. package/es/v1/Textarea/props/propTypes.js +0 -31
  584. package/es/v1/Tooltip/Tooltip.js +0 -530
  585. package/es/v1/Tooltip/props/defaultProps.js +0 -4
  586. package/es/v1/Tooltip/props/propTypes.js +0 -5
  587. package/es/v1/Typography/Typography.js +0 -38
  588. package/es/v1/Typography/css/cssJSLogic.js +0 -56
  589. package/es/v1/Typography/css/v1_Typography.module.css +0 -380
  590. package/es/v1/Typography/props/defaultProps.js +0 -8
  591. package/es/v1/Typography/props/propTypes.js +0 -27
  592. package/es/v1/Typography/utils/index.js +0 -50
  593. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -69
  594. package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -7
  595. package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -12
  596. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -99
  597. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -15
  598. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -19
  599. package/es/v1/semantic/Button/Button.js +0 -53
  600. package/es/v1/semantic/Button/props/defaultProps.js +0 -12
  601. package/es/v1/semantic/Button/props/propTypes.js +0 -22
  602. package/es/v1/semantic/index.js +0 -1
  603. package/lib/Accordion/Accordion.js +0 -134
  604. package/lib/Accordion/AccordionItem.js +0 -111
  605. package/lib/Accordion/__tests__/Accordion.spec.js +0 -18
  606. package/lib/Accordion/__tests__/AccordionItem.spec.js +0 -24
  607. package/lib/Accordion/__tests__/__snapshots__/Accordion.spec.js.snap +0 -12
  608. package/lib/Accordion/__tests__/__snapshots__/AccordionItem.spec.js.snap +0 -23
  609. package/lib/Accordion/index.js +0 -23
  610. package/lib/Accordion/props/defaultProps.js +0 -20
  611. package/lib/Accordion/props/propTypes.js +0 -45
  612. package/lib/Animation/Animation.js +0 -102
  613. package/lib/Animation/__tests__/Animation.spec.js +0 -21
  614. package/lib/Animation/__tests__/__snapshots__/Animation.spec.js.snap +0 -11
  615. package/lib/Animation/props/defaultProps.js +0 -14
  616. package/lib/Animation/props/propTypes.js +0 -23
  617. package/lib/Animation/utils.js +0 -94
  618. package/lib/AppContainer/AppContainer.js +0 -210
  619. package/lib/AppContainer/AppContainer.module.css +0 -18
  620. package/lib/AppContainer/__tests__/AppContainer.spec.js +0 -90
  621. package/lib/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +0 -201
  622. package/lib/AppContainer/props/defaultProps.js +0 -17
  623. package/lib/AppContainer/props/propTypes.js +0 -28
  624. package/lib/Avatar/Avatar.js +0 -253
  625. package/lib/Avatar/Avatar.module.css +0 -176
  626. package/lib/Avatar/__tests__/Avatar.spec.js +0 -188
  627. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +0 -591
  628. package/lib/Avatar/props/defaultProps.js +0 -24
  629. package/lib/Avatar/props/propTypes.js +0 -37
  630. package/lib/AvatarTeam/AvatarTeam.js +0 -133
  631. package/lib/AvatarTeam/AvatarTeam.module.css +0 -189
  632. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -145
  633. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +0 -705
  634. package/lib/AvatarTeam/props/defaultProps.js +0 -24
  635. package/lib/AvatarTeam/props/propTypes.js +0 -40
  636. package/lib/Button/Button.js +0 -91
  637. package/lib/Button/__tests__/Button.spec.js +0 -256
  638. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -412
  639. package/lib/Button/css/Button.module.css +0 -613
  640. package/lib/Button/css/cssJSLogic.js +0 -45
  641. package/lib/Button/index.js +0 -23
  642. package/lib/Button/props/defaultProps.js +0 -27
  643. package/lib/Button/props/propTypes.js +0 -40
  644. package/lib/Buttongroup/Buttongroup.js +0 -100
  645. package/lib/Buttongroup/Buttongroup.module.css +0 -105
  646. package/lib/Buttongroup/__tests__/Buttongroup.spec.js +0 -44
  647. package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +0 -191
  648. package/lib/Buttongroup/props/defaultProps.js +0 -13
  649. package/lib/Buttongroup/props/propTypes.js +0 -20
  650. package/lib/Card/Card.js +0 -399
  651. package/lib/Card/Card.module.css +0 -20
  652. package/lib/Card/__tests__/Card.spec.js +0 -135
  653. package/lib/Card/__tests__/__snapshots__/Card.spec.js.snap +0 -56
  654. package/lib/Card/index.js +0 -37
  655. package/lib/Card/props/defaultProps.js +0 -36
  656. package/lib/Card/props/propTypes.js +0 -63
  657. package/lib/CheckBox/CheckBox.js +0 -223
  658. package/lib/CheckBox/CheckBox.module.css +0 -160
  659. package/lib/CheckBox/__tests__/CheckBox.spec.js +0 -248
  660. package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +0 -1878
  661. package/lib/CheckBox/props/defaultProps.js +0 -25
  662. package/lib/CheckBox/props/propTypes.js +0 -53
  663. package/lib/DateTime/CalendarView.js +0 -290
  664. package/lib/DateTime/DateTime.js +0 -879
  665. package/lib/DateTime/DateTime.module.css +0 -249
  666. package/lib/DateTime/DateTimePopupFooter.js +0 -96
  667. package/lib/DateTime/DateTimePopupHeader.js +0 -166
  668. package/lib/DateTime/DateWidget.js +0 -1173
  669. package/lib/DateTime/DateWidget.module.css +0 -39
  670. package/lib/DateTime/DaysRow.js +0 -81
  671. package/lib/DateTime/Time.js +0 -270
  672. package/lib/DateTime/YearView.js +0 -325
  673. package/lib/DateTime/YearView.module.css +0 -99
  674. package/lib/DateTime/__tests__/CalendarView.spec.js +0 -20
  675. package/lib/DateTime/__tests__/DateTime.spec.js +0 -28
  676. package/lib/DateTime/__tests__/DateTimePopupFooter.spec.js +0 -18
  677. package/lib/DateTime/__tests__/DateTimePopupHeader.spec.js +0 -18
  678. package/lib/DateTime/__tests__/DateWidget.spec.js +0 -18
  679. package/lib/DateTime/__tests__/DaysRow.spec.js +0 -20
  680. package/lib/DateTime/__tests__/Time.spec.js +0 -18
  681. package/lib/DateTime/__tests__/YearView.spec.js +0 -17
  682. package/lib/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +0 -312
  683. package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +0 -938
  684. package/lib/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +0 -34
  685. package/lib/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +0 -72
  686. package/lib/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +0 -79
  687. package/lib/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +0 -12
  688. package/lib/DateTime/__tests__/__snapshots__/Time.spec.js.snap +0 -310
  689. package/lib/DateTime/common.js +0 -36
  690. package/lib/DateTime/constants.js +0 -77
  691. package/lib/DateTime/dateFormatUtils/dateFormat.js +0 -627
  692. package/lib/DateTime/dateFormatUtils/dateFormats.js +0 -50
  693. package/lib/DateTime/dateFormatUtils/dayChange.js +0 -83
  694. package/lib/DateTime/dateFormatUtils/index.js +0 -307
  695. package/lib/DateTime/dateFormatUtils/monthChange.js +0 -96
  696. package/lib/DateTime/dateFormatUtils/timeChange.js +0 -240
  697. package/lib/DateTime/dateFormatUtils/yearChange.js +0 -121
  698. package/lib/DateTime/index.js +0 -15
  699. package/lib/DateTime/objectUtils.js +0 -76
  700. package/lib/DateTime/props/defaultProps.js +0 -78
  701. package/lib/DateTime/props/propTypes.js +0 -235
  702. package/lib/DateTime/typeChecker.js +0 -26
  703. package/lib/DateTime/validator.js +0 -353
  704. package/lib/DropBox/DropBox.js +0 -109
  705. package/lib/DropBox/DropBoxElement/DropBoxElement.js +0 -150
  706. package/lib/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +0 -35
  707. package/lib/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +0 -95
  708. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +0 -442
  709. package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +0 -81
  710. package/lib/DropBox/DropBoxElement/props/defaultProps.js +0 -25
  711. package/lib/DropBox/DropBoxElement/props/propTypes.js +0 -62
  712. package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +0 -60
  713. package/lib/DropBox/DropBoxPositionMapping.js +0 -149
  714. package/lib/DropBox/__tests__/DropBox.spec.js +0 -18
  715. package/lib/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +0 -36
  716. package/lib/DropBox/css/DropBox.module.css +0 -59
  717. package/lib/DropBox/css/cssJSLogic.js +0 -20
  718. package/lib/DropBox/props/defaultProps.js +0 -30
  719. package/lib/DropBox/props/propTypes.js +0 -35
  720. package/lib/DropBox/utils/isMobilePopover.js +0 -25
  721. package/lib/DropDown/DropDown.js +0 -171
  722. package/lib/DropDown/DropDown.module.css +0 -5
  723. package/lib/DropDown/DropDownHeading.js +0 -93
  724. package/lib/DropDown/DropDownHeading.module.css +0 -53
  725. package/lib/DropDown/DropDownItem.js +0 -127
  726. package/lib/DropDown/DropDownItem.module.css +0 -94
  727. package/lib/DropDown/DropDownSearch.js +0 -117
  728. package/lib/DropDown/DropDownSearch.module.css +0 -14
  729. package/lib/DropDown/DropDownSeparator.js +0 -64
  730. package/lib/DropDown/DropDownSeparator.module.css +0 -7
  731. package/lib/DropDown/__tests__/DropDown.spec.js +0 -18
  732. package/lib/DropDown/__tests__/DropDownHeading.spec.js +0 -18
  733. package/lib/DropDown/__tests__/DropDownItem.spec.js +0 -18
  734. package/lib/DropDown/__tests__/DropDownSearch.spec.js +0 -18
  735. package/lib/DropDown/__tests__/DropDownSeparator.spec.js +0 -18
  736. package/lib/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +0 -54
  737. package/lib/DropDown/__tests__/__snapshots__/DropDownHeading.spec.js.snap +0 -12
  738. package/lib/DropDown/__tests__/__snapshots__/DropDownItem.spec.js.snap +0 -11
  739. package/lib/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +0 -20
  740. package/lib/DropDown/__tests__/__snapshots__/DropDownSeparator.spec.js.snap +0 -9
  741. package/lib/DropDown/index.js +0 -65
  742. package/lib/DropDown/props/defaultProps.js +0 -31
  743. package/lib/DropDown/props/propTypes.js +0 -87
  744. package/lib/Heading/Heading.js +0 -94
  745. package/lib/Heading/Heading.module.css +0 -5
  746. package/lib/Heading/__tests__/Heading.spec.js +0 -27
  747. package/lib/Heading/__tests__/__snapshots__/Heading.spec.js.snap +0 -63
  748. package/lib/Heading/props/defaultProps.js +0 -12
  749. package/lib/Heading/props/propTypes.js +0 -23
  750. package/lib/Label/Label.js +0 -97
  751. package/lib/Label/Label.module.css +0 -57
  752. package/lib/Label/LabelColors.module.css +0 -21
  753. package/lib/Label/__tests__/Label.spec.js +0 -106
  754. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -312
  755. package/lib/Label/props/defaultProps.js +0 -18
  756. package/lib/Label/props/propTypes.js +0 -30
  757. package/lib/Layout/Box.js +0 -128
  758. package/lib/Layout/Container.js +0 -145
  759. package/lib/Layout/Layout.module.css +0 -336
  760. package/lib/Layout/__tests__/Box.spec.js +0 -18
  761. package/lib/Layout/__tests__/Container.spec.js +0 -18
  762. package/lib/Layout/__tests__/__snapshots__/Box.spec.js.snap +0 -16
  763. package/lib/Layout/__tests__/__snapshots__/Container.spec.js.snap +0 -16
  764. package/lib/Layout/index.js +0 -23
  765. package/lib/Layout/props/defaultProps.js +0 -24
  766. package/lib/Layout/props/propTypes.js +0 -58
  767. package/lib/Layout/utils.js +0 -59
  768. package/lib/ListItem/ListContainer.js +0 -129
  769. package/lib/ListItem/ListItem.js +0 -204
  770. package/lib/ListItem/ListItem.module.css +0 -261
  771. package/lib/ListItem/ListItemWithAvatar.js +0 -234
  772. package/lib/ListItem/ListItemWithCheckBox.js +0 -195
  773. package/lib/ListItem/ListItemWithIcon.js +0 -213
  774. package/lib/ListItem/ListItemWithRadio.js +0 -198
  775. package/lib/ListItem/__tests__/ListContainer.spec.js +0 -26
  776. package/lib/ListItem/__tests__/ListItem.spec.js +0 -18
  777. package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -53
  778. package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -53
  779. package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +0 -53
  780. package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +0 -53
  781. package/lib/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +0 -27
  782. package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +0 -29
  783. package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +0 -222
  784. package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +0 -492
  785. package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +0 -222
  786. package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +0 -487
  787. package/lib/ListItem/index.js +0 -55
  788. package/lib/ListItem/props/defaultProps.js +0 -117
  789. package/lib/ListItem/props/propTypes.js +0 -214
  790. package/lib/Modal/Modal.js +0 -236
  791. package/lib/Modal/Portal/Portal.js +0 -46
  792. package/lib/Modal/Portal/__tests__/Portal.spec.js +0 -37
  793. package/lib/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +0 -30
  794. package/lib/Modal/Portal/props/defaultProps.js +0 -10
  795. package/lib/Modal/Portal/props/propTypes.js +0 -16
  796. package/lib/Modal/__tests__/Modal.spec.js +0 -22
  797. package/lib/Modal/__tests__/__snapshots__/Modal.spec.js.snap +0 -26
  798. package/lib/Modal/props/defaultProps.js +0 -10
  799. package/lib/Modal/props/propTypes.js +0 -18
  800. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +0 -1198
  801. package/lib/MultiSelect/AdvancedMultiSelect.js +0 -673
  802. package/lib/MultiSelect/EmptyState.js +0 -114
  803. package/lib/MultiSelect/MobileHeader/MobileHeader.js +0 -62
  804. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +0 -16
  805. package/lib/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +0 -18
  806. package/lib/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +0 -39
  807. package/lib/MultiSelect/MobileHeader/props/defaultProps.js +0 -14
  808. package/lib/MultiSelect/MobileHeader/props/propTypes.js +0 -18
  809. package/lib/MultiSelect/MultiSelect.js +0 -1269
  810. package/lib/MultiSelect/MultiSelect.module.css +0 -216
  811. package/lib/MultiSelect/MultiSelectHeader.js +0 -78
  812. package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -276
  813. package/lib/MultiSelect/SelectedOptions.js +0 -132
  814. package/lib/MultiSelect/SelectedOptions.module.css +0 -15
  815. package/lib/MultiSelect/Suggestions.js +0 -279
  816. package/lib/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +0 -20
  817. package/lib/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +0 -56
  818. package/lib/MultiSelect/__tests__/EmptyState.spec.js +0 -22
  819. package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -43
  820. package/lib/MultiSelect/__tests__/MultiSelectHeader.spec.js +0 -28
  821. package/lib/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +0 -18
  822. package/lib/MultiSelect/__tests__/SelectedOptions.spec.js +0 -35
  823. package/lib/MultiSelect/__tests__/Suggestions.spec.js +0 -78
  824. package/lib/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +0 -74
  825. package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +0 -534
  826. package/lib/MultiSelect/__tests__/__snapshots__/EmptyState.spec.js.snap +0 -12
  827. package/lib/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +0 -339
  828. package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +0 -63
  829. package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +0 -85
  830. package/lib/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +0 -80
  831. package/lib/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +0 -363
  832. package/lib/MultiSelect/constants.js +0 -13
  833. package/lib/MultiSelect/index.js +0 -39
  834. package/lib/MultiSelect/props/defaultProps.js +0 -189
  835. package/lib/MultiSelect/props/propTypes.js +0 -325
  836. package/lib/PopOver/PopOver.js +0 -293
  837. package/lib/PopOver/PopOver.module.css +0 -9
  838. package/lib/PopOver/__tests__/PopOver.spec.js +0 -18
  839. package/lib/PopOver/__tests__/__snapshots__/PopOver.spec.js.snap +0 -13
  840. package/lib/PopOver/index.js +0 -31
  841. package/lib/PopOver/props/defaultProps.js +0 -15
  842. package/lib/PopOver/props/propTypes.js +0 -66
  843. package/lib/Popup/Popup.js +0 -1169
  844. package/lib/Popup/PositionMapping.js +0 -81
  845. package/lib/Popup/Registry.js +0 -46
  846. package/lib/Popup/intersectionObserver.js +0 -72
  847. package/lib/Popup/props/propTypes.js +0 -51
  848. package/lib/Popup/viewPort.js +0 -367
  849. package/lib/Provider/AvatarSize.js +0 -24
  850. package/lib/Provider/Config.js +0 -30
  851. package/lib/Provider/CssProvider.js +0 -27
  852. package/lib/Provider/IdProvider.js +0 -80
  853. package/lib/Provider/LibraryContext.js +0 -94
  854. package/lib/Provider/LibraryContextInit.js +0 -15
  855. package/lib/Provider/NumberGenerator/NumberGenerator.js +0 -174
  856. package/lib/Provider/ZindexProvider.js +0 -69
  857. package/lib/Provider/index.js +0 -81
  858. package/lib/Radio/Radio.js +0 -189
  859. package/lib/Radio/Radio.module.css +0 -115
  860. package/lib/Radio/__tests__/Radio.spec.js +0 -246
  861. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +0 -1916
  862. package/lib/Radio/props/defaultProps.js +0 -22
  863. package/lib/Radio/props/propTypes.js +0 -52
  864. package/lib/Responsive/CustomResponsive.js +0 -242
  865. package/lib/Responsive/RefWrapper.js +0 -56
  866. package/lib/Responsive/ResizeComponent.js +0 -268
  867. package/lib/Responsive/ResizeObserver.js +0 -100
  868. package/lib/Responsive/ResizeObserverWithPolyfill.js +0 -168
  869. package/lib/Responsive/Responsive.js +0 -274
  870. package/lib/Responsive/index.js +0 -55
  871. package/lib/Responsive/props/defaultProps.js +0 -23
  872. package/lib/Responsive/props/propTypes.js +0 -39
  873. package/lib/Responsive/sizeObservers.js +0 -214
  874. package/lib/Responsive/utils/index.js +0 -70
  875. package/lib/Responsive/utils/shallowCompare.js +0 -38
  876. package/lib/Responsive/windowResizeObserver.js +0 -63
  877. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +0 -124
  878. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +0 -6
  879. package/lib/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +0 -18
  880. package/lib/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +0 -42
  881. package/lib/ResponsiveDropBox/props/defaultProps.js +0 -11
  882. package/lib/ResponsiveDropBox/props/propTypes.js +0 -27
  883. package/lib/Ribbon/Ribbon.js +0 -98
  884. package/lib/Ribbon/Ribbon.module.css +0 -500
  885. package/lib/Ribbon/__tests__/Ribbon.spec.js +0 -59
  886. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +0 -374
  887. package/lib/Ribbon/props/defaultProps.js +0 -16
  888. package/lib/Ribbon/props/propTypes.js +0 -22
  889. package/lib/RippleEffect/RippleEffect.js +0 -45
  890. package/lib/RippleEffect/RippleEffect.module.css +0 -109
  891. package/lib/RippleEffect/__tests__/RippleEffect.spec.js +0 -76
  892. package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -161
  893. package/lib/RippleEffect/props/defaultProps.js +0 -17
  894. package/lib/RippleEffect/props/propTypes.js +0 -23
  895. package/lib/Select/GroupSelect.js +0 -901
  896. package/lib/Select/Select.js +0 -1067
  897. package/lib/Select/Select.module.css +0 -138
  898. package/lib/Select/SelectWithAvatar.js +0 -408
  899. package/lib/Select/SelectWithIcon.js +0 -632
  900. package/lib/Select/__tests__/GroupSelect.spec.js +0 -27
  901. package/lib/Select/__tests__/Select.spec.js +0 -1398
  902. package/lib/Select/__tests__/SelectWithAvatar.spec.js +0 -20
  903. package/lib/Select/__tests__/SelectWithIcon.spec.js +0 -20
  904. package/lib/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +0 -90
  905. package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +0 -10446
  906. package/lib/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +0 -45
  907. package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +0 -108
  908. package/lib/Select/index.js +0 -39
  909. package/lib/Select/props/defaultProps.js +0 -129
  910. package/lib/Select/props/propTypes.js +0 -333
  911. package/lib/Stencils/Stencils.js +0 -72
  912. package/lib/Stencils/Stencils.module.css +0 -100
  913. package/lib/Stencils/__tests__/Stencils.spec.js +0 -61
  914. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +0 -105
  915. package/lib/Stencils/props/defaultProps.js +0 -14
  916. package/lib/Stencils/props/propTypes.js +0 -19
  917. package/lib/Switch/Switch.js +0 -152
  918. package/lib/Switch/Switch.module.css +0 -128
  919. package/lib/Switch/__tests__/Switch.spec.js +0 -163
  920. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +0 -831
  921. package/lib/Switch/props/defaultProps.js +0 -18
  922. package/lib/Switch/props/propTypes.js +0 -39
  923. package/lib/Tab/Tab.js +0 -134
  924. package/lib/Tab/Tab.module.css +0 -100
  925. package/lib/Tab/TabContent.js +0 -42
  926. package/lib/Tab/TabContent.module.css +0 -4
  927. package/lib/Tab/TabContentWrapper.js +0 -47
  928. package/lib/Tab/TabWrapper.js +0 -91
  929. package/lib/Tab/Tabs.js +0 -787
  930. package/lib/Tab/Tabs.module.css +0 -167
  931. package/lib/Tab/__tests__/Tab.spec.js +0 -18
  932. package/lib/Tab/__tests__/TabContent.spec.js +0 -18
  933. package/lib/Tab/__tests__/TabContentWrapper.spec.js +0 -18
  934. package/lib/Tab/__tests__/TabLayout.spec.js +0 -41
  935. package/lib/Tab/__tests__/TabWrapper.spec.js +0 -18
  936. package/lib/Tab/__tests__/Tabs.spec.js +0 -18
  937. package/lib/Tab/__tests__/__snapshots__/Tab.spec.js.snap +0 -22
  938. package/lib/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +0 -19
  939. package/lib/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +0 -12
  940. package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +0 -341
  941. package/lib/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +0 -20
  942. package/lib/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +0 -33
  943. package/lib/Tab/index.js +0 -47
  944. package/lib/Tab/props/defaultProps.js +0 -62
  945. package/lib/Tab/props/propTypes.js +0 -132
  946. package/lib/Tab/utils/tabConfigs.js +0 -27
  947. package/lib/Tag/Tag.js +0 -219
  948. package/lib/Tag/Tag.module.css +0 -254
  949. package/lib/Tag/__tests__/Tag.spec.js +0 -270
  950. package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +0 -3074
  951. package/lib/Tag/props/defaultProps.js +0 -23
  952. package/lib/Tag/props/propTypes.js +0 -55
  953. package/lib/TextBox/TextBox.js +0 -233
  954. package/lib/TextBox/TextBox.module.css +0 -197
  955. package/lib/TextBox/__tests__/TextBox.spec.js +0 -334
  956. package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +0 -615
  957. package/lib/TextBox/props/defaultProps.js +0 -27
  958. package/lib/TextBox/props/propTypes.js +0 -64
  959. package/lib/TextBoxIcon/TextBoxIcon.js +0 -253
  960. package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -79
  961. package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -279
  962. package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +0 -1784
  963. package/lib/TextBoxIcon/props/defaultProps.js +0 -31
  964. package/lib/TextBoxIcon/props/propTypes.js +0 -74
  965. package/lib/Textarea/Textarea.js +0 -168
  966. package/lib/Textarea/Textarea.module.css +0 -148
  967. package/lib/Textarea/__tests__/Textarea.spec.js +0 -273
  968. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +0 -525
  969. package/lib/Textarea/props/defaultProps.js +0 -25
  970. package/lib/Textarea/props/propTypes.js +0 -46
  971. package/lib/Tooltip/Tooltip.js +0 -599
  972. package/lib/Tooltip/Tooltip.module.css +0 -133
  973. package/lib/Tooltip/props/defaultProps.js +0 -11
  974. package/lib/Tooltip/props/propTypes.js +0 -16
  975. package/lib/Typography/Typography.js +0 -56
  976. package/lib/Typography/css/Typography.module.css +0 -489
  977. package/lib/Typography/css/cssJSLogic.js +0 -48
  978. package/lib/Typography/props/defaultProps.js +0 -15
  979. package/lib/Typography/props/propTypes.js +0 -38
  980. package/lib/Typography/utils/index.js +0 -59
  981. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -126
  982. package/lib/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +0 -18
  983. package/lib/VelocityAnimation/VelocityAnimation/__tests__/__snapshots__/VelocityAnimation.spec.js.snap +0 -9
  984. package/lib/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -14
  985. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -23
  986. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -216
  987. package/lib/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +0 -26
  988. package/lib/VelocityAnimation/VelocityAnimationGroup/__tests__/__snapshots__/VelocityAnimationGroup.spec.js.snap +0 -11
  989. package/lib/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -22
  990. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -33
  991. package/lib/VelocityAnimation/index.js +0 -23
  992. package/lib/common/a11y.module.css +0 -4
  993. package/lib/common/animation.module.css +0 -624
  994. package/lib/common/avatarsizes.module.css +0 -49
  995. package/lib/common/basic.module.css +0 -31
  996. package/lib/common/basicReset.module.css +0 -40
  997. package/lib/common/boxShadow.module.css +0 -34
  998. package/lib/common/common.module.css +0 -566
  999. package/lib/common/customscroll.module.css +0 -142
  1000. package/lib/common/reset.module.css +0 -13
  1001. package/lib/common/transition.module.css +0 -146
  1002. package/lib/components_layer.module.css +0 -1
  1003. package/lib/css.js +0 -83
  1004. package/lib/deprecated/PortalLayer/PortalLayer.js +0 -153
  1005. package/lib/deprecated/PortalLayer/props/defaultProps.js +0 -12
  1006. package/lib/deprecated/PortalLayer/props/propTypes.js +0 -32
  1007. package/lib/deprecated/Switch/Switch.js +0 -108
  1008. package/lib/deprecated/Switch/props/defaultProps.js +0 -18
  1009. package/lib/deprecated/Switch/props/propTypes.js +0 -39
  1010. package/lib/index.js +0 -417
  1011. package/lib/semantic/Button/Button.js +0 -104
  1012. package/lib/semantic/Button/__tests__/Button.spec.js +0 -18
  1013. package/lib/semantic/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -15
  1014. package/lib/semantic/Button/props/defaultProps.js +0 -19
  1015. package/lib/semantic/Button/props/propTypes.js +0 -33
  1016. package/lib/semantic/Button/semanticButton.module.css +0 -9
  1017. package/lib/semantic/index.js +0 -15
  1018. package/lib/utils/Common.js +0 -521
  1019. package/lib/utils/ContextOptimizer.js +0 -49
  1020. package/lib/utils/constant.js +0 -10
  1021. package/lib/utils/constructFullName.js +0 -34
  1022. package/lib/utils/cssUtils.js +0 -22
  1023. package/lib/utils/datetime/GMTZones.js +0 -55
  1024. package/lib/utils/datetime/common.js +0 -251
  1025. package/lib/utils/debounce.js +0 -30
  1026. package/lib/utils/dropDownUtils.js +0 -691
  1027. package/lib/utils/dummyFunction.js +0 -10
  1028. package/lib/utils/getHTMLFontSize.js +0 -11
  1029. package/lib/utils/getInitial.js +0 -33
  1030. package/lib/utils/index.js +0 -103
  1031. package/lib/utils/scrollTo.js +0 -22
  1032. package/lib/utils/shallowEqual.js +0 -41
  1033. package/lib/v1/Accordion/Accordion.js +0 -98
  1034. package/lib/v1/Accordion/AccordionItem.js +0 -68
  1035. package/lib/v1/Accordion/index.js +0 -23
  1036. package/lib/v1/Accordion/props/defaultProps.js +0 -20
  1037. package/lib/v1/Accordion/props/propTypes.js +0 -45
  1038. package/lib/v1/Animation/Animation.js +0 -61
  1039. package/lib/v1/Animation/props/defaultProps.js +0 -14
  1040. package/lib/v1/Animation/props/propTypes.js +0 -23
  1041. package/lib/v1/Animation/utils.js +0 -94
  1042. package/lib/v1/AppContainer/AppContainer.js +0 -146
  1043. package/lib/v1/AppContainer/props/defaultProps.js +0 -17
  1044. package/lib/v1/AppContainer/props/propTypes.js +0 -28
  1045. package/lib/v1/Avatar/Avatar.js +0 -191
  1046. package/lib/v1/Avatar/props/defaultProps.js +0 -24
  1047. package/lib/v1/Avatar/props/propTypes.js +0 -37
  1048. package/lib/v1/AvatarTeam/AvatarTeam.js +0 -81
  1049. package/lib/v1/AvatarTeam/props/defaultProps.js +0 -24
  1050. package/lib/v1/AvatarTeam/props/propTypes.js +0 -38
  1051. package/lib/v1/Button/Button.js +0 -82
  1052. package/lib/v1/Button/props/defaultProps.js +0 -27
  1053. package/lib/v1/Button/props/propTypes.js +0 -40
  1054. package/lib/v1/Buttongroup/Buttongroup.js +0 -44
  1055. package/lib/v1/Buttongroup/props/defaultProps.js +0 -13
  1056. package/lib/v1/Buttongroup/props/propTypes.js +0 -20
  1057. package/lib/v1/Card/Card.js +0 -269
  1058. package/lib/v1/Card/index.js +0 -37
  1059. package/lib/v1/Card/props/defaultProps.js +0 -35
  1060. package/lib/v1/Card/props/propTypes.js +0 -62
  1061. package/lib/v1/CheckBox/CheckBox.js +0 -172
  1062. package/lib/v1/CheckBox/props/defaultProps.js +0 -25
  1063. package/lib/v1/CheckBox/props/propTypes.js +0 -52
  1064. package/lib/v1/DateTime/CalendarView.js +0 -322
  1065. package/lib/v1/DateTime/DateTime.js +0 -877
  1066. package/lib/v1/DateTime/DateTimePopupFooter.js +0 -96
  1067. package/lib/v1/DateTime/DateTimePopupHeader.js +0 -166
  1068. package/lib/v1/DateTime/DateWidget.js +0 -1163
  1069. package/lib/v1/DateTime/DaysRow.js +0 -81
  1070. package/lib/v1/DateTime/Time.js +0 -270
  1071. package/lib/v1/DateTime/YearView.js +0 -325
  1072. package/lib/v1/DateTime/index.js +0 -15
  1073. package/lib/v1/DateTime/props/defaultProps.js +0 -76
  1074. package/lib/v1/DateTime/props/propTypes.js +0 -238
  1075. package/lib/v1/DropBox/DropBox.js +0 -109
  1076. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -146
  1077. package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -25
  1078. package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -62
  1079. package/lib/v1/DropBox/props/defaultProps.js +0 -30
  1080. package/lib/v1/DropBox/props/propTypes.js +0 -35
  1081. package/lib/v1/DropBox/utils/isMobilePopover.js +0 -25
  1082. package/lib/v1/DropDown/DropDown.js +0 -74
  1083. package/lib/v1/DropDown/DropDownHeading.js +0 -47
  1084. package/lib/v1/DropDown/DropDownItem.js +0 -75
  1085. package/lib/v1/DropDown/DropDownSearch.js +0 -77
  1086. package/lib/v1/DropDown/DropDownSeparator.js +0 -24
  1087. package/lib/v1/DropDown/props/defaultProps.js +0 -31
  1088. package/lib/v1/DropDown/props/propTypes.js +0 -87
  1089. package/lib/v1/Heading/Heading.js +0 -53
  1090. package/lib/v1/Heading/props/defaultProps.js +0 -12
  1091. package/lib/v1/Heading/props/propTypes.js +0 -23
  1092. package/lib/v1/Label/Label.js +0 -51
  1093. package/lib/v1/Label/props/defaultProps.js +0 -18
  1094. package/lib/v1/Label/props/propTypes.js +0 -30
  1095. package/lib/v1/Layout/Box.js +0 -128
  1096. package/lib/v1/Layout/Container.js +0 -145
  1097. package/lib/v1/Layout/index.js +0 -23
  1098. package/lib/v1/Layout/props/defaultProps.js +0 -24
  1099. package/lib/v1/Layout/props/propTypes.js +0 -58
  1100. package/lib/v1/ListItem/ListContainer.js +0 -128
  1101. package/lib/v1/ListItem/ListItem.js +0 -138
  1102. package/lib/v1/ListItem/ListItemWithAvatar.js +0 -167
  1103. package/lib/v1/ListItem/ListItemWithCheckBox.js +0 -126
  1104. package/lib/v1/ListItem/ListItemWithIcon.js +0 -143
  1105. package/lib/v1/ListItem/ListItemWithRadio.js +0 -127
  1106. package/lib/v1/ListItem/index.js +0 -55
  1107. package/lib/v1/ListItem/props/defaultProps.js +0 -109
  1108. package/lib/v1/ListItem/props/propTypes.js +0 -196
  1109. package/lib/v1/Modal/Modal.js +0 -166
  1110. package/lib/v1/Modal/props/defaultProps.js +0 -10
  1111. package/lib/v1/Modal/props/propTypes.js +0 -18
  1112. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1180
  1113. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +0 -649
  1114. package/lib/v1/MultiSelect/EmptyState.js +0 -112
  1115. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -62
  1116. package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -14
  1117. package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -18
  1118. package/lib/v1/MultiSelect/MultiSelect.js +0 -1202
  1119. package/lib/v1/MultiSelect/MultiSelectHeader.js +0 -78
  1120. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +0 -262
  1121. package/lib/v1/MultiSelect/SelectedOptions.js +0 -130
  1122. package/lib/v1/MultiSelect/Suggestions.js +0 -196
  1123. package/lib/v1/MultiSelect/index.js +0 -39
  1124. package/lib/v1/MultiSelect/props/defaultProps.js +0 -181
  1125. package/lib/v1/MultiSelect/props/propTypes.js +0 -350
  1126. package/lib/v1/PopOver/PopOver.js +0 -197
  1127. package/lib/v1/PopOver/props/defaultProps.js +0 -15
  1128. package/lib/v1/PopOver/props/propTypes.js +0 -66
  1129. package/lib/v1/Popup/Popup.js +0 -715
  1130. package/lib/v1/Radio/Radio.js +0 -141
  1131. package/lib/v1/Radio/props/defaultProps.js +0 -22
  1132. package/lib/v1/Radio/props/propTypes.js +0 -51
  1133. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -79
  1134. package/lib/v1/ResponsiveDropBox/props/defaultProps.js +0 -11
  1135. package/lib/v1/ResponsiveDropBox/props/propTypes.js +0 -27
  1136. package/lib/v1/Ribbon/Ribbon.js +0 -44
  1137. package/lib/v1/Ribbon/props/defaultProps.js +0 -16
  1138. package/lib/v1/Ribbon/props/propTypes.js +0 -22
  1139. package/lib/v1/RippleEffect/RippleEffect.js +0 -40
  1140. package/lib/v1/RippleEffect/props/defaultProps.js +0 -17
  1141. package/lib/v1/RippleEffect/props/propTypes.js +0 -23
  1142. package/lib/v1/Select/GroupSelect.js +0 -894
  1143. package/lib/v1/Select/Select.js +0 -1025
  1144. package/lib/v1/Select/SelectWithAvatar.js +0 -406
  1145. package/lib/v1/Select/SelectWithIcon.js +0 -607
  1146. package/lib/v1/Select/index.js +0 -39
  1147. package/lib/v1/Select/props/defaultProps.js +0 -125
  1148. package/lib/v1/Select/props/propTypes.js +0 -319
  1149. package/lib/v1/Stencils/Stencils.js +0 -43
  1150. package/lib/v1/Stencils/props/defaultProps.js +0 -13
  1151. package/lib/v1/Stencils/props/propTypes.js +0 -18
  1152. package/lib/v1/Switch/Switch.js +0 -159
  1153. package/lib/v1/Switch/__tests__/Switch.spec.js +0 -37
  1154. package/lib/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +0 -135
  1155. package/lib/v1/Switch/contants/index.js +0 -34
  1156. package/lib/v1/Switch/css/Switch_v1.module.css +0 -134
  1157. package/lib/v1/Switch/css/cssJSLogic.js +0 -37
  1158. package/lib/v1/Switch/props/defaultProps.js +0 -18
  1159. package/lib/v1/Switch/props/propTypes.js +0 -47
  1160. package/lib/v1/Switch/useSwitch.js +0 -56
  1161. package/lib/v1/Tab/Tab.js +0 -132
  1162. package/lib/v1/Tab/TabContent.js +0 -42
  1163. package/lib/v1/Tab/TabContentWrapper.js +0 -47
  1164. package/lib/v1/Tab/TabWrapper.js +0 -89
  1165. package/lib/v1/Tab/Tabs.js +0 -688
  1166. package/lib/v1/Tab/index.js +0 -47
  1167. package/lib/v1/Tab/props/defaultProps.js +0 -62
  1168. package/lib/v1/Tab/props/propTypes.js +0 -132
  1169. package/lib/v1/Tab/v1Tab.module.css +0 -100
  1170. package/lib/v1/Tab/v1TabContent.module.css +0 -4
  1171. package/lib/v1/Tab/v1Tabs.module.css +0 -167
  1172. package/lib/v1/Tag/Tag.js +0 -160
  1173. package/lib/v1/Tag/props/defaultProps.js +0 -22
  1174. package/lib/v1/Tag/props/propTypes.js +0 -47
  1175. package/lib/v1/TextBox/TextBox.js +0 -175
  1176. package/lib/v1/TextBox/props/defaultProps.js +0 -27
  1177. package/lib/v1/TextBox/props/propTypes.js +0 -62
  1178. package/lib/v1/TextBoxIcon/TextBoxIcon.js +0 -206
  1179. package/lib/v1/TextBoxIcon/props/defaultProps.js +0 -31
  1180. package/lib/v1/TextBoxIcon/props/propTypes.js +0 -72
  1181. package/lib/v1/Textarea/Textarea.js +0 -118
  1182. package/lib/v1/Textarea/props/defaultProps.js +0 -24
  1183. package/lib/v1/Textarea/props/propTypes.js +0 -42
  1184. package/lib/v1/Tooltip/Tooltip.js +0 -599
  1185. package/lib/v1/Tooltip/props/defaultProps.js +0 -11
  1186. package/lib/v1/Tooltip/props/propTypes.js +0 -16
  1187. package/lib/v1/Typography/Typography.js +0 -56
  1188. package/lib/v1/Typography/css/cssJSLogic.js +0 -48
  1189. package/lib/v1/Typography/css/v1_Typography.module.css +0 -380
  1190. package/lib/v1/Typography/props/defaultProps.js +0 -15
  1191. package/lib/v1/Typography/props/propTypes.js +0 -38
  1192. package/lib/v1/Typography/utils/index.js +0 -59
  1193. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -90
  1194. package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -14
  1195. package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -23
  1196. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -126
  1197. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -22
  1198. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -30
  1199. package/lib/v1/semantic/Button/Button.js +0 -63
  1200. package/lib/v1/semantic/Button/props/defaultProps.js +0 -19
  1201. package/lib/v1/semantic/Button/props/propTypes.js +0 -33
  1202. package/lib/v1/semantic/index.js +0 -15
package/es/Popup/Popup.js DELETED
@@ -1,1049 +0,0 @@
1
- /**** Libraries ****/
2
- import React from 'react';
3
- import hoistStatics from 'hoist-non-react-statics';
4
- import { PopupPropTypes, ContextTypes } from "./props/propTypes";
5
- /**** Methods ****/
6
-
7
- import { debounce, isDescendant, isTextSelected, cancelBubblingEffect, DUMMY_OBJECT } from "../utils/Common.js";
8
- import viewPort from "./viewPort";
9
- import { absolutePositionMapping, rtlAbsolutePositionMapping, rtlFixedPositionMapping } from "./PositionMapping.js";
10
- import ResizeObserver from '@zohodesk/virtualizer/lib/commons/ResizeObserver.js';
11
- import { addIntersectionObserver, removeIntersectionObserver } from "./intersectionObserver";
12
- import { positionMapping } from "../DropBox/DropBoxPositionMapping.js";
13
- import isMobilePopover from "../DropBox/utils/isMobilePopover.js";
14
- import selectn from 'selectn';
15
- import Registry from "./Registry.js";
16
-
17
- global.closeGroupPopups = function (groupName) {
18
- const groupPopups = Registry.popups[groupName] || [];
19
- groupPopups.forEach(popup => {
20
- popup.state.isPopupOpen && popup.setState({
21
- isPopupOpen: false,
22
- isPopupReady: false
23
- });
24
- });
25
- };
26
-
27
- const defaultState = {
28
- position: 'bottomCenter',
29
- height: '0px',
30
- positions: {},
31
- //{bottomCenter: true, bottomLeft: false, ...}
32
- positionsOffset: {},
33
- //{bottomCenter: {left: ‘’,top: ‘’ }, .....}
34
- targetOffset: {},
35
- //{height: ‘’, width: ‘’,}
36
- popupOffset: {},
37
- //{height: ‘’, width: ‘’,}
38
- isAbsolutePositioningNeeded: true
39
- };
40
- const SCROLL_BLOCK_EVENTS = Object.freeze([{
41
- name: 'wheel',
42
- handlerName: 'handleBlockScroll',
43
- options: {
44
- capture: true,
45
- passive: false
46
- }
47
- }, {
48
- name: 'touchmove',
49
- handlerName: 'handleBlockScroll',
50
- options: {
51
- capture: true,
52
- passive: false
53
- }
54
- }, {
55
- name: 'scroll',
56
- handlerName: 'handlePositionChange',
57
- options: {
58
- capture: true,
59
- passive: false
60
- }
61
- }, {
62
- name: 'keydown',
63
- handlerName: 'preventKeyboardScroll',
64
- options: {
65
- capture: true,
66
- passive: false
67
- }
68
- }]);
69
- const IFRAME_SCROLL_BLOCK_EVENTS = Object.freeze(SCROLL_BLOCK_EVENTS.filter(event => event.name !== 'keydown'));
70
- const CLICK_EVENTS = Object.freeze([{
71
- name: 'click',
72
- handlerName: 'documentClickHandler',
73
- options: {
74
- capture: false,
75
- passive: false
76
- }
77
- }, {
78
- name: 'click',
79
- handlerName: 'documentClickHandler1',
80
- options: {
81
- capture: true,
82
- passive: false
83
- }
84
- }]);
85
- /* eslint-disable react/no-deprecated */
86
-
87
- /* eslint-disable react/prop-types */
88
-
89
- const Popup = function (Component) {
90
- let group = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'global';
91
- let needResizeHandling = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
92
- let {
93
- isAbsolutePositioningNeeded: isAbsolutePopup = true,
94
- isArrow: needPopupArrow = false,
95
- customOrder: customPositionOrder = [],
96
- scrollDebounceTime: popupScrollDebounceTime = 0,
97
- closeOnScroll: closeOnScrollPopup = false,
98
- isOutsideScrollBlocked: isOutsideScrollBlock = false
99
- } = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
100
-
101
- class Popup extends React.Component {
102
- constructor(props) {
103
- super(props);
104
- this.state = {
105
- isPopupOpen: props.isPopupOpen || false,
106
- position: 'bottomCenter',
107
- height: '0px',
108
- isPopupReady: props.isPopupOpen || false,
109
- positions: {},
110
- //{bottomCenter: true, bottomLeft: false, ...}
111
- positionsOffset: {},
112
- //{bottomCenter: {left: ‘’,top: ‘’ }, .....}
113
- targetOffset: {},
114
- //{height: ‘’, width: ‘’,}
115
- popupOffset: {},
116
- //{height: ‘’, width: ‘’,}
117
- isAbsolutePositioningNeeded: true,
118
- isMobile: false
119
- };
120
- this.togglePopup = this.togglePopup.bind(this);
121
- this.documentClickHandler = this.documentClickHandler.bind(this);
122
- this.documentClickHandler1 = this.documentClickHandler1.bind(this);
123
- this.removeClose = this.removeClose.bind(this);
124
- this.documentKeyupHandler = this.documentKeyupHandler.bind(this);
125
- this.openPopupOnly = this.openPopupOnly.bind(this);
126
- this.closePopupOnly = this.closePopupOnly.bind(this);
127
- this.getTargetRef = this.getTargetRef.bind(this);
128
- this.getContainerRef = this.getContainerRef.bind(this);
129
- this.handlePopupPosition = this.handlePopupPosition.bind(this);
130
- this.handleResize = debounce(this.handleResize.bind(this), 300);
131
- this.handlePopupResize = this.handlePopupResize.bind(this);
132
- this.getIsAbsolutePopup = this.getIsAbsolutePopup.bind(this);
133
- this.getIsOutsideScrollBlocked = this.getIsOutsideScrollBlocked.bind(this);
134
- this.getNeedArrow = this.getNeedArrow.bind(this);
135
- this.getCustomPositionOrder = this.getCustomPositionOrder.bind(this);
136
- this.handleOpenPopupPositionChange = this.handleOpenPopupPositionChange.bind(this);
137
- this.getScrollDebounceTime = this.getScrollDebounceTime.bind(this);
138
- this.getCloseOnScrollPopup = this.getCloseOnScrollPopup.bind(this);
139
- this.handleCloseLastOpenedGroup = this.handleCloseLastOpenedGroup.bind(this);
140
- this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this);
141
- this.handleDocumentFocus = this.handleDocumentFocus.bind(this);
142
- this.handleGetNeedPrevent = this.handleGetNeedPrevent.bind(this);
143
- this.handleBlockScroll = this.handleBlockScroll.bind(this);
144
- this.handlePositionChange = this.handlePositionChange.bind(this);
145
- this.preventKeyboardScroll = this.preventKeyboardScroll.bind(this);
146
- this.updateListeners = this.updateListeners.bind(this);
147
- this.addScrollBlockListeners = this.addScrollBlockListeners.bind(this);
148
- this.removeScrollBlockListeners = this.removeScrollBlockListeners.bind(this);
149
- this.addScrollToUpdateListeners = this.addScrollToUpdateListeners.bind(this);
150
- this.removeScrollToUpdateListeners = this.removeScrollToUpdateListeners.bind(this);
151
- this.handleAddingScrollBlock = this.handleAddingScrollBlock.bind(this);
152
- this.handleRemovingScrollBlock = this.handleRemovingScrollBlock.bind(this);
153
- this.handleIntersectionObserver = this.handleIntersectionObserver.bind(this);
154
- this.updateVisibilityOnIntersection = this.updateVisibilityOnIntersection.bind(this);
155
- this.handleAddingScrollToUpdatePosition = this.handleAddingScrollToUpdatePosition.bind(this);
156
- this.handleRemovingScrollToUpdatePosition = this.handleRemovingScrollToUpdatePosition.bind(this);
157
- this.setContainerDynamicPositioning = this.setContainerDynamicPositioning.bind(this);
158
- this.updatePopupState = this.updatePopupState.bind(this);
159
- this.handleScrollAndBlockEvents = this.handleScrollAndBlockEvents.bind(this);
160
- this.handleIframeEventListeners = this.handleIframeEventListeners.bind(this);
161
- this.handleDropElementStyleUpdate = this.handleDropElementStyleUpdate.bind(this);
162
- this.positionRef = /*#__PURE__*/React.createRef();
163
- this.rootElement = Registry.getRootElement();
164
- this.popupObserver = new ResizeObserver(this.handlePopupResize);
165
- this.cancelRaf = this.cancelRaf.bind(this);
166
- this.cancelPendingAnimationFrames = this.cancelPendingAnimationFrames.bind(this);
167
- this.setPositionRafId = null;
168
- this.resizePositionRafId = null; //dropBoxSize
169
-
170
- this.size = null;
171
- this.isTargetElementVisible = false;
172
- this.isAbsolutePopup = isAbsolutePopup;
173
- this.needPopupArrow = needPopupArrow;
174
- this.customPositionOrder = customPositionOrder;
175
- this.scrollDebounceTime = popupScrollDebounceTime;
176
- this.closeOnScroll = closeOnScrollPopup;
177
- this.isOutsideScrollBlock = isOutsideScrollBlock;
178
- const scrollDebounceTime = this.getScrollDebounceTime(this);
179
- this.updatePositionOnScroll = scrollDebounceTime > 0 ? debounce(this.updatePositionOnScroll.bind(this), scrollDebounceTime) : this.updatePositionOnScroll.bind(this); // this.handleScroll = debounce(this.handleScroll.bind(this), scrollDebounceTime);
180
- }
181
-
182
- componentDidMount() {
183
- const group = this.getGroup();
184
- const groupPopups = Registry.popups[group] || [];
185
- groupPopups.push(this);
186
- Registry.popups[group] = groupPopups;
187
-
188
- if (Object.keys(Registry.popups).length === 1 && groupPopups.length === 1 && Registry.listenerPopupRef === undefined) {
189
- Registry.listenerPopupRef = this;
190
- Registry.listenerPopupRef.updateListeners(true, CLICK_EVENTS, document);
191
- document.addEventListener('keyup', Registry.listenerPopupRef.documentKeyupHandler, false); // document.addEventListener('scroll', Registry.listenerPopupRef.handleScroll, true);
192
-
193
- window.addEventListener('resize', Registry.listenerPopupRef.handleResize);
194
- document.addEventListener('mousedown', Registry.listenerPopupRef.handleDocumentMouseDown, true);
195
- document.addEventListener('focus', Registry.listenerPopupRef.handleDocumentFocus, true);
196
- }
197
- }
198
-
199
- UNSAFE_componentWillReceiveProps(nextProps) {
200
- const {
201
- isPopupOpen
202
- } = this.state;
203
-
204
- if (typeof nextProps.isPopupOpen !== 'undefined' && nextProps.isPopupOpen !== isPopupOpen) {
205
- this.setState({
206
- isPopupOpen: nextProps.isPopupOpen,
207
- isPopupReady: nextProps.isPopupOpen
208
- });
209
- }
210
- }
211
-
212
- handleScrollAndBlockEvents(shouldAdd) {
213
- if (shouldAdd) {
214
- this.handleAddingScrollBlock();
215
- this.handleAddingScrollToUpdatePosition();
216
- } else {
217
- this.handleRemovingScrollBlock();
218
- this.handleRemovingScrollToUpdatePosition();
219
- }
220
- }
221
-
222
- handleIframeEventListeners(shouldAdd, eventList) {
223
- this.rootElement.querySelectorAll('iframe').forEach(frame => {
224
- const frameDocument = frame.contentDocument;
225
-
226
- if (frameDocument) {
227
- this.updateListeners(shouldAdd, eventList, frameDocument);
228
- }
229
- });
230
- }
231
-
232
- componentDidUpdate(prevProps, prevState) {
233
- const {
234
- isPopupReady,
235
- isMobile
236
- } = this.state;
237
- const {
238
- isPopupReady: oldStateOpen = false,
239
- isMobile: oldIsMobileState
240
- } = prevState || {};
241
- const {
242
- dropElement
243
- } = this;
244
- const {
245
- needResizeHandling: propResizeHandling
246
- } = this.props;
247
-
248
- if (oldStateOpen !== isPopupReady) {
249
- if (isPopupReady && dropElement && (propResizeHandling !== undefined ? propResizeHandling : needResizeHandling)) {
250
- this.popupObserver.replaceObservationElement(dropElement);
251
- } else if (!isPopupReady) {
252
- this.size = null;
253
- this.popupObserver.disconnect();
254
- }
255
- }
256
-
257
- if (oldStateOpen !== isPopupReady && !isMobile || oldIsMobileState !== isMobile) {
258
- const shouldAdd = isPopupReady && !isMobile;
259
- this.handleScrollAndBlockEvents(shouldAdd);
260
- this.handleIframeEventListeners(shouldAdd, CLICK_EVENTS);
261
- }
262
- }
263
-
264
- cancelRaf(refName) {
265
- const id = this[refName];
266
-
267
- if (id) {
268
- cancelAnimationFrame(id);
269
- this[refName] = null;
270
- }
271
- }
272
-
273
- cancelPendingAnimationFrames() {
274
- this.cancelRaf('setPositionRafId');
275
- this.cancelRaf('resizePositionRafId');
276
- }
277
-
278
- componentWillUnmount() {
279
- const group = this.getGroup();
280
- Registry.popups = Object.keys(Registry.popups).reduce((res, groupName) => {
281
- if (groupName === group) {
282
- const groupPopups = Registry.popups[group];
283
- const newGroupPopups = groupPopups.filter(popup => popup !== this);
284
- newGroupPopups.length === 0 && Registry.lastOpenedGroup.indexOf(group) >= 0 && Registry.lastOpenedGroup.splice(Registry.lastOpenedGroup.indexOf(group), 1);
285
- res[group] = newGroupPopups;
286
- }
287
-
288
- return res;
289
- }, Registry.popups);
290
- this.handleRemovingScrollBlock();
291
- this.handleRemovingScrollToUpdatePosition();
292
- this.handleIframeEventListeners(false, CLICK_EVENTS);
293
- let noPopups = true;
294
-
295
- for (const i in Registry.popups) {
296
- if (Registry.popups[i].length >= 1) {
297
- noPopups = false;
298
- break;
299
- }
300
- }
301
-
302
- if (this.popupObserver) {
303
- this.popupObserver.disconnect();
304
- }
305
-
306
- if (noPopups && Registry.listenerPopupRef !== undefined) {
307
- Registry.listenerPopupRef.updateListeners(false, CLICK_EVENTS, document);
308
- document.removeEventListener('keyup', Registry.listenerPopupRef.documentKeyupHandler); // document.removeEventListener('scroll', Registry.listenerPopupRef.handleScroll);
309
-
310
- window.removeEventListener('resize', Registry.listenerPopupRef.handleResize);
311
- document.removeEventListener('mousedown', Registry.listenerPopupRef.handleDocumentMouseDown, true);
312
- document.removeEventListener('focus', Registry.listenerPopupRef.handleDocumentFocus, true);
313
- Registry.listenerPopupRef = undefined;
314
- }
315
-
316
- this.cancelPendingAnimationFrames();
317
- }
318
-
319
- handleAddingScrollBlock() {
320
- const isAbsolutePositioningNeeded = this.getIsAbsolutePopup(this);
321
- const isOutsideScrollBlocked = this.getIsOutsideScrollBlocked(this);
322
-
323
- if (isOutsideScrollBlocked && !isAbsolutePositioningNeeded) {
324
- addIntersectionObserver(this.placeHolderElement, this.handleIntersectionObserver);
325
- this.addScrollBlockListeners();
326
- }
327
- }
328
-
329
- handleRemovingScrollBlock() {
330
- const isAbsolutePositioningNeeded = this.getIsAbsolutePopup(this);
331
- const isOutsideScrollBlocked = this.getIsOutsideScrollBlocked(this);
332
-
333
- if (isOutsideScrollBlocked && !isAbsolutePositioningNeeded) {
334
- removeIntersectionObserver(this.placeHolderElement, this.handleIntersectionObserver);
335
- this.removeScrollBlockListeners();
336
- }
337
- }
338
-
339
- handleAddingScrollToUpdatePosition() {
340
- const isAbsolutePositioningNeeded = this.getIsAbsolutePopup(this);
341
- const isOutsideScrollBlocked = this.getIsOutsideScrollBlocked(this);
342
-
343
- if (!isOutsideScrollBlocked && !isAbsolutePositioningNeeded) {
344
- addIntersectionObserver(this.placeHolderElement, this.updateVisibilityOnIntersection);
345
- const shouldAddScrollToUpdatePositionListeners = Registry.getOpenedScrollableFixedPopups().length === 1 && Registry.scrollableListenerPopupRef === undefined;
346
-
347
- if (shouldAddScrollToUpdatePositionListeners) {
348
- Registry.scrollableListenerPopupRef = this;
349
- Registry.scrollableListenerPopupRef.addScrollToUpdateListeners();
350
- }
351
- }
352
- }
353
-
354
- handleRemovingScrollToUpdatePosition() {
355
- const isAbsolutePositioningNeeded = this.getIsAbsolutePopup(this);
356
- const isOutsideScrollBlocked = this.getIsOutsideScrollBlocked(this);
357
-
358
- if (!isOutsideScrollBlocked && !isAbsolutePositioningNeeded) {
359
- removeIntersectionObserver(this.placeHolderElement, this.updateVisibilityOnIntersection);
360
- const shouldRemoveScrollToUpdatePositionListeners = Registry.getOpenedScrollableFixedPopups().length === 0 && Registry.scrollableListenerPopupRef !== undefined;
361
-
362
- if (shouldRemoveScrollToUpdatePositionListeners) {
363
- Registry.scrollableListenerPopupRef.removeScrollToUpdateListeners();
364
- Registry.scrollableListenerPopupRef = undefined;
365
- }
366
- }
367
- }
368
-
369
- handleDropElementStyleUpdate(_ref) {
370
- let {
371
- top = '',
372
- left = '',
373
- bottom = '',
374
- right = ''
375
- } = _ref;
376
- const {
377
- dropElement
378
- } = this;
379
- Object.assign(dropElement.style, {
380
- top: top ? `${top}px` : '',
381
- left: left ? `${left}px` : '',
382
- right: right ? `${right}px` : '',
383
- bottom: bottom ? `${bottom}px` : ''
384
- });
385
- }
386
-
387
- setContainerDynamicPositioning(betterPosition, needArrow) {
388
- const {
389
- dropElement
390
- } = this;
391
- const {
392
- isMobile
393
- } = this.state;
394
- const {
395
- view,
396
- viewsOffset
397
- } = betterPosition || DUMMY_OBJECT;
398
- const styleToApply = selectn(`${view}`, viewsOffset);
399
-
400
- if (isMobile) {
401
- this.handleDropElementStyleUpdate({
402
- top: '',
403
- left: '',
404
- right: '',
405
- bottom: ''
406
- });
407
- } else {
408
- this.handleDropElementStyleUpdate(styleToApply);
409
-
410
- if (this.positionRef.current !== view) {
411
- dropElement.setAttribute('data-position', `${view}`);
412
- dropElement.setAttribute('data-box-direction', selectn(`${view}.direction`, positionMapping));
413
-
414
- if (needArrow) {
415
- dropElement.setAttribute('data-arrow-position', selectn(`${view}.arrowPosition`, positionMapping));
416
- }
417
-
418
- this.positionRef.current = view;
419
- }
420
- }
421
- }
422
-
423
- updatePositionOnScroll(e) {
424
- const scrollablePopups = Registry.getOpenedScrollableFixedPopups(); // Check if the event target is outside all dropElements
425
-
426
- scrollablePopups.forEach(_ref2 => {
427
- let {
428
- placeHolderElement,
429
- defaultPosition,
430
- isTargetElementVisible,
431
- handlePopupPosition
432
- } = _ref2;
433
-
434
- if (e.target.contains(placeHolderElement) && isTargetElementVisible) {
435
- handlePopupPosition(defaultPosition, true);
436
- }
437
- });
438
- }
439
-
440
- updateListeners() {
441
- let add = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
442
- let eventList = arguments.length > 1 ? arguments[1] : undefined;
443
- let element = arguments.length > 2 ? arguments[2] : undefined;
444
- const method = add ? 'addEventListener' : 'removeEventListener';
445
- eventList.forEach(_ref3 => {
446
- let {
447
- name,
448
- handlerName,
449
- options
450
- } = _ref3;
451
- const handler = this[handlerName];
452
-
453
- if (handler) {
454
- element[method](name, handler, options);
455
- }
456
- });
457
- }
458
-
459
- addScrollBlockListeners() {
460
- // Only add scroll block listeners if at least one open popup needs outside scroll blocked
461
- const shouldAddScrollBlockListeners = Registry.getOpenedScrollBlockedFixedPopups().length === 1 && Registry.scrollBlockedListenerPopupRef === undefined;
462
-
463
- if (shouldAddScrollBlockListeners) {
464
- Registry.scrollBlockedListenerPopupRef = this; // Main document
465
-
466
- Registry.scrollBlockedListenerPopupRef.updateListeners(true, SCROLL_BLOCK_EVENTS, document); // Attach event listeners to all iframes within rootElement
467
-
468
- Registry.scrollBlockedListenerPopupRef.handleIframeEventListeners(true, IFRAME_SCROLL_BLOCK_EVENTS);
469
- }
470
- }
471
-
472
- removeScrollBlockListeners() {
473
- // Only remove scroll block listeners if at least one open popup needs outside scroll blocked
474
- const shouldRemoveScrollBlockListeners = Registry.getOpenedScrollBlockedFixedPopups().length === 0 && Registry.scrollBlockedListenerPopupRef !== undefined;
475
-
476
- if (shouldRemoveScrollBlockListeners) {
477
- Registry.scrollBlockedListenerPopupRef.updateListeners(false, SCROLL_BLOCK_EVENTS, document);
478
- Registry.scrollBlockedListenerPopupRef.handleIframeEventListeners(false, IFRAME_SCROLL_BLOCK_EVENTS);
479
- Registry.scrollBlockedListenerPopupRef = undefined;
480
- }
481
- }
482
-
483
- addScrollToUpdateListeners() {
484
- document.addEventListener('scroll', this.updatePositionOnScroll, {
485
- capture: true,
486
- passive: false
487
- });
488
- }
489
-
490
- removeScrollToUpdateListeners() {
491
- document.removeEventListener('scroll', this.updatePositionOnScroll, {
492
- capture: true,
493
- passive: false
494
- });
495
- }
496
-
497
- handleBlockScroll(event) {
498
- const scrollBlockedPopups = Registry.getOpenedScrollBlockedFixedPopups(); // Check if the event target is outside all dropElements
499
-
500
- const isOutsideAllDropElements = scrollBlockedPopups.every(_ref4 => {
501
- let {
502
- dropElement
503
- } = _ref4;
504
- return dropElement && dropElement !== event.target && !dropElement.contains(event.target);
505
- });
506
-
507
- if (isOutsideAllDropElements) {
508
- event.preventDefault();
509
- }
510
- }
511
-
512
- handlePositionChange(event) {
513
- const scrollBlockedPopups = Registry.getOpenedScrollBlockedFixedPopups();
514
- scrollBlockedPopups.forEach(_ref5 => {
515
- let {
516
- placeHolderElement,
517
- dropElement,
518
- handlePopupPosition,
519
- state
520
- } = _ref5;
521
-
522
- if (dropElement && dropElement !== event.target && !dropElement.contains(event.target) && placeHolderElement && placeHolderElement !== event.target && !placeHolderElement.contains(event.target) && event.target.contains(placeHolderElement)) {
523
- handlePopupPosition(state.position, true);
524
- }
525
- });
526
- }
527
-
528
- preventKeyboardScroll(event) {
529
- const keys = [32, 37, 38, 39, 40]; // Space, Arrow keys
530
-
531
- const scrollBlockedPopups = Registry.getOpenedScrollBlockedFixedPopups(); // Check if the event target is outside all dropElements
532
-
533
- const isOutsideAllDropElements = scrollBlockedPopups.every(_ref6 => {
534
- let {
535
- dropElement
536
- } = _ref6;
537
- return dropElement && dropElement !== event.target && !dropElement.contains(event.target) && keys.includes(event.keyCode);
538
- });
539
-
540
- if (isOutsideAllDropElements) {
541
- event.preventDefault();
542
- }
543
- }
544
-
545
- handleIntersectionObserver(entry) {
546
- if (entry.intersectionRatio === 0 && entry.isIntersecting === false) {
547
- this.closePopupOnly();
548
- }
549
- }
550
-
551
- updateVisibilityOnIntersection(entry) {
552
- const {
553
- dropElement
554
- } = this;
555
- if (!dropElement) return;
556
-
557
- if (entry.isIntersecting === true) {
558
- this.isTargetElementVisible = true;
559
- dropElement.setAttribute('data-visible', 'visible');
560
- } else if (entry.intersectionRatio === 0 && entry.isIntersecting === false) {
561
- this.isTargetElementVisible = false;
562
- dropElement.setAttribute('data-visible', 'hidden');
563
- }
564
- }
565
-
566
- getGroup() {
567
- const {
568
- popupGroup
569
- } = this.props;
570
- return popupGroup || group;
571
- }
572
-
573
- getNeedArrow(popup) {
574
- const {
575
- isArrow
576
- } = popup.props;
577
- const {
578
- needPopupArrow
579
- } = popup;
580
- return isArrow !== undefined ? isArrow : needPopupArrow;
581
- }
582
-
583
- getScrollDebounceTime(popup) {
584
- const {
585
- scrollDebounceTime
586
- } = popup.props;
587
- const {
588
- scrollDebounceTime: popupScrollDebounceTime
589
- } = popup;
590
- return scrollDebounceTime !== undefined ? scrollDebounceTime : popupScrollDebounceTime;
591
- }
592
-
593
- getCloseOnScrollPopup(popup) {
594
- const {
595
- closeOnScroll
596
- } = popup.props;
597
- const {
598
- closeOnScroll: closeOnScrollPopup
599
- } = popup;
600
- return closeOnScroll !== undefined ? closeOnScroll : closeOnScrollPopup;
601
- }
602
-
603
- getIsAbsolutePopup(popup) {
604
- const {
605
- isAbsolutePositioningNeeded
606
- } = popup.props;
607
- const {
608
- isAbsolutePopup
609
- } = popup;
610
- return isAbsolutePositioningNeeded !== undefined ? isAbsolutePositioningNeeded : isAbsolutePopup;
611
- }
612
-
613
- getIsOutsideScrollBlocked(popup) {
614
- const {
615
- isOutsideScrollBlocked
616
- } = popup.props;
617
- const {
618
- isOutsideScrollBlock
619
- } = popup;
620
- return isOutsideScrollBlocked !== undefined ? isOutsideScrollBlocked : isOutsideScrollBlock;
621
- }
622
-
623
- getCustomPositionOrder(popup) {
624
- const {
625
- customOrder = []
626
- } = popup.props;
627
- const {
628
- customPositionOrder
629
- } = popup;
630
- return customOrder.length !== 0 ? customOrder : customPositionOrder;
631
- }
632
-
633
- togglePopup(e, defaultPosition) {
634
- const group = this.getGroup();
635
- this.removeClose(e);
636
- const {
637
- isPopupOpen
638
- } = this.state;
639
- const groupPopups = Registry.popups[group] || [];
640
- Registry.lastOpenedGroup = !isPopupOpen && Registry.lastOpenedGroup.indexOf(group) === -1 ? [group, ...Registry.lastOpenedGroup] : Registry.lastOpenedGroup;
641
- isPopupOpen && Registry.lastOpenedGroup.splice(0, 1);
642
- groupPopups.forEach(popup => {
643
- if (popup !== this && popup.state.isPopupOpen) {
644
- popup.setState({
645
- isPopupOpen: false,
646
- isPopupReady: false
647
- });
648
- }
649
- });
650
-
651
- if (isPopupOpen) {
652
- this.setState({
653
- isPopupOpen: false,
654
- isPopupReady: false
655
- });
656
- } else {
657
- this.handlePopupPosition(defaultPosition);
658
- }
659
- }
660
-
661
- openPopupOnly(e, defaultPosition) {
662
- const group = this.getGroup();
663
- this.removeClose(e);
664
- Registry.lastOpenedGroup = Registry.lastOpenedGroup.indexOf(group) === -1 ? [group, ...Registry.lastOpenedGroup] : Registry.lastOpenedGroup;
665
- this.handlePopupPosition(defaultPosition);
666
- }
667
-
668
- closePopupOnly(e) {
669
- this.removeClose(e);
670
- const {
671
- isPopupOpen
672
- } = this.state;
673
-
674
- if (isPopupOpen) {
675
- Registry.lastOpenedGroup.splice(0, 1);
676
- this.setState({
677
- isPopupOpen: false,
678
- isPopupReady: false
679
- });
680
- }
681
- }
682
-
683
- handleCloseLastOpenedGroup() {
684
- const groupPopups = Registry.lastOpenedGroup.length ? Registry.popups[Registry.lastOpenedGroup[0]] || [] : [];
685
- Registry.lastOpenedGroup.splice(0, 1);
686
- groupPopups.forEach(popup => {
687
- popup.state.isPopupOpen && popup.setState({
688
- isPopupOpen: false,
689
- isPopupReady: false
690
- });
691
- });
692
- }
693
-
694
- handleDocumentMouseDown(e) {
695
- const needPrevent = this.handleGetNeedPrevent(e);
696
-
697
- if (needPrevent) {
698
- this.removeClose(e);
699
- }
700
- }
701
-
702
- handleDocumentFocus(e) {
703
- const needPrevent = this.handleGetNeedPrevent(e);
704
-
705
- if (needPrevent) {
706
- this.removeClose(e);
707
- }
708
- }
709
-
710
- handleGetNeedPrevent(e) {
711
- let needPrevent = false;
712
-
713
- if (Registry.lastOpenedGroup.length > 1) {
714
- const {
715
- target
716
- } = e;
717
- const groupPopups = Registry.lastOpenedGroup.length ? Registry.popups[Registry.lastOpenedGroup[0]] : [];
718
- let openedPopup = null; // eslint-disable-next-line guard-for-in
719
-
720
- for (const i in groupPopups) {
721
- const {
722
- isPopupOpen
723
- } = groupPopups[i].state;
724
-
725
- if (isPopupOpen) {
726
- openedPopup = groupPopups[i];
727
- break;
728
- }
729
- }
730
-
731
- if (openedPopup) {
732
- const {
733
- dropElement,
734
- placeHolderElement
735
- } = openedPopup;
736
- const isDropBoxChild = isDescendant(dropElement, target);
737
- const isTargetChild = isDescendant(placeHolderElement, target); // const isPopupMassUpdateChild = isDescendant(
738
- // massUpdateParent,
739
- // dropElement
740
- // );
741
-
742
- if (!isDropBoxChild && !isTargetChild // && isPopupMassUpdateChild
743
- ) {
744
- needPrevent = true;
745
- }
746
- }
747
- }
748
-
749
- return needPrevent;
750
- }
751
-
752
- documentClickHandler1(e) {
753
- const needPrevent = this.handleGetNeedPrevent(e);
754
-
755
- if (needPrevent) {
756
- this.removeClose(e);
757
- this.handleCloseLastOpenedGroup();
758
- }
759
- }
760
-
761
- documentClickHandler() {
762
- try {
763
- Object.keys(Registry.popups).forEach(groupName => {
764
- const groupPopups = Registry.popups[groupName] || [];
765
- groupPopups.forEach(popup => {
766
- popup.state.isPopupOpen && (!popup.props.checkBeforeClose || popup.props.checkBeforeClose && popup.props.checkBeforeClose()) && !isTextSelected() && popup.setState({
767
- isPopupOpen: false,
768
- isPopupReady: false
769
- });
770
- });
771
- });
772
- Registry.lastOpenedGroup = [];
773
- } catch (e) {// eslint-disable-next-line no-console
774
- //console.error('popup component not unmounted properly', e);
775
- }
776
- }
777
-
778
- documentKeyupHandler(e) {
779
- try {
780
- if (e.keyCode === 27) {
781
- this.handleCloseLastOpenedGroup();
782
- }
783
- } catch (e) {// eslint-disable-next-line no-console
784
- //console.log('error', e);
785
- }
786
- }
787
-
788
- removeClose(e) {
789
- // e && e.preventDefault && e.preventDefault();
790
- cancelBubblingEffect(e);
791
- }
792
-
793
- updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute) {
794
- const isMobile = isMobilePopover(true);
795
- this.setState({
796
- isPopupReady: true,
797
- position: view,
798
- positions: views,
799
- positionsOffset: viewsOffset,
800
- targetOffset,
801
- popupOffset,
802
- isAbsolutePositioningNeeded: isAbsolute,
803
- isMobile: isMobile
804
- });
805
- }
806
-
807
- handlePopupPosition() {
808
- let defaultPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'bottomCenter';
809
- let isUpdatePosition = arguments.length > 1 ? arguments[1] : undefined;
810
- // isUpdatePosition --->>> Window resize and dropBox resize and to update the position
811
- const {
812
- direction
813
- } = this.context || {};
814
- const {
815
- placeHolderElement,
816
- dropElement
817
- } = this;
818
- const needArrow = this.getNeedArrow(this);
819
- const isAbsolute = this.getIsAbsolutePopup(this);
820
- const customOrder = this.getCustomPositionOrder(this);
821
-
822
- if (direction === 'rtl') {
823
- defaultPosition = isAbsolute ? rtlAbsolutePositionMapping[defaultPosition] : rtlFixedPositionMapping[defaultPosition];
824
- } else {
825
- defaultPosition = isAbsolute ? absolutePositionMapping[defaultPosition] : defaultPosition;
826
- }
827
-
828
- if (!placeHolderElement && !dropElement) {
829
- const isMobile = isMobilePopover(true);
830
- this.setState({
831
- isPopupOpen: true,
832
- isPopupReady: true,
833
- isMobile: isMobile
834
- });
835
- return;
836
- }
837
-
838
- const setPosition = () => {
839
- this.cancelRaf('setPositionRafId');
840
- this.setPositionRafId = requestAnimationFrame(() => {
841
- const {
842
- placeHolderElement,
843
- dropElement
844
- } = this;
845
- const {
846
- position,
847
- isPopupReady
848
- } = this.state;
849
- const scrollContainer = placeHolderElement ? placeHolderElement.closest('[data-scroll=true]') || document.body : document.body;
850
- const betterPosition = viewPort.betterView(dropElement, placeHolderElement, defaultPosition, scrollContainer, {
851
- needArrow,
852
- isAbsolute,
853
- customOrder
854
- });
855
- const {
856
- view,
857
- views,
858
- viewsOffset,
859
- targetOffset,
860
- popupOffset
861
- } = betterPosition || DUMMY_OBJECT;
862
-
863
- if (!isAbsolute) {
864
- if (!isPopupReady) {
865
- this.updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute);
866
- }
867
-
868
- if (!dropElement) {
869
- return;
870
- }
871
-
872
- this.setContainerDynamicPositioning(betterPosition, needArrow);
873
- } else {
874
- if (position !== view || !isPopupReady) {
875
- this.updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute);
876
- }
877
- }
878
-
879
- this.setPositionRafId = null;
880
- });
881
- };
882
-
883
- if (isUpdatePosition) {
884
- setPosition();
885
- } else {
886
- this.defaultPosition = defaultPosition;
887
- this.setState({
888
- isPopupOpen: true,
889
- isPopupReady: false
890
- }, setPosition);
891
- }
892
- }
893
-
894
- handleOpenPopupPositionChange() {
895
- Object.keys(Registry.popups).forEach(groupName => {
896
- const groupPopups = Registry.popups[groupName] || [];
897
- groupPopups.forEach(popup => {
898
- if (popup.state.isPopupOpen) {
899
- const {
900
- placeHolderElement,
901
- dropElement,
902
- defaultPosition
903
- } = popup;
904
- const {
905
- position,
906
- positionsOffset = {}
907
- } = popup.state;
908
-
909
- if (placeHolderElement && dropElement) {
910
- const scrollContainer = placeHolderElement.closest('[data-scroll=true]') || document.body;
911
- this.cancelRaf('resizePositionRafId');
912
- this.resizePositionRafId = requestAnimationFrame(() => {
913
- const needArrow = this.getNeedArrow(popup);
914
- const isAbsolute = this.getIsAbsolutePopup(popup);
915
- const customOrder = this.getCustomPositionOrder(popup);
916
- const isMobile = isMobilePopover(true);
917
- const betterPosition = viewPort.betterView(dropElement, placeHolderElement, defaultPosition, scrollContainer, {
918
- needArrow,
919
- isAbsolute,
920
- customOrder
921
- });
922
- const {
923
- view,
924
- views,
925
- viewsOffset = {},
926
- targetOffset,
927
- popupOffset
928
- } = betterPosition || {};
929
- const {
930
- left: oldLeft = '',
931
- top: oldTop = '',
932
- bottom: oldBottom = '',
933
- right: oldRight = ''
934
- } = positionsOffset[position] || {};
935
- const {
936
- left = '',
937
- top = '',
938
- bottom = '',
939
- right = ''
940
- } = viewsOffset[view] || {};
941
- const changeState = isAbsolute ? position !== view : oldLeft !== left || oldTop !== top || oldBottom !== bottom || oldRight !== right; // let isInViewPort = viewPort.isInViewPort(
942
- // placeHolderElement,
943
- // scrollContainer
944
- // );
945
-
946
- if (changeState) {
947
- popup.setState({
948
- position: view,
949
- positions: views,
950
- positionsOffset: viewsOffset,
951
- targetOffset,
952
- popupOffset,
953
- isAbsolutePositioningNeeded: isAbsolute,
954
- isMobile: isMobile
955
- });
956
- } // if (!isInViewPort && !isAbsolute) {
957
- // popup.setState({ isPopupOpen: false, isPopupReady: false });
958
- // } else if (view && changeState) {
959
- // popup.setState({
960
- // position: view,
961
- // positions: views,
962
- // positionsOffset: viewsOffset,
963
- // targetOffset,
964
- // popupOffset,
965
- // isAbsolutePositioningNeeded: isAbsolute
966
- // });
967
- // }
968
-
969
-
970
- this.resizePositionRafId = null;
971
- });
972
- }
973
- }
974
- });
975
- });
976
- }
977
-
978
- handleResize() {
979
- this.handleOpenPopupPositionChange();
980
- } // handleScroll(e) {
981
- // // this.handleOpenPopupPositionChange();
982
- // const { closeOnScroll } = this.getCloseOnScrollPopup(this);
983
- // const { isPopupReady } = this.state;
984
- // if (isPopupReady) {
985
- // console.log('onscrollPopupREady');
986
- // }
987
- // if (isPopupReady && closeOnScroll) {
988
- // console.log(this, 'handle Scroll');
989
- // this.togglePopup(e);
990
- // }
991
- // }
992
-
993
-
994
- handlePopupResize(popupSize) {
995
- const {
996
- height,
997
- width
998
- } = popupSize;
999
- const {
1000
- height: oldHeight = 0,
1001
- width: oldWidth = 0
1002
- } = this.size || {};
1003
- const {
1004
- isPopupReady,
1005
- position
1006
- } = this.state;
1007
-
1008
- if (isPopupReady && this.size && (oldHeight !== height || width !== oldWidth)) {
1009
- this.handlePopupPosition(position, true);
1010
- }
1011
-
1012
- this.size = popupSize;
1013
- }
1014
-
1015
- getTargetRef(el) {
1016
- this.placeHolderElement = el;
1017
- }
1018
-
1019
- getContainerRef(el) {
1020
- this.dropElement = el;
1021
- }
1022
-
1023
- render() {
1024
- // const { isPopupReady, isPopupOpen } = this.state;
1025
- const {
1026
- isMobile,
1027
- ...restState
1028
- } = this.state; // const localState = isPopupReady ? this.state : {};
1029
-
1030
- return /*#__PURE__*/React.createElement(Component, { ...this.props,
1031
- ...restState,
1032
- openPopupOnly: this.openPopupOnly,
1033
- closePopupOnly: this.closePopupOnly,
1034
- togglePopup: this.togglePopup,
1035
- removeClose: this.removeClose,
1036
- getTargetRef: this.getTargetRef,
1037
- getContainerRef: this.getContainerRef
1038
- });
1039
- }
1040
-
1041
- }
1042
-
1043
- Popup.displayName = Component.displayName || Component.name || Popup.name;
1044
- Popup.contextTypes = ContextTypes;
1045
- Popup.propTypes = PopupPropTypes;
1046
- return hoistStatics(Popup, Component);
1047
- };
1048
-
1049
- export default Popup;