From b0451320a56ad78dc0323dbc0a0010b45e22ca87 Mon Sep 17 00:00:00 2001 From: zhangtao25 Date: Sat, 16 Nov 2024 23:01:18 +0800 Subject: [PATCH] chore: repo overall update --- packages/canyon-platform/.gitignore | 2 + .../components/app-sidebar.tsx | 189 ----- .../canyon-platform/components/c-icon.tsx | 7 - .../canyon-platform/components/main-box.tsx | 141 ---- .../canyon-platform/components/nav-main.tsx | 73 -- .../components/nav-projects.tsx | 89 -- .../canyon-platform/components/nav-user.tsx | 114 --- .../components/team-switcher.tsx | 89 -- .../components/ui/accordion.tsx | 58 -- .../components/ui/alert-dialog.tsx | 141 ---- .../canyon-platform/components/ui/alert.tsx | 59 -- .../components/ui/aspect-ratio.tsx | 7 - .../canyon-platform/components/ui/avatar.tsx | 50 -- .../canyon-platform/components/ui/badge.tsx | 36 - .../components/ui/breadcrumb.tsx | 115 --- .../canyon-platform/components/ui/button.tsx | 56 -- .../components/ui/calendar.tsx | 66 -- .../canyon-platform/components/ui/card.tsx | 79 -- .../components/ui/carousel.tsx | 262 ------ .../canyon-platform/components/ui/chart.tsx | 365 --------- .../components/ui/checkbox.tsx | 30 - .../components/ui/collapsible.tsx | 11 - .../canyon-platform/components/ui/command.tsx | 153 ---- .../components/ui/context-menu.tsx | 200 ----- .../canyon-platform/components/ui/dialog.tsx | 122 --- .../canyon-platform/components/ui/drawer.tsx | 118 --- .../components/ui/dropdown-menu.tsx | 200 ----- .../canyon-platform/components/ui/form.tsx | 178 ---- .../components/ui/hover-card.tsx | 29 - .../components/ui/input-otp.tsx | 71 -- .../canyon-platform/components/ui/input.tsx | 22 - .../canyon-platform/components/ui/label.tsx | 26 - .../canyon-platform/components/ui/menubar.tsx | 236 ------ .../components/ui/navigation-menu.tsx | 128 --- .../components/ui/pagination.tsx | 117 --- .../canyon-platform/components/ui/popover.tsx | 31 - .../components/ui/progress.tsx | 28 - .../components/ui/radio-group.tsx | 44 - .../components/ui/resizable.tsx | 45 -- .../components/ui/scroll-area.tsx | 48 -- .../canyon-platform/components/ui/select.tsx | 160 ---- .../components/ui/separator.tsx | 31 - .../canyon-platform/components/ui/sheet.tsx | 140 ---- .../canyon-platform/components/ui/sidebar.tsx | 763 ------------------ .../components/ui/skeleton.tsx | 15 - .../canyon-platform/components/ui/slider.tsx | 28 - .../canyon-platform/components/ui/sonner.tsx | 31 - .../canyon-platform/components/ui/switch.tsx | 29 - .../canyon-platform/components/ui/table.tsx | 117 --- .../canyon-platform/components/ui/tabs.tsx | 55 -- .../components/ui/textarea.tsx | 22 - .../canyon-platform/components/ui/toast.tsx | 129 --- .../canyon-platform/components/ui/toaster.tsx | 35 - .../components/ui/toggle-group.tsx | 61 -- .../canyon-platform/components/ui/toggle.tsx | 45 -- .../canyon-platform/components/ui/tooltip.tsx | 30 - 56 files changed, 2 insertions(+), 5524 deletions(-) delete mode 100644 packages/canyon-platform/components/app-sidebar.tsx delete mode 100644 packages/canyon-platform/components/c-icon.tsx delete mode 100644 packages/canyon-platform/components/main-box.tsx delete mode 100644 packages/canyon-platform/components/nav-main.tsx delete mode 100644 packages/canyon-platform/components/nav-projects.tsx delete mode 100644 packages/canyon-platform/components/nav-user.tsx delete mode 100644 packages/canyon-platform/components/team-switcher.tsx delete mode 100644 packages/canyon-platform/components/ui/accordion.tsx delete mode 100644 packages/canyon-platform/components/ui/alert-dialog.tsx delete mode 100644 packages/canyon-platform/components/ui/alert.tsx delete mode 100644 packages/canyon-platform/components/ui/aspect-ratio.tsx delete mode 100644 packages/canyon-platform/components/ui/avatar.tsx delete mode 100644 packages/canyon-platform/components/ui/badge.tsx delete mode 100644 packages/canyon-platform/components/ui/breadcrumb.tsx delete mode 100644 packages/canyon-platform/components/ui/button.tsx delete mode 100644 packages/canyon-platform/components/ui/calendar.tsx delete mode 100644 packages/canyon-platform/components/ui/card.tsx delete mode 100644 packages/canyon-platform/components/ui/carousel.tsx delete mode 100644 packages/canyon-platform/components/ui/chart.tsx delete mode 100644 packages/canyon-platform/components/ui/checkbox.tsx delete mode 100644 packages/canyon-platform/components/ui/collapsible.tsx delete mode 100644 packages/canyon-platform/components/ui/command.tsx delete mode 100644 packages/canyon-platform/components/ui/context-menu.tsx delete mode 100644 packages/canyon-platform/components/ui/dialog.tsx delete mode 100644 packages/canyon-platform/components/ui/drawer.tsx delete mode 100644 packages/canyon-platform/components/ui/dropdown-menu.tsx delete mode 100644 packages/canyon-platform/components/ui/form.tsx delete mode 100644 packages/canyon-platform/components/ui/hover-card.tsx delete mode 100644 packages/canyon-platform/components/ui/input-otp.tsx delete mode 100644 packages/canyon-platform/components/ui/input.tsx delete mode 100644 packages/canyon-platform/components/ui/label.tsx delete mode 100644 packages/canyon-platform/components/ui/menubar.tsx delete mode 100644 packages/canyon-platform/components/ui/navigation-menu.tsx delete mode 100644 packages/canyon-platform/components/ui/pagination.tsx delete mode 100644 packages/canyon-platform/components/ui/popover.tsx delete mode 100644 packages/canyon-platform/components/ui/progress.tsx delete mode 100644 packages/canyon-platform/components/ui/radio-group.tsx delete mode 100644 packages/canyon-platform/components/ui/resizable.tsx delete mode 100644 packages/canyon-platform/components/ui/scroll-area.tsx delete mode 100644 packages/canyon-platform/components/ui/select.tsx delete mode 100644 packages/canyon-platform/components/ui/separator.tsx delete mode 100644 packages/canyon-platform/components/ui/sheet.tsx delete mode 100644 packages/canyon-platform/components/ui/sidebar.tsx delete mode 100644 packages/canyon-platform/components/ui/skeleton.tsx delete mode 100644 packages/canyon-platform/components/ui/slider.tsx delete mode 100644 packages/canyon-platform/components/ui/sonner.tsx delete mode 100644 packages/canyon-platform/components/ui/switch.tsx delete mode 100644 packages/canyon-platform/components/ui/table.tsx delete mode 100644 packages/canyon-platform/components/ui/tabs.tsx delete mode 100644 packages/canyon-platform/components/ui/textarea.tsx delete mode 100644 packages/canyon-platform/components/ui/toast.tsx delete mode 100644 packages/canyon-platform/components/ui/toaster.tsx delete mode 100644 packages/canyon-platform/components/ui/toggle-group.tsx delete mode 100644 packages/canyon-platform/components/ui/toggle.tsx delete mode 100644 packages/canyon-platform/components/ui/tooltip.tsx diff --git a/packages/canyon-platform/.gitignore b/packages/canyon-platform/.gitignore index d32cc78b..0b09bf7a 100644 --- a/packages/canyon-platform/.gitignore +++ b/packages/canyon-platform/.gitignore @@ -38,3 +38,5 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +components diff --git a/packages/canyon-platform/components/app-sidebar.tsx b/packages/canyon-platform/components/app-sidebar.tsx deleted file mode 100644 index 82f61ce3..00000000 --- a/packages/canyon-platform/components/app-sidebar.tsx +++ /dev/null @@ -1,189 +0,0 @@ -"use client" - -import * as React from "react" -import { - AudioWaveform, - BookOpen, - Bot, - Command, - Frame, - GalleryVerticalEnd, - Map, - PieChart, - Settings2, - SquareTerminal, -} from "lucide-react" - -import { NavMain } from "@/components/nav-main" -import { NavProjects } from "@/components/nav-projects" -import { NavUser } from "@/components/nav-user" -import { TeamSwitcher } from "@/components/team-switcher" -import { - Sidebar, - SidebarContent, - SidebarFooter, - SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, - SidebarRail, -} from "@/components/ui/sidebar" - -// This is sample data. -const data = { - user: { - name: "shadcn", - email: "m@example.com", - avatar: "/avatars/shadcn.jpg", - }, - teams: [ - { - name: "Acme Inc", - logo: GalleryVerticalEnd, - plan: "Enterprise", - }, - { - name: "Acme Corp.", - logo: AudioWaveform, - plan: "Startup", - }, - { - name: "Evil Corp.", - logo: Command, - plan: "Free", - }, - ], - navMain: [ - { - title: "Playground", - url: "#", - icon: SquareTerminal, - isActive: true, - items: [ - { - title: "History", - url: "#", - }, - { - title: "Starred", - url: "#", - }, - { - title: "Settings", - url: "#", - }, - ], - }, - { - title: "Models", - url: "#", - icon: Bot, - items: [ - { - title: "Genesis", - url: "#", - }, - { - title: "Explorer", - url: "#", - }, - { - title: "Quantum", - url: "#", - }, - ], - }, - { - title: "Documentation", - url: "#", - icon: BookOpen, - items: [ - { - title: "Introduction", - url: "#", - }, - { - title: "Get Started", - url: "#", - }, - { - title: "Tutorials", - url: "#", - }, - { - title: "Changelog", - url: "#", - }, - ], - }, - { - title: "Settings", - url: "#", - icon: Settings2, - items: [ - { - title: "General", - url: "#", - }, - { - title: "Team", - url: "#", - }, - { - title: "Billing", - url: "#", - }, - { - title: "Limits", - url: "#", - }, - ], - }, - ], - projects: [ - { - name: "Design Engineering", - url: "#", - icon: Frame, - }, - { - name: "Sales & Marketing", - url: "#", - icon: PieChart, - }, - { - name: "Travel", - url: "#", - icon: Map, - }, - ], -} - -export function AppSidebar({ ...props }: React.ComponentProps) { - return ( - - - - - - -
- -
-
- Acme Inc - Enterprise -
-
-
-
-
-
- - - - - - - - -
- ) -} diff --git a/packages/canyon-platform/components/c-icon.tsx b/packages/canyon-platform/components/c-icon.tsx deleted file mode 100644 index 57482d0e..00000000 --- a/packages/canyon-platform/components/c-icon.tsx +++ /dev/null @@ -1,7 +0,0 @@ -const CIcon = ({name}) => { - return - - -} - -export default CIcon; diff --git a/packages/canyon-platform/components/main-box.tsx b/packages/canyon-platform/components/main-box.tsx deleted file mode 100644 index 94d42d2f..00000000 --- a/packages/canyon-platform/components/main-box.tsx +++ /dev/null @@ -1,141 +0,0 @@ -"use client"; -import ScrollBasedLayout from "@/components/scroll-based-layout"; -import {Breadcrumb, Dropdown, Menu} from "antd"; -import Image from "next/image"; -import { usePathname } from "next/navigation"; -import React, {useEffect} from "react"; -import Link from "next/link"; -import CIcon from "@/components/c-icon"; - -const menuItems = [ - { - label: "Projects", - key: "projects", - // icon: , - }, - // { - // label: t("报表"), - // key: "reports", - // icon: , - // }, - { - label: "Settings", - key: "settings", - // icon: , - }, -]; - -const MainBoxWrap = ({ children }: React.PropsWithChildren) => { - - const routeName = usePathname(); - - const onSelectMenu = (selectInfo) => { - console.log(selectInfo); - window.location.href = `/${selectInfo.key}`; - }; - - const selectedKey = usePathname().split("/")[1]; - - return ( - -
-
-
- {"logo"} - - {"Canyon"} - -
- - - {/**/} - - -
-
- -
- { - onSelectMenu?.(selectInfo); - }} - selectedKeys={[routeName.split("/")[1]]} - items={menuItems} - className={"dark:bg-[#151718] px-1"} - style={{ flex: "1" }} - /> -
- } - mainContent={ -
-
- Application Center, - }, - { - title: Application List, - }, - { - title: 'An Application', - }, - ]} - /> -
-
- {children} -
-
- } - footer={
Footer
} - /> - ); -}; -const MainBox = ({ children }: React.PropsWithChildren) => { - // const routeName = true - const routeName = usePathname(); - // console.log(router,'router') - // const routeName = 'router.pathname'; - const whiteList = ["/login"]; - - // useEffect(()=>{ - // console.log(routeName) - // if (routeName === '/') { - // console.log('login') - // window.location.href = '/projects' - // } - // },[routeName]) - - return ( -
- {whiteList.some((i) => routeName.startsWith(i)) ? ( -
{children}
- ) : ( - {children} - )} -
- ); -}; - -export default MainBox; diff --git a/packages/canyon-platform/components/nav-main.tsx b/packages/canyon-platform/components/nav-main.tsx deleted file mode 100644 index 1d71af13..00000000 --- a/packages/canyon-platform/components/nav-main.tsx +++ /dev/null @@ -1,73 +0,0 @@ -"use client" - -import { ChevronRight, type LucideIcon } from "lucide-react" - -import { - Collapsible, - CollapsibleContent, - CollapsibleTrigger, -} from "@/components/ui/collapsible" -import { - SidebarGroup, - SidebarGroupLabel, - SidebarMenu, - SidebarMenuButton, - SidebarMenuItem, - SidebarMenuSub, - SidebarMenuSubButton, - SidebarMenuSubItem, -} from "@/components/ui/sidebar" - -export function NavMain({ - items, -}: { - items: { - title: string - url: string - icon?: LucideIcon - isActive?: boolean - items?: { - title: string - url: string - }[] - }[] -}) { - return ( - - Platform - - {items.map((item) => ( - - - - - {item.icon && } - {item.title} - - - - - - {item.items?.map((subItem) => ( - - - - {subItem.title} - - - - ))} - - - - - ))} - - - ) -} diff --git a/packages/canyon-platform/components/nav-projects.tsx b/packages/canyon-platform/components/nav-projects.tsx deleted file mode 100644 index f50b20de..00000000 --- a/packages/canyon-platform/components/nav-projects.tsx +++ /dev/null @@ -1,89 +0,0 @@ -"use client" - -import { - Folder, - Forward, - MoreHorizontal, - Trash2, - type LucideIcon, -} from "lucide-react" - -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuSeparator, - DropdownMenuTrigger, -} from "@/components/ui/dropdown-menu" -import { - SidebarGroup, - SidebarGroupLabel, - SidebarMenu, - SidebarMenuAction, - SidebarMenuButton, - SidebarMenuItem, - useSidebar, -} from "@/components/ui/sidebar" - -export function NavProjects({ - projects, -}: { - projects: { - name: string - url: string - icon: LucideIcon - }[] -}) { - const { isMobile } = useSidebar() - - return ( - - Projects - - {projects.map((item) => ( - - - - - {item.name} - - - - - - - More - - - - - - View Project - - - - Share Project - - - - - Delete Project - - - - - ))} - - - - More - - - - - ) -} diff --git a/packages/canyon-platform/components/nav-user.tsx b/packages/canyon-platform/components/nav-user.tsx deleted file mode 100644 index d12ef780..00000000 --- a/packages/canyon-platform/components/nav-user.tsx +++ /dev/null @@ -1,114 +0,0 @@ -"use client" - -import { - BadgeCheck, - Bell, - ChevronsUpDown, - CreditCard, - LogOut, - Sparkles, -} from "lucide-react" - -import { - Avatar, - AvatarFallback, - AvatarImage, -} from "@/components/ui/avatar" -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuGroup, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuSeparator, - DropdownMenuTrigger, -} from "@/components/ui/dropdown-menu" -import { - SidebarMenu, - SidebarMenuButton, - SidebarMenuItem, - useSidebar, -} from "@/components/ui/sidebar" - -export function NavUser({ - user, -}: { - user: { - name: string - email: string - avatar: string - } -}) { - const { isMobile } = useSidebar() - - return ( - - - - - - - - CN - -
- {user.name} - {user.email} -
- -
-
- - -
- - - CN - -
- {user.name} - {user.email} -
-
-
- - - - - Upgrade to Pro - - - - - - - Account - - - - Billing - - - - Notifications - - - - - - Log out - -
-
-
-
- ) -} diff --git a/packages/canyon-platform/components/team-switcher.tsx b/packages/canyon-platform/components/team-switcher.tsx deleted file mode 100644 index 2808e0a4..00000000 --- a/packages/canyon-platform/components/team-switcher.tsx +++ /dev/null @@ -1,89 +0,0 @@ -"use client" - -import * as React from "react" -import { ChevronsUpDown, Plus } from "lucide-react" - -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuSeparator, - DropdownMenuShortcut, - DropdownMenuTrigger, -} from "@/components/ui/dropdown-menu" -import { - SidebarMenu, - SidebarMenuButton, - SidebarMenuItem, - useSidebar, -} from "@/components/ui/sidebar" - -export function TeamSwitcher({ - teams, -}: { - teams: { - name: string - logo: React.ElementType - plan: string - }[] -}) { - const { isMobile } = useSidebar() - const [activeTeam, setActiveTeam] = React.useState(teams[0]) - - return ( - - - - - -
- -
-
- - {activeTeam.name} - - {activeTeam.plan} -
- -
-
- - - Teams - - {teams.map((team, index) => ( - setActiveTeam(team)} - className="gap-2 p-2" - > -
- -
- {team.name} - ⌘{index + 1} -
- ))} - - -
- -
-
Add team
-
-
-
-
-
- ) -} diff --git a/packages/canyon-platform/components/ui/accordion.tsx b/packages/canyon-platform/components/ui/accordion.tsx deleted file mode 100644 index 24c788c2..00000000 --- a/packages/canyon-platform/components/ui/accordion.tsx +++ /dev/null @@ -1,58 +0,0 @@ -"use client" - -import * as React from "react" -import * as AccordionPrimitive from "@radix-ui/react-accordion" -import { ChevronDown } from "lucide-react" - -import { cn } from "@/lib/utils" - -const Accordion = AccordionPrimitive.Root - -const AccordionItem = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)) -AccordionItem.displayName = "AccordionItem" - -const AccordionTrigger = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, children, ...props }, ref) => ( - - svg]:rotate-180", - className - )} - {...props} - > - {children} - - - -)) -AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName - -const AccordionContent = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, children, ...props }, ref) => ( - -
{children}
-
-)) - -AccordionContent.displayName = AccordionPrimitive.Content.displayName - -export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } diff --git a/packages/canyon-platform/components/ui/alert-dialog.tsx b/packages/canyon-platform/components/ui/alert-dialog.tsx deleted file mode 100644 index 25e7b474..00000000 --- a/packages/canyon-platform/components/ui/alert-dialog.tsx +++ /dev/null @@ -1,141 +0,0 @@ -"use client" - -import * as React from "react" -import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" - -import { cn } from "@/lib/utils" -import { buttonVariants } from "@/components/ui/button" - -const AlertDialog = AlertDialogPrimitive.Root - -const AlertDialogTrigger = AlertDialogPrimitive.Trigger - -const AlertDialogPortal = AlertDialogPrimitive.Portal - -const AlertDialogOverlay = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)) -AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName - -const AlertDialogContent = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - - - - -)) -AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName - -const AlertDialogHeader = ({ - className, - ...props -}: React.HTMLAttributes) => ( -
-) -AlertDialogHeader.displayName = "AlertDialogHeader" - -const AlertDialogFooter = ({ - className, - ...props -}: React.HTMLAttributes) => ( -
-) -AlertDialogFooter.displayName = "AlertDialogFooter" - -const AlertDialogTitle = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)) -AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName - -const AlertDialogDescription = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)) -AlertDialogDescription.displayName = - AlertDialogPrimitive.Description.displayName - -const AlertDialogAction = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)) -AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName - -const AlertDialogCancel = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)) -AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName - -export { - AlertDialog, - AlertDialogPortal, - AlertDialogOverlay, - AlertDialogTrigger, - AlertDialogContent, - AlertDialogHeader, - AlertDialogFooter, - AlertDialogTitle, - AlertDialogDescription, - AlertDialogAction, - AlertDialogCancel, -} diff --git a/packages/canyon-platform/components/ui/alert.tsx b/packages/canyon-platform/components/ui/alert.tsx deleted file mode 100644 index 41fa7e05..00000000 --- a/packages/canyon-platform/components/ui/alert.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import * as React from "react" -import { cva, type VariantProps } from "class-variance-authority" - -import { cn } from "@/lib/utils" - -const alertVariants = cva( - "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", - { - variants: { - variant: { - default: "bg-background text-foreground", - destructive: - "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", - }, - }, - defaultVariants: { - variant: "default", - }, - } -) - -const Alert = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes & VariantProps ->(({ className, variant, ...props }, ref) => ( -
-)) -Alert.displayName = "Alert" - -const AlertTitle = React.forwardRef< - HTMLParagraphElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)) -AlertTitle.displayName = "AlertTitle" - -const AlertDescription = React.forwardRef< - HTMLParagraphElement, - React.HTMLAttributes ->(({ className, ...props }, ref) => ( -
-)) -AlertDescription.displayName = "AlertDescription" - -export { Alert, AlertTitle, AlertDescription } diff --git a/packages/canyon-platform/components/ui/aspect-ratio.tsx b/packages/canyon-platform/components/ui/aspect-ratio.tsx deleted file mode 100644 index d6a5226f..00000000 --- a/packages/canyon-platform/components/ui/aspect-ratio.tsx +++ /dev/null @@ -1,7 +0,0 @@ -"use client" - -import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio" - -const AspectRatio = AspectRatioPrimitive.Root - -export { AspectRatio } diff --git a/packages/canyon-platform/components/ui/avatar.tsx b/packages/canyon-platform/components/ui/avatar.tsx deleted file mode 100644 index 51e507ba..00000000 --- a/packages/canyon-platform/components/ui/avatar.tsx +++ /dev/null @@ -1,50 +0,0 @@ -"use client" - -import * as React from "react" -import * as AvatarPrimitive from "@radix-ui/react-avatar" - -import { cn } from "@/lib/utils" - -const Avatar = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)) -Avatar.displayName = AvatarPrimitive.Root.displayName - -const AvatarImage = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)) -AvatarImage.displayName = AvatarPrimitive.Image.displayName - -const AvatarFallback = React.forwardRef< - React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - -)) -AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName - -export { Avatar, AvatarImage, AvatarFallback } diff --git a/packages/canyon-platform/components/ui/badge.tsx b/packages/canyon-platform/components/ui/badge.tsx deleted file mode 100644 index f000e3ef..00000000 --- a/packages/canyon-platform/components/ui/badge.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import * as React from "react" -import { cva, type VariantProps } from "class-variance-authority" - -import { cn } from "@/lib/utils" - -const badgeVariants = cva( - "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", - { - variants: { - variant: { - default: - "border-transparent bg-primary text-primary-foreground hover:bg-primary/80", - secondary: - "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80", - destructive: - "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80", - outline: "text-foreground", - }, - }, - defaultVariants: { - variant: "default", - }, - } -) - -export interface BadgeProps - extends React.HTMLAttributes, - VariantProps {} - -function Badge({ className, variant, ...props }: BadgeProps) { - return ( -
- ) -} - -export { Badge, badgeVariants } diff --git a/packages/canyon-platform/components/ui/breadcrumb.tsx b/packages/canyon-platform/components/ui/breadcrumb.tsx deleted file mode 100644 index 60e6c96f..00000000 --- a/packages/canyon-platform/components/ui/breadcrumb.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import * as React from "react" -import { Slot } from "@radix-ui/react-slot" -import { ChevronRight, MoreHorizontal } from "lucide-react" - -import { cn } from "@/lib/utils" - -const Breadcrumb = React.forwardRef< - HTMLElement, - React.ComponentPropsWithoutRef<"nav"> & { - separator?: React.ReactNode - } ->(({ ...props }, ref) =>