@zohodesk/components 1.0.0-temp-225-1 → 1.0.0-temp-227

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 (343) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +33 -49
  3. package/es/Accordion/Accordion.js +2 -2
  4. package/es/Accordion/AccordionItem.js +4 -4
  5. package/es/Accordion/__tests__/Accordion.spec.js +1 -1
  6. package/es/Accordion/__tests__/AccordionItem.spec.js +1 -1
  7. package/es/Accordion/index.js +2 -2
  8. package/es/Animation/Animation.js +3 -3
  9. package/es/Animation/__tests__/Animation.spec.js +1 -1
  10. package/es/Animation/utils.js +1 -1
  11. package/es/AppContainer/AppContainer.js +14 -13
  12. package/es/AppContainer/__tests__/AppContainer.spec.js +1 -1
  13. package/es/Avatar/Avatar.js +5 -5
  14. package/es/Avatar/__tests__/Avatar.spec.js +1 -1
  15. package/es/AvatarTeam/AvatarTeam.js +4 -4
  16. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -1
  17. package/es/AvatarTeam/props/propTypes.js +1 -1
  18. package/es/Button/Button.js +4 -4
  19. package/es/Button/__tests__/Button.spec.js +135 -2
  20. package/es/Button/index.js +2 -2
  21. package/es/Button/props/defaultProps.js +1 -1
  22. package/es/Buttongroup/Buttongroup.js +3 -3
  23. package/es/Buttongroup/__tests__/Buttongroup.spec.js +1 -1
  24. package/es/Card/Card.js +5 -5
  25. package/es/Card/__tests__/Card.spec.js +1 -1
  26. package/es/Card/index.js +4 -4
  27. package/es/CheckBox/CheckBox.js +6 -6
  28. package/es/CheckBox/__tests__/CheckBox.spec.js +1 -1
  29. package/es/DateTime/CalendarView.js +6 -6
  30. package/es/DateTime/DateTime.js +15 -15
  31. package/es/DateTime/DateTimePopupFooter.js +5 -5
  32. package/es/DateTime/DateTimePopupHeader.js +4 -4
  33. package/es/DateTime/DateWidget.js +17 -17
  34. package/es/DateTime/DaysRow.js +3 -3
  35. package/es/DateTime/Time.js +5 -5
  36. package/es/DateTime/YearView.js +6 -6
  37. package/es/DateTime/__tests__/CalendarView.spec.js +1 -1
  38. package/es/DateTime/__tests__/DateTime.spec.js +1 -1
  39. package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +1 -1
  40. package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +1 -1
  41. package/es/DateTime/__tests__/DateWidget.spec.js +1 -1
  42. package/es/DateTime/__tests__/DaysRow.spec.js +1 -1
  43. package/es/DateTime/__tests__/Time.spec.js +1 -1
  44. package/es/DateTime/__tests__/YearView.spec.js +2 -3
  45. package/es/DateTime/dateFormatUtils/dateFormat.js +4 -4
  46. package/es/DateTime/dateFormatUtils/dayChange.js +2 -2
  47. package/es/DateTime/dateFormatUtils/index.js +3 -3
  48. package/es/DateTime/dateFormatUtils/monthChange.js +2 -2
  49. package/es/DateTime/dateFormatUtils/timeChange.js +2 -2
  50. package/es/DateTime/dateFormatUtils/yearChange.js +2 -2
  51. package/es/DateTime/index.js +1 -1
  52. package/es/DateTime/props/propTypes.js +1 -1
  53. package/es/DateTime/validator.js +2 -2
  54. package/es/DropBox/DropBox.js +9 -9
  55. package/es/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  56. package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +1 -1
  57. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
  58. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +1 -1
  59. package/es/DropBox/__tests__/DropBox.spec.js +1 -1
  60. package/es/DropBox/css/cssJSLogic.js +1 -1
  61. package/es/DropBox/props/defaultProps.js +1 -1
  62. package/es/DropBox/props/propTypes.js +1 -1
  63. package/es/DropBox/utils/isMobilePopover.js +1 -1
  64. package/es/DropDown/DropDown.js +4 -4
  65. package/es/DropDown/DropDownHeading.js +3 -3
  66. package/es/DropDown/DropDownItem.js +3 -3
  67. package/es/DropDown/DropDownSearch.js +4 -4
  68. package/es/DropDown/DropDownSeparator.js +2 -2
  69. package/es/DropDown/__tests__/DropDown.spec.js +1 -1
  70. package/es/DropDown/__tests__/DropDownHeading.spec.js +1 -1
  71. package/es/DropDown/__tests__/DropDownItem.spec.js +1 -1
  72. package/es/DropDown/__tests__/DropDownSearch.spec.js +1 -1
  73. package/es/DropDown/__tests__/DropDownSeparator.spec.js +1 -1
  74. package/es/DropDown/index.js +7 -7
  75. package/es/DropDown/props/propTypes.js +1 -1
  76. package/es/Heading/Heading.js +4 -4
  77. package/es/Heading/__tests__/Heading.spec.js +1 -1
  78. package/es/Label/Label.js +4 -4
  79. package/es/Label/__tests__/Label.spec.js +1 -1
  80. package/es/Layout/Box.js +4 -4
  81. package/es/Layout/Container.js +4 -4
  82. package/es/Layout/__tests__/Box.spec.js +1 -1
  83. package/es/Layout/__tests__/Container.spec.js +1 -1
  84. package/es/Layout/index.js +2 -2
  85. package/es/ListItem/ListContainer.js +6 -6
  86. package/es/ListItem/ListItem.js +7 -16
  87. package/es/ListItem/ListItem.module.css +0 -9
  88. package/es/ListItem/ListItemWithAvatar.js +7 -7
  89. package/es/ListItem/ListItemWithCheckBox.js +6 -6
  90. package/es/ListItem/ListItemWithIcon.js +5 -5
  91. package/es/ListItem/ListItemWithRadio.js +6 -6
  92. package/es/ListItem/__tests__/ListContainer.spec.js +1 -1
  93. package/es/ListItem/__tests__/ListItem.spec.js +1 -1
  94. package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +1 -1
  95. package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +1 -1
  96. package/es/ListItem/__tests__/ListItemWithIcon.spec.js +1 -1
  97. package/es/ListItem/__tests__/ListItemWithRadio.spec.js +1 -1
  98. package/es/ListItem/index.js +6 -6
  99. package/es/ListItem/props/propTypes.js +3 -4
  100. package/es/Modal/Modal.js +3 -3
  101. package/es/Modal/__tests__/Modal.spec.js +1 -1
  102. package/es/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
  103. package/es/MultiSelect/AdvancedMultiSelect.js +17 -17
  104. package/es/MultiSelect/EmptyState.js +3 -3
  105. package/es/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  106. package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +1 -1
  107. package/es/MultiSelect/MultiSelect.js +35 -22
  108. package/es/MultiSelect/MultiSelectHeader.js +4 -4
  109. package/es/MultiSelect/MultiSelectWithAvatar.js +16 -16
  110. package/es/MultiSelect/SelectedOptions.js +5 -5
  111. package/es/MultiSelect/Suggestions.js +6 -6
  112. package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +1 -1
  113. package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +9 -2
  114. package/es/MultiSelect/__tests__/EmptyState.spec.js +1 -1
  115. package/es/MultiSelect/__tests__/MultiSelect.spec.js +1 -1
  116. package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +1 -1
  117. package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +1 -1
  118. package/es/MultiSelect/__tests__/SelectedOptions.spec.js +1 -1
  119. package/es/MultiSelect/__tests__/Suggestions.spec.js +1 -1
  120. package/es/MultiSelect/index.js +4 -4
  121. package/es/MultiSelect/props/defaultProps.js +1 -1
  122. package/es/MultiSelect/props/propTypes.js +3 -1
  123. package/es/PopOver/PopOver.js +6 -6
  124. package/es/PopOver/__tests__/PopOver.spec.js +1 -1
  125. package/es/PopOver/index.js +3 -3
  126. package/es/Popup/Popup.js +7 -7
  127. package/es/Provider/AvatarSize.js +1 -1
  128. package/es/Provider/CssProvider.js +1 -1
  129. package/es/Provider/IdProvider.js +3 -3
  130. package/es/Provider/LibraryContext.js +2 -2
  131. package/es/Provider/ZindexProvider.js +2 -2
  132. package/es/Provider/index.js +4 -4
  133. package/es/Radio/Radio.js +6 -6
  134. package/es/Radio/__tests__/Radio.spec.js +1 -1
  135. package/es/Responsive/CustomResponsive.js +7 -7
  136. package/es/Responsive/ResizeComponent.js +2 -2
  137. package/es/Responsive/Responsive.js +6 -6
  138. package/es/Responsive/index.js +3 -3
  139. package/es/Responsive/utils/index.js +1 -1
  140. package/es/Responsive/windowResizeObserver.js +1 -1
  141. package/es/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  142. package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +1 -1
  143. package/es/ResponsiveDropBox/props/propTypes.js +1 -1
  144. package/es/Ribbon/Ribbon.js +3 -3
  145. package/es/Ribbon/__tests__/Ribbon.spec.js +1 -1
  146. package/es/RippleEffect/RippleEffect.js +4 -4
  147. package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
  148. package/es/Select/GroupSelect.js +16 -16
  149. package/es/Select/Select.js +30 -21
  150. package/es/Select/SelectWithAvatar.js +17 -17
  151. package/es/Select/SelectWithIcon.js +13 -13
  152. package/es/Select/__tests__/GroupSelect.spec.js +1 -1
  153. package/es/Select/__tests__/Select.spec.js +1131 -5
  154. package/es/Select/__tests__/SelectWithAvatar.spec.js +1 -1
  155. package/es/Select/__tests__/SelectWithIcon.spec.js +1 -1
  156. package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +9621 -1
  157. package/es/Select/index.js +4 -4
  158. package/es/Select/props/defaultProps.js +1 -1
  159. package/es/Select/props/propTypes.js +3 -1
  160. package/es/Stencils/Stencils.js +8 -15
  161. package/es/Stencils/Stencils.module.css +11 -7
  162. package/es/Stencils/__tests__/Stencils.spec.js +10 -2
  163. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +27 -11
  164. package/es/Stencils/props/defaultProps.js +2 -1
  165. package/es/Stencils/props/propTypes.js +3 -2
  166. package/es/Switch/Switch.js +5 -5
  167. package/es/Switch/__tests__/Switch.spec.js +1 -1
  168. package/es/Tab/Tab.js +7 -6
  169. package/es/Tab/TabContent.js +4 -4
  170. package/es/Tab/TabContentWrapper.js +3 -3
  171. package/es/Tab/TabWrapper.js +5 -4
  172. package/es/Tab/Tabs.js +23 -23
  173. package/es/Tab/__tests__/Tab.spec.js +1 -1
  174. package/es/Tab/__tests__/TabContent.spec.js +1 -1
  175. package/es/Tab/__tests__/TabContentWrapper.spec.js +1 -1
  176. package/es/Tab/__tests__/TabLayout.spec.js +34 -0
  177. package/es/Tab/__tests__/TabWrapper.spec.js +1 -1
  178. package/es/Tab/__tests__/Tabs.spec.js +1 -1
  179. package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +341 -0
  180. package/es/Tab/index.js +5 -5
  181. package/es/Tab/props/propTypes.js +2 -2
  182. package/es/Tab/utils/tabConfigs.js +18 -0
  183. package/es/Tag/Tag.js +7 -7
  184. package/es/Tag/__tests__/Tag.spec.js +9 -2
  185. package/es/Tag/props/propTypes.js +1 -1
  186. package/es/TextBox/TextBox.js +3 -3
  187. package/es/TextBox/__tests__/TextBox.spec.js +1 -1
  188. package/es/TextBoxIcon/TextBoxIcon.js +12 -8
  189. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -1
  190. package/es/TextBoxIcon/props/propTypes.js +3 -2
  191. package/es/Textarea/Textarea.js +3 -3
  192. package/es/Textarea/__tests__/Textarea.spec.js +1 -1
  193. package/es/Tooltip/Tooltip.js +6 -6
  194. package/es/Typography/Typography.js +4 -4
  195. package/es/Typography/css/cssJSLogic.js +1 -1
  196. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  197. package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +1 -1
  198. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +43 -6
  199. package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +1 -1
  200. package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +4 -1
  201. package/es/VelocityAnimation/index.js +2 -2
  202. package/es/css.js +37 -37
  203. package/es/deprecated/PortalLayer/PortalLayer.js +3 -3
  204. package/es/index.js +39 -39
  205. package/es/semantic/Button/Button.js +3 -3
  206. package/es/semantic/Button/__tests__/Button.spec.js +1 -1
  207. package/es/semantic/index.js +1 -1
  208. package/es/utils/Common.js +2 -2
  209. package/es/utils/ContextOptimizer.js +1 -1
  210. package/es/utils/cssUtils.js +1 -1
  211. package/es/utils/datetime/common.js +1 -1
  212. package/es/utils/dropDownUtils.js +1 -1
  213. package/es/utils/index.js +1 -1
  214. package/es/v1/Accordion/Accordion.js +2 -2
  215. package/es/v1/Accordion/AccordionItem.js +4 -4
  216. package/es/v1/Accordion/index.js +2 -2
  217. package/es/v1/Animation/Animation.js +3 -3
  218. package/es/v1/Animation/utils.js +1 -1
  219. package/es/v1/AppContainer/AppContainer.js +8 -8
  220. package/es/v1/Avatar/Avatar.js +5 -5
  221. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  222. package/es/v1/Button/Button.js +4 -4
  223. package/es/v1/Button/props/defaultProps.js +1 -1
  224. package/es/v1/Buttongroup/Buttongroup.js +3 -3
  225. package/es/v1/Card/Card.js +5 -5
  226. package/es/v1/Card/index.js +4 -4
  227. package/es/v1/CheckBox/CheckBox.js +6 -6
  228. package/es/v1/DateTime/CalendarView.js +7 -7
  229. package/es/v1/DateTime/DateTime.js +15 -15
  230. package/es/v1/DateTime/DateTimePopupFooter.js +5 -5
  231. package/es/v1/DateTime/DateTimePopupHeader.js +4 -4
  232. package/es/v1/DateTime/DateWidget.js +17 -17
  233. package/es/v1/DateTime/DaysRow.js +3 -3
  234. package/es/v1/DateTime/Time.js +5 -5
  235. package/es/v1/DateTime/YearView.js +6 -6
  236. package/es/v1/DateTime/index.js +1 -1
  237. package/es/v1/DateTime/props/propTypes.js +1 -1
  238. package/es/v1/DropBox/DropBox.js +9 -9
  239. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  240. package/es/v1/DropBox/props/defaultProps.js +1 -1
  241. package/es/v1/DropBox/props/propTypes.js +1 -1
  242. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  243. package/es/v1/DropDown/DropDown.js +4 -4
  244. package/es/v1/DropDown/DropDownHeading.js +3 -3
  245. package/es/v1/DropDown/DropDownItem.js +3 -3
  246. package/es/v1/DropDown/DropDownSearch.js +4 -4
  247. package/es/v1/DropDown/DropDownSeparator.js +2 -2
  248. package/es/v1/DropDown/props/propTypes.js +1 -1
  249. package/es/v1/Heading/Heading.js +4 -4
  250. package/es/v1/Label/Label.js +4 -4
  251. package/es/v1/Layout/Box.js +4 -4
  252. package/es/v1/Layout/Container.js +4 -4
  253. package/es/v1/Layout/index.js +2 -2
  254. package/es/v1/ListItem/ListContainer.js +6 -6
  255. package/es/v1/ListItem/ListItem.js +5 -5
  256. package/es/v1/ListItem/ListItemWithAvatar.js +7 -7
  257. package/es/v1/ListItem/ListItemWithCheckBox.js +6 -6
  258. package/es/v1/ListItem/ListItemWithIcon.js +5 -5
  259. package/es/v1/ListItem/ListItemWithRadio.js +6 -6
  260. package/es/v1/ListItem/index.js +6 -6
  261. package/es/v1/Modal/Modal.js +3 -3
  262. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
  263. package/es/v1/MultiSelect/AdvancedMultiSelect.js +17 -17
  264. package/es/v1/MultiSelect/EmptyState.js +3 -3
  265. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  266. package/es/v1/MultiSelect/MultiSelect.js +19 -19
  267. package/es/v1/MultiSelect/MultiSelectHeader.js +4 -4
  268. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +16 -16
  269. package/es/v1/MultiSelect/SelectedOptions.js +5 -5
  270. package/es/v1/MultiSelect/Suggestions.js +6 -6
  271. package/es/v1/MultiSelect/index.js +4 -4
  272. package/es/v1/MultiSelect/props/defaultProps.js +1 -1
  273. package/es/v1/PopOver/PopOver.js +6 -6
  274. package/es/v1/Popup/Popup.js +3 -3
  275. package/es/v1/Radio/Radio.js +5 -5
  276. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  277. package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
  278. package/es/v1/Ribbon/Ribbon.js +3 -3
  279. package/es/v1/RippleEffect/RippleEffect.js +4 -4
  280. package/es/v1/Select/GroupSelect.js +16 -16
  281. package/es/v1/Select/Select.js +15 -15
  282. package/es/v1/Select/SelectWithAvatar.js +17 -17
  283. package/es/v1/Select/SelectWithIcon.js +13 -13
  284. package/es/v1/Select/index.js +4 -4
  285. package/es/v1/Select/props/defaultProps.js +1 -1
  286. package/es/v1/Stencils/Stencils.js +3 -3
  287. package/es/v1/Switch/Switch.js +5 -5
  288. package/es/v1/Tab/Tab.js +5 -5
  289. package/es/v1/Tab/TabContent.js +4 -4
  290. package/es/v1/Tab/TabContentWrapper.js +3 -3
  291. package/es/v1/Tab/TabWrapper.js +3 -3
  292. package/es/v1/Tab/Tabs.js +13 -13
  293. package/es/v1/Tab/index.js +5 -5
  294. package/es/v1/Tag/Tag.js +7 -7
  295. package/es/v1/TextBox/TextBox.js +3 -3
  296. package/es/v1/TextBoxIcon/TextBoxIcon.js +6 -6
  297. package/es/v1/TextBoxIcon/props/propTypes.js +1 -1
  298. package/es/v1/Textarea/Textarea.js +3 -3
  299. package/es/v1/Tooltip/Tooltip.js +6 -6
  300. package/es/v1/Typography/Typography.js +4 -4
  301. package/es/v1/Typography/css/cssJSLogic.js +1 -1
  302. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  303. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  304. package/es/v1/semantic/Button/Button.js +3 -3
  305. package/es/v1/semantic/index.js +1 -1
  306. package/lib/AppContainer/AppContainer.js +7 -6
  307. package/lib/Button/__tests__/Button.spec.js +140 -0
  308. package/lib/DateTime/__tests__/YearView.spec.js +1 -2
  309. package/lib/ListItem/ListItem.js +3 -12
  310. package/lib/ListItem/ListItem.module.css +0 -9
  311. package/lib/ListItem/props/propTypes.js +1 -2
  312. package/lib/MultiSelect/MultiSelect.js +16 -3
  313. package/lib/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +8 -0
  314. package/lib/MultiSelect/props/propTypes.js +3 -1
  315. package/lib/Provider/IdProvider.js +1 -0
  316. package/lib/Select/Select.js +16 -7
  317. package/lib/Select/__tests__/Select.spec.js +1364 -3
  318. package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +9621 -1
  319. package/lib/Select/props/propTypes.js +3 -1
  320. package/lib/Stencils/Stencils.js +5 -12
  321. package/lib/Stencils/Stencils.module.css +11 -7
  322. package/lib/Stencils/__tests__/Stencils.spec.js +11 -3
  323. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +27 -11
  324. package/lib/Stencils/props/defaultProps.js +2 -1
  325. package/lib/Stencils/props/propTypes.js +3 -2
  326. package/lib/Tab/Tab.js +3 -1
  327. package/lib/Tab/TabWrapper.js +3 -1
  328. package/lib/Tab/Tabs.js +11 -10
  329. package/lib/Tab/__tests__/TabLayout.spec.js +41 -0
  330. package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +341 -0
  331. package/lib/Tab/props/propTypes.js +2 -2
  332. package/lib/Tab/utils/tabConfigs.js +27 -0
  333. package/lib/Tag/__tests__/Tag.spec.js +10 -2
  334. package/lib/TextBoxIcon/TextBoxIcon.js +6 -2
  335. package/lib/TextBoxIcon/props/propTypes.js +2 -1
  336. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +80 -26
  337. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +4 -1
  338. package/lib/utils/Common.js +1 -1
  339. package/package.json +2 -2
  340. package/react-cli.config.js +2 -2
  341. package/es/DateTime/__tests__/__snapshots__/YearView.spec.js.snap +0 -61
  342. package/lib/DateTime/__tests__/__snapshots__/YearView.spec.js.snap +0 -61
  343. package/result.json +0 -1
@@ -0,0 +1,341 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`TabWrapper rendering the align prop of - horizontal 1`] = `
4
+ <DocumentFragment>
5
+ <div
6
+ class="flex cover rowdir"
7
+ data-id="containerComponent"
8
+ data-selector-id="tabWrapper"
9
+ data-test-id="containerComponent"
10
+ >
11
+ <div
12
+ class="shrinkOff"
13
+ data-id="boxComponent"
14
+ data-selector-id="tabs"
15
+ data-test-id="boxComponent"
16
+ >
17
+ <div
18
+ class="tab alpha alpha_border alpha_padding flex cover coldir"
19
+ data-id="containerComponent"
20
+ data-selector-id="container"
21
+ data-test-id="containerComponent"
22
+ >
23
+ <div
24
+ class="grow basis shrinkOff"
25
+ data-id="boxComponent"
26
+ data-selector-id="box"
27
+ data-test-id="boxComponent"
28
+ >
29
+ <div
30
+ class="flex cover coldir"
31
+ data-id="containerComponent"
32
+ data-selector-id="container"
33
+ data-test-id="containerComponent"
34
+ >
35
+ <div
36
+ class="menu shrinkOff"
37
+ data-id="boxComponent"
38
+ data-selector-id="tabs_moreIcon"
39
+ data-test-id="boxComponent"
40
+ >
41
+ <button
42
+ aria-label="MoreTabs"
43
+ class="buttonReset flex cover coldir both"
44
+ data-id="moreTabs"
45
+ data-selector-id="container"
46
+ data-test-id="moreTabs"
47
+ role="link"
48
+ >
49
+ <i
50
+ aria-hidden="true"
51
+ class="zd_font_icons basic icon-menu rtl "
52
+ data-id="fontIcon"
53
+ data-selector-id="fontIcon"
54
+ data-test-id="fontIcon"
55
+ style="--zd-iconfont-size: var(--zd_font_size7);"
56
+ />
57
+ </button>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ <div
64
+ class="grow basis shrinkOff"
65
+ data-id="boxComponent"
66
+ data-selector-id="tabContentWrapper"
67
+ data-test-id="boxComponent"
68
+ >
69
+ <div
70
+ aria-labelledby="page1"
71
+ class="container flex cover coldir"
72
+ data-id="tabContent_TabContent"
73
+ data-scroll="true"
74
+ data-selector-id="tabContent"
75
+ data-test-id="tabContent_TabContent"
76
+ role="tabpanel"
77
+ tabindex="-1"
78
+ >
79
+ <div>
80
+ Page 1 Content
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </DocumentFragment>
86
+ `;
87
+
88
+ exports[`TabWrapper rendering the align prop of - horizontal-reverse 1`] = `
89
+ <DocumentFragment>
90
+ <div
91
+ class="flex cover rowReverse"
92
+ data-id="containerComponent"
93
+ data-selector-id="tabWrapper"
94
+ data-test-id="containerComponent"
95
+ >
96
+ <div
97
+ class="shrinkOff"
98
+ data-id="boxComponent"
99
+ data-selector-id="tabs"
100
+ data-test-id="boxComponent"
101
+ >
102
+ <div
103
+ class="tab alpha alpha_border alpha_padding flex cover coldir"
104
+ data-id="containerComponent"
105
+ data-selector-id="container"
106
+ data-test-id="containerComponent"
107
+ >
108
+ <div
109
+ class="grow basis shrinkOff"
110
+ data-id="boxComponent"
111
+ data-selector-id="box"
112
+ data-test-id="boxComponent"
113
+ >
114
+ <div
115
+ class="flex cover coldir"
116
+ data-id="containerComponent"
117
+ data-selector-id="container"
118
+ data-test-id="containerComponent"
119
+ >
120
+ <div
121
+ class="menu shrinkOff"
122
+ data-id="boxComponent"
123
+ data-selector-id="tabs_moreIcon"
124
+ data-test-id="boxComponent"
125
+ >
126
+ <button
127
+ aria-label="MoreTabs"
128
+ class="buttonReset flex cover coldir both"
129
+ data-id="moreTabs"
130
+ data-selector-id="container"
131
+ data-test-id="moreTabs"
132
+ role="link"
133
+ >
134
+ <i
135
+ aria-hidden="true"
136
+ class="zd_font_icons basic icon-menu rtl "
137
+ data-id="fontIcon"
138
+ data-selector-id="fontIcon"
139
+ data-test-id="fontIcon"
140
+ style="--zd-iconfont-size: var(--zd_font_size7);"
141
+ />
142
+ </button>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ <div
149
+ class="grow basis shrinkOff"
150
+ data-id="boxComponent"
151
+ data-selector-id="tabContentWrapper"
152
+ data-test-id="boxComponent"
153
+ >
154
+ <div
155
+ aria-labelledby="page1"
156
+ class="container flex cover coldir"
157
+ data-id="tabContent_TabContent"
158
+ data-scroll="true"
159
+ data-selector-id="tabContent"
160
+ data-test-id="tabContent_TabContent"
161
+ role="tabpanel"
162
+ tabindex="-1"
163
+ >
164
+ <div>
165
+ Page 1 Content
166
+ </div>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </DocumentFragment>
171
+ `;
172
+
173
+ exports[`TabWrapper rendering the align prop of - vertical 1`] = `
174
+ <DocumentFragment>
175
+ <div
176
+ class="flex cover coldir"
177
+ data-id="containerComponent"
178
+ data-selector-id="tabWrapper"
179
+ data-test-id="containerComponent"
180
+ >
181
+ <div
182
+ class="shrinkOff"
183
+ data-id="boxComponent"
184
+ data-selector-id="tabs"
185
+ data-test-id="boxComponent"
186
+ >
187
+ <div
188
+ class="tab alpha alpha_border alpha_padding flex cover rowdir"
189
+ data-id="containerComponent"
190
+ data-selector-id="container"
191
+ data-test-id="containerComponent"
192
+ >
193
+ <div
194
+ class="grow basis shrinkOff"
195
+ data-id="boxComponent"
196
+ data-selector-id="box"
197
+ data-test-id="boxComponent"
198
+ >
199
+ <div
200
+ class="flex cover rowdir"
201
+ data-id="containerComponent"
202
+ data-selector-id="container"
203
+ data-test-id="containerComponent"
204
+ >
205
+ <div
206
+ class="menu shrinkOff"
207
+ data-id="boxComponent"
208
+ data-selector-id="tabs_moreIcon"
209
+ data-test-id="boxComponent"
210
+ >
211
+ <button
212
+ aria-label="MoreTabs"
213
+ class="buttonReset flex cover coldir both"
214
+ data-id="moreTabs"
215
+ data-selector-id="container"
216
+ data-test-id="moreTabs"
217
+ role="link"
218
+ >
219
+ <i
220
+ aria-hidden="true"
221
+ class="zd_font_icons basic icon-menu rtl "
222
+ data-id="fontIcon"
223
+ data-selector-id="fontIcon"
224
+ data-test-id="fontIcon"
225
+ style="--zd-iconfont-size: var(--zd_font_size7);"
226
+ />
227
+ </button>
228
+ </div>
229
+ </div>
230
+ </div>
231
+ </div>
232
+ </div>
233
+ <div
234
+ class="grow basis shrinkOff"
235
+ data-id="boxComponent"
236
+ data-selector-id="tabContentWrapper"
237
+ data-test-id="boxComponent"
238
+ >
239
+ <div
240
+ aria-labelledby="page1"
241
+ class="container flex cover coldir"
242
+ data-id="tabContent_TabContent"
243
+ data-scroll="true"
244
+ data-selector-id="tabContent"
245
+ data-test-id="tabContent_TabContent"
246
+ role="tabpanel"
247
+ tabindex="-1"
248
+ >
249
+ <div>
250
+ Page 1 Content
251
+ </div>
252
+ </div>
253
+ </div>
254
+ </div>
255
+ </DocumentFragment>
256
+ `;
257
+
258
+ exports[`TabWrapper rendering the align prop of - vertical-reverse 1`] = `
259
+ <DocumentFragment>
260
+ <div
261
+ class="flex cover colReverse"
262
+ data-id="containerComponent"
263
+ data-selector-id="tabWrapper"
264
+ data-test-id="containerComponent"
265
+ >
266
+ <div
267
+ class="shrinkOff"
268
+ data-id="boxComponent"
269
+ data-selector-id="tabs"
270
+ data-test-id="boxComponent"
271
+ >
272
+ <div
273
+ class="tab alpha alpha_border alpha_padding flex cover rowdir"
274
+ data-id="containerComponent"
275
+ data-selector-id="container"
276
+ data-test-id="containerComponent"
277
+ >
278
+ <div
279
+ class="grow basis shrinkOff"
280
+ data-id="boxComponent"
281
+ data-selector-id="box"
282
+ data-test-id="boxComponent"
283
+ >
284
+ <div
285
+ class="flex cover rowdir"
286
+ data-id="containerComponent"
287
+ data-selector-id="container"
288
+ data-test-id="containerComponent"
289
+ >
290
+ <div
291
+ class="menu shrinkOff"
292
+ data-id="boxComponent"
293
+ data-selector-id="tabs_moreIcon"
294
+ data-test-id="boxComponent"
295
+ >
296
+ <button
297
+ aria-label="MoreTabs"
298
+ class="buttonReset flex cover coldir both"
299
+ data-id="moreTabs"
300
+ data-selector-id="container"
301
+ data-test-id="moreTabs"
302
+ role="link"
303
+ >
304
+ <i
305
+ aria-hidden="true"
306
+ class="zd_font_icons basic icon-menu rtl "
307
+ data-id="fontIcon"
308
+ data-selector-id="fontIcon"
309
+ data-test-id="fontIcon"
310
+ style="--zd-iconfont-size: var(--zd_font_size7);"
311
+ />
312
+ </button>
313
+ </div>
314
+ </div>
315
+ </div>
316
+ </div>
317
+ </div>
318
+ <div
319
+ class="grow basis shrinkOff"
320
+ data-id="boxComponent"
321
+ data-selector-id="tabContentWrapper"
322
+ data-test-id="boxComponent"
323
+ >
324
+ <div
325
+ aria-labelledby="page1"
326
+ class="container flex cover coldir"
327
+ data-id="tabContent_TabContent"
328
+ data-scroll="true"
329
+ data-selector-id="tabContent"
330
+ data-test-id="tabContent_TabContent"
331
+ role="tabpanel"
332
+ tabindex="-1"
333
+ >
334
+ <div>
335
+ Page 1 Content
336
+ </div>
337
+ </div>
338
+ </div>
339
+ </div>
340
+ </DocumentFragment>
341
+ `;
@@ -11,7 +11,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
11
11
 
12
12
  var Tab_propTypes = {
13
13
  activeClass: _propTypes["default"].string,
14
- align: _propTypes["default"].string,
14
+ align: _propTypes["default"].oneOf(['vertical', 'horizontal']),
15
15
  children: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].string]),
16
16
  className: _propTypes["default"].string,
17
17
  dataId: _propTypes["default"].string,
@@ -115,7 +115,7 @@ var Tabs_propTypes = {
115
115
  };
116
116
  exports.Tabs_propTypes = Tabs_propTypes;
117
117
  var TabWrapper_propTypes = {
118
- align: _propTypes["default"].oneOf(['vertical', 'horizontal']),
118
+ align: _propTypes["default"].oneOf(['vertical', 'horizontal', 'vertical-reverse', 'horizontal-reverse']),
119
119
  children: _propTypes["default"].node,
120
120
  dataId: _propTypes["default"].string,
121
121
  defaultTab: _propTypes["default"].string,
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TAB_POPUP_POSITION_MAPPING = exports.TAB_DIRECTION_MAPPING = exports.TAB_ALIGN_MAPPING = void 0;
7
+ var TAB_ALIGN_MAPPING = {
8
+ vertical: 'column',
9
+ horizontal: 'row',
10
+ 'vertical-reverse': 'column-reverse',
11
+ 'horizontal-reverse': 'row-reverse'
12
+ };
13
+ exports.TAB_ALIGN_MAPPING = TAB_ALIGN_MAPPING;
14
+ var TAB_DIRECTION_MAPPING = {
15
+ vertical: 'column',
16
+ horizontal: 'row',
17
+ 'vertical-reverse': 'column',
18
+ 'horizontal-reverse': 'row'
19
+ };
20
+ exports.TAB_DIRECTION_MAPPING = TAB_DIRECTION_MAPPING;
21
+ var TAB_POPUP_POSITION_MAPPING = {
22
+ vertical: 'bottomLeft',
23
+ horizontal: 'rightTop',
24
+ 'vertical-reverse': 'topLeft',
25
+ 'horizontal-reverse': 'leftTop'
26
+ };
27
+ exports.TAB_POPUP_POSITION_MAPPING = TAB_POPUP_POSITION_MAPPING;
@@ -2,12 +2,20 @@
2
2
 
3
3
  var _react = _interopRequireDefault(require("react"));
4
4
 
5
- var _Tag = _interopRequireDefault(require("../Tag"));
6
-
7
5
  var _react2 = require("@testing-library/react");
8
6
 
7
+ var _IdProvider = require("../../Provider/IdProvider");
8
+
9
+ var _Tag = _interopRequireDefault(require("../Tag"));
10
+
9
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
12
 
13
+ beforeEach(function () {
14
+ (0, _IdProvider.setGlobalId)(0);
15
+ });
16
+ afterEach(function () {
17
+ (0, _react2.cleanup)();
18
+ });
11
19
  describe('Tag component', function () {
12
20
  var size = ['small', 'medium'];
13
21
  var palette = ['default', 'danger', 'secondary', 'pureDotted', 'primaryDotted', 'dark', 'pureDarkDotted', 'darkPrimaryDotted', 'defaultLink'];
@@ -158,7 +158,8 @@ var TextBoxIcon = /*#__PURE__*/function (_React$Component) {
158
158
  isScrollPrevent = _this$props2.isScrollPrevent,
159
159
  customProps = _this$props2.customProps,
160
160
  needInputFocusOnWrapperClick = _this$props2.needInputFocusOnWrapperClick,
161
- renderRightPlaceholderNode = _this$props2.renderRightPlaceholderNode;
161
+ renderRightPlaceholderNode = _this$props2.renderRightPlaceholderNode,
162
+ renderCustomClearComponent = _this$props2.renderCustomClearComponent;
162
163
  var isActive = this.state.isActive;
163
164
  var _customClass$customTB = customClass.customTBoxWrap,
164
165
  customTBoxWrap = _customClass$customTB === void 0 ? '' : _customClass$customTB,
@@ -213,7 +214,10 @@ var TextBoxIcon = /*#__PURE__*/function (_React$Component) {
213
214
  className: "".concat(_TextBoxIconModule["default"].iconContainer, " ").concat(customTBoxIcon)
214
215
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
215
216
  alignBox: "row"
216
- }, value && onClear && value.length > 1 && !isDisabled && !isReadOnly || showClearIcon ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
217
+ }, value && onClear && value.length > 1 && !isDisabled && !isReadOnly || showClearIcon ? typeof renderCustomClearComponent == 'function' ? renderCustomClearComponent({
218
+ clearText: clearText,
219
+ handleClear: this.handleClear
220
+ }) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
217
221
  className: "".concat(_semanticButtonModule["default"].buttonReset, " ").concat(_TextBoxIconModule["default"].icon),
218
222
  onClick: this.handleClear,
219
223
  dataId: "".concat(dataId, "_ClearIcon"),
@@ -67,7 +67,8 @@ var propTypes = _objectSpread(_objectSpread({}, _propTypes2.propTypes), {}, {
67
67
  customProps: _propTypes["default"].shape({
68
68
  TextBoxProps: _propTypes["default"].object
69
69
  }),
70
- renderRightPlaceholderNode: _propTypes["default"].node
70
+ renderRightPlaceholderNode: _propTypes["default"].node,
71
+ renderCustomClearComponent: _propTypes["default"].func
71
72
  });
72
73
 
73
74
  exports.propTypes = propTypes;
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
@@ -29,6 +27,20 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
29
27
 
30
28
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31
29
 
30
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
+
32
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
+
34
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
+
36
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37
+
38
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
39
+
40
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
+
42
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
43
+
32
44
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
33
45
 
34
46
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -63,35 +75,75 @@ var VelocityAnimationGroup = /*#__PURE__*/function (_React$Component) {
63
75
  var _super = _createSuper(VelocityAnimationGroup);
64
76
 
65
77
  function VelocityAnimationGroup(props) {
78
+ var _this;
79
+
66
80
  _classCallCheck(this, VelocityAnimationGroup);
67
81
 
68
- return _super.call(this, props);
82
+ _this = _super.call(this, props);
83
+ _this.handleEnterComplete = _this.handleEnterComplete.bind(_assertThisInitialized(_this));
84
+ _this.handleExitComplete = _this.handleExitComplete.bind(_assertThisInitialized(_this));
85
+ return _this;
69
86
  }
70
87
 
71
88
  _createClass(VelocityAnimationGroup, [{
89
+ key: "handleEnterComplete",
90
+ value: function handleEnterComplete(elements) {
91
+ var _this$props = this.props,
92
+ onEnterComplete = _this$props.onEnterComplete,
93
+ postEnterStyles = _this$props.postEnterStyles;
94
+
95
+ if (typeof onEnterComplete === 'function') {
96
+ onEnterComplete(elements);
97
+ }
98
+
99
+ if (postEnterStyles && _typeof(postEnterStyles) === 'object') {
100
+ elements.forEach(function (rootElement) {
101
+ Object.entries(postEnterStyles).forEach(function (_ref) {
102
+ var _ref2 = _slicedToArray(_ref, 2),
103
+ cssProperty = _ref2[0],
104
+ cssValue = _ref2[1];
105
+
106
+ rootElement.style[cssProperty] = cssValue;
107
+ });
108
+ });
109
+ }
110
+ }
111
+ }, {
112
+ key: "handleExitComplete",
113
+ value: function handleExitComplete(elements) {
114
+ var onExitComplete = this.props.onExitComplete;
115
+
116
+ if (typeof onExitComplete === 'function') {
117
+ onExitComplete(elements);
118
+ }
119
+ }
120
+ }, {
72
121
  key: "render",
73
122
  value: function render() {
74
- var _this$props = this.props,
75
- children = _this$props.children,
76
- enterName = _this$props.enterName,
77
- exitName = _this$props.exitName,
78
- enterDuration = _this$props.enterDuration,
79
- exitDuration = _this$props.exitDuration,
80
- isActive = _this$props.isActive,
81
- component = _this$props.component,
82
- runOnMount = _this$props.runOnMount,
83
- enterShowStyle = _this$props.enterShowStyle,
84
- enterHideStyle = _this$props.enterHideStyle,
85
- exitDelay = _this$props.exitDelay,
86
- isFlex = _this$props.isFlex,
87
- enterDelay = _this$props.enterDelay,
88
- isCustomized = _this$props.isCustomized,
89
- name = _this$props.name,
90
- needUIPack = _this$props.needUIPack;
91
-
92
- var _ref = this.context || {},
93
- direction = _ref.direction,
94
- isReducedMotion = _ref.isReducedMotion;
123
+ var _this$props2 = this.props,
124
+ children = _this$props2.children,
125
+ enterName = _this$props2.enterName,
126
+ exitName = _this$props2.exitName,
127
+ enterDuration = _this$props2.enterDuration,
128
+ exitDuration = _this$props2.exitDuration,
129
+ isActive = _this$props2.isActive,
130
+ component = _this$props2.component,
131
+ runOnMount = _this$props2.runOnMount,
132
+ enterShowStyle = _this$props2.enterShowStyle,
133
+ enterHideStyle = _this$props2.enterHideStyle,
134
+ exitDelay = _this$props2.exitDelay,
135
+ isFlex = _this$props2.isFlex,
136
+ enterDelay = _this$props2.enterDelay,
137
+ isCustomized = _this$props2.isCustomized,
138
+ name = _this$props2.name,
139
+ needUIPack = _this$props2.needUIPack,
140
+ onEnterComplete = _this$props2.onEnterComplete,
141
+ onExitComplete = _this$props2.onExitComplete,
142
+ postEnterStyles = _this$props2.postEnterStyles;
143
+
144
+ var _ref3 = this.context || {},
145
+ direction = _ref3.direction,
146
+ isReducedMotion = _ref3.isReducedMotion;
95
147
 
96
148
  var childProps = clearProps(this.props);
97
149
  var enterAnimationObj = {
@@ -128,13 +180,15 @@ var VelocityAnimationGroup = /*#__PURE__*/function (_React$Component) {
128
180
  animation: isCustomized ? enterAnimationObj[name] : needUIPack ? "transition.".concat(enterName, "In") : enterName,
129
181
  duration: !isReducedMotion ? enterDuration : 0,
130
182
  delay: enterDelay ? enterDelay : 0,
131
- display: isFlex ? 'flex' : ''
183
+ display: isFlex ? 'flex' : '',
184
+ complete: onEnterComplete || postEnterStyles ? this.handleEnterComplete : undefined
132
185
  };
133
186
  var exitAnimation = {
134
187
  animation: isCustomized ? exitAnimationObj[name] : needUIPack ? "transition.".concat(exitName ? exitName : enterName, "Out") : exitName ? exitName : enterName,
135
188
  duration: !isReducedMotion ? exitDuration : 0,
136
189
  delay: exitDelay ? exitDelay : 0,
137
- display: 'none'
190
+ display: 'none',
191
+ complete: onExitComplete ? this.handleExitComplete : undefined
138
192
  };
139
193
  return /*#__PURE__*/_react["default"].createElement(_velocityReact.VelocityTransitionGroup, _extends({
140
194
  enter: enterAnimation,
@@ -25,6 +25,9 @@ var propTypes = {
25
25
  isFlex: _propTypes["default"].bool,
26
26
  name: _propTypes["default"].oneOf(['fade', 'slideDown', 'flyDown', 'slideRight', 'shrink', 'expand', 'slideLeft']),
27
27
  needUIPack: _propTypes["default"].bool,
28
- runOnMount: _propTypes["default"].bool
28
+ runOnMount: _propTypes["default"].bool,
29
+ onEnterComplete: _propTypes["default"].func,
30
+ onExitComplete: _propTypes["default"].func,
31
+ postEnterStyles: _propTypes["default"].object
29
32
  };
30
33
  exports.propTypes = propTypes;
@@ -61,7 +61,7 @@ exports.parseDecimal = parseDecimal;
61
61
 
62
62
  var getTotalDimension = function getTotalDimension(elem, align) {
63
63
  var style = window.getComputedStyle(elem);
64
- return align === 'vertical' ? elem.offsetWidth + parseDecimal(style.marginLeft) + parseDecimal(style.marginRight) : elem.offsetHeight + parseDecimal(style.marginTop) + parseDecimal(style.marginBottom);
64
+ return align === 'vertical-reverse' || align === 'vertical' ? elem.offsetWidth + parseDecimal(style.marginLeft) + parseDecimal(style.marginRight) : elem.offsetHeight + parseDecimal(style.marginTop) + parseDecimal(style.marginBottom);
65
65
  };
66
66
 
67
67
  exports.getTotalDimension = getTotalDimension;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/components",
3
- "version": "1.0.0-temp-225-1",
3
+ "version": "1.0.0-temp-227",
4
4
  "main": "es/index.js",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -38,7 +38,7 @@
38
38
  "build:css:umd": "npm run clean && npm run init && react-cli build:css:umd",
39
39
  "coverage": "react-cli coverage",
40
40
  "prepare": "npm run init && npm run build && npm run rtl && npm run cssVariableConvert ",
41
- "prepublishOnly": "node prePublish.js && npm run download && npm run css:review && npm run review:props ",
41
+ "prepublishOnly": "node prePublish.js && npm run test-clean && npm run download && npm run css:review && npm run review:props ",
42
42
  "postpublish": "node postPublish.js",
43
43
  "report": "react-cli publish:report",
44
44
  "test": "react-cli test",
@@ -1,4 +1,4 @@
1
- exports.config= {
1
+ exports.config = {
2
2
  "preprocess": {
3
3
  "runner": "./preprocess/index.js"
4
4
  },
@@ -14,7 +14,7 @@ exports.config= {
14
14
  "**/es/**",
15
15
  "!**/node_modules/**"
16
16
  ],
17
- "hasRTL":[
17
+ "hasRTL": [
18
18
  "**/src/**",
19
19
  "!**/node_modules/**"
20
20
  ]