@zohoim/chat-components 1.0.8 → 1.0.9
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 +2 -2
- package/es/Theme/ThemeAssets.js +0 -18
- package/es/Theme/ThemeWrapper.js +5 -7
- package/es/Theme/themeVariables/commonThemeColorVariable.js +17 -0
- package/es/Theme/themeVariables/dark/blueTheme.js +116 -0
- package/es/Theme/themeVariables/dark/commonColorVariable.js +16 -0
- package/es/Theme/themeVariables/dark/greenTheme.js +115 -0
- package/es/Theme/themeVariables/dark/orangeTheme.js +115 -0
- package/es/Theme/themeVariables/dark/redTheme.js +115 -0
- package/es/Theme/themeVariables/dark/yellowTheme.js +115 -0
- package/es/Theme/themeVariables/light/blueTheme.js +114 -0
- package/es/Theme/themeVariables/light/commonColorVariable.js +35 -0
- package/es/Theme/themeVariables/light/greenTheme.js +114 -0
- package/es/Theme/themeVariables/light/orangeTheme.js +114 -0
- package/es/Theme/themeVariables/light/redTheme.js +114 -0
- package/es/Theme/themeVariables/light/yellowTheme.js +114 -0
- package/es/Theme/themeVariables/pureDark/blueTheme.js +115 -0
- package/es/Theme/themeVariables/pureDark/commonColorVariable.js +18 -0
- package/es/Theme/themeVariables/pureDark/greenTheme.js +115 -0
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +115 -0
- package/es/Theme/themeVariables/pureDark/redTheme.js +115 -0
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +115 -0
- package/es/Theme/utils/getThemeConfigurations.js +55 -1
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +2 -2
- package/package.json +9 -16
- package/assets/Appearance/dark/mode/General_DarkMode.module.css +0 -71
- package/assets/Appearance/dark/themes/blue/blue_General_DarkTheme.module.css +0 -35
- package/assets/Appearance/dark/themes/green/green_General_DarkTheme.module.css +0 -35
- package/assets/Appearance/dark/themes/orange/orange_General_DarkTheme.module.css +0 -35
- package/assets/Appearance/dark/themes/red/red_General_DarkTheme.module.css +0 -35
- package/assets/Appearance/dark/themes/yellow/yellow_General_DarkTheme.module.css +0 -35
- package/assets/Appearance/light/mode/General_LightMode.module.css +0 -71
- package/assets/Appearance/light/themes/blue/blue_General_LightTheme.module.css +0 -35
- package/assets/Appearance/light/themes/green/green_General_LightTheme.module.css +0 -35
- package/assets/Appearance/light/themes/orange/orange_General_LightTheme.module.css +0 -35
- package/assets/Appearance/light/themes/red/red_General_LightTheme.module.css +0 -35
- package/assets/Appearance/light/themes/yellow/yellow_General_LightTheme.module.css +0 -35
- package/assets/Appearance/pureDark/mode/General_PureDarkMode.module.css +0 -71
- package/assets/Appearance/pureDark/themes/blue/blue_General_PureDarkTheme.module.css +0 -35
- package/assets/Appearance/pureDark/themes/green/green_General_PureDarkTheme.module.css +0 -35
- package/assets/Appearance/pureDark/themes/orange/orange_General_PureDarkTheme.module.css +0 -35
- package/assets/Appearance/pureDark/themes/red/red_General_PureDarkTheme.module.css +0 -35
- package/assets/Appearance/pureDark/themes/yellow/yellow_General_PureDarkTheme.module.css +0 -35
- package/lib/index.js +0 -382
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
|
+
export default {
|
|
5
|
+
library: 'chat_components',
|
|
6
|
+
variables: {
|
|
7
|
+
actionIconWrapper: {
|
|
8
|
+
color: actionIconWrapperColor,
|
|
9
|
+
bg_color: '#252d37',
|
|
10
|
+
border_color: '#2c4664'
|
|
11
|
+
},
|
|
12
|
+
attachmentBubble: {
|
|
13
|
+
bg_color: '#212121',
|
|
14
|
+
bg_color_failed: failedBg,
|
|
15
|
+
border_color: '#161515',
|
|
16
|
+
border_color_failed: failedBdr
|
|
17
|
+
},
|
|
18
|
+
attachmentBubbleInfo: {
|
|
19
|
+
fileName_color: '#e2e4e6',
|
|
20
|
+
fileName_color_failed: failedColor,
|
|
21
|
+
fileSize_color: '#999',
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
23
|
+
},
|
|
24
|
+
articleBubble: {
|
|
25
|
+
bg_color: '#212121',
|
|
26
|
+
bg_color_failed: failedBg,
|
|
27
|
+
border_color: '#161515',
|
|
28
|
+
border_color_failed: failedBdr,
|
|
29
|
+
title_color: '#e2e4e6',
|
|
30
|
+
title_color_failed: failedColor,
|
|
31
|
+
summary_color: '#e2e4e6',
|
|
32
|
+
summary_color_failed: failedColor
|
|
33
|
+
},
|
|
34
|
+
imAutoMessageInfo: {
|
|
35
|
+
text_color: '#999'
|
|
36
|
+
},
|
|
37
|
+
imIntegrationIcon,
|
|
38
|
+
imTtIcon,
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
42
|
+
imMessageMeta: {
|
|
43
|
+
time_color: '#999'
|
|
44
|
+
},
|
|
45
|
+
imPermaLink: {
|
|
46
|
+
url_color: '#479dff'
|
|
47
|
+
},
|
|
48
|
+
imageBubble: {
|
|
49
|
+
bg_color: '#212121',
|
|
50
|
+
bg_color_failed: failedBg,
|
|
51
|
+
alt_text_color: '#e2e4e6',
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#161515',
|
|
54
|
+
border_color_failed: failedBdr
|
|
55
|
+
},
|
|
56
|
+
locationBubble: {
|
|
57
|
+
bg_color: '#212121',
|
|
58
|
+
bg_color_failed: failedBg,
|
|
59
|
+
border_color: '#161515',
|
|
60
|
+
border_color_failed: failedBdr,
|
|
61
|
+
url_color: primaryBlue,
|
|
62
|
+
url_color_failed: failedUrlColor
|
|
63
|
+
},
|
|
64
|
+
messageBox: {
|
|
65
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
66
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
67
|
+
bg_color: '#f1f7fe',
|
|
68
|
+
failed_bg_color: failedBgWrapper,
|
|
69
|
+
text_color: messagetextColor
|
|
70
|
+
},
|
|
71
|
+
messageBubble: {
|
|
72
|
+
active_bg_color: bubbleActiveBgColor,
|
|
73
|
+
messageBox_footer_text_color: '#5a616f'
|
|
74
|
+
},
|
|
75
|
+
messageStatus: {
|
|
76
|
+
send_color: messageStatusSendColor,
|
|
77
|
+
read_color: '#479dff',
|
|
78
|
+
failed_color: messageStatusFailedColor
|
|
79
|
+
},
|
|
80
|
+
replyBubble: {
|
|
81
|
+
border_color: '#161515',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
84
|
+
replyBubbleContent: {
|
|
85
|
+
bg_color: '#212121',
|
|
86
|
+
bg_color_failed: failedBg,
|
|
87
|
+
border_color: '#161515',
|
|
88
|
+
border_color_failed: failedBdr,
|
|
89
|
+
line_color: '#cddbf2',
|
|
90
|
+
line_color_failed: failedLine,
|
|
91
|
+
sender_color: '#e2e4e6',
|
|
92
|
+
sender_color_failed: failedColor,
|
|
93
|
+
content_color: '#e2e4e6',
|
|
94
|
+
content_color_failed: failedColor
|
|
95
|
+
},
|
|
96
|
+
replyBubbleHeader: {
|
|
97
|
+
text_color: '#e2e4e6',
|
|
98
|
+
text_color_failed: failedColor,
|
|
99
|
+
time_color: '#828994',
|
|
100
|
+
time_color_failed: failedColor
|
|
101
|
+
},
|
|
102
|
+
textBubble: {
|
|
103
|
+
text_color: '#e2e4e6',
|
|
104
|
+
text_color_failed: failedColor,
|
|
105
|
+
see_more_color: primaryBlue,
|
|
106
|
+
see_more_color_failed: failedUrlColor,
|
|
107
|
+
url_color: primaryBlue,
|
|
108
|
+
url_color_failed: failedUrlColor
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#161515',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const incomingBubbleBgColor = '#2e2e2e';
|
|
2
|
+
export const outgoingBubbleBgColor = '#2e2e2e';
|
|
3
|
+
export const bubbleActiveBgColor = '#202821';
|
|
4
|
+
export const actionIconWrapperColor = '#e2e4e6';
|
|
5
|
+
export const messageStatusSendColor = '#61667a';
|
|
6
|
+
export const messageStatusFailedColor = '#de3535';
|
|
7
|
+
export const messagetextColor = '#e2e4e6';
|
|
8
|
+
export const primaryBlue = '#479dff';
|
|
9
|
+
export const primaryGreen = '#45a159';
|
|
10
|
+
export const primaryOrange = '#ff801f';
|
|
11
|
+
export const primaryRed = '#e94f4f';
|
|
12
|
+
export const primaryYellow = '#d79835';
|
|
13
|
+
export const failedBgWrapper = '#6b323f';
|
|
14
|
+
export const failedBg = '#362530';
|
|
15
|
+
export const failedBdr = '#290000';
|
|
16
|
+
export const failedLine = '#290000';
|
|
17
|
+
export const failedColor = '#e2e4e6';
|
|
18
|
+
export const failedUrlColor = '#479dff';
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
|
+
export default {
|
|
5
|
+
library: 'chat_components',
|
|
6
|
+
variables: {
|
|
7
|
+
actionIconWrapper: {
|
|
8
|
+
color: actionIconWrapperColor,
|
|
9
|
+
bg_color: '#252e27',
|
|
10
|
+
border_color: '#2c4732'
|
|
11
|
+
},
|
|
12
|
+
attachmentBubble: {
|
|
13
|
+
bg_color: '#212121',
|
|
14
|
+
bg_color_failed: failedBg,
|
|
15
|
+
border_color: '#161515',
|
|
16
|
+
border_color_failed: failedBdr
|
|
17
|
+
},
|
|
18
|
+
attachmentBubbleInfo: {
|
|
19
|
+
fileName_color: '#e2e4e6',
|
|
20
|
+
fileName_color_failed: failedColor,
|
|
21
|
+
fileSize_color: '#999',
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
23
|
+
},
|
|
24
|
+
articleBubble: {
|
|
25
|
+
bg_color: '#212121',
|
|
26
|
+
bg_color_failed: failedBg,
|
|
27
|
+
border_color: '#161515',
|
|
28
|
+
border_color_failed: failedBdr,
|
|
29
|
+
title_color: '#e2e4e6',
|
|
30
|
+
title_color_failed: failedColor,
|
|
31
|
+
summary_color: '#e2e4e6',
|
|
32
|
+
summary_color_failed: failedColor
|
|
33
|
+
},
|
|
34
|
+
imAutoMessageInfo: {
|
|
35
|
+
text_color: '#999'
|
|
36
|
+
},
|
|
37
|
+
imIntegrationIcon,
|
|
38
|
+
imTtIcon,
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
42
|
+
imMessageMeta: {
|
|
43
|
+
time_color: '#999'
|
|
44
|
+
},
|
|
45
|
+
imPermaLink: {
|
|
46
|
+
url_color: '#45a159'
|
|
47
|
+
},
|
|
48
|
+
imageBubble: {
|
|
49
|
+
bg_color: '#212121',
|
|
50
|
+
bg_color_failed: failedBg,
|
|
51
|
+
alt_text_color: '#e2e4e6',
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#161515',
|
|
54
|
+
border_color_failed: failedBdr
|
|
55
|
+
},
|
|
56
|
+
locationBubble: {
|
|
57
|
+
bg_color: '#212121',
|
|
58
|
+
bg_color_failed: failedBg,
|
|
59
|
+
border_color: '#161515',
|
|
60
|
+
border_color_failed: failedBdr,
|
|
61
|
+
url_color: primaryGreen,
|
|
62
|
+
url_color_failed: failedUrlColor
|
|
63
|
+
},
|
|
64
|
+
messageBox: {
|
|
65
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
66
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
67
|
+
bg_color: '#f1f7fe',
|
|
68
|
+
failed_bg_color: failedBgWrapper,
|
|
69
|
+
text_color: messagetextColor
|
|
70
|
+
},
|
|
71
|
+
messageBubble: {
|
|
72
|
+
active_bg_color: bubbleActiveBgColor,
|
|
73
|
+
messageBox_footer_text_color: '#5a616f'
|
|
74
|
+
},
|
|
75
|
+
messageStatus: {
|
|
76
|
+
send_color: messageStatusSendColor,
|
|
77
|
+
read_color: '#45a159',
|
|
78
|
+
failed_color: messageStatusFailedColor
|
|
79
|
+
},
|
|
80
|
+
replyBubble: {
|
|
81
|
+
border_color: '#161515',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
84
|
+
replyBubbleContent: {
|
|
85
|
+
bg_color: '#212121',
|
|
86
|
+
bg_color_failed: failedBg,
|
|
87
|
+
border_color: '#161515',
|
|
88
|
+
border_color_failed: failedBdr,
|
|
89
|
+
line_color: '#cddbf2',
|
|
90
|
+
line_color_failed: failedLine,
|
|
91
|
+
sender_color: '#e2e4e6',
|
|
92
|
+
sender_color_failed: failedColor,
|
|
93
|
+
content_color: '#e2e4e6',
|
|
94
|
+
content_color_failed: failedColor
|
|
95
|
+
},
|
|
96
|
+
replyBubbleHeader: {
|
|
97
|
+
text_color: '#e2e4e6',
|
|
98
|
+
text_color_failed: failedColor,
|
|
99
|
+
time_color: '#828994',
|
|
100
|
+
time_color_failed: failedColor
|
|
101
|
+
},
|
|
102
|
+
textBubble: {
|
|
103
|
+
text_color: '#e2e4e6',
|
|
104
|
+
text_color_failed: failedColor,
|
|
105
|
+
see_more_color: primaryGreen,
|
|
106
|
+
see_more_color_failed: failedUrlColor,
|
|
107
|
+
url_color: primaryGreen,
|
|
108
|
+
url_color_failed: failedUrlColor
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#161515',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryOrange, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
|
+
export default {
|
|
5
|
+
library: 'chat_components',
|
|
6
|
+
variables: {
|
|
7
|
+
actionIconWrapper: {
|
|
8
|
+
color: actionIconWrapperColor,
|
|
9
|
+
bg_color: '#312821',
|
|
10
|
+
border_color: '#4d3421'
|
|
11
|
+
},
|
|
12
|
+
attachmentBubble: {
|
|
13
|
+
bg_color: '#212121',
|
|
14
|
+
bg_color_failed: failedBg,
|
|
15
|
+
border_color: '#161515',
|
|
16
|
+
border_color_failed: failedBdr
|
|
17
|
+
},
|
|
18
|
+
attachmentBubbleInfo: {
|
|
19
|
+
fileName_color: '#e2e4e6',
|
|
20
|
+
fileName_color_failed: failedColor,
|
|
21
|
+
fileSize_color: '#999',
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
23
|
+
},
|
|
24
|
+
articleBubble: {
|
|
25
|
+
bg_color: '#212121',
|
|
26
|
+
bg_color_failed: failedBg,
|
|
27
|
+
border_color: '#161515',
|
|
28
|
+
border_color_failed: failedBdr,
|
|
29
|
+
title_color: '#e2e4e6',
|
|
30
|
+
title_color_failed: failedColor,
|
|
31
|
+
summary_color: '#e2e4e6',
|
|
32
|
+
summary_color_failed: failedColor
|
|
33
|
+
},
|
|
34
|
+
imAutoMessageInfo: {
|
|
35
|
+
text_color: '#999'
|
|
36
|
+
},
|
|
37
|
+
imIntegrationIcon,
|
|
38
|
+
imTtIcon,
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
42
|
+
imMessageMeta: {
|
|
43
|
+
time_color: '#999'
|
|
44
|
+
},
|
|
45
|
+
imPermaLink: {
|
|
46
|
+
url_color: '#ff801f'
|
|
47
|
+
},
|
|
48
|
+
imageBubble: {
|
|
49
|
+
bg_color: '#212121',
|
|
50
|
+
bg_color_failed: failedBg,
|
|
51
|
+
alt_text_color: '#e2e4e6',
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#161515',
|
|
54
|
+
border_color_failed: failedBdr
|
|
55
|
+
},
|
|
56
|
+
locationBubble: {
|
|
57
|
+
bg_color: '#212121',
|
|
58
|
+
bg_color_failed: failedBg,
|
|
59
|
+
border_color: '#161515',
|
|
60
|
+
border_color_failed: failedBdr,
|
|
61
|
+
url_color: primaryOrange,
|
|
62
|
+
url_color_failed: failedUrlColor
|
|
63
|
+
},
|
|
64
|
+
messageBox: {
|
|
65
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
66
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
67
|
+
bg_color: '#f1f7fe',
|
|
68
|
+
failed_bg_color: failedBgWrapper,
|
|
69
|
+
text_color: messagetextColor
|
|
70
|
+
},
|
|
71
|
+
messageBubble: {
|
|
72
|
+
active_bg_color: bubbleActiveBgColor,
|
|
73
|
+
messageBox_footer_text_color: '#5a616f'
|
|
74
|
+
},
|
|
75
|
+
messageStatus: {
|
|
76
|
+
send_color: messageStatusSendColor,
|
|
77
|
+
read_color: '#ff801f',
|
|
78
|
+
failed_color: messageStatusFailedColor
|
|
79
|
+
},
|
|
80
|
+
replyBubble: {
|
|
81
|
+
border_color: '#161515',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
84
|
+
replyBubbleContent: {
|
|
85
|
+
bg_color: '#212121',
|
|
86
|
+
bg_color_failed: failedBg,
|
|
87
|
+
border_color: '#161515',
|
|
88
|
+
border_color_failed: failedBdr,
|
|
89
|
+
line_color: '#cddbf2',
|
|
90
|
+
line_color_failed: failedLine,
|
|
91
|
+
sender_color: '#e2e4e6',
|
|
92
|
+
sender_color_failed: failedColor,
|
|
93
|
+
content_color: '#e2e4e6',
|
|
94
|
+
content_color_failed: failedColor
|
|
95
|
+
},
|
|
96
|
+
replyBubbleHeader: {
|
|
97
|
+
text_color: '#e2e4e6',
|
|
98
|
+
text_color_failed: failedColor,
|
|
99
|
+
time_color: '#828994',
|
|
100
|
+
time_color_failed: failedColor
|
|
101
|
+
},
|
|
102
|
+
textBubble: {
|
|
103
|
+
text_color: '#e2e4e6',
|
|
104
|
+
text_color_failed: failedColor,
|
|
105
|
+
see_more_color: primaryOrange,
|
|
106
|
+
see_more_color_failed: failedUrlColor,
|
|
107
|
+
url_color: primaryOrange,
|
|
108
|
+
url_color_failed: failedUrlColor
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#161515',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryRed, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
|
+
export default {
|
|
5
|
+
library: 'chat_components',
|
|
6
|
+
variables: {
|
|
7
|
+
actionIconWrapper: {
|
|
8
|
+
color: actionIconWrapperColor,
|
|
9
|
+
bg_color: '#2f2424',
|
|
10
|
+
border_color: '#492A29'
|
|
11
|
+
},
|
|
12
|
+
attachmentBubble: {
|
|
13
|
+
bg_color: '#212121',
|
|
14
|
+
bg_color_failed: failedBg,
|
|
15
|
+
border_color: '#161515',
|
|
16
|
+
border_color_failed: failedBdr
|
|
17
|
+
},
|
|
18
|
+
attachmentBubbleInfo: {
|
|
19
|
+
fileName_color: '#e2e4e6',
|
|
20
|
+
fileName_color_failed: failedColor,
|
|
21
|
+
fileSize_color: '#999',
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
23
|
+
},
|
|
24
|
+
articleBubble: {
|
|
25
|
+
bg_color: '#212121',
|
|
26
|
+
bg_color_failed: failedBg,
|
|
27
|
+
border_color: '#161515',
|
|
28
|
+
border_color_failed: failedBdr,
|
|
29
|
+
title_color: '#e2e4e6',
|
|
30
|
+
title_color_failed: failedColor,
|
|
31
|
+
summary_color: '#e2e4e6',
|
|
32
|
+
summary_color_failed: failedColor
|
|
33
|
+
},
|
|
34
|
+
imAutoMessageInfo: {
|
|
35
|
+
text_color: '#999'
|
|
36
|
+
},
|
|
37
|
+
imIntegrationIcon,
|
|
38
|
+
imTtIcon,
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
42
|
+
imMessageMeta: {
|
|
43
|
+
time_color: '#999'
|
|
44
|
+
},
|
|
45
|
+
imPermaLink: {
|
|
46
|
+
url_color: '#e94f4f'
|
|
47
|
+
},
|
|
48
|
+
imageBubble: {
|
|
49
|
+
bg_color: '#212121',
|
|
50
|
+
bg_color_failed: failedBg,
|
|
51
|
+
alt_text_color: '#e2e4e6',
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#161515',
|
|
54
|
+
border_color_failed: failedBdr
|
|
55
|
+
},
|
|
56
|
+
locationBubble: {
|
|
57
|
+
bg_color: '#212121',
|
|
58
|
+
bg_color_failed: failedBg,
|
|
59
|
+
border_color: '#161515',
|
|
60
|
+
border_color_failed: failedBdr,
|
|
61
|
+
url_color: primaryRed,
|
|
62
|
+
url_color_failed: failedUrlColor
|
|
63
|
+
},
|
|
64
|
+
messageBox: {
|
|
65
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
66
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
67
|
+
bg_color: '#f1f7fe',
|
|
68
|
+
failed_bg_color: failedBgWrapper,
|
|
69
|
+
text_color: messagetextColor
|
|
70
|
+
},
|
|
71
|
+
messageBubble: {
|
|
72
|
+
active_bg_color: bubbleActiveBgColor,
|
|
73
|
+
messageBox_footer_text_color: '#5a616f'
|
|
74
|
+
},
|
|
75
|
+
messageStatus: {
|
|
76
|
+
send_color: messageStatusSendColor,
|
|
77
|
+
read_color: '#e94f4f',
|
|
78
|
+
failed_color: messageStatusFailedColor
|
|
79
|
+
},
|
|
80
|
+
replyBubble: {
|
|
81
|
+
border_color: '#161515',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
84
|
+
replyBubbleContent: {
|
|
85
|
+
bg_color: '#212121',
|
|
86
|
+
bg_color_failed: failedBg,
|
|
87
|
+
border_color: '#161515',
|
|
88
|
+
border_color_failed: failedBdr,
|
|
89
|
+
line_color: '#cddbf2',
|
|
90
|
+
line_color_failed: failedLine,
|
|
91
|
+
sender_color: '#e2e4e6',
|
|
92
|
+
sender_color_failed: failedColor,
|
|
93
|
+
content_color: '#e2e4e6',
|
|
94
|
+
content_color_failed: failedColor
|
|
95
|
+
},
|
|
96
|
+
replyBubbleHeader: {
|
|
97
|
+
text_color: '#e2e4e6',
|
|
98
|
+
text_color_failed: failedColor,
|
|
99
|
+
time_color: '#828994',
|
|
100
|
+
time_color_failed: failedColor
|
|
101
|
+
},
|
|
102
|
+
textBubble: {
|
|
103
|
+
text_color: '#e2e4e6',
|
|
104
|
+
text_color_failed: failedColor,
|
|
105
|
+
see_more_color: primaryRed,
|
|
106
|
+
see_more_color_failed: failedUrlColor,
|
|
107
|
+
url_color: primaryRed,
|
|
108
|
+
url_color_failed: failedUrlColor
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#161515',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, bubbleActiveBgColor, messageStatusSendColor, messageStatusFailedColor, actionIconWrapperColor, primaryYellow, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from "./commonColorVariable";
|
|
3
|
+
import { imIntegrationIcon, imTtIcon, messagetextColor } from "../commonThemeColorVariable";
|
|
4
|
+
export default {
|
|
5
|
+
library: 'chat_components',
|
|
6
|
+
variables: {
|
|
7
|
+
actionIconWrapper: {
|
|
8
|
+
color: actionIconWrapperColor,
|
|
9
|
+
bg_color: '#2e2922',
|
|
10
|
+
border_color: '#453925'
|
|
11
|
+
},
|
|
12
|
+
attachmentBubble: {
|
|
13
|
+
bg_color: '#212121',
|
|
14
|
+
bg_color_failed: failedBg,
|
|
15
|
+
border_color: '#161515',
|
|
16
|
+
border_color_failed: failedBdr
|
|
17
|
+
},
|
|
18
|
+
attachmentBubbleInfo: {
|
|
19
|
+
fileName_color: '#e2e4e6',
|
|
20
|
+
fileName_color_failed: failedColor,
|
|
21
|
+
fileSize_color: '#999',
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
23
|
+
},
|
|
24
|
+
articleBubble: {
|
|
25
|
+
bg_color: '#212121',
|
|
26
|
+
bg_color_failed: failedBg,
|
|
27
|
+
border_color: '#161515',
|
|
28
|
+
border_color_failed: failedBdr,
|
|
29
|
+
title_color: '#e2e4e6',
|
|
30
|
+
title_color_failed: failedColor,
|
|
31
|
+
summary_color: '#e2e4e6',
|
|
32
|
+
summary_color_failed: failedColor
|
|
33
|
+
},
|
|
34
|
+
imAutoMessageInfo: {
|
|
35
|
+
text_color: '#999'
|
|
36
|
+
},
|
|
37
|
+
imIntegrationIcon,
|
|
38
|
+
imTtIcon,
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
42
|
+
imMessageMeta: {
|
|
43
|
+
time_color: '#999'
|
|
44
|
+
},
|
|
45
|
+
imPermaLink: {
|
|
46
|
+
url_color: '#d79835'
|
|
47
|
+
},
|
|
48
|
+
imageBubble: {
|
|
49
|
+
bg_color: '#212121',
|
|
50
|
+
bg_color_failed: failedBg,
|
|
51
|
+
alt_text_color: '#e2e4e6',
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#161515',
|
|
54
|
+
border_color_failed: failedBdr
|
|
55
|
+
},
|
|
56
|
+
locationBubble: {
|
|
57
|
+
bg_color: '#212121',
|
|
58
|
+
bg_color_failed: failedBg,
|
|
59
|
+
border_color: '#161515',
|
|
60
|
+
border_color_failed: failedBdr,
|
|
61
|
+
url_color: primaryYellow,
|
|
62
|
+
url_color_failed: failedUrlColor
|
|
63
|
+
},
|
|
64
|
+
messageBox: {
|
|
65
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
66
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
67
|
+
bg_color: '#f1f7fe',
|
|
68
|
+
failed_bg_color: failedBgWrapper,
|
|
69
|
+
text_color: messagetextColor
|
|
70
|
+
},
|
|
71
|
+
messageBubble: {
|
|
72
|
+
active_bg_color: bubbleActiveBgColor,
|
|
73
|
+
messageBox_footer_text_color: '#5a616f'
|
|
74
|
+
},
|
|
75
|
+
messageStatus: {
|
|
76
|
+
send_color: messageStatusSendColor,
|
|
77
|
+
read_color: '#d79835',
|
|
78
|
+
failed_color: messageStatusFailedColor
|
|
79
|
+
},
|
|
80
|
+
replyBubble: {
|
|
81
|
+
border_color: '#161515',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
84
|
+
replyBubbleContent: {
|
|
85
|
+
bg_color: '#212121',
|
|
86
|
+
bg_color_failed: failedBg,
|
|
87
|
+
border_color: '#161515',
|
|
88
|
+
border_color_failed: failedBdr,
|
|
89
|
+
line_color: '#cddbf2',
|
|
90
|
+
line_color_failed: failedLine,
|
|
91
|
+
sender_color: '#e2e4e6',
|
|
92
|
+
sender_color_failed: failedColor,
|
|
93
|
+
content_color: '#e2e4e6',
|
|
94
|
+
content_color_failed: failedColor
|
|
95
|
+
},
|
|
96
|
+
replyBubbleHeader: {
|
|
97
|
+
text_color: '#e2e4e6',
|
|
98
|
+
text_color_failed: failedColor,
|
|
99
|
+
time_color: '#828994',
|
|
100
|
+
time_color_failed: failedColor
|
|
101
|
+
},
|
|
102
|
+
textBubble: {
|
|
103
|
+
text_color: '#e2e4e6',
|
|
104
|
+
text_color_failed: failedColor,
|
|
105
|
+
see_more_color: primaryYellow,
|
|
106
|
+
see_more_color_failed: failedUrlColor,
|
|
107
|
+
url_color: primaryYellow,
|
|
108
|
+
url_color_failed: failedUrlColor
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#161515',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
@@ -1,4 +1,19 @@
|
|
|
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";
|
|
2
17
|
const modeMapping = {
|
|
3
18
|
[modeConstants.LIGHT]: 'light',
|
|
4
19
|
[modeConstants.DARK]: 'dark',
|
|
@@ -11,17 +26,56 @@ const themeMapping = {
|
|
|
11
26
|
[themeConstants.RED]: 'red',
|
|
12
27
|
[themeConstants.YELLOW]: 'yellow'
|
|
13
28
|
};
|
|
29
|
+
const concatString = '_';
|
|
14
30
|
const defaultTheme = themeMapping[themeConstants.BLUE];
|
|
15
31
|
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
|
+
|
|
16
62
|
export default function getThemeConfigurations(_ref) {
|
|
17
63
|
let {
|
|
18
64
|
mode: propMode,
|
|
19
65
|
theme: propTheme
|
|
20
66
|
} = _ref;
|
|
67
|
+
const {
|
|
68
|
+
themeName
|
|
69
|
+
} = getThemeName({
|
|
70
|
+
mode: propMode,
|
|
71
|
+
theme: propTheme
|
|
72
|
+
});
|
|
21
73
|
const mode = propMode ? modeMapping[propMode] || propMode : defaultMode;
|
|
22
74
|
const theme = propTheme ? themeMapping[propTheme] || propTheme : defaultTheme;
|
|
75
|
+
const themeConfigurations = themeConfigMapping[themeName] || defaultThemeConfiguration;
|
|
23
76
|
return {
|
|
24
77
|
mode,
|
|
25
|
-
theme
|
|
78
|
+
theme,
|
|
79
|
+
themeConfigurations
|
|
26
80
|
};
|
|
27
81
|
}
|
|
@@ -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);
|
|
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);
|
|
72
72
|
}
|