1
- "use client"
1
+ "use client" ;
2
2
3
- import * as React from "react"
4
- import * as SelectPrimitive from "@radix-ui/react-select"
5
- import { Check , ChevronDown , ChevronUp } from "lucide-react"
3
+ import * as React from "react" ;
4
+ import * as SelectPrimitive from "@radix-ui/react-select" ;
5
+ import { Check , ChevronDown , ChevronUp } from "lucide-react" ;
6
6
7
- import { cn } from "@/lib/utils"
7
+ import { cn } from "@/lib/utils" ;
8
8
9
- const Select = SelectPrimitive . Root
9
+ const Select = SelectPrimitive . Root ;
10
10
11
- const SelectGroup = SelectPrimitive . Group
11
+ const SelectGroup = SelectPrimitive . Group ;
12
12
13
- const SelectValue = SelectPrimitive . Value
13
+ const SelectValue = SelectPrimitive . Value ;
14
14
15
15
const SelectTrigger = React . forwardRef <
16
16
React . ElementRef < typeof SelectPrimitive . Trigger > ,
@@ -19,7 +19,7 @@ const SelectTrigger = React.forwardRef<
19
19
< SelectPrimitive . Trigger
20
20
ref = { ref }
21
21
className = { cn (
22
- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1" ,
22
+ "flex h-10 capitalize w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1" ,
23
23
className
24
24
) }
25
25
{ ...props }
@@ -29,8 +29,8 @@ const SelectTrigger = React.forwardRef<
29
29
< ChevronDown className = "h-4 w-4 opacity-50" />
30
30
</ SelectPrimitive . Icon >
31
31
</ SelectPrimitive . Trigger >
32
- ) )
33
- SelectTrigger . displayName = SelectPrimitive . Trigger . displayName
32
+ ) ) ;
33
+ SelectTrigger . displayName = SelectPrimitive . Trigger . displayName ;
34
34
35
35
const SelectScrollUpButton = React . forwardRef <
36
36
React . ElementRef < typeof SelectPrimitive . ScrollUpButton > ,
@@ -46,8 +46,8 @@ const SelectScrollUpButton = React.forwardRef<
46
46
>
47
47
< ChevronUp className = "h-4 w-4" />
48
48
</ SelectPrimitive . ScrollUpButton >
49
- ) )
50
- SelectScrollUpButton . displayName = SelectPrimitive . ScrollUpButton . displayName
49
+ ) ) ;
50
+ SelectScrollUpButton . displayName = SelectPrimitive . ScrollUpButton . displayName ;
51
51
52
52
const SelectScrollDownButton = React . forwardRef <
53
53
React . ElementRef < typeof SelectPrimitive . ScrollDownButton > ,
@@ -63,9 +63,9 @@ const SelectScrollDownButton = React.forwardRef<
63
63
>
64
64
< ChevronDown className = "h-4 w-4" />
65
65
</ SelectPrimitive . ScrollDownButton >
66
- ) )
66
+ ) ) ;
67
67
SelectScrollDownButton . displayName =
68
- SelectPrimitive . ScrollDownButton . displayName
68
+ SelectPrimitive . ScrollDownButton . displayName ;
69
69
70
70
const SelectContent = React . forwardRef <
71
71
React . ElementRef < typeof SelectPrimitive . Content > ,
@@ -75,7 +75,7 @@ const SelectContent = React.forwardRef<
75
75
< SelectPrimitive . Content
76
76
ref = { ref }
77
77
className = { cn (
78
- "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" ,
78
+ "relativ 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" ,
79
79
position === "popper" &&
80
80
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1" ,
81
81
className
@@ -96,8 +96,8 @@ const SelectContent = React.forwardRef<
96
96
< SelectScrollDownButton />
97
97
</ SelectPrimitive . Content >
98
98
</ SelectPrimitive . Portal >
99
- ) )
100
- SelectContent . displayName = SelectPrimitive . Content . displayName
99
+ ) ) ;
100
+ SelectContent . displayName = SelectPrimitive . Content . displayName ;
101
101
102
102
const SelectLabel = React . forwardRef <
103
103
React . ElementRef < typeof SelectPrimitive . Label > ,
@@ -108,8 +108,8 @@ const SelectLabel = React.forwardRef<
108
108
className = { cn ( "py-1.5 pl-8 pr-2 text-sm font-semibold" , className ) }
109
109
{ ...props }
110
110
/>
111
- ) )
112
- SelectLabel . displayName = SelectPrimitive . Label . displayName
111
+ ) ) ;
112
+ SelectLabel . displayName = SelectPrimitive . Label . displayName ;
113
113
114
114
const SelectItem = React . forwardRef <
115
115
React . ElementRef < typeof SelectPrimitive . Item > ,
@@ -118,7 +118,7 @@ const SelectItem = React.forwardRef<
118
118
< SelectPrimitive . Item
119
119
ref = { ref }
120
120
className = { cn (
121
- "relative flex w-full 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" ,
121
+ "relative capitalize flex w-full 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" ,
122
122
className
123
123
) }
124
124
{ ...props }
@@ -131,8 +131,8 @@ const SelectItem = React.forwardRef<
131
131
132
132
< SelectPrimitive . ItemText > { children } </ SelectPrimitive . ItemText >
133
133
</ SelectPrimitive . Item >
134
- ) )
135
- SelectItem . displayName = SelectPrimitive . Item . displayName
134
+ ) ) ;
135
+ SelectItem . displayName = SelectPrimitive . Item . displayName ;
136
136
137
137
const SelectSeparator = React . forwardRef <
138
138
React . ElementRef < typeof SelectPrimitive . Separator > ,
@@ -143,8 +143,8 @@ const SelectSeparator = React.forwardRef<
143
143
className = { cn ( "-mx-1 my-1 h-px bg-muted" , className ) }
144
144
{ ...props }
145
145
/>
146
- ) )
147
- SelectSeparator . displayName = SelectPrimitive . Separator . displayName
146
+ ) ) ;
147
+ SelectSeparator . displayName = SelectPrimitive . Separator . displayName ;
148
148
149
149
export {
150
150
Select ,
@@ -157,4 +157,4 @@ export {
157
157
SelectSeparator ,
158
158
SelectScrollUpButton ,
159
159
SelectScrollDownButton ,
160
- }
160
+ } ;
0 commit comments