@zohodesk/components 1.0.0-temp-249.1 → 1.0.0-temp-199.23
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/assets/Appearance/dark/mode/Component_DarkMode.module.css +202 -202
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +11 -11
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +465 -465
- package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +33 -33
- package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +28 -28
- package/assets/Appearance/light/mode/Component_LightMode.module.css +198 -198
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +11 -11
- package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +465 -465
- package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +33 -33
- package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +28 -28
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +204 -204
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +11 -11
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +465 -465
- package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +33 -33
- package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +28 -28
- package/es/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +4 -2
- package/es/ListItem/ListItem.js +5 -3
- package/es/ListItem/ListItem.module.css +35 -25
- package/es/ListItem/ListItemWithAvatar.js +4 -2
- package/es/ListItem/ListItemWithCheckBox.js +4 -2
- package/es/ListItem/ListItemWithIcon.js +4 -4
- package/es/ListItem/ListItemWithRadio.js +4 -2
- package/es/ListItem/props/defaultProps.js +2 -1
- package/es/ListItem/props/propTypes.js +4 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +6 -2
- package/es/MultiSelect/MultiSelect.js +2 -2
- package/es/MultiSelect/Suggestions.js +7 -2
- package/es/MultiSelect/props/defaultProps.js +2 -0
- package/es/MultiSelect/props/propTypes.js +11 -3
- package/es/Select/GroupSelect.js +1 -1
- package/es/Select/SelectWithAvatar.js +3 -3
- package/es/Select/SelectWithIcon.js +10 -3
- package/es/Select/props/defaultProps.js +4 -2
- package/es/Select/props/propTypes.js +11 -3
- package/es/common/common.module.css +1 -1
- package/es/v1/Label/Label.js +2 -1
- package/es/v1/Label/css/cssJSLogic.js +1 -1
- package/lib/ColorSelect/_shared/ColorIndicator/ColorIndicator.module.css +4 -2
- package/lib/ListItem/ListItem.js +6 -3
- package/lib/ListItem/ListItem.module.css +35 -25
- package/lib/ListItem/ListItemWithAvatar.js +5 -3
- package/lib/ListItem/ListItemWithCheckBox.js +4 -2
- package/lib/ListItem/ListItemWithIcon.js +5 -5
- package/lib/ListItem/ListItemWithRadio.js +4 -2
- package/lib/ListItem/props/defaultProps.js +2 -1
- package/lib/ListItem/props/propTypes.js +4 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -3
- package/lib/MultiSelect/MultiSelect.js +2 -2
- package/lib/MultiSelect/Suggestions.js +6 -2
- package/lib/MultiSelect/props/defaultProps.js +2 -0
- package/lib/MultiSelect/props/propTypes.js +13 -5
- package/lib/Select/GroupSelect.js +2 -1
- package/lib/Select/SelectWithAvatar.js +4 -3
- package/lib/Select/SelectWithIcon.js +10 -3
- package/lib/Select/props/defaultProps.js +5 -3
- package/lib/Select/props/propTypes.js +11 -3
- package/lib/common/common.module.css +1 -1
- package/lib/v1/Label/Label.js +3 -2
- package/lib/v1/Label/css/cssJSLogic.js +1 -8
- package/package.json +3 -3
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='yellow'] {
|
|
2
2
|
/* CTA variables */
|
|
3
|
-
--zdt_cta_primary_text: hsla(37, 66.94
|
|
4
|
-
--zdt_cta_primary_hover_text: hsla(37, 66.48
|
|
5
|
-
--zdt_cta_primary_bg: hsla(37, 66.94
|
|
6
|
-
--zdt_cta_primary_hover_bg: hsla(39, 90.18
|
|
7
|
-
--zdt_cta_primary_border: hsla(37, 66.94
|
|
8
|
-
--zdt_cta_primary_hover_border: hsla(39, 90.18
|
|
9
|
-
--zdt_cta_primary_box_shadow:
|
|
10
|
-
--zdt_cta_primary_hover_box_shadow:
|
|
11
|
-
--zdt_cta_primary_light_bg: hsla(35, 15.00
|
|
12
|
-
--zdt_cta_primary_light_hover_bg: hsla(37, 12.70
|
|
13
|
-
--zdt_cta_primary_light_border: hsla(37, 12.70
|
|
14
|
-
--zdt_cta_secondary_bg: hsla(37, 66.94
|
|
15
|
-
--zdt_cta_secondary_text: hsla(0, 0.00
|
|
16
|
-
--zdt_cta_secondary_border: hsla(0, 0.00
|
|
17
|
-
--zdt_cta_secondary_light_border: hsla(38, 30.19
|
|
18
|
-
--zdt_cta_secondary_light_bg: hsla(38, 30.19
|
|
19
|
-
--zdt_cta_alpha_text: hsla(37, 66.94
|
|
20
|
-
--zdt_cta_alpha_hover_text: hsla(39, 90.18
|
|
21
|
-
--zdt_cta_alpha_border: hsla(37, 66.94
|
|
22
|
-
--zdt_cta_alpha_hover_border: hsla(39, 90.18
|
|
23
|
-
--zdt_cta_alpha_bg: hsla(220, 2.75
|
|
24
|
-
--zdt_cta_beta_border: hsla(37, 66.94
|
|
25
|
-
--zdt_cta_grey_10_bg: hsla(0, 0.00
|
|
26
|
-
--zdt_cta_grey_10_border: hsla(0, 0.00
|
|
27
|
-
--zdt_cta_grey_15_bg: hsla(0, 2.33
|
|
28
|
-
--zdt_cta_grey_15_border: hsla(0, 2.33
|
|
29
|
-
--zdt_cta_grey_20_bg: hsla(217, 22.81
|
|
30
|
-
--zdt_cta_grey_35_bg: hsla(0, 0.00
|
|
31
|
-
--zdt_cta_grey_35_text: hsla(0, 0.00
|
|
32
|
-
--zdt_cta_grey_35_border: hsla(0, 0.00
|
|
33
|
-
--zdt_cta_grey_40_bg: hsla(0, 0.00
|
|
34
|
-
--zdt_cta_grey_40_text: hsla(0, 0.00
|
|
35
|
-
--zdt_cta_grey_40_border: hsla(0, 0.00
|
|
3
|
+
--zdt_cta_primary_text: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
4
|
+
--zdt_cta_primary_hover_text: hsla(37, calc(var(--zd-saturation, 1) * 66.48%), calc(64.90% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
5
|
+
--zdt_cta_primary_bg: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), calc(52.55% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
6
|
+
--zdt_cta_primary_hover_bg: hsla(39, calc(var(--zd-saturation, 1) * 90.18%), calc(31.96% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
7
|
+
--zdt_cta_primary_border: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
8
|
+
--zdt_cta_primary_hover_border: hsla(39, calc(var(--zd-saturation, 1) * 90.18%), calc(31.96% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--zdt_cta_primary_box_shadow: hsla(46, calc(var(--zd-saturation, 1) * 81.07%), 52.35%, 0.2);
|
|
10
|
+
--zdt_cta_primary_hover_box_shadow: hsla(48, calc(var(--zd-saturation, 1) * 100.00%), 35.49%, 0.25);
|
|
11
|
+
--zdt_cta_primary_light_bg: hsla(35, calc(var(--zd-saturation, 1) * 15.00%), calc(15.69% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
12
|
+
--zdt_cta_primary_light_hover_bg: hsla(37, calc(var(--zd-saturation, 1) * 12.70%), calc(24.71% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
13
|
+
--zdt_cta_primary_light_border: hsla(37, calc(var(--zd-saturation, 1) * 12.70%), calc(24.71% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
14
|
+
--zdt_cta_secondary_bg: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), calc(52.55% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
15
|
+
--zdt_cta_secondary_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_lighter_high)), calc(1 + var(--zdc_alpha_high)));
|
|
16
|
+
--zdt_cta_secondary_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse_medium)), calc( 0.15 + var(--zdc_alpha_low)));
|
|
17
|
+
--zdt_cta_secondary_light_border: hsla(38, calc(var(--zd-saturation, 1) * 30.19%), calc(20.78% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
18
|
+
--zdt_cta_secondary_light_bg: hsla(38, calc(var(--zd-saturation, 1) * 30.19%), calc(20.78% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--zdt_cta_alpha_text: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
20
|
+
--zdt_cta_alpha_hover_text: hsla(39, calc(var(--zd-saturation, 1) * 90.18%), calc(31.96% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
21
|
+
--zdt_cta_alpha_border: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
22
|
+
--zdt_cta_alpha_hover_border: hsla(39, calc(var(--zd-saturation, 1) * 90.18%), calc(31.96% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
23
|
+
--zdt_cta_alpha_bg: hsla(220, calc(var(--zd-saturation, 1) * 2.75%), calc(21.37% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
24
|
+
--zdt_cta_beta_border: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
25
|
+
--zdt_cta_grey_10_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(14.90% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
26
|
+
--zdt_cta_grey_10_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(14.90% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
27
|
+
--zdt_cta_grey_15_bg: hsla(0, calc(var(--zd-saturation, 1) * 2.33%), calc(8.43% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
28
|
+
--zdt_cta_grey_15_border: hsla(0, calc(var(--zd-saturation, 1) * 2.33%), calc(8.43% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
29
|
+
--zdt_cta_grey_20_bg: hsla(217, calc(var(--zd-saturation, 1) * 22.81%), calc(11.18% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
30
|
+
--zdt_cta_grey_35_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(34.51% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
31
|
+
--zdt_cta_grey_35_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(34.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
32
|
+
--zdt_cta_grey_35_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(21.96% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
33
|
+
--zdt_cta_grey_40_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(34.51% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
+
--zdt_cta_grey_40_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(34.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
35
|
+
--zdt_cta_grey_40_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(34.51% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
36
36
|
}
|
package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
[data-mode='pureDark'][data-theme='yellow'] {
|
|
2
2
|
/* stencil */
|
|
3
|
-
--zdt_stencil_dark_bg:
|
|
4
|
-
--zdt_stencil_dark_gradient_bg /* rtl:as:background-image */: linear-gradient(to left, #212121 0%, #262626 33.33%, #262626 66.66%, #212121 100%);
|
|
3
|
+
--zdt_stencil_dark_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 12.94%, 1);
|
|
4
|
+
--zdt_stencil_dark_gradient_bg /* rtl:as:background-image */: var(--zd-gradient-saturation, linear-gradient(to left, #212121 0%, #262626 33.33%, #262626 66.66%, #212121 100%));
|
|
5
5
|
|
|
6
6
|
/* dropbox */
|
|
7
|
-
--zdt_dropbox_dark_bg:
|
|
7
|
+
--zdt_dropbox_dark_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 12.94%, 1);
|
|
8
8
|
|
|
9
9
|
/* listitem */
|
|
10
|
-
--zdt_listitem_dark_bg:
|
|
11
|
-
--zdt_listitem_dark_text:
|
|
12
|
-
--zdt_listitem_dark_effect_bg:
|
|
13
|
-
--zdt_listitem_dark_active_bg:
|
|
14
|
-
--zdt_listitem_dark_tickicon:
|
|
10
|
+
--zdt_listitem_dark_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 12.94%, 1);
|
|
11
|
+
--zdt_listitem_dark_text: hsla(210, calc(var(--zd-saturation, 1) * 7.41%), 89.41%, 1);
|
|
12
|
+
--zdt_listitem_dark_effect_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 16.86%, 1);
|
|
13
|
+
--zdt_listitem_dark_active_bg: hsla(218, calc(var(--zd-saturation, 1) * 29.76%), 32.94%, 1);
|
|
14
|
+
--zdt_listitem_dark_tickicon: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), 52.55%, 1);
|
|
15
15
|
|
|
16
16
|
/* tag */
|
|
17
|
-
--zdt_tag_dark_text:
|
|
18
|
-
--zdt_tag_dark_bg:
|
|
19
|
-
--zdt_tag_dark_hover_text:
|
|
20
|
-
--zdt_tag_dark_hover_bg:
|
|
21
|
-
--zdt_tag_dark_close_bg:
|
|
22
|
-
--zdt_tag_dark_close_text:
|
|
17
|
+
--zdt_tag_dark_text: hsla(240, calc(var(--zd-saturation, 1) * 4.44%), 82.35%, 1);
|
|
18
|
+
--zdt_tag_dark_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 14.90%, 1);
|
|
19
|
+
--zdt_tag_dark_hover_text: hsla(240, calc(var(--zd-saturation, 1) * 4.44%), 82.35%, 1);
|
|
20
|
+
--zdt_tag_dark_hover_bg: hsla(317, calc(var(--zd-saturation, 1) * 22.14%), 25.69%, 1);
|
|
21
|
+
--zdt_tag_dark_close_bg: hsla(347, calc(var(--zd-saturation, 1) * 31.37%), 40.00%, 1);
|
|
22
|
+
--zdt_tag_dark_close_text: hsla(0, calc(var(--zd-saturation, 1) * 71.91%), 53.92%, 1);
|
|
23
23
|
|
|
24
24
|
/* multiselect */
|
|
25
|
-
--zdt_multiselect_dark_border:
|
|
26
|
-
--zdt_multiselect_darkmsg_bg:
|
|
27
|
-
--zdt_multiselect_darkmsg_text:
|
|
28
|
-
--zdt_multiselect_darkdelete_hover_text:
|
|
25
|
+
--zdt_multiselect_dark_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 34.51%, 1);
|
|
26
|
+
--zdt_multiselect_darkmsg_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 12.94%, 1);
|
|
27
|
+
--zdt_multiselect_darkmsg_text: hsla(240, calc(var(--zd-saturation, 1) * 4.44%), 82.35%, 1);
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: hsla(210, calc(var(--zd-saturation, 1) * 7.41%), 89.41%, 1);
|
|
29
29
|
|
|
30
30
|
/* avatar */
|
|
31
|
-
--zdt_avatar_white_border:
|
|
32
|
-
--zdt_avatar_white_text:
|
|
31
|
+
--zdt_avatar_white_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 60.00%, 1);
|
|
32
|
+
--zdt_avatar_white_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 100.00%, 1);
|
|
33
33
|
|
|
34
34
|
/* label */
|
|
35
|
-
--zdt_label_dark_text:
|
|
35
|
+
--zdt_label_dark_text: hsla(240, calc(var(--zd-saturation, 1) * 4.44%), 82.35%, 1);
|
|
36
36
|
|
|
37
37
|
/* textbox */
|
|
38
|
-
--zdt_textbox_light_text:
|
|
38
|
+
--zdt_textbox_light_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 100.00%, 1);
|
|
39
39
|
|
|
40
40
|
/* dropdown */
|
|
41
|
-
--zdt_dropdown_darkheading_text:
|
|
41
|
+
--zdt_dropdown_darkheading_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), 60.00%, 1);
|
|
42
42
|
|
|
43
43
|
/* focusscope */
|
|
44
|
-
--zdt_a11y_focusScope_focus_border:
|
|
44
|
+
--zdt_a11y_focusScope_focus_border: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), 52.55%, 1);
|
|
45
45
|
|
|
46
46
|
/* button */
|
|
47
|
-
--zdt_button_primary_strike: hsla(37, 66.94
|
|
48
|
-
--zdt_button_primaryFilled_strike: hsla(0, 0.00
|
|
49
|
-
--zdt_button_secondaryFilled_strike: hsla(0, 0.00
|
|
47
|
+
--zdt_button_primary_strike: hsla(37, calc(var(--zd-saturation, 1) * 66.94%), calc(52.55% + var(--zdc_default_inverse_low)), calc( 0.33 + var(--zdc_alpha_low)));
|
|
48
|
+
--zdt_button_primaryFilled_strike: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default_inverse_low)), calc( 0.40 + var(--zdc_alpha_low)));
|
|
49
|
+
--zdt_button_secondaryFilled_strike: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(34.51% + var(--zdc_default_inverse)), calc( 0.7 + var(--zdc_alpha_high)));
|
|
50
50
|
|
|
51
51
|
/* buttonloading */
|
|
52
|
-
--zdt_button_loading_primary_linear_gradient /* rtl:as:background */: linear-gradient(0deg, rgba(215, 152, 53, 1) 50%, rgba(215, 152, 53, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(215, 152, 53, 0.9) 0%, rgba(215, 152, 53, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(215, 152, 53, 0.6) 0%, rgba(215, 152, 53, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(215, 152, 53, 0.3) 0%, rgba(215, 152, 53, 0) 100%) 0% 100
|
|
52
|
+
--zdt_button_loading_primary_linear_gradient /* rtl:as:background */: var(--zd-gradient-saturation, linear-gradient(0deg, rgba(215, 152, 53, 1) 50%, rgba(215, 152, 53, 0.9) 100%) 0% 0%, linear-gradient(90deg, rgba(215, 152, 53, 0.9) 0%, rgba(215, 152, 53, 0.6) 100%) 100% 0%, linear-gradient(180deg, rgba(215, 152, 53, 0.6) 0%, rgba(215, 152, 53, 0.3) 100%) 100% 100%, linear-gradient(360deg, rgba(215, 152, 53, 0.3) 0%, rgba(215, 152, 53, 0) 100%) 0% 100%);
|
|
53
53
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
.varClass {
|
|
2
|
-
|
|
3
|
-
--local-colorIndicator-
|
|
2
|
+
/* css:validation:ignore */
|
|
3
|
+
--local-colorIndicator-height: var(--zd_font_size10);
|
|
4
|
+
/* css:validation:ignore */
|
|
5
|
+
--local-colorIndicator-width: var(--zd_font_size10);
|
|
4
6
|
--local-colorIndicator-border-radius: 10px;
|
|
5
7
|
}
|
|
6
8
|
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -76,7 +76,8 @@ export default class ListItem extends React.Component {
|
|
|
76
76
|
needMultiLineText,
|
|
77
77
|
secondaryValue,
|
|
78
78
|
renderBeforeChildren,
|
|
79
|
-
renderValueRightPlaceholderNode
|
|
79
|
+
renderValueRightPlaceholderNode,
|
|
80
|
+
lhsAlignContent
|
|
80
81
|
} = this.props;
|
|
81
82
|
let {
|
|
82
83
|
ListItemProps = {},
|
|
@@ -85,7 +86,8 @@ export default class ListItem extends React.Component {
|
|
|
85
86
|
let {
|
|
86
87
|
customListItem = '',
|
|
87
88
|
customTickIcon = '',
|
|
88
|
-
customValueRightPlaceholder = ''
|
|
89
|
+
customValueRightPlaceholder = '',
|
|
90
|
+
titleBoxClass = ''
|
|
89
91
|
} = customClass;
|
|
90
92
|
const listA11y = {
|
|
91
93
|
ariaHidden: true,
|
|
@@ -124,7 +126,7 @@ export default class ListItem extends React.Component {
|
|
|
124
126
|
flexible: true,
|
|
125
127
|
className: style.leftBox
|
|
126
128
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
127
|
-
className: style.titleBox
|
|
129
|
+
className: `${style.titleBox} ${lhsAlignContent !== 'start' ? `${style[`alignLhsBox_${lhsAlignContent}`]}` : ''} ${titleBoxClass}`
|
|
128
130
|
}, isRenderable(renderBeforeChildren) ? /*#__PURE__*/React.createElement(Box, {
|
|
129
131
|
adjust: true,
|
|
130
132
|
className: style.beforeChild
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* css:lineheight-validation:ignore */
|
|
1
2
|
.varClass {
|
|
2
3
|
/* listitem default variables */
|
|
3
4
|
--listitem_font_size: var(--zd_font_size13);
|
|
@@ -15,9 +16,14 @@
|
|
|
15
16
|
|
|
16
17
|
/* listitem tick icon default variables */
|
|
17
18
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
18
|
-
|
|
19
|
+
|
|
20
|
+
/* line-height for multiline text */
|
|
21
|
+
--listitem_multiline_lineheight: 1.5385;
|
|
22
|
+
}
|
|
23
|
+
[dir=ltr] .varClass {
|
|
19
24
|
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
20
|
-
}
|
|
25
|
+
}
|
|
26
|
+
[dir=rtl] .varClass {
|
|
21
27
|
--listitem_avatar_margin: 0 0 0 var(--zd_size15);
|
|
22
28
|
}
|
|
23
29
|
.list {
|
|
@@ -70,14 +76,9 @@
|
|
|
70
76
|
.children,.secondaryValue {
|
|
71
77
|
composes: dotted from '../common/common.module.css';
|
|
72
78
|
}
|
|
73
|
-
|
|
74
|
-
margin-right: var(--zd_size10) ;
|
|
75
|
-
}
|
|
76
|
-
[dir=rtl] .beforeChild{
|
|
77
|
-
margin-left: var(--zd_size10) ;
|
|
78
|
-
}
|
|
79
|
+
/* css:lineheight-validation:ignore */
|
|
79
80
|
.value, .multiLineValue {
|
|
80
|
-
line-height:
|
|
81
|
+
line-height: var(--listitem_multiline_lineheight);
|
|
81
82
|
}
|
|
82
83
|
.multiLineValue,.multiLine{
|
|
83
84
|
composes: lineClamp from '../common/common.module.css';
|
|
@@ -115,26 +116,39 @@
|
|
|
115
116
|
composes: justifyFend from '../common/common.module.css';
|
|
116
117
|
}
|
|
117
118
|
|
|
119
|
+
.contentWrapper {
|
|
120
|
+
composes: dflex flexrow from '../common/common.module.css';
|
|
121
|
+
align-items: stretch;
|
|
122
|
+
width: 100% ;
|
|
123
|
+
}
|
|
118
124
|
.lhsBox {
|
|
119
125
|
composes: dflex from '../common/common.module.css';
|
|
120
126
|
align-self: stretch;
|
|
121
127
|
}
|
|
122
|
-
.
|
|
123
|
-
|
|
124
|
-
.lhsBox_large{
|
|
125
|
-
composes: varClass;
|
|
126
|
-
--listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 );
|
|
127
|
-
height: 100% ;
|
|
128
|
+
.beforeChild{
|
|
129
|
+
height: calc(var(--listitem_font_size) * var(--listitem_multiline_lineheight));
|
|
128
130
|
composes: dflex alignVertical from '../common/common.module.css';
|
|
129
131
|
}
|
|
130
|
-
.
|
|
131
|
-
|
|
132
|
+
[dir=ltr] .beforeChild{
|
|
133
|
+
margin-right: var(--zd_size10) ;
|
|
132
134
|
}
|
|
133
|
-
.
|
|
134
|
-
|
|
135
|
+
[dir=rtl] .beforeChild{
|
|
136
|
+
margin-left: var(--zd_size10) ;
|
|
135
137
|
}
|
|
136
|
-
.
|
|
137
|
-
|
|
138
|
+
.titleBox {
|
|
139
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
140
|
+
align-items: stretch;
|
|
141
|
+
}
|
|
142
|
+
.alignLhsBox_end {
|
|
143
|
+
align-items: flex-end;
|
|
144
|
+
}
|
|
145
|
+
.alignLhsBox_center {
|
|
146
|
+
align-items: center;
|
|
147
|
+
}
|
|
148
|
+
.lhsBoxInner{
|
|
149
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
150
|
+
height: 100% ;
|
|
151
|
+
max-height: calc((var(--listitem_font_size) * var(--listitem_multiline_lineheight)) * 2 );
|
|
138
152
|
}
|
|
139
153
|
.defaultHover, .primaryHover, .dangerHover, .secondaryHover, .darkHover {
|
|
140
154
|
background-color: var(--listitem_highlight_bg_color);
|
|
@@ -271,8 +285,4 @@
|
|
|
271
285
|
|
|
272
286
|
.leftBox {
|
|
273
287
|
composes: dflex flexcolumn from '../common/common.module.css';
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.titleBox {
|
|
277
|
-
composes: dflex alignVertical from '../common/common.module.css';
|
|
278
288
|
}
|
|
@@ -124,11 +124,13 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
124
124
|
title: null,
|
|
125
125
|
customProps: ListItemProps,
|
|
126
126
|
...ContainerProps
|
|
127
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
128
|
+
className: style.contentWrapper
|
|
127
129
|
}, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
128
130
|
className: `${style.leftAvatar} ${lhsAlignContent !== 'center' ? `${style.lhsBox}` : ''}`
|
|
129
131
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
130
132
|
align: lhsAlignContent,
|
|
131
|
-
className: style
|
|
133
|
+
className: style.lhsBoxInner
|
|
132
134
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
133
135
|
name: name,
|
|
134
136
|
size: "small",
|
|
@@ -174,7 +176,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
174
176
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
175
177
|
name: "ZD-ticknew",
|
|
176
178
|
size: "8"
|
|
177
|
-
})) : null);
|
|
179
|
+
})) : null));
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
}
|
|
@@ -100,12 +100,14 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
100
100
|
title: null,
|
|
101
101
|
customProps: ListItemProps,
|
|
102
102
|
...ContainerProps
|
|
103
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
104
|
+
className: style.contentWrapper
|
|
103
105
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
104
106
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
105
107
|
dataId: `${dataId ? dataId : value}_checkBox`
|
|
106
108
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
107
109
|
align: lhsAlignContent,
|
|
108
|
-
className: lhsAlignContent !== 'center' ? style
|
|
110
|
+
className: lhsAlignContent !== 'center' ? style.lhsBoxInner : ''
|
|
109
111
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
110
112
|
checked: checked,
|
|
111
113
|
a11y: {
|
|
@@ -130,7 +132,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
130
132
|
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
131
133
|
"data-title": isDisabled ? null : secondaryValue,
|
|
132
134
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
133
|
-
}, secondaryValue) : null));
|
|
135
|
+
}, secondaryValue) : null)));
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
}
|
|
@@ -116,14 +116,14 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
116
116
|
title: null,
|
|
117
117
|
customProps: ListItemProps,
|
|
118
118
|
...ContainerProps
|
|
119
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
120
|
+
className: `${style.contentWrapper} ${!iconName && lhsAlignContent !== 'start' ? style[`alignLhsBox_${lhsAlignContent}`] : ''}`
|
|
119
121
|
}, iconName && /*#__PURE__*/React.createElement(Box, {
|
|
120
122
|
"aria-hidden": true,
|
|
121
|
-
align: lhsAlignContent,
|
|
122
123
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
123
124
|
dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
|
|
124
125
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
125
|
-
align: lhsAlignContent
|
|
126
|
-
className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
|
|
126
|
+
align: lhsAlignContent
|
|
127
127
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
128
128
|
iconClass: iconClass,
|
|
129
129
|
name: iconName,
|
|
@@ -154,7 +154,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
154
154
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
155
155
|
name: "ZD-ticknew",
|
|
156
156
|
size: "8"
|
|
157
|
-
})) : null);
|
|
157
|
+
})) : null));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
}
|
|
@@ -101,13 +101,15 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
101
101
|
title: null,
|
|
102
102
|
customProps: ListItemProps,
|
|
103
103
|
...ContainerProps
|
|
104
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
105
|
+
className: style.contentWrapper
|
|
104
106
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
105
107
|
align: lhsAlignContent,
|
|
106
108
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
107
109
|
dataId: `${dataId}_radio`
|
|
108
110
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
109
111
|
align: lhsAlignContent,
|
|
110
|
-
className: lhsAlignContent !== 'center' ? style
|
|
112
|
+
className: lhsAlignContent !== 'center' ? style.lhsBoxInner : ''
|
|
111
113
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
112
114
|
checked: checked,
|
|
113
115
|
id: id,
|
|
@@ -133,7 +135,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
133
135
|
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
134
136
|
"data-title": isDisabled ? null : secondaryValue,
|
|
135
137
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
136
|
-
}, secondaryValue) : null));
|
|
138
|
+
}, secondaryValue) : null)));
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
}
|
|
@@ -30,7 +30,8 @@ export const ListItemDefaultProps = {
|
|
|
30
30
|
customClass: {},
|
|
31
31
|
customProps: {},
|
|
32
32
|
dataSelectorId: 'listItem',
|
|
33
|
-
needMultiLineText: false
|
|
33
|
+
needMultiLineText: false,
|
|
34
|
+
lhsAlignContent: 'start'
|
|
34
35
|
};
|
|
35
36
|
export const ListItemWithAvatarDefaultProps = {
|
|
36
37
|
active: false,
|
|
@@ -61,14 +61,16 @@ export const ListItem_Props = {
|
|
|
61
61
|
customClass: PropTypes.shape({
|
|
62
62
|
customListItem: PropTypes.string,
|
|
63
63
|
customTickIcon: PropTypes.string,
|
|
64
|
-
customValueRightPlaceholder: PropTypes.string
|
|
64
|
+
customValueRightPlaceholder: PropTypes.string,
|
|
65
|
+
titleBoxClass: PropTypes.string
|
|
65
66
|
}),
|
|
66
67
|
customProps: PropTypes.shape({
|
|
67
68
|
ListItemProps: PropTypes.object
|
|
68
69
|
}),
|
|
69
70
|
secondaryValue: PropTypes.string,
|
|
70
71
|
renderBeforeChildren: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
71
|
-
renderValueRightPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
|
|
72
|
+
renderValueRightPlaceholderNode: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
73
|
+
lhsAlignContent: PropTypes.oneOf(['start', 'center', 'end'])
|
|
72
74
|
};
|
|
73
75
|
export const ListItemWithAvatar_Props = {
|
|
74
76
|
active: PropTypes.bool,
|
|
@@ -889,8 +889,12 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
889
889
|
autoComplete,
|
|
890
890
|
getTargetRef,
|
|
891
891
|
isFocus,
|
|
892
|
-
limit
|
|
892
|
+
limit,
|
|
893
|
+
customProps
|
|
893
894
|
} = this.props;
|
|
895
|
+
const {
|
|
896
|
+
SuggestionsProps = {}
|
|
897
|
+
} = customProps;
|
|
894
898
|
let {
|
|
895
899
|
clearText = MULTISELECT_I18N_KEYS.clearText,
|
|
896
900
|
limitReachedMessage = MULTISELECT_I18N_KEYS.limitReachedMessage
|
|
@@ -1059,7 +1063,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1059
1063
|
a11y: {
|
|
1060
1064
|
role: 'heading'
|
|
1061
1065
|
}
|
|
1062
|
-
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
1066
|
+
})), /*#__PURE__*/React.createElement(Suggestions, { ...SuggestionsProps,
|
|
1063
1067
|
suggestions: suggestions,
|
|
1064
1068
|
selectedOptions: selectedOptionIds,
|
|
1065
1069
|
getRef: this.suggestionItemRef,
|
|
@@ -1095,9 +1095,9 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1095
1095
|
isLoading,
|
|
1096
1096
|
selectAllText,
|
|
1097
1097
|
needSelectAll,
|
|
1098
|
-
customProps,
|
|
1099
1098
|
isVirtualizerEnabled,
|
|
1100
|
-
limit
|
|
1099
|
+
limit,
|
|
1100
|
+
customProps
|
|
1101
1101
|
} = this.props;
|
|
1102
1102
|
const {
|
|
1103
1103
|
selectedOptions,
|
|
@@ -193,18 +193,23 @@ export default class Suggestions extends React.PureComponent {
|
|
|
193
193
|
htmlId,
|
|
194
194
|
a11y,
|
|
195
195
|
getVirtualizerPublicMethods,
|
|
196
|
-
setVirtualizerContainerRefFunction
|
|
196
|
+
setVirtualizerContainerRefFunction,
|
|
197
|
+
customClass
|
|
197
198
|
} = this.props;
|
|
198
199
|
const {
|
|
199
200
|
ariaParentRole,
|
|
200
201
|
ariaMultiselectable
|
|
201
202
|
} = a11y;
|
|
203
|
+
const {
|
|
204
|
+
containerClass = ''
|
|
205
|
+
} = customClass;
|
|
202
206
|
return /*#__PURE__*/React.createElement(Container, {
|
|
203
207
|
isCover: false,
|
|
204
208
|
role: ariaParentRole,
|
|
205
209
|
id: htmlId,
|
|
206
210
|
tabindex: "0",
|
|
207
|
-
"aria-multiselectable": ariaMultiselectable
|
|
211
|
+
"aria-multiselectable": ariaMultiselectable,
|
|
212
|
+
className: containerClass
|
|
208
213
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
209
214
|
dataId: `${dataId}`,
|
|
210
215
|
className: className ? className : ''
|
|
@@ -38,6 +38,7 @@ export const AdvancedGroupMultiSelect_defaultProps = {
|
|
|
38
38
|
palette: 'default',
|
|
39
39
|
isLoading: false,
|
|
40
40
|
dataSelectorId: 'advancedGroupMultiSelect',
|
|
41
|
+
customProps: {},
|
|
41
42
|
allowValueFallback: true
|
|
42
43
|
};
|
|
43
44
|
export const AdvancedMultiSelect_defaultProps = {
|
|
@@ -169,5 +170,6 @@ export const SelectedOptions_defaultProps = {
|
|
|
169
170
|
export const Suggestions_defaultProps = {
|
|
170
171
|
a11y: {},
|
|
171
172
|
isVirtualizerEnabled: false,
|
|
173
|
+
customClass: {},
|
|
172
174
|
needMultiLineText: false
|
|
173
175
|
};
|
|
@@ -114,7 +114,8 @@ export const MultiSelect_propTypes = {
|
|
|
114
114
|
setAriaId: PropTypes.string,
|
|
115
115
|
ariaErrorId: PropTypes.string,
|
|
116
116
|
customProps: PropTypes.shape({
|
|
117
|
-
TextBoxIconProps: PropTypes.object
|
|
117
|
+
TextBoxIconProps: PropTypes.object,
|
|
118
|
+
SuggestionsProps: PropTypes.object
|
|
118
119
|
}),
|
|
119
120
|
isFocus: PropTypes.bool,
|
|
120
121
|
allowValueFallback: PropTypes.bool,
|
|
@@ -199,7 +200,11 @@ export const Suggestions_propTypes = {
|
|
|
199
200
|
})),
|
|
200
201
|
renderBeforeChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
201
202
|
limit: PropTypes.number,
|
|
202
|
-
limitReachedMessage: PropTypes.string
|
|
203
|
+
limitReachedMessage: PropTypes.string,
|
|
204
|
+
customClass: PropTypes.shape({
|
|
205
|
+
containerClass: PropTypes.string
|
|
206
|
+
}),
|
|
207
|
+
needMultiLineText: PropTypes.bool
|
|
203
208
|
};
|
|
204
209
|
export const AdvancedGroupMultiSelect_propTypes = {
|
|
205
210
|
animationStyle: PropTypes.string,
|
|
@@ -273,7 +278,10 @@ export const AdvancedGroupMultiSelect_propTypes = {
|
|
|
273
278
|
dataSelectorId: PropTypes.string,
|
|
274
279
|
isFocus: PropTypes.bool,
|
|
275
280
|
allowValueFallback: PropTypes.bool,
|
|
276
|
-
limit: PropTypes.number
|
|
281
|
+
limit: PropTypes.number,
|
|
282
|
+
customProps: PropTypes.shape({
|
|
283
|
+
SuggestionsProps: PropTypes.object
|
|
284
|
+
})
|
|
277
285
|
};
|
|
278
286
|
export const AdvancedMultiSelect_propTypes = { ...MultiSelect_propTypes,
|
|
279
287
|
selectedOptionDetails: PropTypes.string,
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -623,7 +623,7 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
623
623
|
let {
|
|
624
624
|
TextBoxIconProps = {},
|
|
625
625
|
TextBoxProps = {},
|
|
626
|
-
SuggestionsProps
|
|
626
|
+
SuggestionsProps = {}
|
|
627
627
|
} = customProps;
|
|
628
628
|
return /*#__PURE__*/React.createElement("div", {
|
|
629
629
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${iconOnHover && (isReadOnly || isDisabled) ? style.iconOnHoverReadonly : iconOnHover && !(isReadOnly || isDisabled) ? style.iconOnHoverStyle : ''}`,
|
|
@@ -169,8 +169,8 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
169
169
|
needEffect,
|
|
170
170
|
isLoading,
|
|
171
171
|
dataSelectorId,
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
getTargetRef,
|
|
173
|
+
customProps
|
|
174
174
|
} = this.props;
|
|
175
175
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
176
176
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -195,7 +195,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
195
195
|
let {
|
|
196
196
|
TextBoxProps,
|
|
197
197
|
DropdownSearchTextBoxProps,
|
|
198
|
-
SuggestionsProps
|
|
198
|
+
SuggestionsProps = {}
|
|
199
199
|
} = customProps;
|
|
200
200
|
return /*#__PURE__*/React.createElement("div", {
|
|
201
201
|
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''} ${className ? className : ''}`,
|
|
@@ -357,7 +357,8 @@ class SelectWithIcon extends Component {
|
|
|
357
357
|
htmlId,
|
|
358
358
|
isLoading,
|
|
359
359
|
dataSelectorId,
|
|
360
|
-
customProps
|
|
360
|
+
customProps,
|
|
361
|
+
customClass
|
|
361
362
|
} = this.props;
|
|
362
363
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
363
364
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -375,8 +376,11 @@ class SelectWithIcon extends Component {
|
|
|
375
376
|
TextBoxProps = {},
|
|
376
377
|
DropdownSearchTextBoxProps = {},
|
|
377
378
|
TextBoxIconProps = {},
|
|
378
|
-
ListItemProps
|
|
379
|
+
ListItemProps = {}
|
|
379
380
|
} = customProps;
|
|
381
|
+
const {
|
|
382
|
+
dropBoxClass = ''
|
|
383
|
+
} = customClass;
|
|
380
384
|
return /*#__PURE__*/React.createElement("div", {
|
|
381
385
|
className: `${style.container} ${style[`box_${size}`]} ${isReadOnly ? style.readonly : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
382
386
|
"data-title": isDisabled ? title : null,
|
|
@@ -473,7 +477,10 @@ class SelectWithIcon extends Component {
|
|
|
473
477
|
size: boxSize,
|
|
474
478
|
isPadding: false,
|
|
475
479
|
isResponsivePadding: true,
|
|
476
|
-
alignBox: "row"
|
|
480
|
+
alignBox: "row",
|
|
481
|
+
customClass: {
|
|
482
|
+
customDropBox: dropBoxClass
|
|
483
|
+
}
|
|
477
484
|
}, isLoading ? /*#__PURE__*/React.createElement(Container, {
|
|
478
485
|
align: "both",
|
|
479
486
|
className: style.loader
|
|
@@ -102,7 +102,8 @@ export const SelectWithAvatar_defaultProps = {
|
|
|
102
102
|
i18nKeys: {},
|
|
103
103
|
customProps: {},
|
|
104
104
|
needEffect: true,
|
|
105
|
-
isLoading: false
|
|
105
|
+
isLoading: false,
|
|
106
|
+
customProps: {}
|
|
106
107
|
};
|
|
107
108
|
export const SelectWithIcon_defaultProps = {
|
|
108
109
|
isReadOnly: false,
|
|
@@ -131,5 +132,6 @@ export const SelectWithIcon_defaultProps = {
|
|
|
131
132
|
isLoading: false,
|
|
132
133
|
isAbsolutePositioningNeeded: true,
|
|
133
134
|
isRestrictScroll: false,
|
|
134
|
-
customProps: {}
|
|
135
|
+
customProps: {},
|
|
136
|
+
customClass: {}
|
|
135
137
|
};
|