@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
@@ -12,134 +12,18 @@
12
12
  grid-template-columns: 1fr;
13
13
  }
14
14
 
15
- }
16
- @media (prefers-reduced-motion: reduce) {
17
- :where(.astra-ui) .astra-output-card,
18
- :where(.astra-ui) .astra-output-card__open {
19
- transition: none;
20
- }
21
-
22
15
  }
23
16
  :where(.astra-ui) .astra-inventory-outputs__group-heading {
24
- margin: 0 0 0.85rem;
17
+ margin: 0 0 13.6px;
25
18
  color: var(--astra-color-text);
26
19
  font-family: var(--astra-font-ui);
27
- font-size: 1rem;
20
+ font-size: 16px;
28
21
  font-weight: 700;
29
22
  line-height: 1.4;
30
23
  }
31
24
 
32
- :where(.astra-ui) .astra-output-card {
33
- all: unset;
34
- display: flex;
35
- min-width: 0;
36
- cursor: pointer;
37
- flex-direction: column;
38
- overflow: hidden;
39
- border: 1px solid var(--astra-color-border);
40
- border-radius: 0.45rem;
41
- background: var(--astra-color-surface-raised);
42
- color: var(--astra-color-text);
43
- transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
44
- }
45
-
46
- :where(.astra-ui) .astra-output-card__preview {
47
- position: relative;
48
- display: flex;
49
- aspect-ratio: 16 / 10;
50
- align-items: center;
51
- justify-content: center;
52
- overflow: hidden;
53
- border-bottom: 1px solid var(--astra-color-border);
54
- background: var(--astra-color-surface);
55
- }
56
-
57
- :where(.astra-ui) .astra-output-card__open {
58
- position: absolute;
59
- top: 0.55rem;
60
- right: 0.55rem;
61
- border-radius: 99px;
62
- background: color-mix(in srgb, var(--astra-color-surface) 88%, transparent);
63
- color: var(--astra-color-text-muted);
64
- padding: 0.25rem 0.5rem;
65
- font-family: var(--astra-font-ui);
66
- font-size: var(--astra-font-size-2xs);
67
- font-weight: 700;
68
- opacity: 0;
69
- transition: opacity 140ms ease;
70
- }
71
-
72
- :where(.astra-ui) .astra-output-card:hover .astra-output-card__open,
73
- :where(.astra-ui) .astra-output-card:focus-visible .astra-output-card__open {
74
- opacity: 1;
75
- }
76
-
77
- :where(.astra-ui) .astra-output-card__kind {
78
- color: var(--astra-color-accent);
79
- font-family: var(--astra-font-ui);
80
- font-size: var(--astra-font-size-2xs);
81
- font-weight: 700;
82
- letter-spacing: 0.09em;
83
- text-transform: uppercase;
84
- }
85
-
86
- :where(.astra-ui) .astra-output-card__body strong {
87
- overflow: hidden;
88
- font-family: var(--astra-font-ui);
89
- font-size: 0.92rem;
90
- line-height: 1.2;
91
- text-overflow: ellipsis;
92
- white-space: nowrap;
93
- }
94
-
95
- :where(.astra-ui) .astra-output-card__body code {
96
- overflow: hidden;
97
- color: var(--astra-color-text-subtle);
98
- font-size: var(--astra-font-size-2xs);
99
- text-overflow: ellipsis;
100
- white-space: nowrap;
101
- }
102
-
103
- :where(.astra-ui) .astra-output-card {
104
- --astra-kind: var(--astra-color-kind-output);
105
- --astra-kind-ink: var(--astra-color-kind-output);
106
- --astra-kind-soft: var(--astra-color-kind-output-soft);
107
- }
108
-
109
- :where(.astra-ui) .astra-output-card {
110
- border-color: var(--astra-color-border-strong);
111
- border-radius: 8px;
112
- background: var(--astra-color-surface-raised);
113
- box-shadow: none;
114
- }
115
-
116
- :where(.astra-ui) .astra-output-card:focus-visible {
117
- outline: 2px solid var(--astra-color-accent);
118
- outline-offset: 3px;
119
- outline-color: var(--astra-color-focus);
120
- }
121
-
122
- :where(.astra-ui) .astra-output-card__preview {
123
- border-color: var(--astra-color-border);
124
- background: var(--astra-color-surface);
125
- }
126
-
127
- :where(.astra-ui) .astra-output-card__preview > img {
128
- background: var(--astra-color-artifact-paper);
129
- }
130
-
131
- :where(.astra-ui) .astra-output-card__kind {
132
- color: var(--astra-color-kind-output);
133
- }
134
-
135
- :where(.astra-ui) .astra-output-card__open {
136
- border: 1px solid var(--astra-color-border);
137
- border-radius: var(--astra-radius-control);
138
- background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
139
- }
140
-
141
25
  :where(.astra-ui) .astra-inventory-outputs__group-heading {
142
- margin: 0 0 0.625rem;
26
+ margin: 0 0 10px;
143
27
  color: var(--astra-color-text-subtle);
144
28
  font-family: var(--astra-font-ui);
145
29
  font-size: var(--astra-font-size-2xs);
@@ -150,116 +34,16 @@
150
34
 
151
35
  :where(.astra-ui) .astra-inventory-outputs__gallery {
152
36
  grid-template-columns: repeat(4, minmax(0, 1fr));
153
- gap: 0.875rem;
154
- }
155
-
156
- :where(.astra-ui) .astra-output-card {
157
- border-color: var(--astra-color-border);
158
- border-radius: 0;
159
- background: var(--astra-color-surface-raised);
160
- box-shadow: none;
161
- }
162
-
163
- :where(.astra-ui) .astra-output-card:hover {
164
- transform: none;
165
- border-color: var(--astra-color-kind-output);
166
- box-shadow: none;
167
- }
168
-
169
- :where(.astra-ui) .astra-output-card__preview {
170
- aspect-ratio: 4 / 3;
171
- border-color: var(--astra-color-border-subtle);
172
- background: var(--astra-color-surface-raised);
173
- }
174
-
175
- :where(.astra-ui) .astra-output-card__preview > img,
176
- :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="image"]) > img {
177
- width: 100%;
178
- height: 100%;
179
- box-sizing: border-box;
180
- object-fit: contain;
181
- max-height: none;
182
- margin: 0;
183
- padding: 0.45rem;
184
- }
185
-
186
- :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="image"]) {
187
- display: block;
188
- width: 100%;
189
- height: 100%;
190
- margin: 0;
191
- border: 0;
37
+ gap: 14px;
192
38
  }
193
39
 
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: 0.35rem;
205
- padding: 0.6rem;
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(1.25rem, 3cqw, 1.75rem);
222
- }
223
-
224
- :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="metric"]) .astra-artifact__metric-uncertainty,
225
- :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="metric"]) .astra-artifact__metric-unit {
226
- font-size: var(--astra-font-size-xs);
227
- }
228
-
229
- :where(.astra-ui) .astra-output-card__open {
230
- top: 0.45rem;
231
- right: 0.45rem;
232
- border: 0;
233
- background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
234
- }
235
-
236
- :where(.astra-ui) .astra-output-card__body {
237
- display: grid;
238
- gap: 0.125rem;
239
- padding: 0.55rem 0.6875rem 0.65rem;
240
- }
241
-
242
- :where(.astra-ui) .astra-output-card__kind {
243
- color: var(--astra-color-kind-output);
244
- font-size: var(--astra-font-size-2xs);
245
- }
246
-
247
- :where(.astra-ui) .astra-output-card__body strong {
248
- font-size: var(--astra-font-size-sm);
249
- font-weight: 600;
250
- }
251
-
252
- :where(.astra-ui) .astra-output-card__body code {
253
- font-size: var(--astra-font-size-2xs);
254
- }
255
-
256
- @container (max-width: 58rem) {
40
+ @container (max-width: 928px) {
257
41
  :where(.astra-ui) .astra-inventory-outputs__gallery {
258
42
  grid-template-columns: repeat(2, minmax(0, 1fr));
259
43
  }
260
44
 
261
45
  }
262
- @container (max-width: 38rem) {
46
+ @container (max-width: 608px) {
263
47
  :where(.astra-ui) .astra-inventory-outputs__gallery {
264
48
  grid-template-columns: minmax(0, 1fr);
265
49
  }
@@ -274,11 +58,11 @@
274
58
  }
275
59
 
276
60
  :where(.astra-ui) .astra-inventory-outputs__group + .astra-inventory-outputs__group {
277
- margin-top: 1.5rem;
61
+ margin-top: 24px;
278
62
  }
279
63
 
280
64
  :where(.astra-ui) .astra-inventory-outputs__group-heading {
281
- margin: 0 0 0.625rem;
65
+ margin: 0 0 10px;
282
66
  color: var(--astra-color-text-subtle);
283
67
  font-family: var(--astra-font-ui);
284
68
  font-size: var(--astra-font-size-2xs);
@@ -290,84 +74,16 @@
290
74
  :where(.astra-ui) .astra-inventory-outputs__gallery {
291
75
  display: grid;
292
76
  grid-template-columns: repeat(4, minmax(0, 1fr));
293
- gap: 0.875rem;
294
- }
295
-
296
- :where(.astra-ui) .astra-output-card {
297
- overflow: hidden;
298
- padding: 0;
299
- border: 1px solid var(--astra-color-border);
300
- border-radius: 0;
301
- background: var(--astra-color-surface-raised);
302
- color: var(--astra-color-text);
303
- box-shadow: none;
304
- }
305
-
306
- :where(.astra-ui) .astra-output-card:hover,
307
- :where(.astra-ui) .astra-output-card:focus-visible {
308
- border-color: var(--astra-color-kind-output);
309
- box-shadow: none;
310
- }
311
-
312
- :where(.astra-ui) .astra-output-card__preview {
313
- display: grid;
314
- aspect-ratio: 4 / 3;
315
- border-bottom: 1px solid var(--astra-color-border-subtle);
316
- background: var(--astra-color-surface-raised);
317
- place-items: center;
318
- }
319
-
320
- :where(.astra-ui) .astra-output-card__preview > img {
321
- box-sizing: border-box;
322
- width: 100%;
323
- height: 100%;
324
- padding: 0.35rem;
325
- object-fit: contain;
77
+ gap: 14px;
326
78
  }
327
79
 
328
- :where(.astra-ui) .astra-output-card__open {
329
- top: 0.45rem;
330
- right: 0.45rem;
331
- padding: 0;
332
- border: 0;
333
- background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
334
- color: var(--astra-color-text-muted);
335
- font: 600 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
336
- }
337
-
338
- :where(.astra-ui) .astra-output-card__body {
339
- display: block;
340
- padding: 0.5625rem 0.6875rem;
341
- }
342
-
343
- :where(.astra-ui) .astra-output-card__kind {
344
- display: block;
345
- margin-bottom: 0.125rem;
346
- color: var(--astra-color-kind-output);
347
- font: 700 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
348
- letter-spacing: 0.08em;
349
- text-transform: uppercase;
350
- }
351
-
352
- :where(.astra-ui) .astra-output-card__body strong {
353
- display: block;
354
- overflow: hidden;
355
- font: 600 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
356
- text-overflow: ellipsis;
357
- white-space: nowrap;
358
- }
359
-
360
- :where(.astra-ui) .astra-output-card__body code {
361
- display: none;
362
- }
363
-
364
- @container (max-width: 48rem) {
80
+ @container (max-width: 768px) {
365
81
  :where(.astra-ui) .astra-inventory-outputs__gallery {
366
82
  grid-template-columns: repeat(2, minmax(0, 1fr));
367
83
  }
368
84
 
369
85
  }
370
- @container (max-width: 34rem) {
86
+ @container (max-width: 544px) {
371
87
  :where(.astra-ui) .astra-inventory-outputs__gallery {
372
88
  grid-template-columns: minmax(0, 1fr);
373
89
  }
@@ -401,99 +117,7 @@
401
117
  pointer-events: none;
402
118
  }
403
119
 
404
- :where(.astra-ui) .astra-output-entry {
405
- appearance: none;
406
- display: grid;
407
- grid-template-columns: minmax(0, 1fr) auto;
408
- align-items: baseline;
409
- gap: var(--astra-space-3);
410
- width: 100%;
411
- min-width: 0;
412
- min-height: 2.75rem;
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: 42rem) {
120
+ @container (min-width: 672px) {
497
121
  :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) {
498
122
  grid-template-columns: repeat(2, minmax(0, 1fr));
499
123
  }
@@ -503,7 +127,7 @@
503
127
  }
504
128
  }
505
129
 
506
- @container (min-width: 72rem) {
130
+ @container (min-width: 1152px) {
507
131
  :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) {
508
132
  grid-template-columns: repeat(3, minmax(0, 1fr));
509
133
  }
@@ -528,49 +152,4 @@
528
152
  max-width: 100%;
529
153
  border: 0;
530
154
  }
531
-
532
- :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) {
533
- grid-template-columns: minmax(0, 1fr);
534
- gap: calc(0.5 * var(--astra-space-2));
535
- width: auto;
536
- max-width: 100%;
537
- min-height: 3.25rem;
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: 1rem;
563
- line-height: 1.25;
564
- }
565
-
566
- :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) :is(.astra-output-entry__status, .astra-artifact__placeholder) {
567
- color: color-mix(in srgb, var(--astra-color-artifact-ink) 72%, var(--astra-color-artifact-paper));
568
- text-align: center;
569
- }
570
-
571
- :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]):hover,
572
- :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]):focus-visible {
573
- background: var(--astra-color-artifact-paper);
574
- border-color: var(--astra-color-focus);
575
- }
576
155
  }
@@ -7,89 +7,23 @@
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
- :where(.astra-ui) .astra-paper-list > button {
14
- display: grid;
15
- grid-template-columns: 3.625rem minmax(0, 1fr) auto 2.875rem;
16
- align-items: stretch;
17
- width: 100%;
18
- min-height: 4.25rem;
19
- padding: 0;
20
- border: 1px solid var(--astra-color-border);
21
- background: var(--astra-color-surface-raised);
22
- color: var(--astra-color-text);
23
- cursor: pointer;
24
- text-align: left;
25
- }
26
-
27
- :where(.astra-ui) .astra-paper-list > button:hover,
28
- :where(.astra-ui) .astra-paper-list > button:focus-visible {
29
- border-color: var(--astra-color-kind-output);
30
- }
31
-
32
- :where(.astra-ui) .astra-paper-list__thumbnail {
33
- display: grid;
34
- border-right: 1px solid var(--astra-color-border-subtle);
35
- color: var(--astra-color-text-subtle);
36
- background: repeating-linear-gradient(
37
- 0deg,
38
- color-mix(in srgb, var(--astra-color-canvas) 72%, var(--astra-color-surface-raised)) 0 0.375rem,
39
- var(--astra-color-canvas) 0.375rem 0.75rem
40
- );
41
- font: 400 var(--astra-font-size-2xs)/1 var(--astra-font-mono);
42
- place-items: center;
43
- }
44
-
45
- :where(.astra-ui) .astra-paper-list__copy {
46
- display: grid;
47
- min-width: 0;
48
- align-content: center;
49
- gap: 0.1875rem;
50
- padding: 0.6875rem 0.875rem;
51
- }
52
-
53
- :where(.astra-ui) .astra-paper-list__copy strong {
54
- overflow: hidden;
55
- font: 600 var(--astra-font-size)/1.25 var(--astra-font-ui);
56
- text-overflow: ellipsis;
57
- white-space: nowrap;
58
- }
59
-
60
- :where(.astra-ui) .astra-paper-list__copy small,
61
- :where(.astra-ui) .astra-paper-list__meta {
62
- overflow: hidden;
63
- color: var(--astra-color-text-subtle);
64
- font: 400 0.71875rem/1.25 var(--astra-font-ui);
65
- text-overflow: ellipsis;
66
- white-space: nowrap;
67
- }
68
-
69
- :where(.astra-ui) .astra-paper-list__meta {
70
- display: grid;
71
- align-items: center;
72
- padding-inline: 0.75rem;
73
- }
74
-
75
- :where(.astra-ui) .astra-paper-list__arrow {
76
- display: grid;
77
- color: var(--astra-color-text-faint);
78
- place-items: center;
79
- }
80
-
81
- @container (max-width: 48rem) {
82
- :where(.astra-ui) .astra-paper-list > button {
83
- grid-template-columns: 3.625rem minmax(0, 1fr) 2.875rem;
13
+ /* How a run of rows collapses is the list's call, not the row's, so these
14
+ stay with the sheet that declares the container they query. */
15
+ @container (max-width: 768px) {
16
+ :where(.astra-ui) .astra-paper-list .astra-paper-row {
17
+ grid-template-columns: 58px minmax(0, 1fr) 46px;
84
18
  }
85
19
 
86
- :where(.astra-ui) .astra-paper-list__meta {
20
+ :where(.astra-ui) .astra-paper-list .astra-paper-row__meta {
87
21
  display: none;
88
22
  }
89
23
 
90
24
  }
91
25
  :where(.astra-ui) .astra-paper-list {
92
- max-height: min(28rem, 55vh);
26
+ max-height: min(448px, 55vh);
93
27
  overflow-y: auto;
94
28
  overscroll-behavior: contain;
95
29
  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
  }