@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubuduth-aplicy/chat-ui",
3
- "version": "2.1.33",
3
+ "version": "2.1.34",
4
4
  "description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -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
- <section className="dots-container">
139
- <div className="dot" />
140
- <div className="dot" />
141
- <div className="dot" />
142
- <div className="dot" />
143
- <div className="dot" />
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>
@@ -299,7 +299,7 @@
299
299
  .chatMessageInputform {
300
300
  position: sticky;
301
301
  bottom: 0;
302
- background: #dbdbdb;
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 adamgiebl */
394
- .dots-container {
398
+ /* From Uiverse.io by ashish-yadv */
399
+ .loader {
400
+ width: 60px;
395
401
  display: flex;
396
402
  align-items: center;
397
- justify-content: center;
398
- height: 100%;
399
- width: 100%;
403
+ height: 100%;
404
+ margin-right: 10px;
405
+ width: 100%;
406
+ font-size: smaller;
407
+ gap: 0.5rem;
400
408
  }
401
409
 
402
- .dot {
403
- height: 20px;
404
- width: 20px;
405
- margin-right: 10px;
406
- border-radius: 10px;
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
- .dot:last-child {
412
- margin-right: 0;
417
+ .ball:nth-child(1) {
418
+ animation: bounce-1 2.1s ease-in-out infinite;
413
419
  }
414
420
 
415
- .dot:nth-child(1) {
416
- animation-delay: -0.3s;
421
+ @keyframes bounce-1 {
422
+ 50% {
423
+ transform: translateY(-3px);
424
+ }
417
425
  }
418
426
 
419
- .dot:nth-child(2) {
420
- animation-delay: -0.1s;
427
+ .ball:nth-child(2) {
428
+ animation: bounce-3 2.1s ease-in-out 0.3s infinite;
421
429
  }
422
430
 
423
- .dot:nth-child(3) {
424
- animation-delay: 0.1s;
431
+ @keyframes bounce-2 {
432
+ 50% {
433
+ transform: translateY(-3px);
434
+ }
425
435
  }
426
436
 
427
- @keyframes pulse {
428
- 0% {
429
- transform: scale(0.8);
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: scale(1.2);
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
  }