@tencentcloud/chat-uikit-react 0.0.1

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 (660) hide show
  1. package/.babelrc +7 -0
  2. package/.eslintrc.js +70 -0
  3. package/README.md +107 -0
  4. package/dist/cjs/_virtual/DateInput.js +1 -0
  5. package/dist/cjs/_virtual/DatePicker.js +1 -0
  6. package/dist/cjs/_virtual/DayInput.js +1 -0
  7. package/dist/cjs/_virtual/Divider.js +1 -0
  8. package/dist/cjs/_virtual/Fit.js +1 -0
  9. package/dist/cjs/_virtual/Input.js +1 -0
  10. package/dist/cjs/_virtual/MonthInput.js +1 -0
  11. package/dist/cjs/_virtual/MonthSelect.js +1 -0
  12. package/dist/cjs/_virtual/NativeInput.js +1 -0
  13. package/dist/cjs/_virtual/YearInput.js +1 -0
  14. package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
  15. package/dist/cjs/_virtual/clsx.m.js +1 -0
  16. package/dist/cjs/_virtual/dateFormatter.js +1 -0
  17. package/dist/cjs/_virtual/dates.js +1 -0
  18. package/dist/cjs/_virtual/entry.js +1 -0
  19. package/dist/cjs/_virtual/index.js +1 -0
  20. package/dist/cjs/_virtual/index10.js +1 -0
  21. package/dist/cjs/_virtual/index2.js +1 -0
  22. package/dist/cjs/_virtual/index3.js +1 -0
  23. package/dist/cjs/_virtual/index4.js +1 -0
  24. package/dist/cjs/_virtual/index5.js +1 -0
  25. package/dist/cjs/_virtual/index6.js +1 -0
  26. package/dist/cjs/_virtual/index7.js +1 -0
  27. package/dist/cjs/_virtual/index8.js +1 -0
  28. package/dist/cjs/_virtual/index9.js +1 -0
  29. package/dist/cjs/_virtual/propTypes.js +1 -0
  30. package/dist/cjs/_virtual/react-dom.development.js +1 -0
  31. package/dist/cjs/_virtual/react-dom.production.min.js +1 -0
  32. package/dist/cjs/_virtual/react-is.development.js +1 -0
  33. package/dist/cjs/_virtual/react-is.production.min.js +1 -0
  34. package/dist/cjs/_virtual/scheduler.development.js +1 -0
  35. package/dist/cjs/_virtual/scheduler.production.min.js +1 -0
  36. package/dist/cjs/_virtual/tiny-warning.esm.js +1 -0
  37. package/dist/cjs/_virtual/utils.js +1 -0
  38. package/dist/cjs/components/Avatar/Avatar.d.ts +22 -0
  39. package/dist/cjs/components/Avatar/Avatar.js +1 -0
  40. package/dist/cjs/components/Avatar/default.d.ts +7 -0
  41. package/dist/cjs/components/Avatar/default.js +1 -0
  42. package/dist/cjs/components/Checkbox/index.js +1 -0
  43. package/dist/cjs/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -0
  44. package/dist/cjs/components/ConversationCreate/ConversationCreate.js +1 -0
  45. package/dist/cjs/components/ConversationCreate/ConversationCreateSelectView.js +1 -0
  46. package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -0
  47. package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -0
  48. package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +1 -0
  49. package/dist/cjs/components/ConversationCreate/static/word.js +1 -0
  50. package/dist/cjs/components/ConversationPreview/ConversationListContainer.d.ts +10 -0
  51. package/dist/cjs/components/ConversationPreview/ConversationListContainer.js +1 -0
  52. package/dist/cjs/components/ConversationPreview/ConversationPreview.d.ts +31 -0
  53. package/dist/cjs/components/ConversationPreview/ConversationPreview.js +1 -0
  54. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.d.ts +7 -0
  55. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.js +1 -0
  56. package/dist/cjs/components/ConversationPreview/utils.js +1 -0
  57. package/dist/cjs/components/ConversationSearch/ConversationSearchInput.d.ts +5 -0
  58. package/dist/cjs/components/ConversationSearch/ConversationSearchInput.js +1 -0
  59. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.d.ts +12 -0
  60. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.js +1 -0
  61. package/dist/cjs/components/DivWithEdit/DivWithEdit.js +1 -0
  62. package/dist/cjs/components/DivWithEdit/WithSelect.js +1 -0
  63. package/dist/cjs/components/DivWithEdit/WithText.js +1 -0
  64. package/dist/cjs/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +6 -0
  65. package/dist/cjs/components/EmptyStateIndicator/EmptyStateIndicator.js +1 -0
  66. package/dist/cjs/components/Icon/Icon.js +1 -0
  67. package/dist/cjs/components/Icon/config.js +1 -0
  68. package/dist/cjs/components/Icon/images/add.png.js +1 -0
  69. package/dist/cjs/components/Icon/images/arrow-down.png.js +1 -0
  70. package/dist/cjs/components/Icon/images/arrow-right.png.js +1 -0
  71. package/dist/cjs/components/Icon/images/back.png.js +1 -0
  72. package/dist/cjs/components/Icon/images/camera.png.js +1 -0
  73. package/dist/cjs/components/Icon/images/cancel.png.js +1 -0
  74. package/dist/cjs/components/Icon/images/clear.png.js +1 -0
  75. package/dist/cjs/components/Icon/images/close.png.js +1 -0
  76. package/dist/cjs/components/Icon/images/confirm.png.js +1 -0
  77. package/dist/cjs/components/Icon/images/copy.png.js +1 -0
  78. package/dist/cjs/components/Icon/images/create.png.js +1 -0
  79. package/dist/cjs/components/Icon/images/cry.png.js +1 -0
  80. package/dist/cjs/components/Icon/images/del.png.js +1 -0
  81. package/dist/cjs/components/Icon/images/document.png.js +1 -0
  82. package/dist/cjs/components/Icon/images/edit.png.js +1 -0
  83. package/dist/cjs/components/Icon/images/effort.png.js +1 -0
  84. package/dist/cjs/components/Icon/images/ellipse.png.js +1 -0
  85. package/dist/cjs/components/Icon/images/emoji.png.js +1 -0
  86. package/dist/cjs/components/Icon/images/file.png.js +1 -0
  87. package/dist/cjs/components/Icon/images/forward.png.js +1 -0
  88. package/dist/cjs/components/Icon/images/image.png.js +1 -0
  89. package/dist/cjs/components/Icon/images/more.png.js +1 -0
  90. package/dist/cjs/components/Icon/images/progress.png.js +1 -0
  91. package/dist/cjs/components/Icon/images/quote.png.js +1 -0
  92. package/dist/cjs/components/Icon/images/reply.png.js +1 -0
  93. package/dist/cjs/components/Icon/images/revocation.png.js +1 -0
  94. package/dist/cjs/components/Icon/images/right.png.js +1 -0
  95. package/dist/cjs/components/Icon/images/search.png.js +1 -0
  96. package/dist/cjs/components/Icon/images/star.png.js +1 -0
  97. package/dist/cjs/components/Icon/images/video.png.js +1 -0
  98. package/dist/cjs/components/Icon/type.js +1 -0
  99. package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +20 -0
  100. package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.js +1 -0
  101. package/dist/cjs/components/Input/Input.d.ts +16 -0
  102. package/dist/cjs/components/Input/Input.js +1 -0
  103. package/dist/cjs/components/Model/index.js +1 -0
  104. package/dist/cjs/components/Plugins/hooks/usePluginsElement.js +1 -0
  105. package/dist/cjs/components/Plugins/index.js +1 -0
  106. package/dist/cjs/components/Popup/index.js +1 -0
  107. package/dist/cjs/components/Profile/Profile.js +1 -0
  108. package/dist/cjs/components/Switch/Switch.js +1 -0
  109. package/dist/cjs/components/Switch/utils/newId.js +1 -0
  110. package/dist/cjs/components/TUIChat/TUIChat.d.ts +27 -0
  111. package/dist/cjs/components/TUIChat/TUIChat.js +1 -0
  112. package/dist/cjs/components/TUIChat/TUIChatState.js +1 -0
  113. package/dist/cjs/components/TUIChat/hooks/useCreateMessage.d.ts +31 -0
  114. package/dist/cjs/components/TUIChat/hooks/useCreateMessage.js +1 -0
  115. package/dist/cjs/components/TUIChat/hooks/useCreateTUIChatStateContext.js +1 -0
  116. package/dist/cjs/components/TUIChat/hooks/useHandleMessage.d.ts +7 -0
  117. package/dist/cjs/components/TUIChat/hooks/useHandleMessage.js +1 -0
  118. package/dist/cjs/components/TUIChat/hooks/useHandleMessageList.js +1 -0
  119. package/dist/cjs/components/TUIChat/hooks/useMessageReceviedListener.js +1 -0
  120. package/dist/cjs/components/TUIChat/unitls.js +1 -0
  121. package/dist/cjs/components/TUIChatHeader/TUIChatHeader.d.ts +13 -0
  122. package/dist/cjs/components/TUIChatHeader/TUIChatHeader.js +1 -0
  123. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +13 -0
  124. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -0
  125. package/dist/cjs/components/TUIConversation/TUIConversation.d.ts +10 -0
  126. package/dist/cjs/components/TUIConversation/TUIConversation.js +1 -0
  127. package/dist/cjs/components/TUIConversationList/TUIConversationList.d.ts +17 -0
  128. package/dist/cjs/components/TUIConversationList/TUIConversationList.js +1 -0
  129. package/dist/cjs/components/TUIConversationList/hooks/useConversationList.js +1 -0
  130. package/dist/cjs/components/TUIConversationList/hooks/useConversationUpdate.js +1 -0
  131. package/dist/cjs/components/TUIKit/TUIKit.d.ts +10 -0
  132. package/dist/cjs/components/TUIKit/TUIKit.js +1 -0
  133. package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +17 -0
  134. package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.js +1 -0
  135. package/dist/cjs/components/TUIKit/hooks/useTUIKit.d.ts +17 -0
  136. package/dist/cjs/components/TUIKit/hooks/useTUIKit.js +1 -0
  137. package/dist/cjs/components/TUIManage/TUIManage.d.ts +3 -0
  138. package/dist/cjs/components/TUIManage/TUIManage.js +1 -0
  139. package/dist/cjs/components/TUIMessage/MessageAudio.js +1 -0
  140. package/dist/cjs/components/TUIMessage/MessageBubble.js +1 -0
  141. package/dist/cjs/components/TUIMessage/MessageContext.d.ts +7 -0
  142. package/dist/cjs/components/TUIMessage/MessageContext.js +1 -0
  143. package/dist/cjs/components/TUIMessage/MessageCustom.js +1 -0
  144. package/dist/cjs/components/TUIMessage/MessageFace.js +1 -0
  145. package/dist/cjs/components/TUIMessage/MessageFile.js +1 -0
  146. package/dist/cjs/components/TUIMessage/MessageImage.js +1 -0
  147. package/dist/cjs/components/TUIMessage/MessageLocation.js +1 -0
  148. package/dist/cjs/components/TUIMessage/MessageMerger.js +1 -0
  149. package/dist/cjs/components/TUIMessage/MessagePlugins.js +1 -0
  150. package/dist/cjs/components/TUIMessage/MessageRevoke.js +1 -0
  151. package/dist/cjs/components/TUIMessage/MessageStatus.js +1 -0
  152. package/dist/cjs/components/TUIMessage/MessageSystem.js +1 -0
  153. package/dist/cjs/components/TUIMessage/MessageText.js +1 -0
  154. package/dist/cjs/components/TUIMessage/MessageTip.js +1 -0
  155. package/dist/cjs/components/TUIMessage/MessageVideo.js +1 -0
  156. package/dist/cjs/components/TUIMessage/TUIMessage.d.ts +41 -0
  157. package/dist/cjs/components/TUIMessage/TUIMessage.js +1 -0
  158. package/dist/cjs/components/TUIMessage/TUIMessageDefault.js +1 -0
  159. package/dist/cjs/components/TUIMessage/hooks/useMessageContextHandler.js +1 -0
  160. package/dist/cjs/components/TUIMessage/hooks/useMessageHandler.js +1 -0
  161. package/dist/cjs/components/TUIMessage/hooks/useMessagePluginElement.js +1 -0
  162. package/dist/cjs/components/TUIMessage/hooks/useMessageReply.js +1 -0
  163. package/dist/cjs/components/TUIMessage/utils/decodeText.js +1 -0
  164. package/dist/cjs/components/TUIMessage/utils/emojiMap.js +1 -0
  165. package/dist/cjs/components/TUIMessage/utils/index.js +1 -0
  166. package/dist/cjs/components/TUIMessageInput/EmojiPicker.js +1 -0
  167. package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.d.ts +5 -0
  168. package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.js +1 -0
  169. package/dist/cjs/components/TUIMessageInput/InputQuoteDefalut.js +1 -0
  170. package/dist/cjs/components/TUIMessageInput/TUIForward.js +1 -0
  171. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.d.ts +18 -0
  172. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.js +1 -0
  173. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.d.ts +5 -0
  174. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.js +1 -0
  175. package/dist/cjs/components/TUIMessageInput/hooks/useCreateMessageInputContext.js +1 -0
  176. package/dist/cjs/components/TUIMessageInput/hooks/useEmojiPicker.d.ts +6 -0
  177. package/dist/cjs/components/TUIMessageInput/hooks/useEmojiPicker.js +1 -0
  178. package/dist/cjs/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -0
  179. package/dist/cjs/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -0
  180. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputState.d.ts +6 -0
  181. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputState.js +1 -0
  182. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputText.js +1 -0
  183. package/dist/cjs/components/TUIMessageInput/hooks/useUploadElement.js +1 -0
  184. package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.d.ts +5 -0
  185. package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.js +1 -0
  186. package/dist/cjs/components/TUIMessageList/TUIMessageList.d.ts +11 -0
  187. package/dist/cjs/components/TUIMessageList/TUIMessageList.js +1 -0
  188. package/dist/cjs/components/TUIMessageList/hooks/useEnrichedMessageList.js +1 -0
  189. package/dist/cjs/components/TUIMessageList/hooks/useMessageListElement.js +1 -0
  190. package/dist/cjs/components/TUIProfile/TUIProfile.d.ts +10 -0
  191. package/dist/cjs/components/TUIProfile/TUIProfile.js +1 -0
  192. package/dist/cjs/components/TUIProfile/TUIProfileDefault.d.ts +12 -0
  193. package/dist/cjs/components/TUIProfile/TUIProfileDefault.js +1 -0
  194. package/dist/cjs/components/TUIProfile/hooks/useMyProfile.d.ts +17 -0
  195. package/dist/cjs/components/TUIProfile/hooks/useMyProfile.js +1 -0
  196. package/dist/cjs/components/Toast/index.js +1 -0
  197. package/dist/cjs/components/untils.js +1 -0
  198. package/dist/cjs/constants.d.ts +11 -0
  199. package/dist/cjs/constants.js +1 -0
  200. package/dist/cjs/context/ComponentContext.d.ts +26 -0
  201. package/dist/cjs/context/ComponentContext.js +1 -0
  202. package/dist/cjs/context/TUIChatActionContext.d.ts +27 -0
  203. package/dist/cjs/context/TUIChatActionContext.js +1 -0
  204. package/dist/cjs/context/TUIChatStateContext.d.ts +25 -0
  205. package/dist/cjs/context/TUIChatStateContext.js +1 -0
  206. package/dist/cjs/context/TUIConversationContext.js +1 -0
  207. package/dist/cjs/context/TUIKitContext.d.ts +21 -0
  208. package/dist/cjs/context/TUIKitContext.js +1 -0
  209. package/dist/cjs/context/TUIMessageContext.d.ts +41 -0
  210. package/dist/cjs/context/TUIMessageContext.js +1 -0
  211. package/dist/cjs/context/TUIMessageInputContext.d.ts +37 -0
  212. package/dist/cjs/context/TUIMessageInputContext.js +1 -0
  213. package/dist/cjs/hooks/useConversation.d.ts +25 -0
  214. package/dist/cjs/hooks/useConversation.js +1 -0
  215. package/dist/cjs/hooks/useProfile.d.ts +5 -0
  216. package/dist/cjs/hooks/useProfile.js +1 -0
  217. package/dist/cjs/index.css +1 -0
  218. package/dist/cjs/index.d.css +1281 -0
  219. package/dist/cjs/index.d.ts +29 -0
  220. package/dist/cjs/index.js +1 -0
  221. package/dist/esm/_virtual/DateInput.js +1 -0
  222. package/dist/esm/_virtual/DatePicker.js +1 -0
  223. package/dist/esm/_virtual/DayInput.js +1 -0
  224. package/dist/esm/_virtual/Divider.js +1 -0
  225. package/dist/esm/_virtual/Fit.js +1 -0
  226. package/dist/esm/_virtual/Input.js +1 -0
  227. package/dist/esm/_virtual/MonthInput.js +1 -0
  228. package/dist/esm/_virtual/MonthSelect.js +1 -0
  229. package/dist/esm/_virtual/NativeInput.js +1 -0
  230. package/dist/esm/_virtual/YearInput.js +1 -0
  231. package/dist/esm/_virtual/_commonjsHelpers.js +1 -0
  232. package/dist/esm/_virtual/clsx.m.js +1 -0
  233. package/dist/esm/_virtual/dateFormatter.js +1 -0
  234. package/dist/esm/_virtual/dates.js +1 -0
  235. package/dist/esm/_virtual/entry.js +1 -0
  236. package/dist/esm/_virtual/index.js +1 -0
  237. package/dist/esm/_virtual/index10.js +1 -0
  238. package/dist/esm/_virtual/index2.js +1 -0
  239. package/dist/esm/_virtual/index3.js +1 -0
  240. package/dist/esm/_virtual/index4.js +1 -0
  241. package/dist/esm/_virtual/index5.js +1 -0
  242. package/dist/esm/_virtual/index6.js +1 -0
  243. package/dist/esm/_virtual/index7.js +1 -0
  244. package/dist/esm/_virtual/index8.js +1 -0
  245. package/dist/esm/_virtual/index9.js +1 -0
  246. package/dist/esm/_virtual/propTypes.js +1 -0
  247. package/dist/esm/_virtual/react-dom.development.js +1 -0
  248. package/dist/esm/_virtual/react-dom.production.min.js +1 -0
  249. package/dist/esm/_virtual/react-is.development.js +1 -0
  250. package/dist/esm/_virtual/react-is.production.min.js +1 -0
  251. package/dist/esm/_virtual/scheduler.development.js +1 -0
  252. package/dist/esm/_virtual/scheduler.production.min.js +1 -0
  253. package/dist/esm/_virtual/tiny-warning.esm.js +1 -0
  254. package/dist/esm/_virtual/utils.js +1 -0
  255. package/dist/esm/components/Avatar/Avatar.d.ts +22 -0
  256. package/dist/esm/components/Avatar/Avatar.js +1 -0
  257. package/dist/esm/components/Avatar/default.d.ts +7 -0
  258. package/dist/esm/components/Avatar/default.js +1 -0
  259. package/dist/esm/components/Checkbox/index.js +1 -0
  260. package/dist/esm/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -0
  261. package/dist/esm/components/ConversationCreate/ConversationCreate.js +1 -0
  262. package/dist/esm/components/ConversationCreate/ConversationCreateSelectView.js +1 -0
  263. package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -0
  264. package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -0
  265. package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +1 -0
  266. package/dist/esm/components/ConversationCreate/static/word.js +1 -0
  267. package/dist/esm/components/ConversationPreview/ConversationListContainer.d.ts +10 -0
  268. package/dist/esm/components/ConversationPreview/ConversationListContainer.js +1 -0
  269. package/dist/esm/components/ConversationPreview/ConversationPreview.d.ts +31 -0
  270. package/dist/esm/components/ConversationPreview/ConversationPreview.js +1 -0
  271. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.d.ts +7 -0
  272. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.js +1 -0
  273. package/dist/esm/components/ConversationPreview/utils.js +1 -0
  274. package/dist/esm/components/ConversationSearch/ConversationSearchInput.d.ts +5 -0
  275. package/dist/esm/components/ConversationSearch/ConversationSearchInput.js +1 -0
  276. package/dist/esm/components/ConversationSearch/ConversationSearchResult.d.ts +12 -0
  277. package/dist/esm/components/ConversationSearch/ConversationSearchResult.js +1 -0
  278. package/dist/esm/components/DivWithEdit/DivWithEdit.js +1 -0
  279. package/dist/esm/components/DivWithEdit/WithSelect.js +1 -0
  280. package/dist/esm/components/DivWithEdit/WithText.js +1 -0
  281. package/dist/esm/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +6 -0
  282. package/dist/esm/components/EmptyStateIndicator/EmptyStateIndicator.js +1 -0
  283. package/dist/esm/components/Icon/Icon.js +1 -0
  284. package/dist/esm/components/Icon/config.js +1 -0
  285. package/dist/esm/components/Icon/images/add.png.js +1 -0
  286. package/dist/esm/components/Icon/images/arrow-down.png.js +1 -0
  287. package/dist/esm/components/Icon/images/arrow-right.png.js +1 -0
  288. package/dist/esm/components/Icon/images/back.png.js +1 -0
  289. package/dist/esm/components/Icon/images/camera.png.js +1 -0
  290. package/dist/esm/components/Icon/images/cancel.png.js +1 -0
  291. package/dist/esm/components/Icon/images/clear.png.js +1 -0
  292. package/dist/esm/components/Icon/images/close.png.js +1 -0
  293. package/dist/esm/components/Icon/images/confirm.png.js +1 -0
  294. package/dist/esm/components/Icon/images/copy.png.js +1 -0
  295. package/dist/esm/components/Icon/images/create.png.js +1 -0
  296. package/dist/esm/components/Icon/images/cry.png.js +1 -0
  297. package/dist/esm/components/Icon/images/del.png.js +1 -0
  298. package/dist/esm/components/Icon/images/document.png.js +1 -0
  299. package/dist/esm/components/Icon/images/edit.png.js +1 -0
  300. package/dist/esm/components/Icon/images/effort.png.js +1 -0
  301. package/dist/esm/components/Icon/images/ellipse.png.js +1 -0
  302. package/dist/esm/components/Icon/images/emoji.png.js +1 -0
  303. package/dist/esm/components/Icon/images/file.png.js +1 -0
  304. package/dist/esm/components/Icon/images/forward.png.js +1 -0
  305. package/dist/esm/components/Icon/images/image.png.js +1 -0
  306. package/dist/esm/components/Icon/images/more.png.js +1 -0
  307. package/dist/esm/components/Icon/images/progress.png.js +1 -0
  308. package/dist/esm/components/Icon/images/quote.png.js +1 -0
  309. package/dist/esm/components/Icon/images/reply.png.js +1 -0
  310. package/dist/esm/components/Icon/images/revocation.png.js +1 -0
  311. package/dist/esm/components/Icon/images/right.png.js +1 -0
  312. package/dist/esm/components/Icon/images/search.png.js +1 -0
  313. package/dist/esm/components/Icon/images/star.png.js +1 -0
  314. package/dist/esm/components/Icon/images/video.png.js +1 -0
  315. package/dist/esm/components/Icon/type.js +1 -0
  316. package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +20 -0
  317. package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.js +1 -0
  318. package/dist/esm/components/Input/Input.d.ts +16 -0
  319. package/dist/esm/components/Input/Input.js +1 -0
  320. package/dist/esm/components/Model/index.js +1 -0
  321. package/dist/esm/components/Plugins/hooks/usePluginsElement.js +1 -0
  322. package/dist/esm/components/Plugins/index.js +1 -0
  323. package/dist/esm/components/Popup/index.js +1 -0
  324. package/dist/esm/components/Profile/Profile.js +1 -0
  325. package/dist/esm/components/Switch/Switch.js +1 -0
  326. package/dist/esm/components/Switch/utils/newId.js +1 -0
  327. package/dist/esm/components/TUIChat/TUIChat.d.ts +27 -0
  328. package/dist/esm/components/TUIChat/TUIChat.js +1 -0
  329. package/dist/esm/components/TUIChat/TUIChatState.js +1 -0
  330. package/dist/esm/components/TUIChat/hooks/useCreateMessage.d.ts +31 -0
  331. package/dist/esm/components/TUIChat/hooks/useCreateMessage.js +1 -0
  332. package/dist/esm/components/TUIChat/hooks/useCreateTUIChatStateContext.js +1 -0
  333. package/dist/esm/components/TUIChat/hooks/useHandleMessage.d.ts +7 -0
  334. package/dist/esm/components/TUIChat/hooks/useHandleMessage.js +1 -0
  335. package/dist/esm/components/TUIChat/hooks/useHandleMessageList.js +1 -0
  336. package/dist/esm/components/TUIChat/hooks/useMessageReceviedListener.js +1 -0
  337. package/dist/esm/components/TUIChat/unitls.js +1 -0
  338. package/dist/esm/components/TUIChatHeader/TUIChatHeader.d.ts +13 -0
  339. package/dist/esm/components/TUIChatHeader/TUIChatHeader.js +1 -0
  340. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +13 -0
  341. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -0
  342. package/dist/esm/components/TUIConversation/TUIConversation.d.ts +10 -0
  343. package/dist/esm/components/TUIConversation/TUIConversation.js +1 -0
  344. package/dist/esm/components/TUIConversationList/TUIConversationList.d.ts +17 -0
  345. package/dist/esm/components/TUIConversationList/TUIConversationList.js +1 -0
  346. package/dist/esm/components/TUIConversationList/hooks/useConversationList.js +1 -0
  347. package/dist/esm/components/TUIConversationList/hooks/useConversationUpdate.js +1 -0
  348. package/dist/esm/components/TUIKit/TUIKit.d.ts +10 -0
  349. package/dist/esm/components/TUIKit/TUIKit.js +1 -0
  350. package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +17 -0
  351. package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.js +1 -0
  352. package/dist/esm/components/TUIKit/hooks/useTUIKit.d.ts +17 -0
  353. package/dist/esm/components/TUIKit/hooks/useTUIKit.js +1 -0
  354. package/dist/esm/components/TUIManage/TUIManage.d.ts +3 -0
  355. package/dist/esm/components/TUIManage/TUIManage.js +1 -0
  356. package/dist/esm/components/TUIMessage/MessageAudio.js +1 -0
  357. package/dist/esm/components/TUIMessage/MessageBubble.js +1 -0
  358. package/dist/esm/components/TUIMessage/MessageContext.d.ts +7 -0
  359. package/dist/esm/components/TUIMessage/MessageContext.js +1 -0
  360. package/dist/esm/components/TUIMessage/MessageCustom.js +1 -0
  361. package/dist/esm/components/TUIMessage/MessageFace.js +1 -0
  362. package/dist/esm/components/TUIMessage/MessageFile.js +1 -0
  363. package/dist/esm/components/TUIMessage/MessageImage.js +1 -0
  364. package/dist/esm/components/TUIMessage/MessageLocation.js +1 -0
  365. package/dist/esm/components/TUIMessage/MessageMerger.js +1 -0
  366. package/dist/esm/components/TUIMessage/MessagePlugins.js +1 -0
  367. package/dist/esm/components/TUIMessage/MessageRevoke.js +1 -0
  368. package/dist/esm/components/TUIMessage/MessageStatus.js +1 -0
  369. package/dist/esm/components/TUIMessage/MessageSystem.js +1 -0
  370. package/dist/esm/components/TUIMessage/MessageText.js +1 -0
  371. package/dist/esm/components/TUIMessage/MessageTip.js +1 -0
  372. package/dist/esm/components/TUIMessage/MessageVideo.js +1 -0
  373. package/dist/esm/components/TUIMessage/TUIMessage.d.ts +41 -0
  374. package/dist/esm/components/TUIMessage/TUIMessage.js +1 -0
  375. package/dist/esm/components/TUIMessage/TUIMessageDefault.js +1 -0
  376. package/dist/esm/components/TUIMessage/hooks/useMessageContextHandler.js +1 -0
  377. package/dist/esm/components/TUIMessage/hooks/useMessageHandler.js +1 -0
  378. package/dist/esm/components/TUIMessage/hooks/useMessagePluginElement.js +1 -0
  379. package/dist/esm/components/TUIMessage/hooks/useMessageReply.js +1 -0
  380. package/dist/esm/components/TUIMessage/utils/decodeText.js +1 -0
  381. package/dist/esm/components/TUIMessage/utils/emojiMap.js +1 -0
  382. package/dist/esm/components/TUIMessage/utils/index.js +1 -0
  383. package/dist/esm/components/TUIMessageInput/EmojiPicker.js +1 -0
  384. package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.d.ts +5 -0
  385. package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.js +1 -0
  386. package/dist/esm/components/TUIMessageInput/InputQuoteDefalut.js +1 -0
  387. package/dist/esm/components/TUIMessageInput/TUIForward.js +1 -0
  388. package/dist/esm/components/TUIMessageInput/TUIMessageInput.d.ts +18 -0
  389. package/dist/esm/components/TUIMessageInput/TUIMessageInput.js +1 -0
  390. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.d.ts +5 -0
  391. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.js +1 -0
  392. package/dist/esm/components/TUIMessageInput/hooks/useCreateMessageInputContext.js +1 -0
  393. package/dist/esm/components/TUIMessageInput/hooks/useEmojiPicker.d.ts +6 -0
  394. package/dist/esm/components/TUIMessageInput/hooks/useEmojiPicker.js +1 -0
  395. package/dist/esm/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -0
  396. package/dist/esm/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -0
  397. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputState.d.ts +6 -0
  398. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputState.js +1 -0
  399. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputText.js +1 -0
  400. package/dist/esm/components/TUIMessageInput/hooks/useUploadElement.js +1 -0
  401. package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.d.ts +5 -0
  402. package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.js +1 -0
  403. package/dist/esm/components/TUIMessageList/TUIMessageList.d.ts +11 -0
  404. package/dist/esm/components/TUIMessageList/TUIMessageList.js +1 -0
  405. package/dist/esm/components/TUIMessageList/hooks/useEnrichedMessageList.js +1 -0
  406. package/dist/esm/components/TUIMessageList/hooks/useMessageListElement.js +1 -0
  407. package/dist/esm/components/TUIProfile/TUIProfile.d.ts +10 -0
  408. package/dist/esm/components/TUIProfile/TUIProfile.js +1 -0
  409. package/dist/esm/components/TUIProfile/TUIProfileDefault.d.ts +12 -0
  410. package/dist/esm/components/TUIProfile/TUIProfileDefault.js +1 -0
  411. package/dist/esm/components/TUIProfile/hooks/useMyProfile.d.ts +17 -0
  412. package/dist/esm/components/TUIProfile/hooks/useMyProfile.js +1 -0
  413. package/dist/esm/components/Toast/index.js +1 -0
  414. package/dist/esm/components/untils.js +1 -0
  415. package/dist/esm/constants.d.ts +11 -0
  416. package/dist/esm/constants.js +1 -0
  417. package/dist/esm/context/ComponentContext.d.ts +26 -0
  418. package/dist/esm/context/ComponentContext.js +1 -0
  419. package/dist/esm/context/TUIChatActionContext.d.ts +27 -0
  420. package/dist/esm/context/TUIChatActionContext.js +1 -0
  421. package/dist/esm/context/TUIChatStateContext.d.ts +25 -0
  422. package/dist/esm/context/TUIChatStateContext.js +1 -0
  423. package/dist/esm/context/TUIConversationContext.js +1 -0
  424. package/dist/esm/context/TUIKitContext.d.ts +21 -0
  425. package/dist/esm/context/TUIKitContext.js +1 -0
  426. package/dist/esm/context/TUIMessageContext.d.ts +41 -0
  427. package/dist/esm/context/TUIMessageContext.js +1 -0
  428. package/dist/esm/context/TUIMessageInputContext.d.ts +37 -0
  429. package/dist/esm/context/TUIMessageInputContext.js +1 -0
  430. package/dist/esm/hooks/useConversation.d.ts +25 -0
  431. package/dist/esm/hooks/useConversation.js +1 -0
  432. package/dist/esm/hooks/useProfile.d.ts +5 -0
  433. package/dist/esm/hooks/useProfile.js +1 -0
  434. package/dist/esm/index.css +1 -0
  435. package/dist/esm/index.d.css +1281 -0
  436. package/dist/esm/index.d.ts +29 -0
  437. package/dist/esm/index.js +1 -0
  438. package/package.json +70 -0
  439. package/rollup.config.js +66 -0
  440. package/src/@types/images.d.ts +7 -0
  441. package/src/@types/index.d.ts +1 -0
  442. package/src/@types/index.js +3 -0
  443. package/src/components/Avatar/Avatar.tsx +151 -0
  444. package/src/components/Avatar/default.ts +5 -0
  445. package/src/components/Avatar/index.ts +2 -0
  446. package/src/components/Avatar/styles/index.scss +55 -0
  447. package/src/components/Checkbox/index.tsx +53 -0
  448. package/src/components/Checkbox/styles/color.scss +11 -0
  449. package/src/components/Checkbox/styles/index.scss +2 -0
  450. package/src/components/Checkbox/styles/layout.scss +25 -0
  451. package/src/components/ConversationCreate/ConversationCreatGroupDetail.tsx +155 -0
  452. package/src/components/ConversationCreate/ConversationCreate.tsx +74 -0
  453. package/src/components/ConversationCreate/ConversationCreateSelectView.tsx +46 -0
  454. package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +158 -0
  455. package/src/components/ConversationCreate/ConversationGroupTypeInfo.tsx +50 -0
  456. package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +105 -0
  457. package/src/components/ConversationCreate/index.ts +6 -0
  458. package/src/components/ConversationCreate/static/word.ts +300 -0
  459. package/src/components/ConversationCreate/styles/ConversationCreatGroupDetail.scss +58 -0
  460. package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +32 -0
  461. package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +61 -0
  462. package/src/components/ConversationCreate/styles/index.scss +87 -0
  463. package/src/components/ConversationPreview/ConversationListContainer.tsx +20 -0
  464. package/src/components/ConversationPreview/ConversationPreview.tsx +75 -0
  465. package/src/components/ConversationPreview/ConversationPreviewContent.tsx +136 -0
  466. package/src/components/ConversationPreview/index.ts +2 -0
  467. package/src/components/ConversationPreview/styles/index.scss +140 -0
  468. package/src/components/ConversationPreview/utils.tsx +124 -0
  469. package/src/components/ConversationSearch/ConversationSearchInput.tsx +25 -0
  470. package/src/components/ConversationSearch/ConversationSearchResult.tsx +39 -0
  471. package/src/components/ConversationSearch/index.ts +2 -0
  472. package/src/components/ConversationSearch/styles/index.scss +19 -0
  473. package/src/components/DivWithEdit/DivWithEdit.tsx +90 -0
  474. package/src/components/DivWithEdit/WithSelect.tsx +29 -0
  475. package/src/components/DivWithEdit/WithText.tsx +42 -0
  476. package/src/components/DivWithEdit/index.ts +1 -0
  477. package/src/components/DivWithEdit/styles/index.scss +68 -0
  478. package/src/components/EmptyStateIndicator/EmptyStateIndicator.tsx +23 -0
  479. package/src/components/EmptyStateIndicator/index.ts +1 -0
  480. package/src/components/Icon/Icon.tsx +40 -0
  481. package/src/components/Icon/config.ts +164 -0
  482. package/src/components/Icon/images/add.png +0 -0
  483. package/src/components/Icon/images/arrow-down.png +0 -0
  484. package/src/components/Icon/images/arrow-right.png +0 -0
  485. package/src/components/Icon/images/back.png +0 -0
  486. package/src/components/Icon/images/camera.png +0 -0
  487. package/src/components/Icon/images/cancel.png +0 -0
  488. package/src/components/Icon/images/clear.png +0 -0
  489. package/src/components/Icon/images/close.png +0 -0
  490. package/src/components/Icon/images/confirm.png +0 -0
  491. package/src/components/Icon/images/copy.png +0 -0
  492. package/src/components/Icon/images/create.png +0 -0
  493. package/src/components/Icon/images/cry.png +0 -0
  494. package/src/components/Icon/images/del.png +0 -0
  495. package/src/components/Icon/images/document.png +0 -0
  496. package/src/components/Icon/images/edit.png +0 -0
  497. package/src/components/Icon/images/effort.png +0 -0
  498. package/src/components/Icon/images/ellipse.png +0 -0
  499. package/src/components/Icon/images/emoji.png +0 -0
  500. package/src/components/Icon/images/file.png +0 -0
  501. package/src/components/Icon/images/forward.png +0 -0
  502. package/src/components/Icon/images/image.png +0 -0
  503. package/src/components/Icon/images/more.png +0 -0
  504. package/src/components/Icon/images/progress.png +0 -0
  505. package/src/components/Icon/images/quote.png +0 -0
  506. package/src/components/Icon/images/reply.png +0 -0
  507. package/src/components/Icon/images/revocation.png +0 -0
  508. package/src/components/Icon/images/right.png +0 -0
  509. package/src/components/Icon/images/search.png +0 -0
  510. package/src/components/Icon/images/star.png +0 -0
  511. package/src/components/Icon/images/video.png +0 -0
  512. package/src/components/Icon/index.ts +2 -0
  513. package/src/components/Icon/styles/index.scss +31 -0
  514. package/src/components/Icon/type.ts +32 -0
  515. package/src/components/InfiniteScrollPaginator/InfiniteScroll.tsx +115 -0
  516. package/src/components/InfiniteScrollPaginator/index.ts +1 -0
  517. package/src/components/Input/Input.tsx +108 -0
  518. package/src/components/Input/index.ts +1 -0
  519. package/src/components/Input/styles/index.scss +44 -0
  520. package/src/components/Model/index.tsx +24 -0
  521. package/src/components/Model/styles/color.scss +0 -0
  522. package/src/components/Model/styles/index.scss +2 -0
  523. package/src/components/Model/styles/layout.scss +12 -0
  524. package/src/components/Plugins/hooks/index.ts +1 -0
  525. package/src/components/Plugins/hooks/usePluginsElement.tsx +16 -0
  526. package/src/components/Plugins/index.tsx +99 -0
  527. package/src/components/Plugins/styles/color.scss +7 -0
  528. package/src/components/Plugins/styles/index.scss +2 -0
  529. package/src/components/Plugins/styles/layout.scss +18 -0
  530. package/src/components/Popup/index.tsx +76 -0
  531. package/src/components/Popup/styles/color.scss +0 -0
  532. package/src/components/Popup/styles/index.scss +2 -0
  533. package/src/components/Popup/styles/layout.scss +6 -0
  534. package/src/components/Profile/Profile.tsx +25 -0
  535. package/src/components/Profile/hooks/useProfile.tsx +28 -0
  536. package/src/components/Profile/index.ts +2 -0
  537. package/src/components/Profile/styles/index.scss +17 -0
  538. package/src/components/Switch/Switch.scss +37 -0
  539. package/src/components/Switch/Switch.tsx +41 -0
  540. package/src/components/Switch/index.ts +1 -0
  541. package/src/components/Switch/utils/newId.tsx +6 -0
  542. package/src/components/TUIChat/TUIChat.tsx +276 -0
  543. package/src/components/TUIChat/TUIChatState.tsx +129 -0
  544. package/src/components/TUIChat/hooks/useCreateMessage.tsx +117 -0
  545. package/src/components/TUIChat/hooks/useCreateTUIChatStateContext.tsx +34 -0
  546. package/src/components/TUIChat/hooks/useHandleMessage.tsx +33 -0
  547. package/src/components/TUIChat/hooks/useHandleMessageList.tsx +70 -0
  548. package/src/components/TUIChat/hooks/useIsMounted.ts +14 -0
  549. package/src/components/TUIChat/hooks/useMessageReceviedListener.tsx +26 -0
  550. package/src/components/TUIChat/index.ts +2 -0
  551. package/src/components/TUIChat/styles/index.scss +1 -0
  552. package/src/components/TUIChat/styles/layout.scss +9 -0
  553. package/src/components/TUIChat/unitls.ts +55 -0
  554. package/src/components/TUIChatHeader/TUIChatHeader.tsx +41 -0
  555. package/src/components/TUIChatHeader/TUIChatHeaderDefault.tsx +97 -0
  556. package/src/components/TUIChatHeader/index.ts +2 -0
  557. package/src/components/TUIChatHeader/styles/color.scss +3 -0
  558. package/src/components/TUIChatHeader/styles/index.scss +2 -0
  559. package/src/components/TUIChatHeader/styles/layout.scss +32 -0
  560. package/src/components/TUIConversation/TUIConversation.tsx +44 -0
  561. package/src/components/TUIConversation/index.ts +1 -0
  562. package/src/components/TUIConversationList/TUIConversationList.tsx +142 -0
  563. package/src/components/TUIConversationList/hooks/useConversationList.tsx +41 -0
  564. package/src/components/TUIConversationList/hooks/useConversationUpdate.tsx +33 -0
  565. package/src/components/TUIConversationList/index.scss +36 -0
  566. package/src/components/TUIConversationList/index.ts +2 -0
  567. package/src/components/TUIKit/TUIKit.tsx +56 -0
  568. package/src/components/TUIKit/hooks/useCreateTUIKitContext.tsx +40 -0
  569. package/src/components/TUIKit/hooks/useTUIKit.tsx +40 -0
  570. package/src/components/TUIKit/index.ts +3 -0
  571. package/src/components/TUIKit/styles/index.scss +9 -0
  572. package/src/components/TUIKit/styles/reset.scss +43 -0
  573. package/src/components/TUIManage/TUIManage.tsx +86 -0
  574. package/src/components/TUIManage/index.ts +1 -0
  575. package/src/components/TUIManage/styles/index.scss +67 -0
  576. package/src/components/TUIMessage/MessageAudio.tsx +28 -0
  577. package/src/components/TUIMessage/MessageBubble.tsx +99 -0
  578. package/src/components/TUIMessage/MessageContext.tsx +81 -0
  579. package/src/components/TUIMessage/MessageCustom.tsx +40 -0
  580. package/src/components/TUIMessage/MessageFace.tsx +28 -0
  581. package/src/components/TUIMessage/MessageFile.tsx +35 -0
  582. package/src/components/TUIMessage/MessageImage.tsx +42 -0
  583. package/src/components/TUIMessage/MessageLocation.tsx +29 -0
  584. package/src/components/TUIMessage/MessageMerger.tsx +37 -0
  585. package/src/components/TUIMessage/MessagePlugins.tsx +149 -0
  586. package/src/components/TUIMessage/MessageRevoke.tsx +47 -0
  587. package/src/components/TUIMessage/MessageStatus.tsx +34 -0
  588. package/src/components/TUIMessage/MessageSystem.tsx +30 -0
  589. package/src/components/TUIMessage/MessageText.tsx +43 -0
  590. package/src/components/TUIMessage/MessageTip.tsx +28 -0
  591. package/src/components/TUIMessage/MessageVideo.tsx +42 -0
  592. package/src/components/TUIMessage/TUIMessage.tsx +98 -0
  593. package/src/components/TUIMessage/TUIMessageDefault.tsx +93 -0
  594. package/src/components/TUIMessage/hooks/index.ts +3 -0
  595. package/src/components/TUIMessage/hooks/useMessageContextHandler.ts +70 -0
  596. package/src/components/TUIMessage/hooks/useMessageHandler.ts +142 -0
  597. package/src/components/TUIMessage/hooks/useMessagePluginElement.tsx +17 -0
  598. package/src/components/TUIMessage/hooks/useMessageReply.ts +65 -0
  599. package/src/components/TUIMessage/index.ts +3 -0
  600. package/src/components/TUIMessage/styles/color.scss +32 -0
  601. package/src/components/TUIMessage/styles/index.scss +2 -0
  602. package/src/components/TUIMessage/styles/layout.scss +389 -0
  603. package/src/components/TUIMessage/utils/decodeText.ts +61 -0
  604. package/src/components/TUIMessage/utils/emojiMap.ts +311 -0
  605. package/src/components/TUIMessage/utils/index.ts +463 -0
  606. package/src/components/TUIMessageInput/EmojiPicker.tsx +71 -0
  607. package/src/components/TUIMessageInput/InputPluginsDefalut.tsx +69 -0
  608. package/src/components/TUIMessageInput/InputQuoteDefalut.tsx +41 -0
  609. package/src/components/TUIMessageInput/TUIForward.tsx +194 -0
  610. package/src/components/TUIMessageInput/TUIMessageInput.tsx +94 -0
  611. package/src/components/TUIMessageInput/TUIMessageInputDefault.tsx +75 -0
  612. package/src/components/TUIMessageInput/hooks/index.ts +6 -0
  613. package/src/components/TUIMessageInput/hooks/useCreateMessageInputContext.ts +51 -0
  614. package/src/components/TUIMessageInput/hooks/useEmojiPicker.tsx +42 -0
  615. package/src/components/TUIMessageInput/hooks/useHandleForwardMessage.tsx +41 -0
  616. package/src/components/TUIMessageInput/hooks/useHandleQuoteMessage.tsx +63 -0
  617. package/src/components/TUIMessageInput/hooks/useMessageInputState.tsx +101 -0
  618. package/src/components/TUIMessageInput/hooks/useMessageInputText.tsx +176 -0
  619. package/src/components/TUIMessageInput/hooks/usePluginsElement.tsx +24 -0
  620. package/src/components/TUIMessageInput/hooks/useUploadElement.tsx +35 -0
  621. package/src/components/TUIMessageInput/hooks/useUploadPicker.tsx +40 -0
  622. package/src/components/TUIMessageInput/index.ts +3 -0
  623. package/src/components/TUIMessageInput/styles/color.scss +17 -0
  624. package/src/components/TUIMessageInput/styles/index.scss +2 -0
  625. package/src/components/TUIMessageInput/styles/layout.scss +280 -0
  626. package/src/components/TUIMessageList/TUIMessageList.tsx +106 -0
  627. package/src/components/TUIMessageList/hooks/useEnrichedMessageList.tsx +16 -0
  628. package/src/components/TUIMessageList/hooks/useMessageListElement.tsx +24 -0
  629. package/src/components/TUIMessageList/index.ts +2 -0
  630. package/src/components/TUIMessageList/styles/color.scss +0 -0
  631. package/src/components/TUIMessageList/styles/index.scss +2 -0
  632. package/src/components/TUIMessageList/styles/layout.scss +28 -0
  633. package/src/components/TUIProfile/TUIProfile.tsx +37 -0
  634. package/src/components/TUIProfile/TUIProfileDefault.tsx +247 -0
  635. package/src/components/TUIProfile/hooks/index.ts +1 -0
  636. package/src/components/TUIProfile/hooks/useMyProfile.tsx +64 -0
  637. package/src/components/TUIProfile/index.ts +2 -0
  638. package/src/components/TUIProfile/styles/color.scss +6 -0
  639. package/src/components/TUIProfile/styles/index.scss +2 -0
  640. package/src/components/TUIProfile/styles/layout.scss +91 -0
  641. package/src/components/Toast/index.tsx +44 -0
  642. package/src/components/Toast/styles/color.scss +11 -0
  643. package/src/components/Toast/styles/index.scss +2 -0
  644. package/src/components/Toast/styles/layout.scss +11 -0
  645. package/src/components/index.ts +12 -0
  646. package/src/components/untils.ts +72 -0
  647. package/src/constants.ts +84 -0
  648. package/src/context/ComponentContext.tsx +46 -0
  649. package/src/context/TUIChatActionContext.tsx +57 -0
  650. package/src/context/TUIChatStateContext.tsx +40 -0
  651. package/src/context/TUIConversationContext.tsx +27 -0
  652. package/src/context/TUIKitContext.tsx +31 -0
  653. package/src/context/TUIMessageContext.tsx +36 -0
  654. package/src/context/TUIMessageInputContext.tsx +56 -0
  655. package/src/context/index.ts +6 -0
  656. package/src/hooks/index.ts +2 -0
  657. package/src/hooks/useConversation.tsx +78 -0
  658. package/src/hooks/useProfile.tsx +8 -0
  659. package/src/index.ts +3 -0
  660. package/tsconfig.json +12 -0
@@ -0,0 +1,1281 @@
1
+ html, body, div, span, applet, object, iframe,
2
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
+ a, abbr, acronym, address, big, cite, code,
4
+ del, dfn, em, img, ins, kbd, q, s, samp,
5
+ small, strike, strong, sub, sup, tt, var,
6
+ b, u, i, center,
7
+ dl, dt, dd, ol, ul, li,
8
+ fieldset, form, label, legend,
9
+ table, caption, tbody, tfoot, thead, tr, th, td,
10
+ article, aside, canvas, details, embed,
11
+ figure, figcaption, footer, header, hgroup,
12
+ menu, nav, output, ruby, section, summary,
13
+ time, mark, audio, video {
14
+ margin: 0;
15
+ padding: 0;
16
+ border: 0;
17
+ font-size: 100%;
18
+ font: inherit;
19
+ vertical-align: baseline;
20
+ }
21
+
22
+ /* HTML5 display-role reset for older browsers */
23
+ article, aside, details, figcaption, figure,
24
+ footer, header, hgroup, menu, nav, section {
25
+ display: block;
26
+ }
27
+
28
+ body {
29
+ line-height: 1;
30
+ }
31
+
32
+ ol, ul {
33
+ list-style: none;
34
+ }
35
+
36
+ blockquote, q {
37
+ quotes: none;
38
+ }
39
+
40
+ blockquote:before, blockquote:after,
41
+ q:before, q:after {
42
+ content: "";
43
+ content: none;
44
+ }
45
+
46
+ table {
47
+ border-collapse: collapse;
48
+ border-spacing: 0;
49
+ }
50
+
51
+ .tui-kit {
52
+ position: relative;
53
+ display: flex;
54
+ width: 100%;
55
+ height: 100%;
56
+ background-color: #FFFFFF;
57
+ text-align: initial;
58
+ }
59
+ .tui-conversation {
60
+ height: 100%;
61
+ min-width: 360px;
62
+ max-width: 400px;
63
+ width: 30%;
64
+ display: flex;
65
+ flex-direction: column;
66
+ position: relative;
67
+ border-right: 1px solid #F9FAFB;
68
+ text-align: initial;
69
+ }
70
+ .tui-conversation .tui-conversation-header {
71
+ display: flex;
72
+ padding: 10px 20px;
73
+ }
74
+ .tui-conversation .tui-conversation-header .tui-conversation-create-icon {
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: center;
78
+ margin-left: 10px;
79
+ }
80
+ .tui-conversation .no-result {
81
+ padding: 0 20px;
82
+ display: flex;
83
+ flex-direction: column;
84
+ align-items: center;
85
+ }
86
+ .tui-conversation .no-result-icon {
87
+ margin: 100px auto 50px;
88
+ }
89
+ .tui-conversation .no-result-message {
90
+ color: #999999;
91
+ font-weight: 400;
92
+ font-size: 16px;
93
+ line-height: 22px;
94
+ }
95
+ .message-default {
96
+ display: flex;
97
+ align-items: center;
98
+ cursor: pointer;
99
+ font-family: SF Pro Text;
100
+ font-size: 14px;
101
+ font-style: normal;
102
+ font-weight: 500;
103
+ line-height: 17px;
104
+ }
105
+ .message-default .avatar {
106
+ width: 45px;
107
+ }
108
+ .message-default .avatar img {
109
+ width: 45px;
110
+ }
111
+ .message-default .content {
112
+ padding: 0 10px;
113
+ display: flex;
114
+ flex-direction: column;
115
+ align-items: flex-start;
116
+ }
117
+ .message-default .content .name {
118
+ display: inline-block;
119
+ padding-bottom: 3px;
120
+ }
121
+
122
+ .in {
123
+ display: flex;
124
+ flex-direction: row;
125
+ justify-self: flex-start;
126
+ }
127
+ .in .content {
128
+ align-items: flex-start;
129
+ flex: 1;
130
+ }
131
+
132
+ .out {
133
+ display: flex;
134
+ flex-direction: row-reverse;
135
+ justify-self: flex-end;
136
+ }
137
+ .out .content {
138
+ align-items: flex-end;
139
+ flex: 1;
140
+ }
141
+
142
+ .tip {
143
+ justify-self: center;
144
+ }
145
+
146
+ .bubble {
147
+ padding: 8px 16px;
148
+ }
149
+ .bubble-in {
150
+ border-radius: 16px 16px 16px 0;
151
+ }
152
+ .bubble-out {
153
+ border-radius: 16px 16px 0 16px;
154
+ }
155
+
156
+ .message-status {
157
+ display: flex;
158
+ align-items: flex-end;
159
+ align-self: flex-end;
160
+ }
161
+ .message-status .time {
162
+ width: max-content;
163
+ font-weight: 400;
164
+ padding: 5px 0 0 10px;
165
+ font-size: 12px;
166
+ line-height: 14px;
167
+ text-align: right;
168
+ color: #7A7A7A;
169
+ }
170
+
171
+ .message-image, .message-video {
172
+ position: relative;
173
+ }
174
+ .message-image .message-status, .message-video .message-status {
175
+ position: absolute;
176
+ bottom: 10px;
177
+ right: 10px;
178
+ }
179
+ .message-image .message-status .time, .message-video .message-status .time {
180
+ color: #FFFFFF;
181
+ }
182
+
183
+ .message-text {
184
+ display: flex;
185
+ }
186
+ .message-text-content {
187
+ display: inline;
188
+ word-break: break-word;
189
+ font-family: "SF Pro Text";
190
+ font-style: normal;
191
+ font-weight: 500;
192
+ font-size: 14px;
193
+ line-height: 17px;
194
+ }
195
+ .message-text-content .message-status {
196
+ display: inline-flex;
197
+ float: right;
198
+ clear: right;
199
+ }
200
+
201
+ .message-text,
202
+ .message-tip {
203
+ font-family: "SF Pro Text";
204
+ font-style: normal;
205
+ font-weight: 500;
206
+ font-size: 14px;
207
+ line-height: 17px;
208
+ }
209
+ .message-text .text-img,
210
+ .message-tip .text-img {
211
+ width: 20px;
212
+ height: 20px;
213
+ }
214
+
215
+ .message-image {
216
+ background: #FFFFFF;
217
+ }
218
+ .message-image img {
219
+ max-width: 300px;
220
+ }
221
+ .message-image .big-image {
222
+ max-width: 95%;
223
+ max-height: 95%;
224
+ }
225
+
226
+ .message-video {
227
+ max-width: 300px;
228
+ }
229
+ .message-video .snap-video {
230
+ position: relative;
231
+ }
232
+ .message-video .snap-video::before {
233
+ position: absolute;
234
+ z-index: 1;
235
+ content: "";
236
+ width: 0px;
237
+ height: 0px;
238
+ border: 15px solid transparent;
239
+ border-left: 20px solid #ffffff;
240
+ top: 0;
241
+ left: 0;
242
+ bottom: 0;
243
+ right: 0;
244
+ margin: auto;
245
+ }
246
+ .message-video video {
247
+ width: 100%;
248
+ border-radius: 10px;
249
+ }
250
+ .message-video .play-video {
251
+ max-width: 95%;
252
+ max-height: 95%;
253
+ }
254
+
255
+ .message-file {
256
+ display: flex;
257
+ flex-direction: column;
258
+ border: 1px solid #ddd;
259
+ }
260
+ .message-file-main {
261
+ display: flex;
262
+ align-items: center;
263
+ padding: 12px;
264
+ background: #FFFFFF;
265
+ border-radius: 4px;
266
+ }
267
+ .message-file-main .icon {
268
+ margin-right: 7px;
269
+ }
270
+ .message-file-footer {
271
+ display: flex;
272
+ justify-content: space-between;
273
+ align-items: flex-end;
274
+ }
275
+ .message-file-footer .time {
276
+ padding-top: 10px;
277
+ }
278
+ .message-file-size {
279
+ padding-top: 10px;
280
+ font-weight: 400;
281
+ font-size: 12px;
282
+ line-height: 14px;
283
+ color: #7A7A7A;
284
+ }
285
+
286
+ .message-merger {
287
+ display: flex;
288
+ flex-direction: column;
289
+ background: #ECEBEB;
290
+ }
291
+ .message-merger h3 {
292
+ padding-bottom: 4px;
293
+ border-bottom: 1px solid #a1a1a1;
294
+ }
295
+ .message-merger-list {
296
+ opacity: 0.6;
297
+ }
298
+ .message-merger-item {
299
+ padding-top: 4px;
300
+ }
301
+
302
+ .meesage-bubble-reply {
303
+ background: #ECEBEB;
304
+ padding: 8px 16px;
305
+ }
306
+ .meesage-bubble-reply-in {
307
+ border-radius: 16px 16px 16px 0;
308
+ }
309
+ .meesage-bubble-reply-out {
310
+ border-radius: 16px 16px 0px 16px;
311
+ }
312
+ .meesage-bubble-reply .message-text {
313
+ border-radius: none;
314
+ border: none;
315
+ }
316
+ .meesage-bubble-reply .bubble {
317
+ padding: 0;
318
+ }
319
+ .meesage-bubble-reply .bubble-in {
320
+ border-radius: 0;
321
+ }
322
+ .meesage-bubble-reply-main {
323
+ position: relative;
324
+ padding: 10px 14px;
325
+ margin-bottom: 10px;
326
+ background: #FFFFFF;
327
+ }
328
+ .meesage-bubble-reply-main::before {
329
+ content: "";
330
+ position: absolute;
331
+ width: 6px;
332
+ height: 100%;
333
+ background: #D9D9D9;
334
+ top: 0;
335
+ left: 0;
336
+ }
337
+ .meesage-bubble-reply-main .title {
338
+ font-family: "SF Pro Text";
339
+ font-style: normal;
340
+ font-weight: 500;
341
+ font-size: 14px;
342
+ line-height: 17px;
343
+ padding-bottom: 10px;
344
+ }
345
+ .meesage-bubble-reply-main .message-context {
346
+ opacity: 0.6;
347
+ }
348
+
349
+ .meesage-bubble {
350
+ display: flex;
351
+ align-items: flex-end;
352
+ }
353
+ .meesage-bubble-status {
354
+ margin: 3px;
355
+ }
356
+ .meesage-bubble-context {
357
+ display: flex;
358
+ align-items: center;
359
+ }
360
+ .meesage-bubble-context .message-context {
361
+ flex: 1;
362
+ }
363
+
364
+ .icon-fail {
365
+ width: 14px;
366
+ height: 14px;
367
+ border-radius: 14px;
368
+ position: relative;
369
+ background: #FA5151;
370
+ display: inline-flex;
371
+ justify-content: center;
372
+ align-items: center;
373
+ }
374
+ .icon-fail::before {
375
+ position: absolute;
376
+ content: "!";
377
+ color: #FFFFFF;
378
+ font-size: 12px;
379
+ }
380
+
381
+ .message-face {
382
+ display: flex;
383
+ flex-direction: column;
384
+ }
385
+ .message-face .img {
386
+ max-width: 88px;
387
+ }
388
+
389
+ .loading {
390
+ display: inline-block;
391
+ position: relative;
392
+ }
393
+ .loading .img, .loading video {
394
+ min-width: 60px;
395
+ min-height: 60px;
396
+ max-width: 300px;
397
+ border-radius: 10px;
398
+ }
399
+ .loading::before {
400
+ position: absolute;
401
+ content: "";
402
+ background: rgba(0, 0, 0, 0.5);
403
+ border-radius: 10px;
404
+ width: 100%;
405
+ height: 100%;
406
+ top: 0;
407
+ left: 0;
408
+ }
409
+ .loading::after {
410
+ position: absolute;
411
+ content: "";
412
+ border: 5px solid #f3f3f3;
413
+ border-top: 5px solid #555;
414
+ border-radius: 50%;
415
+ width: 30px;
416
+ height: 30px;
417
+ display: inline-block;
418
+ animation: spin 2s linear infinite;
419
+ top: 0;
420
+ left: 0;
421
+ right: 0;
422
+ bottom: 0;
423
+ margin: auto;
424
+ }
425
+ @keyframes spin {
426
+ 0% {
427
+ transform: rotate(0deg);
428
+ }
429
+ 100% {
430
+ transform: rotate(360deg);
431
+ }
432
+ }
433
+
434
+ .message-plugin {
435
+ width: 32px;
436
+ margin: 0 5px;
437
+ }
438
+ .message-plugin .icon-more {
439
+ transform: scale(1.5);
440
+ }
441
+ .message-plugin .plugin-popup-box {
442
+ top: 100%;
443
+ bottom: auto;
444
+ }
445
+ .message-plugin-top {
446
+ top: auto !important;
447
+ bottom: 100% !important;
448
+ }
449
+ .message-plugin-left {
450
+ left: -140px !important;
451
+ }
452
+ .message-plugin-box {
453
+ padding: 6px 0;
454
+ }
455
+ .message-plugin-item {
456
+ min-width: 144px;
457
+ padding: 6px 13px;
458
+ display: flex;
459
+ justify-content: space-between;
460
+ align-items: center;
461
+ font-weight: 500;
462
+ font-size: 12.8px;
463
+ line-height: 15px;
464
+ }
465
+ .message-plugin-item:hover {
466
+ background: rgba(0, 110, 255, 0.1);
467
+ color: #147aff;
468
+ }
469
+ .message-plugin-item .del {
470
+ color: #FF584C;
471
+ }
472
+
473
+ .message-custom {
474
+ display: flex;
475
+ word-break: break-all;
476
+ }
477
+ .message-custom a {
478
+ color: #679ce1;
479
+ text-decoration: none;
480
+ font-family: "SF Pro Text";
481
+ font-style: normal;
482
+ font-weight: 500;
483
+ font-size: 14px;
484
+ line-height: 17px;
485
+ }
486
+
487
+ .message-revoke {
488
+ color: #999999;
489
+ }
490
+
491
+ .message-text, .message-custom {
492
+ border: 1px solid #DDDDDD;
493
+ }
494
+
495
+ .bubble-out {
496
+ background: #F2F7FF;
497
+ border: 1px solid #F2F7FF;
498
+ }
499
+
500
+ .meesage-bubble-reply-out {
501
+ background: #F2F7FF;
502
+ }
503
+ .meesage-bubble-reply-out .meesage-bubble-reply-main .message-text {
504
+ background: none;
505
+ }
506
+
507
+ .message-tip {
508
+ color: #999999;
509
+ }
510
+
511
+ .tip .bubble .edit {
512
+ color: #147aff;
513
+ }
514
+ .plugin {
515
+ display: flex;
516
+ align-items: center;
517
+ height: 100%;
518
+ }
519
+
520
+ .plugin-popup {
521
+ height: 100%;
522
+ display: flex;
523
+ align-items: center;
524
+ position: relative;
525
+ padding: 0 8px;
526
+ }
527
+ .plugin-popup-box {
528
+ position: absolute;
529
+ z-index: 2;
530
+ bottom: 100%;
531
+ }
532
+
533
+ .plugin-popup-box {
534
+ background: #FFFFFF;
535
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
536
+ border-radius: 16px;
537
+ }
538
+ .tui-message-input {
539
+ display: flex;
540
+ flex-direction: column;
541
+ }
542
+ .tui-message-input-main {
543
+ flex: 1;
544
+ display: flex;
545
+ align-items: center;
546
+ padding: 14px 12px;
547
+ }
548
+ .tui-message-input-main .input-box {
549
+ flex: 1;
550
+ display: flex;
551
+ padding: 0 8px;
552
+ position: relative;
553
+ min-height: 20px;
554
+ max-height: 200px;
555
+ border-radius: 15px;
556
+ overflow: hidden;
557
+ padding: 10px;
558
+ }
559
+ .tui-message-input-main .input-box .input-visibility-content {
560
+ word-break: break-all;
561
+ visibility: hidden;
562
+ max-width: -webkit-fill-available;
563
+ font-family: "SF Pro Text";
564
+ font-style: normal;
565
+ font-weight: 500;
566
+ font-size: 14px;
567
+ line-height: 17px;
568
+ padding: 1px 2px;
569
+ }
570
+ .tui-message-input-main .input-box textarea {
571
+ position: absolute;
572
+ top: 0;
573
+ left: 0;
574
+ width: -webkit-fill-available;
575
+ height: -webkit-fill-available;
576
+ flex: 1;
577
+ font-family: "SF Pro Text";
578
+ font-style: normal;
579
+ font-weight: 500;
580
+ font-size: 14px;
581
+ line-height: 17px;
582
+ margin: 9px;
583
+ resize: none;
584
+ border: none;
585
+ background: none;
586
+ }
587
+ .tui-message-input-main .input-box textarea:focus, .tui-message-input-main .input-box textarea:active {
588
+ border: none;
589
+ outline: none;
590
+ }
591
+ .tui-message-input-main .disabled {
592
+ display: none;
593
+ }
594
+
595
+ ul li {
596
+ list-style: none;
597
+ }
598
+
599
+ .input-plugin-popup {
600
+ position: relative;
601
+ }
602
+ .input-plugin-popup-box {
603
+ position: absolute;
604
+ z-index: 2;
605
+ bottom: 30px;
606
+ }
607
+
608
+ .input-plugin-item {
609
+ font-style: normal;
610
+ font-weight: 500;
611
+ font-size: 16px;
612
+ line-height: 19px;
613
+ display: flex;
614
+ }
615
+ .input-plugin-item span {
616
+ padding: 0 17px;
617
+ }
618
+
619
+ .emoji-picker .face-list {
620
+ min-width: 265px;
621
+ padding: 10px 5px;
622
+ display: flex;
623
+ flex-wrap: wrap;
624
+ max-height: 120px;
625
+ overflow-y: auto;
626
+ }
627
+ .emoji-picker .face-list-item {
628
+ padding: 5px;
629
+ cursor: pointer;
630
+ }
631
+ .emoji-picker .face-list-item img {
632
+ width: 20px;
633
+ }
634
+ .emoji-picker .face-list-item .face-img {
635
+ width: 38px;
636
+ }
637
+ .emoji-picker .face-tab {
638
+ display: flex;
639
+ align-items: center;
640
+ min-width: 265px;
641
+ }
642
+ .emoji-picker .face-tab-item {
643
+ cursor: pointer;
644
+ width: 24px;
645
+ padding: 10px;
646
+ }
647
+ .emoji-picker .face-tab-item img {
648
+ width: 100%;
649
+ }
650
+
651
+ .upload-picker {
652
+ position: relative;
653
+ padding: 10px 16px;
654
+ min-width: 180px;
655
+ }
656
+ .upload-picker:hover {
657
+ background: rgba(0, 110, 255, 0.1);
658
+ color: #147aff;
659
+ }
660
+ .upload-picker input {
661
+ position: absolute;
662
+ cursor: pointer;
663
+ left: 0;
664
+ top: 0;
665
+ opacity: 0;
666
+ width: 100%;
667
+ height: 100%;
668
+ }
669
+
670
+ .input-quote {
671
+ padding: 7px 16px;
672
+ background: #F9F9F9;
673
+ display: flex;
674
+ align-items: center;
675
+ }
676
+ .input-quote-content {
677
+ flex: 1;
678
+ background: #FFFFFF;
679
+ padding: 2px 14px;
680
+ position: relative;
681
+ display: flex;
682
+ flex-direction: column;
683
+ font-weight: 500;
684
+ font-size: 14px;
685
+ line-height: 17px;
686
+ color: #000000;
687
+ }
688
+ .input-quote-content::before {
689
+ content: "";
690
+ position: absolute;
691
+ width: 6px;
692
+ height: 100%;
693
+ background: #999999;
694
+ top: 0;
695
+ left: 0;
696
+ }
697
+ .input-quote-content span {
698
+ padding-top: 8px;
699
+ opacity: 0.6;
700
+ }
701
+ .input-quote .icon {
702
+ margin: 0 5px 0 16px;
703
+ }
704
+
705
+ .tui-forward {
706
+ background: #FFFFFF;
707
+ border-radius: 16px;
708
+ display: flex;
709
+ flex-direction: column;
710
+ overflow: hidden;
711
+ width: 300px;
712
+ }
713
+ .tui-forward-header {
714
+ display: flex;
715
+ align-items: center;
716
+ padding: 24px 20px;
717
+ }
718
+ .tui-forward-title {
719
+ padding: 0 16px;
720
+ font-family: "SF Pro Text";
721
+ font-style: normal;
722
+ font-weight: 700;
723
+ font-size: 14px;
724
+ line-height: 17px;
725
+ }
726
+ .tui-forward-main {
727
+ padding: 0 20px;
728
+ max-height: calc(100vh - 200px);
729
+ overflow-y: auto;
730
+ }
731
+ .tui-forward-main .no-result {
732
+ font-family: PingFang SC;
733
+ font-size: 14px;
734
+ font-style: normal;
735
+ line-height: 20px;
736
+ padding: 10px;
737
+ text-align: center;
738
+ color: #999999;
739
+ }
740
+ .tui-forward-search {
741
+ padding: 10px 15px;
742
+ }
743
+ .tui-forward-list {
744
+ padding: 13px 0;
745
+ }
746
+ .tui-forward-list-title {
747
+ font-family: "PingFang SC";
748
+ font-style: normal;
749
+ font-weight: 600;
750
+ font-size: 14px;
751
+ line-height: 20px;
752
+ }
753
+ .tui-forward-list-item {
754
+ padding: 6px 0;
755
+ font-family: "PingFang SC";
756
+ font-style: normal;
757
+ font-weight: 400;
758
+ font-size: 14px;
759
+ line-height: 20px;
760
+ display: flex;
761
+ justify-content: space-between;
762
+ align-items: center;
763
+ }
764
+ .tui-forward-list-item .info {
765
+ display: flex;
766
+ align-items: center;
767
+ }
768
+ .tui-forward-list-item .info-nick {
769
+ padding: 0 13px;
770
+ font-family: "PingFang SC";
771
+ font-style: normal;
772
+ font-weight: 400;
773
+ font-size: 14px;
774
+ line-height: 20px;
775
+ min-width: 180px;
776
+ max-width: 300px;
777
+ overflow: hidden;
778
+ white-space: nowrap;
779
+ text-overflow: ellipsis;
780
+ }
781
+ .tui-forward-footer {
782
+ background: rgba(249, 249, 249, 0.94);
783
+ padding: 13px 10px;
784
+ display: flex;
785
+ justify-content: space-between;
786
+ align-items: center;
787
+ }
788
+ .tui-forward-footer .button {
789
+ cursor: pointer;
790
+ background: #0365F9;
791
+ border-radius: 31px;
792
+ padding: 10px 21px;
793
+ font-family: "PingFang SC";
794
+ font-style: normal;
795
+ font-weight: 400;
796
+ font-size: 14px;
797
+ line-height: 20px;
798
+ color: #FFFFFF;
799
+ border: none;
800
+ }
801
+ .tui-forward-footer-name {
802
+ flex: 1;
803
+ overflow: hidden;
804
+ word-break: break-all;
805
+ text-overflow: ellipsis;
806
+ display: -webkit-box;
807
+ -webkit-line-clamp: 3;
808
+ -webkit-box-orient: vertical;
809
+ }
810
+
811
+ .tui-message-input .tui-kit-input-box--focus {
812
+ outline: 1px solid #147AFF;
813
+ }
814
+ .tui-message-input .input-box {
815
+ border: 1px solid #D3DAF3;
816
+ background: #FFFFFF;
817
+ }
818
+
819
+ .input-plugin-popup-box {
820
+ background: rgba(249, 249, 249, 0.94);
821
+ box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
822
+ border-radius: 16px;
823
+ }
824
+ .tui-kit-avatar {
825
+ display: flex;
826
+ align-items: center;
827
+ position: relative;
828
+ cursor: pointer;
829
+ }
830
+ .tui-kit-avatar.circle .avatar-image {
831
+ border-radius: 50%;
832
+ }
833
+ .tui-kit-avatar.square .avatar-image {
834
+ border-radius: 4px;
835
+ }
836
+ .tui-kit-avatar img {
837
+ width: 100%;
838
+ height: 100%;
839
+ }
840
+ .tui-kit-avatar:hover .tui-kit-avatar-edit {
841
+ display: flex;
842
+ }
843
+ .tui-kit-avatar-edit {
844
+ position: absolute;
845
+ top: 0;
846
+ left: 0;
847
+ background: rgba(0, 0, 0, 0.33);
848
+ width: 100%;
849
+ height: 100%;
850
+ border-radius: 100%;
851
+ display: none;
852
+ justify-content: center;
853
+ align-items: center;
854
+ }
855
+ .tui-kit-avatar-list {
856
+ position: absolute;
857
+ z-index: 2;
858
+ top: 100%;
859
+ background: #FFFFFF;
860
+ border-radius: 5px;
861
+ box-shadow: 0 11px 20px 0 rgba(0, 0, 0, 0.3);
862
+ display: flex;
863
+ flex-wrap: wrap;
864
+ justify-content: center;
865
+ width: 100%;
866
+ min-width: 200px;
867
+ max-width: 400px;
868
+ padding: 10px;
869
+ }
870
+ .tui-kit-avatar-list-item {
871
+ padding: 10px;
872
+ }
873
+ .tui-kit-avatar-list-item img {
874
+ width: 40px;
875
+ }
876
+ .conversation-list-container {
877
+ overflow-x: hidden;
878
+ height: 100%;
879
+ }
880
+
881
+ .conversation-preview-container {
882
+ display: flex;
883
+ align-items: center;
884
+ background-color: #FFFFFF;
885
+ border: none;
886
+ width: 100%;
887
+ height: 64px;
888
+ cursor: pointer;
889
+ line-height: 17px;
890
+ padding: 0 20px;
891
+ }
892
+ .conversation-preview-container .content {
893
+ flex: 1;
894
+ text-align: left;
895
+ max-width: 58%;
896
+ min-width: 58%;
897
+ margin-left: 10px;
898
+ }
899
+ .conversation-preview-container .content .title {
900
+ font-style: normal;
901
+ font-weight: 700;
902
+ font-size: 14px;
903
+ line-height: 17px;
904
+ font-family: "SF Pro Text";
905
+ padding: 1px 0;
906
+ }
907
+ .conversation-preview-container .content .message {
908
+ overflow: hidden;
909
+ text-overflow: ellipsis;
910
+ white-space: nowrap;
911
+ color: #7A7A7A;
912
+ font-family: "SF Pro Text";
913
+ font-style: normal;
914
+ font-weight: 400;
915
+ font-size: 12px;
916
+ line-height: 14px;
917
+ padding: 1px 0;
918
+ }
919
+ .conversation-preview-container .external {
920
+ min-width: 90px;
921
+ text-align: right;
922
+ flex: 1;
923
+ display: flex;
924
+ flex-direction: column;
925
+ }
926
+ .conversation-preview-container .external .unread {
927
+ height: 19px;
928
+ padding: 1px 0;
929
+ }
930
+ .conversation-preview-container .external .time {
931
+ color: #7A7A7A;
932
+ font-family: "SF Pro Text";
933
+ font-style: normal;
934
+ font-weight: 400;
935
+ font-size: 12px;
936
+ line-height: 14px;
937
+ padding: 1px 0;
938
+ }
939
+ .conversation-preview-container .external .more--hover {
940
+ display: flex;
941
+ justify-content: right;
942
+ }
943
+ .conversation-preview-container .external .more--hover .icon-more {
944
+ transform: scale(1.5);
945
+ }
946
+ .conversation-preview-container .external .more--hover .more-handle-box {
947
+ top: 0;
948
+ right: 0;
949
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
950
+ bottom: initial;
951
+ padding: 14px 0;
952
+ box-sizing: border-box;
953
+ text-align: start;
954
+ white-space: nowrap;
955
+ }
956
+ .conversation-preview-container .external .more--hover .more-handle-box .more-handle-item {
957
+ font-size: 16px;
958
+ line-height: 19px;
959
+ padding: 6px 16px;
960
+ cursor: pointer;
961
+ font-weight: 500;
962
+ box-sizing: border-box;
963
+ }
964
+ .conversation-preview-container .external .more--hover .more-handle-box .more-handle-item:hover {
965
+ background: #147AFF;
966
+ opacity: 0.6;
967
+ color: #FFFFFF !important;
968
+ }
969
+ .conversation-preview-container:hover {
970
+ background-color: rgba(0, 110, 255, 0.1);
971
+ }
972
+ .conversation-preview-container.conversation-preview-content--pin {
973
+ background-color: rgba(242, 242, 242, 0.831372549);
974
+ }
975
+ .conversation-preview-container.conversation-preview-content--active {
976
+ background-color: rgba(0, 110, 255, 0.1);
977
+ }
978
+ .conversation-preview-container.conversation-preview-content--active .title {
979
+ color: rgb(20, 122, 255);
980
+ }
981
+ .conversation-preview-container.conversation-preview-content--unread .unread {
982
+ width: 16px;
983
+ height: 13px;
984
+ background: #FF3742;
985
+ border-radius: 16px;
986
+ display: flex;
987
+ justify-content: center;
988
+ align-items: center;
989
+ padding: 2px 5px 1px;
990
+ color: #FFFFFF;
991
+ font-size: 11px;
992
+ font-weight: 700;
993
+ margin: 2px 0 2px auto;
994
+ }
995
+ .tui-chat-header {
996
+ padding: 16px 20px;
997
+ display: flex;
998
+ flex-direction: row;
999
+ justify-content: space-between;
1000
+ align-items: center;
1001
+ }
1002
+ .tui-chat-header-left {
1003
+ display: flex;
1004
+ align-items: center;
1005
+ }
1006
+ .tui-chat-header-left .header-content {
1007
+ padding: 0 8px;
1008
+ }
1009
+ .tui-chat-header-right .header-handle-more {
1010
+ padding: 10px 3px;
1011
+ }
1012
+ .tui-chat-header .title {
1013
+ font-family: "SF Pro Text";
1014
+ font-style: normal;
1015
+ font-weight: 700;
1016
+ font-size: 14px;
1017
+ line-height: 17px;
1018
+ }
1019
+ .tui-chat-header .system {
1020
+ height: 32px;
1021
+ }
1022
+
1023
+ .tui-chat-header {
1024
+ background: #FFFFFF;
1025
+ }
1026
+ .chat {
1027
+ flex: 1;
1028
+ width: 100%;
1029
+ box-sizing: border-box;
1030
+ display: flex;
1031
+ flex-direction: column;
1032
+ position: relative;
1033
+ background: #FFFFFF;
1034
+ }
1035
+ ul, li, div, p, label, span {
1036
+ margin: 0;
1037
+ padding: 0;
1038
+ }
1039
+
1040
+ ul li {
1041
+ list-style: none;
1042
+ }
1043
+
1044
+ .message-list {
1045
+ flex: 1;
1046
+ height: 100%;
1047
+ overflow-x: hidden;
1048
+ overflow-y: auto;
1049
+ position: relative;
1050
+ padding: 0 20px;
1051
+ }
1052
+ .message-list-item {
1053
+ display: grid;
1054
+ padding: 5px 0;
1055
+ }
1056
+ .message-list .no-more {
1057
+ text-align: center;
1058
+ font-family: SF Pro Text;
1059
+ font-size: 14px;
1060
+ font-style: normal;
1061
+ font-weight: 500;
1062
+ line-height: 17px;
1063
+ color: #999999;
1064
+ }
1065
+ .tui-profile {
1066
+ display: flex;
1067
+ flex-direction: column;
1068
+ align-items: center;
1069
+ width: 30%;
1070
+ max-width: 400px;
1071
+ min-width: 360px;
1072
+ height: 100%;
1073
+ }
1074
+ .tui-profile-header {
1075
+ box-sizing: border-box;
1076
+ width: 100%;
1077
+ padding: 16px 20px;
1078
+ display: flex;
1079
+ align-items: center;
1080
+ line-height: 32px;
1081
+ }
1082
+ .tui-profile-header h1 {
1083
+ font-weight: 600;
1084
+ padding: 0 11px;
1085
+ }
1086
+ .tui-profile-main {
1087
+ max-width: 100%;
1088
+ box-sizing: border-box;
1089
+ padding: 20px;
1090
+ display: flex;
1091
+ flex-direction: column;
1092
+ align-items: center;
1093
+ }
1094
+ .tui-profile-avatar {
1095
+ margin: 13px 0;
1096
+ position: relative;
1097
+ }
1098
+ .tui-profile .displayFlex {
1099
+ display: flex;
1100
+ }
1101
+ .tui-profile-nick {
1102
+ font-weight: 700;
1103
+ font-size: 24px;
1104
+ line-height: 29px;
1105
+ text-align: center;
1106
+ }
1107
+ .tui-profile-nick .show {
1108
+ padding-left: 25px;
1109
+ }
1110
+ .tui-profile-ID {
1111
+ padding: 6px 0;
1112
+ display: flex;
1113
+ align-items: center;
1114
+ font-weight: 400;
1115
+ font-size: 12px;
1116
+ line-height: 14px;
1117
+ color: #666666;
1118
+ }
1119
+ .tui-profile-list {
1120
+ box-sizing: border-box;
1121
+ width: 100%;
1122
+ padding: 0 20px;
1123
+ display: flex;
1124
+ flex-direction: column;
1125
+ }
1126
+ .tui-profile-list-item {
1127
+ padding: 20px 0 0;
1128
+ }
1129
+ .tui-profile-list-item h4 {
1130
+ padding-bottom: 3px;
1131
+ font-weight: 400;
1132
+ font-size: 16px;
1133
+ line-height: 22px;
1134
+ color: rgba(0, 0, 0, 0.6);
1135
+ }
1136
+ .tui-profile-div-with-edit {
1137
+ padding: 4px 0;
1138
+ border-bottom: 1px solid #EEEEEE;
1139
+ }
1140
+ .tui-profile-edit {
1141
+ border-bottom: none !important;
1142
+ }
1143
+
1144
+ .tui-profile-birthday .react-date-picker__wrapper {
1145
+ display: none !important;
1146
+ }
1147
+ .tui-profile-birthday .react-date-picker__calendar {
1148
+ position: static !important;
1149
+ }
1150
+ .tui-profile-birthday-calendar {
1151
+ border: none !important;
1152
+ }
1153
+
1154
+ .tui-profile {
1155
+ background: #ffffff;
1156
+ }
1157
+ .tui-profile-header {
1158
+ background: #f9fafb;
1159
+ }
1160
+ .conversation-search-result.no-result {
1161
+ padding: 0 20px;
1162
+ display: flex;
1163
+ flex-direction: column;
1164
+ align-items: center;
1165
+ }
1166
+ .conversation-search-result.no-result-icon {
1167
+ margin: 100px auto 50px;
1168
+ }
1169
+ .conversation-search-result.no-result-message {
1170
+ color: #999999;
1171
+ font-weight: 400;
1172
+ font-size: 16px;
1173
+ line-height: 22px;
1174
+ }
1175
+
1176
+ .conversation-search-input {
1177
+ height: 36px;
1178
+ width: 100%;
1179
+ }
1180
+ .tui-kit-input-box {
1181
+ display: flex;
1182
+ align-items: center;
1183
+ border-radius: 10px;
1184
+ background: rgba(249, 249, 249, 0.94);
1185
+ padding: 0 8px;
1186
+ height: 36px;
1187
+ box-sizing: border-box;
1188
+ }
1189
+ .tui-kit-input-box.tui-kit-input-box--focus {
1190
+ outline: 1px solid #147AFF;
1191
+ }
1192
+ .tui-kit-input-box.tui-kit-input-border--bottom {
1193
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
1194
+ background-color: #fff;
1195
+ outline: none;
1196
+ border-radius: 0;
1197
+ }
1198
+ .tui-kit-input-box .tui-kit-input {
1199
+ margin-left: 6px;
1200
+ margin-right: auto;
1201
+ flex: 1;
1202
+ display: flex;
1203
+ flex-direction: row;
1204
+ align-items: center;
1205
+ background-color: transparent;
1206
+ border-radius: 10px;
1207
+ border: none;
1208
+ box-sizing: border-box;
1209
+ }
1210
+ .tui-kit-input-box .tui-kit-input:focus {
1211
+ border: none;
1212
+ outline: none;
1213
+ }
1214
+ .tui-kit-input-box .tui-kit-input::placeholder {
1215
+ font-weight: 400;
1216
+ color: rgba(67, 60, 63, 0.6);
1217
+ padding: 2px 0;
1218
+ }
1219
+ .tui-manage {
1220
+ display: flex;
1221
+ flex-direction: column;
1222
+ width: 22%;
1223
+ max-width: 300px;
1224
+ min-width: 200px;
1225
+ border-left: 1px solid #f9fafb;
1226
+ }
1227
+ .tui-manage .red {
1228
+ color: #FF584C !important;
1229
+ }
1230
+ .tui-manage .tui-manage-title {
1231
+ display: flex;
1232
+ align-items: center;
1233
+ padding: 24px 20px;
1234
+ }
1235
+ .tui-manage .tui-manage-title span {
1236
+ margin-left: 10px;
1237
+ font-weight: 700;
1238
+ font-size: 14px;
1239
+ line-height: 17px;
1240
+ }
1241
+ .tui-manage .tui-manage-container .tui-manage-info {
1242
+ display: flex;
1243
+ flex-direction: column;
1244
+ align-items: center;
1245
+ }
1246
+ .tui-manage .tui-manage-container .tui-manage-info .info-avatar {
1247
+ margin-top: 40px;
1248
+ margin-bottom: 20px;
1249
+ }
1250
+ .tui-manage .tui-manage-container .tui-manage-info .info-name {
1251
+ text-align: center;
1252
+ font-weight: 700;
1253
+ font-size: 24px;
1254
+ line-height: 29px;
1255
+ margin-bottom: 10px;
1256
+ }
1257
+ .tui-manage .tui-manage-container .tui-manage-info .info-id {
1258
+ font-weight: 400;
1259
+ font-size: 12px;
1260
+ line-height: 14px;
1261
+ color: #666666;
1262
+ margin-bottom: 30px;
1263
+ text-align: center;
1264
+ }
1265
+ .tui-manage .tui-manage-container .tui-manage-handle .manage-handle-box {
1266
+ display: flex;
1267
+ background: rgba(249, 249, 249, 0.94);
1268
+ align-items: center;
1269
+ justify-content: space-between;
1270
+ padding: 10px;
1271
+ box-sizing: border-box;
1272
+ }
1273
+ .tui-manage .tui-manage-container .tui-manage-handle .manage-handle-box:nth-child(2) {
1274
+ margin-top: 10px;
1275
+ cursor: pointer;
1276
+ }
1277
+ .tui-manage .tui-manage-container .tui-manage-handle .manage-handle-box .manage-handle-title {
1278
+ font-size: 16px;
1279
+ line-height: 22px;
1280
+ color: rgba(0, 0, 0, 0.6);
1281
+ }