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

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 (182) 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.js +8 -2
  18. package/es/DateTime/DateTime.module.css +85 -57
  19. package/es/DateTime/DateWidget.js +14 -3
  20. package/es/DateTime/DateWidget.module.css +11 -7
  21. package/es/DateTime/Time.js +30 -13
  22. package/es/DateTime/YearView.module.css +34 -21
  23. package/es/DateTime/props/defaultProps.js +4 -2
  24. package/es/DateTime/props/propTypes.js +6 -3
  25. package/es/DropBox/DropBox.js +11 -10
  26. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  27. package/es/DropBox/css/DropBox.module.css +23 -6
  28. package/es/DropDown/DropDown.js +1 -2
  29. package/es/DropDown/DropDown.module.css +2 -2
  30. package/es/DropDown/DropDownHeading.module.css +15 -15
  31. package/es/DropDown/DropDownItem.module.css +40 -22
  32. package/es/DropDown/DropDownSearch.module.css +3 -3
  33. package/es/DropDown/DropDownSeparator.module.css +2 -2
  34. package/es/Heading/Heading.module.css +2 -2
  35. package/es/Label/Label.module.css +11 -23
  36. package/es/Label/LabelColors.module.css +1 -7
  37. package/es/Layout/Layout.module.css +15 -15
  38. package/es/ListItem/ListContainer.js +5 -6
  39. package/es/ListItem/ListItem.js +5 -4
  40. package/es/ListItem/ListItem.module.css +80 -98
  41. package/es/ListItem/ListItemWithAvatar.js +5 -4
  42. package/es/ListItem/ListItemWithCheckBox.js +5 -4
  43. package/es/ListItem/ListItemWithIcon.js +5 -4
  44. package/es/ListItem/ListItemWithRadio.js +5 -4
  45. package/es/Modal/Modal.js +5 -4
  46. package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
  47. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  48. package/es/MultiSelect/MultiSelect.module.css +55 -69
  49. package/es/MultiSelect/MultiSelectWithAvatar.js +5 -4
  50. package/es/MultiSelect/SelectedOptions.js +8 -6
  51. package/es/MultiSelect/SelectedOptions.module.css +11 -5
  52. package/es/MultiSelect/Suggestions.js +8 -6
  53. package/es/MultiSelect/props/defaultProps.js +4 -2
  54. package/es/PopOver/PopOver.module.css +2 -2
  55. package/es/Popup/Popup.js +4 -3
  56. package/es/Radio/Radio.js +8 -8
  57. package/es/Radio/Radio.module.css +22 -37
  58. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  59. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  60. package/es/Ribbon/Ribbon.module.css +143 -64
  61. package/es/RippleEffect/RippleEffect.module.css +9 -27
  62. package/es/Select/Select.js +5 -4
  63. package/es/Select/Select.module.css +33 -22
  64. package/es/Stencils/Stencils.module.css +32 -14
  65. package/es/Switch/Switch.js +8 -8
  66. package/es/Switch/Switch.module.css +30 -35
  67. package/es/Tab/Tab.js +5 -4
  68. package/es/Tab/Tab.module.css +28 -39
  69. package/es/Tab/TabContentWrapper.js +5 -4
  70. package/es/Tab/TabWrapper.js +4 -2
  71. package/es/Tab/Tabs.js +16 -16
  72. package/es/Tab/Tabs.module.css +51 -29
  73. package/es/Tag/Tag.module.css +60 -91
  74. package/es/TextBox/TextBox.js +5 -5
  75. package/es/TextBox/TextBox.module.css +19 -23
  76. package/es/TextBoxIcon/TextBoxIcon.js +4 -2
  77. package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
  78. package/es/Textarea/Textarea.js +6 -4
  79. package/es/Textarea/Textarea.module.css +30 -60
  80. package/es/Tooltip/Tooltip.module.css +12 -13
  81. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  82. package/es/common/animation.module.css +227 -29
  83. package/es/common/avatarsizes.module.css +16 -16
  84. package/es/common/basicReset.module.css +5 -15
  85. package/es/common/common.module.css +82 -36
  86. package/es/common/customscroll.module.css +33 -12
  87. package/es/common/transition.module.css +50 -10
  88. package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
  89. package/es/semantic/Button/semanticButton.module.css +3 -3
  90. package/es/v1/AppContainer/AppContainer.js +9 -10
  91. package/es/v1/Avatar/Avatar.js +5 -4
  92. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  93. package/es/v1/Button/Button.js +6 -5
  94. package/es/v1/CheckBox/CheckBox.js +8 -8
  95. package/es/v1/DropBox/DropBox.js +11 -10
  96. package/es/v1/DropDown/DropDown.js +1 -2
  97. package/es/v1/ListItem/ListContainer.js +5 -6
  98. package/es/v1/ListItem/ListItem.js +5 -4
  99. package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
  100. package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
  101. package/es/v1/ListItem/ListItemWithIcon.js +5 -4
  102. package/es/v1/ListItem/ListItemWithRadio.js +5 -4
  103. package/es/v1/Modal/Modal.js +5 -4
  104. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
  105. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
  106. package/es/v1/MultiSelect/SelectedOptions.js +8 -6
  107. package/es/v1/MultiSelect/Suggestions.js +8 -6
  108. package/es/v1/MultiSelect/props/defaultProps.js +4 -2
  109. package/es/v1/Popup/Popup.js +4 -3
  110. package/es/v1/Radio/Radio.js +8 -8
  111. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  112. package/es/v1/Select/Select.js +5 -4
  113. package/es/v1/Switch/Switch.js +8 -8
  114. package/es/v1/Tab/Tab.js +5 -4
  115. package/es/v1/Tab/TabContentWrapper.js +5 -4
  116. package/es/v1/Tab/TabWrapper.js +4 -2
  117. package/es/v1/Tab/Tabs.js +16 -16
  118. package/es/v1/Tab/v1Tab.module.css +28 -39
  119. package/es/v1/Tab/v1Tabs.module.css +51 -29
  120. package/es/v1/TextBox/TextBox.js +5 -5
  121. package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
  122. package/es/v1/Textarea/Textarea.js +6 -4
  123. package/es/v1/Typography/css/Typography.module.css +39 -33
  124. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  125. package/lib/AppContainer/AppContainer.module.css +2 -2
  126. package/lib/Avatar/Avatar.module.css +44 -26
  127. package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
  128. package/lib/Button/css/Button.module.css +156 -100
  129. package/lib/Buttongroup/Buttongroup.module.css +50 -17
  130. package/lib/CheckBox/CheckBox.module.css +35 -60
  131. package/lib/DateTime/DateTime.js +13 -2
  132. package/lib/DateTime/DateTime.module.css +85 -57
  133. package/lib/DateTime/DateWidget.js +19 -3
  134. package/lib/DateTime/DateWidget.module.css +11 -7
  135. package/lib/DateTime/Time.js +35 -13
  136. package/lib/DateTime/YearView.module.css +34 -21
  137. package/lib/DateTime/props/defaultProps.js +4 -2
  138. package/lib/DateTime/props/propTypes.js +6 -3
  139. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  140. package/lib/DropBox/css/DropBox.module.css +23 -6
  141. package/lib/DropDown/DropDown.module.css +2 -2
  142. package/lib/DropDown/DropDownHeading.module.css +15 -15
  143. package/lib/DropDown/DropDownItem.module.css +40 -22
  144. package/lib/DropDown/DropDownSearch.module.css +3 -3
  145. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  146. package/lib/Heading/Heading.module.css +2 -2
  147. package/lib/Label/Label.module.css +11 -23
  148. package/lib/Label/LabelColors.module.css +1 -7
  149. package/lib/Layout/Layout.module.css +15 -15
  150. package/lib/ListItem/ListItem.module.css +80 -98
  151. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  152. package/lib/MultiSelect/MultiSelect.module.css +55 -69
  153. package/lib/MultiSelect/SelectedOptions.module.css +11 -5
  154. package/lib/MultiSelect/props/defaultProps.js +4 -2
  155. package/lib/PopOver/PopOver.module.css +2 -2
  156. package/lib/Radio/Radio.module.css +22 -37
  157. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  158. package/lib/Ribbon/Ribbon.module.css +143 -64
  159. package/lib/RippleEffect/RippleEffect.module.css +9 -27
  160. package/lib/Select/Select.module.css +33 -22
  161. package/lib/Stencils/Stencils.module.css +32 -14
  162. package/lib/Switch/Switch.module.css +30 -35
  163. package/lib/Tab/Tab.module.css +28 -39
  164. package/lib/Tab/Tabs.module.css +51 -29
  165. package/lib/Tag/Tag.module.css +60 -91
  166. package/lib/TextBox/TextBox.module.css +19 -23
  167. package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
  168. package/lib/Textarea/Textarea.module.css +30 -60
  169. package/lib/Tooltip/Tooltip.module.css +12 -13
  170. package/lib/common/animation.module.css +227 -29
  171. package/lib/common/avatarsizes.module.css +16 -16
  172. package/lib/common/basicReset.module.css +5 -15
  173. package/lib/common/common.module.css +82 -36
  174. package/lib/common/customscroll.module.css +33 -12
  175. package/lib/common/transition.module.css +50 -10
  176. package/lib/semantic/Button/semanticButton.module.css +3 -3
  177. package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
  178. package/lib/v1/Tab/v1Tab.module.css +28 -39
  179. package/lib/v1/Tab/v1Tabs.module.css +51 -29
  180. package/lib/v1/Typography/css/Typography.module.css +39 -33
  181. package/package.json +3 -3
  182. 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
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React, { Component } from 'react';
3
5
  import { Select_defaultProps } from './props/defaultProps';
@@ -915,7 +917,7 @@ export class SelectComponent extends Component {
915
917
  shrink: true,
916
918
  customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
917
919
  eleRef: this.suggestionContainerRef
918
- }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
920
+ }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
919
921
  activeId: selectedId,
920
922
  suggestions: suggestions,
921
923
  getRef: this.suggestionItemRef,
@@ -932,9 +934,8 @@ export class SelectComponent extends Component {
932
934
  a11y: {
933
935
  ariaParentRole: 'listbox',
934
936
  role: 'option'
935
- },
936
- ...SuggestionsProps
937
- }) : /*#__PURE__*/React.createElement(EmptyState, {
937
+ }
938
+ }, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
938
939
  isLoading: isFetchingOptions,
939
940
  options: options,
940
941
  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
  }