@astra-spec/ui 0.0.1

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 (259) hide show
  1. package/LICENSE +29 -0
  2. package/README.md +261 -0
  3. package/TOKENS.md +93 -0
  4. package/blocks.css +7 -0
  5. package/components.css +13 -0
  6. package/dist/blocks/analysis-tree.d.ts +13 -0
  7. package/dist/blocks/analysis-tree.d.ts.map +1 -0
  8. package/dist/blocks/analysis-tree.js +19 -0
  9. package/dist/blocks/analysis-tree.js.map +1 -0
  10. package/dist/blocks/decisions-list.d.ts +17 -0
  11. package/dist/blocks/decisions-list.d.ts.map +1 -0
  12. package/dist/blocks/decisions-list.js +56 -0
  13. package/dist/blocks/decisions-list.js.map +1 -0
  14. package/dist/blocks/findings-list.d.ts +9 -0
  15. package/dist/blocks/findings-list.d.ts.map +1 -0
  16. package/dist/blocks/findings-list.js +35 -0
  17. package/dist/blocks/findings-list.js.map +1 -0
  18. package/dist/blocks/index.d.ts +18 -0
  19. package/dist/blocks/index.d.ts.map +1 -0
  20. package/dist/blocks/index.js +10 -0
  21. package/dist/blocks/index.js.map +1 -0
  22. package/dist/blocks/inputs-list.d.ts +9 -0
  23. package/dist/blocks/inputs-list.d.ts.map +1 -0
  24. package/dist/blocks/inputs-list.js +32 -0
  25. package/dist/blocks/inputs-list.js.map +1 -0
  26. package/dist/blocks/outputs-list.d.ts +18 -0
  27. package/dist/blocks/outputs-list.d.ts.map +1 -0
  28. package/dist/blocks/outputs-list.js +47 -0
  29. package/dist/blocks/outputs-list.js.map +1 -0
  30. package/dist/blocks/papers-list.d.ts +16 -0
  31. package/dist/blocks/papers-list.d.ts.map +1 -0
  32. package/dist/blocks/papers-list.js +20 -0
  33. package/dist/blocks/papers-list.js.map +1 -0
  34. package/dist/blocks/prior-insights-list.d.ts +9 -0
  35. package/dist/blocks/prior-insights-list.d.ts.map +1 -0
  36. package/dist/blocks/prior-insights-list.js +29 -0
  37. package/dist/blocks/prior-insights-list.js.map +1 -0
  38. package/dist/blocks/section.d.ts +36 -0
  39. package/dist/blocks/section.d.ts.map +1 -0
  40. package/dist/blocks/section.js +30 -0
  41. package/dist/blocks/section.js.map +1 -0
  42. package/dist/components/artifact-preview.d.ts +71 -0
  43. package/dist/components/artifact-preview.d.ts.map +1 -0
  44. package/dist/components/artifact-preview.js +170 -0
  45. package/dist/components/artifact-preview.js.map +1 -0
  46. package/dist/components/decision-detail.d.ts +17 -0
  47. package/dist/components/decision-detail.d.ts.map +1 -0
  48. package/dist/components/decision-detail.js +21 -0
  49. package/dist/components/decision-detail.js.map +1 -0
  50. package/dist/components/detail-entry.d.ts +15 -0
  51. package/dist/components/detail-entry.d.ts.map +1 -0
  52. package/dist/components/detail-entry.js +14 -0
  53. package/dist/components/detail-entry.js.map +1 -0
  54. package/dist/components/finding-detail.d.ts +19 -0
  55. package/dist/components/finding-detail.d.ts.map +1 -0
  56. package/dist/components/finding-detail.js +39 -0
  57. package/dist/components/finding-detail.js.map +1 -0
  58. package/dist/components/index.d.ts +28 -0
  59. package/dist/components/index.d.ts.map +1 -0
  60. package/dist/components/index.js +15 -0
  61. package/dist/components/index.js.map +1 -0
  62. package/dist/components/input-detail.d.ts +15 -0
  63. package/dist/components/input-detail.d.ts.map +1 -0
  64. package/dist/components/input-detail.js +21 -0
  65. package/dist/components/input-detail.js.map +1 -0
  66. package/dist/components/insight-detail.d.ts +25 -0
  67. package/dist/components/insight-detail.d.ts.map +1 -0
  68. package/dist/components/insight-detail.js +30 -0
  69. package/dist/components/insight-detail.js.map +1 -0
  70. package/dist/components/insight-trigger.d.ts +20 -0
  71. package/dist/components/insight-trigger.d.ts.map +1 -0
  72. package/dist/components/insight-trigger.js +32 -0
  73. package/dist/components/insight-trigger.js.map +1 -0
  74. package/dist/components/output-detail.d.ts +39 -0
  75. package/dist/components/output-detail.d.ts.map +1 -0
  76. package/dist/components/output-detail.js +124 -0
  77. package/dist/components/output-detail.js.map +1 -0
  78. package/dist/components/output-dialog.d.ts +18 -0
  79. package/dist/components/output-dialog.d.ts.map +1 -0
  80. package/dist/components/output-dialog.js +11 -0
  81. package/dist/components/output-dialog.js.map +1 -0
  82. package/dist/components/paper-detail.d.ts +34 -0
  83. package/dist/components/paper-detail.d.ts.map +1 -0
  84. package/dist/components/paper-detail.js +60 -0
  85. package/dist/components/paper-detail.js.map +1 -0
  86. package/dist/components/record-dialog.d.ts +33 -0
  87. package/dist/components/record-dialog.d.ts.map +1 -0
  88. package/dist/components/record-dialog.js +114 -0
  89. package/dist/components/record-dialog.js.map +1 -0
  90. package/dist/components/relation-items.d.ts +9 -0
  91. package/dist/components/relation-items.d.ts.map +1 -0
  92. package/dist/components/relation-items.js +20 -0
  93. package/dist/components/relation-items.js.map +1 -0
  94. package/dist/components/use-detail-stack.d.ts +31 -0
  95. package/dist/components/use-detail-stack.d.ts.map +1 -0
  96. package/dist/components/use-detail-stack.js +49 -0
  97. package/dist/components/use-detail-stack.js.map +1 -0
  98. package/dist/lib/cn.d.ts +3 -0
  99. package/dist/lib/cn.d.ts.map +1 -0
  100. package/dist/lib/cn.js +6 -0
  101. package/dist/lib/cn.js.map +1 -0
  102. package/dist/lib/labels.d.ts +61 -0
  103. package/dist/lib/labels.d.ts.map +1 -0
  104. package/dist/lib/labels.js +79 -0
  105. package/dist/lib/labels.js.map +1 -0
  106. package/dist/lib/slot.d.ts +11 -0
  107. package/dist/lib/slot.d.ts.map +1 -0
  108. package/dist/lib/slot.js +83 -0
  109. package/dist/lib/slot.js.map +1 -0
  110. package/dist/model/doi.d.ts +2 -0
  111. package/dist/model/doi.d.ts.map +1 -0
  112. package/dist/model/doi.js +5 -0
  113. package/dist/model/doi.js.map +1 -0
  114. package/dist/model/index.d.ts +10 -0
  115. package/dist/model/index.d.ts.map +1 -0
  116. package/dist/model/index.js +7 -0
  117. package/dist/model/index.js.map +1 -0
  118. package/dist/model/locate-record.d.ts +8 -0
  119. package/dist/model/locate-record.d.ts.map +1 -0
  120. package/dist/model/locate-record.js +7 -0
  121. package/dist/model/locate-record.js.map +1 -0
  122. package/dist/model/papers.d.ts +38 -0
  123. package/dist/model/papers.d.ts.map +1 -0
  124. package/dist/model/papers.js +91 -0
  125. package/dist/model/papers.js.map +1 -0
  126. package/dist/model/records.d.ts +10 -0
  127. package/dist/model/records.d.ts.map +1 -0
  128. package/dist/model/records.js +32 -0
  129. package/dist/model/records.js.map +1 -0
  130. package/dist/model/relations.d.ts +45 -0
  131. package/dist/model/relations.d.ts.map +1 -0
  132. package/dist/model/relations.js +98 -0
  133. package/dist/model/relations.js.map +1 -0
  134. package/dist/primitives/badge.d.ts +11 -0
  135. package/dist/primitives/badge.d.ts.map +1 -0
  136. package/dist/primitives/badge.js +7 -0
  137. package/dist/primitives/badge.js.map +1 -0
  138. package/dist/primitives/button.d.ts +18 -0
  139. package/dist/primitives/button.d.ts.map +1 -0
  140. package/dist/primitives/button.js +12 -0
  141. package/dist/primitives/button.js.map +1 -0
  142. package/dist/primitives/detail-layout.d.ts +26 -0
  143. package/dist/primitives/detail-layout.d.ts.map +1 -0
  144. package/dist/primitives/detail-layout.js +21 -0
  145. package/dist/primitives/detail-layout.js.map +1 -0
  146. package/dist/primitives/dialog.d.ts +133 -0
  147. package/dist/primitives/dialog.d.ts.map +1 -0
  148. package/dist/primitives/dialog.js +266 -0
  149. package/dist/primitives/dialog.js.map +1 -0
  150. package/dist/primitives/index.d.ts +25 -0
  151. package/dist/primitives/index.d.ts.map +1 -0
  152. package/dist/primitives/index.js +14 -0
  153. package/dist/primitives/index.js.map +1 -0
  154. package/dist/primitives/kind.d.ts +6 -0
  155. package/dist/primitives/kind.d.ts.map +1 -0
  156. package/dist/primitives/kind.js +14 -0
  157. package/dist/primitives/kind.js.map +1 -0
  158. package/dist/primitives/prose.d.ts +36 -0
  159. package/dist/primitives/prose.d.ts.map +1 -0
  160. package/dist/primitives/prose.js +57 -0
  161. package/dist/primitives/prose.js.map +1 -0
  162. package/dist/primitives/record-list.d.ts +31 -0
  163. package/dist/primitives/record-list.d.ts.map +1 -0
  164. package/dist/primitives/record-list.js +17 -0
  165. package/dist/primitives/record-list.js.map +1 -0
  166. package/dist/primitives/relation-list.d.ts +22 -0
  167. package/dist/primitives/relation-list.d.ts.map +1 -0
  168. package/dist/primitives/relation-list.js +13 -0
  169. package/dist/primitives/relation-list.js.map +1 -0
  170. package/dist/primitives/surface-header.d.ts +31 -0
  171. package/dist/primitives/surface-header.d.ts.map +1 -0
  172. package/dist/primitives/surface-header.js +13 -0
  173. package/dist/primitives/surface-header.js.map +1 -0
  174. package/dist/views/index.d.ts +4 -0
  175. package/dist/views/index.d.ts.map +1 -0
  176. package/dist/views/index.js +3 -0
  177. package/dist/views/index.js.map +1 -0
  178. package/dist/views/inventory.d.ts +46 -0
  179. package/dist/views/inventory.d.ts.map +1 -0
  180. package/dist/views/inventory.js +101 -0
  181. package/dist/views/inventory.js.map +1 -0
  182. package/package.json +127 -0
  183. package/primitives.css +15 -0
  184. package/src/blocks/analysis-tree.tsx +109 -0
  185. package/src/blocks/decisions-list.tsx +113 -0
  186. package/src/blocks/findings-list.tsx +61 -0
  187. package/src/blocks/index.ts +23 -0
  188. package/src/blocks/inputs-list.tsx +51 -0
  189. package/src/blocks/outputs-list.tsx +143 -0
  190. package/src/blocks/papers-list.tsx +65 -0
  191. package/src/blocks/prior-insights-list.tsx +52 -0
  192. package/src/blocks/section.tsx +113 -0
  193. package/src/components/artifact-preview.tsx +314 -0
  194. package/src/components/decision-detail.tsx +93 -0
  195. package/src/components/detail-entry.ts +19 -0
  196. package/src/components/finding-detail.tsx +99 -0
  197. package/src/components/index.ts +44 -0
  198. package/src/components/input-detail.tsx +67 -0
  199. package/src/components/insight-detail.tsx +120 -0
  200. package/src/components/insight-trigger.tsx +102 -0
  201. package/src/components/output-detail.tsx +258 -0
  202. package/src/components/output-dialog.tsx +63 -0
  203. package/src/components/paper-detail.tsx +216 -0
  204. package/src/components/record-dialog.tsx +232 -0
  205. package/src/components/relation-items.ts +31 -0
  206. package/src/components/use-detail-stack.ts +78 -0
  207. package/src/lib/cn.ts +5 -0
  208. package/src/lib/labels.tsx +145 -0
  209. package/src/lib/slot.tsx +87 -0
  210. package/src/model/doi.ts +5 -0
  211. package/src/model/index.ts +32 -0
  212. package/src/model/locate-record.ts +13 -0
  213. package/src/model/papers.ts +146 -0
  214. package/src/model/records.ts +43 -0
  215. package/src/model/relations.ts +134 -0
  216. package/src/primitives/badge.tsx +32 -0
  217. package/src/primitives/button.tsx +58 -0
  218. package/src/primitives/detail-layout.tsx +84 -0
  219. package/src/primitives/dialog.tsx +555 -0
  220. package/src/primitives/index.ts +48 -0
  221. package/src/primitives/kind.ts +19 -0
  222. package/src/primitives/prose.tsx +74 -0
  223. package/src/primitives/record-list.tsx +103 -0
  224. package/src/primitives/relation-list.tsx +95 -0
  225. package/src/primitives/surface-header.tsx +87 -0
  226. package/src/views/index.ts +3 -0
  227. package/src/views/inventory.tsx +224 -0
  228. package/styles/base.css +49 -0
  229. package/styles/blocks/analysis-tree.css +64 -0
  230. package/styles/blocks/decisions-list.css +73 -0
  231. package/styles/blocks/outputs-list.css +349 -0
  232. package/styles/blocks/papers-list.css +98 -0
  233. package/styles/blocks/records.css +72 -0
  234. package/styles/components/artifact-preview.css +242 -0
  235. package/styles/components/decision-detail.css +159 -0
  236. package/styles/components/evidence.css +79 -0
  237. package/styles/components/finding-detail.css +63 -0
  238. package/styles/components/input-detail.css +95 -0
  239. package/styles/components/insight-detail.css +138 -0
  240. package/styles/components/insight-list.css +46 -0
  241. package/styles/components/insight-trigger.css +54 -0
  242. package/styles/components/output-detail.css +732 -0
  243. package/styles/components/paper-detail.css +249 -0
  244. package/styles/components/paper-doi.css +36 -0
  245. package/styles/primitives/badge.css +107 -0
  246. package/styles/primitives/button.css +116 -0
  247. package/styles/primitives/count-heading.css +27 -0
  248. package/styles/primitives/detail-layout.css +225 -0
  249. package/styles/primitives/dialog.css +634 -0
  250. package/styles/primitives/empty-state.css +10 -0
  251. package/styles/primitives/kind.css +41 -0
  252. package/styles/primitives/prose.css +15 -0
  253. package/styles/primitives/record-list.css +425 -0
  254. package/styles/primitives/relation-list.css +184 -0
  255. package/styles/primitives/surface-header.css +183 -0
  256. package/styles/tokens.css +119 -0
  257. package/styles/views/inventory.css +186 -0
  258. package/styles.css +2 -0
  259. package/views.css +3 -0
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Root paint and behaviour for the `.astra-ui` scope: box model, base
3
+ * typography, focus ring, motion and print. Themes never need to repeat any
4
+ * of this; they only redefine tokens.
5
+ */
6
+ @layer astra.tokens, astra.base, astra.components, astra.views;
7
+
8
+ @layer astra.base {
9
+ :where(.astra-ui) {
10
+ box-sizing: border-box;
11
+ color: var(--astra-color-text);
12
+ background: var(--astra-color-surface);
13
+ font-family: var(--astra-font-body);
14
+ font-size: var(--astra-font-size);
15
+ line-height: 1.5;
16
+ }
17
+
18
+ :where(.astra-ui) *,
19
+ :where(.astra-ui) *::before,
20
+ :where(.astra-ui) *::after {
21
+ box-sizing: inherit;
22
+ }
23
+
24
+ :where(.astra-ui) :where(button, a, input, select, textarea):focus-visible {
25
+ outline: 2px solid var(--astra-color-focus);
26
+ outline-offset: 2px;
27
+ }
28
+
29
+ @media (prefers-reduced-motion: reduce) {
30
+ :where(.astra-ui) *,
31
+ :where(.astra-ui) *::before,
32
+ :where(.astra-ui) *::after {
33
+ transition-duration: 0.01ms !important;
34
+ animation-duration: 0.01ms !important;
35
+ }
36
+ }
37
+
38
+ @media print {
39
+ :where(.astra-ui) .astra-dialog:not([data-mode="embedded"]),
40
+ :where(.astra-ui) .astra-inventory-outline {
41
+ display: none;
42
+ }
43
+
44
+ :where(.astra-ui) .astra-record-list__body > button,
45
+ :where(.astra-ui) .astra-output-card {
46
+ break-inside: avoid;
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,64 @@
1
+ /* analysis-tree — emitted by src/blocks/analysis-tree.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.views {
4
+ :where(.astra-ui) .astra-analysis-tree {
5
+ overflow: visible;
6
+ font-family: var(--astra-font-ui);
7
+ }
8
+
9
+ :where(.astra-ui) .astra-analysis-tree h2 {
10
+ margin: 0 0 0.5rem;
11
+ color: var(--astra-color-text-subtle);
12
+ font-size: 0.625rem;
13
+ font-weight: 700;
14
+ letter-spacing: 0.1em;
15
+ text-transform: uppercase;
16
+ }
17
+
18
+ :where(.astra-ui) .astra-analysis-tree ul {
19
+ margin: 0;
20
+ padding: 0;
21
+ list-style: none;
22
+ }
23
+
24
+ :where(.astra-ui) .astra-analysis-tree button {
25
+ display: flex;
26
+ width: 100%;
27
+ align-items: center;
28
+ gap: 0.5rem;
29
+ cursor: pointer;
30
+ border: 0;
31
+ border-radius: 0.25rem;
32
+ background: transparent;
33
+ color: var(--astra-color-text-muted);
34
+ padding: 0.375rem 0.5rem;
35
+ font: inherit;
36
+ font-size: 0.8125rem;
37
+ line-height: 1.3;
38
+ text-align: start;
39
+ }
40
+
41
+ :where(.astra-ui) .astra-analysis-tree button svg {
42
+ flex: 0 0 auto;
43
+ color: var(--astra-color-kind-analysis);
44
+ }
45
+
46
+ :where(.astra-ui) .astra-analysis-tree button span {
47
+ min-width: 0;
48
+ overflow: hidden;
49
+ text-overflow: ellipsis;
50
+ white-space: nowrap;
51
+ }
52
+
53
+ :where(.astra-ui) .astra-analysis-tree button:hover,
54
+ :where(.astra-ui) .astra-analysis-tree button:focus-visible {
55
+ background: var(--astra-color-surface-muted);
56
+ color: var(--astra-color-text);
57
+ }
58
+
59
+ :where(.astra-ui) .astra-analysis-tree button[aria-current="page"] {
60
+ background: var(--astra-color-kind-analysis-soft);
61
+ color: var(--astra-color-text);
62
+ font-weight: 700;
63
+ }
64
+ }
@@ -0,0 +1,73 @@
1
+ /* decisions-list — emitted by src/blocks/decisions-list.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.views {
4
+ :where(.astra-ui) .astra-inventory-filter > span {
5
+ color: var(--astra-color-text-subtle);
6
+ font-family: var(--astra-font-ui);
7
+ font-size: 0.66rem;
8
+ white-space: nowrap;
9
+ }
10
+
11
+ :where(.astra-ui) .astra-inventory-filter__chips button:hover {
12
+ border-color: var(--astra-color-accent);
13
+ color: var(--astra-color-accent);
14
+ }
15
+
16
+ :where(.astra-ui) .astra-inventory-filter > span {
17
+ font-size: 0.75rem;
18
+ }
19
+
20
+ /* The filter stacks on the width of its records block (the query container
21
+ declared in records.css); :where() keeps the specificity unchanged. */
22
+ @container (max-width: 38rem) {
23
+ :where(.astra-ui) :where(.astra-inventory-records) .astra-inventory-filter {
24
+ align-items: flex-start;
25
+ flex-direction: column;
26
+ }
27
+
28
+ }
29
+ :where(.astra-ui) .astra-inventory-filter {
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: space-between;
33
+ gap: 1rem;
34
+ margin: 0 0 0.625rem;
35
+ }
36
+
37
+ :where(.astra-ui) .astra-inventory-filter__chips {
38
+ display: flex;
39
+ flex-wrap: wrap;
40
+ gap: 0.375rem;
41
+ }
42
+
43
+ :where(.astra-ui) .astra-inventory-filter__chips button {
44
+ min-height: 0;
45
+ padding: 0.25rem 0.625rem;
46
+ border: 1px solid var(--astra-color-border-strong);
47
+ border-radius: 999px;
48
+ background: transparent;
49
+ color: var(--astra-color-text-subtle);
50
+ cursor: pointer;
51
+ font: 500 0.75rem/1.2 var(--astra-font-ui);
52
+ }
53
+
54
+ :where(.astra-ui) .astra-inventory-filter__chips button[aria-pressed="true"] {
55
+ border-color: var(--astra-color-accent);
56
+ background: var(--astra-color-accent);
57
+ color: var(--astra-color-canvas);
58
+ }
59
+
60
+ :where(.astra-ui) .astra-inventory-filter > span {
61
+ flex: 0 0 auto;
62
+ color: var(--astra-color-text-subtle);
63
+ font: 400 0.75rem/1.2 var(--astra-font-ui);
64
+ }
65
+
66
+ @container (max-width: 34rem) {
67
+ :where(.astra-ui) :where(.astra-inventory-records) .astra-inventory-filter {
68
+ align-items: flex-start;
69
+ flex-direction: column;
70
+ }
71
+
72
+ }
73
+ }
@@ -0,0 +1,349 @@
1
+ /* outputs-list — emitted by src/blocks/outputs-list.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.views {
4
+ @media (max-width: 880px) {
5
+ :where(.astra-ui) .astra-inventory-outputs__gallery {
6
+ grid-template-columns: repeat(2, minmax(0, 1fr));
7
+ }
8
+
9
+ }
10
+ @media (max-width: 640px) {
11
+ :where(.astra-ui) .astra-inventory-outputs__gallery {
12
+ grid-template-columns: 1fr;
13
+ }
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
+ }
20
+ @media (prefers-reduced-motion: reduce) {
21
+ :where(.astra-ui) .astra-output-card,
22
+ :where(.astra-ui) .astra-output-card__open {
23
+ transition: none;
24
+ }
25
+
26
+ }
27
+ :where(.astra-ui) .astra-inventory-outputs__group-heading {
28
+ margin: 0 0 0.85rem;
29
+ color: var(--astra-color-text);
30
+ font-family: var(--astra-font-ui);
31
+ font-size: 1rem;
32
+ font-weight: 700;
33
+ line-height: 1.4;
34
+ }
35
+
36
+ :where(.astra-ui) .astra-output-card {
37
+ all: unset;
38
+ display: flex;
39
+ min-width: 0;
40
+ cursor: pointer;
41
+ flex-direction: column;
42
+ overflow: hidden;
43
+ border: 1px solid var(--astra-color-border);
44
+ border-radius: 0.45rem;
45
+ background: var(--astra-color-surface-raised);
46
+ color: var(--astra-color-text);
47
+ transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
48
+ }
49
+
50
+ :where(.astra-ui) .astra-output-card__preview {
51
+ position: relative;
52
+ display: flex;
53
+ aspect-ratio: 16 / 10;
54
+ align-items: center;
55
+ justify-content: center;
56
+ overflow: hidden;
57
+ border-bottom: 1px solid var(--astra-color-border);
58
+ background: var(--astra-color-surface);
59
+ }
60
+
61
+ :where(.astra-ui) .astra-output-card__open {
62
+ position: absolute;
63
+ top: 0.55rem;
64
+ right: 0.55rem;
65
+ border-radius: 99px;
66
+ background: color-mix(in srgb, var(--astra-color-surface) 88%, transparent);
67
+ color: var(--astra-color-text-muted);
68
+ padding: 0.25rem 0.5rem;
69
+ font-family: var(--astra-font-ui);
70
+ font-size: 0.65rem;
71
+ font-weight: 700;
72
+ opacity: 0;
73
+ transition: opacity 140ms ease;
74
+ }
75
+
76
+ :where(.astra-ui) .astra-output-card:hover .astra-output-card__open,
77
+ :where(.astra-ui) .astra-output-card:focus-visible .astra-output-card__open {
78
+ opacity: 1;
79
+ }
80
+
81
+ :where(.astra-ui) .astra-output-card__kind {
82
+ color: var(--astra-color-accent);
83
+ font-family: var(--astra-font-ui);
84
+ font-size: 0.65rem;
85
+ font-weight: 700;
86
+ letter-spacing: 0.09em;
87
+ text-transform: uppercase;
88
+ }
89
+
90
+ :where(.astra-ui) .astra-output-card__body strong {
91
+ overflow: hidden;
92
+ font-family: var(--astra-font-ui);
93
+ font-size: 0.92rem;
94
+ line-height: 1.2;
95
+ text-overflow: ellipsis;
96
+ white-space: nowrap;
97
+ }
98
+
99
+ :where(.astra-ui) .astra-output-card__body code {
100
+ overflow: hidden;
101
+ color: var(--astra-color-text-subtle);
102
+ font-size: 0.68rem;
103
+ text-overflow: ellipsis;
104
+ white-space: nowrap;
105
+ }
106
+
107
+ :where(.astra-ui) .astra-inventory-outputs__files {
108
+ overflow: visible;
109
+ }
110
+
111
+ :where(.astra-ui) .astra-output-card {
112
+ --astra-kind: var(--astra-color-kind-output);
113
+ --astra-kind-ink: var(--astra-color-kind-output);
114
+ --astra-kind-soft: var(--astra-color-kind-output-soft);
115
+ }
116
+
117
+ :where(.astra-ui) .astra-output-card {
118
+ border-color: var(--astra-color-border-strong);
119
+ border-radius: 8px;
120
+ background: var(--astra-color-surface-raised);
121
+ box-shadow: none;
122
+ }
123
+
124
+ :where(.astra-ui) .astra-output-card:focus-visible {
125
+ outline: 2px solid var(--astra-color-accent);
126
+ outline-offset: 3px;
127
+ outline-color: var(--astra-color-focus);
128
+ }
129
+
130
+ :where(.astra-ui) .astra-output-card__preview {
131
+ border-color: var(--astra-color-border);
132
+ background: var(--astra-color-surface);
133
+ }
134
+
135
+ :where(.astra-ui) .astra-output-card__preview > img {
136
+ background: var(--astra-color-artifact-paper);
137
+ }
138
+
139
+ :where(.astra-ui) .astra-output-card__kind {
140
+ color: var(--astra-color-kind-output);
141
+ }
142
+
143
+ :where(.astra-ui) .astra-output-card__open {
144
+ border: 1px solid var(--astra-color-border);
145
+ border-radius: var(--astra-radius-control);
146
+ background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
147
+ }
148
+
149
+ :where(.astra-ui) .astra-inventory-outputs__group-heading {
150
+ margin: 0 0 0.625rem;
151
+ color: var(--astra-color-text-subtle);
152
+ font-family: var(--astra-font-ui);
153
+ font-size: 0.6875rem;
154
+ font-weight: 600;
155
+ letter-spacing: 0.09em;
156
+ text-transform: uppercase;
157
+ }
158
+
159
+ :where(.astra-ui) .astra-inventory-outputs__gallery {
160
+ grid-template-columns: repeat(4, minmax(0, 1fr));
161
+ gap: 0.875rem;
162
+ }
163
+
164
+ :where(.astra-ui) .astra-output-card {
165
+ border-color: var(--astra-color-border);
166
+ border-radius: 0;
167
+ background: var(--astra-color-surface-raised);
168
+ box-shadow: none;
169
+ }
170
+
171
+ :where(.astra-ui) .astra-output-card:hover {
172
+ transform: none;
173
+ border-color: var(--astra-color-kind-output);
174
+ box-shadow: none;
175
+ }
176
+
177
+ :where(.astra-ui) .astra-output-card__preview {
178
+ aspect-ratio: 4 / 3;
179
+ border-color: var(--astra-color-border-subtle);
180
+ background: var(--astra-color-surface-raised);
181
+ }
182
+
183
+ :where(.astra-ui) .astra-output-card__preview > img,
184
+ :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="image"]) > img {
185
+ width: 100%;
186
+ height: 100%;
187
+ box-sizing: border-box;
188
+ object-fit: contain;
189
+ max-height: none;
190
+ margin: 0;
191
+ padding: 0.45rem;
192
+ }
193
+
194
+ :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="image"]) {
195
+ display: block;
196
+ width: 100%;
197
+ height: 100%;
198
+ margin: 0;
199
+ border: 0;
200
+ }
201
+
202
+ :where(.astra-ui) .astra-output-card__open {
203
+ top: 0.45rem;
204
+ right: 0.45rem;
205
+ border: 0;
206
+ background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
207
+ }
208
+
209
+ :where(.astra-ui) .astra-output-card__body {
210
+ display: grid;
211
+ gap: 0.125rem;
212
+ padding: 0.55rem 0.6875rem 0.65rem;
213
+ }
214
+
215
+ :where(.astra-ui) .astra-output-card__kind {
216
+ color: var(--astra-color-kind-output);
217
+ font-size: 0.5625rem;
218
+ }
219
+
220
+ :where(.astra-ui) .astra-output-card__body strong {
221
+ font-size: 0.8125rem;
222
+ font-weight: 600;
223
+ }
224
+
225
+ :where(.astra-ui) .astra-output-card__body code {
226
+ font-size: 0.625rem;
227
+ }
228
+
229
+ @container (max-width: 58rem) {
230
+ :where(.astra-ui) .astra-inventory-outputs__gallery {
231
+ grid-template-columns: repeat(2, minmax(0, 1fr));
232
+ }
233
+
234
+ }
235
+ @container (max-width: 38rem) {
236
+ :where(.astra-ui) .astra-inventory-outputs__gallery {
237
+ grid-template-columns: minmax(0, 1fr);
238
+ }
239
+
240
+ }
241
+ /* The block is its own query container: the gallery collapses on the
242
+ block's width, inside or outside <Inventory>. */
243
+ :where(.astra-ui) .astra-inventory-outputs {
244
+ container-type: inline-size;
245
+ padding-top: 0;
246
+ padding: 0;
247
+ }
248
+
249
+ :where(.astra-ui) .astra-inventory-outputs__group + .astra-inventory-outputs__group {
250
+ margin-top: 1.5rem;
251
+ }
252
+
253
+ :where(.astra-ui) .astra-inventory-outputs__group-heading {
254
+ margin: 0 0 0.625rem;
255
+ color: var(--astra-color-text-subtle);
256
+ font-family: var(--astra-font-ui);
257
+ font-size: 0.6875rem;
258
+ font-weight: 600;
259
+ letter-spacing: 0.09em;
260
+ text-transform: uppercase;
261
+ }
262
+
263
+ :where(.astra-ui) .astra-inventory-outputs__gallery {
264
+ display: grid;
265
+ grid-template-columns: repeat(4, minmax(0, 1fr));
266
+ gap: 0.875rem;
267
+ }
268
+
269
+ :where(.astra-ui) .astra-output-card {
270
+ overflow: hidden;
271
+ padding: 0;
272
+ border: 1px solid var(--astra-color-border);
273
+ border-radius: 0;
274
+ background: var(--astra-color-surface-raised);
275
+ color: var(--astra-color-text);
276
+ box-shadow: none;
277
+ }
278
+
279
+ :where(.astra-ui) .astra-output-card:hover,
280
+ :where(.astra-ui) .astra-output-card:focus-visible {
281
+ border-color: var(--astra-color-kind-output);
282
+ box-shadow: none;
283
+ }
284
+
285
+ :where(.astra-ui) .astra-output-card__preview {
286
+ display: grid;
287
+ aspect-ratio: 4 / 3;
288
+ border-bottom: 1px solid var(--astra-color-border-subtle);
289
+ background: var(--astra-color-surface-raised);
290
+ place-items: center;
291
+ }
292
+
293
+ :where(.astra-ui) .astra-output-card__preview > img {
294
+ box-sizing: border-box;
295
+ width: 100%;
296
+ height: 100%;
297
+ padding: 0.35rem;
298
+ object-fit: contain;
299
+ }
300
+
301
+ :where(.astra-ui) .astra-output-card__open {
302
+ top: 0.45rem;
303
+ right: 0.45rem;
304
+ padding: 0;
305
+ border: 0;
306
+ background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
307
+ color: var(--astra-color-text-muted);
308
+ font: 600 0.625rem/1.2 var(--astra-font-ui);
309
+ }
310
+
311
+ :where(.astra-ui) .astra-output-card__body {
312
+ display: block;
313
+ padding: 0.5625rem 0.6875rem;
314
+ }
315
+
316
+ :where(.astra-ui) .astra-output-card__kind {
317
+ display: block;
318
+ margin-bottom: 0.125rem;
319
+ color: var(--astra-color-kind-output);
320
+ font: 700 0.5625rem/1.2 var(--astra-font-ui);
321
+ letter-spacing: 0.08em;
322
+ text-transform: uppercase;
323
+ }
324
+
325
+ :where(.astra-ui) .astra-output-card__body strong {
326
+ display: block;
327
+ overflow: hidden;
328
+ font: 600 0.8125rem/1.25 var(--astra-font-ui);
329
+ text-overflow: ellipsis;
330
+ white-space: nowrap;
331
+ }
332
+
333
+ :where(.astra-ui) .astra-output-card__body code {
334
+ display: none;
335
+ }
336
+
337
+ @container (max-width: 48rem) {
338
+ :where(.astra-ui) .astra-inventory-outputs__gallery {
339
+ grid-template-columns: repeat(2, minmax(0, 1fr));
340
+ }
341
+
342
+ }
343
+ @container (max-width: 34rem) {
344
+ :where(.astra-ui) .astra-inventory-outputs__gallery {
345
+ grid-template-columns: minmax(0, 1fr);
346
+ }
347
+
348
+ }
349
+ }
@@ -0,0 +1,98 @@
1
+ /* papers-list — emitted by src/blocks/papers-list.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.views {
4
+ /* The list is its own query container: the meta column hides on the
5
+ list's width, inside or outside <Inventory>. */
6
+ :where(.astra-ui) .astra-paper-list {
7
+ container-type: inline-size;
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 0.625rem;
11
+ }
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 0.5rem/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 0.875rem/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;
84
+ }
85
+
86
+ :where(.astra-ui) .astra-paper-list__meta {
87
+ display: none;
88
+ }
89
+
90
+ }
91
+ :where(.astra-ui) .astra-paper-list {
92
+ max-height: min(28rem, 55vh);
93
+ overflow-y: auto;
94
+ overscroll-behavior: contain;
95
+ scrollbar-gutter: stable;
96
+ }
97
+
98
+ }
@@ -0,0 +1,72 @@
1
+ /* records — emitted by src/blocks/section.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.views {
4
+ @media (max-width: 640px) {
5
+ :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) > .astra-inventory-filter {
6
+ justify-content: flex-start;
7
+ }
8
+
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;
11
+ }
12
+
13
+ }
14
+ :where(.astra-ui) .astra-inventory-records:where([data-kind="finding"]) .astra-record-list__body > button {
15
+ padding-block: 0.78rem;
16
+ }
17
+
18
+ /* Space between the tag filter and the list. Only after a filter: the block
19
+ is a query container (an independent formatting context), so a leading
20
+ margin would no longer collapse into the section heading's. */
21
+ :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) > .astra-inventory-filter + .astra-record-list {
22
+ margin-top: 0.75rem;
23
+ }
24
+
25
+ @container (max-width: 58rem) {
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;
28
+ }
29
+
30
+ :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__secondary {
31
+ display: none;
32
+ }
33
+
34
+ }
35
+ @container (max-width: 38rem) {
36
+ :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button,
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;
40
+ }
41
+
42
+ }
43
+ /* Every per-kind list is its own query container, so the queries below and
44
+ the tag filter's (decisions-list.css) resolve against the block's width
45
+ inside or outside <Inventory>. */
46
+ :where(.astra-ui) .astra-inventory-records {
47
+ container-type: inline-size;
48
+ padding-top: 0;
49
+ padding: 0;
50
+ }
51
+
52
+ @container (max-width: 48rem) {
53
+ :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button,
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;
56
+ }
57
+
58
+ :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__secondary,
59
+ :where(.astra-ui) .astra-inventory-records:where([data-kind="input"]) .astra-record-list__secondary {
60
+ display: none;
61
+ }
62
+
63
+ }
64
+ @container (max-width: 34rem) {
65
+ :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button,
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;
69
+ }
70
+
71
+ }
72
+ }