From 01b546cc816c4fb6b7389e5122b7802d7e724a2b Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Sun, 22 Feb 2026 19:47:13 +0800 Subject: refactor(shadcn): use base lyra instead --- packages/ui-new/components.json | 3 +- packages/ui-new/package.json | 5 +- .../ui-new/src/components/download-monitor.tsx | 1 + packages/ui-new/src/components/ui/badge.tsx | 48 +++--- packages/ui-new/src/components/ui/button.tsx | 44 +++--- packages/ui-new/src/components/ui/card.tsx | 25 ++- packages/ui-new/src/components/ui/checkbox.tsx | 15 +- packages/ui-new/src/components/ui/dialog.tsx | 80 ++++++---- packages/ui-new/src/components/ui/input.tsx | 7 +- packages/ui-new/src/components/ui/label.tsx | 13 +- packages/ui-new/src/components/ui/scroll-area.tsx | 23 ++- packages/ui-new/src/components/ui/select.tsx | 143 +++++++++-------- packages/ui-new/src/components/ui/separator.tsx | 11 +- packages/ui-new/src/components/ui/sonner.tsx | 5 + packages/ui-new/src/components/ui/switch.tsx | 17 +- packages/ui-new/src/components/ui/tabs.tsx | 62 +++++--- packages/ui-new/src/components/ui/textarea.tsx | 2 +- packages/ui-new/src/index.css | 176 +-------------------- packages/ui-new/src/pages/index.tsx | 2 +- packages/ui-new/tsconfig.app.json | 6 +- 20 files changed, 280 insertions(+), 408 deletions(-) (limited to 'packages/ui-new') diff --git a/packages/ui-new/components.json b/packages/ui-new/components.json index 2b0833f..f9d4fcd 100644 --- a/packages/ui-new/components.json +++ b/packages/ui-new/components.json @@ -1,6 +1,6 @@ { "$schema": "https://ui.shadcn.com/schema.json", - "style": "new-york", + "style": "base-lyra", "rsc": false, "tsx": true, "tailwind": { @@ -11,6 +11,7 @@ "prefix": "" }, "iconLibrary": "lucide", + "rtl": false, "aliases": { "components": "@/components", "utils": "@/lib/utils", diff --git a/packages/ui-new/package.json b/packages/ui-new/package.json index 706c12b..fcd6aed 100644 --- a/packages/ui-new/package.json +++ b/packages/ui-new/package.json @@ -10,6 +10,7 @@ "preview": "vite preview" }, "dependencies": { + "@base-ui/react": "^1.2.0", "@radix-ui/react-checkbox": "^1.3.3", "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-label": "^2.1.8", @@ -28,11 +29,12 @@ "lucide-react": "^0.562.0", "marked": "^17.0.1", "next-themes": "^0.4.6", + "radix-ui": "^1.4.3", "react": "^19.2.0", "react-dom": "^19.2.0", "react-router": "^7.12.0", "sonner": "^2.0.7", - "tailwind-merge": "^3.4.0", + "tailwind-merge": "^3.4.1", "zustand": "^5.0.10" }, "devDependencies": { @@ -42,6 +44,7 @@ "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.1.1", "globals": "^16.5.0", + "shadcn": "^3.8.5", "tailwindcss": "^4.1.18", "tw-animate-css": "^1.4.0", "typescript": "~5.9.3", diff --git a/packages/ui-new/src/components/download-monitor.tsx b/packages/ui-new/src/components/download-monitor.tsx index d67e173..f3902d9 100644 --- a/packages/ui-new/src/components/download-monitor.tsx +++ b/packages/ui-new/src/components/download-monitor.tsx @@ -15,6 +15,7 @@ export function DownloadMonitor() { Downloads