@zohodesk/components 1.0.0-temp-190.2 → 1.0.0-temp-191

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 (248) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +12 -5
  4. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +2 -29
  5. package/assets/Appearance/light/mode/Component_LightMode.module.css +2 -29
  6. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +2 -29
  7. package/es/AppContainer/AppContainer.js +10 -9
  8. package/es/AppContainer/AppContainer.module.css +2 -2
  9. package/es/Avatar/Avatar.js +4 -5
  10. package/es/Avatar/Avatar.module.css +22 -52
  11. package/es/AvatarTeam/AvatarTeam.js +7 -7
  12. package/es/AvatarTeam/AvatarTeam.module.css +74 -66
  13. package/es/Button/Button.js +5 -6
  14. package/es/Button/css/Button.module.css +100 -162
  15. package/es/Buttongroup/Buttongroup.module.css +17 -52
  16. package/es/CheckBox/CheckBox.js +18 -8
  17. package/es/CheckBox/CheckBox.module.css +60 -37
  18. package/es/CheckBox/props/propTypes.js +1 -0
  19. package/es/DateTime/DateTime.module.css +57 -86
  20. package/es/DateTime/DateWidget.module.css +7 -11
  21. package/es/DateTime/YearView.module.css +21 -34
  22. package/es/DropBox/DropBox.js +10 -11
  23. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
  24. package/es/DropBox/css/DropBox.module.css +6 -24
  25. package/es/DropDown/DropDown.js +2 -1
  26. package/es/DropDown/DropDown.module.css +2 -2
  27. package/es/DropDown/DropDownHeading.module.css +13 -19
  28. package/es/DropDown/DropDownItem.module.css +22 -43
  29. package/es/DropDown/DropDownSearch.module.css +3 -3
  30. package/es/DropDown/DropDownSeparator.module.css +2 -2
  31. package/es/Heading/Heading.module.css +2 -2
  32. package/es/Label/Label.module.css +23 -12
  33. package/es/Label/LabelColors.module.css +7 -1
  34. package/es/Layout/Layout.module.css +15 -15
  35. package/es/ListItem/ListContainer.js +6 -5
  36. package/es/ListItem/ListItem.js +4 -5
  37. package/es/ListItem/ListItem.module.css +87 -90
  38. package/es/ListItem/ListItemWithAvatar.js +4 -5
  39. package/es/ListItem/ListItemWithCheckBox.js +4 -5
  40. package/es/ListItem/ListItemWithIcon.js +4 -5
  41. package/es/ListItem/ListItemWithRadio.js +4 -5
  42. package/es/Modal/Modal.js +4 -5
  43. package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
  44. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
  45. package/es/MultiSelect/MultiSelect.module.css +69 -55
  46. package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
  47. package/es/MultiSelect/SelectedOptions.js +6 -8
  48. package/es/MultiSelect/SelectedOptions.module.css +5 -11
  49. package/es/MultiSelect/Suggestions.js +6 -8
  50. package/es/PopOver/PopOver.module.css +4 -4
  51. package/es/Popup/Popup.js +3 -4
  52. package/es/Radio/Radio.js +25 -6
  53. package/es/Radio/Radio.module.css +40 -23
  54. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  55. package/es/Radio/props/defaultProps.js +1 -0
  56. package/es/Radio/props/propTypes.js +7 -0
  57. package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  58. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  59. package/es/Ribbon/Ribbon.module.css +64 -147
  60. package/es/RippleEffect/RippleEffect.module.css +27 -9
  61. package/es/Select/Select.js +4 -5
  62. package/es/Select/Select.module.css +22 -33
  63. package/es/Stencils/Stencils.module.css +14 -32
  64. package/es/Switch/Switch.js +8 -8
  65. package/es/Switch/Switch.module.css +35 -32
  66. package/es/Tab/Tab.js +4 -5
  67. package/es/Tab/Tab.module.css +39 -28
  68. package/es/Tab/TabContentWrapper.js +4 -5
  69. package/es/Tab/TabWrapper.js +2 -4
  70. package/es/Tab/Tabs.js +16 -16
  71. package/es/Tab/Tabs.module.css +29 -51
  72. package/es/Tag/Tag.module.css +91 -66
  73. package/es/TextBox/TextBox.js +5 -5
  74. package/es/TextBox/TextBox.module.css +20 -36
  75. package/es/TextBoxIcon/TextBoxIcon.js +2 -4
  76. package/es/TextBoxIcon/TextBoxIcon.module.css +6 -18
  77. package/es/Textarea/Textarea.js +4 -6
  78. package/es/Textarea/Textarea.module.css +60 -36
  79. package/es/Tooltip/Tooltip.module.css +13 -12
  80. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  81. package/es/common/animation.module.css +29 -227
  82. package/es/common/avatarsizes.module.css +16 -16
  83. package/es/common/basicReset.module.css +15 -5
  84. package/es/common/common.module.css +36 -82
  85. package/es/common/customscroll.module.css +32 -29
  86. package/es/common/transition.module.css +10 -50
  87. package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
  88. package/es/semantic/Button/semanticButton.module.css +3 -3
  89. package/es/v1/Animation/Animation.js +1 -1
  90. package/es/v1/AppContainer/AppContainer.js +10 -9
  91. package/es/v1/Avatar/Avatar.js +4 -5
  92. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  93. package/es/v1/Button/Button.js +5 -6
  94. package/es/v1/Card/Card.js +1 -1
  95. package/es/v1/CheckBox/CheckBox.js +15 -9
  96. package/es/v1/CheckBox/props/propTypes.js +1 -0
  97. package/es/v1/DropBox/DropBox.js +10 -11
  98. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  99. package/es/v1/DropDown/DropDown.js +2 -1
  100. package/es/v1/ListItem/ListContainer.js +7 -6
  101. package/es/v1/ListItem/ListItem.js +4 -5
  102. package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
  103. package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
  104. package/es/v1/ListItem/ListItemWithIcon.js +4 -5
  105. package/es/v1/ListItem/ListItemWithRadio.js +4 -5
  106. package/es/v1/Modal/Modal.js +4 -5
  107. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  108. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -10
  109. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -6
  110. package/es/v1/MultiSelect/SelectedOptions.js +6 -8
  111. package/es/v1/MultiSelect/Suggestions.js +6 -8
  112. package/es/v1/MultiSelect/props/defaultProps.js +1 -1
  113. package/es/v1/Popup/Popup.js +3 -4
  114. package/es/v1/Radio/Radio.js +21 -6
  115. package/es/v1/Radio/props/defaultProps.js +1 -0
  116. package/es/v1/Radio/props/propTypes.js +7 -0
  117. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +3 -5
  118. package/es/v1/Select/GroupSelect.js +1 -1
  119. package/es/v1/Select/Select.js +5 -6
  120. package/es/v1/Select/SelectWithAvatar.js +5 -7
  121. package/es/v1/Select/SelectWithIcon.js +1 -1
  122. package/es/v1/Select/props/defaultProps.js +1 -1
  123. package/es/v1/Select/props/propTypes.js +1 -3
  124. package/es/v1/Switch/Switch.js +8 -8
  125. package/es/v1/Tab/Tab.js +4 -5
  126. package/es/v1/Tab/TabContentWrapper.js +4 -5
  127. package/es/v1/Tab/TabWrapper.js +2 -4
  128. package/es/v1/Tab/Tabs.js +18 -18
  129. package/es/v1/Tab/v1Tab.module.css +39 -28
  130. package/es/v1/Tab/v1Tabs.module.css +29 -51
  131. package/es/v1/TextBox/TextBox.js +5 -5
  132. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
  133. package/es/v1/Textarea/Textarea.js +4 -6
  134. package/es/v1/Tooltip/Tooltip.js +1 -1
  135. package/es/v1/Typography/css/Typography.module.css +33 -39
  136. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  137. package/lib/AppContainer/AppContainer.module.css +2 -2
  138. package/lib/Avatar/Avatar.module.css +22 -52
  139. package/lib/AvatarTeam/AvatarTeam.module.css +74 -66
  140. package/lib/Button/css/Button.module.css +100 -162
  141. package/lib/Buttongroup/Buttongroup.module.css +17 -52
  142. package/lib/CheckBox/CheckBox.js +34 -24
  143. package/lib/CheckBox/CheckBox.module.css +60 -37
  144. package/lib/CheckBox/props/propTypes.js +1 -0
  145. package/lib/DateTime/DateTime.module.css +57 -86
  146. package/lib/DateTime/DateWidget.module.css +7 -11
  147. package/lib/DateTime/YearView.module.css +21 -34
  148. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
  149. package/lib/DropBox/css/DropBox.module.css +6 -24
  150. package/lib/DropDown/DropDown.module.css +2 -2
  151. package/lib/DropDown/DropDownHeading.module.css +13 -19
  152. package/lib/DropDown/DropDownItem.module.css +22 -43
  153. package/lib/DropDown/DropDownSearch.module.css +3 -3
  154. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  155. package/lib/Heading/Heading.module.css +2 -2
  156. package/lib/Label/Label.module.css +23 -12
  157. package/lib/Label/LabelColors.module.css +7 -1
  158. package/lib/Layout/Layout.module.css +15 -15
  159. package/lib/ListItem/ListItem.module.css +87 -90
  160. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
  161. package/lib/MultiSelect/MultiSelect.module.css +69 -55
  162. package/lib/MultiSelect/SelectedOptions.module.css +5 -11
  163. package/lib/PopOver/PopOver.module.css +4 -4
  164. package/lib/Radio/Radio.js +45 -26
  165. package/lib/Radio/Radio.module.css +40 -23
  166. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  167. package/lib/Radio/props/defaultProps.js +1 -0
  168. package/lib/Radio/props/propTypes.js +7 -0
  169. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  170. package/lib/Ribbon/Ribbon.module.css +64 -147
  171. package/lib/RippleEffect/RippleEffect.module.css +27 -9
  172. package/lib/Select/Select.module.css +22 -33
  173. package/lib/Stencils/Stencils.module.css +14 -32
  174. package/lib/Switch/Switch.module.css +35 -32
  175. package/lib/Tab/Tab.module.css +39 -28
  176. package/lib/Tab/Tabs.module.css +29 -51
  177. package/lib/Tag/Tag.module.css +91 -66
  178. package/lib/TextBox/TextBox.module.css +20 -36
  179. package/lib/TextBoxIcon/TextBoxIcon.module.css +6 -18
  180. package/lib/Textarea/Textarea.module.css +60 -36
  181. package/lib/Tooltip/Tooltip.module.css +13 -12
  182. package/lib/common/animation.module.css +29 -227
  183. package/lib/common/avatarsizes.module.css +16 -16
  184. package/lib/common/basicReset.module.css +15 -5
  185. package/lib/common/common.module.css +36 -82
  186. package/lib/common/customscroll.module.css +32 -29
  187. package/lib/common/transition.module.css +10 -50
  188. package/lib/semantic/Button/semanticButton.module.css +3 -3
  189. package/lib/v1/Animation/Animation.js +1 -1
  190. package/lib/v1/Card/Card.js +1 -1
  191. package/lib/v1/CheckBox/CheckBox.js +7 -1
  192. package/lib/v1/CheckBox/props/propTypes.js +1 -0
  193. package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
  194. package/lib/v1/ListItem/ListContainer.js +1 -1
  195. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  196. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
  197. package/lib/v1/MultiSelect/props/defaultProps.js +1 -1
  198. package/lib/v1/Radio/Radio.js +22 -7
  199. package/lib/v1/Radio/props/defaultProps.js +1 -0
  200. package/lib/v1/Radio/props/propTypes.js +7 -0
  201. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  202. package/lib/v1/Select/GroupSelect.js +1 -1
  203. package/lib/v1/Select/Select.js +1 -1
  204. package/lib/v1/Select/SelectWithAvatar.js +4 -6
  205. package/lib/v1/Select/SelectWithIcon.js +1 -1
  206. package/lib/v1/Select/props/defaultProps.js +1 -1
  207. package/lib/v1/Select/props/propTypes.js +1 -3
  208. package/lib/v1/Tab/Tabs.js +2 -2
  209. package/lib/v1/Tab/v1Tab.module.css +39 -28
  210. package/lib/v1/Tab/v1Tabs.module.css +29 -51
  211. package/lib/v1/Tooltip/Tooltip.js +1 -1
  212. package/lib/v1/Typography/css/Typography.module.css +33 -39
  213. package/package.json +10 -10
  214. package/es/v1/Provider/AvatarSize.js +0 -13
  215. package/es/v1/Provider/Config.js +0 -18
  216. package/es/v1/Provider/CssProvider.js +0 -16
  217. package/es/v1/Provider/IdProvider.js +0 -66
  218. package/es/v1/Provider/LibraryContext.js +0 -37
  219. package/es/v1/Provider/LibraryContextInit.js +0 -3
  220. package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
  221. package/es/v1/Provider/ZindexProvider.js +0 -57
  222. package/es/v1/Provider/index.js +0 -4
  223. package/es/v1/Responsive/CustomResponsive.js +0 -195
  224. package/es/v1/Responsive/RefWrapper.js +0 -39
  225. package/es/v1/Responsive/ResizeComponent.js +0 -197
  226. package/es/v1/Responsive/ResizeObserver.js +0 -140
  227. package/es/v1/Responsive/Responsive.js +0 -194
  228. package/es/v1/Responsive/index.js +0 -9
  229. package/es/v1/Responsive/props/defaultProps.js +0 -13
  230. package/es/v1/Responsive/props/propTypes.js +0 -25
  231. package/lib/v1/Provider/AvatarSize.js +0 -24
  232. package/lib/v1/Provider/Config.js +0 -27
  233. package/lib/v1/Provider/CssProvider.js +0 -27
  234. package/lib/v1/Provider/IdProvider.js +0 -79
  235. package/lib/v1/Provider/LibraryContext.js +0 -76
  236. package/lib/v1/Provider/LibraryContextInit.js +0 -15
  237. package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
  238. package/lib/v1/Provider/ZindexProvider.js +0 -69
  239. package/lib/v1/Provider/index.js +0 -81
  240. package/lib/v1/Responsive/CustomResponsive.js +0 -242
  241. package/lib/v1/Responsive/RefWrapper.js +0 -57
  242. package/lib/v1/Responsive/ResizeComponent.js +0 -268
  243. package/lib/v1/Responsive/ResizeObserver.js +0 -168
  244. package/lib/v1/Responsive/Responsive.js +0 -274
  245. package/lib/v1/Responsive/index.js +0 -55
  246. package/lib/v1/Responsive/props/defaultProps.js +0 -23
  247. package/lib/v1/Responsive/props/propTypes.js +0 -39
  248. package/result.json +0 -1
@@ -1,110 +1,122 @@
1
1
  .wrapper {
2
2
  position: relative;
3
3
  }
4
- .disabled, .readOnly {
4
+
5
+ .disabled,
6
+ .readOnly {
5
7
  cursor: not-allowed;
6
8
  }
9
+
7
10
  .container {
8
- max-height: var(--zd_size120) ;
11
+ max-height: 120px;
9
12
  composes: oflowy from '../common/common.module.css';
10
13
  }
14
+
11
15
  .hasBorder {
12
- transition: border var(--zd_transition2) linear 0s;
13
16
  border-bottom-style: solid;
14
17
  border-bottom-width: 1px;
18
+ transition: border var(--zd_transition2) linear 0s;
15
19
  }
20
+
16
21
  .borderColor_transparent {
17
22
  border-bottom-color: var(--zdt_multiselect_transparent_border);
18
23
  }
24
+
19
25
  .effect .borderColor_transparent:hover {
20
26
  border-bottom-color: var(--zdt_multiselect_transparent_hover_border);
21
27
  }
28
+
22
29
  .effect .borderColor_transparent.active {
23
30
  border-bottom-color: var(--zdt_multiselect_transparent_active_border);
24
31
  }
32
+
25
33
  .borderColor_default {
26
34
  border-bottom-color: var(--zdt_multiselect_default_border);
27
35
  }
36
+
28
37
  .effect .borderColor_default:hover {
29
38
  border-bottom-color: var(--zdt_multiselect_default_hover_border);
30
39
  }
40
+
31
41
  .effect .borderColor_default.active {
32
42
  border-bottom-color: var(--zdt_multiselect_default_active_border);
33
43
  }
44
+
34
45
  .borderColor_dark {
35
46
  border-bottom-color: var(--zdt_multiselect_dark_border);
36
47
  }
48
+
37
49
  .effect .borderColor_dark:hover {
38
50
  border-bottom-color: var(--zdt_multiselect_dark_hover_border);
39
51
  }
52
+
40
53
  .effect .borderColor_dark.active {
41
54
  border-bottom-color: var(--zdt_multiselect_dark_active_border);
42
55
  }
43
56
 
44
57
  .container.medium {
45
- padding-bottom: var(--zd_size8) ;
58
+ padding-bottom: 8px;
46
59
  }
47
60
 
48
61
  .container.xmedium {
49
- min-height: var(--zd_size30) ;
50
- padding-bottom: var(--zd_size3) ;
62
+ padding-bottom: 3px;
63
+ min-height: 30px;
51
64
  }
52
65
 
53
66
  .delete {
54
- font: inherit;
55
- padding: var(--zd_size2) var(--zd_size6) ;
67
+ padding: 2px 6px;
56
68
  cursor: pointer;
57
69
  border: 0;
58
70
  background-color: var(--zdt_multiselect_delete_bg);
71
+ font: inherit;
59
72
  }
73
+
60
74
  .delete,
61
75
  .defaultDelete {
62
76
  color: var(--zdt_multiselect_delete_text);
63
77
  }
78
+
64
79
  .darkDelete {
65
80
  color: var(--zdt_multiselect_darkdelete_text);
66
81
  }
67
82
 
68
83
  .delete:hover,
69
84
  .defaultDelete:hover {
70
- color: var(--zdt_multiselect_delete_hover_text);
85
+ color: var(--zdt_base_color);
71
86
  }
87
+
72
88
  .darkDelete:hover {
73
89
  color: var(--zdt_multiselect_darkdelete_hover_text);
74
90
  }
91
+
75
92
  .transparentContainer .delete {
76
93
  opacity: 0;
77
94
  visibility: hidden;
78
95
  }
96
+
79
97
  .transparentContainer:hover .delete {
80
98
  opacity: 1;
81
99
  visibility: visible;
82
100
  }
83
101
 
84
102
  .tag {
85
- max-width: 100% ;
103
+ max-width: 100%;
86
104
  }
87
105
 
88
- [dir=ltr] .container.xmedium .tag {
89
- margin: var(--zd_size2) var(--zd_size10) 0 0 ;
106
+ .container.xmedium .tag {
107
+ margin: 2px 10px 0 0;
90
108
  }
91
109
 
92
- [dir=rtl] .container.xmedium .tag {
93
- margin: var(--zd_size2) 0 0 var(--zd_size10) ;
110
+ .container.medium .tag {
111
+ margin: 5px 10px 0 0;
94
112
  }
95
113
 
96
- [dir=ltr] .container.medium .tag {
97
- margin: var(--zd_size5) var(--zd_size10) 0 0 ;
114
+ .responsiveParent {
115
+ width: 100%;
98
116
  }
99
117
 
100
- [dir=rtl] .container.medium .tag {
101
- margin: var(--zd_size5) 0 0 var(--zd_size10) ;
102
- }
103
- .responsiveParent{
104
- width: 100% ;
105
- }
106
118
  .box {
107
- background: var(--zdt_multiselect_box_bg);
119
+ background: var(--zdt_base_bg);
108
120
  }
109
121
 
110
122
  .selectAll:hover {
@@ -112,41 +124,43 @@
112
124
  }
113
125
 
114
126
  .small {
115
- max-height: var(--zd_size200) ;
127
+ max-height: 200px;
116
128
  }
117
129
 
118
130
  .medium {
119
- max-height: var(--zd_size350) ;
131
+ max-height: 350px;
120
132
  }
121
133
 
122
134
  .large {
123
- max-height: var(--zd_size400) ;
135
+ max-height: 400px;
124
136
  }
125
137
 
126
138
  .commonMessage {
127
- font-size: var(--zd_font_size14) ;
139
+ font-size: 14px;
128
140
  composes: semibold from '../common/common.module.css';
129
- padding: var(--zd_size12) var(--zd_size15) ;
141
+ padding: 12px 15px;
130
142
  }
143
+
131
144
  .default,
132
145
  .dark {
133
146
  composes: commonMessage;
134
147
  }
148
+
135
149
  .default,
136
150
  .defaultBox {
137
151
  color: var(--zdt_multiselect_message_text);
138
152
  }
153
+
139
154
  .dark,
140
155
  .darkBox {
141
- color: var(--zdt_multiselect_darkmsg_text);
142
- }
143
- .dark, .darkBox {
144
156
  background: var(--zdt_multiselect_darkmsg_bg);
157
+ color: var(--zdt_multiselect_darkmsg_text);
145
158
  }
146
159
 
147
160
  .hide {
148
161
  composes: vishidden from '../common/common.module.css';
149
162
  }
163
+
150
164
  .custmSpan {
151
165
  display: inline-block;
152
166
  vertical-align: middle;
@@ -154,51 +168,51 @@
154
168
  overflow: hidden;
155
169
  text-overflow: ellipsis;
156
170
  white-space: nowrap;
157
- max-width: 100% ;
171
+ max-width: 100%;
158
172
  visibility: hidden;
159
173
  }
174
+
160
175
  .custmSpanMedium {
161
- height: var(--zd_size35) ;
176
+ height: 35px;
162
177
  }
178
+
163
179
  .custmSpanXmedium {
164
- height: var(--zd_size28) ;
180
+ height: 28px;
165
181
  }
182
+
166
183
  .custmInputWrapper {
167
184
  position: absolute;
168
- top: 0 ;
169
- width: 100% ;
170
- }
171
- [dir=ltr] .custmInputWrapper {
172
- left: 0 ;
173
- }
174
- [dir=rtl] .custmInputWrapper {
175
- right: 0 ;
185
+ top: 0;
186
+ left: 0;
187
+ width: 100%;
176
188
  }
189
+
177
190
  .title {
178
- margin-bottom: var(--zd_size6) ;
191
+ margin-bottom: 6px;
179
192
  }
193
+
180
194
  .groupTitle {
181
- margin: var(--zd_size6) 0 ;
195
+ margin: 6px 0;
182
196
  }
197
+
183
198
  .loader {
184
- padding: var(--zd_size10) ;
199
+ padding: 10px;
185
200
  }
201
+
186
202
  .iconContainer {
187
- padding-top: var(--zd_size3)
203
+ padding-top: 3px
188
204
  }
189
- [dir=ltr] .clearIconSpace {
190
- padding-right: var(--zd_size37)
191
- }
192
- [dir=rtl] .clearIconSpace {
193
- padding-left: var(--zd_size37)
205
+
206
+ .clearIconSpace {
207
+ padding-right: 37px
194
208
  }
195
209
 
196
210
  .more {
197
- font-size: var(--zd_font_size14) ;
211
+ font-size: 14px;
198
212
  color: var(--zdt_multiselect_more_text);
199
- font-family: inherit;
200
213
  cursor: pointer;
201
- margin-top: var(--zd_size5) ;
214
+ margin-top: 5px;
215
+ font-family: inherit;
202
216
  background-color: var(--zdt_multiselect_delete_bg);
203
217
  border: 0;
204
- }
218
+ }
@@ -1,5 +1,3 @@
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
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import { MultiSelectWithAvatar_propTypes } from './props/propTypes';
@@ -157,7 +155,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
157
155
  shrink: true,
158
156
  customClass: !isModel && dropBoxSize ? style[dropBoxSize] : '',
159
157
  eleRef: this.suggestionContainerRef
160
- }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
158
+ }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
161
159
  needTick: keepSelectedOptions,
162
160
  suggestions: suggestions,
163
161
  getRef: this.suggestionItemRef,
@@ -170,8 +168,9 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
170
168
  selectedOptions: selectedOptionIds,
171
169
  a11y: {
172
170
  role: 'option'
173
- }
174
- }, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
171
+ },
172
+ ...SuggestionsProps
173
+ }) : /*#__PURE__*/React.createElement(EmptyState, {
175
174
  isLoading: isFetchingOptions,
176
175
  options: options,
177
176
  searchString: searchStr,
@@ -1,5 +1,3 @@
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
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import { SelectedOptions_propTypes } from './props/propTypes';
@@ -52,28 +50,28 @@ export default class SelectedOptions extends React.PureComponent {
52
50
  return /*#__PURE__*/React.createElement(Box, {
53
51
  className: `${style.tag} ${style[size]}`,
54
52
  key: `${id}photoTag`
55
- }, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
53
+ }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
56
54
  active: highLightedSelectOptions.indexOf(id) >= 0,
57
55
  hasAvatar: true,
58
56
  imageURL: photoURL
59
- })));
57
+ }));
60
58
  } else if (optionType === 'icon') {
61
59
  return /*#__PURE__*/React.createElement(Box, {
62
60
  className: `${style.tag} ${style[size]}`,
63
61
  key: `${id}iconTag`
64
- }, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
62
+ }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
65
63
  active: highLightedSelectOptions.indexOf(id) >= 0,
66
64
  iconName: icon,
67
65
  iconSize: iconSize
68
- })));
66
+ }));
69
67
  }
70
68
 
71
69
  return /*#__PURE__*/React.createElement(Box, {
72
70
  className: `${style.tag} ${style[size]}`,
73
71
  key: `${id}tag`
74
- }, /*#__PURE__*/React.createElement(Tag, _extends({}, commonProps, {
72
+ }, /*#__PURE__*/React.createElement(Tag, { ...commonProps,
75
73
  active: highLightedSelectOptions.indexOf(id) >= 0
76
- })));
74
+ }));
77
75
  }));
78
76
  }
79
77
 
@@ -1,15 +1,9 @@
1
1
  .tag {
2
- max-width: 100% ;
2
+ max-width: 100%;
3
3
  }
4
- [dir=ltr] .xmedium {
5
- margin: 0 var(--zd_size10) var(--zd_size2) 0 ;
4
+ .xmedium {
5
+ margin: 0 10px 2px 0;
6
6
  }
7
- [dir=rtl] .xmedium {
8
- margin: 0 0 var(--zd_size2) var(--zd_size10) ;
9
- }
10
- [dir=ltr] .medium {
11
- margin: var(--zd_size5) var(--zd_size10) 0 0 ;
12
- }
13
- [dir=rtl] .medium {
14
- margin: var(--zd_size5) 0 0 var(--zd_size10) ;
7
+ .medium {
8
+ margin: 5px 10px 0 0;
15
9
  }
@@ -1,5 +1,3 @@
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
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import { Suggestions_propTypes } from './props/propTypes';
@@ -76,7 +74,7 @@ export default class Suggestions extends React.PureComponent {
76
74
  }
77
75
 
78
76
  if (optionType === 'avatar') {
79
- return /*#__PURE__*/React.createElement(ListItemWithAvatar, _extends({}, commonProps, {
77
+ return /*#__PURE__*/React.createElement(ListItemWithAvatar, { ...commonProps,
80
78
  autoHover: false,
81
79
  getRef: getRef,
82
80
  highlight: isHighlight,
@@ -95,9 +93,9 @@ export default class Suggestions extends React.PureComponent {
95
93
  avatarPalette: avatarPalette,
96
94
  palette: palette,
97
95
  a11y: list_a11y
98
- }));
96
+ });
99
97
  } else if (optionType === 'icon') {
100
- return /*#__PURE__*/React.createElement(ListItemWithIcon, _extends({}, commonProps, {
98
+ return /*#__PURE__*/React.createElement(ListItemWithIcon, { ...commonProps,
101
99
  autoHover: false,
102
100
  getRef: getRef,
103
101
  highlight: isHighlight,
@@ -115,10 +113,10 @@ export default class Suggestions extends React.PureComponent {
115
113
  size: listItemSize,
116
114
  palette: palette,
117
115
  a11y: list_a11y
118
- }));
116
+ });
119
117
  }
120
118
 
121
- return /*#__PURE__*/React.createElement(ListItem, _extends({}, commonProps, {
119
+ return /*#__PURE__*/React.createElement(ListItem, { ...commonProps,
122
120
  autoHover: false,
123
121
  getRef: getRef,
124
122
  highlight: isHighlight,
@@ -134,7 +132,7 @@ export default class Suggestions extends React.PureComponent {
134
132
  size: listItemSize,
135
133
  palette: palette,
136
134
  a11y: list_a11y
137
- }));
135
+ });
138
136
  })));
139
137
  }
140
138
 
@@ -1,9 +1,9 @@
1
1
  .popup {
2
2
  position: relative;
3
- /* css:theme-validation:ignore */
4
- background-color: var(--dot_white);
3
+ background-color: var(--zdt_base_bg);
5
4
  }
5
+
6
6
  .target {
7
- composes: offSelection from '../common/common.module.css';
8
7
  cursor: pointer;
9
- }
8
+ composes: offSelection from '../common/common.module.css';
9
+ }
package/es/Popup/Popup.js CHANGED
@@ -1,5 +1,3 @@
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
-
3
1
  /**** Libraries ****/
4
2
  import React from 'react';
5
3
  import PropTypes from 'prop-types';
@@ -623,14 +621,15 @@ const Popup = function (Component) {
623
621
  isPopupOpen
624
622
  } = this.state;
625
623
  const localState = isPopupReady ? this.state : {};
626
- return /*#__PURE__*/React.createElement(Component, _extends({}, this.props, this.state, {
624
+ return /*#__PURE__*/React.createElement(Component, { ...this.props,
625
+ ...this.state,
627
626
  openPopupOnly: this.openPopupOnly,
628
627
  closePopupOnly: this.closePopupOnly,
629
628
  togglePopup: this.togglePopup,
630
629
  removeClose: this.removeClose,
631
630
  getTargetRef: this.getTargetRef,
632
631
  getContainerRef: this.getContainerRef
633
- }));
632
+ });
634
633
  }
635
634
 
636
635
  }
package/es/Radio/Radio.js CHANGED
@@ -9,6 +9,7 @@ export default class Radio extends React.Component {
9
9
  constructor(props) {
10
10
  super(props);
11
11
  this.onChange = this.onChange.bind(this);
12
+ this.handleGetRef = this.handleGetRef.bind(this);
12
13
  }
13
14
 
14
15
  onChange(e) {
@@ -19,6 +20,14 @@ export default class Radio extends React.Component {
19
20
  onChange && onChange(value, e);
20
21
  }
21
22
 
23
+ handleGetRef(ele) {
24
+ let {
25
+ getRef,
26
+ value
27
+ } = this.props;
28
+ getRef && getRef(ele, value);
29
+ }
30
+
22
31
  render() {
23
32
  let {
24
33
  id,
@@ -38,6 +47,8 @@ export default class Radio extends React.Component {
38
47
  active,
39
48
  isFilled,
40
49
  customClass,
50
+ customProps,
51
+ children,
41
52
  a11y
42
53
  } = this.props;
43
54
  let {
@@ -50,11 +61,16 @@ export default class Radio extends React.Component {
50
61
  let {
51
62
  ariaHidden,
52
63
  role = 'radio',
64
+ tabIndex,
53
65
  ariaChecked = checked,
54
66
  ariaLabel,
55
67
  ariaLabelledby,
56
68
  ariaReadonly = isReadOnly || disabled ? true : false
57
69
  } = a11y;
70
+ let {
71
+ ContainerProps = {},
72
+ LabelProps = {}
73
+ } = customProps;
58
74
  return /*#__PURE__*/React.createElement(Container, {
59
75
  dataId: value ? value.toLowerCase() : 'RadioComp',
60
76
  isCover: false,
@@ -65,12 +81,14 @@ export default class Radio extends React.Component {
65
81
  "data-title": toolTip,
66
82
  onClick: !isReadOnly && !disabled ? this.onChange : '',
67
83
  "aria-checked": ariaChecked,
68
- tabindex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
84
+ tabindex: isReadOnly || disabled || ariaHidden ? '-1' : tabIndex || '0',
85
+ eleRef: this.handleGetRef,
69
86
  role: role,
70
87
  "aria-Hidden": ariaHidden,
71
88
  "aria-label": ariaLabel,
72
89
  "aria-labelledby": ariaLabelledby,
73
- "aria-readonly": ariaReadonly
90
+ "aria-readonly": ariaReadonly,
91
+ ...ContainerProps
74
92
  }, /*#__PURE__*/React.createElement(Box, {
75
93
  className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
76
94
  ${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
@@ -99,16 +117,17 @@ export default class Radio extends React.Component {
99
117
  className: style.text
100
118
  }, /*#__PURE__*/React.createElement(Label, {
101
119
  text: text,
102
- palette: disabled ? 'disable' : labelPalette,
120
+ palette: labelPalette,
103
121
  size: labelSize,
104
122
  type: "title",
105
123
  clipped: true,
106
124
  dataId: `${text}_label`,
107
125
  variant: variant,
108
126
  title: toolTip ? toolTip : text,
109
- customClass: `${checked && active && !disabled ? `${style[`${palette}checkedActive`]}` : ''}
110
- ${style[`${palette}Label`]} ${accessMode} ${customLabel}`
111
- })));
127
+ customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
128
+ ${style[`${palette}Label`]} ${accessMode} ${customLabel}`,
129
+ ...LabelProps
130
+ })), children);
112
131
  }
113
132
 
114
133
  }
@@ -1,89 +1,104 @@
1
1
  .varClass {
2
2
  /* radio default variables */
3
- --radio_width: var(--zd_size16);
4
- --radio_height: var(--zd_size16);
3
+ --radio_width: 16px;
4
+ --radio_height: 16px;
5
5
  --radio_bg_color: none;
6
6
  --radio_stroke_width: 2px;
7
7
  --radio_stroke_color: var(--zdt_radio_default_stroke);
8
8
  --radio_fill: none;
9
9
  --radio_inner_stroke_width: 0;
10
- }[dir=ltr] .varClass {
11
- --radio_label_margin: 0 0 0 var(--zd_size6);
12
- }[dir=rtl] .varClass {
13
- --radio_label_margin: 0 var(--zd_size6) 0 0;
10
+ --radio_label_margin: 0 0 0 6px
11
+ /*rtl: 0 6px 0 0*/
12
+ ;
14
13
  }
14
+
15
15
  .container {
16
16
  composes: varClass;
17
17
  }
18
+
18
19
  .pointer {
19
20
  cursor: pointer;
20
21
  }
21
- .readonly, .disabled {
22
+
23
+ .readonly,
24
+ .disabled {
22
25
  cursor: not-allowed;
23
26
  }
27
+
28
+ .disabled {
29
+ opacity: 0.7
30
+ }
31
+
24
32
  .radio {
25
33
  composes: offSelection from '../common/common.module.css';
26
34
  width: var(--radio_width);
27
35
  height: var(--radio_height);
28
- /* css:theme-validation:ignore */
29
- stroke: var(--radio_stroke_color);
30
36
  background: var(--radio_bg_color);
31
37
  border-radius: 50%;
38
+ stroke: var(--radio_stroke_color);
32
39
  }
40
+
33
41
  .radio,
34
42
  .centerPath {
35
43
  fill: var(--radio_fill);
36
44
  }
45
+
37
46
  .filled {
38
- --radio_bg_color: var(--zdt_radio_default_bg);
47
+ --radio_bg_color: var(--zdt_base_bg);
39
48
  }
40
49
 
41
50
  .medium {
42
- --radio_width: var(--zd_size16);
43
- --radio_height: var(--zd_size16);
51
+ --radio_width: 16px;
52
+ --radio_height: 16px;
44
53
  }
54
+
45
55
  .small {
46
- --radio_width: var(--zd_size13);
47
- --radio_height: var(--zd_size13);
56
+ --radio_width: 13px;
57
+ --radio_height: 13px;
48
58
  }
59
+
49
60
  .radioLabel {
50
- font-size: 0 ;
61
+ font-size: 0;
51
62
  display: block;
52
63
  }
64
+
53
65
  .rdBox {
54
66
  fill: none;
55
67
  stroke-width: var(--radio_stroke_width);
56
68
  stroke-linecap: round;
57
69
  stroke: inherit;
58
70
  }
71
+
59
72
  .centerPath {
60
73
  --radio_fill: inherit;
61
- stroke-width: var(--radio_inner_stroke_width);
62
74
  transform-origin: center;
75
+ stroke-width: var(--radio_inner_stroke_width);
63
76
  }
64
- [dir=ltr] .checked .centerPath {
65
- animation: circleAnimate var(--zd_transition3) ease forwards;
66
- }
67
- [dir=rtl] .checked .centerPath {
77
+
78
+ .checked .centerPath {
68
79
  animation: circleAnimate var(--zd_transition3) ease forwards;
69
80
  }
81
+
70
82
  .rdBoxprimary,
71
83
  .hoverEfffect:hover .hoverprimary
84
+
72
85
  /* .hoverEfffect:focus .hoverprimary */
73
- {
86
+ {
74
87
  --radio_stroke_color: var(--zdt_radio_primary_stroke);
75
88
  }
76
89
 
77
90
  .rdBoxdanger,
78
91
  .hoverEfffect:hover .hoverdanger
92
+
79
93
  /* .hoverEfffect:focus .hoverdanger */
80
- {
94
+ {
81
95
  --radio_stroke_color: var(--zdt_radio_danger_stroke);
82
96
  }
83
97
 
84
98
  .centerPathprimary {
85
99
  --radio_fill: var(--zdt_radio_primary_fill);
86
100
  }
101
+
87
102
  .centerPathdanger {
88
103
  --radio_fill: var(--zdt_radio_danger_fill);
89
104
  }
@@ -103,11 +118,13 @@
103
118
  .text {
104
119
  margin: var(--radio_label_margin);
105
120
  }
121
+
106
122
  @keyframes circleAnimate {
107
123
  0% {
108
124
  transform: scale(0);
109
125
  }
126
+
110
127
  100% {
111
128
  transform: scale(1);
112
129
  }
113
- }
130
+ }