@poolse/react-ui 1.0.1 → 1.0.2
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/index.cjs +32 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +32 -12
- package/dist/index.js.map +1 -1
- package/dist/styles.css +18 -50
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -209,7 +209,9 @@
|
|
|
209
209
|
font-size: 15px;
|
|
210
210
|
letter-spacing: -0.01em;
|
|
211
211
|
flex-shrink: 0;
|
|
212
|
-
overflow: hidden
|
|
212
|
+
/* NOTE: no `overflow: hidden` here — the presence dot sits at
|
|
213
|
+
right/bottom: -1px and must overhang the avatar. The <img> is
|
|
214
|
+
independently circle-clipped via `border-radius` on `img` below. */
|
|
213
215
|
user-select: none;
|
|
214
216
|
}
|
|
215
217
|
|
|
@@ -228,6 +230,7 @@
|
|
|
228
230
|
width: 100%;
|
|
229
231
|
height: 100%;
|
|
230
232
|
object-fit: cover;
|
|
233
|
+
border-radius: inherit;
|
|
231
234
|
}
|
|
232
235
|
|
|
233
236
|
.poolse-avatar__presence {
|
|
@@ -1473,7 +1476,9 @@
|
|
|
1473
1476
|
|
|
1474
1477
|
.poolse-msg-actions__picker {
|
|
1475
1478
|
position: absolute;
|
|
1476
|
-
|
|
1479
|
+
/* Picker appears BELOW the actions toolbar so the stack is
|
|
1480
|
+
bubble → toolbar → picker, no overlap with the bubble body. */
|
|
1481
|
+
top: calc(100% + 6px);
|
|
1477
1482
|
left: 0;
|
|
1478
1483
|
z-index: 10;
|
|
1479
1484
|
}
|
|
@@ -1488,32 +1493,29 @@
|
|
|
1488
1493
|
position: relative;
|
|
1489
1494
|
}
|
|
1490
1495
|
|
|
1496
|
+
/* The actions toolbar sits BELOW the bubble — flush to the bubble's
|
|
1497
|
+
trailing edge so it visually anchors to the message rather than
|
|
1498
|
+
floating elsewhere on the row.
|
|
1499
|
+
- Self (right-aligned) bubble → toolbar right-aligned
|
|
1500
|
+
- Other (left-aligned) bubble → toolbar left-aligned
|
|
1501
|
+
Reveals on hover/focus (desktop) or tap-on-bubble (touch — handled
|
|
1502
|
+
in MessageRow.tsx, which sets data-actions-open). */
|
|
1491
1503
|
.poolse-message-row__actions {
|
|
1492
1504
|
position: absolute;
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
message. */
|
|
1496
|
-
top: 4px;
|
|
1505
|
+
top: 100%;
|
|
1506
|
+
margin-top: 4px;
|
|
1497
1507
|
z-index: 3;
|
|
1498
1508
|
opacity: 0;
|
|
1499
1509
|
pointer-events: none;
|
|
1500
1510
|
transition: opacity 0.12s;
|
|
1501
1511
|
}
|
|
1502
1512
|
|
|
1503
|
-
/* The toolbar sits BESIDE the bubble — never over it. That keeps
|
|
1504
|
-
the entire bubble body clickable (links, embedded UI, etc.) and
|
|
1505
|
-
sidesteps the messages-container overflow clipping that bit the
|
|
1506
|
-
"float above" approach when a bubble was near the top of the
|
|
1507
|
-
scrollable area.
|
|
1508
|
-
- Self (right-aligned) bubble → toolbar on the LEFT
|
|
1509
|
-
- Other (left-aligned) bubble → toolbar on the RIGHT
|
|
1510
|
-
Both directions point INTO the messages container's free space. */
|
|
1511
1513
|
.poolse-message-row__actions--right {
|
|
1512
|
-
right:
|
|
1514
|
+
right: 0;
|
|
1513
1515
|
}
|
|
1514
1516
|
|
|
1515
1517
|
.poolse-message-row__actions--left {
|
|
1516
|
-
left:
|
|
1518
|
+
left: 0;
|
|
1517
1519
|
}
|
|
1518
1520
|
|
|
1519
1521
|
.poolse-message-row:hover .poolse-message-row__actions,
|
|
@@ -1523,40 +1525,6 @@
|
|
|
1523
1525
|
pointer-events: auto;
|
|
1524
1526
|
}
|
|
1525
1527
|
|
|
1526
|
-
/* Tap-reveal trigger for touch devices. Hidden where hover works
|
|
1527
|
-
(desktop): the hover/focus reveal above already covers that case.
|
|
1528
|
-
On touch, tap the `…` to open; tap outside the row to close. */
|
|
1529
|
-
.poolse-message-row__more {
|
|
1530
|
-
display: none;
|
|
1531
|
-
position: absolute;
|
|
1532
|
-
top: -6px;
|
|
1533
|
-
width: 28px;
|
|
1534
|
-
height: 28px;
|
|
1535
|
-
border: 1px solid var(--poolse-border);
|
|
1536
|
-
border-radius: 50%;
|
|
1537
|
-
background: var(--poolse-surface);
|
|
1538
|
-
color: var(--poolse-ink-2);
|
|
1539
|
-
padding: 0;
|
|
1540
|
-
cursor: pointer;
|
|
1541
|
-
z-index: 3;
|
|
1542
|
-
align-items: center;
|
|
1543
|
-
justify-content: center;
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
.poolse-message-row--right .poolse-message-row__more {
|
|
1547
|
-
right: -6px;
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
.poolse-message-row:not(.poolse-message-row--right) .poolse-message-row__more {
|
|
1551
|
-
left: -6px;
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
@media (hover: none) {
|
|
1555
|
-
.poolse-message-row__more {
|
|
1556
|
-
display: inline-flex;
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
1528
|
/* ─────────────────────────────────────────────────────────────
|
|
1561
1529
|
EditableMessageBubble — in-place edit
|
|
1562
1530
|
───────────────────────────────────────────────────────────── */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poolse/react-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
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.
|
|
50
|
-
"@poolse/sdk": "1.0.
|
|
49
|
+
"@poolse/react": "1.0.2",
|
|
50
|
+
"@poolse/sdk": "1.0.2"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=18"
|