@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/light.css
CHANGED
|
@@ -1720,7 +1720,7 @@
|
|
|
1720
1720
|
/* ─────────────────── Validation summary ─────────────────── */
|
|
1721
1721
|
|
|
1722
1722
|
.pr-validation-summary {
|
|
1723
|
-
padding: 16px;
|
|
1723
|
+
padding: 12px 16px;
|
|
1724
1724
|
border: 1px solid var(--pr-danger);
|
|
1725
1725
|
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1726
1726
|
background: var(--pr-tone-rose-bg);
|
|
@@ -1729,12 +1729,17 @@
|
|
|
1729
1729
|
}
|
|
1730
1730
|
.pr-validation-summary:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
1731
1731
|
.pr-validation-summary__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
|
|
1732
|
-
.pr-validation-summary__list { margin:
|
|
1732
|
+
.pr-validation-summary__list { margin: 6px 0 0; padding: 0; list-style: none; }
|
|
1733
1733
|
.pr-validation-summary__item { margin: 0; }
|
|
1734
|
+
/* Each link used to be a 40px-tall row that also took 40px of layout, so four
|
|
1735
|
+
errors stood 160px tall before the title. The link keeps its 40px target, but a
|
|
1736
|
+
negative block margin of 8px gives back the space: each line takes about 24px
|
|
1737
|
+
(the text plus 4px) and the target boxes overlap their neighbours. */
|
|
1734
1738
|
.pr-validation-summary__link {
|
|
1735
1739
|
display: flex;
|
|
1736
1740
|
align-items: center;
|
|
1737
1741
|
min-height: 40px;
|
|
1742
|
+
margin-block: -8px;
|
|
1738
1743
|
color: var(--pr-danger);
|
|
1739
1744
|
font-size: 14px;
|
|
1740
1745
|
line-height: 1.4;
|
|
@@ -3957,6 +3962,8 @@ button.pr-stepper__dot:focus-visible {
|
|
|
3957
3962
|
font-family: var(--pr-font-body, inherit);
|
|
3958
3963
|
}
|
|
3959
3964
|
.pr-section-heading__text { min-width: 0; }
|
|
3965
|
+
/* A heading above a list of facts needs air; Card has no flow gap of its own. */
|
|
3966
|
+
.pr-section-heading + .pr-detail-list { margin-block-start: 16px; }
|
|
3960
3967
|
.pr-section-heading__eyebrow {
|
|
3961
3968
|
margin: 0 0 6px;
|
|
3962
3969
|
font-size: 11px;
|
|
@@ -4134,6 +4141,12 @@ button.pr-stepper__dot:focus-visible {
|
|
|
4134
4141
|
background: color-mix(in srgb, var(--pr-fg) 6%, transparent);
|
|
4135
4142
|
color: var(--pr-fg);
|
|
4136
4143
|
font-family: var(--pr-font-body, inherit);
|
|
4144
|
+
/* Hugs its options. A non-auto width is not stretched by a flex column or a
|
|
4145
|
+
grid, so the track stays as wide as its options without any `align-self`
|
|
4146
|
+
or `justify-self`: in a toolbar row with `align-items: center` it keeps the
|
|
4147
|
+
row's centring. `fullWidth` (`--block`) is the opt-in for the full width. */
|
|
4148
|
+
width: fit-content;
|
|
4149
|
+
max-width: 100%;
|
|
4137
4150
|
}
|
|
4138
4151
|
.pr-segmented--block { display: flex; width: 100%; }
|
|
4139
4152
|
.pr-segmented__option {
|
|
@@ -5092,3 +5105,482 @@ button.pr-stepper__dot:focus-visible {
|
|
|
5092
5105
|
white-space: nowrap;
|
|
5093
5106
|
text-overflow: ellipsis;
|
|
5094
5107
|
}
|
|
5108
|
+
|
|
5109
|
+
/* ───────────────────────── Notice ───────────────────────── */
|
|
5110
|
+
|
|
5111
|
+
/* A calm inline message: soft tone tint, 1px tone border, no shadow. The tint
|
|
5112
|
+
and the icon colour come from the same semantic variables as Badge. */
|
|
5113
|
+
.pr-notice {
|
|
5114
|
+
--pr-notice-tone: var(--pr-info);
|
|
5115
|
+
display: flex;
|
|
5116
|
+
flex-wrap: wrap;
|
|
5117
|
+
align-items: flex-start;
|
|
5118
|
+
gap: 8px 12px;
|
|
5119
|
+
padding: 12px 16px;
|
|
5120
|
+
border: 1px solid color-mix(in srgb, var(--pr-notice-tone) 32%, transparent);
|
|
5121
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
5122
|
+
background: color-mix(in srgb, var(--pr-notice-tone) 10%, var(--pr-surface));
|
|
5123
|
+
color: var(--pr-fg);
|
|
5124
|
+
font-family: var(--pr-font-body, inherit);
|
|
5125
|
+
font-size: 14px;
|
|
5126
|
+
line-height: 1.45;
|
|
5127
|
+
}
|
|
5128
|
+
.pr-notice--neutral {
|
|
5129
|
+
--pr-notice-tone: var(--pr-fg-muted);
|
|
5130
|
+
background: var(--pr-bg);
|
|
5131
|
+
border-color: var(--pr-border);
|
|
5132
|
+
}
|
|
5133
|
+
.pr-notice--info { --pr-notice-tone: var(--pr-info); }
|
|
5134
|
+
.pr-notice--success { --pr-notice-tone: var(--pr-success); }
|
|
5135
|
+
.pr-notice--warning { --pr-notice-tone: var(--pr-warning); }
|
|
5136
|
+
.pr-notice--danger { --pr-notice-tone: var(--pr-danger); }
|
|
5137
|
+
.pr-notice--sm { padding: 8px 12px; gap: 4px 8px; }
|
|
5138
|
+
|
|
5139
|
+
.pr-notice__icon {
|
|
5140
|
+
display: inline-flex;
|
|
5141
|
+
flex: none;
|
|
5142
|
+
align-items: center;
|
|
5143
|
+
height: 1.45em;
|
|
5144
|
+
color: var(--pr-notice-tone);
|
|
5145
|
+
}
|
|
5146
|
+
.pr-notice__body {
|
|
5147
|
+
flex: 1 1 14rem;
|
|
5148
|
+
min-width: 0;
|
|
5149
|
+
}
|
|
5150
|
+
.pr-notice__title {
|
|
5151
|
+
margin: 0;
|
|
5152
|
+
font-size: 14px;
|
|
5153
|
+
font-weight: 650;
|
|
5154
|
+
line-height: 1.45;
|
|
5155
|
+
color: var(--pr-fg);
|
|
5156
|
+
}
|
|
5157
|
+
.pr-notice__text {
|
|
5158
|
+
color: var(--pr-fg);
|
|
5159
|
+
overflow-wrap: anywhere;
|
|
5160
|
+
}
|
|
5161
|
+
.pr-notice__title + .pr-notice__text { margin-top: 2px; }
|
|
5162
|
+
/* Wraps under the text on a narrow width; sits at the end edge on a wide one. */
|
|
5163
|
+
.pr-notice__actions {
|
|
5164
|
+
display: flex;
|
|
5165
|
+
flex-wrap: wrap;
|
|
5166
|
+
align-items: center;
|
|
5167
|
+
gap: 8px;
|
|
5168
|
+
margin-inline-start: auto;
|
|
5169
|
+
}
|
|
5170
|
+
.pr-notice__dismiss { flex: none; margin-block: -6px; margin-inline: 0 -8px; }
|
|
5171
|
+
@media (max-width: 639px) {
|
|
5172
|
+
.pr-notice__body { flex-basis: 10rem; }
|
|
5173
|
+
.pr-notice__dismiss { order: 2; }
|
|
5174
|
+
.pr-notice__actions { order: 3; flex-basis: 100%; margin-inline-start: 0; padding-inline-start: 30px; }
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5177
|
+
/* ───────────────────────── DetailList ───────────────────────── */
|
|
5178
|
+
|
|
5179
|
+
/* The facts of one record. Stacked: label above value, in a grid that never
|
|
5180
|
+
drops below 12rem per column and never exceeds the requested count. */
|
|
5181
|
+
.pr-detail-list {
|
|
5182
|
+
--pr-detail-cols: 2;
|
|
5183
|
+
--pr-detail-gap-y: 16px;
|
|
5184
|
+
display: grid;
|
|
5185
|
+
grid-template-columns: repeat(auto-fit, minmax(max(12rem, calc((100% - (var(--pr-detail-cols) - 1) * 24px) / var(--pr-detail-cols))), 1fr));
|
|
5186
|
+
gap: var(--pr-detail-gap-y) 24px;
|
|
5187
|
+
margin: 0;
|
|
5188
|
+
padding: 0;
|
|
5189
|
+
font-family: var(--pr-font-body, inherit);
|
|
5190
|
+
}
|
|
5191
|
+
.pr-detail-list--cols-1 { --pr-detail-cols: 1; }
|
|
5192
|
+
.pr-detail-list--cols-2 { --pr-detail-cols: 2; }
|
|
5193
|
+
.pr-detail-list--cols-3 { --pr-detail-cols: 3; }
|
|
5194
|
+
.pr-detail-list--cols-4 { --pr-detail-cols: 4; }
|
|
5195
|
+
.pr-detail-list--compact { --pr-detail-gap-y: 8px; }
|
|
5196
|
+
|
|
5197
|
+
.pr-detail-item { min-width: 0; margin: 0; }
|
|
5198
|
+
.pr-detail-item--span-2 { grid-column: span 2; }
|
|
5199
|
+
.pr-detail-item--span-full { grid-column: 1 / -1; }
|
|
5200
|
+
@media (max-width: 479px) {
|
|
5201
|
+
.pr-detail-item--span-2 { grid-column: 1 / -1; }
|
|
5202
|
+
}
|
|
5203
|
+
.pr-detail-item__label {
|
|
5204
|
+
margin: 0 0 2px;
|
|
5205
|
+
font-size: 12px;
|
|
5206
|
+
font-weight: 500;
|
|
5207
|
+
line-height: 1.4;
|
|
5208
|
+
color: var(--pr-fg-muted);
|
|
5209
|
+
}
|
|
5210
|
+
.pr-detail-item__value {
|
|
5211
|
+
margin: 0;
|
|
5212
|
+
font-size: 14px;
|
|
5213
|
+
font-weight: 500;
|
|
5214
|
+
line-height: 1.45;
|
|
5215
|
+
color: var(--pr-fg);
|
|
5216
|
+
overflow-wrap: anywhere;
|
|
5217
|
+
}
|
|
5218
|
+
.pr-detail-item__value--empty {
|
|
5219
|
+
font-weight: 400;
|
|
5220
|
+
color: var(--pr-fg-muted);
|
|
5221
|
+
}
|
|
5222
|
+
.pr-detail-item--numeric .pr-detail-item__value { font-variant-numeric: tabular-nums; }
|
|
5223
|
+
|
|
5224
|
+
/* Inline: one row per fact, hairline between rows, for narrow side panels. */
|
|
5225
|
+
.pr-detail-list--inline {
|
|
5226
|
+
display: block;
|
|
5227
|
+
}
|
|
5228
|
+
.pr-detail-list--inline .pr-detail-item {
|
|
5229
|
+
display: flex;
|
|
5230
|
+
align-items: baseline;
|
|
5231
|
+
justify-content: space-between;
|
|
5232
|
+
gap: 16px;
|
|
5233
|
+
padding: 12px 0;
|
|
5234
|
+
border-top: 1px solid var(--pr-border);
|
|
5235
|
+
}
|
|
5236
|
+
.pr-detail-list--inline .pr-detail-item:first-child { border-top: 0; padding-top: 0; }
|
|
5237
|
+
.pr-detail-list--inline .pr-detail-item:last-child { padding-bottom: 0; }
|
|
5238
|
+
.pr-detail-list--inline.pr-detail-list--compact .pr-detail-item { padding: 8px 0; }
|
|
5239
|
+
.pr-detail-list--inline .pr-detail-item__label { flex: none; max-width: 45%; margin: 0; }
|
|
5240
|
+
.pr-detail-list--inline .pr-detail-item__value { min-width: 0; text-align: end; }
|
|
5241
|
+
.pr-detail-list--inline .pr-detail-item--numeric .pr-detail-item__value { text-align: end; }
|
|
5242
|
+
|
|
5243
|
+
/* ───────────────────────── ItemList ───────────────────────── */
|
|
5244
|
+
|
|
5245
|
+
.pr-item-list {
|
|
5246
|
+
display: flex;
|
|
5247
|
+
flex-direction: column;
|
|
5248
|
+
margin: 0;
|
|
5249
|
+
padding: 0;
|
|
5250
|
+
list-style: none;
|
|
5251
|
+
font-family: var(--pr-font-body, inherit);
|
|
5252
|
+
}
|
|
5253
|
+
.pr-item-list--divided > .pr-item-row + .pr-item-row {
|
|
5254
|
+
border-top: 1px solid var(--pr-border);
|
|
5255
|
+
}
|
|
5256
|
+
|
|
5257
|
+
.pr-item-row {
|
|
5258
|
+
position: relative;
|
|
5259
|
+
margin: 0;
|
|
5260
|
+
padding: 0;
|
|
5261
|
+
list-style: none;
|
|
5262
|
+
}
|
|
5263
|
+
.pr-item-row__main {
|
|
5264
|
+
--pr-item-min: 44px;
|
|
5265
|
+
display: flex;
|
|
5266
|
+
align-items: center;
|
|
5267
|
+
gap: 12px;
|
|
5268
|
+
width: 100%;
|
|
5269
|
+
min-height: var(--pr-item-min);
|
|
5270
|
+
padding: 10px 16px;
|
|
5271
|
+
border: 0;
|
|
5272
|
+
border-radius: 0;
|
|
5273
|
+
background: transparent;
|
|
5274
|
+
/* The row's own background: the unread dot ring uses it to blend in. */
|
|
5275
|
+
--pr-item-bg: var(--pr-surface);
|
|
5276
|
+
color: var(--pr-fg);
|
|
5277
|
+
font: inherit;
|
|
5278
|
+
text-align: start;
|
|
5279
|
+
text-decoration: none;
|
|
5280
|
+
cursor: pointer;
|
|
5281
|
+
transition: background-color 160ms var(--pr-ease, ease);
|
|
5282
|
+
}
|
|
5283
|
+
/* Compact: the dense work-queue rhythm. Three text lines are 59 px, with fixed line heights. */
|
|
5284
|
+
.pr-item-list--compact .pr-item-row__main {
|
|
5285
|
+
--pr-item-min: 36px;
|
|
5286
|
+
align-items: flex-start;
|
|
5287
|
+
gap: 10px;
|
|
5288
|
+
padding-block: 5px;
|
|
5289
|
+
padding-inline: 14px 12px;
|
|
5290
|
+
}
|
|
5291
|
+
.pr-item-list--compact .pr-item-row__leading { padding-block-start: 2px; }
|
|
5292
|
+
.pr-item-list--compact .pr-item-row__trailing { align-self: center; }
|
|
5293
|
+
.pr-item-list--compact .pr-item-row__body { gap: 0; align-self: center; }
|
|
5294
|
+
.pr-item-list--compact .pr-item-row__top { align-items: center; }
|
|
5295
|
+
.pr-item-list--compact .pr-item-row__title { line-height: 18px; }
|
|
5296
|
+
.pr-item-list--compact .pr-item-row__description { line-height: 16px; }
|
|
5297
|
+
.pr-item-list--compact .pr-item-row__meta,
|
|
5298
|
+
.pr-item-list--compact .pr-item-row__footer { line-height: 15px; }
|
|
5299
|
+
.pr-item-list--compact .pr-item-row__dot--overlay { inset-block-start: 0; }
|
|
5300
|
+
/* A footer that starts with a badge is as tall as the badge: 18 px with a sm badge. */
|
|
5301
|
+
.pr-item-list--compact .pr-item-row__footer .pr-badge { margin-block: 0; line-height: 14px; }
|
|
5302
|
+
.pr-item-row__main:hover:not(:disabled):not([aria-disabled='true']) {
|
|
5303
|
+
--pr-item-bg: var(--pr-elevated);
|
|
5304
|
+
background: var(--pr-elevated);
|
|
5305
|
+
}
|
|
5306
|
+
.pr-item-row__main:focus-visible {
|
|
5307
|
+
outline: none;
|
|
5308
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
5309
|
+
}
|
|
5310
|
+
.pr-item-row[data-selected] .pr-item-row__main {
|
|
5311
|
+
--pr-item-bg: color-mix(in srgb, var(--pr-surface) 70%, var(--pr-tone-yellow-bg));
|
|
5312
|
+
background: var(--pr-item-bg);
|
|
5313
|
+
box-shadow: inset 3px 0 0 var(--pr-accent);
|
|
5314
|
+
}
|
|
5315
|
+
.pr-item-row[data-selected] .pr-item-row__main:focus-visible {
|
|
5316
|
+
box-shadow: inset 3px 0 0 var(--pr-accent), inset 0 0 0 2px var(--pr-accent);
|
|
5317
|
+
}
|
|
5318
|
+
/* Tone bar. A selected row keeps its tint and swaps the accent edge for the tone bar. */
|
|
5319
|
+
.pr-item-row[data-tone]::before {
|
|
5320
|
+
content: '';
|
|
5321
|
+
position: absolute;
|
|
5322
|
+
inset-block: 0;
|
|
5323
|
+
inset-inline-start: 0;
|
|
5324
|
+
width: 3px;
|
|
5325
|
+
background: var(--pr-item-tone);
|
|
5326
|
+
pointer-events: none;
|
|
5327
|
+
z-index: 1;
|
|
5328
|
+
}
|
|
5329
|
+
.pr-item-row[data-tone='neutral'] { --pr-item-tone: var(--pr-fg-muted); }
|
|
5330
|
+
.pr-item-row[data-tone='info'] { --pr-item-tone: var(--pr-info); }
|
|
5331
|
+
.pr-item-row[data-tone='success'] { --pr-item-tone: var(--pr-success); }
|
|
5332
|
+
.pr-item-row[data-tone='warning'] { --pr-item-tone: var(--pr-warning); }
|
|
5333
|
+
.pr-item-row[data-tone='danger'] { --pr-item-tone: var(--pr-danger); }
|
|
5334
|
+
.pr-item-row[data-selected][data-tone] .pr-item-row__main { box-shadow: none; }
|
|
5335
|
+
.pr-item-row[data-selected][data-tone] .pr-item-row__main:focus-visible {
|
|
5336
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
5337
|
+
}
|
|
5338
|
+
.pr-item-row__main:disabled,
|
|
5339
|
+
.pr-item-row__main[aria-disabled='true'] {
|
|
5340
|
+
cursor: not-allowed;
|
|
5341
|
+
opacity: 0.55;
|
|
5342
|
+
}
|
|
5343
|
+
.pr-item-row__leading,
|
|
5344
|
+
.pr-item-row__trailing {
|
|
5345
|
+
display: inline-flex;
|
|
5346
|
+
flex: none;
|
|
5347
|
+
align-items: center;
|
|
5348
|
+
}
|
|
5349
|
+
.pr-item-row__leading { position: relative; }
|
|
5350
|
+
.pr-item-row__body {
|
|
5351
|
+
display: flex;
|
|
5352
|
+
flex: 1 1 0;
|
|
5353
|
+
flex-direction: column;
|
|
5354
|
+
gap: 2px;
|
|
5355
|
+
min-width: 0;
|
|
5356
|
+
}
|
|
5357
|
+
.pr-item-row__top {
|
|
5358
|
+
display: flex;
|
|
5359
|
+
align-items: baseline;
|
|
5360
|
+
gap: 8px;
|
|
5361
|
+
min-width: 0;
|
|
5362
|
+
}
|
|
5363
|
+
.pr-item-row__title {
|
|
5364
|
+
flex: 1 1 auto;
|
|
5365
|
+
min-width: 0;
|
|
5366
|
+
overflow: hidden;
|
|
5367
|
+
font-size: 14px;
|
|
5368
|
+
font-weight: 500;
|
|
5369
|
+
line-height: 1.4;
|
|
5370
|
+
white-space: nowrap;
|
|
5371
|
+
text-overflow: ellipsis;
|
|
5372
|
+
}
|
|
5373
|
+
.pr-item-row[data-unread] .pr-item-row__title { font-weight: 650; }
|
|
5374
|
+
.pr-item-row__dot {
|
|
5375
|
+
align-self: center;
|
|
5376
|
+
flex: none;
|
|
5377
|
+
width: 8px;
|
|
5378
|
+
height: 8px;
|
|
5379
|
+
border-radius: 999px;
|
|
5380
|
+
/* The accent darkened toward the text colour: at least 3:1 on the row in both themes. */
|
|
5381
|
+
background: color-mix(in srgb, var(--pr-accent-deep) 55%, var(--pr-fg));
|
|
5382
|
+
box-shadow: 0 0 0 1px color-mix(in srgb, var(--pr-fg) 25%, transparent);
|
|
5383
|
+
}
|
|
5384
|
+
.pr-item-row__dot--overlay {
|
|
5385
|
+
position: absolute;
|
|
5386
|
+
inset-block-start: -2px;
|
|
5387
|
+
inset-inline-end: -2px;
|
|
5388
|
+
box-shadow: 0 0 0 2px var(--pr-item-bg);
|
|
5389
|
+
}
|
|
5390
|
+
.pr-item-row__meta {
|
|
5391
|
+
flex: none;
|
|
5392
|
+
font-size: 12px;
|
|
5393
|
+
line-height: 1.4;
|
|
5394
|
+
color: var(--pr-fg-muted);
|
|
5395
|
+
font-variant-numeric: tabular-nums;
|
|
5396
|
+
white-space: nowrap;
|
|
5397
|
+
}
|
|
5398
|
+
.pr-item-row__description {
|
|
5399
|
+
display: block;
|
|
5400
|
+
min-width: 0;
|
|
5401
|
+
overflow: hidden;
|
|
5402
|
+
font-size: 13px;
|
|
5403
|
+
line-height: 1.4;
|
|
5404
|
+
color: var(--pr-fg-muted);
|
|
5405
|
+
white-space: nowrap;
|
|
5406
|
+
text-overflow: ellipsis;
|
|
5407
|
+
}
|
|
5408
|
+
.pr-item-row__description strong {
|
|
5409
|
+
color: var(--pr-fg);
|
|
5410
|
+
font-weight: 600;
|
|
5411
|
+
}
|
|
5412
|
+
.pr-item-row__footer {
|
|
5413
|
+
display: block;
|
|
5414
|
+
min-width: 0;
|
|
5415
|
+
overflow: hidden;
|
|
5416
|
+
font-size: 12px;
|
|
5417
|
+
line-height: 1.4;
|
|
5418
|
+
color: var(--pr-fg-muted);
|
|
5419
|
+
white-space: nowrap;
|
|
5420
|
+
text-overflow: ellipsis;
|
|
5421
|
+
}
|
|
5422
|
+
/* A badge at the start of the footer keeps its size and sits on the text's middle. */
|
|
5423
|
+
.pr-item-row__footer .pr-badge {
|
|
5424
|
+
margin-block: -2px;
|
|
5425
|
+
margin-inline-end: 6px;
|
|
5426
|
+
vertical-align: middle;
|
|
5427
|
+
}
|
|
5428
|
+
.pr-item-row__description--2 {
|
|
5429
|
+
display: -webkit-box;
|
|
5430
|
+
white-space: normal;
|
|
5431
|
+
-webkit-line-clamp: 2;
|
|
5432
|
+
-webkit-box-orient: vertical;
|
|
5433
|
+
}
|
|
5434
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5435
|
+
.pr-item-row__main { transition: none; }
|
|
5436
|
+
}
|
|
5437
|
+
|
|
5438
|
+
/* ───────────────────────── SplitView ───────────────────────── */
|
|
5439
|
+
|
|
5440
|
+
/* Master-detail inside one card-like frame. CSS only: from 900px both panes
|
|
5441
|
+
show side by side; below, `data-detail-open` picks the one that shows.
|
|
5442
|
+
`fill` gives the frame a height (override with style or a class) and lets
|
|
5443
|
+
each pane scroll; `auto` lets the page scroll. */
|
|
5444
|
+
.pr-split-view {
|
|
5445
|
+
--pr-split-list: 360px;
|
|
5446
|
+
display: flex;
|
|
5447
|
+
min-width: 0;
|
|
5448
|
+
min-height: 0;
|
|
5449
|
+
overflow: hidden;
|
|
5450
|
+
border: 1px solid var(--pr-border);
|
|
5451
|
+
border-radius: var(--pr-radius-card, 0.75rem);
|
|
5452
|
+
background: var(--pr-surface);
|
|
5453
|
+
color: var(--pr-fg);
|
|
5454
|
+
font-family: var(--pr-font-body, inherit);
|
|
5455
|
+
}
|
|
5456
|
+
.pr-split-view--list-sm { --pr-split-list: 280px; }
|
|
5457
|
+
.pr-split-view--list-md { --pr-split-list: 360px; }
|
|
5458
|
+
.pr-split-view--list-lg { --pr-split-list: 440px; }
|
|
5459
|
+
.pr-split-view--fill {
|
|
5460
|
+
flex: 1 1 auto;
|
|
5461
|
+
height: min(72vh, 900px);
|
|
5462
|
+
}
|
|
5463
|
+
.pr-split-view__list,
|
|
5464
|
+
.pr-split-view__detail {
|
|
5465
|
+
display: flex;
|
|
5466
|
+
flex-direction: column;
|
|
5467
|
+
flex: 1 1 0;
|
|
5468
|
+
min-width: 0;
|
|
5469
|
+
min-height: 0;
|
|
5470
|
+
}
|
|
5471
|
+
.pr-split-view__list { border-inline-end: 0; }
|
|
5472
|
+
.pr-split-view__list-header {
|
|
5473
|
+
flex: none;
|
|
5474
|
+
padding: 12px;
|
|
5475
|
+
border-bottom: 1px solid var(--pr-border);
|
|
5476
|
+
}
|
|
5477
|
+
.pr-split-view__list-scroll,
|
|
5478
|
+
.pr-split-view__detail-scroll {
|
|
5479
|
+
flex: 1 1 auto;
|
|
5480
|
+
min-height: 0;
|
|
5481
|
+
min-width: 0;
|
|
5482
|
+
}
|
|
5483
|
+
.pr-split-view--fill .pr-split-view__list-scroll,
|
|
5484
|
+
.pr-split-view--fill .pr-split-view__detail-scroll {
|
|
5485
|
+
overflow: auto;
|
|
5486
|
+
}
|
|
5487
|
+
/* The detail pane owns its inset, like a Card body. Without it every consumer
|
|
5488
|
+
re-adds the same padding with a style prop. */
|
|
5489
|
+
.pr-split-view__detail-scroll { padding: 24px; }
|
|
5490
|
+
@media (max-width: 640px) {
|
|
5491
|
+
.pr-split-view__detail-scroll { padding: 16px; }
|
|
5492
|
+
}
|
|
5493
|
+
.pr-split-view__back {
|
|
5494
|
+
flex: none;
|
|
5495
|
+
padding: 8px 12px;
|
|
5496
|
+
border-bottom: 1px solid var(--pr-border);
|
|
5497
|
+
}
|
|
5498
|
+
|
|
5499
|
+
/* Narrow: one pane at a time. */
|
|
5500
|
+
@media (max-width: 899px) {
|
|
5501
|
+
.pr-split-view:not([data-detail-open]) .pr-split-view__detail { display: none; }
|
|
5502
|
+
.pr-split-view[data-detail-open] .pr-split-view__list { display: none; }
|
|
5503
|
+
}
|
|
5504
|
+
@media (min-width: 900px) {
|
|
5505
|
+
.pr-split-view__list {
|
|
5506
|
+
flex: 0 0 var(--pr-split-list);
|
|
5507
|
+
border-inline-end: 1px solid var(--pr-border);
|
|
5508
|
+
}
|
|
5509
|
+
.pr-split-view__back { display: none; }
|
|
5510
|
+
}
|
|
5511
|
+
|
|
5512
|
+
/* ───────────────────────── Stack ───────────────────────── */
|
|
5513
|
+
|
|
5514
|
+
/* Layout only. The scale is 4 / 8 / 12 / 16 / 24 px; the tokens package has no
|
|
5515
|
+
spacing scale to map to. */
|
|
5516
|
+
.pr-stack {
|
|
5517
|
+
display: flex;
|
|
5518
|
+
flex-direction: column;
|
|
5519
|
+
gap: 16px;
|
|
5520
|
+
}
|
|
5521
|
+
.pr-stack--row { flex-direction: row; }
|
|
5522
|
+
.pr-stack--wrap { flex-wrap: wrap; }
|
|
5523
|
+
.pr-stack--gap-xs { gap: 4px; }
|
|
5524
|
+
.pr-stack--gap-sm { gap: 8px; }
|
|
5525
|
+
.pr-stack--gap-md { gap: 12px; }
|
|
5526
|
+
.pr-stack--gap-lg { gap: 16px; }
|
|
5527
|
+
.pr-stack--gap-xl { gap: 24px; }
|
|
5528
|
+
.pr-stack--align-start { align-items: flex-start; }
|
|
5529
|
+
.pr-stack--align-center { align-items: center; }
|
|
5530
|
+
.pr-stack--align-end { align-items: flex-end; }
|
|
5531
|
+
.pr-stack--align-stretch { align-items: stretch; }
|
|
5532
|
+
.pr-stack--align-baseline { align-items: baseline; }
|
|
5533
|
+
.pr-stack--justify-start { justify-content: flex-start; }
|
|
5534
|
+
.pr-stack--justify-center { justify-content: center; }
|
|
5535
|
+
.pr-stack--justify-end { justify-content: flex-end; }
|
|
5536
|
+
.pr-stack--justify-between { justify-content: space-between; }
|
|
5537
|
+
|
|
5538
|
+
/* ───────────────────────── Disclosure ───────────────────────── */
|
|
5539
|
+
|
|
5540
|
+
.pr-disclosure {
|
|
5541
|
+
color: var(--pr-fg);
|
|
5542
|
+
font-family: var(--pr-font-body, inherit);
|
|
5543
|
+
}
|
|
5544
|
+
/* Stacked plain disclosures are divided by a hairline. */
|
|
5545
|
+
.pr-disclosure--plain + .pr-disclosure--plain { border-top: 1px solid var(--pr-border); }
|
|
5546
|
+
.pr-disclosure--card {
|
|
5547
|
+
background: var(--pr-surface);
|
|
5548
|
+
border: 1px solid var(--pr-border);
|
|
5549
|
+
border-radius: var(--pr-radius-card, 0.75rem);
|
|
5550
|
+
}
|
|
5551
|
+
.pr-disclosure__heading { margin: 0; font: inherit; }
|
|
5552
|
+
.pr-disclosure__trigger {
|
|
5553
|
+
display: flex;
|
|
5554
|
+
align-items: center;
|
|
5555
|
+
gap: 8px;
|
|
5556
|
+
width: 100%;
|
|
5557
|
+
min-height: 44px;
|
|
5558
|
+
padding: 8px 4px;
|
|
5559
|
+
border: 0;
|
|
5560
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
5561
|
+
background: transparent;
|
|
5562
|
+
color: inherit;
|
|
5563
|
+
font: inherit;
|
|
5564
|
+
text-align: start;
|
|
5565
|
+
cursor: pointer;
|
|
5566
|
+
}
|
|
5567
|
+
.pr-disclosure--card .pr-disclosure__trigger { padding: 8px 16px; }
|
|
5568
|
+
.pr-disclosure__trigger:hover .pr-disclosure__chevron { color: var(--pr-fg); }
|
|
5569
|
+
.pr-disclosure__trigger:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
5570
|
+
.pr-disclosure__chevron {
|
|
5571
|
+
flex: none;
|
|
5572
|
+
color: var(--pr-fg-muted);
|
|
5573
|
+
transition: transform 160ms var(--pr-ease, ease);
|
|
5574
|
+
}
|
|
5575
|
+
.pr-disclosure[data-state='open'] .pr-disclosure__chevron { transform: rotate(90deg); }
|
|
5576
|
+
.pr-disclosure__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
|
|
5577
|
+
.pr-disclosure__title { font-size: 15px; font-weight: 650; line-height: 1.35; }
|
|
5578
|
+
.pr-disclosure__description { color: var(--pr-fg-muted); font-size: 13px; line-height: 1.4; }
|
|
5579
|
+
.pr-disclosure__trailing { display: inline-flex; flex: none; align-items: center; gap: 8px; }
|
|
5580
|
+
.pr-disclosure__panel { padding-block: 4px 16px; padding-inline: 30px 4px; }
|
|
5581
|
+
.pr-disclosure--card .pr-disclosure__panel { padding-block: 4px 16px; padding-inline: 42px 16px; }
|
|
5582
|
+
.pr-disclosure__panel[hidden] { display: none; }
|
|
5583
|
+
|
|
5584
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5585
|
+
.pr-disclosure__chevron { transition: none; }
|
|
5586
|
+
}
|