@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,249 @@
|
|
|
1
|
+
/* paper-detail — emitted by src/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__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
|
+
:where(.astra-ui) .astra-paper-detail__unavailable {
|
|
14
|
+
align-self: center;
|
|
15
|
+
display: grid;
|
|
16
|
+
gap: 0.75rem;
|
|
17
|
+
justify-self: center;
|
|
18
|
+
justify-items: center;
|
|
19
|
+
color: var(--astra-color-text-subtle);
|
|
20
|
+
font-family: var(--astra-font-ui);
|
|
21
|
+
font-size: 0.8rem;
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(.astra-ui) .astra-paper-detail__unavailable p {
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where(.astra-ui) .astra-paper-detail__unavailable button {
|
|
30
|
+
border: 1px solid var(--astra-color-border-strong);
|
|
31
|
+
border-radius: 0.3rem;
|
|
32
|
+
background: var(--astra-color-surface-raised);
|
|
33
|
+
color: var(--astra-color-text);
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
font: 700 0.75rem/1.2 var(--astra-font-ui);
|
|
36
|
+
padding: 0.55rem 0.85rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:where(.astra-ui) .astra-paper-detail__unavailable button:hover:not(:disabled) {
|
|
40
|
+
border-color: var(--astra-color-link);
|
|
41
|
+
color: var(--astra-color-link);
|
|
42
|
+
}
|
|
43
|
+
|
|
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
|
+
:where(.astra-ui) .astra-paper-insight__sources {
|
|
89
|
+
display: flex;
|
|
90
|
+
gap: 0.5rem;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: space-between;
|
|
93
|
+
margin-top: 0.42rem;
|
|
94
|
+
color: var(--astra-color-text-subtle);
|
|
95
|
+
font-family: var(--astra-font-ui);
|
|
96
|
+
font-size: 0.62rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:where(.astra-ui) .astra-paper-insight__sources > div {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-wrap: wrap;
|
|
102
|
+
gap: 0.28rem;
|
|
103
|
+
justify-content: flex-end;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:where(.astra-ui) .astra-paper-insight__locate {
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
border: 0;
|
|
109
|
+
border-bottom: 1px solid color-mix(in srgb, var(--astra-color-link) 42%, transparent);
|
|
110
|
+
border-radius: 0;
|
|
111
|
+
background: transparent;
|
|
112
|
+
color: var(--astra-color-link);
|
|
113
|
+
padding: 0.08rem 0;
|
|
114
|
+
font-family: var(--astra-font-ui);
|
|
115
|
+
font-size: 0.62rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:where(.astra-ui) .astra-paper-insight__locate:hover {
|
|
119
|
+
border-color: var(--astra-color-link);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media (max-width: 640px) {
|
|
123
|
+
:where(.astra-ui) .astra-paper-detail__layout {
|
|
124
|
+
display: block;
|
|
125
|
+
height: auto;
|
|
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);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-paper-detail__rail {
|
|
142
|
+
padding: 1.125rem 1rem 1.5rem;
|
|
143
|
+
background: var(--astra-color-canvas);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media (max-width: 760px) {
|
|
147
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-paper-detail__layout {
|
|
148
|
+
display: block;
|
|
149
|
+
height: auto;
|
|
150
|
+
overflow: visible;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
}
|
|
154
|
+
@container (max-width: 47.5rem) {
|
|
155
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-paper-detail__layout {
|
|
156
|
+
display: block;
|
|
157
|
+
height: auto;
|
|
158
|
+
overflow: visible;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
}
|
|
162
|
+
:where(.astra-ui) .astra-paper-detail__layout {
|
|
163
|
+
width: 100%;
|
|
164
|
+
height: 100%;
|
|
165
|
+
max-height: none;
|
|
166
|
+
min-height: 0;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:where(.astra-ui) .astra-paper-detail__layout {
|
|
171
|
+
display: grid;
|
|
172
|
+
grid-template-columns: minmax(0, 1fr) clamp(16.25rem, 24%, 18.75rem);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
:where(.astra-ui) .astra-paper-detail__artifact {
|
|
176
|
+
display: grid;
|
|
177
|
+
min-width: 0;
|
|
178
|
+
min-height: 0;
|
|
179
|
+
overflow: hidden;
|
|
180
|
+
border-right: 1px solid var(--astra-color-border);
|
|
181
|
+
background: var(--astra-color-canvas);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
:where(.astra-ui) .astra-paper-detail__rail {
|
|
185
|
+
min-width: 0;
|
|
186
|
+
min-height: 0;
|
|
187
|
+
overflow-y: auto;
|
|
188
|
+
overscroll-behavior: contain;
|
|
189
|
+
scrollbar-gutter: stable;
|
|
190
|
+
border: 0;
|
|
191
|
+
background: var(--astra-color-canvas);
|
|
192
|
+
padding: 1.25rem 1.125rem 1.875rem;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:where(.astra-ui) .astra-paper-detail__insights {
|
|
196
|
+
margin-top: 0.375rem;
|
|
197
|
+
border: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:where(.astra-ui) .astra-paper-detail__insights > .astra-paper-insight {
|
|
201
|
+
border: 0;
|
|
202
|
+
border-radius: 0;
|
|
203
|
+
background: transparent;
|
|
204
|
+
padding: 0.75rem 0.375rem;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
:where(.astra-ui) .astra-paper-detail__insights > .astra-paper-insight + .astra-paper-insight {
|
|
208
|
+
border-top: 1px solid var(--astra-color-border);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:where(.astra-ui) .astra-paper-insight__claim {
|
|
212
|
+
color: var(--astra-color-text-muted);
|
|
213
|
+
font: 0.75rem/1.45 var(--astra-font-body);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
:where(.astra-ui) .astra-paper-insight__locate {
|
|
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);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@media (max-width: 47.5rem) {
|
|
226
|
+
:where(.astra-ui) .astra-paper-detail__layout {
|
|
227
|
+
display: block;
|
|
228
|
+
height: auto;
|
|
229
|
+
overflow-y: auto;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:where(.astra-ui) .astra-paper-detail__artifact {
|
|
233
|
+
height: 58dvh;
|
|
234
|
+
border-right: 0;
|
|
235
|
+
border-bottom: 1px solid var(--astra-color-border);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:where(.astra-ui) .astra-paper-detail__rail {
|
|
239
|
+
overflow: visible;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
:where(.astra-ui) .astra-paper-detail__rail {
|
|
245
|
+
border-color: var(--astra-color-border);
|
|
246
|
+
background: var(--astra-color-header);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* paper-doi — emitted by src/components/insight-detail.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-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
|
+
:where(.astra-ui) .astra-paper-doi h4 {
|
|
12
|
+
margin: 0 0 0.5rem;
|
|
13
|
+
color: var(--astra-color-text);
|
|
14
|
+
font: 700 0.875rem/1.2 var(--astra-font-ui);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where(.astra-ui) .astra-paper-doi a {
|
|
18
|
+
overflow-wrap: anywhere;
|
|
19
|
+
font-family: var(--astra-font-mono);
|
|
20
|
+
font-size: 0.63rem;
|
|
21
|
+
display: block;
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
width: 100%;
|
|
24
|
+
overflow-x: auto;
|
|
25
|
+
border: 1px solid var(--astra-color-border);
|
|
26
|
+
border-radius: 999px;
|
|
27
|
+
background: var(--astra-color-canvas);
|
|
28
|
+
color: var(--astra-color-link);
|
|
29
|
+
padding: 0.5625rem 1rem;
|
|
30
|
+
font: 0.6875rem/1.6 var(--astra-font-mono);
|
|
31
|
+
text-align: left;
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* badge — emitted by src/primitives/badge.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-badge[data-kind="analysis"] {
|
|
5
|
+
--astra-kind: var(--astra-color-kind-analysis);
|
|
6
|
+
--astra-kind-ink: var(--astra-color-kind-analysis);
|
|
7
|
+
--astra-kind-soft: var(--astra-color-kind-analysis-soft);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.astra-ui) .astra-badge[data-kind="input"] {
|
|
11
|
+
--astra-kind: var(--astra-color-kind-input);
|
|
12
|
+
--astra-kind-ink: var(--astra-color-kind-input);
|
|
13
|
+
--astra-kind-soft: var(--astra-color-kind-input-soft);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(.astra-ui) .astra-badge[data-kind="decision"] {
|
|
17
|
+
--astra-kind: var(--astra-color-kind-decision);
|
|
18
|
+
--astra-kind-ink: var(--astra-color-kind-decision-ink);
|
|
19
|
+
--astra-kind-soft: var(--astra-color-kind-decision-soft);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where(.astra-ui) .astra-badge[data-kind="output"] {
|
|
23
|
+
--astra-kind: var(--astra-color-kind-output);
|
|
24
|
+
--astra-kind-ink: var(--astra-color-kind-output);
|
|
25
|
+
--astra-kind-soft: var(--astra-color-kind-output-soft);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:where(.astra-ui) .astra-badge[data-kind="finding"] {
|
|
29
|
+
--astra-kind: var(--astra-color-kind-finding);
|
|
30
|
+
--astra-kind-ink: var(--astra-color-kind-finding);
|
|
31
|
+
--astra-kind-soft: var(--astra-color-kind-finding-soft);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where(.astra-ui) .astra-badge[data-kind="prior_insight"],
|
|
35
|
+
:where(.astra-ui) .astra-badge[data-kind="paper"] {
|
|
36
|
+
--astra-kind: var(--astra-color-kind-insight);
|
|
37
|
+
--astra-kind-ink: var(--astra-color-kind-insight-ink);
|
|
38
|
+
--astra-kind-soft: var(--astra-color-kind-insight-soft);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(.astra-ui) .astra-badge {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
width: max-content;
|
|
44
|
+
max-width: 100%;
|
|
45
|
+
align-items: center;
|
|
46
|
+
border: 1px solid var(--astra-color-border-strong);
|
|
47
|
+
background: var(--astra-color-surface-raised);
|
|
48
|
+
color: var(--astra-color-text-muted);
|
|
49
|
+
padding: 0.15rem 0.4rem;
|
|
50
|
+
font: 700 0.62rem/1.4 var(--astra-font-ui);
|
|
51
|
+
letter-spacing: 0.06em;
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:where(.astra-ui) .astra-badge[data-tone="kind"] {
|
|
56
|
+
border-color: color-mix(in srgb, var(--astra-kind) 32%, var(--astra-color-border));
|
|
57
|
+
background: var(--astra-kind-soft);
|
|
58
|
+
color: var(--astra-kind-ink);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(.astra-ui) .astra-badge[data-tone="universe"] {
|
|
62
|
+
border-color: color-mix(in srgb, var(--astra-color-kind-decision) 32%, var(--astra-color-border));
|
|
63
|
+
background: var(--astra-color-kind-decision-soft);
|
|
64
|
+
color: var(--astra-color-kind-decision-ink);
|
|
65
|
+
font-family: var(--astra-font-mono);
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
letter-spacing: 0;
|
|
68
|
+
text-transform: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where(.astra-ui) .astra-badge[data-tone="status"] {
|
|
72
|
+
font-family: var(--astra-font-mono);
|
|
73
|
+
font-weight: 600;
|
|
74
|
+
letter-spacing: 0;
|
|
75
|
+
text-transform: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:where(.astra-ui) .astra-badge[data-status="available"],
|
|
79
|
+
:where(.astra-ui) .astra-badge[data-status="current"],
|
|
80
|
+
:where(.astra-ui) .astra-badge[data-status="materialized"],
|
|
81
|
+
:where(.astra-ui) .astra-badge[data-status="ready"] {
|
|
82
|
+
border-color: color-mix(in srgb, var(--astra-color-kind-output) 32%, var(--astra-color-border));
|
|
83
|
+
background: var(--astra-color-kind-output-soft);
|
|
84
|
+
color: var(--astra-color-kind-output);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where(.astra-ui) .astra-badge[data-status="error"],
|
|
88
|
+
:where(.astra-ui) .astra-badge[data-status="missing"],
|
|
89
|
+
:where(.astra-ui) .astra-badge[data-status="stale"] {
|
|
90
|
+
border-color: color-mix(in srgb, var(--astra-color-danger) 32%, var(--astra-color-border));
|
|
91
|
+
background: var(--astra-color-danger-soft);
|
|
92
|
+
color: var(--astra-color-danger);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where(.astra-ui) .astra-badge {
|
|
96
|
+
border-radius: var(--astra-radius-control);
|
|
97
|
+
font-family: var(--astra-font-ui);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:where(.astra-ui) .astra-badge[data-tone="kind"] {
|
|
101
|
+
border: 0;
|
|
102
|
+
background: transparent;
|
|
103
|
+
padding: 0;
|
|
104
|
+
letter-spacing: 0.1em;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* button — emitted by src/primitives/button.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-button {
|
|
5
|
+
min-height: 2rem;
|
|
6
|
+
padding: 0.35rem 0.65rem;
|
|
7
|
+
border: 1px solid var(--astra-color-border-strong);
|
|
8
|
+
background: var(--astra-color-surface-raised);
|
|
9
|
+
color: var(--astra-color-text-muted);
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
font: 600 0.75rem/1.2 var(--astra-font-ui);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(.astra-ui) .astra-button[data-size="small"] {
|
|
15
|
+
min-height: 1.9rem;
|
|
16
|
+
padding: 0.25rem 0.5rem;
|
|
17
|
+
font-size: 0.7rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.astra-ui) .astra-button[data-variant="primary"] {
|
|
21
|
+
border-color: var(--astra-color-accent);
|
|
22
|
+
background: var(--astra-color-accent);
|
|
23
|
+
color: var(--astra-color-accent-contrast);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(.astra-ui) .astra-button[data-variant="quiet"] {
|
|
27
|
+
border-color: transparent;
|
|
28
|
+
background: transparent;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where(.astra-ui) .astra-button[data-tone="accent"] {
|
|
32
|
+
color: var(--astra-color-accent);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where(.astra-ui) .astra-button:hover:not(:disabled) {
|
|
36
|
+
border-color: var(--astra-kind, var(--astra-color-accent));
|
|
37
|
+
background: var(--astra-color-surface-muted);
|
|
38
|
+
color: var(--astra-color-text);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:where(.astra-ui) .astra-button:disabled {
|
|
42
|
+
cursor: default;
|
|
43
|
+
opacity: 0.55;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where(.astra-ui) .astra-surface-header .astra-icon-button {
|
|
47
|
+
display: grid;
|
|
48
|
+
width: 1.9rem;
|
|
49
|
+
height: 1.9rem;
|
|
50
|
+
min-height: 1.9rem;
|
|
51
|
+
flex: 0 0 auto;
|
|
52
|
+
place-items: center;
|
|
53
|
+
padding: 0;
|
|
54
|
+
font: 1.1rem/1 var(--astra-font-ui);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where(.astra-ui) .astra-button {
|
|
58
|
+
min-height: 2rem;
|
|
59
|
+
border-color: var(--astra-color-border-strong);
|
|
60
|
+
border-radius: var(--astra-radius-control);
|
|
61
|
+
background: transparent;
|
|
62
|
+
color: var(--astra-color-text);
|
|
63
|
+
font: 600 0.8125rem/1.2 var(--astra-font-ui);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where(.astra-ui) .astra-button:hover:not(:disabled) {
|
|
67
|
+
border-color: var(--astra-kind, var(--astra-color-kind-decision));
|
|
68
|
+
background: var(--astra-color-surface-raised);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:where(.astra-ui) :is( .astra-dialog__action, .astra-dialog__actions > .astra-icon-button, .astra-dialog__back, .astra-output-detail__fullscreen-header button ) {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
min-height: 2rem;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
gap: 0.35rem;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
border: 1px solid var(--astra-color-border);
|
|
80
|
+
border-radius: 0.375rem;
|
|
81
|
+
background: var(--astra-color-canvas);
|
|
82
|
+
color: var(--astra-color-link);
|
|
83
|
+
padding: 0.375rem 0.625rem;
|
|
84
|
+
font: 650 0.8125rem/1 var(--astra-font-ui);
|
|
85
|
+
text-decoration: none;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(.astra-ui) .astra-dialog__actions > .astra-icon-button {
|
|
90
|
+
width: 2rem;
|
|
91
|
+
height: 2rem;
|
|
92
|
+
min-height: 2rem;
|
|
93
|
+
flex: 0 0 auto;
|
|
94
|
+
padding: 0;
|
|
95
|
+
color: var(--astra-color-text-subtle);
|
|
96
|
+
font-size: 1.0625rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:where(.astra-ui) :is( .astra-dialog__action, .astra-dialog__actions > .astra-icon-button, .astra-dialog__back, .astra-output-detail__fullscreen-header button ):hover {
|
|
100
|
+
border-color: var(--astra-color-border-strong);
|
|
101
|
+
background: var(--astra-color-canvas);
|
|
102
|
+
color: var(--astra-color-text);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:where(.astra-ui) .astra-dialog__actions > .astra-icon-button,
|
|
106
|
+
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__actions > .astra-icon-button {
|
|
107
|
+
width: 2rem;
|
|
108
|
+
height: 2rem;
|
|
109
|
+
border: 1px solid var(--astra-color-border);
|
|
110
|
+
border-radius: 0.375rem;
|
|
111
|
+
background: var(--astra-color-canvas);
|
|
112
|
+
color: var(--astra-color-text-subtle);
|
|
113
|
+
font-size: 1.0625rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* count-heading — emitted by src/primitives/detail-layout.tsx */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-relation-list__header .astra-count-heading {
|
|
5
|
+
min-width: 0;
|
|
6
|
+
flex: 1 1 auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:where(.astra-ui) .astra-count-heading {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
gap: 0.75rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:where(.astra-ui) .astra-count-heading > span {
|
|
17
|
+
font-size: 0.62rem;
|
|
18
|
+
min-width: 1.375rem;
|
|
19
|
+
border-radius: 999px;
|
|
20
|
+
background: var(--astra-color-canvas);
|
|
21
|
+
color: var(--astra-color-text-subtle);
|
|
22
|
+
padding: 0.125rem 0.4375rem;
|
|
23
|
+
font: 700 0.625rem/1.5 var(--astra-font-ui);
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|