@poolse/react-ui 0.2.0-alpha.3 → 0.2.0-alpha.6

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/dist/styles.css CHANGED
@@ -416,12 +416,156 @@
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
- padding: 12px 14px;
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
- border-top: 1px solid var(--poolse-border);
492
+ color: var(--poolse-ink);
493
+ }
494
+
495
+ /* Quoted card rendered INSIDE a message bubble (a quote-reply's
496
+ reference to the original). Self-vs-other variants tint differently
497
+ so the card reads as part of the bubble on either side. */
498
+ .poolse-quote {
499
+ display: flex;
500
+ flex-direction: column;
501
+ align-items: flex-start;
502
+ gap: 2px;
503
+ padding: 6px 10px;
504
+ margin-bottom: 6px;
505
+ border-radius: var(--poolse-radius-sm, 6px);
506
+ border: none;
507
+ cursor: pointer;
508
+ text-align: left;
509
+ max-width: 100%;
510
+ min-width: 0;
511
+ font-family: var(--poolse-font-body);
512
+ transition: filter 0.12s;
513
+ }
514
+
515
+ .poolse-quote:disabled {
516
+ cursor: default;
517
+ }
518
+
519
+ .poolse-quote--other {
520
+ background: var(--poolse-surface-2);
521
+ border-left: 3px solid var(--poolse-brand);
522
+ color: var(--poolse-ink);
523
+ }
524
+
525
+ .poolse-quote--self {
526
+ /* Inside a coral self-bubble — invert so the quote stays readable. */
527
+ background: rgba(255, 255, 255, 0.18);
528
+ border-left: 3px solid rgba(255, 255, 255, 0.6);
529
+ color: inherit;
530
+ }
531
+
532
+ .poolse-quote:hover:not(:disabled) {
533
+ filter: brightness(0.97);
534
+ }
535
+
536
+ .poolse-quote__sender {
537
+ font-size: 11.5px;
538
+ font-weight: 700;
539
+ letter-spacing: 0.01em;
540
+ }
541
+
542
+ .poolse-quote--other .poolse-quote__sender {
543
+ color: var(--poolse-brand-strong);
544
+ }
545
+
546
+ .poolse-quote__body {
547
+ font-size: 13px;
548
+ line-height: 1.4;
549
+ opacity: 0.85;
550
+ overflow: hidden;
551
+ text-overflow: ellipsis;
552
+ white-space: nowrap;
553
+ max-width: 100%;
554
+ }
555
+
556
+ /* Brief highlight pulse when a quote card scrolls the original into
557
+ view — cues the user that "this is the message you tapped." */
558
+ .poolse-message-row--highlight {
559
+ animation: poolse-row-highlight 1.6s ease-out;
560
+ }
561
+
562
+ @keyframes poolse-row-highlight {
563
+ 0% {
564
+ background-color: color-mix(in oklab, var(--poolse-brand) 22%, transparent);
565
+ }
566
+ 100% {
567
+ background-color: transparent;
568
+ }
425
569
  }
426
570
 
427
571
  .poolse-composer__input {
@@ -515,7 +659,21 @@
515
659
  }
516
660
 
517
661
  .poolse-list--error {
662
+ flex-direction: column;
663
+ gap: 8px;
518
664
  color: var(--poolse-error);
665
+ text-align: center;
666
+ }
667
+
668
+ .poolse-list__error-detail {
669
+ font-size: 12px;
670
+ color: var(--poolse-ink-3);
671
+ word-break: break-word;
672
+ max-width: 100%;
673
+ }
674
+
675
+ .poolse-list__error-detail code {
676
+ font-family: var(--poolse-font-mono);
519
677
  }
520
678
 
521
679
  .poolse-list__item {
@@ -582,6 +740,25 @@
582
740
  white-space: nowrap;
583
741
  }
584
742
 
743
+ .poolse-list__title--unread {
744
+ color: var(--poolse-ink);
745
+ font-weight: 700;
746
+ }
747
+
748
+ .poolse-list__unread-badge {
749
+ flex-shrink: 0;
750
+ align-self: center;
751
+ min-width: 20px;
752
+ height: 20px;
753
+ padding: 0 6px;
754
+ background: var(--poolse-brand);
755
+ color: var(--poolse-on-brand);
756
+ border-radius: var(--poolse-radius-pill);
757
+ font: 700 11px / 20px var(--poolse-font-body);
758
+ text-align: center;
759
+ font-variant-numeric: tabular-nums;
760
+ }
761
+
585
762
  /* ─────────────────────────────────────────────────────────────
586
763
  Member roster
587
764
  ───────────────────────────────────────────────────────────── */
@@ -769,6 +946,40 @@
769
946
  font-size: 11.5px;
770
947
  }
771
948
 
949
+ .poolse-thread-pill {
950
+ display: inline-flex;
951
+ align-items: center;
952
+ gap: 4px;
953
+ margin-top: 4px;
954
+ padding: 3px 8px;
955
+ background: transparent;
956
+ border: 1px solid var(--poolse-border);
957
+ border-radius: var(--poolse-radius-pill);
958
+ font-size: 11.5px;
959
+ font-family: var(--poolse-font-body);
960
+ font-weight: 500;
961
+ color: var(--poolse-ink-2);
962
+ cursor: pointer;
963
+ transition:
964
+ border-color 0.12s,
965
+ color 0.12s,
966
+ background-color 0.12s;
967
+ }
968
+
969
+ .poolse-thread-pill:hover {
970
+ border-color: var(--poolse-brand);
971
+ color: var(--poolse-brand-strong);
972
+ background: var(--poolse-brand-soft);
973
+ }
974
+
975
+ .poolse-thread-pill--right {
976
+ align-self: flex-end;
977
+ }
978
+
979
+ .poolse-thread-pill--left {
980
+ align-self: flex-start;
981
+ }
982
+
772
983
  .poolse-reaction-picker {
773
984
  display: inline-flex;
774
985
  gap: 4px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolse/react-ui",
3
- "version": "0.2.0-alpha.3",
3
+ "version": "0.2.0-alpha.6",
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/sdk": "0.2.0-alpha.3",
48
- "@poolse/react": "0.2.0-alpha.3"
47
+ "@poolse/sdk": "0.2.0-alpha.6",
48
+ "@poolse/react": "0.2.0-alpha.6"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=18"