@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,425 @@
1
+ /* record-list — emitted by src/primitives/record-list.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.components {
4
+ @media (max-width: 640px) {
5
+ :where(.astra-ui) .astra-record-list__head {
6
+ display: none;
7
+ }
8
+
9
+ :where(.astra-ui) .astra-record-list__body > button {
10
+ grid-template-columns: minmax(0, 1fr) auto 1rem;
11
+ }
12
+
13
+ }
14
+ :where(.astra-ui) .astra-record-list__head,
15
+ :where(.astra-ui) .astra-record-list__body > button {
16
+ display: grid;
17
+ grid-template-columns: var(--astra-record-columns);
18
+ gap: 0.75rem;
19
+ align-items: center;
20
+ }
21
+
22
+ :where(.astra-ui) .astra-record-list__head {
23
+ border-top: 1px solid var(--astra-color-border);
24
+ border-bottom: 1px solid var(--astra-color-border);
25
+ color: var(--astra-color-text-subtle);
26
+ padding: 0.45rem 0.9rem;
27
+ font-family: var(--astra-font-ui);
28
+ font-size: 0.63rem;
29
+ font-weight: 700;
30
+ letter-spacing: 0.07em;
31
+ text-transform: uppercase;
32
+ }
33
+
34
+ :where(.astra-ui) .astra-record-list__body > button > span {
35
+ min-width: 0;
36
+ }
37
+
38
+ :where(.astra-ui) .astra-record-list__name {
39
+ display: flex;
40
+ min-width: 0;
41
+ gap: 0.65rem;
42
+ align-items: center;
43
+ }
44
+
45
+ :where(.astra-ui) .astra-record-list__glyph {
46
+ flex: 0 0 auto;
47
+ color: var(--astra-color-text-subtle);
48
+ font-size: 1rem;
49
+ }
50
+
51
+ :where(.astra-ui) .astra-record-list__name > span:last-child {
52
+ display: grid;
53
+ min-width: 0;
54
+ gap: 0.14rem;
55
+ }
56
+
57
+ :where(.astra-ui) .astra-record-list__name strong,
58
+ :where(.astra-ui) .astra-record-list__name small,
59
+ :where(.astra-ui) .astra-record-list__body code,
60
+ :where(.astra-ui) .astra-record-list__selected {
61
+ overflow: hidden;
62
+ text-overflow: ellipsis;
63
+ white-space: nowrap;
64
+ }
65
+
66
+ :where(.astra-ui) .astra-record-list__name strong {
67
+ font-family: var(--astra-font-ui);
68
+ font-size: 0.78rem;
69
+ }
70
+
71
+ :where(.astra-ui) .astra-record-list__name small {
72
+ color: var(--astra-color-text-subtle);
73
+ font-size: 0.67rem;
74
+ }
75
+
76
+ :where(.astra-ui) .astra-record-list__tag {
77
+ display: inline-block;
78
+ width: max-content;
79
+ border: 1px solid var(--astra-color-border-strong);
80
+ border-radius: 0.22rem;
81
+ color: var(--astra-color-text-muted);
82
+ padding: 0.13rem 0.32rem;
83
+ font-family: var(--astra-font-mono);
84
+ font-size: 0.58rem;
85
+ }
86
+
87
+ :where(.astra-ui) .astra-record-list__source {
88
+ min-width: 0;
89
+ overflow: hidden;
90
+ }
91
+
92
+ :where(.astra-ui) .astra-record-list__source code {
93
+ display: block;
94
+ width: 100%;
95
+ overflow: hidden;
96
+ text-overflow: ellipsis;
97
+ white-space: nowrap;
98
+ }
99
+
100
+ :where(.astra-ui) .astra-record-list__selected {
101
+ display: block;
102
+ color: var(--astra-color-accent);
103
+ font-family: var(--astra-font-ui);
104
+ font-size: 0.72rem;
105
+ font-weight: 700;
106
+ }
107
+
108
+ :where(.astra-ui) .astra-record-list__count {
109
+ color: var(--astra-color-text-subtle);
110
+ font-family: var(--astra-font-ui);
111
+ font-size: 0.66rem;
112
+ }
113
+
114
+ :where(.astra-ui) .astra-record-list__secondary {
115
+ justify-self: end;
116
+ text-align: right;
117
+ }
118
+
119
+ :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) {
120
+ align-items: flex-start;
121
+ }
122
+
123
+ :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) .astra-record-list__glyph {
124
+ color: var(--astra-color-kind-finding);
125
+ font-size: 0.72rem;
126
+ line-height: 1.35rem;
127
+ }
128
+
129
+ :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) > span:last-child {
130
+ gap: 0.2rem;
131
+ }
132
+
133
+ :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) small {
134
+ color: var(--astra-color-kind-finding);
135
+ font-family: var(--astra-font-ui);
136
+ font-size: 0.62rem;
137
+ font-weight: 700;
138
+ letter-spacing: 0.06em;
139
+ text-transform: uppercase;
140
+ }
141
+
142
+ :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) strong {
143
+ overflow: visible;
144
+ color: var(--astra-color-text);
145
+ font-family: var(--astra-font-body);
146
+ font-size: 0.83rem;
147
+ font-weight: 500;
148
+ line-height: 1.38;
149
+ text-overflow: clip;
150
+ white-space: normal;
151
+ }
152
+
153
+ :where(.astra-ui) .astra-record-list__glyph[data-kind] {
154
+ color: var(--astra-kind);
155
+ }
156
+
157
+ :where(.astra-ui) .astra-record-list__head {
158
+ border-color: var(--astra-color-border);
159
+ background: var(--astra-color-header);
160
+ color: var(--astra-color-text-subtle);
161
+ font-size: 0.62rem;
162
+ letter-spacing: 0.08em;
163
+ }
164
+
165
+ :where(.astra-ui) .astra-record-list__body > button {
166
+ border-color: var(--astra-color-border-subtle);
167
+ color: var(--astra-color-text);
168
+ font-family: var(--astra-font-ui);
169
+ }
170
+
171
+ :where(.astra-ui) .astra-record-list__body > button:focus-visible {
172
+ position: relative;
173
+ outline: 2px solid var(--astra-color-accent);
174
+ outline-offset: -2px;
175
+ outline-color: var(--astra-color-focus);
176
+ }
177
+
178
+ :where(.astra-ui) .astra-record-list__tag {
179
+ border-color: var(--astra-color-border-strong);
180
+ border-radius: 4px;
181
+ background: var(--astra-color-surface-raised);
182
+ }
183
+
184
+ :where(.astra-ui) .astra-record-list__selected {
185
+ width: max-content;
186
+ max-width: 100%;
187
+ border: 1px solid color-mix(in srgb, var(--astra-color-kind-decision) 28%, var(--astra-color-border));
188
+ border-radius: 4px;
189
+ background: var(--astra-color-kind-decision-soft);
190
+ color: var(--astra-color-kind-decision-ink);
191
+ padding: 0.16rem 0.42rem;
192
+ font-size: 0.67rem;
193
+ }
194
+
195
+ :where(.astra-ui) .astra-record-list__body code {
196
+ font-family: var(--astra-font-mono);
197
+ }
198
+
199
+ :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) .astra-record-list__glyph,
200
+ :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) small {
201
+ color: var(--astra-color-kind-finding);
202
+ }
203
+
204
+ :where(.astra-ui) .astra-record-list__head {
205
+ display: none;
206
+ }
207
+
208
+ :where(.astra-ui) .astra-record-list__body > button {
209
+ min-height: 2.75rem;
210
+ gap: 0.75rem;
211
+ padding: 0.6875rem 0.125rem;
212
+ border-color: var(--astra-color-border-subtle);
213
+ background: transparent;
214
+ font-family: var(--astra-font-ui);
215
+ }
216
+
217
+ :where(.astra-ui) .astra-record-list__body > button:last-child {
218
+ border-bottom: 0;
219
+ border-block-end: 1px solid var(--astra-color-border-subtle);
220
+ }
221
+
222
+ :where(.astra-ui) .astra-record-list__name {
223
+ gap: 0.6rem;
224
+ }
225
+
226
+ :where(.astra-ui) .astra-record-list__glyph {
227
+ font-size: 0.75rem;
228
+ text-align: center;
229
+ }
230
+
231
+ :where(.astra-ui) .astra-record-list__name strong {
232
+ font-size: 0.875rem;
233
+ font-weight: 600;
234
+ }
235
+
236
+ :where(.astra-ui) .astra-record-list__name small {
237
+ font-family: var(--astra-font-ui);
238
+ font-size: 0.71875rem;
239
+ }
240
+
241
+ :where(.astra-ui) .astra-record-list__selected {
242
+ width: auto;
243
+ border: 0;
244
+ border-radius: 0;
245
+ background: transparent;
246
+ color: var(--astra-color-text-muted);
247
+ padding: 0;
248
+ font-family: var(--astra-font-body);
249
+ font-size: 0.84375rem;
250
+ font-weight: 400;
251
+ }
252
+
253
+ :where(.astra-ui) .astra-record-list__tag {
254
+ border: 0;
255
+ border-radius: 0;
256
+ background: transparent;
257
+ color: var(--astra-color-text-subtle);
258
+ padding: 0;
259
+ font-family: var(--astra-font-ui);
260
+ font-size: 0.6875rem;
261
+ text-align: end;
262
+ }
263
+
264
+ :where(.astra-ui) .astra-record-list__body code {
265
+ color: var(--astra-color-text-subtle);
266
+ font-size: 0.6875rem;
267
+ }
268
+
269
+ :where(.astra-ui) .astra-record-list__arrow {
270
+ color: var(--astra-color-text-faint);
271
+ }
272
+
273
+ @container (max-width: 38rem) {
274
+ :where(.astra-ui) .astra-record-list__body > button {
275
+ grid-template-columns: minmax(0, 1fr) 1.25rem;
276
+ row-gap: 0.25rem;
277
+ }
278
+
279
+ :where(.astra-ui) .astra-record-list__primary {
280
+ grid-column: 1;
281
+ grid-row: 1;
282
+ }
283
+
284
+ :where(.astra-ui) .astra-record-list__selection,
285
+ :where(.astra-ui) .astra-record-list__source,
286
+ :where(.astra-ui) .astra-record-list__count,
287
+ :where(.astra-ui) .astra-record-list__secondary {
288
+ grid-column: 1;
289
+ }
290
+
291
+ :where(.astra-ui) .astra-record-list__arrow {
292
+ grid-column: 2;
293
+ grid-row: 1 / span 3;
294
+ align-self: center;
295
+ }
296
+
297
+ }
298
+ /* The list is its own query container: rows collapse on the list's own
299
+ width, wherever the list is mounted. */
300
+ :where(.astra-ui) .astra-record-list {
301
+ container-type: inline-size;
302
+ border-top: 0;
303
+ }
304
+
305
+ :where(.astra-ui) .astra-record-list__head {
306
+ display: none;
307
+ }
308
+
309
+ :where(.astra-ui) .astra-record-list__body {
310
+ max-height: none;
311
+ overflow: visible;
312
+ }
313
+
314
+ :where(.astra-ui) .astra-record-list__body > button {
315
+ display: grid;
316
+ grid-template-columns: var(--astra-record-columns);
317
+ gap: 0.75rem;
318
+ align-items: baseline;
319
+ width: 100%;
320
+ min-height: 0;
321
+ padding: 0.6875rem 0.125rem;
322
+ border: 0;
323
+ border-bottom: 1px solid var(--astra-color-border-subtle);
324
+ background: transparent;
325
+ color: var(--astra-color-text);
326
+ cursor: pointer;
327
+ font-family: var(--astra-font-ui);
328
+ text-align: left;
329
+ }
330
+
331
+ :where(.astra-ui) .astra-record-list__body > button:hover {
332
+ background: var(--astra-color-surface-muted);
333
+ }
334
+
335
+ :where(.astra-ui) .astra-record-list__name {
336
+ display: grid;
337
+ grid-template-columns: 1rem minmax(0, 1fr);
338
+ gap: 0.75rem;
339
+ align-items: baseline;
340
+ }
341
+
342
+ :where(.astra-ui) .astra-record-list__glyph {
343
+ font-size: 0.625rem;
344
+ text-align: center;
345
+ }
346
+
347
+ :where(.astra-ui) .astra-record-list__name strong {
348
+ overflow: hidden;
349
+ font: 600 0.875rem/1.25 var(--astra-font-ui);
350
+ text-overflow: ellipsis;
351
+ white-space: nowrap;
352
+ }
353
+
354
+ :where(.astra-ui) .astra-record-list__name small,
355
+ :where(.astra-ui) .astra-record-list__body code,
356
+ :where(.astra-ui) .astra-record-list__selected,
357
+ :where(.astra-ui) .astra-record-list__count {
358
+ overflow: hidden;
359
+ color: var(--astra-color-text-muted);
360
+ font: 400 0.84375rem/1.25 var(--astra-font-body);
361
+ text-overflow: ellipsis;
362
+ white-space: nowrap;
363
+ }
364
+
365
+ :where(.astra-ui) .astra-record-list__body code {
366
+ color: var(--astra-color-text-subtle);
367
+ font: 400 0.6875rem/1.25 var(--astra-font-mono);
368
+ }
369
+
370
+ :where(.astra-ui) .astra-record-list__tag {
371
+ display: block;
372
+ overflow: hidden;
373
+ padding: 0;
374
+ border: 0;
375
+ border-radius: 0;
376
+ color: var(--astra-color-text-subtle);
377
+ background: transparent;
378
+ font: 400 0.6875rem/1.25 var(--astra-font-ui);
379
+ text-align: right;
380
+ text-overflow: ellipsis;
381
+ white-space: nowrap;
382
+ }
383
+
384
+ :where(.astra-ui) .astra-record-list__arrow {
385
+ color: var(--astra-color-text-faint);
386
+ text-align: right;
387
+ }
388
+
389
+ :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) .astra-record-list__glyph {
390
+ color: var(--astra-color-kind-finding);
391
+ }
392
+
393
+ @container (max-width: 34rem) {
394
+ :where(.astra-ui) .astra-record-list__body > button {
395
+ grid-template-columns: minmax(0, 1fr) 1.25rem;
396
+ row-gap: 0.25rem;
397
+ }
398
+
399
+ :where(.astra-ui) .astra-record-list__primary {
400
+ grid-column: 1;
401
+ grid-row: 1;
402
+ }
403
+
404
+ :where(.astra-ui) .astra-record-list__selection,
405
+ :where(.astra-ui) .astra-record-list__source,
406
+ :where(.astra-ui) .astra-record-list__count,
407
+ :where(.astra-ui) .astra-record-list__secondary {
408
+ grid-column: 1;
409
+ }
410
+
411
+ :where(.astra-ui) .astra-record-list__arrow {
412
+ grid-column: 2;
413
+ grid-row: 1 / span 3;
414
+ align-self: center;
415
+ }
416
+
417
+ }
418
+ :where(.astra-ui) .astra-record-list__body {
419
+ max-height: min(28rem, 55vh);
420
+ overflow-y: auto;
421
+ overscroll-behavior: contain;
422
+ scrollbar-gutter: stable;
423
+ }
424
+
425
+ }
@@ -0,0 +1,184 @@
1
+ /* relation-list — emitted by src/primitives/relation-list.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.components {
4
+ :where(.astra-ui) .astra-relation-list__header {
5
+ display: flex;
6
+ gap: 0.75rem;
7
+ align-items: center;
8
+ justify-content: space-between;
9
+ }
10
+
11
+ :where(.astra-ui) .astra-relation-list li {
12
+ display: grid;
13
+ grid-template-columns: 0.9rem minmax(0, 1fr) auto;
14
+ column-gap: 0.55rem;
15
+ align-items: center;
16
+ border: 0;
17
+ border-bottom: 1px solid var(--astra-color-border);
18
+ border-radius: 0;
19
+ background: transparent;
20
+ padding: 0.62rem 0.08rem;
21
+ }
22
+
23
+ :where(.astra-ui) .astra-relation-list li[data-interactive] {
24
+ display: block;
25
+ padding: 0;
26
+ }
27
+
28
+ :where(.astra-ui) .astra-relation-list__trigger {
29
+ display: grid;
30
+ grid-template-columns: 0.9rem minmax(0, 1fr) auto;
31
+ width: 100%;
32
+ column-gap: 0.55rem;
33
+ align-items: center;
34
+ cursor: pointer;
35
+ border: 0;
36
+ border-radius: 0;
37
+ background: transparent;
38
+ color: inherit;
39
+ padding: 0.62rem 0.08rem;
40
+ text-align: left;
41
+ }
42
+
43
+ :where(.astra-ui) .astra-relation-list__trigger:hover {
44
+ background: transparent;
45
+ color: var(--astra-color-link);
46
+ }
47
+
48
+ :where(.astra-ui) .astra-relation-list__trigger > span:last-child {
49
+ grid-column: 3;
50
+ grid-row: 1 / span 2;
51
+ color: var(--astra-color-text-subtle);
52
+ }
53
+
54
+ :where(.astra-ui) .astra-relation-item__glyph {
55
+ grid-column: 1;
56
+ grid-row: 1 / span 2;
57
+ align-self: start;
58
+ color: var(--astra-color-text-subtle);
59
+ line-height: 1.2;
60
+ }
61
+
62
+ :where(.astra-ui) .astra-relation-item__glyph[data-empty] {
63
+ visibility: hidden;
64
+ }
65
+
66
+ :where(.astra-ui) .astra-relation-list [data-kind="decision"] .astra-relation-item__glyph {
67
+ color: var(--astra-color-kind-decision);
68
+ }
69
+
70
+ :where(.astra-ui) .astra-relation-list [data-kind="input"] .astra-relation-item__glyph {
71
+ color: var(--astra-color-kind-input);
72
+ }
73
+
74
+ :where(.astra-ui) .astra-relation-list [data-kind="output"] .astra-relation-item__glyph {
75
+ color: var(--astra-color-kind-output);
76
+ }
77
+
78
+ :where(.astra-ui) .astra-relation-list [data-kind="finding"] .astra-relation-item__glyph {
79
+ color: var(--astra-color-kind-finding);
80
+ }
81
+
82
+ :where(.astra-ui) .astra-relation-list [data-kind="prior_insight"] .astra-relation-item__glyph {
83
+ color: var(--astra-color-kind-insight);
84
+ }
85
+
86
+ :where(.astra-ui) .astra-relation-item__copy {
87
+ display: grid;
88
+ grid-column: 2;
89
+ min-width: 0;
90
+ gap: 0.1rem;
91
+ }
92
+
93
+ :where(.astra-ui) .astra-relation-list li > small {
94
+ grid-column: 2;
95
+ min-width: 0;
96
+ }
97
+
98
+ :where(.astra-ui) .astra-relation-item__label {
99
+ font-family: var(--astra-font-ui);
100
+ font-size: 0.72rem;
101
+ }
102
+
103
+ :where(.astra-ui) .astra-relation-item__label,
104
+ :where(.astra-ui) .astra-relation-list code,
105
+ :where(.astra-ui) .astra-relation-list small {
106
+ overflow-wrap: anywhere;
107
+ }
108
+
109
+ :where(.astra-ui) .astra-relation-list code,
110
+ :where(.astra-ui) .astra-relation-list small {
111
+ color: var(--astra-color-text-subtle);
112
+ font-size: 0.59rem;
113
+ }
114
+
115
+ :where(.astra-ui) .astra-relation-list > p {
116
+ color: var(--astra-color-text-subtle);
117
+ font-size: 0.72rem;
118
+ }
119
+
120
+ :where(.astra-ui) .astra-relation-list > .astra-relation-list__description {
121
+ margin: 0.22rem 0 0.62rem;
122
+ color: var(--astra-color-text-subtle);
123
+ font-size: 0.67rem;
124
+ line-height: 1.45;
125
+ }
126
+
127
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-relation-list li,
128
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-relation-list__trigger {
129
+ min-height: 0;
130
+ padding-block: 0.5rem;
131
+ }
132
+
133
+ :where(.astra-ui) .astra-relation-list ul {
134
+ border-top: 1px solid var(--astra-color-border);
135
+ list-style: none;
136
+ display: grid;
137
+ gap: 0;
138
+ margin: 0.5rem 0 0;
139
+ border: 0;
140
+ padding: 0;
141
+ }
142
+
143
+ :where(.astra-ui) .astra-relation-list li,
144
+ :where(.astra-ui) .astra-relation-list__trigger {
145
+ min-height: 0;
146
+ border: 0;
147
+ background: transparent;
148
+ }
149
+
150
+ :where(.astra-ui) .astra-relation-list li + li {
151
+ border-top: 1px solid var(--astra-color-border);
152
+ }
153
+
154
+ :where(.astra-ui) .astra-relation-list li[data-interactive] {
155
+ border-radius: 0;
156
+ }
157
+
158
+ :where(.astra-ui) .astra-relation-list__trigger,
159
+ :where(.astra-ui) .astra-relation-list li:where(:not([data-interactive])) {
160
+ grid-template-columns: 1.375rem minmax(0, 1fr) 1rem;
161
+ padding: 0.625rem 0.25rem;
162
+ }
163
+
164
+ :where(.astra-ui) .astra-relation-item__label {
165
+ font: 400 0.8125rem/1.25 var(--astra-font-ui);
166
+ }
167
+
168
+ :where(.astra-ui) .astra-relation-list small {
169
+ margin-top: 0.125rem;
170
+ color: var(--astra-color-text-subtle);
171
+ font-size: 0.6875rem;
172
+ }
173
+
174
+ :where(.astra-ui) .astra-relation-list__trigger:hover {
175
+ background: transparent;
176
+ }
177
+
178
+ :where(.astra-ui) .astra-relation-list__trigger:focus-visible {
179
+ outline: 2px solid var(--astra-color-accent);
180
+ outline-offset: -2px;
181
+ outline-color: var(--astra-color-focus);
182
+ }
183
+
184
+ }