@astra-spec/ui 0.0.3 → 0.0.5

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 (273) hide show
  1. package/README.md +173 -20
  2. package/TOKENS.md +17 -8
  3. package/components.css +1 -0
  4. package/dist/blocks/decisions-list.d.ts +0 -1
  5. package/dist/blocks/decisions-list.d.ts.map +1 -1
  6. package/dist/blocks/decisions-list.js +1 -5
  7. package/dist/blocks/decisions-list.js.map +1 -1
  8. package/dist/blocks/findings-list.d.ts.map +1 -1
  9. package/dist/blocks/findings-list.js +2 -1
  10. package/dist/blocks/findings-list.js.map +1 -1
  11. package/dist/blocks/index.d.ts +3 -3
  12. package/dist/blocks/index.d.ts.map +1 -1
  13. package/dist/blocks/index.js +2 -2
  14. package/dist/blocks/index.js.map +1 -1
  15. package/dist/blocks/inputs-list.js +1 -1
  16. package/dist/blocks/inputs-list.js.map +1 -1
  17. package/dist/blocks/outputs-list.d.ts +2 -2
  18. package/dist/blocks/outputs-list.d.ts.map +1 -1
  19. package/dist/blocks/outputs-list.js +15 -19
  20. package/dist/blocks/outputs-list.js.map +1 -1
  21. package/dist/blocks/section.d.ts +1 -4
  22. package/dist/blocks/section.d.ts.map +1 -1
  23. package/dist/blocks/section.js +3 -13
  24. package/dist/blocks/section.js.map +1 -1
  25. package/dist/components/artifact-preview.d.ts +2 -54
  26. package/dist/components/artifact-preview.d.ts.map +1 -1
  27. package/dist/components/artifact-preview.js +2 -107
  28. package/dist/components/artifact-preview.js.map +1 -1
  29. package/dist/components/decision-detail.d.ts +1 -1
  30. package/dist/components/decision-detail.d.ts.map +1 -1
  31. package/dist/components/decision-detail.js.map +1 -1
  32. package/dist/components/finding-detail.d.ts +2 -2
  33. package/dist/components/finding-detail.d.ts.map +1 -1
  34. package/dist/components/finding-detail.js.map +1 -1
  35. package/dist/components/index.d.ts +9 -13
  36. package/dist/components/index.d.ts.map +1 -1
  37. package/dist/components/index.js +6 -8
  38. package/dist/components/index.js.map +1 -1
  39. package/dist/components/input-detail.d.ts +1 -2
  40. package/dist/components/input-detail.d.ts.map +1 -1
  41. package/dist/components/input-detail.js +0 -3
  42. package/dist/components/input-detail.js.map +1 -1
  43. package/dist/components/insight-detail.d.ts +2 -8
  44. package/dist/components/insight-detail.d.ts.map +1 -1
  45. package/dist/components/insight-detail.js +5 -11
  46. package/dist/components/insight-detail.js.map +1 -1
  47. package/dist/components/insight-trigger.d.ts +1 -1
  48. package/dist/components/insight-trigger.d.ts.map +1 -1
  49. package/dist/components/insight-trigger.js +3 -2
  50. package/dist/components/insight-trigger.js.map +1 -1
  51. package/dist/components/output-detail.d.ts +2 -7
  52. package/dist/components/output-detail.d.ts.map +1 -1
  53. package/dist/components/output-detail.js +3 -30
  54. package/dist/components/output-detail.js.map +1 -1
  55. package/dist/components/output-dialog.d.ts +2 -2
  56. package/dist/components/output-dialog.d.ts.map +1 -1
  57. package/dist/components/output-dialog.js +2 -1
  58. package/dist/components/output-dialog.js.map +1 -1
  59. package/dist/components/paper-detail.d.ts +14 -14
  60. package/dist/components/paper-detail.d.ts.map +1 -1
  61. package/dist/components/paper-detail.js +49 -29
  62. package/dist/components/paper-detail.js.map +1 -1
  63. package/dist/components/paper-pdf-viewer.d.ts +19 -0
  64. package/dist/components/paper-pdf-viewer.d.ts.map +1 -0
  65. package/dist/components/paper-pdf-viewer.js +250 -0
  66. package/dist/components/paper-pdf-viewer.js.map +1 -0
  67. package/dist/components/record-dialog.d.ts +7 -5
  68. package/dist/components/record-dialog.d.ts.map +1 -1
  69. package/dist/components/record-dialog.js +7 -5
  70. package/dist/components/record-dialog.js.map +1 -1
  71. package/dist/components/record-preview.d.ts +2 -2
  72. package/dist/components/record-preview.d.ts.map +1 -1
  73. package/dist/components/record-preview.js +9 -8
  74. package/dist/components/record-preview.js.map +1 -1
  75. package/dist/components/relation-items.d.ts +1 -1
  76. package/dist/components/relation-items.d.ts.map +1 -1
  77. package/dist/components/relation-items.js +10 -3
  78. package/dist/components/relation-items.js.map +1 -1
  79. package/dist/{components/use-detail-stack.d.ts → lib/detail-stack.d.ts} +17 -2
  80. package/dist/lib/detail-stack.d.ts.map +1 -0
  81. package/dist/{components/use-detail-stack.js → lib/detail-stack.js} +15 -2
  82. package/dist/lib/detail-stack.js.map +1 -0
  83. package/dist/lib/index.d.ts +14 -0
  84. package/dist/lib/index.d.ts.map +1 -0
  85. package/dist/lib/index.js +9 -0
  86. package/dist/lib/index.js.map +1 -0
  87. package/dist/lib/labels.d.ts +20 -0
  88. package/dist/lib/labels.d.ts.map +1 -1
  89. package/dist/lib/labels.js +20 -0
  90. package/dist/lib/labels.js.map +1 -1
  91. package/dist/lib/pdf-quote.d.ts +47 -0
  92. package/dist/lib/pdf-quote.d.ts.map +1 -0
  93. package/dist/lib/pdf-quote.js +154 -0
  94. package/dist/lib/pdf-quote.js.map +1 -0
  95. package/dist/lib/pdf-runtime.d.ts +102 -0
  96. package/dist/lib/pdf-runtime.d.ts.map +1 -0
  97. package/dist/lib/pdf-runtime.js +48 -0
  98. package/dist/lib/pdf-runtime.js.map +1 -0
  99. package/dist/lib/preview-data.d.ts +55 -0
  100. package/dist/lib/preview-data.d.ts.map +1 -0
  101. package/dist/lib/preview-data.js +108 -0
  102. package/dist/lib/preview-data.js.map +1 -0
  103. package/dist/lib/prose.d.ts +37 -0
  104. package/dist/lib/prose.d.ts.map +1 -0
  105. package/dist/lib/prose.js +60 -0
  106. package/dist/lib/prose.js.map +1 -0
  107. package/dist/lib/use-isomorphic-layout-effect.d.ts +4 -0
  108. package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
  109. package/dist/lib/use-isomorphic-layout-effect.js +4 -0
  110. package/dist/lib/use-isomorphic-layout-effect.js.map +1 -0
  111. package/dist/lib/use-output-expanded.d.ts +7 -0
  112. package/dist/lib/use-output-expanded.d.ts.map +1 -0
  113. package/dist/lib/use-output-expanded.js +29 -0
  114. package/dist/lib/use-output-expanded.js.map +1 -0
  115. package/dist/model/index.d.ts +5 -3
  116. package/dist/model/index.d.ts.map +1 -1
  117. package/dist/model/index.js +3 -2
  118. package/dist/model/index.js.map +1 -1
  119. package/dist/model/kind.d.ts +9 -0
  120. package/dist/model/kind.d.ts.map +1 -0
  121. package/dist/model/kind.js +25 -0
  122. package/dist/model/kind.js.map +1 -0
  123. package/dist/model/papers.d.ts +6 -6
  124. package/dist/model/papers.d.ts.map +1 -1
  125. package/dist/model/papers.js +8 -0
  126. package/dist/model/papers.js.map +1 -1
  127. package/dist/model/records.d.ts +5 -1
  128. package/dist/model/records.d.ts.map +1 -1
  129. package/dist/model/records.js +9 -0
  130. package/dist/model/records.js.map +1 -1
  131. package/dist/primitives/badge.d.ts +1 -1
  132. package/dist/primitives/badge.d.ts.map +1 -1
  133. package/dist/primitives/button.js +1 -1
  134. package/dist/primitives/button.js.map +1 -1
  135. package/dist/primitives/dialog.d.ts +1 -1
  136. package/dist/primitives/dialog.d.ts.map +1 -1
  137. package/dist/primitives/dialog.js +3 -3
  138. package/dist/primitives/dialog.js.map +1 -1
  139. package/dist/primitives/index.d.ts +8 -9
  140. package/dist/primitives/index.d.ts.map +1 -1
  141. package/dist/primitives/index.js +4 -5
  142. package/dist/primitives/index.js.map +1 -1
  143. package/dist/primitives/inline-reference.d.ts +9 -0
  144. package/dist/primitives/inline-reference.d.ts.map +1 -0
  145. package/dist/primitives/inline-reference.js +14 -0
  146. package/dist/primitives/inline-reference.js.map +1 -0
  147. package/dist/primitives/kind-glyph.d.ts +8 -0
  148. package/dist/primitives/kind-glyph.d.ts.map +1 -0
  149. package/dist/primitives/kind-glyph.js +9 -0
  150. package/dist/primitives/kind-glyph.js.map +1 -0
  151. package/dist/primitives/preview-popover.d.ts +2 -2
  152. package/dist/primitives/preview-popover.d.ts.map +1 -1
  153. package/dist/primitives/preview-popover.js +1 -1
  154. package/dist/primitives/preview-popover.js.map +1 -1
  155. package/dist/primitives/prose.d.ts +1 -35
  156. package/dist/primitives/prose.d.ts.map +1 -1
  157. package/dist/primitives/prose.js +2 -58
  158. package/dist/primitives/prose.js.map +1 -1
  159. package/dist/primitives/record-list.d.ts +1 -1
  160. package/dist/primitives/record-list.d.ts.map +1 -1
  161. package/dist/primitives/record-list.js +3 -2
  162. package/dist/primitives/record-list.js.map +1 -1
  163. package/dist/primitives/relation-list.d.ts +1 -1
  164. package/dist/primitives/relation-list.d.ts.map +1 -1
  165. package/dist/primitives/relation-list.js +3 -2
  166. package/dist/primitives/relation-list.js.map +1 -1
  167. package/dist/primitives/slot.d.ts.map +1 -0
  168. package/dist/{lib → primitives}/slot.js +1 -1
  169. package/dist/primitives/slot.js.map +1 -0
  170. package/dist/primitives/surface-header.d.ts +1 -1
  171. package/dist/primitives/surface-header.d.ts.map +1 -1
  172. package/dist/views/inventory.d.ts +7 -5
  173. package/dist/views/inventory.d.ts.map +1 -1
  174. package/dist/views/inventory.js +5 -4
  175. package/dist/views/inventory.js.map +1 -1
  176. package/isolate.css +7 -0
  177. package/package.json +15 -3
  178. package/primitives.css +2 -0
  179. package/src/blocks/decisions-list.tsx +1 -6
  180. package/src/blocks/findings-list.tsx +2 -1
  181. package/src/blocks/index.ts +2 -3
  182. package/src/blocks/inputs-list.tsx +1 -1
  183. package/src/blocks/outputs-list.tsx +53 -30
  184. package/src/blocks/section.tsx +3 -15
  185. package/src/components/artifact-preview.tsx +6 -161
  186. package/src/components/decision-detail.tsx +2 -1
  187. package/src/components/finding-detail.tsx +3 -2
  188. package/src/components/index.ts +10 -30
  189. package/src/components/input-detail.tsx +2 -5
  190. package/src/components/insight-detail.tsx +20 -35
  191. package/src/components/insight-trigger.tsx +5 -3
  192. package/src/components/output-detail.tsx +17 -38
  193. package/src/components/output-dialog.tsx +4 -3
  194. package/src/components/paper-detail.tsx +121 -66
  195. package/src/components/paper-pdf-viewer.tsx +319 -0
  196. package/src/components/record-dialog.tsx +15 -10
  197. package/src/components/record-preview.tsx +12 -17
  198. package/src/components/relation-items.ts +15 -5
  199. package/src/{components/use-detail-stack.ts → lib/detail-stack.ts} +24 -1
  200. package/src/lib/index.ts +22 -0
  201. package/src/lib/labels.tsx +40 -0
  202. package/src/lib/pdf-quote.ts +189 -0
  203. package/src/lib/pdf-runtime.ts +131 -0
  204. package/src/lib/preview-data.ts +155 -0
  205. package/src/lib/prose.tsx +87 -0
  206. package/src/lib/use-isomorphic-layout-effect.ts +4 -0
  207. package/src/lib/use-output-expanded.ts +27 -0
  208. package/src/model/index.ts +4 -2
  209. package/src/model/kind.ts +33 -0
  210. package/src/model/papers.ts +9 -7
  211. package/src/model/records.ts +12 -0
  212. package/src/primitives/badge.tsx +1 -1
  213. package/src/primitives/button.tsx +1 -1
  214. package/src/primitives/dialog.tsx +3 -5
  215. package/src/primitives/index.ts +8 -17
  216. package/src/primitives/inline-reference.tsx +25 -0
  217. package/src/primitives/kind-glyph.tsx +24 -0
  218. package/src/primitives/preview-popover.tsx +3 -3
  219. package/src/primitives/prose.tsx +1 -86
  220. package/src/primitives/record-list.tsx +3 -4
  221. package/src/primitives/relation-list.tsx +4 -7
  222. package/src/{lib → primitives}/slot.tsx +1 -1
  223. package/src/primitives/surface-header.tsx +1 -1
  224. package/src/views/inventory.tsx +12 -8
  225. package/styles/blocks/analysis-tree.css +6 -6
  226. package/styles/blocks/decisions-list.css +10 -10
  227. package/styles/blocks/outputs-list.css +272 -45
  228. package/styles/blocks/papers-list.css +14 -14
  229. package/styles/blocks/records.css +13 -13
  230. package/styles/components/artifact-preview.css +21 -21
  231. package/styles/components/decision-detail.css +23 -23
  232. package/styles/components/evidence.css +4 -9
  233. package/styles/components/finding-detail.css +11 -11
  234. package/styles/components/input-detail.css +11 -11
  235. package/styles/components/insight-detail.css +57 -95
  236. package/styles/components/insight-list.css +9 -9
  237. package/styles/components/insight-trigger.css +5 -8
  238. package/styles/components/output-detail.css +74 -189
  239. package/styles/components/paper-detail.css +90 -109
  240. package/styles/components/paper-doi.css +5 -14
  241. package/styles/components/paper-pdf-viewer.css +120 -0
  242. package/styles/components/record-preview.css +444 -268
  243. package/styles/primitives/badge.css +2 -2
  244. package/styles/primitives/button.css +25 -25
  245. package/styles/primitives/count-heading.css +5 -5
  246. package/styles/primitives/detail-layout.css +25 -25
  247. package/styles/primitives/dialog.css +86 -86
  248. package/styles/primitives/empty-state.css +1 -1
  249. package/styles/primitives/inline-reference.css +37 -0
  250. package/styles/primitives/kind-glyph.css +31 -0
  251. package/styles/primitives/kind.css +6 -0
  252. package/styles/primitives/preview-popover.css +6 -11
  253. package/styles/primitives/prose.css +1 -1
  254. package/styles/primitives/record-list.css +46 -62
  255. package/styles/primitives/relation-list.css +20 -42
  256. package/styles/primitives/surface-header.css +20 -16
  257. package/styles/tokens.css +26 -8
  258. package/styles/views/inventory.css +27 -29
  259. package/dist/components/detail-entry.d.ts +0 -15
  260. package/dist/components/detail-entry.d.ts.map +0 -1
  261. package/dist/components/detail-entry.js +0 -14
  262. package/dist/components/detail-entry.js.map +0 -1
  263. package/dist/components/use-detail-stack.d.ts.map +0 -1
  264. package/dist/components/use-detail-stack.js.map +0 -1
  265. package/dist/lib/slot.d.ts.map +0 -1
  266. package/dist/lib/slot.js.map +0 -1
  267. package/dist/primitives/kind.d.ts +0 -6
  268. package/dist/primitives/kind.d.ts.map +0 -1
  269. package/dist/primitives/kind.js +0 -14
  270. package/dist/primitives/kind.js.map +0 -1
  271. package/src/components/detail-entry.ts +0 -19
  272. package/src/primitives/kind.ts +0 -19
  273. /package/dist/{lib → primitives}/slot.d.ts +0 -0
@@ -12,10 +12,6 @@
12
12
  grid-template-columns: 1fr;
13
13
  }
14
14
 
15
- :where(.astra-ui) .astra-inventory-outputs__files .astra-record-list__body > button {
16
- grid-template-columns: minmax(0, 1fr) 1rem;
17
- }
18
-
19
15
  }
20
16
  @media (prefers-reduced-motion: reduce) {
21
17
  :where(.astra-ui) .astra-output-card,
@@ -25,10 +21,10 @@
25
21
 
26
22
  }
27
23
  :where(.astra-ui) .astra-inventory-outputs__group-heading {
28
- margin: 0 0 0.85rem;
24
+ margin: 0 0 13.6px;
29
25
  color: var(--astra-color-text);
30
26
  font-family: var(--astra-font-ui);
31
- font-size: 1rem;
27
+ font-size: 16px;
32
28
  font-weight: 700;
33
29
  line-height: 1.4;
34
30
  }
@@ -41,7 +37,7 @@
41
37
  flex-direction: column;
42
38
  overflow: hidden;
43
39
  border: 1px solid var(--astra-color-border);
44
- border-radius: 0.45rem;
40
+ border-radius: 7.2px;
45
41
  background: var(--astra-color-surface-raised);
46
42
  color: var(--astra-color-text);
47
43
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
@@ -60,14 +56,14 @@
60
56
 
61
57
  :where(.astra-ui) .astra-output-card__open {
62
58
  position: absolute;
63
- top: 0.55rem;
64
- right: 0.55rem;
59
+ top: 8.8px;
60
+ right: 8.8px;
65
61
  border-radius: 99px;
66
62
  background: color-mix(in srgb, var(--astra-color-surface) 88%, transparent);
67
63
  color: var(--astra-color-text-muted);
68
- padding: 0.25rem 0.5rem;
64
+ padding: 4px 8px;
69
65
  font-family: var(--astra-font-ui);
70
- font-size: 0.65rem;
66
+ font-size: var(--astra-font-size-2xs);
71
67
  font-weight: 700;
72
68
  opacity: 0;
73
69
  transition: opacity 140ms ease;
@@ -81,7 +77,7 @@
81
77
  :where(.astra-ui) .astra-output-card__kind {
82
78
  color: var(--astra-color-accent);
83
79
  font-family: var(--astra-font-ui);
84
- font-size: 0.65rem;
80
+ font-size: var(--astra-font-size-2xs);
85
81
  font-weight: 700;
86
82
  letter-spacing: 0.09em;
87
83
  text-transform: uppercase;
@@ -90,7 +86,7 @@
90
86
  :where(.astra-ui) .astra-output-card__body strong {
91
87
  overflow: hidden;
92
88
  font-family: var(--astra-font-ui);
93
- font-size: 0.92rem;
89
+ font-size: 14.72px;
94
90
  line-height: 1.2;
95
91
  text-overflow: ellipsis;
96
92
  white-space: nowrap;
@@ -99,15 +95,11 @@
99
95
  :where(.astra-ui) .astra-output-card__body code {
100
96
  overflow: hidden;
101
97
  color: var(--astra-color-text-subtle);
102
- font-size: 0.68rem;
98
+ font-size: var(--astra-font-size-2xs);
103
99
  text-overflow: ellipsis;
104
100
  white-space: nowrap;
105
101
  }
106
102
 
107
- :where(.astra-ui) .astra-inventory-outputs__files {
108
- overflow: visible;
109
- }
110
-
111
103
  :where(.astra-ui) .astra-output-card {
112
104
  --astra-kind: var(--astra-color-kind-output);
113
105
  --astra-kind-ink: var(--astra-color-kind-output);
@@ -147,10 +139,10 @@
147
139
  }
148
140
 
149
141
  :where(.astra-ui) .astra-inventory-outputs__group-heading {
150
- margin: 0 0 0.625rem;
142
+ margin: 0 0 10px;
151
143
  color: var(--astra-color-text-subtle);
152
144
  font-family: var(--astra-font-ui);
153
- font-size: 0.6875rem;
145
+ font-size: var(--astra-font-size-2xs);
154
146
  font-weight: 600;
155
147
  letter-spacing: 0.09em;
156
148
  text-transform: uppercase;
@@ -158,7 +150,7 @@
158
150
 
159
151
  :where(.astra-ui) .astra-inventory-outputs__gallery {
160
152
  grid-template-columns: repeat(4, minmax(0, 1fr));
161
- gap: 0.875rem;
153
+ gap: 14px;
162
154
  }
163
155
 
164
156
  :where(.astra-ui) .astra-output-card {
@@ -188,7 +180,7 @@
188
180
  object-fit: contain;
189
181
  max-height: none;
190
182
  margin: 0;
191
- padding: 0.45rem;
183
+ padding: 7.2px;
192
184
  }
193
185
 
194
186
  :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="image"]) {
@@ -199,40 +191,75 @@
199
191
  border: 0;
200
192
  }
201
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
+
202
229
  :where(.astra-ui) .astra-output-card__open {
203
- top: 0.45rem;
204
- right: 0.45rem;
230
+ top: 7.2px;
231
+ right: 7.2px;
205
232
  border: 0;
206
233
  background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
207
234
  }
208
235
 
209
236
  :where(.astra-ui) .astra-output-card__body {
210
237
  display: grid;
211
- gap: 0.125rem;
212
- padding: 0.55rem 0.6875rem 0.65rem;
238
+ gap: 2px;
239
+ padding: 8.8px 11px 10.4px;
213
240
  }
214
241
 
215
242
  :where(.astra-ui) .astra-output-card__kind {
216
243
  color: var(--astra-color-kind-output);
217
- font-size: 0.5625rem;
244
+ font-size: var(--astra-font-size-2xs);
218
245
  }
219
246
 
220
247
  :where(.astra-ui) .astra-output-card__body strong {
221
- font-size: 0.8125rem;
248
+ font-size: var(--astra-font-size-sm);
222
249
  font-weight: 600;
223
250
  }
224
251
 
225
252
  :where(.astra-ui) .astra-output-card__body code {
226
- font-size: 0.625rem;
253
+ font-size: var(--astra-font-size-2xs);
227
254
  }
228
255
 
229
- @container (max-width: 58rem) {
256
+ @container (max-width: 928px) {
230
257
  :where(.astra-ui) .astra-inventory-outputs__gallery {
231
258
  grid-template-columns: repeat(2, minmax(0, 1fr));
232
259
  }
233
260
 
234
261
  }
235
- @container (max-width: 38rem) {
262
+ @container (max-width: 608px) {
236
263
  :where(.astra-ui) .astra-inventory-outputs__gallery {
237
264
  grid-template-columns: minmax(0, 1fr);
238
265
  }
@@ -247,14 +274,14 @@
247
274
  }
248
275
 
249
276
  :where(.astra-ui) .astra-inventory-outputs__group + .astra-inventory-outputs__group {
250
- margin-top: 1.5rem;
277
+ margin-top: 24px;
251
278
  }
252
279
 
253
280
  :where(.astra-ui) .astra-inventory-outputs__group-heading {
254
- margin: 0 0 0.625rem;
281
+ margin: 0 0 10px;
255
282
  color: var(--astra-color-text-subtle);
256
283
  font-family: var(--astra-font-ui);
257
- font-size: 0.6875rem;
284
+ font-size: var(--astra-font-size-2xs);
258
285
  font-weight: 600;
259
286
  letter-spacing: 0.09em;
260
287
  text-transform: uppercase;
@@ -263,7 +290,7 @@
263
290
  :where(.astra-ui) .astra-inventory-outputs__gallery {
264
291
  display: grid;
265
292
  grid-template-columns: repeat(4, minmax(0, 1fr));
266
- gap: 0.875rem;
293
+ gap: 14px;
267
294
  }
268
295
 
269
296
  :where(.astra-ui) .astra-output-card {
@@ -294,30 +321,30 @@
294
321
  box-sizing: border-box;
295
322
  width: 100%;
296
323
  height: 100%;
297
- padding: 0.35rem;
324
+ padding: 5.6px;
298
325
  object-fit: contain;
299
326
  }
300
327
 
301
328
  :where(.astra-ui) .astra-output-card__open {
302
- top: 0.45rem;
303
- right: 0.45rem;
329
+ top: 7.2px;
330
+ right: 7.2px;
304
331
  padding: 0;
305
332
  border: 0;
306
333
  background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
307
334
  color: var(--astra-color-text-muted);
308
- font: 600 0.625rem/1.2 var(--astra-font-ui);
335
+ font: 600 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
309
336
  }
310
337
 
311
338
  :where(.astra-ui) .astra-output-card__body {
312
339
  display: block;
313
- padding: 0.5625rem 0.6875rem;
340
+ padding: 9px 11px;
314
341
  }
315
342
 
316
343
  :where(.astra-ui) .astra-output-card__kind {
317
344
  display: block;
318
- margin-bottom: 0.125rem;
345
+ margin-bottom: 2px;
319
346
  color: var(--astra-color-kind-output);
320
- font: 700 0.5625rem/1.2 var(--astra-font-ui);
347
+ font: 700 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
321
348
  letter-spacing: 0.08em;
322
349
  text-transform: uppercase;
323
350
  }
@@ -325,7 +352,7 @@
325
352
  :where(.astra-ui) .astra-output-card__body strong {
326
353
  display: block;
327
354
  overflow: hidden;
328
- font: 600 0.8125rem/1.25 var(--astra-font-ui);
355
+ font: 600 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
329
356
  text-overflow: ellipsis;
330
357
  white-space: nowrap;
331
358
  }
@@ -334,16 +361,216 @@
334
361
  display: none;
335
362
  }
336
363
 
337
- @container (max-width: 48rem) {
364
+ @container (max-width: 768px) {
338
365
  :where(.astra-ui) .astra-inventory-outputs__gallery {
339
366
  grid-template-columns: repeat(2, minmax(0, 1fr));
340
367
  }
341
368
 
342
369
  }
343
- @container (max-width: 34rem) {
370
+ @container (max-width: 544px) {
344
371
  :where(.astra-ui) .astra-inventory-outputs__gallery {
345
372
  grid-template-columns: minmax(0, 1fr);
346
373
  }
347
374
 
348
375
  }
376
+
377
+ /* Compact outputs: wrapping metric tiles and a responsive file grid. */
378
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid {
379
+ display: grid;
380
+ grid-template-columns: minmax(0, 1fr);
381
+ column-gap: calc(4 * var(--astra-space-2));
382
+ margin: 0;
383
+ padding: 0;
384
+ list-style: none;
385
+ }
386
+
387
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid > li {
388
+ position: relative;
389
+ display: flex;
390
+ min-width: 0;
391
+ border-bottom: 1px solid var(--astra-color-border-subtle);
392
+ }
393
+
394
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid > li::before {
395
+ content: '';
396
+ position: absolute;
397
+ display: none;
398
+ inset-block: 0;
399
+ inset-inline-start: calc(-2 * var(--astra-space-2));
400
+ border-inline-start: 1px solid var(--astra-color-border);
401
+ pointer-events: none;
402
+ }
403
+
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
+ @container (min-width: 672px) {
497
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) {
498
+ grid-template-columns: repeat(2, minmax(0, 1fr));
499
+ }
500
+
501
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) > li:where(:nth-child(2n))::before {
502
+ display: block;
503
+ }
504
+ }
505
+
506
+ @container (min-width: 1152px) {
507
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) {
508
+ grid-template-columns: repeat(3, minmax(0, 1fr));
509
+ }
510
+
511
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) > li::before {
512
+ display: none;
513
+ }
514
+
515
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) > li:where(:not(:nth-child(3n + 1)))::before {
516
+ display: block;
517
+ }
518
+ }
519
+
520
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="tiles"]) {
521
+ display: flex;
522
+ flex-wrap: wrap;
523
+ align-items: flex-start;
524
+ gap: var(--astra-space-2);
525
+ }
526
+
527
+ :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="tiles"]) > li {
528
+ max-width: 100%;
529
+ border: 0;
530
+ }
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
+ }
349
576
  }
@@ -7,15 +7,15 @@
7
7
  container-type: inline-size;
8
8
  display: flex;
9
9
  flex-direction: column;
10
- gap: 0.625rem;
10
+ gap: 10px;
11
11
  }
12
12
 
13
13
  :where(.astra-ui) .astra-paper-list > button {
14
14
  display: grid;
15
- grid-template-columns: 3.625rem minmax(0, 1fr) auto 2.875rem;
15
+ grid-template-columns: 58px minmax(0, 1fr) auto 46px;
16
16
  align-items: stretch;
17
17
  width: 100%;
18
- min-height: 4.25rem;
18
+ min-height: 68px;
19
19
  padding: 0;
20
20
  border: 1px solid var(--astra-color-border);
21
21
  background: var(--astra-color-surface-raised);
@@ -35,10 +35,10 @@
35
35
  color: var(--astra-color-text-subtle);
36
36
  background: repeating-linear-gradient(
37
37
  0deg,
38
- color-mix(in srgb, var(--astra-color-canvas) 72%, var(--astra-color-surface-raised)) 0 0.375rem,
39
- var(--astra-color-canvas) 0.375rem 0.75rem
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
40
  );
41
- font: 400 0.5rem/1 var(--astra-font-mono);
41
+ font: 400 var(--astra-font-size-2xs)/1 var(--astra-font-mono);
42
42
  place-items: center;
43
43
  }
44
44
 
@@ -46,13 +46,13 @@
46
46
  display: grid;
47
47
  min-width: 0;
48
48
  align-content: center;
49
- gap: 0.1875rem;
50
- padding: 0.6875rem 0.875rem;
49
+ gap: 3px;
50
+ padding: 11px 14px;
51
51
  }
52
52
 
53
53
  :where(.astra-ui) .astra-paper-list__copy strong {
54
54
  overflow: hidden;
55
- font: 600 0.875rem/1.25 var(--astra-font-ui);
55
+ font: 600 var(--astra-font-size)/1.25 var(--astra-font-ui);
56
56
  text-overflow: ellipsis;
57
57
  white-space: nowrap;
58
58
  }
@@ -61,7 +61,7 @@
61
61
  :where(.astra-ui) .astra-paper-list__meta {
62
62
  overflow: hidden;
63
63
  color: var(--astra-color-text-subtle);
64
- font: 400 0.71875rem/1.25 var(--astra-font-ui);
64
+ font: 400 11.5px/1.25 var(--astra-font-ui);
65
65
  text-overflow: ellipsis;
66
66
  white-space: nowrap;
67
67
  }
@@ -69,7 +69,7 @@
69
69
  :where(.astra-ui) .astra-paper-list__meta {
70
70
  display: grid;
71
71
  align-items: center;
72
- padding-inline: 0.75rem;
72
+ padding-inline: 12px;
73
73
  }
74
74
 
75
75
  :where(.astra-ui) .astra-paper-list__arrow {
@@ -78,9 +78,9 @@
78
78
  place-items: center;
79
79
  }
80
80
 
81
- @container (max-width: 48rem) {
81
+ @container (max-width: 768px) {
82
82
  :where(.astra-ui) .astra-paper-list > button {
83
- grid-template-columns: 3.625rem minmax(0, 1fr) 2.875rem;
83
+ grid-template-columns: 58px minmax(0, 1fr) 46px;
84
84
  }
85
85
 
86
86
  :where(.astra-ui) .astra-paper-list__meta {
@@ -89,7 +89,7 @@
89
89
 
90
90
  }
91
91
  :where(.astra-ui) .astra-paper-list {
92
- max-height: min(28rem, 55vh);
92
+ max-height: min(448px, 55vh);
93
93
  overflow-y: auto;
94
94
  overscroll-behavior: contain;
95
95
  scrollbar-gutter: stable;
@@ -7,24 +7,24 @@
7
7
  }
8
8
 
9
9
  :where(.astra-ui) .astra-inventory-records:where([data-kind="input"]) .astra-record-list__body > button {
10
- grid-template-columns: minmax(0, 1fr) minmax(5rem, 0.75fr) 1rem;
10
+ grid-template-columns: minmax(0, 1fr) minmax(80px, 0.75fr) 16px;
11
11
  }
12
12
 
13
13
  }
14
14
  :where(.astra-ui) .astra-inventory-records:where([data-kind="finding"]) .astra-record-list__body > button {
15
- padding-block: 0.78rem;
15
+ padding-block: 12.48px;
16
16
  }
17
17
 
18
18
  /* Space between the tag filter and the list. Only after a filter: the block
19
19
  is a query container (an independent formatting context), so a leading
20
20
  margin would no longer collapse into the section heading's. */
21
21
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) > .astra-inventory-filter + .astra-record-list {
22
- margin-top: 0.75rem;
22
+ margin-top: 12px;
23
23
  }
24
24
 
25
- @container (max-width: 58rem) {
25
+ @container (max-width: 928px) {
26
26
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button {
27
- grid-template-columns: minmax(0, 1.35fr) minmax(7rem, 0.9fr) 1.25rem;
27
+ grid-template-columns: minmax(0, 1.35fr) minmax(112px, 0.9fr) 20px;
28
28
  }
29
29
 
30
30
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__secondary {
@@ -32,11 +32,11 @@
32
32
  }
33
33
 
34
34
  }
35
- @container (max-width: 38rem) {
35
+ @container (max-width: 608px) {
36
36
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button,
37
37
  :where(.astra-ui) .astra-inventory-records:where([data-kind="input"]) .astra-record-list__body > button {
38
- grid-template-columns: minmax(0, 1fr) 1.25rem;
39
- row-gap: 0.25rem;
38
+ grid-template-columns: minmax(0, 1fr) 20px;
39
+ row-gap: 4px;
40
40
  }
41
41
 
42
42
  }
@@ -49,10 +49,10 @@
49
49
  padding: 0;
50
50
  }
51
51
 
52
- @container (max-width: 48rem) {
52
+ @container (max-width: 768px) {
53
53
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button,
54
54
  :where(.astra-ui) .astra-inventory-records:where([data-kind="input"]) .astra-record-list__body > button {
55
- grid-template-columns: minmax(0, 1.3fr) minmax(8rem, 1fr) 1.25rem;
55
+ grid-template-columns: minmax(0, 1.3fr) minmax(128px, 1fr) 20px;
56
56
  }
57
57
 
58
58
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__secondary,
@@ -61,11 +61,11 @@
61
61
  }
62
62
 
63
63
  }
64
- @container (max-width: 34rem) {
64
+ @container (max-width: 544px) {
65
65
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button,
66
66
  :where(.astra-ui) .astra-inventory-records:where([data-kind="input"]) .astra-record-list__body > button {
67
- grid-template-columns: minmax(0, 1fr) 1.25rem;
68
- row-gap: 0.25rem;
67
+ grid-template-columns: minmax(0, 1fr) 20px;
68
+ row-gap: 4px;
69
69
  }
70
70
 
71
71
  }