@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/ui.css
CHANGED
|
@@ -1530,7 +1530,7 @@
|
|
|
1530
1530
|
/* ─────────────────── Validation summary ─────────────────── */
|
|
1531
1531
|
|
|
1532
1532
|
.pr-validation-summary {
|
|
1533
|
-
padding: 16px;
|
|
1533
|
+
padding: 12px 16px;
|
|
1534
1534
|
border: 1px solid var(--pr-danger);
|
|
1535
1535
|
border-radius: var(--pr-radius-md, 0.75rem);
|
|
1536
1536
|
background: var(--pr-tone-rose-bg);
|
|
@@ -1539,12 +1539,17 @@
|
|
|
1539
1539
|
}
|
|
1540
1540
|
.pr-validation-summary:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
1541
1541
|
.pr-validation-summary__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
|
|
1542
|
-
.pr-validation-summary__list { margin:
|
|
1542
|
+
.pr-validation-summary__list { margin: 6px 0 0; padding: 0; list-style: none; }
|
|
1543
1543
|
.pr-validation-summary__item { margin: 0; }
|
|
1544
|
+
/* Each link used to be a 40px-tall row that also took 40px of layout, so four
|
|
1545
|
+
errors stood 160px tall before the title. The link keeps its 40px target, but a
|
|
1546
|
+
negative block margin of 8px gives back the space: each line takes about 24px
|
|
1547
|
+
(the text plus 4px) and the target boxes overlap their neighbours. */
|
|
1544
1548
|
.pr-validation-summary__link {
|
|
1545
1549
|
display: flex;
|
|
1546
1550
|
align-items: center;
|
|
1547
1551
|
min-height: 40px;
|
|
1552
|
+
margin-block: -8px;
|
|
1548
1553
|
color: var(--pr-danger);
|
|
1549
1554
|
font-size: 14px;
|
|
1550
1555
|
line-height: 1.4;
|
|
@@ -3767,6 +3772,8 @@ button.pr-stepper__dot:focus-visible {
|
|
|
3767
3772
|
font-family: var(--pr-font-body, inherit);
|
|
3768
3773
|
}
|
|
3769
3774
|
.pr-section-heading__text { min-width: 0; }
|
|
3775
|
+
/* A heading above a list of facts needs air; Card has no flow gap of its own. */
|
|
3776
|
+
.pr-section-heading + .pr-detail-list { margin-block-start: 16px; }
|
|
3770
3777
|
.pr-section-heading__eyebrow {
|
|
3771
3778
|
margin: 0 0 6px;
|
|
3772
3779
|
font-size: 11px;
|
|
@@ -3944,6 +3951,12 @@ button.pr-stepper__dot:focus-visible {
|
|
|
3944
3951
|
background: color-mix(in srgb, var(--pr-fg) 6%, transparent);
|
|
3945
3952
|
color: var(--pr-fg);
|
|
3946
3953
|
font-family: var(--pr-font-body, inherit);
|
|
3954
|
+
/* Hugs its options. A non-auto width is not stretched by a flex column or a
|
|
3955
|
+
grid, so the track stays as wide as its options without any `align-self`
|
|
3956
|
+
or `justify-self`: in a toolbar row with `align-items: center` it keeps the
|
|
3957
|
+
row's centring. `fullWidth` (`--block`) is the opt-in for the full width. */
|
|
3958
|
+
width: fit-content;
|
|
3959
|
+
max-width: 100%;
|
|
3947
3960
|
}
|
|
3948
3961
|
.pr-segmented--block { display: flex; width: 100%; }
|
|
3949
3962
|
.pr-segmented__option {
|
|
@@ -4902,3 +4915,482 @@ button.pr-stepper__dot:focus-visible {
|
|
|
4902
4915
|
white-space: nowrap;
|
|
4903
4916
|
text-overflow: ellipsis;
|
|
4904
4917
|
}
|
|
4918
|
+
|
|
4919
|
+
/* ───────────────────────── Notice ───────────────────────── */
|
|
4920
|
+
|
|
4921
|
+
/* A calm inline message: soft tone tint, 1px tone border, no shadow. The tint
|
|
4922
|
+
and the icon colour come from the same semantic variables as Badge. */
|
|
4923
|
+
.pr-notice {
|
|
4924
|
+
--pr-notice-tone: var(--pr-info);
|
|
4925
|
+
display: flex;
|
|
4926
|
+
flex-wrap: wrap;
|
|
4927
|
+
align-items: flex-start;
|
|
4928
|
+
gap: 8px 12px;
|
|
4929
|
+
padding: 12px 16px;
|
|
4930
|
+
border: 1px solid color-mix(in srgb, var(--pr-notice-tone) 32%, transparent);
|
|
4931
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
4932
|
+
background: color-mix(in srgb, var(--pr-notice-tone) 10%, var(--pr-surface));
|
|
4933
|
+
color: var(--pr-fg);
|
|
4934
|
+
font-family: var(--pr-font-body, inherit);
|
|
4935
|
+
font-size: 14px;
|
|
4936
|
+
line-height: 1.45;
|
|
4937
|
+
}
|
|
4938
|
+
.pr-notice--neutral {
|
|
4939
|
+
--pr-notice-tone: var(--pr-fg-muted);
|
|
4940
|
+
background: var(--pr-bg);
|
|
4941
|
+
border-color: var(--pr-border);
|
|
4942
|
+
}
|
|
4943
|
+
.pr-notice--info { --pr-notice-tone: var(--pr-info); }
|
|
4944
|
+
.pr-notice--success { --pr-notice-tone: var(--pr-success); }
|
|
4945
|
+
.pr-notice--warning { --pr-notice-tone: var(--pr-warning); }
|
|
4946
|
+
.pr-notice--danger { --pr-notice-tone: var(--pr-danger); }
|
|
4947
|
+
.pr-notice--sm { padding: 8px 12px; gap: 4px 8px; }
|
|
4948
|
+
|
|
4949
|
+
.pr-notice__icon {
|
|
4950
|
+
display: inline-flex;
|
|
4951
|
+
flex: none;
|
|
4952
|
+
align-items: center;
|
|
4953
|
+
height: 1.45em;
|
|
4954
|
+
color: var(--pr-notice-tone);
|
|
4955
|
+
}
|
|
4956
|
+
.pr-notice__body {
|
|
4957
|
+
flex: 1 1 14rem;
|
|
4958
|
+
min-width: 0;
|
|
4959
|
+
}
|
|
4960
|
+
.pr-notice__title {
|
|
4961
|
+
margin: 0;
|
|
4962
|
+
font-size: 14px;
|
|
4963
|
+
font-weight: 650;
|
|
4964
|
+
line-height: 1.45;
|
|
4965
|
+
color: var(--pr-fg);
|
|
4966
|
+
}
|
|
4967
|
+
.pr-notice__text {
|
|
4968
|
+
color: var(--pr-fg);
|
|
4969
|
+
overflow-wrap: anywhere;
|
|
4970
|
+
}
|
|
4971
|
+
.pr-notice__title + .pr-notice__text { margin-top: 2px; }
|
|
4972
|
+
/* Wraps under the text on a narrow width; sits at the end edge on a wide one. */
|
|
4973
|
+
.pr-notice__actions {
|
|
4974
|
+
display: flex;
|
|
4975
|
+
flex-wrap: wrap;
|
|
4976
|
+
align-items: center;
|
|
4977
|
+
gap: 8px;
|
|
4978
|
+
margin-inline-start: auto;
|
|
4979
|
+
}
|
|
4980
|
+
.pr-notice__dismiss { flex: none; margin-block: -6px; margin-inline: 0 -8px; }
|
|
4981
|
+
@media (max-width: 639px) {
|
|
4982
|
+
.pr-notice__body { flex-basis: 10rem; }
|
|
4983
|
+
.pr-notice__dismiss { order: 2; }
|
|
4984
|
+
.pr-notice__actions { order: 3; flex-basis: 100%; margin-inline-start: 0; padding-inline-start: 30px; }
|
|
4985
|
+
}
|
|
4986
|
+
|
|
4987
|
+
/* ───────────────────────── DetailList ───────────────────────── */
|
|
4988
|
+
|
|
4989
|
+
/* The facts of one record. Stacked: label above value, in a grid that never
|
|
4990
|
+
drops below 12rem per column and never exceeds the requested count. */
|
|
4991
|
+
.pr-detail-list {
|
|
4992
|
+
--pr-detail-cols: 2;
|
|
4993
|
+
--pr-detail-gap-y: 16px;
|
|
4994
|
+
display: grid;
|
|
4995
|
+
grid-template-columns: repeat(auto-fit, minmax(max(12rem, calc((100% - (var(--pr-detail-cols) - 1) * 24px) / var(--pr-detail-cols))), 1fr));
|
|
4996
|
+
gap: var(--pr-detail-gap-y) 24px;
|
|
4997
|
+
margin: 0;
|
|
4998
|
+
padding: 0;
|
|
4999
|
+
font-family: var(--pr-font-body, inherit);
|
|
5000
|
+
}
|
|
5001
|
+
.pr-detail-list--cols-1 { --pr-detail-cols: 1; }
|
|
5002
|
+
.pr-detail-list--cols-2 { --pr-detail-cols: 2; }
|
|
5003
|
+
.pr-detail-list--cols-3 { --pr-detail-cols: 3; }
|
|
5004
|
+
.pr-detail-list--cols-4 { --pr-detail-cols: 4; }
|
|
5005
|
+
.pr-detail-list--compact { --pr-detail-gap-y: 8px; }
|
|
5006
|
+
|
|
5007
|
+
.pr-detail-item { min-width: 0; margin: 0; }
|
|
5008
|
+
.pr-detail-item--span-2 { grid-column: span 2; }
|
|
5009
|
+
.pr-detail-item--span-full { grid-column: 1 / -1; }
|
|
5010
|
+
@media (max-width: 479px) {
|
|
5011
|
+
.pr-detail-item--span-2 { grid-column: 1 / -1; }
|
|
5012
|
+
}
|
|
5013
|
+
.pr-detail-item__label {
|
|
5014
|
+
margin: 0 0 2px;
|
|
5015
|
+
font-size: 12px;
|
|
5016
|
+
font-weight: 500;
|
|
5017
|
+
line-height: 1.4;
|
|
5018
|
+
color: var(--pr-fg-muted);
|
|
5019
|
+
}
|
|
5020
|
+
.pr-detail-item__value {
|
|
5021
|
+
margin: 0;
|
|
5022
|
+
font-size: 14px;
|
|
5023
|
+
font-weight: 500;
|
|
5024
|
+
line-height: 1.45;
|
|
5025
|
+
color: var(--pr-fg);
|
|
5026
|
+
overflow-wrap: anywhere;
|
|
5027
|
+
}
|
|
5028
|
+
.pr-detail-item__value--empty {
|
|
5029
|
+
font-weight: 400;
|
|
5030
|
+
color: var(--pr-fg-muted);
|
|
5031
|
+
}
|
|
5032
|
+
.pr-detail-item--numeric .pr-detail-item__value { font-variant-numeric: tabular-nums; }
|
|
5033
|
+
|
|
5034
|
+
/* Inline: one row per fact, hairline between rows, for narrow side panels. */
|
|
5035
|
+
.pr-detail-list--inline {
|
|
5036
|
+
display: block;
|
|
5037
|
+
}
|
|
5038
|
+
.pr-detail-list--inline .pr-detail-item {
|
|
5039
|
+
display: flex;
|
|
5040
|
+
align-items: baseline;
|
|
5041
|
+
justify-content: space-between;
|
|
5042
|
+
gap: 16px;
|
|
5043
|
+
padding: 12px 0;
|
|
5044
|
+
border-top: 1px solid var(--pr-border);
|
|
5045
|
+
}
|
|
5046
|
+
.pr-detail-list--inline .pr-detail-item:first-child { border-top: 0; padding-top: 0; }
|
|
5047
|
+
.pr-detail-list--inline .pr-detail-item:last-child { padding-bottom: 0; }
|
|
5048
|
+
.pr-detail-list--inline.pr-detail-list--compact .pr-detail-item { padding: 8px 0; }
|
|
5049
|
+
.pr-detail-list--inline .pr-detail-item__label { flex: none; max-width: 45%; margin: 0; }
|
|
5050
|
+
.pr-detail-list--inline .pr-detail-item__value { min-width: 0; text-align: end; }
|
|
5051
|
+
.pr-detail-list--inline .pr-detail-item--numeric .pr-detail-item__value { text-align: end; }
|
|
5052
|
+
|
|
5053
|
+
/* ───────────────────────── ItemList ───────────────────────── */
|
|
5054
|
+
|
|
5055
|
+
.pr-item-list {
|
|
5056
|
+
display: flex;
|
|
5057
|
+
flex-direction: column;
|
|
5058
|
+
margin: 0;
|
|
5059
|
+
padding: 0;
|
|
5060
|
+
list-style: none;
|
|
5061
|
+
font-family: var(--pr-font-body, inherit);
|
|
5062
|
+
}
|
|
5063
|
+
.pr-item-list--divided > .pr-item-row + .pr-item-row {
|
|
5064
|
+
border-top: 1px solid var(--pr-border);
|
|
5065
|
+
}
|
|
5066
|
+
|
|
5067
|
+
.pr-item-row {
|
|
5068
|
+
position: relative;
|
|
5069
|
+
margin: 0;
|
|
5070
|
+
padding: 0;
|
|
5071
|
+
list-style: none;
|
|
5072
|
+
}
|
|
5073
|
+
.pr-item-row__main {
|
|
5074
|
+
--pr-item-min: 44px;
|
|
5075
|
+
display: flex;
|
|
5076
|
+
align-items: center;
|
|
5077
|
+
gap: 12px;
|
|
5078
|
+
width: 100%;
|
|
5079
|
+
min-height: var(--pr-item-min);
|
|
5080
|
+
padding: 10px 16px;
|
|
5081
|
+
border: 0;
|
|
5082
|
+
border-radius: 0;
|
|
5083
|
+
background: transparent;
|
|
5084
|
+
/* The row's own background: the unread dot ring uses it to blend in. */
|
|
5085
|
+
--pr-item-bg: var(--pr-surface);
|
|
5086
|
+
color: var(--pr-fg);
|
|
5087
|
+
font: inherit;
|
|
5088
|
+
text-align: start;
|
|
5089
|
+
text-decoration: none;
|
|
5090
|
+
cursor: pointer;
|
|
5091
|
+
transition: background-color 160ms var(--pr-ease, ease);
|
|
5092
|
+
}
|
|
5093
|
+
/* Compact: the dense work-queue rhythm. Three text lines are 59 px, with fixed line heights. */
|
|
5094
|
+
.pr-item-list--compact .pr-item-row__main {
|
|
5095
|
+
--pr-item-min: 36px;
|
|
5096
|
+
align-items: flex-start;
|
|
5097
|
+
gap: 10px;
|
|
5098
|
+
padding-block: 5px;
|
|
5099
|
+
padding-inline: 14px 12px;
|
|
5100
|
+
}
|
|
5101
|
+
.pr-item-list--compact .pr-item-row__leading { padding-block-start: 2px; }
|
|
5102
|
+
.pr-item-list--compact .pr-item-row__trailing { align-self: center; }
|
|
5103
|
+
.pr-item-list--compact .pr-item-row__body { gap: 0; align-self: center; }
|
|
5104
|
+
.pr-item-list--compact .pr-item-row__top { align-items: center; }
|
|
5105
|
+
.pr-item-list--compact .pr-item-row__title { line-height: 18px; }
|
|
5106
|
+
.pr-item-list--compact .pr-item-row__description { line-height: 16px; }
|
|
5107
|
+
.pr-item-list--compact .pr-item-row__meta,
|
|
5108
|
+
.pr-item-list--compact .pr-item-row__footer { line-height: 15px; }
|
|
5109
|
+
.pr-item-list--compact .pr-item-row__dot--overlay { inset-block-start: 0; }
|
|
5110
|
+
/* A footer that starts with a badge is as tall as the badge: 18 px with a sm badge. */
|
|
5111
|
+
.pr-item-list--compact .pr-item-row__footer .pr-badge { margin-block: 0; line-height: 14px; }
|
|
5112
|
+
.pr-item-row__main:hover:not(:disabled):not([aria-disabled='true']) {
|
|
5113
|
+
--pr-item-bg: var(--pr-elevated);
|
|
5114
|
+
background: var(--pr-elevated);
|
|
5115
|
+
}
|
|
5116
|
+
.pr-item-row__main:focus-visible {
|
|
5117
|
+
outline: none;
|
|
5118
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
5119
|
+
}
|
|
5120
|
+
.pr-item-row[data-selected] .pr-item-row__main {
|
|
5121
|
+
--pr-item-bg: color-mix(in srgb, var(--pr-surface) 70%, var(--pr-tone-yellow-bg));
|
|
5122
|
+
background: var(--pr-item-bg);
|
|
5123
|
+
box-shadow: inset 3px 0 0 var(--pr-accent);
|
|
5124
|
+
}
|
|
5125
|
+
.pr-item-row[data-selected] .pr-item-row__main:focus-visible {
|
|
5126
|
+
box-shadow: inset 3px 0 0 var(--pr-accent), inset 0 0 0 2px var(--pr-accent);
|
|
5127
|
+
}
|
|
5128
|
+
/* Tone bar. A selected row keeps its tint and swaps the accent edge for the tone bar. */
|
|
5129
|
+
.pr-item-row[data-tone]::before {
|
|
5130
|
+
content: '';
|
|
5131
|
+
position: absolute;
|
|
5132
|
+
inset-block: 0;
|
|
5133
|
+
inset-inline-start: 0;
|
|
5134
|
+
width: 3px;
|
|
5135
|
+
background: var(--pr-item-tone);
|
|
5136
|
+
pointer-events: none;
|
|
5137
|
+
z-index: 1;
|
|
5138
|
+
}
|
|
5139
|
+
.pr-item-row[data-tone='neutral'] { --pr-item-tone: var(--pr-fg-muted); }
|
|
5140
|
+
.pr-item-row[data-tone='info'] { --pr-item-tone: var(--pr-info); }
|
|
5141
|
+
.pr-item-row[data-tone='success'] { --pr-item-tone: var(--pr-success); }
|
|
5142
|
+
.pr-item-row[data-tone='warning'] { --pr-item-tone: var(--pr-warning); }
|
|
5143
|
+
.pr-item-row[data-tone='danger'] { --pr-item-tone: var(--pr-danger); }
|
|
5144
|
+
.pr-item-row[data-selected][data-tone] .pr-item-row__main { box-shadow: none; }
|
|
5145
|
+
.pr-item-row[data-selected][data-tone] .pr-item-row__main:focus-visible {
|
|
5146
|
+
box-shadow: inset 0 0 0 2px var(--pr-accent);
|
|
5147
|
+
}
|
|
5148
|
+
.pr-item-row__main:disabled,
|
|
5149
|
+
.pr-item-row__main[aria-disabled='true'] {
|
|
5150
|
+
cursor: not-allowed;
|
|
5151
|
+
opacity: 0.55;
|
|
5152
|
+
}
|
|
5153
|
+
.pr-item-row__leading,
|
|
5154
|
+
.pr-item-row__trailing {
|
|
5155
|
+
display: inline-flex;
|
|
5156
|
+
flex: none;
|
|
5157
|
+
align-items: center;
|
|
5158
|
+
}
|
|
5159
|
+
.pr-item-row__leading { position: relative; }
|
|
5160
|
+
.pr-item-row__body {
|
|
5161
|
+
display: flex;
|
|
5162
|
+
flex: 1 1 0;
|
|
5163
|
+
flex-direction: column;
|
|
5164
|
+
gap: 2px;
|
|
5165
|
+
min-width: 0;
|
|
5166
|
+
}
|
|
5167
|
+
.pr-item-row__top {
|
|
5168
|
+
display: flex;
|
|
5169
|
+
align-items: baseline;
|
|
5170
|
+
gap: 8px;
|
|
5171
|
+
min-width: 0;
|
|
5172
|
+
}
|
|
5173
|
+
.pr-item-row__title {
|
|
5174
|
+
flex: 1 1 auto;
|
|
5175
|
+
min-width: 0;
|
|
5176
|
+
overflow: hidden;
|
|
5177
|
+
font-size: 14px;
|
|
5178
|
+
font-weight: 500;
|
|
5179
|
+
line-height: 1.4;
|
|
5180
|
+
white-space: nowrap;
|
|
5181
|
+
text-overflow: ellipsis;
|
|
5182
|
+
}
|
|
5183
|
+
.pr-item-row[data-unread] .pr-item-row__title { font-weight: 650; }
|
|
5184
|
+
.pr-item-row__dot {
|
|
5185
|
+
align-self: center;
|
|
5186
|
+
flex: none;
|
|
5187
|
+
width: 8px;
|
|
5188
|
+
height: 8px;
|
|
5189
|
+
border-radius: 999px;
|
|
5190
|
+
/* The accent darkened toward the text colour: at least 3:1 on the row in both themes. */
|
|
5191
|
+
background: color-mix(in srgb, var(--pr-accent-deep) 55%, var(--pr-fg));
|
|
5192
|
+
box-shadow: 0 0 0 1px color-mix(in srgb, var(--pr-fg) 25%, transparent);
|
|
5193
|
+
}
|
|
5194
|
+
.pr-item-row__dot--overlay {
|
|
5195
|
+
position: absolute;
|
|
5196
|
+
inset-block-start: -2px;
|
|
5197
|
+
inset-inline-end: -2px;
|
|
5198
|
+
box-shadow: 0 0 0 2px var(--pr-item-bg);
|
|
5199
|
+
}
|
|
5200
|
+
.pr-item-row__meta {
|
|
5201
|
+
flex: none;
|
|
5202
|
+
font-size: 12px;
|
|
5203
|
+
line-height: 1.4;
|
|
5204
|
+
color: var(--pr-fg-muted);
|
|
5205
|
+
font-variant-numeric: tabular-nums;
|
|
5206
|
+
white-space: nowrap;
|
|
5207
|
+
}
|
|
5208
|
+
.pr-item-row__description {
|
|
5209
|
+
display: block;
|
|
5210
|
+
min-width: 0;
|
|
5211
|
+
overflow: hidden;
|
|
5212
|
+
font-size: 13px;
|
|
5213
|
+
line-height: 1.4;
|
|
5214
|
+
color: var(--pr-fg-muted);
|
|
5215
|
+
white-space: nowrap;
|
|
5216
|
+
text-overflow: ellipsis;
|
|
5217
|
+
}
|
|
5218
|
+
.pr-item-row__description strong {
|
|
5219
|
+
color: var(--pr-fg);
|
|
5220
|
+
font-weight: 600;
|
|
5221
|
+
}
|
|
5222
|
+
.pr-item-row__footer {
|
|
5223
|
+
display: block;
|
|
5224
|
+
min-width: 0;
|
|
5225
|
+
overflow: hidden;
|
|
5226
|
+
font-size: 12px;
|
|
5227
|
+
line-height: 1.4;
|
|
5228
|
+
color: var(--pr-fg-muted);
|
|
5229
|
+
white-space: nowrap;
|
|
5230
|
+
text-overflow: ellipsis;
|
|
5231
|
+
}
|
|
5232
|
+
/* A badge at the start of the footer keeps its size and sits on the text's middle. */
|
|
5233
|
+
.pr-item-row__footer .pr-badge {
|
|
5234
|
+
margin-block: -2px;
|
|
5235
|
+
margin-inline-end: 6px;
|
|
5236
|
+
vertical-align: middle;
|
|
5237
|
+
}
|
|
5238
|
+
.pr-item-row__description--2 {
|
|
5239
|
+
display: -webkit-box;
|
|
5240
|
+
white-space: normal;
|
|
5241
|
+
-webkit-line-clamp: 2;
|
|
5242
|
+
-webkit-box-orient: vertical;
|
|
5243
|
+
}
|
|
5244
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5245
|
+
.pr-item-row__main { transition: none; }
|
|
5246
|
+
}
|
|
5247
|
+
|
|
5248
|
+
/* ───────────────────────── SplitView ───────────────────────── */
|
|
5249
|
+
|
|
5250
|
+
/* Master-detail inside one card-like frame. CSS only: from 900px both panes
|
|
5251
|
+
show side by side; below, `data-detail-open` picks the one that shows.
|
|
5252
|
+
`fill` gives the frame a height (override with style or a class) and lets
|
|
5253
|
+
each pane scroll; `auto` lets the page scroll. */
|
|
5254
|
+
.pr-split-view {
|
|
5255
|
+
--pr-split-list: 360px;
|
|
5256
|
+
display: flex;
|
|
5257
|
+
min-width: 0;
|
|
5258
|
+
min-height: 0;
|
|
5259
|
+
overflow: hidden;
|
|
5260
|
+
border: 1px solid var(--pr-border);
|
|
5261
|
+
border-radius: var(--pr-radius-card, 0.75rem);
|
|
5262
|
+
background: var(--pr-surface);
|
|
5263
|
+
color: var(--pr-fg);
|
|
5264
|
+
font-family: var(--pr-font-body, inherit);
|
|
5265
|
+
}
|
|
5266
|
+
.pr-split-view--list-sm { --pr-split-list: 280px; }
|
|
5267
|
+
.pr-split-view--list-md { --pr-split-list: 360px; }
|
|
5268
|
+
.pr-split-view--list-lg { --pr-split-list: 440px; }
|
|
5269
|
+
.pr-split-view--fill {
|
|
5270
|
+
flex: 1 1 auto;
|
|
5271
|
+
height: min(72vh, 900px);
|
|
5272
|
+
}
|
|
5273
|
+
.pr-split-view__list,
|
|
5274
|
+
.pr-split-view__detail {
|
|
5275
|
+
display: flex;
|
|
5276
|
+
flex-direction: column;
|
|
5277
|
+
flex: 1 1 0;
|
|
5278
|
+
min-width: 0;
|
|
5279
|
+
min-height: 0;
|
|
5280
|
+
}
|
|
5281
|
+
.pr-split-view__list { border-inline-end: 0; }
|
|
5282
|
+
.pr-split-view__list-header {
|
|
5283
|
+
flex: none;
|
|
5284
|
+
padding: 12px;
|
|
5285
|
+
border-bottom: 1px solid var(--pr-border);
|
|
5286
|
+
}
|
|
5287
|
+
.pr-split-view__list-scroll,
|
|
5288
|
+
.pr-split-view__detail-scroll {
|
|
5289
|
+
flex: 1 1 auto;
|
|
5290
|
+
min-height: 0;
|
|
5291
|
+
min-width: 0;
|
|
5292
|
+
}
|
|
5293
|
+
.pr-split-view--fill .pr-split-view__list-scroll,
|
|
5294
|
+
.pr-split-view--fill .pr-split-view__detail-scroll {
|
|
5295
|
+
overflow: auto;
|
|
5296
|
+
}
|
|
5297
|
+
/* The detail pane owns its inset, like a Card body. Without it every consumer
|
|
5298
|
+
re-adds the same padding with a style prop. */
|
|
5299
|
+
.pr-split-view__detail-scroll { padding: 24px; }
|
|
5300
|
+
@media (max-width: 640px) {
|
|
5301
|
+
.pr-split-view__detail-scroll { padding: 16px; }
|
|
5302
|
+
}
|
|
5303
|
+
.pr-split-view__back {
|
|
5304
|
+
flex: none;
|
|
5305
|
+
padding: 8px 12px;
|
|
5306
|
+
border-bottom: 1px solid var(--pr-border);
|
|
5307
|
+
}
|
|
5308
|
+
|
|
5309
|
+
/* Narrow: one pane at a time. */
|
|
5310
|
+
@media (max-width: 899px) {
|
|
5311
|
+
.pr-split-view:not([data-detail-open]) .pr-split-view__detail { display: none; }
|
|
5312
|
+
.pr-split-view[data-detail-open] .pr-split-view__list { display: none; }
|
|
5313
|
+
}
|
|
5314
|
+
@media (min-width: 900px) {
|
|
5315
|
+
.pr-split-view__list {
|
|
5316
|
+
flex: 0 0 var(--pr-split-list);
|
|
5317
|
+
border-inline-end: 1px solid var(--pr-border);
|
|
5318
|
+
}
|
|
5319
|
+
.pr-split-view__back { display: none; }
|
|
5320
|
+
}
|
|
5321
|
+
|
|
5322
|
+
/* ───────────────────────── Stack ───────────────────────── */
|
|
5323
|
+
|
|
5324
|
+
/* Layout only. The scale is 4 / 8 / 12 / 16 / 24 px; the tokens package has no
|
|
5325
|
+
spacing scale to map to. */
|
|
5326
|
+
.pr-stack {
|
|
5327
|
+
display: flex;
|
|
5328
|
+
flex-direction: column;
|
|
5329
|
+
gap: 16px;
|
|
5330
|
+
}
|
|
5331
|
+
.pr-stack--row { flex-direction: row; }
|
|
5332
|
+
.pr-stack--wrap { flex-wrap: wrap; }
|
|
5333
|
+
.pr-stack--gap-xs { gap: 4px; }
|
|
5334
|
+
.pr-stack--gap-sm { gap: 8px; }
|
|
5335
|
+
.pr-stack--gap-md { gap: 12px; }
|
|
5336
|
+
.pr-stack--gap-lg { gap: 16px; }
|
|
5337
|
+
.pr-stack--gap-xl { gap: 24px; }
|
|
5338
|
+
.pr-stack--align-start { align-items: flex-start; }
|
|
5339
|
+
.pr-stack--align-center { align-items: center; }
|
|
5340
|
+
.pr-stack--align-end { align-items: flex-end; }
|
|
5341
|
+
.pr-stack--align-stretch { align-items: stretch; }
|
|
5342
|
+
.pr-stack--align-baseline { align-items: baseline; }
|
|
5343
|
+
.pr-stack--justify-start { justify-content: flex-start; }
|
|
5344
|
+
.pr-stack--justify-center { justify-content: center; }
|
|
5345
|
+
.pr-stack--justify-end { justify-content: flex-end; }
|
|
5346
|
+
.pr-stack--justify-between { justify-content: space-between; }
|
|
5347
|
+
|
|
5348
|
+
/* ───────────────────────── Disclosure ───────────────────────── */
|
|
5349
|
+
|
|
5350
|
+
.pr-disclosure {
|
|
5351
|
+
color: var(--pr-fg);
|
|
5352
|
+
font-family: var(--pr-font-body, inherit);
|
|
5353
|
+
}
|
|
5354
|
+
/* Stacked plain disclosures are divided by a hairline. */
|
|
5355
|
+
.pr-disclosure--plain + .pr-disclosure--plain { border-top: 1px solid var(--pr-border); }
|
|
5356
|
+
.pr-disclosure--card {
|
|
5357
|
+
background: var(--pr-surface);
|
|
5358
|
+
border: 1px solid var(--pr-border);
|
|
5359
|
+
border-radius: var(--pr-radius-card, 0.75rem);
|
|
5360
|
+
}
|
|
5361
|
+
.pr-disclosure__heading { margin: 0; font: inherit; }
|
|
5362
|
+
.pr-disclosure__trigger {
|
|
5363
|
+
display: flex;
|
|
5364
|
+
align-items: center;
|
|
5365
|
+
gap: 8px;
|
|
5366
|
+
width: 100%;
|
|
5367
|
+
min-height: 44px;
|
|
5368
|
+
padding: 8px 4px;
|
|
5369
|
+
border: 0;
|
|
5370
|
+
border-radius: var(--pr-radius-md, 0.75rem);
|
|
5371
|
+
background: transparent;
|
|
5372
|
+
color: inherit;
|
|
5373
|
+
font: inherit;
|
|
5374
|
+
text-align: start;
|
|
5375
|
+
cursor: pointer;
|
|
5376
|
+
}
|
|
5377
|
+
.pr-disclosure--card .pr-disclosure__trigger { padding: 8px 16px; }
|
|
5378
|
+
.pr-disclosure__trigger:hover .pr-disclosure__chevron { color: var(--pr-fg); }
|
|
5379
|
+
.pr-disclosure__trigger:focus-visible { outline: none; box-shadow: var(--pr-focus-ring); }
|
|
5380
|
+
.pr-disclosure__chevron {
|
|
5381
|
+
flex: none;
|
|
5382
|
+
color: var(--pr-fg-muted);
|
|
5383
|
+
transition: transform 160ms var(--pr-ease, ease);
|
|
5384
|
+
}
|
|
5385
|
+
.pr-disclosure[data-state='open'] .pr-disclosure__chevron { transform: rotate(90deg); }
|
|
5386
|
+
.pr-disclosure__text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
|
|
5387
|
+
.pr-disclosure__title { font-size: 15px; font-weight: 650; line-height: 1.35; }
|
|
5388
|
+
.pr-disclosure__description { color: var(--pr-fg-muted); font-size: 13px; line-height: 1.4; }
|
|
5389
|
+
.pr-disclosure__trailing { display: inline-flex; flex: none; align-items: center; gap: 8px; }
|
|
5390
|
+
.pr-disclosure__panel { padding-block: 4px 16px; padding-inline: 30px 4px; }
|
|
5391
|
+
.pr-disclosure--card .pr-disclosure__panel { padding-block: 4px 16px; padding-inline: 42px 16px; }
|
|
5392
|
+
.pr-disclosure__panel[hidden] { display: none; }
|
|
5393
|
+
|
|
5394
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5395
|
+
.pr-disclosure__chevron { transition: none; }
|
|
5396
|
+
}
|