@tangle-network/sandbox-ui 0.6.1 → 0.8.4
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/dist/auth.d.ts +10 -6
- package/dist/auth.js +3 -3
- package/dist/{chat-container-Cg-GwyiK.d.ts → chat-container-f4yEs6KN.d.ts} +9 -1
- package/dist/chat.d.ts +12 -2
- package/dist/chat.js +10 -10
- package/dist/{chunk-TSE423UF.js → chunk-2QZ6G7NM.js} +6 -6
- package/dist/{chunk-WBQ7VULC.js → chunk-34A66VBG.js} +7 -7
- package/dist/{chunk-JP725R4W.js → chunk-34I7UFSX.js} +2 -2
- package/dist/{chunk-YS66Q3RC.js → chunk-3CJ2SOEI.js} +2 -2
- package/dist/{chunk-CNWVHQFY.js → chunk-54SQQMMM.js} +6 -24
- package/dist/{chunk-DLCFZDGX.js → chunk-5UM2XMEJ.js} +39 -14
- package/dist/{chunk-YYGECNZZ.js → chunk-66EZOYZR.js} +3 -3
- package/dist/chunk-7U2Z23NE.js +49 -0
- package/dist/{chunk-RKXIRRKQ.js → chunk-BUOQTBTO.js} +70 -66
- package/dist/{chunk-DCPYTL4W.js → chunk-D4CZWJCD.js} +72 -148
- package/dist/{chunk-MXRQ4MJE.js → chunk-DXMIEK4K.js} +34 -23
- package/dist/{chunk-ZMWWE5RF.js → chunk-EXSOPXIY.js} +141 -123
- package/dist/{chunk-GW4GRAWJ.js → chunk-GSZA3TSY.js} +18 -12
- package/dist/{chunk-W4LM3QYZ.js → chunk-HB5Y37YU.js} +8 -8
- package/dist/{chunk-E2XT3G52.js → chunk-HFMAXUHV.js} +136 -137
- package/dist/{chunk-BRBTD7RH.js → chunk-MA7YKRUP.js} +28 -18
- package/dist/{chunk-MJUDMVRU.js → chunk-MT5FJ3ZT.js} +17 -17
- package/dist/chunk-OKLQVY3Y.js +139 -0
- package/dist/{chunk-KH5UDAJ2.js → chunk-QDH5GEGY.js} +58 -54
- package/dist/{chunk-33W2TLUL.js → chunk-QID2OOMG.js} +12 -3
- package/dist/{chunk-FJSVPBKY.js → chunk-S7OXQTST.js} +17 -3
- package/dist/chunk-T7HMZEVO.js +216 -0
- package/dist/{chunk-FNYJFCGU.js → chunk-U6QTHMY6.js} +145 -256
- package/dist/{chunk-565V6JTN.js → chunk-UXQMIR3D.js} +60 -99
- package/dist/{chunk-XTPAWK7L.js → chunk-VOUV7GGB.js} +25 -47
- package/dist/{chunk-OVNLOE3Y.js → chunk-WXK43R62.js} +41 -41
- package/dist/{chunk-6V4XVKFY.js → chunk-XXDFEF72.js} +340 -335
- package/dist/{chunk-TDYQBLL5.js → chunk-ZMNSRDMH.js} +6 -6
- package/dist/dashboard.d.ts +135 -3
- package/dist/dashboard.js +848 -8
- package/dist/{document-editor-pane-DWWUTTTZ.js → document-editor-pane-TLPVRBBU.js} +3 -3
- package/dist/editor.d.ts +9 -8
- package/dist/editor.js +3 -3
- package/dist/files.js +3 -3
- package/dist/globals.css +5304 -68
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +7 -7
- package/dist/index.d.ts +4 -4
- package/dist/index.js +28 -28
- package/dist/markdown.js +1 -1
- package/dist/openui.js +5 -5
- package/dist/pages.d.ts +47 -3
- package/dist/pages.js +911 -357
- package/dist/primitives.d.ts +5 -2
- package/dist/primitives.js +10 -10
- package/dist/run.js +4 -4
- package/dist/sdk-hooks.d.ts +2 -3
- package/dist/sdk-hooks.js +5 -5
- package/dist/styles.css +5304 -68
- package/dist/template-card-BAtvcAkU.d.ts +18 -0
- package/dist/terminal.d.ts +3 -1
- package/dist/terminal.js +66 -32
- package/dist/tokens.css +701 -40
- package/dist/{usage-chart-XCoB_7Xu.d.ts → usage-chart-SSiOgeQI.d.ts} +3 -1
- package/dist/{use-pty-session-COzVkhtc.d.ts → use-pty-session-0AOuwXgq.d.ts} +2 -0
- package/dist/{index-BT_-ecpc.d.ts → variant-list-C8wx2TqF.d.ts} +17 -8
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.js +13 -13
- package/package.json +3 -1
- package/tailwind.config.cjs +3 -2
- package/dist/chunk-3HW53XTH.js +0 -228
- package/dist/chunk-OKCIKTXQ.js +0 -63
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Progress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-66EZOYZR.js";
|
|
4
4
|
import {
|
|
5
5
|
Badge,
|
|
6
6
|
Card,
|
|
7
7
|
CardContent,
|
|
8
8
|
CardDescription,
|
|
9
|
-
CardFooter,
|
|
10
9
|
CardHeader,
|
|
11
10
|
CardTitle
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZMNSRDMH.js";
|
|
13
12
|
import {
|
|
14
13
|
Button
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2QZ6G7NM.js";
|
|
16
15
|
import {
|
|
17
16
|
cn
|
|
18
17
|
} from "./chunk-RQHJBTEU.js";
|
|
@@ -253,44 +252,10 @@ function BillingDashboard({
|
|
|
253
252
|
}
|
|
254
253
|
|
|
255
254
|
// src/dashboard/pricing-page.tsx
|
|
255
|
+
import { Check, Zap } from "lucide-react";
|
|
256
256
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
257
|
-
var variantColors2 = {
|
|
258
|
-
sandbox: {
|
|
259
|
-
accent: "text-[var(--accent-text)]",
|
|
260
|
-
border: "border-[var(--border-accent)]",
|
|
261
|
-
bg: "bg-[var(--accent-surface-soft)]",
|
|
262
|
-
ring: "ring-[hsl(var(--primary)/0.35)]"
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
257
|
function formatPrice(cents) {
|
|
266
|
-
return (cents / 100)
|
|
267
|
-
style: "currency",
|
|
268
|
-
currency: "USD",
|
|
269
|
-
minimumFractionDigits: 0,
|
|
270
|
-
maximumFractionDigits: 0
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
function CheckIcon({ className }) {
|
|
274
|
-
return /* @__PURE__ */ jsxs2(
|
|
275
|
-
"svg",
|
|
276
|
-
{
|
|
277
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
278
|
-
viewBox: "0 0 20 20",
|
|
279
|
-
fill: "currentColor",
|
|
280
|
-
className: cn("h-5 w-5", className),
|
|
281
|
-
children: [
|
|
282
|
-
/* @__PURE__ */ jsx2("title", { children: "Check icon" }),
|
|
283
|
-
/* @__PURE__ */ jsx2(
|
|
284
|
-
"path",
|
|
285
|
-
{
|
|
286
|
-
fillRule: "evenodd",
|
|
287
|
-
d: "M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",
|
|
288
|
-
clipRule: "evenodd"
|
|
289
|
-
}
|
|
290
|
-
)
|
|
291
|
-
]
|
|
292
|
-
}
|
|
293
|
-
);
|
|
258
|
+
return `$${Math.round(cents / 100)}`;
|
|
294
259
|
}
|
|
295
260
|
function PricingPage({
|
|
296
261
|
tiers,
|
|
@@ -298,22 +263,23 @@ function PricingPage({
|
|
|
298
263
|
billingPeriod,
|
|
299
264
|
onBillingPeriodChange,
|
|
300
265
|
onSelectTier,
|
|
301
|
-
variant = "sandbox",
|
|
302
266
|
loading = false,
|
|
303
|
-
className
|
|
304
|
-
cardClassName
|
|
267
|
+
className
|
|
305
268
|
}) {
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
|
|
269
|
+
const tiersWithRecommended = tiers.map((tier, i) => ({
|
|
270
|
+
...tier,
|
|
271
|
+
recommended: tier.recommended ?? (tiers.length === 3 && i === 1)
|
|
272
|
+
}));
|
|
273
|
+
return /* @__PURE__ */ jsxs2("div", { className: cn("w-full space-y-10", className), children: [
|
|
274
|
+
/* @__PURE__ */ jsx2("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxs2("div", { className: "inline-flex items-center rounded-full border border-border bg-muted/50 p-1", children: [
|
|
309
275
|
/* @__PURE__ */ jsx2(
|
|
310
276
|
"button",
|
|
311
277
|
{
|
|
312
278
|
type: "button",
|
|
313
279
|
onClick: () => onBillingPeriodChange("monthly"),
|
|
314
280
|
className: cn(
|
|
315
|
-
"rounded-
|
|
316
|
-
billingPeriod === "monthly" ?
|
|
281
|
+
"rounded-full px-5 py-2 text-sm font-medium transition-all",
|
|
282
|
+
billingPeriod === "monthly" ? "bg-card text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
317
283
|
),
|
|
318
284
|
children: "Monthly"
|
|
319
285
|
}
|
|
@@ -324,77 +290,72 @@ function PricingPage({
|
|
|
324
290
|
type: "button",
|
|
325
291
|
onClick: () => onBillingPeriodChange("yearly"),
|
|
326
292
|
className: cn(
|
|
327
|
-
"rounded-
|
|
328
|
-
billingPeriod === "yearly" ?
|
|
293
|
+
"rounded-full px-5 py-2 text-sm font-medium transition-all",
|
|
294
|
+
billingPeriod === "yearly" ? "bg-card text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
329
295
|
),
|
|
330
296
|
children: [
|
|
331
297
|
"Yearly",
|
|
332
|
-
/* @__PURE__ */ jsx2("span", { className:
|
|
298
|
+
/* @__PURE__ */ jsx2("span", { className: "ml-2 rounded-full bg-[var(--surface-success-bg)] px-2 py-0.5 text-[10px] font-bold text-[var(--surface-success-text)]", children: "Save 20%" })
|
|
333
299
|
]
|
|
334
300
|
}
|
|
335
301
|
)
|
|
336
|
-
] }),
|
|
337
|
-
/* @__PURE__ */ jsx2("div", { className: "grid grid-cols-1 gap-6
|
|
302
|
+
] }) }),
|
|
303
|
+
/* @__PURE__ */ jsx2("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-3 items-start", children: tiersWithRecommended.map((tier) => {
|
|
338
304
|
const isCurrentTier = tier.id === currentTierId;
|
|
305
|
+
const isRecommended = tier.recommended;
|
|
306
|
+
const isFree = tier.monthlyPriceCents === 0;
|
|
339
307
|
const price = billingPeriod === "yearly" && tier.yearlyPriceCents !== void 0 ? tier.yearlyPriceCents : tier.monthlyPriceCents;
|
|
340
308
|
const displayPrice = billingPeriod === "yearly" ? Math.round(price / 12) : price;
|
|
341
309
|
return /* @__PURE__ */ jsxs2(
|
|
342
|
-
|
|
310
|
+
"div",
|
|
343
311
|
{
|
|
344
|
-
variant,
|
|
345
312
|
className: cn(
|
|
346
|
-
"relative flex flex-col",
|
|
347
|
-
|
|
348
|
-
tier.recommended && cn(colors2.border, "border-2 ring-2", colors2.ring),
|
|
349
|
-
isCurrentTier && "ring-2 ring-offset-2 ring-offset-background",
|
|
350
|
-
isCurrentTier && colors2.ring
|
|
313
|
+
"relative flex flex-col rounded-2xl border transition-all",
|
|
314
|
+
isRecommended ? "border-primary shadow-[var(--shadow-glow)] scale-[1.02] z-10" : "border-border hover:border-primary/30"
|
|
351
315
|
),
|
|
352
316
|
children: [
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
-
|
|
363
|
-
|
|
317
|
+
isRecommended && /* @__PURE__ */ jsx2("div", { className: "absolute -top-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ jsxs2("span", { className: "inline-flex items-center gap-1.5 rounded-full bg-primary px-4 py-1.5 text-xs font-bold text-primary-foreground shadow-sm", children: [
|
|
318
|
+
/* @__PURE__ */ jsx2(Zap, { className: "h-3 w-3" }),
|
|
319
|
+
"Most Popular"
|
|
320
|
+
] }) }),
|
|
321
|
+
isCurrentTier && !isRecommended && /* @__PURE__ */ jsx2("div", { className: "absolute -top-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ jsx2("span", { className: "inline-flex items-center rounded-full bg-muted border border-border px-4 py-1.5 text-xs font-bold text-foreground", children: "Current Plan" }) }),
|
|
322
|
+
/* @__PURE__ */ jsxs2("div", { className: cn("flex flex-col p-8", isRecommended && "pt-10"), children: [
|
|
323
|
+
/* @__PURE__ */ jsxs2("div", { className: "mb-6", children: [
|
|
324
|
+
/* @__PURE__ */ jsx2("h3", { className: "text-lg font-bold text-foreground", children: tier.name }),
|
|
325
|
+
/* @__PURE__ */ jsx2("p", { className: "mt-1 text-sm text-muted-foreground", children: tier.description })
|
|
326
|
+
] }),
|
|
327
|
+
/* @__PURE__ */ jsxs2("div", { className: "mb-8", children: [
|
|
328
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-baseline gap-1", children: [
|
|
329
|
+
/* @__PURE__ */ jsx2("span", { className: cn("text-5xl font-extrabold tracking-tight", isRecommended ? "text-primary" : "text-foreground"), children: isFree ? "Free" : formatPrice(displayPrice) }),
|
|
330
|
+
!isFree && /* @__PURE__ */ jsx2("span", { className: "text-muted-foreground text-sm font-medium", children: "/mo" })
|
|
364
331
|
] }),
|
|
365
|
-
billingPeriod === "yearly" && tier.yearlyPriceCents !== void 0 && /* @__PURE__ */ jsxs2("p", { className: "mt-1 text-muted-foreground
|
|
332
|
+
billingPeriod === "yearly" && tier.yearlyPriceCents !== void 0 && !isFree && /* @__PURE__ */ jsxs2("p", { className: "mt-1 text-xs text-muted-foreground", children: [
|
|
366
333
|
formatPrice(tier.yearlyPriceCents),
|
|
367
334
|
" billed annually"
|
|
368
335
|
] })
|
|
369
336
|
] }),
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
337
|
+
/* @__PURE__ */ jsx2(
|
|
338
|
+
"button",
|
|
339
|
+
{
|
|
340
|
+
type: "button",
|
|
341
|
+
onClick: () => onSelectTier(tier.id),
|
|
342
|
+
disabled: isCurrentTier || loading,
|
|
343
|
+
className: cn(
|
|
344
|
+
"w-full rounded-xl py-3 text-sm font-bold transition-all active:scale-[0.98] disabled:opacity-50",
|
|
345
|
+
isRecommended ? "bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm" : isCurrentTier ? "bg-muted text-muted-foreground border border-border cursor-default" : "bg-card text-foreground border border-border hover:border-primary/50 hover:bg-muted"
|
|
346
|
+
),
|
|
347
|
+
children: isCurrentTier ? "Current Plan" : isFree ? "Get Started" : "Subscribe"
|
|
348
|
+
}
|
|
349
|
+
),
|
|
350
|
+
/* @__PURE__ */ jsx2("div", { className: "my-8 border-t border-border" }),
|
|
351
|
+
/* @__PURE__ */ jsx2("ul", { className: "space-y-3.5 flex-1", children: tier.features.map((feature) => /* @__PURE__ */ jsxs2("li", { className: "flex items-start gap-3", children: [
|
|
352
|
+
/* @__PURE__ */ jsx2("div", { className: cn(
|
|
353
|
+
"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full",
|
|
354
|
+
isRecommended ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
|
|
355
|
+
), children: /* @__PURE__ */ jsx2(Check, { className: "h-3 w-3" }) }),
|
|
356
|
+
/* @__PURE__ */ jsx2("span", { className: "text-sm text-foreground/80", children: feature })
|
|
385
357
|
] }, feature)) })
|
|
386
|
-
] })
|
|
387
|
-
/* @__PURE__ */ jsx2(CardFooter, { children: /* @__PURE__ */ jsx2(
|
|
388
|
-
Button,
|
|
389
|
-
{
|
|
390
|
-
variant: isCurrentTier ? "outline" : variant,
|
|
391
|
-
className: "w-full",
|
|
392
|
-
disabled: isCurrentTier || loading,
|
|
393
|
-
loading,
|
|
394
|
-
onClick: () => onSelectTier(tier.id),
|
|
395
|
-
children: isCurrentTier ? "Current Plan" : currentTierId ? "Upgrade" : "Subscribe"
|
|
396
|
-
}
|
|
397
|
-
) })
|
|
358
|
+
] })
|
|
398
359
|
]
|
|
399
360
|
},
|
|
400
361
|
tier.id
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
DropdownMenuLabel,
|
|
9
9
|
DropdownMenuSeparator,
|
|
10
10
|
DropdownMenuTrigger
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-34A66VBG.js";
|
|
12
12
|
import {
|
|
13
13
|
Button
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2QZ6G7NM.js";
|
|
15
15
|
import {
|
|
16
16
|
cn
|
|
17
17
|
} from "./chunk-RQHJBTEU.js";
|
|
@@ -165,57 +165,35 @@ function AuthHeader({
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
// src/auth/login-layout.tsx
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
168
|
+
import { Terminal } from "lucide-react";
|
|
169
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
170
170
|
function LoginLayout({
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
terminalLines = [
|
|
175
|
-
"Initializing secure environment...",
|
|
176
|
-
"DONE Encrypted bridge established.",
|
|
177
|
-
"Awaiting user authentication..."
|
|
178
|
-
],
|
|
179
|
-
footerLinks = [
|
|
180
|
-
{ label: "Documentation", href: "/docs" },
|
|
181
|
-
{ label: "Support", href: "/support" }
|
|
182
|
-
],
|
|
171
|
+
title = "Welcome Back",
|
|
172
|
+
subtitle = "Sign in to your workspace.",
|
|
173
|
+
brandIcon,
|
|
183
174
|
children,
|
|
184
175
|
className
|
|
185
176
|
}) {
|
|
186
|
-
return /* @__PURE__ */ jsxs2("div", { className: cn("
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[var(--brand-cool)]", children: "Agents" }),
|
|
199
|
-
" in Flow."
|
|
200
|
-
] }),
|
|
201
|
-
/* @__PURE__ */ jsx2("p", { className: "text-[var(--text-muted)] text-lg leading-relaxed font-light", children: subtitle }),
|
|
202
|
-
/* @__PURE__ */ jsxs2("div", { className: "mt-12 bg-[var(--depth-2)] rounded-xl border border-[var(--border-subtle)] overflow-hidden", children: [
|
|
203
|
-
/* @__PURE__ */ jsx2("div", { className: "bg-[var(--depth-1)] border-b border-[var(--border-subtle)] px-4 py-2 flex items-center gap-2", children: /* @__PURE__ */ jsx2("span", { className: "font-mono text-xs text-[var(--text-muted)]", children: "tangle --init-node" }) }),
|
|
204
|
-
/* @__PURE__ */ jsx2("div", { className: "p-6 font-mono text-xs space-y-2", children: terminalLines.map((line, i) => /* @__PURE__ */ jsxs2("div", { className: "flex gap-4", children: [
|
|
205
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[var(--brand-cool)] opacity-60", children: String(i + 1).padStart(2, "0") }),
|
|
206
|
-
line.startsWith("DONE") ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
207
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[var(--code-success)]", children: "DONE" }),
|
|
208
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[var(--text-primary)]", children: line.replace("DONE ", "") })
|
|
209
|
-
] }) : /* @__PURE__ */ jsx2("span", { className: "text-[var(--text-secondary)]", children: line })
|
|
210
|
-
] }, i)) })
|
|
211
|
-
] })
|
|
177
|
+
return /* @__PURE__ */ jsxs2("div", { className: cn("relative flex min-h-screen items-center justify-center bg-[var(--md3-background)] overflow-hidden antialiased font-sans flex-col", className), children: [
|
|
178
|
+
/* @__PURE__ */ jsxs2("div", { className: "pointer-events-none absolute inset-0 z-0 overflow-hidden", children: [
|
|
179
|
+
/* @__PURE__ */ jsx2("div", { className: "absolute top-1/4 -right-1/4 h-[800px] w-[800px] rounded-full bg-[var(--md3-primary)] opacity-10 blur-[150px] mix-blend-screen" }),
|
|
180
|
+
/* @__PURE__ */ jsx2("div", { className: "absolute -bottom-1/4 -left-1/4 h-[800px] w-[800px] rounded-full bg-[var(--md3-primary-dim)] opacity-20 blur-[150px] mix-blend-screen" }),
|
|
181
|
+
/* @__PURE__ */ jsx2("div", { className: "absolute left-1/2 top-1/2 h-[600px] w-[600px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[radial-gradient(circle_at_center,rgba(255,255,255,0.03)_0%,transparent_100%)] blur-[50px]" }),
|
|
182
|
+
/* @__PURE__ */ jsx2("div", { className: "absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTIwIDB2MjBIMFYweiIgZmlsbD0ibm9uZSIvPPHBhdGggZD0iTTE5LjUgMEwxOS41IDIwTTIwIC41TDAgLjVIMjAiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgyNTUsIDI1NSLCAyNTUsIDAuMDMpIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=')] opacity-30", style: { maskImage: "radial-gradient(circle at center, black, transparent)", WebkitMaskImage: "radial-gradient(circle at center, black 40%, transparent 100%)" } })
|
|
183
|
+
] }),
|
|
184
|
+
/* @__PURE__ */ jsxs2("div", { className: "z-10 w-full max-w-md px-6 animate-in flex flex-col items-center", children: [
|
|
185
|
+
/* @__PURE__ */ jsxs2("div", { className: "mb-10 text-center flex flex-col items-center", children: [
|
|
186
|
+
/* @__PURE__ */ jsxs2("div", { className: "inline-flex h-16 w-16 mb-4 items-center justify-center rounded-2xl glass-panel shadow-[0_0_30px_rgba(173,163,255,0.15)] glow-primary relative", children: [
|
|
187
|
+
/* @__PURE__ */ jsx2("div", { className: "absolute inset-0 bg-[radial-gradient(circle_at_center,rgba(255,255,255,0.1)_0,transparent_100%)] pointer-events-none rounded-2xl" }),
|
|
188
|
+
brandIcon || /* @__PURE__ */ jsx2(Terminal, { className: "h-8 w-8 text-[var(--md3-primary)]" })
|
|
212
189
|
] }),
|
|
213
|
-
/* @__PURE__ */ jsx2("
|
|
214
|
-
|
|
215
|
-
link.label
|
|
216
|
-
] }, link.href)) })
|
|
190
|
+
/* @__PURE__ */ jsx2("h1", { className: "text-3xl font-bold tracking-tight text-foreground", children: title }),
|
|
191
|
+
/* @__PURE__ */ jsx2("p", { className: "mt-2 text-[var(--md3-on-surface-variant)]", children: subtitle })
|
|
217
192
|
] }),
|
|
218
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ jsxs2("div", { className: "w-full glass-panel-heavy p-8 border border-border shadow-sm relative overflow-hidden backdrop-blur-3xl rounded-[32px]", children: [
|
|
194
|
+
/* @__PURE__ */ jsx2("div", { className: "absolute inset-x-0 top-0 h-[1px] bg-gradient-to-r from-transparent via-[var(--md3-primary)] to-transparent opacity-50" }),
|
|
195
|
+
children
|
|
196
|
+
] })
|
|
219
197
|
] })
|
|
220
198
|
] });
|
|
221
199
|
}
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
TableHead,
|
|
6
6
|
TableHeader,
|
|
7
7
|
TableRow
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-34I7UFSX.js";
|
|
9
9
|
import {
|
|
10
10
|
CodeBlock,
|
|
11
11
|
Markdown
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-T7HMZEVO.js";
|
|
13
13
|
import {
|
|
14
14
|
Badge,
|
|
15
15
|
Card,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
CardDescription,
|
|
18
18
|
CardHeader,
|
|
19
19
|
CardTitle
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZMNSRDMH.js";
|
|
21
21
|
import {
|
|
22
22
|
Button
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2QZ6G7NM.js";
|
|
24
24
|
import {
|
|
25
25
|
cn
|
|
26
26
|
} from "./chunk-RQHJBTEU.js";
|
|
@@ -32,7 +32,7 @@ function InlineCode({ className, children, ...props }) {
|
|
|
32
32
|
"code",
|
|
33
33
|
{
|
|
34
34
|
className: cn(
|
|
35
|
-
"rounded border border-
|
|
35
|
+
"rounded border border-border bg-card px-1.5 py-0.5 font-mono text-[0.85em] text-[var(--code-keyword)]",
|
|
36
36
|
className
|
|
37
37
|
),
|
|
38
38
|
...props,
|
|
@@ -64,7 +64,7 @@ var ALIGN_STYLES = {
|
|
|
64
64
|
};
|
|
65
65
|
function formatValue(value) {
|
|
66
66
|
if (value === null || value === void 0) {
|
|
67
|
-
return /* @__PURE__ */ jsx2("span", { className: "text-
|
|
67
|
+
return /* @__PURE__ */ jsx2("span", { className: "text-muted-foreground", children: "\u2014" });
|
|
68
68
|
}
|
|
69
69
|
if (typeof value === "boolean") {
|
|
70
70
|
return value ? "Yes" : "No";
|
|
@@ -95,12 +95,12 @@ function renderNode(node, onAction) {
|
|
|
95
95
|
const level = node.level ?? 2;
|
|
96
96
|
const HeadingTag = `h${level}`;
|
|
97
97
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
98
|
-
node.kicker && /* @__PURE__ */ jsx2("div", { className: "text-[10px] font-semibold uppercase tracking-[0.16em] text-
|
|
98
|
+
node.kicker && /* @__PURE__ */ jsx2("div", { className: "text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground", children: node.kicker }),
|
|
99
99
|
/* @__PURE__ */ jsx2(
|
|
100
100
|
HeadingTag,
|
|
101
101
|
{
|
|
102
102
|
className: cn(
|
|
103
|
-
"font-semibold tracking-tight text-
|
|
103
|
+
"font-semibold tracking-tight text-foreground",
|
|
104
104
|
level === 1 && "text-2xl",
|
|
105
105
|
level === 2 && "text-xl",
|
|
106
106
|
level === 3 && "text-lg",
|
|
@@ -109,7 +109,7 @@ function renderNode(node, onAction) {
|
|
|
109
109
|
children: node.text
|
|
110
110
|
}
|
|
111
111
|
),
|
|
112
|
-
node.meta && /* @__PURE__ */ jsx2("p", { className: "text-sm text-
|
|
112
|
+
node.meta && /* @__PURE__ */ jsx2("p", { className: "text-sm text-muted-foreground", children: node.meta })
|
|
113
113
|
] });
|
|
114
114
|
}
|
|
115
115
|
case "text":
|
|
@@ -117,12 +117,12 @@ function renderNode(node, onAction) {
|
|
|
117
117
|
"p",
|
|
118
118
|
{
|
|
119
119
|
className: cn(
|
|
120
|
-
"text-sm leading-6 text-
|
|
121
|
-
node.tone === "muted" && "text-
|
|
120
|
+
"text-sm leading-6 text-foreground",
|
|
121
|
+
node.tone === "muted" && "text-muted-foreground",
|
|
122
122
|
node.tone === "success" && "text-[var(--surface-success-text)]",
|
|
123
123
|
node.tone === "warning" && "text-[var(--surface-warning-text)]",
|
|
124
124
|
node.tone === "error" && "text-[var(--surface-danger-text)]",
|
|
125
|
-
node.mono && "font-
|
|
125
|
+
node.mono && "font-mono text-[13px]"
|
|
126
126
|
),
|
|
127
127
|
children: node.text
|
|
128
128
|
}
|
|
@@ -130,9 +130,9 @@ function renderNode(node, onAction) {
|
|
|
130
130
|
case "badge":
|
|
131
131
|
return /* @__PURE__ */ jsx2(Badge, { variant: node.tone ?? "outline", children: node.label });
|
|
132
132
|
case "stat":
|
|
133
|
-
return /* @__PURE__ */ jsx2(Card, { variant: "glass", className: "border-
|
|
134
|
-
/* @__PURE__ */ jsx2("div", { className: "text-xs uppercase tracking-[0.12em] text-
|
|
135
|
-
/* @__PURE__ */ jsx2("div", { className: "text-2xl font-semibold tracking-tight text-
|
|
133
|
+
return /* @__PURE__ */ jsx2(Card, { variant: "glass", className: "border-border shadow-[var(--shadow-card)]", children: /* @__PURE__ */ jsxs(CardContent, { className: "space-y-2 p-4", children: [
|
|
134
|
+
/* @__PURE__ */ jsx2("div", { className: "text-xs uppercase tracking-[0.12em] text-muted-foreground", children: node.label }),
|
|
135
|
+
/* @__PURE__ */ jsx2("div", { className: "text-2xl font-semibold tracking-tight text-foreground", children: node.value }),
|
|
136
136
|
node.change && /* @__PURE__ */ jsx2(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
@@ -142,7 +142,7 @@ function renderNode(node, onAction) {
|
|
|
142
142
|
node.tone === "warning" && "text-[var(--surface-warning-text)]",
|
|
143
143
|
node.tone === "error" && "text-[var(--surface-danger-text)]",
|
|
144
144
|
node.tone === "info" && "text-[var(--surface-info-text)]",
|
|
145
|
-
!node.tone || node.tone === "default" ? "text-
|
|
145
|
+
!node.tone || node.tone === "default" ? "text-muted-foreground" : void 0
|
|
146
146
|
),
|
|
147
147
|
children: node.change
|
|
148
148
|
}
|
|
@@ -152,15 +152,15 @@ function renderNode(node, onAction) {
|
|
|
152
152
|
return /* @__PURE__ */ jsx2("dl", { className: "grid gap-3 sm:grid-cols-2", children: node.items.map((item, index) => /* @__PURE__ */ jsxs(
|
|
153
153
|
"div",
|
|
154
154
|
{
|
|
155
|
-
className: "rounded-[var(--radius-lg)] border border-
|
|
155
|
+
className: "rounded-[var(--radius-lg)] border border-border bg-card px-4 py-3",
|
|
156
156
|
children: [
|
|
157
|
-
/* @__PURE__ */ jsx2("dt", { className: "text-[11px] uppercase tracking-[0.12em] text-
|
|
157
|
+
/* @__PURE__ */ jsx2("dt", { className: "text-[11px] uppercase tracking-[0.12em] text-muted-foreground", children: item.label }),
|
|
158
158
|
/* @__PURE__ */ jsx2(
|
|
159
159
|
"dd",
|
|
160
160
|
{
|
|
161
161
|
className: cn(
|
|
162
|
-
"mt-1 text-sm font-medium text-
|
|
163
|
-
item.tone === "muted" && "text-
|
|
162
|
+
"mt-1 text-sm font-medium text-foreground",
|
|
163
|
+
item.tone === "muted" && "text-foreground"
|
|
164
164
|
),
|
|
165
165
|
children: formatValue(item.value)
|
|
166
166
|
}
|
|
@@ -171,38 +171,38 @@ function renderNode(node, onAction) {
|
|
|
171
171
|
)) });
|
|
172
172
|
case "code":
|
|
173
173
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
174
|
-
node.title && /* @__PURE__ */ jsx2("div", { className: "text-xs uppercase tracking-[0.12em] text-
|
|
174
|
+
node.title && /* @__PURE__ */ jsx2("div", { className: "text-xs uppercase tracking-[0.12em] text-muted-foreground", children: node.title }),
|
|
175
175
|
/* @__PURE__ */ jsx2(
|
|
176
176
|
CodeBlock,
|
|
177
177
|
{
|
|
178
178
|
code: node.code,
|
|
179
179
|
language: node.language,
|
|
180
180
|
showLineNumbers: node.showLineNumbers,
|
|
181
|
-
className: "border-
|
|
181
|
+
className: "border-border bg-background"
|
|
182
182
|
}
|
|
183
183
|
)
|
|
184
184
|
] });
|
|
185
185
|
case "markdown":
|
|
186
|
-
return /* @__PURE__ */ jsx2("div", { className: "rounded-[var(--radius-lg)] border border-
|
|
186
|
+
return /* @__PURE__ */ jsx2("div", { className: "rounded-[var(--radius-lg)] border border-border bg-card p-5", children: /* @__PURE__ */ jsx2(Markdown, { className: "prose-sm max-w-none", children: node.content }) });
|
|
187
187
|
case "table":
|
|
188
|
-
return /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-[var(--radius-lg)] border border-
|
|
188
|
+
return /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-[var(--radius-lg)] border border-border bg-card", children: [
|
|
189
189
|
/* @__PURE__ */ jsxs(Table, { children: [
|
|
190
|
-
/* @__PURE__ */ jsx2(TableHeader, { children: /* @__PURE__ */ jsx2(TableRow, { className: "border-
|
|
190
|
+
/* @__PURE__ */ jsx2(TableHeader, { children: /* @__PURE__ */ jsx2(TableRow, { className: "border-border", children: node.columns.map((column) => /* @__PURE__ */ jsx2(
|
|
191
191
|
TableHead,
|
|
192
192
|
{
|
|
193
193
|
className: cn(
|
|
194
|
-
"h-10 text-[11px] uppercase tracking-[0.1em] text-
|
|
194
|
+
"h-10 text-[11px] uppercase tracking-[0.1em] text-muted-foreground",
|
|
195
195
|
column.align === "right" && "text-right"
|
|
196
196
|
),
|
|
197
197
|
children: column.header
|
|
198
198
|
},
|
|
199
199
|
column.key
|
|
200
200
|
)) }) }),
|
|
201
|
-
/* @__PURE__ */ jsx2(TableBody, { children: node.rows.map((row, rowIndex) => /* @__PURE__ */ jsx2(TableRow, { className: "border-
|
|
201
|
+
/* @__PURE__ */ jsx2(TableBody, { children: node.rows.map((row, rowIndex) => /* @__PURE__ */ jsx2(TableRow, { className: "border-border", children: node.columns.map((column) => /* @__PURE__ */ jsx2(
|
|
202
202
|
TableCell,
|
|
203
203
|
{
|
|
204
204
|
className: cn(
|
|
205
|
-
"py-3 text-sm text-
|
|
205
|
+
"py-3 text-sm text-foreground",
|
|
206
206
|
column.align === "right" && "text-right tabular-nums"
|
|
207
207
|
),
|
|
208
208
|
children: formatValue(row[column.key])
|
|
@@ -210,15 +210,15 @@ function renderNode(node, onAction) {
|
|
|
210
210
|
column.key
|
|
211
211
|
)) }, rowIndex)) })
|
|
212
212
|
] }),
|
|
213
|
-
node.caption && /* @__PURE__ */ jsx2("div", { className: "border-t border-
|
|
213
|
+
node.caption && /* @__PURE__ */ jsx2("div", { className: "border-t border-border px-4 py-2 text-xs text-muted-foreground", children: node.caption })
|
|
214
214
|
] });
|
|
215
215
|
case "actions":
|
|
216
216
|
return renderActions(node.actions, onAction);
|
|
217
217
|
case "separator":
|
|
218
218
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
219
|
-
/* @__PURE__ */ jsx2("div", { className: "h-px flex-1 bg-
|
|
220
|
-
node.label && /* @__PURE__ */ jsx2("span", { className: "text-[10px] uppercase tracking-[0.14em] text-
|
|
221
|
-
/* @__PURE__ */ jsx2("div", { className: "h-px flex-1 bg-
|
|
219
|
+
/* @__PURE__ */ jsx2("div", { className: "h-px flex-1 bg-border" }),
|
|
220
|
+
node.label && /* @__PURE__ */ jsx2("span", { className: "text-[10px] uppercase tracking-[0.14em] text-muted-foreground", children: node.label }),
|
|
221
|
+
/* @__PURE__ */ jsx2("div", { className: "h-px flex-1 bg-border" })
|
|
222
222
|
] });
|
|
223
223
|
case "stack":
|
|
224
224
|
return /* @__PURE__ */ jsx2(
|
|
@@ -237,13 +237,13 @@ function renderNode(node, onAction) {
|
|
|
237
237
|
case "grid":
|
|
238
238
|
return /* @__PURE__ */ jsx2("div", { className: cn("grid", GRID_STYLES[node.columns ?? 2], GAP_STYLES[node.gap ?? "md"]), children: node.children.map((child, index) => /* @__PURE__ */ jsx2(Fragment, { children: renderNode(child, onAction) }, child.id ?? `${child.type}-${index}`)) });
|
|
239
239
|
case "card":
|
|
240
|
-
return /* @__PURE__ */ jsxs(Card, { variant: "glass", className: "border-
|
|
240
|
+
return /* @__PURE__ */ jsxs(Card, { variant: "glass", className: "border-border shadow-[var(--shadow-card)]", children: [
|
|
241
241
|
(node.eyebrow || node.title || node.description || node.badge || node.actions) && /* @__PURE__ */ jsxs(CardHeader, { className: "gap-2 p-4 pb-0", children: [
|
|
242
242
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
243
243
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 space-y-1", children: [
|
|
244
|
-
node.eyebrow && /* @__PURE__ */ jsx2("div", { className: "text-[10px] font-semibold uppercase tracking-[0.16em] text-
|
|
245
|
-
node.title && /* @__PURE__ */ jsx2(CardTitle, { className: "text-base text-
|
|
246
|
-
node.description && /* @__PURE__ */ jsx2(CardDescription, { className: "text-
|
|
244
|
+
node.eyebrow && /* @__PURE__ */ jsx2("div", { className: "text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground", children: node.eyebrow }),
|
|
245
|
+
node.title && /* @__PURE__ */ jsx2(CardTitle, { className: "text-base text-foreground", children: node.title }),
|
|
246
|
+
node.description && /* @__PURE__ */ jsx2(CardDescription, { className: "text-muted-foreground", children: node.description })
|
|
247
247
|
] }),
|
|
248
248
|
node.badge && /* @__PURE__ */ jsx2(Badge, { variant: node.badge.tone ?? "outline", children: node.badge.label })
|
|
249
249
|
] }),
|
|
@@ -264,20 +264,20 @@ function OpenUIArtifactRenderer({
|
|
|
264
264
|
"div",
|
|
265
265
|
{
|
|
266
266
|
className: cn(
|
|
267
|
-
"flex h-full min-h-[16rem] items-center justify-center rounded-[var(--radius-xl)] border border-dashed border-
|
|
267
|
+
"flex h-full min-h-[16rem] items-center justify-center rounded-[var(--radius-xl)] border border-dashed border-border bg-card p-6 text-center",
|
|
268
268
|
className
|
|
269
269
|
),
|
|
270
270
|
children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
271
|
-
/* @__PURE__ */ jsx2("div", { className: "mx-auto flex h-10 w-10 items-center justify-center rounded-full bg-
|
|
272
|
-
/* @__PURE__ */ jsx2("div", { className: "text-sm font-medium text-
|
|
273
|
-
/* @__PURE__ */ jsx2("div", { className: "text-sm text-
|
|
271
|
+
/* @__PURE__ */ jsx2("div", { className: "mx-auto flex h-10 w-10 items-center justify-center rounded-full bg-muted/50 text-muted-foreground", children: /* @__PURE__ */ jsx2(Minus, { className: "h-4 w-4" }) }),
|
|
272
|
+
/* @__PURE__ */ jsx2("div", { className: "text-sm font-medium text-foreground", children: "No structured artifact payload" }),
|
|
273
|
+
/* @__PURE__ */ jsx2("div", { className: "text-sm text-muted-foreground", children: "Pass an OpenUI-like schema to render dynamic result panels with sandbox-ui primitives." })
|
|
274
274
|
] })
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
277
|
}
|
|
278
278
|
return /* @__PURE__ */ jsxs("div", { className: cn("space-y-4 p-4", className), children: [
|
|
279
279
|
nodes.map((node, index) => /* @__PURE__ */ jsx2(Fragment, { children: renderNode(node, onAction) }, node.id ?? `${node.type}-${index}`)),
|
|
280
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 rounded-[var(--radius-lg)] border border-
|
|
280
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 rounded-[var(--radius-lg)] border border-border bg-card px-3 py-2 text-xs text-muted-foreground", children: [
|
|
281
281
|
/* @__PURE__ */ jsx2(ArrowRight, { className: "h-3.5 w-3.5" }),
|
|
282
282
|
"Structured artifact rendered through sandbox-ui primitives"
|
|
283
283
|
] })
|