@zohodesk/components 1.0.0-temp-199.1 → 1.0.0-temp-211

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 (312) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/es/Accordion/Accordion.js +2 -2
  3. package/es/Accordion/AccordionItem.js +4 -4
  4. package/es/Accordion/__tests__/Accordion.spec.js +1 -1
  5. package/es/Accordion/__tests__/AccordionItem.spec.js +1 -1
  6. package/es/Accordion/index.js +2 -2
  7. package/es/Animation/Animation.js +3 -3
  8. package/es/Animation/__tests__/Animation.spec.js +1 -1
  9. package/es/Animation/utils.js +1 -1
  10. package/es/AppContainer/AppContainer.js +9 -9
  11. package/es/AppContainer/__tests__/AppContainer.spec.js +1 -1
  12. package/es/Avatar/Avatar.js +5 -5
  13. package/es/Avatar/__tests__/Avatar.spec.js +1 -1
  14. package/es/AvatarTeam/AvatarTeam.js +4 -4
  15. package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -1
  16. package/es/Button/Button.js +4 -4
  17. package/es/Button/__tests__/Button.spec.js +1 -1
  18. package/es/Button/index.js +2 -2
  19. package/es/Button/props/defaultProps.js +1 -1
  20. package/es/Buttongroup/Buttongroup.js +3 -3
  21. package/es/Buttongroup/__tests__/Buttongroup.spec.js +1 -1
  22. package/es/Card/Card.js +5 -5
  23. package/es/Card/__tests__/Card.spec.js +1 -1
  24. package/es/Card/index.js +4 -4
  25. package/es/CheckBox/CheckBox.js +6 -6
  26. package/es/CheckBox/__tests__/CheckBox.spec.js +1 -1
  27. package/es/DateTime/CalendarView.js +6 -6
  28. package/es/DateTime/DateTime.js +15 -15
  29. package/es/DateTime/DateTimePopupFooter.js +5 -5
  30. package/es/DateTime/DateTimePopupHeader.js +4 -4
  31. package/es/DateTime/DateWidget.js +17 -17
  32. package/es/DateTime/DaysRow.js +3 -3
  33. package/es/DateTime/Time.js +5 -5
  34. package/es/DateTime/YearView.js +6 -6
  35. package/es/DateTime/__tests__/CalendarView.spec.js +1 -1
  36. package/es/DateTime/__tests__/DateTime.spec.js +1 -1
  37. package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +1 -1
  38. package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +1 -1
  39. package/es/DateTime/__tests__/DateWidget.spec.js +1 -1
  40. package/es/DateTime/__tests__/DaysRow.spec.js +1 -1
  41. package/es/DateTime/__tests__/Time.spec.js +1 -1
  42. package/es/DateTime/__tests__/YearView.spec.js +1 -1
  43. package/es/DateTime/dateFormatUtils/dateFormat.js +4 -4
  44. package/es/DateTime/dateFormatUtils/dayChange.js +2 -2
  45. package/es/DateTime/dateFormatUtils/index.js +3 -3
  46. package/es/DateTime/dateFormatUtils/monthChange.js +2 -2
  47. package/es/DateTime/dateFormatUtils/timeChange.js +2 -2
  48. package/es/DateTime/dateFormatUtils/yearChange.js +2 -2
  49. package/es/DateTime/index.js +1 -1
  50. package/es/DateTime/props/propTypes.js +1 -1
  51. package/es/DateTime/validator.js +2 -2
  52. package/es/DropBox/DropBox.js +9 -9
  53. package/es/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  54. package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +1 -1
  55. package/es/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
  56. package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +1 -1
  57. package/es/DropBox/__tests__/DropBox.spec.js +1 -1
  58. package/es/DropBox/css/cssJSLogic.js +1 -1
  59. package/es/DropBox/props/defaultProps.js +1 -1
  60. package/es/DropBox/props/propTypes.js +1 -1
  61. package/es/DropBox/utils/isMobilePopover.js +1 -1
  62. package/es/DropDown/DropDown.js +4 -4
  63. package/es/DropDown/DropDownHeading.js +3 -3
  64. package/es/DropDown/DropDownItem.js +3 -3
  65. package/es/DropDown/DropDownSearch.js +4 -4
  66. package/es/DropDown/DropDownSeparator.js +2 -2
  67. package/es/DropDown/__tests__/DropDown.spec.js +1 -1
  68. package/es/DropDown/__tests__/DropDownHeading.spec.js +1 -1
  69. package/es/DropDown/__tests__/DropDownItem.spec.js +1 -1
  70. package/es/DropDown/__tests__/DropDownSearch.spec.js +1 -1
  71. package/es/DropDown/__tests__/DropDownSeparator.spec.js +1 -1
  72. package/es/DropDown/index.js +7 -7
  73. package/es/DropDown/props/propTypes.js +1 -1
  74. package/es/Heading/Heading.js +4 -4
  75. package/es/Heading/__tests__/Heading.spec.js +1 -1
  76. package/es/Label/Label.js +4 -4
  77. package/es/Label/__tests__/Label.spec.js +1 -1
  78. package/es/Layout/Box.js +4 -4
  79. package/es/Layout/Container.js +4 -4
  80. package/es/Layout/__tests__/Box.spec.js +1 -1
  81. package/es/Layout/__tests__/Container.spec.js +1 -1
  82. package/es/Layout/index.js +2 -2
  83. package/es/ListItem/ListContainer.js +6 -6
  84. package/es/ListItem/ListItem.js +7 -7
  85. package/es/ListItem/ListItem.module.css +18 -85
  86. package/es/ListItem/ListItemWithAvatar.js +10 -10
  87. package/es/ListItem/ListItemWithCheckBox.js +6 -6
  88. package/es/ListItem/ListItemWithIcon.js +7 -7
  89. package/es/ListItem/ListItemWithRadio.js +6 -6
  90. package/es/ListItem/__tests__/ListContainer.spec.js +1 -1
  91. package/es/ListItem/__tests__/ListItem.spec.js +1 -1
  92. package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +1 -1
  93. package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +1 -1
  94. package/es/ListItem/__tests__/ListItemWithIcon.spec.js +1 -1
  95. package/es/ListItem/__tests__/ListItemWithRadio.spec.js +1 -1
  96. package/es/ListItem/index.js +6 -6
  97. package/es/Modal/Modal.js +3 -3
  98. package/es/Modal/__tests__/Modal.spec.js +1 -1
  99. package/es/MultiSelect/AdvancedGroupMultiSelect.js +19 -24
  100. package/es/MultiSelect/AdvancedMultiSelect.js +18 -19
  101. package/es/MultiSelect/EmptyState.js +3 -3
  102. package/es/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  103. package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +1 -1
  104. package/es/MultiSelect/MultiSelect.js +22 -27
  105. package/es/MultiSelect/MultiSelectHeader.js +4 -4
  106. package/es/MultiSelect/MultiSelectWithAvatar.js +16 -16
  107. package/es/MultiSelect/SelectedOptions.js +5 -5
  108. package/es/MultiSelect/Suggestions.js +10 -14
  109. package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +1 -1
  110. package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +1 -1
  111. package/es/MultiSelect/__tests__/EmptyState.spec.js +1 -1
  112. package/es/MultiSelect/__tests__/MultiSelect.spec.js +1 -1
  113. package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +1 -1
  114. package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +1 -1
  115. package/es/MultiSelect/__tests__/SelectedOptions.spec.js +1 -1
  116. package/es/MultiSelect/__tests__/Suggestions.spec.js +1 -1
  117. package/es/MultiSelect/index.js +4 -4
  118. package/es/MultiSelect/props/defaultProps.js +5 -7
  119. package/es/MultiSelect/props/propTypes.js +2 -4
  120. package/es/PopOver/PopOver.js +6 -6
  121. package/es/PopOver/__tests__/PopOver.spec.js +1 -1
  122. package/es/PopOver/index.js +3 -3
  123. package/es/Popup/Popup.js +3 -3
  124. package/es/Provider/AvatarSize.js +1 -1
  125. package/es/Provider/CssProvider.js +1 -1
  126. package/es/Provider/IdProvider.js +2 -2
  127. package/es/Provider/LibraryContext.js +5 -3
  128. package/es/Provider/ZindexProvider.js +2 -2
  129. package/es/Provider/index.js +4 -4
  130. package/es/Radio/Radio.js +5 -5
  131. package/es/Radio/__tests__/Radio.spec.js +1 -1
  132. package/es/Responsive/CustomResponsive.js +7 -7
  133. package/es/Responsive/ResizeComponent.js +2 -2
  134. package/es/Responsive/Responsive.js +6 -6
  135. package/es/Responsive/index.js +3 -3
  136. package/es/Responsive/utils/index.js +1 -1
  137. package/es/Responsive/windowResizeObserver.js +1 -1
  138. package/es/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  139. package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +1 -1
  140. package/es/ResponsiveDropBox/props/propTypes.js +1 -1
  141. package/es/Ribbon/Ribbon.js +3 -3
  142. package/es/Ribbon/__tests__/Ribbon.spec.js +1 -1
  143. package/es/RippleEffect/RippleEffect.js +4 -4
  144. package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
  145. package/es/Select/GroupSelect.js +18 -23
  146. package/es/Select/Select.js +15 -15
  147. package/es/Select/SelectWithAvatar.js +19 -24
  148. package/es/Select/SelectWithIcon.js +15 -17
  149. package/es/Select/__tests__/GroupSelect.spec.js +1 -1
  150. package/es/Select/__tests__/Select.spec.js +1 -1
  151. package/es/Select/__tests__/SelectWithAvatar.spec.js +1 -1
  152. package/es/Select/__tests__/SelectWithIcon.spec.js +1 -1
  153. package/es/Select/index.js +4 -4
  154. package/es/Select/props/defaultProps.js +3 -5
  155. package/es/Select/props/propTypes.js +2 -4
  156. package/es/Stencils/Stencils.js +3 -3
  157. package/es/Stencils/__tests__/Stencils.spec.js +1 -1
  158. package/es/Switch/Switch.js +32 -8
  159. package/es/Switch/Switch.module.css +125 -15
  160. package/es/Switch/__tests__/Switch.spec.js +1 -1
  161. package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +132 -44
  162. package/es/Tab/Tab.js +5 -5
  163. package/es/Tab/TabContent.js +4 -4
  164. package/es/Tab/TabContentWrapper.js +3 -3
  165. package/es/Tab/TabWrapper.js +3 -3
  166. package/es/Tab/Tabs.js +13 -13
  167. package/es/Tab/__tests__/Tab.spec.js +1 -1
  168. package/es/Tab/__tests__/TabContent.spec.js +1 -1
  169. package/es/Tab/__tests__/TabContentWrapper.spec.js +1 -1
  170. package/es/Tab/__tests__/TabWrapper.spec.js +1 -1
  171. package/es/Tab/__tests__/Tabs.spec.js +1 -1
  172. package/es/Tab/index.js +5 -5
  173. package/es/Tag/Tag.js +7 -7
  174. package/es/Tag/__tests__/Tag.spec.js +1 -1
  175. package/es/TextBox/TextBox.js +3 -3
  176. package/es/TextBox/__tests__/TextBox.spec.js +1 -1
  177. package/es/TextBoxIcon/TextBoxIcon.js +6 -6
  178. package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -1
  179. package/es/TextBoxIcon/props/propTypes.js +1 -1
  180. package/es/Textarea/Textarea.js +3 -3
  181. package/es/Textarea/__tests__/Textarea.spec.js +1 -1
  182. package/es/Tooltip/Tooltip.js +6 -6
  183. package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  184. package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +1 -1
  185. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  186. package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +1 -1
  187. package/es/VelocityAnimation/index.js +2 -2
  188. package/es/css.js +37 -37
  189. package/es/deprecated/PortalLayer/PortalLayer.js +3 -3
  190. package/es/index.js +39 -39
  191. package/es/semantic/Button/Button.js +3 -3
  192. package/es/semantic/Button/__tests__/Button.spec.js +1 -1
  193. package/es/semantic/index.js +1 -1
  194. package/es/utils/Common.js +1 -1
  195. package/es/utils/ContextOptimizer.js +1 -1
  196. package/es/utils/cssUtils.js +1 -1
  197. package/es/utils/datetime/common.js +1 -1
  198. package/es/utils/dropDownUtils.js +1 -1
  199. package/es/utils/index.js +1 -1
  200. package/es/v1/Accordion/Accordion.js +2 -2
  201. package/es/v1/Accordion/AccordionItem.js +4 -4
  202. package/es/v1/Accordion/index.js +2 -2
  203. package/es/v1/Animation/Animation.js +3 -3
  204. package/es/v1/Animation/utils.js +1 -1
  205. package/es/v1/AppContainer/AppContainer.js +9 -9
  206. package/es/v1/Avatar/Avatar.js +5 -5
  207. package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
  208. package/es/v1/Button/Button.js +4 -4
  209. package/es/v1/Button/props/defaultProps.js +1 -1
  210. package/es/v1/Buttongroup/Buttongroup.js +3 -3
  211. package/es/v1/Card/Card.js +5 -5
  212. package/es/v1/Card/index.js +4 -4
  213. package/es/v1/CheckBox/CheckBox.js +6 -6
  214. package/es/v1/DateTime/CalendarView.js +7 -7
  215. package/es/v1/DateTime/DateTime.js +15 -15
  216. package/es/v1/DateTime/DateTimePopupFooter.js +5 -5
  217. package/es/v1/DateTime/DateTimePopupHeader.js +4 -4
  218. package/es/v1/DateTime/DateWidget.js +17 -17
  219. package/es/v1/DateTime/DaysRow.js +3 -3
  220. package/es/v1/DateTime/Time.js +5 -5
  221. package/es/v1/DateTime/YearView.js +6 -6
  222. package/es/v1/DateTime/index.js +1 -1
  223. package/es/v1/DateTime/props/propTypes.js +1 -1
  224. package/es/v1/DropBox/DropBox.js +9 -9
  225. package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +6 -6
  226. package/es/v1/DropBox/props/defaultProps.js +1 -1
  227. package/es/v1/DropBox/props/propTypes.js +1 -1
  228. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  229. package/es/v1/DropDown/DropDown.js +4 -4
  230. package/es/v1/DropDown/DropDownHeading.js +3 -3
  231. package/es/v1/DropDown/DropDownItem.js +3 -3
  232. package/es/v1/DropDown/DropDownSearch.js +4 -4
  233. package/es/v1/DropDown/DropDownSeparator.js +2 -2
  234. package/es/v1/DropDown/props/propTypes.js +1 -1
  235. package/es/v1/Heading/Heading.js +4 -4
  236. package/es/v1/Label/Label.js +4 -4
  237. package/es/v1/Layout/Box.js +4 -4
  238. package/es/v1/Layout/Container.js +4 -4
  239. package/es/v1/Layout/index.js +2 -2
  240. package/es/v1/ListItem/ListContainer.js +6 -6
  241. package/es/v1/ListItem/ListItem.js +5 -5
  242. package/es/v1/ListItem/ListItemWithAvatar.js +7 -7
  243. package/es/v1/ListItem/ListItemWithCheckBox.js +6 -6
  244. package/es/v1/ListItem/ListItemWithIcon.js +5 -5
  245. package/es/v1/ListItem/ListItemWithRadio.js +6 -6
  246. package/es/v1/ListItem/index.js +6 -6
  247. package/es/v1/Modal/Modal.js +3 -3
  248. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
  249. package/es/v1/MultiSelect/AdvancedMultiSelect.js +17 -17
  250. package/es/v1/MultiSelect/EmptyState.js +3 -3
  251. package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -5
  252. package/es/v1/MultiSelect/MultiSelect.js +19 -19
  253. package/es/v1/MultiSelect/MultiSelectHeader.js +4 -4
  254. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +16 -16
  255. package/es/v1/MultiSelect/SelectedOptions.js +5 -5
  256. package/es/v1/MultiSelect/Suggestions.js +6 -6
  257. package/es/v1/MultiSelect/index.js +4 -4
  258. package/es/v1/MultiSelect/props/defaultProps.js +1 -1
  259. package/es/v1/PopOver/PopOver.js +6 -6
  260. package/es/v1/Popup/Popup.js +3 -3
  261. package/es/v1/Radio/Radio.js +5 -5
  262. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
  263. package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
  264. package/es/v1/Ribbon/Ribbon.js +3 -3
  265. package/es/v1/RippleEffect/RippleEffect.js +4 -4
  266. package/es/v1/Select/GroupSelect.js +16 -16
  267. package/es/v1/Select/Select.js +15 -15
  268. package/es/v1/Select/SelectWithAvatar.js +17 -17
  269. package/es/v1/Select/SelectWithIcon.js +13 -13
  270. package/es/v1/Select/index.js +4 -4
  271. package/es/v1/Select/props/defaultProps.js +1 -1
  272. package/es/v1/Stencils/Stencils.js +3 -3
  273. package/es/v1/Switch/Switch.js +5 -5
  274. package/es/v1/Tab/Tab.js +5 -5
  275. package/es/v1/Tab/TabContent.js +4 -4
  276. package/es/v1/Tab/TabContentWrapper.js +3 -3
  277. package/es/v1/Tab/TabWrapper.js +3 -3
  278. package/es/v1/Tab/Tabs.js +13 -13
  279. package/es/v1/Tab/index.js +5 -5
  280. package/es/v1/Tag/Tag.js +7 -7
  281. package/es/v1/TextBox/TextBox.js +3 -3
  282. package/es/v1/TextBoxIcon/TextBoxIcon.js +6 -6
  283. package/es/v1/TextBoxIcon/props/propTypes.js +1 -1
  284. package/es/v1/Textarea/Textarea.js +3 -3
  285. package/es/v1/Tooltip/Tooltip.js +6 -6
  286. package/es/v1/Typography/Typography.js +4 -4
  287. package/es/v1/Typography/css/cssJSLogic.js +1 -1
  288. package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
  289. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  290. package/es/v1/semantic/Button/Button.js +3 -3
  291. package/es/v1/semantic/index.js +1 -1
  292. package/lib/ListItem/ListItem.js +2 -2
  293. package/lib/ListItem/ListItem.module.css +18 -85
  294. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  295. package/lib/ListItem/ListItemWithIcon.js +2 -2
  296. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -7
  297. package/lib/MultiSelect/AdvancedMultiSelect.js +1 -3
  298. package/lib/MultiSelect/MultiSelect.js +3 -6
  299. package/lib/MultiSelect/Suggestions.js +4 -8
  300. package/lib/MultiSelect/props/defaultProps.js +4 -6
  301. package/lib/MultiSelect/props/propTypes.js +5 -6
  302. package/lib/Provider/LibraryContext.js +3 -1
  303. package/lib/Select/GroupSelect.js +3 -8
  304. package/lib/Select/SelectWithAvatar.js +3 -8
  305. package/lib/Select/SelectWithIcon.js +3 -5
  306. package/lib/Select/props/defaultProps.js +2 -4
  307. package/lib/Select/props/propTypes.js +2 -4
  308. package/lib/Switch/Switch.js +34 -4
  309. package/lib/Switch/Switch.module.css +125 -15
  310. package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +132 -44
  311. package/package.json +2 -2
  312. package/result.json +1 -1
@@ -37,7 +37,7 @@
37
37
  {
38
38
  --switch_off_bg_color: var(--zdt_switch_effect_off_bg);
39
39
  }
40
- .label:after {
40
+ .thumb {
41
41
  content: '';
42
42
  display: block;
43
43
  position: absolute;
@@ -46,14 +46,21 @@
46
46
  box-shadow: var(--switch_cricle_box_shadow);
47
47
  background-color: var(--switch_circle_bg_color);
48
48
  border-radius: var(--switch_circle_border_radius);
49
+ left: var(--zd_size1) ;
50
+ }
51
+ .onOffIndicationHolder{
52
+ display: flex;
53
+ justify-content: center;
54
+ align-items: center;
55
+ height: 100% ;
49
56
  }
50
57
 
51
58
  .checked+.label {
52
59
  box-shadow: inset 0 0 0 var(--zd_size10) var(--switch_on_bg_color);
53
60
  }
54
-
55
- .checked+.label:after {
56
- right: calc( var(--zd_size1) * -1 ) ;
61
+ .checked+label .thumb {
62
+ right: var(--zd_size1) ;
63
+ left: auto ;
57
64
  }
58
65
 
59
66
  .input {
@@ -65,15 +72,15 @@
65
72
  width: var(--zd_size28) ;
66
73
  }
67
74
  .switch_smallLabel {
68
- height: var(--zd_size9) ;
75
+ height: var(--zd_size12) ;
69
76
  width: var(--zd_size22) ;
70
- top: calc( var(--zd_size2) * -1 ) ;
77
+ bottom: var(--zd_size1) ;
71
78
  left: var(--zd_size2) ;
72
79
  }
73
- .switch_smallLabel:after {
74
- width: var(--zd_size12) ;
75
- height: var(--zd_size12) ;
76
- top: calc( var(--zd_size2) * -1 ) ;
80
+ .switch_smallLabel .thumb{
81
+ width: var(--zd_size10) ;
82
+ height: var(--zd_size10) ;
83
+ top: var(--zd_size1) ;
77
84
  }
78
85
 
79
86
  .medium {
@@ -81,15 +88,21 @@
81
88
  width: var(--zd_size34) ;
82
89
  }
83
90
  .switch_mediumLabel {
84
- height: var(--zd_size13) ;
91
+ height: var(--zd_size16) ;
85
92
  width: var(--zd_size31) ;
86
93
  top: var(--zd_size2) ;
87
94
  left: var(--zd_size2) ;
88
95
  }
89
- .switch_mediumLabel:after {
90
- width: var(--zd_size18) ;
91
- height: var(--zd_size18) ;
92
- top: calc( var(--zd_size3) * -1 ) ;
96
+ .switch_smallLabel.labelOnTrack{
97
+ width: var(--zd_size32) ;
98
+ }
99
+ .switch_mediumLabel.labelOnTrack{
100
+ width: var(--zd_size42) ;
101
+ }
102
+ .switch_mediumLabel .thumb{
103
+ width: var(--zd_size12) ;
104
+ height: var(--zd_size12) ;
105
+ top: var(--zd_size2) ;
93
106
  }
94
107
 
95
108
  .input:disabled+.label {
@@ -125,4 +138,101 @@
125
138
 
126
139
  [dir=rtl] .switch+label {
127
140
  margin-right: var(--zd_size12) ;
141
+ }
142
+ .onOffLabel{
143
+ position: absolute;
144
+ inset: 0;
145
+ z-index: 2;
146
+ }
147
+ .onOffIndication{
148
+ /* css:theme-validation:ignore */
149
+ border: 0.5px solid;
150
+ }
151
+ .offIndication{
152
+ /* css:theme-validation:ignore */
153
+ border-color: #868585;
154
+ border-radius: 50%;
155
+ }
156
+ .onIndication{
157
+ /* css:theme-validation:ignore */
158
+ border-color: var(--switch_on_bg_color);
159
+ border-radius: 5px;
160
+ }
161
+ .thumbIndication.onIndication{
162
+ border-color: var(--zdt_switch_circle_bg);
163
+ }
164
+ .switch_small .thumbIndication.onOffLabel{
165
+ top: calc( var(--zd_size10) * -1 ) ;
166
+ }
167
+ [dir=ltr] .switch_small .thumbIndication.onOffLabel{
168
+ right: var(--zd_size3) ;
169
+ }
170
+ [dir=rtl] .switch_small .thumbIndication.onOffLabel{
171
+ left: var(--zd_size3) ;
172
+ }
173
+ .switch_small .offIndication{
174
+ width: var(--zd_size5) ;
175
+ height: var(--zd_size5) ;
176
+ }
177
+ .switch_small .thumbIndication.offIndication{
178
+ margin: 0 var(--zd_size3) ;
179
+ }
180
+ .switch_small .onIndication{
181
+ width: var(--zd_size1) ;
182
+ height: var(--zd_size5) ;
183
+ }
184
+ .switch_small .thumbIndication.onIndication{
185
+ margin: 0 var(--zd_size5) ;
186
+ }
187
+ .switch_medium .thumbIndication.onOffLabel{
188
+ top: calc( var(--zd_size10) * -1 ) ;
189
+ }
190
+ [dir=ltr] .switch_medium .thumbIndication.onOffLabel{
191
+ right: var(--zd_size3) ;
192
+ }
193
+ [dir=rtl] .switch_medium .thumbIndication.onOffLabel{
194
+ left: var(--zd_size3) ;
195
+ }
196
+ .switch_medium .offIndication{
197
+ width: var(--zd_size7) ;
198
+ height: var(--zd_size7) ;
199
+ }
200
+ .switch_medium .thumbIndication.offIndication{
201
+ margin: 0 var(--zd_size5) ;
202
+ }
203
+ .switch_medium .onIndication{
204
+ width: var(--zd_size1) ;
205
+ height: var(--zd_size7) ;
206
+ }
207
+ .switch_medium .thumbIndication.onIndication{
208
+ margin: 0 var(--zd_size7) ;
209
+ }
210
+ .onOffIndicationText{
211
+ /* css:theme-validation:ignore */
212
+ color: #fff;
213
+ }
214
+ .switch_small .onOffIndicationText{
215
+ font-size: var(--zd_font_size7) ;
216
+ margin: 0 var(--zd_size4) ;
217
+ }
218
+ .switch_medium .onOffIndicationText{
219
+ font-size: var(--zd_font_size10) ;
220
+ margin: 0 var(--zd_size6) ;
221
+ }
222
+ .labelText{
223
+ /* css:theme-validation:ignore */
224
+ color: #000;
225
+ }
226
+ .smallLabelText{
227
+ font-size: var(--zd_font_size11) ;
228
+ margin: var(--zd_size1) 0 0 ;
229
+ }
230
+ .mediumLabelText{
231
+ font-size: var(--zd_font_size12) ;
232
+ }
233
+ [dir=ltr] .mediumLabelText{
234
+ margin : var(--zd_size1) 0 0 var(--zd_size2) ;
235
+ }
236
+ [dir=rtl] .mediumLabelText{
237
+ margin : var(--zd_size1) var(--zd_size2) 0 0 ;
128
238
  }
@@ -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 {
@@ -23,10 +23,14 @@ exports[`Switch rendering the CustomClass 1`] = `
23
23
  value=""
24
24
  />
25
25
  <label
26
- class="label switch_mediumLabel SwtichCustomSwitch"
26
+ class="label switch_mediumLabel SwtichCustomSwitch "
27
27
  for="SwitchID"
28
28
  tabindex="0"
29
- />
29
+ >
30
+ <div
31
+ class="thumb"
32
+ />
33
+ </label>
30
34
  </div>
31
35
  <label
32
36
  class="label subtitle medium primary font_default
@@ -66,10 +70,14 @@ exports[`Switch rendering the CustomProps 1`] = `
66
70
  value=""
67
71
  />
68
72
  <label
69
- class="label switch_mediumLabel "
73
+ class="label switch_mediumLabel "
70
74
  for="SwitchID"
71
75
  tabindex="0"
72
- />
76
+ >
77
+ <div
78
+ class="thumb"
79
+ />
80
+ </label>
73
81
  </div>
74
82
  <label
75
83
  class="label subtitle medium primary font_default
@@ -109,10 +117,14 @@ exports[`Switch rendering the ID 1`] = `
109
117
  value=""
110
118
  />
111
119
  <label
112
- class="label switch_mediumLabel "
120
+ class="label switch_mediumLabel "
113
121
  for="SwitchID"
114
122
  tabindex="0"
115
- />
123
+ >
124
+ <div
125
+ class="thumb"
126
+ />
127
+ </label>
116
128
  </div>
117
129
  <label
118
130
  class="label subtitle medium primary font_default
@@ -152,10 +164,14 @@ exports[`Switch rendering the Name 1`] = `
152
164
  value=""
153
165
  />
154
166
  <label
155
- class="label switch_mediumLabel "
167
+ class="label switch_mediumLabel "
156
168
  for="SwitchID"
157
169
  tabindex="0"
158
- />
170
+ >
171
+ <div
172
+ class="thumb"
173
+ />
174
+ </label>
159
175
  </div>
160
176
  </div>
161
177
  </DocumentFragment>
@@ -185,10 +201,14 @@ exports[`Switch rendering the Title 1`] = `
185
201
  value=""
186
202
  />
187
203
  <label
188
- class="label switch_mediumLabel "
204
+ class="label switch_mediumLabel "
189
205
  for="SwitchID"
190
206
  tabindex="0"
191
- />
207
+ >
208
+ <div
209
+ class="thumb"
210
+ />
211
+ </label>
192
212
  </div>
193
213
  </div>
194
214
  </DocumentFragment>
@@ -217,10 +237,14 @@ exports[`Switch rendering the Value 1`] = `
217
237
  value="true"
218
238
  />
219
239
  <label
220
- class="label switch_mediumLabel "
240
+ class="label switch_mediumLabel "
221
241
  for="SwitchID"
222
242
  tabindex="0"
223
- />
243
+ >
244
+ <div
245
+ class="thumb"
246
+ />
247
+ </label>
224
248
  </div>
225
249
  </div>
226
250
  </DocumentFragment>
@@ -250,10 +274,14 @@ exports[`Switch rendering the checked 1`] = `
250
274
  value=""
251
275
  />
252
276
  <label
253
- class="label switch_mediumLabel "
277
+ class="label switch_mediumLabel "
254
278
  for="SwitchID"
255
279
  tabindex="0"
256
- />
280
+ >
281
+ <div
282
+ class="thumb"
283
+ />
284
+ </label>
257
285
  </div>
258
286
  </div>
259
287
  </DocumentFragment>
@@ -282,12 +310,16 @@ exports[`Switch rendering the dataId 1`] = `
282
310
  value=""
283
311
  />
284
312
  <label
285
- class="label switch_mediumLabel "
313
+ class="label switch_mediumLabel "
286
314
  data-id="data-Switch"
287
315
  data-test-id="data-Switch"
288
316
  for="SwitchID"
289
317
  tabindex="0"
290
- />
318
+ >
319
+ <div
320
+ class="thumb"
321
+ />
322
+ </label>
291
323
  </div>
292
324
  </div>
293
325
  </DocumentFragment>
@@ -315,9 +347,13 @@ exports[`Switch rendering the defult props 1`] = `
315
347
  value=""
316
348
  />
317
349
  <label
318
- class="label switch_mediumLabel "
350
+ class="label switch_mediumLabel "
319
351
  tabindex="0"
320
- />
352
+ >
353
+ <div
354
+ class="thumb"
355
+ />
356
+ </label>
321
357
  </div>
322
358
  </div>
323
359
  </DocumentFragment>
@@ -348,10 +384,14 @@ exports[`Switch rendering the disabled and disableTitle 1`] = `
348
384
  value=""
349
385
  />
350
386
  <label
351
- class="label switch_mediumLabel "
387
+ class="label switch_mediumLabel "
352
388
  for="SwitchID"
353
389
  tabindex="-1"
354
- />
390
+ >
391
+ <div
392
+ class="thumb"
393
+ />
394
+ </label>
355
395
  </div>
356
396
  </div>
357
397
  </DocumentFragment>
@@ -380,9 +420,13 @@ exports[`Switch rendering the isReadOnly 1`] = `
380
420
  value=""
381
421
  />
382
422
  <label
383
- class="label switch_mediumLabel "
423
+ class="label switch_mediumLabel "
384
424
  tabindex="-1"
385
- />
425
+ >
426
+ <div
427
+ class="thumb"
428
+ />
429
+ </label>
386
430
  </div>
387
431
  </div>
388
432
  </DocumentFragment>
@@ -411,10 +455,14 @@ exports[`Switch rendering the labelSize of- danger 1`] = `
411
455
  value=""
412
456
  />
413
457
  <label
414
- class="label switch_mediumLabel "
458
+ class="label switch_mediumLabel "
415
459
  for="SwitchID"
416
460
  tabindex="0"
417
- />
461
+ >
462
+ <div
463
+ class="thumb"
464
+ />
465
+ </label>
418
466
  </div>
419
467
  <label
420
468
  class="label subtitle medium danger font_default
@@ -453,10 +501,14 @@ exports[`Switch rendering the labelSize of- default 1`] = `
453
501
  value=""
454
502
  />
455
503
  <label
456
- class="label switch_mediumLabel "
504
+ class="label switch_mediumLabel "
457
505
  for="SwitchID"
458
506
  tabindex="0"
459
- />
507
+ >
508
+ <div
509
+ class="thumb"
510
+ />
511
+ </label>
460
512
  </div>
461
513
  <label
462
514
  class="label subtitle medium default font_default
@@ -495,10 +547,14 @@ exports[`Switch rendering the labelSize of- large 1`] = `
495
547
  value=""
496
548
  />
497
549
  <label
498
- class="label switch_mediumLabel "
550
+ class="label switch_mediumLabel "
499
551
  for="SwitchID"
500
552
  tabindex="0"
501
- />
553
+ >
554
+ <div
555
+ class="thumb"
556
+ />
557
+ </label>
502
558
  </div>
503
559
  <label
504
560
  class="label subtitle large primary font_default
@@ -537,10 +593,14 @@ exports[`Switch rendering the labelSize of- mandatory 1`] = `
537
593
  value=""
538
594
  />
539
595
  <label
540
- class="label switch_mediumLabel "
596
+ class="label switch_mediumLabel "
541
597
  for="SwitchID"
542
598
  tabindex="0"
543
- />
599
+ >
600
+ <div
601
+ class="thumb"
602
+ />
603
+ </label>
544
604
  </div>
545
605
  <label
546
606
  class="label subtitle medium mandatory font_default
@@ -579,10 +639,14 @@ exports[`Switch rendering the labelSize of- medium 1`] = `
579
639
  value=""
580
640
  />
581
641
  <label
582
- class="label switch_mediumLabel "
642
+ class="label switch_mediumLabel "
583
643
  for="SwitchID"
584
644
  tabindex="0"
585
- />
645
+ >
646
+ <div
647
+ class="thumb"
648
+ />
649
+ </label>
586
650
  </div>
587
651
  <label
588
652
  class="label subtitle medium primary font_default
@@ -621,10 +685,14 @@ exports[`Switch rendering the labelSize of- primary 1`] = `
621
685
  value=""
622
686
  />
623
687
  <label
624
- class="label switch_mediumLabel "
688
+ class="label switch_mediumLabel "
625
689
  for="SwitchID"
626
690
  tabindex="0"
627
- />
691
+ >
692
+ <div
693
+ class="thumb"
694
+ />
695
+ </label>
628
696
  </div>
629
697
  <label
630
698
  class="label subtitle medium primary font_default
@@ -663,10 +731,14 @@ exports[`Switch rendering the labelSize of- secondary 1`] = `
663
731
  value=""
664
732
  />
665
733
  <label
666
- class="label switch_mediumLabel "
734
+ class="label switch_mediumLabel "
667
735
  for="SwitchID"
668
736
  tabindex="0"
669
- />
737
+ >
738
+ <div
739
+ class="thumb"
740
+ />
741
+ </label>
670
742
  </div>
671
743
  <label
672
744
  class="label subtitle medium secondary font_default
@@ -705,10 +777,14 @@ exports[`Switch rendering the labelSize of- small 1`] = `
705
777
  value=""
706
778
  />
707
779
  <label
708
- class="label switch_mediumLabel "
780
+ class="label switch_mediumLabel "
709
781
  for="SwitchID"
710
782
  tabindex="0"
711
- />
783
+ >
784
+ <div
785
+ class="thumb"
786
+ />
787
+ </label>
712
788
  </div>
713
789
  <label
714
790
  class="label subtitle small primary font_default
@@ -747,10 +823,14 @@ exports[`Switch rendering the size of- medium 1`] = `
747
823
  value=""
748
824
  />
749
825
  <label
750
- class="label switch_mediumLabel "
826
+ class="label switch_mediumLabel "
751
827
  for="SwitchID"
752
828
  tabindex="0"
753
- />
829
+ >
830
+ <div
831
+ class="thumb"
832
+ />
833
+ </label>
754
834
  </div>
755
835
  </div>
756
836
  </DocumentFragment>
@@ -779,10 +859,14 @@ exports[`Switch rendering the size of- small 1`] = `
779
859
  value=""
780
860
  />
781
861
  <label
782
- class="label switch_smallLabel "
862
+ class="label switch_smallLabel "
783
863
  for="SwitchID"
784
864
  tabindex="0"
785
- />
865
+ >
866
+ <div
867
+ class="thumb"
868
+ />
869
+ </label>
786
870
  </div>
787
871
  </div>
788
872
  </DocumentFragment>
@@ -811,10 +895,14 @@ exports[`Switch rendering the text 1`] = `
811
895
  value=""
812
896
  />
813
897
  <label
814
- class="label switch_mediumLabel "
898
+ class="label switch_mediumLabel "
815
899
  for="SwitchID"
816
900
  tabindex="0"
817
- />
901
+ >
902
+ <div
903
+ class="thumb"
904
+ />
905
+ </label>
818
906
  </div>
819
907
  <label
820
908
  class="label subtitle medium primary font_default
package/es/Tab/Tab.js CHANGED
@@ -2,11 +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 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';
10
10
  const tabTypes = {
11
11
  alpha: {
12
12
  active: 'alphaActive',
@@ -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,7 +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";
2
+ import { TabWrapper_defaultProps } from './props/defaultProps';
3
+ import { TabWrapper_propTypes } from './props/propTypes';
4
+ import { Container } from '../Layout';
5
5
 
6
6
  function TabWrapper(_ref) {
7
7
  let {
package/es/Tab/Tabs.js CHANGED
@@ -9,20 +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 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';
26
26
 
27
27
  class Tabs extends React.Component {
28
28
  constructor(props) {
@@ -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 {