@astra-spec/ui 0.0.3 → 0.0.5
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 +17 -8
- 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/findings-list.d.ts.map +1 -1
- package/dist/blocks/findings-list.js +2 -1
- package/dist/blocks/findings-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 +3 -13
- 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 +3 -2
- 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 +9 -8
- 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/model/kind.d.ts +9 -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 +8 -9
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +4 -5
- package/dist/primitives/index.js.map +1 -1
- package/dist/primitives/inline-reference.d.ts +9 -0
- package/dist/primitives/inline-reference.d.ts.map +1 -0
- package/dist/primitives/inline-reference.js +14 -0
- package/dist/primitives/inline-reference.js.map +1 -0
- package/dist/primitives/kind-glyph.d.ts +8 -0
- package/dist/primitives/kind-glyph.d.ts.map +1 -0
- package/dist/primitives/kind-glyph.js +9 -0
- package/dist/primitives/kind-glyph.js.map +1 -0
- package/dist/primitives/preview-popover.d.ts +2 -2
- 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 +3 -2
- 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 +3 -2
- 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/isolate.css +7 -0
- package/package.json +15 -3
- package/primitives.css +2 -0
- package/src/blocks/decisions-list.tsx +1 -6
- package/src/blocks/findings-list.tsx +2 -1
- 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 +3 -15
- 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 +5 -3
- 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 +12 -17
- 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/model/kind.ts +33 -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 +8 -17
- package/src/primitives/inline-reference.tsx +25 -0
- package/src/primitives/kind-glyph.tsx +24 -0
- package/src/primitives/preview-popover.tsx +3 -3
- package/src/primitives/prose.tsx +1 -86
- package/src/primitives/record-list.tsx +3 -4
- package/src/primitives/relation-list.tsx +4 -7
- 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 +6 -6
- package/styles/blocks/decisions-list.css +10 -10
- package/styles/blocks/outputs-list.css +272 -45
- package/styles/blocks/papers-list.css +14 -14
- package/styles/blocks/records.css +13 -13
- package/styles/components/artifact-preview.css +21 -21
- package/styles/components/decision-detail.css +23 -23
- package/styles/components/evidence.css +4 -9
- package/styles/components/finding-detail.css +11 -11
- package/styles/components/input-detail.css +11 -11
- package/styles/components/insight-detail.css +57 -95
- package/styles/components/insight-list.css +9 -9
- package/styles/components/insight-trigger.css +5 -8
- package/styles/components/output-detail.css +74 -189
- package/styles/components/paper-detail.css +90 -109
- package/styles/components/paper-doi.css +5 -14
- package/styles/components/paper-pdf-viewer.css +120 -0
- package/styles/components/record-preview.css +444 -268
- package/styles/primitives/badge.css +2 -2
- package/styles/primitives/button.css +25 -25
- package/styles/primitives/count-heading.css +5 -5
- package/styles/primitives/detail-layout.css +25 -25
- package/styles/primitives/dialog.css +86 -86
- package/styles/primitives/empty-state.css +1 -1
- package/styles/primitives/inline-reference.css +37 -0
- package/styles/primitives/kind-glyph.css +31 -0
- package/styles/primitives/kind.css +6 -0
- package/styles/primitives/preview-popover.css +6 -11
- package/styles/primitives/prose.css +1 -1
- package/styles/primitives/record-list.css +46 -62
- package/styles/primitives/relation-list.css +20 -42
- package/styles/primitives/surface-header.css +20 -16
- package/styles/tokens.css +26 -8
- package/styles/views/inventory.css +27 -29
- 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 +0 -6
- 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/src/primitives/kind.ts +0 -19
- /package/dist/{lib → primitives}/slot.d.ts +0 -0
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
:where(.astra-ui) .astra-artifact:where([data-type="metric"]) strong {
|
|
45
45
|
color: var(--astra-color-kind-output);
|
|
46
|
-
font-size:
|
|
46
|
+
font-size: 32px;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
:where(.astra-ui) .astra-artifact:where([data-type="text"]) pre {
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
:where(.astra-ui) .astra-artifact:where([data-type="image"]) img {
|
|
79
|
-
padding: clamp(
|
|
79
|
+
padding: clamp(12px, 2vw, 24px);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
:where(.astra-ui) .astra-artifact:where([data-type="image"]) figcaption {
|
|
83
83
|
margin: 0;
|
|
84
|
-
padding:
|
|
84
|
+
padding: 8.8px 12px;
|
|
85
85
|
border-block-start: 1px solid var(--astra-color-border);
|
|
86
86
|
font-family: var(--astra-font-ui);
|
|
87
|
-
font-size:
|
|
87
|
+
font-size: var(--astra-font-size-xs);
|
|
88
88
|
text-align: start;
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -120,15 +120,15 @@
|
|
|
120
120
|
:where(.astra-ui) .astra-artifact__placeholder {
|
|
121
121
|
display: grid;
|
|
122
122
|
place-items: center;
|
|
123
|
-
gap:
|
|
123
|
+
gap: 5.6px;
|
|
124
124
|
color: var(--astra-color-text-subtle);
|
|
125
125
|
font-family: var(--astra-font-ui);
|
|
126
|
-
font-size:
|
|
126
|
+
font-size: var(--astra-font-size-xs);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
:where(.astra-ui) .astra-artifact__placeholder > span:first-child {
|
|
130
130
|
color: var(--astra-color-text-muted);
|
|
131
|
-
font-size:
|
|
131
|
+
font-size: 28px;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
:where(.astra-ui) .astra-artifact__table {
|
|
@@ -142,15 +142,15 @@
|
|
|
142
142
|
width: 100%;
|
|
143
143
|
margin: 0;
|
|
144
144
|
border-collapse: collapse;
|
|
145
|
-
font-size:
|
|
145
|
+
font-size: 11.84px;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
:where(.astra-ui) .astra-artifact__table th,
|
|
149
149
|
:where(.astra-ui) .astra-artifact__table td {
|
|
150
|
-
max-width:
|
|
150
|
+
max-width: 192px;
|
|
151
151
|
overflow: hidden;
|
|
152
152
|
border-bottom: 1px solid color-mix(in srgb, var(--astra-color-artifact-ink) 13%, var(--astra-color-artifact-paper));
|
|
153
|
-
padding:
|
|
153
|
+
padding: 6.08px 8.8px;
|
|
154
154
|
text-align: left;
|
|
155
155
|
text-overflow: ellipsis;
|
|
156
156
|
white-space: nowrap;
|
|
@@ -160,13 +160,13 @@
|
|
|
160
160
|
background: color-mix(in srgb, var(--astra-color-artifact-ink) 7%, var(--astra-color-artifact-paper));
|
|
161
161
|
color: color-mix(in srgb, var(--astra-color-artifact-ink) 76%, var(--astra-color-artifact-paper));
|
|
162
162
|
font-family: var(--astra-font-ui);
|
|
163
|
-
font-size:
|
|
163
|
+
font-size: var(--astra-font-size-2xs);
|
|
164
164
|
letter-spacing: 0.03em;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
:where(.astra-ui) .astra-artifact__table td:not(:first-child) {
|
|
168
168
|
font-family: var(--astra-font-mono);
|
|
169
|
-
font-size:
|
|
169
|
+
font-size: var(--astra-font-size-2xs);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
:where(.astra-ui) .astra-artifact__table td {
|
|
@@ -178,40 +178,40 @@
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
:where(.astra-ui) .astra-artifact__table > p {
|
|
181
|
-
margin:
|
|
181
|
+
margin: 10.4px 0 0;
|
|
182
182
|
color: var(--astra-color-text-subtle);
|
|
183
183
|
font-family: var(--astra-font-ui);
|
|
184
|
-
font-size:
|
|
184
|
+
font-size: var(--astra-font-size-xs);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
:where(.astra-ui) .astra-artifact__table[data-compact] {
|
|
188
188
|
height: 100%;
|
|
189
189
|
overflow: hidden;
|
|
190
|
-
padding:
|
|
190
|
+
padding: 9.6px;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
:where(.astra-ui) .astra-artifact__table[data-compact] table {
|
|
194
194
|
table-layout: fixed;
|
|
195
|
-
font-size:
|
|
195
|
+
font-size: var(--astra-font-size-2xs);
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
:where(.astra-ui) .astra-artifact__table[data-compact] th,
|
|
199
199
|
:where(.astra-ui) .astra-artifact__table[data-compact] td {
|
|
200
|
-
padding:
|
|
200
|
+
padding: 4px 5.6px;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
:where(.astra-ui) .astra-artifact__metric {
|
|
204
204
|
display: flex;
|
|
205
205
|
align-items: baseline;
|
|
206
206
|
justify-content: center;
|
|
207
|
-
gap:
|
|
207
|
+
gap: 6.4px;
|
|
208
208
|
color: var(--astra-color-text);
|
|
209
209
|
font-family: var(--astra-font-ui);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
:where(.astra-ui) .astra-artifact__metric-value {
|
|
213
|
-
max-width:
|
|
214
|
-
font-size: clamp(
|
|
213
|
+
max-width: 208px;
|
|
214
|
+
font-size: clamp(23.2px, 4vw, 40px);
|
|
215
215
|
font-weight: 600;
|
|
216
216
|
line-height: 1;
|
|
217
217
|
text-align: center;
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
:where(.astra-ui) .astra-artifact__metric-uncertainty,
|
|
221
221
|
:where(.astra-ui) .astra-artifact__metric-unit {
|
|
222
222
|
color: var(--astra-color-text-subtle);
|
|
223
|
-
font-size:
|
|
223
|
+
font-size: 12.8px;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
/* Inside a dialog the table sits on the canvas, so its text follows the
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
:where(.astra-ui) .astra-decision-insights {
|
|
5
5
|
display: grid;
|
|
6
6
|
gap: 0;
|
|
7
|
-
margin:
|
|
7
|
+
margin: 3.2px 0 0;
|
|
8
8
|
padding: 0;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
:where(.astra-ui) .astra-decision-insights > li {
|
|
13
13
|
border-bottom: 1px solid var(--astra-color-border);
|
|
14
|
-
padding:
|
|
14
|
+
padding: 11.52px 0;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
:where(.astra-ui) .astra-decision-insights > li:last-child {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
:where(.astra-ui) .astra-decision-options h4 {
|
|
22
|
-
margin: 0 0
|
|
22
|
+
margin: 0 0 8.8px;
|
|
23
23
|
color: var(--astra-color-text);
|
|
24
24
|
font-family: var(--astra-font-ui);
|
|
25
|
-
font-size:
|
|
25
|
+
font-size: 13.var(--astra-font-size-xs);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
:where(.astra-ui) .astra-decision-options__marker {
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
:where(.astra-ui) .astra-decision-options li > span:nth-child(2) {
|
|
37
37
|
display: grid;
|
|
38
38
|
min-width: 0;
|
|
39
|
-
gap:
|
|
39
|
+
gap: 1.92px;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
:where(.astra-ui) .astra-decision-options strong {
|
|
43
43
|
font-family: var(--astra-font-ui);
|
|
44
|
-
font-size:
|
|
44
|
+
font-size: 12.8px;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
:where(.astra-ui) .astra-decision-options small {
|
|
48
48
|
color: var(--astra-color-accent);
|
|
49
49
|
font-family: var(--astra-font-ui);
|
|
50
|
-
font-size:
|
|
50
|
+
font-size: var(--astra-font-size-2xs);
|
|
51
51
|
font-weight: 700;
|
|
52
52
|
letter-spacing: 0.05em;
|
|
53
53
|
text-transform: uppercase;
|
|
@@ -62,65 +62,65 @@
|
|
|
62
62
|
border-block-end: 1px solid var(--astra-color-border);
|
|
63
63
|
border-radius: 0;
|
|
64
64
|
background: transparent;
|
|
65
|
-
padding:
|
|
65
|
+
padding: 12px 4px;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-decision-options {
|
|
69
|
-
padding-block:
|
|
69
|
+
padding-block: 14px;
|
|
70
70
|
border-block-start: 1px solid var(--astra-color-border);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-decision-options h4 {
|
|
74
74
|
color: var(--astra-color-text);
|
|
75
|
-
font: 700
|
|
75
|
+
font: 700 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
|
|
76
76
|
letter-spacing: 0;
|
|
77
77
|
text-transform: none;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
:where(.astra-ui) .astra-decision-options {
|
|
81
|
-
margin-top:
|
|
81
|
+
margin-top: 26px;
|
|
82
82
|
border-top: 0;
|
|
83
83
|
padding-top: 0;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
:where(.astra-ui) .astra-decision-options h4 {
|
|
87
|
-
margin: 0 0
|
|
87
|
+
margin: 0 0 8px;
|
|
88
88
|
color: var(--astra-color-text);
|
|
89
|
-
font: 700
|
|
89
|
+
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
:where(.astra-ui) .astra-decision-options ul {
|
|
93
93
|
list-style: none;
|
|
94
94
|
display: grid;
|
|
95
|
-
gap:
|
|
95
|
+
gap: 7px;
|
|
96
96
|
margin: 0;
|
|
97
97
|
padding: 0;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
:where(.astra-ui) .astra-decision-options li {
|
|
101
101
|
display: grid;
|
|
102
|
-
grid-template-columns:
|
|
103
|
-
gap:
|
|
102
|
+
grid-template-columns: 22px minmax(0, 1fr) auto;
|
|
103
|
+
gap: 11px;
|
|
104
104
|
align-items: center;
|
|
105
105
|
border: 1px solid var(--astra-color-border);
|
|
106
|
-
border-radius:
|
|
106
|
+
border-radius: 10px;
|
|
107
107
|
background: var(--astra-color-canvas);
|
|
108
|
-
padding:
|
|
108
|
+
padding: 11px 14px;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
:where(.astra-ui) .astra-decision-options strong {
|
|
112
|
-
font: 700
|
|
112
|
+
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
:where(.astra-ui) .astra-decision-options code {
|
|
116
|
-
margin-top:
|
|
116
|
+
margin-top: 2px;
|
|
117
117
|
color: var(--astra-color-text-subtle);
|
|
118
|
-
font-size:
|
|
118
|
+
font-size: var(--astra-font-size-2xs);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
:where(.astra-ui) .astra-decision-options small {
|
|
122
122
|
color: var(--astra-color-kind-decision-ink);
|
|
123
|
-
font-size:
|
|
123
|
+
font-size: var(--astra-font-size-2xs);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
:where(.astra-ui) .astra-decision-insights > li {
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
|
|
146
146
|
:where(.astra-ui) .astra-decision-options li {
|
|
147
147
|
border-color: var(--astra-color-border);
|
|
148
|
-
border-radius:
|
|
148
|
+
border-radius: 10px;
|
|
149
149
|
background: var(--astra-color-canvas);
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
:where(.astra-ui) .astra-insight-trigger:where([data-variant="claim"]) .astra-evidence__glyph--insight {
|
|
18
|
-
margin-top:
|
|
18
|
+
margin-top: 3.52px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
:where(.astra-ui) .astra-evidence {
|
|
22
22
|
list-style: none;
|
|
23
|
-
margin:
|
|
23
|
+
margin: 2.4px 0 0;
|
|
24
24
|
padding: 0;
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
@@ -30,22 +30,17 @@
|
|
|
30
30
|
:where(.astra-ui) .astra-evidence__title {
|
|
31
31
|
font-family: var(--astra-font-ui);
|
|
32
32
|
font-weight: 500;
|
|
33
|
-
font-size:
|
|
33
|
+
font-size: var(--astra-font-size);
|
|
34
34
|
color: var(--astra-color-text);
|
|
35
35
|
display: flex;
|
|
36
36
|
align-items: baseline;
|
|
37
37
|
gap: 0.5em;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
:where(.astra-ui) .astra-evidence__glyph--insight {
|
|
41
|
-
color: var(--astra-color-kind-insight);
|
|
42
|
-
font-size: 0.85em;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
40
|
|
|
46
41
|
:where(.astra-ui) .astra-evidence__tag {
|
|
47
42
|
font-family: var(--astra-font-ui);
|
|
48
|
-
font-size:
|
|
43
|
+
font-size: var(--astra-font-size-2xs);
|
|
49
44
|
font-weight: 400;
|
|
50
45
|
color: var(--astra-color-text-subtle);
|
|
51
46
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
@layer astra.components {
|
|
4
4
|
:where(.astra-ui) .astra-finding-detail__notes h4 {
|
|
5
|
-
margin: 0 0
|
|
5
|
+
margin: 0 0 8.8px;
|
|
6
6
|
color: var(--astra-color-text);
|
|
7
7
|
font-family: var(--astra-font-ui);
|
|
8
|
-
font-size:
|
|
8
|
+
font-size: 13.var(--astra-font-size-xs);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,30 +18,30 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-finding-detail__notes {
|
|
21
|
-
padding-block:
|
|
21
|
+
padding-block: 14px;
|
|
22
22
|
border-block-start: 1px solid var(--astra-color-border);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-finding-detail__notes h4 {
|
|
26
26
|
color: var(--astra-color-text);
|
|
27
|
-
font: 700
|
|
27
|
+
font: 700 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
|
|
28
28
|
letter-spacing: 0;
|
|
29
29
|
text-transform: none;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-finding-detail__notes > div {
|
|
33
33
|
color: var(--astra-color-text-muted);
|
|
34
|
-
font: 400
|
|
34
|
+
font: 400 13.5px/1.55 var(--astra-font-body);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
:where(.astra-ui) .astra-finding-detail__notes {
|
|
38
|
-
margin-top:
|
|
38
|
+
margin-top: 26px;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
:where(.astra-ui) .astra-finding-detail__notes h4 {
|
|
42
|
-
margin: 0 0
|
|
42
|
+
margin: 0 0 8px;
|
|
43
43
|
color: var(--astra-color-text);
|
|
44
|
-
font: 700
|
|
44
|
+
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
:where(.astra-ui) .astra-finding-detail__notes:first-child {
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
:where(.astra-ui) .astra-finding-detail__results {
|
|
52
|
-
margin-top:
|
|
52
|
+
margin-top: 26px;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
:where(.astra-ui) .astra-finding-detail__notes > div {
|
|
56
|
-
font-size:
|
|
56
|
+
font-size: 16px;
|
|
57
57
|
line-height: 1.6;
|
|
58
|
-
font:
|
|
58
|
+
font: var(--astra-font-size)/1.55 var(--astra-font-body);
|
|
59
59
|
color: var(--astra-color-text-muted);
|
|
60
60
|
font-family: var(--astra-font-body);
|
|
61
61
|
}
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
@layer astra.components {
|
|
4
4
|
:where(.astra-ui) .astra-input-source h4 {
|
|
5
|
-
margin: 0 0
|
|
5
|
+
margin: 0 0 8.8px;
|
|
6
6
|
color: var(--astra-color-text);
|
|
7
7
|
font-family: var(--astra-font-ui);
|
|
8
|
-
font-size:
|
|
8
|
+
font-size: 13.var(--astra-font-size-xs);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-input-source {
|
|
12
|
-
padding-block:
|
|
12
|
+
padding-block: 14px;
|
|
13
13
|
border-block-start: 1px solid var(--astra-color-border);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-input-source h4 {
|
|
17
17
|
color: var(--astra-color-text);
|
|
18
|
-
font: 700
|
|
18
|
+
font: 700 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
|
|
19
19
|
letter-spacing: 0;
|
|
20
20
|
text-transform: none;
|
|
21
21
|
}
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
:where(.astra-ui) .astra-input-source {
|
|
31
|
-
margin-top:
|
|
31
|
+
margin-top: 26px;
|
|
32
32
|
border-top: 0;
|
|
33
33
|
padding-top: 0;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
:where(.astra-ui) .astra-input-source h4 {
|
|
37
|
-
margin: 0 0
|
|
37
|
+
margin: 0 0 8px;
|
|
38
38
|
color: var(--astra-color-text);
|
|
39
|
-
font: 700
|
|
39
|
+
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
:where(.astra-ui) .astra-input-source code {
|
|
43
43
|
overflow-wrap: anywhere;
|
|
44
|
-
font-size:
|
|
44
|
+
font-size: var(--astra-font-size-2xs);
|
|
45
45
|
display: block;
|
|
46
46
|
box-sizing: border-box;
|
|
47
47
|
width: 100%;
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
border-radius: 999px;
|
|
51
51
|
background: var(--astra-color-canvas);
|
|
52
52
|
color: var(--astra-color-link);
|
|
53
|
-
padding:
|
|
54
|
-
font:
|
|
53
|
+
padding: 9px 16px;
|
|
54
|
+
font: var(--astra-font-size-2xs)/1.6 var(--astra-font-mono);
|
|
55
55
|
text-align: left;
|
|
56
56
|
text-decoration: none;
|
|
57
57
|
white-space: nowrap;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
:where(.astra-ui) .astra-dialog:where([data-kind="input"]) .astra-input-source code::-webkit-scrollbar {
|
|
78
|
-
height:
|
|
78
|
+
height: 6px;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
:where(.astra-ui) .astra-dialog:where([data-kind="input"]) .astra-input-source code::-webkit-scrollbar-thumb {
|
|
@@ -1,138 +1,100 @@
|
|
|
1
1
|
/* insight-detail — emitted by src/components/insight-detail.tsx */
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
@layer astra.components {
|
|
4
|
+
/* __paper is FindingDetail's; the insight popup itself no longer emits it. */
|
|
5
|
+
:where(.astra-ui) .astra-insight-detail__paper,
|
|
4
6
|
:where(.astra-ui) .astra-insight-detail__source-quote,
|
|
5
7
|
:where(.astra-ui) .astra-insight-detail__notes {
|
|
6
|
-
margin
|
|
8
|
+
margin: 26px 0 0;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
/* FindingDetail still labels its passage; the insight popup renders the
|
|
12
|
+
quote alone. */
|
|
13
|
+
:where(.astra-ui) .astra-insight-detail__source-quote h4 {
|
|
14
|
+
margin: 0 0 8px;
|
|
12
15
|
color: var(--astra-color-text);
|
|
13
|
-
font
|
|
14
|
-
font-size: 0.82rem;
|
|
16
|
+
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
/* The passage reads as a quotation, not a boxed section: a hanging
|
|
20
|
+
quote mark, italic body serif, no chrome. */
|
|
17
21
|
:where(.astra-ui) .astra-insight-detail__source-quote blockquote {
|
|
22
|
+
position: relative;
|
|
18
23
|
margin: 0;
|
|
19
|
-
border-left: 3px solid var(--astra-color-kind-insight);
|
|
20
|
-
background: var(--astra-color-surface-raised);
|
|
21
24
|
color: var(--astra-color-text-muted);
|
|
22
|
-
padding: 0
|
|
23
|
-
font
|
|
24
|
-
font-size: 0.9rem;
|
|
25
|
-
font-style: italic;
|
|
26
|
-
line-height: 1.55;
|
|
25
|
+
padding: 0 0 0 30px;
|
|
26
|
+
font: italic var(--astra-font-size)/1.6 var(--astra-font-body);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
:where(.astra-ui) .astra-insight-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
border-radius: 0.25rem;
|
|
37
|
-
background: var(--astra-color-surface);
|
|
38
|
-
color: var(--astra-color-link);
|
|
39
|
-
padding: 0.38rem 0.58rem;
|
|
40
|
-
font-family: var(--astra-font-ui);
|
|
41
|
-
font-size: 0.7rem;
|
|
29
|
+
:where(.astra-ui) .astra-insight-detail__source-quote blockquote::before {
|
|
30
|
+
content: '\201C';
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: -4.8px;
|
|
33
|
+
left: 0;
|
|
34
|
+
color: var(--astra-color-kind-insight);
|
|
35
|
+
font: 700 34px/1 var(--astra-font-body);
|
|
42
36
|
}
|
|
43
37
|
|
|
44
|
-
:where(.astra-ui) .astra-insight-
|
|
45
|
-
outline: 2px solid var(--astra-color-accent);
|
|
46
|
-
outline-offset: 2px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:where(.astra-ui) .astra-insight-detail__source-quote blockquote > :first-child,
|
|
50
|
-
:where(.astra-ui) .astra-insight-detail__notes > div > :first-child {
|
|
38
|
+
:where(.astra-ui) .astra-insight-detail__source-quote blockquote > :first-child {
|
|
51
39
|
margin-top: 0;
|
|
52
40
|
}
|
|
53
41
|
|
|
54
|
-
:where(.astra-ui) .astra-insight-detail__source-quote blockquote > :last-child
|
|
55
|
-
:where(.astra-ui) .astra-insight-detail__notes > div > :last-child {
|
|
42
|
+
:where(.astra-ui) .astra-insight-detail__source-quote blockquote > :last-child {
|
|
56
43
|
margin-bottom: 0;
|
|
57
44
|
}
|
|
58
45
|
|
|
59
|
-
:where(.astra-ui) .astra-insight-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
margin-top: 1.625rem;
|
|
46
|
+
:where(.astra-ui) .astra-insight-detail__source-quote figcaption {
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding-left: 30px;
|
|
63
49
|
}
|
|
64
50
|
|
|
65
|
-
:where(.astra-ui) .astra-insight-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
51
|
+
:where(.astra-ui) .astra-insight-detail__open-source {
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
gap: 7.2px;
|
|
54
|
+
align-items: center;
|
|
55
|
+
min-height: 32px;
|
|
56
|
+
margin-top: 11px;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
border: 1px solid var(--astra-color-border-strong);
|
|
59
|
+
border-radius: var(--astra-radius-control);
|
|
60
|
+
background: var(--astra-color-surface-raised);
|
|
61
|
+
color: var(--astra-color-accent);
|
|
62
|
+
padding: 6px 10px;
|
|
63
|
+
font: 650 var(--astra-font-size-sm)/1 var(--astra-font-ui);
|
|
64
|
+
text-decoration: none;
|
|
71
65
|
}
|
|
72
66
|
|
|
73
|
-
|
|
74
|
-
:where(.astra-ui) .astra-insight-
|
|
75
|
-
|
|
76
|
-
box-sizing: border-box;
|
|
77
|
-
width: 100%;
|
|
78
|
-
overflow-x: auto;
|
|
79
|
-
border: 1px solid var(--astra-color-border);
|
|
80
|
-
border-radius: 999px;
|
|
81
|
-
background: var(--astra-color-canvas);
|
|
82
|
-
color: var(--astra-color-link);
|
|
83
|
-
padding: 0.5625rem 1rem;
|
|
84
|
-
font: 0.6875rem/1.6 var(--astra-font-mono);
|
|
85
|
-
text-align: left;
|
|
86
|
-
text-decoration: none;
|
|
87
|
-
white-space: nowrap;
|
|
67
|
+
/* Standing alone (no quote to caption), the action keeps section rhythm. */
|
|
68
|
+
:where(.astra-ui) .astra-detail__main > .astra-insight-detail__open-source {
|
|
69
|
+
margin-top: 26px;
|
|
88
70
|
}
|
|
89
71
|
|
|
90
|
-
:where(.astra-ui) .astra-insight-
|
|
91
|
-
|
|
72
|
+
:where(.astra-ui) .astra-insight-detail__open-source:hover {
|
|
73
|
+
border-color: var(--astra-color-accent);
|
|
74
|
+
background: var(--astra-color-surface-muted);
|
|
92
75
|
}
|
|
93
76
|
|
|
94
|
-
:where(.astra-ui) .astra-insight-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
background: var(--astra-color-canvas);
|
|
98
|
-
color: var(--astra-color-text-muted);
|
|
99
|
-
padding: 0.9375rem 1.0625rem;
|
|
100
|
-
font: italic 0.9375rem/1.55 var(--astra-font-body);
|
|
77
|
+
:where(.astra-ui) .astra-insight-detail__open-source:focus-visible {
|
|
78
|
+
outline: 2px solid var(--astra-color-accent);
|
|
79
|
+
outline-offset: 2px;
|
|
101
80
|
}
|
|
102
81
|
|
|
103
|
-
:where(.astra-ui) .astra-insight-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
border-radius: 0.375rem;
|
|
108
|
-
background: var(--astra-color-canvas);
|
|
109
|
-
color: var(--astra-color-link);
|
|
110
|
-
padding: 0.375rem 0.625rem;
|
|
111
|
-
font: 650 0.8125rem/1 var(--astra-font-ui);
|
|
82
|
+
:where(.astra-ui) .astra-insight-detail__notes h4 {
|
|
83
|
+
margin: 0 0 8px;
|
|
84
|
+
color: var(--astra-color-text);
|
|
85
|
+
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
112
86
|
}
|
|
113
87
|
|
|
114
88
|
:where(.astra-ui) .astra-insight-detail__notes > div {
|
|
115
|
-
font-size: 0.86rem;
|
|
116
89
|
color: var(--astra-color-text-muted);
|
|
117
|
-
font:
|
|
90
|
+
font: var(--astra-font-size)/1.55 var(--astra-font-body);
|
|
118
91
|
}
|
|
119
92
|
|
|
120
|
-
:where(.astra-ui) .astra-insight-
|
|
121
|
-
|
|
122
|
-
background: var(--astra-color-kind-insight-soft);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
:where(.astra-ui) .astra-insight-detail__open-source {
|
|
126
|
-
border-color: var(--astra-color-border-strong);
|
|
127
|
-
border-radius: var(--astra-radius-control);
|
|
128
|
-
background: var(--astra-color-surface-raised);
|
|
129
|
-
color: var(--astra-color-accent);
|
|
130
|
-
font-family: var(--astra-font-ui);
|
|
93
|
+
:where(.astra-ui) .astra-insight-detail__notes > div > :first-child {
|
|
94
|
+
margin-top: 0;
|
|
131
95
|
}
|
|
132
96
|
|
|
133
|
-
:where(.astra-ui) .astra-insight-
|
|
134
|
-
|
|
135
|
-
background: var(--astra-color-surface-muted);
|
|
97
|
+
:where(.astra-ui) .astra-insight-detail__notes > div > :last-child {
|
|
98
|
+
margin-bottom: 0;
|
|
136
99
|
}
|
|
137
|
-
|
|
138
100
|
}
|