@zohoim/chat-components 1.0.10-temp → 1.0.10
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 +5 -0
- package/es/Message/Message.js +8 -2
- package/es/MessageActions/MessageActions.js +2 -0
- package/es/MessageActions/props/propTypes.js +2 -1
- package/es/MessageActionsMore/MessageActionsMore.js +3 -1
- package/es/MessageActionsMore/props/propTypes.js +1 -0
- package/es/MessageActionsWrapper/MessageActionsWrapper.js +6 -3
- package/es/MessageActionsWrapper/props/propTypes.js +2 -1
- package/es/MessageBubble/css/MessageBubble.module.css +0 -7
- package/es/MessageBubble/props/defaultProps.js +2 -1
- package/es/MessageBubble/props/propTypes.js +2 -1
- 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 +12 -19
- 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,6 +10,11 @@ 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.10
|
|
14
|
+
|
|
15
|
+
- changes for retaining hover actions
|
|
16
|
+
- @zohodesk/components version update
|
|
17
|
+
|
|
13
18
|
# 1.0.9
|
|
14
19
|
|
|
15
20
|
- chat bubble ui issues fixes
|
package/es/Message/Message.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** ** Libraries *** */
|
|
2
|
-
import React, { useCallback } from 'react';
|
|
2
|
+
import React, { useCallback, useState } from 'react';
|
|
3
3
|
/** ** Constants *** */
|
|
4
4
|
|
|
5
5
|
import messageDefaultProps from "./props/defaultProps";
|
|
@@ -35,6 +35,10 @@ export default function Message(props) {
|
|
|
35
35
|
renderContent,
|
|
36
36
|
customProps
|
|
37
37
|
} = props;
|
|
38
|
+
const [retainMessageActions, _setRetainMessageActions] = useState(false);
|
|
39
|
+
const setRetainMessageActions = useCallback(retain => {
|
|
40
|
+
_setRetainMessageActions(retain);
|
|
41
|
+
}, []);
|
|
38
42
|
const {
|
|
39
43
|
messageBubbleProps = dummyObject,
|
|
40
44
|
messageOwnerProps = dummyObject,
|
|
@@ -111,7 +115,8 @@ export default function Message(props) {
|
|
|
111
115
|
actions,
|
|
112
116
|
onSelect: onSelectAction,
|
|
113
117
|
renderSecondaryActions,
|
|
114
|
-
onMouseEnter: onMouseEnterAction
|
|
118
|
+
onMouseEnter: onMouseEnterAction,
|
|
119
|
+
setRetainMessageActions
|
|
115
120
|
};
|
|
116
121
|
return /*#__PURE__*/React.createElement(MessageActions, { ...props,
|
|
117
122
|
...messageActionsProps
|
|
@@ -125,6 +130,7 @@ export default function Message(props) {
|
|
|
125
130
|
renderMessageActions: handleRenderMessageActions,
|
|
126
131
|
renderMessageBox: handleRenderMessageBox,
|
|
127
132
|
renderMessageOwner: handleRenderMessageOwner,
|
|
133
|
+
retainMessageActions: retainMessageActions,
|
|
128
134
|
...messageBubbleProps
|
|
129
135
|
});
|
|
130
136
|
}
|
|
@@ -26,6 +26,7 @@ export default function MessageActions(props) {
|
|
|
26
26
|
defaultShowCount,
|
|
27
27
|
onSelect,
|
|
28
28
|
onMouseEnter,
|
|
29
|
+
setRetainMessageActions,
|
|
29
30
|
renderSecondaryActions,
|
|
30
31
|
customStyle,
|
|
31
32
|
customProps
|
|
@@ -112,6 +113,7 @@ export default function MessageActions(props) {
|
|
|
112
113
|
actions: allActions,
|
|
113
114
|
defaultShowCount: defaultShowCount,
|
|
114
115
|
renderMoreIcon: renderMore,
|
|
116
|
+
setRetainMessageActions: setRetainMessageActions,
|
|
115
117
|
...messageActionsWrapperProps
|
|
116
118
|
}), secondaryActions ? /*#__PURE__*/React.createElement("div", {
|
|
117
119
|
className: newStyle.secondaryActions
|
|
@@ -20,6 +20,7 @@ const messageActionsPropTypes = {
|
|
|
20
20
|
}),
|
|
21
21
|
customStyle: PropTypes.object,
|
|
22
22
|
defaultShowCount: PropTypes.number,
|
|
23
|
-
renderSecondaryActions: PropTypes.func
|
|
23
|
+
renderSecondaryActions: PropTypes.func,
|
|
24
|
+
setRetainMessageActions: PropTypes.func
|
|
24
25
|
};
|
|
25
26
|
export default messageActionsPropTypes;
|
|
@@ -25,6 +25,7 @@ function MessageActionsMoreComp(props) {
|
|
|
25
25
|
actions,
|
|
26
26
|
renderMoreIcon,
|
|
27
27
|
customStyle,
|
|
28
|
+
setRetainMessageActions,
|
|
28
29
|
popupSize,
|
|
29
30
|
defaultPopupPosition,
|
|
30
31
|
|
|
@@ -66,9 +67,10 @@ function MessageActionsMoreComp(props) {
|
|
|
66
67
|
id,
|
|
67
68
|
isShowInMore: true,
|
|
68
69
|
action,
|
|
70
|
+
setRetainMessageActions,
|
|
69
71
|
closePopup: closePopupOnly
|
|
70
72
|
}); // id, isRenderInMorePopup
|
|
71
|
-
}), [actions, closePopupOnly]);
|
|
73
|
+
}), [actions, closePopupOnly, setRetainMessageActions]);
|
|
72
74
|
const isRenderPopup = !!(moreIcon && isPopupOpen);
|
|
73
75
|
return /*#__PURE__*/React.createElement("span", {
|
|
74
76
|
className: newStyle.morePopupContainer
|
|
@@ -6,6 +6,7 @@ const messageActionsMorePropTypes = {
|
|
|
6
6
|
renderFunction: PropTypes.func
|
|
7
7
|
})).isRequired,
|
|
8
8
|
renderMoreIcon: PropTypes.func.isRequired,
|
|
9
|
+
setRetainMessageActions: PropTypes.func,
|
|
9
10
|
customStyle: PropTypes.object,
|
|
10
11
|
popupSize: PropTypes.oneOf(['mini', 'xmini', 'xsmall', 'small', 'medium', 'large', 'mlarge', 'xlarge', 'xxlarge', 'default']),
|
|
11
12
|
defaultPopupPosition: PropTypes.oneOf([['bottomCenter', 'bottomLeftToRight', 'bottomCenterToRight', 'bottomRightToLeft', 'bottomCenterToLeft', 'topCenter', 'topLeftToRight', 'topCenterToRight', 'topRightToLeft', 'topCenterToLeft', 'rightTopToBottom', 'rightCenterToBottom', 'rightCenter', 'rightBottomToTop', 'rightCenterToTop', 'leftTopToBottom', 'leftCenterToBottom', 'leftCenter', 'leftBottomToTop', 'leftCenterToTop', 'bottomRight', 'bottomLeft', 'topRight', 'topLeft', 'rightBottom', 'rightTop', 'leftBottom', 'leftTop']])
|
|
@@ -25,7 +25,8 @@ export default function MessageActionsWrapper(props) {
|
|
|
25
25
|
renderMoreIcon,
|
|
26
26
|
defaultShowCount,
|
|
27
27
|
customStyle,
|
|
28
|
-
customProps
|
|
28
|
+
customProps,
|
|
29
|
+
setRetainMessageActions
|
|
29
30
|
} = props;
|
|
30
31
|
const {
|
|
31
32
|
messageActionsMoreProps = dummyObject
|
|
@@ -46,14 +47,16 @@ export default function MessageActionsWrapper(props) {
|
|
|
46
47
|
return renderHandler(renderFunction)({
|
|
47
48
|
id,
|
|
48
49
|
isShowInMore: false,
|
|
50
|
+
setRetainMessageActions,
|
|
49
51
|
action
|
|
50
52
|
}); // id, isRenderInMorePopup
|
|
51
|
-
}), [defaultActions]);
|
|
53
|
+
}), [defaultActions, setRetainMessageActions]);
|
|
52
54
|
const renderMoreActions = useCallback(() => /*#__PURE__*/React.createElement(MessageActionsMore, {
|
|
53
55
|
actions: moreActions,
|
|
54
56
|
renderMoreIcon: renderMoreIcon,
|
|
57
|
+
setRetainMessageActions: setRetainMessageActions,
|
|
55
58
|
...messageActionsMoreProps
|
|
56
|
-
}), [moreActions, renderMoreIcon, messageActionsMoreProps]);
|
|
59
|
+
}), [moreActions, renderMoreIcon, messageActionsMoreProps, setRetainMessageActions]);
|
|
57
60
|
const renderRow = useCallback(() => /*#__PURE__*/React.createElement(Container, {
|
|
58
61
|
alignBox: "row",
|
|
59
62
|
className: newStyle.row,
|
|
@@ -10,6 +10,7 @@ const messageActionsWrapperPropTypes = {
|
|
|
10
10
|
}),
|
|
11
11
|
customStyle: PropTypes.object,
|
|
12
12
|
defaultShowCount: PropTypes.number,
|
|
13
|
-
renderMoreIcon: PropTypes.func
|
|
13
|
+
renderMoreIcon: PropTypes.func,
|
|
14
|
+
setRetainMessageActions: PropTypes.func
|
|
14
15
|
};
|
|
15
16
|
export default messageActionsWrapperPropTypes;
|
|
@@ -12,6 +12,7 @@ const messageBubblePropTypes = {
|
|
|
12
12
|
needSender: PropTypes.bool,
|
|
13
13
|
renderMessageActions: PropTypes.func,
|
|
14
14
|
renderMessageBoxFooter: PropTypes.func,
|
|
15
|
-
renderMessageOwner: PropTypes.func
|
|
15
|
+
renderMessageOwner: PropTypes.func,
|
|
16
|
+
retainMessageActions: PropTypes.bool
|
|
16
17
|
};
|
|
17
18
|
export default messageBubblePropTypes;
|
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
|
+
};
|