@tencentcloud/chat-uikit-react 2.3.1 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1108) hide show
  1. package/.eslintrc.cjs +49 -0
  2. package/.stylelintrc.cjs +19 -0
  3. package/CHANGELOG.md +20 -1
  4. package/README.md +11 -8
  5. package/ci/install-nvm-node18.sh +117 -0
  6. package/dist/ChatSetting-79tDbXT3.js +28512 -0
  7. package/dist/assets/fonts/iconfont.ttf +0 -0
  8. package/dist/assets/fonts/iconfont.woff +0 -0
  9. package/dist/assets/fonts/iconfont.woff2 +0 -0
  10. package/dist/components/Chat/Chat.d.ts +11 -0
  11. package/dist/components/Chat/Chat.js +30 -0
  12. package/dist/components/Chat/index.d.ts +1 -0
  13. package/dist/components/Chat/index.js +4 -0
  14. package/dist/components/ChatHeader/ChatHeader.d.ts +22 -0
  15. package/dist/components/ChatHeader/ChatHeader.js +51 -0
  16. package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.d.ts +11 -0
  17. package/dist/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.js +79 -0
  18. package/dist/components/ChatHeader/ChatHeaderActions/index.d.ts +1 -0
  19. package/dist/components/ChatHeader/ChatHeaderActions/index.js +4 -0
  20. package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.d.ts +34 -0
  21. package/dist/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.js +87 -0
  22. package/dist/components/ChatHeader/ChatHeaderUI/index.d.ts +2 -0
  23. package/dist/components/ChatHeader/ChatHeaderUI/index.js +4 -0
  24. package/dist/components/ChatHeader/index.d.ts +2 -0
  25. package/dist/components/ChatHeader/index.js +6 -0
  26. package/dist/components/Checkbox/index.d.ts +14 -0
  27. package/dist/components/Checkbox/index.js +34 -0
  28. package/dist/components/DivWithEdit/DivWithEdit.d.ts +14 -0
  29. package/dist/components/DivWithEdit/DivWithEdit.js +69 -0
  30. package/dist/components/DivWithEdit/WithSelect.d.ts +7 -0
  31. package/dist/components/DivWithEdit/WithSelect.js +21 -0
  32. package/dist/components/DivWithEdit/WithText.d.ts +9 -0
  33. package/dist/components/DivWithEdit/WithText.js +28 -0
  34. package/dist/components/DivWithEdit/index.d.ts +1 -0
  35. package/dist/components/DivWithEdit/index.js +4 -0
  36. package/dist/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +8 -0
  37. package/dist/components/EmptyStateIndicator/EmptyStateIndicator.js +12 -0
  38. package/dist/components/EmptyStateIndicator/index.d.ts +1 -0
  39. package/dist/components/EmptyStateIndicator/index.js +4 -0
  40. package/dist/components/Icon/Icon.d.ts +11 -0
  41. package/dist/components/Icon/Icon.js +39 -0
  42. package/dist/components/Icon/config.d.ts +9 -0
  43. package/dist/components/Icon/config.js +198 -0
  44. package/dist/components/Icon/index.d.ts +2 -0
  45. package/dist/components/Icon/index.js +7 -0
  46. package/dist/components/Icon/type.d.ts +50 -0
  47. package/dist/components/Icon/type.js +4 -0
  48. package/dist/components/IconFont/Icon.d.ts +21 -0
  49. package/dist/components/IconFont/Icon.js +47 -0
  50. package/dist/components/IconFont/index.d.ts +2 -0
  51. package/dist/components/IconFont/index.js +4 -0
  52. package/dist/components/Input/Input.d.ts +23 -0
  53. package/dist/components/Input/Input.js +86 -0
  54. package/dist/components/Input/index.d.ts +1 -0
  55. package/dist/components/Input/index.js +4 -0
  56. package/dist/components/Modal/Modal.d.ts +7 -0
  57. package/dist/components/Modal/Modal.js +89 -0
  58. package/dist/components/Modal/index.d.ts +1 -0
  59. package/dist/components/Modal/index.js +4 -0
  60. package/dist/components/Model/index.d.ts +7 -0
  61. package/dist/components/Model/index.js +12 -0
  62. package/dist/components/Plugins/hooks/index.d.ts +1 -0
  63. package/dist/components/Plugins/hooks/index.js +4 -0
  64. package/dist/components/Plugins/hooks/usePluginsElement.d.ts +10 -0
  65. package/dist/components/Plugins/hooks/usePluginsElement.js +11 -0
  66. package/dist/components/Plugins/index.d.ts +19 -0
  67. package/dist/components/Plugins/index.js +73 -0
  68. package/dist/components/Popup/index.d.ts +11 -0
  69. package/dist/components/Popup/index.js +56 -0
  70. package/dist/components/PopupNew/Popup.d.ts +13 -0
  71. package/dist/components/PopupNew/Popup.js +30 -0
  72. package/dist/components/PopupNew/index.d.ts +2 -0
  73. package/dist/components/PopupNew/index.js +4 -0
  74. package/dist/components/Profile/DatePicker/DatePicker.d.ts +11 -0
  75. package/dist/components/Profile/DatePicker/DatePicker.js +104 -0
  76. package/dist/components/Profile/DatePicker/index.d.ts +1 -0
  77. package/dist/components/Profile/DatePicker/index.js +4 -0
  78. package/dist/components/Profile/Profile.d.ts +8 -0
  79. package/dist/components/Profile/Profile.js +36 -0
  80. package/dist/components/Profile/ProfileDefault.d.ts +9 -0
  81. package/dist/components/Profile/ProfileDefault.js +246 -0
  82. package/dist/components/Profile/hooks/index.d.ts +1 -0
  83. package/dist/components/Profile/hooks/index.js +4 -0
  84. package/dist/components/Profile/hooks/useMyProfile.d.ts +21 -0
  85. package/dist/components/Profile/hooks/useMyProfile.js +22 -0
  86. package/dist/components/Profile/index.d.ts +2 -0
  87. package/dist/components/Profile/index.js +6 -0
  88. package/dist/components/Profile/myProfile/MyProfile.d.ts +7 -0
  89. package/dist/components/Profile/myProfile/MyProfile.js +21 -0
  90. package/dist/components/Profile/myProfile/index.d.ts +1 -0
  91. package/dist/components/Profile/myProfile/index.js +4 -0
  92. package/dist/components/Switch/Switch.d.ts +9 -0
  93. package/dist/components/Switch/Switch.js +35 -0
  94. package/dist/components/Switch/index.d.ts +1 -0
  95. package/dist/components/Switch/index.js +4 -0
  96. package/dist/components/Switch/utils/newId.d.ts +2 -0
  97. package/dist/components/Switch/utils/newId.js +5 -0
  98. package/dist/components/index.d.ts +11 -0
  99. package/dist/components/index.js +31 -0
  100. package/dist/constant/avatar.d.ts +5 -0
  101. package/dist/constant/avatar.js +8 -0
  102. package/dist/constant/emoji.d.ts +12 -0
  103. package/dist/constant/emoji.js +137 -0
  104. package/dist/constant/index.d.ts +2 -0
  105. package/dist/constant/index.js +13 -0
  106. package/dist/context/ChatContext.d.ts +11 -0
  107. package/dist/context/ChatContext.js +27 -0
  108. package/dist/context/ContactContext.d.ts +15 -0
  109. package/dist/context/ContactContext.js +15 -0
  110. package/dist/context/index.d.ts +2 -0
  111. package/dist/context/index.js +9 -0
  112. package/dist/external_modules/classnames-HRMVOjAa.js +45 -0
  113. package/dist/external_modules/mui-CbGEJVT2.js +2473 -0
  114. package/dist/external_modules/react-vendors-3raCpd-g.js +1238 -0
  115. package/dist/external_modules/zustand-Dvydplxp.js +24 -0
  116. package/dist/hooks/index.d.ts +2 -0
  117. package/dist/hooks/index.js +4 -0
  118. package/dist/index.d.ts +7 -0
  119. package/dist/index.js +4120 -0
  120. package/dist/locales/en-US/ChatSetting.d.ts +95 -0
  121. package/dist/locales/en-US/ChatSetting.js +107 -0
  122. package/dist/locales/en-US/DateRangePicker.d.ts +30 -0
  123. package/dist/locales/en-US/DateRangePicker.js +32 -0
  124. package/dist/locales/en-US/GroupTip.d.ts +19 -0
  125. package/dist/locales/en-US/GroupTip.js +21 -0
  126. package/dist/locales/en-US/Search.d.ts +48 -0
  127. package/dist/locales/en-US/Search.js +50 -0
  128. package/dist/locales/en-US/TUIChat.d.ts +56 -0
  129. package/dist/locales/en-US/TUIChat.js +58 -0
  130. package/dist/locales/en-US/TUIContact.d.ts +71 -0
  131. package/dist/locales/en-US/TUIContact.js +74 -0
  132. package/dist/locales/en-US/TUIConversation.d.ts +44 -0
  133. package/dist/locales/en-US/TUIConversation.js +46 -0
  134. package/dist/locales/en-US/TUIProfile.d.ts +14 -0
  135. package/dist/locales/en-US/TUIProfile.js +16 -0
  136. package/dist/locales/en-US/emoji.d.ts +65 -0
  137. package/dist/locales/en-US/emoji.js +67 -0
  138. package/dist/locales/en-US/index.d.ts +435 -0
  139. package/dist/locales/en-US/index.js +23 -0
  140. package/dist/locales/index.d.ts +1 -0
  141. package/dist/locales/index.js +26 -0
  142. package/dist/locales/ja-JP/ChatSetting.d.ts +96 -0
  143. package/dist/locales/ja-JP/ChatSetting.js +108 -0
  144. package/dist/locales/ja-JP/DateRangePicker.d.ts +30 -0
  145. package/dist/locales/ja-JP/DateRangePicker.js +32 -0
  146. package/dist/locales/ja-JP/GroupTip.d.ts +19 -0
  147. package/dist/locales/ja-JP/GroupTip.js +21 -0
  148. package/dist/locales/ja-JP/Search.d.ts +48 -0
  149. package/dist/locales/ja-JP/Search.js +50 -0
  150. package/dist/locales/ja-JP/TUIChat.d.ts +55 -0
  151. package/dist/locales/ja-JP/TUIChat.js +57 -0
  152. package/dist/locales/ja-JP/TUIContact.d.ts +72 -0
  153. package/dist/locales/ja-JP/TUIContact.js +75 -0
  154. package/dist/locales/ja-JP/TUIConversation.d.ts +43 -0
  155. package/dist/locales/ja-JP/TUIConversation.js +45 -0
  156. package/dist/locales/ja-JP/TUIProfile.d.ts +14 -0
  157. package/dist/locales/ja-JP/TUIProfile.js +16 -0
  158. package/dist/locales/ja-JP/emoji.d.ts +65 -0
  159. package/dist/locales/ja-JP/emoji.js +67 -0
  160. package/dist/locales/ja-JP/index.d.ts +435 -0
  161. package/dist/locales/ja-JP/index.js +23 -0
  162. package/dist/locales/ko-KR/ChatSetting.d.ts +96 -0
  163. package/dist/locales/ko-KR/ChatSetting.js +108 -0
  164. package/dist/locales/ko-KR/DateRangePicker.d.ts +30 -0
  165. package/dist/locales/ko-KR/DateRangePicker.js +32 -0
  166. package/dist/locales/ko-KR/GroupTip.d.ts +19 -0
  167. package/dist/locales/ko-KR/GroupTip.js +21 -0
  168. package/dist/locales/ko-KR/Search.d.ts +48 -0
  169. package/dist/locales/ko-KR/Search.js +50 -0
  170. package/dist/locales/ko-KR/TUIChat.d.ts +55 -0
  171. package/dist/locales/ko-KR/TUIChat.js +57 -0
  172. package/dist/locales/ko-KR/TUIContact.d.ts +72 -0
  173. package/dist/locales/ko-KR/TUIContact.js +75 -0
  174. package/dist/locales/ko-KR/TUIConversation.d.ts +43 -0
  175. package/dist/locales/ko-KR/TUIConversation.js +45 -0
  176. package/dist/locales/ko-KR/TUIProfile.d.ts +14 -0
  177. package/dist/locales/ko-KR/TUIProfile.js +16 -0
  178. package/dist/locales/ko-KR/emoji.d.ts +65 -0
  179. package/dist/locales/ko-KR/emoji.js +67 -0
  180. package/dist/locales/ko-KR/index.d.ts +435 -0
  181. package/dist/locales/ko-KR/index.js +23 -0
  182. package/dist/locales/zh-CN/ChatSetting.d.ts +95 -0
  183. package/dist/locales/zh-CN/ChatSetting.js +107 -0
  184. package/dist/locales/zh-CN/DateRangePicker.d.ts +30 -0
  185. package/dist/locales/zh-CN/DateRangePicker.js +32 -0
  186. package/dist/locales/zh-CN/GroupTip.d.ts +19 -0
  187. package/dist/locales/zh-CN/GroupTip.js +21 -0
  188. package/dist/locales/zh-CN/Search.d.ts +48 -0
  189. package/dist/locales/zh-CN/Search.js +50 -0
  190. package/dist/locales/zh-CN/TUIChat.d.ts +55 -0
  191. package/dist/locales/zh-CN/TUIChat.js +57 -0
  192. package/dist/locales/zh-CN/TUIContact.d.ts +72 -0
  193. package/dist/locales/zh-CN/TUIContact.js +75 -0
  194. package/dist/locales/zh-CN/TUIConversation.d.ts +43 -0
  195. package/dist/locales/zh-CN/TUIConversation.js +45 -0
  196. package/dist/locales/zh-CN/TUIProfile.d.ts +14 -0
  197. package/dist/locales/zh-CN/TUIProfile.js +16 -0
  198. package/dist/locales/zh-CN/emoji.d.ts +65 -0
  199. package/dist/locales/zh-CN/emoji.js +67 -0
  200. package/dist/locales/zh-CN/index.d.ts +434 -0
  201. package/dist/locales/zh-CN/index.js +23 -0
  202. package/dist/locales/zh-TW/ChatSetting.d.ts +96 -0
  203. package/dist/locales/zh-TW/ChatSetting.js +108 -0
  204. package/dist/locales/zh-TW/DateRangePicker.d.ts +30 -0
  205. package/dist/locales/zh-TW/DateRangePicker.js +32 -0
  206. package/dist/locales/zh-TW/GroupTip.d.ts +19 -0
  207. package/dist/locales/zh-TW/GroupTip.js +21 -0
  208. package/dist/locales/zh-TW/Search.d.ts +48 -0
  209. package/dist/locales/zh-TW/Search.js +50 -0
  210. package/dist/locales/zh-TW/TUIChat.d.ts +55 -0
  211. package/dist/locales/zh-TW/TUIChat.js +57 -0
  212. package/dist/locales/zh-TW/TUIContact.d.ts +72 -0
  213. package/dist/locales/zh-TW/TUIContact.js +75 -0
  214. package/dist/locales/zh-TW/TUIConversation.d.ts +43 -0
  215. package/dist/locales/zh-TW/TUIConversation.js +45 -0
  216. package/dist/locales/zh-TW/TUIProfile.d.ts +14 -0
  217. package/dist/locales/zh-TW/TUIProfile.js +16 -0
  218. package/dist/locales/zh-TW/emoji.d.ts +64 -0
  219. package/dist/locales/zh-TW/emoji.js +66 -0
  220. package/dist/locales/zh-TW/index.d.ts +434 -0
  221. package/dist/locales/zh-TW/index.js +23 -0
  222. package/dist/server/mainServer.d.ts +8 -0
  223. package/dist/server/mainServer.js +40 -0
  224. package/dist/states/ChatHeaderState.d.ts +18 -0
  225. package/dist/states/ChatHeaderState.js +48 -0
  226. package/dist/states/UIManagerState.d.ts +89 -0
  227. package/dist/states/UIManagerState.js +76 -0
  228. package/dist/states/index.d.ts +2 -0
  229. package/dist/states/index.js +6 -0
  230. package/dist/styles/Chat.css +1 -0
  231. package/dist/styles/ChatHeaderActions.css +1 -0
  232. package/dist/styles/ChatHeaderUI.css +1 -0
  233. package/dist/styles/ChatSetting.css +1 -0
  234. package/dist/styles/DatePicker.css +1 -0
  235. package/dist/styles/Icon.css +1 -0
  236. package/dist/styles/Icon2.css +1 -0
  237. package/dist/styles/Input.css +1 -0
  238. package/dist/styles/Modal.css +1 -0
  239. package/dist/styles/MyProfile.css +1 -0
  240. package/dist/styles/Profile.css +1 -0
  241. package/dist/styles/Switch.css +1 -0
  242. package/dist/styles/WithSelect.css +1 -0
  243. package/dist/styles/index.css +1 -0
  244. package/dist/styles/index2.css +1 -0
  245. package/dist/styles/index3.css +1 -0
  246. package/dist/styles/index4.css +1 -0
  247. package/dist/styles/index5.css +1 -0
  248. package/dist/types/message.d.ts +39 -0
  249. package/dist/types/user.d.ts +18 -0
  250. package/dist/types/user.js +0 -0
  251. package/package.json +82 -59
  252. package/src/assets/fonts/iconfont.ttf +0 -0
  253. package/src/assets/fonts/iconfont.woff +0 -0
  254. package/src/assets/fonts/iconfont.woff2 +0 -0
  255. package/src/components/Chat/Chat.mdx +271 -0
  256. package/src/components/Chat/Chat.module.scss +11 -0
  257. package/src/components/Chat/Chat.stories.tsx +215 -0
  258. package/src/components/Chat/Chat.tsx +30 -283
  259. package/src/components/Chat/Chat.zh-CN.mdx +275 -0
  260. package/src/components/Chat/index.ts +0 -4
  261. package/src/components/ChatHeader/ChatHeader.stories.tsx +129 -0
  262. package/src/components/ChatHeader/ChatHeader.tsx +62 -36
  263. package/src/components/ChatHeader/ChatHeader.zh-CN.mdx +159 -0
  264. package/src/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.module.scss +44 -0
  265. package/src/components/ChatHeader/ChatHeaderActions/ChatHeaderActions.tsx +105 -0
  266. package/src/components/ChatHeader/ChatHeaderActions/index.ts +1 -0
  267. package/src/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.module.scss +111 -0
  268. package/src/components/ChatHeader/ChatHeaderUI/ChatHeaderUI.tsx +127 -0
  269. package/src/components/ChatHeader/ChatHeaderUI/index.ts +3 -0
  270. package/src/components/ChatHeader/index.ts +1 -1
  271. package/src/components/Checkbox/index.tsx +1 -1
  272. package/src/components/Checkbox/styles/color.scss +1 -1
  273. package/src/components/Checkbox/styles/index.scss +2 -2
  274. package/src/components/DivWithEdit/DivWithEdit.tsx +43 -37
  275. package/src/components/DivWithEdit/WithSelect.tsx +9 -4
  276. package/src/components/DivWithEdit/WithText.tsx +4 -1
  277. package/src/components/DivWithEdit/styles/index.scss +15 -7
  278. package/src/components/Icon/Icon.tsx +4 -4
  279. package/src/components/Icon/styles/index.scss +3 -3
  280. package/src/components/IconFont/Icon.module.scss +42 -0
  281. package/src/components/IconFont/Icon.tsx +68 -0
  282. package/src/components/IconFont/index.ts +3 -0
  283. package/src/components/Input/Input.tsx +34 -24
  284. package/src/components/Input/index.scss +64 -0
  285. package/src/components/Modal/Modal.module.scss +55 -0
  286. package/src/components/Modal/Modal.tsx +110 -0
  287. package/src/components/Modal/index.ts +1 -0
  288. package/src/components/Model/styles/index.scss +2 -2
  289. package/src/components/Plugins/hooks/usePluginsElement.tsx +6 -5
  290. package/src/components/Plugins/index.tsx +12 -10
  291. package/src/components/Plugins/styles/color.scss +2 -2
  292. package/src/components/Plugins/styles/index.scss +2 -2
  293. package/src/components/Plugins/styles/layout.scss +2 -1
  294. package/src/components/Popup/styles/index.scss +2 -2
  295. package/src/components/PopupNew/Popup.module.scss +0 -0
  296. package/src/components/PopupNew/Popup.tsx +47 -0
  297. package/src/components/PopupNew/index.ts +3 -0
  298. package/src/components/Profile/DatePicker/DatePicker.scss +175 -0
  299. package/src/components/Profile/DatePicker/DatePicker.tsx +184 -0
  300. package/src/components/Profile/DatePicker/index.ts +1 -0
  301. package/src/components/Profile/Profile.tsx +21 -19
  302. package/src/components/Profile/ProfileDefault.tsx +99 -106
  303. package/src/components/Profile/myProfile/MyProfile.tsx +10 -9
  304. package/src/components/Profile/myProfile/styles/index.scss +7 -1
  305. package/src/components/Profile/styles/color.scss +1 -1
  306. package/src/components/Profile/styles/index.scss +2 -2
  307. package/src/components/Profile/styles/layout.scss +11 -13
  308. package/src/components/Switch/Switch.tsx +8 -7
  309. package/src/components/index.ts +5 -19
  310. package/src/constant/emoji.ts +97 -0
  311. package/src/constant/index.ts +13 -0
  312. package/src/context/ChatContext.tsx +40 -0
  313. package/src/context/index.ts +4 -7
  314. package/src/hooks/index.ts +4 -5
  315. package/src/index.ts +14 -4
  316. package/src/locales/en-US/ChatSetting.ts +116 -0
  317. package/src/locales/en-US/DateRangePicker.ts +32 -0
  318. package/src/locales/en-US/GroupTip.ts +21 -0
  319. package/src/locales/en-US/Search.ts +50 -0
  320. package/src/locales/en-US/TUIChat.ts +30 -1
  321. package/src/locales/en-US/TUIContact.ts +45 -0
  322. package/src/locales/en-US/TUIConversation.ts +8 -0
  323. package/src/locales/en-US/TUIProfile.ts +1 -1
  324. package/src/locales/en-US/emoji.ts +1 -1
  325. package/src/locales/en-US/index.ts +10 -2
  326. package/src/locales/index.ts +3 -3
  327. package/src/locales/ja-JP/ChatSetting.ts +117 -0
  328. package/src/locales/ja-JP/DateRangePicker.ts +32 -0
  329. package/src/locales/ja-JP/GroupTip.ts +21 -0
  330. package/src/locales/ja-JP/Search.ts +50 -0
  331. package/src/locales/ja-JP/TUIChat.ts +30 -1
  332. package/src/locales/ja-JP/TUIContact.ts +45 -0
  333. package/src/locales/ja-JP/TUIConversation.ts +8 -0
  334. package/src/locales/ja-JP/index.ts +10 -2
  335. package/src/locales/ko-KR/ChatSetting.ts +117 -0
  336. package/src/locales/ko-KR/DateRangePicker.ts +32 -0
  337. package/src/locales/ko-KR/GroupTip.ts +21 -0
  338. package/src/locales/ko-KR/Search.ts +50 -0
  339. package/src/locales/ko-KR/TUIChat.ts +30 -1
  340. package/src/locales/ko-KR/TUIContact.ts +45 -0
  341. package/src/locales/ko-KR/TUIConversation.ts +8 -0
  342. package/src/locales/ko-KR/index.ts +10 -2
  343. package/src/locales/zh-CN/ChatSetting.ts +116 -0
  344. package/src/locales/zh-CN/DateRangePicker.ts +32 -0
  345. package/src/locales/zh-CN/GroupTip.ts +21 -0
  346. package/src/locales/zh-CN/Search.ts +50 -0
  347. package/src/locales/zh-CN/TUIChat.ts +30 -1
  348. package/src/locales/zh-CN/TUIContact.ts +45 -0
  349. package/src/locales/zh-CN/TUIConversation.ts +8 -0
  350. package/src/locales/zh-CN/index.ts +10 -2
  351. package/src/locales/zh-TW/ChatSetting.ts +117 -0
  352. package/src/locales/zh-TW/DateRangePicker.ts +32 -0
  353. package/src/locales/zh-TW/GroupTip.ts +21 -0
  354. package/src/locales/zh-TW/Search.ts +50 -0
  355. package/src/locales/zh-TW/TUIChat.ts +30 -1
  356. package/src/locales/zh-TW/TUIContact.ts +46 -0
  357. package/src/locales/zh-TW/TUIConversation.ts +8 -0
  358. package/src/locales/zh-TW/index.ts +10 -2
  359. package/src/server/mainServer.ts +45 -0
  360. package/src/states/ChatHeaderState.ts +121 -0
  361. package/src/states/UIManagerState.ts +201 -0
  362. package/src/states/index.ts +3 -0
  363. package/src/states/useChatHeaderStore.mdx +182 -0
  364. package/src/stories/GettingStarted.mdx +89 -0
  365. package/src/styles/fonts/icon-font.scss +3 -3
  366. package/src/styles/index.scss +2 -4
  367. package/src/styles/mixins/_scrollbar.scss +62 -0
  368. package/src/styles/mixins/_text.scss +25 -0
  369. package/src/styles/mixins/index.scss +2 -0
  370. package/src/styles/normalize.scss +45 -1
  371. package/src/types/message.ts +51 -0
  372. package/src/types/user.ts +20 -0
  373. package/src/vite-env.d.ts +1 -0
  374. package/tsconfig.app.json +39 -0
  375. package/tsconfig.json +4 -13
  376. package/tsconfig.node.json +24 -0
  377. package/vite.config.playground.ts +48 -0
  378. package/vite.config.ts +144 -0
  379. package/.eslintrc.js +0 -251
  380. package/dist/cjs/assets/fonts/iconfont.ttf +0 -0
  381. package/dist/cjs/assets/fonts/iconfont.woff +0 -0
  382. package/dist/cjs/assets/fonts/iconfont.woff2 +0 -0
  383. package/dist/cjs/components/Avatar/Avatar.d.ts +0 -22
  384. package/dist/cjs/components/Avatar/Avatar.js +0 -1
  385. package/dist/cjs/components/Avatar/default.d.ts +0 -7
  386. package/dist/cjs/components/Avatar/default.js +0 -1
  387. package/dist/cjs/components/Chat/Chat.d.ts +0 -39
  388. package/dist/cjs/components/Chat/Chat.js +0 -1
  389. package/dist/cjs/components/Chat/ChatState.js +0 -1
  390. package/dist/cjs/components/Chat/hooks/useCreateTUIChatStateContext.js +0 -1
  391. package/dist/cjs/components/Chat/hooks/useHandleMessage.d.ts +0 -7
  392. package/dist/cjs/components/Chat/hooks/useHandleMessage.js +0 -1
  393. package/dist/cjs/components/Chat/hooks/useHandleMessageList.js +0 -1
  394. package/dist/cjs/components/Chat/index.js +0 -1
  395. package/dist/cjs/components/Chat/server.js +0 -1
  396. package/dist/cjs/components/Chat/utils.js +0 -1
  397. package/dist/cjs/components/ChatHeader/ChatHeader.d.ts +0 -16
  398. package/dist/cjs/components/ChatHeader/ChatHeader.js +0 -1
  399. package/dist/cjs/components/ChatHeader/ChatHeaderDefault.d.ts +0 -18
  400. package/dist/cjs/components/ChatHeader/ChatHeaderDefault.js +0 -1
  401. package/dist/cjs/components/ChatSetting/ChatSetting.d.ts +0 -6
  402. package/dist/cjs/components/ChatSetting/ChatSetting.js +0 -1
  403. package/dist/cjs/components/Checkbox/index.d.ts +0 -17
  404. package/dist/cjs/components/Checkbox/index.js +0 -1
  405. package/dist/cjs/components/Contact/Contact.d.ts +0 -6
  406. package/dist/cjs/components/Contact/Contact.js +0 -1
  407. package/dist/cjs/components/Contact/ContactInfo/ContactInfo.d.ts +0 -10
  408. package/dist/cjs/components/Contact/ContactInfo/ContactInfo.js +0 -1
  409. package/dist/cjs/components/Contact/ContactInfo/addFriendInfo.js +0 -1
  410. package/dist/cjs/components/Contact/ContactInfo/basicInfo.js +0 -1
  411. package/dist/cjs/components/Contact/ContactInfo/blockInfo.js +0 -1
  412. package/dist/cjs/components/Contact/ContactInfo/friendApplication.js +0 -1
  413. package/dist/cjs/components/Contact/ContactInfo/friendInfo.js +0 -1
  414. package/dist/cjs/components/Contact/ContactInfo/groupInfo.js +0 -1
  415. package/dist/cjs/components/Contact/ContactInfo/hooks/useContactInfo.js +0 -1
  416. package/dist/cjs/components/Contact/ContactList/ContactList.d.ts +0 -6
  417. package/dist/cjs/components/Contact/ContactList/ContactList.js +0 -1
  418. package/dist/cjs/components/Contact/hooks/useTUIContact.js +0 -1
  419. package/dist/cjs/components/ContactSearch/ContactSearch.js +0 -1
  420. package/dist/cjs/components/ContactSearch/hooks/useContactSearch.js +0 -1
  421. package/dist/cjs/components/ConversationActions/ConversationActions.d.ts +0 -52
  422. package/dist/cjs/components/ConversationActions/ConversationActions.js +0 -1
  423. package/dist/cjs/components/ConversationCreate/ConversationCreate.d.ts +0 -21
  424. package/dist/cjs/components/ConversationCreate/ConversationCreate.js +0 -1
  425. package/dist/cjs/components/ConversationCreate/ConversationCreateButton.d.ts +0 -13
  426. package/dist/cjs/components/ConversationCreate/ConversationCreateButton.js +0 -1
  427. package/dist/cjs/components/ConversationCreate/ConversationCreateGroupDetail.d.ts +0 -16
  428. package/dist/cjs/components/ConversationCreate/ConversationCreateGroupDetail.js +0 -1
  429. package/dist/cjs/components/ConversationCreate/ConversationCreateSelectView.d.ts +0 -15
  430. package/dist/cjs/components/ConversationCreate/ConversationCreateSelectView.js +0 -1
  431. package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.d.ts +0 -18
  432. package/dist/cjs/components/ConversationCreate/ConversationCreateUserSelectList.js +0 -1
  433. package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.d.ts +0 -24
  434. package/dist/cjs/components/ConversationCreate/ConversationGroupTypeInfo.js +0 -1
  435. package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.d.ts +0 -14
  436. package/dist/cjs/components/ConversationCreate/hooks/useConversationCreate.js +0 -1
  437. package/dist/cjs/components/ConversationCreate/static/word.js +0 -1
  438. package/dist/cjs/components/ConversationList/ConversationList.d.ts +0 -57
  439. package/dist/cjs/components/ConversationList/ConversationList.js +0 -1
  440. package/dist/cjs/components/ConversationList/ConversationListContent/ConversationListContent.d.ts +0 -23
  441. package/dist/cjs/components/ConversationList/ConversationListContent/ConversationListContent.js +0 -1
  442. package/dist/cjs/components/ConversationList/ConversationListHeader/ConversationListHeader.d.ts +0 -15
  443. package/dist/cjs/components/ConversationList/ConversationListHeader/ConversationListHeader.js +0 -1
  444. package/dist/cjs/components/ConversationPreview/ConversationPreview.d.ts +0 -45
  445. package/dist/cjs/components/ConversationPreview/ConversationPreview.js +0 -1
  446. package/dist/cjs/components/ConversationPreview/utils.js +0 -1
  447. package/dist/cjs/components/ConversationSearch/ConversationSearch.d.ts +0 -39
  448. package/dist/cjs/components/ConversationSearch/ConversationSearch.js +0 -1
  449. package/dist/cjs/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.d.ts +0 -7
  450. package/dist/cjs/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +0 -1
  451. package/dist/cjs/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.d.ts +0 -29
  452. package/dist/cjs/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.js +0 -1
  453. package/dist/cjs/components/DivWithEdit/DivWithEdit.d.ts +0 -17
  454. package/dist/cjs/components/DivWithEdit/DivWithEdit.js +0 -1
  455. package/dist/cjs/components/DivWithEdit/WithSelect.js +0 -1
  456. package/dist/cjs/components/DivWithEdit/WithText.js +0 -1
  457. package/dist/cjs/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +0 -11
  458. package/dist/cjs/components/EmptyStateIndicator/EmptyStateIndicator.js +0 -1
  459. package/dist/cjs/components/Icon/Icon.d.ts +0 -15
  460. package/dist/cjs/components/Icon/Icon.js +0 -1
  461. package/dist/cjs/components/Icon/config.js +0 -1
  462. package/dist/cjs/components/Icon/images/add-friend.svg.js +0 -1
  463. package/dist/cjs/components/Icon/images/add.png.js +0 -1
  464. package/dist/cjs/components/Icon/images/arrow-down.png.js +0 -1
  465. package/dist/cjs/components/Icon/images/arrow-right.png.js +0 -1
  466. package/dist/cjs/components/Icon/images/back.png.js +0 -1
  467. package/dist/cjs/components/Icon/images/camera.png.js +0 -1
  468. package/dist/cjs/components/Icon/images/cancel.png.js +0 -1
  469. package/dist/cjs/components/Icon/images/clear.png.js +0 -1
  470. package/dist/cjs/components/Icon/images/close.png.js +0 -1
  471. package/dist/cjs/components/Icon/images/confirm.png.js +0 -1
  472. package/dist/cjs/components/Icon/images/copy.png.js +0 -1
  473. package/dist/cjs/components/Icon/images/cry.png.js +0 -1
  474. package/dist/cjs/components/Icon/images/del.png.js +0 -1
  475. package/dist/cjs/components/Icon/images/edit.png.js +0 -1
  476. package/dist/cjs/components/Icon/images/effort.png.js +0 -1
  477. package/dist/cjs/components/Icon/images/ellipse.png.js +0 -1
  478. package/dist/cjs/components/Icon/images/emoji.png.js +0 -1
  479. package/dist/cjs/components/Icon/images/file.png.js +0 -1
  480. package/dist/cjs/components/Icon/images/files.png.js +0 -1
  481. package/dist/cjs/components/Icon/images/forward.png.js +0 -1
  482. package/dist/cjs/components/Icon/images/image.png.js +0 -1
  483. package/dist/cjs/components/Icon/images/like.png.js +0 -1
  484. package/dist/cjs/components/Icon/images/liked.png.js +0 -1
  485. package/dist/cjs/components/Icon/images/living.png.js +0 -1
  486. package/dist/cjs/components/Icon/images/member.png.js +0 -1
  487. package/dist/cjs/components/Icon/images/more.png.js +0 -1
  488. package/dist/cjs/components/Icon/images/mute.svg.js +0 -1
  489. package/dist/cjs/components/Icon/images/owner.png.js +0 -1
  490. package/dist/cjs/components/Icon/images/progress.png.js +0 -1
  491. package/dist/cjs/components/Icon/images/quote.png.js +0 -1
  492. package/dist/cjs/components/Icon/images/reply.png.js +0 -1
  493. package/dist/cjs/components/Icon/images/revocation.png.js +0 -1
  494. package/dist/cjs/components/Icon/images/right.png.js +0 -1
  495. package/dist/cjs/components/Icon/images/search.png.js +0 -1
  496. package/dist/cjs/components/Icon/images/send.png.js +0 -1
  497. package/dist/cjs/components/Icon/images/star.png.js +0 -1
  498. package/dist/cjs/components/Icon/images/union.png.js +0 -1
  499. package/dist/cjs/components/Icon/images/unlike.png.js +0 -1
  500. package/dist/cjs/components/Icon/images/unliked.png.js +0 -1
  501. package/dist/cjs/components/Icon/images/ununion.png.js +0 -1
  502. package/dist/cjs/components/Icon/images/unvector.png.js +0 -1
  503. package/dist/cjs/components/Icon/images/vector.png.js +0 -1
  504. package/dist/cjs/components/Icon/images/video-call.svg.js +0 -1
  505. package/dist/cjs/components/Icon/images/video.png.js +0 -1
  506. package/dist/cjs/components/Icon/images/voice-call.svg.js +0 -1
  507. package/dist/cjs/components/Icon/images/voice.png.js +0 -1
  508. package/dist/cjs/components/Icon/type.d.ts +0 -52
  509. package/dist/cjs/components/Icon/type.js +0 -1
  510. package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +0 -20
  511. package/dist/cjs/components/InfiniteScrollPaginator/InfiniteScroll.js +0 -1
  512. package/dist/cjs/components/Input/Input.d.ts +0 -26
  513. package/dist/cjs/components/Input/Input.js +0 -1
  514. package/dist/cjs/components/MessageElement/Message.d.ts +0 -61
  515. package/dist/cjs/components/MessageElement/Message.js +0 -1
  516. package/dist/cjs/components/MessageElement/MessageAudio.js +0 -1
  517. package/dist/cjs/components/MessageElement/MessageAvatar.js +0 -1
  518. package/dist/cjs/components/MessageElement/MessageBubble.js +0 -1
  519. package/dist/cjs/components/MessageElement/MessageContext.d.ts +0 -9
  520. package/dist/cjs/components/MessageElement/MessageContext.js +0 -1
  521. package/dist/cjs/components/MessageElement/MessageCustom.js +0 -1
  522. package/dist/cjs/components/MessageElement/MessageDefault.js +0 -1
  523. package/dist/cjs/components/MessageElement/MessageFace.js +0 -1
  524. package/dist/cjs/components/MessageElement/MessageFile.js +0 -1
  525. package/dist/cjs/components/MessageElement/MessageImage.js +0 -1
  526. package/dist/cjs/components/MessageElement/MessageLocation.js +0 -1
  527. package/dist/cjs/components/MessageElement/MessageMerger.js +0 -1
  528. package/dist/cjs/components/MessageElement/MessageName.js +0 -1
  529. package/dist/cjs/components/MessageElement/MessagePlugins.d.ts +0 -24
  530. package/dist/cjs/components/MessageElement/MessagePlugins.js +0 -1
  531. package/dist/cjs/components/MessageElement/MessageProgress.js +0 -1
  532. package/dist/cjs/components/MessageElement/MessageRevoke.js +0 -1
  533. package/dist/cjs/components/MessageElement/MessageStatus.js +0 -1
  534. package/dist/cjs/components/MessageElement/MessageSystem.js +0 -1
  535. package/dist/cjs/components/MessageElement/MessageText.js +0 -1
  536. package/dist/cjs/components/MessageElement/MessageTip.js +0 -1
  537. package/dist/cjs/components/MessageElement/MessageVideo.js +0 -1
  538. package/dist/cjs/components/MessageElement/hooks/useMessageContextHandler.js +0 -1
  539. package/dist/cjs/components/MessageElement/hooks/useMessageHandler.js +0 -1
  540. package/dist/cjs/components/MessageElement/hooks/useMessagePluginElement.js +0 -1
  541. package/dist/cjs/components/MessageElement/hooks/useMessageReply.js +0 -1
  542. package/dist/cjs/components/MessageElement/utils/decodeText.js +0 -1
  543. package/dist/cjs/components/MessageElement/utils/emojiMap.js +0 -1
  544. package/dist/cjs/components/MessageElement/utils/index.js +0 -1
  545. package/dist/cjs/components/MessageInput/EmojiPicker.js +0 -1
  546. package/dist/cjs/components/MessageInput/Forward.js +0 -1
  547. package/dist/cjs/components/MessageInput/InputPluginsDefalut.d.ts +0 -5
  548. package/dist/cjs/components/MessageInput/InputPluginsDefalut.js +0 -1
  549. package/dist/cjs/components/MessageInput/InputQuoteDefalut.js +0 -1
  550. package/dist/cjs/components/MessageInput/MessageInput.d.ts +0 -29
  551. package/dist/cjs/components/MessageInput/MessageInput.js +0 -1
  552. package/dist/cjs/components/MessageInput/MessageInputDefault.d.ts +0 -5
  553. package/dist/cjs/components/MessageInput/MessageInputDefault.js +0 -1
  554. package/dist/cjs/components/MessageInput/Transmitter.js +0 -1
  555. package/dist/cjs/components/MessageInput/hooks/useCreateMessageInputContext.js +0 -1
  556. package/dist/cjs/components/MessageInput/hooks/useEmojiPicker.d.ts +0 -6
  557. package/dist/cjs/components/MessageInput/hooks/useEmojiPicker.js +0 -1
  558. package/dist/cjs/components/MessageInput/hooks/useHandleForwardMessage.js +0 -1
  559. package/dist/cjs/components/MessageInput/hooks/useHandleQuoteMessage.js +0 -1
  560. package/dist/cjs/components/MessageInput/hooks/useMessageInputState.d.ts +0 -6
  561. package/dist/cjs/components/MessageInput/hooks/useMessageInputState.js +0 -1
  562. package/dist/cjs/components/MessageInput/hooks/useMessageInputText.js +0 -1
  563. package/dist/cjs/components/MessageInput/hooks/useUploadElement.js +0 -1
  564. package/dist/cjs/components/MessageInput/hooks/useUploadPicker.d.ts +0 -5
  565. package/dist/cjs/components/MessageInput/hooks/useUploadPicker.js +0 -1
  566. package/dist/cjs/components/MessageList/MessageList.d.ts +0 -13
  567. package/dist/cjs/components/MessageList/MessageList.js +0 -1
  568. package/dist/cjs/components/MessageList/hooks/useMessageListElement.js +0 -1
  569. package/dist/cjs/components/Model/index.d.ts +0 -9
  570. package/dist/cjs/components/Model/index.js +0 -1
  571. package/dist/cjs/components/PlaceHolder/index.d.ts +0 -34
  572. package/dist/cjs/components/PlaceHolder/index.js +0 -1
  573. package/dist/cjs/components/Plugins/hooks/usePluginsElement.js +0 -1
  574. package/dist/cjs/components/Plugins/index.d.ts +0 -21
  575. package/dist/cjs/components/Plugins/index.js +0 -1
  576. package/dist/cjs/components/Popup/index.d.ts +0 -13
  577. package/dist/cjs/components/Popup/index.js +0 -1
  578. package/dist/cjs/components/Profile/Profile.d.ts +0 -10
  579. package/dist/cjs/components/Profile/Profile.js +0 -1
  580. package/dist/cjs/components/Profile/ProfileDefault.d.ts +0 -12
  581. package/dist/cjs/components/Profile/ProfileDefault.js +0 -1
  582. package/dist/cjs/components/Profile/hooks/useMyProfile.js +0 -1
  583. package/dist/cjs/components/Profile/myProfile/MyProfile.js +0 -1
  584. package/dist/cjs/components/Switch/Switch.d.ts +0 -12
  585. package/dist/cjs/components/Switch/Switch.js +0 -1
  586. package/dist/cjs/components/Switch/utils/newId.js +0 -1
  587. package/dist/cjs/components/Toast/index.d.ts +0 -11
  588. package/dist/cjs/components/Toast/index.js +0 -1
  589. package/dist/cjs/components/utils.js +0 -1
  590. package/dist/cjs/constants.d.ts +0 -11
  591. package/dist/cjs/constants.js +0 -1
  592. package/dist/cjs/context/ChatActionContext.d.ts +0 -26
  593. package/dist/cjs/context/ChatActionContext.js +0 -1
  594. package/dist/cjs/context/ChatStateContext.d.ts +0 -37
  595. package/dist/cjs/context/ChatStateContext.js +0 -1
  596. package/dist/cjs/context/ComponentContext.d.ts +0 -29
  597. package/dist/cjs/context/ComponentContext.js +0 -1
  598. package/dist/cjs/context/ContactContext.d.ts +0 -18
  599. package/dist/cjs/context/ContactContext.js +0 -1
  600. package/dist/cjs/context/ConversationListContext.d.ts +0 -22
  601. package/dist/cjs/context/ConversationListContext.js +0 -1
  602. package/dist/cjs/context/LanguageContext.js +0 -1
  603. package/dist/cjs/context/MessageContext.d.ts +0 -62
  604. package/dist/cjs/context/MessageContext.js +0 -1
  605. package/dist/cjs/context/MessageInputContext.d.ts +0 -36
  606. package/dist/cjs/context/MessageInputContext.js +0 -1
  607. package/dist/cjs/context/ThemeContext.js +0 -1
  608. package/dist/cjs/context/UIKitContext.d.ts +0 -25
  609. package/dist/cjs/context/UIKitContext.js +0 -1
  610. package/dist/cjs/hooks/index.js +0 -1
  611. package/dist/cjs/hooks/useConversation.d.ts +0 -6
  612. package/dist/cjs/hooks/useConversation.js +0 -1
  613. package/dist/cjs/hooks/useLongPress.d.ts +0 -3
  614. package/dist/cjs/hooks/useLongPress.js +0 -1
  615. package/dist/cjs/hooks/useMouseHover.js +0 -1
  616. package/dist/cjs/hooks/useProfile.d.ts +0 -5
  617. package/dist/cjs/hooks/useProfile.js +0 -1
  618. package/dist/cjs/index.css +0 -2
  619. package/dist/cjs/index.d.css +0 -2887
  620. package/dist/cjs/index.d.ts +0 -57
  621. package/dist/cjs/index.js +0 -1
  622. package/dist/cjs/locales/en-US/TUIChat.js +0 -1
  623. package/dist/cjs/locales/en-US/TUIContact.js +0 -1
  624. package/dist/cjs/locales/en-US/TUIConversation.js +0 -1
  625. package/dist/cjs/locales/en-US/TUIProfile.js +0 -1
  626. package/dist/cjs/locales/en-US/emoji.js +0 -1
  627. package/dist/cjs/locales/en-US/index.js +0 -1
  628. package/dist/cjs/locales/index.js +0 -1
  629. package/dist/cjs/locales/ja-JP/TUIChat.js +0 -1
  630. package/dist/cjs/locales/ja-JP/TUIContact.js +0 -1
  631. package/dist/cjs/locales/ja-JP/TUIConversation.js +0 -1
  632. package/dist/cjs/locales/ja-JP/TUIProfile.js +0 -1
  633. package/dist/cjs/locales/ja-JP/emoji.js +0 -1
  634. package/dist/cjs/locales/ja-JP/index.js +0 -1
  635. package/dist/cjs/locales/ko-KR/TUIChat.js +0 -1
  636. package/dist/cjs/locales/ko-KR/TUIContact.js +0 -1
  637. package/dist/cjs/locales/ko-KR/TUIConversation.js +0 -1
  638. package/dist/cjs/locales/ko-KR/TUIProfile.js +0 -1
  639. package/dist/cjs/locales/ko-KR/emoji.js +0 -1
  640. package/dist/cjs/locales/ko-KR/index.js +0 -1
  641. package/dist/cjs/locales/zh-CN/TUIChat.js +0 -1
  642. package/dist/cjs/locales/zh-CN/TUIContact.js +0 -1
  643. package/dist/cjs/locales/zh-CN/TUIConversation.js +0 -1
  644. package/dist/cjs/locales/zh-CN/TUIProfile.js +0 -1
  645. package/dist/cjs/locales/zh-CN/emoji.js +0 -1
  646. package/dist/cjs/locales/zh-CN/index.js +0 -1
  647. package/dist/cjs/locales/zh-TW/TUIChat.js +0 -1
  648. package/dist/cjs/locales/zh-TW/TUIContact.js +0 -1
  649. package/dist/cjs/locales/zh-TW/TUIConversation.js +0 -1
  650. package/dist/cjs/locales/zh-TW/TUIProfile.js +0 -1
  651. package/dist/cjs/locales/zh-TW/emoji.js +0 -1
  652. package/dist/cjs/locales/zh-TW/index.js +0 -1
  653. package/dist/cjs/node_modules/zustand/esm/react.mjs.js +0 -1
  654. package/dist/cjs/node_modules/zustand/esm/vanilla.mjs.js +0 -1
  655. package/dist/cjs/server.js +0 -1
  656. package/dist/cjs/store/UIManagerStore.js +0 -1
  657. package/dist/cjs/utils/env.d.ts +0 -5
  658. package/dist/cjs/utils/env.js +0 -1
  659. package/dist/esm/assets/fonts/iconfont.ttf +0 -0
  660. package/dist/esm/assets/fonts/iconfont.woff +0 -0
  661. package/dist/esm/assets/fonts/iconfont.woff2 +0 -0
  662. package/dist/esm/components/Avatar/Avatar.d.ts +0 -22
  663. package/dist/esm/components/Avatar/Avatar.js +0 -1
  664. package/dist/esm/components/Avatar/default.d.ts +0 -7
  665. package/dist/esm/components/Avatar/default.js +0 -1
  666. package/dist/esm/components/Chat/Chat.d.ts +0 -39
  667. package/dist/esm/components/Chat/Chat.js +0 -1
  668. package/dist/esm/components/Chat/ChatState.js +0 -1
  669. package/dist/esm/components/Chat/hooks/useCreateTUIChatStateContext.js +0 -1
  670. package/dist/esm/components/Chat/hooks/useHandleMessage.d.ts +0 -7
  671. package/dist/esm/components/Chat/hooks/useHandleMessage.js +0 -1
  672. package/dist/esm/components/Chat/hooks/useHandleMessageList.js +0 -1
  673. package/dist/esm/components/Chat/index.js +0 -1
  674. package/dist/esm/components/Chat/server.js +0 -1
  675. package/dist/esm/components/Chat/utils.js +0 -1
  676. package/dist/esm/components/ChatHeader/ChatHeader.d.ts +0 -16
  677. package/dist/esm/components/ChatHeader/ChatHeader.js +0 -1
  678. package/dist/esm/components/ChatHeader/ChatHeaderDefault.d.ts +0 -18
  679. package/dist/esm/components/ChatHeader/ChatHeaderDefault.js +0 -1
  680. package/dist/esm/components/ChatSetting/ChatSetting.d.ts +0 -6
  681. package/dist/esm/components/ChatSetting/ChatSetting.js +0 -1
  682. package/dist/esm/components/Checkbox/index.d.ts +0 -17
  683. package/dist/esm/components/Checkbox/index.js +0 -1
  684. package/dist/esm/components/Contact/Contact.d.ts +0 -6
  685. package/dist/esm/components/Contact/Contact.js +0 -1
  686. package/dist/esm/components/Contact/ContactInfo/ContactInfo.d.ts +0 -10
  687. package/dist/esm/components/Contact/ContactInfo/ContactInfo.js +0 -1
  688. package/dist/esm/components/Contact/ContactInfo/addFriendInfo.js +0 -1
  689. package/dist/esm/components/Contact/ContactInfo/basicInfo.js +0 -1
  690. package/dist/esm/components/Contact/ContactInfo/blockInfo.js +0 -1
  691. package/dist/esm/components/Contact/ContactInfo/friendApplication.js +0 -1
  692. package/dist/esm/components/Contact/ContactInfo/friendInfo.js +0 -1
  693. package/dist/esm/components/Contact/ContactInfo/groupInfo.js +0 -1
  694. package/dist/esm/components/Contact/ContactInfo/hooks/useContactInfo.js +0 -1
  695. package/dist/esm/components/Contact/ContactList/ContactList.d.ts +0 -6
  696. package/dist/esm/components/Contact/ContactList/ContactList.js +0 -1
  697. package/dist/esm/components/Contact/hooks/useTUIContact.js +0 -1
  698. package/dist/esm/components/ContactSearch/ContactSearch.js +0 -1
  699. package/dist/esm/components/ContactSearch/hooks/useContactSearch.js +0 -1
  700. package/dist/esm/components/ConversationActions/ConversationActions.d.ts +0 -52
  701. package/dist/esm/components/ConversationActions/ConversationActions.js +0 -1
  702. package/dist/esm/components/ConversationCreate/ConversationCreate.d.ts +0 -21
  703. package/dist/esm/components/ConversationCreate/ConversationCreate.js +0 -1
  704. package/dist/esm/components/ConversationCreate/ConversationCreateButton.d.ts +0 -13
  705. package/dist/esm/components/ConversationCreate/ConversationCreateButton.js +0 -1
  706. package/dist/esm/components/ConversationCreate/ConversationCreateGroupDetail.d.ts +0 -16
  707. package/dist/esm/components/ConversationCreate/ConversationCreateGroupDetail.js +0 -1
  708. package/dist/esm/components/ConversationCreate/ConversationCreateSelectView.d.ts +0 -15
  709. package/dist/esm/components/ConversationCreate/ConversationCreateSelectView.js +0 -1
  710. package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.d.ts +0 -18
  711. package/dist/esm/components/ConversationCreate/ConversationCreateUserSelectList.js +0 -1
  712. package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.d.ts +0 -24
  713. package/dist/esm/components/ConversationCreate/ConversationGroupTypeInfo.js +0 -1
  714. package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.d.ts +0 -14
  715. package/dist/esm/components/ConversationCreate/hooks/useConversationCreate.js +0 -1
  716. package/dist/esm/components/ConversationCreate/static/word.js +0 -1
  717. package/dist/esm/components/ConversationList/ConversationList.d.ts +0 -57
  718. package/dist/esm/components/ConversationList/ConversationList.js +0 -1
  719. package/dist/esm/components/ConversationList/ConversationListContent/ConversationListContent.d.ts +0 -23
  720. package/dist/esm/components/ConversationList/ConversationListContent/ConversationListContent.js +0 -1
  721. package/dist/esm/components/ConversationList/ConversationListHeader/ConversationListHeader.d.ts +0 -15
  722. package/dist/esm/components/ConversationList/ConversationListHeader/ConversationListHeader.js +0 -1
  723. package/dist/esm/components/ConversationPreview/ConversationPreview.d.ts +0 -45
  724. package/dist/esm/components/ConversationPreview/ConversationPreview.js +0 -1
  725. package/dist/esm/components/ConversationPreview/utils.js +0 -1
  726. package/dist/esm/components/ConversationSearch/ConversationSearch.d.ts +0 -39
  727. package/dist/esm/components/ConversationSearch/ConversationSearch.js +0 -1
  728. package/dist/esm/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.d.ts +0 -7
  729. package/dist/esm/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.js +0 -1
  730. package/dist/esm/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.d.ts +0 -29
  731. package/dist/esm/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.js +0 -1
  732. package/dist/esm/components/DivWithEdit/DivWithEdit.d.ts +0 -17
  733. package/dist/esm/components/DivWithEdit/DivWithEdit.js +0 -1
  734. package/dist/esm/components/DivWithEdit/WithSelect.js +0 -1
  735. package/dist/esm/components/DivWithEdit/WithText.js +0 -1
  736. package/dist/esm/components/EmptyStateIndicator/EmptyStateIndicator.d.ts +0 -11
  737. package/dist/esm/components/EmptyStateIndicator/EmptyStateIndicator.js +0 -1
  738. package/dist/esm/components/Icon/Icon.d.ts +0 -15
  739. package/dist/esm/components/Icon/Icon.js +0 -1
  740. package/dist/esm/components/Icon/config.js +0 -1
  741. package/dist/esm/components/Icon/images/add-friend.svg.js +0 -1
  742. package/dist/esm/components/Icon/images/add.png.js +0 -1
  743. package/dist/esm/components/Icon/images/arrow-down.png.js +0 -1
  744. package/dist/esm/components/Icon/images/arrow-right.png.js +0 -1
  745. package/dist/esm/components/Icon/images/back.png.js +0 -1
  746. package/dist/esm/components/Icon/images/camera.png.js +0 -1
  747. package/dist/esm/components/Icon/images/cancel.png.js +0 -1
  748. package/dist/esm/components/Icon/images/clear.png.js +0 -1
  749. package/dist/esm/components/Icon/images/close.png.js +0 -1
  750. package/dist/esm/components/Icon/images/confirm.png.js +0 -1
  751. package/dist/esm/components/Icon/images/copy.png.js +0 -1
  752. package/dist/esm/components/Icon/images/cry.png.js +0 -1
  753. package/dist/esm/components/Icon/images/del.png.js +0 -1
  754. package/dist/esm/components/Icon/images/edit.png.js +0 -1
  755. package/dist/esm/components/Icon/images/effort.png.js +0 -1
  756. package/dist/esm/components/Icon/images/ellipse.png.js +0 -1
  757. package/dist/esm/components/Icon/images/emoji.png.js +0 -1
  758. package/dist/esm/components/Icon/images/file.png.js +0 -1
  759. package/dist/esm/components/Icon/images/files.png.js +0 -1
  760. package/dist/esm/components/Icon/images/forward.png.js +0 -1
  761. package/dist/esm/components/Icon/images/image.png.js +0 -1
  762. package/dist/esm/components/Icon/images/like.png.js +0 -1
  763. package/dist/esm/components/Icon/images/liked.png.js +0 -1
  764. package/dist/esm/components/Icon/images/living.png.js +0 -1
  765. package/dist/esm/components/Icon/images/member.png.js +0 -1
  766. package/dist/esm/components/Icon/images/more.png.js +0 -1
  767. package/dist/esm/components/Icon/images/mute.svg.js +0 -1
  768. package/dist/esm/components/Icon/images/owner.png.js +0 -1
  769. package/dist/esm/components/Icon/images/progress.png.js +0 -1
  770. package/dist/esm/components/Icon/images/quote.png.js +0 -1
  771. package/dist/esm/components/Icon/images/reply.png.js +0 -1
  772. package/dist/esm/components/Icon/images/revocation.png.js +0 -1
  773. package/dist/esm/components/Icon/images/right.png.js +0 -1
  774. package/dist/esm/components/Icon/images/search.png.js +0 -1
  775. package/dist/esm/components/Icon/images/send.png.js +0 -1
  776. package/dist/esm/components/Icon/images/star.png.js +0 -1
  777. package/dist/esm/components/Icon/images/union.png.js +0 -1
  778. package/dist/esm/components/Icon/images/unlike.png.js +0 -1
  779. package/dist/esm/components/Icon/images/unliked.png.js +0 -1
  780. package/dist/esm/components/Icon/images/ununion.png.js +0 -1
  781. package/dist/esm/components/Icon/images/unvector.png.js +0 -1
  782. package/dist/esm/components/Icon/images/vector.png.js +0 -1
  783. package/dist/esm/components/Icon/images/video-call.svg.js +0 -1
  784. package/dist/esm/components/Icon/images/video.png.js +0 -1
  785. package/dist/esm/components/Icon/images/voice-call.svg.js +0 -1
  786. package/dist/esm/components/Icon/images/voice.png.js +0 -1
  787. package/dist/esm/components/Icon/type.d.ts +0 -52
  788. package/dist/esm/components/Icon/type.js +0 -1
  789. package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +0 -20
  790. package/dist/esm/components/InfiniteScrollPaginator/InfiniteScroll.js +0 -1
  791. package/dist/esm/components/Input/Input.d.ts +0 -26
  792. package/dist/esm/components/Input/Input.js +0 -1
  793. package/dist/esm/components/MessageElement/Message.d.ts +0 -61
  794. package/dist/esm/components/MessageElement/Message.js +0 -1
  795. package/dist/esm/components/MessageElement/MessageAudio.js +0 -1
  796. package/dist/esm/components/MessageElement/MessageAvatar.js +0 -1
  797. package/dist/esm/components/MessageElement/MessageBubble.js +0 -1
  798. package/dist/esm/components/MessageElement/MessageContext.d.ts +0 -9
  799. package/dist/esm/components/MessageElement/MessageContext.js +0 -1
  800. package/dist/esm/components/MessageElement/MessageCustom.js +0 -1
  801. package/dist/esm/components/MessageElement/MessageDefault.js +0 -1
  802. package/dist/esm/components/MessageElement/MessageFace.js +0 -1
  803. package/dist/esm/components/MessageElement/MessageFile.js +0 -1
  804. package/dist/esm/components/MessageElement/MessageImage.js +0 -1
  805. package/dist/esm/components/MessageElement/MessageLocation.js +0 -1
  806. package/dist/esm/components/MessageElement/MessageMerger.js +0 -1
  807. package/dist/esm/components/MessageElement/MessageName.js +0 -1
  808. package/dist/esm/components/MessageElement/MessagePlugins.d.ts +0 -24
  809. package/dist/esm/components/MessageElement/MessagePlugins.js +0 -1
  810. package/dist/esm/components/MessageElement/MessageProgress.js +0 -1
  811. package/dist/esm/components/MessageElement/MessageRevoke.js +0 -1
  812. package/dist/esm/components/MessageElement/MessageStatus.js +0 -1
  813. package/dist/esm/components/MessageElement/MessageSystem.js +0 -1
  814. package/dist/esm/components/MessageElement/MessageText.js +0 -1
  815. package/dist/esm/components/MessageElement/MessageTip.js +0 -1
  816. package/dist/esm/components/MessageElement/MessageVideo.js +0 -1
  817. package/dist/esm/components/MessageElement/hooks/useMessageContextHandler.js +0 -1
  818. package/dist/esm/components/MessageElement/hooks/useMessageHandler.js +0 -1
  819. package/dist/esm/components/MessageElement/hooks/useMessagePluginElement.js +0 -1
  820. package/dist/esm/components/MessageElement/hooks/useMessageReply.js +0 -1
  821. package/dist/esm/components/MessageElement/utils/decodeText.js +0 -1
  822. package/dist/esm/components/MessageElement/utils/emojiMap.js +0 -1
  823. package/dist/esm/components/MessageElement/utils/index.js +0 -1
  824. package/dist/esm/components/MessageInput/EmojiPicker.js +0 -1
  825. package/dist/esm/components/MessageInput/Forward.js +0 -1
  826. package/dist/esm/components/MessageInput/InputPluginsDefalut.d.ts +0 -5
  827. package/dist/esm/components/MessageInput/InputPluginsDefalut.js +0 -1
  828. package/dist/esm/components/MessageInput/InputQuoteDefalut.js +0 -1
  829. package/dist/esm/components/MessageInput/MessageInput.d.ts +0 -29
  830. package/dist/esm/components/MessageInput/MessageInput.js +0 -1
  831. package/dist/esm/components/MessageInput/MessageInputDefault.d.ts +0 -5
  832. package/dist/esm/components/MessageInput/MessageInputDefault.js +0 -1
  833. package/dist/esm/components/MessageInput/Transmitter.js +0 -1
  834. package/dist/esm/components/MessageInput/hooks/useCreateMessageInputContext.js +0 -1
  835. package/dist/esm/components/MessageInput/hooks/useEmojiPicker.d.ts +0 -6
  836. package/dist/esm/components/MessageInput/hooks/useEmojiPicker.js +0 -1
  837. package/dist/esm/components/MessageInput/hooks/useHandleForwardMessage.js +0 -1
  838. package/dist/esm/components/MessageInput/hooks/useHandleQuoteMessage.js +0 -1
  839. package/dist/esm/components/MessageInput/hooks/useMessageInputState.d.ts +0 -6
  840. package/dist/esm/components/MessageInput/hooks/useMessageInputState.js +0 -1
  841. package/dist/esm/components/MessageInput/hooks/useMessageInputText.js +0 -1
  842. package/dist/esm/components/MessageInput/hooks/useUploadElement.js +0 -1
  843. package/dist/esm/components/MessageInput/hooks/useUploadPicker.d.ts +0 -5
  844. package/dist/esm/components/MessageInput/hooks/useUploadPicker.js +0 -1
  845. package/dist/esm/components/MessageList/MessageList.d.ts +0 -13
  846. package/dist/esm/components/MessageList/MessageList.js +0 -1
  847. package/dist/esm/components/MessageList/hooks/useMessageListElement.js +0 -1
  848. package/dist/esm/components/Model/index.d.ts +0 -9
  849. package/dist/esm/components/Model/index.js +0 -1
  850. package/dist/esm/components/PlaceHolder/index.d.ts +0 -34
  851. package/dist/esm/components/PlaceHolder/index.js +0 -1
  852. package/dist/esm/components/Plugins/hooks/usePluginsElement.js +0 -1
  853. package/dist/esm/components/Plugins/index.d.ts +0 -21
  854. package/dist/esm/components/Plugins/index.js +0 -1
  855. package/dist/esm/components/Popup/index.d.ts +0 -13
  856. package/dist/esm/components/Popup/index.js +0 -1
  857. package/dist/esm/components/Profile/Profile.d.ts +0 -10
  858. package/dist/esm/components/Profile/Profile.js +0 -1
  859. package/dist/esm/components/Profile/ProfileDefault.d.ts +0 -12
  860. package/dist/esm/components/Profile/ProfileDefault.js +0 -1
  861. package/dist/esm/components/Profile/hooks/useMyProfile.js +0 -1
  862. package/dist/esm/components/Profile/myProfile/MyProfile.js +0 -1
  863. package/dist/esm/components/Switch/Switch.d.ts +0 -12
  864. package/dist/esm/components/Switch/Switch.js +0 -1
  865. package/dist/esm/components/Switch/utils/newId.js +0 -1
  866. package/dist/esm/components/Toast/index.d.ts +0 -11
  867. package/dist/esm/components/Toast/index.js +0 -1
  868. package/dist/esm/components/utils.js +0 -1
  869. package/dist/esm/constants.d.ts +0 -11
  870. package/dist/esm/constants.js +0 -1
  871. package/dist/esm/context/ChatActionContext.d.ts +0 -26
  872. package/dist/esm/context/ChatActionContext.js +0 -1
  873. package/dist/esm/context/ChatStateContext.d.ts +0 -37
  874. package/dist/esm/context/ChatStateContext.js +0 -1
  875. package/dist/esm/context/ComponentContext.d.ts +0 -29
  876. package/dist/esm/context/ComponentContext.js +0 -1
  877. package/dist/esm/context/ContactContext.d.ts +0 -18
  878. package/dist/esm/context/ContactContext.js +0 -1
  879. package/dist/esm/context/ConversationListContext.d.ts +0 -22
  880. package/dist/esm/context/ConversationListContext.js +0 -1
  881. package/dist/esm/context/LanguageContext.js +0 -1
  882. package/dist/esm/context/MessageContext.d.ts +0 -62
  883. package/dist/esm/context/MessageContext.js +0 -1
  884. package/dist/esm/context/MessageInputContext.d.ts +0 -36
  885. package/dist/esm/context/MessageInputContext.js +0 -1
  886. package/dist/esm/context/ThemeContext.js +0 -1
  887. package/dist/esm/context/UIKitContext.d.ts +0 -25
  888. package/dist/esm/context/UIKitContext.js +0 -1
  889. package/dist/esm/hooks/index.js +0 -1
  890. package/dist/esm/hooks/useConversation.d.ts +0 -6
  891. package/dist/esm/hooks/useConversation.js +0 -1
  892. package/dist/esm/hooks/useLongPress.d.ts +0 -3
  893. package/dist/esm/hooks/useLongPress.js +0 -1
  894. package/dist/esm/hooks/useMouseHover.js +0 -1
  895. package/dist/esm/hooks/useProfile.d.ts +0 -5
  896. package/dist/esm/hooks/useProfile.js +0 -1
  897. package/dist/esm/index.css +0 -2
  898. package/dist/esm/index.d.css +0 -2887
  899. package/dist/esm/index.d.ts +0 -57
  900. package/dist/esm/index.js +0 -1
  901. package/dist/esm/locales/en-US/TUIChat.js +0 -1
  902. package/dist/esm/locales/en-US/TUIContact.js +0 -1
  903. package/dist/esm/locales/en-US/TUIConversation.js +0 -1
  904. package/dist/esm/locales/en-US/TUIProfile.js +0 -1
  905. package/dist/esm/locales/en-US/emoji.js +0 -1
  906. package/dist/esm/locales/en-US/index.js +0 -1
  907. package/dist/esm/locales/index.js +0 -1
  908. package/dist/esm/locales/ja-JP/TUIChat.js +0 -1
  909. package/dist/esm/locales/ja-JP/TUIContact.js +0 -1
  910. package/dist/esm/locales/ja-JP/TUIConversation.js +0 -1
  911. package/dist/esm/locales/ja-JP/TUIProfile.js +0 -1
  912. package/dist/esm/locales/ja-JP/emoji.js +0 -1
  913. package/dist/esm/locales/ja-JP/index.js +0 -1
  914. package/dist/esm/locales/ko-KR/TUIChat.js +0 -1
  915. package/dist/esm/locales/ko-KR/TUIContact.js +0 -1
  916. package/dist/esm/locales/ko-KR/TUIConversation.js +0 -1
  917. package/dist/esm/locales/ko-KR/TUIProfile.js +0 -1
  918. package/dist/esm/locales/ko-KR/emoji.js +0 -1
  919. package/dist/esm/locales/ko-KR/index.js +0 -1
  920. package/dist/esm/locales/zh-CN/TUIChat.js +0 -1
  921. package/dist/esm/locales/zh-CN/TUIContact.js +0 -1
  922. package/dist/esm/locales/zh-CN/TUIConversation.js +0 -1
  923. package/dist/esm/locales/zh-CN/TUIProfile.js +0 -1
  924. package/dist/esm/locales/zh-CN/emoji.js +0 -1
  925. package/dist/esm/locales/zh-CN/index.js +0 -1
  926. package/dist/esm/locales/zh-TW/TUIChat.js +0 -1
  927. package/dist/esm/locales/zh-TW/TUIContact.js +0 -1
  928. package/dist/esm/locales/zh-TW/TUIConversation.js +0 -1
  929. package/dist/esm/locales/zh-TW/TUIProfile.js +0 -1
  930. package/dist/esm/locales/zh-TW/emoji.js +0 -1
  931. package/dist/esm/locales/zh-TW/index.js +0 -1
  932. package/dist/esm/node_modules/zustand/esm/react.mjs.js +0 -1
  933. package/dist/esm/node_modules/zustand/esm/vanilla.mjs.js +0 -1
  934. package/dist/esm/server.js +0 -1
  935. package/dist/esm/store/UIManagerStore.js +0 -1
  936. package/dist/esm/utils/env.d.ts +0 -5
  937. package/dist/esm/utils/env.js +0 -1
  938. package/index.ts +0 -1
  939. package/src/@types/images.d.ts +0 -7
  940. package/src/components/Avatar/Avatar.tsx +0 -157
  941. package/src/components/Avatar/index.ts +0 -2
  942. package/src/components/Avatar/styles/index.scss +0 -63
  943. package/src/components/Chat/ChatState.tsx +0 -129
  944. package/src/components/Chat/hooks/useCreateTUIChatStateContext.tsx +0 -46
  945. package/src/components/Chat/hooks/useHandleMessage.tsx +0 -65
  946. package/src/components/Chat/hooks/useHandleMessageList.tsx +0 -47
  947. package/src/components/Chat/hooks/useIsMounted.ts +0 -14
  948. package/src/components/Chat/server.ts +0 -44
  949. package/src/components/Chat/styles/index.scss +0 -1
  950. package/src/components/Chat/styles/layout.scss +0 -15
  951. package/src/components/Chat/utils.ts +0 -72
  952. package/src/components/ChatHeader/ChatHeaderDefault.tsx +0 -167
  953. package/src/components/ChatHeader/styles/index.scss +0 -2
  954. package/src/components/ChatHeader/styles/layout.scss +0 -46
  955. package/src/components/ChatSetting/ChatSetting.tsx +0 -117
  956. package/src/components/ChatSetting/index.ts +0 -1
  957. package/src/components/ChatSetting/styles/index.scss +0 -104
  958. package/src/components/Contact/Contact.tsx +0 -97
  959. package/src/components/Contact/ContactInfo/ContactInfo.tsx +0 -35
  960. package/src/components/Contact/ContactInfo/addFriendInfo.tsx +0 -88
  961. package/src/components/Contact/ContactInfo/basicInfo.tsx +0 -52
  962. package/src/components/Contact/ContactInfo/blockInfo.tsx +0 -45
  963. package/src/components/Contact/ContactInfo/friendApplication.tsx +0 -66
  964. package/src/components/Contact/ContactInfo/friendInfo.tsx +0 -106
  965. package/src/components/Contact/ContactInfo/groupInfo.tsx +0 -65
  966. package/src/components/Contact/ContactInfo/hooks/useContactInfo.tsx +0 -102
  967. package/src/components/Contact/ContactInfo/index.scss +0 -136
  968. package/src/components/Contact/ContactList/ContactList.tsx +0 -176
  969. package/src/components/Contact/ContactList/index.scss +0 -115
  970. package/src/components/Contact/hooks/useTUIContact.tsx +0 -89
  971. package/src/components/Contact/index.scss +0 -91
  972. package/src/components/Contact/index.ts +0 -3
  973. package/src/components/ContactSearch/ContactSearch.tsx +0 -101
  974. package/src/components/ContactSearch/hooks/useContactSearch.tsx +0 -31
  975. package/src/components/ContactSearch/index.scss +0 -33
  976. package/src/components/ConversationActions/ConversationActions.scss +0 -45
  977. package/src/components/ConversationActions/ConversationActions.tsx +0 -172
  978. package/src/components/ConversationActions/index.ts +0 -1
  979. package/src/components/ConversationCreate/ConversationCreate.tsx +0 -136
  980. package/src/components/ConversationCreate/ConversationCreateButton.tsx +0 -46
  981. package/src/components/ConversationCreate/ConversationCreateGroupDetail.tsx +0 -179
  982. package/src/components/ConversationCreate/ConversationCreateSelectView.tsx +0 -46
  983. package/src/components/ConversationCreate/ConversationCreateUserSelectList.tsx +0 -168
  984. package/src/components/ConversationCreate/ConversationGroupTypeInfo.tsx +0 -54
  985. package/src/components/ConversationCreate/hooks/useConversationCreate.tsx +0 -118
  986. package/src/components/ConversationCreate/index.ts +0 -7
  987. package/src/components/ConversationCreate/static/word.ts +0 -300
  988. package/src/components/ConversationCreate/styles/ConversationCreateGroupDetail.scss +0 -68
  989. package/src/components/ConversationCreate/styles/conversationCreateButton.scss +0 -5
  990. package/src/components/ConversationCreate/styles/conversationCreateSelectView.scss +0 -38
  991. package/src/components/ConversationCreate/styles/conversationGroupTypeInfo.scss +0 -64
  992. package/src/components/ConversationCreate/styles/index.scss +0 -149
  993. package/src/components/ConversationList/ConversationList.scss +0 -29
  994. package/src/components/ConversationList/ConversationList.tsx +0 -155
  995. package/src/components/ConversationList/ConversationListContent/ConversationListContent.scss +0 -16
  996. package/src/components/ConversationList/ConversationListContent/ConversationListContent.tsx +0 -63
  997. package/src/components/ConversationList/ConversationListContent/index.ts +0 -1
  998. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.scss +0 -28
  999. package/src/components/ConversationList/ConversationListHeader/ConversationListHeader.tsx +0 -43
  1000. package/src/components/ConversationList/ConversationListHeader/index.ts +0 -1
  1001. package/src/components/ConversationList/index.ts +0 -3
  1002. package/src/components/ConversationPreview/ConversationPreview.scss +0 -137
  1003. package/src/components/ConversationPreview/ConversationPreview.tsx +0 -260
  1004. package/src/components/ConversationPreview/index.ts +0 -1
  1005. package/src/components/ConversationPreview/utils.tsx +0 -145
  1006. package/src/components/ConversationSearch/ConversationSearch.scss +0 -22
  1007. package/src/components/ConversationSearch/ConversationSearch.tsx +0 -125
  1008. package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.scss +0 -13
  1009. package/src/components/ConversationSearch/ConversationSearchInput/ConversationSearchInput.tsx +0 -42
  1010. package/src/components/ConversationSearch/ConversationSearchInput/index.ts +0 -1
  1011. package/src/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.scss +0 -15
  1012. package/src/components/ConversationSearch/ConversationSearchResult/ConversationSearchResult.tsx +0 -72
  1013. package/src/components/ConversationSearch/ConversationSearchResult/index.ts +0 -1
  1014. package/src/components/ConversationSearch/index.ts +0 -3
  1015. package/src/components/InfiniteScrollPaginator/InfiniteScroll.tsx +0 -115
  1016. package/src/components/InfiniteScrollPaginator/index.ts +0 -1
  1017. package/src/components/Input/styles/index.scss +0 -62
  1018. package/src/components/MessageElement/Message.tsx +0 -150
  1019. package/src/components/MessageElement/MessageAudio.tsx +0 -89
  1020. package/src/components/MessageElement/MessageAvatar.tsx +0 -38
  1021. package/src/components/MessageElement/MessageBubble.tsx +0 -137
  1022. package/src/components/MessageElement/MessageContext.tsx +0 -84
  1023. package/src/components/MessageElement/MessageCustom.tsx +0 -85
  1024. package/src/components/MessageElement/MessageDefault.tsx +0 -104
  1025. package/src/components/MessageElement/MessageFace.tsx +0 -28
  1026. package/src/components/MessageElement/MessageFile.tsx +0 -41
  1027. package/src/components/MessageElement/MessageImage.tsx +0 -46
  1028. package/src/components/MessageElement/MessageLocation.tsx +0 -29
  1029. package/src/components/MessageElement/MessageMerger.tsx +0 -38
  1030. package/src/components/MessageElement/MessageName.tsx +0 -41
  1031. package/src/components/MessageElement/MessagePlugins.tsx +0 -230
  1032. package/src/components/MessageElement/MessageProgress.tsx +0 -89
  1033. package/src/components/MessageElement/MessageRevoke.tsx +0 -48
  1034. package/src/components/MessageElement/MessageStatus.tsx +0 -40
  1035. package/src/components/MessageElement/MessageSystem.tsx +0 -30
  1036. package/src/components/MessageElement/MessageText.tsx +0 -66
  1037. package/src/components/MessageElement/MessageTip.tsx +0 -28
  1038. package/src/components/MessageElement/MessageVideo.tsx +0 -45
  1039. package/src/components/MessageElement/hooks/index.ts +0 -3
  1040. package/src/components/MessageElement/hooks/useMessageContextHandler.ts +0 -70
  1041. package/src/components/MessageElement/hooks/useMessageHandler.ts +0 -127
  1042. package/src/components/MessageElement/hooks/useMessagePluginElement.tsx +0 -31
  1043. package/src/components/MessageElement/hooks/useMessageReply.ts +0 -69
  1044. package/src/components/MessageElement/index.ts +0 -3
  1045. package/src/components/MessageElement/styles/color.scss +0 -45
  1046. package/src/components/MessageElement/styles/index.scss +0 -2
  1047. package/src/components/MessageElement/styles/layout.scss +0 -609
  1048. package/src/components/MessageElement/utils/decodeText.ts +0 -110
  1049. package/src/components/MessageElement/utils/emojiMap.ts +0 -95
  1050. package/src/components/MessageElement/utils/index.ts +0 -472
  1051. package/src/components/MessageInput/EmojiPicker.tsx +0 -80
  1052. package/src/components/MessageInput/Forward.tsx +0 -187
  1053. package/src/components/MessageInput/InputPluginsDefalut.tsx +0 -114
  1054. package/src/components/MessageInput/InputQuoteDefalut.tsx +0 -44
  1055. package/src/components/MessageInput/MessageInput.tsx +0 -116
  1056. package/src/components/MessageInput/MessageInputDefault.tsx +0 -86
  1057. package/src/components/MessageInput/Transmitter.tsx +0 -15
  1058. package/src/components/MessageInput/hooks/index.ts +0 -6
  1059. package/src/components/MessageInput/hooks/useCreateMessageInputContext.ts +0 -45
  1060. package/src/components/MessageInput/hooks/useEmojiPicker.tsx +0 -40
  1061. package/src/components/MessageInput/hooks/useHandleForwardMessage.tsx +0 -42
  1062. package/src/components/MessageInput/hooks/useHandleQuoteMessage.tsx +0 -64
  1063. package/src/components/MessageInput/hooks/useMessageInputState.tsx +0 -102
  1064. package/src/components/MessageInput/hooks/useMessageInputText.tsx +0 -193
  1065. package/src/components/MessageInput/hooks/usePluginsElement.tsx +0 -24
  1066. package/src/components/MessageInput/hooks/useUploadElement.tsx +0 -35
  1067. package/src/components/MessageInput/hooks/useUploadPicker.tsx +0 -38
  1068. package/src/components/MessageInput/index.ts +0 -3
  1069. package/src/components/MessageInput/styles/color.scss +0 -40
  1070. package/src/components/MessageInput/styles/index.scss +0 -2
  1071. package/src/components/MessageInput/styles/layout.scss +0 -360
  1072. package/src/components/MessageList/MessageList.tsx +0 -133
  1073. package/src/components/MessageList/hooks/useMessageListElement.tsx +0 -50
  1074. package/src/components/MessageList/index.ts +0 -1
  1075. package/src/components/MessageList/styles/index.scss +0 -2
  1076. package/src/components/MessageList/styles/layout.scss +0 -61
  1077. package/src/components/PlaceHolder/index.tsx +0 -79
  1078. package/src/components/PlaceHolder/styles/index.scss +0 -36
  1079. package/src/components/Toast/index.tsx +0 -44
  1080. package/src/components/Toast/styles/color.scss +0 -11
  1081. package/src/components/Toast/styles/index.scss +0 -2
  1082. package/src/components/Toast/styles/layout.scss +0 -11
  1083. package/src/components/utils.ts +0 -96
  1084. package/src/constants.ts +0 -95
  1085. package/src/context/ChatActionContext.tsx +0 -51
  1086. package/src/context/ChatStateContext.tsx +0 -49
  1087. package/src/context/ComponentContext.tsx +0 -48
  1088. package/src/context/ConversationListContext.tsx +0 -113
  1089. package/src/context/LanguageContext.tsx +0 -61
  1090. package/src/context/MessageContext.tsx +0 -55
  1091. package/src/context/MessageInputContext.tsx +0 -54
  1092. package/src/context/ThemeContext.tsx +0 -68
  1093. package/src/context/UIKitContext.tsx +0 -70
  1094. package/src/context/UIManagerContext.tsx +0 -163
  1095. package/src/hooks/useConversation.tsx +0 -30
  1096. package/src/hooks/useLongPress.tsx +0 -117
  1097. package/src/hooks/useMouseHover.tsx +0 -21
  1098. package/src/hooks/useProfile.tsx +0 -8
  1099. package/src/server.ts +0 -43
  1100. package/src/store/UIManagerStore.ts +0 -108
  1101. package/src/store/index.ts +0 -5
  1102. package/src/styles/colors/_color-dark.scss +0 -45
  1103. package/src/styles/colors/_color-light.scss +0 -45
  1104. package/src/styles/colors/_color-theme.scss +0 -65
  1105. package/src/utils/env.ts +0 -10
  1106. /package/{src/components/ChatHeader/styles/color.scss → dist/external_modules/lodash-vwDjcXxQ.js} +0 -0
  1107. /package/{src/components/MessageList/styles/color.scss → dist/types/message.js} +0 -0
  1108. /package/src/{components/Avatar/default.ts → constant/avatar.ts} +0 -0
@@ -0,0 +1,1238 @@
1
+ import { g as Ye } from "./classnames-HRMVOjAa.js";
2
+ import V from "react";
3
+ import Q from "react-dom";
4
+ var he = { exports: {} }, ee = { exports: {} }, S = {};
5
+ /** @license React v16.13.1
6
+ * react-is.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ var Te;
14
+ function We() {
15
+ if (Te) return S;
16
+ Te = 1;
17
+ var r = typeof Symbol == "function" && Symbol.for, u = r ? Symbol.for("react.element") : 60103, l = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, t = r ? Symbol.for("react.profiler") : 60114, a = r ? Symbol.for("react.provider") : 60109, n = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, v = r ? Symbol.for("react.forward_ref") : 60112, E = r ? Symbol.for("react.suspense") : 60113, P = r ? Symbol.for("react.suspense_list") : 60120, A = r ? Symbol.for("react.memo") : 60115, M = r ? Symbol.for("react.lazy") : 60116, w = r ? Symbol.for("react.block") : 60121, I = r ? Symbol.for("react.fundamental") : 60117, D = r ? Symbol.for("react.responder") : 60118, B = r ? Symbol.for("react.scope") : 60119;
18
+ function $(c) {
19
+ if (typeof c == "object" && c !== null) {
20
+ var Y = c.$$typeof;
21
+ switch (Y) {
22
+ case u:
23
+ switch (c = c.type, c) {
24
+ case f:
25
+ case p:
26
+ case e:
27
+ case t:
28
+ case i:
29
+ case E:
30
+ return c;
31
+ default:
32
+ switch (c = c && c.$$typeof, c) {
33
+ case n:
34
+ case v:
35
+ case M:
36
+ case A:
37
+ case a:
38
+ return c;
39
+ default:
40
+ return Y;
41
+ }
42
+ }
43
+ case l:
44
+ return Y;
45
+ }
46
+ }
47
+ }
48
+ function N(c) {
49
+ return $(c) === p;
50
+ }
51
+ return S.AsyncMode = f, S.ConcurrentMode = p, S.ContextConsumer = n, S.ContextProvider = a, S.Element = u, S.ForwardRef = v, S.Fragment = e, S.Lazy = M, S.Memo = A, S.Portal = l, S.Profiler = t, S.StrictMode = i, S.Suspense = E, S.isAsyncMode = function(c) {
52
+ return N(c) || $(c) === f;
53
+ }, S.isConcurrentMode = N, S.isContextConsumer = function(c) {
54
+ return $(c) === n;
55
+ }, S.isContextProvider = function(c) {
56
+ return $(c) === a;
57
+ }, S.isElement = function(c) {
58
+ return typeof c == "object" && c !== null && c.$$typeof === u;
59
+ }, S.isForwardRef = function(c) {
60
+ return $(c) === v;
61
+ }, S.isFragment = function(c) {
62
+ return $(c) === e;
63
+ }, S.isLazy = function(c) {
64
+ return $(c) === M;
65
+ }, S.isMemo = function(c) {
66
+ return $(c) === A;
67
+ }, S.isPortal = function(c) {
68
+ return $(c) === l;
69
+ }, S.isProfiler = function(c) {
70
+ return $(c) === t;
71
+ }, S.isStrictMode = function(c) {
72
+ return $(c) === i;
73
+ }, S.isSuspense = function(c) {
74
+ return $(c) === E;
75
+ }, S.isValidElementType = function(c) {
76
+ return typeof c == "string" || typeof c == "function" || c === e || c === p || c === t || c === i || c === E || c === P || typeof c == "object" && c !== null && (c.$$typeof === M || c.$$typeof === A || c.$$typeof === a || c.$$typeof === n || c.$$typeof === v || c.$$typeof === I || c.$$typeof === D || c.$$typeof === B || c.$$typeof === w);
77
+ }, S.typeOf = $, S;
78
+ }
79
+ var _ = {};
80
+ /** @license React v16.13.1
81
+ * react-is.development.js
82
+ *
83
+ * Copyright (c) Facebook, Inc. and its affiliates.
84
+ *
85
+ * This source code is licensed under the MIT license found in the
86
+ * LICENSE file in the root directory of this source tree.
87
+ */
88
+ var Ce;
89
+ function Ue() {
90
+ return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
91
+ var r = typeof Symbol == "function" && Symbol.for, u = r ? Symbol.for("react.element") : 60103, l = r ? Symbol.for("react.portal") : 60106, e = r ? Symbol.for("react.fragment") : 60107, i = r ? Symbol.for("react.strict_mode") : 60108, t = r ? Symbol.for("react.profiler") : 60114, a = r ? Symbol.for("react.provider") : 60109, n = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, p = r ? Symbol.for("react.concurrent_mode") : 60111, v = r ? Symbol.for("react.forward_ref") : 60112, E = r ? Symbol.for("react.suspense") : 60113, P = r ? Symbol.for("react.suspense_list") : 60120, A = r ? Symbol.for("react.memo") : 60115, M = r ? Symbol.for("react.lazy") : 60116, w = r ? Symbol.for("react.block") : 60121, I = r ? Symbol.for("react.fundamental") : 60117, D = r ? Symbol.for("react.responder") : 60118, B = r ? Symbol.for("react.scope") : 60119;
92
+ function $(s) {
93
+ return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
94
+ s === e || s === p || s === t || s === i || s === E || s === P || typeof s == "object" && s !== null && (s.$$typeof === M || s.$$typeof === A || s.$$typeof === a || s.$$typeof === n || s.$$typeof === v || s.$$typeof === I || s.$$typeof === D || s.$$typeof === B || s.$$typeof === w);
95
+ }
96
+ function N(s) {
97
+ if (typeof s == "object" && s !== null) {
98
+ var L = s.$$typeof;
99
+ switch (L) {
100
+ case u:
101
+ var Z = s.type;
102
+ switch (Z) {
103
+ case f:
104
+ case p:
105
+ case e:
106
+ case t:
107
+ case i:
108
+ case E:
109
+ return Z;
110
+ default:
111
+ var xe = Z && Z.$$typeof;
112
+ switch (xe) {
113
+ case n:
114
+ case v:
115
+ case M:
116
+ case A:
117
+ case a:
118
+ return xe;
119
+ default:
120
+ return L;
121
+ }
122
+ }
123
+ case l:
124
+ return L;
125
+ }
126
+ }
127
+ }
128
+ var c = f, Y = p, re = n, ne = a, oe = u, ie = v, J = e, ae = M, se = A, z = l, ue = t, k = i, W = E, K = !1;
129
+ function ce(s) {
130
+ return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(s) || N(s) === f;
131
+ }
132
+ function o(s) {
133
+ return N(s) === p;
134
+ }
135
+ function d(s) {
136
+ return N(s) === n;
137
+ }
138
+ function x(s) {
139
+ return N(s) === a;
140
+ }
141
+ function g(s) {
142
+ return typeof s == "object" && s !== null && s.$$typeof === u;
143
+ }
144
+ function h(s) {
145
+ return N(s) === v;
146
+ }
147
+ function T(s) {
148
+ return N(s) === e;
149
+ }
150
+ function m(s) {
151
+ return N(s) === M;
152
+ }
153
+ function b(s) {
154
+ return N(s) === A;
155
+ }
156
+ function C(s) {
157
+ return N(s) === l;
158
+ }
159
+ function R(s) {
160
+ return N(s) === t;
161
+ }
162
+ function O(s) {
163
+ return N(s) === i;
164
+ }
165
+ function j(s) {
166
+ return N(s) === E;
167
+ }
168
+ _.AsyncMode = c, _.ConcurrentMode = Y, _.ContextConsumer = re, _.ContextProvider = ne, _.Element = oe, _.ForwardRef = ie, _.Fragment = J, _.Lazy = ae, _.Memo = se, _.Portal = z, _.Profiler = ue, _.StrictMode = k, _.Suspense = W, _.isAsyncMode = ce, _.isConcurrentMode = o, _.isContextConsumer = d, _.isContextProvider = x, _.isElement = g, _.isForwardRef = h, _.isFragment = T, _.isLazy = m, _.isMemo = b, _.isPortal = C, _.isProfiler = R, _.isStrictMode = O, _.isSuspense = j, _.isValidElementType = $, _.typeOf = N;
169
+ }()), _;
170
+ }
171
+ var Oe;
172
+ function Ie() {
173
+ return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? ee.exports = We() : ee.exports = Ue()), ee.exports;
174
+ }
175
+ /*
176
+ object-assign
177
+ (c) Sindre Sorhus
178
+ @license MIT
179
+ */
180
+ var fe, Se;
181
+ function Fe() {
182
+ if (Se) return fe;
183
+ Se = 1;
184
+ var r = Object.getOwnPropertySymbols, u = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
185
+ function e(t) {
186
+ if (t == null)
187
+ throw new TypeError("Object.assign cannot be called with null or undefined");
188
+ return Object(t);
189
+ }
190
+ function i() {
191
+ try {
192
+ if (!Object.assign)
193
+ return !1;
194
+ var t = new String("abc");
195
+ if (t[5] = "de", Object.getOwnPropertyNames(t)[0] === "5")
196
+ return !1;
197
+ for (var a = {}, n = 0; n < 10; n++)
198
+ a["_" + String.fromCharCode(n)] = n;
199
+ var f = Object.getOwnPropertyNames(a).map(function(v) {
200
+ return a[v];
201
+ });
202
+ if (f.join("") !== "0123456789")
203
+ return !1;
204
+ var p = {};
205
+ return "abcdefghijklmnopqrst".split("").forEach(function(v) {
206
+ p[v] = v;
207
+ }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
208
+ } catch {
209
+ return !1;
210
+ }
211
+ }
212
+ return fe = i() ? Object.assign : function(t, a) {
213
+ for (var n, f = e(t), p, v = 1; v < arguments.length; v++) {
214
+ n = Object(arguments[v]);
215
+ for (var E in n)
216
+ u.call(n, E) && (f[E] = n[E]);
217
+ if (r) {
218
+ p = r(n);
219
+ for (var P = 0; P < p.length; P++)
220
+ l.call(n, p[P]) && (f[p[P]] = n[p[P]]);
221
+ }
222
+ }
223
+ return f;
224
+ }, fe;
225
+ }
226
+ var le, _e;
227
+ function be() {
228
+ if (_e) return le;
229
+ _e = 1;
230
+ var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
231
+ return le = r, le;
232
+ }
233
+ var pe, Re;
234
+ function je() {
235
+ return Re || (Re = 1, pe = Function.call.bind(Object.prototype.hasOwnProperty)), pe;
236
+ }
237
+ var de, Pe;
238
+ function Ve() {
239
+ if (Pe) return de;
240
+ Pe = 1;
241
+ var r = function() {
242
+ };
243
+ if (process.env.NODE_ENV !== "production") {
244
+ var u = be(), l = {}, e = je();
245
+ r = function(t) {
246
+ var a = "Warning: " + t;
247
+ typeof console < "u" && console.error(a);
248
+ try {
249
+ throw new Error(a);
250
+ } catch {
251
+ }
252
+ };
253
+ }
254
+ function i(t, a, n, f, p) {
255
+ if (process.env.NODE_ENV !== "production") {
256
+ for (var v in t)
257
+ if (e(t, v)) {
258
+ var E;
259
+ try {
260
+ if (typeof t[v] != "function") {
261
+ var P = Error(
262
+ (f || "React class") + ": " + n + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
263
+ );
264
+ throw P.name = "Invariant Violation", P;
265
+ }
266
+ E = t[v](a, v, f, n, null, u);
267
+ } catch (M) {
268
+ E = M;
269
+ }
270
+ if (E && !(E instanceof Error) && r(
271
+ (f || "React class") + ": type specification of " + n + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof E + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
272
+ ), E instanceof Error && !(E.message in l)) {
273
+ l[E.message] = !0;
274
+ var A = p ? p() : "";
275
+ r(
276
+ "Failed " + n + " type: " + E.message + (A ?? "")
277
+ );
278
+ }
279
+ }
280
+ }
281
+ }
282
+ return i.resetWarningCache = function() {
283
+ process.env.NODE_ENV !== "production" && (l = {});
284
+ }, de = i, de;
285
+ }
286
+ var ve, we;
287
+ function ze() {
288
+ if (we) return ve;
289
+ we = 1;
290
+ var r = Ie(), u = Fe(), l = be(), e = je(), i = Ve(), t = function() {
291
+ };
292
+ process.env.NODE_ENV !== "production" && (t = function(n) {
293
+ var f = "Warning: " + n;
294
+ typeof console < "u" && console.error(f);
295
+ try {
296
+ throw new Error(f);
297
+ } catch {
298
+ }
299
+ });
300
+ function a() {
301
+ return null;
302
+ }
303
+ return ve = function(n, f) {
304
+ var p = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
305
+ function E(o) {
306
+ var d = o && (p && o[p] || o[v]);
307
+ if (typeof d == "function")
308
+ return d;
309
+ }
310
+ var P = "<<anonymous>>", A = {
311
+ array: D("array"),
312
+ bigint: D("bigint"),
313
+ bool: D("boolean"),
314
+ func: D("function"),
315
+ number: D("number"),
316
+ object: D("object"),
317
+ string: D("string"),
318
+ symbol: D("symbol"),
319
+ any: B(),
320
+ arrayOf: $,
321
+ element: N(),
322
+ elementType: c(),
323
+ instanceOf: Y,
324
+ node: ie(),
325
+ objectOf: ne,
326
+ oneOf: re,
327
+ oneOfType: oe,
328
+ shape: ae,
329
+ exact: se
330
+ };
331
+ function M(o, d) {
332
+ return o === d ? o !== 0 || 1 / o === 1 / d : o !== o && d !== d;
333
+ }
334
+ function w(o, d) {
335
+ this.message = o, this.data = d && typeof d == "object" ? d : {}, this.stack = "";
336
+ }
337
+ w.prototype = Error.prototype;
338
+ function I(o) {
339
+ if (process.env.NODE_ENV !== "production")
340
+ var d = {}, x = 0;
341
+ function g(T, m, b, C, R, O, j) {
342
+ if (C = C || P, O = O || b, j !== l) {
343
+ if (f) {
344
+ var s = new Error(
345
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
346
+ );
347
+ throw s.name = "Invariant Violation", s;
348
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
349
+ var L = C + ":" + b;
350
+ !d[L] && // Avoid spamming the console because they are often not actionable except for lib authors
351
+ x < 3 && (t(
352
+ "You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + C + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
353
+ ), d[L] = !0, x++);
354
+ }
355
+ }
356
+ return m[b] == null ? T ? m[b] === null ? new w("The " + R + " `" + O + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new w("The " + R + " `" + O + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : o(m, b, C, R, O);
357
+ }
358
+ var h = g.bind(null, !1);
359
+ return h.isRequired = g.bind(null, !0), h;
360
+ }
361
+ function D(o) {
362
+ function d(x, g, h, T, m, b) {
363
+ var C = x[g], R = k(C);
364
+ if (R !== o) {
365
+ var O = W(C);
366
+ return new w(
367
+ "Invalid " + T + " `" + m + "` of type " + ("`" + O + "` supplied to `" + h + "`, expected ") + ("`" + o + "`."),
368
+ { expectedType: o }
369
+ );
370
+ }
371
+ return null;
372
+ }
373
+ return I(d);
374
+ }
375
+ function B() {
376
+ return I(a);
377
+ }
378
+ function $(o) {
379
+ function d(x, g, h, T, m) {
380
+ if (typeof o != "function")
381
+ return new w("Property `" + m + "` of component `" + h + "` has invalid PropType notation inside arrayOf.");
382
+ var b = x[g];
383
+ if (!Array.isArray(b)) {
384
+ var C = k(b);
385
+ return new w("Invalid " + T + " `" + m + "` of type " + ("`" + C + "` supplied to `" + h + "`, expected an array."));
386
+ }
387
+ for (var R = 0; R < b.length; R++) {
388
+ var O = o(b, R, h, T, m + "[" + R + "]", l);
389
+ if (O instanceof Error)
390
+ return O;
391
+ }
392
+ return null;
393
+ }
394
+ return I(d);
395
+ }
396
+ function N() {
397
+ function o(d, x, g, h, T) {
398
+ var m = d[x];
399
+ if (!n(m)) {
400
+ var b = k(m);
401
+ return new w("Invalid " + h + " `" + T + "` of type " + ("`" + b + "` supplied to `" + g + "`, expected a single ReactElement."));
402
+ }
403
+ return null;
404
+ }
405
+ return I(o);
406
+ }
407
+ function c() {
408
+ function o(d, x, g, h, T) {
409
+ var m = d[x];
410
+ if (!r.isValidElementType(m)) {
411
+ var b = k(m);
412
+ return new w("Invalid " + h + " `" + T + "` of type " + ("`" + b + "` supplied to `" + g + "`, expected a single ReactElement type."));
413
+ }
414
+ return null;
415
+ }
416
+ return I(o);
417
+ }
418
+ function Y(o) {
419
+ function d(x, g, h, T, m) {
420
+ if (!(x[g] instanceof o)) {
421
+ var b = o.name || P, C = ce(x[g]);
422
+ return new w("Invalid " + T + " `" + m + "` of type " + ("`" + C + "` supplied to `" + h + "`, expected ") + ("instance of `" + b + "`."));
423
+ }
424
+ return null;
425
+ }
426
+ return I(d);
427
+ }
428
+ function re(o) {
429
+ if (!Array.isArray(o))
430
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? t(
431
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
432
+ ) : t("Invalid argument supplied to oneOf, expected an array.")), a;
433
+ function d(x, g, h, T, m) {
434
+ for (var b = x[g], C = 0; C < o.length; C++)
435
+ if (M(b, o[C]))
436
+ return null;
437
+ var R = JSON.stringify(o, function(j, s) {
438
+ var L = W(s);
439
+ return L === "symbol" ? String(s) : s;
440
+ });
441
+ return new w("Invalid " + T + " `" + m + "` of value `" + String(b) + "` " + ("supplied to `" + h + "`, expected one of " + R + "."));
442
+ }
443
+ return I(d);
444
+ }
445
+ function ne(o) {
446
+ function d(x, g, h, T, m) {
447
+ if (typeof o != "function")
448
+ return new w("Property `" + m + "` of component `" + h + "` has invalid PropType notation inside objectOf.");
449
+ var b = x[g], C = k(b);
450
+ if (C !== "object")
451
+ return new w("Invalid " + T + " `" + m + "` of type " + ("`" + C + "` supplied to `" + h + "`, expected an object."));
452
+ for (var R in b)
453
+ if (e(b, R)) {
454
+ var O = o(b, R, h, T, m + "." + R, l);
455
+ if (O instanceof Error)
456
+ return O;
457
+ }
458
+ return null;
459
+ }
460
+ return I(d);
461
+ }
462
+ function oe(o) {
463
+ if (!Array.isArray(o))
464
+ return process.env.NODE_ENV !== "production" && t("Invalid argument supplied to oneOfType, expected an instance of array."), a;
465
+ for (var d = 0; d < o.length; d++) {
466
+ var x = o[d];
467
+ if (typeof x != "function")
468
+ return t(
469
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(x) + " at index " + d + "."
470
+ ), a;
471
+ }
472
+ function g(h, T, m, b, C) {
473
+ for (var R = [], O = 0; O < o.length; O++) {
474
+ var j = o[O], s = j(h, T, m, b, C, l);
475
+ if (s == null)
476
+ return null;
477
+ s.data && e(s.data, "expectedType") && R.push(s.data.expectedType);
478
+ }
479
+ var L = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
480
+ return new w("Invalid " + b + " `" + C + "` supplied to " + ("`" + m + "`" + L + "."));
481
+ }
482
+ return I(g);
483
+ }
484
+ function ie() {
485
+ function o(d, x, g, h, T) {
486
+ return z(d[x]) ? null : new w("Invalid " + h + " `" + T + "` supplied to " + ("`" + g + "`, expected a ReactNode."));
487
+ }
488
+ return I(o);
489
+ }
490
+ function J(o, d, x, g, h) {
491
+ return new w(
492
+ (o || "React class") + ": " + d + " type `" + x + "." + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + h + "`."
493
+ );
494
+ }
495
+ function ae(o) {
496
+ function d(x, g, h, T, m) {
497
+ var b = x[g], C = k(b);
498
+ if (C !== "object")
499
+ return new w("Invalid " + T + " `" + m + "` of type `" + C + "` " + ("supplied to `" + h + "`, expected `object`."));
500
+ for (var R in o) {
501
+ var O = o[R];
502
+ if (typeof O != "function")
503
+ return J(h, T, m, R, W(O));
504
+ var j = O(b, R, h, T, m + "." + R, l);
505
+ if (j)
506
+ return j;
507
+ }
508
+ return null;
509
+ }
510
+ return I(d);
511
+ }
512
+ function se(o) {
513
+ function d(x, g, h, T, m) {
514
+ var b = x[g], C = k(b);
515
+ if (C !== "object")
516
+ return new w("Invalid " + T + " `" + m + "` of type `" + C + "` " + ("supplied to `" + h + "`, expected `object`."));
517
+ var R = u({}, x[g], o);
518
+ for (var O in R) {
519
+ var j = o[O];
520
+ if (e(o, O) && typeof j != "function")
521
+ return J(h, T, m, O, W(j));
522
+ if (!j)
523
+ return new w(
524
+ "Invalid " + T + " `" + m + "` key `" + O + "` supplied to `" + h + "`.\nBad object: " + JSON.stringify(x[g], null, " ") + `
525
+ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
526
+ );
527
+ var s = j(b, O, h, T, m + "." + O, l);
528
+ if (s)
529
+ return s;
530
+ }
531
+ return null;
532
+ }
533
+ return I(d);
534
+ }
535
+ function z(o) {
536
+ switch (typeof o) {
537
+ case "number":
538
+ case "string":
539
+ case "undefined":
540
+ return !0;
541
+ case "boolean":
542
+ return !o;
543
+ case "object":
544
+ if (Array.isArray(o))
545
+ return o.every(z);
546
+ if (o === null || n(o))
547
+ return !0;
548
+ var d = E(o);
549
+ if (d) {
550
+ var x = d.call(o), g;
551
+ if (d !== o.entries) {
552
+ for (; !(g = x.next()).done; )
553
+ if (!z(g.value))
554
+ return !1;
555
+ } else
556
+ for (; !(g = x.next()).done; ) {
557
+ var h = g.value;
558
+ if (h && !z(h[1]))
559
+ return !1;
560
+ }
561
+ } else
562
+ return !1;
563
+ return !0;
564
+ default:
565
+ return !1;
566
+ }
567
+ }
568
+ function ue(o, d) {
569
+ return o === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
570
+ }
571
+ function k(o) {
572
+ var d = typeof o;
573
+ return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : ue(d, o) ? "symbol" : d;
574
+ }
575
+ function W(o) {
576
+ if (typeof o > "u" || o === null)
577
+ return "" + o;
578
+ var d = k(o);
579
+ if (d === "object") {
580
+ if (o instanceof Date)
581
+ return "date";
582
+ if (o instanceof RegExp)
583
+ return "regexp";
584
+ }
585
+ return d;
586
+ }
587
+ function K(o) {
588
+ var d = W(o);
589
+ switch (d) {
590
+ case "array":
591
+ case "object":
592
+ return "an " + d;
593
+ case "boolean":
594
+ case "date":
595
+ case "regexp":
596
+ return "a " + d;
597
+ default:
598
+ return d;
599
+ }
600
+ }
601
+ function ce(o) {
602
+ return !o.constructor || !o.constructor.name ? P : o.constructor.name;
603
+ }
604
+ return A.checkPropTypes = i, A.resetWarningCache = i.resetWarningCache, A.PropTypes = A, A;
605
+ }, ve;
606
+ }
607
+ var ye, Ae;
608
+ function Ge() {
609
+ if (Ae) return ye;
610
+ Ae = 1;
611
+ var r = be();
612
+ function u() {
613
+ }
614
+ function l() {
615
+ }
616
+ return l.resetWarningCache = u, ye = function() {
617
+ function e(a, n, f, p, v, E) {
618
+ if (E !== r) {
619
+ var P = new Error(
620
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
621
+ );
622
+ throw P.name = "Invariant Violation", P;
623
+ }
624
+ }
625
+ e.isRequired = e;
626
+ function i() {
627
+ return e;
628
+ }
629
+ var t = {
630
+ array: e,
631
+ bigint: e,
632
+ bool: e,
633
+ func: e,
634
+ number: e,
635
+ object: e,
636
+ string: e,
637
+ symbol: e,
638
+ any: e,
639
+ arrayOf: i,
640
+ element: e,
641
+ elementType: e,
642
+ instanceOf: i,
643
+ node: e,
644
+ objectOf: i,
645
+ oneOf: i,
646
+ oneOfType: i,
647
+ shape: i,
648
+ exact: i,
649
+ checkPropTypes: l,
650
+ resetWarningCache: u
651
+ };
652
+ return t.PropTypes = t, t;
653
+ }, ye;
654
+ }
655
+ if (process.env.NODE_ENV !== "production") {
656
+ var Xe = Ie(), Be = !0;
657
+ he.exports = ze()(Xe.isElement, Be);
658
+ } else
659
+ he.exports = Ge()();
660
+ var He = he.exports;
661
+ const y = /* @__PURE__ */ Ye(He);
662
+ function te() {
663
+ return te = Object.assign ? Object.assign.bind() : function(r) {
664
+ for (var u = 1; u < arguments.length; u++) {
665
+ var l = arguments[u];
666
+ for (var e in l) ({}).hasOwnProperty.call(l, e) && (r[e] = l[e]);
667
+ }
668
+ return r;
669
+ }, te.apply(null, arguments);
670
+ }
671
+ function Me(r, u) {
672
+ if (r == null) return {};
673
+ var l = {};
674
+ for (var e in r) if ({}.hasOwnProperty.call(r, e)) {
675
+ if (u.indexOf(e) !== -1) continue;
676
+ l[e] = r[e];
677
+ }
678
+ return l;
679
+ }
680
+ function me(r, u) {
681
+ return me = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(l, e) {
682
+ return l.__proto__ = e, l;
683
+ }, me(r, u);
684
+ }
685
+ function De(r, u) {
686
+ r.prototype = Object.create(u.prototype), r.prototype.constructor = r, me(r, u);
687
+ }
688
+ function Je(r, u) {
689
+ return r.classList ? !!u && r.classList.contains(u) : (" " + (r.className.baseVal || r.className) + " ").indexOf(" " + u + " ") !== -1;
690
+ }
691
+ function Ke(r, u) {
692
+ r.classList ? r.classList.add(u) : Je(r, u) || (typeof r.className == "string" ? r.className = r.className + " " + u : r.setAttribute("class", (r.className && r.className.baseVal || "") + " " + u));
693
+ }
694
+ function Ne(r, u) {
695
+ return r.replace(new RegExp("(^|\\s)" + u + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
696
+ }
697
+ function Ze(r, u) {
698
+ r.classList ? r.classList.remove(u) : typeof r.className == "string" ? r.className = Ne(r.className, u) : r.setAttribute("class", Ne(r.className && r.className.baseVal || "", u));
699
+ }
700
+ const $e = {
701
+ disabled: !1
702
+ };
703
+ var Qe = process.env.NODE_ENV !== "production" ? y.oneOfType([y.number, y.shape({
704
+ enter: y.number,
705
+ exit: y.number,
706
+ appear: y.number
707
+ }).isRequired]) : null, et = process.env.NODE_ENV !== "production" ? y.oneOfType([y.string, y.shape({
708
+ enter: y.string,
709
+ exit: y.string,
710
+ active: y.string
711
+ }), y.shape({
712
+ enter: y.string,
713
+ enterDone: y.string,
714
+ enterActive: y.string,
715
+ exit: y.string,
716
+ exitDone: y.string,
717
+ exitActive: y.string
718
+ })]) : null;
719
+ const ke = V.createContext(null);
720
+ var Le = function(u) {
721
+ return u.scrollTop;
722
+ }, H = "unmounted", U = "exited", F = "entering", X = "entered", ge = "exiting", q = /* @__PURE__ */ function(r) {
723
+ De(u, r);
724
+ function u(e, i) {
725
+ var t;
726
+ t = r.call(this, e, i) || this;
727
+ var a = i, n = a && !a.isMounting ? e.enter : e.appear, f;
728
+ return t.appearStatus = null, e.in ? n ? (f = U, t.appearStatus = F) : f = X : e.unmountOnExit || e.mountOnEnter ? f = H : f = U, t.state = {
729
+ status: f
730
+ }, t.nextCallback = null, t;
731
+ }
732
+ u.getDerivedStateFromProps = function(i, t) {
733
+ var a = i.in;
734
+ return a && t.status === H ? {
735
+ status: U
736
+ } : null;
737
+ };
738
+ var l = u.prototype;
739
+ return l.componentDidMount = function() {
740
+ this.updateStatus(!0, this.appearStatus);
741
+ }, l.componentDidUpdate = function(i) {
742
+ var t = null;
743
+ if (i !== this.props) {
744
+ var a = this.state.status;
745
+ this.props.in ? a !== F && a !== X && (t = F) : (a === F || a === X) && (t = ge);
746
+ }
747
+ this.updateStatus(!1, t);
748
+ }, l.componentWillUnmount = function() {
749
+ this.cancelNextCallback();
750
+ }, l.getTimeouts = function() {
751
+ var i = this.props.timeout, t, a, n;
752
+ return t = a = n = i, i != null && typeof i != "number" && (t = i.exit, a = i.enter, n = i.appear !== void 0 ? i.appear : a), {
753
+ exit: t,
754
+ enter: a,
755
+ appear: n
756
+ };
757
+ }, l.updateStatus = function(i, t) {
758
+ if (i === void 0 && (i = !1), t !== null)
759
+ if (this.cancelNextCallback(), t === F) {
760
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
761
+ var a = this.props.nodeRef ? this.props.nodeRef.current : Q.findDOMNode(this);
762
+ a && Le(a);
763
+ }
764
+ this.performEnter(i);
765
+ } else
766
+ this.performExit();
767
+ else this.props.unmountOnExit && this.state.status === U && this.setState({
768
+ status: H
769
+ });
770
+ }, l.performEnter = function(i) {
771
+ var t = this, a = this.props.enter, n = this.context ? this.context.isMounting : i, f = this.props.nodeRef ? [n] : [Q.findDOMNode(this), n], p = f[0], v = f[1], E = this.getTimeouts(), P = n ? E.appear : E.enter;
772
+ if (!i && !a || $e.disabled) {
773
+ this.safeSetState({
774
+ status: X
775
+ }, function() {
776
+ t.props.onEntered(p);
777
+ });
778
+ return;
779
+ }
780
+ this.props.onEnter(p, v), this.safeSetState({
781
+ status: F
782
+ }, function() {
783
+ t.props.onEntering(p, v), t.onTransitionEnd(P, function() {
784
+ t.safeSetState({
785
+ status: X
786
+ }, function() {
787
+ t.props.onEntered(p, v);
788
+ });
789
+ });
790
+ });
791
+ }, l.performExit = function() {
792
+ var i = this, t = this.props.exit, a = this.getTimeouts(), n = this.props.nodeRef ? void 0 : Q.findDOMNode(this);
793
+ if (!t || $e.disabled) {
794
+ this.safeSetState({
795
+ status: U
796
+ }, function() {
797
+ i.props.onExited(n);
798
+ });
799
+ return;
800
+ }
801
+ this.props.onExit(n), this.safeSetState({
802
+ status: ge
803
+ }, function() {
804
+ i.props.onExiting(n), i.onTransitionEnd(a.exit, function() {
805
+ i.safeSetState({
806
+ status: U
807
+ }, function() {
808
+ i.props.onExited(n);
809
+ });
810
+ });
811
+ });
812
+ }, l.cancelNextCallback = function() {
813
+ this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
814
+ }, l.safeSetState = function(i, t) {
815
+ t = this.setNextCallback(t), this.setState(i, t);
816
+ }, l.setNextCallback = function(i) {
817
+ var t = this, a = !0;
818
+ return this.nextCallback = function(n) {
819
+ a && (a = !1, t.nextCallback = null, i(n));
820
+ }, this.nextCallback.cancel = function() {
821
+ a = !1;
822
+ }, this.nextCallback;
823
+ }, l.onTransitionEnd = function(i, t) {
824
+ this.setNextCallback(t);
825
+ var a = this.props.nodeRef ? this.props.nodeRef.current : Q.findDOMNode(this), n = i == null && !this.props.addEndListener;
826
+ if (!a || n) {
827
+ setTimeout(this.nextCallback, 0);
828
+ return;
829
+ }
830
+ if (this.props.addEndListener) {
831
+ var f = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], p = f[0], v = f[1];
832
+ this.props.addEndListener(p, v);
833
+ }
834
+ i != null && setTimeout(this.nextCallback, i);
835
+ }, l.render = function() {
836
+ var i = this.state.status;
837
+ if (i === H)
838
+ return null;
839
+ var t = this.props, a = t.children;
840
+ t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
841
+ var n = Me(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
842
+ return (
843
+ // allows for nested Transitions
844
+ /* @__PURE__ */ V.createElement(ke.Provider, {
845
+ value: null
846
+ }, typeof a == "function" ? a(i, n) : V.cloneElement(V.Children.only(a), n))
847
+ );
848
+ }, u;
849
+ }(V.Component);
850
+ q.contextType = ke;
851
+ q.propTypes = process.env.NODE_ENV !== "production" ? {
852
+ /**
853
+ * A React reference to DOM element that need to transition:
854
+ * https://stackoverflow.com/a/51127130/4671932
855
+ *
856
+ * - When `nodeRef` prop is used, `node` is not passed to callback functions
857
+ * (e.g. `onEnter`) because user already has direct access to the node.
858
+ * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
859
+ * `nodeRef` need to be provided to `Transition` with changed `key` prop
860
+ * (see
861
+ * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
862
+ */
863
+ nodeRef: y.shape({
864
+ current: typeof Element > "u" ? y.any : function(r, u, l, e, i, t) {
865
+ var a = r[u];
866
+ return y.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(r, u, l, e, i, t);
867
+ }
868
+ }),
869
+ /**
870
+ * A `function` child can be used instead of a React element. This function is
871
+ * called with the current transition status (`'entering'`, `'entered'`,
872
+ * `'exiting'`, `'exited'`), which can be used to apply context
873
+ * specific props to a component.
874
+ *
875
+ * ```jsx
876
+ * <Transition in={this.state.in} timeout={150}>
877
+ * {state => (
878
+ * <MyComponent className={`fade fade-${state}`} />
879
+ * )}
880
+ * </Transition>
881
+ * ```
882
+ */
883
+ children: y.oneOfType([y.func.isRequired, y.element.isRequired]).isRequired,
884
+ /**
885
+ * Show the component; triggers the enter or exit states
886
+ */
887
+ in: y.bool,
888
+ /**
889
+ * By default the child component is mounted immediately along with
890
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
891
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
892
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
893
+ */
894
+ mountOnEnter: y.bool,
895
+ /**
896
+ * By default the child component stays mounted after it reaches the `'exited'` state.
897
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
898
+ */
899
+ unmountOnExit: y.bool,
900
+ /**
901
+ * By default the child component does not perform the enter transition when
902
+ * it first mounts, regardless of the value of `in`. If you want this
903
+ * behavior, set both `appear` and `in` to `true`.
904
+ *
905
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
906
+ * > only adds an additional enter transition. However, in the
907
+ * > `<CSSTransition>` component that first enter transition does result in
908
+ * > additional `.appear-*` classes, that way you can choose to style it
909
+ * > differently.
910
+ */
911
+ appear: y.bool,
912
+ /**
913
+ * Enable or disable enter transitions.
914
+ */
915
+ enter: y.bool,
916
+ /**
917
+ * Enable or disable exit transitions.
918
+ */
919
+ exit: y.bool,
920
+ /**
921
+ * The duration of the transition, in milliseconds.
922
+ * Required unless `addEndListener` is provided.
923
+ *
924
+ * You may specify a single timeout for all transitions:
925
+ *
926
+ * ```jsx
927
+ * timeout={500}
928
+ * ```
929
+ *
930
+ * or individually:
931
+ *
932
+ * ```jsx
933
+ * timeout={{
934
+ * appear: 500,
935
+ * enter: 300,
936
+ * exit: 500,
937
+ * }}
938
+ * ```
939
+ *
940
+ * - `appear` defaults to the value of `enter`
941
+ * - `enter` defaults to `0`
942
+ * - `exit` defaults to `0`
943
+ *
944
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
945
+ */
946
+ timeout: function(u) {
947
+ var l = Qe;
948
+ u.addEndListener || (l = l.isRequired);
949
+ for (var e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), t = 1; t < e; t++)
950
+ i[t - 1] = arguments[t];
951
+ return l.apply(void 0, [u].concat(i));
952
+ },
953
+ /**
954
+ * Add a custom transition end trigger. Called with the transitioning
955
+ * DOM node and a `done` callback. Allows for more fine grained transition end
956
+ * logic. Timeouts are still used as a fallback if provided.
957
+ *
958
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
959
+ *
960
+ * ```jsx
961
+ * addEndListener={(node, done) => {
962
+ * // use the css transitionend event to mark the finish of a transition
963
+ * node.addEventListener('transitionend', done, false);
964
+ * }}
965
+ * ```
966
+ */
967
+ addEndListener: y.func,
968
+ /**
969
+ * Callback fired before the "entering" status is applied. An extra parameter
970
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
971
+ *
972
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
973
+ *
974
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
975
+ */
976
+ onEnter: y.func,
977
+ /**
978
+ * Callback fired after the "entering" status is applied. An extra parameter
979
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
980
+ *
981
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
982
+ *
983
+ * @type Function(node: HtmlElement, isAppearing: bool)
984
+ */
985
+ onEntering: y.func,
986
+ /**
987
+ * Callback fired after the "entered" status is applied. An extra parameter
988
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
989
+ *
990
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
991
+ *
992
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
993
+ */
994
+ onEntered: y.func,
995
+ /**
996
+ * Callback fired before the "exiting" status is applied.
997
+ *
998
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
999
+ *
1000
+ * @type Function(node: HtmlElement) -> void
1001
+ */
1002
+ onExit: y.func,
1003
+ /**
1004
+ * Callback fired after the "exiting" status is applied.
1005
+ *
1006
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1007
+ *
1008
+ * @type Function(node: HtmlElement) -> void
1009
+ */
1010
+ onExiting: y.func,
1011
+ /**
1012
+ * Callback fired after the "exited" status is applied.
1013
+ *
1014
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1015
+ *
1016
+ * @type Function(node: HtmlElement) -> void
1017
+ */
1018
+ onExited: y.func
1019
+ } : {};
1020
+ function G() {
1021
+ }
1022
+ q.defaultProps = {
1023
+ in: !1,
1024
+ mountOnEnter: !1,
1025
+ unmountOnExit: !1,
1026
+ appear: !1,
1027
+ enter: !0,
1028
+ exit: !0,
1029
+ onEnter: G,
1030
+ onEntering: G,
1031
+ onEntered: G,
1032
+ onExit: G,
1033
+ onExiting: G,
1034
+ onExited: G
1035
+ };
1036
+ q.UNMOUNTED = H;
1037
+ q.EXITED = U;
1038
+ q.ENTERING = F;
1039
+ q.ENTERED = X;
1040
+ q.EXITING = ge;
1041
+ var tt = function(u, l) {
1042
+ return u && l && l.split(" ").forEach(function(e) {
1043
+ return Ke(u, e);
1044
+ });
1045
+ }, Ee = function(u, l) {
1046
+ return u && l && l.split(" ").forEach(function(e) {
1047
+ return Ze(u, e);
1048
+ });
1049
+ }, qe = /* @__PURE__ */ function(r) {
1050
+ De(u, r);
1051
+ function u() {
1052
+ for (var e, i = arguments.length, t = new Array(i), a = 0; a < i; a++)
1053
+ t[a] = arguments[a];
1054
+ return e = r.call.apply(r, [this].concat(t)) || this, e.appliedClasses = {
1055
+ appear: {},
1056
+ enter: {},
1057
+ exit: {}
1058
+ }, e.onEnter = function(n, f) {
1059
+ var p = e.resolveArguments(n, f), v = p[0], E = p[1];
1060
+ e.removeClasses(v, "exit"), e.addClass(v, E ? "appear" : "enter", "base"), e.props.onEnter && e.props.onEnter(n, f);
1061
+ }, e.onEntering = function(n, f) {
1062
+ var p = e.resolveArguments(n, f), v = p[0], E = p[1], P = E ? "appear" : "enter";
1063
+ e.addClass(v, P, "active"), e.props.onEntering && e.props.onEntering(n, f);
1064
+ }, e.onEntered = function(n, f) {
1065
+ var p = e.resolveArguments(n, f), v = p[0], E = p[1], P = E ? "appear" : "enter";
1066
+ e.removeClasses(v, P), e.addClass(v, P, "done"), e.props.onEntered && e.props.onEntered(n, f);
1067
+ }, e.onExit = function(n) {
1068
+ var f = e.resolveArguments(n), p = f[0];
1069
+ e.removeClasses(p, "appear"), e.removeClasses(p, "enter"), e.addClass(p, "exit", "base"), e.props.onExit && e.props.onExit(n);
1070
+ }, e.onExiting = function(n) {
1071
+ var f = e.resolveArguments(n), p = f[0];
1072
+ e.addClass(p, "exit", "active"), e.props.onExiting && e.props.onExiting(n);
1073
+ }, e.onExited = function(n) {
1074
+ var f = e.resolveArguments(n), p = f[0];
1075
+ e.removeClasses(p, "exit"), e.addClass(p, "exit", "done"), e.props.onExited && e.props.onExited(n);
1076
+ }, e.resolveArguments = function(n, f) {
1077
+ return e.props.nodeRef ? [e.props.nodeRef.current, n] : [n, f];
1078
+ }, e.getClassNames = function(n) {
1079
+ var f = e.props.classNames, p = typeof f == "string", v = p && f ? f + "-" : "", E = p ? "" + v + n : f[n], P = p ? E + "-active" : f[n + "Active"], A = p ? E + "-done" : f[n + "Done"];
1080
+ return {
1081
+ baseClassName: E,
1082
+ activeClassName: P,
1083
+ doneClassName: A
1084
+ };
1085
+ }, e;
1086
+ }
1087
+ var l = u.prototype;
1088
+ return l.addClass = function(i, t, a) {
1089
+ var n = this.getClassNames(t)[a + "ClassName"], f = this.getClassNames("enter"), p = f.doneClassName;
1090
+ t === "appear" && a === "done" && p && (n += " " + p), a === "active" && i && Le(i), n && (this.appliedClasses[t][a] = n, tt(i, n));
1091
+ }, l.removeClasses = function(i, t) {
1092
+ var a = this.appliedClasses[t], n = a.base, f = a.active, p = a.done;
1093
+ this.appliedClasses[t] = {}, n && Ee(i, n), f && Ee(i, f), p && Ee(i, p);
1094
+ }, l.render = function() {
1095
+ var i = this.props;
1096
+ i.classNames;
1097
+ var t = Me(i, ["classNames"]);
1098
+ return /* @__PURE__ */ V.createElement(q, te({}, t, {
1099
+ onEnter: this.onEnter,
1100
+ onEntered: this.onEntered,
1101
+ onEntering: this.onEntering,
1102
+ onExit: this.onExit,
1103
+ onExiting: this.onExiting,
1104
+ onExited: this.onExited
1105
+ }));
1106
+ }, u;
1107
+ }(V.Component);
1108
+ qe.defaultProps = {
1109
+ classNames: ""
1110
+ };
1111
+ qe.propTypes = process.env.NODE_ENV !== "production" ? te({}, q.propTypes, {
1112
+ /**
1113
+ * The animation classNames applied to the component as it appears, enters,
1114
+ * exits or has finished the transition. A single name can be provided, which
1115
+ * will be suffixed for each stage, e.g. `classNames="fade"` applies:
1116
+ *
1117
+ * - `fade-appear`, `fade-appear-active`, `fade-appear-done`
1118
+ * - `fade-enter`, `fade-enter-active`, `fade-enter-done`
1119
+ * - `fade-exit`, `fade-exit-active`, `fade-exit-done`
1120
+ *
1121
+ * A few details to note about how these classes are applied:
1122
+ *
1123
+ * 1. They are _joined_ with the ones that are already defined on the child
1124
+ * component, so if you want to add some base styles, you can use
1125
+ * `className` without worrying that it will be overridden.
1126
+ *
1127
+ * 2. If the transition component mounts with `in={false}`, no classes are
1128
+ * applied yet. You might be expecting `*-exit-done`, but if you think
1129
+ * about it, a component cannot finish exiting if it hasn't entered yet.
1130
+ *
1131
+ * 2. `fade-appear-done` and `fade-enter-done` will _both_ be applied. This
1132
+ * allows you to define different behavior for when appearing is done and
1133
+ * when regular entering is done, using selectors like
1134
+ * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply
1135
+ * an epic entrance animation when element first appears in the DOM using
1136
+ * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
1137
+ * simply use `fade-enter-done` for defining both cases.
1138
+ *
1139
+ * Each individual classNames can also be specified independently like:
1140
+ *
1141
+ * ```js
1142
+ * classNames={{
1143
+ * appear: 'my-appear',
1144
+ * appearActive: 'my-active-appear',
1145
+ * appearDone: 'my-done-appear',
1146
+ * enter: 'my-enter',
1147
+ * enterActive: 'my-active-enter',
1148
+ * enterDone: 'my-done-enter',
1149
+ * exit: 'my-exit',
1150
+ * exitActive: 'my-active-exit',
1151
+ * exitDone: 'my-done-exit',
1152
+ * }}
1153
+ * ```
1154
+ *
1155
+ * If you want to set these classes using CSS Modules:
1156
+ *
1157
+ * ```js
1158
+ * import styles from './styles.css';
1159
+ * ```
1160
+ *
1161
+ * you might want to use camelCase in your CSS file, that way could simply
1162
+ * spread them instead of listing them one by one:
1163
+ *
1164
+ * ```js
1165
+ * classNames={{ ...styles }}
1166
+ * ```
1167
+ *
1168
+ * @type {string | {
1169
+ * appear?: string,
1170
+ * appearActive?: string,
1171
+ * appearDone?: string,
1172
+ * enter?: string,
1173
+ * enterActive?: string,
1174
+ * enterDone?: string,
1175
+ * exit?: string,
1176
+ * exitActive?: string,
1177
+ * exitDone?: string,
1178
+ * }}
1179
+ */
1180
+ classNames: et,
1181
+ /**
1182
+ * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
1183
+ * applied.
1184
+ *
1185
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1186
+ *
1187
+ * @type Function(node: HtmlElement, isAppearing: bool)
1188
+ */
1189
+ onEnter: y.func,
1190
+ /**
1191
+ * A `<Transition>` callback fired immediately after the 'enter-active' or
1192
+ * 'appear-active' class is applied.
1193
+ *
1194
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1195
+ *
1196
+ * @type Function(node: HtmlElement, isAppearing: bool)
1197
+ */
1198
+ onEntering: y.func,
1199
+ /**
1200
+ * A `<Transition>` callback fired immediately after the 'enter' or
1201
+ * 'appear' classes are **removed** and the `done` class is added to the DOM node.
1202
+ *
1203
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1204
+ *
1205
+ * @type Function(node: HtmlElement, isAppearing: bool)
1206
+ */
1207
+ onEntered: y.func,
1208
+ /**
1209
+ * A `<Transition>` callback fired immediately after the 'exit' class is
1210
+ * applied.
1211
+ *
1212
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1213
+ *
1214
+ * @type Function(node: HtmlElement)
1215
+ */
1216
+ onExit: y.func,
1217
+ /**
1218
+ * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
1219
+ *
1220
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1221
+ *
1222
+ * @type Function(node: HtmlElement)
1223
+ */
1224
+ onExiting: y.func,
1225
+ /**
1226
+ * A `<Transition>` callback fired immediately after the 'exit' classes
1227
+ * are **removed** and the `exit-done` class is added to the DOM node.
1228
+ *
1229
+ * **Note**: when `nodeRef` prop is passed, `node` is not passed
1230
+ *
1231
+ * @type Function(node: HtmlElement)
1232
+ */
1233
+ onExited: y.func
1234
+ }) : {};
1235
+ export {
1236
+ qe as C,
1237
+ y as P
1238
+ };