asta-ui 0.9.5 → 0.9.7
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/css/asta.css +2 -2
- package/css/asta.js +1461 -1
- package/css/components.css +1900 -138
- package/css/runtime/agent.css +136 -0
- package/css/runtime/agent.js +173 -0
- package/css/runtime/assist.css +79 -0
- package/css/runtime/assist.js +799 -0
- package/css/runtime/controls.css +48 -0
- package/css/runtime/controls.js +482 -0
- package/css/src/agent.css +484 -0
- package/css/src/assist.css +598 -0
- package/css/src/controls.css +424 -0
- package/css/tokens.css +16 -0
- package/dist/agent-plan.d.ts +2 -0
- package/dist/agent-plan.js +11 -0
- package/dist/agent-team.d.ts +2 -0
- package/dist/agent-team.js +7 -0
- package/dist/api-keys.d.ts +2 -0
- package/dist/api-keys.js +10 -0
- package/dist/autonomy-dial.d.ts +2 -0
- package/dist/autonomy-dial.js +7 -0
- package/dist/base/agent-plan.d.ts +2 -0
- package/dist/base/agent-plan.js +11 -0
- package/dist/base/agent-team.d.ts +2 -0
- package/dist/base/agent-team.js +7 -0
- package/dist/base/api-keys.d.ts +2 -0
- package/dist/base/api-keys.js +10 -0
- package/dist/base/autonomy-dial.d.ts +2 -0
- package/dist/base/autonomy-dial.js +7 -0
- package/dist/base/change-ledger.d.ts +2 -0
- package/dist/base/change-ledger.js +7 -0
- package/dist/base/citations.d.ts +2 -0
- package/dist/base/citations.js +9 -0
- package/dist/base/context-meter.d.ts +2 -0
- package/dist/base/context-meter.js +14 -0
- package/dist/base/fallback-chain.d.ts +2 -0
- package/dist/base/fallback-chain.js +7 -0
- package/dist/base/model-picker.d.ts +2 -0
- package/dist/base/model-picker.js +9 -0
- package/dist/base/navbar.js +1 -1
- package/dist/base/prompt-composer.d.ts +2 -0
- package/dist/base/prompt-composer.js +9 -0
- package/dist/base/scrub-input.d.ts +2 -0
- package/dist/base/scrub-input.js +13 -0
- package/dist/base/sidebar.js +1 -1
- package/dist/base/thinking.d.ts +2 -0
- package/dist/base/thinking.js +11 -0
- package/dist/base/tool-approval.d.ts +2 -0
- package/dist/base/tool-approval.js +9 -0
- package/dist/base/trace-waterfall.d.ts +2 -0
- package/dist/base/trace-waterfall.js +9 -0
- package/dist/base.js +204 -136
- package/dist/change-ledger.d.ts +2 -0
- package/dist/change-ledger.js +7 -0
- package/dist/chunk-24O5V2PQ.js +253 -0
- package/dist/chunk-44DNL43W.js +490 -0
- package/dist/chunk-45IXJ7W7.js +245 -0
- package/dist/chunk-ANL6VX4X.js +326 -0
- package/dist/chunk-DNROUJ62.js +432 -0
- package/dist/{chunk-2EBWWZPS.js → chunk-DWPGFNNF.js} +38 -9
- package/dist/{chunk-CACW5LH3.js → chunk-EAHHWF3V.js} +38 -9
- package/dist/chunk-F4CWSZXK.js +226 -0
- package/dist/chunk-FT66LAUZ.js +388 -0
- package/dist/chunk-GBOJUMMY.js +163 -0
- package/dist/chunk-H4NFBYKY.js +275 -0
- package/dist/chunk-KFPGQ5RT.js +321 -0
- package/dist/chunk-OIIMYSVT.js +342 -0
- package/dist/chunk-SUWA7DM6.js +388 -0
- package/dist/chunk-TL32C2SQ.js +221 -0
- package/dist/chunk-UBTYMAKF.js +240 -0
- package/dist/chunk-W6YVDJHX.js +235 -0
- package/dist/chunk-XYQI4ZYV.js +314 -0
- package/dist/citations.d.ts +2 -0
- package/dist/citations.js +9 -0
- package/dist/context-meter.d.ts +2 -0
- package/dist/context-meter.js +14 -0
- package/dist/fallback-chain.d.ts +2 -0
- package/dist/fallback-chain.js +7 -0
- package/dist/index.js +204 -136
- package/dist/model-picker.d.ts +2 -0
- package/dist/model-picker.js +9 -0
- package/dist/navbar.js +1 -1
- package/dist/prompt-composer.d.ts +2 -0
- package/dist/prompt-composer.js +9 -0
- package/dist/scrub-input.d.ts +2 -0
- package/dist/scrub-input.js +13 -0
- package/dist/sidebar.js +1 -1
- package/dist/thinking.d.ts +2 -0
- package/dist/thinking.js +11 -0
- package/dist/tool-approval.d.ts +2 -0
- package/dist/tool-approval.js +9 -0
- package/dist/trace-waterfall.d.ts +2 -0
- package/dist/trace-waterfall.js +9 -0
- package/dist/types/components/kit/agent-plan.d.ts +34 -0
- package/dist/types/components/kit/api-keys.d.ts +62 -0
- package/dist/types/components/kit/base/navbar.d.ts +4 -1
- package/dist/types/components/kit/base/sidebar.d.ts +29 -7
- package/dist/types/components/kit/citations.d.ts +34 -0
- package/dist/types/components/kit/context-meter.d.ts +38 -0
- package/dist/types/components/kit/model-picker.d.ts +46 -0
- package/dist/types/components/kit/navbar.d.ts +4 -1
- package/dist/types/components/kit/prompt-composer.d.ts +61 -0
- package/dist/types/components/kit/scrub-input.d.ts +44 -0
- package/dist/types/components/kit/sidebar.d.ts +29 -7
- package/dist/types/components/kit/thinking.d.ts +28 -0
- package/dist/types/components/kit/tool-approval.d.ts +43 -0
- package/dist/types/components/kit/trace-waterfall.d.ts +44 -0
- package/dist/types/components/lab/blocks/AgentTeam.d.ts +2 -0
- package/dist/types/components/lab/blocks/AutonomyDial.d.ts +2 -0
- package/dist/types/components/lab/blocks/ChangeLedger.d.ts +2 -0
- package/dist/types/components/lab/blocks/FallbackChain.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/agent-plan.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/agent-team.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/api-keys.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/autonomy-dial.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/agent-plan.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/agent-team.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/api-keys.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/autonomy-dial.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/change-ledger.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/citations.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/context-meter.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/fallback-chain.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/model-picker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/prompt-composer.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/scrub-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/thinking.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/tool-approval.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base/trace-waterfall.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/base.d.ts +26 -2
- package/dist/types/packages/asta-ui/src/change-ledger.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/citations.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/context-meter.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/fallback-chain.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/index.d.ts +26 -2
- package/dist/types/packages/asta-ui/src/model-picker.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/prompt-composer.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/scrub-input.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/thinking.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/tool-approval.d.ts +2 -0
- package/dist/types/packages/asta-ui/src/trace-waterfall.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunk-MVE7RJJ6.js +0 -322
- package/dist/chunk-TBMUSER2.js +0 -322
package/css/components.css
CHANGED
|
@@ -110,6 +110,211 @@
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/* ---- runtime/agent.css ---- */
|
|
114
|
+
/* Agent: thinking shimmer, agent plan status icons, tool approval entrances.
|
|
115
|
+
* Only what Tailwind classes can't express. Motion is transform and opacity only, with the kit's easing. */
|
|
116
|
+
|
|
117
|
+
/* ---------- Thinking: the light slides, the letters stay ---------- */
|
|
118
|
+
|
|
119
|
+
.asta-thinking[data-status="thinking"] .asta-thinking-shine > span {
|
|
120
|
+
animation: asta-agent-sweep 2.2s linear infinite;
|
|
121
|
+
}
|
|
122
|
+
.asta-thinking[data-status="thinking"] .asta-thinking-shine > span > span {
|
|
123
|
+
animation: asta-agent-counter 2.2s linear infinite;
|
|
124
|
+
}
|
|
125
|
+
.asta-thinking[data-status="thinking"] .asta-thinking-icon {
|
|
126
|
+
animation: asta-agent-pulse 1.6s ease-in-out infinite;
|
|
127
|
+
}
|
|
128
|
+
.asta-thinking[open] .asta-thinking-steps > li {
|
|
129
|
+
animation: asta-agent-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
130
|
+
}
|
|
131
|
+
.asta-thinking[data-status="thinking"] .asta-thinking-steps > li:last-child::after {
|
|
132
|
+
content: "";
|
|
133
|
+
display: inline-block;
|
|
134
|
+
width: 6px;
|
|
135
|
+
height: 6px;
|
|
136
|
+
margin-left: 6px;
|
|
137
|
+
border-radius: 999px;
|
|
138
|
+
vertical-align: middle;
|
|
139
|
+
background: var(--brand);
|
|
140
|
+
animation: asta-agent-pulse 1.2s ease-in-out infinite;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* ---------- Agent plan: the icon follows data-status ---------- */
|
|
144
|
+
|
|
145
|
+
:is([data-status="running"] > .asta-agent-plan-icon, [data-status="running"] > * > .asta-agent-plan-icon, [data-status="running"] > * > * > .asta-agent-plan-icon) {
|
|
146
|
+
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent);
|
|
147
|
+
}
|
|
148
|
+
:is([data-status="running"] > .asta-agent-plan-icon, [data-status="running"] > * > .asta-agent-plan-icon, [data-status="running"] > * > * > .asta-agent-plan-icon)::after {
|
|
149
|
+
content: "";
|
|
150
|
+
position: absolute;
|
|
151
|
+
inset: 0;
|
|
152
|
+
border-radius: 999px;
|
|
153
|
+
border: 2px solid transparent;
|
|
154
|
+
border-top-color: var(--brand);
|
|
155
|
+
animation: asta-agent-spin 0.8s linear infinite;
|
|
156
|
+
}
|
|
157
|
+
:is([data-status="done"] > .asta-agent-plan-icon, [data-status="done"] > * > .asta-agent-plan-icon, [data-status="done"] > * > * > .asta-agent-plan-icon) {
|
|
158
|
+
background: var(--brand);
|
|
159
|
+
box-shadow: none;
|
|
160
|
+
animation: asta-agent-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
161
|
+
}
|
|
162
|
+
:is([data-status="done"] > .asta-agent-plan-icon, [data-status="done"] > * > .asta-agent-plan-icon, [data-status="done"] > * > * > .asta-agent-plan-icon)::after {
|
|
163
|
+
content: "";
|
|
164
|
+
width: 28%;
|
|
165
|
+
height: 50%;
|
|
166
|
+
margin-top: -12%;
|
|
167
|
+
border: solid #fff;
|
|
168
|
+
border-width: 0 2px 2px 0;
|
|
169
|
+
transform: rotate(45deg);
|
|
170
|
+
}
|
|
171
|
+
:is([data-status="failed"] > .asta-agent-plan-icon, [data-status="failed"] > * > .asta-agent-plan-icon, [data-status="failed"] > * > * > .asta-agent-plan-icon) {
|
|
172
|
+
background: var(--ink);
|
|
173
|
+
box-shadow: none;
|
|
174
|
+
animation: asta-agent-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
175
|
+
}
|
|
176
|
+
:is([data-status="failed"] > .asta-agent-plan-icon, [data-status="failed"] > * > .asta-agent-plan-icon, [data-status="failed"] > * > * > .asta-agent-plan-icon)::after {
|
|
177
|
+
content: "!";
|
|
178
|
+
color: var(--paper);
|
|
179
|
+
font-size: 11px;
|
|
180
|
+
font-weight: 700;
|
|
181
|
+
line-height: 1;
|
|
182
|
+
}
|
|
183
|
+
:is([data-status="skipped"] > .asta-agent-plan-icon, [data-status="skipped"] > * > .asta-agent-plan-icon, [data-status="skipped"] > * > * > .asta-agent-plan-icon)::after {
|
|
184
|
+
content: "";
|
|
185
|
+
width: 40%;
|
|
186
|
+
height: 2px;
|
|
187
|
+
border-radius: 2px;
|
|
188
|
+
background: var(--mute);
|
|
189
|
+
}
|
|
190
|
+
.asta-agent-plan-step[data-status="running"] > details[open] > .asta-agent-plan-body,
|
|
191
|
+
.asta-agent-plan-detail {
|
|
192
|
+
animation: asta-agent-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* ---------- Tool approval: the next card rises in, receipts slide down ---------- */
|
|
196
|
+
|
|
197
|
+
.asta-tool-approval-card {
|
|
198
|
+
animation: asta-agent-card 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
199
|
+
}
|
|
200
|
+
.asta-tool-approval-receipt {
|
|
201
|
+
animation: asta-agent-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
202
|
+
}
|
|
203
|
+
/* Queued calls show as two cards stacked behind the first. */
|
|
204
|
+
.asta-tool-approval-queue[data-more] {
|
|
205
|
+
padding-bottom: 12px;
|
|
206
|
+
}
|
|
207
|
+
.asta-tool-approval-queue[data-more]::before,
|
|
208
|
+
.asta-tool-approval-queue[data-more="2"]::after {
|
|
209
|
+
content: "";
|
|
210
|
+
position: absolute;
|
|
211
|
+
inset: 0 0 12px;
|
|
212
|
+
z-index: -1;
|
|
213
|
+
border-radius: 14px;
|
|
214
|
+
background: var(--paper);
|
|
215
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent);
|
|
216
|
+
transform: translateY(7px) scaleX(0.96);
|
|
217
|
+
opacity: 0.75;
|
|
218
|
+
}
|
|
219
|
+
.asta-tool-approval-queue[data-more="2"]::after {
|
|
220
|
+
z-index: -2;
|
|
221
|
+
transform: translateY(14px) scaleX(0.92);
|
|
222
|
+
opacity: 0.5;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@media (prefers-reduced-motion: reduce) {
|
|
226
|
+
.asta-thinking *,
|
|
227
|
+
.asta-thinking-steps > li,
|
|
228
|
+
.asta-agent-plan-icon,
|
|
229
|
+
.asta-agent-plan-body,
|
|
230
|
+
.asta-agent-plan-detail,
|
|
231
|
+
.asta-tool-approval-card,
|
|
232
|
+
.asta-tool-approval-receipt {
|
|
233
|
+
animation: none !important;
|
|
234
|
+
}
|
|
235
|
+
.asta-agent-plan-icon::after {
|
|
236
|
+
animation-duration: 2.4s !important;
|
|
237
|
+
}
|
|
238
|
+
.asta-thinking-shine {
|
|
239
|
+
display: none !important;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* ---- runtime/assist.css ---- */
|
|
244
|
+
/* Assist: model picker, citations, trace waterfall, prompt composer.
|
|
245
|
+
* Only what Tailwind classes can't express. Motion is transform and opacity only, with the kit's easing. */
|
|
246
|
+
|
|
247
|
+
/* ---------- Model picker: the popup and its marks ---------- */
|
|
248
|
+
|
|
249
|
+
.asta-model-picker-panel:not([hidden]) {
|
|
250
|
+
animation: asta-assist-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
251
|
+
}
|
|
252
|
+
.asta-model-picker-top .asta-model-picker-panel { --asta-assist-y: -4px; }
|
|
253
|
+
.asta-model-picker-mark,
|
|
254
|
+
.asta-model-picker-bar { will-change: transform; }
|
|
255
|
+
|
|
256
|
+
/* ---------- Citations: card pops in, the expanded list rises ---------- */
|
|
257
|
+
|
|
258
|
+
.asta-citations-card:not([hidden]) {
|
|
259
|
+
animation: asta-assist-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
260
|
+
}
|
|
261
|
+
.asta-citations-card[data-below] { --asta-assist-y: -4px; }
|
|
262
|
+
.asta-citations[data-expanded] .asta-citations-list > li {
|
|
263
|
+
animation: asta-assist-rise 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
264
|
+
}
|
|
265
|
+
.asta-citations[data-expanded] .asta-citations-list > li:nth-child(2) { animation-delay: 30ms; }
|
|
266
|
+
.asta-citations[data-expanded] .asta-citations-list > li:nth-child(3) { animation-delay: 60ms; }
|
|
267
|
+
.asta-citations[data-expanded] .asta-citations-list > li:nth-child(4) { animation-delay: 90ms; }
|
|
268
|
+
.asta-citations[data-expanded] .asta-citations-list > li:nth-child(n + 5) { animation-delay: 120ms; }
|
|
269
|
+
|
|
270
|
+
/* ---------- Trace waterfall: bars grow in from the left, running spans breathe ---------- */
|
|
271
|
+
|
|
272
|
+
.asta-trace-bar {
|
|
273
|
+
transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
|
|
274
|
+
animation: asta-trace-grow 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
275
|
+
}
|
|
276
|
+
.asta-trace-bar[data-running] {
|
|
277
|
+
animation: asta-trace-grow 0.6s cubic-bezier(0.16, 1, 0.3, 1) both, asta-trace-run 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s infinite;
|
|
278
|
+
}
|
|
279
|
+
.asta-trace:is([data-offscreen], [data-paused]) .asta-trace-bar[data-running] { animation-play-state: running, paused; }
|
|
280
|
+
.asta-trace-detail[data-fresh] {
|
|
281
|
+
animation: asta-assist-rise 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
|
282
|
+
}
|
|
283
|
+
.asta-trace-row[hidden] { display: none; }
|
|
284
|
+
|
|
285
|
+
/* ---------- Prompt composer: a band of light orbits the border while it works ---------- */
|
|
286
|
+
|
|
287
|
+
.asta-prompt-ring {
|
|
288
|
+
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
|
289
|
+
-webkit-mask-composite: xor;
|
|
290
|
+
mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
|
|
291
|
+
}
|
|
292
|
+
.asta-prompt[data-running] .asta-prompt-spin {
|
|
293
|
+
animation: asta-prompt-orbit 2.6s linear infinite;
|
|
294
|
+
}
|
|
295
|
+
.asta-prompt:is([data-offscreen], [data-paused]) .asta-prompt-spin { animation-play-state: paused; }
|
|
296
|
+
.asta-prompt-menu:not([hidden]) {
|
|
297
|
+
animation: asta-assist-in 0.14s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
298
|
+
}
|
|
299
|
+
.asta-prompt-menu [hidden] { display: none; }
|
|
300
|
+
.asta-prompt-file {
|
|
301
|
+
animation: asta-assist-rise 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
@media (prefers-reduced-motion: reduce) {
|
|
305
|
+
.asta-model-picker-panel:not([hidden]),
|
|
306
|
+
.asta-citations-card:not([hidden]),
|
|
307
|
+
.asta-citations[data-expanded] .asta-citations-list > li,
|
|
308
|
+
.asta-trace-bar,
|
|
309
|
+
.asta-trace-detail[data-fresh],
|
|
310
|
+
.asta-prompt-menu:not([hidden]),
|
|
311
|
+
.asta-prompt-file { animation: none; }
|
|
312
|
+
.asta-model-picker-mark,
|
|
313
|
+
.asta-model-picker-bar { transition: none !important; }
|
|
314
|
+
/* A still brand ring instead of the orbit. */
|
|
315
|
+
.asta-prompt[data-running] .asta-prompt-spin { animation: none; background: var(--brand); }
|
|
316
|
+
}
|
|
317
|
+
|
|
113
318
|
/* ---- runtime/blocks.css ---- */
|
|
114
319
|
/* Blocks: sign-in, onboarding, pricing, AI chat, checkout, properties and settings panels, team members.
|
|
115
320
|
* Only what Tailwind classes can't express. Motion is transform and opacity only, with the kit's easing. */
|
|
@@ -197,6 +402,51 @@
|
|
|
197
402
|
}
|
|
198
403
|
}
|
|
199
404
|
|
|
405
|
+
/* ---- runtime/controls.css ---- */
|
|
406
|
+
/* Controls: scrub input, API keys.
|
|
407
|
+
* Only what Tailwind classes can't express. Motion is transform and opacity only, with the kit's easing. */
|
|
408
|
+
|
|
409
|
+
/* ---------- Scrub input: the error tip drops in ---------- */
|
|
410
|
+
|
|
411
|
+
.asta-scrub:has(> [aria-invalid="true"]) > .asta-scrub-tip {
|
|
412
|
+
animation: asta-scrub-tip 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* ---------- API keys: form, new key, confirm and undo rise in; the undo bar runs down ---------- */
|
|
416
|
+
|
|
417
|
+
.asta-api-keys-form:not([hidden]),
|
|
418
|
+
.asta-api-keys-reveal,
|
|
419
|
+
.asta-api-keys-confirm:not([hidden]),
|
|
420
|
+
.asta-api-keys-row[data-revoked] > .asta-api-keys-undo {
|
|
421
|
+
animation: asta-ak-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
422
|
+
}
|
|
423
|
+
.asta-api-keys-row[data-revoked] .asta-api-keys-countdown {
|
|
424
|
+
animation: asta-ak-count var(--asta-undo, 8s) linear forwards;
|
|
425
|
+
}
|
|
426
|
+
.asta-api-keys-skeleton {
|
|
427
|
+
animation: asta-ak-pulse 1.6s ease-in-out infinite;
|
|
428
|
+
}
|
|
429
|
+
.asta-api-keys-skeleton:nth-child(2) { animation-delay: 150ms }
|
|
430
|
+
.asta-api-keys-skeleton:nth-child(3) { animation-delay: 300ms }
|
|
431
|
+
|
|
432
|
+
@media (prefers-reduced-motion: reduce) {
|
|
433
|
+
.asta-scrub-input,
|
|
434
|
+
.asta-scrub-tip,
|
|
435
|
+
.asta-scrub-limit,
|
|
436
|
+
.asta-api-keys,
|
|
437
|
+
.asta-api-keys * {
|
|
438
|
+
animation-duration: 0s !important;
|
|
439
|
+
transition-duration: 0s !important;
|
|
440
|
+
}
|
|
441
|
+
.asta-api-keys-row[data-revoked] .asta-api-keys-countdown {
|
|
442
|
+
animation: none !important;
|
|
443
|
+
opacity: 0.5;
|
|
444
|
+
}
|
|
445
|
+
.asta-api-keys-skeleton {
|
|
446
|
+
animation: none !important;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
200
450
|
/* ---- runtime/data.css ---- */
|
|
201
451
|
/* Data components: tree, timeline, kanban, calendar, file card, image compare, carousel, notification center,
|
|
202
452
|
* comments, motion button. Transform and opacity only, the kit easing, and nothing moves for reduced motion. */
|
|
@@ -1312,194 +1562,1280 @@ details[open] > .asta-nav-sec { animation: asta-nav-rise 0.3s cubic-bezier(0.16,
|
|
|
1312
1562
|
* an HX-Trigger header {"asta:toast": {...}}. A <template data-asta-toast='[{"title":"Saved"}]'> in the page shows
|
|
1313
1563
|
* them on load. Their utility classes come with components.css (it @source's asta.js) and with asta.css. */
|
|
1314
1564
|
|
|
1315
|
-
/* ---- css/src/
|
|
1316
|
-
/*
|
|
1317
|
-
*
|
|
1318
|
-
*
|
|
1319
|
-
*
|
|
1320
|
-
|
|
1321
|
-
/* ----
|
|
1322
|
-
* <
|
|
1323
|
-
* <
|
|
1324
|
-
*
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1565
|
+
/* ---- css/src/agent.css ---- */
|
|
1566
|
+
/* Agent: thinking, context meter, agent plan, tool approval. Class lists mirror the React kit.
|
|
1567
|
+
* The context meter opens with core's popover (popovertarget + data-asta-popover) and the tool approval split menu is
|
|
1568
|
+
* an asta-dropdown, so asta.js positions both. Tool approval decisions, Enter / Esc and the elapsed timers come from
|
|
1569
|
+
* runtime/agent.js; its state CSS (shimmer, spinners, checks) lives in runtime/agent.css. */
|
|
1570
|
+
|
|
1571
|
+
/* ---- Thinking ----
|
|
1572
|
+
* <details class="asta-thinking" data-status="thinking" open>
|
|
1573
|
+
* <summary class="asta-thinking-head"><svg class="asta-thinking-icon">…</svg>
|
|
1574
|
+
* <span class="asta-thinking-label">Thinking<span class="asta-thinking-shine" aria-hidden="true"><span><span>Thinking</span></span></span></span>
|
|
1575
|
+
* <span class="asta-thinking-time" data-asta-elapsed="now">0s</span><svg class="asta-thinking-chevron">…</svg>
|
|
1576
|
+
* <span class="asta-thinking-preview">Latest line, shown while folded</span></summary>
|
|
1577
|
+
* <ol class="asta-thinking-steps"><li>…</li></ol></details>
|
|
1578
|
+
* data-status: thinking | done | stopped. Done: drop the shine and time, label "Thought for 12s". Variant
|
|
1579
|
+
* asta-thinking-inline (one line, no panel: use a <div> and a <span class="asta-thinking-head">). Size asta-thinking-sm. */
|
|
1580
|
+
.asta-thinking {
|
|
1581
|
+
@apply flex w-full min-w-0 flex-col text-[13.5px] text-ink;
|
|
1582
|
+
}
|
|
1583
|
+
.asta-thinking-sm {
|
|
1584
|
+
@apply text-[12.5px];
|
|
1585
|
+
}
|
|
1586
|
+
.asta-thinking-inline {
|
|
1587
|
+
@apply inline-flex w-auto max-w-full align-middle;
|
|
1588
|
+
}
|
|
1589
|
+
.asta-thinking-head {
|
|
1590
|
+
@apply -mx-1.5 flex min-w-0 max-w-full cursor-pointer flex-wrap list-none items-center gap-x-1.5 gap-y-0.5 self-start rounded-md px-1.5 py-1 font-medium outline-none transition-colors duration-200;
|
|
1591
|
+
@apply hover:bg-paper-2 focus-visible:ring-2 focus-visible:ring-brand/50 [&::-webkit-details-marker]:hidden;
|
|
1592
|
+
span& {
|
|
1593
|
+
@apply mx-0 cursor-default px-0 hover:bg-transparent;
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
.asta-thinking-icon {
|
|
1597
|
+
@apply h-4 w-4 shrink-0 text-mute;
|
|
1598
|
+
.asta-thinking-sm & {
|
|
1599
|
+
@apply h-3.5 w-3.5;
|
|
1342
1600
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
@apply my-5 flex items-center gap-3 text-[12px] text-mute;
|
|
1346
|
-
&::before,
|
|
1347
|
-
&::after {
|
|
1348
|
-
@apply h-px flex-1 bg-[color-mix(in_srgb,var(--ink)_10%,transparent)] content-[''];
|
|
1601
|
+
[data-status="thinking"] & {
|
|
1602
|
+
@apply text-brand;
|
|
1349
1603
|
}
|
|
1350
1604
|
}
|
|
1351
|
-
.asta-
|
|
1352
|
-
@apply
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1605
|
+
.asta-thinking-label {
|
|
1606
|
+
@apply relative inline-block truncate text-ink;
|
|
1607
|
+
[data-status="thinking"] > .asta-thinking-head > & {
|
|
1608
|
+
@apply text-mute;
|
|
1609
|
+
}
|
|
1356
1610
|
}
|
|
1357
|
-
.asta-
|
|
1358
|
-
@apply
|
|
1611
|
+
.asta-thinking-shine {
|
|
1612
|
+
@apply pointer-events-none absolute inset-0 hidden overflow-hidden;
|
|
1613
|
+
[data-status="thinking"] & {
|
|
1614
|
+
@apply block;
|
|
1615
|
+
}
|
|
1616
|
+
& > span {
|
|
1617
|
+
@apply absolute inset-0 [mask-image:linear-gradient(90deg,transparent_32%,#000_50%,transparent_68%)];
|
|
1618
|
+
}
|
|
1619
|
+
& > span > span {
|
|
1620
|
+
@apply absolute inset-0 whitespace-nowrap text-ink;
|
|
1621
|
+
}
|
|
1359
1622
|
}
|
|
1360
|
-
.asta-
|
|
1361
|
-
@apply
|
|
1623
|
+
.asta-thinking-time {
|
|
1624
|
+
@apply hidden shrink-0 font-normal tabular-nums text-mute;
|
|
1625
|
+
[data-status="thinking"] & {
|
|
1626
|
+
@apply inline;
|
|
1627
|
+
}
|
|
1362
1628
|
}
|
|
1363
|
-
.asta-
|
|
1364
|
-
@apply text-
|
|
1629
|
+
.asta-thinking-chevron {
|
|
1630
|
+
@apply h-3.5 w-3.5 shrink-0 text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
1631
|
+
[open] > .asta-thinking-head > & {
|
|
1632
|
+
@apply rotate-90;
|
|
1633
|
+
}
|
|
1365
1634
|
}
|
|
1366
|
-
.asta-
|
|
1367
|
-
@apply
|
|
1635
|
+
.asta-thinking-preview {
|
|
1636
|
+
@apply block w-full basis-full truncate pl-[22px] font-normal text-mute;
|
|
1637
|
+
[open] > summary > & {
|
|
1638
|
+
@apply hidden;
|
|
1639
|
+
}
|
|
1640
|
+
.asta-thinking-sm & {
|
|
1641
|
+
@apply pl-5;
|
|
1642
|
+
}
|
|
1368
1643
|
}
|
|
1369
|
-
.asta-
|
|
1370
|
-
@apply mt-
|
|
1644
|
+
.asta-thinking-steps {
|
|
1645
|
+
@apply ml-[7px] mt-1 flex flex-col gap-2 pb-1 pl-[14px] shadow-[inset_1px_0_0_color-mix(in_srgb,var(--ink)_12%,transparent)];
|
|
1646
|
+
& > li {
|
|
1647
|
+
@apply leading-relaxed text-ink-2;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
/* ---- Context meter ----
|
|
1652
|
+
* <button class="asta-context-meter" popovertarget="ctx" aria-haspopup="dialog" aria-label="Context window: 62% used" data-warn>
|
|
1653
|
+
* <svg class="asta-context-meter-ring" viewBox="0 0 16 16" aria-hidden="true"><circle class="asta-context-meter-ring-track" cx="8" cy="8" r="6.25"/>
|
|
1654
|
+
* <circle class="asta-context-meter-ring-bar" cx="8" cy="8" r="6.25" pathLength="100" stroke-dasharray="100 100" stroke-dashoffset="38"/></svg>
|
|
1655
|
+
* <span>62%</span><span class="asta-context-meter-of">of 200k</span><span class="asta-context-meter-warn">· Near limit</span></button>
|
|
1656
|
+
* <div id="ctx" popover="auto" role="dialog" data-asta-popover data-side="top" data-align="end" class="asta-float asta-popover asta-context-meter-panel">
|
|
1657
|
+
* <div class="asta-context-meter-breakdown">head · total · bar (asta-context-meter-seg with --start/--value) · legend · warn · compact</div></div>
|
|
1658
|
+
* data-warn on the button and the breakdown near the limit. Segments and legend dots take their fill from their position. */
|
|
1659
|
+
.asta-context-meter {
|
|
1660
|
+
@apply inline-flex h-8 shrink-0 items-center gap-1.5 rounded-md px-2 text-[12.5px] tabular-nums text-mute outline-none transition-colors duration-200;
|
|
1661
|
+
@apply hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 aria-expanded:bg-paper-2;
|
|
1662
|
+
&[data-warn] {
|
|
1663
|
+
@apply font-medium text-ink;
|
|
1664
|
+
}
|
|
1371
1665
|
}
|
|
1372
|
-
.asta-
|
|
1373
|
-
@apply
|
|
1374
|
-
&
|
|
1375
|
-
|
|
1666
|
+
.asta-context-meter-sm {
|
|
1667
|
+
@apply h-7 px-1.5;
|
|
1668
|
+
& .asta-context-meter-of,
|
|
1669
|
+
& .asta-context-meter-warn {
|
|
1670
|
+
@apply hidden;
|
|
1376
1671
|
}
|
|
1377
1672
|
}
|
|
1378
|
-
.asta-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
@apply h-4 w-4;
|
|
1673
|
+
.asta-context-meter-of {
|
|
1674
|
+
[data-warn] > & {
|
|
1675
|
+
@apply hidden;
|
|
1382
1676
|
}
|
|
1383
1677
|
}
|
|
1384
|
-
.asta-
|
|
1385
|
-
@apply
|
|
1386
|
-
|
|
1387
|
-
@apply
|
|
1678
|
+
.asta-context-meter-warn {
|
|
1679
|
+
@apply hidden;
|
|
1680
|
+
[data-warn] > & {
|
|
1681
|
+
@apply inline;
|
|
1388
1682
|
}
|
|
1389
1683
|
}
|
|
1390
|
-
.asta-
|
|
1391
|
-
@apply
|
|
1684
|
+
.asta-context-meter-ring {
|
|
1685
|
+
@apply h-4 w-4 shrink-0 -rotate-90;
|
|
1392
1686
|
}
|
|
1393
|
-
.asta-
|
|
1394
|
-
@apply
|
|
1395
|
-
|
|
1396
|
-
|
|
1687
|
+
.asta-context-meter-ring-track {
|
|
1688
|
+
@apply fill-none stroke-[color-mix(in_srgb,var(--ink)_11%,transparent)] [stroke-width:2.5];
|
|
1689
|
+
}
|
|
1690
|
+
.asta-context-meter-ring-bar {
|
|
1691
|
+
@apply fill-none stroke-brand [stroke-linecap:round] [stroke-width:2.5] transition-[stroke-dashoffset,stroke] duration-700 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
1692
|
+
[data-warn] & {
|
|
1693
|
+
@apply stroke-ink;
|
|
1397
1694
|
}
|
|
1398
1695
|
}
|
|
1399
|
-
.asta-
|
|
1400
|
-
|
|
1696
|
+
/* Doubled with .asta-popover so it beats the popover's w-max, whatever order the groups load in. */
|
|
1697
|
+
.asta-context-meter-panel,
|
|
1698
|
+
.asta-popover.asta-context-meter-panel {
|
|
1699
|
+
@apply w-[300px] p-4;
|
|
1401
1700
|
}
|
|
1402
|
-
.asta-
|
|
1403
|
-
@apply
|
|
1404
|
-
|
|
1405
|
-
|
|
1701
|
+
.asta-context-meter-breakdown {
|
|
1702
|
+
@apply flex w-full flex-col gap-3 text-ink;
|
|
1703
|
+
}
|
|
1704
|
+
.asta-context-meter-head {
|
|
1705
|
+
@apply flex items-baseline justify-between gap-3;
|
|
1706
|
+
& > :first-child {
|
|
1707
|
+
@apply text-[13.5px] font-medium;
|
|
1708
|
+
}
|
|
1709
|
+
& > :last-child:not(:first-child) {
|
|
1710
|
+
@apply truncate text-[12px] text-mute;
|
|
1406
1711
|
}
|
|
1407
1712
|
}
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_18px_40px_-24px_rgb(0_0_0/0.3)];
|
|
1713
|
+
.asta-context-meter-total {
|
|
1714
|
+
@apply flex items-baseline justify-between gap-3 text-[12.5px] tabular-nums text-mute;
|
|
1715
|
+
& b {
|
|
1716
|
+
@apply text-[22px] font-medium tracking-[-0.03em] text-ink;
|
|
1717
|
+
}
|
|
1718
|
+
[data-warn] & > :last-child {
|
|
1719
|
+
@apply font-medium text-ink;
|
|
1720
|
+
}
|
|
1417
1721
|
}
|
|
1418
|
-
.asta-
|
|
1419
|
-
@apply
|
|
1722
|
+
.asta-context-meter-bar {
|
|
1723
|
+
@apply relative h-2 w-full overflow-hidden rounded-full bg-paper-2 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_6%,transparent)];
|
|
1420
1724
|
}
|
|
1421
|
-
.asta-
|
|
1422
|
-
@apply
|
|
1423
|
-
|
|
1424
|
-
@apply h-6 w-6;
|
|
1425
|
-
}
|
|
1725
|
+
.asta-context-meter-seg {
|
|
1726
|
+
@apply absolute inset-0 origin-left bg-brand shadow-[inset_-1px_0_0_var(--paper)] transition-transform duration-700 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
1727
|
+
transform: translateX(calc(var(--start, 0) * 100%)) scaleX(var(--value, 0));
|
|
1426
1728
|
}
|
|
1427
|
-
.asta-
|
|
1428
|
-
|
|
1729
|
+
.asta-context-meter-seg:nth-child(2),
|
|
1730
|
+
.asta-context-meter-legend > li:nth-child(2) > .asta-context-meter-dot {
|
|
1731
|
+
@apply bg-[color-mix(in_srgb,var(--brand)_55%,var(--paper))];
|
|
1429
1732
|
}
|
|
1430
|
-
.asta-
|
|
1431
|
-
|
|
1733
|
+
.asta-context-meter-seg:nth-child(3),
|
|
1734
|
+
.asta-context-meter-legend > li:nth-child(3) > .asta-context-meter-dot {
|
|
1735
|
+
@apply bg-[color-mix(in_srgb,var(--ink)_62%,var(--paper))];
|
|
1432
1736
|
}
|
|
1433
|
-
.asta-
|
|
1434
|
-
|
|
1737
|
+
.asta-context-meter-seg:nth-child(4),
|
|
1738
|
+
.asta-context-meter-legend > li:nth-child(4) > .asta-context-meter-dot {
|
|
1739
|
+
@apply bg-[color-mix(in_srgb,var(--ink)_28%,var(--paper))];
|
|
1435
1740
|
}
|
|
1436
|
-
.asta-
|
|
1437
|
-
@apply
|
|
1741
|
+
.asta-context-meter-legend {
|
|
1742
|
+
@apply flex flex-col gap-1.5 text-[12.5px];
|
|
1743
|
+
& > li {
|
|
1744
|
+
@apply flex items-center gap-2 text-ink-2;
|
|
1745
|
+
}
|
|
1746
|
+
& > li > :nth-child(2) {
|
|
1747
|
+
@apply min-w-0 flex-1 truncate;
|
|
1748
|
+
}
|
|
1749
|
+
& > li > :nth-child(3) {
|
|
1750
|
+
@apply tabular-nums text-ink;
|
|
1751
|
+
}
|
|
1752
|
+
& > li > :nth-child(4) {
|
|
1753
|
+
@apply w-9 text-right tabular-nums text-mute;
|
|
1754
|
+
}
|
|
1755
|
+
& > li[data-free] > :nth-child(2) {
|
|
1756
|
+
@apply text-mute;
|
|
1757
|
+
}
|
|
1438
1758
|
}
|
|
1439
|
-
.asta-
|
|
1440
|
-
@apply
|
|
1759
|
+
.asta-context-meter-dot {
|
|
1760
|
+
@apply h-2 w-2 shrink-0 rounded-full bg-brand;
|
|
1761
|
+
[data-free] > & {
|
|
1762
|
+
@apply bg-transparent shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)];
|
|
1763
|
+
}
|
|
1441
1764
|
}
|
|
1442
|
-
.asta-
|
|
1443
|
-
@apply text-[
|
|
1765
|
+
.asta-context-meter-note {
|
|
1766
|
+
@apply flex gap-1.5 rounded-lg bg-paper-2 px-2.5 py-2 text-[12.5px] leading-snug text-ink [&>svg]:mt-px [&>svg]:h-3.5 [&>svg]:w-3.5 [&>svg]:shrink-0;
|
|
1767
|
+
& b {
|
|
1768
|
+
@apply font-medium;
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
.asta-context-meter-compact {
|
|
1772
|
+
@apply flex h-8 w-full items-center justify-center gap-2 rounded-md bg-paper-2 text-[13px] font-medium text-ink outline-none transition-[background-color,opacity,transform] duration-200 [&>svg]:h-3.5 [&>svg]:w-3.5;
|
|
1773
|
+
@apply hover:bg-[color-mix(in_srgb,var(--ink)_8%,var(--paper-2))] active:scale-[0.98] focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
1774
|
+
@apply disabled:pointer-events-none disabled:opacity-60 aria-busy:pointer-events-none aria-busy:opacity-60 [&.htmx-request]:opacity-60;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
/* ---- Agent plan ----
|
|
1778
|
+
* <section class="asta-agent-plan" aria-label="Migrate billing">
|
|
1779
|
+
* <header class="asta-agent-plan-head"><p class="asta-agent-plan-state">Running · 8.3s</p><h3 class="asta-agent-plan-title">…</h3>
|
|
1780
|
+
* <div class="asta-agent-plan-progress"><span class="asta-agent-plan-track"><span style="--value:.43"></span></span><span><b>3</b> of 7</span></div></header>
|
|
1781
|
+
* <ol class="asta-agent-plan-steps">
|
|
1782
|
+
* <li class="asta-agent-plan-step" data-status="done"><details><summary class="asta-agent-plan-row"><span class="asta-agent-plan-icon"></span>
|
|
1783
|
+
* <span class="asta-agent-plan-name">…</span><span class="asta-agent-plan-time">1.6s</span><svg class="asta-agent-plan-chevron">…</svg></summary>
|
|
1784
|
+
* <div class="asta-agent-plan-body"><p class="asta-agent-plan-detail">…</p><ul class="asta-agent-plan-subs"><li data-status="done"><span class="asta-agent-plan-icon"></span>…</li></ul></div></details></li>
|
|
1785
|
+
* <li class="asta-agent-plan-step" data-status="pending"><div class="asta-agent-plan-row">…</div></li></ol></section>
|
|
1786
|
+
* data-status: pending | running | done | skipped | failed. The icon is drawn from it. Add <span class="asta-agent-plan-badge">Failed</span>
|
|
1787
|
+
* after the name for skipped and failed steps, open the running step's <details>, and data-failed on the section after a failure. */
|
|
1788
|
+
.asta-agent-plan {
|
|
1789
|
+
@apply flex w-full flex-col rounded-[14px] bg-paper text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_9%,transparent),0_1px_2px_rgb(0_0_0/0.04)];
|
|
1790
|
+
}
|
|
1791
|
+
.asta-agent-plan-head {
|
|
1792
|
+
@apply flex flex-col px-4 pb-3 pt-4;
|
|
1793
|
+
}
|
|
1794
|
+
.asta-agent-plan-state {
|
|
1795
|
+
@apply flex items-center gap-1.5 text-[12px] tabular-nums text-mute;
|
|
1796
|
+
[data-failed] & {
|
|
1797
|
+
@apply font-medium text-ink;
|
|
1798
|
+
}
|
|
1444
1799
|
}
|
|
1445
|
-
.asta-
|
|
1446
|
-
@apply text-[
|
|
1800
|
+
.asta-agent-plan-title {
|
|
1801
|
+
@apply mt-0.5 text-[14.5px] font-medium leading-snug tracking-[-0.01em];
|
|
1447
1802
|
}
|
|
1448
|
-
.asta-
|
|
1449
|
-
@apply mt-
|
|
1803
|
+
.asta-agent-plan-progress {
|
|
1804
|
+
@apply mt-3 flex items-center gap-3 text-[12px] tabular-nums text-mute;
|
|
1805
|
+
& b {
|
|
1806
|
+
@apply font-medium text-ink;
|
|
1807
|
+
}
|
|
1450
1808
|
}
|
|
1451
|
-
.asta-
|
|
1452
|
-
@apply
|
|
1809
|
+
.asta-agent-plan-track {
|
|
1810
|
+
@apply relative h-1 flex-1 overflow-hidden rounded-full bg-paper-2;
|
|
1811
|
+
& > span {
|
|
1812
|
+
@apply absolute inset-0 origin-left scale-x-[var(--value,0)] bg-brand transition-transform duration-700 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
1813
|
+
[data-failed] & {
|
|
1814
|
+
@apply bg-ink;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1453
1817
|
}
|
|
1454
|
-
.asta-
|
|
1455
|
-
@apply px-2 pb-2;
|
|
1818
|
+
.asta-agent-plan-steps {
|
|
1819
|
+
@apply flex flex-col px-2 pb-2;
|
|
1456
1820
|
}
|
|
1457
|
-
.asta-
|
|
1458
|
-
@apply
|
|
1459
|
-
&:
|
|
1460
|
-
@apply bg-
|
|
1821
|
+
.asta-agent-plan-step {
|
|
1822
|
+
@apply relative;
|
|
1823
|
+
&:not(:last-child) {
|
|
1824
|
+
@apply after:pointer-events-none after:absolute after:bottom-[-6px] after:left-[17px] after:top-[30px] after:w-px after:bg-[color-mix(in_srgb,var(--ink)_10%,transparent)] after:content-[''];
|
|
1461
1825
|
}
|
|
1462
1826
|
}
|
|
1463
|
-
.asta-
|
|
1464
|
-
@apply flex w-full items-center gap-
|
|
1827
|
+
.asta-agent-plan-row {
|
|
1828
|
+
@apply flex min-h-10 w-full list-none items-center gap-2.5 rounded-lg px-2 py-2 outline-none [&::-webkit-details-marker]:hidden;
|
|
1829
|
+
summary& {
|
|
1830
|
+
@apply cursor-pointer transition-colors duration-200 hover:bg-paper-2 focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
1831
|
+
}
|
|
1465
1832
|
}
|
|
1466
|
-
.asta-
|
|
1467
|
-
@apply flex-1 text-
|
|
1468
|
-
|
|
1833
|
+
.asta-agent-plan-name {
|
|
1834
|
+
@apply min-w-0 flex-1 text-left text-[13.5px] leading-snug [overflow-wrap:anywhere];
|
|
1835
|
+
[data-status="pending"] > * > &,
|
|
1836
|
+
[data-status="pending"] > * > * > & {
|
|
1469
1837
|
@apply text-mute;
|
|
1470
1838
|
}
|
|
1471
|
-
|
|
1472
|
-
|
|
1839
|
+
[data-status="running"] > * > &,
|
|
1840
|
+
[data-status="running"] > * > * > &,
|
|
1841
|
+
[data-status="failed"] > * > &,
|
|
1842
|
+
[data-status="failed"] > * > * > & {
|
|
1843
|
+
@apply font-medium;
|
|
1844
|
+
}
|
|
1845
|
+
[data-status="done"] > * > &,
|
|
1846
|
+
[data-status="done"] > * > * > & {
|
|
1847
|
+
@apply text-ink-2;
|
|
1848
|
+
}
|
|
1849
|
+
[data-status="skipped"] > * > &,
|
|
1850
|
+
[data-status="skipped"] > * > * > & {
|
|
1851
|
+
@apply text-mute line-through decoration-[color-mix(in_srgb,var(--ink)_30%,transparent)];
|
|
1473
1852
|
}
|
|
1474
1853
|
}
|
|
1475
|
-
.asta-
|
|
1476
|
-
@apply text-[
|
|
1854
|
+
.asta-agent-plan-badge {
|
|
1855
|
+
@apply shrink-0 rounded bg-paper-2 px-1.5 py-px text-[11px] text-mute;
|
|
1856
|
+
[data-status="failed"] > * > &,
|
|
1857
|
+
[data-status="failed"] > * > * > & {
|
|
1858
|
+
@apply bg-ink font-medium text-paper;
|
|
1859
|
+
}
|
|
1477
1860
|
}
|
|
1478
|
-
.asta-
|
|
1861
|
+
.asta-agent-plan-time {
|
|
1862
|
+
@apply w-12 shrink-0 text-right text-[12px] tabular-nums text-mute;
|
|
1863
|
+
}
|
|
1864
|
+
.asta-agent-plan-chevron {
|
|
1479
1865
|
@apply h-3.5 w-3.5 shrink-0 text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
1480
|
-
[
|
|
1481
|
-
@apply rotate-
|
|
1866
|
+
[open] > summary > & {
|
|
1867
|
+
@apply rotate-90;
|
|
1482
1868
|
}
|
|
1483
1869
|
}
|
|
1484
|
-
.asta-
|
|
1485
|
-
@apply
|
|
1870
|
+
.asta-agent-plan-body {
|
|
1871
|
+
@apply flex flex-col gap-1.5 pb-2 pl-[38px] pr-2;
|
|
1486
1872
|
}
|
|
1487
|
-
.asta-
|
|
1488
|
-
@apply
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
@apply shadow-[inset_0_0_0_1.5px_var(--ink)];
|
|
1873
|
+
.asta-agent-plan-detail {
|
|
1874
|
+
@apply truncate text-[12px] leading-relaxed text-mute;
|
|
1875
|
+
[data-status="running"] & {
|
|
1876
|
+
@apply font-mono;
|
|
1492
1877
|
}
|
|
1493
|
-
|
|
1494
|
-
@apply
|
|
1878
|
+
[data-status="failed"] & {
|
|
1879
|
+
@apply whitespace-normal text-ink;
|
|
1495
1880
|
}
|
|
1496
1881
|
}
|
|
1497
|
-
.asta-
|
|
1498
|
-
@apply
|
|
1499
|
-
& >
|
|
1500
|
-
@apply
|
|
1882
|
+
.asta-agent-plan-subs {
|
|
1883
|
+
@apply flex flex-col gap-1;
|
|
1884
|
+
& > li {
|
|
1885
|
+
@apply flex items-center gap-2 text-[12.5px] text-ink-2;
|
|
1501
1886
|
}
|
|
1502
|
-
|
|
1887
|
+
& > li[data-status="pending"] {
|
|
1888
|
+
@apply text-mute;
|
|
1889
|
+
}
|
|
1890
|
+
& .asta-agent-plan-icon {
|
|
1891
|
+
@apply h-3.5 w-3.5;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
.asta-agent-plan-icon {
|
|
1895
|
+
@apply relative grid h-[18px] w-[18px] shrink-0 place-items-center rounded-full shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_20%,transparent)];
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
/* ---- Tool approval ----
|
|
1899
|
+
* <div class="asta-tool-approval" data-asta-tool-approval>
|
|
1900
|
+
* <ul class="asta-tool-approval-receipts" aria-label="Tool calls"></ul>
|
|
1901
|
+
* <div class="asta-tool-approval-queue">
|
|
1902
|
+
* <div class="asta-tool-approval-card" role="group" tabindex="0" aria-label="Approve run_sql" data-tool="run_sql" data-id="c1">
|
|
1903
|
+
* <div class="asta-tool-approval-head"><span class="asta-tool-approval-icon"><svg/></span><div class="asta-tool-approval-meta">
|
|
1904
|
+
* <p class="asta-tool-approval-source">Wants to use a tool · Postgres</p><p class="asta-tool-approval-tool">run_sql</p></div>
|
|
1905
|
+
* <span class="asta-tool-approval-count">1 of 3</span></div>
|
|
1906
|
+
* <p class="asta-tool-approval-summary">…</p> then <pre class="asta-tool-approval-code">, .asta-tool-approval-diff or <dl class="asta-tool-approval-args">
|
|
1907
|
+
* <div class="asta-tool-approval-foot"><p class="asta-tool-approval-risk" data-risk="read|write|destructive"><svg/>Read only</p>
|
|
1908
|
+
* <div class="asta-tool-approval-actions"><button class="asta-tool-approval-deny" data-asta-decide="deny">Deny <kbd>Esc</kbd></button>
|
|
1909
|
+
* <div class="asta-dropdown asta-tool-approval-split" data-asta-dropdown data-align="end"><button class="asta-tool-approval-allow" data-asta-decide="once">Allow once</button>
|
|
1910
|
+
* <button class="asta-tool-approval-more" data-asta-dropdown-trigger aria-haspopup="menu" …><svg/></button>
|
|
1911
|
+
* <div role="menu" popover="manual" data-asta-mpanel class="asta-float asta-dropdown-panel">…data-asta-decide="always"…</div></div></div></div></div>
|
|
1912
|
+
* …more cards queue behind the first</div></div>
|
|
1913
|
+
* asta.js turns a decision into a receipt (data-decision), runs queued calls to an always-allowed tool, and fires
|
|
1914
|
+
* "asta:tool-decision". The server can replace a receipt with one that carries a time: <span class="asta-tool-approval-receipt-time">. */
|
|
1915
|
+
.asta-tool-approval {
|
|
1916
|
+
@apply flex w-full flex-col gap-3 text-ink;
|
|
1917
|
+
}
|
|
1918
|
+
.asta-tool-approval-receipts {
|
|
1919
|
+
@apply -mx-2.5 flex flex-col empty:hidden;
|
|
1920
|
+
}
|
|
1921
|
+
.asta-tool-approval-receipt {
|
|
1922
|
+
@apply flex min-h-8 items-center gap-2 rounded-lg px-2.5 py-1.5 text-[12.5px] [&>svg]:h-3.5 [&>svg]:w-3.5 [&>svg]:shrink-0 [&>svg]:text-brand;
|
|
1923
|
+
&[data-decision="deny"] > svg,
|
|
1924
|
+
&[data-state="error"] > svg {
|
|
1925
|
+
@apply text-ink;
|
|
1926
|
+
}
|
|
1927
|
+
& > b {
|
|
1928
|
+
@apply font-medium;
|
|
1929
|
+
}
|
|
1930
|
+
& > code {
|
|
1931
|
+
@apply min-w-0 truncate font-mono text-[12px] text-ink-2;
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
.asta-tool-approval-receipt-sep {
|
|
1935
|
+
@apply text-mute;
|
|
1936
|
+
}
|
|
1937
|
+
.asta-tool-approval-receipts:focus {
|
|
1938
|
+
@apply outline-none;
|
|
1939
|
+
}
|
|
1940
|
+
.asta-tool-approval-receipt-summary {
|
|
1941
|
+
@apply hidden min-w-0 flex-1 truncate text-mute sm:block;
|
|
1942
|
+
}
|
|
1943
|
+
.asta-tool-approval-receipt-time {
|
|
1944
|
+
@apply ml-auto shrink-0 tabular-nums text-mute;
|
|
1945
|
+
}
|
|
1946
|
+
.asta-tool-approval-queue {
|
|
1947
|
+
@apply relative isolate empty:hidden;
|
|
1948
|
+
}
|
|
1949
|
+
.asta-tool-approval-card {
|
|
1950
|
+
@apply relative flex flex-col gap-3 rounded-[14px] bg-paper p-4 outline-none;
|
|
1951
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_10px_28px_-16px_rgb(0_0_0/0.25),0_1px_2px_rgb(0_0_0/0.04)];
|
|
1952
|
+
@apply focus-visible:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_16%,transparent)];
|
|
1953
|
+
.asta-tool-approval-queue > &:not(:first-child) {
|
|
1954
|
+
@apply hidden;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
.asta-tool-approval-head {
|
|
1958
|
+
@apply flex items-start gap-3;
|
|
1959
|
+
}
|
|
1960
|
+
.asta-tool-approval-icon {
|
|
1961
|
+
@apply grid h-8 w-8 shrink-0 place-items-center rounded-lg bg-paper-2 text-ink [&>svg]:h-4 [&>svg]:w-4;
|
|
1962
|
+
}
|
|
1963
|
+
.asta-tool-approval-meta {
|
|
1964
|
+
@apply min-w-0 flex-1;
|
|
1965
|
+
}
|
|
1966
|
+
.asta-tool-approval-source {
|
|
1967
|
+
@apply truncate text-[12px] text-mute;
|
|
1968
|
+
}
|
|
1969
|
+
.asta-tool-approval-tool {
|
|
1970
|
+
@apply truncate font-mono text-[13.5px] font-medium;
|
|
1971
|
+
}
|
|
1972
|
+
.asta-tool-approval-count {
|
|
1973
|
+
@apply shrink-0 rounded-md bg-paper-2 px-1.5 py-0.5 text-[11.5px] tabular-nums text-mute;
|
|
1974
|
+
}
|
|
1975
|
+
.asta-tool-approval-summary {
|
|
1976
|
+
@apply text-[13.5px] leading-snug text-ink-2;
|
|
1977
|
+
}
|
|
1978
|
+
.asta-tool-approval-code {
|
|
1979
|
+
@apply overflow-x-auto rounded-lg bg-paper-2 px-3 py-2.5 font-mono text-[12px] leading-[1.6] text-ink [scrollbar-width:thin];
|
|
1980
|
+
}
|
|
1981
|
+
.asta-tool-approval-diff {
|
|
1982
|
+
@apply overflow-hidden rounded-lg bg-paper-2 text-[12px];
|
|
1983
|
+
}
|
|
1984
|
+
.asta-tool-approval-diff-file {
|
|
1985
|
+
@apply flex items-center justify-between gap-3 px-3 pb-1 pt-2 font-mono text-ink-2;
|
|
1986
|
+
& > :last-child {
|
|
1987
|
+
@apply shrink-0 tabular-nums text-mute;
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
.asta-tool-approval-diff-lines {
|
|
1991
|
+
@apply overflow-x-auto pb-1.5 font-mono leading-[1.6] [scrollbar-width:thin];
|
|
1992
|
+
& > div {
|
|
1993
|
+
@apply flex min-w-max whitespace-pre pr-3 text-ink before:w-6 before:shrink-0 before:select-none before:text-center before:text-mute before:content-['_'];
|
|
1994
|
+
}
|
|
1995
|
+
& > div[data-sign="+"] {
|
|
1996
|
+
@apply bg-[color-mix(in_srgb,var(--brand)_9%,transparent)] before:text-brand before:content-['+'];
|
|
1997
|
+
}
|
|
1998
|
+
& > div[data-sign="-"] {
|
|
1999
|
+
@apply text-mute line-through decoration-[color-mix(in_srgb,var(--ink)_25%,transparent)] before:content-['−'];
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
.asta-tool-approval-args {
|
|
2003
|
+
@apply grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 rounded-lg bg-paper-2 px-3 py-2.5 text-[12.5px];
|
|
2004
|
+
& dt {
|
|
2005
|
+
@apply text-mute;
|
|
2006
|
+
}
|
|
2007
|
+
& dd {
|
|
2008
|
+
@apply min-w-0 break-words font-mono text-[12px] text-ink;
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
.asta-tool-approval-foot {
|
|
2012
|
+
@apply flex flex-wrap items-center justify-between gap-x-3 gap-y-2.5 pt-0.5;
|
|
2013
|
+
}
|
|
2014
|
+
.asta-tool-approval-risk {
|
|
2015
|
+
@apply flex items-center gap-1.5 text-[12.5px] text-mute [&>svg]:h-3.5 [&>svg]:w-3.5 [&>svg]:shrink-0;
|
|
2016
|
+
&[data-risk="destructive"] {
|
|
2017
|
+
@apply font-medium text-ink;
|
|
2018
|
+
}
|
|
2019
|
+
}
|
|
2020
|
+
.asta-tool-approval-actions {
|
|
2021
|
+
@apply ml-auto flex items-center gap-2;
|
|
2022
|
+
& kbd {
|
|
2023
|
+
@apply ml-1 hidden rounded bg-[color-mix(in_srgb,currentColor_14%,transparent)] px-1 font-sans text-[10.5px] leading-[1.5] sm:inline;
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
.asta-tool-approval-deny {
|
|
2027
|
+
@apply inline-flex h-8 items-center rounded-md px-3 text-[13px] font-medium text-ink-2 outline-none shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)];
|
|
2028
|
+
@apply transition-[background-color,color,transform] duration-150 hover:bg-paper-2 hover:text-ink active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
2029
|
+
}
|
|
2030
|
+
.asta-tool-approval-split {
|
|
2031
|
+
@apply flex;
|
|
2032
|
+
}
|
|
2033
|
+
.asta-tool-approval-allow,
|
|
2034
|
+
.asta-tool-approval-more {
|
|
2035
|
+
@apply inline-flex h-8 items-center bg-ink text-[13px] font-medium text-paper outline-none transition-[background-color,transform] duration-150;
|
|
2036
|
+
@apply hover:bg-[color-mix(in_srgb,var(--ink)_86%,var(--paper))] active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper;
|
|
2037
|
+
}
|
|
2038
|
+
.asta-tool-approval-allow {
|
|
2039
|
+
@apply rounded-l-md pl-3 pr-2.5;
|
|
2040
|
+
}
|
|
2041
|
+
.asta-tool-approval-more {
|
|
2042
|
+
@apply w-7 justify-center rounded-r-md shadow-[inset_1px_0_0_color-mix(in_srgb,var(--paper)_22%,transparent)] [&>svg]:h-3.5 [&>svg]:w-3.5;
|
|
2043
|
+
& > svg {
|
|
2044
|
+
@apply transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)];
|
|
2045
|
+
}
|
|
2046
|
+
[data-open] > & > svg {
|
|
2047
|
+
@apply rotate-180;
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
/* ---- css/src/assist.css ---- */
|
|
2052
|
+
/* AI assistant UI: prompt composer, model picker, citations and trace waterfall. Class lists mirror the React kit.
|
|
2053
|
+
* asta.js drives them through data-asta-* hooks (runtime/assist.js); states come only from aria-*, data-* and
|
|
2054
|
+
* disabled. Modifiers come after the base class. */
|
|
2055
|
+
|
|
2056
|
+
/* ---- Model picker ----
|
|
2057
|
+
* <div class="asta-model-picker" data-asta-model>
|
|
2058
|
+
* <button class="asta-model-picker-trigger" aria-haspopup="listbox" aria-expanded="false" data-asta-model-trigger>…value, tag, chevron…</button>
|
|
2059
|
+
* <input type="hidden" name="model" value="astra-2" data-asta-model-value>
|
|
2060
|
+
* <div class="asta-model-picker-panel" hidden>
|
|
2061
|
+
* <div class="asta-model-picker-search">…<input class="asta-model-picker-search-input" role="combobox" data-asta-model-search></div>
|
|
2062
|
+
* <div class="asta-model-picker-list" role="listbox"><span class="asta-model-picker-mark"></span><span class="asta-model-picker-bar"></span>
|
|
2063
|
+
* <div role="group"><p class="asta-model-picker-group">Astra 2</p><div class="asta-model-picker-option" role="option" data-value data-label aria-selected>…</div></div>
|
|
2064
|
+
* </div></div></div>
|
|
2065
|
+
* Variant asta-model-picker-chip (quiet toolbar trigger), asta-model-picker-top (opens upward). */
|
|
2066
|
+
.asta-model-picker {
|
|
2067
|
+
@apply relative w-full;
|
|
2068
|
+
}
|
|
2069
|
+
.asta-model-picker-chip {
|
|
2070
|
+
@apply inline-flex w-auto;
|
|
2071
|
+
}
|
|
2072
|
+
.asta-model-picker-trigger {
|
|
2073
|
+
@apply flex h-10 w-full cursor-pointer items-center gap-2 rounded-lg bg-paper px-3 text-left text-[14px] text-ink outline-none transition-[background-color,box-shadow,color] duration-200;
|
|
2074
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)];
|
|
2075
|
+
@apply aria-expanded:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_18%,transparent)];
|
|
2076
|
+
@apply focus-visible:ring-2 focus-visible:ring-brand/50 disabled:cursor-not-allowed disabled:opacity-45;
|
|
2077
|
+
& > svg {
|
|
2078
|
+
@apply h-3.5 w-3.5 shrink-0;
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
.asta-model-picker-chip .asta-model-picker-trigger {
|
|
2082
|
+
@apply h-8 w-auto max-w-[220px] rounded-md bg-transparent px-2 text-[13px] text-ink-2 shadow-none hover:bg-paper-2 hover:text-ink hover:shadow-none aria-expanded:bg-paper-2 aria-expanded:text-ink aria-expanded:shadow-none;
|
|
2083
|
+
}
|
|
2084
|
+
.asta-model-picker-icon {
|
|
2085
|
+
@apply text-brand;
|
|
2086
|
+
}
|
|
2087
|
+
.asta-model-picker-value {
|
|
2088
|
+
@apply min-w-0 truncate font-medium;
|
|
2089
|
+
}
|
|
2090
|
+
.asta-model-picker-tag {
|
|
2091
|
+
@apply shrink-0 rounded-[5px] bg-[color-mix(in_srgb,var(--ink)_7%,transparent)] px-1.5 py-px text-[11px] font-medium text-ink-2;
|
|
2092
|
+
}
|
|
2093
|
+
.asta-model-picker-chevron {
|
|
2094
|
+
@apply ml-auto text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)];
|
|
2095
|
+
}
|
|
2096
|
+
.asta-model-picker-trigger[aria-expanded="true"] .asta-model-picker-chevron {
|
|
2097
|
+
@apply rotate-180;
|
|
2098
|
+
}
|
|
2099
|
+
.asta-model-picker-panel {
|
|
2100
|
+
@apply absolute left-0 top-full z-50 mt-1.5 flex w-[372px] max-w-[calc(100vw-32px)] origin-top flex-col overflow-hidden rounded-xl bg-paper;
|
|
2101
|
+
@apply shadow-[0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_16px_40px_-12px_rgb(0_0_0/0.25),0_4px_10px_-6px_rgb(0_0_0/0.1)];
|
|
2102
|
+
}
|
|
2103
|
+
.asta-model-picker-top .asta-model-picker-panel {
|
|
2104
|
+
@apply bottom-full top-auto mb-1.5 mt-0 origin-bottom;
|
|
2105
|
+
}
|
|
2106
|
+
.asta-model-picker-search {
|
|
2107
|
+
@apply flex items-center gap-2 px-3 pb-1.5 pt-2.5 text-mute;
|
|
2108
|
+
& > svg {
|
|
2109
|
+
@apply h-4 w-4 shrink-0;
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
.asta-model-picker-search-input {
|
|
2113
|
+
@apply h-8 min-w-0 flex-1 bg-transparent text-[16px] text-ink outline-none placeholder:text-mute sm:text-[13.5px] [&::-webkit-search-cancel-button]:hidden;
|
|
2114
|
+
}
|
|
2115
|
+
.asta-model-picker-list {
|
|
2116
|
+
@apply relative max-h-[min(360px,60vh)] overflow-y-auto overscroll-contain p-1.5 outline-none [scrollbar-width:thin];
|
|
2117
|
+
}
|
|
2118
|
+
.asta-model-picker-mark {
|
|
2119
|
+
@apply pointer-events-none absolute inset-x-1.5 top-0 h-14 rounded-lg bg-paper-2 opacity-0;
|
|
2120
|
+
}
|
|
2121
|
+
.asta-model-picker-bar {
|
|
2122
|
+
@apply pointer-events-none absolute left-1.5 top-0 z-[1] h-[22px] w-[3px] rounded-full bg-brand opacity-0;
|
|
2123
|
+
}
|
|
2124
|
+
.asta-model-picker-group {
|
|
2125
|
+
@apply relative px-3.5 pb-1 pt-2.5 font-mono text-[10.5px] uppercase tracking-wider text-mute;
|
|
2126
|
+
}
|
|
2127
|
+
.asta-model-picker-option {
|
|
2128
|
+
@apply relative flex h-14 cursor-pointer select-none items-center gap-3 rounded-lg pl-3.5 pr-2.5;
|
|
2129
|
+
@apply aria-disabled:cursor-not-allowed;
|
|
2130
|
+
}
|
|
2131
|
+
.asta-model-picker-main {
|
|
2132
|
+
@apply min-w-0 flex-1;
|
|
2133
|
+
}
|
|
2134
|
+
.asta-model-picker-option[aria-disabled="true"] :is(.asta-model-picker-main, .asta-model-picker-meters, .asta-model-picker-context) {
|
|
2135
|
+
@apply opacity-55;
|
|
2136
|
+
}
|
|
2137
|
+
.asta-model-picker-name {
|
|
2138
|
+
@apply flex items-center gap-1.5 truncate text-[13.5px] font-medium text-ink-2;
|
|
2139
|
+
}
|
|
2140
|
+
.asta-model-picker-option[aria-selected="true"] .asta-model-picker-name {
|
|
2141
|
+
@apply text-ink;
|
|
2142
|
+
}
|
|
2143
|
+
.asta-model-picker-new {
|
|
2144
|
+
@apply shrink-0 rounded-[5px] bg-brand px-1.5 text-[10px] font-semibold leading-[16px] text-white;
|
|
2145
|
+
}
|
|
2146
|
+
.asta-model-picker-hint {
|
|
2147
|
+
@apply mt-0.5 block truncate text-[12px] text-mute;
|
|
2148
|
+
}
|
|
2149
|
+
.asta-model-picker-meters {
|
|
2150
|
+
@apply flex shrink-0 flex-col items-end gap-1.5;
|
|
2151
|
+
}
|
|
2152
|
+
.asta-model-picker-meter {
|
|
2153
|
+
@apply flex items-center gap-1.5 text-mute;
|
|
2154
|
+
& > svg {
|
|
2155
|
+
@apply h-3 w-3;
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
.asta-model-picker-dots {
|
|
2159
|
+
@apply flex items-center gap-[3px];
|
|
2160
|
+
& > span {
|
|
2161
|
+
@apply h-[5px] w-[5px] rounded-full bg-[color-mix(in_srgb,var(--ink)_14%,transparent)] data-on:bg-ink;
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
.asta-model-picker-context {
|
|
2165
|
+
@apply w-9 shrink-0 text-right font-mono text-[11px] tabular-nums text-mute;
|
|
2166
|
+
}
|
|
2167
|
+
.asta-model-picker-check {
|
|
2168
|
+
@apply h-3.5 w-3.5 shrink-0 scale-75 text-brand opacity-0 transition-[opacity,transform] duration-200 ease-[cubic-bezier(.16,1,.3,1)];
|
|
2169
|
+
}
|
|
2170
|
+
.asta-model-picker-option[aria-selected="true"] .asta-model-picker-check {
|
|
2171
|
+
@apply scale-100 opacity-100;
|
|
2172
|
+
}
|
|
2173
|
+
.asta-model-picker-empty {
|
|
2174
|
+
@apply flex flex-col items-center gap-1 px-3 py-8 text-center text-[12px] text-mute;
|
|
2175
|
+
& b {
|
|
2176
|
+
@apply text-[13px] font-medium text-ink-2;
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
.asta-model-picker-foot {
|
|
2180
|
+
@apply hidden items-center gap-3 bg-paper-2 px-3.5 py-2 text-[11.5px] text-mute sm:flex;
|
|
2181
|
+
& > span:last-child {
|
|
2182
|
+
@apply ml-auto;
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
/* ---- Citations ----
|
|
2187
|
+
* <div class="asta-citations" data-asta-cite>
|
|
2188
|
+
* <div class="asta-citations-text"><p>Revenue grew 23% <span class="asta-citations-cite"><button class="asta-citations-pill" data-src="1" aria-label="Source 1: …" aria-expanded="false">1</button>
|
|
2189
|
+
* <span class="asta-citations-card" role="tooltip" hidden>…tile, domain, title, quote with <mark>…</span></span>.</p></div>
|
|
2190
|
+
* <section class="asta-citations-sources"><div class="asta-citations-head"><h4 class="asta-citations-title">Sources <span class="asta-citations-count">5</span></h4>
|
|
2191
|
+
* <button class="asta-citations-toggle" aria-expanded="false" data-asta-cite-toggle>Show all 5</button></div>
|
|
2192
|
+
* <ol class="asta-citations-list"><li><a class="asta-citations-source" data-src="1" href="…">…</a></li> … <li data-extra hidden>…</li></ol></section></div>
|
|
2193
|
+
* asta.js shows a card on hover/focus/tap, lights a source's pills (data-lit) and expands the list (data-expanded). */
|
|
2194
|
+
.asta-citations {
|
|
2195
|
+
@apply flex w-full flex-col gap-5;
|
|
2196
|
+
}
|
|
2197
|
+
.asta-citations-text {
|
|
2198
|
+
@apply flex flex-col gap-3 text-[15px] leading-[1.7] text-ink;
|
|
2199
|
+
}
|
|
2200
|
+
.asta-citations-cite {
|
|
2201
|
+
@apply relative inline-block whitespace-nowrap;
|
|
2202
|
+
}
|
|
2203
|
+
.asta-citations-pill {
|
|
2204
|
+
@apply mx-px inline-grid h-[18px] min-w-[18px] -translate-y-px cursor-pointer place-items-center rounded-[5px] bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] px-1 align-middle text-[11px] font-semibold leading-none tabular-nums text-ink-2 outline-none;
|
|
2205
|
+
@apply transition-[background-color,color,transform] duration-200 hover:bg-[color-mix(in_srgb,var(--ink)_14%,transparent)] hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50 active:scale-95;
|
|
2206
|
+
@apply aria-expanded:bg-brand aria-expanded:text-white data-lit:bg-brand data-lit:text-white;
|
|
2207
|
+
}
|
|
2208
|
+
.asta-citations-card {
|
|
2209
|
+
@apply absolute bottom-full left-1/2 z-50 mb-2 block w-[304px] max-w-[calc(100vw-32px)] -translate-x-1/2 origin-bottom whitespace-normal rounded-xl bg-paper p-3.5 text-left leading-normal;
|
|
2210
|
+
@apply shadow-[0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_16px_36px_-12px_rgb(0_0_0/0.28),0_4px_10px_-6px_rgb(0_0_0/0.1)];
|
|
2211
|
+
@apply data-below:bottom-auto data-below:top-full data-below:mb-0 data-below:mt-2 data-below:origin-top;
|
|
2212
|
+
& mark {
|
|
2213
|
+
@apply rounded-[3px] bg-[color-mix(in_srgb,var(--brand)_14%,transparent)] px-0.5 text-ink [box-decoration-break:clone];
|
|
2214
|
+
}
|
|
2215
|
+
}
|
|
2216
|
+
.asta-citations-card-head {
|
|
2217
|
+
@apply flex items-center gap-2 text-[12px] text-mute;
|
|
2218
|
+
& > span:nth-child(2) {
|
|
2219
|
+
@apply min-w-0 flex-1 truncate;
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
.asta-citations-card-num {
|
|
2223
|
+
@apply font-mono text-[11px];
|
|
2224
|
+
}
|
|
2225
|
+
.asta-citations-card-title {
|
|
2226
|
+
@apply mt-2 line-clamp-2 text-[13.5px] font-medium leading-snug text-ink;
|
|
2227
|
+
}
|
|
2228
|
+
.asta-citations-card-quote {
|
|
2229
|
+
@apply mt-1.5 line-clamp-4 text-[12.5px] leading-relaxed text-ink-2;
|
|
2230
|
+
}
|
|
2231
|
+
.asta-citations-tile {
|
|
2232
|
+
@apply grid h-[18px] w-[18px] shrink-0 place-items-center rounded-[5px] bg-ink text-[10px] font-semibold uppercase text-paper;
|
|
2233
|
+
}
|
|
2234
|
+
.asta-citations-tile-2 {
|
|
2235
|
+
@apply bg-brand text-white;
|
|
2236
|
+
}
|
|
2237
|
+
.asta-citations-tile-3 {
|
|
2238
|
+
@apply bg-paper-2 text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent)];
|
|
2239
|
+
}
|
|
2240
|
+
.asta-citations-sources {
|
|
2241
|
+
@apply flex flex-col gap-2.5;
|
|
2242
|
+
}
|
|
2243
|
+
.asta-citations-head {
|
|
2244
|
+
@apply flex items-center justify-between gap-3;
|
|
2245
|
+
}
|
|
2246
|
+
.asta-citations-title {
|
|
2247
|
+
@apply flex items-center gap-2 text-[12.5px] font-medium text-ink-2;
|
|
2248
|
+
}
|
|
2249
|
+
.asta-citations-count {
|
|
2250
|
+
@apply rounded-[5px] bg-paper-2 px-1.5 text-[11px] tabular-nums text-mute;
|
|
2251
|
+
}
|
|
2252
|
+
.asta-citations-toggle {
|
|
2253
|
+
@apply flex h-7 cursor-pointer items-center gap-1 rounded-md px-2 text-[12.5px] font-medium text-ink-2 outline-none transition-colors duration-150 hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
2254
|
+
& > svg {
|
|
2255
|
+
@apply h-3.5 w-3.5 transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)];
|
|
2256
|
+
}
|
|
2257
|
+
&[aria-expanded="true"] > svg {
|
|
2258
|
+
@apply rotate-180;
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
.asta-citations-list {
|
|
2262
|
+
@apply grid grid-cols-1 gap-2 min-[480px]:grid-cols-2 sm:grid-cols-4;
|
|
2263
|
+
}
|
|
2264
|
+
.asta-citations[data-expanded] .asta-citations-list {
|
|
2265
|
+
@apply flex flex-col gap-1;
|
|
2266
|
+
}
|
|
2267
|
+
.asta-citations-source {
|
|
2268
|
+
@apply block w-full rounded-[10px] bg-paper-2 p-2.5 text-left outline-none transition-[background-color,box-shadow] duration-200 hover:bg-[color-mix(in_srgb,var(--ink)_7%,var(--paper-2))] focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
2269
|
+
@apply data-lit:bg-[color-mix(in_srgb,var(--brand)_7%,var(--paper))] data-lit:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--brand)_35%,transparent)];
|
|
2270
|
+
}
|
|
2271
|
+
.asta-citations[data-expanded] .asta-citations-source:not([data-lit]) {
|
|
2272
|
+
@apply bg-transparent hover:bg-paper-2;
|
|
2273
|
+
}
|
|
2274
|
+
.asta-citations-source-head {
|
|
2275
|
+
@apply flex items-center gap-1.5 text-[11.5px] text-mute;
|
|
2276
|
+
& > span:nth-child(2) {
|
|
2277
|
+
@apply min-w-0 flex-1 truncate;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
.asta-citations-source-num {
|
|
2281
|
+
@apply font-mono text-[11px] tabular-nums;
|
|
2282
|
+
}
|
|
2283
|
+
.asta-citations-source-title {
|
|
2284
|
+
@apply mt-1.5 line-clamp-2 text-[12.5px] font-medium leading-snug text-ink;
|
|
2285
|
+
}
|
|
2286
|
+
.asta-citations-source-quote {
|
|
2287
|
+
@apply mt-1 hidden text-[12.5px] leading-relaxed text-ink-2;
|
|
2288
|
+
& mark {
|
|
2289
|
+
@apply rounded-[3px] bg-[color-mix(in_srgb,var(--brand)_14%,transparent)] px-0.5 text-ink;
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
.asta-citations[data-expanded] .asta-citations-source-quote {
|
|
2293
|
+
@apply line-clamp-2;
|
|
2294
|
+
}
|
|
2295
|
+
.asta-citations[data-expanded] .asta-citations-source-title {
|
|
2296
|
+
@apply text-[13.5px];
|
|
2297
|
+
}
|
|
2298
|
+
.asta-citations-more {
|
|
2299
|
+
@apply hidden sm:block;
|
|
2300
|
+
}
|
|
2301
|
+
.asta-citations[data-expanded] .asta-citations-more {
|
|
2302
|
+
@apply hidden;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
/* ---- Trace waterfall ----
|
|
2306
|
+
* <div class="asta-trace" data-asta-trace>
|
|
2307
|
+
* <header class="asta-trace-header"><h3 class="asta-trace-title">…</h3><dl class="asta-trace-stats">…</dl><ul class="asta-trace-legend">…</ul></header>
|
|
2308
|
+
* <div class="asta-trace-scroll"><div class="asta-trace-grid" role="treegrid">
|
|
2309
|
+
* <div class="asta-trace-row asta-trace-head" role="row">…</div>
|
|
2310
|
+
* <div class="asta-trace-row" role="row" data-id="plan" data-parent="run" aria-level="2" tabindex="-1">
|
|
2311
|
+
* <span class="asta-trace-name" role="gridcell" style="--depth:1">…kind tile, label…</span>
|
|
2312
|
+
* <span class="asta-trace-timeline" role="gridcell"><span class="asta-trace-track"><span class="asta-trace-bar asta-trace-bar-llm" style="--x:1%;--w:.14"></span></span></span>
|
|
2313
|
+
* <span class="asta-trace-num" role="gridcell">2,052</span> … </div></div></div>
|
|
2314
|
+
* <section class="asta-trace-detail" hidden data-asta-trace-detail></section>
|
|
2315
|
+
* <template data-asta-trace-for="plan">…detail markup…</template></div>
|
|
2316
|
+
* asta.js folds rows ([data-asta-trace-toggle], ←/→), moves focus (↑/↓) and opens the detail for the selected row. */
|
|
2317
|
+
.asta-trace {
|
|
2318
|
+
@apply flex w-full flex-col overflow-hidden rounded-[14px] bg-paper text-ink shadow-[0_0_0_1px_color-mix(in_srgb,var(--ink)_9%,transparent),0_1px_2px_rgb(0_0_0/0.04)];
|
|
2319
|
+
}
|
|
2320
|
+
.asta-trace-header {
|
|
2321
|
+
@apply flex flex-wrap items-center gap-x-4 gap-y-2 px-4 pb-3 pt-4 sm:px-5;
|
|
2322
|
+
}
|
|
2323
|
+
.asta-trace-title {
|
|
2324
|
+
@apply truncate text-[14px] font-medium tracking-[-0.01em] text-ink;
|
|
2325
|
+
}
|
|
2326
|
+
.asta-trace-stats {
|
|
2327
|
+
@apply flex flex-wrap items-center gap-x-4 gap-y-1 text-[12.5px] tabular-nums text-mute;
|
|
2328
|
+
& > div {
|
|
2329
|
+
@apply flex items-center gap-1.5;
|
|
2330
|
+
}
|
|
2331
|
+
& dd {
|
|
2332
|
+
@apply font-medium text-ink;
|
|
2333
|
+
}
|
|
2334
|
+
& svg {
|
|
2335
|
+
@apply h-3.5 w-3.5 text-ink;
|
|
2336
|
+
}
|
|
2337
|
+
}
|
|
2338
|
+
.asta-trace-legend {
|
|
2339
|
+
@apply flex flex-wrap items-center gap-3 text-[11.5px] text-mute sm:ml-auto;
|
|
2340
|
+
& > li {
|
|
2341
|
+
@apply flex items-center gap-1.5;
|
|
2342
|
+
}
|
|
2343
|
+
& > li > span {
|
|
2344
|
+
@apply h-2 w-2 rounded-[2px];
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
.asta-trace-scroll {
|
|
2348
|
+
@apply max-h-[440px] overflow-auto overscroll-contain [scrollbar-width:thin];
|
|
2349
|
+
}
|
|
2350
|
+
.asta-trace-grid {
|
|
2351
|
+
@apply min-w-[700px] pb-2 sm:min-w-[740px];
|
|
2352
|
+
}
|
|
2353
|
+
.asta-trace-row {
|
|
2354
|
+
@apply grid h-10 cursor-pointer grid-cols-[minmax(200px,1.3fr)_minmax(240px,2fr)_56px_68px_76px] sm:grid-cols-[minmax(232px,1.3fr)_minmax(240px,2fr)_56px_68px_76px] items-center gap-x-3 bg-paper text-[13px] outline-none transition-colors duration-150 hover:bg-paper-2;
|
|
2355
|
+
@apply focus-visible:shadow-[inset_0_0_0_2px_color-mix(in_srgb,var(--brand)_55%,transparent)];
|
|
2356
|
+
@apply aria-selected:bg-[color-mix(in_srgb,var(--brand)_7%,var(--paper))];
|
|
2357
|
+
}
|
|
2358
|
+
.asta-trace-head {
|
|
2359
|
+
@apply sticky top-0 z-20 h-8 cursor-default font-mono text-[10.5px] uppercase tracking-wider text-mute hover:bg-paper;
|
|
2360
|
+
& > span:first-child {
|
|
2361
|
+
@apply left-0 z-10 bg-paper pl-4 sm:sticky sm:pl-5;
|
|
2362
|
+
}
|
|
2363
|
+
& > span:nth-child(n + 3) {
|
|
2364
|
+
@apply text-right;
|
|
2365
|
+
}
|
|
2366
|
+
& > span:last-child {
|
|
2367
|
+
@apply pr-4 sm:pr-5;
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
.asta-trace-ticks {
|
|
2371
|
+
@apply relative h-full;
|
|
2372
|
+
& > span {
|
|
2373
|
+
@apply absolute top-1/2 -translate-x-1/2 -translate-y-1/2 normal-case tracking-normal;
|
|
2374
|
+
}
|
|
2375
|
+
& > span:first-child {
|
|
2376
|
+
@apply translate-x-0;
|
|
2377
|
+
}
|
|
2378
|
+
& > span:last-child {
|
|
2379
|
+
@apply -translate-x-full;
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
.asta-trace-name {
|
|
2383
|
+
@apply left-0 z-10 flex h-full min-w-0 items-center gap-1.5 bg-inherit pr-3 text-ink-2 sm:sticky;
|
|
2384
|
+
padding-left: calc(16px + var(--depth, 0) * 18px);
|
|
2385
|
+
}
|
|
2386
|
+
.asta-trace-row:hover .asta-trace-name {
|
|
2387
|
+
@apply bg-paper-2;
|
|
2388
|
+
}
|
|
2389
|
+
.asta-trace-row[aria-selected="true"] .asta-trace-name {
|
|
2390
|
+
@apply bg-[color-mix(in_srgb,var(--brand)_7%,var(--paper))];
|
|
2391
|
+
}
|
|
2392
|
+
.asta-trace-toggle {
|
|
2393
|
+
@apply -ml-1 grid h-5 w-5 shrink-0 cursor-pointer place-items-center rounded text-mute hover:bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] hover:text-ink;
|
|
2394
|
+
& > svg {
|
|
2395
|
+
@apply h-3 w-3 rotate-90 transition-transform duration-200 ease-[cubic-bezier(.16,1,.3,1)];
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
.asta-trace-row[aria-expanded="false"] .asta-trace-toggle > svg {
|
|
2399
|
+
@apply rotate-0;
|
|
2400
|
+
}
|
|
2401
|
+
.asta-trace-spacer {
|
|
2402
|
+
@apply w-4 shrink-0;
|
|
2403
|
+
}
|
|
2404
|
+
.asta-trace-kind {
|
|
2405
|
+
@apply grid h-5 w-5 shrink-0 place-items-center rounded-[5px] bg-paper-2 text-ink-2;
|
|
2406
|
+
& > svg {
|
|
2407
|
+
@apply h-3 w-3;
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
.asta-trace-kind-llm {
|
|
2411
|
+
@apply bg-[color-mix(in_srgb,var(--brand)_12%,transparent)] text-brand;
|
|
2412
|
+
}
|
|
2413
|
+
.asta-trace-label {
|
|
2414
|
+
@apply min-w-0 truncate;
|
|
2415
|
+
}
|
|
2416
|
+
.asta-trace-root .asta-trace-label {
|
|
2417
|
+
@apply font-medium text-ink;
|
|
2418
|
+
}
|
|
2419
|
+
.asta-trace-error {
|
|
2420
|
+
@apply grid h-5 w-5 shrink-0 place-items-center rounded-[5px] bg-ink text-paper;
|
|
2421
|
+
& > svg {
|
|
2422
|
+
@apply h-3 w-3;
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
.asta-trace-timeline {
|
|
2426
|
+
@apply relative h-full;
|
|
2427
|
+
}
|
|
2428
|
+
.asta-trace-gridline {
|
|
2429
|
+
@apply absolute inset-y-0 w-px bg-[color-mix(in_srgb,var(--ink)_6%,transparent)];
|
|
2430
|
+
}
|
|
2431
|
+
.asta-trace-track {
|
|
2432
|
+
@apply absolute inset-x-0 top-1/2 -mt-[5px] h-2.5;
|
|
2433
|
+
}
|
|
2434
|
+
.asta-trace-bar {
|
|
2435
|
+
@apply absolute inset-0 origin-left rounded-[2px] bg-ink;
|
|
2436
|
+
transform: translateX(var(--x, 0%)) scaleX(var(--w, 0));
|
|
2437
|
+
}
|
|
2438
|
+
.asta-trace-bar-llm {
|
|
2439
|
+
@apply bg-brand;
|
|
2440
|
+
}
|
|
2441
|
+
.asta-trace-bar-retrieval {
|
|
2442
|
+
@apply bg-[color-mix(in_srgb,var(--brand)_42%,var(--paper))];
|
|
2443
|
+
}
|
|
2444
|
+
.asta-trace-bar-agent {
|
|
2445
|
+
@apply bg-[color-mix(in_srgb,var(--ink)_22%,var(--paper))];
|
|
2446
|
+
}
|
|
2447
|
+
.asta-trace-bar[data-error] {
|
|
2448
|
+
@apply opacity-60;
|
|
2449
|
+
}
|
|
2450
|
+
.asta-trace-num {
|
|
2451
|
+
@apply text-right text-[12.5px] tabular-nums text-ink-2;
|
|
2452
|
+
}
|
|
2453
|
+
.asta-trace-latency {
|
|
2454
|
+
@apply pr-4 text-right text-[12.5px] tabular-nums text-ink sm:pr-5;
|
|
2455
|
+
}
|
|
2456
|
+
.asta-trace-detail {
|
|
2457
|
+
@apply flex flex-col gap-4 bg-paper-2 px-4 py-4 sm:px-5;
|
|
2458
|
+
}
|
|
2459
|
+
.asta-trace-detail-head {
|
|
2460
|
+
@apply flex items-start gap-2.5;
|
|
2461
|
+
& h4 {
|
|
2462
|
+
@apply truncate text-[14px] font-medium text-ink;
|
|
2463
|
+
}
|
|
2464
|
+
& p {
|
|
2465
|
+
@apply text-[12px] text-mute;
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
.asta-trace-detail-close {
|
|
2469
|
+
@apply ml-auto grid h-7 w-7 shrink-0 cursor-pointer place-items-center rounded-md text-mute outline-none transition-colors hover:bg-paper hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
2470
|
+
& > svg {
|
|
2471
|
+
@apply h-3.5 w-3.5;
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
.asta-trace-detail-stats {
|
|
2475
|
+
@apply grid grid-cols-2 gap-x-4 gap-y-3 sm:grid-cols-5;
|
|
2476
|
+
& dt {
|
|
2477
|
+
@apply text-[11.5px] text-mute;
|
|
2478
|
+
}
|
|
2479
|
+
& dd {
|
|
2480
|
+
@apply mt-0.5 truncate text-[13px] tabular-nums text-ink;
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
.asta-trace-note {
|
|
2484
|
+
@apply flex gap-2 rounded-lg bg-paper px-3 py-2.5 text-[12.5px] leading-relaxed text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)];
|
|
2485
|
+
& > svg {
|
|
2486
|
+
@apply mt-0.5 h-3.5 w-3.5 shrink-0;
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
.asta-trace-io {
|
|
2490
|
+
@apply grid gap-3 md:grid-cols-2;
|
|
2491
|
+
& p {
|
|
2492
|
+
@apply mb-1.5 font-mono text-[10.5px] uppercase tracking-wider text-mute;
|
|
2493
|
+
}
|
|
2494
|
+
& pre {
|
|
2495
|
+
@apply max-h-40 overflow-auto overscroll-contain whitespace-pre-wrap break-words rounded-lg bg-paper p-3 font-mono text-[12px] leading-relaxed text-ink-2 [scrollbar-width:thin];
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
/* ---- Prompt composer ----
|
|
2500
|
+
* <div class="asta-prompt" data-asta-prompt>
|
|
2501
|
+
* <ul class="asta-prompt-menu" role="listbox" data-asta-prompt-menu="@" hidden><li class="asta-prompt-group">Files</li>
|
|
2502
|
+
* <li class="asta-prompt-option" role="option" id="…" data-id="f1" data-label="pricing-v3.fig" data-type="file">…</li></ul>
|
|
2503
|
+
* <ul class="asta-prompt-menu" role="listbox" data-asta-prompt-menu="/" hidden>…</ul>
|
|
2504
|
+
* <form class="asta-prompt-box" hx-post="/agent">
|
|
2505
|
+
* <span class="asta-prompt-ring" aria-hidden="true"><span class="asta-prompt-spin"></span></span>
|
|
2506
|
+
* <ul class="asta-prompt-files" data-asta-prompt-files hidden></ul>
|
|
2507
|
+
* <div class="asta-prompt-field-wrap"><span class="asta-prompt-placeholder">…</span>
|
|
2508
|
+
* <div class="asta-prompt-field" role="textbox" contenteditable="true" aria-multiline="true" aria-label="Message" data-asta-prompt-field></div></div>
|
|
2509
|
+
* <input type="hidden" name="prompt" data-asta-prompt-value><input type="hidden" name="refs" data-asta-prompt-refs>
|
|
2510
|
+
* <div class="asta-prompt-bar"><label class="asta-prompt-attach">…<input type="file" name="files" multiple class="asta-sr-only" data-asta-prompt-input></label>
|
|
2511
|
+
* …model picker (asta-model-picker asta-model-picker-chip asta-model-picker-top)…
|
|
2512
|
+
* <button class="asta-prompt-send" type="submit" disabled>…</button><button class="asta-prompt-stop" type="button" data-asta-prompt-stop>Stop</button></div></form>
|
|
2513
|
+
* <p class="asta-prompt-note" data-asta-prompt-note>…</p></div>
|
|
2514
|
+
* data-running on the root (set by asta.js during an htmx request, or by you) swaps Send for Stop and starts the orbit. */
|
|
2515
|
+
.asta-prompt {
|
|
2516
|
+
@apply relative w-full;
|
|
2517
|
+
}
|
|
2518
|
+
.asta-prompt-menu {
|
|
2519
|
+
@apply absolute bottom-full left-0 z-50 mb-2 max-h-[280px] w-[320px] max-w-full overflow-y-auto overscroll-contain rounded-xl bg-paper p-1.5 [scrollbar-width:thin];
|
|
2520
|
+
@apply shadow-[0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_16px_40px_-12px_rgb(0_0_0/0.25),0_4px_10px_-6px_rgb(0_0_0/0.1)];
|
|
2521
|
+
}
|
|
2522
|
+
.asta-prompt-group {
|
|
2523
|
+
@apply px-2.5 pb-1 pt-2 font-mono text-[10.5px] uppercase tracking-wider text-mute;
|
|
2524
|
+
}
|
|
2525
|
+
.asta-prompt-option {
|
|
2526
|
+
@apply flex h-9 cursor-pointer select-none items-center gap-2.5 rounded-lg px-2.5 text-[13.5px] text-ink-2 transition-colors duration-100;
|
|
2527
|
+
@apply aria-selected:bg-paper-2 aria-selected:text-ink;
|
|
2528
|
+
& > b {
|
|
2529
|
+
@apply min-w-0 flex-1 truncate font-medium;
|
|
2530
|
+
}
|
|
2531
|
+
& > small {
|
|
2532
|
+
@apply max-w-[45%] shrink-0 truncate text-[12px] text-mute;
|
|
2533
|
+
}
|
|
2534
|
+
}
|
|
2535
|
+
.asta-prompt-option-icon {
|
|
2536
|
+
@apply grid h-5 w-5 shrink-0 place-items-center rounded-[5px] bg-paper-2 text-ink-2;
|
|
2537
|
+
& > svg {
|
|
2538
|
+
@apply h-3 w-3;
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
.asta-prompt-option-avatar {
|
|
2542
|
+
@apply grid h-5 w-5 shrink-0 place-items-center rounded-full bg-ink text-[9px] font-semibold text-paper;
|
|
2543
|
+
}
|
|
2544
|
+
.asta-prompt-option-command {
|
|
2545
|
+
@apply bg-ink text-paper;
|
|
2546
|
+
}
|
|
2547
|
+
.asta-prompt-empty {
|
|
2548
|
+
@apply px-2.5 py-5 text-center text-[12.5px] text-mute;
|
|
2549
|
+
}
|
|
2550
|
+
.asta-prompt-box {
|
|
2551
|
+
@apply relative flex flex-col rounded-[14px] bg-paper transition-shadow duration-200;
|
|
2552
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_8px_24px_-16px_rgb(0_0_0/0.18)];
|
|
2553
|
+
@apply focus-within:shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_14%,transparent)];
|
|
2554
|
+
@apply data-drag:shadow-[inset_0_0_0_1.5px_var(--brand),0_0_0_4px_color-mix(in_srgb,var(--brand)_14%,transparent)];
|
|
2555
|
+
}
|
|
2556
|
+
.asta-prompt[data-running] .asta-prompt-box {
|
|
2557
|
+
@apply focus-within:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_12%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_8px_24px_-16px_rgb(0_0_0/0.18)];
|
|
2558
|
+
}
|
|
2559
|
+
.asta-prompt-ring {
|
|
2560
|
+
@apply pointer-events-none absolute -inset-px overflow-hidden rounded-[15px] p-[1.5px] opacity-0 transition-opacity duration-500;
|
|
2561
|
+
}
|
|
2562
|
+
.asta-prompt[data-running] .asta-prompt-ring {
|
|
2563
|
+
@apply opacity-100;
|
|
2564
|
+
}
|
|
2565
|
+
.asta-prompt-spin {
|
|
2566
|
+
@apply absolute left-1/2 top-1/2 aspect-square w-[220%];
|
|
2567
|
+
background: conic-gradient(from 0deg, transparent 0 52%, color-mix(in srgb, var(--brand) 25%, transparent) 70%, var(--brand) 92%, transparent 100%);
|
|
2568
|
+
transform: translate(-50%, -50%);
|
|
2569
|
+
}
|
|
2570
|
+
.asta-prompt-files {
|
|
2571
|
+
@apply flex flex-wrap gap-1.5 px-3 pt-3;
|
|
2572
|
+
}
|
|
2573
|
+
.asta-prompt-file {
|
|
2574
|
+
@apply flex h-9 max-w-full items-center gap-2 rounded-lg bg-paper-2 pl-2 pr-1 text-[12.5px];
|
|
2575
|
+
}
|
|
2576
|
+
.asta-prompt-file-icon {
|
|
2577
|
+
@apply grid h-6 w-6 shrink-0 place-items-center rounded-md bg-paper text-ink-2;
|
|
2578
|
+
& > svg {
|
|
2579
|
+
@apply h-3.5 w-3.5;
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
.asta-prompt-file-name {
|
|
2583
|
+
@apply min-w-0 truncate font-medium text-ink sm:max-w-[180px];
|
|
2584
|
+
}
|
|
2585
|
+
.asta-prompt-file-size {
|
|
2586
|
+
@apply shrink-0 tabular-nums text-mute;
|
|
2587
|
+
}
|
|
2588
|
+
.asta-prompt-file-remove {
|
|
2589
|
+
@apply grid h-7 w-7 shrink-0 cursor-pointer place-items-center rounded-md text-mute outline-none transition-colors hover:bg-paper hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
2590
|
+
& > svg {
|
|
2591
|
+
@apply h-3 w-3;
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
.asta-prompt-field-wrap {
|
|
2595
|
+
@apply relative px-4 pt-3.5;
|
|
2596
|
+
}
|
|
2597
|
+
.asta-prompt-placeholder {
|
|
2598
|
+
@apply pointer-events-none absolute left-4 top-3.5 truncate pr-4 text-[16px] leading-relaxed text-mute sm:text-[14.5px];
|
|
2599
|
+
}
|
|
2600
|
+
.asta-prompt[data-filled] .asta-prompt-placeholder {
|
|
2601
|
+
@apply hidden;
|
|
2602
|
+
}
|
|
2603
|
+
.asta-prompt-field {
|
|
2604
|
+
@apply max-h-[200px] min-h-[52px] overflow-y-auto whitespace-pre-wrap break-words pb-2 text-[16px] leading-relaxed text-ink outline-none sm:text-[14.5px] [scrollbar-width:thin];
|
|
2605
|
+
}
|
|
2606
|
+
.asta-prompt-chip {
|
|
2607
|
+
@apply mx-px inline-flex items-center gap-1 whitespace-nowrap rounded-[5px] bg-[color-mix(in_srgb,var(--brand)_11%,transparent)] px-1.5 align-baseline text-[0.93em] font-medium leading-[1.5] text-brand;
|
|
2608
|
+
& > svg {
|
|
2609
|
+
@apply h-3 w-3 shrink-0;
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
.asta-prompt-chip-command {
|
|
2613
|
+
@apply bg-ink text-paper;
|
|
2614
|
+
}
|
|
2615
|
+
.asta-prompt-bar {
|
|
2616
|
+
@apply flex items-center gap-1 px-2 pb-2;
|
|
2617
|
+
}
|
|
2618
|
+
.asta-prompt-attach {
|
|
2619
|
+
@apply grid h-8 w-8 shrink-0 cursor-pointer place-items-center rounded-md text-ink-2 outline-none transition-colors duration-150 hover:bg-paper-2 hover:text-ink focus-within:ring-2 focus-within:ring-brand/50;
|
|
2620
|
+
& > svg {
|
|
2621
|
+
@apply h-4 w-4;
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
.asta-prompt-send {
|
|
2625
|
+
@apply ml-auto grid h-8 w-8 shrink-0 cursor-pointer place-items-center rounded-lg bg-brand text-white outline-none transition-[opacity,transform] duration-150 active:scale-95 disabled:cursor-default disabled:opacity-35;
|
|
2626
|
+
@apply focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper;
|
|
2627
|
+
& > svg {
|
|
2628
|
+
@apply h-4 w-4;
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
.asta-prompt-stop {
|
|
2632
|
+
@apply ml-auto hidden h-8 shrink-0 cursor-pointer items-center gap-1.5 rounded-lg bg-ink pl-2.5 pr-3 text-[13px] font-medium text-paper outline-none transition-transform duration-150 active:scale-95;
|
|
2633
|
+
@apply focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper;
|
|
2634
|
+
&::before {
|
|
2635
|
+
@apply h-2.5 w-2.5 rounded-[2px] bg-current content-[''];
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
.asta-prompt[data-running] .asta-prompt-send {
|
|
2639
|
+
@apply hidden;
|
|
2640
|
+
}
|
|
2641
|
+
.asta-prompt[data-running] .asta-prompt-stop {
|
|
2642
|
+
@apply flex;
|
|
2643
|
+
}
|
|
2644
|
+
.asta-prompt-note {
|
|
2645
|
+
@apply mt-2 flex min-h-[18px] items-center gap-1.5 px-1 text-[12px] text-mute;
|
|
2646
|
+
&[data-error] {
|
|
2647
|
+
@apply font-medium text-ink;
|
|
2648
|
+
}
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
/* ---- css/src/blocks.css ---- */
|
|
2652
|
+
/* Blocks: sign-in, onboarding, pricing, AI chat, checkout, properties and settings panels, team members.
|
|
2653
|
+
* Class lists mirror the React kit. Embedded controls use the core classes (asta-btn, asta-input, asta-field,
|
|
2654
|
+
* asta-select, asta-switch, asta-checkbox, asta-avatar, asta-progress). The runtime CSS keys on the data-asta-*
|
|
2655
|
+
* attributes, so keep them in the markup. Modifiers come after the base class so they win. */
|
|
2656
|
+
|
|
2657
|
+
/* ---- Sign-in ----
|
|
2658
|
+
* <div id="sign-in" data-asta-sign-in class="asta-sign-in"><form class="asta-sign-in-form" hx-post="/sign-in" hx-target="#sign-in" hx-swap="outerHTML">
|
|
2659
|
+
* <h3 class="asta-sign-in-title">Welcome back</h3> … <button type="submit" class="asta-btn asta-sign-in-submit">…</button></form></div>
|
|
2660
|
+
* A field with an error: wrap its asta-input in <div class="asta-sign-in-shake">. */
|
|
2661
|
+
.asta-sign-in {
|
|
2662
|
+
@apply relative w-full max-w-[380px] overflow-hidden rounded-xl bg-paper p-6 text-ink sm:p-7;
|
|
2663
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_1px_2px_rgb(0_0_0/0.04),0_18px_40px_-20px_rgb(0_0_0/0.25)];
|
|
2664
|
+
}
|
|
2665
|
+
.asta-sign-in-form {
|
|
2666
|
+
@apply flex flex-col;
|
|
2667
|
+
}
|
|
2668
|
+
.asta-sign-in-title {
|
|
2669
|
+
@apply text-[20px] font-medium tracking-[-0.02em] text-ink;
|
|
2670
|
+
}
|
|
2671
|
+
.asta-sign-in-subtitle {
|
|
2672
|
+
@apply mt-1 text-[14px] leading-snug text-mute;
|
|
2673
|
+
}
|
|
2674
|
+
.asta-sign-in-providers {
|
|
2675
|
+
@apply mt-6 grid gap-2;
|
|
2676
|
+
&:has(> :nth-child(2)) {
|
|
2677
|
+
@apply grid-cols-2;
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
.asta-sign-in-divider {
|
|
2681
|
+
@apply my-5 flex items-center gap-3 text-[12px] text-mute;
|
|
2682
|
+
&::before,
|
|
2683
|
+
&::after {
|
|
2684
|
+
@apply h-px flex-1 bg-[color-mix(in_srgb,var(--ink)_10%,transparent)] content-[''];
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
.asta-sign-in-spacer {
|
|
2688
|
+
@apply h-6;
|
|
2689
|
+
}
|
|
2690
|
+
.asta-sign-in-fields {
|
|
2691
|
+
@apply flex flex-col gap-3;
|
|
2692
|
+
}
|
|
2693
|
+
.asta-sign-in-shake {
|
|
2694
|
+
@apply animate-[asta-blk-shake_.42s_cubic-bezier(.16,1,.3,1)] motion-reduce:animate-none;
|
|
2695
|
+
}
|
|
2696
|
+
.asta-sign-in-options {
|
|
2697
|
+
@apply mt-3 flex items-center justify-between gap-3 text-[13px];
|
|
2698
|
+
}
|
|
2699
|
+
.asta-sign-in-link {
|
|
2700
|
+
@apply text-brand outline-none hover:underline focus-visible:underline;
|
|
2701
|
+
}
|
|
2702
|
+
.asta-sign-in-alert {
|
|
2703
|
+
@apply mt-4 rounded-lg bg-[#e5484d]/10 px-3 py-2 text-[13px] text-[#e5484d] animate-[asta-field-in_.3s_cubic-bezier(.16,1,.3,1)_both];
|
|
2704
|
+
}
|
|
2705
|
+
.asta-sign-in-submit {
|
|
2706
|
+
@apply mt-5 w-full;
|
|
2707
|
+
}
|
|
2708
|
+
.asta-sign-in-footer {
|
|
2709
|
+
@apply mt-4 text-center text-[13px] text-mute;
|
|
2710
|
+
& a {
|
|
2711
|
+
@apply font-medium text-ink outline-none hover:underline focus-visible:underline;
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
.asta-sign-in-reveal {
|
|
2715
|
+
@apply flex h-8 w-8 items-center justify-center rounded-lg text-mute outline-none transition-colors hover:bg-paper-2 hover:text-ink focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
2716
|
+
& > svg {
|
|
2717
|
+
@apply h-4 w-4;
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
.asta-sign-in-reveal-slash {
|
|
2721
|
+
@apply origin-center transition-[opacity,transform] duration-300 ease-[cubic-bezier(.16,1,.3,1)];
|
|
2722
|
+
.asta-sign-in-reveal[aria-pressed="true"] & {
|
|
2723
|
+
@apply scale-0 opacity-0;
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
.asta-sign-in-done {
|
|
2727
|
+
@apply flex min-h-[380px] flex-col items-center justify-center text-center animate-[asta-blk-pop_.5s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
2728
|
+
}
|
|
2729
|
+
.asta-sign-in-done-icon {
|
|
2730
|
+
@apply flex h-14 w-14 items-center justify-center rounded-full bg-[#30a46c] text-white;
|
|
2731
|
+
& > svg {
|
|
2732
|
+
@apply h-7 w-7 animate-[asta-blk-pop_.5s_.15s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
2733
|
+
}
|
|
2734
|
+
}
|
|
2735
|
+
.asta-sign-in-done-title {
|
|
2736
|
+
@apply mt-5 text-[20px] font-medium tracking-[-0.02em] text-ink;
|
|
2737
|
+
}
|
|
2738
|
+
.asta-sign-in-done-text {
|
|
2739
|
+
@apply mt-1.5 max-w-[26ch] text-[14px] leading-snug text-mute;
|
|
2740
|
+
& strong {
|
|
2741
|
+
@apply font-normal text-ink;
|
|
2742
|
+
}
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
/* ---- Onboarding ----
|
|
2746
|
+
* <div id="onboarding" data-asta-onboarding class="asta-onboarding"><div data-asta-onboarding-list> <div class="asta-onboarding-head">…</div>
|
|
2747
|
+
* <ol class="asta-onboarding-steps"><li data-asta-onboarding-step class="asta-onboarding-step"><button data-asta-onboarding-toggle
|
|
2748
|
+
* aria-expanded="true" aria-controls="s1" class="asta-onboarding-toggle">…</button><div id="s1" role="region" class="asta-onboarding-panel">…</div></li></ol></div></div>
|
|
2749
|
+
* A finished step adds asta-onboarding-step-done. */
|
|
2750
|
+
.asta-onboarding {
|
|
2751
|
+
@apply relative w-full max-w-[440px] overflow-hidden rounded-[14px] bg-paper text-ink;
|
|
2752
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_10%,transparent),0_18px_40px_-24px_rgb(0_0_0/0.3)];
|
|
2753
|
+
}
|
|
2754
|
+
.asta-onboarding-done {
|
|
2755
|
+
@apply flex flex-col items-center px-8 py-12 text-center animate-[asta-rise_.5s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
2756
|
+
}
|
|
2757
|
+
.asta-onboarding-done-icon {
|
|
2758
|
+
@apply flex h-12 w-12 items-center justify-center rounded-full bg-brand text-white animate-[asta-blk-pop_.6s_.1s_cubic-bezier(.16,1,.3,1)_both] motion-reduce:animate-none;
|
|
2759
|
+
& > svg {
|
|
2760
|
+
@apply h-6 w-6;
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
.asta-onboarding-done-title {
|
|
2764
|
+
@apply mt-5 text-[18px] font-medium tracking-[-0.02em] text-ink;
|
|
2765
|
+
}
|
|
2766
|
+
.asta-onboarding-done-text {
|
|
2767
|
+
@apply mt-1.5 max-w-[30ch] text-[13.5px] leading-relaxed text-mute;
|
|
2768
|
+
}
|
|
2769
|
+
.asta-onboarding-done-actions {
|
|
2770
|
+
@apply mt-6 flex gap-2;
|
|
2771
|
+
}
|
|
2772
|
+
.asta-onboarding-head {
|
|
2773
|
+
@apply px-5 pb-4 pt-5;
|
|
2774
|
+
}
|
|
2775
|
+
.asta-onboarding-heading {
|
|
2776
|
+
@apply flex items-baseline justify-between gap-4;
|
|
2777
|
+
}
|
|
2778
|
+
.asta-onboarding-title {
|
|
2779
|
+
@apply text-[15px] font-medium tracking-[-0.01em] text-ink;
|
|
2780
|
+
}
|
|
2781
|
+
.asta-onboarding-count {
|
|
2782
|
+
@apply text-[12.5px] tabular-nums text-mute;
|
|
2783
|
+
}
|
|
2784
|
+
.asta-onboarding-subtitle {
|
|
2785
|
+
@apply mt-1 text-[13px] text-mute;
|
|
2786
|
+
}
|
|
2787
|
+
.asta-onboarding-progress {
|
|
2788
|
+
@apply mt-4;
|
|
2789
|
+
}
|
|
2790
|
+
.asta-onboarding-steps {
|
|
2791
|
+
@apply px-2 pb-2;
|
|
2792
|
+
}
|
|
2793
|
+
.asta-onboarding-step {
|
|
2794
|
+
@apply rounded-[10px] transition-colors duration-300;
|
|
2795
|
+
&:has(> [aria-expanded="true"]) {
|
|
2796
|
+
@apply bg-paper-2;
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
.asta-onboarding-toggle {
|
|
2800
|
+
@apply flex w-full items-center gap-3 rounded-[10px] px-3 py-3 text-left outline-none focus-visible:ring-2 focus-visible:ring-brand/50;
|
|
2801
|
+
}
|
|
2802
|
+
.asta-onboarding-label {
|
|
2803
|
+
@apply flex-1 text-[14px] text-ink transition-colors duration-300;
|
|
2804
|
+
.asta-onboarding-step-done & {
|
|
2805
|
+
@apply text-mute;
|
|
2806
|
+
}
|
|
2807
|
+
.asta-onboarding-step-done [aria-expanded="true"] > & {
|
|
2808
|
+
@apply text-ink;
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
.asta-onboarding-duration {
|
|
2812
|
+
@apply text-[12px] tabular-nums text-mute;
|
|
2813
|
+
}
|
|
2814
|
+
.asta-onboarding-chevron {
|
|
2815
|
+
@apply h-3.5 w-3.5 shrink-0 text-mute transition-transform duration-300 ease-[cubic-bezier(.16,1,.3,1)] motion-reduce:transition-none;
|
|
2816
|
+
[aria-expanded="true"] > & {
|
|
2817
|
+
@apply rotate-180;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
.asta-onboarding-mark {
|
|
2821
|
+
@apply relative flex h-5 w-5 shrink-0 items-center justify-center;
|
|
2822
|
+
}
|
|
2823
|
+
.asta-onboarding-ring {
|
|
2824
|
+
@apply absolute inset-0 scale-100 rounded-full opacity-100 transition-[opacity,transform] duration-300 ease-[cubic-bezier(.16,1,.3,1)];
|
|
2825
|
+
@apply shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)];
|
|
2826
|
+
[aria-expanded="true"] & {
|
|
2827
|
+
@apply shadow-[inset_0_0_0_1.5px_var(--ink)];
|
|
2828
|
+
}
|
|
2829
|
+
.asta-onboarding-step-done & {
|
|
2830
|
+
@apply scale-75 opacity-0;
|
|
2831
|
+
}
|
|
2832
|
+
}
|
|
2833
|
+
.asta-onboarding-tick {
|
|
2834
|
+
@apply absolute inset-0 flex scale-50 items-center justify-center rounded-full bg-brand text-white opacity-0 transition-[opacity,transform] duration-500 ease-[cubic-bezier(.16,1,.3,1)];
|
|
2835
|
+
& > svg {
|
|
2836
|
+
@apply h-3 w-3;
|
|
2837
|
+
}
|
|
2838
|
+
.asta-onboarding-step-done & {
|
|
1503
2839
|
@apply scale-100 opacity-100;
|
|
1504
2840
|
}
|
|
1505
2841
|
}
|
|
@@ -2233,6 +3569,432 @@ details[open] > .asta-nav-sec { animation: asta-nav-rise 0.3s cubic-bezier(0.16,
|
|
|
2233
3569
|
@apply truncate text-[12px] text-mute;
|
|
2234
3570
|
}
|
|
2235
3571
|
|
|
3572
|
+
/* ---- css/src/controls.css ---- */
|
|
3573
|
+
/* Controls: scrub input and API keys. Class lists mirror the React kit. Buttons use the core asta-btn classes and the
|
|
3574
|
+
* copy button is the core asta-copy-button. The runtime CSS and asta.js key on the data-asta-* attributes, so keep them
|
|
3575
|
+
* in the markup. Modifiers come after the base class. */
|
|
3576
|
+
|
|
3577
|
+
/* ---- Scrub input ----
|
|
3578
|
+
* <div class="asta-scrub-row" role="group" aria-label="Position"><span class="asta-scrub-row-label">Position</span>
|
|
3579
|
+
* <div class="asta-scrub-cells">
|
|
3580
|
+
* <label class="asta-scrub" data-asta-scrub data-unit="px" data-min="0" data-max="560" data-step="1">
|
|
3581
|
+
* <span class="asta-scrub-handle" data-asta-scrub-handle aria-hidden="true">X</span>
|
|
3582
|
+
* <input class="asta-scrub-input" role="spinbutton" aria-label="X position" value="140" inputmode="text">
|
|
3583
|
+
* <span class="asta-scrub-unit" aria-hidden="true">px</span>
|
|
3584
|
+
* <span class="asta-scrub-limit" aria-hidden="true"></span>
|
|
3585
|
+
* <span class="asta-scrub-tip">Try 24, 1.5rem or 24*2. Esc puts it back.</span>
|
|
3586
|
+
* <input type="hidden" name="x" value="140">
|
|
3587
|
+
* </label> … </div></div>
|
|
3588
|
+
* asta.js sets data-scrubbing, data-mod="10|0.1", data-limit="min|max" and aria-invalid on the input.
|
|
3589
|
+
* Size asta-scrub-sm. Columns asta-scrub-cells-1 (default 2), -3, -4. */
|
|
3590
|
+
.asta-scrub {
|
|
3591
|
+
@apply relative flex h-9 min-w-0 items-center rounded-[7px] bg-[color-mix(in_srgb,var(--ink)_5%,transparent)] text-ink transition-[background-color,box-shadow] duration-150 sm:h-8;
|
|
3592
|
+
@apply hover:bg-[color-mix(in_srgb,var(--ink)_8%,transparent)] focus-within:bg-paper focus-within:shadow-[inset_0_0_0_1.5px_var(--brand)];
|
|
3593
|
+
@apply data-[scrubbing]:bg-paper data-[scrubbing]:shadow-[inset_0_0_0_1.5px_var(--brand)];
|
|
3594
|
+
@apply has-[:disabled]:pointer-events-none has-[:disabled]:opacity-45;
|
|
3595
|
+
@apply has-[[aria-invalid=true]]:!shadow-[inset_0_0_0_1.5px_var(--ink)];
|
|
3596
|
+
}
|
|
3597
|
+
.asta-scrub-sm {
|
|
3598
|
+
@apply h-8 sm:h-7;
|
|
3599
|
+
}
|
|
3600
|
+
.asta-scrub-handle {
|
|
3601
|
+
@apply grid h-full w-7 shrink-0 cursor-ew-resize touch-none select-none place-items-center text-[11.5px] font-medium text-mute transition-colors duration-150 hover:text-ink [&>svg]:h-3.5 [&>svg]:w-3.5;
|
|
3602
|
+
.asta-scrub-sm > & {
|
|
3603
|
+
@apply w-6;
|
|
3604
|
+
}
|
|
3605
|
+
.asta-scrub[data-scrubbing] > & {
|
|
3606
|
+
@apply text-brand;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
.asta-scrub-input {
|
|
3610
|
+
@apply h-full min-w-0 flex-1 bg-transparent pr-1 text-[16px] tabular-nums tracking-[-0.01em] outline-none sm:text-[12.5px];
|
|
3611
|
+
@apply transition-transform duration-200 ease-[cubic-bezier(.16,1,.3,1)] selection:bg-[color-mix(in_srgb,var(--brand)_22%,transparent)];
|
|
3612
|
+
.asta-scrub-sm > & {
|
|
3613
|
+
@apply sm:text-[12px];
|
|
3614
|
+
}
|
|
3615
|
+
.asta-scrub[data-limit="max"] > & {
|
|
3616
|
+
@apply translate-x-[3px];
|
|
3617
|
+
}
|
|
3618
|
+
.asta-scrub[data-limit="min"] > & {
|
|
3619
|
+
@apply -translate-x-[3px];
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
.asta-scrub-unit {
|
|
3623
|
+
@apply shrink-0 pr-2 text-[11.5px] text-mute;
|
|
3624
|
+
}
|
|
3625
|
+
/* The ×10 / ×0.1 badge; asta.js writes the text while a modifier is held. */
|
|
3626
|
+
.asta-scrub-badge {
|
|
3627
|
+
@apply mr-1.5 hidden shrink-0 rounded-[4px] bg-brand px-1 text-[10.5px] font-medium leading-4 tabular-nums text-white;
|
|
3628
|
+
}
|
|
3629
|
+
.asta-scrub[data-scrubbing][data-mod] {
|
|
3630
|
+
& > .asta-scrub-badge {
|
|
3631
|
+
@apply inline;
|
|
3632
|
+
}
|
|
3633
|
+
& > .asta-scrub-unit {
|
|
3634
|
+
@apply hidden;
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
.asta-scrub-limit {
|
|
3638
|
+
@apply pointer-events-none absolute inset-y-1.5 right-0.5 w-[2px] rounded-full bg-brand opacity-0 transition-opacity duration-500 ease-[cubic-bezier(.16,1,.3,1)];
|
|
3639
|
+
.asta-scrub[data-limit] > & {
|
|
3640
|
+
@apply opacity-100 duration-100;
|
|
3641
|
+
}
|
|
3642
|
+
.asta-scrub[data-limit="min"] > & {
|
|
3643
|
+
@apply left-0.5 right-auto;
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
.asta-scrub-tip {
|
|
3647
|
+
@apply absolute left-0 top-[calc(100%+6px)] z-10 hidden w-max max-w-[220px] rounded-[8px] bg-ink px-2.5 py-1.5 text-[12px] leading-snug text-paper shadow-[0_8px_24px_-10px_rgb(0_0_0/0.4)];
|
|
3648
|
+
.asta-scrub:has(> [aria-invalid="true"]) > & {
|
|
3649
|
+
@apply block;
|
|
3650
|
+
}
|
|
3651
|
+
.asta-scrub[data-tip-end] > & {
|
|
3652
|
+
@apply left-auto right-0;
|
|
3653
|
+
}
|
|
3654
|
+
}
|
|
3655
|
+
.asta-scrub-row {
|
|
3656
|
+
@apply grid grid-cols-[64px_1fr] items-center gap-x-3;
|
|
3657
|
+
}
|
|
3658
|
+
.asta-scrub-row-label {
|
|
3659
|
+
@apply truncate text-[12px] text-mute;
|
|
3660
|
+
}
|
|
3661
|
+
.asta-scrub-cells {
|
|
3662
|
+
@apply grid min-w-0 grid-cols-2 gap-1.5;
|
|
3663
|
+
}
|
|
3664
|
+
.asta-scrub-cells-1 {
|
|
3665
|
+
@apply grid-cols-1;
|
|
3666
|
+
}
|
|
3667
|
+
.asta-scrub-cells-3 {
|
|
3668
|
+
@apply grid-cols-3;
|
|
3669
|
+
}
|
|
3670
|
+
.asta-scrub-cells-4 {
|
|
3671
|
+
@apply grid-cols-4;
|
|
3672
|
+
}
|
|
3673
|
+
|
|
3674
|
+
/* ---- API keys ----
|
|
3675
|
+
* <section class="asta-api-keys" data-asta-keys data-undo-ms="8000">
|
|
3676
|
+
* <header class="asta-api-keys-header"><div><h3 class="asta-api-keys-title">API keys</h3><p class="asta-api-keys-desc">…</p></div>
|
|
3677
|
+
* <button class="asta-btn asta-btn-sm" data-asta-keys-create aria-expanded="false" aria-controls="ak-form">Create key</button></header>
|
|
3678
|
+
* <form class="asta-api-keys-form" id="ak-form" hidden> …name, expiry, fieldset of .asta-api-keys-scope… </form>
|
|
3679
|
+
* <div class="asta-api-keys-head" aria-hidden="true"><span>Name</span>…</div>
|
|
3680
|
+
* <ul class="asta-api-keys-list">
|
|
3681
|
+
* <li class="asta-api-keys-row" data-id="k1" data-name="Production server" data-key="ak_live_…9f2c">
|
|
3682
|
+
* <div class="asta-api-keys-grid">…cells…<button data-asta-keys-revoke aria-expanded="false">Revoke</button></div>
|
|
3683
|
+
* <div class="asta-api-keys-confirm" role="group" hidden>…[data-asta-keys-keep] [data-asta-keys-confirm]</div></li>
|
|
3684
|
+
* <li class="asta-api-keys-reveal">…secret, asta-copy-button, [data-asta-keys-dismiss]</li> </ul></section>
|
|
3685
|
+
* asta.js opens the form, checks it, asks before revoking and swaps the row for an undo strip ([data-revoked]). */
|
|
3686
|
+
.asta-api-keys {
|
|
3687
|
+
@apply @container w-full text-ink;
|
|
3688
|
+
}
|
|
3689
|
+
.asta-api-keys-header {
|
|
3690
|
+
@apply flex flex-wrap items-start justify-between gap-x-6 gap-y-3;
|
|
3691
|
+
& > div {
|
|
3692
|
+
@apply min-w-0 max-w-[520px];
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3695
|
+
.asta-api-keys-title {
|
|
3696
|
+
@apply text-[17px] font-medium tracking-[-0.02em];
|
|
3697
|
+
}
|
|
3698
|
+
.asta-api-keys-desc {
|
|
3699
|
+
@apply mt-1 text-[13px] leading-relaxed text-mute;
|
|
3700
|
+
}
|
|
3701
|
+
.asta-api-keys-form {
|
|
3702
|
+
@apply mt-5 rounded-[12px] bg-paper-2 p-4 sm:p-5;
|
|
3703
|
+
}
|
|
3704
|
+
.asta-api-keys-fields {
|
|
3705
|
+
@apply grid gap-5 @min-[640px]:grid-cols-[1fr_200px];
|
|
3706
|
+
}
|
|
3707
|
+
.asta-api-keys-field {
|
|
3708
|
+
@apply flex flex-col gap-1.5;
|
|
3709
|
+
& > label,
|
|
3710
|
+
& > legend {
|
|
3711
|
+
@apply text-[13px] font-medium;
|
|
3712
|
+
}
|
|
3713
|
+
}
|
|
3714
|
+
.asta-api-keys-control {
|
|
3715
|
+
@apply h-10 w-full rounded-lg bg-paper px-3 text-[16px] text-ink outline-none transition-shadow duration-200 placeholder:text-mute sm:text-[14px];
|
|
3716
|
+
@apply shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] hover:shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_24%,transparent)];
|
|
3717
|
+
@apply focus:!shadow-[inset_0_0_0_1px_var(--brand),0_0_0_3px_color-mix(in_srgb,var(--brand)_18%,transparent)] aria-[invalid=true]:shadow-[inset_0_0_0_1.5px_var(--ink)];
|
|
3718
|
+
}
|
|
3719
|
+
.asta-api-keys-select {
|
|
3720
|
+
@apply relative;
|
|
3721
|
+
& > select {
|
|
3722
|
+
@apply cursor-pointer appearance-none pr-9;
|
|
3723
|
+
}
|
|
3724
|
+
& > svg {
|
|
3725
|
+
@apply pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-mute;
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3728
|
+
/* Hint under a field; data-error turns it into the message, with the icon shown. */
|
|
3729
|
+
.asta-api-keys-msg {
|
|
3730
|
+
@apply flex min-h-4 items-center gap-1.5 text-[12px] text-mute;
|
|
3731
|
+
& > svg {
|
|
3732
|
+
@apply hidden h-3.5 w-3.5 shrink-0;
|
|
3733
|
+
}
|
|
3734
|
+
&[data-error] {
|
|
3735
|
+
@apply font-medium text-ink;
|
|
3736
|
+
& > svg {
|
|
3737
|
+
@apply block;
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
.asta-api-keys-scopes {
|
|
3742
|
+
@apply mt-5 min-w-0;
|
|
3743
|
+
& > legend {
|
|
3744
|
+
@apply text-[13px] font-medium;
|
|
3745
|
+
}
|
|
3746
|
+
}
|
|
3747
|
+
.asta-api-keys-scope-grid {
|
|
3748
|
+
@apply mt-2 grid gap-1 @min-[560px]:grid-cols-2;
|
|
3749
|
+
}
|
|
3750
|
+
.asta-api-keys-scope {
|
|
3751
|
+
@apply flex cursor-pointer items-start gap-3 rounded-lg p-2 transition-colors hover:bg-ink/4;
|
|
3752
|
+
}
|
|
3753
|
+
.asta-api-keys-box {
|
|
3754
|
+
@apply relative mt-px grid h-[18px] w-[18px] shrink-0 place-items-center;
|
|
3755
|
+
& > input {
|
|
3756
|
+
@apply col-start-1 row-start-1 h-[18px] w-[18px] cursor-pointer appearance-none rounded-[6px] bg-paper shadow-[inset_0_0_0_1.5px_color-mix(in_srgb,var(--ink)_22%,transparent)] outline-none transition-[background-color,box-shadow] duration-200;
|
|
3757
|
+
@apply checked:bg-brand checked:shadow-none focus-visible:ring-2 focus-visible:ring-brand/50 focus-visible:ring-offset-2 focus-visible:ring-offset-paper-2;
|
|
3758
|
+
}
|
|
3759
|
+
& > svg {
|
|
3760
|
+
@apply pointer-events-none col-start-1 row-start-1 h-3 w-3 scale-50 text-white opacity-0 transition-[opacity,transform] duration-300;
|
|
3761
|
+
}
|
|
3762
|
+
& > input:checked + svg {
|
|
3763
|
+
@apply scale-100 opacity-100;
|
|
3764
|
+
}
|
|
3765
|
+
}
|
|
3766
|
+
.asta-api-keys-scope-label {
|
|
3767
|
+
@apply block text-[13.5px] leading-[18px] text-ink;
|
|
3768
|
+
}
|
|
3769
|
+
.asta-api-keys-scope-hint {
|
|
3770
|
+
@apply mt-0.5 block text-[12px] text-mute;
|
|
3771
|
+
& > code {
|
|
3772
|
+
@apply font-mono text-[11.5px] text-ink-2;
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
.asta-api-keys-alert {
|
|
3776
|
+
@apply mt-4 flex items-center gap-2 rounded-lg bg-paper px-3 py-2 text-[13px] text-ink shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)];
|
|
3777
|
+
& > svg {
|
|
3778
|
+
@apply h-4 w-4 shrink-0;
|
|
3779
|
+
}
|
|
3780
|
+
}
|
|
3781
|
+
.asta-api-keys-actions {
|
|
3782
|
+
@apply mt-5 flex justify-end gap-2;
|
|
3783
|
+
}
|
|
3784
|
+
.asta-api-keys-body {
|
|
3785
|
+
@apply mt-6;
|
|
3786
|
+
}
|
|
3787
|
+
.asta-api-keys-head {
|
|
3788
|
+
@apply hidden gap-4 px-3 pb-2 text-[12px] text-mute @2xl:grid;
|
|
3789
|
+
@apply @2xl:grid-cols-[minmax(0,1.3fr)_120px_minmax(0,1.4fr)_minmax(0,.7fr)_minmax(0,1fr)_64px];
|
|
3790
|
+
}
|
|
3791
|
+
.asta-api-keys-list {
|
|
3792
|
+
@apply flex flex-col gap-2 @2xl:gap-0.5;
|
|
3793
|
+
}
|
|
3794
|
+
.asta-api-keys-row {
|
|
3795
|
+
@apply rounded-[12px] bg-paper-2 transition-colors duration-200 @2xl:rounded-[10px] @2xl:bg-transparent @2xl:hover:bg-paper-2/60;
|
|
3796
|
+
&:has(> .asta-api-keys-confirm:not([hidden])) {
|
|
3797
|
+
@apply @2xl:bg-paper-2;
|
|
3798
|
+
}
|
|
3799
|
+
}
|
|
3800
|
+
.asta-api-keys-grid {
|
|
3801
|
+
@apply grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 gap-y-3 p-4 @2xl:min-h-[60px] @2xl:px-3 @2xl:py-2.5;
|
|
3802
|
+
@apply @2xl:grid-cols-[minmax(0,1.3fr)_120px_minmax(0,1.4fr)_minmax(0,.7fr)_minmax(0,1fr)_64px];
|
|
3803
|
+
}
|
|
3804
|
+
.asta-api-keys-name {
|
|
3805
|
+
@apply min-w-0;
|
|
3806
|
+
& > p:first-child {
|
|
3807
|
+
@apply line-clamp-2 break-words text-[13.5px] font-medium @2xl:line-clamp-1 @2xl:truncate;
|
|
3808
|
+
}
|
|
3809
|
+
& > p + p {
|
|
3810
|
+
@apply mt-0.5 text-[12px] text-mute;
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
.asta-api-keys-menu {
|
|
3814
|
+
@apply col-start-2 row-start-1 @2xl:col-start-6 @2xl:justify-self-end;
|
|
3815
|
+
}
|
|
3816
|
+
.asta-api-keys-cell {
|
|
3817
|
+
@apply col-span-2 flex min-w-0 items-center gap-2 @2xl:col-span-1 @2xl:row-start-1;
|
|
3818
|
+
&:nth-child(3) {
|
|
3819
|
+
@apply @2xl:col-start-2;
|
|
3820
|
+
}
|
|
3821
|
+
&:nth-child(4) {
|
|
3822
|
+
@apply @2xl:col-start-3;
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
.asta-api-keys-meta {
|
|
3826
|
+
@apply flex flex-col gap-0.5 text-[12.5px] @2xl:row-start-1;
|
|
3827
|
+
&:nth-child(5) {
|
|
3828
|
+
@apply @2xl:col-start-4;
|
|
3829
|
+
}
|
|
3830
|
+
&:nth-child(6) {
|
|
3831
|
+
@apply @2xl:col-start-5;
|
|
3832
|
+
}
|
|
3833
|
+
& > span:last-child {
|
|
3834
|
+
@apply tabular-nums text-ink-2;
|
|
3835
|
+
}
|
|
3836
|
+
}
|
|
3837
|
+
.asta-api-keys-cell-label {
|
|
3838
|
+
@apply text-[11.5px] text-mute @2xl:sr-only;
|
|
3839
|
+
}
|
|
3840
|
+
.asta-api-keys-key {
|
|
3841
|
+
@apply truncate font-mono text-[12.5px] text-ink-2;
|
|
3842
|
+
}
|
|
3843
|
+
.asta-api-keys-chips {
|
|
3844
|
+
@apply flex min-w-0 flex-wrap gap-1;
|
|
3845
|
+
& > span {
|
|
3846
|
+
@apply rounded-[5px] bg-ink/6 px-1.5 text-[11.5px] leading-5 text-mute;
|
|
3847
|
+
}
|
|
3848
|
+
& > code {
|
|
3849
|
+
@apply rounded-[5px] bg-ink/6 px-1.5 font-mono text-[11.5px] leading-5 text-ink-2;
|
|
3850
|
+
}
|
|
3851
|
+
}
|
|
3852
|
+
/* Status in words. The dot is filled for active, a ring for data-expired. */
|
|
3853
|
+
.asta-api-keys-status {
|
|
3854
|
+
@apply inline-flex items-center gap-1.5 whitespace-nowrap text-ink;
|
|
3855
|
+
&::before {
|
|
3856
|
+
@apply h-2 w-2 shrink-0 rounded-full bg-brand content-[''];
|
|
3857
|
+
}
|
|
3858
|
+
&[data-expired] {
|
|
3859
|
+
@apply text-mute before:bg-transparent before:shadow-[inset_0_0_0_1.5px_currentColor];
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
.asta-api-keys-confirm {
|
|
3863
|
+
@apply flex flex-wrap items-center justify-between gap-3 px-4 pb-4 @2xl:px-3 @2xl:pb-3;
|
|
3864
|
+
& > p {
|
|
3865
|
+
@apply text-[12.5px] text-ink-2;
|
|
3866
|
+
}
|
|
3867
|
+
& > div {
|
|
3868
|
+
@apply flex gap-2;
|
|
3869
|
+
}
|
|
3870
|
+
&[hidden] {
|
|
3871
|
+
@apply hidden;
|
|
3872
|
+
}
|
|
3873
|
+
}
|
|
3874
|
+
/* A revoked row becomes the undo strip until the window ends. */
|
|
3875
|
+
.asta-api-keys-undo {
|
|
3876
|
+
@apply relative hidden min-h-[60px] items-center gap-3 overflow-hidden rounded-[10px] bg-paper-2 px-3 py-2;
|
|
3877
|
+
& > p {
|
|
3878
|
+
@apply min-w-0 flex-1 text-[13px] text-ink-2;
|
|
3879
|
+
}
|
|
3880
|
+
& > p b {
|
|
3881
|
+
@apply font-medium text-ink;
|
|
3882
|
+
}
|
|
3883
|
+
& > p span {
|
|
3884
|
+
@apply hidden text-mute @min-[480px]:inline;
|
|
3885
|
+
}
|
|
3886
|
+
& > button {
|
|
3887
|
+
@apply text-brand hover:text-brand;
|
|
3888
|
+
}
|
|
3889
|
+
}
|
|
3890
|
+
.asta-api-keys-row[data-revoked] {
|
|
3891
|
+
@apply bg-transparent @2xl:hover:bg-transparent;
|
|
3892
|
+
& > :not(.asta-api-keys-undo) {
|
|
3893
|
+
@apply hidden;
|
|
3894
|
+
}
|
|
3895
|
+
& > .asta-api-keys-undo {
|
|
3896
|
+
@apply flex;
|
|
3897
|
+
}
|
|
3898
|
+
}
|
|
3899
|
+
.asta-api-keys-countdown {
|
|
3900
|
+
@apply absolute inset-x-0 bottom-0 h-0.5 origin-left bg-brand/40;
|
|
3901
|
+
}
|
|
3902
|
+
.asta-api-keys-reveal {
|
|
3903
|
+
@apply rounded-[12px] bg-[color-mix(in_srgb,var(--brand)_6%,var(--paper))] p-4 shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--brand)_35%,transparent)] sm:p-5;
|
|
3904
|
+
&[hidden] {
|
|
3905
|
+
@apply hidden;
|
|
3906
|
+
}
|
|
3907
|
+
}
|
|
3908
|
+
.asta-api-keys-reveal-title {
|
|
3909
|
+
@apply flex flex-wrap items-center gap-2 text-[14px] font-medium;
|
|
3910
|
+
& > span:last-child {
|
|
3911
|
+
@apply rounded-[5px] bg-brand px-1.5 text-[11px] font-medium leading-5 text-white;
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
.asta-api-keys-reveal-text {
|
|
3915
|
+
@apply mt-1 text-[12.5px] text-ink-2;
|
|
3916
|
+
}
|
|
3917
|
+
.asta-api-keys-secret {
|
|
3918
|
+
@apply mt-3 flex flex-col gap-2 @min-[480px]:flex-row;
|
|
3919
|
+
& > input {
|
|
3920
|
+
@apply h-10 min-w-0 shrink-0 rounded-lg bg-paper px-3 font-mono text-[13px] text-ink outline-none shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_14%,transparent)] focus:shadow-[inset_0_0_0_1px_var(--brand)] @min-[480px]:flex-1;
|
|
3921
|
+
}
|
|
3922
|
+
& > .asta-copy-button {
|
|
3923
|
+
@apply h-10 bg-paper;
|
|
3924
|
+
}
|
|
3925
|
+
}
|
|
3926
|
+
/* The note under the secret. data-warn swaps it for the "not copied" line and the solid close button. */
|
|
3927
|
+
.asta-api-keys-note {
|
|
3928
|
+
@apply mt-3 flex flex-wrap items-center justify-between gap-3;
|
|
3929
|
+
& > p {
|
|
3930
|
+
@apply flex items-center gap-1.5 text-[12.5px] font-medium text-ink;
|
|
3931
|
+
}
|
|
3932
|
+
& > p > svg {
|
|
3933
|
+
@apply h-3.5 w-3.5 shrink-0;
|
|
3934
|
+
}
|
|
3935
|
+
& [data-when="warn"] {
|
|
3936
|
+
@apply hidden;
|
|
3937
|
+
}
|
|
3938
|
+
&[data-warn] [data-when="warn"] {
|
|
3939
|
+
@apply inline;
|
|
3940
|
+
}
|
|
3941
|
+
&[data-warn] [data-when="calm"] {
|
|
3942
|
+
@apply hidden;
|
|
3943
|
+
}
|
|
3944
|
+
&[data-warn] > .asta-btn {
|
|
3945
|
+
@apply bg-ink text-paper hover:bg-[color-mix(in_srgb,var(--ink)_84%,var(--paper))] hover:text-paper;
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3948
|
+
.asta-api-keys-empty {
|
|
3949
|
+
@apply flex flex-col items-center rounded-[12px] bg-paper-2 px-6 py-12 text-center;
|
|
3950
|
+
& > span {
|
|
3951
|
+
@apply grid h-11 w-11 place-items-center rounded-full bg-paper text-mute shadow-[inset_0_0_0_1px_color-mix(in_srgb,var(--ink)_8%,transparent)] [&>svg]:h-5 [&>svg]:w-5;
|
|
3952
|
+
}
|
|
3953
|
+
& > p:first-of-type {
|
|
3954
|
+
@apply mt-4 text-[14px] font-medium;
|
|
3955
|
+
}
|
|
3956
|
+
& > p + p {
|
|
3957
|
+
@apply mt-1 max-w-[300px] text-[12.5px] text-mute;
|
|
3958
|
+
}
|
|
3959
|
+
& > button {
|
|
3960
|
+
@apply mt-5;
|
|
3961
|
+
}
|
|
3962
|
+
/* Shown only while the list has no rows and the form is closed. */
|
|
3963
|
+
.asta-api-keys:has(.asta-api-keys-list > li) &,
|
|
3964
|
+
.asta-api-keys:has(.asta-api-keys-form:not([hidden])) & {
|
|
3965
|
+
@apply hidden;
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
.asta-api-keys:not(:has(.asta-api-keys-list > li)) .asta-api-keys-head {
|
|
3969
|
+
@apply hidden;
|
|
3970
|
+
}
|
|
3971
|
+
.asta-api-keys-skeleton {
|
|
3972
|
+
@apply grid h-[76px] grid-cols-[1fr_auto] items-center gap-4 rounded-[12px] bg-paper-2 px-4 @2xl:h-[60px] @2xl:bg-transparent @2xl:px-3;
|
|
3973
|
+
@apply @2xl:grid-cols-[minmax(0,1.3fr)_120px_minmax(0,1.4fr)_minmax(0,.7fr)_minmax(0,1fr)_64px];
|
|
3974
|
+
& > span {
|
|
3975
|
+
@apply hidden h-3 rounded-full bg-ink/8 @2xl:block;
|
|
3976
|
+
}
|
|
3977
|
+
& > span:first-child,
|
|
3978
|
+
& > span:last-child {
|
|
3979
|
+
@apply block;
|
|
3980
|
+
}
|
|
3981
|
+
& > span:last-child {
|
|
3982
|
+
@apply w-16 justify-self-end;
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
.asta-api-keys-error {
|
|
3986
|
+
@apply flex flex-col items-center rounded-[12px] bg-paper-2 px-6 py-10 text-center [&>svg]:h-5 [&>svg]:w-5;
|
|
3987
|
+
& > p:first-of-type {
|
|
3988
|
+
@apply mt-3 text-[14px] font-medium;
|
|
3989
|
+
}
|
|
3990
|
+
& > p + p {
|
|
3991
|
+
@apply mt-1 text-[12.5px] text-mute;
|
|
3992
|
+
}
|
|
3993
|
+
& > button {
|
|
3994
|
+
@apply mt-4;
|
|
3995
|
+
}
|
|
3996
|
+
}
|
|
3997
|
+
|
|
2236
3998
|
/* ---- css/src/data.css ---- */
|
|
2237
3999
|
/* Data: data table, tree view, timeline, kanban, event calendar, file card, image compare, carousel, notification
|
|
2238
4000
|
* center, comments, motion button. Class lists mirror the React kit.
|