@zohodesk/components 1.0.0-alpha-215 → 1.0.0-alpha-219
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.
- package/README.md +22 -2
- package/es/Appearance/dark/mode/darkMode.module.css +3 -5
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +5 -0
- package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +5 -0
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +5 -0
- package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +5 -0
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +5 -0
- package/es/Appearance/default/mode/defaultMode.module.css +11 -11
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -0
- package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +5 -0
- package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +5 -0
- package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +5 -0
- package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +5 -0
- package/es/ListItem/ListItemWithAvatar.js +11 -3
- package/es/ListItem/ListItemWithIcon.js +12 -4
- package/es/MultiSelect/AdvancedMultiSelect.js +19 -7
- package/es/MultiSelect/Suggestions.js +11 -2
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +18 -3
- package/es/Select/Select.js +37 -10
- package/es/Select/docs/Select__default.docs.js +79 -0
- package/es/Tag/Tag.module.css +1 -0
- package/es/TextBox/TextBox.js +7 -4
- package/es/TextBoxIcon/TextBoxIcon.js +13 -4
- package/es/common/animation.module.css +12 -0
- package/es/utils/ContextOptimizer.js +1 -1
- package/es/utils/dropDownUtils.js +9 -2
- package/es/utils/shallowEqual.js +32 -0
- package/lib/Appearance/dark/mode/darkMode.module.css +3 -5
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +5 -0
- package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +5 -0
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +5 -0
- package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +5 -0
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +5 -0
- package/lib/Appearance/default/mode/defaultMode.module.css +11 -11
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -0
- package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +5 -0
- package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +5 -0
- package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +5 -0
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +5 -0
- package/lib/ListItem/ListItemWithAvatar.js +9 -3
- package/lib/ListItem/ListItemWithIcon.js +11 -4
- package/lib/MultiSelect/AdvancedMultiSelect.js +19 -7
- package/lib/MultiSelect/Suggestions.js +16 -2
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +18 -3
- package/lib/Select/Select.js +38 -10
- package/lib/Select/docs/Select__default.docs.js +79 -0
- package/lib/Tag/Tag.module.css +1 -0
- package/lib/TextBox/TextBox.js +6 -4
- package/lib/TextBoxIcon/TextBoxIcon.js +12 -4
- package/lib/common/animation.module.css +12 -0
- package/lib/utils/ContextOptimizer.js +2 -2
- package/lib/utils/dropDownUtils.js +11 -2
- package/lib/utils/shallowEqual.js +41 -0
- package/package.json +1 -1
- package/es/deprecated/Theme/darkTheme.module.css +0 -393
- package/es/deprecated/Theme/defaultTheme.module.css +0 -393
- package/es/deprecated/Theme/palette/darkCTAPalette.module.css +0 -116
- package/es/deprecated/Theme/palette/darkPalette.module.css +0 -155
- package/es/deprecated/Theme/palette/defaultCTAPalette.module.css +0 -116
- package/es/deprecated/Theme/palette/defaultPalette.module.css +0 -155
- package/es/deprecated/customscroll_Old.module.css +0 -46
- package/lib/deprecated/Theme/darkTheme.module.css +0 -393
- package/lib/deprecated/Theme/defaultTheme.module.css +0 -393
- package/lib/deprecated/Theme/palette/darkCTAPalette.module.css +0 -116
- package/lib/deprecated/Theme/palette/darkPalette.module.css +0 -155
- package/lib/deprecated/Theme/palette/defaultCTAPalette.module.css +0 -116
- package/lib/deprecated/Theme/palette/defaultPalette.module.css +0 -155
- package/lib/deprecated/customscroll_Old.module.css +0 -46
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-219
|
|
36
|
+
|
|
37
|
+
- ContextOptimizer => ShallowEqal function issue solved
|
|
38
|
+
# 1.0.0-alpha-218
|
|
39
|
+
|
|
40
|
+
- Select => Custom props undefined issue solved
|
|
41
|
+
|
|
42
|
+
# 1.0.0-alpha-217
|
|
43
|
+
|
|
44
|
+
- TextBox, Multiselect, Tag missing dark palette variables moved under Themes folder file
|
|
45
|
+
|
|
46
|
+
# 1.0.0-alpha-216
|
|
47
|
+
|
|
48
|
+
- Select component -> customProps added -> TextBoxProps ,DropdownSearchTextBoxProps, listItemProps added
|
|
49
|
+
- Suggestions component -> customProps added -> listItemProps
|
|
50
|
+
- TextBox component -> customProps added
|
|
51
|
+
- TextBoxIcon component -> customProps added -> TextBoxProps
|
|
52
|
+
|
|
35
53
|
# 1.0.0-alpha-215
|
|
36
54
|
|
|
37
|
-
- Select Search Regex
|
|
55
|
+
- Select Search Regex Changed to Lowercase
|
|
56
|
+
|
|
38
57
|
# 1.0.0-alpha-214
|
|
39
58
|
|
|
40
59
|
- Avatar, Label, Tag, Dropdown, ListItem, Multiselect missing dark palette variables moved under Themes folder files
|
|
@@ -42,9 +61,10 @@ In this Package we Provide Some Basic Components to Build Web App
|
|
|
42
61
|
# 1.0.0-alpha-213
|
|
43
62
|
|
|
44
63
|
- AnimationVariable File import removed
|
|
64
|
+
|
|
45
65
|
# 1.0.0-alpha-212
|
|
46
66
|
|
|
47
|
-
- Stencils =>
|
|
67
|
+
- Stencils => Converted to Pure Component
|
|
48
68
|
|
|
49
69
|
# 1.0.0-alpha-211
|
|
50
70
|
|
|
@@ -153,7 +153,6 @@
|
|
|
153
153
|
--zdt_textbox_effect_hover_border: var(--dot_inputLineHover);
|
|
154
154
|
--zdt_textbox_effect_focus_border: var(--dot_inputLineFocus);
|
|
155
155
|
--zdt_textbox_secondary_text: #a8b0bd;
|
|
156
|
-
--zdt_textbox_light_text: var(--dot_text_white);
|
|
157
156
|
|
|
158
157
|
/* dropdown */
|
|
159
158
|
--zdt_dropdown_default_text: #e2e4e6;
|
|
@@ -295,7 +294,6 @@
|
|
|
295
294
|
--zdt_multiselect_box_bg: #232b38;
|
|
296
295
|
--zdt_multiselect_selectall_text: var(--zdt_cta_primary_text);
|
|
297
296
|
--zdt_multiselect_message_text: #828994;
|
|
298
|
-
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
299
297
|
|
|
300
298
|
/* advanced multiselect */
|
|
301
299
|
--zdt_advancedmultiselect_default_border: var(--dot_inputLine);
|
|
@@ -382,14 +380,14 @@
|
|
|
382
380
|
--zdt_tabs_alpha_box_shadow: var(--zd_shadow_dark10);
|
|
383
381
|
--zdt_tabs_delta_border: var(--zdt_cta_primary_border);
|
|
384
382
|
--zdt_tabs_highlight_border: #e2e4e6;
|
|
385
|
-
|
|
383
|
+
|
|
386
384
|
/* custom scroll */
|
|
387
385
|
--zdt_customscroll_default_bg: rgba(225, 225, 225, 0.06);
|
|
388
386
|
--zdt_customscroll_thump_bg: rgba(225, 225, 225, 0.12);
|
|
389
|
-
--zdt_customscroll_thump_dark_bg: rgba(225, 225, 225, 0.12);
|
|
390
387
|
--zdt_customscroll_thump_hover_bg: rgba(168, 176, 189, 0.3);
|
|
391
|
-
--zdt_customscroll_thump_dark_hover_bg: rgba(225, 225, 225, 0.14);
|
|
392
388
|
--zdt_customscroll_border: rgba(225, 225, 225, 0.12);
|
|
389
|
+
--zdt_customscroll_thump_dark_bg: rgba(225, 225, 225, 0.12);
|
|
390
|
+
--zdt_customscroll_thump_dark_hover_bg: rgba(225, 225, 225, 0.14);
|
|
393
391
|
--zdt_customscroll_dark_border: rgba(225, 225, 225, 0.12);
|
|
394
392
|
--zdt_customscroll_dark_bg: rgba(225, 225, 225, 0.06);
|
|
395
393
|
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: #42485f;
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: #4b5168;
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: #232b38;
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: #e2e4e6;
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: #a8b0bd;
|
|
43
48
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--zdt_cta_alpha_hover_text: #0e7c1c;
|
|
19
19
|
--zdt_cta_alpha_border: #45a159;
|
|
20
20
|
--zdt_cta_alpha_hover_border: #0e7c1c;
|
|
21
|
-
--zdt_cta_alpha_bg: #
|
|
21
|
+
--zdt_cta_alpha_bg: #2a433f;
|
|
22
22
|
--zdt_cta_beta_border: #45a159;
|
|
23
23
|
--zdt_cta_grey_10_bg: #262f3d;
|
|
24
24
|
--zdt_cta_grey_10_border: #262f3d;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: #42485f;
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: #4b5168;
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: #232b38;
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: #e2e4e6;
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: #a8b0bd;
|
|
43
48
|
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: #42485f;
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: #4b5168;
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: #232b38;
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: #e2e4e6;
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: #a8b0bd;
|
|
43
48
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--zdt_cta_alpha_hover_text: #a81111;
|
|
19
19
|
--zdt_cta_alpha_border: #e94f4f;
|
|
20
20
|
--zdt_cta_alpha_hover_border: #a81111;
|
|
21
|
-
--zdt_cta_alpha_bg: #
|
|
21
|
+
--zdt_cta_alpha_bg: #372f3a;
|
|
22
22
|
--zdt_cta_beta_border: #e94f4f;
|
|
23
23
|
--zdt_cta_grey_10_bg: #262f3d;
|
|
24
24
|
--zdt_cta_grey_10_border: #262f3d;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: #42485f;
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: #4b5168;
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: #232b38;
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: #e2e4e6;
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: #a8b0bd;
|
|
43
48
|
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: #42485f;
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: #4b5168;
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: #232b38;
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: #e2e4e6;
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: #a8b0bd;
|
|
43
48
|
}
|
|
@@ -141,6 +141,8 @@
|
|
|
141
141
|
--zdt_tag_pure_border: var(--zd_border_smoke91);
|
|
142
142
|
--zdt_tag_pure_hover_bg: var(--zd_bg_smoke6);
|
|
143
143
|
--zdt_tag_pure_hover_border: var(--zd_border_dark6);
|
|
144
|
+
--zdt_tag_dark_close_bg: #864654;
|
|
145
|
+
--zdt_tag_dark_close_text: #de3535;
|
|
144
146
|
--zdt_tag_dark_close_hover_bg: #de3535;
|
|
145
147
|
|
|
146
148
|
/* textbox */
|
|
@@ -153,7 +155,6 @@
|
|
|
153
155
|
--zdt_textbox_effect_hover_border: var(--dot_inputLineHover);
|
|
154
156
|
--zdt_textbox_effect_focus_border: var(--dot_inputLineFocus);
|
|
155
157
|
--zdt_textbox_secondary_text: var(--dot_text_shuttleGrey);
|
|
156
|
-
--zdt_textbox_light_text: var(--dot_text_white);
|
|
157
158
|
|
|
158
159
|
/* dropdown */
|
|
159
160
|
--zdt_dropdown_default_text: var(--dot_text_black);
|
|
@@ -295,7 +296,6 @@
|
|
|
295
296
|
--zdt_multiselect_box_bg: var(--dot_bg_white);
|
|
296
297
|
--zdt_multiselect_selectall_text: var(--zdt_cta_primary_text);
|
|
297
298
|
--zdt_multiselect_message_text: var(--dot_text_slateGrey);
|
|
298
|
-
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
299
299
|
|
|
300
300
|
/* advanced multiselect */
|
|
301
301
|
--zdt_advancedmultiselect_default_border: var(--dot_inputLine);
|
|
@@ -383,13 +383,13 @@
|
|
|
383
383
|
--zdt_tabs_delta_border: var(--zdt_cta_primary_border);
|
|
384
384
|
--zdt_tabs_highlight_border: var(--dot_border_black);
|
|
385
385
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
386
|
+
/* custom scroll */
|
|
387
|
+
--zdt_customscroll_default_bg: rgba(0, 0, 0, 0.02);
|
|
388
|
+
--zdt_customscroll_thump_bg: rgba(0, 0, 0, 0.12);
|
|
389
|
+
--zdt_customscroll_thump_hover_bg: rgba(0, 0, 0, 0.16);
|
|
390
|
+
--zdt_customscroll_border: rgba(44, 51, 77, 0.1);
|
|
391
|
+
--zdt_customscroll_thump_dark_bg: rgba(225, 225, 225, 0.15);
|
|
392
|
+
--zdt_customscroll_thump_dark_hover_bg: rgba(225, 225, 225, 0.17);
|
|
393
|
+
--zdt_customscroll_dark_border: rgba(225, 225, 225, 0.12);
|
|
394
|
+
--zdt_customscroll_dark_bg: rgba(225, 225, 225, 0.06);
|
|
395
395
|
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: #42485f;
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: #4b5168;
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: #383f57;
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
43
48
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--zdt_cta_alpha_hover_text: #0e7526;
|
|
19
19
|
--zdt_cta_alpha_border: #26a942;
|
|
20
20
|
--zdt_cta_alpha_hover_border: #0e7526;
|
|
21
|
-
--zdt_cta_alpha_bg: #
|
|
21
|
+
--zdt_cta_alpha_bg: #d4eed9;
|
|
22
22
|
--zdt_cta_beta_border: #26a942;
|
|
23
23
|
--zdt_cta_grey_10_bg: #f6faf9;
|
|
24
24
|
--zdt_cta_grey_10_border: #f6faf9;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
43
48
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--zdt_cta_alpha_hover_text: #b25900;
|
|
19
19
|
--zdt_cta_alpha_border: #e57717;
|
|
20
20
|
--zdt_cta_alpha_hover_border: #b25900;
|
|
21
|
-
--zdt_cta_alpha_bg: #
|
|
21
|
+
--zdt_cta_alpha_bg: #fae4d1;
|
|
22
22
|
--zdt_cta_beta_border: #e57717;
|
|
23
23
|
--zdt_cta_grey_10_bg: #f9f7f6;
|
|
24
24
|
--zdt_cta_grey_10_border: #f9f7f6;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
43
48
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--zdt_cta_alpha_hover_text: #ab1a18;
|
|
19
19
|
--zdt_cta_alpha_border: #de3535;
|
|
20
20
|
--zdt_cta_alpha_hover_border: #ab1a18;
|
|
21
|
-
--zdt_cta_alpha_bg: #
|
|
21
|
+
--zdt_cta_alpha_bg: #f8d7d7;
|
|
22
22
|
--zdt_cta_beta_border: #de3535;
|
|
23
23
|
--zdt_cta_grey_10_bg: #f9f6f7;
|
|
24
24
|
--zdt_cta_grey_10_border: #f9f6f7;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
43
48
|
}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/* tag */
|
|
23
23
|
--zdt_tag_dark_text: #d0d0d4;
|
|
24
24
|
--zdt_tag_dark_bg: rgba(255, 255, 255, 0.07);
|
|
25
|
+
--zdt_tag_dark_hover_text: #d0d0d4;
|
|
25
26
|
--zdt_tag_dark_hover_bg: #503348;
|
|
26
27
|
--zdt_tag_dark_close_bg: #864654;
|
|
27
28
|
--zdt_tag_dark_close_text: #de3535;
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
/* multiselect */
|
|
30
31
|
--zdt_multiselect_dark_border: rgba(255, 255, 255, 0.2);
|
|
31
32
|
--zdt_multiselect_darkmsg_bg: rgba(255, 255, 255, 0.02);
|
|
33
|
+
--zdt_multiselect_darkmsg_text: #d0d0d4;
|
|
32
34
|
--zdt_multiselect_darkdelete_hover_text: var(--dot_text_white);
|
|
33
35
|
|
|
34
36
|
/* avatar */
|
|
@@ -38,6 +40,9 @@
|
|
|
38
40
|
/* label */
|
|
39
41
|
--zdt_label_dark_text: #d0d0d4;
|
|
40
42
|
|
|
43
|
+
/* textbox */
|
|
44
|
+
--zdt_textbox_light_text: var(--dot_text_white);
|
|
45
|
+
|
|
41
46
|
/* dropdown */
|
|
42
47
|
--zdt_dropdown_darkheading_text: var(--dot_text_white);
|
|
43
48
|
}
|
|
@@ -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';
|
|
@@ -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);
|
|
@@ -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 = {
|
|
@@ -9,10 +9,20 @@ export default class AdvancedMultiSelect__default extends Component {
|
|
|
9
9
|
this.state = {
|
|
10
10
|
options: [{
|
|
11
11
|
id: 2,
|
|
12
|
-
text: 'text2'
|
|
12
|
+
text: 'text2',
|
|
13
|
+
listItemProps: {
|
|
14
|
+
style: {
|
|
15
|
+
color: 'red'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
13
18
|
}, {
|
|
14
19
|
id: 3,
|
|
15
|
-
text: 'text3'
|
|
20
|
+
text: 'text3',
|
|
21
|
+
listItemProps: {
|
|
22
|
+
style: {
|
|
23
|
+
color: 'blue'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
16
26
|
}, {
|
|
17
27
|
id: 4,
|
|
18
28
|
text: 'text4'
|
|
@@ -85,7 +95,12 @@ export default class AdvancedMultiSelect__default extends Component {
|
|
|
85
95
|
noMoreText: 'No More Options .',
|
|
86
96
|
searchEmptyText: 'No Matches Found .'
|
|
87
97
|
},
|
|
88
|
-
getFooter: this.getFooter
|
|
98
|
+
getFooter: this.getFooter,
|
|
99
|
+
customProps: {
|
|
100
|
+
SuggestionsProps: {
|
|
101
|
+
needBorder: false
|
|
102
|
+
}
|
|
103
|
+
}
|
|
89
104
|
});
|
|
90
105
|
}
|
|
91
106
|
|