@cometchat/chat-uikit-react 6.0.6 → 6.1.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 (70) hide show
  1. package/dist/assets/audio_filter_icon.svg +3 -0
  2. package/dist/assets/chats_filter_icon.svg +1 -0
  3. package/dist/assets/file_filter_icon.svg +4 -0
  4. package/dist/assets/group_filter_icon.svg +3 -0
  5. package/dist/assets/link_filter_icon.svg +3 -0
  6. package/dist/assets/link_icon_2x.svg +3 -0
  7. package/dist/assets/messages_filter_icon.svg +1 -0
  8. package/dist/assets/photo_filter_icon.svg +3 -0
  9. package/dist/assets/search_message_icon.svg +14 -0
  10. package/dist/assets/unread_filter_icon.svg +7 -0
  11. package/dist/assets/video_filter_icon.svg +3 -0
  12. package/dist/index.d.ts +493 -5
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/styles/CometChatActionSheet.css +1 -4
  16. package/dist/styles/CometChatChangeScope.css +1 -4
  17. package/dist/styles/CometChatConversations.css +16 -1
  18. package/dist/styles/CometChatEmojiKeyboard.css +1 -6
  19. package/dist/styles/CometChatGroupMembers.css +7 -2
  20. package/dist/styles/CometChatList.css +12 -3
  21. package/dist/styles/CometChatMessageComposer.css +34 -1
  22. package/dist/styles/CometChatMessageHeader.css +55 -12
  23. package/dist/styles/CometChatMessageInformation.css +7 -7
  24. package/dist/styles/CometChatMessageList.css +42 -13
  25. package/dist/styles/CometChatReactionList.css +0 -6
  26. package/dist/styles/CometChatSearch.css +948 -0
  27. package/dist/styles/CometChatThreadHeader.css +18 -3
  28. package/dist/styles/StickersKeyboard.css +0 -20
  29. package/dist/styles/components/CometChatActionSheet.css +1 -4
  30. package/dist/styles/components/CometChatChangeScope.css +1 -4
  31. package/dist/styles/components/CometChatConversations.css +16 -1
  32. package/dist/styles/components/CometChatEmojiKeyboard.css +1 -6
  33. package/dist/styles/components/CometChatGroupMembers.css +7 -2
  34. package/dist/styles/components/CometChatList.css +12 -3
  35. package/dist/styles/components/CometChatMessageComposer.css +34 -1
  36. package/dist/styles/components/CometChatMessageHeader.css +55 -12
  37. package/dist/styles/components/CometChatMessageInformation.css +7 -7
  38. package/dist/styles/components/CometChatMessageList.css +42 -13
  39. package/dist/styles/components/CometChatReactionList.css +0 -6
  40. package/dist/styles/components/CometChatSearch.css +948 -0
  41. package/dist/styles/components/CometChatThreadHeader.css +18 -3
  42. package/dist/styles/components/StickersKeyboard.css +0 -20
  43. package/dist/styles/components/index.css +5 -0
  44. package/dist/styles/index.css +5 -0
  45. package/dist/types/Enums/Enums.d.ts +37 -0
  46. package/dist/types/components/BaseComponents/CometChatContextMenu/CometChatContextMenu.d.ts +1 -0
  47. package/dist/types/components/BaseComponents/CometChatList/CometChatList.d.ts +29 -4
  48. package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +5 -0
  49. package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +18 -0
  50. package/dist/types/components/CometChatGroupMembers/CometChatGroupMembers.d.ts +5 -0
  51. package/dist/types/components/CometChatGroups/CometChatGroups.d.ts +5 -0
  52. package/dist/types/components/CometChatMessageComposer/CometChatMessageComposer.d.ts +5 -0
  53. package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +15 -0
  54. package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +5 -0
  55. package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +11 -0
  56. package/dist/types/components/CometChatMessageList/useCometChatMessageList.d.ts +1 -1
  57. package/dist/types/components/CometChatSearch/CometChatSearch.d.ts +240 -0
  58. package/dist/types/components/CometChatSearch/SearchConversationsManager.d.ts +50 -0
  59. package/dist/types/components/CometChatSearch/useCometChatSearchConversationsList.d.ts +207 -0
  60. package/dist/types/components/CometChatSearch/useCometChatSearchMessagesList.d.ts +127 -0
  61. package/dist/types/components/CometChatThreadHeader/CometChatThreadHeader.d.ts +13 -0
  62. package/dist/types/components/CometChatUserMemberWrapper/CometChatUserMemberWrapper.d.ts +48 -0
  63. package/dist/types/components/CometChatUsers/CometChatUsers.d.ts +6 -0
  64. package/dist/types/formatters/CometChatFormatters/CometChatTextHighlightFormatter/CometChatTextHighlightFormatter.d.ts +26 -0
  65. package/dist/types/formatters/index.d.ts +1 -0
  66. package/dist/types/index.d.ts +2 -0
  67. package/dist/types/modals/CometChatSearchFilterOption.d.ts +34 -0
  68. package/dist/types/utils/SearchUtils.d.ts +30 -0
  69. package/dist/types/utils/util.d.ts +7 -0
  70. package/package.json +4 -3
@@ -0,0 +1,948 @@
1
+ .cometchat-search {
2
+ width: 100%;
3
+ margin: 0 auto;
4
+ background: var(--cometchat-background-color-01);
5
+ height: 100%;
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: var(--cometchat-padding-3, 12px);
9
+
10
+ }
11
+
12
+ .cometchat-search__header {
13
+ display: flex;
14
+ align-items: center;
15
+ gap: 6px;
16
+ justify-content: flex-start;
17
+ min-height: 64px;
18
+ padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
19
+
20
+ }
21
+
22
+ .cometchat-search__search-bar {
23
+ position: relative;
24
+ flex: 1;
25
+ overflow: hidden;
26
+ }
27
+
28
+ .cometchat-search__input {
29
+ display: flex;
30
+ align-items: center;
31
+ min-height: 36px;
32
+ padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);
33
+ gap: var(--cometchat-spacing-1, 4px);
34
+ flex: 1 0 0;
35
+ align-self: stretch;
36
+ border-radius: var(--cometchat-radius-max, 1000px);
37
+ border: 1px solid var(--cometchat-border-color-dark, #DCDCDC);
38
+ background: var(--cometchat-background-color-03, #F5F5F5);
39
+ justify-content: flex-start;
40
+ overflow-x: auto;
41
+ }
42
+
43
+ .cometchat-search__input input {
44
+ border: none;
45
+ flex: 1;
46
+ min-width: 50px;
47
+ outline: none;
48
+ background: transparent;
49
+ color: var(--cometchat-text-color-primary, #141414);
50
+ font: var(--cometchat-font-heading4-regular);
51
+ }
52
+
53
+ .cometchat-search__input-clear-button {
54
+ border: none;
55
+ background: none;
56
+ cursor: pointer;
57
+ user-select: none;
58
+ }
59
+
60
+ .cometchat-search__input-clear-button .cometchat-button,
61
+ .cometchat-search__back-button .cometchat-button {
62
+ background: transparent;
63
+ border: none;
64
+ border-radius: 0;
65
+ padding: 0;
66
+ margin: 0;
67
+ height: fit-content;
68
+ width: fit-content;
69
+ }
70
+
71
+ .cometchat-search__input-clear-button .cometchat-button .cometchat-button__icon,
72
+ .cometchat-search__back-button .cometchat-button .cometchat-button__icon {
73
+ height: 24px;
74
+ width: 24px;
75
+ background: var(--cometchat-icon-color-secondary);
76
+ }
77
+
78
+ .cometchat-search__back-button .cometchat-button .cometchat-button__icon {
79
+ background: var(--cometchat-icon-color-primary);
80
+
81
+ }
82
+
83
+ .cometchat-search__body {
84
+ padding: 0px var(--cometchat-padding-4, 16px);
85
+
86
+ }
87
+
88
+ .cometchat-search__body-filters {
89
+ display: flex;
90
+ flex-wrap: wrap;
91
+ gap: var(--cometchat-padding-2, 8px) var(--cometchat-padding-2, 8px);
92
+ }
93
+
94
+ .cometchat-search__body-filter,
95
+ .cometchat-search__body-filter .cometchat-button {
96
+ cursor: pointer;
97
+ border-radius: var(--Radius-radius_Max, 1000px);
98
+ background: var(--cometchat-background-color-03);
99
+ display: flex;
100
+ padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-3, 12px);
101
+ align-items: center;
102
+ align-content: center;
103
+ gap: 4px var(--cometchat-padding-1, 4px);
104
+
105
+ }
106
+
107
+ .cometchat-search__body-filters .cometchat-button {
108
+ flex-wrap: wrap;
109
+ }
110
+
111
+ .cometchat-search__body-filter .cometchat-button {
112
+ background: transparent;
113
+ border: none;
114
+ border-radius: 0;
115
+ padding: 0;
116
+ margin: 0;
117
+ height: fit-content;
118
+ width: fit-content;
119
+ font: var(--cometchat-font-body-regular);
120
+ color: var(--cometchat-text-color-secondary, #727272);
121
+
122
+ }
123
+
124
+ .cometchat-search__body-filter .cometchat-button .cometchat-button__icon {
125
+ height: 16px;
126
+ width: 16px;
127
+ background: var(--cometchat-icon-color-secondary);
128
+ }
129
+
130
+ .cometchat-search__initial-view {
131
+ flex: 1;
132
+ text-align: center;
133
+ display: flex;
134
+ flex-direction: column;
135
+ justify-content: center;
136
+ align-items: center;
137
+ gap: 4px;
138
+ }
139
+
140
+ .cometchat-search__initial-view-icon {
141
+ mask: url("../../assets/search_message_icon.svg") center center no-repeat;
142
+ -webkit-mask: url("../../assets/search_message_icon.svg") center center no-repeat;
143
+ background: var(--cometchat-icon-color-secondary);
144
+ mask-size: contain;
145
+ -webkit-mask-size: contain;
146
+ width: 120px;
147
+ height: 120px;
148
+ flex-shrink: 0;
149
+
150
+ }
151
+
152
+ .cometchat-search__initial-view-title {
153
+ color: var(--cometchat-text-color-primary, #141414);
154
+ text-align: center;
155
+ font: var(--cometchat-font-heading3-bold);
156
+ }
157
+
158
+ .cometchat-search__initial-view-subtitle {
159
+ color: var(--cometchat-text-color-secondary, #727272);
160
+ text-align: center;
161
+ font: var(--cometchat-font-body-regular);
162
+ }
163
+
164
+
165
+
166
+
167
+
168
+ .cometchat-search-conversations__see-more .cometchat-button,
169
+ .cometchat-search-messages__see-more .cometchat-button {
170
+ background: transparent;
171
+ border: none;
172
+ border-radius: 0;
173
+ margin: 0;
174
+ height: fit-content;
175
+ width: fit-content;
176
+
177
+ }
178
+
179
+ .cometchat-search-conversations__see-more .cometchat-button__text,
180
+ .cometchat-search-messages__see-more .cometchat-button__text {
181
+ color: var(--cometchat-primary-color);
182
+ }
183
+
184
+ .cometchat-search .cometchat-list-item__trailing-view {
185
+ width: fit-content;
186
+ height: fit-content;
187
+ align-self: flex-start;
188
+ }
189
+
190
+ .cometchat-search__conversations .cometchat-search__conversations-subtitle-text-wrapper,
191
+ .cometchat-search__conversations .cometchat-search__conversations-subtitle {
192
+ display: flex;
193
+ flex-direction: row;
194
+ gap: var(--cometchat-padding, 2px);
195
+
196
+
197
+ }
198
+
199
+ .cometchat-search__conversations .cometchat-search__conversations-subtitle-text,
200
+ .cometchat-search__conversations .cometchat-search__conversations-subtitle-text-sender,
201
+ .cometchat-search-messages__list-item .cometchat-search-messages__subtitle-text {
202
+ overflow: hidden;
203
+ color: var(--cometchat-text-color-secondary, #727272);
204
+ text-overflow: ellipsis;
205
+ white-space: nowrap;
206
+ font: var(--cometchat-font-body-regular, 14px);
207
+ }
208
+
209
+ .cometchat-search__conversations-subtitle-text-sender {
210
+ font: var(--cometchat-font-body-bold, 14px);
211
+
212
+ }
213
+
214
+ .cometchat-search__conversations-subtitle-receipts {
215
+ height: 16px;
216
+ width: 16px;
217
+ display: flex;
218
+ align-items: center;
219
+ justify-content: center;
220
+ border: none;
221
+ align-self: center;
222
+ background: var(--cometchat-icon-color-secondary, #A1A1A1);
223
+ flex-shrink: 0;
224
+ }
225
+
226
+
227
+ .cometchat-search__conversations-subtitle-receipts-sent {
228
+ -webkit-mask: url("../../assets/conversations_sent.svg") center center no-repeat;
229
+ mask: url("../../assets/conversations_sent.svg") center center no-repeat;
230
+ -webkit-mask-size: contain;
231
+ mask-size: contain;
232
+ }
233
+
234
+ .cometchat-search__conversations-subtitle-receipts-delivered {
235
+ -webkit-mask: url("../../assets/conversations_delivered.svg") center center no-repeat;
236
+ mask: url("../../assets/conversations_delivered.svg") center center no-repeat;
237
+ -webkit-mask-size: contain;
238
+ mask-size: contain;
239
+ }
240
+
241
+
242
+ .cometchat-search__conversations-subtitle-receipts-read {
243
+ -webkit-mask: url("../../assets/conversations_read.svg") center center no-repeat;
244
+ mask: url("../../assets/conversations_read.svg") center center no-repeat;
245
+ background: var(--cometchat-message-seen-color, #56E8A7);
246
+ -webkit-mask-size: contain;
247
+ mask-size: contain;
248
+ }
249
+
250
+
251
+ .cometchat-search .cometchat-text-highlight {
252
+ font: var(--cometchat-font-body-bold);
253
+ color: var(--cometchat-text-color-primary);
254
+
255
+ }
256
+
257
+ .cometchat-search__results,
258
+ .cometchat-search__conversations,
259
+ .cometchat-search__messages {
260
+ overflow: hidden;
261
+ height: fit-content;
262
+ }
263
+
264
+ .cometchat-search__results {
265
+ overflow: scroll;
266
+ height: 100%;
267
+ }
268
+
269
+ .cometchat-search__conversations-full,
270
+ .cometchat-search__messages-full {
271
+ height: 100%;
272
+ }
273
+
274
+ .cometchat-search__conversations-list-item {
275
+ cursor: pointer;
276
+ }
277
+
278
+ .cometchat-search__conversations-list-item-active .cometchat-list-item {
279
+ background-color: var(--cometchat-white-pressed, #E8E8E8);
280
+ }
281
+
282
+ .cometchat-search__conversations-subtitle {
283
+ display: flex;
284
+ gap: var(--cometchat-padding-1, 4px);
285
+ width: 100%;
286
+ max-width: 100%;
287
+ overflow: hidden;
288
+ text-overflow: ellipsis;
289
+ white-space: nowrap;
290
+ }
291
+
292
+ .cometchat-search__conversations-subtitle-text-wrapper {
293
+ display: flex;
294
+ gap: var(--cometchat-padding, 2px);
295
+ width: 100%;
296
+ max-width: 100%;
297
+ overflow: hidden;
298
+ text-overflow: ellipsis;
299
+ white-space: nowrap;
300
+ }
301
+
302
+ .cometchat-search__conversations-subtitle-text {
303
+ overflow: hidden;
304
+ color: var(--cometchat-text-color-secondary, #727272);
305
+ text-overflow: ellipsis;
306
+ white-space: nowrap;
307
+ font: var(--cometchat-font-body-regular);
308
+ width: 100%;
309
+ }
310
+
311
+ .cometchat-search__conversations-subtitle-text-sender {
312
+ overflow: hidden;
313
+ color: var(--cometchat-text-color-secondary, #727272);
314
+ text-overflow: ellipsis;
315
+ font: var(--cometchat-font-body-medium);
316
+ flex-shrink: 0;
317
+ }
318
+
319
+ .cometchat-search__conversations-subtitle-typing {
320
+ overflow: hidden;
321
+ color: var(--cometchat-text-color-highlight, #6852D6);
322
+ text-overflow: ellipsis;
323
+ white-space: nowrap;
324
+ font: var(--cometchat-font-body-regular);
325
+ }
326
+
327
+ .cometchat-search__conversations-trailing-view {
328
+ display: flex;
329
+ flex-direction: column;
330
+ gap: var(--cometchat-padding-1, 4px);
331
+ }
332
+
333
+ .cometchat-search__conversations-trailing-view-date {
334
+ font: var(--cometchat-font-caption1-regular);
335
+ }
336
+
337
+ .cometchat-search__conversations-trailing-view-badge {
338
+ display: flex;
339
+ justify-content: flex-end;
340
+ gap: var(--cometchat-padding-1, 4px);
341
+ }
342
+
343
+ .cometchat-search__conversations-trailing-view-badge-count {
344
+ display: flex;
345
+ height: 20px;
346
+ padding: 0px 8px;
347
+ flex-direction: column;
348
+ justify-content: center;
349
+ align-items: center;
350
+ border-radius: 20px;
351
+ background: var(--cometchat-primary-color, #6852D6);
352
+ overflow: hidden;
353
+ color: var(--cometchat-static-white, #FFF);
354
+ text-align: center;
355
+ text-overflow: ellipsis;
356
+ font: var(--cometchat-font-caption1-regular);
357
+ }
358
+
359
+ .cometchat-search__conversations-subtitle-icon {
360
+ display: flex;
361
+ align-items: center;
362
+ justify-content: center;
363
+ -webkit-mask-size: contain;
364
+ mask-size: contain;
365
+ border: none;
366
+ align-self: center;
367
+ background: var(--cometchat-icon-color-secondary, #A1A1A1);
368
+ height: 16px;
369
+ width: 16px;
370
+ flex-shrink: 0;
371
+ }
372
+
373
+ .cometchat-search__conversations-subtitle-icon-incoming-audio-call,
374
+ .cometchat-search__conversations-subtitle-icon-incoming-video-call {
375
+ background-color: var(--cometchat-error-color, #F44649);
376
+ }
377
+
378
+ .cometchat-search__conversations-subtitle-icon-incoming-audio-call {
379
+ -webkit-mask: url("../../assets/conversations_missed-voice-call.svg") center center no-repeat;
380
+ mask: url("../../assets/conversations_missed-voice-call.svg") center center no-repeat;
381
+ }
382
+
383
+ .cometchat-search__conversations-subtitle-icon-incoming-video-call {
384
+ -webkit-mask: url("../../assets/conversations_missed-video-call.svg") center center no-repeat;
385
+ mask: url("../../assets/conversations_missed-video-call.svg") center center no-repeat;
386
+ }
387
+
388
+ .cometchat-search__conversations-subtitle-icon-outgoing-audio-call {
389
+ -webkit-mask: url("../../assets/conversations_outgoing-voice-call.svg") center center no-repeat;
390
+ mask: url("../../assets/conversations_outgoing-voice-call.svg") center center no-repeat;
391
+ }
392
+
393
+ .cometchat-search__conversations-subtitle-icon-outgoing-video-call {
394
+ -webkit-mask: url("../../assets/conversations_outgoing-video-call.svg") center center no-repeat;
395
+ mask: url("../../assets/conversations_outgoing-video-call.svg") center center no-repeat;
396
+ }
397
+
398
+ .cometchat-search__conversations-subtitle-icon-image {
399
+ -webkit-mask: url("../../assets/conversations_image-message.svg") center center no-repeat;
400
+ mask: url("../../assets/conversations_image-message.svg") center center no-repeat;
401
+ }
402
+
403
+ .cometchat-search__conversations-subtitle-icon-file {
404
+ -webkit-mask: url("../../assets/conversations_file-message.svg") center center no-repeat;
405
+ mask: url("../../assets/conversations_file-message.svg") center center no-repeat;
406
+ }
407
+
408
+ .cometchat-search__conversations-subtitle-icon-video {
409
+ -webkit-mask: url("../../assets/conversations_video-message.svg") center center no-repeat;
410
+ mask: url("../../assets/conversations_video-message.svg") center center no-repeat;
411
+ }
412
+
413
+ .cometchat-search__conversations-subtitle-icon-audio {
414
+ -webkit-mask: url("../../assets/conversations_audio-message.svg") center center no-repeat;
415
+ mask: url("../../assets/conversations_audio-message.svg") center center no-repeat;
416
+ }
417
+
418
+ .cometchat-search__conversations-subtitle-icon-poll {
419
+ -webkit-mask: url("../../assets/conversations_poll-message.svg") center center no-repeat;
420
+ mask: url("../../assets/conversations_poll-message.svg") center center no-repeat;
421
+ }
422
+
423
+ .cometchat-search__conversations-subtitle-icon-sticker {
424
+ -webkit-mask: url("../../assets/conversations_sticker-message.svg") center center no-repeat;
425
+ mask: url("../../assets/conversations_sticker-message.svg") center center no-repeat;
426
+ }
427
+
428
+ .cometchat-search__conversations-subtitle-icon-collaborative-document {
429
+ -webkit-mask: url("../../assets/conversations_collaborative-document-message.svg") center center no-repeat;
430
+ mask: url("../../assets/conversations_collaborative-document-message.svg") center center no-repeat;
431
+ }
432
+
433
+ .cometchat-search__conversations-subtitle-icon-collaborative-whiteboard {
434
+ -webkit-mask: url("../../assets/conversations_collaborative-whiteboard-message.svg") center center no-repeat;
435
+ mask: url("../../assets/conversations_collaborative-whiteboard-message.svg") center center no-repeat;
436
+ }
437
+
438
+ .cometchat-search__conversations-subtitle-icon-deleted {
439
+ -webkit-mask: url("../../assets/conversations_delete.svg") center center no-repeat;
440
+ mask: url("../../assets/conversations_delete.svg") center center no-repeat;
441
+ }
442
+
443
+ .cometchat-search__conversations-subtitle-icon-link {
444
+ -webkit-mask: url("../../assets/conversations_link.svg") center center no-repeat;
445
+ mask: url("../../assets/conversations_link.svg") center center no-repeat;
446
+ }
447
+
448
+ .cometchat-search__conversations-subtitle-icon-thread {
449
+ -webkit-mask: url("../../assets/conversations_thread.svg") center center no-repeat;
450
+ mask: url("../../assets/conversations_thread.svg") center center no-repeat;
451
+ }
452
+
453
+ .cometchat-search__conversations-subtitle-icon-none {
454
+ display: none;
455
+ }
456
+
457
+ /* See more button */
458
+ .cometchat-search-conversations__see-more {
459
+ padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
460
+ display: flex;
461
+ justify-content: flex-start;
462
+ }
463
+
464
+ .cometchat-search-conversations__see-more .cometchat-button {
465
+ background: transparent;
466
+ border: none;
467
+ border-radius: 0;
468
+ margin: 0;
469
+ height: fit-content;
470
+ width: fit-content;
471
+ padding: 0;
472
+ }
473
+
474
+ .cometchat-search-conversations__see-more .cometchat-button__text {
475
+ color: var(--cometchat-primary-color, #6852D6);
476
+ font: var(--cometchat-font-body-medium);
477
+ }
478
+
479
+ .cometchat-search-messages {
480
+ overflow: hidden;
481
+ height: fit-content;
482
+ }
483
+
484
+ .cometchat-search__shimmer {
485
+ width: 100%;
486
+ height: 100%;
487
+ background: var(--cometchat-background-color-01, #FFF);
488
+ }
489
+
490
+ .cometchat-search__shimmer-item {
491
+ width: 100%;
492
+ height: 72px;
493
+ display: flex;
494
+ min-width: 240px;
495
+ padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
496
+ align-items: center;
497
+ gap: 12px;
498
+ }
499
+
500
+ .cometchat-search__shimmer-item-avatar {
501
+ display: flex;
502
+ flex-shrink: 0;
503
+ width: 48px;
504
+ height: 48px;
505
+ border-radius: var(--cometchat-radius-max, 1000px);
506
+ background: var(--cometchat-shimmer-gradient-color,
507
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
508
+ }
509
+
510
+ .cometchat-search__shimmer-item-body {
511
+ width: 100%;
512
+ height: 100%;
513
+ display: flex;
514
+ flex-direction: column;
515
+ gap: var(--cometchat-padding-2, 8px);
516
+ }
517
+
518
+ .cometchat-search__shimmer-item-body-title-wrapper {
519
+ display: flex;
520
+ justify-content: space-between;
521
+ width: 100%;
522
+ }
523
+
524
+ .cometchat-search__shimmer-item-body-title {
525
+ width: 50%;
526
+ height: 22px;
527
+ flex-shrink: 0;
528
+ border-radius: var(--cometchat-radius-2, 8px);
529
+ background: var(--cometchat-shimmer-gradient-color,
530
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
531
+ animation: shimmerAnimation 1.5s infinite linear;
532
+ }
533
+
534
+ .cometchat-search__shimmer-item-body-subtitle {
535
+ width: 100%;
536
+ height: 12px;
537
+ flex-shrink: 0;
538
+ border-radius: var(--cometchat-radius-2, 8px);
539
+ background: var(--cometchat-shimmer-gradient-color,
540
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
541
+ animation: shimmerAnimation 1.5s infinite linear;
542
+ }
543
+
544
+ .cometchat-search__shimmer-item-body-tail {
545
+ width: 60px;
546
+ height: 22px;
547
+ min-height: 22px;
548
+ border-radius: var(--cometchat-radius-2, 8px);
549
+ background: var(--cometchat-shimmer-gradient-color,
550
+ linear-gradient(90deg, #e0e0e0 0%, #eee 100%));
551
+ animation: shimmerAnimation 3.5s infinite linear;
552
+ }
553
+
554
+ .cometchat-search__empty-view {
555
+ height: 100%;
556
+ display: flex;
557
+ flex-direction: column;
558
+ gap: var(--cometchat-padding-5, 20px);
559
+ justify-content: center;
560
+ align-items: center;
561
+ background: var(--cometchat-background-color-01, #FFF);
562
+ }
563
+
564
+ .cometchat-search__empty-view-icon {
565
+ height: 120px;
566
+ width: 120px;
567
+ mask: url("../../assets/search_message_icon.svg") center center no-repeat;
568
+ -webkit-mask: url("../../assets/search_message_icon.svg") center center no-repeat;
569
+ mask-size: contain;
570
+ -webkit-mask-size: contain;
571
+ background: var(--cometchat-icon-color-secondary, #A1A1A1);
572
+ }
573
+
574
+ .cometchat-search__empty-view-body {
575
+ display: flex;
576
+ flex-direction: column;
577
+ gap: var(--cometchat-padding, 2px);
578
+ }
579
+
580
+ .cometchat-search__empty-view-body-title {
581
+ width: 280px;
582
+ color: var(--cometchat-text-color-primary, #141414);
583
+ text-align: center;
584
+ font: var(--cometchat-font-heading3-bold);
585
+ }
586
+
587
+ .cometchat-search__empty-view-body-description {
588
+ width: 280px;
589
+ color: var(--cometchat-text-color-secondary, #727272);
590
+ text-align: center;
591
+ font: var(--cometchat-font-body-regular);
592
+ }
593
+
594
+ /* Error state */
595
+ .cometchat-search__error-view {
596
+ height: 100%;
597
+ display: flex;
598
+ flex-direction: column;
599
+ gap: var(--cometchat-padding-5, 20px);
600
+ justify-content: center;
601
+ align-items: center;
602
+ background: var(--cometchat-background-color-01, #FFF);
603
+ }
604
+
605
+ .cometchat-search__error-view-icon {
606
+ height: 120px;
607
+ width: 120px;
608
+ mask: url("../../assets/list_error_state_icon.svg") center center no-repeat;
609
+ -webkit-mask: url("../../assets/list_error_state_icon.svg") center center no-repeat;
610
+ mask-size: contain;
611
+ -webkit-mask-size: contain;
612
+ background: var(--cometchat-error-color, #F44649);
613
+ }
614
+
615
+ .cometchat-search__error-view-body {
616
+ display: flex;
617
+ flex-direction: column;
618
+ gap: var(--cometchat-padding, 2px);
619
+ }
620
+
621
+ .cometchat-search__error-view-body-title {
622
+ width: 280px;
623
+ color: var(--cometchat-text-color-primary, #141414);
624
+ text-align: center;
625
+ font: var(--cometchat-font-heading3-bold);
626
+ }
627
+
628
+ .cometchat-search__error-view-body-description {
629
+ width: 280px;
630
+ color: var(--cometchat-text-color-secondary, #727272);
631
+ text-align: center;
632
+ font: var(--cometchat-font-body-regular);
633
+ }
634
+
635
+ .cometchat-search-messages__list-item {
636
+ cursor: pointer;
637
+ width: 100%;
638
+ }
639
+
640
+ .cometchat-search-messages__list-item .cometchat-list-item__body-subtitle,
641
+ .cometchat-search-messages__list-item .cometchat-search-messages__subtitle {
642
+ display: flex;
643
+ gap: var(--cometchat-padding-1, 4px);
644
+ width: 100%;
645
+ max-width: 98%;
646
+ overflow: hidden;
647
+ text-overflow: ellipsis;
648
+ white-space: nowrap;
649
+ }
650
+
651
+ .cometchat-search-messages__subtitle-text {
652
+ overflow: hidden;
653
+ color: var(--cometchat-text-color-secondary, #727272);
654
+ text-overflow: ellipsis;
655
+ white-space: nowrap;
656
+ font: var(--cometchat-font-body-regular);
657
+ width: 100%;
658
+ }
659
+
660
+ .cometchat-search-messages__trailing-view {
661
+ display: flex;
662
+ flex-direction: column;
663
+ align-items: flex-end;
664
+ gap: var(--cometchat-padding-1, 4px);
665
+ }
666
+
667
+ .cometchat-search-messages .cometchat-date {
668
+ font: var(--cometchat-font-caption1-regular);
669
+ color: var(--cometchat-text-color-secondary, #727272);
670
+ }
671
+
672
+ .cometchat-search-messages__see-more {
673
+ gap: var(--cometchat-padding-3, 12px) 0px;
674
+ display: flex;
675
+ justify-content: flex-start;
676
+ padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
677
+
678
+ }
679
+
680
+ .cometchat-search-messages__see-more .cometchat-button {
681
+ background: transparent;
682
+ border: none;
683
+ border-radius: 0;
684
+ margin: 0;
685
+ height: fit-content;
686
+ width: fit-content;
687
+ padding: 0;
688
+ }
689
+
690
+ .cometchat-search-messages__see-more .cometchat-button__text {
691
+ color: var(--cometchat-primary-color, #6852D6);
692
+ font: var(--cometchat-font-body-medium);
693
+ }
694
+
695
+ /* Animation for shimmer effect */
696
+ @keyframes shimmerAnimation {
697
+ 0% {
698
+ background-position: -468px 0;
699
+ }
700
+
701
+ 100% {
702
+ background-position: 468px 0;
703
+ }
704
+ }
705
+
706
+ .cometchat-search__messages-leading-view {
707
+ background: var(--cometchat-background-color-01);
708
+ height: 40px;
709
+ width: 48px;
710
+ border-radius: var(--cometchat-radius-max, 1000px);
711
+ display: flex;
712
+ align-items: center;
713
+ justify-content: center;
714
+ }
715
+
716
+ .cometchat-search__messages-leading-view-link>.cometchat-search__messages-leading-view-icon {
717
+ -webkit-mask: url("../../assets/link_icon_2x.svg") center center no-repeat;
718
+ mask: url("../../assets/link_icon_2x.svg") center center no-repeat;
719
+ background: var(--cometchat-icon-color-secondary, #A1A1A1);
720
+ height: 16px;
721
+ width: 16px;
722
+ transform: scale(2);
723
+
724
+
725
+ }
726
+
727
+
728
+
729
+ .cometchat-search__messages-leading-view-audio.cometchat-search__messages-leading-view {
730
+ background-color: var(--cometchat-primary-color, #6852D6);
731
+ }
732
+
733
+ .cometchat-search__messages-leading-view-audio>.cometchat-search__messages-leading-view-icon {
734
+ mask: url("../../assets/play_arrow.svg") center center no-repeat;
735
+ -webkit-mask: url("../../assets/play_arrow.svg") center center no-repeat;
736
+ background: var(--cometchat-static-white, #A1A1A1);
737
+ height: 16px;
738
+ width: 16px;
739
+ transform: scale(2);
740
+
741
+
742
+ }
743
+
744
+ .cometchat-search__body-filter .cometchat-button__text {
745
+ color: var(--cometchat-text-color-primary, #141414);
746
+ font: var(--cometchat-font-body-regular);
747
+ }
748
+
749
+
750
+
751
+ .cometchat-search-messages__subtitle {
752
+ font: var(--cometchat-font-body-regular);
753
+ color: var(--cometchat-text-color-secondary, #727272);
754
+ }
755
+
756
+ .cometchat-search-messages__date-separator .cometchat-date {
757
+ display: flex;
758
+ justify-content: flex-start;
759
+ align-items: flex-start;
760
+ color: var(--cometchat-text-color-secondary, #727272);
761
+ font: var(--cometchat-font-caption1-regular);
762
+
763
+ }
764
+
765
+ .cometchat-search-messages__date-separator {
766
+ padding: 0px var(--cometchat-padding-2, 8px);
767
+
768
+ }
769
+
770
+ .cometchat-search__messages-trailing-view {
771
+ height: 80px;
772
+ width: 80px;
773
+ display: flex;
774
+ align-items: center;
775
+ justify-content: center;
776
+ overflow: hidden;
777
+ }
778
+
779
+ .cometchat-search__messages-trailing-view img,
780
+ .cometchat-search__messages-trailing-view video {
781
+ max-height: 80px;
782
+ max-width: 80px;
783
+ width: auto;
784
+ height: auto;
785
+ object-fit: contain;
786
+ }
787
+
788
+ .cometchat-search__messages-video-play-button {
789
+ position: absolute;
790
+ top: 50%;
791
+ left: 50%;
792
+ transform: translate(-50%, -50%);
793
+ width: 30px;
794
+ height: 30px;
795
+ background-color: rgba(0, 0, 0, 0.6);
796
+ border-radius: 50%;
797
+ display: flex;
798
+ justify-content: center;
799
+ align-items: center;
800
+ pointer-events: none;
801
+ }
802
+
803
+ .cometchat-search__messages-video-play-button:after {
804
+ content: '';
805
+ display: block;
806
+ width: 0;
807
+ height: 0;
808
+ border-top: 8px solid transparent;
809
+ border-bottom: 8px solid transparent;
810
+ border-left: 12px solid white;
811
+ margin-left: 3px;
812
+ }
813
+
814
+ .cometchat-search__messages-trailing-view-video {
815
+ position: relative;
816
+ }
817
+
818
+ .cometchat-search .cometchat-list__header-title {
819
+ color: var(--cometchat-text-color-secondary, #727272);
820
+
821
+ font: var(--cometchat-font-body-regular)
822
+ }
823
+
824
+ .cometchat-search__conversations,
825
+ .cometchat-search__messages {
826
+ min-height: 110px;
827
+ height: fit-content;
828
+ }
829
+
830
+ .cometchat-search__results::-webkit-scrollbar,
831
+ .cometchat-search__input::-webkit-scrollbar {
832
+ display: none;
833
+ }
834
+
835
+ .cometchat-search__results::-webkit-scrollbar-thumb,
836
+ .cometchat-search__input::-webkit-scrollbar-thumb {
837
+ display: none;
838
+ }
839
+
840
+ .cometchat-search__conversations-list-item-online .cometchat-list-item__status,
841
+ .cometchat-search__conversations-list-item-password .cometchat-list-item__status,
842
+ .cometchat-search__conversations-list-item-private .cometchat-list-item__status {
843
+ width: 14px;
844
+ height: 14px;
845
+ margin-right: -14px;
846
+ position: relative;
847
+ top: 20px;
848
+ right: 15px;
849
+ border-radius: var(--cometchat-radius-max, 1000px);
850
+ min-width: 14px;
851
+ border: 2px solid var(--cometchat-neutral-color-50, #FFF);
852
+ display: flex;
853
+ align-items: center;
854
+ justify-content: center;
855
+ }
856
+
857
+ .cometchat-search__conversations-list-item-online .cometchat-list-item__status {
858
+ margin-right: -12px;
859
+ background: var(--cometchat-success-color, #09C26F);
860
+ }
861
+
862
+ .cometchat-search__conversations-list-item-password .cometchat-list-item__status {
863
+ background-color: var(--cometchat-success-color, #09C26F);
864
+ }
865
+
866
+ .cometchat-search__conversations-list-item-private .cometchat-list-item__status {
867
+ background-color: var(--cometchat-warning-color, #FFAB00);
868
+ }
869
+
870
+ .cometchat-search__conversations-list-item-password .cometchat-list-item__status-icon {
871
+ -webkit-mask: url("../../assets/lock.svg") center center no-repeat;
872
+ mask: url("../../assets/lock.svg") center center no-repeat;
873
+ height: 8px;
874
+ width: 8px;
875
+ display: flex;
876
+ align-items: center;
877
+ justify-content: center;
878
+ -webkit-mask-size: contain;
879
+ mask-size: contain;
880
+ border: none;
881
+ align-self: center;
882
+ background: var(--cometchat-static-white, #FFF);
883
+ }
884
+
885
+ .cometchat-search__conversations-list-item-private .cometchat-list-item__status-icon {
886
+ -webkit-mask: url("../../assets/shield.svg") center center no-repeat;
887
+ mask: url("../../assets/shield.svg") center center no-repeat;
888
+ height: 8px;
889
+ width: 8px;
890
+ display: flex;
891
+ align-items: center;
892
+ justify-content: center;
893
+ -webkit-mask-size: contain;
894
+ mask-size: contain;
895
+ border: none;
896
+ align-self: center;
897
+ background: var(--cometchat-static-white, #FFF);
898
+ }
899
+
900
+
901
+ .cometchat-search .cometchat-list__header-title {
902
+ padding: 0px var(--cometchat-padding-4, 16px);
903
+ }
904
+
905
+ .cometchat-search__initial-view {
906
+ padding: var(--cometchat-padding-3, 12px) var(--cometchat-padding-4, 16px);
907
+ }
908
+
909
+ .cometchat-search .cometchat-list .cometchat-list__header,
910
+ .cometchat-search .cometchat-list .cometchat-list__body {
911
+ border: none;
912
+ }
913
+
914
+ .cometchat-search__body-filter-active {
915
+ border-radius: var(--cometchat-radius-max, 1000px);
916
+ border: 1px solid var(--cometchat-neutral-color-800, #434343);
917
+ background: var(--cometchat-neutral-color-900, #141414);
918
+
919
+ }
920
+
921
+ .cometchat-search__body-filter-active .cometchat-button__text {
922
+ color: var(--cometchat-neutral-color-50, #141414);
923
+ }
924
+
925
+ .cometchat-search__body-filter-active .cometchat-button__icon {
926
+ background: var(--cometchat-neutral-color-50, #141414);
927
+ }
928
+
929
+ .cometchat-search__messages-leading-view-file {
930
+ height: 32px;
931
+ width: 32px;
932
+ }
933
+
934
+ .cometchat-list-item__body-title {
935
+ color: var(--cometchat-text-color-secondary, #727272);
936
+ }
937
+
938
+ .cometchat-search__messages-subtitle-icon-thread{
939
+ height: 16px;
940
+ width: 16px;
941
+ border: none;
942
+ border-radius: 0;
943
+ background: var(--cometchat-icon-color-secondary, #A1A1A1);
944
+ -webkit-mask: url("../../assets/conversations_thread.svg") center center no-repeat;
945
+ mask: url("../../assets/conversations_thread.svg") center center no-repeat;
946
+ -webkit-mask-size: contain;
947
+ mask-size: contain;
948
+ }