diff --git a/REVIEW.md b/REVIEW.md
index 7db342e..75c0d8a 100644
--- a/REVIEW.md
+++ b/REVIEW.md
@@ -37,6 +37,34 @@ Code implementation used the verified Cursor Grok 4.6 Extra High conversation th
On `3b1efd7`, a local assisted trial accepted an exact saved draft in the browser, reloaded, and reimported the original two research observations. The accepted draft, Ready status, two observations (deduplicated), and review history were retained. No external applications, messages, or Notion writes. Source rows came through the connected Notion tool, not the standalone Notion CLI. Installed Grok Bot JSON was transcribed by hand into a validated file; automatic Bot file transfer was not tested. After this checkout fast-forwarded to `59ec7ac`, a read-only browser reopen still showed the accepted record.
+## Round 2 (approved `8ba8400` snapshot based on `2372771`)
+
+Surgical UI on copy/paste, Relay vs source status labels, redundant accepted actions, and dirty navigation. Independent fictional QA only; the earlier assisted real trial on port 3101 was not repeated or mutated.
+
+Astra 6 High review then required four corrections, implemented here without publication:
+
+1. Exact acceptance uses the current job identity/version, no conflict, matching `accepted_draft`, and an unchanged draft and blocker. Queue hint shares that condition. External Ready refresh → conflict → revert to the old base is not labeled accepted.
+2. Pasted input is bounded by UTF-8 byte size (1.8 MB), with a cheap character bound first. A valid JSON envelope under the character limit and over the byte limit is rejected. The 20,000-character draft bound is unchanged.
+3. Docs distinguish outbound `relay.packet.v1` copy/download from inbound `relay.draft.v1` paste/load. Prior assisted-trial Bot JSON remains a hand transcription. No fresh installed-Bot roundtrip is claimed.
+4. Remaining `pnpm audit` after the approved React 19.2.8 / Vite 8.0.16 patch: **19 advisories (8 high, 8 moderate, 3 low)** in esbuild, image-size, sharp, undici, and ws. Baseline was 22 (10 high, 9 moderate, 3 low). Evidence: `work/round2-postpatch-audit.json`. No further dependency updates in this round.
+
+- `pnpm test`: **55 passed, 0 failed**. Coverage adds the conflict-revert acceptance case and a multibyte paste envelope over 1.8 MB bytes. No source-string tests.
+- `pnpm exec tsc --noEmit`, `pnpm lint`, `pnpm build`: passed on Vite 8.0.16. Build kept the framework route-classification notice.
+- Direct dependencies moved only to `react`/`react-dom`/`react-server-dom-webpack` 19.2.8 and `vite` 8.0.16. Lockfile also resolved Vite’s `rolldown` 1.0.1 → 1.0.3 and required `@oxc-project/types` 0.133.0. No overrides.
+- Migrations 0000, 0001, and 0002 applied to this checkout’s `.wrangler/state`. Dev server: `http://localhost:3102/` (listens on `[::1]:3102`).
+- Initial fictional browser pass is retained at ignored `private-data/work/round2-browser-qa-initial.json`. Tightened corrections pass (`private-data/work/round2-corrections-browser-qa.json`): copy serializer matched download (Windows clipboard CRLF vs file LF, normalized equality); induced clipboard rejection showed the fallback and left download available; valid paste staged exact text with no database write; prose/wrong-job/stale/oversized paste left editor and stored state unchanged; unchanged Ready on All opportunities disabled Save/Accept with no extra version or event; word edit dropped the accepted hint; Save revoked Ready; explicit reaccept stored the new text; external Ready v2 plus revert did not label stale text accepted; blocker-only dirty cancel/save; current-filter no-op; same-job reselect; dirty job/filter cancel/confirm; delayed file load across a job switch left the later editor unchanged; held in-flight Maple save did not overwrite the Northstar editor. Source Ready rendered beside Relay Held.
+- Not done here: `tests/api.test.mjs`, live Claude, installed Bot transport, production deploy, commit, or push. Port 3101 / live-trial database were not used.
+
+## PR24 integration with merged main `e037ebf`
+
+Uncommitted merge on `codex/round2-draft-handoffs`: head under review is `8ba8400` plus exact `e037ebf468fd1203bd2667ada244137d91794c99`. Merge base `2372771`. Content conflicts were only `package.json` and `pnpm-lock.yaml`; both were resolved to the complete `e037ebf` files. Round2 application, helper, and test files were not rewritten.
+
+Fresh checks on this runtime (Node 24.19.0, pnpm 11.19.0, frozen lockfile, owned `node_modules`): `git diff --check` exit 0; `pnpm lint` exit 0; `pnpm typecheck` exit 0; `pnpm test` via `scripts/ci/run-unit.mjs` **64 passed, 0 failed** (discovered `auth`, `connectors`, `deployment`, `domain`, `editor`, `import`, `obsidian`; `api.test.mjs` excluded by design); `pnpm build` exit 0 on Vite 8.0.16 with the framework route-classification notice; `pnpm audit --audit-level high` exit 0, remaining **2 advisories (1 moderate, 1 low)** in esbuild; `pnpm test:api` PASS; `pnpm test:production` PASS. Local `pnpm test:e2e` did not launch: Playwright 1.63 looks for `chromium_headless_shell-1243` under the Cursor sandbox browser cache; tracked e2e tests were not changed. Canonical remote CI remains required.
+
+Fictional browser regression (not an installed-Bot trial): ignored `private-data/work/round2-main-integration-browser-qa.json` and `.png`. Copy matched download after Windows CRLF normalization (382 vs 370); induced clipboard failure kept download; paste staged exact text with no writes; invalid/wrong-job/stale/oversized inputs left the editor unchanged; exact acceptance disabled redundant Save/Accept; word and blocker edits remained reviewable; Ready external-conflict reversion was not labeled accepted; same-job/current-filter preserved the editor; dirty cancel/discard worked; delayed file read and a held in-flight save left the later editor intact.
+
+The historical 55-test / 19-advisory / no-overrides snapshot above describes `8ba8400`, not this integrated runtime. No production, live Claude, fresh installed-Bot roundtrip, or independent adoption is claimed.
+
## Coverage limits
Original code review (base `6f88ea2`) did not include browser interactions or real-provider accounts; connector responses were mocked. The later local assisted trial above does not validate live Claude, production deployment, independent user adoption, unattended production, or external submissions. Lost observations need source reimport. Acceptance repair is limited to missing/mismatched accepted text. No deployment was performed. Ignored implementation and verification logs remain under `work/`.
diff --git a/app/globals.css b/app/globals.css
index b0d6125..8542716 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -1,4 +1,3 @@
-@import 'tailwindcss';
:root {
--ink: #24352f;
--muted: #6a756e;
diff --git a/components.json b/components.json
deleted file mode 100644
index f382eb7..0000000
--- a/components.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "$schema": "https://ui.shadcn.com/schema.json",
- "style": "base-nova",
- "rsc": true,
- "tsx": true,
- "tailwind": {
- "config": "",
- "css": "app/globals.css",
- "baseColor": "neutral",
- "cssVariables": true,
- "prefix": ""
- },
- "iconLibrary": "lucide",
- "rtl": false,
- "aliases": {
- "components": "@/components",
- "utils": "@/lib/utils",
- "ui": "@/components/ui",
- "lib": "@/lib",
- "hooks": "@/hooks"
- },
- "menuColor": "default",
- "menuAccent": "subtle",
- "registries": {}
-}
diff --git a/components/ui/accordion.tsx b/components/ui/accordion.tsx
deleted file mode 100644
index 9daf7bf..0000000
--- a/components/ui/accordion.tsx
+++ /dev/null
@@ -1,78 +0,0 @@
-import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
-
-import { cn } from '@/lib/utils';
-import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
-
-function Accordion({ className, ...props }: AccordionPrimitive.Root.Props) {
- return (
-
- );
-}
-
-function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props) {
- return (
-
- );
-}
-
-function AccordionTrigger({
- className,
- children,
- ...props
-}: AccordionPrimitive.Trigger.Props) {
- return (
-
-
- {children}
-
-
-
-
- );
-}
-
-function AccordionContent({
- className,
- children,
- ...props
-}: AccordionPrimitive.Panel.Props) {
- return (
-
-
- {children}
-
-
- );
-}
-
-export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
diff --git a/components/ui/alert-dialog.tsx b/components/ui/alert-dialog.tsx
deleted file mode 100644
index 46d9eb7..0000000
--- a/components/ui/alert-dialog.tsx
+++ /dev/null
@@ -1,187 +0,0 @@
-'use client';
-
-import * as React from 'react';
-import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
-
-import { cn } from '@/lib/utils';
-import { Button } from '@/components/ui/button';
-
-function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props) {
- return ;
-}
-
-function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props) {
- return (
-
- );
-}
-
-function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props) {
- return (
-
- );
-}
-
-function AlertDialogOverlay({
- className,
- ...props
-}: AlertDialogPrimitive.Backdrop.Props) {
- return (
-
- );
-}
-
-function AlertDialogContent({
- className,
- size = 'default',
- ...props
-}: AlertDialogPrimitive.Popup.Props & {
- size?: 'default' | 'sm';
-}) {
- return (
-
-
-
-
- );
-}
-
-function AlertDialogHeader({
- className,
- ...props
-}: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function AlertDialogFooter({
- className,
- ...props
-}: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function AlertDialogMedia({
- className,
- ...props
-}: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function AlertDialogTitle({
- className,
- ...props
-}: React.ComponentProps) {
- return (
-
- );
-}
-
-function AlertDialogDescription({
- className,
- ...props
-}: React.ComponentProps) {
- return (
-
- );
-}
-
-function AlertDialogAction({
- className,
- ...props
-}: React.ComponentProps) {
- return (
-
- );
-}
-
-function AlertDialogCancel({
- className,
- variant = 'outline',
- size = 'default',
- ...props
-}: AlertDialogPrimitive.Close.Props &
- Pick, 'variant' | 'size'>) {
- return (
- }
- {...props}
- />
- );
-}
-
-export {
- AlertDialog,
- AlertDialogAction,
- AlertDialogCancel,
- AlertDialogContent,
- AlertDialogDescription,
- AlertDialogFooter,
- AlertDialogHeader,
- AlertDialogMedia,
- AlertDialogOverlay,
- AlertDialogPortal,
- AlertDialogTitle,
- AlertDialogTrigger,
-};
diff --git a/components/ui/alert.tsx b/components/ui/alert.tsx
deleted file mode 100644
index abe04d3..0000000
--- a/components/ui/alert.tsx
+++ /dev/null
@@ -1,76 +0,0 @@
-import * as React from 'react';
-import { cva, type VariantProps } from 'class-variance-authority';
-
-import { cn } from '@/lib/utils';
-
-const alertVariants = cva(
- "group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",
- {
- 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) {
- return (
-
- );
-}
-
-function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) {
- return (
- svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground',
- className,
- )}
- {...props}
- />
- );
-}
-
-function AlertDescription({
- className,
- ...props
-}: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function AlertAction({ className, ...props }: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-export { Alert, AlertTitle, AlertDescription, AlertAction };
diff --git a/components/ui/aspect-ratio.tsx b/components/ui/aspect-ratio.tsx
deleted file mode 100644
index 95d97f8..0000000
--- a/components/ui/aspect-ratio.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { cn } from '@/lib/utils';
-
-function AspectRatio({
- ratio,
- className,
- ...props
-}: React.ComponentProps<'div'> & { ratio: number }) {
- return (
-
- );
-}
-
-export { AspectRatio };
diff --git a/components/ui/attachment.tsx b/components/ui/attachment.tsx
deleted file mode 100644
index 108ab4d..0000000
--- a/components/ui/attachment.tsx
+++ /dev/null
@@ -1,207 +0,0 @@
-import * as React from 'react';
-import { mergeProps } from '@base-ui/react/merge-props';
-import { useRender } from '@base-ui/react/use-render';
-import { cva, type VariantProps } from 'class-variance-authority';
-
-import { cn } from '@/lib/utils';
-import { Button } from '@/components/ui/button';
-
-const attachmentVariants = cva(
- 'rounded-xl w-fit focus-within:ring-1 focus-within:ring-ring/50 group/attachment relative flex max-w-full min-w-0 shrink-0 flex-wrap border bg-card text-card-foreground transition-colors has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed',
- {
- variants: {
- size: {
- default:
- 'gap-2 has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2 text-sm',
- sm: 'gap-2.5 has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5 text-xs',
- xs: 'gap-1.5 has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1 text-xs rounded-lg',
- },
- orientation: {
- horizontal: 'min-w-40 items-center',
- vertical: 'w-24 has-data-[slot=attachment-content]:w-30 flex-col',
- },
- },
- },
-);
-
-function Attachment({
- className,
- state = 'done',
- size = 'default',
- orientation = 'horizontal',
- ...props
-}: React.ComponentProps<'div'> &
- VariantProps
& {
- state?: 'idle' | 'uploading' | 'processing' | 'error' | 'done';
- }) {
- return (
-
- );
-}
-
-const attachmentMediaVariants = cva(
- "bg-muted text-foreground w-10 rounded-lg group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md [&_svg:not([class*='size-'])]:size-4 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5 group-data-[orientation=vertical]/attachment:w-full group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! relative flex aspect-square shrink-0 items-center justify-center overflow-hidden group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive [&_svg]:pointer-events-none",
- {
- variants: {
- variant: {
- icon: '',
- image:
- 'opacity-60 group-data-[state=idle]/attachment:opacity-100 group-data-[state=done]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover',
- },
- },
- defaultVariants: {
- variant: 'icon',
- },
- },
-);
-
-function AttachmentMedia({
- className,
- variant = 'icon',
- ...props
-}: React.ComponentProps<'div'> & VariantProps) {
- return (
-
- );
-}
-
-function AttachmentContent({
- className,
- ...props
-}: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function AttachmentTitle({
- className,
- ...props
-}: React.ComponentProps<'span'>) {
- return (
-
- );
-}
-
-function AttachmentDescription({
- className,
- ...props
-}: React.ComponentProps<'span'>) {
- return (
-
- );
-}
-
-function AttachmentActions({
- className,
- ...props
-}: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function AttachmentAction({
- className,
- variant,
- size = 'icon-xs',
- ...props
-}: React.ComponentProps) {
- return (
-
- );
-}
-
-function AttachmentTrigger({
- className,
- render,
- type,
- ...props
-}: useRender.ComponentProps<'button'>) {
- return useRender({
- defaultTagName: 'button',
- props: mergeProps<'button'>(
- {
- type: render ? type : (type ?? 'button'),
- className: cn('absolute inset-0 z-10 outline-none', className),
- },
- props,
- ),
- render,
- state: {
- slot: 'attachment-trigger',
- },
- });
-}
-
-function AttachmentGroup({ className, ...props }: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-export {
- Attachment,
- AttachmentGroup,
- AttachmentMedia,
- AttachmentContent,
- AttachmentTitle,
- AttachmentDescription,
- AttachmentActions,
- AttachmentAction,
- AttachmentTrigger,
-};
diff --git a/components/ui/avatar.tsx b/components/ui/avatar.tsx
deleted file mode 100644
index 789a014..0000000
--- a/components/ui/avatar.tsx
+++ /dev/null
@@ -1,109 +0,0 @@
-'use client';
-
-import * as React from 'react';
-import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
-
-import { cn } from '@/lib/utils';
-
-function Avatar({
- className,
- size = 'default',
- ...props
-}: AvatarPrimitive.Root.Props & {
- size?: 'default' | 'sm' | 'lg';
-}) {
- return (
-
- );
-}
-
-function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props) {
- return (
-
- );
-}
-
-function AvatarFallback({
- className,
- ...props
-}: AvatarPrimitive.Fallback.Props) {
- return (
-
- );
-}
-
-function AvatarBadge({ className, ...props }: React.ComponentProps<'span'>) {
- return (
- 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 (
-
- );
-}
-
-function AvatarGroupCount({
- className,
- ...props
-}: React.ComponentProps<'div'>) {
- return (
- svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 relative flex shrink-0 items-center justify-center ring-2 ring-background',
- className,
- )}
- {...props}
- />
- );
-}
-
-export {
- Avatar,
- AvatarImage,
- AvatarFallback,
- AvatarGroup,
- AvatarGroupCount,
- AvatarBadge,
-};
diff --git a/components/ui/badge.tsx b/components/ui/badge.tsx
deleted file mode 100644
index 8e59eb1..0000000
--- a/components/ui/badge.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import { mergeProps } from '@base-ui/react/merge-props';
-import { useRender } from '@base-ui/react/use-render';
-import { cva, type VariantProps } from 'class-variance-authority';
-
-import { cn } from '@/lib/utils';
-
-const badgeVariants = cva(
- 'group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 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/80',
- secondary:
- 'bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80',
- destructive:
- 'bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20',
- outline:
- 'border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',
- ghost:
- 'hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50',
- link: 'text-primary underline-offset-4 hover:underline',
- },
- },
- defaultVariants: {
- variant: 'default',
- },
- },
-);
-
-function Badge({
- className,
- variant = 'default',
- render,
- ...props
-}: useRender.ComponentProps<'span'> & VariantProps
) {
- return useRender({
- defaultTagName: 'span',
- props: mergeProps<'span'>(
- {
- className: cn(badgeVariants({ variant }), className),
- },
- props,
- ),
- render,
- state: {
- slot: 'badge',
- variant,
- },
- });
-}
-
-export { Badge, badgeVariants };
diff --git a/components/ui/breadcrumb.tsx b/components/ui/breadcrumb.tsx
deleted file mode 100644
index 6f51e3f..0000000
--- a/components/ui/breadcrumb.tsx
+++ /dev/null
@@ -1,122 +0,0 @@
-import * as React from 'react';
-import { mergeProps } from '@base-ui/react/merge-props';
-import { useRender } from '@base-ui/react/use-render';
-
-import { cn } from '@/lib/utils';
-import { ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';
-
-function Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>) {
- return (
-
- );
-}
-
-function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>) {
- return (
-
- );
-}
-
-function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>) {
- return (
-
- );
-}
-
-function BreadcrumbLink({
- className,
- render,
- ...props
-}: useRender.ComponentProps<'a'>) {
- return useRender({
- defaultTagName: 'a',
- props: mergeProps<'a'>(
- {
- className: cn('hover:text-foreground transition-colors', className),
- },
- props,
- ),
- render,
- state: {
- slot: 'breadcrumb-link',
- },
- });
-}
-
-function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) {
- return (
-
- );
-}
-
-function BreadcrumbSeparator({
- children,
- className,
- ...props
-}: React.ComponentProps<'li'>) {
- return (
- svg]:size-3.5', className)}
- {...props}
- >
- {children ?? }
-
- );
-}
-
-function BreadcrumbEllipsis({
- className,
- ...props
-}: React.ComponentProps<'span'>) {
- return (
- svg]:size-4 flex items-center justify-center',
- className,
- )}
- {...props}
- >
-
- More
-
- );
-}
-
-export {
- Breadcrumb,
- BreadcrumbList,
- BreadcrumbItem,
- BreadcrumbLink,
- BreadcrumbPage,
- BreadcrumbSeparator,
- BreadcrumbEllipsis,
-};
diff --git a/components/ui/bubble.tsx b/components/ui/bubble.tsx
deleted file mode 100644
index 61f2030..0000000
--- a/components/ui/bubble.tsx
+++ /dev/null
@@ -1,128 +0,0 @@
-import * as React from 'react';
-import { mergeProps } from '@base-ui/react/merge-props';
-import { useRender } from '@base-ui/react/use-render';
-import { cva, type VariantProps } from 'class-variance-authority';
-
-import { cn } from '@/lib/utils';
-
-function BubbleGroup({ className, ...props }: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-const bubbleVariants = cva(
- 'gap-1 data-[align=end]:self-end max-w-[80%] data-[variant=ghost]:max-w-full group-data-[align=end]/message:self-end group/bubble relative flex w-fit min-w-0 flex-col',
- {
- variants: {
- variant: {
- default:
- '*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80',
- secondary:
- '*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]',
- muted:
- '*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]',
- tinted:
- '*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',
- outline:
- '*:data-[slot=bubble-content]:bg-background *:data-[slot=bubble-content]:border-border [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30',
- ghost:
- '*:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50 border-none',
- destructive:
- '*:data-[slot=bubble-content]:bg-destructive/10 dark:*:data-[slot=bubble-content]:bg-destructive/20 *:data-[slot=bubble-content]:text-destructive [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20 dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/30',
- },
- },
- defaultVariants: {
- variant: 'default',
- },
- },
-);
-
-function Bubble({
- variant = 'default',
- align = 'start',
- className,
- ...props
-}: React.ComponentProps<'div'> &
- VariantProps & {
- align?: 'start' | 'end';
- }) {
- return (
-
- );
-}
-
-function BubbleContent({
- className,
- render,
- ...props
-}: useRender.ComponentProps<'div'>) {
- return useRender({
- defaultTagName: 'div',
- props: mergeProps<'div'>(
- {
- className: cn(
- 'rounded-xl border border-transparent px-3 py-2 text-sm leading-relaxed [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/50 group-data-[align=end]/bubble:self-end w-fit max-w-full min-w-0 overflow-hidden wrap-break-word [button]:text-left [button,a]:transition-colors',
- className,
- ),
- },
- props,
- ),
- render,
- state: {
- slot: 'bubble-content',
- },
- });
-}
-
-const bubbleReactionsVariants = cva(
- 'rounded-full ring-3 ring-card bg-muted shrink-0 gap-1 px-1.5 py-0.5 has-[button]:p-0 text-sm absolute z-10 flex w-fit items-center justify-center',
- {
- variants: {
- side: {
- top: 'top-0 -translate-y-3/4',
- bottom: 'bottom-0 translate-y-3/4',
- },
- align: {
- start: 'left-3',
- end: 'right-3',
- },
- },
- defaultVariants: {
- side: 'bottom',
- align: 'end',
- },
- },
-);
-
-function BubbleReactions({
- side = 'bottom',
- align = 'end',
- className,
- ...props
-}: React.ComponentProps<'div'> & {
- align?: 'start' | 'end';
- side?: 'top' | 'bottom';
-}) {
- return (
-
- );
-}
-
-export { BubbleGroup, Bubble, BubbleContent, BubbleReactions };
diff --git a/components/ui/button-group.tsx b/components/ui/button-group.tsx
deleted file mode 100644
index 8f8c2d2..0000000
--- a/components/ui/button-group.tsx
+++ /dev/null
@@ -1,87 +0,0 @@
-import { mergeProps } from '@base-ui/react/merge-props';
-import { useRender } from '@base-ui/react/use-render';
-import { cva, type VariantProps } from 'class-variance-authority';
-
-import { cn } from '@/lib/utils';
-import { Separator } from '@/components/ui/separator';
-
-const buttonGroupVariants = cva(
- "has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg flex w-fit items-stretch *:focus-visible:relative *:focus-visible:z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
- {
- variants: {
- orientation: {
- horizontal:
- '[&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! *:data-slot:rounded-r-none [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0',
- vertical:
- '[&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! flex-col *:data-slot:rounded-b-none [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0',
- },
- },
- defaultVariants: {
- orientation: 'horizontal',
- },
- },
-);
-
-function ButtonGroup({
- className,
- orientation,
- ...props
-}: React.ComponentProps<'div'> & VariantProps) {
- return (
-
- );
-}
-
-function ButtonGroupText({
- className,
- render,
- ...props
-}: useRender.ComponentProps<'div'>) {
- return useRender({
- defaultTagName: 'div',
- props: mergeProps<'div'>(
- {
- className: cn(
- "bg-muted gap-2 rounded-lg border px-2.5 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
- className,
- ),
- },
- props,
- ),
- render,
- state: {
- slot: 'button-group-text',
- },
- });
-}
-
-function ButtonGroupSeparator({
- className,
- orientation = 'vertical',
- ...props
-}: React.ComponentProps) {
- return (
-
- );
-}
-
-export {
- ButtonGroup,
- ButtonGroupSeparator,
- ButtonGroupText,
- buttonGroupVariants,
-};
diff --git a/components/ui/button.tsx b/components/ui/button.tsx
deleted file mode 100644
index 7a8a32c..0000000
--- a/components/ui/button.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-import { Button as ButtonPrimitive } from '@base-ui/react/button';
-import { cva, type VariantProps } from 'class-variance-authority';
-
-import { cn } from '@/lib/utils';
-
-const buttonVariants = cva(
- "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 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/80',
- outline:
- 'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',
- secondary:
- 'bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',
- ghost:
- 'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50',
- destructive:
- 'bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40',
- link: 'text-primary underline-offset-4 hover:underline',
- },
- size: {
- default:
- 'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',
- xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
- sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
- lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',
- icon: 'size-8',
- 'icon-xs':
- "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
- 'icon-sm':
- 'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg',
- 'icon-lg': 'size-9',
- },
- },
- defaultVariants: {
- variant: 'default',
- size: 'default',
- },
- },
-);
-
-function Button({
- className,
- variant = 'default',
- size = 'default',
- ...props
-}: ButtonPrimitive.Props & VariantProps) {
- return (
-
- );
-}
-
-export { Button, buttonVariants };
diff --git a/components/ui/calendar.tsx b/components/ui/calendar.tsx
deleted file mode 100644
index 5d1cb82..0000000
--- a/components/ui/calendar.tsx
+++ /dev/null
@@ -1,231 +0,0 @@
-'use client';
-
-import * as React from 'react';
-import {
- DayPicker,
- getDefaultClassNames,
- type DayButton,
- type Locale,
-} from 'react-day-picker';
-
-import { cn } from '@/lib/utils';
-import { Button, buttonVariants } from '@/components/ui/button';
-import {
- ChevronLeftIcon,
- ChevronRightIcon,
- ChevronDownIcon,
-} from 'lucide-react';
-
-function Calendar({
- className,
- classNames,
- showOutsideDays = true,
- captionLayout = 'label',
- buttonVariant = 'ghost',
- locale,
- formatters,
- components,
- ...props
-}: React.ComponentProps & {
- buttonVariant?: React.ComponentProps['variant'];
-}) {
- const defaultClassNames = getDefaultClassNames();
-
- return (
- svg]:rotate-180`,
- String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
- className,
- )}
- captionLayout={captionLayout}
- locale={locale}
- formatters={{
- formatMonthDropdown: (date) =>
- date.toLocaleString(locale?.code, { month: 'short' }),
- ...formatters,
- }}
- classNames={{
- root: cn('w-fit', defaultClassNames.root),
- months: cn(
- 'relative flex flex-col gap-4 md:flex-row',
- defaultClassNames.months,
- ),
- month: cn('flex w-full flex-col gap-4', defaultClassNames.month),
- nav: cn(
- 'absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1',
- defaultClassNames.nav,
- ),
- button_previous: cn(
- buttonVariants({ variant: buttonVariant }),
- 'size-(--cell-size) p-0 select-none aria-disabled:opacity-50',
- defaultClassNames.button_previous,
- ),
- button_next: cn(
- buttonVariants({ variant: buttonVariant }),
- 'size-(--cell-size) p-0 select-none aria-disabled:opacity-50',
- defaultClassNames.button_next,
- ),
- month_caption: cn(
- 'flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)',
- defaultClassNames.month_caption,
- ),
- dropdowns: cn(
- 'flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium',
- defaultClassNames.dropdowns,
- ),
- dropdown_root: cn(
- 'cn-calendar-dropdown-root relative rounded-(--cell-radius)',
- defaultClassNames.dropdown_root,
- ),
- dropdown: cn(
- 'absolute inset-0 bg-popover opacity-0',
- defaultClassNames.dropdown,
- ),
- caption_label: cn(
- 'font-medium select-none',
- captionLayout === 'label'
- ? 'cn-calendar-caption text-sm'
- : 'cn-calendar-caption-label flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground',
- defaultClassNames.caption_label,
- ),
- month_grid: cn('w-full border-collapse', defaultClassNames.month_grid),
- weekdays: cn('flex', defaultClassNames.weekdays),
- weekday: cn(
- 'flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none',
- defaultClassNames.weekday,
- ),
- week: cn('mt-2 flex w-full', defaultClassNames.week),
- week_number_header: cn(
- 'w-(--cell-size) select-none',
- defaultClassNames.week_number_header,
- ),
- week_number: cn(
- 'text-[0.8rem] text-muted-foreground select-none',
- defaultClassNames.week_number,
- ),
- day: cn(
- 'group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)',
- props.showWeekNumber
- ? '[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)'
- : '[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)',
- defaultClassNames.day,
- ),
- range_start: cn(
- 'relative isolate z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted',
- defaultClassNames.range_start,
- ),
- range_middle: cn('rounded-none', defaultClassNames.range_middle),
- range_end: cn(
- 'relative isolate z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted',
- defaultClassNames.range_end,
- ),
- today: cn(
- 'rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none',
- defaultClassNames.today,
- ),
- outside: cn(
- 'text-muted-foreground aria-selected:text-muted-foreground',
- defaultClassNames.outside,
- ),
- disabled: cn(
- 'text-muted-foreground opacity-50',
- defaultClassNames.disabled,
- ),
- hidden: cn('invisible', defaultClassNames.hidden),
- ...classNames,
- }}
- components={{
- Root: ({ className, rootRef, ...props }) => {
- return (
-
- );
- },
- Chevron: ({ className, orientation, ...props }) => {
- if (orientation === 'left') {
- return (
-
- );
- }
-
- if (orientation === 'right') {
- return (
-
- );
- }
-
- return (
-
- );
- },
- DayButton: ({ ...props }) => (
-
- ),
- WeekNumber: ({ children, ...props }) => {
- return (
-
-
- {children}
-
-
- );
- },
- ...components,
- }}
- {...props}
- />
- );
-}
-
-function CalendarDayButton({
- className,
- day,
- modifiers,
- locale,
- ...props
-}: React.ComponentProps & { locale?: Partial }) {
- const defaultClassNames = getDefaultClassNames();
-
- const ref = React.useRef(null);
- React.useEffect(() => {
- if (modifiers.focused) ref.current?.focus();
- }, [modifiers.focused]);
-
- return (
- span]:text-xs [&>span]:opacity-70',
- defaultClassNames.day,
- className,
- )}
- {...props}
- />
- );
-}
-
-export { Calendar, CalendarDayButton };
diff --git a/components/ui/card.tsx b/components/ui/card.tsx
deleted file mode 100644
index ae29aa2..0000000
--- a/components/ui/card.tsx
+++ /dev/null
@@ -1,103 +0,0 @@
-import * as React from 'react';
-
-import { cn } from '@/lib/utils';
-
-function Card({
- className,
- size = 'default',
- ...props
-}: React.ComponentProps<'div'> & { size?: 'default' | 'sm' }) {
- return (
- img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl',
- className,
- )}
- {...props}
- />
- );
-}
-
-function CardHeader({ className, ...props }: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function CardTitle({ className, ...props }: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function CardDescription({ className, ...props }: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function CardAction({ className, ...props }: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function CardContent({ className, ...props }: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-function CardFooter({ className, ...props }: React.ComponentProps<'div'>) {
- return (
-
- );
-}
-
-export {
- Card,
- CardHeader,
- CardFooter,
- CardTitle,
- CardAction,
- CardDescription,
- CardContent,
-};
diff --git a/components/ui/carousel.tsx b/components/ui/carousel.tsx
deleted file mode 100644
index f7e3330..0000000
--- a/components/ui/carousel.tsx
+++ /dev/null
@@ -1,242 +0,0 @@
-'use client';
-
-import * as React from 'react';
-import useEmblaCarousel, {
- type UseEmblaCarouselType,
-} from 'embla-carousel-react';
-
-import { cn } from '@/lib/utils';
-import { Button } from '@/components/ui/button';
-import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
-
-type CarouselApi = UseEmblaCarouselType[1];
-type UseCarouselParameters = Parameters
;
-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[0];
- api: ReturnType[1];
- scrollPrev: () => void;
- scrollNext: () => void;
- canScrollPrev: boolean;
- canScrollNext: boolean;
-} & CarouselProps;
-
-const CarouselContext = React.createContext(null);
-
-function useCarousel() {
- const context = React.useContext(CarouselContext);
-
- if (!context) {
- throw new Error('useCarousel must be used within a ');
- }
-
- 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) => {
- 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 (
-
-
- {children}
-
-
- );
-}
-
-function CarouselContent({ className, ...props }: React.ComponentProps<'div'>) {
- const { carouselRef, orientation } = useCarousel();
-
- return (
-
- );
-}
-
-function CarouselItem({ className, ...props }: React.ComponentProps<'div'>) {
- const { orientation } = useCarousel();
-
- return (
-
- );
-}
-
-function CarouselPrevious({
- className,
- variant = 'outline',
- size = 'icon-sm',
- ...props
-}: React.ComponentProps) {
- const { orientation, scrollPrev, canScrollPrev } = useCarousel();
-
- return (
-
-
- Previous slide
-
- );
-}
-
-function CarouselNext({
- className,
- variant = 'outline',
- size = 'icon-sm',
- ...props
-}: React.ComponentProps) {
- const { orientation, scrollNext, canScrollNext } = useCarousel();
-
- return (
-
-
- Next slide
-
- );
-}
-
-export {
- type CarouselApi,
- Carousel,
- CarouselContent,
- CarouselItem,
- CarouselPrevious,
- CarouselNext,
- useCarousel,
-};
diff --git a/components/ui/chart.tsx b/components/ui/chart.tsx
deleted file mode 100644
index 0680cf0..0000000
--- a/components/ui/chart.tsx
+++ /dev/null
@@ -1,373 +0,0 @@
-'use client';
-
-import * as React from 'react';
-import * as RechartsPrimitive from 'recharts';
-import type { TooltipValueType } from 'recharts';
-
-import { cn } from '@/lib/utils';
-
-// Format: { THEME_NAME: CSS_SELECTOR }
-const THEMES = { light: '', dark: '.dark' } as const;
-
-const INITIAL_DIMENSION = { width: 320, height: 200 } as const;
-type TooltipNameType = number | string;
-
-export type ChartConfig = Record<
- string,
- {
- label?: React.ReactNode;
- icon?: React.ComponentType;
- } & (
- | { color?: string; theme?: never }
- | { color?: never; theme: Record }
- )
->;
-
-type ChartContextProps = {
- config: ChartConfig;
-};
-
-const ChartContext = React.createContext(null);
-
-function useChart() {
- const context = React.useContext(ChartContext);
-
- if (!context) {
- throw new Error('useChart must be used within a ');
- }
-
- return context;
-}
-
-function ChartContainer({
- id,
- className,
- children,
- config,
- initialDimension = INITIAL_DIMENSION,
- ...props
-}: React.ComponentProps<'div'> & {
- config: ChartConfig;
- children: React.ComponentProps<
- typeof RechartsPrimitive.ResponsiveContainer
- >['children'];
- initialDimension?: {
- width: number;
- height: number;
- };
-}) {
- const uniqueId = React.useId();
- const chartId = `chart-${id ?? uniqueId.replace(/:/g, '')}`;
-
- return (
-
-
-
-
- {children}
-
-
-
- );
-}
-
-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 (
-