@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.
Files changed (227) hide show
  1. package/README.md +47 -4
  2. package/TOKENS.md +14 -8
  3. package/blocks.css +1 -0
  4. package/components.css +6 -0
  5. package/dist/blocks/analysis-tree.d.ts.map +1 -1
  6. package/dist/blocks/analysis-tree.js +4 -7
  7. package/dist/blocks/analysis-tree.js.map +1 -1
  8. package/dist/blocks/decisions-list.d.ts.map +1 -1
  9. package/dist/blocks/decisions-list.js +1 -1
  10. package/dist/blocks/decisions-list.js.map +1 -1
  11. package/dist/blocks/findings-list.d.ts.map +1 -1
  12. package/dist/blocks/findings-list.js +3 -4
  13. package/dist/blocks/findings-list.js.map +1 -1
  14. package/dist/blocks/index.d.ts +2 -4
  15. package/dist/blocks/index.d.ts.map +1 -1
  16. package/dist/blocks/index.js +1 -2
  17. package/dist/blocks/index.js.map +1 -1
  18. package/dist/blocks/outputs-list.d.ts +2 -7
  19. package/dist/blocks/outputs-list.d.ts.map +1 -1
  20. package/dist/blocks/outputs-list.js +11 -21
  21. package/dist/blocks/outputs-list.js.map +1 -1
  22. package/dist/blocks/papers-list.d.ts.map +1 -1
  23. package/dist/blocks/papers-list.js +3 -3
  24. package/dist/blocks/papers-list.js.map +1 -1
  25. package/dist/blocks/section.d.ts.map +1 -1
  26. package/dist/blocks/section.js +3 -2
  27. package/dist/blocks/section.js.map +1 -1
  28. package/dist/components/figure-zoom.d.ts +6 -0
  29. package/dist/components/figure-zoom.d.ts.map +1 -0
  30. package/dist/components/figure-zoom.js +28 -0
  31. package/dist/components/figure-zoom.js.map +1 -0
  32. package/dist/components/finding-detail.d.ts +4 -2
  33. package/dist/components/finding-detail.d.ts.map +1 -1
  34. package/dist/components/finding-detail.js +41 -25
  35. package/dist/components/finding-detail.js.map +1 -1
  36. package/dist/components/index.d.ts +9 -0
  37. package/dist/components/index.d.ts.map +1 -1
  38. package/dist/components/index.js +5 -0
  39. package/dist/components/index.js.map +1 -1
  40. package/dist/components/insight-trigger.d.ts.map +1 -1
  41. package/dist/components/insight-trigger.js +3 -2
  42. package/dist/components/insight-trigger.js.map +1 -1
  43. package/dist/components/output-card.d.ts +13 -0
  44. package/dist/components/output-card.d.ts.map +1 -0
  45. package/dist/components/output-card.js +12 -0
  46. package/dist/components/output-card.js.map +1 -0
  47. package/dist/components/output-detail.d.ts +6 -2
  48. package/dist/components/output-detail.d.ts.map +1 -1
  49. package/dist/components/output-detail.js +49 -13
  50. package/dist/components/output-detail.js.map +1 -1
  51. package/dist/components/output-dialog.d.ts +6 -1
  52. package/dist/components/output-dialog.d.ts.map +1 -1
  53. package/dist/components/output-dialog.js +2 -2
  54. package/dist/components/output-dialog.js.map +1 -1
  55. package/dist/components/output-entry.d.ts +17 -0
  56. package/dist/components/output-entry.d.ts.map +1 -0
  57. package/dist/components/output-entry.js +21 -0
  58. package/dist/components/output-entry.js.map +1 -0
  59. package/dist/components/output-provenance.d.ts +6 -0
  60. package/dist/components/output-provenance.d.ts.map +1 -0
  61. package/dist/components/output-provenance.js +16 -0
  62. package/dist/components/output-provenance.js.map +1 -0
  63. package/dist/components/output-status.d.ts +8 -0
  64. package/dist/components/output-status.d.ts.map +1 -0
  65. package/dist/components/output-status.js +17 -0
  66. package/dist/components/output-status.js.map +1 -0
  67. package/dist/components/paper-detail.d.ts.map +1 -1
  68. package/dist/components/paper-detail.js +2 -2
  69. package/dist/components/paper-detail.js.map +1 -1
  70. package/dist/components/paper-row.d.ts +9 -0
  71. package/dist/components/paper-row.d.ts.map +1 -0
  72. package/dist/components/paper-row.js +11 -0
  73. package/dist/components/paper-row.js.map +1 -0
  74. package/dist/components/record-dialog.d.ts +5 -1
  75. package/dist/components/record-dialog.d.ts.map +1 -1
  76. package/dist/components/record-dialog.js +7 -4
  77. package/dist/components/record-dialog.js.map +1 -1
  78. package/dist/components/record-preview.d.ts.map +1 -1
  79. package/dist/components/record-preview.js +8 -7
  80. package/dist/components/record-preview.js.map +1 -1
  81. package/dist/lib/labels.d.ts +34 -2
  82. package/dist/lib/labels.d.ts.map +1 -1
  83. package/dist/lib/labels.js +35 -4
  84. package/dist/lib/labels.js.map +1 -1
  85. package/dist/model/index.d.ts +4 -2
  86. package/dist/model/index.d.ts.map +1 -1
  87. package/dist/model/index.js +1 -1
  88. package/dist/model/index.js.map +1 -1
  89. package/dist/model/kind.d.ts +2 -2
  90. package/dist/model/kind.d.ts.map +1 -1
  91. package/dist/model/kind.js +3 -4
  92. package/dist/model/kind.js.map +1 -1
  93. package/dist/model/output-provenance.d.ts +17 -0
  94. package/dist/model/output-provenance.d.ts.map +1 -0
  95. package/dist/model/output-provenance.js +2 -0
  96. package/dist/model/output-provenance.js.map +1 -0
  97. package/dist/model/output-status.d.ts +17 -0
  98. package/dist/model/output-status.d.ts.map +1 -0
  99. package/dist/model/output-status.js +2 -0
  100. package/dist/model/output-status.js.map +1 -0
  101. package/dist/model/relations.d.ts +37 -12
  102. package/dist/model/relations.d.ts.map +1 -1
  103. package/dist/model/relations.js +76 -23
  104. package/dist/model/relations.js.map +1 -1
  105. package/dist/primitives/dialog.d.ts.map +1 -1
  106. package/dist/primitives/dialog.js +9 -1
  107. package/dist/primitives/dialog.js.map +1 -1
  108. package/dist/primitives/index.d.ts +6 -0
  109. package/dist/primitives/index.d.ts.map +1 -1
  110. package/dist/primitives/index.js +3 -0
  111. package/dist/primitives/index.js.map +1 -1
  112. package/dist/primitives/inline-reference.d.ts +9 -0
  113. package/dist/primitives/inline-reference.d.ts.map +1 -0
  114. package/dist/primitives/inline-reference.js +14 -0
  115. package/dist/primitives/inline-reference.js.map +1 -0
  116. package/dist/primitives/kind-glyph.d.ts +8 -0
  117. package/dist/primitives/kind-glyph.d.ts.map +1 -0
  118. package/dist/primitives/kind-glyph.js +9 -0
  119. package/dist/primitives/kind-glyph.js.map +1 -0
  120. package/dist/primitives/output-status-glyph.d.ts +8 -0
  121. package/dist/primitives/output-status-glyph.d.ts.map +1 -0
  122. package/dist/primitives/output-status-glyph.js +13 -0
  123. package/dist/primitives/output-status-glyph.js.map +1 -0
  124. package/dist/primitives/preview-popover.d.ts +1 -1
  125. package/dist/primitives/preview-popover.d.ts.map +1 -1
  126. package/dist/primitives/record-list.d.ts.map +1 -1
  127. package/dist/primitives/record-list.js +3 -2
  128. package/dist/primitives/record-list.js.map +1 -1
  129. package/dist/primitives/relation-list.d.ts.map +1 -1
  130. package/dist/primitives/relation-list.js +3 -2
  131. package/dist/primitives/relation-list.js.map +1 -1
  132. package/dist/primitives/tooltip.d.ts +7 -0
  133. package/dist/primitives/tooltip.d.ts.map +1 -0
  134. package/dist/primitives/tooltip.js +31 -0
  135. package/dist/primitives/tooltip.js.map +1 -0
  136. package/dist/views/inventory.d.ts +12 -1
  137. package/dist/views/inventory.d.ts.map +1 -1
  138. package/dist/views/inventory.js +23 -17
  139. package/dist/views/inventory.js.map +1 -1
  140. package/isolate.css +7 -0
  141. package/package.json +7 -4
  142. package/primitives.css +3 -0
  143. package/src/blocks/analysis-tree.tsx +4 -30
  144. package/src/blocks/decisions-list.tsx +5 -3
  145. package/src/blocks/findings-list.tsx +10 -8
  146. package/src/blocks/index.ts +2 -4
  147. package/src/blocks/outputs-list.tsx +43 -106
  148. package/src/blocks/papers-list.tsx +2 -18
  149. package/src/blocks/section.tsx +3 -2
  150. package/src/components/figure-zoom.tsx +72 -0
  151. package/src/components/finding-detail.tsx +106 -30
  152. package/src/components/index.ts +13 -0
  153. package/src/components/insight-trigger.tsx +3 -2
  154. package/src/components/output-card.tsx +51 -0
  155. package/src/components/output-detail.tsx +69 -21
  156. package/src/components/output-dialog.tsx +9 -0
  157. package/src/components/output-entry.tsx +61 -0
  158. package/src/components/output-provenance.tsx +86 -0
  159. package/src/components/output-status.tsx +38 -0
  160. package/src/components/paper-detail.tsx +2 -2
  161. package/src/components/paper-row.tsx +41 -0
  162. package/src/components/record-dialog.tsx +13 -1
  163. package/src/components/record-preview.tsx +8 -14
  164. package/src/lib/labels.tsx +69 -6
  165. package/src/model/index.ts +6 -2
  166. package/src/model/kind.ts +4 -5
  167. package/src/model/output-provenance.ts +18 -0
  168. package/src/model/output-status.ts +18 -0
  169. package/src/model/relations.ts +92 -26
  170. package/src/primitives/dialog.tsx +7 -1
  171. package/src/primitives/index.ts +6 -0
  172. package/src/primitives/inline-reference.tsx +25 -0
  173. package/src/primitives/kind-glyph.tsx +24 -0
  174. package/src/primitives/output-status-glyph.tsx +37 -0
  175. package/src/primitives/preview-popover.tsx +1 -1
  176. package/src/primitives/record-list.tsx +3 -4
  177. package/src/primitives/relation-list.tsx +4 -7
  178. package/src/primitives/tooltip.tsx +51 -0
  179. package/src/views/inventory.tsx +54 -22
  180. package/styles/base.css +2 -1
  181. package/styles/blocks/analysis-tree.css +23 -26
  182. package/styles/blocks/decisions-list.css +6 -6
  183. package/styles/blocks/findings-list.css +50 -0
  184. package/styles/blocks/outputs-list.css +13 -434
  185. package/styles/blocks/papers-list.css +8 -74
  186. package/styles/blocks/records.css +13 -13
  187. package/styles/components/artifact-preview.css +15 -15
  188. package/styles/components/decision-detail.css +23 -23
  189. package/styles/components/evidence.css +2 -7
  190. package/styles/components/figure-zoom.css +62 -0
  191. package/styles/components/finding-detail.css +73 -11
  192. package/styles/components/input-detail.css +7 -7
  193. package/styles/components/insight-detail.css +17 -17
  194. package/styles/components/insight-list.css +6 -6
  195. package/styles/components/insight-trigger.css +5 -5
  196. package/styles/components/output-card.css +290 -0
  197. package/styles/components/output-detail.css +139 -51
  198. package/styles/components/output-entry.css +141 -0
  199. package/styles/components/output-provenance.css +94 -0
  200. package/styles/components/output-status.css +31 -0
  201. package/styles/components/paper-detail.css +22 -22
  202. package/styles/components/paper-doi.css +2 -2
  203. package/styles/components/paper-pdf-viewer.css +6 -6
  204. package/styles/components/paper-row.css +72 -0
  205. package/styles/components/record-preview.css +444 -268
  206. package/styles/primitives/badge.css +1 -1
  207. package/styles/primitives/button.css +25 -25
  208. package/styles/primitives/count-heading.css +3 -3
  209. package/styles/primitives/detail-layout.css +20 -20
  210. package/styles/primitives/dialog.css +75 -93
  211. package/styles/primitives/empty-state.css +1 -1
  212. package/styles/primitives/inline-reference.css +37 -0
  213. package/styles/primitives/kind-glyph.css +31 -0
  214. package/styles/primitives/kind.css +6 -0
  215. package/styles/primitives/preview-popover.css +6 -11
  216. package/styles/primitives/prose.css +1 -1
  217. package/styles/primitives/record-list.css +32 -48
  218. package/styles/primitives/relation-list.css +14 -36
  219. package/styles/primitives/surface-header.css +15 -11
  220. package/styles/primitives/tooltip.css +22 -0
  221. package/styles/tokens.css +19 -9
  222. package/styles/views/inventory.css +58 -27
  223. package/dist/blocks/prior-insights-list.d.ts +0 -9
  224. package/dist/blocks/prior-insights-list.d.ts.map +0 -1
  225. package/dist/blocks/prior-insights-list.js +0 -29
  226. package/dist/blocks/prior-insights-list.js.map +0 -1
  227. package/src/blocks/prior-insights-list.tsx +0 -52
@@ -5,10 +5,10 @@
5
5
  display: grid;
6
6
  width: 100%;
7
7
  height: auto;
8
- max-height: min(44rem, calc(100vh - 8rem));
8
+ max-height: min(704px, calc(100vh - 128px));
9
9
  min-height: 0;
10
10
  overflow: hidden;
11
- grid-template-columns: minmax(0, 1fr) clamp(17.5rem, 27%, 20rem);
11
+ grid-template-columns: minmax(0, 1fr) clamp(280px, 27%, 320px);
12
12
  align-items: stretch;
13
13
  }
14
14
 
@@ -18,17 +18,17 @@
18
18
  overflow-y: auto;
19
19
  overscroll-behavior: contain;
20
20
  scrollbar-gutter: stable;
21
- padding: clamp(1rem, 2.6vw, 2rem);
21
+ padding: clamp(16px, 2.6vw, 32px);
22
22
  }
23
23
 
24
24
  :where(.astra-ui) .astra-output-detail__fullscreen-header {
25
25
  display: none;
26
- min-height: 2.25rem;
26
+ min-height: 36px;
27
27
  align-items: center;
28
- gap: 0.75rem;
28
+ gap: 12px;
29
29
  justify-content: space-between;
30
30
  background: var(--astra-color-header);
31
- padding: 0.35rem 0.5rem 0.35rem 0.75rem;
31
+ padding: 5.6px 8px 5.6px 12px;
32
32
  color: var(--astra-color-text-subtle);
33
33
  font-family: var(--astra-font-ui);
34
34
  font-size: var(--astra-font-size-2xs);
@@ -38,20 +38,20 @@
38
38
  display: flex;
39
39
  min-width: 0;
40
40
  align-items: baseline;
41
- gap: 0.6rem;
41
+ gap: 9.6px;
42
42
  }
43
43
 
44
44
  :where(.astra-ui) .astra-output-detail__fullscreen-header button {
45
45
  display: inline-flex;
46
- min-height: 1.5rem;
46
+ min-height: 24px;
47
47
  align-items: center;
48
- gap: 0.35rem;
48
+ gap: 5.6px;
49
49
  cursor: pointer;
50
50
  border: 1px solid var(--astra-color-border-strong);
51
51
  border-radius: 0;
52
52
  background: var(--astra-color-surface-raised);
53
53
  color: var(--astra-color-accent);
54
- padding: 0.18rem 0.45rem;
54
+ padding: 2.88px 7.2px;
55
55
  font: inherit;
56
56
  font-size: var(--astra-font-size-xs);
57
57
  }
@@ -73,7 +73,7 @@
73
73
  margin: 0;
74
74
  color: var(--astra-color-text-muted);
75
75
  font-family: var(--astra-font-body);
76
- font-size: 1rem;
76
+ font-size: 16px;
77
77
  line-height: 1.6;
78
78
  white-space: normal;
79
79
  }
@@ -82,7 +82,7 @@
82
82
  cursor: pointer;
83
83
  color: var(--astra-color-text);
84
84
  font-family: var(--astra-font-ui);
85
- font-size: 0.82rem;
85
+ font-size: 13.var(--astra-font-size-xs);
86
86
  font-weight: 700;
87
87
  }
88
88
 
@@ -111,6 +111,7 @@
111
111
  }
112
112
 
113
113
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__description h4,
114
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__metric h4,
114
115
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__recipe summary {
115
116
  color: var(--astra-color-text);
116
117
  font: 700 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
@@ -120,20 +121,20 @@
120
121
 
121
122
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__description-text {
122
123
  color: var(--astra-color-text-muted);
123
- font: 400 0.84375rem/1.55 var(--astra-font-body);
124
+ font: 400 13.5px/1.55 var(--astra-font-body);
124
125
  }
125
126
 
126
127
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__result {
127
128
  display: block;
128
129
  min-height: 0;
129
130
  overflow: visible;
130
- padding: 1.5rem;
131
+ padding: 24px;
131
132
  background: var(--astra-color-canvas);
132
133
  }
133
134
 
134
135
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__layout:where([data-layout="reader"]) {
135
- grid-template-columns: minmax(0, 1fr) clamp(17.5rem, 27%, 20rem);
136
- min-height: max(32rem, calc(100dvh - 13rem));
136
+ grid-template-columns: minmax(0, 1fr) clamp(280px, 27%, 320px);
137
+ min-height: max(512px, calc(100dvh - 208px));
137
138
  }
138
139
 
139
140
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__layout:where([data-layout="reader"]) .astra-output-detail__result {
@@ -145,14 +146,14 @@
145
146
 
146
147
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__layout:where([data-layout="reader"]) .astra-output-detail__preview {
147
148
  width: 100%;
148
- min-height: 24rem;
149
+ min-height: 384px;
149
150
  margin: 0;
150
151
  border: 1px solid var(--astra-color-border);
151
152
  background: var(--astra-color-surface-raised);
152
153
  }
153
154
 
154
155
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__preview[data-type="table"] {
155
- --astra-table-preview-max-height: min(36rem, 65dvh);
156
+ --astra-table-preview-max-height: min(576px, 65dvh);
156
157
  display: block;
157
158
  width: 100%;
158
159
  min-height: 0;
@@ -171,7 +172,7 @@
171
172
  width: 100%;
172
173
  max-width: none;
173
174
  margin: 0;
174
- padding: 1.25rem 1.625rem 2rem;
175
+ padding: 20px 26px 32px;
175
176
  border-block-start: 1px solid var(--astra-color-border);
176
177
  background: var(--astra-color-canvas);
177
178
  }
@@ -184,7 +185,7 @@
184
185
  scrollbar-gutter: stable;
185
186
  border-block-start: 0;
186
187
  border-inline-start: 1px solid var(--astra-color-border);
187
- padding: 1.125rem 1rem 1.5rem;
188
+ padding: 18px 16px 24px;
188
189
  }
189
190
 
190
191
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__artifact[data-expanded] .astra-output-detail__preview,
@@ -195,19 +196,25 @@
195
196
  max-height: none;
196
197
  }
197
198
 
199
+ /* Nothing precedes the provenance in the single column, so it opens the
200
+ surface: the result's own padding is the only space above the first
201
+ heading. */
198
202
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__layout:where([data-layout="single"]) .astra-output-detail__provenance {
199
203
  position: static;
200
204
  overflow: visible;
201
- margin-top: 1.5rem;
205
+ margin-top: 0;
202
206
  border-inline-start: 0;
203
207
  background: transparent;
204
- padding: 1.25rem 0 0;
208
+ padding: 0;
205
209
  }
206
210
 
207
211
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__description,
208
212
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__recipe {
209
213
  margin: 0;
210
- padding-block: 0.875rem;
214
+ padding-block: 14px;
215
+ }
216
+
217
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__description {
211
218
  border-block-start: 1px solid var(--astra-color-border);
212
219
  }
213
220
 
@@ -220,12 +227,12 @@
220
227
 
221
228
  @media (max-width: 760px) {
222
229
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__result {
223
- min-height: 20rem;
224
- padding: 1rem;
230
+ min-height: 320px;
231
+ padding: 16px;
225
232
  }
226
233
 
227
234
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__preview {
228
- min-height: 17rem;
235
+ min-height: 272px;
229
236
  }
230
237
 
231
238
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__layout:where([data-layout="reader"]) {
@@ -245,14 +252,14 @@
245
252
  }
246
253
 
247
254
  }
248
- @container (max-width: 47.5rem) {
255
+ @container (max-width: 760px) {
249
256
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__result {
250
- min-height: 20rem;
251
- padding: 1rem;
257
+ min-height: 320px;
258
+ padding: 16px;
252
259
  }
253
260
 
254
261
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__preview {
255
- min-height: 17rem;
262
+ min-height: 272px;
256
263
  }
257
264
 
258
265
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__layout:where([data-layout="reader"]) {
@@ -288,15 +295,16 @@
288
295
  }
289
296
 
290
297
  :where(.astra-ui) .astra-output-detail__description h4,
298
+ :where(.astra-ui) .astra-output-detail__metric h4,
291
299
  :where(.astra-ui) .astra-output-detail__recipe h4 {
292
- margin: 0 0 0.5rem;
300
+ margin: 0 0 8px;
293
301
  color: var(--astra-color-text);
294
302
  font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
295
303
  }
296
304
 
297
305
  :where(.astra-ui) .astra-output-detail__layout:where([data-layout="reader"]) {
298
306
  display: grid;
299
- grid-template-columns: minmax(0, 1fr) clamp(19.5rem, 27%, 21rem);
307
+ grid-template-columns: minmax(0, 1fr) clamp(312px, 27%, 336px);
300
308
  align-items: stretch;
301
309
  }
302
310
 
@@ -318,7 +326,7 @@
318
326
  place-items: center;
319
327
  overflow: hidden;
320
328
  background: var(--astra-color-canvas);
321
- padding: 1rem;
329
+ padding: 16px;
322
330
  }
323
331
 
324
332
  :where(.astra-ui) .astra-output-detail__preview {
@@ -358,7 +366,7 @@
358
366
  max-width: 100%;
359
367
  max-height: 100%;
360
368
  object-fit: contain;
361
- padding: 0.75rem;
369
+ padding: 12px;
362
370
  }
363
371
 
364
372
  /* An image artifact fills the preview box as a column: the picture takes
@@ -417,25 +425,30 @@
417
425
  scrollbar-gutter: stable;
418
426
  border: 0;
419
427
  background: var(--astra-color-canvas);
420
- padding: 1.25rem 1.125rem 1.875rem;
428
+ padding: 20px 18px 30px;
421
429
  }
422
430
 
423
431
  /* Recipe closes the rail; give it the same gap the relation lists carry. */
424
432
  :where(.astra-ui) .astra-output-detail__recipe {
425
- margin: 1.625rem 0 0;
426
- padding: 0 0 0.125rem;
433
+ margin: 26px 0 0;
434
+ padding: 0 0 2px;
427
435
  border: 0;
428
436
  }
429
437
 
438
+ /* The host's provenance slot follows the recipe and carries its own gap. */
439
+ :where(.astra-ui) .astra-output-detail__provenance > .astra-output-provenance {
440
+ margin-top: 20px;
441
+ }
442
+
430
443
  :where(.astra-ui) .astra-output-detail__recipe pre {
431
444
  max-height: none;
432
445
  margin: 0;
433
446
  overflow: auto;
434
447
  border: 1px solid var(--astra-color-border);
435
- border-radius: 0.25rem;
448
+ border-radius: 4px;
436
449
  background: var(--astra-color-canvas);
437
450
  color: var(--astra-color-text-muted);
438
- padding: 0.625rem;
451
+ padding: 10px;
439
452
  white-space: pre-wrap;
440
453
  word-break: break-word;
441
454
  }
@@ -448,7 +461,7 @@
448
461
 
449
462
  :where(.astra-ui) .astra-output-detail__layout:where([data-layout="single"]) .astra-output-detail__result {
450
463
  overflow: visible;
451
- padding: 1.5rem 1.625rem 1.875rem;
464
+ padding: 24px 26px 30px;
452
465
  }
453
466
 
454
467
 
@@ -461,18 +474,65 @@
461
474
  }
462
475
 
463
476
  :where(.astra-ui) .astra-output-detail__layout:where([data-layout="single"]) .astra-output-detail__description + * {
464
- margin-top: 1.25rem;
477
+ margin-top: 20px;
465
478
  }
466
479
 
467
480
  :where(.astra-ui) .astra-output-detail__layout:where([data-layout="single"]) .astra-output-detail__provenance {
468
481
  position: static;
469
482
  overflow: visible;
470
- margin-top: 1.625rem;
483
+ margin-top: 0;
471
484
  border: 0;
472
485
  background: var(--astra-color-canvas);
473
486
  padding: 0;
474
487
  }
475
488
 
489
+ /* The full "via" origin list for assistive technology beside the truncated
490
+ "+N more" text. */
491
+ :where(.astra-ui) .astra-output-detail__visually-hidden {
492
+ position: absolute;
493
+ width: 1px;
494
+ height: 1px;
495
+ padding: 0;
496
+ margin: -1px;
497
+ overflow: hidden;
498
+ clip: rect(0, 0, 0, 0);
499
+ white-space: nowrap;
500
+ border: 0;
501
+ }
502
+
503
+ /* A metric has no picture to frame: the value reads as a pill at the head of
504
+ the provenance, and what follows takes the gap a relation list carries. */
505
+ :where(.astra-ui) .astra-output-detail__metric {
506
+ margin: 0;
507
+ padding: 0;
508
+ }
509
+
510
+ :where(.astra-ui) .astra-output-detail__layout .astra-output-detail__metric + * {
511
+ margin-top: 26px;
512
+ }
513
+
514
+ :where(.astra-ui) .astra-output-detail__metric-pill {
515
+ display: inline-flex;
516
+ width: max-content;
517
+ max-width: 100%;
518
+ align-items: baseline;
519
+ border: 1px solid color-mix(in srgb, var(--astra-color-kind-output) 32%, var(--astra-color-border));
520
+ border-radius: var(--astra-radius-control);
521
+ background: var(--astra-color-kind-output-soft);
522
+ padding: 7px 14px;
523
+ }
524
+
525
+ :where(.astra-ui) .astra-output-detail__metric-pill .astra-artifact {
526
+ justify-content: flex-start;
527
+ }
528
+
529
+ :where(.astra-ui) .astra-output-detail__metric-pill .astra-artifact__metric-value {
530
+ max-width: none;
531
+ color: var(--astra-color-kind-output);
532
+ font-size: var(--astra-font-size-title);
533
+ text-align: start;
534
+ }
535
+
476
536
  :where(.astra-ui) .astra-output-detail__artifact[data-expanded] {
477
537
  position: fixed;
478
538
  z-index: var(--astra-z-fullscreen);
@@ -492,23 +552,23 @@
492
552
  }
493
553
 
494
554
  :where(.astra-ui) .astra-output-detail__artifact[data-expanded] .astra-output-detail__fullscreen-header {
495
- padding-inline: 1rem;
555
+ padding-inline: 16px;
496
556
  display: flex;
497
557
  box-sizing: border-box;
498
558
  width: 100%;
499
- min-height: 3.25rem;
559
+ min-height: 52px;
500
560
  align-items: center;
501
561
  justify-content: space-between;
502
- gap: 1rem;
562
+ gap: 16px;
503
563
  border-bottom: 1px solid var(--astra-color-border);
504
564
  background: var(--astra-color-canvas);
505
- padding: 0.5625rem 0.875rem;
565
+ padding: 9px 14px;
506
566
  }
507
567
 
508
568
  :where(.astra-ui) .astra-output-detail__fullscreen-header > span {
509
569
  display: grid;
510
570
  min-width: 0;
511
- gap: 0.125rem;
571
+ gap: 2px;
512
572
  }
513
573
 
514
574
  :where(.astra-ui) .astra-output-detail__fullscreen-header small {
@@ -522,7 +582,7 @@
522
582
  min-width: 0;
523
583
  overflow: hidden;
524
584
  color: var(--astra-color-text);
525
- font: 700 1rem/1.2 var(--astra-font-ui);
585
+ font: 700 16px/1.2 var(--astra-font-ui);
526
586
  text-overflow: ellipsis;
527
587
  white-space: nowrap;
528
588
  }
@@ -543,10 +603,10 @@
543
603
  height: 100%;
544
604
  max-height: none;
545
605
  object-fit: contain;
546
- padding: clamp(1rem, 3vw, 2.5rem);
606
+ padding: clamp(16px, 3vw, 40px);
547
607
  }
548
608
 
549
- @media (max-width: 47.5rem) {
609
+ @media (max-width: 760px) {
550
610
  :where(.astra-ui) .astra-output-detail__layout:where([data-layout="reader"]) {
551
611
  display: block;
552
612
  height: auto;
@@ -559,7 +619,7 @@
559
619
  }
560
620
 
561
621
  :where(.astra-ui) .astra-output-detail__artifact {
562
- min-height: 20rem;
622
+ min-height: 320px;
563
623
  }
564
624
 
565
625
  :where(.astra-ui) .astra-output-detail__provenance {
@@ -614,4 +674,32 @@
614
674
  background: var(--astra-color-canvas);
615
675
  }
616
676
 
677
+ :where(.astra-ui) .astra-output-detail__recipe-heading {
678
+ display: flex;
679
+ align-items: baseline;
680
+ justify-content: space-between;
681
+ gap: 12px;
682
+ margin-bottom: 8px;
683
+ }
684
+
685
+ :where(.astra-ui) .astra-output-detail__recipe-heading h4 {
686
+ margin: 0;
687
+ }
688
+
689
+ :where(.astra-ui) .astra-output-detail__recipe-heading button {
690
+ padding: 0;
691
+ border: 0;
692
+ background: transparent;
693
+ color: var(--astra-color-text-subtle);
694
+ font: inherit;
695
+ font-size: var(--astra-font-size-sm);
696
+ white-space: nowrap;
697
+ text-decoration: underline;
698
+ text-underline-offset: 3px;
699
+ cursor: pointer;
700
+ }
701
+
702
+ :where(.astra-ui) .astra-output-detail__recipe-heading button:hover {
703
+ color: var(--astra-color-text);
704
+ }
617
705
  }
@@ -0,0 +1,141 @@
1
+ /* output-entry — emitted by src/components/output-entry.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.components {
4
+
5
+ :where(.astra-ui) .astra-output-entry {
6
+ appearance: none;
7
+ position: relative;
8
+ display: grid;
9
+ grid-template-columns: minmax(0, 1fr);
10
+ align-items: baseline;
11
+ gap: var(--astra-space-3);
12
+ width: 100%;
13
+ min-width: 0;
14
+ min-height: 44px;
15
+ margin: 0;
16
+ padding: var(--astra-space-3) var(--astra-space-2);
17
+ border: 0;
18
+ border-radius: 0;
19
+ background: transparent;
20
+ color: var(--astra-color-text);
21
+ font: 400 var(--astra-font-size-sm)/1.5 var(--astra-font-ui);
22
+ overflow: visible;
23
+ text-align: start;
24
+ cursor: pointer;
25
+ }
26
+
27
+ /* A file row carries its marker inside the row (see output-status.css);
28
+ reserve its width so long names stay clear of it. */
29
+ :where(.astra-ui) .astra-output-entry:where([data-kind="file"]) {
30
+ padding-inline-end: calc(16px + 2 * var(--astra-space-2));
31
+ }
32
+
33
+ :where(.astra-ui) .astra-output-entry:hover {
34
+ background: var(--astra-color-surface-muted);
35
+ }
36
+
37
+ :where(.astra-ui) .astra-output-entry:focus-visible {
38
+ outline: 2px solid var(--astra-color-focus);
39
+ outline-offset: -2px;
40
+ background: var(--astra-color-surface-muted);
41
+ }
42
+
43
+ :where(.astra-ui) .astra-output-entry__name {
44
+ min-width: 0;
45
+ overflow-wrap: anywhere;
46
+ font-weight: 500;
47
+ }
48
+
49
+ :where(.astra-ui) .astra-output-entry__value {
50
+ min-width: 0;
51
+ text-align: center;
52
+ font-variant-numeric: tabular-nums;
53
+ overflow-wrap: anywhere;
54
+ }
55
+
56
+ :where(.astra-ui) .astra-output-entry__status {
57
+ color: var(--astra-color-text-subtle);
58
+ font-size: var(--astra-font-size-xs);
59
+ overflow-wrap: anywhere;
60
+ }
61
+
62
+ :where(.astra-ui) .astra-output-entry__name .astra-output-entry__status {
63
+ display: block;
64
+ font-weight: 400;
65
+ }
66
+
67
+ :where(.astra-ui) .astra-output-entry__value .astra-artifact__metric {
68
+ flex-wrap: wrap;
69
+ justify-content: center;
70
+ gap: 0 0.3em;
71
+ font: inherit;
72
+ }
73
+
74
+ :where(.astra-ui) .astra-output-entry__value .astra-artifact__metric-label {
75
+ display: none;
76
+ }
77
+
78
+ :where(.astra-ui) .astra-output-entry__value :is(.astra-artifact__metric-value, .astra-artifact__metric-uncertainty, .astra-artifact__metric-unit) {
79
+ max-width: 100%;
80
+ color: inherit;
81
+ font: inherit;
82
+ text-align: center;
83
+ }
84
+
85
+ :where(.astra-ui) .astra-output-entry__value .astra-artifact__metric-value {
86
+ font-weight: 600;
87
+ }
88
+
89
+ :where(.astra-ui) .astra-output-entry__value .astra-artifact__placeholder {
90
+ display: block;
91
+ text-align: center;
92
+ }
93
+
94
+ :where(.astra-ui) .astra-output-entry__value .astra-artifact__placeholder > span:first-child {
95
+ display: none;
96
+ }
97
+
98
+ :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) {
99
+ gap: calc(0.5 * var(--astra-space-2));
100
+ width: auto;
101
+ max-width: 100%;
102
+ min-height: 52px;
103
+ padding: var(--astra-space-2) var(--astra-space-3);
104
+ border: 1px solid var(--astra-color-border);
105
+ border-radius: calc(2 * var(--astra-radius-preview));
106
+ background: var(--astra-color-artifact-paper);
107
+ color: var(--astra-color-artifact-ink);
108
+ font-size: var(--astra-font-size-xs);
109
+ text-align: center;
110
+ }
111
+
112
+ :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) .astra-output-entry__name {
113
+ grid-row: 2;
114
+ color: color-mix(in srgb, var(--astra-color-artifact-ink) 72%, var(--astra-color-artifact-paper));
115
+ font: 600 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
116
+ }
117
+
118
+ :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) .astra-output-entry__value {
119
+ grid-row: 1;
120
+ }
121
+
122
+ :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) .astra-artifact__metric {
123
+ color: var(--astra-color-artifact-ink);
124
+ }
125
+
126
+ :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) .astra-artifact__metric-value {
127
+ font-size: 16px;
128
+ line-height: 1.25;
129
+ }
130
+
131
+ :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) :is(.astra-output-entry__status, .astra-artifact__placeholder) {
132
+ color: color-mix(in srgb, var(--astra-color-artifact-ink) 72%, var(--astra-color-artifact-paper));
133
+ text-align: center;
134
+ }
135
+
136
+ :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]):hover,
137
+ :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]):focus-visible {
138
+ background: var(--astra-color-artifact-paper);
139
+ border-color: var(--astra-color-focus);
140
+ }
141
+ }
@@ -0,0 +1,94 @@
1
+ /* output-provenance — recorded execution details */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.components {
4
+ :where(.astra-ui) .astra-output-provenance {
5
+ font-size: var(--astra-font-size-sm);
6
+ }
7
+ :where(.astra-ui) .astra-output-provenance__heading {
8
+ display: flex;
9
+ align-items: baseline;
10
+ justify-content: space-between;
11
+ gap: 12px;
12
+ margin-bottom: 10px;
13
+ }
14
+ :where(.astra-ui) .astra-output-provenance__heading h4 {
15
+ margin: 0;
16
+ }
17
+ :where(.astra-ui) .astra-output-provenance__heading button {
18
+ padding: 0;
19
+ border: 0;
20
+ background: transparent;
21
+ color: var(--astra-color-text-subtle);
22
+ font: inherit;
23
+ text-decoration: underline;
24
+ text-underline-offset: 3px;
25
+ cursor: pointer;
26
+ }
27
+ :where(.astra-ui) .astra-output-provenance__heading button:hover {
28
+ color: var(--astra-color-text);
29
+ }
30
+ :where(.astra-ui) .astra-output-provenance :where(dl, dd, p) {
31
+ margin: 0;
32
+ }
33
+ :where(.astra-ui) .astra-output-provenance :where(dt) {
34
+ color: var(--astra-color-text-muted);
35
+ }
36
+ :where(.astra-ui) .astra-output-provenance__summary {
37
+ display: grid;
38
+ gap: 10px;
39
+ }
40
+ :where(.astra-ui) .astra-output-provenance__summary > div {
41
+ display: grid;
42
+ gap: 3px;
43
+ }
44
+ :where(.astra-ui) .astra-output-provenance__status {
45
+ display: inline-flex;
46
+ align-items: center;
47
+ gap: 6px;
48
+ }
49
+ :where(.astra-ui) .astra-output-provenance__reason {
50
+ margin-top: 3px;
51
+ color: var(--astra-color-text-muted);
52
+ font-size: var(--astra-font-size-xs);
53
+ }
54
+ :where(.astra-ui) .astra-output-provenance__icon {
55
+ display: inline-grid;
56
+ width: 16px;
57
+ height: 16px;
58
+ place-items: center;
59
+ border-radius: 50%;
60
+ color: var(--astra-color-kind-output);
61
+ background: var(--astra-color-kind-output-soft);
62
+ }
63
+ :where(.astra-ui) .astra-output-provenance__icon[data-state="behind"] {
64
+ color: var(--astra-color-kind-decision-ink);
65
+ background: var(--astra-color-kind-decision-soft);
66
+ }
67
+ :where(.astra-ui) .astra-output-provenance__icon[data-state="stale"] {
68
+ color: var(--astra-color-danger);
69
+ background: var(--astra-color-danger-soft);
70
+ }
71
+ :where(.astra-ui) .astra-output-provenance :where(code, pre) {
72
+ overflow-wrap: anywhere;
73
+ white-space: pre-wrap;
74
+ font-size: var(--astra-font-size-xs);
75
+ }
76
+ :where(.astra-ui) .astra-output-provenance__dialog-panel {
77
+ width: min(680px, 100%);
78
+ }
79
+ :where(.astra-ui) .astra-output-provenance__details {
80
+ display: grid;
81
+ gap: 20px;
82
+ padding: 24px;
83
+ }
84
+ :where(.astra-ui) .astra-output-provenance__details h4 {
85
+ margin: 0 0 8px;
86
+ }
87
+ :where(.astra-ui) .astra-output-provenance__details pre {
88
+ margin: 0;
89
+ }
90
+ :where(.astra-ui) .astra-output-provenance__details dl {
91
+ display: grid;
92
+ gap: 10px;
93
+ }
94
+ }