@poolse/react-ui 3.2.0-dev.3 → 3.2.0-dev.5
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 +28 -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/dist/index.d.cts
CHANGED
|
@@ -126,10 +126,18 @@ declare const ICONS: {
|
|
|
126
126
|
readonly vb: "0 0 24 24";
|
|
127
127
|
readonly 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\"/>";
|
|
128
128
|
};
|
|
129
|
+
readonly 'mic-fill': {
|
|
130
|
+
readonly vb: "0 0 24 24";
|
|
131
|
+
readonly 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\"/>";
|
|
132
|
+
};
|
|
129
133
|
readonly 'mic-off': {
|
|
130
134
|
readonly vb: "0 0 24 24";
|
|
131
135
|
readonly 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\"/>";
|
|
132
136
|
};
|
|
137
|
+
readonly 'mic-off-fill': {
|
|
138
|
+
readonly vb: "0 0 24 24";
|
|
139
|
+
readonly 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\"/>";
|
|
140
|
+
};
|
|
133
141
|
readonly 'more-h': {
|
|
134
142
|
readonly vb: "0 0 24 24";
|
|
135
143
|
readonly 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\"/>";
|
|
@@ -146,6 +154,10 @@ declare const ICONS: {
|
|
|
146
154
|
readonly vb: "0 0 24 24";
|
|
147
155
|
readonly 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>";
|
|
148
156
|
};
|
|
157
|
+
readonly 'phone-off-fill': {
|
|
158
|
+
readonly vb: "0 0 24 24";
|
|
159
|
+
readonly 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>";
|
|
160
|
+
};
|
|
149
161
|
readonly pin: {
|
|
150
162
|
readonly vb: "0 0 24 24";
|
|
151
163
|
readonly d: "<path d=\"M9 3.4h6v1.8l-1 5.6 3 3.2H7l3-3.2-1-5.6V3.4Z\"/><path d=\"M12 17v3.6\"/>";
|
|
@@ -170,10 +182,18 @@ declare const ICONS: {
|
|
|
170
182
|
readonly vb: "0 0 24 24";
|
|
171
183
|
readonly 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\"/>";
|
|
172
184
|
};
|
|
185
|
+
readonly 'screen-share-fill': {
|
|
186
|
+
readonly vb: "0 0 24 24";
|
|
187
|
+
readonly 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>";
|
|
188
|
+
};
|
|
173
189
|
readonly 'screen-share-off': {
|
|
174
190
|
readonly vb: "0 0 24 24";
|
|
175
191
|
readonly 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\"/>";
|
|
176
192
|
};
|
|
193
|
+
readonly 'screen-share-off-fill': {
|
|
194
|
+
readonly vb: "0 0 24 24";
|
|
195
|
+
readonly 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>";
|
|
196
|
+
};
|
|
177
197
|
readonly search: {
|
|
178
198
|
readonly vb: "0 0 24 24";
|
|
179
199
|
readonly d: "<circle cx=\"11\" cy=\"11\" r=\"6.8\"/><path d=\"M20.8 20.8 16 16\"/>";
|
|
@@ -198,6 +218,10 @@ declare const ICONS: {
|
|
|
198
218
|
readonly vb: "0 0 24 24";
|
|
199
219
|
readonly 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\"/>";
|
|
200
220
|
};
|
|
221
|
+
readonly 'speaker-fill': {
|
|
222
|
+
readonly vb: "0 0 24 24";
|
|
223
|
+
readonly 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\"/>";
|
|
224
|
+
};
|
|
201
225
|
readonly 'speaker-off': {
|
|
202
226
|
readonly vb: "0 0 24 24";
|
|
203
227
|
readonly 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\"/>";
|
|
@@ -230,10 +254,18 @@ declare const ICONS: {
|
|
|
230
254
|
readonly vb: "0 0 24 24";
|
|
231
255
|
readonly 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\"/>";
|
|
232
256
|
};
|
|
257
|
+
readonly 'video-fill': {
|
|
258
|
+
readonly vb: "0 0 24 24";
|
|
259
|
+
readonly 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\"/>";
|
|
260
|
+
};
|
|
233
261
|
readonly 'video-off': {
|
|
234
262
|
readonly vb: "0 0 24 24";
|
|
235
263
|
readonly 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\"/>";
|
|
236
264
|
};
|
|
265
|
+
readonly 'video-off-fill': {
|
|
266
|
+
readonly vb: "0 0 24 24";
|
|
267
|
+
readonly 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\"/>";
|
|
268
|
+
};
|
|
237
269
|
readonly webhook: {
|
|
238
270
|
readonly vb: "0 0 24 24";
|
|
239
271
|
readonly 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\"/>";
|
|
@@ -242,7 +274,7 @@ declare const ICONS: {
|
|
|
242
274
|
type IconName = keyof typeof ICONS;
|
|
243
275
|
|
|
244
276
|
interface PoolseIconProps extends Omit<SVGProps<SVGSVGElement>, 'children'> {
|
|
245
|
-
/** Icon name — see {@link IconName} for the full list of
|
|
277
|
+
/** Icon name — see {@link IconName} for the full list of 64 icons. */
|
|
246
278
|
name: IconName;
|
|
247
279
|
/** Width + height in pixels. Defaults to `1.2em` so the icon scales with surrounding text. */
|
|
248
280
|
size?: number | string;
|
|
@@ -262,6 +294,12 @@ interface CallControlButtonProps {
|
|
|
262
294
|
* needing to be read one at a time.
|
|
263
295
|
*/
|
|
264
296
|
active?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Something you turned on is running — sharing your screen. Lit in
|
|
299
|
+
* the accent colour, unlike `active`, which marks a control you
|
|
300
|
+
* turned off.
|
|
301
|
+
*/
|
|
302
|
+
highlight?: boolean;
|
|
265
303
|
/** Paints the button solid: the hang-up and answer actions. */
|
|
266
304
|
tone?: 'neutral' | 'danger' | 'accept';
|
|
267
305
|
large?: boolean;
|
|
@@ -277,7 +315,7 @@ interface CallControlButtonProps {
|
|
|
277
315
|
* Styled by `@poolse/react-ui/styles.css` (`.callbtn`); override those
|
|
278
316
|
* classes to restyle.
|
|
279
317
|
*/
|
|
280
|
-
declare function CallControlButton({ icon, label, onClick, active, tone, large, disabled, hasMenu, onMenuClick, }: CallControlButtonProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
declare function CallControlButton({ icon, label, onClick, active, highlight, tone, large, disabled, hasMenu, onMenuClick, }: CallControlButtonProps): react_jsx_runtime.JSX.Element;
|
|
281
319
|
interface CallDeviceMenuProps {
|
|
282
320
|
title: string;
|
|
283
321
|
devices: CallDevice[];
|
package/dist/index.d.ts
CHANGED
|
@@ -126,10 +126,18 @@ declare const ICONS: {
|
|
|
126
126
|
readonly vb: "0 0 24 24";
|
|
127
127
|
readonly 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\"/>";
|
|
128
128
|
};
|
|
129
|
+
readonly 'mic-fill': {
|
|
130
|
+
readonly vb: "0 0 24 24";
|
|
131
|
+
readonly 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\"/>";
|
|
132
|
+
};
|
|
129
133
|
readonly 'mic-off': {
|
|
130
134
|
readonly vb: "0 0 24 24";
|
|
131
135
|
readonly 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\"/>";
|
|
132
136
|
};
|
|
137
|
+
readonly 'mic-off-fill': {
|
|
138
|
+
readonly vb: "0 0 24 24";
|
|
139
|
+
readonly 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\"/>";
|
|
140
|
+
};
|
|
133
141
|
readonly 'more-h': {
|
|
134
142
|
readonly vb: "0 0 24 24";
|
|
135
143
|
readonly 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\"/>";
|
|
@@ -146,6 +154,10 @@ declare const ICONS: {
|
|
|
146
154
|
readonly vb: "0 0 24 24";
|
|
147
155
|
readonly 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>";
|
|
148
156
|
};
|
|
157
|
+
readonly 'phone-off-fill': {
|
|
158
|
+
readonly vb: "0 0 24 24";
|
|
159
|
+
readonly 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>";
|
|
160
|
+
};
|
|
149
161
|
readonly pin: {
|
|
150
162
|
readonly vb: "0 0 24 24";
|
|
151
163
|
readonly d: "<path d=\"M9 3.4h6v1.8l-1 5.6 3 3.2H7l3-3.2-1-5.6V3.4Z\"/><path d=\"M12 17v3.6\"/>";
|
|
@@ -170,10 +182,18 @@ declare const ICONS: {
|
|
|
170
182
|
readonly vb: "0 0 24 24";
|
|
171
183
|
readonly 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\"/>";
|
|
172
184
|
};
|
|
185
|
+
readonly 'screen-share-fill': {
|
|
186
|
+
readonly vb: "0 0 24 24";
|
|
187
|
+
readonly 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>";
|
|
188
|
+
};
|
|
173
189
|
readonly 'screen-share-off': {
|
|
174
190
|
readonly vb: "0 0 24 24";
|
|
175
191
|
readonly 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\"/>";
|
|
176
192
|
};
|
|
193
|
+
readonly 'screen-share-off-fill': {
|
|
194
|
+
readonly vb: "0 0 24 24";
|
|
195
|
+
readonly 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>";
|
|
196
|
+
};
|
|
177
197
|
readonly search: {
|
|
178
198
|
readonly vb: "0 0 24 24";
|
|
179
199
|
readonly d: "<circle cx=\"11\" cy=\"11\" r=\"6.8\"/><path d=\"M20.8 20.8 16 16\"/>";
|
|
@@ -198,6 +218,10 @@ declare const ICONS: {
|
|
|
198
218
|
readonly vb: "0 0 24 24";
|
|
199
219
|
readonly 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\"/>";
|
|
200
220
|
};
|
|
221
|
+
readonly 'speaker-fill': {
|
|
222
|
+
readonly vb: "0 0 24 24";
|
|
223
|
+
readonly 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\"/>";
|
|
224
|
+
};
|
|
201
225
|
readonly 'speaker-off': {
|
|
202
226
|
readonly vb: "0 0 24 24";
|
|
203
227
|
readonly 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\"/>";
|
|
@@ -230,10 +254,18 @@ declare const ICONS: {
|
|
|
230
254
|
readonly vb: "0 0 24 24";
|
|
231
255
|
readonly 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\"/>";
|
|
232
256
|
};
|
|
257
|
+
readonly 'video-fill': {
|
|
258
|
+
readonly vb: "0 0 24 24";
|
|
259
|
+
readonly 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\"/>";
|
|
260
|
+
};
|
|
233
261
|
readonly 'video-off': {
|
|
234
262
|
readonly vb: "0 0 24 24";
|
|
235
263
|
readonly 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\"/>";
|
|
236
264
|
};
|
|
265
|
+
readonly 'video-off-fill': {
|
|
266
|
+
readonly vb: "0 0 24 24";
|
|
267
|
+
readonly 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\"/>";
|
|
268
|
+
};
|
|
237
269
|
readonly webhook: {
|
|
238
270
|
readonly vb: "0 0 24 24";
|
|
239
271
|
readonly 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\"/>";
|
|
@@ -242,7 +274,7 @@ declare const ICONS: {
|
|
|
242
274
|
type IconName = keyof typeof ICONS;
|
|
243
275
|
|
|
244
276
|
interface PoolseIconProps extends Omit<SVGProps<SVGSVGElement>, 'children'> {
|
|
245
|
-
/** Icon name — see {@link IconName} for the full list of
|
|
277
|
+
/** Icon name — see {@link IconName} for the full list of 64 icons. */
|
|
246
278
|
name: IconName;
|
|
247
279
|
/** Width + height in pixels. Defaults to `1.2em` so the icon scales with surrounding text. */
|
|
248
280
|
size?: number | string;
|
|
@@ -262,6 +294,12 @@ interface CallControlButtonProps {
|
|
|
262
294
|
* needing to be read one at a time.
|
|
263
295
|
*/
|
|
264
296
|
active?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Something you turned on is running — sharing your screen. Lit in
|
|
299
|
+
* the accent colour, unlike `active`, which marks a control you
|
|
300
|
+
* turned off.
|
|
301
|
+
*/
|
|
302
|
+
highlight?: boolean;
|
|
265
303
|
/** Paints the button solid: the hang-up and answer actions. */
|
|
266
304
|
tone?: 'neutral' | 'danger' | 'accept';
|
|
267
305
|
large?: boolean;
|
|
@@ -277,7 +315,7 @@ interface CallControlButtonProps {
|
|
|
277
315
|
* Styled by `@poolse/react-ui/styles.css` (`.callbtn`); override those
|
|
278
316
|
* classes to restyle.
|
|
279
317
|
*/
|
|
280
|
-
declare function CallControlButton({ icon, label, onClick, active, tone, large, disabled, hasMenu, onMenuClick, }: CallControlButtonProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
declare function CallControlButton({ icon, label, onClick, active, highlight, tone, large, disabled, hasMenu, onMenuClick, }: CallControlButtonProps): react_jsx_runtime.JSX.Element;
|
|
281
319
|
interface CallDeviceMenuProps {
|
|
282
320
|
title: string;
|
|
283
321
|
devices: CallDevice[];
|
package/dist/index.js
CHANGED
|
@@ -121,10 +121,18 @@ var ICONS = {
|
|
|
121
121
|
vb: "0 0 24 24",
|
|
122
122
|
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"/>'
|
|
123
123
|
},
|
|
124
|
+
"mic-fill": {
|
|
125
|
+
vb: "0 0 24 24",
|
|
126
|
+
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"/>'
|
|
127
|
+
},
|
|
124
128
|
"mic-off": {
|
|
125
129
|
vb: "0 0 24 24",
|
|
126
130
|
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"/>'
|
|
127
131
|
},
|
|
132
|
+
"mic-off-fill": {
|
|
133
|
+
vb: "0 0 24 24",
|
|
134
|
+
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"/>'
|
|
135
|
+
},
|
|
128
136
|
"more-h": {
|
|
129
137
|
vb: "0 0 24 24",
|
|
130
138
|
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"/>'
|
|
@@ -141,6 +149,10 @@ var ICONS = {
|
|
|
141
149
|
vb: "0 0 24 24",
|
|
142
150
|
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>'
|
|
143
151
|
},
|
|
152
|
+
"phone-off-fill": {
|
|
153
|
+
vb: "0 0 24 24",
|
|
154
|
+
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>'
|
|
155
|
+
},
|
|
144
156
|
pin: {
|
|
145
157
|
vb: "0 0 24 24",
|
|
146
158
|
d: '<path d="M9 3.4h6v1.8l-1 5.6 3 3.2H7l3-3.2-1-5.6V3.4Z"/><path d="M12 17v3.6"/>'
|
|
@@ -165,10 +177,18 @@ var ICONS = {
|
|
|
165
177
|
vb: "0 0 24 24",
|
|
166
178
|
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"/>'
|
|
167
179
|
},
|
|
180
|
+
"screen-share-fill": {
|
|
181
|
+
vb: "0 0 24 24",
|
|
182
|
+
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>'
|
|
183
|
+
},
|
|
168
184
|
"screen-share-off": {
|
|
169
185
|
vb: "0 0 24 24",
|
|
170
186
|
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"/>'
|
|
171
187
|
},
|
|
188
|
+
"screen-share-off-fill": {
|
|
189
|
+
vb: "0 0 24 24",
|
|
190
|
+
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>'
|
|
191
|
+
},
|
|
172
192
|
search: {
|
|
173
193
|
vb: "0 0 24 24",
|
|
174
194
|
d: '<circle cx="11" cy="11" r="6.8"/><path d="M20.8 20.8 16 16"/>'
|
|
@@ -193,6 +213,10 @@ var ICONS = {
|
|
|
193
213
|
vb: "0 0 24 24",
|
|
194
214
|
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"/>'
|
|
195
215
|
},
|
|
216
|
+
"speaker-fill": {
|
|
217
|
+
vb: "0 0 24 24",
|
|
218
|
+
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"/>'
|
|
219
|
+
},
|
|
196
220
|
"speaker-off": {
|
|
197
221
|
vb: "0 0 24 24",
|
|
198
222
|
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"/>'
|
|
@@ -225,10 +249,18 @@ var ICONS = {
|
|
|
225
249
|
vb: "0 0 24 24",
|
|
226
250
|
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"/>'
|
|
227
251
|
},
|
|
252
|
+
"video-fill": {
|
|
253
|
+
vb: "0 0 24 24",
|
|
254
|
+
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"/>'
|
|
255
|
+
},
|
|
228
256
|
"video-off": {
|
|
229
257
|
vb: "0 0 24 24",
|
|
230
258
|
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"/>'
|
|
231
259
|
},
|
|
260
|
+
"video-off-fill": {
|
|
261
|
+
vb: "0 0 24 24",
|
|
262
|
+
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"/>'
|
|
263
|
+
},
|
|
232
264
|
webhook: {
|
|
233
265
|
vb: "0 0 24 24",
|
|
234
266
|
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"/>'
|
|
@@ -570,6 +602,7 @@ function CallControlButton({
|
|
|
570
602
|
label,
|
|
571
603
|
onClick,
|
|
572
604
|
active = false,
|
|
605
|
+
highlight = false,
|
|
573
606
|
tone = "neutral",
|
|
574
607
|
large = false,
|
|
575
608
|
disabled = false,
|
|
@@ -580,37 +613,46 @@ function CallControlButton({
|
|
|
580
613
|
"callbtn",
|
|
581
614
|
tone !== "neutral" ? `callbtn--${tone}` : "",
|
|
582
615
|
active ? "callbtn--active" : "",
|
|
616
|
+
highlight ? "callbtn--highlight" : "",
|
|
583
617
|
large ? "callbtn--large" : ""
|
|
584
618
|
].filter(Boolean).join(" ");
|
|
585
619
|
return /* @__PURE__ */ jsxs("span", { className: "callbtn__slot", children: [
|
|
586
|
-
/* @__PURE__ */ jsxs(
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
{
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
620
|
+
/* @__PURE__ */ jsxs(
|
|
621
|
+
"span",
|
|
622
|
+
{
|
|
623
|
+
className: `callbtn__wrap${hasMenu ? " callbtn__wrap--menu" : ""}${active ? " callbtn__wrap--active" : ""}`,
|
|
624
|
+
children: [
|
|
625
|
+
/* @__PURE__ */ jsx(
|
|
626
|
+
"button",
|
|
627
|
+
{
|
|
628
|
+
type: "button",
|
|
629
|
+
className: classes,
|
|
630
|
+
onClick,
|
|
631
|
+
disabled,
|
|
632
|
+
"aria-pressed": tone === "neutral" ? active || highlight : void 0,
|
|
633
|
+
"aria-label": label,
|
|
634
|
+
title: label,
|
|
635
|
+
children: /* @__PURE__ */ jsx(PoolseIcon, { name: icon, size: large ? 26 : 22, label: null })
|
|
636
|
+
}
|
|
637
|
+
),
|
|
638
|
+
hasMenu && // A separate hit target, not a long-press: the toggle and the
|
|
639
|
+
// device list are different actions, and hiding one inside a
|
|
640
|
+
// timed gesture on the other is how people end up muting
|
|
641
|
+
// themselves while trying to change microphone.
|
|
642
|
+
/* @__PURE__ */ jsx(
|
|
643
|
+
"button",
|
|
644
|
+
{
|
|
645
|
+
type: "button",
|
|
646
|
+
className: "callbtn__caret",
|
|
647
|
+
onClick: onMenuClick,
|
|
648
|
+
"aria-label": `${label} options`,
|
|
649
|
+
title: `${label} options`,
|
|
650
|
+
children: /* @__PURE__ */ jsx(PoolseIcon, { name: "chevron-up", size: 13, label: null })
|
|
651
|
+
}
|
|
652
|
+
)
|
|
653
|
+
]
|
|
654
|
+
}
|
|
655
|
+
),
|
|
614
656
|
/* @__PURE__ */ jsx("span", { className: "callbtn__label", children: label })
|
|
615
657
|
] });
|
|
616
658
|
}
|
|
@@ -3639,7 +3681,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3639
3681
|
);
|
|
3640
3682
|
const count = media.participants.length;
|
|
3641
3683
|
const canShare = media.canShareScreen && room.live?.screen_share_allowed !== false;
|
|
3642
|
-
const
|
|
3684
|
+
const connecting = media.status === "connecting" || room.joining;
|
|
3643
3685
|
return /* @__PURE__ */ jsxs(
|
|
3644
3686
|
"section",
|
|
3645
3687
|
{
|
|
@@ -3649,7 +3691,16 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3649
3691
|
children: [
|
|
3650
3692
|
/* @__PURE__ */ jsxs("header", { className: "poolse-room__head", children: [
|
|
3651
3693
|
/* @__PURE__ */ jsx("span", { className: "poolse-room__title", children: title ?? "Room" }),
|
|
3652
|
-
/* @__PURE__ */ jsx("span", { className: "poolse-room__status", children:
|
|
3694
|
+
connecting ? /* @__PURE__ */ jsx("span", { className: "poolse-room__status", children: "Connecting\u2026" }) : /* @__PURE__ */ jsxs("span", { className: "poolse-room__status", children: [
|
|
3695
|
+
elapsed && /* @__PURE__ */ jsxs("span", { className: "poolse-room__chip poolse-room__chip--live", children: [
|
|
3696
|
+
/* @__PURE__ */ jsx("span", { className: "poolse-room__dot", "aria-hidden": "true" }),
|
|
3697
|
+
elapsed
|
|
3698
|
+
] }),
|
|
3699
|
+
/* @__PURE__ */ jsxs("span", { className: "poolse-room__chip", "aria-label": `${count} in the room`, children: [
|
|
3700
|
+
/* @__PURE__ */ jsx(PoolseIcon, { name: "users", size: 14, label: null }),
|
|
3701
|
+
count
|
|
3702
|
+
] })
|
|
3703
|
+
] }),
|
|
3653
3704
|
fullscreen.supported && /* @__PURE__ */ jsx(
|
|
3654
3705
|
"button",
|
|
3655
3706
|
{
|
|
@@ -3688,7 +3739,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3688
3739
|
/* @__PURE__ */ jsx(
|
|
3689
3740
|
CallControlButton,
|
|
3690
3741
|
{
|
|
3691
|
-
icon: media.micEnabled ? "mic" : "mic-off",
|
|
3742
|
+
icon: media.micEnabled ? "mic-fill" : "mic-off-fill",
|
|
3692
3743
|
active: !media.micEnabled,
|
|
3693
3744
|
label: media.micEnabled ? "Mute" : "Unmute",
|
|
3694
3745
|
onClick: () => void media.toggleMic(),
|
|
@@ -3711,7 +3762,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3711
3762
|
/* @__PURE__ */ jsx(
|
|
3712
3763
|
CallControlButton,
|
|
3713
3764
|
{
|
|
3714
|
-
icon: media.cameraEnabled ? "video" : "video-off",
|
|
3765
|
+
icon: media.cameraEnabled ? "video-fill" : "video-off-fill",
|
|
3715
3766
|
active: !media.cameraEnabled,
|
|
3716
3767
|
label: media.cameraEnabled ? "Camera" : "Camera off",
|
|
3717
3768
|
onClick: () => void media.toggleCamera(),
|
|
@@ -3734,8 +3785,8 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3734
3785
|
(canShare || media.screenSharing) && /* @__PURE__ */ jsx(
|
|
3735
3786
|
CallControlButton,
|
|
3736
3787
|
{
|
|
3737
|
-
icon: media.screenSharing ? "screen-share-off" : "screen-share",
|
|
3738
|
-
|
|
3788
|
+
icon: media.screenSharing ? "screen-share-off-fill" : "screen-share-fill",
|
|
3789
|
+
highlight: media.screenSharing,
|
|
3739
3790
|
label: media.screenSharing ? "Stop sharing" : "Share screen",
|
|
3740
3791
|
onClick: () => void media.toggleScreenShare()
|
|
3741
3792
|
}
|
|
@@ -3744,7 +3795,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3744
3795
|
/* @__PURE__ */ jsx(
|
|
3745
3796
|
CallControlButton,
|
|
3746
3797
|
{
|
|
3747
|
-
icon: "speaker",
|
|
3798
|
+
icon: "speaker-fill",
|
|
3748
3799
|
label: "Speaker",
|
|
3749
3800
|
onClick: () => openMenu("audiooutput")
|
|
3750
3801
|
}
|
|
@@ -3763,7 +3814,7 @@ function RoomStage({ room, title, labelFor, className }) {
|
|
|
3763
3814
|
/* @__PURE__ */ jsx(
|
|
3764
3815
|
CallControlButton,
|
|
3765
3816
|
{
|
|
3766
|
-
icon: "phone-off",
|
|
3817
|
+
icon: "phone-off-fill",
|
|
3767
3818
|
tone: "danger",
|
|
3768
3819
|
large: true,
|
|
3769
3820
|
label: "Leave",
|