@astra-spec/ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -0
- package/README.md +261 -0
- package/TOKENS.md +93 -0
- package/blocks.css +7 -0
- package/components.css +13 -0
- package/dist/blocks/analysis-tree.d.ts +13 -0
- package/dist/blocks/analysis-tree.d.ts.map +1 -0
- package/dist/blocks/analysis-tree.js +19 -0
- package/dist/blocks/analysis-tree.js.map +1 -0
- package/dist/blocks/decisions-list.d.ts +17 -0
- package/dist/blocks/decisions-list.d.ts.map +1 -0
- package/dist/blocks/decisions-list.js +56 -0
- package/dist/blocks/decisions-list.js.map +1 -0
- package/dist/blocks/findings-list.d.ts +9 -0
- package/dist/blocks/findings-list.d.ts.map +1 -0
- package/dist/blocks/findings-list.js +35 -0
- package/dist/blocks/findings-list.js.map +1 -0
- package/dist/blocks/index.d.ts +18 -0
- package/dist/blocks/index.d.ts.map +1 -0
- package/dist/blocks/index.js +10 -0
- package/dist/blocks/index.js.map +1 -0
- package/dist/blocks/inputs-list.d.ts +9 -0
- package/dist/blocks/inputs-list.d.ts.map +1 -0
- package/dist/blocks/inputs-list.js +32 -0
- package/dist/blocks/inputs-list.js.map +1 -0
- package/dist/blocks/outputs-list.d.ts +18 -0
- package/dist/blocks/outputs-list.d.ts.map +1 -0
- package/dist/blocks/outputs-list.js +47 -0
- package/dist/blocks/outputs-list.js.map +1 -0
- package/dist/blocks/papers-list.d.ts +16 -0
- package/dist/blocks/papers-list.d.ts.map +1 -0
- package/dist/blocks/papers-list.js +20 -0
- package/dist/blocks/papers-list.js.map +1 -0
- package/dist/blocks/prior-insights-list.d.ts +9 -0
- package/dist/blocks/prior-insights-list.d.ts.map +1 -0
- package/dist/blocks/prior-insights-list.js +29 -0
- package/dist/blocks/prior-insights-list.js.map +1 -0
- package/dist/blocks/section.d.ts +36 -0
- package/dist/blocks/section.d.ts.map +1 -0
- package/dist/blocks/section.js +30 -0
- package/dist/blocks/section.js.map +1 -0
- package/dist/components/artifact-preview.d.ts +71 -0
- package/dist/components/artifact-preview.d.ts.map +1 -0
- package/dist/components/artifact-preview.js +170 -0
- package/dist/components/artifact-preview.js.map +1 -0
- package/dist/components/decision-detail.d.ts +17 -0
- package/dist/components/decision-detail.d.ts.map +1 -0
- package/dist/components/decision-detail.js +21 -0
- package/dist/components/decision-detail.js.map +1 -0
- package/dist/components/detail-entry.d.ts +15 -0
- package/dist/components/detail-entry.d.ts.map +1 -0
- package/dist/components/detail-entry.js +14 -0
- package/dist/components/detail-entry.js.map +1 -0
- package/dist/components/finding-detail.d.ts +19 -0
- package/dist/components/finding-detail.d.ts.map +1 -0
- package/dist/components/finding-detail.js +39 -0
- package/dist/components/finding-detail.js.map +1 -0
- package/dist/components/index.d.ts +28 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +15 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/input-detail.d.ts +15 -0
- package/dist/components/input-detail.d.ts.map +1 -0
- package/dist/components/input-detail.js +21 -0
- package/dist/components/input-detail.js.map +1 -0
- package/dist/components/insight-detail.d.ts +25 -0
- package/dist/components/insight-detail.d.ts.map +1 -0
- package/dist/components/insight-detail.js +30 -0
- package/dist/components/insight-detail.js.map +1 -0
- package/dist/components/insight-trigger.d.ts +20 -0
- package/dist/components/insight-trigger.d.ts.map +1 -0
- package/dist/components/insight-trigger.js +32 -0
- package/dist/components/insight-trigger.js.map +1 -0
- package/dist/components/output-detail.d.ts +39 -0
- package/dist/components/output-detail.d.ts.map +1 -0
- package/dist/components/output-detail.js +124 -0
- package/dist/components/output-detail.js.map +1 -0
- package/dist/components/output-dialog.d.ts +18 -0
- package/dist/components/output-dialog.d.ts.map +1 -0
- package/dist/components/output-dialog.js +11 -0
- package/dist/components/output-dialog.js.map +1 -0
- package/dist/components/paper-detail.d.ts +34 -0
- package/dist/components/paper-detail.d.ts.map +1 -0
- package/dist/components/paper-detail.js +60 -0
- package/dist/components/paper-detail.js.map +1 -0
- package/dist/components/record-dialog.d.ts +33 -0
- package/dist/components/record-dialog.d.ts.map +1 -0
- package/dist/components/record-dialog.js +114 -0
- package/dist/components/record-dialog.js.map +1 -0
- package/dist/components/relation-items.d.ts +9 -0
- package/dist/components/relation-items.d.ts.map +1 -0
- package/dist/components/relation-items.js +20 -0
- package/dist/components/relation-items.js.map +1 -0
- package/dist/components/use-detail-stack.d.ts +31 -0
- package/dist/components/use-detail-stack.d.ts.map +1 -0
- package/dist/components/use-detail-stack.js +49 -0
- package/dist/components/use-detail-stack.js.map +1 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/cn.js +6 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/labels.d.ts +61 -0
- package/dist/lib/labels.d.ts.map +1 -0
- package/dist/lib/labels.js +79 -0
- package/dist/lib/labels.js.map +1 -0
- package/dist/lib/slot.d.ts +11 -0
- package/dist/lib/slot.d.ts.map +1 -0
- package/dist/lib/slot.js +83 -0
- package/dist/lib/slot.js.map +1 -0
- package/dist/model/doi.d.ts +2 -0
- package/dist/model/doi.d.ts.map +1 -0
- package/dist/model/doi.js +5 -0
- package/dist/model/doi.js.map +1 -0
- package/dist/model/index.d.ts +10 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model/index.js +7 -0
- package/dist/model/index.js.map +1 -0
- package/dist/model/locate-record.d.ts +8 -0
- package/dist/model/locate-record.d.ts.map +1 -0
- package/dist/model/locate-record.js +7 -0
- package/dist/model/locate-record.js.map +1 -0
- package/dist/model/papers.d.ts +38 -0
- package/dist/model/papers.d.ts.map +1 -0
- package/dist/model/papers.js +91 -0
- package/dist/model/papers.js.map +1 -0
- package/dist/model/records.d.ts +10 -0
- package/dist/model/records.d.ts.map +1 -0
- package/dist/model/records.js +32 -0
- package/dist/model/records.js.map +1 -0
- package/dist/model/relations.d.ts +45 -0
- package/dist/model/relations.d.ts.map +1 -0
- package/dist/model/relations.js +98 -0
- package/dist/model/relations.js.map +1 -0
- package/dist/primitives/badge.d.ts +11 -0
- package/dist/primitives/badge.d.ts.map +1 -0
- package/dist/primitives/badge.js +7 -0
- package/dist/primitives/badge.js.map +1 -0
- package/dist/primitives/button.d.ts +18 -0
- package/dist/primitives/button.d.ts.map +1 -0
- package/dist/primitives/button.js +12 -0
- package/dist/primitives/button.js.map +1 -0
- package/dist/primitives/detail-layout.d.ts +26 -0
- package/dist/primitives/detail-layout.d.ts.map +1 -0
- package/dist/primitives/detail-layout.js +21 -0
- package/dist/primitives/detail-layout.js.map +1 -0
- package/dist/primitives/dialog.d.ts +133 -0
- package/dist/primitives/dialog.d.ts.map +1 -0
- package/dist/primitives/dialog.js +266 -0
- package/dist/primitives/dialog.js.map +1 -0
- package/dist/primitives/index.d.ts +25 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +14 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/primitives/kind.d.ts +6 -0
- package/dist/primitives/kind.d.ts.map +1 -0
- package/dist/primitives/kind.js +14 -0
- package/dist/primitives/kind.js.map +1 -0
- package/dist/primitives/prose.d.ts +36 -0
- package/dist/primitives/prose.d.ts.map +1 -0
- package/dist/primitives/prose.js +57 -0
- package/dist/primitives/prose.js.map +1 -0
- package/dist/primitives/record-list.d.ts +31 -0
- package/dist/primitives/record-list.d.ts.map +1 -0
- package/dist/primitives/record-list.js +17 -0
- package/dist/primitives/record-list.js.map +1 -0
- package/dist/primitives/relation-list.d.ts +22 -0
- package/dist/primitives/relation-list.d.ts.map +1 -0
- package/dist/primitives/relation-list.js +13 -0
- package/dist/primitives/relation-list.js.map +1 -0
- package/dist/primitives/surface-header.d.ts +31 -0
- package/dist/primitives/surface-header.d.ts.map +1 -0
- package/dist/primitives/surface-header.js +13 -0
- package/dist/primitives/surface-header.js.map +1 -0
- package/dist/views/index.d.ts +4 -0
- package/dist/views/index.d.ts.map +1 -0
- package/dist/views/index.js +3 -0
- package/dist/views/index.js.map +1 -0
- package/dist/views/inventory.d.ts +46 -0
- package/dist/views/inventory.d.ts.map +1 -0
- package/dist/views/inventory.js +101 -0
- package/dist/views/inventory.js.map +1 -0
- package/package.json +127 -0
- package/primitives.css +15 -0
- package/src/blocks/analysis-tree.tsx +109 -0
- package/src/blocks/decisions-list.tsx +113 -0
- package/src/blocks/findings-list.tsx +61 -0
- package/src/blocks/index.ts +23 -0
- package/src/blocks/inputs-list.tsx +51 -0
- package/src/blocks/outputs-list.tsx +143 -0
- package/src/blocks/papers-list.tsx +65 -0
- package/src/blocks/prior-insights-list.tsx +52 -0
- package/src/blocks/section.tsx +113 -0
- package/src/components/artifact-preview.tsx +314 -0
- package/src/components/decision-detail.tsx +93 -0
- package/src/components/detail-entry.ts +19 -0
- package/src/components/finding-detail.tsx +99 -0
- package/src/components/index.ts +44 -0
- package/src/components/input-detail.tsx +67 -0
- package/src/components/insight-detail.tsx +120 -0
- package/src/components/insight-trigger.tsx +102 -0
- package/src/components/output-detail.tsx +258 -0
- package/src/components/output-dialog.tsx +63 -0
- package/src/components/paper-detail.tsx +216 -0
- package/src/components/record-dialog.tsx +232 -0
- package/src/components/relation-items.ts +31 -0
- package/src/components/use-detail-stack.ts +78 -0
- package/src/lib/cn.ts +5 -0
- package/src/lib/labels.tsx +145 -0
- package/src/lib/slot.tsx +87 -0
- package/src/model/doi.ts +5 -0
- package/src/model/index.ts +32 -0
- package/src/model/locate-record.ts +13 -0
- package/src/model/papers.ts +146 -0
- package/src/model/records.ts +43 -0
- package/src/model/relations.ts +134 -0
- package/src/primitives/badge.tsx +32 -0
- package/src/primitives/button.tsx +58 -0
- package/src/primitives/detail-layout.tsx +84 -0
- package/src/primitives/dialog.tsx +555 -0
- package/src/primitives/index.ts +48 -0
- package/src/primitives/kind.ts +19 -0
- package/src/primitives/prose.tsx +74 -0
- package/src/primitives/record-list.tsx +103 -0
- package/src/primitives/relation-list.tsx +95 -0
- package/src/primitives/surface-header.tsx +87 -0
- package/src/views/index.ts +3 -0
- package/src/views/inventory.tsx +224 -0
- package/styles/base.css +49 -0
- package/styles/blocks/analysis-tree.css +64 -0
- package/styles/blocks/decisions-list.css +73 -0
- package/styles/blocks/outputs-list.css +349 -0
- package/styles/blocks/papers-list.css +98 -0
- package/styles/blocks/records.css +72 -0
- package/styles/components/artifact-preview.css +242 -0
- package/styles/components/decision-detail.css +159 -0
- package/styles/components/evidence.css +79 -0
- package/styles/components/finding-detail.css +63 -0
- package/styles/components/input-detail.css +95 -0
- package/styles/components/insight-detail.css +138 -0
- package/styles/components/insight-list.css +46 -0
- package/styles/components/insight-trigger.css +54 -0
- package/styles/components/output-detail.css +732 -0
- package/styles/components/paper-detail.css +249 -0
- package/styles/components/paper-doi.css +36 -0
- package/styles/primitives/badge.css +107 -0
- package/styles/primitives/button.css +116 -0
- package/styles/primitives/count-heading.css +27 -0
- package/styles/primitives/detail-layout.css +225 -0
- package/styles/primitives/dialog.css +634 -0
- package/styles/primitives/empty-state.css +10 -0
- package/styles/primitives/kind.css +41 -0
- package/styles/primitives/prose.css +15 -0
- package/styles/primitives/record-list.css +425 -0
- package/styles/primitives/relation-list.css +184 -0
- package/styles/primitives/surface-header.css +183 -0
- package/styles/tokens.css +119 -0
- package/styles/views/inventory.css +186 -0
- package/styles.css +2 -0
- package/views.css +3 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/* artifact-preview — emitted by src/components/artifact-preview.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-artifact:where([data-type="image"]) {
|
|
5
|
+
margin: 0;
|
|
6
|
+
color: var(--astra-color-artifact-ink);
|
|
7
|
+
text-align: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.astra-ui) .astra-artifact:where([data-type="image"]) img {
|
|
11
|
+
display: block;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
max-height: 70vh;
|
|
14
|
+
margin: auto;
|
|
15
|
+
background: var(--astra-color-artifact-paper);
|
|
16
|
+
object-fit: contain;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(.astra-ui) .astra-artifact:where([data-type="image"]) figcaption {
|
|
20
|
+
margin-block-start: var(--astra-space-2);
|
|
21
|
+
color: color-mix(in srgb, var(--astra-color-artifact-ink) 76%, var(--astra-color-artifact-paper));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:where(.astra-ui) .astra-artifact:where([data-type="table"]) {
|
|
25
|
+
overflow: auto;
|
|
26
|
+
max-height: 65vh;
|
|
27
|
+
background: var(--astra-color-artifact-paper);
|
|
28
|
+
color: var(--astra-color-artifact-ink);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where(.astra-ui) .astra-artifact:where([data-type="table"]) table {
|
|
32
|
+
width: 100%;
|
|
33
|
+
border-collapse: collapse;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(.astra-ui) .astra-artifact:where([data-type="table"]) th,
|
|
37
|
+
:where(.astra-ui) .astra-artifact:where([data-type="table"]) td {
|
|
38
|
+
padding: var(--astra-space-2);
|
|
39
|
+
border-block-end: 1px solid color-mix(in srgb, var(--astra-color-artifact-ink) 13%, var(--astra-color-artifact-paper));
|
|
40
|
+
text-align: start;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where(.astra-ui) .astra-artifact:where([data-type="metric"]) strong {
|
|
45
|
+
color: var(--astra-color-kind-output);
|
|
46
|
+
font-size: 2rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
:where(.astra-ui) .astra-artifact:where([data-type="text"]) pre {
|
|
50
|
+
overflow: auto;
|
|
51
|
+
max-height: 65vh;
|
|
52
|
+
padding: var(--astra-space-3);
|
|
53
|
+
background: var(--astra-color-surface-muted);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(.astra-ui) .astra-output-detail__artifact[data-expanded] .astra-artifact__table {
|
|
57
|
+
height: 100%;
|
|
58
|
+
max-height: none;
|
|
59
|
+
overflow: auto;
|
|
60
|
+
scrollbar-gutter: stable;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:where(.astra-ui) .astra-output-detail__artifact[data-expanded] .astra-artifact__table thead {
|
|
64
|
+
position: sticky;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
top: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:where(.astra-ui) .astra-artifact:where([data-type="image"]),
|
|
71
|
+
:where(.astra-ui) .astra-artifact:where([data-type="table"]),
|
|
72
|
+
:where(.astra-ui) .astra-artifact:where([data-type="text"]) pre {
|
|
73
|
+
border: 1px solid var(--astra-color-border);
|
|
74
|
+
background: var(--astra-color-artifact-paper);
|
|
75
|
+
color: var(--astra-color-artifact-ink);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:where(.astra-ui) .astra-artifact:where([data-type="image"]) img {
|
|
79
|
+
padding: clamp(0.75rem, 2vw, 1.5rem);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:where(.astra-ui) .astra-artifact:where([data-type="image"]) figcaption {
|
|
83
|
+
margin: 0;
|
|
84
|
+
padding: 0.55rem 0.75rem;
|
|
85
|
+
border-block-start: 1px solid var(--astra-color-border);
|
|
86
|
+
font-family: var(--astra-font-ui);
|
|
87
|
+
font-size: 0.75rem;
|
|
88
|
+
text-align: start;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__preview[data-type="table"] > .astra-artifact__table {
|
|
92
|
+
width: 100%;
|
|
93
|
+
max-height: var(--astra-table-preview-max-height);
|
|
94
|
+
overflow: auto;
|
|
95
|
+
overscroll-behavior: contain;
|
|
96
|
+
scrollbar-gutter: stable;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-output-detail__artifact[data-expanded] .astra-artifact__table {
|
|
100
|
+
width: 100%;
|
|
101
|
+
height: 100%;
|
|
102
|
+
min-height: 0;
|
|
103
|
+
max-height: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:where(.astra-ui) .astra-output-detail__preview[data-type="table"] > .astra-artifact__table {
|
|
107
|
+
width: 100%;
|
|
108
|
+
max-height: 100%;
|
|
109
|
+
overflow: auto;
|
|
110
|
+
overscroll-behavior: contain;
|
|
111
|
+
scrollbar-gutter: stable;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:where(.astra-ui) .astra-output-detail__artifact[data-expanded] .astra-artifact__table {
|
|
115
|
+
height: 100%;
|
|
116
|
+
max-height: none;
|
|
117
|
+
overflow: auto;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:where(.astra-ui) .astra-artifact__placeholder {
|
|
121
|
+
display: grid;
|
|
122
|
+
place-items: center;
|
|
123
|
+
gap: 0.35rem;
|
|
124
|
+
color: var(--astra-color-text-subtle);
|
|
125
|
+
font-family: var(--astra-font-ui);
|
|
126
|
+
font-size: 0.72rem;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:where(.astra-ui) .astra-artifact__placeholder > span:first-child {
|
|
130
|
+
color: var(--astra-color-text-muted);
|
|
131
|
+
font-size: 1.75rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:where(.astra-ui) .astra-artifact__table {
|
|
135
|
+
width: 100%;
|
|
136
|
+
overflow: auto;
|
|
137
|
+
background: var(--astra-color-artifact-paper);
|
|
138
|
+
color: var(--astra-color-artifact-ink);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:where(.astra-ui) .astra-artifact__table table {
|
|
142
|
+
width: 100%;
|
|
143
|
+
margin: 0;
|
|
144
|
+
border-collapse: collapse;
|
|
145
|
+
font-size: 0.74rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:where(.astra-ui) .astra-artifact__table th,
|
|
149
|
+
:where(.astra-ui) .astra-artifact__table td {
|
|
150
|
+
max-width: 12rem;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
border-bottom: 1px solid color-mix(in srgb, var(--astra-color-artifact-ink) 13%, var(--astra-color-artifact-paper));
|
|
153
|
+
padding: 0.38rem 0.55rem;
|
|
154
|
+
text-align: left;
|
|
155
|
+
text-overflow: ellipsis;
|
|
156
|
+
white-space: nowrap;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:where(.astra-ui) .astra-artifact__table th {
|
|
160
|
+
background: color-mix(in srgb, var(--astra-color-artifact-ink) 7%, var(--astra-color-artifact-paper));
|
|
161
|
+
color: color-mix(in srgb, var(--astra-color-artifact-ink) 76%, var(--astra-color-artifact-paper));
|
|
162
|
+
font-family: var(--astra-font-ui);
|
|
163
|
+
font-size: 0.65rem;
|
|
164
|
+
letter-spacing: 0.03em;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:where(.astra-ui) .astra-artifact__table td:not(:first-child) {
|
|
168
|
+
font-family: var(--astra-font-mono);
|
|
169
|
+
font-size: 0.65rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:where(.astra-ui) .astra-artifact__table td {
|
|
173
|
+
color: var(--astra-color-artifact-ink);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:where(.astra-ui) .astra-artifact__table tbody tr:hover td {
|
|
177
|
+
background: var(--astra-color-artifact-paper);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
:where(.astra-ui) .astra-artifact__table > p {
|
|
181
|
+
margin: 0.65rem 0 0;
|
|
182
|
+
color: var(--astra-color-text-subtle);
|
|
183
|
+
font-family: var(--astra-font-ui);
|
|
184
|
+
font-size: 0.72rem;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:where(.astra-ui) .astra-artifact__table[data-compact] {
|
|
188
|
+
height: 100%;
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
padding: 0.6rem;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
:where(.astra-ui) .astra-artifact__table[data-compact] table {
|
|
194
|
+
table-layout: fixed;
|
|
195
|
+
font-size: 0.6rem;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
:where(.astra-ui) .astra-artifact__table[data-compact] th,
|
|
199
|
+
:where(.astra-ui) .astra-artifact__table[data-compact] td {
|
|
200
|
+
padding: 0.25rem 0.35rem;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
:where(.astra-ui) .astra-artifact__metric {
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: baseline;
|
|
206
|
+
justify-content: center;
|
|
207
|
+
gap: 0.4rem;
|
|
208
|
+
color: var(--astra-color-text);
|
|
209
|
+
font-family: var(--astra-font-ui);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
:where(.astra-ui) .astra-artifact__metric-value {
|
|
213
|
+
max-width: 13rem;
|
|
214
|
+
font-size: clamp(1.45rem, 4vw, 2.5rem);
|
|
215
|
+
font-weight: 600;
|
|
216
|
+
line-height: 1;
|
|
217
|
+
text-align: center;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
:where(.astra-ui) .astra-artifact__metric-uncertainty,
|
|
221
|
+
:where(.astra-ui) .astra-artifact__metric-unit {
|
|
222
|
+
color: var(--astra-color-text-subtle);
|
|
223
|
+
font-size: 0.8rem;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Inside a dialog the table sits on the canvas, so its text follows the
|
|
227
|
+
page colours rather than the artifact ink (which is dark in both schemes). */
|
|
228
|
+
:where(.astra-ui) .astra-dialog :is( .astra-artifact__table, .astra-artifact__table table, .astra-artifact__table th, .astra-artifact__table td, .astra-artifact__table tbody tr:hover td ) {
|
|
229
|
+
background: var(--astra-color-canvas);
|
|
230
|
+
color: var(--astra-color-text);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
:where(.astra-ui) .astra-dialog .astra-artifact__table th {
|
|
234
|
+
background: var(--astra-color-surface-muted);
|
|
235
|
+
color: var(--astra-color-text-muted);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:where(.astra-ui) .astra-dialog :is( .astra-artifact__table th, .astra-artifact__table td ) {
|
|
239
|
+
border-bottom-color: var(--astra-color-border);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/* decision-detail — emitted by src/components/decision-detail.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-decision-insights {
|
|
5
|
+
display: grid;
|
|
6
|
+
gap: 0;
|
|
7
|
+
margin: 0.2rem 0 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
list-style: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.astra-ui) .astra-decision-insights > li {
|
|
13
|
+
border-bottom: 1px solid var(--astra-color-border);
|
|
14
|
+
padding: 0.72rem 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where(.astra-ui) .astra-decision-insights > li:last-child {
|
|
18
|
+
border-bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(.astra-ui) .astra-decision-options h4 {
|
|
22
|
+
margin: 0 0 0.55rem;
|
|
23
|
+
color: var(--astra-color-text);
|
|
24
|
+
font-family: var(--astra-font-ui);
|
|
25
|
+
font-size: 0.82rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(.astra-ui) .astra-decision-options__marker {
|
|
29
|
+
color: var(--astra-color-text-subtle);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(.astra-ui) .astra-decision-options li[data-selected] .astra-decision-options__marker {
|
|
33
|
+
color: var(--astra-color-accent);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(.astra-ui) .astra-decision-options li > span:nth-child(2) {
|
|
37
|
+
display: grid;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
gap: 0.12rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.astra-ui) .astra-decision-options strong {
|
|
43
|
+
font-family: var(--astra-font-ui);
|
|
44
|
+
font-size: 0.8rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(.astra-ui) .astra-decision-options small {
|
|
48
|
+
color: var(--astra-color-accent);
|
|
49
|
+
font-family: var(--astra-font-ui);
|
|
50
|
+
font-size: 0.62rem;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
letter-spacing: 0.05em;
|
|
53
|
+
text-transform: uppercase;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(.astra-ui) .astra-decision-options ul {
|
|
57
|
+
gap: 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where(.astra-ui) .astra-decision-options li {
|
|
61
|
+
border: 0;
|
|
62
|
+
border-block-end: 1px solid var(--astra-color-border);
|
|
63
|
+
border-radius: 0;
|
|
64
|
+
background: transparent;
|
|
65
|
+
padding: 0.75rem 0.25rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-decision-options {
|
|
69
|
+
padding-block: 0.875rem;
|
|
70
|
+
border-block-start: 1px solid var(--astra-color-border);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-decision-options h4 {
|
|
74
|
+
color: var(--astra-color-text);
|
|
75
|
+
font: 700 0.8125rem/1.25 var(--astra-font-ui);
|
|
76
|
+
letter-spacing: 0;
|
|
77
|
+
text-transform: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:where(.astra-ui) .astra-decision-options {
|
|
81
|
+
margin-top: 1.625rem;
|
|
82
|
+
border-top: 0;
|
|
83
|
+
padding-top: 0;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:where(.astra-ui) .astra-decision-options h4 {
|
|
87
|
+
margin: 0 0 0.5rem;
|
|
88
|
+
color: var(--astra-color-text);
|
|
89
|
+
font: 700 0.875rem/1.2 var(--astra-font-ui);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:where(.astra-ui) .astra-decision-options ul {
|
|
93
|
+
list-style: none;
|
|
94
|
+
display: grid;
|
|
95
|
+
gap: 0.4375rem;
|
|
96
|
+
margin: 0;
|
|
97
|
+
padding: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:where(.astra-ui) .astra-decision-options li {
|
|
101
|
+
display: grid;
|
|
102
|
+
grid-template-columns: 1.375rem minmax(0, 1fr) auto;
|
|
103
|
+
gap: 0.6875rem;
|
|
104
|
+
align-items: center;
|
|
105
|
+
border: 1px solid var(--astra-color-border);
|
|
106
|
+
border-radius: 0.625rem;
|
|
107
|
+
background: var(--astra-color-canvas);
|
|
108
|
+
padding: 0.6875rem 0.875rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:where(.astra-ui) .astra-decision-options strong {
|
|
112
|
+
font: 700 0.875rem/1.2 var(--astra-font-ui);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:where(.astra-ui) .astra-decision-options code {
|
|
116
|
+
margin-top: 0.125rem;
|
|
117
|
+
color: var(--astra-color-text-subtle);
|
|
118
|
+
font-size: 0.6875rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:where(.astra-ui) .astra-decision-options small {
|
|
122
|
+
color: var(--astra-color-kind-decision-ink);
|
|
123
|
+
font-size: 0.625rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:where(.astra-ui) .astra-decision-insights > li {
|
|
127
|
+
border: 0;
|
|
128
|
+
padding: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:where(.astra-ui) .astra-decision-insights > li + li {
|
|
132
|
+
border-top: 1px solid var(--astra-color-border);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:where(.astra-ui) .astra-decision-options li {
|
|
136
|
+
border-color: var(--astra-color-border);
|
|
137
|
+
border-radius: var(--astra-radius-control);
|
|
138
|
+
background: var(--astra-color-surface-raised);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:where(.astra-ui) .astra-decision-options li[data-selected] .astra-decision-options__marker,
|
|
142
|
+
:where(.astra-ui) .astra-decision-options li[data-selected] small {
|
|
143
|
+
color: var(--astra-color-kind-decision-ink);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:where(.astra-ui) .astra-decision-options li {
|
|
147
|
+
border-color: var(--astra-color-border);
|
|
148
|
+
border-radius: 0.625rem;
|
|
149
|
+
background: var(--astra-color-canvas);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:where(.astra-ui) .astra-decision-options li[data-selected] {
|
|
153
|
+
border-block-end-color: var(--astra-color-border);
|
|
154
|
+
box-shadow: none;
|
|
155
|
+
border-color: color-mix(in srgb, var(--astra-color-kind-decision) 42%, var(--astra-color-border));
|
|
156
|
+
background: color-mix(in srgb, var(--astra-color-kind-decision) 8%, var(--astra-color-canvas));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* evidence — emitted by src/components/insight-trigger.tsx + components/paper-detail.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-paper-detail__insights .astra-evidence__title {
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
7
|
+
align-items: start;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.astra-ui) .astra-paper-detail__insights .astra-evidence__name {
|
|
13
|
+
min-width: 0;
|
|
14
|
+
overflow-wrap: anywhere;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where(.astra-ui) .astra-insight-trigger:where([data-variant="claim"]) .astra-evidence__glyph--insight {
|
|
18
|
+
margin-top: 0.22rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(.astra-ui) .astra-evidence {
|
|
22
|
+
list-style: none;
|
|
23
|
+
margin: 0.15rem 0 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
gap: 8px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(.astra-ui) .astra-evidence__title {
|
|
31
|
+
font-family: var(--astra-font-ui);
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
color: var(--astra-color-text);
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: baseline;
|
|
37
|
+
gap: 0.5em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(.astra-ui) .astra-evidence__glyph--insight {
|
|
41
|
+
color: var(--astra-color-kind-insight);
|
|
42
|
+
font-size: 0.85em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
:where(.astra-ui) .astra-evidence__tag {
|
|
47
|
+
font-family: var(--astra-font-ui);
|
|
48
|
+
font-size: 11px;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
color: var(--astra-color-text-subtle);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(.astra-ui) .astra-insight-trigger .astra-evidence__name {
|
|
54
|
+
color: var(--astra-color-link);
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
text-decoration-thickness: 1px;
|
|
57
|
+
text-decoration-color: color-mix(in srgb, var(--astra-color-link) 45%, transparent);
|
|
58
|
+
text-underline-offset: 2px;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:where(.astra-ui) .astra-evidence__item {
|
|
63
|
+
border-radius: var(--astra-radius-control);
|
|
64
|
+
padding: 8px 12px;
|
|
65
|
+
border: 1px solid color-mix(in srgb, var(--astra-color-kind-insight) 20%, var(--astra-color-border));
|
|
66
|
+
background: var(--astra-color-kind-insight-soft);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
:where(.astra-ui) .astra-insight-trigger .astra-evidence__name {
|
|
70
|
+
color: var(--astra-color-kind-insight-ink);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:where(.astra-ui) .astra-insight-trigger:hover .astra-evidence__name,
|
|
74
|
+
:where(.astra-ui) .astra-insight-trigger:focus-visible .astra-evidence__name {
|
|
75
|
+
background: var(--astra-color-kind-insight-soft);
|
|
76
|
+
text-decoration-color: var(--astra-color-kind-insight-ink);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* finding-detail — emitted by src/components/finding-detail.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-finding-detail__notes 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
|
+
|
|
12
|
+
:where(.astra-ui) .astra-finding-detail__notes > div > :first-child {
|
|
13
|
+
margin-top: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(.astra-ui) .astra-finding-detail__notes > div > :last-child {
|
|
17
|
+
margin-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-finding-detail__notes {
|
|
21
|
+
padding-block: 0.875rem;
|
|
22
|
+
border-block-start: 1px solid var(--astra-color-border);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-finding-detail__notes h4 {
|
|
26
|
+
color: var(--astra-color-text);
|
|
27
|
+
font: 700 0.8125rem/1.25 var(--astra-font-ui);
|
|
28
|
+
letter-spacing: 0;
|
|
29
|
+
text-transform: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-finding-detail__notes > div {
|
|
33
|
+
color: var(--astra-color-text-muted);
|
|
34
|
+
font: 400 0.84375rem/1.55 var(--astra-font-body);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:where(.astra-ui) .astra-finding-detail__notes {
|
|
38
|
+
margin-top: 1.625rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(.astra-ui) .astra-finding-detail__notes h4 {
|
|
42
|
+
margin: 0 0 0.5rem;
|
|
43
|
+
color: var(--astra-color-text);
|
|
44
|
+
font: 700 0.875rem/1.2 var(--astra-font-ui);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(.astra-ui) .astra-finding-detail__notes:first-child {
|
|
48
|
+
margin-top: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:where(.astra-ui) .astra-finding-detail__results {
|
|
52
|
+
margin-top: 1.625rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where(.astra-ui) .astra-finding-detail__notes > div {
|
|
56
|
+
font-size: 1rem;
|
|
57
|
+
line-height: 1.6;
|
|
58
|
+
font: 0.9375rem/1.55 var(--astra-font-body);
|
|
59
|
+
color: var(--astra-color-text-muted);
|
|
60
|
+
font-family: var(--astra-font-body);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* input-detail — emitted by src/components/input-detail.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-input-source 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
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-input-source {
|
|
12
|
+
padding-block: 0.875rem;
|
|
13
|
+
border-block-start: 1px solid var(--astra-color-border);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-input-source h4 {
|
|
17
|
+
color: var(--astra-color-text);
|
|
18
|
+
font: 700 0.8125rem/1.25 var(--astra-font-ui);
|
|
19
|
+
letter-spacing: 0;
|
|
20
|
+
text-transform: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-input-source code {
|
|
24
|
+
border: 1px solid var(--astra-color-border);
|
|
25
|
+
border-radius: 0;
|
|
26
|
+
background: var(--astra-color-surface-raised);
|
|
27
|
+
color: var(--astra-color-accent);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(.astra-ui) .astra-input-source {
|
|
31
|
+
margin-top: 1.625rem;
|
|
32
|
+
border-top: 0;
|
|
33
|
+
padding-top: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(.astra-ui) .astra-input-source h4 {
|
|
37
|
+
margin: 0 0 0.5rem;
|
|
38
|
+
color: var(--astra-color-text);
|
|
39
|
+
font: 700 0.875rem/1.2 var(--astra-font-ui);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.astra-ui) .astra-input-source code {
|
|
43
|
+
overflow-wrap: anywhere;
|
|
44
|
+
font-size: 0.63rem;
|
|
45
|
+
display: block;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
width: 100%;
|
|
48
|
+
overflow-x: auto;
|
|
49
|
+
border: 1px solid var(--astra-color-border);
|
|
50
|
+
border-radius: 999px;
|
|
51
|
+
background: var(--astra-color-canvas);
|
|
52
|
+
color: var(--astra-color-link);
|
|
53
|
+
padding: 0.5625rem 1rem;
|
|
54
|
+
font: 0.6875rem/1.6 var(--astra-font-mono);
|
|
55
|
+
text-align: left;
|
|
56
|
+
text-decoration: none;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where(.astra-ui) .astra-dialog:where([data-kind="input"]) .astra-input-source {
|
|
61
|
+
min-width: 0;
|
|
62
|
+
max-width: 100%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:where(.astra-ui) .astra-dialog:where([data-kind="input"]) .astra-input-source code {
|
|
66
|
+
min-width: 0;
|
|
67
|
+
max-width: 100%;
|
|
68
|
+
overflow-x: auto;
|
|
69
|
+
overflow-y: hidden;
|
|
70
|
+
overflow-wrap: normal;
|
|
71
|
+
scrollbar-color: var(--astra-color-border-strong) transparent;
|
|
72
|
+
scrollbar-width: thin;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
word-break: normal;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:where(.astra-ui) .astra-dialog:where([data-kind="input"]) .astra-input-source code::-webkit-scrollbar {
|
|
78
|
+
height: 0.375rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where(.astra-ui) .astra-dialog:where([data-kind="input"]) .astra-input-source code::-webkit-scrollbar-thumb {
|
|
82
|
+
border-radius: 999px;
|
|
83
|
+
background: var(--astra-color-border-strong);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:where(.astra-ui) .astra-dialog:where([data-kind="input"]) .astra-input-source code::-webkit-scrollbar-track {
|
|
87
|
+
background: transparent;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:where(.astra-ui) .astra-input-source code {
|
|
91
|
+
border-color: var(--astra-color-border);
|
|
92
|
+
background: var(--astra-color-surface-raised);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
}
|