@zohodesk/components 1.0.0-temp-242.1 → 1.0.0-temp-247
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 +0 -16
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +198 -198
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +8 -8
- 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 +194 -194
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +8 -8
- 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 +200 -200
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +8 -8
- 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/DropBox/DropBoxElement/DropBoxElement.js +1 -1
- package/es/DropBox/DropBoxPositionMapping.js +142 -0
- package/es/DropBox/utils/isMobilePopover.js +14 -3
- package/es/Popup/Popup.js +1045 -21
- package/es/Popup/PositionMapping.js +72 -0
- package/es/Popup/Registry.js +36 -0
- package/es/Popup/intersectionObserver.js +49 -0
- package/es/Popup/viewPort.js +373 -0
- package/es/utils/Common.js +1 -1
- package/es/v1/Popup/Popup.js +1 -1
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +5 -5
- package/lib/DropBox/DropBoxPositionMapping.js +149 -0
- package/lib/DropBox/utils/isMobilePopover.js +14 -4
- package/lib/Popup/Popup.js +1152 -25
- package/lib/Popup/PositionMapping.js +81 -0
- package/lib/Popup/Registry.js +46 -0
- package/lib/Popup/intersectionObserver.js +72 -0
- package/lib/Popup/viewPort.js +367 -0
- package/lib/utils/Common.js +1 -1
- package/lib/v1/Popup/Popup.js +1 -1
- package/package.json +9 -9
|
@@ -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) * 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) * 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) * 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) * 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) * 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) * 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) * 81.07%), 52.35, 0.2);
|
|
10
|
+
--zdt_cta_primary_hover_box_shadow: hsla(48, calc(var(--zd-saturation) * 100.00%), 35.49, 0.25);
|
|
11
|
+
--zdt_cta_primary_light_bg: hsla(35, calc(var(--zd-saturation) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 0.00%), 12.94, 1);
|
|
11
|
+
--zdt_listitem_dark_text: hsla(210, calc(var(--zd-saturation) * 7.41%), 89.41, 1);
|
|
12
|
+
--zdt_listitem_dark_effect_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), 16.86, 1);
|
|
13
|
+
--zdt_listitem_dark_active_bg: hsla(218, calc(var(--zd-saturation) * 29.76%), 32.94, 1);
|
|
14
|
+
--zdt_listitem_dark_tickicon: hsla(37, calc(var(--zd-saturation) * 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) * 4.44%), 82.35, 1);
|
|
18
|
+
--zdt_tag_dark_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), 14.90, 1);
|
|
19
|
+
--zdt_tag_dark_hover_text: hsla(240, calc(var(--zd-saturation) * 4.44%), 82.35, 1);
|
|
20
|
+
--zdt_tag_dark_hover_bg: hsla(317, calc(var(--zd-saturation) * 22.14%), 25.69, 1);
|
|
21
|
+
--zdt_tag_dark_close_bg: hsla(347, calc(var(--zd-saturation) * 31.37%), 40.00, 1);
|
|
22
|
+
--zdt_tag_dark_close_text: hsla(0, calc(var(--zd-saturation) * 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) * 0.00%), 34.51, 1);
|
|
26
|
+
--zdt_multiselect_darkmsg_bg: hsla(0, calc(var(--zd-saturation) * 0.00%), 12.94, 1);
|
|
27
|
+
--zdt_multiselect_darkmsg_text: hsla(240, calc(var(--zd-saturation) * 4.44%), 82.35, 1);
|
|
28
|
+
--zdt_multiselect_darkdelete_hover_text: hsla(210, calc(var(--zd-saturation) * 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) * 0.00%), 60.00, 1);
|
|
32
|
+
--zdt_avatar_white_text: hsla(0, calc(var(--zd-saturation) * 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) * 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) * 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) * 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) * 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) * 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) * 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) * 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
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import useDropboxPosCalc from "./useDropboxPosCalc";
|
|
4
4
|
import cssJSLogic from "./css/cssJSLogic";
|
|
5
|
-
import { positionMapping } from
|
|
5
|
+
import { positionMapping } from "../DropBoxPositionMapping.js";
|
|
6
6
|
import { DropBoxElementDefaultProps } from "./props/defaultProps";
|
|
7
7
|
import { DropBoxElementPropTypes } from "./props/propTypes";
|
|
8
8
|
import { mergeStyle } from '@zohodesk/utils';
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export const positionMapping = {
|
|
2
|
+
"bottomCenter": {
|
|
3
|
+
"direction": "bottom",
|
|
4
|
+
"arrowPosition": "mid",
|
|
5
|
+
"positionStyle": "bottomMid"
|
|
6
|
+
},
|
|
7
|
+
"bottomLeftToRight": {
|
|
8
|
+
"direction": "bottom",
|
|
9
|
+
"arrowPosition": "start",
|
|
10
|
+
"positionStyle": "bottomEnd"
|
|
11
|
+
},
|
|
12
|
+
"bottomCenterToRight": {
|
|
13
|
+
"direction": "bottom",
|
|
14
|
+
"arrowPosition": "start",
|
|
15
|
+
"positionStyle": "bottomEnd"
|
|
16
|
+
},
|
|
17
|
+
"bottomRightToLeft": {
|
|
18
|
+
"direction": "bottom",
|
|
19
|
+
"arrowPosition": "end",
|
|
20
|
+
"positionStyle": "bottomStart"
|
|
21
|
+
},
|
|
22
|
+
"bottomCenterToLeft": {
|
|
23
|
+
"direction": "bottom",
|
|
24
|
+
"arrowPosition": "end",
|
|
25
|
+
"positionStyle": "bottomStart"
|
|
26
|
+
},
|
|
27
|
+
"topCenter": {
|
|
28
|
+
"direction": "top",
|
|
29
|
+
"arrowPosition": "mid",
|
|
30
|
+
"positionStyle": "topMid"
|
|
31
|
+
},
|
|
32
|
+
"topLeftToRight": {
|
|
33
|
+
"direction": "top",
|
|
34
|
+
"arrowPosition": "start",
|
|
35
|
+
"positionStyle": "topEnd"
|
|
36
|
+
},
|
|
37
|
+
"topCenterToRight": {
|
|
38
|
+
"direction": "top",
|
|
39
|
+
"arrowPosition": "start",
|
|
40
|
+
"positionStyle": "topEnd"
|
|
41
|
+
},
|
|
42
|
+
"topRightToLeft": {
|
|
43
|
+
"direction": "top",
|
|
44
|
+
"arrowPosition": "end",
|
|
45
|
+
"positionStyle": "topStart"
|
|
46
|
+
},
|
|
47
|
+
"topCenterToLeft": {
|
|
48
|
+
"direction": "top",
|
|
49
|
+
"arrowPosition": "end",
|
|
50
|
+
"positionStyle": "topStart"
|
|
51
|
+
},
|
|
52
|
+
"rightCenter": {
|
|
53
|
+
"direction": "right",
|
|
54
|
+
"arrowPosition": "mid",
|
|
55
|
+
"positionStyle": "rightMid"
|
|
56
|
+
},
|
|
57
|
+
"rightTopToBottom": {
|
|
58
|
+
"direction": "right",
|
|
59
|
+
"arrowPosition": "start",
|
|
60
|
+
"positionStyle": "rightEnd"
|
|
61
|
+
},
|
|
62
|
+
"rightCenterToBottom": {
|
|
63
|
+
"direction": "right",
|
|
64
|
+
"arrowPosition": "start",
|
|
65
|
+
"positionStyle": "rightEnd"
|
|
66
|
+
},
|
|
67
|
+
"rightBottomToTop": {
|
|
68
|
+
"direction": "right",
|
|
69
|
+
"arrowPosition": "end",
|
|
70
|
+
"positionStyle": "rightStart"
|
|
71
|
+
},
|
|
72
|
+
"rightCenterToTop": {
|
|
73
|
+
"direction": "right",
|
|
74
|
+
"arrowPosition": "end",
|
|
75
|
+
"positionStyle": "rightStart"
|
|
76
|
+
},
|
|
77
|
+
"leftCenter": {
|
|
78
|
+
"direction": "left",
|
|
79
|
+
"arrowPosition": "mid",
|
|
80
|
+
"positionStyle": "leftMid"
|
|
81
|
+
},
|
|
82
|
+
"leftTopToBottom": {
|
|
83
|
+
"direction": "left",
|
|
84
|
+
"arrowPosition": "start",
|
|
85
|
+
"positionStyle": "leftEnd"
|
|
86
|
+
},
|
|
87
|
+
"leftCenterToBottom": {
|
|
88
|
+
"direction": "left",
|
|
89
|
+
"arrowPosition": "start",
|
|
90
|
+
"positionStyle": "leftEnd"
|
|
91
|
+
},
|
|
92
|
+
"leftBottomToTop": {
|
|
93
|
+
"direction": "left",
|
|
94
|
+
"arrowPosition": "end",
|
|
95
|
+
"positionStyle": "leftStart"
|
|
96
|
+
},
|
|
97
|
+
"leftCenterToTop": {
|
|
98
|
+
"direction": "left",
|
|
99
|
+
"arrowPosition": "end",
|
|
100
|
+
"positionStyle": "leftStart"
|
|
101
|
+
},
|
|
102
|
+
"bottomRight": {
|
|
103
|
+
"direction": "bottom",
|
|
104
|
+
"arrowPosition": "start",
|
|
105
|
+
"positionStyle": "bottomEnd"
|
|
106
|
+
},
|
|
107
|
+
"bottomLeft": {
|
|
108
|
+
"direction": "bottom",
|
|
109
|
+
"arrowPosition": "end",
|
|
110
|
+
"positionStyle": "bottomStart"
|
|
111
|
+
},
|
|
112
|
+
"topRight": {
|
|
113
|
+
"direction": "top",
|
|
114
|
+
"arrowPosition": "start",
|
|
115
|
+
"positionStyle": "topEnd"
|
|
116
|
+
},
|
|
117
|
+
"topLeft": {
|
|
118
|
+
"direction": "top",
|
|
119
|
+
"arrowPosition": "end",
|
|
120
|
+
"positionStyle": "topStart"
|
|
121
|
+
},
|
|
122
|
+
"rightBottom": {
|
|
123
|
+
"direction": "right",
|
|
124
|
+
"arrowPosition": "start",
|
|
125
|
+
"positionStyle": "rightEnd"
|
|
126
|
+
},
|
|
127
|
+
"rightTop": {
|
|
128
|
+
"direction": "right",
|
|
129
|
+
"arrowPosition": "end",
|
|
130
|
+
"positionStyle": "rightStart"
|
|
131
|
+
},
|
|
132
|
+
"leftBottom": {
|
|
133
|
+
"direction": "left",
|
|
134
|
+
"arrowPosition": "start",
|
|
135
|
+
"positionStyle": "leftEnd"
|
|
136
|
+
},
|
|
137
|
+
"leftTop": {
|
|
138
|
+
"direction": "left",
|
|
139
|
+
"arrowPosition": "end",
|
|
140
|
+
"positionStyle": "leftStart"
|
|
141
|
+
}
|
|
142
|
+
};
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { getLibraryConfig } from "../../Provider/Config";
|
|
2
|
-
import { isMobilePopover as isMobile } from '@zohodesk/dotkit/es/react/components/Popup/utils';
|
|
3
2
|
export default function isMobilePopover(needResponsive) {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
// let { needResponsive } = props;
|
|
4
|
+
let windowWidth,
|
|
5
|
+
mobileWidth = getLibraryConfig('mobileWidth'),
|
|
6
|
+
isModel = false;
|
|
7
|
+
|
|
8
|
+
if (needResponsive) {
|
|
9
|
+
windowWidth = window.innerWidth;
|
|
10
|
+
|
|
11
|
+
if (windowWidth <= mobileWidth) {
|
|
12
|
+
isModel = true;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return isModel ? true : false;
|
|
6
17
|
}
|