nexi-agent 0.2.0 → 0.3.0

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/demo.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  Markdown,
18
18
  ThinkingState,
19
19
  ValuePill
20
- } from "./chunk-LAE5NL7J.js";
20
+ } from "./chunk-5VCFUEOF.js";
21
21
 
22
22
  // src/demo/AgentScreen.ts
23
23
  var agentScreenDemo = {
@@ -2183,6 +2183,486 @@ var worldMapDemo = {
2183
2183
  { from: city2.sg, to: city2.tk }
2184
2184
  ]
2185
2185
  };
2186
+
2187
+ // src/demo/CircularText.tsx
2188
+ import { jsx as jsx70 } from "react/jsx-runtime";
2189
+ var circularTextDemo = {
2190
+ text: "agents at work",
2191
+ children: /* @__PURE__ */ jsx70("svg", { viewBox: "0 0 24 24", className: "h-7 w-7", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsx70("path", { d: "M12 5v14M6 13l6 6 6-6" }) })
2192
+ };
2193
+
2194
+ // src/demo/GlitchText.ts
2195
+ var glitchTextDemo = {
2196
+ children: "SIGNAL LOST",
2197
+ trigger: "burst",
2198
+ every: 3,
2199
+ className: "font-mono text-[40px] font-bold tracking-tight text-ink md:text-[60px]"
2200
+ };
2201
+ var glitchImageDemo = {
2202
+ src: artImage(4, 800, 600),
2203
+ alt: "Abstract artwork that glitches on hover",
2204
+ className: "max-w-sm"
2205
+ };
2206
+
2207
+ // src/demo/HoverRevealList.ts
2208
+ var hoverRevealListDemo = {
2209
+ items: [
2210
+ { title: "Research", image: artImage(0, 640, 480), href: "#research", meta: "12 runs" },
2211
+ { title: "Inbox", image: artImage(1, 640, 480), href: "#inbox", meta: "48 runs" },
2212
+ { title: "Finance", image: artImage(2, 640, 480), href: "#finance", meta: "7 runs" },
2213
+ { title: "Engineering", image: artImage(3, 640, 480), href: "#engineering", meta: "23 runs" },
2214
+ { title: "Support", image: artImage(4, 640, 480), href: "#support", meta: "61 runs" }
2215
+ ]
2216
+ };
2217
+
2218
+ // src/demo/ImageDistortHover.ts
2219
+ var imageDistortHoverDemo = {
2220
+ image: artImage(2, 640, 800),
2221
+ hoverImage: artImage(5, 640, 800),
2222
+ alt: "Abstract artwork that changes on hover",
2223
+ className: "max-w-xs"
2224
+ };
2225
+
2226
+ // src/demo/ImageTrail.tsx
2227
+ import { jsx as jsx71 } from "react/jsx-runtime";
2228
+ var imageTrailDemo = {
2229
+ images: Array.from({ length: 10 }, (_, i) => artImage(i, 480, 600)),
2230
+ children: /* @__PURE__ */ jsx71("p", { className: "text-[34px] font-bold tracking-tight text-ink md:text-[52px]", children: "Move to explore" })
2231
+ };
2232
+
2233
+ // src/demo/LinkHover.ts
2234
+ var linkHoverDemo = {
2235
+ href: "#docs",
2236
+ variant: "sweep",
2237
+ children: "Read the docs",
2238
+ className: "text-[18px]"
2239
+ };
2240
+
2241
+ // src/demo/MagneticCursor.tsx
2242
+ import { Fragment as Fragment18, jsx as jsx72, jsxs as jsxs60 } from "react/jsx-runtime";
2243
+ var magneticCursorDemo = {
2244
+ className: "flex min-h-[240px] w-full flex-col items-center justify-center gap-6 rounded-window bg-[var(--canvas)] p-8",
2245
+ children: /* @__PURE__ */ jsxs60(Fragment18, { children: [
2246
+ /* @__PURE__ */ jsx72("p", { className: "text-[13.5px] text-ink-2", children: "Move over the controls below." }),
2247
+ /* @__PURE__ */ jsxs60("div", { className: "flex flex-wrap items-center justify-center gap-4", children: [
2248
+ /* @__PURE__ */ jsx72("button", { type: "button", className: "rounded-full bg-[var(--ink)] px-5 py-2.5 text-[13.5px] font-semibold text-[var(--page)]", children: "Start a run" }),
2249
+ /* @__PURE__ */ jsx72("a", { href: "#history", className: "px-2 py-1 text-[13.5px] font-medium text-ink", children: "Run history" }),
2250
+ /* @__PURE__ */ jsx72("button", { type: "button", className: "rounded-control bg-[var(--surface)] px-4 py-2.5 text-[13.5px] font-medium text-ink shadow-btn", children: "Settings" })
2251
+ ] })
2252
+ ] })
2253
+ };
2254
+
2255
+ // src/demo/ParticleText.ts
2256
+ var particleTextDemo = {
2257
+ text: "AGENTS",
2258
+ height: 220,
2259
+ colors: ["#6366f1", "#8b5cf6", "#ec4899", "#0ea5e9"]
2260
+ };
2261
+
2262
+ // src/demo/RollingText.ts
2263
+ var rollingTextDemo = {
2264
+ text: "Open the workspace",
2265
+ className: "text-[30px] font-semibold tracking-tight text-ink"
2266
+ };
2267
+
2268
+ // src/demo/ScrollTypography.ts
2269
+ var scrollTypographyDemo = {
2270
+ text: "ORCHESTRATE",
2271
+ variant: "flip",
2272
+ className: "text-[44px] font-black tracking-tight text-ink md:text-[96px]"
2273
+ };
2274
+
2275
+ // src/demo/SplitTextReveal.ts
2276
+ var splitTextRevealDemo = {
2277
+ as: "h2",
2278
+ text: "Hand it the busywork. Keep the decisions.",
2279
+ className: "max-w-2xl text-center text-[34px] leading-[1.1] font-bold tracking-tight text-ink md:text-[52px]"
2280
+ };
2281
+
2282
+ // src/demo/DraggableGrid.ts
2283
+ var draggableGridDemo = {
2284
+ images: Array.from({ length: 12 }, (_, i) => artImage(i, 400, 500))
2285
+ };
2286
+
2287
+ // src/demo/ExpandingPanels.ts
2288
+ var expandingPanelsDemo = {
2289
+ panels: [
2290
+ { image: artImage(0, 1e3, 900), title: "Research", description: "Reads widely, cites precisely." },
2291
+ { image: artImage(1, 1e3, 900), title: "Inbox", description: "Sorts and drafts; you send." },
2292
+ { image: artImage(2, 1e3, 900), title: "Finance", description: "Every invoice matched to a payment." },
2293
+ { image: artImage(3, 1e3, 900), title: "Engineering", description: "Pull requests with tests attached." },
2294
+ { image: artImage(4, 1e3, 900), title: "Support", description: "First replies in under a minute." }
2295
+ ]
2296
+ };
2297
+
2298
+ // src/demo/HorizontalScroll.tsx
2299
+ import { jsx as jsx73, jsxs as jsxs61 } from "react/jsx-runtime";
2300
+ var steps2 = ["Brief", "Research", "Outline", "Draft", "Review", "Ship"];
2301
+ var horizontalScrollDemo = {
2302
+ viewHeight: "80vh",
2303
+ trackClassName: "px-6",
2304
+ children: steps2.map((title, i) => /* @__PURE__ */ jsxs61("figure", { className: "relative h-[52vh] w-[78vw] max-w-[380px] shrink-0 overflow-hidden rounded-window shadow-card", children: [
2305
+ /* @__PURE__ */ jsx73("img", { src: artImage(i, 760, 960), alt: "", className: "absolute inset-0 h-full w-full object-cover" }),
2306
+ /* @__PURE__ */ jsxs61("figcaption", { className: "absolute inset-x-0 bottom-0 bg-[linear-gradient(to_top,rgba(0,0,0,0.6),transparent)] p-5 text-white", children: [
2307
+ /* @__PURE__ */ jsxs61("span", { className: "font-mono text-[12px] text-white/70", children: [
2308
+ "0",
2309
+ i + 1
2310
+ ] }),
2311
+ /* @__PURE__ */ jsx73("p", { className: "text-[22px] font-bold tracking-tight", children: title })
2312
+ ] })
2313
+ ] }, title))
2314
+ };
2315
+
2316
+ // src/demo/MarqueeMenu.ts
2317
+ var marqueeMenuDemo = {
2318
+ items: [
2319
+ { label: "Agents", href: "#agents", image: artImage(0, 240, 120) },
2320
+ { label: "Runs", href: "#runs", image: artImage(2, 240, 120) },
2321
+ { label: "Tools", href: "#tools", image: artImage(4, 240, 120) },
2322
+ { label: "Docs", href: "#docs", image: artImage(5, 240, 120) }
2323
+ ]
2324
+ };
2325
+
2326
+ // src/demo/MorphingBlob.tsx
2327
+ import { Fragment as Fragment19, jsx as jsx74, jsxs as jsxs62 } from "react/jsx-runtime";
2328
+ var morphingBlobDemo = {
2329
+ children: /* @__PURE__ */ jsxs62(Fragment19, { children: [
2330
+ /* @__PURE__ */ jsx74("p", { className: "text-[28px] font-bold tracking-tight text-white", children: "Always on" }),
2331
+ /* @__PURE__ */ jsx74("p", { className: "text-[13px] text-white/75", children: "Agents working while you rest" })
2332
+ ] })
2333
+ };
2334
+
2335
+ // src/demo/PreloaderCounter.ts
2336
+ var preloaderCounterDemo = {
2337
+ fixed: false,
2338
+ labels: { loading: "Waking the agents" }
2339
+ };
2340
+
2341
+ // src/demo/ScrollZoomImage.tsx
2342
+ import { jsx as jsx75 } from "react/jsx-runtime";
2343
+ var scrollZoomImageDemo = {
2344
+ src: artImage(3, 1600, 1e3),
2345
+ alt: "Abstract artwork that fills the screen as you scroll",
2346
+ viewHeight: "80vh",
2347
+ children: /* @__PURE__ */ jsx75("p", { className: "max-w-xl text-[30px] leading-tight font-bold tracking-tight md:text-[48px]", children: "The whole picture, when you need it" })
2348
+ };
2349
+
2350
+ // src/demo/StackedScrollCards.ts
2351
+ var stackedScrollCardsDemo = {
2352
+ cards: [
2353
+ { title: "Plan", body: "The agent breaks your request into steps and shows you the plan before it starts.", image: artImage(0, 800, 840), color: "#eef0ff", textColor: "#1e1b4b" },
2354
+ { title: "Gather", body: "It reads the files, inboxes and dashboards it has been given access to, and nothing else.", image: artImage(1, 800, 840), color: "#e8f7ef", textColor: "#052e16" },
2355
+ { title: "Draft", body: "Work comes back as a draft with every source linked, ready for you to check.", image: artImage(2, 800, 840), color: "#fff1e6", textColor: "#431407" },
2356
+ { title: "Approve", body: "Nothing is sent, paid or merged until a person says yes.", image: artImage(5, 800, 840), color: "#fde8f1", textColor: "#500724" }
2357
+ ]
2358
+ };
2359
+
2360
+ // src/demo/TileReveal.ts
2361
+ var tileRevealDemo = {
2362
+ src: artImage(5, 1200, 900),
2363
+ alt: "Abstract pink artwork",
2364
+ mode: "pixel",
2365
+ className: "max-w-lg"
2366
+ };
2367
+
2368
+ // src/demo/TransitionOverlay.ts
2369
+ var transitionOverlayDemo = {
2370
+ trigger: 0,
2371
+ variant: "columns",
2372
+ fixed: false
2373
+ };
2374
+
2375
+ // src/demo/BurstIcon.ts
2376
+ var burstIconDemo = {
2377
+ icon: "heart",
2378
+ label: "Like this answer",
2379
+ count: 128
2380
+ };
2381
+
2382
+ // src/demo/CaptionHover.ts
2383
+ var captionHoverDemo = {
2384
+ image: artImage(1, 640, 800),
2385
+ title: "Inbox agent",
2386
+ description: "Sorts, drafts and flags. You still press send.",
2387
+ variant: "slide",
2388
+ className: "max-w-[280px]"
2389
+ };
2390
+
2391
+ // src/demo/GooeyStickyMenu.ts
2392
+ var gooeyStickyMenuDemo = {
2393
+ items: [
2394
+ { label: "Overview", href: "#overview" },
2395
+ { label: "Agents", href: "#agents" },
2396
+ { label: "Pricing", href: "#pricing" },
2397
+ { label: "FAQ", href: "#faq" }
2398
+ ],
2399
+ sticky: false
2400
+ };
2401
+
2402
+ // src/demo/OffCanvasMenu.tsx
2403
+ import { jsx as jsx76, jsxs as jsxs63 } from "react/jsx-runtime";
2404
+ var offCanvasMenuDemo = {
2405
+ className: "h-[380px] w-full rounded-window bg-[var(--canvas)]",
2406
+ menu: /* @__PURE__ */ jsxs63("nav", { className: "flex flex-col gap-1", children: [
2407
+ /* @__PURE__ */ jsx76("p", { className: "mb-3 text-[11px] font-semibold tracking-[0.18em] text-ink-3 uppercase", children: "Workspace" }),
2408
+ ["Agents", "Runs", "Tools", "Approvals", "Settings"].map((label) => /* @__PURE__ */ jsx76("a", { href: `#${label.toLowerCase()}`, className: "rounded-control px-2 py-2 text-[15px] font-medium text-ink hover:bg-[var(--inset)]", children: label }, label))
2409
+ ] }),
2410
+ children: /* @__PURE__ */ jsxs63("div", { className: "flex h-[380px] flex-col justify-center gap-2 p-8", children: [
2411
+ /* @__PURE__ */ jsx76("p", { className: "text-[24px] font-bold tracking-tight text-ink", children: "Today" }),
2412
+ /* @__PURE__ */ jsx76("p", { className: "max-w-sm text-[13.5px] text-ink-2", children: "Three runs finished overnight and one is waiting for your approval." })
2413
+ ] })
2414
+ };
2415
+
2416
+ // src/demo/PageTransition.tsx
2417
+ import { jsx as jsx77, jsxs as jsxs64 } from "react/jsx-runtime";
2418
+ var pageTransitionDemo = {
2419
+ viewKey: "inbox",
2420
+ effect: "cube",
2421
+ className: "w-full rounded-window",
2422
+ children: /* @__PURE__ */ jsxs64("div", { className: "flex h-[260px] flex-col justify-center gap-2 bg-[#eef0ff] p-8 text-[#1e1b4b]", children: [
2423
+ /* @__PURE__ */ jsx77("p", { className: "text-[28px] font-bold tracking-tight", children: "Inbox" }),
2424
+ /* @__PURE__ */ jsx77("p", { className: "text-[13.5px] opacity-75", children: "Twelve threads sorted, four drafts ready for review." })
2425
+ ] })
2426
+ };
2427
+
2428
+ // src/demo/ParticleButton.ts
2429
+ var particleButtonDemo = {
2430
+ children: "Discard draft"
2431
+ };
2432
+
2433
+ // src/demo/RainGlass.ts
2434
+ var rainGlassDemo = {
2435
+ src: artImage(4, 1200, 800),
2436
+ alt: "Abstract blue artwork behind a rainy window",
2437
+ height: 380
2438
+ };
2439
+
2440
+ // src/demo/ScrollGrid.ts
2441
+ var scrollGridDemo = {
2442
+ images: Array.from({ length: 12 }, (_, i) => artImage(i, 480, 600)),
2443
+ variant: "tilt"
2444
+ };
2445
+
2446
+ // src/demo/ScrollLayoutSwitch.ts
2447
+ var names2 = ["Research", "Inbox", "Finance", "Engineering", "Support", "Ops", "Sales", "Legal"];
2448
+ var scrollLayoutSwitchDemo = {
2449
+ items: names2.map((title, i) => ({ title, image: artImage(i, 480, 600) })),
2450
+ viewHeight: "80vh"
2451
+ };
2452
+
2453
+ // src/demo/SeamTransition.tsx
2454
+ import { jsx as jsx78, jsxs as jsxs65 } from "react/jsx-runtime";
2455
+ var seamTransitionDemo = {
2456
+ heroHeight: "80vh",
2457
+ hero: /* @__PURE__ */ jsxs65("div", { className: "relative flex h-full items-center justify-center", children: [
2458
+ /* @__PURE__ */ jsx78("img", { src: artImage(3, 1600, 1e3), alt: "", className: "absolute inset-0 h-full w-full object-cover" }),
2459
+ /* @__PURE__ */ jsx78("p", { className: "relative max-w-2xl px-6 text-center text-[36px] leading-tight font-bold tracking-tight text-white md:text-[56px]", children: "Work that keeps going after you log off" })
2460
+ ] }),
2461
+ contentClassName: "px-6 py-16 md:px-12",
2462
+ children: /* @__PURE__ */ jsxs65("div", { className: "mx-auto grid max-w-3xl gap-6", children: [
2463
+ /* @__PURE__ */ jsx78("p", { className: "text-[24px] font-bold tracking-tight text-ink", children: "How a run works" }),
2464
+ ["You describe the outcome.", "The agent plans and gathers.", "It drafts, with sources.", "You approve, or ask for changes."].map((step, i) => /* @__PURE__ */ jsxs65("p", { className: "text-[15px] text-ink-2", children: [
2465
+ /* @__PURE__ */ jsxs65("span", { className: "mr-3 font-mono text-ink-3", children: [
2466
+ "0",
2467
+ i + 1
2468
+ ] }),
2469
+ step
2470
+ ] }, step))
2471
+ ] })
2472
+ };
2473
+
2474
+ // src/demo/DrawPath.ts
2475
+ var drawPathDemo = {
2476
+ viewBox: "0 0 120 90",
2477
+ label: "A chat bubble with a spark",
2478
+ paths: [
2479
+ "M20 18 H80 A10 10 0 0 1 90 28 V52 A10 10 0 0 1 80 62 H46 L34 72 V62 H20 A10 10 0 0 1 10 52 V28 A10 10 0 0 1 20 18 Z",
2480
+ "M26 34 H74",
2481
+ "M26 46 H58",
2482
+ "M104 8 L107 16 L115 19 L107 22 L104 30 L101 22 L93 19 L101 16 Z"
2483
+ ],
2484
+ strokeWidth: 2,
2485
+ duration: 1100,
2486
+ stagger: -300,
2487
+ className: "max-w-sm"
2488
+ };
2489
+
2490
+ // src/demo/FlipGrid.ts
2491
+ var rows2 = [
2492
+ ["Market scan", ["Research"]],
2493
+ ["Vendor compare", ["Research", "Finance"]],
2494
+ ["Invoice match", ["Finance"]],
2495
+ ["Payroll check", ["Finance", "Ops"]],
2496
+ ["On-call digest", ["Ops"]],
2497
+ ["Release notes", ["Ops", "Research"]],
2498
+ ["Churn review", ["Research"]],
2499
+ ["Spend alerts", ["Finance"]],
2500
+ ["Access audit", ["Ops"]]
2501
+ ];
2502
+ var flipGridDemo = {
2503
+ items: rows2.map(([title, tags], i) => ({ id: `card-${i}`, title, tags, image: artImage(i, 480, 360), meta: tags[0] }))
2504
+ };
2505
+
2506
+ // src/demo/GravityTags.ts
2507
+ var gravityTagsDemo = {
2508
+ tags: ["Search", "Calendar", "Email", "CRM", "Spreadsheets", "Slack", "Drive", "Billing", "Tickets", "Code review", "Docs", "Analytics", "Contracts", "Payroll"]
2509
+ };
2510
+
2511
+ // src/demo/InertiaSlider.tsx
2512
+ import { jsx as jsx79, jsxs as jsxs66 } from "react/jsx-runtime";
2513
+ var names3 = ["Research", "Inbox", "Finance", "Engineering", "Support", "Ops"];
2514
+ var inertiaSliderDemo = {
2515
+ slideWidth: 260,
2516
+ children: names3.map((name, i) => /* @__PURE__ */ jsxs66("figure", { className: "m-0 overflow-hidden rounded-window bg-[var(--surface)] shadow-card", children: [
2517
+ /* @__PURE__ */ jsx79("img", { src: artImage(i, 520, 620), alt: "", draggable: false, className: "aspect-[26/31] w-full object-cover" }),
2518
+ /* @__PURE__ */ jsxs66("figcaption", { className: "p-3 text-[13.5px] font-semibold text-ink", children: [
2519
+ name,
2520
+ " agent"
2521
+ ] })
2522
+ ] }, name))
2523
+ };
2524
+
2525
+ // src/demo/MotionPath.ts
2526
+ var motionPathDemo = {
2527
+ path: "M10 150 C 80 20, 160 20, 200 100 S 320 180, 390 50",
2528
+ viewBox: "0 0 400 200"
2529
+ };
2530
+
2531
+ // src/demo/ScrollToTop.ts
2532
+ var scrollToTopDemo = {
2533
+ threshold: 0,
2534
+ fixed: false
2535
+ };
2536
+
2537
+ // src/demo/ShapeMorph.ts
2538
+ var shapeMorphDemo = {
2539
+ label: "A shape that morphs between a circle, a square, a star and a heart",
2540
+ shapes: [
2541
+ "M50 10 A40 40 0 1 1 49.99 10 Z",
2542
+ "M22 12 H78 Q88 12 88 22 V78 Q88 88 78 88 H22 Q12 88 12 78 V22 Q12 12 22 12 Z",
2543
+ "M50 8 L61 38 L93 38 L67 57 L77 89 L50 70 L23 89 L33 57 L7 38 L39 38 Z",
2544
+ "M50 86 C20 64 8 48 8 32 C8 18 19 9 31 9 C40 9 46 14 50 21 C54 14 60 9 69 9 C81 9 92 18 92 32 C92 48 80 64 50 86 Z"
2545
+ ],
2546
+ colors: ["#6366f1", "#0ea5e9", "#f59e0b", "#ec4899"],
2547
+ className: "max-w-[220px]"
2548
+ };
2549
+
2550
+ // src/demo/SmoothScroll.tsx
2551
+ import { jsx as jsx80, jsxs as jsxs67 } from "react/jsx-runtime";
2552
+ var smoothScrollDemo = {
2553
+ height: 420,
2554
+ className: "rounded-window bg-[var(--canvas)]",
2555
+ children: /* @__PURE__ */ jsxs67("div", { className: "flex flex-col gap-24 px-8 py-16", children: [
2556
+ /* @__PURE__ */ jsx80("p", { className: "text-[32px] leading-tight font-bold tracking-tight text-ink", children: "Scroll inside this panel" }),
2557
+ [0, 1, 2].map((i) => /* @__PURE__ */ jsxs67("div", { className: "grid grid-cols-2 items-center gap-6", children: [
2558
+ /* @__PURE__ */ jsx80("img", { "data-speed": i % 2 ? "0.85" : "1.15", src: artImage(i, 600, 700), alt: "", className: "aspect-[6/7] w-full rounded-[12px] object-cover" }),
2559
+ /* @__PURE__ */ jsx80("p", { "data-speed": i % 2 ? "1.1" : "0.9", className: "text-[15px] leading-relaxed text-ink-2", children: "Pictures and text marked with data-speed drift at their own pace for an easy parallax." })
2560
+ ] }, i))
2561
+ ] })
2562
+ };
2563
+
2564
+ // src/demo/SwipeSections.tsx
2565
+ import { jsx as jsx81, jsxs as jsxs68 } from "react/jsx-runtime";
2566
+ var panels = [
2567
+ { title: "Describe", body: "Tell the agent the outcome you want.", bg: "#1e1b4b" },
2568
+ { title: "Plan", body: "It breaks the work into steps you can read.", bg: "#064e3b" },
2569
+ { title: "Do", body: "It gathers, drafts and checks its own work.", bg: "#7c2d12" },
2570
+ { title: "Approve", body: "Nothing ships until you say yes.", bg: "#831843" }
2571
+ ];
2572
+ var swipeSectionsDemo = {
2573
+ height: "420px",
2574
+ effect: "stack",
2575
+ className: "rounded-window",
2576
+ children: panels.map((p, i) => /* @__PURE__ */ jsxs68("div", { className: "flex h-full flex-col justify-center gap-3 p-10 text-white", style: { background: p.bg }, children: [
2577
+ /* @__PURE__ */ jsxs68("span", { className: "font-mono text-[12px] text-white/60", children: [
2578
+ "0",
2579
+ i + 1,
2580
+ " / 0",
2581
+ panels.length
2582
+ ] }),
2583
+ /* @__PURE__ */ jsx81("p", { className: "text-[40px] font-bold tracking-tight", children: p.title }),
2584
+ /* @__PURE__ */ jsx81("p", { className: "max-w-sm text-[15px] text-white/75", children: p.body })
2585
+ ] }, p.title))
2586
+ };
2587
+
2588
+ // src/demo/VelocityMarquee.ts
2589
+ var velocityMarqueeDemo = {
2590
+ rows: ["Research agents", "Inbox agents", "Finance agents"],
2591
+ className: "text-[48px] font-black tracking-tight text-ink uppercase md:text-[80px]"
2592
+ };
2593
+
2594
+ // src/demo/BlendCursor.tsx
2595
+ import { Fragment as Fragment20, jsx as jsx82, jsxs as jsxs69 } from "react/jsx-runtime";
2596
+ var blendCursorDemo = {
2597
+ className: "flex min-h-[260px] w-full flex-col justify-center gap-4 rounded-window bg-[var(--page)] p-10",
2598
+ children: /* @__PURE__ */ jsxs69(Fragment20, { children: [
2599
+ /* @__PURE__ */ jsx82("h2", { className: "text-[44px] leading-none font-black tracking-tight text-ink md:text-[64px]", children: "Look closer" }),
2600
+ /* @__PURE__ */ jsx82("p", { className: "max-w-md text-[14px] text-ink-2", children: "The cursor inverts what it covers and grows over headings and links." }),
2601
+ /* @__PURE__ */ jsx82("a", { href: "#agents", className: "w-fit text-[15px] font-semibold text-ink underline underline-offset-4", children: "Meet the agents" })
2602
+ ] })
2603
+ };
2604
+
2605
+ // src/demo/CountUp.ts
2606
+ var countUpDemo = {
2607
+ value: 128450,
2608
+ suffix: " tasks",
2609
+ className: "text-[44px] font-bold tracking-tight text-ink"
2610
+ };
2611
+
2612
+ // src/demo/ImageSequence.tsx
2613
+ import { jsx as jsx83 } from "react/jsx-runtime";
2614
+ var frame = (i, n) => {
2615
+ const t = i / (n - 1);
2616
+ const orbs = Array.from({ length: 12 }, (_, k) => {
2617
+ const a = k / 12 * Math.PI * 2 + t * Math.PI * 1.5;
2618
+ const rad = 210 - t * 120;
2619
+ const x = 400 + Math.cos(a) * rad;
2620
+ const y = 300 + Math.sin(a) * rad * 0.55;
2621
+ const r = 18 + 10 * Math.sin(a + t * 3) ** 2;
2622
+ const hue = 230 + k * 9 + t * 60;
2623
+ return `<circle cx="${x.toFixed(1)}" cy="${y.toFixed(1)}" r="${r.toFixed(1)}" fill="hsl(${hue} 85% 62%)"/>`;
2624
+ }).join("");
2625
+ const core = 30 + t * 70;
2626
+ const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><rect width="800" height="600" fill="#0b0c14"/><circle cx="400" cy="300" r="${core.toFixed(1)}" fill="hsl(${260 + t * 60} 90% 70%)" opacity="${(0.3 + t * 0.7).toFixed(2)}"/>${orbs}</svg>`;
2627
+ return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;
2628
+ };
2629
+ var imageSequenceDemo = {
2630
+ frames: Array.from({ length: 48 }, (_, i) => frame(i, 48)),
2631
+ viewHeight: "80vh",
2632
+ length: 2,
2633
+ fit: "cover",
2634
+ label: "A ring of coloured orbs closing into a glowing core as you scroll",
2635
+ className: "rounded-window bg-[#0b0c14]",
2636
+ children: /* @__PURE__ */ jsx83("p", { className: "absolute bottom-8 left-8 text-[13px] font-medium tracking-wide text-white/60 uppercase", children: "Scroll to play" })
2637
+ };
2638
+
2639
+ // src/demo/LoopSlider.tsx
2640
+ import { jsx as jsx84, jsxs as jsxs70 } from "react/jsx-runtime";
2641
+ var names4 = ["Research", "Inbox", "Finance", "Engineering", "Support", "Ops", "Sales"];
2642
+ var loopSliderDemo = {
2643
+ slideWidth: 240,
2644
+ autoplay: 3500,
2645
+ children: names4.map((name, i) => /* @__PURE__ */ jsxs70("figure", { className: "m-0 overflow-hidden rounded-window bg-[var(--surface)] shadow-card", children: [
2646
+ /* @__PURE__ */ jsx84("img", { src: artImage(i, 480, 600), alt: "", draggable: false, className: "aspect-[4/5] w-full object-cover" }),
2647
+ /* @__PURE__ */ jsxs70("figcaption", { className: "p-3 text-[13.5px] font-semibold text-ink", children: [
2648
+ name,
2649
+ " agent"
2650
+ ] })
2651
+ ] }, name))
2652
+ };
2653
+
2654
+ // src/demo/StaggerGrid.ts
2655
+ var staggerGridDemo = {
2656
+ rows: 9,
2657
+ columns: 17
2658
+ };
2659
+
2660
+ // src/demo/TextOnPath.ts
2661
+ var textOnPathDemo = {
2662
+ text: "Plan \xB7 Gather \xB7 Draft \xB7 Review \xB7 Approve",
2663
+ mode: "loop",
2664
+ repeat: 2
2665
+ };
2186
2666
  export {
2187
2667
  agentScreenDemo,
2188
2668
  animatedModalDemo,
@@ -2203,8 +2683,11 @@ export {
2203
2683
  beamsWithCollisionDemo,
2204
2684
  bentoGridDemo,
2205
2685
  bentoGridItemDemo,
2686
+ blendCursorDemo,
2687
+ burstIconDemo,
2206
2688
  canvasRevealEffectDemo,
2207
2689
  canvasTextDemo,
2690
+ captionHoverDemo,
2208
2691
  card3DDemo,
2209
2692
  card3DItemDemo,
2210
2693
  cardHoverEffectDemo,
@@ -2214,6 +2697,7 @@ export {
2214
2697
  chatComposerDemo,
2215
2698
  chromaticImageDemo,
2216
2699
  cipherCardDemo,
2700
+ circularTextDemo,
2217
2701
  cloudShaderDemo,
2218
2702
  codeBlockDemo,
2219
2703
  colourfulTextDemo,
@@ -2223,20 +2707,25 @@ export {
2223
2707
  containerScrollAnimationDemo,
2224
2708
  containerTextFlipDemo,
2225
2709
  contextCardsDemo,
2710
+ countUpDemo,
2226
2711
  dialogDemo,
2227
2712
  diffTableDemo,
2228
2713
  directionAwareHoverDemo,
2229
2714
  ditherShaderDemo,
2230
2715
  dottedGlowBackgroundDemo,
2231
2716
  draggableCardsDemo,
2717
+ draggableGridDemo,
2718
+ drawPathDemo,
2232
2719
  effectButtonDemo,
2233
2720
  emptyStateDemo,
2234
2721
  encryptedTextDemo,
2235
2722
  errorStateDemo,
2236
2723
  expandableCardDemo,
2724
+ expandingPanelsDemo,
2237
2725
  fileUploadDemo,
2238
2726
  filterTableDemo,
2239
2727
  fineTuneCardDemo,
2728
+ flipGridDemo,
2240
2729
  flipWordsDemo,
2241
2730
  floatingDockDemo,
2242
2731
  floatingNavbarDemo,
@@ -2244,19 +2733,29 @@ export {
2244
2733
  focusCardsDemo,
2245
2734
  followingPointerDemo,
2246
2735
  glareCardDemo,
2736
+ glitchImageDemo,
2737
+ glitchTextDemo,
2247
2738
  globeDemo,
2248
2739
  glowInputDemo,
2249
2740
  glowingEffectDemo,
2250
2741
  glowingStarsDemo,
2251
2742
  gooeyInputDemo,
2743
+ gooeyStickyMenuDemo,
2744
+ gravityTagsDemo,
2252
2745
  gridBackgroundDemo,
2253
2746
  heroHighlightDemo,
2254
2747
  heroParallaxDemo,
2255
2748
  highlightDemo,
2749
+ horizontalScrollDemo,
2256
2750
  hoverBorderGradientDemo,
2751
+ hoverRevealListDemo,
2752
+ imageDistortHoverDemo,
2257
2753
  imageGenerationLoaderDemo,
2754
+ imageSequenceDemo,
2755
+ imageTrailDemo,
2258
2756
  imagesBadgeDemo,
2259
2757
  imagesSliderDemo,
2758
+ inertiaSliderDemo,
2260
2759
  infiniteMovingCardsDemo,
2261
2760
  insightCardsDemo,
2262
2761
  keyboardDemo,
@@ -2265,57 +2764,86 @@ export {
2265
2764
  layoutGridDemo,
2266
2765
  layoutTextFlipDemo,
2267
2766
  lensDemo,
2767
+ linkHoverDemo,
2268
2768
  linkPreviewDemo,
2269
2769
  liquidGlassDemo,
2270
2770
  loadingStateDemo,
2771
+ loopSliderDemo,
2271
2772
  magneticButtonDemo,
2773
+ magneticCursorDemo,
2272
2774
  markdownDemo,
2273
2775
  marquee3DDemo,
2776
+ marqueeMenuDemo,
2274
2777
  messageThreadDemo,
2275
2778
  meteorsDemo,
2779
+ morphingBlobDemo,
2780
+ motionPathDemo,
2276
2781
  movingBorderDemo,
2277
2782
  navbarMenuDemo,
2278
2783
  noiseBackgroundDemo,
2279
2784
  notchDemo,
2785
+ offCanvasMenuDemo,
2786
+ pageTransitionDemo,
2280
2787
  parallaxHeroImagesDemo,
2281
2788
  parallaxScrollDemo,
2789
+ particleButtonDemo,
2790
+ particleTextDemo,
2282
2791
  pin3DDemo,
2283
2792
  pixelatedCanvasDemo,
2284
2793
  pointerHighlightDemo,
2794
+ preloaderCounterDemo,
2285
2795
  promptBarDemo,
2796
+ rainGlassDemo,
2286
2797
  recommendationCardDemo,
2287
2798
  recordsTableDemo,
2288
2799
  resizableNavbarDemo,
2800
+ rollingTextDemo,
2289
2801
  scalesDemo,
2802
+ scrollGridDemo,
2803
+ scrollLayoutSwitchDemo,
2290
2804
  scrollPathsEffectDemo,
2805
+ scrollToTopDemo,
2806
+ scrollTypographyDemo,
2807
+ scrollZoomImageDemo,
2808
+ seamTransitionDemo,
2291
2809
  searchListDemo,
2292
2810
  selectionActionsDemo,
2811
+ shapeMorphDemo,
2293
2812
  shootingStarsDemo,
2294
2813
  sidebarNavDemo,
2295
2814
  signupFormDemo,
2815
+ smoothScrollDemo,
2296
2816
  sparklesDemo,
2817
+ splitTextRevealDemo,
2297
2818
  spotlightCardDemo,
2298
2819
  spotlightDemo,
2299
2820
  spotlightNewDemo,
2300
2821
  squigglyTextDemo,
2822
+ stackedScrollCardsDemo,
2823
+ staggerGridDemo,
2301
2824
  statefulButtonDemo,
2302
2825
  stickyBannerDemo,
2303
2826
  stickyScrollRevealDemo,
2304
2827
  streamingTextDemo,
2305
2828
  svgMaskEffectDemo,
2829
+ swipeSectionsDemo,
2306
2830
  taskRowsDemo,
2307
2831
  terminalDemo,
2308
2832
  textFlippingBoardDemo,
2309
2833
  textHoverEffectDemo,
2834
+ textOnPathDemo,
2310
2835
  textRevealCardDemo,
2311
2836
  thinkingStateDemo,
2312
2837
  thinkingStateDemos,
2838
+ tileRevealDemo,
2313
2839
  timelineDemo,
2314
2840
  toolChipsDemo,
2315
2841
  tooltipCardDemo,
2316
2842
  tracingBeamDemo,
2843
+ transitionOverlayDemo,
2317
2844
  typewriterDemo,
2318
2845
  usageMeterDemo,
2846
+ velocityMarqueeDemo,
2319
2847
  vortexDemo,
2320
2848
  wavyBackgroundDemo,
2321
2849
  webcamPixelGridDemo,