@fairfox/polly 0.27.5 → 0.29.0
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/src/elysia/index.js +9 -1
- package/dist/src/elysia/index.js.map +3 -3
- package/dist/src/elysia/signaling-server-plugin.d.ts +25 -0
- package/dist/src/mesh.js +74 -28
- package/dist/src/mesh.js.map +3 -3
- package/dist/src/polly-ui/Layout.d.ts +6 -0
- package/dist/src/polly-ui/index.css +5 -0
- package/dist/src/polly-ui/index.js +4 -1
- package/dist/src/polly-ui/index.js.map +3 -3
- package/dist/src/polly-ui/styles.css +909 -0
- package/dist/src/polly-ui/theme.css +12 -0
- package/dist/src/shared/lib/mesh-signaling-client.d.ts +34 -0
- package/dist/tools/test/src/browser/run.js +9 -1
- package/dist/tools/test/src/browser/run.js.map +3 -3
- package/package.json +1 -1
|
@@ -10,6 +10,90 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
@layer polly-structure {
|
|
13
|
+
/* Neutral document baseline. Every selector uses :where() so it adds no
|
|
14
|
+
* specificity — consumers win with any plain selector. The baseline exists
|
|
15
|
+
* because polly's layout contract is "Layout dictates spacing via gap"; if
|
|
16
|
+
* bare headings, paragraphs, and lists shipped with browser-default margins
|
|
17
|
+
* they would conflict with that contract (margin and grid gap do not
|
|
18
|
+
* compose, the larger wins) and the rhythm would drift. Resetting here
|
|
19
|
+
* means a consumer's <h1> inside a Layout behaves like any other child:
|
|
20
|
+
* no magic margin from the UA sheet, size and spacing come from above.
|
|
21
|
+
*/
|
|
22
|
+
:where(html) {
|
|
23
|
+
font-family: var(--polly-font-sans);
|
|
24
|
+
color: var(--polly-text);
|
|
25
|
+
background: var(--polly-surface);
|
|
26
|
+
line-height: var(--polly-line-height-base);
|
|
27
|
+
}
|
|
28
|
+
:where(body) {
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
:where(h1, h2, h3, h4, h5, h6, p, blockquote, figure, dl, dd) {
|
|
32
|
+
margin: 0;
|
|
33
|
+
}
|
|
34
|
+
:where(ul, ol) {
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding-inline-start: var(--polly-space-lg);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Heading scale — tokens from theme.css, weights and leading consistent
|
|
40
|
+
* across levels so a consumer who drops in <h1>..<h4> inside Layouts gets a
|
|
41
|
+
* sensible visual hierarchy without setting font properties themselves.
|
|
42
|
+
* Overridable: the selectors are :where() so any class or id wins. */
|
|
43
|
+
:where(h1) {
|
|
44
|
+
font-size: var(--polly-text-3xl);
|
|
45
|
+
font-weight: var(--polly-weight-bold);
|
|
46
|
+
line-height: var(--polly-line-height-heading);
|
|
47
|
+
}
|
|
48
|
+
:where(h2) {
|
|
49
|
+
font-size: var(--polly-text-2xl);
|
|
50
|
+
font-weight: var(--polly-weight-bold);
|
|
51
|
+
line-height: var(--polly-line-height-heading);
|
|
52
|
+
}
|
|
53
|
+
:where(h3) {
|
|
54
|
+
font-size: var(--polly-text-xl);
|
|
55
|
+
font-weight: var(--polly-weight-bold);
|
|
56
|
+
line-height: var(--polly-line-height-heading);
|
|
57
|
+
}
|
|
58
|
+
:where(h4) {
|
|
59
|
+
font-size: var(--polly-text-lg);
|
|
60
|
+
font-weight: var(--polly-weight-medium);
|
|
61
|
+
line-height: var(--polly-line-height-tight);
|
|
62
|
+
}
|
|
63
|
+
:where(h5, h6) {
|
|
64
|
+
font-size: var(--polly-text-md);
|
|
65
|
+
font-weight: var(--polly-weight-medium);
|
|
66
|
+
line-height: var(--polly-line-height-tight);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Text overflow utilities. Both are opt-in: any element receives the
|
|
70
|
+
* behaviour by carrying the data attribute. They stay compatible with
|
|
71
|
+
* Layout (a grid) because the utilities change the element's OWN display,
|
|
72
|
+
* not its parent's — a Layout child with data-polly-truncate still
|
|
73
|
+
* participates in the grid track as usual.
|
|
74
|
+
*
|
|
75
|
+
* data-polly-truncate — single-line ellipsis.
|
|
76
|
+
* data-polly-clamp — multi-line ellipsis; set --polly-clamp for
|
|
77
|
+
* the line count (defaults to 2).
|
|
78
|
+
*
|
|
79
|
+
* Both set min-inline-size: 0 so a Layout grid track with 1fr can shrink
|
|
80
|
+
* below content width — the default min-content sizing would otherwise
|
|
81
|
+
* keep the track wide enough to hold the full text, defeating the clamp.
|
|
82
|
+
*/
|
|
83
|
+
[data-polly-truncate] {
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
text-overflow: ellipsis;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
min-inline-size: 0;
|
|
88
|
+
}
|
|
89
|
+
[data-polly-clamp] {
|
|
90
|
+
display: -webkit-box;
|
|
91
|
+
-webkit-line-clamp: var(--polly-clamp, 2);
|
|
92
|
+
-webkit-box-orient: vertical;
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
min-inline-size: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
13
97
|
/* Honour reduced-motion by zeroing every motion token. The components
|
|
14
98
|
* read only these tokens for their transitions, so a consumer preference
|
|
15
99
|
* of "reduce" makes every animation instant. */
|
|
@@ -68,3 +152,828 @@
|
|
|
68
152
|
pointer-events: auto;
|
|
69
153
|
}
|
|
70
154
|
}
|
|
155
|
+
|
|
156
|
+
/* src/polly-ui/ActionForm.module.css */
|
|
157
|
+
@layer polly-components {
|
|
158
|
+
.form_oqTahQ {
|
|
159
|
+
inline-size: 100%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.form_oqTahQ[aria-busy="true"] {
|
|
163
|
+
opacity: var(--polly-opacity-disabled);
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* src/polly-ui/ActionInput.module.css */
|
|
169
|
+
@layer polly-components {
|
|
170
|
+
.root_-n6UrQ {
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
173
|
+
font: inherit;
|
|
174
|
+
font-family: var(--polly-font-sans);
|
|
175
|
+
color: var(--polly-text);
|
|
176
|
+
line-height: var(--polly-line-height-base);
|
|
177
|
+
border: var(--polly-border-width-default) solid transparent;
|
|
178
|
+
border-radius: var(--polly-radius-md);
|
|
179
|
+
min-block-size: calc(1.5em + 2 * var(--polly-space-sm) + 2 * var(--polly-border-width-default));
|
|
180
|
+
inline-size: 100%;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.view_-n6UrQ {
|
|
184
|
+
cursor: text;
|
|
185
|
+
white-space: pre-wrap;
|
|
186
|
+
word-break: break-word;
|
|
187
|
+
transition: background var(--polly-motion-fast) ease, border-color var(--polly-motion-fast) ease;
|
|
188
|
+
background: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.view_-n6UrQ:hover {
|
|
192
|
+
background: var(--polly-surface-sunken);
|
|
193
|
+
border-color: var(--polly-border);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.edit_-n6UrQ {
|
|
197
|
+
background: var(--polly-surface);
|
|
198
|
+
border-color: var(--polly-border);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.placeholder_-n6UrQ {
|
|
202
|
+
color: var(--polly-text-muted);
|
|
203
|
+
font-style: italic;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.root_-n6UrQ[data-variant="multi"] {
|
|
207
|
+
field-sizing: content;
|
|
208
|
+
resize: vertical;
|
|
209
|
+
max-block-size: 40em;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* src/polly-ui/Badge.module.css */
|
|
214
|
+
@layer polly-components {
|
|
215
|
+
.badge_cZd0Aw {
|
|
216
|
+
display: inline-block;
|
|
217
|
+
padding: 0 var(--polly-space-sm);
|
|
218
|
+
border-radius: var(--polly-radius-full);
|
|
219
|
+
font-family: inherit;
|
|
220
|
+
font-size: var(--polly-text-xs);
|
|
221
|
+
font-weight: var(--polly-weight-medium);
|
|
222
|
+
white-space: nowrap;
|
|
223
|
+
background-color: var(--polly-surface-sunken);
|
|
224
|
+
color: var(--polly-text-muted);
|
|
225
|
+
line-height: 1.5;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.info_cZd0Aw {
|
|
229
|
+
background-color: var(--polly-status-info-bg);
|
|
230
|
+
color: var(--polly-status-info-text);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.success_cZd0Aw {
|
|
234
|
+
background-color: var(--polly-status-success-bg);
|
|
235
|
+
color: var(--polly-status-success-text);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.warning_cZd0Aw {
|
|
239
|
+
background-color: var(--polly-status-warning-bg);
|
|
240
|
+
color: var(--polly-status-warning-text);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.danger_cZd0Aw {
|
|
244
|
+
background-color: var(--polly-status-danger-bg);
|
|
245
|
+
color: var(--polly-status-danger-text);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* src/polly-ui/Button.module.css */
|
|
250
|
+
@layer polly-components {
|
|
251
|
+
.btn_c4HKfA {
|
|
252
|
+
display: inline-block;
|
|
253
|
+
padding: var(--polly-space-sm) var(--polly-space-lg);
|
|
254
|
+
border: var(--polly-border-width-default) solid transparent;
|
|
255
|
+
border-radius: var(--polly-radius-sm);
|
|
256
|
+
font-family: inherit;
|
|
257
|
+
font-size: var(--polly-text-md);
|
|
258
|
+
font-weight: var(--polly-weight-medium);
|
|
259
|
+
text-align: center;
|
|
260
|
+
text-decoration: none;
|
|
261
|
+
cursor: pointer;
|
|
262
|
+
user-select: none;
|
|
263
|
+
box-sizing: border-box;
|
|
264
|
+
transition: background-color var(--polly-motion-fast), border-color var(--polly-motion-fast), color var(--polly-motion-fast);
|
|
265
|
+
line-height: 1.2;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.btn_c4HKfA:disabled, .btn_c4HKfA[aria-disabled="true"] {
|
|
269
|
+
opacity: var(--polly-opacity-disabled);
|
|
270
|
+
cursor: not-allowed;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.tierPrimary_c4HKfA {
|
|
274
|
+
background-color: var(--polly-accent);
|
|
275
|
+
color: var(--polly-accent-contrast);
|
|
276
|
+
border-color: var(--polly-accent);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.tierPrimary_c4HKfA:hover:not(:disabled) {
|
|
280
|
+
background-color: var(--polly-accent-hover);
|
|
281
|
+
border-color: var(--polly-accent-hover);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.tierSecondary_c4HKfA {
|
|
285
|
+
background-color: var(--polly-surface-sunken);
|
|
286
|
+
color: var(--polly-text);
|
|
287
|
+
border-color: var(--polly-border);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.tierSecondary_c4HKfA:hover:not(:disabled) {
|
|
291
|
+
background-color: color-mix(in srgb, var(--polly-surface-sunken) 80%, var(--polly-text));
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.tierTertiary_c4HKfA {
|
|
295
|
+
color: var(--polly-text);
|
|
296
|
+
background-color: #0000;
|
|
297
|
+
border-color: #0000;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.tierTertiary_c4HKfA:hover:not(:disabled) {
|
|
301
|
+
background-color: var(--polly-surface-sunken);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.colorInfo_c4HKfA {
|
|
305
|
+
--btn-accent: var(--polly-accent);
|
|
306
|
+
--btn-accent-text: var(--polly-accent-contrast);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.colorSuccess_c4HKfA {
|
|
310
|
+
--btn-accent: var(--polly-success);
|
|
311
|
+
--btn-accent-text: var(--polly-success-contrast);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.colorWarning_c4HKfA {
|
|
315
|
+
--btn-accent: var(--polly-warning);
|
|
316
|
+
--btn-accent-text: var(--polly-warning-contrast);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.colorDanger_c4HKfA {
|
|
320
|
+
--btn-accent: var(--polly-danger);
|
|
321
|
+
--btn-accent-text: var(--polly-danger-contrast);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.tierPrimary_c4HKfA.colorInfo_c4HKfA, .tierPrimary_c4HKfA.colorSuccess_c4HKfA, .tierPrimary_c4HKfA.colorWarning_c4HKfA, .tierPrimary_c4HKfA.colorDanger_c4HKfA {
|
|
325
|
+
background-color: var(--btn-accent);
|
|
326
|
+
border-color: var(--btn-accent);
|
|
327
|
+
color: var(--btn-accent-text);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.tierSecondary_c4HKfA.colorInfo_c4HKfA, .tierSecondary_c4HKfA.colorSuccess_c4HKfA, .tierSecondary_c4HKfA.colorWarning_c4HKfA, .tierSecondary_c4HKfA.colorDanger_c4HKfA {
|
|
331
|
+
color: var(--btn-accent);
|
|
332
|
+
border-color: var(--btn-accent);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.tierTertiary_c4HKfA.colorInfo_c4HKfA, .tierTertiary_c4HKfA.colorSuccess_c4HKfA, .tierTertiary_c4HKfA.colorWarning_c4HKfA, .tierTertiary_c4HKfA.colorDanger_c4HKfA {
|
|
336
|
+
color: var(--btn-accent);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.btnSmall_c4HKfA {
|
|
340
|
+
padding: var(--polly-space-xs) var(--polly-space-md);
|
|
341
|
+
font-size: var(--polly-text-sm);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.btnLarge_c4HKfA {
|
|
345
|
+
padding: var(--polly-space-md) var(--polly-space-xl);
|
|
346
|
+
font-size: var(--polly-text-lg);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.btnCircle_c4HKfA {
|
|
350
|
+
border-radius: var(--polly-radius-full);
|
|
351
|
+
aspect-ratio: 1;
|
|
352
|
+
width: var(--polly-control-height-md);
|
|
353
|
+
padding: 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.btnFullWidth_c4HKfA {
|
|
357
|
+
width: 100%;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* src/polly-ui/Layout.module.css */
|
|
362
|
+
@layer polly-components {
|
|
363
|
+
.layout_QgwWPg {
|
|
364
|
+
--l-cols: none;
|
|
365
|
+
--l-rows: none;
|
|
366
|
+
--l-gap: 0;
|
|
367
|
+
--l-p: 0;
|
|
368
|
+
--l-h: auto;
|
|
369
|
+
--l-mh: auto;
|
|
370
|
+
--l-mis: none;
|
|
371
|
+
--l-ji: stretch;
|
|
372
|
+
--l-ai: start;
|
|
373
|
+
--l-jc: normal;
|
|
374
|
+
--l-ac: normal;
|
|
375
|
+
--l-js: auto;
|
|
376
|
+
--l-as: auto;
|
|
377
|
+
--l-flow: row;
|
|
378
|
+
--l-arows: auto;
|
|
379
|
+
--l-acols: auto;
|
|
380
|
+
--l-col: auto;
|
|
381
|
+
display: grid;
|
|
382
|
+
box-sizing: border-box;
|
|
383
|
+
max-inline-size: var(--l-mis);
|
|
384
|
+
grid-template-columns: var(--l-cols);
|
|
385
|
+
grid-template-rows: var(--l-rows);
|
|
386
|
+
gap: var(--l-gap);
|
|
387
|
+
padding: var(--l-p);
|
|
388
|
+
height: var(--l-h);
|
|
389
|
+
min-height: var(--l-mh);
|
|
390
|
+
justify-items: var(--l-ji);
|
|
391
|
+
align-items: var(--l-ai);
|
|
392
|
+
justify-content: var(--l-jc);
|
|
393
|
+
align-content: var(--l-ac);
|
|
394
|
+
justify-self: var(--l-js);
|
|
395
|
+
align-self: var(--l-as);
|
|
396
|
+
grid-auto-flow: var(--l-flow);
|
|
397
|
+
grid-auto-rows: var(--l-arows);
|
|
398
|
+
grid-auto-columns: var(--l-acols);
|
|
399
|
+
grid-column: var(--l-col);
|
|
400
|
+
inline-size: 100%;
|
|
401
|
+
margin-inline-start: auto;
|
|
402
|
+
margin-inline-end: auto;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.inline_QgwWPg {
|
|
406
|
+
display: inline-grid;
|
|
407
|
+
inline-size: auto;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
@media (max-width: 640px) {
|
|
411
|
+
.stackOnMobile_QgwWPg {
|
|
412
|
+
grid-template-columns: 1fr;
|
|
413
|
+
grid-auto-flow: row;
|
|
414
|
+
grid-column: auto;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* src/polly-ui/Checkbox.module.css */
|
|
420
|
+
@layer polly-components {
|
|
421
|
+
.checkbox_EKE5sg {
|
|
422
|
+
display: inline-block;
|
|
423
|
+
cursor: pointer;
|
|
424
|
+
font-family: inherit;
|
|
425
|
+
font-size: var(--polly-text-md);
|
|
426
|
+
color: var(--polly-text);
|
|
427
|
+
user-select: none;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.disabled_EKE5sg {
|
|
431
|
+
opacity: var(--polly-opacity-disabled);
|
|
432
|
+
cursor: not-allowed;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.input_EKE5sg {
|
|
436
|
+
accent-color: var(--polly-accent);
|
|
437
|
+
vertical-align: middle;
|
|
438
|
+
cursor: inherit;
|
|
439
|
+
margin: 0;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.label_EKE5sg {
|
|
443
|
+
margin-left: var(--polly-space-sm);
|
|
444
|
+
vertical-align: middle;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/* src/polly-ui/Collapsible.module.css */
|
|
449
|
+
@layer polly-components {
|
|
450
|
+
.collapsible_sEhnPw {
|
|
451
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
452
|
+
border-radius: var(--polly-radius-md);
|
|
453
|
+
overflow: hidden;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.summary_sEhnPw {
|
|
457
|
+
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
458
|
+
cursor: pointer;
|
|
459
|
+
font-family: inherit;
|
|
460
|
+
font-size: var(--polly-text-md);
|
|
461
|
+
font-weight: var(--polly-weight-medium);
|
|
462
|
+
color: var(--polly-text);
|
|
463
|
+
background-color: var(--polly-surface-sunken);
|
|
464
|
+
user-select: none;
|
|
465
|
+
list-style: none;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.summary_sEhnPw::-webkit-details-marker {
|
|
469
|
+
display: none;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.summary_sEhnPw:before {
|
|
473
|
+
content: "▶";
|
|
474
|
+
display: inline-block;
|
|
475
|
+
margin-right: var(--polly-space-sm);
|
|
476
|
+
font-size: var(--polly-text-xs);
|
|
477
|
+
transition: transform var(--polly-motion-fast);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.collapsible_sEhnPw[open] > .summary_sEhnPw:before {
|
|
481
|
+
transform: rotate(90deg);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.summary_sEhnPw:hover {
|
|
485
|
+
background-color: var(--polly-surface-raised);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.content_sEhnPw {
|
|
489
|
+
padding: var(--polly-space-md);
|
|
490
|
+
color: var(--polly-text);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* src/polly-ui/ConfirmDialog.module.css */
|
|
495
|
+
@layer polly-components {
|
|
496
|
+
.actions_ZfTX4A {
|
|
497
|
+
display: grid;
|
|
498
|
+
grid-auto-flow: column;
|
|
499
|
+
gap: var(--polly-space-sm);
|
|
500
|
+
justify-content: end;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.cancel_ZfTX4A, .confirm_ZfTX4A, .confirmDanger_ZfTX4A {
|
|
504
|
+
appearance: none;
|
|
505
|
+
padding: var(--polly-space-sm) var(--polly-space-lg);
|
|
506
|
+
font: inherit;
|
|
507
|
+
font-weight: var(--polly-weight-medium);
|
|
508
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
509
|
+
border-radius: var(--polly-radius-md);
|
|
510
|
+
cursor: pointer;
|
|
511
|
+
transition: background var(--polly-motion-fast) ease;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.cancel_ZfTX4A {
|
|
515
|
+
background: var(--polly-surface);
|
|
516
|
+
color: var(--polly-text);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.cancel_ZfTX4A:hover {
|
|
520
|
+
background: var(--polly-surface-sunken);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.confirm_ZfTX4A {
|
|
524
|
+
background: var(--polly-accent);
|
|
525
|
+
color: var(--polly-accent-contrast);
|
|
526
|
+
border-color: var(--polly-accent);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.confirm_ZfTX4A:hover {
|
|
530
|
+
filter: brightness(1.05);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.confirmDanger_ZfTX4A {
|
|
534
|
+
background: var(--polly-danger);
|
|
535
|
+
color: var(--polly-danger-contrast);
|
|
536
|
+
border-color: var(--polly-danger);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.confirmDanger_ZfTX4A:hover {
|
|
540
|
+
filter: brightness(1.05);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/* src/polly-ui/Modal.module.css */
|
|
545
|
+
@layer polly-components {
|
|
546
|
+
.container_fLMrWA {
|
|
547
|
+
position: fixed;
|
|
548
|
+
display: grid;
|
|
549
|
+
pointer-events: none;
|
|
550
|
+
place-items: center;
|
|
551
|
+
inset: 0;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.backdrop_fLMrWA {
|
|
555
|
+
position: absolute;
|
|
556
|
+
background: color-mix(in srgb, var(--polly-text) 50%, transparent);
|
|
557
|
+
pointer-events: auto;
|
|
558
|
+
inset: 0;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.surface_fLMrWA {
|
|
562
|
+
position: relative;
|
|
563
|
+
pointer-events: auto;
|
|
564
|
+
background: var(--polly-surface-raised);
|
|
565
|
+
color: var(--polly-text);
|
|
566
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
567
|
+
border-radius: var(--polly-radius-lg);
|
|
568
|
+
box-shadow: var(--polly-shadow-lg);
|
|
569
|
+
max-inline-size: min(640px, calc(100vw - 2 * var(--polly-space-lg)));
|
|
570
|
+
max-block-size: calc(100vh - 2 * var(--polly-space-lg));
|
|
571
|
+
overflow: auto;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.header_fLMrWA {
|
|
575
|
+
padding: var(--polly-space-lg);
|
|
576
|
+
border-block-end: var(--polly-border-width-default) solid var(--polly-border);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.title_fLMrWA {
|
|
580
|
+
font-size: var(--polly-text-xl);
|
|
581
|
+
font-weight: var(--polly-weight-bold);
|
|
582
|
+
line-height: var(--polly-line-height-tight);
|
|
583
|
+
margin: 0;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
.body_fLMrWA {
|
|
587
|
+
padding: var(--polly-space-lg);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.footer_fLMrWA {
|
|
591
|
+
padding: var(--polly-space-lg);
|
|
592
|
+
border-block-start: var(--polly-border-width-default) solid var(--polly-border);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.close_fLMrWA {
|
|
596
|
+
appearance: none;
|
|
597
|
+
color: var(--polly-text);
|
|
598
|
+
border: var(--polly-border-width-default) solid transparent;
|
|
599
|
+
border-radius: var(--polly-radius-md);
|
|
600
|
+
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
601
|
+
font: inherit;
|
|
602
|
+
cursor: pointer;
|
|
603
|
+
transition: background var(--polly-motion-fast) ease, border-color var(--polly-motion-fast) ease;
|
|
604
|
+
background: none;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.close_fLMrWA:hover {
|
|
608
|
+
background: var(--polly-surface-sunken);
|
|
609
|
+
border-color: var(--polly-border);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/* src/polly-ui/OverlayRoot.module.css */
|
|
614
|
+
@layer polly-components {
|
|
615
|
+
.root_CqRu1Q {
|
|
616
|
+
position: fixed;
|
|
617
|
+
pointer-events: none;
|
|
618
|
+
inset: 0;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* src/polly-ui/Dropdown.module.css */
|
|
623
|
+
@layer polly-components {
|
|
624
|
+
.dropdown_HX48zA {
|
|
625
|
+
position: relative;
|
|
626
|
+
display: inline-block;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.trigger_HX48zA {
|
|
630
|
+
display: inline-block;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.menu_HX48zA {
|
|
634
|
+
position: absolute;
|
|
635
|
+
inset: unset;
|
|
636
|
+
z-index: var(--polly-z-raised);
|
|
637
|
+
margin: var(--polly-space-xs) 0 0;
|
|
638
|
+
padding: var(--polly-space-xs) 0;
|
|
639
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
640
|
+
border-radius: var(--polly-radius-md);
|
|
641
|
+
background-color: var(--polly-surface);
|
|
642
|
+
box-shadow: var(--polly-shadow-md);
|
|
643
|
+
box-sizing: border-box;
|
|
644
|
+
overflow-y: auto;
|
|
645
|
+
min-width: 160px;
|
|
646
|
+
max-height: 280px;
|
|
647
|
+
top: 100%;
|
|
648
|
+
left: 0;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.alignRight_HX48zA {
|
|
652
|
+
left: auto;
|
|
653
|
+
right: 0;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/* src/polly-ui/Select.module.css */
|
|
658
|
+
@layer polly-components {
|
|
659
|
+
.select_daofbw {
|
|
660
|
+
display: inline-block;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.label_daofbw {
|
|
664
|
+
display: block;
|
|
665
|
+
margin-bottom: var(--polly-space-xs);
|
|
666
|
+
font-size: var(--polly-text-sm);
|
|
667
|
+
font-weight: var(--polly-weight-medium);
|
|
668
|
+
color: var(--polly-text-muted);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.trigger_daofbw {
|
|
672
|
+
display: inline-block;
|
|
673
|
+
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
674
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
675
|
+
border-radius: var(--polly-radius-sm);
|
|
676
|
+
background-color: var(--polly-surface);
|
|
677
|
+
font-family: inherit;
|
|
678
|
+
font-size: var(--polly-text-md);
|
|
679
|
+
color: var(--polly-text);
|
|
680
|
+
text-align: left;
|
|
681
|
+
cursor: pointer;
|
|
682
|
+
white-space: nowrap;
|
|
683
|
+
overflow: hidden;
|
|
684
|
+
text-overflow: ellipsis;
|
|
685
|
+
min-width: 140px;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.trigger_daofbw:disabled {
|
|
689
|
+
opacity: var(--polly-opacity-disabled);
|
|
690
|
+
cursor: not-allowed;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.placeholder_daofbw {
|
|
694
|
+
color: var(--polly-text-muted);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.actions_daofbw {
|
|
698
|
+
padding: var(--polly-space-xs) var(--polly-space-sm);
|
|
699
|
+
border-bottom: var(--polly-border-width-default) solid var(--polly-border);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.actionBtn_daofbw {
|
|
703
|
+
display: inline-block;
|
|
704
|
+
padding: var(--polly-space-xs) var(--polly-space-sm);
|
|
705
|
+
border-radius: var(--polly-radius-sm);
|
|
706
|
+
font-family: inherit;
|
|
707
|
+
font-size: var(--polly-text-xs);
|
|
708
|
+
color: var(--polly-accent);
|
|
709
|
+
cursor: pointer;
|
|
710
|
+
text-align: center;
|
|
711
|
+
background: none;
|
|
712
|
+
border: none;
|
|
713
|
+
width: 100%;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.actionBtn_daofbw:hover {
|
|
717
|
+
background-color: var(--polly-surface-sunken);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.option_daofbw {
|
|
721
|
+
display: block;
|
|
722
|
+
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
723
|
+
font-family: inherit;
|
|
724
|
+
font-size: var(--polly-text-sm);
|
|
725
|
+
color: var(--polly-text);
|
|
726
|
+
text-align: left;
|
|
727
|
+
cursor: pointer;
|
|
728
|
+
background: none;
|
|
729
|
+
border: none;
|
|
730
|
+
width: 100%;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.option_daofbw:hover {
|
|
734
|
+
background-color: var(--polly-surface-sunken);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.optionSelected_daofbw {
|
|
738
|
+
background-color: color-mix(in srgb, var(--polly-accent) 8%, var(--polly-surface));
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.optionCheck_daofbw {
|
|
742
|
+
accent-color: var(--polly-accent);
|
|
743
|
+
margin-right: var(--polly-space-sm);
|
|
744
|
+
vertical-align: middle;
|
|
745
|
+
pointer-events: none;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/* src/polly-ui/Skeleton.module.css */
|
|
750
|
+
@layer polly-components {
|
|
751
|
+
@keyframes pollyShimmer_gpBHJA {
|
|
752
|
+
0% {
|
|
753
|
+
background-position: -200% 0;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
100% {
|
|
757
|
+
background-position: 200% 0;
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.skeleton_Jrgo0g {
|
|
762
|
+
display: inline-block;
|
|
763
|
+
background: linear-gradient(90deg, var(--polly-surface-sunken) 25%, var(--polly-surface-raised) 50%, var(--polly-surface-sunken) 75%);
|
|
764
|
+
animation: pollyShimmer 1.5s infinite linear;
|
|
765
|
+
border-radius: var(--polly-radius-sm);
|
|
766
|
+
background-size: 200% 100%;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.text_Jrgo0g {
|
|
770
|
+
width: 100%;
|
|
771
|
+
height: 1em;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.rect_Jrgo0g {
|
|
775
|
+
width: 100%;
|
|
776
|
+
height: 100px;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
.circle_Jrgo0g {
|
|
780
|
+
border-radius: var(--polly-radius-full);
|
|
781
|
+
width: 40px;
|
|
782
|
+
height: 40px;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/* src/polly-ui/Tabs.module.css */
|
|
787
|
+
@layer polly-components {
|
|
788
|
+
.tabs_xKO6GA {
|
|
789
|
+
overflow-x: auto;
|
|
790
|
+
scrollbar-width: none;
|
|
791
|
+
border-bottom: var(--polly-border-width-default) solid var(--polly-border);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
.tabs_xKO6GA::-webkit-scrollbar {
|
|
795
|
+
display: none;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.tab_xKO6GA {
|
|
799
|
+
display: inline-block;
|
|
800
|
+
padding: var(--polly-space-sm) var(--polly-space-lg);
|
|
801
|
+
border: none;
|
|
802
|
+
border-bottom: var(--polly-border-width-medium) solid transparent;
|
|
803
|
+
font-family: inherit;
|
|
804
|
+
font-size: var(--polly-text-sm);
|
|
805
|
+
font-weight: var(--polly-weight-medium);
|
|
806
|
+
color: var(--polly-text-muted);
|
|
807
|
+
cursor: pointer;
|
|
808
|
+
white-space: nowrap;
|
|
809
|
+
transition: color var(--polly-motion-fast), border-color var(--polly-motion-fast);
|
|
810
|
+
background: none;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.tab_xKO6GA:hover:not(:disabled) {
|
|
814
|
+
color: var(--polly-text);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.tab_xKO6GA:disabled {
|
|
818
|
+
opacity: var(--polly-opacity-disabled);
|
|
819
|
+
cursor: not-allowed;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.active_xKO6GA {
|
|
823
|
+
color: var(--polly-accent);
|
|
824
|
+
border-bottom-color: var(--polly-accent);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/* src/polly-ui/TextInput.module.css */
|
|
829
|
+
@layer polly-components {
|
|
830
|
+
.input_ez4_Vg {
|
|
831
|
+
box-sizing: border-box;
|
|
832
|
+
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
833
|
+
font: inherit;
|
|
834
|
+
font-family: var(--polly-font-sans);
|
|
835
|
+
color: var(--polly-text);
|
|
836
|
+
background: var(--polly-surface);
|
|
837
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
838
|
+
border-radius: var(--polly-radius-md);
|
|
839
|
+
transition: border-color var(--polly-motion-fast) ease, background var(--polly-motion-fast) ease;
|
|
840
|
+
inline-size: 100%;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.input_ez4_Vg:hover {
|
|
844
|
+
border-color: var(--polly-border-strong);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.input_ez4_Vg[data-state="invalid"] {
|
|
848
|
+
border-color: var(--polly-danger);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.input_ez4_Vg:disabled {
|
|
852
|
+
opacity: var(--polly-opacity-disabled);
|
|
853
|
+
cursor: not-allowed;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.input_ez4_Vg[data-polly-input-variant="multi"] {
|
|
857
|
+
field-sizing: content;
|
|
858
|
+
min-block-size: calc(1.5em + 2 * var(--polly-space-sm) + 2 * var(--polly-border-width-default));
|
|
859
|
+
resize: vertical;
|
|
860
|
+
max-block-size: 40em;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/* src/polly-ui/Toast.module.css */
|
|
865
|
+
@layer polly-components {
|
|
866
|
+
.viewport_xVzRuA {
|
|
867
|
+
display: grid;
|
|
868
|
+
gap: var(--polly-space-sm);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.item_xVzRuA {
|
|
872
|
+
display: grid;
|
|
873
|
+
grid-template-columns: 1fr auto;
|
|
874
|
+
gap: var(--polly-space-md);
|
|
875
|
+
padding: var(--polly-space-md) var(--polly-space-lg);
|
|
876
|
+
background: var(--polly-surface-raised);
|
|
877
|
+
color: var(--polly-text);
|
|
878
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
879
|
+
border-radius: var(--polly-radius-md);
|
|
880
|
+
box-shadow: var(--polly-shadow-md);
|
|
881
|
+
align-items: center;
|
|
882
|
+
min-inline-size: 16em;
|
|
883
|
+
max-inline-size: 28em;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.item_xVzRuA[data-severity="error"] {
|
|
887
|
+
border-color: var(--polly-danger);
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
.item_xVzRuA[data-severity="warning"] {
|
|
891
|
+
border-color: var(--polly-warning);
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.message_xVzRuA {
|
|
895
|
+
font-size: var(--polly-text-md);
|
|
896
|
+
line-height: var(--polly-line-height-base);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.close_xVzRuA {
|
|
900
|
+
appearance: none;
|
|
901
|
+
color: inherit;
|
|
902
|
+
border: var(--polly-border-width-default) solid transparent;
|
|
903
|
+
border-radius: var(--polly-radius-sm);
|
|
904
|
+
padding: var(--polly-space-xs) var(--polly-space-sm);
|
|
905
|
+
font: inherit;
|
|
906
|
+
cursor: pointer;
|
|
907
|
+
background: none;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
.close_xVzRuA:hover {
|
|
911
|
+
background: var(--polly-surface-sunken);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/* src/polly-ui/Toggle.module.css */
|
|
916
|
+
@layer polly-components {
|
|
917
|
+
.toggle_rnf-SQ {
|
|
918
|
+
display: inline-block;
|
|
919
|
+
cursor: pointer;
|
|
920
|
+
font-family: inherit;
|
|
921
|
+
font-size: var(--polly-text-md);
|
|
922
|
+
color: var(--polly-text);
|
|
923
|
+
user-select: none;
|
|
924
|
+
vertical-align: middle;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.disabled_rnf-SQ {
|
|
928
|
+
opacity: var(--polly-opacity-disabled);
|
|
929
|
+
cursor: not-allowed;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.input_rnf-SQ {
|
|
933
|
+
position: absolute;
|
|
934
|
+
overflow: hidden;
|
|
935
|
+
clip: rect(0, 0, 0, 0);
|
|
936
|
+
white-space: nowrap;
|
|
937
|
+
border: 0;
|
|
938
|
+
width: 1px;
|
|
939
|
+
height: 1px;
|
|
940
|
+
margin: -1px;
|
|
941
|
+
padding: 0;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.track_rnf-SQ {
|
|
945
|
+
display: inline-block;
|
|
946
|
+
position: relative;
|
|
947
|
+
border-radius: var(--polly-radius-full);
|
|
948
|
+
background-color: var(--polly-border);
|
|
949
|
+
vertical-align: middle;
|
|
950
|
+
transition: background-color var(--polly-motion-fast);
|
|
951
|
+
width: 36px;
|
|
952
|
+
height: 20px;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.trackChecked_rnf-SQ {
|
|
956
|
+
background-color: var(--polly-accent);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.thumb_rnf-SQ {
|
|
960
|
+
display: block;
|
|
961
|
+
position: absolute;
|
|
962
|
+
border-radius: var(--polly-radius-full);
|
|
963
|
+
background-color: var(--polly-accent-contrast);
|
|
964
|
+
transition: transform var(--polly-motion-fast);
|
|
965
|
+
width: 16px;
|
|
966
|
+
height: 16px;
|
|
967
|
+
top: 2px;
|
|
968
|
+
left: 2px;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.thumbChecked_rnf-SQ {
|
|
972
|
+
transform: translateX(16px);
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
.label_rnf-SQ {
|
|
976
|
+
margin-left: var(--polly-space-sm);
|
|
977
|
+
vertical-align: middle;
|
|
978
|
+
}
|
|
979
|
+
}
|