| 96 | } |
| 97 | |
| 98 | function SelectItem({ |
| 99 | className, |
| 100 | children, |
| 101 | ...props |
| 102 | }: React.ComponentProps<typeof SelectPrimitive.Item>) { |
| 103 | return ( |
| 104 | <SelectPrimitive.Item |
| 105 | className={cn( |
| 106 | "relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", |
| 107 | className |
| 108 | )} |
| 109 | data-slot="select-item" |
| 110 | {...props} |
| 111 | > |
| 112 | <span className="absolute right-2 flex size-3.5 items-center justify-center"> |
| 113 | <SelectPrimitive.ItemIndicator> |
| 114 | <CheckIcon className="size-4" /> |
| 115 | </SelectPrimitive.ItemIndicator> |
| 116 | </span> |
| 117 | <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText> |
| 118 | </SelectPrimitive.Item> |
| 119 | ); |
| 120 | } |
| 121 | |
| 122 | function SelectSeparator({ |
| 123 | className, |