@astra-spec/ui 0.0.4 → 0.0.6
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 +47 -4
- package/TOKENS.md +14 -8
- package/blocks.css +1 -0
- package/components.css +6 -0
- package/dist/blocks/analysis-tree.d.ts.map +1 -1
- package/dist/blocks/analysis-tree.js +4 -7
- package/dist/blocks/analysis-tree.js.map +1 -1
- package/dist/blocks/decisions-list.d.ts.map +1 -1
- package/dist/blocks/decisions-list.js +1 -1
- 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 +3 -4
- package/dist/blocks/findings-list.js.map +1 -1
- package/dist/blocks/index.d.ts +2 -4
- package/dist/blocks/index.d.ts.map +1 -1
- package/dist/blocks/index.js +1 -2
- package/dist/blocks/index.js.map +1 -1
- package/dist/blocks/outputs-list.d.ts +2 -7
- package/dist/blocks/outputs-list.d.ts.map +1 -1
- package/dist/blocks/outputs-list.js +11 -21
- package/dist/blocks/outputs-list.js.map +1 -1
- package/dist/blocks/papers-list.d.ts.map +1 -1
- package/dist/blocks/papers-list.js +3 -3
- package/dist/blocks/papers-list.js.map +1 -1
- package/dist/blocks/section.d.ts.map +1 -1
- package/dist/blocks/section.js +3 -2
- package/dist/blocks/section.js.map +1 -1
- package/dist/components/figure-zoom.d.ts +6 -0
- package/dist/components/figure-zoom.d.ts.map +1 -0
- package/dist/components/figure-zoom.js +28 -0
- package/dist/components/figure-zoom.js.map +1 -0
- package/dist/components/finding-detail.d.ts +4 -2
- package/dist/components/finding-detail.d.ts.map +1 -1
- package/dist/components/finding-detail.js +41 -25
- package/dist/components/finding-detail.js.map +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -0
- package/dist/components/index.js.map +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-card.d.ts +13 -0
- package/dist/components/output-card.d.ts.map +1 -0
- package/dist/components/output-card.js +12 -0
- package/dist/components/output-card.js.map +1 -0
- package/dist/components/output-detail.d.ts +6 -2
- package/dist/components/output-detail.d.ts.map +1 -1
- package/dist/components/output-detail.js +49 -13
- package/dist/components/output-detail.js.map +1 -1
- package/dist/components/output-dialog.d.ts +6 -1
- package/dist/components/output-dialog.d.ts.map +1 -1
- package/dist/components/output-dialog.js +2 -2
- package/dist/components/output-dialog.js.map +1 -1
- package/dist/components/output-entry.d.ts +17 -0
- package/dist/components/output-entry.d.ts.map +1 -0
- package/dist/components/output-entry.js +21 -0
- package/dist/components/output-entry.js.map +1 -0
- package/dist/components/output-provenance.d.ts +6 -0
- package/dist/components/output-provenance.d.ts.map +1 -0
- package/dist/components/output-provenance.js +16 -0
- package/dist/components/output-provenance.js.map +1 -0
- package/dist/components/output-status.d.ts +8 -0
- package/dist/components/output-status.d.ts.map +1 -0
- package/dist/components/output-status.js +17 -0
- package/dist/components/output-status.js.map +1 -0
- package/dist/components/paper-detail.d.ts.map +1 -1
- package/dist/components/paper-detail.js +2 -2
- package/dist/components/paper-detail.js.map +1 -1
- package/dist/components/paper-row.d.ts +9 -0
- package/dist/components/paper-row.d.ts.map +1 -0
- package/dist/components/paper-row.js +11 -0
- package/dist/components/paper-row.js.map +1 -0
- package/dist/components/record-dialog.d.ts +5 -1
- package/dist/components/record-dialog.d.ts.map +1 -1
- package/dist/components/record-dialog.js +7 -4
- package/dist/components/record-dialog.js.map +1 -1
- package/dist/components/record-preview.d.ts.map +1 -1
- package/dist/components/record-preview.js +8 -7
- package/dist/components/record-preview.js.map +1 -1
- package/dist/lib/labels.d.ts +34 -2
- package/dist/lib/labels.d.ts.map +1 -1
- package/dist/lib/labels.js +35 -4
- package/dist/lib/labels.js.map +1 -1
- package/dist/model/index.d.ts +4 -2
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/index.js +1 -1
- package/dist/model/index.js.map +1 -1
- package/dist/model/kind.d.ts +2 -2
- package/dist/model/kind.d.ts.map +1 -1
- package/dist/model/kind.js +3 -4
- package/dist/model/kind.js.map +1 -1
- package/dist/model/output-provenance.d.ts +17 -0
- package/dist/model/output-provenance.d.ts.map +1 -0
- package/dist/model/output-provenance.js +2 -0
- package/dist/model/output-provenance.js.map +1 -0
- package/dist/model/output-status.d.ts +17 -0
- package/dist/model/output-status.d.ts.map +1 -0
- package/dist/model/output-status.js +2 -0
- package/dist/model/output-status.js.map +1 -0
- package/dist/model/relations.d.ts +37 -12
- package/dist/model/relations.d.ts.map +1 -1
- package/dist/model/relations.js +76 -23
- package/dist/model/relations.js.map +1 -1
- package/dist/primitives/dialog.d.ts.map +1 -1
- package/dist/primitives/dialog.js +9 -1
- package/dist/primitives/dialog.js.map +1 -1
- package/dist/primitives/index.d.ts +6 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +3 -0
- 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/output-status-glyph.d.ts +8 -0
- package/dist/primitives/output-status-glyph.d.ts.map +1 -0
- package/dist/primitives/output-status-glyph.js +13 -0
- package/dist/primitives/output-status-glyph.js.map +1 -0
- package/dist/primitives/preview-popover.d.ts +1 -1
- package/dist/primitives/preview-popover.d.ts.map +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.map +1 -1
- package/dist/primitives/relation-list.js +3 -2
- package/dist/primitives/relation-list.js.map +1 -1
- package/dist/primitives/tooltip.d.ts +7 -0
- package/dist/primitives/tooltip.d.ts.map +1 -0
- package/dist/primitives/tooltip.js +31 -0
- package/dist/primitives/tooltip.js.map +1 -0
- package/dist/views/inventory.d.ts +12 -1
- package/dist/views/inventory.d.ts.map +1 -1
- package/dist/views/inventory.js +23 -17
- package/dist/views/inventory.js.map +1 -1
- package/isolate.css +7 -0
- package/package.json +7 -4
- package/primitives.css +3 -0
- package/src/blocks/analysis-tree.tsx +4 -30
- package/src/blocks/decisions-list.tsx +5 -3
- package/src/blocks/findings-list.tsx +10 -8
- package/src/blocks/index.ts +2 -4
- package/src/blocks/outputs-list.tsx +43 -106
- package/src/blocks/papers-list.tsx +2 -18
- package/src/blocks/section.tsx +3 -2
- package/src/components/figure-zoom.tsx +72 -0
- package/src/components/finding-detail.tsx +106 -30
- package/src/components/index.ts +13 -0
- package/src/components/insight-trigger.tsx +3 -2
- package/src/components/output-card.tsx +51 -0
- package/src/components/output-detail.tsx +69 -21
- package/src/components/output-dialog.tsx +9 -0
- package/src/components/output-entry.tsx +61 -0
- package/src/components/output-provenance.tsx +86 -0
- package/src/components/output-status.tsx +38 -0
- package/src/components/paper-detail.tsx +2 -2
- package/src/components/paper-row.tsx +41 -0
- package/src/components/record-dialog.tsx +13 -1
- package/src/components/record-preview.tsx +8 -14
- package/src/lib/labels.tsx +69 -6
- package/src/model/index.ts +6 -2
- package/src/model/kind.ts +4 -5
- package/src/model/output-provenance.ts +18 -0
- package/src/model/output-status.ts +18 -0
- package/src/model/relations.ts +92 -26
- package/src/primitives/dialog.tsx +7 -1
- package/src/primitives/index.ts +6 -0
- package/src/primitives/inline-reference.tsx +25 -0
- package/src/primitives/kind-glyph.tsx +24 -0
- package/src/primitives/output-status-glyph.tsx +37 -0
- package/src/primitives/preview-popover.tsx +1 -1
- package/src/primitives/record-list.tsx +3 -4
- package/src/primitives/relation-list.tsx +4 -7
- package/src/primitives/tooltip.tsx +51 -0
- package/src/views/inventory.tsx +54 -22
- package/styles/base.css +2 -1
- package/styles/blocks/analysis-tree.css +23 -26
- package/styles/blocks/decisions-list.css +6 -6
- package/styles/blocks/findings-list.css +50 -0
- package/styles/blocks/outputs-list.css +13 -434
- package/styles/blocks/papers-list.css +8 -74
- package/styles/blocks/records.css +13 -13
- package/styles/components/artifact-preview.css +15 -15
- package/styles/components/decision-detail.css +23 -23
- package/styles/components/evidence.css +2 -7
- package/styles/components/figure-zoom.css +62 -0
- package/styles/components/finding-detail.css +73 -11
- package/styles/components/input-detail.css +7 -7
- package/styles/components/insight-detail.css +17 -17
- package/styles/components/insight-list.css +6 -6
- package/styles/components/insight-trigger.css +5 -5
- package/styles/components/output-card.css +290 -0
- package/styles/components/output-detail.css +139 -51
- package/styles/components/output-entry.css +141 -0
- package/styles/components/output-provenance.css +94 -0
- package/styles/components/output-status.css +31 -0
- package/styles/components/paper-detail.css +22 -22
- package/styles/components/paper-doi.css +2 -2
- package/styles/components/paper-pdf-viewer.css +6 -6
- package/styles/components/paper-row.css +72 -0
- package/styles/components/record-preview.css +444 -268
- package/styles/primitives/badge.css +1 -1
- package/styles/primitives/button.css +25 -25
- package/styles/primitives/count-heading.css +3 -3
- package/styles/primitives/detail-layout.css +20 -20
- package/styles/primitives/dialog.css +75 -93
- 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 +32 -48
- package/styles/primitives/relation-list.css +14 -36
- package/styles/primitives/surface-header.css +15 -11
- package/styles/primitives/tooltip.css +22 -0
- package/styles/tokens.css +19 -9
- package/styles/views/inventory.css +58 -27
- package/dist/blocks/prior-insights-list.d.ts +0 -9
- package/dist/blocks/prior-insights-list.d.ts.map +0 -1
- package/dist/blocks/prior-insights-list.js +0 -29
- package/dist/blocks/prior-insights-list.js.map +0 -1
- package/src/blocks/prior-insights-list.tsx +0 -52
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
border: 0;
|
|
17
17
|
background: transparent;
|
|
18
18
|
color: inherit;
|
|
19
|
-
padding: clamp(
|
|
19
|
+
padding: clamp(12px, 3vw, 40px);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
:where(.astra-ui) .astra-dialog:not([open]) {
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
|
|
26
26
|
:where(.astra-ui) .astra-dialog__header {
|
|
27
27
|
display: flex;
|
|
28
|
-
gap:
|
|
28
|
+
gap: 16px;
|
|
29
29
|
align-items: start;
|
|
30
30
|
justify-content: space-between;
|
|
31
31
|
border-bottom: 1px solid var(--astra-color-border);
|
|
32
32
|
background: var(--astra-color-header);
|
|
33
|
-
padding:
|
|
33
|
+
padding: 16px 19.2px;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
:where(.astra-ui) .astra-dialog__header > div:first-child {
|
|
37
37
|
display: grid;
|
|
38
38
|
min-width: 0;
|
|
39
|
-
gap:
|
|
39
|
+
gap: 3.2px;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
:where(.astra-ui) .astra-dialog__header > div:first-child > span {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
margin: 0;
|
|
53
53
|
color: var(--astra-color-text);
|
|
54
54
|
font-family: var(--astra-font-ui);
|
|
55
|
-
font-size: clamp(
|
|
55
|
+
font-size: clamp(var(--astra-font-size-title), 2.5vw, 28px);
|
|
56
56
|
line-height: 1.15;
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
|
|
64
64
|
:where(.astra-ui) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
|
|
65
65
|
display: grid;
|
|
66
|
-
width:
|
|
67
|
-
height:
|
|
66
|
+
width: 32px;
|
|
67
|
+
height: 32px;
|
|
68
68
|
flex: 0 0 auto;
|
|
69
69
|
cursor: pointer;
|
|
70
70
|
place-items: center;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
border-radius: 50%;
|
|
73
73
|
background: var(--astra-color-surface);
|
|
74
74
|
color: var(--astra-color-text);
|
|
75
|
-
font-size:
|
|
75
|
+
font-size: var(--astra-font-size-title);
|
|
76
76
|
line-height: 1;
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -85,24 +85,18 @@
|
|
|
85
85
|
display: inline-flex;
|
|
86
86
|
width: auto;
|
|
87
87
|
height: auto;
|
|
88
|
-
min-height:
|
|
88
|
+
min-height: 32px;
|
|
89
89
|
align-items: center;
|
|
90
|
-
gap:
|
|
90
|
+
gap: 5.6px;
|
|
91
91
|
border: 1px solid var(--astra-color-border);
|
|
92
|
-
border-radius:
|
|
92
|
+
border-radius: 6px;
|
|
93
93
|
background: var(--astra-color-canvas);
|
|
94
94
|
color: var(--astra-color-link);
|
|
95
|
-
padding:
|
|
95
|
+
padding: 6px 10px;
|
|
96
96
|
font-size: var(--astra-font-size-sm);
|
|
97
97
|
line-height: 1.2;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
:where(.astra-ui) .astra-dialog:where([data-kind="paper"]) > .astra-dialog__panel {
|
|
101
|
-
width: min(92rem, 100%);
|
|
102
|
-
height: 100%;
|
|
103
|
-
max-height: 100%;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
100
|
:where(.astra-ui) .astra-dialog:where([data-kind="paper"]) {
|
|
107
101
|
align-items: stretch;
|
|
108
102
|
}
|
|
@@ -131,31 +125,21 @@
|
|
|
131
125
|
|
|
132
126
|
}
|
|
133
127
|
:where(.astra-ui) .astra-dialog {
|
|
134
|
-
padding: clamp(
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
:where(.astra-ui) .astra-dialog > .astra-dialog__panel {
|
|
138
|
-
width: min(74rem, 100%);
|
|
139
|
-
max-height: calc(100dvh - 2rem);
|
|
140
|
-
border-color: var(--astra-color-border-strong);
|
|
141
|
-
border-radius: 0;
|
|
142
|
-
background: var(--astra-color-canvas);
|
|
143
|
-
box-shadow: none;
|
|
144
|
-
font-family: var(--astra-font-body);
|
|
128
|
+
padding: clamp(12px, 2vw, 24px);
|
|
145
129
|
}
|
|
146
130
|
|
|
147
131
|
:where(.astra-ui) .astra-dialog__header {
|
|
148
|
-
min-height:
|
|
132
|
+
min-height: 88px;
|
|
149
133
|
align-items: flex-end;
|
|
150
|
-
padding:
|
|
134
|
+
padding: 17.6px clamp(16px, 2.6vw, 32px);
|
|
151
135
|
border-color: var(--astra-color-border-strong);
|
|
152
136
|
background: var(--astra-color-canvas);
|
|
153
137
|
}
|
|
154
138
|
|
|
155
139
|
:where(.astra-ui) .astra-dialog__header h3 {
|
|
156
|
-
max-width:
|
|
140
|
+
max-width: 800px;
|
|
157
141
|
font-family: var(--astra-font-heading);
|
|
158
|
-
font-size: clamp(
|
|
142
|
+
font-size: clamp(24px, 3vw, 34.4px);
|
|
159
143
|
font-weight: 700;
|
|
160
144
|
line-height: 1.1;
|
|
161
145
|
}
|
|
@@ -181,7 +165,7 @@
|
|
|
181
165
|
display: inline-flex;
|
|
182
166
|
min-height: 0;
|
|
183
167
|
align-items: center;
|
|
184
|
-
gap:
|
|
168
|
+
gap: 5.6px;
|
|
185
169
|
padding: 0;
|
|
186
170
|
border: 0;
|
|
187
171
|
color: var(--astra-color-text-subtle);
|
|
@@ -199,7 +183,7 @@
|
|
|
199
183
|
|
|
200
184
|
:where(.astra-ui) .astra-dialog__back:focus-visible {
|
|
201
185
|
outline: 1px solid currentcolor;
|
|
202
|
-
outline-offset:
|
|
186
|
+
outline-offset: 4px;
|
|
203
187
|
}
|
|
204
188
|
|
|
205
189
|
:where(.astra-ui) .astra-dialog__kind {
|
|
@@ -245,18 +229,18 @@
|
|
|
245
229
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
|
|
246
230
|
min-height: 0;
|
|
247
231
|
align-items: flex-start;
|
|
248
|
-
margin: 0 0
|
|
232
|
+
margin: 0 0 22px;
|
|
249
233
|
padding: 0;
|
|
250
234
|
border: 0;
|
|
251
235
|
background: transparent;
|
|
252
236
|
}
|
|
253
237
|
|
|
254
238
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header h3 {
|
|
255
|
-
max-width:
|
|
239
|
+
max-width: 900px;
|
|
256
240
|
margin: 0;
|
|
257
241
|
color: var(--astra-color-text);
|
|
258
242
|
font-family: var(--astra-font-heading);
|
|
259
|
-
font-size: clamp(
|
|
243
|
+
font-size: clamp(26.4px, 3vw, 29px);
|
|
260
244
|
font-weight: 700;
|
|
261
245
|
line-height: 1.15;
|
|
262
246
|
}
|
|
@@ -267,8 +251,8 @@
|
|
|
267
251
|
}
|
|
268
252
|
|
|
269
253
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
|
|
270
|
-
width:
|
|
271
|
-
height:
|
|
254
|
+
width: 32px;
|
|
255
|
+
height: 32px;
|
|
272
256
|
border: 1px solid var(--astra-color-border-strong);
|
|
273
257
|
border-radius: 0;
|
|
274
258
|
background: transparent;
|
|
@@ -286,7 +270,7 @@
|
|
|
286
270
|
}
|
|
287
271
|
|
|
288
272
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]).astra-dialog:where([data-kind="paper"]) .astra-dialog__body {
|
|
289
|
-
height: max(
|
|
273
|
+
height: max(512px, calc(100dvh - 208px));
|
|
290
274
|
overflow: hidden;
|
|
291
275
|
}
|
|
292
276
|
|
|
@@ -297,7 +281,7 @@
|
|
|
297
281
|
}
|
|
298
282
|
|
|
299
283
|
}
|
|
300
|
-
@container (max-width:
|
|
284
|
+
@container (max-width: 760px) {
|
|
301
285
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]).astra-dialog:where([data-kind="paper"]) .astra-dialog__body {
|
|
302
286
|
height: auto;
|
|
303
287
|
overflow: visible;
|
|
@@ -305,7 +289,7 @@
|
|
|
305
289
|
|
|
306
290
|
}
|
|
307
291
|
:where(.astra-ui) .astra-dialog {
|
|
308
|
-
padding: clamp(
|
|
292
|
+
padding: clamp(12px, 2.4vw, 26px);
|
|
309
293
|
}
|
|
310
294
|
|
|
311
295
|
:where(.astra-ui) .astra-dialog::backdrop {
|
|
@@ -315,26 +299,24 @@
|
|
|
315
299
|
|
|
316
300
|
:where(.astra-ui) .astra-dialog > .astra-dialog__panel {
|
|
317
301
|
display: flex;
|
|
318
|
-
width: min(
|
|
319
|
-
height: min(
|
|
320
|
-
max-height: calc(100dvh -
|
|
302
|
+
width: min(800px, 100%);
|
|
303
|
+
height: min(620px, calc(100dvh - 32px));
|
|
304
|
+
max-height: calc(100dvh - 32px);
|
|
321
305
|
flex-direction: column;
|
|
322
306
|
overflow: hidden;
|
|
323
307
|
border: 1px solid var(--astra-color-border-strong);
|
|
324
|
-
border-radius:
|
|
308
|
+
border-radius: 10px;
|
|
325
309
|
background: var(--astra-color-canvas);
|
|
326
|
-
box-shadow: 0
|
|
310
|
+
box-shadow: 0 22px 64px rgb(34 31 32 / 0.22);
|
|
327
311
|
color: var(--astra-color-text);
|
|
328
312
|
font-family: var(--astra-font-body);
|
|
329
313
|
}
|
|
330
314
|
|
|
315
|
+
/* The reader layout is the one with a sidebar — a paper beside its outline,
|
|
316
|
+
an artifact beside its details — and both want the same room for it. */
|
|
331
317
|
:where(.astra-ui) .astra-dialog:where([data-layout="reader"]) > .astra-dialog__panel {
|
|
332
|
-
width: min(
|
|
333
|
-
height: min(
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
:where(.astra-ui) .astra-dialog:where([data-layout="reader"][data-kind="output"]) > .astra-dialog__panel {
|
|
337
|
-
width: min(78rem, 100%);
|
|
318
|
+
width: min(1248px, 100%);
|
|
319
|
+
height: min(700px, calc(100dvh - 32px));
|
|
338
320
|
}
|
|
339
321
|
|
|
340
322
|
:where(.astra-ui) .astra-dialog:where([data-kind="input"]) > .astra-dialog__panel,
|
|
@@ -351,12 +333,12 @@
|
|
|
351
333
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
|
|
352
334
|
display: flex;
|
|
353
335
|
box-sizing: border-box;
|
|
354
|
-
min-height:
|
|
336
|
+
min-height: 70px;
|
|
355
337
|
flex: 0 0 auto;
|
|
356
338
|
align-items: flex-start;
|
|
357
|
-
gap:
|
|
339
|
+
gap: 12px;
|
|
358
340
|
margin: 0;
|
|
359
|
-
padding:
|
|
341
|
+
padding: 13px 14px 13px 16px;
|
|
360
342
|
border: 0;
|
|
361
343
|
border-block-end: 1px solid var(--astra-color-border);
|
|
362
344
|
background: var(--astra-color-canvas);
|
|
@@ -366,11 +348,11 @@
|
|
|
366
348
|
display: flex;
|
|
367
349
|
min-width: 0;
|
|
368
350
|
align-items: center;
|
|
369
|
-
gap:
|
|
351
|
+
gap: 7px;
|
|
370
352
|
}
|
|
371
353
|
|
|
372
354
|
:where(.astra-ui) .astra-dialog__crumb {
|
|
373
|
-
max-width:
|
|
355
|
+
max-width: 230px;
|
|
374
356
|
overflow: hidden;
|
|
375
357
|
color: var(--astra-color-text-subtle);
|
|
376
358
|
text-overflow: ellipsis;
|
|
@@ -395,14 +377,14 @@
|
|
|
395
377
|
display: flex;
|
|
396
378
|
flex: 0 0 auto;
|
|
397
379
|
align-items: center;
|
|
398
|
-
gap:
|
|
399
|
-
margin-top:
|
|
380
|
+
gap: 7px;
|
|
381
|
+
margin-top: 1px;
|
|
400
382
|
}
|
|
401
383
|
|
|
402
384
|
:where(.astra-ui) .astra-dialog__back {
|
|
403
|
-
width:
|
|
404
|
-
height:
|
|
405
|
-
min-height:
|
|
385
|
+
width: 32px;
|
|
386
|
+
height: 32px;
|
|
387
|
+
min-height: 32px;
|
|
406
388
|
flex: 0 0 auto;
|
|
407
389
|
padding: 0;
|
|
408
390
|
}
|
|
@@ -416,7 +398,7 @@
|
|
|
416
398
|
background: var(--astra-color-canvas);
|
|
417
399
|
}
|
|
418
400
|
|
|
419
|
-
@media (max-width:
|
|
401
|
+
@media (max-width: 760px) {
|
|
420
402
|
:where(.astra-ui) .astra-dialog {
|
|
421
403
|
padding: 0;
|
|
422
404
|
}
|
|
@@ -431,11 +413,11 @@
|
|
|
431
413
|
}
|
|
432
414
|
|
|
433
415
|
:where(.astra-ui) .astra-dialog__header {
|
|
434
|
-
gap:
|
|
416
|
+
gap: 8px;
|
|
435
417
|
}
|
|
436
418
|
|
|
437
419
|
:where(.astra-ui) .astra-dialog__action {
|
|
438
|
-
padding-inline:
|
|
420
|
+
padding-inline: 8px;
|
|
439
421
|
}
|
|
440
422
|
|
|
441
423
|
:where(.astra-ui) .astra-dialog__action > span + * {
|
|
@@ -459,45 +441,45 @@
|
|
|
459
441
|
height: auto;
|
|
460
442
|
min-height: 0;
|
|
461
443
|
max-height: none;
|
|
462
|
-
border-radius:
|
|
444
|
+
border-radius: 10px;
|
|
463
445
|
}
|
|
464
446
|
|
|
465
447
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__body {
|
|
466
|
-
min-height: min(
|
|
448
|
+
min-height: min(700px, calc(100dvh - 128px));
|
|
467
449
|
}
|
|
468
450
|
|
|
469
|
-
:where(.astra-ui)
|
|
451
|
+
:where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="input"] {
|
|
470
452
|
--astra-kind: var(--astra-color-kind-input);
|
|
471
453
|
--astra-kind-ink: var(--astra-color-kind-input);
|
|
472
454
|
--astra-kind-soft: var(--astra-color-kind-input-soft);
|
|
473
455
|
}
|
|
474
456
|
|
|
475
|
-
:where(.astra-ui)
|
|
457
|
+
:where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="analysis"] {
|
|
476
458
|
--astra-kind: var(--astra-color-kind-analysis);
|
|
477
459
|
--astra-kind-ink: var(--astra-color-kind-analysis);
|
|
478
460
|
--astra-kind-soft: var(--astra-color-kind-analysis-soft);
|
|
479
461
|
}
|
|
480
462
|
|
|
481
|
-
:where(.astra-ui)
|
|
463
|
+
:where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="output"] {
|
|
482
464
|
--astra-kind: var(--astra-color-kind-output);
|
|
483
465
|
--astra-kind-ink: var(--astra-color-kind-output);
|
|
484
466
|
--astra-kind-soft: var(--astra-color-kind-output-soft);
|
|
485
467
|
}
|
|
486
468
|
|
|
487
|
-
:where(.astra-ui)
|
|
469
|
+
:where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="decision"] {
|
|
488
470
|
--astra-kind: var(--astra-color-kind-decision);
|
|
489
471
|
--astra-kind-ink: var(--astra-color-kind-decision-ink);
|
|
490
472
|
--astra-kind-soft: var(--astra-color-kind-decision-soft);
|
|
491
473
|
}
|
|
492
474
|
|
|
493
|
-
:where(.astra-ui)
|
|
475
|
+
:where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="finding"] {
|
|
494
476
|
--astra-kind: var(--astra-color-kind-finding);
|
|
495
477
|
--astra-kind-ink: var(--astra-color-kind-finding);
|
|
496
478
|
--astra-kind-soft: var(--astra-color-kind-finding-soft);
|
|
497
479
|
}
|
|
498
480
|
|
|
499
|
-
:where(.astra-ui)
|
|
500
|
-
:where(.astra-ui)
|
|
481
|
+
:where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="prior_insight"],
|
|
482
|
+
:where(.astra-ui) .astra-dialog > .astra-dialog__panel[data-kind="paper"] {
|
|
501
483
|
--astra-kind: var(--astra-color-kind-insight);
|
|
502
484
|
--astra-kind-ink: var(--astra-color-kind-insight-ink);
|
|
503
485
|
--astra-kind-soft: var(--astra-color-kind-insight-soft);
|
|
@@ -513,10 +495,10 @@
|
|
|
513
495
|
}
|
|
514
496
|
|
|
515
497
|
:where(.astra-ui) .astra-dialog__header {
|
|
516
|
-
min-height:
|
|
498
|
+
min-height: 72px;
|
|
517
499
|
border-color: var(--astra-color-border);
|
|
518
500
|
background: var(--astra-color-header);
|
|
519
|
-
padding:
|
|
501
|
+
padding: 13.6px 16px;
|
|
520
502
|
}
|
|
521
503
|
|
|
522
504
|
:where(.astra-ui) .astra-dialog__header > div:first-child > span {
|
|
@@ -527,7 +509,7 @@
|
|
|
527
509
|
|
|
528
510
|
:where(.astra-ui) .astra-dialog__header h3 {
|
|
529
511
|
font-family: var(--astra-font-heading);
|
|
530
|
-
font-size: clamp(
|
|
512
|
+
font-size: clamp(16.8px, 2vw, 22.4px);
|
|
531
513
|
font-weight: 650;
|
|
532
514
|
line-height: 1.2;
|
|
533
515
|
}
|
|
@@ -537,8 +519,8 @@
|
|
|
537
519
|
}
|
|
538
520
|
|
|
539
521
|
:where(.astra-ui) .astra-dialog__actions > button {
|
|
540
|
-
width:
|
|
541
|
-
height:
|
|
522
|
+
width: 30.4px;
|
|
523
|
+
height: 30.4px;
|
|
542
524
|
border-color: var(--astra-color-border-strong);
|
|
543
525
|
border-radius: var(--astra-radius-control);
|
|
544
526
|
background: var(--astra-color-surface-raised);
|
|
@@ -566,10 +548,10 @@
|
|
|
566
548
|
:where(.astra-ui) .astra-dialog__header,
|
|
567
549
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
|
|
568
550
|
box-sizing: border-box;
|
|
569
|
-
min-height:
|
|
551
|
+
min-height: 76px;
|
|
570
552
|
align-items: flex-start;
|
|
571
553
|
margin: 0;
|
|
572
|
-
padding:
|
|
554
|
+
padding: 14px 14px 14px 16px;
|
|
573
555
|
border: 0;
|
|
574
556
|
border-block-end: 1px solid var(--astra-color-border);
|
|
575
557
|
background: var(--astra-color-canvas);
|
|
@@ -582,7 +564,7 @@
|
|
|
582
564
|
margin: 0;
|
|
583
565
|
color: var(--astra-color-text);
|
|
584
566
|
font-family: var(--astra-font-heading);
|
|
585
|
-
font-size: clamp(
|
|
567
|
+
font-size: clamp(var(--astra-font-size-title), 2.2vw, 24px);
|
|
586
568
|
font-weight: 700;
|
|
587
569
|
line-height: 1.12;
|
|
588
570
|
text-overflow: ellipsis;
|
|
@@ -591,39 +573,39 @@
|
|
|
591
573
|
|
|
592
574
|
:where(.astra-ui) .astra-dialog__actions > button:where(:not(.astra-dialog__action)),
|
|
593
575
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__actions > button:where(:not(.astra-dialog__action)) {
|
|
594
|
-
width:
|
|
595
|
-
height:
|
|
576
|
+
width: 30px;
|
|
577
|
+
height: 30px;
|
|
596
578
|
border: 0;
|
|
597
579
|
border-radius: 0;
|
|
598
580
|
background: transparent;
|
|
599
581
|
color: var(--astra-color-text-subtle);
|
|
600
|
-
font-size:
|
|
582
|
+
font-size: var(--astra-font-size-title);
|
|
601
583
|
}
|
|
602
584
|
|
|
603
585
|
:where(.astra-ui) .astra-dialog > .astra-dialog__panel {
|
|
604
586
|
border-color: var(--astra-color-border-strong);
|
|
605
|
-
border-radius:
|
|
587
|
+
border-radius: 10px;
|
|
606
588
|
background: var(--astra-color-canvas);
|
|
607
|
-
box-shadow: 0
|
|
589
|
+
box-shadow: 0 22px 64px rgb(34 31 32 / 0.22);
|
|
608
590
|
color: var(--astra-color-text);
|
|
609
591
|
font-family: var(--astra-font-body);
|
|
610
592
|
}
|
|
611
593
|
|
|
612
594
|
:where(.astra-ui) .astra-dialog__header,
|
|
613
595
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header {
|
|
614
|
-
min-height:
|
|
615
|
-
padding:
|
|
596
|
+
min-height: 70px;
|
|
597
|
+
padding: 13px 14px 13px 16px;
|
|
616
598
|
background: var(--astra-color-canvas);
|
|
617
599
|
}
|
|
618
600
|
|
|
619
601
|
:where(.astra-ui) .astra-dialog__header h3,
|
|
620
602
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header h3 {
|
|
621
603
|
font-family: var(--astra-font-ui);
|
|
622
|
-
font-size:
|
|
604
|
+
font-size: var(--astra-font-size-title);
|
|
623
605
|
line-height: 1.2;
|
|
624
606
|
}
|
|
625
607
|
|
|
626
|
-
@media (max-width:
|
|
608
|
+
@media (max-width: 760px) {
|
|
627
609
|
:where(.astra-ui) .astra-dialog > .astra-dialog__panel,
|
|
628
610
|
:where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) > .astra-dialog__panel {
|
|
629
611
|
border-radius: 0;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
2
|
+
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
:where(.astra-ui).astra-inline-reference,
|
|
5
|
+
:where(.astra-ui) .astra-inline-reference {
|
|
6
|
+
display: inline;
|
|
7
|
+
background: transparent;
|
|
8
|
+
font: inherit;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
color: var(--astra-color-link);
|
|
11
|
+
text-decoration: underline;
|
|
12
|
+
text-decoration-thickness: 1px;
|
|
13
|
+
text-decoration-color: color-mix(in srgb, var(--astra-color-link) 55%, transparent);
|
|
14
|
+
text-underline-offset: 2px;
|
|
15
|
+
padding: 0.05em 0.1em;
|
|
16
|
+
border-radius: var(--astra-radius-control);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
transition: background-color 120ms ease;
|
|
19
|
+
}
|
|
20
|
+
:where(.astra-ui).astra-inline-reference > .astra-kind-glyph,
|
|
21
|
+
:where(.astra-ui) .astra-inline-reference > .astra-kind-glyph {
|
|
22
|
+
margin-right: 0.32em;
|
|
23
|
+
vertical-align: 0.02em;
|
|
24
|
+
}
|
|
25
|
+
:where(.astra-ui).astra-inline-reference:hover,
|
|
26
|
+
:where(.astra-ui) .astra-inline-reference:hover {
|
|
27
|
+
background: var(--astra-color-accent-soft);
|
|
28
|
+
text-decoration-color: var(--astra-color-link);
|
|
29
|
+
}
|
|
30
|
+
:where(.astra-ui).astra-inline-reference[data-kind="value"],
|
|
31
|
+
:where(.astra-ui) .astra-inline-reference[data-kind="value"] {
|
|
32
|
+
color: var(--astra-color-text);
|
|
33
|
+
font-variant-numeric: tabular-nums;
|
|
34
|
+
text-decoration: underline dotted color-mix(in srgb, var(--astra-color-kind-value) 60%, transparent);
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@layer astra.tokens, astra.base, astra.components, astra.views;
|
|
2
|
+
|
|
3
|
+
@layer astra.components {
|
|
4
|
+
/* A kind mark has the same typography in prose, compact rows and viewers.
|
|
5
|
+
* Its own data-kind selects its colour through kind.css, independently of
|
|
6
|
+
* the surrounding record, link state or label's font size.
|
|
7
|
+
*/
|
|
8
|
+
:where(.astra-ui) .astra-kind-glyph {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
flex: none;
|
|
11
|
+
color: var(--astra-kind);
|
|
12
|
+
font-family: var(--astra-font-body);
|
|
13
|
+
font-size: var(--astra-font-size);
|
|
14
|
+
font-style: normal;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
line-height: 1;
|
|
17
|
+
letter-spacing: 0;
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
}
|
|
20
|
+
:where(.astra-ui) .astra-kind-glyph[data-kind="paper"] {
|
|
21
|
+
width: 1em;
|
|
22
|
+
height: 1em;
|
|
23
|
+
vertical-align: -0.125em;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(.astra-ui) .astra-kind-glyph > svg {
|
|
27
|
+
display: block;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -38,4 +38,10 @@
|
|
|
38
38
|
--astra-kind-ink: var(--astra-color-kind-insight-ink);
|
|
39
39
|
--astra-kind-soft: var(--astra-color-kind-insight-soft);
|
|
40
40
|
}
|
|
41
|
+
:where(.astra-ui) [data-kind="value"],
|
|
42
|
+
:where(.astra-ui) [data-entry-kind="value"] {
|
|
43
|
+
--astra-kind: var(--astra-color-kind-value);
|
|
44
|
+
--astra-kind-ink: var(--astra-color-kind-value);
|
|
45
|
+
--astra-kind-soft: color-mix(in srgb, var(--astra-color-kind-value) 10%, transparent);
|
|
46
|
+
}
|
|
41
47
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:where(.astra-ui) .astra-preview-popover {
|
|
11
11
|
z-index: var(--astra-z-preview);
|
|
12
12
|
width: var(--astra-width-preview);
|
|
13
|
-
max-width: calc(100vw -
|
|
13
|
+
max-width: calc(100vw - 32px);
|
|
14
14
|
color: var(--astra-color-text);
|
|
15
15
|
font-family: var(--astra-font-body);
|
|
16
16
|
font-size: var(--astra-font-size);
|
|
@@ -21,16 +21,11 @@
|
|
|
21
21
|
position: relative;
|
|
22
22
|
display: flex;
|
|
23
23
|
max-height: min(
|
|
24
|
-
var(--astra-preview-available-height, calc(100dvh -
|
|
25
|
-
calc(100dvh -
|
|
24
|
+
var(--astra-preview-available-height, calc(100dvh - 24px)),
|
|
25
|
+
calc(100dvh - 24px)
|
|
26
26
|
);
|
|
27
27
|
flex-direction: column;
|
|
28
|
-
border: 1px solid var(--astra-
|
|
29
|
-
border-top-color: color-mix(
|
|
30
|
-
in srgb,
|
|
31
|
-
var(--astra-kind, var(--astra-color-border-strong)) 55%,
|
|
32
|
-
var(--astra-color-border)
|
|
33
|
-
);
|
|
28
|
+
border: 1px solid color-mix(in srgb, var(--astra-kind) 55%, transparent);
|
|
34
29
|
border-radius: var(--astra-radius-preview);
|
|
35
30
|
background: var(--astra-color-surface-muted);
|
|
36
31
|
box-shadow: var(--astra-shadow-preview);
|
|
@@ -62,8 +57,8 @@
|
|
|
62
57
|
}
|
|
63
58
|
|
|
64
59
|
:where(.astra-ui) .astra-preview-popover__arrow {
|
|
65
|
-
fill: var(--astra-color-
|
|
66
|
-
stroke:
|
|
60
|
+
fill: var(--astra-color-preview-pointer);
|
|
61
|
+
stroke: none;
|
|
67
62
|
stroke-width: 1px;
|
|
68
63
|
}
|
|
69
64
|
|