From 0a5fc0404c974f741a3ae4bb3dc83f33ada27611 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 13 Feb 2025 21:29:22 +0100 Subject: [PATCH] ui --- web/app/components/ui/accordion.tsx | 58 -- web/app/components/ui/alert-dialog.tsx | 141 ---- web/app/components/ui/alert.tsx | 59 -- web/app/components/ui/aspect-ratio.tsx | 7 - web/app/components/ui/avatar.tsx | 50 -- web/app/components/ui/badge.tsx | 36 - web/app/components/ui/breadcrumb.tsx | 115 ---- web/app/components/ui/calendar.tsx | 66 -- web/app/components/ui/card.tsx | 79 --- web/app/components/ui/carousel.tsx | 262 -------- web/app/components/ui/chart.tsx | 365 ----------- web/app/components/ui/checkbox.tsx | 30 - web/app/components/ui/collapsible.tsx | 11 - web/app/components/ui/command.tsx | 153 ----- web/app/components/ui/context-menu.tsx | 200 ------ web/app/components/ui/dialog.tsx | 122 ---- web/app/components/ui/drawer.tsx | 118 ---- web/app/components/ui/dropdown-menu.tsx | 200 ------ web/app/components/ui/form.tsx | 178 ----- web/app/components/ui/hover-card.tsx | 29 - web/app/components/ui/input-otp.tsx | 71 -- web/app/components/ui/input.tsx | 22 - web/app/components/ui/label.tsx | 26 - web/app/components/ui/menubar.tsx | 236 ------- web/app/components/ui/navigation-menu.tsx | 128 ---- web/app/components/ui/pagination.tsx | 117 ---- web/app/components/ui/popover.tsx | 31 - web/app/components/ui/progress.tsx | 28 - web/app/components/ui/radio-group.tsx | 44 -- web/app/components/ui/resizable.tsx | 45 -- web/app/components/ui/scroll-area.tsx | 48 -- web/app/components/ui/select.tsx | 160 ----- web/app/components/ui/separator.tsx | 31 - web/app/components/ui/sheet.tsx | 140 ---- web/app/components/ui/sidebar.tsx | 763 ---------------------- web/app/components/ui/skeleton.tsx | 15 - web/app/components/ui/slider.tsx | 28 - web/app/components/ui/sonner.tsx | 31 - web/app/components/ui/switch.tsx | 29 - web/app/components/ui/table.tsx | 117 ---- web/app/components/ui/tabs.tsx | 55 -- web/app/components/ui/textarea.tsx | 22 - web/app/components/ui/toast.tsx | 129 ---- web/app/components/ui/toaster.tsx | 35 - web/app/components/ui/toggle-group.tsx | 61 -- web/app/components/ui/toggle.tsx | 45 -- web/app/components/ui/tooltip.tsx | 30 - web/app/components/ui/use-mobile.tsx | 19 - web/app/components/ui/use-toast.ts | 194 ------ 49 files changed, 4979 deletions(-) delete mode 100644 web/app/components/ui/accordion.tsx delete mode 100644 web/app/components/ui/alert-dialog.tsx delete mode 100644 web/app/components/ui/alert.tsx delete mode 100644 web/app/components/ui/aspect-ratio.tsx delete mode 100644 web/app/components/ui/avatar.tsx delete mode 100644 web/app/components/ui/badge.tsx delete mode 100644 web/app/components/ui/breadcrumb.tsx delete mode 100644 web/app/components/ui/calendar.tsx delete mode 100644 web/app/components/ui/card.tsx delete mode 100644 web/app/components/ui/carousel.tsx delete mode 100644 web/app/components/ui/chart.tsx delete mode 100644 web/app/components/ui/checkbox.tsx delete mode 100644 web/app/components/ui/collapsible.tsx delete mode 100644 web/app/components/ui/command.tsx delete mode 100644 web/app/components/ui/context-menu.tsx delete mode 100644 web/app/components/ui/dialog.tsx delete mode 100644 web/app/components/ui/drawer.tsx delete mode 100644 web/app/components/ui/dropdown-menu.tsx delete mode 100644 web/app/components/ui/form.tsx delete mode 100644 web/app/components/ui/hover-card.tsx delete mode 100644 web/app/components/ui/input-otp.tsx delete mode 100644 web/app/components/ui/input.tsx delete mode 100644 web/app/components/ui/label.tsx delete mode 100644 web/app/components/ui/menubar.tsx delete mode 100644 web/app/components/ui/navigation-menu.tsx delete mode 100644 web/app/components/ui/pagination.tsx delete mode 100644 web/app/components/ui/popover.tsx delete mode 100644 web/app/components/ui/progress.tsx delete mode 100644 web/app/components/ui/radio-group.tsx delete mode 100644 web/app/components/ui/resizable.tsx delete mode 100644 web/app/components/ui/scroll-area.tsx delete mode 100644 web/app/components/ui/select.tsx delete mode 100644 web/app/components/ui/separator.tsx delete mode 100644 web/app/components/ui/sheet.tsx delete mode 100644 web/app/components/ui/sidebar.tsx delete mode 100644 web/app/components/ui/skeleton.tsx delete mode 100644 web/app/components/ui/slider.tsx delete mode 100644 web/app/components/ui/sonner.tsx delete mode 100644 web/app/components/ui/switch.tsx delete mode 100644 web/app/components/ui/table.tsx delete mode 100644 web/app/components/ui/tabs.tsx delete mode 100644 web/app/components/ui/textarea.tsx delete mode 100644 web/app/components/ui/toast.tsx delete mode 100644 web/app/components/ui/toaster.tsx delete mode 100644 web/app/components/ui/toggle-group.tsx delete mode 100644 web/app/components/ui/toggle.tsx delete mode 100644 web/app/components/ui/tooltip.tsx delete mode 100644 web/app/components/ui/use-mobile.tsx delete mode 100644 web/app/components/ui/use-toast.ts diff --git a/web/app/components/ui/accordion.tsx b/web/app/components/ui/accordion.tsx deleted file mode 100644 index 24c788c..0000000 --- a/web/app/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/web/app/components/ui/alert-dialog.tsx b/web/app/components/ui/alert-dialog.tsx deleted file mode 100644 index 25e7b47..0000000 --- a/web/app/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/web/app/components/ui/alert.tsx b/web/app/components/ui/alert.tsx deleted file mode 100644 index 41fa7e0..0000000 --- a/web/app/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/web/app/components/ui/aspect-ratio.tsx b/web/app/components/ui/aspect-ratio.tsx deleted file mode 100644 index d6a5226..0000000 --- a/web/app/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/web/app/components/ui/avatar.tsx b/web/app/components/ui/avatar.tsx deleted file mode 100644 index 51e507b..0000000 --- a/web/app/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/web/app/components/ui/badge.tsx b/web/app/components/ui/badge.tsx deleted file mode 100644 index f000e3e..0000000 --- a/web/app/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/web/app/components/ui/breadcrumb.tsx b/web/app/components/ui/breadcrumb.tsx deleted file mode 100644 index 60e6c96..0000000 --- a/web/app/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) =>