@zohoim/chat-components 0.0.14 → 0.0.16
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/es/ActionIcon/ActionIcon.js +2 -0
- package/es/ActionIconWrapper/ActionIconWrapper.js +15 -3
- package/es/ActionIconWrapper/css/ActionIconWrapper.module.css +5 -0
- package/es/ActionIconWrapper/css/cssJSLogic.js +14 -0
- package/es/ActionIconWrapper/props/propTypes.js +1 -0
- package/es/AttachmentBubble/AttachmentBubble.js +26 -9
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +16 -1
- package/es/AttachmentBubble/css/cssJSLogic.js +15 -0
- package/es/AttachmentBubble/props/propTypes.js +2 -1
- package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +20 -5
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +11 -3
- package/es/AttachmentBubbleInfo/css/cssJSLogic.js +13 -0
- package/es/AttachmentBubbleInfo/props/propTypes.js +2 -1
- package/es/AttachmentIcon/AttachmentIcon.js +3 -1
- package/es/AttachmentIcon/css/AttachmentIcon.module.css +2 -2
- package/es/AttachmentIcon/props/propTypes.js +6 -0
- package/es/AttachmentIcon/utils/getAttachmentIconComponent.js +12 -5
- package/es/AudioBubble/AudioBubble.js +21 -5
- package/es/AudioBubble/css/AudioBubble.module.css +4 -0
- package/es/AudioBubble/props/defaultProps.js +1 -0
- package/es/AudioBubble/props/propTypes.js +2 -1
- package/es/ImageBubble/ImageBubble.js +13 -2
- package/es/ImageBubble/css/ImageBubble.module.css +8 -2
- package/es/ImageBubble/css/cssJSLogic.js +13 -0
- package/es/ImageBubble/props/propTypes.js +2 -1
- package/es/LocationBubble/LocationBubble.js +15 -3
- package/es/LocationBubble/css/LocationBubble.module.css +17 -5
- package/es/LocationBubble/css/cssJSLogic.js +13 -0
- package/es/LocationBubble/props/propTypes.js +2 -1
- package/es/MediaBubbleWrapper/MediaBubbleWrapper.js +7 -4
- package/es/MediaBubbleWrapper/css/MediaBubbleWrapper.module.css +4 -0
- package/es/MediaBubbleWrapper/props/propTypes.js +2 -1
- package/es/Message/Message.js +4 -2
- package/es/MessageAction/MessageAction.js +3 -0
- package/es/MessageAction/props/propTypes.js +1 -0
- package/es/MessageActions/MessageActions.js +18 -4
- package/es/MessageActions/props/propTypes.js +1 -0
- package/es/MessageBox/MessageBox.js +10 -6
- package/es/MessageBox/css/MessageBox.module.css +1 -6
- package/es/MessageBubble/MessageBubble.js +21 -13
- package/es/MessageStatus/css/MessageStatus.module.css +0 -3
- package/es/MoreActionItem/MoreActionItem.js +8 -0
- package/es/MoreActionItem/css/MoreActionItem.module.css +1 -3
- package/es/MoreActionItem/props/propTypes.js +1 -0
- package/es/ReplyBubble/ReplyBubble.js +32 -14
- package/es/ReplyBubble/css/ReplyBubble.module.css +3 -3
- package/es/ReplyBubble/props/propTypes.js +8 -2
- package/es/ReplyBubbleContent/ReplyBubbleContent.js +15 -5
- package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +22 -7
- package/es/ReplyBubbleContent/css/cssJSLogic.js +13 -0
- package/es/ReplyBubbleContent/props/propTypes.js +2 -1
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +24 -9
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +37 -6
- package/es/ReplyBubbleHeader/css/cssJSLogic.js +12 -0
- package/es/ReplyBubbleHeader/props/defaultProps.js +2 -1
- package/es/ReplyBubbleHeader/props/propTypes.js +6 -2
- package/es/TextBubble/TextBubble.js +17 -5
- package/es/TextBubble/css/TextBubble.module.css +16 -1
- package/es/TextBubble/css/cssJSLogic.js +18 -0
- package/es/TextBubble/props/propTypes.js +2 -1
- package/es/Theme/ThemeWrapper.js +2 -2
- package/es/Theme/themeVariables/commonThemeColorVariable.js +1 -2
- package/es/Theme/themeVariables/dark/blueTheme.js +97 -40
- package/es/Theme/themeVariables/dark/commonColorVariable.js +7 -1
- package/es/Theme/themeVariables/dark/greenTheme.js +95 -38
- package/es/Theme/themeVariables/dark/orangeTheme.js +94 -37
- package/es/Theme/themeVariables/dark/redTheme.js +94 -46
- package/es/Theme/themeVariables/dark/yellowTheme.js +94 -37
- package/es/Theme/themeVariables/light/blueTheme.js +96 -35
- package/es/Theme/themeVariables/light/commonColorVariable.js +8 -1
- package/es/Theme/themeVariables/light/greenTheme.js +96 -35
- package/es/Theme/themeVariables/light/orangeTheme.js +97 -34
- package/es/Theme/themeVariables/light/redTheme.js +97 -34
- package/es/Theme/themeVariables/light/yellowTheme.js +96 -35
- package/es/Theme/themeVariables/pureDark/blueTheme.js +93 -37
- package/es/Theme/themeVariables/pureDark/commonColorVariable.js +7 -1
- package/es/Theme/themeVariables/pureDark/greenTheme.js +94 -37
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +94 -37
- package/es/Theme/themeVariables/pureDark/redTheme.js +94 -37
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +94 -37
- package/es/VideoBubble/VideoBubble.js +7 -3
- package/es/VideoBubble/props/propTypes.js +2 -1
- package/es/css/common.module.css +6 -0
- package/es/icons/factory/common/article.svg +4 -4
- package/es/icons/factory/integrations/chInstagram.svg +2 -2
- package/es/icons/factory/integrations/chWhatsApp.svg +2 -2
- package/es/icons/factory/integrations/ttASAP.svg +6 -1
- package/es/icons/factory/integrations/ttLine.svg +8 -0
- package/es/icons/factory/integrations/ttTelegram.svg +4 -1
- package/es/icons/factory/integrations/ttTwillio.svg +8 -1
- package/es/icons/factory/integrations/ttWechat.svg +9 -1
- package/es/icons/iconSrc/attachments/Text.js +47 -0
- package/es/icons/iconSrc/attachments/index.js +1 -1
- package/es/icons/iconSrc/common/Article.js +2 -3
- package/es/icons/iconSrc/integrations/ChInstagram.js +2 -3
- package/es/icons/iconSrc/integrations/ChWhatsApp.js +2 -3
- package/es/icons/iconSrc/integrations/TtASAP.js +11 -15
- package/es/icons/iconSrc/integrations/{TtTwitter.js → TtLine.js} +14 -18
- package/es/icons/iconSrc/integrations/TtTelegram.js +8 -12
- package/es/icons/iconSrc/integrations/TtTwillio.js +15 -19
- package/es/icons/iconSrc/integrations/TtWechat.js +19 -20
- package/es/icons/iconSrc/integrations/index.js +1 -1
- package/es/im/ArticleBubble/ArticleBubble.js +22 -8
- package/es/im/ArticleBubble/css/ArticleBubble.module.css +40 -15
- package/es/im/ArticleBubble/css/cssJSLogic.js +12 -0
- package/es/im/ArticleBubble/props/propTypes.js +2 -1
- package/es/im/IMAutoMessageInfo/css/IMAutoMessageInfo.module.css +1 -0
- package/es/im/IMIntegrationIcon/IMIntegrationIcon.js +1 -1
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +1 -6
- package/es/im/IMMessage/IMMessage.js +57 -11
- package/es/im/{IMTicketLink/css/IMTicketLink.module.css → IMMessage/css/IMMessage.module.css} +21 -11
- package/es/im/IMMessage/css/cssJSLogic.js +23 -0
- package/es/im/IMMessage/props/defaultProps.js +2 -1
- package/es/im/IMMessage/props/propTypes.js +28 -2
- package/es/im/IMMessageContent/IMMessageContent.js +41 -42
- package/es/im/IMMessageContent/css/IMMessageContent.module.css +6 -2
- package/es/im/IMMessageContent/props/propTypes.js +8 -2
- package/es/im/IMMessageMeta/IMMessageMeta.js +8 -8
- package/es/im/IMMessageMeta/css/IMMessageMeta.module.css +2 -4
- package/es/im/IMMessageMeta/props/defaultProps.js +1 -1
- package/es/im/IMPermaLink/IMPermaLink.js +48 -0
- package/es/im/IMPermaLink/css/IMPermaLink.module.css +14 -0
- package/es/im/{IMTicketLink → IMPermaLink}/css/cssJSLogic.js +3 -3
- package/es/im/IMPermaLink/index.js +1 -0
- package/es/{InfoBubble → im/IMPermaLink}/props/defaultProps.js +2 -2
- package/es/im/IMPermaLink/props/propTypes.js +11 -0
- package/es/im/IMReplyBubble/IMReplyBubble.js +10 -5
- package/es/im/IMReplyBubble/props/propTypes.js +7 -2
- package/es/im/IMTextBubble/IMTextBubble.js +5 -2
- package/es/im/IMTextBubble/props/propTypes.js +2 -1
- package/es/im/css/common.module.css +6 -0
- package/es/im/index.js +1 -2
- package/es/index.js +0 -1
- package/package.json +4 -21
- package/es/InfoBubble/InfoBubble.js +0 -34
- package/es/InfoBubble/css/InfoBubble.module.css +0 -0
- package/es/InfoBubble/css/cssJSLogic.js +0 -10
- package/es/InfoBubble/index.js +0 -1
- package/es/InfoBubble/props/propTypes.js +0 -6
- package/es/Theme/crm/dark/blueFanTheme.js +0 -28
- package/es/Theme/crm/dark/blueTheme.js +0 -28
- package/es/Theme/crm/dark/commonColorVariable.js +0 -11
- package/es/Theme/crm/dark/darkBlueTheme.js +0 -28
- package/es/Theme/crm/dark/darkGreyTheme.js +0 -28
- package/es/Theme/crm/dark/greenTheme.js +0 -28
- package/es/Theme/crm/dark/orangeTheme.js +0 -28
- package/es/Theme/crm/dark/pinkTheme.js +0 -28
- package/es/Theme/crm/dark/tealTheme.js +0 -28
- package/es/Theme/crm/dark/whiteTheme.js +0 -28
- package/es/Theme/crm/light/blueFanTheme.js +0 -28
- package/es/Theme/crm/light/blueTheme.js +0 -31
- package/es/Theme/crm/light/commonColorVariable.js +0 -9
- package/es/Theme/crm/light/darkBlueTheme.js +0 -28
- package/es/Theme/crm/light/darkGreyTheme.js +0 -28
- package/es/Theme/crm/light/greenTheme.js +0 -28
- package/es/Theme/crm/light/orangeTheme.js +0 -28
- package/es/Theme/crm/light/pinkTheme.js +0 -28
- package/es/Theme/crm/light/tealTheme.js +0 -28
- package/es/Theme/crm/light/whiteTheme.js +0 -28
- package/es/Theme/crm/pureDark/blueFanTheme.js +0 -28
- package/es/Theme/crm/pureDark/blueTheme.js +0 -28
- package/es/Theme/crm/pureDark/commonColorVariable.js +0 -9
- package/es/Theme/crm/pureDark/darkBlueTheme.js +0 -28
- package/es/Theme/crm/pureDark/darkGreyTheme.js +0 -28
- package/es/Theme/crm/pureDark/greenTheme.js +0 -28
- package/es/Theme/crm/pureDark/orangeTheme.js +0 -28
- package/es/Theme/crm/pureDark/pinkTheme.js +0 -28
- package/es/Theme/crm/pureDark/tealTheme.js +0 -28
- package/es/Theme/crm/pureDark/whiteTheme.js +0 -28
- package/es/icons/factory/integrations/ttTwitter.svg +0 -1
- package/es/im/IMInfoBubble/IMInfoBubble.js +0 -34
- package/es/im/IMInfoBubble/css/IMInfoBubble.module.css +0 -0
- package/es/im/IMInfoBubble/css/cssJSLogic.js +0 -10
- package/es/im/IMInfoBubble/index.js +0 -1
- package/es/im/IMInfoBubble/props/defaultProps.js +0 -6
- package/es/im/IMInfoBubble/props/propTypes.js +0 -6
- package/es/im/IMTicketLink/IMTicketLink.js +0 -48
- package/es/im/IMTicketLink/index.js +0 -1
- package/es/im/IMTicketLink/props/defaultProps.js +0 -6
- package/es/im/IMTicketLink/props/propTypes.js +0 -11
- /package/es/icons/factory/attachments/{txt.svg → text.svg} +0 -0
|
@@ -1,63 +1,124 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryBlue, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
3
|
import { imIntegrationIcon } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
|
-
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: '#5a616f'
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: '#f1f7fe',
|
|
14
|
-
bg_color: '#f1f7fe',
|
|
15
|
-
failed_bg_color: '#fcebeb',
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
7
|
+
// ActionIcon: {},
|
|
18
8
|
actionIconWrapper: {
|
|
19
9
|
color: actionIconWrapperColor,
|
|
20
10
|
bg_color: '#f1f7fe',
|
|
21
11
|
border_color: '#b7d1f0'
|
|
22
12
|
},
|
|
23
|
-
imIntegrationIcon,
|
|
24
|
-
messageStatus: {
|
|
25
|
-
send_color: messageStatusSendColor,
|
|
26
|
-
read_color: primaryBlue,
|
|
27
|
-
failed_color: messageStatusFailedColor
|
|
28
|
-
},
|
|
29
13
|
attachmentBubble: {
|
|
30
14
|
bg_color: white,
|
|
31
|
-
|
|
15
|
+
bg_color_failed: failedBg,
|
|
16
|
+
border_color: '#ebf0f5',
|
|
17
|
+
border_color_failed: failedBdr
|
|
32
18
|
},
|
|
33
|
-
|
|
19
|
+
attachmentBubbleInfo: {
|
|
20
|
+
fileName_color: black,
|
|
21
|
+
fileName_color_failed: failedColor,
|
|
22
|
+
fileSize_color: '#5a616f',
|
|
23
|
+
fileSize_color_failed: failedColor
|
|
24
|
+
},
|
|
25
|
+
// AttachmentIcon: {},
|
|
26
|
+
// Audio: {},
|
|
27
|
+
// AudioBubble: {},
|
|
28
|
+
articleBubble: {
|
|
34
29
|
bg_color: white,
|
|
35
|
-
|
|
30
|
+
bg_color_failed: failedBg,
|
|
36
31
|
border_color: '#ebf0f5',
|
|
37
|
-
|
|
32
|
+
border_color_failed: failedBdr,
|
|
33
|
+
title_color: black,
|
|
34
|
+
title_color_failed: failedColor,
|
|
35
|
+
summary_color: black,
|
|
36
|
+
summary_color_failed: failedColor
|
|
37
|
+
},
|
|
38
|
+
imAutoMessageInfo: {
|
|
39
|
+
text_color: '#737376'
|
|
40
|
+
},
|
|
41
|
+
// IMInfoBubble: {},
|
|
42
|
+
imIntegrationIcon,
|
|
43
|
+
// IMMessage: {},
|
|
44
|
+
// IMMessageContent: {},
|
|
45
|
+
imMessageMeta: {
|
|
46
|
+
time_color: '#5a616f'
|
|
38
47
|
},
|
|
48
|
+
imPermaLink: {
|
|
49
|
+
url_color: primaryBlue
|
|
50
|
+
},
|
|
51
|
+
// IMReplyBubble: {},
|
|
52
|
+
// IMTextBubble: {},
|
|
39
53
|
imageBubble: {
|
|
40
|
-
bg_color: white
|
|
54
|
+
bg_color: white,
|
|
55
|
+
bg_color_failed: failedBg,
|
|
56
|
+
alt_text_color: black,
|
|
57
|
+
alt_text_color_failed: failedColor
|
|
41
58
|
},
|
|
59
|
+
// IMReplyBubble: {},
|
|
60
|
+
// InfoBubble: {},
|
|
61
|
+
// LazyLoadImage: {},
|
|
42
62
|
locationBubble: {
|
|
43
63
|
bg_color: white,
|
|
44
|
-
|
|
45
|
-
border_color: '#ebf0f5'
|
|
64
|
+
bg_color_failed: failedBg,
|
|
65
|
+
border_color: '#ebf0f5',
|
|
66
|
+
border_color_failed: failedBdr,
|
|
67
|
+
url_color: primaryBlue,
|
|
68
|
+
url_color_failed: failedUrlColor
|
|
46
69
|
},
|
|
47
|
-
|
|
70
|
+
// MediaBubbleWrapper: {},
|
|
71
|
+
// Message: {},
|
|
72
|
+
// MessageAction: {},
|
|
73
|
+
// MessageActions: {},
|
|
74
|
+
// MessageActionsMore: {},
|
|
75
|
+
// MessageActionsWrapper: {},
|
|
76
|
+
// MessageAvatar: {},
|
|
77
|
+
messageBox: {
|
|
78
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
79
|
+
outgoing_bg_color: '#f1f7fe',
|
|
80
|
+
bg_color: '#f1f7fe',
|
|
81
|
+
failed_bg_color: failedBgWrapper,
|
|
82
|
+
text_color: messagetextColor
|
|
83
|
+
},
|
|
84
|
+
messageBubble: {
|
|
85
|
+
active_bg_color: bubbleActiveBgColor,
|
|
86
|
+
messageBox_footer_text_color: '#5a616f'
|
|
87
|
+
},
|
|
88
|
+
messageStatus: {
|
|
89
|
+
send_color: messageStatusSendColor,
|
|
90
|
+
read_color: primaryBlue,
|
|
91
|
+
failed_color: messageStatusFailedColor
|
|
92
|
+
},
|
|
93
|
+
// MoreActionItem: {},
|
|
94
|
+
// ReplyBubble: {},
|
|
95
|
+
replyBubbleContent: {
|
|
48
96
|
bg_color: white,
|
|
49
|
-
|
|
50
|
-
border_color: '#ebf0f5'
|
|
97
|
+
bg_color_failed: failedBg,
|
|
98
|
+
border_color: '#ebf0f5',
|
|
99
|
+
border_color_failed: failedBdr,
|
|
100
|
+
line_color: '#cddbf2',
|
|
101
|
+
line_color_failed: failedLine,
|
|
102
|
+
sender_color: black,
|
|
103
|
+
sender_color_failed: failedColor,
|
|
104
|
+
content_color: '#5a616f',
|
|
105
|
+
content_color_failed: failedColor
|
|
51
106
|
},
|
|
52
|
-
|
|
53
|
-
|
|
107
|
+
replyBubbleHeader: {
|
|
108
|
+
text_color: black,
|
|
109
|
+
text_color_failed: failedColor,
|
|
110
|
+
time_color: '#61667a',
|
|
111
|
+
time_color_failed: failedColor
|
|
54
112
|
},
|
|
55
113
|
textBubble: {
|
|
114
|
+
text_color: black,
|
|
115
|
+
text_color_failed: failedColor,
|
|
56
116
|
see_more_color: primaryBlue,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
117
|
+
see_more_color_failed: failedUrlColor,
|
|
118
|
+
url_color: primaryBlue,
|
|
119
|
+
url_color_failed: failedUrlColor
|
|
120
|
+
} // Video: {},
|
|
121
|
+
// VideoBubble: {}
|
|
122
|
+
|
|
62
123
|
}
|
|
63
124
|
};
|
|
@@ -5,8 +5,15 @@ export const messageStatusSendColor = '#61667a';
|
|
|
5
5
|
export const messageStatusFailedColor = '#de3535';
|
|
6
6
|
export const messagetextColor = '#000';
|
|
7
7
|
export const white = '#fff';
|
|
8
|
+
export const black = '#000';
|
|
8
9
|
export const primaryBlue = '#0a73eb';
|
|
9
10
|
export const primaryGreen = '#26a942';
|
|
10
11
|
export const primaryOrange = '#e57717';
|
|
11
12
|
export const primaryRed = '#de3535';
|
|
12
|
-
export const primaryYellow = '#b68c07';
|
|
13
|
+
export const primaryYellow = '#b68c07';
|
|
14
|
+
export const failedBgWrapper = '#fcebeb';
|
|
15
|
+
export const failedBg = '#fff0f0';
|
|
16
|
+
export const failedBdr = '#ffd6d6';
|
|
17
|
+
export const failedLine = '#ffd6d6';
|
|
18
|
+
export const failedColor = '#000';
|
|
19
|
+
export const failedUrlColor = '#0a73eb';
|
|
@@ -1,63 +1,124 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryGreen, white } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryGreen, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
3
|
import { imIntegrationIcon } from '../commonThemeColorVariable';
|
|
4
4
|
export default {
|
|
5
5
|
library: 'chat_components',
|
|
6
6
|
variables: {
|
|
7
|
-
|
|
8
|
-
active_bg_color: bubbleActiveBgColor,
|
|
9
|
-
messageBox_footer_text_color: '#5a616f'
|
|
10
|
-
},
|
|
11
|
-
messageBox: {
|
|
12
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
13
|
-
outgoing_bg_color: '#f2faf5',
|
|
14
|
-
bg_color: '#f1f7fe',
|
|
15
|
-
failed_bg_color: '#fcebeb',
|
|
16
|
-
text_color: messagetextColor
|
|
17
|
-
},
|
|
7
|
+
// ActionIcon: {},
|
|
18
8
|
actionIconWrapper: {
|
|
19
9
|
color: actionIconWrapperColor,
|
|
20
10
|
bg_color: '#f2faf5',
|
|
21
11
|
border_color: '#bee5c6'
|
|
22
12
|
},
|
|
23
|
-
imIntegrationIcon,
|
|
24
|
-
messageStatus: {
|
|
25
|
-
send_color: messageStatusSendColor,
|
|
26
|
-
read_color: '#26a942',
|
|
27
|
-
failed_color: messageStatusFailedColor
|
|
28
|
-
},
|
|
29
13
|
attachmentBubble: {
|
|
30
14
|
bg_color: white,
|
|
31
|
-
|
|
15
|
+
bg_color_failed: failedBg,
|
|
16
|
+
border_color: '#ebf0f5',
|
|
17
|
+
border_color_failed: failedBdr
|
|
32
18
|
},
|
|
33
|
-
|
|
19
|
+
attachmentBubbleInfo: {
|
|
20
|
+
fileName_color: black,
|
|
21
|
+
fileName_color_failed: failedColor,
|
|
22
|
+
fileSize_color: '#5a616f',
|
|
23
|
+
fileSize_color_failed: failedColor
|
|
24
|
+
},
|
|
25
|
+
// AttachmentIcon: {},
|
|
26
|
+
// Audio: {},
|
|
27
|
+
// AudioBubble: {},
|
|
28
|
+
articleBubble: {
|
|
34
29
|
bg_color: white,
|
|
35
|
-
|
|
30
|
+
bg_color_failed: failedBg,
|
|
36
31
|
border_color: '#ebf0f5',
|
|
37
|
-
|
|
32
|
+
border_color_failed: failedBdr,
|
|
33
|
+
title_color: black,
|
|
34
|
+
title_color_failed: failedColor,
|
|
35
|
+
summary_color: black,
|
|
36
|
+
summary_color_failed: failedColor
|
|
37
|
+
},
|
|
38
|
+
imAutoMessageInfo: {
|
|
39
|
+
text_color: '#737376'
|
|
40
|
+
},
|
|
41
|
+
// IMInfoBubble: {},
|
|
42
|
+
imIntegrationIcon,
|
|
43
|
+
// IMMessage: {},
|
|
44
|
+
// IMMessageContent: {},
|
|
45
|
+
imMessageMeta: {
|
|
46
|
+
time_color: '#5a616f'
|
|
38
47
|
},
|
|
48
|
+
imPermaLink: {
|
|
49
|
+
url_color: primaryGreen
|
|
50
|
+
},
|
|
51
|
+
// IMReplyBubble: {},
|
|
52
|
+
// IMTextBubble: {},
|
|
39
53
|
imageBubble: {
|
|
40
|
-
bg_color: white
|
|
54
|
+
bg_color: white,
|
|
55
|
+
bg_color_failed: failedBg,
|
|
56
|
+
alt_text_color: black,
|
|
57
|
+
alt_text_color_failed: failedColor
|
|
41
58
|
},
|
|
59
|
+
// IMReplyBubble: {},
|
|
60
|
+
// InfoBubble: {},
|
|
61
|
+
// LazyLoadImage: {},
|
|
42
62
|
locationBubble: {
|
|
43
63
|
bg_color: white,
|
|
44
|
-
|
|
45
|
-
border_color: '#ebf0f5'
|
|
64
|
+
bg_color_failed: failedBg,
|
|
65
|
+
border_color: '#ebf0f5',
|
|
66
|
+
border_color_failed: failedBdr,
|
|
67
|
+
url_color: primaryGreen,
|
|
68
|
+
url_color_failed: failedUrlColor
|
|
46
69
|
},
|
|
47
|
-
|
|
70
|
+
// MediaBubbleWrapper: {},
|
|
71
|
+
// Message: {},
|
|
72
|
+
// MessageAction: {},
|
|
73
|
+
// MessageActions: {},
|
|
74
|
+
// MessageActionsMore: {},
|
|
75
|
+
// MessageActionsWrapper: {},
|
|
76
|
+
// MessageAvatar: {},
|
|
77
|
+
messageBox: {
|
|
78
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
79
|
+
outgoing_bg_color: '#f2faf5',
|
|
80
|
+
bg_color: '#f1f7fe',
|
|
81
|
+
failed_bg_color: failedBgWrapper,
|
|
82
|
+
text_color: messagetextColor
|
|
83
|
+
},
|
|
84
|
+
messageBubble: {
|
|
85
|
+
active_bg_color: bubbleActiveBgColor,
|
|
86
|
+
messageBox_footer_text_color: '#5a616f'
|
|
87
|
+
},
|
|
88
|
+
messageStatus: {
|
|
89
|
+
send_color: messageStatusSendColor,
|
|
90
|
+
read_color: '#26a942',
|
|
91
|
+
failed_color: messageStatusFailedColor
|
|
92
|
+
},
|
|
93
|
+
// MoreActionItem: {},
|
|
94
|
+
// ReplyBubble: {},
|
|
95
|
+
replyBubbleContent: {
|
|
48
96
|
bg_color: white,
|
|
49
|
-
|
|
50
|
-
border_color: '#ebf0f5'
|
|
97
|
+
bg_color_failed: failedBg,
|
|
98
|
+
border_color: '#ebf0f5',
|
|
99
|
+
border_color_failed: failedBdr,
|
|
100
|
+
line_color: '#cddbf2',
|
|
101
|
+
line_color_failed: failedLine,
|
|
102
|
+
sender_color: black,
|
|
103
|
+
sender_color_failed: failedColor,
|
|
104
|
+
content_color: '#5a616f',
|
|
105
|
+
content_color_failed: failedColor
|
|
51
106
|
},
|
|
52
|
-
|
|
53
|
-
|
|
107
|
+
replyBubbleHeader: {
|
|
108
|
+
text_color: black,
|
|
109
|
+
text_color_failed: failedColor,
|
|
110
|
+
time_color: '#61667a',
|
|
111
|
+
time_color_failed: failedColor
|
|
54
112
|
},
|
|
55
113
|
textBubble: {
|
|
114
|
+
text_color: black,
|
|
115
|
+
text_color_failed: failedColor,
|
|
56
116
|
see_more_color: primaryGreen,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
117
|
+
see_more_color_failed: failedUrlColor,
|
|
118
|
+
url_color: primaryGreen,
|
|
119
|
+
url_color_failed: failedUrlColor
|
|
120
|
+
} // Video: {},
|
|
121
|
+
// VideoBubble: {}
|
|
122
|
+
|
|
62
123
|
}
|
|
63
124
|
};
|
|
@@ -1,61 +1,124 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryOrange, white } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryOrange, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
|
+
import { imIntegrationIcon } from '../commonThemeColorVariable';
|
|
3
4
|
export default {
|
|
4
5
|
library: 'chat_components',
|
|
5
6
|
variables: {
|
|
6
|
-
|
|
7
|
-
active_bg_color: bubbleActiveBgColor,
|
|
8
|
-
messageBox_footer_text_color: '#5a616f'
|
|
9
|
-
},
|
|
10
|
-
messageBox: {
|
|
11
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
-
outgoing_bg_color: '#fdf5ef',
|
|
13
|
-
bg_color: '#f1f7fe',
|
|
14
|
-
failed_bg_color: '#fcebeb',
|
|
15
|
-
text_color: messagetextColor
|
|
16
|
-
},
|
|
7
|
+
// ActionIcon: {},
|
|
17
8
|
actionIconWrapper: {
|
|
18
9
|
color: actionIconWrapperColor,
|
|
19
10
|
bg_color: '#fdf5ef',
|
|
20
11
|
border_color: '#f7d6b9'
|
|
21
12
|
},
|
|
22
|
-
messageStatus: {
|
|
23
|
-
send_color: messageStatusSendColor,
|
|
24
|
-
read_color: '#e57717',
|
|
25
|
-
failed_color: messageStatusFailedColor
|
|
26
|
-
},
|
|
27
13
|
attachmentBubble: {
|
|
28
14
|
bg_color: white,
|
|
29
|
-
|
|
15
|
+
bg_color_failed: failedBg,
|
|
16
|
+
border_color: '#ebf0f5',
|
|
17
|
+
border_color_failed: failedBdr
|
|
30
18
|
},
|
|
31
|
-
|
|
19
|
+
attachmentBubbleInfo: {
|
|
20
|
+
fileName_color: black,
|
|
21
|
+
fileName_color_failed: failedColor,
|
|
22
|
+
fileSize_color: '#5a616f',
|
|
23
|
+
fileSize_color_failed: failedColor
|
|
24
|
+
},
|
|
25
|
+
// AttachmentIcon: {},
|
|
26
|
+
// Audio: {},
|
|
27
|
+
// AudioBubble: {},
|
|
28
|
+
articleBubble: {
|
|
32
29
|
bg_color: white,
|
|
33
|
-
|
|
30
|
+
bg_color_failed: failedBg,
|
|
34
31
|
border_color: '#ebf0f5',
|
|
35
|
-
|
|
32
|
+
border_color_failed: failedBdr,
|
|
33
|
+
title_color: black,
|
|
34
|
+
title_color_failed: failedColor,
|
|
35
|
+
summary_color: black,
|
|
36
|
+
summary_color_failed: failedColor
|
|
37
|
+
},
|
|
38
|
+
imAutoMessageInfo: {
|
|
39
|
+
text_color: '#737376'
|
|
40
|
+
},
|
|
41
|
+
// IMInfoBubble: {},
|
|
42
|
+
imIntegrationIcon,
|
|
43
|
+
// IMMessage: {},
|
|
44
|
+
// IMMessageContent: {},
|
|
45
|
+
imMessageMeta: {
|
|
46
|
+
time_color: '#5a616f'
|
|
47
|
+
},
|
|
48
|
+
imPermaLink: {
|
|
49
|
+
url_color: primaryOrange
|
|
36
50
|
},
|
|
51
|
+
// IMReplyBubble: {},
|
|
52
|
+
// IMTextBubble: {},
|
|
37
53
|
imageBubble: {
|
|
38
|
-
bg_color: white
|
|
54
|
+
bg_color: white,
|
|
55
|
+
bg_color_failed: failedBg,
|
|
56
|
+
alt_text_color: black,
|
|
57
|
+
alt_text_color_failed: failedColor
|
|
39
58
|
},
|
|
59
|
+
// IMReplyBubble: {},
|
|
60
|
+
// InfoBubble: {},
|
|
61
|
+
// LazyLoadImage: {},
|
|
40
62
|
locationBubble: {
|
|
41
63
|
bg_color: white,
|
|
42
|
-
|
|
43
|
-
border_color: '#ebf0f5'
|
|
64
|
+
bg_color_failed: failedBg,
|
|
65
|
+
border_color: '#ebf0f5',
|
|
66
|
+
border_color_failed: failedBdr,
|
|
67
|
+
url_color: primaryOrange,
|
|
68
|
+
url_color_failed: failedUrlColor
|
|
44
69
|
},
|
|
45
|
-
|
|
70
|
+
// MediaBubbleWrapper: {},
|
|
71
|
+
// Message: {},
|
|
72
|
+
// MessageAction: {},
|
|
73
|
+
// MessageActions: {},
|
|
74
|
+
// MessageActionsMore: {},
|
|
75
|
+
// MessageActionsWrapper: {},
|
|
76
|
+
// MessageAvatar: {},
|
|
77
|
+
messageBox: {
|
|
78
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
79
|
+
outgoing_bg_color: '#fdf5ef',
|
|
80
|
+
bg_color: '#f1f7fe',
|
|
81
|
+
failed_bg_color: failedBgWrapper,
|
|
82
|
+
text_color: messagetextColor
|
|
83
|
+
},
|
|
84
|
+
messageBubble: {
|
|
85
|
+
active_bg_color: bubbleActiveBgColor,
|
|
86
|
+
messageBox_footer_text_color: '#5a616f'
|
|
87
|
+
},
|
|
88
|
+
messageStatus: {
|
|
89
|
+
send_color: messageStatusSendColor,
|
|
90
|
+
read_color: '#e57717',
|
|
91
|
+
failed_color: messageStatusFailedColor
|
|
92
|
+
},
|
|
93
|
+
// MoreActionItem: {},
|
|
94
|
+
// ReplyBubble: {},
|
|
95
|
+
replyBubbleContent: {
|
|
46
96
|
bg_color: white,
|
|
47
|
-
|
|
48
|
-
border_color: '#ebf0f5'
|
|
97
|
+
bg_color_failed: failedBg,
|
|
98
|
+
border_color: '#ebf0f5',
|
|
99
|
+
border_color_failed: failedBdr,
|
|
100
|
+
line_color: '#cddbf2',
|
|
101
|
+
line_color_failed: failedLine,
|
|
102
|
+
sender_color: black,
|
|
103
|
+
sender_color_failed: failedColor,
|
|
104
|
+
content_color: '#5a616f',
|
|
105
|
+
content_color_failed: failedColor
|
|
49
106
|
},
|
|
50
|
-
|
|
51
|
-
|
|
107
|
+
replyBubbleHeader: {
|
|
108
|
+
text_color: black,
|
|
109
|
+
text_color_failed: failedColor,
|
|
110
|
+
time_color: '#61667a',
|
|
111
|
+
time_color_failed: failedColor
|
|
52
112
|
},
|
|
53
113
|
textBubble: {
|
|
114
|
+
text_color: black,
|
|
115
|
+
text_color_failed: failedColor,
|
|
54
116
|
see_more_color: primaryOrange,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
117
|
+
see_more_color_failed: failedUrlColor,
|
|
118
|
+
url_color: primaryOrange,
|
|
119
|
+
url_color_failed: failedUrlColor
|
|
120
|
+
} // Video: {},
|
|
121
|
+
// VideoBubble: {}
|
|
122
|
+
|
|
60
123
|
}
|
|
61
124
|
};
|
|
@@ -1,61 +1,124 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryRed, white } from './commonColorVariable';
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, messagetextColor, primaryRed, white, black, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor } from './commonColorVariable';
|
|
3
|
+
import { imIntegrationIcon } from '../commonThemeColorVariable';
|
|
3
4
|
export default {
|
|
4
5
|
library: 'chat_components',
|
|
5
6
|
variables: {
|
|
6
|
-
|
|
7
|
-
active_bg_color: bubbleActiveBgColor,
|
|
8
|
-
messageBox_footer_text_color: '#5a616f'
|
|
9
|
-
},
|
|
10
|
-
messageBox: {
|
|
11
|
-
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
-
outgoing_bg_color: '#fdf3f3',
|
|
13
|
-
bg_color: '#f1f7fe',
|
|
14
|
-
failed_bg_color: '#fcebeb',
|
|
15
|
-
text_color: messagetextColor
|
|
16
|
-
},
|
|
7
|
+
// ActionIcon: {},
|
|
17
8
|
actionIconWrapper: {
|
|
18
9
|
color: actionIconWrapperColor,
|
|
19
10
|
bg_color: '#fdf3f3',
|
|
20
11
|
border_color: '#f8d7d7'
|
|
21
12
|
},
|
|
22
|
-
messageStatus: {
|
|
23
|
-
send_color: messageStatusSendColor,
|
|
24
|
-
read_color: '#de3535',
|
|
25
|
-
failed_color: messageStatusFailedColor
|
|
26
|
-
},
|
|
27
13
|
attachmentBubble: {
|
|
28
14
|
bg_color: white,
|
|
29
|
-
|
|
15
|
+
bg_color_failed: failedBg,
|
|
16
|
+
border_color: '#ebf0f5',
|
|
17
|
+
border_color_failed: failedBdr
|
|
30
18
|
},
|
|
31
|
-
|
|
19
|
+
attachmentBubbleInfo: {
|
|
20
|
+
fileName_color: black,
|
|
21
|
+
fileName_color_failed: failedColor,
|
|
22
|
+
fileSize_color: '#5a616f',
|
|
23
|
+
fileSize_color_failed: failedColor
|
|
24
|
+
},
|
|
25
|
+
// AttachmentIcon: {},
|
|
26
|
+
// Audio: {},
|
|
27
|
+
// AudioBubble: {},
|
|
28
|
+
articleBubble: {
|
|
32
29
|
bg_color: white,
|
|
33
|
-
|
|
30
|
+
bg_color_failed: failedBg,
|
|
34
31
|
border_color: '#ebf0f5',
|
|
35
|
-
|
|
32
|
+
border_color_failed: failedBdr,
|
|
33
|
+
title_color: black,
|
|
34
|
+
title_color_failed: failedColor,
|
|
35
|
+
summary_color: black,
|
|
36
|
+
summary_color_failed: failedColor
|
|
37
|
+
},
|
|
38
|
+
imAutoMessageInfo: {
|
|
39
|
+
text_color: '#737376'
|
|
40
|
+
},
|
|
41
|
+
// IMInfoBubble: {},
|
|
42
|
+
imIntegrationIcon,
|
|
43
|
+
// IMMessage: {},
|
|
44
|
+
// IMMessageContent: {},
|
|
45
|
+
imMessageMeta: {
|
|
46
|
+
time_color: '#5a616f'
|
|
47
|
+
},
|
|
48
|
+
imPermaLink: {
|
|
49
|
+
url_color: primaryRed
|
|
36
50
|
},
|
|
51
|
+
// IMReplyBubble: {},
|
|
52
|
+
// IMTextBubble: {},
|
|
37
53
|
imageBubble: {
|
|
38
|
-
bg_color: white
|
|
54
|
+
bg_color: white,
|
|
55
|
+
bg_color_failed: failedBg,
|
|
56
|
+
alt_text_color: black,
|
|
57
|
+
alt_text_color_failed: failedColor
|
|
39
58
|
},
|
|
59
|
+
// IMReplyBubble: {},
|
|
60
|
+
// InfoBubble: {},
|
|
61
|
+
// LazyLoadImage: {},
|
|
40
62
|
locationBubble: {
|
|
41
63
|
bg_color: white,
|
|
42
|
-
|
|
43
|
-
border_color: '#ebf0f5'
|
|
64
|
+
bg_color_failed: failedBg,
|
|
65
|
+
border_color: '#ebf0f5',
|
|
66
|
+
border_color_failed: failedBdr,
|
|
67
|
+
url_color: primaryRed,
|
|
68
|
+
url_color_failed: failedUrlColor
|
|
44
69
|
},
|
|
45
|
-
|
|
70
|
+
// MediaBubbleWrapper: {},
|
|
71
|
+
// Message: {},
|
|
72
|
+
// MessageAction: {},
|
|
73
|
+
// MessageActions: {},
|
|
74
|
+
// MessageActionsMore: {},
|
|
75
|
+
// MessageActionsWrapper: {},
|
|
76
|
+
// MessageAvatar: {},
|
|
77
|
+
messageBox: {
|
|
78
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
79
|
+
outgoing_bg_color: '#fdf3f3',
|
|
80
|
+
bg_color: '#f1f7fe',
|
|
81
|
+
failed_bg_color: failedBgWrapper,
|
|
82
|
+
text_color: messagetextColor
|
|
83
|
+
},
|
|
84
|
+
messageBubble: {
|
|
85
|
+
active_bg_color: bubbleActiveBgColor,
|
|
86
|
+
messageBox_footer_text_color: '#5a616f'
|
|
87
|
+
},
|
|
88
|
+
messageStatus: {
|
|
89
|
+
send_color: messageStatusSendColor,
|
|
90
|
+
read_color: '#de3535',
|
|
91
|
+
failed_color: messageStatusFailedColor
|
|
92
|
+
},
|
|
93
|
+
// MoreActionItem: {},
|
|
94
|
+
// ReplyBubble: {},
|
|
95
|
+
replyBubbleContent: {
|
|
46
96
|
bg_color: white,
|
|
47
|
-
|
|
48
|
-
border_color: '#ebf0f5'
|
|
97
|
+
bg_color_failed: failedBg,
|
|
98
|
+
border_color: '#ebf0f5',
|
|
99
|
+
border_color_failed: failedBdr,
|
|
100
|
+
line_color: '#cddbf2',
|
|
101
|
+
line_color_failed: failedLine,
|
|
102
|
+
sender_color: black,
|
|
103
|
+
sender_color_failed: failedColor,
|
|
104
|
+
content_color: '#5a616f',
|
|
105
|
+
content_color_failed: failedColor
|
|
49
106
|
},
|
|
50
|
-
|
|
51
|
-
|
|
107
|
+
replyBubbleHeader: {
|
|
108
|
+
text_color: black,
|
|
109
|
+
text_color_failed: failedColor,
|
|
110
|
+
time_color: '#61667a',
|
|
111
|
+
time_color_failed: failedColor
|
|
52
112
|
},
|
|
53
113
|
textBubble: {
|
|
114
|
+
text_color: black,
|
|
115
|
+
text_color_failed: failedColor,
|
|
54
116
|
see_more_color: primaryRed,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
117
|
+
see_more_color_failed: failedUrlColor,
|
|
118
|
+
url_color: primaryRed,
|
|
119
|
+
url_color_failed: failedUrlColor
|
|
120
|
+
} // Video: {},
|
|
121
|
+
// VideoBubble: {}
|
|
122
|
+
|
|
60
123
|
}
|
|
61
124
|
};
|