@poolse/react-ui 3.2.0-dev.2 → 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 +35 -0
- package/dist/index.cjs +308 -152
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -2
- package/dist/index.d.ts +48 -2
- package/dist/index.js +308 -152
- package/dist/index.js.map +1 -1
- package/dist/styles.css +302 -55
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -78,6 +78,14 @@ declare const ICONS: {
|
|
|
78
78
|
readonly vb: "0 0 24 24";
|
|
79
79
|
readonly d: "<circle cx=\"12\" cy=\"12\" r=\"8.6\"/><circle cx=\"9\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"15\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8.4 14.2a4.6 4.6 0 0 0 7.2 0\"/>";
|
|
80
80
|
};
|
|
81
|
+
readonly fullscreen: {
|
|
82
|
+
readonly vb: "0 0 24 24";
|
|
83
|
+
readonly d: "<path d=\"M4 9V5.5A1.5 1.5 0 0 1 5.5 4H9\"/><path d=\"M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9\"/><path d=\"M20 15v3.5a1.5 1.5 0 0 1-1.5 1.5H15\"/><path d=\"M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15\"/>";
|
|
84
|
+
};
|
|
85
|
+
readonly 'fullscreen-exit': {
|
|
86
|
+
readonly vb: "0 0 24 24";
|
|
87
|
+
readonly d: "<path d=\"M9 4v3.5A1.5 1.5 0 0 1 7.5 9H4\"/><path d=\"M20 9h-3.5A1.5 1.5 0 0 1 15 7.5V4\"/><path d=\"M15 20v-3.5a1.5 1.5 0 0 1 1.5-1.5H20\"/><path d=\"M4 15h3.5A1.5 1.5 0 0 1 9 16.5V20\"/>";
|
|
88
|
+
};
|
|
81
89
|
readonly headphones: {
|
|
82
90
|
readonly vb: "0 0 24 24";
|
|
83
91
|
readonly d: "<path d=\"M4 14v-2a8 8 0 0 1 16 0v2\"/><path d=\"M4 14h2.6a1.4 1.4 0 0 1 1.4 1.4v3.2A1.4 1.4 0 0 1 6.6 20H5.4A1.4 1.4 0 0 1 4 18.6Z\"/><path d=\"M20 14h-2.6a1.4 1.4 0 0 0-1.4 1.4v3.2A1.4 1.4 0 0 0 17.4 20h1.2A1.4 1.4 0 0 0 20 18.6Z\"/>";
|
|
@@ -118,10 +126,18 @@ declare const ICONS: {
|
|
|
118
126
|
readonly vb: "0 0 24 24";
|
|
119
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\"/>";
|
|
120
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
|
+
};
|
|
121
133
|
readonly 'mic-off': {
|
|
122
134
|
readonly vb: "0 0 24 24";
|
|
123
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\"/>";
|
|
124
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
|
+
};
|
|
125
141
|
readonly 'more-h': {
|
|
126
142
|
readonly vb: "0 0 24 24";
|
|
127
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\"/>";
|
|
@@ -138,6 +154,10 @@ declare const ICONS: {
|
|
|
138
154
|
readonly vb: "0 0 24 24";
|
|
139
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>";
|
|
140
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
|
+
};
|
|
141
161
|
readonly pin: {
|
|
142
162
|
readonly vb: "0 0 24 24";
|
|
143
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\"/>";
|
|
@@ -162,10 +182,18 @@ declare const ICONS: {
|
|
|
162
182
|
readonly vb: "0 0 24 24";
|
|
163
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\"/>";
|
|
164
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
|
+
};
|
|
165
189
|
readonly 'screen-share-off': {
|
|
166
190
|
readonly vb: "0 0 24 24";
|
|
167
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\"/>";
|
|
168
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
|
+
};
|
|
169
197
|
readonly search: {
|
|
170
198
|
readonly vb: "0 0 24 24";
|
|
171
199
|
readonly d: "<circle cx=\"11\" cy=\"11\" r=\"6.8\"/><path d=\"M20.8 20.8 16 16\"/>";
|
|
@@ -190,6 +218,10 @@ declare const ICONS: {
|
|
|
190
218
|
readonly vb: "0 0 24 24";
|
|
191
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\"/>";
|
|
192
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
|
+
};
|
|
193
225
|
readonly 'speaker-off': {
|
|
194
226
|
readonly vb: "0 0 24 24";
|
|
195
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\"/>";
|
|
@@ -222,10 +254,18 @@ declare const ICONS: {
|
|
|
222
254
|
readonly vb: "0 0 24 24";
|
|
223
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\"/>";
|
|
224
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
|
+
};
|
|
225
261
|
readonly 'video-off': {
|
|
226
262
|
readonly vb: "0 0 24 24";
|
|
227
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\"/>";
|
|
228
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
|
+
};
|
|
229
269
|
readonly webhook: {
|
|
230
270
|
readonly vb: "0 0 24 24";
|
|
231
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\"/>";
|
|
@@ -234,7 +274,7 @@ declare const ICONS: {
|
|
|
234
274
|
type IconName = keyof typeof ICONS;
|
|
235
275
|
|
|
236
276
|
interface PoolseIconProps extends Omit<SVGProps<SVGSVGElement>, 'children'> {
|
|
237
|
-
/** Icon name — see {@link IconName} for the full list of
|
|
277
|
+
/** Icon name — see {@link IconName} for the full list of 64 icons. */
|
|
238
278
|
name: IconName;
|
|
239
279
|
/** Width + height in pixels. Defaults to `1.2em` so the icon scales with surrounding text. */
|
|
240
280
|
size?: number | string;
|
|
@@ -254,6 +294,12 @@ interface CallControlButtonProps {
|
|
|
254
294
|
* needing to be read one at a time.
|
|
255
295
|
*/
|
|
256
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;
|
|
257
303
|
/** Paints the button solid: the hang-up and answer actions. */
|
|
258
304
|
tone?: 'neutral' | 'danger' | 'accept';
|
|
259
305
|
large?: boolean;
|
|
@@ -269,7 +315,7 @@ interface CallControlButtonProps {
|
|
|
269
315
|
* Styled by `@poolse/react-ui/styles.css` (`.callbtn`); override those
|
|
270
316
|
* classes to restyle.
|
|
271
317
|
*/
|
|
272
|
-
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;
|
|
273
319
|
interface CallDeviceMenuProps {
|
|
274
320
|
title: string;
|
|
275
321
|
devices: CallDevice[];
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,14 @@ declare const ICONS: {
|
|
|
78
78
|
readonly vb: "0 0 24 24";
|
|
79
79
|
readonly d: "<circle cx=\"12\" cy=\"12\" r=\"8.6\"/><circle cx=\"9\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"15\" cy=\"10\" r=\"1\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M8.4 14.2a4.6 4.6 0 0 0 7.2 0\"/>";
|
|
80
80
|
};
|
|
81
|
+
readonly fullscreen: {
|
|
82
|
+
readonly vb: "0 0 24 24";
|
|
83
|
+
readonly d: "<path d=\"M4 9V5.5A1.5 1.5 0 0 1 5.5 4H9\"/><path d=\"M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9\"/><path d=\"M20 15v3.5a1.5 1.5 0 0 1-1.5 1.5H15\"/><path d=\"M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15\"/>";
|
|
84
|
+
};
|
|
85
|
+
readonly 'fullscreen-exit': {
|
|
86
|
+
readonly vb: "0 0 24 24";
|
|
87
|
+
readonly d: "<path d=\"M9 4v3.5A1.5 1.5 0 0 1 7.5 9H4\"/><path d=\"M20 9h-3.5A1.5 1.5 0 0 1 15 7.5V4\"/><path d=\"M15 20v-3.5a1.5 1.5 0 0 1 1.5-1.5H20\"/><path d=\"M4 15h3.5A1.5 1.5 0 0 1 9 16.5V20\"/>";
|
|
88
|
+
};
|
|
81
89
|
readonly headphones: {
|
|
82
90
|
readonly vb: "0 0 24 24";
|
|
83
91
|
readonly d: "<path d=\"M4 14v-2a8 8 0 0 1 16 0v2\"/><path d=\"M4 14h2.6a1.4 1.4 0 0 1 1.4 1.4v3.2A1.4 1.4 0 0 1 6.6 20H5.4A1.4 1.4 0 0 1 4 18.6Z\"/><path d=\"M20 14h-2.6a1.4 1.4 0 0 0-1.4 1.4v3.2A1.4 1.4 0 0 0 17.4 20h1.2A1.4 1.4 0 0 0 20 18.6Z\"/>";
|
|
@@ -118,10 +126,18 @@ declare const ICONS: {
|
|
|
118
126
|
readonly vb: "0 0 24 24";
|
|
119
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\"/>";
|
|
120
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
|
+
};
|
|
121
133
|
readonly 'mic-off': {
|
|
122
134
|
readonly vb: "0 0 24 24";
|
|
123
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\"/>";
|
|
124
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
|
+
};
|
|
125
141
|
readonly 'more-h': {
|
|
126
142
|
readonly vb: "0 0 24 24";
|
|
127
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\"/>";
|
|
@@ -138,6 +154,10 @@ declare const ICONS: {
|
|
|
138
154
|
readonly vb: "0 0 24 24";
|
|
139
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>";
|
|
140
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
|
+
};
|
|
141
161
|
readonly pin: {
|
|
142
162
|
readonly vb: "0 0 24 24";
|
|
143
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\"/>";
|
|
@@ -162,10 +182,18 @@ declare const ICONS: {
|
|
|
162
182
|
readonly vb: "0 0 24 24";
|
|
163
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\"/>";
|
|
164
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
|
+
};
|
|
165
189
|
readonly 'screen-share-off': {
|
|
166
190
|
readonly vb: "0 0 24 24";
|
|
167
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\"/>";
|
|
168
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
|
+
};
|
|
169
197
|
readonly search: {
|
|
170
198
|
readonly vb: "0 0 24 24";
|
|
171
199
|
readonly d: "<circle cx=\"11\" cy=\"11\" r=\"6.8\"/><path d=\"M20.8 20.8 16 16\"/>";
|
|
@@ -190,6 +218,10 @@ declare const ICONS: {
|
|
|
190
218
|
readonly vb: "0 0 24 24";
|
|
191
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\"/>";
|
|
192
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
|
+
};
|
|
193
225
|
readonly 'speaker-off': {
|
|
194
226
|
readonly vb: "0 0 24 24";
|
|
195
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\"/>";
|
|
@@ -222,10 +254,18 @@ declare const ICONS: {
|
|
|
222
254
|
readonly vb: "0 0 24 24";
|
|
223
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\"/>";
|
|
224
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
|
+
};
|
|
225
261
|
readonly 'video-off': {
|
|
226
262
|
readonly vb: "0 0 24 24";
|
|
227
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\"/>";
|
|
228
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
|
+
};
|
|
229
269
|
readonly webhook: {
|
|
230
270
|
readonly vb: "0 0 24 24";
|
|
231
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\"/>";
|
|
@@ -234,7 +274,7 @@ declare const ICONS: {
|
|
|
234
274
|
type IconName = keyof typeof ICONS;
|
|
235
275
|
|
|
236
276
|
interface PoolseIconProps extends Omit<SVGProps<SVGSVGElement>, 'children'> {
|
|
237
|
-
/** Icon name — see {@link IconName} for the full list of
|
|
277
|
+
/** Icon name — see {@link IconName} for the full list of 64 icons. */
|
|
238
278
|
name: IconName;
|
|
239
279
|
/** Width + height in pixels. Defaults to `1.2em` so the icon scales with surrounding text. */
|
|
240
280
|
size?: number | string;
|
|
@@ -254,6 +294,12 @@ interface CallControlButtonProps {
|
|
|
254
294
|
* needing to be read one at a time.
|
|
255
295
|
*/
|
|
256
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;
|
|
257
303
|
/** Paints the button solid: the hang-up and answer actions. */
|
|
258
304
|
tone?: 'neutral' | 'danger' | 'accept';
|
|
259
305
|
large?: boolean;
|
|
@@ -269,7 +315,7 @@ interface CallControlButtonProps {
|
|
|
269
315
|
* Styled by `@poolse/react-ui/styles.css` (`.callbtn`); override those
|
|
270
316
|
* classes to restyle.
|
|
271
317
|
*/
|
|
272
|
-
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;
|
|
273
319
|
interface CallDeviceMenuProps {
|
|
274
320
|
title: string;
|
|
275
321
|
devices: CallDevice[];
|