@tencentcloud/chat-uikit-react 2.2.6 → 2.2.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 (765) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/_virtual/index.js +1 -0
  3. package/dist/cjs/assets/fonts/iconfont.ttf +0 -0
  4. package/dist/cjs/assets/fonts/iconfont.woff +0 -0
  5. package/dist/cjs/assets/fonts/iconfont.woff2 +0 -0
  6. package/dist/cjs/components/Avatar/Avatar.d.ts +1 -1
  7. package/dist/cjs/components/{TUIChat/TUIChat.d.ts → Chat/Chat.d.ts} +11 -10
  8. package/dist/cjs/components/Chat/Chat.js +1 -0
  9. package/dist/cjs/components/Chat/ChatState.js +1 -0
  10. package/dist/cjs/components/Chat/index.js +1 -0
  11. package/dist/cjs/components/Chat/server.js +1 -0
  12. package/dist/cjs/components/Chat/utils.js +1 -0
  13. package/dist/cjs/components/{TUIChatHeader/TUIChatHeader.d.ts → ChatHeader/ChatHeader.d.ts} +4 -3
  14. package/dist/cjs/components/ChatHeader/ChatHeader.js +1 -0
  15. package/dist/cjs/components/{TUIChatHeader/TUIChatHeaderDefault.d.ts → ChatHeader/ChatHeaderDefault.d.ts} +4 -3
  16. package/dist/cjs/components/ChatHeader/ChatHeaderDefault.js +1 -0
  17. package/dist/cjs/components/ChatSetting/ChatSetting.d.ts +6 -0
  18. package/dist/cjs/components/ChatSetting/ChatSetting.js +1 -0
  19. package/dist/cjs/components/Contact/Contact.d.ts +6 -0
  20. package/dist/cjs/components/Contact/Contact.js +1 -0
  21. package/dist/cjs/components/Contact/ContactInfo/ContactInfo.d.ts +10 -0
  22. package/dist/cjs/components/Contact/ContactInfo/ContactInfo.js +1 -0
  23. package/dist/cjs/components/Contact/ContactInfo/basicInfo.js +1 -0
  24. package/dist/cjs/components/Contact/ContactInfo/blockInfo.js +1 -0
  25. package/dist/cjs/components/Contact/ContactInfo/friendApplication.js +1 -0
  26. package/dist/cjs/components/Contact/ContactInfo/friendInfo.js +1 -0
  27. package/dist/cjs/components/Contact/ContactInfo/groupInfo.js +1 -0
  28. package/dist/cjs/components/Contact/ContactInfo/hooks/useContactInfo.js +1 -0
  29. package/dist/cjs/components/Contact/ContactList/ContactList.d.ts +6 -0
  30. package/dist/cjs/components/Contact/ContactList/ContactList.js +1 -0
  31. package/dist/cjs/components/Contact/hooks/useTUIContact.js +1 -0
  32. package/dist/cjs/components/ContactSearch/ContactSearch.js +1 -0
  33. package/dist/cjs/components/ContactSearch/hooks/useContactSearch.js +1 -0
  34. package/dist/cjs/components/ConversationActions/ConversationActions.d.ts +52 -0
  35. package/dist/cjs/components/ConversationActions/ConversationActions.js +1 -0
  36. package/dist/cjs/components/ConversationCreate/ConversationCreate.d.ts +21 -0
  37. package/dist/cjs/components/ConversationCreate/ConversationCreate.js +1 -1
  38. package/dist/cjs/components/ConversationCreate/ConversationCreateButton.d.ts +13 -0
  39. package/dist/cjs/components/ConversationCreate/ConversationCreateButton.js +1 -0
  40. package/dist/cjs/components/ConversationCreate/ConversationCreateGroupDetail.d.ts +16 -0
  41. package/dist/cjs/components/ConversationCreate/ConversationCreateGroupDetail.js +1 -0
  42. package/dist/cjs/components/ConversationCreate/ConversationCreateSelectView.d.ts +15 -0
  43. package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.d.ts +18 -0
  44. package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
  45. package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.d.ts +24 -0
  46. package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -1
  47. package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.d.ts +14 -0
  48. package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
  49. package/dist/cjs/components/ConversationList/ConversationList.d.ts +57 -0
  50. package/dist/cjs/components/ConversationList/ConversationList.js +1 -0
  51. package/dist/cjs/components/ConversationList/ConversationListContent/ConversationListContent.d.ts +23 -0
  52. package/dist/cjs/components/ConversationList/ConversationListContent/ConversationListContent.js +1 -0
  53. package/dist/cjs/components/ConversationList/ConversationListHeader/ConversationListHeader.d.ts +15 -0
  54. package/dist/cjs/components/ConversationList/ConversationListHeader/ConversationListHeader.js +1 -0
  55. package/dist/cjs/components/ConversationPreview/ConversationPreview.d.ts +39 -27
  56. package/dist/cjs/components/ConversationPreview/ConversationPreview.js +1 -1
  57. package/dist/cjs/components/ConversationPreview/utils.js +1 -1
  58. package/dist/cjs/components/ConversationSearch/ConversationSearch.d.ts +39 -0
  59. package/dist/cjs/components/ConversationSearch/ConversationSearch.js +1 -0
  60. package/dist/cjs/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.d.ts +7 -0
  61. package/dist/cjs/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +1 -0
  62. package/dist/cjs/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.d.ts +29 -0
  63. package/dist/cjs/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.js +1 -0
  64. package/dist/cjs/components/Icon/Icon.js +1 -1
  65. package/dist/cjs/components/Icon/config.js +1 -1
  66. package/dist/cjs/components/Icon/images/mute.svg.js +1 -0
  67. package/dist/cjs/components/Icon/images/video-call.svg.js +1 -0
  68. package/dist/cjs/components/Icon/images/voice-call.svg.js +1 -0
  69. package/dist/cjs/components/Icon/type.d.ts +5 -1
  70. package/dist/cjs/components/Icon/type.js +1 -1
  71. package/dist/cjs/components/Input/Input.d.ts +5 -2
  72. package/dist/cjs/components/Input/Input.js +1 -1
  73. package/dist/{esm/components/TUIMessage/TUIMessage.d.ts → cjs/components/MessageElement/Message.d.ts} +1 -1
  74. package/dist/cjs/components/MessageElement/Message.js +1 -0
  75. package/dist/cjs/components/MessageElement/MessageAudio.js +1 -0
  76. package/dist/cjs/components/MessageElement/MessageAvatar.js +1 -0
  77. package/dist/cjs/components/MessageElement/MessageBubble.js +1 -0
  78. package/dist/cjs/components/MessageElement/MessageContext.js +1 -0
  79. package/dist/cjs/components/MessageElement/MessageCustom.js +1 -0
  80. package/dist/cjs/components/MessageElement/MessageDefault.js +1 -0
  81. package/dist/cjs/components/MessageElement/MessageName.js +1 -0
  82. package/dist/cjs/components/MessageElement/MessagePlugins.js +1 -0
  83. package/dist/cjs/components/MessageElement/MessageProgress.js +1 -0
  84. package/dist/cjs/components/MessageElement/MessageRevoke.js +1 -0
  85. package/dist/cjs/components/MessageElement/MessageStatus.js +1 -0
  86. package/dist/cjs/components/MessageElement/MessageSystem.js +1 -0
  87. package/dist/cjs/components/MessageElement/MessageText.js +1 -0
  88. package/dist/cjs/components/MessageElement/MessageTip.js +1 -0
  89. package/dist/cjs/components/MessageElement/hooks/useMessageHandler.js +1 -0
  90. package/dist/cjs/components/MessageElement/hooks/useMessageReply.js +1 -0
  91. package/dist/cjs/components/MessageElement/utils/index.js +1 -0
  92. package/dist/cjs/components/MessageInput/EmojiPicker.js +1 -0
  93. package/dist/cjs/components/MessageInput/Forward.js +1 -0
  94. package/dist/cjs/components/MessageInput/InputPluginsDefalut.js +1 -0
  95. package/dist/cjs/components/MessageInput/InputQuoteDefalut.js +1 -0
  96. package/dist/cjs/components/{TUIMessageInput/TUIMessageInput.d.ts → MessageInput/MessageInput.d.ts} +4 -4
  97. package/dist/cjs/components/MessageInput/MessageInput.js +1 -0
  98. package/dist/cjs/components/MessageInput/MessageInputDefault.js +1 -0
  99. package/dist/cjs/components/MessageInput/Transmitter.js +1 -0
  100. package/dist/cjs/components/MessageInput/hooks/useEmojiPicker.js +1 -0
  101. package/dist/cjs/components/MessageInput/hooks/useHandleForwardMessage.js +1 -0
  102. package/dist/cjs/components/MessageInput/hooks/useHandleQuoteMessage.js +1 -0
  103. package/dist/cjs/components/MessageInput/hooks/useMessageInputText.js +1 -0
  104. package/dist/cjs/components/MessageInput/hooks/useUploadPicker.js +1 -0
  105. package/dist/cjs/components/{TUIMessageList/TUIMessageList.d.ts → MessageList/MessageList.d.ts} +3 -3
  106. package/dist/cjs/components/MessageList/MessageList.js +1 -0
  107. package/dist/cjs/components/MessageList/hooks/useMessageListElement.js +1 -0
  108. package/dist/cjs/components/PlaceHolder/index.d.ts +34 -0
  109. package/dist/cjs/components/PlaceHolder/index.js +1 -0
  110. package/dist/cjs/components/Plugins/index.d.ts +5 -2
  111. package/dist/cjs/components/Profile/Profile.d.ts +10 -0
  112. package/dist/cjs/components/Profile/Profile.js +1 -1
  113. package/dist/cjs/components/Profile/ProfileDefault.js +1 -0
  114. package/dist/cjs/components/Profile/myProfile/MyProfile.js +1 -0
  115. package/dist/cjs/components/{untils.js → utils.js} +1 -1
  116. package/dist/cjs/context/{TUIChatActionContext.d.ts → ChatActionContext.d.ts} +3 -2
  117. package/dist/{esm/context/TUIChatStateContext.d.ts → cjs/context/ChatStateContext.d.ts} +6 -6
  118. package/dist/cjs/context/ComponentContext.d.ts +3 -3
  119. package/dist/cjs/context/{TUIContactContext.d.ts → ContactContext.d.ts} +4 -4
  120. package/dist/cjs/context/ConversationListContext.d.ts +22 -0
  121. package/dist/cjs/context/ConversationListContext.js +1 -0
  122. package/dist/cjs/context/LanguageContext.js +1 -1
  123. package/dist/{esm/context/TUIMessageContext.d.ts → cjs/context/MessageContext.d.ts} +1 -1
  124. package/dist/{esm/context/TUIMessageInputContext.d.ts → cjs/context/MessageInputContext.d.ts} +4 -4
  125. package/dist/cjs/context/ThemeContext.js +1 -1
  126. package/dist/cjs/context/UIKitContext.d.ts +2 -2
  127. package/dist/cjs/context/UIKitContext.js +1 -1
  128. package/dist/cjs/hooks/useConversation.d.ts +4 -23
  129. package/dist/cjs/hooks/useConversation.js +1 -1
  130. package/dist/cjs/hooks/useLongPress.d.ts +3 -0
  131. package/dist/cjs/hooks/useLongPress.js +1 -0
  132. package/dist/cjs/hooks/useMouseHover.js +1 -0
  133. package/dist/cjs/index.css +2 -1
  134. package/dist/cjs/index.d.css +1376 -568
  135. package/dist/cjs/index.d.ts +41 -29
  136. package/dist/cjs/index.js +1 -1
  137. package/dist/cjs/locales/en-US/TUIConversation.js +1 -1
  138. package/dist/cjs/locales/en-US/index.js +1 -1
  139. package/dist/cjs/locales/index.js +1 -1
  140. package/dist/cjs/locales/ja-JP/TUIConversation.js +1 -1
  141. package/dist/cjs/locales/ja-JP/index.js +1 -1
  142. package/dist/cjs/locales/ko-KR/TUIConversation.js +1 -1
  143. package/dist/cjs/locales/ko-KR/index.js +1 -1
  144. package/dist/cjs/locales/zh-CN/TUIConversation.js +1 -1
  145. package/dist/cjs/locales/zh-CN/index.js +1 -1
  146. package/dist/cjs/locales/zh-TW/TUIChat.js +1 -0
  147. package/dist/cjs/locales/zh-TW/TUIContact.js +1 -0
  148. package/dist/cjs/locales/zh-TW/TUIConversation.js +1 -0
  149. package/dist/cjs/locales/zh-TW/TUIProfile.js +1 -0
  150. package/dist/cjs/locales/zh-TW/index.js +1 -0
  151. package/dist/esm/_virtual/index.js +1 -0
  152. package/dist/esm/assets/fonts/iconfont.ttf +0 -0
  153. package/dist/esm/assets/fonts/iconfont.woff +0 -0
  154. package/dist/esm/assets/fonts/iconfont.woff2 +0 -0
  155. package/dist/esm/components/Avatar/Avatar.d.ts +1 -1
  156. package/dist/esm/components/{TUIChat/TUIChat.d.ts → Chat/Chat.d.ts} +11 -10
  157. package/dist/esm/components/Chat/Chat.js +1 -0
  158. package/dist/esm/components/Chat/ChatState.js +1 -0
  159. package/dist/esm/components/Chat/index.js +1 -0
  160. package/dist/esm/components/Chat/server.js +1 -0
  161. package/dist/esm/components/Chat/utils.js +1 -0
  162. package/dist/esm/components/{TUIChatHeader/TUIChatHeader.d.ts → ChatHeader/ChatHeader.d.ts} +4 -3
  163. package/dist/esm/components/ChatHeader/ChatHeader.js +1 -0
  164. package/dist/esm/components/{TUIChatHeader/TUIChatHeaderDefault.d.ts → ChatHeader/ChatHeaderDefault.d.ts} +4 -3
  165. package/dist/esm/components/ChatHeader/ChatHeaderDefault.js +1 -0
  166. package/dist/esm/components/ChatSetting/ChatSetting.d.ts +6 -0
  167. package/dist/esm/components/ChatSetting/ChatSetting.js +1 -0
  168. package/dist/esm/components/Contact/Contact.d.ts +6 -0
  169. package/dist/esm/components/Contact/Contact.js +1 -0
  170. package/dist/esm/components/Contact/ContactInfo/ContactInfo.d.ts +10 -0
  171. package/dist/esm/components/Contact/ContactInfo/ContactInfo.js +1 -0
  172. package/dist/esm/components/Contact/ContactInfo/basicInfo.js +1 -0
  173. package/dist/esm/components/Contact/ContactInfo/blockInfo.js +1 -0
  174. package/dist/esm/components/Contact/ContactInfo/friendApplication.js +1 -0
  175. package/dist/esm/components/Contact/ContactInfo/friendInfo.js +1 -0
  176. package/dist/esm/components/Contact/ContactInfo/groupInfo.js +1 -0
  177. package/dist/esm/components/Contact/ContactInfo/hooks/useContactInfo.js +1 -0
  178. package/dist/esm/components/Contact/ContactList/ContactList.d.ts +6 -0
  179. package/dist/esm/components/Contact/ContactList/ContactList.js +1 -0
  180. package/dist/esm/components/Contact/hooks/useTUIContact.js +1 -0
  181. package/dist/esm/components/ContactSearch/ContactSearch.js +1 -0
  182. package/dist/esm/components/ContactSearch/hooks/useContactSearch.js +1 -0
  183. package/dist/esm/components/ConversationActions/ConversationActions.d.ts +52 -0
  184. package/dist/esm/components/ConversationActions/ConversationActions.js +1 -0
  185. package/dist/esm/components/ConversationCreate/ConversationCreate.d.ts +21 -0
  186. package/dist/esm/components/ConversationCreate/ConversationCreate.js +1 -1
  187. package/dist/esm/components/ConversationCreate/ConversationCreateButton.d.ts +13 -0
  188. package/dist/esm/components/ConversationCreate/ConversationCreateButton.js +1 -0
  189. package/dist/esm/components/ConversationCreate/ConversationCreateGroupDetail.d.ts +16 -0
  190. package/dist/esm/components/ConversationCreate/ConversationCreateGroupDetail.js +1 -0
  191. package/dist/esm/components/ConversationCreate/ConversationCreateSelectView.d.ts +15 -0
  192. package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.d.ts +18 -0
  193. package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
  194. package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.d.ts +24 -0
  195. package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.js +1 -1
  196. package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.d.ts +14 -0
  197. package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
  198. package/dist/esm/components/ConversationList/ConversationList.d.ts +57 -0
  199. package/dist/esm/components/ConversationList/ConversationList.js +1 -0
  200. package/dist/esm/components/ConversationList/ConversationListContent/ConversationListContent.d.ts +23 -0
  201. package/dist/esm/components/ConversationList/ConversationListContent/ConversationListContent.js +1 -0
  202. package/dist/esm/components/ConversationList/ConversationListHeader/ConversationListHeader.d.ts +15 -0
  203. package/dist/esm/components/ConversationList/ConversationListHeader/ConversationListHeader.js +1 -0
  204. package/dist/esm/components/ConversationPreview/ConversationPreview.d.ts +39 -27
  205. package/dist/esm/components/ConversationPreview/ConversationPreview.js +1 -1
  206. package/dist/esm/components/ConversationPreview/utils.js +1 -1
  207. package/dist/esm/components/ConversationSearch/ConversationSearch.d.ts +39 -0
  208. package/dist/esm/components/ConversationSearch/ConversationSearch.js +1 -0
  209. package/dist/esm/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.d.ts +7 -0
  210. package/dist/esm/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +1 -0
  211. package/dist/esm/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.d.ts +29 -0
  212. package/dist/esm/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.js +1 -0
  213. package/dist/esm/components/Icon/Icon.js +1 -1
  214. package/dist/esm/components/Icon/config.js +1 -1
  215. package/dist/esm/components/Icon/images/mute.svg.js +1 -0
  216. package/dist/esm/components/Icon/images/video-call.svg.js +1 -0
  217. package/dist/esm/components/Icon/images/voice-call.svg.js +1 -0
  218. package/dist/esm/components/Icon/type.d.ts +5 -1
  219. package/dist/esm/components/Icon/type.js +1 -1
  220. package/dist/esm/components/Input/Input.d.ts +5 -2
  221. package/dist/esm/components/Input/Input.js +1 -1
  222. package/dist/{cjs/components/TUIMessage/TUIMessage.d.ts → esm/components/MessageElement/Message.d.ts} +1 -1
  223. package/dist/esm/components/MessageElement/Message.js +1 -0
  224. package/dist/esm/components/MessageElement/MessageAudio.js +1 -0
  225. package/dist/esm/components/MessageElement/MessageAvatar.js +1 -0
  226. package/dist/esm/components/MessageElement/MessageBubble.js +1 -0
  227. package/dist/esm/components/MessageElement/MessageContext.js +1 -0
  228. package/dist/esm/components/MessageElement/MessageCustom.js +1 -0
  229. package/dist/esm/components/MessageElement/MessageDefault.js +1 -0
  230. package/dist/esm/components/MessageElement/MessageName.js +1 -0
  231. package/dist/esm/components/MessageElement/MessagePlugins.js +1 -0
  232. package/dist/esm/components/MessageElement/MessageProgress.js +1 -0
  233. package/dist/esm/components/MessageElement/MessageRevoke.js +1 -0
  234. package/dist/esm/components/MessageElement/MessageStatus.js +1 -0
  235. package/dist/esm/components/MessageElement/MessageSystem.js +1 -0
  236. package/dist/esm/components/MessageElement/MessageText.js +1 -0
  237. package/dist/esm/components/MessageElement/MessageTip.js +1 -0
  238. package/dist/esm/components/MessageElement/hooks/useMessageHandler.js +1 -0
  239. package/dist/esm/components/MessageElement/hooks/useMessageReply.js +1 -0
  240. package/dist/esm/components/MessageElement/utils/index.js +1 -0
  241. package/dist/esm/components/MessageInput/EmojiPicker.js +1 -0
  242. package/dist/esm/components/MessageInput/Forward.js +1 -0
  243. package/dist/esm/components/MessageInput/InputPluginsDefalut.js +1 -0
  244. package/dist/esm/components/MessageInput/InputQuoteDefalut.js +1 -0
  245. package/dist/esm/components/{TUIMessageInput/TUIMessageInput.d.ts → MessageInput/MessageInput.d.ts} +4 -4
  246. package/dist/esm/components/MessageInput/MessageInput.js +1 -0
  247. package/dist/esm/components/MessageInput/MessageInputDefault.js +1 -0
  248. package/dist/esm/components/MessageInput/Transmitter.js +1 -0
  249. package/dist/esm/components/MessageInput/hooks/useEmojiPicker.js +1 -0
  250. package/dist/esm/components/MessageInput/hooks/useHandleForwardMessage.js +1 -0
  251. package/dist/esm/components/MessageInput/hooks/useHandleQuoteMessage.js +1 -0
  252. package/dist/esm/components/MessageInput/hooks/useMessageInputText.js +1 -0
  253. package/dist/esm/components/MessageInput/hooks/useUploadPicker.js +1 -0
  254. package/dist/esm/components/{TUIMessageList/TUIMessageList.d.ts → MessageList/MessageList.d.ts} +3 -3
  255. package/dist/esm/components/MessageList/MessageList.js +1 -0
  256. package/dist/esm/components/MessageList/hooks/useMessageListElement.js +1 -0
  257. package/dist/esm/components/PlaceHolder/index.d.ts +34 -0
  258. package/dist/esm/components/PlaceHolder/index.js +1 -0
  259. package/dist/esm/components/Plugins/index.d.ts +5 -2
  260. package/dist/esm/components/Profile/Profile.d.ts +10 -0
  261. package/dist/esm/components/Profile/Profile.js +1 -1
  262. package/dist/esm/components/Profile/ProfileDefault.js +1 -0
  263. package/dist/esm/components/Profile/myProfile/MyProfile.js +1 -0
  264. package/dist/esm/components/utils.js +1 -0
  265. package/dist/esm/context/{TUIChatActionContext.d.ts → ChatActionContext.d.ts} +3 -2
  266. package/dist/{cjs/context/TUIChatStateContext.d.ts → esm/context/ChatStateContext.d.ts} +6 -6
  267. package/dist/esm/context/ComponentContext.d.ts +3 -3
  268. package/dist/esm/context/{TUIContactContext.d.ts → ContactContext.d.ts} +4 -4
  269. package/dist/esm/context/ConversationListContext.d.ts +22 -0
  270. package/dist/esm/context/ConversationListContext.js +1 -0
  271. package/dist/esm/context/LanguageContext.js +1 -1
  272. package/dist/{cjs/context/TUIMessageContext.d.ts → esm/context/MessageContext.d.ts} +1 -1
  273. package/dist/{cjs/context/TUIMessageInputContext.d.ts → esm/context/MessageInputContext.d.ts} +4 -4
  274. package/dist/esm/context/ThemeContext.js +1 -1
  275. package/dist/esm/context/UIKitContext.d.ts +2 -2
  276. package/dist/esm/context/UIKitContext.js +1 -1
  277. package/dist/esm/hooks/useConversation.d.ts +4 -23
  278. package/dist/esm/hooks/useConversation.js +1 -1
  279. package/dist/esm/hooks/useLongPress.d.ts +3 -0
  280. package/dist/esm/hooks/useLongPress.js +1 -0
  281. package/dist/esm/hooks/useMouseHover.js +1 -0
  282. package/dist/esm/index.css +2 -1
  283. package/dist/esm/index.d.css +1376 -568
  284. package/dist/esm/index.d.ts +41 -29
  285. package/dist/esm/index.js +1 -1
  286. package/dist/esm/locales/en-US/TUIConversation.js +1 -1
  287. package/dist/esm/locales/en-US/index.js +1 -1
  288. package/dist/esm/locales/index.js +1 -1
  289. package/dist/esm/locales/ja-JP/TUIConversation.js +1 -1
  290. package/dist/esm/locales/ja-JP/index.js +1 -1
  291. package/dist/esm/locales/ko-KR/TUIConversation.js +1 -1
  292. package/dist/esm/locales/ko-KR/index.js +1 -1
  293. package/dist/esm/locales/zh-CN/TUIConversation.js +1 -1
  294. package/dist/esm/locales/zh-CN/index.js +1 -1
  295. package/dist/esm/locales/zh-TW/TUIChat.js +1 -0
  296. package/dist/esm/locales/zh-TW/TUIContact.js +1 -0
  297. package/dist/esm/locales/zh-TW/TUIConversation.js +1 -0
  298. package/dist/esm/locales/zh-TW/TUIProfile.js +1 -0
  299. package/dist/esm/locales/zh-TW/index.js +1 -0
  300. package/package.json +3 -1
  301. package/rollup.config.js +1 -1
  302. package/src/assets/fonts/iconfont.ttf +0 -0
  303. package/src/assets/fonts/iconfont.woff +0 -0
  304. package/src/assets/fonts/iconfont.woff2 +0 -0
  305. package/src/components/Avatar/Avatar.tsx +33 -31
  306. package/src/components/Avatar/styles/index.scss +11 -4
  307. package/src/components/{TUIChat/TUIChat.tsx → Chat/Chat.tsx} +50 -46
  308. package/src/components/{TUIChat/TUIChatState.tsx → Chat/ChatState.tsx} +41 -41
  309. package/src/components/{TUIChat → Chat}/hooks/useHandleMessage.tsx +1 -1
  310. package/src/components/{TUIChat → Chat}/hooks/useHandleMessageList.tsx +1 -1
  311. package/src/components/Chat/index.ts +5 -0
  312. package/src/components/Chat/server.ts +44 -0
  313. package/src/components/{TUIChat → Chat}/styles/layout.scss +7 -2
  314. package/src/components/Chat/utils.ts +72 -0
  315. package/src/components/{TUIChatHeader/TUIChatHeader.tsx → ChatHeader/ChatHeader.tsx} +14 -11
  316. package/src/components/{TUIChatHeader/TUIChatHeaderDefault.tsx → ChatHeader/ChatHeaderDefault.tsx} +72 -29
  317. package/src/components/ChatHeader/index.ts +2 -0
  318. package/src/components/{TUIChatHeader → ChatHeader}/styles/layout.scss +12 -13
  319. package/src/components/{TUIManage/TUIManage.tsx → ChatSetting/ChatSetting.tsx} +17 -20
  320. package/src/components/ChatSetting/index.ts +1 -0
  321. package/src/components/{TUIManage → ChatSetting}/styles/index.scss +24 -16
  322. package/src/components/Checkbox/index.tsx +9 -9
  323. package/src/components/Checkbox/styles/color.scss +17 -6
  324. package/src/components/{TUIContact/TUIContact.tsx → Contact/Contact.tsx} +35 -35
  325. package/src/components/{TUIContact/TUIContactInfo/TUIContactInfo.tsx → Contact/ContactInfo/ContactInfo.tsx} +4 -4
  326. package/src/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/index.scss +44 -21
  327. package/src/components/{TUIContact/TUIContactList/TUIContactList.tsx → Contact/ContactList/ContactList.tsx} +78 -74
  328. package/src/components/{TUIContact/TUIContactList → Contact/ContactList}/index.scss +40 -20
  329. package/src/components/{TUIContact → Contact}/hooks/useTUIContact.tsx +3 -3
  330. package/src/components/{TUIContact → Contact}/index.scss +30 -11
  331. package/src/components/Contact/index.ts +3 -0
  332. package/src/components/{TUIContactSearch/TUIContactSearch.tsx → ContactSearch/ContactSearch.tsx} +8 -7
  333. package/src/components/{TUIContactSearch → ContactSearch}/index.scss +12 -3
  334. package/src/components/ConversationActions/ConversationActions.scss +45 -0
  335. package/src/components/ConversationActions/ConversationActions.tsx +172 -0
  336. package/src/components/ConversationActions/index.ts +1 -0
  337. package/src/components/ConversationCreate/ConversationCreate.tsx +104 -49
  338. package/src/components/ConversationCreate/ConversationCreateButton.tsx +46 -0
  339. package/src/components/ConversationCreate/ConversationCreateGroupDetail.tsx +179 -0
  340. package/src/components/ConversationCreate/ConversationCreateSelectView.tsx +7 -7
  341. package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +31 -29
  342. package/src/components/ConversationCreate/ConversationGroupTypeInfo.tsx +19 -19
  343. package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +38 -31
  344. package/src/components/ConversationCreate/index.ts +2 -1
  345. package/src/components/ConversationCreate/styles/{ConversationCreatGroupDetail.scss → ConversationCreateGroupDetail.scss} +13 -17
  346. package/src/components/ConversationCreate/styles/conversationCreateButton.scss +5 -0
  347. package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +13 -8
  348. package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +20 -21
  349. package/src/components/ConversationCreate/styles/index.scss +64 -19
  350. package/src/components/ConversationList/ConversationList.scss +29 -0
  351. package/src/components/ConversationList/ConversationList.tsx +155 -0
  352. package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +16 -0
  353. package/src/components/ConversationList/ConversationListContent/ConversationListContent.tsx +63 -0
  354. package/src/components/ConversationList/ConversationListContent/index.ts +1 -0
  355. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.scss +28 -0
  356. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.tsx +43 -0
  357. package/src/components/ConversationList/ConversationListHeader/index.ts +1 -0
  358. package/src/components/ConversationList/index.ts +3 -0
  359. package/src/components/ConversationPreview/ConversationPreview.scss +137 -0
  360. package/src/components/ConversationPreview/ConversationPreview.tsx +245 -63
  361. package/src/components/ConversationPreview/index.ts +0 -1
  362. package/src/components/ConversationPreview/utils.tsx +80 -61
  363. package/src/components/ConversationSearch/ConversationSearch.scss +22 -0
  364. package/src/components/ConversationSearch/ConversationSearch.tsx +125 -0
  365. package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.scss +13 -0
  366. package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.tsx +42 -0
  367. package/src/components/ConversationSearch/ConversationSearchInput/index.ts +1 -0
  368. package/src/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.scss +15 -0
  369. package/src/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.tsx +72 -0
  370. package/src/components/ConversationSearch/ConversationSearchResult/index.ts +1 -0
  371. package/src/components/ConversationSearch/index.ts +3 -2
  372. package/src/components/DivWithEdit/styles/index.scss +30 -10
  373. package/src/components/EmptyStateIndicator/EmptyStateIndicator.tsx +2 -3
  374. package/src/components/Icon/Icon.tsx +8 -8
  375. package/src/components/Icon/config.ts +23 -4
  376. package/src/components/Icon/images/mute.svg +8 -0
  377. package/src/components/Icon/images/video-call.svg +3 -0
  378. package/src/components/Icon/images/voice-call.svg +3 -0
  379. package/src/components/Icon/styles/index.scss +41 -6
  380. package/src/components/Icon/type.ts +4 -0
  381. package/src/components/Input/Input.tsx +24 -23
  382. package/src/components/Input/styles/index.scss +22 -6
  383. package/src/components/{TUIMessage/TUIMessage.tsx → MessageElement/Message.tsx} +33 -33
  384. package/src/components/{TUIMessage → MessageElement}/MessageAvatar.tsx +7 -7
  385. package/src/components/{TUIMessage → MessageElement}/MessageBubble.tsx +22 -21
  386. package/src/components/{TUIMessage → MessageElement}/MessageCustom.tsx +26 -5
  387. package/src/components/{TUIMessage/TUIMessageDefault.tsx → MessageElement/MessageDefault.tsx} +24 -24
  388. package/src/components/{TUIMessage → MessageElement}/MessagePlugins.tsx +18 -18
  389. package/src/components/{TUIMessage → MessageElement}/MessageStatus.tsx +5 -5
  390. package/src/components/{TUIMessage → MessageElement}/hooks/useMessageHandler.ts +6 -6
  391. package/src/components/{TUIMessage → MessageElement}/hooks/useMessageReply.ts +6 -5
  392. package/src/components/{TUIMessage → MessageElement}/index.ts +1 -1
  393. package/src/components/{TUIMessage → MessageElement}/styles/color.scss +6 -5
  394. package/src/components/{TUIMessage → MessageElement}/styles/layout.scss +112 -43
  395. package/src/components/{TUIMessage → MessageElement}/utils/index.ts +23 -12
  396. package/src/components/{TUIMessageInput → MessageInput}/EmojiPicker.tsx +2 -2
  397. package/src/components/{TUIMessageInput/TUIForward.tsx → MessageInput/Forward.tsx} +41 -36
  398. package/src/components/{TUIMessageInput → MessageInput}/InputPluginsDefalut.tsx +14 -14
  399. package/src/components/{TUIMessageInput → MessageInput}/InputQuoteDefalut.tsx +1 -1
  400. package/src/components/{TUIMessageInput/TUIMessageInput.tsx → MessageInput/MessageInput.tsx} +25 -27
  401. package/src/components/{TUIMessageInput/TUIMessageInputDefault.tsx → MessageInput/MessageInputDefault.tsx} +14 -14
  402. package/src/components/{TUIMessageInput → MessageInput}/Transmitter.tsx +2 -2
  403. package/src/components/{TUIMessageInput → MessageInput}/hooks/useEmojiPicker.tsx +1 -1
  404. package/src/components/{TUIMessageInput → MessageInput}/hooks/useHandleForwardMessage.tsx +5 -4
  405. package/src/components/{TUIMessageInput → MessageInput}/hooks/useMessageInputState.tsx +1 -1
  406. package/src/components/{TUIMessageInput → MessageInput}/hooks/useMessageInputText.tsx +14 -14
  407. package/src/components/{TUIMessageInput → MessageInput}/hooks/useUploadPicker.tsx +4 -4
  408. package/src/components/MessageInput/index.ts +3 -0
  409. package/src/components/MessageInput/styles/color.scss +40 -0
  410. package/src/components/{TUIMessageInput → MessageInput}/styles/layout.scss +33 -17
  411. package/src/components/{TUIMessageList/TUIMessageList.tsx → MessageList/MessageList.tsx} +5 -5
  412. package/src/components/{TUIMessageList → MessageList}/hooks/useMessageListElement.tsx +14 -10
  413. package/src/components/MessageList/index.ts +1 -0
  414. package/src/components/{TUIMessageList → MessageList}/styles/layout.scss +16 -9
  415. package/src/components/PlaceHolder/index.tsx +79 -0
  416. package/src/components/PlaceHolder/styles/index.scss +36 -0
  417. package/src/components/Plugins/index.tsx +49 -45
  418. package/src/components/Plugins/styles/color.scss +3 -11
  419. package/src/components/Profile/Profile.tsx +46 -21
  420. package/src/components/{TUIProfile/TUIProfileDefault.tsx → Profile/ProfileDefault.tsx} +12 -11
  421. package/src/components/Profile/index.ts +2 -1
  422. package/src/components/Profile/myProfile/MyProfile.tsx +25 -0
  423. package/src/components/Profile/myProfile/index.ts +1 -0
  424. package/src/components/Profile/myProfile/styles/index.scss +32 -0
  425. package/src/components/Profile/styles/color.scss +7 -0
  426. package/src/components/Profile/styles/index.scss +2 -23
  427. package/src/components/{TUIProfile → Profile}/styles/layout.scss +17 -14
  428. package/src/components/index.ts +13 -11
  429. package/src/components/{untils.ts → utils.ts} +5 -4
  430. package/src/context/{TUIChatActionContext.tsx → ChatActionContext.tsx} +15 -14
  431. package/src/context/ChatStateContext.tsx +49 -0
  432. package/src/context/ComponentContext.tsx +13 -13
  433. package/src/context/{TUIContactContext.tsx → ContactContext.tsx} +10 -11
  434. package/src/context/ConversationListContext.tsx +113 -0
  435. package/src/context/LanguageContext.tsx +6 -4
  436. package/src/context/MessageContext.tsx +55 -0
  437. package/src/context/MessageInputContext.tsx +54 -0
  438. package/src/context/ThemeContext.tsx +12 -5
  439. package/src/context/UIKitContext.tsx +11 -2
  440. package/src/context/index.ts +6 -5
  441. package/src/hooks/index.ts +2 -0
  442. package/src/hooks/useConversation.tsx +26 -74
  443. package/src/hooks/useLongPress.tsx +117 -0
  444. package/src/hooks/useMouseHover.tsx +21 -0
  445. package/src/locales/en-US/TUIConversation.ts +4 -0
  446. package/src/locales/en-US/index.ts +0 -3
  447. package/src/locales/index.ts +16 -2
  448. package/src/locales/ja-JP/TUIConversation.ts +4 -0
  449. package/src/locales/ja-JP/index.ts +0 -2
  450. package/src/locales/ko-KR/TUIConversation.ts +4 -0
  451. package/src/locales/ko-KR/index.ts +0 -2
  452. package/src/locales/zh-CN/TUIConversation.ts +4 -0
  453. package/src/locales/zh-CN/index.ts +0 -2
  454. package/src/locales/zh-TW/TUIChat.ts +27 -0
  455. package/src/locales/zh-TW/TUIContact.ts +29 -0
  456. package/src/locales/zh-TW/TUIConversation.ts +36 -0
  457. package/src/locales/zh-TW/TUIProfile.ts +15 -0
  458. package/src/locales/zh-TW/index.ts +11 -0
  459. package/src/styles/colors/_color-dark.scss +31 -21
  460. package/src/styles/colors/_color-light.scss +31 -21
  461. package/src/styles/colors/_color-theme.scss +32 -21
  462. package/src/styles/normalize.scss +6 -0
  463. package/dist/cjs/components/ConversationCreate/ConversationCreatGroupDetail.js +0 -1
  464. package/dist/cjs/components/ConversationPreview/ConversationListContainer.d.ts +0 -10
  465. package/dist/cjs/components/ConversationPreview/ConversationListContainer.js +0 -1
  466. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.d.ts +0 -10
  467. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.js +0 -1
  468. package/dist/cjs/components/ConversationSearch/ConversationSearchInput.d.ts +0 -6
  469. package/dist/cjs/components/ConversationSearch/ConversationSearchInput.js +0 -1
  470. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.d.ts +0 -12
  471. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.js +0 -1
  472. package/dist/cjs/components/Icon/images/down-arrow.png.js +0 -1
  473. package/dist/cjs/components/Icon/images/right-arrow.svg.js +0 -1
  474. package/dist/cjs/components/TUIChat/TUIChat.js +0 -1
  475. package/dist/cjs/components/TUIChat/TUIChatState.js +0 -1
  476. package/dist/cjs/components/TUIChat/unitls.js +0 -1
  477. package/dist/cjs/components/TUIChatHeader/TUIChatHeader.js +0 -1
  478. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.js +0 -1
  479. package/dist/cjs/components/TUIContact/TUIContact.d.ts +0 -6
  480. package/dist/cjs/components/TUIContact/TUIContact.js +0 -1
  481. package/dist/cjs/components/TUIContact/TUIContactInfo/TUIContactInfo.d.ts +0 -10
  482. package/dist/cjs/components/TUIContact/TUIContactInfo/TUIContactInfo.js +0 -1
  483. package/dist/cjs/components/TUIContact/TUIContactInfo/basicInfo.js +0 -1
  484. package/dist/cjs/components/TUIContact/TUIContactInfo/blockInfo.js +0 -1
  485. package/dist/cjs/components/TUIContact/TUIContactInfo/friendApplication.js +0 -1
  486. package/dist/cjs/components/TUIContact/TUIContactInfo/friendInfo.js +0 -1
  487. package/dist/cjs/components/TUIContact/TUIContactInfo/groupInfo.js +0 -1
  488. package/dist/cjs/components/TUIContact/TUIContactInfo/hooks/useContactInfo.js +0 -1
  489. package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.d.ts +0 -6
  490. package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.js +0 -1
  491. package/dist/cjs/components/TUIContact/hooks/useTUIContact.js +0 -1
  492. package/dist/cjs/components/TUIContactSearch/TUIContactSearch.js +0 -1
  493. package/dist/cjs/components/TUIContactSearch/hooks/useContactSearch.js +0 -1
  494. package/dist/cjs/components/TUIConversation/TUIConversation.d.ts +0 -12
  495. package/dist/cjs/components/TUIConversation/TUIConversation.js +0 -1
  496. package/dist/cjs/components/TUIConversationList/TUIConversationList.d.ts +0 -19
  497. package/dist/cjs/components/TUIConversationList/TUIConversationList.js +0 -1
  498. package/dist/cjs/components/TUIConversationList/hooks/useConversationList.js +0 -1
  499. package/dist/cjs/components/TUIConversationList/hooks/useConversationUpdate.js +0 -1
  500. package/dist/cjs/components/TUIManage/TUIManage.d.ts +0 -6
  501. package/dist/cjs/components/TUIManage/TUIManage.js +0 -1
  502. package/dist/cjs/components/TUIMessage/MessageAudio.js +0 -1
  503. package/dist/cjs/components/TUIMessage/MessageAvatar.js +0 -1
  504. package/dist/cjs/components/TUIMessage/MessageBubble.js +0 -1
  505. package/dist/cjs/components/TUIMessage/MessageContext.js +0 -1
  506. package/dist/cjs/components/TUIMessage/MessageCustom.js +0 -1
  507. package/dist/cjs/components/TUIMessage/MessageName.js +0 -1
  508. package/dist/cjs/components/TUIMessage/MessagePlugins.js +0 -1
  509. package/dist/cjs/components/TUIMessage/MessageProgress.js +0 -1
  510. package/dist/cjs/components/TUIMessage/MessageRevoke.js +0 -1
  511. package/dist/cjs/components/TUIMessage/MessageStatus.js +0 -1
  512. package/dist/cjs/components/TUIMessage/MessageSystem.js +0 -1
  513. package/dist/cjs/components/TUIMessage/MessageText.js +0 -1
  514. package/dist/cjs/components/TUIMessage/MessageTip.js +0 -1
  515. package/dist/cjs/components/TUIMessage/TUIMessage.js +0 -1
  516. package/dist/cjs/components/TUIMessage/TUIMessageDefault.js +0 -1
  517. package/dist/cjs/components/TUIMessage/hooks/useMessageHandler.js +0 -1
  518. package/dist/cjs/components/TUIMessage/hooks/useMessageReply.js +0 -1
  519. package/dist/cjs/components/TUIMessage/utils/index.js +0 -1
  520. package/dist/cjs/components/TUIMessageInput/EmojiPicker.js +0 -1
  521. package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.js +0 -1
  522. package/dist/cjs/components/TUIMessageInput/InputQuoteDefalut.js +0 -1
  523. package/dist/cjs/components/TUIMessageInput/TUIForward.js +0 -1
  524. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.js +0 -1
  525. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.js +0 -1
  526. package/dist/cjs/components/TUIMessageInput/Transmitter.js +0 -1
  527. package/dist/cjs/components/TUIMessageInput/hooks/useEmojiPicker.js +0 -1
  528. package/dist/cjs/components/TUIMessageInput/hooks/useHandleForwardMessage.js +0 -1
  529. package/dist/cjs/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +0 -1
  530. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputText.js +0 -1
  531. package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.js +0 -1
  532. package/dist/cjs/components/TUIMessageList/TUIMessageList.js +0 -1
  533. package/dist/cjs/components/TUIMessageList/hooks/useMessageListElement.js +0 -1
  534. package/dist/cjs/components/TUIProfile/TUIProfile.d.ts +0 -10
  535. package/dist/cjs/components/TUIProfile/TUIProfile.js +0 -1
  536. package/dist/cjs/components/TUIProfile/TUIProfileDefault.js +0 -1
  537. package/dist/cjs/context/TUIConversationContext.js +0 -1
  538. package/dist/cjs/locales/en-US/TUIGlobal.js +0 -1
  539. package/dist/cjs/locales/ja-JP/TUIGlobal.js +0 -1
  540. package/dist/cjs/locales/ko-KR/TUIGlobal.js +0 -1
  541. package/dist/cjs/locales/zh-CN/TUIGlobal.js +0 -1
  542. package/dist/esm/components/ConversationCreate/ConversationCreatGroupDetail.js +0 -1
  543. package/dist/esm/components/ConversationPreview/ConversationListContainer.d.ts +0 -10
  544. package/dist/esm/components/ConversationPreview/ConversationListContainer.js +0 -1
  545. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.d.ts +0 -10
  546. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.js +0 -1
  547. package/dist/esm/components/ConversationSearch/ConversationSearchInput.d.ts +0 -6
  548. package/dist/esm/components/ConversationSearch/ConversationSearchInput.js +0 -1
  549. package/dist/esm/components/ConversationSearch/ConversationSearchResult.d.ts +0 -12
  550. package/dist/esm/components/ConversationSearch/ConversationSearchResult.js +0 -1
  551. package/dist/esm/components/Icon/images/down-arrow.png.js +0 -1
  552. package/dist/esm/components/Icon/images/right-arrow.svg.js +0 -1
  553. package/dist/esm/components/TUIChat/TUIChat.js +0 -1
  554. package/dist/esm/components/TUIChat/TUIChatState.js +0 -1
  555. package/dist/esm/components/TUIChat/unitls.js +0 -1
  556. package/dist/esm/components/TUIChatHeader/TUIChatHeader.js +0 -1
  557. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.js +0 -1
  558. package/dist/esm/components/TUIContact/TUIContact.d.ts +0 -6
  559. package/dist/esm/components/TUIContact/TUIContact.js +0 -1
  560. package/dist/esm/components/TUIContact/TUIContactInfo/TUIContactInfo.d.ts +0 -10
  561. package/dist/esm/components/TUIContact/TUIContactInfo/TUIContactInfo.js +0 -1
  562. package/dist/esm/components/TUIContact/TUIContactInfo/basicInfo.js +0 -1
  563. package/dist/esm/components/TUIContact/TUIContactInfo/blockInfo.js +0 -1
  564. package/dist/esm/components/TUIContact/TUIContactInfo/friendApplication.js +0 -1
  565. package/dist/esm/components/TUIContact/TUIContactInfo/friendInfo.js +0 -1
  566. package/dist/esm/components/TUIContact/TUIContactInfo/groupInfo.js +0 -1
  567. package/dist/esm/components/TUIContact/TUIContactInfo/hooks/useContactInfo.js +0 -1
  568. package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.d.ts +0 -6
  569. package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.js +0 -1
  570. package/dist/esm/components/TUIContact/hooks/useTUIContact.js +0 -1
  571. package/dist/esm/components/TUIContactSearch/TUIContactSearch.js +0 -1
  572. package/dist/esm/components/TUIContactSearch/hooks/useContactSearch.js +0 -1
  573. package/dist/esm/components/TUIConversation/TUIConversation.d.ts +0 -12
  574. package/dist/esm/components/TUIConversation/TUIConversation.js +0 -1
  575. package/dist/esm/components/TUIConversationList/TUIConversationList.d.ts +0 -19
  576. package/dist/esm/components/TUIConversationList/TUIConversationList.js +0 -1
  577. package/dist/esm/components/TUIConversationList/hooks/useConversationList.js +0 -1
  578. package/dist/esm/components/TUIConversationList/hooks/useConversationUpdate.js +0 -1
  579. package/dist/esm/components/TUIManage/TUIManage.d.ts +0 -6
  580. package/dist/esm/components/TUIManage/TUIManage.js +0 -1
  581. package/dist/esm/components/TUIMessage/MessageAudio.js +0 -1
  582. package/dist/esm/components/TUIMessage/MessageAvatar.js +0 -1
  583. package/dist/esm/components/TUIMessage/MessageBubble.js +0 -1
  584. package/dist/esm/components/TUIMessage/MessageContext.js +0 -1
  585. package/dist/esm/components/TUIMessage/MessageCustom.js +0 -1
  586. package/dist/esm/components/TUIMessage/MessageName.js +0 -1
  587. package/dist/esm/components/TUIMessage/MessagePlugins.js +0 -1
  588. package/dist/esm/components/TUIMessage/MessageProgress.js +0 -1
  589. package/dist/esm/components/TUIMessage/MessageRevoke.js +0 -1
  590. package/dist/esm/components/TUIMessage/MessageStatus.js +0 -1
  591. package/dist/esm/components/TUIMessage/MessageSystem.js +0 -1
  592. package/dist/esm/components/TUIMessage/MessageText.js +0 -1
  593. package/dist/esm/components/TUIMessage/MessageTip.js +0 -1
  594. package/dist/esm/components/TUIMessage/TUIMessage.js +0 -1
  595. package/dist/esm/components/TUIMessage/TUIMessageDefault.js +0 -1
  596. package/dist/esm/components/TUIMessage/hooks/useMessageHandler.js +0 -1
  597. package/dist/esm/components/TUIMessage/hooks/useMessageReply.js +0 -1
  598. package/dist/esm/components/TUIMessage/utils/index.js +0 -1
  599. package/dist/esm/components/TUIMessageInput/EmojiPicker.js +0 -1
  600. package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.js +0 -1
  601. package/dist/esm/components/TUIMessageInput/InputQuoteDefalut.js +0 -1
  602. package/dist/esm/components/TUIMessageInput/TUIForward.js +0 -1
  603. package/dist/esm/components/TUIMessageInput/TUIMessageInput.js +0 -1
  604. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.js +0 -1
  605. package/dist/esm/components/TUIMessageInput/Transmitter.js +0 -1
  606. package/dist/esm/components/TUIMessageInput/hooks/useEmojiPicker.js +0 -1
  607. package/dist/esm/components/TUIMessageInput/hooks/useHandleForwardMessage.js +0 -1
  608. package/dist/esm/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +0 -1
  609. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputText.js +0 -1
  610. package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.js +0 -1
  611. package/dist/esm/components/TUIMessageList/TUIMessageList.js +0 -1
  612. package/dist/esm/components/TUIMessageList/hooks/useMessageListElement.js +0 -1
  613. package/dist/esm/components/TUIProfile/TUIProfile.d.ts +0 -10
  614. package/dist/esm/components/TUIProfile/TUIProfile.js +0 -1
  615. package/dist/esm/components/TUIProfile/TUIProfileDefault.js +0 -1
  616. package/dist/esm/components/untils.js +0 -1
  617. package/dist/esm/context/TUIConversationContext.js +0 -1
  618. package/dist/esm/locales/en-US/TUIGlobal.js +0 -1
  619. package/dist/esm/locales/ja-JP/TUIGlobal.js +0 -1
  620. package/dist/esm/locales/ko-KR/TUIGlobal.js +0 -1
  621. package/dist/esm/locales/zh-CN/TUIGlobal.js +0 -1
  622. package/scripts/publish-github.js +0 -60
  623. package/scripts/publish-intl-demo.js +0 -14
  624. package/scripts/publish-intl-experience-demo.js +0 -14
  625. package/src/components/ConversationCreate/ConversationCreatGroupDetail.tsx +0 -170
  626. package/src/components/ConversationPreview/ConversationListContainer.tsx +0 -20
  627. package/src/components/ConversationPreview/ConversationPreviewContent.tsx +0 -190
  628. package/src/components/ConversationPreview/styles/index.scss +0 -171
  629. package/src/components/ConversationSearch/ConversationSearchInput.tsx +0 -27
  630. package/src/components/ConversationSearch/ConversationSearchResult.tsx +0 -39
  631. package/src/components/ConversationSearch/styles/index.scss +0 -20
  632. package/src/components/TUIChat/index.ts +0 -2
  633. package/src/components/TUIChat/unitls.ts +0 -39
  634. package/src/components/TUIChatHeader/index.ts +0 -2
  635. package/src/components/TUIContact/index.ts +0 -3
  636. package/src/components/TUIConversation/TUIConversation.tsx +0 -46
  637. package/src/components/TUIConversation/index.ts +0 -1
  638. package/src/components/TUIConversationList/TUIConversationList.tsx +0 -178
  639. package/src/components/TUIConversationList/hooks/useConversationList.tsx +0 -42
  640. package/src/components/TUIConversationList/hooks/useConversationUpdate.tsx +0 -38
  641. package/src/components/TUIConversationList/index.scss +0 -59
  642. package/src/components/TUIConversationList/index.ts +0 -2
  643. package/src/components/TUIManage/index.ts +0 -1
  644. package/src/components/TUIMessageInput/index.ts +0 -3
  645. package/src/components/TUIMessageInput/styles/color.scss +0 -36
  646. package/src/components/TUIMessageList/index.ts +0 -1
  647. package/src/components/TUIProfile/TUIProfile.tsx +0 -50
  648. package/src/components/TUIProfile/index.ts +0 -2
  649. package/src/components/TUIProfile/styles/color.scss +0 -6
  650. package/src/components/TUIProfile/styles/index.scss +0 -2
  651. package/src/context/TUIChatStateContext.tsx +0 -50
  652. package/src/context/TUIConversationContext.tsx +0 -29
  653. package/src/context/TUIMessageContext.tsx +0 -56
  654. package/src/context/TUIMessageInputContext.tsx +0 -55
  655. package/src/locales/en-US/TUIGlobal.ts +0 -6
  656. package/src/locales/ja-JP/TUIGlobal.ts +0 -6
  657. package/src/locales/ko-KR/TUIGlobal.ts +0 -6
  658. package/src/locales/zh-CN/TUIGlobal.ts +0 -6
  659. /package/dist/cjs/components/{TUIChat → Chat}/hooks/useCreateTUIChatStateContext.js +0 -0
  660. /package/dist/cjs/components/{TUIChat → Chat}/hooks/useHandleMessage.d.ts +0 -0
  661. /package/dist/cjs/components/{TUIChat → Chat}/hooks/useHandleMessage.js +0 -0
  662. /package/dist/cjs/components/{TUIChat → Chat}/hooks/useHandleMessageList.js +0 -0
  663. /package/dist/cjs/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/addFriendInfo.js +0 -0
  664. /package/dist/cjs/components/{TUIMessage → MessageElement}/MessageContext.d.ts +0 -0
  665. /package/dist/cjs/components/{TUIMessage → MessageElement}/MessageFace.js +0 -0
  666. /package/dist/cjs/components/{TUIMessage → MessageElement}/MessageFile.js +0 -0
  667. /package/dist/cjs/components/{TUIMessage → MessageElement}/MessageImage.js +0 -0
  668. /package/dist/cjs/components/{TUIMessage → MessageElement}/MessageLocation.js +0 -0
  669. /package/dist/cjs/components/{TUIMessage → MessageElement}/MessageMerger.js +0 -0
  670. /package/dist/cjs/components/{TUIMessage → MessageElement}/MessagePlugins.d.ts +0 -0
  671. /package/dist/cjs/components/{TUIMessage → MessageElement}/MessageVideo.js +0 -0
  672. /package/dist/cjs/components/{TUIMessage → MessageElement}/hooks/useMessageContextHandler.js +0 -0
  673. /package/dist/cjs/components/{TUIMessage → MessageElement}/hooks/useMessagePluginElement.js +0 -0
  674. /package/dist/cjs/components/{TUIMessage → MessageElement}/utils/decodeText.js +0 -0
  675. /package/dist/cjs/components/{TUIMessage → MessageElement}/utils/emojiMap.js +0 -0
  676. /package/dist/cjs/components/{TUIMessageInput → MessageInput}/InputPluginsDefalut.d.ts +0 -0
  677. /package/dist/cjs/components/{TUIMessageInput/TUIMessageInputDefault.d.ts → MessageInput/MessageInputDefault.d.ts} +0 -0
  678. /package/dist/cjs/components/{TUIMessageInput → MessageInput}/hooks/useCreateMessageInputContext.js +0 -0
  679. /package/dist/cjs/components/{TUIMessageInput → MessageInput}/hooks/useEmojiPicker.d.ts +0 -0
  680. /package/dist/cjs/components/{TUIMessageInput → MessageInput}/hooks/useMessageInputState.d.ts +0 -0
  681. /package/dist/cjs/components/{TUIMessageInput → MessageInput}/hooks/useMessageInputState.js +0 -0
  682. /package/dist/cjs/components/{TUIMessageInput → MessageInput}/hooks/useUploadElement.js +0 -0
  683. /package/dist/cjs/components/{TUIMessageInput → MessageInput}/hooks/useUploadPicker.d.ts +0 -0
  684. /package/dist/cjs/components/{TUIProfile/TUIProfileDefault.d.ts → Profile/ProfileDefault.d.ts} +0 -0
  685. /package/dist/cjs/components/{TUIProfile → Profile}/hooks/useMyProfile.js +0 -0
  686. /package/dist/cjs/context/{TUIChatActionContext.js → ChatActionContext.js} +0 -0
  687. /package/dist/cjs/context/{TUIChatStateContext.js → ChatStateContext.js} +0 -0
  688. /package/dist/cjs/context/{TUIContactContext.js → ContactContext.js} +0 -0
  689. /package/dist/cjs/context/{TUIMessageContext.js → MessageContext.js} +0 -0
  690. /package/dist/cjs/context/{TUIMessageInputContext.js → MessageInputContext.js} +0 -0
  691. /package/dist/esm/components/{TUIChat → Chat}/hooks/useCreateTUIChatStateContext.js +0 -0
  692. /package/dist/esm/components/{TUIChat → Chat}/hooks/useHandleMessage.d.ts +0 -0
  693. /package/dist/esm/components/{TUIChat → Chat}/hooks/useHandleMessage.js +0 -0
  694. /package/dist/esm/components/{TUIChat → Chat}/hooks/useHandleMessageList.js +0 -0
  695. /package/dist/esm/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/addFriendInfo.js +0 -0
  696. /package/dist/esm/components/{TUIMessage → MessageElement}/MessageContext.d.ts +0 -0
  697. /package/dist/esm/components/{TUIMessage → MessageElement}/MessageFace.js +0 -0
  698. /package/dist/esm/components/{TUIMessage → MessageElement}/MessageFile.js +0 -0
  699. /package/dist/esm/components/{TUIMessage → MessageElement}/MessageImage.js +0 -0
  700. /package/dist/esm/components/{TUIMessage → MessageElement}/MessageLocation.js +0 -0
  701. /package/dist/esm/components/{TUIMessage → MessageElement}/MessageMerger.js +0 -0
  702. /package/dist/esm/components/{TUIMessage → MessageElement}/MessagePlugins.d.ts +0 -0
  703. /package/dist/esm/components/{TUIMessage → MessageElement}/MessageVideo.js +0 -0
  704. /package/dist/esm/components/{TUIMessage → MessageElement}/hooks/useMessageContextHandler.js +0 -0
  705. /package/dist/esm/components/{TUIMessage → MessageElement}/hooks/useMessagePluginElement.js +0 -0
  706. /package/dist/esm/components/{TUIMessage → MessageElement}/utils/decodeText.js +0 -0
  707. /package/dist/esm/components/{TUIMessage → MessageElement}/utils/emojiMap.js +0 -0
  708. /package/dist/esm/components/{TUIMessageInput → MessageInput}/InputPluginsDefalut.d.ts +0 -0
  709. /package/dist/esm/components/{TUIMessageInput/TUIMessageInputDefault.d.ts → MessageInput/MessageInputDefault.d.ts} +0 -0
  710. /package/dist/esm/components/{TUIMessageInput → MessageInput}/hooks/useCreateMessageInputContext.js +0 -0
  711. /package/dist/esm/components/{TUIMessageInput → MessageInput}/hooks/useEmojiPicker.d.ts +0 -0
  712. /package/dist/esm/components/{TUIMessageInput → MessageInput}/hooks/useMessageInputState.d.ts +0 -0
  713. /package/dist/esm/components/{TUIMessageInput → MessageInput}/hooks/useMessageInputState.js +0 -0
  714. /package/dist/esm/components/{TUIMessageInput → MessageInput}/hooks/useUploadElement.js +0 -0
  715. /package/dist/esm/components/{TUIMessageInput → MessageInput}/hooks/useUploadPicker.d.ts +0 -0
  716. /package/dist/esm/components/{TUIProfile/TUIProfileDefault.d.ts → Profile/ProfileDefault.d.ts} +0 -0
  717. /package/dist/esm/components/{TUIProfile → Profile}/hooks/useMyProfile.js +0 -0
  718. /package/dist/esm/context/{TUIChatActionContext.js → ChatActionContext.js} +0 -0
  719. /package/dist/esm/context/{TUIChatStateContext.js → ChatStateContext.js} +0 -0
  720. /package/dist/esm/context/{TUIContactContext.js → ContactContext.js} +0 -0
  721. /package/dist/esm/context/{TUIMessageContext.js → MessageContext.js} +0 -0
  722. /package/dist/esm/context/{TUIMessageInputContext.js → MessageInputContext.js} +0 -0
  723. /package/src/components/{TUIChat → Chat}/hooks/useCreateTUIChatStateContext.tsx +0 -0
  724. /package/src/components/{TUIChat → Chat}/hooks/useIsMounted.ts +0 -0
  725. /package/src/components/{TUIChat → Chat}/styles/index.scss +0 -0
  726. /package/src/components/{TUIChatHeader → ChatHeader}/styles/color.scss +0 -0
  727. /package/src/components/{TUIChatHeader → ChatHeader}/styles/index.scss +0 -0
  728. /package/src/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/addFriendInfo.tsx +0 -0
  729. /package/src/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/basicInfo.tsx +0 -0
  730. /package/src/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/blockInfo.tsx +0 -0
  731. /package/src/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/friendApplication.tsx +0 -0
  732. /package/src/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/friendInfo.tsx +0 -0
  733. /package/src/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/groupInfo.tsx +0 -0
  734. /package/src/components/{TUIContact/TUIContactInfo → Contact/ContactInfo}/hooks/useContactInfo.tsx +0 -0
  735. /package/src/components/{TUIContactSearch → ContactSearch}/hooks/useContactSearch.tsx +0 -0
  736. /package/src/components/{TUIMessage → MessageElement}/MessageAudio.tsx +0 -0
  737. /package/src/components/{TUIMessage → MessageElement}/MessageContext.tsx +0 -0
  738. /package/src/components/{TUIMessage → MessageElement}/MessageFace.tsx +0 -0
  739. /package/src/components/{TUIMessage → MessageElement}/MessageFile.tsx +0 -0
  740. /package/src/components/{TUIMessage → MessageElement}/MessageImage.tsx +0 -0
  741. /package/src/components/{TUIMessage → MessageElement}/MessageLocation.tsx +0 -0
  742. /package/src/components/{TUIMessage → MessageElement}/MessageMerger.tsx +0 -0
  743. /package/src/components/{TUIMessage → MessageElement}/MessageName.tsx +0 -0
  744. /package/src/components/{TUIMessage → MessageElement}/MessageProgress.tsx +0 -0
  745. /package/src/components/{TUIMessage → MessageElement}/MessageRevoke.tsx +0 -0
  746. /package/src/components/{TUIMessage → MessageElement}/MessageSystem.tsx +0 -0
  747. /package/src/components/{TUIMessage → MessageElement}/MessageText.tsx +0 -0
  748. /package/src/components/{TUIMessage → MessageElement}/MessageTip.tsx +0 -0
  749. /package/src/components/{TUIMessage → MessageElement}/MessageVideo.tsx +0 -0
  750. /package/src/components/{TUIMessage → MessageElement}/hooks/index.ts +0 -0
  751. /package/src/components/{TUIMessage → MessageElement}/hooks/useMessageContextHandler.ts +0 -0
  752. /package/src/components/{TUIMessage → MessageElement}/hooks/useMessagePluginElement.tsx +0 -0
  753. /package/src/components/{TUIMessage → MessageElement}/styles/index.scss +0 -0
  754. /package/src/components/{TUIMessage → MessageElement}/utils/decodeText.ts +0 -0
  755. /package/src/components/{TUIMessage → MessageElement}/utils/emojiMap.ts +0 -0
  756. /package/src/components/{TUIMessageInput → MessageInput}/hooks/index.ts +0 -0
  757. /package/src/components/{TUIMessageInput → MessageInput}/hooks/useCreateMessageInputContext.ts +0 -0
  758. /package/src/components/{TUIMessageInput → MessageInput}/hooks/useHandleQuoteMessage.tsx +0 -0
  759. /package/src/components/{TUIMessageInput → MessageInput}/hooks/usePluginsElement.tsx +0 -0
  760. /package/src/components/{TUIMessageInput → MessageInput}/hooks/useUploadElement.tsx +0 -0
  761. /package/src/components/{TUIMessageInput → MessageInput}/styles/index.scss +0 -0
  762. /package/src/components/{TUIMessageList → MessageList}/styles/color.scss +0 -0
  763. /package/src/components/{TUIMessageList → MessageList}/styles/index.scss +0 -0
  764. /package/src/components/{TUIProfile → Profile}/hooks/index.ts +0 -0
  765. /package/src/components/{TUIProfile → Profile}/hooks/useMyProfile.tsx +0 -0
@@ -0,0 +1,42 @@
1
+ import { useTranslation } from 'react-i18next';
2
+ import { Icon, IconTypes } from '../../Icon';
3
+ import { Input, InputProps } from '../../Input';
4
+ import classNames from 'classnames';
5
+
6
+ import './ConversationSearchInput.scss';
7
+
8
+ type IConversationSearchInputProps = InputProps;
9
+
10
+ function ConversationSearchInput(props: IConversationSearchInputProps) {
11
+ const {
12
+ className,
13
+ placeholder,
14
+ clearable,
15
+ value,
16
+ onChange,
17
+ prefix = <Icon type={IconTypes.SEARCH} height={16} width={16} />,
18
+ onFocus,
19
+ onBlur,
20
+ } = props;
21
+ const { t } = useTranslation();
22
+ return (
23
+ <Input
24
+ className={classNames(
25
+ 'uikit-conversation-search-input',
26
+ className,
27
+ )}
28
+ placeholder={placeholder || t('TUIConversation.Search')}
29
+ clearable={clearable}
30
+ value={value}
31
+ onChange={onChange}
32
+ onFocus={onFocus}
33
+ onBlur={onBlur}
34
+ prefix={prefix}
35
+ />
36
+ );
37
+ }
38
+
39
+ export {
40
+ ConversationSearchInput,
41
+ IConversationSearchInputProps,
42
+ };
@@ -0,0 +1 @@
1
+ export * from './ConversationSearchInput';
@@ -0,0 +1,15 @@
1
+ @use "../../../styles/colors/color-theme" as *;
2
+
3
+ .uikit-conversation-search-result {
4
+ display: flex;
5
+ flex-direction: column;
6
+ flex: 1;
7
+ min-width: 0;
8
+ box-sizing: border-box;
9
+ overflow: auto;
10
+
11
+ @include theme() {
12
+ background-color: get(bg-color-operate);
13
+ color: get(text-color-primary);
14
+ }
15
+ }
@@ -0,0 +1,72 @@
1
+ import React from 'react';
2
+ import cs from 'classnames';
3
+ import { IConversationModel } from '@tencentcloud/chat-uikit-engine';
4
+ import { ConversationPreview as DefaultConversationPreview, IConversationPreviewProps } from '../../ConversationPreview';
5
+ import { Avatar as DefaultAvatar, AvatarProps } from '../../Avatar';
6
+ import { PlaceHolder, PlaceHolderTypes } from '../../PlaceHolder';
7
+
8
+ import './ConversationSearchResult.scss';
9
+
10
+ interface IConversationSearchResultProps {
11
+ /** Whether to show the search result */
12
+ visible?: boolean;
13
+ /** The search result */
14
+ searchResult?: IConversationModel[];
15
+ /** The search input value */
16
+ searchValue?: string;
17
+ /** The custom ResultPreview component */
18
+ ResultPreview?: React.ComponentType<IConversationPreviewProps>;
19
+ /** The custom Avatar component */
20
+ Avatar?: React.ComponentType<AvatarProps>;
21
+ /** The custom no result Placeholder component */
22
+ PlaceholderNoResult?: React.ReactNode;
23
+ /** Callback when the ResultPreview is clicked */
24
+ onSelectResult?: (conversation: IConversationModel) => void;
25
+ /** The custom class name */
26
+ className?: string;
27
+ /** The custom css style */
28
+ style?: React.CSSProperties;
29
+ }
30
+
31
+ function ConversationSearchResult(props: IConversationSearchResultProps) {
32
+ const {
33
+ visible = false,
34
+ searchResult,
35
+ searchValue,
36
+ Avatar = DefaultAvatar,
37
+ ResultPreview = DefaultConversationPreview,
38
+ PlaceholderNoResult = <PlaceHolder type={PlaceHolderTypes.NO_RESULTS} searchString={searchValue} />,
39
+ onSelectResult,
40
+ className,
41
+ style,
42
+ } = props;
43
+
44
+ if (!visible) {
45
+ return null;
46
+ }
47
+
48
+ return (
49
+ <div
50
+ className={cs('uikit-conversation-search-result', className)}
51
+ style={style}
52
+ >
53
+ {searchResult?.length === 0
54
+ ? PlaceholderNoResult
55
+ : (searchResult?.map(item => (
56
+ <ResultPreview
57
+ key={item.conversationID}
58
+ conversation={item}
59
+ Avatar={Avatar}
60
+ highlightMatchString={searchValue}
61
+ onSelectConversation={onSelectResult}
62
+ />
63
+ ))
64
+ )}
65
+ </div>
66
+ );
67
+ }
68
+
69
+ export {
70
+ ConversationSearchResult,
71
+ IConversationSearchResultProps,
72
+ };
@@ -0,0 +1 @@
1
+ export * from './ConversationSearchResult';
@@ -1,2 +1,3 @@
1
- export * from './ConversationSearchInput';
2
- export * from './ConversationSearchResult';
1
+ export * from './ConversationSearchInput/ConversationSearchInput';
2
+ export * from './ConversationSearchResult/ConversationSearchResult';
3
+ export * from './ConversationSearch';
@@ -1,14 +1,18 @@
1
+ @use "../../../styles/colors/color-theme" as *;
2
+
1
3
  .div-with-edit {
2
4
  flex: 1;
3
5
  display: flex;
4
6
  max-width: 100%;
5
7
  box-sizing: border-box;
6
8
  height: 30px;
7
- &-popup{
9
+
10
+ &-popup {
8
11
  flex: 1;
9
12
  display: flex;
10
13
  max-width: 100%;
11
14
  }
15
+
12
16
  .show {
13
17
  flex: 1;
14
18
  display: flex;
@@ -16,54 +20,70 @@
16
20
  justify-content: space-between;
17
21
  position: relative;
18
22
  word-break: break-all;
23
+
24
+ .icon-edit {
25
+ display: none;
26
+ }
27
+
19
28
  &:hover {
20
29
  .icon-edit {
21
30
  display: flex;
22
31
  }
23
32
  }
24
- .icon-edit {
25
- display: none;
26
- }
27
33
  }
34
+
28
35
  .icon {
29
36
  margin-left: 10px;
30
37
  width: 25px;
31
38
  }
39
+
32
40
  .edit {
33
41
  flex: 1;
34
42
  display: flex;
35
43
  align-items: center;
36
44
  justify-content: space-between;
37
45
  position: relative;
38
- border-bottom: 1px solid #EEEEEE;
39
46
  padding: 0 10px;
47
+
48
+ @include theme() {
49
+ border-bottom: 1px solid get(stroke-color-primary);
50
+ }
51
+
40
52
  input {
41
53
  flex: 1;
42
54
  font-size: inherit;
43
55
  border: none;
56
+
44
57
  &:focus {
45
58
  border: none;
46
59
  outline: none;
47
60
  }
48
61
  }
62
+
49
63
  .select {
50
64
  position: absolute;
51
- box-sizing: border-box;
52
65
  min-width: 100%;
53
66
  z-index: 2;
54
- background: #FFFFFF;
55
- box-shadow: 0 11px 20px 0 rgb(0,0,0.3);
56
67
  top: 100%;
57
68
  border-radius: 5px;
58
69
  padding: 10px 0;
70
+
71
+ @include theme() {
72
+ background: get(dropdown-color-default);
73
+ box-shadow: 0 11px 20px 0 get(shadow-color);
74
+ }
75
+
59
76
  &-list {
60
77
  &-item {
61
78
  padding: 7px 10px;
79
+
62
80
  &:hover {
63
- background: #f2f7ff;
81
+ @include theme() {
82
+ background: get(dropdown-color-hover);
83
+ }
64
84
  }
65
85
  }
66
86
  }
67
87
  }
68
88
  }
69
- }
89
+ }
@@ -1,12 +1,11 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
 
3
- export interface EmptyStateIndicatorProps{
3
+ export interface EmptyStateIndicatorProps {
4
4
  /** List Type: conversation | message */
5
5
  listType?: 'conversation' | 'message' | 'chat';
6
6
  }
7
7
 
8
- function UnMemoizedEmptyStateIndicator
9
- <T extends EmptyStateIndicatorProps>(props: PropsWithChildren<T>) {
8
+ function UnMemoizedEmptyStateIndicator<T extends EmptyStateIndicatorProps>(props: PropsWithChildren<T>) {
10
9
  const { listType } = props;
11
10
 
12
11
  if (listType === 'conversation') { return <p role="listitem">You have no conversation currently</p>; }
@@ -3,18 +3,18 @@ import './styles/index.scss';
3
3
  import { IconTypes } from './type';
4
4
  import { ICON_CONFIG } from './config';
5
5
 
6
- const changeTypeToIconComponent = (type:IconTypes) => {
6
+ const changeTypeToIconComponent = (type: IconTypes) => {
7
7
  const src = ICON_CONFIG[type].url || '';
8
- return <img className={`icon-image icon-image-${type}`} src={src} alt={type} />;
8
+ return src && <img className={`icon-image icon-image-${type}`} src={src} alt={type} />;
9
9
  };
10
- export const changeTypeToIconClassName = (type:IconTypes) => ICON_CONFIG[type]?.className || '';
10
+ export const changeTypeToIconClassName = (type: IconTypes) => ICON_CONFIG[type]?.className || '';
11
11
 
12
12
  export interface IconProps {
13
- type?: IconTypes,
14
- height?: number,
15
- width?: number,
16
- onClick?: (event: React.BaseSyntheticEvent) => void,
17
- className?: string
13
+ type?: IconTypes;
14
+ height?: number;
15
+ width?: number;
16
+ onClick?: (event: React.BaseSyntheticEvent) => void;
17
+ className?: string;
18
18
  }
19
19
  export function Icon(props: React.PropsWithChildren<IconProps>) {
20
20
  const {
@@ -41,19 +41,22 @@ import IconVectorUrl from './images/vector.png';
41
41
  import IconUnvectorUrl from './images/unvector.png';
42
42
  import IconVoiceUrl from './images/voice.png';
43
43
  import IconAddCircleUrl from './images/add-friend.svg';
44
+ import IconMuteUrl from './images/mute.svg';
45
+ import IconVideoCallUrl from './images/video-call.svg';
46
+ import IconVoiceCallUrl from './images/voice-call.svg';
44
47
 
45
48
  import { IconTypes } from './type';
46
49
 
47
50
  interface IconConfigItem {
48
- url: string,
49
- className: string,
51
+ url: string;
52
+ className: string;
50
53
  }
51
54
 
52
55
  interface IconConfig {
53
- [propName: string]: IconConfigItem
56
+ [propName: string]: IconConfigItem;
54
57
  }
55
58
 
56
- export const ICON_CONFIG:IconConfig = {
59
+ export const ICON_CONFIG: IconConfig = {
57
60
  [IconTypes.MORE]: {
58
61
  url: IconMoreUrl,
59
62
  className: 'tui-kit-icon-more',
@@ -230,4 +233,20 @@ export const ICON_CONFIG:IconConfig = {
230
233
  url: IconAddCircleUrl,
231
234
  className: 'tui-kit-icon-add-friend',
232
235
  },
236
+ [IconTypes.LOADING]: {
237
+ url: '',
238
+ className: 'tui-kit-icon-loading',
239
+ },
240
+ [IconTypes.MUTE]: {
241
+ url: IconMuteUrl,
242
+ className: 'tui-kit-icon-mute',
243
+ },
244
+ [IconTypes.VIDEOCALL]: {
245
+ url: IconVideoCallUrl,
246
+ className: 'tui-kit-icon-video-call',
247
+ },
248
+ [IconTypes.VOICECALL]: {
249
+ url: IconVoiceCallUrl,
250
+ className: 'tui-kit-icon-voice-call',
251
+ },
233
252
  };
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" class="design-iconfont">
2
+ <g fill="none" fill-rule="evenodd">
3
+ <path d="M4.13744611,6.61713753 L20.551,23 L0,23 L0,21 L3,21 L3,11 C3,9.40883362 3.41291862,7.91410954 4.13744611,6.61713753 Z M21.481,21 L24,21 L24,23 L23.485,23 L21.481,21 Z M12,2 C16.9705627,2 21,6.02943725 21,11 L21,20.52 L5.36684476,4.91705738 C7.01203082,3.12402075 9.37475086,2 12,2 Z" fill="#CCC" transform="translate(4 3)"/>
4
+ <path fill="#CCC" fill-rule="nonzero" d="M13 0L13 4 11 4 11 0z" transform="translate(4 3)"/>
5
+ <path stroke="#CCC" d="M8.5 24.5H15.5V25.5H8.5z" transform="translate(4 3)"/>
6
+ <path stroke="#CCC" stroke-width="2" transform="matrix(-1 0 0 1 31.089472 3)" d="M25.4499982 0.1546001L1.63947409 23.8855564"/>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="18" height="12" viewBox="0 0 18 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.7133 3.78811C12.7133 3.84528 12.654 3.94533 12.5353 4.08826C12.4166 4.23119 12.2894 4.39985 12.1537 4.59424C12.0181 4.78862 11.8909 5.00016 11.7722 5.22885C11.6535 5.45754 11.5942 5.69194 11.5942 5.93207C11.5942 6.17219 11.6535 6.40374 11.7722 6.62671C11.8909 6.84968 12.0181 7.05264 12.1537 7.2356C12.2894 7.41855 12.4166 7.57005 12.5353 7.69011C12.654 7.81018 12.7133 7.88736 12.7133 7.92166V9.72259C12.7133 9.91697 12.6427 10.1371 12.5014 10.3829C12.3601 10.6288 12.1848 10.8603 11.9757 11.0776C11.7666 11.2948 11.5348 11.4749 11.2805 11.6178C11.0261 11.7608 10.7859 11.8322 10.5598 11.8322H2.13229C1.82707 11.8322 1.54728 11.7779 1.29293 11.6693C1.03858 11.5607 0.815315 11.4092 0.623139 11.2148C0.430963 11.0204 0.281177 10.7917 0.173785 10.5287C0.0663918 10.2657 0.0126953 9.97986 0.0126953 9.67113V2.27876C0.0126953 2.05007 0.0635656 1.81281 0.165306 1.56697C0.267047 1.32113 0.411179 1.0953 0.597704 0.889476C0.784228 0.683656 1.00467 0.512139 1.25902 0.374926C1.51337 0.237712 1.79316 0.169106 2.09838 0.169106H10.5259C10.8311 0.169106 11.1166 0.223419 11.3822 0.332046C11.6479 0.440674 11.8796 0.589322 12.0774 0.77799C12.2753 0.966658 12.4307 1.19249 12.5437 1.45548C12.6568 1.71847 12.7133 1.99862 12.7133 2.29591V3.78811ZM17.9869 2.17585V10.0142C17.9869 10.2657 17.9219 10.4887 17.7919 10.6831C17.6619 10.8775 17.4669 10.9747 17.2069 10.9747C17.1164 10.9747 17.0006 10.9404 16.8592 10.8718C16.7179 10.8031 16.5766 10.7231 16.4353 10.6316C16.294 10.5402 16.1612 10.4487 16.0368 10.3572C15.9125 10.2657 15.8221 10.1914 15.7655 10.1342C15.6186 10.0084 15.3953 9.79119 15.0957 9.48246C14.7962 9.17373 14.4938 8.82498 14.1886 8.43621C13.8833 8.04744 13.6149 7.64724 13.3831 7.2356C13.1514 6.82396 13.0355 6.44662 13.0355 6.10358C13.0355 5.76055 13.1598 5.36892 13.4085 4.9287C13.6572 4.48847 13.9568 4.05682 14.3073 3.63374C14.6577 3.21067 15.0251 2.81904 15.4094 2.45885C15.7938 2.09867 16.116 1.8271 16.376 1.64415C16.4777 1.57554 16.6162 1.49264 16.7914 1.39545C16.9666 1.29826 17.1221 1.24966 17.2577 1.24966C17.563 1.24966 17.7608 1.33542 17.8512 1.50694C17.9417 1.67845 17.9869 1.88999 17.9869 2.14155V2.17585Z" fill="#147AFF" style="fill:#147AFF;fill:color(display-p3 0.0784 0.4784 1.0000);fill-opacity:1;"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M0.820502 1.908L2.4211 0.335447C2.84833 -0.110789 3.54101 -0.110788 3.96825 0.335448L6.55252 3.03465C6.97975 3.48089 6.97975 4.20438 6.55252 4.65061L5.40756 5.84649C5.89906 6.92709 6.58667 7.90985 7.44288 8.73564C8.3911 9.65016 9.50662 10.3341 10.7098 10.7549L11.7569 9.66126C12.1841 9.21502 12.8768 9.21502 13.304 9.66126L15.6796 12.1424C16.1068 12.5887 16.1068 13.3122 15.6796 13.7584L13.9485 15.6199C13.9389 15.6199 13.9581 15.6199 13.9485 15.6199C13.7709 15.8055 13.5385 15.9293 13.2854 15.9734L13.128 16.0008C9.75381 15.9708 6.84954 14.6061 4.36844 12.2132C1.859 9.79292 0.271627 6.98782 0 3.43154C0 2.94579 0.202278 2.48197 0.558263 2.15147L0.820502 1.908Z" fill="#147AFF" style="fill:#147AFF;fill:color(display-p3 0.0784 0.4784 1.0000);fill-opacity:1;"/>
3
+ </svg>
@@ -1,3 +1,5 @@
1
+ @use "../../../styles/colors/color-theme" as *;
2
+
1
3
  $primary-color: royalblue;
2
4
 
3
5
  .tui-kit-icon {
@@ -6,25 +8,58 @@ $primary-color: royalblue;
6
8
  align-items: center;
7
9
  cursor: pointer;
8
10
  position: relative;
11
+ user-select: none;
12
+
9
13
  .icon-image {
10
14
  width: 100%;
11
15
  }
12
- &:hover{
16
+
17
+ &:hover {
13
18
  color: $primary-color;
14
- border-color: currentColor;
19
+ border-color: currentcolor;
15
20
  }
16
- &::after{
17
- content: '';
21
+
22
+ &::after {
23
+ content: "";
18
24
  position: absolute;
19
25
  inset: 0;
20
26
  border-radius: inherit;
21
27
  opacity: 0;
22
28
  box-shadow: 0 0 0 6px $primary-color;
23
- transition: .3s;
29
+ transition: 0.3s;
24
30
  }
25
- &:active::after{
31
+
32
+ &:active::after {
26
33
  box-shadow: none;
27
34
  opacity: 0.4;
28
35
  transition: 0s;
29
36
  }
30
37
  }
38
+
39
+ .tui-kit-icon-loading {
40
+ cursor: wait;
41
+ border-radius: 100%;
42
+ animation: circle infinite 1s linear;
43
+
44
+ @include theme() {
45
+ border: 3px solid get(text-color-disable);
46
+ border-top-color: transparent;
47
+ }
48
+
49
+ &:hover {
50
+ @include theme() {
51
+ border: 3px solid get(text-color-disable);
52
+ border-top-color: transparent;
53
+ }
54
+ }
55
+ }
56
+
57
+ @keyframes circle {
58
+ 0% {
59
+ transform: rotate(0);
60
+ }
61
+
62
+ 100% {
63
+ transform: rotate(360deg);
64
+ }
65
+ }
@@ -43,4 +43,8 @@ export enum IconTypes {
43
43
  UNVECTOR = 'unvector',
44
44
  VOICE = 'voice',
45
45
  ADDFRIEND = 'addFriend',
46
+ LOADING = 'loading',
47
+ MUTE = 'mute',
48
+ VIDEOCALL = 'videoCall',
49
+ VOICECALL = 'voiceCall',
46
50
  }
@@ -5,20 +5,21 @@ import React, {
5
5
  import './styles/index.scss';
6
6
  import { Icon, IconTypes } from '../Icon';
7
7
 
8
- export interface InputProps
9
- extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'>
10
- {
11
- className?: string,
12
- customClassName?: string,
13
- placeholder?: string,
14
- clearable?: boolean,
15
- prefix?: React.ReactNode,
16
- suffix?: React.ReactNode,
17
- value?: InputHTMLAttributes<HTMLInputElement>['value'],
18
- border?: '' | 'bottom',
19
- disabled?: boolean,
20
- maxLength?: number,
21
- onKeyDown?: (options?: object) => void
8
+ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix' | 'type'> {
9
+ className?: string;
10
+ inputClassName?: string;
11
+ placeholder?: string;
12
+ clearable?: boolean;
13
+ prefix?: React.ReactNode;
14
+ suffix?: React.ReactNode;
15
+ value?: InputHTMLAttributes<HTMLInputElement>['value'];
16
+ border?: '' | 'bottom';
17
+ disabled?: boolean;
18
+ maxLength?: number;
19
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
20
+ onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
21
+ onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
22
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
22
23
  }
23
24
  export interface InputRef {
24
25
  focus: (options?: object) => void;
@@ -28,8 +29,8 @@ export interface InputRef {
28
29
  export const Input = React.forwardRef<InputRef, InputProps>(
29
30
  (props: InputProps, ref): React.ReactElement => {
30
31
  const {
31
- className = "",
32
- customClassName = "",
32
+ className = '',
33
+ inputClassName = '',
33
34
  placeholder,
34
35
  clearable = false,
35
36
  prefix,
@@ -38,14 +39,14 @@ export const Input = React.forwardRef<InputRef, InputProps>(
38
39
  onBlur,
39
40
  onFocus,
40
41
  onKeyDown,
41
- value: propsValue = "",
42
- border = "",
42
+ value: propsValue = '',
43
+ border = '',
43
44
  disabled = false,
44
45
  maxLength = undefined,
45
46
  } = props;
46
47
 
47
48
  const [focused, setFocused] = useState<boolean>(false);
48
- const enterCodeList = ["Enter", "NumpadEnter"];
49
+ const enterCodeList = ['Enter', 'NumpadEnter'];
49
50
  const [value, setValue] = useState(propsValue);
50
51
  const inputRef = useRef<HTMLInputElement>(null);
51
52
  const handleFocus = (e: any) => {
@@ -66,7 +67,7 @@ export const Input = React.forwardRef<InputRef, InputProps>(
66
67
  setValue('');
67
68
  focus();
68
69
  const currentTarget = inputRef?.current?.cloneNode(
69
- true
70
+ true,
70
71
  ) as HTMLInputElement;
71
72
  const event = Object.create(e, {
72
73
  target: { value: currentTarget },
@@ -103,7 +104,7 @@ export const Input = React.forwardRef<InputRef, InputProps>(
103
104
  <input
104
105
  maxLength={maxLength}
105
106
  disabled={disabled}
106
- className={`tui-kit-input ${customClassName}`}
107
+ className={`tui-kit-input ${inputClassName}`}
107
108
  placeholder={placeholder}
108
109
  ref={inputRef}
109
110
  value={value}
@@ -114,9 +115,9 @@ export const Input = React.forwardRef<InputRef, InputProps>(
114
115
  />
115
116
  {suffix}
116
117
  {(clearable && value)
117
- && <Icon type={IconTypes.CLEAR} height={13} width={13} onClick={(e: any) => {clearInput(e)}} />}
118
+ && <Icon type={IconTypes.CLEAR} height={13} width={13} onClick={(e: any) => { clearInput(e); }} />}
118
119
  </div>
119
120
  </div>
120
121
  );
121
- }
122
+ },
122
123
  );
@@ -1,22 +1,32 @@
1
+ @use "../../../styles/colors/color-theme" as *;
2
+
1
3
  .tui-kit-input-box {
2
4
  //width: 100%;
3
5
  display: flex;
4
6
  align-items: center;
5
7
  border-radius: 10px;
6
- background: rgba(249, 249, 249, 94%);
7
8
  padding: 0 8px;
8
9
  height: 36px;
9
10
  box-sizing: border-box;
10
11
 
12
+ @include theme() {
13
+ background-color: get(bg-color-input);
14
+ }
15
+
11
16
  &.tui-kit-input-box--focus {
12
- outline: 1px solid #147aff;
17
+ @include theme() {
18
+ outline: 1px solid get(text-color-link);
19
+ }
13
20
  }
14
21
 
15
22
  &.tui-kit-input-border--bottom {
16
- border-bottom: 1px solid rgba(0, 0, 0, 10%);
17
- background-color: #fff;
18
23
  outline: none;
19
24
  border-radius: 0;
25
+
26
+ @include theme() {
27
+ border-bottom: 1px solid get(stroke-color-primary);
28
+ background-color: get(bg-color-operate);
29
+ }
20
30
  }
21
31
 
22
32
  .tui-kit-input {
@@ -32,15 +42,21 @@
32
42
  box-sizing: border-box;
33
43
  font-size: 14px;
34
44
 
45
+ @include theme() {
46
+ color: get(text-color-primary);
47
+ }
48
+
35
49
  &:focus {
36
50
  border: none;
37
51
  outline: none;
38
52
  }
39
53
 
40
54
  &::placeholder {
41
- font-weight: 400;
42
- color: rgba(67, 60, 63, 60%);
43
55
  padding: 2px 0;
56
+
57
+ @include theme() {
58
+ color: get(text-color-secondary);
59
+ }
44
60
  }
45
61
  }
46
62
  }