@astra-spec/ui 0.0.3 → 0.0.4
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.
- package/README.md +173 -20
- package/TOKENS.md +6 -3
- package/components.css +1 -0
- package/dist/blocks/decisions-list.d.ts +0 -1
- package/dist/blocks/decisions-list.d.ts.map +1 -1
- package/dist/blocks/decisions-list.js +1 -5
- package/dist/blocks/decisions-list.js.map +1 -1
- package/dist/blocks/index.d.ts +3 -3
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +2 -2
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/inputs-list.js +1 -1
- package/dist/blocks/inputs-list.js.map +1 -1
- package/dist/blocks/outputs-list.d.ts +2 -2
- package/dist/blocks/outputs-list.d.ts.map +1 -1
- package/dist/blocks/outputs-list.js +15 -19
- package/dist/blocks/outputs-list.js.map +1 -1
- package/dist/blocks/section.d.ts +1 -4
- package/dist/blocks/section.d.ts.map +1 -1
- package/dist/blocks/section.js +1 -12
- package/dist/blocks/section.js.map +1 -1
- package/dist/components/artifact-preview.d.ts +2 -54
- package/dist/components/artifact-preview.d.ts.map +1 -1
- package/dist/components/artifact-preview.js +2 -107
- package/dist/components/artifact-preview.js.map +1 -1
- package/dist/components/decision-detail.d.ts +1 -1
- package/dist/components/decision-detail.d.ts.map +1 -1
- package/dist/components/decision-detail.js.map +1 -1
- package/dist/components/finding-detail.d.ts +2 -2
- package/dist/components/finding-detail.d.ts.map +1 -1
- package/dist/components/finding-detail.js.map +1 -1
- package/dist/components/index.d.ts +9 -13
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6 -8
- package/dist/components/index.js.map +1 -1
- package/dist/components/input-detail.d.ts +1 -2
- package/dist/components/input-detail.d.ts.map +1 -1
- package/dist/components/input-detail.js +0 -3
- package/dist/components/input-detail.js.map +1 -1
- package/dist/components/insight-detail.d.ts +2 -8
- package/dist/components/insight-detail.d.ts.map +1 -1
- package/dist/components/insight-detail.js +5 -11
- package/dist/components/insight-detail.js.map +1 -1
- package/dist/components/insight-trigger.d.ts +1 -1
- package/dist/components/insight-trigger.d.ts.map +1 -1
- package/dist/components/insight-trigger.js.map +1 -1
- package/dist/components/output-detail.d.ts +2 -7
- package/dist/components/output-detail.d.ts.map +1 -1
- package/dist/components/output-detail.js +3 -30
- package/dist/components/output-detail.js.map +1 -1
- package/dist/components/output-dialog.d.ts +2 -2
- package/dist/components/output-dialog.d.ts.map +1 -1
- package/dist/components/output-dialog.js +2 -1
- package/dist/components/output-dialog.js.map +1 -1
- package/dist/components/paper-detail.d.ts +14 -14
- package/dist/components/paper-detail.d.ts.map +1 -1
- package/dist/components/paper-detail.js +49 -29
- package/dist/components/paper-detail.js.map +1 -1
- package/dist/components/paper-pdf-viewer.d.ts +19 -0
- package/dist/components/paper-pdf-viewer.d.ts.map +1 -0
- package/dist/components/paper-pdf-viewer.js +250 -0
- package/dist/components/paper-pdf-viewer.js.map +1 -0
- package/dist/components/record-dialog.d.ts +7 -5
- package/dist/components/record-dialog.d.ts.map +1 -1
- package/dist/components/record-dialog.js +7 -5
- package/dist/components/record-dialog.js.map +1 -1
- package/dist/components/record-preview.d.ts +2 -2
- package/dist/components/record-preview.d.ts.map +1 -1
- package/dist/components/record-preview.js +2 -2
- package/dist/components/record-preview.js.map +1 -1
- package/dist/components/relation-items.d.ts +1 -1
- package/dist/components/relation-items.d.ts.map +1 -1
- package/dist/components/relation-items.js +10 -3
- package/dist/components/relation-items.js.map +1 -1
- package/dist/{components/use-detail-stack.d.ts → lib/detail-stack.d.ts} +17 -2
- package/dist/lib/detail-stack.d.ts.map +1 -0
- package/dist/{components/use-detail-stack.js → lib/detail-stack.js} +15 -2
- package/dist/lib/detail-stack.js.map +1 -0
- package/dist/lib/index.d.ts +14 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +9 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/labels.d.ts +20 -0
- package/dist/lib/labels.d.ts.map +1 -1
- package/dist/lib/labels.js +20 -0
- package/dist/lib/labels.js.map +1 -1
- package/dist/lib/pdf-quote.d.ts +47 -0
- package/dist/lib/pdf-quote.d.ts.map +1 -0
- package/dist/lib/pdf-quote.js +154 -0
- package/dist/lib/pdf-quote.js.map +1 -0
- package/dist/lib/pdf-runtime.d.ts +102 -0
- package/dist/lib/pdf-runtime.d.ts.map +1 -0
- package/dist/lib/pdf-runtime.js +48 -0
- package/dist/lib/pdf-runtime.js.map +1 -0
- package/dist/lib/preview-data.d.ts +55 -0
- package/dist/lib/preview-data.d.ts.map +1 -0
- package/dist/lib/preview-data.js +108 -0
- package/dist/lib/preview-data.js.map +1 -0
- package/dist/lib/prose.d.ts +37 -0
- package/dist/lib/prose.d.ts.map +1 -0
- package/dist/lib/prose.js +60 -0
- package/dist/lib/prose.js.map +1 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts +4 -0
- package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/lib/use-isomorphic-layout-effect.js +4 -0
- package/dist/lib/use-isomorphic-layout-effect.js.map +1 -0
- package/dist/lib/use-output-expanded.d.ts +7 -0
- package/dist/lib/use-output-expanded.d.ts.map +1 -0
- package/dist/lib/use-output-expanded.js +29 -0
- package/dist/lib/use-output-expanded.js.map +1 -0
- package/dist/model/index.d.ts +5 -3
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/index.js +3 -2
- package/dist/model/index.js.map +1 -1
- package/dist/{primitives → model}/kind.d.ts +3 -0
- package/dist/model/kind.d.ts.map +1 -0
- package/dist/model/kind.js +25 -0
- package/dist/model/kind.js.map +1 -0
- package/dist/model/papers.d.ts +6 -6
- package/dist/model/papers.d.ts.map +1 -1
- package/dist/model/papers.js +8 -0
- package/dist/model/papers.js.map +1 -1
- package/dist/model/records.d.ts +5 -1
- package/dist/model/records.d.ts.map +1 -1
- package/dist/model/records.js +9 -0
- package/dist/model/records.js.map +1 -1
- package/dist/primitives/badge.d.ts +1 -1
- package/dist/primitives/badge.d.ts.map +1 -1
- package/dist/primitives/button.js +1 -1
- package/dist/primitives/button.js.map +1 -1
- package/dist/primitives/dialog.d.ts +1 -1
- package/dist/primitives/dialog.d.ts.map +1 -1
- package/dist/primitives/dialog.js +3 -3
- package/dist/primitives/dialog.js.map +1 -1
- package/dist/primitives/index.d.ts +4 -9
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +2 -5
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/preview-popover.d.ts +1 -1
- package/dist/primitives/preview-popover.d.ts.map +1 -1
- package/dist/primitives/preview-popover.js +1 -1
- package/dist/primitives/preview-popover.js.map +1 -1
- package/dist/primitives/prose.d.ts +1 -35
- package/dist/primitives/prose.d.ts.map +1 -1
- package/dist/primitives/prose.js +2 -58
- package/dist/primitives/prose.js.map +1 -1
- package/dist/primitives/record-list.d.ts +1 -1
- package/dist/primitives/record-list.d.ts.map +1 -1
- package/dist/primitives/record-list.js +1 -1
- package/dist/primitives/record-list.js.map +1 -1
- package/dist/primitives/relation-list.d.ts +1 -1
- package/dist/primitives/relation-list.d.ts.map +1 -1
- package/dist/primitives/relation-list.js +1 -1
- package/dist/primitives/relation-list.js.map +1 -1
- package/dist/primitives/slot.d.ts.map +1 -0
- package/dist/{lib → primitives}/slot.js +1 -1
- package/dist/primitives/slot.js.map +1 -0
- package/dist/primitives/surface-header.d.ts +1 -1
- package/dist/primitives/surface-header.d.ts.map +1 -1
- package/dist/views/inventory.d.ts +7 -5
- package/dist/views/inventory.d.ts.map +1 -1
- package/dist/views/inventory.js +5 -4
- package/dist/views/inventory.js.map +1 -1
- package/package.json +11 -1
- package/src/blocks/decisions-list.tsx +1 -6
- package/src/blocks/index.ts +2 -3
- package/src/blocks/inputs-list.tsx +1 -1
- package/src/blocks/outputs-list.tsx +53 -30
- package/src/blocks/section.tsx +1 -14
- package/src/components/artifact-preview.tsx +6 -161
- package/src/components/decision-detail.tsx +2 -1
- package/src/components/finding-detail.tsx +3 -2
- package/src/components/index.ts +10 -30
- package/src/components/input-detail.tsx +2 -5
- package/src/components/insight-detail.tsx +20 -35
- package/src/components/insight-trigger.tsx +2 -1
- package/src/components/output-detail.tsx +17 -38
- package/src/components/output-dialog.tsx +4 -3
- package/src/components/paper-detail.tsx +121 -66
- package/src/components/paper-pdf-viewer.tsx +319 -0
- package/src/components/record-dialog.tsx +15 -10
- package/src/components/record-preview.tsx +5 -4
- package/src/components/relation-items.ts +15 -5
- package/src/{components/use-detail-stack.ts → lib/detail-stack.ts} +24 -1
- package/src/lib/index.ts +22 -0
- package/src/lib/labels.tsx +40 -0
- package/src/lib/pdf-quote.ts +189 -0
- package/src/lib/pdf-runtime.ts +131 -0
- package/src/lib/preview-data.ts +155 -0
- package/src/lib/prose.tsx +87 -0
- package/src/lib/use-isomorphic-layout-effect.ts +4 -0
- package/src/lib/use-output-expanded.ts +27 -0
- package/src/model/index.ts +4 -2
- package/src/{primitives → model}/kind.ts +14 -0
- package/src/model/papers.ts +9 -7
- package/src/model/records.ts +12 -0
- package/src/primitives/badge.tsx +1 -1
- package/src/primitives/button.tsx +1 -1
- package/src/primitives/dialog.tsx +3 -5
- package/src/primitives/index.ts +4 -17
- package/src/primitives/preview-popover.tsx +2 -2
- package/src/primitives/prose.tsx +1 -86
- package/src/primitives/record-list.tsx +1 -1
- package/src/primitives/relation-list.tsx +1 -1
- package/src/{lib → primitives}/slot.tsx +1 -1
- package/src/primitives/surface-header.tsx +1 -1
- package/src/views/inventory.tsx +12 -8
- package/styles/blocks/analysis-tree.css +2 -2
- package/styles/blocks/decisions-list.css +4 -4
- package/styles/blocks/outputs-list.css +246 -19
- package/styles/blocks/papers-list.css +2 -2
- package/styles/components/artifact-preview.css +6 -6
- package/styles/components/decision-detail.css +2 -2
- package/styles/components/evidence.css +2 -2
- package/styles/components/input-detail.css +4 -4
- package/styles/components/insight-detail.css +56 -94
- package/styles/components/insight-list.css +3 -3
- package/styles/components/insight-trigger.css +1 -4
- package/styles/components/output-detail.css +25 -140
- package/styles/components/paper-detail.css +76 -95
- package/styles/components/paper-doi.css +3 -12
- package/styles/components/paper-pdf-viewer.css +120 -0
- package/styles/components/record-preview.css +10 -10
- package/styles/primitives/badge.css +1 -1
- package/styles/primitives/count-heading.css +2 -2
- package/styles/primitives/detail-layout.css +5 -5
- package/styles/primitives/dialog.css +9 -9
- package/styles/primitives/record-list.css +17 -17
- package/styles/primitives/relation-list.css +6 -6
- package/styles/primitives/surface-header.css +5 -5
- package/styles/tokens.css +11 -3
- package/styles/views/inventory.css +3 -3
- package/dist/components/detail-entry.d.ts +0 -15
- package/dist/components/detail-entry.d.ts.map +0 -1
- package/dist/components/detail-entry.js +0 -14
- package/dist/components/detail-entry.js.map +0 -1
- package/dist/components/use-detail-stack.d.ts.map +0 -1
- package/dist/components/use-detail-stack.js.map +0 -1
- package/dist/lib/slot.d.ts.map +0 -1
- package/dist/lib/slot.js.map +0 -1
- package/dist/primitives/kind.d.ts.map +0 -1
- package/dist/primitives/kind.js +0 -14
- package/dist/primitives/kind.js.map +0 -1
- package/src/components/detail-entry.ts +0 -19
- /package/dist/{lib → primitives}/slot.d.ts +0 -0
|
@@ -12,16 +12,6 @@
|
|
|
12
12
|
align-items: stretch;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
:where(.astra-ui) .astra-output-detail__layout:where([data-layout="single"]) .astra-output-detail__provenance {
|
|
16
|
-
position: static;
|
|
17
|
-
overflow: visible;
|
|
18
|
-
margin-top: 1.5rem;
|
|
19
|
-
border-top: 1px solid var(--astra-color-border);
|
|
20
|
-
border-left: 0;
|
|
21
|
-
background: transparent;
|
|
22
|
-
padding: 1.25rem 0 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
15
|
:where(.astra-ui) .astra-output-detail__result {
|
|
26
16
|
min-width: 0;
|
|
27
17
|
min-height: 0;
|
|
@@ -41,7 +31,7 @@
|
|
|
41
31
|
padding: 0.35rem 0.5rem 0.35rem 0.75rem;
|
|
42
32
|
color: var(--astra-color-text-subtle);
|
|
43
33
|
font-family: var(--astra-font-ui);
|
|
44
|
-
font-size:
|
|
34
|
+
font-size: var(--astra-font-size-2xs);
|
|
45
35
|
}
|
|
46
36
|
|
|
47
37
|
:where(.astra-ui) .astra-output-detail__fullscreen-header > span:first-child {
|
|
@@ -51,23 +41,6 @@
|
|
|
51
41
|
gap: 0.6rem;
|
|
52
42
|
}
|
|
53
43
|
|
|
54
|
-
:where(.astra-ui) .astra-output-detail__fullscreen-header small {
|
|
55
|
-
font-weight: 700;
|
|
56
|
-
font-size: inherit;
|
|
57
|
-
letter-spacing: 0.08em;
|
|
58
|
-
text-transform: uppercase;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:where(.astra-ui) .astra-output-detail__fullscreen-header strong {
|
|
62
|
-
min-width: 0;
|
|
63
|
-
overflow: hidden;
|
|
64
|
-
color: var(--astra-color-text);
|
|
65
|
-
font-family: var(--astra-font-heading);
|
|
66
|
-
font-size: 0.9rem;
|
|
67
|
-
text-overflow: ellipsis;
|
|
68
|
-
white-space: nowrap;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
44
|
:where(.astra-ui) .astra-output-detail__fullscreen-header button {
|
|
72
45
|
display: inline-flex;
|
|
73
46
|
min-height: 1.5rem;
|
|
@@ -80,7 +53,7 @@
|
|
|
80
53
|
color: var(--astra-color-accent);
|
|
81
54
|
padding: 0.18rem 0.45rem;
|
|
82
55
|
font: inherit;
|
|
83
|
-
font-size:
|
|
56
|
+
font-size: var(--astra-font-size-xs);
|
|
84
57
|
}
|
|
85
58
|
|
|
86
59
|
:where(.astra-ui) .astra-output-detail__fullscreen-header button:hover {
|
|
@@ -88,63 +61,23 @@
|
|
|
88
61
|
background: var(--astra-color-surface-muted);
|
|
89
62
|
}
|
|
90
63
|
|
|
91
|
-
:where(.astra-ui) .astra-output-detail__artifact[data-expanded] .astra-output-detail__preview {
|
|
92
|
-
width: 100%;
|
|
93
|
-
height: 100%;
|
|
94
|
-
min-height: 0;
|
|
95
|
-
max-height: none;
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
border: 0;
|
|
98
|
-
border-radius: 0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
:where(.astra-ui) .astra-output-detail__description {
|
|
102
|
-
margin: 1.25rem 0 0;
|
|
103
|
-
padding-top: 1.1rem;
|
|
104
|
-
border-top: 1px solid var(--astra-color-border);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
64
|
:where(.astra-ui) .astra-output-detail__layout:where([data-layout="single"]) .astra-output-detail__description:first-child {
|
|
108
65
|
margin-top: 0;
|
|
109
66
|
padding-top: 0;
|
|
110
67
|
border-top: 0;
|
|
111
68
|
}
|
|
112
69
|
|
|
113
|
-
:where(.astra-ui) .astra-output-detail__description h4 {
|
|
114
|
-
margin: 0 0 0.5rem;
|
|
115
|
-
color: var(--astra-color-text);
|
|
116
|
-
font-family: var(--astra-font-ui);
|
|
117
|
-
font-size: 0.82rem;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
70
|
:where(.astra-ui) .astra-output-detail__description-text {
|
|
121
71
|
width: 100%;
|
|
122
72
|
max-width: none;
|
|
123
73
|
margin: 0;
|
|
124
74
|
color: var(--astra-color-text-muted);
|
|
125
|
-
font-
|
|
126
|
-
|
|
75
|
+
font-family: var(--astra-font-body);
|
|
76
|
+
font-size: 1rem;
|
|
77
|
+
line-height: 1.6;
|
|
127
78
|
white-space: normal;
|
|
128
79
|
}
|
|
129
80
|
|
|
130
|
-
:where(.astra-ui) .astra-output-detail__provenance {
|
|
131
|
-
position: absolute;
|
|
132
|
-
inset: 0;
|
|
133
|
-
display: flex;
|
|
134
|
-
min-height: 0;
|
|
135
|
-
flex-direction: column;
|
|
136
|
-
overflow-y: auto;
|
|
137
|
-
overscroll-behavior: contain;
|
|
138
|
-
scrollbar-gutter: stable;
|
|
139
|
-
border-left: 1px solid var(--astra-color-border);
|
|
140
|
-
background: var(--astra-color-surface-raised);
|
|
141
|
-
padding: 1.35rem 1.2rem;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
:where(.astra-ui) .astra-output-detail__recipe {
|
|
145
|
-
margin-top: 0;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
81
|
:where(.astra-ui) .astra-output-detail__recipe summary {
|
|
149
82
|
cursor: pointer;
|
|
150
83
|
color: var(--astra-color-text);
|
|
@@ -153,14 +86,9 @@
|
|
|
153
86
|
font-weight: 700;
|
|
154
87
|
}
|
|
155
88
|
|
|
156
|
-
:where(.astra-ui) .astra-output-detail__recipe code {
|
|
157
|
-
color: var(--astra-color-text-muted);
|
|
158
|
-
font-size: 0.63rem;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
89
|
:where(.astra-ui) .astra-output-detail__recipe p {
|
|
162
90
|
color: var(--astra-color-text-subtle);
|
|
163
|
-
font-size:
|
|
91
|
+
font-size: var(--astra-font-size-2xs);
|
|
164
92
|
}
|
|
165
93
|
|
|
166
94
|
@media (max-width: 640px) {
|
|
@@ -175,34 +103,7 @@
|
|
|
175
103
|
overflow: visible;
|
|
176
104
|
}
|
|
177
105
|
|
|
178
|
-
:where(.astra-ui) .astra-output-detail__provenance {
|
|
179
|
-
position: static;
|
|
180
|
-
overflow: visible;
|
|
181
|
-
border-top: 1px solid var(--astra-color-border);
|
|
182
|
-
border-left: 0;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:where(.astra-ui) .astra-output-detail__preview {
|
|
186
|
-
min-height: 12rem;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
106
|
}
|
|
190
|
-
:where(.astra-ui) .astra-output-detail__result {
|
|
191
|
-
background: var(--astra-color-canvas);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
:where(.astra-ui) .astra-output-detail__description-text {
|
|
195
|
-
color: var(--astra-color-text);
|
|
196
|
-
font-family: var(--astra-font-body);
|
|
197
|
-
font-size: 1rem;
|
|
198
|
-
line-height: 1.6;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
:where(.astra-ui) .astra-output-detail__provenance {
|
|
202
|
-
border-color: var(--astra-color-border);
|
|
203
|
-
background: var(--astra-color-surface-raised);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
107
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__layout {
|
|
207
108
|
height: auto;
|
|
208
109
|
max-height: none;
|
|
@@ -212,7 +113,7 @@
|
|
|
212
113
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__description h4,
|
|
213
114
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__recipe summary {
|
|
214
115
|
color: var(--astra-color-text);
|
|
215
|
-
font: 700
|
|
116
|
+
font: 700 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
|
|
216
117
|
letter-spacing: 0;
|
|
217
118
|
text-transform: none;
|
|
218
119
|
}
|
|
@@ -390,7 +291,7 @@
|
|
|
390
291
|
:where(.astra-ui) .astra-output-detail__recipe h4 {
|
|
391
292
|
margin: 0 0 0.5rem;
|
|
392
293
|
color: var(--astra-color-text);
|
|
393
|
-
font: 700
|
|
294
|
+
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
394
295
|
}
|
|
395
296
|
|
|
396
297
|
:where(.astra-ui) .astra-output-detail__layout:where([data-layout="reader"]) {
|
|
@@ -399,12 +300,6 @@
|
|
|
399
300
|
align-items: stretch;
|
|
400
301
|
}
|
|
401
302
|
|
|
402
|
-
:where(.astra-ui) .astra-output-detail__result {
|
|
403
|
-
min-width: 0;
|
|
404
|
-
min-height: 0;
|
|
405
|
-
background: var(--astra-color-canvas);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
303
|
:where(.astra-ui) .astra-output-detail__layout:where([data-layout="reader"]) .astra-output-detail__result {
|
|
409
304
|
display: flex;
|
|
410
305
|
flex-direction: column;
|
|
@@ -490,20 +385,16 @@
|
|
|
490
385
|
flex: 0 0 auto;
|
|
491
386
|
}
|
|
492
387
|
|
|
388
|
+
/* In the provenance rail the description is a section like the relation
|
|
389
|
+
lists: flush with the rail padding, no divider of its own. The section
|
|
390
|
+
that follows brings its own top margin. */
|
|
493
391
|
:where(.astra-ui) .astra-output-detail__description {
|
|
494
392
|
max-height: none;
|
|
495
393
|
flex: 0 0 auto;
|
|
496
394
|
margin: 0;
|
|
497
395
|
overflow: visible;
|
|
498
396
|
border: 0;
|
|
499
|
-
|
|
500
|
-
background: var(--astra-color-canvas);
|
|
501
|
-
padding: 1rem 1.375rem;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
:where(.astra-ui) .astra-output-detail__description-text {
|
|
505
|
-
color: var(--astra-color-text-muted);
|
|
506
|
-
font: 1rem/1.55 var(--astra-font-body);
|
|
397
|
+
padding: 0;
|
|
507
398
|
}
|
|
508
399
|
|
|
509
400
|
|
|
@@ -517,6 +408,8 @@
|
|
|
517
408
|
:where(.astra-ui) .astra-output-detail__provenance {
|
|
518
409
|
position: absolute;
|
|
519
410
|
inset: 0;
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-direction: column;
|
|
520
413
|
min-width: 0;
|
|
521
414
|
min-height: 0;
|
|
522
415
|
overflow-y: auto;
|
|
@@ -527,8 +420,9 @@
|
|
|
527
420
|
padding: 1.25rem 1.125rem 1.875rem;
|
|
528
421
|
}
|
|
529
422
|
|
|
423
|
+
/* Recipe closes the rail; give it the same gap the relation lists carry. */
|
|
530
424
|
:where(.astra-ui) .astra-output-detail__recipe {
|
|
531
|
-
margin: 0;
|
|
425
|
+
margin: 1.625rem 0 0;
|
|
532
426
|
padding: 0 0 0.125rem;
|
|
533
427
|
border: 0;
|
|
534
428
|
}
|
|
@@ -547,7 +441,8 @@
|
|
|
547
441
|
}
|
|
548
442
|
|
|
549
443
|
:where(.astra-ui) .astra-output-detail__recipe code {
|
|
550
|
-
|
|
444
|
+
color: var(--astra-color-text-muted);
|
|
445
|
+
font-size: var(--astra-font-size-2xs);
|
|
551
446
|
line-height: 1.5;
|
|
552
447
|
}
|
|
553
448
|
|
|
@@ -578,10 +473,6 @@
|
|
|
578
473
|
padding: 0;
|
|
579
474
|
}
|
|
580
475
|
|
|
581
|
-
:where(.astra-ui) .astra-output-detail__fullscreen-header {
|
|
582
|
-
display: none;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
476
|
:where(.astra-ui) .astra-output-detail__artifact[data-expanded] {
|
|
586
477
|
position: fixed;
|
|
587
478
|
z-index: var(--astra-z-fullscreen);
|
|
@@ -622,13 +513,15 @@
|
|
|
622
513
|
|
|
623
514
|
:where(.astra-ui) .astra-output-detail__fullscreen-header small {
|
|
624
515
|
color: var(--astra-color-text-subtle);
|
|
625
|
-
font: 700
|
|
516
|
+
font: 700 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
|
|
626
517
|
letter-spacing: 0.075em;
|
|
627
518
|
text-transform: uppercase;
|
|
628
519
|
}
|
|
629
520
|
|
|
630
521
|
:where(.astra-ui) .astra-output-detail__fullscreen-header strong {
|
|
522
|
+
min-width: 0;
|
|
631
523
|
overflow: hidden;
|
|
524
|
+
color: var(--astra-color-text);
|
|
632
525
|
font: 700 1rem/1.2 var(--astra-font-ui);
|
|
633
526
|
text-overflow: ellipsis;
|
|
634
527
|
white-space: nowrap;
|
|
@@ -639,7 +532,9 @@
|
|
|
639
532
|
height: 100%;
|
|
640
533
|
min-height: 0;
|
|
641
534
|
max-height: none;
|
|
535
|
+
overflow: hidden;
|
|
642
536
|
border: 0;
|
|
537
|
+
border-radius: 0;
|
|
643
538
|
background: var(--astra-color-canvas);
|
|
644
539
|
}
|
|
645
540
|
|
|
@@ -677,7 +572,7 @@
|
|
|
677
572
|
:where(.astra-ui) .astra-output-detail__description > span {
|
|
678
573
|
color: var(--astra-color-text-subtle);
|
|
679
574
|
font-family: var(--astra-font-ui);
|
|
680
|
-
font-size:
|
|
575
|
+
font-size: var(--astra-font-size-2xs);
|
|
681
576
|
font-weight: 700;
|
|
682
577
|
letter-spacing: 0.08em;
|
|
683
578
|
text-transform: uppercase;
|
|
@@ -696,11 +591,6 @@
|
|
|
696
591
|
background: var(--astra-color-header);
|
|
697
592
|
}
|
|
698
593
|
|
|
699
|
-
:where(.astra-ui) .astra-output-detail__description-text {
|
|
700
|
-
color: var(--astra-color-text-muted);
|
|
701
|
-
font-family: var(--astra-font-ui);
|
|
702
|
-
}
|
|
703
|
-
|
|
704
594
|
:where(.astra-ui) .astra-output-detail__preview {
|
|
705
595
|
border-color: var(--astra-color-border-strong);
|
|
706
596
|
border-radius: 8px;
|
|
@@ -720,13 +610,8 @@
|
|
|
720
610
|
background: var(--astra-color-canvas);
|
|
721
611
|
}
|
|
722
612
|
|
|
723
|
-
:where(.astra-ui) .astra-dialog :is( .astra-output-detail__recipe pre, .astra-input-source code, .astra-insight-detail__paper
|
|
613
|
+
:where(.astra-ui) .astra-dialog :is( .astra-output-detail__recipe pre, .astra-input-source code, .astra-insight-detail__paper a, .astra-insight-detail__open-source, .astra-paper-doi a ) {
|
|
724
614
|
background: var(--astra-color-canvas);
|
|
725
615
|
}
|
|
726
616
|
|
|
727
|
-
:where(.astra-ui) .astra-output-detail__description-text {
|
|
728
|
-
color: var(--astra-color-text-muted);
|
|
729
|
-
font-family: var(--astra-font-body);
|
|
730
|
-
}
|
|
731
|
-
|
|
732
617
|
}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
/* paper-detail — emitted by src/components/paper-detail.tsx */
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
@layer astra.components {
|
|
4
|
-
:where(.astra-ui) .astra-paper-detail__layout {
|
|
5
|
-
display: grid;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
min-height: 0;
|
|
9
|
-
grid-template-columns: minmax(0, 1fr) clamp(17.5rem, 27%, 20rem);
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
4
|
:where(.astra-ui) .astra-paper-detail__unavailable {
|
|
14
5
|
align-self: center;
|
|
15
6
|
display: grid;
|
|
@@ -26,13 +17,17 @@
|
|
|
26
17
|
margin: 0;
|
|
27
18
|
}
|
|
28
19
|
|
|
20
|
+
:where(.astra-ui) .astra-paper-detail__unavailable a {
|
|
21
|
+
color: var(--astra-color-link);
|
|
22
|
+
}
|
|
23
|
+
|
|
29
24
|
:where(.astra-ui) .astra-paper-detail__unavailable button {
|
|
30
25
|
border: 1px solid var(--astra-color-border-strong);
|
|
31
26
|
border-radius: 0.3rem;
|
|
32
27
|
background: var(--astra-color-surface-raised);
|
|
33
28
|
color: var(--astra-color-text);
|
|
34
29
|
cursor: pointer;
|
|
35
|
-
font: 700
|
|
30
|
+
font: 700 var(--astra-font-size-xs)/1.2 var(--astra-font-ui);
|
|
36
31
|
padding: 0.55rem 0.85rem;
|
|
37
32
|
}
|
|
38
33
|
|
|
@@ -41,50 +36,6 @@
|
|
|
41
36
|
color: var(--astra-color-link);
|
|
42
37
|
}
|
|
43
38
|
|
|
44
|
-
:where(.astra-ui) .astra-paper-detail__rail {
|
|
45
|
-
min-width: 0;
|
|
46
|
-
min-height: 0;
|
|
47
|
-
overflow-y: auto;
|
|
48
|
-
overscroll-behavior: contain;
|
|
49
|
-
scrollbar-gutter: stable;
|
|
50
|
-
border-left: 1px solid var(--astra-color-border);
|
|
51
|
-
background: var(--astra-color-surface-raised);
|
|
52
|
-
padding: 1.35rem 1.2rem;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:where(.astra-ui) .astra-paper-detail__insights {
|
|
56
|
-
gap: 0;
|
|
57
|
-
border-top: 1px solid var(--astra-color-border);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:where(.astra-ui) .astra-paper-detail__insights > .astra-paper-insight {
|
|
61
|
-
border: 0;
|
|
62
|
-
border-bottom: 1px solid var(--astra-color-border);
|
|
63
|
-
border-radius: 0;
|
|
64
|
-
background: transparent;
|
|
65
|
-
padding: 0.72rem 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:where(.astra-ui) .astra-paper-insight__claim {
|
|
69
|
-
display: -webkit-box;
|
|
70
|
-
margin-top: 0.38rem;
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
color: var(--astra-color-text-muted);
|
|
73
|
-
font-family: var(--astra-font-body);
|
|
74
|
-
font-size: 0.74rem;
|
|
75
|
-
line-height: 1.45;
|
|
76
|
-
-webkit-box-orient: vertical;
|
|
77
|
-
-webkit-line-clamp: 2;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:where(.astra-ui) .astra-paper-insight__claim > :first-child {
|
|
81
|
-
margin-top: 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:where(.astra-ui) .astra-paper-insight__claim > :last-child {
|
|
85
|
-
margin-bottom: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
39
|
:where(.astra-ui) .astra-paper-insight__sources {
|
|
89
40
|
display: flex;
|
|
90
41
|
gap: 0.5rem;
|
|
@@ -93,7 +44,7 @@
|
|
|
93
44
|
margin-top: 0.42rem;
|
|
94
45
|
color: var(--astra-color-text-subtle);
|
|
95
46
|
font-family: var(--astra-font-ui);
|
|
96
|
-
font-size:
|
|
47
|
+
font-size: var(--astra-font-size-xs);
|
|
97
48
|
}
|
|
98
49
|
|
|
99
50
|
:where(.astra-ui) .astra-paper-insight__sources > div {
|
|
@@ -111,31 +62,17 @@
|
|
|
111
62
|
background: transparent;
|
|
112
63
|
color: var(--astra-color-link);
|
|
113
64
|
padding: 0.08rem 0;
|
|
114
|
-
font
|
|
115
|
-
font-size: 0.62rem;
|
|
65
|
+
font: var(--astra-font-size-xs)/1.2 var(--astra-font-ui);
|
|
116
66
|
}
|
|
117
67
|
|
|
118
68
|
:where(.astra-ui) .astra-paper-insight__locate:hover {
|
|
119
69
|
border-color: var(--astra-color-link);
|
|
120
70
|
}
|
|
121
71
|
|
|
122
|
-
|
|
123
|
-
:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
overflow: visible;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:where(.astra-ui) .astra-paper-detail__rail {
|
|
130
|
-
overflow: visible;
|
|
131
|
-
border-top: 1px solid var(--astra-color-border);
|
|
132
|
-
border-left: 0;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
:where(.astra-ui) .astra-paper-detail__rail {
|
|
137
|
-
border-color: var(--astra-color-border);
|
|
138
|
-
background: var(--astra-color-surface-raised);
|
|
72
|
+
:where(.astra-ui) .astra-paper-insight__locate:where([aria-disabled="true"]) {
|
|
73
|
+
cursor: default;
|
|
74
|
+
border-color: transparent;
|
|
75
|
+
color: var(--astra-color-text-subtle);
|
|
139
76
|
}
|
|
140
77
|
|
|
141
78
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-paper-detail__rail {
|
|
@@ -160,16 +97,13 @@
|
|
|
160
97
|
|
|
161
98
|
}
|
|
162
99
|
:where(.astra-ui) .astra-paper-detail__layout {
|
|
100
|
+
display: grid;
|
|
163
101
|
width: 100%;
|
|
164
102
|
height: 100%;
|
|
165
103
|
max-height: none;
|
|
166
104
|
min-height: 0;
|
|
167
|
-
overflow: hidden;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
:where(.astra-ui) .astra-paper-detail__layout {
|
|
171
|
-
display: grid;
|
|
172
105
|
grid-template-columns: minmax(0, 1fr) clamp(16.25rem, 24%, 18.75rem);
|
|
106
|
+
overflow: hidden;
|
|
173
107
|
}
|
|
174
108
|
|
|
175
109
|
:where(.astra-ui) .astra-paper-detail__artifact {
|
|
@@ -188,11 +122,13 @@
|
|
|
188
122
|
overscroll-behavior: contain;
|
|
189
123
|
scrollbar-gutter: stable;
|
|
190
124
|
border: 0;
|
|
191
|
-
|
|
125
|
+
border-color: var(--astra-color-border);
|
|
126
|
+
background: var(--astra-color-header);
|
|
192
127
|
padding: 1.25rem 1.125rem 1.875rem;
|
|
193
128
|
}
|
|
194
129
|
|
|
195
130
|
:where(.astra-ui) .astra-paper-detail__insights {
|
|
131
|
+
gap: 0;
|
|
196
132
|
margin-top: 0.375rem;
|
|
197
133
|
border: 0;
|
|
198
134
|
}
|
|
@@ -208,18 +144,12 @@
|
|
|
208
144
|
border-top: 1px solid var(--astra-color-border);
|
|
209
145
|
}
|
|
210
146
|
|
|
211
|
-
:
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
color: var(--astra-color-link);
|
|
218
|
-
font: 0.6875rem/1.2 var(--astra-font-ui);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
:where(.astra-ui) .astra-paper-detail__unavailable {
|
|
222
|
-
color: var(--astra-color-text-subtle);
|
|
147
|
+
/* The rail is narrow: keep the claim trigger's glyph gutter tight so the
|
|
148
|
+
claims read as a list, not an indented block. */
|
|
149
|
+
:where(.astra-ui) .astra-paper-insight .astra-insight-trigger:where([data-variant="claim"]) {
|
|
150
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
151
|
+
gap: 0.4rem;
|
|
152
|
+
padding: 0;
|
|
223
153
|
}
|
|
224
154
|
|
|
225
155
|
@media (max-width: 47.5rem) {
|
|
@@ -241,9 +171,60 @@
|
|
|
241
171
|
|
|
242
172
|
}
|
|
243
173
|
|
|
244
|
-
:where(.astra-ui) .astra-paper-
|
|
245
|
-
|
|
246
|
-
|
|
174
|
+
:where(.astra-ui) .astra-paper-decisions__filters {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-wrap: wrap;
|
|
177
|
+
gap: 0.32rem;
|
|
178
|
+
margin-top: 0.5rem;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:where(.astra-ui) .astra-paper-decisions__filter {
|
|
182
|
+
display: inline-flex;
|
|
183
|
+
gap: 0.3rem;
|
|
184
|
+
align-items: center;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
border: 1px solid var(--astra-color-border);
|
|
187
|
+
border-radius: 999px;
|
|
188
|
+
background: transparent;
|
|
189
|
+
color: var(--astra-color-text-muted);
|
|
190
|
+
padding: 0.18rem 0.6rem;
|
|
191
|
+
font-family: var(--astra-font-ui);
|
|
192
|
+
font-size: var(--astra-font-size-xs);
|
|
193
|
+
line-height: 1.3;
|
|
194
|
+
text-align: left;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:where(.astra-ui) .astra-paper-decisions__filter:hover {
|
|
198
|
+
border-color: var(--astra-color-text-subtle);
|
|
199
|
+
color: var(--astra-color-text);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:where(.astra-ui) .astra-paper-decisions__filter:where([aria-pressed="true"]) {
|
|
203
|
+
border-color: var(--astra-color-link);
|
|
204
|
+
background: color-mix(in srgb, var(--astra-color-link) 12%, transparent);
|
|
205
|
+
color: var(--astra-color-text);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:where(.astra-ui) .astra-paper-decisions__empty {
|
|
209
|
+
margin: 0.5rem 0 0;
|
|
210
|
+
color: var(--astra-color-text-subtle);
|
|
211
|
+
font-family: var(--astra-font-ui);
|
|
212
|
+
font-size: var(--astra-font-size-xs);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:where(.astra-ui) .astra-paper-decisions__open {
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
border: 0;
|
|
218
|
+
background: transparent;
|
|
219
|
+
color: var(--astra-color-link);
|
|
220
|
+
margin-top: 0.45rem;
|
|
221
|
+
padding: 0;
|
|
222
|
+
font-family: var(--astra-font-ui);
|
|
223
|
+
font-size: var(--astra-font-size-xs);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
:where(.astra-ui) .astra-paper-decisions__open:hover {
|
|
227
|
+
text-decoration: underline;
|
|
247
228
|
}
|
|
248
229
|
|
|
249
230
|
}
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
/* paper-doi — emitted by src/components/
|
|
1
|
+
/* paper-doi — emitted by src/components/finding-detail.tsx */
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
@layer astra.components {
|
|
4
|
-
:where(.astra-ui) .astra-paper-doi h4 {
|
|
5
|
-
margin: 0 0 0.55rem;
|
|
6
|
-
color: var(--astra-color-text);
|
|
7
|
-
font-family: var(--astra-font-ui);
|
|
8
|
-
font-size: 0.82rem;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
4
|
:where(.astra-ui) .astra-paper-doi h4 {
|
|
12
5
|
margin: 0 0 0.5rem;
|
|
13
6
|
color: var(--astra-color-text);
|
|
14
|
-
font: 700
|
|
7
|
+
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
15
8
|
}
|
|
16
9
|
|
|
17
10
|
:where(.astra-ui) .astra-paper-doi a {
|
|
18
11
|
overflow-wrap: anywhere;
|
|
19
|
-
font-family: var(--astra-font-mono);
|
|
20
|
-
font-size: 0.63rem;
|
|
21
12
|
display: block;
|
|
22
13
|
box-sizing: border-box;
|
|
23
14
|
width: 100%;
|
|
@@ -27,7 +18,7 @@
|
|
|
27
18
|
background: var(--astra-color-canvas);
|
|
28
19
|
color: var(--astra-color-link);
|
|
29
20
|
padding: 0.5625rem 1rem;
|
|
30
|
-
font:
|
|
21
|
+
font: var(--astra-font-size-2xs)/1.6 var(--astra-font-mono);
|
|
31
22
|
text-align: left;
|
|
32
23
|
text-decoration: none;
|
|
33
24
|
white-space: nowrap;
|