88} from '@radix-ui/react-icons'
99import * as MenubarPrimitive from '@radix-ui/react-menubar'
1010
11- import { cn } from '~/lib/utils'
11+ import { ny } from '~/lib/utils'
1212
1313const MenubarMenu = MenubarPrimitive . Menu
1414
@@ -26,7 +26,7 @@ const Menubar = React.forwardRef<
2626> ( ( { className, ...props } , ref ) => (
2727 < MenubarPrimitive . Root
2828 ref = { ref }
29- className = { cn (
29+ className = { ny (
3030 'flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm' ,
3131 className ,
3232 ) }
@@ -41,7 +41,7 @@ const MenubarTrigger = React.forwardRef<
4141> ( ( { className, ...props } , ref ) => (
4242 < MenubarPrimitive . Trigger
4343 ref = { ref }
44- className = { cn (
44+ className = { ny (
4545 'flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground' ,
4646 className ,
4747 ) }
@@ -58,7 +58,7 @@ const MenubarSubTrigger = React.forwardRef<
5858> ( ( { className, inset, children, ...props } , ref ) => (
5959 < MenubarPrimitive . SubTrigger
6060 ref = { ref }
61- className = { cn (
61+ className = { ny (
6262 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground' ,
6363 inset && 'pl-8' ,
6464 className ,
@@ -77,7 +77,7 @@ const MenubarSubContent = React.forwardRef<
7777> ( ( { className, ...props } , ref ) => (
7878 < MenubarPrimitive . SubContent
7979 ref = { ref }
80- className = { cn (
80+ className = { ny (
8181 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2' ,
8282 className ,
8383 ) }
@@ -100,7 +100,7 @@ const MenubarContent = React.forwardRef<
100100 align = { align }
101101 alignOffset = { alignOffset }
102102 sideOffset = { sideOffset }
103- className = { cn (
103+ className = { ny (
104104 'z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2' ,
105105 className ,
106106 ) }
@@ -119,7 +119,7 @@ const MenubarItem = React.forwardRef<
119119> ( ( { className, inset, ...props } , ref ) => (
120120 < MenubarPrimitive . Item
121121 ref = { ref }
122- className = { cn (
122+ className = { ny (
123123 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50' ,
124124 inset && 'pl-8' ,
125125 className ,
@@ -135,7 +135,7 @@ const MenubarCheckboxItem = React.forwardRef<
135135> ( ( { className, children, checked, ...props } , ref ) => (
136136 < MenubarPrimitive . CheckboxItem
137137 ref = { ref }
138- className = { cn (
138+ className = { ny (
139139 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50' ,
140140 className ,
141141 ) }
@@ -158,7 +158,7 @@ const MenubarRadioItem = React.forwardRef<
158158> ( ( { className, children, ...props } , ref ) => (
159159 < MenubarPrimitive . RadioItem
160160 ref = { ref }
161- className = { cn (
161+ className = { ny (
162162 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50' ,
163163 className ,
164164 ) }
@@ -182,7 +182,7 @@ const MenubarLabel = React.forwardRef<
182182> ( ( { className, inset, ...props } , ref ) => (
183183 < MenubarPrimitive . Label
184184 ref = { ref }
185- className = { cn (
185+ className = { ny (
186186 'px-2 py-1.5 text-sm font-semibold' ,
187187 inset && 'pl-8' ,
188188 className ,
@@ -198,7 +198,7 @@ const MenubarSeparator = React.forwardRef<
198198> ( ( { className, ...props } , ref ) => (
199199 < MenubarPrimitive . Separator
200200 ref = { ref }
201- className = { cn ( '-mx-1 my-1 h-px bg-muted' , className ) }
201+ className = { ny ( '-mx-1 my-1 h-px bg-muted' , className ) }
202202 { ...props }
203203 />
204204) )
@@ -210,7 +210,7 @@ function MenubarShortcut({
210210} : React . HTMLAttributes < HTMLSpanElement > ) {
211211 return (
212212 < span
213- className = { cn (
213+ className = { ny (
214214 'ml-auto text-xs tracking-widest text-muted-foreground' ,
215215 className ,
216216 ) }
0 commit comments