@zohodesk/components 1.0.0-alpha-235 → 1.0.0-alpha-236

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 (59) hide show
  1. package/README.md +4 -0
  2. package/es/Avatar/Avatar.module.css +11 -9
  3. package/es/AvatarTeam/AvatarTeam.module.css +21 -7
  4. package/es/Button/Button.module.css +97 -24
  5. package/es/Buttongroup/Buttongroup.module.css +37 -8
  6. package/es/CheckBox/CheckBox.module.css +17 -11
  7. package/es/DateTime/DateTime.module.css +39 -12
  8. package/es/DateTime/DateWidget.module.css +9 -5
  9. package/es/DateTime/YearView.module.css +16 -6
  10. package/es/DropBox/DropBox.module.css +47 -11
  11. package/es/DropDown/DropDownHeading.module.css +7 -3
  12. package/es/DropDown/DropDownItem.module.css +32 -6
  13. package/es/ListItem/ListItem.module.css +57 -25
  14. package/es/MultiSelect/AdvancedGroupMultiSelect.js +6 -3
  15. package/es/MultiSelect/AdvancedMultiSelect.module.css +22 -8
  16. package/es/MultiSelect/MultiSelect.js +6 -2
  17. package/es/MultiSelect/MultiSelect.module.css +27 -10
  18. package/es/MultiSelect/SelectedOptions.module.css +8 -2
  19. package/es/PopOver/PopOver.module.css +1 -1
  20. package/es/Provider/Config.js +3 -2
  21. package/es/Radio/Radio.module.css +10 -4
  22. package/es/Ribbon/Ribbon.module.css +93 -28
  23. package/es/RippleEffect/RippleEffect.module.css +15 -44
  24. package/es/Select/Select.js +8 -4
  25. package/es/Select/Select.module.css +12 -2
  26. package/es/Stencils/Stencils.module.css +21 -3
  27. package/es/Switch/Switch.module.css +6 -7
  28. package/es/Tab/Tab.module.css +16 -7
  29. package/es/Tab/Tabs.module.css +41 -8
  30. package/es/Tag/Tag.module.css +36 -14
  31. package/es/TextBox/TextBox.module.css +7 -11
  32. package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
  33. package/es/Textarea/Textarea.module.css +6 -7
  34. package/es/Tooltip/Tooltip.module.css +9 -8
  35. package/es/beta/FocusRing/FocusRing.module.css +51 -26
  36. package/es/common/animation.module.css +219 -21
  37. package/es/common/basicReset.module.css +2 -12
  38. package/es/common/common.module.css +62 -18
  39. package/es/common/customscroll.module.css +17 -21
  40. package/es/common/docStyle.module.css +78 -31
  41. package/es/common/transition.module.css +50 -10
  42. package/es/semantic/Button/semanticButton.module.css +3 -3
  43. package/lib/AppContainer/AppContainer.js +1 -1
  44. package/lib/DropBox/DropBox.js +1 -1
  45. package/lib/ListItem/ListContainer.js +7 -4
  46. package/lib/ListItem/ListItem.js +1 -1
  47. package/lib/ListItem/ListItem.module.css +5 -10
  48. package/lib/ListItem/ListItemWithAvatar.js +1 -1
  49. package/lib/ListItem/ListItemWithCheckBox.js +1 -1
  50. package/lib/ListItem/ListItemWithIcon.js +1 -1
  51. package/lib/ListItem/ListItemWithRadio.js +1 -1
  52. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
  53. package/lib/MultiSelect/MultiSelect.js +7 -6
  54. package/lib/Provider/Config.js +4 -1
  55. package/lib/Select/GroupSelect.js +1 -1
  56. package/lib/Select/Select.js +9 -4
  57. package/lib/Tooltip/Tooltip.js +15 -8
  58. package/lib/Tooltip/Tooltip.module.css +6 -1
  59. package/package.json +1 -1
@@ -1,26 +1,31 @@
1
- .boxPadding {
1
+ [dir=ltr] .boxPadding {
2
2
  padding-right: var(--zd_size19);
3
3
  padding-left: var(--zd_size19);
4
+ }[dir=rtl] .boxPadding {
5
+ padding-left: var(--zd_size19);
6
+ padding-right: var(--zd_size19);
4
7
  }
5
8
  .month {
6
9
  width: 30.333%;
10
+ font-size: var(--zd_font_size12);
11
+ line-height: var(--zd_size26);
12
+ height: var(--zd_size26);
7
13
  text-align: center;
8
14
  margin: 0 0 var(--zd_size1);
9
15
  cursor: pointer;
10
16
  background-color: var(--zdt_yearview_month_bg);
11
17
  border-radius: 20px;
12
- font-size: var(--zd_font_size12);
13
- line-height: var(--zd_size26);
14
- height: var(--zd_size26);
15
18
  }
16
19
  .month:hover {
17
20
  background-color: var(--zdt_yearview_month_hover_bg);
18
21
  }
19
22
  .currentMonth,
20
23
  .currentMonth:hover {
21
- background-color: var(--zdt_yearview_currentmonth_bg);
22
24
  color: var(--zdt_yearview_currentmonth_text);
23
25
  }
26
+ .currentMonth, .currentMonth:hover {
27
+ background-color: var(--zdt_yearview_currentmonth_bg);
28
+ }
24
29
  .yearBox {
25
30
  border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
26
31
  }
@@ -48,9 +53,14 @@
48
53
  color: var(--zdt_yearview_year_hover_text);
49
54
  }
50
55
  .arrowActive {
51
- transform: rotate(180deg);
52
56
  color: var(--zdt_yearview_year_hover_text);
53
57
  }
58
+ [dir=ltr] .arrowActive {
59
+ transform: rotate(180deg);
60
+ }
61
+ [dir=rtl] .arrowActive {
62
+ transform: rotate(-180deg);
63
+ }
54
64
  .container {
55
65
  height: 100%;
56
66
  overflow-y: auto;
@@ -28,8 +28,7 @@
28
28
  padding: var(--dropbox_padding);
29
29
  box-shadow: var(--dropbox_box_shadow);
30
30
  }
31
- .defaultPalette,
32
- .darkPalette {
31
+ .defaultPalette, .darkPalette {
33
32
  background-color: var(--dropbox_bg_color);
34
33
  }
35
34
  .radius {
@@ -84,11 +83,13 @@
84
83
  .bottom_shadow {
85
84
  --dropbox_box_shadow: 0 3px 30px var(--zdt_dropbox_default_box_shadow);
86
85
  }
87
- .defaultShadow {
86
+ [dir=ltr] .defaultShadow {
88
87
  box-shadow: 4px 3px 30px var(--zdt_dropbox_default_box_shadow);
89
88
  }
89
+ [dir=rtl] .defaultShadow {
90
+ box-shadow: -4px 3px 30px var(--zdt_dropbox_default_box_shadow);
91
+ }
90
92
  /* box direction styles */
91
- /*rtl:begin:ignore*/
92
93
  .topStart {
93
94
  bottom: 100%;
94
95
  right: 0;
@@ -272,7 +273,6 @@
272
273
  bottom: var(--zd_size28);
273
274
  transform: rotate(-90deg) translateX(-50%);
274
275
  }
275
- /*rtl:end:ignore*/
276
276
  .hidden {
277
277
  visibility: hidden;
278
278
  opacity: 0;
@@ -282,7 +282,10 @@
282
282
  .hidden .subContainer {
283
283
  box-shadow: none;
284
284
  }
285
- .animationBasic {
285
+ [dir=ltr] .animationBasic {
286
+ animation-duration: var(--zd_transition2);
287
+ }
288
+ [dir=rtl] .animationBasic {
286
289
  animation-duration: var(--zd_transition2);
287
290
  }
288
291
  .fadeIn {
@@ -291,11 +294,24 @@
291
294
  }
292
295
  .bounce {
293
296
  composes: animationBasic;
297
+ }
298
+ [dir=ltr] .bounce {
299
+ animation-name: animation;
300
+ animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
301
+ }
302
+ [dir=rtl] .bounce {
294
303
  animation-name: animation;
295
304
  animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
296
305
  }
297
306
  .slideUp {
298
307
  composes: modeForward from '../common/animation.module.css';
308
+ }
309
+ [dir=ltr] .slideUp {
310
+ animation-duration: var(--zd_transition3);
311
+ animation-name: slideUp;
312
+ animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
313
+ }
314
+ [dir=rtl] .slideUp {
299
315
  animation-duration: var(--zd_transition3);
300
316
  animation-name: slideUp;
301
317
  animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
@@ -325,16 +341,23 @@
325
341
  .responsive {
326
342
  position: absolute;
327
343
  bottom: 0;
328
- left: 0;
329
344
  width: 100%;
330
345
  max-height: 90%;
331
346
  }
332
347
 
348
+ [dir=ltr] .responsive {
349
+ left: 0;
350
+ }
351
+
352
+ [dir=rtl] .responsive {
353
+ right: 0;
354
+ }
355
+
333
356
  .closeBar {
334
357
  height: 6px;
358
+ width: 20%;
335
359
  border-radius: 5px;
336
360
  background-color: var(--dropbox_mob_close_bg_color);
337
- width: 20%;
338
361
  cursor: pointer;
339
362
  margin: 0 auto var(--zd_size10);
340
363
  }
@@ -346,19 +369,32 @@
346
369
  }
347
370
  .activateInDelay {
348
371
  composes: modeForward from '../common/animation.module.css';
372
+ pointer-events: none;
373
+ }
374
+ [dir=ltr] .activateInDelay {
375
+ animation-duration: var(--zd_transition1);
376
+ animation-delay: var(--zd_transition2);
377
+ animation-name: activateInDelay;
378
+ }
379
+ [dir=rtl] .activateInDelay {
349
380
  animation-duration: var(--zd_transition1);
350
381
  animation-delay: var(--zd_transition2);
351
- pointer-events: none;
352
382
  animation-name: activateInDelay;
353
383
  }
354
384
  .freezeLayer {
355
385
  position: absolute;
356
386
  top: 0;
357
- left: 0;
358
387
  bottom: 0;
359
- right: 0;
360
388
  composes: activateInDelay;
361
389
  }
390
+ [dir=ltr] .freezeLayer {
391
+ left: 0;
392
+ right: 0;
393
+ }
394
+ [dir=rtl] .freezeLayer {
395
+ right: 0;
396
+ left: 0;
397
+ }
362
398
  .freeze {
363
399
  composes: varClass;
364
400
  background: var(--dropbox_mob_bg_color);
@@ -33,11 +33,15 @@
33
33
  .light {
34
34
  composes: default;
35
35
  }
36
- .light::after,
37
- .dark::after {
38
- left: var(--dropdownheading_underline_left);
36
+ .light::after, .dark::after {
39
37
  background-color: var(--dropdownheading_underline_bg_color);
40
38
  }
39
+ [dir=ltr] .light::after, [dir=ltr] .dark::after {
40
+ left: var(--dropdownheading_underline_left);
41
+ }
42
+ [dir=rtl] .light::after, [dir=rtl] .dark::after {
43
+ right: var(--dropdownheading_underline_left);
44
+ }
41
45
 
42
46
  .dark {
43
47
  composes: default;
@@ -6,24 +6,32 @@
6
6
 
7
7
  /* dropdownitem user default variables */
8
8
  --dropdownitem-user-width: var(--zd_size42);
9
- --dropdownitem-user-border-width: 0 0 0 1px/*rtl: 0 1px 0 0*/;
10
9
  --dropdownitem-user-border-style: solid;
11
10
  --dropdownitem-user-border-color: var(--zdt_dropdown_user_default_border);
12
11
  --dropdownitem-user-cursor: pointer;
12
+ }[dir=ltr] .varClass {
13
+ --dropdownitem-user-border-width: 0 0 0 1px/*rtl: 0 1px 0 0*/;
14
+ }[dir=rtl] .varClass {
15
+ --dropdownitem-user-border-width: 0 1px 0 0;
13
16
  }
14
17
  .list {
15
18
  composes: varClass;
16
19
  composes: dflex alignVertical from '../common/common.module.css';
17
20
  position: relative;
18
- padding: var(--dropdownitem-padding);
19
21
  color: var(--zdt_dropdown_default_text);
20
22
  font-size: var(--zd_font_size13);
21
- border-width: 0 0 0 1px/*rtl: 0 1px 0 0*/;
23
+ padding: var(--dropdownitem-padding);
22
24
  border-style: solid;
23
25
  border-color: var(--dropdownitem-border-color);
24
26
  cursor: pointer;
25
27
  background-color: var(--dropdownitem-bg-color);
26
28
  }
29
+ [dir=ltr] .list {
30
+ border-width: 0 0 0 1px/*rtl: 0 1px 0 0*/;
31
+ }
32
+ [dir=rtl] .list {
33
+ border-width: 0 1px 0 0;
34
+ }
27
35
 
28
36
  .listActive {
29
37
  --dropdownitem-border-color: var(--zdt_dropdown_listactive_border);
@@ -33,16 +41,27 @@
33
41
  --dropdownitem-bg-color: var(--zdt_dropdown_listhover_bg);
34
42
  }
35
43
 
36
- .padding {
44
+ [dir=ltr] .padding {
37
45
  --dropdownitem-padding: 0 var(--zd_size50) 0 0/*rtl: 0 0 0 var(--zd_size50)*/;
38
46
  }
39
47
 
48
+ [dir=rtl] .padding {
49
+ --dropdownitem-padding: 0 0 0 var(--zd_size50);
50
+ }
51
+
40
52
  .children {
41
- margin-right: var(--zd_size10);
42
53
  display: inline-block;
43
54
  font-size: 0;
44
55
  }
45
56
 
57
+ [dir=ltr] .children {
58
+ margin-right: var(--zd_size10);
59
+ }
60
+
61
+ [dir=rtl] .children {
62
+ margin-left: var(--zd_size10);
63
+ }
64
+
46
65
  .value {
47
66
  composes: dotted flexgrow from '../common/common.module.css';
48
67
  }
@@ -51,7 +70,6 @@
51
70
  composes: dflex alignVertical alignHorizontal from '../common/common.module.css';
52
71
  position: absolute;
53
72
  top: 0;
54
- right: 0;
55
73
  bottom: 0;
56
74
  opacity: 0;
57
75
  visibility: hidden;
@@ -62,6 +80,14 @@
62
80
  cursor: var(--dropdownitem-user-cursor);
63
81
  }
64
82
 
83
+ [dir=ltr] .user {
84
+ right: 0;
85
+ }
86
+
87
+ [dir=rtl] .user {
88
+ left: 0;
89
+ }
90
+
65
91
  .list:hover .user {
66
92
  opacity: 1;
67
93
  visibility: visible;
@@ -4,8 +4,6 @@
4
4
  --listitem_padding: var(--zd_size9) var(--zd_size20);
5
5
  --listitem_border_width: 0;
6
6
  --listitem_border_color: var(--zdt_listitem_default_border);
7
- --listitem_avatar_margin: 0 var(--zd_size15) 0 0
8
- /*rtl: 0 0 0 var(--zd_size15)*/;
9
7
  --listitem_bg_color: var(--zdt_listitem_default_bg);
10
8
  --listitem_active_bg_color: var(--zdt_listitem_primary_bg);
11
9
  --listitem_height: auto;
@@ -16,6 +14,11 @@
16
14
 
17
15
  /* listitem tick icon default variables */
18
16
  --listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
17
+ }[dir=ltr] .varClass {
18
+ --listitem_avatar_margin: 0 var(--zd_size15) 0 0
19
+ /*rtl: 0 0 0 var(--zd_size15)*/;
20
+ }[dir=rtl] .varClass {
21
+ --listitem_avatar_margin: 0 0 0 var(--zd_size15);
19
22
  }
20
23
  .list {
21
24
  composes: varClass;
@@ -23,40 +26,49 @@
23
26
  list-style: none;
24
27
  color: var(--listitem_text_color);
25
28
  font-size: var(--zd_font_size13);
29
+ height: var(--listitem_height);
30
+ min-height: var(--listitem_min_height);
31
+ text-decoration: none;
26
32
  padding: var(--listitem_padding);
27
33
  border-width: var(--listitem_border_width);
28
34
  border-style: solid;
29
35
  border-color: var(--listitem_border_color);
30
- height: var(--listitem_height);
31
- min-height: var(--listitem_min_height);
32
36
  cursor: pointer;
33
- text-decoration: none;
34
37
  }
35
- .list,
36
- .default,
37
- .secondary {
38
+ .list, .default, .secondary {
38
39
  background-color: var(--listitem_bg_color);
39
40
  }
40
- .withBorder {
41
+ [dir=ltr] .withBorder {
41
42
  --listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
42
43
  }
44
+ [dir=rtl] .withBorder {
45
+ --listitem_border_width: 0 1px 0 0;
46
+ }
43
47
  .active {
44
48
  --listitem_border_color: var(--zdt_listitem_active_border);
45
49
  }
46
- .small {
50
+ [dir=ltr] .small {
47
51
  --listitem_padding: var(--zd_size9) var(--zd_size3) var(--zd_size9)
48
52
  var(--zd_size5)
49
53
  /*rtl: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size3)*/;
50
54
  }
55
+ [dir=rtl] .small {
56
+ --listitem_padding: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size3);
57
+ }
51
58
  .medium {
52
59
  --listitem_padding: var(--zd_size9) var(--zd_size20);
53
60
  --listitem_min_height: var(--zd_size35);
54
61
  }
55
62
  .large {
63
+ --listitem_height: var(--zd_size48);
64
+ }
65
+ [dir=ltr] .large {
56
66
  --listitem_padding: var(--zd_size10) var(--zd_size3) var(--zd_size10)
57
67
  var(--zd_size25)
58
68
  /*rtl: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3)*/;
59
- --listitem_height: var(--zd_size48);
69
+ }
70
+ [dir=rtl] .large {
71
+ --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3);
60
72
  }
61
73
  .value,
62
74
  .children {
@@ -64,9 +76,14 @@
64
76
  }
65
77
  .iconBox {
66
78
  width: var(--zd_size20);
67
- margin-right: var(--zd_size10);
68
79
  text-align: center;
69
80
  }
81
+ [dir=ltr] .iconBox {
82
+ margin-right: var(--zd_size10);
83
+ }
84
+ [dir=rtl] .iconBox {
85
+ margin-left: var(--zd_size10);
86
+ }
70
87
  .iconBox,
71
88
  .leftAvatar {
72
89
  font-size: 0;
@@ -75,16 +92,18 @@
75
92
  margin: var(--listitem_avatar_margin);
76
93
  }
77
94
 
78
- .defaultHover,
79
- .primaryHover,
80
- .secondaryHover,
81
- .darkHover {
95
+ .defaultHover, .primaryHover, .secondaryHover, .darkHover {
82
96
  background-color: var(--listitem_highlight_bg_color);
83
97
  }
84
98
  .activewithBorder {
85
- --listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
86
99
  --listitem_border_color: var(--zdt_listitem_active_border);
87
100
  }
101
+ [dir=ltr] .activewithBorder {
102
+ --listitem_border_width: 0 0 0 1px /*rtl: 0 1px 0 0*/;
103
+ }
104
+ [dir=rtl] .activewithBorder {
105
+ --listitem_border_width: 0 1px 0 0;
106
+ }
88
107
 
89
108
  .defaultHover,
90
109
  .defaultEffect:hover,
@@ -110,10 +129,7 @@
110
129
  --listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
111
130
  --listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
112
131
  }
113
- .activedefault,
114
- .activeprimary,
115
- .activesecondary,
116
- .activedark {
132
+ .activedefault, .activeprimary, .activesecondary, .activedark {
117
133
  background-color: var(--listitem_active_bg_color);
118
134
  }
119
135
  .activedefault,
@@ -139,8 +155,15 @@
139
155
  .darkTick {
140
156
  position: absolute;
141
157
  color: var(--listitem_tickicon_color);
158
+ }
159
+
160
+ [dir=ltr] .tickIcon, [dir=ltr] .defaultTick, [dir=ltr] .darkTick {
142
161
  right: var(--zd_size20);
143
162
  }
163
+
164
+ [dir=rtl] .tickIcon, [dir=rtl] .defaultTick, [dir=rtl] .darkTick {
165
+ left: var(--zd_size20);
166
+ }
144
167
  .defaultTick {
145
168
  --listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
146
169
  }
@@ -150,24 +173,33 @@
150
173
  .defaultTick > i {
151
174
  display: block;
152
175
  }
153
- .smallwithTick {
176
+ [dir=ltr] .smallwithTick {
154
177
  --listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
155
178
  var(--zd_size5)
156
179
  /*rtl: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size39)*/;
157
180
  }
158
- .mediumwithTick {
181
+ [dir=rtl] .smallwithTick {
182
+ --listitem_padding: var(--zd_size9) var(--zd_size5) var(--zd_size9) var(--zd_size39);
183
+ }
184
+ [dir=ltr] .mediumwithTick {
159
185
  --listitem_padding: var(--zd_size9) var(--zd_size39) var(--zd_size9)
160
186
  var(--zd_size20)
161
187
  /*rtl: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39)*/;
162
188
  }
163
- .largewithTick {
189
+ [dir=rtl] .mediumwithTick {
190
+ --listitem_padding: var(--zd_size9) var(--zd_size20) var(--zd_size9) var(--zd_size39);
191
+ }
192
+ [dir=ltr] .largewithTick {
164
193
  --listitem_padding: var(--zd_size10) var(--zd_size39) var(--zd_size10)
165
194
  var(--zd_size25)
166
195
  /*rtl: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39)*/;
167
196
  }
197
+ [dir=rtl] .largewithTick {
198
+ --listitem_padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size39);
199
+ }
168
200
  .responsiveHeight {
169
201
  --listitem_height: var(--zd_size45);
202
+ font-size: var(--zd_font_size15);
170
203
  padding-top: var(--zd_size10);
171
204
  padding-bottom: var(--zd_size10);
172
- font-size: var(--zd_font_size15);
173
205
  }
@@ -24,6 +24,7 @@ import style from './MultiSelect.module.css';
24
24
 
25
25
  import { debounce, scrollTo, getIsEmptyValue, getSearchString } from '../utils/Common.js';
26
26
  import { makeGetMultiSelectSelectedOptions, makeGetGroupSelectOptions, optionIdGrouping, makeGetGroupSelectFilterSuggestions, makeGetOptionIdChange, extractOptionId, makeFormatOptions, makeObjectConcat } from '../utils/dropDownUtils';
27
+ import { getLibraryConfig } from '../Provider/Config';
27
28
  /* eslint-disable react/forbid-component-props */
28
29
 
29
30
  /* eslint-disable react/no-unused-prop-types */
@@ -854,9 +855,9 @@ class AdvancedGroupMultiSelect extends React.Component {
854
855
  htmlId,
855
856
  i18nKeys,
856
857
  a11y,
857
- isSearchClearOnSelect,
858
858
  palette,
859
- needEffect
859
+ needEffect,
860
+ autoComplete
860
861
  } = this.props;
861
862
  let {
862
863
  clearText = 'Clear all'
@@ -941,7 +942,7 @@ class AdvancedGroupMultiSelect extends React.Component {
941
942
  ariaOwns: setAriaId,
942
943
  ariaDescribedby: ariaErrorId
943
944
  },
944
- autoComplete: false
945
+ autoComplete: autoComplete
945
946
  })), !isReadOnly && !isDisabled && selectedGroupOptions.length > 1 ? /*#__PURE__*/React.createElement(Box, {
946
947
  className: style.delete,
947
948
  dataId: `${dataId}_clearIcon`,
@@ -1032,6 +1033,7 @@ class AdvancedGroupMultiSelect extends React.Component {
1032
1033
 
1033
1034
  AdvancedGroupMultiSelect.defaultProps = {
1034
1035
  animationStyle: 'bounce',
1036
+ autoComplete: getLibraryConfig('autoComplete'),
1035
1037
  dataId: 'multiSelect',
1036
1038
  defaultDropBoxPosition: 'bottom',
1037
1039
  dropBoxSize: 'small',
@@ -1066,6 +1068,7 @@ AdvancedGroupMultiSelect.defaultProps = {
1066
1068
  };
1067
1069
  AdvancedGroupMultiSelect.propTypes = {
1068
1070
  animationStyle: PropTypes.string,
1071
+ autoComplete: PropTypes.bool,
1069
1072
  borderColor: PropTypes.oneOf(['transparent', 'default']),
1070
1073
  customClass: PropTypes.string,
1071
1074
  dataId: PropTypes.string,
@@ -1,8 +1,7 @@
1
1
  .wrapper {
2
2
  position: relative;
3
3
  }
4
- .disabled,
5
- .readOnly {
4
+ .disabled, .readOnly {
6
5
  cursor: not-allowed;
7
6
  }
8
7
  .container {
@@ -10,9 +9,9 @@
10
9
  composes: oflowy from '../common/common.module.css';
11
10
  }
12
11
  .hasBorder {
12
+ transition: border var(--zd_transition2) linear 0s;
13
13
  border-bottom-style: solid;
14
14
  border-bottom-width: 1px;
15
- transition: border var(--zd_transition2) linear 0s;
16
15
  }
17
16
  .borderColor_transparent {
18
17
  border-bottom-color: var(--zdt_advancedmultiselect_transparent_border);
@@ -41,25 +40,40 @@
41
40
  .effect .borderColor_dark.active {
42
41
  border-bottom-color: var(--zdt_advancedmultiselect_dark_active_border);
43
42
  }
44
- .container.medium {
43
+ [dir=ltr] .container.medium {
45
44
  padding: 0 var(--zd_size34) var(--zd_size7) 0;
46
45
  }
46
+ [dir=rtl] .container.medium {
47
+ padding: 0 0 var(--zd_size7) var(--zd_size34);
48
+ }
47
49
  .container.xmedium {
48
- padding: 0 var(--zd_size34) var(--zd_size1) 0;
49
50
  min-height: var(--zd_size30);
50
51
  }
52
+ [dir=ltr] .container.xmedium {
53
+ padding: 0 var(--zd_size34) var(--zd_size1) 0;
54
+ }
55
+ [dir=rtl] .container.xmedium {
56
+ padding: 0 0 var(--zd_size1) var(--zd_size34);
57
+ }
51
58
 
52
59
  .delete {
53
60
  position: absolute;
54
61
  bottom: 0;
55
- right: var(--zd_size15);
56
- padding-bottom: var(--zd_size10);
57
62
  color: var(--zdt_advancedmultiselect_delete_text);
63
+ padding-bottom: var(--zd_size10);
58
64
  cursor: pointer;
59
65
  background-color: var(--zdt_advancedmultiselect_delete_bg);
60
66
  border: 0;
61
67
  }
62
68
 
69
+ [dir=ltr] .delete {
70
+ right: var(--zd_size15);
71
+ }
72
+
73
+ [dir=rtl] .delete {
74
+ left: var(--zd_size15);
75
+ }
76
+
63
77
  .delete:hover {
64
78
  color: var(--zdt_advancedmultiselect_delete_hover_text);
65
79
  }
@@ -105,9 +119,9 @@
105
119
  .more {
106
120
  font-size: var(--zd_font_size14);
107
121
  color: var(--zdt_advancedmultiselect_more_text);
122
+ font-family: inherit;
108
123
  cursor: pointer;
109
124
  margin-top: var(--zd_size5);
110
- font-family: inherit;
111
125
  background-color: var(--zdt_advancedmultiselect_delete_bg);
112
126
  border: 0;
113
127
  }
@@ -24,6 +24,7 @@ import style from './MultiSelect.module.css';
24
24
 
25
25
  import { debounce, scrollTo, bind, getIsEmptyValue, getSearchString } from '../utils/Common.js';
26
26
  import { makeFormatOptions, makeGetMultiSelectFilterSuggestions as makeGetFilterSuggestions, makeGetMultiSelectSelectedOptions as makeGetSelectedOptions, makeObjectConcat, filterSelectedOptions, makeGetIsShowClearIcon } from '../utils/dropDownUtils';
27
+ import { getLibraryConfig } from '../Provider/Config';
27
28
  /* eslint-disable react/forbid-component-props */
28
29
 
29
30
  /* eslint-disable react/no-unused-prop-types */
@@ -869,7 +870,8 @@ export class MultiSelectComponent extends React.Component {
869
870
  getFooter,
870
871
  needEffect,
871
872
  disabledOptions,
872
- boxSize
873
+ boxSize,
874
+ autoComplete
873
875
  } = this.props;
874
876
  const {
875
877
  clearText = 'Clear all',
@@ -960,7 +962,7 @@ export class MultiSelectComponent extends React.Component {
960
962
  ariaRequired: true,
961
963
  ariaDescribedby: ariaErrorId
962
964
  },
963
- autoComplete: false
965
+ autoComplete: autoComplete
964
966
  }, /*#__PURE__*/React.createElement(Container, {
965
967
  alignBox: "row",
966
968
  align: "vertical"
@@ -1035,6 +1037,7 @@ export class MultiSelectComponent extends React.Component {
1035
1037
  }
1036
1038
  MultiSelectComponent.propTypes = {
1037
1039
  animationStyle: PropTypes.string,
1040
+ autoComplete: PropTypes.bool,
1038
1041
  borderColor: PropTypes.oneOf(['transparent', 'default', 'dark']),
1039
1042
  closePopupOnly: PropTypes.func,
1040
1043
  dataId: PropTypes.string,
@@ -1114,6 +1117,7 @@ MultiSelectComponent.propTypes = {
1114
1117
  };
1115
1118
  MultiSelectComponent.defaultProps = {
1116
1119
  animationStyle: 'bounce',
1120
+ autoComplete: getLibraryConfig('autoComplete'),
1117
1121
  dataId: 'multiSelect',
1118
1122
  dropBoxSize: 'small',
1119
1123
  isAnimate: true,