@zohodesk/components 1.0.0-temp-667 → 1.0.0-temp-999

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 (266) hide show
  1. package/README.md +7 -0
  2. package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +1 -1
  3. package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
  4. package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
  5. package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
  6. package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
  7. package/es/AppContainer/AppContainer.js +1 -1
  8. package/es/Avatar/Avatar.js +1 -1
  9. package/es/Avatar/Avatar.module.css +9 -11
  10. package/es/AvatarTeam/AvatarTeam.js +1 -1
  11. package/es/AvatarTeam/AvatarTeam.module.css +7 -21
  12. package/es/Button/Button.module.css +24 -97
  13. package/es/Buttongroup/Buttongroup.module.css +8 -37
  14. package/es/CheckBox/CheckBox.js +1 -1
  15. package/es/CheckBox/CheckBox.module.css +19 -29
  16. package/es/DateTime/DateTime.module.css +12 -39
  17. package/es/DateTime/DateWidget.module.css +5 -9
  18. package/es/DateTime/YearView.module.css +7 -17
  19. package/es/DropBox/DropBox.js +1 -1
  20. package/es/DropBox/DropBox.module.css +11 -47
  21. package/es/DropDown/DropDownHeading.module.css +3 -7
  22. package/es/DropDown/DropDownItem.module.css +6 -32
  23. package/es/ListItem/ListContainer.js +1 -1
  24. package/es/ListItem/ListItem.js +1 -1
  25. package/es/ListItem/ListItem.module.css +33 -69
  26. package/es/ListItem/ListItemWithAvatar.js +1 -1
  27. package/es/ListItem/ListItemWithCheckBox.js +1 -1
  28. package/es/ListItem/ListItemWithIcon.js +1 -1
  29. package/es/ListItem/ListItemWithRadio.js +1 -1
  30. package/es/Modal/Modal.js +1 -1
  31. package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
  32. package/es/MultiSelect/AdvancedMultiSelect.module.css +113 -0
  33. package/es/MultiSelect/MultiSelect.module.css +11 -28
  34. package/es/MultiSelect/SelectedOptions.js +1 -1
  35. package/es/MultiSelect/SelectedOptions.module.css +2 -8
  36. package/es/MultiSelect/Suggestions.js +1 -1
  37. package/es/PopOver/PopOver.module.css +1 -1
  38. package/es/Popup/Popup.js +1 -1
  39. package/es/Radio/Radio.module.css +10 -18
  40. package/es/Responsive/ResizeComponent.js +82 -15
  41. package/es/Responsive/ResizeObserver.js +6 -2
  42. package/es/Responsive/docs/style.module.css +8 -17
  43. package/es/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  44. package/es/Ribbon/Ribbon.module.css +28 -93
  45. package/es/RippleEffect/RippleEffect.module.css +44 -37
  46. package/es/Select/Select.js +8 -30
  47. package/es/Select/Select.module.css +2 -12
  48. package/es/Select/docs/Select__default.docs.js +1 -1
  49. package/es/Stencils/Stencils.module.css +3 -21
  50. package/es/Switch/Switch.js +1 -1
  51. package/es/Switch/Switch.module.css +9 -9
  52. package/es/Tab/Tab.js +1 -1
  53. package/es/Tab/Tab.module.css +7 -16
  54. package/es/Tab/TabWrapper.js +1 -1
  55. package/es/Tab/Tabs.js +1 -1
  56. package/es/Tab/Tabs.module.css +8 -42
  57. package/es/Tab/docs/tabdocs.module.css +1 -1
  58. package/es/Tag/Tag.module.css +14 -36
  59. package/es/TextBox/TextBox.js +1 -1
  60. package/es/TextBox/TextBox.module.css +11 -7
  61. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  62. package/es/TextBoxIcon/TextBoxIcon.module.css +5 -12
  63. package/es/Textarea/Textarea.js +1 -1
  64. package/es/Textarea/Textarea.module.css +7 -6
  65. package/es/Tooltip/Tooltip.module.css +8 -9
  66. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
  67. package/es/beta/FocusRing/FocusRing.module.css +26 -51
  68. package/es/common/animation.module.css +21 -219
  69. package/es/common/basicReset.module.css +12 -2
  70. package/es/common/common.module.css +18 -62
  71. package/es/common/customscroll.module.css +21 -17
  72. package/es/common/docStyle.module.css +32 -79
  73. package/es/common/transition.module.css +10 -50
  74. package/es/deprecated/AdvancedMultiSelect.module.css +8 -22
  75. package/es/semantic/Button/semanticButton.module.css +3 -3
  76. package/lib/Accordion/Accordion.js +2 -2
  77. package/lib/Accordion/AccordionItem.js +2 -2
  78. package/lib/Accordion/docs/Accordion__Demo.docs.js +2 -2
  79. package/lib/Animation/Animation.js +2 -2
  80. package/lib/Animation/docs/Animation__default.docs.js +2 -2
  81. package/lib/Animation/docs/Animation__fadeIn.docs.js +2 -2
  82. package/lib/Animation/docs/Animation__scaleIn.docs.js +2 -2
  83. package/lib/Animation/docs/Animation__skewIn.docs.js +2 -2
  84. package/lib/Animation/docs/Animation__slideDown.docs.js +2 -2
  85. package/lib/Animation/docs/Animation__slideLeft.docs.js +2 -2
  86. package/lib/Animation/docs/Animation__zoomIn.docs.js +2 -2
  87. package/lib/AppContainer/AppContainer.js +4 -11
  88. package/lib/AppContainer/docs/AppContainer__default.docs.js +2 -2
  89. package/lib/Avatar/Avatar.js +3 -3
  90. package/lib/Avatar/docs/Avatar__custom.docs.js +2 -2
  91. package/lib/Avatar/docs/Avatar__default.docs.js +2 -2
  92. package/lib/Avatar/docs/Avatar__palette.docs.js +2 -2
  93. package/lib/Avatar/docs/Avatar__text.docs.js +2 -2
  94. package/lib/AvatarTeam/AvatarTeam.js +3 -3
  95. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +2 -2
  96. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +2 -2
  97. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +2 -2
  98. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +2 -2
  99. package/lib/Button/Button.js +2 -2
  100. package/lib/Button/docs/Button__custom.docs.js +2 -2
  101. package/lib/Button/docs/Button__default.docs.js +2 -2
  102. package/lib/Buttongroup/Buttongroup.js +2 -2
  103. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +2 -2
  104. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +2 -2
  105. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +2 -2
  106. package/lib/Card/Card.js +2 -2
  107. package/lib/Card/docs/Card__Custom.docs.js +2 -2
  108. package/lib/Card/docs/Card__Default.docs.js +2 -2
  109. package/lib/Card/docs/Card__Scroll.docs.js +2 -2
  110. package/lib/CheckBox/CheckBox.js +4 -5
  111. package/lib/CheckBox/CheckBox.module.css +8 -12
  112. package/lib/CheckBox/docs/CheckBox__custom.docs.js +2 -2
  113. package/lib/CheckBox/docs/CheckBox__default.docs.js +2 -2
  114. package/lib/DateTime/CalendarView.js +2 -2
  115. package/lib/DateTime/DateTime.js +22 -50
  116. package/lib/DateTime/DateTime.module.css +1 -1
  117. package/lib/DateTime/DateTimePopupFooter.js +2 -2
  118. package/lib/DateTime/DateTimePopupHeader.js +2 -2
  119. package/lib/DateTime/DateWidget.js +4 -14
  120. package/lib/DateTime/DateWidget.module.css +4 -0
  121. package/lib/DateTime/DaysRow.js +2 -2
  122. package/lib/DateTime/Time.js +2 -2
  123. package/lib/DateTime/YearView.js +2 -2
  124. package/lib/DateTime/YearView.module.css +0 -1
  125. package/lib/DateTime/docs/DateTime__default.docs.js +2 -2
  126. package/lib/DateTime/docs/DateWidget__default.docs.js +2 -2
  127. package/lib/DropBox/DropBox.js +4 -4
  128. package/lib/DropBox/docs/DropBox__custom.docs.js +2 -2
  129. package/lib/DropBox/docs/DropBox__customOrder.docs.js +2 -2
  130. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +2 -2
  131. package/lib/DropBox/docs/DropBox__position.docs.js +2 -2
  132. package/lib/DropBox/docs/DropBox__size.docs.js +2 -2
  133. package/lib/DropDown/DropDown.js +2 -2
  134. package/lib/DropDown/DropDownHeading.js +2 -2
  135. package/lib/DropDown/DropDownItem.js +2 -2
  136. package/lib/DropDown/DropDownSearch.js +2 -2
  137. package/lib/DropDown/DropDownSeparator.js +2 -2
  138. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +2 -2
  139. package/lib/DropDown/docs/DropDownHeading__default.docs.js +2 -2
  140. package/lib/Label/Label.js +2 -2
  141. package/lib/Label/docs/Label__clipped.docs.js +2 -2
  142. package/lib/Label/docs/Label__custom.docs.js +2 -2
  143. package/lib/Label/docs/Label__palette.docs.js +2 -2
  144. package/lib/Label/docs/Label__size.docs.js +2 -2
  145. package/lib/Label/docs/Label__type.docs.js +2 -2
  146. package/lib/Layout/docs/Layout__Hidden.docs.js +2 -2
  147. package/lib/Layout/docs/Layout__default.docs.js +2 -2
  148. package/lib/Layout/docs/Layout__four_Column.docs.js +2 -2
  149. package/lib/Layout/docs/Layout__three_Column.docs.js +2 -2
  150. package/lib/Layout/docs/Layout__two_Column.docs.js +2 -2
  151. package/lib/LightNightMode/Colors.json +397 -496
  152. package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -25
  153. package/lib/ListItem/ListContainer.js +5 -8
  154. package/lib/ListItem/ListItem.js +4 -4
  155. package/lib/ListItem/ListItem.module.css +19 -18
  156. package/lib/ListItem/ListItemWithAvatar.js +4 -4
  157. package/lib/ListItem/ListItemWithCheckBox.js +4 -4
  158. package/lib/ListItem/ListItemWithIcon.js +4 -4
  159. package/lib/ListItem/ListItemWithRadio.js +4 -4
  160. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +2 -2
  161. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +2 -2
  162. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +2 -2
  163. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +2 -2
  164. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +2 -2
  165. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +2 -2
  166. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +2 -2
  167. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +2 -2
  168. package/lib/ListItem/docs/ListItem__custom.docs.js +2 -2
  169. package/lib/ListItem/docs/ListItem__default.docs.js +2 -2
  170. package/lib/Modal/Modal.js +3 -3
  171. package/lib/Modal/__docs__/Modal__default.docs.js +2 -2
  172. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +88 -120
  173. package/lib/MultiSelect/AdvancedMultiSelect.js +62 -99
  174. package/lib/{deprecated → MultiSelect}/AdvancedMultiSelect.module.css +1 -1
  175. package/lib/MultiSelect/EmptyState.js +2 -2
  176. package/lib/MultiSelect/MultiSelect.js +64 -90
  177. package/lib/MultiSelect/MultiSelect.module.css +2 -15
  178. package/lib/MultiSelect/MultiSelectHeader.js +2 -2
  179. package/lib/MultiSelect/MultiSelectWithAvatar.js +55 -80
  180. package/lib/MultiSelect/SelectedOptions.js +3 -3
  181. package/lib/MultiSelect/Suggestions.js +3 -3
  182. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -2
  183. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +2 -2
  184. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -2
  185. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -2
  186. package/lib/PopOver/PopOver.js +6 -13
  187. package/lib/PopOver/docs/PopOver__default.docs.js +2 -2
  188. package/lib/Popup/Popup.js +3 -3
  189. package/lib/Popup/__tests__/Popup.spec.js +2 -2
  190. package/lib/Provider/Config.js +1 -3
  191. package/lib/Provider/docs/Provider_Id__Class.docs.js +2 -2
  192. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +2 -2
  193. package/lib/Provider.js +100 -34
  194. package/lib/Radio/Radio.js +2 -2
  195. package/lib/Radio/Radio.module.css +6 -8
  196. package/lib/Radio/docs/Radio__custom.docs.js +2 -2
  197. package/lib/Radio/docs/Radio__default.docs.js +2 -2
  198. package/lib/Responsive/ResizeComponent.js +2 -2
  199. package/lib/Responsive/Responsive.js +2 -2
  200. package/lib/Responsive/docs/Responsive__Custom.docs.js +2 -2
  201. package/lib/Responsive/docs/Responsive__default.docs.js +2 -2
  202. package/lib/Responsive/sizeObservers.js +3 -3
  203. package/lib/Ribbon/Ribbon.js +2 -2
  204. package/lib/Ribbon/docs/Ribbon__custom.docs.js +2 -2
  205. package/lib/Ribbon/docs/Ribbon__default.docs.js +2 -2
  206. package/lib/RippleEffect/RippleEffect.module.css +15 -37
  207. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +2 -2
  208. package/lib/Select/GroupSelect.js +79 -102
  209. package/lib/Select/Select.js +87 -142
  210. package/lib/Select/Select.module.css +0 -6
  211. package/lib/Select/SelectWithAvatar.js +73 -98
  212. package/lib/Select/SelectWithIcon.js +76 -99
  213. package/lib/Select/docs/GroupSelect__default.docs.js +2 -2
  214. package/lib/Select/docs/SelectWithAvatar__default.docs.js +2 -2
  215. package/lib/Select/docs/SelectWithIcon__default.docs.js +2 -2
  216. package/lib/Select/docs/Select__default.docs.js +3 -3
  217. package/lib/Stencils/Stencils.js +2 -2
  218. package/lib/Stencils/docs/Stencils__custom.docs.js +2 -2
  219. package/lib/Stencils/docs/Stencils__default.docs.js +2 -2
  220. package/lib/Switch/Switch.js +3 -3
  221. package/lib/Switch/Switch.module.css +2 -3
  222. package/lib/Switch/docs/Switch__custom.docs.js +2 -2
  223. package/lib/Switch/docs/Switch__default.docs.js +2 -2
  224. package/lib/Tab/Tab.js +1 -1
  225. package/lib/Tab/TabWrapper.js +1 -1
  226. package/lib/Tab/Tabs.js +47 -70
  227. package/lib/Tab/Tabs.module.css +1 -2
  228. package/lib/Tab/docs/Tab__default.docs.js +2 -2
  229. package/lib/Tag/Tag.js +3 -3
  230. package/lib/Tag/Tag.module.css +2 -6
  231. package/lib/Tag/docs/Tag__custom.docs.js +2 -2
  232. package/lib/Tag/docs/Tag__default.docs.js +2 -2
  233. package/lib/TextBox/TextBox.js +3 -3
  234. package/lib/TextBox/docs/TextBox__custom.docs.js +2 -2
  235. package/lib/TextBox/docs/TextBox__default.docs.js +2 -2
  236. package/lib/TextBox/docs/TextBox__size.docs.js +2 -2
  237. package/lib/TextBox/docs/TextBox__variant.docs.js +2 -2
  238. package/lib/TextBoxIcon/TextBoxIcon.js +3 -3
  239. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +2 -2
  240. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +2 -2
  241. package/lib/Textarea/Textarea.js +3 -3
  242. package/lib/Textarea/docs/Textarea__animated.docs.js +2 -2
  243. package/lib/Textarea/docs/Textarea__custom.docs.js +2 -2
  244. package/lib/Textarea/docs/Textarea__default.docs.js +2 -2
  245. package/lib/Textarea/docs/Textarea__disabled.docs.js +2 -2
  246. package/lib/Tooltip/Tooltip.js +10 -62
  247. package/lib/Tooltip/Tooltip.module.css +1 -6
  248. package/lib/Tooltip/__tests__/Tooltip.spec.js +2 -2
  249. package/lib/Tooltip/docs/Tooltip__default.docs.js +13 -52
  250. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -2
  251. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
  252. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  253. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
  254. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +2 -2
  255. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +2 -2
  256. package/lib/common/docStyle.module.css +2 -6
  257. package/lib/css.js +2 -0
  258. package/lib/deprecated/PortalLayer/PortalLayer.js +2 -2
  259. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -2
  260. package/lib/index.js +1 -10
  261. package/lib/semantic/Button/Button.js +2 -2
  262. package/lib/semantic/Button/docs/Button__default.docs.js +2 -2
  263. package/package.json +6 -5
  264. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +0 -130
  265. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +0 -6
  266. package/lib/deprecated/advancedMultiSelectVariableJson.js +0 -82
@@ -11,35 +11,31 @@
11
11
  --ribbon_line_height: normal;
12
12
 
13
13
  /* flag ribbon default variable */
14
+ --ribbon_flag_border_width: var(--zd_size14) var(--zd_size12) var(--zd_size14) 0/*rtl: var(--zd_size14) 0 var(--zd_size14) var(--zd_size12)*/;
14
15
 
15
16
  /* tag ribbon default variables */
16
17
  --ribbon_tag_before_top: var(--zd_size3);
18
+ --ribbon_tag_before_border_width: 1px 0 0 1px/*rtl: 1px 1px 0 0*/;
17
19
  --ribbon_tag_before_border_style: solid;
18
20
  --ribbon_tag_before_border_color: var(--zdt_ribbon_default_tag_border);
19
21
  --ribbon_tag_before_width: var(--zd_size20);
20
22
  --ribbon_tag_before_height: var(--zd_size20);
21
23
  --ribbon_tag_before_left: calc(var(--zd_size10) * -1);
22
24
  --ribbon_tag_before_border_radius: 3px 0 0 0;
23
- }[dir=ltr] .varClass {
24
- --ribbon_flag_border_width: var(--zd_size14) var(--zd_size12) var(--zd_size14) 0/*rtl: var(--zd_size14) 0 var(--zd_size14) var(--zd_size12)*/;
25
- --ribbon_tag_before_border_width: 1px 0 0 1px/*rtl: 1px 1px 0 0*/;
26
- }[dir=rtl] .varClass {
27
- --ribbon_flag_border_width: var(--zd_size14) 0 var(--zd_size14) var(--zd_size12);
28
- --ribbon_tag_before_border_width: 1px 1px 0 0;
29
25
  }
30
26
  .basic {
31
27
  composes: varClass;
32
28
  position: relative;
29
+ padding: var(--ribbon_padding);
33
30
  color: var(--ribbon_text_color);
34
31
  text-transform: var(--ribbon_text_transform);
35
32
  font-size: var(--ribbon_font_size);
36
- line-height: var(--ribbon_line_height);
37
- padding: var(--ribbon_padding);
38
33
  background-color: var(--ribbon_bg_color);
39
34
  box-shadow: var(--ribbon_box_shadow);
40
35
  border-width: var(--ribbon_border_width);
41
36
  border-style: solid;
42
37
  border-color: var(--ribbon_border_color);
38
+ line-height: var(--ribbon_line_height);
43
39
  }
44
40
  .default,
45
41
  .flag,
@@ -53,11 +49,11 @@
53
49
 
54
50
  .default {
55
51
  composes: semibold from '../common/common.module.css';
52
+ text-align: center;
56
53
  display: block;
57
54
  --ribbon_padding: var(--zd_size5) var(--zd_size20);
58
55
  --ribbon_text_color: var(--zdt_ribbon_white_text);
59
56
  --ribbon_text_transform: uppercase;
60
- text-align: center;
61
57
  }
62
58
  .small {
63
59
  --ribbon_font_size: var(--zd_font_size9);
@@ -172,36 +168,23 @@
172
168
  .flag {
173
169
  composes: dotted from '../common/common.module.css';
174
170
  display: block;
171
+ --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6)/*rtl: var(--zd_size4) var(--zd_size6) var(--zd_size4) var(--zd_size24)*/;
175
172
  --ribbon_text_color: var(--zdt_ribbon_white_text);
176
173
  --ribbon_line_height: var(--zd_size20);
177
174
  --ribbon_text_transform: uppercase;
178
175
  }
179
-
180
- [dir=ltr] .flag {
181
- --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6)/*rtl: var(--zd_size4) var(--zd_size6) var(--zd_size4) var(--zd_size24)*/;
182
- }
183
-
184
- [dir=rtl] .flag {
185
- --ribbon_padding: var(--zd_size4) var(--zd_size6) var(--zd_size4) var(--zd_size24);
186
- }
187
176
  .flag::after {
188
177
  position: absolute;
189
178
  top: -1px;
179
+ right: -1px;
190
180
  bottom: -1px;
191
181
  content: '';
192
182
  width: var(--zd_size12);
193
183
  border-style: solid;
194
- transform: translateZ(0);
195
- border-width: var(--ribbon_flag_border_width);
196
- }
197
- [dir=ltr] .flag::after {
198
- right: -1px;
199
184
  border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border)
200
185
  var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border);
201
- }
202
- [dir=rtl] .flag::after {
203
- left: -1px;
204
- border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border);
186
+ transform: translateZ(0);
187
+ border-width: var(--ribbon_flag_border_width);
205
188
  }
206
189
  .plain {
207
190
  display: inline-block;
@@ -210,11 +193,11 @@
210
193
  .ribbon {
211
194
  composes: semibold from '../common/common.module.css';
212
195
  display: block;
196
+ text-align: center;
213
197
  --ribbon_text_color: var(--zdt_ribbon_white_text);
214
198
  --ribbon_text_transform: uppercase;
215
199
  --ribbon_padding: var(--zd_size6) var(--zd_size10);
216
200
  --ribbon_line_height: var(--zd_size20);
217
- text-align: center;
218
201
  }
219
202
  .ribbon::after,
220
203
  .ribbon::before {
@@ -223,81 +206,51 @@
223
206
  top: 100%;
224
207
  height: var(--zd_size10);
225
208
  width: var(--zd_size10);
226
- }
227
- .ribbon::after, .ribbon::before {
228
209
  border-style: solid;
229
210
  border-width: 5px;
230
- background-color: inherit;
231
- }
232
- [dir=ltr] .ribbon::after, [dir=ltr] .ribbon::before {
233
211
  border-color: transparent transparent var(--zdt_ribbon_flag_white_border)
234
212
  var(--zdt_ribbon_flag_white_border);
213
+ background-color: inherit;
235
214
  }
236
- [dir=rtl] .ribbon::after, [dir=rtl] .ribbon::before {
237
- border-color: transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border) transparent;
238
- }
239
- [dir=ltr] .ribbon::after {
215
+ .ribbon::after {
240
216
  right: 0;
241
217
  }
242
- [dir=rtl] .ribbon::after {
243
- left: 0;
244
- }
245
- [dir=ltr] .ribbon::before {
218
+ .ribbon::before {
246
219
  left: 0;
247
220
  transform: rotateY(180deg);
248
221
  }
249
- [dir=rtl] .ribbon::before {
250
- right: 0;
251
- transform: rotateY(-180deg);
252
- }
253
222
 
254
223
  .tag {
255
224
  composes: semibold from '../common/common.module.css';
256
225
  display: inline-block;
257
- height: var(--zd_size28);
258
226
  border-style: solid;
259
227
  border-color: var(--zdt_ribbon_default_tag_border);
260
- }
261
-
262
- [dir=ltr] .tag {
263
228
  border-width: 1px 1px 1px 0/*rtl: 1px 0 1px 1px*/;
264
229
  border-radius: 0 3px 3px 0/*rtl: 3px 0 0 3px*/;
265
230
  margin-left: var(--zd_size13);
231
+ height: var(--zd_size28);
266
232
  padding: var(--zd_size6) var(--zd_size8) var(--zd_size6) var(--zd_size5)/*rtl: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8)*/;
267
233
  }
268
-
269
- [dir=rtl] .tag {
270
- border-width: 1px 0 1px 1px;
271
- border-radius: 3px 0 0 3px;
272
- margin-right: var(--zd_size13);
273
- padding: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8);
274
- }
275
234
  .tag::before {
276
235
  position: absolute;
277
236
  content: '';
278
- top: var(--ribbon_tag_before_top);
279
- width: var(--ribbon_tag_before_width);
280
- height: var(--ribbon_tag_before_height);
237
+ transform: rotate(-45deg);
281
238
  background-color: inherit;
239
+ top: var(--ribbon_tag_before_top);
282
240
  border-style: var(--ribbon_tag_before_border_style);
283
241
  border-color: var(--ribbon_tag_before_border_color);
284
242
  border-width: var(--ribbon_tag_before_border_width);
285
- border-radius: var(--ribbon_tag_before_border_radius);
286
- }
287
- [dir=ltr] .tag::before {
288
- transform: rotate(-45deg);
243
+ width: var(--ribbon_tag_before_width);
244
+ height: var(--ribbon_tag_before_height);
289
245
  left: var(--ribbon_tag_before_left);
290
- }
291
- [dir=rtl] .tag::before {
292
- transform: rotate(45deg);
293
- right: var(--ribbon_tag_before_left);
246
+ border-radius: var(--ribbon_tag_before_border_radius);
294
247
  }
295
248
 
296
249
  .box {
297
250
  display: inline-block;
251
+ border-radius: 3px;
298
252
  --ribbon_bg_color: var(--zdt_ribbon_white_bg);
299
253
  --ribbon_padding: var(--zd_size5) var(--zd_size8);
300
- border-radius: 3px;
301
254
  }
302
255
  .stamp {
303
256
  display: inline-block;
@@ -306,15 +259,15 @@
306
259
  }
307
260
  .sticker {
308
261
  display: block;
309
- height: var(--zd_size18);
310
- line-height: var(--zd_size11);
311
- --ribbon_text_color: var(--zdt_ribbon_white_text);
312
- --ribbon_text_transform: uppercase;
313
262
  text-align: center;
314
263
  border-width: 1px 0;
315
264
  border-style: solid;
316
265
  border-color: var(--zdt_ribbon_flag_white_border);
266
+ height: var(--zd_size18);
317
267
  padding: var(--zd_size3) var(--zd_size10);
268
+ line-height: var(--zd_size11);
269
+ --ribbon_text_color: var(--zdt_ribbon_white_text);
270
+ --ribbon_text_transform: uppercase;
318
271
  }
319
272
  .after,
320
273
  .before {
@@ -323,18 +276,12 @@
323
276
  bottom: 0;
324
277
  width: var(--zd_size10);
325
278
  }
326
- [dir=ltr] .after {
279
+ .after {
327
280
  right: calc(var(--zd_size2) * -1);
328
281
  }
329
- [dir=rtl] .after {
330
- left: calc(var(--zd_size2) * -1);
331
- }
332
- [dir=ltr] .before {
282
+ .before {
333
283
  left: calc(var(--zd_size8) * -1);
334
284
  }
335
- [dir=rtl] .before {
336
- right: calc(var(--zd_size8) * -1);
337
- }
338
285
  .after::after,
339
286
  .after::before,
340
287
  .before::after,
@@ -343,15 +290,8 @@
343
290
  height: var(--zd_size7);
344
291
  width: var(--zd_size7);
345
292
  content: '';
346
- }
347
- .after::after, .after::before, .before::after, .before::before {
348
- background-color: var(--zdt_ribbon_white_bg);
349
- }
350
- [dir=ltr] .after::after, [dir=ltr] .after::before, [dir=ltr] .before::after, [dir=ltr] .before::before {
351
293
  transform: rotate(45deg);
352
- }
353
- [dir=rtl] .after::after, [dir=rtl] .after::before, [dir=rtl] .before::after, [dir=rtl] .before::before {
354
- transform: rotate(-45deg);
294
+ background-color: var(--zdt_ribbon_white_bg);
355
295
  }
356
296
  .after::after,
357
297
  .before::after {
@@ -363,15 +303,10 @@
363
303
  }
364
304
  .children {
365
305
  display: inline-block;
306
+ margin-right: var(--zd_size4);
366
307
  vertical-align: top;
367
308
  line-height: 0;
368
309
  }
369
- [dir=ltr] .children {
370
- margin-right: var(--zd_size4);
371
- }
372
- [dir=rtl] .children {
373
- margin-left: var(--zd_size4);
374
- }
375
310
  .childText {
376
311
  position: relative;
377
312
  }
@@ -8,61 +8,67 @@
8
8
  .default.defaultHover {
9
9
  border-color: var(--zdt_rippleeffect_hover_border);
10
10
  }
11
- .hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
12
- /* .hoverEffect:focus.primary.borderHover */
13
- {
11
+ .hoverEffect:hover.primary.defaultHover,
12
+ .hoverEffect:focus.primary.defaultHover,
13
+ .hoverEffect:hover.primary.borderHover,
14
+ .hoverEffect:focus.primary.borderHover {
14
15
  border-color: var(--zdt_rippleeffect_primary_border);
15
16
  }
16
- .primary.defaultHover, .hoverEffect:hover.primary.active.border
17
- /* .hoverEffect:focus.primary.active.border */
18
- {
17
+ .primary.defaultHover,
18
+ .hoverEffect:hover.primary.active.border,
19
+ .hoverEffect:focus.primary.active.border {
19
20
  border-color: var(--zdt_rippleeffect_primary_active_border);
20
21
  }
21
- .primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
22
- /* .hoverEffect:focus.primaryLight.borderHover */
23
- {
22
+ .primaryLight.defaultHover,
23
+ .hoverEffect:hover.primaryLight.borderHover,
24
+ .hoverEffect:focus.primaryLight.borderHover {
24
25
  border-color: var(--zdt_rippleeffect_primary_light_border);
25
26
  }
26
- .green.defaultHover, .hoverEffect:hover.green.borderHover
27
- /* .hoverEffect:focus.green.borderHover */
28
- {
27
+ .green.defaultHover,
28
+ .hoverEffect:hover.green.borderHover,
29
+ .hoverEffect:focus.green.borderHover {
29
30
  border-color: var(--zdt_rippleeffect_green_border);
30
31
  }
31
- .hoverEffect:hover.default.defaultHover
32
- /* .hoverEffect:focus.default.defaultHover */
33
- {
32
+ .hoverEffect:hover.default.defaultHover,
33
+ .hoverEffect:focus.default.defaultHover {
34
34
  border-color: var(--zdt_rippleeffect_slate_border);
35
35
  }
36
- .hoverEffect:hover.default.borderHover
37
- /* .hoverEffect:focus.default.borderHover */
38
- {
36
+ .hoverEffect:hover.default.borderHover,
37
+ .hoverEffect:focus.default.borderHover {
39
38
  border-color: var(--zdt_rippleeffect_navy_border);
40
39
  }
41
- .hoverEffect:hover.default.bgHover
42
- /* .hoverEffect:focus.default.bgHover */
43
- {
40
+ .hoverEffect:hover.default.bgHover,
41
+ .hoverEffect:focus.default.bgHover {
44
42
  background-color: var(--zdt_rippleeffect_hover_bg);
45
43
  }
46
- .hoverEffect:hover.primaryLight.bgHover
47
- /* .hoverEffect:focus.primaryLight.bgHover */
48
- {
44
+ .hoverEffect:hover.primaryLight.bgHover,
45
+ .hoverEffect:focus.primaryLight.bgHover {
49
46
  background-color: var(--zdt_rippleeffect_primary_light_bg);
50
47
  }
51
48
  .primaryFilled {
52
49
  background-color: var(--zdt_rippleeffect_primary_bg);
53
50
  }
54
- .hoverEffect:hover.primaryFilled, .primaryFilled.active {
51
+ .hoverEffect:hover.primaryFilled,
52
+ .hoverEffect:focus.primaryFilled,
53
+ .primaryFilled.active {
55
54
  background-color: var(--zdt_rippleeffect_primaryfilled_bg);
56
55
  }
57
- .hoverEffect:hover.green.bgHover
58
- /* .hoverEffect:focus.green.bgHover */
59
- {
56
+ .hoverEffect:hover.green.bgHover,
57
+ .hoverEffect:focus.green.bgHover {
60
58
  background-color: var(--zdt_rippleeffect_green_bg);
61
59
  }
62
- .default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
60
+ .default.active,
61
+ .hoverEffect:hover.default.active,
62
+ .hoverEffect:focus.default.active,
63
+ .primaryLight.active,
64
+ .primaryDark.active {
63
65
  background-color: var(--zdt_rippleeffect_primary_light_bg);
64
66
  }
65
- .default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
67
+ .default.active.border,
68
+ .hoverEffect:hover.default.active.border,
69
+ .hoverEffect:focus.default.active.border,
70
+ .primaryLight.active.border,
71
+ .primaryDark.active.border {
66
72
  border-color: var(--zdt_rippleeffect_primary_light_border);
67
73
  }
68
74
  .green.active {
@@ -74,17 +80,18 @@
74
80
  .primary.active {
75
81
  background-color: var(--zdt_rippleeffect_primary_bg);
76
82
  }
77
- .danger.defaultHover, .hoverEffect:hover.danger.borderHover
78
- /* .hoverEffect:focus.danger.borderHover */
79
- {
83
+ .danger.defaultHover,
84
+ .hoverEffect:hover.danger.borderHover,
85
+ .hoverEffect:focus.danger.borderHover {
80
86
  border-color: var(--zdt_rippleeffect_danger_border);
81
87
  }
82
- .hoverEffect:hover.danger.bgHover, .danger.active {
88
+ .hoverEffect:hover.danger.bgHover,
89
+ .hoverEffect:focus.danger.bgHover,
90
+ .danger.active {
83
91
  background-color: var(--zdt_rippleeffect_danger_bg);
84
92
  }
85
- .hoverEffect:hover.primaryDark.bgHover
86
- /* .hoverEffect:focus.primaryDark.bgHover */
87
- {
93
+ .hoverEffect:hover.primaryDark.bgHover,
94
+ .hoverEffect:focus.primaryDark.bgHover {
88
95
  background-color: var(--zdt_rippleeffect_primary_dark_bg);
89
96
  }
90
97
  .notAllowed {
@@ -1,4 +1,4 @@
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); }
1
+ function _extends() { _extends = Object.assign || 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
3
  /**** Libraries ****/
4
4
  import React, { Component } from 'react';
@@ -78,7 +78,6 @@ export class SelectComponent extends Component {
78
78
  searchStr: '',
79
79
  isFetchingOptions: false,
80
80
  selectedId,
81
- isFocused: false,
82
81
  selectedValueIndex: hoverIndex
83
82
  };
84
83
  this.optionsOrder = optionsOrder;
@@ -86,7 +85,6 @@ export class SelectComponent extends Component {
86
85
  this.normalizedFormatOptions = normalizedFormatOptions;
87
86
  this.allSelectedOptions = selectedValueDetails;
88
87
  this.handleChange = this.handleChange.bind(this);
89
- this.onBlur = this.onBlur.bind(this);
90
88
  this.handleKeyDown = this.handleKeyDown.bind(this);
91
89
  this.handleSearch = this.handleSearch.bind(this);
92
90
  this.handleFilterSuggestions = this.handleFilterSuggestions.bind(this);
@@ -399,7 +397,6 @@ export class SelectComponent extends Component {
399
397
  let searchStrRegex = getSearchString(searchStr);
400
398
  let valueStrRegex = getSearchString(value);
401
399
  let isSearch = searchStrRegex !== valueStrRegex ? true : false;
402
- console.log(value, "valuevalue");
403
400
  this.setState({
404
401
  searchStr: value,
405
402
  hoverIndex: 0
@@ -545,12 +542,6 @@ export class SelectComponent extends Component {
545
542
  this[`suggestion_${id}`] = el;
546
543
  }
547
544
 
548
- onBlur() {
549
- this.setState({
550
- isFocused: false
551
- });
552
- }
553
-
554
545
  searchInputRef(el) {
555
546
  this.searchInput = el;
556
547
  }
@@ -568,10 +559,6 @@ export class SelectComponent extends Component {
568
559
  valueInput
569
560
  } = this;
570
561
  valueInput && valueInput.setSelectionRange(valueInput, 0);
571
- this.setState({
572
- isFocused: true
573
- });
574
- thi.handleSearch(selected);
575
562
  }
576
563
 
577
564
  handleClearSearch() {
@@ -758,7 +745,6 @@ export class SelectComponent extends Component {
758
745
  searchStr,
759
746
  isFetchingOptions,
760
747
  selectedId,
761
- isFocused,
762
748
  options
763
749
  } = this.state;
764
750
  let suggestions = this.handleFilterSuggestions();
@@ -794,14 +780,11 @@ export class SelectComponent extends Component {
794
780
  maxLength: maxLength,
795
781
  needBorder: needBorder,
796
782
  onFocus: this.handleSelectFocus,
797
- onChange: this.handleSearch,
798
783
  onKeyDown: this.handleKeyDown,
799
- placeHolder: placeHolder // isReadOnly
800
- ,
784
+ placeHolder: placeHolder,
785
+ isReadOnly: true,
801
786
  size: textBoxSize,
802
- value: isFocused ? searchStr : selected,
803
- onBlur: this.onBlur // defaultValue={selected}
804
- ,
787
+ value: selected,
805
788
  variant: textBoxVariant,
806
789
  needReadOnlyStyle: isReadOnly ? true : false,
807
790
  dataId: `${dataId}_textBox`,
@@ -811,7 +794,6 @@ export class SelectComponent extends Component {
811
794
  },
812
795
  needEffect: isReadOnly || isDisabled ? false : true,
813
796
  onKeyPress: this.handleValueInputChange,
814
- onClear: this.handleClearSearch,
815
797
  borderColor: borderColor,
816
798
  htmlId: htmlId,
817
799
  isFocus: isPopupReady,
@@ -849,16 +831,12 @@ export class SelectComponent extends Component {
849
831
  maxLength: maxLength,
850
832
  needBorder: needBorder,
851
833
  onFocus: this.handleSelectFocus,
852
- onChange: this.handleSearch,
853
834
  onKeyDown: getChildren && this.handleKeyDown,
854
- onClear: this.handleClearSearch,
855
- placeHolder: placeHolder // isReadOnly
856
- ,
835
+ placeHolder: placeHolder,
836
+ isReadOnly: true,
857
837
  needEffect: isReadOnly || isDisabled ? false : true,
858
838
  size: textBoxSize,
859
- value: isFocused ? searchStr : selected,
860
- onBlur: this.onBlur // defaultValue={selected}
861
- ,
839
+ value: selected,
862
840
  variant: textBoxVariant,
863
841
  needReadOnlyStyle: isReadOnly ? true : false,
864
842
  dataId: `${dataId}_textBox`,
@@ -894,7 +872,7 @@ export class SelectComponent extends Component {
894
872
  flexible: true
895
873
  }, /*#__PURE__*/React.createElement(Card, {
896
874
  onScroll: this.handleScroll
897
- }, false ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement("div", {
875
+ }, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement("div", {
898
876
  className: `${style.search} ${style[size]}`
899
877
  }, /*#__PURE__*/React.createElement(TextBoxIcon, {
900
878
  a11y: {
@@ -68,22 +68,12 @@
68
68
  position: absolute;
69
69
  top: 0;
70
70
  bottom: 0;
71
- width: var(--zd_size30);
72
- }
73
-
74
- [dir=ltr] .leftIcon {
75
71
  left: 0;
72
+ width: var(--zd_size30);
76
73
  }
77
-
78
- [dir=rtl] .leftIcon {
79
- right: 0;
80
- }
81
- [dir=ltr] .iconSelect {
74
+ .iconSelect {
82
75
  padding-left: var(--zd_size30);
83
76
  }
84
- [dir=rtl] .iconSelect {
85
- padding-right: var(--zd_size30);
86
- }
87
77
 
88
78
  .dropBoxList {
89
79
  padding: var(--zd_size10) 0;
@@ -106,7 +106,7 @@ export default class Select__default extends React.Component {
106
106
  selectedValue: value,
107
107
  needSearch: true,
108
108
  emptyMessage: "No matches found",
109
- placeHolder: "",
109
+ placeHolder: "PlaceHolder",
110
110
  searchBoxPlaceHolder: "Search",
111
111
  isDefaultSelectValue: false,
112
112
  i18nKeys: {
@@ -11,23 +11,14 @@
11
11
  border-radius: var(--stencil_border_radius);
12
12
  }
13
13
  .stencil {
14
- background-size: 800px 1px;
15
- }
16
- [dir=ltr] .stencil {
17
- animation-name: placeHolderShimmer-ltr ;
18
- animation-fill-mode: forwards;
19
- animation-iteration-count: infinite;
20
- animation-duration: var(--zd_transition10);
21
- animation-timing-function: linear;
22
- }
23
- [dir=rtl] .stencil {
24
- animation-name: placeHolderShimmer-rtl ;
14
+ animation-name: placeHolderShimmer;
25
15
  animation-fill-mode: forwards;
26
16
  animation-iteration-count: infinite;
27
17
  animation-duration: var(--zd_transition10);
28
18
  animation-timing-function: linear;
19
+ background-size: 800px 1px;
29
20
  }
30
- @keyframes placeHolderShimmer-ltr {
21
+ @keyframes placeHolderShimmer {
31
22
  0% {
32
23
  background-position: calc(var(--zd_size468) * -1) 0;
33
24
  }
@@ -36,15 +27,6 @@
36
27
  background-position: var(--zd_size468) 0;
37
28
  }
38
29
  }
39
- @keyframes placeHolderShimmer-rtl {
40
- 0% {
41
- background-position: calc(100% - (var(--zd_size468) * -1)) 0;
42
- }
43
-
44
- 100% {
45
- background-position: var(--zd_size468) 100%;
46
- }
47
- }
48
30
 
49
31
  .rectangular {
50
32
  composes: stencil;
@@ -1,4 +1,4 @@
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); }
1
+ function _extends() { _extends = Object.assign || 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
3
  import React from 'react';
4
4
  import { PropTypes } from 'prop-types';
@@ -26,11 +26,11 @@
26
26
  border-radius: 20px;
27
27
  cursor: pointer;
28
28
  }
29
- .effect:hover .label
30
- /* .effect:focus .label */
31
- {
29
+ .effect:hover .label,
30
+ .effect:focus .label {
32
31
  --switch_off_bg_color: var(--zdt_switch_effect_off_bg);
33
32
  }
33
+ /*rtl:begin:ignore*/
34
34
  .label:after {
35
35
  content: '';
36
36
  display: block;
@@ -47,6 +47,7 @@
47
47
  .checked + .label:after {
48
48
  right: calc(var(--zd_size1) * -1);
49
49
  }
50
+ /*rtl:end:ignore*/
50
51
 
51
52
  .input {
52
53
  display: none;
@@ -55,12 +56,14 @@
55
56
  height: var(--zd_size14);
56
57
  width: var(--zd_size28);
57
58
  }
59
+ /*rtl:begin:ignore*/
58
60
  .switch_smallLabel {
59
61
  height: var(--zd_size9);
60
62
  width: var(--zd_size22);
61
63
  top: calc(var(--zd_size2) * -1);
62
64
  left: var(--zd_size2);
63
65
  }
66
+ /*rtl:end:ignore*/
64
67
  .switch_smallLabel:after {
65
68
  width: var(--zd_size12);
66
69
  height: var(--zd_size12);
@@ -70,21 +73,23 @@
70
73
  height: var(--zd_size18);
71
74
  width: var(--zd_size34);
72
75
  }
76
+ /*rtl:begin:ignore*/
73
77
  .switch_mediumLabel {
74
78
  height: var(--zd_size13);
75
79
  width: var(--zd_size31);
76
80
  top: var(--zd_size2);
77
81
  left: var(--zd_size2);
78
82
  }
83
+ /*rtl:end:ignore*/
79
84
  .switch_mediumLabel:after {
80
85
  width: var(--zd_size18);
81
86
  height: var(--zd_size18);
82
87
  top: calc(var(--zd_size3) * -1);
83
88
  }
84
89
  .input:disabled + .label {
85
- opacity: 0.4;
86
90
  border-color: var(--zdt_switch_default_off_bg);
87
91
  cursor: not-allowed;
92
+ opacity: 0.4;
88
93
  }
89
94
  .switch {
90
95
  display: inline-block;
@@ -102,10 +107,5 @@
102
107
  .switch + label {
103
108
  position: relative;
104
109
  top: calc(var(--zd_size1) * -1);
105
- }
106
- [dir=ltr] .switch + label {
107
110
  margin-left: var(--zd_size12);
108
- }
109
- [dir=rtl] .switch + label {
110
- margin-right: var(--zd_size12);
111
111
  }
package/es/Tab/Tab.js CHANGED
@@ -1,4 +1,4 @@
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); }
1
+ function _extends() { _extends = Object.assign || 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
3
  /* eslint-disable react/forbid-component-props */
4
4