1- import * as React from "react"
2- import { cva , type VariantProps } from "class-variance-authority"
1+ import * as React from "react" ;
2+ import { cva , type VariantProps } from "class-variance-authority" ;
33
4- import { cn } from "@/lib/utils"
5- import { Button } from "@/components/ui/button"
6- import { Input } from "@/components/ui/input"
7- import { Textarea } from "@/components/ui/textarea"
4+ import { cn } from "@/lib/utils" ;
5+ import { Button } from "@/components/ui/button" ;
6+ import { Input } from "@/components/ui/input" ;
7+ import { Textarea } from "@/components/ui/textarea" ;
88
99function InputGroup ( { className, ...props } : React . ComponentProps < "div" > ) {
1010 return (
@@ -27,11 +27,11 @@ function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
2727 // Error state.
2828 "has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40" ,
2929
30- className
30+ className ,
3131 ) }
3232 { ...props }
3333 />
34- )
34+ ) ;
3535}
3636
3737const inputGroupAddonVariants = cva (
@@ -52,8 +52,8 @@ const inputGroupAddonVariants = cva(
5252 defaultVariants : {
5353 align : "inline-start" ,
5454 } ,
55- }
56- )
55+ } ,
56+ ) ;
5757
5858function InputGroupAddon ( {
5959 className,
@@ -68,13 +68,13 @@ function InputGroupAddon({
6868 className = { cn ( inputGroupAddonVariants ( { align } ) , className ) }
6969 onClick = { ( e ) => {
7070 if ( ( e . target as HTMLElement ) . closest ( "button" ) ) {
71- return
71+ return ;
7272 }
73- e . currentTarget . parentElement ?. querySelector ( "input" ) ?. focus ( )
73+ e . currentTarget . parentElement ?. querySelector ( "input" ) ?. focus ( ) ;
7474 } }
7575 { ...props }
7676 />
77- )
77+ ) ;
7878}
7979
8080const inputGroupButtonVariants = cva (
@@ -92,8 +92,8 @@ const inputGroupButtonVariants = cva(
9292 defaultVariants : {
9393 size : "xs" ,
9494 } ,
95- }
96- )
95+ } ,
96+ ) ;
9797
9898function InputGroupButton ( {
9999 className,
@@ -111,19 +111,19 @@ function InputGroupButton({
111111 className = { cn ( inputGroupButtonVariants ( { size } ) , className ) }
112112 { ...props }
113113 />
114- )
114+ ) ;
115115}
116116
117117function InputGroupText ( { className, ...props } : React . ComponentProps < "span" > ) {
118118 return (
119119 < span
120120 className = { cn (
121121 "text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4" ,
122- className
122+ className ,
123123 ) }
124124 { ...props }
125125 />
126- )
126+ ) ;
127127}
128128
129129function InputGroupInput ( {
@@ -135,11 +135,11 @@ function InputGroupInput({
135135 data-slot = "input-group-control"
136136 className = { cn (
137137 "flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent" ,
138- className
138+ className ,
139139 ) }
140140 { ...props }
141141 />
142- )
142+ ) ;
143143}
144144
145145function InputGroupTextarea ( {
@@ -151,11 +151,11 @@ function InputGroupTextarea({
151151 data-slot = "input-group-control"
152152 className = { cn (
153153 "flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent" ,
154- className
154+ className ,
155155 ) }
156156 { ...props }
157157 />
158- )
158+ ) ;
159159}
160160
161161export {
@@ -165,4 +165,4 @@ export {
165165 InputGroupText ,
166166 InputGroupInput ,
167167 InputGroupTextarea ,
168- }
168+ } ;
0 commit comments