@partrunner-ai/ui 2.0.1 → 2.2.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 +29 -0
- package/dist/index.cjs +813 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +434 -2
- package/dist/index.d.ts +434 -2
- package/dist/index.js +788 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/styles/light.css +1044 -0
- package/styles/theme.css +1044 -0
- package/styles/ui.css +1044 -0
package/styles/light.css
CHANGED
|
@@ -2577,6 +2577,12 @@
|
|
|
2577
2577
|
background: var(--pr-surface);
|
|
2578
2578
|
box-shadow: inset 0 0 0 1px var(--pr-border);
|
|
2579
2579
|
}
|
|
2580
|
+
/* A compound table already inside a Card or a TableFrame: the frame is the surface. */
|
|
2581
|
+
.pr-table__scroll--bare {
|
|
2582
|
+
border-radius: 0;
|
|
2583
|
+
background: none;
|
|
2584
|
+
box-shadow: none;
|
|
2585
|
+
}
|
|
2580
2586
|
.pr-table__scroll:focus-visible {
|
|
2581
2587
|
outline: none;
|
|
2582
2588
|
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
@@ -3388,3 +3394,1041 @@ button.pr-stepper__dot:focus-visible {
|
|
|
3388
3394
|
.pr-sheet__title {
|
|
3389
3395
|
letter-spacing: var(--pr-tracking-display, -0.022em);
|
|
3390
3396
|
}
|
|
3397
|
+
|
|
3398
|
+
/* ───────────────────────── PageHeader ───────────────────────── */
|
|
3399
|
+
|
|
3400
|
+
/* Stacks on small screens, spreads title/actions from 640px up. Text colours
|
|
3401
|
+
come from --pr-fg/--pr-fg-muted rather than fixed brand greys: opacity over
|
|
3402
|
+
a themed surface does not produce a legible grey, and the tokens are
|
|
3403
|
+
audited in both themes. */
|
|
3404
|
+
.pr-page-header {
|
|
3405
|
+
display: flex;
|
|
3406
|
+
flex-direction: column;
|
|
3407
|
+
gap: 16px;
|
|
3408
|
+
margin-block-end: 24px;
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
.pr-page-header__text {
|
|
3412
|
+
min-width: 0;
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
.pr-page-header__eyebrow {
|
|
3416
|
+
display: inline-flex;
|
|
3417
|
+
align-items: center;
|
|
3418
|
+
gap: 6px;
|
|
3419
|
+
padding: 4px 10px;
|
|
3420
|
+
border: 1px solid var(--pr-glass-border);
|
|
3421
|
+
border-radius: 999px;
|
|
3422
|
+
background: color-mix(in srgb, var(--pr-surface) 70%, transparent);
|
|
3423
|
+
-webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
3424
|
+
backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
3425
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3426
|
+
font-size: 11px;
|
|
3427
|
+
font-weight: 600;
|
|
3428
|
+
text-transform: uppercase;
|
|
3429
|
+
letter-spacing: 0.14em;
|
|
3430
|
+
color: var(--pr-fg-muted);
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3433
|
+
.pr-page-header__eyebrow + .pr-page-header__title {
|
|
3434
|
+
margin-block-start: 8px;
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
.pr-page-header__title {
|
|
3438
|
+
margin: 0;
|
|
3439
|
+
font-size: 24px;
|
|
3440
|
+
font-weight: 700;
|
|
3441
|
+
letter-spacing: var(--pr-tracking-display, -0.022em);
|
|
3442
|
+
line-height: 1.25;
|
|
3443
|
+
color: var(--pr-fg);
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
.pr-page-header__subtitle {
|
|
3447
|
+
margin: 6px 0 0;
|
|
3448
|
+
font-size: 14px;
|
|
3449
|
+
line-height: 1.375;
|
|
3450
|
+
color: var(--pr-fg-muted);
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
.pr-page-header__actions {
|
|
3454
|
+
display: flex;
|
|
3455
|
+
flex-wrap: wrap;
|
|
3456
|
+
align-items: center;
|
|
3457
|
+
gap: 8px;
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3460
|
+
@media (min-width: 640px) {
|
|
3461
|
+
.pr-page-header {
|
|
3462
|
+
flex-direction: row;
|
|
3463
|
+
align-items: flex-end;
|
|
3464
|
+
justify-content: space-between;
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3467
|
+
.pr-page-header__title {
|
|
3468
|
+
font-size: 30px;
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3471
|
+
|
|
3472
|
+
/* ───────────────────────── StatTile ───────────────────────── */
|
|
3473
|
+
|
|
3474
|
+
/* The tone wash mixes the tone into the current surface, so the tile stays on
|
|
3475
|
+
the semantic surface in both themes instead of sitting on fixed white.
|
|
3476
|
+
The trend chip is the one place with fixed light-theme colours: its 11px
|
|
3477
|
+
text needs AA and the tone foregrounds only clear AA under .dark. */
|
|
3478
|
+
.pr-stat-tile {
|
|
3479
|
+
position: relative;
|
|
3480
|
+
overflow: hidden;
|
|
3481
|
+
padding: 16px;
|
|
3482
|
+
border: 1px solid var(--pr-glass-border);
|
|
3483
|
+
border-radius: var(--pr-radius-md, 0.5rem);
|
|
3484
|
+
background: color-mix(in srgb, var(--pr-surface) 90%, transparent);
|
|
3485
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3486
|
+
transition:
|
|
3487
|
+
transform 200ms var(--pr-ease, ease),
|
|
3488
|
+
box-shadow 200ms var(--pr-ease, ease);
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
.pr-stat-tile:hover {
|
|
3492
|
+
transform: translateY(-2px);
|
|
3493
|
+
box-shadow: var(--pr-shadow-card);
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
.pr-stat-tile--yellow {
|
|
3497
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-yellow-bg));
|
|
3498
|
+
}
|
|
3499
|
+
.pr-stat-tile--amber {
|
|
3500
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-amber-bg));
|
|
3501
|
+
}
|
|
3502
|
+
.pr-stat-tile--blue {
|
|
3503
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-blue-bg));
|
|
3504
|
+
}
|
|
3505
|
+
.pr-stat-tile--purple {
|
|
3506
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-purple-bg));
|
|
3507
|
+
}
|
|
3508
|
+
.pr-stat-tile--green {
|
|
3509
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-green-bg));
|
|
3510
|
+
}
|
|
3511
|
+
.pr-stat-tile--rose {
|
|
3512
|
+
background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-rose-bg));
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
.pr-stat-tile__body {
|
|
3516
|
+
display: flex;
|
|
3517
|
+
align-items: flex-start;
|
|
3518
|
+
justify-content: space-between;
|
|
3519
|
+
gap: 12px;
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
.pr-stat-tile__main {
|
|
3523
|
+
min-width: 0;
|
|
3524
|
+
flex: 1;
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3527
|
+
.pr-stat-tile__label {
|
|
3528
|
+
margin: 0;
|
|
3529
|
+
font-size: 11px;
|
|
3530
|
+
font-weight: 600;
|
|
3531
|
+
text-transform: uppercase;
|
|
3532
|
+
letter-spacing: 0.12em;
|
|
3533
|
+
color: var(--pr-fg-muted);
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
.pr-stat-tile__value {
|
|
3537
|
+
margin: 8px 0 0;
|
|
3538
|
+
font-size: 24px;
|
|
3539
|
+
font-weight: 700;
|
|
3540
|
+
letter-spacing: var(--pr-tracking-display, -0.022em);
|
|
3541
|
+
line-height: 1;
|
|
3542
|
+
color: var(--pr-fg);
|
|
3543
|
+
}
|
|
3544
|
+
|
|
3545
|
+
.pr-stat-tile__hint {
|
|
3546
|
+
margin: 6px 0 0;
|
|
3547
|
+
font-size: 12px;
|
|
3548
|
+
line-height: 1.375;
|
|
3549
|
+
color: var(--pr-fg-muted);
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3552
|
+
.pr-stat-tile__icon {
|
|
3553
|
+
display: flex;
|
|
3554
|
+
flex-shrink: 0;
|
|
3555
|
+
align-items: center;
|
|
3556
|
+
justify-content: center;
|
|
3557
|
+
width: 36px;
|
|
3558
|
+
height: 36px;
|
|
3559
|
+
border-radius: var(--pr-radius-sm, 0.375rem);
|
|
3560
|
+
}
|
|
3561
|
+
|
|
3562
|
+
.pr-stat-tile__icon svg {
|
|
3563
|
+
width: 18px;
|
|
3564
|
+
height: 18px;
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
/* Icon-chip pairs use the audited tone bg/fg pairs. The light-theme tone
|
|
3568
|
+
foregrounds sit below AA for text but only ever paint an 18px icon here,
|
|
3569
|
+
which is governed by the 3:1 non-text minimum. */
|
|
3570
|
+
.pr-stat-tile--yellow .pr-stat-tile__icon {
|
|
3571
|
+
background: var(--pr-tone-yellow-bg);
|
|
3572
|
+
color: var(--pr-tone-yellow-fg);
|
|
3573
|
+
}
|
|
3574
|
+
.pr-stat-tile--amber .pr-stat-tile__icon {
|
|
3575
|
+
background: var(--pr-tone-amber-bg);
|
|
3576
|
+
color: var(--pr-tone-amber-fg);
|
|
3577
|
+
}
|
|
3578
|
+
.pr-stat-tile--blue .pr-stat-tile__icon {
|
|
3579
|
+
background: var(--pr-tone-blue-bg);
|
|
3580
|
+
color: var(--pr-tone-blue-fg);
|
|
3581
|
+
}
|
|
3582
|
+
.pr-stat-tile--purple .pr-stat-tile__icon {
|
|
3583
|
+
background: var(--pr-tone-purple-bg);
|
|
3584
|
+
color: var(--pr-tone-purple-fg);
|
|
3585
|
+
}
|
|
3586
|
+
.pr-stat-tile--green .pr-stat-tile__icon {
|
|
3587
|
+
background: var(--pr-tone-green-bg);
|
|
3588
|
+
color: var(--pr-tone-green-fg);
|
|
3589
|
+
}
|
|
3590
|
+
.pr-stat-tile--rose .pr-stat-tile__icon {
|
|
3591
|
+
background: var(--pr-tone-rose-bg);
|
|
3592
|
+
color: var(--pr-tone-rose-fg);
|
|
3593
|
+
}
|
|
3594
|
+
.pr-stat-tile--neutral .pr-stat-tile__icon {
|
|
3595
|
+
background: var(--pr-border);
|
|
3596
|
+
color: var(--pr-fg-muted);
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
.pr-stat-tile__meta {
|
|
3600
|
+
display: flex;
|
|
3601
|
+
align-items: center;
|
|
3602
|
+
justify-content: space-between;
|
|
3603
|
+
gap: 8px;
|
|
3604
|
+
margin-block-start: 12px;
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3607
|
+
.pr-stat-tile__trend {
|
|
3608
|
+
display: inline-flex;
|
|
3609
|
+
align-items: center;
|
|
3610
|
+
gap: 4px;
|
|
3611
|
+
padding: 2px 8px;
|
|
3612
|
+
border-radius: 999px;
|
|
3613
|
+
font-size: 11px;
|
|
3614
|
+
font-weight: 600;
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
.pr-stat-tile__trend svg {
|
|
3618
|
+
width: 12px;
|
|
3619
|
+
height: 12px;
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3622
|
+
.pr-stat-tile__trend--up {
|
|
3623
|
+
background: #d1fae5;
|
|
3624
|
+
color: #047857;
|
|
3625
|
+
}
|
|
3626
|
+
|
|
3627
|
+
.pr-stat-tile__trend--down {
|
|
3628
|
+
background: #ffe4e6;
|
|
3629
|
+
color: #be123c;
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3632
|
+
.dark .pr-stat-tile__trend--up {
|
|
3633
|
+
background: var(--pr-tone-green-bg);
|
|
3634
|
+
color: var(--pr-tone-green-fg);
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
.dark .pr-stat-tile__trend--down {
|
|
3638
|
+
background: var(--pr-tone-rose-bg);
|
|
3639
|
+
color: var(--pr-tone-rose-fg);
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
.pr-stat-tile__footer {
|
|
3643
|
+
min-width: 0;
|
|
3644
|
+
overflow: hidden;
|
|
3645
|
+
font-size: 11px;
|
|
3646
|
+
color: var(--pr-fg-faint);
|
|
3647
|
+
text-overflow: ellipsis;
|
|
3648
|
+
white-space: nowrap;
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
@media (min-width: 640px) {
|
|
3652
|
+
.pr-stat-tile {
|
|
3653
|
+
padding: 20px;
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
.pr-stat-tile__value {
|
|
3657
|
+
font-size: 28px;
|
|
3658
|
+
}
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
/* ───────────────────────── Toolbar ───────────────────────── */
|
|
3662
|
+
|
|
3663
|
+
/* Glass surface, same recipe as the shell chrome at half the blur: separates
|
|
3664
|
+
from the page background without weight, and follows the theme. */
|
|
3665
|
+
.pr-toolbar {
|
|
3666
|
+
display: flex;
|
|
3667
|
+
flex-wrap: wrap;
|
|
3668
|
+
align-items: center;
|
|
3669
|
+
gap: 8px;
|
|
3670
|
+
padding: 10px 12px;
|
|
3671
|
+
border: 1px solid var(--pr-glass-border);
|
|
3672
|
+
border-radius: var(--pr-radius-md, 0.5rem);
|
|
3673
|
+
background: color-mix(in srgb, var(--pr-surface) 75%, transparent);
|
|
3674
|
+
-webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
3675
|
+
backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
|
|
3676
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3679
|
+
/* ───────────────────────── IconButton ───────────────────────── */
|
|
3680
|
+
|
|
3681
|
+
/* Icon-only button with an accessibility contract: the touch target is at
|
|
3682
|
+
least 44x44 on small screens for every size, and on all screens unless
|
|
3683
|
+
`compact` is set. Desktop sizes step down visually while the pointer
|
|
3684
|
+
stays coarse. */
|
|
3685
|
+
.pr-icon-btn {
|
|
3686
|
+
display: inline-flex;
|
|
3687
|
+
align-items: center;
|
|
3688
|
+
justify-content: center;
|
|
3689
|
+
min-width: 44px;
|
|
3690
|
+
min-height: 44px;
|
|
3691
|
+
padding: 0;
|
|
3692
|
+
border: none;
|
|
3693
|
+
border-radius: var(--pr-radius-md, 0.5rem);
|
|
3694
|
+
background: transparent;
|
|
3695
|
+
cursor: pointer;
|
|
3696
|
+
transition:
|
|
3697
|
+
background-color 160ms var(--pr-ease, ease),
|
|
3698
|
+
color 160ms var(--pr-ease, ease),
|
|
3699
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
3700
|
+
}
|
|
3701
|
+
|
|
3702
|
+
.pr-icon-btn:focus-visible {
|
|
3703
|
+
outline: none;
|
|
3704
|
+
box-shadow: var(--pr-focus-ring);
|
|
3705
|
+
}
|
|
3706
|
+
|
|
3707
|
+
.pr-icon-btn:active:not(:disabled) {
|
|
3708
|
+
transform: scale(0.96);
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3711
|
+
.pr-icon-btn:disabled,
|
|
3712
|
+
.pr-icon-btn[aria-disabled='true'] {
|
|
3713
|
+
opacity: 0.6;
|
|
3714
|
+
cursor: not-allowed;
|
|
3715
|
+
pointer-events: none;
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
@media (min-width: 640px) {
|
|
3719
|
+
.pr-icon-btn--sm {
|
|
3720
|
+
min-width: 36px;
|
|
3721
|
+
min-height: 36px;
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
.pr-icon-btn--md {
|
|
3725
|
+
min-width: 40px;
|
|
3726
|
+
min-height: 40px;
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
.pr-icon-btn--lg {
|
|
3730
|
+
min-width: 48px;
|
|
3731
|
+
min-height: 48px;
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3734
|
+
.pr-icon-btn--compact {
|
|
3735
|
+
min-width: 32px;
|
|
3736
|
+
min-height: 32px;
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
.pr-icon-btn svg {
|
|
3741
|
+
width: 18px;
|
|
3742
|
+
height: 18px;
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
.pr-icon-btn--default,
|
|
3746
|
+
.pr-icon-btn--subtle {
|
|
3747
|
+
color: var(--pr-fg-muted);
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
.pr-icon-btn--default:hover,
|
|
3751
|
+
.pr-icon-btn--subtle:hover {
|
|
3752
|
+
background: var(--pr-glass-bg);
|
|
3753
|
+
color: var(--pr-fg);
|
|
3754
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
.pr-icon-btn--ghost {
|
|
3758
|
+
color: var(--pr-fg-muted);
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
.pr-icon-btn--ghost:hover {
|
|
3762
|
+
background: var(--pr-glass-bg);
|
|
3763
|
+
color: var(--pr-fg);
|
|
3764
|
+
}
|
|
3765
|
+
|
|
3766
|
+
.pr-icon-btn--primary {
|
|
3767
|
+
color: var(--pr-accent);
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3770
|
+
.pr-icon-btn--primary:hover {
|
|
3771
|
+
background: color-mix(in srgb, var(--pr-accent) 15%, transparent);
|
|
3772
|
+
color: var(--pr-accent-strong);
|
|
3773
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3776
|
+
.pr-icon-btn--danger {
|
|
3777
|
+
color: var(--pr-danger);
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3780
|
+
.pr-icon-btn--danger:hover {
|
|
3781
|
+
background: color-mix(in srgb, var(--pr-danger) 12%, transparent);
|
|
3782
|
+
color: var(--pr-danger);
|
|
3783
|
+
box-shadow: var(--pr-shadow-sm);
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3786
|
+
/* ───────────────────────── ConfirmDialog ───────────────────────── */
|
|
3787
|
+
|
|
3788
|
+
.pr-confirm-dialog__actions {
|
|
3789
|
+
display: flex;
|
|
3790
|
+
flex-direction: column-reverse;
|
|
3791
|
+
gap: 8px;
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3794
|
+
.pr-confirm-dialog__icon-row {
|
|
3795
|
+
display: flex;
|
|
3796
|
+
justify-content: center;
|
|
3797
|
+
padding-block: 8px;
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
.pr-confirm-dialog__icon {
|
|
3801
|
+
display: inline-flex;
|
|
3802
|
+
align-items: center;
|
|
3803
|
+
justify-content: center;
|
|
3804
|
+
width: 48px;
|
|
3805
|
+
height: 48px;
|
|
3806
|
+
border-radius: var(--pr-radius-md, 0.5rem);
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
.pr-confirm-dialog__icon svg {
|
|
3810
|
+
width: 24px;
|
|
3811
|
+
height: 24px;
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3814
|
+
.pr-confirm-dialog__icon--danger {
|
|
3815
|
+
background: color-mix(in srgb, var(--pr-danger) 12%, transparent);
|
|
3816
|
+
color: var(--pr-danger);
|
|
3817
|
+
}
|
|
3818
|
+
|
|
3819
|
+
.pr-confirm-dialog__icon--accent {
|
|
3820
|
+
background: var(--pr-tone-yellow-bg);
|
|
3821
|
+
color: var(--pr-tone-yellow-fg);
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
@media (min-width: 640px) {
|
|
3825
|
+
.pr-confirm-dialog__actions {
|
|
3826
|
+
flex-direction: row;
|
|
3827
|
+
justify-content: flex-end;
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
|
|
3831
|
+
/* ───────────────────────── Page ───────────────────────── */
|
|
3832
|
+
|
|
3833
|
+
/* The page container: Crystal rhythm (16 → 24 → 32px), centred and capped, with
|
|
3834
|
+
one vertical stack between its children so screens stop deciding padding and
|
|
3835
|
+
width per file. */
|
|
3836
|
+
.pr-page {
|
|
3837
|
+
display: flex;
|
|
3838
|
+
flex-direction: column;
|
|
3839
|
+
gap: 24px;
|
|
3840
|
+
width: 100%;
|
|
3841
|
+
max-width: 1280px;
|
|
3842
|
+
margin-inline: auto;
|
|
3843
|
+
padding: 16px;
|
|
3844
|
+
color: var(--pr-fg);
|
|
3845
|
+
font-family: var(--pr-font-body, inherit);
|
|
3846
|
+
}
|
|
3847
|
+
.pr-page--narrow { max-width: 768px; }
|
|
3848
|
+
.pr-page--wide { max-width: 1536px; }
|
|
3849
|
+
.pr-page--full { max-width: none; }
|
|
3850
|
+
/* The page's gap is the rhythm. A header directly inside it drops its own bottom
|
|
3851
|
+
margin, or the recipe's first step would sit 48px above the KPIs; a header
|
|
3852
|
+
outside a Page keeps the margin it always had. */
|
|
3853
|
+
.pr-page > .pr-page-header { margin-block-end: 0; }
|
|
3854
|
+
|
|
3855
|
+
@media (min-width: 640px) {
|
|
3856
|
+
.pr-page { padding: 24px; }
|
|
3857
|
+
}
|
|
3858
|
+
@media (min-width: 1024px) {
|
|
3859
|
+
.pr-page { padding: 32px; }
|
|
3860
|
+
}
|
|
3861
|
+
|
|
3862
|
+
/* ───────────────────────── SectionHeading ───────────────────────── */
|
|
3863
|
+
|
|
3864
|
+
/* The step below PageHeader: an 18px Barlow title (the display face starts at
|
|
3865
|
+
24px), an optional eyebrow and description, actions on the end edge. */
|
|
3866
|
+
.pr-section-heading {
|
|
3867
|
+
display: flex;
|
|
3868
|
+
flex-direction: column;
|
|
3869
|
+
gap: 12px;
|
|
3870
|
+
color: var(--pr-fg);
|
|
3871
|
+
font-family: var(--pr-font-body, inherit);
|
|
3872
|
+
}
|
|
3873
|
+
.pr-section-heading__text { min-width: 0; }
|
|
3874
|
+
.pr-section-heading__eyebrow {
|
|
3875
|
+
margin: 0 0 6px;
|
|
3876
|
+
font-size: 11px;
|
|
3877
|
+
font-weight: 600;
|
|
3878
|
+
letter-spacing: 0.12em;
|
|
3879
|
+
text-transform: uppercase;
|
|
3880
|
+
color: var(--pr-fg-muted);
|
|
3881
|
+
}
|
|
3882
|
+
.pr-section-heading__title {
|
|
3883
|
+
margin: 0;
|
|
3884
|
+
font-family: var(--pr-font-body, inherit);
|
|
3885
|
+
font-size: 18px;
|
|
3886
|
+
font-weight: 650;
|
|
3887
|
+
line-height: 1.3;
|
|
3888
|
+
letter-spacing: var(--pr-tracking-display, -0.022em);
|
|
3889
|
+
color: var(--pr-fg);
|
|
3890
|
+
text-wrap: balance;
|
|
3891
|
+
}
|
|
3892
|
+
.pr-section-heading__description {
|
|
3893
|
+
margin: 4px 0 0;
|
|
3894
|
+
font-size: 14px;
|
|
3895
|
+
line-height: 1.4;
|
|
3896
|
+
color: var(--pr-fg-muted);
|
|
3897
|
+
text-wrap: pretty;
|
|
3898
|
+
}
|
|
3899
|
+
.pr-section-heading__actions {
|
|
3900
|
+
display: flex;
|
|
3901
|
+
flex-wrap: wrap;
|
|
3902
|
+
align-items: center;
|
|
3903
|
+
gap: 8px;
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
@media (min-width: 640px) {
|
|
3907
|
+
.pr-section-heading {
|
|
3908
|
+
flex-direction: row;
|
|
3909
|
+
align-items: flex-end;
|
|
3910
|
+
justify-content: space-between;
|
|
3911
|
+
}
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3914
|
+
/* ───────────────────────── StatTileGrid ───────────────────────── */
|
|
3915
|
+
|
|
3916
|
+
/* One column on a phone, two on a tablet, then the requested count. */
|
|
3917
|
+
.pr-stat-grid {
|
|
3918
|
+
display: grid;
|
|
3919
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3920
|
+
gap: 12px;
|
|
3921
|
+
}
|
|
3922
|
+
|
|
3923
|
+
@media (min-width: 640px) {
|
|
3924
|
+
.pr-stat-grid {
|
|
3925
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3926
|
+
gap: 16px;
|
|
3927
|
+
}
|
|
3928
|
+
}
|
|
3929
|
+
@media (min-width: 1024px) {
|
|
3930
|
+
.pr-stat-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
3931
|
+
.pr-stat-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
3932
|
+
.pr-stat-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
3933
|
+
.pr-stat-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
3934
|
+
.pr-stat-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
/* ───────────────────────── Toolbar parts ───────────────────────── */
|
|
3938
|
+
|
|
3939
|
+
.pr-toolbar__group {
|
|
3940
|
+
display: inline-flex;
|
|
3941
|
+
flex-wrap: wrap;
|
|
3942
|
+
align-items: center;
|
|
3943
|
+
gap: 8px;
|
|
3944
|
+
}
|
|
3945
|
+
/* Pushes what follows to the end edge from 640px up. Below, the bar wraps and
|
|
3946
|
+
the gap would only add a blank line. */
|
|
3947
|
+
.pr-toolbar__spacer {
|
|
3948
|
+
display: none;
|
|
3949
|
+
flex: 1 1 0;
|
|
3950
|
+
min-width: 0;
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
@media (min-width: 640px) {
|
|
3954
|
+
.pr-toolbar__spacer { display: block; }
|
|
3955
|
+
}
|
|
3956
|
+
|
|
3957
|
+
/* ───────────────────────── SearchField ───────────────────────── */
|
|
3958
|
+
|
|
3959
|
+
/* The width lives on the field wrapper (`containerClassName`), never on the
|
|
3960
|
+
input: with a leading icon the wrapper is the layout box. */
|
|
3961
|
+
.pr-search-field { width: 100%; }
|
|
3962
|
+
|
|
3963
|
+
@media (min-width: 640px) {
|
|
3964
|
+
.pr-search-field:not(.pr-search-field--block) { width: 16rem; }
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
/* ───────────────────────── FilterChip ───────────────────────── */
|
|
3968
|
+
|
|
3969
|
+
.pr-filter-chip-row {
|
|
3970
|
+
display: flex;
|
|
3971
|
+
flex-wrap: wrap;
|
|
3972
|
+
align-items: center;
|
|
3973
|
+
gap: 8px;
|
|
3974
|
+
}
|
|
3975
|
+
|
|
3976
|
+
/* One tap filters the list. Quiet outline at rest; the active chip is ink on
|
|
3977
|
+
the page, and the count rides the label in tabular figures. 40px tall: the
|
|
3978
|
+
chip is a control, so it keeps the package's interaction floor. */
|
|
3979
|
+
.pr-filter-chip {
|
|
3980
|
+
display: inline-flex;
|
|
3981
|
+
align-items: center;
|
|
3982
|
+
gap: 6px;
|
|
3983
|
+
min-height: 40px;
|
|
3984
|
+
padding: 0 12px;
|
|
3985
|
+
border: 1px solid var(--pr-border);
|
|
3986
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
3987
|
+
background: var(--pr-surface);
|
|
3988
|
+
color: var(--pr-fg-muted);
|
|
3989
|
+
font-family: var(--pr-font-body, inherit);
|
|
3990
|
+
font-size: 13px;
|
|
3991
|
+
font-weight: 600;
|
|
3992
|
+
line-height: 1;
|
|
3993
|
+
white-space: nowrap;
|
|
3994
|
+
cursor: pointer;
|
|
3995
|
+
transition:
|
|
3996
|
+
background-color 160ms var(--pr-ease, ease),
|
|
3997
|
+
border-color 160ms var(--pr-ease, ease),
|
|
3998
|
+
color 160ms var(--pr-ease, ease),
|
|
3999
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
4000
|
+
}
|
|
4001
|
+
.pr-filter-chip:hover:not(:disabled) {
|
|
4002
|
+
border-color: var(--pr-border-strong);
|
|
4003
|
+
color: var(--pr-fg);
|
|
4004
|
+
}
|
|
4005
|
+
.pr-filter-chip:focus-visible {
|
|
4006
|
+
outline: none;
|
|
4007
|
+
box-shadow: var(--pr-focus-ring);
|
|
4008
|
+
}
|
|
4009
|
+
.pr-filter-chip[aria-pressed='true'] {
|
|
4010
|
+
background: var(--pr-fg);
|
|
4011
|
+
border-color: var(--pr-fg);
|
|
4012
|
+
color: var(--pr-bg);
|
|
4013
|
+
}
|
|
4014
|
+
.pr-filter-chip:disabled {
|
|
4015
|
+
opacity: 0.6;
|
|
4016
|
+
cursor: not-allowed;
|
|
4017
|
+
}
|
|
4018
|
+
.pr-filter-chip__dot,
|
|
4019
|
+
.pr-filter-chip__icon { flex: 0 0 auto; }
|
|
4020
|
+
.pr-filter-chip__count {
|
|
4021
|
+
font-size: 12px;
|
|
4022
|
+
font-weight: 600;
|
|
4023
|
+
font-variant-numeric: tabular-nums;
|
|
4024
|
+
color: var(--pr-fg-faint);
|
|
4025
|
+
}
|
|
4026
|
+
.pr-filter-chip[aria-pressed='true'] .pr-filter-chip__count {
|
|
4027
|
+
color: inherit;
|
|
4028
|
+
opacity: 0.7;
|
|
4029
|
+
}
|
|
4030
|
+
|
|
4031
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4032
|
+
.pr-filter-chip { transition: none; }
|
|
4033
|
+
}
|
|
4034
|
+
|
|
4035
|
+
/* ───────────────────────── SegmentedControl ───────────────────────── */
|
|
4036
|
+
|
|
4037
|
+
/* A quiet track with the checked option lifted onto the surface. Each option
|
|
4038
|
+
is a 40px control (44 for `lg`) and the track adds nothing around them, so
|
|
4039
|
+
the control is exactly as tall as the inputs and filter triggers beside it in
|
|
4040
|
+
a toolbar row. The unchecked options show the track wash; the checked one
|
|
4041
|
+
sits on the surface with the track's own radius. */
|
|
4042
|
+
.pr-segmented {
|
|
4043
|
+
display: inline-flex;
|
|
4044
|
+
align-items: stretch;
|
|
4045
|
+
gap: 0;
|
|
4046
|
+
padding: 0;
|
|
4047
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
4048
|
+
background: color-mix(in srgb, var(--pr-fg) 6%, transparent);
|
|
4049
|
+
color: var(--pr-fg);
|
|
4050
|
+
font-family: var(--pr-font-body, inherit);
|
|
4051
|
+
}
|
|
4052
|
+
.pr-segmented--block { display: flex; width: 100%; }
|
|
4053
|
+
.pr-segmented__option {
|
|
4054
|
+
position: relative;
|
|
4055
|
+
display: inline-flex;
|
|
4056
|
+
align-items: center;
|
|
4057
|
+
justify-content: center;
|
|
4058
|
+
gap: 6px;
|
|
4059
|
+
min-height: 40px;
|
|
4060
|
+
padding: 0 14px;
|
|
4061
|
+
border: 1px solid transparent;
|
|
4062
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
4063
|
+
background: transparent;
|
|
4064
|
+
color: var(--pr-fg-muted);
|
|
4065
|
+
font: inherit;
|
|
4066
|
+
font-size: 13px;
|
|
4067
|
+
font-weight: 600;
|
|
4068
|
+
line-height: 1;
|
|
4069
|
+
white-space: nowrap;
|
|
4070
|
+
cursor: pointer;
|
|
4071
|
+
transition:
|
|
4072
|
+
background-color 160ms var(--pr-ease, ease),
|
|
4073
|
+
border-color 160ms var(--pr-ease, ease),
|
|
4074
|
+
color 160ms var(--pr-ease, ease),
|
|
4075
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
4076
|
+
}
|
|
4077
|
+
.pr-segmented--lg .pr-segmented__option {
|
|
4078
|
+
min-height: 44px;
|
|
4079
|
+
padding: 0 16px;
|
|
4080
|
+
font-size: 14px;
|
|
4081
|
+
}
|
|
4082
|
+
.pr-segmented--block .pr-segmented__option { flex: 1 1 0; }
|
|
4083
|
+
.pr-segmented__option:hover:not(:disabled) { color: var(--pr-fg); }
|
|
4084
|
+
.pr-segmented__option[aria-checked='true'] {
|
|
4085
|
+
background: var(--pr-surface);
|
|
4086
|
+
border-color: var(--pr-border);
|
|
4087
|
+
color: var(--pr-fg);
|
|
4088
|
+
box-shadow: var(--pr-shadow-xs);
|
|
4089
|
+
}
|
|
4090
|
+
.pr-segmented__option:focus-visible {
|
|
4091
|
+
z-index: 1;
|
|
4092
|
+
outline: none;
|
|
4093
|
+
box-shadow: var(--pr-focus-ring);
|
|
4094
|
+
}
|
|
4095
|
+
.pr-segmented__option:disabled {
|
|
4096
|
+
opacity: 0.5;
|
|
4097
|
+
cursor: not-allowed;
|
|
4098
|
+
}
|
|
4099
|
+
.pr-segmented__icon { flex: 0 0 auto; }
|
|
4100
|
+
.pr-segmented__count {
|
|
4101
|
+
font-size: 12px;
|
|
4102
|
+
font-weight: 600;
|
|
4103
|
+
font-variant-numeric: tabular-nums;
|
|
4104
|
+
color: var(--pr-fg-faint);
|
|
4105
|
+
}
|
|
4106
|
+
.pr-segmented__option[aria-checked='true'] .pr-segmented__count { color: var(--pr-fg-muted); }
|
|
4107
|
+
|
|
4108
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4109
|
+
.pr-segmented__option { transition: none; }
|
|
4110
|
+
}
|
|
4111
|
+
|
|
4112
|
+
/* ───────────────────────── StatusDot ───────────────────────── */
|
|
4113
|
+
|
|
4114
|
+
/* The colour a Badge of the same tone paints, as a dot beside visible text. */
|
|
4115
|
+
.pr-status-dot {
|
|
4116
|
+
display: inline-block;
|
|
4117
|
+
flex: 0 0 auto;
|
|
4118
|
+
width: 8px;
|
|
4119
|
+
height: 8px;
|
|
4120
|
+
border-radius: 999px;
|
|
4121
|
+
background: var(--pr-fg-faint);
|
|
4122
|
+
}
|
|
4123
|
+
.pr-status-dot--md { width: 10px; height: 10px; }
|
|
4124
|
+
.pr-status-dot--neutral { background: var(--pr-fg-faint); }
|
|
4125
|
+
.pr-status-dot--yellow { background: var(--pr-tone-yellow-fg); }
|
|
4126
|
+
.pr-status-dot--blue { background: var(--pr-tone-blue-fg); }
|
|
4127
|
+
.pr-status-dot--amber { background: var(--pr-tone-amber-fg); }
|
|
4128
|
+
.pr-status-dot--purple { background: var(--pr-tone-purple-fg); }
|
|
4129
|
+
.pr-status-dot--green { background: var(--pr-tone-green-fg); }
|
|
4130
|
+
.pr-status-dot--rose { background: var(--pr-tone-rose-fg); }
|
|
4131
|
+
.pr-status-dot--danger { background: var(--pr-danger); }
|
|
4132
|
+
.pr-status-dot--success { background: var(--pr-success); }
|
|
4133
|
+
.pr-status-dot--warning { background: var(--pr-warning); }
|
|
4134
|
+
.pr-status-dot--info { background: var(--pr-info); }
|
|
4135
|
+
|
|
4136
|
+
/* ───────────────────────── IconTile ───────────────────────── */
|
|
4137
|
+
|
|
4138
|
+
/* The same chip StatTile paints its icon in, on its own: neutral by default,
|
|
4139
|
+
the audited tone pairs otherwise. Non-text, so the 3:1 floor governs. */
|
|
4140
|
+
.pr-icon-tile {
|
|
4141
|
+
display: inline-flex;
|
|
4142
|
+
flex: 0 0 auto;
|
|
4143
|
+
align-items: center;
|
|
4144
|
+
justify-content: center;
|
|
4145
|
+
width: 36px;
|
|
4146
|
+
height: 36px;
|
|
4147
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
4148
|
+
background: var(--pr-border);
|
|
4149
|
+
color: var(--pr-fg-muted);
|
|
4150
|
+
}
|
|
4151
|
+
.pr-icon-tile--sm { width: 28px; height: 28px; border-radius: var(--pr-radius-xs, 0.375rem); }
|
|
4152
|
+
.pr-icon-tile--lg { width: 44px; height: 44px; border-radius: var(--pr-radius-md, 0.75rem); }
|
|
4153
|
+
.pr-icon-tile--yellow { background: var(--pr-tone-yellow-bg); color: var(--pr-tone-yellow-fg); }
|
|
4154
|
+
.pr-icon-tile--blue { background: var(--pr-tone-blue-bg); color: var(--pr-tone-blue-fg); }
|
|
4155
|
+
.pr-icon-tile--amber { background: var(--pr-tone-amber-bg); color: var(--pr-tone-amber-fg); }
|
|
4156
|
+
.pr-icon-tile--purple { background: var(--pr-tone-purple-bg); color: var(--pr-tone-purple-fg); }
|
|
4157
|
+
.pr-icon-tile--green { background: var(--pr-tone-green-bg); color: var(--pr-tone-green-fg); }
|
|
4158
|
+
.pr-icon-tile--rose { background: var(--pr-tone-rose-bg); color: var(--pr-tone-rose-fg); }
|
|
4159
|
+
.pr-icon-tile--danger {
|
|
4160
|
+
background: color-mix(in srgb, var(--pr-danger) 14%, transparent);
|
|
4161
|
+
color: var(--pr-danger);
|
|
4162
|
+
}
|
|
4163
|
+
.pr-icon-tile--success {
|
|
4164
|
+
background: color-mix(in srgb, var(--pr-success) 14%, transparent);
|
|
4165
|
+
color: var(--pr-success);
|
|
4166
|
+
}
|
|
4167
|
+
.pr-icon-tile--warning {
|
|
4168
|
+
background: color-mix(in srgb, var(--pr-warning) 14%, transparent);
|
|
4169
|
+
color: var(--pr-warning);
|
|
4170
|
+
}
|
|
4171
|
+
.pr-icon-tile--info {
|
|
4172
|
+
background: color-mix(in srgb, var(--pr-info) 14%, transparent);
|
|
4173
|
+
color: var(--pr-info);
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4176
|
+
/* ───────────────────────── Avatar ───────────────────────── */
|
|
4177
|
+
|
|
4178
|
+
/* A person by initials in a stable tint. The root is the named image; the
|
|
4179
|
+
initials inside are decoration. */
|
|
4180
|
+
.pr-avatar {
|
|
4181
|
+
position: relative;
|
|
4182
|
+
display: inline-flex;
|
|
4183
|
+
flex: 0 0 auto;
|
|
4184
|
+
align-items: center;
|
|
4185
|
+
justify-content: center;
|
|
4186
|
+
overflow: hidden;
|
|
4187
|
+
width: 24px;
|
|
4188
|
+
height: 24px;
|
|
4189
|
+
border-radius: 999px;
|
|
4190
|
+
background: var(--pr-tone-blue-bg);
|
|
4191
|
+
color: var(--pr-tone-blue-fg);
|
|
4192
|
+
font-family: var(--pr-font-body, inherit);
|
|
4193
|
+
font-size: 9px;
|
|
4194
|
+
font-weight: 700;
|
|
4195
|
+
line-height: 1;
|
|
4196
|
+
letter-spacing: 0.02em;
|
|
4197
|
+
user-select: none;
|
|
4198
|
+
}
|
|
4199
|
+
.pr-avatar--xs { width: 20px; height: 20px; font-size: 8px; }
|
|
4200
|
+
.pr-avatar--md { width: 32px; height: 32px; font-size: 11px; }
|
|
4201
|
+
.pr-avatar--lg { width: 40px; height: 40px; font-size: 13px; }
|
|
4202
|
+
.pr-avatar--yellow { background: var(--pr-tone-yellow-bg); color: var(--pr-tone-yellow-fg); }
|
|
4203
|
+
.pr-avatar--blue { background: var(--pr-tone-blue-bg); color: var(--pr-tone-blue-fg); }
|
|
4204
|
+
.pr-avatar--amber { background: var(--pr-tone-amber-bg); color: var(--pr-tone-amber-fg); }
|
|
4205
|
+
.pr-avatar--purple { background: var(--pr-tone-purple-bg); color: var(--pr-tone-purple-fg); }
|
|
4206
|
+
.pr-avatar--green { background: var(--pr-tone-green-bg); color: var(--pr-tone-green-fg); }
|
|
4207
|
+
.pr-avatar--rose { background: var(--pr-tone-rose-bg); color: var(--pr-tone-rose-fg); }
|
|
4208
|
+
.pr-avatar__image {
|
|
4209
|
+
display: block;
|
|
4210
|
+
width: 100%;
|
|
4211
|
+
height: 100%;
|
|
4212
|
+
object-fit: cover;
|
|
4213
|
+
}
|
|
4214
|
+
.pr-avatar__initials { display: inline-block; }
|
|
4215
|
+
|
|
4216
|
+
/* ───────────────────────── TableFrame ───────────────────────── */
|
|
4217
|
+
|
|
4218
|
+
/* A strict assembly of Card, CardHeader and a bleeding CardContent. `clip`
|
|
4219
|
+
rounds the corners without making the frame a scroll container, so a pinned
|
|
4220
|
+
header inside a capped table keeps working. */
|
|
4221
|
+
.pr-table-frame { position: relative; }
|
|
4222
|
+
.pr-card.pr-table-frame { overflow: clip; }
|
|
4223
|
+
.pr-table-frame__header { align-items: center; }
|
|
4224
|
+
.pr-table-frame__title {
|
|
4225
|
+
display: inline-flex;
|
|
4226
|
+
align-items: center;
|
|
4227
|
+
gap: 8px;
|
|
4228
|
+
min-width: 0;
|
|
4229
|
+
max-width: 100%;
|
|
4230
|
+
}
|
|
4231
|
+
.pr-table-frame__title-text {
|
|
4232
|
+
min-width: 0;
|
|
4233
|
+
overflow: hidden;
|
|
4234
|
+
text-overflow: ellipsis;
|
|
4235
|
+
white-space: nowrap;
|
|
4236
|
+
}
|
|
4237
|
+
.pr-table-frame__icon {
|
|
4238
|
+
flex: 0 0 auto;
|
|
4239
|
+
color: var(--pr-fg-muted);
|
|
4240
|
+
}
|
|
4241
|
+
.pr-table-frame__count { font-variant-numeric: tabular-nums; }
|
|
4242
|
+
/* The header and the rows meet on one line; a frame with no header starts at the rows. */
|
|
4243
|
+
.pr-table-frame__body { border-top: 1px solid var(--pr-border); }
|
|
4244
|
+
.pr-table-frame__body:first-child { border-top: 0; }
|
|
4245
|
+
/* Any table inside the frame drops its own surface: the frame is the border. */
|
|
4246
|
+
.pr-table-frame .pr-table__shell {
|
|
4247
|
+
border: 0;
|
|
4248
|
+
border-radius: 0;
|
|
4249
|
+
background: none;
|
|
4250
|
+
}
|
|
4251
|
+
.pr-table-frame .pr-table__scroll--compound {
|
|
4252
|
+
border-radius: 0;
|
|
4253
|
+
background: none;
|
|
4254
|
+
box-shadow: none;
|
|
4255
|
+
}
|
|
4256
|
+
/* The bleeding body ends with a negative margin the footer cancels, so the two
|
|
4257
|
+
meet exactly; the footer then bleeds to the same edges. */
|
|
4258
|
+
.pr-table-frame__footer {
|
|
4259
|
+
margin-top: var(--pr-card-pad, 0px);
|
|
4260
|
+
margin-inline: calc(-1 * var(--pr-card-pad, 0px));
|
|
4261
|
+
margin-bottom: calc(-1 * var(--pr-card-pad, 0px));
|
|
4262
|
+
padding: 12px var(--pr-card-pad, 16px);
|
|
4263
|
+
border-top: 1px solid var(--pr-border);
|
|
4264
|
+
background: var(--pr-surface);
|
|
4265
|
+
}
|
|
4266
|
+
|
|
4267
|
+
/* The compound sibling of `Table loading`: same rows, announced once. */
|
|
4268
|
+
.pr-table-skeleton { display: block; }
|
|
4269
|
+
|
|
4270
|
+
/* ───────────────────────── DateRangeFilter ───────────────────────── */
|
|
4271
|
+
|
|
4272
|
+
/* One pill names the window of a list and opens the presets plus a calendar
|
|
4273
|
+
for a custom range. The trigger shares its box with the MultiSelect filter
|
|
4274
|
+
so a toolbar row aligns; an active window takes the same yellow tint. */
|
|
4275
|
+
.pr-date-range {
|
|
4276
|
+
position: relative;
|
|
4277
|
+
display: inline-flex;
|
|
4278
|
+
min-width: 0;
|
|
4279
|
+
font-family: var(--pr-font-body, inherit);
|
|
4280
|
+
}
|
|
4281
|
+
.pr-date-range__trigger {
|
|
4282
|
+
display: inline-flex;
|
|
4283
|
+
align-items: center;
|
|
4284
|
+
gap: 8px;
|
|
4285
|
+
min-height: 40px;
|
|
4286
|
+
padding: 0 10px;
|
|
4287
|
+
border: 1px solid var(--pr-border);
|
|
4288
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
4289
|
+
background: var(--pr-surface);
|
|
4290
|
+
color: var(--pr-fg);
|
|
4291
|
+
font-size: 12px;
|
|
4292
|
+
font-weight: 500;
|
|
4293
|
+
line-height: 1;
|
|
4294
|
+
white-space: nowrap;
|
|
4295
|
+
cursor: pointer;
|
|
4296
|
+
transition-property: border-color, box-shadow, background-color;
|
|
4297
|
+
transition-duration: 160ms;
|
|
4298
|
+
transition-timing-function: var(--pr-ease, ease);
|
|
4299
|
+
}
|
|
4300
|
+
.pr-date-range__trigger--md {
|
|
4301
|
+
padding: 0 12px;
|
|
4302
|
+
font-size: 14px;
|
|
4303
|
+
}
|
|
4304
|
+
.pr-date-range__trigger:hover { border-color: var(--pr-border-strong); }
|
|
4305
|
+
.pr-date-range__trigger--active {
|
|
4306
|
+
background: var(--pr-tone-yellow-bg);
|
|
4307
|
+
border-color: var(--pr-tone-yellow-border);
|
|
4308
|
+
font-weight: 650;
|
|
4309
|
+
}
|
|
4310
|
+
.pr-date-range__trigger--open,
|
|
4311
|
+
.pr-date-range__trigger:focus-visible {
|
|
4312
|
+
outline: none;
|
|
4313
|
+
border-color: var(--pr-accent-strong);
|
|
4314
|
+
box-shadow: var(--pr-focus-ring);
|
|
4315
|
+
}
|
|
4316
|
+
.pr-date-range__icon,
|
|
4317
|
+
.pr-date-range__chevron {
|
|
4318
|
+
flex: 0 0 auto;
|
|
4319
|
+
color: var(--pr-fg-faint);
|
|
4320
|
+
}
|
|
4321
|
+
.pr-date-range__trigger--active .pr-date-range__icon { color: var(--pr-fg-muted); }
|
|
4322
|
+
.pr-date-range__chevron { transition: transform 160ms var(--pr-ease, ease); }
|
|
4323
|
+
.pr-date-range__trigger--open .pr-date-range__chevron { transform: rotate(180deg); }
|
|
4324
|
+
.pr-date-range__value {
|
|
4325
|
+
min-width: 0;
|
|
4326
|
+
overflow: hidden;
|
|
4327
|
+
text-overflow: ellipsis;
|
|
4328
|
+
white-space: nowrap;
|
|
4329
|
+
}
|
|
4330
|
+
/* The panel owns its inset (popover padding is `none`): the calendar is 348px wide. */
|
|
4331
|
+
.pr-date-range__content {
|
|
4332
|
+
width: min(372px, calc(100vw - 16px));
|
|
4333
|
+
padding: 6px;
|
|
4334
|
+
}
|
|
4335
|
+
.pr-date-range__presets {
|
|
4336
|
+
display: flex;
|
|
4337
|
+
flex-direction: column;
|
|
4338
|
+
gap: 2px;
|
|
4339
|
+
padding: 2px;
|
|
4340
|
+
}
|
|
4341
|
+
.pr-date-range__preset {
|
|
4342
|
+
display: flex;
|
|
4343
|
+
align-items: center;
|
|
4344
|
+
justify-content: space-between;
|
|
4345
|
+
gap: 12px;
|
|
4346
|
+
width: 100%;
|
|
4347
|
+
min-height: 40px;
|
|
4348
|
+
padding: 0 10px;
|
|
4349
|
+
border: 0;
|
|
4350
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
4351
|
+
background: transparent;
|
|
4352
|
+
color: var(--pr-fg-muted);
|
|
4353
|
+
font: inherit;
|
|
4354
|
+
font-size: 14px;
|
|
4355
|
+
text-align: left;
|
|
4356
|
+
cursor: pointer;
|
|
4357
|
+
transition-property: background-color, color;
|
|
4358
|
+
transition-duration: 160ms;
|
|
4359
|
+
transition-timing-function: var(--pr-ease, ease);
|
|
4360
|
+
}
|
|
4361
|
+
.pr-date-range__preset:hover {
|
|
4362
|
+
background: var(--pr-surface);
|
|
4363
|
+
color: var(--pr-fg);
|
|
4364
|
+
}
|
|
4365
|
+
.pr-date-range__preset:focus-visible {
|
|
4366
|
+
outline: none;
|
|
4367
|
+
box-shadow: var(--pr-focus-ring);
|
|
4368
|
+
}
|
|
4369
|
+
.pr-date-range__preset[aria-pressed='true'] {
|
|
4370
|
+
color: var(--pr-fg);
|
|
4371
|
+
font-weight: 650;
|
|
4372
|
+
}
|
|
4373
|
+
/* A preset whose range fails the invariant or the limits stays visible, muted. */
|
|
4374
|
+
.pr-date-range__preset:disabled {
|
|
4375
|
+
opacity: 0.5;
|
|
4376
|
+
cursor: not-allowed;
|
|
4377
|
+
}
|
|
4378
|
+
.pr-date-range__trigger[data-invalid] { border-style: dashed; }
|
|
4379
|
+
.pr-date-range__check {
|
|
4380
|
+
flex: 0 0 auto;
|
|
4381
|
+
color: var(--pr-fg);
|
|
4382
|
+
}
|
|
4383
|
+
.pr-date-range__custom {
|
|
4384
|
+
margin-top: 6px;
|
|
4385
|
+
padding: 10px 6px 6px;
|
|
4386
|
+
border-top: 1px solid var(--pr-border);
|
|
4387
|
+
}
|
|
4388
|
+
.pr-date-range__custom-title {
|
|
4389
|
+
margin: 0 0 8px;
|
|
4390
|
+
padding: 0 4px;
|
|
4391
|
+
font-size: 11px;
|
|
4392
|
+
font-weight: 600;
|
|
4393
|
+
letter-spacing: 0.12em;
|
|
4394
|
+
text-transform: uppercase;
|
|
4395
|
+
color: var(--pr-fg-muted);
|
|
4396
|
+
}
|
|
4397
|
+
.pr-date-range__bounds {
|
|
4398
|
+
display: grid;
|
|
4399
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4400
|
+
gap: 8px;
|
|
4401
|
+
margin: 0 0 8px;
|
|
4402
|
+
padding: 0 4px;
|
|
4403
|
+
}
|
|
4404
|
+
.pr-date-range__bound dt {
|
|
4405
|
+
font-size: 11px;
|
|
4406
|
+
font-weight: 600;
|
|
4407
|
+
letter-spacing: 0.08em;
|
|
4408
|
+
text-transform: uppercase;
|
|
4409
|
+
color: var(--pr-fg-faint);
|
|
4410
|
+
}
|
|
4411
|
+
.pr-date-range__bound dd {
|
|
4412
|
+
margin: 2px 0 0;
|
|
4413
|
+
font-size: 13px;
|
|
4414
|
+
font-weight: 600;
|
|
4415
|
+
font-variant-numeric: tabular-nums;
|
|
4416
|
+
color: var(--pr-fg);
|
|
4417
|
+
}
|
|
4418
|
+
/* The calendar sits inside the panel, which is already a surface. */
|
|
4419
|
+
.pr-date-range__calendar {
|
|
4420
|
+
width: 100%;
|
|
4421
|
+
padding: 0;
|
|
4422
|
+
border: 0;
|
|
4423
|
+
border-radius: 0;
|
|
4424
|
+
background: transparent;
|
|
4425
|
+
box-shadow: none;
|
|
4426
|
+
}
|
|
4427
|
+
.pr-date-range__actions {
|
|
4428
|
+
display: flex;
|
|
4429
|
+
justify-content: flex-end;
|
|
4430
|
+
gap: 8px;
|
|
4431
|
+
margin-top: 8px;
|
|
4432
|
+
padding-top: 8px;
|
|
4433
|
+
border-top: 1px solid var(--pr-border);
|
|
4434
|
+
}
|