@partrunner-ai/ui 2.1.0 → 2.2.1
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 +644 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +315 -2
- package/dist/index.d.ts +315 -2
- package/dist/index.js +623 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/styles/light.css +611 -0
- package/styles/theme.css +611 -0
- package/styles/ui.css +611 -0
package/styles/ui.css
CHANGED
|
@@ -2387,6 +2387,12 @@
|
|
|
2387
2387
|
background: var(--pr-surface);
|
|
2388
2388
|
box-shadow: inset 0 0 0 1px var(--pr-border);
|
|
2389
2389
|
}
|
|
2390
|
+
/* A compound table already inside a Card or a TableFrame: the frame is the surface. */
|
|
2391
|
+
.pr-table__scroll--bare {
|
|
2392
|
+
border-radius: 0;
|
|
2393
|
+
background: none;
|
|
2394
|
+
box-shadow: none;
|
|
2395
|
+
}
|
|
2390
2396
|
.pr-table__scroll:focus-visible {
|
|
2391
2397
|
outline: none;
|
|
2392
2398
|
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
@@ -3631,3 +3637,608 @@ button.pr-stepper__dot:focus-visible {
|
|
|
3631
3637
|
justify-content: flex-end;
|
|
3632
3638
|
}
|
|
3633
3639
|
}
|
|
3640
|
+
|
|
3641
|
+
/* ───────────────────────── Page ───────────────────────── */
|
|
3642
|
+
|
|
3643
|
+
/* The page container: Crystal rhythm (16 → 24 → 32px), centred and capped, with
|
|
3644
|
+
one vertical stack between its children so screens stop deciding padding and
|
|
3645
|
+
width per file. */
|
|
3646
|
+
.pr-page {
|
|
3647
|
+
display: flex;
|
|
3648
|
+
flex-direction: column;
|
|
3649
|
+
gap: 24px;
|
|
3650
|
+
width: 100%;
|
|
3651
|
+
max-width: 1280px;
|
|
3652
|
+
margin-inline: auto;
|
|
3653
|
+
padding: 16px;
|
|
3654
|
+
color: var(--pr-fg);
|
|
3655
|
+
font-family: var(--pr-font-body, inherit);
|
|
3656
|
+
}
|
|
3657
|
+
.pr-page--narrow { max-width: 768px; }
|
|
3658
|
+
.pr-page--wide { max-width: 1536px; }
|
|
3659
|
+
.pr-page--full { max-width: none; }
|
|
3660
|
+
/* The page's gap is the rhythm. A header directly inside it drops its own bottom
|
|
3661
|
+
margin, or the recipe's first step would sit 48px above the KPIs; a header
|
|
3662
|
+
outside a Page keeps the margin it always had. */
|
|
3663
|
+
.pr-page > .pr-page-header { margin-block-end: 0; }
|
|
3664
|
+
|
|
3665
|
+
@media (min-width: 640px) {
|
|
3666
|
+
.pr-page { padding: 24px; }
|
|
3667
|
+
}
|
|
3668
|
+
@media (min-width: 1024px) {
|
|
3669
|
+
.pr-page { padding: 32px; }
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
/* ───────────────────────── SectionHeading ───────────────────────── */
|
|
3673
|
+
|
|
3674
|
+
/* The step below PageHeader: an 18px Barlow title (the display face starts at
|
|
3675
|
+
24px), an optional eyebrow and description, actions on the end edge. */
|
|
3676
|
+
.pr-section-heading {
|
|
3677
|
+
display: flex;
|
|
3678
|
+
flex-direction: column;
|
|
3679
|
+
gap: 12px;
|
|
3680
|
+
color: var(--pr-fg);
|
|
3681
|
+
font-family: var(--pr-font-body, inherit);
|
|
3682
|
+
}
|
|
3683
|
+
.pr-section-heading__text { min-width: 0; }
|
|
3684
|
+
.pr-section-heading__eyebrow {
|
|
3685
|
+
margin: 0 0 6px;
|
|
3686
|
+
font-size: 11px;
|
|
3687
|
+
font-weight: 600;
|
|
3688
|
+
letter-spacing: 0.12em;
|
|
3689
|
+
text-transform: uppercase;
|
|
3690
|
+
color: var(--pr-fg-muted);
|
|
3691
|
+
}
|
|
3692
|
+
.pr-section-heading__title {
|
|
3693
|
+
margin: 0;
|
|
3694
|
+
font-family: var(--pr-font-body, inherit);
|
|
3695
|
+
font-size: 18px;
|
|
3696
|
+
font-weight: 650;
|
|
3697
|
+
line-height: 1.3;
|
|
3698
|
+
letter-spacing: var(--pr-tracking-display, -0.022em);
|
|
3699
|
+
color: var(--pr-fg);
|
|
3700
|
+
text-wrap: balance;
|
|
3701
|
+
}
|
|
3702
|
+
.pr-section-heading__description {
|
|
3703
|
+
margin: 4px 0 0;
|
|
3704
|
+
font-size: 14px;
|
|
3705
|
+
line-height: 1.4;
|
|
3706
|
+
color: var(--pr-fg-muted);
|
|
3707
|
+
text-wrap: pretty;
|
|
3708
|
+
}
|
|
3709
|
+
.pr-section-heading__actions {
|
|
3710
|
+
display: flex;
|
|
3711
|
+
flex-wrap: wrap;
|
|
3712
|
+
align-items: center;
|
|
3713
|
+
gap: 8px;
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
@media (min-width: 640px) {
|
|
3717
|
+
.pr-section-heading {
|
|
3718
|
+
flex-direction: row;
|
|
3719
|
+
align-items: flex-end;
|
|
3720
|
+
justify-content: space-between;
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
/* ───────────────────────── StatTileGrid ───────────────────────── */
|
|
3725
|
+
|
|
3726
|
+
/* One column on a phone, two on a tablet, then the requested count. */
|
|
3727
|
+
.pr-stat-grid {
|
|
3728
|
+
display: grid;
|
|
3729
|
+
grid-template-columns: minmax(0, 1fr);
|
|
3730
|
+
gap: 12px;
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3733
|
+
@media (min-width: 640px) {
|
|
3734
|
+
.pr-stat-grid {
|
|
3735
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
3736
|
+
gap: 16px;
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
@media (min-width: 1024px) {
|
|
3740
|
+
.pr-stat-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
3741
|
+
.pr-stat-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
3742
|
+
.pr-stat-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
3743
|
+
.pr-stat-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
|
|
3744
|
+
.pr-stat-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
|
|
3745
|
+
}
|
|
3746
|
+
|
|
3747
|
+
/* ───────────────────────── Toolbar parts ───────────────────────── */
|
|
3748
|
+
|
|
3749
|
+
.pr-toolbar__group {
|
|
3750
|
+
display: inline-flex;
|
|
3751
|
+
flex-wrap: wrap;
|
|
3752
|
+
align-items: center;
|
|
3753
|
+
gap: 8px;
|
|
3754
|
+
}
|
|
3755
|
+
/* Pushes what follows to the end edge from 640px up. Below, the bar wraps and
|
|
3756
|
+
the gap would only add a blank line. */
|
|
3757
|
+
.pr-toolbar__spacer {
|
|
3758
|
+
display: none;
|
|
3759
|
+
flex: 1 1 0;
|
|
3760
|
+
min-width: 0;
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
@media (min-width: 640px) {
|
|
3764
|
+
.pr-toolbar__spacer { display: block; }
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
/* ───────────────────────── SearchField ───────────────────────── */
|
|
3768
|
+
|
|
3769
|
+
/* The width lives on the field wrapper (`containerClassName`), never on the
|
|
3770
|
+
input: with a leading icon the wrapper is the layout box. */
|
|
3771
|
+
.pr-search-field { width: 100%; }
|
|
3772
|
+
|
|
3773
|
+
@media (min-width: 640px) {
|
|
3774
|
+
.pr-search-field:not(.pr-search-field--block) { width: 16rem; }
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
/* ───────────────────────── FilterChip ───────────────────────── */
|
|
3778
|
+
|
|
3779
|
+
.pr-filter-chip-row {
|
|
3780
|
+
display: flex;
|
|
3781
|
+
flex-wrap: wrap;
|
|
3782
|
+
align-items: center;
|
|
3783
|
+
gap: 8px;
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3786
|
+
/* One tap filters the list. Quiet outline at rest; the active chip is ink on
|
|
3787
|
+
the page, and the count rides the label in tabular figures. 40px tall: the
|
|
3788
|
+
chip is a control, so it keeps the package's interaction floor. */
|
|
3789
|
+
.pr-filter-chip {
|
|
3790
|
+
display: inline-flex;
|
|
3791
|
+
align-items: center;
|
|
3792
|
+
gap: 6px;
|
|
3793
|
+
min-height: 40px;
|
|
3794
|
+
padding: 0 12px;
|
|
3795
|
+
border: 1px solid var(--pr-border);
|
|
3796
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
3797
|
+
background: var(--pr-surface);
|
|
3798
|
+
color: var(--pr-fg-muted);
|
|
3799
|
+
font-family: var(--pr-font-body, inherit);
|
|
3800
|
+
font-size: 13px;
|
|
3801
|
+
font-weight: 600;
|
|
3802
|
+
line-height: 1;
|
|
3803
|
+
white-space: nowrap;
|
|
3804
|
+
cursor: pointer;
|
|
3805
|
+
transition:
|
|
3806
|
+
background-color 160ms var(--pr-ease, ease),
|
|
3807
|
+
border-color 160ms var(--pr-ease, ease),
|
|
3808
|
+
color 160ms var(--pr-ease, ease),
|
|
3809
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
3810
|
+
}
|
|
3811
|
+
.pr-filter-chip:hover:not(:disabled) {
|
|
3812
|
+
border-color: var(--pr-border-strong);
|
|
3813
|
+
color: var(--pr-fg);
|
|
3814
|
+
}
|
|
3815
|
+
.pr-filter-chip:focus-visible {
|
|
3816
|
+
outline: none;
|
|
3817
|
+
box-shadow: var(--pr-focus-ring);
|
|
3818
|
+
}
|
|
3819
|
+
.pr-filter-chip[aria-pressed='true'] {
|
|
3820
|
+
background: var(--pr-fg);
|
|
3821
|
+
border-color: var(--pr-fg);
|
|
3822
|
+
color: var(--pr-bg);
|
|
3823
|
+
}
|
|
3824
|
+
.pr-filter-chip:disabled {
|
|
3825
|
+
opacity: 0.6;
|
|
3826
|
+
cursor: not-allowed;
|
|
3827
|
+
}
|
|
3828
|
+
.pr-filter-chip__dot,
|
|
3829
|
+
.pr-filter-chip__icon { flex: 0 0 auto; }
|
|
3830
|
+
.pr-filter-chip__count {
|
|
3831
|
+
font-size: 12px;
|
|
3832
|
+
font-weight: 600;
|
|
3833
|
+
font-variant-numeric: tabular-nums;
|
|
3834
|
+
color: var(--pr-fg-faint);
|
|
3835
|
+
}
|
|
3836
|
+
.pr-filter-chip[aria-pressed='true'] .pr-filter-chip__count {
|
|
3837
|
+
color: inherit;
|
|
3838
|
+
opacity: 0.7;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3842
|
+
.pr-filter-chip { transition: none; }
|
|
3843
|
+
}
|
|
3844
|
+
|
|
3845
|
+
/* ───────────────────────── SegmentedControl ───────────────────────── */
|
|
3846
|
+
|
|
3847
|
+
/* A quiet track with the checked option lifted onto the surface. Each option
|
|
3848
|
+
is a 40px control (44 for `lg`) and the track adds nothing around them, so
|
|
3849
|
+
the control is exactly as tall as the inputs and filter triggers beside it in
|
|
3850
|
+
a toolbar row. The unchecked options show the track wash; the checked one
|
|
3851
|
+
sits on the surface with the track's own radius. */
|
|
3852
|
+
.pr-segmented {
|
|
3853
|
+
display: inline-flex;
|
|
3854
|
+
align-items: stretch;
|
|
3855
|
+
gap: 0;
|
|
3856
|
+
padding: 0;
|
|
3857
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
3858
|
+
background: color-mix(in srgb, var(--pr-fg) 6%, transparent);
|
|
3859
|
+
color: var(--pr-fg);
|
|
3860
|
+
font-family: var(--pr-font-body, inherit);
|
|
3861
|
+
}
|
|
3862
|
+
.pr-segmented--block { display: flex; width: 100%; }
|
|
3863
|
+
.pr-segmented__option {
|
|
3864
|
+
position: relative;
|
|
3865
|
+
display: inline-flex;
|
|
3866
|
+
align-items: center;
|
|
3867
|
+
justify-content: center;
|
|
3868
|
+
gap: 6px;
|
|
3869
|
+
min-height: 40px;
|
|
3870
|
+
padding: 0 14px;
|
|
3871
|
+
border: 1px solid transparent;
|
|
3872
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
3873
|
+
background: transparent;
|
|
3874
|
+
color: var(--pr-fg-muted);
|
|
3875
|
+
font: inherit;
|
|
3876
|
+
font-size: 13px;
|
|
3877
|
+
font-weight: 600;
|
|
3878
|
+
line-height: 1;
|
|
3879
|
+
white-space: nowrap;
|
|
3880
|
+
cursor: pointer;
|
|
3881
|
+
transition:
|
|
3882
|
+
background-color 160ms var(--pr-ease, ease),
|
|
3883
|
+
border-color 160ms var(--pr-ease, ease),
|
|
3884
|
+
color 160ms var(--pr-ease, ease),
|
|
3885
|
+
box-shadow 160ms var(--pr-ease, ease);
|
|
3886
|
+
}
|
|
3887
|
+
.pr-segmented--lg .pr-segmented__option {
|
|
3888
|
+
min-height: 44px;
|
|
3889
|
+
padding: 0 16px;
|
|
3890
|
+
font-size: 14px;
|
|
3891
|
+
}
|
|
3892
|
+
.pr-segmented--block .pr-segmented__option { flex: 1 1 0; }
|
|
3893
|
+
.pr-segmented__option:hover:not(:disabled) { color: var(--pr-fg); }
|
|
3894
|
+
.pr-segmented__option[aria-checked='true'] {
|
|
3895
|
+
background: var(--pr-surface);
|
|
3896
|
+
border-color: var(--pr-border);
|
|
3897
|
+
color: var(--pr-fg);
|
|
3898
|
+
box-shadow: var(--pr-shadow-xs);
|
|
3899
|
+
}
|
|
3900
|
+
.pr-segmented__option:focus-visible {
|
|
3901
|
+
z-index: 1;
|
|
3902
|
+
outline: none;
|
|
3903
|
+
box-shadow: var(--pr-focus-ring);
|
|
3904
|
+
}
|
|
3905
|
+
.pr-segmented__option:disabled {
|
|
3906
|
+
opacity: 0.5;
|
|
3907
|
+
cursor: not-allowed;
|
|
3908
|
+
}
|
|
3909
|
+
.pr-segmented__icon { flex: 0 0 auto; }
|
|
3910
|
+
.pr-segmented__count {
|
|
3911
|
+
font-size: 12px;
|
|
3912
|
+
font-weight: 600;
|
|
3913
|
+
font-variant-numeric: tabular-nums;
|
|
3914
|
+
color: var(--pr-fg-faint);
|
|
3915
|
+
}
|
|
3916
|
+
.pr-segmented__option[aria-checked='true'] .pr-segmented__count { color: var(--pr-fg-muted); }
|
|
3917
|
+
|
|
3918
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3919
|
+
.pr-segmented__option { transition: none; }
|
|
3920
|
+
}
|
|
3921
|
+
|
|
3922
|
+
/* ───────────────────────── StatusDot ───────────────────────── */
|
|
3923
|
+
|
|
3924
|
+
/* The colour a Badge of the same tone paints, as a dot beside visible text. */
|
|
3925
|
+
.pr-status-dot {
|
|
3926
|
+
display: inline-block;
|
|
3927
|
+
flex: 0 0 auto;
|
|
3928
|
+
width: 8px;
|
|
3929
|
+
height: 8px;
|
|
3930
|
+
border-radius: 999px;
|
|
3931
|
+
background: var(--pr-fg-faint);
|
|
3932
|
+
}
|
|
3933
|
+
.pr-status-dot--md { width: 10px; height: 10px; }
|
|
3934
|
+
.pr-status-dot--neutral { background: var(--pr-fg-faint); }
|
|
3935
|
+
.pr-status-dot--yellow { background: var(--pr-tone-yellow-fg); }
|
|
3936
|
+
.pr-status-dot--blue { background: var(--pr-tone-blue-fg); }
|
|
3937
|
+
.pr-status-dot--amber { background: var(--pr-tone-amber-fg); }
|
|
3938
|
+
.pr-status-dot--purple { background: var(--pr-tone-purple-fg); }
|
|
3939
|
+
.pr-status-dot--green { background: var(--pr-tone-green-fg); }
|
|
3940
|
+
.pr-status-dot--rose { background: var(--pr-tone-rose-fg); }
|
|
3941
|
+
.pr-status-dot--danger { background: var(--pr-danger); }
|
|
3942
|
+
.pr-status-dot--success { background: var(--pr-success); }
|
|
3943
|
+
.pr-status-dot--warning { background: var(--pr-warning); }
|
|
3944
|
+
.pr-status-dot--info { background: var(--pr-info); }
|
|
3945
|
+
|
|
3946
|
+
/* ───────────────────────── IconTile ───────────────────────── */
|
|
3947
|
+
|
|
3948
|
+
/* The same chip StatTile paints its icon in, on its own: neutral by default,
|
|
3949
|
+
the audited tone pairs otherwise. Non-text, so the 3:1 floor governs. */
|
|
3950
|
+
.pr-icon-tile {
|
|
3951
|
+
display: inline-flex;
|
|
3952
|
+
flex: 0 0 auto;
|
|
3953
|
+
align-items: center;
|
|
3954
|
+
justify-content: center;
|
|
3955
|
+
width: 36px;
|
|
3956
|
+
height: 36px;
|
|
3957
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
3958
|
+
background: var(--pr-border);
|
|
3959
|
+
color: var(--pr-fg-muted);
|
|
3960
|
+
}
|
|
3961
|
+
.pr-icon-tile--sm { width: 28px; height: 28px; border-radius: var(--pr-radius-xs, 0.375rem); }
|
|
3962
|
+
.pr-icon-tile--lg { width: 44px; height: 44px; border-radius: var(--pr-radius-md, 0.75rem); }
|
|
3963
|
+
.pr-icon-tile--yellow { background: var(--pr-tone-yellow-bg); color: var(--pr-tone-yellow-fg); }
|
|
3964
|
+
.pr-icon-tile--blue { background: var(--pr-tone-blue-bg); color: var(--pr-tone-blue-fg); }
|
|
3965
|
+
.pr-icon-tile--amber { background: var(--pr-tone-amber-bg); color: var(--pr-tone-amber-fg); }
|
|
3966
|
+
.pr-icon-tile--purple { background: var(--pr-tone-purple-bg); color: var(--pr-tone-purple-fg); }
|
|
3967
|
+
.pr-icon-tile--green { background: var(--pr-tone-green-bg); color: var(--pr-tone-green-fg); }
|
|
3968
|
+
.pr-icon-tile--rose { background: var(--pr-tone-rose-bg); color: var(--pr-tone-rose-fg); }
|
|
3969
|
+
.pr-icon-tile--danger {
|
|
3970
|
+
background: color-mix(in srgb, var(--pr-danger) 14%, transparent);
|
|
3971
|
+
color: var(--pr-danger);
|
|
3972
|
+
}
|
|
3973
|
+
.pr-icon-tile--success {
|
|
3974
|
+
background: color-mix(in srgb, var(--pr-success) 14%, transparent);
|
|
3975
|
+
color: var(--pr-success);
|
|
3976
|
+
}
|
|
3977
|
+
.pr-icon-tile--warning {
|
|
3978
|
+
background: color-mix(in srgb, var(--pr-warning) 14%, transparent);
|
|
3979
|
+
color: var(--pr-warning);
|
|
3980
|
+
}
|
|
3981
|
+
.pr-icon-tile--info {
|
|
3982
|
+
background: color-mix(in srgb, var(--pr-info) 14%, transparent);
|
|
3983
|
+
color: var(--pr-info);
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
/* ───────────────────────── Avatar ───────────────────────── */
|
|
3987
|
+
|
|
3988
|
+
/* A person by initials in a stable tint. The root is the named image; the
|
|
3989
|
+
initials inside are decoration. */
|
|
3990
|
+
.pr-avatar {
|
|
3991
|
+
position: relative;
|
|
3992
|
+
display: inline-flex;
|
|
3993
|
+
flex: 0 0 auto;
|
|
3994
|
+
align-items: center;
|
|
3995
|
+
justify-content: center;
|
|
3996
|
+
overflow: hidden;
|
|
3997
|
+
width: 24px;
|
|
3998
|
+
height: 24px;
|
|
3999
|
+
border-radius: 999px;
|
|
4000
|
+
background: var(--pr-tone-blue-bg);
|
|
4001
|
+
color: var(--pr-tone-blue-fg);
|
|
4002
|
+
font-family: var(--pr-font-body, inherit);
|
|
4003
|
+
font-size: 9px;
|
|
4004
|
+
font-weight: 700;
|
|
4005
|
+
line-height: 1;
|
|
4006
|
+
letter-spacing: 0.02em;
|
|
4007
|
+
user-select: none;
|
|
4008
|
+
}
|
|
4009
|
+
.pr-avatar--xs { width: 20px; height: 20px; font-size: 8px; }
|
|
4010
|
+
.pr-avatar--md { width: 32px; height: 32px; font-size: 11px; }
|
|
4011
|
+
.pr-avatar--lg { width: 40px; height: 40px; font-size: 13px; }
|
|
4012
|
+
.pr-avatar--yellow { background: var(--pr-tone-yellow-bg); color: var(--pr-tone-yellow-fg); }
|
|
4013
|
+
.pr-avatar--blue { background: var(--pr-tone-blue-bg); color: var(--pr-tone-blue-fg); }
|
|
4014
|
+
.pr-avatar--amber { background: var(--pr-tone-amber-bg); color: var(--pr-tone-amber-fg); }
|
|
4015
|
+
.pr-avatar--purple { background: var(--pr-tone-purple-bg); color: var(--pr-tone-purple-fg); }
|
|
4016
|
+
.pr-avatar--green { background: var(--pr-tone-green-bg); color: var(--pr-tone-green-fg); }
|
|
4017
|
+
.pr-avatar--rose { background: var(--pr-tone-rose-bg); color: var(--pr-tone-rose-fg); }
|
|
4018
|
+
.pr-avatar__image {
|
|
4019
|
+
display: block;
|
|
4020
|
+
width: 100%;
|
|
4021
|
+
height: 100%;
|
|
4022
|
+
object-fit: cover;
|
|
4023
|
+
}
|
|
4024
|
+
.pr-avatar__initials { display: inline-block; }
|
|
4025
|
+
|
|
4026
|
+
/* ───────────────────────── TableFrame ───────────────────────── */
|
|
4027
|
+
|
|
4028
|
+
/* A strict assembly of Card, CardHeader and a bleeding CardContent. `clip`
|
|
4029
|
+
rounds the corners without making the frame a scroll container, so a pinned
|
|
4030
|
+
header inside a capped table keeps working. */
|
|
4031
|
+
.pr-table-frame { position: relative; }
|
|
4032
|
+
.pr-card.pr-table-frame { overflow: clip; }
|
|
4033
|
+
.pr-table-frame__header { align-items: center; }
|
|
4034
|
+
.pr-table-frame__title {
|
|
4035
|
+
display: inline-flex;
|
|
4036
|
+
align-items: center;
|
|
4037
|
+
gap: 8px;
|
|
4038
|
+
min-width: 0;
|
|
4039
|
+
max-width: 100%;
|
|
4040
|
+
}
|
|
4041
|
+
.pr-table-frame__title-text {
|
|
4042
|
+
min-width: 0;
|
|
4043
|
+
overflow: hidden;
|
|
4044
|
+
text-overflow: ellipsis;
|
|
4045
|
+
white-space: nowrap;
|
|
4046
|
+
}
|
|
4047
|
+
.pr-table-frame__icon {
|
|
4048
|
+
flex: 0 0 auto;
|
|
4049
|
+
color: var(--pr-fg-muted);
|
|
4050
|
+
}
|
|
4051
|
+
.pr-table-frame__count { font-variant-numeric: tabular-nums; }
|
|
4052
|
+
/* The header and the rows meet on one line; a frame with no header starts at the rows. */
|
|
4053
|
+
.pr-table-frame__body { border-top: 1px solid var(--pr-border); }
|
|
4054
|
+
.pr-table-frame__body:first-child { border-top: 0; }
|
|
4055
|
+
/* Any table inside the frame drops its own surface: the frame is the border. */
|
|
4056
|
+
.pr-table-frame .pr-table__shell {
|
|
4057
|
+
border: 0;
|
|
4058
|
+
border-radius: 0;
|
|
4059
|
+
background: none;
|
|
4060
|
+
}
|
|
4061
|
+
.pr-table-frame .pr-table__scroll--compound {
|
|
4062
|
+
border-radius: 0;
|
|
4063
|
+
background: none;
|
|
4064
|
+
box-shadow: none;
|
|
4065
|
+
}
|
|
4066
|
+
/* The bleeding body ends with a negative margin the footer cancels, so the two
|
|
4067
|
+
meet exactly; the footer then bleeds to the same edges. */
|
|
4068
|
+
.pr-table-frame__footer {
|
|
4069
|
+
margin-top: var(--pr-card-pad, 0px);
|
|
4070
|
+
margin-inline: calc(-1 * var(--pr-card-pad, 0px));
|
|
4071
|
+
margin-bottom: calc(-1 * var(--pr-card-pad, 0px));
|
|
4072
|
+
padding: 12px var(--pr-card-pad, 16px);
|
|
4073
|
+
border-top: 1px solid var(--pr-border);
|
|
4074
|
+
background: var(--pr-surface);
|
|
4075
|
+
}
|
|
4076
|
+
|
|
4077
|
+
/* The compound sibling of `Table loading`: same rows, announced once. */
|
|
4078
|
+
.pr-table-skeleton { display: block; }
|
|
4079
|
+
|
|
4080
|
+
/* ───────────────────────── DateRangeFilter ───────────────────────── */
|
|
4081
|
+
|
|
4082
|
+
/* One pill names the window of a list and opens the presets plus a calendar
|
|
4083
|
+
for a custom range. The trigger shares its box with the MultiSelect filter
|
|
4084
|
+
so a toolbar row aligns; an active window takes the same yellow tint. */
|
|
4085
|
+
.pr-date-range {
|
|
4086
|
+
position: relative;
|
|
4087
|
+
display: inline-flex;
|
|
4088
|
+
min-width: 0;
|
|
4089
|
+
font-family: var(--pr-font-body, inherit);
|
|
4090
|
+
}
|
|
4091
|
+
.pr-date-range__trigger {
|
|
4092
|
+
display: inline-flex;
|
|
4093
|
+
align-items: center;
|
|
4094
|
+
gap: 8px;
|
|
4095
|
+
min-height: 40px;
|
|
4096
|
+
padding: 0 10px;
|
|
4097
|
+
border: 1px solid var(--pr-border);
|
|
4098
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
4099
|
+
background: var(--pr-surface);
|
|
4100
|
+
color: var(--pr-fg);
|
|
4101
|
+
font-size: 12px;
|
|
4102
|
+
font-weight: 500;
|
|
4103
|
+
line-height: 1;
|
|
4104
|
+
white-space: nowrap;
|
|
4105
|
+
cursor: pointer;
|
|
4106
|
+
transition-property: border-color, box-shadow, background-color;
|
|
4107
|
+
transition-duration: 160ms;
|
|
4108
|
+
transition-timing-function: var(--pr-ease, ease);
|
|
4109
|
+
}
|
|
4110
|
+
.pr-date-range__trigger--md {
|
|
4111
|
+
padding: 0 12px;
|
|
4112
|
+
font-size: 14px;
|
|
4113
|
+
}
|
|
4114
|
+
.pr-date-range__trigger:hover { border-color: var(--pr-border-strong); }
|
|
4115
|
+
.pr-date-range__trigger--active {
|
|
4116
|
+
background: var(--pr-tone-yellow-bg);
|
|
4117
|
+
border-color: var(--pr-tone-yellow-border);
|
|
4118
|
+
font-weight: 650;
|
|
4119
|
+
}
|
|
4120
|
+
.pr-date-range__trigger--open,
|
|
4121
|
+
.pr-date-range__trigger:focus-visible {
|
|
4122
|
+
outline: none;
|
|
4123
|
+
border-color: var(--pr-accent-strong);
|
|
4124
|
+
box-shadow: var(--pr-focus-ring);
|
|
4125
|
+
}
|
|
4126
|
+
.pr-date-range__icon,
|
|
4127
|
+
.pr-date-range__chevron {
|
|
4128
|
+
flex: 0 0 auto;
|
|
4129
|
+
color: var(--pr-fg-faint);
|
|
4130
|
+
}
|
|
4131
|
+
.pr-date-range__trigger--active .pr-date-range__icon { color: var(--pr-fg-muted); }
|
|
4132
|
+
.pr-date-range__chevron { transition: transform 160ms var(--pr-ease, ease); }
|
|
4133
|
+
.pr-date-range__trigger--open .pr-date-range__chevron { transform: rotate(180deg); }
|
|
4134
|
+
.pr-date-range__value {
|
|
4135
|
+
min-width: 0;
|
|
4136
|
+
overflow: hidden;
|
|
4137
|
+
text-overflow: ellipsis;
|
|
4138
|
+
white-space: nowrap;
|
|
4139
|
+
}
|
|
4140
|
+
/* The panel owns its inset (popover padding is `none`): the calendar is 348px wide. */
|
|
4141
|
+
.pr-date-range__content {
|
|
4142
|
+
width: min(372px, calc(100vw - 16px));
|
|
4143
|
+
padding: 6px;
|
|
4144
|
+
}
|
|
4145
|
+
.pr-date-range__presets {
|
|
4146
|
+
display: flex;
|
|
4147
|
+
flex-direction: column;
|
|
4148
|
+
gap: 2px;
|
|
4149
|
+
padding: 2px;
|
|
4150
|
+
}
|
|
4151
|
+
.pr-date-range__preset {
|
|
4152
|
+
display: flex;
|
|
4153
|
+
align-items: center;
|
|
4154
|
+
justify-content: space-between;
|
|
4155
|
+
gap: 12px;
|
|
4156
|
+
width: 100%;
|
|
4157
|
+
min-height: 40px;
|
|
4158
|
+
padding: 0 10px;
|
|
4159
|
+
border: 0;
|
|
4160
|
+
border-radius: var(--pr-radius-sm, 0.625rem);
|
|
4161
|
+
background: transparent;
|
|
4162
|
+
color: var(--pr-fg-muted);
|
|
4163
|
+
font: inherit;
|
|
4164
|
+
font-size: 14px;
|
|
4165
|
+
text-align: left;
|
|
4166
|
+
cursor: pointer;
|
|
4167
|
+
transition-property: background-color, color;
|
|
4168
|
+
transition-duration: 160ms;
|
|
4169
|
+
transition-timing-function: var(--pr-ease, ease);
|
|
4170
|
+
}
|
|
4171
|
+
.pr-date-range__preset:hover {
|
|
4172
|
+
background: var(--pr-surface);
|
|
4173
|
+
color: var(--pr-fg);
|
|
4174
|
+
}
|
|
4175
|
+
.pr-date-range__preset:focus-visible {
|
|
4176
|
+
outline: none;
|
|
4177
|
+
box-shadow: var(--pr-focus-ring);
|
|
4178
|
+
}
|
|
4179
|
+
.pr-date-range__preset[aria-pressed='true'] {
|
|
4180
|
+
color: var(--pr-fg);
|
|
4181
|
+
font-weight: 650;
|
|
4182
|
+
}
|
|
4183
|
+
/* A preset whose range fails the invariant or the limits stays visible, muted. */
|
|
4184
|
+
.pr-date-range__preset:disabled {
|
|
4185
|
+
opacity: 0.5;
|
|
4186
|
+
cursor: not-allowed;
|
|
4187
|
+
}
|
|
4188
|
+
.pr-date-range__trigger[data-invalid] { border-style: dashed; }
|
|
4189
|
+
.pr-date-range__check {
|
|
4190
|
+
flex: 0 0 auto;
|
|
4191
|
+
color: var(--pr-fg);
|
|
4192
|
+
}
|
|
4193
|
+
.pr-date-range__custom {
|
|
4194
|
+
margin-top: 6px;
|
|
4195
|
+
padding: 10px 6px 6px;
|
|
4196
|
+
border-top: 1px solid var(--pr-border);
|
|
4197
|
+
}
|
|
4198
|
+
.pr-date-range__custom-title {
|
|
4199
|
+
margin: 0 0 8px;
|
|
4200
|
+
padding: 0 4px;
|
|
4201
|
+
font-size: 11px;
|
|
4202
|
+
font-weight: 600;
|
|
4203
|
+
letter-spacing: 0.12em;
|
|
4204
|
+
text-transform: uppercase;
|
|
4205
|
+
color: var(--pr-fg-muted);
|
|
4206
|
+
}
|
|
4207
|
+
.pr-date-range__bounds {
|
|
4208
|
+
display: grid;
|
|
4209
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4210
|
+
gap: 8px;
|
|
4211
|
+
margin: 0 0 8px;
|
|
4212
|
+
padding: 0 4px;
|
|
4213
|
+
}
|
|
4214
|
+
.pr-date-range__bound dt {
|
|
4215
|
+
font-size: 11px;
|
|
4216
|
+
font-weight: 600;
|
|
4217
|
+
letter-spacing: 0.08em;
|
|
4218
|
+
text-transform: uppercase;
|
|
4219
|
+
color: var(--pr-fg-faint);
|
|
4220
|
+
}
|
|
4221
|
+
.pr-date-range__bound dd {
|
|
4222
|
+
margin: 2px 0 0;
|
|
4223
|
+
font-size: 13px;
|
|
4224
|
+
font-weight: 600;
|
|
4225
|
+
font-variant-numeric: tabular-nums;
|
|
4226
|
+
color: var(--pr-fg);
|
|
4227
|
+
}
|
|
4228
|
+
/* The calendar sits inside the panel, which is already a surface. */
|
|
4229
|
+
.pr-date-range__calendar {
|
|
4230
|
+
width: 100%;
|
|
4231
|
+
padding: 0;
|
|
4232
|
+
border: 0;
|
|
4233
|
+
border-radius: 0;
|
|
4234
|
+
background: transparent;
|
|
4235
|
+
box-shadow: none;
|
|
4236
|
+
}
|
|
4237
|
+
.pr-date-range__actions {
|
|
4238
|
+
display: flex;
|
|
4239
|
+
justify-content: flex-end;
|
|
4240
|
+
gap: 8px;
|
|
4241
|
+
margin-top: 8px;
|
|
4242
|
+
padding-top: 8px;
|
|
4243
|
+
border-top: 1px solid var(--pr-border);
|
|
4244
|
+
}
|