@partrunner-ai/ui 2.1.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@partrunner-ai/ui",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "L1 primitives built on the PartRunner token scale. Plain CSS over --pr-* so it works in Tailwind v3, v4, or no Tailwind at all.",
5
5
  "license": "(MIT AND OFL-1.1)",
6
6
  "type": "module",
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);
@@ -3821,3 +3827,608 @@ button.pr-stepper__dot:focus-visible {
3821
3827
  justify-content: flex-end;
3822
3828
  }
3823
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
+ }