@zohoim/chat-components 1.0.9 → 1.0.10-temp
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/General_DarkMode.module.css +71 -0
- package/assets/Appearance/dark/themes/blue/blue_General_DarkTheme.module.css +35 -0
- package/assets/Appearance/dark/themes/green/green_General_DarkTheme.module.css +35 -0
- package/assets/Appearance/dark/themes/orange/orange_General_DarkTheme.module.css +35 -0
- package/assets/Appearance/dark/themes/red/red_General_DarkTheme.module.css +35 -0
- package/assets/Appearance/dark/themes/yellow/yellow_General_DarkTheme.module.css +35 -0
- package/assets/Appearance/light/mode/General_LightMode.module.css +71 -0
- package/assets/Appearance/light/themes/blue/blue_General_LightTheme.module.css +35 -0
- package/assets/Appearance/light/themes/green/green_General_LightTheme.module.css +35 -0
- package/assets/Appearance/light/themes/orange/orange_General_LightTheme.module.css +35 -0
- package/assets/Appearance/light/themes/red/red_General_LightTheme.module.css +35 -0
- package/assets/Appearance/light/themes/yellow/yellow_General_LightTheme.module.css +35 -0
- package/assets/Appearance/pureDark/mode/General_PureDarkMode.module.css +71 -0
- package/assets/Appearance/pureDark/themes/blue/blue_General_PureDarkTheme.module.css +35 -0
- package/assets/Appearance/pureDark/themes/green/green_General_PureDarkTheme.module.css +35 -0
- package/assets/Appearance/pureDark/themes/orange/orange_General_PureDarkTheme.module.css +35 -0
- package/assets/Appearance/pureDark/themes/red/red_General_PureDarkTheme.module.css +35 -0
- package/assets/Appearance/pureDark/themes/yellow/yellow_General_PureDarkTheme.module.css +35 -0
- package/es/Theme/ThemeAssets.js +18 -0
- package/es/Theme/ThemeWrapper.js +7 -5
- package/es/Theme/utils/getThemeConfigurations.js +1 -55
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +2 -2
- package/lib/index.js +382 -0
- package/package.json +16 -9
- package/es/Theme/themeVariables/commonThemeColorVariable.js +0 -17
- package/es/Theme/themeVariables/dark/blueTheme.js +0 -116
- package/es/Theme/themeVariables/dark/commonColorVariable.js +0 -16
- package/es/Theme/themeVariables/dark/greenTheme.js +0 -115
- package/es/Theme/themeVariables/dark/orangeTheme.js +0 -115
- package/es/Theme/themeVariables/dark/redTheme.js +0 -115
- package/es/Theme/themeVariables/dark/yellowTheme.js +0 -115
- package/es/Theme/themeVariables/light/blueTheme.js +0 -114
- package/es/Theme/themeVariables/light/commonColorVariable.js +0 -35
- package/es/Theme/themeVariables/light/greenTheme.js +0 -114
- package/es/Theme/themeVariables/light/orangeTheme.js +0 -114
- package/es/Theme/themeVariables/light/redTheme.js +0 -114
- package/es/Theme/themeVariables/light/yellowTheme.js +0 -114
- package/es/Theme/themeVariables/pureDark/blueTheme.js +0 -115
- package/es/Theme/themeVariables/pureDark/commonColorVariable.js +0 -18
- package/es/Theme/themeVariables/pureDark/greenTheme.js +0 -115
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +0 -115
- package/es/Theme/themeVariables/pureDark/redTheme.js +0 -115
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +0 -115
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[data-zohoim-mode='pureDark'] {
|
|
2
|
+
/* integration colors */
|
|
3
|
+
--imlib_chat_components_imIntegrationIcon_whatsapp_color: hsla(143, 70.85%, calc(48.43% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
4
|
+
--imlib_chat_components_imIntegrationIcon_telegram_color: hsla(201, 63.72%, calc(57.84% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
5
|
+
--imlib_chat_components_imIntegrationIcon_wechat_color: hsla(106, 100.00%, calc(37.84% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
6
|
+
--imlib_chat_components_imIntegrationIcon_line_color: hsla(120, 98.92%, calc(36.47% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
7
|
+
--imlib_chat_components_imIntegrationIcon_twillio_color: hsla(353, 88.24%, calc(56.67% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
8
|
+
--imlib_chat_components_imIntegrationIcon_instagram_color: linear-gradient(221.05deg,#933ab9 11.59%,#d12f8c 50.45%,#fdbb59 85.46%);
|
|
9
|
+
--imlib_chat_components_imIntegrationIcon_asap_color: linear-gradient(180deg, #A375FF 0%, #7732FF 100%);
|
|
10
|
+
--imlib_chat_components_imIntegrationIcon_fb_color: hsla(215, 100.00%, calc(50.00% + var(--zdc_darker_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
11
|
+
|
|
12
|
+
/* two tone icon colors */
|
|
13
|
+
--imlib_chat_components_imTtIcon_path0_color: rgba(255, 255, 255, 0.25);
|
|
14
|
+
--imlib_chat_components_imTtIcon_path1_color: hsla(0, 0.00%, calc(100.00% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
15
|
+
--imlib_chat_components_imIntegrationIcon_path0_color: rgba(255, 255, 255, 0.25);
|
|
16
|
+
--imlib_chat_components_imIntegrationIcon_path1_color: rgb(255,255,255);
|
|
17
|
+
|
|
18
|
+
/* text / icon colors */
|
|
19
|
+
--imlib_chat_components_actionIconWrapper_color: rgb(226,228,230);
|
|
20
|
+
--imlib_chat_components_messageBox_text_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--imlib_chat_components_replyBubbleContent_line_color: hsla(217, 58.73%, calc(87.65% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
--imlib_chat_components_replyBubbleContent_sender_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
23
|
+
--imlib_chat_components_attachmentBubbleInfo_fileName_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
24
|
+
--imlib_chat_components_attachmentBubbleInfo_fileSize_color: hsla(0, 0.00%, calc(60.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
25
|
+
--imlib_chat_components_replyBubbleContent_content_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
26
|
+
--imlib_chat_components_replyBubbleHeader_text_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
27
|
+
--imlib_chat_components_replyBubbleHeader_time_color: hsla(217, 7.76%, calc(54.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
28
|
+
--imlib_chat_components_textBubble_text_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
29
|
+
--imlib_chat_components_articleBubble_title_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
30
|
+
--imlib_chat_components_articleBubble_summary_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
31
|
+
--imlib_chat_components_imMessageContent_text_color: hsla(217, 13.73%, calc(70.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
32
|
+
--imlib_chat_components_imMessageMeta_time_color: hsla(0, 0.00%, calc(60.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
33
|
+
--imlib_chat_components_imAutoMessageInfo_text_color: hsla(0, 0.00%, calc(60.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
+
--imlib_chat_components_messageBubble_messageBox_footer_text_color: hsla(220, 10.45%, calc(39.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
35
|
+
--imlib_chat_components_messageStatus_send_color: hsla(228, 11.42%, calc(42.94% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
36
|
+
--imlib_chat_components_imageBubble_alt_text_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
37
|
+
|
|
38
|
+
/* text / icon failed colors */
|
|
39
|
+
--imlib_chat_components_messageBox_failed_text_color: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
40
|
+
--imlib_chat_components_replyBubbleHeader_text_color_failed: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
41
|
+
--imlib_chat_components_textBubble_text_color_failed: hsla(210, 7.41%, calc(89.41% + var(--zdc_lighter_low)), calc(1 + var(--zdc_alpha_low)));
|
|
42
|
+
--imlib_chat_components_imageBubble_alt_text_color_failed: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
43
|
+
--imlib_chat_components_articleBubble_summary_color_failed: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
44
|
+
--imlib_chat_components_replyBubbleContent_line_color_failed: hsla(0, 100.00%, calc(8.04% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
45
|
+
--imlib_chat_components_replyBubbleContent_sender_color_failed: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
46
|
+
--imlib_chat_components_attachmentBubbleInfo_fileName_color_failed: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
47
|
+
--imlib_chat_components_attachmentBubbleInfo_fileSize_color_failed: hsla(218, 9.76%, calc(51.76% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
48
|
+
--imlib_chat_components_replyBubbleContent_content_color_failed: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
49
|
+
--imlib_chat_components_replyBubbleHeader_time_color_failed: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
50
|
+
--imlib_chat_components_articleBubble_title_color_failed: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
51
|
+
|
|
52
|
+
/* bg colors */
|
|
53
|
+
--imlib_chat_components_messageBox_bg_color: hsla(212, 86.67%, calc(97.06% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
54
|
+
|
|
55
|
+
/* bg failed colors */
|
|
56
|
+
--imlib_chat_components_messageBox_failed_bg_color: hsla(346, 36.31%, calc(30.78% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
57
|
+
--imlib_chat_components_imageBubble_bg_color_failed: hsla(321, 18.68%, calc(17.84% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
58
|
+
--imlib_chat_components_attachmentBubble_bg_color_failed: hsla(321, 18.68%, calc(17.84% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
59
|
+
--imlib_chat_components_articleBubble_bg_color_failed: hsla(321, 18.68%, calc(17.84% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
60
|
+
--imlib_chat_components_locationBubble_bg_color_failed: hsla(321, 18.68%, calc(17.84% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
61
|
+
--imlib_chat_components_replyBubbleContent_bg_color_failed: hsla(321, 18.68%, calc(17.84% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
62
|
+
|
|
63
|
+
/* border failed colors */
|
|
64
|
+
--imlib_chat_components_attachmentBubble_border_color_failed: hsla(0, 100.00%, calc(8.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
65
|
+
--imlib_chat_components_imageBubble_border_color_failed: hsla(0, 100.00%, calc(8.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
66
|
+
--imlib_chat_components_locationBubble_border_color_failed: hsla(0, 100.00%, calc(8.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
67
|
+
--imlib_chat_components_replyBubble_border_color_failed: hsla(0, 100.00%, calc(8.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
68
|
+
--imlib_chat_components_videoBubble_border_color_failed: hsla(0, 100.00%, calc(8.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
69
|
+
--imlib_chat_components_articleBubble_border_color_failed: hsla(0, 100.00%, calc(8.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
70
|
+
--imlib_chat_components_replyBubbleContent_border_color_failed: hsla(0, 100.00%, calc(8.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
71
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[data-zohoim-mode='pureDark'][data-zohoim-theme='blue'] {
|
|
2
|
+
/* bg colors */
|
|
3
|
+
--imlib_chat_components_actionIconWrapper_bg_color: hsla(213, 19.57%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
4
|
+
--imlib_chat_components_attachmentBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
5
|
+
--imlib_chat_components_articleBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
6
|
+
--imlib_chat_components_imageBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
7
|
+
--imlib_chat_components_locationBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--imlib_chat_components_messageBox_incoming_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--imlib_chat_components_messageBox_outgoing_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
10
|
+
--imlib_chat_components_messageBubble_active_bg_color: hsla(128, 11.11%, calc(14.12% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
11
|
+
--imlib_chat_components_replyBubbleContent_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
12
|
+
|
|
13
|
+
/* border colors */
|
|
14
|
+
--imlib_chat_components_actionIconWrapper_border_color: hsla(212, 38.89%, calc(28.24% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
15
|
+
--imlib_chat_components_attachmentBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
16
|
+
--imlib_chat_components_articleBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
17
|
+
--imlib_chat_components_imageBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
18
|
+
--imlib_chat_components_locationBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--imlib_chat_components_replyBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
20
|
+
--imlib_chat_components_replyBubbleContent_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--imlib_chat_components_videoBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
|
|
23
|
+
/* url / themes / primary colors */
|
|
24
|
+
--imlib_chat_components_locationBubble_url_color: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
25
|
+
--imlib_chat_components_imPermaLink_url_color: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
26
|
+
--imlib_chat_components_textBubble_see_more_color: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
27
|
+
--imlib_chat_components_textBubble_url_color: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
28
|
+
--imlib_chat_components_messageStatus_read_color: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
29
|
+
|
|
30
|
+
/* failed colors */
|
|
31
|
+
--imlib_chat_components_messageStatus_failed_color: hsla(0, 71.91%, calc(53.92% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
32
|
+
--imlib_chat_components_locationBubble_url_color_failed: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
33
|
+
--imlib_chat_components_textBubble_see_more_color_failed: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
+
--imlib_chat_components_textBubble_url_color_failed: hsla(212, 100.00%, calc(63.92% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[data-zohoim-mode='pureDark'][data-zohoim-theme='green'] {
|
|
2
|
+
/* bg colors */
|
|
3
|
+
--imlib_chat_components_actionIconWrapper_bg_color: hsla(133, 10.84%, calc(16.27% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
4
|
+
--imlib_chat_components_attachmentBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
5
|
+
--imlib_chat_components_articleBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
6
|
+
--imlib_chat_components_imageBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
7
|
+
--imlib_chat_components_locationBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--imlib_chat_components_messageBox_incoming_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--imlib_chat_components_messageBox_outgoing_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
10
|
+
--imlib_chat_components_messageBubble_active_bg_color: hsla(128, 11.11%, calc(14.12% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
11
|
+
--imlib_chat_components_replyBubbleContent_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
12
|
+
|
|
13
|
+
/* border colors */
|
|
14
|
+
--imlib_chat_components_actionIconWrapper_border_color: hsla(133, 23.48%, calc(22.55% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
15
|
+
--imlib_chat_components_attachmentBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
16
|
+
--imlib_chat_components_articleBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
17
|
+
--imlib_chat_components_imageBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
18
|
+
--imlib_chat_components_locationBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--imlib_chat_components_replyBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
20
|
+
--imlib_chat_components_replyBubbleContent_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--imlib_chat_components_videoBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
|
|
23
|
+
/* url / themes / primary colors */
|
|
24
|
+
--imlib_chat_components_locationBubble_url_color: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
25
|
+
--imlib_chat_components_imPermaLink_url_color: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
26
|
+
--imlib_chat_components_textBubble_see_more_color: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
27
|
+
--imlib_chat_components_textBubble_url_color: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
28
|
+
--imlib_chat_components_messageStatus_read_color: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
29
|
+
|
|
30
|
+
/* failed colors */
|
|
31
|
+
--imlib_chat_components_messageStatus_failed_color: hsla(0, 71.91%, calc(53.92% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
32
|
+
--imlib_chat_components_locationBubble_url_color_failed: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
33
|
+
--imlib_chat_components_textBubble_see_more_color_failed: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
+
--imlib_chat_components_textBubble_url_color_failed: hsla(133, 40.00%, calc(45.10% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[data-zohoim-mode='pureDark'][data-zohoim-theme='orange'] {
|
|
2
|
+
/* bg colors */
|
|
3
|
+
--imlib_chat_components_actionIconWrapper_bg_color: hsla(26, 19.51%, calc(16.08% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
4
|
+
--imlib_chat_components_attachmentBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
5
|
+
--imlib_chat_components_articleBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
6
|
+
--imlib_chat_components_imageBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
7
|
+
--imlib_chat_components_locationBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--imlib_chat_components_messageBox_incoming_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--imlib_chat_components_messageBox_outgoing_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
10
|
+
--imlib_chat_components_messageBubble_active_bg_color: hsla(128, 11.11%, calc(14.12% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
11
|
+
--imlib_chat_components_replyBubbleContent_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
12
|
+
|
|
13
|
+
/* border colors */
|
|
14
|
+
--imlib_chat_components_actionIconWrapper_border_color: hsla(26, 40.00%, calc(21.57% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
15
|
+
--imlib_chat_components_attachmentBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
16
|
+
--imlib_chat_components_articleBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
17
|
+
--imlib_chat_components_imageBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
18
|
+
--imlib_chat_components_locationBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--imlib_chat_components_replyBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
20
|
+
--imlib_chat_components_replyBubbleContent_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--imlib_chat_components_videoBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
|
|
23
|
+
/* url / themes / primary colors */
|
|
24
|
+
--imlib_chat_components_locationBubble_url_color: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
25
|
+
--imlib_chat_components_imPermaLink_url_color: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
26
|
+
--imlib_chat_components_textBubble_see_more_color: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
27
|
+
--imlib_chat_components_textBubble_url_color: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
28
|
+
--imlib_chat_components_messageStatus_read_color: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
29
|
+
|
|
30
|
+
/* failed colors */
|
|
31
|
+
--imlib_chat_components_messageStatus_failed_color: hsla(0, 71.91%, calc(53.92% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
32
|
+
--imlib_chat_components_locationBubble_url_color_failed: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
33
|
+
--imlib_chat_components_textBubble_see_more_color_failed: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
+
--imlib_chat_components_textBubble_url_color_failed: hsla(26, 100.00%, calc(56.08% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[data-zohoim-mode='pureDark'][data-zohoim-theme='red'] {
|
|
2
|
+
/* bg colors */
|
|
3
|
+
--imlib_chat_components_actionIconWrapper_bg_color: hsla(0, 13.25%, calc(16.27% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
4
|
+
--imlib_chat_components_attachmentBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
5
|
+
--imlib_chat_components_articleBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
6
|
+
--imlib_chat_components_imageBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
7
|
+
--imlib_chat_components_locationBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--imlib_chat_components_messageBox_incoming_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--imlib_chat_components_messageBox_outgoing_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
10
|
+
--imlib_chat_components_messageBubble_active_bg_color: hsla(128, 11.11%, calc(14.12% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
11
|
+
--imlib_chat_components_replyBubbleContent_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
12
|
+
|
|
13
|
+
/* border colors */
|
|
14
|
+
--imlib_chat_components_actionIconWrapper_border_color: hsla(2, 28.07%, calc(22.35% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
15
|
+
--imlib_chat_components_attachmentBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
16
|
+
--imlib_chat_components_articleBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
17
|
+
--imlib_chat_components_imageBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
18
|
+
--imlib_chat_components_locationBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--imlib_chat_components_replyBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
20
|
+
--imlib_chat_components_replyBubbleContent_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--imlib_chat_components_videoBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
|
|
23
|
+
/* url / themes / primary colors */
|
|
24
|
+
--imlib_chat_components_locationBubble_url_color: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
25
|
+
--imlib_chat_components_imPermaLink_url_color: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
26
|
+
--imlib_chat_components_textBubble_see_more_color: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
27
|
+
--imlib_chat_components_textBubble_url_color: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
28
|
+
--imlib_chat_components_messageStatus_read_color: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
29
|
+
|
|
30
|
+
/* failed colors */
|
|
31
|
+
--imlib_chat_components_messageStatus_failed_color: hsla(0, 71.91%, calc(53.92% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
32
|
+
--imlib_chat_components_locationBubble_url_color_failed: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
33
|
+
--imlib_chat_components_textBubble_see_more_color_failed: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
+
--imlib_chat_components_textBubble_url_color_failed: hsla(0, 77.78%, calc(61.18% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
35
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[data-zohoim-mode='pureDark'][data-zohoim-theme='yellow'] {
|
|
2
|
+
/* bg colors */
|
|
3
|
+
--imlib_chat_components_actionIconWrapper_bg_color: hsla(35, 15.00%, calc(15.69% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
4
|
+
--imlib_chat_components_attachmentBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
5
|
+
--imlib_chat_components_articleBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
6
|
+
--imlib_chat_components_imageBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
7
|
+
--imlib_chat_components_locationBubble_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
8
|
+
--imlib_chat_components_messageBox_incoming_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
9
|
+
--imlib_chat_components_messageBox_outgoing_bg_color: hsla(0, 0.00%, calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
10
|
+
--imlib_chat_components_messageBubble_active_bg_color: hsla(128, 11.11%, calc(14.12% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
11
|
+
--imlib_chat_components_replyBubbleContent_bg_color: hsla(0, 0.00%, calc(12.94% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
12
|
+
|
|
13
|
+
/* border colors */
|
|
14
|
+
--imlib_chat_components_actionIconWrapper_border_color: hsla(38, 30.19%, calc(20.78% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
15
|
+
--imlib_chat_components_attachmentBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
16
|
+
--imlib_chat_components_articleBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
17
|
+
--imlib_chat_components_imageBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
18
|
+
--imlib_chat_components_locationBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--imlib_chat_components_replyBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
20
|
+
--imlib_chat_components_replyBubbleContent_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
21
|
+
--imlib_chat_components_videoBubble_border_color: hsla(0, 2.33%, calc(8.43% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
22
|
+
|
|
23
|
+
/* url / themes / primary colors */
|
|
24
|
+
--imlib_chat_components_locationBubble_url_color: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
25
|
+
--imlib_chat_components_imPermaLink_url_color: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
26
|
+
--imlib_chat_components_textBubble_see_more_color: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
27
|
+
--imlib_chat_components_textBubble_url_color: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
28
|
+
--imlib_chat_components_messageStatus_read_color: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
29
|
+
|
|
30
|
+
/* failed colors */
|
|
31
|
+
--imlib_chat_components_messageStatus_failed_color: hsla(0, 71.91%, calc(53.92% + var(--zdc_lighter)), calc(1 + var(--zdc_alpha_high)));
|
|
32
|
+
--imlib_chat_components_locationBubble_url_color_failed: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
33
|
+
--imlib_chat_components_textBubble_see_more_color_failed: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
+
--imlib_chat_components_textBubble_url_color_failed: hsla(37, 66.94%, calc(52.55% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
35
|
+
}
|
package/es/Theme/ThemeAssets.js
CHANGED
|
@@ -67,6 +67,24 @@ import '@zohodesk/variables/assets/fontsizeVariables.module.css';
|
|
|
67
67
|
import '@zohodesk/variables/lib/fontFamilyVariables.module.css';
|
|
68
68
|
import '@zohodesk/variables/assets/transitionVariables.module.css';
|
|
69
69
|
import '@zohodesk/variables/assets/no_transitionVariables.module.css';
|
|
70
|
+
import "../../assets/Appearance/dark/mode/General_DarkMode.module.css";
|
|
71
|
+
import "../../assets/Appearance/dark/themes/blue/blue_General_DarkTheme.module.css";
|
|
72
|
+
import "../../assets/Appearance/dark/themes/green/green_General_DarkTheme.module.css";
|
|
73
|
+
import "../../assets/Appearance/dark/themes/orange/orange_General_DarkTheme.module.css";
|
|
74
|
+
import "../../assets/Appearance/dark/themes/red/red_General_DarkTheme.module.css";
|
|
75
|
+
import "../../assets/Appearance/dark/themes/yellow/yellow_General_DarkTheme.module.css";
|
|
76
|
+
import "../../assets/Appearance/light/mode/General_LightMode.module.css";
|
|
77
|
+
import "../../assets/Appearance/light/themes/blue/blue_General_LightTheme.module.css";
|
|
78
|
+
import "../../assets/Appearance/light/themes/green/green_General_LightTheme.module.css";
|
|
79
|
+
import "../../assets/Appearance/light/themes/orange/orange_General_LightTheme.module.css";
|
|
80
|
+
import "../../assets/Appearance/light/themes/red/red_General_LightTheme.module.css";
|
|
81
|
+
import "../../assets/Appearance/light/themes/yellow/yellow_General_LightTheme.module.css";
|
|
82
|
+
import "../../assets/Appearance/pureDark/mode/General_PureDarkMode.module.css";
|
|
83
|
+
import "../../assets/Appearance/pureDark/themes/blue/blue_General_PureDarkTheme.module.css";
|
|
84
|
+
import "../../assets/Appearance/pureDark/themes/green/green_General_PureDarkTheme.module.css";
|
|
85
|
+
import "../../assets/Appearance/pureDark/themes/orange/orange_General_PureDarkTheme.module.css";
|
|
86
|
+
import "../../assets/Appearance/pureDark/themes/red/red_General_PureDarkTheme.module.css";
|
|
87
|
+
import "../../assets/Appearance/pureDark/themes/yellow/yellow_General_PureDarkTheme.module.css";
|
|
70
88
|
export default function DeskAssets(props) {
|
|
71
89
|
const {
|
|
72
90
|
children
|
package/es/Theme/ThemeWrapper.js
CHANGED
|
@@ -38,20 +38,22 @@ export default function ThemeWrapper(props) {
|
|
|
38
38
|
/** ** ThemeConfigurations Handling *** */
|
|
39
39
|
|
|
40
40
|
const {
|
|
41
|
-
themeConfigurations,
|
|
42
41
|
mode,
|
|
43
42
|
theme
|
|
44
43
|
} = getThemeConfigurations({
|
|
45
44
|
mode: propMode,
|
|
46
45
|
theme: propTheme
|
|
47
46
|
});
|
|
48
|
-
const configurations = propThemeConfigurations
|
|
47
|
+
const configurations = propThemeConfigurations;
|
|
49
48
|
/** ** Style Handling *** */
|
|
50
49
|
|
|
51
50
|
const selector = `#${styleTagId}`;
|
|
52
51
|
const prefix = '--imlib_';
|
|
53
52
|
const configuration = useMemo(() => [configurations], [configurations]);
|
|
54
|
-
const customizedVariables = useMemo(() =>
|
|
53
|
+
const customizedVariables = useMemo(() => {
|
|
54
|
+
const cssVariables = propThemeConfigurations ? getCustomizedCssVariables(configuration, prefix) : null;
|
|
55
|
+
return cssVariables;
|
|
56
|
+
}, [configuration, prefix, propThemeConfigurations]);
|
|
55
57
|
const wrapperDivProps = getWrapperDivProps({
|
|
56
58
|
modeKey,
|
|
57
59
|
themeKey,
|
|
@@ -63,9 +65,9 @@ export default function ThemeWrapper(props) {
|
|
|
63
65
|
const renderPortal = useCallback(() => /*#__PURE__*/React.createElement("div", {
|
|
64
66
|
"data-portal": MSG_ACTION_POPUP_PORTAL
|
|
65
67
|
}), []);
|
|
66
|
-
const renderStyle = useCallback(() => /*#__PURE__*/React.createElement("style", {
|
|
68
|
+
const renderStyle = useCallback(() => customizedVariables ? /*#__PURE__*/React.createElement("style", {
|
|
67
69
|
id: "zoho-im-variables"
|
|
68
|
-
}, `${selector}{${customizedVariables}}`), [selector, customizedVariables]);
|
|
70
|
+
}, `${selector}{${customizedVariables}}`) : null, [selector, customizedVariables]);
|
|
69
71
|
const renderAssets = useCallback(() => /*#__PURE__*/React.createElement(React.Fragment, null, needThemeAssets ? /*#__PURE__*/React.createElement(ThemeAssets, null) : null, needTooltip ? /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
70
72
|
containerRef: containerRef.current,
|
|
71
73
|
customStyle: tooltipCustomStyle,
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { modeConstants, themeConstants } from "../constants";
|
|
2
|
-
import lightBlue from "../themeVariables/light/blueTheme";
|
|
3
|
-
import lightGreen from "../themeVariables/light/greenTheme";
|
|
4
|
-
import lightOrange from "../themeVariables/light/orangeTheme";
|
|
5
|
-
import lightRed from "../themeVariables/light/redTheme";
|
|
6
|
-
import lightYellow from "../themeVariables/light/yellowTheme";
|
|
7
|
-
import darkBlue from "../themeVariables/dark/blueTheme";
|
|
8
|
-
import darkGreen from "../themeVariables/dark/greenTheme";
|
|
9
|
-
import darkOrange from "../themeVariables/dark/orangeTheme";
|
|
10
|
-
import darkRed from "../themeVariables/dark/redTheme";
|
|
11
|
-
import darkYellow from "../themeVariables/dark/yellowTheme";
|
|
12
|
-
import pureDarkBlue from "../themeVariables/pureDark/blueTheme";
|
|
13
|
-
import pureDarkGreen from "../themeVariables/pureDark/greenTheme";
|
|
14
|
-
import pureDarkOrange from "../themeVariables/pureDark/orangeTheme";
|
|
15
|
-
import pureDarkRed from "../themeVariables/pureDark/redTheme";
|
|
16
|
-
import pureDarkYellow from "../themeVariables/pureDark/yellowTheme";
|
|
17
2
|
const modeMapping = {
|
|
18
3
|
[modeConstants.LIGHT]: 'light',
|
|
19
4
|
[modeConstants.DARK]: 'dark',
|
|
@@ -26,56 +11,17 @@ const themeMapping = {
|
|
|
26
11
|
[themeConstants.RED]: 'red',
|
|
27
12
|
[themeConstants.YELLOW]: 'yellow'
|
|
28
13
|
};
|
|
29
|
-
const concatString = '_';
|
|
30
14
|
const defaultTheme = themeMapping[themeConstants.BLUE];
|
|
31
15
|
const defaultMode = modeMapping[modeConstants.LIGHT];
|
|
32
|
-
const defaultThemeConfiguration = lightBlue;
|
|
33
|
-
const themeConfigMapping = {
|
|
34
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.BLUE}`]: lightBlue,
|
|
35
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.GREEN}`]: lightGreen,
|
|
36
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.ORANGE}`]: lightOrange,
|
|
37
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.RED}`]: lightRed,
|
|
38
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.YELLOW}`]: lightYellow,
|
|
39
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.BLUE}`]: darkBlue,
|
|
40
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.GREEN}`]: darkGreen,
|
|
41
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.ORANGE}`]: darkOrange,
|
|
42
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.RED}`]: darkRed,
|
|
43
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.YELLOW}`]: darkYellow,
|
|
44
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.BLUE}`]: pureDarkBlue,
|
|
45
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.GREEN}`]: pureDarkGreen,
|
|
46
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.ORANGE}`]: pureDarkOrange,
|
|
47
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.RED}`]: pureDarkRed,
|
|
48
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.YELLOW}`]: pureDarkYellow
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
function getThemeName() {
|
|
52
|
-
let {
|
|
53
|
-
mode = modeConstants.LIGHT,
|
|
54
|
-
theme = themeConstants.BLUE
|
|
55
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
56
|
-
const themeName = `${mode}${concatString}${theme}`;
|
|
57
|
-
return {
|
|
58
|
-
themeName
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
16
|
export default function getThemeConfigurations(_ref) {
|
|
63
17
|
let {
|
|
64
18
|
mode: propMode,
|
|
65
19
|
theme: propTheme
|
|
66
20
|
} = _ref;
|
|
67
|
-
const {
|
|
68
|
-
themeName
|
|
69
|
-
} = getThemeName({
|
|
70
|
-
mode: propMode,
|
|
71
|
-
theme: propTheme
|
|
72
|
-
});
|
|
73
21
|
const mode = propMode ? modeMapping[propMode] || propMode : defaultMode;
|
|
74
22
|
const theme = propTheme ? themeMapping[propTheme] || propTheme : defaultTheme;
|
|
75
|
-
const themeConfigurations = themeConfigMapping[themeName] || defaultThemeConfiguration;
|
|
76
23
|
return {
|
|
77
24
|
mode,
|
|
78
|
-
theme
|
|
79
|
-
themeConfigurations
|
|
25
|
+
theme
|
|
80
26
|
};
|
|
81
27
|
}
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.fontIcon :global .path1::before {
|
|
67
|
-
color: var(--imlib_chat_components_imIntegrationIcon_path0_color);
|
|
67
|
+
color: var(--imlib_chat_components_imIntegrationIcon_path0_color) !important;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.fontIcon :global .path2::before {
|
|
71
|
-
color: var(--imlib_chat_components_imIntegrationIcon_path1_color);
|
|
71
|
+
color: var(--imlib_chat_components_imIntegrationIcon_path1_color) !important;
|
|
72
72
|
}
|