@zohodesk/components 1.0.0-temp-163 → 1.0.0-temp-165

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 (446) hide show
  1. package/README.md +25 -0
  2. package/es/Accordion/Accordion.js +8 -3
  3. package/es/Accordion/AccordionItem.js +5 -2
  4. package/es/Animation/Animation.js +3 -3
  5. package/es/AppContainer/AppContainer.js +27 -10
  6. package/es/AppContainer/AppContainer.module.css +2 -2
  7. package/es/AppContainer/props/defaultProps.js +2 -1
  8. package/es/AppContainer/props/propTypes.js +1 -0
  9. package/es/Avatar/Avatar.js +26 -11
  10. package/es/Avatar/Avatar.module.css +18 -18
  11. package/es/AvatarTeam/AvatarTeam.js +4 -3
  12. package/es/AvatarTeam/AvatarTeam.module.css +35 -35
  13. package/es/Button/Button.js +5 -3
  14. package/es/Button/css/Button.module.css +70 -70
  15. package/es/Buttongroup/Buttongroup.js +4 -3
  16. package/es/Buttongroup/Buttongroup.module.css +14 -15
  17. package/es/Card/Card.js +21 -10
  18. package/es/CheckBox/CheckBox.js +5 -3
  19. package/es/CheckBox/CheckBox.module.css +15 -15
  20. package/es/DateTime/CalendarView.js +33 -20
  21. package/es/DateTime/DateTime.js +78 -11
  22. package/es/DateTime/DateTime.module.css +39 -39
  23. package/es/DateTime/DateTimePopupFooter.js +4 -2
  24. package/es/DateTime/DateTimePopupHeader.js +8 -2
  25. package/es/DateTime/DateWidget.js +100 -35
  26. package/es/DateTime/DateWidget.module.css +5 -5
  27. package/es/DateTime/DaysRow.js +4 -2
  28. package/es/DateTime/Time.js +10 -2
  29. package/es/DateTime/YearView.js +28 -4
  30. package/es/DateTime/YearView.module.css +15 -15
  31. package/es/DateTime/__tests__/CalendarView.spec.js +1 -0
  32. package/es/DateTime/__tests__/DateTime.spec.js +1 -0
  33. package/es/DateTime/__tests__/DateWidget.spec.js +2 -3
  34. package/es/DateTime/common.js +3 -0
  35. package/es/DateTime/constants.js +1 -0
  36. package/es/DateTime/dateFormatUtils/dateFormat.js +63 -30
  37. package/es/DateTime/dateFormatUtils/dateFormats.js +0 -1
  38. package/es/DateTime/dateFormatUtils/dayChange.js +13 -4
  39. package/es/DateTime/dateFormatUtils/index.js +32 -2
  40. package/es/DateTime/dateFormatUtils/monthChange.js +8 -0
  41. package/es/DateTime/dateFormatUtils/timeChange.js +22 -6
  42. package/es/DateTime/dateFormatUtils/yearChange.js +11 -2
  43. package/es/DateTime/objectUtils.js +14 -20
  44. package/es/DateTime/props/defaultProps.js +2 -1
  45. package/es/DateTime/typeChecker.js +3 -0
  46. package/es/DateTime/validator.js +58 -6
  47. package/es/DropBox/DropBox.js +9 -5
  48. package/es/DropBox/DropBoxElement/DropBoxElement.js +18 -6
  49. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +85 -79
  50. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +6 -4
  51. package/es/DropBox/DropBoxElement/props/propTypes.js +1 -1
  52. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +3 -0
  53. package/es/DropBox/__tests__/DropBox.spec.js +2 -2
  54. package/es/DropBox/css/DropBox.module.css +6 -6
  55. package/es/DropBox/props/defaultProps.js +1 -2
  56. package/es/DropBox/props/propTypes.js +1 -2
  57. package/es/DropDown/DropDown.js +10 -5
  58. package/es/DropDown/DropDown.module.css +2 -2
  59. package/es/DropDown/DropDownHeading.js +5 -5
  60. package/es/DropDown/DropDownHeading.module.css +6 -6
  61. package/es/DropDown/DropDownItem.js +8 -1
  62. package/es/DropDown/DropDownItem.module.css +12 -12
  63. package/es/DropDown/DropDownSearch.js +4 -0
  64. package/es/DropDown/DropDownSearch.module.css +3 -3
  65. package/es/DropDown/DropDownSeparator.js +1 -0
  66. package/es/DropDown/DropDownSeparator.module.css +2 -2
  67. package/es/DropDown/__tests__/DropDown.spec.js +1 -2
  68. package/es/Heading/Heading.js +3 -3
  69. package/es/Heading/Heading.module.css +2 -2
  70. package/es/Label/Label.js +10 -5
  71. package/es/Label/Label.module.css +5 -5
  72. package/es/Label/props/propTypes.js +4 -1
  73. package/es/Layout/Box.js +17 -3
  74. package/es/Layout/Container.js +16 -4
  75. package/es/Layout/Layout.module.css +15 -15
  76. package/es/Layout/index.js +1 -2
  77. package/es/Layout/props/defaultProps.js +2 -0
  78. package/es/Layout/props/propTypes.js +2 -0
  79. package/es/Layout/utils.js +5 -1
  80. package/es/ListItem/ListContainer.js +8 -3
  81. package/es/ListItem/ListItem.js +9 -3
  82. package/es/ListItem/ListItem.module.css +38 -38
  83. package/es/ListItem/ListItemWithAvatar.js +9 -3
  84. package/es/ListItem/ListItemWithCheckBox.js +7 -2
  85. package/es/ListItem/ListItemWithIcon.js +8 -3
  86. package/es/ListItem/ListItemWithRadio.js +7 -3
  87. package/es/Modal/Modal.js +28 -11
  88. package/es/MultiSelect/AdvancedGroupMultiSelect.js +90 -13
  89. package/es/MultiSelect/AdvancedMultiSelect.js +33 -9
  90. package/es/MultiSelect/EmptyState.js +6 -0
  91. package/es/MultiSelect/MultiSelect.js +100 -32
  92. package/es/MultiSelect/MultiSelect.module.css +31 -31
  93. package/es/MultiSelect/MultiSelectHeader.js +3 -0
  94. package/es/MultiSelect/MultiSelectWithAvatar.js +13 -6
  95. package/es/MultiSelect/SelectedOptions.js +6 -3
  96. package/es/MultiSelect/SelectedOptions.module.css +5 -5
  97. package/es/MultiSelect/Suggestions.js +7 -3
  98. package/es/MultiSelect/__tests__/MultiSelect.spec.js +4 -6
  99. package/es/MultiSelect/props/propTypes.js +2 -0
  100. package/es/PopOver/PopOver.js +18 -2
  101. package/es/PopOver/__tests__/PopOver.spec.js +2 -1
  102. package/es/Popup/Popup.js +77 -27
  103. package/es/Popup/__tests__/Popup.spec.js +17 -5
  104. package/es/Popup/viewPort.js +16 -4
  105. package/es/Provider/IdProvider.js +10 -5
  106. package/es/Provider/LibraryContext.js +6 -4
  107. package/es/Provider/NumberGenerator/NumberGenerator.js +21 -7
  108. package/es/Provider/ZindexProvider.js +9 -2
  109. package/es/Radio/Radio.js +4 -2
  110. package/es/Radio/Radio.module.css +9 -9
  111. package/es/Responsive/CustomResponsive.js +30 -18
  112. package/es/Responsive/RefWrapper.js +6 -7
  113. package/es/Responsive/ResizeComponent.js +37 -39
  114. package/es/Responsive/ResizeObserver.js +26 -6
  115. package/es/Responsive/Responsive.js +34 -20
  116. package/es/Responsive/index.js +1 -3
  117. package/es/Responsive/sizeObservers.js +28 -7
  118. package/es/Responsive/utils/index.js +7 -5
  119. package/es/Responsive/utils/shallowCompare.js +7 -2
  120. package/es/Responsive/windowResizeObserver.js +7 -0
  121. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -0
  122. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  123. package/es/Ribbon/Ribbon.js +4 -2
  124. package/es/Ribbon/Ribbon.module.css +46 -48
  125. package/es/RippleEffect/RippleEffect.js +1 -3
  126. package/es/Select/GroupSelect.js +59 -14
  127. package/es/Select/Select.js +81 -34
  128. package/es/Select/Select.module.css +23 -23
  129. package/es/Select/SelectWithAvatar.js +19 -4
  130. package/es/Select/SelectWithIcon.js +48 -6
  131. package/es/Select/__tests__/Select.spec.js +6 -8
  132. package/es/Select/props/propTypes.js +1 -0
  133. package/es/Stencils/Stencils.js +3 -3
  134. package/es/Stencils/Stencils.module.css +11 -11
  135. package/es/Switch/Switch.js +6 -3
  136. package/es/Switch/Switch.module.css +23 -23
  137. package/es/Tab/Tab.js +4 -4
  138. package/es/Tab/Tab.module.css +14 -14
  139. package/es/Tab/TabContent.js +1 -0
  140. package/es/Tab/TabContentWrapper.js +2 -0
  141. package/es/Tab/TabWrapper.js +5 -2
  142. package/es/Tab/Tabs.js +63 -28
  143. package/es/Tab/Tabs.module.css +24 -42
  144. package/es/Tab/__tests__/Tab.spec.js +1 -3
  145. package/es/Tab/__tests__/TabWrapper.spec.js +1 -0
  146. package/es/Tag/Tag.js +7 -3
  147. package/es/Tag/Tag.module.css +25 -25
  148. package/es/TextBox/TextBox.js +16 -3
  149. package/es/TextBox/TextBox.module.css +9 -9
  150. package/es/TextBox/__tests__/TextBox.spec.js +1 -4
  151. package/es/TextBoxIcon/TextBoxIcon.js +9 -2
  152. package/es/TextBoxIcon/TextBoxIcon.module.css +7 -7
  153. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +2 -7
  154. package/es/Textarea/Textarea.js +13 -3
  155. package/es/Textarea/Textarea.module.css +21 -21
  156. package/es/Textarea/__tests__/Textarea.spec.js +2 -2
  157. package/es/Tooltip/Tooltip.js +60 -15
  158. package/es/Tooltip/Tooltip.module.css +5 -5
  159. package/es/Tooltip/__tests__/Tooltip.spec.js +5 -0
  160. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -2
  161. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +7 -5
  162. package/es/common/animation.module.css +8 -8
  163. package/es/common/avatarsizes.module.css +16 -16
  164. package/es/common/basicReset.module.css +3 -3
  165. package/es/common/common.module.css +24 -24
  166. package/es/common/customscroll.module.css +2 -2
  167. package/es/deprecated/AdvancedMultiSelect.module.css +18 -18
  168. package/es/deprecated/PortalLayer/PortalLayer.js +25 -20
  169. package/es/semantic/Button/Button.js +4 -2
  170. package/es/semantic/Button/semanticButton.module.css +1 -1
  171. package/es/utils/Common.js +58 -9
  172. package/es/utils/ContextOptimizer.js +4 -5
  173. package/es/utils/__tests__/debounce.spec.js +2 -2
  174. package/es/utils/constructFullName.js +2 -0
  175. package/es/utils/css/compileClassNames.js +5 -0
  176. package/es/utils/css/mergeStyle.js +7 -6
  177. package/es/utils/css/utils.js +1 -0
  178. package/es/utils/datetime/GMTZones.js +48 -0
  179. package/es/utils/datetime/common.js +31 -7
  180. package/es/utils/debounce.js +5 -1
  181. package/es/utils/dropDownUtils.js +68 -11
  182. package/es/utils/getInitial.js +4 -0
  183. package/es/utils/shallowEqual.js +6 -0
  184. package/lib/Accordion/Accordion.js +43 -18
  185. package/lib/Accordion/AccordionItem.js +41 -18
  186. package/lib/Accordion/__tests__/Accordion.spec.js +3 -0
  187. package/lib/Accordion/index.js +3 -0
  188. package/lib/Accordion/props/propTypes.js +3 -0
  189. package/lib/Animation/Animation.js +38 -18
  190. package/lib/Animation/__tests__/Animation.spec.js +11 -7
  191. package/lib/Animation/props/propTypes.js +3 -0
  192. package/lib/AppContainer/AppContainer.js +66 -26
  193. package/lib/AppContainer/AppContainer.module.css +2 -2
  194. package/lib/AppContainer/props/defaultProps.js +2 -1
  195. package/lib/AppContainer/props/propTypes.js +4 -0
  196. package/lib/Avatar/Avatar.js +81 -38
  197. package/lib/Avatar/Avatar.module.css +18 -18
  198. package/lib/Avatar/__tests__/Avatar.spec.js +44 -0
  199. package/lib/Avatar/props/propTypes.js +3 -0
  200. package/lib/AvatarTeam/AvatarTeam.js +53 -30
  201. package/lib/AvatarTeam/AvatarTeam.module.css +35 -35
  202. package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +13 -0
  203. package/lib/AvatarTeam/props/propTypes.js +3 -0
  204. package/lib/Button/Button.js +32 -20
  205. package/lib/Button/css/Button.module.css +70 -70
  206. package/lib/Button/css/cssJSLogic.js +18 -17
  207. package/lib/Button/index.js +3 -0
  208. package/lib/Button/props/defaultProps.js +2 -0
  209. package/lib/Button/props/propTypes.js +3 -0
  210. package/lib/Buttongroup/Buttongroup.js +33 -12
  211. package/lib/Buttongroup/Buttongroup.module.css +14 -15
  212. package/lib/Buttongroup/__test__/Buttongroup.spec.js +10 -0
  213. package/lib/Buttongroup/props/propTypes.js +3 -0
  214. package/lib/Card/Card.js +102 -46
  215. package/lib/Card/__tests__/Card.spec.js +10 -1
  216. package/lib/Card/index.js +4 -0
  217. package/lib/Card/props/propTypes.js +3 -0
  218. package/lib/CheckBox/CheckBox.js +71 -47
  219. package/lib/CheckBox/CheckBox.module.css +15 -15
  220. package/lib/CheckBox/__tests__/CheckBox.spec.js +3 -0
  221. package/lib/CheckBox/props/propTypes.js +3 -0
  222. package/lib/DateTime/CalendarView.js +83 -42
  223. package/lib/DateTime/DateTime.js +249 -159
  224. package/lib/DateTime/DateTime.module.css +39 -39
  225. package/lib/DateTime/DateTimePopupFooter.js +31 -8
  226. package/lib/DateTime/DateTimePopupHeader.js +48 -17
  227. package/lib/DateTime/DateWidget.js +354 -250
  228. package/lib/DateTime/DateWidget.module.css +5 -5
  229. package/lib/DateTime/DaysRow.js +27 -5
  230. package/lib/DateTime/Time.js +73 -32
  231. package/lib/DateTime/YearView.js +77 -28
  232. package/lib/DateTime/YearView.module.css +15 -15
  233. package/lib/DateTime/__tests__/CalendarView.spec.js +13 -5
  234. package/lib/DateTime/__tests__/DateTime.spec.js +51 -37
  235. package/lib/DateTime/__tests__/DateWidget.spec.js +10 -8
  236. package/lib/DateTime/common.js +6 -0
  237. package/lib/DateTime/constants.js +1 -0
  238. package/lib/DateTime/dateFormatUtils/dateFormat.js +184 -122
  239. package/lib/DateTime/dateFormatUtils/dateFormats.js +0 -1
  240. package/lib/DateTime/dateFormatUtils/dayChange.js +14 -7
  241. package/lib/DateTime/dateFormatUtils/index.js +74 -16
  242. package/lib/DateTime/dateFormatUtils/monthChange.js +19 -9
  243. package/lib/DateTime/dateFormatUtils/timeChange.js +54 -22
  244. package/lib/DateTime/dateFormatUtils/yearChange.js +22 -11
  245. package/lib/DateTime/index.js +2 -0
  246. package/lib/DateTime/objectUtils.js +24 -20
  247. package/lib/DateTime/props/defaultProps.js +2 -1
  248. package/lib/DateTime/props/propTypes.js +11 -1
  249. package/lib/DateTime/typeChecker.js +4 -0
  250. package/lib/DateTime/validator.js +73 -10
  251. package/lib/DropBox/DropBox.js +36 -12
  252. package/lib/DropBox/DropBoxElement/DropBoxElement.js +68 -42
  253. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +85 -79
  254. package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +43 -34
  255. package/lib/DropBox/DropBoxElement/props/propTypes.js +4 -1
  256. package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +14 -9
  257. package/lib/DropBox/__tests__/DropBox.spec.js +8 -4
  258. package/lib/DropBox/css/DropBox.module.css +6 -6
  259. package/lib/DropBox/css/cssJSLogic.js +3 -1
  260. package/lib/DropBox/props/defaultProps.js +8 -4
  261. package/lib/DropBox/props/propTypes.js +10 -4
  262. package/lib/DropDown/DropDown.js +54 -9
  263. package/lib/DropDown/DropDown.module.css +2 -2
  264. package/lib/DropDown/DropDownHeading.js +40 -20
  265. package/lib/DropDown/DropDownHeading.module.css +6 -6
  266. package/lib/DropDown/DropDownItem.js +44 -21
  267. package/lib/DropDown/DropDownItem.module.css +12 -12
  268. package/lib/DropDown/DropDownSearch.js +40 -17
  269. package/lib/DropDown/DropDownSearch.module.css +3 -3
  270. package/lib/DropDown/DropDownSeparator.js +24 -4
  271. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  272. package/lib/DropDown/__tests__/DropDown.spec.js +15 -9
  273. package/lib/DropDown/__tests__/DropDownItem.spec.js +9 -4
  274. package/lib/DropDown/__tests__/DropDownSearch.spec.js +3 -0
  275. package/lib/DropDown/index.js +9 -0
  276. package/lib/DropDown/props/propTypes.js +6 -4
  277. package/lib/Heading/Heading.js +39 -16
  278. package/lib/Heading/Heading.module.css +2 -2
  279. package/lib/Heading/props/propTypes.js +3 -0
  280. package/lib/Label/Label.js +45 -20
  281. package/lib/Label/Label.module.css +5 -5
  282. package/lib/Label/__tests__/Label.spec.js +14 -1
  283. package/lib/Label/props/propTypes.js +7 -1
  284. package/lib/Layout/Box.js +39 -15
  285. package/lib/Layout/Container.js +37 -14
  286. package/lib/Layout/Layout.module.css +15 -15
  287. package/lib/Layout/__tests__/Box.spec.js +65 -49
  288. package/lib/Layout/__tests__/Container.spec.js +67 -50
  289. package/lib/Layout/index.js +3 -0
  290. package/lib/Layout/props/defaultProps.js +2 -0
  291. package/lib/Layout/props/propTypes.js +5 -0
  292. package/lib/Layout/utils.js +15 -1
  293. package/lib/ListItem/ListContainer.js +48 -27
  294. package/lib/ListItem/ListItem.js +69 -45
  295. package/lib/ListItem/ListItem.module.css +38 -38
  296. package/lib/ListItem/ListItemWithAvatar.js +75 -48
  297. package/lib/ListItem/ListItemWithCheckBox.js +64 -39
  298. package/lib/ListItem/ListItemWithIcon.js +68 -44
  299. package/lib/ListItem/ListItemWithRadio.js +65 -41
  300. package/lib/ListItem/index.js +7 -0
  301. package/lib/ListItem/props/propTypes.js +6 -4
  302. package/lib/Modal/Modal.js +45 -10
  303. package/lib/Modal/props/propTypes.js +3 -0
  304. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +295 -166
  305. package/lib/MultiSelect/AdvancedMultiSelect.js +203 -125
  306. package/lib/MultiSelect/EmptyState.js +49 -24
  307. package/lib/MultiSelect/MultiSelect.js +324 -206
  308. package/lib/MultiSelect/MultiSelect.module.css +31 -31
  309. package/lib/MultiSelect/MultiSelectHeader.js +30 -8
  310. package/lib/MultiSelect/MultiSelectWithAvatar.js +106 -63
  311. package/lib/MultiSelect/SelectedOptions.js +43 -17
  312. package/lib/MultiSelect/SelectedOptions.module.css +5 -5
  313. package/lib/MultiSelect/Suggestions.js +64 -32
  314. package/lib/MultiSelect/__tests__/MultiSelect.spec.js +86 -75
  315. package/lib/MultiSelect/index.js +5 -0
  316. package/lib/MultiSelect/props/defaultProps.js +2 -0
  317. package/lib/MultiSelect/props/propTypes.js +5 -0
  318. package/lib/PopOver/PopOver.js +95 -49
  319. package/lib/PopOver/__tests__/PopOver.spec.js +4 -1
  320. package/lib/PopOver/index.js +4 -0
  321. package/lib/PopOver/props/propTypes.js +3 -0
  322. package/lib/Popup/Popup.js +158 -84
  323. package/lib/Popup/__tests__/Popup.spec.js +43 -8
  324. package/lib/Popup/viewPort.js +28 -14
  325. package/lib/Provider/AvatarSize.js +4 -0
  326. package/lib/Provider/Config.js +2 -0
  327. package/lib/Provider/CssProvider.js +4 -0
  328. package/lib/Provider/IdProvider.js +17 -6
  329. package/lib/Provider/LibraryContext.js +35 -15
  330. package/lib/Provider/LibraryContextInit.js +4 -0
  331. package/lib/Provider/NumberGenerator/NumberGenerator.js +44 -15
  332. package/lib/Provider/ZindexProvider.js +15 -3
  333. package/lib/Provider/index.js +5 -0
  334. package/lib/Radio/Radio.js +61 -38
  335. package/lib/Radio/Radio.module.css +9 -9
  336. package/lib/Radio/__tests__/Radiospec.js +9 -5
  337. package/lib/Radio/props/propTypes.js +3 -0
  338. package/lib/Responsive/CustomResponsive.js +73 -29
  339. package/lib/Responsive/RefWrapper.js +17 -11
  340. package/lib/Responsive/ResizeComponent.js +63 -49
  341. package/lib/Responsive/ResizeObserver.js +24 -10
  342. package/lib/Responsive/Responsive.js +80 -30
  343. package/lib/Responsive/index.js +4 -0
  344. package/lib/Responsive/props/propTypes.js +3 -0
  345. package/lib/Responsive/sizeObservers.js +53 -17
  346. package/lib/Responsive/utils/index.js +11 -3
  347. package/lib/Responsive/utils/shallowCompare.js +11 -2
  348. package/lib/Responsive/windowResizeObserver.js +8 -0
  349. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +45 -17
  350. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  351. package/lib/ResponsiveDropBox/props/propTypes.js +3 -0
  352. package/lib/Ribbon/Ribbon.js +34 -13
  353. package/lib/Ribbon/Ribbon.module.css +46 -48
  354. package/lib/Ribbon/__tests__/Ribbon.spec.js +22 -0
  355. package/lib/Ribbon/props/propTypes.js +3 -0
  356. package/lib/RippleEffect/RippleEffect.js +18 -10
  357. package/lib/RippleEffect/props/propTypes.js +3 -0
  358. package/lib/Select/GroupSelect.js +230 -130
  359. package/lib/Select/Select.js +292 -210
  360. package/lib/Select/Select.module.css +23 -23
  361. package/lib/Select/SelectWithAvatar.js +104 -56
  362. package/lib/Select/SelectWithIcon.js +134 -77
  363. package/lib/Select/__tests__/Select.spec.js +133 -91
  364. package/lib/Select/index.js +5 -0
  365. package/lib/Select/props/defaultProps.js +5 -4
  366. package/lib/Select/props/propTypes.js +4 -0
  367. package/lib/Stencils/Stencils.js +29 -10
  368. package/lib/Stencils/Stencils.module.css +11 -11
  369. package/lib/Stencils/__tests__/Stencils.spec.js +12 -0
  370. package/lib/Stencils/props/propTypes.js +3 -0
  371. package/lib/Switch/Switch.js +58 -34
  372. package/lib/Switch/Switch.module.css +23 -23
  373. package/lib/Switch/props/propTypes.js +3 -0
  374. package/lib/Tab/Tab.js +40 -27
  375. package/lib/Tab/Tab.module.css +14 -14
  376. package/lib/Tab/TabContent.js +12 -5
  377. package/lib/Tab/TabContentWrapper.js +13 -6
  378. package/lib/Tab/TabWrapper.js +37 -19
  379. package/lib/Tab/Tabs.js +191 -121
  380. package/lib/Tab/Tabs.module.css +24 -42
  381. package/lib/Tab/__tests__/Tab.spec.js +67 -58
  382. package/lib/Tab/__tests__/TabContent.spec.js +10 -6
  383. package/lib/Tab/__tests__/TabContentWrapper.spec.js +28 -20
  384. package/lib/Tab/__tests__/TabWrapper.spec.js +12 -0
  385. package/lib/Tab/__tests__/Tabs.spec.js +53 -39
  386. package/lib/Tab/index.js +6 -0
  387. package/lib/Tab/props/propTypes.js +3 -0
  388. package/lib/Tag/Tag.js +73 -43
  389. package/lib/Tag/Tag.module.css +25 -25
  390. package/lib/Tag/__tests__/Tag.spec.js +14 -8
  391. package/lib/Tag/props/propTypes.js +3 -0
  392. package/lib/TextBox/TextBox.js +86 -59
  393. package/lib/TextBox/TextBox.module.css +9 -9
  394. package/lib/TextBox/__tests__/TextBox.spec.js +14 -4
  395. package/lib/TextBox/props/propTypes.js +6 -4
  396. package/lib/TextBoxIcon/TextBoxIcon.js +79 -52
  397. package/lib/TextBoxIcon/TextBoxIcon.module.css +7 -7
  398. package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +14 -5
  399. package/lib/TextBoxIcon/props/propTypes.js +3 -0
  400. package/lib/Textarea/Textarea.js +55 -29
  401. package/lib/Textarea/Textarea.module.css +21 -21
  402. package/lib/Textarea/__tests__/Textarea.spec.js +14 -2
  403. package/lib/Textarea/props/propTypes.js +3 -0
  404. package/lib/Tooltip/Tooltip.js +96 -32
  405. package/lib/Tooltip/Tooltip.module.css +5 -5
  406. package/lib/Tooltip/__tests__/Tooltip.spec.js +24 -3
  407. package/lib/Tooltip/props/propTypes.js +3 -0
  408. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +40 -16
  409. package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +3 -0
  410. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +53 -25
  411. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +3 -0
  412. package/lib/VelocityAnimation/index.js +3 -0
  413. package/lib/common/animation.module.css +8 -8
  414. package/lib/common/avatarsizes.module.css +16 -16
  415. package/lib/common/basicReset.module.css +3 -3
  416. package/lib/common/common.module.css +24 -24
  417. package/lib/common/customscroll.module.css +2 -2
  418. package/lib/css.js +40 -0
  419. package/lib/deprecated/AdvancedMultiSelect.module.css +18 -18
  420. package/lib/deprecated/PortalLayer/PortalLayer.js +46 -23
  421. package/lib/deprecated/PortalLayer/props/propTypes.js +3 -0
  422. package/lib/index.js +57 -0
  423. package/lib/semantic/Button/Button.js +43 -22
  424. package/lib/semantic/Button/props/propTypes.js +3 -0
  425. package/lib/semantic/Button/semanticButton.module.css +1 -1
  426. package/lib/semantic/index.js +2 -0
  427. package/lib/utils/Common.js +117 -19
  428. package/lib/utils/ContextOptimizer.js +16 -10
  429. package/lib/utils/__tests__/constructFullName.spec.js +1 -0
  430. package/lib/utils/__tests__/debounce.spec.js +3 -2
  431. package/lib/utils/__tests__/getInitial.spec.js +1 -0
  432. package/lib/utils/constructFullName.js +13 -4
  433. package/lib/utils/css/compileClassNames.js +6 -0
  434. package/lib/utils/css/mergeStyle.js +10 -7
  435. package/lib/utils/css/utils.js +8 -0
  436. package/lib/utils/datetime/GMTZones.js +55 -0
  437. package/lib/utils/datetime/common.js +52 -7
  438. package/lib/utils/debounce.js +6 -1
  439. package/lib/utils/dropDownUtils.js +175 -59
  440. package/lib/utils/dummyFunction.js +2 -0
  441. package/lib/utils/getHTMLFontSize.js +1 -0
  442. package/lib/utils/getInitial.js +6 -0
  443. package/lib/utils/index.js +4 -0
  444. package/lib/utils/scrollTo.js +2 -0
  445. package/lib/utils/shallowEqual.js +8 -0
  446. package/package.json +15 -24
@@ -5,15 +5,15 @@
5
5
  cursor: pointer;
6
6
  }
7
7
  .vertical {
8
- height: 100%;
8
+ height: 100% ;
9
9
  }
10
10
  .horizontal {
11
- width: 100%;
12
- max-width: 100%;
11
+ width: 100% ;
12
+ max-width: 100% ;
13
13
  }
14
14
  .textContainer,
15
15
  .tabText {
16
- max-width: inherit;
16
+ max-width: inherit ;
17
17
  }
18
18
  .tabText {
19
19
  composes: dotted from '../common/common.module.css';
@@ -31,9 +31,9 @@
31
31
  transition: all var(--zd_transition2);
32
32
  }
33
33
  .alpha {
34
- font-size: 11px;
34
+ font-size: var(--zd_font_size11) ;
35
35
  line-height: var(--zd_size33);
36
- padding: 0 18px;
36
+ padding: 0 var(--zd_size18) ;
37
37
  }
38
38
  .tabAlpha {
39
39
  composes: alpha;
@@ -54,16 +54,16 @@
54
54
  border-color: var(--zdt_tab_delta_active_border);
55
55
  }
56
56
  .beta {
57
- font-size: 14px;
57
+ font-size: var(--zd_font_size14) ;
58
58
  line-height: var(--zd_size60);
59
59
  text-transform: capitalize;
60
- padding: 0 4px;
60
+ padding: 0 var(--zd_size4) ;
61
61
  }
62
62
  [dir=ltr] .beta {
63
- margin-right: 40px;
63
+ margin-right: var(--zd_size40) ;
64
64
  }
65
65
  [dir=rtl] .beta {
66
- margin-left: 40px;
66
+ margin-left: var(--zd_size40) ;
67
67
  }
68
68
  .tabBeta {
69
69
  composes: beta;
@@ -77,15 +77,15 @@
77
77
  color: var(--zdt_tab_alpha_hover_text);
78
78
  }
79
79
  .delta {
80
- font-size: 11px;
80
+ font-size: var(--zd_font_size11) ;
81
81
  line-height: var(--zd_size33);
82
- padding: 0 4px;
82
+ padding: 0 var(--zd_size4) ;
83
83
  }
84
84
  [dir=ltr] .delta {
85
- margin-right: 10px;
85
+ margin-right: var(--zd_size10) ;
86
86
  }
87
87
  [dir=rtl] .delta {
88
- margin-left: 10px;
88
+ margin-left: var(--zd_size10) ;
89
89
  }
90
90
  .tabDelta {
91
91
  composes: delta;
@@ -24,6 +24,7 @@ const TabContent = _ref => {
24
24
  dataSelectorId: dataSelectorId
25
25
  }, children);
26
26
  };
27
+
27
28
  TabContent.defaultProps = TabContent_defaultProps;
28
29
  TabContent.propTypes = TabContent_propTypes;
29
30
  export default TabContent;
@@ -3,6 +3,7 @@ import { TabContentWrapper_defaultProps } from './props/defaultProps';
3
3
  import { TabContentWrapper_propTypes } from './props/propTypes';
4
4
  import { Box } from '../Layout';
5
5
  /* eslint-disable react/forbid-component-props */
6
+
6
7
  const TabContentWrapper = _ref => {
7
8
  let {
8
9
  style,
@@ -22,6 +23,7 @@ const TabContentWrapper = _ref => {
22
23
  dataSelectorId: dataSelectorId
23
24
  }, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
24
25
  };
26
+
25
27
  TabContentWrapper.defaultProps = TabContentWrapper_defaultProps;
26
28
  TabContentWrapper.propTypes = TabContentWrapper_propTypes;
27
29
  export default TabContentWrapper;
@@ -1,8 +1,10 @@
1
1
  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); }
2
+
2
3
  import React, { useState, useCallback } from 'react';
3
4
  import { TabWrapper_defaultProps } from './props/defaultProps';
4
5
  import { TabWrapper_propTypes } from './props/propTypes';
5
6
  import { Container } from '../Layout';
7
+
6
8
  function TabWrapper(_ref) {
7
9
  let {
8
10
  defaultTab,
@@ -24,6 +26,7 @@ function TabWrapper(_ref) {
24
26
  if (!hookToDisableInternalState) {
25
27
  setSelected(id);
26
28
  }
29
+
27
30
  onSelect && onSelect(id);
28
31
  }, [hookToDisableInternalState, onSelect]);
29
32
  return /*#__PURE__*/React.createElement(Container, {
@@ -33,8 +36,7 @@ function TabWrapper(_ref) {
33
36
  }, React.Children.map(children, child => {
34
37
  let TabsChild = child.type;
35
38
  let selectedTab = hookToDisableInternalState ? defaultTab : selectedTabInternal;
36
- return /*#__PURE__*/React.createElement(TabsChild
37
- // eslint-disable-next-line react/no-array-index-key
39
+ return /*#__PURE__*/React.createElement(TabsChild // eslint-disable-next-line react/no-array-index-key
38
40
  , _extends({}, child.props, {
39
41
  selectedTab: selectedTab,
40
42
  onSelect: setSelectedTab,
@@ -49,6 +51,7 @@ function TabWrapper(_ref) {
49
51
  }));
50
52
  }));
51
53
  }
54
+
52
55
  TabWrapper.propTypes = TabWrapper_propTypes;
53
56
  TabWrapper.defaultProps = TabWrapper_defaultProps;
54
57
  export default TabWrapper;
package/es/Tab/Tabs.js CHANGED
@@ -1,5 +1,7 @@
1
1
  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); }
2
+
2
3
  /* eslint-disable react/forbid-component-props */
4
+
3
5
  /* eslint css-modules/no-unused-class: [2, {
4
6
  markAsUsed: [
5
7
  'hidden','alpha','gamma','beta','delta','special','text','maxWidth','widgetList','menuContainer','border','tabText','block','tabAlpha','alphaActive','gammaActive','betaActive','deltaActive','tabGamma','tabBeta','tabDelta','specialActive','tabSpecial',
@@ -21,6 +23,7 @@ import Popup from '../Popup/Popup';
21
23
  import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
22
24
  import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
23
25
  import btnstyle from '../semantic/Button/semanticButton.module.css';
26
+
24
27
  class Tabs extends React.Component {
25
28
  constructor(props) {
26
29
  super(props);
@@ -32,21 +35,10 @@ class Tabs extends React.Component {
32
35
  tabKeys: []
33
36
  };
34
37
  bind.apply(this, ['moreTabSelect', 'onResize', 'onTabResize', 'getHighlightRef', 'getTabsRef', 'getTabRef', 'getHighlightDim', 'onSizeChange', 'onScroll', 'togglePopup', 'setMaxDim']);
35
- const debounce = function (cb) {
36
- let timer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
37
- let timeoutId = null;
38
- return () => {
39
- if (timeoutId) {
40
- clearTimeout(timeoutId);
41
- }
42
- timeoutId = setTimeout(() => {
43
- cb();
44
- }, timer);
45
- };
46
- };
47
- this.tabsObserver = new ResizeObserver(debounce(this.onResize));
38
+ this.tabsObserver = new ResizeObserver(this.onResize);
48
39
  this.tabObserver = {};
49
40
  }
41
+
50
42
  onTabResize(size, target) {
51
43
  let {
52
44
  align
@@ -56,13 +48,16 @@ class Tabs extends React.Component {
56
48
  } = this.state;
57
49
  let newDim = Object.assign({}, tabDimensions);
58
50
  let elemDim = getTotalDimension(target, align);
51
+
59
52
  if (elemDim !== 0) {
60
53
  newDim[target.dataset.key] = elemDim;
61
54
  }
55
+
62
56
  this.setState({
63
57
  tabDimensions: newDim
64
58
  });
65
59
  }
60
+
66
61
  componentDidMount() {
67
62
  let {
68
63
  children,
@@ -93,11 +88,13 @@ class Tabs extends React.Component {
93
88
  this.moveHighlight();
94
89
  });
95
90
  }
91
+
96
92
  componentWillUnmount() {
97
93
  if (this.tabsObserver) {
98
94
  this.tabsObserver.disconnect();
99
95
  this.tabsObserver = null;
100
96
  }
97
+
101
98
  if (this.tabObserver) {
102
99
  Object.keys(this.tabObserver).forEach(observer => {
103
100
  this.tabObserver[observer] && this.tabObserver[observer].disconnect();
@@ -105,15 +102,16 @@ class Tabs extends React.Component {
105
102
  this.tabObserver = null;
106
103
  }
107
104
  }
105
+
108
106
  setMaxDim() {
109
107
  let totalDimension = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
110
108
  let {
111
109
  selectedTab
112
- } = this.props;
113
- // let actual = Object.keys(tabDimensions).reduce(
110
+ } = this.props; // let actual = Object.keys(tabDimensions).reduce(
114
111
  // (sum, tab) => sum + (tabDimensions[tab] || 0),
115
112
  // 0
116
113
  // );
114
+
117
115
  if (totalDimension && this[selectedTab]) {
118
116
  let {
119
117
  align
@@ -122,12 +120,14 @@ class Tabs extends React.Component {
122
120
  align === 'vertical' ? this[selectedTab].style.maxWidth = newDim : this[selectedTab].style.maxHeight = newDim;
123
121
  }
124
122
  }
123
+
125
124
  getHighlightDim() {
126
125
  let {
127
126
  align
128
127
  } = this.props;
129
128
  return align === 'vertical' ? this.highlight.offsetLeft : this.highlight.offsetTop;
130
129
  }
130
+
131
131
  componentDidUpdate(prevProps) {
132
132
  let {
133
133
  children,
@@ -139,12 +139,12 @@ class Tabs extends React.Component {
139
139
  totalDimension,
140
140
  tabKeys
141
141
  } = this.state;
142
+
142
143
  if (prevProps.children && children) {
143
144
  /**
144
145
  * To recalculate the dimensions of tabs we are checking the children length.
145
146
  * and also checking the tab id and their order.
146
147
  */
147
-
148
148
  let newTabKeys = [];
149
149
  React.Children.toArray(children).forEach(child => {
150
150
  if (child && child.props.id && child.type === childType) {
@@ -152,6 +152,7 @@ class Tabs extends React.Component {
152
152
  }
153
153
  });
154
154
  let isSameTabKeys = newTabKeys.every((current, index) => tabKeys[index] === current);
155
+
155
156
  if (newTabKeys.length !== tabKeys.length || !isSameTabKeys) {
156
157
  this.setState({
157
158
  renderVirtualTabs: true,
@@ -166,11 +167,13 @@ class Tabs extends React.Component {
166
167
  });
167
168
  });
168
169
  }
170
+
169
171
  if (prevProps.selectedTab !== selectedTab || newTabKeys.length === 1) {
170
172
  this.moveHighlight();
171
173
  }
172
174
  }
173
175
  }
176
+
174
177
  moveHighlight() {
175
178
  let {
176
179
  isAnimate,
@@ -182,10 +185,13 @@ class Tabs extends React.Component {
182
185
  highlightInitialDimension
183
186
  } = this.state;
184
187
  let node = this.highlight;
188
+
185
189
  if (isAnimate && needTabBorder && node) {
186
190
  let tabActive = this[selectedTab];
191
+
187
192
  if (tabActive) {
188
193
  let position, dimension;
194
+
189
195
  if (align === 'vertical') {
190
196
  position = tabActive.offsetLeft;
191
197
  dimension = tabActive.offsetWidth;
@@ -200,17 +206,21 @@ class Tabs extends React.Component {
200
206
  }
201
207
  }
202
208
  }
209
+
203
210
  getHighlightRef(ele) {
204
211
  this.highlight = ele;
205
212
  }
213
+
206
214
  getTabsRef(ele) {
207
215
  this.tabsEle = ele;
216
+
208
217
  if (ele) {
209
218
  this.tabsObserver.observe(ele);
210
219
  } else {
211
220
  this.tabsObserver && this.tabsObserver.disconnect();
212
221
  }
213
222
  }
223
+
214
224
  onSizeChange() {
215
225
  let totalDimension = this.getTotalDimension();
216
226
  this.setState({
@@ -222,18 +232,20 @@ class Tabs extends React.Component {
222
232
  this.moveHighlight();
223
233
  });
224
234
  }
235
+
225
236
  onResize(timer) {
226
237
  let {
227
238
  isResponsive
228
239
  } = this.props;
240
+
229
241
  if (this.tabsEle && isResponsive) {
230
- // if (!timer) {
231
- // this.onSizeChange();
232
- // } else {
233
- // setTimeout(() => {
234
- this.onSizeChange();
235
- // }, timer);
236
- // }
242
+ if (!timer) {
243
+ this.onSizeChange();
244
+ } else {
245
+ setTimeout(() => {
246
+ this.onSizeChange();
247
+ }, timer);
248
+ }
237
249
  }
238
250
  }
239
251
 
@@ -244,6 +256,7 @@ class Tabs extends React.Component {
244
256
  let totalDimension = this.tabsEle && getTotalDimension(this.tabsEle, align);
245
257
  return totalDimension;
246
258
  }
259
+
247
260
  getTabDimensions() {
248
261
  let {
249
262
  children,
@@ -256,6 +269,7 @@ class Tabs extends React.Component {
256
269
  }));
257
270
  return tabDimensions;
258
271
  }
272
+
259
273
  responsiveTab(totalDimension, tabDimensions) {
260
274
  let {
261
275
  children,
@@ -264,8 +278,9 @@ class Tabs extends React.Component {
264
278
  isResponsive
265
279
  } = this.props;
266
280
  let mainTabs = [],
267
- moreTabs = [],
268
- otherTabs = [];
281
+ moreTabs = [],
282
+ otherTabs = [];
283
+
269
284
  if (totalDimension && isResponsive) {
270
285
  let {
271
286
  childType,
@@ -280,6 +295,7 @@ class Tabs extends React.Component {
280
295
  const elemDimension = tabDimensions[child.props.id];
281
296
  let isMaxCountExceeded = maxTabsTobeVisible <= 0 ? true : false;
282
297
  let isMinCountNotExceeded = minTabsToBeVisible < minTabsCount ? true : false;
298
+
283
299
  if (child.props.id === selectedTab) {
284
300
  mainTabs.push(child);
285
301
  } else if (isMinCountNotExceeded) {
@@ -298,6 +314,7 @@ class Tabs extends React.Component {
298
314
  otherTabs.push(child);
299
315
  }
300
316
  });
317
+
301
318
  if (selectedTabDimension > totalDimension) {
302
319
  /* let { align } = this.props;
303
320
  let newDim = `${remConvert(totalDimension)}rem`;
@@ -324,15 +341,18 @@ class Tabs extends React.Component {
324
341
  } else {
325
342
  moreTabs = children;
326
343
  }
344
+
327
345
  return {
328
346
  mainTabs,
329
347
  moreTabs,
330
348
  otherTabs
331
349
  };
332
350
  }
351
+
333
352
  getTabRef(refName, ele, isVirtual) {
334
353
  this[refName] = ele;
335
354
  let key = isVirtual ? `virtual_${refName}` : refName;
355
+
336
356
  if (ele) {
337
357
  this.tabObserver[key] = new ResizeObserver(this.onTabResize);
338
358
  this.tabObserver[key].observe(ele);
@@ -342,17 +362,21 @@ class Tabs extends React.Component {
342
362
  }
343
363
  }
344
364
  }
365
+
345
366
  moreTabSelect(tab, value, index, e) {
346
367
  let {
347
368
  onSelect
348
369
  } = this.props;
370
+
349
371
  if (e && e.target && e.target.parentElement.tagName === 'A' && (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)) {
350
372
  cancelBubblingEffect(e);
351
373
  return;
352
374
  }
375
+
353
376
  e.preventDefault();
354
377
  onSelect(tab);
355
378
  }
379
+
356
380
  onScroll(e) {
357
381
  e.persist();
358
382
  let {
@@ -360,6 +384,7 @@ class Tabs extends React.Component {
360
384
  } = this.props;
361
385
  onScroll && throttle(onScroll, 100, e);
362
386
  }
387
+
363
388
  togglePopup(e) {
364
389
  let {
365
390
  boxPosition,
@@ -372,6 +397,7 @@ class Tabs extends React.Component {
372
397
  boxPosition = boxPosition ? boxPosition : popupPosition;
373
398
  togglePopup(e, boxPosition);
374
399
  }
400
+
375
401
  responsiveFunc(_ref) {
376
402
  let {
377
403
  mediaQueryOR
@@ -382,6 +408,7 @@ class Tabs extends React.Component {
382
408
  }])
383
409
  };
384
410
  }
411
+
385
412
  renderTabs(mainTabs, moreTabs, isVirtual) {
386
413
  let {
387
414
  selectedTab,
@@ -420,14 +447,18 @@ class Tabs extends React.Component {
420
447
  if (!child) {
421
448
  return null;
422
449
  }
450
+
423
451
  let MainTab = child.type;
424
452
  let classProps = {};
453
+
425
454
  if (itemActiveClass) {
426
455
  classProps.activeClass = itemActiveClass;
427
456
  }
457
+
428
458
  if (itemClass) {
429
459
  classProps.className = itemClass;
430
460
  }
461
+
431
462
  return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab, _extends({}, child.props, {
432
463
  key: child.props.id,
433
464
  getTabRef: this.getTabRef,
@@ -489,6 +520,7 @@ class Tabs extends React.Component {
489
520
  if (!child) {
490
521
  return null;
491
522
  }
523
+
492
524
  let {
493
525
  text,
494
526
  id,
@@ -517,6 +549,7 @@ class Tabs extends React.Component {
517
549
  })));
518
550
  })) : null);
519
551
  }
552
+
520
553
  render() {
521
554
  let {
522
555
  style,
@@ -565,13 +598,15 @@ class Tabs extends React.Component {
565
598
  }, this.renderTabs(mainTabs, moreTabs, false))), otherTabs.length ? /*#__PURE__*/React.createElement(Box, null, otherTabs) : null, isAnimate && needTabBorder && needAppearance && /*#__PURE__*/React.createElement("div", {
566
599
  className: hlClass,
567
600
  ref: this.getHighlightRef,
568
- "data-id": dataId
601
+ "data-id": dataId,
602
+ "data-test-id": dataId
569
603
  })));
570
604
  }
605
+
571
606
  }
607
+
572
608
  Tabs.propTypes = Tabs_propTypes;
573
- Tabs.defaultProps = {
574
- ...Tabs_defaultProps,
609
+ Tabs.defaultProps = { ...Tabs_defaultProps,
575
610
  childType: Tab
576
611
  };
577
612
  export default Popup(Tabs);
@@ -5,16 +5,16 @@
5
5
  }
6
6
 
7
7
  .alpha {
8
- height: 35px;
8
+ height: var(--zd_size35) ;
9
9
  background-color: var(--zdt_tabs_alpha_bg);
10
10
  }
11
11
 
12
12
  [dir=ltr] .alpha_padding {
13
- padding-left: 15px;
13
+ padding-left: var(--zd_size15) ;
14
14
  }
15
15
 
16
16
  [dir=rtl] .alpha_padding {
17
- padding-right: 15px;
17
+ padding-right: var(--zd_size15) ;
18
18
  }
19
19
 
20
20
  .alpha_border {
@@ -27,50 +27,50 @@
27
27
  content: '';
28
28
  position: absolute;
29
29
  z-index: -2;
30
- width: 76%;
31
- bottom: 0;
32
- height: 10px;
30
+ width: 76% ;
31
+ bottom: 0 ;
32
+ height: var(--zd_size10) ;
33
33
  border-radius: 100px / 5px;
34
34
  box-shadow: var(--zd_bs_tabs_shadow);
35
35
  }
36
36
 
37
37
  [dir=ltr] .alpha::after {
38
- left: 12%;
38
+ left: 12% ;
39
39
  }
40
40
 
41
41
  [dir=rtl] .alpha::after {
42
- right: 12%;
42
+ right: 12% ;
43
43
  }
44
44
 
45
45
  .alpha:before {
46
46
  content: '';
47
47
  position: absolute;
48
48
  z-index: -1;
49
- width: 100%;
50
- height: 100%;
51
- top: 0;
49
+ width: 100% ;
50
+ height: 100% ;
51
+ top: 0 ;
52
52
  background: inherit;
53
53
  }
54
54
 
55
55
  [dir=ltr] .alpha:before {
56
- left: 0;
56
+ left: 0 ;
57
57
  }
58
58
 
59
59
  [dir=rtl] .alpha:before {
60
- right: 0;
60
+ right: 0 ;
61
61
  }
62
62
 
63
63
  .beta {
64
- height: 61px;
64
+ height: var(--zd_size61) ;
65
65
  background-color: var(--zdt_tabs_alpha_bg);
66
66
  }
67
67
 
68
68
  [dir=ltr] .beta_padding {
69
- padding-left: 13px;
69
+ padding-left: var(--zd_size13) ;
70
70
  }
71
71
 
72
72
  [dir=rtl] .beta_padding {
73
- padding-right: 13px;
73
+ padding-right: var(--zd_size13) ;
74
74
  }
75
75
 
76
76
  .beta_border {
@@ -78,16 +78,16 @@
78
78
  }
79
79
 
80
80
  .delta {
81
- height: 35px;
81
+ height: var(--zd_size35) ;
82
82
  background-color: var(--zdt_tabs_alpha_bg);
83
83
  }
84
84
 
85
85
  [dir=ltr] .delta_padding {
86
- padding-left: 10px;
86
+ padding-left: var(--zd_size10) ;
87
87
  }
88
88
 
89
89
  [dir=rtl] .delta_padding {
90
- padding-right: 10px;
90
+ padding-right: var(--zd_size10) ;
91
91
  }
92
92
 
93
93
  .delta_border {
@@ -99,12 +99,12 @@
99
99
  }
100
100
 
101
101
  .maxWidth {
102
- max-width: 100%;
102
+ max-width: 100% ;
103
103
  }
104
104
 
105
105
  .highlight {
106
106
  position: absolute;
107
- bottom: 0;
107
+ bottom: 0 ;
108
108
  border-bottom: 1px solid var(--zdt_tabs_highlight_border);
109
109
  }
110
110
 
@@ -118,36 +118,18 @@
118
118
  }
119
119
 
120
120
  .menuBox {
121
- max-height: 220px;
121
+ max-height: var(--zd_size220) ;
122
122
  }
123
-
124
-
125
123
  .bottomRightToLeft,
126
124
  .topRightToLeft,
127
125
  .bottomCenterToLeft {
128
- }
129
-
130
-
131
- [dir=ltr] .bottomRightToLeft, [dir=ltr] .topRightToLeft, [dir=ltr] .bottomCenterToLeft {
132
- right: calc(var(--tab_position_gap) * -1);
133
- }
134
-
135
-
136
- [dir=rtl] .bottomRightToLeft, [dir=rtl] .topRightToLeft, [dir=rtl] .bottomCenterToLeft {
137
- left: calc(var(--tab_position_gap) * -1);
126
+ right: calc(var(--tab_position_gap) * -1);
138
127
  }
139
128
 
140
129
  .bottomLeftToRight,
141
130
  .topLeftToRight,
142
131
  .bottomCenterToRight {
143
- }
144
-
145
- [dir=ltr] .bottomLeftToRight, [dir=ltr] .topLeftToRight, [dir=ltr] .bottomCenterToRight {
146
- left: calc(var(--tab_position_gap) * -1);
147
- }
148
-
149
- [dir=rtl] .bottomLeftToRight, [dir=rtl] .topLeftToRight, [dir=rtl] .bottomCenterToRight {
150
- right: calc(var(--tab_position_gap) * -1);
132
+ left: calc(var(--tab_position_gap) * -1);
151
133
  }
152
134
 
153
135
  .hidden {
@@ -44,11 +44,9 @@ describe('Tab Component', () => {
44
44
  getActiveRef: () => {}
45
45
  });
46
46
  expect(TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'tabMenu_Tab').className.contains('tabDelta')).toBe(true);
47
- });
48
- // it('Is Contains zeta class', () => {
47
+ }); // it('Is Contains zeta class', () => {
49
48
  // const { props, renderedDOM } = setup(Tab, { type: 'zeta', needAppearance: true, getActiveRef: () => { } });
50
49
  // expect(TestUtils.findRenderedComponentsWithTestid(renderedDOM, 'tabMenu_Tab').className.contains('tab')).toBe(true);
51
-
52
50
  // });
53
51
  // it('Is Contains special class', () => {
54
52
  // const { props, renderedDOM } = setup(Tab, { type: 'special', getActiveRef: () => {} });
@@ -67,6 +67,7 @@ describe('TabWrapper Component', () => {
67
67
  id: "1"
68
68
  }, "Two"));
69
69
  /*eslint-disable */
70
+
70
71
  let renderedDOM = ReactDOM.render( /*#__PURE__*/React.createElement(TabWrapper, {
71
72
  defaultTab: '0',
72
73
  type: "alpha",