@zohoim/chat-components 0.0.8 → 0.0.11

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.
Files changed (194) hide show
  1. package/es/ArticleBubble/ArticleBubble.js +19 -11
  2. package/es/ArticleBubble/css/ArticleBubble.module.css +39 -0
  3. package/es/AttachmentBubble/AttachmentBubble.js +12 -11
  4. package/es/AttachmentBubble/css/AttachmentBubble.module.css +12 -5
  5. package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +9 -2
  6. package/es/Audio/css/Audio.module.css +4 -0
  7. package/es/AudioBubble/css/AudioBubble.module.css +1 -1
  8. package/es/Fonts/puviFont.module.css +61 -0
  9. package/es/LocationBubble/LocationBubble.js +17 -12
  10. package/es/LocationBubble/css/LocationBubble.module.css +33 -0
  11. package/es/Message/Message.js +3 -3
  12. package/es/MessageActionsMore/css/MessageActionsMore.module.css +1 -0
  13. package/es/MessageAvatar/css/MessageAvatar.module.css +3 -3
  14. package/es/MessageBox/css/MessageBox.module.css +5 -2
  15. package/es/MoreActionItem/MoreActionItem.js +1 -0
  16. package/es/MoreActionItem/css/MoreActionItem.module.css +4 -0
  17. package/es/ReplyBubble/ReplyBubble.js +18 -2
  18. package/es/ReplyBubble/props/defaultProps.js +4 -1
  19. package/es/ReplyBubble/props/propTypes.js +9 -1
  20. package/es/ReplyBubbleContent/ReplyBubbleContent.js +56 -0
  21. package/es/ReplyBubbleContent/css/ReplyBubbleContent.module.css +50 -0
  22. package/es/ReplyBubbleContent/css/cssJSLogic.js +22 -0
  23. package/es/ReplyBubbleContent/index.js +1 -0
  24. package/es/ReplyBubbleContent/props/defaultProps.js +6 -0
  25. package/es/ReplyBubbleContent/props/propTypes.js +9 -0
  26. package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +6 -2
  27. package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +4 -0
  28. package/es/ReplyBubbleHeader/props/defaultProps.js +1 -1
  29. package/es/TextBubble/TextBubble.js +10 -10
  30. package/es/TextBubble/css/TextBubble.module.css +5 -1
  31. package/es/Theme/ThemeWrapper.js +25 -19
  32. package/es/Theme/desk/commonDeskColorVariable.js +3 -1
  33. package/es/Theme/desk/dark/blueTheme.js +23 -11
  34. package/es/Theme/desk/dark/commonColorVariable.js +5 -5
  35. package/es/Theme/desk/dark/greenTheme.js +22 -11
  36. package/es/Theme/desk/dark/orangeTheme.js +13 -2
  37. package/es/Theme/desk/dark/redTheme.js +22 -11
  38. package/es/Theme/desk/dark/yellowTheme.js +22 -11
  39. package/es/Theme/desk/light/blueTheme.js +25 -12
  40. package/es/Theme/desk/light/commonColorVariable.js +2 -1
  41. package/es/Theme/desk/light/greenTheme.js +9 -2
  42. package/es/Theme/desk/light/orangeTheme.js +17 -10
  43. package/es/Theme/desk/light/redTheme.js +17 -10
  44. package/es/Theme/desk/light/yellowTheme.js +17 -10
  45. package/es/Theme/desk/pureDark/blueTheme.js +21 -10
  46. package/es/Theme/desk/pureDark/commonColorVariable.js +2 -1
  47. package/es/Theme/desk/pureDark/greenTheme.js +21 -10
  48. package/es/Theme/desk/pureDark/orangeTheme.js +21 -10
  49. package/es/Theme/desk/pureDark/redTheme.js +21 -10
  50. package/es/Theme/desk/pureDark/yellowTheme.js +21 -10
  51. package/es/VideoBubble/css/VideoBubble.module.css +1 -1
  52. package/es/icons/factory/common/article.svg +4 -0
  53. package/es/icons/factory/common/quote.svg +1 -0
  54. package/es/icons/iconSrc/common/Article.js +17 -0
  55. package/es/icons/iconSrc/common/Quote.js +16 -0
  56. package/es/icons/iconSrc/common/index.js +2 -0
  57. package/es/{IMArticleBubble → im/IMArticleBubble}/IMArticleBubble.js +2 -2
  58. package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/IMAttachmentBubble.js +2 -2
  59. package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/IMAttachmentIcon.js +17 -17
  60. package/es/{IMAudioBubble → im/IMAudioBubble}/IMAudioBubble.js +2 -2
  61. package/es/im/IMAudioBubble/css/IMAudioBubble.module.css +8 -0
  62. package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/IMAutoMessageInfo.js +1 -1
  63. package/es/{IMDateTime → im/IMDateTime}/IMDateTime.js +1 -1
  64. package/es/im/IMDateTime/css/IMDateTime.module.css +5 -0
  65. package/es/{IMImageBubble → im/IMImageBubble}/IMImageBubble.js +2 -2
  66. package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/IMIntegrationIcon.js +7 -7
  67. package/es/{IMLocationBubble → im/IMLocationBubble}/IMLocationBubble.js +2 -2
  68. package/es/{IMMessage → im/IMMessage}/IMMessage.js +18 -12
  69. package/es/{IMMessage → im/IMMessage}/props/propTypes.js +9 -6
  70. package/es/{IMMessageActions → im/IMMessageActions}/IMMessageActions.js +5 -5
  71. package/es/{IMMessageActions → im/IMMessageActions}/css/IMMessageActions.module.css +8 -0
  72. package/es/{IMMessageAvatar → im/IMMessageAvatar}/IMMessageAvatar.js +1 -1
  73. package/es/{IMMessageContent → im/IMMessageContent}/IMMessageContent.js +27 -22
  74. package/es/{IMMessageContent → im/IMMessageContent}/props/propTypes.js +3 -1
  75. package/es/{IMMessageStatus → im/IMMessageStatus}/IMMessageStatus.js +4 -4
  76. package/es/im/IMReplyBubble/IMReplyBubble.js +87 -0
  77. package/es/im/IMReplyBubble/css/IMReplyBubble.module.css +24 -0
  78. package/es/im/IMReplyBubble/props/defaultProps.js +9 -0
  79. package/es/im/IMReplyBubble/props/propTypes.js +22 -0
  80. package/es/{IMTextBubble → im/IMTextBubble}/IMTextBubble.js +4 -3
  81. package/es/{IMTicketLink → im/IMTicketLink}/IMTicketLink.js +1 -1
  82. package/es/{IMTicketLink → im/IMTicketLink}/css/IMTicketLink.module.css +4 -1
  83. package/es/{IMVideoBubble → im/IMVideoBubble}/IMVideoBubble.js +2 -2
  84. package/es/im/index.js +20 -0
  85. package/es/index.js +31 -49
  86. package/package.json +4 -4
  87. package/es/IMAudioBubble/css/IMAudioBubble.module.css +0 -8
  88. package/es/IMDateTime/css/IMDateTime.module.css +0 -5
  89. package/es/IMReplyBubble/IMReplyBubble.js +0 -37
  90. package/es/IMReplyBubble/css/IMReplyBubble.module.css +0 -0
  91. package/es/IMReplyBubble/props/defaultProps.js +0 -6
  92. package/es/IMReplyBubble/props/propTypes.js +0 -6
  93. /package/es/{IMArticleBubble → im/IMArticleBubble}/css/IMArticleBubble.module.css +0 -0
  94. /package/es/{IMArticleBubble → im/IMArticleBubble}/css/cssJSLogic.js +0 -0
  95. /package/es/{IMArticleBubble → im/IMArticleBubble}/index.js +0 -0
  96. /package/es/{IMArticleBubble → im/IMArticleBubble}/props/defaultProps.js +0 -0
  97. /package/es/{IMArticleBubble → im/IMArticleBubble}/props/propTypes.js +0 -0
  98. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/css/IMAttachmentBubble.module.css +0 -0
  99. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/css/cssJSLogic.js +0 -0
  100. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/index.js +0 -0
  101. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/props/defaultProps.js +0 -0
  102. /package/es/{IMAttachmentBubble → im/IMAttachmentBubble}/props/propTypes.js +0 -0
  103. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/css/IMAttachmentIcon.module.css +0 -0
  104. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/css/cssJSLogic.js +0 -0
  105. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/index.js +0 -0
  106. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/props/defaultProps.js +0 -0
  107. /package/es/{IMAttachmentIcon → im/IMAttachmentIcon}/props/propTypes.js +0 -0
  108. /package/es/{IMAudioBubble → im/IMAudioBubble}/css/cssJSLogic.js +0 -0
  109. /package/es/{IMAudioBubble → im/IMAudioBubble}/index.js +0 -0
  110. /package/es/{IMAudioBubble → im/IMAudioBubble}/props/defaultProps.js +0 -0
  111. /package/es/{IMAudioBubble → im/IMAudioBubble}/props/propTypes.js +0 -0
  112. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/css/IMAutoMessageInfo.module.css +0 -0
  113. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/css/cssJSLogic.js +0 -0
  114. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/index.js +0 -0
  115. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/props/defaultProps.js +0 -0
  116. /package/es/{IMAutoMessageInfo → im/IMAutoMessageInfo}/props/propTypes.js +0 -0
  117. /package/es/{IMDateTime → im/IMDateTime}/css/cssJSLogic.js +0 -0
  118. /package/es/{IMDateTime → im/IMDateTime}/index.js +0 -0
  119. /package/es/{IMDateTime → im/IMDateTime}/props/defaultProps.js +0 -0
  120. /package/es/{IMDateTime → im/IMDateTime}/props/propTypes.js +0 -0
  121. /package/es/{IMImageBubble → im/IMImageBubble}/css/IMImageBubble.module.css +0 -0
  122. /package/es/{IMImageBubble → im/IMImageBubble}/css/cssJSLogic.js +0 -0
  123. /package/es/{IMImageBubble → im/IMImageBubble}/index.js +0 -0
  124. /package/es/{IMImageBubble → im/IMImageBubble}/props/defaultProps.js +0 -0
  125. /package/es/{IMImageBubble → im/IMImageBubble}/props/propTypes.js +0 -0
  126. /package/es/{IMInfoBubble → im/IMInfoBubble}/IMInfoBubble.js +0 -0
  127. /package/es/{IMInfoBubble → im/IMInfoBubble}/css/IMInfoBubble.module.css +0 -0
  128. /package/es/{IMInfoBubble → im/IMInfoBubble}/css/cssJSLogic.js +0 -0
  129. /package/es/{IMInfoBubble → im/IMInfoBubble}/index.js +0 -0
  130. /package/es/{IMInfoBubble → im/IMInfoBubble}/props/defaultProps.js +0 -0
  131. /package/es/{IMInfoBubble → im/IMInfoBubble}/props/propTypes.js +0 -0
  132. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/css/IMIntegrationIcon.module.css +0 -0
  133. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/css/cssJSLogic.js +0 -0
  134. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/index.js +0 -0
  135. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/defaultProps.js +0 -0
  136. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/propConstants.js +0 -0
  137. /package/es/{IMIntegrationIcon → im/IMIntegrationIcon}/props/propTypes.js +0 -0
  138. /package/es/{IMLocationBubble → im/IMLocationBubble}/css/IMLocationBubble.module.css +0 -0
  139. /package/es/{IMLocationBubble → im/IMLocationBubble}/css/cssJSLogic.js +0 -0
  140. /package/es/{IMLocationBubble → im/IMLocationBubble}/index.js +0 -0
  141. /package/es/{IMLocationBubble → im/IMLocationBubble}/props/defaultProps.js +0 -0
  142. /package/es/{IMLocationBubble → im/IMLocationBubble}/props/propTypes.js +0 -0
  143. /package/es/{IMMessage → im/IMMessage}/css/IMMessage.module.css +0 -0
  144. /package/es/{IMMessage → im/IMMessage}/css/cssJSLogic.js +0 -0
  145. /package/es/{IMMessage → im/IMMessage}/index.js +0 -0
  146. /package/es/{IMMessage → im/IMMessage}/props/defaultProps.js +0 -0
  147. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessage.js +0 -0
  148. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageActions.js +0 -0
  149. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageBox.js +0 -0
  150. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageBoxFooter.js +0 -0
  151. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageFooter.js +0 -0
  152. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageHeader.js +0 -0
  153. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageOwner.js +0 -0
  154. /package/es/{IMMessage → im/IMMessage}/renderChild/renderMessageStatus.js +0 -0
  155. /package/es/{IMMessageActions → im/IMMessageActions}/css/cssJSLogic.js +0 -0
  156. /package/es/{IMMessageActions → im/IMMessageActions}/index.js +0 -0
  157. /package/es/{IMMessageActions → im/IMMessageActions}/props/defaultProps.js +0 -0
  158. /package/es/{IMMessageActions → im/IMMessageActions}/props/propTypes.js +0 -0
  159. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/css/IMMessageAvatar.module.css +0 -0
  160. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/css/cssJSLogic.js +0 -0
  161. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/index.js +0 -0
  162. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/props/defaultProps.js +0 -0
  163. /package/es/{IMMessageAvatar → im/IMMessageAvatar}/props/propTypes.js +0 -0
  164. /package/es/{IMMessageContent → im/IMMessageContent}/css/IMMessageContent.module.css +0 -0
  165. /package/es/{IMMessageContent → im/IMMessageContent}/css/cssJSLogic.js +0 -0
  166. /package/es/{IMMessageContent → im/IMMessageContent}/index.js +0 -0
  167. /package/es/{IMMessageContent → im/IMMessageContent}/props/defaultProps.js +0 -0
  168. /package/es/{IMMessageMeta → im/IMMessageMeta}/IMMessageMeta.js +0 -0
  169. /package/es/{IMMessageMeta → im/IMMessageMeta}/css/IMMessageMeta.module.css +0 -0
  170. /package/es/{IMMessageMeta → im/IMMessageMeta}/css/cssJSLogic.js +0 -0
  171. /package/es/{IMMessageMeta → im/IMMessageMeta}/index.js +0 -0
  172. /package/es/{IMMessageMeta → im/IMMessageMeta}/props/defaultProps.js +0 -0
  173. /package/es/{IMMessageMeta → im/IMMessageMeta}/props/propTypes.js +0 -0
  174. /package/es/{IMMessageStatus → im/IMMessageStatus}/css/IMMessageStatus.module.css +0 -0
  175. /package/es/{IMMessageStatus → im/IMMessageStatus}/css/cssJSLogic.js +0 -0
  176. /package/es/{IMMessageStatus → im/IMMessageStatus}/index.js +0 -0
  177. /package/es/{IMMessageStatus → im/IMMessageStatus}/props/defaultProps.js +0 -0
  178. /package/es/{IMMessageStatus → im/IMMessageStatus}/props/propTypes.js +0 -0
  179. /package/es/{IMReplyBubble → im/IMReplyBubble}/css/cssJSLogic.js +0 -0
  180. /package/es/{IMReplyBubble → im/IMReplyBubble}/index.js +0 -0
  181. /package/es/{IMTextBubble → im/IMTextBubble}/css/IMTextBubble.module.css +0 -0
  182. /package/es/{IMTextBubble → im/IMTextBubble}/css/cssJSLogic.js +0 -0
  183. /package/es/{IMTextBubble → im/IMTextBubble}/index.js +0 -0
  184. /package/es/{IMTextBubble → im/IMTextBubble}/props/defaultProps.js +0 -0
  185. /package/es/{IMTextBubble → im/IMTextBubble}/props/propTypes.js +0 -0
  186. /package/es/{IMTicketLink → im/IMTicketLink}/css/cssJSLogic.js +0 -0
  187. /package/es/{IMTicketLink → im/IMTicketLink}/index.js +0 -0
  188. /package/es/{IMTicketLink → im/IMTicketLink}/props/defaultProps.js +0 -0
  189. /package/es/{IMTicketLink → im/IMTicketLink}/props/propTypes.js +0 -0
  190. /package/es/{IMVideoBubble → im/IMVideoBubble}/css/IMVideoBubble.module.css +0 -0
  191. /package/es/{IMVideoBubble → im/IMVideoBubble}/css/cssJSLogic.js +0 -0
  192. /package/es/{IMVideoBubble → im/IMVideoBubble}/index.js +0 -0
  193. /package/es/{IMVideoBubble → im/IMVideoBubble}/props/defaultProps.js +0 -0
  194. /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 'react';
5
+ import React from "react";
6
6
 
7
7
  /** ** Hooks *** */
8
- import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
8
+ import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
9
9
 
10
10
  /** ** Constants *** */
11
- import articleBubbleDefaultProps from './props/defaultProps';
12
- import articleBubblePropTypes from './props/propTypes';
11
+ import articleBubbleDefaultProps from "./props/defaultProps";
12
+ import articleBubblePropTypes from "./props/propTypes";
13
13
 
14
14
  /** ** Methods *** */
15
- import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
16
- import cssJSLogic from './css/cssJSLogic';
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 './css/ArticleBubble.module.css';
20
- import ArticleIcon from '../icons/iconSrc/actions/ConvertTicket';
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("div", {
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, null)), /*#__PURE__*/React.createElement("div", {
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 = 'ArticleBubble';
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 'react';
5
+ import React from "react";
6
6
 
7
7
  /** ** Hooks *** */
8
- import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
8
+ import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
9
9
 
10
10
  /** ** Constants *** */
11
- import attachmentBubbleDefaultProps from './props/defaultProps';
12
- import attachmentBubblePropTypes from './props/propTypes';
11
+ import attachmentBubbleDefaultProps from "./props/defaultProps";
12
+ import attachmentBubblePropTypes from "./props/propTypes";
13
13
 
14
14
  /** ** Methods *** */
15
- import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
16
- import cssJSLogic from './css/cssJSLogic';
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 './css/AttachmentBubble.module.css';
20
- import AttachmentBubbleInfo from '../AttachmentBubbleInfo/AttachmentBubbleInfo';
21
- import { Container, Box } from '@zohodesk/components/es/Layout';
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("div", {
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 = 'AttachmentBubble';
56
+ AttachmentBubble.displayName = "AttachmentBubble";
@@ -1,17 +1,24 @@
1
1
  .attachmentBubble {
2
- background-color: #fff;
2
+ background-color: var(--imlib_chat_components_attachmentBubble_bg_color);
3
3
  border-radius: 3px;
4
- border: 1px solid #ebf0f5;
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 #ebf0f5;
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 #ebf0f5;
19
+ border-left: 1px solid var(--imlib_chat_components_attachmentBubble_border_color);
13
20
  }
14
21
 
15
22
  .attachmentBubbleIcon, .attachmentBubbleContent{
16
- padding: 10px;
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: #000;
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: #5a616f;
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
  }
@@ -1,3 +1,7 @@
1
1
  .audio {
2
2
  width: 100%;
3
3
  }
4
+
5
+ .audio::-webkit-media-controls-panel {
6
+ background-color: var(--dot_white);
7
+ }
@@ -1,3 +1,3 @@
1
1
  .header{
2
- margin-bottom: 5px;
2
+ margin-bottom: var(--imlib_size_5);
3
3
  }
@@ -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 'react';
6
+ import React from "react";
7
7
 
8
8
  /** ** Hooks *** */
9
- import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
9
+ import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
10
10
 
11
11
  /** ** Constants *** */
12
- import locationBubbleDefaultProps from './props/defaultProps';
13
- import locationBubblePropTypes from './props/propTypes';
12
+ import locationBubbleDefaultProps from "./props/defaultProps";
13
+ import locationBubblePropTypes from "./props/propTypes";
14
14
 
15
15
  /** ** Methods *** */
16
- import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
17
- import cssJSLogic from './css/cssJSLogic';
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 './css/LocationBubble.module.css';
21
- import useLocationBubble from '@zohoim/chat-components-hooks/es/LocationBubble/useLocationBubble';
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("div", {
42
+ return /*#__PURE__*/React.createElement(Container, {
43
+ alignBox: "row",
44
+ align: "vertical",
42
45
  className: locationBubbleClass
43
- }, /*#__PURE__*/React.createElement("div", {
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("div", {
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 = 'LocationBubble';
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
  }
@@ -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,
@@ -4,6 +4,7 @@
4
4
 
5
5
  .popup {
6
6
  /* use this class name for popup customization*/
7
+ padding: var(--imlib_size_10) 0;
7
8
  }
8
9
 
9
10
  .popupWrapper {
@@ -5,15 +5,15 @@
5
5
 
6
6
  .icon {
7
7
  position: absolute;
8
- bottom: -6px;
8
+ bottom: calc(-1*var(--imlib_size_6));
9
9
  }
10
10
 
11
11
  [dir=ltr] .icon {
12
- right: -7px;
12
+ right: calc(-1*var(--imlib_size_7));
13
13
  }
14
14
 
15
15
  [dir=rtl] .icon {
16
- left: -7px;
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: inline-flex;
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
 
@@ -68,6 +68,7 @@ export default function MoreActionItem(props) {
68
68
  }, needIcon ? /*#__PURE__*/React.createElement(Box, {
69
69
  className: iconClass
70
70
  }, icon) : null, /*#__PURE__*/React.createElement(Box, {
71
+ flexible: true,
71
72
  className: textClass
72
73
  }, displayText)));
73
74
  }
@@ -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
- }, "Working On this...");
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
+ }