@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/styles/theme.css CHANGED
@@ -2632,6 +2632,12 @@
2632
2632
  background: var(--pr-surface);
2633
2633
  box-shadow: inset 0 0 0 1px var(--pr-border);
2634
2634
  }
2635
+ /* A compound table already inside a Card or a TableFrame: the frame is the surface. */
2636
+ .pr-table__scroll--bare {
2637
+ border-radius: 0;
2638
+ background: none;
2639
+ box-shadow: none;
2640
+ }
2635
2641
  .pr-table__scroll:focus-visible {
2636
2642
  outline: none;
2637
2643
  box-shadow: inset 0 0 0 2px var(--pr-accent);
@@ -3876,3 +3882,608 @@ button.pr-stepper__dot:focus-visible {
3876
3882
  justify-content: flex-end;
3877
3883
  }
3878
3884
  }
3885
+
3886
+ /* ───────────────────────── Page ───────────────────────── */
3887
+
3888
+ /* The page container: Crystal rhythm (16 → 24 → 32px), centred and capped, with
3889
+ one vertical stack between its children so screens stop deciding padding and
3890
+ width per file. */
3891
+ .pr-page {
3892
+ display: flex;
3893
+ flex-direction: column;
3894
+ gap: 24px;
3895
+ width: 100%;
3896
+ max-width: 1280px;
3897
+ margin-inline: auto;
3898
+ padding: 16px;
3899
+ color: var(--pr-fg);
3900
+ font-family: var(--pr-font-body, inherit);
3901
+ }
3902
+ .pr-page--narrow { max-width: 768px; }
3903
+ .pr-page--wide { max-width: 1536px; }
3904
+ .pr-page--full { max-width: none; }
3905
+ /* The page's gap is the rhythm. A header directly inside it drops its own bottom
3906
+ margin, or the recipe's first step would sit 48px above the KPIs; a header
3907
+ outside a Page keeps the margin it always had. */
3908
+ .pr-page > .pr-page-header { margin-block-end: 0; }
3909
+
3910
+ @media (min-width: 640px) {
3911
+ .pr-page { padding: 24px; }
3912
+ }
3913
+ @media (min-width: 1024px) {
3914
+ .pr-page { padding: 32px; }
3915
+ }
3916
+
3917
+ /* ───────────────────────── SectionHeading ───────────────────────── */
3918
+
3919
+ /* The step below PageHeader: an 18px Barlow title (the display face starts at
3920
+ 24px), an optional eyebrow and description, actions on the end edge. */
3921
+ .pr-section-heading {
3922
+ display: flex;
3923
+ flex-direction: column;
3924
+ gap: 12px;
3925
+ color: var(--pr-fg);
3926
+ font-family: var(--pr-font-body, inherit);
3927
+ }
3928
+ .pr-section-heading__text { min-width: 0; }
3929
+ .pr-section-heading__eyebrow {
3930
+ margin: 0 0 6px;
3931
+ font-size: 11px;
3932
+ font-weight: 600;
3933
+ letter-spacing: 0.12em;
3934
+ text-transform: uppercase;
3935
+ color: var(--pr-fg-muted);
3936
+ }
3937
+ .pr-section-heading__title {
3938
+ margin: 0;
3939
+ font-family: var(--pr-font-body, inherit);
3940
+ font-size: 18px;
3941
+ font-weight: 650;
3942
+ line-height: 1.3;
3943
+ letter-spacing: var(--pr-tracking-display, -0.022em);
3944
+ color: var(--pr-fg);
3945
+ text-wrap: balance;
3946
+ }
3947
+ .pr-section-heading__description {
3948
+ margin: 4px 0 0;
3949
+ font-size: 14px;
3950
+ line-height: 1.4;
3951
+ color: var(--pr-fg-muted);
3952
+ text-wrap: pretty;
3953
+ }
3954
+ .pr-section-heading__actions {
3955
+ display: flex;
3956
+ flex-wrap: wrap;
3957
+ align-items: center;
3958
+ gap: 8px;
3959
+ }
3960
+
3961
+ @media (min-width: 640px) {
3962
+ .pr-section-heading {
3963
+ flex-direction: row;
3964
+ align-items: flex-end;
3965
+ justify-content: space-between;
3966
+ }
3967
+ }
3968
+
3969
+ /* ───────────────────────── StatTileGrid ───────────────────────── */
3970
+
3971
+ /* One column on a phone, two on a tablet, then the requested count. */
3972
+ .pr-stat-grid {
3973
+ display: grid;
3974
+ grid-template-columns: minmax(0, 1fr);
3975
+ gap: 12px;
3976
+ }
3977
+
3978
+ @media (min-width: 640px) {
3979
+ .pr-stat-grid {
3980
+ grid-template-columns: repeat(2, minmax(0, 1fr));
3981
+ gap: 16px;
3982
+ }
3983
+ }
3984
+ @media (min-width: 1024px) {
3985
+ .pr-stat-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
3986
+ .pr-stat-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
3987
+ .pr-stat-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
3988
+ .pr-stat-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
3989
+ .pr-stat-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
3990
+ }
3991
+
3992
+ /* ───────────────────────── Toolbar parts ───────────────────────── */
3993
+
3994
+ .pr-toolbar__group {
3995
+ display: inline-flex;
3996
+ flex-wrap: wrap;
3997
+ align-items: center;
3998
+ gap: 8px;
3999
+ }
4000
+ /* Pushes what follows to the end edge from 640px up. Below, the bar wraps and
4001
+ the gap would only add a blank line. */
4002
+ .pr-toolbar__spacer {
4003
+ display: none;
4004
+ flex: 1 1 0;
4005
+ min-width: 0;
4006
+ }
4007
+
4008
+ @media (min-width: 640px) {
4009
+ .pr-toolbar__spacer { display: block; }
4010
+ }
4011
+
4012
+ /* ───────────────────────── SearchField ───────────────────────── */
4013
+
4014
+ /* The width lives on the field wrapper (`containerClassName`), never on the
4015
+ input: with a leading icon the wrapper is the layout box. */
4016
+ .pr-search-field { width: 100%; }
4017
+
4018
+ @media (min-width: 640px) {
4019
+ .pr-search-field:not(.pr-search-field--block) { width: 16rem; }
4020
+ }
4021
+
4022
+ /* ───────────────────────── FilterChip ───────────────────────── */
4023
+
4024
+ .pr-filter-chip-row {
4025
+ display: flex;
4026
+ flex-wrap: wrap;
4027
+ align-items: center;
4028
+ gap: 8px;
4029
+ }
4030
+
4031
+ /* One tap filters the list. Quiet outline at rest; the active chip is ink on
4032
+ the page, and the count rides the label in tabular figures. 40px tall: the
4033
+ chip is a control, so it keeps the package's interaction floor. */
4034
+ .pr-filter-chip {
4035
+ display: inline-flex;
4036
+ align-items: center;
4037
+ gap: 6px;
4038
+ min-height: 40px;
4039
+ padding: 0 12px;
4040
+ border: 1px solid var(--pr-border);
4041
+ border-radius: var(--pr-radius-md, 0.75rem);
4042
+ background: var(--pr-surface);
4043
+ color: var(--pr-fg-muted);
4044
+ font-family: var(--pr-font-body, inherit);
4045
+ font-size: 13px;
4046
+ font-weight: 600;
4047
+ line-height: 1;
4048
+ white-space: nowrap;
4049
+ cursor: pointer;
4050
+ transition:
4051
+ background-color 160ms var(--pr-ease, ease),
4052
+ border-color 160ms var(--pr-ease, ease),
4053
+ color 160ms var(--pr-ease, ease),
4054
+ box-shadow 160ms var(--pr-ease, ease);
4055
+ }
4056
+ .pr-filter-chip:hover:not(:disabled) {
4057
+ border-color: var(--pr-border-strong);
4058
+ color: var(--pr-fg);
4059
+ }
4060
+ .pr-filter-chip:focus-visible {
4061
+ outline: none;
4062
+ box-shadow: var(--pr-focus-ring);
4063
+ }
4064
+ .pr-filter-chip[aria-pressed='true'] {
4065
+ background: var(--pr-fg);
4066
+ border-color: var(--pr-fg);
4067
+ color: var(--pr-bg);
4068
+ }
4069
+ .pr-filter-chip:disabled {
4070
+ opacity: 0.6;
4071
+ cursor: not-allowed;
4072
+ }
4073
+ .pr-filter-chip__dot,
4074
+ .pr-filter-chip__icon { flex: 0 0 auto; }
4075
+ .pr-filter-chip__count {
4076
+ font-size: 12px;
4077
+ font-weight: 600;
4078
+ font-variant-numeric: tabular-nums;
4079
+ color: var(--pr-fg-faint);
4080
+ }
4081
+ .pr-filter-chip[aria-pressed='true'] .pr-filter-chip__count {
4082
+ color: inherit;
4083
+ opacity: 0.7;
4084
+ }
4085
+
4086
+ @media (prefers-reduced-motion: reduce) {
4087
+ .pr-filter-chip { transition: none; }
4088
+ }
4089
+
4090
+ /* ───────────────────────── SegmentedControl ───────────────────────── */
4091
+
4092
+ /* A quiet track with the checked option lifted onto the surface. Each option
4093
+ is a 40px control (44 for `lg`) and the track adds nothing around them, so
4094
+ the control is exactly as tall as the inputs and filter triggers beside it in
4095
+ a toolbar row. The unchecked options show the track wash; the checked one
4096
+ sits on the surface with the track's own radius. */
4097
+ .pr-segmented {
4098
+ display: inline-flex;
4099
+ align-items: stretch;
4100
+ gap: 0;
4101
+ padding: 0;
4102
+ border-radius: var(--pr-radius-md, 0.75rem);
4103
+ background: color-mix(in srgb, var(--pr-fg) 6%, transparent);
4104
+ color: var(--pr-fg);
4105
+ font-family: var(--pr-font-body, inherit);
4106
+ }
4107
+ .pr-segmented--block { display: flex; width: 100%; }
4108
+ .pr-segmented__option {
4109
+ position: relative;
4110
+ display: inline-flex;
4111
+ align-items: center;
4112
+ justify-content: center;
4113
+ gap: 6px;
4114
+ min-height: 40px;
4115
+ padding: 0 14px;
4116
+ border: 1px solid transparent;
4117
+ border-radius: var(--pr-radius-md, 0.75rem);
4118
+ background: transparent;
4119
+ color: var(--pr-fg-muted);
4120
+ font: inherit;
4121
+ font-size: 13px;
4122
+ font-weight: 600;
4123
+ line-height: 1;
4124
+ white-space: nowrap;
4125
+ cursor: pointer;
4126
+ transition:
4127
+ background-color 160ms var(--pr-ease, ease),
4128
+ border-color 160ms var(--pr-ease, ease),
4129
+ color 160ms var(--pr-ease, ease),
4130
+ box-shadow 160ms var(--pr-ease, ease);
4131
+ }
4132
+ .pr-segmented--lg .pr-segmented__option {
4133
+ min-height: 44px;
4134
+ padding: 0 16px;
4135
+ font-size: 14px;
4136
+ }
4137
+ .pr-segmented--block .pr-segmented__option { flex: 1 1 0; }
4138
+ .pr-segmented__option:hover:not(:disabled) { color: var(--pr-fg); }
4139
+ .pr-segmented__option[aria-checked='true'] {
4140
+ background: var(--pr-surface);
4141
+ border-color: var(--pr-border);
4142
+ color: var(--pr-fg);
4143
+ box-shadow: var(--pr-shadow-xs);
4144
+ }
4145
+ .pr-segmented__option:focus-visible {
4146
+ z-index: 1;
4147
+ outline: none;
4148
+ box-shadow: var(--pr-focus-ring);
4149
+ }
4150
+ .pr-segmented__option:disabled {
4151
+ opacity: 0.5;
4152
+ cursor: not-allowed;
4153
+ }
4154
+ .pr-segmented__icon { flex: 0 0 auto; }
4155
+ .pr-segmented__count {
4156
+ font-size: 12px;
4157
+ font-weight: 600;
4158
+ font-variant-numeric: tabular-nums;
4159
+ color: var(--pr-fg-faint);
4160
+ }
4161
+ .pr-segmented__option[aria-checked='true'] .pr-segmented__count { color: var(--pr-fg-muted); }
4162
+
4163
+ @media (prefers-reduced-motion: reduce) {
4164
+ .pr-segmented__option { transition: none; }
4165
+ }
4166
+
4167
+ /* ───────────────────────── StatusDot ───────────────────────── */
4168
+
4169
+ /* The colour a Badge of the same tone paints, as a dot beside visible text. */
4170
+ .pr-status-dot {
4171
+ display: inline-block;
4172
+ flex: 0 0 auto;
4173
+ width: 8px;
4174
+ height: 8px;
4175
+ border-radius: 999px;
4176
+ background: var(--pr-fg-faint);
4177
+ }
4178
+ .pr-status-dot--md { width: 10px; height: 10px; }
4179
+ .pr-status-dot--neutral { background: var(--pr-fg-faint); }
4180
+ .pr-status-dot--yellow { background: var(--pr-tone-yellow-fg); }
4181
+ .pr-status-dot--blue { background: var(--pr-tone-blue-fg); }
4182
+ .pr-status-dot--amber { background: var(--pr-tone-amber-fg); }
4183
+ .pr-status-dot--purple { background: var(--pr-tone-purple-fg); }
4184
+ .pr-status-dot--green { background: var(--pr-tone-green-fg); }
4185
+ .pr-status-dot--rose { background: var(--pr-tone-rose-fg); }
4186
+ .pr-status-dot--danger { background: var(--pr-danger); }
4187
+ .pr-status-dot--success { background: var(--pr-success); }
4188
+ .pr-status-dot--warning { background: var(--pr-warning); }
4189
+ .pr-status-dot--info { background: var(--pr-info); }
4190
+
4191
+ /* ───────────────────────── IconTile ───────────────────────── */
4192
+
4193
+ /* The same chip StatTile paints its icon in, on its own: neutral by default,
4194
+ the audited tone pairs otherwise. Non-text, so the 3:1 floor governs. */
4195
+ .pr-icon-tile {
4196
+ display: inline-flex;
4197
+ flex: 0 0 auto;
4198
+ align-items: center;
4199
+ justify-content: center;
4200
+ width: 36px;
4201
+ height: 36px;
4202
+ border-radius: var(--pr-radius-sm, 0.625rem);
4203
+ background: var(--pr-border);
4204
+ color: var(--pr-fg-muted);
4205
+ }
4206
+ .pr-icon-tile--sm { width: 28px; height: 28px; border-radius: var(--pr-radius-xs, 0.375rem); }
4207
+ .pr-icon-tile--lg { width: 44px; height: 44px; border-radius: var(--pr-radius-md, 0.75rem); }
4208
+ .pr-icon-tile--yellow { background: var(--pr-tone-yellow-bg); color: var(--pr-tone-yellow-fg); }
4209
+ .pr-icon-tile--blue { background: var(--pr-tone-blue-bg); color: var(--pr-tone-blue-fg); }
4210
+ .pr-icon-tile--amber { background: var(--pr-tone-amber-bg); color: var(--pr-tone-amber-fg); }
4211
+ .pr-icon-tile--purple { background: var(--pr-tone-purple-bg); color: var(--pr-tone-purple-fg); }
4212
+ .pr-icon-tile--green { background: var(--pr-tone-green-bg); color: var(--pr-tone-green-fg); }
4213
+ .pr-icon-tile--rose { background: var(--pr-tone-rose-bg); color: var(--pr-tone-rose-fg); }
4214
+ .pr-icon-tile--danger {
4215
+ background: color-mix(in srgb, var(--pr-danger) 14%, transparent);
4216
+ color: var(--pr-danger);
4217
+ }
4218
+ .pr-icon-tile--success {
4219
+ background: color-mix(in srgb, var(--pr-success) 14%, transparent);
4220
+ color: var(--pr-success);
4221
+ }
4222
+ .pr-icon-tile--warning {
4223
+ background: color-mix(in srgb, var(--pr-warning) 14%, transparent);
4224
+ color: var(--pr-warning);
4225
+ }
4226
+ .pr-icon-tile--info {
4227
+ background: color-mix(in srgb, var(--pr-info) 14%, transparent);
4228
+ color: var(--pr-info);
4229
+ }
4230
+
4231
+ /* ───────────────────────── Avatar ───────────────────────── */
4232
+
4233
+ /* A person by initials in a stable tint. The root is the named image; the
4234
+ initials inside are decoration. */
4235
+ .pr-avatar {
4236
+ position: relative;
4237
+ display: inline-flex;
4238
+ flex: 0 0 auto;
4239
+ align-items: center;
4240
+ justify-content: center;
4241
+ overflow: hidden;
4242
+ width: 24px;
4243
+ height: 24px;
4244
+ border-radius: 999px;
4245
+ background: var(--pr-tone-blue-bg);
4246
+ color: var(--pr-tone-blue-fg);
4247
+ font-family: var(--pr-font-body, inherit);
4248
+ font-size: 9px;
4249
+ font-weight: 700;
4250
+ line-height: 1;
4251
+ letter-spacing: 0.02em;
4252
+ user-select: none;
4253
+ }
4254
+ .pr-avatar--xs { width: 20px; height: 20px; font-size: 8px; }
4255
+ .pr-avatar--md { width: 32px; height: 32px; font-size: 11px; }
4256
+ .pr-avatar--lg { width: 40px; height: 40px; font-size: 13px; }
4257
+ .pr-avatar--yellow { background: var(--pr-tone-yellow-bg); color: var(--pr-tone-yellow-fg); }
4258
+ .pr-avatar--blue { background: var(--pr-tone-blue-bg); color: var(--pr-tone-blue-fg); }
4259
+ .pr-avatar--amber { background: var(--pr-tone-amber-bg); color: var(--pr-tone-amber-fg); }
4260
+ .pr-avatar--purple { background: var(--pr-tone-purple-bg); color: var(--pr-tone-purple-fg); }
4261
+ .pr-avatar--green { background: var(--pr-tone-green-bg); color: var(--pr-tone-green-fg); }
4262
+ .pr-avatar--rose { background: var(--pr-tone-rose-bg); color: var(--pr-tone-rose-fg); }
4263
+ .pr-avatar__image {
4264
+ display: block;
4265
+ width: 100%;
4266
+ height: 100%;
4267
+ object-fit: cover;
4268
+ }
4269
+ .pr-avatar__initials { display: inline-block; }
4270
+
4271
+ /* ───────────────────────── TableFrame ───────────────────────── */
4272
+
4273
+ /* A strict assembly of Card, CardHeader and a bleeding CardContent. `clip`
4274
+ rounds the corners without making the frame a scroll container, so a pinned
4275
+ header inside a capped table keeps working. */
4276
+ .pr-table-frame { position: relative; }
4277
+ .pr-card.pr-table-frame { overflow: clip; }
4278
+ .pr-table-frame__header { align-items: center; }
4279
+ .pr-table-frame__title {
4280
+ display: inline-flex;
4281
+ align-items: center;
4282
+ gap: 8px;
4283
+ min-width: 0;
4284
+ max-width: 100%;
4285
+ }
4286
+ .pr-table-frame__title-text {
4287
+ min-width: 0;
4288
+ overflow: hidden;
4289
+ text-overflow: ellipsis;
4290
+ white-space: nowrap;
4291
+ }
4292
+ .pr-table-frame__icon {
4293
+ flex: 0 0 auto;
4294
+ color: var(--pr-fg-muted);
4295
+ }
4296
+ .pr-table-frame__count { font-variant-numeric: tabular-nums; }
4297
+ /* The header and the rows meet on one line; a frame with no header starts at the rows. */
4298
+ .pr-table-frame__body { border-top: 1px solid var(--pr-border); }
4299
+ .pr-table-frame__body:first-child { border-top: 0; }
4300
+ /* Any table inside the frame drops its own surface: the frame is the border. */
4301
+ .pr-table-frame .pr-table__shell {
4302
+ border: 0;
4303
+ border-radius: 0;
4304
+ background: none;
4305
+ }
4306
+ .pr-table-frame .pr-table__scroll--compound {
4307
+ border-radius: 0;
4308
+ background: none;
4309
+ box-shadow: none;
4310
+ }
4311
+ /* The bleeding body ends with a negative margin the footer cancels, so the two
4312
+ meet exactly; the footer then bleeds to the same edges. */
4313
+ .pr-table-frame__footer {
4314
+ margin-top: var(--pr-card-pad, 0px);
4315
+ margin-inline: calc(-1 * var(--pr-card-pad, 0px));
4316
+ margin-bottom: calc(-1 * var(--pr-card-pad, 0px));
4317
+ padding: 12px var(--pr-card-pad, 16px);
4318
+ border-top: 1px solid var(--pr-border);
4319
+ background: var(--pr-surface);
4320
+ }
4321
+
4322
+ /* The compound sibling of `Table loading`: same rows, announced once. */
4323
+ .pr-table-skeleton { display: block; }
4324
+
4325
+ /* ───────────────────────── DateRangeFilter ───────────────────────── */
4326
+
4327
+ /* One pill names the window of a list and opens the presets plus a calendar
4328
+ for a custom range. The trigger shares its box with the MultiSelect filter
4329
+ so a toolbar row aligns; an active window takes the same yellow tint. */
4330
+ .pr-date-range {
4331
+ position: relative;
4332
+ display: inline-flex;
4333
+ min-width: 0;
4334
+ font-family: var(--pr-font-body, inherit);
4335
+ }
4336
+ .pr-date-range__trigger {
4337
+ display: inline-flex;
4338
+ align-items: center;
4339
+ gap: 8px;
4340
+ min-height: 40px;
4341
+ padding: 0 10px;
4342
+ border: 1px solid var(--pr-border);
4343
+ border-radius: var(--pr-radius-md, 0.75rem);
4344
+ background: var(--pr-surface);
4345
+ color: var(--pr-fg);
4346
+ font-size: 12px;
4347
+ font-weight: 500;
4348
+ line-height: 1;
4349
+ white-space: nowrap;
4350
+ cursor: pointer;
4351
+ transition-property: border-color, box-shadow, background-color;
4352
+ transition-duration: 160ms;
4353
+ transition-timing-function: var(--pr-ease, ease);
4354
+ }
4355
+ .pr-date-range__trigger--md {
4356
+ padding: 0 12px;
4357
+ font-size: 14px;
4358
+ }
4359
+ .pr-date-range__trigger:hover { border-color: var(--pr-border-strong); }
4360
+ .pr-date-range__trigger--active {
4361
+ background: var(--pr-tone-yellow-bg);
4362
+ border-color: var(--pr-tone-yellow-border);
4363
+ font-weight: 650;
4364
+ }
4365
+ .pr-date-range__trigger--open,
4366
+ .pr-date-range__trigger:focus-visible {
4367
+ outline: none;
4368
+ border-color: var(--pr-accent-strong);
4369
+ box-shadow: var(--pr-focus-ring);
4370
+ }
4371
+ .pr-date-range__icon,
4372
+ .pr-date-range__chevron {
4373
+ flex: 0 0 auto;
4374
+ color: var(--pr-fg-faint);
4375
+ }
4376
+ .pr-date-range__trigger--active .pr-date-range__icon { color: var(--pr-fg-muted); }
4377
+ .pr-date-range__chevron { transition: transform 160ms var(--pr-ease, ease); }
4378
+ .pr-date-range__trigger--open .pr-date-range__chevron { transform: rotate(180deg); }
4379
+ .pr-date-range__value {
4380
+ min-width: 0;
4381
+ overflow: hidden;
4382
+ text-overflow: ellipsis;
4383
+ white-space: nowrap;
4384
+ }
4385
+ /* The panel owns its inset (popover padding is `none`): the calendar is 348px wide. */
4386
+ .pr-date-range__content {
4387
+ width: min(372px, calc(100vw - 16px));
4388
+ padding: 6px;
4389
+ }
4390
+ .pr-date-range__presets {
4391
+ display: flex;
4392
+ flex-direction: column;
4393
+ gap: 2px;
4394
+ padding: 2px;
4395
+ }
4396
+ .pr-date-range__preset {
4397
+ display: flex;
4398
+ align-items: center;
4399
+ justify-content: space-between;
4400
+ gap: 12px;
4401
+ width: 100%;
4402
+ min-height: 40px;
4403
+ padding: 0 10px;
4404
+ border: 0;
4405
+ border-radius: var(--pr-radius-sm, 0.625rem);
4406
+ background: transparent;
4407
+ color: var(--pr-fg-muted);
4408
+ font: inherit;
4409
+ font-size: 14px;
4410
+ text-align: left;
4411
+ cursor: pointer;
4412
+ transition-property: background-color, color;
4413
+ transition-duration: 160ms;
4414
+ transition-timing-function: var(--pr-ease, ease);
4415
+ }
4416
+ .pr-date-range__preset:hover {
4417
+ background: var(--pr-surface);
4418
+ color: var(--pr-fg);
4419
+ }
4420
+ .pr-date-range__preset:focus-visible {
4421
+ outline: none;
4422
+ box-shadow: var(--pr-focus-ring);
4423
+ }
4424
+ .pr-date-range__preset[aria-pressed='true'] {
4425
+ color: var(--pr-fg);
4426
+ font-weight: 650;
4427
+ }
4428
+ /* A preset whose range fails the invariant or the limits stays visible, muted. */
4429
+ .pr-date-range__preset:disabled {
4430
+ opacity: 0.5;
4431
+ cursor: not-allowed;
4432
+ }
4433
+ .pr-date-range__trigger[data-invalid] { border-style: dashed; }
4434
+ .pr-date-range__check {
4435
+ flex: 0 0 auto;
4436
+ color: var(--pr-fg);
4437
+ }
4438
+ .pr-date-range__custom {
4439
+ margin-top: 6px;
4440
+ padding: 10px 6px 6px;
4441
+ border-top: 1px solid var(--pr-border);
4442
+ }
4443
+ .pr-date-range__custom-title {
4444
+ margin: 0 0 8px;
4445
+ padding: 0 4px;
4446
+ font-size: 11px;
4447
+ font-weight: 600;
4448
+ letter-spacing: 0.12em;
4449
+ text-transform: uppercase;
4450
+ color: var(--pr-fg-muted);
4451
+ }
4452
+ .pr-date-range__bounds {
4453
+ display: grid;
4454
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4455
+ gap: 8px;
4456
+ margin: 0 0 8px;
4457
+ padding: 0 4px;
4458
+ }
4459
+ .pr-date-range__bound dt {
4460
+ font-size: 11px;
4461
+ font-weight: 600;
4462
+ letter-spacing: 0.08em;
4463
+ text-transform: uppercase;
4464
+ color: var(--pr-fg-faint);
4465
+ }
4466
+ .pr-date-range__bound dd {
4467
+ margin: 2px 0 0;
4468
+ font-size: 13px;
4469
+ font-weight: 600;
4470
+ font-variant-numeric: tabular-nums;
4471
+ color: var(--pr-fg);
4472
+ }
4473
+ /* The calendar sits inside the panel, which is already a surface. */
4474
+ .pr-date-range__calendar {
4475
+ width: 100%;
4476
+ padding: 0;
4477
+ border: 0;
4478
+ border-radius: 0;
4479
+ background: transparent;
4480
+ box-shadow: none;
4481
+ }
4482
+ .pr-date-range__actions {
4483
+ display: flex;
4484
+ justify-content: flex-end;
4485
+ gap: 8px;
4486
+ margin-top: 8px;
4487
+ padding-top: 8px;
4488
+ border-top: 1px solid var(--pr-border);
4489
+ }