diff --git a/package.json b/package.json index c4edb928f5..90ea0d2008 100644 --- a/package.json +++ b/package.json @@ -85,6 +85,7 @@ "@libsql/client": "0.14.0", "@libsql/win32-x64-msvc": "^0.4.7", "@napi-rs/system-ocr": "patch:@napi-rs/system-ocr@npm%3A1.0.2#~/.yarn/patches/@napi-rs-system-ocr-npm-1.0.2-59e7a78e8b.patch", + "@radix-ui/react-tabs": "^1.1.13", "@strongtz/win32-arm64-msvc": "^0.4.7", "express": "^5.1.0", "font-list": "^2.0.0", diff --git a/packages/ui/src/components/index.ts b/packages/ui/src/components/index.ts index 5450057319..a9014d9578 100644 --- a/packages/ui/src/components/index.ts +++ b/packages/ui/src/components/index.ts @@ -97,3 +97,4 @@ export * from './ui/command' export * from './ui/dialog' export * from './ui/popover' export * from './ui/shadcn-io/dropzone' +export * from './ui/shadcn-io/tabs' diff --git a/packages/ui/src/components/ui/shadcn-io/tabs/index.tsx b/packages/ui/src/components/ui/shadcn-io/tabs/index.tsx new file mode 100644 index 0000000000..322e28bded --- /dev/null +++ b/packages/ui/src/components/ui/shadcn-io/tabs/index.tsx @@ -0,0 +1,39 @@ +import { cn } from '@cherrystudio/ui/utils' +import * as TabsPrimitive from '@radix-ui/react-tabs' +import * as React from 'react' + +function Tabs({ className, ...props }: React.ComponentProps) { + return +} + +function TabsList({ className, ...props }: React.ComponentProps) { + return ( + + ) +} + +function TabsTrigger({ className, ...props }: React.ComponentProps) { + return ( + + ) +} + +function TabsContent({ className, ...props }: React.ComponentProps) { + return +} + +export { Tabs, TabsContent, TabsList, TabsTrigger } diff --git a/yarn.lock b/yarn.lock index a149286a4a..a740d0c014 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7394,6 +7394,32 @@ __metadata: languageName: node linkType: hard +"@radix-ui/react-tabs@npm:^1.1.13": + version: 1.1.13 + resolution: "@radix-ui/react-tabs@npm:1.1.13" + dependencies: + "@radix-ui/primitive": "npm:1.1.3" + "@radix-ui/react-context": "npm:1.1.2" + "@radix-ui/react-direction": "npm:1.1.1" + "@radix-ui/react-id": "npm:1.1.1" + "@radix-ui/react-presence": "npm:1.1.5" + "@radix-ui/react-primitive": "npm:2.1.3" + "@radix-ui/react-roving-focus": "npm:1.1.11" + "@radix-ui/react-use-controllable-state": "npm:1.2.2" + peerDependencies: + "@types/react": "*" + "@types/react-dom": "*" + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + checksum: 10c0/a3c78cd8c30dcb95faf1605a8424a1a71dab121dfa6e9c0019bb30d0f36d882762c925b17596d4977990005a255d8ddc0b7454e4f83337fe557b45570a2d8058 + languageName: node + linkType: hard + "@radix-ui/react-use-callback-ref@npm:1.1.1": version: 1.1.1 resolution: "@radix-ui/react-use-callback-ref@npm:1.1.1" @@ -13020,6 +13046,7 @@ __metadata: "@opeoginni/github-copilot-openai-compatible": "patch:@opeoginni/github-copilot-openai-compatible@npm%3A0.1.18#~/.yarn/patches/@opeoginni-github-copilot-openai-compatible-npm-0.1.18-3f65760532.patch" "@playwright/test": "npm:^1.52.0" "@radix-ui/react-context-menu": "npm:^2.2.16" + "@radix-ui/react-tabs": "npm:^1.1.13" "@reduxjs/toolkit": "npm:^2.2.5" "@shikijs/markdown-it": "npm:^3.12.0" "@strongtz/win32-arm64-msvc": "npm:^0.4.7"