easemob-chat-uikit 1.1.0 → 1.2.0

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 (57) hide show
  1. package/ChatUI.esm.js +21502 -20645
  2. package/ChatUI.js +21502 -20645
  3. package/ChatUI.umd.js +21502 -20645
  4. package/README.md +0 -3
  5. package/package.json +1 -1
  6. package/style/avatar/style/style.scss +1 -1
  7. package/style/badge/style/style.scss +7 -3
  8. package/style/baseMessage/style/style.scss +51 -7
  9. package/style/button/style/mixin.scss +32 -3
  10. package/style/button/style/style.scss +15 -5
  11. package/style/checkbox/style/style.scss +1 -1
  12. package/style/contactList/style/detail.scss +9 -4
  13. package/style/contactList/style/group.scss +1 -1
  14. package/style/contactList/style/list.scss +7 -2
  15. package/style/conversation/style/item.scss +14 -3
  16. package/style/header/style/style.scss +4 -0
  17. package/style/icon/style/style.scss +6 -2
  18. package/style/imageMessage/style/style.scss +2 -1
  19. package/style/messageStatus/style/style.scss +3 -1
  20. package/style/modal/style/style.scss +8 -2
  21. package/style/scrollList/style/style.scss +6 -1
  22. package/style/style/color/color.scss +1 -0
  23. package/style/style/index.scss +1 -0
  24. package/style/style/text/index.scss +69 -0
  25. package/style/style/themes/default.scss +6 -4
  26. package/style/thread/style/panel.scss +6 -2
  27. package/style/thread/style/style.scss +9 -0
  28. package/style/userCardMessage/style/style.scss +4 -2
  29. package/style/userSelect/style/style.scss +5 -1
  30. package/style/videoMessage/style/style.scss +3 -0
  31. package/style.css +2885 -1234
  32. package/types/component/entry.d.ts +2 -2
  33. package/types/component/icon/const.d.ts +17 -1
  34. package/types/component/input/Input.d.ts +4 -2
  35. package/types/component/input/Search.d.ts +1 -0
  36. package/types/component/scrollList/ScrollList.d.ts +1 -1
  37. package/types/component/userItem/UserItem.d.ts +1 -0
  38. package/types/eventHandler/index.d.ts +60 -16
  39. package/types/module/baseMessage/BaseMessage.d.ts +4 -1
  40. package/types/module/chat/Chat.d.ts +34 -7
  41. package/types/module/chat/MessageList.d.ts +1 -0
  42. package/types/module/chatroom/Chatroom.d.ts +1 -0
  43. package/types/module/contactList/ContactDetail.d.ts +2 -0
  44. package/types/module/contactList/ContactList.d.ts +3 -0
  45. package/types/module/header/Header.d.ts +4 -2
  46. package/types/module/hooks/chat.d.ts +2 -1
  47. package/types/module/hooks/useChatroomMember.d.ts +2 -1
  48. package/types/module/hooks/useConversation.d.ts +2 -1
  49. package/types/module/messageInput/emoji/Emoji.d.ts +2 -0
  50. package/types/module/reaction/EmojiKeyboard.d.ts +1 -0
  51. package/types/module/store/AddressStore.d.ts +4 -0
  52. package/types/module/store/Provider.d.ts +6 -1
  53. package/types/module/store/rootContext.d.ts +1 -1
  54. package/types/module/textMessage/TextMessage.d.ts +3 -2
  55. package/types/module/thread/Thread.d.ts +0 -7
  56. package/types/module/userSelect/UserSelect.d.ts +3 -0
  57. package/types/module/utils/color.d.ts +3 -1
package/README.md CHANGED
@@ -66,9 +66,6 @@ UIKIt 由三部分组成:UI 组件,管理数据的 mobx store, chat SDK。UI
66
66
  <td style=font-size:10px>点击头像显示好友名片,可以发送好友的个人名片信息</td>
67
67
  </tr>
68
68
  <tr>
69
- <td colspan="3">
70
- 更多功能开发中 ...
71
- </td>
72
69
  </tr>
73
70
 
74
71
  </table>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easemob-chat-uikit",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "main": "ChatUI.umd.js",
6
6
  "type": "module",
@@ -54,7 +54,7 @@ $presence-tag-cls: #{$cui-prefix}-presence-tag;
54
54
  line-height: $line-height-base;
55
55
  list-style: none;
56
56
  font-feature-settings: 'tnum';
57
- cursor: pointer;
57
+ // cursor: pointer;
58
58
  user-select: none;
59
59
 
60
60
  display: inline-block;
@@ -6,10 +6,9 @@ $number-prefix-cls: #{$cui-prefix}-scroll-number;
6
6
  position: relative;
7
7
  display: inline-block;
8
8
  line-height: 1;
9
-
10
9
  &-count {
11
10
  z-index: $zindex-badge;
12
- min-width: $badge-height;
11
+ // min-width: $badge-height;
13
12
  height: $badge-height;
14
13
  padding: 0 6px;
15
14
  color: $badge-text-color;
@@ -109,7 +108,12 @@ $number-prefix-cls: #{$cui-prefix}-scroll-number;
109
108
  }
110
109
 
111
110
  }
112
-
111
+ .#{$number-prefix-cls}{
112
+ &-only{
113
+ width: 8px;
114
+ display: inline-block;
115
+ }
116
+ }
113
117
  @keyframes cuiZoomBadgeIn {
114
118
  0% {
115
119
  transform: scale(0) translate(50%, -50%);
@@ -141,7 +141,7 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
141
141
  display: flex;
142
142
  align-items: flex-end;
143
143
  gap: 8px;
144
- margin: 0 8px;
144
+ margin: 0 12px;
145
145
 
146
146
  &-action {
147
147
  fill: $gray-6;
@@ -155,6 +155,7 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
155
155
  &-content {
156
156
  // flex: 1;
157
157
  display: flex;
158
+ flex-direction: column;
158
159
  max-width: calc(100% - 120px);
159
160
  // margin: $msg-base-content-margin;
160
161
  padding: $msg-base-content-padding;
@@ -219,6 +220,9 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
219
220
  .#{$status-prefix-cls}-content {
220
221
  border-radius: $msg-bubble-square-border-radius;
221
222
  }
223
+ .#{$status-prefix-cls}-body{
224
+ margin: 0 17px;
225
+ }
222
226
  }
223
227
 
224
228
  &-info {
@@ -235,6 +239,10 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
235
239
  color: $msg-nickname-font-color;
236
240
  }
237
241
 
242
+ &-time-and-status-box{
243
+ display: flex;
244
+ align-items: center;
245
+ }
238
246
  &-time {
239
247
  display: inline-block;
240
248
  // width: $msg-time-width;
@@ -289,6 +297,7 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
289
297
  overflow: hidden;
290
298
  white-space: nowrap;
291
299
  text-overflow: ellipsis;
300
+
292
301
  }
293
302
  // 当前元素下第二个div(child(2))里面的span字号是12px
294
303
 
@@ -304,7 +313,7 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
304
313
 
305
314
  }
306
315
 
307
- &-icon{
316
+ &-icon svg{
308
317
  fill: $gray-98;
309
318
  }
310
319
  }
@@ -321,13 +330,18 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
321
330
  }
322
331
  &>span:nth-child(3){
323
332
  // flex: none;
324
- /* flex: 1; */
333
+ flex: 1;
325
334
  overflow: hidden;
326
335
  /* flex-wrap: nowrap; */
327
336
  /* display: flex; */
328
337
  height: 16px;
329
- text-overflow: ellipsis;
330
- white-space: nowrap;
338
+ // 会把容器撑开
339
+ // text-overflow: ellipsis;
340
+ // white-space: nowrap;
341
+
342
+ display: -webkit-box;
343
+ -webkit-line-clamp: 1;
344
+ -webkit-box-orient: vertical;
331
345
  }
332
346
  }
333
347
 
@@ -344,7 +358,7 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
344
358
  border-top: 1px solid $special-8;
345
359
  }
346
360
  &-name{
347
- &-icon{
361
+ &-icon svg{
348
362
  fill: $special-5;
349
363
  }
350
364
  }
@@ -355,6 +369,35 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
355
369
  }
356
370
  }
357
371
  }
372
+ // dark mode primary style
373
+ &-dark.#{$status-prefix-cls}-secondly {
374
+ .#{$status-prefix-cls}-content {
375
+ background: $blue-2;
376
+ color: $msg-bubble-font-color-primary;
377
+
378
+ &::after {
379
+ border-left: $msg-bubble-arrow-border-size solid $blue-2 !important;
380
+ }
381
+
382
+ &::before {
383
+ border-right: $msg-bubble-arrow-border-size solid $blue-2 !important;
384
+ }
385
+ }
386
+ }
387
+ &-dark.#{$status-prefix-cls}-primary {
388
+ .#{$status-prefix-cls}-content {
389
+ background: $blue-6;
390
+ color: $msg-bubble-font-color-secondly;
391
+
392
+ &::after {
393
+ border-left: $msg-bubble-arrow-border-size solid $blue-6 !important;
394
+ }
395
+
396
+ &::before {
397
+ border-right: $msg-bubble-arrow-border-size solid $blue-6 !important;
398
+ }
399
+ }
400
+ }
358
401
  }
359
402
 
360
403
  .#{$moreAction-prefix-cls} {
@@ -376,7 +419,8 @@ $moreAction-prefix-cls: #{$cui-prefix}-moreAction;
376
419
  font-style: normal;
377
420
  font-weight: 500;
378
421
  line-height: 20px;
379
-
422
+ min-width: 188px;
423
+ text-align: left;
380
424
  >div{
381
425
  margin-right: 8px;
382
426
  }
@@ -120,15 +120,17 @@
120
120
  @include button-variant-other($btn-ghost-bg, unset, $btn-ghost-bg);
121
121
  text-align: center;
122
122
  padding: 6px;
123
+ box-shadow: none!important;
124
+ border: none;
123
125
  &:hover,
124
126
  &:focus{
125
127
  background: $gray-95;
126
- border: 1px solid transparent;
128
+ // border: 1px solid transparent;
127
129
  };
128
130
  &:active {
129
131
  text-decoration: none;
130
132
  background: $gray-9;
131
- border: 1px solid transparent;
133
+ // border: 1px solid transparent;
132
134
  }
133
135
  }
134
136
 
@@ -158,7 +160,7 @@
158
160
  &:hover,
159
161
  &:focus,
160
162
  &:active {
161
- @include button-color($gray-2, $gray-1, $gray-3);
163
+ @include button-color($gray-4, $gray-2, $gray-2);
162
164
  text-shadow: none;
163
165
  box-shadow: none;
164
166
  }
@@ -225,4 +227,31 @@
225
227
 
226
228
  @mixin btn-dark() {
227
229
  @include button-variant-primary($gray-95, $gray-1, $gray-4, $primary-color-active, dark);
230
+ }
231
+
232
+ @mixin btn-primary-dark(){
233
+ @include button-variant-primary($gray-95, $blue-6,$blue-6, $blue-7, dark);
234
+ &:hover,
235
+ &:focus {
236
+ @include button-color($gray-95, $blue-7, $blue-7)
237
+ }
238
+
239
+ &:active {
240
+ @include button-color($gray-98, $blue-5, $blue-5)
241
+ }
242
+
243
+ }
244
+
245
+ @mixin btn-text-dark(){
246
+ @include button-variant-other($blue-6, unset, $btn-ghost-bg);
247
+ &:hover,
248
+ &:focus{
249
+ background: $blue-1;
250
+ // border: 1px solid transparent;
251
+ };
252
+ &:active {
253
+ text-decoration: none;
254
+ background: $blue-2;
255
+ // border: 1px solid transparent;
256
+ }
228
257
  }
@@ -5,9 +5,16 @@ $btn-prefix-cls: #{$cui-prefix}-button;
5
5
  .#{$btn-prefix-cls} {
6
6
  @include btn();
7
7
  @include btn-default();
8
-
8
+ &-default{
9
+ &.#{$btn-prefix-cls}-dark{
10
+ @include btn-dark();
11
+ }
12
+ }
9
13
  &-primary {
10
- @include btn-primary()
14
+ @include btn-primary();
15
+ &.#{$btn-prefix-cls}-dark{
16
+ @include btn-primary-dark();
17
+ }
11
18
  }
12
19
 
13
20
  &-ghost {
@@ -16,6 +23,9 @@ $btn-prefix-cls: #{$cui-prefix}-button;
16
23
 
17
24
  &-text {
18
25
  @include btn-text();
26
+ &.#{$btn-prefix-cls}-dark{
27
+ @include btn-text-dark();
28
+ }
19
29
  }
20
30
 
21
31
  &-round {
@@ -26,7 +36,7 @@ $btn-prefix-cls: #{$cui-prefix}-button;
26
36
  @include btn-circle($btn-prefix-cls);
27
37
  }
28
38
 
29
- &-dark{
30
- @include btn-dark();
31
- }
39
+ // &-dark{
40
+ // @include btn-dark();
41
+ // }
32
42
  }
@@ -9,7 +9,7 @@ $checkbox-prefix-cls: #{$cui-prefix}-checkbox;
9
9
 
10
10
  .#{$checkbox-prefix-cls} {
11
11
  position: relative;
12
- top: 0.1em;
12
+ // top: 0.1em;
13
13
 
14
14
  &+span {
15
15
  padding-right: 8px;
@@ -62,9 +62,13 @@ $contact-detail-prefix-cls: #{$cui-prefix}-contact-detail;
62
62
  display: flex;
63
63
  gap: 8px;
64
64
  }
65
-
66
- &-btn{
65
+ &-btn-container{
66
+ display: flex;
67
+ color: $gray-9;
67
68
  margin-top: 16px;
69
+ align-items: center;
70
+ }
71
+ &-btn{
68
72
  width: fit-content;
69
73
  font-size: 16px;
70
74
  font-weight: 500;
@@ -72,9 +76,10 @@ $contact-detail-prefix-cls: #{$cui-prefix}-contact-detail;
72
76
  display: flex;
73
77
  align-items: center;
74
78
  padding: 12px 16px;
75
- gap: 4px;
79
+ gap: 8px;
80
+ color: $blue-5;
76
81
  & svg{
77
- fill: $gray-98;
82
+ fill: $blue-5;
78
83
  }
79
84
  }
80
85
  &-body{
@@ -1,7 +1,7 @@
1
1
  $contact-prefix-cls: #{$cui-prefix}-contactGroup;
2
2
 
3
3
  .#{$contact-prefix-cls}{
4
- padding-top: 2px;
4
+ padding-top: 8px;
5
5
  &-title{
6
6
  display: flex;
7
7
  justify-content: space-between;
@@ -10,18 +10,23 @@ $contact-prefix-cls: #{$cui-prefix}-contactList;
10
10
  overflow-y: hidden;
11
11
  display: flex;
12
12
  flex-direction: column;
13
- padding: 8px;
13
+ padding: 0 8px;
14
14
  gap: 8px;
15
15
  box-sizing: border-box;
16
16
  background-color: $gray-95;
17
17
  &-content{
18
18
  flex: 1;
19
- overflow-y: auto;
19
+ overflow-y: overlay;
20
20
  overflow-x: hidden;
21
21
  position: relative;
22
+ scrollbar-color: $gray-8 transparent;
22
23
  }
23
24
 
24
25
  &-dark{
25
26
  background-color: $gray-1;
27
+
28
+ .#{$contact-prefix-cls}-content{
29
+ scrollbar-color: $gray-4 transparent;
30
+ }
26
31
  }
27
32
  }
@@ -61,6 +61,7 @@ $conversation-prefix-cls: #{$cui-prefix}-conversationItem;
61
61
  gap: 2px;
62
62
  padding-right: 20px;
63
63
  text-overflow: ellipsis;
64
+ cursor: default;
64
65
  &-silent{
65
66
  position: absolute;
66
67
  right: 0;
@@ -74,6 +75,7 @@ $conversation-prefix-cls: #{$cui-prefix}-conversationItem;
74
75
  color: $font-color;
75
76
  white-space: nowrap;
76
77
  height: 20px;
78
+ cursor: default;
77
79
  }
78
80
 
79
81
  &-time{
@@ -86,7 +88,7 @@ $conversation-prefix-cls: #{$cui-prefix}-conversationItem;
86
88
  &-sticky{
87
89
  background-color: $gray-9;
88
90
  border-radius: 0;
89
- margin: 4px 0;
91
+ margin: 0;
90
92
  padding: 12px 20px;
91
93
 
92
94
  .#{$conversation-prefix-cls}-info{
@@ -102,13 +104,22 @@ $conversation-prefix-cls: #{$cui-prefix}-conversationItem;
102
104
  .#{$conversation-prefix-cls}-message{
103
105
  color: $gray-8;
104
106
  }
107
+
105
108
  }
106
109
  &-dark.#{$conversation-prefix-cls}-sticky{
107
110
  background-color: $blue-2;
108
111
  }
109
112
 
110
113
  &-dark:hover{
111
- background: $blue-2;
114
+ background: $gray-3;
115
+ }
116
+
117
+ &-dark.#{$conversation-prefix-cls}-selected{
118
+ background-color: $blue-2 !important;
119
+ .#{$conversation-prefix-cls}-nickname{
120
+ color: $blue-6;
121
+ }
122
+
112
123
  }
113
124
  }
114
125
 
@@ -130,7 +141,7 @@ $conversation-prefix-cls: #{$cui-prefix}-conversationItem;
130
141
  li{
131
142
  display: flex;
132
143
  align-items: center;
133
- justify-content: center;
144
+ justify-content: left;
134
145
  list-style: none;
135
146
  height: 36px;
136
147
  border-radius: 8px;
@@ -24,6 +24,7 @@ $header-prefix-cls: #{$cui-prefix}-header;
24
24
  text-overflow: ellipsis;
25
25
  flex: 1;
26
26
  text-align: left;
27
+ @include Title(large)
27
28
  }
28
29
  &-sub{
29
30
  text-align: left;
@@ -48,6 +49,9 @@ $header-prefix-cls: #{$cui-prefix}-header;
48
49
  line-height: 36px;
49
50
  border-radius: 8px;
50
51
  cursor: pointer;
52
+ display: flex;
53
+ align-items: center;
54
+ gap: 8px;
51
55
  }
52
56
  li:hover{
53
57
  background: #F1F2F3;
@@ -4,13 +4,17 @@
4
4
  height: 1em;
5
5
  line-height: 1em;
6
6
  display: inline-block;
7
- fill: $gray-6;
7
+ fill: $gray-3;
8
8
  svg {
9
9
  width: 100%;
10
10
  height: 100%;
11
11
  }
12
12
  }
13
13
 
14
+ .#{$cui-prefix}-icon-dark {
15
+ fill: $gray-8;
16
+ }
17
+
14
18
  .#{$cui-prefix}-primary-icon {
15
- fill: $blue-6;
19
+ fill: $gray-3;
16
20
  }
@@ -8,12 +8,13 @@ $img-msg-prefix-cls: #{$cui-prefix}-message-img;
8
8
  padding: 0 8px 8px;
9
9
  }
10
10
  img{
11
- // width: 100%;
11
+ width: 100%;
12
12
  display: block;
13
13
  max-width: 300px;
14
14
  max-height: 300px;
15
15
  object-fit: contain;
16
16
  border-radius: 16px;
17
+ margin: auto;
17
18
  // width: -webkit-fill-available;
18
19
  }
19
20
 
@@ -1,7 +1,9 @@
1
1
  $status-prefix-cls: #{$cui-prefix}-message-status;
2
2
 
3
3
  .#{$status-prefix-cls} {
4
- padding: 3px;
4
+ padding: 0 3px;
5
+ display: block;
6
+ height: 20px;
5
7
  &-icon{
6
8
  img{
7
9
  width: 20px;
@@ -6,14 +6,17 @@ $dialog-prefix-cls: #{$cui-prefix}-modal;
6
6
  .#{$dialog-prefix-cls} {
7
7
  @include modal-mask();
8
8
  position: relative;
9
- top: 100px;
9
+ // top: 100px;
10
10
  width: auto;
11
11
  max-width: calc(100vw - 32px);
12
12
  margin: 0 auto;
13
- padding-bottom: 24px;
13
+ // padding-bottom: 24px;
14
14
 
15
15
  &-wrap {
16
16
  z-index: $zindex-modal;
17
+ display: flex;
18
+ justify-content: center;
19
+ align-items: center;
17
20
  }
18
21
 
19
22
  &-title {
@@ -107,6 +110,9 @@ $dialog-prefix-cls: #{$cui-prefix}-modal;
107
110
  margin-bottom: 0;
108
111
  margin-left: 8px;
109
112
  }
113
+ .#{$cui-prefix}-button{
114
+ padding: 8px 20px;
115
+ }
110
116
  }
111
117
  &-open {
112
118
  overflow: hidden;
@@ -3,5 +3,10 @@ $scrollList-prefix-cls: #{$cui-prefix}-scrollList;
3
3
 
4
4
  .#{$scrollList-prefix-cls} {
5
5
  height: 100%;
6
- overflow-y: auto;
6
+ overflow-y: overlay;
7
+ overflow-anchor: none;
8
+ scrollbar-color: $gray-8 transparent;
9
+ &-dark {
10
+ scrollbar-color: $gray-4 transparent;
11
+ }
7
12
  }
@@ -25,6 +25,7 @@
25
25
  --cui-error-color: hsla(350, 100%, 60%, 1);
26
26
  --cui-neutral-color: hsla(203, 8%, 60%, 1);
27
27
  --cui-neutral-special-color: hsla(220, 36%, 60%, 1);
28
+ --cui-avatar-color: hsla(203, 100%, 60%, 1);
28
29
  }
29
30
 
30
31
  $cui-primary-color: hsla(203, 100%, 60%, 1);
@@ -1,3 +1,4 @@
1
1
  @import './themes/default.scss';
2
2
  // @import './themes/dark.scss';
3
3
  @import './core/index';
4
+ @import './text/index.scss'
@@ -0,0 +1,69 @@
1
+ @import '../color/color.scss';
2
+ $default-color: $gray-1;
3
+ @mixin Headline($size, $color: $default-color) {
4
+ @if $size == large{
5
+ font-size: 20px;
6
+ line-height: 28px;
7
+ }
8
+ @else if $size == medium{
9
+ font-size: 18px;
10
+ line-height: 26px;
11
+ }
12
+ @else if $size == small{
13
+ font-size: 16px;
14
+ line-height: 24px;
15
+ }
16
+ font-weight: 600;
17
+ color: $color;
18
+ }
19
+
20
+ @mixin Title($size, $color: $default-color) {
21
+ @if $size == large{
22
+ font-size: 18px;
23
+ line-height: 26px;
24
+ }
25
+ @else if $size == medium{
26
+ font-size: 16px;
27
+ line-height: 24px;
28
+ }
29
+ @else if $size == small{
30
+ font-size: 14px;
31
+ line-height: 20px;
32
+ }
33
+ font-weight: 500;
34
+ color: $color;
35
+ }
36
+
37
+ @mixin Label($size, $color: $default-color) {
38
+ @if $size == large{
39
+ font-size: 16px;
40
+ line-height: 24px;
41
+ }
42
+ @else if $size == medium{
43
+ font-size: 14px;
44
+ line-height: 20px;
45
+ }
46
+ @else if $size == small{
47
+ font-size: 12px;
48
+ line-height: 16px;
49
+ }
50
+ font-weight: 500;
51
+ color: $color;
52
+ }
53
+
54
+ @mixin Body($size, $color: $default-color) {
55
+ @if $size == large{
56
+ font-size: 16px;
57
+ line-height: 24px;
58
+ }
59
+ @else if $size == medium{
60
+ font-size: 14px;
61
+ line-height: 20px;
62
+ }
63
+ @else if $size == small{
64
+ font-size: 12px;
65
+ line-height: 16px;
66
+ }
67
+ font-weight: 400;
68
+ color: $color;
69
+ }
@@ -1,5 +1,7 @@
1
1
  @import '../color/color.scss';
2
2
 
3
+
4
+
3
5
  $theme: light;
4
6
  // The prefix to use on all css classes from Chat UI.
5
7
  $cui-prefix: cui;
@@ -154,7 +156,7 @@ $disabled-color-dark: rgba(255, 255, 255, 0.75);
154
156
  $btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
155
157
 
156
158
  $btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
157
- $btn-font-weight: 40;
159
+ $btn-font-weight: 500;
158
160
  $btn-border-width: $border-width-base;
159
161
  $btn-border-style: $border-style-base;
160
162
  $btn-border-radius-base: $border-radius-base;
@@ -168,7 +170,7 @@ $btn-default-bg: $component-background;
168
170
  $btn-default-border: $border-color-base;
169
171
 
170
172
  $btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
171
- $btn-primary-color: #fff;
173
+ $btn-primary-color: $gray-98;
172
174
  $btn-primary-bg: $blue-5;
173
175
 
174
176
  $btn-height-lg: $height-lg;
@@ -200,7 +202,7 @@ $avatar-size-sm: 24px;
200
202
  $avatar-font-size-base: 18px;
201
203
  $avatar-font-size-lg: 24px;
202
204
  $avatar-font-size-sm: 14px;
203
- $avatar-bg: $blue-5;
205
+ $avatar-bg: $blue-6;
204
206
  $avatar-color: #fff;
205
207
  $avatar-border-radius: $border-radius-base;
206
208
  $avatar-group-overlapping: -8px;
@@ -272,7 +274,7 @@ $tooltip-bg: #fff;
272
274
  // Tooltip arrow width
273
275
  $tooltip-arrow-width: 8px * 1.414; // sqrt(2)
274
276
  // Tooltip distance with trigger
275
- $tooltip-distance: $tooltip-arrow-width - 1px + 4px;
277
+ $tooltip-distance: 4px;
276
278
  // Tooltip arrow color
277
279
  $tooltip-arrow-color: $tooltip-bg;
278
280
  $tooltip-border-radius: $border-radius-base;
@@ -1,7 +1,7 @@
1
1
  $thread-prefix-cls: #{$cui-prefix}-thread-panel;
2
2
  .#{$thread-prefix-cls}{
3
3
  top: 10px;
4
- right: 20px;
4
+ left: 50%;
5
5
  width: 540px;
6
6
  z-index: 1060;
7
7
  position: fixed;
@@ -12,7 +12,11 @@ $thread-prefix-cls: #{$cui-prefix}-thread-panel;
12
12
  border-radius: 16px;
13
13
  background-color: $gray-98;
14
14
  overflow: hidden;
15
-
15
+ top: 0;
16
+ left: 0;
17
+ opacity: 0;
18
+ transition: top 0.3s, left 0.3s, opacity 0.3s;
19
+ transform-origin: 50% 50% 0;
16
20
  &-header{
17
21
  &-title{
18
22
  font-size: 18px;