@zohodesk/components 1.0.0-temp-227 → 1.0.0-temp-228

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 (357) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +31 -20
  3. package/assets/Appearance/dark/mode/Component_v2_DarkMode.module.css +11 -0
  4. package/assets/Appearance/light/mode/Component_v2_LightMode.module.css +11 -0
  5. package/assets/Appearance/pureDark/mode/Component_v2_PureDarkMode.module.css +11 -0
  6. package/es/Accordion/Accordion.js +2 -2
  7. package/es/Accordion/AccordionItem.js +4 -4
  8. package/es/Accordion/__tests__/Accordion.spec.js +1 -1
  9. package/es/Accordion/__tests__/AccordionItem.spec.js +1 -1
  10. package/es/Accordion/index.js +2 -2
  11. package/es/Animation/Animation.js +3 -3
  12. package/es/Animation/__tests__/Animation.spec.js +1 -1
  13. package/es/Animation/utils.js +1 -1
  14. package/es/AppContainer/AppContainer.js +13 -14
  15. package/es/AppContainer/__tests__/AppContainer.spec.js +1 -1
  16. package/es/Avatar/Avatar.js +5 -5
  17. package/es/Avatar/__tests__/Avatar.spec.js +1 -1
  18. package/es/AvatarTeam/AvatarTeam.js +4 -4
  19. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -1
  20. package/es/AvatarTeam/props/propTypes.js +1 -1
  21. package/es/Button/Button.js +4 -4
  22. package/es/Button/__tests__/Button.spec.js +2 -135
  23. package/es/Button/index.js +2 -2
  24. package/es/Button/props/defaultProps.js +1 -1
  25. package/es/Buttongroup/Buttongroup.js +3 -3
  26. package/es/Buttongroup/__tests__/Buttongroup.spec.js +1 -1
  27. package/es/Card/Card.js +5 -5
  28. package/es/Card/__tests__/Card.spec.js +1 -1
  29. package/es/Card/index.js +4 -4
  30. package/es/CheckBox/CheckBox.js +6 -6
  31. package/es/CheckBox/__tests__/CheckBox.spec.js +1 -1
  32. package/es/DateTime/CalendarView.js +6 -6
  33. package/es/DateTime/DateTime.js +15 -15
  34. package/es/DateTime/DateTimePopupFooter.js +5 -5
  35. package/es/DateTime/DateTimePopupHeader.js +4 -4
  36. package/es/DateTime/DateWidget.js +17 -17
  37. package/es/DateTime/DaysRow.js +3 -3
  38. package/es/DateTime/Time.js +5 -5
  39. package/es/DateTime/YearView.js +6 -6
  40. package/es/DateTime/__tests__/CalendarView.spec.js +1 -1
  41. package/es/DateTime/__tests__/DateTime.spec.js +1 -1
  42. package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +1 -1
  43. package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +1 -1
  44. package/es/DateTime/__tests__/DateWidget.spec.js +1 -1
  45. package/es/DateTime/__tests__/DaysRow.spec.js +1 -1
  46. package/es/DateTime/__tests__/Time.spec.js +1 -1
  47. package/es/DateTime/__tests__/YearView.spec.js +3 -2
  48. package/es/DateTime/__tests__/__snapshots__/YearView.spec.js.snap +61 -0
  49. package/es/DateTime/dateFormatUtils/dateFormat.js +4 -4
  50. package/es/DateTime/dateFormatUtils/dayChange.js +2 -2
  51. package/es/DateTime/dateFormatUtils/index.js +3 -3
  52. package/es/DateTime/dateFormatUtils/monthChange.js +2 -2
  53. package/es/DateTime/dateFormatUtils/timeChange.js +2 -2
  54. package/es/DateTime/dateFormatUtils/yearChange.js +2 -2
  55. package/es/DateTime/index.js +1 -1
  56. package/es/DateTime/props/propTypes.js +1 -1
  57. package/es/DateTime/validator.js +2 -2
  58. package/es/DropBox/DropBox.js +9 -9
  59. package/es/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  60. package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +1 -1
  61. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
  62. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +1 -1
  63. package/es/DropBox/__tests__/DropBox.spec.js +1 -1
  64. package/es/DropBox/css/cssJSLogic.js +1 -1
  65. package/es/DropBox/props/defaultProps.js +1 -1
  66. package/es/DropBox/props/propTypes.js +1 -1
  67. package/es/DropBox/utils/isMobilePopover.js +1 -1
  68. package/es/DropDown/DropDown.js +4 -4
  69. package/es/DropDown/DropDownHeading.js +3 -3
  70. package/es/DropDown/DropDownItem.js +3 -3
  71. package/es/DropDown/DropDownSearch.js +4 -4
  72. package/es/DropDown/DropDownSeparator.js +2 -2
  73. package/es/DropDown/__tests__/DropDown.spec.js +1 -1
  74. package/es/DropDown/__tests__/DropDownHeading.spec.js +1 -1
  75. package/es/DropDown/__tests__/DropDownItem.spec.js +1 -1
  76. package/es/DropDown/__tests__/DropDownSearch.spec.js +1 -1
  77. package/es/DropDown/__tests__/DropDownSeparator.spec.js +1 -1
  78. package/es/DropDown/index.js +7 -7
  79. package/es/DropDown/props/propTypes.js +1 -1
  80. package/es/Heading/Heading.js +4 -4
  81. package/es/Heading/__tests__/Heading.spec.js +1 -1
  82. package/es/Label/Label.js +4 -4
  83. package/es/Label/__tests__/Label.spec.js +1 -1
  84. package/es/Layout/Box.js +4 -4
  85. package/es/Layout/Container.js +4 -4
  86. package/es/Layout/__tests__/Box.spec.js +1 -1
  87. package/es/Layout/__tests__/Container.spec.js +1 -1
  88. package/es/Layout/index.js +2 -2
  89. package/es/ListItem/ListContainer.js +6 -6
  90. package/es/ListItem/ListItem.js +5 -5
  91. package/es/ListItem/ListItemWithAvatar.js +7 -7
  92. package/es/ListItem/ListItemWithCheckBox.js +6 -6
  93. package/es/ListItem/ListItemWithIcon.js +5 -5
  94. package/es/ListItem/ListItemWithRadio.js +6 -6
  95. package/es/ListItem/__tests__/ListContainer.spec.js +1 -1
  96. package/es/ListItem/__tests__/ListItem.spec.js +1 -1
  97. package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +1 -1
  98. package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +1 -1
  99. package/es/ListItem/__tests__/ListItemWithIcon.spec.js +1 -1
  100. package/es/ListItem/__tests__/ListItemWithRadio.spec.js +1 -1
  101. package/es/ListItem/index.js +6 -6
  102. package/es/ListItem/props/propTypes.js +2 -2
  103. package/es/Modal/Modal.js +3 -3
  104. package/es/Modal/__tests__/Modal.spec.js +1 -1
  105. package/es/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
  106. package/es/MultiSelect/AdvancedMultiSelect.js +17 -17
  107. package/es/MultiSelect/EmptyState.js +3 -3
  108. package/es/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  109. package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +1 -1
  110. package/es/MultiSelect/MultiSelect.js +22 -35
  111. package/es/MultiSelect/MultiSelectHeader.js +4 -4
  112. package/es/MultiSelect/MultiSelectWithAvatar.js +16 -16
  113. package/es/MultiSelect/SelectedOptions.js +5 -5
  114. package/es/MultiSelect/Suggestions.js +6 -6
  115. package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +1 -1
  116. package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +2 -9
  117. package/es/MultiSelect/__tests__/EmptyState.spec.js +1 -1
  118. package/es/MultiSelect/__tests__/MultiSelect.spec.js +1 -1
  119. package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +1 -1
  120. package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +1 -1
  121. package/es/MultiSelect/__tests__/SelectedOptions.spec.js +1 -1
  122. package/es/MultiSelect/__tests__/Suggestions.spec.js +1 -1
  123. package/es/MultiSelect/index.js +4 -4
  124. package/es/MultiSelect/props/defaultProps.js +1 -1
  125. package/es/MultiSelect/props/propTypes.js +1 -3
  126. package/es/PopOver/PopOver.js +6 -6
  127. package/es/PopOver/__tests__/PopOver.spec.js +1 -1
  128. package/es/PopOver/index.js +3 -3
  129. package/es/Popup/Popup.js +7 -7
  130. package/es/Provider/AvatarSize.js +1 -1
  131. package/es/Provider/CssProvider.js +1 -1
  132. package/es/Provider/IdProvider.js +3 -3
  133. package/es/Provider/LibraryContext.js +5 -3
  134. package/es/Provider/ZindexProvider.js +2 -2
  135. package/es/Provider/index.js +4 -4
  136. package/es/Radio/Radio.js +6 -6
  137. package/es/Radio/__tests__/Radio.spec.js +1 -1
  138. package/es/Responsive/CustomResponsive.js +7 -7
  139. package/es/Responsive/ResizeComponent.js +2 -2
  140. package/es/Responsive/Responsive.js +6 -6
  141. package/es/Responsive/index.js +3 -3
  142. package/es/Responsive/utils/index.js +1 -1
  143. package/es/Responsive/windowResizeObserver.js +1 -1
  144. package/es/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  145. package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +1 -1
  146. package/es/ResponsiveDropBox/props/propTypes.js +1 -1
  147. package/es/Ribbon/Ribbon.js +3 -3
  148. package/es/Ribbon/__tests__/Ribbon.spec.js +1 -1
  149. package/es/RippleEffect/RippleEffect.js +4 -4
  150. package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
  151. package/es/Select/GroupSelect.js +16 -16
  152. package/es/Select/Select.js +21 -30
  153. package/es/Select/SelectWithAvatar.js +17 -17
  154. package/es/Select/SelectWithIcon.js +13 -13
  155. package/es/Select/__tests__/GroupSelect.spec.js +1 -1
  156. package/es/Select/__tests__/Select.spec.js +5 -1131
  157. package/es/Select/__tests__/SelectWithAvatar.spec.js +1 -1
  158. package/es/Select/__tests__/SelectWithIcon.spec.js +1 -1
  159. package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +1 -9621
  160. package/es/Select/index.js +4 -4
  161. package/es/Select/props/defaultProps.js +1 -1
  162. package/es/Select/props/propTypes.js +1 -3
  163. package/es/Stencils/Stencils.js +15 -8
  164. package/es/Stencils/Stencils.module.css +7 -11
  165. package/es/Stencils/__tests__/Stencils.spec.js +2 -10
  166. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +11 -27
  167. package/es/Stencils/props/defaultProps.js +1 -2
  168. package/es/Stencils/props/propTypes.js +2 -3
  169. package/es/Switch/Switch.js +5 -5
  170. package/es/Switch/__tests__/Switch.spec.js +1 -1
  171. package/es/Tab/Tab.js +6 -7
  172. package/es/Tab/TabContent.js +4 -4
  173. package/es/Tab/TabContentWrapper.js +3 -3
  174. package/es/Tab/TabWrapper.js +4 -5
  175. package/es/Tab/Tabs.js +23 -23
  176. package/es/Tab/__tests__/Tab.spec.js +1 -1
  177. package/es/Tab/__tests__/TabContent.spec.js +1 -1
  178. package/es/Tab/__tests__/TabContentWrapper.spec.js +1 -1
  179. package/es/Tab/__tests__/TabWrapper.spec.js +1 -1
  180. package/es/Tab/__tests__/Tabs.spec.js +1 -1
  181. package/es/Tab/index.js +5 -5
  182. package/es/Tab/props/propTypes.js +2 -2
  183. package/es/Tag/Tag.js +7 -7
  184. package/es/Tag/__tests__/Tag.spec.js +2 -9
  185. package/es/Tag/props/propTypes.js +1 -1
  186. package/es/TextBox/TextBox.js +3 -3
  187. package/es/TextBox/__tests__/TextBox.spec.js +1 -1
  188. package/es/TextBoxIcon/TextBoxIcon.js +8 -12
  189. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -1
  190. package/es/TextBoxIcon/props/propTypes.js +2 -3
  191. package/es/Textarea/Textarea.js +3 -3
  192. package/es/Textarea/__tests__/Textarea.spec.js +1 -1
  193. package/es/Tooltip/Tooltip.js +6 -6
  194. package/es/Typography/Typography.js +4 -4
  195. package/es/Typography/css/cssJSLogic.js +1 -1
  196. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  197. package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +1 -1
  198. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +6 -43
  199. package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +1 -1
  200. package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +1 -4
  201. package/es/VelocityAnimation/index.js +2 -2
  202. package/es/components-v2/Switch/Switch.js +151 -0
  203. package/es/components-v2/Switch/contants/index.js +12 -0
  204. package/es/components-v2/Switch/css/Switch_v2.module.css +140 -0
  205. package/es/components-v2/Switch/css/cssJSLogic.js +48 -0
  206. package/es/components-v2/Switch/props/defaultProps.js +12 -0
  207. package/es/components-v2/Switch/props/propTypes.js +32 -0
  208. package/es/components-v2/Switch/useSwitch.js +29 -0
  209. package/es/css.js +37 -37
  210. package/es/deprecated/PortalLayer/PortalLayer.js +3 -3
  211. package/es/index.js +39 -39
  212. package/es/semantic/Button/Button.js +3 -3
  213. package/es/semantic/Button/__tests__/Button.spec.js +1 -1
  214. package/es/semantic/index.js +1 -1
  215. package/es/utils/Common.js +2 -2
  216. package/es/utils/ContextOptimizer.js +1 -1
  217. package/es/utils/cssUtils.js +1 -1
  218. package/es/utils/datetime/common.js +1 -1
  219. package/es/utils/dropDownUtils.js +1 -1
  220. package/es/utils/index.js +1 -1
  221. package/es/v1/Accordion/Accordion.js +2 -2
  222. package/es/v1/Accordion/AccordionItem.js +4 -4
  223. package/es/v1/Accordion/index.js +2 -2
  224. package/es/v1/Animation/Animation.js +3 -3
  225. package/es/v1/Animation/utils.js +1 -1
  226. package/es/v1/AppContainer/AppContainer.js +8 -8
  227. package/es/v1/Avatar/Avatar.js +5 -5
  228. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  229. package/es/v1/Button/Button.js +4 -4
  230. package/es/v1/Button/props/defaultProps.js +1 -1
  231. package/es/v1/Buttongroup/Buttongroup.js +3 -3
  232. package/es/v1/Card/Card.js +5 -5
  233. package/es/v1/Card/index.js +4 -4
  234. package/es/v1/CheckBox/CheckBox.js +6 -6
  235. package/es/v1/DateTime/CalendarView.js +7 -7
  236. package/es/v1/DateTime/DateTime.js +15 -15
  237. package/es/v1/DateTime/DateTimePopupFooter.js +5 -5
  238. package/es/v1/DateTime/DateTimePopupHeader.js +4 -4
  239. package/es/v1/DateTime/DateWidget.js +17 -17
  240. package/es/v1/DateTime/DaysRow.js +3 -3
  241. package/es/v1/DateTime/Time.js +5 -5
  242. package/es/v1/DateTime/YearView.js +6 -6
  243. package/es/v1/DateTime/index.js +1 -1
  244. package/es/v1/DateTime/props/propTypes.js +1 -1
  245. package/es/v1/DropBox/DropBox.js +9 -9
  246. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  247. package/es/v1/DropBox/props/defaultProps.js +1 -1
  248. package/es/v1/DropBox/props/propTypes.js +1 -1
  249. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  250. package/es/v1/DropDown/DropDown.js +4 -4
  251. package/es/v1/DropDown/DropDownHeading.js +3 -3
  252. package/es/v1/DropDown/DropDownItem.js +3 -3
  253. package/es/v1/DropDown/DropDownSearch.js +4 -4
  254. package/es/v1/DropDown/DropDownSeparator.js +2 -2
  255. package/es/v1/DropDown/props/propTypes.js +1 -1
  256. package/es/v1/Heading/Heading.js +4 -4
  257. package/es/v1/Label/Label.js +4 -4
  258. package/es/v1/Layout/Box.js +4 -4
  259. package/es/v1/Layout/Container.js +4 -4
  260. package/es/v1/Layout/index.js +2 -2
  261. package/es/v1/ListItem/ListContainer.js +6 -6
  262. package/es/v1/ListItem/ListItem.js +5 -5
  263. package/es/v1/ListItem/ListItemWithAvatar.js +7 -7
  264. package/es/v1/ListItem/ListItemWithCheckBox.js +6 -6
  265. package/es/v1/ListItem/ListItemWithIcon.js +5 -5
  266. package/es/v1/ListItem/ListItemWithRadio.js +6 -6
  267. package/es/v1/ListItem/index.js +6 -6
  268. package/es/v1/Modal/Modal.js +3 -3
  269. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
  270. package/es/v1/MultiSelect/AdvancedMultiSelect.js +17 -17
  271. package/es/v1/MultiSelect/EmptyState.js +3 -3
  272. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  273. package/es/v1/MultiSelect/MultiSelect.js +19 -19
  274. package/es/v1/MultiSelect/MultiSelectHeader.js +4 -4
  275. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +16 -16
  276. package/es/v1/MultiSelect/SelectedOptions.js +5 -5
  277. package/es/v1/MultiSelect/Suggestions.js +6 -6
  278. package/es/v1/MultiSelect/index.js +4 -4
  279. package/es/v1/MultiSelect/props/defaultProps.js +1 -1
  280. package/es/v1/PopOver/PopOver.js +6 -6
  281. package/es/v1/Popup/Popup.js +3 -3
  282. package/es/v1/Radio/Radio.js +5 -5
  283. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  284. package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
  285. package/es/v1/Ribbon/Ribbon.js +3 -3
  286. package/es/v1/RippleEffect/RippleEffect.js +4 -4
  287. package/es/v1/Select/GroupSelect.js +16 -16
  288. package/es/v1/Select/Select.js +15 -15
  289. package/es/v1/Select/SelectWithAvatar.js +17 -17
  290. package/es/v1/Select/SelectWithIcon.js +13 -13
  291. package/es/v1/Select/index.js +4 -4
  292. package/es/v1/Select/props/defaultProps.js +1 -1
  293. package/es/v1/Stencils/Stencils.js +3 -3
  294. package/es/v1/Switch/Switch.js +5 -5
  295. package/es/v1/Tab/Tab.js +5 -5
  296. package/es/v1/Tab/TabContent.js +4 -4
  297. package/es/v1/Tab/TabContentWrapper.js +3 -3
  298. package/es/v1/Tab/TabWrapper.js +3 -3
  299. package/es/v1/Tab/Tabs.js +13 -13
  300. package/es/v1/Tab/index.js +5 -5
  301. package/es/v1/Tag/Tag.js +7 -7
  302. package/es/v1/TextBox/TextBox.js +3 -3
  303. package/es/v1/TextBoxIcon/TextBoxIcon.js +6 -6
  304. package/es/v1/TextBoxIcon/props/propTypes.js +1 -1
  305. package/es/v1/Textarea/Textarea.js +3 -3
  306. package/es/v1/Tooltip/Tooltip.js +6 -6
  307. package/es/v1/Typography/Typography.js +4 -4
  308. package/es/v1/Typography/css/cssJSLogic.js +1 -1
  309. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  310. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  311. package/es/v1/semantic/Button/Button.js +3 -3
  312. package/es/v1/semantic/index.js +1 -1
  313. package/lib/AppContainer/AppContainer.js +6 -7
  314. package/lib/Button/__tests__/Button.spec.js +0 -140
  315. package/lib/DateTime/__tests__/YearView.spec.js +2 -1
  316. package/lib/DateTime/__tests__/__snapshots__/YearView.spec.js.snap +61 -0
  317. package/lib/MultiSelect/MultiSelect.js +3 -16
  318. package/lib/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +0 -8
  319. package/lib/MultiSelect/props/propTypes.js +1 -3
  320. package/lib/Provider/IdProvider.js +0 -1
  321. package/lib/Provider/LibraryContext.js +3 -1
  322. package/lib/Select/Select.js +7 -16
  323. package/lib/Select/__tests__/Select.spec.js +3 -1364
  324. package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +1 -9621
  325. package/lib/Select/props/propTypes.js +1 -3
  326. package/lib/Stencils/Stencils.js +12 -5
  327. package/lib/Stencils/Stencils.module.css +7 -11
  328. package/lib/Stencils/__tests__/Stencils.spec.js +3 -11
  329. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +11 -27
  330. package/lib/Stencils/props/defaultProps.js +1 -2
  331. package/lib/Stencils/props/propTypes.js +2 -3
  332. package/lib/Tab/Tab.js +1 -3
  333. package/lib/Tab/TabWrapper.js +1 -3
  334. package/lib/Tab/Tabs.js +10 -11
  335. package/lib/Tab/props/propTypes.js +2 -2
  336. package/lib/Tag/__tests__/Tag.spec.js +2 -10
  337. package/lib/TextBoxIcon/TextBoxIcon.js +2 -6
  338. package/lib/TextBoxIcon/props/propTypes.js +1 -2
  339. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +26 -80
  340. package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +1 -4
  341. package/lib/components-v2/Switch/Switch.js +169 -0
  342. package/lib/components-v2/Switch/contants/index.js +20 -0
  343. package/lib/components-v2/Switch/css/Switch_v2.module.css +140 -0
  344. package/lib/components-v2/Switch/css/cssJSLogic.js +37 -0
  345. package/lib/components-v2/Switch/props/defaultProps.js +19 -0
  346. package/lib/components-v2/Switch/props/propTypes.js +43 -0
  347. package/lib/components-v2/Switch/useSwitch.js +52 -0
  348. package/lib/utils/Common.js +1 -1
  349. package/package.json +4 -3
  350. package/react-cli.config.js +2 -2
  351. package/result.json +1 -0
  352. package/es/Tab/__tests__/TabLayout.spec.js +0 -34
  353. package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +0 -341
  354. package/es/Tab/utils/tabConfigs.js +0 -18
  355. package/lib/Tab/__tests__/TabLayout.spec.js +0 -41
  356. package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +0 -341
  357. package/lib/Tab/utils/tabConfigs.js +0 -27
@@ -1,4 +1,4 @@
1
- export { default as Select } from "./Select";
2
- export { default as GroupSelect } from "./GroupSelect";
3
- export { default as SelectWithAvatar } from "./SelectWithAvatar";
4
- export { default as SelectWithIcon } from "./SelectWithIcon";
1
+ export { default as Select } from './Select';
2
+ export { default as GroupSelect } from './GroupSelect';
3
+ export { default as SelectWithAvatar } from './SelectWithAvatar';
4
+ export { default as SelectWithIcon } from './SelectWithIcon';
@@ -1,4 +1,4 @@
1
- import { getLibraryConfig } from "../../Provider/Config";
1
+ import { getLibraryConfig } from '../../Provider/Config';
2
2
  export const Select_defaultProps = {
3
3
  animationStyle: 'bounce',
4
4
  autoComplete: getLibraryConfig('autoComplete'),
@@ -94,9 +94,7 @@ export const Select_propTypes = {
94
94
  targetOffset: PropTypes.object,
95
95
  isRestrictScroll: PropTypes.bool,
96
96
  dropBoxPortalId: PropTypes.string,
97
- allowValueFallback: PropTypes.bool,
98
- renderCustomToggleIndicator: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
99
- renderCustomSearchClearComponent: PropTypes.func
97
+ allowValueFallback: PropTypes.bool
100
98
  };
101
99
  export const GroupSelect_propTypes = {
102
100
  groupedOptions: PropTypes.arrayOf(PropTypes.shape({
@@ -1,24 +1,31 @@
1
1
  import React from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
4
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: [primary, secondary, small, default, medium, large, clarge, cmedium, cdefault, csmall] }] */
5
5
 
6
- import style from "./Stencils.module.css";
6
+ import style from './Stencils.module.css';
7
7
  export default class Stencils extends React.PureComponent {
8
8
  render() {
9
9
  let {
10
10
  shape,
11
11
  size,
12
12
  palette,
13
- customClass,
14
- isAnimated
13
+ customClass
15
14
  } = this.props;
16
- size = shape === 'rect' ? style[size] : style[`size_${size}`];
15
+ size = shape === 'rect' ? style[size] : style[`c${size}`];
16
+ shape = shape === 'rect' ? style.rectangular : style.circle;
17
17
  return /*#__PURE__*/React.createElement("div", {
18
- className: `${style.container} ${isAnimated ? style.animate : ''} ${style[shape]} ${size} ${style[palette]} ${customClass}`
18
+ className: `${style.container} ${shape} ${size} ${style[palette]} ${customClass}`
19
19
  });
20
20
  }
21
21
 
22
22
  }
23
23
  Stencils.propTypes = propTypes;
24
- Stencils.defaultProps = defaultProps;
24
+ Stencils.defaultProps = defaultProps; // if (__DOCS__) {
25
+ // Stencils.docs = {
26
+ // componentGroup: 'Atom',
27
+ // folderName: 'Style Guide',
28
+ // description: ' ',
29
+ // external: true
30
+ // };
31
+ // }
@@ -13,14 +13,14 @@
13
13
  .stencil {
14
14
  background-size: 800px 1px;
15
15
  }
16
- [dir=ltr] .animate{
16
+ [dir=ltr] .stencil {
17
17
  animation-name: placeHolderShimmer-ltr ;
18
18
  animation-fill-mode: forwards;
19
19
  animation-iteration-count: infinite;
20
20
  animation-duration: var(--zd_transition10);
21
21
  animation-timing-function: linear;
22
22
  }
23
- [dir=rtl] .animate{
23
+ [dir=rtl] .stencil {
24
24
  animation-name: placeHolderShimmer-rtl ;
25
25
  animation-fill-mode: forwards;
26
26
  animation-iteration-count: infinite;
@@ -46,7 +46,7 @@
46
46
  }
47
47
  }
48
48
 
49
- .rect {
49
+ .rectangular {
50
50
  composes: stencil;
51
51
  --stencil_height: var(--zd_size9);
52
52
  --stencil_border_radius: 5px;
@@ -81,20 +81,16 @@
81
81
  composes: stencil;
82
82
  --stencil_border_radius: 50%;
83
83
  }
84
- .square {
85
- composes: stencil;
86
- --stencil_border_radius: 4px;
87
- }
88
- .size_large {
84
+ .clarge {
89
85
  --stencil_width: var(--zd_size42);
90
86
  --stencil_height: var(--zd_size42);
91
87
  }
92
- .size_medium,
93
- .size_default {
88
+ .cmedium,
89
+ .cdefault {
94
90
  --stencil_width: var(--zd_size30);
95
91
  --stencil_height: var(--zd_size30);
96
92
  }
97
- .size_small {
93
+ .csmall {
98
94
  --stencil_width: var(--zd_size20);
99
95
  --stencil_height: var(--zd_size20);
100
96
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
- import Stencils from "../Stencils.js";
3
+ import Stencils from '../Stencils.js';
4
4
  describe('Stencils', () => {
5
5
  test('rendering the defult props', () => {
6
6
  const {
@@ -17,7 +17,7 @@ describe('Stencils', () => {
17
17
  }));
18
18
  expect(asFragment()).toMatchSnapshot();
19
19
  });
20
- const shape = ['rect', 'circle', 'square'];
20
+ const shape = ['rect', 'circle'];
21
21
  test.each(shape)('rendering the shape of- %s', shape => {
22
22
  const {
23
23
  asFragment
@@ -35,14 +35,6 @@ describe('Stencils', () => {
35
35
  }));
36
36
  expect(asFragment()).toMatchSnapshot();
37
37
  });
38
- test('rendering without animation', () => {
39
- const {
40
- asFragment
41
- } = render( /*#__PURE__*/React.createElement(Stencils, {
42
- isAnimated: false
43
- }));
44
- expect(asFragment()).toMatchSnapshot();
45
- });
46
38
  test('rendering the customClass', () => {
47
39
  const {
48
40
  asFragment
@@ -3,7 +3,7 @@
3
3
  exports[`Stencils rendering the customClass 1`] = `
4
4
  <DocumentFragment>
5
5
  <div
6
- class="container animate rect medium primary StencilsCustomClass"
6
+ class="container rectangular medium primary StencilsCustomClass"
7
7
  />
8
8
  </DocumentFragment>
9
9
  `;
@@ -11,7 +11,7 @@ exports[`Stencils rendering the customClass 1`] = `
11
11
  exports[`Stencils rendering the defult props 1`] = `
12
12
  <DocumentFragment>
13
13
  <div
14
- class="container animate rect medium primary "
14
+ class="container rectangular medium primary "
15
15
  />
16
16
  </DocumentFragment>
17
17
  `;
@@ -19,7 +19,7 @@ exports[`Stencils rendering the defult props 1`] = `
19
19
  exports[`Stencils rendering the palette of- dark 1`] = `
20
20
  <DocumentFragment>
21
21
  <div
22
- class="container animate rect medium dark "
22
+ class="container rectangular medium dark "
23
23
  />
24
24
  </DocumentFragment>
25
25
  `;
@@ -27,7 +27,7 @@ exports[`Stencils rendering the palette of- dark 1`] = `
27
27
  exports[`Stencils rendering the palette of- primary 1`] = `
28
28
  <DocumentFragment>
29
29
  <div
30
- class="container animate rect medium primary "
30
+ class="container rectangular medium primary "
31
31
  />
32
32
  </DocumentFragment>
33
33
  `;
@@ -35,7 +35,7 @@ exports[`Stencils rendering the palette of- primary 1`] = `
35
35
  exports[`Stencils rendering the palette of- secondary 1`] = `
36
36
  <DocumentFragment>
37
37
  <div
38
- class="container animate rect medium secondary "
38
+ class="container rectangular medium secondary "
39
39
  />
40
40
  </DocumentFragment>
41
41
  `;
@@ -43,7 +43,7 @@ exports[`Stencils rendering the palette of- secondary 1`] = `
43
43
  exports[`Stencils rendering the shape of- circle 1`] = `
44
44
  <DocumentFragment>
45
45
  <div
46
- class="container animate circle size_medium primary "
46
+ class="container circle cmedium primary "
47
47
  />
48
48
  </DocumentFragment>
49
49
  `;
@@ -51,15 +51,7 @@ exports[`Stencils rendering the shape of- circle 1`] = `
51
51
  exports[`Stencils rendering the shape of- rect 1`] = `
52
52
  <DocumentFragment>
53
53
  <div
54
- class="container animate rect medium primary "
55
- />
56
- </DocumentFragment>
57
- `;
58
-
59
- exports[`Stencils rendering the shape of- square 1`] = `
60
- <DocumentFragment>
61
- <div
62
- class="container animate square size_medium primary "
54
+ class="container rectangular medium primary "
63
55
  />
64
56
  </DocumentFragment>
65
57
  `;
@@ -67,7 +59,7 @@ exports[`Stencils rendering the shape of- square 1`] = `
67
59
  exports[`Stencils rendering the size of- default 1`] = `
68
60
  <DocumentFragment>
69
61
  <div
70
- class="container animate rect default primary "
62
+ class="container rectangular default primary "
71
63
  />
72
64
  </DocumentFragment>
73
65
  `;
@@ -75,7 +67,7 @@ exports[`Stencils rendering the size of- default 1`] = `
75
67
  exports[`Stencils rendering the size of- large 1`] = `
76
68
  <DocumentFragment>
77
69
  <div
78
- class="container animate rect large primary "
70
+ class="container rectangular large primary "
79
71
  />
80
72
  </DocumentFragment>
81
73
  `;
@@ -83,7 +75,7 @@ exports[`Stencils rendering the size of- large 1`] = `
83
75
  exports[`Stencils rendering the size of- medium 1`] = `
84
76
  <DocumentFragment>
85
77
  <div
86
- class="container animate rect medium primary "
78
+ class="container rectangular medium primary "
87
79
  />
88
80
  </DocumentFragment>
89
81
  `;
@@ -91,15 +83,7 @@ exports[`Stencils rendering the size of- medium 1`] = `
91
83
  exports[`Stencils rendering the size of- small 1`] = `
92
84
  <DocumentFragment>
93
85
  <div
94
- class="container animate rect small primary "
95
- />
96
- </DocumentFragment>
97
- `;
98
-
99
- exports[`Stencils rendering without animation 1`] = `
100
- <DocumentFragment>
101
- <div
102
- class="container rect medium primary "
86
+ class="container rectangular small primary "
103
87
  />
104
88
  </DocumentFragment>
105
89
  `;
@@ -2,6 +2,5 @@ export const defaultProps = {
2
2
  palette: 'primary',
3
3
  shape: 'rect',
4
4
  size: 'medium',
5
- customClass: '',
6
- isAnimated: true
5
+ customClass: ''
7
6
  };
@@ -1,8 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  export const propTypes = {
3
3
  palette: PropTypes.oneOf(['primary', 'secondary', 'dark']),
4
- shape: PropTypes.oneOf(['rect', 'circle', 'square']),
4
+ shape: PropTypes.oneOf(['rect', 'circle']),
5
5
  size: PropTypes.oneOf(['small', 'medium', 'large', 'default']),
6
- customClass: PropTypes.string,
7
- isAnimated: PropTypes.bool
6
+ customClass: PropTypes.string
8
7
  };
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
4
- import { Container, Box } from "../Layout";
5
- import Label from "../Label/Label";
6
- import style from "./Switch.module.css";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
+ import { Container, Box } from '../Layout';
5
+ import Label from '../Label/Label';
6
+ import style from './Switch.module.css';
7
7
  export default class Switch extends React.Component {
8
8
  constructor(props) {
9
9
  super(props);
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
- import Switch from "../Switch";
3
+ import Switch from '../Switch';
4
4
  describe('Switch', () => {
5
5
  test('rendering the defult props', () => {
6
6
  const {
package/es/Tab/Tab.js CHANGED
@@ -2,12 +2,11 @@
2
2
 
3
3
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['text', 'tabAlpha', 'alphaActive', 'gammaActive', 'betaActive', 'deltaActive', 'tabGamma', 'tabBeta', 'tabDelta',', 'specialActive', 'tabSpecial', 'alphaActive_border', 'gammaActive_border', 'betaActive_border', 'deltaActive_border'] }] */
4
4
  import React, { useMemo, useCallback } from 'react';
5
- import { Tab_defaultProps } from "./props/defaultProps";
6
- import { Tab_propTypes } from "./props/propTypes";
7
- import { Box, Container } from "../Layout";
8
- import { cs } from "../utils/Common";
9
- import { TAB_DIRECTION_MAPPING } from "./utils/tabConfigs";
10
- import styles from "./Tab.module.css";
5
+ import { Tab_defaultProps } from './props/defaultProps';
6
+ import { Tab_propTypes } from './props/propTypes';
7
+ import { Box, Container } from '../Layout';
8
+ import { cs } from '../utils/Common';
9
+ import styles from './Tab.module.css';
11
10
  const tabTypes = {
12
11
  alpha: {
13
12
  active: 'alphaActive',
@@ -68,7 +67,7 @@ export default function Tab(_ref) {
68
67
  let activeWithAppearance = cs([styles[styleContent.active], needBorder && !isAnimate && styles[`${styleContent.active}_border`]]);
69
68
  let activeClasses = cs([needAppearance && activeWithAppearance, activeClass]);
70
69
  let inActiveClasses = needAppearance && cs([styles[styleContent.tab], tabTypes[type] && styles[`${`${type}Hover`}`]]);
71
- let tabClass = cs([styles.tab, TAB_DIRECTION_MAPPING[align] === 'column' ? styles.vertical : styles.horizontal, isDisabled && styles.disabled, needBorder && !isAnimate && needAppearance && styles.border, isActive ? activeClasses : inActiveClasses, className]);
70
+ let tabClass = cs([styles.tab, align === 'vertical' ? styles.vertical : styles.horizontal, isDisabled && styles.disabled, needBorder && !isAnimate && needAppearance && styles.border, isActive ? activeClasses : inActiveClasses, className]);
72
71
  return /*#__PURE__*/React.createElement(Box, {
73
72
  tourId: tourId,
74
73
  tagName: isLink ? 'a' : 'div',
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { TabContent_defaultProps } from "./props/defaultProps";
3
- import { TabContent_propTypes } from "./props/propTypes";
4
- import { Container } from "../Layout";
5
- import style from "./TabContent.module.css";
2
+ import { TabContent_defaultProps } from './props/defaultProps';
3
+ import { TabContent_propTypes } from './props/propTypes';
4
+ import { Container } from '../Layout';
5
+ import style from './TabContent.module.css';
6
6
  /* eslint-disable react/forbid-component-props */
7
7
 
8
8
  const TabContent = _ref => {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { TabContentWrapper_defaultProps } from "./props/defaultProps";
3
- import { TabContentWrapper_propTypes } from "./props/propTypes";
4
- import { Box } from "../Layout";
2
+ import { TabContentWrapper_defaultProps } from './props/defaultProps';
3
+ import { TabContentWrapper_propTypes } from './props/propTypes';
4
+ import { Box } from '../Layout';
5
5
  /* eslint-disable react/forbid-component-props */
6
6
 
7
7
  const TabContentWrapper = _ref => {
@@ -1,8 +1,7 @@
1
1
  import React, { useState, useCallback } from 'react';
2
- import { TabWrapper_defaultProps } from "./props/defaultProps";
3
- import { TabWrapper_propTypes } from "./props/propTypes";
4
- import { Container } from "../Layout";
5
- import { TAB_ALIGN_MAPPING } from "./utils/tabConfigs";
2
+ import { TabWrapper_defaultProps } from './props/defaultProps';
3
+ import { TabWrapper_propTypes } from './props/propTypes';
4
+ import { Container } from '../Layout';
6
5
 
7
6
  function TabWrapper(_ref) {
8
7
  let {
@@ -29,7 +28,7 @@ function TabWrapper(_ref) {
29
28
  onSelect && onSelect(id);
30
29
  }, [hookToDisableInternalState, onSelect]);
31
30
  return /*#__PURE__*/React.createElement(Container, {
32
- alignBox: TAB_ALIGN_MAPPING[align],
31
+ alignBox: align === 'vertical' ? 'column' : 'row',
33
32
  dataId: dataId,
34
33
  dataSelectorId: dataSelectorId
35
34
  }, React.Children.map(children, child => {
package/es/Tab/Tabs.js CHANGED
@@ -9,21 +9,20 @@
9
9
  */
10
10
  import React from 'react';
11
11
  import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
12
- import Tab from "./Tab";
13
- import { Tabs_defaultProps } from "./props/defaultProps";
14
- import { Tabs_propTypes } from "./props/propTypes";
15
- import { remConvert, getTotalDimension, cs, bind, throttle, cancelBubblingEffect } from "../utils/Common";
16
- import { Box, Container } from "../Layout";
17
- import ResizeObserver from "../Responsive/ResizeObserver";
18
- import ListItem from "../ListItem/ListItem";
12
+ import Tab from './Tab';
13
+ import { Tabs_defaultProps } from './props/defaultProps';
14
+ import { Tabs_propTypes } from './props/propTypes';
15
+ import { remConvert, getTotalDimension, cs, bind, throttle, cancelBubblingEffect } from '../utils/Common';
16
+ import { Box, Container } from '../Layout';
17
+ import ResizeObserver from '../Responsive/ResizeObserver';
18
+ import ListItem from '../ListItem/ListItem';
19
19
  import { Icon } from '@zohodesk/icons';
20
- import tabsStyle from "./Tabs.module.css";
21
- import Popup from "../Popup/Popup";
22
- import TextBoxIcon from "../TextBoxIcon/TextBoxIcon";
23
- import ResponsiveDropBox from "../ResponsiveDropBox/ResponsiveDropBox";
24
- import { ResponsiveReceiver } from "../Responsive/CustomResponsive";
25
- import { TAB_DIRECTION_MAPPING, TAB_POPUP_POSITION_MAPPING } from "./utils/tabConfigs";
26
- import btnstyle from "../semantic/Button/semanticButton.module.css";
20
+ import tabsStyle from './Tabs.module.css';
21
+ import Popup from '../Popup/Popup';
22
+ import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
23
+ import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
24
+ import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
25
+ import btnstyle from '../semantic/Button/semanticButton.module.css';
27
26
 
28
27
  class Tabs extends React.Component {
29
28
  constructor(props) {
@@ -119,7 +118,7 @@ class Tabs extends React.Component {
119
118
  align
120
119
  } = this.props;
121
120
  let newDim = `${remConvert(totalDimension)}rem`;
122
- TAB_DIRECTION_MAPPING[align] === 'column' ? this[selectedTab].style.maxWidth = newDim : this[selectedTab].style.maxHeight = newDim;
121
+ align === 'vertical' ? this[selectedTab].style.maxWidth = newDim : this[selectedTab].style.maxHeight = newDim;
123
122
  }
124
123
  }
125
124
 
@@ -127,7 +126,7 @@ class Tabs extends React.Component {
127
126
  let {
128
127
  align
129
128
  } = this.props;
130
- return TAB_DIRECTION_MAPPING[align] === 'column' ? this.highlight.offsetLeft : this.highlight.offsetTop;
129
+ return align === 'vertical' ? this.highlight.offsetLeft : this.highlight.offsetTop;
131
130
  }
132
131
 
133
132
  componentDidUpdate(prevProps) {
@@ -200,12 +199,12 @@ class Tabs extends React.Component {
200
199
  if (tabActive) {
201
200
  let position, dimension;
202
201
 
203
- if (TAB_DIRECTION_MAPPING[align] === 'column') {
202
+ if (align === 'vertical') {
204
203
  position = tabActive.offsetLeft;
205
204
  dimension = tabActive.offsetWidth;
206
205
  node.style.transform = `translateX(${remConvert(position - highlightInitialDimension)}rem)`;
207
206
  node.style.width = `${remConvert(dimension)}rem`;
208
- } else if (TAB_DIRECTION_MAPPING[align] === 'row') {
207
+ } else if (align === 'horizontal') {
209
208
  position = tabActive.offsetTop;
210
209
  dimension = tabActive.offsetHeight;
211
210
  node.style.transform = `translateY(${remConvert(position - highlightInitialDimension)}rem)`;
@@ -403,7 +402,8 @@ class Tabs extends React.Component {
403
402
  removeClose
404
403
  } = this.props;
405
404
  removeClose && removeClose(e);
406
- boxPosition = boxPosition ? boxPosition : TAB_POPUP_POSITION_MAPPING[align];
405
+ let popupPosition = align === 'vertical' ? 'bottomLeft' : 'rightTop';
406
+ boxPosition = boxPosition ? boxPosition : popupPosition;
407
407
  togglePopup(e, boxPosition);
408
408
  }
409
409
 
@@ -527,7 +527,7 @@ class Tabs extends React.Component {
527
527
  MoreButtonProps = {},
528
528
  TextBoxIconProps = {}
529
529
  } = customProps;
530
- let popupClass = TAB_DIRECTION_MAPPING[align] === 'column' ? tabsStyle[position] ? tabsStyle[position] : '' : '';
530
+ let popupClass = align === 'vertical' ? tabsStyle[position] ? tabsStyle[position] : '' : '';
531
531
  const moreTabsListItems = this.handleFilterSuggestions({
532
532
  moreTabs
533
533
  });
@@ -695,17 +695,17 @@ class Tabs extends React.Component {
695
695
  className: containerClass,
696
696
  dataSelectorId: dataSelectorId
697
697
  }, /*#__PURE__*/React.createElement(Container, {
698
- alignBox: TAB_DIRECTION_MAPPING[align] === 'column' ? 'row' : 'column',
698
+ alignBox: align === 'vertical' ? 'row' : 'column',
699
699
  className: tabsClass,
700
700
  style: style
701
701
  }, /*#__PURE__*/React.createElement(Box, {
702
702
  eleRef: this.getTabsRef,
703
703
  flexible: true
704
704
  }, renderVirtualTabs && /*#__PURE__*/React.createElement(Container, {
705
- alignBox: TAB_DIRECTION_MAPPING[align] === 'column' ? 'row' : 'column',
705
+ alignBox: align === 'vertical' ? 'row' : 'column',
706
706
  className: tabsStyle.hidden
707
707
  }, this.renderTabs(children, [], true)), /*#__PURE__*/React.createElement(Container, {
708
- alignBox: TAB_DIRECTION_MAPPING[align] === 'column' ? 'row' : 'column'
708
+ alignBox: align === 'vertical' ? 'row' : 'column'
709
709
  }, this.renderTabs(mainTabs, moreTabs, false))), otherTabs.length ? /*#__PURE__*/React.createElement(Box, null, otherTabs) : null, isAnimate && needTabBorder && needAppearance && /*#__PURE__*/React.createElement("div", {
710
710
  className: hlClass,
711
711
  ref: this.getHighlightRef,
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
- import Tab from "../Tab";
3
+ import Tab from '../Tab';
4
4
  describe('Tab', () => {
5
5
  test('rendering the defult props', () => {
6
6
  const {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
- import TabContent from "../TabContent";
3
+ import TabContent from '../TabContent';
4
4
  describe('TabContent', () => {
5
5
  test('rendering the defult props', () => {
6
6
  const {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
- import TabContentWrapper from "../TabContentWrapper";
3
+ import TabContentWrapper from '../TabContentWrapper';
4
4
  describe('TabContentWrapper', () => {
5
5
  test('rendering the defult props', () => {
6
6
  const {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
- import TabWrapper from "../TabWrapper";
3
+ import TabWrapper from '../TabWrapper';
4
4
  describe('TabWrapper', () => {
5
5
  test('rendering the defult props', () => {
6
6
  const {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { render } from '@testing-library/react';
3
- import Tabs from "../Tabs";
3
+ import Tabs from '../Tabs';
4
4
  describe('Tabs', () => {
5
5
  test('rendering the defult props', () => {
6
6
  const {
package/es/Tab/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { default as TabWrapper } from "./TabWrapper";
2
- export { default as TabContentWrapper } from "./TabContentWrapper";
3
- export { default as TabContent } from "./TabContent";
4
- export { default as Tabs } from "./Tabs";
5
- export { default as Tab } from "./Tab";
1
+ export { default as TabWrapper } from './TabWrapper';
2
+ export { default as TabContentWrapper } from './TabContentWrapper';
3
+ export { default as TabContent } from './TabContent';
4
+ export { default as Tabs } from './Tabs';
5
+ export { default as Tab } from './Tab';
@@ -1,7 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  export const Tab_propTypes = {
3
3
  activeClass: PropTypes.string,
4
- align: PropTypes.oneOf(['vertical', 'horizontal']),
4
+ align: PropTypes.string,
5
5
  children: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),
6
6
  className: PropTypes.string,
7
7
  dataId: PropTypes.string,
@@ -101,7 +101,7 @@ export const Tabs_propTypes = {
101
101
  targetOffset: PropTypes.object
102
102
  };
103
103
  export const TabWrapper_propTypes = {
104
- align: PropTypes.oneOf(['vertical', 'horizontal', 'vertical-reverse', 'horizontal-reverse']),
104
+ align: PropTypes.oneOf(['vertical', 'horizontal']),
105
105
  children: PropTypes.node,
106
106
  dataId: PropTypes.string,
107
107
  defaultTab: PropTypes.string,
package/es/Tag/Tag.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import React, { PureComponent } from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
4
  import { Icon } from '@zohodesk/icons';
5
- import Avatar from "../Avatar/Avatar";
6
- import { Container } from "../Layout";
7
- import Button from "../semantic/Button/Button";
8
- import { getUniqueId } from "../Provider/IdProvider";
9
- import style from "./Tag.module.css";
5
+ import Avatar from '../Avatar/Avatar';
6
+ import { Container } from '../Layout';
7
+ import Button from '../semantic/Button/Button';
8
+ import { getUniqueId } from '../Provider/IdProvider';
9
+ import style from './Tag.module.css';
10
10
  /*
11
11
  * eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium',
12
12
  * 'closedanger', 'closeprimary', 'default', 'danger', 'secondary',
@@ -1,13 +1,6 @@
1
1
  import React from 'react';
2
- import { render, cleanup } from "@testing-library/react";
3
- import { setGlobalId } from "../../Provider/IdProvider";
4
- import Tag from "../Tag";
5
- beforeEach(() => {
6
- setGlobalId(0);
7
- });
8
- afterEach(() => {
9
- cleanup();
10
- });
2
+ import Tag from '../Tag';
3
+ import { render } from "@testing-library/react";
11
4
  describe('Tag component', () => {
12
5
  const size = ['small', 'medium'];
13
6
  const palette = ['default', 'danger', 'secondary', 'pureDotted', 'primaryDotted', 'dark', 'pureDarkDotted', 'darkPrimaryDotted', 'defaultLink'];
@@ -1,5 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
- import { propTypes as AvatarPropTypes } from "../../Avatar/props/propTypes.js";
2
+ import { propTypes as AvatarPropTypes } from '../../Avatar/props/propTypes.js';
3
3
  import { IconProps as IconPropTypes } from '@zohodesk/icons/es/Icon/props/propTypes';
4
4
  export const propTypes = {
5
5
  active: PropTypes.bool,
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { defaultProps } from "./props/defaultProps";
3
- import { propTypes } from "./props/propTypes";
2
+ import { defaultProps } from './props/defaultProps';
3
+ import { propTypes } from './props/propTypes';
4
4
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['xmedium', 'medium', 'small', 'default', 'primary', 'secondary'] }] */
5
5
 
6
- import style from "./TextBox.module.css";
6
+ import style from './TextBox.module.css';
7
7
  export default class TextBox extends React.PureComponent {
8
8
  constructor(props) {
9
9
  super(props);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Textbox from "../Textbox";
2
+ import Textbox from '../Textbox';
3
3
  import { render } from "@testing-library/react";
4
4
  describe('Textbox component', () => {
5
5
  const type = ['text', 'password', 'number'];