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

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 (193) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +4 -0
  3. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
  4. package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
  5. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
  6. package/es/AppContainer/AppContainer.js +9 -10
  7. package/es/AppContainer/AppContainer.module.css +2 -2
  8. package/es/Avatar/Avatar.js +5 -4
  9. package/es/Avatar/Avatar.module.css +44 -26
  10. package/es/AvatarTeam/AvatarTeam.js +7 -7
  11. package/es/AvatarTeam/AvatarTeam.module.css +62 -74
  12. package/es/Button/Button.js +6 -5
  13. package/es/Button/css/Button.module.css +156 -100
  14. package/es/Buttongroup/Buttongroup.module.css +50 -17
  15. package/es/CheckBox/CheckBox.js +8 -8
  16. package/es/CheckBox/CheckBox.module.css +35 -60
  17. package/es/DateTime/DateTime.module.css +85 -57
  18. package/es/DateTime/DateWidget.module.css +11 -7
  19. package/es/DateTime/YearView.module.css +34 -21
  20. package/es/DropBox/DropBox.js +11 -10
  21. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  22. package/es/DropBox/css/DropBox.module.css +23 -6
  23. package/es/DropDown/DropDown.js +1 -2
  24. package/es/DropDown/DropDown.module.css +2 -2
  25. package/es/DropDown/DropDownHeading.module.css +15 -15
  26. package/es/DropDown/DropDownItem.module.css +40 -22
  27. package/es/DropDown/DropDownSearch.module.css +3 -3
  28. package/es/DropDown/DropDownSeparator.module.css +2 -2
  29. package/es/Heading/Heading.module.css +2 -2
  30. package/es/Label/Label.module.css +11 -23
  31. package/es/Label/LabelColors.module.css +1 -7
  32. package/es/Layout/Layout.module.css +15 -15
  33. package/es/ListItem/ListContainer.js +5 -6
  34. package/es/ListItem/ListItem.js +7 -6
  35. package/es/ListItem/ListItem.module.css +104 -55
  36. package/es/ListItem/ListItemWithAvatar.js +8 -7
  37. package/es/ListItem/ListItemWithCheckBox.js +5 -4
  38. package/es/ListItem/ListItemWithIcon.js +7 -6
  39. package/es/ListItem/ListItemWithRadio.js +5 -4
  40. package/es/Modal/Modal.js +5 -4
  41. package/es/MultiSelect/AdvancedGroupMultiSelect.js +9 -3
  42. package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
  43. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  44. package/es/MultiSelect/MultiSelect.js +9 -3
  45. package/es/MultiSelect/MultiSelect.module.css +55 -69
  46. package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
  47. package/es/MultiSelect/SelectedOptions.js +8 -6
  48. package/es/MultiSelect/SelectedOptions.module.css +11 -5
  49. package/es/MultiSelect/Suggestions.js +16 -10
  50. package/es/MultiSelect/props/defaultProps.js +9 -3
  51. package/es/MultiSelect/props/propTypes.js +7 -3
  52. package/es/PopOver/PopOver.module.css +2 -2
  53. package/es/Popup/Popup.js +4 -3
  54. package/es/Radio/Radio.js +8 -8
  55. package/es/Radio/Radio.module.css +22 -37
  56. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  57. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  58. package/es/Ribbon/Ribbon.module.css +143 -64
  59. package/es/RippleEffect/RippleEffect.module.css +9 -27
  60. package/es/Select/GroupSelect.js +9 -3
  61. package/es/Select/Select.js +5 -4
  62. package/es/Select/Select.module.css +33 -22
  63. package/es/Select/SelectWithAvatar.js +9 -3
  64. package/es/Select/SelectWithIcon.js +9 -3
  65. package/es/Select/props/defaultProps.js +6 -3
  66. package/es/Select/props/propTypes.js +6 -3
  67. package/es/Stencils/Stencils.module.css +32 -14
  68. package/es/Switch/Switch.js +8 -8
  69. package/es/Switch/Switch.module.css +30 -35
  70. package/es/Tab/Tab.js +5 -4
  71. package/es/Tab/Tab.module.css +28 -39
  72. package/es/Tab/TabContentWrapper.js +5 -4
  73. package/es/Tab/TabWrapper.js +4 -2
  74. package/es/Tab/Tabs.js +16 -16
  75. package/es/Tab/Tabs.module.css +51 -29
  76. package/es/Tag/Tag.module.css +60 -91
  77. package/es/TextBox/TextBox.js +5 -5
  78. package/es/TextBox/TextBox.module.css +19 -23
  79. package/es/TextBoxIcon/TextBoxIcon.js +4 -2
  80. package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
  81. package/es/Textarea/Textarea.js +6 -4
  82. package/es/Textarea/Textarea.module.css +30 -60
  83. package/es/Tooltip/Tooltip.module.css +12 -13
  84. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  85. package/es/common/animation.module.css +227 -29
  86. package/es/common/avatarsizes.module.css +16 -16
  87. package/es/common/basicReset.module.css +5 -15
  88. package/es/common/common.module.css +82 -36
  89. package/es/common/customscroll.module.css +33 -12
  90. package/es/common/transition.module.css +50 -10
  91. package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
  92. package/es/semantic/Button/semanticButton.module.css +3 -3
  93. package/es/v1/AppContainer/AppContainer.js +9 -10
  94. package/es/v1/Avatar/Avatar.js +5 -4
  95. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  96. package/es/v1/Button/Button.js +6 -5
  97. package/es/v1/CheckBox/CheckBox.js +8 -8
  98. package/es/v1/DropBox/DropBox.js +11 -10
  99. package/es/v1/DropDown/DropDown.js +1 -2
  100. package/es/v1/ListItem/ListContainer.js +5 -6
  101. package/es/v1/ListItem/ListItem.js +5 -4
  102. package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
  103. package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
  104. package/es/v1/ListItem/ListItemWithIcon.js +5 -4
  105. package/es/v1/ListItem/ListItemWithRadio.js +5 -4
  106. package/es/v1/Modal/Modal.js +5 -4
  107. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
  108. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
  109. package/es/v1/MultiSelect/SelectedOptions.js +8 -6
  110. package/es/v1/MultiSelect/Suggestions.js +8 -6
  111. package/es/v1/MultiSelect/props/defaultProps.js +4 -2
  112. package/es/v1/Popup/Popup.js +4 -3
  113. package/es/v1/Radio/Radio.js +8 -8
  114. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  115. package/es/v1/Select/Select.js +5 -4
  116. package/es/v1/Switch/Switch.js +8 -8
  117. package/es/v1/Tab/Tab.js +5 -4
  118. package/es/v1/Tab/TabContentWrapper.js +5 -4
  119. package/es/v1/Tab/TabWrapper.js +4 -2
  120. package/es/v1/Tab/Tabs.js +16 -16
  121. package/es/v1/Tab/v1Tab.module.css +28 -39
  122. package/es/v1/Tab/v1Tabs.module.css +51 -29
  123. package/es/v1/TextBox/TextBox.js +5 -5
  124. package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
  125. package/es/v1/Textarea/Textarea.js +6 -4
  126. package/es/v1/Typography/css/Typography.module.css +39 -33
  127. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  128. package/lib/AppContainer/AppContainer.module.css +2 -2
  129. package/lib/Avatar/Avatar.module.css +44 -26
  130. package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
  131. package/lib/Button/css/Button.module.css +156 -100
  132. package/lib/Buttongroup/Buttongroup.module.css +50 -17
  133. package/lib/CheckBox/CheckBox.module.css +35 -60
  134. package/lib/DateTime/DateTime.module.css +85 -57
  135. package/lib/DateTime/DateWidget.module.css +11 -7
  136. package/lib/DateTime/YearView.module.css +34 -21
  137. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  138. package/lib/DropBox/css/DropBox.module.css +23 -6
  139. package/lib/DropDown/DropDown.module.css +2 -2
  140. package/lib/DropDown/DropDownHeading.module.css +15 -15
  141. package/lib/DropDown/DropDownItem.module.css +40 -22
  142. package/lib/DropDown/DropDownSearch.module.css +3 -3
  143. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  144. package/lib/Heading/Heading.module.css +2 -2
  145. package/lib/Label/Label.module.css +11 -23
  146. package/lib/Label/LabelColors.module.css +1 -7
  147. package/lib/Layout/Layout.module.css +15 -15
  148. package/lib/ListItem/ListItem.js +2 -2
  149. package/lib/ListItem/ListItem.module.css +104 -55
  150. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  151. package/lib/ListItem/ListItemWithIcon.js +2 -2
  152. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
  153. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  154. package/lib/MultiSelect/MultiSelect.js +8 -3
  155. package/lib/MultiSelect/MultiSelect.module.css +55 -69
  156. package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
  157. package/lib/MultiSelect/SelectedOptions.module.css +11 -5
  158. package/lib/MultiSelect/Suggestions.js +8 -4
  159. package/lib/MultiSelect/props/defaultProps.js +9 -3
  160. package/lib/MultiSelect/props/propTypes.js +9 -6
  161. package/lib/PopOver/PopOver.module.css +2 -2
  162. package/lib/Radio/Radio.module.css +22 -37
  163. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  164. package/lib/Ribbon/Ribbon.module.css +143 -64
  165. package/lib/RippleEffect/RippleEffect.module.css +9 -27
  166. package/lib/Select/GroupSelect.js +8 -3
  167. package/lib/Select/Select.module.css +33 -22
  168. package/lib/Select/SelectWithAvatar.js +8 -3
  169. package/lib/Select/SelectWithIcon.js +8 -3
  170. package/lib/Select/props/defaultProps.js +5 -3
  171. package/lib/Select/props/propTypes.js +6 -3
  172. package/lib/Stencils/Stencils.module.css +32 -14
  173. package/lib/Switch/Switch.module.css +30 -35
  174. package/lib/Tab/Tab.module.css +28 -39
  175. package/lib/Tab/Tabs.module.css +51 -29
  176. package/lib/Tag/Tag.module.css +60 -91
  177. package/lib/TextBox/TextBox.module.css +19 -23
  178. package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
  179. package/lib/Textarea/Textarea.module.css +30 -60
  180. package/lib/Tooltip/Tooltip.module.css +12 -13
  181. package/lib/common/animation.module.css +227 -29
  182. package/lib/common/avatarsizes.module.css +16 -16
  183. package/lib/common/basicReset.module.css +5 -15
  184. package/lib/common/common.module.css +82 -36
  185. package/lib/common/customscroll.module.css +33 -12
  186. package/lib/common/transition.module.css +50 -10
  187. package/lib/semantic/Button/semanticButton.module.css +3 -3
  188. package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
  189. package/lib/v1/Tab/v1Tab.module.css +28 -39
  190. package/lib/v1/Tab/v1Tabs.module.css +51 -29
  191. package/lib/v1/Typography/css/Typography.module.css +39 -33
  192. package/package.json +3 -3
  193. package/result.json +1 -0
@@ -1,9 +1,9 @@
1
1
  .varClass {
2
2
  /* ribbon default variables */
3
3
  --ribbon_padding: 0;
4
- --ribbon_text_color: var(--zdt_base_color);
4
+ --ribbon_text_color: var(--zdt_ribbon_default_text);
5
5
  --ribbon_text_transform: none;
6
- --ribbon_font_size: 13px;
6
+ --ribbon_font_size: var(--zd_font_size13);
7
7
  --ribbon_bg_color: var(--zdt_ribbon_default_bg);
8
8
  --ribbon_box_shadow: none;
9
9
  --ribbon_border_width: 0;
@@ -11,37 +11,41 @@
11
11
  --ribbon_line_height: normal;
12
12
 
13
13
  /* flag ribbon default variable */
14
+
15
+ /* tag ribbon default variables */
16
+ --ribbon_tag_before_top: var(--zd_size3);
17
+ --ribbon_tag_before_border_style: solid;
18
+ --ribbon_tag_before_border_color: var(--zdt_ribbon_default_tag_border);
19
+ --ribbon_tag_before_width: var(--zd_size20);
20
+ --ribbon_tag_before_height: var(--zd_size20);
21
+ --ribbon_tag_before_left: calc( var(--zd_size10) * -1 );
22
+ --ribbon_tag_before_border_radius: 3px 0 0 0;
23
+ }[dir=ltr] .varClass {
14
24
  --ribbon_flag_border_width: 14px 12px 14px 0
15
25
  /*rtl: 14px 0 14px 12px*/
16
26
  ;
17
-
18
- /* tag ribbon default variables */
19
- --ribbon_tag_before_top: 3px;
20
27
  --ribbon_tag_before_border_width: 1px 0 0 1px
21
28
  /*rtl: 1px 1px 0 0*/
22
29
  ;
23
- --ribbon_tag_before_border_style: solid;
24
- --ribbon_tag_before_border_color: var(--zdt_ribbon_default_tag_border);
25
- --ribbon_tag_before_width: 20px;
26
- --ribbon_tag_before_height: 20px;
27
- --ribbon_tag_before_left: -10px;
28
- --ribbon_tag_before_border_radius: 3px 0 0 0;
30
+ }[dir=rtl] .varClass {
31
+ --ribbon_flag_border_width: 14px 12px 14px 0 ;
32
+ --ribbon_tag_before_border_width: 1px 0 0 1px ;
29
33
  }
30
34
 
31
35
  /* css:lineheight-validation:ignore */
32
36
  .basic {
33
37
  composes: varClass;
34
38
  position: relative;
35
- padding: var(--ribbon_padding);
36
39
  color: var(--ribbon_text_color);
37
40
  text-transform: var(--ribbon_text_transform);
38
41
  font-size: var(--ribbon_font_size);
42
+ line-height: var(--ribbon_line_height);
43
+ padding: var(--ribbon_padding);
39
44
  background-color: var(--ribbon_bg_color);
40
45
  box-shadow: var(--ribbon_box_shadow);
41
46
  border-width: var(--ribbon_border_width);
42
47
  border-style: solid;
43
48
  border-color: var(--ribbon_border_color);
44
- line-height: var(--ribbon_line_height);
45
49
  }
46
50
 
47
51
  .default,
@@ -56,27 +60,27 @@
56
60
 
57
61
  .default {
58
62
  composes: semibold from '../common/common.module.css';
59
- text-align: center;
60
63
  display: block;
61
- --ribbon_padding: 5px 20px;
64
+ --ribbon_padding: var(--zd_size5) var(--zd_size20);
62
65
  --ribbon_text_color: var(--zdt_ribbon_white_text);
63
66
  --ribbon_text_transform: uppercase;
67
+ text-align: center;
64
68
  }
65
69
 
66
70
  .small {
67
- --ribbon_font_size: 9px;
71
+ --ribbon_font_size: var(--zd_font_size9);
68
72
  }
69
73
 
70
74
  .medium {
71
- --ribbon_font_size: 11px;
75
+ --ribbon_font_size: var(--zd_font_size11);
72
76
  }
73
77
 
74
78
  .large {
75
- --ribbon_font_size: 13px;
79
+ --ribbon_font_size: var(--zd_font_size13);
76
80
  }
77
81
 
78
82
  .xlarge {
79
- --ribbon_font_size: 14px;
83
+ --ribbon_font_size: var(--zd_font_size14);
80
84
  }
81
85
 
82
86
  .palette_default {
@@ -124,7 +128,7 @@
124
128
  }
125
129
 
126
130
  .plain_dark {
127
- --ribbon_text_color: var(--zdt_base_color);
131
+ --ribbon_text_color: var(--zdt_ribbon_default_text);
128
132
  }
129
133
 
130
134
  .default_default {
@@ -208,13 +212,18 @@
208
212
  .flag {
209
213
  composes: dotted from '../common/common.module.css';
210
214
  display: block;
211
- --ribbon_padding: 4px 24px 4px 6px
212
- /*rtl: 4px 6px 4px 24px*/
213
- ;
214
215
  --ribbon_text_color: var(--zdt_ribbon_white_text);
215
216
  --ribbon_text_transform: uppercase;
216
217
  }
217
218
 
219
+ [dir=ltr] .flag {
220
+ --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6);
221
+ }
222
+
223
+ [dir=rtl] .flag {
224
+ --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6);
225
+ }
226
+
218
227
  .flag.small {
219
228
  --ribbon_line_height: 2.2223;
220
229
  }
@@ -236,17 +245,25 @@
236
245
  /* Variable:Ignore */
237
246
  top: -1px;
238
247
  /* Variable:Ignore */
239
- right: -1px;
240
248
  /* Variable:Ignore */
241
249
  bottom: -1px;
242
250
  content: '';
243
- width: 12px;
251
+ width: var(--zd_size12) ;
244
252
  border-style: solid;
245
- border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border);
246
253
  transform: translateZ(0);
247
254
  border-width: var(--ribbon_flag_border_width);
248
255
  }
249
256
 
257
+ [dir=ltr] .flag::after {
258
+ right: calc( var(--zd_size1) * -1 ) ;
259
+ border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border);
260
+ }
261
+
262
+ [dir=rtl] .flag::after {
263
+ left: calc( var(--zd_size1) * -1 ) ;
264
+ 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);
265
+ }
266
+
250
267
  .plain {
251
268
  display: inline-block;
252
269
  composes: semibold from '../common/common.module.css';
@@ -255,10 +272,10 @@
255
272
  .ribbon {
256
273
  composes: semibold from '../common/common.module.css';
257
274
  display: block;
258
- text-align: center;
259
275
  --ribbon_text_color: var(--zdt_ribbon_white_text);
260
276
  --ribbon_text_transform: uppercase;
261
- --ribbon_padding: 6px 10px;
277
+ --ribbon_padding: var(--zd_size6) var(--zd_size10);
278
+ text-align: center;
262
279
  }
263
280
 
264
281
  .ribbon.small {
@@ -281,78 +298,115 @@
281
298
  .ribbon::before {
282
299
  position: absolute;
283
300
  content: '';
284
- top: 100%;
285
- height: 10px;
286
- width: 10px;
301
+ top: 100% ;
302
+ height: var(--zd_size10) ;
303
+ width: var(--zd_size10) ;
304
+ }
305
+
306
+ .ribbon::after, .ribbon::before {
287
307
  border-style: solid;
288
308
  border-width: 5px;
289
- border-color: transparent transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border);
290
309
  background-color: inherit;
291
310
  }
292
311
 
293
- .ribbon::after {
294
- right: 0;
312
+ [dir=ltr] .ribbon::after, [dir=ltr] .ribbon::before {
313
+ border-color: transparent transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border);
295
314
  }
296
315
 
297
- .ribbon::before {
298
- left: 0;
316
+ [dir=rtl] .ribbon::after, [dir=rtl] .ribbon::before {
317
+ border-color: transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border) transparent;
318
+ }
319
+
320
+ [dir=ltr] .ribbon::after {
321
+ right: 0 ;
322
+ }
323
+
324
+ [dir=rtl] .ribbon::after {
325
+ left: 0 ;
326
+ }
327
+
328
+ [dir=ltr] .ribbon::before {
329
+ left: 0 ;
299
330
  transform: rotateY(180deg);
300
331
  }
301
332
 
333
+ [dir=rtl] .ribbon::before {
334
+ right: 0 ;
335
+ transform: rotateY(-180deg);
336
+ }
337
+
302
338
  .tag {
303
339
  composes: semibold from '../common/common.module.css';
304
340
  display: inline-block;
341
+ height: var(--zd_size28) ;
305
342
  border-style: solid;
306
343
  border-color: var(--zdt_ribbon_default_tag_border);
344
+ }
345
+
346
+ [dir=ltr] .tag {
307
347
  border-width: 1px 1px 1px 0
308
348
  /*rtl: 1px 0 1px 1px*/
309
349
  ;
310
350
  border-radius: 0 3px 3px 0
311
351
  /*rtl: 3px 0 0 3px*/
312
352
  ;
313
- margin-left: 13px;
314
- height: 28px;
315
- padding: 6px 8px 6px 5px;
353
+ margin-left: var(--zd_size13) ;
354
+ padding: var(--zd_size6) var(--zd_size8) var(--zd_size6) var(--zd_size5) ;
355
+ }
356
+
357
+ [dir=rtl] .tag {
358
+ border-width: 1px 0 1px 1px ;
359
+ border-radius: 3px 0 0 3px ;
360
+ margin-right: var(--zd_size13) ;
361
+ padding: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8) ;
316
362
  }
317
363
 
318
364
  .tag::before {
319
365
  position: absolute;
320
366
  content: '';
321
- transform: rotate(-45deg);
322
- background-color: inherit;
323
367
  top: var(--ribbon_tag_before_top);
368
+ width: var(--ribbon_tag_before_width);
369
+ height: var(--ribbon_tag_before_height);
370
+ background-color: inherit;
324
371
  border-style: var(--ribbon_tag_before_border_style);
325
372
  border-color: var(--ribbon_tag_before_border_color);
326
373
  border-width: var(--ribbon_tag_before_border_width);
327
- width: var(--ribbon_tag_before_width);
328
- height: var(--ribbon_tag_before_height);
329
- left: var(--ribbon_tag_before_left);
330
374
  border-radius: var(--ribbon_tag_before_border_radius);
331
375
  }
332
376
 
377
+ [dir=ltr] .tag::before {
378
+ transform: rotate(-45deg);
379
+ left: var(--ribbon_tag_before_left);
380
+ }
381
+
382
+ [dir=rtl] .tag::before {
383
+ transform: rotate(45deg);
384
+ right: var(--ribbon_tag_before_left);
385
+ }
386
+
333
387
  .box {
334
388
  display: inline-block;
389
+ --ribbon_bg_color: var(--zdt_ribbon_white_bg);
390
+ --ribbon_padding: var(--zd_size5) var(--zd_size8);
335
391
  border-radius: 3px;
336
- --ribbon_bg_color: var(--zdt_base_bg);
337
- --ribbon_padding: 5px 8px;
338
392
  }
339
393
 
340
394
  .stamp {
341
395
  display: inline-block;
342
- --ribbon_padding: 3px 5px;
396
+ --ribbon_padding: var(--zd_size3) var(--zd_size5);
343
397
  --ribbon_text_transform: uppercase;
344
398
  }
345
399
 
346
400
  .sticker {
347
401
  display: block;
402
+ height: var(--zd_size18) ;
403
+ --ribbon_text_color: var(--zdt_ribbon_white_text);
404
+ --ribbon_text_transform: uppercase;
348
405
  text-align: center;
349
406
  border-width: 1px 0;
350
407
  border-style: solid;
351
408
  border-color: var(--zdt_ribbon_flag_white_border);
352
- height: 18px;
353
- padding: 3px 10px;
354
- --ribbon_text_color: var(--zdt_ribbon_white_text);
355
- --ribbon_text_transform: uppercase;
409
+ padding: var(--zd_size3) var(--zd_size10) ;
356
410
  }
357
411
 
358
412
  .sticker.small {
@@ -374,17 +428,25 @@
374
428
  .after,
375
429
  .before {
376
430
  position: absolute;
377
- top: 0;
378
- bottom: 0;
379
- width: 10px;
431
+ top: 0 ;
432
+ bottom: 0 ;
433
+ width: var(--zd_size10) ;
380
434
  }
381
435
 
382
- .after {
383
- right: -2px;
436
+ [dir=ltr] .after {
437
+ right: calc( var(--zd_size2) * -1 ) ;
384
438
  }
385
439
 
386
- .before {
387
- left: -8px;
440
+ [dir=rtl] .after {
441
+ left: calc( var(--zd_size2) * -1 ) ;
442
+ }
443
+
444
+ [dir=ltr] .before {
445
+ left: calc( var(--zd_size8) * -1 ) ;
446
+ }
447
+
448
+ [dir=rtl] .before {
449
+ right: calc( var(--zd_size8) * -1 ) ;
388
450
  }
389
451
 
390
452
  .after::after,
@@ -392,30 +454,47 @@
392
454
  .before::after,
393
455
  .before::before {
394
456
  position: absolute;
395
- height: 7px;
396
- width: 7px;
457
+ height: var(--zd_size7) ;
458
+ width: var(--zd_size7) ;
397
459
  content: '';
460
+ }
461
+
462
+ .after::after, .after::before, .before::after, .before::before {
463
+ background-color: var(--zdt_ribbon_white_bg);
464
+ }
465
+
466
+ [dir=ltr] .after::after, [dir=ltr] .after::before, [dir=ltr] .before::after, [dir=ltr] .before::before {
398
467
  transform: rotate(45deg);
399
- background-color: var(--zdt_base_bg);
468
+ }
469
+
470
+ [dir=rtl] .after::after, [dir=rtl] .after::before, [dir=rtl] .before::after, [dir=rtl] .before::before {
471
+ transform: rotate(-45deg);
400
472
  }
401
473
 
402
474
  .after::after,
403
475
  .before::after {
404
- top: 0;
476
+ top: 0 ;
405
477
  }
406
478
 
407
479
  .after::before,
408
480
  .before::before {
409
- bottom: 0;
481
+ bottom: 0 ;
410
482
  }
411
483
 
412
484
  .children {
413
485
  display: inline-block;
414
- margin-right: 4px;
415
486
  vertical-align: top;
416
487
  line-height: 0;
417
488
  }
418
489
 
490
+ [dir=ltr] .children {
491
+ margin-right: var(--zd_size4) ;
492
+ }
493
+
494
+ [dir=rtl] .children {
495
+ margin-left: var(--zd_size4) ;
496
+ }
497
+
419
498
  .childText {
420
499
  position: relative;
421
500
  }
@@ -8,27 +8,22 @@
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
11
+ .hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
14
12
  /* .hoverEffect:focus.primary.borderHover */
15
13
  {
16
14
  border-color: var(--zdt_rippleeffect_primary_border);
17
15
  }
18
- .primary.defaultHover,
19
- .hoverEffect:hover.primary.active.border
16
+ .primary.defaultHover, .hoverEffect:hover.primary.active.border
20
17
  /* .hoverEffect:focus.primary.active.border */
21
18
  {
22
19
  border-color: var(--zdt_rippleeffect_primary_active_border);
23
20
  }
24
- .primaryLight.defaultHover,
25
- .hoverEffect:hover.primaryLight.borderHover
21
+ .primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
26
22
  /* .hoverEffect:focus.primaryLight.borderHover */
27
23
  {
28
24
  border-color: var(--zdt_rippleeffect_primary_light_border);
29
25
  }
30
- .green.defaultHover,
31
- .hoverEffect:hover.green.borderHover
26
+ .green.defaultHover, .hoverEffect:hover.green.borderHover
32
27
  /* .hoverEffect:focus.green.borderHover */
33
28
  {
34
29
  border-color: var(--zdt_rippleeffect_green_border);
@@ -56,9 +51,7 @@
56
51
  .primaryFilled {
57
52
  background-color: var(--zdt_rippleeffect_primary_bg);
58
53
  }
59
- .hoverEffect:hover.primaryFilled,
60
- /* .hoverEffect:focus.primaryFilled, */
61
- .primaryFilled.active {
54
+ .hoverEffect:hover.primaryFilled, .primaryFilled.active {
62
55
  background-color: var(--zdt_rippleeffect_primaryfilled_bg);
63
56
  }
64
57
  .hoverEffect:hover.green.bgHover
@@ -66,18 +59,10 @@
66
59
  {
67
60
  background-color: var(--zdt_rippleeffect_green_bg);
68
61
  }
69
- .default.active,
70
- .hoverEffect:hover.default.active,
71
- /* .hoverEffect:focus.default.active, */
72
- .primaryLight.active,
73
- .primaryDark.active {
62
+ .default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
74
63
  background-color: var(--zdt_rippleeffect_primary_light_bg);
75
64
  }
76
- .default.active.border,
77
- .hoverEffect:hover.default.active.border,
78
- /* .hoverEffect:focus.default.active.border, */
79
- .primaryLight.active.border,
80
- .primaryDark.active.border {
65
+ .default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
81
66
  border-color: var(--zdt_rippleeffect_primary_light_border);
82
67
  }
83
68
  .green.active {
@@ -89,15 +74,12 @@
89
74
  .primary.active {
90
75
  background-color: var(--zdt_rippleeffect_primary_bg);
91
76
  }
92
- .danger.defaultHover,
93
- .hoverEffect:hover.danger.borderHover
77
+ .danger.defaultHover, .hoverEffect:hover.danger.borderHover
94
78
  /* .hoverEffect:focus.danger.borderHover */
95
79
  {
96
80
  border-color: var(--zdt_rippleeffect_danger_border);
97
81
  }
98
- .hoverEffect:hover.danger.bgHover,
99
- /* .hoverEffect:focus.danger.bgHover, */
100
- .danger.active {
82
+ .hoverEffect:hover.danger.bgHover, .danger.active {
101
83
  background-color: var(--zdt_rippleeffect_danger_bg);
102
84
  }
103
85
  .hoverEffect:hover.primaryDark.bgHover
@@ -51,6 +51,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
51
51
 
52
52
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
53
53
 
54
+ 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); }
55
+
54
56
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
55
57
 
56
58
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -660,7 +662,10 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
660
662
  htmlId = _this$props9.htmlId,
661
663
  iconOnHover = _this$props9.iconOnHover,
662
664
  isLoading = _this$props9.isLoading,
663
- dataSelectorId = _this$props9.dataSelectorId;
665
+ dataSelectorId = _this$props9.dataSelectorId,
666
+ customProps = _this$props9.customProps;
667
+ var _customProps$suggesti = customProps.suggestionsProps,
668
+ suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
664
669
  i18nKeys = Object.assign({}, i18nKeys, {
665
670
  emptyText: i18nKeys.emptyText || emptyMessage,
666
671
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -820,7 +825,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
820
825
  a11y: {
821
826
  role: 'heading'
822
827
  }
823
- })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
828
+ })), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
824
829
  activeId: selectedId,
825
830
  suggestions: options,
826
831
  getRef: _this7.suggestionItemRef,
@@ -835,7 +840,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
835
840
  ariaParentRole: 'listbox',
836
841
  role: 'option'
837
842
  }
838
- }));
843
+ }, suggestionsProps)));
839
844
  }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
840
845
  options: revampedGroups,
841
846
  searchString: searchStr,
@@ -3,29 +3,29 @@
3
3
  }
4
4
 
5
5
  .small {
6
- max-height: 200px;
6
+ max-height: var(--zd_size200) ;
7
7
  }
8
8
 
9
9
  .medium {
10
- max-height: 350px;
10
+ max-height: var(--zd_size350) ;
11
11
  }
12
12
 
13
13
  .large {
14
- max-height: 400px;
14
+ max-height: var(--zd_size400) ;
15
15
  }
16
16
 
17
17
  .emptyState {
18
- font-size: 14px;
18
+ font-size: var(--zd_font_size14) ;
19
19
  color: var(--zdt_select_emptystate_text);
20
20
  composes: semibold from '../common/common.module.css';
21
21
  }
22
22
 
23
23
  .box_small .emptyState {
24
- padding: 12px 6px;
24
+ padding: var(--zd_size12) var(--zd_size6) ;
25
25
  }
26
26
 
27
27
  .box_medium .emptyState {
28
- padding: 12px 15px;
28
+ padding: var(--zd_size12) var(--zd_size15) ;
29
29
  }
30
30
 
31
31
  .hide {
@@ -37,32 +37,32 @@
37
37
  }
38
38
  /* css:lineheight-validation:ignore */
39
39
  .arrowIcon {
40
- height: 8px;
40
+ height: var(--zd_size8) ;
41
41
  line-height: var(--zd_size8);
42
42
  }
43
43
 
44
44
  .small.search {
45
- padding: 0 5px;
45
+ padding: 0 var(--zd_size5) ;
46
46
  }
47
47
 
48
48
  .medium.search {
49
- padding: 3px 20px 0;
49
+ padding: var(--zd_size3) var(--zd_size20) 0 ;
50
50
  }
51
51
 
52
52
  .title {
53
- margin-bottom: 6px;
53
+ margin-bottom: var(--zd_size6) ;
54
54
  }
55
55
 
56
56
  .groupTitle {
57
- margin: 6px 0;
57
+ margin: var(--zd_size6) 0 ;
58
58
  }
59
59
 
60
60
  .listItemContainer {
61
- padding: 10px 0;
61
+ padding: var(--zd_size10) 0 ;
62
62
  }
63
63
 
64
64
  .responsivelistItemContainer {
65
- padding: 10px 0 0;
65
+ padding: var(--zd_size10) 0 0 ;
66
66
  }
67
67
 
68
68
  .readonly {
@@ -85,22 +85,33 @@
85
85
 
86
86
  .leftIcon {
87
87
  position: absolute;
88
- top: 0;
89
- bottom: 0;
90
- left: 0;
91
- width: 30px;
88
+ top: 0 ;
89
+ bottom: 0 ;
90
+ width: var(--zd_size30) ;
92
91
  }
93
92
 
94
- .iconSelect {
95
- padding-left: 30px;
93
+ [dir=ltr] .leftIcon {
94
+ left: 0 ;
95
+ }
96
+
97
+ [dir=rtl] .leftIcon {
98
+ right: 0 ;
99
+ }
100
+
101
+ [dir=ltr] .iconSelect {
102
+ padding-left: var(--zd_size30) ;
103
+ }
104
+
105
+ [dir=rtl] .iconSelect {
106
+ padding-right: var(--zd_size30) ;
96
107
  }
97
108
 
98
109
  .dropBoxList {
99
- padding: 10px 0;
110
+ padding: var(--zd_size10) 0 ;
100
111
  }
101
112
 
102
113
  .responsivedropBoxList {
103
- padding: 10px 0 0 0;
114
+ padding: var(--zd_size10) 0 0 0 ;
104
115
  }
105
116
 
106
117
  .rotate {
@@ -120,5 +131,5 @@
120
131
  }
121
132
 
122
133
  .loader {
123
- padding: 10px;
134
+ padding: var(--zd_size10) ;
124
135
  }
@@ -51,6 +51,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
51
51
 
52
52
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
53
53
 
54
+ 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); }
55
+
54
56
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
55
57
 
56
58
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -208,7 +210,10 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
208
210
  htmlId = _this$props.htmlId,
209
211
  needEffect = _this$props.needEffect,
210
212
  isLoading = _this$props.isLoading,
211
- dataSelectorId = _this$props.dataSelectorId;
213
+ dataSelectorId = _this$props.dataSelectorId,
214
+ customProps = _this$props.customProps;
215
+ var _customProps$suggesti = customProps.suggestionsProps,
216
+ suggestionsProps = _customProps$suggesti === void 0 ? {} : _customProps$suggesti;
212
217
  i18nKeys = Object.assign({}, i18nKeys, {
213
218
  emptyText: i18nKeys.emptyText || emptyMessage,
214
219
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -341,7 +346,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
341
346
  a11y: {
342
347
  role: 'heading'
343
348
  }
344
- })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
349
+ })) : null, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
345
350
  activeId: selectedId,
346
351
  suggestions: suggestions,
347
352
  getRef: _this2.suggestionItemRef,
@@ -357,7 +362,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
357
362
  ariaParentRole: 'listbox',
358
363
  role: 'option'
359
364
  }
360
- }) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
365
+ }, suggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
361
366
  isLoading: isFetchingOptions,
362
367
  options: options,
363
368
  searchString: searchStr,