From 7bf0984698e43b9aa2dd879f65951318ed410390 Mon Sep 17 00:00:00 2001 From: Maze <167211895+mazeincoding@users.noreply.github.com> Date: Sat, 31 Jan 2026 00:20:04 +0100 Subject: codebase overhaul (#697) --- packages/ui/package.json | 19 ++++++++++++ packages/ui/src/icons/brand.tsx | 67 +++++++++++++++++++++++++++++++++++++++++ packages/ui/src/icons/index.tsx | 2 ++ packages/ui/src/icons/ui.tsx | 32 ++++++++++++++++++++ packages/ui/tsconfig.json | 20 ++++++++++++ 5 files changed, 140 insertions(+) create mode 100644 packages/ui/package.json create mode 100644 packages/ui/src/icons/brand.tsx create mode 100644 packages/ui/src/icons/index.tsx create mode 100644 packages/ui/src/icons/ui.tsx create mode 100644 packages/ui/tsconfig.json (limited to 'packages/ui') diff --git a/packages/ui/package.json b/packages/ui/package.json new file mode 100644 index 00000000..81dbae68 --- /dev/null +++ b/packages/ui/package.json @@ -0,0 +1,19 @@ +{ + "name": "@opencut/ui", + "version": "0.0.0", + "description": "UI package for OpenCut", + "main": "./src/index.ts", + "types": "./src/index.ts", + "exports": { + "./icons": "./src/icons/index.tsx" + }, + "dependencies": { + "@iconify/react": "^6.0.2", + "@types/react": "^19.2.7", + "react": "^19.2.0" + }, + "devDependencies": { + "@types/bun": "latest", + "typescript": "^5.8.3" + } +} diff --git a/packages/ui/src/icons/brand.tsx b/packages/ui/src/icons/brand.tsx new file mode 100644 index 00000000..26aabf86 --- /dev/null +++ b/packages/ui/src/icons/brand.tsx @@ -0,0 +1,67 @@ +export function OcVercelIcon({ className }: { className?: string }) { + return ( + + Vercel + + + ); +} + +export function OcMarbleIcon({ + className = "", + size = 32, +}: { + className?: string; + size?: number; +}) { + return ( + + Marble + + + + ); +} + +export function OcDataBuddyIcon({ + className = "", + size = 32, +}: { + className?: string; + size?: number; +}) { + return ( + + Data Buddy + + + + ); +} diff --git a/packages/ui/src/icons/index.tsx b/packages/ui/src/icons/index.tsx new file mode 100644 index 00000000..2203b633 --- /dev/null +++ b/packages/ui/src/icons/index.tsx @@ -0,0 +1,2 @@ +export * from "./brand"; +export * from "./ui"; diff --git a/packages/ui/src/icons/ui.tsx b/packages/ui/src/icons/ui.tsx new file mode 100644 index 00000000..60231c33 --- /dev/null +++ b/packages/ui/src/icons/ui.tsx @@ -0,0 +1,32 @@ +export function OcVideoIcon({ + className = "", + size = 32, +}: { + className?: string; + size?: number; +}) { + return ( + + Video + + + + ); +} diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json new file mode 100644 index 00000000..d179b7d1 --- /dev/null +++ b/packages/ui/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2020", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src/**/*"], + "exclude": ["node_modules"] +} -- cgit v1.3.1