@poolse/react-ui 0.2.0-alpha.4 → 0.2.0-alpha.7
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/CHANGELOG.md +37 -0
- package/dist/index.cjs +259 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +67 -9
- package/dist/index.d.ts +67 -9
- package/dist/index.js +259 -65
- package/dist/index.js.map +1 -1
- package/dist/styles.css +184 -2
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -416,12 +416,175 @@
|
|
|
416
416
|
───────────────────────────────────────────────────────────── */
|
|
417
417
|
|
|
418
418
|
.poolse-composer {
|
|
419
|
+
display: flex;
|
|
420
|
+
/* Column so the optional reply-chip can sit ABOVE the textarea+send
|
|
421
|
+
row when the caller passes `replyingTo`. The chip + row each
|
|
422
|
+
manage their own horizontal layout. */
|
|
423
|
+
flex-direction: column;
|
|
424
|
+
gap: 6px;
|
|
425
|
+
padding: 10px 14px;
|
|
426
|
+
background: var(--poolse-surface);
|
|
427
|
+
border-top: 1px solid var(--poolse-border);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.poolse-composer__row {
|
|
419
431
|
display: flex;
|
|
420
432
|
align-items: center;
|
|
421
433
|
gap: 10px;
|
|
422
|
-
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* Quote-reply chip — sits above the textarea while the caller has
|
|
437
|
+
`replyingTo` set. Pulse Coral accent stripe on the left mirrors the
|
|
438
|
+
WhatsApp / iMessage convention. */
|
|
439
|
+
.poolse-composer__reply {
|
|
440
|
+
display: flex;
|
|
441
|
+
align-items: center;
|
|
442
|
+
gap: 10px;
|
|
443
|
+
padding: 8px 10px;
|
|
444
|
+
background: var(--poolse-brand-soft);
|
|
445
|
+
border-left: 3px solid var(--poolse-brand);
|
|
446
|
+
border-radius: 0 var(--poolse-radius-md) var(--poolse-radius-md) 0;
|
|
447
|
+
min-width: 0;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.poolse-composer__reply-body {
|
|
451
|
+
flex: 1 1 auto;
|
|
452
|
+
display: flex;
|
|
453
|
+
flex-direction: column;
|
|
454
|
+
gap: 2px;
|
|
455
|
+
min-width: 0;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.poolse-composer__reply-label {
|
|
459
|
+
font-size: 11.5px;
|
|
460
|
+
font-weight: 700;
|
|
461
|
+
color: var(--poolse-brand-strong);
|
|
462
|
+
letter-spacing: 0.01em;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.poolse-composer__reply-preview {
|
|
466
|
+
font-size: 12.5px;
|
|
467
|
+
color: var(--poolse-ink-2);
|
|
468
|
+
overflow: hidden;
|
|
469
|
+
text-overflow: ellipsis;
|
|
470
|
+
white-space: nowrap;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.poolse-composer__reply-cancel {
|
|
474
|
+
flex-shrink: 0;
|
|
475
|
+
display: inline-flex;
|
|
476
|
+
align-items: center;
|
|
477
|
+
justify-content: center;
|
|
478
|
+
width: 26px;
|
|
479
|
+
height: 26px;
|
|
480
|
+
background: transparent;
|
|
481
|
+
border: none;
|
|
482
|
+
border-radius: 50%;
|
|
483
|
+
color: var(--poolse-ink-2);
|
|
484
|
+
cursor: pointer;
|
|
485
|
+
transition:
|
|
486
|
+
background-color 0.12s,
|
|
487
|
+
color 0.12s;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.poolse-composer__reply-cancel:hover {
|
|
423
491
|
background: var(--poolse-surface);
|
|
424
|
-
|
|
492
|
+
color: var(--poolse-ink);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/* WhatsApp-style quoted card rendered INSIDE a message bubble — a
|
|
496
|
+
compact reference to the original message. Tap to scroll to the
|
|
497
|
+
source row.
|
|
498
|
+
Self-vs-other variants tint differently so the card reads as part
|
|
499
|
+
of the bubble on either side. */
|
|
500
|
+
.poolse-quote {
|
|
501
|
+
display: flex;
|
|
502
|
+
flex-direction: column;
|
|
503
|
+
align-items: stretch;
|
|
504
|
+
gap: 1px;
|
|
505
|
+
padding: 5px 9px;
|
|
506
|
+
margin-bottom: 6px;
|
|
507
|
+
border-radius: 6px;
|
|
508
|
+
border: none;
|
|
509
|
+
border-left: 4px solid var(--poolse-brand);
|
|
510
|
+
cursor: pointer;
|
|
511
|
+
text-align: left;
|
|
512
|
+
max-width: 100%;
|
|
513
|
+
min-width: 0;
|
|
514
|
+
font-family: var(--poolse-font-body);
|
|
515
|
+
/* The quote sits flush with the bubble's left padding so the
|
|
516
|
+
accent stripe lines up with the bubble's edge — WhatsApp-style. */
|
|
517
|
+
margin-left: -2px;
|
|
518
|
+
transition:
|
|
519
|
+
filter 0.12s,
|
|
520
|
+
background-color 0.12s;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.poolse-quote:disabled {
|
|
524
|
+
cursor: default;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.poolse-quote--other {
|
|
528
|
+
/* Darker tint than the surface bubble so the quote sits visually
|
|
529
|
+
"below" the main message body. */
|
|
530
|
+
background: color-mix(in oklab, var(--poolse-ink) 5%, var(--poolse-surface));
|
|
531
|
+
color: var(--poolse-ink);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.poolse-quote--self {
|
|
535
|
+
/* Inside a coral self-bubble — semi-transparent white overlay so
|
|
536
|
+
the quote tints darker than the bubble (matches WhatsApp). */
|
|
537
|
+
background: rgba(0, 0, 0, 0.12);
|
|
538
|
+
border-left-color: rgba(255, 255, 255, 0.85);
|
|
539
|
+
color: inherit;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.poolse-quote:hover:not(:disabled) {
|
|
543
|
+
filter: brightness(0.96);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.poolse-quote__sender {
|
|
547
|
+
font-size: 11.5px;
|
|
548
|
+
font-weight: 700;
|
|
549
|
+
letter-spacing: 0.01em;
|
|
550
|
+
line-height: 1.3;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.poolse-quote--other .poolse-quote__sender {
|
|
554
|
+
color: var(--poolse-brand-strong);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.poolse-quote--self .poolse-quote__sender {
|
|
558
|
+
/* Slightly translucent white so it reads as accent without
|
|
559
|
+
stealing focus from the main body. */
|
|
560
|
+
color: rgba(255, 255, 255, 0.95);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.poolse-quote__body {
|
|
564
|
+
font-size: 13px;
|
|
565
|
+
line-height: 1.35;
|
|
566
|
+
/* Muted text — the WhatsApp convention. The reader's eye should
|
|
567
|
+
bounce off this and land on the bubble's actual message. */
|
|
568
|
+
opacity: 0.62;
|
|
569
|
+
overflow: hidden;
|
|
570
|
+
text-overflow: ellipsis;
|
|
571
|
+
white-space: nowrap;
|
|
572
|
+
max-width: 100%;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/* Brief highlight pulse when a quote card scrolls the original into
|
|
576
|
+
view — cues the user that "this is the message you tapped." */
|
|
577
|
+
.poolse-message-row--highlight {
|
|
578
|
+
animation: poolse-row-highlight 1.6s ease-out;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
@keyframes poolse-row-highlight {
|
|
582
|
+
0% {
|
|
583
|
+
background-color: color-mix(in oklab, var(--poolse-brand) 22%, transparent);
|
|
584
|
+
}
|
|
585
|
+
100% {
|
|
586
|
+
background-color: transparent;
|
|
587
|
+
}
|
|
425
588
|
}
|
|
426
589
|
|
|
427
590
|
.poolse-composer__input {
|
|
@@ -596,6 +759,25 @@
|
|
|
596
759
|
white-space: nowrap;
|
|
597
760
|
}
|
|
598
761
|
|
|
762
|
+
.poolse-list__title--unread {
|
|
763
|
+
color: var(--poolse-ink);
|
|
764
|
+
font-weight: 700;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.poolse-list__unread-badge {
|
|
768
|
+
flex-shrink: 0;
|
|
769
|
+
align-self: center;
|
|
770
|
+
min-width: 20px;
|
|
771
|
+
height: 20px;
|
|
772
|
+
padding: 0 6px;
|
|
773
|
+
background: var(--poolse-brand);
|
|
774
|
+
color: var(--poolse-on-brand);
|
|
775
|
+
border-radius: var(--poolse-radius-pill);
|
|
776
|
+
font: 700 11px / 20px var(--poolse-font-body);
|
|
777
|
+
text-align: center;
|
|
778
|
+
font-variant-numeric: tabular-nums;
|
|
779
|
+
}
|
|
780
|
+
|
|
599
781
|
/* ─────────────────────────────────────────────────────────────
|
|
600
782
|
Member roster
|
|
601
783
|
───────────────────────────────────────────────────────────── */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poolse/react-ui",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.7",
|
|
4
4
|
"description": "Plug-and-play React components for poolse — realtime chat infrastructure. Brand-aligned defaults, CSS-variable theming, render-prop escape hatches.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"CHANGELOG.md"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@poolse/react": "0.2.0-alpha.
|
|
48
|
-
"@poolse/sdk": "0.2.0-alpha.
|
|
47
|
+
"@poolse/react": "0.2.0-alpha.7",
|
|
48
|
+
"@poolse/sdk": "0.2.0-alpha.7"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": ">=18"
|