@zohoim/chat-components 1.1.0-beta.3 → 1.1.1
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 +4 -0
- package/es/ActionIconWrapper/ActionIconWrapper.js +1 -4
- package/es/AttachmentHandler/AttachmentHandler.js +0 -3
- package/es/AttachmentHandler/css/AttachmentHandler.module.css +2 -2
- package/es/AttachmentPreviewBody/css/AttachmentPreviewBody.module.css +8 -4
- package/es/AttachmentPreviewHeader/css/AttachmentPreviewHeader.module.css +4 -4
- package/es/Emoji/Emoji.js +1 -4
- package/es/EmojiPopup/EmojiPopup.js +1 -4
- package/es/EmojiPopup/css/EmojiPopup.module.css +2 -2
- package/es/EmojisFooter/css/EmojisFooter.module.css +2 -2
- package/es/EmojisHeader/css/EmojisHeader.module.css +3 -2
- package/es/MessageBubble/MessageBubble.js +4 -20
- 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 +133 -0
- package/es/Theme/themeVariables/dark/commonColorVariable.js +35 -0
- package/es/Theme/themeVariables/dark/greenTheme.js +132 -0
- package/es/Theme/themeVariables/dark/orangeTheme.js +132 -0
- package/es/Theme/themeVariables/dark/redTheme.js +132 -0
- package/es/Theme/themeVariables/dark/yellowTheme.js +132 -0
- package/es/Theme/themeVariables/light/blueTheme.js +135 -0
- package/es/Theme/themeVariables/light/commonColorVariable.js +54 -0
- package/es/Theme/themeVariables/light/greenTheme.js +131 -0
- package/es/Theme/themeVariables/light/orangeTheme.js +131 -0
- package/es/Theme/themeVariables/light/redTheme.js +131 -0
- package/es/Theme/themeVariables/light/yellowTheme.js +131 -0
- package/es/Theme/themeVariables/pureDark/blueTheme.js +132 -0
- package/es/Theme/themeVariables/pureDark/commonColorVariable.js +37 -0
- package/es/Theme/themeVariables/pureDark/greenTheme.js +132 -0
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +132 -0
- package/es/Theme/themeVariables/pureDark/redTheme.js +132 -0
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +132 -0
- package/es/Theme/utils/getThemeConfigurations.js +55 -1
- package/es/im/IMIntegrationIcon/css/IMIntegrationIcon.module.css +2 -2
- package/es/im/ReplyEditor/css/ReplyEditor.module.css +4 -4
- package/package.json +11 -18
- package/assets/Appearance/dark/mode/General_DarkMode.module.css +0 -92
- package/assets/Appearance/dark/themes/blue/blue_General_DarkTheme.module.css +0 -40
- package/assets/Appearance/dark/themes/green/green_General_DarkTheme.module.css +0 -40
- package/assets/Appearance/dark/themes/orange/orange_General_DarkTheme.module.css +0 -40
- package/assets/Appearance/dark/themes/red/red_General_DarkTheme.module.css +0 -40
- package/assets/Appearance/dark/themes/yellow/yellow_General_DarkTheme.module.css +0 -40
- package/assets/Appearance/light/mode/General_LightMode.module.css +0 -92
- package/assets/Appearance/light/themes/blue/blue_General_LightTheme.module.css +0 -40
- package/assets/Appearance/light/themes/green/green_General_LightTheme.module.css +0 -40
- package/assets/Appearance/light/themes/orange/orange_General_LightTheme.module.css +0 -40
- package/assets/Appearance/light/themes/red/red_General_LightTheme.module.css +0 -40
- package/assets/Appearance/light/themes/yellow/yellow_General_LightTheme.module.css +0 -40
- package/assets/Appearance/pureDark/mode/General_PureDarkMode.module.css +0 -92
- package/assets/Appearance/pureDark/themes/blue/blue_General_PureDarkTheme.module.css +0 -40
- package/assets/Appearance/pureDark/themes/green/green_General_PureDarkTheme.module.css +0 -40
- package/assets/Appearance/pureDark/themes/orange/orange_General_PureDarkTheme.module.css +0 -40
- package/assets/Appearance/pureDark/themes/red/red_General_PureDarkTheme.module.css +0 -40
- package/assets/Appearance/pureDark/themes/yellow/yellow_General_PureDarkTheme.module.css +0 -40
- package/lib/index.js +0 -538
package/README.md
CHANGED
|
@@ -10,6 +10,10 @@ In this Library, We Provide Some Basic Message Components to Build Your Chat App
|
|
|
10
10
|
|
|
11
11
|
> import MessageBubble from '@zohoim/chat-components/es/MessageBubble/MessageBubble’;
|
|
12
12
|
|
|
13
|
+
# 1.1.1
|
|
14
|
+
|
|
15
|
+
- **@zohoim/chat-components-utils** package updated
|
|
16
|
+
|
|
13
17
|
# 1.1.0
|
|
14
18
|
|
|
15
19
|
- **Editor** new component added
|
|
@@ -53,13 +53,10 @@ export default function ActionIconWrapper(props) {
|
|
|
53
53
|
id
|
|
54
54
|
});
|
|
55
55
|
return icon ? /*#__PURE__*/React.createElement("div", {
|
|
56
|
-
"aria-label": title,
|
|
57
56
|
className: actionIconWrapperClass,
|
|
58
57
|
"data-title": title,
|
|
59
58
|
onClick: onClick,
|
|
60
|
-
onMouseEnter: onMouseEnter
|
|
61
|
-
role: "menuitem",
|
|
62
|
-
tabIndex: 0
|
|
59
|
+
onMouseEnter: onMouseEnter
|
|
63
60
|
}, icon) : null;
|
|
64
61
|
}
|
|
65
62
|
ActionIconWrapper.propTypes = actionIconWrapperPropTypes;
|
|
@@ -71,9 +71,6 @@ export default function AttachmentHandler(props) {
|
|
|
71
71
|
return /*#__PURE__*/React.createElement(Container, {
|
|
72
72
|
alignBox: "column"
|
|
73
73
|
}, customIcon || /*#__PURE__*/React.createElement(IconButton, {
|
|
74
|
-
a11y: {
|
|
75
|
-
ariaLabel: iconTitle
|
|
76
|
-
},
|
|
77
74
|
className: newStyle.iconButton,
|
|
78
75
|
iconClass: newStyle.icon,
|
|
79
76
|
iconName: iconName,
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
.icon :global .path1:before {
|
|
21
|
-
color: var(--
|
|
21
|
+
color: var(--imlib_chat_components_emojiPopup_ttIcon_path1_color) !important;
|
|
22
22
|
opacity: 1;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.icon :global .path2:before {
|
|
26
|
-
color: var(--
|
|
26
|
+
color: var(--imlib_chat_components_emojiPopup_ttIcon_path2_color) !important;
|
|
27
27
|
}
|
|
@@ -22,16 +22,21 @@
|
|
|
22
22
|
max-height: var(--zd_size48) !important;
|
|
23
23
|
background-color: transparent !important;
|
|
24
24
|
border: 0 !important;
|
|
25
|
-
border-bottom: 1px solid
|
|
25
|
+
border-bottom: 1px solid
|
|
26
|
+
var(--imlib_chat_components_attachmentPreviewBody_editor_border_color) !important;
|
|
26
27
|
padding: 0 !important;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
.editableDiv:hover {
|
|
30
|
-
border-color: var(
|
|
31
|
+
border-color: var(
|
|
32
|
+
--imlib_chat_components_attachmentPreviewBody_editor_border_hover_color
|
|
33
|
+
) !important;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
.editableDiv:focus {
|
|
34
|
-
border-color: var(
|
|
37
|
+
border-color: var(
|
|
38
|
+
--imlib_chat_components_attachmentPreviewBody_editor_border_active_color
|
|
39
|
+
) !important;
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
.imgContent,
|
|
@@ -44,7 +49,6 @@
|
|
|
44
49
|
.imgContent, .zoomContent {
|
|
45
50
|
background-color: var(--imlib_chat_components_attachmentPreviewBody_bg_color);
|
|
46
51
|
padding: var(--zd_size40);
|
|
47
|
-
background-color: var(--imlib_chat_components_attachmentPreview_body_bg_color);
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
[dir=ltr] .imgContent, [dir=ltr] .zoomContent {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
.imgPreviewerheader {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: var(
|
|
5
|
-
--
|
|
5
|
+
--imlib_chat_components_attachmentPreviewHeader_bg_color
|
|
6
6
|
);
|
|
7
7
|
padding: var(--zd_size15) var(--zd_size40);
|
|
8
|
-
border-bottom: var(--zd_size1) solid var(--
|
|
8
|
+
border-bottom: var(--zd_size1) solid var(--zd_im_common_border);
|
|
9
9
|
}
|
|
10
10
|
[dir=ltr] .imgPreviewerheader {
|
|
11
11
|
border-top-left-radius: var(--zd_size5);
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.imgName {
|
|
20
|
-
color: var(--
|
|
20
|
+
color: var(--imlib_chat_components_attachmentPreviewHeader_name_color);
|
|
21
21
|
font-size: var(--zd_font_size17);
|
|
22
22
|
font-family: var(--zd_semibold);
|
|
23
23
|
composes: dotted from '../../css/common.module.css';
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
.imgSize {
|
|
29
29
|
font-size: var(--zd_font_size13);
|
|
30
|
-
color: var(--
|
|
30
|
+
color: var(--imlib_chat_components_attachmentPreviewHeader_size_color);
|
|
31
31
|
composes: dotted from '../../css/common.module.css';
|
|
32
32
|
max-width: var(--zd_size150);
|
|
33
33
|
}
|
package/es/Emoji/Emoji.js
CHANGED
|
@@ -58,11 +58,8 @@ export default function Emoji(props) {
|
|
|
58
58
|
});
|
|
59
59
|
return /*#__PURE__*/React.createElement("span", {
|
|
60
60
|
ref: eleRef,
|
|
61
|
-
"aria-label": title,
|
|
62
61
|
className: emojiClass,
|
|
63
|
-
onClick: onSelect
|
|
64
|
-
role: "button",
|
|
65
|
-
tabIndex: 0
|
|
62
|
+
onClick: onSelect
|
|
66
63
|
}, /*#__PURE__*/React.createElement("span", {
|
|
67
64
|
className: newStyle.emojiContent,
|
|
68
65
|
"data-smiley": emojiName,
|
|
@@ -83,10 +83,7 @@ function EmojiPopupComp(props) {
|
|
|
83
83
|
isActive: isPopupOpen,
|
|
84
84
|
onClick: onTogglePopup,
|
|
85
85
|
title: tooltip,
|
|
86
|
-
...iconProps
|
|
87
|
-
a11y: {
|
|
88
|
-
ariaLabel: tooltip
|
|
89
|
-
}
|
|
86
|
+
...iconProps
|
|
90
87
|
}), isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
|
|
91
88
|
boxPosition: position,
|
|
92
89
|
customClass: popupClass,
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.icon :global .path1:before {
|
|
44
|
-
color: var(--
|
|
44
|
+
color: var(--imlib_chat_components_emojiPopup_ttIcon_path1_color) !important;
|
|
45
45
|
opacity: 1;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.icon :global .path2:before {
|
|
49
|
-
color: var(--
|
|
49
|
+
color: var(--imlib_chat_components_emojiPopup_ttIcon_path2_color) !important;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.icon :global .path2{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.footerTab {
|
|
2
2
|
position: relative;
|
|
3
|
-
border-top: 1px solid var(--
|
|
3
|
+
border-top: 1px solid var(--imlib_chat_components_emojiFooter_border_color);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.tabIcon {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
height: var(--zd_size2) ;
|
|
22
22
|
transition: 0.3s ease;
|
|
23
23
|
width: 100% ;
|
|
24
|
-
background-color: var(--
|
|
24
|
+
background-color: var(--imlib_chat_components_emojiFooter_tabLine);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
[dir=ltr] .tabLine {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
padding: var(--zd_size10) ;
|
|
3
|
-
border-bottom: 1px solid
|
|
3
|
+
border-bottom: 1px solid
|
|
4
|
+
var(--imlib_chat_components_emojisHeader_border_color);
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
.emojisSearch {
|
|
7
8
|
position: relative;
|
|
8
|
-
background-color: var(--
|
|
9
|
+
background-color: var(--imlib_chat_components_emojisHeader_bg_color);
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.searchInput {
|
|
@@ -20,7 +20,6 @@ import { Box } from '@zohodesk/components/es/Layout';
|
|
|
20
20
|
/** ** Styles *** */
|
|
21
21
|
|
|
22
22
|
import style from "./css/MessageBubble.module.css";
|
|
23
|
-
import generateUniqueId from '@zohoim/chat-components-utils/es/common/generateUniqueId';
|
|
24
23
|
export default function MessageBubble(props) {
|
|
25
24
|
const {
|
|
26
25
|
renderMessageBox,
|
|
@@ -40,9 +39,7 @@ export default function MessageBubble(props) {
|
|
|
40
39
|
const {
|
|
41
40
|
onMouseEnter,
|
|
42
41
|
onMouseLeave,
|
|
43
|
-
isRenderMessageActions
|
|
44
|
-
onFocus,
|
|
45
|
-
onBlur
|
|
42
|
+
isRenderMessageActions
|
|
46
43
|
} = useMessageBubbleAction(props);
|
|
47
44
|
/* css classnames added based on logic */
|
|
48
45
|
|
|
@@ -70,9 +67,7 @@ export default function MessageBubble(props) {
|
|
|
70
67
|
const messageActionsRenderer = useCallback(() => {
|
|
71
68
|
const messageActions = isRenderMessageActions ? renderHandler(renderMessageActions)() : null;
|
|
72
69
|
return messageActions ? /*#__PURE__*/React.createElement(Box, {
|
|
73
|
-
className: messageActionWrapperClass
|
|
74
|
-
role: "button",
|
|
75
|
-
tabIndex: "0"
|
|
70
|
+
className: messageActionWrapperClass
|
|
76
71
|
}, messageActions) : null;
|
|
77
72
|
}, [isRenderMessageActions, renderMessageActions, messageActionWrapperClass]);
|
|
78
73
|
/* Message Box Render */
|
|
@@ -89,16 +84,12 @@ export default function MessageBubble(props) {
|
|
|
89
84
|
|
|
90
85
|
const messageBox = useMemo(() => messageBoxRenderer(), [messageBoxRenderer]);
|
|
91
86
|
const messageActions = useMemo(() => messageActionsRenderer(), [messageActionsRenderer]);
|
|
92
|
-
const uniqueId = generateUniqueId();
|
|
93
87
|
const messageBoxWithActionsRenderer = useCallback(() => messageBox || messageActions ? /*#__PURE__*/React.createElement(Box, {
|
|
94
88
|
className: newStyle.messageContainer
|
|
95
89
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
96
90
|
className: newStyle.messageBoxWrapper,
|
|
97
91
|
flexible: true
|
|
98
|
-
}, messageBox,
|
|
99
|
-
id: uniqueId,
|
|
100
|
-
role: "menu"
|
|
101
|
-
}, messageActions))) : null, [messageBox, messageActions, newStyle.messageContainer, newStyle.messageBoxWrapper, uniqueId]);
|
|
92
|
+
}, messageBox, messageActions)) : null, [messageBox, messageActions, newStyle.messageContainer, newStyle.messageBoxWrapper]);
|
|
102
93
|
/* Message Footer Render */
|
|
103
94
|
|
|
104
95
|
const messageFooterRenderer = useCallback(() => {
|
|
@@ -115,16 +106,9 @@ export default function MessageBubble(props) {
|
|
|
115
106
|
/* Construct Layout */
|
|
116
107
|
|
|
117
108
|
const messageLayout = /*#__PURE__*/React.createElement("div", {
|
|
118
|
-
"aria-controls": uniqueId,
|
|
119
|
-
"aria-expanded": isRenderMessageActions ? 'true' : 'false',
|
|
120
|
-
"aria-haspopup": "true",
|
|
121
109
|
className: bubbleClass,
|
|
122
|
-
onBlur: onBlur,
|
|
123
|
-
onFocus: onFocus,
|
|
124
110
|
onMouseEnter: onMouseEnter,
|
|
125
|
-
onMouseLeave: onMouseLeave
|
|
126
|
-
role: "button",
|
|
127
|
-
tabIndex: 0
|
|
111
|
+
onMouseLeave: onMouseLeave
|
|
128
112
|
}, messageSender, messageBoxWithActions, messageFooter);
|
|
129
113
|
return messageLayout;
|
|
130
114
|
}
|
package/es/Theme/ThemeAssets.js
CHANGED
|
@@ -67,24 +67,6 @@ import '@zohodesk/variables/assets/fontsizeVariables.module.css';
|
|
|
67
67
|
import '@zohodesk/variables/es/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";
|
|
88
70
|
export default function DeskAssets(props) {
|
|
89
71
|
const {
|
|
90
72
|
children
|
package/es/Theme/ThemeWrapper.js
CHANGED
|
@@ -42,22 +42,20 @@ export default function ThemeWrapper(props) {
|
|
|
42
42
|
/** ** ThemeConfigurations Handling *** */
|
|
43
43
|
|
|
44
44
|
const {
|
|
45
|
+
themeConfigurations,
|
|
45
46
|
mode,
|
|
46
47
|
theme
|
|
47
48
|
} = getThemeConfigurations({
|
|
48
49
|
mode: propMode,
|
|
49
50
|
theme: propTheme
|
|
50
51
|
});
|
|
51
|
-
const configurations = propThemeConfigurations;
|
|
52
|
+
const configurations = propThemeConfigurations || themeConfigurations;
|
|
52
53
|
/** ** Style Handling *** */
|
|
53
54
|
|
|
54
55
|
const selector = `#${styleTagId}`;
|
|
55
56
|
const prefix = '--imlib_';
|
|
56
57
|
const configuration = useMemo(() => [configurations], [configurations]);
|
|
57
|
-
const customizedVariables = useMemo(() =>
|
|
58
|
-
const cssVariables = propThemeConfigurations ? getCustomizedCssVariables(configuration, prefix) : null;
|
|
59
|
-
return cssVariables;
|
|
60
|
-
}, [configuration, prefix, propThemeConfigurations]);
|
|
58
|
+
const customizedVariables = useMemo(() => getCustomizedCssVariables(configuration, prefix), [configuration, prefix]);
|
|
61
59
|
const wrapperDivProps = getWrapperDivProps({
|
|
62
60
|
modeKey,
|
|
63
61
|
themeKey,
|
|
@@ -73,9 +71,9 @@ export default function ThemeWrapper(props) {
|
|
|
73
71
|
}), /*#__PURE__*/React.createElement("div", {
|
|
74
72
|
"data-portal": EDITOR_POPUP_TARGET_PORTAL
|
|
75
73
|
})), []);
|
|
76
|
-
const renderStyle = useCallback(() =>
|
|
74
|
+
const renderStyle = useCallback(() => /*#__PURE__*/React.createElement("style", {
|
|
77
75
|
id: "zoho-im-variables"
|
|
78
|
-
}, `${selector}{${customizedVariables}}`)
|
|
76
|
+
}, `${selector}{${customizedVariables}}`), [selector, customizedVariables]);
|
|
79
77
|
const renderAssets = useCallback(() => /*#__PURE__*/React.createElement(React.Fragment, null, needThemeAssets ? /*#__PURE__*/React.createElement(ThemeAssets, null) : null, needTooltip ? /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
80
78
|
containerRef: containerRef.current,
|
|
81
79
|
customStyle: tooltipCustomStyle,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const imIntegrationIcon = {
|
|
2
|
+
path0_color: '#ffffff40',
|
|
3
|
+
path1_color: '#fff',
|
|
4
|
+
whatsapp_color: '#24d366',
|
|
5
|
+
telegram_color: '#4fa7d8',
|
|
6
|
+
wechat_color: '#2dc100',
|
|
7
|
+
line_color: '#01b901',
|
|
8
|
+
twillio_color: '#f22f46',
|
|
9
|
+
instagram_color: 'linear-gradient(221.05deg,#933ab9 11.59%,#d12f8c 50.45%,#fdbb59 85.46%)',
|
|
10
|
+
asap_color: 'linear-gradient(180deg, #A375FF 0%, #7732FF 100%)',
|
|
11
|
+
fb_color: '#006aff'
|
|
12
|
+
};
|
|
13
|
+
export const imTtIcon = {
|
|
14
|
+
path0_color: '#ffffff40',
|
|
15
|
+
path1_color: '#fff'
|
|
16
|
+
};
|
|
17
|
+
export const messagetextColor = '#e2e4e6';
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryBlue, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, replyEditor, emojiPopup, emojisHeader, attachmentPreviewHeader } 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: '#2c3b4d',
|
|
10
|
+
border_color: '#3f536b'
|
|
11
|
+
},
|
|
12
|
+
attachmentBubble: {
|
|
13
|
+
bg_color: '#232b38',
|
|
14
|
+
bg_color_failed: failedBg,
|
|
15
|
+
border_color: '#2d3748',
|
|
16
|
+
border_color_failed: failedBdr
|
|
17
|
+
},
|
|
18
|
+
attachmentBubbleInfo: {
|
|
19
|
+
fileName_color: '#e2e4e6',
|
|
20
|
+
fileName_color_failed: failedColor,
|
|
21
|
+
fileSize_color: '#788190',
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
23
|
+
},
|
|
24
|
+
articleBubble: {
|
|
25
|
+
bg_color: '#232b38',
|
|
26
|
+
bg_color_failed: failedBg,
|
|
27
|
+
border_color: '#2d3748',
|
|
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: '#828994'
|
|
36
|
+
},
|
|
37
|
+
imIntegrationIcon,
|
|
38
|
+
imTtIcon,
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
42
|
+
imMessageMeta: {
|
|
43
|
+
time_color: '#a8b0bd'
|
|
44
|
+
},
|
|
45
|
+
imPermaLink: {
|
|
46
|
+
url_color: '#479dff'
|
|
47
|
+
},
|
|
48
|
+
imageBubble: {
|
|
49
|
+
bg_color: '#232b38',
|
|
50
|
+
bg_color_failed: failedBg,
|
|
51
|
+
alt_text_color: '#e2e4e6',
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#2d3748',
|
|
54
|
+
border_color_failed: failedBdr
|
|
55
|
+
},
|
|
56
|
+
locationBubble: {
|
|
57
|
+
bg_color: '#232b38',
|
|
58
|
+
bg_color_failed: failedBg,
|
|
59
|
+
border_color: '#2d3748',
|
|
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: '#2c3b4d',
|
|
67
|
+
bg_color: '#f1f7fe',
|
|
68
|
+
failed_bg_color: failedBgWrapper,
|
|
69
|
+
text_color: messagetextColor,
|
|
70
|
+
failed_text_color: '#000'
|
|
71
|
+
},
|
|
72
|
+
messageBubble: {
|
|
73
|
+
active_bg_color: bubbleActiveBgColor,
|
|
74
|
+
messageBox_footer_text_color: '#5a616f'
|
|
75
|
+
},
|
|
76
|
+
messageStatus: {
|
|
77
|
+
send_color: messageStatusSendColor,
|
|
78
|
+
read_color: '#479dff',
|
|
79
|
+
failed_color: messageStatusFailedColor
|
|
80
|
+
},
|
|
81
|
+
replyBubble: {
|
|
82
|
+
border_color: '#2d3748',
|
|
83
|
+
border_color_failed: failedBdr
|
|
84
|
+
},
|
|
85
|
+
replyBubbleContent: {
|
|
86
|
+
bg_color: '#232b38',
|
|
87
|
+
bg_color_failed: failedBg,
|
|
88
|
+
border_color: '#2d3748',
|
|
89
|
+
border_color_failed: failedBdr,
|
|
90
|
+
line_color: '#cddbf2',
|
|
91
|
+
line_color_failed: failedLine,
|
|
92
|
+
sender_color: '#e2e4e6',
|
|
93
|
+
sender_color_failed: failedColor,
|
|
94
|
+
content_color: '#e2e4e6',
|
|
95
|
+
content_color_failed: failedColor
|
|
96
|
+
},
|
|
97
|
+
replyBubbleHeader: {
|
|
98
|
+
text_color: '#e2e4e6',
|
|
99
|
+
text_color_failed: failedColor,
|
|
100
|
+
time_color: '#828994',
|
|
101
|
+
time_color_failed: failedColor
|
|
102
|
+
},
|
|
103
|
+
textBubble: {
|
|
104
|
+
text_color: '#e2e4e6',
|
|
105
|
+
text_color_failed: failedColor,
|
|
106
|
+
see_more_color: primaryBlue,
|
|
107
|
+
see_more_color_failed: failedUrlColor,
|
|
108
|
+
url_color: primaryBlue,
|
|
109
|
+
url_color_failed: failedUrlColor
|
|
110
|
+
},
|
|
111
|
+
videoBubble: {
|
|
112
|
+
border_color: '#2d3748',
|
|
113
|
+
border_color_failed: failedBdr
|
|
114
|
+
},
|
|
115
|
+
emojiFooter: {
|
|
116
|
+
tabLine: primaryBlue,
|
|
117
|
+
border_color: '#2d3748'
|
|
118
|
+
},
|
|
119
|
+
replyEditor,
|
|
120
|
+
emojiPopup: { ...emojiPopup,
|
|
121
|
+
ttIcon_path1_color: '#5f6478',
|
|
122
|
+
ttIcon_path2_color: 'var(--dot_platinum)'
|
|
123
|
+
},
|
|
124
|
+
emojisHeader,
|
|
125
|
+
attachmentPreviewHeader,
|
|
126
|
+
attachmentPreviewBody: {
|
|
127
|
+
bg_color: '#262f3d',
|
|
128
|
+
editor_border_color: '#3e4d63',
|
|
129
|
+
editor_border_hover_color: '#828994',
|
|
130
|
+
editor_border_active_color: '#479dff'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const incomingBubbleBgColor = '#232b38';
|
|
2
|
+
export const bubbleActiveBgColor = '#1b2e33';
|
|
3
|
+
export const actionIconWrapperColor = '#e2e4e6';
|
|
4
|
+
export const messageStatusSendColor = '#61667a';
|
|
5
|
+
export const messageStatusFailedColor = '#de3535';
|
|
6
|
+
export const primaryBlue = '#479dff';
|
|
7
|
+
export const primaryGreen = '#45a159';
|
|
8
|
+
export const primaryOrange = '#ff801f';
|
|
9
|
+
export const primaryRed = '#e94f4f';
|
|
10
|
+
export const primaryYellow = '#d79835';
|
|
11
|
+
export const failedBgWrapper = '#f4b5bc';
|
|
12
|
+
export const failedBg = '#f6dcdf';
|
|
13
|
+
export const failedBdr = '#eb9ea7';
|
|
14
|
+
export const failedLine = '#eb9ea7';
|
|
15
|
+
export const failedColor = '#000';
|
|
16
|
+
export const failedUrlColor = '#0a73eb';
|
|
17
|
+
export const emojiPopup = {
|
|
18
|
+
bg: '#f1f4f9',
|
|
19
|
+
border: '#f1f4f9',
|
|
20
|
+
titleColor: '#aaa'
|
|
21
|
+
};
|
|
22
|
+
export const replyEditor = {
|
|
23
|
+
bg: '#242b38',
|
|
24
|
+
color: '#e2e4e6',
|
|
25
|
+
placeholder: '#5a616f'
|
|
26
|
+
};
|
|
27
|
+
export const emojisHeader = {
|
|
28
|
+
bg_color: '#283442',
|
|
29
|
+
border_color: '#2d3748'
|
|
30
|
+
};
|
|
31
|
+
export const attachmentPreviewHeader = {
|
|
32
|
+
bg_color: '#232b38',
|
|
33
|
+
name_color: '#e2e4e6',
|
|
34
|
+
size_color: '#a8b0bd'
|
|
35
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconWrapperColor, messageStatusSendColor, messageStatusFailedColor, primaryGreen, failedBgWrapper, failedBg, failedBdr, failedLine, failedColor, failedUrlColor, emojiPopup, replyEditor, emojisHeader, attachmentPreviewHeader } 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: '#26373b',
|
|
10
|
+
border_color: '#2d4e42'
|
|
11
|
+
},
|
|
12
|
+
attachmentBubble: {
|
|
13
|
+
bg_color: '#232b38',
|
|
14
|
+
bg_color_failed: failedBg,
|
|
15
|
+
border_color: '#2d3748',
|
|
16
|
+
border_color_failed: failedBdr
|
|
17
|
+
},
|
|
18
|
+
attachmentBubbleInfo: {
|
|
19
|
+
fileName_color: '#e2e4e6',
|
|
20
|
+
fileName_color_failed: failedColor,
|
|
21
|
+
fileSize_color: '#788190',
|
|
22
|
+
fileSize_color_failed: '#788190'
|
|
23
|
+
},
|
|
24
|
+
articleBubble: {
|
|
25
|
+
bg_color: '#232b38',
|
|
26
|
+
bg_color_failed: failedBg,
|
|
27
|
+
border_color: '#2d3748',
|
|
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: '#828994'
|
|
36
|
+
},
|
|
37
|
+
imIntegrationIcon,
|
|
38
|
+
imTtIcon,
|
|
39
|
+
imMessageContent: {
|
|
40
|
+
text_color: '#a8b0bd'
|
|
41
|
+
},
|
|
42
|
+
imMessageMeta: {
|
|
43
|
+
time_color: '#a8b0bd'
|
|
44
|
+
},
|
|
45
|
+
imPermaLink: {
|
|
46
|
+
url_color: '#45a159'
|
|
47
|
+
},
|
|
48
|
+
imageBubble: {
|
|
49
|
+
bg_color: '#232b38',
|
|
50
|
+
bg_color_failed: failedBg,
|
|
51
|
+
alt_text_color: '#e2e4e6',
|
|
52
|
+
alt_text_color_failed: failedColor,
|
|
53
|
+
border_color: '#2d3748',
|
|
54
|
+
border_color_failed: failedBdr
|
|
55
|
+
},
|
|
56
|
+
locationBubble: {
|
|
57
|
+
bg_color: '#232b38',
|
|
58
|
+
bg_color_failed: failedBg,
|
|
59
|
+
border_color: '#2d3748',
|
|
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: '#26373b',
|
|
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: '#2d3748',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
84
|
+
replyBubbleContent: {
|
|
85
|
+
bg_color: 'hsl(191.43deg 21.65% 13.02%)',
|
|
86
|
+
bg_color_failed: failedBg,
|
|
87
|
+
border_color: '#2d3748',
|
|
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: '#2d3748',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
},
|
|
114
|
+
emojiFooter: {
|
|
115
|
+
tabLine: primaryGreen,
|
|
116
|
+
border_color: '#2d3748'
|
|
117
|
+
},
|
|
118
|
+
emojiPopup: { ...emojiPopup,
|
|
119
|
+
ttIcon_path1_color: '#5f6478',
|
|
120
|
+
ttIcon_path2_color: 'var(--dot_platinum)'
|
|
121
|
+
},
|
|
122
|
+
replyEditor,
|
|
123
|
+
emojisHeader,
|
|
124
|
+
attachmentPreviewHeader,
|
|
125
|
+
attachmentPreviewBody: {
|
|
126
|
+
bg_color: '#262f3d',
|
|
127
|
+
editor_border_color: '#3e4d63',
|
|
128
|
+
editor_border_hover_color: '#828994',
|
|
129
|
+
editor_border_active_color: '#45a159'
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|