@partrunner-ai/ui 2.0.1 → 2.1.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/styles/theme.css CHANGED
@@ -3443,3 +3443,436 @@ button.pr-stepper__dot:focus-visible {
3443
3443
  .pr-sheet__title {
3444
3444
  letter-spacing: var(--pr-tracking-display, -0.022em);
3445
3445
  }
3446
+
3447
+ /* ───────────────────────── PageHeader ───────────────────────── */
3448
+
3449
+ /* Stacks on small screens, spreads title/actions from 640px up. Text colours
3450
+ come from --pr-fg/--pr-fg-muted rather than fixed brand greys: opacity over
3451
+ a themed surface does not produce a legible grey, and the tokens are
3452
+ audited in both themes. */
3453
+ .pr-page-header {
3454
+ display: flex;
3455
+ flex-direction: column;
3456
+ gap: 16px;
3457
+ margin-block-end: 24px;
3458
+ }
3459
+
3460
+ .pr-page-header__text {
3461
+ min-width: 0;
3462
+ }
3463
+
3464
+ .pr-page-header__eyebrow {
3465
+ display: inline-flex;
3466
+ align-items: center;
3467
+ gap: 6px;
3468
+ padding: 4px 10px;
3469
+ border: 1px solid var(--pr-glass-border);
3470
+ border-radius: 999px;
3471
+ background: color-mix(in srgb, var(--pr-surface) 70%, transparent);
3472
+ -webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
3473
+ backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
3474
+ box-shadow: var(--pr-shadow-sm);
3475
+ font-size: 11px;
3476
+ font-weight: 600;
3477
+ text-transform: uppercase;
3478
+ letter-spacing: 0.14em;
3479
+ color: var(--pr-fg-muted);
3480
+ }
3481
+
3482
+ .pr-page-header__eyebrow + .pr-page-header__title {
3483
+ margin-block-start: 8px;
3484
+ }
3485
+
3486
+ .pr-page-header__title {
3487
+ margin: 0;
3488
+ font-size: 24px;
3489
+ font-weight: 700;
3490
+ letter-spacing: var(--pr-tracking-display, -0.022em);
3491
+ line-height: 1.25;
3492
+ color: var(--pr-fg);
3493
+ }
3494
+
3495
+ .pr-page-header__subtitle {
3496
+ margin: 6px 0 0;
3497
+ font-size: 14px;
3498
+ line-height: 1.375;
3499
+ color: var(--pr-fg-muted);
3500
+ }
3501
+
3502
+ .pr-page-header__actions {
3503
+ display: flex;
3504
+ flex-wrap: wrap;
3505
+ align-items: center;
3506
+ gap: 8px;
3507
+ }
3508
+
3509
+ @media (min-width: 640px) {
3510
+ .pr-page-header {
3511
+ flex-direction: row;
3512
+ align-items: flex-end;
3513
+ justify-content: space-between;
3514
+ }
3515
+
3516
+ .pr-page-header__title {
3517
+ font-size: 30px;
3518
+ }
3519
+ }
3520
+
3521
+ /* ───────────────────────── StatTile ───────────────────────── */
3522
+
3523
+ /* The tone wash mixes the tone into the current surface, so the tile stays on
3524
+ the semantic surface in both themes instead of sitting on fixed white.
3525
+ The trend chip is the one place with fixed light-theme colours: its 11px
3526
+ text needs AA and the tone foregrounds only clear AA under .dark. */
3527
+ .pr-stat-tile {
3528
+ position: relative;
3529
+ overflow: hidden;
3530
+ padding: 16px;
3531
+ border: 1px solid var(--pr-glass-border);
3532
+ border-radius: var(--pr-radius-md, 0.5rem);
3533
+ background: color-mix(in srgb, var(--pr-surface) 90%, transparent);
3534
+ box-shadow: var(--pr-shadow-sm);
3535
+ transition:
3536
+ transform 200ms var(--pr-ease, ease),
3537
+ box-shadow 200ms var(--pr-ease, ease);
3538
+ }
3539
+
3540
+ .pr-stat-tile:hover {
3541
+ transform: translateY(-2px);
3542
+ box-shadow: var(--pr-shadow-card);
3543
+ }
3544
+
3545
+ .pr-stat-tile--yellow {
3546
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-yellow-bg));
3547
+ }
3548
+ .pr-stat-tile--amber {
3549
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-amber-bg));
3550
+ }
3551
+ .pr-stat-tile--blue {
3552
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-blue-bg));
3553
+ }
3554
+ .pr-stat-tile--purple {
3555
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-purple-bg));
3556
+ }
3557
+ .pr-stat-tile--green {
3558
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-green-bg));
3559
+ }
3560
+ .pr-stat-tile--rose {
3561
+ background: color-mix(in srgb, var(--pr-surface) 88%, var(--pr-tone-rose-bg));
3562
+ }
3563
+
3564
+ .pr-stat-tile__body {
3565
+ display: flex;
3566
+ align-items: flex-start;
3567
+ justify-content: space-between;
3568
+ gap: 12px;
3569
+ }
3570
+
3571
+ .pr-stat-tile__main {
3572
+ min-width: 0;
3573
+ flex: 1;
3574
+ }
3575
+
3576
+ .pr-stat-tile__label {
3577
+ margin: 0;
3578
+ font-size: 11px;
3579
+ font-weight: 600;
3580
+ text-transform: uppercase;
3581
+ letter-spacing: 0.12em;
3582
+ color: var(--pr-fg-muted);
3583
+ }
3584
+
3585
+ .pr-stat-tile__value {
3586
+ margin: 8px 0 0;
3587
+ font-size: 24px;
3588
+ font-weight: 700;
3589
+ letter-spacing: var(--pr-tracking-display, -0.022em);
3590
+ line-height: 1;
3591
+ color: var(--pr-fg);
3592
+ }
3593
+
3594
+ .pr-stat-tile__hint {
3595
+ margin: 6px 0 0;
3596
+ font-size: 12px;
3597
+ line-height: 1.375;
3598
+ color: var(--pr-fg-muted);
3599
+ }
3600
+
3601
+ .pr-stat-tile__icon {
3602
+ display: flex;
3603
+ flex-shrink: 0;
3604
+ align-items: center;
3605
+ justify-content: center;
3606
+ width: 36px;
3607
+ height: 36px;
3608
+ border-radius: var(--pr-radius-sm, 0.375rem);
3609
+ }
3610
+
3611
+ .pr-stat-tile__icon svg {
3612
+ width: 18px;
3613
+ height: 18px;
3614
+ }
3615
+
3616
+ /* Icon-chip pairs use the audited tone bg/fg pairs. The light-theme tone
3617
+ foregrounds sit below AA for text but only ever paint an 18px icon here,
3618
+ which is governed by the 3:1 non-text minimum. */
3619
+ .pr-stat-tile--yellow .pr-stat-tile__icon {
3620
+ background: var(--pr-tone-yellow-bg);
3621
+ color: var(--pr-tone-yellow-fg);
3622
+ }
3623
+ .pr-stat-tile--amber .pr-stat-tile__icon {
3624
+ background: var(--pr-tone-amber-bg);
3625
+ color: var(--pr-tone-amber-fg);
3626
+ }
3627
+ .pr-stat-tile--blue .pr-stat-tile__icon {
3628
+ background: var(--pr-tone-blue-bg);
3629
+ color: var(--pr-tone-blue-fg);
3630
+ }
3631
+ .pr-stat-tile--purple .pr-stat-tile__icon {
3632
+ background: var(--pr-tone-purple-bg);
3633
+ color: var(--pr-tone-purple-fg);
3634
+ }
3635
+ .pr-stat-tile--green .pr-stat-tile__icon {
3636
+ background: var(--pr-tone-green-bg);
3637
+ color: var(--pr-tone-green-fg);
3638
+ }
3639
+ .pr-stat-tile--rose .pr-stat-tile__icon {
3640
+ background: var(--pr-tone-rose-bg);
3641
+ color: var(--pr-tone-rose-fg);
3642
+ }
3643
+ .pr-stat-tile--neutral .pr-stat-tile__icon {
3644
+ background: var(--pr-border);
3645
+ color: var(--pr-fg-muted);
3646
+ }
3647
+
3648
+ .pr-stat-tile__meta {
3649
+ display: flex;
3650
+ align-items: center;
3651
+ justify-content: space-between;
3652
+ gap: 8px;
3653
+ margin-block-start: 12px;
3654
+ }
3655
+
3656
+ .pr-stat-tile__trend {
3657
+ display: inline-flex;
3658
+ align-items: center;
3659
+ gap: 4px;
3660
+ padding: 2px 8px;
3661
+ border-radius: 999px;
3662
+ font-size: 11px;
3663
+ font-weight: 600;
3664
+ }
3665
+
3666
+ .pr-stat-tile__trend svg {
3667
+ width: 12px;
3668
+ height: 12px;
3669
+ }
3670
+
3671
+ .pr-stat-tile__trend--up {
3672
+ background: #d1fae5;
3673
+ color: #047857;
3674
+ }
3675
+
3676
+ .pr-stat-tile__trend--down {
3677
+ background: #ffe4e6;
3678
+ color: #be123c;
3679
+ }
3680
+
3681
+ .dark .pr-stat-tile__trend--up {
3682
+ background: var(--pr-tone-green-bg);
3683
+ color: var(--pr-tone-green-fg);
3684
+ }
3685
+
3686
+ .dark .pr-stat-tile__trend--down {
3687
+ background: var(--pr-tone-rose-bg);
3688
+ color: var(--pr-tone-rose-fg);
3689
+ }
3690
+
3691
+ .pr-stat-tile__footer {
3692
+ min-width: 0;
3693
+ overflow: hidden;
3694
+ font-size: 11px;
3695
+ color: var(--pr-fg-faint);
3696
+ text-overflow: ellipsis;
3697
+ white-space: nowrap;
3698
+ }
3699
+
3700
+ @media (min-width: 640px) {
3701
+ .pr-stat-tile {
3702
+ padding: 20px;
3703
+ }
3704
+
3705
+ .pr-stat-tile__value {
3706
+ font-size: 28px;
3707
+ }
3708
+ }
3709
+
3710
+ /* ───────────────────────── Toolbar ───────────────────────── */
3711
+
3712
+ /* Glass surface, same recipe as the shell chrome at half the blur: separates
3713
+ from the page background without weight, and follows the theme. */
3714
+ .pr-toolbar {
3715
+ display: flex;
3716
+ flex-wrap: wrap;
3717
+ align-items: center;
3718
+ gap: 8px;
3719
+ padding: 10px 12px;
3720
+ border: 1px solid var(--pr-glass-border);
3721
+ border-radius: var(--pr-radius-md, 0.5rem);
3722
+ background: color-mix(in srgb, var(--pr-surface) 75%, transparent);
3723
+ -webkit-backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
3724
+ backdrop-filter: blur(calc(var(--pr-glass-blur, 24px) / 2)) saturate(120%);
3725
+ box-shadow: var(--pr-shadow-sm);
3726
+ }
3727
+
3728
+ /* ───────────────────────── IconButton ───────────────────────── */
3729
+
3730
+ /* Icon-only button with an accessibility contract: the touch target is at
3731
+ least 44x44 on small screens for every size, and on all screens unless
3732
+ `compact` is set. Desktop sizes step down visually while the pointer
3733
+ stays coarse. */
3734
+ .pr-icon-btn {
3735
+ display: inline-flex;
3736
+ align-items: center;
3737
+ justify-content: center;
3738
+ min-width: 44px;
3739
+ min-height: 44px;
3740
+ padding: 0;
3741
+ border: none;
3742
+ border-radius: var(--pr-radius-md, 0.5rem);
3743
+ background: transparent;
3744
+ cursor: pointer;
3745
+ transition:
3746
+ background-color 160ms var(--pr-ease, ease),
3747
+ color 160ms var(--pr-ease, ease),
3748
+ box-shadow 160ms var(--pr-ease, ease);
3749
+ }
3750
+
3751
+ .pr-icon-btn:focus-visible {
3752
+ outline: none;
3753
+ box-shadow: var(--pr-focus-ring);
3754
+ }
3755
+
3756
+ .pr-icon-btn:active:not(:disabled) {
3757
+ transform: scale(0.96);
3758
+ }
3759
+
3760
+ .pr-icon-btn:disabled,
3761
+ .pr-icon-btn[aria-disabled='true'] {
3762
+ opacity: 0.6;
3763
+ cursor: not-allowed;
3764
+ pointer-events: none;
3765
+ }
3766
+
3767
+ @media (min-width: 640px) {
3768
+ .pr-icon-btn--sm {
3769
+ min-width: 36px;
3770
+ min-height: 36px;
3771
+ }
3772
+
3773
+ .pr-icon-btn--md {
3774
+ min-width: 40px;
3775
+ min-height: 40px;
3776
+ }
3777
+
3778
+ .pr-icon-btn--lg {
3779
+ min-width: 48px;
3780
+ min-height: 48px;
3781
+ }
3782
+
3783
+ .pr-icon-btn--compact {
3784
+ min-width: 32px;
3785
+ min-height: 32px;
3786
+ }
3787
+ }
3788
+
3789
+ .pr-icon-btn svg {
3790
+ width: 18px;
3791
+ height: 18px;
3792
+ }
3793
+
3794
+ .pr-icon-btn--default,
3795
+ .pr-icon-btn--subtle {
3796
+ color: var(--pr-fg-muted);
3797
+ }
3798
+
3799
+ .pr-icon-btn--default:hover,
3800
+ .pr-icon-btn--subtle:hover {
3801
+ background: var(--pr-glass-bg);
3802
+ color: var(--pr-fg);
3803
+ box-shadow: var(--pr-shadow-sm);
3804
+ }
3805
+
3806
+ .pr-icon-btn--ghost {
3807
+ color: var(--pr-fg-muted);
3808
+ }
3809
+
3810
+ .pr-icon-btn--ghost:hover {
3811
+ background: var(--pr-glass-bg);
3812
+ color: var(--pr-fg);
3813
+ }
3814
+
3815
+ .pr-icon-btn--primary {
3816
+ color: var(--pr-accent);
3817
+ }
3818
+
3819
+ .pr-icon-btn--primary:hover {
3820
+ background: color-mix(in srgb, var(--pr-accent) 15%, transparent);
3821
+ color: var(--pr-accent-strong);
3822
+ box-shadow: var(--pr-shadow-sm);
3823
+ }
3824
+
3825
+ .pr-icon-btn--danger {
3826
+ color: var(--pr-danger);
3827
+ }
3828
+
3829
+ .pr-icon-btn--danger:hover {
3830
+ background: color-mix(in srgb, var(--pr-danger) 12%, transparent);
3831
+ color: var(--pr-danger);
3832
+ box-shadow: var(--pr-shadow-sm);
3833
+ }
3834
+
3835
+ /* ───────────────────────── ConfirmDialog ───────────────────────── */
3836
+
3837
+ .pr-confirm-dialog__actions {
3838
+ display: flex;
3839
+ flex-direction: column-reverse;
3840
+ gap: 8px;
3841
+ }
3842
+
3843
+ .pr-confirm-dialog__icon-row {
3844
+ display: flex;
3845
+ justify-content: center;
3846
+ padding-block: 8px;
3847
+ }
3848
+
3849
+ .pr-confirm-dialog__icon {
3850
+ display: inline-flex;
3851
+ align-items: center;
3852
+ justify-content: center;
3853
+ width: 48px;
3854
+ height: 48px;
3855
+ border-radius: var(--pr-radius-md, 0.5rem);
3856
+ }
3857
+
3858
+ .pr-confirm-dialog__icon svg {
3859
+ width: 24px;
3860
+ height: 24px;
3861
+ }
3862
+
3863
+ .pr-confirm-dialog__icon--danger {
3864
+ background: color-mix(in srgb, var(--pr-danger) 12%, transparent);
3865
+ color: var(--pr-danger);
3866
+ }
3867
+
3868
+ .pr-confirm-dialog__icon--accent {
3869
+ background: var(--pr-tone-yellow-bg);
3870
+ color: var(--pr-tone-yellow-fg);
3871
+ }
3872
+
3873
+ @media (min-width: 640px) {
3874
+ .pr-confirm-dialog__actions {
3875
+ flex-direction: row;
3876
+ justify-content: flex-end;
3877
+ }
3878
+ }