@astra-spec/ui 0.0.5 → 0.0.7
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/README.md +47 -4
- package/blocks.css +1 -0
- package/components.css +6 -0
- package/dist/blocks/analysis-tree.d.ts.map +1 -1
- package/dist/blocks/analysis-tree.js +4 -7
- package/dist/blocks/analysis-tree.js.map +1 -1
- package/dist/blocks/decisions-list.d.ts.map +1 -1
- package/dist/blocks/decisions-list.js +1 -1
- package/dist/blocks/decisions-list.js.map +1 -1
- package/dist/blocks/findings-list.d.ts.map +1 -1
- package/dist/blocks/findings-list.js +2 -4
- package/dist/blocks/findings-list.js.map +1 -1
- package/dist/blocks/index.d.ts +2 -4
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +1 -2
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/outputs-list.d.ts +2 -7
- package/dist/blocks/outputs-list.d.ts.map +1 -1
- package/dist/blocks/outputs-list.js +11 -21
- package/dist/blocks/outputs-list.js.map +1 -1
- package/dist/blocks/papers-list.d.ts.map +1 -1
- package/dist/blocks/papers-list.js +3 -3
- package/dist/blocks/papers-list.js.map +1 -1
- package/dist/components/figure-zoom.d.ts +6 -0
- package/dist/components/figure-zoom.d.ts.map +1 -0
- package/dist/components/figure-zoom.js +28 -0
- package/dist/components/figure-zoom.js.map +1 -0
- package/dist/components/finding-detail.d.ts +4 -2
- package/dist/components/finding-detail.d.ts.map +1 -1
- package/dist/components/finding-detail.js +41 -25
- package/dist/components/finding-detail.js.map +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/insight-trigger.js +2 -2
- package/dist/components/insight-trigger.js.map +1 -1
- package/dist/components/output-card.d.ts +13 -0
- package/dist/components/output-card.d.ts.map +1 -0
- package/dist/components/output-card.js +12 -0
- package/dist/components/output-card.js.map +1 -0
- package/dist/components/output-detail.d.ts +6 -2
- package/dist/components/output-detail.d.ts.map +1 -1
- package/dist/components/output-detail.js +49 -13
- package/dist/components/output-detail.js.map +1 -1
- package/dist/components/output-dialog.d.ts +6 -1
- package/dist/components/output-dialog.d.ts.map +1 -1
- package/dist/components/output-dialog.js +2 -2
- package/dist/components/output-dialog.js.map +1 -1
- package/dist/components/output-entry.d.ts +17 -0
- package/dist/components/output-entry.d.ts.map +1 -0
- package/dist/components/output-entry.js +21 -0
- package/dist/components/output-entry.js.map +1 -0
- package/dist/components/output-provenance.d.ts +6 -0
- package/dist/components/output-provenance.d.ts.map +1 -0
- package/dist/components/output-provenance.js +16 -0
- package/dist/components/output-provenance.js.map +1 -0
- package/dist/components/output-status.d.ts +8 -0
- package/dist/components/output-status.d.ts.map +1 -0
- package/dist/components/output-status.js +17 -0
- package/dist/components/output-status.js.map +1 -0
- package/dist/components/paper-detail.d.ts.map +1 -1
- package/dist/components/paper-detail.js +11 -15
- package/dist/components/paper-detail.js.map +1 -1
- package/dist/components/paper-row.d.ts +9 -0
- package/dist/components/paper-row.d.ts.map +1 -0
- package/dist/components/paper-row.js +11 -0
- package/dist/components/paper-row.js.map +1 -0
- package/dist/components/record-dialog.d.ts +5 -1
- package/dist/components/record-dialog.d.ts.map +1 -1
- package/dist/components/record-dialog.js +7 -4
- package/dist/components/record-dialog.js.map +1 -1
- package/dist/lib/labels.d.ts +34 -2
- package/dist/lib/labels.d.ts.map +1 -1
- package/dist/lib/labels.js +35 -4
- package/dist/lib/labels.js.map +1 -1
- package/dist/model/index.d.ts +4 -2
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/index.js +1 -1
- package/dist/model/index.js.map +1 -1
- package/dist/model/kind.d.ts +1 -1
- package/dist/model/kind.d.ts.map +1 -1
- package/dist/model/kind.js +0 -1
- package/dist/model/kind.js.map +1 -1
- package/dist/model/output-provenance.d.ts +17 -0
- package/dist/model/output-provenance.d.ts.map +1 -0
- package/dist/model/output-provenance.js +2 -0
- package/dist/model/output-provenance.js.map +1 -0
- package/dist/model/output-status.d.ts +17 -0
- package/dist/model/output-status.d.ts.map +1 -0
- package/dist/model/output-status.js +2 -0
- package/dist/model/output-status.js.map +1 -0
- package/dist/model/relations.d.ts +37 -12
- package/dist/model/relations.d.ts.map +1 -1
- package/dist/model/relations.js +76 -23
- package/dist/model/relations.js.map +1 -1
- package/dist/primitives/dialog.d.ts.map +1 -1
- package/dist/primitives/dialog.js +9 -1
- package/dist/primitives/dialog.js.map +1 -1
- package/dist/primitives/index.d.ts +2 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +1 -0
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/output-status-glyph.d.ts +8 -0
- package/dist/primitives/output-status-glyph.d.ts.map +1 -0
- package/dist/primitives/output-status-glyph.js +13 -0
- package/dist/primitives/output-status-glyph.js.map +1 -0
- package/dist/primitives/tooltip.d.ts +7 -0
- package/dist/primitives/tooltip.d.ts.map +1 -0
- package/dist/primitives/tooltip.js +31 -0
- package/dist/primitives/tooltip.js.map +1 -0
- package/dist/views/inventory.d.ts +12 -1
- package/dist/views/inventory.d.ts.map +1 -1
- package/dist/views/inventory.js +23 -17
- package/dist/views/inventory.js.map +1 -1
- package/package.json +3 -2
- package/primitives.css +1 -0
- package/src/blocks/analysis-tree.tsx +4 -30
- package/src/blocks/decisions-list.tsx +5 -3
- package/src/blocks/findings-list.tsx +8 -7
- package/src/blocks/index.ts +2 -4
- package/src/blocks/outputs-list.tsx +43 -106
- package/src/blocks/papers-list.tsx +2 -18
- package/src/components/figure-zoom.tsx +72 -0
- package/src/components/finding-detail.tsx +106 -30
- package/src/components/index.ts +13 -0
- package/src/components/insight-trigger.tsx +2 -2
- package/src/components/output-card.tsx +51 -0
- package/src/components/output-detail.tsx +69 -21
- package/src/components/output-dialog.tsx +9 -0
- package/src/components/output-entry.tsx +61 -0
- package/src/components/output-provenance.tsx +86 -0
- package/src/components/output-status.tsx +38 -0
- package/src/components/paper-detail.tsx +52 -54
- package/src/components/paper-row.tsx +41 -0
- package/src/components/record-dialog.tsx +13 -1
- package/src/lib/labels.tsx +69 -6
- package/src/model/index.ts +6 -2
- package/src/model/kind.ts +1 -2
- package/src/model/output-provenance.ts +18 -0
- package/src/model/output-status.ts +18 -0
- package/src/model/relations.ts +92 -26
- package/src/primitives/dialog.tsx +7 -1
- package/src/primitives/index.ts +2 -0
- package/src/primitives/output-status-glyph.tsx +37 -0
- package/src/primitives/tooltip.tsx +51 -0
- package/src/views/inventory.tsx +54 -22
- package/styles/base.css +2 -1
- package/styles/blocks/analysis-tree.css +22 -25
- package/styles/blocks/findings-list.css +50 -0
- package/styles/blocks/outputs-list.css +0 -421
- package/styles/blocks/papers-list.css +4 -70
- package/styles/components/evidence.css +1 -18
- package/styles/components/figure-zoom.css +62 -0
- package/styles/components/finding-detail.css +62 -0
- package/styles/components/insight-list.css +0 -4
- package/styles/components/insight-trigger.css +8 -6
- package/styles/components/output-card.css +290 -0
- package/styles/components/output-detail.css +91 -3
- package/styles/components/output-entry.css +141 -0
- package/styles/components/output-provenance.css +94 -0
- package/styles/components/output-status.css +31 -0
- package/styles/components/paper-detail.css +112 -59
- package/styles/components/paper-row.css +72 -0
- package/styles/primitives/dialog.css +4 -22
- package/styles/primitives/tooltip.css +22 -0
- package/styles/views/inventory.css +35 -2
- package/dist/blocks/prior-insights-list.d.ts +0 -9
- package/dist/blocks/prior-insights-list.d.ts.map +0 -1
- package/dist/blocks/prior-insights-list.js +0 -29
- package/dist/blocks/prior-insights-list.js.map +0 -1
- package/src/blocks/prior-insights-list.tsx +0 -52
|
@@ -12,13 +12,6 @@
|
|
|
12
12
|
grid-template-columns: 1fr;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
}
|
|
16
|
-
@media (prefers-reduced-motion: reduce) {
|
|
17
|
-
:where(.astra-ui) .astra-output-card,
|
|
18
|
-
:where(.astra-ui) .astra-output-card__open {
|
|
19
|
-
transition: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
15
|
}
|
|
23
16
|
:where(.astra-ui) .astra-inventory-outputs__group-heading {
|
|
24
17
|
margin: 0 0 13.6px;
|
|
@@ -29,115 +22,6 @@
|
|
|
29
22
|
line-height: 1.4;
|
|
30
23
|
}
|
|
31
24
|
|
|
32
|
-
:where(.astra-ui) .astra-output-card {
|
|
33
|
-
all: unset;
|
|
34
|
-
display: flex;
|
|
35
|
-
min-width: 0;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
overflow: hidden;
|
|
39
|
-
border: 1px solid var(--astra-color-border);
|
|
40
|
-
border-radius: 7.2px;
|
|
41
|
-
background: var(--astra-color-surface-raised);
|
|
42
|
-
color: var(--astra-color-text);
|
|
43
|
-
transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:where(.astra-ui) .astra-output-card__preview {
|
|
47
|
-
position: relative;
|
|
48
|
-
display: flex;
|
|
49
|
-
aspect-ratio: 16 / 10;
|
|
50
|
-
align-items: center;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
overflow: hidden;
|
|
53
|
-
border-bottom: 1px solid var(--astra-color-border);
|
|
54
|
-
background: var(--astra-color-surface);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:where(.astra-ui) .astra-output-card__open {
|
|
58
|
-
position: absolute;
|
|
59
|
-
top: 8.8px;
|
|
60
|
-
right: 8.8px;
|
|
61
|
-
border-radius: 99px;
|
|
62
|
-
background: color-mix(in srgb, var(--astra-color-surface) 88%, transparent);
|
|
63
|
-
color: var(--astra-color-text-muted);
|
|
64
|
-
padding: 4px 8px;
|
|
65
|
-
font-family: var(--astra-font-ui);
|
|
66
|
-
font-size: var(--astra-font-size-2xs);
|
|
67
|
-
font-weight: 700;
|
|
68
|
-
opacity: 0;
|
|
69
|
-
transition: opacity 140ms ease;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
:where(.astra-ui) .astra-output-card:hover .astra-output-card__open,
|
|
73
|
-
:where(.astra-ui) .astra-output-card:focus-visible .astra-output-card__open {
|
|
74
|
-
opacity: 1;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
:where(.astra-ui) .astra-output-card__kind {
|
|
78
|
-
color: var(--astra-color-accent);
|
|
79
|
-
font-family: var(--astra-font-ui);
|
|
80
|
-
font-size: var(--astra-font-size-2xs);
|
|
81
|
-
font-weight: 700;
|
|
82
|
-
letter-spacing: 0.09em;
|
|
83
|
-
text-transform: uppercase;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:where(.astra-ui) .astra-output-card__body strong {
|
|
87
|
-
overflow: hidden;
|
|
88
|
-
font-family: var(--astra-font-ui);
|
|
89
|
-
font-size: 14.72px;
|
|
90
|
-
line-height: 1.2;
|
|
91
|
-
text-overflow: ellipsis;
|
|
92
|
-
white-space: nowrap;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:where(.astra-ui) .astra-output-card__body code {
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
color: var(--astra-color-text-subtle);
|
|
98
|
-
font-size: var(--astra-font-size-2xs);
|
|
99
|
-
text-overflow: ellipsis;
|
|
100
|
-
white-space: nowrap;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
:where(.astra-ui) .astra-output-card {
|
|
104
|
-
--astra-kind: var(--astra-color-kind-output);
|
|
105
|
-
--astra-kind-ink: var(--astra-color-kind-output);
|
|
106
|
-
--astra-kind-soft: var(--astra-color-kind-output-soft);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
:where(.astra-ui) .astra-output-card {
|
|
110
|
-
border-color: var(--astra-color-border-strong);
|
|
111
|
-
border-radius: 8px;
|
|
112
|
-
background: var(--astra-color-surface-raised);
|
|
113
|
-
box-shadow: none;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
:where(.astra-ui) .astra-output-card:focus-visible {
|
|
117
|
-
outline: 2px solid var(--astra-color-accent);
|
|
118
|
-
outline-offset: 3px;
|
|
119
|
-
outline-color: var(--astra-color-focus);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
:where(.astra-ui) .astra-output-card__preview {
|
|
123
|
-
border-color: var(--astra-color-border);
|
|
124
|
-
background: var(--astra-color-surface);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
:where(.astra-ui) .astra-output-card__preview > img {
|
|
128
|
-
background: var(--astra-color-artifact-paper);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
:where(.astra-ui) .astra-output-card__kind {
|
|
132
|
-
color: var(--astra-color-kind-output);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
:where(.astra-ui) .astra-output-card__open {
|
|
136
|
-
border: 1px solid var(--astra-color-border);
|
|
137
|
-
border-radius: var(--astra-radius-control);
|
|
138
|
-
background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
25
|
:where(.astra-ui) .astra-inventory-outputs__group-heading {
|
|
142
26
|
margin: 0 0 10px;
|
|
143
27
|
color: var(--astra-color-text-subtle);
|
|
@@ -153,106 +37,6 @@
|
|
|
153
37
|
gap: 14px;
|
|
154
38
|
}
|
|
155
39
|
|
|
156
|
-
:where(.astra-ui) .astra-output-card {
|
|
157
|
-
border-color: var(--astra-color-border);
|
|
158
|
-
border-radius: 0;
|
|
159
|
-
background: var(--astra-color-surface-raised);
|
|
160
|
-
box-shadow: none;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
:where(.astra-ui) .astra-output-card:hover {
|
|
164
|
-
transform: none;
|
|
165
|
-
border-color: var(--astra-color-kind-output);
|
|
166
|
-
box-shadow: none;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
:where(.astra-ui) .astra-output-card__preview {
|
|
170
|
-
aspect-ratio: 4 / 3;
|
|
171
|
-
border-color: var(--astra-color-border-subtle);
|
|
172
|
-
background: var(--astra-color-surface-raised);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
:where(.astra-ui) .astra-output-card__preview > img,
|
|
176
|
-
:where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="image"]) > img {
|
|
177
|
-
width: 100%;
|
|
178
|
-
height: 100%;
|
|
179
|
-
box-sizing: border-box;
|
|
180
|
-
object-fit: contain;
|
|
181
|
-
max-height: none;
|
|
182
|
-
margin: 0;
|
|
183
|
-
padding: 7.2px;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
:where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="image"]) {
|
|
187
|
-
display: block;
|
|
188
|
-
width: 100%;
|
|
189
|
-
height: 100%;
|
|
190
|
-
margin: 0;
|
|
191
|
-
border: 0;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/* A metric card stacks label over value so the number reads at a glance;
|
|
195
|
-
the host's compact preview supplies the same data as the dialog. */
|
|
196
|
-
:where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="metric"]) {
|
|
197
|
-
box-sizing: border-box;
|
|
198
|
-
display: flex;
|
|
199
|
-
width: 100%;
|
|
200
|
-
height: 100%;
|
|
201
|
-
flex-direction: column;
|
|
202
|
-
align-items: center;
|
|
203
|
-
justify-content: center;
|
|
204
|
-
gap: 5.6px;
|
|
205
|
-
padding: 9.6px;
|
|
206
|
-
text-align: center;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
:where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="metric"]) > .astra-artifact__metric-label {
|
|
210
|
-
overflow: hidden;
|
|
211
|
-
max-width: 100%;
|
|
212
|
-
color: var(--astra-color-text-subtle);
|
|
213
|
-
font-size: var(--astra-font-size-2xs);
|
|
214
|
-
line-height: 1.3;
|
|
215
|
-
text-overflow: ellipsis;
|
|
216
|
-
white-space: nowrap;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
:where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="metric"]) .astra-artifact__metric-value {
|
|
220
|
-
max-width: 100%;
|
|
221
|
-
font-size: clamp(var(--astra-font-size-title), 3cqw, 28px);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
:where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="metric"]) .astra-artifact__metric-uncertainty,
|
|
225
|
-
:where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="metric"]) .astra-artifact__metric-unit {
|
|
226
|
-
font-size: var(--astra-font-size-xs);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
:where(.astra-ui) .astra-output-card__open {
|
|
230
|
-
top: 7.2px;
|
|
231
|
-
right: 7.2px;
|
|
232
|
-
border: 0;
|
|
233
|
-
background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
:where(.astra-ui) .astra-output-card__body {
|
|
237
|
-
display: grid;
|
|
238
|
-
gap: 2px;
|
|
239
|
-
padding: 8.8px 11px 10.4px;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
:where(.astra-ui) .astra-output-card__kind {
|
|
243
|
-
color: var(--astra-color-kind-output);
|
|
244
|
-
font-size: var(--astra-font-size-2xs);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
:where(.astra-ui) .astra-output-card__body strong {
|
|
248
|
-
font-size: var(--astra-font-size-sm);
|
|
249
|
-
font-weight: 600;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
:where(.astra-ui) .astra-output-card__body code {
|
|
253
|
-
font-size: var(--astra-font-size-2xs);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
40
|
@container (max-width: 928px) {
|
|
257
41
|
:where(.astra-ui) .astra-inventory-outputs__gallery {
|
|
258
42
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -293,74 +77,6 @@
|
|
|
293
77
|
gap: 14px;
|
|
294
78
|
}
|
|
295
79
|
|
|
296
|
-
:where(.astra-ui) .astra-output-card {
|
|
297
|
-
overflow: hidden;
|
|
298
|
-
padding: 0;
|
|
299
|
-
border: 1px solid var(--astra-color-border);
|
|
300
|
-
border-radius: 0;
|
|
301
|
-
background: var(--astra-color-surface-raised);
|
|
302
|
-
color: var(--astra-color-text);
|
|
303
|
-
box-shadow: none;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
:where(.astra-ui) .astra-output-card:hover,
|
|
307
|
-
:where(.astra-ui) .astra-output-card:focus-visible {
|
|
308
|
-
border-color: var(--astra-color-kind-output);
|
|
309
|
-
box-shadow: none;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
:where(.astra-ui) .astra-output-card__preview {
|
|
313
|
-
display: grid;
|
|
314
|
-
aspect-ratio: 4 / 3;
|
|
315
|
-
border-bottom: 1px solid var(--astra-color-border-subtle);
|
|
316
|
-
background: var(--astra-color-surface-raised);
|
|
317
|
-
place-items: center;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
:where(.astra-ui) .astra-output-card__preview > img {
|
|
321
|
-
box-sizing: border-box;
|
|
322
|
-
width: 100%;
|
|
323
|
-
height: 100%;
|
|
324
|
-
padding: 5.6px;
|
|
325
|
-
object-fit: contain;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
:where(.astra-ui) .astra-output-card__open {
|
|
329
|
-
top: 7.2px;
|
|
330
|
-
right: 7.2px;
|
|
331
|
-
padding: 0;
|
|
332
|
-
border: 0;
|
|
333
|
-
background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
|
|
334
|
-
color: var(--astra-color-text-muted);
|
|
335
|
-
font: 600 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
:where(.astra-ui) .astra-output-card__body {
|
|
339
|
-
display: block;
|
|
340
|
-
padding: 9px 11px;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
:where(.astra-ui) .astra-output-card__kind {
|
|
344
|
-
display: block;
|
|
345
|
-
margin-bottom: 2px;
|
|
346
|
-
color: var(--astra-color-kind-output);
|
|
347
|
-
font: 700 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
|
|
348
|
-
letter-spacing: 0.08em;
|
|
349
|
-
text-transform: uppercase;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
:where(.astra-ui) .astra-output-card__body strong {
|
|
353
|
-
display: block;
|
|
354
|
-
overflow: hidden;
|
|
355
|
-
font: 600 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
|
|
356
|
-
text-overflow: ellipsis;
|
|
357
|
-
white-space: nowrap;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
:where(.astra-ui) .astra-output-card__body code {
|
|
361
|
-
display: none;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
80
|
@container (max-width: 768px) {
|
|
365
81
|
:where(.astra-ui) .astra-inventory-outputs__gallery {
|
|
366
82
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -401,98 +117,6 @@
|
|
|
401
117
|
pointer-events: none;
|
|
402
118
|
}
|
|
403
119
|
|
|
404
|
-
:where(.astra-ui) .astra-output-entry {
|
|
405
|
-
appearance: none;
|
|
406
|
-
display: grid;
|
|
407
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
408
|
-
align-items: baseline;
|
|
409
|
-
gap: var(--astra-space-3);
|
|
410
|
-
width: 100%;
|
|
411
|
-
min-width: 0;
|
|
412
|
-
min-height: 44px;
|
|
413
|
-
margin: 0;
|
|
414
|
-
padding: var(--astra-space-3) var(--astra-space-2);
|
|
415
|
-
border: 0;
|
|
416
|
-
border-radius: 0;
|
|
417
|
-
background: transparent;
|
|
418
|
-
color: var(--astra-color-text);
|
|
419
|
-
font: 400 var(--astra-font-size-sm)/1.5 var(--astra-font-ui);
|
|
420
|
-
text-align: start;
|
|
421
|
-
cursor: pointer;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
:where(.astra-ui) .astra-output-entry:hover {
|
|
425
|
-
background: var(--astra-color-surface-muted);
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
:where(.astra-ui) .astra-output-entry:focus-visible {
|
|
429
|
-
outline: 2px solid var(--astra-color-focus);
|
|
430
|
-
outline-offset: -2px;
|
|
431
|
-
background: var(--astra-color-surface-muted);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
:where(.astra-ui) .astra-output-entry__name {
|
|
435
|
-
min-width: 0;
|
|
436
|
-
overflow-wrap: anywhere;
|
|
437
|
-
font-weight: 500;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
:where(.astra-ui) .astra-output-entry__format {
|
|
441
|
-
color: var(--astra-color-text-subtle);
|
|
442
|
-
font: 500 var(--astra-font-size-2xs)/1.5 var(--astra-font-mono);
|
|
443
|
-
overflow-wrap: anywhere;
|
|
444
|
-
text-align: end;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
:where(.astra-ui) .astra-output-entry__value {
|
|
448
|
-
min-width: 0;
|
|
449
|
-
text-align: center;
|
|
450
|
-
font-variant-numeric: tabular-nums;
|
|
451
|
-
overflow-wrap: anywhere;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
:where(.astra-ui) .astra-output-entry__status {
|
|
455
|
-
color: var(--astra-color-text-subtle);
|
|
456
|
-
font-size: var(--astra-font-size-xs);
|
|
457
|
-
overflow-wrap: anywhere;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
:where(.astra-ui) .astra-output-entry__name .astra-output-entry__status {
|
|
461
|
-
display: block;
|
|
462
|
-
font-weight: 400;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
:where(.astra-ui) .astra-output-entry__value .astra-artifact__metric {
|
|
466
|
-
flex-wrap: wrap;
|
|
467
|
-
justify-content: center;
|
|
468
|
-
gap: 0 0.3em;
|
|
469
|
-
font: inherit;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
:where(.astra-ui) .astra-output-entry__value .astra-artifact__metric-label {
|
|
473
|
-
display: none;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
:where(.astra-ui) .astra-output-entry__value :is(.astra-artifact__metric-value, .astra-artifact__metric-uncertainty, .astra-artifact__metric-unit) {
|
|
477
|
-
max-width: 100%;
|
|
478
|
-
color: inherit;
|
|
479
|
-
font: inherit;
|
|
480
|
-
text-align: center;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
:where(.astra-ui) .astra-output-entry__value .astra-artifact__metric-value {
|
|
484
|
-
font-weight: 600;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
:where(.astra-ui) .astra-output-entry__value .astra-artifact__placeholder {
|
|
488
|
-
display: block;
|
|
489
|
-
text-align: center;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
:where(.astra-ui) .astra-output-entry__value .astra-artifact__placeholder > span:first-child {
|
|
493
|
-
display: none;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
120
|
@container (min-width: 672px) {
|
|
497
121
|
:where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) {
|
|
498
122
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -528,49 +152,4 @@
|
|
|
528
152
|
max-width: 100%;
|
|
529
153
|
border: 0;
|
|
530
154
|
}
|
|
531
|
-
|
|
532
|
-
:where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) {
|
|
533
|
-
grid-template-columns: minmax(0, 1fr);
|
|
534
|
-
gap: calc(0.5 * var(--astra-space-2));
|
|
535
|
-
width: auto;
|
|
536
|
-
max-width: 100%;
|
|
537
|
-
min-height: 52px;
|
|
538
|
-
padding: var(--astra-space-2) var(--astra-space-3);
|
|
539
|
-
border: 1px solid var(--astra-color-border);
|
|
540
|
-
border-radius: calc(2 * var(--astra-radius-preview));
|
|
541
|
-
background: var(--astra-color-artifact-paper);
|
|
542
|
-
color: var(--astra-color-artifact-ink);
|
|
543
|
-
font-size: var(--astra-font-size-xs);
|
|
544
|
-
text-align: center;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
:where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) .astra-output-entry__name {
|
|
548
|
-
grid-row: 2;
|
|
549
|
-
color: color-mix(in srgb, var(--astra-color-artifact-ink) 72%, var(--astra-color-artifact-paper));
|
|
550
|
-
font: 600 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
:where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) .astra-output-entry__value {
|
|
554
|
-
grid-row: 1;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
:where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) .astra-artifact__metric {
|
|
558
|
-
color: var(--astra-color-artifact-ink);
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
:where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) .astra-artifact__metric-value {
|
|
562
|
-
font-size: 16px;
|
|
563
|
-
line-height: 1.25;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
:where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) :is(.astra-output-entry__status, .astra-artifact__placeholder) {
|
|
567
|
-
color: color-mix(in srgb, var(--astra-color-artifact-ink) 72%, var(--astra-color-artifact-paper));
|
|
568
|
-
text-align: center;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
:where(.astra-ui) .astra-output-entry:where([data-kind="metric"]):hover,
|
|
572
|
-
:where(.astra-ui) .astra-output-entry:where([data-kind="metric"]):focus-visible {
|
|
573
|
-
background: var(--astra-color-artifact-paper);
|
|
574
|
-
border-color: var(--astra-color-focus);
|
|
575
|
-
}
|
|
576
155
|
}
|
|
@@ -10,80 +10,14 @@
|
|
|
10
10
|
gap: 10px;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
grid-template-columns: 58px minmax(0, 1fr) auto 46px;
|
|
16
|
-
align-items: stretch;
|
|
17
|
-
width: 100%;
|
|
18
|
-
min-height: 68px;
|
|
19
|
-
padding: 0;
|
|
20
|
-
border: 1px solid var(--astra-color-border);
|
|
21
|
-
background: var(--astra-color-surface-raised);
|
|
22
|
-
color: var(--astra-color-text);
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
text-align: left;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:where(.astra-ui) .astra-paper-list > button:hover,
|
|
28
|
-
:where(.astra-ui) .astra-paper-list > button:focus-visible {
|
|
29
|
-
border-color: var(--astra-color-kind-output);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:where(.astra-ui) .astra-paper-list__thumbnail {
|
|
33
|
-
display: grid;
|
|
34
|
-
border-right: 1px solid var(--astra-color-border-subtle);
|
|
35
|
-
color: var(--astra-color-text-subtle);
|
|
36
|
-
background: repeating-linear-gradient(
|
|
37
|
-
0deg,
|
|
38
|
-
color-mix(in srgb, var(--astra-color-canvas) 72%, var(--astra-color-surface-raised)) 0 6px,
|
|
39
|
-
var(--astra-color-canvas) 6px 12px
|
|
40
|
-
);
|
|
41
|
-
font: 400 var(--astra-font-size-2xs)/1 var(--astra-font-mono);
|
|
42
|
-
place-items: center;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:where(.astra-ui) .astra-paper-list__copy {
|
|
46
|
-
display: grid;
|
|
47
|
-
min-width: 0;
|
|
48
|
-
align-content: center;
|
|
49
|
-
gap: 3px;
|
|
50
|
-
padding: 11px 14px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:where(.astra-ui) .astra-paper-list__copy strong {
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
font: 600 var(--astra-font-size)/1.25 var(--astra-font-ui);
|
|
56
|
-
text-overflow: ellipsis;
|
|
57
|
-
white-space: nowrap;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:where(.astra-ui) .astra-paper-list__copy small,
|
|
61
|
-
:where(.astra-ui) .astra-paper-list__meta {
|
|
62
|
-
overflow: hidden;
|
|
63
|
-
color: var(--astra-color-text-subtle);
|
|
64
|
-
font: 400 11.5px/1.25 var(--astra-font-ui);
|
|
65
|
-
text-overflow: ellipsis;
|
|
66
|
-
white-space: nowrap;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
:where(.astra-ui) .astra-paper-list__meta {
|
|
70
|
-
display: grid;
|
|
71
|
-
align-items: center;
|
|
72
|
-
padding-inline: 12px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
:where(.astra-ui) .astra-paper-list__arrow {
|
|
76
|
-
display: grid;
|
|
77
|
-
color: var(--astra-color-text-faint);
|
|
78
|
-
place-items: center;
|
|
79
|
-
}
|
|
80
|
-
|
|
13
|
+
/* How a run of rows collapses is the list's call, not the row's, so these
|
|
14
|
+
stay with the sheet that declares the container they query. */
|
|
81
15
|
@container (max-width: 768px) {
|
|
82
|
-
:where(.astra-ui) .astra-paper-list
|
|
16
|
+
:where(.astra-ui) .astra-paper-list .astra-paper-row {
|
|
83
17
|
grid-template-columns: 58px minmax(0, 1fr) 46px;
|
|
84
18
|
}
|
|
85
19
|
|
|
86
|
-
:where(.astra-ui) .astra-paper-
|
|
20
|
+
:where(.astra-ui) .astra-paper-list .astra-paper-row__meta {
|
|
87
21
|
display: none;
|
|
88
22
|
}
|
|
89
23
|
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
/* evidence — emitted by src/components/insight-trigger.tsx
|
|
1
|
+
/* evidence — emitted by src/components/insight-trigger.tsx */
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
@layer astra.components {
|
|
4
|
-
:where(.astra-ui) .astra-paper-detail__insights .astra-evidence__title {
|
|
5
|
-
display: grid;
|
|
6
|
-
grid-template-columns: auto minmax(0, 1fr);
|
|
7
|
-
align-items: start;
|
|
8
|
-
width: 100%;
|
|
9
|
-
min-width: 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:where(.astra-ui) .astra-paper-detail__insights .astra-evidence__name {
|
|
13
|
-
min-width: 0;
|
|
14
|
-
overflow-wrap: anywhere;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:where(.astra-ui) .astra-insight-trigger:where([data-variant="claim"]) .astra-evidence__glyph--insight {
|
|
18
|
-
margin-top: 3.52px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
4
|
:where(.astra-ui) .astra-evidence {
|
|
22
5
|
list-style: none;
|
|
23
6
|
margin: 2.4px 0 0;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* figure-zoom — emitted by src/components/figure-zoom.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-figure-zoom {
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
min-height: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.astra-ui) .astra-figure-zoom__controls {
|
|
13
|
+
position: absolute;
|
|
14
|
+
right: var(--astra-space-2);
|
|
15
|
+
bottom: var(--astra-space-2);
|
|
16
|
+
z-index: 1;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: calc(var(--astra-space-2) / 2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where(.astra-ui) .astra-figure-zoom__controls .astra-button {
|
|
23
|
+
width: 32px;
|
|
24
|
+
padding: 0;
|
|
25
|
+
background: var(--astra-color-artifact-paper);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* At a zoom bound the button stays focusable (aria-disabled, not disabled)
|
|
29
|
+
so the press that reached the bound does not drop keyboard focus; it
|
|
30
|
+
looks and hovers like a disabled button. */
|
|
31
|
+
:where(.astra-ui) .astra-figure-zoom__controls .astra-button:where([aria-disabled="true"]),
|
|
32
|
+
:where(.astra-ui) .astra-figure-zoom__controls .astra-button:where([aria-disabled="true"]):hover {
|
|
33
|
+
border-color: var(--astra-color-border-strong);
|
|
34
|
+
background: var(--astra-color-artifact-paper);
|
|
35
|
+
color: var(--astra-color-text-muted);
|
|
36
|
+
cursor: default;
|
|
37
|
+
opacity: 0.55;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(.astra-ui) .astra-figure-zoom__viewport {
|
|
41
|
+
min-width: 0;
|
|
42
|
+
min-height: 0;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
overscroll-behavior: contain;
|
|
45
|
+
cursor: grab;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where(.astra-ui) .astra-figure-zoom__viewport:focus-visible {
|
|
49
|
+
outline: 2px solid var(--astra-color-accent);
|
|
50
|
+
outline-offset: -2px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(.astra-ui) .astra-figure-zoom__viewport:active {
|
|
54
|
+
cursor: grabbing;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where(.astra-ui) .astra-figure-zoom__canvas {
|
|
58
|
+
min-width: 0;
|
|
59
|
+
min-height: 0;
|
|
60
|
+
transform-origin: top left;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -52,6 +52,68 @@
|
|
|
52
52
|
margin-top: 26px;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/* Same eyebrow the inventory puts over a run of outputs, so a finding's
|
|
56
|
+
results read as the familiar grouping rather than a new one. */
|
|
57
|
+
:where(.astra-ui) .astra-finding-detail__group-heading {
|
|
58
|
+
margin: 0 0 8px;
|
|
59
|
+
color: var(--astra-color-text-subtle);
|
|
60
|
+
font: 600 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
|
|
61
|
+
letter-spacing: 0.09em;
|
|
62
|
+
text-transform: uppercase;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where(.astra-ui) .astra-finding-detail__results section + section {
|
|
66
|
+
margin-top: 16px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* The runs a finding's results fall into, grouped as the inventory groups an
|
|
70
|
+
analysis's outputs: framed artifacts, then metric tiles, then files. */
|
|
71
|
+
:where(.astra-ui) .astra-finding-detail__gallery {
|
|
72
|
+
display: grid;
|
|
73
|
+
gap: 12px;
|
|
74
|
+
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where(.astra-ui) .astra-finding-detail__tiles {
|
|
78
|
+
display: flex;
|
|
79
|
+
margin: 12px 0 0;
|
|
80
|
+
padding: 0;
|
|
81
|
+
flex-wrap: wrap;
|
|
82
|
+
align-items: flex-start;
|
|
83
|
+
gap: var(--astra-space-2);
|
|
84
|
+
list-style: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where(.astra-ui) .astra-finding-detail__tiles > li {
|
|
88
|
+
max-width: 100%;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:where(.astra-ui) .astra-finding-detail__files {
|
|
93
|
+
display: grid;
|
|
94
|
+
margin: 12px 0 0;
|
|
95
|
+
padding: 0;
|
|
96
|
+
grid-template-columns: minmax(0, 1fr);
|
|
97
|
+
list-style: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* A rule separates two file rows; it does not close off the last one, which
|
|
101
|
+
in a finding is usually the only one. */
|
|
102
|
+
:where(.astra-ui) .astra-finding-detail__files > li {
|
|
103
|
+
display: flex;
|
|
104
|
+
min-width: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:where(.astra-ui) .astra-finding-detail__files > li:not(:last-child) {
|
|
108
|
+
border-bottom: 1px solid var(--astra-color-border-subtle);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:where(.astra-ui) .astra-finding-detail__unresolved {
|
|
112
|
+
padding: var(--astra-space-3) var(--astra-space-2);
|
|
113
|
+
color: var(--astra-color-text-subtle);
|
|
114
|
+
font: 400 var(--astra-font-size-sm)/1.5 var(--astra-font-ui);
|
|
115
|
+
}
|
|
116
|
+
|
|
55
117
|
:where(.astra-ui) .astra-finding-detail__notes > div {
|
|
56
118
|
font-size: 16px;
|
|
57
119
|
line-height: 1.6;
|