@tencentcloud/chat-uikit-react 2.2.5 → 2.2.7

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 (405) hide show
  1. package/.eslintrc.js +16 -12
  2. package/.lintstagedrc.json +1 -1
  3. package/CHANGELOG.md +18 -0
  4. package/dist/cjs/assets/fonts/iconfont.ttf +0 -0
  5. package/dist/cjs/assets/fonts/iconfont.woff +0 -0
  6. package/dist/cjs/assets/fonts/iconfont.woff2 +0 -0
  7. package/dist/cjs/components/Avatar/Avatar.d.ts +4 -4
  8. package/dist/cjs/components/Checkbox/index.d.ts +2 -2
  9. package/dist/cjs/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -1
  10. package/dist/cjs/components/ConversationCreate/ConversationCreate.js +1 -1
  11. package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
  12. package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
  13. package/dist/cjs/components/ConversationPreview/ConversationListContainer.d.ts +2 -2
  14. package/dist/cjs/components/ConversationPreview/ConversationPreview.d.ts +8 -8
  15. package/dist/cjs/components/ConversationPreview/ConversationPreview.js +1 -1
  16. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.d.ts +2 -2
  17. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.js +1 -1
  18. package/dist/cjs/components/ConversationPreview/utils.js +1 -1
  19. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.d.ts +3 -3
  20. package/dist/cjs/components/ConversationSearch/ConversationSearchResult.js +1 -1
  21. package/dist/cjs/components/Icon/Icon.d.ts +3 -3
  22. package/dist/cjs/components/Icon/config.js +1 -1
  23. package/dist/cjs/components/Icon/images/video-call.svg.js +1 -0
  24. package/dist/cjs/components/Icon/images/voice-call.svg.js +1 -0
  25. package/dist/cjs/components/Icon/type.d.ts +3 -1
  26. package/dist/cjs/components/Icon/type.js +1 -1
  27. package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +4 -4
  28. package/dist/cjs/components/Input/Input.d.ts +4 -4
  29. package/dist/cjs/components/Model/index.d.ts +2 -2
  30. package/dist/cjs/components/Plugins/index.d.ts +4 -4
  31. package/dist/cjs/components/Popup/index.d.ts +2 -2
  32. package/dist/cjs/components/Switch/Switch.d.ts +2 -2
  33. package/dist/cjs/components/TUIChat/TUIChat.d.ts +15 -14
  34. package/dist/cjs/components/TUIChat/TUIChat.js +1 -1
  35. package/dist/cjs/components/TUIChat/TUIChatState.js +1 -1
  36. package/dist/cjs/components/TUIChat/index.js +1 -0
  37. package/dist/cjs/components/TUIChat/server.js +1 -0
  38. package/dist/cjs/components/TUIChat/utils.js +1 -0
  39. package/dist/cjs/components/TUIChatHeader/TUIChatHeader.d.ts +6 -5
  40. package/dist/cjs/components/TUIChatHeader/TUIChatHeader.js +1 -1
  41. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +6 -5
  42. package/dist/cjs/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
  43. package/dist/cjs/components/TUIContact/TUIContact.d.ts +3 -3
  44. package/dist/cjs/components/TUIContact/TUIContact.js +1 -1
  45. package/dist/cjs/components/TUIContact/TUIContactInfo/TUIContactInfo.d.ts +3 -3
  46. package/dist/cjs/components/TUIContact/TUIContactInfo/TUIContactInfo.js +1 -1
  47. package/dist/cjs/components/TUIContact/TUIContactInfo/basicInfo.js +1 -1
  48. package/dist/cjs/components/TUIContact/TUIContactInfo/blockInfo.js +1 -1
  49. package/dist/cjs/components/TUIContact/TUIContactInfo/friendApplication.js +1 -1
  50. package/dist/cjs/components/TUIContact/TUIContactInfo/friendInfo.js +1 -1
  51. package/dist/cjs/components/TUIContact/TUIContactInfo/groupInfo.js +1 -1
  52. package/dist/cjs/components/TUIContact/TUIContactInfo/hooks/useContactInfo.js +1 -1
  53. package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.d.ts +3 -3
  54. package/dist/cjs/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
  55. package/dist/cjs/components/TUIContact/hooks/useTUIContact.js +1 -1
  56. package/dist/cjs/components/TUIContactSearch/TUIContactSearch.js +1 -1
  57. package/dist/cjs/components/TUIContactSearch/hooks/useContactSearch.js +1 -1
  58. package/dist/cjs/components/TUIConversation/TUIConversation.d.ts +2 -2
  59. package/dist/cjs/components/TUIConversationList/TUIConversationList.d.ts +6 -6
  60. package/dist/cjs/components/TUIConversationList/TUIConversationList.js +1 -1
  61. package/dist/cjs/components/TUIConversationList/hooks/useConversationUpdate.js +1 -1
  62. package/dist/cjs/components/TUIManage/TUIManage.d.ts +2 -2
  63. package/dist/cjs/components/TUIManage/TUIManage.js +1 -1
  64. package/dist/cjs/components/TUIMessage/MessageAudio.js +1 -1
  65. package/dist/cjs/components/TUIMessage/MessageAvatar.js +1 -1
  66. package/dist/cjs/components/TUIMessage/MessageBubble.js +1 -1
  67. package/dist/cjs/components/TUIMessage/MessageContext.d.ts +2 -2
  68. package/dist/cjs/components/TUIMessage/MessageContext.js +1 -1
  69. package/dist/cjs/components/TUIMessage/MessageCustom.js +1 -1
  70. package/dist/cjs/components/TUIMessage/MessageName.js +1 -1
  71. package/dist/cjs/components/TUIMessage/MessagePlugins.d.ts +4 -4
  72. package/dist/cjs/components/TUIMessage/MessagePlugins.js +1 -1
  73. package/dist/cjs/components/TUIMessage/MessageProgress.js +1 -1
  74. package/dist/cjs/components/TUIMessage/MessageRevoke.js +1 -1
  75. package/dist/cjs/components/TUIMessage/MessageStatus.js +1 -1
  76. package/dist/cjs/components/TUIMessage/MessageSystem.js +1 -1
  77. package/dist/cjs/components/TUIMessage/MessageText.js +1 -1
  78. package/dist/cjs/components/TUIMessage/MessageTip.js +1 -1
  79. package/dist/cjs/components/TUIMessage/TUIMessage.d.ts +19 -19
  80. package/dist/cjs/components/TUIMessage/TUIMessage.js +1 -1
  81. package/dist/cjs/components/TUIMessage/TUIMessageDefault.js +1 -1
  82. package/dist/cjs/components/TUIMessage/hooks/useMessageHandler.js +1 -1
  83. package/dist/cjs/components/TUIMessage/hooks/useMessageReply.js +1 -1
  84. package/dist/cjs/components/TUIMessage/utils/index.js +1 -1
  85. package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.d.ts +2 -2
  86. package/dist/cjs/components/TUIMessageInput/InputPluginsDefalut.js +1 -1
  87. package/dist/cjs/components/TUIMessageInput/InputQuoteDefalut.js +1 -1
  88. package/dist/cjs/components/TUIMessageInput/TUIForward.js +1 -1
  89. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.d.ts +7 -7
  90. package/dist/cjs/components/TUIMessageInput/TUIMessageInput.js +1 -1
  91. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.d.ts +2 -2
  92. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
  93. package/dist/cjs/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
  94. package/dist/cjs/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -1
  95. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
  96. package/dist/cjs/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
  97. package/dist/cjs/components/TUIMessageList/TUIMessageList.d.ts +2 -2
  98. package/dist/cjs/components/TUIMessageList/TUIMessageList.js +1 -1
  99. package/dist/cjs/components/TUIMessageList/hooks/useMessageListElement.js +1 -1
  100. package/dist/cjs/components/TUIProfile/TUIProfile.d.ts +3 -3
  101. package/dist/cjs/components/TUIProfile/TUIProfile.js +1 -1
  102. package/dist/cjs/components/TUIProfile/TUIProfileDefault.d.ts +2 -2
  103. package/dist/cjs/components/TUIProfile/TUIProfileDefault.js +1 -1
  104. package/dist/cjs/components/Toast/index.d.ts +2 -2
  105. package/dist/cjs/components/{untils.js → utils.js} +1 -1
  106. package/dist/cjs/context/ComponentContext.d.ts +12 -12
  107. package/dist/cjs/context/LanguageContext.js +1 -0
  108. package/dist/cjs/context/TUIChatActionContext.d.ts +5 -4
  109. package/dist/cjs/context/TUIChatStateContext.d.ts +5 -5
  110. package/dist/cjs/context/TUIContactContext.d.ts +4 -4
  111. package/dist/cjs/context/TUIConversationContext.js +1 -1
  112. package/dist/cjs/context/TUIMessageContext.d.ts +17 -17
  113. package/dist/cjs/context/TUIMessageInputContext.d.ts +4 -4
  114. package/dist/cjs/context/ThemeContext.js +1 -0
  115. package/dist/cjs/context/UIKitContext.d.ts +25 -0
  116. package/dist/cjs/context/UIKitContext.js +1 -0
  117. package/dist/cjs/context/UIManagerContext.d.ts +46 -0
  118. package/dist/cjs/context/UIManagerContext.js +1 -0
  119. package/dist/cjs/hooks/useConversation.d.ts +2 -2
  120. package/dist/cjs/index.css +1 -2
  121. package/dist/cjs/index.d.css +1345 -1547
  122. package/dist/cjs/index.d.ts +2 -4
  123. package/dist/cjs/index.js +1 -1
  124. package/dist/cjs/locales/en-US/index.js +1 -1
  125. package/dist/cjs/locales/index.js +1 -1
  126. package/dist/cjs/locales/zh-CN/index.js +1 -1
  127. package/dist/cjs/locales/zh-TW/TUIChat.js +1 -0
  128. package/dist/cjs/locales/zh-TW/TUIContact.js +1 -0
  129. package/dist/cjs/locales/zh-TW/TUIConversation.js +1 -0
  130. package/dist/cjs/locales/zh-TW/TUIProfile.js +1 -0
  131. package/dist/cjs/locales/zh-TW/index.js +1 -0
  132. package/dist/esm/assets/fonts/iconfont.ttf +0 -0
  133. package/dist/esm/assets/fonts/iconfont.woff +0 -0
  134. package/dist/esm/assets/fonts/iconfont.woff2 +0 -0
  135. package/dist/esm/components/Avatar/Avatar.d.ts +4 -4
  136. package/dist/esm/components/Checkbox/index.d.ts +2 -2
  137. package/dist/esm/components/ConversationCreate/ConversationCreatGroupDetail.js +1 -1
  138. package/dist/esm/components/ConversationCreate/ConversationCreate.js +1 -1
  139. package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +1 -1
  140. package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +1 -1
  141. package/dist/esm/components/ConversationPreview/ConversationListContainer.d.ts +2 -2
  142. package/dist/esm/components/ConversationPreview/ConversationPreview.d.ts +8 -8
  143. package/dist/esm/components/ConversationPreview/ConversationPreview.js +1 -1
  144. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.d.ts +2 -2
  145. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.js +1 -1
  146. package/dist/esm/components/ConversationPreview/utils.js +1 -1
  147. package/dist/esm/components/ConversationSearch/ConversationSearchResult.d.ts +3 -3
  148. package/dist/esm/components/ConversationSearch/ConversationSearchResult.js +1 -1
  149. package/dist/esm/components/Icon/Icon.d.ts +3 -3
  150. package/dist/esm/components/Icon/config.js +1 -1
  151. package/dist/esm/components/Icon/images/video-call.svg.js +1 -0
  152. package/dist/esm/components/Icon/images/voice-call.svg.js +1 -0
  153. package/dist/esm/components/Icon/type.d.ts +3 -1
  154. package/dist/esm/components/Icon/type.js +1 -1
  155. package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +4 -4
  156. package/dist/esm/components/Input/Input.d.ts +4 -4
  157. package/dist/esm/components/Model/index.d.ts +2 -2
  158. package/dist/esm/components/Plugins/index.d.ts +4 -4
  159. package/dist/esm/components/Popup/index.d.ts +2 -2
  160. package/dist/esm/components/Switch/Switch.d.ts +2 -2
  161. package/dist/esm/components/TUIChat/TUIChat.d.ts +15 -14
  162. package/dist/esm/components/TUIChat/TUIChat.js +1 -1
  163. package/dist/esm/components/TUIChat/TUIChatState.js +1 -1
  164. package/dist/esm/components/TUIChat/index.js +1 -0
  165. package/dist/esm/components/TUIChat/server.js +1 -0
  166. package/dist/esm/components/TUIChat/utils.js +1 -0
  167. package/dist/esm/components/TUIChatHeader/TUIChatHeader.d.ts +6 -5
  168. package/dist/esm/components/TUIChatHeader/TUIChatHeader.js +1 -1
  169. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.d.ts +6 -5
  170. package/dist/esm/components/TUIChatHeader/TUIChatHeaderDefault.js +1 -1
  171. package/dist/esm/components/TUIContact/TUIContact.d.ts +3 -3
  172. package/dist/esm/components/TUIContact/TUIContact.js +1 -1
  173. package/dist/esm/components/TUIContact/TUIContactInfo/TUIContactInfo.d.ts +3 -3
  174. package/dist/esm/components/TUIContact/TUIContactInfo/TUIContactInfo.js +1 -1
  175. package/dist/esm/components/TUIContact/TUIContactInfo/basicInfo.js +1 -1
  176. package/dist/esm/components/TUIContact/TUIContactInfo/blockInfo.js +1 -1
  177. package/dist/esm/components/TUIContact/TUIContactInfo/friendApplication.js +1 -1
  178. package/dist/esm/components/TUIContact/TUIContactInfo/friendInfo.js +1 -1
  179. package/dist/esm/components/TUIContact/TUIContactInfo/groupInfo.js +1 -1
  180. package/dist/esm/components/TUIContact/TUIContactInfo/hooks/useContactInfo.js +1 -1
  181. package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.d.ts +3 -3
  182. package/dist/esm/components/TUIContact/TUIContactList/TUIContactList.js +1 -1
  183. package/dist/esm/components/TUIContact/hooks/useTUIContact.js +1 -1
  184. package/dist/esm/components/TUIContactSearch/TUIContactSearch.js +1 -1
  185. package/dist/esm/components/TUIContactSearch/hooks/useContactSearch.js +1 -1
  186. package/dist/esm/components/TUIConversation/TUIConversation.d.ts +2 -2
  187. package/dist/esm/components/TUIConversationList/TUIConversationList.d.ts +6 -6
  188. package/dist/esm/components/TUIConversationList/TUIConversationList.js +1 -1
  189. package/dist/esm/components/TUIConversationList/hooks/useConversationUpdate.js +1 -1
  190. package/dist/esm/components/TUIManage/TUIManage.d.ts +2 -2
  191. package/dist/esm/components/TUIManage/TUIManage.js +1 -1
  192. package/dist/esm/components/TUIMessage/MessageAudio.js +1 -1
  193. package/dist/esm/components/TUIMessage/MessageAvatar.js +1 -1
  194. package/dist/esm/components/TUIMessage/MessageBubble.js +1 -1
  195. package/dist/esm/components/TUIMessage/MessageContext.d.ts +2 -2
  196. package/dist/esm/components/TUIMessage/MessageContext.js +1 -1
  197. package/dist/esm/components/TUIMessage/MessageCustom.js +1 -1
  198. package/dist/esm/components/TUIMessage/MessageName.js +1 -1
  199. package/dist/esm/components/TUIMessage/MessagePlugins.d.ts +4 -4
  200. package/dist/esm/components/TUIMessage/MessagePlugins.js +1 -1
  201. package/dist/esm/components/TUIMessage/MessageProgress.js +1 -1
  202. package/dist/esm/components/TUIMessage/MessageRevoke.js +1 -1
  203. package/dist/esm/components/TUIMessage/MessageStatus.js +1 -1
  204. package/dist/esm/components/TUIMessage/MessageSystem.js +1 -1
  205. package/dist/esm/components/TUIMessage/MessageText.js +1 -1
  206. package/dist/esm/components/TUIMessage/MessageTip.js +1 -1
  207. package/dist/esm/components/TUIMessage/TUIMessage.d.ts +19 -19
  208. package/dist/esm/components/TUIMessage/TUIMessage.js +1 -1
  209. package/dist/esm/components/TUIMessage/TUIMessageDefault.js +1 -1
  210. package/dist/esm/components/TUIMessage/hooks/useMessageHandler.js +1 -1
  211. package/dist/esm/components/TUIMessage/hooks/useMessageReply.js +1 -1
  212. package/dist/esm/components/TUIMessage/utils/index.js +1 -1
  213. package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.d.ts +2 -2
  214. package/dist/esm/components/TUIMessageInput/InputPluginsDefalut.js +1 -1
  215. package/dist/esm/components/TUIMessageInput/InputQuoteDefalut.js +1 -1
  216. package/dist/esm/components/TUIMessageInput/TUIForward.js +1 -1
  217. package/dist/esm/components/TUIMessageInput/TUIMessageInput.d.ts +7 -7
  218. package/dist/esm/components/TUIMessageInput/TUIMessageInput.js +1 -1
  219. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.d.ts +2 -2
  220. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
  221. package/dist/esm/components/TUIMessageInput/hooks/useHandleForwardMessage.js +1 -1
  222. package/dist/esm/components/TUIMessageInput/hooks/useHandleQuoteMessage.js +1 -1
  223. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
  224. package/dist/esm/components/TUIMessageInput/hooks/useUploadPicker.js +1 -1
  225. package/dist/esm/components/TUIMessageList/TUIMessageList.d.ts +2 -2
  226. package/dist/esm/components/TUIMessageList/TUIMessageList.js +1 -1
  227. package/dist/esm/components/TUIMessageList/hooks/useMessageListElement.js +1 -1
  228. package/dist/esm/components/TUIProfile/TUIProfile.d.ts +3 -3
  229. package/dist/esm/components/TUIProfile/TUIProfile.js +1 -1
  230. package/dist/esm/components/TUIProfile/TUIProfileDefault.d.ts +2 -2
  231. package/dist/esm/components/TUIProfile/TUIProfileDefault.js +1 -1
  232. package/dist/esm/components/Toast/index.d.ts +2 -2
  233. package/dist/esm/components/utils.js +1 -0
  234. package/dist/esm/context/ComponentContext.d.ts +12 -12
  235. package/dist/esm/context/LanguageContext.js +1 -0
  236. package/dist/esm/context/TUIChatActionContext.d.ts +5 -4
  237. package/dist/esm/context/TUIChatStateContext.d.ts +5 -5
  238. package/dist/esm/context/TUIContactContext.d.ts +4 -4
  239. package/dist/esm/context/TUIConversationContext.js +1 -1
  240. package/dist/esm/context/TUIMessageContext.d.ts +17 -17
  241. package/dist/esm/context/TUIMessageInputContext.d.ts +4 -4
  242. package/dist/esm/context/ThemeContext.js +1 -0
  243. package/dist/esm/context/UIKitContext.d.ts +25 -0
  244. package/dist/esm/context/UIKitContext.js +1 -0
  245. package/dist/esm/context/UIManagerContext.d.ts +46 -0
  246. package/dist/esm/context/UIManagerContext.js +1 -0
  247. package/dist/esm/hooks/useConversation.d.ts +2 -2
  248. package/dist/esm/index.css +1 -2
  249. package/dist/esm/index.d.css +1345 -1547
  250. package/dist/esm/index.d.ts +2 -4
  251. package/dist/esm/index.js +1 -1
  252. package/dist/esm/locales/en-US/index.js +1 -1
  253. package/dist/esm/locales/index.js +1 -1
  254. package/dist/esm/locales/zh-CN/index.js +1 -1
  255. package/dist/esm/locales/zh-TW/TUIChat.js +1 -0
  256. package/dist/esm/locales/zh-TW/TUIContact.js +1 -0
  257. package/dist/esm/locales/zh-TW/TUIConversation.js +1 -0
  258. package/dist/esm/locales/zh-TW/TUIProfile.js +1 -0
  259. package/dist/esm/locales/zh-TW/index.js +1 -0
  260. package/package.json +5 -3
  261. package/rollup.config.js +1 -1
  262. package/src/assets/fonts/iconfont.ttf +0 -0
  263. package/src/assets/fonts/iconfont.woff +0 -0
  264. package/src/assets/fonts/iconfont.woff2 +0 -0
  265. package/src/components/Avatar/styles/index.scss +11 -4
  266. package/src/components/Checkbox/styles/color.scss +17 -6
  267. package/src/components/ConversationCreate/ConversationCreatGroupDetail.tsx +4 -4
  268. package/src/components/ConversationCreate/ConversationCreate.tsx +2 -2
  269. package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +3 -2
  270. package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +5 -5
  271. package/src/components/ConversationCreate/styles/ConversationCreatGroupDetail.scss +7 -16
  272. package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +13 -8
  273. package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +20 -21
  274. package/src/components/ConversationCreate/styles/index.scss +30 -17
  275. package/src/components/ConversationPreview/ConversationPreview.tsx +21 -21
  276. package/src/components/ConversationPreview/ConversationPreviewContent.tsx +4 -2
  277. package/src/components/ConversationPreview/styles/index.scss +20 -20
  278. package/src/components/ConversationPreview/utils.tsx +3 -2
  279. package/src/components/DivWithEdit/styles/index.scss +30 -10
  280. package/src/components/Icon/config.ts +14 -4
  281. package/src/components/Icon/images/video-call.svg +3 -0
  282. package/src/components/Icon/images/voice-call.svg +3 -0
  283. package/src/components/Icon/type.ts +2 -0
  284. package/src/components/Input/styles/index.scss +22 -6
  285. package/src/components/Plugins/styles/color.scss +3 -11
  286. package/src/components/Profile/styles/index.scss +12 -3
  287. package/src/components/TUIChat/TUIChat.tsx +40 -35
  288. package/src/components/TUIChat/TUIChatState.tsx +41 -41
  289. package/src/components/TUIChat/index.ts +3 -0
  290. package/src/components/TUIChat/server.ts +44 -0
  291. package/src/components/TUIChat/styles/layout.scss +7 -2
  292. package/src/components/TUIChat/utils.ts +72 -0
  293. package/src/components/TUIChatHeader/TUIChatHeader.tsx +10 -7
  294. package/src/components/TUIChatHeader/TUIChatHeaderDefault.tsx +74 -31
  295. package/src/components/TUIChatHeader/styles/layout.scss +16 -9
  296. package/src/components/TUIContact/TUIContact.tsx +2 -2
  297. package/src/components/TUIContact/TUIContactInfo/TUIContactInfo.tsx +2 -2
  298. package/src/components/TUIContact/TUIContactInfo/basicInfo.tsx +2 -2
  299. package/src/components/TUIContact/TUIContactInfo/blockInfo.tsx +2 -2
  300. package/src/components/TUIContact/TUIContactInfo/friendApplication.tsx +2 -2
  301. package/src/components/TUIContact/TUIContactInfo/friendInfo.tsx +4 -3
  302. package/src/components/TUIContact/TUIContactInfo/groupInfo.tsx +3 -3
  303. package/src/components/TUIContact/TUIContactInfo/hooks/useContactInfo.tsx +2 -2
  304. package/src/components/TUIContact/TUIContactInfo/index.scss +44 -21
  305. package/src/components/TUIContact/TUIContactList/TUIContactList.tsx +80 -76
  306. package/src/components/TUIContact/TUIContactList/index.scss +40 -20
  307. package/src/components/TUIContact/hooks/useTUIContact.tsx +5 -5
  308. package/src/components/TUIContact/index.scss +30 -11
  309. package/src/components/TUIContactSearch/TUIContactSearch.tsx +2 -2
  310. package/src/components/TUIContactSearch/hooks/useContactSearch.tsx +2 -2
  311. package/src/components/TUIContactSearch/index.scss +12 -3
  312. package/src/components/TUIConversationList/TUIConversationList.tsx +3 -4
  313. package/src/components/TUIConversationList/hooks/useConversationUpdate.tsx +2 -2
  314. package/src/components/TUIConversationList/index.scss +3 -4
  315. package/src/components/TUIManage/TUIManage.tsx +3 -3
  316. package/src/components/TUIManage/styles/index.scss +20 -14
  317. package/src/components/TUIMessage/MessageAvatar.tsx +7 -7
  318. package/src/components/TUIMessage/MessageBubble.tsx +22 -21
  319. package/src/components/TUIMessage/MessageCustom.tsx +26 -5
  320. package/src/components/TUIMessage/MessageStatus.tsx +7 -7
  321. package/src/components/TUIMessage/MessageText.tsx +16 -15
  322. package/src/components/TUIMessage/hooks/useMessageHandler.ts +8 -8
  323. package/src/components/TUIMessage/hooks/useMessageReply.ts +8 -7
  324. package/src/components/TUIMessage/styles/color.scss +6 -5
  325. package/src/components/TUIMessage/styles/layout.scss +111 -42
  326. package/src/components/TUIMessage/utils/index.ts +23 -12
  327. package/src/components/TUIMessageInput/InputPluginsDefalut.tsx +12 -12
  328. package/src/components/TUIMessageInput/TUIMessageInput.tsx +1 -1
  329. package/src/components/TUIMessageInput/hooks/useHandleForwardMessage.tsx +7 -6
  330. package/src/components/TUIMessageInput/hooks/useMessageInputText.tsx +14 -14
  331. package/src/components/TUIMessageInput/hooks/useUploadPicker.tsx +4 -4
  332. package/src/components/TUIMessageInput/styles/color.scss +15 -11
  333. package/src/components/TUIMessageInput/styles/layout.scss +33 -17
  334. package/src/components/TUIMessageList/hooks/useMessageListElement.tsx +15 -11
  335. package/src/components/TUIMessageList/styles/layout.scss +16 -9
  336. package/src/components/TUIProfile/TUIProfile.tsx +3 -3
  337. package/src/components/TUIProfile/TUIProfileDefault.tsx +14 -13
  338. package/src/components/TUIProfile/styles/color.scss +6 -5
  339. package/src/components/TUIProfile/styles/layout.scss +16 -14
  340. package/src/components/index.ts +0 -1
  341. package/src/components/{untils.ts → utils.ts} +5 -4
  342. package/src/context/LanguageContext.tsx +60 -0
  343. package/src/context/TUIChatActionContext.tsx +14 -13
  344. package/src/context/ThemeContext.tsx +68 -0
  345. package/src/context/UIKitContext.tsx +76 -0
  346. package/src/context/UIManagerContext.tsx +163 -0
  347. package/src/context/index.ts +3 -2
  348. package/src/locales/en-US/index.ts +0 -3
  349. package/src/locales/index.ts +6 -2
  350. package/src/locales/zh-CN/index.ts +0 -2
  351. package/src/locales/zh-TW/TUIChat.ts +27 -0
  352. package/src/locales/zh-TW/TUIContact.ts +29 -0
  353. package/src/locales/zh-TW/TUIConversation.ts +32 -0
  354. package/src/locales/zh-TW/TUIProfile.ts +15 -0
  355. package/src/locales/zh-TW/index.ts +11 -0
  356. package/src/styles/colors/_color-dark.scss +31 -21
  357. package/src/styles/colors/_color-light.scss +31 -21
  358. package/src/styles/colors/_color-theme.scss +33 -22
  359. package/src/styles/normalize.scss +6 -0
  360. package/dist/cjs/components/Icon/images/chats-selected.svg.js +0 -1
  361. package/dist/cjs/components/Icon/images/chats.svg.js +0 -1
  362. package/dist/cjs/components/Icon/images/contacts-selected.svg.js +0 -1
  363. package/dist/cjs/components/Icon/images/contacts.svg.js +0 -1
  364. package/dist/cjs/components/Icon/images/down-arrow.png.js +0 -1
  365. package/dist/cjs/components/Icon/images/right-arrow.svg.js +0 -1
  366. package/dist/cjs/components/TUIChat/unitls.js +0 -1
  367. package/dist/cjs/components/TUIKit/TUIKit.d.ts +0 -12
  368. package/dist/cjs/components/TUIKit/TUIKit.js +0 -1
  369. package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +0 -21
  370. package/dist/cjs/components/TUIKit/hooks/useCreateTUIKitContext.js +0 -1
  371. package/dist/cjs/components/TUIKit/hooks/useTUIKit.d.ts +0 -43
  372. package/dist/cjs/components/TUIKit/hooks/useTUIKit.js +0 -1
  373. package/dist/cjs/context/TUIKitContext.d.ts +0 -25
  374. package/dist/cjs/context/TUIKitContext.js +0 -1
  375. package/dist/esm/components/Icon/images/chats-selected.svg.js +0 -1
  376. package/dist/esm/components/Icon/images/chats.svg.js +0 -1
  377. package/dist/esm/components/Icon/images/contacts-selected.svg.js +0 -1
  378. package/dist/esm/components/Icon/images/contacts.svg.js +0 -1
  379. package/dist/esm/components/Icon/images/down-arrow.png.js +0 -1
  380. package/dist/esm/components/Icon/images/right-arrow.svg.js +0 -1
  381. package/dist/esm/components/TUIChat/unitls.js +0 -1
  382. package/dist/esm/components/TUIKit/TUIKit.d.ts +0 -12
  383. package/dist/esm/components/TUIKit/TUIKit.js +0 -1
  384. package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.d.ts +0 -21
  385. package/dist/esm/components/TUIKit/hooks/useCreateTUIKitContext.js +0 -1
  386. package/dist/esm/components/TUIKit/hooks/useTUIKit.d.ts +0 -43
  387. package/dist/esm/components/TUIKit/hooks/useTUIKit.js +0 -1
  388. package/dist/esm/components/untils.js +0 -1
  389. package/dist/esm/context/TUIKitContext.d.ts +0 -25
  390. package/dist/esm/context/TUIKitContext.js +0 -1
  391. package/scripts/publish-github.js +0 -60
  392. package/scripts/publish-intl-demo.js +0 -14
  393. package/scripts/publish-intl-experience-demo.js +0 -14
  394. package/src/components/TUIChat/unitls.ts +0 -39
  395. package/src/components/TUIKit/TUIKit.tsx +0 -229
  396. package/src/components/TUIKit/hooks/useCreateTUIKitContext.tsx +0 -48
  397. package/src/components/TUIKit/hooks/useTUIKit.tsx +0 -99
  398. package/src/components/TUIKit/index.ts +0 -3
  399. package/src/components/TUIKit/styles/h5.scss +0 -34
  400. package/src/components/TUIKit/styles/index.scss +0 -132
  401. package/src/context/TUIKitContext.tsx +0 -44
  402. package/src/locales/en-US/TUIGlobal.ts +0 -6
  403. package/src/locales/ja-JP/TUIGlobal.ts +0 -6
  404. package/src/locales/ko-KR/TUIGlobal.ts +0 -6
  405. package/src/locales/zh-CN/TUIGlobal.ts +0 -6
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useEffect } from 'react';
2
- import { Conversation } from '@tencentcloud/chat';
3
- import { TUIKitContextValue, useTUIKitContext } from '../../context';
2
+ import type { Conversation } from '@tencentcloud/chat';
3
+ import { useUIKit, useUIManager } from '../../context';
4
4
  import { ConversationPreviewContent } from './ConversationPreviewContent';
5
5
  import { AvatarProps } from '../Avatar';
6
6
 
@@ -8,34 +8,34 @@ import {
8
8
  getDisplayImage, getDisplayMessage, getDisplayTitle, getDisplayTime,
9
9
  } from './utils';
10
10
 
11
- export interface ConversationPreviewUIComponentProps extends ConversationPreviewProps{
11
+ export interface ConversationPreviewUIComponentProps extends ConversationPreviewProps {
12
12
  /** If the component's Conversation is the active (selected) Conversation */
13
- active?: boolean,
13
+ active?: boolean;
14
14
  /** Image of Conversation to display */
15
- displayImage?: string,
15
+ displayImage?: string;
16
16
  /** Title of Conversation to display */
17
- displayTitle?: string | React.ReactElement,
17
+ displayTitle?: string | React.ReactElement;
18
18
  /** Message of Conversation to display */
19
- displayMessage?: string | React.ReactElement,
19
+ displayMessage?: string | React.ReactElement;
20
20
  /** Time of Conversation to display */
21
- displayTime?: string,
21
+ displayTime?: string;
22
22
  /** Number of unread Messages */
23
- unread?: number,
23
+ unread?: number;
24
24
  }
25
25
  export interface ConversationPreviewProps {
26
- conversation: Conversation,
27
- activeConversation?: Conversation,
28
- Preview?: React.ComponentType<ConversationPreviewUIComponentProps>,
29
- Avatar?: React.ComponentType<AvatarProps>
30
- setActiveConversation?: TUIKitContextValue['setActiveConversation'],
31
- searchValue?: string,
32
- conversationUpdateCount?: number
33
- activeConversationID?: string,
34
- setActiveConversationID?: (conversationID: string) => void,
26
+ conversation: Conversation;
27
+ activeConversation?: Conversation;
28
+ Preview?: React.ComponentType<ConversationPreviewUIComponentProps>;
29
+ Avatar?: React.ComponentType<AvatarProps>;
30
+ setActiveConversation?: (conversation: Conversation | undefined) => void;
31
+ searchValue?: string;
32
+ conversationUpdateCount?: number;
33
+ activeConversationID?: string;
34
+ setActiveConversationID?: (conversationID: string) => void;
35
35
  }
36
36
  export function ConversationPreview<T extends ConversationPreviewProps>(
37
37
  props: T,
38
- ):React.ReactElement {
38
+ ) {
39
39
  const {
40
40
  activeConversation,
41
41
  conversation,
@@ -43,11 +43,11 @@ export function ConversationPreview<T extends ConversationPreviewProps>(
43
43
  searchValue,
44
44
  conversationUpdateCount,
45
45
  } = props;
46
- const { language } = useTUIKitContext('TUIConversation');
46
+ const { language } = useUIKit();
47
47
  const {
48
48
  setActiveConversation,
49
49
  myProfile,
50
- } = useTUIKitContext('ConversationPreview');
50
+ } = useUIManager('ConversationPreview');
51
51
  const [displayImage, setDisplayImage] = useState(getDisplayImage(conversation));
52
52
  const [displayTitle, setDisplayTitle] = useState(getDisplayTitle(conversation, searchValue));
53
53
  const [displayMessage, setDisplayMessage] = useState(myProfile && getDisplayMessage(conversation, myProfile, language));
@@ -10,7 +10,7 @@ import './styles/index.scss';
10
10
  import { Icon, IconTypes } from '../Icon';
11
11
  import { Plugins } from '../Plugins';
12
12
  import { useConversation } from '../../hooks';
13
- import { useTUIKitContext } from '../../context';
13
+ import { useUIKit, useUIManager } from '../../context';
14
14
 
15
15
  export interface IPluginsRef {
16
16
  closeMore?: () => void,
@@ -34,7 +34,8 @@ export function unMemoConversationPreviewContent<T extends ConversationPreviewUI
34
34
 
35
35
  const { t } = useTranslation();
36
36
  const conversationPreviewButton = useRef<HTMLButtonElement | null>(null);
37
- const { chat, conversation: activeConversation } = useTUIKitContext('ConversationPreviewContent');
37
+ const { chat } = useUIKit();
38
+ const { conversation: activeConversation } = useUIManager('ConversationPreviewContent');
38
39
  const { pinConversation, deleteConversation } = useConversation(chat);
39
40
  const activeClass = active ? 'conversation-preview-content--active' : '';
40
41
  const unreadClass = unread && unread >= 1 ? 'conversation-preview-content--unread' : '';
@@ -123,6 +124,7 @@ export function unMemoConversationPreviewContent<T extends ConversationPreviewUI
123
124
  onTouchStart={() => handleH5LongPress('touchstart')}
124
125
  onTouchEnd={() => handleH5LongPress('touchend')}
125
126
  ref={conversationPreviewButton}
127
+ id={conversation.conversationID}
126
128
  >
127
129
  <div className="avatar">
128
130
  <Avatar image={displayImage} name={displayTitle} size={40} />
@@ -16,7 +16,7 @@
16
16
  padding: 0 20px;
17
17
 
18
18
  @include theme() {
19
- background-color: get(bg-primary);
19
+ background-color: get(bg-color-operate);
20
20
  }
21
21
 
22
22
  .content {
@@ -35,7 +35,7 @@
35
35
  width: 100%;
36
36
 
37
37
  @include theme() {
38
- color: get(text-primary);
38
+ color: get(text-color-primary);
39
39
  }
40
40
  }
41
41
 
@@ -51,14 +51,14 @@
51
51
  padding: 1px 0;
52
52
 
53
53
  @include theme() {
54
- color: get(text-secondary);
54
+ color: get(text-color-secondary);
55
55
  }
56
56
  }
57
57
  }
58
58
 
59
59
  .external {
60
60
  text-align: right;
61
- flex: 0 1 auto;
61
+ flex: 0 0 auto;
62
62
  display: flex;
63
63
  flex-direction: column;
64
64
 
@@ -76,7 +76,7 @@
76
76
  padding: 1px 0;
77
77
 
78
78
  @include theme() {
79
- color: get(text-secondary);
79
+ color: get(text-color-secondary);
80
80
  }
81
81
  }
82
82
 
@@ -84,22 +84,25 @@
84
84
  display: flex;
85
85
  justify-content: flex-end;
86
86
  flex: 1 1;
87
+
87
88
  .icon-more {
88
89
  transform: scale(1.5);
89
- &:hover {
90
- }
91
90
  }
92
91
 
93
92
  .more-handle-box {
94
93
  top: 0;
95
94
  right: 0;
96
- box-shadow: 0 0 10px rgba(0, 0, 0, .1);
97
95
  bottom: initial;
98
96
  padding: 14px 0;
99
97
  box-sizing: border-box;
100
98
  text-align: start;
101
99
  white-space: nowrap;
102
100
 
101
+ @include theme() {
102
+ background-color: get(dropdown-color-default);
103
+ box-shadow: 0 0 10px get(shadow-color);
104
+ }
105
+
103
106
  .more-handle-item {
104
107
  font-size: 16px;
105
108
  font-family: PingFangSC-Medium;
@@ -109,15 +112,19 @@
109
112
  font-weight: 500;
110
113
  box-sizing: border-box;
111
114
 
115
+ @include theme() {
116
+ color: get(text-color-primary);
117
+ }
118
+
112
119
  &.delete {
113
120
  @include theme() {
114
- color: get(status-danger);
121
+ color: get(text-color-error);
115
122
  }
116
123
  }
117
124
 
118
125
  &:hover {
119
126
  @include theme() {
120
- background-color: get(bg-active);
127
+ background-color: get(dropdown-color-hover);
121
128
  }
122
129
  }
123
130
  }
@@ -127,7 +134,7 @@
127
134
 
128
135
  &:hover {
129
136
  @include theme() {
130
- background-color: get(bg-active);
137
+ background-color: get(list-color-hover);
131
138
  }
132
139
  }
133
140
 
@@ -139,19 +146,12 @@
139
146
 
140
147
  &.conversation-preview-content--active {
141
148
  @include theme() {
142
- background-color: get(bg-active);
143
- }
144
-
145
- .title {
146
- @include theme() {
147
- color: get(status-info);
148
- }
149
+ background-color: get(list-color-active);
149
150
  }
150
151
  }
151
152
 
152
153
  &.conversation-preview-content--unread {
153
154
  .unread {
154
- width: 16px;
155
155
  height: 13px;
156
156
  border-radius: 16px;
157
157
  display: flex;
@@ -164,7 +164,7 @@
164
164
  color: #fff;
165
165
 
166
166
  @include theme() {
167
- background-color: get(status-danger);
167
+ background-color: get(text-color-error);
168
168
  }
169
169
  }
170
170
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import TencentCloudChat, { Conversation, Group, Profile } from '@tencentcloud/chat';
3
3
  import { defaultGroupAvatarWork, defaultUserAvatar } from '../Avatar';
4
4
  import { formatEmojiString } from '../TUIMessage/utils/emojiMap';
5
- import { getTimeStamp } from '../untils';
5
+ import { getTimeStamp } from '../utils';
6
6
 
7
7
  interface TProfile extends Profile, Group {}
8
8
  export const getMessageProfile = (conversation: Conversation): TProfile => {
@@ -55,7 +55,8 @@ export const getDisplayTitle = (
55
55
  (textItem.toLowerCase() === searchValue.toLowerCase())
56
56
  ? (
57
57
  <span key={index} style={{ color: highlightColor }}>{textItem}</span>
58
- ) : (
58
+ )
59
+ : (
59
60
  <span key={index}>{textItem}</span>
60
61
  ),
61
62
  )}
@@ -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
+ }
@@ -41,19 +41,21 @@ 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 IconVideoCallUrl from './images/video-call.svg';
45
+ import IconVoiceCallUrl from './images/voice-call.svg';
44
46
 
45
47
  import { IconTypes } from './type';
46
48
 
47
49
  interface IconConfigItem {
48
- url: string,
49
- className: string,
50
+ url: string;
51
+ className: string;
50
52
  }
51
53
 
52
54
  interface IconConfig {
53
- [propName: string]: IconConfigItem
55
+ [propName: string]: IconConfigItem;
54
56
  }
55
57
 
56
- export const ICON_CONFIG:IconConfig = {
58
+ export const ICON_CONFIG: IconConfig = {
57
59
  [IconTypes.MORE]: {
58
60
  url: IconMoreUrl,
59
61
  className: 'tui-kit-icon-more',
@@ -230,4 +232,12 @@ export const ICON_CONFIG:IconConfig = {
230
232
  url: IconAddCircleUrl,
231
233
  className: 'tui-kit-icon-add-friend',
232
234
  },
235
+ [IconTypes.VIDEOCALL]: {
236
+ url: IconVideoCallUrl,
237
+ className: 'tui-kit-icon-video-call',
238
+ },
239
+ [IconTypes.VOICECALL]: {
240
+ url: IconVoiceCallUrl,
241
+ className: 'tui-kit-icon-voice-call',
242
+ },
233
243
  };
@@ -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>
@@ -43,4 +43,6 @@ export enum IconTypes {
43
43
  UNVECTOR = 'unvector',
44
44
  VOICE = 'voice',
45
45
  ADDFRIEND = 'addFriend',
46
+ VIDEOCALL = 'videoCall',
47
+ VOICECALL = 'voiceCall',
46
48
  }
@@ -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
  }
@@ -3,19 +3,11 @@
3
3
  .plugin-popup {
4
4
  &-box {
5
5
  border-radius: 16px;
6
+ overflow: hidden;
6
7
 
7
8
  @include theme() {
8
- color: get(text-primary);
9
- }
10
-
11
- [data-chat-theme="light"] & {
12
- background-color: var(--chat-theme-light-bg-primary);
13
- box-shadow: var(--chat-theme-light-box-shadow-1);
14
- }
15
-
16
- [data-chat-theme="dark"] & {
17
- background-color: var(--chat-theme-dark-bg-3);
18
- box-shadow: var(--chat-theme-dark-box-shadow-1);
9
+ background-color: get(dropdown-color-default);
10
+ box-shadow: 0 0 10px 0 get(shadow-color);
19
11
  }
20
12
  }
21
13
  }
@@ -1,16 +1,21 @@
1
+ @use "../../../styles/colors/color-theme" as *;
2
+
1
3
  .profile {
2
- font-family: PingFangSC-Medium;
3
- background: #F9FAFB;
4
4
  display: flex;
5
5
  flex-direction: row;
6
6
  justify-content: space-between;
7
7
  align-items: center;
8
8
  padding: 16px 20px;
9
+
10
+ @include theme() {
11
+ background-color: get(bg-color-operate);
12
+ }
13
+
9
14
  .profile-content {
10
15
  display: flex;
11
16
  align-items: center;
17
+
12
18
  .profile-name {
13
- font-family: PingFangSC-Medium;
14
19
  font-weight: 600;
15
20
  margin-left: 10px;
16
21
  font-size: 14px;
@@ -18,6 +23,10 @@
18
23
  white-space: nowrap;
19
24
  max-width: 200px;
20
25
  overflow: hidden;
26
+
27
+ @include theme() {
28
+ color: get(text-color-primary);
29
+ }
21
30
  }
22
31
  }
23
32
  }