uniskin 0.2.0 → 0.4.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/README.md +126 -0
- package/dist/coverage.d.ts +17 -0
- package/dist/coverage.d.ts.map +1 -0
- package/dist/coverage.js +36 -0
- package/dist/coverage.js.map +1 -0
- package/dist/default-theme.d.ts +402 -16
- package/dist/default-theme.d.ts.map +1 -1
- package/dist/default-theme.js +383 -18
- package/dist/default-theme.js.map +1 -1
- package/dist/emit.d.ts +4 -2
- package/dist/emit.d.ts.map +1 -1
- package/dist/emit.js +24 -2
- package/dist/emit.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/merge.d.ts +16 -3
- package/dist/merge.d.ts.map +1 -1
- package/dist/merge.js +73 -12
- package/dist/merge.js.map +1 -1
- package/dist/types.d.ts +18 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -1
- package/package.json +4 -1
package/dist/default-theme.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ export declare const defaultAdapter: {
|
|
|
33
33
|
readonly "--ui-surface-muted": "oklch(0.96 0.005 265)";
|
|
34
34
|
readonly "--ui-border": "oklch(0.89 0.008 265)";
|
|
35
35
|
readonly "--ui-ring": "oklch(0.62 0.18 262)";
|
|
36
|
+
readonly "--ui-overlay": "rgb(0 0 0 / 0.5)";
|
|
37
|
+
readonly "--ui-overlay-soft": "rgb(255 255 255 / 0.6)";
|
|
36
38
|
readonly "--ui-radius": "0.5rem";
|
|
37
39
|
readonly "--ui-text-sm": "0.8125rem";
|
|
38
40
|
readonly "--ui-text-md": "0.9375rem";
|
|
@@ -58,6 +60,8 @@ export declare const defaultAdapter: {
|
|
|
58
60
|
readonly "--ui-surface-muted": "oklch(0.26 0.015 265)";
|
|
59
61
|
readonly "--ui-border": "oklch(0.34 0.015 265)";
|
|
60
62
|
readonly "--ui-ring": "oklch(0.7 0.15 262)";
|
|
63
|
+
readonly "--ui-overlay": "rgb(0 0 0 / 0.5)";
|
|
64
|
+
readonly "--ui-overlay-soft": "rgb(255 255 255 / 0.6)";
|
|
61
65
|
};
|
|
62
66
|
readonly components: {
|
|
63
67
|
readonly button: {
|
|
@@ -81,7 +85,7 @@ export declare const defaultAdapter: {
|
|
|
81
85
|
readonly border: "1px solid transparent";
|
|
82
86
|
readonly "background-color": "var(--ui-c)";
|
|
83
87
|
readonly color: "var(--ui-on-c)";
|
|
84
|
-
readonly "border-color": "var(--ui-c)";
|
|
88
|
+
readonly "border-color": "var(--ui-c-border, var(--ui-c))";
|
|
85
89
|
readonly cursor: "pointer";
|
|
86
90
|
readonly "user-select": "none";
|
|
87
91
|
readonly "text-decoration": "none";
|
|
@@ -100,7 +104,7 @@ export declare const defaultAdapter: {
|
|
|
100
104
|
readonly outline: {
|
|
101
105
|
readonly "background-color": "transparent";
|
|
102
106
|
readonly color: "var(--ui-c-text)";
|
|
103
|
-
readonly "border-color": "var(--ui-c)";
|
|
107
|
+
readonly "border-color": "var(--ui-c-border, var(--ui-c))";
|
|
104
108
|
readonly "&:hover": {
|
|
105
109
|
readonly "background-color": "var(--ui-c)";
|
|
106
110
|
readonly "border-color": "var(--ui-c)";
|
|
@@ -122,8 +126,8 @@ export declare const defaultAdapter: {
|
|
|
122
126
|
readonly "border-color": "transparent";
|
|
123
127
|
readonly color: "var(--ui-c-soft-fg)";
|
|
124
128
|
readonly "&:hover": {
|
|
125
|
-
readonly "background-color": "var(--ui-c)";
|
|
126
|
-
readonly "border-color": "var(--ui-c)";
|
|
129
|
+
readonly "background-color": "var(--ui-c-soft-hover, var(--ui-c))";
|
|
130
|
+
readonly "border-color": "var(--ui-c-border, var(--ui-c))";
|
|
127
131
|
readonly color: "var(--ui-on-c)";
|
|
128
132
|
};
|
|
129
133
|
};
|
|
@@ -210,6 +214,12 @@ export declare const defaultAdapter: {
|
|
|
210
214
|
readonly "background-position": "calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%";
|
|
211
215
|
readonly "background-size": "0.35rem 0.35rem, 0.35rem 0.35rem";
|
|
212
216
|
readonly "background-repeat": "no-repeat";
|
|
217
|
+
readonly '&[multiple], &[size]:not([size="1"])': {
|
|
218
|
+
readonly "background-image": "none";
|
|
219
|
+
readonly "padding-right": "0.75rem";
|
|
220
|
+
readonly height: "auto";
|
|
221
|
+
readonly cursor: "auto";
|
|
222
|
+
};
|
|
213
223
|
};
|
|
214
224
|
readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
|
|
215
225
|
readonly styles: Record<"outline" | "ghost" | "soft", CssRuleObject>;
|
|
@@ -257,14 +267,14 @@ export declare const defaultAdapter: {
|
|
|
257
267
|
readonly "&:hover": {
|
|
258
268
|
readonly "border-color": "var(--ui-c)";
|
|
259
269
|
};
|
|
260
|
-
readonly
|
|
270
|
+
readonly '&:checked, &:indeterminate, &[aria-checked="true"], &[aria-checked="mixed"]': {
|
|
261
271
|
readonly "background-color": "var(--ui-c)";
|
|
262
|
-
readonly "border-color": "var(--ui-c)";
|
|
272
|
+
readonly "border-color": "var(--ui-c-text)";
|
|
263
273
|
};
|
|
264
|
-
readonly
|
|
274
|
+
readonly '&:checked::after, &[aria-checked="true"]::after': {
|
|
265
275
|
readonly transform: "translateY(-8%) rotate(45deg) scale(1)";
|
|
266
276
|
};
|
|
267
|
-
readonly
|
|
277
|
+
readonly '&:indeterminate::after, &[aria-checked="mixed"]::after': {
|
|
268
278
|
readonly width: "0.55em";
|
|
269
279
|
readonly height: "2px";
|
|
270
280
|
readonly "border-width": "0";
|
|
@@ -276,9 +286,9 @@ export declare const defaultAdapter: {
|
|
|
276
286
|
readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
|
|
277
287
|
readonly styles: {
|
|
278
288
|
readonly outline: {
|
|
279
|
-
readonly "--ui-check-mark": "var(--ui-c)";
|
|
280
|
-
readonly "border-color": "var(--ui-c)";
|
|
281
|
-
readonly
|
|
289
|
+
readonly "--ui-check-mark": "var(--ui-c-text)";
|
|
290
|
+
readonly "border-color": "var(--ui-c-text)";
|
|
291
|
+
readonly '&:checked, &:indeterminate, &[aria-checked="true"], &[aria-checked="mixed"]': {
|
|
282
292
|
readonly "background-color": "transparent";
|
|
283
293
|
};
|
|
284
294
|
};
|
|
@@ -286,16 +296,16 @@ export declare const defaultAdapter: {
|
|
|
286
296
|
readonly "--ui-check-mark": "var(--ui-c-soft-fg)";
|
|
287
297
|
readonly "background-color": "var(--ui-surface-muted)";
|
|
288
298
|
readonly "border-color": "transparent";
|
|
289
|
-
readonly
|
|
299
|
+
readonly '&:checked, &:indeterminate, &[aria-checked="true"], &[aria-checked="mixed"]': {
|
|
290
300
|
readonly "background-color": "var(--ui-c-soft)";
|
|
291
301
|
readonly "border-color": "transparent";
|
|
292
302
|
};
|
|
293
303
|
};
|
|
294
304
|
readonly soft: {
|
|
295
305
|
readonly "--ui-check-mark": "var(--ui-c-soft-fg)";
|
|
296
|
-
readonly
|
|
306
|
+
readonly '&:checked, &:indeterminate, &[aria-checked="true"], &[aria-checked="mixed"]': {
|
|
297
307
|
readonly "background-color": "var(--ui-c-soft)";
|
|
298
|
-
readonly "border-color": "var(--ui-c)";
|
|
308
|
+
readonly "border-color": "var(--ui-c-text)";
|
|
299
309
|
};
|
|
300
310
|
};
|
|
301
311
|
};
|
|
@@ -321,6 +331,255 @@ export declare const defaultAdapter: {
|
|
|
321
331
|
};
|
|
322
332
|
};
|
|
323
333
|
};
|
|
334
|
+
readonly radio: {
|
|
335
|
+
readonly base: {
|
|
336
|
+
readonly appearance: "none";
|
|
337
|
+
readonly display: "inline-grid";
|
|
338
|
+
readonly "place-content": "center";
|
|
339
|
+
readonly "flex-shrink": "0";
|
|
340
|
+
readonly "box-sizing": "border-box";
|
|
341
|
+
readonly width: "var(--ui-radio-size, 1.125rem)";
|
|
342
|
+
readonly height: "var(--ui-radio-size, 1.125rem)";
|
|
343
|
+
readonly margin: "0";
|
|
344
|
+
readonly "vertical-align": "middle";
|
|
345
|
+
readonly cursor: "pointer";
|
|
346
|
+
readonly "background-color": "var(--ui-surface)";
|
|
347
|
+
readonly border: "1px solid color-mix(in oklab, var(--ui-border) 55%, var(--ui-surface-fg))";
|
|
348
|
+
readonly "border-radius": "50%";
|
|
349
|
+
readonly transition: string;
|
|
350
|
+
readonly "&::after": {
|
|
351
|
+
readonly content: "\"\"";
|
|
352
|
+
readonly width: "var(--ui-radio-dot-size, 0.5em)";
|
|
353
|
+
readonly height: "var(--ui-radio-dot-size, 0.5em)";
|
|
354
|
+
readonly "border-radius": "50%";
|
|
355
|
+
readonly "background-color": "var(--ui-radio-dot, var(--ui-on-c))";
|
|
356
|
+
readonly transform: "scale(0)";
|
|
357
|
+
readonly transition: "transform 0.12s ease";
|
|
358
|
+
readonly "font-size": "var(--ui-radio-size, 1.125rem)";
|
|
359
|
+
readonly "@media (prefers-reduced-motion: reduce)": {
|
|
360
|
+
readonly transition: "none";
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
readonly "&:hover": {
|
|
364
|
+
readonly "border-color": "var(--ui-c)";
|
|
365
|
+
};
|
|
366
|
+
readonly '&:checked, &[aria-checked="true"]': {
|
|
367
|
+
readonly "background-color": "var(--ui-c)";
|
|
368
|
+
readonly "border-color": "var(--ui-c-text)";
|
|
369
|
+
};
|
|
370
|
+
readonly '&:checked::after, &[aria-checked="true"]::after': {
|
|
371
|
+
readonly transform: "scale(1)";
|
|
372
|
+
};
|
|
373
|
+
readonly "&:focus-visible": CssRuleObject;
|
|
374
|
+
readonly "@media (prefers-reduced-motion: reduce)": {
|
|
375
|
+
readonly transition: "none";
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
|
|
379
|
+
readonly styles: {
|
|
380
|
+
readonly outline: {
|
|
381
|
+
readonly "--ui-radio-dot": "var(--ui-c-text)";
|
|
382
|
+
readonly "border-color": "var(--ui-c-text)";
|
|
383
|
+
readonly '&:checked, &[aria-checked="true"]': {
|
|
384
|
+
readonly "background-color": "transparent";
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
readonly ghost: {
|
|
388
|
+
readonly "--ui-radio-dot": "var(--ui-c-soft-fg)";
|
|
389
|
+
readonly "background-color": "var(--ui-surface-muted)";
|
|
390
|
+
readonly "border-color": "transparent";
|
|
391
|
+
readonly '&:checked, &[aria-checked="true"]': {
|
|
392
|
+
readonly "background-color": "var(--ui-c-soft)";
|
|
393
|
+
readonly "border-color": "transparent";
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
readonly soft: {
|
|
397
|
+
readonly "--ui-radio-dot": "var(--ui-c-soft-fg)";
|
|
398
|
+
readonly '&:checked, &[aria-checked="true"]': {
|
|
399
|
+
readonly "background-color": "var(--ui-c-soft)";
|
|
400
|
+
readonly "border-color": "var(--ui-c-text)";
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
readonly sizes: {
|
|
405
|
+
readonly sm: {
|
|
406
|
+
readonly "--ui-radio-size": "0.9375rem";
|
|
407
|
+
};
|
|
408
|
+
readonly lg: {
|
|
409
|
+
readonly "--ui-radio-size": "1.5rem";
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
readonly states: {
|
|
413
|
+
readonly disabled: {
|
|
414
|
+
readonly opacity: "0.5";
|
|
415
|
+
readonly cursor: "not-allowed";
|
|
416
|
+
};
|
|
417
|
+
readonly loading: {
|
|
418
|
+
readonly cursor: "progress";
|
|
419
|
+
readonly animation: "ui-pulse 1.2s ease-in-out infinite";
|
|
420
|
+
};
|
|
421
|
+
readonly active: {
|
|
422
|
+
readonly "box-shadow": "0 0 0 3px color-mix(in oklab, var(--ui-c) 30%, transparent)";
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
readonly switch: {
|
|
427
|
+
readonly base: {
|
|
428
|
+
readonly appearance: "none";
|
|
429
|
+
readonly display: "inline-grid";
|
|
430
|
+
readonly "align-items": "center";
|
|
431
|
+
readonly "flex-shrink": "0";
|
|
432
|
+
readonly "box-sizing": "border-box";
|
|
433
|
+
readonly width: "calc(var(--ui-switch-size, 1.25rem) * 1.75)";
|
|
434
|
+
readonly height: "var(--ui-switch-size, 1.25rem)";
|
|
435
|
+
readonly margin: "0";
|
|
436
|
+
readonly padding: "0";
|
|
437
|
+
readonly "vertical-align": "middle";
|
|
438
|
+
readonly cursor: "pointer";
|
|
439
|
+
readonly "background-color": "var(--ui-switch-track, color-mix(in oklab, var(--ui-surface-fg) 55%, var(--ui-surface)))";
|
|
440
|
+
readonly border: "1px solid var(--ui-switch-track, color-mix(in oklab, var(--ui-surface-fg) 55%, var(--ui-surface)))";
|
|
441
|
+
readonly "border-radius": "9999px";
|
|
442
|
+
readonly transition: string;
|
|
443
|
+
readonly "&::after": {
|
|
444
|
+
readonly content: "\"\"";
|
|
445
|
+
readonly "box-sizing": "border-box";
|
|
446
|
+
readonly width: "calc(var(--ui-switch-size, 1.25rem) - 2px - 2 * var(--ui-switch-pad, 2px))";
|
|
447
|
+
readonly height: "calc(var(--ui-switch-size, 1.25rem) - 2px - 2 * var(--ui-switch-pad, 2px))";
|
|
448
|
+
readonly "border-radius": "9999px";
|
|
449
|
+
readonly "background-color": "var(--ui-switch-thumb, var(--ui-surface))";
|
|
450
|
+
readonly "margin-inline-start": "var(--ui-switch-pad, 2px)";
|
|
451
|
+
readonly transition: "margin-inline-start 0.15s ease, background-color 0.15s ease";
|
|
452
|
+
readonly "@media (prefers-reduced-motion: reduce)": {
|
|
453
|
+
readonly transition: "none";
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
readonly '&:checked, &[aria-checked="true"]': {
|
|
457
|
+
readonly "background-color": "var(--ui-c)";
|
|
458
|
+
readonly "border-color": "var(--ui-c)";
|
|
459
|
+
};
|
|
460
|
+
readonly '&:checked::after, &[aria-checked="true"]::after': {
|
|
461
|
+
readonly "background-color": "var(--ui-switch-thumb, var(--ui-on-c))";
|
|
462
|
+
readonly "margin-inline-start": "calc(var(--ui-switch-size, 1.25rem) * 0.75 + var(--ui-switch-pad, 2px))";
|
|
463
|
+
};
|
|
464
|
+
readonly "&:focus-visible": CssRuleObject;
|
|
465
|
+
readonly "@media (prefers-reduced-motion: reduce)": {
|
|
466
|
+
readonly transition: "none";
|
|
467
|
+
};
|
|
468
|
+
readonly "@media (forced-colors: active)": {
|
|
469
|
+
readonly "forced-color-adjust": "none";
|
|
470
|
+
readonly "background-color": "Canvas !important";
|
|
471
|
+
readonly "border-color": "ButtonText !important";
|
|
472
|
+
readonly "&::after": {
|
|
473
|
+
readonly "background-color": "ButtonText !important";
|
|
474
|
+
};
|
|
475
|
+
readonly '&:checked, &[aria-checked="true"]': {
|
|
476
|
+
readonly "background-color": "Highlight !important";
|
|
477
|
+
readonly "border-color": "Highlight !important";
|
|
478
|
+
};
|
|
479
|
+
readonly '&:checked::after, &[aria-checked="true"]::after': {
|
|
480
|
+
readonly "background-color": "HighlightText !important";
|
|
481
|
+
};
|
|
482
|
+
readonly '&:disabled, &[aria-disabled="true"]': {
|
|
483
|
+
readonly "border-color": "GrayText !important";
|
|
484
|
+
readonly "&::after": {
|
|
485
|
+
readonly "background-color": "GrayText !important";
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
readonly "&:focus-visible": {
|
|
489
|
+
readonly outline: "2px solid Highlight !important";
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
|
|
494
|
+
readonly styles: {
|
|
495
|
+
readonly outline: {
|
|
496
|
+
readonly "background-color": "transparent";
|
|
497
|
+
readonly "border-color": "var(--ui-c)";
|
|
498
|
+
readonly "--ui-switch-thumb": "var(--ui-c)";
|
|
499
|
+
};
|
|
500
|
+
readonly ghost: {
|
|
501
|
+
readonly "background-color": "var(--ui-surface-muted)";
|
|
502
|
+
readonly "--ui-switch-thumb": "var(--ui-surface-fg)";
|
|
503
|
+
readonly '&:checked, &[aria-checked="true"]': {
|
|
504
|
+
readonly "background-color": "var(--ui-c-soft)";
|
|
505
|
+
readonly "--ui-switch-thumb": "var(--ui-c-soft-fg)";
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
readonly soft: {
|
|
509
|
+
readonly "background-color": "var(--ui-c-soft)";
|
|
510
|
+
readonly "--ui-switch-thumb": "var(--ui-c-soft-fg)";
|
|
511
|
+
readonly '&:checked, &[aria-checked="true"]': {
|
|
512
|
+
readonly "background-color": "var(--ui-c-soft)";
|
|
513
|
+
readonly "border-color": "var(--ui-c)";
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
readonly sizes: {
|
|
518
|
+
readonly sm: {
|
|
519
|
+
readonly "--ui-switch-size": "1rem";
|
|
520
|
+
};
|
|
521
|
+
readonly lg: {
|
|
522
|
+
readonly "--ui-switch-size": "1.5rem";
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
readonly states: {
|
|
526
|
+
readonly disabled: {
|
|
527
|
+
readonly opacity: "0.5";
|
|
528
|
+
readonly cursor: "not-allowed";
|
|
529
|
+
};
|
|
530
|
+
readonly loading: {
|
|
531
|
+
readonly cursor: "progress";
|
|
532
|
+
readonly "&::after": {
|
|
533
|
+
readonly animation: "ui-pulse 1.2s ease-in-out infinite";
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
readonly active: {
|
|
537
|
+
readonly "box-shadow": "0 0 0 3px color-mix(in oklab, var(--ui-c) 30%, transparent)";
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
readonly field: {
|
|
542
|
+
readonly base: {
|
|
543
|
+
readonly display: "flex";
|
|
544
|
+
readonly "flex-direction": "column";
|
|
545
|
+
readonly "align-items": "stretch";
|
|
546
|
+
readonly gap: "var(--ui-field-gap, 0.375rem)";
|
|
547
|
+
readonly "min-inline-size": "0";
|
|
548
|
+
readonly "font-family": "var(--ui-font-sans)";
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
readonly "field-label": {
|
|
552
|
+
readonly base: {
|
|
553
|
+
readonly display: "block";
|
|
554
|
+
readonly "font-size": "var(--ui-text-sm)";
|
|
555
|
+
readonly "font-weight": "500";
|
|
556
|
+
readonly "line-height": "1.25";
|
|
557
|
+
readonly color: "var(--ui-field-label, var(--ui-surface-fg))";
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
readonly "field-hint": {
|
|
561
|
+
readonly base: {
|
|
562
|
+
readonly margin: "0";
|
|
563
|
+
readonly "font-size": "var(--ui-text-sm)";
|
|
564
|
+
readonly "line-height": "1.4";
|
|
565
|
+
readonly color: "var(--ui-field-hint, color-mix(in oklab, var(--ui-surface-fg) 72%, var(--ui-surface)))";
|
|
566
|
+
readonly "&:empty": {
|
|
567
|
+
readonly display: "none";
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
readonly "field-error": {
|
|
572
|
+
readonly base: {
|
|
573
|
+
readonly margin: "0";
|
|
574
|
+
readonly "font-size": "var(--ui-text-sm)";
|
|
575
|
+
readonly "font-weight": "500";
|
|
576
|
+
readonly "line-height": "1.4";
|
|
577
|
+
readonly color: "var(--ui-field-error, var(--ui-danger-text, var(--ui-danger)))";
|
|
578
|
+
readonly "&:empty": {
|
|
579
|
+
readonly display: "none";
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
};
|
|
324
583
|
readonly card: {
|
|
325
584
|
readonly base: {
|
|
326
585
|
readonly display: "flex";
|
|
@@ -493,6 +752,133 @@ export declare const defaultAdapter: {
|
|
|
493
752
|
};
|
|
494
753
|
readonly states: Record<"disabled" | "loading" | "active", CssRuleObject>;
|
|
495
754
|
};
|
|
755
|
+
readonly table: {
|
|
756
|
+
readonly base: {
|
|
757
|
+
readonly "--ui-c": "var(--ui-neutral)";
|
|
758
|
+
readonly "--ui-c-text": "var(--ui-neutral-text, var(--ui-neutral))";
|
|
759
|
+
readonly "--ui-on-c": "var(--ui-neutral-fg)";
|
|
760
|
+
readonly "--ui-c-soft": "var(--ui-neutral-soft)";
|
|
761
|
+
readonly "--ui-c-soft-fg": "var(--ui-neutral-soft-fg)";
|
|
762
|
+
readonly width: "100%";
|
|
763
|
+
readonly "border-collapse": "collapse";
|
|
764
|
+
readonly "font-family": "var(--ui-font-sans)";
|
|
765
|
+
readonly "font-size": "var(--ui-text-md)";
|
|
766
|
+
readonly "line-height": "1.25";
|
|
767
|
+
readonly color: "var(--ui-surface-fg)";
|
|
768
|
+
readonly "& caption": {
|
|
769
|
+
readonly "caption-side": "bottom";
|
|
770
|
+
readonly "font-size": "var(--ui-text-sm)";
|
|
771
|
+
readonly color: "color-mix(in oklab, var(--ui-surface-fg) 65%, var(--ui-surface))";
|
|
772
|
+
readonly "padding-block": "0.5rem";
|
|
773
|
+
readonly "text-align": "start";
|
|
774
|
+
};
|
|
775
|
+
readonly "& th, & td": {
|
|
776
|
+
readonly padding: "var(--ui-table-pad-y, 0.5rem) var(--ui-table-pad-x, 0.75rem)";
|
|
777
|
+
readonly "text-align": "start";
|
|
778
|
+
readonly "vertical-align": "top";
|
|
779
|
+
};
|
|
780
|
+
readonly "& thead th": {
|
|
781
|
+
readonly "font-weight": "600";
|
|
782
|
+
readonly "font-size": "var(--ui-text-sm)";
|
|
783
|
+
readonly color: "var(--ui-table-head-fg, var(--ui-surface-fg))";
|
|
784
|
+
readonly "background-color": "var(--ui-table-head-bg, var(--ui-surface))";
|
|
785
|
+
readonly "border-bottom": "2px solid color-mix(in oklab, var(--ui-c) 55%, var(--ui-surface-fg))";
|
|
786
|
+
readonly position: "sticky";
|
|
787
|
+
readonly top: "0";
|
|
788
|
+
};
|
|
789
|
+
readonly "& th[aria-sort]": {
|
|
790
|
+
readonly cursor: "pointer";
|
|
791
|
+
};
|
|
792
|
+
readonly '& th[aria-sort="ascending"]::after, & th[aria-sort="descending"]::after': {
|
|
793
|
+
readonly content: "\"\"";
|
|
794
|
+
readonly display: "inline-block";
|
|
795
|
+
readonly "margin-inline-start": "0.4em";
|
|
796
|
+
readonly "border-inline": "0.3em solid transparent";
|
|
797
|
+
};
|
|
798
|
+
readonly '& th[aria-sort="ascending"]::after': {
|
|
799
|
+
readonly "border-bottom": "0.35em solid currentColor";
|
|
800
|
+
};
|
|
801
|
+
readonly '& th[aria-sort="descending"]::after': {
|
|
802
|
+
readonly "border-top": "0.35em solid currentColor";
|
|
803
|
+
};
|
|
804
|
+
readonly "& tbody tr": {
|
|
805
|
+
readonly "border-bottom": "1px solid var(--ui-table-border, var(--ui-border))";
|
|
806
|
+
readonly transition: "background-color 0.15s ease";
|
|
807
|
+
};
|
|
808
|
+
readonly "& tbody tr:last-child": {
|
|
809
|
+
readonly "border-bottom": "0";
|
|
810
|
+
};
|
|
811
|
+
readonly "& tbody tr:hover": {
|
|
812
|
+
readonly "background-color": "var(--ui-table-row-hover, var(--ui-surface-muted))";
|
|
813
|
+
};
|
|
814
|
+
readonly "& tbody tr.ui-active, & tbody tr[aria-selected='true']": {
|
|
815
|
+
readonly "background-color": "var(--ui-c-soft)";
|
|
816
|
+
readonly color: "var(--ui-c-soft-fg)";
|
|
817
|
+
};
|
|
818
|
+
readonly "& tbody tr.ui-disabled, & tbody tr[aria-disabled='true']": {
|
|
819
|
+
readonly opacity: "0.5";
|
|
820
|
+
};
|
|
821
|
+
readonly "@media (prefers-reduced-motion: reduce)": {
|
|
822
|
+
readonly "& tbody tr": {
|
|
823
|
+
readonly transition: "none";
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
|
|
828
|
+
readonly styles: {
|
|
829
|
+
readonly soft: {
|
|
830
|
+
readonly "& tbody tr:nth-of-type(even)": {
|
|
831
|
+
readonly "background-color": "var(--ui-table-stripe, var(--ui-surface-muted))";
|
|
832
|
+
};
|
|
833
|
+
readonly "& tbody tr.ui-active, & tbody tr[aria-selected='true']": {
|
|
834
|
+
readonly "background-color": "var(--ui-c-soft)";
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
readonly outline: {
|
|
838
|
+
readonly "& th, & td": {
|
|
839
|
+
readonly border: "1px solid var(--ui-table-border, var(--ui-border))";
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
readonly ghost: {
|
|
843
|
+
readonly "& tbody tr": {
|
|
844
|
+
readonly "border-bottom-color": "transparent";
|
|
845
|
+
};
|
|
846
|
+
readonly "& thead th": {
|
|
847
|
+
readonly "border-bottom-color": "color-mix(in oklab, var(--ui-c) 55%, var(--ui-surface-fg))";
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
readonly sizes: {
|
|
852
|
+
readonly sm: {
|
|
853
|
+
readonly "font-size": "var(--ui-text-sm)";
|
|
854
|
+
readonly "--ui-table-pad-y": "0.25rem";
|
|
855
|
+
readonly "--ui-table-pad-x": "0.5rem";
|
|
856
|
+
};
|
|
857
|
+
readonly lg: {
|
|
858
|
+
readonly "font-size": "var(--ui-text-lg)";
|
|
859
|
+
readonly "--ui-table-pad-y": "0.75rem";
|
|
860
|
+
readonly "--ui-table-pad-x": "1rem";
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
readonly states: {
|
|
864
|
+
readonly loading: {
|
|
865
|
+
readonly "& tbody": {
|
|
866
|
+
readonly animation: "ui-pulse 1.2s ease-in-out infinite";
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
readonly "table-wrap": {
|
|
872
|
+
readonly base: {
|
|
873
|
+
readonly "overflow-x": "auto";
|
|
874
|
+
readonly border: "1px solid var(--ui-table-border, var(--ui-border))";
|
|
875
|
+
readonly "border-radius": "var(--ui-radius)";
|
|
876
|
+
readonly "&:focus-visible": {
|
|
877
|
+
readonly outline: "2px solid var(--ui-ring)";
|
|
878
|
+
readonly "outline-offset": "2px";
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
};
|
|
496
882
|
readonly modal: {
|
|
497
883
|
readonly base: {
|
|
498
884
|
readonly position: "fixed";
|
|
@@ -509,7 +895,7 @@ export declare const defaultAdapter: {
|
|
|
509
895
|
readonly margin: "0";
|
|
510
896
|
readonly padding: "1rem";
|
|
511
897
|
readonly border: "0";
|
|
512
|
-
readonly "background-color": "rgb(0 0 0 / 0.5)";
|
|
898
|
+
readonly "background-color": "var(--ui-overlay, rgb(0 0 0 / 0.5))";
|
|
513
899
|
readonly visibility: "hidden";
|
|
514
900
|
readonly opacity: "0";
|
|
515
901
|
readonly "pointer-events": "none";
|
|
@@ -532,7 +918,7 @@ export declare const defaultAdapter: {
|
|
|
532
918
|
readonly "background-color": "transparent";
|
|
533
919
|
};
|
|
534
920
|
readonly soft: {
|
|
535
|
-
readonly "background-color": "rgb(255 255 255 / 0.6)";
|
|
921
|
+
readonly "background-color": "var(--ui-overlay-soft, rgb(255 255 255 / 0.6))";
|
|
536
922
|
readonly "backdrop-filter": "blur(6px)";
|
|
537
923
|
};
|
|
538
924
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../src/default-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,aAAa,EAAe,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../src/default-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,aAAa,EAAe,MAAM,YAAY,CAAC;AAoKrF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAu7BzB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAG1D,CAAC"}
|