@tencentcloud/chat-uikit-react 2.2.3 → 2.2.5

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 (164) hide show
  1. package/.babelrc +2 -2
  2. package/.editorconfig +16 -0
  3. package/.eslintrc.js +225 -48
  4. package/.husky/pre-commit +4 -0
  5. package/.lintstagedrc.json +6 -0
  6. package/.stylelintrc.js +40 -0
  7. package/CHANGELOG.md +14 -0
  8. package/README.md +8 -8
  9. package/dist/cjs/assets/fonts/iconfont.ttf +0 -0
  10. package/dist/cjs/assets/fonts/iconfont.woff +0 -0
  11. package/dist/cjs/assets/fonts/iconfont.woff2 +0 -0
  12. package/dist/cjs/components/ConversationPreview/ConversationPreviewContent.js +1 -1
  13. package/dist/cjs/components/ConversationPreview/utils.js +1 -1
  14. package/dist/cjs/components/DivWithEdit/WithText.js +1 -1
  15. package/dist/cjs/components/Input/Input.js +1 -1
  16. package/dist/cjs/components/Plugins/index.js +1 -1
  17. package/dist/cjs/components/TUIKit/TUIKit.js +1 -1
  18. package/dist/cjs/components/TUIMessage/utils/emojiMap.js +1 -1
  19. package/dist/cjs/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
  20. package/dist/cjs/components/TUIMessageInput/hooks/useEmojiPicker.js +1 -1
  21. package/dist/cjs/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
  22. package/dist/cjs/components/TUIMessageList/TUIMessageList.js +1 -1
  23. package/dist/cjs/components/untils.js +1 -1
  24. package/dist/cjs/context/TUIKitContext.js +1 -1
  25. package/dist/cjs/index.css +2 -1
  26. package/dist/cjs/index.d.css +646 -172
  27. package/dist/cjs/index.d.ts +1 -1
  28. package/dist/cjs/index.js +1 -1
  29. package/dist/cjs/locales/en-US/index.js +1 -0
  30. package/dist/cjs/locales/index.js +1 -1
  31. package/dist/cjs/locales/ja-JP/TUIChat.js +1 -0
  32. package/dist/cjs/locales/ja-JP/TUIContact.js +1 -0
  33. package/dist/cjs/locales/ja-JP/TUIConversation.js +1 -0
  34. package/dist/cjs/locales/ja-JP/TUIProfile.js +1 -0
  35. package/dist/cjs/locales/ja-JP/index.js +1 -0
  36. package/dist/cjs/locales/ko-KR/TUIChat.js +1 -0
  37. package/dist/cjs/locales/ko-KR/TUIContact.js +1 -0
  38. package/dist/cjs/locales/ko-KR/TUIConversation.js +1 -0
  39. package/dist/cjs/locales/ko-KR/TUIProfile.js +1 -0
  40. package/dist/cjs/locales/ko-KR/index.js +1 -0
  41. package/dist/cjs/utils/env.d.ts +4 -3
  42. package/dist/cjs/utils/env.js +1 -1
  43. package/dist/esm/assets/fonts/iconfont.ttf +0 -0
  44. package/dist/esm/assets/fonts/iconfont.woff +0 -0
  45. package/dist/esm/assets/fonts/iconfont.woff2 +0 -0
  46. package/dist/esm/components/ConversationPreview/ConversationPreviewContent.js +1 -1
  47. package/dist/esm/components/ConversationPreview/utils.js +1 -1
  48. package/dist/esm/components/DivWithEdit/WithText.js +1 -1
  49. package/dist/esm/components/Input/Input.js +1 -1
  50. package/dist/esm/components/Plugins/index.js +1 -1
  51. package/dist/esm/components/TUIKit/TUIKit.js +1 -1
  52. package/dist/esm/components/TUIMessage/utils/emojiMap.js +1 -1
  53. package/dist/esm/components/TUIMessageInput/TUIMessageInputDefault.js +1 -1
  54. package/dist/esm/components/TUIMessageInput/hooks/useEmojiPicker.js +1 -1
  55. package/dist/esm/components/TUIMessageInput/hooks/useMessageInputText.js +1 -1
  56. package/dist/esm/components/TUIMessageList/TUIMessageList.js +1 -1
  57. package/dist/esm/components/untils.js +1 -1
  58. package/dist/esm/context/TUIKitContext.js +1 -1
  59. package/dist/esm/index.css +2 -1
  60. package/dist/esm/index.d.css +646 -172
  61. package/dist/esm/index.d.ts +1 -1
  62. package/dist/esm/index.js +1 -1
  63. package/dist/esm/locales/en-US/index.js +1 -0
  64. package/dist/esm/locales/index.js +1 -1
  65. package/dist/esm/locales/ja-JP/TUIChat.js +1 -0
  66. package/dist/esm/locales/ja-JP/TUIContact.js +1 -0
  67. package/dist/esm/locales/ja-JP/TUIConversation.js +1 -0
  68. package/dist/esm/locales/ja-JP/TUIProfile.js +1 -0
  69. package/dist/esm/locales/ja-JP/index.js +1 -0
  70. package/dist/esm/locales/ko-KR/TUIChat.js +1 -0
  71. package/dist/esm/locales/ko-KR/TUIContact.js +1 -0
  72. package/dist/esm/locales/ko-KR/TUIConversation.js +1 -0
  73. package/dist/esm/locales/ko-KR/TUIProfile.js +1 -0
  74. package/dist/esm/locales/ko-KR/index.js +1 -0
  75. package/dist/esm/utils/env.d.ts +4 -3
  76. package/dist/esm/utils/env.js +1 -1
  77. package/package.json +22 -16
  78. package/rollup.config.js +40 -25
  79. package/src/assets/fonts/iconfont.ttf +0 -0
  80. package/src/assets/fonts/iconfont.woff +0 -0
  81. package/src/assets/fonts/iconfont.woff2 +0 -0
  82. package/src/components/ConversationCreate/styles/ConversationCreatGroupDetail.scss +16 -7
  83. package/src/components/ConversationCreate/styles/index.scss +23 -13
  84. package/src/components/ConversationPreview/ConversationPreviewContent.tsx +1 -2
  85. package/src/components/ConversationPreview/styles/index.scss +47 -19
  86. package/src/components/ConversationPreview/utils.tsx +37 -29
  87. package/src/components/DivWithEdit/WithText.tsx +4 -2
  88. package/src/components/Input/Input.tsx +3 -1
  89. package/src/components/Input/styles/index.scss +7 -5
  90. package/src/components/Model/styles/layout.scss +3 -3
  91. package/src/components/Plugins/styles/color.scss +17 -3
  92. package/src/components/Popup/styles/layout.scss +2 -1
  93. package/src/components/TUIChatHeader/styles/layout.scss +13 -2
  94. package/src/components/TUIConversationList/index.scss +26 -9
  95. package/src/components/TUIKit/TUIKit.tsx +4 -3
  96. package/src/components/TUIKit/styles/index.scss +27 -7
  97. package/src/components/TUIManage/styles/index.scss +20 -10
  98. package/src/components/TUIMessage/styles/color.scss +20 -9
  99. package/src/components/TUIMessage/styles/layout.scss +44 -11
  100. package/src/components/TUIMessage/utils/emojiMap.ts +1 -1
  101. package/src/components/TUIMessageInput/TUIMessageInputDefault.tsx +3 -1
  102. package/src/components/TUIMessageInput/hooks/useEmojiPicker.tsx +1 -1
  103. package/src/components/TUIMessageInput/hooks/useMessageInputText.tsx +3 -1
  104. package/src/components/TUIMessageInput/styles/color.scss +25 -6
  105. package/src/components/TUIMessageInput/styles/layout.scss +58 -16
  106. package/src/components/TUIMessageList/TUIMessageList.tsx +17 -10
  107. package/src/components/TUIMessageList/styles/layout.scss +16 -2
  108. package/src/components/TUIProfile/styles/layout.scss +33 -16
  109. package/src/components/untils.ts +13 -17
  110. package/src/context/TUIKitContext.tsx +6 -1
  111. package/src/locales/en-US/TUIGlobal.ts +6 -0
  112. package/src/locales/en-US/index.ts +14 -0
  113. package/src/locales/index.ts +15 -7
  114. package/src/locales/ja-JP/TUIChat.ts +27 -0
  115. package/src/locales/ja-JP/TUIContact.ts +30 -0
  116. package/src/locales/ja-JP/TUIConversation.ts +33 -0
  117. package/src/locales/ja-JP/TUIGlobal.ts +6 -0
  118. package/src/locales/ja-JP/TUIProfile.ts +15 -0
  119. package/src/locales/{en → ja-JP}/index.ts +0 -2
  120. package/src/locales/ko-KR/TUIChat.ts +27 -0
  121. package/src/locales/ko-KR/TUIContact.ts +30 -0
  122. package/src/locales/ko-KR/TUIConversation.ts +33 -0
  123. package/src/locales/ko-KR/TUIGlobal.ts +6 -0
  124. package/src/locales/ko-KR/TUIProfile.ts +15 -0
  125. package/src/locales/ko-KR/index.ts +11 -0
  126. package/src/locales/zh-CN/TUIGlobal.ts +6 -0
  127. package/src/styles/colors/_color-dark.scss +35 -0
  128. package/src/styles/colors/_color-light.scss +35 -0
  129. package/src/styles/colors/_color-theme.scss +54 -0
  130. package/src/styles/fonts/icon-font.scss +18 -0
  131. package/src/styles/index.scss +4 -0
  132. package/src/styles/normalize.scss +355 -0
  133. package/src/utils/env.ts +7 -2
  134. package/tsconfig.json +1 -0
  135. package/dist/cjs/locales/en/index.js +0 -1
  136. package/dist/esm/locales/en/index.js +0 -1
  137. package/src/components/TUIKit/styles/reset.scss +0 -67
  138. /package/dist/cjs/locales/{en → en-US}/TUIChat.js +0 -0
  139. /package/dist/cjs/locales/{en → en-US}/TUIContact.js +0 -0
  140. /package/dist/cjs/locales/{en → en-US}/TUIConversation.js +0 -0
  141. /package/dist/cjs/locales/{en → en-US}/TUIProfile.js +0 -0
  142. /package/dist/cjs/locales/{zh_cn → zh-CN}/TUIChat.js +0 -0
  143. /package/dist/cjs/locales/{zh_cn → zh-CN}/TUIContact.js +0 -0
  144. /package/dist/cjs/locales/{zh_cn → zh-CN}/TUIConversation.js +0 -0
  145. /package/dist/cjs/locales/{zh_cn → zh-CN}/TUIProfile.js +0 -0
  146. /package/dist/cjs/locales/{zh_cn → zh-CN}/index.js +0 -0
  147. /package/dist/esm/locales/{en → en-US}/TUIChat.js +0 -0
  148. /package/dist/esm/locales/{en → en-US}/TUIContact.js +0 -0
  149. /package/dist/esm/locales/{en → en-US}/TUIConversation.js +0 -0
  150. /package/dist/esm/locales/{en → en-US}/TUIProfile.js +0 -0
  151. /package/dist/esm/locales/{zh_cn → zh-CN}/TUIChat.js +0 -0
  152. /package/dist/esm/locales/{zh_cn → zh-CN}/TUIContact.js +0 -0
  153. /package/dist/esm/locales/{zh_cn → zh-CN}/TUIConversation.js +0 -0
  154. /package/dist/esm/locales/{zh_cn → zh-CN}/TUIProfile.js +0 -0
  155. /package/dist/esm/locales/{zh_cn → zh-CN}/index.js +0 -0
  156. /package/src/locales/{en → en-US}/TUIChat.ts +0 -0
  157. /package/src/locales/{en → en-US}/TUIContact.ts +0 -0
  158. /package/src/locales/{en → en-US}/TUIConversation.ts +0 -0
  159. /package/src/locales/{en → en-US}/TUIProfile.ts +0 -0
  160. /package/src/locales/{zh_cn → zh-CN}/TUIChat.ts +0 -0
  161. /package/src/locales/{zh_cn → zh-CN}/TUIContact.ts +0 -0
  162. /package/src/locales/{zh_cn → zh-CN}/TUIConversation.ts +0 -0
  163. /package/src/locales/{zh_cn → zh-CN}/TUIProfile.ts +0 -0
  164. /package/src/locales/{zh_cn → zh-CN}/index.ts +0 -0
@@ -1,89 +1,16 @@
1
- html, body, div, span, applet, object, iframe,
2
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
- a, abbr, acronym, address, big, cite, code,
4
- del, dfn, em, img, ins, kbd, q, s, samp,
5
- small, strike, strong, sub, sup, tt, var,
6
- b, u, i, center,
7
- dl, dt, dd, ol, ul, li,
8
- fieldset, form, label, legend,
9
- table, caption, tbody, tfoot, thead, tr, th, td,
10
- article, aside, canvas, details, embed,
11
- figure, figcaption, footer, header, hgroup,
12
- menu, nav, output, ruby, section, summary,
13
- time, mark, audio, video {
14
- margin: 0;
15
- padding: 0;
16
- border: 0;
17
- font-size: 100%;
18
- font: inherit;
19
- vertical-align: baseline;
20
- }
21
-
22
- a, a:link, a:visited, a:hover, a:active {
23
- text-decoration: none;
24
- color: inherit;
25
- }
26
-
27
- /* HTML5 display-role reset for older browsers */
28
- article, aside, details, figcaption, figure,
29
- footer, header, hgroup, menu, nav, section {
30
- display: block;
31
- }
32
-
33
- body {
34
- line-height: 1;
35
- }
36
-
37
- ol, ul {
38
- list-style: none;
39
- }
40
-
41
- blockquote, q {
42
- quotes: none;
43
- }
44
-
45
- blockquote:before, blockquote:after,
46
- q:before, q:after {
47
- content: "";
48
- content: none;
49
- }
50
-
51
- table {
52
- border-collapse: collapse;
53
- border-spacing: 0;
54
- }
55
-
56
- html, body {
57
- height: 100%;
58
- width: 100%;
59
- margin: 0;
60
- -webkit-text-size-adjust: 100%;
61
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
62
- }
63
-
64
- * {
65
- -webkit-touch-callout: none;
66
- -webkit-user-select: none;
67
- -khtml-user-select: none;
68
- -moz-user-select: none;
69
- -ms-user-select: none;
70
- user-select: none;
71
- }
72
-
73
- .text-ellipsis {
74
- text-overflow: ellipsis;
75
- white-space: nowrap;
76
- overflow: hidden;
77
- }
78
-
79
1
  .tui-kit {
80
2
  position: relative;
81
3
  display: flex;
82
4
  width: 100%;
83
5
  height: 100%;
84
- background-color: #FFFFFF;
85
6
  text-align: initial;
86
7
  }
8
+ [data-chat-theme=light] .tui-kit {
9
+ background-color: var(--chat-theme-light-bg-primary);
10
+ }
11
+ [data-chat-theme=dark] .tui-kit {
12
+ background-color: var(--chat-theme-dark-bg-primary);
13
+ }
87
14
 
88
15
  .sample-chat {
89
16
  position: relative;
@@ -99,12 +26,15 @@ html, body {
99
26
  position: absolute;
100
27
  top: 0;
101
28
  z-index: 1;
29
+ width: 100%;
30
+ height: 100%;
102
31
  }
103
32
  .sample-chat-left-container {
104
33
  max-width: 360px;
105
34
  min-width: 360px;
106
35
  display: flex;
107
36
  flex-direction: column;
37
+ position: relative;
108
38
  }
109
39
  .sample-chat-tab {
110
40
  display: flex;
@@ -125,7 +55,7 @@ html, body {
125
55
  text-align: center;
126
56
  }
127
57
  .sample-chat-tab-active {
128
- color: #147AFF;
58
+ color: #147aff;
129
59
  }
130
60
 
131
61
  .tuikit-container {
@@ -223,17 +153,399 @@ body #webpack-dev-server-client-overlay {
223
153
  .sample-chat-h5 .tui-message-input .tui-kit-input-box--focus {
224
154
  outline: none;
225
155
  }
156
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
157
+ /* Document
158
+ ========================================================================== */
159
+ /**
160
+ * 1. Correct the line height in all browsers.
161
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
162
+ */
163
+ html {
164
+ line-height: 1.15; /* 1 */
165
+ -webkit-text-size-adjust: 100%; /* 2 */
166
+ }
167
+
168
+ /* Sections
169
+ ========================================================================== */
170
+ /**
171
+ * Remove the margin in all browsers.
172
+ */
173
+ body {
174
+ margin: 0;
175
+ }
176
+
177
+ /**
178
+ * Render the `main` element consistently in IE.
179
+ */
180
+ main {
181
+ display: block;
182
+ }
183
+
184
+ /**
185
+ * Correct the font size and margin on `h1` elements within `section` and
186
+ * `article` contexts in Chrome, Firefox, and Safari.
187
+ */
188
+ h1 {
189
+ font-size: 2em;
190
+ margin: 0.67em 0;
191
+ }
192
+
193
+ /* Grouping content
194
+ ========================================================================== */
195
+ /**
196
+ * 1. Add the correct box sizing in Firefox.
197
+ * 2. Show the overflow in Edge and IE.
198
+ */
199
+ hr {
200
+ box-sizing: content-box; /* 1 */
201
+ height: 0; /* 1 */
202
+ overflow: visible; /* 2 */
203
+ }
204
+
205
+ /**
206
+ * 1. Correct the inheritance and scaling of font size in all browsers.
207
+ * 2. Correct the odd `em` font sizing in all browsers.
208
+ */
209
+ pre {
210
+ /* stylelint-disable-next-line font-family-no-duplicate-names */
211
+ font-family: monospace, monospace; /* 1 */
212
+ font-size: 1em; /* 2 */
213
+ }
214
+
215
+ /* Text-level semantics
216
+ ========================================================================== */
217
+ /**
218
+ * Remove the gray background on active links in IE 10.
219
+ */
220
+ a {
221
+ background-color: transparent;
222
+ }
223
+
224
+ /**
225
+ * 1. Remove the bottom border in Chrome 57-
226
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
227
+ */
228
+ abbr[title] {
229
+ border-bottom: none; /* 1 */
230
+ text-decoration: underline; /* 2 */
231
+ text-decoration: underline dotted; /* 2 */
232
+ }
233
+
234
+ /**
235
+ * Add the correct font weight in Chrome, Edge, and Safari.
236
+ */
237
+ b,
238
+ strong {
239
+ font-weight: bolder;
240
+ }
241
+
242
+ /**
243
+ * 1. Correct the inheritance and scaling of font size in all browsers.
244
+ * 2. Correct the odd `em` font sizing in all browsers.
245
+ */
246
+ code,
247
+ kbd,
248
+ samp {
249
+ font-family: monospace, monospace; /* 1 */
250
+ font-size: 1em; /* 2 */
251
+ }
252
+
253
+ /**
254
+ * Add the correct font size in all browsers.
255
+ */
256
+ small {
257
+ font-size: 80%;
258
+ }
259
+
260
+ /**
261
+ * Prevent `sub` and `sup` elements from affecting the line height in
262
+ * all browsers.
263
+ */
264
+ sub,
265
+ sup {
266
+ font-size: 75%;
267
+ line-height: 0;
268
+ position: relative;
269
+ vertical-align: baseline;
270
+ }
271
+
272
+ sub {
273
+ bottom: -0.25em;
274
+ }
275
+
276
+ sup {
277
+ top: -0.5em;
278
+ }
279
+
280
+ /* Embedded content
281
+ ========================================================================== */
282
+ /**
283
+ * Remove the border on images inside links in IE 10.
284
+ */
285
+ img {
286
+ border-style: none;
287
+ }
288
+
289
+ /* Forms
290
+ ========================================================================== */
291
+ /**
292
+ * 1. Change the font styles in all browsers.
293
+ * 2. Remove the margin in Firefox and Safari.
294
+ */
295
+ button,
296
+ input,
297
+ optgroup,
298
+ select,
299
+ textarea {
300
+ font-family: inherit; /* 1 */
301
+ font-size: 100%; /* 1 */
302
+ line-height: 1.15; /* 1 */
303
+ margin: 0; /* 2 */
304
+ }
305
+
306
+ /**
307
+ * Show the overflow in IE.
308
+ * 1. Show the overflow in Edge.
309
+ */
310
+ button,
311
+ input { /* 1 */
312
+ overflow: visible;
313
+ }
314
+
315
+ /**
316
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
317
+ * 1. Remove the inheritance of text transform in Firefox.
318
+ */
319
+ button,
320
+ select { /* 1 */
321
+ text-transform: none;
322
+ }
323
+
324
+ /**
325
+ * Correct the inability to style clickable types in iOS and Safari.
326
+ */
327
+ button,
328
+ [type=button],
329
+ [type=reset],
330
+ [type=submit] {
331
+ -webkit-appearance: button;
332
+ }
333
+
334
+ /**
335
+ * Remove the inner border and padding in Firefox.
336
+ */
337
+ button::-moz-focus-inner,
338
+ [type=button]::-moz-focus-inner,
339
+ [type=reset]::-moz-focus-inner,
340
+ [type=submit]::-moz-focus-inner {
341
+ border-style: none;
342
+ padding: 0;
343
+ }
344
+
345
+ /**
346
+ * Restore the focus styles unset by the previous rule.
347
+ */
348
+ button:-moz-focusring,
349
+ [type=button]:-moz-focusring,
350
+ [type=reset]:-moz-focusring,
351
+ [type=submit]:-moz-focusring {
352
+ outline: 1px dotted ButtonText;
353
+ }
354
+
355
+ /**
356
+ * Correct the padding in Firefox.
357
+ */
358
+ fieldset {
359
+ padding: 0.35em 0.75em 0.625em;
360
+ }
361
+
362
+ /**
363
+ * 1. Correct the text wrapping in Edge and IE.
364
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
365
+ * 3. Remove the padding so developers are not caught out when they zero out
366
+ * `fieldset` elements in all browsers.
367
+ */
368
+ legend {
369
+ box-sizing: border-box; /* 1 */
370
+ color: inherit; /* 2 */
371
+ display: table; /* 1 */
372
+ max-width: 100%; /* 1 */
373
+ padding: 0; /* 3 */
374
+ white-space: normal; /* 1 */
375
+ }
376
+
377
+ /**
378
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
379
+ */
380
+ progress {
381
+ vertical-align: baseline;
382
+ }
383
+
384
+ /**
385
+ * Remove the default vertical scrollbar in IE 10+.
386
+ */
387
+ textarea {
388
+ overflow: auto;
389
+ }
390
+
391
+ /**
392
+ * 1. Add the correct box sizing in IE 10.
393
+ * 2. Remove the padding in IE 10.
394
+ */
395
+ [type=checkbox],
396
+ [type=radio] {
397
+ box-sizing: border-box; /* 1 */
398
+ padding: 0; /* 2 */
399
+ }
400
+
401
+ /**
402
+ * Correct the cursor style of increment and decrement buttons in Chrome.
403
+ */
404
+ [type=number]::-webkit-inner-spin-button,
405
+ [type=number]::-webkit-outer-spin-button {
406
+ height: auto;
407
+ }
408
+
409
+ /**
410
+ * 1. Correct the odd appearance in Chrome and Safari.
411
+ * 2. Correct the outline style in Safari.
412
+ */
413
+ [type=search] {
414
+ -webkit-appearance: textfield; /* 1 */
415
+ outline-offset: -2px; /* 2 */
416
+ }
417
+
418
+ /**
419
+ * Remove the inner padding in Chrome and Safari on macOS.
420
+ */
421
+ [type=search]::-webkit-search-decoration {
422
+ -webkit-appearance: none;
423
+ }
424
+
425
+ /**
426
+ * 1. Correct the inability to style clickable types in iOS and Safari.
427
+ * 2. Change font properties to `inherit` in Safari.
428
+ */
429
+ ::-webkit-file-upload-button {
430
+ -webkit-appearance: button; /* 1 */
431
+ font: inherit; /* 2 */
432
+ }
433
+
434
+ /* Interactive
435
+ ========================================================================== */
436
+ /*
437
+ * Add the correct display in Edge, IE 10+, and Firefox.
438
+ */
439
+ details {
440
+ display: block;
441
+ }
442
+
443
+ /*
444
+ * Add the correct display in all browsers.
445
+ */
446
+ summary {
447
+ display: list-item;
448
+ }
449
+
450
+ /* Misc
451
+ ========================================================================== */
452
+ /**
453
+ * Add the correct display in IE 10+.
454
+ */
455
+ template {
456
+ display: none;
457
+ }
458
+
459
+ /**
460
+ * Add the correct display in IE 10.
461
+ */
462
+ [hidden] {
463
+ display: none;
464
+ }
465
+
466
+ :root {
467
+ -webkit-font-smoothing: antialiased;
468
+ -moz-osx-font-smoothing: grayscale;
469
+ }
470
+
471
+ @font-face {
472
+ font-family: iconfont;
473
+ src: url("./assets/fonts/iconfont.woff2?t=1722856322648") format("woff2"), url("./assets/fonts/iconfont.woff?t=1722856322648") format("woff"), url("./assets/fonts/iconfont.ttf?t=1722856322648") format("truetype");
474
+ }
475
+ .iconfont {
476
+ font-family: iconfont, Arial, sans-serif !important;
477
+ font-size: 20px;
478
+ font-style: normal;
479
+ line-height: 1;
480
+ vertical-align: bottom;
481
+ -webkit-font-smoothing: antialiased;
482
+ -webkit-text-stroke-width: 0.2px;
483
+ -moz-osx-font-smoothing: grayscale;
484
+ }
485
+
486
+ :root {
487
+ --chat-theme-light-bg-5: #999;
488
+ --chat-theme-light-bg-4: #b3b3b3;
489
+ --chat-theme-light-bg-3: #e5e7eb;
490
+ --chat-theme-light-bg-2: #f0f0f0;
491
+ --chat-theme-light-bg-1: #fff;
492
+ --chat-theme-light-bg-primary: #fff;
493
+ --chat-theme-light-bg-secondary: #f0f0f0;
494
+ --chat-theme-light-bg-active: #e6f1ff;
495
+ --chat-theme-light-text-5: #000;
496
+ --chat-theme-light-text-4: #666;
497
+ --chat-theme-light-text-3: #7a7a7a;
498
+ --chat-theme-light-text-2: #7a7a7a;
499
+ --chat-theme-light-text-1: #7a7a7a;
500
+ --chat-theme-light-text-primary: #000;
501
+ --chat-theme-light-text-secondary: #7a7a7a;
502
+ --chat-theme-light-status-info: #147aff;
503
+ --chat-theme-light-status-success: #34c759;
504
+ --chat-theme-light-status-danger: #ff3742;
505
+ --chat-theme-light-border-5: #e0e0e0;
506
+ --chat-theme-light-box-shadow-1: rgba(0, 0, 0, 0.24) 0 3px 8px;
507
+ color-scheme: light dark;
508
+ }
509
+
510
+ :root {
511
+ --chat-theme-dark-bg-5: #76777e;
512
+ --chat-theme-dark-bg-4: #5d5e67;
513
+ --chat-theme-dark-bg-3: #454650;
514
+ --chat-theme-dark-bg-2: #2e303a;
515
+ --chat-theme-dark-bg-1: #191b26;
516
+ --chat-theme-dark-bg-primary: #191b26;
517
+ --chat-theme-dark-bg-secondary: #2e303a;
518
+ --chat-theme-dark-bg-active: #4e4e4e;
519
+ --chat-theme-dark-text-5: #000;
520
+ --chat-theme-dark-text-4: #666;
521
+ --chat-theme-dark-text-3: #7a7a7a;
522
+ --chat-theme-dark-text-2: #7a7a7a;
523
+ --chat-theme-dark-text-1: #7a7a7a;
524
+ --chat-theme-dark-text-primary: #fff;
525
+ --chat-theme-dark-text-secondary: #8b8b8b;
526
+ --chat-theme-dark-status-info: #147aff;
527
+ --chat-theme-dark-status-success: #34c759;
528
+ --chat-theme-dark-status-danger: #ff3742;
529
+ --chat-theme-dark-border-5: #4e4e4e;
530
+ --chat-theme-dark-box-shadow-1: rgba(203, 203, 203, 0.755) 0 3px 8px;
531
+ color-scheme: light dark;
532
+ }
226
533
  .tui-conversation {
227
- height: 0;
228
534
  flex: 1;
229
- min-width: 360px;
230
- max-width: 400px;
535
+ box-sizing: border-box;
536
+ overflow: hidden;
537
+ min-width: 0;
231
538
  display: flex;
232
539
  flex-direction: column;
233
540
  position: relative;
234
- border-right: 1px solid #F9FAFB;
235
541
  text-align: initial;
236
542
  }
543
+ [data-chat-theme=light] .tui-conversation {
544
+ background-color: var(--chat-theme-light-bg-primary);
545
+ }
546
+ [data-chat-theme=dark] .tui-conversation {
547
+ background-color: var(--chat-theme-dark-bg-primary);
548
+ }
237
549
  .tui-conversation .tui-conversation-header {
238
550
  display: flex;
239
551
  padding: 10px 20px;
@@ -254,17 +566,18 @@ body #webpack-dev-server-client-overlay {
254
566
  margin: 100px auto 50px;
255
567
  }
256
568
  .tui-conversation .no-result-message {
257
- color: #999999;
569
+ color: #999;
258
570
  font-weight: 400;
259
571
  font-size: 16px;
260
572
  font-family: PingFangSC-Medium;
261
573
  line-height: 22px;
262
574
  }
263
575
 
264
- .tui-conversation-h5 {
265
- min-width: 100%;
266
- width: 100%;
267
- max-width: 100%;
576
+ .tui-conversation-h5 .tui-conversation-header {
577
+ padding: 10px;
578
+ }
579
+ .tui-conversation-h5 .conversation-list-container .conversation-preview-container {
580
+ padding: 0 10px;
268
581
  }
269
582
  .message-default {
270
583
  width: 100%;
@@ -295,6 +608,12 @@ body #webpack-dev-server-client-overlay {
295
608
  padding-bottom: 3px;
296
609
  max-width: 60%;
297
610
  }
611
+ [data-chat-theme=light] .message-default .content .name {
612
+ color: var(--chat-theme-light-text-primary);
613
+ }
614
+ [data-chat-theme=dark] .message-default .content .name {
615
+ color: var(--chat-theme-dark-text-primary);
616
+ }
298
617
 
299
618
  .in {
300
619
  flex: 1;
@@ -351,7 +670,12 @@ body #webpack-dev-server-client-overlay {
351
670
  font-family: PingFangSC-Medium;
352
671
  line-height: 14px;
353
672
  text-align: right;
354
- color: #7A7A7A;
673
+ }
674
+ [data-chat-theme=light] .message-status .time {
675
+ color: var(--chat-theme-light-text-secondary);
676
+ }
677
+ [data-chat-theme=dark] .message-status .time {
678
+ color: var(--chat-theme-dark-text-secondary);
355
679
  }
356
680
 
357
681
  .message-image, .message-video {
@@ -362,8 +686,11 @@ body #webpack-dev-server-client-overlay {
362
686
  bottom: 10px;
363
687
  right: 10px;
364
688
  }
365
- .message-image .message-status .time, .message-video .message-status .time {
366
- color: #FFFFFF;
689
+ [data-chat-theme=light] .message-image .message-status .time, [data-chat-theme=light] .message-video .message-status .time {
690
+ color: var(--chat-theme-light-text-primary);
691
+ }
692
+ [data-chat-theme=dark] .message-image .message-status .time, [data-chat-theme=dark] .message-video .message-status .time {
693
+ color: var(--chat-theme-dark-text-primary);
367
694
  }
368
695
 
369
696
  .message-text {
@@ -383,6 +710,12 @@ body #webpack-dev-server-client-overlay {
383
710
  display: inline;
384
711
  vertical-align: middle;
385
712
  }
713
+ [data-chat-theme=light] .message-text-content-p {
714
+ color: var(--chat-theme-light-text-primary);
715
+ }
716
+ [data-chat-theme=dark] .message-text-content-p {
717
+ color: var(--chat-theme-dark-text-primary);
718
+ }
386
719
  .message-text-content .message-status {
387
720
  display: inline-flex;
388
721
  float: right;
@@ -505,9 +838,14 @@ body #webpack-dev-server-client-overlay {
505
838
  }
506
839
 
507
840
  .meesage-bubble-reply {
508
- background: #ECEBEB;
509
841
  padding: 8px 16px;
510
842
  }
843
+ [data-chat-theme=light] .meesage-bubble-reply {
844
+ background-color: var(--chat-theme-light-bg-secondary);
845
+ }
846
+ [data-chat-theme=dark] .meesage-bubble-reply {
847
+ background-color: var(--chat-theme-dark-bg-secondary);
848
+ }
511
849
  .meesage-bubble-reply-in {
512
850
  border-radius: 16px 16px 16px 0;
513
851
  }
@@ -515,8 +853,7 @@ body #webpack-dev-server-client-overlay {
515
853
  border-radius: 16px 16px 0px 16px;
516
854
  }
517
855
  .meesage-bubble-reply .message-text {
518
- border-radius: none;
519
- border: none;
856
+ border: none !important;
520
857
  }
521
858
  .meesage-bubble-reply .bubble {
522
859
  padding: 0;
@@ -528,25 +865,38 @@ body #webpack-dev-server-client-overlay {
528
865
  position: relative;
529
866
  padding: 10px 14px;
530
867
  margin-bottom: 10px;
531
- background: #FFFFFF;
868
+ }
869
+ [data-chat-theme=light] .meesage-bubble-reply-main {
870
+ background-color: var(--chat-theme-light-bg-primary);
871
+ }
872
+ [data-chat-theme=dark] .meesage-bubble-reply-main {
873
+ background-color: var(--chat-theme-dark-bg-primary);
532
874
  }
533
875
  .meesage-bubble-reply-main::before {
534
876
  content: "";
535
877
  position: absolute;
536
878
  width: 6px;
537
879
  height: 100%;
538
- background: #D9D9D9;
539
880
  top: 0;
540
881
  left: 0;
541
882
  }
883
+ [data-chat-theme=light] .meesage-bubble-reply-main::before {
884
+ background-color: var(--chat-theme-light-bg-5);
885
+ }
886
+ [data-chat-theme=dark] .meesage-bubble-reply-main::before {
887
+ background-color: var(--chat-theme-dark-bg-5);
888
+ }
542
889
  .meesage-bubble-reply-main .title {
543
- font-family: PingFangSC-Medium;
544
- font-style: normal;
545
890
  font-weight: 500;
546
891
  font-size: 14px;
547
- line-height: 17px;
548
892
  padding-bottom: 10px;
549
893
  }
894
+ [data-chat-theme=light] .meesage-bubble-reply-main .title {
895
+ color: var(--chat-theme-light-text-primary);
896
+ }
897
+ [data-chat-theme=dark] .meesage-bubble-reply-main .title {
898
+ color: var(--chat-theme-dark-text-primary);
899
+ }
550
900
  .meesage-bubble-reply-main .message-context {
551
901
  opacity: 0.6;
552
902
  }
@@ -780,24 +1130,39 @@ body #webpack-dev-server-client-overlay {
780
1130
  color: #147aff !important;
781
1131
  }
782
1132
 
783
- .message-text, .message-custom {
784
- border: 1px solid #DDDDDD;
1133
+ [data-chat-theme=light] .message-text,
1134
+ [data-chat-theme=light] .message-custom {
1135
+ border: 1px solid var(--chat-theme-light-border-5);
785
1136
  }
786
-
787
- .bubble-out {
788
- background: #F2F7FF;
789
- border: 1px solid #F2F7FF;
1137
+ [data-chat-theme=dark] .message-text,
1138
+ [data-chat-theme=dark] .message-custom {
1139
+ border: 1px solid var(--chat-theme-dark-border-5);
790
1140
  }
791
1141
 
792
- .meesage-bubble-reply-out {
793
- background: #F2F7FF;
1142
+ [data-chat-theme=light] .bubble {
1143
+ background-color: var(--chat-theme-light-bg-primary);
794
1144
  }
1145
+ [data-chat-theme=dark] .bubble {
1146
+ background-color: var(--chat-theme-dark-bg-primary);
1147
+ }
1148
+ [data-chat-theme=light] .bubble-out {
1149
+ border: none;
1150
+ background-color: var(--chat-theme-light-bg-secondary);
1151
+ }
1152
+ [data-chat-theme=dark] .bubble-out {
1153
+ border: none;
1154
+ background-color: var(--chat-theme-dark-bg-secondary);
1155
+ }
1156
+
795
1157
  .meesage-bubble-reply-out .meesage-bubble-reply-main .message-text {
796
1158
  background: none;
797
1159
  }
798
1160
 
799
- .message-tip {
800
- color: #999999;
1161
+ [data-chat-theme=light] .message-tip {
1162
+ color: var(--chat-theme-light-text-secondary);
1163
+ }
1164
+ [data-chat-theme=dark] .message-tip {
1165
+ color: var(--chat-theme-dark-text-secondary);
801
1166
  }
802
1167
 
803
1168
  .tip .bubble .edit {
@@ -825,10 +1190,22 @@ body #webpack-dev-server-client-overlay {
825
1190
  }
826
1191
 
827
1192
  .plugin-popup-box {
828
- background: #FFFFFF;
829
- box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
830
1193
  border-radius: 16px;
831
1194
  }
1195
+ [data-chat-theme=light] .plugin-popup-box {
1196
+ color: var(--chat-theme-light-text-primary);
1197
+ }
1198
+ [data-chat-theme=dark] .plugin-popup-box {
1199
+ color: var(--chat-theme-dark-text-primary);
1200
+ }
1201
+ [data-chat-theme=light] .plugin-popup-box {
1202
+ background-color: var(--chat-theme-light-bg-primary);
1203
+ box-shadow: var(--chat-theme-light-box-shadow-1);
1204
+ }
1205
+ [data-chat-theme=dark] .plugin-popup-box {
1206
+ background-color: var(--chat-theme-dark-bg-3);
1207
+ box-shadow: var(--chat-theme-dark-box-shadow-1);
1208
+ }
832
1209
  .tui-message-input {
833
1210
  display: flex;
834
1211
  flex-direction: column;
@@ -843,7 +1220,6 @@ body #webpack-dev-server-client-overlay {
843
1220
  .tui-message-input-main .input-box {
844
1221
  flex: 1;
845
1222
  display: flex;
846
- padding: 0 8px;
847
1223
  position: relative;
848
1224
  min-height: 20px;
849
1225
  max-height: 200px;
@@ -852,6 +1228,7 @@ body #webpack-dev-server-client-overlay {
852
1228
  padding: 10px;
853
1229
  }
854
1230
  .tui-message-input-main .input-box .input-visibility-content {
1231
+ min-height: 20px;
855
1232
  word-break: break-all;
856
1233
  visibility: hidden;
857
1234
  max-width: -webkit-fill-available;
@@ -879,6 +1256,12 @@ body #webpack-dev-server-client-overlay {
879
1256
  border: none;
880
1257
  background: none;
881
1258
  }
1259
+ [data-chat-theme=light] .tui-message-input-main .input-box textarea {
1260
+ color: var(--chat-theme-light-text-primary);
1261
+ }
1262
+ [data-chat-theme=dark] .tui-message-input-main .input-box textarea {
1263
+ color: var(--chat-theme-dark-text-primary);
1264
+ }
882
1265
  .tui-message-input-main .input-box textarea:focus, .tui-message-input-main .input-box textarea:active {
883
1266
  border: none;
884
1267
  outline: none;
@@ -928,6 +1311,7 @@ ul li {
928
1311
  .emoji-picker .face-list-item {
929
1312
  padding: 5px;
930
1313
  cursor: pointer;
1314
+ user-select: none;
931
1315
  }
932
1316
  .emoji-picker .face-list-item img {
933
1317
  width: 20px;
@@ -972,13 +1356,13 @@ ul li {
972
1356
 
973
1357
  .input-quote {
974
1358
  padding: 7px 16px;
975
- background: #F9F9F9;
1359
+ background: #f9f9f9;
976
1360
  display: flex;
977
1361
  align-items: center;
978
1362
  }
979
1363
  .input-quote-content {
980
1364
  flex: 1;
981
- background: #FFFFFF;
1365
+ background: #fff;
982
1366
  padding: 2px 14px;
983
1367
  position: relative;
984
1368
  display: flex;
@@ -987,14 +1371,14 @@ ul li {
987
1371
  font-size: 14px;
988
1372
  font-family: PingFangSC-Medium;
989
1373
  line-height: 17px;
990
- color: #000000;
1374
+ color: #000;
991
1375
  }
992
1376
  .input-quote-content::before {
993
1377
  content: "";
994
1378
  position: absolute;
995
1379
  width: 6px;
996
1380
  height: 100%;
997
- background: #999999;
1381
+ background: #999;
998
1382
  top: 0;
999
1383
  left: 0;
1000
1384
  }
@@ -1007,7 +1391,7 @@ ul li {
1007
1391
  }
1008
1392
 
1009
1393
  .tui-forward {
1010
- background: #FFFFFF;
1394
+ background: #fff;
1011
1395
  border-radius: 16px;
1012
1396
  display: flex;
1013
1397
  flex-direction: column;
@@ -1040,7 +1424,7 @@ ul li {
1040
1424
  line-height: 20px;
1041
1425
  padding: 10px;
1042
1426
  text-align: center;
1043
- color: #999999;
1427
+ color: #999;
1044
1428
  }
1045
1429
  .tui-forward-search {
1046
1430
  padding: 10px 15px;
@@ -1096,7 +1480,7 @@ ul li {
1096
1480
  }
1097
1481
  .tui-forward-footer .button {
1098
1482
  cursor: pointer;
1099
- background: #0365F9;
1483
+ background: #0365f9;
1100
1484
  border-radius: 31px;
1101
1485
  padding: 10px 21px;
1102
1486
  font-family: PingFangSC-Medium;
@@ -1104,7 +1488,7 @@ ul li {
1104
1488
  font-weight: 400;
1105
1489
  font-size: 14px;
1106
1490
  line-height: 20px;
1107
- color: #FFFFFF;
1491
+ color: #fff;
1108
1492
  border: none;
1109
1493
  }
1110
1494
  .tui-forward-footer-name {
@@ -1124,19 +1508,38 @@ ul li {
1124
1508
  transform: rotate(90deg);
1125
1509
  }
1126
1510
 
1127
- .tui-message-input .tui-kit-input-box--focus {
1128
- outline: 1px solid #147AFF;
1511
+ [data-chat-theme=light] .tui-message-input {
1512
+ background-color: var(--chat-theme-light-bg-primary);
1129
1513
  }
1130
- .tui-message-input .input-box {
1131
- border: 1px solid #D3DAF3;
1132
- background: #FFFFFF;
1514
+ [data-chat-theme=dark] .tui-message-input {
1515
+ background-color: var(--chat-theme-dark-bg-primary);
1516
+ }
1517
+ [data-chat-theme=light] .tui-message-input .tui-kit-input-box--focus {
1518
+ outline: 1px solid var(--chat-theme-light-status-info);
1519
+ }
1520
+ [data-chat-theme=dark] .tui-message-input .tui-kit-input-box--focus {
1521
+ outline: 1px solid var(--chat-theme-dark-status-info);
1522
+ }
1523
+ [data-chat-theme=light] .tui-message-input .input-box {
1524
+ background-color: var(--chat-theme-light-bg-primary);
1525
+ border: 1px solid var(--chat-theme-light-border-5);
1526
+ }
1527
+ [data-chat-theme=dark] .tui-message-input .input-box {
1528
+ background-color: var(--chat-theme-dark-bg-primary);
1529
+ border: 1px solid var(--chat-theme-dark-border-5);
1133
1530
  }
1134
1531
 
1135
1532
  .input-plugin-popup-box {
1136
- background: #FFFFFF;
1137
- box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
1138
1533
  border-radius: 16px;
1139
1534
  }
1535
+ [data-chat-theme=light] .input-plugin-popup-box {
1536
+ background-color: var(--chat-theme-light-bg-primary);
1537
+ box-shadow: var(--chat-theme-light-box-shadow-1);
1538
+ }
1539
+ [data-chat-theme=dark] .input-plugin-popup-box {
1540
+ background-color: var(--chat-theme-dark-bg-3);
1541
+ box-shadow: var(--chat-theme-dark-box-shadow-1);
1542
+ }
1140
1543
  .tui-kit-avatar {
1141
1544
  display: flex;
1142
1545
  align-items: center;
@@ -1198,7 +1601,6 @@ ul li {
1198
1601
  .conversation-preview-container {
1199
1602
  display: flex;
1200
1603
  align-items: center;
1201
- background-color: #FFFFFF;
1202
1604
  border: none;
1203
1605
  width: 100%;
1204
1606
  height: 64px;
@@ -1206,12 +1608,17 @@ ul li {
1206
1608
  line-height: 17px;
1207
1609
  padding: 0 20px;
1208
1610
  }
1611
+ [data-chat-theme=light] .conversation-preview-container {
1612
+ background-color: var(--chat-theme-light-bg-primary);
1613
+ }
1614
+ [data-chat-theme=dark] .conversation-preview-container {
1615
+ background-color: var(--chat-theme-dark-bg-primary);
1616
+ }
1209
1617
  .conversation-preview-container .content {
1210
- flex: 1;
1618
+ flex: 1 1 auto;
1211
1619
  text-align: left;
1212
- max-width: 58%;
1213
- min-width: 58%;
1214
1620
  margin-left: 10px;
1621
+ min-width: 0;
1215
1622
  }
1216
1623
  .conversation-preview-container .content .title {
1217
1624
  font-style: normal;
@@ -1221,13 +1628,17 @@ ul li {
1221
1628
  font-family: PingFangSC-Medium;
1222
1629
  padding: 1px 0;
1223
1630
  width: 100%;
1224
- color: #000;
1631
+ }
1632
+ [data-chat-theme=light] .conversation-preview-container .content .title {
1633
+ color: var(--chat-theme-light-text-primary);
1634
+ }
1635
+ [data-chat-theme=dark] .conversation-preview-container .content .title {
1636
+ color: var(--chat-theme-dark-text-primary);
1225
1637
  }
1226
1638
  .conversation-preview-container .content .message {
1227
1639
  overflow: hidden;
1228
1640
  text-overflow: ellipsis;
1229
1641
  white-space: nowrap;
1230
- color: #7A7A7A;
1231
1642
  font-family: PingFangSC-Medium;
1232
1643
  font-style: normal;
1233
1644
  font-weight: 400;
@@ -1235,10 +1646,15 @@ ul li {
1235
1646
  line-height: 14px;
1236
1647
  padding: 1px 0;
1237
1648
  }
1649
+ [data-chat-theme=light] .conversation-preview-container .content .message {
1650
+ color: var(--chat-theme-light-text-secondary);
1651
+ }
1652
+ [data-chat-theme=dark] .conversation-preview-container .content .message {
1653
+ color: var(--chat-theme-dark-text-secondary);
1654
+ }
1238
1655
  .conversation-preview-container .external {
1239
- min-width: 90px;
1240
1656
  text-align: right;
1241
- flex: 1;
1657
+ flex: 0 1 auto;
1242
1658
  display: flex;
1243
1659
  flex-direction: column;
1244
1660
  }
@@ -1247,7 +1663,6 @@ ul li {
1247
1663
  padding: 1px 0;
1248
1664
  }
1249
1665
  .conversation-preview-container .external .time {
1250
- color: #7A7A7A;
1251
1666
  font-family: PingFangSC-Medium;
1252
1667
  font-style: normal;
1253
1668
  font-weight: 400;
@@ -1255,6 +1670,12 @@ ul li {
1255
1670
  line-height: 14px;
1256
1671
  padding: 1px 0;
1257
1672
  }
1673
+ [data-chat-theme=light] .conversation-preview-container .external .time {
1674
+ color: var(--chat-theme-light-text-secondary);
1675
+ }
1676
+ [data-chat-theme=dark] .conversation-preview-container .external .time {
1677
+ color: var(--chat-theme-dark-text-secondary);
1678
+ }
1258
1679
  .conversation-preview-container .external .more--hover {
1259
1680
  display: flex;
1260
1681
  justify-content: flex-end;
@@ -1282,36 +1703,60 @@ ul li {
1282
1703
  font-weight: 500;
1283
1704
  box-sizing: border-box;
1284
1705
  }
1285
- .conversation-preview-container .external .more--hover .more-handle-box .more-handle-item:hover {
1286
- background: #147AFF;
1287
- opacity: 0.6;
1288
- color: #FFFFFF !important;
1706
+ [data-chat-theme=light] .conversation-preview-container .external .more--hover .more-handle-box .more-handle-item.delete {
1707
+ color: var(--chat-theme-light-status-danger);
1708
+ }
1709
+ [data-chat-theme=dark] .conversation-preview-container .external .more--hover .more-handle-box .more-handle-item.delete {
1710
+ color: var(--chat-theme-dark-status-danger);
1711
+ }
1712
+ [data-chat-theme=light] .conversation-preview-container .external .more--hover .more-handle-box .more-handle-item:hover {
1713
+ background-color: var(--chat-theme-light-bg-active);
1714
+ }
1715
+ [data-chat-theme=dark] .conversation-preview-container .external .more--hover .more-handle-box .more-handle-item:hover {
1716
+ background-color: var(--chat-theme-dark-bg-active);
1717
+ }
1718
+ [data-chat-theme=light] .conversation-preview-container:hover {
1719
+ background-color: var(--chat-theme-light-bg-active);
1720
+ }
1721
+ [data-chat-theme=dark] .conversation-preview-container:hover {
1722
+ background-color: var(--chat-theme-dark-bg-active);
1723
+ }
1724
+ [data-chat-theme=light] .conversation-preview-container.conversation-preview-content--pin {
1725
+ background-color: var(--chat-theme-light-bg-secondary);
1289
1726
  }
1290
- .conversation-preview-container:hover {
1291
- background-color: rgba(0, 110, 255, 0.1);
1727
+ [data-chat-theme=dark] .conversation-preview-container.conversation-preview-content--pin {
1728
+ background-color: var(--chat-theme-dark-bg-secondary);
1292
1729
  }
1293
- .conversation-preview-container.conversation-preview-content--pin {
1294
- background-color: rgba(242, 242, 242, 0.831372549);
1730
+ [data-chat-theme=light] .conversation-preview-container.conversation-preview-content--active {
1731
+ background-color: var(--chat-theme-light-bg-active);
1295
1732
  }
1296
- .conversation-preview-container.conversation-preview-content--active {
1297
- background-color: rgba(0, 110, 255, 0.1);
1733
+ [data-chat-theme=dark] .conversation-preview-container.conversation-preview-content--active {
1734
+ background-color: var(--chat-theme-dark-bg-active);
1298
1735
  }
1299
- .conversation-preview-container.conversation-preview-content--active .title {
1300
- color: rgb(20, 122, 255);
1736
+ [data-chat-theme=light] .conversation-preview-container.conversation-preview-content--active .title {
1737
+ color: var(--chat-theme-light-status-info);
1738
+ }
1739
+ [data-chat-theme=dark] .conversation-preview-container.conversation-preview-content--active .title {
1740
+ color: var(--chat-theme-dark-status-info);
1301
1741
  }
1302
1742
  .conversation-preview-container.conversation-preview-content--unread .unread {
1303
1743
  width: 16px;
1304
1744
  height: 13px;
1305
- background: #FF3742;
1306
1745
  border-radius: 16px;
1307
1746
  display: flex;
1308
1747
  justify-content: center;
1309
1748
  align-items: center;
1310
1749
  padding: 2px 5px 1px;
1311
- color: #FFFFFF;
1312
1750
  font-size: 11px;
1313
1751
  font-weight: 700;
1314
1752
  margin: 2px 0 2px auto;
1753
+ color: #fff;
1754
+ }
1755
+ [data-chat-theme=light] .conversation-preview-container.conversation-preview-content--unread .unread {
1756
+ background-color: var(--chat-theme-light-status-danger);
1757
+ }
1758
+ [data-chat-theme=dark] .conversation-preview-container.conversation-preview-content--unread .unread {
1759
+ background-color: var(--chat-theme-dark-status-danger);
1315
1760
  }
1316
1761
  .tui-chat-header {
1317
1762
  padding: 16px 20px;
@@ -1320,6 +1765,12 @@ ul li {
1320
1765
  justify-content: space-between;
1321
1766
  align-items: center;
1322
1767
  }
1768
+ [data-chat-theme=light] .tui-chat-header {
1769
+ background-color: var(--chat-theme-light-bg-primary);
1770
+ }
1771
+ [data-chat-theme=dark] .tui-chat-header {
1772
+ background-color: var(--chat-theme-dark-bg-primary);
1773
+ }
1323
1774
  .tui-chat-header-left {
1324
1775
  display: flex;
1325
1776
  align-items: center;
@@ -1336,7 +1787,12 @@ ul li {
1336
1787
  font-style: normal;
1337
1788
  font-weight: 700;
1338
1789
  font-size: 14px;
1339
- line-height: 17px;
1790
+ }
1791
+ [data-chat-theme=light] .tui-chat-header .title {
1792
+ color: var(--chat-theme-light-text-primary);
1793
+ }
1794
+ [data-chat-theme=dark] .tui-chat-header .title {
1795
+ color: var(--chat-theme-dark-text-primary);
1340
1796
  }
1341
1797
  .tui-chat-header .system {
1342
1798
  height: 32px;
@@ -1368,6 +1824,12 @@ ul li {
1368
1824
  position: relative;
1369
1825
  padding: 0 20px;
1370
1826
  }
1827
+ [data-chat-theme=light] .message-list {
1828
+ background-color: var(--chat-theme-light-bg-primary);
1829
+ }
1830
+ [data-chat-theme=dark] .message-list {
1831
+ background-color: var(--chat-theme-dark-bg-primary);
1832
+ }
1371
1833
  .message-list.hide {
1372
1834
  opacity: 0;
1373
1835
  }
@@ -1382,10 +1844,14 @@ ul li {
1382
1844
  font-style: normal;
1383
1845
  font-weight: 500;
1384
1846
  line-height: 17px;
1385
- color: #999999;
1847
+ }
1848
+ [data-chat-theme=light] .message-list .no-more {
1849
+ color: var(--chat-theme-light-text-secondary);
1850
+ }
1851
+ [data-chat-theme=dark] .message-list .no-more {
1852
+ color: var(--chat-theme-dark-text-secondary);
1386
1853
  }
1387
1854
  .message-list-time {
1388
- color: #7a7a7a;
1389
1855
  font-family: PingFangSC-Medium;
1390
1856
  font-size: 12px;
1391
1857
  font-weight: 400;
@@ -1393,31 +1859,33 @@ ul li {
1393
1859
  padding: 10px;
1394
1860
  text-align: center;
1395
1861
  }
1862
+ [data-chat-theme=light] .message-list-time {
1863
+ color: var(--chat-theme-light-text-secondary);
1864
+ }
1865
+ [data-chat-theme=dark] .message-list-time {
1866
+ color: var(--chat-theme-dark-text-secondary);
1867
+ }
1396
1868
  .tui-profile {
1397
1869
  display: flex;
1398
1870
  flex-direction: column;
1399
1871
  align-items: center;
1400
- width: 30%;
1401
- max-width: 360px;
1402
- min-width: 360px;
1403
- height: 100%;
1404
1872
  }
1405
1873
  .tui-profile-header {
1406
1874
  box-sizing: border-box;
1407
1875
  width: 100%;
1408
- padding: 16px 20px;
1876
+ padding: 15px;
1409
1877
  display: flex;
1410
1878
  align-items: center;
1411
- line-height: 32px;
1412
1879
  }
1413
1880
  .tui-profile-header h1 {
1881
+ font-size: 16px;
1414
1882
  font-weight: 600;
1415
1883
  padding: 0 11px;
1416
1884
  }
1417
1885
  .tui-profile-main {
1418
1886
  max-width: 100%;
1419
1887
  box-sizing: border-box;
1420
- padding: 20px;
1888
+ padding: 10px 10px 0;
1421
1889
  display: flex;
1422
1890
  flex-direction: column;
1423
1891
  align-items: center;
@@ -1441,24 +1909,28 @@ ul li {
1441
1909
  }
1442
1910
  .tui-profile-ID {
1443
1911
  padding: 6px 0;
1912
+ margin: 0;
1444
1913
  display: flex;
1445
1914
  align-items: center;
1446
1915
  font-weight: 400;
1447
1916
  font-size: 12px;
1448
1917
  font-family: PingFangSC-Medium;
1449
1918
  line-height: 14px;
1450
- color: #666666;
1919
+ color: #666;
1920
+ }
1921
+ .tui-profile-ID h5 {
1922
+ margin: 0;
1451
1923
  }
1452
1924
  .tui-profile-list {
1453
1925
  box-sizing: border-box;
1454
1926
  width: 100%;
1455
- padding: 0 20px;
1927
+ padding: 0 15px;
1456
1928
  display: flex;
1457
1929
  flex-direction: column;
1458
1930
  user-select: none;
1459
1931
  }
1460
1932
  .tui-profile-list-item {
1461
- padding: 20px 0 0;
1933
+ padding: 0;
1462
1934
  cursor: pointer;
1463
1935
  }
1464
1936
  .tui-profile-list-item h4 {
@@ -1467,11 +1939,12 @@ ul li {
1467
1939
  font-size: 16px;
1468
1940
  font-family: PingFangSC-Medium;
1469
1941
  line-height: 22px;
1942
+ margin: 10px 0;
1470
1943
  color: rgba(0, 0, 0, 0.6);
1471
1944
  }
1472
1945
  .tui-profile-div-with-edit {
1473
1946
  padding: 4px 0;
1474
- border-bottom: 1px solid #EEEEEE;
1947
+ border-bottom: 1px solid #eee;
1475
1948
  }
1476
1949
  .tui-profile-edit {
1477
1950
  border-bottom: none !important;
@@ -1485,7 +1958,7 @@ ul li {
1485
1958
  }
1486
1959
  .tui-profile-birthday .react-date-picker__calendar .react-calendar__navigation {
1487
1960
  height: 20px !important;
1488
- margin-bottom: 0px;
1961
+ margin-bottom: 0;
1489
1962
  }
1490
1963
  .tui-profile-birthday-calendar {
1491
1964
  border: none !important;
@@ -1528,7 +2001,7 @@ ul li {
1528
2001
  box-sizing: border-box;
1529
2002
  }
1530
2003
  .tui-kit-input-box.tui-kit-input-box--focus {
1531
- outline: 1px solid #147AFF;
2004
+ outline: 1px solid #147aff;
1532
2005
  }
1533
2006
  .tui-kit-input-box.tui-kit-input-border--bottom {
1534
2007
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
@@ -1547,6 +2020,7 @@ ul li {
1547
2020
  border-radius: 10px;
1548
2021
  border: none;
1549
2022
  box-sizing: border-box;
2023
+ font-size: 14px;
1550
2024
  }
1551
2025
  .tui-kit-input-box .tui-kit-input:focus {
1552
2026
  border: none;
@@ -1566,12 +2040,12 @@ ul li {
1566
2040
  border-left: 1px solid #f9fafb;
1567
2041
  }
1568
2042
  .tui-manage .red {
1569
- color: #FF584C !important;
2043
+ color: #ff584c !important;
1570
2044
  }
1571
2045
  .tui-manage .tui-manage-title {
1572
2046
  display: flex;
1573
2047
  align-items: center;
1574
- padding: 24px 20px;
2048
+ padding: 24px 10px;
1575
2049
  }
1576
2050
  .tui-manage .tui-manage-title span {
1577
2051
  margin-right: 10px;
@@ -1602,7 +2076,7 @@ ul li {
1602
2076
  font-size: 12px;
1603
2077
  font-family: PingFangSC-Medium;
1604
2078
  line-height: 14px;
1605
- color: #666666;
2079
+ color: #666;
1606
2080
  margin-bottom: 30px;
1607
2081
  text-align: center;
1608
2082
  }
@@ -1626,7 +2100,7 @@ ul li {
1626
2100
  }
1627
2101
 
1628
2102
  .tui-manage.tui-h5-manage {
1629
- border-left: 1px solid #f9fafb;
2103
+ border-left: none;
1630
2104
  display: flex;
1631
2105
  flex-direction: column;
1632
2106
  position: absolute;
@@ -1779,7 +2253,7 @@ ul li {
1779
2253
  .model {
1780
2254
  background: rgba(0, 0, 0, 0.5);
1781
2255
  position: fixed;
1782
- z-index: 2;
2256
+ z-index: 5;
1783
2257
  width: 100vw;
1784
2258
  top: 0;
1785
2259
  left: 0;