@poolse/react-ui 1.0.2 → 1.0.3

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
@@ -366,6 +366,8 @@
366
366
  line-height: 1.4;
367
367
  word-wrap: break-word;
368
368
  overflow-wrap: anywhere;
369
+ /* Anchor for the chevron action-trigger overlay. */
370
+ position: relative;
369
371
  }
370
372
 
371
373
  .poolse-message--self {
@@ -1518,13 +1520,83 @@
1518
1520
  left: 0;
1519
1521
  }
1520
1522
 
1521
- .poolse-message-row:hover .poolse-message-row__actions,
1523
+ /* Reveal the actions popover only on explicit open — keyboard focus
1524
+ (focus-within) or click (data-actions-open via chevron on desktop /
1525
+ tap-on-bubble on touch). Pure hover used to open it, but the gap
1526
+ between bubble and popover was a no-mans-land that closed the popover
1527
+ before the cursor reached it. The chevron trigger eliminates the
1528
+ gap-crossing problem entirely. */
1522
1529
  .poolse-message-row:focus-within .poolse-message-row__actions,
1523
1530
  .poolse-message-row[data-actions-open] .poolse-message-row__actions {
1524
1531
  opacity: 1;
1525
1532
  pointer-events: auto;
1526
1533
  }
1527
1534
 
1535
+ /* For other-side rows with avatar, the row spans avatar + gap + bubble.
1536
+ Shift the popover right by the avatar slot (28px + 6px gap) so it
1537
+ left-aligns with the bubble, not the avatar. */
1538
+ .poolse-message-row[data-avatar] .poolse-message-row__actions--left {
1539
+ left: 34px;
1540
+ }
1541
+
1542
+ /* Chevron action trigger — overlay at the bubble's top-trailing
1543
+ corner. Hidden on touch (tap-on-bubble works there) and on screens
1544
+ without hover. On desktop: hidden by default, visible on row hover
1545
+ OR while the popover is open. WhatsApp-style affordance — discoverable
1546
+ without being visually noisy. */
1547
+ .poolse-message__chevron {
1548
+ position: absolute;
1549
+ top: 4px;
1550
+ right: 4px;
1551
+ width: 22px;
1552
+ height: 22px;
1553
+ display: inline-flex;
1554
+ align-items: center;
1555
+ justify-content: center;
1556
+ padding: 0;
1557
+ border: none;
1558
+ border-radius: 50%;
1559
+ background: color-mix(in oklab, var(--poolse-ink) 18%, transparent);
1560
+ color: var(--poolse-on-brand);
1561
+ cursor: pointer;
1562
+ opacity: 0;
1563
+ pointer-events: none;
1564
+ transition:
1565
+ opacity 0.12s,
1566
+ background-color 0.12s;
1567
+ z-index: 2;
1568
+ }
1569
+
1570
+ .poolse-message--other .poolse-message__chevron {
1571
+ background: color-mix(in oklab, var(--poolse-ink-2) 18%, transparent);
1572
+ color: var(--poolse-ink-2);
1573
+ }
1574
+
1575
+ .poolse-message__chevron:hover {
1576
+ background: color-mix(in oklab, var(--poolse-ink) 34%, transparent);
1577
+ }
1578
+
1579
+ .poolse-message--other .poolse-message__chevron:hover {
1580
+ background: color-mix(in oklab, var(--poolse-ink-2) 32%, transparent);
1581
+ color: var(--poolse-ink);
1582
+ }
1583
+
1584
+ .poolse-message-row:hover .poolse-message__chevron,
1585
+ .poolse-message-row:focus-within .poolse-message__chevron,
1586
+ .poolse-message-row[data-actions-open] .poolse-message__chevron {
1587
+ opacity: 1;
1588
+ pointer-events: auto;
1589
+ }
1590
+
1591
+ /* Touch devices don't need the chevron — tap-on-bubble opens the
1592
+ popover there. The chevron would also miss `:hover` on touch
1593
+ anyway, but hiding it explicitly keeps the bubble visually clean. */
1594
+ @media (hover: none) {
1595
+ .poolse-message__chevron {
1596
+ display: none;
1597
+ }
1598
+ }
1599
+
1528
1600
  /* ─────────────────────────────────────────────────────────────
1529
1601
  EditableMessageBubble — in-place edit
1530
1602
  ───────────────────────────────────────────────────────────── */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolse/react-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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": [
@@ -46,8 +46,8 @@
46
46
  "dependencies": {
47
47
  "react-markdown": "^9.0.1",
48
48
  "remark-gfm": "^4.0.0",
49
- "@poolse/react": "1.0.2",
50
- "@poolse/sdk": "1.0.2"
49
+ "@poolse/sdk": "1.0.3",
50
+ "@poolse/react": "1.0.3"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": ">=18"