@astra-spec/ui 0.0.4 → 0.0.6
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/TOKENS.md +14 -8
- 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 +3 -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/blocks/section.d.ts.map +1 -1
- package/dist/blocks/section.js +3 -2
- package/dist/blocks/section.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.d.ts.map +1 -1
- package/dist/components/insight-trigger.js +3 -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 +2 -2
- 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/components/record-preview.d.ts.map +1 -1
- package/dist/components/record-preview.js +8 -7
- package/dist/components/record-preview.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 +2 -2
- package/dist/model/kind.d.ts.map +1 -1
- package/dist/model/kind.js +3 -4
- 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 +6 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +3 -0
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/inline-reference.d.ts +9 -0
- package/dist/primitives/inline-reference.d.ts.map +1 -0
- package/dist/primitives/inline-reference.js +14 -0
- package/dist/primitives/inline-reference.js.map +1 -0
- package/dist/primitives/kind-glyph.d.ts +8 -0
- package/dist/primitives/kind-glyph.d.ts.map +1 -0
- package/dist/primitives/kind-glyph.js +9 -0
- package/dist/primitives/kind-glyph.js.map +1 -0
- 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/preview-popover.d.ts +1 -1
- package/dist/primitives/preview-popover.d.ts.map +1 -1
- package/dist/primitives/record-list.d.ts.map +1 -1
- package/dist/primitives/record-list.js +3 -2
- package/dist/primitives/record-list.js.map +1 -1
- package/dist/primitives/relation-list.d.ts.map +1 -1
- package/dist/primitives/relation-list.js +3 -2
- package/dist/primitives/relation-list.js.map +1 -1
- 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/isolate.css +7 -0
- package/package.json +7 -4
- package/primitives.css +3 -0
- package/src/blocks/analysis-tree.tsx +4 -30
- package/src/blocks/decisions-list.tsx +5 -3
- package/src/blocks/findings-list.tsx +10 -8
- 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/blocks/section.tsx +3 -2
- 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 +3 -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 +2 -2
- package/src/components/paper-row.tsx +41 -0
- package/src/components/record-dialog.tsx +13 -1
- package/src/components/record-preview.tsx +8 -14
- package/src/lib/labels.tsx +69 -6
- package/src/model/index.ts +6 -2
- package/src/model/kind.ts +4 -5
- 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 +6 -0
- package/src/primitives/inline-reference.tsx +25 -0
- package/src/primitives/kind-glyph.tsx +24 -0
- package/src/primitives/output-status-glyph.tsx +37 -0
- package/src/primitives/preview-popover.tsx +1 -1
- package/src/primitives/record-list.tsx +3 -4
- package/src/primitives/relation-list.tsx +4 -7
- 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 +23 -26
- package/styles/blocks/decisions-list.css +6 -6
- package/styles/blocks/findings-list.css +50 -0
- package/styles/blocks/outputs-list.css +13 -434
- package/styles/blocks/papers-list.css +8 -74
- package/styles/blocks/records.css +13 -13
- package/styles/components/artifact-preview.css +15 -15
- package/styles/components/decision-detail.css +23 -23
- package/styles/components/evidence.css +2 -7
- package/styles/components/figure-zoom.css +62 -0
- package/styles/components/finding-detail.css +73 -11
- package/styles/components/input-detail.css +7 -7
- package/styles/components/insight-detail.css +17 -17
- package/styles/components/insight-list.css +6 -6
- package/styles/components/insight-trigger.css +5 -5
- package/styles/components/output-card.css +290 -0
- package/styles/components/output-detail.css +139 -51
- 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 +22 -22
- package/styles/components/paper-doi.css +2 -2
- package/styles/components/paper-pdf-viewer.css +6 -6
- package/styles/components/paper-row.css +72 -0
- package/styles/components/record-preview.css +444 -268
- package/styles/primitives/badge.css +1 -1
- package/styles/primitives/button.css +25 -25
- package/styles/primitives/count-heading.css +3 -3
- package/styles/primitives/detail-layout.css +20 -20
- package/styles/primitives/dialog.css +75 -93
- package/styles/primitives/empty-state.css +1 -1
- package/styles/primitives/inline-reference.css +37 -0
- package/styles/primitives/kind-glyph.css +31 -0
- package/styles/primitives/kind.css +6 -0
- package/styles/primitives/preview-popover.css +6 -11
- package/styles/primitives/prose.css +1 -1
- package/styles/primitives/record-list.css +32 -48
- package/styles/primitives/relation-list.css +14 -36
- package/styles/primitives/surface-header.css +15 -11
- package/styles/primitives/tooltip.css +22 -0
- package/styles/tokens.css +19 -9
- package/styles/views/inventory.css +58 -27
- 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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
:where(.astra-ui) .astra-record-list__body > button {
|
|
10
|
-
grid-template-columns: minmax(0, 1fr) auto
|
|
10
|
+
grid-template-columns: minmax(0, 1fr) auto 16px;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:where(.astra-ui) .astra-record-list__body > button {
|
|
16
16
|
display: grid;
|
|
17
17
|
grid-template-columns: var(--astra-record-columns);
|
|
18
|
-
gap:
|
|
18
|
+
gap: 12px;
|
|
19
19
|
align-items: center;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
border-top: 1px solid var(--astra-color-border);
|
|
24
24
|
border-bottom: 1px solid var(--astra-color-border);
|
|
25
25
|
color: var(--astra-color-text-subtle);
|
|
26
|
-
padding:
|
|
26
|
+
padding: 7.2px 14.4px;
|
|
27
27
|
font-family: var(--astra-font-ui);
|
|
28
28
|
font-size: var(--astra-font-size-2xs);
|
|
29
29
|
font-weight: 700;
|
|
@@ -36,22 +36,21 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
:where(.astra-ui) .astra-record-list__name {
|
|
39
|
+
font-size: var(--astra-font-size-sm);
|
|
39
40
|
display: flex;
|
|
40
41
|
min-width: 0;
|
|
41
|
-
gap:
|
|
42
|
+
gap: 10.4px;
|
|
42
43
|
align-items: center;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
:where(.astra-ui) .astra-record-list__glyph {
|
|
46
47
|
flex: 0 0 auto;
|
|
47
|
-
color: var(--astra-color-text-subtle);
|
|
48
|
-
font-size: 1rem;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
:where(.astra-ui) .astra-record-list__name > span:last-child {
|
|
52
51
|
display: grid;
|
|
53
52
|
min-width: 0;
|
|
54
|
-
gap:
|
|
53
|
+
gap: 2.24px;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
:where(.astra-ui) .astra-record-list__name strong,
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
|
|
66
65
|
:where(.astra-ui) .astra-record-list__name strong {
|
|
67
66
|
font-family: var(--astra-font-ui);
|
|
68
|
-
font-size:
|
|
67
|
+
font-size: 12.48px;
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
:where(.astra-ui) .astra-record-list__name small {
|
|
@@ -77,9 +76,9 @@
|
|
|
77
76
|
display: inline-block;
|
|
78
77
|
width: max-content;
|
|
79
78
|
border: 1px solid var(--astra-color-border-strong);
|
|
80
|
-
border-radius:
|
|
79
|
+
border-radius: 3.52px;
|
|
81
80
|
color: var(--astra-color-text-muted);
|
|
82
|
-
padding:
|
|
81
|
+
padding: 2.08px 5.12px;
|
|
83
82
|
font-family: var(--astra-font-mono);
|
|
84
83
|
font-size: var(--astra-font-size-2xs);
|
|
85
84
|
}
|
|
@@ -120,14 +119,8 @@
|
|
|
120
119
|
align-items: flex-start;
|
|
121
120
|
}
|
|
122
121
|
|
|
123
|
-
:where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) .astra-record-list__glyph {
|
|
124
|
-
color: var(--astra-color-kind-finding);
|
|
125
|
-
font-size: var(--astra-font-size-xs);
|
|
126
|
-
line-height: 1.35rem;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
122
|
:where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) > span:last-child {
|
|
130
|
-
gap:
|
|
123
|
+
gap: 3.2px;
|
|
131
124
|
}
|
|
132
125
|
|
|
133
126
|
:where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) small {
|
|
@@ -143,17 +136,13 @@
|
|
|
143
136
|
overflow: visible;
|
|
144
137
|
color: var(--astra-color-text);
|
|
145
138
|
font-family: var(--astra-font-body);
|
|
146
|
-
font-size:
|
|
139
|
+
font-size: 13.28px;
|
|
147
140
|
font-weight: 500;
|
|
148
141
|
line-height: 1.38;
|
|
149
142
|
text-overflow: clip;
|
|
150
143
|
white-space: normal;
|
|
151
144
|
}
|
|
152
145
|
|
|
153
|
-
:where(.astra-ui) .astra-record-list__glyph[data-kind] {
|
|
154
|
-
color: var(--astra-kind);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
146
|
:where(.astra-ui) .astra-record-list__head {
|
|
158
147
|
border-color: var(--astra-color-border);
|
|
159
148
|
background: var(--astra-color-header);
|
|
@@ -188,7 +177,7 @@
|
|
|
188
177
|
border-radius: 4px;
|
|
189
178
|
background: var(--astra-color-kind-decision-soft);
|
|
190
179
|
color: var(--astra-color-kind-decision-ink);
|
|
191
|
-
padding:
|
|
180
|
+
padding: 2.56px 6.72px;
|
|
192
181
|
font-size: var(--astra-font-size-2xs);
|
|
193
182
|
}
|
|
194
183
|
|
|
@@ -196,7 +185,6 @@
|
|
|
196
185
|
font-family: var(--astra-font-mono);
|
|
197
186
|
}
|
|
198
187
|
|
|
199
|
-
:where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) .astra-record-list__glyph,
|
|
200
188
|
:where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) small {
|
|
201
189
|
color: var(--astra-color-kind-finding);
|
|
202
190
|
}
|
|
@@ -206,9 +194,9 @@
|
|
|
206
194
|
}
|
|
207
195
|
|
|
208
196
|
:where(.astra-ui) .astra-record-list__body > button {
|
|
209
|
-
min-height:
|
|
210
|
-
gap:
|
|
211
|
-
padding:
|
|
197
|
+
min-height: 44px;
|
|
198
|
+
gap: 12px;
|
|
199
|
+
padding: 11px 2px;
|
|
212
200
|
border-color: var(--astra-color-border-subtle);
|
|
213
201
|
background: transparent;
|
|
214
202
|
font-family: var(--astra-font-ui);
|
|
@@ -220,11 +208,11 @@
|
|
|
220
208
|
}
|
|
221
209
|
|
|
222
210
|
:where(.astra-ui) .astra-record-list__name {
|
|
223
|
-
|
|
211
|
+
font-size: var(--astra-font-size-sm);
|
|
212
|
+
gap: 9.6px;
|
|
224
213
|
}
|
|
225
214
|
|
|
226
215
|
:where(.astra-ui) .astra-record-list__glyph {
|
|
227
|
-
font-size: var(--astra-font-size-xs);
|
|
228
216
|
text-align: center;
|
|
229
217
|
}
|
|
230
218
|
|
|
@@ -235,7 +223,7 @@
|
|
|
235
223
|
|
|
236
224
|
:where(.astra-ui) .astra-record-list__name small {
|
|
237
225
|
font-family: var(--astra-font-ui);
|
|
238
|
-
font-size:
|
|
226
|
+
font-size: 11.5px;
|
|
239
227
|
}
|
|
240
228
|
|
|
241
229
|
:where(.astra-ui) .astra-record-list__selected {
|
|
@@ -246,7 +234,7 @@
|
|
|
246
234
|
color: var(--astra-color-text-muted);
|
|
247
235
|
padding: 0;
|
|
248
236
|
font-family: var(--astra-font-body);
|
|
249
|
-
font-size:
|
|
237
|
+
font-size: 13.5px;
|
|
250
238
|
font-weight: 400;
|
|
251
239
|
}
|
|
252
240
|
|
|
@@ -270,10 +258,10 @@
|
|
|
270
258
|
color: var(--astra-color-text-faint);
|
|
271
259
|
}
|
|
272
260
|
|
|
273
|
-
@container (max-width:
|
|
261
|
+
@container (max-width: 608px) {
|
|
274
262
|
:where(.astra-ui) .astra-record-list__body > button {
|
|
275
|
-
grid-template-columns: minmax(0, 1fr)
|
|
276
|
-
row-gap:
|
|
263
|
+
grid-template-columns: minmax(0, 1fr) 20px;
|
|
264
|
+
row-gap: 4px;
|
|
277
265
|
}
|
|
278
266
|
|
|
279
267
|
:where(.astra-ui) .astra-record-list__primary {
|
|
@@ -314,11 +302,11 @@
|
|
|
314
302
|
:where(.astra-ui) .astra-record-list__body > button {
|
|
315
303
|
display: grid;
|
|
316
304
|
grid-template-columns: var(--astra-record-columns);
|
|
317
|
-
gap:
|
|
305
|
+
gap: 12px;
|
|
318
306
|
align-items: baseline;
|
|
319
307
|
width: 100%;
|
|
320
308
|
min-height: 0;
|
|
321
|
-
padding:
|
|
309
|
+
padding: 11px 2px;
|
|
322
310
|
border: 0;
|
|
323
311
|
border-bottom: 1px solid var(--astra-color-border-subtle);
|
|
324
312
|
background: transparent;
|
|
@@ -333,14 +321,14 @@
|
|
|
333
321
|
}
|
|
334
322
|
|
|
335
323
|
:where(.astra-ui) .astra-record-list__name {
|
|
324
|
+
font-size: var(--astra-font-size-sm);
|
|
336
325
|
display: grid;
|
|
337
|
-
grid-template-columns:
|
|
338
|
-
gap:
|
|
326
|
+
grid-template-columns: 16px minmax(0, 1fr);
|
|
327
|
+
gap: 12px;
|
|
339
328
|
align-items: baseline;
|
|
340
329
|
}
|
|
341
330
|
|
|
342
331
|
:where(.astra-ui) .astra-record-list__glyph {
|
|
343
|
-
font-size: var(--astra-font-size-2xs);
|
|
344
332
|
text-align: center;
|
|
345
333
|
}
|
|
346
334
|
|
|
@@ -357,7 +345,7 @@
|
|
|
357
345
|
:where(.astra-ui) .astra-record-list__count {
|
|
358
346
|
overflow: hidden;
|
|
359
347
|
color: var(--astra-color-text-muted);
|
|
360
|
-
font: 400
|
|
348
|
+
font: 400 13.5px/1.25 var(--astra-font-body);
|
|
361
349
|
text-overflow: ellipsis;
|
|
362
350
|
white-space: nowrap;
|
|
363
351
|
}
|
|
@@ -386,14 +374,10 @@
|
|
|
386
374
|
text-align: right;
|
|
387
375
|
}
|
|
388
376
|
|
|
389
|
-
|
|
390
|
-
color: var(--astra-color-kind-finding);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
@container (max-width: 34rem) {
|
|
377
|
+
@container (max-width: 544px) {
|
|
394
378
|
:where(.astra-ui) .astra-record-list__body > button {
|
|
395
|
-
grid-template-columns: minmax(0, 1fr)
|
|
396
|
-
row-gap:
|
|
379
|
+
grid-template-columns: minmax(0, 1fr) 20px;
|
|
380
|
+
row-gap: 4px;
|
|
397
381
|
}
|
|
398
382
|
|
|
399
383
|
:where(.astra-ui) .astra-record-list__primary {
|
|
@@ -416,7 +400,7 @@
|
|
|
416
400
|
|
|
417
401
|
}
|
|
418
402
|
:where(.astra-ui) .astra-record-list__body {
|
|
419
|
-
max-height: min(
|
|
403
|
+
max-height: min(448px, 55vh);
|
|
420
404
|
overflow-y: auto;
|
|
421
405
|
overscroll-behavior: contain;
|
|
422
406
|
scrollbar-gutter: stable;
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
@layer astra.components {
|
|
4
4
|
:where(.astra-ui) .astra-relation-list__header {
|
|
5
5
|
display: flex;
|
|
6
|
-
gap:
|
|
6
|
+
gap: 12px;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:where(.astra-ui) .astra-relation-list li {
|
|
12
12
|
display: grid;
|
|
13
|
-
grid-template-columns:
|
|
14
|
-
column-gap:
|
|
13
|
+
grid-template-columns: 14.4px minmax(0, 1fr) auto;
|
|
14
|
+
column-gap: 8.8px;
|
|
15
15
|
align-items: center;
|
|
16
16
|
border: 0;
|
|
17
17
|
border-bottom: 1px solid var(--astra-color-border);
|
|
18
18
|
border-radius: 0;
|
|
19
19
|
background: transparent;
|
|
20
|
-
padding:
|
|
20
|
+
padding: 9.92px 1.28px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
:where(.astra-ui) .astra-relation-list li[data-interactive] {
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
|
|
28
28
|
:where(.astra-ui) .astra-relation-list__trigger {
|
|
29
29
|
display: grid;
|
|
30
|
-
grid-template-columns:
|
|
30
|
+
grid-template-columns: 14.4px minmax(0, 1fr) auto;
|
|
31
31
|
width: 100%;
|
|
32
|
-
column-gap:
|
|
32
|
+
column-gap: 8.8px;
|
|
33
33
|
align-items: center;
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
border: 0;
|
|
36
36
|
border-radius: 0;
|
|
37
37
|
background: transparent;
|
|
38
38
|
color: inherit;
|
|
39
|
-
padding:
|
|
39
|
+
padding: 9.92px 1.28px;
|
|
40
40
|
text-align: left;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -55,39 +55,17 @@
|
|
|
55
55
|
grid-column: 1;
|
|
56
56
|
grid-row: 1 / span 2;
|
|
57
57
|
align-self: start;
|
|
58
|
-
color: var(--astra-color-text-subtle);
|
|
59
|
-
line-height: 1.2;
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
:where(.astra-ui) .astra-relation-item__glyph[data-empty] {
|
|
63
61
|
visibility: hidden;
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
:where(.astra-ui) .astra-relation-list [data-kind="decision"] .astra-relation-item__glyph {
|
|
67
|
-
color: var(--astra-color-kind-decision);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
:where(.astra-ui) .astra-relation-list [data-kind="input"] .astra-relation-item__glyph {
|
|
71
|
-
color: var(--astra-color-kind-input);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
:where(.astra-ui) .astra-relation-list [data-kind="output"] .astra-relation-item__glyph {
|
|
75
|
-
color: var(--astra-color-kind-output);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:where(.astra-ui) .astra-relation-list [data-kind="finding"] .astra-relation-item__glyph {
|
|
79
|
-
color: var(--astra-color-kind-finding);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
:where(.astra-ui) .astra-relation-list [data-kind="prior_insight"] .astra-relation-item__glyph {
|
|
83
|
-
color: var(--astra-color-kind-insight);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
64
|
:where(.astra-ui) .astra-relation-item__copy {
|
|
87
65
|
display: grid;
|
|
88
66
|
grid-column: 2;
|
|
89
67
|
min-width: 0;
|
|
90
|
-
gap:
|
|
68
|
+
gap: 1.6px;
|
|
91
69
|
}
|
|
92
70
|
|
|
93
71
|
:where(.astra-ui) .astra-relation-list li > small {
|
|
@@ -118,7 +96,7 @@
|
|
|
118
96
|
}
|
|
119
97
|
|
|
120
98
|
:where(.astra-ui) .astra-relation-list > .astra-relation-list__description {
|
|
121
|
-
margin:
|
|
99
|
+
margin: 3.52px 0 9.92px;
|
|
122
100
|
color: var(--astra-color-text-subtle);
|
|
123
101
|
font-size: var(--astra-font-size-xs);
|
|
124
102
|
line-height: 1.45;
|
|
@@ -127,7 +105,7 @@
|
|
|
127
105
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-relation-list li,
|
|
128
106
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-relation-list__trigger {
|
|
129
107
|
min-height: 0;
|
|
130
|
-
padding-block:
|
|
108
|
+
padding-block: 8px;
|
|
131
109
|
}
|
|
132
110
|
|
|
133
111
|
:where(.astra-ui) .astra-relation-list ul {
|
|
@@ -135,7 +113,7 @@
|
|
|
135
113
|
list-style: none;
|
|
136
114
|
display: grid;
|
|
137
115
|
gap: 0;
|
|
138
|
-
margin:
|
|
116
|
+
margin: 8px 0 0;
|
|
139
117
|
border: 0;
|
|
140
118
|
padding: 0;
|
|
141
119
|
}
|
|
@@ -157,8 +135,8 @@
|
|
|
157
135
|
|
|
158
136
|
:where(.astra-ui) .astra-relation-list__trigger,
|
|
159
137
|
:where(.astra-ui) .astra-relation-list li:where(:not([data-interactive])) {
|
|
160
|
-
grid-template-columns:
|
|
161
|
-
padding:
|
|
138
|
+
grid-template-columns: 22px minmax(0, 1fr) 16px;
|
|
139
|
+
padding: 10px 4px;
|
|
162
140
|
}
|
|
163
141
|
|
|
164
142
|
:where(.astra-ui) .astra-relation-item__label {
|
|
@@ -166,7 +144,7 @@
|
|
|
166
144
|
}
|
|
167
145
|
|
|
168
146
|
:where(.astra-ui) .astra-relation-list small {
|
|
169
|
-
margin-top:
|
|
147
|
+
margin-top: 2px;
|
|
170
148
|
color: var(--astra-color-text-subtle);
|
|
171
149
|
font-size: var(--astra-font-size-2xs);
|
|
172
150
|
}
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
:where(.astra-ui) .astra-surface-header[data-density="regular"] {
|
|
53
|
-
min-height:
|
|
54
|
-
padding:
|
|
53
|
+
min-height: 72px;
|
|
54
|
+
padding: 13.6px 16px;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
:where(.astra-ui) .astra-surface-header[data-density="compact"] {
|
|
58
|
-
padding:
|
|
58
|
+
padding: 11.52px 12.8px;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
:where(.astra-ui) .astra-surface-header[data-density="inline"] {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
:where(.astra-ui) .astra-surface-header .astra-surface-header__content {
|
|
70
70
|
display: grid;
|
|
71
71
|
min-width: 0;
|
|
72
|
-
gap:
|
|
72
|
+
gap: 3.2px;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
:where(.astra-ui) .astra-surface-header[data-density="inline"] .astra-surface-header__content {
|
|
@@ -97,14 +97,14 @@
|
|
|
97
97
|
margin: 0;
|
|
98
98
|
color: var(--astra-color-text);
|
|
99
99
|
font-family: var(--astra-font-heading);
|
|
100
|
-
font-size: clamp(
|
|
100
|
+
font-size: clamp(16.8px, 2vw, 22.4px);
|
|
101
101
|
font-weight: 650;
|
|
102
102
|
line-height: 1.2;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
:where(.astra-ui) .astra-surface-header[data-density="compact"] .astra-surface-header__title {
|
|
106
|
-
margin-block-start:
|
|
107
|
-
font-size:
|
|
106
|
+
margin-block-start: 2.4px;
|
|
107
|
+
font-size: 13.76px;
|
|
108
108
|
line-height: 1.25;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
display: flex;
|
|
121
121
|
flex: 0 0 auto;
|
|
122
122
|
align-items: center;
|
|
123
|
-
gap:
|
|
123
|
+
gap: 5.6px;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
:where(.astra-ui) .astra-surface-header .astra-surface-header__eyebrow {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-surface-header__content {
|
|
135
135
|
display: grid;
|
|
136
136
|
min-width: 0;
|
|
137
|
-
gap:
|
|
137
|
+
gap: 8px;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-surface-header__eyebrow {
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
|
|
144
144
|
:where(.astra-ui) .astra-dialog__header .astra-surface-header__leading {
|
|
145
145
|
flex: 0 0 auto;
|
|
146
|
-
margin-top:
|
|
146
|
+
margin-top: 3px;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
:where(.astra-ui) .astra-dialog__header .astra-surface-header__eyebrow {
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
flex: 1 1 auto;
|
|
164
164
|
display: grid;
|
|
165
165
|
min-width: 0;
|
|
166
|
-
gap:
|
|
166
|
+
gap: 4.8px;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
:where(.astra-ui) .astra-dialog__header .astra-surface-header__eyebrow,
|
|
@@ -180,4 +180,8 @@
|
|
|
180
180
|
font-size: var(--astra-font-size-2xs);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
:where(.astra-ui) .astra-dialog .astra-dialog__header .astra-surface-header__title {
|
|
184
|
+
font: 600 var(--astra-font-size-title)/1.25 var(--astra-font-ui);
|
|
185
|
+
letter-spacing: -0.01em;
|
|
186
|
+
}
|
|
183
187
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* tooltip — emitted by src/primitives/tooltip.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-tooltip {
|
|
5
|
+
z-index: var(--astra-z-preview);
|
|
6
|
+
width: max-content;
|
|
7
|
+
max-width: min(280px, calc(100vw - 16px));
|
|
8
|
+
padding: 6px 9px;
|
|
9
|
+
border: 1px solid var(--astra-color-border);
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
background: var(--astra-color-surface-raised);
|
|
12
|
+
box-shadow: var(--astra-shadow-preview);
|
|
13
|
+
color: var(--astra-color-text);
|
|
14
|
+
font-family: var(--astra-font-body);
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
line-height: 1.4;
|
|
18
|
+
text-align: left;
|
|
19
|
+
overflow-wrap: anywhere;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
package/styles/tokens.css
CHANGED
|
@@ -72,21 +72,31 @@
|
|
|
72
72
|
|
|
73
73
|
/* Type scale. --astra-font-size is the default (md) step; the smaller
|
|
74
74
|
steps cover chrome text — labels (sm), body-adjacent metadata (xs)
|
|
75
|
-
and badges/eyebrows/meta (2xs).
|
|
75
|
+
and badges/eyebrows/meta (2xs). The neutral theme uses an 11px floor:
|
|
76
76
|
nothing legible renders below it. */
|
|
77
|
-
--astra-font-size-2xs:
|
|
78
|
-
--astra-font-size-xs:
|
|
79
|
-
--astra-font-size-sm:
|
|
80
|
-
--astra-font-size:
|
|
77
|
+
--astra-font-size-2xs: 11px;
|
|
78
|
+
--astra-font-size-xs: 12px;
|
|
79
|
+
--astra-font-size-sm: 13px;
|
|
80
|
+
--astra-font-size: 14px;
|
|
81
|
+
|
|
82
|
+
--astra-color-surface-inset: color-mix(in srgb, var(--astra-color-text) 4%, var(--astra-color-surface-muted));
|
|
83
|
+
--astra-color-accent-soft: color-mix(in srgb, var(--astra-color-accent) 12%, transparent);
|
|
84
|
+
--astra-color-kind-value: var(--astra-color-kind-analysis);
|
|
85
|
+
--astra-color-preview-pointer: var(--astra-color-text);
|
|
86
|
+
--astra-color-citation: var(--astra-kind);
|
|
87
|
+
--astra-color-citation-hover: var(--astra-color-link);
|
|
88
|
+
--astra-font-size-meta: 11px;
|
|
89
|
+
--astra-font-size-title: 20px;
|
|
90
|
+
--astra-font-size-claim: 19px;
|
|
81
91
|
|
|
82
92
|
/* Geometry */
|
|
83
93
|
--astra-radius-control: 0;
|
|
84
|
-
--astra-radius-preview:
|
|
94
|
+
--astra-radius-preview: 3px;
|
|
85
95
|
--astra-shadow-raised: none;
|
|
86
96
|
--astra-shadow-preview: 0 6px 18px rgb(34 31 32 / 0.1);
|
|
87
|
-
--astra-width-preview:
|
|
88
|
-
--astra-space-2:
|
|
89
|
-
--astra-space-3:
|
|
97
|
+
--astra-width-preview: 440px;
|
|
98
|
+
--astra-space-2: 8px;
|
|
99
|
+
--astra-space-3: 12px;
|
|
90
100
|
--astra-z-dialog: 1000;
|
|
91
101
|
--astra-z-preview: 1100;
|
|
92
102
|
--astra-z-fullscreen: 10000;
|