@zohoim/chat-components 0.0.7 → 0.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/es/ArticleBubble/ArticleBubble.js +19 -11
- package/es/ArticleBubble/css/ArticleBubble.module.css +39 -0
- package/es/AttachmentBubble/AttachmentBubble.js +12 -11
- package/es/AttachmentBubble/css/AttachmentBubble.module.css +12 -5
- package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +9 -2
- package/es/Audio/css/Audio.module.css +4 -0
- package/es/AudioBubble/css/AudioBubble.module.css +1 -1
- package/es/Fonts/puviFont.module.css +61 -0
- package/es/LocationBubble/LocationBubble.js +17 -12
- package/es/LocationBubble/css/LocationBubble.module.css +33 -0
- package/es/Message/Message.js +3 -3
- package/es/MessageActionsMore/css/MessageActionsMore.module.css +1 -0
- package/es/MessageAvatar/css/MessageAvatar.module.css +3 -3
- package/es/MessageBox/css/MessageBox.module.css +5 -2
- package/es/MoreActionItem/MoreActionItem.js +1 -0
- package/es/MoreActionItem/css/MoreActionItem.module.css +4 -0
- package/es/ReplyBubble/ReplyBubble.js +18 -2
- package/es/ReplyBubble/props/defaultProps.js +4 -1
- package/es/ReplyBubble/props/propTypes.js +9 -1
- package/es/ReplyBubbleContent/ReplyBubbleContent.js +56 -0
- package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +50 -0
- package/es/ReplyBubbleContent/css/cssJSLogic.js +22 -0
- package/es/ReplyBubbleContent/index.js +1 -0
- package/es/ReplyBubbleContent/props/defaultProps.js +6 -0
- package/es/ReplyBubbleContent/props/propTypes.js +9 -0
- package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +16 -12
- package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +4 -0
- package/es/ReplyBubbleHeader/props/defaultProps.js +1 -1
- package/es/TextBubble/TextBubble.js +10 -10
- package/es/TextBubble/css/TextBubble.module.css +5 -1
- package/es/Theme/ThemeWrapper.js +25 -19
- package/es/Theme/desk/commonDeskColorVariable.js +3 -1
- package/es/Theme/desk/dark/blueTheme.js +23 -11
- package/es/Theme/desk/dark/commonColorVariable.js +5 -5
- package/es/Theme/desk/dark/greenTheme.js +22 -11
- package/es/Theme/desk/dark/orangeTheme.js +13 -2
- package/es/Theme/desk/dark/redTheme.js +22 -11
- package/es/Theme/desk/dark/yellowTheme.js +22 -11
- package/es/Theme/desk/light/blueTheme.js +25 -12
- package/es/Theme/desk/light/commonColorVariable.js +2 -1
- package/es/Theme/desk/light/greenTheme.js +9 -2
- package/es/Theme/desk/light/orangeTheme.js +17 -10
- package/es/Theme/desk/light/redTheme.js +17 -10
- package/es/Theme/desk/light/yellowTheme.js +17 -10
- package/es/Theme/desk/pureDark/blueTheme.js +21 -10
- package/es/Theme/desk/pureDark/commonColorVariable.js +2 -1
- package/es/Theme/desk/pureDark/greenTheme.js +21 -10
- package/es/Theme/desk/pureDark/orangeTheme.js +21 -10
- package/es/Theme/desk/pureDark/redTheme.js +21 -10
- package/es/Theme/desk/pureDark/yellowTheme.js +21 -10
- package/es/VideoBubble/css/VideoBubble.module.css +1 -1
- package/es/icons/factory/common/article.svg +4 -0
- package/es/icons/factory/common/quote.svg +1 -0
- package/es/icons/iconSrc/common/Article.js +17 -0
- package/es/icons/iconSrc/common/Quote.js +16 -0
- package/es/icons/iconSrc/common/index.js +2 -0
- package/es/{IMArticleBubble → im/IMArticleBubble}/IMArticleBubble.js +2 -2
- package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/IMAttachmentBubble.js +2 -2
- package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/IMAttachmentIcon.js +17 -17
- package/es/{IMAudioBubble → im/IMAudioBubble}/IMAudioBubble.js +2 -2
- package/es/im/IMAudioBubble/css/IMAudioBubble.module.css +8 -0
- package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/IMAutoMessageInfo.js +1 -1
- package/es/{IMDateTime → im/IMDateTime}/IMDateTime.js +1 -1
- package/es/im/IMDateTime/css/IMDateTime.module.css +5 -0
- package/es/{IMImageBubble → im/IMImageBubble}/IMImageBubble.js +2 -2
- package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/IMIntegrationIcon.js +7 -7
- package/es/{IMLocationBubble → im/IMLocationBubble}/IMLocationBubble.js +2 -2
- package/es/{IMMessage → im/IMMessage}/IMMessage.js +18 -12
- package/es/{IMMessage → im/IMMessage}/props/propTypes.js +9 -6
- package/es/{IMMessageActions → im/IMMessageActions}/IMMessageActions.js +5 -5
- package/es/{IMMessageActions → im/IMMessageActions}/css/IMMessageActions.module.css +8 -0
- package/es/{IMMessageAvatar → im/IMMessageAvatar}/IMMessageAvatar.js +1 -1
- package/es/{IMMessageContent → im/IMMessageContent}/IMMessageContent.js +27 -22
- package/es/{IMMessageContent → im/IMMessageContent}/props/propTypes.js +3 -1
- package/es/{IMMessageStatus → im/IMMessageStatus}/IMMessageStatus.js +4 -4
- package/es/im/IMReplyBubble/IMReplyBubble.js +84 -0
- package/es/im/IMReplyBubble/css/IMReplyBubble.module.css +24 -0
- package/es/im/IMReplyBubble/props/defaultProps.js +9 -0
- package/es/im/IMReplyBubble/props/propTypes.js +22 -0
- package/es/{IMTextBubble → im/IMTextBubble}/IMTextBubble.js +4 -3
- package/es/{IMTicketLink → im/IMTicketLink}/IMTicketLink.js +1 -1
- package/es/{IMTicketLink → im/IMTicketLink}/css/IMTicketLink.module.css +4 -1
- package/es/{IMVideoBubble → im/IMVideoBubble}/IMVideoBubble.js +2 -2
- package/es/im/index.js +20 -0
- package/es/index.js +31 -49
- package/package.json +4 -4
- package/es/IMAudioBubble/css/IMAudioBubble.module.css +0 -8
- package/es/IMDateTime/css/IMDateTime.module.css +0 -5
- package/es/IMReplyBubble/IMReplyBubble.js +0 -37
- package/es/IMReplyBubble/css/IMReplyBubble.module.css +0 -0
- package/es/IMReplyBubble/props/defaultProps.js +0 -6
- package/es/IMReplyBubble/props/propTypes.js +0 -6
- /package/es/{IMArticleBubble → im/IMArticleBubble}/css/IMArticleBubble.module.css +0 -0
- /package/es/{IMArticleBubble → im/IMArticleBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMArticleBubble → im/IMArticleBubble}/index.js +0 -0
- /package/es/{IMArticleBubble → im/IMArticleBubble}/props/defaultProps.js +0 -0
- /package/es/{IMArticleBubble → im/IMArticleBubble}/props/propTypes.js +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/css/IMAttachmentBubble.module.css +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/index.js +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/props/defaultProps.js +0 -0
- /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/props/propTypes.js +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/css/IMAttachmentIcon.module.css +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/css/cssJSLogic.js +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/index.js +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/props/defaultProps.js +0 -0
- /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/props/propTypes.js +0 -0
- /package/es/{IMAudioBubble → im/IMAudioBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMAudioBubble → im/IMAudioBubble}/index.js +0 -0
- /package/es/{IMAudioBubble → im/IMAudioBubble}/props/defaultProps.js +0 -0
- /package/es/{IMAudioBubble → im/IMAudioBubble}/props/propTypes.js +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/css/IMAutoMessageInfo.module.css +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/css/cssJSLogic.js +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/index.js +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/props/defaultProps.js +0 -0
- /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/props/propTypes.js +0 -0
- /package/es/{IMDateTime → im/IMDateTime}/css/cssJSLogic.js +0 -0
- /package/es/{IMDateTime → im/IMDateTime}/index.js +0 -0
- /package/es/{IMDateTime → im/IMDateTime}/props/defaultProps.js +0 -0
- /package/es/{IMDateTime → im/IMDateTime}/props/propTypes.js +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/css/IMImageBubble.module.css +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/index.js +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/props/defaultProps.js +0 -0
- /package/es/{IMImageBubble → im/IMImageBubble}/props/propTypes.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/IMInfoBubble.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/css/IMInfoBubble.module.css +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/index.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/props/defaultProps.js +0 -0
- /package/es/{IMInfoBubble → im/IMInfoBubble}/props/propTypes.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/css/IMIntegrationIcon.module.css +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/css/cssJSLogic.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/index.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/defaultProps.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/propConstants.js +0 -0
- /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/propTypes.js +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/css/IMLocationBubble.module.css +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/index.js +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/props/defaultProps.js +0 -0
- /package/es/{IMLocationBubble → im/IMLocationBubble}/props/propTypes.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/css/IMMessage.module.css +0 -0
- /package/es/{IMMessage → im/IMMessage}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/index.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/props/defaultProps.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessage.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageActions.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageBox.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageBoxFooter.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageFooter.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageHeader.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageOwner.js +0 -0
- /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageStatus.js +0 -0
- /package/es/{IMMessageActions → im/IMMessageActions}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageActions → im/IMMessageActions}/index.js +0 -0
- /package/es/{IMMessageActions → im/IMMessageActions}/props/defaultProps.js +0 -0
- /package/es/{IMMessageActions → im/IMMessageActions}/props/propTypes.js +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/css/IMMessageAvatar.module.css +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/index.js +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/props/defaultProps.js +0 -0
- /package/es/{IMMessageAvatar → im/IMMessageAvatar}/props/propTypes.js +0 -0
- /package/es/{IMMessageContent → im/IMMessageContent}/css/IMMessageContent.module.css +0 -0
- /package/es/{IMMessageContent → im/IMMessageContent}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageContent → im/IMMessageContent}/index.js +0 -0
- /package/es/{IMMessageContent → im/IMMessageContent}/props/defaultProps.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/IMMessageMeta.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/css/IMMessageMeta.module.css +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/index.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/props/defaultProps.js +0 -0
- /package/es/{IMMessageMeta → im/IMMessageMeta}/props/propTypes.js +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/css/IMMessageStatus.module.css +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/css/cssJSLogic.js +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/index.js +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/props/defaultProps.js +0 -0
- /package/es/{IMMessageStatus → im/IMMessageStatus}/props/propTypes.js +0 -0
- /package/es/{IMReplyBubble → im/IMReplyBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMReplyBubble → im/IMReplyBubble}/index.js +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/css/IMTextBubble.module.css +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/index.js +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/props/defaultProps.js +0 -0
- /package/es/{IMTextBubble → im/IMTextBubble}/props/propTypes.js +0 -0
- /package/es/{IMTicketLink → im/IMTicketLink}/css/cssJSLogic.js +0 -0
- /package/es/{IMTicketLink → im/IMTicketLink}/index.js +0 -0
- /package/es/{IMTicketLink → im/IMTicketLink}/props/defaultProps.js +0 -0
- /package/es/{IMTicketLink → im/IMTicketLink}/props/propTypes.js +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/css/IMVideoBubble.module.css +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/css/cssJSLogic.js +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/index.js +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/props/defaultProps.js +0 -0
- /package/es/{IMVideoBubble → im/IMVideoBubble}/props/propTypes.js +0 -0
|
@@ -2,22 +2,23 @@
|
|
|
2
2
|
/* eslint-disable max-len */
|
|
3
3
|
|
|
4
4
|
/** ** Libraries *** */
|
|
5
|
-
import React from
|
|
5
|
+
import React from "react";
|
|
6
6
|
|
|
7
7
|
/** ** Hooks *** */
|
|
8
|
-
import useMergeStyle from
|
|
8
|
+
import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
|
|
9
9
|
|
|
10
10
|
/** ** Constants *** */
|
|
11
|
-
import articleBubbleDefaultProps from
|
|
12
|
-
import articleBubblePropTypes from
|
|
11
|
+
import articleBubbleDefaultProps from "./props/defaultProps";
|
|
12
|
+
import articleBubblePropTypes from "./props/propTypes";
|
|
13
13
|
|
|
14
14
|
/** ** Methods *** */
|
|
15
|
-
import renderHandler from
|
|
16
|
-
import cssJSLogic from
|
|
15
|
+
import renderHandler from "@zohoim/chat-components-utils/es/common/renderHandler";
|
|
16
|
+
import cssJSLogic from "./css/cssJSLogic";
|
|
17
|
+
import { Container, Box } from "@zohodesk/components/es/Layout";
|
|
17
18
|
|
|
18
19
|
/** ** Styles *** */
|
|
19
|
-
import style from
|
|
20
|
-
import ArticleIcon from
|
|
20
|
+
import style from "./css/ArticleBubble.module.css";
|
|
21
|
+
import ArticleIcon from "../icons/iconSrc/common/Article";
|
|
21
22
|
export default function ArticleBubble(props) {
|
|
22
23
|
const {
|
|
23
24
|
customStyle,
|
|
@@ -41,11 +42,18 @@ export default function ArticleBubble(props) {
|
|
|
41
42
|
} = cssJSLogic(props, newStyle);
|
|
42
43
|
return /*#__PURE__*/React.createElement("div", {
|
|
43
44
|
className: articleBubbleClass
|
|
44
|
-
}, /*#__PURE__*/React.createElement(
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
46
|
+
isCover: false,
|
|
47
|
+
alignBox: "row",
|
|
48
|
+
align: "vertical",
|
|
45
49
|
className: headerClass
|
|
46
50
|
}, /*#__PURE__*/React.createElement("div", {
|
|
47
51
|
className: iconClass
|
|
48
|
-
}, /*#__PURE__*/React.createElement(ArticleIcon,
|
|
52
|
+
}, /*#__PURE__*/React.createElement(ArticleIcon, {
|
|
53
|
+
customStyle: {
|
|
54
|
+
base: newStyle.articleIcon
|
|
55
|
+
}
|
|
56
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
49
57
|
className: headerTextClass
|
|
50
58
|
}, bubbleInfo)), /*#__PURE__*/React.createElement("div", {
|
|
51
59
|
className: articleWrapperClass
|
|
@@ -57,4 +65,4 @@ export default function ArticleBubble(props) {
|
|
|
57
65
|
}
|
|
58
66
|
ArticleBubble.propTypes = articleBubblePropTypes;
|
|
59
67
|
ArticleBubble.defaultProps = articleBubbleDefaultProps;
|
|
60
|
-
ArticleBubble.displayName =
|
|
68
|
+
ArticleBubble.displayName = "ArticleBubble";
|
|
@@ -1 +1,40 @@
|
|
|
1
|
+
.icon {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
1
4
|
|
|
5
|
+
.articleWrapper {
|
|
6
|
+
height: 80px;
|
|
7
|
+
padding: 8px 10px;
|
|
8
|
+
background-color: var(--imlib_chat_components_articleBubble_bg_color);
|
|
9
|
+
border-radius: 3px;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
border: 1px solid #ebf0f5;
|
|
12
|
+
margin: 4px 0 2px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.title {
|
|
16
|
+
color: #000;
|
|
17
|
+
font-size: 15px;
|
|
18
|
+
line-height: 1.5;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
word-wrap: normal;
|
|
22
|
+
text-overflow: ellipsis;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.summary {
|
|
26
|
+
color: #000;
|
|
27
|
+
font-size: 13px;
|
|
28
|
+
line-height: 1.5;
|
|
29
|
+
max-height: 40px;
|
|
30
|
+
-webkit-line-clamp: 2;
|
|
31
|
+
display: -webkit-box;
|
|
32
|
+
-webkit-box-orient: vertical;
|
|
33
|
+
word-break: break-word;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.articleIcon{
|
|
38
|
+
width:16px;
|
|
39
|
+
height: 16px;
|
|
40
|
+
}
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
/* eslint-disable max-len */
|
|
3
3
|
|
|
4
4
|
/** ** Libraries *** */
|
|
5
|
-
import React from
|
|
5
|
+
import React from "react";
|
|
6
6
|
|
|
7
7
|
/** ** Hooks *** */
|
|
8
|
-
import useMergeStyle from
|
|
8
|
+
import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
|
|
9
9
|
|
|
10
10
|
/** ** Constants *** */
|
|
11
|
-
import attachmentBubbleDefaultProps from
|
|
12
|
-
import attachmentBubblePropTypes from
|
|
11
|
+
import attachmentBubbleDefaultProps from "./props/defaultProps";
|
|
12
|
+
import attachmentBubblePropTypes from "./props/propTypes";
|
|
13
13
|
|
|
14
14
|
/** ** Methods *** */
|
|
15
|
-
import renderHandler from
|
|
16
|
-
import cssJSLogic from
|
|
15
|
+
import renderHandler from "@zohoim/chat-components-utils/es/common/renderHandler";
|
|
16
|
+
import cssJSLogic from "./css/cssJSLogic";
|
|
17
17
|
|
|
18
18
|
/** ** Styles *** */
|
|
19
|
-
import style from
|
|
20
|
-
import AttachmentBubbleInfo from
|
|
21
|
-
import { Container, Box } from
|
|
19
|
+
import style from "./css/AttachmentBubble.module.css";
|
|
20
|
+
import AttachmentBubbleInfo from "../AttachmentBubbleInfo/AttachmentBubbleInfo";
|
|
21
|
+
import { Container, Box } from "@zohodesk/components/es/Layout";
|
|
22
22
|
export default function AttachmentBubble(props) {
|
|
23
23
|
const {
|
|
24
24
|
customStyle,
|
|
@@ -42,7 +42,8 @@ export default function AttachmentBubble(props) {
|
|
|
42
42
|
className: attachmentBubbleClass
|
|
43
43
|
}, /*#__PURE__*/React.createElement("div", {
|
|
44
44
|
className: attachmentBubbleIconClass
|
|
45
|
-
}, fileIcon), /*#__PURE__*/React.createElement(
|
|
45
|
+
}, fileIcon), /*#__PURE__*/React.createElement(Box, {
|
|
46
|
+
flexible: true,
|
|
46
47
|
className: attachmentBubbleContentClass
|
|
47
48
|
}, /*#__PURE__*/React.createElement(AttachmentBubbleInfo, {
|
|
48
49
|
customStyle: bubbleInfoCustomStyle,
|
|
@@ -52,4 +53,4 @@ export default function AttachmentBubble(props) {
|
|
|
52
53
|
}
|
|
53
54
|
AttachmentBubble.propTypes = attachmentBubblePropTypes;
|
|
54
55
|
AttachmentBubble.defaultProps = attachmentBubbleDefaultProps;
|
|
55
|
-
AttachmentBubble.displayName =
|
|
56
|
+
AttachmentBubble.displayName = "AttachmentBubble";
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
.attachmentBubble {
|
|
2
|
-
background-color:
|
|
2
|
+
background-color: var(--imlib_chat_components_attachmentBubble_bg_color);
|
|
3
3
|
border-radius: 3px;
|
|
4
|
-
border: 1px solid
|
|
4
|
+
border: 1px solid var(--imlib_chat_components_attachmentBubble_border_color);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.attachmentBubbleIcon{
|
|
8
|
+
width: var(--imlib_size_60);
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
5
12
|
}
|
|
6
13
|
|
|
7
14
|
[dir=ltr] .attachmentBubbleIcon{
|
|
8
|
-
border-right: 1px solid
|
|
15
|
+
border-right: 1px solid var(--imlib_chat_components_attachmentBubble_border_color);
|
|
9
16
|
}
|
|
10
17
|
|
|
11
18
|
[dir=rtl] .attachmentBubbleIcon{
|
|
12
|
-
border-left: 1px solid
|
|
19
|
+
border-left: 1px solid var(--imlib_chat_components_attachmentBubble_border_color);
|
|
13
20
|
}
|
|
14
21
|
|
|
15
22
|
.attachmentBubbleIcon, .attachmentBubbleContent{
|
|
16
|
-
padding:
|
|
23
|
+
padding: var(--imlib_size_10);
|
|
17
24
|
}
|
|
@@ -8,11 +8,18 @@
|
|
|
8
8
|
composes: varClass;
|
|
9
9
|
font-size: var(--attachmentBubbleInfo-fileName_font_size);
|
|
10
10
|
font-family: var(--attachmentBubbleInfo-fileName_font_family);
|
|
11
|
-
color:
|
|
11
|
+
color: var(--imlib_chat_components_attachmentBubbleInfo_fileName_color);
|
|
12
12
|
margin-bottom: var(--imlib_size_5);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.fileSize {
|
|
16
16
|
font-size: var(--attachmentBubbleInfo-fileSize_font_size);
|
|
17
|
-
color:
|
|
17
|
+
color: var(--imlib_chat_components_attachmentBubbleInfo_fileSize_color);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.fileName,
|
|
21
|
+
.fileSize{
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
text-overflow: ellipsis;
|
|
18
25
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*$Id$*/
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: "ZohoPuviLight";
|
|
4
|
+
src: url("https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Light.woff2")
|
|
5
|
+
format("woff2");
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-weight: normal;
|
|
8
|
+
text-rendering: optimizeLegibility;
|
|
9
|
+
font-display: swap;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: "ZohoPuviRegular";
|
|
14
|
+
src: url("https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Regular.woff2")
|
|
15
|
+
format("woff2");
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: normal;
|
|
18
|
+
text-rendering: optimizeLegibility;
|
|
19
|
+
font-display: swap;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: "ZohoPuviSemiBold";
|
|
24
|
+
src: url("https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Semibold.woff2")
|
|
25
|
+
format("woff2");
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: normal;
|
|
28
|
+
text-rendering: optimizeLegibility;
|
|
29
|
+
font-display: swap;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@font-face {
|
|
33
|
+
font-family: "ZohoPuviBold";
|
|
34
|
+
src: url("https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Bold.woff2")
|
|
35
|
+
format("woff2");
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-weight: bold;
|
|
38
|
+
text-rendering: optimizeLegibility;
|
|
39
|
+
font-display: swap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@font-face {
|
|
43
|
+
font-family: "ZohoPuviExtBd";
|
|
44
|
+
src: url("https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Extrabold.woff2")
|
|
45
|
+
format("woff2");
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: normal;
|
|
48
|
+
text-rendering: optimizeLegibility;
|
|
49
|
+
font-display: swap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: "ZohoPuviMedium";
|
|
54
|
+
src: url("https://static.zohocdn.com/zohofonts/zohopuvi/4.0/Zoho_Puvi_Medium.woff2")
|
|
55
|
+
format("woff2");
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: normal;
|
|
58
|
+
text-rendering: optimizeLegibility;
|
|
59
|
+
font-display: swap;
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -3,22 +3,23 @@
|
|
|
3
3
|
/* eslint-disable max-len */
|
|
4
4
|
|
|
5
5
|
/** ** Libraries *** */
|
|
6
|
-
import React from
|
|
6
|
+
import React from "react";
|
|
7
7
|
|
|
8
8
|
/** ** Hooks *** */
|
|
9
|
-
import useMergeStyle from
|
|
9
|
+
import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
|
|
10
10
|
|
|
11
11
|
/** ** Constants *** */
|
|
12
|
-
import locationBubbleDefaultProps from
|
|
13
|
-
import locationBubblePropTypes from
|
|
12
|
+
import locationBubbleDefaultProps from "./props/defaultProps";
|
|
13
|
+
import locationBubblePropTypes from "./props/propTypes";
|
|
14
14
|
|
|
15
15
|
/** ** Methods *** */
|
|
16
|
-
import renderHandler from
|
|
17
|
-
import cssJSLogic from
|
|
16
|
+
import renderHandler from "@zohoim/chat-components-utils/es/common/renderHandler";
|
|
17
|
+
import cssJSLogic from "./css/cssJSLogic";
|
|
18
|
+
import { Container, Box } from "@zohodesk/components/es/Layout";
|
|
18
19
|
|
|
19
20
|
/** ** Styles *** */
|
|
20
|
-
import style from
|
|
21
|
-
import useLocationBubble from
|
|
21
|
+
import style from "./css/LocationBubble.module.css";
|
|
22
|
+
import useLocationBubble from "@zohoim/chat-components-hooks/es/LocationBubble/useLocationBubble";
|
|
22
23
|
export default function LocationBubble(props) {
|
|
23
24
|
const {
|
|
24
25
|
customStyle
|
|
@@ -38,9 +39,12 @@ export default function LocationBubble(props) {
|
|
|
38
39
|
textWrapperClass,
|
|
39
40
|
textLinkClass
|
|
40
41
|
} = cssJSLogic(props, newStyle);
|
|
41
|
-
return /*#__PURE__*/React.createElement(
|
|
42
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
43
|
+
alignBox: "row",
|
|
44
|
+
align: "vertical",
|
|
42
45
|
className: locationBubbleClass
|
|
43
|
-
}, /*#__PURE__*/React.createElement(
|
|
46
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
47
|
+
shrink: true,
|
|
44
48
|
className: imageWrapperClass
|
|
45
49
|
}, /*#__PURE__*/React.createElement("a", {
|
|
46
50
|
target: "_blank",
|
|
@@ -49,7 +53,8 @@ export default function LocationBubble(props) {
|
|
|
49
53
|
className: imageLinkClass
|
|
50
54
|
}, /*#__PURE__*/React.createElement("div", {
|
|
51
55
|
className: imageClass
|
|
52
|
-
}))), /*#__PURE__*/React.createElement(
|
|
56
|
+
}))), /*#__PURE__*/React.createElement(Box, {
|
|
57
|
+
flexible: true,
|
|
53
58
|
className: textWrapperClass
|
|
54
59
|
}, /*#__PURE__*/React.createElement("a", {
|
|
55
60
|
target: "_blank",
|
|
@@ -60,4 +65,4 @@ export default function LocationBubble(props) {
|
|
|
60
65
|
}
|
|
61
66
|
LocationBubble.propTypes = locationBubblePropTypes;
|
|
62
67
|
LocationBubble.defaultProps = locationBubbleDefaultProps;
|
|
63
|
-
LocationBubble.displayName =
|
|
68
|
+
LocationBubble.displayName = "LocationBubble";
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
.imageWrapper {
|
|
2
|
+
width: 60px;
|
|
3
|
+
height: 60px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.locationBubble {
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
width: 100%;
|
|
9
|
+
background-color: var(--imlib_chat_components_locationBubble_bg_color);
|
|
10
|
+
padding: 10px;
|
|
11
|
+
}
|
|
12
|
+
|
|
1
13
|
.image {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
2
16
|
background-image: url('../images/location.png');
|
|
17
|
+
background-repeat: no-repeat;
|
|
18
|
+
background-size: cover;
|
|
19
|
+
border-radius: 3px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[dir=ltr] .textWrapper {
|
|
23
|
+
margin: 0 0 0 8px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[dir=rtl] .textWrapper {
|
|
27
|
+
margin: 0 8px 0 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.textLink {
|
|
31
|
+
display: block;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
color: #0a73eb;
|
|
3
36
|
}
|
package/es/Message/Message.js
CHANGED
|
@@ -12,9 +12,9 @@ import { direction as directionConstants } from '@zohoim/chat-components-utils/e
|
|
|
12
12
|
/** ** Components *** */
|
|
13
13
|
import MessageBubble from '../MessageBubble/MessageBubble';
|
|
14
14
|
import MessageBox from '../MessageBox/MessageBox';
|
|
15
|
-
import IMMessageAvatar from '../IMMessageAvatar/IMMessageAvatar';
|
|
16
|
-
import IMMessageActions from '../IMMessageActions/IMMessageActions';
|
|
17
|
-
import IMMessageStatus from '../IMMessageStatus/IMMessageStatus';
|
|
15
|
+
import IMMessageAvatar from '../im/IMMessageAvatar/IMMessageAvatar';
|
|
16
|
+
import IMMessageActions from '../im/IMMessageActions/IMMessageActions';
|
|
17
|
+
import IMMessageStatus from '../im/IMMessageStatus/IMMessageStatus';
|
|
18
18
|
export default function Message(props) {
|
|
19
19
|
const {
|
|
20
20
|
customStyle,
|
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
.icon {
|
|
7
7
|
position: absolute;
|
|
8
|
-
bottom: -
|
|
8
|
+
bottom: calc(-1*var(--imlib_size_6));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
[dir=ltr] .icon {
|
|
12
|
-
right: -
|
|
12
|
+
right: calc(-1*var(--imlib_size_7));
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
[dir=rtl] .icon {
|
|
16
|
-
left: -
|
|
16
|
+
left: calc(-1*var(--imlib_size_7));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.avatar {
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
.messageBoxContainer {
|
|
12
12
|
composes: varClass;
|
|
13
13
|
|
|
14
|
-
display:
|
|
15
|
-
flex-direction: row;
|
|
14
|
+
display: grid;
|
|
15
|
+
/* flex-direction: row; */
|
|
16
|
+
grid-template-columns: 1fr auto;
|
|
16
17
|
align-items: flex-end;
|
|
17
18
|
color: var(--imlib_chat_components_messageBox_text_color);
|
|
18
19
|
/* max-width: var(--messageBox-max_width); */
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
|
|
33
34
|
.messageContentWrapper {
|
|
34
35
|
/*Use this class for message content customization*/
|
|
36
|
+
line-height: 150%;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
.messageHeaderWrapper {
|
|
@@ -51,6 +53,7 @@
|
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
.failedMessageBox {
|
|
56
|
+
color: var(--imlib_chat_components_messageBox_failed_text_color);
|
|
54
57
|
background-color: var(--imlib_chat_components_messageBox_failed_bg_color);
|
|
55
58
|
}
|
|
56
59
|
|
|
@@ -15,11 +15,15 @@
|
|
|
15
15
|
|
|
16
16
|
.icon {
|
|
17
17
|
/*Use this class name for list item icon customization */
|
|
18
|
+
display: flex;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.text {
|
|
21
22
|
composes: varClass;
|
|
22
23
|
font-size: var(--moreActionItem-content_size);
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
[dir=ltr] .text {
|
|
@@ -17,13 +17,19 @@ import cssJSLogic from './css/cssJSLogic';
|
|
|
17
17
|
|
|
18
18
|
/** ** Styles *** */
|
|
19
19
|
import style from './css/ReplyBubble.module.css';
|
|
20
|
+
import ReplyBubbleHeader from '../ReplyBubbleHeader/ReplyBubbleHeader';
|
|
21
|
+
import ReplyBubbleContent from '../ReplyBubbleContent/ReplyBubbleContent';
|
|
20
22
|
export default function ReplyBubble(props) {
|
|
21
23
|
const {
|
|
22
24
|
customStyle,
|
|
23
25
|
headerCustomStyle,
|
|
26
|
+
senderName,
|
|
24
27
|
time,
|
|
25
28
|
replyText,
|
|
26
|
-
timeCustomStyle
|
|
29
|
+
timeCustomStyle,
|
|
30
|
+
contentCustomStyle,
|
|
31
|
+
renderIcon,
|
|
32
|
+
renderMessage
|
|
27
33
|
} = props;
|
|
28
34
|
|
|
29
35
|
/* External customization */
|
|
@@ -34,7 +40,17 @@ export default function ReplyBubble(props) {
|
|
|
34
40
|
} = cssJSLogic(props, newStyle);
|
|
35
41
|
return /*#__PURE__*/React.createElement("div", {
|
|
36
42
|
className: replyBubbleClass
|
|
37
|
-
},
|
|
43
|
+
}, /*#__PURE__*/React.createElement(ReplyBubbleHeader, {
|
|
44
|
+
customStyle: headerCustomStyle,
|
|
45
|
+
replyText: replyText,
|
|
46
|
+
time: time,
|
|
47
|
+
timeCustomStyle: timeCustomStyle
|
|
48
|
+
}), /*#__PURE__*/React.createElement(ReplyBubbleContent, {
|
|
49
|
+
customStyle: contentCustomStyle,
|
|
50
|
+
senderName: senderName,
|
|
51
|
+
renderIcon: renderIcon,
|
|
52
|
+
renderMessage: renderMessage
|
|
53
|
+
}));
|
|
38
54
|
}
|
|
39
55
|
ReplyBubble.propTypes = replyBubblePropTypes;
|
|
40
56
|
ReplyBubble.defaultProps = replyBubbleDefaultProps;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/** ** Constants *** */
|
|
2
2
|
import { dummyObject } from '@zohoim/chat-components-utils/es/constants';
|
|
3
3
|
const replyBubbleDefaultProps = {
|
|
4
|
-
customStyle: dummyObject
|
|
4
|
+
customStyle: dummyObject,
|
|
5
|
+
headerCustomStyle: dummyObject,
|
|
6
|
+
timeCustomStyle: dummyObject,
|
|
7
|
+
contentCustomStyle: dummyObject
|
|
5
8
|
};
|
|
6
9
|
export default replyBubbleDefaultProps;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
/** ** Libraries *** */
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
const replyBubblePropTypes = {
|
|
4
|
-
customStyle: PropTypes.object
|
|
4
|
+
customStyle: PropTypes.object,
|
|
5
|
+
headerCustomStyle: PropTypes.object,
|
|
6
|
+
timeCustomStyle: PropTypes.object,
|
|
7
|
+
contentCustomStyle: PropTypes.object,
|
|
8
|
+
senderName: PropTypes.string,
|
|
9
|
+
time: PropTypes.string,
|
|
10
|
+
replyText: PropTypes.string,
|
|
11
|
+
renderIcon: PropTypes.func,
|
|
12
|
+
renderMessage: PropTypes.func
|
|
5
13
|
};
|
|
6
14
|
export default replyBubblePropTypes;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* eslint-disable react/jsx-no-bind */
|
|
2
|
+
/* eslint-disable max-len */
|
|
3
|
+
|
|
4
|
+
/** ** Libraries *** */
|
|
5
|
+
import React from "react";
|
|
6
|
+
|
|
7
|
+
/** ** Hooks *** */
|
|
8
|
+
import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
|
|
9
|
+
|
|
10
|
+
/** ** Constants *** */
|
|
11
|
+
import replyBubbleContentDefaultProps from "./props/defaultProps";
|
|
12
|
+
import replyBubbleContentPropTypes from "./props/propTypes";
|
|
13
|
+
|
|
14
|
+
/** ** Methods *** */
|
|
15
|
+
import renderHandler from "@zohoim/chat-components-utils/es/common/renderHandler";
|
|
16
|
+
import cssJSLogic from "./css/cssJSLogic";
|
|
17
|
+
|
|
18
|
+
/** ** Styles *** */
|
|
19
|
+
import style from "./css/ReplyBubbleContent.module.css";
|
|
20
|
+
import { Container, Box } from "@zohodesk/components/es/Layout";
|
|
21
|
+
export default function ReplyBubbleContent(props) {
|
|
22
|
+
const {
|
|
23
|
+
customStyle,
|
|
24
|
+
senderName,
|
|
25
|
+
renderIcon,
|
|
26
|
+
renderMessage
|
|
27
|
+
} = props;
|
|
28
|
+
|
|
29
|
+
/* External customization */
|
|
30
|
+
const newStyle = useMergeStyle(style, customStyle);
|
|
31
|
+
/* CSS classnames added based on logic */
|
|
32
|
+
const {
|
|
33
|
+
replyBubbleContentClass,
|
|
34
|
+
nameClass,
|
|
35
|
+
iconWrapperClass,
|
|
36
|
+
messageWrapperClass
|
|
37
|
+
} = cssJSLogic(props, newStyle);
|
|
38
|
+
const icon = renderHandler(renderIcon)();
|
|
39
|
+
const messageContent = renderHandler(renderMessage)();
|
|
40
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
41
|
+
alignBox: "row",
|
|
42
|
+
align: "vertical",
|
|
43
|
+
className: replyBubbleContentClass
|
|
44
|
+
}, icon ? /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: iconWrapperClass
|
|
46
|
+
}, icon)) : "", /*#__PURE__*/React.createElement(Box, {
|
|
47
|
+
flexible: true
|
|
48
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: nameClass
|
|
50
|
+
}, senderName), /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: messageWrapperClass
|
|
52
|
+
}, messageContent)));
|
|
53
|
+
}
|
|
54
|
+
ReplyBubbleContent.propTypes = replyBubbleContentPropTypes;
|
|
55
|
+
ReplyBubbleContent.defaultProps = replyBubbleContentDefaultProps;
|
|
56
|
+
ReplyBubbleContent.displayName = "ReplyBubbleContent";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.replyBubbleContent {
|
|
2
|
+
position: relative;
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
border-radius: 3px;
|
|
5
|
+
}[dir=ltr] .replyBubbleContent {
|
|
6
|
+
padding: 10px 10px 10px 20px;
|
|
7
|
+
}[dir=rtl] .replyBubbleContent {
|
|
8
|
+
padding: 10px 20px 10px 10px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.replyBubbleContent::after{
|
|
12
|
+
content: "";
|
|
13
|
+
width: 2px;
|
|
14
|
+
display: block;
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 10px;
|
|
17
|
+
bottom: 10px;
|
|
18
|
+
background-color: #cddbf2;
|
|
19
|
+
border-radius: 30px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[dir=ltr] .replyBubbleContent::after{
|
|
23
|
+
left: 10px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[dir=rtl] .replyBubbleContent::after{
|
|
27
|
+
right: 10px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.name {
|
|
31
|
+
color: #000;
|
|
32
|
+
font-size: 15px;
|
|
33
|
+
line-height: 1.5;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
word-wrap: normal;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.messageWrapper {
|
|
41
|
+
color: #000;
|
|
42
|
+
font-size: 13px;
|
|
43
|
+
line-height: 1.5;
|
|
44
|
+
max-height: 40px;
|
|
45
|
+
-webkit-line-clamp: 2;
|
|
46
|
+
display: -webkit-box;
|
|
47
|
+
-webkit-box-orient: vertical;
|
|
48
|
+
word-break: break-word;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** ** Methods *** */
|
|
2
|
+
import { compileClassNames } from '@zohodesk/utils';
|
|
3
|
+
export default function cssJSLogic(props, style) {
|
|
4
|
+
const replyBubbleContentClass = compileClassNames({
|
|
5
|
+
[style.replyBubbleContent]: true
|
|
6
|
+
});
|
|
7
|
+
const nameClass = compileClassNames({
|
|
8
|
+
[style.name]: true
|
|
9
|
+
});
|
|
10
|
+
const iconWrapperClass = compileClassNames({
|
|
11
|
+
[style.iconWrapper]: true
|
|
12
|
+
});
|
|
13
|
+
const messageWrapperClass = compileClassNames({
|
|
14
|
+
[style.messageWrapper]: true
|
|
15
|
+
});
|
|
16
|
+
return {
|
|
17
|
+
replyBubbleContentClass,
|
|
18
|
+
nameClass,
|
|
19
|
+
iconWrapperClass,
|
|
20
|
+
messageWrapperClass
|
|
21
|
+
};
|
|
22
|
+
}
|