1- import * as React from "react"
1+ import * as React from "react" ;
22import {
33 CaretSortIcon ,
44 CheckIcon ,
55 ChevronDownIcon ,
66 ChevronUpIcon ,
7- } from "@radix-ui/react-icons"
8- import * as SelectPrimitive from "@radix-ui/react-select"
7+ } from "@radix-ui/react-icons" ;
8+ import * as SelectPrimitive from "@radix-ui/react-select" ;
99
10- import { cn } from "@/lib/utils"
10+ import { cn } from "@/lib/utils" ;
1111
12- const Select = SelectPrimitive . Root
12+ const Select = SelectPrimitive . Root ;
1313
14- const SelectGroup = SelectPrimitive . Group
14+ const SelectGroup = SelectPrimitive . Group ;
1515
16- const SelectValue = SelectPrimitive . Value
16+ const SelectValue = SelectPrimitive . Value ;
1717
1818const SelectTrigger = React . forwardRef <
1919 React . ElementRef < typeof SelectPrimitive . Trigger > ,
@@ -23,7 +23,7 @@ const SelectTrigger = React.forwardRef<
2323 ref = { ref }
2424 className = { cn (
2525 "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1" ,
26- className
26+ className ,
2727 ) }
2828 { ...props }
2929 >
@@ -32,8 +32,8 @@ const SelectTrigger = React.forwardRef<
3232 < CaretSortIcon className = "h-4 w-4 opacity-50" />
3333 </ SelectPrimitive . Icon >
3434 </ SelectPrimitive . Trigger >
35- ) )
36- SelectTrigger . displayName = SelectPrimitive . Trigger . displayName
35+ ) ) ;
36+ SelectTrigger . displayName = SelectPrimitive . Trigger . displayName ;
3737
3838const SelectScrollUpButton = React . forwardRef <
3939 React . ElementRef < typeof SelectPrimitive . ScrollUpButton > ,
@@ -43,14 +43,14 @@ const SelectScrollUpButton = React.forwardRef<
4343 ref = { ref }
4444 className = { cn (
4545 "flex cursor-default items-center justify-center py-1" ,
46- className
46+ className ,
4747 ) }
4848 { ...props }
4949 >
5050 < ChevronUpIcon />
5151 </ SelectPrimitive . ScrollUpButton >
52- ) )
53- SelectScrollUpButton . displayName = SelectPrimitive . ScrollUpButton . displayName
52+ ) ) ;
53+ SelectScrollUpButton . displayName = SelectPrimitive . ScrollUpButton . displayName ;
5454
5555const SelectScrollDownButton = React . forwardRef <
5656 React . ElementRef < typeof SelectPrimitive . ScrollDownButton > ,
@@ -60,15 +60,15 @@ const SelectScrollDownButton = React.forwardRef<
6060 ref = { ref }
6161 className = { cn (
6262 "flex cursor-default items-center justify-center py-1" ,
63- className
63+ className ,
6464 ) }
6565 { ...props }
6666 >
6767 < ChevronDownIcon />
6868 </ SelectPrimitive . ScrollDownButton >
69- ) )
69+ ) ) ;
7070SelectScrollDownButton . displayName =
71- SelectPrimitive . ScrollDownButton . displayName
71+ SelectPrimitive . ScrollDownButton . displayName ;
7272
7373const SelectContent = React . forwardRef <
7474 React . ElementRef < typeof SelectPrimitive . Content > ,
@@ -81,7 +81,7 @@ const SelectContent = React.forwardRef<
8181 "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 position === "popper" &&
8383 "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1" ,
84- className
84+ className ,
8585 ) }
8686 position = { position }
8787 { ...props }
@@ -91,16 +91,16 @@ const SelectContent = React.forwardRef<
9191 className = { cn (
9292 "p-1" ,
9393 position === "popper" &&
94- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
94+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]" ,
9595 ) }
9696 >
9797 { children }
9898 </ SelectPrimitive . Viewport >
9999 < SelectScrollDownButton />
100100 </ SelectPrimitive . Content >
101101 </ SelectPrimitive . Portal >
102- ) )
103- SelectContent . displayName = SelectPrimitive . Content . displayName
102+ ) ) ;
103+ SelectContent . displayName = SelectPrimitive . Content . displayName ;
104104
105105const SelectLabel = React . forwardRef <
106106 React . ElementRef < typeof SelectPrimitive . Label > ,
@@ -111,8 +111,8 @@ const SelectLabel = React.forwardRef<
111111 className = { cn ( "px-2 py-1.5 text-sm font-semibold" , className ) }
112112 { ...props }
113113 />
114- ) )
115- SelectLabel . displayName = SelectPrimitive . Label . displayName
114+ ) ) ;
115+ SelectLabel . displayName = SelectPrimitive . Label . displayName ;
116116
117117const SelectItem = React . forwardRef <
118118 React . ElementRef < typeof SelectPrimitive . Item > ,
@@ -122,7 +122,7 @@ const SelectItem = React.forwardRef<
122122 ref = { ref }
123123 className = { cn (
124124 "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50" ,
125- className
125+ className ,
126126 ) }
127127 { ...props }
128128 >
@@ -133,8 +133,8 @@ const SelectItem = React.forwardRef<
133133 </ span >
134134 < SelectPrimitive . ItemText > { children } </ SelectPrimitive . ItemText >
135135 </ SelectPrimitive . Item >
136- ) )
137- SelectItem . displayName = SelectPrimitive . Item . displayName
136+ ) ) ;
137+ SelectItem . displayName = SelectPrimitive . Item . displayName ;
138138
139139const SelectSeparator = React . forwardRef <
140140 React . ElementRef < typeof SelectPrimitive . Separator > ,
@@ -145,8 +145,8 @@ const SelectSeparator = React.forwardRef<
145145 className = { cn ( "-mx-1 my-1 h-px bg-muted" , className ) }
146146 { ...props }
147147 />
148- ) )
149- SelectSeparator . displayName = SelectPrimitive . Separator . displayName
148+ ) ) ;
149+ SelectSeparator . displayName = SelectPrimitive . Separator . displayName ;
150150
151151export {
152152 Select ,
@@ -159,4 +159,4 @@ export {
159159 SelectSeparator ,
160160 SelectScrollUpButton ,
161161 SelectScrollDownButton ,
162- }
162+ } ;
0 commit comments