@zohoim/chat-components 1.0.9-alpha.0 → 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/ActionIcon/ActionIcon.js +3 -1
- package/es/ActionIcon/props/propTypes.js +2 -1
- package/es/ActionIconWrapper/ActionIconWrapper.js +6 -3
- package/es/ActionIconWrapper/css/ActionIconWrapper.module.css +1 -1
- package/es/ActionIconWrapper/css/cssJSLogic.js +4 -2
- package/es/ActionIconWrapper/props/propTypes.js +2 -1
- package/es/MessageAction/MessageAction.js +2 -0
- package/es/MessageAction/props/propTypes.js +2 -1
- package/es/MessageActions/MessageActions.js +2 -1
- package/es/MessageActionsMore/MessageActionsMore.js +4 -2
- package/es/MessageActionsMore/css/MessageActionsMore.module.css +1 -0
- package/es/MessageActionsWrapper/MessageActionsWrapper.js +1 -0
- package/es/MessageActionsWrapper/css/MessageActionsWrapper.module.css +4 -0
- 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
package/README.md
CHANGED
|
@@ -10,9 +10,9 @@ 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.0.
|
|
13
|
+
# 1.0.9
|
|
14
14
|
|
|
15
|
-
-
|
|
15
|
+
- chat bubble ui issues fixes
|
|
16
16
|
- @zohodesk/components version update
|
|
17
17
|
|
|
18
18
|
# 1.0.6
|
|
@@ -41,7 +41,8 @@ export default function ActionIcon(props) {
|
|
|
41
41
|
id,
|
|
42
42
|
title,
|
|
43
43
|
isDisabled,
|
|
44
|
-
needIconOnly
|
|
44
|
+
needIconOnly,
|
|
45
|
+
isActive
|
|
45
46
|
} = props;
|
|
46
47
|
const {
|
|
47
48
|
actionIconWrapperProps = dummyObject
|
|
@@ -68,6 +69,7 @@ export default function ActionIcon(props) {
|
|
|
68
69
|
}, [iconStyle, id]);
|
|
69
70
|
return needIconOnly ? renderIcon() : /*#__PURE__*/React.createElement(ActionIconWrapper, {
|
|
70
71
|
id: id,
|
|
72
|
+
isActive: isActive,
|
|
71
73
|
isDisabled: isDisabled,
|
|
72
74
|
onClick: onClick,
|
|
73
75
|
onMouseEnter: onMouseEnter,
|
|
@@ -23,7 +23,8 @@ export default function ActionIconWrapper(props) {
|
|
|
23
23
|
onMouseEnter: propOnMouseEnter,
|
|
24
24
|
id,
|
|
25
25
|
title,
|
|
26
|
-
isDisabled
|
|
26
|
+
isDisabled,
|
|
27
|
+
isActive
|
|
27
28
|
} = props;
|
|
28
29
|
const {
|
|
29
30
|
onClick,
|
|
@@ -32,7 +33,8 @@ export default function ActionIconWrapper(props) {
|
|
|
32
33
|
onClick: propOnClick,
|
|
33
34
|
onMouseEnter: propOnMouseEnter,
|
|
34
35
|
id,
|
|
35
|
-
isDisabled
|
|
36
|
+
isDisabled,
|
|
37
|
+
isActive
|
|
36
38
|
});
|
|
37
39
|
/* External CSS Customization */
|
|
38
40
|
|
|
@@ -42,7 +44,8 @@ export default function ActionIconWrapper(props) {
|
|
|
42
44
|
const {
|
|
43
45
|
actionIconWrapperClass
|
|
44
46
|
} = cssJSLogic({
|
|
45
|
-
isDisabled
|
|
47
|
+
isDisabled,
|
|
48
|
+
isActive
|
|
46
49
|
}, newStyle);
|
|
47
50
|
/* Render Icon */
|
|
48
51
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
border-radius: var(--actionIconWrapper-border_radius);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.actionIconWrapper:hover {
|
|
24
|
+
.actionIconWrapper:hover, .actionIconWrapperActive{
|
|
25
25
|
background-color: var(--imlib_chat_components_actionIconWrapper_bg_color);
|
|
26
26
|
border-color: var(--imlib_chat_components_actionIconWrapper_border_color);
|
|
27
27
|
}
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
import { compileClassNames } from '@zohodesk/utils';
|
|
3
3
|
export default function cssJSLogic(props, style) {
|
|
4
4
|
const {
|
|
5
|
-
isDisabled
|
|
5
|
+
isDisabled,
|
|
6
|
+
isActive
|
|
6
7
|
} = props;
|
|
7
8
|
const actionIconWrapperClass = compileClassNames({
|
|
8
9
|
[style.actionIconWrapper]: true,
|
|
9
|
-
[style.disabled]: isDisabled
|
|
10
|
+
[style.disabled]: isDisabled,
|
|
11
|
+
[style.actionIconWrapperActive]: isActive
|
|
10
12
|
});
|
|
11
13
|
return {
|
|
12
14
|
actionIconWrapperClass
|
|
@@ -7,6 +7,7 @@ const actionIconWrapperPropTypes = {
|
|
|
7
7
|
renderIcon: PropTypes.func.isRequired,
|
|
8
8
|
customStyle: PropTypes.object,
|
|
9
9
|
isDisabled: PropTypes.bool,
|
|
10
|
-
title: PropTypes.string
|
|
10
|
+
title: PropTypes.string,
|
|
11
|
+
isActive: PropTypes.bool
|
|
11
12
|
};
|
|
12
13
|
export default actionIconWrapperPropTypes;
|
|
@@ -20,6 +20,7 @@ export default function MessageAction(props) {
|
|
|
20
20
|
customProps,
|
|
21
21
|
closePopup,
|
|
22
22
|
isDisabled,
|
|
23
|
+
isActive,
|
|
23
24
|
needMoreActionItemIcon
|
|
24
25
|
} = props;
|
|
25
26
|
const {
|
|
@@ -50,6 +51,7 @@ export default function MessageAction(props) {
|
|
|
50
51
|
...moreActionItemProps
|
|
51
52
|
}) : /*#__PURE__*/React.createElement(ActionIcon, {
|
|
52
53
|
id: id,
|
|
54
|
+
isActive: isActive,
|
|
53
55
|
isDisabled: isDisabled,
|
|
54
56
|
onClick: onClick,
|
|
55
57
|
onMouseEnter: onMouseEnter,
|
|
@@ -16,6 +16,7 @@ const messageActionPropTypes = {
|
|
|
16
16
|
iconTitle: PropTypes.string,
|
|
17
17
|
isDisabled: PropTypes.bool,
|
|
18
18
|
isShowInMore: PropTypes.bool,
|
|
19
|
-
needMoreActionItemIcon: PropTypes.bool
|
|
19
|
+
needMoreActionItemIcon: PropTypes.bool,
|
|
20
|
+
isActive: PropTypes.bool
|
|
20
21
|
};
|
|
21
22
|
export default messageActionPropTypes;
|
|
@@ -103,8 +103,9 @@ export default function MessageActions(props) {
|
|
|
103
103
|
const renderMoreIcon = useCallback(() => /*#__PURE__*/React.createElement("div", {
|
|
104
104
|
className: newStyle.moreIcon
|
|
105
105
|
}, /*#__PURE__*/React.createElement(MoreIcon, null)), [newStyle.moreIcon]);
|
|
106
|
-
const renderMore = useCallback(
|
|
106
|
+
const renderMore = useCallback(componentProps => /*#__PURE__*/React.createElement(ActionIconWrapper, {
|
|
107
107
|
renderIcon: renderMoreIcon,
|
|
108
|
+
...componentProps,
|
|
108
109
|
...actionIconWrapperProps
|
|
109
110
|
}), [actionIconWrapperProps, renderMoreIcon]);
|
|
110
111
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(MessageActionsWrapper, {
|
|
@@ -40,7 +40,9 @@ function MessageActionsMoreComp(props) {
|
|
|
40
40
|
isAbsolutePositioningNeeded,
|
|
41
41
|
positionsOffset
|
|
42
42
|
} = props;
|
|
43
|
-
const moreIcon = renderHandler(renderMoreIcon)(
|
|
43
|
+
const moreIcon = renderHandler(renderMoreIcon)({
|
|
44
|
+
isActive: isPopupReady
|
|
45
|
+
});
|
|
44
46
|
/* External CSS Customization */
|
|
45
47
|
|
|
46
48
|
const newStyle = useMergeStyle(style, customStyle);
|
|
@@ -91,7 +93,7 @@ function MessageActionsMoreComp(props) {
|
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
const MessageActionsMore = Popup(MessageActionsMoreComp, undefined, undefined, {
|
|
94
|
-
isAbsolutePositioningNeeded:
|
|
96
|
+
isAbsolutePositioningNeeded: true
|
|
95
97
|
});
|
|
96
98
|
MessageActionsMoreComp.defaultProps = messageActionsMoreDefaultProps;
|
|
97
99
|
MessageActionsMoreComp.propTypes = messageActionsMorePropTypes;
|
|
@@ -56,6 +56,7 @@ export default function MessageActionsWrapper(props) {
|
|
|
56
56
|
}), [moreActions, renderMoreIcon, messageActionsMoreProps]);
|
|
57
57
|
const renderRow = useCallback(() => /*#__PURE__*/React.createElement(Container, {
|
|
58
58
|
alignBox: "row",
|
|
59
|
+
className: newStyle.row,
|
|
59
60
|
isCover: false
|
|
60
61
|
}, renderDefaultActions(), isShowMoreIcon ? renderMoreActions() : null), [renderDefaultActions, renderMoreActions, isShowMoreIcon]);
|
|
61
62
|
return /*#__PURE__*/React.createElement("div", {
|
package/es/Theme/ThemeAssets.js
CHANGED
|
@@ -67,24 +67,6 @@ import '@zohodesk/variables/assets/fontsizeVariables.module.css';
|
|
|
67
67
|
import '@zohodesk/variables/lib/fontFamilyVariables.module.css';
|
|
68
68
|
import '@zohodesk/variables/assets/transitionVariables.module.css';
|
|
69
69
|
import '@zohodesk/variables/assets/no_transitionVariables.module.css';
|
|
70
|
-
import "../../assets/Appearance/dark/mode/General_DarkMode.module.css";
|
|
71
|
-
import "../../assets/Appearance/dark/themes/blue/blue_General_DarkTheme.module.css";
|
|
72
|
-
import "../../assets/Appearance/dark/themes/green/green_General_DarkTheme.module.css";
|
|
73
|
-
import "../../assets/Appearance/dark/themes/orange/orange_General_DarkTheme.module.css";
|
|
74
|
-
import "../../assets/Appearance/dark/themes/red/red_General_DarkTheme.module.css";
|
|
75
|
-
import "../../assets/Appearance/dark/themes/yellow/yellow_General_DarkTheme.module.css";
|
|
76
|
-
import "../../assets/Appearance/light/mode/General_LightMode.module.css";
|
|
77
|
-
import "../../assets/Appearance/light/themes/blue/blue_General_LightTheme.module.css";
|
|
78
|
-
import "../../assets/Appearance/light/themes/green/green_General_LightTheme.module.css";
|
|
79
|
-
import "../../assets/Appearance/light/themes/orange/orange_General_LightTheme.module.css";
|
|
80
|
-
import "../../assets/Appearance/light/themes/red/red_General_LightTheme.module.css";
|
|
81
|
-
import "../../assets/Appearance/light/themes/yellow/yellow_General_LightTheme.module.css";
|
|
82
|
-
import "../../assets/Appearance/pureDark/mode/General_PureDarkMode.module.css";
|
|
83
|
-
import "../../assets/Appearance/pureDark/themes/blue/blue_General_PureDarkTheme.module.css";
|
|
84
|
-
import "../../assets/Appearance/pureDark/themes/green/green_General_PureDarkTheme.module.css";
|
|
85
|
-
import "../../assets/Appearance/pureDark/themes/orange/orange_General_PureDarkTheme.module.css";
|
|
86
|
-
import "../../assets/Appearance/pureDark/themes/red/red_General_PureDarkTheme.module.css";
|
|
87
|
-
import "../../assets/Appearance/pureDark/themes/yellow/yellow_General_PureDarkTheme.module.css";
|
|
88
70
|
export default function DeskAssets(props) {
|
|
89
71
|
const {
|
|
90
72
|
children
|
package/es/Theme/ThemeWrapper.js
CHANGED
|
@@ -38,22 +38,20 @@ export default function ThemeWrapper(props) {
|
|
|
38
38
|
/** ** ThemeConfigurations Handling *** */
|
|
39
39
|
|
|
40
40
|
const {
|
|
41
|
+
themeConfigurations,
|
|
41
42
|
mode,
|
|
42
43
|
theme
|
|
43
44
|
} = getThemeConfigurations({
|
|
44
45
|
mode: propMode,
|
|
45
46
|
theme: propTheme
|
|
46
47
|
});
|
|
47
|
-
const configurations = propThemeConfigurations;
|
|
48
|
+
const configurations = propThemeConfigurations || themeConfigurations;
|
|
48
49
|
/** ** Style Handling *** */
|
|
49
50
|
|
|
50
51
|
const selector = `#${styleTagId}`;
|
|
51
52
|
const prefix = '--imlib_';
|
|
52
53
|
const configuration = useMemo(() => [configurations], [configurations]);
|
|
53
|
-
const customizedVariables = useMemo(() =>
|
|
54
|
-
const cssVariables = propThemeConfigurations ? getCustomizedCssVariables(configuration, prefix) : null;
|
|
55
|
-
return cssVariables;
|
|
56
|
-
}, [configuration, prefix, propThemeConfigurations]);
|
|
54
|
+
const customizedVariables = useMemo(() => getCustomizedCssVariables(configuration, prefix), [configuration, prefix]);
|
|
57
55
|
const wrapperDivProps = getWrapperDivProps({
|
|
58
56
|
modeKey,
|
|
59
57
|
themeKey,
|
|
@@ -65,9 +63,9 @@ export default function ThemeWrapper(props) {
|
|
|
65
63
|
const renderPortal = useCallback(() => /*#__PURE__*/React.createElement("div", {
|
|
66
64
|
"data-portal": MSG_ACTION_POPUP_PORTAL
|
|
67
65
|
}), []);
|
|
68
|
-
const renderStyle = useCallback(() =>
|
|
66
|
+
const renderStyle = useCallback(() => /*#__PURE__*/React.createElement("style", {
|
|
69
67
|
id: "zoho-im-variables"
|
|
70
|
-
}, `${selector}{${customizedVariables}}`)
|
|
68
|
+
}, `${selector}{${customizedVariables}}`), [selector, customizedVariables]);
|
|
71
69
|
const renderAssets = useCallback(() => /*#__PURE__*/React.createElement(React.Fragment, null, needThemeAssets ? /*#__PURE__*/React.createElement(ThemeAssets, null) : null, needTooltip ? /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
72
70
|
containerRef: containerRef.current,
|
|
73
71
|
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,116 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, 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: '#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
|
+
}
|
|
116
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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';
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, 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: '#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
|
+
}
|
|
115
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, 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: '#323136',
|
|
10
|
+
border_color: '#4f3c33'
|
|
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: '#ff801f'
|
|
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: primaryOrange,
|
|
62
|
+
url_color_failed: failedUrlColor
|
|
63
|
+
},
|
|
64
|
+
messageBox: {
|
|
65
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
66
|
+
outgoing_bg_color: '#323136',
|
|
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: '#2d3748',
|
|
82
|
+
border_color_failed: failedBdr
|
|
83
|
+
},
|
|
84
|
+
replyBubbleContent: {
|
|
85
|
+
bg_color: '#232b38',
|
|
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: primaryOrange,
|
|
106
|
+
see_more_color_failed: failedUrlColor,
|
|
107
|
+
url_color: primaryOrange,
|
|
108
|
+
url_color_failed: failedUrlColor
|
|
109
|
+
},
|
|
110
|
+
videoBubble: {
|
|
111
|
+
border_color: '#2d3748',
|
|
112
|
+
border_color_failed: failedBdr
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|