@zohodesk/components 1.6.0 → 1.6.2

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 (560) hide show
  1. package/README.md +18 -1
  2. package/_react-cli.config.js +24 -0
  3. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +330 -321
  4. package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +15 -9
  5. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +466 -466
  6. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +34 -34
  7. package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +33 -29
  8. package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +466 -466
  9. package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +34 -34
  10. package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +33 -29
  11. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +466 -466
  12. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +34 -34
  13. package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +33 -29
  14. package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +466 -466
  15. package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +34 -34
  16. package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +33 -29
  17. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +466 -466
  18. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +34 -34
  19. package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +33 -29
  20. package/assets/Appearance/light/mode/Component_LightMode.module.css +330 -321
  21. package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +15 -9
  22. package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +466 -466
  23. package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +34 -34
  24. package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +33 -29
  25. package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +466 -466
  26. package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +34 -34
  27. package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +33 -29
  28. package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +466 -466
  29. package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +34 -34
  30. package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +33 -29
  31. package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +466 -466
  32. package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +34 -34
  33. package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +33 -29
  34. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +466 -466
  35. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +34 -34
  36. package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +33 -29
  37. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +330 -321
  38. package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +15 -9
  39. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +466 -466
  40. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +34 -34
  41. package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +33 -29
  42. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +466 -466
  43. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +34 -34
  44. package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +33 -29
  45. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +466 -466
  46. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +34 -34
  47. package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +33 -29
  48. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +466 -466
  49. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +34 -34
  50. package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +33 -29
  51. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +466 -466
  52. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +34 -34
  53. package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +33 -29
  54. package/assets/Contrast/darkContrastLightness.module.css +36 -36
  55. package/assets/Contrast/lightContrastLightness.module.css +36 -36
  56. package/assets/Contrast/pureDarkContrastLightness.module.css +36 -36
  57. package/cbt.config.js +41 -0
  58. package/es/AppContainer/AppContainer.js +9 -10
  59. package/es/Avatar/Avatar.js +5 -4
  60. package/es/Avatar/Avatar.module.css +8 -8
  61. package/es/AvatarTeam/AvatarTeam.js +7 -7
  62. package/es/AvatarTeam/AvatarTeam.module.css +30 -30
  63. package/es/Button/Button.js +6 -5
  64. package/es/Button/css/Button.module.css +19 -19
  65. package/es/Buttongroup/Buttongroup.js +0 -0
  66. package/es/Buttongroup/Buttongroup.module.css +5 -3
  67. package/es/Card/Card.js +0 -0
  68. package/es/CheckBox/CheckBox.js +11 -11
  69. package/es/ColorSelect/ColorMultiSelect.js +4 -2
  70. package/es/ColorSelect/ColorSingleSelect.js +4 -2
  71. package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.js +4 -3
  72. package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
  73. package/es/ColorSelect/_shared/ColoredTag/ColoredTag.js +4 -2
  74. package/es/ColorSelect/_shared/helpers/renderHelpers.js +6 -4
  75. package/es/DateTime/CalendarView.js +0 -0
  76. package/es/DateTime/DateTime.js +5 -4
  77. package/es/DateTime/DateWidget.js +5 -4
  78. package/es/DateTime/Time.js +11 -12
  79. package/es/DateTime/YearView.js +0 -0
  80. package/es/DateTime/common.js +0 -0
  81. package/es/DateTime/index.js +0 -0
  82. package/es/DateTime/objectUtils.js +0 -0
  83. package/es/DateTime/typeChecker.js +0 -0
  84. package/es/DateTime/validator.js +0 -0
  85. package/es/DropBox/DropBox.js +11 -10
  86. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -3
  87. package/es/DropDown/DropDown.js +1 -2
  88. package/es/DropDown/DropDownHeading.js +0 -0
  89. package/es/DropDown/DropDownHeading.module.css +4 -4
  90. package/es/DropDown/DropDownItem.js +0 -0
  91. package/es/DropDown/DropDownItem.module.css +4 -4
  92. package/es/DropDown/DropDownSearch.js +0 -0
  93. package/es/DropDown/DropDownSearch.module.css +3 -3
  94. package/es/DropDown/DropDownSeparator.js +0 -0
  95. package/es/Label/Label.js +7 -7
  96. package/es/Label/Label.module.css +5 -5
  97. package/es/Layout/Box.js +0 -0
  98. package/es/Layout/Container.js +0 -0
  99. package/es/Layout/utils.js +0 -0
  100. package/es/ListItem/ListContainer.js +5 -6
  101. package/es/ListItem/ListItem.js +5 -4
  102. package/es/ListItem/ListItem.module.css +30 -19
  103. package/es/ListItem/ListItemWithAvatar.js +10 -11
  104. package/es/ListItem/ListItemWithCheckBox.js +5 -4
  105. package/es/ListItem/ListItemWithIcon.js +5 -4
  106. package/es/ListItem/ListItemWithRadio.js +5 -4
  107. package/es/Modal/Modal.js +5 -4
  108. package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
  109. package/es/MultiSelect/AdvancedMultiSelect.js +11 -8
  110. package/es/MultiSelect/EmptyState.js +16 -2
  111. package/es/MultiSelect/MultiSelect.js +10 -8
  112. package/es/MultiSelect/MultiSelectWithAvatar.js +7 -4
  113. package/es/MultiSelect/SelectedOptions.js +8 -6
  114. package/es/MultiSelect/Suggestions.js +8 -6
  115. package/es/MultiSelect/props/propTypes.js +3 -0
  116. package/es/Popup/Popup.js +0 -0
  117. package/es/Provider/LibraryContext.js +11 -3
  118. package/es/Radio/Radio.js +11 -11
  119. package/es/Radio/Radio.module.css +9 -8
  120. package/es/Responsive/CustomResponsive.js +0 -0
  121. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  122. package/es/Ribbon/Ribbon.js +0 -0
  123. package/es/Ribbon/Ribbon.module.css +25 -20
  124. package/es/Select/GroupSelect.js +13 -12
  125. package/es/Select/Select.js +14 -12
  126. package/es/Select/SelectWithAvatar.js +13 -12
  127. package/es/Select/SelectWithIcon.js +10 -8
  128. package/es/Select/props/propTypes.js +3 -0
  129. package/es/Stencils/Stencils.js +0 -0
  130. package/es/Stencils/Stencils.module.css +11 -11
  131. package/es/Switch/Switch.js +8 -8
  132. package/es/Tab/Tab.js +5 -4
  133. package/es/Tab/TabContentWrapper.js +5 -4
  134. package/es/Tab/TabWrapper.js +4 -2
  135. package/es/Tab/Tabs.js +19 -20
  136. package/es/Tag/Tag.js +11 -12
  137. package/es/Tag/Tag.module.css +18 -17
  138. package/es/TextBox/TextBox.js +5 -5
  139. package/es/TextBox/TextBox.module.css +9 -9
  140. package/es/TextBoxIcon/TextBoxIcon.js +4 -2
  141. package/es/TextBoxIcon/TextBoxIcon.module.css +1 -1
  142. package/es/Textarea/Textarea.js +7 -6
  143. package/es/Textarea/Textarea.module.css +18 -18
  144. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  145. package/es/common/avatarsizes.module.css +16 -16
  146. package/es/common/common.module.css +2 -2
  147. package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
  148. package/es/deprecated/Switch/Switch.js +8 -8
  149. package/es/shared/ArrowIcon/ArrowIcon.js +6 -6
  150. package/es/shared/InputFieldLine/InputFieldLine.js +6 -6
  151. package/es/shared/InputFieldLine/InputFieldLine.module.css +2 -2
  152. package/es/utils/Common.js +0 -0
  153. package/es/utils/dropDownUtils.js +0 -0
  154. package/es/v1/Label/Label.js +98 -33
  155. package/es/v1/Label/__tests__/Label.spec.js +214 -0
  156. package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +457 -0
  157. package/es/v1/Label/constants/index.js +8 -0
  158. package/es/v1/Label/css/Label_v1.module.css +42 -0
  159. package/es/v1/Label/css/cssJSLogic.js +44 -0
  160. package/es/v1/Label/props/defaultProps.js +14 -9
  161. package/es/v1/Label/props/propTypes.js +34 -14
  162. package/es/v1/Switch/Switch.js +7 -6
  163. package/es/v1/Switch/css/Switch_v1.module.css +28 -28
  164. package/lib/Avatar/Avatar.module.css +8 -8
  165. package/lib/AvatarTeam/AvatarTeam.js +0 -0
  166. package/lib/AvatarTeam/AvatarTeam.module.css +30 -30
  167. package/lib/Button/Button.js +0 -0
  168. package/lib/Button/css/Button.module.css +19 -19
  169. package/lib/Buttongroup/Buttongroup.js +0 -0
  170. package/lib/Buttongroup/Buttongroup.module.css +5 -3
  171. package/lib/Card/Card.js +0 -0
  172. package/lib/CheckBox/CheckBox.js +0 -0
  173. package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +2 -2
  174. package/lib/DateTime/CalendarView.js +0 -0
  175. package/lib/DateTime/DateTime.js +0 -0
  176. package/lib/DateTime/DateWidget.js +0 -0
  177. package/lib/DateTime/YearView.js +0 -0
  178. package/lib/DateTime/common.js +0 -0
  179. package/lib/DateTime/index.js +0 -0
  180. package/lib/DateTime/objectUtils.js +0 -0
  181. package/lib/DateTime/typeChecker.js +0 -0
  182. package/lib/DateTime/validator.js +0 -0
  183. package/lib/DropBox/DropBox.js +0 -0
  184. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +6 -3
  185. package/lib/DropDown/DropDown.js +0 -0
  186. package/lib/DropDown/DropDownHeading.js +0 -0
  187. package/lib/DropDown/DropDownHeading.module.css +4 -4
  188. package/lib/DropDown/DropDownItem.js +0 -0
  189. package/lib/DropDown/DropDownItem.module.css +4 -4
  190. package/lib/DropDown/DropDownSearch.js +0 -0
  191. package/lib/DropDown/DropDownSearch.module.css +3 -3
  192. package/lib/DropDown/DropDownSeparator.js +0 -0
  193. package/lib/Label/Label.js +0 -0
  194. package/lib/Label/Label.module.css +5 -5
  195. package/lib/Layout/Box.js +0 -0
  196. package/lib/Layout/Container.js +0 -0
  197. package/lib/Layout/utils.js +0 -0
  198. package/lib/ListItem/ListItem.js +0 -0
  199. package/lib/ListItem/ListItem.module.css +30 -19
  200. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -0
  201. package/lib/MultiSelect/AdvancedMultiSelect.js +2 -0
  202. package/lib/MultiSelect/EmptyState.js +17 -2
  203. package/lib/MultiSelect/MultiSelect.js +2 -0
  204. package/lib/MultiSelect/MultiSelectWithAvatar.js +2 -0
  205. package/lib/MultiSelect/props/propTypes.js +3 -0
  206. package/lib/Popup/Popup.js +0 -0
  207. package/lib/Provider/LibraryContext.js +11 -3
  208. package/lib/Radio/Radio.js +0 -0
  209. package/lib/Radio/Radio.module.css +9 -8
  210. package/lib/Responsive/CustomResponsive.js +0 -0
  211. package/lib/Ribbon/Ribbon.js +0 -0
  212. package/lib/Ribbon/Ribbon.module.css +25 -20
  213. package/lib/Select/GroupSelect.js +2 -0
  214. package/lib/Select/Select.js +2 -0
  215. package/lib/Select/SelectWithAvatar.js +2 -0
  216. package/lib/Select/SelectWithIcon.js +2 -0
  217. package/lib/Select/props/propTypes.js +3 -0
  218. package/lib/Stencils/Stencils.js +0 -0
  219. package/lib/Stencils/Stencils.module.css +11 -11
  220. package/lib/Switch/Switch.js +0 -0
  221. package/lib/Tag/Tag.js +0 -0
  222. package/lib/Tag/Tag.module.css +18 -17
  223. package/lib/TextBox/TextBox.js +0 -0
  224. package/lib/TextBox/TextBox.module.css +9 -9
  225. package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
  226. package/lib/TextBoxIcon/TextBoxIcon.module.css +1 -1
  227. package/lib/Textarea/Textarea.js +0 -0
  228. package/lib/Textarea/Textarea.module.css +18 -18
  229. package/lib/common/avatarsizes.module.css +16 -16
  230. package/lib/common/common.module.css +2 -2
  231. package/lib/deprecated/Switch/Switch.js +0 -0
  232. package/lib/shared/InputFieldLine/InputFieldLine.module.css +2 -2
  233. package/lib/utils/Common.js +0 -0
  234. package/lib/utils/dropDownUtils.js +0 -0
  235. package/lib/v1/Label/Label.js +104 -36
  236. package/lib/v1/Label/__tests__/Label.spec.js +221 -0
  237. package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +457 -0
  238. package/lib/v1/Label/constants/index.js +16 -0
  239. package/lib/v1/Label/css/Label_v1.module.css +42 -0
  240. package/lib/v1/Label/css/cssJSLogic.js +38 -0
  241. package/lib/v1/Label/props/defaultProps.js +16 -11
  242. package/lib/v1/Label/props/propTypes.js +36 -16
  243. package/lib/v1/Switch/css/Switch_v1.module.css +28 -28
  244. package/package.json +15 -20
  245. package/es/v1/Accordion/Accordion.js +0 -66
  246. package/es/v1/Accordion/AccordionItem.js +0 -57
  247. package/es/v1/Accordion/index.js +0 -2
  248. package/es/v1/Accordion/props/defaultProps.js +0 -12
  249. package/es/v1/Accordion/props/propTypes.js +0 -33
  250. package/es/v1/Animation/Animation.js +0 -45
  251. package/es/v1/Animation/props/defaultProps.js +0 -7
  252. package/es/v1/Animation/props/propTypes.js +0 -12
  253. package/es/v1/Animation/utils.js +0 -83
  254. package/es/v1/AppContainer/AppContainer.js +0 -115
  255. package/es/v1/AppContainer/props/defaultProps.js +0 -10
  256. package/es/v1/AppContainer/props/propTypes.js +0 -17
  257. package/es/v1/Avatar/Avatar.js +0 -139
  258. package/es/v1/Avatar/props/defaultProps.js +0 -17
  259. package/es/v1/Avatar/props/propTypes.js +0 -26
  260. package/es/v1/AvatarTeam/AvatarTeam.js +0 -70
  261. package/es/v1/AvatarTeam/props/defaultProps.js +0 -17
  262. package/es/v1/AvatarTeam/props/propTypes.js +0 -27
  263. package/es/v1/Button/Button.js +0 -67
  264. package/es/v1/Button/props/defaultProps.js +0 -18
  265. package/es/v1/Button/props/propTypes.js +0 -28
  266. package/es/v1/Buttongroup/Buttongroup.js +0 -31
  267. package/es/v1/Buttongroup/props/defaultProps.js +0 -6
  268. package/es/v1/Buttongroup/props/propTypes.js +0 -9
  269. package/es/v1/Card/Card.js +0 -237
  270. package/es/v1/Card/index.js +0 -4
  271. package/es/v1/Card/props/defaultProps.js +0 -25
  272. package/es/v1/Card/props/propTypes.js +0 -48
  273. package/es/v1/CheckBox/CheckBox.js +0 -161
  274. package/es/v1/CheckBox/props/defaultProps.js +0 -18
  275. package/es/v1/CheckBox/props/propTypes.js +0 -41
  276. package/es/v1/DateTime/CalendarView.js +0 -254
  277. package/es/v1/DateTime/DateTime.js +0 -779
  278. package/es/v1/DateTime/DateTimePopupFooter.js +0 -47
  279. package/es/v1/DateTime/DateTimePopupHeader.js +0 -105
  280. package/es/v1/DateTime/DateWidget.js +0 -1134
  281. package/es/v1/DateTime/DaysRow.js +0 -32
  282. package/es/v1/DateTime/Time.js +0 -181
  283. package/es/v1/DateTime/YearView.js +0 -264
  284. package/es/v1/DateTime/index.js +0 -1
  285. package/es/v1/DateTime/props/defaultProps.js +0 -63
  286. package/es/v1/DateTime/props/propTypes.js +0 -206
  287. package/es/v1/DropBox/DropBox.js +0 -79
  288. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -133
  289. package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -18
  290. package/es/v1/DropBox/DropBoxElement/props/propTypes.js +0 -51
  291. package/es/v1/DropBox/props/defaultProps.js +0 -14
  292. package/es/v1/DropBox/props/propTypes.js +0 -16
  293. package/es/v1/DropBox/utils/isMobilePopover.js +0 -17
  294. package/es/v1/DropDown/DropDown.js +0 -53
  295. package/es/v1/DropDown/DropDownHeading.js +0 -36
  296. package/es/v1/DropDown/DropDownItem.js +0 -56
  297. package/es/v1/DropDown/DropDownSearch.js +0 -58
  298. package/es/v1/DropDown/DropDownSeparator.js +0 -12
  299. package/es/v1/DropDown/props/defaultProps.js +0 -21
  300. package/es/v1/DropDown/props/propTypes.js +0 -66
  301. package/es/v1/Heading/Heading.js +0 -35
  302. package/es/v1/Heading/props/defaultProps.js +0 -5
  303. package/es/v1/Heading/props/propTypes.js +0 -12
  304. package/es/v1/Layout/Box.js +0 -115
  305. package/es/v1/Layout/Container.js +0 -132
  306. package/es/v1/Layout/index.js +0 -2
  307. package/es/v1/Layout/props/defaultProps.js +0 -16
  308. package/es/v1/Layout/props/propTypes.js +0 -46
  309. package/es/v1/ListItem/ListContainer.js +0 -104
  310. package/es/v1/ListItem/ListItem.js +0 -123
  311. package/es/v1/ListItem/ListItemWithAvatar.js +0 -143
  312. package/es/v1/ListItem/ListItemWithCheckBox.js +0 -104
  313. package/es/v1/ListItem/ListItemWithIcon.js +0 -126
  314. package/es/v1/ListItem/ListItemWithRadio.js +0 -105
  315. package/es/v1/ListItem/index.js +0 -6
  316. package/es/v1/ListItem/props/defaultProps.js +0 -97
  317. package/es/v1/ListItem/props/propTypes.js +0 -202
  318. package/es/v1/Modal/Modal.js +0 -125
  319. package/es/v1/Modal/props/defaultProps.js +0 -3
  320. package/es/v1/Modal/props/propTypes.js +0 -7
  321. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1092
  322. package/es/v1/MultiSelect/AdvancedMultiSelect.js +0 -583
  323. package/es/v1/MultiSelect/EmptyState.js +0 -64
  324. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -50
  325. package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -7
  326. package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -7
  327. package/es/v1/MultiSelect/MultiSelect.js +0 -1119
  328. package/es/v1/MultiSelect/MultiSelectHeader.js +0 -32
  329. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +0 -208
  330. package/es/v1/MultiSelect/SelectedOptions.js +0 -84
  331. package/es/v1/MultiSelect/Suggestions.js +0 -141
  332. package/es/v1/MultiSelect/index.js +0 -4
  333. package/es/v1/MultiSelect/props/defaultProps.js +0 -165
  334. package/es/v1/MultiSelect/props/propTypes.js +0 -322
  335. package/es/v1/PopOver/PopOver.js +0 -176
  336. package/es/v1/PopOver/props/defaultProps.js +0 -7
  337. package/es/v1/PopOver/props/propTypes.js +0 -53
  338. package/es/v1/Popup/Popup.js +0 -644
  339. package/es/v1/Radio/Radio.js +0 -130
  340. package/es/v1/Radio/props/defaultProps.js +0 -15
  341. package/es/v1/Radio/props/propTypes.js +0 -40
  342. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -56
  343. package/es/v1/ResponsiveDropBox/props/defaultProps.js +0 -4
  344. package/es/v1/ResponsiveDropBox/props/propTypes.js +0 -8
  345. package/es/v1/Ribbon/Ribbon.js +0 -33
  346. package/es/v1/Ribbon/props/defaultProps.js +0 -9
  347. package/es/v1/Ribbon/props/propTypes.js +0 -11
  348. package/es/v1/RippleEffect/RippleEffect.js +0 -25
  349. package/es/v1/RippleEffect/props/defaultProps.js +0 -10
  350. package/es/v1/RippleEffect/props/propTypes.js +0 -12
  351. package/es/v1/Select/GroupSelect.js +0 -818
  352. package/es/v1/Select/Select.js +0 -975
  353. package/es/v1/Select/SelectWithAvatar.js +0 -356
  354. package/es/v1/Select/SelectWithIcon.js +0 -545
  355. package/es/v1/Select/index.js +0 -4
  356. package/es/v1/Select/props/defaultProps.js +0 -126
  357. package/es/v1/Select/props/propTypes.js +0 -297
  358. package/es/v1/Stencils/Stencils.js +0 -26
  359. package/es/v1/Stencils/props/defaultProps.js +0 -6
  360. package/es/v1/Stencils/props/propTypes.js +0 -7
  361. package/es/v1/Tab/Tab.js +0 -106
  362. package/es/v1/Tab/TabContent.js +0 -30
  363. package/es/v1/Tab/TabContentWrapper.js +0 -33
  364. package/es/v1/Tab/TabWrapper.js +0 -55
  365. package/es/v1/Tab/Tabs.js +0 -619
  366. package/es/v1/Tab/index.js +0 -5
  367. package/es/v1/Tab/props/defaultProps.js +0 -51
  368. package/es/v1/Tab/props/propTypes.js +0 -117
  369. package/es/v1/Tab/v1Tab.module.css +0 -100
  370. package/es/v1/Tab/v1TabContent.module.css +0 -4
  371. package/es/v1/Tab/v1Tabs.module.css +0 -167
  372. package/es/v1/Tag/Tag.js +0 -140
  373. package/es/v1/Tag/props/defaultProps.js +0 -15
  374. package/es/v1/Tag/props/propTypes.js +0 -36
  375. package/es/v1/TextBox/TextBox.js +0 -160
  376. package/es/v1/TextBox/props/defaultProps.js +0 -20
  377. package/es/v1/TextBox/props/propTypes.js +0 -56
  378. package/es/v1/TextBoxIcon/TextBoxIcon.js +0 -166
  379. package/es/v1/TextBoxIcon/props/defaultProps.js +0 -24
  380. package/es/v1/TextBoxIcon/props/propTypes.js +0 -53
  381. package/es/v1/Textarea/Textarea.js +0 -100
  382. package/es/v1/Textarea/props/defaultProps.js +0 -17
  383. package/es/v1/Textarea/props/propTypes.js +0 -31
  384. package/es/v1/Tooltip/Tooltip.js +0 -530
  385. package/es/v1/Tooltip/props/defaultProps.js +0 -4
  386. package/es/v1/Tooltip/props/propTypes.js +0 -5
  387. package/es/v1/Typography/Typography.js +0 -38
  388. package/es/v1/Typography/css/cssJSLogic.js +0 -56
  389. package/es/v1/Typography/css/v1_Typography.module.css +0 -380
  390. package/es/v1/Typography/props/defaultProps.js +0 -8
  391. package/es/v1/Typography/props/propTypes.js +0 -27
  392. package/es/v1/Typography/utils/index.js +0 -50
  393. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -69
  394. package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -7
  395. package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -12
  396. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -99
  397. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -15
  398. package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -19
  399. package/es/v1/semantic/Button/Button.js +0 -53
  400. package/es/v1/semantic/Button/props/defaultProps.js +0 -12
  401. package/es/v1/semantic/Button/props/propTypes.js +0 -22
  402. package/es/v1/semantic/index.js +0 -1
  403. package/lib/v1/Accordion/Accordion.js +0 -98
  404. package/lib/v1/Accordion/AccordionItem.js +0 -68
  405. package/lib/v1/Accordion/index.js +0 -23
  406. package/lib/v1/Accordion/props/defaultProps.js +0 -20
  407. package/lib/v1/Accordion/props/propTypes.js +0 -45
  408. package/lib/v1/Animation/Animation.js +0 -61
  409. package/lib/v1/Animation/props/defaultProps.js +0 -14
  410. package/lib/v1/Animation/props/propTypes.js +0 -23
  411. package/lib/v1/Animation/utils.js +0 -94
  412. package/lib/v1/AppContainer/AppContainer.js +0 -146
  413. package/lib/v1/AppContainer/props/defaultProps.js +0 -17
  414. package/lib/v1/AppContainer/props/propTypes.js +0 -28
  415. package/lib/v1/Avatar/Avatar.js +0 -191
  416. package/lib/v1/Avatar/props/defaultProps.js +0 -24
  417. package/lib/v1/Avatar/props/propTypes.js +0 -37
  418. package/lib/v1/AvatarTeam/AvatarTeam.js +0 -81
  419. package/lib/v1/AvatarTeam/props/defaultProps.js +0 -24
  420. package/lib/v1/AvatarTeam/props/propTypes.js +0 -38
  421. package/lib/v1/Button/Button.js +0 -82
  422. package/lib/v1/Button/props/defaultProps.js +0 -27
  423. package/lib/v1/Button/props/propTypes.js +0 -40
  424. package/lib/v1/Buttongroup/Buttongroup.js +0 -44
  425. package/lib/v1/Buttongroup/props/defaultProps.js +0 -13
  426. package/lib/v1/Buttongroup/props/propTypes.js +0 -20
  427. package/lib/v1/Card/Card.js +0 -269
  428. package/lib/v1/Card/index.js +0 -37
  429. package/lib/v1/Card/props/defaultProps.js +0 -35
  430. package/lib/v1/Card/props/propTypes.js +0 -62
  431. package/lib/v1/CheckBox/CheckBox.js +0 -172
  432. package/lib/v1/CheckBox/props/defaultProps.js +0 -25
  433. package/lib/v1/CheckBox/props/propTypes.js +0 -52
  434. package/lib/v1/DateTime/CalendarView.js +0 -322
  435. package/lib/v1/DateTime/DateTime.js +0 -877
  436. package/lib/v1/DateTime/DateTimePopupFooter.js +0 -96
  437. package/lib/v1/DateTime/DateTimePopupHeader.js +0 -166
  438. package/lib/v1/DateTime/DateWidget.js +0 -1163
  439. package/lib/v1/DateTime/DaysRow.js +0 -81
  440. package/lib/v1/DateTime/Time.js +0 -270
  441. package/lib/v1/DateTime/YearView.js +0 -325
  442. package/lib/v1/DateTime/index.js +0 -15
  443. package/lib/v1/DateTime/props/defaultProps.js +0 -76
  444. package/lib/v1/DateTime/props/propTypes.js +0 -238
  445. package/lib/v1/DropBox/DropBox.js +0 -109
  446. package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +0 -146
  447. package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +0 -25
  448. package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +0 -62
  449. package/lib/v1/DropBox/props/defaultProps.js +0 -30
  450. package/lib/v1/DropBox/props/propTypes.js +0 -35
  451. package/lib/v1/DropBox/utils/isMobilePopover.js +0 -25
  452. package/lib/v1/DropDown/DropDown.js +0 -74
  453. package/lib/v1/DropDown/DropDownHeading.js +0 -47
  454. package/lib/v1/DropDown/DropDownItem.js +0 -75
  455. package/lib/v1/DropDown/DropDownSearch.js +0 -77
  456. package/lib/v1/DropDown/DropDownSeparator.js +0 -24
  457. package/lib/v1/DropDown/props/defaultProps.js +0 -31
  458. package/lib/v1/DropDown/props/propTypes.js +0 -87
  459. package/lib/v1/Heading/Heading.js +0 -53
  460. package/lib/v1/Heading/props/defaultProps.js +0 -12
  461. package/lib/v1/Heading/props/propTypes.js +0 -23
  462. package/lib/v1/Layout/Box.js +0 -128
  463. package/lib/v1/Layout/Container.js +0 -145
  464. package/lib/v1/Layout/index.js +0 -23
  465. package/lib/v1/Layout/props/defaultProps.js +0 -24
  466. package/lib/v1/Layout/props/propTypes.js +0 -58
  467. package/lib/v1/ListItem/ListContainer.js +0 -128
  468. package/lib/v1/ListItem/ListItem.js +0 -138
  469. package/lib/v1/ListItem/ListItemWithAvatar.js +0 -167
  470. package/lib/v1/ListItem/ListItemWithCheckBox.js +0 -126
  471. package/lib/v1/ListItem/ListItemWithIcon.js +0 -143
  472. package/lib/v1/ListItem/ListItemWithRadio.js +0 -127
  473. package/lib/v1/ListItem/index.js +0 -55
  474. package/lib/v1/ListItem/props/defaultProps.js +0 -109
  475. package/lib/v1/ListItem/props/propTypes.js +0 -196
  476. package/lib/v1/Modal/Modal.js +0 -166
  477. package/lib/v1/Modal/props/defaultProps.js +0 -10
  478. package/lib/v1/Modal/props/propTypes.js +0 -18
  479. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +0 -1180
  480. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +0 -649
  481. package/lib/v1/MultiSelect/EmptyState.js +0 -112
  482. package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +0 -62
  483. package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +0 -14
  484. package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +0 -18
  485. package/lib/v1/MultiSelect/MultiSelect.js +0 -1202
  486. package/lib/v1/MultiSelect/MultiSelectHeader.js +0 -78
  487. package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +0 -262
  488. package/lib/v1/MultiSelect/SelectedOptions.js +0 -130
  489. package/lib/v1/MultiSelect/Suggestions.js +0 -196
  490. package/lib/v1/MultiSelect/index.js +0 -39
  491. package/lib/v1/MultiSelect/props/defaultProps.js +0 -181
  492. package/lib/v1/MultiSelect/props/propTypes.js +0 -350
  493. package/lib/v1/PopOver/PopOver.js +0 -197
  494. package/lib/v1/PopOver/props/defaultProps.js +0 -15
  495. package/lib/v1/PopOver/props/propTypes.js +0 -66
  496. package/lib/v1/Popup/Popup.js +0 -715
  497. package/lib/v1/Radio/Radio.js +0 -141
  498. package/lib/v1/Radio/props/defaultProps.js +0 -22
  499. package/lib/v1/Radio/props/propTypes.js +0 -51
  500. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +0 -79
  501. package/lib/v1/ResponsiveDropBox/props/defaultProps.js +0 -11
  502. package/lib/v1/ResponsiveDropBox/props/propTypes.js +0 -27
  503. package/lib/v1/Ribbon/Ribbon.js +0 -44
  504. package/lib/v1/Ribbon/props/defaultProps.js +0 -16
  505. package/lib/v1/Ribbon/props/propTypes.js +0 -22
  506. package/lib/v1/RippleEffect/RippleEffect.js +0 -40
  507. package/lib/v1/RippleEffect/props/defaultProps.js +0 -17
  508. package/lib/v1/RippleEffect/props/propTypes.js +0 -23
  509. package/lib/v1/Select/GroupSelect.js +0 -894
  510. package/lib/v1/Select/Select.js +0 -1025
  511. package/lib/v1/Select/SelectWithAvatar.js +0 -406
  512. package/lib/v1/Select/SelectWithIcon.js +0 -607
  513. package/lib/v1/Select/index.js +0 -39
  514. package/lib/v1/Select/props/defaultProps.js +0 -125
  515. package/lib/v1/Select/props/propTypes.js +0 -319
  516. package/lib/v1/Stencils/Stencils.js +0 -43
  517. package/lib/v1/Stencils/props/defaultProps.js +0 -13
  518. package/lib/v1/Stencils/props/propTypes.js +0 -18
  519. package/lib/v1/Tab/Tab.js +0 -132
  520. package/lib/v1/Tab/TabContent.js +0 -42
  521. package/lib/v1/Tab/TabContentWrapper.js +0 -47
  522. package/lib/v1/Tab/TabWrapper.js +0 -89
  523. package/lib/v1/Tab/Tabs.js +0 -688
  524. package/lib/v1/Tab/index.js +0 -47
  525. package/lib/v1/Tab/props/defaultProps.js +0 -62
  526. package/lib/v1/Tab/props/propTypes.js +0 -132
  527. package/lib/v1/Tab/v1Tab.module.css +0 -100
  528. package/lib/v1/Tab/v1TabContent.module.css +0 -4
  529. package/lib/v1/Tab/v1Tabs.module.css +0 -167
  530. package/lib/v1/Tag/Tag.js +0 -160
  531. package/lib/v1/Tag/props/defaultProps.js +0 -22
  532. package/lib/v1/Tag/props/propTypes.js +0 -47
  533. package/lib/v1/TextBox/TextBox.js +0 -175
  534. package/lib/v1/TextBox/props/defaultProps.js +0 -27
  535. package/lib/v1/TextBox/props/propTypes.js +0 -62
  536. package/lib/v1/TextBoxIcon/TextBoxIcon.js +0 -206
  537. package/lib/v1/TextBoxIcon/props/defaultProps.js +0 -31
  538. package/lib/v1/TextBoxIcon/props/propTypes.js +0 -72
  539. package/lib/v1/Textarea/Textarea.js +0 -118
  540. package/lib/v1/Textarea/props/defaultProps.js +0 -24
  541. package/lib/v1/Textarea/props/propTypes.js +0 -42
  542. package/lib/v1/Tooltip/Tooltip.js +0 -599
  543. package/lib/v1/Tooltip/props/defaultProps.js +0 -11
  544. package/lib/v1/Tooltip/props/propTypes.js +0 -16
  545. package/lib/v1/Typography/Typography.js +0 -56
  546. package/lib/v1/Typography/css/cssJSLogic.js +0 -48
  547. package/lib/v1/Typography/css/v1_Typography.module.css +0 -380
  548. package/lib/v1/Typography/props/defaultProps.js +0 -15
  549. package/lib/v1/Typography/props/propTypes.js +0 -38
  550. package/lib/v1/Typography/utils/index.js +0 -59
  551. package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +0 -90
  552. package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +0 -14
  553. package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +0 -23
  554. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +0 -126
  555. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +0 -22
  556. package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +0 -30
  557. package/lib/v1/semantic/Button/Button.js +0 -63
  558. package/lib/v1/semantic/Button/props/defaultProps.js +0 -19
  559. package/lib/v1/semantic/Button/props/propTypes.js +0 -33
  560. package/lib/v1/semantic/index.js +0 -15
@@ -1,688 +0,0 @@
1
- "use strict";
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
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _useEffectCallOnlyAfterState = _interopRequireDefault(require("@zohodesk/hooks/es/utils/useEffectCallOnlyAfterState"));
13
-
14
- var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
15
-
16
- var _EmptySearch = _interopRequireDefault(require("@zohodesk/svg/lib/emptystate/version3/EmptySearch"));
17
-
18
- var _Tab = _interopRequireDefault(require("./Tab"));
19
-
20
- var _defaultProps = require("./props/defaultProps");
21
-
22
- var _propTypes = require("./props/propTypes");
23
-
24
- var _Common = require("../../utils/Common");
25
-
26
- var _Layout = require("../Layout");
27
-
28
- var _ResizeObserver = _interopRequireDefault(require("../../Responsive/ResizeObserver"));
29
-
30
- var _ListItem = _interopRequireDefault(require("../ListItem/ListItem"));
31
-
32
- var _icons = require("@zohodesk/icons");
33
-
34
- var _v1TabsModule = _interopRequireDefault(require("./v1Tabs.module.css"));
35
-
36
- var _Popup = _interopRequireDefault(require("../Popup/Popup"));
37
-
38
- var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
39
-
40
- var _CustomResponsive = require("../../Responsive/CustomResponsive");
41
-
42
- var _semanticButtonModule = _interopRequireDefault(require("../../semantic/Button/semanticButton.module.css"));
43
-
44
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
45
-
46
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
47
-
48
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
49
-
50
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
51
-
52
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
53
-
54
- 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); }
55
-
56
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
57
-
58
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
59
-
60
- 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."); }
61
-
62
- 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); }
63
-
64
- 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; }
65
-
66
- 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; }
67
-
68
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
69
-
70
- var Tabs = function Tabs(props) {
71
- var _useState = (0, _react.useState)(null),
72
- _useState2 = _slicedToArray(_useState, 2),
73
- totalDimension = _useState2[0],
74
- setTotalDimension = _useState2[1];
75
-
76
- var _useState3 = (0, _react.useState)({}),
77
- _useState4 = _slicedToArray(_useState3, 2),
78
- tabDimensions = _useState4[0],
79
- setTabDimensions = _useState4[1];
80
-
81
- var highlightInitialDimension = (0, _react.useRef)(null);
82
-
83
- var _useState5 = (0, _react.useState)(true),
84
- _useState6 = _slicedToArray(_useState5, 2),
85
- renderVirtualTabs = _useState6[0],
86
- setRenderVirtualTabs = _useState6[1];
87
-
88
- var _useState7 = (0, _react.useState)([]),
89
- _useState8 = _slicedToArray(_useState7, 2),
90
- tabKeys = _useState8[0],
91
- setTabKeys = _useState8[1];
92
-
93
- var _useState9 = (0, _react.useState)(''),
94
- _useState10 = _slicedToArray(_useState9, 2),
95
- searchValue = _useState10[0],
96
- setSearchValue = _useState10[1];
97
-
98
- var tabsObserver = (0, _react.useRef)(new _ResizeObserver["default"](onResize));
99
- var tabObserver = (0, _react.useRef)({});
100
- var highlight = (0, _react.useRef)(null);
101
- var tabsEle = (0, _react.useRef)(null);
102
- var tabElement = (0, _react.useRef)({});
103
- var style = props.style,
104
- className = props.className,
105
- dataId = props.dataId,
106
- highlightClass = props.highlightClass,
107
- type = props.type,
108
- isAnimate = props.isAnimate,
109
- needTabBorder = props.needTabBorder,
110
- needBorder = props.needBorder,
111
- needPadding = props.needPadding,
112
- align = props.align,
113
- boxPosition = props.boxPosition,
114
- removeClose = props.removeClose,
115
- togglePopup = props.togglePopup,
116
- needAppearance = props.needAppearance,
117
- children = props.children,
118
- onSelect = props.onSelect,
119
- onScroll = props.onScroll,
120
- isResponsive = props.isResponsive,
121
- maxTabsCount = props.maxTabsCount,
122
- minTabsCount = props.minTabsCount,
123
- childType = props.childType,
124
- containerClass = props.containerClass,
125
- dataSelectorId = props.dataSelectorId,
126
- selectedTab = props.selectedTab,
127
- showTitleInMoreOptions = props.showTitleInMoreOptions,
128
- searchErrorText = props.searchErrorText,
129
- placeHolderText = props.placeHolderText,
130
- searchBoxSize = props.searchBoxSize,
131
- isPopupOpen = props.isPopupOpen,
132
- closePopupOnly = props.closePopupOnly;
133
-
134
- function handleChange(value, e) {
135
- setSearchValue(value);
136
- }
137
-
138
- function handleSearchValueClear(e) {
139
- setSearchValue('');
140
- }
141
-
142
- function getMoreList(_ref) {
143
- var moreTabs = _ref.moreTabs;
144
- var validElements = [];
145
-
146
- _react["default"].Children.map(moreTabs, function (child) {
147
- var isValidElement = /*#__PURE__*/_react["default"].isValidElement(child);
148
-
149
- if (isValidElement) {
150
- validElements.push(child.props);
151
- }
152
- });
153
-
154
- return validElements;
155
- }
156
-
157
- function handleFilterSuggestions(_ref2) {
158
- var moreTabs = _ref2.moreTabs;
159
- var options = getMoreList({
160
- moreTabs: moreTabs
161
- });
162
- var filteredOptions = options.filter(function (list) {
163
- var text = list.text,
164
- title = list.title;
165
- var value = text ? text : showTitleInMoreOptions ? title : '';
166
- return value.toLowerCase().includes(searchValue.toLowerCase());
167
- });
168
- return filteredOptions;
169
- }
170
-
171
- function renderEmptyState() {
172
- return /*#__PURE__*/_react["default"].createElement("div", {
173
- className: _v1TabsModule["default"].emptyStateContainer
174
- }, /*#__PURE__*/_react["default"].createElement(_EmptySearch["default"], {
175
- size: "small"
176
- }), /*#__PURE__*/_react["default"].createElement("div", {
177
- className: _v1TabsModule["default"].emptyStateTitle
178
- }, searchErrorText));
179
- }
180
-
181
- function onTabResize(size, target) {
182
- var newDim = Object.assign({}, tabDimensions);
183
- var elemDim = (0, _Common.getTotalDimension)(target, align);
184
-
185
- if (elemDim !== 0) {
186
- newDim[target.dataset.key] = elemDim;
187
- }
188
-
189
- setTabDimensions(newDim);
190
- }
191
-
192
- (0, _react.useEffect)(function () {
193
- var totalDimension = getTotalDimensionLocal();
194
- var tabDimensions = getTabDimensions();
195
- var tabKeys = [];
196
- var restrictedKeys = ['state', 'props', 'refs', 'context'];
197
-
198
- _react["default"].Children.toArray(children).forEach(function (child) {
199
- if (child && child.props.id && child.type === childType) {
200
- if (restrictedKeys.includes(child.props.id)) {
201
- throw new Error('Restricted id name found in Tabs, Please avoid these names => ' + restrictedKeys.toString());
202
- } else {
203
- tabKeys.push(child.props.id);
204
- }
205
- }
206
- });
207
-
208
- setTotalDimension(totalDimension);
209
- setTabDimensions(tabDimensions);
210
- setRenderVirtualTabs(false);
211
- setTabKeys(tabKeys);
212
-
213
- if (highlight.current) {
214
- highlightInitialDimension.current = getHighlightDim();
215
- moveHighlight();
216
- }
217
-
218
- return function () {
219
- if (tabsObserver.current) {
220
- tabsObserver.current.disconnect();
221
- tabsObserver.current = null;
222
- }
223
-
224
- if (tabObserver.current) {
225
- Object.keys(tabObserver.current).forEach(function (observer) {
226
- tabObserver.current[observer] && tabObserver.current[observer].disconnect();
227
- });
228
- tabObserver.current = null;
229
- }
230
- };
231
- }, []);
232
- (0, _react.useEffect)(function () {
233
- if (searchValue.length) {
234
- handleSearchValueClear();
235
- }
236
- }, [isPopupOpen]);
237
-
238
- function setMaxDim() {
239
- var totalDimension = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
240
-
241
- // let actual = Object.keys(tabDimensions).reduce(
242
- // (sum, tab) => sum + (tabDimensions[tab] || 0),
243
- // 0
244
- // );
245
- if (totalDimension && tabElement.current[selectedTab]) {
246
- var newDim = "".concat((0, _Common.remConvert)(totalDimension), "rem");
247
- align === 'vertical' ? tabElement.current[selectedTab].style.maxWidth = newDim : tabElement.current[selectedTab].style.maxHeight = newDim;
248
- }
249
- }
250
-
251
- function getHighlightDim() {
252
- return align === 'vertical' ? highlight.current.offsetLeft : highlight.current.offsetTop;
253
- }
254
-
255
- (0, _useEffectCallOnlyAfterState["default"])(function () {
256
- if (children) {
257
- /**
258
- * To recalculate the dimensions of tabs we are checking the children length.
259
- * and also checking the tab id and their order.
260
- */
261
- var newTabKeys = [];
262
-
263
- _react["default"].Children.toArray(children).forEach(function (child) {
264
- if (child && child.props.id && child.type === childType) {
265
- newTabKeys.push(child.props.id);
266
- }
267
- });
268
-
269
- var isSameTabKeys = newTabKeys.every(function (current, index) {
270
- return tabKeys[index] === current;
271
- });
272
-
273
- if (newTabKeys.length !== tabKeys.length || !isSameTabKeys) {
274
- setRenderVirtualTabs(true);
275
- setTabKeys(newTabKeys);
276
- setTimeout(function () {
277
- setTabDimensions(getTabDimensions());
278
- setTotalDimension(getTotalDimensionLocal());
279
- setRenderVirtualTabs(false);
280
- });
281
- }
282
-
283
- if (newTabKeys.length === 1) {
284
- moveHighlight();
285
- }
286
- }
287
- });
288
- (0, _useEffectCallOnlyAfterState["default"])(function () {
289
- tabsObserver.current && tabsObserver.current.replaceResizeHandler(onResize);
290
-
291
- if (children) {
292
- moveHighlight();
293
- }
294
- }, [selectedTab]);
295
-
296
- function moveHighlight() {
297
- var node = highlight.current;
298
-
299
- if (isAnimate && needTabBorder && node) {
300
- var tabActive = tabElement.current[selectedTab];
301
-
302
- if (tabActive) {
303
- var position, dimension;
304
-
305
- if (align === 'vertical') {
306
- position = tabActive.offsetLeft;
307
- dimension = tabActive.offsetWidth;
308
- node.style.transform = "translateX(".concat((0, _Common.remConvert)(position - highlightInitialDimension.current), "rem)");
309
- node.style.width = "".concat((0, _Common.remConvert)(dimension), "rem");
310
- } else if (align === 'horizontal') {
311
- position = tabActive.offsetTop;
312
- dimension = tabActive.offsetHeight;
313
- node.style.transform = "translateY(".concat((0, _Common.remConvert)(position - highlightInitialDimension.current), "rem)");
314
- node.style.height = "".concat((0, _Common.remConvert)(dimension), "rem");
315
- }
316
- }
317
- }
318
- }
319
-
320
- var getHighlightRef = (0, _react.useCallback)(function (ele) {
321
- highlight.current = ele;
322
- }, []);
323
- var getTabsRef = (0, _react.useCallback)(function (ele) {
324
- tabsEle.current = ele;
325
-
326
- if (ele) {
327
- tabsObserver.current.observe(ele);
328
- } else {
329
- tabsObserver.current && tabsObserver.current.disconnect();
330
- }
331
- }, []);
332
-
333
- function onSizeChange() {
334
- var totalDimension = getTotalDimensionLocal();
335
- setTotalDimension(totalDimension);
336
-
337
- if (highlight.current) {
338
- highlightInitialDimension.current = getHighlightDim();
339
- moveHighlight();
340
- }
341
- }
342
-
343
- function onResize(timer) {
344
- if (tabsEle.current && isResponsive) {
345
- if (!timer) {
346
- onSizeChange();
347
- } else {
348
- setTimeout(function () {
349
- onSizeChange();
350
- }, timer);
351
- }
352
- }
353
- }
354
-
355
- function getTotalDimensionLocal() {
356
- var totalDimension = tabsEle.current && (0, _Common.getTotalDimension)(tabsEle.current, align);
357
- return totalDimension;
358
- }
359
-
360
- function getTabDimensions() {
361
- var tabDimensions = {};
362
-
363
- _react["default"].Children.forEach(children, function (child) {
364
- return /*#__PURE__*/_react["default"].isValidElement(child) && child.type === childType && tabElement.current[child.props.id] && Object.assign(tabDimensions, _defineProperty({}, child.props.id, tabElement.current[child.props.id] && (0, _Common.getTotalDimension)(tabElement.current[child.props.id], align)));
365
- });
366
-
367
- return tabDimensions;
368
- }
369
-
370
- function responsiveTab(totalDimension, tabDimensions) {
371
- var mainTabs = [],
372
- moreTabs = [],
373
- otherTabs = [];
374
-
375
- if (totalDimension && isResponsive) {
376
- var selectedTabDimension = tabDimensions[selectedTab] || 0;
377
- var remainingDimension = totalDimension - selectedTabDimension;
378
- var maxTabsTobeVisible = maxTabsCount - 1;
379
- var minTabsToBeVisible = 1;
380
-
381
- _react["default"].Children.forEach(children, function (child) {
382
- if (child && child.type === childType && child.props.id) {
383
- var elemDimension = tabDimensions[child.props.id];
384
- var isMaxCountExceeded = maxTabsTobeVisible <= 0 ? true : false;
385
- var isMinCountNotExceeded = minTabsToBeVisible < minTabsCount ? true : false;
386
-
387
- if (child.props.id === selectedTab) {
388
- mainTabs.push(child);
389
- } else if (isMinCountNotExceeded) {
390
- mainTabs.push(child);
391
- remainingDimension -= tabDimensions[child.props.id];
392
- minTabsToBeVisible++;
393
- maxTabsTobeVisible--;
394
- } else if (remainingDimension - elemDimension >= 20 && !moreTabs.length && !isMaxCountExceeded) {
395
- mainTabs.push(child);
396
- remainingDimension -= tabDimensions[child.props.id];
397
- maxTabsTobeVisible--;
398
- } else {
399
- moreTabs.push(child);
400
- }
401
- } else if ( /*#__PURE__*/_react["default"].isValidElement(child)) {
402
- otherTabs.push(child);
403
- }
404
- });
405
-
406
- if (selectedTabDimension > totalDimension) {
407
- /* let { align } = this.props;
408
- let newDim = `${remConvert(totalDimension)}rem`;
409
- let newTabs;
410
- if (align === 'vertical') {
411
- newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxWidth: newDim } }));
412
- } else {
413
- newTabs = mainTabs.map(tab => React.cloneElement(tab, { style: { maxHeight: newDim } }));
414
- }
415
- mainTabs = newTabs; */
416
- setMaxDim(totalDimension);
417
- }
418
- } else if (!isResponsive) {
419
- _react["default"].Children.forEach(children, function (child) {
420
- if (child && child.type === childType && child.props.id) {
421
- mainTabs.push(child);
422
- } else {
423
- otherTabs.push(child);
424
- }
425
- });
426
- } else {
427
- moreTabs = children;
428
- }
429
-
430
- return {
431
- mainTabs: mainTabs,
432
- moreTabs: moreTabs,
433
- otherTabs: otherTabs
434
- };
435
- }
436
-
437
- function getTabRef(refName, ele, isVirtual) {
438
- if (ele) {
439
- tabElement.current[refName] = ele;
440
- } // tabElement.current[refName] = ele
441
-
442
-
443
- var key = isVirtual ? "virtual_".concat(refName) : refName;
444
-
445
- if (ele) {
446
- tabObserver.current[key] = new _ResizeObserver["default"](onTabResize);
447
- tabObserver.current[key].observe(ele);
448
- } else {
449
- if (tabObserver.current && tabObserver.current[key]) {
450
- tabObserver.current[key].disconnect();
451
- }
452
- }
453
- }
454
-
455
- function moreTabSelect(tab, value, index, e) {
456
- if (e && e.target && e.target.parentElement.tagName === 'A' && (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)) {
457
- (0, _Common.cancelBubblingEffect)(e);
458
- return;
459
- }
460
-
461
- e.preventDefault();
462
- onSelect(tab);
463
- closePopupOnly();
464
- }
465
-
466
- function onScrollLocal(e) {
467
- e.persist();
468
- onScroll && (0, _Common.throttle)(onScroll, 100, e);
469
- }
470
-
471
- function togglePopupLocal(e) {
472
- removeClose && removeClose(e);
473
- var popupPosition = align === 'vertical' ? 'bottomLeft' : 'rightTop';
474
- boxPosition = boxPosition ? boxPosition : popupPosition;
475
- togglePopup(e, boxPosition);
476
- }
477
-
478
- function responsiveFunc(_ref3) {
479
- var mediaQueryOR = _ref3.mediaQueryOR;
480
- return {
481
- tabletMode: mediaQueryOR([{
482
- maxWidth: 700
483
- }])
484
- };
485
- }
486
-
487
- function renderTabs(mainTabs, moreTabs, isVirtual) {
488
- var moreButtonClass = props.moreButtonClass,
489
- moreButtonActiveClass = props.moreButtonActiveClass,
490
- moreBoxClass = props.moreBoxClass,
491
- menuItemClass = props.menuItemClass,
492
- itemClass = props.itemClass,
493
- itemActiveClass = props.itemActiveClass,
494
- iconName = props.iconName,
495
- isPopupReady = props.isPopupReady,
496
- isPopupOpen = props.isPopupOpen,
497
- getContainerRef = props.getContainerRef,
498
- showTitleInMoreOptions = props.showTitleInMoreOptions,
499
- moreContainerClass = props.moreContainerClass,
500
- align = props.align,
501
- type = props.type,
502
- isAnimate = props.isAnimate,
503
- needTabBorder = props.needTabBorder,
504
- needAppearance = props.needAppearance,
505
- iconSize = props.iconSize,
506
- getTargetRef = props.getTargetRef,
507
- position = props.position,
508
- customProps = props.customProps,
509
- getCustomDropBoxHeaderPlaceHolder = props.getCustomDropBoxHeaderPlaceHolder,
510
- dataId = props.dataId,
511
- isAbsolutePositioningNeeded = props.isAbsolutePositioningNeeded,
512
- isRestrictScroll = props.isRestrictScroll,
513
- positionsOffset = props.positionsOffset,
514
- targetOffset = props.targetOffset;
515
- var _customProps$DropBoxP = customProps.DropBoxProps,
516
- DropBoxProps = _customProps$DropBoxP === void 0 ? {} : _customProps$DropBoxP,
517
- _customProps$ListItem = customProps.ListItemProps,
518
- ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
519
- _customProps$MoreButt = customProps.MoreButtonProps,
520
- MoreButtonProps = _customProps$MoreButt === void 0 ? {} : _customProps$MoreButt,
521
- _customProps$TextBoxI = customProps.TextBoxIconProps,
522
- TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI;
523
- var popupClass = align === 'vertical' ? _v1TabsModule["default"][position] ? _v1TabsModule["default"][position] : '' : '';
524
- var moreTabsListItems = handleFilterSuggestions({
525
- moreTabs: moreTabs
526
- });
527
- var hasSearch = moreTabs.length > 4;
528
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _react["default"].Children.map(mainTabs, function (child) {
529
- if (!child) {
530
- return null;
531
- }
532
-
533
- var MainTab = child.type;
534
- var classProps = {};
535
-
536
- if (itemActiveClass) {
537
- classProps.activeClass = itemActiveClass;
538
- }
539
-
540
- if (itemClass) {
541
- classProps.className = itemClass;
542
- }
543
-
544
- return /*#__PURE__*/_react["default"].isValidElement(child) && /*#__PURE__*/_react["default"].createElement(MainTab, _extends({}, child.props, {
545
- key: child.props.id,
546
- getTabRef: getTabRef,
547
- onSelect: onSelect // recalculateDimension={tabElement.current[recalculateDimension]}
548
- ,
549
- isActive: child.props.id === selectedTab,
550
- type: type,
551
- isAnimate: isAnimate,
552
- needBorder: needTabBorder,
553
- needAppearance: needAppearance,
554
- align: align,
555
- isVirtual: isVirtual
556
- }, classProps));
557
- }), _react["default"].Children.count(moreTabs) ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
558
- className: "".concat(_v1TabsModule["default"].menu, " "),
559
- dataSelectorId: "".concat(dataSelectorId, "_moreIcon")
560
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
561
- className: "".concat(_semanticButtonModule["default"].buttonReset, " ").concat(moreButtonClass, " ").concat(isPopupOpen ? moreButtonActiveClass : ''),
562
- align: "both",
563
- onClick: togglePopupLocal,
564
- dataId: "moreTabs",
565
- eleRef: getTargetRef
566
- }, MoreButtonProps, {
567
- "aria-label": "MoreTabs",
568
- role: "link",
569
- tagName: "button"
570
- }), /*#__PURE__*/_react["default"].createElement(_icons.Icon, {
571
- name: iconName,
572
- size: iconSize
573
- })), isPopupOpen && /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
574
- query: responsiveFunc,
575
- responsiveId: "Helmet"
576
- }, function (_ref4) {
577
- var tabletMode = _ref4.tabletMode;
578
- return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], _extends({
579
- isActive: isPopupReady,
580
- isAnimate: true,
581
- size: "medium",
582
- customClass: {
583
- customDropBoxWrap: "".concat(moreContainerClass, " ").concat(popupClass)
584
- },
585
- boxPosition: position,
586
- getRef: getContainerRef,
587
- isBoxPaddingNeed: false,
588
- isArrow: false,
589
- isAbsolutePositioningNeeded: isAbsolutePositioningNeeded,
590
- isRestrictScroll: isRestrictScroll,
591
- positionsOffset: positionsOffset,
592
- targetOffset: targetOffset
593
- }, DropBoxProps, {
594
- isResponsivePadding: true,
595
- needFocusScope: true,
596
- onClose: togglePopupLocal,
597
- onClick: removeClose,
598
- dataId: "".concat(dataId, "_dropbox")
599
- }), getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(props), hasSearch ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
600
- className: _v1TabsModule["default"].search
601
- }, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], _extends({
602
- placeHolder: placeHolderText,
603
- onChange: handleChange,
604
- value: searchValue,
605
- onClear: handleSearchValueClear,
606
- size: searchBoxSize,
607
- customProps: {
608
- TextBoxProps: {
609
- 'data-a11y-autofocus': true
610
- }
611
- },
612
- dataId: "".concat(dataId, "_search"),
613
- autoComplete: false,
614
- name: "search"
615
- }, TextBoxIconProps))) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
616
- flexible: true,
617
- shrink: true,
618
- scroll: "vertical",
619
- className: "".concat(_v1TabsModule["default"].listWrapper, " ").concat(tabletMode ? '' : _v1TabsModule["default"].menuBox, " ").concat(moreBoxClass),
620
- onScroll: onScrollLocal,
621
- dataId: "".concat(dataId, "_Tabs")
622
- }, moreTabsListItems.length ? moreTabsListItems.map(function (data) {
623
- var text = data.text,
624
- id = data.id,
625
- title = data.title,
626
- isLink = data.isLink,
627
- href = data.href,
628
- children = data.children,
629
- dataId = data.dataId;
630
- var value = text ? text : showTitleInMoreOptions ? title : null;
631
- return /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
632
- key: id,
633
- value: value,
634
- onClick: moreTabSelect,
635
- id: id,
636
- title: title || text,
637
- isLink: isLink,
638
- href: href,
639
- autoHover: true,
640
- customClass: {
641
- customListItem: menuItemClass
642
- },
643
- target: "self",
644
- dataId: "".concat(dataId, "_Tab")
645
- }, ListItemProps), !showTitleInMoreOptions ? children : null);
646
- }) : renderEmptyState()));
647
- })) : null);
648
- }
649
-
650
- var _responsiveTab = responsiveTab(totalDimension, tabDimensions),
651
- mainTabs = _responsiveTab.mainTabs,
652
- moreTabs = _responsiveTab.moreTabs,
653
- otherTabs = _responsiveTab.otherTabs;
654
-
655
- var appearanceClass = (0, _Common.cs)([_v1TabsModule["default"][type], needBorder && _v1TabsModule["default"]["".concat(type, "_border")], needPadding && _v1TabsModule["default"]["".concat(type, "_padding")]]);
656
- var tabsClass = (0, _Common.cs)([_v1TabsModule["default"].tab, className, needAppearance && appearanceClass]);
657
- var hlClass = (0, _Common.cs)([_v1TabsModule["default"].highlight, highlightClass, isAnimate && _v1TabsModule["default"].lineAnimate]);
658
- return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
659
- className: containerClass,
660
- dataSelectorId: dataSelectorId
661
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
662
- alignBox: align === 'vertical' ? 'row' : 'column',
663
- className: tabsClass,
664
- style: style
665
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
666
- eleRef: getTabsRef,
667
- flexible: true
668
- }, renderVirtualTabs && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
669
- alignBox: align === 'vertical' ? 'row' : 'column',
670
- className: _v1TabsModule["default"].hidden
671
- }, renderTabs(children, [], true)), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
672
- alignBox: align === 'vertical' ? 'row' : 'column'
673
- }, renderTabs(mainTabs, moreTabs, false))), otherTabs.length ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, otherTabs) : null, isAnimate && needTabBorder && needAppearance && /*#__PURE__*/_react["default"].createElement("div", {
674
- className: hlClass,
675
- ref: getHighlightRef,
676
- "data-id": dataId,
677
- "data-test-id": dataId
678
- })));
679
- };
680
-
681
- Tabs.propTypes = _propTypes.Tabs_propTypes;
682
- Tabs.defaultProps = _objectSpread(_objectSpread({}, _defaultProps.Tabs_defaultProps), {}, {
683
- childType: _Tab["default"]
684
- });
685
-
686
- var _default = (0, _Popup["default"])(Tabs);
687
-
688
- exports["default"] = _default;