From f0e3a349ebacf4d57115a67451db5541879c8ec1 Mon Sep 17 00:00:00 2001 From: Jeff Gu Date: Thu, 9 Apr 2026 21:47:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=E6=B7=BB=E5=8A=A0=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=BB=84=E4=BB=B6=E5=B9=B6=E4=BC=98=E5=8C=96=E7=8E=B0?= =?UTF-8?q?=E6=9C=89=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 1 + frontend/src/components/ui/button.tsx | 2 +- frontend/src/components/ui/input.tsx | 2 +- frontend/src/components/ui/select.tsx | 204 +++++++++++++++++++++--- frontend/src/components/ui/textarea.tsx | 2 +- frontend/src/pages/Channels.tsx | 12 +- frontend/src/pages/Pricing.tsx | 19 +-- 7 files changed, 200 insertions(+), 42 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index c8ce1a0..d9c1a4a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -27,6 +27,7 @@ }, "dependencies": { "@radix-ui/react-dialog": "^1.1.15", + "@radix-ui/react-select": "^2.2.6", "@radix-ui/react-slot": "^1.2.4", "@tailwindcss/postcss": "^4.2.2", "@tanstack/react-query": "^5.97.0", diff --git a/frontend/src/components/ui/button.tsx b/frontend/src/components/ui/button.tsx index 58c87eb..a244d96 100644 --- a/frontend/src/components/ui/button.tsx +++ b/frontend/src/components/ui/button.tsx @@ -12,7 +12,7 @@ const buttonVariants = cva( destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90", outline: - "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground hover:border-accent-foreground/20", + "border border-input shadow-sm hover:bg-accent hover:text-accent-foreground hover:border-accent-foreground/20", secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80", ghost: "hover:bg-accent hover:text-accent-foreground", diff --git a/frontend/src/components/ui/input.tsx b/frontend/src/components/ui/input.tsx index 4412396..fb39b91 100644 --- a/frontend/src/components/ui/input.tsx +++ b/frontend/src/components/ui/input.tsx @@ -7,7 +7,7 @@ const Input = React.forwardRef>( ->(({ className, ...props }, ref) => { - return ( -