Files
ui/package.json
T
Wlad Meixner 2ade068f53 refactor(base-ui)!: complete the migration off radix-ui
Regenerates the remaining 18 wrappers as base-maia variants via the
shadcn CLI and removes the radix-ui dependency. src no longer references
radix anywhere.

Using the CLI rather than hand-porting was the deciding factor: it
reapplies the lib: tailwind prefix, lucide resolution and the
menuColor/menuAccent translucent menu treatment, which raw registry
JSON does not contain and which had looked like hand customizations on
dropdown-menu, context-menu and menubar.

BREAKING:
- asChild -> render on Item, ButtonGroupText, Prose and every
  overlay/menu trigger
- AlertDialogAction is a plain Button and no longer auto-closes
- Select aligns the active item over the trigger (alignItemWithTrigger)
- FormControl requires a single React element child

Also:
- form/typography move off Slot.Root to useRender
- command narrows children to ReactNode; Base UI Dialog.Root accepts a
  render-function child that DialogContent does not
- sidebar drops the stable setOpenMobile setter the registry added to
  two dependency arrays

Reports in .migration/, one per component plus project.md.
2026-09-07 11:42:44 +02:00

126 lines
3.3 KiB
JSON

{
"name": "@foomo/ui",
"version": "0.1.0-alpha.3",
"type": "module",
"files": [
"dist",
"README.md"
],
"sideEffects": [
"*.css",
"dist/**/*.css",
"**/styles.js",
"**/styles.cjs",
"**/styles.ts"
],
"exports": {
"./components/*": {
"types": "./dist/components/*.d.ts",
"import": "./dist/components/*.js",
"require": "./dist/components/*.cjs"
},
"./hooks/*": {
"types": "./dist/hooks/*.d.ts",
"import": "./dist/hooks/*.js",
"require": "./dist/hooks/*.cjs"
},
"./lib/*": {
"types": "./dist/lib/*.d.ts",
"import": "./dist/lib/*.js",
"require": "./dist/lib/*.cjs"
},
"./extra/*": {
"types": "./dist/extra/*.d.ts",
"import": "./dist/extra/*.js",
"require": "./dist/extra/*.cjs"
},
"./icons": {
"types": "./dist/icons.d.ts",
"import": "./dist/icons.js",
"require": "./dist/icons.cjs"
},
"./ui.css": "./dist/ui.css",
"./themes/*.css": "./dist/themes/*.css",
"./themes/neutral.css": "./dist/themes/neutral.css"
},
"scripts": {
"dev": "vite",
"build": "rm -rf ./dist && tsc -p tsconfig.build.json && vite build",
"lint": "biome lint --write ./src",
"format": "biome format --write ./src && biome check --fix --unsafe ./src",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"regenerate-components": "rm -rf ./src/components && bunx shadcn@latest add --all --overwrite --yes && bun run format",
"prepublishOnly": "bun run build"
},
"dependencies": {
"@base-ui/react": "^1.8.0",
"@hookform/resolvers": "^5.2.2",
"@tanstack/react-table": "^9.2.4",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"cn": "^0.2.5",
"date-fns": "^4.1.0",
"embla-carousel-react": "^8.6.0",
"input-otp": "^1.4.2",
"lucide-react": "^0.553.0",
"next-themes": "^0.4.6",
"react-day-picker": "^10.0.1",
"react-hook-form": "^7.66.0",
"react-resizable-panels": "^4.12.3",
"recharts": "3.8.0",
"sonner": "^2.0.7",
"vaul": "^1.1.2",
"zod": "^4.1.12"
},
"peerDependencies": {
"tailwind-merge": "^3",
"tailwindcss": "^4.0.0",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@biomejs/biome": "2.1.2",
"@chromatic-com/storybook": "4.0.1",
"@eslint/js": "9.30.1",
"@storybook/addon-a11y": "9.0.18",
"@storybook/addon-docs": "9.0.18",
"@storybook/addon-onboarding": "9.0.18",
"@storybook/addon-vitest": "9.0.18",
"@storybook/builder-vite": "9.0.18",
"@storybook/react-vite": "9.0.18",
"@tailwindcss/typography": "0.5.16",
"@tailwindcss/vite": "4.1.11",
"@types/bun": "latest",
"@types/glob": "9.0.0",
"@types/node": "24.1.0",
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"@vitejs/plugin-react": "4.6.0",
"@vitest/browser": "3.2.4",
"@vitest/coverage-v8": "3.2.4",
"eslint": "9.30.1",
"eslint-plugin-react-hooks": "5.2.0",
"eslint-plugin-react-refresh": "0.4.20",
"eslint-plugin-storybook": "9.0.18",
"glob": "11.0.3",
"globals": "16.3.0",
"playwright": "1.54.1",
"storybook": "9.0.18",
"tailwindcss": "4.1.11",
"tw-animate-css": "1.3.6",
"@fontsource-variable/inter": "^5.3.0",
"shadcn": "^4.21.0",
"typescript": "~5.8.3",
"typescript-eslint": "8.35.1",
"vite": "7.0.4",
"vite-plugin-static-copy": "^3.1.4",
"vitest": "3.2.4"
}
}