@orianatech/pire 1.4.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/core/Avatar.d.ts.map +1 -1
- package/dist/components/core/Badge.d.ts.map +1 -1
- package/dist/components/core/Button.d.ts.map +1 -1
- package/dist/components/core/Card.d.ts.map +1 -1
- package/dist/components/core/Heading.d.ts.map +1 -1
- package/dist/components/core/Icon.d.ts.map +1 -1
- package/dist/components/core/IconButton.d.ts.map +1 -1
- package/dist/components/core/Kbd.d.ts.map +1 -1
- package/dist/components/core/SegmentedControl.d.ts.map +1 -1
- package/dist/components/core/Separator.d.ts.map +1 -1
- package/dist/components/core/Tag.d.ts.map +1 -1
- package/dist/components/core/Text.d.ts.map +1 -1
- package/dist/components/core/icon-map.d.ts.map +1 -1
- package/dist/components/data/BarChart.d.ts.map +1 -1
- package/dist/components/data/ChartFrame.d.ts.map +1 -1
- package/dist/components/data/DataTable.d.ts.map +1 -1
- package/dist/components/data/DescriptionList.d.ts.map +1 -1
- package/dist/components/data/DonutChart.d.ts.map +1 -1
- package/dist/components/data/FilterBar.d.ts.map +1 -1
- package/dist/components/data/KpiTile.d.cts +1 -1
- package/dist/components/data/KpiTile.d.ts +1 -1
- package/dist/components/data/KpiTile.d.ts.map +1 -1
- package/dist/components/data/LineChart.d.ts.map +1 -1
- package/dist/components/data/LinkList.d.ts.map +1 -1
- package/dist/components/data/ObjectHeader.d.ts.map +1 -1
- package/dist/components/data/RecordCard.d.ts.map +1 -1
- package/dist/components/data/ViewSwitcher.d.cts +1 -1
- package/dist/components/data/ViewSwitcher.d.ts +1 -1
- package/dist/components/data/ViewSwitcher.d.ts.map +1 -1
- package/dist/components/data/chartGeometry.d.ts.map +1 -1
- package/dist/components/feedback/Dialog.d.cts +1 -1
- package/dist/components/feedback/Dialog.d.ts +1 -1
- package/dist/components/feedback/Dialog.d.ts.map +1 -1
- package/dist/components/feedback/InlineMessage.d.ts.map +1 -1
- package/dist/components/feedback/ProgressBar.d.cts +1 -1
- package/dist/components/feedback/ProgressBar.d.ts +1 -1
- package/dist/components/feedback/ProgressBar.d.ts.map +1 -1
- package/dist/components/feedback/Skeleton.d.ts.map +1 -1
- package/dist/components/feedback/Toast.d.cts +1 -1
- package/dist/components/feedback/Toast.d.ts +1 -1
- package/dist/components/feedback/Toast.d.ts.map +1 -1
- package/dist/components/feedback/Tooltip.d.ts.map +1 -1
- package/dist/components/forms/Checkbox.d.ts.map +1 -1
- package/dist/components/forms/ChoiceCardGroup.d.ts.map +1 -1
- package/dist/components/forms/ComboBox.d.ts.map +1 -1
- package/dist/components/forms/DatePicker.d.ts.map +1 -1
- package/dist/components/forms/DateRangePicker.d.ts.map +1 -1
- package/dist/components/forms/FileUpload.d.ts.map +1 -1
- package/dist/components/forms/FormField.d.ts.map +1 -1
- package/dist/components/forms/Input.d.ts.map +1 -1
- package/dist/components/forms/MultiComboBox.d.ts.map +1 -1
- package/dist/components/forms/NumberField.d.ts.map +1 -1
- package/dist/components/forms/QuantityStepper.d.ts.map +1 -1
- package/dist/components/forms/Radio.d.ts.map +1 -1
- package/dist/components/forms/Select.d.ts.map +1 -1
- package/dist/components/forms/Switch.d.ts.map +1 -1
- package/dist/components/forms/TextArea.d.ts.map +1 -1
- package/dist/components/forms/ValueHelpField.d.cts +1 -1
- package/dist/components/forms/ValueHelpField.d.ts +1 -1
- package/dist/components/forms/ValueHelpField.d.ts.map +1 -1
- package/dist/components/forms/dateValues.d.ts.map +1 -1
- package/dist/components/layout/PageBand.d.ts.map +1 -1
- package/dist/components/layout/SectionHeader.d.ts.map +1 -1
- package/dist/components/layout/SelectionBar.d.ts.map +1 -1
- package/dist/components/layout/SplitPane.d.ts.map +1 -1
- package/dist/components/navigation/Breadcrumb.d.ts.map +1 -1
- package/dist/components/navigation/Menu.d.ts.map +1 -1
- package/dist/components/navigation/Pagination.d.cts +1 -1
- package/dist/components/navigation/Pagination.d.ts +1 -1
- package/dist/components/navigation/Pagination.d.ts.map +1 -1
- package/dist/components/navigation/Ribbon.d.ts.map +1 -1
- package/dist/components/navigation/ShellBar.d.ts.map +1 -1
- package/dist/components/navigation/ShellRail.d.ts.map +1 -1
- package/dist/components/navigation/SideNav.d.cts +9 -1
- package/dist/components/navigation/SideNav.d.ts +9 -1
- package/dist/components/navigation/SideNav.d.ts.map +1 -1
- package/dist/components/navigation/Tabs.d.ts.map +1 -1
- package/dist/components/patterns/AppLauncher.d.cts +1 -1
- package/dist/components/patterns/AppLauncher.d.ts +1 -1
- package/dist/components/patterns/AppLauncher.d.ts.map +1 -1
- package/dist/components/patterns/CommandPalette.d.ts.map +1 -1
- package/dist/components/patterns/ConfirmDialog.d.cts +1 -1
- package/dist/components/patterns/ConfirmDialog.d.ts +1 -1
- package/dist/components/patterns/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/patterns/EmptyState.d.ts.map +1 -1
- package/dist/components/patterns/FileDropZone.d.ts.map +1 -1
- package/dist/components/patterns/NumPad.d.cts +19 -2
- package/dist/components/patterns/NumPad.d.ts +19 -2
- package/dist/components/patterns/NumPad.d.ts.map +1 -1
- package/dist/components/patterns/SidePanel.d.cts +1 -1
- package/dist/components/patterns/SidePanel.d.ts +1 -1
- package/dist/components/patterns/SidePanel.d.ts.map +1 -1
- package/dist/components/patterns/ValueHelpDialog.d.cts +1 -1
- package/dist/components/patterns/ValueHelpDialog.d.ts +1 -1
- package/dist/components/patterns/ValueHelpDialog.d.ts.map +1 -1
- package/dist/components/utils/decimalSeparator.d.cts +9 -0
- package/dist/components/utils/decimalSeparator.d.ts +10 -0
- package/dist/components/utils/decimalSeparator.d.ts.map +1 -0
- package/dist/components.css +3661 -691
- package/dist/i18n/PireIntlProvider.d.ts.map +1 -1
- package/dist/i18n/messages.d.cts +3 -0
- package/dist/i18n/messages.d.ts +3 -0
- package/dist/i18n/messages.d.ts.map +1 -1
- package/dist/index.cjs +659 -263
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +663 -254
- package/dist/index.js.map +1 -1
- package/dist/tokens/base.css +64 -13
- package/dist/tokens/colors.css +156 -78
- package/dist/tokens/elevation.css +20 -16
- package/dist/tokens/fonts.css +49 -7
- package/dist/tokens/motion.css +15 -12
- package/dist/tokens/spacing.css +41 -16
- package/dist/tokens/themes.css +88 -32
- package/dist/tokens/typography.css +43 -36
- package/package.json +1 -1
package/dist/components.css
CHANGED
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
and keyboard behave identically. Every value is a token. */
|
|
5
5
|
|
|
6
6
|
/* ---- focus ---------------------------------------------------------- */
|
|
7
|
-
.pire [data-focus-visible]
|
|
7
|
+
.pire [data-focus-visible],
|
|
8
|
+
.pire[data-focus-visible],
|
|
9
|
+
.pire-focusable[data-focus-visible] {
|
|
10
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
11
|
+
outline-offset: var(--focus-offset);
|
|
12
|
+
}
|
|
8
13
|
|
|
9
14
|
/* ---- shared utilities ------------------------------------------------
|
|
10
15
|
Classes referenced from component code, and keyframes referenced from the rules below. They
|
|
@@ -21,153 +26,554 @@
|
|
|
21
26
|
on screen to show for it. Bootstrap's `.visually-hidden` is marked the same way, for the same
|
|
22
27
|
reason. */
|
|
23
28
|
/* biome-ignore-start lint/complexity/noImportantStyles: order-independence is the point — see above. */
|
|
24
|
-
.pire-sr-only{
|
|
29
|
+
.pire-sr-only {
|
|
30
|
+
position: absolute !important;
|
|
31
|
+
width: 1px !important;
|
|
32
|
+
height: 1px !important;
|
|
33
|
+
padding: 0 !important;
|
|
34
|
+
margin: -1px !important;
|
|
35
|
+
overflow: hidden !important;
|
|
36
|
+
clip-path: inset(50%) !important;
|
|
37
|
+
white-space: nowrap !important;
|
|
38
|
+
border: 0 !important;
|
|
39
|
+
}
|
|
25
40
|
/* biome-ignore-end lint/complexity/noImportantStyles: order-independence is the point — see above. */
|
|
26
|
-
.pire-numeric{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
41
|
+
.pire-numeric {
|
|
42
|
+
font: var(--type-numeric);
|
|
43
|
+
letter-spacing: var(--ls-numeric);
|
|
44
|
+
font-variant-numeric: tabular-nums;
|
|
45
|
+
}
|
|
46
|
+
.pire-eyebrow {
|
|
47
|
+
font: var(--type-label);
|
|
48
|
+
letter-spacing: var(--ls-caps);
|
|
49
|
+
text-transform: uppercase;
|
|
50
|
+
color: var(--text-secondary);
|
|
51
|
+
}
|
|
52
|
+
@keyframes pire-toast-in {
|
|
53
|
+
from {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
transform: translate(var(--pire-toast-tx, -50%), 8px);
|
|
56
|
+
}
|
|
57
|
+
to {
|
|
58
|
+
opacity: 1;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
@keyframes pire-dialog-in {
|
|
62
|
+
from {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
transform: translateY(-8px);
|
|
65
|
+
}
|
|
66
|
+
to {
|
|
67
|
+
opacity: 1;
|
|
68
|
+
transform: translateY(0);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@keyframes pire-fade-in {
|
|
72
|
+
from {
|
|
73
|
+
opacity: 0;
|
|
74
|
+
}
|
|
75
|
+
to {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
31
79
|
|
|
32
80
|
/* ---- Button --------------------------------------------------------- */
|
|
33
|
-
.pire-btn{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
81
|
+
.pire-btn {
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
gap: var(--sp-2);
|
|
86
|
+
height: var(--control-h-md);
|
|
87
|
+
padding: 0 var(--control-pad-x);
|
|
88
|
+
font: var(--type-body-strong);
|
|
89
|
+
letter-spacing: var(--ls-body);
|
|
90
|
+
border-radius: var(--radius-1);
|
|
91
|
+
border: 1px solid transparent;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
transition: var(--transition-control);
|
|
95
|
+
appearance: none;
|
|
96
|
+
}
|
|
97
|
+
.pire-btn[data-size="sm"] {
|
|
98
|
+
height: var(--control-h-sm);
|
|
99
|
+
}
|
|
100
|
+
.pire-btn[data-size="lg"] {
|
|
101
|
+
height: var(--control-h-lg);
|
|
102
|
+
padding: 0 var(--control-pad-x-lg);
|
|
103
|
+
}
|
|
104
|
+
.pire-btn[data-full-width="true"] {
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
.pire-btn[data-variant="primary"] {
|
|
108
|
+
background: var(--accent-bg);
|
|
109
|
+
color: var(--accent-fg);
|
|
110
|
+
border-color: var(--accent-bg);
|
|
111
|
+
}
|
|
112
|
+
.pire-btn[data-variant="primary"][data-hovered] {
|
|
113
|
+
background: var(--accent-bg-hover);
|
|
114
|
+
border-color: var(--accent-bg-hover);
|
|
115
|
+
}
|
|
116
|
+
.pire-btn[data-variant="primary"][data-pressed] {
|
|
117
|
+
background: var(--accent-bg-active);
|
|
118
|
+
border-color: var(--accent-bg-active);
|
|
119
|
+
}
|
|
120
|
+
.pire-btn[data-variant="secondary"] {
|
|
121
|
+
background: var(--surface-card);
|
|
122
|
+
color: var(--accent-subtle-fg);
|
|
123
|
+
border-color: var(--accent-bg);
|
|
124
|
+
}
|
|
125
|
+
.pire-btn[data-variant="secondary"][data-hovered] {
|
|
126
|
+
background: var(--accent-subtle-bg);
|
|
127
|
+
}
|
|
128
|
+
.pire-btn[data-variant="secondary"][data-pressed] {
|
|
129
|
+
background: var(--blue-20);
|
|
130
|
+
}
|
|
131
|
+
.pire-btn[data-variant="tertiary"] {
|
|
132
|
+
background: transparent;
|
|
133
|
+
color: var(--text-link);
|
|
134
|
+
}
|
|
135
|
+
.pire-btn[data-variant="tertiary"][data-hovered] {
|
|
136
|
+
background: var(--surface-hover);
|
|
137
|
+
}
|
|
45
138
|
/* The label deepens with the press, not just the background. `--surface-active` is the strongest
|
|
46
139
|
tint in the neutral ramp, and holding the resting link colour against it leaves 4.03:1 in dark. */
|
|
47
|
-
.pire-btn[data-variant="tertiary"][data-pressed]{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.pire-btn[data-variant="
|
|
52
|
-
|
|
140
|
+
.pire-btn[data-variant="tertiary"][data-pressed] {
|
|
141
|
+
background: var(--surface-active);
|
|
142
|
+
color: var(--text-link-hover);
|
|
143
|
+
}
|
|
144
|
+
.pire-btn[data-variant="danger"] {
|
|
145
|
+
background: var(--danger-bg);
|
|
146
|
+
color: var(--accent-fg);
|
|
147
|
+
border-color: var(--danger-bg);
|
|
148
|
+
}
|
|
149
|
+
.pire-btn[data-variant="danger"][data-hovered] {
|
|
150
|
+
background: var(--danger-bg-hover);
|
|
151
|
+
border-color: var(--danger-bg-hover);
|
|
152
|
+
}
|
|
153
|
+
.pire-btn[data-variant="emphasized"] {
|
|
154
|
+
background: var(--surface-shell);
|
|
155
|
+
color: var(--accent-fg);
|
|
156
|
+
border-color: var(--surface-shell);
|
|
157
|
+
}
|
|
158
|
+
.pire-btn[data-variant="emphasized"][data-hovered] {
|
|
159
|
+
background: var(--blue-80);
|
|
160
|
+
border-color: var(--blue-80);
|
|
161
|
+
}
|
|
162
|
+
.pire-btn[data-disabled] {
|
|
163
|
+
background: var(--surface-disabled);
|
|
164
|
+
color: var(--text-disabled);
|
|
165
|
+
border-color: var(--border-subtle);
|
|
166
|
+
cursor: not-allowed;
|
|
167
|
+
}
|
|
53
168
|
|
|
54
169
|
/* ---- IconButton ------------------------------------------------------ */
|
|
55
|
-
.pire-iconbtn{
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
170
|
+
.pire-iconbtn {
|
|
171
|
+
display: inline-flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
width: var(--control-h-md);
|
|
175
|
+
height: var(--control-h-md);
|
|
176
|
+
border: 1px solid transparent;
|
|
177
|
+
border-radius: var(--radius-1);
|
|
178
|
+
background: transparent;
|
|
179
|
+
color: var(--text-secondary);
|
|
180
|
+
cursor: pointer;
|
|
181
|
+
transition: var(--transition-control);
|
|
182
|
+
}
|
|
183
|
+
.pire-iconbtn[data-size="sm"] {
|
|
184
|
+
width: var(--control-h-sm);
|
|
185
|
+
height: var(--control-h-sm);
|
|
186
|
+
}
|
|
187
|
+
.pire-iconbtn[data-size="lg"] {
|
|
188
|
+
width: var(--control-h-lg);
|
|
189
|
+
height: var(--control-h-lg);
|
|
190
|
+
}
|
|
191
|
+
.pire-iconbtn[data-hovered] {
|
|
192
|
+
background: var(--surface-hover);
|
|
193
|
+
color: var(--text-primary);
|
|
194
|
+
}
|
|
195
|
+
.pire-iconbtn[data-selected="true"] {
|
|
196
|
+
background: var(--surface-selected);
|
|
197
|
+
color: var(--accent-subtle-fg);
|
|
198
|
+
}
|
|
199
|
+
.pire-iconbtn[data-variant="outlined"] {
|
|
200
|
+
border-color: var(--border-field);
|
|
201
|
+
background: var(--surface-card);
|
|
202
|
+
}
|
|
203
|
+
.pire-iconbtn[data-variant="inverse"] {
|
|
204
|
+
color: var(--text-inverse);
|
|
205
|
+
}
|
|
206
|
+
.pire-iconbtn[data-variant="inverse"][data-hovered] {
|
|
207
|
+
background: var(--surface-shell-hover);
|
|
208
|
+
color: var(--text-inverse);
|
|
209
|
+
}
|
|
210
|
+
.pire-iconbtn[data-disabled] {
|
|
211
|
+
color: var(--text-disabled);
|
|
212
|
+
cursor: not-allowed;
|
|
213
|
+
background: transparent;
|
|
214
|
+
}
|
|
64
215
|
|
|
65
216
|
/* ---- Badge / Tag ----------------------------------------------------- */
|
|
66
|
-
.pire-badge{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
217
|
+
.pire-badge {
|
|
218
|
+
display: inline-flex;
|
|
219
|
+
align-items: center;
|
|
220
|
+
gap: var(--sp-1);
|
|
221
|
+
height: 20px;
|
|
222
|
+
padding: 0 var(--sp-2);
|
|
223
|
+
border-radius: var(--radius-1);
|
|
224
|
+
font: var(--type-label);
|
|
225
|
+
white-space: nowrap;
|
|
226
|
+
border: 1px solid transparent;
|
|
227
|
+
}
|
|
228
|
+
.pire-badge[data-status="positive"] {
|
|
229
|
+
background: var(--status-positive-bg);
|
|
230
|
+
color: var(--status-positive-fg);
|
|
231
|
+
border-color: var(--status-positive-border);
|
|
232
|
+
}
|
|
233
|
+
.pire-badge[data-status="critical"] {
|
|
234
|
+
background: var(--status-critical-bg);
|
|
235
|
+
color: var(--status-critical-fg);
|
|
236
|
+
border-color: var(--status-critical-border);
|
|
237
|
+
}
|
|
238
|
+
.pire-badge[data-status="negative"] {
|
|
239
|
+
background: var(--status-negative-bg);
|
|
240
|
+
color: var(--status-negative-fg);
|
|
241
|
+
border-color: var(--status-negative-border);
|
|
242
|
+
}
|
|
243
|
+
.pire-badge[data-status="informative"] {
|
|
244
|
+
background: var(--status-informative-bg);
|
|
245
|
+
color: var(--status-informative-fg);
|
|
246
|
+
border-color: var(--status-informative-border);
|
|
247
|
+
}
|
|
248
|
+
.pire-badge[data-status="neutral"] {
|
|
249
|
+
background: var(--status-neutral-bg);
|
|
250
|
+
color: var(--status-neutral-fg);
|
|
251
|
+
border-color: var(--status-neutral-border);
|
|
252
|
+
}
|
|
253
|
+
.pire-tag {
|
|
254
|
+
display: inline-flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
gap: var(--sp-1);
|
|
257
|
+
height: 24px;
|
|
258
|
+
padding: 0 var(--sp-1) 0 var(--sp-2);
|
|
259
|
+
border: 1px solid var(--border-default);
|
|
260
|
+
border-radius: var(--radius-1);
|
|
261
|
+
background: var(--surface-sunken);
|
|
262
|
+
color: var(--text-primary);
|
|
263
|
+
font: var(--type-caption);
|
|
264
|
+
white-space: nowrap;
|
|
265
|
+
}
|
|
266
|
+
.pire-tag[data-disabled] {
|
|
267
|
+
color: var(--text-disabled);
|
|
268
|
+
background: var(--surface-disabled);
|
|
269
|
+
}
|
|
74
270
|
/* Category identity rides on a mark, never on the label: the text keeps --text-primary so its
|
|
75
271
|
contrast holds in every token scope, and the category is never colour-alone. Slots come from the
|
|
76
272
|
shared --viz ramp, which is already validated for colour-blind separation between adjacent
|
|
77
273
|
slots — a second categorical palette would have to earn that again and could be confused with
|
|
78
274
|
this one. */
|
|
79
|
-
.pire-tag-swatch{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
.pire-tag-
|
|
87
|
-
|
|
275
|
+
.pire-tag-swatch {
|
|
276
|
+
flex: 0 0 auto;
|
|
277
|
+
width: 8px;
|
|
278
|
+
height: 8px;
|
|
279
|
+
border-radius: var(--radius-pill);
|
|
280
|
+
background: var(--viz-1);
|
|
281
|
+
}
|
|
282
|
+
.pire-tag-swatch[data-category="2"] {
|
|
283
|
+
background: var(--viz-2);
|
|
284
|
+
}
|
|
285
|
+
.pire-tag-swatch[data-category="3"] {
|
|
286
|
+
background: var(--viz-3);
|
|
287
|
+
}
|
|
288
|
+
.pire-tag-swatch[data-category="4"] {
|
|
289
|
+
background: var(--viz-4);
|
|
290
|
+
}
|
|
291
|
+
.pire-tag-swatch[data-category="5"] {
|
|
292
|
+
background: var(--viz-5);
|
|
293
|
+
}
|
|
294
|
+
.pire-tag-swatch[data-category="6"] {
|
|
295
|
+
background: var(--viz-6);
|
|
296
|
+
}
|
|
297
|
+
.pire-tag[data-disabled] .pire-tag-swatch {
|
|
298
|
+
background: var(--text-disabled);
|
|
299
|
+
}
|
|
300
|
+
.pire-tag-remove {
|
|
301
|
+
display: inline-flex;
|
|
302
|
+
align-items: center;
|
|
303
|
+
justify-content: center;
|
|
304
|
+
width: 16px;
|
|
305
|
+
height: 16px;
|
|
306
|
+
border: 0;
|
|
307
|
+
border-radius: var(--radius-1);
|
|
308
|
+
background: transparent;
|
|
309
|
+
color: var(--text-secondary);
|
|
310
|
+
cursor: pointer;
|
|
311
|
+
}
|
|
312
|
+
.pire-tag-remove[data-hovered] {
|
|
313
|
+
background: var(--surface-active);
|
|
314
|
+
color: var(--text-primary);
|
|
315
|
+
}
|
|
88
316
|
|
|
89
317
|
/* ---- Card ------------------------------------------------------------ */
|
|
90
|
-
.pire-card{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
318
|
+
.pire-card {
|
|
319
|
+
display: flex;
|
|
320
|
+
flex-direction: column;
|
|
321
|
+
background: var(--surface-card);
|
|
322
|
+
border: 1px solid var(--border-subtle);
|
|
323
|
+
border-radius: var(--radius-2);
|
|
324
|
+
box-shadow: var(--shadow-1);
|
|
325
|
+
transition: var(--transition-surface);
|
|
326
|
+
}
|
|
327
|
+
.pire-card[data-interactive="true"] {
|
|
328
|
+
cursor: pointer;
|
|
329
|
+
}
|
|
330
|
+
.pire-card[data-interactive="true"]:hover {
|
|
331
|
+
box-shadow: var(--shadow-2);
|
|
332
|
+
}
|
|
333
|
+
.pire-card-head {
|
|
334
|
+
display: flex;
|
|
335
|
+
align-items: flex-start;
|
|
336
|
+
gap: var(--sp-3);
|
|
337
|
+
padding: var(--sp-4);
|
|
338
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
339
|
+
}
|
|
340
|
+
.pire-card-title {
|
|
341
|
+
font: var(--type-h4);
|
|
342
|
+
letter-spacing: var(--ls-heading);
|
|
343
|
+
}
|
|
344
|
+
.pire-card-sub {
|
|
345
|
+
font: var(--type-caption);
|
|
346
|
+
color: var(--text-secondary);
|
|
347
|
+
}
|
|
348
|
+
.pire-card-body {
|
|
349
|
+
padding: var(--sp-4);
|
|
350
|
+
flex: 1;
|
|
351
|
+
}
|
|
352
|
+
.pire-card-foot {
|
|
353
|
+
display: flex;
|
|
354
|
+
justify-content: flex-end;
|
|
355
|
+
gap: var(--sp-2);
|
|
356
|
+
padding: var(--sp-3) var(--sp-4);
|
|
357
|
+
border-top: 1px solid var(--border-subtle);
|
|
358
|
+
}
|
|
98
359
|
|
|
99
360
|
/* ---- Field shell (Input, Select, ComboBox, TextArea, MultiComboBox) --- */
|
|
100
|
-
.pire-field{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
.pire-field
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
.pire-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
.pire-
|
|
114
|
-
|
|
361
|
+
.pire-field {
|
|
362
|
+
display: flex;
|
|
363
|
+
flex-direction: column;
|
|
364
|
+
gap: var(--sp-1);
|
|
365
|
+
}
|
|
366
|
+
.pire-field-label {
|
|
367
|
+
font: var(--type-label);
|
|
368
|
+
color: var(--text-label);
|
|
369
|
+
}
|
|
370
|
+
.pire-field-req {
|
|
371
|
+
color: var(--status-negative-fg);
|
|
372
|
+
margin-left: var(--sp-0h);
|
|
373
|
+
}
|
|
374
|
+
.pire-field-hint {
|
|
375
|
+
font: var(--type-caption);
|
|
376
|
+
color: var(--text-secondary);
|
|
377
|
+
}
|
|
378
|
+
.pire-field-error {
|
|
379
|
+
display: flex;
|
|
380
|
+
align-items: center;
|
|
381
|
+
gap: var(--sp-1);
|
|
382
|
+
font: var(--type-caption);
|
|
383
|
+
color: var(--status-negative-fg);
|
|
384
|
+
}
|
|
385
|
+
.pire-field[data-layout="horizontal"] {
|
|
386
|
+
display: grid;
|
|
387
|
+
grid-template-columns: 160px 1fr;
|
|
388
|
+
column-gap: var(--sp-4);
|
|
389
|
+
align-items: center;
|
|
390
|
+
}
|
|
391
|
+
.pire-field[data-layout="horizontal"] .pire-field-label {
|
|
392
|
+
text-align: right;
|
|
393
|
+
}
|
|
394
|
+
.pire-field[data-layout="horizontal"] .pire-field-hint,
|
|
395
|
+
.pire-field[data-layout="horizontal"] .pire-field-error {
|
|
396
|
+
grid-column: 2;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.pire-control {
|
|
400
|
+
display: inline-flex;
|
|
401
|
+
align-items: center;
|
|
402
|
+
gap: var(--sp-2);
|
|
403
|
+
height: var(--control-h-md);
|
|
404
|
+
width: 100%;
|
|
405
|
+
padding: 0 var(--control-pad-x);
|
|
406
|
+
background: var(--surface-card);
|
|
407
|
+
color: var(--text-primary);
|
|
408
|
+
border: 1px solid var(--border-field);
|
|
409
|
+
border-radius: var(--radius-1);
|
|
410
|
+
transition: var(--transition-control);
|
|
411
|
+
}
|
|
412
|
+
.pire-control[data-size="sm"] {
|
|
413
|
+
height: var(--control-h-sm);
|
|
414
|
+
}
|
|
415
|
+
.pire-control[data-size="lg"] {
|
|
416
|
+
height: var(--control-h-lg);
|
|
417
|
+
}
|
|
418
|
+
.pire-control[data-full-width="false"] {
|
|
419
|
+
width: auto;
|
|
420
|
+
}
|
|
421
|
+
.pire-control[data-hovered] {
|
|
422
|
+
border-color: var(--border-strong);
|
|
423
|
+
}
|
|
424
|
+
.pire-control[data-focus-within] {
|
|
425
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
426
|
+
outline-offset: var(--focus-offset);
|
|
427
|
+
}
|
|
115
428
|
/* The shell above owns the focus ring for the whole control, so nested focusables must not
|
|
116
429
|
paint a second one. base.css gives every input/button/[tabindex] a :focus-visible outline at
|
|
117
430
|
specificity (0,1,1), which outranks the plain .pire-input/.pire-datesegment `outline:none`
|
|
118
431
|
(0,1,0) regardless of import order — hence the class+pseudo-class selector here.
|
|
119
432
|
The descendant combinator deliberately excludes .pire-control itself: on Select the control
|
|
120
433
|
IS the focusable button and must keep its own ring. */
|
|
121
|
-
.pire-control :focus-visible{
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
.pire-control[data-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
.pire-
|
|
434
|
+
.pire-control :focus-visible {
|
|
435
|
+
outline: none;
|
|
436
|
+
}
|
|
437
|
+
.pire-control[data-invalid="true"] {
|
|
438
|
+
border-color: var(--status-negative-fg);
|
|
439
|
+
border-bottom-width: 2px;
|
|
440
|
+
}
|
|
441
|
+
.pire-control[data-disabled] {
|
|
442
|
+
background: var(--surface-disabled);
|
|
443
|
+
color: var(--text-disabled);
|
|
444
|
+
cursor: not-allowed;
|
|
445
|
+
}
|
|
446
|
+
.pire-control[data-readonly="true"] {
|
|
447
|
+
background: var(--surface-sunken);
|
|
448
|
+
}
|
|
449
|
+
.pire-input {
|
|
450
|
+
flex: 1;
|
|
451
|
+
min-width: 0;
|
|
452
|
+
border: 0;
|
|
453
|
+
outline: none;
|
|
454
|
+
background: transparent;
|
|
455
|
+
color: inherit;
|
|
456
|
+
font: var(--type-body);
|
|
457
|
+
}
|
|
458
|
+
.pire-input[data-numeric="true"] {
|
|
459
|
+
font: var(--type-numeric);
|
|
460
|
+
text-align: right;
|
|
461
|
+
font-variant-numeric: tabular-nums;
|
|
462
|
+
}
|
|
463
|
+
.pire-input::placeholder {
|
|
464
|
+
color: var(--text-tertiary);
|
|
465
|
+
}
|
|
466
|
+
.pire-affix {
|
|
467
|
+
font: var(--type-caption);
|
|
468
|
+
color: var(--text-secondary);
|
|
469
|
+
flex: 0 0 auto;
|
|
470
|
+
}
|
|
129
471
|
/* Chrome and Safari decorate type="search" with their own clear button. It cannot be styled or
|
|
130
472
|
sized, Firefox does not draw one at all, and it ignores every token here — so a search box would
|
|
131
473
|
look different per browser. Hidden everywhere; `isClearable` is the replacement, and it is a real
|
|
132
474
|
labelled button rather than a browser affordance. */
|
|
133
|
-
.pire-input::-webkit-search-cancel-button{
|
|
475
|
+
.pire-input::-webkit-search-cancel-button {
|
|
476
|
+
display: none;
|
|
477
|
+
}
|
|
134
478
|
/* A word, not an icon. An icon-only "x" inside a dialog sits beside the dialog's own close "x" and
|
|
135
479
|
reads as a second way to dismiss it; the label says what is being cleared. Sized down so it
|
|
136
480
|
belongs to the field rather than competing with it. */
|
|
137
|
-
.pire-input-clear{
|
|
138
|
-
|
|
481
|
+
.pire-input-clear {
|
|
482
|
+
flex: 0 0 auto;
|
|
483
|
+
border: 0;
|
|
484
|
+
background: transparent;
|
|
485
|
+
padding: 0 var(--sp-1);
|
|
486
|
+
font: var(--type-caption);
|
|
487
|
+
color: var(--text-link);
|
|
488
|
+
cursor: pointer;
|
|
489
|
+
border-radius: var(--radius-1);
|
|
490
|
+
white-space: nowrap;
|
|
491
|
+
transition: var(--transition-control);
|
|
492
|
+
}
|
|
493
|
+
.pire-input-clear[data-hovered] {
|
|
494
|
+
color: var(--text-link-hover);
|
|
495
|
+
text-decoration: underline;
|
|
496
|
+
}
|
|
139
497
|
/* `.pire-control :focus-visible` clears inner rings so the control shows a single one. This button
|
|
140
498
|
is a separate target inside it, so it keeps its own. */
|
|
141
|
-
.pire-input-clear[data-focus-visible]{
|
|
142
|
-
|
|
499
|
+
.pire-input-clear[data-focus-visible] {
|
|
500
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
501
|
+
outline-offset: 1px;
|
|
502
|
+
}
|
|
503
|
+
.pire-leading-icon {
|
|
504
|
+
color: var(--text-tertiary);
|
|
505
|
+
flex: 0 0 auto;
|
|
506
|
+
}
|
|
143
507
|
/* The shell is fixed-height by default because every single-line control is. Controls whose
|
|
144
508
|
content sets the height (TextArea, MultiComboBox's chips) opt out with data-multiline and
|
|
145
509
|
keep everything else — focus ring, invalid, disabled, readonly, sizing — from the rules
|
|
146
510
|
above. This block sits after the [data-size] heights on purpose: equal specificity, so the
|
|
147
511
|
later `height:auto` wins, and the per-size floor is restored as a min-height. */
|
|
148
|
-
.pire-control[data-multiline="true"]{
|
|
149
|
-
|
|
150
|
-
|
|
512
|
+
.pire-control[data-multiline="true"] {
|
|
513
|
+
height: auto;
|
|
514
|
+
min-height: var(--control-h-md);
|
|
515
|
+
align-items: stretch;
|
|
516
|
+
padding-top: var(--sp-2);
|
|
517
|
+
padding-bottom: var(--sp-2);
|
|
518
|
+
}
|
|
519
|
+
.pire-control[data-multiline="true"][data-size="sm"] {
|
|
520
|
+
min-height: var(--control-h-sm);
|
|
521
|
+
}
|
|
522
|
+
.pire-control[data-multiline="true"][data-size="lg"] {
|
|
523
|
+
min-height: var(--control-h-lg);
|
|
524
|
+
}
|
|
151
525
|
|
|
152
526
|
/* ---- TextArea -------------------------------------------------------- */
|
|
153
|
-
.pire-textarea{
|
|
527
|
+
.pire-textarea {
|
|
528
|
+
display: block;
|
|
529
|
+
width: 100%;
|
|
530
|
+
resize: vertical;
|
|
531
|
+
overflow: auto;
|
|
532
|
+
}
|
|
154
533
|
/* autoGrow writes an inline height on every keystroke, so a height dragged by hand would be
|
|
155
534
|
thrown away on the next one — the grip is removed rather than left lying about it. */
|
|
156
|
-
.pire-textarea[data-auto-grow="true"]{
|
|
535
|
+
.pire-textarea[data-auto-grow="true"] {
|
|
536
|
+
resize: none;
|
|
537
|
+
}
|
|
157
538
|
|
|
158
539
|
/* ---- MultiComboBox --------------------------------------------------- */
|
|
159
|
-
.pire-chipfield{
|
|
540
|
+
.pire-chipfield {
|
|
541
|
+
flex: 1;
|
|
542
|
+
min-width: 0;
|
|
543
|
+
display: flex;
|
|
544
|
+
flex-wrap: wrap;
|
|
545
|
+
align-items: center;
|
|
546
|
+
gap: var(--sp-1);
|
|
547
|
+
}
|
|
160
548
|
/* Never narrower than a few characters, so the caret stays reachable however many chips are in. */
|
|
161
|
-
.pire-chipinput{
|
|
549
|
+
.pire-chipinput {
|
|
550
|
+
flex: 1 1 6ch;
|
|
551
|
+
min-width: 6ch;
|
|
552
|
+
}
|
|
162
553
|
/* Each chip's remove button is a Tab stop of its own inside the shell, and the shell's blanket
|
|
163
554
|
`:focus-visible{outline:none}` (see above) would otherwise leave it unmarked. */
|
|
164
|
-
.pire-chipfield .pire-tag-remove[data-focus-visible]{
|
|
555
|
+
.pire-chipfield .pire-tag-remove[data-focus-visible] {
|
|
556
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
557
|
+
outline-offset: var(--focus-offset);
|
|
558
|
+
}
|
|
165
559
|
/* One ring at a time: while a chip owns focus it, not the shell, is what moved. */
|
|
166
|
-
.pire-control:has(.pire-tag-remove[data-focus-visible])[data-focus-within]{
|
|
560
|
+
.pire-control:has(.pire-tag-remove[data-focus-visible])[data-focus-within] {
|
|
561
|
+
outline: none;
|
|
562
|
+
}
|
|
167
563
|
|
|
168
564
|
/* ---- Select / ListBox popover ---------------------------------------- */
|
|
169
|
-
.pire-select-value{
|
|
170
|
-
|
|
565
|
+
.pire-select-value {
|
|
566
|
+
flex: 1;
|
|
567
|
+
min-width: 0;
|
|
568
|
+
text-align: left;
|
|
569
|
+
overflow: hidden;
|
|
570
|
+
text-overflow: ellipsis;
|
|
571
|
+
white-space: nowrap;
|
|
572
|
+
font: var(--type-body);
|
|
573
|
+
}
|
|
574
|
+
.pire-select-value[data-placeholder] {
|
|
575
|
+
color: var(--text-tertiary);
|
|
576
|
+
}
|
|
171
577
|
/* The viewport clamp is load-bearing, not cosmetic. Sized to its trigger alone, a
|
|
172
578
|
full-bleed trigger makes the popover exactly the viewport width, while React Aria
|
|
173
579
|
positions it no closer than 12px to either edge (`useOverlayPosition`'s default
|
|
@@ -177,58 +583,245 @@
|
|
|
177
583
|
Both bounds are needed: CSS resolves min-width *after* max-width, so a bare
|
|
178
584
|
`max-width` would be ignored whenever `--trigger-width` exceeded it. The min-width is
|
|
179
585
|
therefore clamped at source, and the max-width caps content-driven growth as well. */
|
|
180
|
-
.pire-popover{
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
586
|
+
.pire-popover {
|
|
587
|
+
background: var(--surface-raised);
|
|
588
|
+
border: 1px solid var(--border-default);
|
|
589
|
+
border-radius: var(--radius-2);
|
|
590
|
+
box-shadow: var(--shadow-3);
|
|
591
|
+
overflow: auto;
|
|
592
|
+
max-height: min(320px, var(--trigger-height, 320px));
|
|
593
|
+
min-width: min(var(--trigger-width), calc(100vw - 24px));
|
|
594
|
+
max-width: calc(100vw - 24px);
|
|
595
|
+
animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
|
|
596
|
+
}
|
|
597
|
+
.pire-listbox {
|
|
598
|
+
outline: none;
|
|
599
|
+
padding: var(--sp-1) 0;
|
|
600
|
+
display: flex;
|
|
601
|
+
flex-direction: column;
|
|
602
|
+
}
|
|
603
|
+
.pire-option {
|
|
604
|
+
display: flex;
|
|
605
|
+
align-items: center;
|
|
606
|
+
gap: var(--sp-2);
|
|
607
|
+
min-height: var(--row-h-condensed);
|
|
608
|
+
padding: 0 var(--sp-3);
|
|
609
|
+
font: var(--type-body);
|
|
610
|
+
color: var(--text-primary);
|
|
611
|
+
cursor: pointer;
|
|
612
|
+
outline: none;
|
|
613
|
+
}
|
|
614
|
+
.pire-option[data-focused] {
|
|
615
|
+
background: var(--surface-hover);
|
|
616
|
+
}
|
|
617
|
+
.pire-option[data-selected] {
|
|
618
|
+
background: var(--surface-selected);
|
|
619
|
+
color: var(--accent-subtle-fg);
|
|
620
|
+
font: var(--type-body-strong);
|
|
621
|
+
}
|
|
622
|
+
.pire-option[data-disabled] {
|
|
623
|
+
color: var(--text-disabled);
|
|
624
|
+
cursor: not-allowed;
|
|
625
|
+
}
|
|
186
626
|
|
|
187
627
|
/* ---- Checkbox / Radio / Switch --------------------------------------- */
|
|
188
|
-
.pire-choice{
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
.pire-choice[data-disabled]
|
|
197
|
-
|
|
628
|
+
.pire-choice {
|
|
629
|
+
display: inline-flex;
|
|
630
|
+
align-items: flex-start;
|
|
631
|
+
gap: var(--sp-2);
|
|
632
|
+
font: var(--type-body);
|
|
633
|
+
color: var(--text-primary);
|
|
634
|
+
cursor: pointer;
|
|
635
|
+
}
|
|
636
|
+
.pire-choice[data-disabled] {
|
|
637
|
+
color: var(--text-disabled);
|
|
638
|
+
cursor: not-allowed;
|
|
639
|
+
}
|
|
640
|
+
.pire-choice-box {
|
|
641
|
+
flex: 0 0 auto;
|
|
642
|
+
display: inline-flex;
|
|
643
|
+
align-items: center;
|
|
644
|
+
justify-content: center;
|
|
645
|
+
width: 16px;
|
|
646
|
+
height: 16px;
|
|
647
|
+
margin-top: 2px;
|
|
648
|
+
border: 1px solid var(--border-field);
|
|
649
|
+
border-radius: var(--radius-1);
|
|
650
|
+
background: var(--surface-card);
|
|
651
|
+
color: var(--accent-fg);
|
|
652
|
+
transition: var(--transition-control);
|
|
653
|
+
}
|
|
654
|
+
.pire-choice-box[data-radio="true"] {
|
|
655
|
+
border-radius: var(--radius-pill);
|
|
656
|
+
}
|
|
657
|
+
.pire-choice[data-hovered] .pire-choice-box {
|
|
658
|
+
border-color: var(--text-primary);
|
|
659
|
+
}
|
|
660
|
+
.pire-choice[data-selected] .pire-choice-box,
|
|
661
|
+
.pire-choice[data-indeterminate] .pire-choice-box {
|
|
662
|
+
background: var(--accent-bg);
|
|
663
|
+
border-color: var(--accent-bg);
|
|
664
|
+
}
|
|
665
|
+
.pire-choice[data-selected] .pire-choice-box[data-radio="true"] {
|
|
666
|
+
background: var(--surface-card);
|
|
667
|
+
border-width: 5px;
|
|
668
|
+
border-color: var(--accent-bg);
|
|
669
|
+
}
|
|
670
|
+
.pire-choice[data-focus-visible] .pire-choice-box {
|
|
671
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
672
|
+
outline-offset: var(--focus-offset);
|
|
673
|
+
}
|
|
674
|
+
.pire-choice[data-disabled] .pire-choice-box {
|
|
675
|
+
background: var(--surface-disabled);
|
|
676
|
+
border-color: var(--border-default);
|
|
677
|
+
}
|
|
678
|
+
.pire-choice-hint {
|
|
679
|
+
display: block;
|
|
680
|
+
font: var(--type-caption);
|
|
681
|
+
color: var(--text-secondary);
|
|
682
|
+
}
|
|
198
683
|
/* The track must establish a flex context: the thumb is a <span>, and an inline box
|
|
199
684
|
ignores width/height — it rendered at 0x0 until this was added. */
|
|
200
|
-
.pire-switch-track{
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
685
|
+
.pire-switch-track {
|
|
686
|
+
flex: 0 0 auto;
|
|
687
|
+
display: flex;
|
|
688
|
+
align-items: center;
|
|
689
|
+
width: 36px;
|
|
690
|
+
height: 20px;
|
|
691
|
+
border-radius: var(--radius-pill);
|
|
692
|
+
background: var(--gray-40);
|
|
693
|
+
padding: 2px;
|
|
694
|
+
transition: background-color var(--dur-fast) var(--ease-standard);
|
|
695
|
+
}
|
|
696
|
+
.pire-switch-thumb {
|
|
697
|
+
flex: 0 0 auto;
|
|
698
|
+
width: 16px;
|
|
699
|
+
height: 16px;
|
|
700
|
+
border-radius: var(--radius-pill);
|
|
701
|
+
background: var(--gray-0);
|
|
702
|
+
box-shadow: var(--shadow-1);
|
|
703
|
+
transition: transform var(--dur-fast) var(--ease-standard);
|
|
704
|
+
}
|
|
705
|
+
.pire-choice[data-selected] .pire-switch-track {
|
|
706
|
+
background: var(--accent-bg);
|
|
707
|
+
}
|
|
708
|
+
.pire-choice[data-selected] .pire-switch-thumb {
|
|
709
|
+
transform: translateX(16px);
|
|
710
|
+
}
|
|
711
|
+
.pire-choice[data-focus-visible] .pire-switch-track {
|
|
712
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
713
|
+
outline-offset: var(--focus-offset);
|
|
714
|
+
}
|
|
715
|
+
.pire-radiogroup {
|
|
716
|
+
display: flex;
|
|
717
|
+
flex-direction: column;
|
|
718
|
+
gap: var(--sp-2);
|
|
719
|
+
}
|
|
206
720
|
|
|
207
721
|
/* ---- ChoiceCardGroup ------------------------------------------------------
|
|
208
722
|
A radio group whose options are cards. It is a radio group and not a row of buttons on
|
|
209
723
|
purpose: buttons give one tab stop each and no "1 of 3" announcement, which is exactly what a
|
|
210
724
|
set of mutually exclusive options owes. The selected card carries a fill AND a border — the
|
|
211
725
|
fill alone does not clear 3:1 against the card beside it. */
|
|
212
|
-
.pire-choicecards{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
.pire-choicecard
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
726
|
+
.pire-choicecards {
|
|
727
|
+
display: grid;
|
|
728
|
+
gap: var(--sp-3);
|
|
729
|
+
}
|
|
730
|
+
.pire-choicecard {
|
|
731
|
+
display: flex;
|
|
732
|
+
flex-direction: column;
|
|
733
|
+
align-items: flex-start;
|
|
734
|
+
gap: var(--sp-1);
|
|
735
|
+
padding: var(--sp-3);
|
|
736
|
+
border: 1px solid var(--border-default);
|
|
737
|
+
border-radius: var(--radius-2);
|
|
738
|
+
background: var(--surface-card);
|
|
739
|
+
color: var(--text-primary);
|
|
740
|
+
text-align: left;
|
|
741
|
+
cursor: pointer;
|
|
742
|
+
outline: none;
|
|
743
|
+
transition: var(--transition-control);
|
|
744
|
+
}
|
|
745
|
+
.pire-choicecard[data-hovered] {
|
|
746
|
+
background: var(--surface-hover);
|
|
747
|
+
}
|
|
748
|
+
.pire-choicecard[data-selected] {
|
|
749
|
+
border-color: var(--border-accent);
|
|
750
|
+
background: var(--surface-selected);
|
|
751
|
+
color: var(--accent-subtle-fg);
|
|
752
|
+
}
|
|
753
|
+
.pire-choicecard[data-focus-visible] {
|
|
754
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
755
|
+
outline-offset: var(--focus-offset);
|
|
756
|
+
}
|
|
757
|
+
.pire-choicecard[data-disabled] {
|
|
758
|
+
color: var(--text-disabled);
|
|
759
|
+
background: var(--surface-disabled);
|
|
760
|
+
cursor: default;
|
|
761
|
+
}
|
|
762
|
+
.pire-choicecard-label {
|
|
763
|
+
font: var(--type-body-strong);
|
|
764
|
+
}
|
|
765
|
+
.pire-choicecard-desc {
|
|
766
|
+
font: var(--type-caption);
|
|
767
|
+
color: var(--text-secondary);
|
|
768
|
+
}
|
|
769
|
+
.pire-choicecard[data-selected] .pire-choicecard-desc {
|
|
770
|
+
color: var(--accent-subtle-fg);
|
|
771
|
+
}
|
|
772
|
+
.pire-choicecard[data-disabled] .pire-choicecard-desc {
|
|
773
|
+
color: var(--text-disabled);
|
|
774
|
+
}
|
|
775
|
+
.pire-choicecard-preview {
|
|
776
|
+
display: flex;
|
|
777
|
+
flex-direction: column;
|
|
778
|
+
gap: var(--sp-0h);
|
|
779
|
+
width: 100%;
|
|
780
|
+
padding-top: var(--sp-1);
|
|
781
|
+
}
|
|
223
782
|
|
|
224
783
|
/* ---- Tabs ------------------------------------------------------------ */
|
|
225
|
-
.pire-tablist{
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
.pire-
|
|
784
|
+
.pire-tablist {
|
|
785
|
+
display: flex;
|
|
786
|
+
gap: var(--sp-5);
|
|
787
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
788
|
+
overflow-x: auto;
|
|
789
|
+
}
|
|
790
|
+
.pire-tab {
|
|
791
|
+
display: inline-flex;
|
|
792
|
+
align-items: center;
|
|
793
|
+
gap: var(--sp-2);
|
|
794
|
+
height: var(--shell-subheader-h);
|
|
795
|
+
padding: 0 var(--sp-0h);
|
|
796
|
+
border-bottom: 2px solid transparent;
|
|
797
|
+
margin-bottom: -1px;
|
|
798
|
+
font: var(--type-body);
|
|
799
|
+
color: var(--text-secondary);
|
|
800
|
+
cursor: pointer;
|
|
801
|
+
white-space: nowrap;
|
|
802
|
+
outline: none;
|
|
803
|
+
transition: var(--transition-control);
|
|
804
|
+
}
|
|
805
|
+
.pire-tab[data-hovered] {
|
|
806
|
+
color: var(--text-primary);
|
|
807
|
+
}
|
|
808
|
+
.pire-tab[data-selected] {
|
|
809
|
+
color: var(--accent-subtle-fg);
|
|
810
|
+
border-bottom-color: var(--accent-bg);
|
|
811
|
+
font: var(--type-body-strong);
|
|
812
|
+
}
|
|
813
|
+
.pire-tab[data-disabled] {
|
|
814
|
+
color: var(--text-disabled);
|
|
815
|
+
cursor: not-allowed;
|
|
816
|
+
}
|
|
817
|
+
.pire-tab-count {
|
|
818
|
+
font: var(--type-code);
|
|
819
|
+
color: var(--text-tertiary);
|
|
820
|
+
}
|
|
821
|
+
.pire-tabpanel {
|
|
822
|
+
padding-top: var(--sp-4);
|
|
823
|
+
outline: none;
|
|
824
|
+
}
|
|
232
825
|
|
|
233
826
|
/* ---- Ribbon ---------------------------------------------------------------
|
|
234
827
|
The tabbed command surface above an ERP list. Geometry is fixed rather than fluid: a command's
|
|
@@ -242,18 +835,81 @@
|
|
|
242
835
|
`max-width` clamps those two; `min-width:0` is the separate half that lets it shrink as a flex
|
|
243
836
|
*row* item, where the default `min-width:auto` floors it at its content. Same fix, and the same
|
|
244
837
|
reason, as `.pire-sidenav` embedded in a column narrower than `--sidenav-w`. */
|
|
245
|
-
.pire-ribbon{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
838
|
+
.pire-ribbon {
|
|
839
|
+
display: flex;
|
|
840
|
+
flex-direction: column;
|
|
841
|
+
max-width: 100%;
|
|
842
|
+
min-width: 0;
|
|
843
|
+
background: var(--surface-card);
|
|
844
|
+
border-bottom: 1px solid var(--border-default);
|
|
845
|
+
}
|
|
846
|
+
/* Scrolls for the same reason the band below it does, and by the same means. Nine tabs in a 420px
|
|
847
|
+
ribbon put the last one 263px past the ribbon's own card edge and scrolled the page with it.
|
|
848
|
+
`scrollbar-width:none` rather than the band's `thin`: this row is --sp-8 (32px), and a classic
|
|
849
|
+
horizontal scrollbar takes ~15px of that on Windows. What replaces it as the affordance is the
|
|
850
|
+
half-clipped tab at the edge — and arrow keys move between tabs, so the browser scrolls the
|
|
851
|
+
focused one into view without anyone reaching for a scrollbar. */
|
|
852
|
+
.pire-ribbon-tablist {
|
|
853
|
+
display: flex;
|
|
854
|
+
align-items: stretch;
|
|
855
|
+
gap: var(--sp-0h);
|
|
856
|
+
height: var(--sp-8);
|
|
857
|
+
min-width: 0;
|
|
858
|
+
padding: 0 var(--sp-3);
|
|
859
|
+
overflow-x: auto;
|
|
860
|
+
overflow-y: hidden;
|
|
861
|
+
scrollbar-width: none;
|
|
862
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
863
|
+
}
|
|
864
|
+
.pire-ribbon-tablist::-webkit-scrollbar {
|
|
865
|
+
display: none;
|
|
866
|
+
}
|
|
867
|
+
.pire-ribbon-tab {
|
|
868
|
+
display: flex;
|
|
869
|
+
align-items: center;
|
|
870
|
+
flex: 0 0 auto;
|
|
871
|
+
height: var(--sp-8);
|
|
872
|
+
padding: 0 var(--sp-3);
|
|
873
|
+
border: 0;
|
|
874
|
+
background: transparent;
|
|
875
|
+
color: var(--text-secondary);
|
|
876
|
+
font: var(--type-body);
|
|
877
|
+
white-space: nowrap;
|
|
878
|
+
cursor: pointer;
|
|
879
|
+
outline: none;
|
|
880
|
+
transition: var(--transition-control);
|
|
881
|
+
}
|
|
882
|
+
.pire-ribbon-tab[data-hovered] {
|
|
883
|
+
color: var(--text-primary);
|
|
884
|
+
}
|
|
885
|
+
.pire-ribbon-tab[data-selected] {
|
|
886
|
+
color: var(--accent-subtle-fg);
|
|
887
|
+
font: var(--type-body-strong);
|
|
888
|
+
box-shadow: inset 0 -2px 0 0 var(--border-accent);
|
|
889
|
+
}
|
|
890
|
+
.pire-ribbon-tab[data-focus-visible] {
|
|
891
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
892
|
+
outline-offset: calc(var(--focus-offset) * -1);
|
|
893
|
+
}
|
|
251
894
|
/* Teal, not the accent blue: blue means "where you are" throughout the shell, and a tab meaning
|
|
252
895
|
"what you can do to the selection" must not borrow it. The aliases theme; --teal-10 does not. */
|
|
253
|
-
.pire-ribbon-tab[data-contextual="true"]{
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
896
|
+
.pire-ribbon-tab[data-contextual="true"] {
|
|
897
|
+
background: var(--surface-contextual);
|
|
898
|
+
color: var(--text-contextual);
|
|
899
|
+
}
|
|
900
|
+
.pire-ribbon-tab[data-contextual="true"][data-selected] {
|
|
901
|
+
color: var(--text-contextual);
|
|
902
|
+
box-shadow: inset 0 -2px 0 0 var(--border-contextual);
|
|
903
|
+
}
|
|
904
|
+
.pire-ribbon-panel {
|
|
905
|
+
padding: var(--sp-1) var(--sp-2) 0;
|
|
906
|
+
outline: none;
|
|
907
|
+
}
|
|
908
|
+
.pire-ribbon-band {
|
|
909
|
+
display: flex;
|
|
910
|
+
align-items: stretch;
|
|
911
|
+
min-width: 0;
|
|
912
|
+
}
|
|
257
913
|
/* Both modes are a scrolling command region plus a trailing region that never scrolls. Before the
|
|
258
914
|
split the toggle was simply the last flex item of an `overflow:hidden` row, so a narrow screen
|
|
259
915
|
clipped it away with the last group — and the toggle is the one control that gets an oversized
|
|
@@ -265,36 +921,113 @@
|
|
|
265
921
|
to scrolling and a flex row reaches for it first: left at the default, the collapsed bar squashed
|
|
266
922
|
its `leading` chip to nothing and drew the first command straight through it, and the scrollbar
|
|
267
923
|
it should have grown never appeared. */
|
|
268
|
-
.pire-ribbon-scroll{
|
|
924
|
+
.pire-ribbon-scroll {
|
|
925
|
+
display: flex;
|
|
926
|
+
align-items: stretch;
|
|
927
|
+
flex: 1 1 auto;
|
|
928
|
+
min-width: 0;
|
|
929
|
+
overflow-x: auto;
|
|
930
|
+
overflow-y: hidden;
|
|
931
|
+
scrollbar-width: thin;
|
|
932
|
+
}
|
|
269
933
|
/* Opaque, so commands pass *behind* the trailing controls rather than through them. */
|
|
270
|
-
.pire-ribbon-trail{
|
|
934
|
+
.pire-ribbon-trail {
|
|
935
|
+
display: flex;
|
|
936
|
+
align-items: center;
|
|
937
|
+
gap: var(--sp-0h);
|
|
938
|
+
flex: 0 0 auto;
|
|
939
|
+
background: var(--surface-card);
|
|
940
|
+
}
|
|
271
941
|
/* The freeze line, and only while something is genuinely hidden behind it — the component sets
|
|
272
942
|
`data-overflow` from the scroller's own geometry. A line drawn unconditionally is a divider the
|
|
273
943
|
ribbon does not have, parked beside the toggle on every screen wide enough not to need one.
|
|
274
944
|
Drawn as a box-shadow rather than a border for the same reason `.pire-table [data-pinned-last]`
|
|
275
945
|
is: it paints over the scrolled content instead of reserving a pixel of layout that would shift
|
|
276
946
|
the commands sideways the moment the line appeared. */
|
|
277
|
-
.pire-ribbon-trail[data-overflow="true"]{
|
|
947
|
+
.pire-ribbon-trail[data-overflow="true"] {
|
|
948
|
+
box-shadow: -1px 0 0 0 var(--border-default);
|
|
949
|
+
}
|
|
278
950
|
/* The prototype's group gutter is 10px, which is off the 4px grid. --sp-2 (8px) reads the same at
|
|
279
951
|
this scale and stays on it; if the groups end up visually cramped, widen the *band* padding
|
|
280
952
|
rather than reintroducing a literal here. */
|
|
281
|
-
.pire-ribbon-group{
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
.pire-ribbon-
|
|
289
|
-
|
|
953
|
+
.pire-ribbon-group {
|
|
954
|
+
display: flex;
|
|
955
|
+
flex-direction: column;
|
|
956
|
+
flex: 0 0 auto;
|
|
957
|
+
padding: 0 var(--sp-2);
|
|
958
|
+
border-right: 1px solid var(--border-subtle);
|
|
959
|
+
}
|
|
960
|
+
.pire-ribbon-group:last-child {
|
|
961
|
+
border-right: 0;
|
|
962
|
+
}
|
|
963
|
+
.pire-ribbon-group-body {
|
|
964
|
+
display: flex;
|
|
965
|
+
gap: var(--sp-0h);
|
|
966
|
+
flex: 1;
|
|
967
|
+
align-items: flex-start;
|
|
968
|
+
}
|
|
969
|
+
.pire-ribbon-stack {
|
|
970
|
+
display: flex;
|
|
971
|
+
flex-direction: column;
|
|
972
|
+
gap: var(--sp-0h);
|
|
973
|
+
padding-top: var(--sp-0h);
|
|
974
|
+
}
|
|
975
|
+
.pire-ribbon-caption {
|
|
976
|
+
padding: var(--sp-0h) 0 var(--sp-1);
|
|
977
|
+
font: var(--type-micro);
|
|
978
|
+
color: var(--text-tertiary);
|
|
979
|
+
text-align: center;
|
|
980
|
+
}
|
|
981
|
+
.pire-ribbon-command {
|
|
982
|
+
display: flex;
|
|
983
|
+
align-items: center;
|
|
984
|
+
border: 1px solid transparent;
|
|
985
|
+
border-radius: var(--radius-1);
|
|
986
|
+
background: transparent;
|
|
987
|
+
color: var(--text-primary);
|
|
988
|
+
font: var(--type-caption);
|
|
989
|
+
cursor: pointer;
|
|
990
|
+
outline: none;
|
|
991
|
+
transition: var(--transition-control);
|
|
992
|
+
}
|
|
993
|
+
.pire-ribbon-command[data-hovered] {
|
|
994
|
+
background: var(--surface-hover);
|
|
995
|
+
}
|
|
996
|
+
.pire-ribbon-command[data-pressed] {
|
|
997
|
+
background: var(--surface-active);
|
|
998
|
+
}
|
|
999
|
+
.pire-ribbon-command[data-focus-visible] {
|
|
1000
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
1001
|
+
outline-offset: calc(var(--focus-offset) * -1);
|
|
1002
|
+
}
|
|
290
1003
|
/* Disabled stays at --text-disabled and below 4.5:1 on purpose: WCAG 1.4.3 exempts an inactive
|
|
291
1004
|
control, and darkening it deletes the cue that the command needs a selection first. */
|
|
292
|
-
.pire-ribbon-command[data-disabled]{
|
|
293
|
-
|
|
1005
|
+
.pire-ribbon-command[data-disabled] {
|
|
1006
|
+
color: var(--text-disabled);
|
|
1007
|
+
cursor: default;
|
|
1008
|
+
background: transparent;
|
|
1009
|
+
}
|
|
1010
|
+
.pire-ribbon-command[data-size="lg"] {
|
|
1011
|
+
flex-direction: column;
|
|
1012
|
+
justify-content: center;
|
|
1013
|
+
gap: var(--sp-1);
|
|
1014
|
+
width: 78px;
|
|
1015
|
+
height: 68px;
|
|
1016
|
+
padding: var(--sp-1);
|
|
1017
|
+
}
|
|
294
1018
|
/* The caption wraps here rather than at the call site. `balance` is what keeps "Transferir entre
|
|
295
1019
|
sucursales" as two even lines instead of three words and an orphan. */
|
|
296
|
-
.pire-ribbon-command[data-size="lg"] .pire-ribbon-command-label{
|
|
297
|
-
|
|
1020
|
+
.pire-ribbon-command[data-size="lg"] .pire-ribbon-command-label {
|
|
1021
|
+
text-align: center;
|
|
1022
|
+
line-height: 1.2;
|
|
1023
|
+
text-wrap: balance;
|
|
1024
|
+
}
|
|
1025
|
+
.pire-ribbon-command[data-size="sm"] {
|
|
1026
|
+
gap: var(--sp-1);
|
|
1027
|
+
height: 21px;
|
|
1028
|
+
padding: 0 var(--sp-1) 0 var(--sp-0h);
|
|
1029
|
+
white-space: nowrap;
|
|
1030
|
+
}
|
|
298
1031
|
|
|
299
1032
|
/* The collapsed bar. One row, the same command buttons, separators where the source groups
|
|
300
1033
|
changed — the ribbon's structure survives the collapse rather than being replaced by a flat
|
|
@@ -302,46 +1035,174 @@
|
|
|
302
1035
|
/* --control-h-lg (48px) for the bar and --sp-8 (32px) for its commands. The prototype uses 44 and
|
|
303
1036
|
30, both off the 4px grid; the grid values read the same and keep the bar the height of every
|
|
304
1037
|
other control band in the library. */
|
|
305
|
-
.pire-ribbon-bar{
|
|
1038
|
+
.pire-ribbon-bar {
|
|
1039
|
+
display: flex;
|
|
1040
|
+
align-items: center;
|
|
1041
|
+
gap: var(--sp-0h);
|
|
1042
|
+
height: var(--control-h-lg);
|
|
1043
|
+
padding: 0 var(--sp-2) 0 var(--sp-3);
|
|
1044
|
+
background: var(--surface-card);
|
|
1045
|
+
}
|
|
306
1046
|
/* Every bar command is emitted `data-size="sm"` whatever it is in the band (see `Command` in
|
|
307
1047
|
Ribbon.tsx), so this rule only has to resize the compact form — it never has to out-specify the
|
|
308
1048
|
`lg` tile's `flex-direction:column` and fixed 78px width. */
|
|
309
|
-
.pire-ribbon-bar .pire-ribbon-command{
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
1049
|
+
.pire-ribbon-bar .pire-ribbon-command {
|
|
1050
|
+
gap: var(--sp-1);
|
|
1051
|
+
flex: 0 0 auto;
|
|
1052
|
+
height: var(--sp-8);
|
|
1053
|
+
padding: 0 var(--sp-2);
|
|
1054
|
+
font: var(--type-body);
|
|
1055
|
+
white-space: nowrap;
|
|
1056
|
+
}
|
|
1057
|
+
.pire-ribbon-bar-sep {
|
|
1058
|
+
width: 1px;
|
|
1059
|
+
flex: 0 0 auto;
|
|
1060
|
+
align-self: stretch;
|
|
1061
|
+
margin: var(--sp-2) var(--sp-1);
|
|
1062
|
+
background: var(--border-subtle);
|
|
1063
|
+
}
|
|
1064
|
+
.pire-ribbon-leading {
|
|
1065
|
+
display: flex;
|
|
1066
|
+
align-items: center;
|
|
1067
|
+
flex: 0 0 auto;
|
|
1068
|
+
}
|
|
1069
|
+
.pire-ribbon-toggle {
|
|
1070
|
+
display: inline-flex;
|
|
1071
|
+
align-items: center;
|
|
1072
|
+
justify-content: center;
|
|
1073
|
+
width: var(--sp-8);
|
|
1074
|
+
height: var(--sp-8);
|
|
1075
|
+
flex-shrink: 0;
|
|
1076
|
+
border: 1px solid transparent;
|
|
1077
|
+
border-radius: var(--radius-1);
|
|
1078
|
+
background: transparent;
|
|
1079
|
+
color: var(--text-secondary);
|
|
1080
|
+
cursor: pointer;
|
|
1081
|
+
outline: none;
|
|
1082
|
+
transition: var(--transition-control);
|
|
1083
|
+
}
|
|
1084
|
+
.pire-ribbon-toggle[data-hovered] {
|
|
1085
|
+
background: var(--surface-hover);
|
|
1086
|
+
border-color: var(--border-subtle);
|
|
1087
|
+
}
|
|
1088
|
+
.pire-ribbon-toggle[data-focus-visible] {
|
|
1089
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
1090
|
+
outline-offset: calc(var(--focus-offset) * -1);
|
|
1091
|
+
}
|
|
315
1092
|
/* The band's trailing controls sit at the top of the band, not centred in it — a toggle floating
|
|
316
1093
|
in the middle of the ribbon reads as belonging to whichever group it lands beside. The band has
|
|
317
1094
|
no declared height: it is as tall as its tallest group, so there is no figure to name here.
|
|
318
1095
|
`align-items`, not `align-self`: the trail is a flex container of its own now, and the freeze
|
|
319
1096
|
line has to run the full height of the band rather than stopping at the toggle. */
|
|
320
|
-
.pire-ribbon-band .pire-ribbon-trail{
|
|
1097
|
+
.pire-ribbon-band .pire-ribbon-trail {
|
|
1098
|
+
align-items: flex-start;
|
|
1099
|
+
padding-top: var(--sp-1);
|
|
1100
|
+
}
|
|
321
1101
|
|
|
322
1102
|
/* ---- Breadcrumb / Pagination ----------------------------------------- */
|
|
323
|
-
.pire-breadcrumbs{
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
1103
|
+
.pire-breadcrumbs {
|
|
1104
|
+
display: flex;
|
|
1105
|
+
flex-wrap: wrap;
|
|
1106
|
+
align-items: center;
|
|
1107
|
+
gap: var(--sp-1);
|
|
1108
|
+
margin: 0;
|
|
1109
|
+
padding: 0;
|
|
1110
|
+
list-style: none;
|
|
1111
|
+
font: var(--type-caption);
|
|
1112
|
+
}
|
|
1113
|
+
.pire-breadcrumb {
|
|
1114
|
+
display: inline-flex;
|
|
1115
|
+
align-items: center;
|
|
1116
|
+
gap: var(--sp-1);
|
|
1117
|
+
color: var(--text-secondary);
|
|
1118
|
+
}
|
|
1119
|
+
.pire-breadcrumb[data-current] {
|
|
1120
|
+
color: var(--text-primary);
|
|
1121
|
+
}
|
|
1122
|
+
.pire-breadcrumb a {
|
|
1123
|
+
color: var(--text-link);
|
|
1124
|
+
text-decoration: none;
|
|
1125
|
+
cursor: pointer;
|
|
1126
|
+
}
|
|
1127
|
+
.pire-breadcrumb a[data-hovered] {
|
|
1128
|
+
text-decoration: underline;
|
|
1129
|
+
}
|
|
1130
|
+
.pire-pagination {
|
|
1131
|
+
display: flex;
|
|
1132
|
+
align-items: center;
|
|
1133
|
+
gap: var(--sp-3);
|
|
1134
|
+
font: var(--type-caption);
|
|
1135
|
+
color: var(--text-secondary);
|
|
1136
|
+
}
|
|
1137
|
+
.pire-pagination-count {
|
|
1138
|
+
font: var(--type-code);
|
|
1139
|
+
color: var(--text-secondary);
|
|
1140
|
+
}
|
|
330
1141
|
|
|
331
1142
|
/* ---- ShellBar / SideNav ---------------------------------------------- */
|
|
332
|
-
.pire-shellbar{
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
1143
|
+
.pire-shellbar {
|
|
1144
|
+
display: flex;
|
|
1145
|
+
align-items: center;
|
|
1146
|
+
gap: var(--sp-3);
|
|
1147
|
+
height: var(--shell-header-h);
|
|
1148
|
+
padding: 0 var(--sp-3);
|
|
1149
|
+
background: var(--surface-shell);
|
|
1150
|
+
color: var(--text-inverse);
|
|
1151
|
+
}
|
|
1152
|
+
.pire-shellbar-mono {
|
|
1153
|
+
display: inline-flex;
|
|
1154
|
+
align-items: center;
|
|
1155
|
+
justify-content: center;
|
|
1156
|
+
width: 28px;
|
|
1157
|
+
height: 28px;
|
|
1158
|
+
border-radius: var(--radius-1);
|
|
1159
|
+
background: var(--gray-0);
|
|
1160
|
+
color: var(--surface-shell);
|
|
1161
|
+
font: var(--type-label);
|
|
1162
|
+
letter-spacing: var(--ls-caps);
|
|
1163
|
+
}
|
|
1164
|
+
.pire-shellbar-product {
|
|
1165
|
+
font: var(--type-label);
|
|
1166
|
+
letter-spacing: var(--ls-caps);
|
|
1167
|
+
text-transform: uppercase;
|
|
1168
|
+
opacity: 0.8;
|
|
1169
|
+
}
|
|
1170
|
+
.pire-shellbar-title {
|
|
1171
|
+
font: var(--type-body-strong);
|
|
1172
|
+
}
|
|
1173
|
+
.pire-shellbar-spacer {
|
|
1174
|
+
flex: 1;
|
|
1175
|
+
}
|
|
1176
|
+
.pire-avatar {
|
|
1177
|
+
display: inline-flex;
|
|
1178
|
+
align-items: center;
|
|
1179
|
+
justify-content: center;
|
|
1180
|
+
width: 28px;
|
|
1181
|
+
height: 28px;
|
|
1182
|
+
border-radius: var(--radius-pill);
|
|
1183
|
+
background: var(--blue-60);
|
|
1184
|
+
color: var(--text-inverse);
|
|
1185
|
+
font: var(--type-label);
|
|
1186
|
+
}
|
|
338
1187
|
/* The avatar as a real button, once ShellBar is given a userMenu. Resets the UA button styling the
|
|
339
1188
|
span never carried, and adds what a span cannot: a pointer, interaction states, and a focus ring
|
|
340
1189
|
that reads against the dark shell instead of against the page. */
|
|
341
|
-
.pire-avatar-trigger{
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
1190
|
+
.pire-avatar-trigger {
|
|
1191
|
+
border: 0;
|
|
1192
|
+
padding: 0;
|
|
1193
|
+
cursor: pointer;
|
|
1194
|
+
transition: var(--transition-control);
|
|
1195
|
+
}
|
|
1196
|
+
.pire-avatar-trigger[data-hovered] {
|
|
1197
|
+
background: var(--blue-50);
|
|
1198
|
+
}
|
|
1199
|
+
.pire-avatar-trigger[data-pressed] {
|
|
1200
|
+
background: var(--blue-70);
|
|
1201
|
+
}
|
|
1202
|
+
.pire-avatar-trigger[data-focus-visible] {
|
|
1203
|
+
outline: var(--focus-w) solid var(--text-inverse);
|
|
1204
|
+
outline-offset: 2px;
|
|
1205
|
+
}
|
|
345
1206
|
/* `max-width:100%` so the nav can be embedded somewhere narrower than `--sidenav-w` — the POS uses
|
|
346
1207
|
it as a category list in a 200px grid track, where the fixed 256px overflowed by 56. Nothing
|
|
347
1208
|
looked broken: the containing element scrolled on its own axis, so the excess went off-frame
|
|
@@ -350,86 +1211,286 @@
|
|
|
350
1211
|
has no counters". Overriding `--sidenav-w` from an ancestor is not the answer: it duplicates a
|
|
351
1212
|
number that lives in the parent's own `grid-template-columns`, and a 1px parent border means the
|
|
352
1213
|
two still disagree. In the shell this does not bite, because there the parent is wider. */
|
|
353
|
-
.pire-sidenav{
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
1214
|
+
.pire-sidenav {
|
|
1215
|
+
display: flex;
|
|
1216
|
+
flex-direction: column;
|
|
1217
|
+
width: var(--sidenav-w);
|
|
1218
|
+
max-width: 100%;
|
|
1219
|
+
flex: 0 0 auto;
|
|
1220
|
+
background: var(--surface-nav);
|
|
1221
|
+
border-right: 1px solid var(--border-subtle);
|
|
1222
|
+
overflow: auto;
|
|
1223
|
+
}
|
|
1224
|
+
.pire-sidenav[data-collapsed="true"] {
|
|
1225
|
+
width: var(--sidenav-w-collapsed);
|
|
1226
|
+
}
|
|
1227
|
+
/* Embedded beside a container that draws its own rule, the nav's would stack into a double line.
|
|
1228
|
+
Opt-out rather than opt-in: the nav is the shell's column far more often than it is not. */
|
|
1229
|
+
.pire-sidenav[data-bordered="false"] {
|
|
1230
|
+
border-right: 0;
|
|
1231
|
+
}
|
|
1232
|
+
.pire-sidenav-group {
|
|
1233
|
+
padding: var(--sp-3) 0;
|
|
1234
|
+
}
|
|
1235
|
+
.pire-sidenav-group + .pire-sidenav-group {
|
|
1236
|
+
border-top: 1px solid var(--border-subtle);
|
|
1237
|
+
}
|
|
1238
|
+
.pire-sidenav-label {
|
|
1239
|
+
padding: 0 var(--sp-4) var(--sp-2);
|
|
1240
|
+
font: var(--type-label);
|
|
1241
|
+
letter-spacing: var(--ls-caps);
|
|
1242
|
+
text-transform: uppercase;
|
|
1243
|
+
color: var(--text-tertiary);
|
|
1244
|
+
}
|
|
1245
|
+
.pire-sidenav-item {
|
|
1246
|
+
display: flex;
|
|
1247
|
+
align-items: center;
|
|
1248
|
+
gap: var(--sp-3);
|
|
1249
|
+
width: 100%;
|
|
1250
|
+
height: var(--row-h-regular);
|
|
1251
|
+
padding: 0 var(--sp-4);
|
|
1252
|
+
border: 0;
|
|
1253
|
+
border-left: 3px solid transparent;
|
|
1254
|
+
background: transparent;
|
|
1255
|
+
color: var(--text-primary);
|
|
1256
|
+
font: var(--type-body);
|
|
1257
|
+
text-align: left;
|
|
1258
|
+
cursor: pointer;
|
|
1259
|
+
transition: var(--transition-control);
|
|
1260
|
+
}
|
|
1261
|
+
.pire-sidenav-item[data-hovered] {
|
|
1262
|
+
background: var(--surface-hover);
|
|
1263
|
+
}
|
|
1264
|
+
.pire-sidenav-item[data-selected="true"] {
|
|
1265
|
+
background: var(--surface-selected);
|
|
1266
|
+
border-left-color: var(--accent-bg);
|
|
1267
|
+
color: var(--accent-subtle-fg);
|
|
1268
|
+
font: var(--type-body-strong);
|
|
1269
|
+
}
|
|
1270
|
+
.pire-sidenav-count {
|
|
1271
|
+
margin-left: auto;
|
|
1272
|
+
font: var(--type-code);
|
|
1273
|
+
color: var(--text-tertiary);
|
|
1274
|
+
}
|
|
362
1275
|
/* Second level. `-tree` is React Aria's DisclosureGroup, `-section` one Disclosure; both exist only
|
|
363
1276
|
to keep the rows in a column, since the wrappers are divs the component cannot avoid. */
|
|
364
|
-
.pire-sidenav-tree
|
|
1277
|
+
.pire-sidenav-tree,
|
|
1278
|
+
.pire-sidenav-section {
|
|
1279
|
+
display: flex;
|
|
1280
|
+
flex-direction: column;
|
|
1281
|
+
}
|
|
365
1282
|
/* The trailing chevron. Its own auto margin pushes it to the edge on a group row with no count; when
|
|
366
1283
|
there is a count, the count's auto margin has already claimed the free space and a second auto here
|
|
367
1284
|
would split it and leave the count floating mid-row — hence the reset. */
|
|
368
|
-
.pire-sidenav-chevron{
|
|
369
|
-
|
|
370
|
-
|
|
1285
|
+
.pire-sidenav-chevron {
|
|
1286
|
+
margin-left: auto;
|
|
1287
|
+
color: var(--text-tertiary);
|
|
1288
|
+
transition: transform var(--dur-fast) var(--ease-standard);
|
|
1289
|
+
}
|
|
1290
|
+
.pire-sidenav-count + .pire-sidenav-chevron {
|
|
1291
|
+
margin-left: 0;
|
|
1292
|
+
}
|
|
1293
|
+
.pire-sidenav-section:not([data-expanded]) .pire-sidenav-chevron {
|
|
1294
|
+
transform: rotate(-90deg);
|
|
1295
|
+
}
|
|
371
1296
|
/* Marks a group row whose child is the current destination: the accent tick and label weight of a
|
|
372
1297
|
selection without its fill, so the trail to `aria-current` reads at a glance and still loses to it.
|
|
373
1298
|
Also the only cue left in the icon rail, where the children are not rendered. */
|
|
374
|
-
.pire-sidenav-item[data-active-child="true"]{
|
|
1299
|
+
.pire-sidenav-item[data-active-child="true"] {
|
|
1300
|
+
border-left-color: var(--accent-bg);
|
|
1301
|
+
color: var(--accent-subtle-fg);
|
|
1302
|
+
font: var(--type-body-strong);
|
|
1303
|
+
}
|
|
375
1304
|
/* React Aria animates the panel through --disclosure-panel-height, and applies `hidden` only once the
|
|
376
1305
|
animation settles. The `display` above therefore has to be undone for the collapsed state: it beats
|
|
377
1306
|
the UA's `[hidden]{display:none}`, and a visible-to-the-layout panel under `aria-hidden="true"`
|
|
378
1307
|
leaves every child in the tab order — an aria-hidden-focus defect, not just a cosmetic one. */
|
|
379
|
-
.pire-sidenav-subnav{
|
|
380
|
-
|
|
1308
|
+
.pire-sidenav-subnav {
|
|
1309
|
+
display: flex;
|
|
1310
|
+
flex-direction: column;
|
|
1311
|
+
overflow: hidden;
|
|
1312
|
+
height: var(--disclosure-panel-height, auto);
|
|
1313
|
+
transition: height var(--dur-fast) var(--ease-standard);
|
|
1314
|
+
}
|
|
1315
|
+
.pire-sidenav-subnav[hidden] {
|
|
1316
|
+
display: none;
|
|
1317
|
+
}
|
|
381
1318
|
/* Indented to the parent's *label*, not its icon: page padding + the 16px glyph box + the row gap.
|
|
382
1319
|
Condensed height because a two-level menu is 35 rows, not 10. */
|
|
383
|
-
.pire-sidenav-subitem{
|
|
384
|
-
|
|
1320
|
+
.pire-sidenav-subitem {
|
|
1321
|
+
height: var(--row-h-condensed);
|
|
1322
|
+
padding-left: calc(var(--sp-4) + var(--sp-4) + var(--sp-3));
|
|
1323
|
+
}
|
|
1324
|
+
.pire-sidenav-footer {
|
|
1325
|
+
margin-top: auto;
|
|
1326
|
+
padding: var(--sp-3) var(--sp-4);
|
|
1327
|
+
border-top: 1px solid var(--border-subtle);
|
|
1328
|
+
}
|
|
385
1329
|
|
|
386
1330
|
/* ---- ShellRail ------------------------------------------------------- */
|
|
387
1331
|
/* The application rail: the *first* of two navigation levels, picking which app is open while
|
|
388
1332
|
SideNav picks the page inside it. Icon-only and permanently dark, so it reads as chrome
|
|
389
1333
|
continuing down from the shell bar rather than as a second sidebar. */
|
|
390
|
-
.pire-shellrail{
|
|
1334
|
+
.pire-shellrail {
|
|
1335
|
+
display: flex;
|
|
1336
|
+
flex-direction: column;
|
|
1337
|
+
width: var(--rail-w);
|
|
1338
|
+
flex: 0 0 var(--rail-w);
|
|
1339
|
+
min-height: 0;
|
|
1340
|
+
background: var(--surface-rail);
|
|
1341
|
+
color: var(--text-inverse-secondary);
|
|
1342
|
+
}
|
|
391
1343
|
/* A zone: home, the apps, the company-wide functions. Only the one marked `data-scroll` absorbs
|
|
392
1344
|
overflow, which is what keeps the pinned zones pinned while 30 apps scroll between them. `flex:0 0
|
|
393
1345
|
auto` on the rest stops them being squeezed by a long middle zone instead of scrolling it. */
|
|
394
|
-
.pire-shellrail-group{
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
.pire-shellrail-
|
|
400
|
-
|
|
1346
|
+
.pire-shellrail-group {
|
|
1347
|
+
display: flex;
|
|
1348
|
+
flex-direction: column;
|
|
1349
|
+
flex: 0 0 auto;
|
|
1350
|
+
}
|
|
1351
|
+
.pire-shellrail-group[data-scroll="true"] {
|
|
1352
|
+
flex: 1 1 auto;
|
|
1353
|
+
min-height: 0;
|
|
1354
|
+
overflow-y: auto;
|
|
1355
|
+
}
|
|
1356
|
+
.pire-shellrail-divider {
|
|
1357
|
+
flex: 0 0 auto;
|
|
1358
|
+
height: 1px;
|
|
1359
|
+
margin: var(--sp-1) var(--sp-2);
|
|
1360
|
+
background: var(--border-rail);
|
|
1361
|
+
}
|
|
1362
|
+
.pire-shellrail-item {
|
|
1363
|
+
display: flex;
|
|
1364
|
+
align-items: center;
|
|
1365
|
+
justify-content: center;
|
|
1366
|
+
flex: 0 0 auto;
|
|
1367
|
+
width: 100%;
|
|
1368
|
+
height: var(--row-h-comfortable);
|
|
1369
|
+
padding: 0;
|
|
1370
|
+
border: 0;
|
|
1371
|
+
background: transparent;
|
|
1372
|
+
color: inherit;
|
|
1373
|
+
cursor: pointer;
|
|
1374
|
+
transition: var(--transition-control);
|
|
1375
|
+
}
|
|
1376
|
+
.pire-shellrail-item[data-hovered] {
|
|
1377
|
+
color: var(--text-inverse);
|
|
1378
|
+
}
|
|
1379
|
+
.pire-shellrail-item[data-focus-visible] {
|
|
1380
|
+
outline: var(--focus-w) solid var(--text-inverse);
|
|
1381
|
+
outline-offset: -3px;
|
|
1382
|
+
}
|
|
1383
|
+
.pire-shellrail-item[data-selected="true"] {
|
|
1384
|
+
color: var(--text-inverse);
|
|
1385
|
+
}
|
|
401
1386
|
/* The tile inside the row, not the row itself: a full-width fill would butt against the rail's
|
|
402
1387
|
edges and lose its shape, and the 36px square is what makes the selection read as a chip. */
|
|
403
|
-
.pire-shellrail-tile{
|
|
404
|
-
|
|
1388
|
+
.pire-shellrail-tile {
|
|
1389
|
+
display: flex;
|
|
1390
|
+
align-items: center;
|
|
1391
|
+
justify-content: center;
|
|
1392
|
+
width: 36px;
|
|
1393
|
+
height: 36px;
|
|
1394
|
+
border-radius: var(--radius-1);
|
|
1395
|
+
transition: var(--transition-control);
|
|
1396
|
+
}
|
|
1397
|
+
.pire-shellrail-item[data-hovered] .pire-shellrail-tile {
|
|
1398
|
+
background: var(--surface-rail-hover);
|
|
1399
|
+
}
|
|
405
1400
|
/* Fill *and* ring. The fill is 1.64:1 against the rail — a tint, not an indicator — so the inset
|
|
406
1401
|
ring is the half that satisfies WCAG 1.4.11, and tokens.contrast.test.ts asserts it at 3:1. */
|
|
407
|
-
.pire-shellrail-item[data-selected="true"] .pire-shellrail-tile{
|
|
1402
|
+
.pire-shellrail-item[data-selected="true"] .pire-shellrail-tile {
|
|
1403
|
+
background: var(--surface-rail-selected);
|
|
1404
|
+
box-shadow: inset 0 0 0 1px var(--border-rail-selected);
|
|
1405
|
+
}
|
|
408
1406
|
|
|
409
1407
|
/* ---- AppLauncher ----------------------------------------------------- */
|
|
410
1408
|
/* The trigger is the shell bar's leftmost cell, sized to the rail and pulled through the bar's own
|
|
411
1409
|
padding so the two columns line up. Without the negative margin the launcher sits 12px in and the
|
|
412
1410
|
rail below it does not, which reads as a misprint at every viewport. */
|
|
413
|
-
.pire-launcher-trigger{
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
1411
|
+
.pire-launcher-trigger {
|
|
1412
|
+
display: flex;
|
|
1413
|
+
align-items: center;
|
|
1414
|
+
justify-content: center;
|
|
1415
|
+
flex: 0 0 var(--rail-w);
|
|
1416
|
+
width: var(--rail-w);
|
|
1417
|
+
height: var(--shell-header-h);
|
|
1418
|
+
margin-left: calc(-1 * var(--sp-3));
|
|
1419
|
+
padding: 0;
|
|
1420
|
+
border: 0;
|
|
1421
|
+
background: var(--surface-rail-hover);
|
|
1422
|
+
color: var(--text-inverse);
|
|
1423
|
+
cursor: pointer;
|
|
1424
|
+
transition: var(--transition-control);
|
|
1425
|
+
}
|
|
1426
|
+
.pire-launcher-trigger[data-hovered] {
|
|
1427
|
+
background: var(--surface-rail-selected);
|
|
1428
|
+
}
|
|
1429
|
+
.pire-launcher-trigger[data-pressed],
|
|
1430
|
+
.pire-launcher-trigger[aria-expanded="true"] {
|
|
1431
|
+
background: var(--surface-rail-selected);
|
|
1432
|
+
}
|
|
1433
|
+
.pire-launcher-trigger[data-focus-visible] {
|
|
1434
|
+
outline: var(--focus-w) solid var(--text-inverse);
|
|
1435
|
+
outline-offset: -3px;
|
|
1436
|
+
}
|
|
417
1437
|
/* Its own popover shell rather than `.pire-popover`, which caps at 320px tall and sizes itself from
|
|
418
1438
|
the trigger — correct for a menu hanging off a field, wrong for a 560px catalogue hanging off a
|
|
419
1439
|
56px button. Same surface, border, shadow and entrance, so the two still read as one family. */
|
|
420
|
-
.pire-launcher-popover{
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
1440
|
+
.pire-launcher-popover {
|
|
1441
|
+
background: var(--surface-card);
|
|
1442
|
+
border: 1px solid var(--border-subtle);
|
|
1443
|
+
border-radius: var(--radius-2);
|
|
1444
|
+
box-shadow: var(--shadow-2);
|
|
1445
|
+
max-height: calc(100vh - var(--shell-header-h) - var(--sp-6));
|
|
1446
|
+
overflow: auto;
|
|
1447
|
+
animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
|
|
1448
|
+
}
|
|
1449
|
+
.pire-launcher {
|
|
1450
|
+
display: flex;
|
|
1451
|
+
flex-direction: column;
|
|
1452
|
+
gap: var(--sp-3);
|
|
1453
|
+
width: 560px;
|
|
1454
|
+
max-width: calc(100vw - var(--sp-6));
|
|
1455
|
+
padding: var(--sp-4);
|
|
1456
|
+
outline: none;
|
|
1457
|
+
}
|
|
1458
|
+
.pire-launcher-head {
|
|
1459
|
+
display: flex;
|
|
1460
|
+
align-items: center;
|
|
1461
|
+
justify-content: space-between;
|
|
1462
|
+
gap: var(--sp-3);
|
|
1463
|
+
}
|
|
1464
|
+
.pire-launcher-title {
|
|
1465
|
+
font: var(--type-h4);
|
|
1466
|
+
}
|
|
1467
|
+
.pire-launcher-meta {
|
|
1468
|
+
font: var(--type-caption);
|
|
1469
|
+
color: var(--text-secondary);
|
|
1470
|
+
}
|
|
1471
|
+
.pire-launcher-section {
|
|
1472
|
+
display: flex;
|
|
1473
|
+
flex-direction: column;
|
|
1474
|
+
gap: var(--sp-2);
|
|
1475
|
+
}
|
|
426
1476
|
/* A rule above every section but the first, so the company-wide block reads as a different kind of
|
|
427
1477
|
destination from the apps — the artboard's separation, without a divider element to render. */
|
|
428
|
-
.pire-launcher-section + .pire-launcher-section{
|
|
1478
|
+
.pire-launcher-section + .pire-launcher-section {
|
|
1479
|
+
padding-top: var(--sp-3);
|
|
1480
|
+
border-top: 1px solid var(--border-subtle);
|
|
1481
|
+
}
|
|
429
1482
|
/* Two columns, because an app catalogue is a grid of peers and a single column of eleven turns the
|
|
430
1483
|
panel into a menu. Collapses below the breakpoint rather than shrinking the tiles past legibility. */
|
|
431
|
-
.pire-launcher-grid{
|
|
432
|
-
|
|
1484
|
+
.pire-launcher-grid {
|
|
1485
|
+
display: grid;
|
|
1486
|
+
grid-template-columns: 1fr 1fr;
|
|
1487
|
+
gap: var(--sp-0h);
|
|
1488
|
+
}
|
|
1489
|
+
@media (max-width: 600px) {
|
|
1490
|
+
.pire-launcher-grid {
|
|
1491
|
+
grid-template-columns: 1fr;
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
433
1494
|
/* `min-width:0` is what keeps the grid inside the panel. `1fr` is `minmax(auto, 1fr)`, and that
|
|
434
1495
|
`auto` is this item's min-content — which includes a `white-space:nowrap` description, so a track
|
|
435
1496
|
could not shrink below a whole sentence. With a long description in *both* columns the tracks
|
|
@@ -438,168 +1499,614 @@
|
|
|
438
1499
|
an ancestor was doing the clipping. No ellipsis reads as "the copy is like that", not as
|
|
439
1500
|
"there is more", which is why this survived so long. The sibling rule on
|
|
440
1501
|
`.pire-launcher-item-text` already had this; it was one level too far in to define the track. */
|
|
441
|
-
.pire-launcher-item{
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
1502
|
+
.pire-launcher-item {
|
|
1503
|
+
display: flex;
|
|
1504
|
+
align-items: center;
|
|
1505
|
+
gap: var(--sp-3);
|
|
1506
|
+
width: 100%;
|
|
1507
|
+
min-width: 0;
|
|
1508
|
+
padding: var(--sp-2);
|
|
1509
|
+
border: 0;
|
|
1510
|
+
border-radius: var(--radius-1);
|
|
1511
|
+
background: transparent;
|
|
1512
|
+
color: var(--text-primary);
|
|
1513
|
+
font: var(--type-body);
|
|
1514
|
+
text-align: left;
|
|
1515
|
+
cursor: pointer;
|
|
1516
|
+
transition: var(--transition-control);
|
|
1517
|
+
}
|
|
1518
|
+
.pire-launcher-item[data-hovered] {
|
|
1519
|
+
background: var(--surface-hover);
|
|
1520
|
+
}
|
|
1521
|
+
.pire-launcher-item[data-pressed] {
|
|
1522
|
+
background: var(--surface-active);
|
|
1523
|
+
}
|
|
1524
|
+
.pire-launcher-item[data-selected="true"] {
|
|
1525
|
+
background: var(--surface-selected);
|
|
1526
|
+
color: var(--accent-subtle-fg);
|
|
1527
|
+
}
|
|
445
1528
|
/* The two densities. `tile` is a destination worth describing; `compact` is a link that only needs
|
|
446
1529
|
naming, so its glyph steps down to 16px and loses the accent plate rather than shouting equally. */
|
|
447
|
-
.pire-launcher-item-icon{
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
1530
|
+
.pire-launcher-item-icon {
|
|
1531
|
+
display: flex;
|
|
1532
|
+
align-items: center;
|
|
1533
|
+
justify-content: center;
|
|
1534
|
+
flex: 0 0 auto;
|
|
1535
|
+
width: 32px;
|
|
1536
|
+
height: 32px;
|
|
1537
|
+
border-radius: var(--radius-1);
|
|
1538
|
+
background: var(--accent-subtle-bg);
|
|
1539
|
+
color: var(--accent-subtle-fg);
|
|
1540
|
+
}
|
|
1541
|
+
.pire-launcher-grid[data-variant="compact"] .pire-launcher-item-icon {
|
|
1542
|
+
width: 24px;
|
|
1543
|
+
height: 24px;
|
|
1544
|
+
background: transparent;
|
|
1545
|
+
color: var(--text-secondary);
|
|
1546
|
+
}
|
|
1547
|
+
.pire-launcher-item-text {
|
|
1548
|
+
display: flex;
|
|
1549
|
+
flex-direction: column;
|
|
1550
|
+
gap: 1px;
|
|
1551
|
+
min-width: 0;
|
|
1552
|
+
}
|
|
1553
|
+
.pire-launcher-item-label {
|
|
1554
|
+
font: var(--type-body-strong);
|
|
1555
|
+
}
|
|
1556
|
+
.pire-launcher-grid[data-variant="compact"] .pire-launcher-item-label {
|
|
1557
|
+
font: var(--type-body);
|
|
1558
|
+
}
|
|
1559
|
+
.pire-launcher-item-desc {
|
|
1560
|
+
font: var(--type-caption);
|
|
1561
|
+
color: var(--text-secondary);
|
|
1562
|
+
white-space: nowrap;
|
|
1563
|
+
overflow: hidden;
|
|
1564
|
+
text-overflow: ellipsis;
|
|
1565
|
+
}
|
|
1566
|
+
.pire-launcher-empty {
|
|
1567
|
+
padding: var(--sp-4) var(--sp-2);
|
|
1568
|
+
font: var(--type-body);
|
|
1569
|
+
color: var(--text-secondary);
|
|
1570
|
+
text-align: center;
|
|
1571
|
+
}
|
|
454
1572
|
|
|
455
1573
|
/* ---- Feedback -------------------------------------------------------- */
|
|
456
|
-
.pire-modal-overlay{
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
.pire-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
.pire-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
.pire-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
.pire-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
.pire-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
.pire-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
.pire-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
1574
|
+
.pire-modal-overlay {
|
|
1575
|
+
position: fixed;
|
|
1576
|
+
inset: 0;
|
|
1577
|
+
z-index: 900;
|
|
1578
|
+
display: flex;
|
|
1579
|
+
align-items: center;
|
|
1580
|
+
justify-content: center;
|
|
1581
|
+
padding: var(--sp-6);
|
|
1582
|
+
background: var(--surface-overlay);
|
|
1583
|
+
animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
|
|
1584
|
+
}
|
|
1585
|
+
.pire-modal {
|
|
1586
|
+
display: flex;
|
|
1587
|
+
flex-direction: column;
|
|
1588
|
+
width: 100%;
|
|
1589
|
+
max-height: calc(100vh - var(--sp-16));
|
|
1590
|
+
background: var(--surface-raised);
|
|
1591
|
+
border-radius: var(--radius-2);
|
|
1592
|
+
box-shadow: var(--shadow-3);
|
|
1593
|
+
animation: pire-dialog-in var(--dur-base) var(--ease-entrance);
|
|
1594
|
+
outline: none;
|
|
1595
|
+
}
|
|
1596
|
+
.pire-modal[data-size="sm"] {
|
|
1597
|
+
max-width: 420px;
|
|
1598
|
+
}
|
|
1599
|
+
.pire-modal[data-size="md"] {
|
|
1600
|
+
max-width: 640px;
|
|
1601
|
+
}
|
|
1602
|
+
.pire-modal[data-size="lg"] {
|
|
1603
|
+
max-width: 960px;
|
|
1604
|
+
}
|
|
1605
|
+
.pire-dialog {
|
|
1606
|
+
display: flex;
|
|
1607
|
+
flex-direction: column;
|
|
1608
|
+
min-height: 0;
|
|
1609
|
+
outline: none;
|
|
1610
|
+
}
|
|
1611
|
+
.pire-dialog-head {
|
|
1612
|
+
display: flex;
|
|
1613
|
+
align-items: flex-start;
|
|
1614
|
+
gap: var(--sp-3);
|
|
1615
|
+
padding: var(--sp-4) var(--sp-5);
|
|
1616
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
1617
|
+
}
|
|
1618
|
+
.pire-dialog-title {
|
|
1619
|
+
font: var(--type-h3);
|
|
1620
|
+
letter-spacing: var(--ls-heading);
|
|
1621
|
+
}
|
|
1622
|
+
.pire-dialog-sub {
|
|
1623
|
+
font: var(--type-caption);
|
|
1624
|
+
color: var(--text-secondary);
|
|
1625
|
+
}
|
|
1626
|
+
.pire-dialog-body {
|
|
1627
|
+
padding: var(--sp-5);
|
|
1628
|
+
overflow: auto;
|
|
1629
|
+
font: var(--type-body);
|
|
1630
|
+
}
|
|
1631
|
+
.pire-dialog-foot {
|
|
1632
|
+
display: flex;
|
|
1633
|
+
justify-content: flex-end;
|
|
1634
|
+
gap: var(--sp-2);
|
|
1635
|
+
padding: var(--sp-4) var(--sp-5);
|
|
1636
|
+
border-top: 1px solid var(--border-subtle);
|
|
1637
|
+
background: var(--surface-sunken);
|
|
1638
|
+
border-radius: 0 0 var(--radius-2) var(--radius-2);
|
|
1639
|
+
}
|
|
1640
|
+
.pire-sidepanel-overlay {
|
|
1641
|
+
position: fixed;
|
|
1642
|
+
inset: 0;
|
|
1643
|
+
z-index: 900;
|
|
1644
|
+
display: flex;
|
|
1645
|
+
justify-content: flex-end;
|
|
1646
|
+
background: var(--surface-overlay);
|
|
1647
|
+
}
|
|
1648
|
+
.pire-sidepanel {
|
|
1649
|
+
display: flex;
|
|
1650
|
+
flex-direction: column;
|
|
1651
|
+
height: 100%;
|
|
1652
|
+
max-width: 100vw;
|
|
1653
|
+
background: var(--surface-raised);
|
|
1654
|
+
box-shadow: var(--shadow-3);
|
|
1655
|
+
outline: none;
|
|
1656
|
+
}
|
|
1657
|
+
.pire-sidepanel[data-entering] {
|
|
1658
|
+
animation: pire-panel-in var(--dur-moderate) var(--ease-entrance);
|
|
1659
|
+
}
|
|
1660
|
+
@keyframes pire-panel-in {
|
|
1661
|
+
from {
|
|
1662
|
+
transform: translateX(24px);
|
|
1663
|
+
opacity: 0;
|
|
1664
|
+
}
|
|
1665
|
+
to {
|
|
1666
|
+
transform: none;
|
|
1667
|
+
opacity: 1;
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
.pire-msg {
|
|
1671
|
+
display: flex;
|
|
1672
|
+
align-items: flex-start;
|
|
1673
|
+
gap: var(--sp-2);
|
|
1674
|
+
padding: var(--sp-3);
|
|
1675
|
+
border: 1px solid transparent;
|
|
1676
|
+
border-left-width: 3px;
|
|
1677
|
+
border-radius: var(--radius-1);
|
|
1678
|
+
font: var(--type-body);
|
|
1679
|
+
}
|
|
1680
|
+
.pire-msg[data-kind="info"] {
|
|
1681
|
+
background: var(--status-informative-bg);
|
|
1682
|
+
border-color: var(--status-informative-border);
|
|
1683
|
+
border-left-color: var(--status-informative-fg);
|
|
1684
|
+
color: var(--status-informative-fg);
|
|
1685
|
+
}
|
|
1686
|
+
.pire-msg[data-kind="success"] {
|
|
1687
|
+
background: var(--status-positive-bg);
|
|
1688
|
+
border-color: var(--status-positive-border);
|
|
1689
|
+
border-left-color: var(--status-positive-fg);
|
|
1690
|
+
color: var(--status-positive-fg);
|
|
1691
|
+
}
|
|
1692
|
+
.pire-msg[data-kind="warning"] {
|
|
1693
|
+
background: var(--status-critical-bg);
|
|
1694
|
+
border-color: var(--status-critical-border);
|
|
1695
|
+
border-left-color: var(--status-critical-fg);
|
|
1696
|
+
color: var(--status-critical-fg);
|
|
1697
|
+
}
|
|
1698
|
+
.pire-msg[data-kind="error"] {
|
|
1699
|
+
background: var(--status-negative-bg);
|
|
1700
|
+
border-color: var(--status-negative-border);
|
|
1701
|
+
border-left-color: var(--status-negative-fg);
|
|
1702
|
+
color: var(--status-negative-fg);
|
|
1703
|
+
}
|
|
1704
|
+
.pire-msg-title {
|
|
1705
|
+
font: var(--type-body-strong);
|
|
1706
|
+
}
|
|
1707
|
+
.pire-msg-body {
|
|
1708
|
+
color: var(--text-primary);
|
|
1709
|
+
}
|
|
1710
|
+
.pire-toast {
|
|
1711
|
+
position: fixed;
|
|
1712
|
+
z-index: 1000;
|
|
1713
|
+
bottom: var(--sp-6);
|
|
1714
|
+
display: flex;
|
|
1715
|
+
align-items: center;
|
|
1716
|
+
gap: var(--sp-2);
|
|
1717
|
+
padding: var(--sp-3) var(--sp-4);
|
|
1718
|
+
border-radius: var(--radius-2);
|
|
1719
|
+
background: var(--gray-90);
|
|
1720
|
+
color: var(--text-inverse);
|
|
1721
|
+
box-shadow: var(--shadow-3);
|
|
1722
|
+
font: var(--type-body);
|
|
1723
|
+
animation: pire-toast-in var(--dur-base) var(--ease-entrance);
|
|
1724
|
+
}
|
|
1725
|
+
.pire-toast[data-position="bottom-center"] {
|
|
1726
|
+
left: 50%;
|
|
1727
|
+
--pire-toast-tx: -50%;
|
|
1728
|
+
transform: translateX(-50%);
|
|
1729
|
+
}
|
|
1730
|
+
.pire-toast[data-position="bottom-right"] {
|
|
1731
|
+
right: var(--sp-6);
|
|
1732
|
+
--pire-toast-tx: 0;
|
|
1733
|
+
}
|
|
1734
|
+
.pire-toast-region {
|
|
1735
|
+
position: fixed;
|
|
1736
|
+
z-index: 1000;
|
|
1737
|
+
bottom: var(--sp-6);
|
|
1738
|
+
left: 50%;
|
|
1739
|
+
transform: translateX(-50%);
|
|
1740
|
+
display: flex;
|
|
1741
|
+
flex-direction: column;
|
|
1742
|
+
gap: var(--sp-2);
|
|
1743
|
+
outline: none;
|
|
1744
|
+
}
|
|
1745
|
+
.pire-progress {
|
|
1746
|
+
display: flex;
|
|
1747
|
+
flex-direction: column;
|
|
1748
|
+
gap: var(--sp-1);
|
|
1749
|
+
}
|
|
1750
|
+
.pire-progress-head {
|
|
1751
|
+
display: flex;
|
|
1752
|
+
justify-content: space-between;
|
|
1753
|
+
gap: var(--sp-3);
|
|
1754
|
+
font: var(--type-caption);
|
|
1755
|
+
color: var(--text-secondary);
|
|
1756
|
+
}
|
|
1757
|
+
.pire-progress-track {
|
|
1758
|
+
height: 8px;
|
|
1759
|
+
border-radius: var(--radius-pill);
|
|
1760
|
+
background: var(--gray-20);
|
|
1761
|
+
overflow: hidden;
|
|
1762
|
+
}
|
|
1763
|
+
.pire-progress[data-size="sm"] .pire-progress-track {
|
|
1764
|
+
height: 4px;
|
|
1765
|
+
}
|
|
1766
|
+
.pire-progress-fill {
|
|
1767
|
+
height: 100%;
|
|
1768
|
+
background: var(--accent-bg);
|
|
1769
|
+
transition: width var(--dur-moderate) var(--ease-standard);
|
|
1770
|
+
}
|
|
1771
|
+
.pire-progress[data-status="positive"] .pire-progress-fill {
|
|
1772
|
+
background: var(--status-positive-fg);
|
|
1773
|
+
}
|
|
1774
|
+
.pire-progress[data-status="critical"] .pire-progress-fill {
|
|
1775
|
+
background: var(--status-critical-fg);
|
|
1776
|
+
}
|
|
1777
|
+
.pire-progress[data-status="negative"] .pire-progress-fill {
|
|
1778
|
+
background: var(--status-negative-fg);
|
|
1779
|
+
}
|
|
1780
|
+
/* A tooltip target takes focus so the tip is reachable by keyboard, and React Aria sets only
|
|
1781
|
+
`tabindex` on it — no `data-focus-visible`. The ring therefore lives here rather than relying on
|
|
1782
|
+
base.css's `[tabindex]:focus-visible`, which a consumer skipping the resets would not have. */
|
|
1783
|
+
.pire-tooltip-target:focus-visible {
|
|
1784
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
1785
|
+
outline-offset: var(--focus-offset);
|
|
1786
|
+
}
|
|
1787
|
+
.pire-tooltip {
|
|
1788
|
+
max-width: 240px;
|
|
1789
|
+
padding: var(--sp-1) var(--sp-2);
|
|
1790
|
+
border-radius: var(--radius-1);
|
|
1791
|
+
background: var(--gray-90);
|
|
1792
|
+
color: var(--text-inverse);
|
|
1793
|
+
font: var(--type-caption);
|
|
1794
|
+
box-shadow: var(--shadow-2);
|
|
1795
|
+
animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
/* ---- Skeleton ---------------------------------------------------------- */
|
|
1799
|
+
/* The sweep is a lightness *difference* between two surface aliases, not a fixed direction:
|
|
1800
|
+
--surface-hover is lighter than --surface-active in the light theme and darker in the dark
|
|
1801
|
+
one, and either reads as a sweep. That keeps the placeholder on the shared alias layer
|
|
1802
|
+
instead of introducing a skeleton-only token pair for both themes to maintain.
|
|
1803
|
+
The duration is derived, not literal: a shimmer at --dur-slow (400ms) is agitated rather
|
|
1804
|
+
than patient, and 3x is the slowest step the motion scale can express. */
|
|
1805
|
+
.pire-skeleton {
|
|
1806
|
+
display: block;
|
|
1807
|
+
width: 100%;
|
|
1808
|
+
background-color: var(--surface-active);
|
|
1809
|
+
background-image: linear-gradient(90deg, transparent, var(--surface-hover), transparent);
|
|
1810
|
+
background-size: 200% 100%;
|
|
1811
|
+
background-repeat: no-repeat;
|
|
1812
|
+
border-radius: var(--radius-1);
|
|
1813
|
+
animation: pire-skeleton-sweep calc(var(--dur-slow) * 3) var(--ease-standard) infinite;
|
|
1814
|
+
}
|
|
1815
|
+
.pire-skeleton[data-shape="text"] {
|
|
1816
|
+
height: var(--fs-body);
|
|
1817
|
+
}
|
|
1818
|
+
.pire-skeleton[data-shape="block"] {
|
|
1819
|
+
height: var(--sp-16);
|
|
1820
|
+
border-radius: var(--radius-2);
|
|
1821
|
+
}
|
|
1822
|
+
.pire-skeleton[data-shape="circle"] {
|
|
1823
|
+
width: var(--sp-8);
|
|
1824
|
+
height: var(--sp-8);
|
|
1825
|
+
border-radius: var(--radius-pill);
|
|
1826
|
+
flex: 0 0 auto;
|
|
1827
|
+
}
|
|
1828
|
+
@keyframes pire-skeleton-sweep {
|
|
1829
|
+
from {
|
|
1830
|
+
background-position: 150% 0;
|
|
1831
|
+
}
|
|
1832
|
+
to {
|
|
1833
|
+
background-position: -50% 0;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
/* Geometry copied from .pire-tr / .pire-td, not approximated, so a loading table and a loaded
|
|
509
1837
|
one are the same height and the rows do not jump when the data lands. */
|
|
510
|
-
.pire-skeleton-row{
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
.pire-skeleton-
|
|
1838
|
+
.pire-skeleton-row {
|
|
1839
|
+
display: flex;
|
|
1840
|
+
align-items: center;
|
|
1841
|
+
height: var(--row-h-regular);
|
|
1842
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
1843
|
+
}
|
|
1844
|
+
.pire-skeleton-row[data-density="condensed"] {
|
|
1845
|
+
height: var(--row-h-condensed);
|
|
1846
|
+
}
|
|
1847
|
+
.pire-skeleton-row[data-density="comfortable"] {
|
|
1848
|
+
height: var(--row-h-comfortable);
|
|
1849
|
+
}
|
|
1850
|
+
.pire-skeleton-cell {
|
|
1851
|
+
flex: 1 1 0;
|
|
1852
|
+
min-width: 0;
|
|
1853
|
+
display: flex;
|
|
1854
|
+
padding: 0 var(--sp-3);
|
|
1855
|
+
}
|
|
1856
|
+
.pire-skeleton-row[data-density="condensed"] .pire-skeleton-cell {
|
|
1857
|
+
padding: 0 var(--sp-2);
|
|
1858
|
+
}
|
|
1859
|
+
.pire-skeleton-cell[data-align="right"] {
|
|
1860
|
+
justify-content: flex-end;
|
|
1861
|
+
}
|
|
1862
|
+
.pire-skeleton-cell[data-align="center"] {
|
|
1863
|
+
justify-content: center;
|
|
1864
|
+
}
|
|
517
1865
|
|
|
518
1866
|
/* ---- Data ------------------------------------------------------------ */
|
|
519
|
-
.pire-table-wrap{
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
.pire-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
.pire-table
|
|
531
|
-
.pire-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
.pire-
|
|
536
|
-
|
|
1867
|
+
.pire-table-wrap {
|
|
1868
|
+
overflow: auto;
|
|
1869
|
+
background: var(--surface-card);
|
|
1870
|
+
border: 1px solid var(--border-subtle);
|
|
1871
|
+
border-radius: var(--radius-2);
|
|
1872
|
+
}
|
|
1873
|
+
.pire-table {
|
|
1874
|
+
width: 100%;
|
|
1875
|
+
border-collapse: collapse;
|
|
1876
|
+
font: var(--type-body);
|
|
1877
|
+
}
|
|
1878
|
+
.pire-table thead tr,
|
|
1879
|
+
.pire-table .pire-thead-row {
|
|
1880
|
+
height: var(--row-h-condensed);
|
|
1881
|
+
background: var(--surface-toolbar);
|
|
1882
|
+
}
|
|
1883
|
+
.pire-table[data-sticky="true"] thead {
|
|
1884
|
+
position: sticky;
|
|
1885
|
+
top: 0;
|
|
1886
|
+
z-index: 1;
|
|
1887
|
+
}
|
|
1888
|
+
.pire-th {
|
|
1889
|
+
padding: 0 var(--sp-3);
|
|
1890
|
+
font: var(--type-label);
|
|
1891
|
+
letter-spacing: var(--ls-caps);
|
|
1892
|
+
text-transform: uppercase;
|
|
1893
|
+
color: var(--text-secondary);
|
|
1894
|
+
border-bottom: 1px solid var(--border-default);
|
|
1895
|
+
white-space: nowrap;
|
|
1896
|
+
text-align: left;
|
|
1897
|
+
outline: none;
|
|
1898
|
+
}
|
|
1899
|
+
.pire-th[data-allows-sorting="true"] {
|
|
1900
|
+
cursor: pointer;
|
|
1901
|
+
user-select: none;
|
|
1902
|
+
}
|
|
1903
|
+
.pire-th[data-focus-visible] {
|
|
1904
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
1905
|
+
outline-offset: calc(var(--focus-offset) * -1);
|
|
1906
|
+
}
|
|
1907
|
+
.pire-th-inner {
|
|
1908
|
+
display: inline-flex;
|
|
1909
|
+
align-items: center;
|
|
1910
|
+
gap: var(--sp-1);
|
|
1911
|
+
width: 100%;
|
|
1912
|
+
}
|
|
1913
|
+
.pire-th[data-align="right"] .pire-th-inner {
|
|
1914
|
+
justify-content: flex-end;
|
|
1915
|
+
}
|
|
1916
|
+
.pire-tr {
|
|
1917
|
+
height: var(--row-h-regular);
|
|
1918
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
1919
|
+
outline: none;
|
|
1920
|
+
}
|
|
1921
|
+
.pire-table[data-density="condensed"] .pire-tr {
|
|
1922
|
+
height: var(--row-h-condensed);
|
|
1923
|
+
}
|
|
1924
|
+
.pire-table[data-density="comfortable"] .pire-tr {
|
|
1925
|
+
height: var(--row-h-comfortable);
|
|
1926
|
+
}
|
|
1927
|
+
.pire-tr[data-hovered] {
|
|
1928
|
+
background: var(--surface-hover);
|
|
1929
|
+
}
|
|
1930
|
+
.pire-tr[data-selected] {
|
|
1931
|
+
background: var(--surface-selected);
|
|
1932
|
+
}
|
|
1933
|
+
.pire-tr[data-focus-visible] {
|
|
1934
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
1935
|
+
outline-offset: calc(var(--focus-offset) * -1);
|
|
1936
|
+
}
|
|
1937
|
+
.pire-tr[data-pressable="true"] {
|
|
1938
|
+
cursor: pointer;
|
|
1939
|
+
}
|
|
1940
|
+
.pire-td {
|
|
1941
|
+
padding: 0 var(--sp-3);
|
|
1942
|
+
color: var(--text-primary);
|
|
1943
|
+
white-space: nowrap;
|
|
1944
|
+
overflow: hidden;
|
|
1945
|
+
text-overflow: ellipsis;
|
|
1946
|
+
outline: none;
|
|
1947
|
+
}
|
|
1948
|
+
.pire-td[data-numeric="true"] {
|
|
1949
|
+
font: var(--type-numeric);
|
|
1950
|
+
font-variant-numeric: tabular-nums;
|
|
1951
|
+
text-align: right;
|
|
1952
|
+
}
|
|
537
1953
|
/* Cell tone. The state belongs to this cell's value, not to the row — a matrix has thirty-four
|
|
538
1954
|
branches per product and usually only one of them is empty. Colour is never the only carrier:
|
|
539
1955
|
the component's JSDoc says to pair it with a figure or a label, because a tint alone is a value
|
|
540
1956
|
state nobody using a screen reader ever learns about. */
|
|
541
|
-
.pire-td[data-tone="positive"]{
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
.pire-td[data-tone="
|
|
1957
|
+
.pire-td[data-tone="positive"] {
|
|
1958
|
+
background: var(--status-positive-bg);
|
|
1959
|
+
color: var(--status-positive-fg);
|
|
1960
|
+
}
|
|
1961
|
+
.pire-td[data-tone="critical"] {
|
|
1962
|
+
background: var(--status-critical-bg);
|
|
1963
|
+
color: var(--status-critical-fg);
|
|
1964
|
+
}
|
|
1965
|
+
.pire-td[data-tone="negative"] {
|
|
1966
|
+
background: var(--status-negative-bg);
|
|
1967
|
+
color: var(--status-negative-fg);
|
|
1968
|
+
}
|
|
1969
|
+
.pire-td[data-tone="informative"] {
|
|
1970
|
+
background: var(--status-informative-bg);
|
|
1971
|
+
color: var(--status-informative-fg);
|
|
1972
|
+
}
|
|
1973
|
+
.pire-td[data-tone="neutral"] {
|
|
1974
|
+
background: var(--status-neutral-bg);
|
|
1975
|
+
color: var(--status-neutral-fg);
|
|
1976
|
+
}
|
|
546
1977
|
/* Density overrides sit after the .pire-th/.pire-td bases they override, so the cascade reads
|
|
547
1978
|
top-to-bottom in source order rather than relying on specificity alone. */
|
|
548
|
-
.pire-table[data-density="condensed"] .pire-th
|
|
549
|
-
.pire-table-
|
|
1979
|
+
.pire-table[data-density="condensed"] .pire-th,
|
|
1980
|
+
.pire-table[data-density="condensed"] .pire-td {
|
|
1981
|
+
padding: 0 var(--sp-2);
|
|
1982
|
+
}
|
|
1983
|
+
.pire-table-empty {
|
|
1984
|
+
padding: var(--sp-10);
|
|
1985
|
+
text-align: center;
|
|
1986
|
+
color: var(--text-secondary);
|
|
1987
|
+
}
|
|
550
1988
|
/* A disabled row is present for context but cannot be acted on. It recedes rather than
|
|
551
1989
|
disappearing, and drops the pointer cue so the row does not look pressable. */
|
|
552
|
-
.pire-tr[data-disabled]{
|
|
553
|
-
|
|
554
|
-
|
|
1990
|
+
.pire-tr[data-disabled] {
|
|
1991
|
+
color: var(--text-disabled);
|
|
1992
|
+
cursor: default;
|
|
1993
|
+
}
|
|
1994
|
+
.pire-tr[data-disabled] .pire-td {
|
|
1995
|
+
color: var(--text-disabled);
|
|
1996
|
+
}
|
|
1997
|
+
.pire-tr[data-disabled][data-hovered] {
|
|
1998
|
+
background: transparent;
|
|
1999
|
+
}
|
|
555
2000
|
/* Detail rows sit under their record and read as part of it: sunken, no bottom rule between the
|
|
556
2001
|
two, and free of the fixed row height since the content decides how tall they are. */
|
|
557
|
-
.pire-tr-expanded{
|
|
558
|
-
|
|
559
|
-
|
|
2002
|
+
.pire-tr-expanded {
|
|
2003
|
+
height: auto;
|
|
2004
|
+
background: var(--surface-sunken);
|
|
2005
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
2006
|
+
}
|
|
2007
|
+
.pire-tr-expanded[data-hovered] {
|
|
2008
|
+
background: var(--surface-sunken);
|
|
2009
|
+
}
|
|
2010
|
+
.pire-td-expanded {
|
|
2011
|
+
padding: var(--sp-3);
|
|
2012
|
+
color: var(--text-primary);
|
|
2013
|
+
white-space: normal;
|
|
2014
|
+
outline: none;
|
|
2015
|
+
}
|
|
560
2016
|
/* Totals. `position:sticky` keeps them in view while the body scrolls, which is the whole reason
|
|
561
2017
|
they are in a <tfoot> rather than under the table. */
|
|
562
|
-
.pire-tfoot .pire-tr-footer{
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
2018
|
+
.pire-tfoot .pire-tr-footer {
|
|
2019
|
+
height: var(--row-h-regular);
|
|
2020
|
+
background: var(--surface-sunken);
|
|
2021
|
+
}
|
|
2022
|
+
.pire-tf {
|
|
2023
|
+
position: sticky;
|
|
2024
|
+
bottom: 0;
|
|
2025
|
+
padding: 0 var(--sp-3);
|
|
2026
|
+
background: var(--surface-sunken);
|
|
2027
|
+
border-top: 1px solid var(--border-default);
|
|
2028
|
+
font: var(--type-body-strong);
|
|
2029
|
+
color: var(--text-primary);
|
|
2030
|
+
white-space: nowrap;
|
|
2031
|
+
outline: none;
|
|
2032
|
+
}
|
|
2033
|
+
.pire-tf[data-numeric="true"] {
|
|
2034
|
+
font: var(--type-numeric);
|
|
2035
|
+
font-weight: 600;
|
|
2036
|
+
font-variant-numeric: tabular-nums;
|
|
2037
|
+
text-align: right;
|
|
2038
|
+
}
|
|
2039
|
+
.pire-table[data-density="condensed"] .pire-td-expanded,
|
|
2040
|
+
.pire-table[data-density="condensed"] .pire-tf {
|
|
2041
|
+
padding-inline: var(--sp-2);
|
|
2042
|
+
}
|
|
566
2043
|
|
|
567
2044
|
/* Frozen leading columns. A pinned matrix must be wider than its scroll container or nothing
|
|
568
2045
|
scrolls; scoped to pinned tables so the unpinned ones keep today's `width:100%` exactly. */
|
|
569
|
-
.pire-table[data-pinned="true"]{
|
|
2046
|
+
.pire-table[data-pinned="true"] {
|
|
2047
|
+
width: max-content;
|
|
2048
|
+
min-width: 100%;
|
|
2049
|
+
}
|
|
570
2050
|
/* Sticky cells need `border-collapse: separate`: under the collapsed model a cell borrows the
|
|
571
2051
|
grid's border rather than owning one, and the border does not travel with the cell when it
|
|
572
2052
|
sticks. The switch is scoped to pinned tables so the twenty-odd that freeze nothing keep the
|
|
573
2053
|
model they have — two separator strategies is the price, and this comment is the map. */
|
|
574
|
-
.pire-table[data-pinned="true"]{
|
|
575
|
-
|
|
576
|
-
|
|
2054
|
+
.pire-table[data-pinned="true"] {
|
|
2055
|
+
border-collapse: separate;
|
|
2056
|
+
border-spacing: 0;
|
|
2057
|
+
}
|
|
2058
|
+
.pire-table[data-pinned="true"] .pire-tr {
|
|
2059
|
+
border-bottom: 0;
|
|
2060
|
+
}
|
|
2061
|
+
.pire-table[data-pinned="true"] .pire-td {
|
|
2062
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
2063
|
+
}
|
|
577
2064
|
/* Same move, for the detail row: `.pire-tr-expanded`'s own border-bottom is a `<tr>` border too,
|
|
578
2065
|
and separate collapse does not paint it either. `.pire-td-expanded` is the row's only cell
|
|
579
2066
|
(it spans every column), so it is what carries the rule instead. */
|
|
580
|
-
.pire-table[data-pinned="true"] .pire-tr-expanded{
|
|
581
|
-
|
|
2067
|
+
.pire-table[data-pinned="true"] .pire-tr-expanded {
|
|
2068
|
+
border-bottom: 0;
|
|
2069
|
+
}
|
|
2070
|
+
.pire-table[data-pinned="true"] .pire-td-expanded {
|
|
2071
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
2072
|
+
}
|
|
582
2073
|
/* Both axes stick at once, so the order is stated rather than discovered. Pinned body cell 2,
|
|
583
2074
|
sticky header/footer row 3, pinned header/footer cell 4 — the corner is in both the frozen
|
|
584
2075
|
column and the sticky row and has to out-rank each of them. */
|
|
585
|
-
.pire-table[data-pinned="true"] thead{
|
|
586
|
-
|
|
2076
|
+
.pire-table[data-pinned="true"] thead {
|
|
2077
|
+
z-index: 3;
|
|
2078
|
+
}
|
|
2079
|
+
.pire-table[data-pinned="true"] .pire-td[data-pinned="true"] {
|
|
2080
|
+
position: sticky;
|
|
2081
|
+
z-index: 2;
|
|
2082
|
+
}
|
|
587
2083
|
/* The opaque ground a frozen cell needs so the scrolled body does not show through it, split off
|
|
588
2084
|
from the `position`/`z-index` above and scoped to `:not([data-tone])`. A toned cell keeps the
|
|
589
2085
|
tint it would have had unpinned, and it does so by this rule not matching rather than by five
|
|
590
2086
|
`[data-pinned][data-tone="…"]` rules re-stating each status token at higher specificity — which
|
|
591
2087
|
is one more place every future tone has to be added, and one more rule to lose to. */
|
|
592
|
-
.pire-table[data-pinned="true"] .pire-td[data-pinned="true"]:not([data-tone]){
|
|
2088
|
+
.pire-table[data-pinned="true"] .pire-td[data-pinned="true"]:not([data-tone]) {
|
|
2089
|
+
background: var(--surface-card);
|
|
2090
|
+
}
|
|
593
2091
|
/* `overflow:hidden` because a pinned column is held to its declared width: `.pire-td` already
|
|
594
2092
|
clips and ellipsises, and without the same on the header a long label spills out of its box and
|
|
595
2093
|
paints over the next frozen column instead of stopping at the freeze line. */
|
|
596
|
-
.pire-table[data-pinned="true"] .pire-th[data-pinned="true"]{
|
|
2094
|
+
.pire-table[data-pinned="true"] .pire-th[data-pinned="true"] {
|
|
2095
|
+
position: sticky;
|
|
2096
|
+
z-index: 4;
|
|
2097
|
+
background: var(--surface-toolbar);
|
|
2098
|
+
overflow: hidden;
|
|
2099
|
+
}
|
|
597
2100
|
/* `.pire-tf` is already `position:sticky;bottom:0`. A pinned footer cell adds `left`, so it sticks
|
|
598
2101
|
on both axes and takes the corner rung for the same reason the header corner does. */
|
|
599
|
-
.pire-table[data-pinned="true"] .pire-tf[data-pinned="true"]{
|
|
2102
|
+
.pire-table[data-pinned="true"] .pire-tf[data-pinned="true"] {
|
|
2103
|
+
z-index: 4;
|
|
2104
|
+
}
|
|
600
2105
|
/* The frozen edge, as a shadow rather than a border: a border on a sticky cell is what the
|
|
601
2106
|
separate model is here to avoid, and a shadow paints over the scrolled content underneath. */
|
|
602
|
-
.pire-table[data-pinned="true"] [data-pinned-last="true"]{
|
|
2107
|
+
.pire-table[data-pinned="true"] [data-pinned-last="true"] {
|
|
2108
|
+
box-shadow: 1px 0 0 0 var(--border-default);
|
|
2109
|
+
}
|
|
603
2110
|
/* A selected or hovered row must repaint its frozen cells too, or the row highlight stops dead at
|
|
604
2111
|
the freeze line and the pinned columns read as a separate, unselected table. Excludes a toned
|
|
605
2112
|
cell (`:not([data-tone])`): an unpinned toned cell already keeps its tint through hover and
|
|
@@ -614,378 +2121,1462 @@
|
|
|
614
2121
|
that is both, and writing hover last made the frozen cells go grey while the branch columns
|
|
615
2122
|
stayed blue: one row painted as two half-selected tables, which is the exact split these rules
|
|
616
2123
|
exist to prevent. */
|
|
617
|
-
.pire-table[data-pinned="true"] .pire-tr[data-hovered] .pire-td[data-pinned="true"]:not([data-tone]){
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
.pire-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
.pire-kpi
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
.pire-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
.pire-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
.pire-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
2124
|
+
.pire-table[data-pinned="true"] .pire-tr[data-hovered] .pire-td[data-pinned="true"]:not([data-tone]) {
|
|
2125
|
+
background: var(--surface-hover);
|
|
2126
|
+
}
|
|
2127
|
+
.pire-table[data-pinned="true"] .pire-tr[data-selected] .pire-td[data-pinned="true"]:not([data-tone]) {
|
|
2128
|
+
background: var(--surface-selected);
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
.pire-kpi {
|
|
2132
|
+
display: flex;
|
|
2133
|
+
flex-direction: column;
|
|
2134
|
+
gap: var(--sp-1);
|
|
2135
|
+
padding: var(--sp-4);
|
|
2136
|
+
background: var(--surface-card);
|
|
2137
|
+
border: 1px solid var(--border-subtle);
|
|
2138
|
+
border-radius: var(--radius-2);
|
|
2139
|
+
text-align: left;
|
|
2140
|
+
min-width: 0;
|
|
2141
|
+
transition: var(--transition-surface);
|
|
2142
|
+
}
|
|
2143
|
+
.pire-kpi[data-pressable="true"] {
|
|
2144
|
+
cursor: pointer;
|
|
2145
|
+
}
|
|
2146
|
+
.pire-kpi[data-hovered] {
|
|
2147
|
+
box-shadow: var(--shadow-2);
|
|
2148
|
+
}
|
|
2149
|
+
.pire-kpi-label {
|
|
2150
|
+
display: flex;
|
|
2151
|
+
align-items: center;
|
|
2152
|
+
gap: var(--sp-2);
|
|
2153
|
+
font: var(--type-label);
|
|
2154
|
+
color: var(--text-secondary);
|
|
2155
|
+
white-space: nowrap;
|
|
2156
|
+
overflow: hidden;
|
|
2157
|
+
text-overflow: ellipsis;
|
|
2158
|
+
}
|
|
2159
|
+
.pire-kpi-value {
|
|
2160
|
+
font: var(--fw-semibold) var(--fs-display) / var(--lh-tight) var(--font-mono);
|
|
2161
|
+
letter-spacing: var(--ls-numeric);
|
|
2162
|
+
font-variant-numeric: tabular-nums;
|
|
2163
|
+
color: var(--text-numeric);
|
|
2164
|
+
}
|
|
2165
|
+
.pire-kpi[data-status="positive"] .pire-kpi-value {
|
|
2166
|
+
color: var(--status-positive-fg);
|
|
2167
|
+
}
|
|
2168
|
+
.pire-kpi[data-status="critical"] .pire-kpi-value {
|
|
2169
|
+
color: var(--status-critical-fg);
|
|
2170
|
+
}
|
|
2171
|
+
.pire-kpi[data-status="negative"] .pire-kpi-value {
|
|
2172
|
+
color: var(--status-negative-fg);
|
|
2173
|
+
}
|
|
2174
|
+
.pire-kpi-unit {
|
|
2175
|
+
font: var(--type-caption);
|
|
2176
|
+
color: var(--text-secondary);
|
|
2177
|
+
margin-left: var(--sp-1);
|
|
2178
|
+
}
|
|
2179
|
+
.pire-kpi-delta {
|
|
2180
|
+
display: inline-flex;
|
|
2181
|
+
align-items: center;
|
|
2182
|
+
gap: var(--sp-1);
|
|
2183
|
+
font: var(--type-caption);
|
|
2184
|
+
}
|
|
2185
|
+
.pire-kpi-delta[data-tone="positive"] {
|
|
2186
|
+
color: var(--status-positive-fg);
|
|
2187
|
+
}
|
|
2188
|
+
.pire-kpi-delta[data-tone="negative"] {
|
|
2189
|
+
color: var(--status-negative-fg);
|
|
2190
|
+
}
|
|
2191
|
+
.pire-kpi-delta[data-tone="neutral"] {
|
|
2192
|
+
color: var(--text-secondary);
|
|
2193
|
+
}
|
|
2194
|
+
.pire-kpi-foot {
|
|
2195
|
+
font: var(--type-caption);
|
|
2196
|
+
color: var(--text-tertiary);
|
|
2197
|
+
}
|
|
2198
|
+
.pire-objheader {
|
|
2199
|
+
display: flex;
|
|
2200
|
+
flex-direction: column;
|
|
2201
|
+
gap: var(--sp-3);
|
|
2202
|
+
padding: var(--sp-4) var(--page-pad-x);
|
|
2203
|
+
background: var(--surface-card);
|
|
2204
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
2205
|
+
}
|
|
2206
|
+
.pire-objheader-row {
|
|
2207
|
+
display: flex;
|
|
2208
|
+
align-items: flex-start;
|
|
2209
|
+
gap: var(--sp-3);
|
|
2210
|
+
flex-wrap: wrap;
|
|
2211
|
+
}
|
|
2212
|
+
.pire-objheader-title {
|
|
2213
|
+
font: var(--type-h1);
|
|
2214
|
+
letter-spacing: var(--ls-heading);
|
|
2215
|
+
}
|
|
2216
|
+
.pire-objheader-sub {
|
|
2217
|
+
display: flex;
|
|
2218
|
+
align-items: center;
|
|
2219
|
+
gap: var(--sp-2);
|
|
2220
|
+
font: var(--type-caption);
|
|
2221
|
+
color: var(--text-secondary);
|
|
2222
|
+
}
|
|
2223
|
+
.pire-objheader-id {
|
|
2224
|
+
font: var(--type-code);
|
|
2225
|
+
color: var(--text-secondary);
|
|
2226
|
+
}
|
|
2227
|
+
.pire-objheader-actions {
|
|
2228
|
+
margin-left: auto;
|
|
2229
|
+
display: flex;
|
|
2230
|
+
gap: var(--sp-2);
|
|
2231
|
+
}
|
|
2232
|
+
.pire-facts {
|
|
2233
|
+
display: flex;
|
|
2234
|
+
flex-wrap: wrap;
|
|
2235
|
+
gap: var(--sp-6);
|
|
2236
|
+
}
|
|
2237
|
+
.pire-fact-label {
|
|
2238
|
+
font: var(--type-label);
|
|
2239
|
+
letter-spacing: var(--ls-caps);
|
|
2240
|
+
text-transform: uppercase;
|
|
2241
|
+
color: var(--text-tertiary);
|
|
2242
|
+
}
|
|
2243
|
+
.pire-fact-value {
|
|
2244
|
+
font: var(--type-body-strong);
|
|
2245
|
+
}
|
|
2246
|
+
.pire-fact-value[data-numeric="true"] {
|
|
2247
|
+
font: var(--type-numeric);
|
|
2248
|
+
font-variant-numeric: tabular-nums;
|
|
2249
|
+
}
|
|
2250
|
+
.pire-filterbar {
|
|
2251
|
+
display: flex;
|
|
2252
|
+
flex-direction: column;
|
|
2253
|
+
gap: var(--sp-3);
|
|
2254
|
+
padding: var(--sp-3) var(--sp-4);
|
|
2255
|
+
background: var(--surface-toolbar);
|
|
2256
|
+
border: 1px solid var(--border-subtle);
|
|
2257
|
+
border-radius: var(--radius-2);
|
|
2258
|
+
}
|
|
2259
|
+
.pire-filterbar-controls {
|
|
2260
|
+
display: flex;
|
|
2261
|
+
flex-wrap: wrap;
|
|
2262
|
+
align-items: flex-end;
|
|
2263
|
+
gap: var(--sp-3);
|
|
2264
|
+
}
|
|
2265
|
+
.pire-filterbar-foot {
|
|
2266
|
+
display: flex;
|
|
2267
|
+
align-items: center;
|
|
2268
|
+
gap: var(--sp-2);
|
|
2269
|
+
flex-wrap: wrap;
|
|
2270
|
+
}
|
|
2271
|
+
.pire-filterbar-result {
|
|
2272
|
+
font: var(--type-caption);
|
|
2273
|
+
color: var(--text-secondary);
|
|
2274
|
+
}
|
|
2275
|
+
.pire-filterbar-actions {
|
|
2276
|
+
margin-left: auto;
|
|
2277
|
+
display: flex;
|
|
2278
|
+
gap: var(--sp-2);
|
|
2279
|
+
}
|
|
649
2280
|
|
|
650
2281
|
/* ---- EmptyState ------------------------------------------------------ */
|
|
651
|
-
.pire-empty{
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
2282
|
+
.pire-empty {
|
|
2283
|
+
display: flex;
|
|
2284
|
+
flex-direction: column;
|
|
2285
|
+
align-items: center;
|
|
2286
|
+
gap: var(--sp-3);
|
|
2287
|
+
padding: var(--sp-16) var(--sp-6);
|
|
2288
|
+
text-align: center;
|
|
2289
|
+
color: var(--text-secondary);
|
|
2290
|
+
}
|
|
2291
|
+
.pire-empty[data-compact="true"] {
|
|
2292
|
+
padding: var(--sp-8) var(--sp-4);
|
|
2293
|
+
}
|
|
2294
|
+
.pire-empty-icon {
|
|
2295
|
+
color: var(--text-tertiary);
|
|
2296
|
+
}
|
|
2297
|
+
.pire-empty-title {
|
|
2298
|
+
font: var(--type-h4);
|
|
2299
|
+
color: var(--text-primary);
|
|
2300
|
+
}
|
|
2301
|
+
.pire-empty-body {
|
|
2302
|
+
max-width: 44ch;
|
|
2303
|
+
font: var(--type-body);
|
|
2304
|
+
}
|
|
656
2305
|
|
|
657
2306
|
/* ---- Avatar ----------------------------------------------------------- */
|
|
658
|
-
.pire-avatar[data-size="lg"]{
|
|
659
|
-
|
|
2307
|
+
.pire-avatar[data-size="lg"] {
|
|
2308
|
+
width: 40px;
|
|
2309
|
+
height: 40px;
|
|
2310
|
+
font: var(--type-body-strong);
|
|
2311
|
+
}
|
|
2312
|
+
.pire-avatar[data-size="sm"] {
|
|
2313
|
+
width: 24px;
|
|
2314
|
+
height: 24px;
|
|
2315
|
+
font: var(--type-micro, var(--type-label));
|
|
2316
|
+
}
|
|
660
2317
|
|
|
661
2318
|
/* ---- SegmentedControl -------------------------------------------------- */
|
|
662
|
-
.pire-segmented{
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
2319
|
+
.pire-segmented {
|
|
2320
|
+
display: inline-flex;
|
|
2321
|
+
padding: 2px;
|
|
2322
|
+
gap: 2px;
|
|
2323
|
+
background: var(--surface-sunken);
|
|
2324
|
+
border: 1px solid var(--border-default);
|
|
2325
|
+
border-radius: var(--radius-1);
|
|
2326
|
+
}
|
|
2327
|
+
.pire-segmented-item {
|
|
2328
|
+
display: inline-flex;
|
|
2329
|
+
align-items: center;
|
|
2330
|
+
justify-content: center;
|
|
2331
|
+
gap: var(--sp-2);
|
|
2332
|
+
height: 28px;
|
|
2333
|
+
padding: 0 var(--sp-3);
|
|
2334
|
+
border: 0;
|
|
2335
|
+
border-radius: var(--radius-1);
|
|
2336
|
+
background: transparent;
|
|
2337
|
+
color: var(--text-secondary);
|
|
2338
|
+
font: var(--type-label);
|
|
2339
|
+
cursor: pointer;
|
|
2340
|
+
transition: var(--transition-control);
|
|
2341
|
+
}
|
|
2342
|
+
.pire-segmented[data-size="md"] .pire-segmented-item {
|
|
2343
|
+
height: 34px;
|
|
2344
|
+
font: var(--type-body);
|
|
2345
|
+
}
|
|
2346
|
+
.pire-segmented-item[data-hovered] {
|
|
2347
|
+
background: var(--surface-hover);
|
|
2348
|
+
color: var(--text-primary);
|
|
2349
|
+
}
|
|
2350
|
+
.pire-segmented-item[data-selected] {
|
|
2351
|
+
background: var(--surface-card);
|
|
2352
|
+
color: var(--accent-subtle-fg);
|
|
2353
|
+
box-shadow: var(--shadow-1);
|
|
2354
|
+
}
|
|
2355
|
+
.pire-segmented-item[data-disabled] {
|
|
2356
|
+
color: var(--text-disabled);
|
|
2357
|
+
cursor: not-allowed;
|
|
2358
|
+
}
|
|
668
2359
|
|
|
669
2360
|
/* ---- DescriptionList --------------------------------------------------- */
|
|
670
|
-
.pire-dl{
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
.pire-dl-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
.pire-dl-row
|
|
2361
|
+
.pire-dl {
|
|
2362
|
+
display: flex;
|
|
2363
|
+
flex-direction: column;
|
|
2364
|
+
gap: var(--sp-2);
|
|
2365
|
+
margin: 0;
|
|
2366
|
+
}
|
|
2367
|
+
.pire-dl[data-layout="grid"] {
|
|
2368
|
+
display: grid;
|
|
2369
|
+
grid-template-columns: repeat(var(--pire-dl-cols, 3), minmax(0, 1fr));
|
|
2370
|
+
gap: var(--sp-3) var(--sp-4);
|
|
2371
|
+
}
|
|
2372
|
+
.pire-dl-row {
|
|
2373
|
+
display: flex;
|
|
2374
|
+
justify-content: space-between;
|
|
2375
|
+
gap: var(--sp-3);
|
|
2376
|
+
align-items: baseline;
|
|
2377
|
+
}
|
|
2378
|
+
.pire-dl[data-layout="grid"] .pire-dl-row {
|
|
2379
|
+
display: block;
|
|
2380
|
+
}
|
|
2381
|
+
.pire-dl-term {
|
|
2382
|
+
font: var(--type-caption);
|
|
2383
|
+
color: var(--text-secondary);
|
|
2384
|
+
display: inline-flex;
|
|
2385
|
+
align-items: center;
|
|
2386
|
+
gap: var(--sp-1);
|
|
2387
|
+
}
|
|
2388
|
+
.pire-dl[data-layout="grid"] .pire-dl-term {
|
|
2389
|
+
font: var(--type-label);
|
|
2390
|
+
letter-spacing: var(--ls-caps);
|
|
2391
|
+
text-transform: uppercase;
|
|
2392
|
+
color: var(--text-tertiary);
|
|
2393
|
+
}
|
|
2394
|
+
.pire-dl-value {
|
|
2395
|
+
margin: 0;
|
|
2396
|
+
font: var(--type-body);
|
|
2397
|
+
}
|
|
2398
|
+
.pire-dl-value[data-numeric="true"] {
|
|
2399
|
+
font: var(--type-numeric);
|
|
2400
|
+
font-variant-numeric: tabular-nums;
|
|
2401
|
+
}
|
|
2402
|
+
.pire-dl-row[data-emphasis="true"] {
|
|
2403
|
+
border-top: 1px solid var(--border-default);
|
|
2404
|
+
padding-top: var(--sp-2);
|
|
2405
|
+
}
|
|
2406
|
+
.pire-dl-row[data-emphasis="true"] .pire-dl-term {
|
|
2407
|
+
font: var(--type-body-strong);
|
|
2408
|
+
color: var(--text-primary);
|
|
2409
|
+
}
|
|
2410
|
+
.pire-dl-row[data-emphasis="true"] .pire-dl-value {
|
|
2411
|
+
font: var(--fw-semibold) var(--fs-h4) / 1.3 var(--font-sans);
|
|
2412
|
+
}
|
|
2413
|
+
.pire-dl-row[data-emphasis="true"] .pire-dl-value[data-numeric="true"] {
|
|
2414
|
+
font: var(--fw-semibold) var(--fs-h4) / 1.3 var(--font-mono);
|
|
2415
|
+
}
|
|
682
2416
|
|
|
683
2417
|
/* ---- Timeline ---------------------------------------------------------- */
|
|
684
|
-
.pire-timeline{
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
2418
|
+
.pire-timeline {
|
|
2419
|
+
display: flex;
|
|
2420
|
+
flex-direction: column;
|
|
2421
|
+
margin: 0;
|
|
2422
|
+
padding: 0;
|
|
2423
|
+
list-style: none;
|
|
2424
|
+
}
|
|
2425
|
+
.pire-timeline-item {
|
|
2426
|
+
display: flex;
|
|
2427
|
+
gap: var(--sp-4);
|
|
2428
|
+
align-items: baseline;
|
|
2429
|
+
padding: var(--sp-2) 0;
|
|
2430
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
2431
|
+
}
|
|
2432
|
+
.pire-timeline-item:last-child {
|
|
2433
|
+
border-bottom: 0;
|
|
2434
|
+
}
|
|
2435
|
+
.pire-timeline-time {
|
|
2436
|
+
flex: 0 0 auto;
|
|
2437
|
+
width: 132px;
|
|
2438
|
+
font: var(--type-code);
|
|
2439
|
+
color: var(--text-secondary);
|
|
2440
|
+
}
|
|
2441
|
+
.pire-timeline-text {
|
|
2442
|
+
flex: 1;
|
|
2443
|
+
font: var(--type-body);
|
|
2444
|
+
}
|
|
2445
|
+
.pire-timeline-actor {
|
|
2446
|
+
font: var(--type-caption);
|
|
2447
|
+
color: var(--text-secondary);
|
|
2448
|
+
}
|
|
690
2449
|
|
|
691
2450
|
/* ---- LinkList ---------------------------------------------------------- */
|
|
692
|
-
.pire-linklist{
|
|
2451
|
+
.pire-linklist {
|
|
2452
|
+
display: flex;
|
|
2453
|
+
flex-direction: column;
|
|
2454
|
+
}
|
|
693
2455
|
/* The role="listitem" wrapper that satisfies aria-required-children. It lays out rather than
|
|
694
2456
|
disappearing: display:contents would drop it from the accessibility tree in some engines, which
|
|
695
2457
|
is the one thing it exists to be in. */
|
|
696
|
-
.pire-linklist-row{
|
|
697
|
-
|
|
2458
|
+
.pire-linklist-row {
|
|
2459
|
+
display: flex;
|
|
2460
|
+
}
|
|
2461
|
+
.pire-linklist-item {
|
|
2462
|
+
display: flex;
|
|
2463
|
+
align-items: center;
|
|
2464
|
+
gap: var(--sp-2);
|
|
2465
|
+
width: 100%;
|
|
2466
|
+
height: var(--row-h-regular);
|
|
2467
|
+
padding: 0 var(--sp-1);
|
|
2468
|
+
border: 0;
|
|
2469
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
2470
|
+
background: transparent;
|
|
2471
|
+
text-align: left;
|
|
2472
|
+
cursor: pointer;
|
|
2473
|
+
color: var(--text-primary);
|
|
2474
|
+
transition: var(--transition-control);
|
|
2475
|
+
}
|
|
698
2476
|
/* The button is no longer its parent's last child — the wrapper is. */
|
|
699
|
-
.pire-linklist-row:last-child .pire-linklist-item{
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
.pire-linklist-
|
|
2477
|
+
.pire-linklist-row:last-child .pire-linklist-item {
|
|
2478
|
+
border-bottom: 0;
|
|
2479
|
+
}
|
|
2480
|
+
.pire-linklist-item[data-hovered] {
|
|
2481
|
+
background: var(--surface-hover);
|
|
2482
|
+
}
|
|
2483
|
+
.pire-linklist-key {
|
|
2484
|
+
font: var(--type-code);
|
|
2485
|
+
}
|
|
2486
|
+
.pire-linklist-text {
|
|
2487
|
+
flex: 1;
|
|
2488
|
+
min-width: 0;
|
|
2489
|
+
font: var(--type-caption);
|
|
2490
|
+
color: var(--text-secondary);
|
|
2491
|
+
overflow: hidden;
|
|
2492
|
+
text-overflow: ellipsis;
|
|
2493
|
+
white-space: nowrap;
|
|
2494
|
+
}
|
|
703
2495
|
/* emphasis="text": the name is what gets scanned and the code qualifies it — a supplier or
|
|
704
2496
|
customer list. Only the treatment moves; the slots keep their meanings, and the component
|
|
705
2497
|
reorders the markup so the reading order matches. The name takes over the truncation, because
|
|
706
2498
|
whichever slot is primary is the one that should absorb a narrow row. */
|
|
707
|
-
.pire-linklist[data-emphasis="text"] .pire-linklist-text{
|
|
708
|
-
|
|
2499
|
+
.pire-linklist[data-emphasis="text"] .pire-linklist-text {
|
|
2500
|
+
flex: 1;
|
|
2501
|
+
font: var(--type-body);
|
|
2502
|
+
color: var(--text-primary);
|
|
2503
|
+
}
|
|
2504
|
+
.pire-linklist[data-emphasis="text"] .pire-linklist-key {
|
|
2505
|
+
flex: 0 0 auto;
|
|
2506
|
+
font: var(--type-caption);
|
|
2507
|
+
color: var(--text-secondary);
|
|
2508
|
+
}
|
|
709
2509
|
|
|
710
2510
|
/* ---- PageHeader / SectionHeader ---------------------------------------- */
|
|
711
|
-
.pire-pageheader{
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
2511
|
+
.pire-pageheader {
|
|
2512
|
+
display: flex;
|
|
2513
|
+
align-items: flex-start;
|
|
2514
|
+
gap: var(--sp-4);
|
|
2515
|
+
flex-wrap: wrap;
|
|
2516
|
+
}
|
|
2517
|
+
.pire-pageheader-title {
|
|
2518
|
+
font: var(--type-h1);
|
|
2519
|
+
letter-spacing: var(--ls-heading);
|
|
2520
|
+
margin: 0;
|
|
2521
|
+
}
|
|
2522
|
+
.pire-pageheader-sub {
|
|
2523
|
+
margin: var(--sp-1) 0 0;
|
|
2524
|
+
font: var(--type-body);
|
|
2525
|
+
color: var(--text-secondary);
|
|
2526
|
+
max-width: 80ch;
|
|
2527
|
+
}
|
|
2528
|
+
.pire-pageheader-actions {
|
|
2529
|
+
margin-left: auto;
|
|
2530
|
+
display: flex;
|
|
2531
|
+
gap: var(--sp-2);
|
|
2532
|
+
}
|
|
2533
|
+
.pire-sectionhead {
|
|
2534
|
+
display: flex;
|
|
2535
|
+
align-items: baseline;
|
|
2536
|
+
gap: var(--sp-3);
|
|
2537
|
+
}
|
|
2538
|
+
.pire-sectionhead-actions {
|
|
2539
|
+
margin-left: auto;
|
|
2540
|
+
display: flex;
|
|
2541
|
+
align-items: baseline;
|
|
2542
|
+
gap: var(--sp-2);
|
|
2543
|
+
}
|
|
717
2544
|
|
|
718
2545
|
/* ---- SelectionBar / FooterBar ------------------------------------------ */
|
|
719
|
-
.pire-selectionbar{
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
2546
|
+
.pire-selectionbar {
|
|
2547
|
+
display: flex;
|
|
2548
|
+
align-items: center;
|
|
2549
|
+
gap: var(--sp-3);
|
|
2550
|
+
padding: var(--sp-2) var(--sp-3);
|
|
2551
|
+
background: var(--surface-selected);
|
|
2552
|
+
border: 1px solid var(--status-informative-border);
|
|
2553
|
+
border-radius: var(--radius-1);
|
|
2554
|
+
font: var(--type-body);
|
|
2555
|
+
}
|
|
2556
|
+
.pire-selectionbar-count {
|
|
2557
|
+
font: var(--type-body-strong);
|
|
2558
|
+
color: var(--accent-subtle-fg);
|
|
2559
|
+
}
|
|
2560
|
+
.pire-selectionbar-actions {
|
|
2561
|
+
margin-left: auto;
|
|
2562
|
+
display: flex;
|
|
2563
|
+
gap: var(--sp-2);
|
|
2564
|
+
}
|
|
2565
|
+
.pire-footerbar {
|
|
2566
|
+
position: sticky;
|
|
2567
|
+
bottom: 0;
|
|
2568
|
+
z-index: 50;
|
|
2569
|
+
display: flex;
|
|
2570
|
+
align-items: center;
|
|
2571
|
+
gap: var(--sp-3);
|
|
2572
|
+
height: var(--control-h-lg);
|
|
2573
|
+
padding: 0 var(--page-pad-x);
|
|
2574
|
+
background: var(--surface-card);
|
|
2575
|
+
border-top: 1px solid var(--border-subtle);
|
|
2576
|
+
box-shadow: 0 -1px 2px rgba(13, 19, 25, 0.08);
|
|
2577
|
+
}
|
|
2578
|
+
.pire-footerbar-actions {
|
|
2579
|
+
margin-left: auto;
|
|
2580
|
+
display: flex;
|
|
2581
|
+
gap: var(--sp-2);
|
|
2582
|
+
}
|
|
2583
|
+
.pire-footerbar-note {
|
|
2584
|
+
font: var(--type-caption);
|
|
2585
|
+
color: var(--text-secondary);
|
|
2586
|
+
}
|
|
725
2587
|
|
|
726
2588
|
/* ---- NumberField ------------------------------------------------------- */
|
|
727
|
-
.pire-stepper{
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
2589
|
+
.pire-stepper {
|
|
2590
|
+
display: flex;
|
|
2591
|
+
flex-direction: column;
|
|
2592
|
+
flex: 0 0 auto;
|
|
2593
|
+
margin-right: calc(var(--control-pad-x) * -1 + 2px);
|
|
2594
|
+
}
|
|
2595
|
+
.pire-stepper-btn {
|
|
2596
|
+
display: flex;
|
|
2597
|
+
align-items: center;
|
|
2598
|
+
justify-content: center;
|
|
2599
|
+
width: 24px;
|
|
2600
|
+
height: 14px;
|
|
2601
|
+
border: 0;
|
|
2602
|
+
background: transparent;
|
|
2603
|
+
color: var(--text-secondary);
|
|
2604
|
+
cursor: pointer;
|
|
2605
|
+
border-radius: var(--radius-1);
|
|
2606
|
+
}
|
|
2607
|
+
.pire-stepper-btn[data-hovered] {
|
|
2608
|
+
background: var(--surface-hover);
|
|
2609
|
+
color: var(--text-primary);
|
|
2610
|
+
}
|
|
2611
|
+
.pire-stepper-btn[data-disabled] {
|
|
2612
|
+
color: var(--text-disabled);
|
|
2613
|
+
cursor: not-allowed;
|
|
2614
|
+
}
|
|
731
2615
|
|
|
732
2616
|
/* ---- QuantityStepper ------------------------------------------------------
|
|
733
2617
|
NumberField's inline layout. 32px buttons, not the 24x14 of `.pire-stepper-btn`: this is the
|
|
734
2618
|
one field whose user is wearing gloves, and WCAG 2.2 SC 2.5.8 asks 24x24 that axe cannot
|
|
735
2619
|
check — `target-size` is off by default in axe-core, so the size is asserted in the
|
|
736
2620
|
component's own test instead. */
|
|
737
|
-
.pire-control[data-stepper="inline"]{
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
.pire-
|
|
742
|
-
|
|
743
|
-
|
|
2621
|
+
.pire-control[data-stepper="inline"] {
|
|
2622
|
+
gap: var(--sp-1);
|
|
2623
|
+
padding-inline: var(--sp-1);
|
|
2624
|
+
}
|
|
2625
|
+
.pire-control[data-stepper="inline"] .pire-input {
|
|
2626
|
+
text-align: center;
|
|
2627
|
+
}
|
|
2628
|
+
.pire-qty-btn {
|
|
2629
|
+
display: inline-flex;
|
|
2630
|
+
align-items: center;
|
|
2631
|
+
justify-content: center;
|
|
2632
|
+
width: var(--sp-8);
|
|
2633
|
+
height: var(--sp-8);
|
|
2634
|
+
flex-shrink: 0;
|
|
2635
|
+
border: 1px solid var(--border-default);
|
|
2636
|
+
border-radius: var(--radius-1);
|
|
2637
|
+
background: var(--surface-card);
|
|
2638
|
+
color: var(--text-primary);
|
|
2639
|
+
cursor: pointer;
|
|
2640
|
+
outline: none;
|
|
2641
|
+
transition: var(--transition-control);
|
|
2642
|
+
}
|
|
2643
|
+
.pire-qty-btn[data-hovered] {
|
|
2644
|
+
background: var(--surface-hover);
|
|
2645
|
+
}
|
|
2646
|
+
.pire-qty-btn[data-pressed] {
|
|
2647
|
+
background: var(--surface-active);
|
|
2648
|
+
}
|
|
2649
|
+
.pire-qty-btn[data-focus-visible] {
|
|
2650
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
2651
|
+
outline-offset: var(--focus-offset);
|
|
2652
|
+
}
|
|
2653
|
+
.pire-qty-btn[data-disabled] {
|
|
2654
|
+
color: var(--text-disabled);
|
|
2655
|
+
background: var(--surface-disabled);
|
|
2656
|
+
cursor: default;
|
|
2657
|
+
}
|
|
744
2658
|
|
|
745
2659
|
/* ---- DatePicker / Calendar --------------------------------------------- */
|
|
746
|
-
.pire-datefield{
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
.pire-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
.pire-
|
|
761
|
-
|
|
762
|
-
|
|
2660
|
+
.pire-datefield {
|
|
2661
|
+
display: flex;
|
|
2662
|
+
align-items: center;
|
|
2663
|
+
flex: 1;
|
|
2664
|
+
min-width: 0;
|
|
2665
|
+
font: var(--type-numeric);
|
|
2666
|
+
font-variant-numeric: tabular-nums;
|
|
2667
|
+
}
|
|
2668
|
+
.pire-datesegment {
|
|
2669
|
+
padding: 0 1px;
|
|
2670
|
+
border-radius: 2px;
|
|
2671
|
+
outline: none;
|
|
2672
|
+
color: var(--text-primary);
|
|
2673
|
+
}
|
|
2674
|
+
.pire-datesegment[data-type="literal"] {
|
|
2675
|
+
color: var(--text-tertiary);
|
|
2676
|
+
}
|
|
2677
|
+
.pire-datesegment[data-placeholder] {
|
|
2678
|
+
color: var(--text-tertiary);
|
|
2679
|
+
}
|
|
2680
|
+
.pire-datesegment[data-focused] {
|
|
2681
|
+
background: var(--accent-bg);
|
|
2682
|
+
color: var(--accent-fg);
|
|
2683
|
+
}
|
|
2684
|
+
.pire-calendar {
|
|
2685
|
+
padding: var(--sp-3);
|
|
2686
|
+
display: flex;
|
|
2687
|
+
flex-direction: column;
|
|
2688
|
+
gap: var(--sp-2);
|
|
2689
|
+
}
|
|
2690
|
+
.pire-calendar-head {
|
|
2691
|
+
display: flex;
|
|
2692
|
+
align-items: center;
|
|
2693
|
+
gap: var(--sp-2);
|
|
2694
|
+
}
|
|
2695
|
+
.pire-calendar-title {
|
|
2696
|
+
flex: 1;
|
|
2697
|
+
text-align: center;
|
|
2698
|
+
font: var(--type-body-strong);
|
|
2699
|
+
}
|
|
2700
|
+
.pire-calendar-grid {
|
|
2701
|
+
border-collapse: collapse;
|
|
2702
|
+
}
|
|
2703
|
+
.pire-calendar-grid th {
|
|
2704
|
+
width: 32px;
|
|
2705
|
+
height: 24px;
|
|
2706
|
+
font: var(--type-label);
|
|
2707
|
+
color: var(--text-tertiary);
|
|
2708
|
+
font-weight: var(--fw-medium);
|
|
2709
|
+
}
|
|
2710
|
+
.pire-calendar-cell {
|
|
2711
|
+
width: 32px;
|
|
2712
|
+
height: 32px;
|
|
2713
|
+
text-align: center;
|
|
2714
|
+
vertical-align: middle;
|
|
2715
|
+
font: var(--type-numeric);
|
|
2716
|
+
border-radius: var(--radius-1);
|
|
2717
|
+
cursor: pointer;
|
|
2718
|
+
outline: none;
|
|
2719
|
+
color: var(--text-primary);
|
|
2720
|
+
}
|
|
2721
|
+
.pire-calendar-cell[data-outside-month] {
|
|
2722
|
+
visibility: hidden;
|
|
2723
|
+
}
|
|
2724
|
+
.pire-calendar-cell[data-hovered] {
|
|
2725
|
+
background: var(--surface-hover);
|
|
2726
|
+
}
|
|
2727
|
+
.pire-calendar-cell[data-selected] {
|
|
2728
|
+
background: var(--accent-bg);
|
|
2729
|
+
color: var(--accent-fg);
|
|
2730
|
+
}
|
|
2731
|
+
.pire-calendar-cell[data-today]::after {
|
|
2732
|
+
content: "";
|
|
2733
|
+
display: block;
|
|
2734
|
+
width: 4px;
|
|
2735
|
+
height: 2px;
|
|
2736
|
+
margin: -4px auto 0;
|
|
2737
|
+
background: currentColor;
|
|
2738
|
+
}
|
|
2739
|
+
.pire-calendar-cell[data-disabled],
|
|
2740
|
+
.pire-calendar-cell[data-unavailable] {
|
|
2741
|
+
color: var(--text-disabled);
|
|
2742
|
+
cursor: not-allowed;
|
|
2743
|
+
text-decoration: line-through;
|
|
2744
|
+
}
|
|
2745
|
+
.pire-calendar-cell[data-focus-visible] {
|
|
2746
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
2747
|
+
outline-offset: -1px;
|
|
2748
|
+
}
|
|
763
2749
|
|
|
764
2750
|
/* ---- Text / Strong ------------------------------------------------------ */
|
|
765
|
-
.pire-text{
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
.pire-text[data-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
.pire-text[data-
|
|
775
|
-
|
|
2751
|
+
.pire-text {
|
|
2752
|
+
margin: 0;
|
|
2753
|
+
font: var(--type-body);
|
|
2754
|
+
letter-spacing: var(--ls-body);
|
|
2755
|
+
color: var(--text-primary);
|
|
2756
|
+
}
|
|
2757
|
+
.pire-text[data-size="body-lg"] {
|
|
2758
|
+
font: var(--type-body-lg);
|
|
2759
|
+
}
|
|
2760
|
+
.pire-text[data-size="caption"] {
|
|
2761
|
+
font: var(--type-caption);
|
|
2762
|
+
}
|
|
2763
|
+
.pire-text[data-size="micro"] {
|
|
2764
|
+
font: var(--type-micro);
|
|
2765
|
+
}
|
|
2766
|
+
.pire-text[data-weight="strong"] {
|
|
2767
|
+
font-weight: var(--fw-semibold);
|
|
2768
|
+
}
|
|
2769
|
+
.pire-text[data-color="secondary"] {
|
|
2770
|
+
color: var(--text-secondary);
|
|
2771
|
+
}
|
|
2772
|
+
.pire-text[data-color="tertiary"] {
|
|
2773
|
+
color: var(--text-tertiary);
|
|
2774
|
+
}
|
|
2775
|
+
.pire-text[data-color="disabled"] {
|
|
2776
|
+
color: var(--text-disabled);
|
|
2777
|
+
}
|
|
2778
|
+
.pire-text[data-color="inverse"] {
|
|
2779
|
+
color: var(--text-inverse);
|
|
2780
|
+
}
|
|
2781
|
+
.pire-text[data-numeric="true"] {
|
|
2782
|
+
font: var(--type-numeric);
|
|
2783
|
+
letter-spacing: var(--ls-numeric);
|
|
2784
|
+
font-variant-numeric: tabular-nums;
|
|
2785
|
+
}
|
|
2786
|
+
.pire-text[data-eyebrow="true"] {
|
|
2787
|
+
font: var(--type-label);
|
|
2788
|
+
letter-spacing: var(--ls-caps);
|
|
2789
|
+
text-transform: uppercase;
|
|
2790
|
+
color: var(--text-secondary);
|
|
2791
|
+
}
|
|
776
2792
|
/* Shared clamp for Text and Heading; `--pire-text-clamp` carries the line count. */
|
|
777
|
-
.pire-text[data-truncate="true"]
|
|
2793
|
+
.pire-text[data-truncate="true"],
|
|
2794
|
+
.pire-heading[data-truncate="true"] {
|
|
2795
|
+
display: -webkit-box;
|
|
2796
|
+
-webkit-box-orient: vertical;
|
|
2797
|
+
-webkit-line-clamp: var(--pire-text-clamp, 1);
|
|
2798
|
+
line-clamp: var(--pire-text-clamp, 1);
|
|
2799
|
+
overflow: hidden;
|
|
2800
|
+
}
|
|
778
2801
|
|
|
779
2802
|
/* ---- Heading ------------------------------------------------------------ */
|
|
780
|
-
.pire-heading{
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
.pire-heading[data-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
2803
|
+
.pire-heading {
|
|
2804
|
+
margin: 0;
|
|
2805
|
+
font: var(--type-h2);
|
|
2806
|
+
letter-spacing: var(--ls-heading);
|
|
2807
|
+
color: var(--text-primary);
|
|
2808
|
+
}
|
|
2809
|
+
.pire-heading[data-size="display"] {
|
|
2810
|
+
font: var(--type-display);
|
|
2811
|
+
letter-spacing: var(--ls-display);
|
|
2812
|
+
}
|
|
2813
|
+
.pire-heading[data-size="h1"] {
|
|
2814
|
+
font: var(--type-h1);
|
|
2815
|
+
}
|
|
2816
|
+
.pire-heading[data-size="h2"] {
|
|
2817
|
+
font: var(--type-h2);
|
|
2818
|
+
}
|
|
2819
|
+
.pire-heading[data-size="h3"] {
|
|
2820
|
+
font: var(--type-h3);
|
|
2821
|
+
}
|
|
2822
|
+
.pire-heading[data-size="h4"] {
|
|
2823
|
+
font: var(--type-h4);
|
|
2824
|
+
}
|
|
2825
|
+
.pire-heading[data-color="secondary"] {
|
|
2826
|
+
color: var(--text-secondary);
|
|
2827
|
+
}
|
|
2828
|
+
.pire-heading[data-color="tertiary"] {
|
|
2829
|
+
color: var(--text-tertiary);
|
|
2830
|
+
}
|
|
2831
|
+
.pire-heading[data-color="disabled"] {
|
|
2832
|
+
color: var(--text-disabled);
|
|
2833
|
+
}
|
|
2834
|
+
.pire-heading[data-color="inverse"] {
|
|
2835
|
+
color: var(--text-inverse);
|
|
2836
|
+
}
|
|
790
2837
|
|
|
791
2838
|
/* ---- Link --------------------------------------------------------------- */
|
|
792
|
-
.pire-link{
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
2839
|
+
.pire-link {
|
|
2840
|
+
display: inline-flex;
|
|
2841
|
+
align-items: baseline;
|
|
2842
|
+
gap: var(--sp-1);
|
|
2843
|
+
color: var(--text-link);
|
|
2844
|
+
text-decoration: underline;
|
|
2845
|
+
text-underline-offset: 2px;
|
|
2846
|
+
cursor: pointer;
|
|
2847
|
+
transition: var(--transition-control);
|
|
2848
|
+
}
|
|
2849
|
+
.pire-link[data-size="body-lg"] {
|
|
2850
|
+
font: var(--type-body-lg);
|
|
2851
|
+
}
|
|
2852
|
+
.pire-link[data-size="body"] {
|
|
2853
|
+
font: var(--type-body);
|
|
2854
|
+
}
|
|
2855
|
+
.pire-link[data-size="caption"] {
|
|
2856
|
+
font: var(--type-caption);
|
|
2857
|
+
}
|
|
2858
|
+
.pire-link[data-size="micro"] {
|
|
2859
|
+
font: var(--type-micro);
|
|
2860
|
+
}
|
|
2861
|
+
.pire-link[data-hovered] {
|
|
2862
|
+
color: var(--text-link-hover);
|
|
2863
|
+
}
|
|
2864
|
+
.pire-link[data-disabled] {
|
|
2865
|
+
color: var(--text-disabled);
|
|
2866
|
+
text-decoration: none;
|
|
2867
|
+
cursor: not-allowed;
|
|
2868
|
+
}
|
|
2869
|
+
.pire-link[data-focus-visible] {
|
|
2870
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
2871
|
+
outline-offset: var(--focus-offset);
|
|
2872
|
+
border-radius: var(--radius-1);
|
|
2873
|
+
}
|
|
2874
|
+
.pire-link-external {
|
|
2875
|
+
flex: 0 0 auto;
|
|
2876
|
+
align-self: center;
|
|
2877
|
+
}
|
|
801
2878
|
|
|
802
2879
|
/* ---- Separator ---------------------------------------------------------- */
|
|
803
|
-
.pire-separator{
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
.pire-separator[data-
|
|
809
|
-
|
|
810
|
-
|
|
2880
|
+
.pire-separator {
|
|
2881
|
+
border: 0;
|
|
2882
|
+
border-top: var(--border-w-hairline) solid var(--border-default);
|
|
2883
|
+
margin: var(--sp-4) 0;
|
|
2884
|
+
}
|
|
2885
|
+
.pire-separator[data-emphasis="subtle"] {
|
|
2886
|
+
border-color: var(--border-subtle);
|
|
2887
|
+
}
|
|
2888
|
+
.pire-separator[data-spacing="none"] {
|
|
2889
|
+
margin: 0;
|
|
2890
|
+
}
|
|
2891
|
+
.pire-separator[data-spacing="sm"] {
|
|
2892
|
+
margin: var(--sp-2) 0;
|
|
2893
|
+
}
|
|
2894
|
+
.pire-separator[data-orientation="vertical"] {
|
|
2895
|
+
border-top: 0;
|
|
2896
|
+
border-left: var(--border-w-hairline) solid var(--border-default);
|
|
2897
|
+
align-self: stretch;
|
|
2898
|
+
margin: 0 var(--sp-3);
|
|
2899
|
+
}
|
|
2900
|
+
.pire-separator[data-orientation="vertical"][data-emphasis="subtle"] {
|
|
2901
|
+
border-color: var(--border-subtle);
|
|
2902
|
+
}
|
|
2903
|
+
.pire-separator[data-orientation="vertical"][data-spacing="none"] {
|
|
2904
|
+
margin: 0;
|
|
2905
|
+
}
|
|
2906
|
+
.pire-separator[data-orientation="vertical"][data-spacing="sm"] {
|
|
2907
|
+
margin: 0 var(--sp-2);
|
|
2908
|
+
}
|
|
811
2909
|
|
|
812
2910
|
/* ---- Menu --------------------------------------------------------------- */
|
|
813
2911
|
/* Its own surface, not .pire-popover: that sizes from --trigger-width, which is wrong for a
|
|
814
2912
|
menu hung off a 32px IconButton. Here the content sets the width. */
|
|
815
|
-
.pire-menu{
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
.pire-menu-item
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
2913
|
+
.pire-menu {
|
|
2914
|
+
outline: none;
|
|
2915
|
+
padding: var(--sp-1) 0;
|
|
2916
|
+
min-width: var(--pire-menu-min-w, 180px);
|
|
2917
|
+
max-width: calc(100vw - 24px);
|
|
2918
|
+
display: flex;
|
|
2919
|
+
flex-direction: column;
|
|
2920
|
+
}
|
|
2921
|
+
.pire-menu-item {
|
|
2922
|
+
display: flex;
|
|
2923
|
+
align-items: flex-start;
|
|
2924
|
+
gap: var(--sp-2);
|
|
2925
|
+
min-height: var(--row-h-condensed);
|
|
2926
|
+
padding: var(--sp-1) var(--sp-3);
|
|
2927
|
+
font: var(--type-body);
|
|
2928
|
+
color: var(--text-primary);
|
|
2929
|
+
cursor: pointer;
|
|
2930
|
+
outline: none;
|
|
2931
|
+
text-decoration: none;
|
|
2932
|
+
}
|
|
2933
|
+
.pire-menu-item[data-focused] {
|
|
2934
|
+
background: var(--surface-hover);
|
|
2935
|
+
}
|
|
2936
|
+
.pire-menu-item[data-disabled] {
|
|
2937
|
+
color: var(--text-disabled);
|
|
2938
|
+
cursor: not-allowed;
|
|
2939
|
+
}
|
|
2940
|
+
.pire-menu-item[data-tone="danger"] {
|
|
2941
|
+
color: var(--status-negative-fg);
|
|
2942
|
+
}
|
|
2943
|
+
.pire-menu-item[data-tone="danger"][data-focused] {
|
|
2944
|
+
background: var(--status-negative-bg);
|
|
2945
|
+
}
|
|
2946
|
+
.pire-menu-item-icon {
|
|
2947
|
+
flex: 0 0 auto;
|
|
2948
|
+
margin-top: 2px;
|
|
2949
|
+
color: var(--text-secondary);
|
|
2950
|
+
}
|
|
2951
|
+
.pire-menu-item[data-tone="danger"] .pire-menu-item-icon {
|
|
2952
|
+
color: inherit;
|
|
2953
|
+
}
|
|
2954
|
+
.pire-menu-item-body {
|
|
2955
|
+
flex: 1;
|
|
2956
|
+
min-width: 0;
|
|
2957
|
+
display: flex;
|
|
2958
|
+
flex-direction: column;
|
|
2959
|
+
}
|
|
2960
|
+
.pire-menu-item-label {
|
|
2961
|
+
overflow: hidden;
|
|
2962
|
+
text-overflow: ellipsis;
|
|
2963
|
+
white-space: nowrap;
|
|
2964
|
+
}
|
|
2965
|
+
.pire-menu-item-desc {
|
|
2966
|
+
font: var(--type-caption);
|
|
2967
|
+
color: var(--text-secondary);
|
|
2968
|
+
}
|
|
2969
|
+
.pire-menu-item[data-disabled] .pire-menu-item-desc {
|
|
2970
|
+
color: var(--text-disabled);
|
|
2971
|
+
}
|
|
827
2972
|
/* A row of Kbd caps rather than a run of mono text, so a shortcut is drawn the same way
|
|
828
2973
|
everywhere — including beside the command palette's key hints, in the same panel. */
|
|
829
|
-
.pire-menu-item-shortcut{
|
|
830
|
-
|
|
831
|
-
|
|
2974
|
+
.pire-menu-item-shortcut {
|
|
2975
|
+
flex: 0 0 auto;
|
|
2976
|
+
align-self: center;
|
|
2977
|
+
display: flex;
|
|
2978
|
+
align-items: center;
|
|
2979
|
+
gap: 2px;
|
|
2980
|
+
}
|
|
2981
|
+
.pire-menu-section-title {
|
|
2982
|
+
display: block;
|
|
2983
|
+
padding: var(--sp-1) var(--sp-3);
|
|
2984
|
+
font: var(--type-label);
|
|
2985
|
+
letter-spacing: var(--ls-caps);
|
|
2986
|
+
text-transform: uppercase;
|
|
2987
|
+
color: var(--text-secondary);
|
|
2988
|
+
}
|
|
2989
|
+
.pire-menu-separator {
|
|
2990
|
+
border: 0;
|
|
2991
|
+
border-top: var(--border-w-hairline) solid var(--border-subtle);
|
|
2992
|
+
margin: var(--sp-1) 0;
|
|
2993
|
+
}
|
|
832
2994
|
|
|
833
2995
|
/* ---- DateRangePicker ------------------------------------------------------ */
|
|
834
|
-
.pire-daterange-control{
|
|
835
|
-
|
|
2996
|
+
.pire-daterange-control {
|
|
2997
|
+
gap: var(--sp-1);
|
|
2998
|
+
}
|
|
2999
|
+
.pire-daterange-dash {
|
|
3000
|
+
color: var(--text-tertiary);
|
|
3001
|
+
flex: 0 0 auto;
|
|
3002
|
+
}
|
|
836
3003
|
/* Presets sit beside the calendar, and before it in the DOM so the keyboard reaches a shortcut
|
|
837
3004
|
without arrowing through a month first. */
|
|
838
|
-
.pire-daterange-dialog{
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
.pire-daterange-
|
|
3005
|
+
.pire-daterange-dialog {
|
|
3006
|
+
display: flex;
|
|
3007
|
+
align-items: stretch;
|
|
3008
|
+
}
|
|
3009
|
+
.pire-daterange-presets {
|
|
3010
|
+
display: flex;
|
|
3011
|
+
flex-direction: column;
|
|
3012
|
+
gap: var(--sp-0h);
|
|
3013
|
+
padding: var(--sp-2);
|
|
3014
|
+
border-right: 1px solid var(--border-subtle);
|
|
3015
|
+
min-width: 140px;
|
|
3016
|
+
}
|
|
3017
|
+
.pire-daterange-preset {
|
|
3018
|
+
display: flex;
|
|
3019
|
+
align-items: center;
|
|
3020
|
+
min-height: var(--row-h-condensed);
|
|
3021
|
+
padding: 0 var(--sp-2);
|
|
3022
|
+
border: 0;
|
|
3023
|
+
border-radius: var(--radius-1);
|
|
3024
|
+
background: transparent;
|
|
3025
|
+
color: var(--text-primary);
|
|
3026
|
+
font: var(--type-body);
|
|
3027
|
+
text-align: left;
|
|
3028
|
+
cursor: pointer;
|
|
3029
|
+
}
|
|
3030
|
+
.pire-daterange-preset[data-hovered] {
|
|
3031
|
+
background: var(--surface-hover);
|
|
3032
|
+
}
|
|
3033
|
+
.pire-daterange-preset[data-focus-visible] {
|
|
3034
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
3035
|
+
outline-offset: calc(var(--focus-offset) * -1);
|
|
3036
|
+
}
|
|
843
3037
|
/* Range highlighting comes off the data attributes React Aria puts on each cell. The two ends
|
|
844
3038
|
carry the accent; the span between them uses the subtle pair so the ends stay legible as ends. */
|
|
845
|
-
.pire-calendar-cell[data-selected]{
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
3039
|
+
.pire-calendar-cell[data-selected] {
|
|
3040
|
+
background: var(--accent-subtle-bg);
|
|
3041
|
+
color: var(--accent-subtle-fg);
|
|
3042
|
+
border-radius: 0;
|
|
3043
|
+
}
|
|
3044
|
+
.pire-calendar-cell[data-selection-start] {
|
|
3045
|
+
background: var(--accent-bg);
|
|
3046
|
+
color: var(--text-on-accent);
|
|
3047
|
+
border-radius: var(--radius-1) 0 0 var(--radius-1);
|
|
3048
|
+
}
|
|
3049
|
+
.pire-calendar-cell[data-selection-end] {
|
|
3050
|
+
background: var(--accent-bg);
|
|
3051
|
+
color: var(--text-on-accent);
|
|
3052
|
+
border-radius: 0 var(--radius-1) var(--radius-1) 0;
|
|
3053
|
+
}
|
|
3054
|
+
.pire-calendar-cell[data-selection-start][data-selection-end] {
|
|
3055
|
+
border-radius: var(--radius-1);
|
|
3056
|
+
}
|
|
3057
|
+
.pire-calendar-cell[data-outside-visible-range] {
|
|
3058
|
+
visibility: hidden;
|
|
3059
|
+
}
|
|
850
3060
|
|
|
851
3061
|
/* ---- FileUpload / FileDropZone ------------------------------------------- */
|
|
852
|
-
.pire-fileupload-list{
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
3062
|
+
.pire-fileupload-list {
|
|
3063
|
+
list-style: none;
|
|
3064
|
+
margin: 0;
|
|
3065
|
+
padding: 0;
|
|
3066
|
+
display: flex;
|
|
3067
|
+
flex-direction: column;
|
|
3068
|
+
gap: var(--sp-1);
|
|
3069
|
+
}
|
|
3070
|
+
.pire-fileupload-item {
|
|
3071
|
+
display: flex;
|
|
3072
|
+
align-items: center;
|
|
3073
|
+
gap: var(--sp-2);
|
|
3074
|
+
min-height: var(--row-h-condensed);
|
|
3075
|
+
padding: 0 var(--sp-2);
|
|
3076
|
+
border: 1px solid var(--border-subtle);
|
|
3077
|
+
border-radius: var(--radius-1);
|
|
3078
|
+
background: var(--surface-card);
|
|
3079
|
+
}
|
|
3080
|
+
.pire-fileupload-icon {
|
|
3081
|
+
flex: 0 0 auto;
|
|
3082
|
+
color: var(--text-secondary);
|
|
3083
|
+
}
|
|
3084
|
+
.pire-fileupload-thumb {
|
|
3085
|
+
flex: 0 0 auto;
|
|
3086
|
+
width: 24px;
|
|
3087
|
+
height: 24px;
|
|
3088
|
+
object-fit: cover;
|
|
3089
|
+
border-radius: var(--radius-1);
|
|
3090
|
+
}
|
|
3091
|
+
.pire-fileupload-name {
|
|
3092
|
+
flex: 1;
|
|
3093
|
+
min-width: 0;
|
|
3094
|
+
overflow: hidden;
|
|
3095
|
+
text-overflow: ellipsis;
|
|
3096
|
+
white-space: nowrap;
|
|
3097
|
+
font: var(--type-body);
|
|
3098
|
+
}
|
|
3099
|
+
.pire-fileupload-size {
|
|
3100
|
+
flex: 0 0 auto;
|
|
3101
|
+
font: var(--type-caption);
|
|
3102
|
+
color: var(--text-secondary);
|
|
3103
|
+
font-variant-numeric: tabular-nums;
|
|
3104
|
+
}
|
|
3105
|
+
.pire-dropzone {
|
|
3106
|
+
display: flex;
|
|
3107
|
+
flex-direction: column;
|
|
3108
|
+
align-items: center;
|
|
3109
|
+
justify-content: center;
|
|
3110
|
+
gap: var(--sp-2);
|
|
3111
|
+
padding: var(--sp-6);
|
|
3112
|
+
border: 1px dashed var(--border-default);
|
|
3113
|
+
border-radius: var(--radius-2);
|
|
3114
|
+
background: var(--surface-sunken);
|
|
3115
|
+
color: var(--text-secondary);
|
|
3116
|
+
text-align: center;
|
|
3117
|
+
transition: var(--transition-surface);
|
|
3118
|
+
}
|
|
3119
|
+
.pire-dropzone[data-height="compact"] {
|
|
3120
|
+
padding: var(--sp-4);
|
|
3121
|
+
}
|
|
860
3122
|
/* React Aria sets data-drop-target while a drag hovers, and data-focus-visible on keyboard
|
|
861
3123
|
focus — the zone is a real drop target, so both states have to read as active. */
|
|
862
|
-
.pire-dropzone[data-drop-target]{
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
3124
|
+
.pire-dropzone[data-drop-target] {
|
|
3125
|
+
border-color: var(--accent-bg);
|
|
3126
|
+
border-style: solid;
|
|
3127
|
+
background: var(--accent-subtle-bg);
|
|
3128
|
+
}
|
|
3129
|
+
.pire-dropzone[data-focus-visible] {
|
|
3130
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
3131
|
+
outline-offset: var(--focus-offset);
|
|
3132
|
+
}
|
|
3133
|
+
.pire-dropzone[data-disabled] {
|
|
3134
|
+
background: var(--surface-disabled);
|
|
3135
|
+
color: var(--text-disabled);
|
|
3136
|
+
border-color: var(--border-subtle);
|
|
3137
|
+
}
|
|
3138
|
+
.pire-dropzone-icon {
|
|
3139
|
+
color: var(--text-tertiary);
|
|
3140
|
+
}
|
|
3141
|
+
.pire-dropzone-prompt {
|
|
3142
|
+
font: var(--type-body);
|
|
3143
|
+
}
|
|
867
3144
|
|
|
868
3145
|
/* ---- SideNav rail flyout -------------------------------------------------- */
|
|
869
3146
|
/* Matches the expanded nav's width so the flyout is not visibly narrower than the menu it
|
|
870
3147
|
stands in for. The rows drop the second-level indent: there is no first level beside them
|
|
871
3148
|
here, so the indent would be measuring against something that is not on screen. */
|
|
872
|
-
.pire-sidenav-flyout{
|
|
873
|
-
|
|
3149
|
+
.pire-sidenav-flyout {
|
|
3150
|
+
min-width: var(--sidenav-w);
|
|
3151
|
+
}
|
|
3152
|
+
.pire-sidenav-flyout .pire-menu-item {
|
|
3153
|
+
padding-left: var(--sp-4);
|
|
3154
|
+
}
|
|
874
3155
|
|
|
875
3156
|
/* ---- ComboBox async status ----------------------------------------------- */
|
|
876
3157
|
/* Same height as an option row so the popover does not resize when results replace the
|
|
877
3158
|
loading line — a popover that jumps has already moved the row under the pointer. */
|
|
878
|
-
.pire-listbox-status{
|
|
879
|
-
|
|
880
|
-
|
|
3159
|
+
.pire-listbox-status {
|
|
3160
|
+
display: flex;
|
|
3161
|
+
align-items: center;
|
|
3162
|
+
min-height: var(--row-h-condensed);
|
|
3163
|
+
padding: 0 var(--sp-3);
|
|
3164
|
+
font: var(--type-caption);
|
|
3165
|
+
color: var(--text-secondary);
|
|
3166
|
+
}
|
|
3167
|
+
.pire-option-label {
|
|
3168
|
+
flex: 1;
|
|
3169
|
+
min-width: 0;
|
|
3170
|
+
overflow: hidden;
|
|
3171
|
+
text-overflow: ellipsis;
|
|
3172
|
+
white-space: nowrap;
|
|
3173
|
+
}
|
|
3174
|
+
.pire-option-secondary {
|
|
3175
|
+
flex: 0 0 auto;
|
|
3176
|
+
font: var(--type-code);
|
|
3177
|
+
color: var(--text-tertiary);
|
|
3178
|
+
}
|
|
881
3179
|
|
|
882
3180
|
/* ---- PageBand ------------------------------------------------------------ */
|
|
883
|
-
.pire-pageband{
|
|
884
|
-
|
|
885
|
-
|
|
3181
|
+
.pire-pageband {
|
|
3182
|
+
display: flex;
|
|
3183
|
+
flex-direction: column;
|
|
3184
|
+
gap: var(--sp-3);
|
|
3185
|
+
padding: var(--sp-4) var(--page-pad-x);
|
|
3186
|
+
background: var(--surface-card);
|
|
3187
|
+
}
|
|
3188
|
+
.pire-pageband[data-surface="page"] {
|
|
3189
|
+
background: var(--surface-page);
|
|
3190
|
+
}
|
|
3191
|
+
.pire-pageband[data-border="true"] {
|
|
3192
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
3193
|
+
}
|
|
886
3194
|
|
|
887
3195
|
/* ---- IconButton count ---------------------------------------------------- */
|
|
888
3196
|
/* Sits over the icon's top-right. The button is position:relative only when a count is present,
|
|
889
3197
|
so nothing else about its layout changes for the common case. */
|
|
890
|
-
.pire-iconbtn[data-has-count="true"]{
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
.pire-iconbtn
|
|
3198
|
+
.pire-iconbtn[data-has-count="true"] {
|
|
3199
|
+
position: relative;
|
|
3200
|
+
}
|
|
3201
|
+
.pire-iconbtn-count {
|
|
3202
|
+
position: absolute;
|
|
3203
|
+
top: 2px;
|
|
3204
|
+
right: 2px;
|
|
3205
|
+
display: inline-flex;
|
|
3206
|
+
align-items: center;
|
|
3207
|
+
justify-content: center;
|
|
3208
|
+
min-width: 16px;
|
|
3209
|
+
height: 16px;
|
|
3210
|
+
padding: 0 var(--sp-1);
|
|
3211
|
+
border-radius: var(--radius-pill);
|
|
3212
|
+
background: var(--status-negative-fg);
|
|
3213
|
+
color: var(--text-on-status);
|
|
3214
|
+
font: var(--type-micro);
|
|
3215
|
+
font-weight: var(--fw-semibold);
|
|
3216
|
+
line-height: 1;
|
|
3217
|
+
pointer-events: none;
|
|
3218
|
+
}
|
|
3219
|
+
.pire-iconbtn-count[data-variant="dot"] {
|
|
3220
|
+
min-width: 8px;
|
|
3221
|
+
width: 8px;
|
|
3222
|
+
height: 8px;
|
|
3223
|
+
padding: 0;
|
|
3224
|
+
top: 4px;
|
|
3225
|
+
right: 4px;
|
|
3226
|
+
}
|
|
3227
|
+
.pire-iconbtn[data-variant="inverse"] .pire-iconbtn-count {
|
|
3228
|
+
box-shadow: 0 0 0 2px var(--surface-shell);
|
|
3229
|
+
}
|
|
894
3230
|
|
|
895
3231
|
/* ---- DataTable loading --------------------------------------------------- */
|
|
896
3232
|
/* renderEmptyState gives one node for the whole body, so the skeleton rows stack inside it while
|
|
897
3233
|
the real header stays mounted above — which is what stops the grid resizing mid-reload. */
|
|
898
|
-
.pire-table-loading{
|
|
3234
|
+
.pire-table-loading {
|
|
3235
|
+
display: flex;
|
|
3236
|
+
flex-direction: column;
|
|
3237
|
+
}
|
|
899
3238
|
|
|
900
3239
|
/* ---- Charts --------------------------------------------------------------- */
|
|
901
3240
|
/* width:100% is load-bearing, not cosmetic. Bar lengths are percentages of the track, and a
|
|
902
3241
|
percentage cannot resolve against an indefinite width — drop the chart into a flex container
|
|
903
3242
|
with `align-items:flex-start` and every bar collapses to its 2px floor. */
|
|
904
|
-
.pire-chart{
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
3243
|
+
.pire-chart {
|
|
3244
|
+
display: flex;
|
|
3245
|
+
flex-direction: column;
|
|
3246
|
+
gap: var(--sp-3);
|
|
3247
|
+
margin: 0;
|
|
3248
|
+
min-width: 0;
|
|
3249
|
+
width: 100%;
|
|
3250
|
+
}
|
|
3251
|
+
.pire-chart-head {
|
|
3252
|
+
display: flex;
|
|
3253
|
+
flex-direction: column;
|
|
3254
|
+
gap: var(--sp-1);
|
|
3255
|
+
}
|
|
3256
|
+
.pire-chart-title {
|
|
3257
|
+
font: var(--type-body-strong);
|
|
3258
|
+
color: var(--text-primary);
|
|
3259
|
+
}
|
|
3260
|
+
.pire-chart-desc {
|
|
3261
|
+
font: var(--type-caption);
|
|
3262
|
+
color: var(--text-secondary);
|
|
3263
|
+
}
|
|
3264
|
+
.pire-chart-empty {
|
|
3265
|
+
padding: var(--sp-10);
|
|
3266
|
+
text-align: center;
|
|
3267
|
+
color: var(--text-secondary);
|
|
3268
|
+
font: var(--type-body);
|
|
3269
|
+
}
|
|
909
3270
|
|
|
910
3271
|
/* Legend text stays in ink; the swatch beside it is what carries identity. Colouring the label
|
|
911
3272
|
to match its series is the commonest way a chart fails contrast. */
|
|
912
|
-
.pire-chart-legend{
|
|
913
|
-
|
|
914
|
-
|
|
3273
|
+
.pire-chart-legend {
|
|
3274
|
+
display: flex;
|
|
3275
|
+
flex-wrap: wrap;
|
|
3276
|
+
gap: var(--sp-1) var(--sp-4);
|
|
3277
|
+
margin: 0;
|
|
3278
|
+
padding: 0;
|
|
3279
|
+
list-style: none;
|
|
3280
|
+
}
|
|
3281
|
+
.pire-chart-legend-item {
|
|
3282
|
+
display: inline-flex;
|
|
3283
|
+
align-items: center;
|
|
3284
|
+
gap: var(--sp-2);
|
|
3285
|
+
font: var(--type-caption);
|
|
3286
|
+
color: var(--text-secondary);
|
|
3287
|
+
}
|
|
3288
|
+
.pire-chart-swatch {
|
|
3289
|
+
width: 10px;
|
|
3290
|
+
height: 10px;
|
|
3291
|
+
border-radius: var(--radius-1);
|
|
3292
|
+
flex: 0 0 auto;
|
|
3293
|
+
}
|
|
915
3294
|
|
|
916
3295
|
/* ---- Charts: bars --------------------------------------------------------- */
|
|
917
|
-
.pire-chart-bars{
|
|
918
|
-
|
|
919
|
-
|
|
3296
|
+
.pire-chart-bars {
|
|
3297
|
+
display: flex;
|
|
3298
|
+
gap: var(--sp-2);
|
|
3299
|
+
}
|
|
3300
|
+
.pire-chart-bars[data-orientation="horizontal"] {
|
|
3301
|
+
flex-direction: column;
|
|
3302
|
+
}
|
|
3303
|
+
.pire-chart-bars[data-orientation="vertical"] {
|
|
3304
|
+
flex-direction: row;
|
|
3305
|
+
align-items: stretch;
|
|
3306
|
+
height: var(--pire-chart-height);
|
|
3307
|
+
}
|
|
920
3308
|
|
|
921
|
-
.pire-chart-group{
|
|
922
|
-
|
|
923
|
-
|
|
3309
|
+
.pire-chart-group {
|
|
3310
|
+
display: flex;
|
|
3311
|
+
min-width: 0;
|
|
3312
|
+
}
|
|
3313
|
+
.pire-chart-bars[data-orientation="horizontal"] .pire-chart-group {
|
|
3314
|
+
align-items: center;
|
|
3315
|
+
gap: var(--sp-3);
|
|
3316
|
+
}
|
|
3317
|
+
.pire-chart-bars[data-orientation="vertical"] .pire-chart-group {
|
|
3318
|
+
flex: 1 1 0;
|
|
3319
|
+
flex-direction: column-reverse;
|
|
3320
|
+
justify-content: flex-start;
|
|
3321
|
+
gap: var(--sp-2);
|
|
3322
|
+
min-width: 0;
|
|
3323
|
+
}
|
|
924
3324
|
|
|
925
|
-
.pire-chart-cat{
|
|
926
|
-
|
|
927
|
-
|
|
3325
|
+
.pire-chart-cat {
|
|
3326
|
+
font: var(--type-caption);
|
|
3327
|
+
color: var(--text-secondary);
|
|
3328
|
+
white-space: nowrap;
|
|
3329
|
+
overflow: hidden;
|
|
3330
|
+
text-overflow: ellipsis;
|
|
3331
|
+
}
|
|
3332
|
+
.pire-chart-bars[data-orientation="horizontal"] .pire-chart-cat {
|
|
3333
|
+
flex: 0 0 auto;
|
|
3334
|
+
width: var(--pire-chart-cat-width, 120px);
|
|
3335
|
+
text-align: right;
|
|
3336
|
+
}
|
|
3337
|
+
.pire-chart-bars[data-orientation="vertical"] .pire-chart-cat {
|
|
3338
|
+
text-align: center;
|
|
3339
|
+
width: 100%;
|
|
3340
|
+
}
|
|
928
3341
|
|
|
929
|
-
.pire-chart-val{
|
|
930
|
-
|
|
3342
|
+
.pire-chart-val {
|
|
3343
|
+
font: var(--type-caption);
|
|
3344
|
+
font-variant-numeric: tabular-nums;
|
|
3345
|
+
color: var(--text-secondary);
|
|
3346
|
+
white-space: nowrap;
|
|
3347
|
+
}
|
|
3348
|
+
.pire-chart-bars[data-orientation="horizontal"] .pire-chart-val {
|
|
3349
|
+
flex: 0 0 auto;
|
|
3350
|
+
text-align: right;
|
|
3351
|
+
min-width: 64px;
|
|
3352
|
+
}
|
|
931
3353
|
/* Rides on top of its own bar, so the figure moves with the mark it describes. */
|
|
932
|
-
.pire-chart-barval{
|
|
3354
|
+
.pire-chart-barval {
|
|
3355
|
+
position: absolute;
|
|
3356
|
+
bottom: 100%;
|
|
3357
|
+
left: 50%;
|
|
3358
|
+
transform: translateX(-50%);
|
|
3359
|
+
padding-block-end: var(--sp-1);
|
|
3360
|
+
font: var(--type-caption);
|
|
3361
|
+
font-variant-numeric: tabular-nums;
|
|
3362
|
+
color: var(--text-secondary);
|
|
3363
|
+
white-space: nowrap;
|
|
3364
|
+
}
|
|
933
3365
|
|
|
934
3366
|
/* The 2px gap is the spacer that keeps adjacent fills from reading as one mark. */
|
|
935
|
-
.pire-chart-track{
|
|
936
|
-
|
|
3367
|
+
.pire-chart-track {
|
|
3368
|
+
display: flex;
|
|
3369
|
+
gap: var(--sp-0h);
|
|
3370
|
+
flex: 1 1 auto;
|
|
3371
|
+
min-width: 0;
|
|
3372
|
+
}
|
|
3373
|
+
.pire-chart-bars[data-orientation="horizontal"] .pire-chart-track {
|
|
3374
|
+
flex-direction: column;
|
|
3375
|
+
min-height: 12px;
|
|
3376
|
+
}
|
|
937
3377
|
/* The top padding is where a vertical bar's own value label sits — without it the tallest
|
|
938
3378
|
bar's figure is clipped by the top of the plot. */
|
|
939
|
-
.pire-chart-bars[data-orientation="vertical"] .pire-chart-track{
|
|
940
|
-
|
|
3379
|
+
.pire-chart-bars[data-orientation="vertical"] .pire-chart-track {
|
|
3380
|
+
flex-direction: row;
|
|
3381
|
+
align-items: flex-end;
|
|
3382
|
+
justify-content: center;
|
|
3383
|
+
flex: 1 1 auto;
|
|
3384
|
+
min-height: 0;
|
|
3385
|
+
padding-block-start: var(--sp-5);
|
|
3386
|
+
}
|
|
3387
|
+
.pire-chart-bars[data-stacked="true"][data-orientation="horizontal"] .pire-chart-track {
|
|
3388
|
+
flex-direction: row;
|
|
3389
|
+
}
|
|
941
3390
|
/* flex-start, not the centre the unstacked rule sets: under column-reverse the main axis starts
|
|
942
3391
|
at the bottom, which is where a stack has to sit. Centred, the whole column floats off its
|
|
943
3392
|
own zero line and the shortest stacks drift furthest. */
|
|
944
|
-
.pire-chart-bars[data-stacked="true"][data-orientation="vertical"] .pire-chart-track{
|
|
3393
|
+
.pire-chart-bars[data-stacked="true"][data-orientation="vertical"] .pire-chart-track {
|
|
3394
|
+
flex-direction: column-reverse;
|
|
3395
|
+
align-items: stretch;
|
|
3396
|
+
justify-content: flex-start;
|
|
3397
|
+
}
|
|
945
3398
|
|
|
946
3399
|
/* Only the data end is rounded. Rounding the baseline end would lift the mark off its own
|
|
947
3400
|
zero line and read as a value slightly above zero. */
|
|
948
|
-
.pire-chart-bar{
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
3401
|
+
.pire-chart-bar {
|
|
3402
|
+
position: relative;
|
|
3403
|
+
background: var(--pire-bar-color);
|
|
3404
|
+
flex: 0 0 auto;
|
|
3405
|
+
}
|
|
3406
|
+
.pire-chart-bars[data-orientation="horizontal"] .pire-chart-bar {
|
|
3407
|
+
width: var(--pire-bar-size);
|
|
3408
|
+
min-height: 10px;
|
|
3409
|
+
flex: 1 1 auto;
|
|
3410
|
+
border-radius: 0 var(--radius-2) var(--radius-2) 0;
|
|
3411
|
+
min-width: 2px;
|
|
3412
|
+
}
|
|
3413
|
+
.pire-chart-bars[data-orientation="vertical"] .pire-chart-bar {
|
|
3414
|
+
height: var(--pire-bar-size);
|
|
3415
|
+
flex: 1 1 auto;
|
|
3416
|
+
max-width: 40px;
|
|
3417
|
+
border-radius: var(--radius-2) var(--radius-2) 0 0;
|
|
3418
|
+
min-height: 2px;
|
|
3419
|
+
}
|
|
3420
|
+
.pire-chart-bars[data-stacked="true"][data-orientation="horizontal"] .pire-chart-bar {
|
|
3421
|
+
flex: 0 0 var(--pire-bar-size);
|
|
3422
|
+
width: auto;
|
|
3423
|
+
border-radius: 0;
|
|
3424
|
+
}
|
|
3425
|
+
.pire-chart-bars[data-stacked="true"][data-orientation="vertical"] .pire-chart-bar {
|
|
3426
|
+
flex: 0 0 var(--pire-bar-size);
|
|
3427
|
+
height: auto;
|
|
3428
|
+
border-radius: 0;
|
|
3429
|
+
}
|
|
953
3430
|
|
|
954
3431
|
/* ---- Charts: lines -------------------------------------------------------- */
|
|
955
|
-
.pire-chart-lines{
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
.pire-chart-
|
|
3432
|
+
.pire-chart-lines {
|
|
3433
|
+
position: relative;
|
|
3434
|
+
width: 100%;
|
|
3435
|
+
min-width: 0;
|
|
3436
|
+
}
|
|
3437
|
+
.pire-chart-svg {
|
|
3438
|
+
display: block;
|
|
3439
|
+
overflow: visible;
|
|
3440
|
+
}
|
|
3441
|
+
.pire-chart-grid line {
|
|
3442
|
+
stroke: var(--viz-grid);
|
|
3443
|
+
stroke-width: 1;
|
|
3444
|
+
}
|
|
3445
|
+
.pire-chart-tick text {
|
|
3446
|
+
font: var(--type-micro);
|
|
3447
|
+
fill: var(--text-tertiary);
|
|
3448
|
+
font-variant-numeric: tabular-nums;
|
|
3449
|
+
}
|
|
3450
|
+
.pire-chart-line path {
|
|
3451
|
+
stroke-width: 2;
|
|
3452
|
+
stroke-linecap: round;
|
|
3453
|
+
stroke-linejoin: round;
|
|
3454
|
+
}
|
|
3455
|
+
.pire-chart-area {
|
|
3456
|
+
opacity: 0.14;
|
|
3457
|
+
}
|
|
961
3458
|
/* A ring in the surface colour keeps overlapping markers from merging into one blob. */
|
|
962
|
-
.pire-chart-marker circle{
|
|
3459
|
+
.pire-chart-marker circle {
|
|
3460
|
+
stroke: var(--surface-card);
|
|
3461
|
+
stroke-width: 2;
|
|
3462
|
+
}
|
|
963
3463
|
|
|
964
3464
|
/* ---- Charts: hover -------------------------------------------------------- */
|
|
965
|
-
.pire-chart-hover{
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
3465
|
+
.pire-chart-hover {
|
|
3466
|
+
position: absolute;
|
|
3467
|
+
display: flex;
|
|
3468
|
+
}
|
|
3469
|
+
.pire-chart-band {
|
|
3470
|
+
position: relative;
|
|
3471
|
+
flex: 1 1 0;
|
|
3472
|
+
}
|
|
3473
|
+
.pire-chart-band::before {
|
|
3474
|
+
content: "";
|
|
3475
|
+
position: absolute;
|
|
3476
|
+
inset-block: 0;
|
|
3477
|
+
left: 50%;
|
|
3478
|
+
width: 1px;
|
|
3479
|
+
background: var(--border-strong);
|
|
3480
|
+
opacity: 0;
|
|
3481
|
+
}
|
|
3482
|
+
.pire-chart-band:hover::before {
|
|
3483
|
+
opacity: 1;
|
|
3484
|
+
}
|
|
969
3485
|
|
|
970
3486
|
/* CSS-only, because the plot is aria-hidden and the data table already carries every value —
|
|
971
3487
|
this is a pointer affordance, not the accessible path to the numbers. */
|
|
972
|
-
.pire-chart-tip{
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
3488
|
+
.pire-chart-tip {
|
|
3489
|
+
position: absolute;
|
|
3490
|
+
bottom: 100%;
|
|
3491
|
+
left: 50%;
|
|
3492
|
+
transform: translate(-50%, -6px);
|
|
3493
|
+
display: flex;
|
|
3494
|
+
flex-direction: column;
|
|
3495
|
+
gap: 2px;
|
|
3496
|
+
padding: var(--sp-2) var(--sp-3);
|
|
3497
|
+
background: var(--surface-card);
|
|
3498
|
+
border: 1px solid var(--border-default);
|
|
3499
|
+
border-radius: var(--radius-2);
|
|
3500
|
+
box-shadow: var(--shadow-2);
|
|
3501
|
+
font: var(--type-caption);
|
|
3502
|
+
color: var(--text-primary);
|
|
3503
|
+
white-space: nowrap;
|
|
3504
|
+
opacity: 0;
|
|
3505
|
+
pointer-events: none;
|
|
3506
|
+
z-index: 1;
|
|
3507
|
+
}
|
|
3508
|
+
.pire-chart-tip-row {
|
|
3509
|
+
font-variant-numeric: tabular-nums;
|
|
3510
|
+
color: var(--text-secondary);
|
|
3511
|
+
}
|
|
3512
|
+
.pire-chart-band:hover .pire-chart-tip,
|
|
3513
|
+
.pire-chart-bar:hover .pire-chart-tip {
|
|
3514
|
+
opacity: 1;
|
|
3515
|
+
}
|
|
3516
|
+
.pire-chart-bar .pire-chart-tip {
|
|
3517
|
+
bottom: auto;
|
|
3518
|
+
top: 50%;
|
|
3519
|
+
left: 100%;
|
|
3520
|
+
transform: translate(var(--sp-2), -50%);
|
|
3521
|
+
}
|
|
976
3522
|
|
|
977
3523
|
/* ---- Charts: donut -------------------------------------------------------- */
|
|
978
|
-
.pire-chart-donut{
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
.pire-chart-
|
|
3524
|
+
.pire-chart-donut {
|
|
3525
|
+
position: relative;
|
|
3526
|
+
display: flex;
|
|
3527
|
+
align-items: center;
|
|
3528
|
+
justify-content: center;
|
|
3529
|
+
}
|
|
3530
|
+
.pire-chart-arc {
|
|
3531
|
+
fill: none;
|
|
3532
|
+
transition: opacity var(--dur-base) var(--ease-standard);
|
|
3533
|
+
}
|
|
3534
|
+
.pire-chart-arc[data-hovered="true"] {
|
|
3535
|
+
opacity: 0.78;
|
|
3536
|
+
}
|
|
3537
|
+
.pire-chart-donut-center {
|
|
3538
|
+
position: absolute;
|
|
3539
|
+
display: flex;
|
|
3540
|
+
flex-direction: column;
|
|
3541
|
+
align-items: center;
|
|
3542
|
+
gap: 2px;
|
|
3543
|
+
text-align: center;
|
|
3544
|
+
pointer-events: none;
|
|
3545
|
+
}
|
|
3546
|
+
.pire-chart-donut-value {
|
|
3547
|
+
font: var(--type-numeric);
|
|
3548
|
+
font-variant-numeric: tabular-nums;
|
|
3549
|
+
color: var(--text-primary);
|
|
3550
|
+
}
|
|
3551
|
+
.pire-chart-donut-caption {
|
|
3552
|
+
font: var(--type-caption);
|
|
3553
|
+
color: var(--text-secondary);
|
|
3554
|
+
overflow: hidden;
|
|
3555
|
+
text-overflow: ellipsis;
|
|
3556
|
+
white-space: nowrap;
|
|
3557
|
+
max-width: 100%;
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
.pire-chart-table table {
|
|
3561
|
+
width: 100%;
|
|
3562
|
+
border-collapse: collapse;
|
|
3563
|
+
font: var(--type-caption);
|
|
3564
|
+
}
|
|
3565
|
+
.pire-chart-table caption {
|
|
3566
|
+
text-align: left;
|
|
3567
|
+
padding-block-end: var(--sp-2);
|
|
3568
|
+
color: var(--text-secondary);
|
|
3569
|
+
}
|
|
3570
|
+
.pire-chart-table th,
|
|
3571
|
+
.pire-chart-table td {
|
|
3572
|
+
padding: var(--sp-1) var(--sp-2);
|
|
3573
|
+
border-block-end: 1px solid var(--border-subtle);
|
|
3574
|
+
text-align: left;
|
|
3575
|
+
color: var(--text-primary);
|
|
3576
|
+
}
|
|
3577
|
+
.pire-chart-table td {
|
|
3578
|
+
font-variant-numeric: tabular-nums;
|
|
3579
|
+
}
|
|
989
3580
|
|
|
990
3581
|
/* ---- ValueHelpField ------------------------------------------------------ */
|
|
991
3582
|
/* The triggers sit inside .pire-control, flush with its trailing edge. `stretch` makes them the
|
|
@@ -995,40 +3586,96 @@
|
|
|
995
3586
|
default alignment centres it — right for the unit strings it usually holds, wrong here — so it
|
|
996
3587
|
stretches and becomes a flex parent; without both, the buttons collapse to their 20px content
|
|
997
3588
|
height and float in the middle of a 40px control. */
|
|
998
|
-
.pire-control:has(.pire-valuehelp-actions) .pire-affix{
|
|
999
|
-
|
|
1000
|
-
|
|
3589
|
+
.pire-control:has(.pire-valuehelp-actions) .pire-affix {
|
|
3590
|
+
align-self: stretch;
|
|
3591
|
+
display: flex;
|
|
3592
|
+
}
|
|
3593
|
+
.pire-valuehelp-actions {
|
|
3594
|
+
display: flex;
|
|
3595
|
+
align-items: stretch;
|
|
3596
|
+
margin-inline-start: calc(var(--sp-2) * -1);
|
|
3597
|
+
margin-inline-end: calc(var(--control-pad-x) * -1);
|
|
3598
|
+
}
|
|
3599
|
+
.pire-valuehelp-actions .pire-iconbtn {
|
|
3600
|
+
height: auto;
|
|
3601
|
+
border-radius: 0;
|
|
3602
|
+
border-inline-start: 1px solid var(--border-field);
|
|
3603
|
+
}
|
|
1001
3604
|
/* The control's *inner* corner is its radius less its border, so matching --radius-1 exactly would
|
|
1002
3605
|
leave the button proud of the curve by a pixel. Only the last button rounds. */
|
|
1003
|
-
.pire-valuehelp-actions .pire-iconbtn:last-child{
|
|
3606
|
+
.pire-valuehelp-actions .pire-iconbtn:last-child {
|
|
3607
|
+
border-start-end-radius: calc(var(--radius-1) - 1px);
|
|
3608
|
+
border-end-end-radius: calc(var(--radius-1) - 1px);
|
|
3609
|
+
}
|
|
1004
3610
|
/* A tint rather than a ring. The control already rings on focus-within, so focus is visible; what
|
|
1005
3611
|
that ring cannot say is *which* of two buttons has it. An inset outline said so but collided
|
|
1006
3612
|
with the control's own border and read as a doubled edge. */
|
|
1007
|
-
.pire-valuehelp-actions .pire-iconbtn[data-focus-visible]{
|
|
3613
|
+
.pire-valuehelp-actions .pire-iconbtn[data-focus-visible] {
|
|
3614
|
+
outline: none;
|
|
3615
|
+
background: var(--surface-selected);
|
|
3616
|
+
color: var(--accent-subtle-fg);
|
|
3617
|
+
}
|
|
1008
3618
|
|
|
1009
3619
|
/* ---- ValueHelpDialog: multi-select --------------------------------------- */
|
|
1010
3620
|
/* Select-all / clear shortcuts plus the running count, above the table in `selectionMode="multiple"`.
|
|
1011
3621
|
Wraps rather than truncates: the count must stay legible at the narrow end of `size="lg"`. */
|
|
1012
|
-
.pire-valuehelp-selectionbar{
|
|
3622
|
+
.pire-valuehelp-selectionbar {
|
|
3623
|
+
display: flex;
|
|
3624
|
+
align-items: center;
|
|
3625
|
+
gap: var(--sp-3);
|
|
3626
|
+
flex-wrap: wrap;
|
|
3627
|
+
}
|
|
1013
3628
|
/* Pushed to the far edge so the two action buttons stay a pair on the left, matching the running
|
|
1014
3629
|
total's usual place at the end of a toolbar rather than between two unrelated actions. */
|
|
1015
|
-
.pire-valuehelp-count{
|
|
3630
|
+
.pire-valuehelp-count {
|
|
3631
|
+
margin-inline-start: auto;
|
|
3632
|
+
font: var(--type-caption);
|
|
3633
|
+
color: var(--text-secondary);
|
|
3634
|
+
font-variant-numeric: tabular-nums;
|
|
3635
|
+
}
|
|
1016
3636
|
|
|
1017
3637
|
/* ---- Icon --------------------------------------------------------------- */
|
|
1018
3638
|
/* Development-only marker for a name that resolved to no glyph. Rendered by Icon in dev builds
|
|
1019
3639
|
only, so it never reaches a user; it exists so a typo is visible on the page rather than only in
|
|
1020
3640
|
a console warning. Sized from the host span, so the box a typo leaves stays the icon's size. */
|
|
1021
|
-
.pire-icon-missing{
|
|
3641
|
+
.pire-icon-missing {
|
|
3642
|
+
display: block;
|
|
3643
|
+
width: 100%;
|
|
3644
|
+
height: 100%;
|
|
3645
|
+
box-sizing: border-box;
|
|
3646
|
+
border: 1px dashed var(--status-negative-fg);
|
|
3647
|
+
border-radius: 2px;
|
|
3648
|
+
}
|
|
1022
3649
|
|
|
1023
3650
|
/* ---- Kbd ---------------------------------------------------------------- */
|
|
1024
3651
|
/* min-width equals the height, so a single character is a square cap and a word like "esc" grows
|
|
1025
3652
|
sideways from it rather than every cap being sized for the longest one. */
|
|
1026
|
-
.pire-kbd{
|
|
1027
|
-
|
|
3653
|
+
.pire-kbd {
|
|
3654
|
+
display: inline-flex;
|
|
3655
|
+
align-items: center;
|
|
3656
|
+
justify-content: center;
|
|
3657
|
+
min-width: 20px;
|
|
3658
|
+
height: 20px;
|
|
3659
|
+
padding: 0 var(--sp-1);
|
|
3660
|
+
border: 1px solid var(--border-default);
|
|
3661
|
+
border-radius: var(--radius-1);
|
|
3662
|
+
background: var(--surface-card);
|
|
3663
|
+
font: var(--type-code);
|
|
3664
|
+
color: var(--text-secondary);
|
|
3665
|
+
white-space: nowrap;
|
|
3666
|
+
}
|
|
3667
|
+
.pire-kbd[data-size="sm"] {
|
|
3668
|
+
min-width: 16px;
|
|
3669
|
+
height: 16px;
|
|
3670
|
+
font-size: 11px;
|
|
3671
|
+
}
|
|
1028
3672
|
/* Lives here rather than in the Menu section so it follows the base rule it refines. A disabled
|
|
1029
3673
|
row must fade its caps too, or the shortcut is the one part of the row still looking live on a
|
|
1030
3674
|
command the user cannot run. */
|
|
1031
|
-
.pire-menu-item[data-disabled] .pire-kbd{
|
|
3675
|
+
.pire-menu-item[data-disabled] .pire-kbd {
|
|
3676
|
+
color: var(--text-disabled);
|
|
3677
|
+
border-color: var(--border-subtle);
|
|
3678
|
+
}
|
|
1032
3679
|
|
|
1033
3680
|
/* ---- SplitPane ---------------------------------------------------------- */
|
|
1034
3681
|
/* A **container** query, not a media query: this is a layout primitive that can sit inside a shell
|
|
@@ -1037,128 +3684,451 @@
|
|
|
1037
3684
|
|
|
1038
3685
|
45rem is the width below which two columns stop being two columns — the list at its default
|
|
1039
3686
|
24rem plus a detail pane narrow enough to be useless. */
|
|
1040
|
-
.pire-split{
|
|
3687
|
+
.pire-split {
|
|
3688
|
+
container-type: inline-size;
|
|
3689
|
+
container-name: pire-split;
|
|
3690
|
+
display: flex;
|
|
3691
|
+
min-height: 0;
|
|
3692
|
+
height: 100%;
|
|
3693
|
+
overflow: hidden;
|
|
3694
|
+
background: var(--surface-card);
|
|
3695
|
+
}
|
|
1041
3696
|
/* Each pane scrolls on its own. `min-height:0` on both is what lets them do that inside a flex
|
|
1042
3697
|
parent, which otherwise sizes them to their content and pushes the scroll up to the page. */
|
|
1043
|
-
.pire-split-list{
|
|
3698
|
+
.pire-split-list {
|
|
3699
|
+
flex: 0 0 var(--pire-split-list-w, 24rem);
|
|
3700
|
+
min-width: 0;
|
|
3701
|
+
min-height: 0;
|
|
3702
|
+
overflow: auto;
|
|
3703
|
+
border-inline-end: 1px solid var(--border-subtle);
|
|
3704
|
+
}
|
|
1044
3705
|
/* Block, not flex. As a flex column its children shrank to fit instead of overflowing, so tall
|
|
1045
3706
|
detail content was squashed into the pane rather than scrolling inside it. */
|
|
1046
|
-
.pire-split-detail{
|
|
1047
|
-
|
|
3707
|
+
.pire-split-detail {
|
|
3708
|
+
flex: 1;
|
|
3709
|
+
min-width: 0;
|
|
3710
|
+
min-height: 0;
|
|
3711
|
+
overflow: auto;
|
|
3712
|
+
}
|
|
3713
|
+
.pire-split-empty {
|
|
3714
|
+
min-height: 100%;
|
|
3715
|
+
display: grid;
|
|
3716
|
+
place-items: center;
|
|
3717
|
+
padding: var(--sp-8);
|
|
3718
|
+
text-align: center;
|
|
3719
|
+
color: var(--text-secondary);
|
|
3720
|
+
}
|
|
1048
3721
|
/* Present in the markup at every size and revealed by the query below, so returning to the list
|
|
1049
3722
|
never depends on JavaScript having measured anything. */
|
|
1050
|
-
.pire-split-back{
|
|
3723
|
+
.pire-split-back {
|
|
3724
|
+
display: none;
|
|
3725
|
+
}
|
|
1051
3726
|
|
|
1052
|
-
@container pire-split (max-width: 45rem){
|
|
3727
|
+
@container pire-split (max-width: 45rem) {
|
|
1053
3728
|
/* One column at a time. Which one depends on whether there is a record to read. */
|
|
1054
|
-
.pire-split-list{
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
3729
|
+
.pire-split-list {
|
|
3730
|
+
flex: 1 1 auto;
|
|
3731
|
+
border-inline-end: 0;
|
|
3732
|
+
}
|
|
3733
|
+
.pire-split[data-has-detail="true"] .pire-split-list {
|
|
3734
|
+
display: none;
|
|
3735
|
+
}
|
|
3736
|
+
.pire-split:not([data-has-detail="true"]) .pire-split-detail {
|
|
3737
|
+
display: none;
|
|
3738
|
+
}
|
|
3739
|
+
.pire-split-back {
|
|
3740
|
+
display: flex;
|
|
3741
|
+
flex: 0 0 auto;
|
|
3742
|
+
padding: var(--sp-2);
|
|
3743
|
+
border-block-end: 1px solid var(--border-subtle);
|
|
3744
|
+
background: var(--surface-card);
|
|
3745
|
+
position: sticky;
|
|
3746
|
+
top: 0;
|
|
3747
|
+
z-index: 1;
|
|
3748
|
+
}
|
|
1058
3749
|
}
|
|
1059
3750
|
|
|
1060
3751
|
/* ---- CommandPalette ----------------------------------------------------- */
|
|
1061
3752
|
/* Anchored near the top rather than centred: the list grows downwards as it fills, and a centred
|
|
1062
3753
|
palette would shift its own input under the caret while the user is still typing. */
|
|
1063
|
-
.pire-cp-overlay{
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
3754
|
+
.pire-cp-overlay {
|
|
3755
|
+
position: fixed;
|
|
3756
|
+
inset: 0;
|
|
3757
|
+
z-index: 950;
|
|
3758
|
+
display: flex;
|
|
3759
|
+
align-items: flex-start;
|
|
3760
|
+
justify-content: center;
|
|
3761
|
+
padding: var(--sp-6);
|
|
3762
|
+
padding-block-start: 12vh;
|
|
3763
|
+
background: var(--surface-overlay);
|
|
3764
|
+
animation: pire-fade-in var(--dur-fast) var(--ease-entrance);
|
|
3765
|
+
}
|
|
3766
|
+
.pire-cp-modal {
|
|
3767
|
+
display: flex;
|
|
3768
|
+
flex-direction: column;
|
|
3769
|
+
width: min(640px, 100%);
|
|
3770
|
+
max-height: min(60vh, 480px);
|
|
3771
|
+
background: var(--surface-raised);
|
|
3772
|
+
border-radius: var(--radius-2);
|
|
3773
|
+
box-shadow: var(--shadow-3);
|
|
3774
|
+
animation: pire-dialog-in var(--dur-base) var(--ease-entrance);
|
|
3775
|
+
outline: none;
|
|
3776
|
+
overflow: hidden;
|
|
3777
|
+
}
|
|
3778
|
+
.pire-cp-dialog {
|
|
3779
|
+
display: flex;
|
|
3780
|
+
flex-direction: column;
|
|
3781
|
+
min-height: 0;
|
|
3782
|
+
outline: none;
|
|
3783
|
+
}
|
|
3784
|
+
.pire-cp-search {
|
|
3785
|
+
display: flex;
|
|
3786
|
+
align-items: center;
|
|
3787
|
+
gap: var(--sp-2);
|
|
3788
|
+
padding: 0 var(--sp-4);
|
|
3789
|
+
border-block-end: 1px solid var(--border-subtle);
|
|
3790
|
+
flex: 0 0 auto;
|
|
3791
|
+
}
|
|
3792
|
+
.pire-cp-search-icon {
|
|
3793
|
+
flex: 0 0 auto;
|
|
3794
|
+
color: var(--text-tertiary);
|
|
3795
|
+
}
|
|
1068
3796
|
/* Borderless by design: the modal edge is the field's boundary, and a second border inside it
|
|
1069
3797
|
would read as a control within a control. */
|
|
1070
|
-
.pire-cp-input{
|
|
3798
|
+
.pire-cp-input {
|
|
3799
|
+
flex: 1;
|
|
3800
|
+
min-width: 0;
|
|
3801
|
+
height: var(--control-h-lg);
|
|
3802
|
+
border: 0;
|
|
3803
|
+
background: transparent;
|
|
3804
|
+
font: var(--type-h4);
|
|
3805
|
+
color: var(--text-primary);
|
|
3806
|
+
}
|
|
1071
3807
|
/* No ring here, deliberately overriding base.css's global input outline. The palette takes the
|
|
1072
3808
|
caret on open, and the input is the only focusable thing in it — the list is navigated by
|
|
1073
3809
|
virtual focus, which never moves real focus off the input. So focus cannot be anywhere else
|
|
1074
3810
|
while this is on screen, the caret is the indicator, and a ring around a full-width borderless
|
|
1075
3811
|
field reads as a stray box rather than as focus. This reasoning does not transfer: on any field
|
|
1076
3812
|
sitting among other controls, the ring is what says which one is live. */
|
|
1077
|
-
.pire-cp-input:focus-visible{
|
|
1078
|
-
|
|
3813
|
+
.pire-cp-input:focus-visible {
|
|
3814
|
+
outline: none;
|
|
3815
|
+
}
|
|
3816
|
+
.pire-cp-input::placeholder {
|
|
3817
|
+
font: var(--type-body);
|
|
3818
|
+
color: var(--text-tertiary);
|
|
3819
|
+
}
|
|
1079
3820
|
/* Same reasoning as `.pire-input`'s rule: the browser's own search decoration is unstyleable and
|
|
1080
3821
|
Chrome/Safari-only. The palette needs no replacement — Escape closes it outright. */
|
|
1081
|
-
.pire-cp-input::-webkit-search-cancel-button{
|
|
1082
|
-
|
|
3822
|
+
.pire-cp-input::-webkit-search-cancel-button {
|
|
3823
|
+
display: none;
|
|
3824
|
+
}
|
|
3825
|
+
.pire-cp-list {
|
|
3826
|
+
flex: 1;
|
|
3827
|
+
min-height: 0;
|
|
3828
|
+
overflow: auto;
|
|
3829
|
+
padding: var(--sp-1) 0;
|
|
3830
|
+
outline: none;
|
|
3831
|
+
display: flex;
|
|
3832
|
+
flex-direction: column;
|
|
3833
|
+
}
|
|
1083
3834
|
/* Explicitly a column: the section is a flex child of .pire-cp-list, and leaving it as a block
|
|
1084
3835
|
makes its rows depend on the default layout of whatever React Aria renders for a section. */
|
|
1085
|
-
.pire-cp-section{
|
|
1086
|
-
|
|
3836
|
+
.pire-cp-section {
|
|
3837
|
+
display: flex;
|
|
3838
|
+
flex-direction: column;
|
|
3839
|
+
}
|
|
3840
|
+
.pire-cp-section-title {
|
|
3841
|
+
display: block;
|
|
3842
|
+
padding: var(--sp-1) var(--sp-4);
|
|
3843
|
+
font: var(--type-label);
|
|
3844
|
+
letter-spacing: var(--ls-caps);
|
|
3845
|
+
text-transform: uppercase;
|
|
3846
|
+
color: var(--text-secondary);
|
|
3847
|
+
}
|
|
1087
3848
|
/* The rows are Menu's, so they inherit its focus, tone and disabled treatment; only the gutter
|
|
1088
3849
|
widens to match the palette's larger input. */
|
|
1089
|
-
.pire-cp-list .pire-menu-item{
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
.pire-cp-
|
|
1093
|
-
|
|
3850
|
+
.pire-cp-list .pire-menu-item {
|
|
3851
|
+
padding-inline: var(--sp-4);
|
|
3852
|
+
}
|
|
3853
|
+
.pire-cp-status {
|
|
3854
|
+
padding: var(--sp-4);
|
|
3855
|
+
text-align: center;
|
|
3856
|
+
font: var(--type-body);
|
|
3857
|
+
color: var(--text-secondary);
|
|
3858
|
+
}
|
|
3859
|
+
.pire-cp-foot {
|
|
3860
|
+
flex: 0 0 auto;
|
|
3861
|
+
display: flex;
|
|
3862
|
+
align-items: center;
|
|
3863
|
+
gap: var(--sp-4);
|
|
3864
|
+
padding: var(--sp-2) var(--sp-4);
|
|
3865
|
+
border-block-start: 1px solid var(--border-subtle);
|
|
3866
|
+
background: var(--surface-sunken);
|
|
3867
|
+
}
|
|
3868
|
+
.pire-cp-hint {
|
|
3869
|
+
display: flex;
|
|
3870
|
+
align-items: center;
|
|
3871
|
+
gap: var(--sp-1);
|
|
3872
|
+
font: var(--type-caption);
|
|
3873
|
+
color: var(--text-secondary);
|
|
3874
|
+
}
|
|
3875
|
+
.pire-cp-loading {
|
|
3876
|
+
padding: var(--sp-1) var(--sp-4);
|
|
3877
|
+
font: var(--type-caption);
|
|
3878
|
+
color: var(--text-secondary);
|
|
3879
|
+
border-block-end: 1px solid var(--border-subtle);
|
|
3880
|
+
}
|
|
1094
3881
|
|
|
1095
3882
|
/* ---- NumPad --------------------------------------------------------------- */
|
|
1096
|
-
.pire-numpad{
|
|
1097
|
-
|
|
1098
|
-
|
|
3883
|
+
.pire-numpad {
|
|
3884
|
+
display: flex;
|
|
3885
|
+
flex-direction: column;
|
|
3886
|
+
gap: var(--sp-3);
|
|
3887
|
+
}
|
|
3888
|
+
.pire-numpad-target {
|
|
3889
|
+
font: var(--type-body-strong);
|
|
3890
|
+
color: var(--text-secondary);
|
|
3891
|
+
}
|
|
3892
|
+
.pire-numpad-grid {
|
|
3893
|
+
display: grid;
|
|
3894
|
+
grid-template-columns: repeat(4, 1fr);
|
|
3895
|
+
gap: var(--sp-2);
|
|
3896
|
+
}
|
|
1099
3897
|
/* Larger than a form button's own type on purpose: this grid is read and pressed without looking
|
|
1100
3898
|
closely at the screen, so the digits carry more weight than `.pire-btn`'s default. */
|
|
1101
|
-
.pire-numpad-key{
|
|
1102
|
-
|
|
3899
|
+
.pire-numpad-key {
|
|
3900
|
+
font: var(--type-h3);
|
|
3901
|
+
}
|
|
3902
|
+
.pire-numpad-key[data-span="2"] {
|
|
3903
|
+
grid-column: span 2;
|
|
3904
|
+
}
|
|
3905
|
+
/* The separator is the one key on the pad whose glyph is nothing but a descender or a dot on the
|
|
3906
|
+
baseline, so at the grid's own size it reads as an empty key — the weakest of the thirteen on a
|
|
3907
|
+
pad that is pressed without looking down. Scaled up and lifted so its ink lands where every
|
|
3908
|
+
digit's ink already is, rather than hanging at the bottom of a centred line box. */
|
|
3909
|
+
.pire-numpad-key[data-key="decimal"] {
|
|
3910
|
+
font-size: var(--fs-display);
|
|
3911
|
+
line-height: 1;
|
|
3912
|
+
}
|
|
1103
3913
|
|
|
1104
3914
|
/* ---- RecordCard -----------------------------------------------------------
|
|
1105
3915
|
A chosen master-data record at field scale. Deliberately not a `Card`: that is a section
|
|
1106
3916
|
container with a heading rule and its own elevation, and the two would fight over padding. */
|
|
1107
|
-
.pire-recordcard{
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
3917
|
+
.pire-recordcard {
|
|
3918
|
+
display: flex;
|
|
3919
|
+
align-items: center;
|
|
3920
|
+
gap: var(--sp-3);
|
|
3921
|
+
min-height: var(--control-h-lg);
|
|
3922
|
+
padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-3);
|
|
3923
|
+
border: 1px solid var(--border-default);
|
|
3924
|
+
border-radius: var(--radius-2);
|
|
3925
|
+
background: var(--surface-sunken);
|
|
3926
|
+
}
|
|
3927
|
+
.pire-recordcard[data-disabled="true"] {
|
|
3928
|
+
color: var(--text-disabled);
|
|
3929
|
+
background: var(--surface-disabled);
|
|
3930
|
+
}
|
|
3931
|
+
.pire-recordcard-tile {
|
|
3932
|
+
display: inline-flex;
|
|
3933
|
+
align-items: center;
|
|
3934
|
+
justify-content: center;
|
|
3935
|
+
width: var(--sp-8);
|
|
3936
|
+
height: var(--sp-8);
|
|
3937
|
+
flex-shrink: 0;
|
|
3938
|
+
border-radius: var(--radius-1);
|
|
3939
|
+
background: var(--surface-selected);
|
|
3940
|
+
color: var(--accent-subtle-fg);
|
|
3941
|
+
}
|
|
3942
|
+
.pire-recordcard-body {
|
|
3943
|
+
display: flex;
|
|
3944
|
+
flex-direction: column;
|
|
3945
|
+
min-width: 0;
|
|
3946
|
+
flex: 1;
|
|
3947
|
+
}
|
|
3948
|
+
.pire-recordcard-title {
|
|
3949
|
+
font: var(--type-body-strong);
|
|
3950
|
+
color: inherit;
|
|
3951
|
+
white-space: nowrap;
|
|
3952
|
+
overflow: hidden;
|
|
3953
|
+
text-overflow: ellipsis;
|
|
3954
|
+
}
|
|
3955
|
+
.pire-recordcard-sub {
|
|
3956
|
+
font: var(--type-micro);
|
|
3957
|
+
color: var(--text-tertiary);
|
|
3958
|
+
white-space: nowrap;
|
|
3959
|
+
overflow: hidden;
|
|
3960
|
+
text-overflow: ellipsis;
|
|
3961
|
+
}
|
|
3962
|
+
.pire-recordcard[data-disabled="true"] .pire-recordcard-sub {
|
|
3963
|
+
color: var(--text-disabled);
|
|
3964
|
+
}
|
|
3965
|
+
.pire-recordcard-action {
|
|
3966
|
+
flex-shrink: 0;
|
|
3967
|
+
}
|
|
1115
3968
|
|
|
1116
3969
|
/* ---- ViewSwitcher ---------------------------------------------------------
|
|
1117
3970
|
The saved-view trigger at the head of a list toolbar. The dirty marker is text, not a dot:
|
|
1118
3971
|
a state carried only by colour is one a screen-reader user never learns. */
|
|
1119
|
-
.pire-viewswitcher{
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
3972
|
+
.pire-viewswitcher {
|
|
3973
|
+
display: inline-flex;
|
|
3974
|
+
align-items: center;
|
|
3975
|
+
gap: var(--sp-2);
|
|
3976
|
+
height: var(--control-h-sm);
|
|
3977
|
+
padding: 0 var(--sp-2);
|
|
3978
|
+
border: 1px solid transparent;
|
|
3979
|
+
border-radius: var(--radius-1);
|
|
3980
|
+
background: transparent;
|
|
3981
|
+
color: var(--text-primary);
|
|
3982
|
+
font: var(--type-body);
|
|
3983
|
+
cursor: pointer;
|
|
3984
|
+
outline: none;
|
|
3985
|
+
white-space: nowrap;
|
|
3986
|
+
transition: var(--transition-control);
|
|
3987
|
+
}
|
|
3988
|
+
.pire-viewswitcher[data-hovered] {
|
|
3989
|
+
background: var(--surface-hover);
|
|
3990
|
+
}
|
|
3991
|
+
.pire-viewswitcher[data-pressed] {
|
|
3992
|
+
background: var(--surface-active);
|
|
3993
|
+
}
|
|
3994
|
+
.pire-viewswitcher[data-focus-visible] {
|
|
3995
|
+
outline: var(--focus-w) solid var(--focus-color);
|
|
3996
|
+
outline-offset: var(--focus-offset);
|
|
3997
|
+
}
|
|
3998
|
+
.pire-viewswitcher[data-disabled] {
|
|
3999
|
+
color: var(--text-disabled);
|
|
4000
|
+
cursor: default;
|
|
4001
|
+
background: transparent;
|
|
4002
|
+
}
|
|
4003
|
+
.pire-viewswitcher-name {
|
|
4004
|
+
font: var(--type-body-strong);
|
|
4005
|
+
max-width: 22ch;
|
|
4006
|
+
overflow: hidden;
|
|
4007
|
+
text-overflow: ellipsis;
|
|
4008
|
+
}
|
|
4009
|
+
.pire-viewswitcher-dirty {
|
|
4010
|
+
font: var(--type-caption);
|
|
4011
|
+
color: var(--text-tertiary);
|
|
4012
|
+
}
|
|
4013
|
+
.pire-viewswitcher[data-disabled] .pire-viewswitcher-dirty {
|
|
4014
|
+
color: var(--text-disabled);
|
|
4015
|
+
}
|
|
1127
4016
|
|
|
1128
4017
|
/* ---- BarList --------------------------------------------------------------
|
|
1129
4018
|
A ranking, not a chart: the status ramp rather than --viz-*, because these are value states
|
|
1130
4019
|
and a series colour must never be mistakable for one. The figure is always text — the bar is
|
|
1131
4020
|
a second encoding of a number that is already readable, which is what keeps the list usable
|
|
1132
4021
|
without sight. */
|
|
1133
|
-
.pire-barlist{
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
4022
|
+
.pire-barlist {
|
|
4023
|
+
display: flex;
|
|
4024
|
+
flex-direction: column;
|
|
4025
|
+
margin: 0;
|
|
4026
|
+
padding: 0;
|
|
4027
|
+
list-style: none;
|
|
4028
|
+
}
|
|
4029
|
+
.pire-barlist-row {
|
|
4030
|
+
display: flex;
|
|
4031
|
+
align-items: center;
|
|
4032
|
+
gap: var(--sp-3);
|
|
4033
|
+
padding: var(--sp-2) 0;
|
|
4034
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
4035
|
+
}
|
|
4036
|
+
.pire-barlist-row:last-child {
|
|
4037
|
+
border-bottom: 0;
|
|
4038
|
+
}
|
|
4039
|
+
.pire-barlist-main {
|
|
4040
|
+
display: flex;
|
|
4041
|
+
flex-direction: column;
|
|
4042
|
+
gap: var(--sp-1);
|
|
4043
|
+
flex: 1;
|
|
4044
|
+
min-width: 0;
|
|
4045
|
+
}
|
|
4046
|
+
.pire-barlist-label {
|
|
4047
|
+
font: var(--type-body);
|
|
4048
|
+
color: var(--text-primary);
|
|
4049
|
+
white-space: nowrap;
|
|
4050
|
+
overflow: hidden;
|
|
4051
|
+
text-overflow: ellipsis;
|
|
4052
|
+
}
|
|
4053
|
+
.pire-barlist-track {
|
|
4054
|
+
display: block;
|
|
4055
|
+
height: 4px;
|
|
4056
|
+
border-radius: var(--radius-pill);
|
|
4057
|
+
background: var(--gray-20);
|
|
4058
|
+
overflow: hidden;
|
|
4059
|
+
}
|
|
1139
4060
|
/* --accent-bg, not a ramp step: --teal-50 does not re-point in themes.css (0 hits), so it would paint the same colour in light and dark, and colors.css labels the teal family "charts" — the one ramp this value-state readout must not default to. */
|
|
1140
|
-
.pire-barlist-fill{
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
.pire-barlist-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
4061
|
+
.pire-barlist-fill {
|
|
4062
|
+
display: block;
|
|
4063
|
+
height: 100%;
|
|
4064
|
+
background: var(--accent-bg);
|
|
4065
|
+
}
|
|
4066
|
+
.pire-barlist-figure {
|
|
4067
|
+
display: flex;
|
|
4068
|
+
flex-direction: column;
|
|
4069
|
+
align-items: flex-end;
|
|
4070
|
+
text-align: right;
|
|
4071
|
+
flex-shrink: 0;
|
|
4072
|
+
min-width: 74px;
|
|
4073
|
+
}
|
|
4074
|
+
.pire-barlist-value {
|
|
4075
|
+
font: var(--type-numeric);
|
|
4076
|
+
font-variant-numeric: tabular-nums;
|
|
4077
|
+
color: var(--text-numeric);
|
|
4078
|
+
}
|
|
4079
|
+
.pire-barlist-hint {
|
|
4080
|
+
font: var(--type-micro);
|
|
4081
|
+
color: var(--text-tertiary);
|
|
4082
|
+
}
|
|
4083
|
+
.pire-barlist-row[data-tone="positive"] .pire-barlist-value {
|
|
4084
|
+
color: var(--status-positive-fg);
|
|
4085
|
+
}
|
|
4086
|
+
.pire-barlist-row[data-tone="positive"] .pire-barlist-fill {
|
|
4087
|
+
background: var(--status-positive-fg);
|
|
4088
|
+
}
|
|
4089
|
+
.pire-barlist-row[data-tone="critical"] .pire-barlist-value {
|
|
4090
|
+
color: var(--status-critical-fg);
|
|
4091
|
+
}
|
|
4092
|
+
.pire-barlist-row[data-tone="critical"] .pire-barlist-fill {
|
|
4093
|
+
background: var(--status-critical-fg);
|
|
4094
|
+
}
|
|
4095
|
+
.pire-barlist-row[data-tone="negative"] .pire-barlist-value {
|
|
4096
|
+
color: var(--status-negative-fg);
|
|
4097
|
+
}
|
|
4098
|
+
.pire-barlist-row[data-tone="negative"] .pire-barlist-fill {
|
|
4099
|
+
background: var(--status-negative-fg);
|
|
4100
|
+
}
|
|
1150
4101
|
|
|
1151
4102
|
/* ---- ConfirmDialog ---------------------------------------------------------
|
|
1152
4103
|
The figures a commit dialog turns on, above the consequence — the numbers are the argument. */
|
|
1153
|
-
.pire-confirm-facts{
|
|
4104
|
+
.pire-confirm-facts {
|
|
4105
|
+
margin-bottom: var(--sp-3);
|
|
4106
|
+
}
|
|
1154
4107
|
|
|
1155
4108
|
/* ---- Reduced motion --------------------------------------------------- */
|
|
1156
|
-
@media (prefers-reduced-motion: reduce){
|
|
1157
|
-
|
|
4109
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4110
|
+
.pire-modal,
|
|
4111
|
+
.pire-toast,
|
|
4112
|
+
.pire-popover,
|
|
4113
|
+
.pire-tooltip,
|
|
4114
|
+
.pire-sidepanel,
|
|
4115
|
+
.pire-cp-overlay,
|
|
4116
|
+
.pire-cp-modal {
|
|
4117
|
+
animation: none;
|
|
4118
|
+
}
|
|
4119
|
+
/* The skeleton also drops its background sweep, not just the animation: an infinite shimmer is
|
|
1158
4120
|
exactly the "large, repeated motion" the preference is asking us to stop, and the placeholder
|
|
1159
4121
|
still reads from its shape and surface contrast alone. */
|
|
1160
|
-
.pire-skeleton{
|
|
1161
|
-
|
|
4122
|
+
.pire-skeleton {
|
|
4123
|
+
animation: none;
|
|
4124
|
+
background-image: none;
|
|
4125
|
+
}
|
|
4126
|
+
/* !important is the point here: this must beat every component transition, including any a
|
|
1162
4127
|
consuming app has layered on top. Honouring the OS motion preference outranks the style rule. */
|
|
1163
|
-
|
|
1164
|
-
|
|
4128
|
+
*,
|
|
4129
|
+
*::before,
|
|
4130
|
+
*::after {
|
|
4131
|
+
/* biome-ignore lint/complexity/noImportantStyles: accessibility override must win unconditionally */
|
|
4132
|
+
transition-duration: 1ms !important;
|
|
4133
|
+
}
|
|
4134
|
+
}
|