From 3f47c62423bf05c8654c94066a99bbb553648165 Mon Sep 17 00:00:00 2001 From: Amelia-Shin Date: Tue, 12 Aug 2025 19:08:42 +0900 Subject: [PATCH 01/34] =?UTF-8?q?feat:=20shared=20=EB=82=B4=EB=B6=80?= =?UTF-8?q?=EC=97=90=20UI=20=EA=B4=80=EB=A0=A8=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/index.tsx | 214 --------------------------------- src/pages/PostsManagerPage.tsx | 7 +- src/shared/ui/Button.tsx | 41 +++++++ src/shared/ui/Card.tsx | 25 ++++ src/shared/ui/Dialog.tsx | 49 ++++++++ src/shared/ui/Input.tsx | 16 +++ src/shared/ui/Select.tsx | 55 +++++++++ src/shared/ui/Table.tsx | 57 +++++++++ src/shared/ui/Textarea.tsx | 14 +++ src/shared/ui/index.ts | 7 ++ 10 files changed, 268 insertions(+), 217 deletions(-) delete mode 100644 src/components/index.tsx create mode 100644 src/shared/ui/Button.tsx create mode 100644 src/shared/ui/Card.tsx create mode 100644 src/shared/ui/Dialog.tsx create mode 100644 src/shared/ui/Input.tsx create mode 100644 src/shared/ui/Select.tsx create mode 100644 src/shared/ui/Table.tsx create mode 100644 src/shared/ui/Textarea.tsx create mode 100644 src/shared/ui/index.ts diff --git a/src/components/index.tsx b/src/components/index.tsx deleted file mode 100644 index 8495817d3..000000000 --- a/src/components/index.tsx +++ /dev/null @@ -1,214 +0,0 @@ -import * as React from "react" -import { forwardRef } from "react" -import * as SelectPrimitive from "@radix-ui/react-select" -import * as DialogPrimitive from "@radix-ui/react-dialog" -import { Check, ChevronDown, X } from "lucide-react" -import { cva, VariantProps } from "class-variance-authority" - -const buttonVariants = cva( - "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background", - { - variants: { - variant: { - default: "bg-blue-500 text-white hover:bg-blue-600", - destructive: "bg-red-500 text-white hover:bg-red-600", - outline: "border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-100", - secondary: "bg-gray-200 text-gray-800 hover:bg-gray-300", - ghost: "bg-transparent text-gray-700 hover:bg-gray-100", - link: "underline-offset-4 hover:underline text-blue-500", - }, - size: { - default: "h-10 py-2 px-4", - sm: "h-8 px-3 rounded-md text-xs", - lg: "h-11 px-8 rounded-md", - icon: "h-9 w-9", - }, - }, - defaultVariants: { - variant: "default", - size: "default", - }, - }, -) - -interface ButtonProps extends React.ButtonHTMLAttributes, VariantProps { - className?: string -} - -export const Button = forwardRef(({ className, variant, size, ...props }, ref) => { - return