@zohodesk/components 1.0.0-alpha-212 → 1.0.0-alpha-216

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 (54) hide show
  1. package/README.md +20 -1
  2. package/es/AppContainer/AppContainer.js +0 -1
  3. package/es/Appearance/dark/mode/darkMode.module.css +0 -8
  4. package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +12 -0
  5. package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +12 -0
  6. package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +12 -0
  7. package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +12 -0
  8. package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +12 -0
  9. package/es/Appearance/default/mode/defaultMode.module.css +0 -8
  10. package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +12 -0
  11. package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +12 -0
  12. package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +12 -0
  13. package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +12 -0
  14. package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +12 -0
  15. package/es/ListItem/ListItemWithAvatar.js +11 -3
  16. package/es/ListItem/ListItemWithIcon.js +12 -4
  17. package/es/MultiSelect/AdvancedMultiSelect.js +21 -9
  18. package/es/MultiSelect/MultiSelect.js +1 -1
  19. package/es/MultiSelect/Suggestions.js +11 -2
  20. package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +18 -3
  21. package/es/Select/GroupSelect.js +4 -4
  22. package/es/Select/Select.js +37 -10
  23. package/es/Select/docs/Select__default.docs.js +79 -0
  24. package/es/TextBox/TextBox.js +7 -4
  25. package/es/TextBoxIcon/TextBoxIcon.js +13 -4
  26. package/es/utils/Common.js +1 -1
  27. package/es/utils/dropDownUtils.js +12 -5
  28. package/lib/AppContainer/AppContainer.js +0 -2
  29. package/lib/Appearance/dark/mode/darkMode.module.css +0 -8
  30. package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +12 -0
  31. package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +12 -0
  32. package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +12 -0
  33. package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +12 -0
  34. package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +12 -0
  35. package/lib/Appearance/default/mode/defaultMode.module.css +0 -8
  36. package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +12 -0
  37. package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +12 -0
  38. package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +12 -0
  39. package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +12 -0
  40. package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +12 -0
  41. package/lib/ListItem/ListItemWithAvatar.js +9 -3
  42. package/lib/ListItem/ListItemWithIcon.js +11 -4
  43. package/lib/MultiSelect/AdvancedMultiSelect.js +20 -8
  44. package/lib/MultiSelect/MultiSelect.js +1 -1
  45. package/lib/MultiSelect/Suggestions.js +16 -2
  46. package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +18 -3
  47. package/lib/Select/GroupSelect.js +3 -3
  48. package/lib/Select/Select.js +37 -10
  49. package/lib/Select/docs/Select__default.docs.js +79 -0
  50. package/lib/TextBox/TextBox.js +6 -4
  51. package/lib/TextBoxIcon/TextBoxIcon.js +12 -4
  52. package/lib/utils/Common.js +1 -1
  53. package/lib/utils/dropDownUtils.js +13 -4
  54. package/package.json +3 -3
package/README.md CHANGED
@@ -32,9 +32,28 @@ In this Package we Provide Some Basic Components to Build Web App
32
32
  - TextBoxIcon
33
33
  - Tooltip
34
34
 
35
+ # 1.0.0-alpha-216
36
+
37
+ - Select component -> customProps added -> TextBoxProps ,DropdownSearchTextBoxProps, listItemProps added
38
+ - Suggestions component -> customProps added -> listItemProps
39
+ - TextBox component -> customProps added
40
+ - TextBoxIcon component -> customProps added -> TextBoxProps
41
+
42
+ # 1.0.0-alpha-215
43
+
44
+ - Select Search Regex Changed to Lowercase
45
+
46
+ # 1.0.0-alpha-214
47
+
48
+ - Avatar, Label, Tag, Dropdown, ListItem, Multiselect missing dark palette variables moved under Themes folder files
49
+
50
+ # 1.0.0-alpha-213
51
+
52
+ - AnimationVariable File import removed
53
+
35
54
  # 1.0.0-alpha-212
36
55
 
37
- - Stencils => Converted to Pure Component
56
+ - Stencils => Converted to Pure Component
38
57
 
39
58
  # 1.0.0-alpha-211
40
59
 
@@ -12,7 +12,6 @@ import '@zohodesk/variables/lib/fontsizeVariables.module.css';
12
12
  import '@zohodesk/variables/lib/fontFamilyVariables.module.css';
13
13
  import '@zohodesk/variables/lib/transitionVariables.module.css';
14
14
  import '@zohodesk/variables/lib/no_transitionVariables.module.css';
15
- import '@zohodesk/variables/lib/animationVariables.module.css';
16
15
  import style from './AppContainer.module.css';
17
16
  export default class AppContainer extends React.Component {
18
17
  constructor(props) {
@@ -17,7 +17,6 @@
17
17
  --zdt_avatar_default_border: var(--zdt_cta_grey_40_border);
18
18
  --zdt_avatar_default_borderHover: #828994;
19
19
  --zdt_avatar_default_boxshadow: rgba(255, 255, 255, 0.14);
20
- --zdt_avatar_white_text: var(--dot_text_white);
21
20
  --zdt_avatar_white_borderHover: var(--zdt_cta_grey_40_border);
22
21
  --zdt_avatar_white_boxshadow: rgba(0, 0, 0, 0.11);
23
22
  --zdt_avatar_secondary_bg: #e2e4e6;
@@ -118,7 +117,6 @@
118
117
  --zdt_label_danger_text: var(--dot_text_brightOrange);
119
118
  --zdt_label_mandatory_text: #ff6b6b;
120
119
  --zdt_label_disable_text: var(--dot_inputDisable);
121
- --zdt_label_dark_text: #d0d0d4;
122
120
 
123
121
  /* tag */
124
122
  --zdt_tag_default_text: #e2e4e6;
@@ -143,9 +141,6 @@
143
141
  --zdt_tag_pure_border: var(--zd_border_smoke91);
144
142
  --zdt_tag_pure_hover_bg: var(--zd_bg_smoke6);
145
143
  --zdt_tag_pure_hover_border: var(--zd_border_dark6);
146
- --zdt_tag_dark_text: #d0d0d4;
147
- --zdt_tag_dark_close_bg: #864654;
148
- --zdt_tag_dark_close_text: #de3535;
149
144
  --zdt_tag_dark_close_hover_bg: #de3535;
150
145
 
151
146
  /* textbox */
@@ -164,7 +159,6 @@
164
159
  --zdt_dropdown_default_text: #e2e4e6;
165
160
  --zdt_dropdown_default_border: var(--dot_border_mirror);
166
161
  --zdt_dropdown_default_bg: #a8b0bd;
167
- --zdt_dropdown_darkheading_text: #a8b0bd;
168
162
  --zdt_dropdown_darkheading_bg: #383f57;
169
163
  --zdt_dropdown_darkheading_underline_bg: #828994;
170
164
  --zdt_dropdown_mirror_bg: var(--dot_bg_mirror);
@@ -193,7 +187,6 @@
193
187
  --zdt_listitem_primary_bg: var(--dot_listItemActive);
194
188
  --zdt_listitem_secondary_bg: var(--zdt_cta_primary_bg);
195
189
  --zdt_listitem_secondary_text: #232b38;
196
- --zdt_listitem_dark_text: #e2e4e6;
197
190
 
198
191
  /* ribbon */
199
192
  --zdt_ribbon_default_text: #e2e4e6;
@@ -299,7 +292,6 @@
299
292
  --zdt_multiselect_delete_bg: var(--dot_bg_mirror);
300
293
  --zdt_multiselect_delete_hover_text: #e2e4e6;
301
294
  --zdt_multiselect_darkdelete_text: #9c9fab;
302
- --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
303
295
  --zdt_multiselect_box_bg: #232b38;
304
296
  --zdt_multiselect_selectall_text: var(--zdt_cta_primary_text);
305
297
  --zdt_multiselect_message_text: #828994;
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #232b38;
17
+ --zdt_listitem_dark_text: #e2e4e6;
17
18
  --zdt_listitem_dark_effect_bg: #262f3d;
18
19
  --zdt_listitem_dark_active_bg: #3b4d6d;
19
20
  --zdt_listitem_dark_tickicon: #479dff;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: #42485f;
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: #4b5168;
27
31
  --zdt_multiselect_darkmsg_bg: #232b38;
32
+ --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: #a8b0bd;
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: #a8b0bd;
31
43
  }
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #232b38;
17
+ --zdt_listitem_dark_text: #e2e4e6;
17
18
  --zdt_listitem_dark_effect_bg: #262f3d;
18
19
  --zdt_listitem_dark_active_bg: #3b4d6d;
19
20
  --zdt_listitem_dark_tickicon: #45a159;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: #42485f;
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: #4b5168;
27
31
  --zdt_multiselect_darkmsg_bg: #232b38;
32
+ --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: #a8b0bd;
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: #a8b0bd;
31
43
  }
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #232b38;
17
+ --zdt_listitem_dark_text: #e2e4e6;
17
18
  --zdt_listitem_dark_effect_bg: #262f3d;
18
19
  --zdt_listitem_dark_active_bg: #3b4d6d;
19
20
  --zdt_listitem_dark_tickicon: #e94f4f;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: #42485f;
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: #4b5168;
27
31
  --zdt_multiselect_darkmsg_bg: #232b38;
32
+ --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: #a8b0bd;
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: #a8b0bd;
31
43
  }
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #232b38;
17
+ --zdt_listitem_dark_text: #e2e4e6;
17
18
  --zdt_listitem_dark_effect_bg: #262f3d;
18
19
  --zdt_listitem_dark_active_bg: #3b4d6d;
19
20
  --zdt_listitem_dark_tickicon: #ff801f;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: #42485f;
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: #4b5168;
27
31
  --zdt_multiselect_darkmsg_bg: #232b38;
32
+ --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: #a8b0bd;
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: #a8b0bd;
31
43
  }
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #232b38;
17
+ --zdt_listitem_dark_text: #e2e4e6;
17
18
  --zdt_listitem_dark_effect_bg: #262f3d;
18
19
  --zdt_listitem_dark_active_bg: #3b4d6d;
19
20
  --zdt_listitem_dark_tickicon: #d79835;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: #42485f;
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: #4b5168;
27
31
  --zdt_multiselect_darkmsg_bg: #232b38;
32
+ --zdt_multiselect_darkdelete_hover_text: #e2e4e6;
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: #a8b0bd;
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: #a8b0bd;
31
43
  }
@@ -17,7 +17,6 @@
17
17
  --zdt_avatar_default_border: var(--zdt_cta_grey_40_border);
18
18
  --zdt_avatar_default_borderHover: var(--dot_border_slateGrey);
19
19
  --zdt_avatar_default_boxshadow: rgba(0, 0, 0, 0.11);
20
- --zdt_avatar_white_text: var(--dot_text_white);
21
20
  --zdt_avatar_white_borderHover: var(--zdt_cta_grey_40_border);
22
21
  --zdt_avatar_white_boxshadow: rgba(255, 255, 255, 0.14);
23
22
  --zdt_avatar_secondary_bg: var(--dot_bg_black);
@@ -118,7 +117,6 @@
118
117
  --zdt_label_danger_text: var(--dot_text_brightOrange);
119
118
  --zdt_label_mandatory_text: var(--dot_text_brightRed);
120
119
  --zdt_label_disable_text: var(--dot_inputDisable);
121
- --zdt_label_dark_text: #d0d0d4;
122
120
 
123
121
  /* tag */
124
122
  --zdt_tag_default_text: var(--dot_text_black);
@@ -143,9 +141,6 @@
143
141
  --zdt_tag_pure_border: var(--zd_border_smoke91);
144
142
  --zdt_tag_pure_hover_bg: var(--zd_bg_smoke6);
145
143
  --zdt_tag_pure_hover_border: var(--zd_border_dark6);
146
- --zdt_tag_dark_text: #d0d0d4;
147
- --zdt_tag_dark_close_bg: #864654;
148
- --zdt_tag_dark_close_text: #de3535;
149
144
  --zdt_tag_dark_close_hover_bg: #de3535;
150
145
 
151
146
  /* textbox */
@@ -164,7 +159,6 @@
164
159
  --zdt_dropdown_default_text: var(--dot_text_black);
165
160
  --zdt_dropdown_default_border: var(--dot_border_mirror);
166
161
  --zdt_dropdown_default_bg: var(--dot_bg_shuttleGrey);
167
- --zdt_dropdown_darkheading_text: var(--dot_text_white);
168
162
  --zdt_dropdown_darkheading_bg: #383f57;
169
163
  --zdt_dropdown_darkheading_underline_bg: #565e72;
170
164
  --zdt_dropdown_mirror_bg: var(--dot_bg_mirror);
@@ -193,7 +187,6 @@
193
187
  --zdt_listitem_primary_bg: var(--dot_listItemActive);
194
188
  --zdt_listitem_secondary_bg: var(--zdt_cta_primary_bg);
195
189
  --zdt_listitem_secondary_text: var(--dot_text_white);
196
- --zdt_listitem_dark_text: #d0d0d4;
197
190
 
198
191
  /* ribbon */
199
192
  --zdt_ribbon_default_text: var(--dot_text_black);
@@ -299,7 +292,6 @@
299
292
  --zdt_multiselect_delete_bg: var(--dot_bg_mirror);
300
293
  --zdt_multiselect_delete_hover_text: var(--dot_text_black);
301
294
  --zdt_multiselect_darkdelete_text: #9c9fab;
302
- --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
303
295
  --zdt_multiselect_box_bg: var(--dot_bg_white);
304
296
  --zdt_multiselect_selectall_text: var(--zdt_cta_primary_text);
305
297
  --zdt_multiselect_message_text: var(--dot_text_slateGrey);
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #383f57;
17
+ --zdt_listitem_dark_text: #d0d0d4;
17
18
  --zdt_listitem_dark_effect_bg: #444a61;
18
19
  --zdt_listitem_dark_active_bg: #3b4d6d;
19
20
  --zdt_listitem_dark_tickicon: #6cbbfc;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: #42485f;
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: #4b5168;
27
31
  --zdt_multiselect_darkmsg_bg: #383f57;
32
+ --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: var(--dot_border_shuttleGrey);
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: var(--dot_text_white);
31
43
  }
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #1d2f33;
17
+ --zdt_listitem_dark_text: #d0d0d4;
17
18
  --zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
18
19
  --zdt_listitem_dark_active_bg: #2d484e;
19
20
  --zdt_listitem_dark_tickicon: #4ac064;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
27
31
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
32
+ --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: var(--dot_text_white);
31
43
  }
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #332e24;
17
+ --zdt_listitem_dark_text: #d0d0d4;
17
18
  --zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
18
19
  --zdt_listitem_dark_active_bg: #4b4335;
19
20
  --zdt_listitem_dark_tickicon: #ff6363;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
27
31
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
32
+ --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: var(--dot_text_white);
31
43
  }
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #34222d;
17
+ --zdt_listitem_dark_text: #d0d0d4;
17
18
  --zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
18
19
  --zdt_listitem_dark_active_bg: #4d3243;
19
20
  --zdt_listitem_dark_tickicon: #e57717;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
27
31
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
32
+ --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: var(--dot_text_white);
31
43
  }
@@ -14,18 +14,30 @@
14
14
 
15
15
  /* listitem */
16
16
  --zdt_listitem_dark_bg: #313323;
17
+ --zdt_listitem_dark_text: #d0d0d4;
17
18
  --zdt_listitem_dark_effect_bg: rgba(255, 255, 255, 0.12);
18
19
  --zdt_listitem_dark_active_bg: #494c34;
19
20
  --zdt_listitem_dark_tickicon: #e8b923;
20
21
 
21
22
  /* tag */
23
+ --zdt_tag_dark_text: #d0d0d4;
22
24
  --zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
23
25
  --zdt_tag_dark_hover_bg: #503348;
26
+ --zdt_tag_dark_close_bg: #864654;
27
+ --zdt_tag_dark_close_text: #de3535;
24
28
 
25
29
  /* multiselect */
26
30
  --zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
27
31
  --zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
32
+ --zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
28
33
 
29
34
  /* avatar */
30
35
  --zdt_avatar_white_border: rgba(255, 255, 255, 0.2);
36
+ --zdt_avatar_white_text: var(--dot_text_white);
37
+
38
+ /* label */
39
+ --zdt_label_dark_text: #d0d0d4;
40
+
41
+ /* dropdown */
42
+ --zdt_dropdown_darkheading_text: var(--dot_text_white);
31
43
  }
@@ -72,8 +72,12 @@ export default class ListItemWithAvatar extends React.PureComponent {
72
72
  needAvatarTitle,
73
73
  avatarPalette,
74
74
  a11y,
75
- customClass
75
+ customClass,
76
+ customProps
76
77
  } = this.props;
78
+ let {
79
+ ListItemProps = {}
80
+ } = customProps;
77
81
  let {
78
82
  customListItem = '',
79
83
  customAvatar = '',
@@ -109,7 +113,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
109
113
  tagName: "li",
110
114
  dataId: `${dataIdString}_ListItemWithAvatar`,
111
115
  "data-title": isDisabled ? disableTitle : null
112
- }, options), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
116
+ }, options, ListItemProps), name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
113
117
  className: style.leftAvatar
114
118
  }, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
115
119
  name: name,
@@ -160,7 +164,8 @@ ListItemWithAvatar.defaultProps = {
160
164
  needBorder: true,
161
165
  needAvatarTitle: true,
162
166
  a11y: {},
163
- customClass: {}
167
+ customClass: {},
168
+ customProps: {}
164
169
  };
165
170
  ListItemWithAvatar.propTypes = {
166
171
  active: PropTypes.bool,
@@ -196,6 +201,9 @@ ListItemWithAvatar.propTypes = {
196
201
  customListItem: PropTypes.string,
197
202
  customAvatar: PropTypes.string,
198
203
  customAvatarTeam: PropTypes.string
204
+ }),
205
+ customProps: PropTypes.shape({
206
+ ListItemProps: PropTypes.object
199
207
  })
200
208
  };
201
209
 
@@ -65,8 +65,12 @@ export default class ListItemWithIcon extends React.Component {
65
65
  isDisabled,
66
66
  disableTitle,
67
67
  a11y,
68
- customClass
68
+ customClass,
69
+ customProps
69
70
  } = this.props;
71
+ let {
72
+ ListItemProps = {}
73
+ } = customProps;
70
74
  let {
71
75
  role,
72
76
  ariaSelected,
@@ -96,7 +100,7 @@ export default class ListItemWithIcon extends React.Component {
96
100
  eleRef: this.getRef,
97
101
  tagName: "li",
98
102
  "data-title": isDisabled ? disableTitle : null
99
- }, options), iconName && /*#__PURE__*/React.createElement(Box, {
103
+ }, options, ListItemProps), iconName && /*#__PURE__*/React.createElement(Box, {
100
104
  "aria-hidden": true,
101
105
  className: style.iconBox,
102
106
  dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
@@ -135,7 +139,8 @@ ListItemWithIcon.defaultProps = {
135
139
  value: 'List',
136
140
  needBorder: true,
137
141
  a11y: {},
138
- customClass: ''
142
+ customClass: '',
143
+ customProps: {}
139
144
  };
140
145
  ListItemWithIcon.propTypes = {
141
146
  active: PropTypes.bool,
@@ -163,7 +168,10 @@ ListItemWithIcon.propTypes = {
163
168
  ariaSelected: PropTypes.bool,
164
169
  ariaHidden: PropTypes.bool
165
170
  }),
166
- customClass: PropTypes.string
171
+ customClass: PropTypes.string,
172
+ customProps: PropTypes.shape({
173
+ ListItemProps: PropTypes.object
174
+ })
167
175
  };
168
176
 
169
177
  if (false) {
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  /**** Libraries ****/
2
4
  import React from 'react';
3
5
  import PropTypes from 'prop-types';
@@ -20,7 +22,7 @@ import { getUniqueId } from '../Provider/IdProvider';
20
22
  import style from './AdvancedMultiSelect.module.css';
21
23
  /**** Methods ****/
22
24
 
23
- import { getIsEmptyValue } from '../utils/Common.js';
25
+ import { getIsEmptyValue, getSearchString } from '../utils/Common.js';
24
26
  import { filterSelectedOptions } from '../utils/dropDownUtils';
25
27
  /* eslint-disable react/sort-prop-types */
26
28
 
@@ -67,7 +69,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
67
69
  } = this.getFilterSuggestions({
68
70
  options,
69
71
  selectedOptions: dummyArray,
70
- searchStr: searchStr.replace(/\s+/g, '').toLowerCase(),
72
+ searchStr: getSearchString(searchStr),
71
73
  needSearch: needLocalSearch
72
74
  });
73
75
  this.suggestionsOrder = suggestionIds;
@@ -346,8 +348,13 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
346
348
  a11y,
347
349
  borderColor,
348
350
  isBoxPaddingNeed,
349
- getFooter
351
+ getFooter,
352
+ customProps
350
353
  } = this.props;
354
+ let {
355
+ SuggestionsProps = {},
356
+ DropBoxProps = {}
357
+ } = customProps;
351
358
  const {
352
359
  clearText = 'Clear all'
353
360
  } = i18nKeys;
@@ -433,7 +440,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
433
440
  }, /*#__PURE__*/React.createElement(Icon, {
434
441
  name: "ZD-delete",
435
442
  size: "15"
436
- })) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
443
+ })) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, _extends({
437
444
  animationStyle: animationStyle,
438
445
  boxPosition: position || `${defaultDropBoxPosition}Center`,
439
446
  getRef: getContainerRef,
@@ -448,7 +455,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
448
455
  role: 'listbox',
449
456
  ariaMultiselectable: true
450
457
  }
451
- }, /*#__PURE__*/React.createElement(Card, {
458
+ }, DropBoxProps), /*#__PURE__*/React.createElement(Card, {
452
459
  customClass: style.box,
453
460
  onScroll: this.handleScroll
454
461
  }, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(MultiSelectHeader, {
@@ -460,7 +467,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
460
467
  })), /*#__PURE__*/React.createElement(CardContent, {
461
468
  customClass: dropBoxSize ? style[dropBoxSize] : '',
462
469
  eleRef: this.suggestionContainerRef
463
- }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
470
+ }, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
464
471
  suggestions: suggestions,
465
472
  selectedOptions: allselectedOptionIds,
466
473
  getRef: this.suggestionItemRef,
@@ -472,7 +479,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
472
479
  a11y: {
473
480
  role: 'option'
474
481
  }
475
- }) : /*#__PURE__*/React.createElement(EmptyState, {
482
+ }, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
476
483
  isLoading: isFetchingOptions,
477
484
  options: options,
478
485
  searchString: searchStr,
@@ -560,7 +567,11 @@ AdvancedMultiSelectComponent.propTypes = {
560
567
  isBoxPaddingNeed: PropTypes.bool,
561
568
  isSearchClearOnSelect: PropTypes.bool,
562
569
  disabledOptions: PropTypes.arrayOf(PropTypes.string),
563
- getFooter: PropTypes.func
570
+ getFooter: PropTypes.func,
571
+ customProps: PropTypes.shape({
572
+ SuggestionsProps: PropTypes.object,
573
+ DropBoxProps: PropTypes.object
574
+ })
564
575
  };
565
576
  AdvancedMultiSelectComponent.defaultProps = {
566
577
  animationStyle: 'bounce',
@@ -587,7 +598,8 @@ AdvancedMultiSelectComponent.defaultProps = {
587
598
  a11y: {},
588
599
  borderColor: 'default',
589
600
  isBoxPaddingNeed: true,
590
- isSearchClearOnSelect: true
601
+ isSearchClearOnSelect: true,
602
+ customProps: {}
591
603
  };
592
604
  AdvancedMultiSelectComponent.displayName = 'AdvancedMultiSelect';
593
605
  const AdvancedMultiSelect = Popup(AdvancedMultiSelectComponent);
@@ -260,7 +260,7 @@ export class MultiSelectComponent extends React.Component {
260
260
  } = this.getFilterSuggestions({
261
261
  options,
262
262
  selectedOptions,
263
- searchStr: searchStr.replace(/\s+/g, '').toLowerCase(),
263
+ searchStr: getSearchString(searchStr),
264
264
  needSearch: needLocalSearch
265
265
  });
266
266
  this.suggestionsOrder = suggestionIds;
@@ -51,7 +51,8 @@ export default class Suggestions extends React.PureComponent {
51
51
  icon,
52
52
  optionType,
53
53
  iconSize,
54
- isDisabled
54
+ isDisabled,
55
+ listItemProps
55
56
  } = suggestion;
56
57
  const isActive = activeId === id || selectedOptions.indexOf(id) >= 0;
57
58
  const isHighlight = hoverOption === index || id === hoverId ? true : false;
@@ -62,6 +63,13 @@ export default class Suggestions extends React.PureComponent {
62
63
  isDisabled
63
64
  };
64
65
 
66
+ if (listItemProps) {
67
+ commonProps.customProps = {
68
+ 'ListItemProps': { ...listItemProps
69
+ }
70
+ };
71
+ }
72
+
65
73
  if (optionType === 'avatar') {
66
74
  return /*#__PURE__*/React.createElement(ListItemWithAvatar, _extends({}, commonProps, {
67
75
  autoHover: false,
@@ -151,7 +159,8 @@ Suggestions.propTypes = {
151
159
  value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
152
160
  photoURL: PropTypes.string,
153
161
  logo: PropTypes.string,
154
- optionType: PropTypes.string
162
+ optionType: PropTypes.string,
163
+ listItemProps: PropTypes.object
155
164
  }))
156
165
  };
157
166
  Suggestions.defaultProps = {