{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "e-commerce-dashboard",
  "dependencies": [
    "@radix-ui/react-avatar",
    "@radix-ui/react-checkbox",
    "@radix-ui/react-dialog",
    "@radix-ui/react-dropdown-menu",
    "@radix-ui/react-label",
    "@radix-ui/react-select",
    "@radix-ui/react-separator",
    "@radix-ui/react-slot",
    "@radix-ui/react-tabs",
    "@radix-ui/react-toggle",
    "@radix-ui/react-toggle-group",
    "@radix-ui/react-tooltip",
    "@tabler/icons-react",
    "class-variance-authority",
    "lucide-react",
    "next-themes",
    "recharts",
    "sonner",
    "vaul"
  ],
  "registryDependencies": [
    "avatar",
    "badge",
    "breadcrumb",
    "button",
    "card",
    "chart",
    "checkbox",
    "drawer",
    "dropdown-menu",
    "input",
    "label",
    "select",
    "separator",
    "sheet",
    "sidebar",
    "skeleton",
    "sonner",
    "table",
    "tabs",
    "toggle-group",
    "toggle",
    "tooltip"
  ],
  "files": [
    {
      "path": "src/components/dashboards/e-commerce-dashboard/components/app-sidebar.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport {\n  IconDashboard,\n  IconInnerShadowTop,\n  IconShoppingCart,\n  IconBox,\n  IconLayoutGrid,\n  IconUserCheck,\n  IconArrowRight,\n  IconKey,\n  IconBrandAppgallery,\n} from \"@tabler/icons-react\";\n\nimport { NavSecondary } from \"./nav-secondary\";\nimport { NavMain } from \"./nav-main\";\nimport { NavUser } from \"./nav-user\";\nimport {\n  Sidebar,\n  SidebarContent,\n  SidebarFooter,\n  SidebarHeader,\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n} from \"@/components/ui/sidebar\";\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuLabel,\n  DropdownMenuSeparator,\n  DropdownMenuShortcut,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport { ChevronsUpDown, Plus } from \"lucide-react\";\n\nconst data = {\n  user: {\n    name: \"shadcn\",\n    email: \"m@example.com\",\n    avatar: \"\",\n  },\n  teams: [\n    {\n      name: \"Online Store\",\n      logo: IconBrandAppgallery,\n      plan: \"30 Products\",\n    },\n    {\n      name: \"Acme Corp\",\n      logo: IconInnerShadowTop,\n      plan: \"Enterprise\",\n    },\n  ],\n  navMain: [\n    {\n      title: \"Dashboard\",\n      url: \"/dashboard\",\n      icon: IconDashboard,\n      isActive: true,\n    },\n    {\n      title: \"Orders\",\n      url: \"/orders\",\n      icon: IconShoppingCart,\n      isDisabled: true,\n    },\n    {\n      title: \"Products\",\n      url: \"/products\",\n      icon: IconLayoutGrid,\n      isDisabled: true,\n    },\n    {\n      title: \"Customers\",\n      url: \"/customers\",\n      icon: IconUserCheck,\n      isDisabled: true,\n    },\n    {\n      title: \"Inventory\",\n      url: \"/inventory\",\n      icon: IconBox,\n      isDisabled: true,\n    },\n  ],\n\n  navSecondary: [\n    {\n      name: \"Processing\",\n      url: \"/orders/processing\",\n      icon: IconUserCheck,\n      badge: 12,\n      isDisabled: true,\n    },\n    {\n      name: \"New Customers\",\n      url: \"/orders/new\",\n      icon: IconArrowRight,\n      badge: 3,\n      isDisabled: true,\n    },\n    {\n      name: \"Refunds\",\n      url: \"/orders/refunds\",\n      icon: IconKey,\n      isDisabled: true,\n    },\n  ],\n};\n\ninterface AppSidebarProps extends React.ComponentProps<typeof Sidebar> {\n  onNavigate?: (view: string) => void;\n  currentView?: string;\n}\n\nexport function AppSidebar({ onNavigate, currentView, ...props }: AppSidebarProps) {\n  return (\n    <Sidebar collapsible=\"offcanvas\" {...props}>\n      <SidebarHeader>\n        <SidebarMenu>\n          <SidebarMenuItem className=\"flex flex-col gap-3\">\n            <SidebarMenuButton\n              asChild\n              className=\"data-[slot=sidebar-menu-button]:!p-1.5\"\n            >\n              <a href=\"#\">\n                <IconInnerShadowTop className=\"!size-5\" />\n                <span className=\"text-base font-semibold\">Acme Inc.</span>\n              </a>\n            </SidebarMenuButton>\n            <DropdownMenu>\n              <DropdownMenuTrigger asChild>\n                <SidebarMenuButton\n                  size=\"lg\"\n                  className=\"data-[state=open]:bg-sidebar-accent bg-white dark:bg-neutral-900 shadow data-[state=open]:text-sidebar-accent-foreground h-15 px-3 border border-transparent dark:border-neutral-800 transition-colors duration-300 hover:shadow-md cursor-pointer\"\n                >\n                  <div className=\"bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-md\">\n                    <IconBrandAppgallery stroke={2} />\n                  </div>\n                  <div className=\"grid flex-1 flex-col text-left leading-tighter\">\n                    <span className=\"truncate font-semibold tracking-tight text-lg\">\n                      Online Store\n                    </span>\n                    <span className=\"truncate text-sm font-mono font-medium tracking-tight text-muted-foreground\">\n                      30 PRODUCTS\n                    </span>\n                  </div>\n                  <ChevronsUpDown className=\"ml-auto text-neutral-500\" />\n                </SidebarMenuButton>\n              </DropdownMenuTrigger>\n              <DropdownMenuContent\n                className=\"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg shadow-xl dark:border-neutral-800\"\n                align=\"start\"\n                side=\"bottom\"\n                sideOffset={4}\n              >\n                <DropdownMenuLabel className=\"text-xs text-muted-foreground\">\n                  Stores\n                </DropdownMenuLabel>\n                {data.teams.map((team, index) => (\n                  <DropdownMenuItem\n                    key={team.name}\n                    className=\"gap-2 p-2 cursor-pointer transition-all hover:bg-neutral-100 dark:hover:bg-neutral-800\"\n                  >\n                    <div className=\"flex size-6 items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-sm bg-neutral-50 dark:bg-neutral-900\">\n                      <team.logo className=\"size-4 shrink-0\" />\n                    </div>\n                    <div className=\"flex flex-1 flex-col leading-none\">\n                      <span className=\"font-semibold text-sm\">{team.name}</span>\n                      <span className=\"text-xs text-muted-foreground\">{team.plan}</span>\n                    </div>\n                    {index === 0 && <DropdownMenuShortcut>⌘{index + 1}</DropdownMenuShortcut>}\n                  </DropdownMenuItem>\n                ))}\n                <DropdownMenuSeparator className=\"dark:bg-neutral-800\" />\n                <DropdownMenuItem className=\"gap-2 p-2 cursor-pointer transition-all hover:bg-neutral-100 dark:hover:bg-neutral-800\">\n                  <div className=\"flex size-6 items-center justify-center border border-neutral-200 dark:border-neutral-700 rounded-sm bg-neutral-50 dark:bg-neutral-900\">\n                    <Plus className=\"size-4 shrink-0\" />\n                  </div>\n                  <div className=\"font-medium text-muted-foreground\">Create new store</div>\n                </DropdownMenuItem>\n              </DropdownMenuContent>\n            </DropdownMenu>\n          </SidebarMenuItem>\n        </SidebarMenu>\n      </SidebarHeader>\n      <SidebarContent>\n        <NavMain items={data.navMain} onNavigate={onNavigate} currentView={currentView} />\n        <NavSecondary items={data.navSecondary} />\n      </SidebarContent>\n      <SidebarFooter>\n        <NavUser user={data.user} />\n      </SidebarFooter>\n    </Sidebar>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/e-commerce-dashboard/components/app-sidebar.tsx"
    },
    {
      "path": "src/components/dashboards/e-commerce-dashboard/components/nav-main.tsx",
      "content": "\"use client\";\n\nimport { type Icon } from \"@tabler/icons-react\";\nimport {\n  SidebarGroup,\n  SidebarGroupContent,\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n} from \"@/components/ui/sidebar\";\n\nexport function NavMain({\n  items,\n  onNavigate,\n  currentView,\n}: {\n  items: {\n    title: string;\n    url: string;\n    icon?: Icon;\n    isActive?: boolean;\n    isDisabled?: boolean;\n  }[];\n  onNavigate?: (view: string) => void;\n  currentView?: string;\n}) {\n  return (\n    <SidebarGroup>\n      <SidebarGroupContent className=\"flex flex-col gap-2 \">\n        <SidebarMenu>\n          {items.map((item) => (\n            <SidebarMenuItem key={item.title}>\n              <SidebarMenuButton\n                size={\"lg\"}\n                tooltip={item.title}\n                className=\"h-9 transition-colors duration-300 cursor-pointer\"\n                isActive={currentView ? item.title === currentView : item.isActive}\n                onClick={(e) => {\n                  if (item.isDisabled) {\n                    e.preventDefault();\n                    return;\n                  }\n                  if (onNavigate) {\n                    e.preventDefault();\n                    onNavigate(item.title);\n                  }\n                }}\n                asChild={!onNavigate}\n              >\n                {item.icon && (\n                  <item.icon className=\"size-5! text-neutral-500\" />\n                )}\n                <span className=\"text-neutral-500 font-medium tracking-tight text-base\">\n                  {item.title}\n                </span>\n              </SidebarMenuButton>\n            </SidebarMenuItem>\n          ))}\n        </SidebarMenu>\n      </SidebarGroupContent>\n    </SidebarGroup>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/e-commerce-dashboard/components/nav-main.tsx"
    },
    {
      "path": "src/components/dashboards/e-commerce-dashboard/components/nav-secondary.tsx",
      "content": "\"use client\";\n\nimport {\n  IconDots,\n  IconFolder,\n  IconShare3,\n  IconTrash,\n  type Icon,\n} from \"@tabler/icons-react\";\n\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuSeparator,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport {\n  SidebarGroup,\n  SidebarGroupLabel,\n  SidebarMenu,\n  SidebarMenuAction,\n  SidebarMenuButton,\n  SidebarMenuItem,\n  useSidebar,\n} from \"@/components/ui/sidebar\";\n\nexport function NavSecondary({\n  items,\n}: {\n  items: {\n    name: string;\n    url: string;\n    icon: Icon;\n    badge?: number;\n    isDisabled?: boolean;\n  }[];\n}) {\n  const { isMobile } = useSidebar();\n\n  return (\n    <SidebarGroup className=\"\">\n      <SidebarGroupLabel className=\"text-sm text-neutral-400\">\n        Orders\n      </SidebarGroupLabel>\n      <SidebarMenu>\n        {items.map((item) => (\n          <SidebarMenuItem key={item.name}>\n            <SidebarMenuButton\n              asChild\n              className=\"transition-colors duration-300 cursor-pointer\"\n            >\n              <a href={item.url} onClick={(e) => item.isDisabled && e.preventDefault()}>\n                {item.icon && (\n                  <item.icon className=\"size-5! text-neutral-500\" />\n                )}\n                <span className=\"text-neutral-500 font-medium tracking-tight text-base\">\n                  {item.name}\n                </span>\n              </a>\n            </SidebarMenuButton>\n            {!item.isDisabled && (\n              <DropdownMenu>\n                <DropdownMenuTrigger asChild>\n                  <SidebarMenuAction\n                    showOnHover\n                    className=\"data-[state=open]:bg-accent rounded-sm\"\n                  >\n                    <IconDots />\n                    <span className=\"sr-only\">More</span>\n                  </SidebarMenuAction>\n                </DropdownMenuTrigger>\n                <DropdownMenuContent\n                  className=\"w-24 rounded-lg\"\n                  side={isMobile ? \"bottom\" : \"right\"}\n                  align={isMobile ? \"end\" : \"start\"}\n                >\n                  <DropdownMenuItem>\n                    <IconFolder />\n                    <span>Open</span>\n                  </DropdownMenuItem>\n                  <DropdownMenuItem>\n                    <IconShare3 />\n                    <span>Share</span>\n                  </DropdownMenuItem>\n                  <DropdownMenuSeparator />\n                  <DropdownMenuItem variant=\"destructive\">\n                    <IconTrash />\n                    <span>Delete</span>\n                  </DropdownMenuItem>\n                </DropdownMenuContent>\n              </DropdownMenu>\n            )}\n          </SidebarMenuItem>\n        ))}\n        <SidebarMenuItem>\n          <SidebarMenuButton className=\"text-sidebar-foreground/70 transition-colors duration-300 cursor-pointer\">\n            <IconDots className=\"text-sidebar-foreground/70 size-5!\" />\n            <span className=\"font-semibold text-neutral-500\">More</span>\n          </SidebarMenuButton>\n        </SidebarMenuItem>\n      </SidebarMenu>\n    </SidebarGroup>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/e-commerce-dashboard/components/nav-secondary.tsx"
    },
    {
      "path": "src/components/dashboards/e-commerce-dashboard/components/nav-user.tsx",
      "content": "\"use client\"\n\nimport {\n  IconCreditCard,\n  IconDotsVertical,\n  IconLogout,\n  IconNotification,\n  IconUserCircle,\n} from \"@tabler/icons-react\"\n\nimport {\n  Avatar,\n  AvatarImage,\n} from \"@/components/ui/avatar\"\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuGroup,\n  DropdownMenuItem,\n  DropdownMenuLabel,\n  DropdownMenuSeparator,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\"\nimport {\n  SidebarMenu,\n  SidebarMenuButton,\n  SidebarMenuItem,\n  useSidebar,\n} from \"@/components/ui/sidebar\"\n\nexport function NavUser({\n  user,\n}: {\n  user: {\n    name: string\n    email: string\n    avatar: string\n  }\n}) {\n  const { isMobile } = useSidebar()\n\n  return (\n    <SidebarMenu>\n      <SidebarMenuItem>\n        <DropdownMenu>\n          <DropdownMenuTrigger asChild>\n            <SidebarMenuButton\n              size=\"lg\"\n              className=\"data-[state=open]:bg-neutral-500/30 bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground h-14 transition-colors duration-300 hover:shadow-sm cursor-pointer\"\n            >\n              <Avatar className=\"h-8 w-8 rounded-lg! bg-transparent border-none p-0 overflow-hidden\">\n                {user.avatar ? (\n                  <AvatarImage src={user.avatar} alt={user.name} className=\"rounded-lg!\" />\n                ) : (\n                  <div className=\"h-full w-full rounded-lg! bg-indigo-100 text-indigo-600 dark:bg-indigo-900/50 dark:text-indigo-400 font-semibold m-0 flex items-center justify-center border-none\">CN</div>\n                )}\n              </Avatar>\n              <div className=\"grid flex-1 text-left text-sm leading-tight\">\n                <span className=\"truncate font-medium\">{user.name}</span>\n                <span className=\"text-muted-foreground truncate text-xs\">\n                  {user.email}\n                </span>\n              </div>\n              <IconDotsVertical className=\"ml-auto size-4\" />\n            </SidebarMenuButton>\n          </DropdownMenuTrigger>\n          <DropdownMenuContent\n            className=\"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg\"\n            side={isMobile ? \"bottom\" : \"right\"}\n            align=\"end\"\n            sideOffset={4}\n          >\n            <DropdownMenuLabel className=\"p-0 font-normal\">\n              <div className=\"flex items-center gap-2 px-1 py-1.5 text-left text-sm\">\n                <Avatar className=\"h-8 w-8 rounded-lg! bg-transparent border-none p-0 overflow-hidden\">\n                  {user.avatar ? (\n                    <AvatarImage src={user.avatar} alt={user.name} className=\"rounded-lg!\" />\n                  ) : (\n                    <div className=\"h-full w-full rounded-lg! bg-indigo-100 text-indigo-600 dark:bg-indigo-900/50 dark:text-indigo-400 font-semibold m-0 flex items-center justify-center border-none\">CN</div>\n                  )}\n                </Avatar>\n                <div className=\"grid flex-1 text-left text-sm leading-tight\">\n                  <span className=\"truncate font-medium\">{user.name}</span>\n                  <span className=\"text-muted-foreground truncate text-xs\">\n                    {user.email}\n                  </span>\n                </div>\n              </div>\n            </DropdownMenuLabel>\n            <DropdownMenuSeparator />\n            <DropdownMenuGroup>\n              <DropdownMenuItem>\n                <IconUserCircle />\n                Account\n              </DropdownMenuItem>\n              <DropdownMenuItem>\n                <IconCreditCard />\n                Billing\n              </DropdownMenuItem>\n              <DropdownMenuItem>\n                <IconNotification />\n                Notifications\n              </DropdownMenuItem>\n            </DropdownMenuGroup>\n            <DropdownMenuSeparator />\n            <DropdownMenuItem>\n              <IconLogout />\n              Log out\n            </DropdownMenuItem>\n          </DropdownMenuContent>\n        </DropdownMenu>\n      </SidebarMenuItem>\n    </SidebarMenu>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/e-commerce-dashboard/components/nav-user.tsx"
    },
    {
      "path": "src/components/dashboards/e-commerce-dashboard/components/site-header.tsx",
      "content": "import { Separator } from \"@/components/ui/separator\"\nimport { SidebarTrigger } from \"@/components/ui/sidebar\"\n\nexport function SiteHeader() {\n  return (\n    <header className=\"flex h-(--header-height) shrink-0 items-center gap-2 border-b transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-(--header-height)\">\n      <div className=\"flex w-full items-center gap-1 px-4 lg:gap-2 lg:px-6\">\n        <SidebarTrigger className=\"-ml-1\" />\n        <Separator\n          orientation=\"vertical\"\n          className=\"mx-2 data-[orientation=vertical]:h-4\"\n        />\n        <h1 className=\"text-base font-medium\">Dashboard</h1>\n      </div>\n    </header>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/e-commerce-dashboard/components/site-header.tsx"
    },
    {
      "path": "src/components/dashboards/e-commerce-dashboard/dashboardLayout.tsx",
      "content": "import { AppSidebar } from \"./components/app-sidebar\";\nimport { SiteHeader } from \"./components/site-header\";\nimport { SidebarInset, SidebarProvider } from \"@/components/ui/sidebar\";\n\nexport const DashboardLayout = ({\n  children,\n  onNavigate,\n  currentView,\n}: {\n  children: React.ReactNode;\n  onNavigate?: (view: string) => void;\n  currentView?: string;\n}) => {\n  return (\n    <SidebarProvider\n      style={\n        {\n          \"--sidebar-width\": \"calc(var(--spacing) * 72)\",\n          \"--header-height\": \"calc(var(--spacing) * 12)\",\n        } as React.CSSProperties\n      }\n    >\n      <AppSidebar variant=\"inset\" onNavigate={onNavigate} currentView={currentView} />\n      <SidebarInset className=\"min-w-0\">\n        <SiteHeader />\n        <div className=\"flex flex-1 flex-col min-w-0\">{children}</div>\n      </SidebarInset>\n    </SidebarProvider>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/watermelon/e-commerce-dashboard/dashboardLayout.tsx"
    },
    {
      "path": "src/components/dashboards/e-commerce-dashboard/dashboardView.tsx",
      "content": "\"use client\";\n\nimport {\n  IconArrowNarrowDownDashed,\n  IconArrowNarrowRight,\n  IconArrowNarrowUpDashed,\n  IconTrendingUp,\n  IconDotsVertical,\n  IconEye,\n  IconReceiptRefund,\n  IconMessageCircle,\n} from \"@tabler/icons-react\";\nimport {\n  Area,\n  AreaChart,\n  CartesianGrid,\n  XAxis,\n  YAxis,\n  Tooltip,\n  ResponsiveContainer,\n  PieChart,\n  Pie,\n  Cell,\n} from \"recharts\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport {\n  DropdownMenu,\n  DropdownMenuContent,\n  DropdownMenuItem,\n  DropdownMenuTrigger,\n} from \"@/components/ui/dropdown-menu\";\nimport { toast } from \"sonner\";\nimport {\n  Card,\n  CardContent,\n  CardDescription,\n  CardFooter,\n  CardHeader,\n  CardTitle,\n} from \"@/components/ui/card\";\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from \"@/components/ui/select\";\nimport {\n  Table,\n  TableBody,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\";\nimport { dashboardMetrics, revenueData, transactions, trafficChannelData } from \"./data\";\n\nexport const DashboardView = () => {\n  return (\n    <div className=\"w-full h-full flex flex-col gap-4 p-4 lg:p-6 min-w-0\">\n      <div className=\"flex flex-col xl:flex-row gap-4 min-w-0\">\n        <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-3 flex-1 min-w-0\">\n          {dashboardMetrics.map((metric) => {\n            const TrendIcon =\n              metric.trend === \"up\"\n                ? IconArrowNarrowUpDashed\n                : IconArrowNarrowDownDashed;\n            return (\n              <Card\n                key={metric.id}\n                className=\"shadow-none bg-neutral-200/60 dark:bg-neutral-900 p-1 gap-0 border border-neutral-300 dark:border-neutral-800 transition-colors duration-300 hover:shadow-lg cursor-pointer group\"\n              >\n                <div className=\"bg-white dark:bg-neutral-950 w-full h-full flex flex-col rounded-lg p-4 gap-4 border border-neutral-300 dark:border-neutral-800\">\n                  <CardHeader className=\"p-0 gap-1.5 w-full text-left\">\n                    <CardDescription className=\"wrap-break-word whitespace-normal\">\n                      {metric.label}\n                    </CardDescription>\n                    <CardTitle className=\"text-xl sm:text-2xl font-bold tabular-nums break-all whitespace-normal\">\n                      {metric.value}\n                    </CardTitle>\n                  </CardHeader>\n                  <CardContent className=\"flex flex-wrap gap-x-3 gap-y-1.5 items-center p-0 w-full\">\n                    <div className=\"flex items-center gap-1 shrink-0 font-medium whitespace-nowrap\">\n                      <TrendIcon\n                        className={`size-5 shrink-0 ${metric.trend === \"up\"\n                          ? \"text-green-600\"\n                          : \"text-red-600\"\n                          }`}\n                        strokeWidth={2.5}\n                      />\n                      {metric.trendValue}\n                    </div>\n                    <div className=\"text-muted-foreground text-sm leading-tight whitespace-nowrap\">\n                      {metric.helperText}\n                    </div>\n                  </CardContent>\n                </div>\n                <CardFooter className=\"py-1.5 px-2\">\n                  <a\n                    href=\"#\"\n                    onClick={(e) => {\n                      e.preventDefault();\n                      toast.success(`Generated ${metric.label} Report`, {\n                        description: `Your report for ${metric.label} is ready to view.`,\n                      });\n                    }}\n                    className=\"font-medium hover:text-indigo-600 dark:hover:text-indigo-400 flex items-center justify-between w-full text-neutral-700 dark:text-neutral-300 text-sm transition-colors duration-300\"\n                  >\n                    <span>View Report</span>\n                    <IconArrowNarrowRight className=\"size-4\" />\n                  </a>\n                </CardFooter>\n              </Card>\n            );\n          })}\n        </div>\n\n        {/* Revenue Chart */}\n        <Card className=\"w-full xl:w-2xl min-w-0 shadow-none bg-neutral-200/60 dark:bg-neutral-900 p-1 gap-0 border border-neutral-300 dark:border-neutral-800 transition-colors duration-300 hover:shadow-lg\">\n          <div className=\"bg-white dark:bg-neutral-950 w-full h-full flex flex-col rounded-lg p-5 gap-8 border border-neutral-300 dark:border-neutral-800\">\n            <CardHeader className=\"flex flex-row items-center justify-between p-0\">\n              <div>\n                <CardTitle>Revenue</CardTitle>\n                <div className=\"flex items-center gap-2 mt-2\">\n                  <span className=\"text-2xl font-bold\">$85,400.12</span>\n                  <Badge className=\"flex items-center gap-1\">\n                    <IconTrendingUp className=\"size-3\" />\n                    +10%\n                  </Badge>\n                </div>\n              </div>\n              <Select defaultValue=\"month\" onValueChange={(val) => toast.info(`Revenue graph updated to show: ${val}`)}>\n                <SelectTrigger className=\"w-24 shadow-none border border-neutral-300 dark:border-neutral-800 bg-white dark:bg-neutral-950 transition-colors duration-300 cursor-pointer hover:bg-neutral-50 dark:hover:bg-neutral-900 focus:ring-0 focus:ring-offset-0 focus-visible:border-neutral-400 dark:focus-visible:border-neutral-600 focus-visible:ring-0 outline-none text-foreground\">\n                  <SelectValue />\n                </SelectTrigger>\n                <SelectContent>\n                  <SelectItem value=\"month\">Month</SelectItem>\n                  <SelectItem value=\"quarter\">Quarter</SelectItem>\n                  <SelectItem value=\"year\">Year</SelectItem>\n                </SelectContent>\n              </Select>\n            </CardHeader>\n            <CardContent className=\"flex flex-col gap-4 p-0\">\n              <div className=\"flex gap-4 text-sm\">\n                <div className=\"flex items-center gap-2\">\n                  <div className=\"w-3 h-3 rounded-full bg-blue-500\"></div>\n                  <span>Profit</span>\n                </div>\n                <div className=\"flex items-center gap-2\">\n                  <div className=\"w-3 h-3 rounded-full bg-blue-200\"></div>\n                  <span>Loss</span>\n                </div>\n              </div>\n              <div className=\"w-full h-48 -ml-5\">\n                <ResponsiveContainer width=\"100%\" height=\"100%\">\n                  <AreaChart\n                    data={revenueData}\n                    margin={{ left: 15, right: 0, top: 10, bottom: 0 }}\n                  >\n                    <defs>\n                      <linearGradient\n                        id=\"colorProfit\"\n                        x1=\"0\"\n                        y1=\"0\"\n                        x2=\"0\"\n                        y2=\"1\"\n                      >\n                        <stop\n                          offset=\"5%\"\n                          stopColor=\"#3b82f6\"\n                          stopOpacity={0.8}\n                        />\n                        <stop\n                          offset=\"95%\"\n                          stopColor=\"#3b82f6\"\n                          stopOpacity={0}\n                        />\n                      </linearGradient>\n                      <linearGradient\n                        id=\"colorLoss\"\n                        x1=\"0\"\n                        y1=\"0\"\n                        x2=\"0\"\n                        y2=\"1\"\n                      >\n                        <stop\n                          offset=\"5%\"\n                          stopColor=\"#bfdbfe\"\n                          stopOpacity={0.8}\n                        />\n                        <stop\n                          offset=\"95%\"\n                          stopColor=\"#bfdbfe\"\n                          stopOpacity={0}\n                        />\n                      </linearGradient>\n                    </defs>\n                    <CartesianGrid strokeDasharray=\"3 3\" stroke=\"#e5e7eb\" className=\"opacity-100 dark:opacity-10\" />\n                    <XAxis\n                      dataKey=\"month\"\n                      axisLine={false}\n                      tickLine={false}\n                      tick={{ fill: \"#6b7280\", fontSize: 12 }}\n                      tickMargin={12}\n                    />\n                    <YAxis\n                      axisLine={false}\n                      tickLine={false}\n                      tick={{ fill: \"#6b7280\", fontSize: 12 }}\n                      tickMargin={12}\n                    />\n                    <Tooltip\n                      contentStyle={{\n                        backgroundColor: \"var(--background)\",\n                        border: \"1px solid var(--border)\",\n                        borderRadius: \"8px\",\n                      }}\n                      formatter={(value) => `$${(value ?? 0).toLocaleString()}`}\n                    />\n                    <Area\n                      type=\"monotone\"\n                      dataKey=\"profit\"\n                      stroke=\"#3b82f6\"\n                      fillOpacity={1}\n                      fill=\"url(#colorProfit)\"\n                    />\n                    <Area\n                      type=\"monotone\"\n                      dataKey=\"loss\"\n                      stroke=\"#bfdbfe\"\n                      fillOpacity={1}\n                      fill=\"url(#colorLoss)\"\n                    />\n                  </AreaChart>\n                </ResponsiveContainer>\n              </div>\n            </CardContent>\n          </div>\n        </Card>\n      </div>\n\n      <div className=\"flex flex-col lg:flex-row gap-4 min-w-0\">\n        <Card className=\"flex-1 min-w-0 shadow-none bg-neutral-200/60 dark:bg-neutral-900 p-1 gap-0 border border-neutral-300 dark:border-neutral-800 transition-colors duration-300 hover:shadow-lg\">\n          <div className=\"bg-white dark:bg-neutral-950 w-full h-full flex flex-col rounded-lg p-4 gap-4 border border-neutral-300 dark:border-neutral-800\">\n            <CardHeader className=\"flex flex-row items-center justify-between p-0\">\n              <CardTitle className=\"text-xl font-semibold tracking-tight\">\n                Recent Transaction\n              </CardTitle>\n            </CardHeader>\n            <CardContent className=\"p-0\">\n              <Table>\n                <TableHeader>\n                  <TableRow className=\"border-b dark:border-neutral-800 hover:bg-transparent\">\n                    <TableHead className=\"font-medium text-muted-foreground w-[220px]\">\n                      Transaction ID\n                    </TableHead>\n                    <TableHead className=\"font-medium text-muted-foreground\">\n                      Date\n                    </TableHead>\n                    <TableHead className=\"text-center font-medium text-muted-foreground\">\n                      Status\n                    </TableHead>\n                    <TableHead className=\"text-right font-medium text-muted-foreground w-[100px]\">\n                      Amount\n                    </TableHead>\n                    <TableHead className=\"text-right font-medium text-muted-foreground w-[80px]\">\n                    </TableHead>\n                  </TableRow>\n                </TableHeader>\n                <TableBody>\n                  {transactions.map((transaction) => (\n                    <TableRow key={transaction.id} className=\"hover:bg-neutral-50 dark:hover:bg-neutral-800/50 transition-colors duration-300 hover:shadow-sm cursor-pointer border-transparent hover:border-neutral-200 dark:hover:border-neutral-700\">\n                      <TableCell className=\"py-2 lg:py-4\">\n                        <div className=\"flex flex-col xl:flex-row xl:items-center gap-2 xl:gap-3\">\n                          <div\n                            className={`w-8 h-8 shrink-0 rounded-lg flex items-center justify-center text-sm font-semibold dark:bg-neutral-800 ${transaction.iconBg}`}\n                          >\n                            <transaction.icon className=\"size-4 text-neutral-500\" />\n                          </div>\n                          <span className=\"font-medium whitespace-nowrap\">\n                            {transaction.id}\n                          </span>\n                        </div>\n                      </TableCell>\n                      <TableCell className=\"py-2 lg:py-4 text-muted-foreground whitespace-nowrap\">\n                        {transaction.date}\n                      </TableCell>\n                      <TableCell className=\"py-2 lg:py-4 text-center\">\n                        <Badge className={`${transaction.statusColor} shrink-0`}>\n                          {transaction.status}\n                        </Badge>\n                      </TableCell>\n                      <TableCell className=\"py-2 lg:py-4 font-medium text-right whitespace-nowrap\">\n                        {transaction.amount}\n                      </TableCell>\n                      <TableCell className=\"py-2 lg:py-4 text-right\">\n                        <DropdownMenu>\n                          <DropdownMenuTrigger asChild>\n                            <button className=\"p-1.5 rounded-md hover:bg-neutral-200 dark:hover:bg-neutral-700 transition-colors focus:outline-none\">\n                              <IconDotsVertical className=\"size-4 text-neutral-500\" />\n                            </button>\n                          </DropdownMenuTrigger>\n                          <DropdownMenuContent align=\"end\" className=\"w-40 rounded-lg shadow-lg\">\n                            <DropdownMenuItem className=\"gap-2 cursor-pointer\" onClick={() => toast.info(`Viewing details for transaction ${transaction.id}`)}>\n                              <IconEye className=\"size-4 text-neutral-500\" />\n                              <span>View Details</span>\n                            </DropdownMenuItem>\n                            <DropdownMenuItem className=\"gap-2 cursor-pointer\" onClick={() => toast(\"Opening chat...\", { description: `Connecting to the buyer for ${transaction.id}.` })}>\n                              <IconMessageCircle className=\"size-4 text-neutral-500\" />\n                              <span>Contact Buyer</span>\n                            </DropdownMenuItem>\n                            <DropdownMenuItem className=\"gap-2 cursor-pointer text-red-600 dark:text-red-400 focus:text-red-600 dark:focus:text-red-400\" onClick={() => toast.error(`Refund initiated`, { description: `Refunding ${transaction.amount} back to the customer.` })}>\n                              <IconReceiptRefund className=\"size-4\" />\n                              <span>Refund</span>\n                            </DropdownMenuItem>\n                          </DropdownMenuContent>\n                        </DropdownMenu>\n                      </TableCell>\n                    </TableRow>\n                  ))}\n                </TableBody>\n              </Table>\n            </CardContent>\n          </div>\n        </Card>\n\n        <Card className=\"w-full lg:w-xl min-w-0 shadow-none bg-neutral-200/60 dark:bg-neutral-900 p-1 gap-0 border border-neutral-300 dark:border-neutral-800 transition-colors duration-300 hover:shadow-lg\">\n          <div className=\"bg-white dark:bg-neutral-950 w-full h-full flex flex-col rounded-lg p-4 gap-4 border border-border\">\n            <CardHeader className=\"flex flex-row items-center justify-between p-0\">\n              <CardTitle>Traffic Channel</CardTitle>\n              <Select defaultValue=\"all\" onValueChange={(val) => toast.info(`Traffic channel filtered by: ${val}`)}>\n                <SelectTrigger className=\"w-fit shrink-0 shadow-none border border-neutral-300 dark:border-neutral-800 bg-white dark:bg-neutral-950 transition-colors duration-300 cursor-pointer hover:bg-neutral-50 dark:hover:bg-neutral-900 focus:ring-0 focus:ring-offset-0 focus-visible:border-neutral-400 dark:focus-visible:border-neutral-600 focus-visible:ring-0 outline-none text-foreground\">\n                  <SelectValue />\n                </SelectTrigger>\n                <SelectContent>\n                  <SelectItem value=\"all\">All time</SelectItem>\n                  <SelectItem value=\"month\">Month</SelectItem>\n                  <SelectItem value=\"week\">Week</SelectItem>\n                </SelectContent>\n              </Select>\n            </CardHeader>\n            <CardContent className=\"flex flex-col items-center gap-6 p-0\">\n              <div className=\"w-full h-58\">\n                <ResponsiveContainer width=\"100%\" height=\"100%\">\n                  <PieChart>\n                    <Pie\n                      data={trafficChannelData}\n                      cx=\"50%\"\n                      cy=\"50%\"\n                      innerRadius={60}\n                      outerRadius={90}\n                      paddingAngle={2}\n                      dataKey=\"value\"\n                    >\n                      {trafficChannelData.map((entry, index) => (\n                        <Cell key={`cell-${index}`} fill={entry.color} />\n                      ))}\n                    </Pie>\n                  </PieChart>\n                </ResponsiveContainer>\n              </div>\n              <div className=\"w-full space-y-3\">\n                {trafficChannelData.map((channel) => (\n                  <div\n                    key={channel.name}\n                    className=\"flex items-center justify-between\"\n                  >\n                    <div className=\"flex items-center gap-2\">\n                      <div\n                        className=\"w-3 h-3 rounded-full shrink-0\"\n                        style={{ backgroundColor: channel.color }}\n                      ></div>\n                      <span className=\"text-sm text-muted-foreground truncate\">\n                        {channel.name}\n                      </span>\n                    </div>\n                    <span className=\"text-sm font-semibold shrink-0\">\n                      {channel.value}%\n                    </span>\n                  </div>\n                ))}\n              </div>\n            </CardContent>\n          </div>\n        </Card>\n      </div>\n    </div>\n  );\n};\n",
      "type": "registry:component",
      "target": "components/watermelon/e-commerce-dashboard/dashboardView.tsx"
    },
    {
      "path": "src/components/dashboards/e-commerce-dashboard/data.ts",
      "content": "import { IconArrowNarrowUp } from \"@tabler/icons-react\";\n\nexport const dashboardMetrics = [\n    {\n        id: \"total-orders\",\n        label: \"Total orders\",\n        value: \"12,832\",\n        trend: \"up\",\n        trendValue: \"+28.1%\",\n        helperText: \"+2,123 today\",\n    },\n    {\n        id: \"total-sales\",\n        label: \"Total Sales\",\n        value: \"$12,832.80\",\n        trend: \"up\",\n        trendValue: \"+18.8%\",\n        helperText: \"+$1,895 today\",\n    },\n    {\n        id: \"visits\",\n        label: \"Visits\",\n        value: \"1,062\",\n        trend: \"down\",\n        trendValue: \"-10%\",\n        helperText: \"-426 today\",\n    },\n    {\n        id: \"conversion-rate\",\n        label: \"Conversion rate\",\n        value: \"90%\",\n        trend: \"up\",\n        trendValue: \"+12%\",\n        helperText: \"+42 today\",\n    },\n];\n\nexport const revenueData = [\n    { month: \"JAN\", profit: 9500, loss: 4200 },\n    { month: \"FEB\", profit: 13200, loss: 5100 },\n    { month: \"MAR\", profit: 11800, loss: 4800 },\n    { month: \"APR\", profit: 15600, loss: 5800 },\n    { month: \"MAY\", profit: 8900, loss: 4100 },\n    { month: \"JUNE\", profit: 11200, loss: 4900 },\n];\n\nexport const transactions = [\n    {\n        id: \"#2020912\",\n        date: \"Apr 29, 2022, 11:37\",\n        amount: -299.89,\n        status: \"Pending\",\n        statusColor: \"bg-yellow-100 text-yellow-800 dark:bg-yellow-500/15 dark:text-yellow-400 border-transparent dark:border-yellow-500/20\",\n        icon: IconArrowNarrowUp,\n        iconBg: \"bg-yellow-100 dark:bg-yellow-500/10\",\n    },\n    {\n        id: \"#2020911\",\n        date: \"Apr 29, 2022, 11:37\",\n        amount: -130.15,\n        status: \"Completed\",\n        statusColor: \"bg-green-100 text-green-800 dark:bg-green-500/15 dark:text-green-400 border-transparent dark:border-green-500/20\",\n        icon: IconArrowNarrowUp,\n        iconBg: \"bg-green-100 dark:bg-green-500/10\",\n    },\n    {\n        id: \"#2020910\",\n        date: \"Apr 29, 2022, 11:36\",\n        amount: -458.13,\n        status: \"Scheduled\",\n        statusColor: \"bg-cyan-100 text-cyan-800 dark:bg-cyan-500/15 dark:text-cyan-400 border-transparent dark:border-cyan-500/20\",\n        icon: IconArrowNarrowUp,\n        iconBg: \"bg-cyan-100 dark:bg-cyan-500/10\",\n    },\n    {\n        id: \"#2020909\",\n        date: \"Apr 29, 2022, 11:36\",\n        amount: -210.99,\n        status: \"Completed\",\n        statusColor: \"bg-green-100 text-green-800 dark:bg-green-500/15 dark:text-green-400 border-transparent dark:border-green-500/20\",\n        icon: IconArrowNarrowUp,\n        iconBg: \"bg-green-100 dark:bg-green-500/10\",\n    },\n    {\n        id: \"#2070910\",\n        date: \"Apr 29, 2022, 11:36\",\n        amount: -458.13,\n        status: \"Scheduled\",\n        statusColor: \"bg-cyan-100 text-cyan-800 dark:bg-cyan-500/15 dark:text-cyan-400 border-transparent dark:border-cyan-500/20\",\n        icon: IconArrowNarrowUp,\n        iconBg: \"bg-cyan-100 dark:bg-cyan-500/10\",\n    }\n];\n\nexport const trafficChannelData = [\n    { name: \"Direct\", value: 55, color: \"#3b82f6\" },\n    { name: \"Organic\", value: 20, color: \"#93c5fd\" },\n    { name: \"Referral\", value: 25, color: \"#dbeafe\" },\n];\n",
      "type": "registry:component",
      "target": "components/watermelon/e-commerce-dashboard/data.ts"
    },
    {
      "path": "src/components/dashboards/e-commerce-dashboard/demo.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { DashboardLayout } from \"./dashboardLayout\";\nimport { DashboardView } from \"./dashboardView\";\n\nexport default function EcommerceDashboardDemo() {\n    const [currentView, setCurrentView] = useState(\"Dashboard\");\n\n    const renderContent = () => {\n        switch (currentView) {\n            case \"Dashboard\":\n                return <DashboardView />;\n            default:\n                return <DashboardView />;\n        }\n    };\n\n    return (\n        <DashboardLayout onNavigate={setCurrentView} currentView={currentView}>\n            {renderContent()}\n        </DashboardLayout>\n    );\n}\n",
      "type": "registry:component",
      "target": "components/watermelon/e-commerce-dashboard/demo.tsx"
    }
  ],
  "type": "registry:block"
}
