@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,634 @@
1
+ /* dialog — emitted by src/primitives/dialog.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.components {
4
+ :where(.astra-ui) .astra-dialog {
5
+ position: fixed;
6
+ z-index: var(--astra-z-dialog);
7
+ inset: 0;
8
+ box-sizing: border-box;
9
+ display: grid;
10
+ width: 100%;
11
+ max-width: none;
12
+ height: 100%;
13
+ max-height: none;
14
+ margin: 0;
15
+ place-items: center;
16
+ border: 0;
17
+ background: transparent;
18
+ color: inherit;
19
+ padding: clamp(0.75rem, 3vw, 2.5rem);
20
+ }
21
+
22
+ :where(.astra-ui) .astra-dialog:not([open]) {
23
+ display: none;
24
+ }
25
+
26
+ :where(.astra-ui) .astra-dialog__header {
27
+ display: flex;
28
+ gap: 1rem;
29
+ align-items: start;
30
+ justify-content: space-between;
31
+ border-bottom: 1px solid var(--astra-color-border);
32
+ background: var(--astra-color-header);
33
+ padding: 1rem 1.2rem;
34
+ }
35
+
36
+ :where(.astra-ui) .astra-dialog__header > div:first-child {
37
+ display: grid;
38
+ min-width: 0;
39
+ gap: 0.2rem;
40
+ }
41
+
42
+ :where(.astra-ui) .astra-dialog__header > div:first-child > span {
43
+ color: var(--astra-color-accent);
44
+ font-family: var(--astra-font-ui);
45
+ font-size: 0.67rem;
46
+ font-weight: 700;
47
+ letter-spacing: 0.08em;
48
+ text-transform: uppercase;
49
+ }
50
+
51
+ :where(.astra-ui) .astra-dialog__header h3 {
52
+ margin: 0;
53
+ color: var(--astra-color-text);
54
+ font-family: var(--astra-font-ui);
55
+ font-size: clamp(1.25rem, 2.5vw, 1.75rem);
56
+ line-height: 1.15;
57
+ }
58
+
59
+ :where(.astra-ui) .astra-dialog__header code {
60
+ color: var(--astra-color-text-subtle);
61
+ font-size: 0.68rem;
62
+ }
63
+
64
+ :where(.astra-ui) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
65
+ display: grid;
66
+ width: 2rem;
67
+ height: 2rem;
68
+ flex: 0 0 auto;
69
+ cursor: pointer;
70
+ place-items: center;
71
+ border: 1px solid var(--astra-color-border-strong);
72
+ border-radius: 50%;
73
+ background: var(--astra-color-surface);
74
+ color: var(--astra-color-text);
75
+ font-size: 1.25rem;
76
+ line-height: 1;
77
+ }
78
+
79
+ :where(.astra-ui) .astra-dialog__actions > button:focus-visible {
80
+ outline: 2px solid var(--astra-color-accent);
81
+ outline-offset: 2px;
82
+ }
83
+
84
+ :where(.astra-ui) .astra-dialog__actions > .astra-dialog__action {
85
+ display: inline-flex;
86
+ width: auto;
87
+ height: auto;
88
+ min-height: 2rem;
89
+ align-items: center;
90
+ gap: 0.35rem;
91
+ border: 1px solid var(--astra-color-border);
92
+ border-radius: 0.375rem;
93
+ background: var(--astra-color-canvas);
94
+ color: var(--astra-color-link);
95
+ padding: 0.375rem 0.625rem;
96
+ font-size: 0.8125rem;
97
+ line-height: 1.2;
98
+ }
99
+
100
+ :where(.astra-ui) .astra-dialog:where([data-kind="paper"]) > .astra-dialog__panel {
101
+ width: min(92rem, 100%);
102
+ height: 100%;
103
+ max-height: 100%;
104
+ }
105
+
106
+ :where(.astra-ui) .astra-dialog:where([data-kind="paper"]) {
107
+ align-items: stretch;
108
+ }
109
+
110
+ :where(.astra-ui) .astra-dialog:where([data-kind="paper"]) .astra-dialog__body {
111
+ max-height: none;
112
+ flex: 1;
113
+ }
114
+
115
+ @media (max-width: 640px) {
116
+ :where(.astra-ui) .astra-dialog__body {
117
+ display: block;
118
+ overflow-y: auto;
119
+ }
120
+
121
+ :where(.astra-ui) .astra-dialog {
122
+ padding: 0;
123
+ }
124
+
125
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
126
+ height: 100dvh;
127
+ max-height: 100dvh;
128
+ border: 0;
129
+ border-radius: 0;
130
+ }
131
+
132
+ }
133
+ :where(.astra-ui) .astra-dialog {
134
+ padding: clamp(0.75rem, 2vw, 1.5rem);
135
+ }
136
+
137
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
138
+ width: min(74rem, 100%);
139
+ max-height: calc(100dvh - 2rem);
140
+ border-color: var(--astra-color-border-strong);
141
+ border-radius: 0;
142
+ background: var(--astra-color-canvas);
143
+ box-shadow: none;
144
+ font-family: var(--astra-font-body);
145
+ }
146
+
147
+ :where(.astra-ui) .astra-dialog__header {
148
+ min-height: 5.5rem;
149
+ align-items: flex-end;
150
+ padding: 1.1rem clamp(1rem, 2.6vw, 2rem);
151
+ border-color: var(--astra-color-border-strong);
152
+ background: var(--astra-color-canvas);
153
+ }
154
+
155
+ :where(.astra-ui) .astra-dialog__header h3 {
156
+ max-width: 50rem;
157
+ font-family: var(--astra-font-heading);
158
+ font-size: clamp(1.5rem, 3vw, 2.15rem);
159
+ font-weight: 700;
160
+ line-height: 1.1;
161
+ }
162
+
163
+ :where(.astra-ui) .astra-dialog__header > div:first-child > span {
164
+ color: var(--astra-kind-ink, var(--astra-color-text-subtle));
165
+ font-family: var(--astra-font-ui);
166
+ font-size: 0.6875rem;
167
+ letter-spacing: 0.1em;
168
+ }
169
+
170
+ :where(.astra-ui) .astra-dialog__body {
171
+ background: var(--astra-color-canvas);
172
+ }
173
+
174
+ @media (max-width: 720px) {
175
+ :where(.astra-ui) .astra-dialog {
176
+ padding: 0;
177
+ }
178
+
179
+ }
180
+ :where(.astra-ui) .astra-dialog__back {
181
+ display: inline-flex;
182
+ min-height: 0;
183
+ align-items: center;
184
+ gap: 0.35rem;
185
+ padding: 0;
186
+ border: 0;
187
+ color: var(--astra-color-text-subtle);
188
+ background: transparent;
189
+ font: 500 0.8125rem/1.2 var(--astra-font-ui);
190
+ letter-spacing: 0;
191
+ text-transform: none;
192
+ }
193
+
194
+ :where(.astra-ui) .astra-dialog__back:hover,
195
+ :where(.astra-ui) .astra-dialog__back:focus-visible {
196
+ color: var(--astra-color-kind-output);
197
+ background: transparent;
198
+ }
199
+
200
+ :where(.astra-ui) .astra-dialog__back:focus-visible {
201
+ outline: 1px solid currentcolor;
202
+ outline-offset: 0.25rem;
203
+ }
204
+
205
+ :where(.astra-ui) .astra-dialog__kind {
206
+ overflow: hidden;
207
+ color: var(--astra-kind-ink, var(--astra-color-text-subtle));
208
+ font: 700 0.625rem/1.2 var(--astra-font-ui);
209
+ letter-spacing: 0.09em;
210
+ text-overflow: ellipsis;
211
+ text-transform: uppercase;
212
+ white-space: nowrap;
213
+ }
214
+
215
+ :where(.astra-ui) .astra-dialog.astra-dialog:where([data-mode="embedded"]) {
216
+ position: static;
217
+ inset: auto;
218
+ display: block;
219
+ box-sizing: border-box;
220
+ width: 100%;
221
+ max-width: none;
222
+ height: auto;
223
+ max-height: none;
224
+ margin: 0;
225
+ padding: 0;
226
+ border: 0;
227
+ background: var(--astra-color-canvas);
228
+ container-type: inline-size;
229
+ }
230
+
231
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) > .astra-dialog__panel {
232
+ display: flex;
233
+ width: 100%;
234
+ max-width: none;
235
+ height: auto;
236
+ min-height: 0;
237
+ max-height: none;
238
+ overflow: visible;
239
+ border: 0;
240
+ border-radius: 0;
241
+ background: var(--astra-color-canvas);
242
+ box-shadow: none;
243
+ }
244
+
245
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
246
+ min-height: 0;
247
+ align-items: flex-start;
248
+ margin: 0 0 1.375rem;
249
+ padding: 0;
250
+ border: 0;
251
+ background: transparent;
252
+ }
253
+
254
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header h3 {
255
+ max-width: 56.25rem;
256
+ margin: 0;
257
+ color: var(--astra-color-text);
258
+ font-family: var(--astra-font-heading);
259
+ font-size: clamp(1.65rem, 3vw, 1.8125rem);
260
+ font-weight: 700;
261
+ line-height: 1.15;
262
+ }
263
+
264
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header code {
265
+ color: var(--astra-color-text-subtle);
266
+ font: 400 0.6875rem/1.25 var(--astra-font-mono);
267
+ }
268
+
269
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
270
+ width: 2rem;
271
+ height: 2rem;
272
+ border: 1px solid var(--astra-color-border-strong);
273
+ border-radius: 0;
274
+ background: transparent;
275
+ color: var(--astra-color-text-subtle);
276
+ }
277
+
278
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__body {
279
+ display: flex;
280
+ width: 100%;
281
+ max-height: none;
282
+ flex: 0 0 auto;
283
+ overflow: visible;
284
+ border: 1px solid var(--astra-color-border-strong);
285
+ background: var(--astra-color-canvas);
286
+ }
287
+
288
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]).astra-dialog:where([data-kind="paper"]) .astra-dialog__body {
289
+ height: max(32rem, calc(100dvh - 13rem));
290
+ overflow: hidden;
291
+ }
292
+
293
+ @media (max-width: 760px) {
294
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]).astra-dialog:where([data-kind="paper"]) .astra-dialog__body {
295
+ height: auto;
296
+ overflow: visible;
297
+ }
298
+
299
+ }
300
+ @container (max-width: 47.5rem) {
301
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]).astra-dialog:where([data-kind="paper"]) .astra-dialog__body {
302
+ height: auto;
303
+ overflow: visible;
304
+ }
305
+
306
+ }
307
+ :where(.astra-ui) .astra-dialog {
308
+ padding: clamp(0.75rem, 2.4vw, 1.625rem);
309
+ }
310
+
311
+ :where(.astra-ui) .astra-dialog::backdrop {
312
+ background: rgb(34 31 32 / 0.26);
313
+ backdrop-filter: none;
314
+ }
315
+
316
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
317
+ display: flex;
318
+ width: min(45rem, 100%);
319
+ height: min(38.75rem, calc(100dvh - 2rem));
320
+ max-height: calc(100dvh - 2rem);
321
+ flex-direction: column;
322
+ overflow: hidden;
323
+ border: 1px solid var(--astra-color-border-strong);
324
+ border-radius: 0.625rem;
325
+ background: var(--astra-color-canvas);
326
+ box-shadow: 0 1.375rem 4rem rgb(34 31 32 / 0.22);
327
+ color: var(--astra-color-text);
328
+ font-family: var(--astra-font-body);
329
+ }
330
+
331
+ :where(.astra-ui) .astra-dialog:where([data-layout="reader"]) > .astra-dialog__panel {
332
+ width: min(70rem, 100%);
333
+ height: min(43.75rem, calc(100dvh - 2rem));
334
+ }
335
+
336
+ :where(.astra-ui) .astra-dialog:where([data-layout="reader"][data-kind="output"]) > .astra-dialog__panel {
337
+ width: min(78rem, 100%);
338
+ }
339
+
340
+ :where(.astra-ui) .astra-dialog:where([data-kind="input"]) > .astra-dialog__panel,
341
+ :where(.astra-ui) .astra-dialog:where([data-kind="finding"]) > .astra-dialog__panel {
342
+ height: auto;
343
+ }
344
+
345
+ :where(.astra-ui) .astra-dialog:where([data-kind="input"]) .astra-dialog__body,
346
+ :where(.astra-ui) .astra-dialog:where([data-kind="finding"]) .astra-dialog__body {
347
+ flex: 0 1 auto;
348
+ }
349
+
350
+ :where(.astra-ui) .astra-dialog__header,
351
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
352
+ display: flex;
353
+ box-sizing: border-box;
354
+ min-height: 4.375rem;
355
+ flex: 0 0 auto;
356
+ align-items: flex-start;
357
+ gap: 0.75rem;
358
+ margin: 0;
359
+ padding: 0.8125rem 0.875rem 0.8125rem 1rem;
360
+ border: 0;
361
+ border-block-end: 1px solid var(--astra-color-border);
362
+ background: var(--astra-color-canvas);
363
+ }
364
+
365
+ :where(.astra-ui) .astra-dialog__trail {
366
+ display: flex;
367
+ min-width: 0;
368
+ align-items: center;
369
+ gap: 0.4375rem;
370
+ }
371
+
372
+ :where(.astra-ui) .astra-dialog__crumb {
373
+ max-width: 14.375rem;
374
+ overflow: hidden;
375
+ color: var(--astra-color-text-subtle);
376
+ text-overflow: ellipsis;
377
+ white-space: nowrap;
378
+ }
379
+
380
+ :where(.astra-ui) .astra-dialog__trail-separator {
381
+ flex: 0 0 auto;
382
+ color: var(--astra-color-border-strong);
383
+ font-size: 0.625rem;
384
+ }
385
+
386
+ :where(.astra-ui) .astra-dialog__kind {
387
+ min-width: 0;
388
+ overflow: hidden;
389
+ color: var(--astra-kind-ink, var(--astra-color-text-subtle));
390
+ text-overflow: ellipsis;
391
+ white-space: nowrap;
392
+ }
393
+
394
+ :where(.astra-ui) .astra-dialog__actions {
395
+ display: flex;
396
+ flex: 0 0 auto;
397
+ align-items: center;
398
+ gap: 0.4375rem;
399
+ margin-top: 0.0625rem;
400
+ }
401
+
402
+ :where(.astra-ui) .astra-dialog__back {
403
+ width: 2rem;
404
+ height: 2rem;
405
+ min-height: 2rem;
406
+ flex: 0 0 auto;
407
+ padding: 0;
408
+ }
409
+
410
+ :where(.astra-ui) .astra-dialog__body {
411
+ display: flex;
412
+ max-height: none;
413
+ flex: 1 1 auto;
414
+ min-height: 0;
415
+ overflow: hidden;
416
+ background: var(--astra-color-canvas);
417
+ }
418
+
419
+ @media (max-width: 47.5rem) {
420
+ :where(.astra-ui) .astra-dialog {
421
+ padding: 0;
422
+ }
423
+
424
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel,
425
+ :where(.astra-ui) .astra-dialog:where([data-layout="reader"]) > .astra-dialog__panel {
426
+ width: 100%;
427
+ height: 100dvh;
428
+ max-height: 100dvh;
429
+ border: 0;
430
+ border-radius: 0;
431
+ }
432
+
433
+ :where(.astra-ui) .astra-dialog__header {
434
+ gap: 0.5rem;
435
+ }
436
+
437
+ :where(.astra-ui) .astra-dialog__action {
438
+ padding-inline: 0.5rem;
439
+ }
440
+
441
+ :where(.astra-ui) .astra-dialog__action > span + * {
442
+ display: none;
443
+ }
444
+
445
+ }
446
+ :where(.astra-ui) .astra-dialog.astra-dialog:where([data-mode="embedded"]) {
447
+ position: static;
448
+ display: block;
449
+ width: 100%;
450
+ height: auto;
451
+ max-height: none;
452
+ padding: 0;
453
+ background: var(--astra-color-canvas);
454
+ }
455
+
456
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) > .astra-dialog__panel,
457
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]).astra-dialog:where([data-layout="reader"]) > .astra-dialog__panel {
458
+ width: 100%;
459
+ height: auto;
460
+ min-height: 0;
461
+ max-height: none;
462
+ border-radius: 0.625rem;
463
+ }
464
+
465
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__body {
466
+ min-height: min(43.75rem, calc(100dvh - 8rem));
467
+ }
468
+
469
+ :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="input"] {
470
+ --astra-kind: var(--astra-color-kind-input);
471
+ --astra-kind-ink: var(--astra-color-kind-input);
472
+ --astra-kind-soft: var(--astra-color-kind-input-soft);
473
+ }
474
+
475
+ :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="analysis"] {
476
+ --astra-kind: var(--astra-color-kind-analysis);
477
+ --astra-kind-ink: var(--astra-color-kind-analysis);
478
+ --astra-kind-soft: var(--astra-color-kind-analysis-soft);
479
+ }
480
+
481
+ :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="output"] {
482
+ --astra-kind: var(--astra-color-kind-output);
483
+ --astra-kind-ink: var(--astra-color-kind-output);
484
+ --astra-kind-soft: var(--astra-color-kind-output-soft);
485
+ }
486
+
487
+ :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="decision"] {
488
+ --astra-kind: var(--astra-color-kind-decision);
489
+ --astra-kind-ink: var(--astra-color-kind-decision-ink);
490
+ --astra-kind-soft: var(--astra-color-kind-decision-soft);
491
+ }
492
+
493
+ :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="finding"] {
494
+ --astra-kind: var(--astra-color-kind-finding);
495
+ --astra-kind-ink: var(--astra-color-kind-finding);
496
+ --astra-kind-soft: var(--astra-color-kind-finding-soft);
497
+ }
498
+
499
+ :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="prior_insight"],
500
+ :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="paper"] {
501
+ --astra-kind: var(--astra-color-kind-insight);
502
+ --astra-kind-ink: var(--astra-color-kind-insight-ink);
503
+ --astra-kind-soft: var(--astra-color-kind-insight-soft);
504
+ }
505
+
506
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
507
+ border-color: var(--astra-color-border-strong);
508
+ border-radius: 8px;
509
+ background: var(--astra-color-surface-raised);
510
+ box-shadow: var(--astra-shadow-raised, var(--astra-shadow-raised));
511
+ color: var(--astra-color-text);
512
+ font-family: var(--astra-font-ui);
513
+ }
514
+
515
+ :where(.astra-ui) .astra-dialog__header {
516
+ min-height: 4.5rem;
517
+ border-color: var(--astra-color-border);
518
+ background: var(--astra-color-header);
519
+ padding: 0.85rem 1rem;
520
+ }
521
+
522
+ :where(.astra-ui) .astra-dialog__header > div:first-child > span {
523
+ color: var(--astra-kind-ink, var(--astra-color-eyebrow));
524
+ font-size: 0.62rem;
525
+ letter-spacing: 0.09em;
526
+ }
527
+
528
+ :where(.astra-ui) .astra-dialog__header h3 {
529
+ font-family: var(--astra-font-heading);
530
+ font-size: clamp(1.05rem, 2vw, 1.4rem);
531
+ font-weight: 650;
532
+ line-height: 1.2;
533
+ }
534
+
535
+ :where(.astra-ui) .astra-dialog__header code {
536
+ font-family: var(--astra-font-mono);
537
+ }
538
+
539
+ :where(.astra-ui) .astra-dialog__actions > button {
540
+ width: 1.9rem;
541
+ height: 1.9rem;
542
+ border-color: var(--astra-color-border-strong);
543
+ border-radius: var(--astra-radius-control);
544
+ background: var(--astra-color-surface-raised);
545
+ color: var(--astra-color-text-muted);
546
+ font-family: var(--astra-font-ui);
547
+ }
548
+
549
+ :where(.astra-ui) .astra-dialog__actions > button:hover {
550
+ border-color: var(--astra-kind, var(--astra-color-accent));
551
+ background: var(--astra-color-surface-muted);
552
+ color: var(--astra-color-text);
553
+ }
554
+
555
+ :where(.astra-ui) .astra-dialog__actions > button:focus-visible {
556
+ outline-color: var(--astra-color-focus);
557
+ }
558
+
559
+ @media (max-width: 640px) {
560
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
561
+ border-radius: 0;
562
+ box-shadow: none;
563
+ }
564
+
565
+ }
566
+ :where(.astra-ui) .astra-dialog__header,
567
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
568
+ box-sizing: border-box;
569
+ min-height: 4.75rem;
570
+ align-items: flex-start;
571
+ margin: 0;
572
+ padding: 0.875rem 0.875rem 0.875rem 1rem;
573
+ border: 0;
574
+ border-block-end: 1px solid var(--astra-color-border);
575
+ background: var(--astra-color-canvas);
576
+ }
577
+
578
+ :where(.astra-ui) .astra-dialog__header h3,
579
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header h3 {
580
+ overflow: hidden;
581
+ max-width: none;
582
+ margin: 0;
583
+ color: var(--astra-color-text);
584
+ font-family: var(--astra-font-heading);
585
+ font-size: clamp(1.25rem, 2.2vw, 1.5rem);
586
+ font-weight: 700;
587
+ line-height: 1.12;
588
+ text-overflow: ellipsis;
589
+ white-space: nowrap;
590
+ }
591
+
592
+ :where(.astra-ui) .astra-dialog__actions > button:where(:not(.astra-dialog__action)),
593
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
594
+ width: 1.875rem;
595
+ height: 1.875rem;
596
+ border: 0;
597
+ border-radius: 0;
598
+ background: transparent;
599
+ color: var(--astra-color-text-subtle);
600
+ font-size: 1.25rem;
601
+ }
602
+
603
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
604
+ border-color: var(--astra-color-border-strong);
605
+ border-radius: 0.625rem;
606
+ background: var(--astra-color-canvas);
607
+ box-shadow: 0 1.375rem 4rem rgb(34 31 32 / 0.22);
608
+ color: var(--astra-color-text);
609
+ font-family: var(--astra-font-body);
610
+ }
611
+
612
+ :where(.astra-ui) .astra-dialog__header,
613
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
614
+ min-height: 4.375rem;
615
+ padding: 0.8125rem 0.875rem 0.8125rem 1rem;
616
+ background: var(--astra-color-canvas);
617
+ }
618
+
619
+ :where(.astra-ui) .astra-dialog__header h3,
620
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header h3 {
621
+ font-family: var(--astra-font-ui);
622
+ font-size: 1.25rem;
623
+ line-height: 1.2;
624
+ }
625
+
626
+ @media (max-width: 47.5rem) {
627
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel,
628
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) > .astra-dialog__panel {
629
+ border-radius: 0;
630
+ box-shadow: none;
631
+ }
632
+
633
+ }
634
+ }
@@ -0,0 +1,10 @@
1
+ /* empty-state — emitted by src/primitives/record-list.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.components {
4
+ :where(.astra-ui) .astra-empty-state,
5
+ :where(.astra-ui) .astra-empty-state {
6
+ margin: 1.5rem 0;
7
+ color: var(--astra-color-text-subtle);
8
+ }
9
+
10
+ }
@@ -0,0 +1,41 @@
1
+ /* kind — emitted by src/primitives/kind.ts */
2
+ /* Record-kind colour hook. Any element under the scope opts in with data-kind. */
3
+ @layer astra.tokens, astra.base, astra.components, astra.views;
4
+ @layer astra.components {
5
+ :where(.astra-ui) [data-kind="analysis"] {
6
+ --astra-kind: var(--astra-color-kind-analysis);
7
+ --astra-kind-ink: var(--astra-color-kind-analysis);
8
+ --astra-kind-soft: var(--astra-color-kind-analysis-soft);
9
+ }
10
+
11
+ :where(.astra-ui) [data-kind="input"] {
12
+ --astra-kind: var(--astra-color-kind-input);
13
+ --astra-kind-ink: var(--astra-color-kind-input);
14
+ --astra-kind-soft: var(--astra-color-kind-input-soft);
15
+ }
16
+
17
+ :where(.astra-ui) [data-kind="decision"] {
18
+ --astra-kind: var(--astra-color-kind-decision);
19
+ --astra-kind-ink: var(--astra-color-kind-decision-ink);
20
+ --astra-kind-soft: var(--astra-color-kind-decision-soft);
21
+ }
22
+
23
+ :where(.astra-ui) [data-kind="output"] {
24
+ --astra-kind: var(--astra-color-kind-output);
25
+ --astra-kind-ink: var(--astra-color-kind-output);
26
+ --astra-kind-soft: var(--astra-color-kind-output-soft);
27
+ }
28
+
29
+ :where(.astra-ui) [data-kind="finding"] {
30
+ --astra-kind: var(--astra-color-kind-finding);
31
+ --astra-kind-ink: var(--astra-color-kind-finding);
32
+ --astra-kind-soft: var(--astra-color-kind-finding-soft);
33
+ }
34
+
35
+ :where(.astra-ui) [data-kind="prior_insight"],
36
+ :where(.astra-ui) [data-kind="paper"] {
37
+ --astra-kind: var(--astra-color-kind-insight);
38
+ --astra-kind-ink: var(--astra-color-kind-insight-ink);
39
+ --astra-kind-soft: var(--astra-color-kind-insight-soft);
40
+ }
41
+ }
@@ -0,0 +1,15 @@
1
+ @layer astra.tokens, astra.base, astra.components, astra.views;
2
+
3
+ /* Prose: inline code and KaTeX math inside authored text (primitives/prose.tsx). */
4
+ @layer astra.components {
5
+ :where(.astra-ui) .astra-prose__inline-math {
6
+ white-space: nowrap;
7
+ }
8
+
9
+ :where(.astra-ui) .astra-prose__display-math .katex-display {
10
+ max-width: 100%;
11
+ margin: 0.8rem 0;
12
+ overflow-x: auto;
13
+ overflow-y: hidden;
14
+ }
15
+ }