@zohoim/chat-components 0.0.6 → 0.0.8

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 (302) hide show
  1. package/es/ActionIcon/ActionIcon.js +13 -11
  2. package/es/ArticleBubble/ArticleBubble.js +60 -0
  3. package/es/ArticleBubble/css/ArticleBubble.module.css +1 -0
  4. package/es/ArticleBubble/css/cssJSLogic.js +34 -0
  5. package/es/ArticleBubble/index.js +1 -0
  6. package/es/ArticleBubble/props/defaultProps.js +6 -0
  7. package/es/ArticleBubble/props/propTypes.js +10 -0
  8. package/es/AttachmentBubble/AttachmentBubble.js +55 -0
  9. package/es/AttachmentBubble/css/AttachmentBubble.module.css +17 -0
  10. package/es/AttachmentBubble/css/cssJSLogic.js +18 -0
  11. package/es/AttachmentBubble/index.js +1 -0
  12. package/es/AttachmentBubble/props/defaultProps.js +7 -0
  13. package/es/AttachmentBubble/props/propTypes.js +10 -0
  14. package/es/AttachmentBubbleInfo/AttachmentBubbleInfo.js +45 -0
  15. package/es/AttachmentBubbleInfo/css/AttachmentBubbleInfo.module.css +18 -0
  16. package/es/AttachmentBubbleInfo/css/cssJSLogic.js +18 -0
  17. package/es/AttachmentBubbleInfo/index.js +1 -0
  18. package/es/AttachmentBubbleInfo/props/defaultProps.js +6 -0
  19. package/es/AttachmentBubbleInfo/props/propTypes.js +8 -0
  20. package/es/Audio/Audio.js +60 -0
  21. package/es/Audio/css/Audio.module.css +3 -0
  22. package/es/Audio/css/cssJSLogic.js +14 -0
  23. package/es/Audio/index.js +1 -0
  24. package/es/Audio/props/defaultProps.js +7 -0
  25. package/es/Audio/props/propTypes.js +9 -0
  26. package/es/AudioBubble/AudioBubble.js +58 -0
  27. package/es/AudioBubble/css/AudioBubble.module.css +3 -0
  28. package/es/AudioBubble/css/cssJSLogic.js +20 -0
  29. package/es/AudioBubble/index.js +1 -0
  30. package/es/AudioBubble/props/defaultProps.js +8 -0
  31. package/es/AudioBubble/props/propTypes.js +12 -0
  32. package/es/IMArticleBubble/IMArticleBubble.js +55 -0
  33. package/es/IMArticleBubble/css/IMArticleBubble.module.css +0 -0
  34. package/es/IMArticleBubble/css/cssJSLogic.js +10 -0
  35. package/es/IMArticleBubble/index.js +1 -0
  36. package/es/IMArticleBubble/props/defaultProps.js +8 -0
  37. package/es/IMArticleBubble/props/propTypes.js +14 -0
  38. package/es/IMAttachmentBubble/IMAttachmentBubble.js +63 -0
  39. package/es/IMAttachmentBubble/css/IMAttachmentBubble.module.css +1 -0
  40. package/es/IMAttachmentBubble/css/cssJSLogic.js +10 -0
  41. package/es/IMAttachmentBubble/index.js +1 -0
  42. package/es/IMAttachmentBubble/props/defaultProps.js +10 -0
  43. package/es/IMAttachmentBubble/props/propTypes.js +16 -0
  44. package/es/IMAttachmentIcon/IMAttachmentIcon.js +86 -0
  45. package/es/IMAttachmentIcon/css/IMAttachmentIcon.module.css +4 -0
  46. package/es/IMAttachmentIcon/css/cssJSLogic.js +16 -0
  47. package/es/IMAttachmentIcon/index.js +1 -0
  48. package/es/IMAttachmentIcon/props/defaultProps.js +6 -0
  49. package/es/IMAttachmentIcon/props/propTypes.js +26 -0
  50. package/es/IMAudioBubble/IMAudioBubble.js +63 -0
  51. package/es/IMAudioBubble/css/IMAudioBubble.module.css +8 -0
  52. package/es/IMAudioBubble/css/cssJSLogic.js +20 -0
  53. package/es/IMAudioBubble/index.js +1 -0
  54. package/es/IMAudioBubble/props/defaultProps.js +11 -0
  55. package/es/IMAudioBubble/props/propTypes.js +17 -0
  56. package/es/IMAutoMessageInfo/IMAutoMessageInfo.js +43 -0
  57. package/es/IMAutoMessageInfo/css/IMAutoMessageInfo.module.css +13 -0
  58. package/es/IMAutoMessageInfo/css/cssJSLogic.js +10 -0
  59. package/es/IMAutoMessageInfo/index.js +1 -0
  60. package/es/IMAutoMessageInfo/props/defaultProps.js +6 -0
  61. package/es/IMAutoMessageInfo/props/propTypes.js +26 -0
  62. package/es/IMDateTime/IMDateTime.js +41 -0
  63. package/es/IMDateTime/css/IMDateTime.module.css +5 -0
  64. package/es/IMDateTime/css/cssJSLogic.js +10 -0
  65. package/es/IMDateTime/index.js +1 -0
  66. package/es/IMDateTime/props/defaultProps.js +6 -0
  67. package/es/IMDateTime/props/propTypes.js +6 -0
  68. package/es/IMImageBubble/IMImageBubble.js +49 -0
  69. package/es/IMImageBubble/css/IMImageBubble.module.css +0 -0
  70. package/es/IMImageBubble/css/cssJSLogic.js +10 -0
  71. package/es/IMImageBubble/index.js +1 -0
  72. package/es/IMImageBubble/props/defaultProps.js +7 -0
  73. package/es/IMImageBubble/props/propTypes.js +13 -0
  74. package/es/IMInfoBubble/IMInfoBubble.js +37 -0
  75. package/es/IMInfoBubble/css/IMInfoBubble.module.css +0 -0
  76. package/es/IMInfoBubble/css/cssJSLogic.js +10 -0
  77. package/es/IMInfoBubble/index.js +1 -0
  78. package/es/IMInfoBubble/props/defaultProps.js +6 -0
  79. package/es/IMInfoBubble/props/propTypes.js +6 -0
  80. package/es/IMLocationBubble/IMLocationBubble.js +49 -0
  81. package/es/IMLocationBubble/css/IMLocationBubble.module.css +0 -0
  82. package/es/IMLocationBubble/css/cssJSLogic.js +10 -0
  83. package/es/IMLocationBubble/index.js +1 -0
  84. package/es/IMLocationBubble/props/defaultProps.js +8 -0
  85. package/es/IMLocationBubble/props/propTypes.js +11 -0
  86. package/es/IMMessage/IMMessage.js +156 -109
  87. package/es/IMMessage/props/defaultProps.js +22 -35
  88. package/es/IMMessage/props/propTypes.js +95 -48
  89. package/es/IMMessageActions/IMMessageActions.js +9 -5
  90. package/es/IMMessageActions/css/IMMessageActions.module.css +2 -2
  91. package/es/IMMessageAvatar/props/defaultProps.js +4 -2
  92. package/es/IMMessageContent/IMMessageContent.js +84 -0
  93. package/es/IMMessageContent/css/IMMessageContent.module.css +0 -0
  94. package/es/IMMessageContent/css/cssJSLogic.js +10 -0
  95. package/es/IMMessageContent/index.js +1 -0
  96. package/es/IMMessageContent/props/defaultProps.js +8 -0
  97. package/es/IMMessageContent/props/propTypes.js +35 -0
  98. package/es/IMMessageMeta/IMMessageMeta.js +60 -0
  99. package/es/IMMessageMeta/css/IMMessageMeta.module.css +32 -0
  100. package/es/IMMessageMeta/css/cssJSLogic.js +20 -0
  101. package/es/IMMessageMeta/index.js +1 -0
  102. package/es/IMMessageMeta/props/defaultProps.js +10 -0
  103. package/es/IMMessageMeta/props/propTypes.js +30 -0
  104. package/es/IMMessageStatus/css/IMMessageStatus.module.css +6 -3
  105. package/es/IMReplyBubble/IMReplyBubble.js +37 -0
  106. package/es/IMReplyBubble/css/IMReplyBubble.module.css +0 -0
  107. package/es/IMReplyBubble/css/cssJSLogic.js +10 -0
  108. package/es/IMReplyBubble/index.js +1 -0
  109. package/es/IMReplyBubble/props/defaultProps.js +6 -0
  110. package/es/IMReplyBubble/props/propTypes.js +6 -0
  111. package/es/IMTextBubble/IMTextBubble.js +53 -0
  112. package/es/IMTextBubble/css/IMTextBubble.module.css +1 -0
  113. package/es/IMTextBubble/css/cssJSLogic.js +10 -0
  114. package/es/IMTextBubble/index.js +1 -0
  115. package/es/IMTextBubble/props/defaultProps.js +14 -0
  116. package/es/IMTextBubble/props/propTypes.js +15 -0
  117. package/es/IMTicketLink/IMTicketLink.js +48 -0
  118. package/es/IMTicketLink/css/IMTicketLink.module.css +24 -0
  119. package/es/IMTicketLink/css/cssJSLogic.js +14 -0
  120. package/es/IMTicketLink/index.js +1 -0
  121. package/es/IMTicketLink/props/defaultProps.js +6 -0
  122. package/es/IMTicketLink/props/propTypes.js +10 -0
  123. package/es/IMVideoBubble/IMVideoBubble.js +62 -0
  124. package/es/IMVideoBubble/css/IMVideoBubble.module.css +1 -0
  125. package/es/IMVideoBubble/css/cssJSLogic.js +10 -0
  126. package/es/IMVideoBubble/index.js +1 -0
  127. package/es/IMVideoBubble/props/defaultProps.js +11 -0
  128. package/es/IMVideoBubble/props/propTypes.js +17 -0
  129. package/es/ImageBubble/ImageBubble.js +52 -0
  130. package/es/ImageBubble/css/ImageBubble.module.css +53 -0
  131. package/es/ImageBubble/css/cssJSLogic.js +22 -0
  132. package/es/ImageBubble/index.js +1 -0
  133. package/es/ImageBubble/props/defaultProps.js +6 -0
  134. package/es/ImageBubble/props/propTypes.js +8 -0
  135. package/es/InfoBubble/InfoBubble.js +37 -0
  136. package/es/InfoBubble/css/InfoBubble.module.css +0 -0
  137. package/es/InfoBubble/css/cssJSLogic.js +10 -0
  138. package/es/InfoBubble/index.js +1 -0
  139. package/es/InfoBubble/props/defaultProps.js +6 -0
  140. package/es/InfoBubble/props/propTypes.js +6 -0
  141. package/es/LazyLoadImage/LazyLoadImage.js +48 -0
  142. package/es/LazyLoadImage/css/LazyLoadImage.module.css +4 -0
  143. package/es/LazyLoadImage/css/cssJSLogic.js +10 -0
  144. package/es/LazyLoadImage/index.js +1 -0
  145. package/es/LazyLoadImage/props/defaultProps.js +6 -0
  146. package/es/LazyLoadImage/props/propTypes.js +8 -0
  147. package/es/LocationBubble/LocationBubble.js +63 -0
  148. package/es/LocationBubble/css/LocationBubble.module.css +3 -0
  149. package/es/LocationBubble/css/cssJSLogic.js +30 -0
  150. package/es/LocationBubble/images/location.png +0 -0
  151. package/es/LocationBubble/index.js +1 -0
  152. package/es/LocationBubble/props/defaultProps.js +6 -0
  153. package/es/LocationBubble/props/propTypes.js +7 -0
  154. package/es/MediaControls/MediaControls.js +60 -0
  155. package/es/MediaControls/css/MediaControls.module.css +1 -0
  156. package/es/MediaControls/css/cssJSLogic.js +22 -0
  157. package/es/MediaControls/index.js +1 -0
  158. package/es/MediaControls/props/defaultProps.js +6 -0
  159. package/es/MediaControls/props/propTypes.js +11 -0
  160. package/es/Message/Message.js +136 -0
  161. package/es/Message/css/Message.module.css +0 -0
  162. package/es/Message/css/cssJSLogic.js +10 -0
  163. package/es/Message/index.js +1 -0
  164. package/es/Message/props/defaultProps.js +43 -0
  165. package/es/Message/props/propTypes.js +98 -0
  166. package/es/MessageAction/MessageAction.js +4 -2
  167. package/es/MessageActions/MessageActions.js +1 -1
  168. package/es/MessageActionsMore/MessageActionsMore.js +5 -3
  169. package/es/MessageAvatar/MessageAvatar.js +9 -9
  170. package/es/MessageAvatar/props/defaultProps.js +4 -2
  171. package/es/MessageBox/MessageBox.js +5 -2
  172. package/es/MessageBox/css/MessageBox.module.css +14 -0
  173. package/es/MessageBox/css/cssJSLogic.js +12 -1
  174. package/es/MessageBox/props/defaultProps.js +3 -1
  175. package/es/MessageBox/props/propTypes.js +3 -1
  176. package/es/MessageBoxFooter/MessageBoxFooter.js +1 -1
  177. package/es/MessageBubble/MessageBubble.js +10 -10
  178. package/es/MessageWrapper/MessageWrapper.js +37 -0
  179. package/es/MessageWrapper/css/MessageWrapper.module.css +0 -0
  180. package/es/MessageWrapper/css/cssJSLogic.js +10 -0
  181. package/es/MessageWrapper/index.js +1 -0
  182. package/es/MessageWrapper/props/defaultProps.js +6 -0
  183. package/es/MessageWrapper/props/propTypes.js +6 -0
  184. package/es/MoreActionItem/MoreActionItem.js +9 -9
  185. package/es/MoreActionItem/props/defaultProps.js +1 -1
  186. package/es/MoreActionItem/props/propTypes.js +1 -1
  187. package/es/ReplyBubble/ReplyBubble.js +41 -0
  188. package/es/ReplyBubble/css/ReplyBubble.module.css +0 -0
  189. package/es/ReplyBubble/css/cssJSLogic.js +10 -0
  190. package/es/ReplyBubble/index.js +1 -0
  191. package/es/ReplyBubble/props/defaultProps.js +6 -0
  192. package/es/ReplyBubble/props/propTypes.js +6 -0
  193. package/es/ReplyBubbleHeader/ReplyBubbleHeader.js +53 -0
  194. package/es/ReplyBubbleHeader/css/ReplyBubbleHeader.module.css +0 -0
  195. package/es/ReplyBubbleHeader/css/cssJSLogic.js +10 -0
  196. package/es/ReplyBubbleHeader/index.js +1 -0
  197. package/es/ReplyBubbleHeader/props/defaultProps.js +9 -0
  198. package/es/ReplyBubbleHeader/props/propTypes.js +9 -0
  199. package/es/TextBubble/TextBubble.js +56 -0
  200. package/es/TextBubble/css/TextBubble.module.css +1 -0
  201. package/es/TextBubble/css/cssJSLogic.js +18 -0
  202. package/es/TextBubble/index.js +1 -0
  203. package/es/TextBubble/props/defaultProps.js +9 -0
  204. package/es/TextBubble/props/propTypes.js +10 -0
  205. package/es/Theme/DeskAssets.js +53 -0
  206. package/es/Theme/ThemeWrapper.js +82 -0
  207. package/es/Theme/ToolttipWrapper.js +81 -0
  208. package/es/Theme/constants/index.js +44 -0
  209. package/es/Theme/crm/dark/blueFanTheme.js +28 -0
  210. package/es/Theme/crm/dark/blueTheme.js +28 -0
  211. package/es/Theme/crm/dark/commonColorVariable.js +11 -0
  212. package/es/Theme/crm/dark/darkBlueTheme.js +28 -0
  213. package/es/Theme/crm/dark/darkGreyTheme.js +28 -0
  214. package/es/Theme/crm/dark/greenTheme.js +28 -0
  215. package/es/Theme/crm/dark/orangeTheme.js +28 -0
  216. package/es/Theme/crm/dark/pinkTheme.js +28 -0
  217. package/es/Theme/crm/dark/tealTheme.js +28 -0
  218. package/es/Theme/crm/dark/whiteTheme.js +28 -0
  219. package/es/Theme/crm/light/blueFanTheme.js +28 -0
  220. package/es/Theme/crm/light/blueTheme.js +31 -0
  221. package/es/Theme/crm/light/commonColorVariable.js +9 -0
  222. package/es/Theme/crm/light/darkBlueTheme.js +28 -0
  223. package/es/Theme/crm/light/darkGreyTheme.js +28 -0
  224. package/es/Theme/crm/light/greenTheme.js +28 -0
  225. package/es/Theme/crm/light/orangeTheme.js +28 -0
  226. package/es/Theme/crm/light/pinkTheme.js +28 -0
  227. package/es/Theme/crm/light/tealTheme.js +28 -0
  228. package/es/Theme/crm/light/whiteTheme.js +28 -0
  229. package/es/Theme/crm/pureDark/blueFanTheme.js +28 -0
  230. package/es/Theme/crm/pureDark/blueTheme.js +28 -0
  231. package/es/Theme/crm/pureDark/commonColorVariable.js +9 -0
  232. package/es/Theme/crm/pureDark/darkBlueTheme.js +28 -0
  233. package/es/Theme/crm/pureDark/darkGreyTheme.js +28 -0
  234. package/es/Theme/crm/pureDark/greenTheme.js +28 -0
  235. package/es/Theme/crm/pureDark/orangeTheme.js +28 -0
  236. package/es/Theme/crm/pureDark/pinkTheme.js +28 -0
  237. package/es/Theme/crm/pureDark/tealTheme.js +28 -0
  238. package/es/Theme/crm/pureDark/whiteTheme.js +28 -0
  239. package/es/Theme/css/TooltipWrapper.module.css +10 -0
  240. package/es/Theme/css/cssJSLogic.js +14 -0
  241. package/es/Theme/desk/commonDeskColorVariable.js +12 -0
  242. package/es/Theme/desk/dark/blueTheme.js +30 -0
  243. package/es/Theme/desk/dark/commonColorVariable.js +5 -0
  244. package/es/Theme/desk/dark/greenTheme.js +30 -0
  245. package/es/Theme/desk/dark/orangeTheme.js +30 -0
  246. package/es/Theme/desk/dark/redTheme.js +30 -0
  247. package/es/Theme/desk/dark/yellowTheme.js +30 -0
  248. package/es/Theme/desk/light/blueTheme.js +33 -0
  249. package/es/Theme/desk/light/commonColorVariable.js +5 -0
  250. package/es/Theme/desk/light/greenTheme.js +30 -0
  251. package/es/Theme/desk/light/orangeTheme.js +29 -0
  252. package/es/Theme/desk/light/redTheme.js +29 -0
  253. package/es/Theme/desk/light/yellowTheme.js +30 -0
  254. package/es/Theme/desk/pureDark/blueTheme.js +30 -0
  255. package/es/Theme/desk/pureDark/commonColorVariable.js +6 -0
  256. package/es/Theme/desk/pureDark/greenTheme.js +30 -0
  257. package/es/Theme/desk/pureDark/orangeTheme.js +30 -0
  258. package/es/Theme/desk/pureDark/redTheme.js +30 -0
  259. package/es/Theme/desk/pureDark/yellowTheme.js +30 -0
  260. package/es/Theme/index.js +1 -0
  261. package/es/Theme/props/defaultProps.js +13 -0
  262. package/es/Theme/props/propTypes.js +15 -0
  263. package/es/Theme/utils/getThemeConfigurations.js +209 -0
  264. package/es/Video/Video.js +69 -0
  265. package/es/Video/css/Video.module.css +9 -0
  266. package/es/Video/css/cssJSLogic.js +14 -0
  267. package/es/Video/index.js +1 -0
  268. package/es/Video/props/defaultProps.js +7 -0
  269. package/es/Video/props/propTypes.js +9 -0
  270. package/es/VideoBubble/VideoBubble.js +57 -0
  271. package/es/VideoBubble/css/VideoBubble.module.css +4 -0
  272. package/es/VideoBubble/css/cssJSLogic.js +10 -0
  273. package/es/VideoBubble/index.js +1 -0
  274. package/es/VideoBubble/props/defaultProps.js +8 -0
  275. package/es/VideoBubble/props/propTypes.js +12 -0
  276. package/es/icons/create-icon-components.js +1 -1
  277. package/es/icons/factory/attachments/audio.svg +19 -0
  278. package/es/icons/factory/attachments/code.svg +21 -0
  279. package/es/icons/factory/attachments/image.svg +20 -0
  280. package/es/icons/factory/attachments/pdf.svg +19 -0
  281. package/es/icons/factory/attachments/txt.svg +22 -0
  282. package/es/icons/factory/attachments/unknown.svg +21 -0
  283. package/es/icons/factory/attachments/video.svg +19 -0
  284. package/es/icons/factory/attachments/zip.svg +27 -0
  285. package/es/icons/iconSrc/actions/ConvertTicket.js +1 -1
  286. package/es/icons/iconSrc/attachments/Audio.js +37 -0
  287. package/es/icons/iconSrc/attachments/Code.js +43 -0
  288. package/es/icons/iconSrc/attachments/Image.js +42 -0
  289. package/es/icons/iconSrc/attachments/Pdf.js +37 -0
  290. package/es/icons/iconSrc/attachments/Txt.js +46 -0
  291. package/es/icons/iconSrc/attachments/Unknown.js +41 -0
  292. package/es/icons/iconSrc/attachments/Video.js +37 -0
  293. package/es/icons/iconSrc/attachments/Zip.js +85 -0
  294. package/es/icons/iconSrc/attachments/index.js +8 -0
  295. package/es/icons/iconSrc/integrations/TtASAP.js +1 -1
  296. package/es/icons/iconSrc/integrations/TtTelegram.js +1 -1
  297. package/es/icons/iconSrc/integrations/TtTwillio.js +1 -1
  298. package/es/icons/iconSrc/integrations/TtTwitter.js +1 -1
  299. package/es/icons/iconSrc/integrations/TtWechat.js +1 -1
  300. package/es/index.js +33 -0
  301. package/package.json +8 -4
  302. /package/es/MessageActionsMore/css/{cssJsLogic.js → cssJSLogic.js} +0 -0
@@ -0,0 +1,63 @@
1
+ /* eslint-disable @zohodesk/zsecurity/no-protocol-check */
2
+ /* eslint-disable react/jsx-no-bind */
3
+ /* eslint-disable max-len */
4
+
5
+ /** ** Libraries *** */
6
+ import React from 'react';
7
+
8
+ /** ** Hooks *** */
9
+ import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
10
+
11
+ /** ** Constants *** */
12
+ import locationBubbleDefaultProps from './props/defaultProps';
13
+ import locationBubblePropTypes from './props/propTypes';
14
+
15
+ /** ** Methods *** */
16
+ import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
17
+ import cssJSLogic from './css/cssJSLogic';
18
+
19
+ /** ** Styles *** */
20
+ import style from './css/LocationBubble.module.css';
21
+ import useLocationBubble from '@zohoim/chat-components-hooks/es/LocationBubble/useLocationBubble';
22
+ export default function LocationBubble(props) {
23
+ const {
24
+ customStyle
25
+ } = props;
26
+ const {
27
+ locationURL
28
+ } = useLocationBubble(props);
29
+
30
+ /* External customization */
31
+ const newStyle = useMergeStyle(style, customStyle);
32
+ /* CSS classnames added based on logic */
33
+ const {
34
+ locationBubbleClass,
35
+ imageWrapperClass,
36
+ imageClass,
37
+ imageLinkClass,
38
+ textWrapperClass,
39
+ textLinkClass
40
+ } = cssJSLogic(props, newStyle);
41
+ return /*#__PURE__*/React.createElement("div", {
42
+ className: locationBubbleClass
43
+ }, /*#__PURE__*/React.createElement("div", {
44
+ className: imageWrapperClass
45
+ }, /*#__PURE__*/React.createElement("a", {
46
+ target: "_blank",
47
+ rel: "noreferrer noopener",
48
+ href: locationURL,
49
+ className: imageLinkClass
50
+ }, /*#__PURE__*/React.createElement("div", {
51
+ className: imageClass
52
+ }))), /*#__PURE__*/React.createElement("div", {
53
+ className: textWrapperClass
54
+ }, /*#__PURE__*/React.createElement("a", {
55
+ target: "_blank",
56
+ rel: "noreferrer noopener",
57
+ href: locationURL,
58
+ className: textLinkClass
59
+ }, locationURL)));
60
+ }
61
+ LocationBubble.propTypes = locationBubblePropTypes;
62
+ LocationBubble.defaultProps = locationBubbleDefaultProps;
63
+ LocationBubble.displayName = 'LocationBubble';
@@ -0,0 +1,3 @@
1
+ .image {
2
+ background-image: url('../images/location.png');
3
+ }
@@ -0,0 +1,30 @@
1
+ /** ** Methods *** */
2
+ import { compileClassNames } from '@zohodesk/utils';
3
+ export default function cssJSLogic(props, style) {
4
+ const locationBubbleClass = compileClassNames({
5
+ [style.locationBubble]: true
6
+ });
7
+ const imageWrapperClass = compileClassNames({
8
+ [style.imageWrapper]: true
9
+ });
10
+ const imageClass = compileClassNames({
11
+ [style.image]: true
12
+ });
13
+ const imageLinkClass = compileClassNames({
14
+ [style.imageLink]: true
15
+ });
16
+ const textWrapperClass = compileClassNames({
17
+ [style.textWrapper]: true
18
+ });
19
+ const textLinkClass = compileClassNames({
20
+ [style.textLink]: true
21
+ });
22
+ return {
23
+ locationBubbleClass,
24
+ imageWrapperClass,
25
+ imageClass,
26
+ imageLinkClass,
27
+ textWrapperClass,
28
+ textLinkClass
29
+ };
30
+ }
@@ -0,0 +1 @@
1
+ export { default as LocationBubble } from './LocationBubble';
@@ -0,0 +1,6 @@
1
+ /** ** Constants *** */
2
+ import { dummyObject } from '@zohoim/chat-components-utils/es/constants';
3
+ const locationBubbleDefaultProps = {
4
+ customStyle: dummyObject
5
+ };
6
+ export default locationBubbleDefaultProps;
@@ -0,0 +1,7 @@
1
+ /** ** Libraries *** */
2
+ import PropTypes from 'prop-types';
3
+ const locationBubblePropTypes = {
4
+ customStyle: PropTypes.object,
5
+ locationURL: PropTypes.string
6
+ };
7
+ export default locationBubblePropTypes;
@@ -0,0 +1,60 @@
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 mediaControlsDefaultProps from './props/defaultProps';
12
+ import mediaControlsPropTypes 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/MediaControls.module.css';
20
+
21
+ /** ** Icons *** */
22
+ import PauseIcon from '@zohodesk/icon/es/general/Pause';
23
+ import PlayIcon from '@zohodesk/icon/es/general/Copy';
24
+ export default function MediaControls(props) {
25
+ const {
26
+ customStyle,
27
+ onTogglePlay,
28
+ isMediaPlayed,
29
+ progressPercentage,
30
+ currentTime,
31
+ durationTime
32
+ } = props;
33
+
34
+ /* External customization */
35
+ const newStyle = useMergeStyle(style, customStyle);
36
+ /* CSS classnames added based on logic */
37
+ const {
38
+ mediaControlsClass,
39
+ iconWrapperClass,
40
+ progressBarClass,
41
+ durationClass
42
+ } = cssJSLogic(props, newStyle);
43
+ return /*#__PURE__*/React.createElement("div", {
44
+ className: mediaControlsClass
45
+ }, /*#__PURE__*/React.createElement("div", {
46
+ className: iconWrapperClass
47
+ }, /*#__PURE__*/React.createElement("span", {
48
+ onClick: onTogglePlay
49
+ }, isMediaPlayed ? /*#__PURE__*/React.createElement(PauseIcon, null) : /*#__PURE__*/React.createElement(PlayIcon, null))), /*#__PURE__*/React.createElement("div", {
50
+ className: progressBarClass,
51
+ style: {
52
+ width: progressPercentage
53
+ }
54
+ }), /*#__PURE__*/React.createElement("div", {
55
+ className: durationClass
56
+ }, `${currentTime} / ${durationTime}`));
57
+ }
58
+ MediaControls.propTypes = mediaControlsPropTypes;
59
+ MediaControls.defaultProps = mediaControlsDefaultProps;
60
+ MediaControls.displayName = 'MediaControls';
@@ -0,0 +1,22 @@
1
+ /** ** Methods *** */
2
+ import { compileClassNames } from '@zohodesk/utils';
3
+ export default function cssJSLogic(props, style) {
4
+ const mediaControlsClass = compileClassNames({
5
+ [style.mediaControls]: true
6
+ });
7
+ const iconWrapperClass = compileClassNames({
8
+ [style.iconWrapper]: true
9
+ });
10
+ const progressBarClass = compileClassNames({
11
+ [style.progressBar]: true
12
+ });
13
+ const durationClass = compileClassNames({
14
+ [style.duration]: true
15
+ });
16
+ return {
17
+ mediaControlsClass,
18
+ iconWrapperClass,
19
+ progressBarClass,
20
+ durationClass
21
+ };
22
+ }
@@ -0,0 +1 @@
1
+ export { default as MediaControls } from './MediaControls';
@@ -0,0 +1,6 @@
1
+ /** ** Constants *** */
2
+ import { dummyObject } from '@zohoim/chat-components-utils/es/constants';
3
+ const mediaControlsDefaultProps = {
4
+ customStyle: dummyObject
5
+ };
6
+ export default mediaControlsDefaultProps;
@@ -0,0 +1,11 @@
1
+ /** ** Libraries *** */
2
+ import PropTypes from 'prop-types';
3
+ const mediaControlsPropTypes = {
4
+ customStyle: PropTypes.object,
5
+ onTogglePlay: PropTypes.func,
6
+ isMediaPlayed: PropTypes.bool,
7
+ progressPercentage: PropTypes.string,
8
+ currentTime: PropTypes.string,
9
+ durationTime: PropTypes.string
10
+ };
11
+ export default mediaControlsPropTypes;
@@ -0,0 +1,136 @@
1
+ /* eslint-disable react/jsx-no-bind */
2
+ /* eslint-disable max-len */
3
+
4
+ /** ** Libraries *** */
5
+ import React from 'react';
6
+
7
+ /** ** Constants *** */
8
+ import messageDefaultProps from './props/defaultProps';
9
+ import messagePropTypes from './props/propTypes';
10
+ import { direction as directionConstants } from '@zohoim/chat-components-utils/es/constants/messageConstants';
11
+
12
+ /** ** Components *** */
13
+ import MessageBubble from '../MessageBubble/MessageBubble';
14
+ import MessageBox from '../MessageBox/MessageBox';
15
+ import IMMessageAvatar from '../IMMessageAvatar/IMMessageAvatar';
16
+ import IMMessageActions from '../IMMessageActions/IMMessageActions';
17
+ import IMMessageStatus from '../IMMessageStatus/IMMessageStatus';
18
+ export default function Message(props) {
19
+ const {
20
+ customStyle,
21
+ direction,
22
+ isActive,
23
+ needMessageActions,
24
+ renderMessageBoxFooter,
25
+ /* Avatar Related Props Start */
26
+ needSender,
27
+ isShowSender,
28
+ senderSrc,
29
+ senderAlternateSrc,
30
+ senderTitle,
31
+ senderAvatarSize,
32
+ senderName,
33
+ avatarCustomStyle,
34
+ senderIntegrationIcon,
35
+ senderIntegrationIconSize,
36
+ senderIntegrationIconCustomStyle,
37
+ isCustomIntegrationIcon,
38
+ isCustomSenderAvatar,
39
+ renderCustomIntegrationIcon,
40
+ renderCustomSenderAvatar,
41
+ /*Avatar Related Props End*/
42
+
43
+ /* MessageBox Props Start */
44
+ isFailedMessage,
45
+ needMessageBox,
46
+ renderMessage,
47
+ renderMessageFooter,
48
+ renderMessageHeader,
49
+ messageBoxCustomStyle,
50
+ /*MessageBox Props End */
51
+
52
+ /* MessageAction Props Start */
53
+ messageActions,
54
+ actionsDefaultShowCount,
55
+ actionIconCustomStyle,
56
+ moreActionItemCustomStyle,
57
+ onSelectAction,
58
+ messageActionCustomStyle,
59
+ moreActionPopupCustomStyle,
60
+ renderSecondaryActions,
61
+ /* MessageAction Props End */
62
+
63
+ /*MessageStatus Props Start */
64
+ messageStatus,
65
+ messageStatusCustomStyle,
66
+ statusTitle
67
+ /*MessageStatus Props End */
68
+ } = props;
69
+ function handleRenderMessageStatus() {
70
+ const props = {
71
+ messageStatus,
72
+ customStyle: messageStatusCustomStyle,
73
+ title: statusTitle
74
+ };
75
+ return messageStatus ? /*#__PURE__*/React.createElement(IMMessageStatus, props) : null;
76
+ }
77
+ function handleRenderMessageBox() {
78
+ const props = {
79
+ renderMessageFooter,
80
+ renderMessageHeader,
81
+ renderMessageStatus: handleRenderMessageStatus,
82
+ renderMessage,
83
+ customStyle: messageBoxCustomStyle,
84
+ isFailed: isFailedMessage,
85
+ isIncoming: direction === directionConstants.IN,
86
+ isOutgoing: direction === directionConstants.OUT
87
+ };
88
+ return /*#__PURE__*/React.createElement(MessageBox, props);
89
+ }
90
+ function handleRenderMessageOwner() {
91
+ const props = {
92
+ src: senderSrc,
93
+ alternateSrc: senderAlternateSrc,
94
+ title: senderTitle,
95
+ avatarSize: senderAvatarSize,
96
+ name: senderName,
97
+ customStyle: avatarCustomStyle,
98
+ integrationName: senderIntegrationIcon,
99
+ iconSize: senderIntegrationIconSize,
100
+ iconCustomStyle: senderIntegrationIconCustomStyle,
101
+ isCustomIcon: isCustomIntegrationIcon,
102
+ renderCustomIcon: renderCustomIntegrationIcon,
103
+ isCustomAvatar: isCustomSenderAvatar,
104
+ renderCustomAvatar: renderCustomSenderAvatar
105
+ };
106
+ return isShowSender ? /*#__PURE__*/React.createElement(IMMessageAvatar, props) : null;
107
+ }
108
+ function handleRenderMessageActions() {
109
+ const props = {
110
+ actions: messageActions,
111
+ renderSecondaryActions: renderSecondaryActions,
112
+ defaultShowCount: actionsDefaultShowCount,
113
+ actionIconCustomStyle: actionIconCustomStyle,
114
+ moreItemCustomStyle: moreActionItemCustomStyle,
115
+ onSelect: onSelectAction,
116
+ customStyle: messageActionCustomStyle,
117
+ morePopupCustomStyle: moreActionPopupCustomStyle
118
+ };
119
+ return /*#__PURE__*/React.createElement(IMMessageActions, props);
120
+ }
121
+ return /*#__PURE__*/React.createElement(MessageBubble, {
122
+ direction: direction,
123
+ isActive: isActive,
124
+ needMessageActions: needMessageActions,
125
+ renderMessageBox: handleRenderMessageBox,
126
+ renderMessageBoxFooter: renderMessageBoxFooter,
127
+ renderMessageOwner: handleRenderMessageOwner,
128
+ renderMessageActions: handleRenderMessageActions,
129
+ customStyle: customStyle,
130
+ needSender: needSender,
131
+ isShowSender: isShowSender
132
+ });
133
+ }
134
+ Message.propTypes = messagePropTypes;
135
+ Message.defaultProps = messageDefaultProps;
136
+ Message.displayName = 'Message';
File without changes
@@ -0,0 +1,10 @@
1
+ /** ** Methods *** */
2
+ import { compileClassNames } from '@zohodesk/utils';
3
+ export default function cssJSLogic(props, style) {
4
+ const imMessageClass = compileClassNames({
5
+ [style.imMessage]: true
6
+ });
7
+ return {
8
+ imMessageClass
9
+ };
10
+ }
@@ -0,0 +1 @@
1
+ export { default as Message } from './Message';
@@ -0,0 +1,43 @@
1
+ /** ** Constants *** */
2
+ import { dummyObject, dummyArray } from '@zohoim/chat-components-utils/es/constants';
3
+ import { direction } from '@zohoim/chat-components-utils/es/constants/messageConstants';
4
+ import sizes from '@zohoim/chat-components-utils/es/constants/sizes';
5
+ import { actionsDefaultShowCount } from '@zohoim/chat-components-utils/es/constants/messageActionConstants';
6
+ const messageDefaultProps = {
7
+ customStyle: dummyObject,
8
+ direction: direction.IN,
9
+ isActive: false,
10
+ needMessageActions: true,
11
+ needSender: true,
12
+ isShowSender: true,
13
+ senderSrc: '',
14
+ senderAlternateSrc: '',
15
+ senderTitle: '',
16
+ //'RAVI KUMAR',
17
+ senderAvatarSize: 'medium',
18
+ senderName: '',
19
+ //'Ravi kumar',
20
+ avatarCustomStyle: dummyObject,
21
+ senderIntegrationIcon: '',
22
+ //WHATSAPP
23
+ senderIntegrationIconSize: sizes.SMALL,
24
+ senderIntegrationIconCustomStyle: dummyObject,
25
+ isCustomIntegrationIcon: false,
26
+ isCustomSenderAvatar: false,
27
+ needMessageBox: true,
28
+ isFailedMessage: false,
29
+ messageBoxCustomStyle: dummyObject,
30
+ messageActions: dummyArray,
31
+ actionsDefaultShowCount: actionsDefaultShowCount,
32
+ actionIconCustomStyle: dummyObject,
33
+ moreActionItemCustomStyle: dummyObject,
34
+ messageActionCustomStyle: dummyObject,
35
+ moreActionPopupCustomStyle: dummyObject,
36
+ messageStatus: '',
37
+ // READ,
38
+ messageStatusCustomStyle: dummyObject,
39
+ statusTitle: '' // READ,
40
+ // renderMessage: () => <div>Test</div>
41
+ };
42
+
43
+ export default messageDefaultProps;
@@ -0,0 +1,98 @@
1
+ /** ** Libraries *** */
2
+ import PropTypes from 'prop-types';
3
+
4
+ /** ** Constants *** */
5
+ import integrationConstants from '@zohoim/chat-components-utils/es/constants/integrationConstants';
6
+ import { defaultMessageActions } from '@zohoim/chat-components-utils/es/constants/messageActionConstants';
7
+ import messageStatusConstants from '@zohoim/chat-components-utils/es/constants/messageStatusConstants';
8
+ import { direction } from '@zohoim/chat-components-utils/es/constants/messageConstants';
9
+ import sizes from '@zohoim/chat-components-utils/es/constants/sizes';
10
+ const {
11
+ REPLY,
12
+ COPY,
13
+ DOWNLOAD,
14
+ CREATE_TICKET,
15
+ RESEND,
16
+ DELETE,
17
+ FORWARD
18
+ } = defaultMessageActions;
19
+ const {
20
+ WHATSAPP,
21
+ TELEGRAM,
22
+ INSTAGRAM,
23
+ ASAP,
24
+ WECHAT,
25
+ TWILLIO,
26
+ LINE
27
+ } = integrationConstants;
28
+ const {
29
+ SENT,
30
+ SAVED,
31
+ QUEUED,
32
+ DELIVERED,
33
+ READ,
34
+ UNSENT,
35
+ FAILED,
36
+ OUTGOING
37
+ } = messageStatusConstants;
38
+ const {
39
+ IN,
40
+ OUT
41
+ } = direction;
42
+ const messagePropTypes = {
43
+ customStyle: PropTypes.object,
44
+ direction: PropTypes.oneOf([IN, OUT]),
45
+ isActive: PropTypes.bool,
46
+ needMessageActions: PropTypes.bool,
47
+ renderMessageBoxFooter: PropTypes.func,
48
+ /* Avatar Related Props Start */
49
+ needSender: PropTypes.bool,
50
+ isShowSender: PropTypes.bool,
51
+ senderSrc: PropTypes.string,
52
+ senderAlternateSrc: PropTypes.string,
53
+ senderTitle: PropTypes.string,
54
+ senderAvatarSize: PropTypes.oneOf(['xxsmall', 'small', 'xsmall', 'medium', 'xmedium', 'large', 'xlarge']),
55
+ senderName: PropTypes.string,
56
+ avatarCustomStyle: PropTypes.object,
57
+ senderIntegrationIcon: PropTypes.oneOf([WHATSAPP, TELEGRAM, INSTAGRAM, ASAP, WECHAT, TWILLIO, LINE]),
58
+ senderIntegrationIconSize: PropTypes.oneOf([sizes.SMALL, sizes.MEDIUM]),
59
+ senderIntegrationIconCustomStyle: PropTypes.object,
60
+ isCustomIntegrationIcon: PropTypes.bool,
61
+ isCustomSenderAvatar: PropTypes.bool,
62
+ renderCustomIntegrationIcon: PropTypes.func,
63
+ renderCustomSenderAvatar: PropTypes.func,
64
+ /*Avatar Related Props End*/
65
+
66
+ /* MessageBox Props Start */
67
+ needMessageBox: PropTypes.bool,
68
+ renderMessage: PropTypes.func.isRequired,
69
+ renderMessageFooter: PropTypes.func,
70
+ renderMessageHeader: PropTypes.func,
71
+ messageBoxCustomStyle: PropTypes.object,
72
+ isFailedMessage: PropTypes.bool,
73
+ /*MessageBox Props End */
74
+
75
+ /* MessageAction Props Start */
76
+ messageActions: PropTypes.arrayOf(PropTypes.shape({
77
+ id: PropTypes.oneOfType([PropTypes.string, PropTypes.oneOf([REPLY, COPY, DOWNLOAD, CREATE_TICKET, RESEND, DELETE, FORWARD])]).isRequired,
78
+ displayText: PropTypes.string,
79
+ renderFunction: PropTypes.func,
80
+ iconTitle: PropTypes.string
81
+ })),
82
+ renderSecondaryActions: PropTypes.func,
83
+ actionsDefaultShowCount: PropTypes.number,
84
+ actionIconCustomStyle: PropTypes.object,
85
+ moreActionItemCustomStyle: PropTypes.object,
86
+ onSelectAction: PropTypes.func,
87
+ messageActionCustomStyle: PropTypes.object,
88
+ moreActionPopupCustomStyle: PropTypes.object,
89
+ /* MessageAction Props End */
90
+
91
+ /* MessageStatus Props Start */
92
+ messageStatus: PropTypes.oneOf([SENT, SAVED, QUEUED, DELIVERED, READ, UNSENT, FAILED, OUTGOING]),
93
+ messageStatusCustomStyle: PropTypes.object,
94
+ statusTitle: PropTypes.string
95
+ /*MessageStatus Props End */
96
+ };
97
+
98
+ export default messagePropTypes;
@@ -20,7 +20,8 @@ export default function MessageAction(props) {
20
20
  isShowInMore,
21
21
  iconTitle,
22
22
  actionIconCustomStyle,
23
- moreItemCustomStyle
23
+ moreItemCustomStyle,
24
+ closePopup
24
25
  } = props;
25
26
  return /*#__PURE__*/React.createElement(React.Fragment, null, isShowInMore ? /*#__PURE__*/React.createElement(MoreActionItem, {
26
27
  displayText: displayText,
@@ -29,7 +30,8 @@ export default function MessageAction(props) {
29
30
  index: index,
30
31
  customStyle: moreItemCustomStyle,
31
32
  onClick: onClick,
32
- renderIcon: renderIcon
33
+ renderIcon: renderIcon,
34
+ closePopup: closePopup
33
35
  }) : /*#__PURE__*/React.createElement(ActionIcon, {
34
36
  renderIcon: renderIcon,
35
37
  customStyle: actionIconCustomStyle,
@@ -16,7 +16,7 @@ import messageActionsPropTypes from './props/propTypes';
16
16
  import constantProps from './props/propConstants';
17
17
 
18
18
  /** ** Methods *** */
19
- import renderHandler from '@zohoim/chat-components-utils/es/renderHandler';
19
+ import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
20
20
  import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
21
21
  import cssJSLogic from './css/cssJSLogic';
22
22
 
@@ -13,8 +13,8 @@ import messageActionsMorePropTypes from './props/propTypes';
13
13
  import { MSG_ACTION_POPUP_PORTAL } from '../constants';
14
14
 
15
15
  /** ** Methods *** */
16
- import renderHandler from '@zohoim/chat-components-utils/es/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
18
 
19
19
  /** ** Hooks *** */
20
20
  import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
@@ -35,6 +35,7 @@ function MessageActionsMoreComp(props) {
35
35
  isPopupReady,
36
36
  isPopupOpen,
37
37
  removeClose,
38
+ closePopupOnly,
38
39
  isAbsolutePositioningNeeded,
39
40
  positionsOffset
40
41
  } = props;
@@ -74,7 +75,8 @@ function MessageActionsMoreComp(props) {
74
75
  return renderHandler(renderFunction)({
75
76
  id,
76
77
  isShowInMore: true,
77
- action
78
+ action,
79
+ closePopup: closePopupOnly
78
80
  }); // id, isRenderInMorePopup
79
81
  })) : null);
80
82
  }
@@ -1,21 +1,21 @@
1
1
  /** ** Libraries *** */
2
- import React from "react";
2
+ import React from 'react';
3
3
 
4
4
  /** ** Components *** */
5
- import Avatar from "@zohodesk/components/es/Avatar/Avatar";
6
- import { Container, Box } from "@zohodesk/components/es/Layout";
5
+ import Avatar from '@zohodesk/components/es/Avatar/Avatar';
6
+ import { Container, Box } from '@zohodesk/components/es/Layout';
7
7
 
8
8
  /** ** CSS *** */
9
- import style from "./css/MessageAvatar.module.css";
9
+ import style from './css/MessageAvatar.module.css';
10
10
 
11
11
  /** ** Methods *** */
12
- import useMergeStyle from "@zohodesk/hooks/es/utils/useMergeStyle";
13
- import renderHandler from "@zohoim/chat-components-utils/es/renderHandler";
14
- import cssJSLogic from "./css/cssJSLogic";
12
+ import useMergeStyle from '@zohodesk/hooks/es/utils/useMergeStyle';
13
+ import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
14
+ import cssJSLogic from './css/cssJSLogic';
15
15
 
16
16
  /** ** Constants *** */
17
- import messageAvatarDefaultProps from "./props/defaultProps";
18
- import messageAvatarPropTypes from "./props/propTypes";
17
+ import messageAvatarDefaultProps from './props/defaultProps';
18
+ import messageAvatarPropTypes from './props/propTypes';
19
19
  export default function MessageAvatar(props) {
20
20
  const {
21
21
  src,
@@ -2,8 +2,10 @@
2
2
  import { dummyObject } from '@zohoim/chat-components-utils/es/constants';
3
3
  const messageAvatarDefaultProps = {
4
4
  customStyle: dummyObject,
5
- name: 'RAVI KUMAR',
5
+ name: '',
6
+ //'RAVI KUMAR',
6
7
  size: 'small',
7
- iconTitle: 'RK'
8
+ iconTitle: '' //'RAVI KUMAR',
8
9
  };
10
+
9
11
  export default messageAvatarDefaultProps;
@@ -11,7 +11,7 @@ import messageBoxDefaultProps from './props/defaultProps';
11
11
  import messageBoxPropTypes from './props/propTypes';
12
12
 
13
13
  /** ** Methods *** */
14
- import renderHandler from '@zohoim/chat-components-utils/es/renderHandler';
14
+ import renderHandler from '@zohoim/chat-components-utils/es/common/renderHandler';
15
15
  import cssJSLogic from './css/cssJSLogic';
16
16
 
17
17
  /** ** Styles *** */
@@ -31,6 +31,7 @@ function MessageBox(props) {
31
31
  /* css classnames added based on logic */
32
32
  const {
33
33
  messageBoxClass,
34
+ messageBoxInner,
34
35
  messageContentWrapperClass,
35
36
  messageHeaderWrapperClass,
36
37
  messageFooterWrapperClass,
@@ -44,7 +45,9 @@ function MessageBox(props) {
44
45
  const messageStatus = renderHandler(renderMessageStatus)();
45
46
  return /*#__PURE__*/React.createElement("div", {
46
47
  className: messageBoxClass
47
- }, /*#__PURE__*/React.createElement("div", null, messageHeader ? /*#__PURE__*/React.createElement("div", {
48
+ }, /*#__PURE__*/React.createElement("div", {
49
+ className: messageBoxInner
50
+ }, messageHeader ? /*#__PURE__*/React.createElement("div", {
48
51
  className: messageHeaderWrapperClass
49
52
  }, messageHeader) : null, messageConent ? /*#__PURE__*/React.createElement("div", {
50
53
  className: messageContentWrapperClass