11'use client' ;
22
3- import * as React from 'react' ;
3+ import type * as React from 'react' ;
44import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu' ;
55import { CheckIcon , ChevronRightIcon , CircleIcon } from 'lucide-react' ;
66
@@ -42,7 +42,7 @@ function DropdownMenuContent({
4242 data-slot = "dropdown-menu-content"
4343 sideOffset = { sideOffset }
4444 className = { cn (
45- 'bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md' ,
45+ '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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in ' ,
4646 className
4747 ) }
4848 { ...props }
@@ -74,7 +74,7 @@ function DropdownMenuItem({
7474 data-inset = { inset }
7575 data-variant = { variant }
7676 className = { cn (
77- "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg -destructive/10 dark: data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text -destructive [&_svg:not([class*='text -'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 " ,
77+ "data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[ variant=destructive]:text -destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark: data-[variant=destructive]:focus:bg -destructive/20 [&_svg:not([class*='size -'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0" ,
7878 className
7979 ) }
8080 { ...props }
@@ -92,7 +92,7 @@ function DropdownMenuCheckboxItem({
9292 < DropdownMenuPrimitive . CheckboxItem
9393 data-slot = "dropdown-menu-checkbox-item"
9494 className = { cn (
95- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg: not([class*='size-'])]:size-4" ,
95+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg: not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 " ,
9696 className
9797 ) }
9898 checked = { checked }
@@ -128,7 +128,7 @@ function DropdownMenuRadioItem({
128128 < DropdownMenuPrimitive . RadioItem
129129 data-slot = "dropdown-menu-radio-item"
130130 className = { cn (
131- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg: not([class*='size-'])]:size-4" ,
131+ "relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg: not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 " ,
132132 className
133133 ) }
134134 { ...props }
@@ -155,7 +155,7 @@ function DropdownMenuLabel({
155155 data-slot = "dropdown-menu-label"
156156 data-inset = { inset }
157157 className = { cn (
158- 'px-2 py-1.5 text-sm font-medium data-[inset]:pl-8' ,
158+ 'px-2 py-1.5 font-medium text-sm data-[inset]:pl-8' ,
159159 className
160160 ) }
161161 { ...props }
@@ -170,7 +170,7 @@ function DropdownMenuSeparator({
170170 return (
171171 < DropdownMenuPrimitive . Separator
172172 data-slot = "dropdown-menu-separator"
173- className = { cn ( 'bg-border - mx-1 my-1 h-px' , className ) }
173+ className = { cn ( '- mx-1 my-1 h-px bg-border ' , className ) }
174174 { ...props }
175175 />
176176 ) ;
@@ -184,7 +184,7 @@ function DropdownMenuShortcut({
184184 < span
185185 data-slot = "dropdown-menu-shortcut"
186186 className = { cn (
187- 'text-muted-foreground ml-auto text-xs tracking-widest' ,
187+ 'ml-auto text-muted-foreground text-xs tracking-widest' ,
188188 className
189189 ) }
190190 { ...props }
@@ -211,7 +211,7 @@ function DropdownMenuSubTrigger({
211211 data-slot = "dropdown-menu-sub-trigger"
212212 data-inset = { inset }
213213 className = { cn (
214- 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8' ,
214+ 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[ inset]:pl-8 data-[state=open]:text-accent-foreground ' ,
215215 className
216216 ) }
217217 { ...props }
@@ -230,7 +230,7 @@ function DropdownMenuSubContent({
230230 < DropdownMenuPrimitive . SubContent
231231 data-slot = "dropdown-menu-sub-content"
232232 className = { cn (
233- 'bg-popover text-popover-foreground 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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg' ,
233+ '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 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in ' ,
234234 className
235235 ) }
236236 { ...props }
0 commit comments