@astra-spec/ui 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/README.md +47 -4
  2. package/TOKENS.md +14 -8
  3. package/blocks.css +1 -0
  4. package/components.css +6 -0
  5. package/dist/blocks/analysis-tree.d.ts.map +1 -1
  6. package/dist/blocks/analysis-tree.js +4 -7
  7. package/dist/blocks/analysis-tree.js.map +1 -1
  8. package/dist/blocks/decisions-list.d.ts.map +1 -1
  9. package/dist/blocks/decisions-list.js +1 -1
  10. package/dist/blocks/decisions-list.js.map +1 -1
  11. package/dist/blocks/findings-list.d.ts.map +1 -1
  12. package/dist/blocks/findings-list.js +3 -4
  13. package/dist/blocks/findings-list.js.map +1 -1
  14. package/dist/blocks/index.d.ts +2 -4
  15. package/dist/blocks/index.d.ts.map +1 -1
  16. package/dist/blocks/index.js +1 -2
  17. package/dist/blocks/index.js.map +1 -1
  18. package/dist/blocks/outputs-list.d.ts +2 -7
  19. package/dist/blocks/outputs-list.d.ts.map +1 -1
  20. package/dist/blocks/outputs-list.js +11 -21
  21. package/dist/blocks/outputs-list.js.map +1 -1
  22. package/dist/blocks/papers-list.d.ts.map +1 -1
  23. package/dist/blocks/papers-list.js +3 -3
  24. package/dist/blocks/papers-list.js.map +1 -1
  25. package/dist/blocks/section.d.ts.map +1 -1
  26. package/dist/blocks/section.js +3 -2
  27. package/dist/blocks/section.js.map +1 -1
  28. package/dist/components/figure-zoom.d.ts +6 -0
  29. package/dist/components/figure-zoom.d.ts.map +1 -0
  30. package/dist/components/figure-zoom.js +28 -0
  31. package/dist/components/figure-zoom.js.map +1 -0
  32. package/dist/components/finding-detail.d.ts +4 -2
  33. package/dist/components/finding-detail.d.ts.map +1 -1
  34. package/dist/components/finding-detail.js +41 -25
  35. package/dist/components/finding-detail.js.map +1 -1
  36. package/dist/components/index.d.ts +9 -0
  37. package/dist/components/index.d.ts.map +1 -1
  38. package/dist/components/index.js +5 -0
  39. package/dist/components/index.js.map +1 -1
  40. package/dist/components/insight-trigger.d.ts.map +1 -1
  41. package/dist/components/insight-trigger.js +3 -2
  42. package/dist/components/insight-trigger.js.map +1 -1
  43. package/dist/components/output-card.d.ts +13 -0
  44. package/dist/components/output-card.d.ts.map +1 -0
  45. package/dist/components/output-card.js +12 -0
  46. package/dist/components/output-card.js.map +1 -0
  47. package/dist/components/output-detail.d.ts +6 -2
  48. package/dist/components/output-detail.d.ts.map +1 -1
  49. package/dist/components/output-detail.js +49 -13
  50. package/dist/components/output-detail.js.map +1 -1
  51. package/dist/components/output-dialog.d.ts +6 -1
  52. package/dist/components/output-dialog.d.ts.map +1 -1
  53. package/dist/components/output-dialog.js +2 -2
  54. package/dist/components/output-dialog.js.map +1 -1
  55. package/dist/components/output-entry.d.ts +17 -0
  56. package/dist/components/output-entry.d.ts.map +1 -0
  57. package/dist/components/output-entry.js +21 -0
  58. package/dist/components/output-entry.js.map +1 -0
  59. package/dist/components/output-provenance.d.ts +6 -0
  60. package/dist/components/output-provenance.d.ts.map +1 -0
  61. package/dist/components/output-provenance.js +16 -0
  62. package/dist/components/output-provenance.js.map +1 -0
  63. package/dist/components/output-status.d.ts +8 -0
  64. package/dist/components/output-status.d.ts.map +1 -0
  65. package/dist/components/output-status.js +17 -0
  66. package/dist/components/output-status.js.map +1 -0
  67. package/dist/components/paper-detail.d.ts.map +1 -1
  68. package/dist/components/paper-detail.js +2 -2
  69. package/dist/components/paper-detail.js.map +1 -1
  70. package/dist/components/paper-row.d.ts +9 -0
  71. package/dist/components/paper-row.d.ts.map +1 -0
  72. package/dist/components/paper-row.js +11 -0
  73. package/dist/components/paper-row.js.map +1 -0
  74. package/dist/components/record-dialog.d.ts +5 -1
  75. package/dist/components/record-dialog.d.ts.map +1 -1
  76. package/dist/components/record-dialog.js +7 -4
  77. package/dist/components/record-dialog.js.map +1 -1
  78. package/dist/components/record-preview.d.ts.map +1 -1
  79. package/dist/components/record-preview.js +8 -7
  80. package/dist/components/record-preview.js.map +1 -1
  81. package/dist/lib/labels.d.ts +34 -2
  82. package/dist/lib/labels.d.ts.map +1 -1
  83. package/dist/lib/labels.js +35 -4
  84. package/dist/lib/labels.js.map +1 -1
  85. package/dist/model/index.d.ts +4 -2
  86. package/dist/model/index.d.ts.map +1 -1
  87. package/dist/model/index.js +1 -1
  88. package/dist/model/index.js.map +1 -1
  89. package/dist/model/kind.d.ts +2 -2
  90. package/dist/model/kind.d.ts.map +1 -1
  91. package/dist/model/kind.js +3 -4
  92. package/dist/model/kind.js.map +1 -1
  93. package/dist/model/output-provenance.d.ts +17 -0
  94. package/dist/model/output-provenance.d.ts.map +1 -0
  95. package/dist/model/output-provenance.js +2 -0
  96. package/dist/model/output-provenance.js.map +1 -0
  97. package/dist/model/output-status.d.ts +17 -0
  98. package/dist/model/output-status.d.ts.map +1 -0
  99. package/dist/model/output-status.js +2 -0
  100. package/dist/model/output-status.js.map +1 -0
  101. package/dist/model/relations.d.ts +37 -12
  102. package/dist/model/relations.d.ts.map +1 -1
  103. package/dist/model/relations.js +76 -23
  104. package/dist/model/relations.js.map +1 -1
  105. package/dist/primitives/dialog.d.ts.map +1 -1
  106. package/dist/primitives/dialog.js +9 -1
  107. package/dist/primitives/dialog.js.map +1 -1
  108. package/dist/primitives/index.d.ts +6 -0
  109. package/dist/primitives/index.d.ts.map +1 -1
  110. package/dist/primitives/index.js +3 -0
  111. package/dist/primitives/index.js.map +1 -1
  112. package/dist/primitives/inline-reference.d.ts +9 -0
  113. package/dist/primitives/inline-reference.d.ts.map +1 -0
  114. package/dist/primitives/inline-reference.js +14 -0
  115. package/dist/primitives/inline-reference.js.map +1 -0
  116. package/dist/primitives/kind-glyph.d.ts +8 -0
  117. package/dist/primitives/kind-glyph.d.ts.map +1 -0
  118. package/dist/primitives/kind-glyph.js +9 -0
  119. package/dist/primitives/kind-glyph.js.map +1 -0
  120. package/dist/primitives/output-status-glyph.d.ts +8 -0
  121. package/dist/primitives/output-status-glyph.d.ts.map +1 -0
  122. package/dist/primitives/output-status-glyph.js +13 -0
  123. package/dist/primitives/output-status-glyph.js.map +1 -0
  124. package/dist/primitives/preview-popover.d.ts +1 -1
  125. package/dist/primitives/preview-popover.d.ts.map +1 -1
  126. package/dist/primitives/record-list.d.ts.map +1 -1
  127. package/dist/primitives/record-list.js +3 -2
  128. package/dist/primitives/record-list.js.map +1 -1
  129. package/dist/primitives/relation-list.d.ts.map +1 -1
  130. package/dist/primitives/relation-list.js +3 -2
  131. package/dist/primitives/relation-list.js.map +1 -1
  132. package/dist/primitives/tooltip.d.ts +7 -0
  133. package/dist/primitives/tooltip.d.ts.map +1 -0
  134. package/dist/primitives/tooltip.js +31 -0
  135. package/dist/primitives/tooltip.js.map +1 -0
  136. package/dist/views/inventory.d.ts +12 -1
  137. package/dist/views/inventory.d.ts.map +1 -1
  138. package/dist/views/inventory.js +23 -17
  139. package/dist/views/inventory.js.map +1 -1
  140. package/isolate.css +7 -0
  141. package/package.json +7 -4
  142. package/primitives.css +3 -0
  143. package/src/blocks/analysis-tree.tsx +4 -30
  144. package/src/blocks/decisions-list.tsx +5 -3
  145. package/src/blocks/findings-list.tsx +10 -8
  146. package/src/blocks/index.ts +2 -4
  147. package/src/blocks/outputs-list.tsx +43 -106
  148. package/src/blocks/papers-list.tsx +2 -18
  149. package/src/blocks/section.tsx +3 -2
  150. package/src/components/figure-zoom.tsx +72 -0
  151. package/src/components/finding-detail.tsx +106 -30
  152. package/src/components/index.ts +13 -0
  153. package/src/components/insight-trigger.tsx +3 -2
  154. package/src/components/output-card.tsx +51 -0
  155. package/src/components/output-detail.tsx +69 -21
  156. package/src/components/output-dialog.tsx +9 -0
  157. package/src/components/output-entry.tsx +61 -0
  158. package/src/components/output-provenance.tsx +86 -0
  159. package/src/components/output-status.tsx +38 -0
  160. package/src/components/paper-detail.tsx +2 -2
  161. package/src/components/paper-row.tsx +41 -0
  162. package/src/components/record-dialog.tsx +13 -1
  163. package/src/components/record-preview.tsx +8 -14
  164. package/src/lib/labels.tsx +69 -6
  165. package/src/model/index.ts +6 -2
  166. package/src/model/kind.ts +4 -5
  167. package/src/model/output-provenance.ts +18 -0
  168. package/src/model/output-status.ts +18 -0
  169. package/src/model/relations.ts +92 -26
  170. package/src/primitives/dialog.tsx +7 -1
  171. package/src/primitives/index.ts +6 -0
  172. package/src/primitives/inline-reference.tsx +25 -0
  173. package/src/primitives/kind-glyph.tsx +24 -0
  174. package/src/primitives/output-status-glyph.tsx +37 -0
  175. package/src/primitives/preview-popover.tsx +1 -1
  176. package/src/primitives/record-list.tsx +3 -4
  177. package/src/primitives/relation-list.tsx +4 -7
  178. package/src/primitives/tooltip.tsx +51 -0
  179. package/src/views/inventory.tsx +54 -22
  180. package/styles/base.css +2 -1
  181. package/styles/blocks/analysis-tree.css +23 -26
  182. package/styles/blocks/decisions-list.css +6 -6
  183. package/styles/blocks/findings-list.css +50 -0
  184. package/styles/blocks/outputs-list.css +13 -434
  185. package/styles/blocks/papers-list.css +8 -74
  186. package/styles/blocks/records.css +13 -13
  187. package/styles/components/artifact-preview.css +15 -15
  188. package/styles/components/decision-detail.css +23 -23
  189. package/styles/components/evidence.css +2 -7
  190. package/styles/components/figure-zoom.css +62 -0
  191. package/styles/components/finding-detail.css +73 -11
  192. package/styles/components/input-detail.css +7 -7
  193. package/styles/components/insight-detail.css +17 -17
  194. package/styles/components/insight-list.css +6 -6
  195. package/styles/components/insight-trigger.css +5 -5
  196. package/styles/components/output-card.css +290 -0
  197. package/styles/components/output-detail.css +139 -51
  198. package/styles/components/output-entry.css +141 -0
  199. package/styles/components/output-provenance.css +94 -0
  200. package/styles/components/output-status.css +31 -0
  201. package/styles/components/paper-detail.css +22 -22
  202. package/styles/components/paper-doi.css +2 -2
  203. package/styles/components/paper-pdf-viewer.css +6 -6
  204. package/styles/components/paper-row.css +72 -0
  205. package/styles/components/record-preview.css +444 -268
  206. package/styles/primitives/badge.css +1 -1
  207. package/styles/primitives/button.css +25 -25
  208. package/styles/primitives/count-heading.css +3 -3
  209. package/styles/primitives/detail-layout.css +20 -20
  210. package/styles/primitives/dialog.css +75 -93
  211. package/styles/primitives/empty-state.css +1 -1
  212. package/styles/primitives/inline-reference.css +37 -0
  213. package/styles/primitives/kind-glyph.css +31 -0
  214. package/styles/primitives/kind.css +6 -0
  215. package/styles/primitives/preview-popover.css +6 -11
  216. package/styles/primitives/prose.css +1 -1
  217. package/styles/primitives/record-list.css +32 -48
  218. package/styles/primitives/relation-list.css +14 -36
  219. package/styles/primitives/surface-header.css +15 -11
  220. package/styles/primitives/tooltip.css +22 -0
  221. package/styles/tokens.css +19 -9
  222. package/styles/views/inventory.css +58 -27
  223. package/dist/blocks/prior-insights-list.d.ts +0 -9
  224. package/dist/blocks/prior-insights-list.d.ts.map +0 -1
  225. package/dist/blocks/prior-insights-list.js +0 -29
  226. package/dist/blocks/prior-insights-list.js.map +0 -1
  227. package/src/blocks/prior-insights-list.tsx +0 -52
@@ -16,7 +16,7 @@
16
16
  border: 0;
17
17
  background: transparent;
18
18
  color: inherit;
19
- padding: clamp(0.75rem, 3vw, 2.5rem);
19
+ padding: clamp(12px, 3vw, 40px);
20
20
  }
21
21
 
22
22
  :where(.astra-ui) .astra-dialog:not([open]) {
@@ -25,18 +25,18 @@
25
25
 
26
26
  :where(.astra-ui) .astra-dialog__header {
27
27
  display: flex;
28
- gap: 1rem;
28
+ gap: 16px;
29
29
  align-items: start;
30
30
  justify-content: space-between;
31
31
  border-bottom: 1px solid var(--astra-color-border);
32
32
  background: var(--astra-color-header);
33
- padding: 1rem 1.2rem;
33
+ padding: 16px 19.2px;
34
34
  }
35
35
 
36
36
  :where(.astra-ui) .astra-dialog__header > div:first-child {
37
37
  display: grid;
38
38
  min-width: 0;
39
- gap: 0.2rem;
39
+ gap: 3.2px;
40
40
  }
41
41
 
42
42
  :where(.astra-ui) .astra-dialog__header > div:first-child > span {
@@ -52,7 +52,7 @@
52
52
  margin: 0;
53
53
  color: var(--astra-color-text);
54
54
  font-family: var(--astra-font-ui);
55
- font-size: clamp(1.25rem, 2.5vw, 1.75rem);
55
+ font-size: clamp(var(--astra-font-size-title), 2.5vw, 28px);
56
56
  line-height: 1.15;
57
57
  }
58
58
 
@@ -63,8 +63,8 @@
63
63
 
64
64
  :where(.astra-ui) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
65
65
  display: grid;
66
- width: 2rem;
67
- height: 2rem;
66
+ width: 32px;
67
+ height: 32px;
68
68
  flex: 0 0 auto;
69
69
  cursor: pointer;
70
70
  place-items: center;
@@ -72,7 +72,7 @@
72
72
  border-radius: 50%;
73
73
  background: var(--astra-color-surface);
74
74
  color: var(--astra-color-text);
75
- font-size: 1.25rem;
75
+ font-size: var(--astra-font-size-title);
76
76
  line-height: 1;
77
77
  }
78
78
 
@@ -85,24 +85,18 @@
85
85
  display: inline-flex;
86
86
  width: auto;
87
87
  height: auto;
88
- min-height: 2rem;
88
+ min-height: 32px;
89
89
  align-items: center;
90
- gap: 0.35rem;
90
+ gap: 5.6px;
91
91
  border: 1px solid var(--astra-color-border);
92
- border-radius: 0.375rem;
92
+ border-radius: 6px;
93
93
  background: var(--astra-color-canvas);
94
94
  color: var(--astra-color-link);
95
- padding: 0.375rem 0.625rem;
95
+ padding: 6px 10px;
96
96
  font-size: var(--astra-font-size-sm);
97
97
  line-height: 1.2;
98
98
  }
99
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
100
  :where(.astra-ui) .astra-dialog:where([data-kind="paper"]) {
107
101
  align-items: stretch;
108
102
  }
@@ -131,31 +125,21 @@
131
125
 
132
126
  }
133
127
  :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);
128
+ padding: clamp(12px, 2vw, 24px);
145
129
  }
146
130
 
147
131
  :where(.astra-ui) .astra-dialog__header {
148
- min-height: 5.5rem;
132
+ min-height: 88px;
149
133
  align-items: flex-end;
150
- padding: 1.1rem clamp(1rem, 2.6vw, 2rem);
134
+ padding: 17.6px clamp(16px, 2.6vw, 32px);
151
135
  border-color: var(--astra-color-border-strong);
152
136
  background: var(--astra-color-canvas);
153
137
  }
154
138
 
155
139
  :where(.astra-ui) .astra-dialog__header h3 {
156
- max-width: 50rem;
140
+ max-width: 800px;
157
141
  font-family: var(--astra-font-heading);
158
- font-size: clamp(1.5rem, 3vw, 2.15rem);
142
+ font-size: clamp(24px, 3vw, 34.4px);
159
143
  font-weight: 700;
160
144
  line-height: 1.1;
161
145
  }
@@ -181,7 +165,7 @@
181
165
  display: inline-flex;
182
166
  min-height: 0;
183
167
  align-items: center;
184
- gap: 0.35rem;
168
+ gap: 5.6px;
185
169
  padding: 0;
186
170
  border: 0;
187
171
  color: var(--astra-color-text-subtle);
@@ -199,7 +183,7 @@
199
183
 
200
184
  :where(.astra-ui) .astra-dialog__back:focus-visible {
201
185
  outline: 1px solid currentcolor;
202
- outline-offset: 0.25rem;
186
+ outline-offset: 4px;
203
187
  }
204
188
 
205
189
  :where(.astra-ui) .astra-dialog__kind {
@@ -245,18 +229,18 @@
245
229
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
246
230
  min-height: 0;
247
231
  align-items: flex-start;
248
- margin: 0 0 1.375rem;
232
+ margin: 0 0 22px;
249
233
  padding: 0;
250
234
  border: 0;
251
235
  background: transparent;
252
236
  }
253
237
 
254
238
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header h3 {
255
- max-width: 56.25rem;
239
+ max-width: 900px;
256
240
  margin: 0;
257
241
  color: var(--astra-color-text);
258
242
  font-family: var(--astra-font-heading);
259
- font-size: clamp(1.65rem, 3vw, 1.8125rem);
243
+ font-size: clamp(26.4px, 3vw, 29px);
260
244
  font-weight: 700;
261
245
  line-height: 1.15;
262
246
  }
@@ -267,8 +251,8 @@
267
251
  }
268
252
 
269
253
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
270
- width: 2rem;
271
- height: 2rem;
254
+ width: 32px;
255
+ height: 32px;
272
256
  border: 1px solid var(--astra-color-border-strong);
273
257
  border-radius: 0;
274
258
  background: transparent;
@@ -286,7 +270,7 @@
286
270
  }
287
271
 
288
272
  :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));
273
+ height: max(512px, calc(100dvh - 208px));
290
274
  overflow: hidden;
291
275
  }
292
276
 
@@ -297,7 +281,7 @@
297
281
  }
298
282
 
299
283
  }
300
- @container (max-width: 47.5rem) {
284
+ @container (max-width: 760px) {
301
285
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]).astra-dialog:where([data-kind="paper"]) .astra-dialog__body {
302
286
  height: auto;
303
287
  overflow: visible;
@@ -305,7 +289,7 @@
305
289
 
306
290
  }
307
291
  :where(.astra-ui) .astra-dialog {
308
- padding: clamp(0.75rem, 2.4vw, 1.625rem);
292
+ padding: clamp(12px, 2.4vw, 26px);
309
293
  }
310
294
 
311
295
  :where(.astra-ui) .astra-dialog::backdrop {
@@ -315,26 +299,24 @@
315
299
 
316
300
  :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
317
301
  display: flex;
318
- width: min(45rem, 100%);
319
- height: min(38.75rem, calc(100dvh - 2rem));
320
- max-height: calc(100dvh - 2rem);
302
+ width: min(800px, 100%);
303
+ height: min(620px, calc(100dvh - 32px));
304
+ max-height: calc(100dvh - 32px);
321
305
  flex-direction: column;
322
306
  overflow: hidden;
323
307
  border: 1px solid var(--astra-color-border-strong);
324
- border-radius: 0.625rem;
308
+ border-radius: 10px;
325
309
  background: var(--astra-color-canvas);
326
- box-shadow: 0 1.375rem 4rem rgb(34 31 32 / 0.22);
310
+ box-shadow: 0 22px 64px rgb(34 31 32 / 0.22);
327
311
  color: var(--astra-color-text);
328
312
  font-family: var(--astra-font-body);
329
313
  }
330
314
 
315
+ /* The reader layout is the one with a sidebar — a paper beside its outline,
316
+ an artifact beside its details — and both want the same room for it. */
331
317
  :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%);
318
+ width: min(1248px, 100%);
319
+ height: min(700px, calc(100dvh - 32px));
338
320
  }
339
321
 
340
322
  :where(.astra-ui) .astra-dialog:where([data-kind="input"]) > .astra-dialog__panel,
@@ -351,12 +333,12 @@
351
333
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
352
334
  display: flex;
353
335
  box-sizing: border-box;
354
- min-height: 4.375rem;
336
+ min-height: 70px;
355
337
  flex: 0 0 auto;
356
338
  align-items: flex-start;
357
- gap: 0.75rem;
339
+ gap: 12px;
358
340
  margin: 0;
359
- padding: 0.8125rem 0.875rem 0.8125rem 1rem;
341
+ padding: 13px 14px 13px 16px;
360
342
  border: 0;
361
343
  border-block-end: 1px solid var(--astra-color-border);
362
344
  background: var(--astra-color-canvas);
@@ -366,11 +348,11 @@
366
348
  display: flex;
367
349
  min-width: 0;
368
350
  align-items: center;
369
- gap: 0.4375rem;
351
+ gap: 7px;
370
352
  }
371
353
 
372
354
  :where(.astra-ui) .astra-dialog__crumb {
373
- max-width: 14.375rem;
355
+ max-width: 230px;
374
356
  overflow: hidden;
375
357
  color: var(--astra-color-text-subtle);
376
358
  text-overflow: ellipsis;
@@ -395,14 +377,14 @@
395
377
  display: flex;
396
378
  flex: 0 0 auto;
397
379
  align-items: center;
398
- gap: 0.4375rem;
399
- margin-top: 0.0625rem;
380
+ gap: 7px;
381
+ margin-top: 1px;
400
382
  }
401
383
 
402
384
  :where(.astra-ui) .astra-dialog__back {
403
- width: 2rem;
404
- height: 2rem;
405
- min-height: 2rem;
385
+ width: 32px;
386
+ height: 32px;
387
+ min-height: 32px;
406
388
  flex: 0 0 auto;
407
389
  padding: 0;
408
390
  }
@@ -416,7 +398,7 @@
416
398
  background: var(--astra-color-canvas);
417
399
  }
418
400
 
419
- @media (max-width: 47.5rem) {
401
+ @media (max-width: 760px) {
420
402
  :where(.astra-ui) .astra-dialog {
421
403
  padding: 0;
422
404
  }
@@ -431,11 +413,11 @@
431
413
  }
432
414
 
433
415
  :where(.astra-ui) .astra-dialog__header {
434
- gap: 0.5rem;
416
+ gap: 8px;
435
417
  }
436
418
 
437
419
  :where(.astra-ui) .astra-dialog__action {
438
- padding-inline: 0.5rem;
420
+ padding-inline: 8px;
439
421
  }
440
422
 
441
423
  :where(.astra-ui) .astra-dialog__action > span + * {
@@ -459,45 +441,45 @@
459
441
  height: auto;
460
442
  min-height: 0;
461
443
  max-height: none;
462
- border-radius: 0.625rem;
444
+ border-radius: 10px;
463
445
  }
464
446
 
465
447
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__body {
466
- min-height: min(43.75rem, calc(100dvh - 8rem));
448
+ min-height: min(700px, calc(100dvh - 128px));
467
449
  }
468
450
 
469
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="input"] {
451
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="input"] {
470
452
  --astra-kind: var(--astra-color-kind-input);
471
453
  --astra-kind-ink: var(--astra-color-kind-input);
472
454
  --astra-kind-soft: var(--astra-color-kind-input-soft);
473
455
  }
474
456
 
475
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="analysis"] {
457
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="analysis"] {
476
458
  --astra-kind: var(--astra-color-kind-analysis);
477
459
  --astra-kind-ink: var(--astra-color-kind-analysis);
478
460
  --astra-kind-soft: var(--astra-color-kind-analysis-soft);
479
461
  }
480
462
 
481
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="output"] {
463
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="output"] {
482
464
  --astra-kind: var(--astra-color-kind-output);
483
465
  --astra-kind-ink: var(--astra-color-kind-output);
484
466
  --astra-kind-soft: var(--astra-color-kind-output-soft);
485
467
  }
486
468
 
487
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="decision"] {
469
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="decision"] {
488
470
  --astra-kind: var(--astra-color-kind-decision);
489
471
  --astra-kind-ink: var(--astra-color-kind-decision-ink);
490
472
  --astra-kind-soft: var(--astra-color-kind-decision-soft);
491
473
  }
492
474
 
493
- :where(.astra-ui) :is(.astra-record-list__glyph, .astra-dialog > .astra-dialog__panel)[data-kind="finding"] {
475
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="finding"] {
494
476
  --astra-kind: var(--astra-color-kind-finding);
495
477
  --astra-kind-ink: var(--astra-color-kind-finding);
496
478
  --astra-kind-soft: var(--astra-color-kind-finding-soft);
497
479
  }
498
480
 
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"] {
481
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="prior_insight"],
482
+ :where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="paper"] {
501
483
  --astra-kind: var(--astra-color-kind-insight);
502
484
  --astra-kind-ink: var(--astra-color-kind-insight-ink);
503
485
  --astra-kind-soft: var(--astra-color-kind-insight-soft);
@@ -513,10 +495,10 @@
513
495
  }
514
496
 
515
497
  :where(.astra-ui) .astra-dialog__header {
516
- min-height: 4.5rem;
498
+ min-height: 72px;
517
499
  border-color: var(--astra-color-border);
518
500
  background: var(--astra-color-header);
519
- padding: 0.85rem 1rem;
501
+ padding: 13.6px 16px;
520
502
  }
521
503
 
522
504
  :where(.astra-ui) .astra-dialog__header > div:first-child > span {
@@ -527,7 +509,7 @@
527
509
 
528
510
  :where(.astra-ui) .astra-dialog__header h3 {
529
511
  font-family: var(--astra-font-heading);
530
- font-size: clamp(1.05rem, 2vw, 1.4rem);
512
+ font-size: clamp(16.8px, 2vw, 22.4px);
531
513
  font-weight: 650;
532
514
  line-height: 1.2;
533
515
  }
@@ -537,8 +519,8 @@
537
519
  }
538
520
 
539
521
  :where(.astra-ui) .astra-dialog__actions > button {
540
- width: 1.9rem;
541
- height: 1.9rem;
522
+ width: 30.4px;
523
+ height: 30.4px;
542
524
  border-color: var(--astra-color-border-strong);
543
525
  border-radius: var(--astra-radius-control);
544
526
  background: var(--astra-color-surface-raised);
@@ -566,10 +548,10 @@
566
548
  :where(.astra-ui) .astra-dialog__header,
567
549
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
568
550
  box-sizing: border-box;
569
- min-height: 4.75rem;
551
+ min-height: 76px;
570
552
  align-items: flex-start;
571
553
  margin: 0;
572
- padding: 0.875rem 0.875rem 0.875rem 1rem;
554
+ padding: 14px 14px 14px 16px;
573
555
  border: 0;
574
556
  border-block-end: 1px solid var(--astra-color-border);
575
557
  background: var(--astra-color-canvas);
@@ -582,7 +564,7 @@
582
564
  margin: 0;
583
565
  color: var(--astra-color-text);
584
566
  font-family: var(--astra-font-heading);
585
- font-size: clamp(1.25rem, 2.2vw, 1.5rem);
567
+ font-size: clamp(var(--astra-font-size-title), 2.2vw, 24px);
586
568
  font-weight: 700;
587
569
  line-height: 1.12;
588
570
  text-overflow: ellipsis;
@@ -591,39 +573,39 @@
591
573
 
592
574
  :where(.astra-ui) .astra-dialog__actions > button:where(:not(.astra-dialog__action)),
593
575
  :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;
576
+ width: 30px;
577
+ height: 30px;
596
578
  border: 0;
597
579
  border-radius: 0;
598
580
  background: transparent;
599
581
  color: var(--astra-color-text-subtle);
600
- font-size: 1.25rem;
582
+ font-size: var(--astra-font-size-title);
601
583
  }
602
584
 
603
585
  :where(.astra-ui) .astra-dialog > .astra-dialog__panel {
604
586
  border-color: var(--astra-color-border-strong);
605
- border-radius: 0.625rem;
587
+ border-radius: 10px;
606
588
  background: var(--astra-color-canvas);
607
- box-shadow: 0 1.375rem 4rem rgb(34 31 32 / 0.22);
589
+ box-shadow: 0 22px 64px rgb(34 31 32 / 0.22);
608
590
  color: var(--astra-color-text);
609
591
  font-family: var(--astra-font-body);
610
592
  }
611
593
 
612
594
  :where(.astra-ui) .astra-dialog__header,
613
595
  :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;
596
+ min-height: 70px;
597
+ padding: 13px 14px 13px 16px;
616
598
  background: var(--astra-color-canvas);
617
599
  }
618
600
 
619
601
  :where(.astra-ui) .astra-dialog__header h3,
620
602
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header h3 {
621
603
  font-family: var(--astra-font-ui);
622
- font-size: 1.25rem;
604
+ font-size: var(--astra-font-size-title);
623
605
  line-height: 1.2;
624
606
  }
625
607
 
626
- @media (max-width: 47.5rem) {
608
+ @media (max-width: 760px) {
627
609
  :where(.astra-ui) .astra-dialog > .astra-dialog__panel,
628
610
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) > .astra-dialog__panel {
629
611
  border-radius: 0;
@@ -3,7 +3,7 @@
3
3
  @layer astra.components {
4
4
  :where(.astra-ui) .astra-empty-state,
5
5
  :where(.astra-ui) .astra-empty-state {
6
- margin: 1.5rem 0;
6
+ margin: 24px 0;
7
7
  color: var(--astra-color-text-subtle);
8
8
  }
9
9
 
@@ -0,0 +1,37 @@
1
+ @layer astra.tokens, astra.base, astra.components, astra.views;
2
+
3
+ @layer astra.components {
4
+ :where(.astra-ui).astra-inline-reference,
5
+ :where(.astra-ui) .astra-inline-reference {
6
+ display: inline;
7
+ background: transparent;
8
+ font: inherit;
9
+ font-weight: 600;
10
+ color: var(--astra-color-link);
11
+ text-decoration: underline;
12
+ text-decoration-thickness: 1px;
13
+ text-decoration-color: color-mix(in srgb, var(--astra-color-link) 55%, transparent);
14
+ text-underline-offset: 2px;
15
+ padding: 0.05em 0.1em;
16
+ border-radius: var(--astra-radius-control);
17
+ cursor: pointer;
18
+ transition: background-color 120ms ease;
19
+ }
20
+ :where(.astra-ui).astra-inline-reference > .astra-kind-glyph,
21
+ :where(.astra-ui) .astra-inline-reference > .astra-kind-glyph {
22
+ margin-right: 0.32em;
23
+ vertical-align: 0.02em;
24
+ }
25
+ :where(.astra-ui).astra-inline-reference:hover,
26
+ :where(.astra-ui) .astra-inline-reference:hover {
27
+ background: var(--astra-color-accent-soft);
28
+ text-decoration-color: var(--astra-color-link);
29
+ }
30
+ :where(.astra-ui).astra-inline-reference[data-kind="value"],
31
+ :where(.astra-ui) .astra-inline-reference[data-kind="value"] {
32
+ color: var(--astra-color-text);
33
+ font-variant-numeric: tabular-nums;
34
+ text-decoration: underline dotted color-mix(in srgb, var(--astra-color-kind-value) 60%, transparent);
35
+ white-space: nowrap;
36
+ }
37
+ }
@@ -0,0 +1,31 @@
1
+ @layer astra.tokens, astra.base, astra.components, astra.views;
2
+
3
+ @layer astra.components {
4
+ /* A kind mark has the same typography in prose, compact rows and viewers.
5
+ * Its own data-kind selects its colour through kind.css, independently of
6
+ * the surrounding record, link state or label's font size.
7
+ */
8
+ :where(.astra-ui) .astra-kind-glyph {
9
+ display: inline-block;
10
+ flex: none;
11
+ color: var(--astra-kind);
12
+ font-family: var(--astra-font-body);
13
+ font-size: var(--astra-font-size);
14
+ font-style: normal;
15
+ font-weight: 400;
16
+ line-height: 1;
17
+ letter-spacing: 0;
18
+ text-decoration: none;
19
+ }
20
+ :where(.astra-ui) .astra-kind-glyph[data-kind="paper"] {
21
+ width: 1em;
22
+ height: 1em;
23
+ vertical-align: -0.125em;
24
+ }
25
+
26
+ :where(.astra-ui) .astra-kind-glyph > svg {
27
+ display: block;
28
+ width: 100%;
29
+ height: 100%;
30
+ }
31
+ }
@@ -38,4 +38,10 @@
38
38
  --astra-kind-ink: var(--astra-color-kind-insight-ink);
39
39
  --astra-kind-soft: var(--astra-color-kind-insight-soft);
40
40
  }
41
+ :where(.astra-ui) [data-kind="value"],
42
+ :where(.astra-ui) [data-entry-kind="value"] {
43
+ --astra-kind: var(--astra-color-kind-value);
44
+ --astra-kind-ink: var(--astra-color-kind-value);
45
+ --astra-kind-soft: color-mix(in srgb, var(--astra-color-kind-value) 10%, transparent);
46
+ }
41
47
  }
@@ -10,7 +10,7 @@
10
10
  :where(.astra-ui) .astra-preview-popover {
11
11
  z-index: var(--astra-z-preview);
12
12
  width: var(--astra-width-preview);
13
- max-width: calc(100vw - 1rem);
13
+ max-width: calc(100vw - 32px);
14
14
  color: var(--astra-color-text);
15
15
  font-family: var(--astra-font-body);
16
16
  font-size: var(--astra-font-size);
@@ -21,16 +21,11 @@
21
21
  position: relative;
22
22
  display: flex;
23
23
  max-height: min(
24
- var(--astra-preview-available-height, calc(100dvh - 1.5rem)),
25
- calc(100dvh - 1.5rem)
24
+ var(--astra-preview-available-height, calc(100dvh - 24px)),
25
+ calc(100dvh - 24px)
26
26
  );
27
27
  flex-direction: column;
28
- border: 1px solid var(--astra-color-border);
29
- border-top-color: color-mix(
30
- in srgb,
31
- var(--astra-kind, var(--astra-color-border-strong)) 55%,
32
- var(--astra-color-border)
33
- );
28
+ border: 1px solid color-mix(in srgb, var(--astra-kind) 55%, transparent);
34
29
  border-radius: var(--astra-radius-preview);
35
30
  background: var(--astra-color-surface-muted);
36
31
  box-shadow: var(--astra-shadow-preview);
@@ -62,8 +57,8 @@
62
57
  }
63
58
 
64
59
  :where(.astra-ui) .astra-preview-popover__arrow {
65
- fill: var(--astra-color-surface-muted);
66
- stroke: var(--astra-color-border);
60
+ fill: var(--astra-color-preview-pointer);
61
+ stroke: none;
67
62
  stroke-width: 1px;
68
63
  }
69
64
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  :where(.astra-ui) .astra-prose__display-math .katex-display {
10
10
  max-width: 100%;
11
- margin: 0.8rem 0;
11
+ margin: 12.8px 0;
12
12
  overflow-x: auto;
13
13
  overflow-y: hidden;
14
14
  }