Speed up downloads by combining multiple network connections in parallel
TypeScript bandwidth-aggregationcross-platformdesktop-appdownloaderdownloadmanagerlinuxmacosmulticonnectionparallel-downloadswindows
Set up Tailwind CSS v4 and shadcn/ui (Base UI) for the renderer
Anmol Kapilaeb3b6c8140e
diff --git a/components.json b/components.jsonnew file mode 100644index 0000000..6072373--- /dev/null+++ b/components.json@@ -0,0 +1,21 @@+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "base-nova",+ "rsc": false,+ "tsx": true,+ "tailwind": {+ "config": "",+ "css": "src/renderer/src/assets/main.css",+ "baseColor": "neutral",+ "cssVariables": true,+ "prefix": ""+ },+ "iconLibrary": "lucide",+ "aliases": {+ "components": "@renderer/components",+ "utils": "@renderer/lib/utils",+ "ui": "@renderer/components/ui",+ "lib": "@renderer/lib",+ "hooks": "@renderer/hooks"+ }+}diff --git a/electron.vite.config.ts b/electron.vite.config.tsindex b607844..94aecdf 100644--- a/electron.vite.config.ts+++ b/electron.vite.config.ts@@ -1,6 +1,7 @@import { resolve } from 'path'import { defineConfig } from 'electron-vite'import react from '@vitejs/plugin-react'+import tailwindcss from '@tailwindcss/vite'export default defineConfig({main: {@@ -24,6 +25,6 @@ export default defineConfig({'@shared': resolve('src/shared')}},- plugins: [react()]+ plugins: [react(), tailwindcss()]}})diff --git a/package-lock.json b/package-lock.jsonindex ffea37c..ecfa9a9 100644--- a/package-lock.json+++ b/package-lock.json@@ -9,14 +9,19 @@"version": "1.0.0","hasInstallScript": true,"dependencies": {+ "@base-ui/react": "^1.8.0","@electron-toolkit/preload": "^3.0.2","@electron-toolkit/utils": "^4.0.0",+ "class-variance-authority": "^0.7.1",+ "cn": "^0.3.0",+ "lucide-react": "^1.47.0","zustand": "^5.0.15"},"devDependencies": {"@electron-toolkit/eslint-config-prettier": "^3.0.0","@electron-toolkit/eslint-config-ts": "^3.1.0","@electron-toolkit/tsconfig": "^2.0.0",+ "@tailwindcss/vite": "^4.3.3","@types/node": "^22.19.1","@types/react": "^19.2.7","@types/react-dom": "^19.2.3",@@ -31,6 +36,7 @@"prettier": "^3.7.4","react": "^19.2.1","react-dom": "^19.2.1",+ "tailwindcss": "^4.3.3","typescript": "^5.9.3","vite": "^7.2.6"}@@ -285,6 +291,15 @@"@babel/core": "^7.0.0-0"}},+ "node_modules/@babel/runtime": {+ "version": "7.29.7",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz",+ "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },"node_modules/@babel/template": {"version": "7.29.7","resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",@@ -333,6 +348,66 @@"node": ">=6.9.0"}},+ "node_modules/@base-ui/react": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@base-ui/react/-/react-1.8.0.tgz",+ "integrity": "sha512-P0/1sxo6SBVZOklKMIedvTWqw2s2IQzi9x5bIVsXu980cuSOD4NeuRSs+/L7LZQfDkZP/uRZyGPyfFl/B1oH+Q==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.29.7",+ "@base-ui/utils": "0.4.0",+ "@floating-ui/react-dom": "^2.1.9",+ "@floating-ui/utils": "^0.2.12",+ "use-sync-external-store": "^1.6.0"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/mui-org"+ },+ "peerDependencies": {+ "@date-fns/tz": "^1.2.0",+ "@types/react": "^17 || ^18 || ^19",+ "date-fns": "^4.0.0",+ "react": "^17 || ^18 || ^19",+ "react-dom": "^17 || ^18 || ^19"+ },+ "peerDependenciesMeta": {+ "@date-fns/tz": {+ "optional": true+ },+ "@types/react": {+ "optional": true+ },+ "date-fns": {+ "optional": true+ }+ }+ },+ "node_modules/@base-ui/utils": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/@base-ui/utils/-/utils-0.4.0.tgz",+ "integrity": "sha512-bO9fz25kKtPf+aZVyfQrC0PDmJdmVni31W2hCS5/Owb+inwdIL3XU26pCPRPlt4LSxZrBgLwubXQXQlKaFEZzw==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.29.7",+ "@floating-ui/utils": "^0.2.12",+ "reselect": "^5.2.0",+ "use-sync-external-store": "^1.6.0"+ },+ "peerDependencies": {+ "@types/react": "^17 || ^18 || ^19",+ "react": "^17 || ^18 || ^19",+ "react-dom": "^17 || ^18 || ^19"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/@electron-toolkit/eslint-config-prettier": {"version": "3.0.0","resolved": "https://registry.npmjs.org/@electron-toolkit/eslint-config-prettier/-/eslint-config-prettier-3.0.0.tgz",@@ -1510,6 +1585,44 @@"node": "^18.18.0 || ^20.9.0 || >=21.1.0"}},+ "node_modules/@floating-ui/core": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz",+ "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/utils": "^0.2.12"+ }+ },+ "node_modules/@floating-ui/dom": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz",+ "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/core": "^1.8.0",+ "@floating-ui/utils": "^0.2.12"+ }+ },+ "node_modules/@floating-ui/react-dom": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.9.tgz",+ "integrity": "sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/dom": "^1.8.0"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@floating-ui/utils": {+ "version": "0.2.12",+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz",+ "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",+ "license": "MIT"+ },"node_modules/@humanfs/core": {"version": "0.19.2","resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",@@ -2196,6 +2309,290 @@"node": ">=10"}},+ "node_modules/@tailwindcss/node": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz",+ "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/remapping": "^2.3.5",+ "enhanced-resolve": "^5.24.1",+ "jiti": "^2.7.0",+ "lightningcss": "1.32.0",+ "magic-string": "^0.30.21",+ "source-map-js": "^1.2.1",+ "tailwindcss": "4.3.3"+ }+ },+ "node_modules/@tailwindcss/oxide": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz",+ "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 20"+ },+ "optionalDependencies": {+ "@tailwindcss/oxide-android-arm64": "4.3.3",+ "@tailwindcss/oxide-darwin-arm64": "4.3.3",+ "@tailwindcss/oxide-darwin-x64": "4.3.3",+ "@tailwindcss/oxide-freebsd-x64": "4.3.3",+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3",+ "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3",+ "@tailwindcss/oxide-linux-arm64-musl": "4.3.3",+ "@tailwindcss/oxide-linux-x64-gnu": "4.3.3",+ "@tailwindcss/oxide-linux-x64-musl": "4.3.3",+ "@tailwindcss/oxide-wasm32-wasi": "4.3.3",+ "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3",+ "@tailwindcss/oxide-win32-x64-msvc": "4.3.3"+ }+ },+ "node_modules/@tailwindcss/oxide-android-arm64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz",+ "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-arm64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz",+ "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-darwin-x64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz",+ "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-freebsd-x64": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz",+ "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz",+ "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz",+ "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz",+ "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz",+ "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz",+ "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz",+ "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==",+ "bundleDependencies": [+ "@napi-rs/wasm-runtime",+ "@emnapi/core",+ "@emnapi/runtime",+ "@tybys/wasm-util",+ "@emnapi/wasi-threads",+ "tslib"+ ],+ "cpu": [+ "wasm32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/core": "^1.11.1",+ "@emnapi/runtime": "^1.11.1",+ "@emnapi/wasi-threads": "^1.2.2",+ "@napi-rs/wasm-runtime": "^1.1.4",+ "@tybys/wasm-util": "^0.10.2",+ "tslib": "^2.8.1"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",+ "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz",+ "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/@tailwindcss/vite": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz",+ "integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@tailwindcss/node": "4.3.3",+ "@tailwindcss/oxide": "4.3.3",+ "tailwindcss": "4.3.3"+ },+ "peerDependencies": {+ "vite": "^5.2.0 || ^6 || ^7 || ^8"+ }+ },"node_modules/@types/babel__core": {"version": "7.20.5","resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",@@ -3506,6 +3903,18 @@"node": ">=8"}},+ "node_modules/class-variance-authority": {+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",+ "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",+ "license": "Apache-2.0",+ "dependencies": {+ "clsx": "^2.1.1"+ },+ "funding": {+ "url": "https://polar.sh/cva"+ }+ },"node_modules/cliui": {"version": "8.0.1","resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",@@ -3533,6 +3942,27 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/cn": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/cn/-/cn-0.3.0.tgz",+ "integrity": "sha512-qRoU0ARrZD3Bbj1wKFftEKxPjSnzTEdFkf22NVhW+zU9D/wajhoP+qUZ5DChhhSOBCH1onV12hrmGqfu1+5Z2Q==",+ "license": "MIT",+ "bin": {+ "cn": "bin/cn.mjs"+ },+ "engines": {+ "node": ">=20"+ }+ },"node_modules/color-convert": {"version": "2.0.1","resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",@@ -3821,6 +4251,16 @@"node": ">=0.4.0"}},+ "node_modules/detect-libc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/detect-node": {"version": "2.1.0","resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz",@@ -4246,6 +4686,20 @@"once": "^1.4.0"}},+ "node_modules/enhanced-resolve": {+ "version": "5.25.1",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.25.1.tgz",+ "integrity": "sha512-nGXts5znJzmWPu+mIE9izCOzdg63oJca2mDzGWWTth7sr4aCToKcoyFVBQwN75Ij5Pf6p510EwkTqViTRzDV+w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.3.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },"node_modules/env-paths": {"version": "2.2.1","resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",@@ -6344,6 +6798,279 @@"node": ">= 0.8.0"}},+ "node_modules/lightningcss": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",+ "dev": true,+ "license": "MPL-2.0",+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "optionalDependencies": {+ "lightningcss-android-arm64": "1.32.0",+ "lightningcss-darwin-arm64": "1.32.0",+ "lightningcss-darwin-x64": "1.32.0",+ "lightningcss-freebsd-x64": "1.32.0",+ "lightningcss-linux-arm-gnueabihf": "1.32.0",+ "lightningcss-linux-arm64-gnu": "1.32.0",+ "lightningcss-linux-arm64-musl": "1.32.0",+ "lightningcss-linux-x64-gnu": "1.32.0",+ "lightningcss-linux-x64-musl": "1.32.0",+ "lightningcss-win32-arm64-msvc": "1.32.0",+ "lightningcss-win32-x64-msvc": "1.32.0"+ }+ },+ "node_modules/lightningcss-android-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-arm64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-darwin-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-freebsd-x64": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm-gnueabihf": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-arm64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-gnu": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-linux-x64-musl": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-arm64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.32.0",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },"node_modules/locate-path": {"version": "6.0.0","resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",@@ -6406,6 +7133,15 @@"yallist": "^3.0.2"}},+ "node_modules/lucide-react": {+ "version": "1.47.0",+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.47.0.tgz",+ "integrity": "sha512-o8C23aXpNQypRY73W7fW02EyvWJinEMXgKeGjFoKym0zj3Q73hD97A1IQps1g8C14HTGsOpZL0Am+xjfgFZAbg==",+ "license": "ISC",+ "peerDependencies": {+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },"node_modules/magic-string": {"version": "0.30.21","resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",@@ -7316,7 +8052,6 @@"version": "19.3.0","resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz","integrity": "sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==",- "devOptional": true,"license": "MIT","engines": {"node": ">=0.10.0"@@ -7326,7 +8061,6 @@"version": "19.3.0","resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.0.tgz","integrity": "sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==",- "dev": true,"license": "MIT","dependencies": {"scheduler": "^0.28.0"@@ -7470,6 +8204,12 @@"url": "https://github.com/sponsors/jet2jet"}},+ "node_modules/reselect": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.3.0.tgz",+ "integrity": "sha512-XGoLeRAVzUTcJ1qkxPQhDJyIZ5d6zzZD9nT7AEZOaaU9UbWclhycElmhO+VD5bFeLuzhPBaOV2oXC8uG35ZSpg==",+ "license": "MIT"+ },"node_modules/resolve": {"version": "2.0.0-next.7","resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.7.tgz",@@ -7697,7 +8437,6 @@"version": "0.28.0","resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz","integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",- "dev": true,"license": "MIT"},"node_modules/semver": {@@ -8179,6 +8918,27 @@"url": "https://opencollective.com/synckit"}},+ "node_modules/tailwindcss": {+ "version": "4.3.3",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz",+ "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tapable": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ }+ },"node_modules/tar": {"version": "7.5.22","resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz",@@ -8636,6 +9396,15 @@"punycode": "^2.1.0"}},+ "node_modules/use-sync-external-store": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.7.0.tgz",+ "integrity": "sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },"node_modules/utf8-byte-length": {"version": "1.0.5","resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz",diff --git a/package.json b/package.jsonindex 285d0dd..f4666ba 100644--- a/package.json+++ b/package.json@@ -21,14 +21,19 @@"build:linux": "electron-vite build && electron-builder --linux"},"dependencies": {+ "@base-ui/react": "^1.8.0","@electron-toolkit/preload": "^3.0.2","@electron-toolkit/utils": "^4.0.0",+ "class-variance-authority": "^0.7.1",+ "cn": "^0.3.0",+ "lucide-react": "^1.47.0","zustand": "^5.0.15"},"devDependencies": {"@electron-toolkit/eslint-config-prettier": "^3.0.0","@electron-toolkit/eslint-config-ts": "^3.1.0","@electron-toolkit/tsconfig": "^2.0.0",+ "@tailwindcss/vite": "^4.3.3","@types/node": "^22.19.1","@types/react": "^19.2.7","@types/react-dom": "^19.2.3",@@ -43,6 +48,7 @@"prettier": "^3.7.4","react": "^19.2.1","react-dom": "^19.2.1",+ "tailwindcss": "^4.3.3","typescript": "^5.9.3","vite": "^7.2.6"},diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsxindex 0e22017..bcfd8d4 100644--- a/src/renderer/src/App.tsx+++ b/src/renderer/src/App.tsx@@ -1,6 +1,7 @@import { useEffect } from 'react'import { DevToolsPanel } from './components/DevToolsPanel'import { TitleBar, type TitleBarStatus } from './components/TitleBar'+import { TooltipProvider } from './components/ui/tooltip'import { useDownloadEvents } from './hooks/useDownloadEvents'import { CompleteScreen } from './screens/CompleteScreen'import { DownloadingScreen } from './screens/DownloadingScreen'@@ -81,11 +82,13 @@ function App(): React.JSX.Element {}return (- <div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>- <TitleBar status={titleBarStatus} />- <div style={{ flex: 1, minHeight: 0 }}>{screen}</div>- <DevToolsPanel />- </div>+ <TooltipProvider>+ <div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>+ <TitleBar status={titleBarStatus} />+ <div style={{ flex: 1, minHeight: 0 }}>{screen}</div>+ <DevToolsPanel />+ </div>+ </TooltipProvider>)}diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.cssindex b5915e6..8cf2a93 100644--- a/src/renderer/src/assets/main.css+++ b/src/renderer/src/assets/main.css@@ -1,3 +1,5 @@+@import 'tailwindcss';+@font-face {font-family: 'Manrope';font-style: normal;@@ -86,6 +88,44 @@/* Throughput chart's total-line color — the merge node's tone from the app icon, not rawtext-black, so the outline reads as part of the brand instead of a harsh axis line. */--node-accent: #5f6e78;++ /* Shared corner radius for shadcn/Base UI components — matches the 8px most hand-styled+ buttons/cards already use (see theme.ts), so new and existing components read as one system. */+ --radius: 8px;+}++/* Maps shadcn/Base UI's expected semantic tokens onto Plexo's existing palette above, instead of+ introducing a second, parallel color system. Tailwind only generates `bg-primary`-style+ utilities for names declared here, in `@theme` — so this can freely reuse Plexo's own custom+ property *values* (e.g. --color-accent) without colliding with their names, since only the+ left-hand names below become Tailwind tokens. */+@theme inline {+ --font-sans: 'Manrope', -apple-system, 'SF Pro Text', 'Helvetica Neue', Helvetica, sans-serif;+ --font-mono: 'Roboto Mono', 'SF Mono', ui-monospace, Menlo, monospace;++ --color-background: var(--bg);+ --color-foreground: var(--text);+ --color-card: var(--bg-secondary);+ --color-card-foreground: var(--text);+ --color-popover: var(--bg-secondary);+ --color-popover-foreground: var(--text);+ --color-primary: var(--color-accent);+ --color-primary-foreground: var(--color-accent-onsolid);+ --color-secondary: var(--bg-tertiary);+ --color-secondary-foreground: var(--text);+ --color-muted: var(--track-bg);+ --color-muted-foreground: var(--text-tertiary);+ --color-destructive: var(--color-danger);+ --color-border: var(--border);+ /* Not --input-bg: that's a fill color (white in light mode), invisible as a stroke.+ border-input needs an actual visible border tone. */+ --color-input: var(--border-strong);+ --color-ring: var(--color-accent);++ --radius-sm: calc(var(--radius) * 0.6);+ --radius-md: calc(var(--radius) * 0.8);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) * 1.4);}@media (prefers-color-scheme: dark) {diff --git a/src/renderer/src/components/ui/alert.tsx b/src/renderer/src/components/ui/alert.tsxnew file mode 100644index 0000000..14e88b2--- /dev/null+++ b/src/renderer/src/components/ui/alert.tsx@@ -0,0 +1,68 @@+import * as React from 'react'+import { cva, type VariantProps } from 'class-variance-authority'+import { cn } from 'cn'++const alertVariants = cva(+ "group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",+ {+ variants: {+ variant: {+ default: 'bg-card text-card-foreground',+ destructive:+ 'bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current'+ }+ },+ defaultVariants: {+ variant: 'default'+ }+ }+)++function Alert({+ className,+ variant,+ ...props+}: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): React.JSX.Element {+ return (+ <div+ data-slot="alert"+ role="alert"+ className={cn(alertVariants({ variant }), className)}+ {...props}+ />+ )+}++function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element {+ return (+ <div+ data-slot="alert-title"+ className={cn(+ 'font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground',+ className+ )}+ {...props}+ />+ )+}++function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element {+ return (+ <div+ data-slot="alert-description"+ className={cn(+ 'text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4',+ className+ )}+ {...props}+ />+ )+}++function AlertAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element {+ return (+ <div data-slot="alert-action" className={cn('absolute top-2 right-2', className)} {...props} />+ )+}++export { Alert, AlertTitle, AlertDescription, AlertAction }diff --git a/src/renderer/src/components/ui/badge.tsx b/src/renderer/src/components/ui/badge.tsxnew file mode 100644index 0000000..4551362--- /dev/null+++ b/src/renderer/src/components/ui/badge.tsx@@ -0,0 +1,50 @@+import { mergeProps } from '@base-ui/react/merge-props'+import { useRender } from '@base-ui/react/use-render'+import { cva, type VariantProps } from 'class-variance-authority'+import { cn } from 'cn'++const badgeVariants = cva(+ 'group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!',+ {+ variants: {+ variant: {+ default: 'bg-primary text-primary-foreground [a]:hover:bg-primary/80',+ secondary: 'bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80',+ destructive:+ 'bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20',+ outline: 'border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',+ ghost: 'hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50',+ link: 'text-primary underline-offset-4 hover:underline'+ }+ },+ defaultVariants: {+ variant: 'default'+ }+ }+)++function Badge({+ className,+ variant = 'default',+ render,+ ...props+}: useRender.ComponentProps<'span'> & VariantProps<typeof badgeVariants>): React.JSX.Element {+ return useRender({+ defaultTagName: 'span',+ props: mergeProps<'span'>(+ {+ className: cn(badgeVariants({ variant }), className)+ },+ props+ ),+ render,+ state: {+ slot: 'badge',+ variant+ }+ })+}++export { Badge }+// eslint-disable-next-line react-refresh/only-export-components -- shadcn convention: variants ship alongside the component+export { badgeVariants }diff --git a/src/renderer/src/components/ui/button.tsx b/src/renderer/src/components/ui/button.tsxnew file mode 100644index 0000000..a073e30--- /dev/null+++ b/src/renderer/src/components/ui/button.tsx@@ -0,0 +1,59 @@+import { Button as ButtonPrimitive } from '@base-ui/react/button'+import { cva, type VariantProps } from 'class-variance-authority'+import { cn } from 'cn'++const buttonVariants = cva(+ "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ {+ variants: {+ variant: {+ default: 'bg-primary text-primary-foreground hover:bg-primary/80',+ outline:+ 'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',+ secondary:+ 'bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',+ ghost:+ 'hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50',+ destructive:+ 'bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40',+ link: 'text-primary underline-offset-4 hover:underline'+ },+ size: {+ default:+ 'h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",+ lg: 'h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',+ icon: 'size-8',+ 'icon-xs':+ "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",+ 'icon-sm':+ 'size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg',+ 'icon-lg': 'size-9'+ }+ },+ defaultVariants: {+ variant: 'default',+ size: 'default'+ }+ }+)++function Button({+ className,+ variant = 'default',+ size = 'default',+ ...props+}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>): React.JSX.Element {+ return (+ <ButtonPrimitive+ data-slot="button"+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ />+ )+}++export { Button }+// eslint-disable-next-line react-refresh/only-export-components -- shadcn convention: variants ship alongside the component+export { buttonVariants }diff --git a/src/renderer/src/components/ui/checkbox.tsx b/src/renderer/src/components/ui/checkbox.tsxnew file mode 100644index 0000000..b4c81d9--- /dev/null+++ b/src/renderer/src/components/ui/checkbox.tsx@@ -0,0 +1,25 @@+import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox'+import { cn } from 'cn'+import { CheckIcon } from 'lucide-react'++function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props): React.JSX.Element {+ return (+ <CheckboxPrimitive.Root+ data-slot="checkbox"+ className={cn(+ 'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary',+ className+ )}+ {...props}+ >+ <CheckboxPrimitive.Indicator+ data-slot="checkbox-indicator"+ className="grid place-content-center text-current transition-none [&>svg]:size-3.5"+ >+ <CheckIcon />+ </CheckboxPrimitive.Indicator>+ </CheckboxPrimitive.Root>+ )+}++export { Checkbox }diff --git a/src/renderer/src/components/ui/input.tsx b/src/renderer/src/components/ui/input.tsxnew file mode 100644index 0000000..6aa1183--- /dev/null+++ b/src/renderer/src/components/ui/input.tsx@@ -0,0 +1,19 @@+import * as React from 'react'+import { Input as InputPrimitive } from '@base-ui/react/input'+import { cn } from 'cn'++function Input({ className, type, ...props }: React.ComponentProps<'input'>): React.JSX.Element {+ return (+ <InputPrimitive+ type={type}+ data-slot="input"+ className={cn(+ 'h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',+ className+ )}+ {...props}+ />+ )+}++export { Input }diff --git a/src/renderer/src/components/ui/popover.tsx b/src/renderer/src/components/ui/popover.tsxnew file mode 100644index 0000000..b20fa57--- /dev/null+++ b/src/renderer/src/components/ui/popover.tsx@@ -0,0 +1,80 @@+import * as React from 'react'+import { Popover as PopoverPrimitive } from '@base-ui/react/popover'+import { cn } from 'cn'++function Popover({ ...props }: PopoverPrimitive.Root.Props): React.JSX.Element {+ return <PopoverPrimitive.Root data-slot="popover" {...props} />+}++function PopoverTrigger({ ...props }: PopoverPrimitive.Trigger.Props): React.JSX.Element {+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />+}++function PopoverContent({+ className,+ align = 'center',+ alignOffset = 0,+ side = 'bottom',+ sideOffset = 4,+ ...props+}: PopoverPrimitive.Popup.Props &+ Pick<+ PopoverPrimitive.Positioner.Props,+ 'align' | 'alignOffset' | 'side' | 'sideOffset'+ >): React.JSX.Element {+ return (+ <PopoverPrimitive.Portal>+ <PopoverPrimitive.Positioner+ align={align}+ alignOffset={alignOffset}+ side={side}+ sideOffset={sideOffset}+ className="isolate z-50"+ >+ <PopoverPrimitive.Popup+ data-slot="popover-content"+ className={cn(+ 'z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',+ className+ )}+ {...props}+ />+ </PopoverPrimitive.Positioner>+ </PopoverPrimitive.Portal>+ )+}++function PopoverHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element {+ return (+ <div+ data-slot="popover-header"+ className={cn('flex flex-col gap-0.5 text-sm', className)}+ {...props}+ />+ )+}++function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props): React.JSX.Element {+ return (+ <PopoverPrimitive.Title+ data-slot="popover-title"+ className={cn('font-medium', className)}+ {...props}+ />+ )+}++function PopoverDescription({+ className,+ ...props+}: PopoverPrimitive.Description.Props): React.JSX.Element {+ return (+ <PopoverPrimitive.Description+ data-slot="popover-description"+ className={cn('text-muted-foreground', className)}+ {...props}+ />+ )+}++export { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger }diff --git a/src/renderer/src/components/ui/toggle-group.tsx b/src/renderer/src/components/ui/toggle-group.tsxnew file mode 100644index 0000000..7ab2456--- /dev/null+++ b/src/renderer/src/components/ui/toggle-group.tsx@@ -0,0 +1,85 @@+import * as React from 'react'+import { Toggle as TogglePrimitive } from '@base-ui/react/toggle'+import { ToggleGroup as ToggleGroupPrimitive } from '@base-ui/react/toggle-group'+import { type VariantProps } from 'class-variance-authority'+import { cn } from 'cn'++import { toggleVariants } from '@renderer/components/ui/toggle'++const ToggleGroupContext = React.createContext<+ VariantProps<typeof toggleVariants> & {+ spacing?: number+ orientation?: 'horizontal' | 'vertical'+ }+>({+ size: 'default',+ variant: 'default',+ spacing: 2,+ orientation: 'horizontal'+})++function ToggleGroup({+ className,+ variant,+ size,+ spacing = 2,+ orientation = 'horizontal',+ children,+ ...props+}: ToggleGroupPrimitive.Props &+ VariantProps<typeof toggleVariants> & {+ spacing?: number+ orientation?: 'horizontal' | 'vertical'+ }): React.JSX.Element {+ return (+ <ToggleGroupPrimitive+ data-slot="toggle-group"+ data-variant={variant}+ data-size={size}+ data-spacing={spacing}+ data-orientation={orientation}+ style={{ '--gap': spacing } as React.CSSProperties}+ className={cn(+ 'group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch',+ className+ )}+ {...props}+ >+ <ToggleGroupContext.Provider value={{ variant, size, spacing, orientation }}>+ {children}+ </ToggleGroupContext.Provider>+ </ToggleGroupPrimitive>+ )+}++function ToggleGroupItem({+ className,+ children,+ variant = 'default',+ size = 'default',+ ...props+}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>): React.JSX.Element {+ const context = React.useContext(ToggleGroupContext)++ return (+ <TogglePrimitive+ data-slot="toggle-group-item"+ data-variant={context.variant || variant}+ data-size={context.size || size}+ data-spacing={context.spacing}+ className={cn(+ 'shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t',+ toggleVariants({+ variant: context.variant || variant,+ size: context.size || size+ }),+ className+ )}+ {...props}+ >+ {children}+ </TogglePrimitive>+ )+}++export { ToggleGroup, ToggleGroupItem }diff --git a/src/renderer/src/components/ui/toggle.tsx b/src/renderer/src/components/ui/toggle.tsxnew file mode 100644index 0000000..b3a7320--- /dev/null+++ b/src/renderer/src/components/ui/toggle.tsx@@ -0,0 +1,44 @@+import { Toggle as TogglePrimitive } from '@base-ui/react/toggle'+import { cva, type VariantProps } from 'class-variance-authority'+import { cn } from 'cn'++const toggleVariants = cva(+ "group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ {+ variants: {+ variant: {+ default: 'bg-transparent',+ outline: 'border border-input bg-transparent hover:bg-muted'+ },+ size: {+ default:+ 'h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2',+ sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",+ lg: 'h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2'+ }+ },+ defaultVariants: {+ variant: 'default',+ size: 'default'+ }+ }+)++function Toggle({+ className,+ variant = 'default',+ size = 'default',+ ...props+}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>): React.JSX.Element {+ return (+ <TogglePrimitive+ data-slot="toggle"+ className={cn(toggleVariants({ variant, size, className }))}+ {...props}+ />+ )+}++export { Toggle }+// eslint-disable-next-line react-refresh/only-export-components -- shadcn convention: variants ship alongside the component+export { toggleVariants }diff --git a/src/renderer/src/components/ui/tooltip.tsx b/src/renderer/src/components/ui/tooltip.tsxnew file mode 100644index 0000000..34adeab--- /dev/null+++ b/src/renderer/src/components/ui/tooltip.tsx@@ -0,0 +1,57 @@+import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip'+import { cn } from 'cn'++function TooltipProvider({+ delay = 0,+ ...props+}: TooltipPrimitive.Provider.Props): React.JSX.Element {+ return <TooltipPrimitive.Provider data-slot="tooltip-provider" delay={delay} {...props} />+}++function Tooltip({ ...props }: TooltipPrimitive.Root.Props): React.JSX.Element {+ return <TooltipPrimitive.Root data-slot="tooltip" {...props} />+}++function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): React.JSX.Element {+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />+}++function TooltipContent({+ className,+ side = 'top',+ sideOffset = 4,+ align = 'center',+ alignOffset = 0,+ children,+ ...props+}: TooltipPrimitive.Popup.Props &+ Pick<+ TooltipPrimitive.Positioner.Props,+ 'align' | 'alignOffset' | 'side' | 'sideOffset'+ >): React.JSX.Element {+ return (+ <TooltipPrimitive.Portal>+ <TooltipPrimitive.Positioner+ align={align}+ alignOffset={alignOffset}+ side={side}+ sideOffset={sideOffset}+ className="isolate z-50"+ >+ <TooltipPrimitive.Popup+ data-slot="tooltip-content"+ className={cn(+ 'z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',+ className+ )}+ {...props}+ >+ {children}+ <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" />+ </TooltipPrimitive.Popup>+ </TooltipPrimitive.Positioner>+ </TooltipPrimitive.Portal>+ )+}++export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }diff --git a/src/renderer/src/lib/utils.ts b/src/renderer/src/lib/utils.tsnew file mode 100644index 0000000..ae9e5a7--- /dev/null+++ b/src/renderer/src/lib/utils.ts@@ -0,0 +1 @@+export { cn } from 'cn'diff --git a/tsconfig.json b/tsconfig.jsonindex 31bac6e..c13617e 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -1,4 +1,11 @@{"files": [],- "references": [{ "path": "./tsconfig.node.json" }, { "path": "./tsconfig.web.json" }]+ "references": [{ "path": "./tsconfig.node.json" }, { "path": "./tsconfig.web.json" }],+ "compilerOptions": {+ "baseUrl": ".",+ "paths": {+ "@renderer/*": ["src/renderer/src/*"],+ "@shared/*": ["src/shared/*"]+ }+ }}