From c3be394acc989efeb763795e9364930ceed7b58b Mon Sep 17 00:00:00 2001 From: vibhaw raj Date: Fri, 12 Apr 2024 14:10:52 +0530 Subject: [PATCH] [remove]:clsx #52 --- package.json | 1 - src/lib/utils.ts | 6 +++--- yarn.lock | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 017d2032..e5ba8847 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "@radix-ui/react-slot": "^1.0.2", "@vercel/analytics": "^1.1.2", "class-variance-authority": "^0.7.0", - "clsx": "^2.0.0", "cmdk": "^0.2.0", "lucide-react": "^0.300.0", "next": "14.0.4", diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 365058ce..fb93e685 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -1,6 +1,6 @@ -import { type ClassValue, clsx } from "clsx"; import { twMerge } from "tailwind-merge"; - +import { ClassValue } from "class-variance-authority/types"; +import { cx } from "class-variance-authority"; export function cn(...inputs: ClassValue[]) { - return twMerge(clsx(inputs)); + return twMerge(cx(inputs)); } diff --git a/yarn.lock b/yarn.lock index 1248c06a..8607128f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -872,7 +872,7 @@ client-only@0.0.1: resolved "https://registry.yarnpkg.com/client-only/-/client-only-0.0.1.tgz#38bba5d403c41ab150bff64a95c85013cf73bca1" integrity sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== -clsx@2.0.0, clsx@^2.0.0: +clsx@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.0.0.tgz#12658f3fd98fafe62075595a5c30e43d18f3d00b" integrity sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q==