@partrunner-ai/ui 2.4.4 → 2.5.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/DESIGN.md +448 -0
- package/README.md +19 -26
- package/dist/index.cjs +367 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +228 -4
- package/dist/index.d.ts +228 -4
- package/dist/index.js +361 -8
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/recipes/form.md +296 -0
- package/recipes/inbox.md +461 -0
- package/recipes/list-page.md +290 -0
- package/recipes/record-page.md +198 -0
- package/recipes/states.md +78 -0
- package/recipes/work-queue.md +220 -0
- package/styles/light.css +494 -2
- package/styles/theme.css +494 -2
- package/styles/ui.css +494 -2
package/styles/theme.css
CHANGED
|
@@ -1775,7 +1775,7 @@
|
|
|
1775
1775
|
/* ─────────────────── Validation summary ─────────────────── */
|
|
1776
1776
|
|
|
1777
1777
|
.pr-validation-summary {
|
|
1778
|
-
padding: 16px;
|
|
1778
|
+
padding: 12px 16px;
|
|
1779
1779
|
border: 1px solid var(--pr-danger);
|
|
1780
1780
|
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1781
1781
|
background: var(--pr-tone-rose-bg);
|
|
@@ -1784,12 +1784,17 @@
|
|
|
1784
1784
|
}
|
|
1785
1785
|
.pr-validation-summary:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
1786
1786
|
.pr-validation-summary__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
|
|
1787
|
-
.pr-validation-summary__list { margin:
|
|
1787
|
+
.pr-validation-summary__list { margin: 6px 0 0; padding: 0; list-style: none; }
|
|
1788
1788
|
.pr-validation-summary__item { margin: 0; }
|
|
1789
|
+
/* Each link used to be a 40px-tall row that also took 40px of layout, so four
|
|
1790
|
+
errors stood 160px tall before the title. The link keeps its 40px target, but a
|
|
1791
|
+
negative block margin of 8px gives back the space: each line takes about 24px
|
|
1792
|
+
(the text plus 4px) and the target boxes overlap their neighbours. */
|
|
1789
1793
|
.pr-validation-summary__link {
|
|
1790
1794
|
display: flex;
|
|
1791
1795
|
align-items: center;
|
|
1792
1796
|
min-height: 40px;
|
|
1797
|
+
margin-block: -8px;
|
|
1793
1798
|
color: var(--pr-danger);
|
|
1794
1799
|
font-size: 14px;
|
|
1795
1800
|
line-height: 1.4;
|
|
@@ -4012,6 +4017,8 @@ button.pr-stepper__dot:focus-visible {
|
|
|
4012
4017
|
font-family: var(--pr-font-body, inherit);
|
|
4013
4018
|
}
|
|
4014
4019
|
.pr-section-heading__text { min-width: 0; }
|
|
4020
|
+
/* A heading above a list of facts needs air; Card has no flow gap of its own. */
|
|
4021
|
+
.pr-section-heading + .pr-detail-list { margin-block-start: 16px; }
|
|
4015
4022
|
.pr-section-heading__eyebrow {
|
|
4016
4023
|
margin: 0 0 6px;
|
|
4017
4024
|
font-size: 11px;
|
|
@@ -4189,6 +4196,12 @@ button.pr-stepper__dot:focus-visible {
|
|
|
4189
4196
|
background: color-mix(in srgb, var(--pr-fg) 6%, transparent);
|
|
4190
4197
|
color: var(--pr-fg);
|
|
4191
4198
|
font-family: var(--pr-font-body, inherit);
|
|
4199
|
+
/* Hugs its options. A non-auto width is not stretched by a flex column or a
|
|
4200
|
+
grid, so the track stays as wide as its options without any `align-self`
|
|
4201
|
+
or `justify-self`: in a toolbar row with `align-items: center` it keeps the
|
|
4202
|
+
row's centring. `fullWidth` (`--block`) is the opt-in for the full width. */
|
|
4203
|
+
width: fit-content;
|
|
4204
|
+
max-width: 100%;
|
|
4192
4205
|
}
|
|
4193
4206
|
.pr-segmented--block { display: flex; width: 100%; }
|
|
4194
4207
|
.pr-segmented__option {
|
|
@@ -5147,3 +5160,482 @@ button.pr-stepper__dot:focus-visible {
|
|
|
5147
5160
|
white-space: nowrap;
|
|
5148
5161
|
text-overflow: ellipsis;
|
|
5149
5162
|
}
|
|
5163
|
+
|
|
5164
|
+
/* ───────────────────────── Notice ───────────────────────── */
|
|
5165
|
+
|
|
5166
|
+
/* A calm inline message: soft tone tint, 1px tone border, no shadow. The tint
|
|
5167
|
+
and the icon colour come from the same semantic variables as Badge. */
|
|
5168
|
+
.pr-notice {
|
|
5169
|
+
--pr-notice-tone: var(--pr-info);
|
|
5170
|
+
display: flex;
|
|
5171
|
+
flex-wrap: wrap;
|
|
5172
|
+
align-items: flex-start;
|
|
5173
|
+
gap: 8px 12px;
|
|
5174
|
+
padding: 12px 16px;
|
|
5175
|
+
border: 1px solid color-mix(in srgb, var(--pr-notice-tone) 32%, transparent);
|
|
5176
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
5177
|
+
background: color-mix(in srgb, var(--pr-notice-tone) 10%, var(--pr-surface));
|
|
5178
|
+
color: var(--pr-fg);
|
|
5179
|
+
font-family: var(--pr-font-body, inherit);
|
|
5180
|
+
font-size: 14px;
|
|
5181
|
+
line-height: 1.45;
|
|
5182
|
+
}
|
|
5183
|
+
.pr-notice--neutral {
|
|
5184
|
+
--pr-notice-tone: var(--pr-fg-muted);
|
|
5185
|
+
background: var(--pr-bg);
|
|
5186
|
+
border-color: var(--pr-border);
|
|
5187
|
+
}
|
|
5188
|
+
.pr-notice--info { --pr-notice-tone: var(--pr-info); }
|
|
5189
|
+
.pr-notice--success { --pr-notice-tone: var(--pr-success); }
|
|
5190
|
+
.pr-notice--warning { --pr-notice-tone: var(--pr-warning); }
|
|
5191
|
+
.pr-notice--danger { --pr-notice-tone: var(--pr-danger); }
|
|
5192
|
+
.pr-notice--sm { padding: 8px 12px; gap: 4px 8px; }
|
|
5193
|
+
|
|
5194
|
+
.pr-notice__icon {
|
|
5195
|
+
display: inline-flex;
|
|
5196
|
+
flex: none;
|
|
5197
|
+
align-items: center;
|
|
5198
|
+
height: 1.45em;
|
|
5199
|
+
color: var(--pr-notice-tone);
|
|
5200
|
+
}
|
|
5201
|
+
.pr-notice__body {
|
|
5202
|
+
flex: 1 1 14rem;
|
|
5203
|
+
min-width: 0;
|
|
5204
|
+
}
|
|
5205
|
+
.pr-notice__title {
|
|
5206
|
+
margin: 0;
|
|
5207
|
+
font-size: 14px;
|
|
5208
|
+
font-weight: 650;
|
|
5209
|
+
line-height: 1.45;
|
|
5210
|
+
color: var(--pr-fg);
|
|
5211
|
+
}
|
|
5212
|
+
.pr-notice__text {
|
|
5213
|
+
color: var(--pr-fg);
|
|
5214
|
+
overflow-wrap: anywhere;
|
|
5215
|
+
}
|
|
5216
|
+
.pr-notice__title + .pr-notice__text { margin-top: 2px; }
|
|
5217
|
+
/* Wraps under the text on a narrow width; sits at the end edge on a wide one. */
|
|
5218
|
+
.pr-notice__actions {
|
|
5219
|
+
display: flex;
|
|
5220
|
+
flex-wrap: wrap;
|
|
5221
|
+
align-items: center;
|
|
5222
|
+
gap: 8px;
|
|
5223
|
+
margin-inline-start: auto;
|
|
5224
|
+
}
|
|
5225
|
+
.pr-notice__dismiss { flex: none; margin-block: -6px; margin-inline: 0 -8px; }
|
|
5226
|
+
@media (max-width: 639px) {
|
|
5227
|
+
.pr-notice__body { flex-basis: 10rem; }
|
|
5228
|
+
.pr-notice__dismiss { order: 2; }
|
|
5229
|
+
.pr-notice__actions { order: 3; flex-basis: 100%; margin-inline-start: 0; padding-inline-start: 30px; }
|
|
5230
|
+
}
|
|
5231
|
+
|
|
5232
|
+
/* ───────────────────────── DetailList ───────────────────────── */
|
|
5233
|
+
|
|
5234
|
+
/* The facts of one record. Stacked: label above value, in a grid that never
|
|
5235
|
+
drops below 12rem per column and never exceeds the requested count. */
|
|
5236
|
+
.pr-detail-list {
|
|
5237
|
+
--pr-detail-cols: 2;
|
|
5238
|
+
--pr-detail-gap-y: 16px;
|
|
5239
|
+
display: grid;
|
|
5240
|
+
grid-template-columns: repeat(auto-fit, minmax(max(12rem, calc((100% - (var(--pr-detail-cols) - 1) * 24px) / var(--pr-detail-cols))), 1fr));
|
|
5241
|
+
gap: var(--pr-detail-gap-y) 24px;
|
|
5242
|
+
margin: 0;
|
|
5243
|
+
padding: 0;
|
|
5244
|
+
font-family: var(--pr-font-body, inherit);
|
|
5245
|
+
}
|
|
5246
|
+
.pr-detail-list--cols-1 { --pr-detail-cols: 1; }
|
|
5247
|
+
.pr-detail-list--cols-2 { --pr-detail-cols: 2; }
|
|
5248
|
+
.pr-detail-list--cols-3 { --pr-detail-cols: 3; }
|
|
5249
|
+
.pr-detail-list--cols-4 { --pr-detail-cols: 4; }
|
|
5250
|
+
.pr-detail-list--compact { --pr-detail-gap-y: 8px; }
|
|
5251
|
+
|
|
5252
|
+
.pr-detail-item { min-width: 0; margin: 0; }
|
|
5253
|
+
.pr-detail-item--span-2 { grid-column: span 2; }
|
|
5254
|
+
.pr-detail-item--span-full { grid-column: 1 / -1; }
|
|
5255
|
+
@media (max-width: 479px) {
|
|
5256
|
+
.pr-detail-item--span-2 { grid-column: 1 / -1; }
|
|
5257
|
+
}
|
|
5258
|
+
.pr-detail-item__label {
|
|
5259
|
+
margin: 0 0 2px;
|
|
5260
|
+
font-size: 12px;
|
|
5261
|
+
font-weight: 500;
|
|
5262
|
+
line-height: 1.4;
|
|
5263
|
+
color: var(--pr-fg-muted);
|
|
5264
|
+
}
|
|
5265
|
+
.pr-detail-item__value {
|
|
5266
|
+
margin: 0;
|
|
5267
|
+
font-size: 14px;
|
|
5268
|
+
font-weight: 500;
|
|
5269
|
+
line-height: 1.45;
|
|
5270
|
+
color: var(--pr-fg);
|
|
5271
|
+
overflow-wrap: anywhere;
|
|
5272
|
+
}
|
|
5273
|
+
.pr-detail-item__value--empty {
|
|
5274
|
+
font-weight: 400;
|
|
5275
|
+
color: var(--pr-fg-muted);
|
|
5276
|
+
}
|
|
5277
|
+
.pr-detail-item--numeric .pr-detail-item__value { font-variant-numeric: tabular-nums; }
|
|
5278
|
+
|
|
5279
|
+
/* Inline: one row per fact, hairline between rows, for narrow side panels. */
|
|
5280
|
+
.pr-detail-list--inline {
|
|
5281
|
+
display: block;
|
|
5282
|
+
}
|
|
5283
|
+
.pr-detail-list--inline .pr-detail-item {
|
|
5284
|
+
display: flex;
|
|
5285
|
+
align-items: baseline;
|
|
5286
|
+
justify-content: space-between;
|
|
5287
|
+
gap: 16px;
|
|
5288
|
+
padding: 12px 0;
|
|
5289
|
+
border-top: 1px solid var(--pr-border);
|
|
5290
|
+
}
|
|
5291
|
+
.pr-detail-list--inline .pr-detail-item:first-child { border-top: 0; padding-top: 0; }
|
|
5292
|
+
.pr-detail-list--inline .pr-detail-item:last-child { padding-bottom: 0; }
|
|
5293
|
+
.pr-detail-list--inline.pr-detail-list--compact .pr-detail-item { padding: 8px 0; }
|
|
5294
|
+
.pr-detail-list--inline .pr-detail-item__label { flex: none; max-width: 45%; margin: 0; }
|
|
5295
|
+
.pr-detail-list--inline .pr-detail-item__value { min-width: 0; text-align: end; }
|
|
5296
|
+
.pr-detail-list--inline .pr-detail-item--numeric .pr-detail-item__value { text-align: end; }
|
|
5297
|
+
|
|
5298
|
+
/* ───────────────────────── ItemList ───────────────────────── */
|
|
5299
|
+
|
|
5300
|
+
.pr-item-list {
|
|
5301
|
+
display: flex;
|
|
5302
|
+
flex-direction: column;
|
|
5303
|
+
margin: 0;
|
|
5304
|
+
padding: 0;
|
|
5305
|
+
list-style: none;
|
|
5306
|
+
font-family: var(--pr-font-body, inherit);
|
|
5307
|
+
}
|
|
5308
|
+
.pr-item-list--divided > .pr-item-row + .pr-item-row {
|
|
5309
|
+
border-top: 1px solid var(--pr-border);
|
|
5310
|
+
}
|
|
5311
|
+
|
|
5312
|
+
.pr-item-row {
|
|
5313
|
+
position: relative;
|
|
5314
|
+
margin: 0;
|
|
5315
|
+
padding: 0;
|
|
5316
|
+
list-style: none;
|
|
5317
|
+
}
|
|
5318
|
+
.pr-item-row__main {
|
|
5319
|
+
--pr-item-min: 44px;
|
|
5320
|
+
display: flex;
|
|
5321
|
+
align-items: center;
|
|
5322
|
+
gap: 12px;
|
|
5323
|
+
width: 100%;
|
|
5324
|
+
min-height: var(--pr-item-min);
|
|
5325
|
+
padding: 10px 16px;
|
|
5326
|
+
border: 0;
|
|
5327
|
+
border-radius: 0;
|
|
5328
|
+
background: transparent;
|
|
5329
|
+
/* The row's own background: the unread dot ring uses it to blend in. */
|
|
5330
|
+
--pr-item-bg: var(--pr-surface);
|
|
5331
|
+
color: var(--pr-fg);
|
|
5332
|
+
font: inherit;
|
|
5333
|
+
text-align: start;
|
|
5334
|
+
text-decoration: none;
|
|
5335
|
+
cursor: pointer;
|
|
5336
|
+
transition: background-color 160ms var(--pr-ease, ease);
|
|
5337
|
+
}
|
|
5338
|
+
/* Compact: the dense work-queue rhythm. Three text lines are 59 px, with fixed line heights. */
|
|
5339
|
+
.pr-item-list--compact .pr-item-row__main {
|
|
5340
|
+
--pr-item-min: 36px;
|
|
5341
|
+
align-items: flex-start;
|
|
5342
|
+
gap: 10px;
|
|
5343
|
+
padding-block: 5px;
|
|
5344
|
+
padding-inline: 14px 12px;
|
|
5345
|
+
}
|
|
5346
|
+
.pr-item-list--compact .pr-item-row__leading { padding-block-start: 2px; }
|
|
5347
|
+
.pr-item-list--compact .pr-item-row__trailing { align-self: center; }
|
|
5348
|
+
.pr-item-list--compact .pr-item-row__body { gap: 0; align-self: center; }
|
|
5349
|
+
.pr-item-list--compact .pr-item-row__top { align-items: center; }
|
|
5350
|
+
.pr-item-list--compact .pr-item-row__title { line-height: 18px; }
|
|
5351
|
+
.pr-item-list--compact .pr-item-row__description { line-height: 16px; }
|
|
5352
|
+
.pr-item-list--compact .pr-item-row__meta,
|
|
5353
|
+
.pr-item-list--compact .pr-item-row__footer { line-height: 15px; }
|
|
5354
|
+
.pr-item-list--compact .pr-item-row__dot--overlay { inset-block-start: 0; }
|
|
5355
|
+
/* A footer that starts with a badge is as tall as the badge: 18 px with a sm badge. */
|
|
5356
|
+
.pr-item-list--compact .pr-item-row__footer .pr-badge { margin-block: 0; line-height: 14px; }
|
|
5357
|
+
.pr-item-row__main:hover:not(:disabled):not([aria-disabled='true']) {
|
|
5358
|
+
--pr-item-bg: var(--pr-elevated);
|
|
5359
|
+
background: var(--pr-elevated);
|
|
5360
|
+
}
|
|
5361
|
+
.pr-item-row__main:focus-visible {
|
|
5362
|
+
outline: none;
|
|
5363
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
5364
|
+
}
|
|
5365
|
+
.pr-item-row[data-selected] .pr-item-row__main {
|
|
5366
|
+
--pr-item-bg: color-mix(in srgb, var(--pr-surface) 70%, var(--pr-tone-yellow-bg));
|
|
5367
|
+
background: var(--pr-item-bg);
|
|
5368
|
+
box-shadow: inset 3px 0 0 var(--pr-accent);
|
|
5369
|
+
}
|
|
5370
|
+
.pr-item-row[data-selected] .pr-item-row__main:focus-visible {
|
|
5371
|
+
box-shadow: inset 3px 0 0 var(--pr-accent), inset 0 0 0 2px var(--pr-accent);
|
|
5372
|
+
}
|
|
5373
|
+
/* Tone bar. A selected row keeps its tint and swaps the accent edge for the tone bar. */
|
|
5374
|
+
.pr-item-row[data-tone]::before {
|
|
5375
|
+
content: '';
|
|
5376
|
+
position: absolute;
|
|
5377
|
+
inset-block: 0;
|
|
5378
|
+
inset-inline-start: 0;
|
|
5379
|
+
width: 3px;
|
|
5380
|
+
background: var(--pr-item-tone);
|
|
5381
|
+
pointer-events: none;
|
|
5382
|
+
z-index: 1;
|
|
5383
|
+
}
|
|
5384
|
+
.pr-item-row[data-tone='neutral'] { --pr-item-tone: var(--pr-fg-muted); }
|
|
5385
|
+
.pr-item-row[data-tone='info'] { --pr-item-tone: var(--pr-info); }
|
|
5386
|
+
.pr-item-row[data-tone='success'] { --pr-item-tone: var(--pr-success); }
|
|
5387
|
+
.pr-item-row[data-tone='warning'] { --pr-item-tone: var(--pr-warning); }
|
|
5388
|
+
.pr-item-row[data-tone='danger'] { --pr-item-tone: var(--pr-danger); }
|
|
5389
|
+
.pr-item-row[data-selected][data-tone] .pr-item-row__main { box-shadow: none; }
|
|
5390
|
+
.pr-item-row[data-selected][data-tone] .pr-item-row__main:focus-visible {
|
|
5391
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
5392
|
+
}
|
|
5393
|
+
.pr-item-row__main:disabled,
|
|
5394
|
+
.pr-item-row__main[aria-disabled='true'] {
|
|
5395
|
+
cursor: not-allowed;
|
|
5396
|
+
opacity: 0.55;
|
|
5397
|
+
}
|
|
5398
|
+
.pr-item-row__leading,
|
|
5399
|
+
.pr-item-row__trailing {
|
|
5400
|
+
display: inline-flex;
|
|
5401
|
+
flex: none;
|
|
5402
|
+
align-items: center;
|
|
5403
|
+
}
|
|
5404
|
+
.pr-item-row__leading { position: relative; }
|
|
5405
|
+
.pr-item-row__body {
|
|
5406
|
+
display: flex;
|
|
5407
|
+
flex: 1 1 0;
|
|
5408
|
+
flex-direction: column;
|
|
5409
|
+
gap: 2px;
|
|
5410
|
+
min-width: 0;
|
|
5411
|
+
}
|
|
5412
|
+
.pr-item-row__top {
|
|
5413
|
+
display: flex;
|
|
5414
|
+
align-items: baseline;
|
|
5415
|
+
gap: 8px;
|
|
5416
|
+
min-width: 0;
|
|
5417
|
+
}
|
|
5418
|
+
.pr-item-row__title {
|
|
5419
|
+
flex: 1 1 auto;
|
|
5420
|
+
min-width: 0;
|
|
5421
|
+
overflow: hidden;
|
|
5422
|
+
font-size: 14px;
|
|
5423
|
+
font-weight: 500;
|
|
5424
|
+
line-height: 1.4;
|
|
5425
|
+
white-space: nowrap;
|
|
5426
|
+
text-overflow: ellipsis;
|
|
5427
|
+
}
|
|
5428
|
+
.pr-item-row[data-unread] .pr-item-row__title { font-weight: 650; }
|
|
5429
|
+
.pr-item-row__dot {
|
|
5430
|
+
align-self: center;
|
|
5431
|
+
flex: none;
|
|
5432
|
+
width: 8px;
|
|
5433
|
+
height: 8px;
|
|
5434
|
+
border-radius: 999px;
|
|
5435
|
+
/* The accent darkened toward the text colour: at least 3:1 on the row in both themes. */
|
|
5436
|
+
background: color-mix(in srgb, var(--pr-accent-deep) 55%, var(--pr-fg));
|
|
5437
|
+
box-shadow: 0 0 0 1px color-mix(in srgb, var(--pr-fg) 25%, transparent);
|
|
5438
|
+
}
|
|
5439
|
+
.pr-item-row__dot--overlay {
|
|
5440
|
+
position: absolute;
|
|
5441
|
+
inset-block-start: -2px;
|
|
5442
|
+
inset-inline-end: -2px;
|
|
5443
|
+
box-shadow: 0 0 0 2px var(--pr-item-bg);
|
|
5444
|
+
}
|
|
5445
|
+
.pr-item-row__meta {
|
|
5446
|
+
flex: none;
|
|
5447
|
+
font-size: 12px;
|
|
5448
|
+
line-height: 1.4;
|
|
5449
|
+
color: var(--pr-fg-muted);
|
|
5450
|
+
font-variant-numeric: tabular-nums;
|
|
5451
|
+
white-space: nowrap;
|
|
5452
|
+
}
|
|
5453
|
+
.pr-item-row__description {
|
|
5454
|
+
display: block;
|
|
5455
|
+
min-width: 0;
|
|
5456
|
+
overflow: hidden;
|
|
5457
|
+
font-size: 13px;
|
|
5458
|
+
line-height: 1.4;
|
|
5459
|
+
color: var(--pr-fg-muted);
|
|
5460
|
+
white-space: nowrap;
|
|
5461
|
+
text-overflow: ellipsis;
|
|
5462
|
+
}
|
|
5463
|
+
.pr-item-row__description strong {
|
|
5464
|
+
color: var(--pr-fg);
|
|
5465
|
+
font-weight: 600;
|
|
5466
|
+
}
|
|
5467
|
+
.pr-item-row__footer {
|
|
5468
|
+
display: block;
|
|
5469
|
+
min-width: 0;
|
|
5470
|
+
overflow: hidden;
|
|
5471
|
+
font-size: 12px;
|
|
5472
|
+
line-height: 1.4;
|
|
5473
|
+
color: var(--pr-fg-muted);
|
|
5474
|
+
white-space: nowrap;
|
|
5475
|
+
text-overflow: ellipsis;
|
|
5476
|
+
}
|
|
5477
|
+
/* A badge at the start of the footer keeps its size and sits on the text's middle. */
|
|
5478
|
+
.pr-item-row__footer .pr-badge {
|
|
5479
|
+
margin-block: -2px;
|
|
5480
|
+
margin-inline-end: 6px;
|
|
5481
|
+
vertical-align: middle;
|
|
5482
|
+
}
|
|
5483
|
+
.pr-item-row__description--2 {
|
|
5484
|
+
display: -webkit-box;
|
|
5485
|
+
white-space: normal;
|
|
5486
|
+
-webkit-line-clamp: 2;
|
|
5487
|
+
-webkit-box-orient: vertical;
|
|
5488
|
+
}
|
|
5489
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5490
|
+
.pr-item-row__main { transition: none; }
|
|
5491
|
+
}
|
|
5492
|
+
|
|
5493
|
+
/* ───────────────────────── SplitView ───────────────────────── */
|
|
5494
|
+
|
|
5495
|
+
/* Master-detail inside one card-like frame. CSS only: from 900px both panes
|
|
5496
|
+
show side by side; below, `data-detail-open` picks the one that shows.
|
|
5497
|
+
`fill` gives the frame a height (override with style or a class) and lets
|
|
5498
|
+
each pane scroll; `auto` lets the page scroll. */
|
|
5499
|
+
.pr-split-view {
|
|
5500
|
+
--pr-split-list: 360px;
|
|
5501
|
+
display: flex;
|
|
5502
|
+
min-width: 0;
|
|
5503
|
+
min-height: 0;
|
|
5504
|
+
overflow: hidden;
|
|
5505
|
+
border: 1px solid var(--pr-border);
|
|
5506
|
+
border-radius: var(--pr-radius-card, 0.75rem);
|
|
5507
|
+
background: var(--pr-surface);
|
|
5508
|
+
color: var(--pr-fg);
|
|
5509
|
+
font-family: var(--pr-font-body, inherit);
|
|
5510
|
+
}
|
|
5511
|
+
.pr-split-view--list-sm { --pr-split-list: 280px; }
|
|
5512
|
+
.pr-split-view--list-md { --pr-split-list: 360px; }
|
|
5513
|
+
.pr-split-view--list-lg { --pr-split-list: 440px; }
|
|
5514
|
+
.pr-split-view--fill {
|
|
5515
|
+
flex: 1 1 auto;
|
|
5516
|
+
height: min(72vh, 900px);
|
|
5517
|
+
}
|
|
5518
|
+
.pr-split-view__list,
|
|
5519
|
+
.pr-split-view__detail {
|
|
5520
|
+
display: flex;
|
|
5521
|
+
flex-direction: column;
|
|
5522
|
+
flex: 1 1 0;
|
|
5523
|
+
min-width: 0;
|
|
5524
|
+
min-height: 0;
|
|
5525
|
+
}
|
|
5526
|
+
.pr-split-view__list { border-inline-end: 0; }
|
|
5527
|
+
.pr-split-view__list-header {
|
|
5528
|
+
flex: none;
|
|
5529
|
+
padding: 12px;
|
|
5530
|
+
border-bottom: 1px solid var(--pr-border);
|
|
5531
|
+
}
|
|
5532
|
+
.pr-split-view__list-scroll,
|
|
5533
|
+
.pr-split-view__detail-scroll {
|
|
5534
|
+
flex: 1 1 auto;
|
|
5535
|
+
min-height: 0;
|
|
5536
|
+
min-width: 0;
|
|
5537
|
+
}
|
|
5538
|
+
.pr-split-view--fill .pr-split-view__list-scroll,
|
|
5539
|
+
.pr-split-view--fill .pr-split-view__detail-scroll {
|
|
5540
|
+
overflow: auto;
|
|
5541
|
+
}
|
|
5542
|
+
/* The detail pane owns its inset, like a Card body. Without it every consumer
|
|
5543
|
+
re-adds the same padding with a style prop. */
|
|
5544
|
+
.pr-split-view__detail-scroll { padding: 24px; }
|
|
5545
|
+
@media (max-width: 640px) {
|
|
5546
|
+
.pr-split-view__detail-scroll { padding: 16px; }
|
|
5547
|
+
}
|
|
5548
|
+
.pr-split-view__back {
|
|
5549
|
+
flex: none;
|
|
5550
|
+
padding: 8px 12px;
|
|
5551
|
+
border-bottom: 1px solid var(--pr-border);
|
|
5552
|
+
}
|
|
5553
|
+
|
|
5554
|
+
/* Narrow: one pane at a time. */
|
|
5555
|
+
@media (max-width: 899px) {
|
|
5556
|
+
.pr-split-view:not([data-detail-open]) .pr-split-view__detail { display: none; }
|
|
5557
|
+
.pr-split-view[data-detail-open] .pr-split-view__list { display: none; }
|
|
5558
|
+
}
|
|
5559
|
+
@media (min-width: 900px) {
|
|
5560
|
+
.pr-split-view__list {
|
|
5561
|
+
flex: 0 0 var(--pr-split-list);
|
|
5562
|
+
border-inline-end: 1px solid var(--pr-border);
|
|
5563
|
+
}
|
|
5564
|
+
.pr-split-view__back { display: none; }
|
|
5565
|
+
}
|
|
5566
|
+
|
|
5567
|
+
/* ───────────────────────── Stack ───────────────────────── */
|
|
5568
|
+
|
|
5569
|
+
/* Layout only. The scale is 4 / 8 / 12 / 16 / 24 px; the tokens package has no
|
|
5570
|
+
spacing scale to map to. */
|
|
5571
|
+
.pr-stack {
|
|
5572
|
+
display: flex;
|
|
5573
|
+
flex-direction: column;
|
|
5574
|
+
gap: 16px;
|
|
5575
|
+
}
|
|
5576
|
+
.pr-stack--row { flex-direction: row; }
|
|
5577
|
+
.pr-stack--wrap { flex-wrap: wrap; }
|
|
5578
|
+
.pr-stack--gap-xs { gap: 4px; }
|
|
5579
|
+
.pr-stack--gap-sm { gap: 8px; }
|
|
5580
|
+
.pr-stack--gap-md { gap: 12px; }
|
|
5581
|
+
.pr-stack--gap-lg { gap: 16px; }
|
|
5582
|
+
.pr-stack--gap-xl { gap: 24px; }
|
|
5583
|
+
.pr-stack--align-start { align-items: flex-start; }
|
|
5584
|
+
.pr-stack--align-center { align-items: center; }
|
|
5585
|
+
.pr-stack--align-end { align-items: flex-end; }
|
|
5586
|
+
.pr-stack--align-stretch { align-items: stretch; }
|
|
5587
|
+
.pr-stack--align-baseline { align-items: baseline; }
|
|
5588
|
+
.pr-stack--justify-start { justify-content: flex-start; }
|
|
5589
|
+
.pr-stack--justify-center { justify-content: center; }
|
|
5590
|
+
.pr-stack--justify-end { justify-content: flex-end; }
|
|
5591
|
+
.pr-stack--justify-between { justify-content: space-between; }
|
|
5592
|
+
|
|
5593
|
+
/* ───────────────────────── Disclosure ───────────────────────── */
|
|
5594
|
+
|
|
5595
|
+
.pr-disclosure {
|
|
5596
|
+
color: var(--pr-fg);
|
|
5597
|
+
font-family: var(--pr-font-body, inherit);
|
|
5598
|
+
}
|
|
5599
|
+
/* Stacked plain disclosures are divided by a hairline. */
|
|
5600
|
+
.pr-disclosure--plain + .pr-disclosure--plain { border-top: 1px solid var(--pr-border); }
|
|
5601
|
+
.pr-disclosure--card {
|
|
5602
|
+
background: var(--pr-surface);
|
|
5603
|
+
border: 1px solid var(--pr-border);
|
|
5604
|
+
border-radius: var(--pr-radius-card, 0.75rem);
|
|
5605
|
+
}
|
|
5606
|
+
.pr-disclosure__heading { margin: 0; font: inherit; }
|
|
5607
|
+
.pr-disclosure__trigger {
|
|
5608
|
+
display: flex;
|
|
5609
|
+
align-items: center;
|
|
5610
|
+
gap: 8px;
|
|
5611
|
+
width: 100%;
|
|
5612
|
+
min-height: 44px;
|
|
5613
|
+
padding: 8px 4px;
|
|
5614
|
+
border: 0;
|
|
5615
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
5616
|
+
background: transparent;
|
|
5617
|
+
color: inherit;
|
|
5618
|
+
font: inherit;
|
|
5619
|
+
text-align: start;
|
|
5620
|
+
cursor: pointer;
|
|
5621
|
+
}
|
|
5622
|
+
.pr-disclosure--card .pr-disclosure__trigger { padding: 8px 16px; }
|
|
5623
|
+
.pr-disclosure__trigger:hover .pr-disclosure__chevron { color: var(--pr-fg); }
|
|
5624
|
+
.pr-disclosure__trigger:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
5625
|
+
.pr-disclosure__chevron {
|
|
5626
|
+
flex: none;
|
|
5627
|
+
color: var(--pr-fg-muted);
|
|
5628
|
+
transition: transform 160ms var(--pr-ease, ease);
|
|
5629
|
+
}
|
|
5630
|
+
.pr-disclosure[data-state='open'] .pr-disclosure__chevron { transform: rotate(90deg); }
|
|
5631
|
+
.pr-disclosure__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
|
|
5632
|
+
.pr-disclosure__title { font-size: 15px; font-weight: 650; line-height: 1.35; }
|
|
5633
|
+
.pr-disclosure__description { color: var(--pr-fg-muted); font-size: 13px; line-height: 1.4; }
|
|
5634
|
+
.pr-disclosure__trailing { display: inline-flex; flex: none; align-items: center; gap: 8px; }
|
|
5635
|
+
.pr-disclosure__panel { padding-block: 4px 16px; padding-inline: 30px 4px; }
|
|
5636
|
+
.pr-disclosure--card .pr-disclosure__panel { padding-block: 4px 16px; padding-inline: 42px 16px; }
|
|
5637
|
+
.pr-disclosure__panel[hidden] { display: none; }
|
|
5638
|
+
|
|
5639
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5640
|
+
.pr-disclosure__chevron { transition: none; }
|
|
5641
|
+
}
|