The Open Standard for Generative UI
Adding new example project shadcn-chat (#321)
subhamdc884fc95cdc
diff --git a/examples/openui-chat/src/app/page.tsx b/examples/openui-chat/src/app/page.tsxindex b45c90326..0372db0d9 100644--- a/examples/openui-chat/src/app/page.tsx+++ b/examples/openui-chat/src/app/page.tsx@@ -1,42 +1,16 @@"use client";import "@openuidev/react-ui/components.css";+import { useSystemTheme } from "@/hooks/use-system-theme";import { openAIAdapter, openAIMessageFormat } from "@openuidev/react-headless";import { FullScreen } from "@openuidev/react-ui";import { openuiChatLibrary } from "@openuidev/react-ui/genui-lib";-import { useState } from "react";export default function Page() {- const [mode, setMode] = useState<"light" | "dark">("light");+ const mode = useSystemTheme();+return (<div className="h-screen w-screen overflow-hidden relative">- <nav- style={{- position: "absolute",- top: 16,- right: 16,- zIndex: 50,- display: "flex",- gap: 8,- alignItems: "center",- }}- >- <button- onClick={() => setMode((m) => (m === "light" ? "dark" : "light"))}- style={{- fontSize: 13,- padding: "6px 12px",- borderRadius: 6,- border: "1px solid rgba(128,128,128,0.3)",- background: mode === "dark" ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.05)",- color: mode === "dark" ? "#fff" : "#333",- cursor: "pointer",- backdropFilter: "blur(8px)",- }}- >- {mode === "light" ? "Switch to Dark" : "Switch to Light"}- </button>- </nav><FullScreenprocessMessage={async ({ messages, abortController }) => {return fetch("/api/chat", {@@ -55,10 +29,20 @@ export default function Page() {conversationStarters={{variant: "short",options: [- { displayText: "Weather in Tokyo", prompt: "What's the weather like in Tokyo right now?" },+ {+ displayText: "Weather in Tokyo",+ prompt: "What's the weather like in Tokyo right now?",+ },{ displayText: "AAPL stock price", prompt: "What's the current Apple stock price?" },- { displayText: "Contact form", prompt: "Build me a contact form with name, email, topic, and message fields." },- { displayText: "Data table", prompt: "Show me a table of the top 5 programming languages by popularity with year created." },+ {+ displayText: "Contact form",+ prompt: "Build me a contact form with name, email, topic, and message fields.",+ },+ {+ displayText: "Data table",+ prompt:+ "Show me a table of the top 5 programming languages by popularity with year created.",+ },],}}/>diff --git a/examples/openui-chat/src/hooks/use-system-theme.ts b/examples/openui-chat/src/hooks/use-system-theme.tsnew file mode 100644index 000000000..64e8b99f0--- /dev/null+++ b/examples/openui-chat/src/hooks/use-system-theme.ts@@ -0,0 +1,21 @@+"use client";++import { useEffect, useState } from "react";++function getSystemMode(): "light" | "dark" {+ if (typeof window === "undefined") return "light";+ return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";+}++export function useSystemTheme() {+ const [mode, setMode] = useState<"light" | "dark">(getSystemMode);++ useEffect(() => {+ const mq = window.matchMedia("(prefers-color-scheme: dark)");+ const handler = (e: MediaQueryListEvent) => setMode(e.matches ? "dark" : "light");+ mq.addEventListener("change", handler);+ return () => mq.removeEventListener("change", handler);+ }, []);++ return mode;+}diff --git a/examples/shadcn-chat/.gitignore b/examples/shadcn-chat/.gitignorenew file mode 100644index 000000000..c3a91b99c--- /dev/null+++ b/examples/shadcn-chat/.gitignore@@ -0,0 +1,4 @@+.next+node_modules+.env+.env.localdiff --git a/examples/shadcn-chat/components.json b/examples/shadcn-chat/components.jsonnew file mode 100644index 000000000..3289f237a--- /dev/null+++ b/examples/shadcn-chat/components.json@@ -0,0 +1,21 @@+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "new-york",+ "rsc": true,+ "tsx": true,+ "tailwind": {+ "config": "",+ "css": "src/app/globals.css",+ "baseColor": "neutral",+ "cssVariables": true,+ "prefix": ""+ },+ "aliases": {+ "components": "@/components",+ "utils": "@/lib/utils",+ "ui": "@/components/ui",+ "lib": "@/lib",+ "hooks": "@/hooks"+ },+ "iconLibrary": "lucide"+}diff --git a/examples/shadcn-chat/next-env.d.ts b/examples/shadcn-chat/next-env.d.tsnew file mode 100644index 000000000..c4b7818fb--- /dev/null+++ b/examples/shadcn-chat/next-env.d.ts@@ -0,0 +1,6 @@+/// <reference types="next" />+/// <reference types="next/image-types/global" />+import "./.next/dev/types/routes.d.ts";++// NOTE: This file should not be edited+// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.diff --git a/examples/shadcn-chat/next.config.ts b/examples/shadcn-chat/next.config.tsnew file mode 100644index 000000000..69512fdcd--- /dev/null+++ b/examples/shadcn-chat/next.config.ts@@ -0,0 +1,8 @@+import type { NextConfig } from "next";++const nextConfig: NextConfig = {+ turbopack: {},+ transpilePackages: ["@openuidev/react-ui", "@openuidev/react-headless", "@openuidev/react-lang"],+};++export default nextConfig;diff --git a/examples/shadcn-chat/package.json b/examples/shadcn-chat/package.jsonnew file mode 100644index 000000000..620a3d558--- /dev/null+++ b/examples/shadcn-chat/package.json@@ -0,0 +1,68 @@+{+ "name": "shadcn-chat",+ "version": "0.1.0",+ "private": true,+ "scripts": {+ "generate:prompt": "node --import tsx/esm scripts/generate-prompt.mjs",+ "dev": "pnpm generate:prompt && next dev",+ "build": "next build",+ "start": "next start",+ "lint": "eslint"+ },+ "dependencies": {+ "@openuidev/react-headless": "workspace:*",+ "@openuidev/react-lang": "workspace:*",+ "@openuidev/react-ui": "workspace:*",+ "@radix-ui/react-accordion": "^1.2.3",+ "@radix-ui/react-alert-dialog": "^1.1.15",+ "@radix-ui/react-aspect-ratio": "^1.1.1",+ "@radix-ui/react-avatar": "^1.1.3",+ "@radix-ui/react-checkbox": "^1.1.4",+ "@radix-ui/react-collapsible": "^1.1.3",+ "@radix-ui/react-dialog": "^1.1.15",+ "@radix-ui/react-hover-card": "^1.1.15",+ "@radix-ui/react-label": "^2.1.2",+ "@radix-ui/react-popover": "^1.1.6",+ "@radix-ui/react-progress": "^1.1.2",+ "@radix-ui/react-radio-group": "^1.2.3",+ "@radix-ui/react-select": "^2.1.6",+ "@radix-ui/react-separator": "^1.1.2",+ "@radix-ui/react-slider": "^1.2.3",+ "@radix-ui/react-switch": "^1.1.3",+ "@radix-ui/react-tabs": "^1.1.3",+ "@radix-ui/react-toggle": "^1.1.2",+ "@radix-ui/react-toggle-group": "^1.1.2",+ "@radix-ui/react-tooltip": "^1.2.7",+ "@tanstack/react-table": "^8.21.3",+ "class-variance-authority": "^0.7.1",+ "clsx": "^2.1.1",+ "date-fns": "^4.1.0",+ "embla-carousel-react": "^8.6.0",+ "input-otp": "^1.4.2",+ "lucide-react": "^0.575.0",+ "next": "16.1.6",+ "openai": "^6.22.0",+ "radix-ui": "^1.4.3",+ "react": "19.2.3",+ "react-day-picker": "^9.14.0",+ "react-dom": "19.2.3",+ "react-markdown": "^10.1.0",+ "recharts": "^2.15.4",+ "remark-gfm": "^4.0.1",+ "sonner": "^2.0.7",+ "tailwind-merge": "^3.3.0",+ "vaul": "^1.1.2",+ "zod": "^4.0.0"+ },+ "devDependencies": {+ "@tailwindcss/postcss": "^4",+ "@types/node": "^20",+ "@types/react": "^19",+ "@types/react-dom": "^19",+ "eslint": "^9",+ "eslint-config-next": "16.1.6",+ "tailwindcss": "^4",+ "tsx": "^4.19.2",+ "typescript": "^5"+ }+}diff --git a/examples/shadcn-chat/postcss.config.mjs b/examples/shadcn-chat/postcss.config.mjsnew file mode 100644index 000000000..61e36849c--- /dev/null+++ b/examples/shadcn-chat/postcss.config.mjs@@ -0,0 +1,7 @@+const config = {+ plugins: {+ "@tailwindcss/postcss": {},+ },+};++export default config;diff --git a/examples/shadcn-chat/src/app/api/chat/route.ts b/examples/shadcn-chat/src/app/api/chat/route.tsnew file mode 100644index 000000000..dd2d9467e--- /dev/null+++ b/examples/shadcn-chat/src/app/api/chat/route.ts@@ -0,0 +1,364 @@+import { readFileSync } from "fs";+import { NextRequest } from "next/server";+import OpenAI from "openai";+import type { ChatCompletionMessageParam } from "openai/resources/chat/completions.mjs";+import { join } from "path";++const systemPrompt = readFileSync(join(process.cwd(), "src/generated/system-prompt.txt"), "utf-8");++// ── Tool implementations ──++function getWeather({ location }: { location: string }): Promise<string> {+ return new Promise((resolve) => {+ setTimeout(() => {+ const knownTemps: Record<string, number> = {+ tokyo: 22,+ "san francisco": 18,+ london: 14,+ "new york": 25,+ paris: 19,+ sydney: 27,+ mumbai: 33,+ berlin: 16,+ };+ const conditions = ["Sunny", "Partly Cloudy", "Cloudy", "Light Rain", "Clear Skies"];+ const temp = knownTemps[location.toLowerCase()] ?? Math.floor(Math.random() * 30 + 5);+ const condition = conditions[Math.floor(Math.random() * conditions.length)];+ resolve(+ JSON.stringify({+ location,+ temperature_celsius: temp,+ temperature_fahrenheit: Math.round(temp * 1.8 + 32),+ condition,+ humidity_percent: Math.floor(Math.random() * 40 + 40),+ wind_speed_kmh: Math.floor(Math.random() * 25 + 5),+ forecast: [+ { day: "Tomorrow", high: temp + 2, low: temp - 4, condition: "Partly Cloudy" },+ { day: "Day After", high: temp + 1, low: temp - 3, condition: "Sunny" },+ ],+ }),+ );+ }, 800);+ });+}++function getStockPrice({ symbol }: { symbol: string }): Promise<string> {+ return new Promise((resolve) => {+ setTimeout(() => {+ const s = symbol.toUpperCase();+ const knownPrices: Record<string, number> = {+ AAPL: 189.84,+ GOOGL: 141.8,+ TSLA: 248.42,+ MSFT: 378.91,+ AMZN: 178.25,+ NVDA: 875.28,+ META: 485.58,+ };+ const price = knownPrices[s] ?? Math.floor(Math.random() * 500 + 20);+ const change = parseFloat((Math.random() * 8 - 4).toFixed(2));+ resolve(+ JSON.stringify({+ symbol: s,+ price: parseFloat((price + change).toFixed(2)),+ change,+ change_percent: parseFloat(((change / price) * 100).toFixed(2)),+ volume: `${(Math.random() * 50 + 10).toFixed(1)}M`,+ day_high: parseFloat((price + Math.abs(change) + 1.5).toFixed(2)),+ day_low: parseFloat((price - Math.abs(change) - 1.2).toFixed(2)),+ }),+ );+ }, 600);+ });+}++function calculate({ expression }: { expression: string }): Promise<string> {+ return new Promise((resolve) => {+ setTimeout(() => {+ try {+ const sanitized = expression.replace(+ /[^0-9+\-*/().%\s,Math.sqrtpowabsceilfloorround]/g,+ "",+ );++ const result = new Function(`return (${sanitized})`)();+ resolve(JSON.stringify({ expression, result: Number(result) }));+ } catch {+ resolve(JSON.stringify({ expression, error: "Invalid expression" }));+ }+ }, 300);+ });+}++function searchWeb({ query }: { query: string }): Promise<string> {+ return new Promise((resolve) => {+ setTimeout(() => {+ resolve(+ JSON.stringify({+ query,+ results: [+ {+ title: `Top result for "${query}"`,+ snippet: `Comprehensive overview of ${query} with the latest information.`,+ },+ {+ title: `${query} - Latest News`,+ snippet: `Recent developments and updates related to ${query}.`,+ },+ {+ title: `Understanding ${query}`,+ snippet: `An in-depth guide explaining everything about ${query}.`,+ },+ ],+ }),+ );+ }, 1000);+ });+}++// ── Tool definitions ──++// eslint-disable-next-line @typescript-eslint/no-explicit-any+const tools: any[] = [+ {+ type: "function",+ function: {+ name: "get_weather",+ description: "Get current weather for a location.",+ parameters: {+ type: "object",+ properties: { location: { type: "string", description: "City name" } },+ required: ["location"],+ },+ function: getWeather,+ parse: JSON.parse,+ },+ },+ {+ type: "function",+ function: {+ name: "get_stock_price",+ description: "Get stock price for a ticker symbol.",+ parameters: {+ type: "object",+ properties: { symbol: { type: "string", description: "Ticker symbol, e.g. AAPL" } },+ required: ["symbol"],+ },+ function: getStockPrice,+ parse: JSON.parse,+ },+ },+ {+ type: "function",+ function: {+ name: "calculate",+ description: "Evaluate a math expression.",+ parameters: {+ type: "object",+ properties: { expression: { type: "string", description: "Math expression to evaluate" } },+ required: ["expression"],+ },+ function: calculate,+ parse: JSON.parse,+ },+ },+ {+ type: "function",+ function: {+ name: "search_web",+ description: "Search the web for information.",+ parameters: {+ type: "object",+ properties: { query: { type: "string", description: "Search query" } },+ required: ["query"],+ },+ function: searchWeb,+ parse: JSON.parse,+ },+ },+];++// ── SSE helpers ──++function sseToolCallStart(+ encoder: TextEncoder,+ tc: { id: string; function: { name: string } },+ index: number,+) {+ return encoder.encode(+ `data: ${JSON.stringify({+ id: `chatcmpl-tc-${tc.id}`,+ object: "chat.completion.chunk",+ choices: [+ {+ index: 0,+ delta: {+ tool_calls: [+ {+ index,+ id: tc.id,+ type: "function",+ function: { name: tc.function.name, arguments: "" },+ },+ ],+ },+ finish_reason: null,+ },+ ],+ })}\n\n`,+ );+}++function sseToolCallArgs(+ encoder: TextEncoder,+ tc: { id: string; function: { arguments: string } },+ result: string,+ index: number,+) {+ let enrichedArgs: string;+ try {+ enrichedArgs = JSON.stringify({+ _request: JSON.parse(tc.function.arguments),+ _response: JSON.parse(result),+ });+ } catch {+ enrichedArgs = tc.function.arguments;+ }+ return encoder.encode(+ `data: ${JSON.stringify({+ id: `chatcmpl-tc-${tc.id}-args`,+ object: "chat.completion.chunk",+ choices: [+ {+ index: 0,+ delta: { tool_calls: [{ index, function: { arguments: enrichedArgs } }] },+ finish_reason: null,+ },+ ],+ })}\n\n`,+ );+}++// ── Route handler ──++export async function POST(req: NextRequest) {+ const { messages } = await req.json();++ const client = new OpenAI({+ apiKey: process.env.OPENROUTER_API_KEY,+ baseURL: "https://openrouter.ai/api/v1",+ });+ const MODEL = "openai/gpt-5.4";++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const cleanMessages = (messages as any[])+ .filter((m) => m.role !== "tool")+ .map((m) => {+ if (m.role === "assistant" && m.tool_calls?.length) {+ // Strip tool_calls (runTools re-runs the agentic loop server-side)+ // but preserve content so prior replies remain in context.+ const { tool_calls: _tc, ...rest } = m; // eslint-disable-line @typescript-eslint/no-unused-vars+ return rest;+ }+ return m;+ });++ const chatMessages: ChatCompletionMessageParam[] = [+ { role: "system", content: systemPrompt },+ ...cleanMessages,+ ];++ const encoder = new TextEncoder();+ let controllerClosed = false;++ const readable = new ReadableStream({+ start(controller) {+ const enqueue = (data: Uint8Array) => {+ if (controllerClosed) return;+ try {+ controller.enqueue(data);+ } catch {+ /* already closed */+ }+ };+ const close = () => {+ if (controllerClosed) return;+ controllerClosed = true;+ try {+ controller.close();+ } catch {+ /* already closed */+ }+ };++ const pendingCalls: Array<{ id: string; name: string; arguments: string }> = [];+ let callIdx = 0;+ let resultIdx = 0;++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const runner = (client.chat.completions as any).runTools({+ model: MODEL,+ messages: chatMessages,+ tools,+ stream: true,+ });++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ runner.on("functionToolCall", (fc: any) => {+ const id = `tc-${callIdx}`;+ pendingCalls.push({ id, name: fc.name, arguments: fc.arguments });+ enqueue(sseToolCallStart(encoder, { id, function: { name: fc.name } }, callIdx));+ callIdx++;+ });++ runner.on("functionToolCallResult", (result: string) => {+ const tc = pendingCalls[resultIdx];+ if (tc) {+ enqueue(+ sseToolCallArgs(+ encoder,+ { id: tc.id, function: { arguments: tc.arguments } },+ result,+ resultIdx,+ ),+ );+ }+ resultIdx++;+ });++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ runner.on("chunk", (chunk: any) => {+ const choice = chunk.choices?.[0];+ const delta = choice?.delta;+ if (!delta) return;+ if (delta.content) {+ enqueue(encoder.encode(`data: ${JSON.stringify(chunk)}\n\n`));+ }+ if (choice?.finish_reason === "stop") {+ enqueue(encoder.encode(`data: ${JSON.stringify(chunk)}\n\n`));+ }+ });++ runner.on("end", () => {+ enqueue(encoder.encode("data: [DONE]\n\n"));+ close();+ });++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ runner.on("error", (err: any) => {+ const msg = err instanceof Error ? err.message : "Stream error";+ console.error("Chat route error:", msg);+ enqueue(encoder.encode(`data: ${JSON.stringify({ error: msg })}\n\n`));+ close();+ });+ },+ });++ return new Response(readable, {+ headers: {+ "Content-Type": "text/event-stream",+ "Cache-Control": "no-cache, no-transform",+ Connection: "keep-alive",+ },+ });+}diff --git a/examples/shadcn-chat/src/app/globals.css b/examples/shadcn-chat/src/app/globals.cssnew file mode 100644index 000000000..df40b5b50--- /dev/null+++ b/examples/shadcn-chat/src/app/globals.css@@ -0,0 +1,122 @@+@import "tailwindcss";++@custom-variant dark (&:is(.dark *));++@theme inline {+ --color-background: var(--background);+ --color-foreground: var(--foreground);+ --color-card: var(--card);+ --color-card-foreground: var(--card-foreground);+ --color-popover: var(--popover);+ --color-popover-foreground: var(--popover-foreground);+ --color-primary: var(--primary);+ --color-primary-foreground: var(--primary-foreground);+ --color-secondary: var(--secondary);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-muted: var(--muted);+ --color-muted-foreground: var(--muted-foreground);+ --color-accent: var(--accent);+ --color-accent-foreground: var(--accent-foreground);+ --color-destructive: var(--destructive);+ --color-destructive-foreground: var(--destructive-foreground);+ --color-border: var(--border);+ --color-input: var(--input);+ --color-ring: var(--ring);+ --color-chart-1: var(--chart-1);+ --color-chart-2: var(--chart-2);+ --color-chart-3: var(--chart-3);+ --color-chart-4: var(--chart-4);+ --color-chart-5: var(--chart-5);+ --color-sidebar: var(--sidebar);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-ring: var(--sidebar-ring);+ --radius-sm: calc(var(--radius) - 4px);+ --radius-md: calc(var(--radius) - 2px);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) + 4px);+}++:root {+ --radius: 0.625rem;+ --background: oklch(1 0 0);+ --foreground: oklch(0.145 0 0);+ --card: oklch(1 0 0);+ --card-foreground: oklch(0.145 0 0);+ --popover: oklch(1 0 0);+ --popover-foreground: oklch(0.145 0 0);+ --primary: oklch(0.205 0 0);+ --primary-foreground: oklch(0.985 0 0);+ --secondary: oklch(0.97 0 0);+ --secondary-foreground: oklch(0.205 0 0);+ --muted: oklch(0.97 0 0);+ --muted-foreground: oklch(0.556 0 0);+ --accent: oklch(0.97 0 0);+ --accent-foreground: oklch(0.205 0 0);+ --destructive: oklch(0.577 0.245 27.325);+ --destructive-foreground: oklch(0.985 0 0);+ --border: oklch(0.922 0 0);+ --input: oklch(0.922 0 0);+ --ring: oklch(0.708 0 0);+ --chart-1: oklch(0.646 0.222 41.116);+ --chart-2: oklch(0.6 0.118 184.714);+ --chart-3: oklch(0.398 0.07 227.392);+ --chart-4: oklch(0.828 0.189 84.429);+ --chart-5: oklch(0.769 0.188 70.08);+ --sidebar: oklch(0.985 0 0);+ --sidebar-foreground: oklch(0.145 0 0);+ --sidebar-primary: oklch(0.205 0 0);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.97 0 0);+ --sidebar-accent-foreground: oklch(0.205 0 0);+ --sidebar-border: oklch(0.922 0 0);+ --sidebar-ring: oklch(0.708 0 0);+}++.dark {+ --background: oklch(0.145 0 0);+ --foreground: oklch(0.985 0 0);+ --card: oklch(0.205 0 0);+ --card-foreground: oklch(0.985 0 0);+ --popover: oklch(0.269 0 0);+ --popover-foreground: oklch(0.985 0 0);+ --primary: oklch(0.922 0 0);+ --primary-foreground: oklch(0.205 0 0);+ --secondary: oklch(0.269 0 0);+ --secondary-foreground: oklch(0.985 0 0);+ --muted: oklch(0.269 0 0);+ --muted-foreground: oklch(0.708 0 0);+ --accent: oklch(0.371 0 0);+ --accent-foreground: oklch(0.985 0 0);+ --destructive: oklch(0.704 0.191 22.216);+ --destructive-foreground: oklch(0.985 0 0);+ --border: oklch(1 0 0 / 10%);+ --input: oklch(1 0 0 / 15%);+ --ring: oklch(0.556 0 0);+ --chart-1: oklch(0.488 0.243 264.376);+ --chart-2: oklch(0.696 0.17 162.48);+ --chart-3: oklch(0.769 0.188 70.08);+ --chart-4: oklch(0.627 0.265 303.9);+ --chart-5: oklch(0.645 0.246 16.439);+ --sidebar: oklch(0.205 0 0);+ --sidebar-foreground: oklch(0.985 0 0);+ --sidebar-primary: oklch(0.488 0.243 264.376);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.269 0 0);+ --sidebar-accent-foreground: oklch(0.985 0 0);+ --sidebar-border: oklch(1 0 0 / 10%);+ --sidebar-ring: oklch(0.439 0 0);+}++@layer base {+ * {+ @apply border-border;+ }+ body {+ @apply bg-background text-foreground;+ }+}diff --git a/examples/shadcn-chat/src/app/layout.tsx b/examples/shadcn-chat/src/app/layout.tsxnew file mode 100644index 000000000..013457a77--- /dev/null+++ b/examples/shadcn-chat/src/app/layout.tsx@@ -0,0 +1,19 @@+import type { Metadata } from "next";+import "./globals.css";++export const metadata: Metadata = {+ title: "shadcn/ui Chat",+ description: "Generative UI Chat with shadcn/ui components",+};++export default function RootLayout({+ children,+}: Readonly<{+ children: React.ReactNode;+}>) {+ return (+ <html lang="en">+ <body>{children}</body>+ </html>+ );+}diff --git a/examples/shadcn-chat/src/app/page.tsx b/examples/shadcn-chat/src/app/page.tsxnew file mode 100644index 000000000..d1c9b7cd1--- /dev/null+++ b/examples/shadcn-chat/src/app/page.tsx@@ -0,0 +1,51 @@+"use client";+import "@openuidev/react-ui/components.css";++import { useSystemTheme } from "@/hooks/use-system-theme";+import { shadcnChatLibrary } from "@/lib/shadcn-genui";+import { openAIAdapter, openAIMessageFormat } from "@openuidev/react-headless";+import { FullScreen } from "@openuidev/react-ui";++export default function Page() {+ const mode = useSystemTheme();++ return (+ <div className={`h-screen w-screen overflow-hidden relative ${mode === "dark" ? "dark" : ""}`}>+ <FullScreen+ processMessage={async ({ messages, abortController }) => {+ return fetch("/api/chat", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ messages: openAIMessageFormat.toApi(messages),+ }),+ signal: abortController.signal,+ });+ }}+ streamProtocol={openAIAdapter()}+ componentLibrary={shadcnChatLibrary}+ agentName="shadcn/ui Chat"+ theme={{ mode }}+ conversationStarters={{+ variant: "short",+ options: [+ {+ displayText: "Weather in Tokyo",+ prompt: "What's the weather like in Tokyo right now?",+ },+ { displayText: "AAPL stock price", prompt: "What's the current Apple stock price?" },+ {+ displayText: "Contact form",+ prompt: "Build me a contact form with name, email, topic, and message fields.",+ },+ {+ displayText: "Data table",+ prompt:+ "Show me a table of the top 5 programming languages by popularity with year created.",+ },+ ],+ }}+ />+ </div>+ );+}diff --git a/examples/shadcn-chat/src/components/ui/accordion.tsx b/examples/shadcn-chat/src/components/ui/accordion.tsxnew file mode 100644index 000000000..e9793d034--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/accordion.tsx@@ -0,0 +1,64 @@+"use client";++import { ChevronDownIcon } from "lucide-react";+import { Accordion as AccordionPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>) {+ return <AccordionPrimitive.Root data-slot="accordion" {...props} />;+}++function AccordionItem({+ className,+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Item>) {+ return (+ <AccordionPrimitive.Item+ data-slot="accordion-item"+ className={clsx("border-b last:border-b-0", className)}+ {...props}+ />+ );+}++function AccordionTrigger({+ className,+ children,+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {+ return (+ <AccordionPrimitive.Header className="flex">+ <AccordionPrimitive.Trigger+ data-slot="accordion-trigger"+ className={clsx(+ "flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",+ className,+ )}+ {...props}+ >+ {children}+ <ChevronDownIcon className="pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200" />+ </AccordionPrimitive.Trigger>+ </AccordionPrimitive.Header>+ );+}++function AccordionContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Content>) {+ return (+ <AccordionPrimitive.Content+ data-slot="accordion-content"+ className="overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"+ {...props}+ >+ <div className={clsx("pt-0 pb-4", className)}>{children}</div>+ </AccordionPrimitive.Content>+ );+}++export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };diff --git a/examples/shadcn-chat/src/components/ui/alert-dialog.tsx b/examples/shadcn-chat/src/components/ui/alert-dialog.tsxnew file mode 100644index 000000000..c769e9b1f--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/alert-dialog.tsx@@ -0,0 +1,134 @@+"use client";++import { buttonVariants } from "@/components/ui/button";+import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";+import { clsx } from "clsx";+import * as React from "react";++function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {+ return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;+}++function AlertDialogTrigger({+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {+ return <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />;+}++function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {+ return <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />;+}++function AlertDialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {+ return (+ <AlertDialogPrimitive.Overlay+ data-slot="alert-dialog-overlay"+ className={clsx(+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",+ className,+ )}+ {...props}+ />+ );+}++function AlertDialogContent({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {+ return (+ <AlertDialogPortal>+ <AlertDialogOverlay />+ <AlertDialogPrimitive.Content+ data-slot="alert-dialog-content"+ className={clsx(+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",+ className,+ )}+ {...props}+ />+ </AlertDialogPortal>+ );+}++function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-dialog-header"+ className={clsx("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ );+}++function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-dialog-footer"+ className={clsx("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)}+ {...props}+ />+ );+}++function AlertDialogTitle({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {+ return (+ <AlertDialogPrimitive.Title+ data-slot="alert-dialog-title"+ className={clsx("text-lg font-semibold", className)}+ {...props}+ />+ );+}++function AlertDialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {+ return (+ <AlertDialogPrimitive.Description+ data-slot="alert-dialog-description"+ className={clsx("text-sm text-muted-foreground", className)}+ {...props}+ />+ );+}++function AlertDialogAction({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {+ return <AlertDialogPrimitive.Action className={clsx(buttonVariants(), className)} {...props} />;+}++function AlertDialogCancel({+ className,+ ...props+}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {+ return (+ <AlertDialogPrimitive.Cancel+ className={clsx(buttonVariants({ variant: "outline" }), className)}+ {...props}+ />+ );+}++export {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogOverlay,+ AlertDialogPortal,+ AlertDialogTitle,+ AlertDialogTrigger,+};diff --git a/examples/shadcn-chat/src/components/ui/alert.tsx b/examples/shadcn-chat/src/components/ui/alert.tsxnew file mode 100644index 000000000..304307d60--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/alert.tsx@@ -0,0 +1,60 @@+import { cva, type VariantProps } from "class-variance-authority";+import * as React from "react";++import { clsx } from "clsx";++const alertVariants = cva(+ "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",+ {+ variants: {+ variant: {+ default: "bg-card text-card-foreground",+ destructive:+ "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ },+);++function Alert({+ className,+ variant,+ ...props+}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {+ return (+ <div+ data-slot="alert"+ role="alert"+ className={clsx(alertVariants({ variant }), className)}+ {...props}+ />+ );+}++function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-title"+ className={clsx("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className)}+ {...props}+ />+ );+}++function AlertDescription({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-description"+ className={clsx(+ "col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",+ className,+ )}+ {...props}+ />+ );+}++export { Alert, AlertDescription, AlertTitle };diff --git a/examples/shadcn-chat/src/components/ui/avatar.tsx b/examples/shadcn-chat/src/components/ui/avatar.tsxnew file mode 100644index 000000000..c08549d17--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/avatar.tsx@@ -0,0 +1,96 @@+"use client";++import { Avatar as AvatarPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Avatar({+ className,+ size = "default",+ ...props+}: React.ComponentProps<typeof AvatarPrimitive.Root> & {+ size?: "default" | "sm" | "lg";+}) {+ return (+ <AvatarPrimitive.Root+ data-slot="avatar"+ data-size={size}+ className={clsx(+ "group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6",+ className,+ )}+ {...props}+ />+ );+}++function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>) {+ return (+ <AvatarPrimitive.Image+ data-slot="avatar-image"+ className={clsx("aspect-square size-full", className)}+ {...props}+ />+ );+}++function AvatarFallback({+ className,+ ...props+}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {+ return (+ <AvatarPrimitive.Fallback+ data-slot="avatar-fallback"+ className={clsx(+ "flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",+ className,+ )}+ {...props}+ />+ );+}++function AvatarBadge({ className, ...props }: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="avatar-badge"+ className={clsx(+ "absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground ring-2 ring-background select-none",+ "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",+ "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",+ "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",+ className,+ )}+ {...props}+ />+ );+}++function AvatarGroup({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="avatar-group"+ className={clsx(+ "group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",+ className,+ )}+ {...props}+ />+ );+}++function AvatarGroupCount({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="avatar-group-count"+ className={clsx(+ "relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3",+ className,+ )}+ {...props}+ />+ );+}++export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };diff --git a/examples/shadcn-chat/src/components/ui/badge.tsx b/examples/shadcn-chat/src/components/ui/badge.tsxnew file mode 100644index 000000000..3a442c0f8--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/badge.tsx@@ -0,0 +1,46 @@+import { cva, type VariantProps } from "class-variance-authority";+import { Slot } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++const badgeVariants = cva(+ "inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",+ {+ variants: {+ variant: {+ default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90",+ secondary: "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",+ destructive:+ "bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",+ outline:+ "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",+ ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",+ link: "text-primary underline-offset-4 [a&]:hover:underline",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ },+);++function Badge({+ className,+ variant = "default",+ asChild = false,+ ...props+}: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & { asChild?: boolean }) {+ const Comp = asChild ? Slot.Root : "span";++ return (+ <Comp+ data-slot="badge"+ data-variant={variant}+ className={clsx(badgeVariants({ variant }), className)}+ {...props}+ />+ );+}++export { Badge, badgeVariants };diff --git a/examples/shadcn-chat/src/components/ui/button.tsx b/examples/shadcn-chat/src/components/ui/button.tsxnew file mode 100644index 000000000..1521b089f--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/button.tsx@@ -0,0 +1,62 @@+import { cva, type VariantProps } from "class-variance-authority";+import { Slot } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++const buttonVariants = cva(+ "inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ {+ variants: {+ variant: {+ default: "bg-primary text-primary-foreground hover:bg-primary/90",+ destructive:+ "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",+ outline:+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-9 px-4 py-2 has-[>svg]:px-3",+ xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",+ sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",+ icon: "size-9",+ "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",+ "icon-sm": "size-8",+ "icon-lg": "size-10",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ },+);++function Button({+ className,+ variant = "default",+ size = "default",+ asChild = false,+ ...props+}: React.ComponentProps<"button"> &+ VariantProps<typeof buttonVariants> & {+ asChild?: boolean;+ }) {+ const Comp = asChild ? Slot.Root : "button";++ return (+ <Comp+ data-slot="button"+ data-variant={variant}+ data-size={size}+ className={clsx(buttonVariants({ variant, size, className }))}+ {...props}+ />+ );+}++export { Button, buttonVariants };diff --git a/examples/shadcn-chat/src/components/ui/calendar.tsx b/examples/shadcn-chat/src/components/ui/calendar.tsxnew file mode 100644index 000000000..d2e395585--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/calendar.tsx@@ -0,0 +1,180 @@+"use client";++import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";+import * as React from "react";+import { DayPicker, getDefaultClassNames, type DayButton } from "react-day-picker";++import { Button, buttonVariants } from "@/components/ui/button";+import { clsx } from "clsx";++function Calendar({+ className,+ classNames,+ showOutsideDays = true,+ captionLayout = "label",+ buttonVariant = "ghost",+ formatters,+ components,+ ...props+}: React.ComponentProps<typeof DayPicker> & {+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];+}) {+ const defaultClassNames = getDefaultClassNames();++ return (+ <DayPicker+ showOutsideDays={showOutsideDays}+ className={clsx(+ "group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,+ className,+ )}+ captionLayout={captionLayout}+ formatters={{+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),+ ...formatters,+ }}+ classNames={{+ root: clsx("w-fit", defaultClassNames.root),+ months: clsx("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),+ month: clsx("flex w-full flex-col gap-4", defaultClassNames.month),+ nav: clsx(+ "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",+ defaultClassNames.nav,+ ),+ button_previous: clsx(+ buttonVariants({ variant: buttonVariant }),+ "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",+ defaultClassNames.button_previous,+ ),+ button_next: clsx(+ buttonVariants({ variant: buttonVariant }),+ "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",+ defaultClassNames.button_next,+ ),+ month_caption: clsx(+ "flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",+ defaultClassNames.month_caption,+ ),+ dropdowns: clsx(+ "flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",+ defaultClassNames.dropdowns,+ ),+ dropdown_root: clsx(+ "relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",+ defaultClassNames.dropdown_root,+ ),+ dropdown: clsx("absolute inset-0 opacity-0", defaultClassNames.dropdown),+ caption_label: clsx(+ "font-medium select-none",+ captionLayout === "label"+ ? "text-sm"+ : "flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",+ defaultClassNames.caption_label,+ ),+ table: "w-full border-collapse",+ weekdays: clsx("flex", defaultClassNames.weekdays),+ weekday: clsx(+ "flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none",+ defaultClassNames.weekday,+ ),+ week: clsx("mt-2 flex w-full", defaultClassNames.week),+ week_number_header: clsx(+ "w-(--cell-size) select-none",+ defaultClassNames.week_number_header,+ ),+ week_number: clsx(+ "text-[0.8rem] text-muted-foreground select-none",+ defaultClassNames.week_number,+ ),+ day: clsx(+ "group/day relative aspect-square h-full w-full p-0 text-center select-none [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",+ defaultClassNames.day,+ ),+ range_start: clsx("rounded-l-md bg-accent", defaultClassNames.range_start),+ range_middle: clsx("rounded-none", defaultClassNames.range_middle),+ range_end: clsx("rounded-r-md bg-accent", defaultClassNames.range_end),+ today: clsx(+ "rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none",+ defaultClassNames.today,+ ),+ outside: clsx(+ "text-muted-foreground aria-selected:text-muted-foreground",+ defaultClassNames.outside,+ ),+ disabled: clsx("text-muted-foreground opacity-50", defaultClassNames.disabled),+ hidden: clsx("invisible", defaultClassNames.hidden),+ ...classNames,+ }}+ components={{+ Root: ({ className, rootRef, ...props }) => {+ return <div data-slot="calendar" ref={rootRef} className={clsx(className)} {...props} />;+ },+ Chevron: ({ className, orientation, ...props }) => {+ if (orientation === "left") {+ return <ChevronLeftIcon className={clsx("size-4", className)} {...props} />;+ }++ if (orientation === "right") {+ return <ChevronRightIcon className={clsx("size-4", className)} {...props} />;+ }++ return <ChevronDownIcon className={clsx("size-4", className)} {...props} />;+ },+ DayButton: CalendarDayButton,+ WeekNumber: ({ children, ...props }) => {+ return (+ <td {...props}>+ <div className="flex size-(--cell-size) items-center justify-center text-center">+ {children}+ </div>+ </td>+ );+ },+ ...components,+ }}+ {...props}+ />+ );+}++function CalendarDayButton({+ className,+ day,+ modifiers,+ ...props+}: React.ComponentProps<typeof DayButton>) {+ const defaultClassNames = getDefaultClassNames();++ const ref = React.useRef<HTMLButtonElement>(null);+ React.useEffect(() => {+ if (modifiers.focused) ref.current?.focus();+ }, [modifiers.focused]);++ return (+ <Button+ ref={ref}+ variant="ghost"+ size="icon"+ data-day={day.date.toLocaleDateString()}+ data-selected-single={+ modifiers.selected &&+ !modifiers.range_start &&+ !modifiers.range_end &&+ !modifiers.range_middle+ }+ data-range-start={modifiers.range_start}+ data-range-end={modifiers.range_end}+ data-range-middle={modifiers.range_middle}+ className={clsx(+ "flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70",+ defaultClassNames.day,+ className,+ )}+ {...props}+ />+ );+}++export { Calendar, CalendarDayButton };diff --git a/examples/shadcn-chat/src/components/ui/card.tsx b/examples/shadcn-chat/src/components/ui/card.tsxnew file mode 100644index 000000000..4936b55e1--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/card.tsx@@ -0,0 +1,75 @@+import * as React from "react";++import { clsx } from "clsx";++function Card({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card"+ className={clsx(+ "flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",+ className,+ )}+ {...props}+ />+ );+}++function CardHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-header"+ className={clsx(+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",+ className,+ )}+ {...props}+ />+ );+}++function CardTitle({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-title"+ className={clsx("leading-none font-semibold", className)}+ {...props}+ />+ );+}++function CardDescription({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-description"+ className={clsx("text-sm text-muted-foreground", className)}+ {...props}+ />+ );+}++function CardAction({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-action"+ className={clsx("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className)}+ {...props}+ />+ );+}++function CardContent({ className, ...props }: React.ComponentProps<"div">) {+ return <div data-slot="card-content" className={clsx("px-6", className)} {...props} />;+}++function CardFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-footer"+ className={clsx("flex items-center px-6 [.border-t]:pt-6", className)}+ {...props}+ />+ );+}++export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };diff --git a/examples/shadcn-chat/src/components/ui/carousel.tsx b/examples/shadcn-chat/src/components/ui/carousel.tsxnew file mode 100644index 000000000..508a33540--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/carousel.tsx@@ -0,0 +1,234 @@+"use client";++import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";+import { ArrowLeft, ArrowRight } from "lucide-react";+import * as React from "react";++import { Button } from "@/components/ui/button";+import { clsx } from "clsx";++type CarouselApi = UseEmblaCarouselType[1];+type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;+type CarouselOptions = UseCarouselParameters[0];+type CarouselPlugin = UseCarouselParameters[1];++type CarouselProps = {+ opts?: CarouselOptions;+ plugins?: CarouselPlugin;+ orientation?: "horizontal" | "vertical";+ setApi?: (api: CarouselApi) => void;+};++type CarouselContextProps = {+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];+ api: ReturnType<typeof useEmblaCarousel>[1];+ scrollPrev: () => void;+ scrollNext: () => void;+ canScrollPrev: boolean;+ canScrollNext: boolean;+} & CarouselProps;++const CarouselContext = React.createContext<CarouselContextProps | null>(null);++function useCarousel() {+ const context = React.useContext(CarouselContext);++ if (!context) {+ throw new Error("useCarousel must be used within a <Carousel />");+ }++ return context;+}++function Carousel({+ orientation = "horizontal",+ opts,+ setApi,+ plugins,+ className,+ children,+ ...props+}: React.ComponentProps<"div"> & CarouselProps) {+ const [carouselRef, api] = useEmblaCarousel(+ {+ ...opts,+ axis: orientation === "horizontal" ? "x" : "y",+ },+ plugins,+ );+ const [canScrollPrev, setCanScrollPrev] = React.useState(false);+ const [canScrollNext, setCanScrollNext] = React.useState(false);++ const onSelect = React.useCallback((api: CarouselApi) => {+ if (!api) return;+ setCanScrollPrev(api.canScrollPrev());+ setCanScrollNext(api.canScrollNext());+ }, []);++ const scrollPrev = React.useCallback(() => {+ api?.scrollPrev();+ }, [api]);++ const scrollNext = React.useCallback(() => {+ api?.scrollNext();+ }, [api]);++ const handleKeyDown = React.useCallback(+ (event: React.KeyboardEvent<HTMLDivElement>) => {+ if (event.key === "ArrowLeft") {+ event.preventDefault();+ scrollPrev();+ } else if (event.key === "ArrowRight") {+ event.preventDefault();+ scrollNext();+ }+ },+ [scrollPrev, scrollNext],+ );++ React.useEffect(() => {+ if (!api || !setApi) return;+ setApi(api);+ }, [api, setApi]);++ React.useEffect(() => {+ if (!api) return;+ onSelect(api);+ api.on("reInit", onSelect);+ api.on("select", onSelect);++ return () => {+ api?.off("select", onSelect);+ };+ }, [api, onSelect]);++ return (+ <CarouselContext.Provider+ value={{+ carouselRef,+ api: api,+ opts,+ orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),+ scrollPrev,+ scrollNext,+ canScrollPrev,+ canScrollNext,+ }}+ >+ <div+ onKeyDownCapture={handleKeyDown}+ className={clsx("relative", className)}+ role="region"+ aria-roledescription="carousel"+ data-slot="carousel"+ {...props}+ >+ {children}+ </div>+ </CarouselContext.Provider>+ );+}++function CarouselContent({ className, ...props }: React.ComponentProps<"div">) {+ const { carouselRef, orientation } = useCarousel();++ return (+ <div ref={carouselRef} className="overflow-hidden" data-slot="carousel-content">+ <div+ className={clsx(+ "flex",+ orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",+ className,+ )}+ {...props}+ />+ </div>+ );+}++function CarouselItem({ className, ...props }: React.ComponentProps<"div">) {+ const { orientation } = useCarousel();++ return (+ <div+ role="group"+ aria-roledescription="slide"+ data-slot="carousel-item"+ className={clsx(+ "min-w-0 shrink-0 grow-0 basis-full",+ orientation === "horizontal" ? "pl-4" : "pt-4",+ className,+ )}+ {...props}+ />+ );+}++function CarouselPrevious({+ className,+ variant = "outline",+ size = "icon",+ ...props+}: React.ComponentProps<typeof Button>) {+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();++ return (+ <Button+ data-slot="carousel-previous"+ variant={variant}+ size={size}+ className={clsx(+ "absolute size-8 rounded-full",+ orientation === "horizontal"+ ? "top-1/2 -left-12 -translate-y-1/2"+ : "-top-12 left-1/2 -translate-x-1/2 rotate-90",+ className,+ )}+ disabled={!canScrollPrev}+ onClick={scrollPrev}+ {...props}+ >+ <ArrowLeft />+ <span className="sr-only">Previous slide</span>+ </Button>+ );+}++function CarouselNext({+ className,+ variant = "outline",+ size = "icon",+ ...props+}: React.ComponentProps<typeof Button>) {+ const { orientation, scrollNext, canScrollNext } = useCarousel();++ return (+ <Button+ data-slot="carousel-next"+ variant={variant}+ size={size}+ className={clsx(+ "absolute size-8 rounded-full",+ orientation === "horizontal"+ ? "top-1/2 -right-12 -translate-y-1/2"+ : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",+ className,+ )}+ disabled={!canScrollNext}+ onClick={scrollNext}+ {...props}+ >+ <ArrowRight />+ <span className="sr-only">Next slide</span>+ </Button>+ );+}++export {+ Carousel,+ CarouselContent,+ CarouselItem,+ CarouselNext,+ CarouselPrevious,+ type CarouselApi,+};diff --git a/examples/shadcn-chat/src/components/ui/chart.tsx b/examples/shadcn-chat/src/components/ui/chart.tsxnew file mode 100644index 000000000..b2a7ebd75--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/chart.tsx@@ -0,0 +1,326 @@+"use client";++import * as React from "react";+import * as RechartsPrimitive from "recharts";++import { clsx } from "clsx";++// Format: { THEME_NAME: CSS_SELECTOR }+const THEMES = { light: "", dark: ".dark" } as const;++export type ChartConfig = {+ [k in string]: {+ label?: React.ReactNode;+ icon?: React.ComponentType;+ } & (+ | { color?: string; theme?: never }+ | { color?: never; theme: Record<keyof typeof THEMES, string> }+ );+};++type ChartContextProps = {+ config: ChartConfig;+};++const ChartContext = React.createContext<ChartContextProps | null>(null);++function useChart() {+ const context = React.useContext(ChartContext);++ if (!context) {+ throw new Error("useChart must be used within a <ChartContainer />");+ }++ return context;+}++function ChartContainer({+ id,+ className,+ children,+ config,+ ...props+}: React.ComponentProps<"div"> & {+ config: ChartConfig;+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];+}) {+ const uniqueId = React.useId();+ const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;++ return (+ <ChartContext.Provider value={{ config }}>+ <div+ data-slot="chart"+ data-chart={chartId}+ className={clsx(+ "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",+ className,+ )}+ {...props}+ >+ <ChartStyle id={chartId} config={config} />+ <RechartsPrimitive.ResponsiveContainer>{children}</RechartsPrimitive.ResponsiveContainer>+ </div>+ </ChartContext.Provider>+ );+}++const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {+ const colorConfig = Object.entries(config).filter(([, config]) => config.theme || config.color);++ if (!colorConfig.length) {+ return null;+ }++ return (+ <style+ dangerouslySetInnerHTML={{+ __html: Object.entries(THEMES)+ .map(+ ([theme, prefix]) => `+${prefix} [data-chart=${id}] {+${colorConfig+ .map(([key, itemConfig]) => {+ const color = itemConfig.theme?.[theme as keyof typeof itemConfig.theme] || itemConfig.color;+ return color ? ` --color-${key}: ${color};` : null;+ })+ .join("\n")}+}+`,+ )+ .join("\n"),+ }}+ />+ );+};++const ChartTooltip = RechartsPrimitive.Tooltip;++function ChartTooltipContent({+ active,+ payload,+ className,+ indicator = "dot",+ hideLabel = false,+ hideIndicator = false,+ label,+ labelFormatter,+ labelClassName,+ formatter,+ color,+ nameKey,+ labelKey,+}: React.ComponentProps<typeof RechartsPrimitive.Tooltip> &+ React.ComponentProps<"div"> & {+ hideLabel?: boolean;+ hideIndicator?: boolean;+ indicator?: "line" | "dot" | "dashed";+ nameKey?: string;+ labelKey?: string;+ }) {+ const { config } = useChart();++ const tooltipLabel = React.useMemo(() => {+ if (hideLabel || !payload?.length) {+ return null;+ }++ const [item] = payload;+ const key = `${labelKey || item?.dataKey || item?.name || "value"}`;+ const itemConfig = getPayloadConfigFromPayload(config, item, key);+ const value =+ !labelKey && typeof label === "string"+ ? config[label as keyof typeof config]?.label || label+ : itemConfig?.label;++ if (labelFormatter) {+ return (+ <div className={clsx("font-medium", labelClassName)}>{labelFormatter(value, payload)}</div>+ );+ }++ if (!value) {+ return null;+ }++ return <div className={clsx("font-medium", labelClassName)}>{value}</div>;+ }, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);++ if (!active || !payload?.length) {+ return null;+ }++ const nestLabel = payload.length === 1 && indicator !== "dot";++ return (+ <div+ className={clsx(+ "grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",+ className,+ )}+ >+ {!nestLabel ? tooltipLabel : null}+ <div className="grid gap-1.5">+ {payload+ .filter((item) => item.type !== "none")+ .map((item, index) => {+ const key = `${nameKey || item.name || item.dataKey || "value"}`;+ const itemConfig = getPayloadConfigFromPayload(config, item, key);+ const indicatorColor = color || item.payload.fill || item.color;++ return (+ <div+ key={item.dataKey}+ className={clsx(+ "flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",+ indicator === "dot" && "items-center",+ )}+ >+ {formatter && item?.value !== undefined && item.name ? (+ formatter(item.value, item.name, item, index, item.payload)+ ) : (+ <>+ {itemConfig?.icon ? (+ <itemConfig.icon />+ ) : (+ !hideIndicator && (+ <div+ className={clsx(+ "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",+ {+ "h-2.5 w-2.5": indicator === "dot",+ "w-1": indicator === "line",+ "w-0 border-[1.5px] border-dashed bg-transparent":+ indicator === "dashed",+ "my-0.5": nestLabel && indicator === "dashed",+ },+ )}+ style={+ {+ "--color-bg": indicatorColor,+ "--color-border": indicatorColor,+ } as React.CSSProperties+ }+ />+ )+ )}+ <div+ className={clsx(+ "flex flex-1 justify-between leading-none",+ nestLabel ? "items-end" : "items-center",+ )}+ >+ <div className="grid gap-1.5">+ {nestLabel ? tooltipLabel : null}+ <span className="text-muted-foreground">+ {itemConfig?.label || item.name}+ </span>+ </div>+ {item.value && (+ <span className="font-mono font-medium text-foreground tabular-nums">+ {item.value.toLocaleString()}+ </span>+ )}+ </div>+ </>+ )}+ </div>+ );+ })}+ </div>+ </div>+ );+}++const ChartLegend = RechartsPrimitive.Legend;++function ChartLegendContent({+ className,+ hideIcon = false,+ payload,+ verticalAlign = "bottom",+ nameKey,+}: React.ComponentProps<"div"> &+ Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {+ hideIcon?: boolean;+ nameKey?: string;+ }) {+ const { config } = useChart();++ if (!payload?.length) {+ return null;+ }++ return (+ <div+ className={clsx(+ "flex items-center justify-center gap-4",+ verticalAlign === "top" ? "pb-3" : "pt-3",+ className,+ )}+ >+ {payload+ .filter((item) => item.type !== "none")+ .map((item) => {+ const key = `${nameKey || item.dataKey || "value"}`;+ const itemConfig = getPayloadConfigFromPayload(config, item, key);++ return (+ <div+ key={item.value}+ className={clsx(+ "flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground",+ )}+ >+ {itemConfig?.icon && !hideIcon ? (+ <itemConfig.icon />+ ) : (+ <div+ className="h-2 w-2 shrink-0 rounded-[2px]"+ style={{+ backgroundColor: item.color,+ }}+ />+ )}+ {itemConfig?.label}+ </div>+ );+ })}+ </div>+ );+}++// Helper to extract item config from a payload.+function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string) {+ if (typeof payload !== "object" || payload === null) {+ return undefined;+ }++ const payloadPayload =+ "payload" in payload && typeof payload.payload === "object" && payload.payload !== null+ ? payload.payload+ : undefined;++ let configLabelKey: string = key;++ if (key in payload && typeof payload[key as keyof typeof payload] === "string") {+ configLabelKey = payload[key as keyof typeof payload] as string;+ } else if (+ payloadPayload &&+ key in payloadPayload &&+ typeof payloadPayload[key as keyof typeof payloadPayload] === "string"+ ) {+ configLabelKey = payloadPayload[key as keyof typeof payloadPayload] as string;+ }++ return configLabelKey in config ? config[configLabelKey] : config[key as keyof typeof config];+}++export {+ ChartContainer,+ ChartLegend,+ ChartLegendContent,+ ChartStyle,+ ChartTooltip,+ ChartTooltipContent,+};diff --git a/examples/shadcn-chat/src/components/ui/checkbox.tsx b/examples/shadcn-chat/src/components/ui/checkbox.tsxnew file mode 100644index 000000000..058e5b18e--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/checkbox.tsx@@ -0,0 +1,29 @@+"use client";++import { CheckIcon } from "lucide-react";+import { Checkbox as CheckboxPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>) {+ return (+ <CheckboxPrimitive.Root+ data-slot="checkbox"+ className={clsx(+ "peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",+ className,+ )}+ {...props}+ >+ <CheckboxPrimitive.Indicator+ data-slot="checkbox-indicator"+ className="grid place-content-center text-current transition-none"+ >+ <CheckIcon className="size-3.5" />+ </CheckboxPrimitive.Indicator>+ </CheckboxPrimitive.Root>+ );+}++export { Checkbox };diff --git a/examples/shadcn-chat/src/components/ui/data-table.tsx b/examples/shadcn-chat/src/components/ui/data-table.tsxnew file mode 100644index 000000000..4bd2cc1f8--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/data-table.tsx@@ -0,0 +1,339 @@+"use client";++import {+ type ColumnDef,+ type ColumnFiltersState,+ type SortingState,+ type VisibilityState,+ flexRender,+ getCoreRowModel,+ getFilteredRowModel,+ getPaginationRowModel,+ getSortedRowModel,+ useReactTable,+} from "@tanstack/react-table";+import {+ ArrowDownIcon,+ ArrowUpIcon,+ ChevronLeftIcon,+ ChevronRightIcon,+ ChevronsLeftIcon,+ ChevronsRightIcon,+ ChevronsUpDownIcon,+ EyeOffIcon,+ Settings2Icon,+} from "lucide-react";+import * as React from "react";++import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuCheckboxItem,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { Input } from "@/components/ui/input";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";++import { clsx } from "clsx";++// ---------------------------------------------------------------------------+// DataTable+// ---------------------------------------------------------------------------++interface DataTableProps<TData, TValue> {+ columns: ColumnDef<TData, TValue>[];+ data: TData[];+ filterColumn?: string;+ filterPlaceholder?: string;+ showColumnToggle?: boolean;+ showPagination?: boolean;+ pageSize?: number;+}++function DataTable<TData, TValue>({+ columns,+ data,+ filterColumn,+ filterPlaceholder,+ showColumnToggle = false,+ showPagination = true,+ pageSize = 10,+}: DataTableProps<TData, TValue>) {+ const [sorting, setSorting] = React.useState<SortingState>([]);+ const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>([]);+ const [columnVisibility, setColumnVisibility] = React.useState<VisibilityState>({});+ const [rowSelection, setRowSelection] = React.useState({});++ const table = useReactTable({+ data,+ columns,+ getCoreRowModel: getCoreRowModel(),+ getPaginationRowModel: showPagination ? getPaginationRowModel() : undefined,+ getSortedRowModel: getSortedRowModel(),+ getFilteredRowModel: getFilteredRowModel(),+ onSortingChange: setSorting,+ onColumnFiltersChange: setColumnFilters,+ onColumnVisibilityChange: setColumnVisibility,+ onRowSelectionChange: setRowSelection,+ state: { sorting, columnFilters, columnVisibility, rowSelection },+ initialState: { pagination: { pageSize } },+ });++ return (+ <div data-slot="data-table" className="space-y-4">+ {(filterColumn || showColumnToggle) && (+ <div className="flex items-center gap-2">+ {filterColumn && (+ <Input+ placeholder={filterPlaceholder ?? `Filter ${filterColumn}...`}+ value={(table.getColumn(filterColumn)?.getFilterValue() as string) ?? ""}+ onChange={(e) => table.getColumn(filterColumn)?.setFilterValue(e.target.value)}+ className="max-w-sm"+ />+ )}+ {showColumnToggle && <DataTableViewOptions table={table} />}+ </div>+ )}++ <div className="overflow-hidden rounded-md border">+ <Table>+ <TableHeader>+ {table.getHeaderGroups().map((headerGroup) => (+ <TableRow key={headerGroup.id}>+ {headerGroup.headers.map((header) => (+ <TableHead key={header.id}>+ {header.isPlaceholder+ ? null+ : flexRender(header.column.columnDef.header, header.getContext())}+ </TableHead>+ ))}+ </TableRow>+ ))}+ </TableHeader>+ <TableBody>+ {table.getRowModel().rows?.length ? (+ table.getRowModel().rows.map((row) => (+ <TableRow key={row.id} data-state={row.getIsSelected() && "selected"}>+ {row.getVisibleCells().map((cell) => (+ <TableCell key={cell.id}>+ {flexRender(cell.column.columnDef.cell, cell.getContext())}+ </TableCell>+ ))}+ </TableRow>+ ))+ ) : (+ <TableRow>+ <TableCell colSpan={columns.length} className="h-24 text-center">+ No results.+ </TableCell>+ </TableRow>+ )}+ </TableBody>+ </Table>+ </div>++ {showPagination && <DataTablePagination table={table} />}+ </div>+ );+}++// ---------------------------------------------------------------------------+// DataTableColumnHeader — sortable + hideable header+// ---------------------------------------------------------------------------++interface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {+ column: import("@tanstack/react-table").Column<TData, TValue>;+ title: string;+}++function DataTableColumnHeader<TData, TValue>({+ column,+ title,+ className,+}: DataTableColumnHeaderProps<TData, TValue>) {+ if (!column.getCanSort()) {+ return <div className={clsx(className)}>{title}</div>;+ }++ return (+ <div className={clsx("flex items-center gap-2", className)}>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="ghost" size="sm" className="-ml-3 h-8 data-[state=open]:bg-accent">+ <span>{title}</span>+ {column.getIsSorted() === "desc" ? (+ <ArrowDownIcon />+ ) : column.getIsSorted() === "asc" ? (+ <ArrowUpIcon />+ ) : (+ <ChevronsUpDownIcon />+ )}+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start">+ <DropdownMenuItem onClick={() => column.toggleSorting(false)}>+ <ArrowUpIcon />+ Asc+ </DropdownMenuItem>+ <DropdownMenuItem onClick={() => column.toggleSorting(true)}>+ <ArrowDownIcon />+ Desc+ </DropdownMenuItem>+ {column.getCanHide() && (+ <>+ <DropdownMenuSeparator />+ <DropdownMenuItem onClick={() => column.toggleVisibility(false)}>+ <EyeOffIcon />+ Hide+ </DropdownMenuItem>+ </>+ )}+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ );+}++// ---------------------------------------------------------------------------+// DataTablePagination — page controls, page size, selection count+// ---------------------------------------------------------------------------++interface DataTablePaginationProps<TData> {+ table: import("@tanstack/react-table").Table<TData>;+}++function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>) {+ return (+ <div className="flex items-center justify-between px-2">+ <div className="flex-1 text-sm text-muted-foreground">+ {table.getFilteredSelectedRowModel().rows.length} of{" "}+ {table.getFilteredRowModel().rows.length} row(s) selected.+ </div>+ <div className="flex items-center gap-6 lg:gap-8">+ <div className="flex items-center gap-2">+ <p className="text-sm font-medium">Rows per page</p>+ <Select+ value={`${table.getState().pagination.pageSize}`}+ onValueChange={(value) => table.setPageSize(Number(value))}+ >+ <SelectTrigger className="h-8 w-[70px]">+ <SelectValue placeholder={table.getState().pagination.pageSize} />+ </SelectTrigger>+ <SelectContent side="top">+ {[10, 20, 25, 30, 40, 50].map((size) => (+ <SelectItem key={size} value={`${size}`}>+ {size}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>+ <div className="flex w-[100px] items-center justify-center text-sm font-medium">+ Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}+ </div>+ <div className="flex items-center gap-2">+ <Button+ variant="outline"+ size="icon"+ className="hidden size-8 lg:flex"+ onClick={() => table.setPageIndex(0)}+ disabled={!table.getCanPreviousPage()}+ >+ <span className="sr-only">Go to first page</span>+ <ChevronsLeftIcon />+ </Button>+ <Button+ variant="outline"+ size="icon"+ className="size-8"+ onClick={() => table.previousPage()}+ disabled={!table.getCanPreviousPage()}+ >+ <span className="sr-only">Go to previous page</span>+ <ChevronLeftIcon />+ </Button>+ <Button+ variant="outline"+ size="icon"+ className="size-8"+ onClick={() => table.nextPage()}+ disabled={!table.getCanNextPage()}+ >+ <span className="sr-only">Go to next page</span>+ <ChevronRightIcon />+ </Button>+ <Button+ variant="outline"+ size="icon"+ className="hidden size-8 lg:flex"+ onClick={() => table.setPageIndex(table.getPageCount() - 1)}+ disabled={!table.getCanNextPage()}+ >+ <span className="sr-only">Go to last page</span>+ <ChevronsRightIcon />+ </Button>+ </div>+ </div>+ </div>+ );+}++// ---------------------------------------------------------------------------+// DataTableViewOptions — column visibility toggle dropdown+// ---------------------------------------------------------------------------++interface DataTableViewOptionsProps<TData> {+ table: import("@tanstack/react-table").Table<TData>;+}++function DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>) {+ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm" className="ml-auto hidden h-8 lg:flex">+ <Settings2Icon />+ View+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="w-[150px]">+ <DropdownMenuLabel>Toggle columns</DropdownMenuLabel>+ <DropdownMenuSeparator />+ {table+ .getAllColumns()+ .filter((column) => typeof column.accessorFn !== "undefined" && column.getCanHide())+ .map((column) => (+ <DropdownMenuCheckboxItem+ key={column.id}+ className="capitalize"+ checked={column.getIsVisible()}+ onCheckedChange={(value) => column.toggleVisibility(!!value)}+ >+ {column.id}+ </DropdownMenuCheckboxItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ );+}++export { DataTable, DataTableColumnHeader, DataTablePagination, DataTableViewOptions };++export type { DataTableProps };diff --git a/examples/shadcn-chat/src/components/ui/dialog.tsx b/examples/shadcn-chat/src/components/ui/dialog.tsxnew file mode 100644index 000000000..20788bb4f--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/dialog.tsx@@ -0,0 +1,120 @@+"use client";++import * as DialogPrimitive from "@radix-ui/react-dialog";+import { clsx } from "clsx";+import { XIcon } from "lucide-react";+import * as React from "react";++function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />;+}++function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;+}++function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;+}++function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;+}++function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"+ className={clsx(+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",+ className,+ )}+ {...props}+ />+ );+}++function DialogContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Content>) {+ return (+ <DialogPortal>+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={clsx(+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",+ className,+ )}+ {...props}+ >+ {children}+ <DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">+ <XIcon />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ </DialogPrimitive.Content>+ </DialogPortal>+ );+}++function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-header"+ className={clsx("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ );+}++function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-footer"+ className={clsx("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)}+ {...props}+ />+ );+}++function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={clsx("text-lg leading-none font-semibold", className)}+ {...props}+ />+ );+}++function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={clsx("text-sm text-muted-foreground", className)}+ {...props}+ />+ );+}++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+};diff --git a/examples/shadcn-chat/src/components/ui/drawer.tsx b/examples/shadcn-chat/src/components/ui/drawer.tsxnew file mode 100644index 000000000..4119658e3--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/drawer.tsx@@ -0,0 +1,113 @@+"use client";++import { clsx } from "clsx";+import * as React from "react";+import { Drawer as DrawerPrimitive } from "vaul";++function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) {+ return <DrawerPrimitive.Root data-slot="drawer" {...props} />;+}++function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {+ return <DrawerPrimitive.Trigger data-slot="drawer-trigger" {...props} />;+}++function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>) {+ return <DrawerPrimitive.Portal data-slot="drawer-portal" {...props} />;+}++function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>) {+ return <DrawerPrimitive.Close data-slot="drawer-close" {...props} />;+}++function DrawerOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {+ return (+ <DrawerPrimitive.Overlay+ data-slot="drawer-overlay"+ className={clsx("fixed inset-0 z-50 bg-black/50", className)}+ {...props}+ />+ );+}++function DrawerContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Content>) {+ return (+ <DrawerPortal>+ <DrawerOverlay />+ <DrawerPrimitive.Content+ data-slot="drawer-content"+ className={clsx(+ "bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",+ className,+ )}+ {...props}+ >+ <div className="bg-muted mx-auto mt-4 h-2 w-[100px] shrink-0 rounded-full" />+ {children}+ </DrawerPrimitive.Content>+ </DrawerPortal>+ );+}++function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="drawer-header"+ className={clsx("flex flex-col gap-1.5 p-4 text-center sm:text-left", className)}+ {...props}+ />+ );+}++function DrawerFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="drawer-footer"+ className={clsx("mt-auto flex flex-col gap-2 p-4", className)}+ {...props}+ />+ );+}++function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>) {+ return (+ <DrawerPrimitive.Title+ data-slot="drawer-title"+ className={clsx("text-lg leading-none font-semibold", className)}+ {...props}+ />+ );+}++function DrawerDescription({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Description>) {+ return (+ <DrawerPrimitive.Description+ data-slot="drawer-description"+ className={clsx("text-sm text-muted-foreground", className)}+ {...props}+ />+ );+}++export {+ Drawer,+ DrawerClose,+ DrawerContent,+ DrawerDescription,+ DrawerFooter,+ DrawerHeader,+ DrawerOverlay,+ DrawerPortal,+ DrawerTitle,+ DrawerTrigger,+};diff --git a/examples/shadcn-chat/src/components/ui/dropdown-menu.tsx b/examples/shadcn-chat/src/components/ui/dropdown-menu.tsxnew file mode 100644index 000000000..cc0ff3e9e--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/dropdown-menu.tsx@@ -0,0 +1,233 @@+"use client";++import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";+import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {+ return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />;+}++function DropdownMenuPortal({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {+ return <DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />;+}++function DropdownMenuTrigger({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {+ return <DropdownMenuPrimitive.Trigger data-slot="dropdown-menu-trigger" {...props} />;+}++function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {+ return <DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />;+}++function DropdownMenuContent({+ className,+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {+ return (+ <DropdownMenuPrimitive.Portal>+ <DropdownMenuPrimitive.Content+ data-slot="dropdown-menu-content"+ sideOffset={sideOffset}+ className={clsx(+ "z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md",+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className,+ )}+ {...props}+ />+ </DropdownMenuPrimitive.Portal>+ );+}++function DropdownMenuItem({+ className,+ inset,+ variant = "default",+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {+ inset?: boolean;+ variant?: "default" | "destructive";+}) {+ return (+ <DropdownMenuPrimitive.Item+ data-slot="dropdown-menu-item"+ data-inset={inset}+ data-variant={variant}+ className={clsx(+ "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ "focus:bg-accent focus:text-accent-foreground",+ "data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20",+ "data-[inset=true]:pl-8 [&_svg:not([class*='text-'])]:text-muted-foreground",+ className,+ )}+ {...props}+ />+ );+}++function DropdownMenuCheckboxItem({+ className,+ children,+ checked,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {+ return (+ <DropdownMenuPrimitive.CheckboxItem+ data-slot="dropdown-menu-checkbox-item"+ className={clsx(+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ checked={checked}+ {...props}+ >+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.CheckboxItem>+ );+}++function DropdownMenuRadioItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {+ return (+ <DropdownMenuPrimitive.RadioItem+ data-slot="dropdown-menu-radio-item"+ className={clsx(+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ >+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <CircleIcon className="size-2 fill-current" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.RadioItem>+ );+}++function DropdownMenuLabel({+ className,+ inset,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {+ inset?: boolean;+}) {+ return (+ <DropdownMenuPrimitive.Label+ data-slot="dropdown-menu-label"+ data-inset={inset}+ className={clsx("px-2 py-1.5 text-sm font-semibold data-[inset=true]:pl-8", className)}+ {...props}+ />+ );+}++function DropdownMenuSeparator({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {+ return (+ <DropdownMenuPrimitive.Separator+ data-slot="dropdown-menu-separator"+ className={clsx("-mx-1 my-1 h-px bg-border", className)}+ {...props}+ />+ );+}++function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="dropdown-menu-shortcut"+ className={clsx("ml-auto text-xs tracking-widest text-muted-foreground", className)}+ {...props}+ />+ );+}++function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {+ return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />;+}++function DropdownMenuSubTrigger({+ className,+ inset,+ children,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {+ inset?: boolean;+}) {+ return (+ <DropdownMenuPrimitive.SubTrigger+ data-slot="dropdown-menu-sub-trigger"+ data-inset={inset}+ className={clsx(+ "flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent data-[state=open]:bg-accent data-[inset=true]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className,+ )}+ {...props}+ >+ {children}+ <ChevronRightIcon className="ml-auto size-4" />+ </DropdownMenuPrimitive.SubTrigger>+ );+}++function DropdownMenuSubContent({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {+ return (+ <DropdownMenuPrimitive.SubContent+ data-slot="dropdown-menu-sub-content"+ className={clsx(+ "z-50 min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg",+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className,+ )}+ {...props}+ />+ );+}++function DropdownMenuRadioGroup({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {+ return <DropdownMenuPrimitive.RadioGroup data-slot="dropdown-menu-radio-group" {...props} />;+}++export {+ DropdownMenu,+ DropdownMenuCheckboxItem,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuPortal,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,+ DropdownMenuSeparator,+ DropdownMenuShortcut,+ DropdownMenuSub,+ DropdownMenuSubContent,+ DropdownMenuSubTrigger,+ DropdownMenuTrigger,+};diff --git a/examples/shadcn-chat/src/components/ui/input.tsx b/examples/shadcn-chat/src/components/ui/input.tsxnew file mode 100644index 000000000..76f62cbb7--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/input.tsx@@ -0,0 +1,21 @@+import * as React from "react";++import { clsx } from "clsx";++function Input({ className, type, ...props }: React.ComponentProps<"input">) {+ return (+ <input+ type={type}+ data-slot="input"+ className={clsx(+ "h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",+ className,+ )}+ {...props}+ />+ );+}++export { Input };diff --git a/examples/shadcn-chat/src/components/ui/label.tsx b/examples/shadcn-chat/src/components/ui/label.tsxnew file mode 100644index 000000000..84a68907e--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/label.tsx@@ -0,0 +1,21 @@+"use client";++import { Label as LabelPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>) {+ return (+ <LabelPrimitive.Root+ data-slot="label"+ className={clsx(+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",+ className,+ )}+ {...props}+ />+ );+}++export { Label };diff --git a/examples/shadcn-chat/src/components/ui/pagination.tsx b/examples/shadcn-chat/src/components/ui/pagination.tsxnew file mode 100644index 000000000..65d90f1d7--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/pagination.tsx@@ -0,0 +1,103 @@+import { buttonVariants } from "@/components/ui/button";+import { type VariantProps } from "class-variance-authority";+import { clsx } from "clsx";+import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";+import * as React from "react";++function Pagination({ className, ...props }: React.ComponentProps<"nav">) {+ return (+ <nav+ role="navigation"+ aria-label="pagination"+ data-slot="pagination"+ className={clsx("mx-auto flex w-full justify-center", className)}+ {...props}+ />+ );+}++function PaginationContent({ className, ...props }: React.ComponentProps<"ul">) {+ return (+ <ul+ data-slot="pagination-content"+ className={clsx("flex flex-row items-center gap-1", className)}+ {...props}+ />+ );+}++function PaginationItem({ ...props }: React.ComponentProps<"li">) {+ return <li data-slot="pagination-item" {...props} />;+}++function PaginationLink({+ className,+ isActive,+ size = "icon",+ ...props+}: React.ComponentProps<"a"> & { isActive?: boolean } & Pick<+ VariantProps<typeof buttonVariants>,+ "size"+ >) {+ return (+ <a+ aria-current={isActive ? "page" : undefined}+ data-slot="pagination-link"+ data-active={isActive}+ className={clsx(buttonVariants({ variant: isActive ? "outline" : "ghost", size }), className)}+ {...props}+ />+ );+}++function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>) {+ return (+ <PaginationLink+ aria-label="Go to previous page"+ size="default"+ className={clsx("gap-1 px-2.5 sm:pl-2.5", className)}+ {...props}+ >+ <ChevronLeftIcon />+ <span className="hidden sm:block">Previous</span>+ </PaginationLink>+ );+}++function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>) {+ return (+ <PaginationLink+ aria-label="Go to next page"+ size="default"+ className={clsx("gap-1 px-2.5 sm:pr-2.5", className)}+ {...props}+ >+ <span className="hidden sm:block">Next</span>+ <ChevronRightIcon />+ </PaginationLink>+ );+}++function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">) {+ return (+ <span+ aria-hidden+ data-slot="pagination-ellipsis"+ className={clsx("flex size-9 items-center justify-center", className)}+ {...props}+ >+ <MoreHorizontalIcon className="size-4" />+ <span className="sr-only">More pages</span>+ </span>+ );+}++export {+ Pagination,+ PaginationContent,+ PaginationEllipsis,+ PaginationItem,+ PaginationLink,+ PaginationNext,+ PaginationPrevious,+};diff --git a/examples/shadcn-chat/src/components/ui/popover.tsx b/examples/shadcn-chat/src/components/ui/popover.tsxnew file mode 100644index 000000000..dd524d327--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/popover.tsx@@ -0,0 +1,74 @@+"use client";++import { Popover as PopoverPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {+ return <PopoverPrimitive.Root data-slot="popover" {...props} />;+}++function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;+}++function PopoverContent({+ className,+ align = "center",+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Content>) {+ return (+ <PopoverPrimitive.Portal>+ <PopoverPrimitive.Content+ data-slot="popover-content"+ align={align}+ sideOffset={sideOffset}+ className={clsx(+ "z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",+ className,+ )}+ {...props}+ />+ </PopoverPrimitive.Portal>+ );+}++function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {+ return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />;+}++function PopoverHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="popover-header"+ className={clsx("flex flex-col gap-1 text-sm", className)}+ {...props}+ />+ );+}++function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">) {+ return <div data-slot="popover-title" className={clsx("font-medium", className)} {...props} />;+}++function PopoverDescription({ className, ...props }: React.ComponentProps<"p">) {+ return (+ <p+ data-slot="popover-description"+ className={clsx("text-muted-foreground", className)}+ {...props}+ />+ );+}++export {+ Popover,+ PopoverAnchor,+ PopoverContent,+ PopoverDescription,+ PopoverHeader,+ PopoverTitle,+ PopoverTrigger,+};diff --git a/examples/shadcn-chat/src/components/ui/progress.tsx b/examples/shadcn-chat/src/components/ui/progress.tsxnew file mode 100644index 000000000..e3489585f--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/progress.tsx@@ -0,0 +1,28 @@+"use client";++import { Progress as ProgressPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Progress({+ className,+ value,+ ...props+}: React.ComponentProps<typeof ProgressPrimitive.Root>) {+ return (+ <ProgressPrimitive.Root+ data-slot="progress"+ className={clsx("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className)}+ {...props}+ >+ <ProgressPrimitive.Indicator+ data-slot="progress-indicator"+ className="h-full w-full flex-1 bg-primary transition-all"+ style={{ transform: `translateX(-${100 - (value || 0)}%)` }}+ />+ </ProgressPrimitive.Root>+ );+}++export { Progress };diff --git a/examples/shadcn-chat/src/components/ui/radio-group.tsx b/examples/shadcn-chat/src/components/ui/radio-group.tsxnew file mode 100644index 000000000..3d3e3fe3a--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/radio-group.tsx@@ -0,0 +1,45 @@+"use client";++import { CircleIcon } from "lucide-react";+import { RadioGroup as RadioGroupPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function RadioGroup({+ className,+ ...props+}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {+ return (+ <RadioGroupPrimitive.Root+ data-slot="radio-group"+ className={clsx("grid gap-3", className)}+ {...props}+ />+ );+}++function RadioGroupItem({+ className,+ ...props+}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {+ return (+ <RadioGroupPrimitive.Item+ data-slot="radio-group-item"+ className={clsx(+ "aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",+ className,+ )}+ {...props}+ >+ <RadioGroupPrimitive.Indicator+ data-slot="radio-group-indicator"+ className="relative flex items-center justify-center"+ >+ <CircleIcon className="absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" />+ </RadioGroupPrimitive.Indicator>+ </RadioGroupPrimitive.Item>+ );+}++export { RadioGroup, RadioGroupItem };diff --git a/examples/shadcn-chat/src/components/ui/select.tsx b/examples/shadcn-chat/src/components/ui/select.tsxnew file mode 100644index 000000000..252923bbe--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/select.tsx@@ -0,0 +1,175 @@+"use client";++import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";+import { Select as SelectPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) {+ return <SelectPrimitive.Root data-slot="select" {...props} />;+}++function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>) {+ return <SelectPrimitive.Group data-slot="select-group" {...props} />;+}++function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>) {+ return <SelectPrimitive.Value data-slot="select-value" {...props} />;+}++function SelectTrigger({+ className,+ size = "default",+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {+ size?: "sm" | "default";+}) {+ return (+ <SelectPrimitive.Trigger+ data-slot="select-trigger"+ data-size={size}+ className={clsx(+ "flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",+ className,+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDownIcon className="size-4 opacity-50" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+ );+}++function SelectContent({+ className,+ children,+ position = "item-aligned",+ align = "center",+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Content>) {+ return (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ data-slot="select-content"+ className={clsx(+ "relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",+ position === "popper" &&+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",+ className,+ )}+ position={position}+ align={align}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ className={clsx(+ "p-1",+ position === "popper" &&+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1",+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+ );+}++function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>) {+ return (+ <SelectPrimitive.Label+ data-slot="select-label"+ className={clsx("px-2 py-1.5 text-xs text-muted-foreground", className)}+ {...props}+ />+ );+}++function SelectItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Item>) {+ return (+ <SelectPrimitive.Item+ data-slot="select-item"+ className={clsx(+ "relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",+ className,+ )}+ {...props}+ >+ <span+ data-slot="select-item-indicator"+ className="absolute right-2 flex size-3.5 items-center justify-center"+ >+ <SelectPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </SelectPrimitive.ItemIndicator>+ </span>+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+ );+}++function SelectSeparator({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {+ return (+ <SelectPrimitive.Separator+ data-slot="select-separator"+ className={clsx("pointer-events-none -mx-1 my-1 h-px bg-border", className)}+ {...props}+ />+ );+}++function SelectScrollUpButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {+ return (+ <SelectPrimitive.ScrollUpButton+ data-slot="select-scroll-up-button"+ className={clsx("flex cursor-default items-center justify-center py-1", className)}+ {...props}+ >+ <ChevronUpIcon className="size-4" />+ </SelectPrimitive.ScrollUpButton>+ );+}++function SelectScrollDownButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {+ return (+ <SelectPrimitive.ScrollDownButton+ data-slot="select-scroll-down-button"+ className={clsx("flex cursor-default items-center justify-center py-1", className)}+ {...props}+ >+ <ChevronDownIcon className="size-4" />+ </SelectPrimitive.ScrollDownButton>+ );+}++export {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+ SelectLabel,+ SelectScrollDownButton,+ SelectScrollUpButton,+ SelectSeparator,+ SelectTrigger,+ SelectValue,+};diff --git a/examples/shadcn-chat/src/components/ui/separator.tsx b/examples/shadcn-chat/src/components/ui/separator.tsxnew file mode 100644index 000000000..458c9c731--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/separator.tsx@@ -0,0 +1,28 @@+"use client";++import { Separator as SeparatorPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Separator({+ className,+ orientation = "horizontal",+ decorative = true,+ ...props+}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {+ return (+ <SeparatorPrimitive.Root+ data-slot="separator"+ decorative={decorative}+ orientation={orientation}+ className={clsx(+ "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",+ className,+ )}+ {...props}+ />+ );+}++export { Separator };diff --git a/examples/shadcn-chat/src/components/ui/slider.tsx b/examples/shadcn-chat/src/components/ui/slider.tsxnew file mode 100644index 000000000..83dd8022e--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/slider.tsx@@ -0,0 +1,58 @@+"use client";++import { Slider as SliderPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Slider({+ className,+ defaultValue,+ value,+ min = 0,+ max = 100,+ ...props+}: React.ComponentProps<typeof SliderPrimitive.Root>) {+ const _values = React.useMemo(+ () => (Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max]),+ [value, defaultValue, min, max],+ );++ return (+ <SliderPrimitive.Root+ data-slot="slider"+ defaultValue={defaultValue}+ value={value}+ min={min}+ max={max}+ className={clsx(+ "relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",+ className,+ )}+ {...props}+ >+ <SliderPrimitive.Track+ data-slot="slider-track"+ className={clsx(+ "relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5",+ )}+ >+ <SliderPrimitive.Range+ data-slot="slider-range"+ className={clsx(+ "absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",+ )}+ />+ </SliderPrimitive.Track>+ {Array.from({ length: _values.length }, (_, index) => (+ <SliderPrimitive.Thumb+ data-slot="slider-thumb"+ key={index}+ className="block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"+ />+ ))}+ </SliderPrimitive.Root>+ );+}++export { Slider };diff --git a/examples/shadcn-chat/src/components/ui/switch.tsx b/examples/shadcn-chat/src/components/ui/switch.tsxnew file mode 100644index 000000000..f970e3c68--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/switch.tsx@@ -0,0 +1,35 @@+"use client";++import { Switch as SwitchPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Switch({+ className,+ size = "default",+ ...props+}: React.ComponentProps<typeof SwitchPrimitive.Root> & {+ size?: "sm" | "default";+}) {+ return (+ <SwitchPrimitive.Root+ data-slot="switch"+ data-size={size}+ className={clsx(+ "peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80",+ className,+ )}+ {...props}+ >+ <SwitchPrimitive.Thumb+ data-slot="switch-thumb"+ className={clsx(+ "pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground",+ )}+ />+ </SwitchPrimitive.Root>+ );+}++export { Switch };diff --git a/examples/shadcn-chat/src/components/ui/table.tsx b/examples/shadcn-chat/src/components/ui/table.tsxnew file mode 100644index 000000000..583bbe2df--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/table.tsx@@ -0,0 +1,94 @@+"use client";++import * as React from "react";++import { clsx } from "clsx";++function Table({ className, ...props }: React.ComponentProps<"table">) {+ return (+ <div data-slot="table-container" className="relative w-full overflow-x-auto">+ <table+ data-slot="table"+ className={clsx("w-full caption-bottom text-sm", className)}+ {...props}+ />+ </div>+ );+}++function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {+ return (+ <thead data-slot="table-header" className={clsx("[&_tr]:border-b", className)} {...props} />+ );+}++function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {+ return (+ <tbody+ data-slot="table-body"+ className={clsx("[&_tr:last-child]:border-0", className)}+ {...props}+ />+ );+}++function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {+ return (+ <tfoot+ data-slot="table-footer"+ className={clsx("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className)}+ {...props}+ />+ );+}++function TableRow({ className, ...props }: React.ComponentProps<"tr">) {+ return (+ <tr+ data-slot="table-row"+ className={clsx(+ "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",+ className,+ )}+ {...props}+ />+ );+}++function TableHead({ className, ...props }: React.ComponentProps<"th">) {+ return (+ <th+ data-slot="table-head"+ className={clsx(+ "h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",+ className,+ )}+ {...props}+ />+ );+}++function TableCell({ className, ...props }: React.ComponentProps<"td">) {+ return (+ <td+ data-slot="table-cell"+ className={clsx(+ "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",+ className,+ )}+ {...props}+ />+ );+}++function TableCaption({ className, ...props }: React.ComponentProps<"caption">) {+ return (+ <caption+ data-slot="table-caption"+ className={clsx("mt-4 text-sm text-muted-foreground", className)}+ {...props}+ />+ );+}++export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };diff --git a/examples/shadcn-chat/src/components/ui/tabs.tsx b/examples/shadcn-chat/src/components/ui/tabs.tsxnew file mode 100644index 000000000..c6ca3b9d3--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/tabs.tsx@@ -0,0 +1,81 @@+"use client";++import { cva, type VariantProps } from "class-variance-authority";+import { Tabs as TabsPrimitive } from "radix-ui";+import * as React from "react";++import { clsx } from "clsx";++function Tabs({+ className,+ orientation = "horizontal",+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Root>) {+ return (+ <TabsPrimitive.Root+ data-slot="tabs"+ data-orientation={orientation}+ orientation={orientation}+ className={clsx("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col", className)}+ {...props}+ />+ );+}++const tabsListVariants = cva(+ "group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",+ {+ variants: {+ variant: {+ default: "bg-muted",+ line: "gap-1 bg-transparent",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ },+);++function TabsList({+ className,+ variant = "default",+ ...props+}: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>) {+ return (+ <TabsPrimitive.List+ data-slot="tabs-list"+ data-variant={variant}+ className={clsx(tabsListVariants({ variant }), className)}+ {...props}+ />+ );+}++function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>) {+ return (+ <TabsPrimitive.Trigger+ data-slot="tabs-trigger"+ className={clsx(+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent",+ "data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground",+ "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",+ className,+ )}+ {...props}+ />+ );+}++function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>) {+ return (+ <TabsPrimitive.Content+ data-slot="tabs-content"+ className={clsx("flex-1 outline-none", className)}+ {...props}+ />+ );+}++export { Tabs, TabsContent, TabsList, tabsListVariants, TabsTrigger };diff --git a/examples/shadcn-chat/src/components/ui/textarea.tsx b/examples/shadcn-chat/src/components/ui/textarea.tsxnew file mode 100644index 000000000..628d9360c--- /dev/null+++ b/examples/shadcn-chat/src/components/ui/textarea.tsx@@ -0,0 +1,18 @@+import * as React from "react";++import { clsx } from "clsx";++function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {+ return (+ <textarea+ data-slot="textarea"+ className={clsx(+ "flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",+ className,+ )}+ {...props}+ />+ );+}++export { Textarea };diff --git a/examples/shadcn-chat/src/generated/system-prompt.txt b/examples/shadcn-chat/src/generated/system-prompt.txtnew file mode 100644index 000000000..ab528a449--- /dev/null+++ b/examples/shadcn-chat/src/generated/system-prompt.txt@@ -0,0 +1,273 @@+You are an AI assistant that responds using openui-lang, a declarative UI language. Your ENTIRE response must be valid openui-lang code — no markdown, no explanations, just openui-lang.++## Syntax Rules++1. Each statement is on its own line: `identifier = Expression`+2. `root` is the entry point — every program must define `root = Card(...)`+3. Expressions are: strings ("..."), numbers, booleans (true/false), arrays ([...]), objects ({...}), or component calls TypeName(arg1, arg2, ...)+4. Use references for readability: define `name = ...` on one line, then use `name` later+5. EVERY variable (except root) MUST be referenced by at least one other variable. Unreferenced variables are silently dropped and will NOT render. Always include defined variables in their parent's children/items array.+6. Arguments are POSITIONAL (order matters, not names)+7. Optional arguments can be omitted from the end+8. No operators, no logic, no variables — only declarations+9. Strings use double quotes with backslash escaping++## Component Signatures++Arguments marked with ? are optional. Sub-components can be inline or referenced; prefer references for better streaming.+The `action` prop type accepts: ContinueConversation (sends message to LLM), OpenUrl (navigates to URL), or Custom (app-defined).++### Content+CardHeader(title: string, description?: string) — Title/description header block.+TextContent(text: string, size?: "small" | "default" | "large" | "small-heavy" | "large-heavy") — Text block with optional size.+MarkDownRenderer(text: string) — Renders markdown text with GFM support.+Alert(title: string, description: string, variant?: "default" | "destructive" | "info" | "success" | "warning") — Alert banner with title and description.+Badge(text: string, variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link") — Inline label/badge.+Avatar(src?: string, alt?: string, fallback: string) — Circular avatar with image and fallback.+CodeBlock(code: string, language?: string, title?: string) — Code block with optional language and title.+Image(src: string, alt?: string) — Displays an image.+ImageBlock(src: string, alt?: string, caption?: string) — Image with optional caption.+Progress(value: number, label?: string) — Progress bar (0-100).+Separator(orientation?: "horizontal" | "vertical") — Horizontal or vertical rule.++### Tables+Table(columns: Col[], [rows]) — Data table. columns: Col[], rows: 2D array.+Col(header: string, type?: "string" | "number" | "boolean") — Column definition for Table.++### Charts (2D)+BarChart(labels: string[], series: Series[], variant?: "grouped" | "stacked", xLabel?: string, yLabel?: string) — Vertical bar chart.+LineChart(labels: string[], series: Series[], xLabel?: string, yLabel?: string) — Line chart for trends.+AreaChart(labels: string[], series: Series[], xLabel?: string, yLabel?: string) — Area chart for volume.+RadarChart(labels: string[], series: Series[]) — Radar chart.+Series(category: string, values: number[]) — One named data series with values matching labels.++### Charts (1D)+PieChart(slices: Slice[], donut?: boolean) — Pie or donut chart.+RadialChart(slices: Slice[]) — Radial bar chart.+Slice(category: string, value: number) — A single slice in a PieChart or RadialChart.++### Charts (Scatter)+ScatterChart(series: ScatterSeries[], xLabel?: string, yLabel?: string) — Scatter plot.+ScatterSeries(category: string, points: Point[]) — Named scatter series with Point references.+Point(x: number, y: number, label?: string) — A single data point in a ScatterChart series.++### Forms+Form(name: string, buttons: Buttons, fields) — Form container with fields and action buttons.+FormControl(label: string, field) — Wraps a form field with a label and error display.+Label(text: string, htmlFor?: string) — Form label.+Input(name: string, placeholder?: string, type?: "text" | "email" | "password" | "number" | "url", rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Text input field.+TextArea(name: string, placeholder?: string, rows?: number, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Multi-line text input.+Select(name: string, items: SelectItem[], placeholder?: string, rules?: {required?: boolean, email?: boolean, url?: boolean, numeric?: boolean, min?: number, max?: number, minLength?: number, maxLength?: number, pattern?: string}) — Dropdown select.+SelectItem(value: string, label: string) — Option for Select dropdown.+DatePicker(name: string, placeholder?: string) — Date selection with calendar popover.+Slider(name: string, min?: number, max?: number, step?: number, defaultValue?: number) — Range slider input.+CheckBoxGroup(name: string, items: CheckBoxItem[]) — Multiple checkbox options.+CheckBoxItem(value: string, label: string) — Option in a CheckBoxGroup.+RadioGroup(name: string, items: RadioItem[]) — Radio selection group.+RadioItem(value: string, label: string) — Option in a RadioGroup.+SwitchGroup(name: string, items: SwitchItem[]) — Group of toggle switches.+SwitchItem(value: string, label: string) — Toggle option in a SwitchGroup.+- Define EACH FormControl as its own reference.+- NEVER nest Form inside Form.+- Form requires explicit buttons.+- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }++### Buttons+Button(label: string, action?: {type: "continue_conversation", context?: string} | {type: "open_url", url: string} | {type: string, params?}, variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link", size?: "default" | "xs" | "sm" | "lg" | "icon") — Clickable button. variant: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link". size: "default" | "xs" | "sm" | "lg" | "icon".+Buttons(buttons: Button[], direction?: "row" | "column") — Group of Button components.++### Follow-ups+FollowUpBlock(items: FollowUpItem[]) — List of follow-up suggestion chips.+FollowUpItem(text: string) — Clickable follow-up suggestion.+- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.+- Clicking a FollowUpItem sends its text to the LLM as a user message.++### Layout+Tabs(items: TabItem[], defaultValue?: string) — Tabbed content.+TabItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Alert | Badge | Avatar | CodeBlock | Image | ImageBlock | Progress | Separator | BarChart | LineChart | AreaChart | PieChart | RadarChart | RadialChart | ScatterChart | Table | TagBlock | Form | Buttons | Heading | Blockquote | InlineCode | PaginationBlock | DialogBlock | AlertDialogBlock | DrawerBlock | CalendarBlock)[]) — Tab panel.+Accordion(items: AccordionItem[], type?: "single" | "multiple") — Collapsible sections.+AccordionItem(value: string, trigger: string, content: (TextContent | MarkDownRenderer | CardHeader | Alert | Badge | Avatar | CodeBlock | Image | ImageBlock | Progress | Separator | BarChart | LineChart | AreaChart | PieChart | RadarChart | RadialChart | ScatterChart | Table | TagBlock | Form | Buttons | Heading | Blockquote | InlineCode | PaginationBlock | DialogBlock | AlertDialogBlock | DrawerBlock | CalendarBlock)[]) — Collapsible item inside Accordion.+Carousel([slides], variant?: "default" | "card") — Horizontal sliding content.+- Use Tabs to present alternative views.+- Carousel takes an array of slides.+- Every slide in a Carousel must have the same structure.++### Data Display+TagBlock(tags: (string | Tag)[]) — Group of tags.+Tag(text: string, variant?: "default" | "secondary" | "destructive" | "outline" | "ghost") — Styled tag/badge.++### Typography+Heading(text: string, level?: "h1" | "h2" | "h3" | "h4") — Heading text. level: "h1" | "h2" | "h3" | "h4". Defaults to "h2".+Blockquote(text: string, cite?: string) — Styled blockquote. Optional cite for attribution.+InlineCode(code: string) — Inline code snippet rendered with monospace font.+- Heading levels: "h1" | "h2" | "h3" | "h4".+- Blockquote for styled quotes with optional cite attribution.+- InlineCode for monospace code snippets.++### Calendar+CalendarBlock(mode?: "single" | "multiple" | "range", defaultMonth?: string, numberOfMonths?: number, captionLayout?: "label" | "dropdown") — Standalone calendar display. mode: "single" | "multiple" | "range". captionLayout: "label" | "dropdown" (default "dropdown"). numberOfMonths defaults to 1.+- CalendarBlock renders a standalone calendar. mode: "single" | "multiple" | "range".+- Use numberOfMonths to show multiple months side by side.++### Navigation+PaginationBlock(currentPage: number, totalPages: number) — Page navigation. currentPage and totalPages control which pages are shown.+- PaginationBlock takes currentPage and totalPages.++### Overlays+DialogBlock(triggerLabel: string, title: string, description?: string, content, triggerVariant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link") — Modal dialog triggered by a button.+AlertDialogBlock(triggerLabel: string, title: string, description: string, confirmLabel?: string, cancelLabel?: string, triggerVariant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link") — Confirmation dialog with cancel and confirm buttons.+DrawerBlock(triggerLabel: string, title: string, description?: string, content) — Bottom drawer panel triggered by a button.+- DialogBlock renders a button that opens a modal dialog.+- AlertDialogBlock renders a confirmation dialog.+- DrawerBlock renders a bottom drawer panel.++### Ungrouped+Card(children: (TextContent | MarkDownRenderer | CardHeader | Alert | Badge | Avatar | CodeBlock | Image | ImageBlock | Progress | Separator | BarChart | LineChart | AreaChart | PieChart | RadarChart | RadialChart | ScatterChart | Table | TagBlock | Form | Buttons | Heading | Blockquote | InlineCode | PaginationBlock | DialogBlock | AlertDialogBlock | DrawerBlock | CalendarBlock | FollowUpBlock | Tabs | Carousel | Accordion)[]) — Vertical container for all content in a chat response.++## Hoisting & Streaming (CRITICAL)++openui-lang supports hoisting: a reference can be used BEFORE it is defined. The parser resolves all references after the full input is parsed.++During streaming, the output is re-parsed on every chunk. Undefined references are temporarily unresolved and appear once their definitions stream in. This creates a progressive top-down reveal — structure first, then data fills in.++**Recommended statement order for optimal streaming:**+1. `root = Card(...)` — UI shell appears immediately+2. Component definitions — fill in as they stream+3. Data values — leaf content last++Always write the root = Card(...) statement first so the UI shell appears immediately, even before child data has streamed in.++## Examples++Example 1 — Table with follow-ups:+root = Card([title, tbl, followUps])+title = TextContent("Top Languages", "large-heavy")+tbl = Table(cols, rows)+cols = [Col("Language", "string"), Col("Users (M)", "number"), Col("Year", "number")]+rows = [["Python", 15.7, 1991], ["JavaScript", 14.2, 1995], ["Java", 12.1, 1995]]+followUps = FollowUpBlock([fu1, fu2])+fu1 = FollowUpItem("Tell me more about Python")+fu2 = FollowUpItem("Show me a JavaScript comparison")++Example 2 — Form with validation:+root = Card([title, form])+title = TextContent("Contact Us", "large-heavy")+form = Form("contact", btns, [nameField, emailField, msgField])+nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))+emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))+msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { required: true, minLength: 10 }))+btns = Buttons([Button("Submit", { type: "continue_conversation" }, "default")])++Example 3 — Alert variants:+root = Card([info, success, warning, danger])+info = Alert("Update available", "A new version is available for download.", "info")+success = Alert("Payment confirmed", "Your transaction was successful.", "success")+warning = Alert("Disk almost full", "You have less than 10% storage remaining.", "warning")+danger = Alert("Account suspended", "Please contact support immediately.", "destructive")++Example 4 — Bar chart with badges:+root = Card([header, badges, chart, followUps])+header = CardHeader("Monthly Revenue", "Q4 2024 performance across regions")+badges = TagBlock([Tag("Live data", "default"), Tag("USD", "secondary"), Tag("Grouped", "outline")])+chart = BarChart(["Oct", "Nov", "Dec"], [s1, s2], "grouped", "Month", "Revenue ($K)")+s1 = Series("North America", [420, 380, 510])+s2 = Series("Europe", [310, 290, 340])+followUps = FollowUpBlock([FollowUpItem("Show as line chart"), FollowUpItem("Add Asia-Pacific")])++Example 5 — Buttons with all variants:+root = Card([title, btns])+title = TextContent("Button Styles", "large-heavy")+btns = Buttons([b1, b2, b3, b4, b5, b6])+b1 = Button("Default", { type: "continue_conversation" }, "default")+b2 = Button("Secondary", { type: "continue_conversation" }, "secondary")+b3 = Button("Outline", { type: "continue_conversation" }, "outline")+b4 = Button("Ghost", { type: "continue_conversation" }, "ghost")+b5 = Button("Link", { type: "continue_conversation" }, "link")+b6 = Button("Destructive", { type: "continue_conversation" }, "destructive")++Example 6 — Tabs with charts:+root = Card([header, tabs])+header = CardHeader("Sales Dashboard", "Compare metrics across time periods")+tabs = Tabs([tab1, tab2, tab3])+tab1 = TabItem("revenue", "Revenue", [revChart])+tab2 = TabItem("users", "Users", [usersChart])+tab3 = TabItem("breakdown", "Breakdown", [pieChart])+revChart = BarChart(["Jan", "Feb", "Mar", "Apr"], [Series("Revenue", [45, 52, 61, 58])], "grouped", "Month", "USD ($K)")+usersChart = LineChart(["Jan", "Feb", "Mar", "Apr"], [Series("Active", [1200, 1350, 1500, 1420]), Series("New", [300, 420, 380, 450])], "Month", "Users")+pieChart = PieChart([Slice("Desktop", 62), Slice("Mobile", 31), Slice("Tablet", 7)])++Example 7 — Typography showcase:+root = Card([h1, h2, h3, quote, codeEx, sep, text])+h1 = Heading("Welcome to the Platform", "h1")+h2 = Heading("Getting Started", "h2")+h3 = Heading("Prerequisites", "h3")+quote = Blockquote("The best way to predict the future is to invent it.", "Alan Kay")+codeEx = InlineCode("npm install @acme/sdk")+sep = Separator()+text = TextContent("Follow the steps below to get up and running.")++Example 8 — Dialog and AlertDialog:+root = Card([title, btns])+title = TextContent("Actions Demo", "large-heavy")+btns = Buttons([viewBtn, deleteBtn])+viewBtn = DialogBlock("View Details", "Product Details", "Full specifications for Widget Pro", [detailText, detailTable], "outline")+detailText = TextContent("Here are the complete specifications:")+detailTable = Table([Col("Spec", "string"), Col("Value", "string")], [["Weight", "2.5 kg"], ["Dimensions", "30x20x10 cm"]])+deleteBtn = AlertDialogBlock("Delete Item", "Are you sure?", "This action cannot be undone. This will permanently delete the item.", "Delete", "Cancel", "destructive")++Example 9 — Pagination:+root = Card([title, table, pagination])+title = TextContent("Search Results", "large-heavy")+table = Table([Col("Name", "string"), Col("Status", "string")], [["Item 1", "Active"], ["Item 2", "Pending"], ["Item 3", "Active"]])+pagination = PaginationBlock(2, 10)++Example 10 — Drawer with content:+root = Card([title, drawerBtn])+title = TextContent("Report Summary", "large-heavy")+drawerBtn = DrawerBlock("View Full Report", "Quarterly Report Q4 2024", "Detailed breakdown of performance metrics", [chart, summary])+chart = BarChart(["Oct", "Nov", "Dec"], [Series("Revenue", [42, 38, 51])], "grouped", "Month", "Revenue ($K)")+summary = TextContent("Overall revenue increased by 12% compared to Q3.")++Example 11 — Standalone calendar:+root = Card([title, cal])+title = TextContent("Pick a Date", "large-heavy")+cal = CalendarBlock("single", "2025-01-01", 1)++Example 12 — Range calendar with two months:+root = Card([title, desc, cal])+title = TextContent("Select Travel Dates", "large-heavy")+desc = TextContent("Choose your check-in and check-out dates.", "small")+cal = CalendarBlock("range", "2025-06-01", 2)++## Important Rules+- ALWAYS start with root = Card(...)+- Write statements in TOP-DOWN order: root → components → data (leverages hoisting for progressive streaming)+- Each statement on its own line+- No trailing text or explanations — output ONLY openui-lang code+- When asked about data, generate realistic/plausible data+- Choose components that best represent the content (tables for comparisons, charts for trends, forms for input, etc.)+- NEVER define a variable without referencing it from the tree. Every variable must be reachable from root, otherwise it will not render.++- Every response is a single Card(children) — children stack vertically automatically.+- Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.+- Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.+- Carousel takes an array of slides, where each slide is an array of content.+- IMPORTANT: Every slide in a Carousel must use the same component structure in the same order.+- For forms, define one FormControl reference per field so controls can stream progressively.+- For forms, always provide the second Form argument with Buttons(...) actions.+- Never nest Form inside Form.+- Button variant mapping — "default" (filled primary), "secondary" (muted), "outline" (bordered), "ghost" (transparent), "link" (underlined text), "destructive" (red/danger). Use the right variant for the context.+- Button size mapping — "default" (standard), "xs" (extra small), "sm" (small), "lg" (large), "icon" (square icon-only).+- Badge/Tag variants — "default" (filled primary), "secondary" (muted fill), "destructive" (red), "outline" (bordered), "ghost" (minimal).+- Alert variants — "default" (neutral), "destructive" (red error), "info" (blue informational), "success" (green confirmation), "warning" (amber caution). Always pick the variant that matches the message tone.+- When the user asks for a specific component (e.g. 'show me an accordion'), generate a realistic, fully-populated example of that component with sample data.+- Use CardHeader for section titles. Use TextContent for body text. Use MarkDownRenderer for rich formatted text with links, bold, lists.+- Use CodeBlock with a language prop for code snippets. Always set the language for syntax context.+- Use Progress for completion/loading indicators.+- Use Avatar for user/profile images. Use Image/ImageBlock for content images.+- Use Heading for section titles with level: "h1" | "h2" | "h3" | "h4". Use Blockquote for quotes. Use InlineCode for inline code.+- Use DialogBlock to show a button that opens a modal dialog with content inside. Good for details/previews.+- Use AlertDialogBlock for confirmation dialogs (delete, logout, etc). Confirm action sends message to LLM.+- Use DrawerBlock for bottom panels with additional content. Good for details/reports.+- Use PaginationBlock for paginated data. currentPage/totalPages are required.+- Use CalendarBlock for standalone calendar display. mode: "single" (pick one date), "multiple" (pick many), "range" (date range). Use numberOfMonths to show side-by-side months.\ No newline at end of filediff --git a/examples/shadcn-chat/src/hooks/use-system-theme.ts b/examples/shadcn-chat/src/hooks/use-system-theme.tsnew file mode 100644index 000000000..64e8b99f0--- /dev/null+++ b/examples/shadcn-chat/src/hooks/use-system-theme.ts@@ -0,0 +1,21 @@+"use client";++import { useEffect, useState } from "react";++function getSystemMode(): "light" | "dark" {+ if (typeof window === "undefined") return "light";+ return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";+}++export function useSystemTheme() {+ const [mode, setMode] = useState<"light" | "dark">(getSystemMode);++ useEffect(() => {+ const mq = window.matchMedia("(prefers-color-scheme: dark)");+ const handler = (e: MediaQueryListEvent) => setMode(e.matches ? "dark" : "light");+ mq.addEventListener("change", handler);+ return () => mq.removeEventListener("change", handler);+ }, []);++ return mode;+}diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/action.ts b/examples/shadcn-chat/src/lib/shadcn-genui/action.tsnew file mode 100644index 000000000..edd4b54b5--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/action.ts@@ -0,0 +1,23 @@+import { BuiltinActionType } from "@openuidev/react-lang";+import { z } from "zod";++const continueConversationAction = z.object({+ type: z.literal(BuiltinActionType.ContinueConversation),+ context: z.string().optional(),+});++const openUrlAction = z.object({+ type: z.literal(BuiltinActionType.OpenUrl),+ url: z.string(),+});++const customAction = z.object({+ type: z.string(),+ params: z.record(z.string(), z.any()).optional(),+});++export const actionSchema = z+ .union([openUrlAction, continueConversationAction, customAction])+ .optional();++export type ActionSchema = z.infer<typeof actionSchema>;diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/accordion.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/accordion.tsxnew file mode 100644index 000000000..61edb2b0b--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/accordion.tsx@@ -0,0 +1,64 @@+"use client";++import {+ AccordionContent,+ AccordionItem,+ AccordionTrigger,+ Accordion as ShadcnAccordion,+} from "@/components/ui/accordion";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";+import { ContentChildUnion } from "../unions";++const AccordionItemSchema = z.object({+ value: z.string(),+ trigger: z.string(),+ content: z.array(ContentChildUnion),+});++export const AccordionItemDef = defineComponent({+ name: "AccordionItem",+ props: AccordionItemSchema,+ description: "Collapsible item inside Accordion. value: unique id, trigger: header text.",+ component: () => null,+});++const AccordionSchema = z.object({+ items: z.array(AccordionItemDef.ref),+ type: z.enum(["single", "multiple"]).optional(),+});++export const Accordion = defineComponent({+ name: "Accordion",+ props: AccordionSchema,+ description: 'Collapsible sections. type: "single" | "multiple". items: AccordionItem[].',+ component: ({ props, renderNode }) => {+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const items = (props.items ?? []) as any[];+ const type = props.type ?? "multiple";++ if (type === "single") {+ return (+ <ShadcnAccordion type="single" collapsible>+ {items.map((item, i) => (+ <AccordionItem key={i} value={String(item?.props?.value ?? i)}>+ <AccordionTrigger>{String(item?.props?.trigger ?? "")}</AccordionTrigger>+ <AccordionContent>{renderNode(item?.props?.content)}</AccordionContent>+ </AccordionItem>+ ))}+ </ShadcnAccordion>+ );+ }++ return (+ <ShadcnAccordion type="multiple">+ {items.map((item, i) => (+ <AccordionItem key={i} value={String(item?.props?.value ?? i)}>+ <AccordionTrigger>{String(item?.props?.trigger ?? "")}</AccordionTrigger>+ <AccordionContent>{renderNode(item?.props?.content)}</AccordionContent>+ </AccordionItem>+ ))}+ </ShadcnAccordion>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/alert-dialog-block.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/alert-dialog-block.tsxnew file mode 100644index 000000000..aed55f5d4--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/alert-dialog-block.tsx@@ -0,0 +1,65 @@+"use client";++import {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+ AlertDialogTrigger,+} from "@/components/ui/alert-dialog";+import { Button } from "@/components/ui/button";+import { BuiltinActionType, defineComponent, useTriggerAction } from "@openuidev/react-lang";+import { z } from "zod";++const AlertDialogBlockSchema = z.object({+ triggerLabel: z.string(),+ title: z.string(),+ description: z.string(),+ confirmLabel: z.string().optional(),+ cancelLabel: z.string().optional(),+ triggerVariant: z+ .enum(["default", "destructive", "outline", "secondary", "ghost", "link"])+ .optional(),+});++export const AlertDialogBlock = defineComponent({+ name: "AlertDialogBlock",+ props: AlertDialogBlockSchema,+ description:+ "Confirmation dialog with cancel and confirm buttons. Clicking confirm sends the confirmLabel as a message.",+ component: ({ props }) => {+ const triggerAction = useTriggerAction();+ const confirmLabel = props.confirmLabel ?? "Continue";+ const cancelLabel = props.cancelLabel ?? "Cancel";++ return (+ <AlertDialog>+ <AlertDialogTrigger asChild>+ <Button variant={props.triggerVariant ?? "outline"}>{props.triggerLabel}</Button>+ </AlertDialogTrigger>+ <AlertDialogContent>+ <AlertDialogHeader>+ <AlertDialogTitle>{props.title}</AlertDialogTitle>+ <AlertDialogDescription>{props.description}</AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogCancel>{cancelLabel}</AlertDialogCancel>+ <AlertDialogAction+ onClick={() =>+ triggerAction(confirmLabel, undefined, {+ type: BuiltinActionType.ContinueConversation,+ })+ }+ >+ {confirmLabel}+ </AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/alert.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/alert.tsxnew file mode 100644index 000000000..91397bcc6--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/alert.tsx@@ -0,0 +1,49 @@+"use client";++import { AlertDescription, AlertTitle, Alert as ShadcnAlert } from "@/components/ui/alert";+import { defineComponent } from "@openuidev/react-lang";+import { AlertCircle, CheckCircle2, Info, TriangleAlert } from "lucide-react";+import { z } from "zod";++const AlertSchema = z.object({+ title: z.string(),+ description: z.string(),+ variant: z.enum(["default", "destructive", "info", "success", "warning"]).optional(),+});++const variantStyles: Record<string, string> = {+ info: "border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-800 dark:bg-blue-950 dark:text-blue-200 [&>svg]:text-blue-600 dark:[&>svg]:text-blue-400",+ success:+ "border-green-200 bg-green-50 text-green-900 dark:border-green-800 dark:bg-green-950 dark:text-green-200 [&>svg]:text-green-600 dark:[&>svg]:text-green-400",+ warning:+ "border-amber-200 bg-amber-50 text-amber-900 dark:border-amber-800 dark:bg-amber-950 dark:text-amber-200 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-400",+};++const iconMap = {+ default: null,+ destructive: AlertCircle,+ info: Info,+ success: CheckCircle2,+ warning: TriangleAlert,+};++export const Alert = defineComponent({+ name: "Alert",+ props: AlertSchema,+ description:+ 'Alert banner with icon, title, and description. variant: "default" | "destructive" | "info" | "success" | "warning".',+ component: ({ props }) => {+ const v = props.variant ?? "default";+ const shadcnVariant = v === "destructive" ? "destructive" : "default";+ const extraClass = variantStyles[v] ?? "";+ const Icon = iconMap[v as keyof typeof iconMap];++ return (+ <ShadcnAlert variant={shadcnVariant} className={extraClass}>+ {Icon && <Icon className="size-4" />}+ <AlertTitle>{props.title}</AlertTitle>+ <AlertDescription>{props.description}</AlertDescription>+ </ShadcnAlert>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/avatar.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/avatar.tsxnew file mode 100644index 000000000..36fb27f94--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/avatar.tsx@@ -0,0 +1,23 @@+"use client";++import { AvatarFallback, AvatarImage, Avatar as ShadcnAvatar } from "@/components/ui/avatar";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const AvatarSchema = z.object({+ src: z.string().optional(),+ alt: z.string().optional(),+ fallback: z.string(),+});++export const Avatar = defineComponent({+ name: "Avatar",+ props: AvatarSchema,+ description: "Circular avatar with image and fallback text.",+ component: ({ props }) => (+ <ShadcnAvatar>+ {props.src && <AvatarImage src={props.src} alt={props.alt ?? ""} />}+ <AvatarFallback>{props.fallback}</AvatarFallback>+ </ShadcnAvatar>+ ),+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/badge.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/badge.tsxnew file mode 100644index 000000000..e9d0ef598--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/badge.tsx@@ -0,0 +1,20 @@+"use client";++import { Badge as ShadcnBadge } from "@/components/ui/badge";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const BadgeSchema = z.object({+ text: z.string(),+ variant: z.enum(["default", "secondary", "destructive", "outline", "ghost", "link"]).optional(),+});++export const ShadcnBadgeComponent = defineComponent({+ name: "Badge",+ props: BadgeSchema,+ description:+ 'Inline label/badge. variant: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link".',+ component: ({ props }) => (+ <ShadcnBadge variant={props.variant ?? "default"}>{props.text}</ShadcnBadge>+ ),+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/button.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/button.tsxnew file mode 100644index 000000000..b407bb23e--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/button.tsx@@ -0,0 +1,64 @@+"use client";++import { Button as ShadcnButton } from "@/components/ui/button";+import {+ BuiltinActionType,+ defineComponent,+ useFormName,+ useFormValidation,+ useIsStreaming,+ useTriggerAction,+} from "@openuidev/react-lang";+import { z } from "zod";+import { actionSchema, type ActionSchema } from "../action";++const ButtonSchema = z.object({+ label: z.string(),+ action: actionSchema,+ variant: z.enum(["default", "destructive", "outline", "secondary", "ghost", "link"]).optional(),+ size: z.enum(["default", "xs", "sm", "lg", "icon"]).optional(),+});++export const Button = defineComponent({+ name: "Button",+ props: ButtonSchema,+ description:+ 'Clickable button. variant: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link". size: "default" | "xs" | "sm" | "lg" | "icon". action: { type: "continue_conversation" | "open_url", url? }.',+ component: ({ props }) => {+ const triggerAction = useTriggerAction();+ const formName = useFormName();+ const formValidation = useFormValidation();+ const isStreaming = useIsStreaming();++ const label = String(props.label ?? "");+ const action = props.action as ActionSchema;+ const variant = props.variant ?? "default";+ const size = props.size ?? "default";++ return (+ <ShadcnButton+ variant={variant}+ size={size}+ disabled={isStreaming}+ onClick={() => {+ const actionType = action?.type ?? BuiltinActionType.ContinueConversation;+ if (+ formValidation &&+ variant === "default" &&+ actionType === BuiltinActionType.ContinueConversation+ ) {+ const valid = formValidation.validateForm();+ if (!valid) return;+ }+ const actionParams =+ action?.type === BuiltinActionType.OpenUrl+ ? { url: (action as { url: string }).url }+ : (action as { params?: Record<string, unknown> })?.params;+ triggerAction(label, formName, { type: actionType, params: actionParams });+ }}+ >+ {label}+ </ShadcnButton>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/buttons.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/buttons.tsxnew file mode 100644index 000000000..75bb51d2a--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/buttons.tsx@@ -0,0 +1,24 @@+"use client";++import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";+import { Button } from "./button";++const ButtonsSchema = z.object({+ buttons: z.array(Button.ref),+ direction: z.enum(["row", "column"]).optional(),+});++export const Buttons = defineComponent({+ name: "Buttons",+ props: ButtonsSchema,+ description: 'Group of Button components. direction: "row" | "column".',+ component: ({ props, renderNode }) => {+ const dir = props.direction ?? "row";+ return (+ <div className={`flex gap-2 ${dir === "column" ? "flex-col" : "flex-row flex-wrap"}`}>+ {renderNode(props.buttons)}+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/calendar-block.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/calendar-block.tsxnew file mode 100644index 000000000..6e0b5a3be--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/calendar-block.tsx@@ -0,0 +1,68 @@+"use client";++import { Calendar } from "@/components/ui/calendar";+import { defineComponent } from "@openuidev/react-lang";+import React from "react";+import { z } from "zod";++const CalendarBlockSchema = z.object({+ mode: z.enum(["single", "multiple", "range"]).optional(),+ defaultMonth: z.string().optional(),+ numberOfMonths: z.number().optional(),+ captionLayout: z.enum(["label", "dropdown"]).optional(),+});++export const CalendarBlock = defineComponent({+ name: "CalendarBlock",+ props: CalendarBlockSchema,+ description:+ 'Standalone calendar display. mode: "single" | "multiple" | "range". captionLayout: "label" | "dropdown" (default "dropdown"). numberOfMonths defaults to 1.',+ component: ({ props }) => {+ const [selected, setSelected] = React.useState<Date | undefined>();+ const [multiSelected, setMultiSelected] = React.useState<Date[]>([]);+ const [range, setRange] = React.useState<{ from: Date; to?: Date } | undefined>();++ const mode = props.mode ?? "single";+ const numberOfMonths = props.numberOfMonths ?? 1;+ const captionLayout = props.captionLayout ?? "dropdown";+ const defaultMonth = props.defaultMonth ? new Date(props.defaultMonth) : undefined;++ const common = {+ numberOfMonths,+ defaultMonth,+ captionLayout,+ className: "rounded-lg border",+ };++ if (mode === "range") {+ return (+ <Calendar+ mode="range"+ selected={range}+ onSelect={(r) => setRange(r as { from: Date; to?: Date } | undefined)}+ {...common}+ />+ );+ }++ if (mode === "multiple") {+ return (+ <Calendar+ mode="multiple"+ selected={multiSelected}+ onSelect={(d) => setMultiSelected((d ?? []) as Date[])}+ {...common}+ />+ );+ }++ return (+ <Calendar+ mode="single"+ selected={selected}+ onSelect={(d) => setSelected(d as Date | undefined)}+ {...common}+ />+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/card-header.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/card-header.tsxnew file mode 100644index 000000000..d9a8339ee--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/card-header.tsx@@ -0,0 +1,22 @@+"use client";++import { CardDescription, CardTitle, CardHeader as ShadcnCardHeader } from "@/components/ui/card";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const CardHeaderSchema = z.object({+ title: z.string(),+ description: z.string().optional(),+});++export const CardHeader = defineComponent({+ name: "CardHeader",+ props: CardHeaderSchema,+ description: "Title/description header block for a Card.",+ component: ({ props }) => (+ <ShadcnCardHeader className="p-0">+ <CardTitle>{props.title}</CardTitle>+ {props.description && <CardDescription>{props.description}</CardDescription>}+ </ShadcnCardHeader>+ ),+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/carousel.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/carousel.tsxnew file mode 100644index 000000000..167d946e9--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/carousel.tsx@@ -0,0 +1,48 @@+"use client";++import { Card, CardContent } from "@/components/ui/card";+import {+ CarouselContent,+ CarouselItem,+ CarouselNext,+ CarouselPrevious,+ Carousel as ShadcnCarousel,+} from "@/components/ui/carousel";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const CarouselSchema = z.object({+ slides: z.array(z.array(z.any())),+ variant: z.enum(["default", "card"]).optional(),+});++export const Carousel = defineComponent({+ name: "Carousel",+ props: CarouselSchema,+ description:+ 'Horizontal sliding content. slides: array of slide arrays. variant: "default" | "card".',+ component: ({ props, renderNode }) => {+ const slides = (props.slides ?? []) as unknown[][];+ const isCard = props.variant === "card";++ return (+ <ShadcnCarousel className="w-full">+ <CarouselContent>+ {slides.map((slide, i) => (+ <CarouselItem key={i}>+ {isCard ? (+ <Card>+ <CardContent className="p-4 space-y-3">{renderNode(slide)}</CardContent>+ </Card>+ ) : (+ <div className="space-y-3">{renderNode(slide)}</div>+ )}+ </CarouselItem>+ ))}+ </CarouselContent>+ <CarouselPrevious />+ <CarouselNext />+ </ShadcnCarousel>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/charts.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/charts.tsxnew file mode 100644index 000000000..7484d64e8--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/charts.tsx@@ -0,0 +1,384 @@+"use client";++import {+ ChartContainer,+ ChartTooltip,+ ChartTooltipContent,+ type ChartConfig,+} from "@/components/ui/chart";+import { defineComponent } from "@openuidev/react-lang";+import {+ Area,+ Bar,+ CartesianGrid,+ Cell,+ Line,+ Pie,+ PolarAngleAxis,+ PolarGrid,+ Radar,+ RadialBar,+ AreaChart as RechartsAreaChart,+ BarChart as RechartsBarChart,+ LineChart as RechartsLineChart,+ PieChart as RechartsPieChart,+ RadarChart as RechartsRadarChart,+ RadialBarChart as RechartsRadialBarChart,+ ScatterChart as RechartsScatterChart,+ Scatter,+ XAxis,+ YAxis,+} from "recharts";+import { z } from "zod";++import { buildChartData, buildSliceData, hasAllProps } from "../helpers";++const COLORS = [+ "var(--chart-1)",+ "var(--chart-2)",+ "var(--chart-3)",+ "var(--chart-4)",+ "var(--chart-5)",+];++function buildConfig(keys: string[]): ChartConfig {+ const config: ChartConfig = {};+ keys.forEach((key, i) => {+ config[key] = { label: key, color: COLORS[i % COLORS.length] };+ });+ return config;+}++function getSeriesKeys(data: Record<string, string | number>[]): string[] {+ if (!data.length) return [];+ return Object.keys(data[0]).filter((k) => k !== "category");+}++// ── Virtual sub-components ──++const SeriesSchema = z.object({+ category: z.string(),+ values: z.array(z.number()),+});++export const Series = defineComponent({+ name: "Series",+ props: SeriesSchema,+ description: "One named data series with values matching labels.",+ component: () => null,+});++const SliceSchema = z.object({+ category: z.string(),+ value: z.number(),+});++export const Slice = defineComponent({+ name: "Slice",+ props: SliceSchema,+ description: "A single slice in a PieChart or RadialChart.",+ component: () => null,+});++const PointSchema = z.object({+ x: z.number(),+ y: z.number(),+ label: z.string().optional(),+});++export const Point = defineComponent({+ name: "Point",+ props: PointSchema,+ description: "A single data point in a ScatterChart series.",+ component: () => null,+});++const ScatterSeriesSchema = z.object({+ category: z.string(),+ points: z.array(Point.ref),+});++export const ScatterSeries = defineComponent({+ name: "ScatterSeries",+ props: ScatterSeriesSchema,+ description: "Named scatter series with Point references.",+ component: () => null,+});++// ── BarChart ──++export const BarChartCondensed = defineComponent({+ name: "BarChart",+ props: z.object({+ labels: z.array(z.string()),+ series: z.array(SeriesSchema),+ variant: z.enum(["grouped", "stacked"]).optional(),+ xLabel: z.string().optional(),+ yLabel: z.string().optional(),+ }),+ description: "Vertical bar chart. Use for comparing values across categories.",+ component: ({ props }) => {+ if (!hasAllProps(props as Record<string, unknown>, "labels", "series")) return null;+ const data = buildChartData(props.labels, props.series);+ if (!data.length) return null;+ const keys = getSeriesKeys(data);+ const config = buildConfig(keys);+ const stacked = props.variant === "stacked";++ return (+ <ChartContainer config={config} className="min-h-[200px] w-full">+ <RechartsBarChart data={data}>+ <CartesianGrid vertical={false} />+ <XAxis dataKey="category" tickLine={false} axisLine={false} />+ <YAxis tickLine={false} axisLine={false} />+ <ChartTooltip content={<ChartTooltipContent />} />+ {keys.map((key, i) => (+ <Bar+ key={key}+ dataKey={key}+ fill={COLORS[i % COLORS.length]}+ radius={4}+ stackId={stacked ? "stack" : undefined}+ isAnimationActive={false}+ />+ ))}+ </RechartsBarChart>+ </ChartContainer>+ );+ },+});++// ── LineChart ──++export const LineChartCondensed = defineComponent({+ name: "LineChart",+ props: z.object({+ labels: z.array(z.string()),+ series: z.array(SeriesSchema),+ xLabel: z.string().optional(),+ yLabel: z.string().optional(),+ }),+ description: "Line chart for trends over categories.",+ component: ({ props }) => {+ if (!hasAllProps(props as Record<string, unknown>, "labels", "series")) return null;+ const data = buildChartData(props.labels, props.series);+ if (!data.length) return null;+ const keys = getSeriesKeys(data);+ const config = buildConfig(keys);++ return (+ <ChartContainer config={config} className="min-h-[200px] w-full">+ <RechartsLineChart data={data}>+ <CartesianGrid vertical={false} />+ <XAxis dataKey="category" tickLine={false} axisLine={false} />+ <YAxis tickLine={false} axisLine={false} />+ <ChartTooltip content={<ChartTooltipContent />} />+ {keys.map((key, i) => (+ <Line+ key={key}+ type="monotone"+ dataKey={key}+ stroke={COLORS[i % COLORS.length]}+ strokeWidth={2}+ dot={false}+ isAnimationActive={false}+ />+ ))}+ </RechartsLineChart>+ </ChartContainer>+ );+ },+});++// ── AreaChart ──++export const AreaChartCondensed = defineComponent({+ name: "AreaChart",+ props: z.object({+ labels: z.array(z.string()),+ series: z.array(SeriesSchema),+ xLabel: z.string().optional(),+ yLabel: z.string().optional(),+ }),+ description: "Area chart for showing volume over categories.",+ component: ({ props }) => {+ if (!hasAllProps(props as Record<string, unknown>, "labels", "series")) return null;+ const data = buildChartData(props.labels, props.series);+ if (!data.length) return null;+ const keys = getSeriesKeys(data);+ const config = buildConfig(keys);++ return (+ <ChartContainer config={config} className="min-h-[200px] w-full">+ <RechartsAreaChart data={data}>+ <CartesianGrid vertical={false} />+ <XAxis dataKey="category" tickLine={false} axisLine={false} />+ <YAxis tickLine={false} axisLine={false} />+ <ChartTooltip content={<ChartTooltipContent />} />+ {keys.map((key, i) => (+ <Area+ key={key}+ type="monotone"+ dataKey={key}+ fill={COLORS[i % COLORS.length]}+ stroke={COLORS[i % COLORS.length]}+ fillOpacity={0.2}+ isAnimationActive={false}+ />+ ))}+ </RechartsAreaChart>+ </ChartContainer>+ );+ },+});++// ── PieChart ──++export const PieChartComponent = defineComponent({+ name: "PieChart",+ props: z.object({+ slices: z.array(SliceSchema),+ donut: z.boolean().optional(),+ }),+ description: "Pie or donut chart. slices: Slice[], donut: boolean for ring chart.",+ component: ({ props }) => {+ const data = buildSliceData(props.slices);+ if (!data.length) return null;+ const config = buildConfig(data.map((d) => d.category as string));++ return (+ <ChartContainer+ config={config}+ className="min-h-[200px] w-full mx-auto aspect-square max-h-[250px]"+ >+ <RechartsPieChart>+ <ChartTooltip content={<ChartTooltipContent nameKey="category" />} />+ <Pie+ data={data}+ dataKey="value"+ nameKey="category"+ innerRadius={props.donut ? "50%" : 0}+ isAnimationActive={false}+ >+ {data.map((_, i) => (+ <Cell key={i} fill={COLORS[i % COLORS.length]} />+ ))}+ </Pie>+ </RechartsPieChart>+ </ChartContainer>+ );+ },+});++// ── RadarChart ──++export const RadarChartComponent = defineComponent({+ name: "RadarChart",+ props: z.object({+ labels: z.array(z.string()),+ series: z.array(SeriesSchema),+ }),+ description: "Radar/spider chart for multi-dimensional comparison.",+ component: ({ props }) => {+ if (!hasAllProps(props as Record<string, unknown>, "labels", "series")) return null;+ const data = buildChartData(props.labels, props.series);+ if (!data.length) return null;+ const keys = getSeriesKeys(data);+ const config = buildConfig(keys);++ return (+ <ChartContainer+ config={config}+ className="min-h-[200px] w-full mx-auto aspect-square max-h-[250px]"+ >+ <RechartsRadarChart data={data}>+ <PolarGrid />+ <PolarAngleAxis dataKey="category" />+ <ChartTooltip content={<ChartTooltipContent />} />+ {keys.map((key, i) => (+ <Radar+ key={key}+ dataKey={key}+ fill={COLORS[i % COLORS.length]}+ fillOpacity={0.3}+ stroke={COLORS[i % COLORS.length]}+ isAnimationActive={false}+ />+ ))}+ </RechartsRadarChart>+ </ChartContainer>+ );+ },+});++// ── RadialChart ──++export const RadialChartComponent = defineComponent({+ name: "RadialChart",+ props: z.object({+ slices: z.array(SliceSchema),+ }),+ description: "Radial bar chart for displaying categorized values in rings.",+ component: ({ props }) => {+ const data = buildSliceData(props.slices);+ if (!data.length) return null;+ const colored = data.map((d, i) => ({ ...d, fill: COLORS[i % COLORS.length] }));+ const config = buildConfig(data.map((d) => d.category as string));++ return (+ <ChartContainer+ config={config}+ className="min-h-[200px] w-full mx-auto aspect-square max-h-[250px]"+ >+ <RechartsRadialBarChart data={colored} innerRadius={30} outerRadius={110}>+ <ChartTooltip content={<ChartTooltipContent nameKey="category" />} />+ <RadialBar dataKey="value" isAnimationActive={false} />+ </RechartsRadialBarChart>+ </ChartContainer>+ );+ },+});++// ── ScatterChart ──++export const ScatterChartComponent = defineComponent({+ name: "ScatterChart",+ props: z.object({+ series: z.array(ScatterSeriesSchema),+ xLabel: z.string().optional(),+ yLabel: z.string().optional(),+ }),+ description: "Scatter plot with named series of Point references.",+ component: ({ props }) => {+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const seriesArr = ((props.series ?? []) as any[]).map((s) => ({+ category: String(s?.props?.category ?? ""),+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ points: ((s?.props?.points ?? []) as any[]).map((p: any) => ({+ x: Number(p?.props?.x ?? 0),+ y: Number(p?.props?.y ?? 0),+ })),+ }));+ const config = buildConfig(seriesArr.map((s) => s.category));++ return (+ <ChartContainer config={config} className="min-h-[200px] w-full">+ <RechartsScatterChart>+ <CartesianGrid />+ <XAxis type="number" dataKey="x" name={props.xLabel ?? "x"} />+ <YAxis type="number" dataKey="y" name={props.yLabel ?? "y"} />+ <ChartTooltip content={<ChartTooltipContent />} />+ {seriesArr.map((s, i) => (+ <Scatter+ key={s.category}+ name={s.category}+ data={s.points}+ fill={COLORS[i % COLORS.length]}+ isAnimationActive={false}+ />+ ))}+ </RechartsScatterChart>+ </ChartContainer>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/checkbox-group.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/checkbox-group.tsxnew file mode 100644index 000000000..050a5d858--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/checkbox-group.tsx@@ -0,0 +1,69 @@+"use client";++import { Checkbox } from "@/components/ui/checkbox";+import { Label as ShadcnLabel } from "@/components/ui/label";+import {+ defineComponent,+ useFormName,+ useGetFieldValue,+ useIsStreaming,+ useSetFieldValue,+} from "@openuidev/react-lang";+import { z } from "zod";++const CheckBoxItemSchema = z.object({+ value: z.string(),+ label: z.string(),+});++export const CheckBoxItem = defineComponent({+ name: "CheckBoxItem",+ props: CheckBoxItemSchema,+ description: "Option in a CheckBoxGroup.",+ component: () => null,+});++const CheckBoxGroupSchema = z.object({+ name: z.string(),+ items: z.array(CheckBoxItem.ref),+});++export const CheckBoxGroup = defineComponent({+ name: "CheckBoxGroup",+ props: CheckBoxGroupSchema,+ description: "Multiple checkbox options. items: CheckBoxItem[].",+ component: ({ props }) => {+ const formName = useFormName();+ const getFieldValue = useGetFieldValue();+ const setFieldValue = useSetFieldValue();+ const isStreaming = useIsStreaming();++ const fieldName = props.name as string;+ const current = (getFieldValue(formName, fieldName) as string[] | undefined) ?? [];+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const items = ((props.items ?? []) as any[]).filter((item) => item?.props?.value);++ return (+ <div className="space-y-2">+ {items.map((item, i) => {+ const val = item.props.value as string;+ const checked = current.includes(val);+ return (+ <div key={i} className="flex items-center space-x-2">+ <Checkbox+ id={`${fieldName}-${val}`}+ checked={checked}+ onCheckedChange={(c) => {+ const next = c ? [...current, val] : current.filter((v: string) => v !== val);+ setFieldValue(formName, "CheckBoxGroup", fieldName, next, true);+ }}+ disabled={isStreaming}+ />+ <ShadcnLabel htmlFor={`${fieldName}-${val}`}>{item.props.label || val}</ShadcnLabel>+ </div>+ );+ })}+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/code-block.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/code-block.tsxnew file mode 100644index 000000000..9ec1720c1--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/code-block.tsx@@ -0,0 +1,32 @@+"use client";++import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const CodeBlockSchema = z.object({+ code: z.string(),+ language: z.string().optional(),+ title: z.string().optional(),+});++export const CodeBlock = defineComponent({+ name: "CodeBlock",+ props: CodeBlockSchema,+ description: "Syntax-highlighted code block with optional language and title.",+ component: ({ props }) => {+ const code = props.code == null ? "" : String(props.code);+ return (+ <div className="rounded-lg border bg-muted">+ {props.title && (+ <div className="border-b px-4 py-2 text-xs font-medium text-muted-foreground">+ {props.title}+ {props.language && <span className="ml-2 text-xs opacity-60">{props.language}</span>}+ </div>+ )}+ <pre className="overflow-x-auto p-4">+ <code className="text-sm font-mono">{code}</code>+ </pre>+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/date-picker.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/date-picker.tsxnew file mode 100644index 000000000..13eb105d3--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/date-picker.tsx@@ -0,0 +1,62 @@+"use client";++import { Button as ShadcnButton } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";+import {+ defineComponent,+ useFormName,+ useGetFieldValue,+ useIsStreaming,+ useSetFieldValue,+} from "@openuidev/react-lang";+import { format } from "date-fns";+import { CalendarIcon } from "lucide-react";+import { z } from "zod";++const DatePickerSchema = z.object({+ name: z.string(),+ placeholder: z.string().optional(),+});++export const DatePicker = defineComponent({+ name: "DatePicker",+ props: DatePickerSchema,+ description: "Date selection input with calendar popover.",+ component: ({ props }) => {+ const formName = useFormName();+ const getFieldValue = useGetFieldValue();+ const setFieldValue = useSetFieldValue();+ const isStreaming = useIsStreaming();++ const fieldName = props.name as string;+ const saved = getFieldValue(formName, fieldName) as string | undefined;+ const date = saved ? new Date(saved) : undefined;++ return (+ <Popover>+ <PopoverTrigger asChild>+ <ShadcnButton+ variant="outline"+ className={`w-full justify-start text-left font-normal ${!date ? "text-muted-foreground" : ""}`}+ disabled={isStreaming}+ >+ <CalendarIcon className="mr-2 h-4 w-4" />+ {date ? format(date, "PPP") : (props.placeholder ?? "Pick a date")}+ </ShadcnButton>+ </PopoverTrigger>+ <PopoverContent className="w-auto p-0" align="start">+ <Calendar+ mode="single"+ selected={date}+ onSelect={(d) => {+ if (d) {+ setFieldValue(formName, "DatePicker", fieldName, d.toISOString(), true);+ }+ }}+ />+ </PopoverContent>+ </Popover>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/dialog-block.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/dialog-block.tsxnew file mode 100644index 000000000..17c2739f3--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/dialog-block.tsx@@ -0,0 +1,44 @@+"use client";++import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+} from "@/components/ui/dialog";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const DialogBlockSchema = z.object({+ triggerLabel: z.string(),+ title: z.string(),+ description: z.string().optional(),+ content: z.array(z.any()).default([]),+ triggerVariant: z+ .enum(["default", "destructive", "outline", "secondary", "ghost", "link"])+ .optional(),+});++export const DialogBlock = defineComponent({+ name: "DialogBlock",+ props: DialogBlockSchema,+ description:+ "Modal dialog triggered by a button. triggerLabel: button text, title/description in header, content: children rendered inside.",+ component: ({ props, renderNode }) => (+ <Dialog>+ <DialogTrigger asChild>+ <Button variant={props.triggerVariant ?? "outline"}>{props.triggerLabel}</Button>+ </DialogTrigger>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>{props.title}</DialogTitle>+ {props.description && <DialogDescription>{props.description}</DialogDescription>}+ </DialogHeader>+ <div className="space-y-3">{renderNode(props.content)}</div>+ </DialogContent>+ </Dialog>+ ),+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/drawer-block.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/drawer-block.tsxnew file mode 100644index 000000000..2e2727ac0--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/drawer-block.tsx@@ -0,0 +1,48 @@+"use client";++import { Button } from "@/components/ui/button";+import {+ Drawer,+ DrawerClose,+ DrawerContent,+ DrawerDescription,+ DrawerFooter,+ DrawerHeader,+ DrawerTitle,+ DrawerTrigger,+} from "@/components/ui/drawer";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const DrawerBlockSchema = z.object({+ triggerLabel: z.string(),+ title: z.string(),+ description: z.string().optional(),+ content: z.array(z.any()).default([]),+});++export const DrawerBlock = defineComponent({+ name: "DrawerBlock",+ props: DrawerBlockSchema,+ description:+ "Bottom drawer panel triggered by a button. triggerLabel: button text, title/description in header, content: children rendered inside.",+ component: ({ props, renderNode }) => (+ <Drawer>+ <DrawerTrigger asChild>+ <Button variant="outline">{props.triggerLabel}</Button>+ </DrawerTrigger>+ <DrawerContent>+ <DrawerHeader>+ <DrawerTitle>{props.title}</DrawerTitle>+ {props.description && <DrawerDescription>{props.description}</DrawerDescription>}+ </DrawerHeader>+ <div className="px-4 pb-4 space-y-3">{renderNode(props.content)}</div>+ <DrawerFooter>+ <DrawerClose asChild>+ <Button variant="outline">Close</Button>+ </DrawerClose>+ </DrawerFooter>+ </DrawerContent>+ </Drawer>+ ),+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/follow-up-block.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/follow-up-block.tsxnew file mode 100644index 000000000..ece5fbc3a--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/follow-up-block.tsx@@ -0,0 +1,50 @@+"use client";++import { Button as ShadcnButton } from "@/components/ui/button";+import { defineComponent, useTriggerAction } from "@openuidev/react-lang";+import { z } from "zod";++const FollowUpItemSchema = z.object({+ text: z.string(),+});++export const FollowUpItem = defineComponent({+ name: "FollowUpItem",+ props: FollowUpItemSchema,+ description: "Clickable follow-up suggestion — sends text as user message when clicked.",+ component: () => null,+});++const FollowUpBlockSchema = z.object({+ items: z.array(FollowUpItem.ref),+});++export const FollowUpBlock = defineComponent({+ name: "FollowUpBlock",+ props: FollowUpBlockSchema,+ description: "List of follow-up suggestion chips at the end of a response.",+ component: ({ props }) => {+ const triggerAction = useTriggerAction();+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const items = (props.items ?? []) as any[];++ return (+ <div className="flex flex-wrap gap-2">+ {items.map((item, i) => {+ const text = String(item?.props?.text ?? "");+ return (+ <ShadcnButton+ key={i}+ variant="outline"+ size="sm"+ className="h-auto py-1.5 px-3 text-xs"+ onClick={() => triggerAction(text)}+ >+ {text}+ </ShadcnButton>+ );+ })}+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/form-control.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/form-control.tsxnew file mode 100644index 000000000..48f4b8d04--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/form-control.tsx@@ -0,0 +1,30 @@+"use client";++import { Label as ShadcnLabel } from "@/components/ui/label";+import { defineComponent, useFormValidation } from "@openuidev/react-lang";+import { z } from "zod";++const FormControlSchema = z.object({+ label: z.string(),+ field: z.any(),+});++export const FormControl = defineComponent({+ name: "FormControl",+ props: FormControlSchema,+ description: "Wraps a form field with a label and error display.",+ component: ({ props, renderNode }) => {+ const formValidation = useFormValidation();+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const fieldName = (props.field as any)?.props?.name as string | undefined;+ const error = fieldName ? formValidation?.errors?.[fieldName] : undefined;++ return (+ <div className="space-y-2">+ <ShadcnLabel>{props.label}</ShadcnLabel>+ {renderNode(props.field)}+ {error && <p className="text-sm text-destructive">{error}</p>}+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/form.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/form.tsxnew file mode 100644index 000000000..3288b3aad--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/form.tsx@@ -0,0 +1,39 @@+"use client";++import {+ FormNameContext,+ FormValidationContext,+ defineComponent,+ useCreateFormValidation,+} from "@openuidev/react-lang";+import { z } from "zod";+import { Buttons } from "./buttons";+import { FormControl } from "./form-control";++const FormSchema = z.object({+ name: z.string(),+ buttons: Buttons.ref,+ fields: z.array(FormControl.ref).default([]),+});++export const Form = defineComponent({+ name: "Form",+ props: FormSchema,+ description:+ "Form container with fields and explicit action buttons. fields: FormControl[], buttons: Buttons.",+ component: ({ props, renderNode }) => {+ const formValidation = useCreateFormValidation();+ const formName = props.name as string;++ return (+ <FormValidationContext.Provider value={formValidation}>+ <FormNameContext.Provider value={formName}>+ <div role="form" className="space-y-4">+ {renderNode(props.fields)}+ {renderNode(props.buttons)}+ </div>+ </FormNameContext.Provider>+ </FormValidationContext.Provider>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/image.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/image.tsxnew file mode 100644index 000000000..55010ccc2--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/image.tsx@@ -0,0 +1,52 @@+"use client";++import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const ImageSchema = z.object({+ src: z.string(),+ alt: z.string().optional(),+});++export const Image = defineComponent({+ name: "Image",+ props: ImageSchema,+ description: "Displays an image with optional alt text.",+ component: ({ props }) => (+ <div className="overflow-hidden rounded-lg">+ <img+ src={props.src}+ alt={props.alt ?? ""}+ className="w-full h-auto object-cover rounded-lg"+ />+ </div>+ ),+});++const ImageBlockSchema = z.object({+ src: z.string(),+ alt: z.string().optional(),+ caption: z.string().optional(),+});++export const ImageBlock = defineComponent({+ name: "ImageBlock",+ props: ImageBlockSchema,+ description: "Image with optional caption.",+ component: ({ props }) => (+ <figure className="space-y-2">+ <div className="overflow-hidden rounded-lg">+ <img+ src={props.src}+ alt={props.alt ?? ""}+ className="w-full h-auto object-cover rounded-lg"+ />+ </div>+ {props.caption && (+ <figcaption className="text-sm text-muted-foreground text-center">+ {props.caption}+ </figcaption>+ )}+ </figure>+ ),+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/input.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/input.tsxnew file mode 100644index 000000000..7ccda4639--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/input.tsx@@ -0,0 +1,65 @@+"use client";++import { Input as ShadcnInput } from "@/components/ui/input";+import {+ defineComponent,+ parseStructuredRules,+ useFormName,+ useFormValidation,+ useGetFieldValue,+ useIsStreaming,+ useSetFieldValue,+} from "@openuidev/react-lang";+import React from "react";+import { z } from "zod";+import { rulesSchema } from "../rules";++const InputSchema = z.object({+ name: z.string(),+ placeholder: z.string().optional(),+ type: z.enum(["text", "email", "password", "number", "url"]).optional(),+ rules: rulesSchema,+});++export const Input = defineComponent({+ name: "Input",+ props: InputSchema,+ description:+ 'Text input field. type: "text" | "email" | "password" | "number" | "url". rules for validation.',+ component: ({ props }) => {+ const formName = useFormName();+ const getFieldValue = useGetFieldValue();+ const setFieldValue = useSetFieldValue();+ const isStreaming = useIsStreaming();+ const formValidation = useFormValidation();++ const fieldName = props.name as string;+ const rules = React.useMemo(() => parseStructuredRules(props.rules), [props.rules]);+ const savedValue = getFieldValue(formName, fieldName) ?? "";++ React.useEffect(() => {+ if (!isStreaming && rules.length > 0 && formValidation) {+ formValidation.registerField(fieldName, rules, () => getFieldValue(formName, fieldName));+ return () => formValidation.unregisterField(fieldName);+ }+ return undefined;+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [isStreaming, rules.length > 0]);++ return (+ <ShadcnInput+ name={fieldName}+ placeholder={props.placeholder}+ type={props.type ?? "text"}+ defaultValue={savedValue as string}+ onBlur={(e) => {+ const val = e.target.value;+ if (val !== savedValue) setFieldValue(formName, "Input", fieldName, val, true);+ if (rules.length > 0 && formValidation)+ formValidation.validateField(fieldName, val, rules);+ }}+ disabled={isStreaming}+ />+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/label.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/label.tsxnew file mode 100644index 000000000..cc0b0c80e--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/label.tsx@@ -0,0 +1,17 @@+"use client";++import { Label as ShadcnLabel } from "@/components/ui/label";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const LabelSchema = z.object({+ text: z.string(),+ htmlFor: z.string().optional(),+});++export const Label = defineComponent({+ name: "Label",+ props: LabelSchema,+ description: "Form label. Optionally links to an input via htmlFor.",+ component: ({ props }) => <ShadcnLabel htmlFor={props.htmlFor}>{props.text}</ShadcnLabel>,+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/markdown-renderer.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/markdown-renderer.tsxnew file mode 100644index 000000000..99126dbee--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/markdown-renderer.tsx@@ -0,0 +1,24 @@+"use client";++import { defineComponent } from "@openuidev/react-lang";+import ReactMarkdown from "react-markdown";+import remarkGfm from "remark-gfm";+import { z } from "zod";++const MarkDownRendererSchema = z.object({+ text: z.string(),+});++export const MarkDownRenderer = defineComponent({+ name: "MarkDownRenderer",+ props: MarkDownRendererSchema,+ description: "Renders markdown text with GFM support.",+ component: ({ props }) => {+ const text = props.text == null ? "" : String(props.text);+ return (+ <div className="prose prose-neutral dark:prose-invert max-w-none text-sm">+ <ReactMarkdown remarkPlugins={[remarkGfm]}>{text}</ReactMarkdown>+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/pagination-block.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/pagination-block.tsxnew file mode 100644index 000000000..0b955486c--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/pagination-block.tsx@@ -0,0 +1,87 @@+"use client";++import {+ Pagination,+ PaginationContent,+ PaginationEllipsis,+ PaginationItem,+ PaginationLink,+ PaginationNext,+ PaginationPrevious,+} from "@/components/ui/pagination";+import { defineComponent, useTriggerAction } from "@openuidev/react-lang";+import { z } from "zod";++const PaginationBlockSchema = z.object({+ currentPage: z.number(),+ totalPages: z.number(),+});++export const PaginationBlock = defineComponent({+ name: "PaginationBlock",+ props: PaginationBlockSchema,+ description: "Page navigation. currentPage and totalPages control which pages are shown.",+ component: ({ props }) => {+ const triggerAction = useTriggerAction();+ const current = props.currentPage ?? 1;+ const total = props.totalPages ?? 1;++ const pages: (number | "ellipsis")[] = [];+ if (total <= 7) {+ for (let i = 1; i <= total; i++) pages.push(i);+ } else {+ pages.push(1);+ if (current > 3) pages.push("ellipsis");+ for (let i = Math.max(2, current - 1); i <= Math.min(total - 1, current + 1); i++) {+ pages.push(i);+ }+ if (current < total - 2) pages.push("ellipsis");+ pages.push(total);+ }++ return (+ <Pagination>+ <PaginationContent>+ <PaginationItem>+ <PaginationPrevious+ href="#"+ onClick={(e) => {+ e.preventDefault();+ if (current > 1) triggerAction(`Go to page ${current - 1}`);+ }}+ />+ </PaginationItem>+ {pages.map((page, i) =>+ page === "ellipsis" ? (+ <PaginationItem key={`e-${i}`}>+ <PaginationEllipsis />+ </PaginationItem>+ ) : (+ <PaginationItem key={page}>+ <PaginationLink+ href="#"+ isActive={page === current}+ onClick={(e) => {+ e.preventDefault();+ triggerAction(`Go to page ${page}`);+ }}+ >+ {page}+ </PaginationLink>+ </PaginationItem>+ ),+ )}+ <PaginationItem>+ <PaginationNext+ href="#"+ onClick={(e) => {+ e.preventDefault();+ if (current < total) triggerAction(`Go to page ${current + 1}`);+ }}+ />+ </PaginationItem>+ </PaginationContent>+ </Pagination>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/progress.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/progress.tsxnew file mode 100644index 000000000..f2638e294--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/progress.tsx@@ -0,0 +1,27 @@+"use client";++import { Progress as ShadcnProgress } from "@/components/ui/progress";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const ProgressSchema = z.object({+ value: z.number(),+ label: z.string().optional(),+});++export const Progress = defineComponent({+ name: "Progress",+ props: ProgressSchema,+ description: "Progress bar showing completion percentage (0-100). Optional label.",+ component: ({ props }) => (+ <div className="space-y-1">+ {props.label && (+ <div className="flex justify-between text-sm">+ <span>{props.label}</span>+ <span className="text-muted-foreground">{props.value}%</span>+ </div>+ )}+ <ShadcnProgress value={props.value} />+ </div>+ ),+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/radio-group.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/radio-group.tsxnew file mode 100644index 000000000..1969b9c96--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/radio-group.tsx@@ -0,0 +1,66 @@+"use client";++import { Label as ShadcnLabel } from "@/components/ui/label";+import { RadioGroupItem, RadioGroup as ShadcnRadioGroup } from "@/components/ui/radio-group";+import {+ defineComponent,+ useFormName,+ useGetFieldValue,+ useIsStreaming,+ useSetFieldValue,+} from "@openuidev/react-lang";+import { z } from "zod";++const RadioItemSchema = z.object({+ value: z.string(),+ label: z.string(),+});++export const RadioItem = defineComponent({+ name: "RadioItem",+ props: RadioItemSchema,+ description: "Option in a RadioGroup.",+ component: () => null,+});++const RadioGroupSchema = z.object({+ name: z.string(),+ items: z.array(RadioItem.ref),+});++export const RadioGroup = defineComponent({+ name: "RadioGroup",+ props: RadioGroupSchema,+ description: "Radio selection group. items: RadioItem[].",+ component: ({ props }) => {+ const formName = useFormName();+ const getFieldValue = useGetFieldValue();+ const setFieldValue = useSetFieldValue();+ const isStreaming = useIsStreaming();++ const fieldName = props.name as string;+ const value = (getFieldValue(formName, fieldName) as string | undefined) ?? "";+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const items = ((props.items ?? []) as any[]).filter((item) => item?.props?.value);++ return (+ <ShadcnRadioGroup+ value={value}+ onValueChange={(val) => {+ setFieldValue(formName, "RadioGroup", fieldName, val, true);+ }}+ disabled={isStreaming}+ >+ {items.map((item, i) => {+ const val = item.props.value as string;+ return (+ <div key={i} className="flex items-center space-x-2">+ <RadioGroupItem value={val} id={`${fieldName}-${val}`} />+ <ShadcnLabel htmlFor={`${fieldName}-${val}`}>{item.props.label || val}</ShadcnLabel>+ </div>+ );+ })}+ </ShadcnRadioGroup>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/select.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/select.tsxnew file mode 100644index 000000000..4ad03e549--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/select.tsx@@ -0,0 +1,92 @@+"use client";++import {+ SelectContent,+ SelectTrigger,+ SelectValue,+ Select as ShadcnSelect,+ SelectItem as ShadcnSelectItem,+} from "@/components/ui/select";+import {+ defineComponent,+ parseStructuredRules,+ useFormName,+ useFormValidation,+ useGetFieldValue,+ useIsStreaming,+ useSetFieldValue,+} from "@openuidev/react-lang";+import React from "react";+import { z } from "zod";+import { rulesSchema } from "../rules";++const SelectItemSchema = z.object({+ value: z.string(),+ label: z.string(),+});++export const SelectItem = defineComponent({+ name: "SelectItem",+ props: SelectItemSchema,+ description: "Option for Select dropdown.",+ component: () => null,+});++const SelectSchema = z.object({+ name: z.string(),+ items: z.array(SelectItem.ref),+ placeholder: z.string().optional(),+ rules: rulesSchema,+});++export const Select = defineComponent({+ name: "Select",+ props: SelectSchema,+ description: "Dropdown select. items: SelectItem[], placeholder, rules for validation.",+ component: ({ props }) => {+ const formName = useFormName();+ const getFieldValue = useGetFieldValue();+ const setFieldValue = useSetFieldValue();+ const isStreaming = useIsStreaming();+ const formValidation = useFormValidation();++ const fieldName = props.name as string;+ const rules = React.useMemo(() => parseStructuredRules(props.rules), [props.rules]);+ const value = getFieldValue(formName, fieldName) as string | undefined;++ React.useEffect(() => {+ if (!isStreaming && rules.length > 0 && formValidation) {+ formValidation.registerField(fieldName, rules, () => getFieldValue(formName, fieldName));+ return () => formValidation.unregisterField(fieldName);+ }+ return undefined;+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [isStreaming, rules.length > 0]);++ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const items = ((props.items ?? []) as any[]).filter((item) => item?.props?.value);++ return (+ <ShadcnSelect+ value={value ?? ""}+ onValueChange={(val) => {+ setFieldValue(formName, "Select", fieldName, val, true);+ if (rules.length > 0 && formValidation)+ formValidation.validateField(fieldName, val, rules);+ }}+ disabled={isStreaming}+ >+ <SelectTrigger>+ <SelectValue placeholder={props.placeholder ?? "Select..."} />+ </SelectTrigger>+ <SelectContent>+ {items.map((item, i) => (+ <ShadcnSelectItem key={i} value={item.props.value}>+ {item.props.label || item.props.value}+ </ShadcnSelectItem>+ ))}+ </SelectContent>+ </ShadcnSelect>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/separator.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/separator.tsxnew file mode 100644index 000000000..4735852b5--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/separator.tsx@@ -0,0 +1,16 @@+"use client";++import { Separator as ShadcnSeparator } from "@/components/ui/separator";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const SeparatorSchema = z.object({+ orientation: z.enum(["horizontal", "vertical"]).optional(),+});++export const Separator = defineComponent({+ name: "Separator",+ props: SeparatorSchema,+ description: 'Horizontal or vertical rule. orientation: "horizontal" | "vertical".',+ component: ({ props }) => <ShadcnSeparator orientation={props.orientation ?? "horizontal"} />,+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/slider.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/slider.tsxnew file mode 100644index 000000000..2f0a2676b--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/slider.tsx@@ -0,0 +1,64 @@+"use client";++import { Slider as ShadcnSlider } from "@/components/ui/slider";+import {+ defineComponent,+ useFormName,+ useGetFieldValue,+ useIsStreaming,+ useSetDefaultValue,+ useSetFieldValue,+} from "@openuidev/react-lang";+import { z } from "zod";++const SliderSchema = z.object({+ name: z.string(),+ min: z.number().optional(),+ max: z.number().optional(),+ step: z.number().optional(),+ defaultValue: z.number().optional(),+});++export const Slider = defineComponent({+ name: "Slider",+ props: SliderSchema,+ description: "Range slider input. min, max, step, defaultValue.",+ component: ({ props }) => {+ const formName = useFormName();+ const getFieldValue = useGetFieldValue();+ const setFieldValue = useSetFieldValue();+ const isStreaming = useIsStreaming();++ const fieldName = props.name as string;+ const saved = getFieldValue(formName, fieldName) as number | undefined;+ const val = saved ?? props.defaultValue ?? props.min ?? 0;++ useSetDefaultValue({+ formName: formName ?? "",+ componentType: "Slider",+ name: fieldName,+ existingValue: saved,+ defaultValue: props.defaultValue ?? props.min ?? 0,+ shouldTriggerSaveCallback: true,+ });++ return (+ <div className="space-y-2">+ <div className="flex justify-between text-sm">+ <span>{fieldName}</span>+ <span className="text-muted-foreground tabular-nums">{val}</span>+ </div>+ <ShadcnSlider+ min={props.min ?? 0}+ max={props.max ?? 100}+ step={props.step ?? 1}+ value={[val]}+ onValueChange={([v]) => {+ setFieldValue(formName, "Slider", fieldName, v, true);+ }}+ disabled={isStreaming}+ />+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/switch-group.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/switch-group.tsxnew file mode 100644index 000000000..0e1c7c017--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/switch-group.tsx@@ -0,0 +1,69 @@+"use client";++import { Label as ShadcnLabel } from "@/components/ui/label";+import { Switch } from "@/components/ui/switch";+import {+ defineComponent,+ useFormName,+ useGetFieldValue,+ useIsStreaming,+ useSetFieldValue,+} from "@openuidev/react-lang";+import { z } from "zod";++const SwitchItemSchema = z.object({+ value: z.string(),+ label: z.string(),+});++export const SwitchItem = defineComponent({+ name: "SwitchItem",+ props: SwitchItemSchema,+ description: "Toggle option in a SwitchGroup.",+ component: () => null,+});++const SwitchGroupSchema = z.object({+ name: z.string(),+ items: z.array(SwitchItem.ref),+});++export const SwitchGroup = defineComponent({+ name: "SwitchGroup",+ props: SwitchGroupSchema,+ description: "Group of toggle switches. items: SwitchItem[].",+ component: ({ props }) => {+ const formName = useFormName();+ const getFieldValue = useGetFieldValue();+ const setFieldValue = useSetFieldValue();+ const isStreaming = useIsStreaming();++ const fieldName = props.name as string;+ const current = (getFieldValue(formName, fieldName) as string[] | undefined) ?? [];+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const items = ((props.items ?? []) as any[]).filter((item) => item?.props?.value);++ return (+ <div className="space-y-3">+ {items.map((item, i) => {+ const val = item.props.value as string;+ const checked = current.includes(val);+ return (+ <div key={i} className="flex items-center justify-between">+ <ShadcnLabel htmlFor={`${fieldName}-${val}`}>{item.props.label || val}</ShadcnLabel>+ <Switch+ id={`${fieldName}-${val}`}+ checked={checked}+ onCheckedChange={(c) => {+ const next = c ? [...current, val] : current.filter((v: string) => v !== val);+ setFieldValue(formName, "SwitchGroup", fieldName, next, true);+ }}+ disabled={isStreaming}+ />+ </div>+ );+ })}+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/table.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/table.tsxnew file mode 100644index 000000000..4b7cfac38--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/table.tsx@@ -0,0 +1,73 @@+"use client";++import {+ Table as ShadcnTable,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const ColSchema = z.object({+ header: z.string(),+ type: z.enum(["string", "number", "boolean"]).optional(),+});++export const Col = defineComponent({+ name: "Col",+ props: ColSchema,+ description: "Column definition for Table — header label and optional type.",+ component: () => null,+});++const TableSchema = z.object({+ columns: z.array(Col.ref),+ rows: z.array(z.array(z.any())),+});++export const Table = defineComponent({+ name: "Table",+ props: TableSchema,+ description: "Data table. columns: Col[] with header/type, rows: 2D array of values.",+ component: ({ props }) => {+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const columns = ((props.columns ?? []) as any[]).map((c) => ({+ header: String(c?.props?.header ?? ""),+ type: c?.props?.type ?? "string",+ }));+ const rows = (props.rows ?? []) as unknown[][];++ return (+ <div className="rounded-md border">+ <ShadcnTable>+ <TableHeader>+ <TableRow>+ {columns.map((col, i) => (+ <TableHead key={i} className={col.type === "number" ? "text-right" : ""}>+ {col.header}+ </TableHead>+ ))}+ </TableRow>+ </TableHeader>+ <TableBody>+ {rows.map((row, ri) => (+ <TableRow key={ri}>+ {columns.map((col, ci) => (+ <TableCell+ key={ci}+ className={col.type === "number" ? "text-right tabular-nums" : ""}+ >+ {String(row[ci] ?? "")}+ </TableCell>+ ))}+ </TableRow>+ ))}+ </TableBody>+ </ShadcnTable>+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/tabs.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/tabs.tsxnew file mode 100644index 000000000..b507374f6--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/tabs.tsx@@ -0,0 +1,63 @@+"use client";++import { Tabs as ShadcnTabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";+import { defineComponent } from "@openuidev/react-lang";+import * as React from "react";+import { z } from "zod";+import { ContentChildUnion } from "../unions";++const TabItemSchema = z.object({+ value: z.string(),+ trigger: z.string(),+ content: z.array(ContentChildUnion),+});++export const TabItem = defineComponent({+ name: "TabItem",+ props: TabItemSchema,+ description: "Tab panel. value: unique id, trigger: tab label, content: children.",+ component: () => null,+});++const TabsSchema = z.object({+ items: z.array(TabItem.ref),+ defaultValue: z.string().optional(),+});++export const Tabs = defineComponent({+ name: "Tabs",+ props: TabsSchema,+ description: "Tabbed content. items: TabItem[]. defaultValue: initially active tab.",+ component: ({ props, renderNode }) => {+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const items = (props.items ?? []) as any[];++ const firstValue = items[0]?.props?.value as string | undefined;+ const resolvedDefault = props.defaultValue ?? firstValue;++ const [activeTab, setActiveTab] = React.useState<string | undefined>(resolvedDefault);++ React.useEffect(() => {+ if (!activeTab && resolvedDefault) {+ setActiveTab(resolvedDefault);+ }+ }, [activeTab, resolvedDefault]);++ return (+ <ShadcnTabs value={activeTab ?? ""} onValueChange={setActiveTab}>+ <TabsList>+ {items.map((item, i) => (+ <TabsTrigger key={i} value={String(item?.props?.value ?? i)}>+ {String(item?.props?.trigger ?? "")}+ </TabsTrigger>+ ))}+ </TabsList>+ {items.map((item, i) => (+ <TabsContent key={i} value={String(item?.props?.value ?? i)} className="space-y-3">+ {renderNode(item?.props?.content)}+ </TabsContent>+ ))}+ </ShadcnTabs>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/tag.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/tag.tsxnew file mode 100644index 000000000..0cd8dbf0a--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/tag.tsx@@ -0,0 +1,49 @@+"use client";++import { Badge } from "@/components/ui/badge";+import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const TagSchema = z.object({+ text: z.string(),+ variant: z.enum(["default", "secondary", "destructive", "outline", "ghost"]).optional(),+});++export const Tag = defineComponent({+ name: "Tag",+ props: TagSchema,+ description: "Styled tag/badge. Used inside TagBlock.",+ component: ({ props }) => <Badge variant={props.variant ?? "secondary"}>{props.text}</Badge>,+});++export const TagBlock = defineComponent({+ name: "TagBlock",+ props: z.object({+ tags: z.array(z.union([z.string(), Tag.ref])),+ }),+ description: "Group of tags. Accepts string array or Tag references.",+ component: ({ props }) => {+ // eslint-disable-next-line @typescript-eslint/no-explicit-any+ const tags = (props.tags ?? []) as any[];+ return (+ <div className="flex flex-wrap gap-1.5">+ {tags.map((tag, i) => {+ if (typeof tag === "string") {+ return (+ <Badge key={i} variant="secondary">+ {tag}+ </Badge>+ );+ }+ const text = String(tag?.props?.text ?? "");+ const variant = tag?.props?.variant ?? "secondary";+ return (+ <Badge key={i} variant={variant}>+ {text}+ </Badge>+ );+ })}+ </div>+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/text-content.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/text-content.tsxnew file mode 100644index 000000000..91b8515a2--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/text-content.tsx@@ -0,0 +1,29 @@+"use client";++import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const TextContentSchema = z.object({+ text: z.string(),+ size: z.enum(["small", "default", "large", "small-heavy", "large-heavy"]).optional(),+});++const sizeClasses: Record<string, string> = {+ small: "text-sm text-muted-foreground",+ default: "text-base",+ large: "text-lg",+ "small-heavy": "text-sm font-semibold",+ "large-heavy": "text-lg font-semibold",+};++export const TextContent = defineComponent({+ name: "TextContent",+ props: TextContentSchema,+ description:+ 'Text block with optional size. size: "small" | "default" | "large" | "small-heavy" | "large-heavy".',+ component: ({ props }) => {+ const text = props.text == null ? "" : String(props.text);+ const cls = sizeClasses[props.size ?? "default"] ?? sizeClasses["default"];+ return <p className={cls}>{text}</p>;+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/textarea.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/textarea.tsxnew file mode 100644index 000000000..08b4b2a42--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/textarea.tsx@@ -0,0 +1,64 @@+"use client";++import { Textarea as ShadcnTextarea } from "@/components/ui/textarea";+import {+ defineComponent,+ parseStructuredRules,+ useFormName,+ useFormValidation,+ useGetFieldValue,+ useIsStreaming,+ useSetFieldValue,+} from "@openuidev/react-lang";+import React from "react";+import { z } from "zod";+import { rulesSchema } from "../rules";++const TextareaSchema = z.object({+ name: z.string(),+ placeholder: z.string().optional(),+ rows: z.number().optional(),+ rules: rulesSchema,+});++export const TextArea = defineComponent({+ name: "TextArea",+ props: TextareaSchema,+ description: "Multi-line text input. rows sets visible height. rules for validation.",+ component: ({ props }) => {+ const formName = useFormName();+ const getFieldValue = useGetFieldValue();+ const setFieldValue = useSetFieldValue();+ const isStreaming = useIsStreaming();+ const formValidation = useFormValidation();++ const fieldName = props.name as string;+ const rules = React.useMemo(() => parseStructuredRules(props.rules), [props.rules]);+ const savedValue = getFieldValue(formName, fieldName) ?? "";++ React.useEffect(() => {+ if (!isStreaming && rules.length > 0 && formValidation) {+ formValidation.registerField(fieldName, rules, () => getFieldValue(formName, fieldName));+ return () => formValidation.unregisterField(fieldName);+ }+ return undefined;+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [isStreaming, rules.length > 0]);++ return (+ <ShadcnTextarea+ name={fieldName}+ placeholder={props.placeholder}+ rows={props.rows ?? 3}+ defaultValue={savedValue as string}+ onBlur={(e) => {+ const val = e.target.value;+ if (val !== savedValue) setFieldValue(formName, "TextArea", fieldName, val, true);+ if (rules.length > 0 && formValidation)+ formValidation.validateField(fieldName, val, rules);+ }}+ disabled={isStreaming}+ />+ );+ },+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/components/typography.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/components/typography.tsxnew file mode 100644index 000000000..ad0f67260--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/components/typography.tsx@@ -0,0 +1,72 @@+"use client";++import { defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++const HeadingSchema = z.object({+ text: z.string(),+ level: z.enum(["h1", "h2", "h3", "h4"]).optional(),+});++const headingClasses: Record<string, string> = {+ h1: "scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",+ h2: "scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0",+ h3: "scroll-m-20 text-2xl font-semibold tracking-tight",+ h4: "scroll-m-20 text-xl font-semibold tracking-tight",+};++export const Heading = defineComponent({+ name: "Heading",+ props: HeadingSchema,+ description: 'Heading text. level: "h1" | "h2" | "h3" | "h4". Defaults to "h2".',+ component: ({ props }) => {+ const level = props.level ?? "h2";+ const cls = headingClasses[level];+ switch (level) {+ case "h1":+ return <h1 className={cls}>{props.text}</h1>;+ case "h3":+ return <h3 className={cls}>{props.text}</h3>;+ case "h4":+ return <h4 className={cls}>{props.text}</h4>;+ default:+ return <h2 className={cls}>{props.text}</h2>;+ }+ },+});++const BlockquoteSchema = z.object({+ text: z.string(),+ cite: z.string().optional(),+});++export const Blockquote = defineComponent({+ name: "Blockquote",+ props: BlockquoteSchema,+ description: "Styled blockquote. Optional cite for attribution.",+ component: ({ props }) => (+ <figure>+ <blockquote className="mt-6 border-l-2 pl-6 italic text-muted-foreground">+ {props.text}+ </blockquote>+ {props.cite && (+ <figcaption className="mt-1 pl-6 text-sm text-muted-foreground">— {props.cite}</figcaption>+ )}+ </figure>+ ),+});++const InlineCodeSchema = z.object({+ code: z.string(),+});++export const InlineCode = defineComponent({+ name: "InlineCode",+ props: InlineCodeSchema,+ description: "Inline code snippet rendered with monospace font.",+ component: ({ props }) => (+ <code className="relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold">+ {props.code}+ </code>+ ),+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/helpers.ts b/examples/shadcn-chat/src/lib/shadcn-genui/helpers.tsnew file mode 100644index 000000000..f0369dbc1--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/helpers.ts@@ -0,0 +1,62 @@+type ElementLike = {+ type: "element";+ props: Record<string, unknown>;+};++export function hasAllProps(obj: Record<string, unknown>, ...keys: string[]): boolean {+ return keys.every((k) => obj[k] != null);+}++export function asArray(v: unknown): unknown[] {+ if (Array.isArray(v)) return v;+ if (v == null) return [];+ return [v];+}++function asElementNodes(v: unknown): ElementLike[] {+ return asArray(v).filter(+ (x): x is ElementLike =>+ typeof x === "object" && x !== null && (x as Record<string, unknown>)["type"] === "element",+ );+}++export function buildChartData(+ labels: unknown,+ series: unknown,+): Record<string, string | number>[] {+ const lbls = asArray(labels) as string[];++ const rows = asArray(series);+ if (rows.length > 0 && Array.isArray(rows[0])) {+ const seriesNames = lbls.slice(1);+ return rows.map((row) => {+ const cells = row as unknown[];+ const point: Record<string, string | number> = { category: String(cells[0] ?? "") };+ seriesNames.forEach((name, si) => {+ const val = cells[si + 1];+ point[name] = typeof val === "number" ? val : Number(val) || 0;+ });+ return point;+ });+ }++ const seriesNodes = asElementNodes(series);+ return lbls.map((label, i) => {+ const point: Record<string, string | number> = { category: label };+ seriesNodes.forEach((s) => {+ const cat = s.props["category"];+ const vals = s.props["values"];+ if (typeof cat === "string" && Array.isArray(vals) && i < vals.length) {+ point[cat] = vals[i]!;+ }+ });+ return point;+ });+}++export function buildSliceData(slices: unknown): Record<string, string | number>[] {+ return asElementNodes(slices).map((s) => ({+ category: s.props["category"] as string,+ value: s.props["value"] as number,+ }));+}diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/index.tsx b/examples/shadcn-chat/src/lib/shadcn-genui/index.tsxnew file mode 100644index 000000000..30f034cff--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/index.tsx@@ -0,0 +1,428 @@+"use client";++import type { ComponentGroup, PromptOptions } from "@openuidev/react-lang";+import { createLibrary, defineComponent } from "@openuidev/react-lang";+import { z } from "zod";++import { Card, CardContent } from "@/components/ui/card";++// Content+import { Alert } from "./components/alert";+import { Avatar } from "./components/avatar";+import { ShadcnBadgeComponent } from "./components/badge";+import { CardHeader } from "./components/card-header";+import { CodeBlock } from "./components/code-block";+import { Image, ImageBlock } from "./components/image";+import { MarkDownRenderer } from "./components/markdown-renderer";+import { Progress } from "./components/progress";+import { Separator } from "./components/separator";+import { TextContent } from "./components/text-content";++// Charts+import {+ AreaChartCondensed,+ BarChartCondensed,+ LineChartCondensed,+ PieChartComponent,+ Point,+ RadarChartComponent,+ RadialChartComponent,+ ScatterChartComponent,+ ScatterSeries,+ Series,+ Slice,+} from "./components/charts";++// Forms+import { CheckBoxGroup, CheckBoxItem } from "./components/checkbox-group";+import { DatePicker } from "./components/date-picker";+import { Form } from "./components/form";+import { FormControl } from "./components/form-control";+import { Input } from "./components/input";+import { Label } from "./components/label";+import { RadioGroup, RadioItem } from "./components/radio-group";+import { Select, SelectItem } from "./components/select";+import { Slider } from "./components/slider";+import { SwitchGroup, SwitchItem } from "./components/switch-group";+import { TextArea } from "./components/textarea";++// Buttons+import { Button } from "./components/button";+import { Buttons } from "./components/buttons";++// Layout+import { Accordion, AccordionItemDef } from "./components/accordion";+import { Carousel } from "./components/carousel";+import { TabItem, Tabs } from "./components/tabs";++// Data Display+import { Col, Table } from "./components/table";+import { Tag, TagBlock } from "./components/tag";++// Chat-specific+import { FollowUpBlock, FollowUpItem } from "./components/follow-up-block";++// New components+import { AlertDialogBlock } from "./components/alert-dialog-block";+import { CalendarBlock } from "./components/calendar-block";+import { DialogBlock } from "./components/dialog-block";+import { DrawerBlock } from "./components/drawer-block";+import { PaginationBlock } from "./components/pagination-block";+import { Blockquote, Heading, InlineCode } from "./components/typography";++import { ChatContentChildUnion } from "./unions";++const ChatCardChildUnion = z.union([...ChatContentChildUnion.options, Tabs.ref, Carousel.ref]);++const ChatCard = defineComponent({+ name: "Card",+ props: z.object({+ children: z.array(ChatCardChildUnion),+ }),+ description:+ "Vertical container for all content in a chat response. Children stack top to bottom automatically.",+ component: ({ props, renderNode }) => (+ <Card>+ <CardContent className="p-0 space-y-3">{renderNode(props.children)}</CardContent>+ </Card>+ ),+});++// ── Component Groups ──++export const shadcnComponentGroups: ComponentGroup[] = [+ {+ name: "Content",+ components: [+ "CardHeader",+ "TextContent",+ "MarkDownRenderer",+ "Alert",+ "Badge",+ "Avatar",+ "CodeBlock",+ "Image",+ "ImageBlock",+ "Progress",+ "Separator",+ ],+ },+ {+ name: "Tables",+ components: ["Table", "Col"],+ },+ {+ name: "Charts (2D)",+ components: ["BarChart", "LineChart", "AreaChart", "RadarChart", "Series"],+ },+ {+ name: "Charts (1D)",+ components: ["PieChart", "RadialChart", "Slice"],+ },+ {+ name: "Charts (Scatter)",+ components: ["ScatterChart", "ScatterSeries", "Point"],+ },+ {+ name: "Forms",+ components: [+ "Form",+ "FormControl",+ "Label",+ "Input",+ "TextArea",+ "Select",+ "SelectItem",+ "DatePicker",+ "Slider",+ "CheckBoxGroup",+ "CheckBoxItem",+ "RadioGroup",+ "RadioItem",+ "SwitchGroup",+ "SwitchItem",+ ],+ notes: [+ "- Define EACH FormControl as its own reference — do NOT inline all controls in one array.",+ "- NEVER nest Form inside Form.",+ "- Form requires explicit buttons. Always pass a Buttons(...) reference as the third Form argument.",+ "- rules is an optional object: { required: true, email: true, min: 8, maxLength: 100 }",+ "- The renderer shows error messages automatically — do NOT generate error text in the UI",+ ],+ },+ {+ name: "Buttons",+ components: ["Button", "Buttons"],+ },+ {+ name: "Follow-ups",+ components: ["FollowUpBlock", "FollowUpItem"],+ notes: [+ "- Use FollowUpBlock with FollowUpItem references at the end of a response to suggest next actions.",+ "- Clicking a FollowUpItem sends its text to the LLM as a user message.",+ ],+ },+ {+ name: "Layout",+ components: ["Tabs", "TabItem", "Accordion", "AccordionItem", "Carousel"],+ notes: [+ "- Use Tabs to present alternative views — each TabItem has a value id, trigger label, and content array.",+ "- Carousel takes an array of slides, where each slide is an array of content.",+ "- IMPORTANT: Every slide in a Carousel must have the same structure.",+ ],+ },+ {+ name: "Data Display",+ components: ["TagBlock", "Tag"],+ },+ {+ name: "Typography",+ components: ["Heading", "Blockquote", "InlineCode"],+ notes: [+ '- Heading levels: "h1" | "h2" | "h3" | "h4". Each renders with appropriate shadcn/ui typography styles.',+ "- Blockquote for styled quotes with optional cite attribution.",+ "- InlineCode for monospace code snippets within text.",+ ],+ },+ {+ name: "Calendar",+ components: ["CalendarBlock"],+ notes: [+ '- CalendarBlock renders a standalone interactive calendar. mode: "single" | "multiple" | "range".',+ "- Use numberOfMonths to show multiple months side by side.",+ "- Use defaultMonth (ISO date string) to set the initial visible month.",+ ],+ },+ {+ name: "Navigation",+ components: ["PaginationBlock"],+ notes: ["- PaginationBlock takes currentPage and totalPages."],+ },+ {+ name: "Overlays",+ components: ["DialogBlock", "AlertDialogBlock", "DrawerBlock"],+ notes: [+ "- DialogBlock renders a button that opens a modal dialog with content inside.",+ "- AlertDialogBlock renders a confirmation dialog with cancel/confirm actions.",+ "- DrawerBlock renders a bottom drawer panel triggered by a button.",+ ],+ },+];++// ── Examples ──++export const shadcnExamples: string[] = [+ `Example 1 — Table with follow-ups:+root = Card([title, tbl, followUps])+title = TextContent("Top Languages", "large-heavy")+tbl = Table(cols, rows)+cols = [Col("Language", "string"), Col("Users (M)", "number"), Col("Year", "number")]+rows = [["Python", 15.7, 1991], ["JavaScript", 14.2, 1995], ["Java", 12.1, 1995]]+followUps = FollowUpBlock([fu1, fu2])+fu1 = FollowUpItem("Tell me more about Python")+fu2 = FollowUpItem("Show me a JavaScript comparison")`,++ `Example 2 — Form with validation:+root = Card([title, form])+title = TextContent("Contact Us", "large-heavy")+form = Form("contact", btns, [nameField, emailField, msgField])+nameField = FormControl("Name", Input("name", "Your name", "text", { required: true, minLength: 2 }))+emailField = FormControl("Email", Input("email", "[email protected]", "email", { required: true, email: true }))+msgField = FormControl("Message", TextArea("message", "Tell us more...", 4, { required: true, minLength: 10 }))+btns = Buttons([Button("Submit", { type: "continue_conversation" }, "default")])`,++ `Example 3 — Alert variants:+root = Card([info, success, warning, danger])+info = Alert("Update available", "A new version is available for download.", "info")+success = Alert("Payment confirmed", "Your transaction was successful.", "success")+warning = Alert("Disk almost full", "You have less than 10% storage remaining.", "warning")+danger = Alert("Account suspended", "Please contact support immediately.", "destructive")`,++ `Example 4 — Bar chart with badges:+root = Card([header, badges, chart, followUps])+header = CardHeader("Monthly Revenue", "Q4 2024 performance across regions")+badges = TagBlock([Tag("Live data", "default"), Tag("USD", "secondary"), Tag("Grouped", "outline")])+chart = BarChart(["Oct", "Nov", "Dec"], [s1, s2], "grouped", "Month", "Revenue ($K)")+s1 = Series("North America", [420, 380, 510])+s2 = Series("Europe", [310, 290, 340])+followUps = FollowUpBlock([FollowUpItem("Show as line chart"), FollowUpItem("Add Asia-Pacific")])`,++ `Example 5 — Buttons with all variants:+root = Card([title, btns])+title = TextContent("Button Styles", "large-heavy")+btns = Buttons([b1, b2, b3, b4, b5, b6])+b1 = Button("Default", { type: "continue_conversation" }, "default")+b2 = Button("Secondary", { type: "continue_conversation" }, "secondary")+b3 = Button("Outline", { type: "continue_conversation" }, "outline")+b4 = Button("Ghost", { type: "continue_conversation" }, "ghost")+b5 = Button("Link", { type: "continue_conversation" }, "link")+b6 = Button("Destructive", { type: "continue_conversation" }, "destructive")`,++ `Example 6 — Tabs with charts:+root = Card([header, tabs])+header = CardHeader("Sales Dashboard", "Compare metrics across time periods")+tabs = Tabs([tab1, tab2, tab3])+tab1 = TabItem("revenue", "Revenue", [revChart])+tab2 = TabItem("users", "Users", [usersChart])+tab3 = TabItem("breakdown", "Breakdown", [pieChart])+revChart = BarChart(["Jan", "Feb", "Mar", "Apr"], [Series("Revenue", [45, 52, 61, 58])], "grouped", "Month", "USD ($K)")+usersChart = LineChart(["Jan", "Feb", "Mar", "Apr"], [Series("Active", [1200, 1350, 1500, 1420]), Series("New", [300, 420, 380, 450])], "Month", "Users")+pieChart = PieChart([Slice("Desktop", 62), Slice("Mobile", 31), Slice("Tablet", 7)])`,++ `Example 7 — Typography showcase:+root = Card([h1, h2, h3, quote, codeEx, sep, text])+h1 = Heading("Welcome to the Platform", "h1")+h2 = Heading("Getting Started", "h2")+h3 = Heading("Prerequisites", "h3")+quote = Blockquote("The best way to predict the future is to invent it.", "Alan Kay")+codeEx = InlineCode("npm install @acme/sdk")+sep = Separator()+text = TextContent("Follow the steps below to get up and running.")`,++ `Example 8 — Dialog and AlertDialog:+root = Card([title, btns])+title = TextContent("Actions Demo", "large-heavy")+btns = Buttons([viewBtn, deleteBtn])+viewBtn = DialogBlock("View Details", "Product Details", "Full specifications for Widget Pro", [detailText, detailTable], "outline")+detailText = TextContent("Here are the complete specifications:")+detailTable = Table([Col("Spec", "string"), Col("Value", "string")], [["Weight", "2.5 kg"], ["Dimensions", "30x20x10 cm"]])+deleteBtn = AlertDialogBlock("Delete Item", "Are you sure?", "This action cannot be undone. This will permanently delete the item.", "Delete", "Cancel", "destructive")`,++ `Example 9 — Pagination:+root = Card([title, table, pagination])+title = TextContent("Search Results", "large-heavy")+table = Table([Col("Name", "string"), Col("Status", "string")], [["Item 1", "Active"], ["Item 2", "Pending"], ["Item 3", "Active"]])+pagination = PaginationBlock(2, 10)`,++ `Example 10 — Drawer with content:+root = Card([title, drawerBtn])+title = TextContent("Report Summary", "large-heavy")+drawerBtn = DrawerBlock("View Full Report", "Quarterly Report Q4 2024", "Detailed breakdown of performance metrics", [chart, summary])+chart = BarChart(["Oct", "Nov", "Dec"], [Series("Revenue", [42, 38, 51])], "grouped", "Month", "Revenue ($K)")+summary = TextContent("Overall revenue increased by 12% compared to Q3.")`,++ `Example 11 — Standalone calendar:+root = Card([title, cal])+title = TextContent("Pick a Date", "large-heavy")+cal = CalendarBlock("single", "2025-01-01", 1)`,++ `Example 12 — Range calendar with two months:+root = Card([title, desc, cal])+title = TextContent("Select Travel Dates", "large-heavy")+desc = TextContent("Choose your check-in and check-out dates.", "small")+cal = CalendarBlock("range", "2025-06-01", 2)`,+];++export const shadcnAdditionalRules: string[] = [+ "Every response is a single Card(children) — children stack vertically automatically.",+ "Card is the only layout container. Do NOT use Stack. Use Tabs to switch between sections, Carousel for horizontal scroll.",+ "Use FollowUpBlock at the END of a Card to suggest what the user can do or ask next.",+ "Carousel takes an array of slides, where each slide is an array of content.",+ "IMPORTANT: Every slide in a Carousel must use the same component structure in the same order.",+ "For forms, define one FormControl reference per field so controls can stream progressively.",+ "For forms, always provide the second Form argument with Buttons(...) actions.",+ "Never nest Form inside Form.",+ 'Button variant mapping — "default" (filled primary), "secondary" (muted), "outline" (bordered), "ghost" (transparent), "link" (underlined text), "destructive" (red/danger). Use the right variant for the context.',+ 'Button size mapping — "default" (standard), "xs" (extra small), "sm" (small), "lg" (large), "icon" (square icon-only).',+ 'Badge/Tag variants — "default" (filled primary), "secondary" (muted fill), "destructive" (red), "outline" (bordered), "ghost" (minimal).',+ 'Alert variants — "default" (neutral), "destructive" (red error), "info" (blue informational), "success" (green confirmation), "warning" (amber caution). Always pick the variant that matches the message tone.',+ "When the user asks for a specific component (e.g. 'show me an accordion'), generate a realistic, fully-populated example of that component with sample data.",+ "Use CardHeader for section titles. Use TextContent for body text. Use MarkDownRenderer for rich formatted text with links, bold, lists.",+ "Use CodeBlock with a language prop for code snippets. Always set the language for syntax context.",+ "Use Progress for completion/loading indicators.",+ "Use Avatar for user/profile images. Use Image/ImageBlock for content images.",+ 'Use Heading for section titles with level: "h1" | "h2" | "h3" | "h4". Use Blockquote for quotes. Use InlineCode for inline code.',+ "Use DialogBlock to show a button that opens a modal dialog with content inside. Good for details/previews.",+ "Use AlertDialogBlock for confirmation dialogs (delete, logout, etc). Confirm action sends message to LLM.",+ "Use DrawerBlock for bottom panels with additional content. Good for details/reports.",+ "Use PaginationBlock for paginated data. currentPage/totalPages are required.",+ 'Use CalendarBlock for standalone calendar display. mode: "single" (pick one date), "multiple" (pick many), "range" (date range). Use numberOfMonths to show side-by-side months.',+];++export const shadcnPromptOptions: PromptOptions = {+ examples: shadcnExamples,+ additionalRules: shadcnAdditionalRules,+};++// ── Library ──++export const shadcnChatLibrary = createLibrary({+ root: "Card",+ componentGroups: shadcnComponentGroups,+ components: [+ // Root+ ChatCard,+ CardHeader,+ // Content+ TextContent,+ MarkDownRenderer,+ Alert,+ ShadcnBadgeComponent,+ Avatar,+ CodeBlock,+ Image,+ ImageBlock,+ Progress,+ Separator,+ // Tables+ Table,+ Col,+ // Charts (2D)+ BarChartCondensed,+ LineChartCondensed,+ AreaChartCondensed,+ RadarChartComponent,+ Series,+ // Charts (1D)+ PieChartComponent,+ RadialChartComponent,+ Slice,+ // Charts (Scatter)+ ScatterChartComponent,+ ScatterSeries,+ Point,+ // Forms+ Form,+ FormControl,+ Label,+ Input,+ TextArea,+ Select,+ SelectItem,+ DatePicker,+ Slider,+ CheckBoxGroup,+ CheckBoxItem,+ RadioGroup,+ RadioItem,+ SwitchGroup,+ SwitchItem,+ // Buttons+ Button,+ Buttons,+ // Follow-ups+ FollowUpBlock,+ FollowUpItem,+ // Layout+ Tabs,+ TabItem,+ Accordion,+ AccordionItemDef,+ Carousel,+ // Data Display+ TagBlock,+ Tag,+ // Typography+ Heading,+ Blockquote,+ InlineCode,+ // Navigation+ PaginationBlock,+ // Overlays+ DialogBlock,+ AlertDialogBlock,+ DrawerBlock,+ // Calendar+ CalendarBlock,+ ],+});diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/rules.ts b/examples/shadcn-chat/src/lib/shadcn-genui/rules.tsnew file mode 100644index 000000000..cd77461f9--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/rules.ts@@ -0,0 +1,17 @@+import { z } from "zod";++export const rulesSchema = z+ .object({+ required: z.boolean().optional(),+ email: z.boolean().optional(),+ url: z.boolean().optional(),+ numeric: z.boolean().optional(),+ min: z.number().optional(),+ max: z.number().optional(),+ minLength: z.number().optional(),+ maxLength: z.number().optional(),+ pattern: z.string().optional(),+ })+ .optional();++export type RulesSchema = z.infer<typeof rulesSchema>;diff --git a/examples/shadcn-chat/src/lib/shadcn-genui/unions.ts b/examples/shadcn-chat/src/lib/shadcn-genui/unions.tsnew file mode 100644index 000000000..88a0e7f30--- /dev/null+++ b/examples/shadcn-chat/src/lib/shadcn-genui/unions.ts@@ -0,0 +1,70 @@+import { z } from "zod";++import { Alert } from "./components/alert";+import { AlertDialogBlock } from "./components/alert-dialog-block";+import { ShadcnBadgeComponent } from "./components/badge";+import { CalendarBlock } from "./components/calendar-block";+import { CodeBlock } from "./components/code-block";+import { DialogBlock } from "./components/dialog-block";+import { DrawerBlock } from "./components/drawer-block";+import { FollowUpBlock } from "./components/follow-up-block";+import { Image, ImageBlock } from "./components/image";+import { MarkDownRenderer } from "./components/markdown-renderer";+import { PaginationBlock } from "./components/pagination-block";+import { Progress } from "./components/progress";+import { Separator } from "./components/separator";+import { TextContent } from "./components/text-content";+import { Blockquote, Heading, InlineCode } from "./components/typography";++import {+ AreaChartCondensed,+ BarChartCondensed,+ LineChartCondensed,+ PieChartComponent,+ RadarChartComponent,+ RadialChartComponent,+ ScatterChartComponent,+} from "./components/charts";++import { Table } from "./components/table";+import { TagBlock } from "./components/tag";++import { Avatar } from "./components/avatar";+import { Buttons } from "./components/buttons";+import { CardHeader } from "./components/card-header";+import { Form } from "./components/form";++export const ContentChildUnion = z.union([+ TextContent.ref,+ MarkDownRenderer.ref,+ CardHeader.ref,+ Alert.ref,+ ShadcnBadgeComponent.ref,+ Avatar.ref,+ CodeBlock.ref,+ Image.ref,+ ImageBlock.ref,+ Progress.ref,+ Separator.ref,+ BarChartCondensed.ref,+ LineChartCondensed.ref,+ AreaChartCondensed.ref,+ PieChartComponent.ref,+ RadarChartComponent.ref,+ RadialChartComponent.ref,+ ScatterChartComponent.ref,+ Table.ref,+ TagBlock.ref,+ Form.ref,+ Buttons.ref,+ Heading.ref,+ Blockquote.ref,+ InlineCode.ref,+ PaginationBlock.ref,+ DialogBlock.ref,+ AlertDialogBlock.ref,+ DrawerBlock.ref,+ CalendarBlock.ref,+]);++export const ChatContentChildUnion = z.union([...ContentChildUnion.options, FollowUpBlock.ref]);diff --git a/examples/shadcn-chat/tsconfig.json b/examples/shadcn-chat/tsconfig.jsonnew file mode 100644index 000000000..c43ccccc5--- /dev/null+++ b/examples/shadcn-chat/tsconfig.json@@ -0,0 +1,30 @@+{+ "compilerOptions": {+ "target": "ES2017",+ "lib": ["dom", "dom.iterable", "esnext"],+ "allowJs": true,+ "skipLibCheck": true,+ "strict": true,+ "noEmit": true,+ "esModuleInterop": true,+ "module": "esnext",+ "moduleResolution": "bundler",+ "resolveJsonModule": true,+ "isolatedModules": true,+ "jsx": "react-jsx",+ "incremental": true,+ "plugins": [{ "name": "next" }],+ "paths": {+ "@/*": ["./src/*"]+ }+ },+ "include": [+ "next-env.d.ts",+ "**/*.ts",+ "**/*.tsx",+ ".next/types/**/*.ts",+ ".next/dev/types/**/*.ts",+ "**/*.mts"+ ],+ "exclude": ["node_modules"]+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 19085f6f6..817a21ba7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -122,7 +122,7 @@ importers:version: 19.2.3(@types/[email protected])eslint-config-next:specifier: 16.1.6- version: 16.1.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 16.1.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])postcss:specifier: ^8.5.6version: 8.5.6@@ -185,6 +185,166 @@ importers:specifier: ^5version: 5.9.3+ examples/shadcn-chat:+ dependencies:+ '@openuidev/react-headless':+ specifier: workspace:*+ version: link:../../packages/react-headless+ '@openuidev/react-lang':+ specifier: workspace:*+ version: link:../../packages/react-lang+ '@openuidev/react-ui':+ specifier: workspace:*+ version: link:../../packages/react-ui+ '@radix-ui/react-accordion':+ specifier: ^1.2.3+ version: 1.2.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-alert-dialog':+ specifier: ^1.1.15+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-aspect-ratio':+ specifier: ^1.1.1+ version: 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-avatar':+ specifier: ^1.1.3+ version: 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-checkbox':+ specifier: ^1.1.4+ version: 1.3.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible':+ specifier: ^1.1.3+ version: 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog':+ specifier: ^1.1.15+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-hover-card':+ specifier: ^1.1.15+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-label':+ specifier: ^2.1.2+ version: 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover':+ specifier: ^1.1.6+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-progress':+ specifier: ^1.1.2+ version: 1.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-radio-group':+ specifier: ^1.2.3+ version: 1.3.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-select':+ specifier: ^2.1.6+ version: 2.2.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator':+ specifier: ^1.1.2+ version: 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slider':+ specifier: ^1.2.3+ version: 1.3.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-switch':+ specifier: ^1.1.3+ version: 1.2.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tabs':+ specifier: ^1.1.3+ version: 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle':+ specifier: ^1.1.2+ version: 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group':+ specifier: ^1.1.2+ version: 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tooltip':+ specifier: ^1.2.7+ version: 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@tanstack/react-table':+ specifier: ^8.21.3+ class-variance-authority:+ specifier: ^0.7.1+ version: 0.7.1+ clsx:+ specifier: ^2.1.1+ version: 2.1.1+ date-fns:+ specifier: ^4.1.0+ version: 4.1.0+ embla-carousel-react:+ specifier: ^8.6.0+ version: 8.6.0([email protected])+ input-otp:+ specifier: ^1.4.2+ lucide-react:+ specifier: ^0.575.0+ version: 0.575.0([email protected])+ next:+ specifier: 16.1.6+ version: 16.1.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])+ openai:+ specifier: ^6.22.0+ version: 6.22.0([email protected])([email protected])+ radix-ui:+ specifier: ^1.4.3+ version: 1.4.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react:+ specifier: 19.2.3+ version: 19.2.3+ react-day-picker:+ specifier: ^9.14.0+ version: 9.14.0([email protected])+ react-dom:+ specifier: 19.2.3+ version: 19.2.3([email protected])+ react-markdown:+ specifier: ^10.1.0+ version: 10.1.0(@types/[email protected])([email protected])+ recharts:+ specifier: ^2.15.4+ remark-gfm:+ specifier: ^4.0.1+ version: 4.0.1+ sonner:+ specifier: ^2.0.7+ tailwind-merge:+ specifier: ^3.3.0+ version: 3.5.0+ vaul:+ specifier: ^1.1.2+ version: 1.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ zod:+ specifier: ^4.0.0+ version: 4.3.6+ devDependencies:+ '@tailwindcss/postcss':+ specifier: ^4+ version: 4.2.1+ '@types/node':+ specifier: ^20+ version: 20.19.35+ '@types/react':+ specifier: ^19+ version: 19.2.14+ '@types/react-dom':+ specifier: ^19+ version: 19.2.3(@types/[email protected])+ eslint:+ specifier: ^9+ version: 9.29.0([email protected])+ eslint-config-next:+ specifier: 16.1.6+ version: 16.1.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ tailwindcss:+ specifier: ^4+ version: 4.2.1+ tsx:+ specifier: ^4.19.2+ version: 4.20.3+ typescript:+ specifier: ^5+ version: 5.9.3+packages/openui-cli:dependencies:'@inquirer/core':@@ -661,6 +821,9 @@ packages:'@date-fns/[email protected]':resolution: {integrity: sha512-LBrd7MiJZ9McsOgxqWX7AaxrDjcFVjWH/tIKJd7pnR7McaslGYOP1QmmiBXdJH/H/yLCT+rcQ7FaPBUxRGUtrg==}+ '@date-fns/[email protected]':+ resolution: {integrity: sha512-P5LUNhtbj6YfI3iJjw5EL9eUAG6OitD0W3fWQcpQjDRc/QIsL0tRNuO1PcDvPccWL1fSTXXdE1ds+l95DV/OFA==}+'@emnapi/[email protected]':resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==}@@ -1860,6 +2023,19 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-XM+E4WXl0OqUJFovy6GjmxxFyx9opfCAIUku4dlKRd5YEPqt4kALOkQOp0Of6reHuUkJuiPBEc5k0o4z4lTC8A==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-l3W5D54emV2ues7jjeG1xcyN7S3jnK3zE2zHqgn0CmMsy9lNJwmgcrmaxS+7ipw15FAivzKNzH3d5EcGoFKw0A==}peerDependencies:@@ -1886,6 +2062,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}peerDependencies:@@ -1912,6 +2101,32 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0Qk603AHGV28BOBO34p7IgD5m+V5Sg/YovfayABkoDDBM5d3NCx0Mp4gGrjzLGes1jV5eNOE1r3itqOR33VC6Q==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-yd+dI56KZqawxKZrJ31eENUwqc1QSqg4OZ15rybGjF2ZNwMO+wCyHzAVLRp9qoYJf7kYy0YpZ2b0JCzJ42HZpA==}peerDependencies:@@ -1925,6 +2140,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-2qrRsVGSCYasSz1RFOorXwl0H7g7J1frQtgpQgYrt+MOidtPAINHn9CPovQXb83r8ahapdx3Tu0fa/pdFFSdPg==}peerDependencies:@@ -1973,6 +2201,19 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==}peerDependencies:@@ -1982,6 +2223,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ieIFACdMpYfMEjF0rEf5KLvfVyIkOz6PDGyNnP+u+4xQ6jny3VCgA4OgXOwNx2aUkxn8zx9fiVcM8CfFYv9Lxw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==}peerDependencies:@@ -2043,6 +2293,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-fyjAACV62oPV925xFCrH8DR5xWhg9KYtJT4s3u54jxp+L/hbpTY2kIeEFFbFe+a/HCE94zGQMZLIpVTPVZDhaA==}peerDependencies:@@ -2074,6 +2337,32 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QM70k4Zwjttifr5a4sZFts9fn8FzHYvQ5PiB19O2HsYibaHSVt9fH9rzB0XZo/YcM+b7t/p7lYCT/F5eOeF5yQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-qgTkjNT1CfKMoP0rcasmlH2r1DAiYicWsDsufxl940sT2wHNEWWv6FMWIQXWhVdmC1d/HYfbhQx60KYyAtKxjg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==}peerDependencies:@@ -2109,8 +2398,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2122,8 +2411,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-EB1FktTz5xRRi2Er974AUQZWg2yVBb1yjip38/lgwtCVRd3a+maUoGHN/xs9Yv8SY8QwbSEb+YrxGadVWbEutA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2135,8 +2424,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-IUFAccz1JyKcf/RjB552PlWwxjeCJB8/4KxT7EhBHOJM+mN7LdW+B3kacJXILm32xawcMMjb2i0cIZpo+f9kiQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2148,8 +2437,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ycS4rbwURavDPVjCb5iS3aG4lURFDILi6sKI/WITUMZ13gMmn/xGjpLoqBAalhJaDk8I3UbCM5GzKHrnzwHbvg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2161,8 +2450,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/UuCrDBWravcaMix4TdT+qlNdVwOM1Nck9kWx/vafXsdfj1ChfhOdfi3cy9SGBpWgTXwYCuboT/oYpJy3clqfw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2174,8 +2463,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-ueDqRbdc4/bkaQT3GIpLQssRlFgWaL/U2z/S31qRwwLWoxHLgry3SIfCwhxeQNbirEUXFa+lq3RL3oBYXtcmIA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2187,8 +2476,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-IUFAccz1JyKcf/RjB552PlWwxjeCJB8/4KxT7EhBHOJM+mN7LdW+B3kacJXILm32xawcMMjb2i0cIZpo+f9kiQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2200,8 +2489,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2213,8 +2502,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-9w5XhD0KPOrm92OTTE0SysH3sYzHsSTHNvZgUBo/VZ80VdYyB5RneDbc0dKpURS24IxkoFRu/hI0i4XyfFwY6g==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2226,8 +2515,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-dT9aOXUen9JSsxnMPv/0VqySQf5eDQ6LCk5Sw28kamz8wSOW2bJdlX2Bg5VUIIcV+6XlHpWTIuTPCf/UNIyq8Q==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ueDqRbdc4/bkaQT3GIpLQssRlFgWaL/U2z/S31qRwwLWoxHLgry3SIfCwhxeQNbirEUXFa+lq3RL3oBYXtcmIA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2239,8 +2528,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2252,8 +2541,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2265,8 +2554,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-HnMTdXEVuuyzx63ME0ut4+sEMYW6oouHWNGUZc7ddvUWIcfCva/AMoqEW/3wnEllriMWBa0RHspCYnfCWJQYmA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2278,8 +2567,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2291,8 +2580,8 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-rkfe2pU2NBAYfGaxa3Mqosi7VZEWX5CxKaanRv0vZd4Zhl9fvQrg0VM93dv3xGLGfrHuoTRF3JXH8nb9g+B3fw==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-+gISHcSPUJ7ktBy9RnTqbdKW78bcGke3t6taawyZ71pio1JewwGSJizycs7rLhGTvMJYCQB1DBK4KQsxs7U8dA==}peerDependencies:'@types/react': '*''@types/react-dom': '*'@@ -2304,8 +2593,138 @@ packages:'@types/react-dom':optional: true- '@radix-ui/[email protected]':- resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-9w5XhD0KPOrm92OTTE0SysH3sYzHsSTHNvZgUBo/VZ80VdYyB5RneDbc0dKpURS24IxkoFRu/hI0i4XyfFwY6g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-dT9aOXUen9JSsxnMPv/0VqySQf5eDQ6LCk5Sw28kamz8wSOW2bJdlX2Bg5VUIIcV+6XlHpWTIuTPCf/UNIyq8Q==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-HnMTdXEVuuyzx63ME0ut4+sEMYW6oouHWNGUZc7ddvUWIcfCva/AMoqEW/3wnEllriMWBa0RHspCYnfCWJQYmA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-rkfe2pU2NBAYfGaxa3Mqosi7VZEWX5CxKaanRv0vZd4Zhl9fvQrg0VM93dv3xGLGfrHuoTRF3JXH8nb9g+B3fw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}peerDependencies:'@types/react': '*'react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc@@ -2335,6 +2754,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-GTVAlRVrQrSw3cEARM0nAx73ixrWDPNZAruETn3oHCNP6SbZ/hNxdxp+u7VkIEv3/sFoLq1PfcHrl7Pnp0CDpw==}peerDependencies:@@ -2361,6 +2793,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-kiU694Km3WFLTC75DdqgM/3Jauf3rD9wxeS9XtyWFKsBUeZA337lC+6uUazT7I1DhanZ5gyD5Stf8uf2dbQxOQ==}peerDependencies:@@ -2374,6 +2819,32 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-ZoFkBBz9zv9GWer7wIjvdRxmh2wyc2oKWw6C6CseWd6/yq1DK/l5lJ+wnsmFwJZbBYqr02mrf8A2q/CVCuM3ZA==}peerDependencies:@@ -2387,6 +2858,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-4ol06/1bLoFu1nwUqzdD4Y5RZ9oDdKeiHIsntug54Hcr1pgaHiPqHFEaXI1IFP/EsOfROQZ8Mig9VTIRza6Tjg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Ap+fNYwKTYJ9pzqW+Xe2HtMRbQ/EeWkj2qykZ6SuEV4iS/o1bZI5ssJbk4D2r8XuDuOBVz/tIx2JObtuqU+5Zw==}peerDependencies:@@ -2400,6 +2884,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==}peerDependencies:@@ -2436,6 +2933,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}peerDependencies:@@ -2818,6 +3324,10 @@ packages:'@swc/[email protected]':resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}+ '@tabby_ai/[email protected]':+ resolution: {integrity: sha512-r5bClKrcIusDoo049dSL8CawnHR6mRdDwhlQuIgZRNty68q0x8k3Lf1BtPAMxRf/GgnHBnIO4ujd3+GQdLWzxQ==}+ engines: {node: '>=16.0.0'}+'@tailwindcss/[email protected]':resolution: {integrity: sha512-jlx6sLk4EOwO6hHe1oCGm1Q4AN/s0rSrTTPBGPM0/RQ6Uylwq17FuU8IeJJKEjtc6K6O07zsvP+gDO6MMWo7pg==}@@ -2967,6 +3477,17 @@ packages:'@takumi-rs/[email protected]':resolution: {integrity: sha512-5fUGeQg+T8+m4huLxN6CjGvhCSD400WfO8J0X9Ud8ULpefFj3rP3a+eh9AhezlF9HqeltS+ODzB2BFbmmHCTVA==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-5nNMTSETP4ykGegmVkhjcS8tTLW6Vl4axfEGQN3v0zdHYbK4UfoqfPChclTrJ4EoK9QynqAu9oUf8VEmrpZ5Ww==}+ engines: {node: '>=12'}+ peerDependencies:+ react: '>=16.8'+ react-dom: '>=16.8'++ '@tanstack/[email protected]':+ resolution: {integrity: sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg==}+ engines: {node: '>=12'}+'@testing-library/[email protected]':resolution: {integrity: sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ==}engines: {node: '>=18'}@@ -3964,6 +4485,19 @@ packages:resolution: {integrity: sha512-GP+M7aeluQo9uAyiTCxgIj/j+PrWhMlY7LFVj8prlsPljd0Fdg9AprlfUi+OCSFWy9Y5/2D/Jrj9HS8Z4rpKWA==}+ resolution: {integrity: sha512-0/PjqU7geVmo6F734pmPqpyHqiM99olvyecY7zdweCw+6tKEXnrE90pBiBbMMU8s5tICemzpQ3hi5EpxzGW+JA==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.1 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc++ resolution: {integrity: sha512-fMVUDUEx0/uIEDM0Mz3dHznDhfX+znCCDCeIophYb1QGVM7YThSWX+wz11zlYwWFOr74b4QLGg0hrGPJeG2s4A==}+ peerDependencies:+ embla-carousel: 8.6.0++ resolution: {integrity: sha512-SjWyZBHJPbqxHOzckOfo8lHisEaJWmwd23XppYFYVh10bU66/Pn5tkVkbkCMZVdbUE5eTCI2nD8OyIP4Z+uwkA==}+resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}@@ -4737,6 +5271,12 @@ packages:resolution: {integrity: sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==}+ resolution: {integrity: sha512-l3jWwYNvrEa6NTCt7BECfCm48GvwuZzkoeG3gBL2w4CHeOXW3eKFmf9UNYkNfYc3mxMrthMnxjIE07MT0zLBQA==}+ peerDependencies:+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc+resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==}engines: {node: '>= 0.4'}@@ -5756,6 +6296,19 @@ packages:resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}+ resolution: {integrity: sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==}@@ -5765,6 +6318,12 @@ packages:peerDependencies:react: ^16.3.0 || ^17.0.1 || ^18.0.0 || ^19.0.0+ resolution: {integrity: sha512-tBaoDWjPwe0M5pGrum4H0SR6Lyk+BO9oHnp9JbKpGKW2mlraNPgP9BMfsg5pWpwrssARmeqk7YBl2oXutZTaHA==}+ engines: {node: '>=18'}+ peerDependencies:+ react: '>=16.8.0'+resolution: {integrity: sha512-urlK4C9XJZVpQ81tmVgd2O7lZ0VQldZeHzNejbwLWZSkzHH498KnArT0EHNfKBOWwKc935iMLGZdxXPRISzUxQ==}engines: {node: '>=18'}@@ -6135,6 +6694,12 @@ packages:resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==}engines: {node: '>=8'}+ resolution: {integrity: sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==}+ peerDependencies:+ react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc+resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}engines: {node: '>=0.10.0'}@@ -6543,6 +7108,12 @@ packages:resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}hasBin: true+ resolution: {integrity: sha512-ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==}+ peerDependencies:+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc+resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==}@@ -7102,6 +7673,8 @@ snapshots:'@date-fns/[email protected]': {}+ '@date-fns/[email protected]': {}+'@emnapi/[email protected]':dependencies:'@emnapi/wasi-threads': 1.1.0@@ -7438,6 +8011,12 @@ snapshots:'@floating-ui/core': 1.7.1'@floating-ui/utils': 0.2.9+ dependencies:+ '@floating-ui/dom': 1.7.1+ react: 19.2.3+ react-dom: 19.2.3([email protected])+dependencies:'@floating-ui/dom': 1.7.1@@ -8013,6 +8592,15 @@ snapshots:'@radix-ui/[email protected]': {}+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8030,6 +8618,23 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -8047,13 +8652,45 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- react: 19.2.4- react-dom: 19.2.4([email protected])- optionalDependencies:- '@types/react': 19.2.14+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.4+ react-dom: 19.2.4([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':@@ -8065,6 +8702,48 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8081,6 +8760,22 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8097,6 +8792,22 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -8113,6 +8824,18 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -8125,18 +8848,72 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ dependencies:+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4optionalDependencies:'@types/react': 19.2.14+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4optionalDependencies:'@types/react': 19.2.14+ dependencies:+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -8159,12 +8936,31 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ dependencies:+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4optionalDependencies:'@types/react': 19.2.14+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8178,6 +8974,19 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -8206,18 +9015,56 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4optionalDependencies:'@types/react': 19.2.14+ dependencies:+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4optionalDependencies:'@types/react': 19.2.14+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -8229,6 +9076,44 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-label': 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])@@ -8236,6 +9121,15 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -8271,6 +9165,72 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -8293,6 +9253,65 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -8316,6 +9335,24 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.1+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:@@ -8334,6 +9371,24 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.1+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:@@ -8352,6 +9407,16 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -8362,6 +9427,16 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -8372,6 +9447,16 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -8382,6 +9467,15 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])@@ -8391,6 +9485,53 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.2.4(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8409,6 +9550,41 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8426,6 +9602,23 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -8443,6 +9636,23 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/number': 1.1.1@@ -8460,6 +9670,35 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ aria-hidden: 1.2.6+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ react-remove-scroll: 2.7.1(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/number': 1.1.1@@ -8489,6 +9728,44 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ aria-hidden: 1.2.6+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -8498,6 +9775,25 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/number': 1.1.1@@ -8517,6 +9813,32 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -8524,6 +9846,13 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])@@ -8531,6 +9860,21 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8546,6 +9890,21 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8562,6 +9921,22 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -8578,6 +9953,41 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8593,6 +10003,43 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8604,6 +10051,21 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -8624,12 +10086,46 @@ snapshots:'@types/react': 19.2.14'@types/react-dom': 19.2.3(@types/[email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4optionalDependencies:'@types/react': 19.2.14+ dependencies:+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])@@ -8638,6 +10134,13 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])@@ -8645,6 +10148,13 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])@@ -8652,18 +10162,44 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ react: 19.2.3+ use-sync-external-store: 1.5.0([email protected])+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4optionalDependencies:'@types/react': 19.2.14+ dependencies:+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4optionalDependencies:'@types/react': 19.2.14+ dependencies:+ '@radix-ui/rect': 1.1.1+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/rect': 1.1.1@@ -8671,6 +10207,13 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.3+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])@@ -8678,6 +10221,15 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -9047,6 +10599,8 @@ snapshots:dependencies:tslib: 2.8.1+ '@tabby_ai/[email protected]': {}+'@tailwindcss/[email protected]':dependencies:'@jridgewell/remapping': 2.3.5@@ -9161,6 +10715,14 @@ snapshots:'@takumi-rs/[email protected]': {}+ dependencies:+ '@tanstack/table-core': 8.21.3+ react: 19.2.3+ react-dom: 19.2.3([email protected])++ '@tanstack/[email protected]': {}+'@testing-library/[email protected]':dependencies:'@babel/code-frame': 7.27.1@@ -10246,6 +11808,18 @@ snapshots:+ dependencies:+ embla-carousel: 8.6.0+ embla-carousel-reactive-utils: 8.6.0([email protected])+ react: 19.2.3++ dependencies:+ embla-carousel: 8.6.0++ [email protected]: {}+@@ -10475,13 +12049,13 @@ snapshots:- [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:'@next/eslint-plugin-next': 16.1.6eslint: 10.0.2([email protected])eslint-import-resolver-node: 0.3.9- eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))eslint-plugin-react: 7.37.5([email protected]([email protected]))eslint-plugin-react-hooks: 7.0.1([email protected]([email protected]))@@ -10538,7 +12112,7 @@ snapshots:tinyglobby: 0.2.15unrs-resolver: 1.11.1optionalDependencies:- eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))transitivePeerDependencies:- supports-color@@ -10557,11 +12131,11 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])([email protected]([email protected])))([email protected]([email protected])):+ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])([email protected]([email protected])))([email protected]([email protected])):dependencies:debug: 3.2.7optionalDependencies:eslint: 10.0.2([email protected])eslint-import-resolver-node: 0.3.9@@ -10579,7 +12153,7 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])):+ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])):dependencies:'@rtsao/scc': 1.1.0array-includes: 3.1.9@@ -10590,7 +12164,7 @@ snapshots:doctrine: 2.1.0eslint: 10.0.2([email protected])eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.12.1(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])([email protected]([email protected])))([email protected]([email protected]))+ eslint-module-utils: 2.12.1(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])([email protected]([email protected])))([email protected]([email protected]))hasown: 2.0.2is-core-module: 2.16.1is-glob: 4.0.3@@ -10602,7 +12176,7 @@ snapshots:string.prototype.trimend: 1.0.9tsconfig-paths: 3.15.0optionalDependencies:transitivePeerDependencies:- eslint-import-resolver-typescript- eslint-import-resolver-webpack@@ -11484,6 +13058,11 @@ snapshots:+ dependencies:+ react: 19.2.3+ react-dom: 19.2.3([email protected])+dependencies:es-errors: 1.3.0@@ -12790,6 +14369,69 @@ snapshots:+ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-accessible-icon': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-accordion': 1.2.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-alert-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-aspect-ratio': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-avatar': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-checkbox': 1.3.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context-menu': 2.2.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dropdown-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-form': 0.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-hover-card': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-label': 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menubar': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-navigation-menu': 1.2.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-one-time-password-field': 0.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-password-toggle-field': 0.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-progress': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-radio-group': 1.3.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-scroll-area': 1.2.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-select': 2.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slider': 1.3.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-switch': 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tabs': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toast': 1.2.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toolbar': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tooltip': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])+dependencies:safe-buffer: 5.2.1@@ -12799,6 +14441,14 @@ snapshots:react: 19.2.4tween-functions: 1.2.0+ dependencies:+ '@date-fns/tz': 1.4.1+ '@tabby_ai/hijri-converter': 1.0.5+ date-fns: 4.1.0+ date-fns-jalali: 4.1.0-0+ react: 19.2.3+dependencies:'@date-fns/tz': 1.2.0@@ -12841,6 +14491,24 @@ snapshots:+ dependencies:+ '@types/hast': 3.0.4+ '@types/mdast': 4.0.4+ '@types/react': 19.2.14+ devlop: 1.1.0+ hast-util-to-jsx-runtime: 2.3.6+ html-url-attributes: 3.0.1+ mdast-util-to-hast: 13.2.0+ react: 19.2.3+ remark-parse: 11.0.0+ remark-rehype: 11.1.2+ unified: 11.0.5+ unist-util-visit: 5.0.0+ vfile: 6.0.3+ transitivePeerDependencies:+ - supports-color+dependencies:'@types/hast': 3.0.4@@ -12864,6 +14532,14 @@ snapshots:react: 19.2.4react-dom: 19.2.4([email protected])+ dependencies:+ react: 19.2.3+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4@@ -12872,6 +14548,17 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ react: 19.2.3+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4@@ -12883,6 +14570,17 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ react: 19.2.3+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4@@ -12894,6 +14592,14 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ fast-equals: 5.2.2+ prop-types: 15.8.1+ react: 19.2.3+ react-dom: 19.2.3([email protected])+dependencies:fast-equals: 5.2.2@@ -12902,6 +14608,14 @@ snapshots:react-dom: 19.2.4([email protected])+ dependencies:+ get-nonce: 1.0.1+ react: 19.2.3+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:get-nonce: 1.0.1@@ -12920,6 +14634,15 @@ snapshots:react: 19.2.4refractor: 3.6.0+ dependencies:+ '@babel/runtime': 7.27.6+ dom-helpers: 5.2.1+ loose-envify: 1.4.0+ prop-types: 15.8.1+ react: 19.2.3+ react-dom: 19.2.3([email protected])+dependencies:'@babel/runtime': 7.27.6@@ -12957,6 +14680,19 @@ snapshots:dependencies:decimal.js-light: 2.5.1+ dependencies:+ clsx: 2.1.1+ eventemitter3: 4.0.7+ lodash: 4.17.21+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ react-is: 18.3.1+ recharts-scale: 0.4.5+ tiny-invariant: 1.3.3+ victory-vendor: 36.9.2+dependencies:clsx: 2.1.1@@ -13368,6 +15104,11 @@ snapshots:dependencies:unicode-emoji-modifier-base: 1.0.0+ dependencies:+ react: 19.2.3+ react-dom: 19.2.3([email protected])+@@ -13847,6 +15588,13 @@ snapshots:dependencies:punycode: 2.3.1+ dependencies:+ react: 19.2.3+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:react: 19.2.4@@ -13854,6 +15602,14 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ detect-node-es: 1.1.0+ react: 19.2.3+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14+dependencies:detect-node-es: 1.1.0@@ -13862,6 +15618,10 @@ snapshots:optionalDependencies:'@types/react': 19.2.14+ dependencies:+ react: 19.2.3+dependencies:react: 19.2.4@@ -13878,6 +15638,15 @@ snapshots:+ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.3+ react-dom: 19.2.3([email protected])+ transitivePeerDependencies:+ - '@types/react'+ - '@types/react-dom'+dependencies:'@types/unist': 3.0.3