@poolse/react-ui 3.2.0-dev.3 → 3.2.0-dev.4
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 +24 -0
- package/dist/index.cjs +87 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -2
- package/dist/index.d.ts +40 -2
- package/dist/index.js +87 -36
- package/dist/index.js.map +1 -1
- package/dist/styles.css +249 -61
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,30 @@ All notable changes to `@poolse/react-ui` are documented here. Format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
|
|
5
5
|
[semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [3.2.0-dev.4] — 2026-11-16 (prerelease, npm tag `dev`)
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- A redesigned call screen. `RoomStage`'s controls are one floating dock of
|
|
12
|
+
round glass buttons with filled icons; they never wrap to a second row, so
|
|
13
|
+
Leave stays on screen on a phone, and they shrink when the room is narrow.
|
|
14
|
+
A control you turned off (muted, camera off) turns red; screen sharing
|
|
15
|
+
lights up blue. Device menus open from a chevron in the same pill as their
|
|
16
|
+
button. Labels became tooltips and accessible names.
|
|
17
|
+
- The room's header shows a live clock with a red dot and a people count as
|
|
18
|
+
chips. Tiles are rounder, the speaking ring sits inside the tile, and the
|
|
19
|
+
name captions are frosted.
|
|
20
|
+
- A shared screen stacks above the faces whenever the room is narrow, not
|
|
21
|
+
only when the window is.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- `CallControlButton` takes `highlight` for something you turned on, and
|
|
26
|
+
shows its label as a tooltip.
|
|
27
|
+
- Filled call icons: `mic-fill`, `mic-off-fill`, `video-fill`,
|
|
28
|
+
`video-off-fill`, `screen-share-fill`, `screen-share-off-fill`,
|
|
29
|
+
`phone-off-fill`, `speaker-fill`.
|
|
30
|
+
|
|
7
31
|
## [3.2.0-dev.3] — 2026-11-16 (prerelease, npm tag `dev`)
|
|
8
32
|
|
|
9
33
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -128,10 +128,18 @@ var ICONS = {
|
|
|
128
128
|
vb: "0 0 24 24",
|
|
129
129
|
d: '<rect x="9" y="2.6" width="6" height="11.2" rx="3"/><path d="M5.6 11.2a6.4 6.4 0 0 0 12.8 0"/><path d="M12 17.6v3.4"/><path d="M8.6 21h6.8"/>'
|
|
130
130
|
},
|
|
131
|
+
"mic-fill": {
|
|
132
|
+
vb: "0 0 24 24",
|
|
133
|
+
d: '<rect x="8.5" y="2.5" width="7" height="12" rx="3.5" fill="currentColor" stroke="none"/><path d="M5.5 11a6.5 6.5 0 0 0 13 0"/><path d="M12 17.5V21"/>'
|
|
134
|
+
},
|
|
131
135
|
"mic-off": {
|
|
132
136
|
vb: "0 0 24 24",
|
|
133
137
|
d: '<rect x="9" y="2.6" width="6" height="11.2" rx="3"/><path d="M5.6 11.2a6.4 6.4 0 0 0 12.8 0"/><path d="M12 17.6v3.4"/><path d="M8.6 21h6.8"/><path d="M3.6 3.2 20.4 20.8"/>'
|
|
134
138
|
},
|
|
139
|
+
"mic-off-fill": {
|
|
140
|
+
vb: "0 0 24 24",
|
|
141
|
+
d: '<defs><mask id="poolse-cut-mic" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#fff" stroke="none"/><path d="M3.5 3.5 20.5 20.5" stroke="#000" stroke-width="5"/></mask></defs><g mask="url(#poolse-cut-mic)"><rect x="8.5" y="2.5" width="7" height="12" rx="3.5" fill="currentColor" stroke="none"/><path d="M5.5 11a6.5 6.5 0 0 0 13 0"/><path d="M12 17.5V21"/></g><path d="M3.5 3.5 20.5 20.5"/>'
|
|
142
|
+
},
|
|
135
143
|
"more-h": {
|
|
136
144
|
vb: "0 0 24 24",
|
|
137
145
|
d: '<circle cx="5.4" cy="12" r="1.6" fill="currentColor" stroke="none"/><circle cx="12" cy="12" r="1.6" fill="currentColor" stroke="none"/><circle cx="18.6" cy="12" r="1.6" fill="currentColor" stroke="none"/>'
|
|
@@ -148,6 +156,10 @@ var ICONS = {
|
|
|
148
156
|
vb: "0 0 24 24",
|
|
149
157
|
d: '<g transform="rotate(135 12 12)"><path d="M6.6 3.5h3l1.5 3.7-1.9 1.4a12.5 12.5 0 0 0 6.2 6.2l1.4-1.9 3.7 1.5v3a2 2 0 0 1-2.2 2A16.8 16.8 0 0 1 4.6 5.7a2 2 0 0 1 2-2.2Z"/></g>'
|
|
150
158
|
},
|
|
159
|
+
"phone-off-fill": {
|
|
160
|
+
vb: "0 0 24 24",
|
|
161
|
+
d: '<g transform="rotate(135 12 12)"><path d="M6.6 3.5h3l1.5 3.7-1.9 1.4a12.5 12.5 0 0 0 6.2 6.2l1.4-1.9 3.7 1.5v3a2 2 0 0 1-2.2 2A16.8 16.8 0 0 1 4.6 5.7a2 2 0 0 1 2-2.2Z" fill="currentColor" stroke-width="1.2"/></g>'
|
|
162
|
+
},
|
|
151
163
|
pin: {
|
|
152
164
|
vb: "0 0 24 24",
|
|
153
165
|
d: '<path d="M9 3.4h6v1.8l-1 5.6 3 3.2H7l3-3.2-1-5.6V3.4Z"/><path d="M12 17v3.6"/>'
|
|
@@ -172,10 +184,18 @@ var ICONS = {
|
|
|
172
184
|
vb: "0 0 24 24",
|
|
173
185
|
d: '<rect x="2.6" y="4" width="18.8" height="12.6" rx="2"/><path d="M8.4 20.4h7.2"/><path d="M12 16.6v3.8"/><path d="M12 13V7.4"/><path d="M9.4 9.8 12 7.2l2.6 2.6"/>'
|
|
174
186
|
},
|
|
187
|
+
"screen-share-fill": {
|
|
188
|
+
vb: "0 0 24 24",
|
|
189
|
+
d: '<defs><mask id="poolse-cut-share" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#fff" stroke="none"/><path d="M12 14.2V7.8M9 10.6l3-3 3 3" stroke="#000" stroke-width="2" fill="none"/></mask></defs><g mask="url(#poolse-cut-share)"><rect x="2.4" y="3.8" width="19.2" height="13.4" rx="2.6" fill="currentColor" stroke="none"/><path d="M8.6 20.6h6.8"/></g>'
|
|
190
|
+
},
|
|
175
191
|
"screen-share-off": {
|
|
176
192
|
vb: "0 0 24 24",
|
|
177
193
|
d: '<rect x="2.6" y="4" width="18.8" height="12.6" rx="2"/><path d="M8.4 20.4h7.2"/><path d="M12 16.6v3.8"/><path d="M9.6 8 14.4 12.6"/><path d="M14.4 8 9.6 12.6"/>'
|
|
178
194
|
},
|
|
195
|
+
"screen-share-off-fill": {
|
|
196
|
+
vb: "0 0 24 24",
|
|
197
|
+
d: '<defs><mask id="poolse-cut-unshare" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#fff" stroke="none"/><path d="M9.4 7.9l5.2 5.2M14.6 7.9l-5.2 5.2" stroke="#000" stroke-width="2" fill="none"/></mask></defs><g mask="url(#poolse-cut-unshare)"><rect x="2.4" y="3.8" width="19.2" height="13.4" rx="2.6" fill="currentColor" stroke="none"/><path d="M8.6 20.6h6.8"/></g>'
|
|
198
|
+
},
|
|
179
199
|
search: {
|
|
180
200
|
vb: "0 0 24 24",
|
|
181
201
|
d: '<circle cx="11" cy="11" r="6.8"/><path d="M20.8 20.8 16 16"/>'
|
|
@@ -200,6 +220,10 @@ var ICONS = {
|
|
|
200
220
|
vb: "0 0 24 24",
|
|
201
221
|
d: '<path d="M4 9.5h3.2L12 5.4v13.2L7.2 14.5H4a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1Z"/><path d="M15.6 9.2a4 4 0 0 1 0 5.6"/><path d="M18.2 6.6a7.7 7.7 0 0 1 0 10.8"/>'
|
|
202
222
|
},
|
|
223
|
+
"speaker-fill": {
|
|
224
|
+
vb: "0 0 24 24",
|
|
225
|
+
d: '<path d="M3.5 9.4h3.3L11.4 5a.6.6 0 0 1 1 .44v13.12a.6.6 0 0 1-1 .44L6.8 14.6H3.5a1 1 0 0 1-1-1V10.4a1 1 0 0 1 1-1Z" fill="currentColor" stroke="none"/><path d="M15.6 9.2a4 4 0 0 1 0 5.6"/><path d="M18.3 6.5a7.8 7.8 0 0 1 0 11"/>'
|
|
226
|
+
},
|
|
203
227
|
"speaker-off": {
|
|
204
228
|
vb: "0 0 24 24",
|
|
205
229
|
d: '<path d="M4 9.5h3.2L12 5.4v13.2L7.2 14.5H4a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1Z"/><path d="M16.4 9.6 21.4 14.4"/><path d="M21.4 9.6 16.4 14.4"/>'
|
|
@@ -232,10 +256,18 @@ var ICONS = {
|
|
|
232
256
|
vb: "0 0 24 24",
|
|
233
257
|
d: '<rect x="2.6" y="6" width="13" height="12" rx="2.4"/><path d="M15.6 11.2 21.4 8v8l-5.8-3.2Z"/>'
|
|
234
258
|
},
|
|
259
|
+
"video-fill": {
|
|
260
|
+
vb: "0 0 24 24",
|
|
261
|
+
d: '<rect x="2" y="6" width="13.6" height="12" rx="3" fill="currentColor" stroke="none"/><path d="M17.1 10.3 21 7.8a.7.7 0 0 1 1.1.6v7.2a.7.7 0 0 1-1.1.6l-3.9-2.5Z" fill="currentColor" stroke="none"/>'
|
|
262
|
+
},
|
|
235
263
|
"video-off": {
|
|
236
264
|
vb: "0 0 24 24",
|
|
237
265
|
d: '<rect x="2.6" y="6" width="13" height="12" rx="2.4"/><path d="M15.6 11.2 21.4 8v8l-5.8-3.2Z"/><path d="M3.6 3.2 20.4 20.8"/>'
|
|
238
266
|
},
|
|
267
|
+
"video-off-fill": {
|
|
268
|
+
vb: "0 0 24 24",
|
|
269
|
+
d: '<defs><mask id="poolse-cut-video" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="#fff" stroke="none"/><path d="M3.5 3.5 20.5 20.5" stroke="#000" stroke-width="5"/></mask></defs><g mask="url(#poolse-cut-video)"><rect x="2" y="6" width="13.6" height="12" rx="3" fill="currentColor" stroke="none"/><path d="M17.1 10.3 21 7.8a.7.7 0 0 1 1.1.6v7.2a.7.7 0 0 1-1.1.6l-3.9-2.5Z" fill="currentColor" stroke="none"/></g><path d="M3.5 3.5 20.5 20.5"/>'
|
|
270
|
+
},
|
|
239
271
|
webhook: {
|
|
240
272
|
vb: "0 0 24 24",
|
|
241
273
|
d: '<circle cx="6" cy="6" r="2.6"/><circle cx="18" cy="9" r="2.6"/><circle cx="9.5" cy="18" r="2.6"/><path d="M7.9 7.9 12 12l3.7-1.5"/><path d="M11.6 12.7 9.8 16"/>'
|
|
@@ -577,6 +609,7 @@ function CallControlButton({
|
|
|
577
609
|
label,
|
|
578
610
|
onClick,
|
|
579
611
|
active = false,
|
|
612
|
+
highlight = false,
|
|
580
613
|
tone = "neutral",
|
|
581
614
|
large = false,
|
|
582
615
|
disabled = false,
|
|
@@ -587,37 +620,46 @@ function CallControlButton({
|
|
|
587
620
|
"callbtn",
|
|
588
621
|
tone !== "neutral" ? `callbtn--${tone}` : "",
|
|
589
622
|
active ? "callbtn--active" : "",
|
|
623
|
+
highlight ? "callbtn--highlight" : "",
|
|
590
624
|
large ? "callbtn--large" : ""
|
|
591
625
|
].filter(Boolean).join(" ");
|
|
592
626
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "callbtn__slot", children: [
|
|
593
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
{
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
627
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
628
|
+
"span",
|
|
629
|
+
{
|
|
630
|
+
className: `callbtn__wrap${hasMenu ? " callbtn__wrap--menu" : ""}${active ? " callbtn__wrap--active" : ""}`,
|
|
631
|
+
children: [
|
|
632
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
633
|
+
"button",
|
|
634
|
+
{
|
|
635
|
+
type: "button",
|
|
636
|
+
className: classes,
|
|
637
|
+
onClick,
|
|
638
|
+
disabled,
|
|
639
|
+
"aria-pressed": tone === "neutral" ? active || highlight : void 0,
|
|
640
|
+
"aria-label": label,
|
|
641
|
+
title: label,
|
|
642
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: icon, size: large ? 26 : 22, label: null })
|
|
643
|
+
}
|
|
644
|
+
),
|
|
645
|
+
hasMenu && // A separate hit target, not a long-press: the toggle and the
|
|
646
|
+
// device list are different actions, and hiding one inside a
|
|
647
|
+
// timed gesture on the other is how people end up muting
|
|
648
|
+
// themselves while trying to change microphone.
|
|
649
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
650
|
+
"button",
|
|
651
|
+
{
|
|
652
|
+
type: "button",
|
|
653
|
+
className: "callbtn__caret",
|
|
654
|
+
onClick: onMenuClick,
|
|
655
|
+
"aria-label": `${label} options`,
|
|
656
|
+
title: `${label} options`,
|
|
657
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "chevron-up", size: 13, label: null })
|
|
658
|
+
}
|
|
659
|
+
)
|
|
660
|
+
]
|
|
661
|
+
}
|
|
662
|
+
),
|
|
621
663
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "callbtn__label", children: label })
|
|
622
664
|
] });
|
|
623
665
|
}
|
|
@@ -3646,7 +3688,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3646
3688
|
);
|
|
3647
3689
|
const count = media.participants.length;
|
|
3648
3690
|
const canShare = media.canShareScreen && room.live?.screen_share_allowed !== false;
|
|
3649
|
-
const
|
|
3691
|
+
const connecting = media.status === "connecting" || room.joining;
|
|
3650
3692
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3651
3693
|
"section",
|
|
3652
3694
|
{
|
|
@@ -3656,7 +3698,16 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3656
3698
|
children: [
|
|
3657
3699
|
/* @__PURE__ */ jsxRuntime.jsxs("header", { className: "poolse-room__head", children: [
|
|
3658
3700
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "poolse-room__title", children: title ?? "Room" }),
|
|
3659
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "poolse-room__status", children:
|
|
3701
|
+
connecting ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "poolse-room__status", children: "Connecting\u2026" }) : /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "poolse-room__status", children: [
|
|
3702
|
+
elapsed && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "poolse-room__chip poolse-room__chip--live", children: [
|
|
3703
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "poolse-room__dot", "aria-hidden": "true" }),
|
|
3704
|
+
elapsed
|
|
3705
|
+
] }),
|
|
3706
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "poolse-room__chip", "aria-label": `${count} in the room`, children: [
|
|
3707
|
+
/* @__PURE__ */ jsxRuntime.jsx(PoolseIcon, { name: "users", size: 14, label: null }),
|
|
3708
|
+
count
|
|
3709
|
+
] })
|
|
3710
|
+
] }),
|
|
3660
3711
|
fullscreen.supported && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3661
3712
|
"button",
|
|
3662
3713
|
{
|
|
@@ -3695,7 +3746,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3695
3746
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3696
3747
|
CallControlButton,
|
|
3697
3748
|
{
|
|
3698
|
-
icon: media.micEnabled ? "mic" : "mic-off",
|
|
3749
|
+
icon: media.micEnabled ? "mic-fill" : "mic-off-fill",
|
|
3699
3750
|
active: !media.micEnabled,
|
|
3700
3751
|
label: media.micEnabled ? "Mute" : "Unmute",
|
|
3701
3752
|
onClick: () => void media.toggleMic(),
|
|
@@ -3718,7 +3769,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3718
3769
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3719
3770
|
CallControlButton,
|
|
3720
3771
|
{
|
|
3721
|
-
icon: media.cameraEnabled ? "video" : "video-off",
|
|
3772
|
+
icon: media.cameraEnabled ? "video-fill" : "video-off-fill",
|
|
3722
3773
|
active: !media.cameraEnabled,
|
|
3723
3774
|
label: media.cameraEnabled ? "Camera" : "Camera off",
|
|
3724
3775
|
onClick: () => void media.toggleCamera(),
|
|
@@ -3741,8 +3792,8 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3741
3792
|
(canShare || media.screenSharing) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3742
3793
|
CallControlButton,
|
|
3743
3794
|
{
|
|
3744
|
-
icon: media.screenSharing ? "screen-share-off" : "screen-share",
|
|
3745
|
-
|
|
3795
|
+
icon: media.screenSharing ? "screen-share-off-fill" : "screen-share-fill",
|
|
3796
|
+
highlight: media.screenSharing,
|
|
3746
3797
|
label: media.screenSharing ? "Stop sharing" : "Share screen",
|
|
3747
3798
|
onClick: () => void media.toggleScreenShare()
|
|
3748
3799
|
}
|
|
@@ -3751,7 +3802,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3751
3802
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3752
3803
|
CallControlButton,
|
|
3753
3804
|
{
|
|
3754
|
-
icon: "speaker",
|
|
3805
|
+
icon: "speaker-fill",
|
|
3755
3806
|
label: "Speaker",
|
|
3756
3807
|
onClick: () => openMenu("audiooutput")
|
|
3757
3808
|
}
|
|
@@ -3770,7 +3821,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3770
3821
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3771
3822
|
CallControlButton,
|
|
3772
3823
|
{
|
|
3773
|
-
icon: "phone-off",
|
|
3824
|
+
icon: "phone-off-fill",
|
|
3774
3825
|
tone: "danger",
|
|
3775
3826
|
large: true,
|
|
3776
3827
|
label: "Leave",
|