Skip to content

🔥 feat(codemod): migrate to unify @radix-ui/react-* imports to radix-ui… #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
2 changes: 1 addition & 1 deletion app/layouts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const cards = [
"https://github.com/origin-space/ui-experiments/tree/main/apps/experiment-07",
cmd: "npx shadcn init https://ui-experiment-07.vercel.app/r/experiment-07.json",
imgHeight: 700,
},
},
{
id: 6,
title: "Event Calendar",
Expand Down
6 changes: 3 additions & 3 deletions components/component-details.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client"

import { JSX, useEffect, useState } from "react"
import { DialogDescription } from "@radix-ui/react-dialog"
import { CodeIcon } from "lucide-react"
import { Dialog as DialogPrimitive } from "radix-ui"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is done manually, not part of codemod

import type { RegistryItem } from "shadcn/registry"

import { convertRegistryPaths } from "@/lib/utils"
Expand Down Expand Up @@ -100,9 +100,9 @@ export default function ComponentDetails({
<DialogContent className="sm:max-w-[600px]">
<DialogHeader>
<DialogTitle className="text-left">Installation</DialogTitle>
<DialogDescription className="sr-only">
<DialogPrimitive.DialogDescription className="sr-only">
Use the CLI to add components to your project
</DialogDescription>
</DialogPrimitive.DialogDescription>
</DialogHeader>
<div className="min-w-0 space-y-5">
<ComponentCli name={component.name} />
Expand Down
22 changes: 1 addition & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,8 @@
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@internationalized/date": "^3.7.0",
"@radix-ui/react-accordion": "^1.2.3",
"@radix-ui/react-alert-dialog": "^1.1.6",
"@radix-ui/react-avatar": "^1.1.3",
"@radix-ui/react-checkbox": "^1.1.4",
"@radix-ui/react-collapsible": "^1.1.3",
"@radix-ui/react-dialog": "^1.1.6",
"@radix-ui/react-dropdown-menu": "^2.1.6",
"@radix-ui/react-hover-card": "^1.1.6",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.2",
"@radix-ui/react-popover": "^1.1.6",
"@radix-ui/react-progress": "^1.1.3",
"@radix-ui/react-radio-group": "^1.2.3",
"@radix-ui/react-scroll-area": "^1.2.3",
"@radix-ui/react-select": "^2.1.6",
"@radix-ui/react-slider": "^1.2.3",
"@radix-ui/react-slot": "^1.1.2",
"@radix-ui/react-switch": "^1.1.3",
"@radix-ui/react-tabs": "^1.1.3",
"@radix-ui/react-toast": "^1.2.6",
"@radix-ui/react-toggle": "^1.1.2",
"@radix-ui/react-toggle-group": "^1.1.2",
"@radix-ui/react-tooltip": "^1.1.8",
"@remixicon/react": "^4.6.0",
"@tanstack/react-table": "^8.21.2",
"class-variance-authority": "^0.7.1",
Expand All @@ -56,6 +35,7 @@
"lucide-react": "^0.475.0",
"next": "^15.2.4",
"next-themes": "^0.4.6",
"radix-ui": "^1.3.4",
"react": "^19.1.0",
"react-aria": "^3.38.1",
"react-aria-components": "^1.7.1",
Expand Down
Loading