@zohoim/chat-components 1.0.5 → 1.0.7
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 +9 -0
- package/es/Theme/ThemeAssets.js +18 -0
- package/es/Theme/ThemeWrapper.js +7 -5
- package/es/Theme/utils/getThemeConfigurations.js +1 -55
- package/package.json +10 -8
- package/es/Theme/themeVariables/commonThemeColorVariable.js +0 -17
- package/es/Theme/themeVariables/dark/blueTheme.js +0 -116
- package/es/Theme/themeVariables/dark/commonColorVariable.js +0 -16
- package/es/Theme/themeVariables/dark/greenTheme.js +0 -115
- package/es/Theme/themeVariables/dark/orangeTheme.js +0 -115
- package/es/Theme/themeVariables/dark/redTheme.js +0 -115
- package/es/Theme/themeVariables/dark/yellowTheme.js +0 -115
- package/es/Theme/themeVariables/light/blueTheme.js +0 -114
- package/es/Theme/themeVariables/light/commonColorVariable.js +0 -35
- package/es/Theme/themeVariables/light/greenTheme.js +0 -114
- package/es/Theme/themeVariables/light/orangeTheme.js +0 -114
- package/es/Theme/themeVariables/light/redTheme.js +0 -114
- package/es/Theme/themeVariables/light/yellowTheme.js +0 -114
- package/es/Theme/themeVariables/pureDark/blueTheme.js +0 -115
- package/es/Theme/themeVariables/pureDark/commonColorVariable.js +0 -18
- package/es/Theme/themeVariables/pureDark/greenTheme.js +0 -115
- package/es/Theme/themeVariables/pureDark/orangeTheme.js +0 -115
- package/es/Theme/themeVariables/pureDark/redTheme.js +0 -115
- package/es/Theme/themeVariables/pureDark/yellowTheme.js +0 -115
package/README.md
CHANGED
|
@@ -10,6 +10,15 @@ 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.7
|
|
14
|
+
|
|
15
|
+
- Color preprocessor and contrast added
|
|
16
|
+
- @zohodesk/components version update
|
|
17
|
+
|
|
18
|
+
# 1.0.6
|
|
19
|
+
|
|
20
|
+
- **IMMessageMeta** - Info for away message is supported
|
|
21
|
+
|
|
13
22
|
# 1.0.5
|
|
14
23
|
|
|
15
24
|
- Fixed some issues
|
package/es/Theme/ThemeAssets.js
CHANGED
|
@@ -67,6 +67,24 @@ 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";
|
|
70
88
|
export default function DeskAssets(props) {
|
|
71
89
|
const {
|
|
72
90
|
children
|
package/es/Theme/ThemeWrapper.js
CHANGED
|
@@ -38,20 +38,22 @@ export default function ThemeWrapper(props) {
|
|
|
38
38
|
/** ** ThemeConfigurations Handling *** */
|
|
39
39
|
|
|
40
40
|
const {
|
|
41
|
-
themeConfigurations,
|
|
42
41
|
mode,
|
|
43
42
|
theme
|
|
44
43
|
} = getThemeConfigurations({
|
|
45
44
|
mode: propMode,
|
|
46
45
|
theme: propTheme
|
|
47
46
|
});
|
|
48
|
-
const configurations = propThemeConfigurations
|
|
47
|
+
const configurations = propThemeConfigurations;
|
|
49
48
|
/** ** Style Handling *** */
|
|
50
49
|
|
|
51
50
|
const selector = `#${styleTagId}`;
|
|
52
51
|
const prefix = '--imlib_';
|
|
53
52
|
const configuration = useMemo(() => [configurations], [configurations]);
|
|
54
|
-
const customizedVariables = useMemo(() =>
|
|
53
|
+
const customizedVariables = useMemo(() => {
|
|
54
|
+
const cssVariables = propThemeConfigurations ? getCustomizedCssVariables(configuration, prefix) : null;
|
|
55
|
+
return cssVariables;
|
|
56
|
+
}, [configuration, prefix, propThemeConfigurations]);
|
|
55
57
|
const wrapperDivProps = getWrapperDivProps({
|
|
56
58
|
modeKey,
|
|
57
59
|
themeKey,
|
|
@@ -63,9 +65,9 @@ export default function ThemeWrapper(props) {
|
|
|
63
65
|
const renderPortal = useCallback(() => /*#__PURE__*/React.createElement("div", {
|
|
64
66
|
"data-portal": MSG_ACTION_POPUP_PORTAL
|
|
65
67
|
}), []);
|
|
66
|
-
const renderStyle = useCallback(() => /*#__PURE__*/React.createElement("style", {
|
|
68
|
+
const renderStyle = useCallback(() => customizedVariables ? /*#__PURE__*/React.createElement("style", {
|
|
67
69
|
id: "zoho-im-variables"
|
|
68
|
-
}, `${selector}{${customizedVariables}}`), [selector, customizedVariables]);
|
|
70
|
+
}, `${selector}{${customizedVariables}}`) : null, [selector, customizedVariables]);
|
|
69
71
|
const renderAssets = useCallback(() => /*#__PURE__*/React.createElement(React.Fragment, null, needThemeAssets ? /*#__PURE__*/React.createElement(ThemeAssets, null) : null, needTooltip ? /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
70
72
|
containerRef: containerRef.current,
|
|
71
73
|
customStyle: tooltipCustomStyle,
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { modeConstants, themeConstants } from "../constants";
|
|
2
|
-
import lightBlue from "../themeVariables/light/blueTheme";
|
|
3
|
-
import lightGreen from "../themeVariables/light/greenTheme";
|
|
4
|
-
import lightOrange from "../themeVariables/light/orangeTheme";
|
|
5
|
-
import lightRed from "../themeVariables/light/redTheme";
|
|
6
|
-
import lightYellow from "../themeVariables/light/yellowTheme";
|
|
7
|
-
import darkBlue from "../themeVariables/dark/blueTheme";
|
|
8
|
-
import darkGreen from "../themeVariables/dark/greenTheme";
|
|
9
|
-
import darkOrange from "../themeVariables/dark/orangeTheme";
|
|
10
|
-
import darkRed from "../themeVariables/dark/redTheme";
|
|
11
|
-
import darkYellow from "../themeVariables/dark/yellowTheme";
|
|
12
|
-
import pureDarkBlue from "../themeVariables/pureDark/blueTheme";
|
|
13
|
-
import pureDarkGreen from "../themeVariables/pureDark/greenTheme";
|
|
14
|
-
import pureDarkOrange from "../themeVariables/pureDark/orangeTheme";
|
|
15
|
-
import pureDarkRed from "../themeVariables/pureDark/redTheme";
|
|
16
|
-
import pureDarkYellow from "../themeVariables/pureDark/yellowTheme";
|
|
17
2
|
const modeMapping = {
|
|
18
3
|
[modeConstants.LIGHT]: 'light',
|
|
19
4
|
[modeConstants.DARK]: 'dark',
|
|
@@ -26,56 +11,17 @@ const themeMapping = {
|
|
|
26
11
|
[themeConstants.RED]: 'red',
|
|
27
12
|
[themeConstants.YELLOW]: 'yellow'
|
|
28
13
|
};
|
|
29
|
-
const concatString = '_';
|
|
30
14
|
const defaultTheme = themeMapping[themeConstants.BLUE];
|
|
31
15
|
const defaultMode = modeMapping[modeConstants.LIGHT];
|
|
32
|
-
const defaultThemeConfiguration = lightBlue;
|
|
33
|
-
const themeConfigMapping = {
|
|
34
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.BLUE}`]: lightBlue,
|
|
35
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.GREEN}`]: lightGreen,
|
|
36
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.ORANGE}`]: lightOrange,
|
|
37
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.RED}`]: lightRed,
|
|
38
|
-
[`${modeConstants.LIGHT}${concatString}${themeConstants.YELLOW}`]: lightYellow,
|
|
39
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.BLUE}`]: darkBlue,
|
|
40
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.GREEN}`]: darkGreen,
|
|
41
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.ORANGE}`]: darkOrange,
|
|
42
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.RED}`]: darkRed,
|
|
43
|
-
[`${modeConstants.DARK}${concatString}${themeConstants.YELLOW}`]: darkYellow,
|
|
44
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.BLUE}`]: pureDarkBlue,
|
|
45
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.GREEN}`]: pureDarkGreen,
|
|
46
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.ORANGE}`]: pureDarkOrange,
|
|
47
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.RED}`]: pureDarkRed,
|
|
48
|
-
[`${modeConstants.PURE_DARK}${concatString}${themeConstants.YELLOW}`]: pureDarkYellow
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
function getThemeName() {
|
|
52
|
-
let {
|
|
53
|
-
mode = modeConstants.LIGHT,
|
|
54
|
-
theme = themeConstants.BLUE
|
|
55
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
56
|
-
const themeName = `${mode}${concatString}${theme}`;
|
|
57
|
-
return {
|
|
58
|
-
themeName
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
16
|
export default function getThemeConfigurations(_ref) {
|
|
63
17
|
let {
|
|
64
18
|
mode: propMode,
|
|
65
19
|
theme: propTheme
|
|
66
20
|
} = _ref;
|
|
67
|
-
const {
|
|
68
|
-
themeName
|
|
69
|
-
} = getThemeName({
|
|
70
|
-
mode: propMode,
|
|
71
|
-
theme: propTheme
|
|
72
|
-
});
|
|
73
21
|
const mode = propMode ? modeMapping[propMode] || propMode : defaultMode;
|
|
74
22
|
const theme = propTheme ? themeMapping[propTheme] || propTheme : defaultTheme;
|
|
75
|
-
const themeConfigurations = themeConfigMapping[themeName] || defaultThemeConfiguration;
|
|
76
23
|
return {
|
|
77
24
|
mode,
|
|
78
|
-
theme
|
|
79
|
-
themeConfigurations
|
|
25
|
+
theme
|
|
80
26
|
};
|
|
81
27
|
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohoim/chat-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Chat Components",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "react-cli build:component:es",
|
|
9
|
-
"build_watch": "npm run build -- -w",
|
|
9
|
+
"build_watch": "npm run build:variables && npm run build -- -w",
|
|
10
10
|
"clean": "react-cli clean unittest coverage es result.json",
|
|
11
11
|
"rtl": "react-cli rtl ./src ./es",
|
|
12
|
-
"prepare": "npm run clean && npm run build && npm run rtl && npm run cssVariableConvert",
|
|
12
|
+
"prepare": "npm run clean && npm run build && npm run rtl && npm run cssVariableConvert && npm run build:variables",
|
|
13
13
|
"test": "react-cli test",
|
|
14
14
|
"test:debug": "react-cli test --runInBand --watch",
|
|
15
15
|
"create-icons": "node ./src/icons/create-icon-components --sourucePath=./factory --targetPath=./iconSrc",
|
|
16
16
|
"cssVariableConvert": "react-cli variableConverter ./es ./es",
|
|
17
17
|
"variable:addignore": "node ../../node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
|
|
18
18
|
"variable:convert": "node ../../node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
|
|
19
|
-
"variable:check": "node ../../node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ../../node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json"
|
|
19
|
+
"variable:check": "node ../../node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ../../node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
|
|
20
|
+
"build:variables": "react-cli clean ./assets && node ./preprocess/index"
|
|
20
21
|
},
|
|
21
22
|
"author": "ZohoDesk - IM Team",
|
|
22
23
|
"license": "ISC",
|
|
@@ -29,21 +30,22 @@
|
|
|
29
30
|
"!**/__tests__"
|
|
30
31
|
],
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@zohodesk/components": "1.2.
|
|
33
|
+
"@zohodesk/components": "1.2.43",
|
|
33
34
|
"@zohodesk/hooks": "2.0.2",
|
|
34
35
|
"@zohodesk/icon": "1.3.15",
|
|
35
36
|
"@zohodesk/icons": "1.0.20",
|
|
36
37
|
"@zohodesk/utils": "1.3.13",
|
|
37
38
|
"@zohodesk/variables": "1.0.0",
|
|
38
39
|
"@zohodesk/virtualizer": "1.0.13",
|
|
39
|
-
"@zohoim/chat-components-hooks": "^1.0.
|
|
40
|
-
"@zohoim/chat-components-utils": "^1.0.
|
|
40
|
+
"@zohoim/chat-components-hooks": "^1.0.4",
|
|
41
|
+
"@zohoim/chat-components-utils": "^1.0.4"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
44
|
+
"@zohodesk-private/color-variable-preprocessor": "1.2.1",
|
|
43
45
|
"@zohodesk-private/css-variable-migrator": "1.0.7",
|
|
44
46
|
"html-to-react": "1.7.0 ",
|
|
45
47
|
"jsdom": "23.0.0",
|
|
46
48
|
"react-to-jsx": "1.3.2"
|
|
47
49
|
},
|
|
48
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "7e2ee7c296fd7adefa47b6321c28c717736cbed5"
|
|
49
51
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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';
|
|
@@ -1,116 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
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';
|
|
@@ -1,115 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,115 +0,0 @@
|
|
|
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
|
-
};
|