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

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 (270) hide show
  1. package/README.md +16 -0
  2. package/assets/Appearance/dark/mode/darkMode.module.css +3 -18
  3. package/assets/Appearance/default/mode/defaultMode.module.css +2 -17
  4. package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +5 -20
  5. package/es/AppContainer/AppContainer.js +1 -1
  6. package/es/Avatar/Avatar.js +1 -1
  7. package/es/Avatar/Avatar.module.css +11 -9
  8. package/es/AvatarTeam/AvatarTeam.js +1 -1
  9. package/es/AvatarTeam/AvatarTeam.module.css +21 -7
  10. package/es/Button/Button.module.css +97 -24
  11. package/es/Buttongroup/Buttongroup.module.css +37 -8
  12. package/es/CheckBox/CheckBox.js +1 -1
  13. package/es/CheckBox/CheckBox.module.css +29 -19
  14. package/es/DateTime/DateTime.js +4 -2
  15. package/es/DateTime/DateTime.module.css +40 -13
  16. package/es/DateTime/DateWidget.js +4 -2
  17. package/es/DateTime/DateWidget.module.css +9 -5
  18. package/es/DateTime/YearView.module.css +17 -6
  19. package/es/DropBox/DropBox.js +1 -1
  20. package/es/DropBox/DropBox.module.css +47 -11
  21. package/es/DropDown/DropDownHeading.module.css +7 -3
  22. package/es/DropDown/DropDownItem.module.css +32 -6
  23. package/es/LightNightMode/Colors.json +496 -397
  24. package/es/LightNightMode/docs/AlternativeColors.docs.js +21 -1
  25. package/es/ListItem/ListContainer.js +1 -1
  26. package/es/ListItem/ListItem.js +1 -1
  27. package/es/ListItem/ListItem.module.css +69 -33
  28. package/es/ListItem/ListItemWithAvatar.js +1 -1
  29. package/es/ListItem/ListItemWithCheckBox.js +1 -1
  30. package/es/ListItem/ListItemWithIcon.js +1 -1
  31. package/es/ListItem/ListItemWithRadio.js +1 -1
  32. package/es/Modal/Modal.js +1 -1
  33. package/es/MultiSelect/AdvancedGroupMultiSelect.js +14 -7
  34. package/es/MultiSelect/AdvancedMultiSelect.js +20 -8
  35. package/es/MultiSelect/MultiSelect.module.css +36 -11
  36. package/es/MultiSelect/SelectedOptions.js +1 -1
  37. package/es/MultiSelect/SelectedOptions.module.css +8 -2
  38. package/es/MultiSelect/Suggestions.js +1 -1
  39. package/es/PopOver/PopOver.module.css +1 -1
  40. package/es/Popup/Popup.js +1 -1
  41. package/es/Radio/Radio.module.css +18 -10
  42. package/es/Responsive/ResizeComponent.js +15 -73
  43. package/es/Responsive/ResizeObserver.js +2 -6
  44. package/es/Responsive/docs/style.module.css +17 -8
  45. package/es/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  46. package/es/Ribbon/Ribbon.module.css +93 -28
  47. package/es/RippleEffect/RippleEffect.module.css +37 -44
  48. package/es/Select/Select.js +30 -8
  49. package/es/Select/Select.module.css +12 -2
  50. package/es/Select/docs/Select__default.docs.js +1 -1
  51. package/es/Stencils/Stencils.module.css +21 -3
  52. package/es/Switch/Switch.js +1 -1
  53. package/es/Switch/Switch.module.css +9 -9
  54. package/es/Tab/Tab.js +1 -1
  55. package/es/Tab/Tab.module.css +16 -7
  56. package/es/Tab/TabWrapper.js +1 -1
  57. package/es/Tab/Tabs.js +1 -1
  58. package/es/Tab/Tabs.module.css +42 -8
  59. package/es/Tab/docs/tabdocs.module.css +1 -1
  60. package/es/Tag/Tag.module.css +36 -14
  61. package/es/TextBox/TextBox.js +1 -1
  62. package/es/TextBox/TextBox.module.css +7 -11
  63. package/es/TextBoxIcon/TextBoxIcon.js +1 -1
  64. package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
  65. package/es/Textarea/Textarea.js +1 -1
  66. package/es/Textarea/Textarea.module.css +6 -7
  67. package/es/Tooltip/Tooltip.module.css +9 -8
  68. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
  69. package/es/beta/FocusRing/FocusRing.module.css +51 -26
  70. package/es/common/animation.module.css +219 -21
  71. package/es/common/basicReset.module.css +2 -12
  72. package/es/common/common.module.css +62 -18
  73. package/es/common/customscroll.module.css +17 -21
  74. package/es/common/docStyle.module.css +79 -32
  75. package/es/common/transition.module.css +50 -10
  76. package/es/css.js +0 -1
  77. package/{lib/MultiSelect → es/deprecated}/AdvancedMultiSelect.module.css +1 -1
  78. package/es/deprecated/advancedMultiSelectVariableJson.js +80 -0
  79. package/es/semantic/Button/semanticButton.module.css +3 -3
  80. package/lib/Accordion/Accordion.js +2 -2
  81. package/lib/Accordion/AccordionItem.js +2 -2
  82. package/lib/Accordion/docs/Accordion__Demo.docs.js +2 -2
  83. package/lib/Animation/Animation.js +2 -2
  84. package/lib/Animation/docs/Animation__default.docs.js +2 -2
  85. package/lib/Animation/docs/Animation__fadeIn.docs.js +2 -2
  86. package/lib/Animation/docs/Animation__scaleIn.docs.js +2 -2
  87. package/lib/Animation/docs/Animation__skewIn.docs.js +2 -2
  88. package/lib/Animation/docs/Animation__slideDown.docs.js +2 -2
  89. package/lib/Animation/docs/Animation__slideLeft.docs.js +2 -2
  90. package/lib/Animation/docs/Animation__zoomIn.docs.js +2 -2
  91. package/lib/AppContainer/AppContainer.js +11 -4
  92. package/lib/AppContainer/docs/AppContainer__default.docs.js +2 -2
  93. package/lib/Avatar/Avatar.js +3 -3
  94. package/lib/Avatar/docs/Avatar__custom.docs.js +2 -2
  95. package/lib/Avatar/docs/Avatar__default.docs.js +2 -2
  96. package/lib/Avatar/docs/Avatar__palette.docs.js +2 -2
  97. package/lib/Avatar/docs/Avatar__text.docs.js +2 -2
  98. package/lib/AvatarTeam/AvatarTeam.js +3 -3
  99. package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +2 -2
  100. package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +2 -2
  101. package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +2 -2
  102. package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +2 -2
  103. package/lib/Button/Button.js +2 -2
  104. package/lib/Button/docs/Button__custom.docs.js +2 -2
  105. package/lib/Button/docs/Button__default.docs.js +2 -2
  106. package/lib/Buttongroup/Buttongroup.js +2 -2
  107. package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +2 -2
  108. package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +2 -2
  109. package/lib/Buttongroup/docs/Buttongroup__header.docs.js +2 -2
  110. package/lib/Card/Card.js +2 -2
  111. package/lib/Card/docs/Card__Custom.docs.js +2 -2
  112. package/lib/Card/docs/Card__Default.docs.js +2 -2
  113. package/lib/Card/docs/Card__Scroll.docs.js +2 -2
  114. package/lib/CheckBox/CheckBox.js +5 -4
  115. package/lib/CheckBox/CheckBox.module.css +12 -8
  116. package/lib/CheckBox/docs/CheckBox__custom.docs.js +2 -2
  117. package/lib/CheckBox/docs/CheckBox__default.docs.js +2 -2
  118. package/lib/DateTime/CalendarView.js +2 -2
  119. package/lib/DateTime/DateTime.js +50 -22
  120. package/lib/DateTime/DateTime.module.css +1 -1
  121. package/lib/DateTime/DateTimePopupFooter.js +2 -2
  122. package/lib/DateTime/DateTimePopupHeader.js +2 -2
  123. package/lib/DateTime/DateWidget.js +14 -4
  124. package/lib/DateTime/DateWidget.module.css +0 -4
  125. package/lib/DateTime/DaysRow.js +2 -2
  126. package/lib/DateTime/Time.js +2 -2
  127. package/lib/DateTime/YearView.js +2 -2
  128. package/lib/DateTime/YearView.module.css +1 -0
  129. package/lib/DateTime/docs/DateTime__default.docs.js +2 -2
  130. package/lib/DateTime/docs/DateWidget__default.docs.js +2 -2
  131. package/lib/DropBox/DropBox.js +4 -4
  132. package/lib/DropBox/docs/DropBox__custom.docs.js +2 -2
  133. package/lib/DropBox/docs/DropBox__customOrder.docs.js +2 -2
  134. package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +2 -2
  135. package/lib/DropBox/docs/DropBox__position.docs.js +2 -2
  136. package/lib/DropBox/docs/DropBox__size.docs.js +2 -2
  137. package/lib/DropDown/DropDown.js +2 -2
  138. package/lib/DropDown/DropDownHeading.js +2 -2
  139. package/lib/DropDown/DropDownItem.js +2 -2
  140. package/lib/DropDown/DropDownSearch.js +2 -2
  141. package/lib/DropDown/DropDownSeparator.js +2 -2
  142. package/lib/DropDown/docs/DropDownHeading__custom.docs.js +2 -2
  143. package/lib/DropDown/docs/DropDownHeading__default.docs.js +2 -2
  144. package/lib/Label/Label.js +2 -2
  145. package/lib/Label/docs/Label__clipped.docs.js +2 -2
  146. package/lib/Label/docs/Label__custom.docs.js +2 -2
  147. package/lib/Label/docs/Label__palette.docs.js +2 -2
  148. package/lib/Label/docs/Label__size.docs.js +2 -2
  149. package/lib/Label/docs/Label__type.docs.js +2 -2
  150. package/lib/Layout/docs/Layout__Hidden.docs.js +2 -2
  151. package/lib/Layout/docs/Layout__default.docs.js +2 -2
  152. package/lib/Layout/docs/Layout__four_Column.docs.js +2 -2
  153. package/lib/Layout/docs/Layout__three_Column.docs.js +2 -2
  154. package/lib/Layout/docs/Layout__two_Column.docs.js +2 -2
  155. package/lib/LightNightMode/Colors.json +496 -397
  156. package/lib/LightNightMode/docs/AlternativeColors.docs.js +25 -3
  157. package/lib/ListItem/ListContainer.js +8 -5
  158. package/lib/ListItem/ListItem.js +4 -4
  159. package/lib/ListItem/ListItem.module.css +18 -19
  160. package/lib/ListItem/ListItemWithAvatar.js +4 -4
  161. package/lib/ListItem/ListItemWithCheckBox.js +4 -4
  162. package/lib/ListItem/ListItemWithIcon.js +4 -4
  163. package/lib/ListItem/ListItemWithRadio.js +4 -4
  164. package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +2 -2
  165. package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +2 -2
  166. package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +2 -2
  167. package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +2 -2
  168. package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +2 -2
  169. package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +2 -2
  170. package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +2 -2
  171. package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +2 -2
  172. package/lib/ListItem/docs/ListItem__custom.docs.js +2 -2
  173. package/lib/ListItem/docs/ListItem__default.docs.js +2 -2
  174. package/lib/Modal/Modal.js +3 -3
  175. package/lib/Modal/__docs__/Modal__default.docs.js +2 -2
  176. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +120 -88
  177. package/lib/MultiSelect/AdvancedMultiSelect.js +99 -62
  178. package/lib/MultiSelect/EmptyState.js +2 -2
  179. package/lib/MultiSelect/MultiSelect.js +90 -64
  180. package/lib/MultiSelect/MultiSelect.module.css +15 -2
  181. package/lib/MultiSelect/MultiSelectHeader.js +2 -2
  182. package/lib/MultiSelect/MultiSelectWithAvatar.js +80 -55
  183. package/lib/MultiSelect/SelectedOptions.js +3 -3
  184. package/lib/MultiSelect/Suggestions.js +3 -3
  185. package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -2
  186. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +2 -2
  187. package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -2
  188. package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -2
  189. package/lib/PopOver/PopOver.js +13 -6
  190. package/lib/PopOver/docs/PopOver__default.docs.js +2 -2
  191. package/lib/Popup/Popup.js +3 -3
  192. package/lib/Popup/__tests__/Popup.spec.js +2 -2
  193. package/lib/Provider/Config.js +3 -1
  194. package/lib/Provider/docs/Provider_Id__Class.docs.js +2 -2
  195. package/lib/Provider/docs/Provider_Zindex__Class.docs.js +2 -2
  196. package/lib/Provider.js +34 -100
  197. package/lib/Radio/Radio.js +2 -2
  198. package/lib/Radio/Radio.module.css +8 -6
  199. package/lib/Radio/docs/Radio__custom.docs.js +2 -2
  200. package/lib/Radio/docs/Radio__default.docs.js +2 -2
  201. package/lib/Responsive/ResizeComponent.js +2 -2
  202. package/lib/Responsive/Responsive.js +2 -2
  203. package/lib/Responsive/docs/Responsive__Custom.docs.js +2 -2
  204. package/lib/Responsive/docs/Responsive__default.docs.js +2 -2
  205. package/lib/Responsive/sizeObservers.js +3 -3
  206. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +130 -0
  207. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
  208. package/lib/Ribbon/Ribbon.js +2 -2
  209. package/lib/Ribbon/docs/Ribbon__custom.docs.js +2 -2
  210. package/lib/Ribbon/docs/Ribbon__default.docs.js +2 -2
  211. package/lib/RippleEffect/RippleEffect.module.css +37 -15
  212. package/lib/RippleEffect/docs/RippleEffect__default.docs.js +2 -2
  213. package/lib/Select/GroupSelect.js +102 -79
  214. package/lib/Select/Select.js +142 -87
  215. package/lib/Select/Select.module.css +6 -0
  216. package/lib/Select/SelectWithAvatar.js +98 -73
  217. package/lib/Select/SelectWithIcon.js +99 -76
  218. package/lib/Select/docs/GroupSelect__default.docs.js +2 -2
  219. package/lib/Select/docs/SelectWithAvatar__default.docs.js +2 -2
  220. package/lib/Select/docs/SelectWithIcon__default.docs.js +2 -2
  221. package/lib/Select/docs/Select__default.docs.js +3 -3
  222. package/lib/Stencils/Stencils.js +2 -2
  223. package/lib/Stencils/docs/Stencils__custom.docs.js +2 -2
  224. package/lib/Stencils/docs/Stencils__default.docs.js +2 -2
  225. package/lib/Switch/Switch.js +3 -3
  226. package/lib/Switch/Switch.module.css +3 -2
  227. package/lib/Switch/docs/Switch__custom.docs.js +2 -2
  228. package/lib/Switch/docs/Switch__default.docs.js +2 -2
  229. package/lib/Tab/Tab.js +1 -1
  230. package/lib/Tab/TabWrapper.js +1 -1
  231. package/lib/Tab/Tabs.js +70 -47
  232. package/lib/Tab/Tabs.module.css +2 -1
  233. package/lib/Tab/docs/Tab__default.docs.js +2 -2
  234. package/lib/Tag/Tag.js +3 -3
  235. package/lib/Tag/Tag.module.css +6 -2
  236. package/lib/Tag/docs/Tag__custom.docs.js +2 -2
  237. package/lib/Tag/docs/Tag__default.docs.js +2 -2
  238. package/lib/TextBox/TextBox.js +3 -3
  239. package/lib/TextBox/docs/TextBox__custom.docs.js +2 -2
  240. package/lib/TextBox/docs/TextBox__default.docs.js +2 -2
  241. package/lib/TextBox/docs/TextBox__size.docs.js +2 -2
  242. package/lib/TextBox/docs/TextBox__variant.docs.js +2 -2
  243. package/lib/TextBoxIcon/TextBoxIcon.js +3 -3
  244. package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +2 -2
  245. package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +2 -2
  246. package/lib/Textarea/Textarea.js +3 -3
  247. package/lib/Textarea/docs/Textarea__animated.docs.js +2 -2
  248. package/lib/Textarea/docs/Textarea__custom.docs.js +2 -2
  249. package/lib/Textarea/docs/Textarea__default.docs.js +2 -2
  250. package/lib/Textarea/docs/Textarea__disabled.docs.js +2 -2
  251. package/lib/Tooltip/Tooltip.js +62 -10
  252. package/lib/Tooltip/Tooltip.module.css +6 -1
  253. package/lib/Tooltip/__tests__/Tooltip.spec.js +2 -2
  254. package/lib/Tooltip/docs/Tooltip__default.docs.js +52 -13
  255. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -2
  256. package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
  257. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
  258. package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
  259. package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +2 -2
  260. package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +2 -2
  261. package/lib/common/docStyle.module.css +6 -2
  262. package/lib/css.js +0 -2
  263. package/{es/MultiSelect → lib/deprecated}/AdvancedMultiSelect.module.css +23 -9
  264. package/lib/deprecated/PortalLayer/PortalLayer.js +2 -2
  265. package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -2
  266. package/lib/deprecated/advancedMultiSelectVariableJson.js +82 -0
  267. package/lib/index.js +10 -1
  268. package/lib/semantic/Button/Button.js +2 -2
  269. package/lib/semantic/Button/docs/Button__default.docs.js +2 -2
  270. package/package.json +4 -4
@@ -8,67 +8,61 @@
8
8
  .default.defaultHover {
9
9
  border-color: var(--zdt_rippleeffect_hover_border);
10
10
  }
11
- .hoverEffect:hover.primary.defaultHover,
12
- .hoverEffect:focus.primary.defaultHover,
13
- .hoverEffect:hover.primary.borderHover,
14
- .hoverEffect:focus.primary.borderHover {
11
+ .hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
12
+ /* .hoverEffect:focus.primary.borderHover */
13
+ {
15
14
  border-color: var(--zdt_rippleeffect_primary_border);
16
15
  }
17
- .primary.defaultHover,
18
- .hoverEffect:hover.primary.active.border,
19
- .hoverEffect:focus.primary.active.border {
16
+ .primary.defaultHover, .hoverEffect:hover.primary.active.border
17
+ /* .hoverEffect:focus.primary.active.border */
18
+ {
20
19
  border-color: var(--zdt_rippleeffect_primary_active_border);
21
20
  }
22
- .primaryLight.defaultHover,
23
- .hoverEffect:hover.primaryLight.borderHover,
24
- .hoverEffect:focus.primaryLight.borderHover {
21
+ .primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
22
+ /* .hoverEffect:focus.primaryLight.borderHover */
23
+ {
25
24
  border-color: var(--zdt_rippleeffect_primary_light_border);
26
25
  }
27
- .green.defaultHover,
28
- .hoverEffect:hover.green.borderHover,
29
- .hoverEffect:focus.green.borderHover {
26
+ .green.defaultHover, .hoverEffect:hover.green.borderHover
27
+ /* .hoverEffect:focus.green.borderHover */
28
+ {
30
29
  border-color: var(--zdt_rippleeffect_green_border);
31
30
  }
32
- .hoverEffect:hover.default.defaultHover,
33
- .hoverEffect:focus.default.defaultHover {
31
+ .hoverEffect:hover.default.defaultHover
32
+ /* .hoverEffect:focus.default.defaultHover */
33
+ {
34
34
  border-color: var(--zdt_rippleeffect_slate_border);
35
35
  }
36
- .hoverEffect:hover.default.borderHover,
37
- .hoverEffect:focus.default.borderHover {
36
+ .hoverEffect:hover.default.borderHover
37
+ /* .hoverEffect:focus.default.borderHover */
38
+ {
38
39
  border-color: var(--zdt_rippleeffect_navy_border);
39
40
  }
40
- .hoverEffect:hover.default.bgHover,
41
- .hoverEffect:focus.default.bgHover {
41
+ .hoverEffect:hover.default.bgHover
42
+ /* .hoverEffect:focus.default.bgHover */
43
+ {
42
44
  background-color: var(--zdt_rippleeffect_hover_bg);
43
45
  }
44
- .hoverEffect:hover.primaryLight.bgHover,
45
- .hoverEffect:focus.primaryLight.bgHover {
46
+ .hoverEffect:hover.primaryLight.bgHover
47
+ /* .hoverEffect:focus.primaryLight.bgHover */
48
+ {
46
49
  background-color: var(--zdt_rippleeffect_primary_light_bg);
47
50
  }
48
51
  .primaryFilled {
49
52
  background-color: var(--zdt_rippleeffect_primary_bg);
50
53
  }
51
- .hoverEffect:hover.primaryFilled,
52
- .hoverEffect:focus.primaryFilled,
53
- .primaryFilled.active {
54
+ .hoverEffect:hover.primaryFilled, .primaryFilled.active {
54
55
  background-color: var(--zdt_rippleeffect_primaryfilled_bg);
55
56
  }
56
- .hoverEffect:hover.green.bgHover,
57
- .hoverEffect:focus.green.bgHover {
57
+ .hoverEffect:hover.green.bgHover
58
+ /* .hoverEffect:focus.green.bgHover */
59
+ {
58
60
  background-color: var(--zdt_rippleeffect_green_bg);
59
61
  }
60
- .default.active,
61
- .hoverEffect:hover.default.active,
62
- .hoverEffect:focus.default.active,
63
- .primaryLight.active,
64
- .primaryDark.active {
62
+ .default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
65
63
  background-color: var(--zdt_rippleeffect_primary_light_bg);
66
64
  }
67
- .default.active.border,
68
- .hoverEffect:hover.default.active.border,
69
- .hoverEffect:focus.default.active.border,
70
- .primaryLight.active.border,
71
- .primaryDark.active.border {
65
+ .default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
72
66
  border-color: var(--zdt_rippleeffect_primary_light_border);
73
67
  }
74
68
  .green.active {
@@ -80,18 +74,17 @@
80
74
  .primary.active {
81
75
  background-color: var(--zdt_rippleeffect_primary_bg);
82
76
  }
83
- .danger.defaultHover,
84
- .hoverEffect:hover.danger.borderHover,
85
- .hoverEffect:focus.danger.borderHover {
77
+ .danger.defaultHover, .hoverEffect:hover.danger.borderHover
78
+ /* .hoverEffect:focus.danger.borderHover */
79
+ {
86
80
  border-color: var(--zdt_rippleeffect_danger_border);
87
81
  }
88
- .hoverEffect:hover.danger.bgHover,
89
- .hoverEffect:focus.danger.bgHover,
90
- .danger.active {
82
+ .hoverEffect:hover.danger.bgHover, .danger.active {
91
83
  background-color: var(--zdt_rippleeffect_danger_bg);
92
84
  }
93
- .hoverEffect:hover.primaryDark.bgHover,
94
- .hoverEffect:focus.primaryDark.bgHover {
85
+ .hoverEffect:hover.primaryDark.bgHover
86
+ /* .hoverEffect:focus.primaryDark.bgHover */
87
+ {
95
88
  background-color: var(--zdt_rippleeffect_primary_dark_bg);
96
89
  }
97
90
  .notAllowed {
@@ -1,4 +1,4 @@
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); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  /**** Libraries ****/
4
4
  import React, { Component } from 'react';
@@ -78,6 +78,7 @@ export class SelectComponent extends Component {
78
78
  searchStr: '',
79
79
  isFetchingOptions: false,
80
80
  selectedId,
81
+ isFocused: false,
81
82
  selectedValueIndex: hoverIndex
82
83
  };
83
84
  this.optionsOrder = optionsOrder;
@@ -85,6 +86,7 @@ export class SelectComponent extends Component {
85
86
  this.normalizedFormatOptions = normalizedFormatOptions;
86
87
  this.allSelectedOptions = selectedValueDetails;
87
88
  this.handleChange = this.handleChange.bind(this);
89
+ this.onBlur = this.onBlur.bind(this);
88
90
  this.handleKeyDown = this.handleKeyDown.bind(this);
89
91
  this.handleSearch = this.handleSearch.bind(this);
90
92
  this.handleFilterSuggestions = this.handleFilterSuggestions.bind(this);
@@ -397,6 +399,7 @@ export class SelectComponent extends Component {
397
399
  let searchStrRegex = getSearchString(searchStr);
398
400
  let valueStrRegex = getSearchString(value);
399
401
  let isSearch = searchStrRegex !== valueStrRegex ? true : false;
402
+ console.log(value, "valuevalue");
400
403
  this.setState({
401
404
  searchStr: value,
402
405
  hoverIndex: 0
@@ -542,6 +545,12 @@ export class SelectComponent extends Component {
542
545
  this[`suggestion_${id}`] = el;
543
546
  }
544
547
 
548
+ onBlur() {
549
+ this.setState({
550
+ isFocused: false
551
+ });
552
+ }
553
+
545
554
  searchInputRef(el) {
546
555
  this.searchInput = el;
547
556
  }
@@ -559,6 +568,10 @@ export class SelectComponent extends Component {
559
568
  valueInput
560
569
  } = this;
561
570
  valueInput && valueInput.setSelectionRange(valueInput, 0);
571
+ this.setState({
572
+ isFocused: true
573
+ });
574
+ thi.handleSearch(selected);
562
575
  }
563
576
 
564
577
  handleClearSearch() {
@@ -745,6 +758,7 @@ export class SelectComponent extends Component {
745
758
  searchStr,
746
759
  isFetchingOptions,
747
760
  selectedId,
761
+ isFocused,
748
762
  options
749
763
  } = this.state;
750
764
  let suggestions = this.handleFilterSuggestions();
@@ -780,11 +794,14 @@ export class SelectComponent extends Component {
780
794
  maxLength: maxLength,
781
795
  needBorder: needBorder,
782
796
  onFocus: this.handleSelectFocus,
797
+ onChange: this.handleSearch,
783
798
  onKeyDown: this.handleKeyDown,
784
- placeHolder: placeHolder,
785
- isReadOnly: true,
799
+ placeHolder: placeHolder // isReadOnly
800
+ ,
786
801
  size: textBoxSize,
787
- value: selected,
802
+ value: isFocused ? searchStr : selected,
803
+ onBlur: this.onBlur // defaultValue={selected}
804
+ ,
788
805
  variant: textBoxVariant,
789
806
  needReadOnlyStyle: isReadOnly ? true : false,
790
807
  dataId: `${dataId}_textBox`,
@@ -794,6 +811,7 @@ export class SelectComponent extends Component {
794
811
  },
795
812
  needEffect: isReadOnly || isDisabled ? false : true,
796
813
  onKeyPress: this.handleValueInputChange,
814
+ onClear: this.handleClearSearch,
797
815
  borderColor: borderColor,
798
816
  htmlId: htmlId,
799
817
  isFocus: isPopupReady,
@@ -831,12 +849,16 @@ export class SelectComponent extends Component {
831
849
  maxLength: maxLength,
832
850
  needBorder: needBorder,
833
851
  onFocus: this.handleSelectFocus,
852
+ onChange: this.handleSearch,
834
853
  onKeyDown: getChildren && this.handleKeyDown,
835
- placeHolder: placeHolder,
836
- isReadOnly: true,
854
+ onClear: this.handleClearSearch,
855
+ placeHolder: placeHolder // isReadOnly
856
+ ,
837
857
  needEffect: isReadOnly || isDisabled ? false : true,
838
858
  size: textBoxSize,
839
- value: selected,
859
+ value: isFocused ? searchStr : selected,
860
+ onBlur: this.onBlur // defaultValue={selected}
861
+ ,
840
862
  variant: textBoxVariant,
841
863
  needReadOnlyStyle: isReadOnly ? true : false,
842
864
  dataId: `${dataId}_textBox`,
@@ -872,7 +894,7 @@ export class SelectComponent extends Component {
872
894
  flexible: true
873
895
  }, /*#__PURE__*/React.createElement(Card, {
874
896
  onScroll: this.handleScroll
875
- }, needSearch ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement("div", {
897
+ }, false ? /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement("div", {
876
898
  className: `${style.search} ${style[size]}`
877
899
  }, /*#__PURE__*/React.createElement(TextBoxIcon, {
878
900
  a11y: {
@@ -68,12 +68,22 @@
68
68
  position: absolute;
69
69
  top: 0;
70
70
  bottom: 0;
71
- left: 0;
72
71
  width: var(--zd_size30);
73
72
  }
74
- .iconSelect {
73
+
74
+ [dir=ltr] .leftIcon {
75
+ left: 0;
76
+ }
77
+
78
+ [dir=rtl] .leftIcon {
79
+ right: 0;
80
+ }
81
+ [dir=ltr] .iconSelect {
75
82
  padding-left: var(--zd_size30);
76
83
  }
84
+ [dir=rtl] .iconSelect {
85
+ padding-right: var(--zd_size30);
86
+ }
77
87
 
78
88
  .dropBoxList {
79
89
  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: "PlaceHolder",
109
+ placeHolder: "",
110
110
  searchBoxPlaceHolder: "Search",
111
111
  isDefaultSelectValue: false,
112
112
  i18nKeys: {
@@ -11,14 +11,23 @@
11
11
  border-radius: var(--stencil_border_radius);
12
12
  }
13
13
  .stencil {
14
- animation-name: placeHolderShimmer;
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 ;
15
25
  animation-fill-mode: forwards;
16
26
  animation-iteration-count: infinite;
17
27
  animation-duration: var(--zd_transition10);
18
28
  animation-timing-function: linear;
19
- background-size: 800px 1px;
20
29
  }
21
- @keyframes placeHolderShimmer {
30
+ @keyframes placeHolderShimmer-ltr {
22
31
  0% {
23
32
  background-position: calc(var(--zd_size468) * -1) 0;
24
33
  }
@@ -27,6 +36,15 @@
27
36
  background-position: var(--zd_size468) 0;
28
37
  }
29
38
  }
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
+ }
30
48
 
31
49
  .rectangular {
32
50
  composes: stencil;
@@ -1,4 +1,4 @@
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); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
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 {
29
+ .effect:hover .label
30
+ /* .effect:focus .label */
31
+ {
31
32
  --switch_off_bg_color: var(--zdt_switch_effect_off_bg);
32
33
  }
33
- /*rtl:begin:ignore*/
34
34
  .label:after {
35
35
  content: '';
36
36
  display: block;
@@ -47,7 +47,6 @@
47
47
  .checked + .label:after {
48
48
  right: calc(var(--zd_size1) * -1);
49
49
  }
50
- /*rtl:end:ignore*/
51
50
 
52
51
  .input {
53
52
  display: none;
@@ -56,14 +55,12 @@
56
55
  height: var(--zd_size14);
57
56
  width: var(--zd_size28);
58
57
  }
59
- /*rtl:begin:ignore*/
60
58
  .switch_smallLabel {
61
59
  height: var(--zd_size9);
62
60
  width: var(--zd_size22);
63
61
  top: calc(var(--zd_size2) * -1);
64
62
  left: var(--zd_size2);
65
63
  }
66
- /*rtl:end:ignore*/
67
64
  .switch_smallLabel:after {
68
65
  width: var(--zd_size12);
69
66
  height: var(--zd_size12);
@@ -73,23 +70,21 @@
73
70
  height: var(--zd_size18);
74
71
  width: var(--zd_size34);
75
72
  }
76
- /*rtl:begin:ignore*/
77
73
  .switch_mediumLabel {
78
74
  height: var(--zd_size13);
79
75
  width: var(--zd_size31);
80
76
  top: var(--zd_size2);
81
77
  left: var(--zd_size2);
82
78
  }
83
- /*rtl:end:ignore*/
84
79
  .switch_mediumLabel:after {
85
80
  width: var(--zd_size18);
86
81
  height: var(--zd_size18);
87
82
  top: calc(var(--zd_size3) * -1);
88
83
  }
89
84
  .input:disabled + .label {
85
+ opacity: 0.4;
90
86
  border-color: var(--zdt_switch_default_off_bg);
91
87
  cursor: not-allowed;
92
- opacity: 0.4;
93
88
  }
94
89
  .switch {
95
90
  display: inline-block;
@@ -107,5 +102,10 @@
107
102
  .switch + label {
108
103
  position: relative;
109
104
  top: calc(var(--zd_size1) * -1);
105
+ }
106
+ [dir=ltr] .switch + label {
110
107
  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 || 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 ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  /* eslint-disable react/forbid-component-props */
4
4
 
@@ -1,9 +1,9 @@
1
1
  .tab {
2
2
  text-transform: uppercase;
3
- cursor: pointer;
4
3
  composes: offSelection from '../common/common.module.css';
5
4
  letter-spacing: 0.6px;
6
5
  text-decoration: none;
6
+ cursor: pointer;
7
7
  }
8
8
  .vertical {
9
9
  height: 100%;
@@ -32,9 +32,9 @@
32
32
  transition: all var(--zd_transition2);
33
33
  }
34
34
  .alpha {
35
- padding: 0 var(--zd_size18);
36
35
  font-size: var(--zd_font_size11);
37
36
  line-height: var(--zd_size33);
37
+ padding: 0 var(--zd_size18);
38
38
  }
39
39
  .tabAlpha {
40
40
  composes: alpha;
@@ -48,19 +48,23 @@
48
48
  composes: alpha;
49
49
  color: var(--zdt_tab_alpha_active_text);
50
50
  }
51
- .alphaActive_border,
52
- .betaActive_border {
51
+ .alphaActive_border, .betaActive_border {
53
52
  border-color: var(--zdt_tab_alpha_active_border);
54
53
  }
55
54
  .deltaActive_border {
56
55
  border-color: var(--zdt_tab_delta_active_border);
57
56
  }
58
57
  .beta {
59
- padding: 0 var(--zd_size4);
60
58
  font-size: var(--zd_font_size14);
61
59
  line-height: var(--zd_size60);
62
- margin-right: var(--zd_size40);
63
60
  text-transform: capitalize;
61
+ padding: 0 var(--zd_size4);
62
+ }
63
+ [dir=ltr] .beta {
64
+ margin-right: var(--zd_size40);
65
+ }
66
+ [dir=rtl] .beta {
67
+ margin-left: var(--zd_size40);
64
68
  }
65
69
  .tabBeta {
66
70
  composes: beta;
@@ -74,11 +78,16 @@
74
78
  color: var(--zdt_tab_alpha_hover_text);
75
79
  }
76
80
  .delta {
77
- padding: 0 var(--zd_size4);
78
81
  font-size: var(--zd_font_size11);
79
82
  line-height: var(--zd_size33);
83
+ padding: 0 var(--zd_size4);
84
+ }
85
+ [dir=ltr] .delta {
80
86
  margin-right: var(--zd_size10);
81
87
  }
88
+ [dir=rtl] .delta {
89
+ margin-left: var(--zd_size10);
90
+ }
82
91
  .tabDelta {
83
92
  composes: delta;
84
93
  color: var(--zdt_tab_alpha_text);
@@ -1,4 +1,4 @@
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); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React, { useState, useCallback } from 'react';
4
4
  import PropTypes from 'prop-types';
package/es/Tab/Tabs.js CHANGED
@@ -1,4 +1,4 @@
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); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  /* eslint-disable react/forbid-component-props */
4
4
 
@@ -9,10 +9,14 @@
9
9
  background-color: var(--zdt_tabs_alpha_bg);
10
10
  }
11
11
 
12
- .alpha_padding {
12
+ [dir=ltr] .alpha_padding {
13
13
  padding-left: var(--zd_size15);
14
14
  }
15
15
 
16
+ [dir=rtl] .alpha_padding {
17
+ padding-right: var(--zd_size15);
18
+ }
19
+
16
20
  .alpha_border {
17
21
  border-width: 0 0 1px 0;
18
22
  border-color: var(--zdt_tabs_alpha_border);
@@ -26,20 +30,34 @@
26
30
  width: 76%;
27
31
  bottom: 0;
28
32
  height: var(--zd_size10);
29
- left: 12%;
30
33
  border-radius: 100px / 5px;
31
34
  box-shadow: 0 -2px 9px var(--zdt_tabs_alpha_box_shadow);
32
35
  }
33
36
 
37
+ [dir=ltr] .alpha::after {
38
+ left: 12%;
39
+ }
40
+
41
+ [dir=rtl] .alpha::after {
42
+ right: 12%;
43
+ }
44
+
34
45
  .alpha:before {
35
46
  content: '';
36
47
  position: absolute;
37
48
  z-index: -1;
38
49
  width: 100%;
39
- background: inherit;
40
50
  height: 100%;
41
- left: 0;
42
51
  top: 0;
52
+ background: inherit;
53
+ }
54
+
55
+ [dir=ltr] .alpha:before {
56
+ left: 0;
57
+ }
58
+
59
+ [dir=rtl] .alpha:before {
60
+ right: 0;
43
61
  }
44
62
 
45
63
  .beta {
@@ -47,10 +65,14 @@
47
65
  background-color: var(--zdt_tabs_alpha_bg);
48
66
  }
49
67
 
50
- .beta_padding {
68
+ [dir=ltr] .beta_padding {
51
69
  padding-left: var(--zd_size13);
52
70
  }
53
71
 
72
+ [dir=rtl] .beta_padding {
73
+ padding-right: var(--zd_size13);
74
+ }
75
+
54
76
  .beta_border {
55
77
  border-bottom: 1px solid var(--zdt_tabs_alpha_border);
56
78
  }
@@ -60,10 +82,14 @@
60
82
  background-color: var(--zdt_tabs_alpha_bg);
61
83
  }
62
84
 
63
- .delta_padding {
85
+ [dir=ltr] .delta_padding {
64
86
  padding-left: var(--zd_size10);
65
87
  }
66
88
 
89
+ [dir=rtl] .delta_padding {
90
+ padding-right: var(--zd_size10);
91
+ }
92
+
67
93
  .delta_border {
68
94
  border-bottom: 1px dotted var(--zdt_tabs_alpha_border);
69
95
  }
@@ -95,12 +121,20 @@
95
121
  }
96
122
 
97
123
 
98
- .bottomRightToLeft, .topRightToLeft, .bottomCenterToLeft {
124
+ [dir=ltr] .bottomRightToLeft, [dir=ltr] .topRightToLeft, [dir=ltr] .bottomCenterToLeft {
99
125
  right: calc(var(--tab_position_gap) * -1);
100
126
  }
101
- .bottomLeftToRight, .topLeftToRight, .bottomCenterToRight {
127
+
128
+
129
+ [dir=rtl] .bottomRightToLeft, [dir=rtl] .topRightToLeft, [dir=rtl] .bottomCenterToLeft {
130
+ left: calc(var(--tab_position_gap) * -1);
131
+ }
132
+ [dir=ltr] .bottomLeftToRight, [dir=ltr] .topLeftToRight, [dir=ltr] .bottomCenterToRight {
102
133
  left: calc(var(--tab_position_gap) * -1);
103
134
  }
135
+ [dir=rtl] .bottomLeftToRight, [dir=rtl] .topLeftToRight, [dir=rtl] .bottomCenterToRight {
136
+ right: calc(var(--tab_position_gap) * -1);
137
+ }
104
138
 
105
139
  .hidden{
106
140
  visibility: hidden;
@@ -4,8 +4,8 @@
4
4
  }
5
5
  .item {
6
6
  color: #fff;
7
- padding: 10px;
8
7
  font-size: 12px;
8
+ padding: 10px;
9
9
  }
10
10
 
11
11
  .itemActive {