@pubuduth-aplicy/chat-ui 2.1.33 → 2.1.34
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.
package/package.json
CHANGED
|
@@ -116,7 +116,6 @@ const MessageInput = () => {
|
|
|
116
116
|
[message, selectedConversation, userId, isSending]
|
|
117
117
|
);
|
|
118
118
|
|
|
119
|
-
|
|
120
119
|
return (
|
|
121
120
|
<form className="chatMessageInputform" onSubmit={handleSubmit}>
|
|
122
121
|
<div className="chatMessageInputdiv">
|
|
@@ -135,14 +134,12 @@ const MessageInput = () => {
|
|
|
135
134
|
|
|
136
135
|
{typingUser && typingUser !== userId && !isSending && (
|
|
137
136
|
<div className="typingIndicator">
|
|
138
|
-
<
|
|
139
|
-
<div className="
|
|
140
|
-
<div className="
|
|
141
|
-
<div className="
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
</section>
|
|
145
|
-
typing...
|
|
137
|
+
<div className="loader">
|
|
138
|
+
<div className="ball" />
|
|
139
|
+
<div className="ball" />
|
|
140
|
+
<div className="ball" />
|
|
141
|
+
typing
|
|
142
|
+
</div>
|
|
146
143
|
</div>
|
|
147
144
|
)}
|
|
148
145
|
</form>
|
package/src/style/style.css
CHANGED
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
.chatMessageInputform {
|
|
300
300
|
position: sticky;
|
|
301
301
|
bottom: 0;
|
|
302
|
-
background: #
|
|
302
|
+
background: #eee7e7;
|
|
303
303
|
padding-left: 1rem;
|
|
304
304
|
padding-right: 1rem;
|
|
305
305
|
padding-top: 0.25rem;
|
|
@@ -389,57 +389,57 @@
|
|
|
389
389
|
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
+
.typingIndicator{
|
|
393
|
+
display: flex;
|
|
394
|
+
align-items: center;
|
|
395
|
+
gap: 0.5rem;
|
|
396
|
+
}
|
|
392
397
|
|
|
393
|
-
/* From Uiverse.io by
|
|
394
|
-
.
|
|
398
|
+
/* From Uiverse.io by ashish-yadv */
|
|
399
|
+
.loader {
|
|
400
|
+
width: 60px;
|
|
395
401
|
display: flex;
|
|
396
402
|
align-items: center;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
403
|
+
height: 100%;
|
|
404
|
+
margin-right: 10px;
|
|
405
|
+
width: 100%;
|
|
406
|
+
font-size: smaller;
|
|
407
|
+
gap: 0.5rem;
|
|
400
408
|
}
|
|
401
409
|
|
|
402
|
-
.
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
background-color: #b3d4fc;
|
|
408
|
-
animation: pulse 1.5s infinite ease-in-out;
|
|
410
|
+
.ball {
|
|
411
|
+
width: 6px;
|
|
412
|
+
height: 6px;
|
|
413
|
+
border-radius: 50%;
|
|
414
|
+
background-color: #3b2dfd;
|
|
409
415
|
}
|
|
410
416
|
|
|
411
|
-
.
|
|
412
|
-
|
|
417
|
+
.ball:nth-child(1) {
|
|
418
|
+
animation: bounce-1 2.1s ease-in-out infinite;
|
|
413
419
|
}
|
|
414
420
|
|
|
415
|
-
|
|
416
|
-
|
|
421
|
+
@keyframes bounce-1 {
|
|
422
|
+
50% {
|
|
423
|
+
transform: translateY(-3px);
|
|
424
|
+
}
|
|
417
425
|
}
|
|
418
426
|
|
|
419
|
-
.
|
|
420
|
-
animation
|
|
427
|
+
.ball:nth-child(2) {
|
|
428
|
+
animation: bounce-3 2.1s ease-in-out 0.3s infinite;
|
|
421
429
|
}
|
|
422
430
|
|
|
423
|
-
|
|
424
|
-
|
|
431
|
+
@keyframes bounce-2 {
|
|
432
|
+
50% {
|
|
433
|
+
transform: translateY(-3px);
|
|
434
|
+
}
|
|
425
435
|
}
|
|
426
436
|
|
|
427
|
-
|
|
428
|
-
0
|
|
429
|
-
|
|
430
|
-
background-color: #b3d4fc;
|
|
431
|
-
box-shadow: 0 0 0 0 rgba(178, 212, 252, 0.7);
|
|
432
|
-
}
|
|
437
|
+
.ball:nth-child(3) {
|
|
438
|
+
animation: bounce-3 2.1s ease-in-out 0.6s infinite;
|
|
439
|
+
}
|
|
433
440
|
|
|
441
|
+
@keyframes bounce-3 {
|
|
434
442
|
50% {
|
|
435
|
-
transform:
|
|
436
|
-
background-color: #6793fb;
|
|
437
|
-
box-shadow: 0 0 0 10px rgba(178, 212, 252, 0);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
100% {
|
|
441
|
-
transform: scale(0.8);
|
|
442
|
-
background-color: #b3d4fc;
|
|
443
|
-
box-shadow: 0 0 0 0 rgba(178, 212, 252, 0.7);
|
|
443
|
+
transform: translateY(-3px);
|
|
444
444
|
}
|
|
445
445
|
}
|