@poolse/react-ui 0.2.0-alpha.6 → 1.0.0-beta.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.
package/dist/styles.css CHANGED
@@ -492,24 +492,32 @@
492
492
  color: var(--poolse-ink);
493
493
  }
494
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. */
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. */
498
500
  .poolse-quote {
499
501
  display: flex;
500
502
  flex-direction: column;
501
- align-items: flex-start;
502
- gap: 2px;
503
- padding: 6px 10px;
503
+ align-items: stretch;
504
+ gap: 1px;
505
+ padding: 5px 9px;
504
506
  margin-bottom: 6px;
505
- border-radius: var(--poolse-radius-sm, 6px);
507
+ border-radius: 6px;
506
508
  border: none;
509
+ border-left: 4px solid var(--poolse-brand);
507
510
  cursor: pointer;
508
511
  text-align: left;
509
512
  max-width: 100%;
510
513
  min-width: 0;
511
514
  font-family: var(--poolse-font-body);
512
- transition: filter 0.12s;
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;
513
521
  }
514
522
 
515
523
  .poolse-quote:disabled {
@@ -517,36 +525,47 @@
517
525
  }
518
526
 
519
527
  .poolse-quote--other {
520
- background: var(--poolse-surface-2);
521
- border-left: 3px solid var(--poolse-brand);
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));
522
531
  color: var(--poolse-ink);
523
532
  }
524
533
 
525
534
  .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);
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);
529
539
  color: inherit;
530
540
  }
531
541
 
532
542
  .poolse-quote:hover:not(:disabled) {
533
- filter: brightness(0.97);
543
+ filter: brightness(0.96);
534
544
  }
535
545
 
536
546
  .poolse-quote__sender {
537
547
  font-size: 11.5px;
538
548
  font-weight: 700;
539
549
  letter-spacing: 0.01em;
550
+ line-height: 1.3;
540
551
  }
541
552
 
542
553
  .poolse-quote--other .poolse-quote__sender {
543
554
  color: var(--poolse-brand-strong);
544
555
  }
545
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
+
546
563
  .poolse-quote__body {
547
564
  font-size: 13px;
548
- line-height: 1.4;
549
- opacity: 0.85;
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;
550
569
  overflow: hidden;
551
570
  text-overflow: ellipsis;
552
571
  white-space: nowrap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolse/react-ui",
3
- "version": "0.2.0-alpha.6",
3
+ "version": "1.0.0-beta.0",
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.6",
48
- "@poolse/react": "0.2.0-alpha.6"
47
+ "@poolse/sdk": "1.0.0-beta.0",
48
+ "@poolse/react": "1.0.0-beta.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=18"
@@ -62,6 +62,7 @@
62
62
  },
63
63
  "scripts": {
64
64
  "build": "tsup",
65
+ "dev": "tsup --watch src",
65
66
  "test": "vitest run",
66
67
  "typecheck": "tsc --noEmit",
67
68
  "lint": "eslint src test"