11import * as React from "react"
22import { PortalProps } from "@radix-ui/react-portal"
33import * as SelectPrimitive from "@radix-ui/react-select"
4- import { CheckIcon , ChevronDownIcon , ChevronUpIcon } from "lucide-react"
4+ import { Check , ChevronDown , ChevronUp } from "lucide-react"
55
66import { cn } from "@/lib/utils"
77
@@ -31,7 +31,7 @@ function SelectTrigger({ className, children, ...props }: React.ComponentProps<t
3131 { ...props } >
3232 { children }
3333 < SelectPrimitive . Icon asChild >
34- < ChevronDownIcon className = "size-4 opacity-50" />
34+ < ChevronDown className = "size-4 opacity-50" />
3535 </ SelectPrimitive . Icon >
3636 </ SelectPrimitive . Trigger >
3737 )
@@ -49,7 +49,10 @@ function SelectContent({
4949 < SelectPrimitive . Content
5050 data-slot = "select-content"
5151 className = { cn (
52- "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 relative z-50 max-h-72 min-w-[8rem] overflow-hidden rounded-xs border border-vscode-focusBorder shadow-xs" ,
52+ "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 relative z-50 max-h-72 min-w-[8rem] overflow-hidden rounded-xs shadow-xs" ,
53+ "bg-popover" ,
54+ "border border-vscode-focusBorder" ,
55+ "text-popover-foreground" ,
5356 position === "popper" &&
5457 "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1" ,
5558 className ,
@@ -94,7 +97,7 @@ function SelectItem({ className, children, ...props }: React.ComponentProps<type
9497 { ...props } >
9598 < span className = "absolute right-2 flex size-3.5 items-center justify-center" >
9699 < SelectPrimitive . ItemIndicator >
97- < CheckIcon className = "size-4" />
100+ < Check className = "size-4 p-0.5 " />
98101 </ SelectPrimitive . ItemIndicator >
99102 </ span >
100103 < SelectPrimitive . ItemText > { children } </ SelectPrimitive . ItemText >
@@ -106,7 +109,7 @@ function SelectSeparator({ className, ...props }: React.ComponentProps<typeof Se
106109 return (
107110 < SelectPrimitive . Separator
108111 data-slot = "select-separator"
109- className = { cn ( "bg-vscode-dropdown-border pointer-events-none -mx-1 my-1 h-px" , className ) }
112+ className = { cn ( "bg-vscode-dropdown-foreground/10 pointer-events-none -mx-1 my-1 h-px" , className ) }
110113 { ...props }
111114 />
112115 )
@@ -118,7 +121,7 @@ function SelectScrollUpButton({ className, ...props }: React.ComponentProps<type
118121 data-slot = "select-scroll-up-button"
119122 className = { cn ( "flex cursor-default items-center justify-center py-1" , className ) }
120123 { ...props } >
121- < ChevronUpIcon className = "size-4" />
124+ < ChevronUp className = "size-4" />
122125 </ SelectPrimitive . ScrollUpButton >
123126 )
124127}
@@ -132,7 +135,7 @@ function SelectScrollDownButton({
132135 data-slot = "select-scroll-down-button"
133136 className = { cn ( "flex cursor-default items-center justify-center py-1" , className ) }
134137 { ...props } >
135- < ChevronDownIcon className = "size-4" />
138+ < ChevronDown className = "size-4" />
136139 </ SelectPrimitive . ScrollDownButton >
137140 )
138141}
0 commit comments