Migrate to the cn package

- Ran `npx shadcn@latest migrate cn`: swaps clsx + tailwind-merge for cn
- Import cn from "cn" everywhere (matches what `shadcn add` now writes)
  and remove the src/lib/utils.js re-export shim

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
asownerytandClaude Opus 5.5 committed 2026-09-30 21:26:38 +13:00
1 parent f916f058fc
commit 30dc6f2c7b
18 files changed
+29 -35

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import * as React from "react"
import { Accordion as AccordionPrimitive } from "radix-ui"
import { ChevronDownIcon } from "lucide-react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
function Accordion({
...props
+1 -1
View File
@@ -1,6 +1,6 @@
import * as React from "react"
import { cva } from "class-variance-authority";
import { cn } from "@/lib/utils"
import { cn } from "cn"
const alertVariants = cva(
"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
+1 -1
View File
@@ -1,6 +1,6 @@
import * as React from "react"
import { cva } from "class-variance-authority";
import { cn } from "@/lib/utils"
import { cn } from "cn"
import { Slot } from "radix-ui"
const buttonVariants = cva(
+1 -1
View File
@@ -1,5 +1,5 @@
import * as React from "react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
function Card({
className,
+1 -1
View File
@@ -1,5 +1,5 @@
import * as React from "react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
function Input({
className,
+1 -1
View File
@@ -1,7 +1,7 @@
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
import { Label as LabelPrimitive } from "radix-ui"
function Label({
+1 -1
View File
@@ -1,5 +1,5 @@
import * as React from "react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
import { ChevronDownIcon } from "lucide-react"
function NativeSelect({
+1 -1
View File
@@ -1,6 +1,6 @@
import * as React from "react"
import { cva } from "class-variance-authority"
import { cn } from "@/lib/utils"
import { cn } from "cn"
import { ChevronDownIcon } from "lucide-react"
import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui"
+1 -1
View File
@@ -1,7 +1,7 @@
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
import { CircleIcon } from "lucide-react"
import { RadioGroup as RadioGroupPrimitive } from "radix-ui"
+1 -1
View File
@@ -1,7 +1,7 @@
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
import { Separator as SeparatorPrimitive } from "radix-ui"
function Separator({
+1 -1
View File
@@ -1,7 +1,7 @@
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
import { XIcon } from "lucide-react"
import { Dialog as SheetPrimitive } from "radix-ui"
+1 -1
View File
@@ -1,7 +1,7 @@
"use client"
import * as React from "react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
function Table({
className,
+1 -1
View File
@@ -1,5 +1,5 @@
import * as React from "react"
import { cn } from "@/lib/utils"
import { cn } from "cn"
function Textarea({
className,