chore: scaffold phase 0 workspace

This commit is contained in:
2026-03-19 13:42:43 +08:00
parent a099912dac
commit 937855362b
24 changed files with 4908 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
{
"name": "@ai-ui/ui",
"version": "0.0.0",
"private": true,
"type": "module",
"exports": {
".": "./src/index.ts"
},
"files": [
"dist",
"src"
],
"scripts": {
"build": "tsup src/index.ts --clean --dts --format esm,cjs",
"typecheck": "tsc --noEmit -p tsconfig.json"
},
"dependencies": {
"@ai-ui/tokens": "workspace:*",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"tailwind-merge": "^3.5.0"
},
"devDependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"peerDependencies": {
"react": "^18.3.1 || ^19.0.0",
"react-dom": "^18.3.1 || ^19.0.0"
}
}
+4
View File
@@ -0,0 +1,4 @@
export { cn } from "./lib/cn";
export { cva, cx, type VariantProps } from "./lib/cva";
export { motionDurations, motionEasings } from "./lib/motion";
+7
View File
@@ -0,0 +1,7 @@
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
+2
View File
@@ -0,0 +1,2 @@
export { cva, cx, type VariantProps } from "class-variance-authority";
+11
View File
@@ -0,0 +1,11 @@
export const motionDurations = {
fast: "var(--dur-fast)",
base: "var(--dur-base)",
slow: "var(--dur-slow)"
} as const;
export const motionEasings = {
standard: "var(--ease-standard)",
emphasized: "var(--ease-emphasized)"
} as const;
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"types": ["node"]
},
"include": ["src/**/*"]
}