@zohoim/chat-components 0.0.5 → 0.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/es/ActionIcon/ActionIcon.js +13 -11
- package/es/ArticleBubble/ArticleBubble.js +60 -0
- package/es/ArticleBubble/css/ArticleBubble.module.css +1 -0
- package/es/ArticleBubble/css/cssJSLogic.js +34 -0
- package/es/ArticleBubble/index.js +1 -0
- package/es/ArticleBubble/props/defaultProps.js +6 -0
- package/es/ArticleBubble/props/propTypes.js +10 -0
- package/es/AttachmentBubble/AttachmentBubble.js +55 -0
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +17 -0
- package/es/AttachmentBubble/css/cssJSLogic.js +18 -0
- package/es/AttachmentBubble/index.js +1 -0
- package/es/AttachmentBubble/props/defaultProps.js +7 -0
- package/es/AttachmentBubble/props/propTypes.js +10 -0
- package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +45 -0
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +18 -0
- package/es/AttachmentBubbleInfo/css/cssJSLogic.js +18 -0
- package/es/AttachmentBubbleInfo/index.js +1 -0
- package/es/AttachmentBubbleInfo/props/defaultProps.js +6 -0
- package/es/AttachmentBubbleInfo/props/propTypes.js +8 -0
- package/es/Audio/Audio.js +60 -0
- package/es/Audio/css/Audio.module.css +3 -0
- package/es/Audio/css/cssJSLogic.js +14 -0
- package/es/Audio/index.js +1 -0
- package/es/Audio/props/defaultProps.js +7 -0
- package/es/Audio/props/propTypes.js +9 -0
- package/es/AudioBubble/AudioBubble.js +58 -0
- package/es/AudioBubble/css/AudioBubble.module.css +3 -0
- package/es/AudioBubble/css/cssJSLogic.js +20 -0
- package/es/AudioBubble/index.js +1 -0
- package/es/AudioBubble/props/defaultProps.js +8 -0
- package/es/AudioBubble/props/propTypes.js +12 -0
- package/es/IMArticleBubble/IMArticleBubble.js +55 -0
- package/es/IMArticleBubble/css/IMArticleBubble.module.css +0 -0
- package/es/IMArticleBubble/css/cssJSLogic.js +10 -0
- package/es/IMArticleBubble/index.js +1 -0
- package/es/IMArticleBubble/props/defaultProps.js +8 -0
- package/es/IMArticleBubble/props/propTypes.js +14 -0
- package/es/IMAttachmentBubble/IMAttachmentBubble.js +63 -0
- package/es/IMAttachmentBubble/css/IMAttachmentBubble.module.css +1 -0
- package/es/IMAttachmentBubble/css/cssJSLogic.js +10 -0
- package/es/IMAttachmentBubble/index.js +1 -0
- package/es/IMAttachmentBubble/props/defaultProps.js +10 -0
- package/es/IMAttachmentBubble/props/propTypes.js +16 -0
- package/es/IMAttachmentIcon/IMAttachmentIcon.js +86 -0
- package/es/IMAttachmentIcon/css/IMAttachmentIcon.module.css +4 -0
- package/es/IMAttachmentIcon/css/cssJSLogic.js +16 -0
- package/es/IMAttachmentIcon/index.js +1 -0
- package/es/IMAttachmentIcon/props/defaultProps.js +6 -0
- package/es/IMAttachmentIcon/props/propTypes.js +26 -0
- package/es/IMAudioBubble/IMAudioBubble.js +63 -0
- package/es/IMAudioBubble/css/IMAudioBubble.module.css +8 -0
- package/es/IMAudioBubble/css/cssJSLogic.js +20 -0
- package/es/IMAudioBubble/index.js +1 -0
- package/es/IMAudioBubble/props/defaultProps.js +11 -0
- package/es/IMAudioBubble/props/propTypes.js +17 -0
- package/es/IMAutoMessageInfo/IMAutoMessageInfo.js +43 -0
- package/es/IMAutoMessageInfo/css/IMAutoMessageInfo.module.css +13 -0
- package/es/IMAutoMessageInfo/css/cssJSLogic.js +10 -0
- package/es/IMAutoMessageInfo/index.js +1 -0
- package/es/IMAutoMessageInfo/props/defaultProps.js +6 -0
- package/es/IMAutoMessageInfo/props/propTypes.js +26 -0
- package/es/IMDateTime/IMDateTime.js +41 -0
- package/es/IMDateTime/css/IMDateTime.module.css +5 -0
- package/es/IMDateTime/css/cssJSLogic.js +10 -0
- package/es/IMDateTime/index.js +1 -0
- package/es/IMDateTime/props/defaultProps.js +6 -0
- package/es/IMDateTime/props/propTypes.js +6 -0
- package/es/IMImageBubble/IMImageBubble.js +49 -0
- package/es/IMImageBubble/css/IMImageBubble.module.css +0 -0
- package/es/IMImageBubble/css/cssJSLogic.js +10 -0
- package/es/IMImageBubble/index.js +1 -0
- package/es/IMImageBubble/props/defaultProps.js +7 -0
- package/es/IMImageBubble/props/propTypes.js +13 -0
- package/es/IMInfoBubble/IMInfoBubble.js +37 -0
- package/es/IMInfoBubble/css/IMInfoBubble.module.css +0 -0
- package/es/IMInfoBubble/css/cssJSLogic.js +10 -0
- package/es/IMInfoBubble/index.js +1 -0
- package/es/IMInfoBubble/props/defaultProps.js +6 -0
- package/es/IMInfoBubble/props/propTypes.js +6 -0
- package/es/IMLocationBubble/IMLocationBubble.js +49 -0
- package/es/IMLocationBubble/css/IMLocationBubble.module.css +0 -0
- package/es/IMLocationBubble/css/cssJSLogic.js +10 -0
- package/es/IMLocationBubble/index.js +1 -0
- package/es/IMLocationBubble/props/defaultProps.js +8 -0
- package/es/IMLocationBubble/props/propTypes.js +11 -0
- package/es/IMMessage/IMMessage.js +156 -109
- package/es/IMMessage/props/defaultProps.js +22 -35
- package/es/IMMessage/props/propTypes.js +96 -49
- package/es/IMMessageActions/IMMessageActions.js +9 -5
- package/es/IMMessageActions/css/IMMessageActions.module.css +2 -2
- package/es/IMMessageAvatar/props/defaultProps.js +4 -2
- package/es/IMMessageContent/IMMessageContent.js +84 -0
- package/es/IMMessageContent/css/IMMessageContent.module.css +0 -0
- package/es/IMMessageContent/css/cssJSLogic.js +10 -0
- package/es/IMMessageContent/index.js +1 -0
- package/es/IMMessageContent/props/defaultProps.js +8 -0
- package/es/IMMessageContent/props/propTypes.js +35 -0
- package/es/IMMessageMeta/IMMessageMeta.js +60 -0
- package/es/IMMessageMeta/css/IMMessageMeta.module.css +32 -0
- package/es/IMMessageMeta/css/cssJSLogic.js +20 -0
- package/es/IMMessageMeta/index.js +1 -0
- package/es/IMMessageMeta/props/defaultProps.js +10 -0
- package/es/IMMessageMeta/props/propTypes.js +30 -0
- package/es/IMMessageStatus/css/IMMessageStatus.module.css +6 -3
- package/es/IMReplyBubble/IMReplyBubble.js +37 -0
- package/es/IMReplyBubble/css/IMReplyBubble.module.css +0 -0
- package/es/IMReplyBubble/css/cssJSLogic.js +10 -0
- package/es/IMReplyBubble/index.js +1 -0
- package/es/IMReplyBubble/props/defaultProps.js +6 -0
- package/es/IMReplyBubble/props/propTypes.js +6 -0
- package/es/IMTextBubble/IMTextBubble.js +53 -0
- package/es/IMTextBubble/css/IMTextBubble.module.css +1 -0
- package/es/IMTextBubble/css/cssJSLogic.js +10 -0
- package/es/IMTextBubble/index.js +1 -0
- package/es/IMTextBubble/props/defaultProps.js +14 -0
- package/es/IMTextBubble/props/propTypes.js +15 -0
- package/es/IMTicketLink/IMTicketLink.js +48 -0
- package/es/IMTicketLink/css/IMTicketLink.module.css +24 -0
- package/es/IMTicketLink/css/cssJSLogic.js +14 -0
- package/es/IMTicketLink/index.js +1 -0
- package/es/IMTicketLink/props/defaultProps.js +6 -0
- package/es/IMTicketLink/props/propTypes.js +10 -0
- package/es/IMVideoBubble/IMVideoBubble.js +62 -0
- package/es/IMVideoBubble/css/IMVideoBubble.module.css +1 -0
- package/es/IMVideoBubble/css/cssJSLogic.js +10 -0
- package/es/IMVideoBubble/index.js +1 -0
- package/es/IMVideoBubble/props/defaultProps.js +11 -0
- package/es/IMVideoBubble/props/propTypes.js +17 -0
- package/es/ImageBubble/ImageBubble.js +52 -0
- package/es/ImageBubble/css/ImageBubble.module.css +53 -0
- package/es/ImageBubble/css/cssJSLogic.js +22 -0
- package/es/ImageBubble/index.js +1 -0
- package/es/ImageBubble/props/defaultProps.js +6 -0
- package/es/ImageBubble/props/propTypes.js +8 -0
- package/es/InfoBubble/InfoBubble.js +37 -0
- package/es/InfoBubble/css/InfoBubble.module.css +0 -0
- package/es/InfoBubble/css/cssJSLogic.js +10 -0
- package/es/InfoBubble/index.js +1 -0
- package/es/InfoBubble/props/defaultProps.js +6 -0
- package/es/InfoBubble/props/propTypes.js +6 -0
- package/es/LazyLoadImage/LazyLoadImage.js +48 -0
- package/es/LazyLoadImage/css/LazyLoadImage.module.css +4 -0
- package/es/LazyLoadImage/css/cssJSLogic.js +10 -0
- package/es/LazyLoadImage/index.js +1 -0
- package/es/LazyLoadImage/props/defaultProps.js +6 -0
- package/es/LazyLoadImage/props/propTypes.js +8 -0
- package/es/LocationBubble/LocationBubble.js +63 -0
- package/es/LocationBubble/css/LocationBubble.module.css +3 -0
- package/es/LocationBubble/css/cssJSLogic.js +30 -0
- package/es/LocationBubble/images/location.png +0 -0
- package/es/LocationBubble/index.js +1 -0
- package/es/LocationBubble/props/defaultProps.js +6 -0
- package/es/LocationBubble/props/propTypes.js +7 -0
- package/es/MediaControls/MediaControls.js +60 -0
- package/es/MediaControls/css/MediaControls.module.css +1 -0
- package/es/MediaControls/css/cssJSLogic.js +22 -0
- package/es/MediaControls/index.js +1 -0
- package/es/MediaControls/props/defaultProps.js +6 -0
- package/es/MediaControls/props/propTypes.js +11 -0
- package/es/Message/Message.js +136 -0
- package/es/Message/css/Message.module.css +0 -0
- package/es/Message/css/cssJSLogic.js +10 -0
- package/es/Message/index.js +1 -0
- package/es/Message/props/defaultProps.js +43 -0
- package/es/Message/props/propTypes.js +98 -0
- package/es/MessageAction/MessageAction.js +4 -2
- package/es/MessageActions/MessageActions.js +1 -1
- package/es/MessageActionsMore/MessageActionsMore.js +5 -3
- package/es/MessageAvatar/MessageAvatar.js +9 -9
- package/es/MessageAvatar/props/defaultProps.js +4 -2
- package/es/MessageBox/MessageBox.js +5 -2
- package/es/MessageBox/css/MessageBox.module.css +14 -0
- package/es/MessageBox/css/cssJSLogic.js +12 -1
- package/es/MessageBox/props/defaultProps.js +3 -1
- package/es/MessageBox/props/propTypes.js +3 -1
- package/es/MessageBoxFooter/MessageBoxFooter.js +1 -1
- package/es/MessageBubble/MessageBubble.js +10 -10
- package/es/MessageWrapper/MessageWrapper.js +37 -0
- package/es/MessageWrapper/css/MessageWrapper.module.css +0 -0
- package/es/MessageWrapper/css/cssJSLogic.js +10 -0
- package/es/MessageWrapper/index.js +1 -0
- package/es/MessageWrapper/props/defaultProps.js +6 -0
- package/es/MessageWrapper/props/propTypes.js +6 -0
- package/es/MoreActionItem/MoreActionItem.js +9 -9
- package/es/MoreActionItem/props/defaultProps.js +1 -1
- package/es/MoreActionItem/props/propTypes.js +1 -1
- package/es/ReplyBubble/ReplyBubble.js +41 -0
- package/es/ReplyBubble/css/ReplyBubble.module.css +0 -0
- package/es/ReplyBubble/css/cssJSLogic.js +10 -0
- package/es/ReplyBubble/index.js +1 -0
- package/es/ReplyBubble/props/defaultProps.js +6 -0
- package/es/ReplyBubble/props/propTypes.js +6 -0
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +53 -0
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +0 -0
- package/es/ReplyBubbleHeader/css/cssJSLogic.js +10 -0
- package/es/ReplyBubbleHeader/index.js +1 -0
- package/es/ReplyBubbleHeader/props/defaultProps.js +9 -0
- package/es/ReplyBubbleHeader/props/propTypes.js +9 -0
- package/es/TextBubble/TextBubble.js +56 -0
- package/es/TextBubble/css/TextBubble.module.css +1 -0
- package/es/TextBubble/css/cssJSLogic.js +18 -0
- package/es/TextBubble/index.js +1 -0
- package/es/TextBubble/props/defaultProps.js +9 -0
- package/es/TextBubble/props/propTypes.js +10 -0
- package/es/Theme/DeskAssets.js +53 -0
- package/es/Theme/ThemeWrapper.js +82 -0
- package/es/Theme/ToolttipWrapper.js +81 -0
- package/es/Theme/constants/index.js +44 -0
- package/es/Theme/crm/dark/blueFanTheme.js +28 -0
- package/es/Theme/crm/dark/blueTheme.js +28 -0
- package/es/Theme/crm/dark/commonColorVariable.js +11 -0
- package/es/Theme/crm/dark/darkBlueTheme.js +28 -0
- package/es/Theme/crm/dark/darkGreyTheme.js +28 -0
- package/es/Theme/crm/dark/greenTheme.js +28 -0
- package/es/Theme/crm/dark/orangeTheme.js +28 -0
- package/es/Theme/crm/dark/pinkTheme.js +28 -0
- package/es/Theme/crm/dark/tealTheme.js +28 -0
- package/es/Theme/crm/dark/whiteTheme.js +28 -0
- package/es/Theme/crm/light/blueFanTheme.js +28 -0
- package/es/Theme/crm/light/blueTheme.js +31 -0
- package/es/Theme/crm/light/commonColorVariable.js +9 -0
- package/es/Theme/crm/light/darkBlueTheme.js +28 -0
- package/es/Theme/crm/light/darkGreyTheme.js +28 -0
- package/es/Theme/crm/light/greenTheme.js +28 -0
- package/es/Theme/crm/light/orangeTheme.js +28 -0
- package/es/Theme/crm/light/pinkTheme.js +28 -0
- package/es/Theme/crm/light/tealTheme.js +28 -0
- package/es/Theme/crm/light/whiteTheme.js +28 -0
- package/es/Theme/crm/pureDark/blueFanTheme.js +28 -0
- package/es/Theme/crm/pureDark/blueTheme.js +28 -0
- package/es/Theme/crm/pureDark/commonColorVariable.js +9 -0
- package/es/Theme/crm/pureDark/darkBlueTheme.js +28 -0
- package/es/Theme/crm/pureDark/darkGreyTheme.js +28 -0
- package/es/Theme/crm/pureDark/greenTheme.js +28 -0
- package/es/Theme/crm/pureDark/orangeTheme.js +28 -0
- package/es/Theme/crm/pureDark/pinkTheme.js +28 -0
- package/es/Theme/crm/pureDark/tealTheme.js +28 -0
- package/es/Theme/crm/pureDark/whiteTheme.js +28 -0
- package/es/Theme/css/TooltipWrapper.module.css +10 -0
- package/es/Theme/css/cssJSLogic.js +14 -0
- package/es/Theme/desk/commonDeskColorVariable.js +12 -0
- package/es/Theme/desk/dark/blueTheme.js +30 -0
- package/es/Theme/desk/dark/commonColorVariable.js +5 -0
- package/es/Theme/desk/dark/greenTheme.js +30 -0
- package/es/Theme/desk/dark/orangeTheme.js +30 -0
- package/es/Theme/desk/dark/redTheme.js +30 -0
- package/es/Theme/desk/dark/yellowTheme.js +30 -0
- package/es/Theme/desk/light/blueTheme.js +33 -0
- package/es/Theme/desk/light/commonColorVariable.js +5 -0
- package/es/Theme/desk/light/greenTheme.js +30 -0
- package/es/Theme/desk/light/orangeTheme.js +29 -0
- package/es/Theme/desk/light/redTheme.js +29 -0
- package/es/Theme/desk/light/yellowTheme.js +30 -0
- package/es/Theme/desk/pureDark/blueTheme.js +30 -0
- package/es/Theme/desk/pureDark/commonColorVariable.js +6 -0
- package/es/Theme/desk/pureDark/greenTheme.js +30 -0
- package/es/Theme/desk/pureDark/orangeTheme.js +30 -0
- package/es/Theme/desk/pureDark/redTheme.js +30 -0
- package/es/Theme/desk/pureDark/yellowTheme.js +30 -0
- package/es/Theme/index.js +1 -0
- package/es/Theme/props/defaultProps.js +13 -0
- package/es/Theme/props/propTypes.js +15 -0
- package/es/Theme/utils/getThemeConfigurations.js +209 -0
- package/es/Video/Video.js +69 -0
- package/es/Video/css/Video.module.css +9 -0
- package/es/Video/css/cssJSLogic.js +14 -0
- package/es/Video/index.js +1 -0
- package/es/Video/props/defaultProps.js +7 -0
- package/es/Video/props/propTypes.js +9 -0
- package/es/VideoBubble/VideoBubble.js +57 -0
- package/es/VideoBubble/css/VideoBubble.module.css +4 -0
- package/es/VideoBubble/css/cssJSLogic.js +10 -0
- package/es/VideoBubble/index.js +1 -0
- package/es/VideoBubble/props/defaultProps.js +8 -0
- package/es/VideoBubble/props/propTypes.js +12 -0
- package/es/icons/create-icon-components.js +1 -1
- package/es/icons/factory/attachments/audio.svg +19 -0
- package/es/icons/factory/attachments/code.svg +21 -0
- package/es/icons/factory/attachments/image.svg +20 -0
- package/es/icons/factory/attachments/pdf.svg +19 -0
- package/es/icons/factory/attachments/txt.svg +22 -0
- package/es/icons/factory/attachments/unknown.svg +21 -0
- package/es/icons/factory/attachments/video.svg +19 -0
- package/es/icons/factory/attachments/zip.svg +27 -0
- package/es/icons/iconSrc/actions/ConvertTicket.js +1 -1
- package/es/icons/iconSrc/attachments/Audio.js +37 -0
- package/es/icons/iconSrc/attachments/Code.js +43 -0
- package/es/icons/iconSrc/attachments/Image.js +42 -0
- package/es/icons/iconSrc/attachments/Pdf.js +37 -0
- package/es/icons/iconSrc/attachments/Txt.js +46 -0
- package/es/icons/iconSrc/attachments/Unknown.js +41 -0
- package/es/icons/iconSrc/attachments/Video.js +37 -0
- package/es/icons/iconSrc/attachments/Zip.js +85 -0
- package/es/icons/iconSrc/attachments/index.js +8 -0
- package/es/icons/iconSrc/integrations/TtASAP.js +1 -1
- package/es/icons/iconSrc/integrations/TtTelegram.js +1 -1
- package/es/icons/iconSrc/integrations/TtTwillio.js +1 -1
- package/es/icons/iconSrc/integrations/TtTwitter.js +1 -1
- package/es/icons/iconSrc/integrations/TtWechat.js +1 -1
- package/es/index.js +33 -0
- package/package.json +8 -4
- /package/es/MessageActionsMore/css/{cssJsLogic.js → cssJSLogic.js} +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
/* eslint-disable react/jsx-no-bind */
|
|
3
|
+
/** ** Libraries *** */
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import ThemeProvider from '@zohodesk/theme/es/ThemeProvider';
|
|
6
|
+
import sizeVariable from '@zohodesk/theme-defaults/es/sizeVariable';
|
|
7
|
+
import fontSizeVariable from '@zohodesk/theme-defaults/es/fontSizeVariable';
|
|
8
|
+
import fontVariable from '@zohodesk/theme-defaults/es/fontVariable';
|
|
9
|
+
import { transitionVariable, motionTransitionVariable } from '@zohodesk/theme-defaults/es/transitionVariable';
|
|
10
|
+
import chatDefaultTheme from './defaultTheme';
|
|
11
|
+
import chatDarkTheme from './darkTheme';
|
|
12
|
+
import { MSG_ACTION_POPUP_PORTAL } from '../constants';
|
|
13
|
+
import { baseUnitLimit } from './constants';
|
|
14
|
+
import DeskAssets from './DeskAssets';
|
|
15
|
+
import TooltipWrapper from './ToolttipWrapper';
|
|
16
|
+
import { Container } from '@zohodesk/components/es/Layout';
|
|
17
|
+
import themeWrapperPropTypes from './props/propTypes';
|
|
18
|
+
import themeWrapperDefaultProps from './props/defaultProps';
|
|
19
|
+
import getThemeConfigurations from './utils/getThemeConfigurations';
|
|
20
|
+
import { I18NProvider } from '@zohodesk/i18n';
|
|
21
|
+
import datetime from '@zohodesk/datetimejs';
|
|
22
|
+
export default function ThemeWrapper(props) {
|
|
23
|
+
const {
|
|
24
|
+
children,
|
|
25
|
+
needDeskAssets,
|
|
26
|
+
needTooltip,
|
|
27
|
+
themeConfigurations: propThemeConfigurations,
|
|
28
|
+
mode,
|
|
29
|
+
theme,
|
|
30
|
+
app,
|
|
31
|
+
modeKey,
|
|
32
|
+
themeKey,
|
|
33
|
+
tooltipCustomStyle
|
|
34
|
+
} = props;
|
|
35
|
+
const containerRef = React.useRef(null);
|
|
36
|
+
const {
|
|
37
|
+
themeConfigurations,
|
|
38
|
+
deskMode,
|
|
39
|
+
deskTheme
|
|
40
|
+
} = getThemeConfigurations({
|
|
41
|
+
app,
|
|
42
|
+
mode,
|
|
43
|
+
theme
|
|
44
|
+
});
|
|
45
|
+
const configurations = propThemeConfigurations ? propThemeConfigurations : themeConfigurations;
|
|
46
|
+
function getContainerRef() {
|
|
47
|
+
return containerRef.current;
|
|
48
|
+
}
|
|
49
|
+
const wrapperDivProps = {
|
|
50
|
+
[modeKey]: deskMode,
|
|
51
|
+
[themeKey]: deskTheme
|
|
52
|
+
};
|
|
53
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
54
|
+
id: "chat-components"
|
|
55
|
+
}, wrapperDivProps), /*#__PURE__*/React.createElement(I18NProvider
|
|
56
|
+
// i18n={i18n}
|
|
57
|
+
, {
|
|
58
|
+
timeZone: "Asia/Kolkata",
|
|
59
|
+
datePattern: "DD/MM/YYYY",
|
|
60
|
+
isEnabledCurrentYear: true,
|
|
61
|
+
timeFormat: "hh:mm"
|
|
62
|
+
// tzdata should already have been fetched and set as default
|
|
63
|
+
// tzData={datetime.tz.data()}
|
|
64
|
+
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
65
|
+
selector: "#chat-components",
|
|
66
|
+
prefix: "--imlib_",
|
|
67
|
+
configuration: [sizeVariable(baseUnitLimit.size), fontSizeVariable(baseUnitLimit.fontSize), fontVariable, transitionVariable(baseUnitLimit.transition), motionTransitionVariable(baseUnitLimit.motionTransition), configurations
|
|
68
|
+
// themeConfigration
|
|
69
|
+
// chatDarkTheme
|
|
70
|
+
]
|
|
71
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
72
|
+
eleRef: containerRef
|
|
73
|
+
}, children), /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
"data-portal": MSG_ACTION_POPUP_PORTAL
|
|
75
|
+
}), needDeskAssets ? /*#__PURE__*/React.createElement(DeskAssets, null) : null, needTooltip ? /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
76
|
+
containerRef: containerRef.current,
|
|
77
|
+
getContainerRef: getContainerRef,
|
|
78
|
+
customStyle: tooltipCustomStyle
|
|
79
|
+
}) : null)));
|
|
80
|
+
}
|
|
81
|
+
ThemeWrapper.propTypes = themeWrapperPropTypes;
|
|
82
|
+
ThemeWrapper.defaultProps = themeWrapperDefaultProps;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
/* eslint-disable react/prop-types */
|
|
3
|
+
/** ** Libraries *** */
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
/** ** Components *** */
|
|
7
|
+
import Tooltip from '@zohodesk/components/es/Tooltip/Tooltip';
|
|
8
|
+
|
|
9
|
+
/** ** Hooks *** */
|
|
10
|
+
import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
|
|
11
|
+
|
|
12
|
+
/** ** Methods *** */
|
|
13
|
+
import { setLibraryConfig, getLibraryConfig } from '@zohodesk/components/lib/Provider/Config';
|
|
14
|
+
import cssJSLogic from './css/cssJSLogic';
|
|
15
|
+
|
|
16
|
+
/** ** Styles *** */
|
|
17
|
+
import style from './css/TooltipWrapper.module.css';
|
|
18
|
+
export default function TooltipWrapper(props) {
|
|
19
|
+
const {
|
|
20
|
+
getContainerRef,
|
|
21
|
+
customStyle = {}
|
|
22
|
+
} = props;
|
|
23
|
+
const containerRef = getContainerRef();
|
|
24
|
+
let timer = null;
|
|
25
|
+
const tooltipRef = React.useRef(null);
|
|
26
|
+
setLibraryConfig({
|
|
27
|
+
getTooltipContainer: () => getContainerRef()
|
|
28
|
+
});
|
|
29
|
+
function handleMouseOverDispatch(e) {
|
|
30
|
+
const containerRef = getContainerRef();
|
|
31
|
+
if (tooltipRef && tooltipRef.current) {
|
|
32
|
+
tooltipRef.current.handleOver(e, containerRef);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function handleOver(e) {
|
|
36
|
+
if (timer) {
|
|
37
|
+
timer = clearTimeout(timer);
|
|
38
|
+
}
|
|
39
|
+
timer = setTimeout(() => handleMouseOverDispatch(e), getLibraryConfig('tooltipDebounce'));
|
|
40
|
+
}
|
|
41
|
+
function removeTimeout() {
|
|
42
|
+
if (timer) {
|
|
43
|
+
timer = clearTimeout(timer);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// componentDidMount and componentWillUnmount case
|
|
48
|
+
React.useEffect(() => {
|
|
49
|
+
const containerRef = getContainerRef();
|
|
50
|
+
if (containerRef) {
|
|
51
|
+
containerRef.addEventListener('mouseover', handleOver, false);
|
|
52
|
+
containerRef.addEventListener('mouseout', removeTimeout, false);
|
|
53
|
+
tooltipRef.current.observeElement();
|
|
54
|
+
}
|
|
55
|
+
return () => {
|
|
56
|
+
if (containerRef) {
|
|
57
|
+
containerRef.removeEventListener('mouseover', handleOver, false);
|
|
58
|
+
containerRef.removeEventListener('mouseout', removeTimeout, false);
|
|
59
|
+
tooltipRef.current.unObserveElement();
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}, [containerRef]);
|
|
63
|
+
|
|
64
|
+
/* External customization */
|
|
65
|
+
const newStyle = useMergeStyle(style, customStyle);
|
|
66
|
+
|
|
67
|
+
/* CSS classnames added based on logic */
|
|
68
|
+
const {
|
|
69
|
+
tooltipClass,
|
|
70
|
+
tooltipWrapperClass
|
|
71
|
+
} = cssJSLogic(props, newStyle);
|
|
72
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: tooltipWrapperClass
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
75
|
+
ref: tooltipRef
|
|
76
|
+
}, props, {
|
|
77
|
+
customClass: tooltipClass
|
|
78
|
+
})));
|
|
79
|
+
}
|
|
80
|
+
const a = {};
|
|
81
|
+
TooltipWrapper.protoTypes = a;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export const baseUnitLimit = {
|
|
2
|
+
size: {
|
|
3
|
+
base: 16,
|
|
4
|
+
unit: '1rem',
|
|
5
|
+
limit: 500
|
|
6
|
+
},
|
|
7
|
+
fontSize: {
|
|
8
|
+
base: 1,
|
|
9
|
+
unit: '1px',
|
|
10
|
+
limit: 20
|
|
11
|
+
},
|
|
12
|
+
transition: {
|
|
13
|
+
base: 1,
|
|
14
|
+
unit: 's',
|
|
15
|
+
limit: 20
|
|
16
|
+
},
|
|
17
|
+
motionTransition: {
|
|
18
|
+
base: 1,
|
|
19
|
+
unit: 'ms',
|
|
20
|
+
limit: 20
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export const appConstants = {
|
|
24
|
+
DESK: 'DESK',
|
|
25
|
+
CRM: 'CRM'
|
|
26
|
+
};
|
|
27
|
+
export const modeConstants = {
|
|
28
|
+
LIGHT: 'LIGHT',
|
|
29
|
+
DARK: 'DARK',
|
|
30
|
+
PURE_DARK: 'PURE_DARK'
|
|
31
|
+
};
|
|
32
|
+
export const themeConstants = {
|
|
33
|
+
BLUE: 'BLUE',
|
|
34
|
+
GREEN: 'GREEN',
|
|
35
|
+
ORANGE: 'ORANGE',
|
|
36
|
+
RED: 'RED',
|
|
37
|
+
YELLOW: 'YELLOW',
|
|
38
|
+
BLUE_FAN: 'BLUE_FAN',
|
|
39
|
+
DARK_BLUE: 'DARK_BLUE',
|
|
40
|
+
DARK_GREY: 'DARK_GREY',
|
|
41
|
+
PINK: 'PINK',
|
|
42
|
+
WHITE: 'WHITE',
|
|
43
|
+
TEAL: 'TEAL'
|
|
44
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messageStatusReadColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: messageStatusReadColor,
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: '#4a91d9',
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const incomingBubbleBgColor = '#232b38';
|
|
2
|
+
export const outgoingBubbleBgColor = '#2c3b4d';
|
|
3
|
+
// greenTheme, tealTheme
|
|
4
|
+
export const outgoingBubbleBgColor2 = '#26373b';
|
|
5
|
+
export const actionIconColor = '#e2e4e6';
|
|
6
|
+
export const actionIconBgColor = '#2c3b4d';
|
|
7
|
+
export const actionIconBorderColor = '#3f536b';
|
|
8
|
+
export const bubbleActiveBgColor = '#1b2e33';
|
|
9
|
+
export const messageStatusSendColor = '#61667a';
|
|
10
|
+
export const messageStatusFailedColor = '#de3535';
|
|
11
|
+
export const messageStatusReadColor = '#479dff';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messageStatusReadColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: messageStatusReadColor,
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messageStatusReadColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: messageStatusReadColor,
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor2, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor2,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: '#5cab8b',
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: '#323136',
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: '#f07b61',
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: '#312d3a',
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: '#ff69b4',
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor2, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor2,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: '#37a5a5',
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messageStatusReadColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: messageStatusReadColor,
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messageStatusReadColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: messageStatusReadColor,
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: '#f1f7fe',
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: '#eff4fb',
|
|
20
|
+
border_color: '#cedef2'
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: '#4a91d9',
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
},
|
|
27
|
+
imageBubble: {
|
|
28
|
+
bg_color: '#fff'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const incomingBubbleBgColor = '#f1f4f9';
|
|
2
|
+
export const outgoingBubbleBgColor = '#f1f7fe';
|
|
3
|
+
export const actionIconColor = '#000';
|
|
4
|
+
export const actionIconBgColor = '#f1f7fe';
|
|
5
|
+
export const actionIconBorderColor = '#b7d1f0';
|
|
6
|
+
export const bubbleActiveBgColor = '#fdffe3';
|
|
7
|
+
export const messageStatusSendColor = '#61667a';
|
|
8
|
+
export const messageStatusFailedColor = '#de3535';
|
|
9
|
+
export const messageStatusReadColor = '#0a73eb';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messageStatusReadColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: messageStatusReadColor,
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, outgoingBubbleBgColor, actionIconBgColor, actionIconBorderColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor, messageStatusReadColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: outgoingBubbleBgColor,
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: actionIconBgColor,
|
|
20
|
+
border_color: actionIconBorderColor
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: messageStatusReadColor,
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: '#f1f7fe',
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: '#f1f6f4',
|
|
20
|
+
border_color: '#d4e5dd'
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: '#5cab8b',
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable camelcase */
|
|
2
|
+
import { incomingBubbleBgColor, bubbleActiveBgColor, actionIconColor, messageStatusSendColor, messageStatusFailedColor } from './commonColorVariable.js';
|
|
3
|
+
export default {
|
|
4
|
+
library: 'chat_components',
|
|
5
|
+
variables: {
|
|
6
|
+
messageBubble: {
|
|
7
|
+
active_bg_color: bubbleActiveBgColor,
|
|
8
|
+
messageBox_footer_text_color: '#5a616f'
|
|
9
|
+
},
|
|
10
|
+
messageBox: {
|
|
11
|
+
incoming_bg_color: incomingBubbleBgColor,
|
|
12
|
+
outgoing_bg_color: '#f1f7fe',
|
|
13
|
+
bg_color: '#f1f7fe',
|
|
14
|
+
failed_bg_color: '#fcebeb',
|
|
15
|
+
text_color: '#000'
|
|
16
|
+
},
|
|
17
|
+
actionIcon: {
|
|
18
|
+
color: actionIconColor,
|
|
19
|
+
bg_color: '#fcf2f0',
|
|
20
|
+
border_color: '#f6d9d2'
|
|
21
|
+
},
|
|
22
|
+
messageStatus: {
|
|
23
|
+
send_color: messageStatusSendColor,
|
|
24
|
+
read_color: '#f07b61',
|
|
25
|
+
failed_color: messageStatusFailedColor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|