@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
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
/* paper-detail — emitted by src/components/paper-detail.tsx */
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
@layer astra.components {
|
|
4
|
-
:where(.astra-ui) .astra-paper-detail__layout {
|
|
5
|
-
display: grid;
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
min-height: 0;
|
|
9
|
-
grid-template-columns: minmax(0, 1fr) clamp(17.5rem, 27%, 20rem);
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
4
|
:where(.astra-ui) .astra-paper-detail__unavailable {
|
|
14
5
|
align-self: center;
|
|
15
6
|
display: grid;
|
|
16
|
-
gap:
|
|
7
|
+
gap: 12px;
|
|
17
8
|
justify-self: center;
|
|
18
9
|
justify-items: center;
|
|
19
10
|
color: var(--astra-color-text-subtle);
|
|
20
11
|
font-family: var(--astra-font-ui);
|
|
21
|
-
font-size:
|
|
12
|
+
font-size: 12.8px;
|
|
22
13
|
text-align: center;
|
|
23
14
|
}
|
|
24
15
|
|
|
@@ -26,14 +17,18 @@
|
|
|
26
17
|
margin: 0;
|
|
27
18
|
}
|
|
28
19
|
|
|
20
|
+
:where(.astra-ui) .astra-paper-detail__unavailable a {
|
|
21
|
+
color: var(--astra-color-link);
|
|
22
|
+
}
|
|
23
|
+
|
|
29
24
|
:where(.astra-ui) .astra-paper-detail__unavailable button {
|
|
30
25
|
border: 1px solid var(--astra-color-border-strong);
|
|
31
|
-
border-radius:
|
|
26
|
+
border-radius: 4.8px;
|
|
32
27
|
background: var(--astra-color-surface-raised);
|
|
33
28
|
color: var(--astra-color-text);
|
|
34
29
|
cursor: pointer;
|
|
35
|
-
font: 700
|
|
36
|
-
padding:
|
|
30
|
+
font: 700 var(--astra-font-size-xs)/1.2 var(--astra-font-ui);
|
|
31
|
+
padding: 8.8px 13.6px;
|
|
37
32
|
}
|
|
38
33
|
|
|
39
34
|
:where(.astra-ui) .astra-paper-detail__unavailable button:hover:not(:disabled) {
|
|
@@ -41,65 +36,21 @@
|
|
|
41
36
|
color: var(--astra-color-link);
|
|
42
37
|
}
|
|
43
38
|
|
|
44
|
-
:where(.astra-ui) .astra-paper-detail__rail {
|
|
45
|
-
min-width: 0;
|
|
46
|
-
min-height: 0;
|
|
47
|
-
overflow-y: auto;
|
|
48
|
-
overscroll-behavior: contain;
|
|
49
|
-
scrollbar-gutter: stable;
|
|
50
|
-
border-left: 1px solid var(--astra-color-border);
|
|
51
|
-
background: var(--astra-color-surface-raised);
|
|
52
|
-
padding: 1.35rem 1.2rem;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
:where(.astra-ui) .astra-paper-detail__insights {
|
|
56
|
-
gap: 0;
|
|
57
|
-
border-top: 1px solid var(--astra-color-border);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
:where(.astra-ui) .astra-paper-detail__insights > .astra-paper-insight {
|
|
61
|
-
border: 0;
|
|
62
|
-
border-bottom: 1px solid var(--astra-color-border);
|
|
63
|
-
border-radius: 0;
|
|
64
|
-
background: transparent;
|
|
65
|
-
padding: 0.72rem 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:where(.astra-ui) .astra-paper-insight__claim {
|
|
69
|
-
display: -webkit-box;
|
|
70
|
-
margin-top: 0.38rem;
|
|
71
|
-
overflow: hidden;
|
|
72
|
-
color: var(--astra-color-text-muted);
|
|
73
|
-
font-family: var(--astra-font-body);
|
|
74
|
-
font-size: 0.74rem;
|
|
75
|
-
line-height: 1.45;
|
|
76
|
-
-webkit-box-orient: vertical;
|
|
77
|
-
-webkit-line-clamp: 2;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:where(.astra-ui) .astra-paper-insight__claim > :first-child {
|
|
81
|
-
margin-top: 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:where(.astra-ui) .astra-paper-insight__claim > :last-child {
|
|
85
|
-
margin-bottom: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
39
|
:where(.astra-ui) .astra-paper-insight__sources {
|
|
89
40
|
display: flex;
|
|
90
|
-
gap:
|
|
41
|
+
gap: 8px;
|
|
91
42
|
align-items: center;
|
|
92
43
|
justify-content: space-between;
|
|
93
|
-
margin-top:
|
|
44
|
+
margin-top: 6.72px;
|
|
94
45
|
color: var(--astra-color-text-subtle);
|
|
95
46
|
font-family: var(--astra-font-ui);
|
|
96
|
-
font-size:
|
|
47
|
+
font-size: var(--astra-font-size-xs);
|
|
97
48
|
}
|
|
98
49
|
|
|
99
50
|
:where(.astra-ui) .astra-paper-insight__sources > div {
|
|
100
51
|
display: flex;
|
|
101
52
|
flex-wrap: wrap;
|
|
102
|
-
gap:
|
|
53
|
+
gap: 4.48px;
|
|
103
54
|
justify-content: flex-end;
|
|
104
55
|
}
|
|
105
56
|
|
|
@@ -110,36 +61,22 @@
|
|
|
110
61
|
border-radius: 0;
|
|
111
62
|
background: transparent;
|
|
112
63
|
color: var(--astra-color-link);
|
|
113
|
-
padding:
|
|
114
|
-
font
|
|
115
|
-
font-size: 0.62rem;
|
|
64
|
+
padding: 1.28px 0;
|
|
65
|
+
font: var(--astra-font-size-xs)/1.2 var(--astra-font-ui);
|
|
116
66
|
}
|
|
117
67
|
|
|
118
68
|
:where(.astra-ui) .astra-paper-insight__locate:hover {
|
|
119
69
|
border-color: var(--astra-color-link);
|
|
120
70
|
}
|
|
121
71
|
|
|
122
|
-
|
|
123
|
-
:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
overflow: visible;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
:where(.astra-ui) .astra-paper-detail__rail {
|
|
130
|
-
overflow: visible;
|
|
131
|
-
border-top: 1px solid var(--astra-color-border);
|
|
132
|
-
border-left: 0;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
:where(.astra-ui) .astra-paper-detail__rail {
|
|
137
|
-
border-color: var(--astra-color-border);
|
|
138
|
-
background: var(--astra-color-surface-raised);
|
|
72
|
+
:where(.astra-ui) .astra-paper-insight__locate:where([aria-disabled="true"]) {
|
|
73
|
+
cursor: default;
|
|
74
|
+
border-color: transparent;
|
|
75
|
+
color: var(--astra-color-text-subtle);
|
|
139
76
|
}
|
|
140
77
|
|
|
141
78
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-paper-detail__rail {
|
|
142
|
-
padding:
|
|
79
|
+
padding: 18px 16px 24px;
|
|
143
80
|
background: var(--astra-color-canvas);
|
|
144
81
|
}
|
|
145
82
|
|
|
@@ -151,7 +88,7 @@
|
|
|
151
88
|
}
|
|
152
89
|
|
|
153
90
|
}
|
|
154
|
-
@container (max-width:
|
|
91
|
+
@container (max-width: 760px) {
|
|
155
92
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-paper-detail__layout {
|
|
156
93
|
display: block;
|
|
157
94
|
height: auto;
|
|
@@ -160,18 +97,15 @@
|
|
|
160
97
|
|
|
161
98
|
}
|
|
162
99
|
:where(.astra-ui) .astra-paper-detail__layout {
|
|
100
|
+
display: grid;
|
|
163
101
|
width: 100%;
|
|
164
102
|
height: 100%;
|
|
165
103
|
max-height: none;
|
|
166
104
|
min-height: 0;
|
|
105
|
+
grid-template-columns: minmax(0, 1fr) clamp(260px, 24%, 300px);
|
|
167
106
|
overflow: hidden;
|
|
168
107
|
}
|
|
169
108
|
|
|
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
109
|
:where(.astra-ui) .astra-paper-detail__artifact {
|
|
176
110
|
display: grid;
|
|
177
111
|
min-width: 0;
|
|
@@ -188,12 +122,14 @@
|
|
|
188
122
|
overscroll-behavior: contain;
|
|
189
123
|
scrollbar-gutter: stable;
|
|
190
124
|
border: 0;
|
|
191
|
-
|
|
192
|
-
|
|
125
|
+
border-color: var(--astra-color-border);
|
|
126
|
+
background: var(--astra-color-header);
|
|
127
|
+
padding: 20px 18px 30px;
|
|
193
128
|
}
|
|
194
129
|
|
|
195
130
|
:where(.astra-ui) .astra-paper-detail__insights {
|
|
196
|
-
|
|
131
|
+
gap: 0;
|
|
132
|
+
margin-top: 6px;
|
|
197
133
|
border: 0;
|
|
198
134
|
}
|
|
199
135
|
|
|
@@ -201,28 +137,22 @@
|
|
|
201
137
|
border: 0;
|
|
202
138
|
border-radius: 0;
|
|
203
139
|
background: transparent;
|
|
204
|
-
padding:
|
|
140
|
+
padding: 12px 6px;
|
|
205
141
|
}
|
|
206
142
|
|
|
207
143
|
:where(.astra-ui) .astra-paper-detail__insights > .astra-paper-insight + .astra-paper-insight {
|
|
208
144
|
border-top: 1px solid var(--astra-color-border);
|
|
209
145
|
}
|
|
210
146
|
|
|
211
|
-
:
|
|
212
|
-
|
|
213
|
-
|
|
147
|
+
/* The rail is narrow: keep the claim trigger's glyph gutter tight so the
|
|
148
|
+
claims read as a list, not an indented block. */
|
|
149
|
+
:where(.astra-ui) .astra-paper-insight .astra-insight-trigger:where([data-variant="claim"]) {
|
|
150
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
151
|
+
gap: 6.4px;
|
|
152
|
+
padding: 0;
|
|
214
153
|
}
|
|
215
154
|
|
|
216
|
-
|
|
217
|
-
color: var(--astra-color-link);
|
|
218
|
-
font: 0.6875rem/1.2 var(--astra-font-ui);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
:where(.astra-ui) .astra-paper-detail__unavailable {
|
|
222
|
-
color: var(--astra-color-text-subtle);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
@media (max-width: 47.5rem) {
|
|
155
|
+
@media (max-width: 760px) {
|
|
226
156
|
:where(.astra-ui) .astra-paper-detail__layout {
|
|
227
157
|
display: block;
|
|
228
158
|
height: auto;
|
|
@@ -241,9 +171,60 @@
|
|
|
241
171
|
|
|
242
172
|
}
|
|
243
173
|
|
|
244
|
-
:where(.astra-ui) .astra-paper-
|
|
245
|
-
|
|
246
|
-
|
|
174
|
+
:where(.astra-ui) .astra-paper-decisions__filters {
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-wrap: wrap;
|
|
177
|
+
gap: 5.12px;
|
|
178
|
+
margin-top: 8px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:where(.astra-ui) .astra-paper-decisions__filter {
|
|
182
|
+
display: inline-flex;
|
|
183
|
+
gap: 4.8px;
|
|
184
|
+
align-items: center;
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
border: 1px solid var(--astra-color-border);
|
|
187
|
+
border-radius: 999px;
|
|
188
|
+
background: transparent;
|
|
189
|
+
color: var(--astra-color-text-muted);
|
|
190
|
+
padding: 2.88px 9.6px;
|
|
191
|
+
font-family: var(--astra-font-ui);
|
|
192
|
+
font-size: var(--astra-font-size-xs);
|
|
193
|
+
line-height: 1.3;
|
|
194
|
+
text-align: left;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:where(.astra-ui) .astra-paper-decisions__filter:hover {
|
|
198
|
+
border-color: var(--astra-color-text-subtle);
|
|
199
|
+
color: var(--astra-color-text);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:where(.astra-ui) .astra-paper-decisions__filter:where([aria-pressed="true"]) {
|
|
203
|
+
border-color: var(--astra-color-link);
|
|
204
|
+
background: color-mix(in srgb, var(--astra-color-link) 12%, transparent);
|
|
205
|
+
color: var(--astra-color-text);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:where(.astra-ui) .astra-paper-decisions__empty {
|
|
209
|
+
margin: 8px 0 0;
|
|
210
|
+
color: var(--astra-color-text-subtle);
|
|
211
|
+
font-family: var(--astra-font-ui);
|
|
212
|
+
font-size: var(--astra-font-size-xs);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
:where(.astra-ui) .astra-paper-decisions__open {
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
border: 0;
|
|
218
|
+
background: transparent;
|
|
219
|
+
color: var(--astra-color-link);
|
|
220
|
+
margin-top: 7.2px;
|
|
221
|
+
padding: 0;
|
|
222
|
+
font-family: var(--astra-font-ui);
|
|
223
|
+
font-size: var(--astra-font-size-xs);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
:where(.astra-ui) .astra-paper-decisions__open:hover {
|
|
227
|
+
text-decoration: underline;
|
|
247
228
|
}
|
|
248
229
|
|
|
249
230
|
}
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
/* paper-doi — emitted by src/components/
|
|
1
|
+
/* paper-doi — emitted by src/components/finding-detail.tsx */
|
|
2
2
|
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
3
|
@layer astra.components {
|
|
4
4
|
:where(.astra-ui) .astra-paper-doi h4 {
|
|
5
|
-
margin: 0 0
|
|
5
|
+
margin: 0 0 8px;
|
|
6
6
|
color: var(--astra-color-text);
|
|
7
|
-
font
|
|
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);
|
|
7
|
+
font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
|
|
15
8
|
}
|
|
16
9
|
|
|
17
10
|
:where(.astra-ui) .astra-paper-doi a {
|
|
18
11
|
overflow-wrap: anywhere;
|
|
19
|
-
font-family: var(--astra-font-mono);
|
|
20
|
-
font-size: 0.63rem;
|
|
21
12
|
display: block;
|
|
22
13
|
box-sizing: border-box;
|
|
23
14
|
width: 100%;
|
|
@@ -26,8 +17,8 @@
|
|
|
26
17
|
border-radius: 999px;
|
|
27
18
|
background: var(--astra-color-canvas);
|
|
28
19
|
color: var(--astra-color-link);
|
|
29
|
-
padding:
|
|
30
|
-
font:
|
|
20
|
+
padding: 9px 16px;
|
|
21
|
+
font: var(--astra-font-size-2xs)/1.6 var(--astra-font-mono);
|
|
31
22
|
text-align: left;
|
|
32
23
|
text-decoration: none;
|
|
33
24
|
white-space: nowrap;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* paper-pdf-viewer — shared canvas, text layer and controls. */
|
|
2
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui) .astra-paper-pdf {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
min-height: 0;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
background: var(--astra-color-canvas);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:where(.astra-ui) .astra-paper-pdf__toolbar {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
gap: 9.6px;
|
|
20
|
+
padding: 8px 12px;
|
|
21
|
+
border-bottom: 1px solid var(--astra-color-border);
|
|
22
|
+
font-size: 12.8px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(.astra-ui) .astra-paper-pdf__toolbar > span:first-child {
|
|
26
|
+
flex: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:where(.astra-ui) .astra-paper-pdf__toolbar button {
|
|
30
|
+
min-width: 24px;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
border: 1px solid var(--astra-color-border);
|
|
33
|
+
border-radius: var(--astra-radius-control);
|
|
34
|
+
color: var(--astra-color-text);
|
|
35
|
+
background: var(--astra-color-surface);
|
|
36
|
+
font: inherit;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:where(.astra-ui) .astra-paper-pdf__toolbar button:disabled {
|
|
40
|
+
opacity: 0.4;
|
|
41
|
+
cursor: default;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:where(.astra-ui) .astra-paper-pdf__scroll {
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
flex: 1;
|
|
47
|
+
min-width: 0;
|
|
48
|
+
min-height: 0;
|
|
49
|
+
overflow: auto;
|
|
50
|
+
padding: 16px;
|
|
51
|
+
overscroll-behavior: contain;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:where(.astra-ui) .astra-paper-pdf__page {
|
|
55
|
+
position: relative;
|
|
56
|
+
margin: 0 auto 16px;
|
|
57
|
+
background: var(--astra-color-artifact-paper);
|
|
58
|
+
box-shadow: var(--astra-shadow-raised);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where(.astra-ui) .astra-paper-pdf__page canvas {
|
|
62
|
+
display: block;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* PDF.js positions each text run over its canvas glyphs. */
|
|
68
|
+
:where(.astra-ui) .astra-paper-pdf__text {
|
|
69
|
+
position: absolute;
|
|
70
|
+
inset: 0;
|
|
71
|
+
overflow: clip;
|
|
72
|
+
text-align: initial;
|
|
73
|
+
line-height: 1;
|
|
74
|
+
text-size-adjust: none;
|
|
75
|
+
forced-color-adjust: none;
|
|
76
|
+
transform-origin: 0 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:where(.astra-ui) .astra-paper-pdf__text :is(span, br) {
|
|
80
|
+
position: absolute;
|
|
81
|
+
color: transparent;
|
|
82
|
+
cursor: text;
|
|
83
|
+
transform-origin: 0 0;
|
|
84
|
+
white-space: pre;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* PDF.js sizes text in unrotated coordinates and supplies this attribute. */
|
|
88
|
+
:where(.astra-ui) .astra-paper-pdf__text:where([data-main-rotation="90"]) {
|
|
89
|
+
transform: rotate(90deg) translateY(-100%);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:where(.astra-ui) .astra-paper-pdf__text:where([data-main-rotation="180"]) {
|
|
93
|
+
transform: rotate(180deg) translate(-100%, -100%);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:where(.astra-ui) .astra-paper-pdf__text:where([data-main-rotation="270"]) {
|
|
97
|
+
transform: rotate(270deg) translateX(-100%);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
:where(.astra-ui) .astra-paper-pdf__text ::selection,
|
|
101
|
+
:where(.astra-ui) .astra-paper-pdf__match {
|
|
102
|
+
color: transparent;
|
|
103
|
+
background: color-mix(
|
|
104
|
+
in srgb,
|
|
105
|
+
var(--astra-color-kind-decision) 45%,
|
|
106
|
+
transparent
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* pdf.js appends its glyph-measuring canvas to <body>, outside any scope;
|
|
111
|
+
unstyled it lays out as a 300x150 element on pages without text. */
|
|
112
|
+
.hiddenCanvasElement {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 0;
|
|
115
|
+
left: 0;
|
|
116
|
+
width: 0;
|
|
117
|
+
height: 0;
|
|
118
|
+
display: none;
|
|
119
|
+
}
|
|
120
|
+
}
|