1- import * as React from "react"
2- import * as DialogPrimitive from "@radix-ui/react-dialog"
3- import { XIcon } from "lucide-react"
1+ import * as React from "react" ;
2+ import * as DialogPrimitive from "@radix-ui/react-dialog" ;
3+ import { XIcon } from "lucide-react" ;
44
5- import { cn } from "@/lib/utils"
5+ import { cn } from "@/lib/utils" ;
66
77function Dialog ( {
88 ...props
99} : React . ComponentProps < typeof DialogPrimitive . Root > ) {
10- return < DialogPrimitive . Root data-slot = "dialog" { ...props } />
10+ return < DialogPrimitive . Root data-slot = "dialog" { ...props } /> ;
1111}
1212
1313function DialogTrigger ( {
1414 ...props
1515} : React . ComponentProps < typeof DialogPrimitive . Trigger > ) {
16- return < DialogPrimitive . Trigger data-slot = "dialog-trigger" { ...props } />
16+ return < DialogPrimitive . Trigger data-slot = "dialog-trigger" { ...props } /> ;
1717}
1818
1919function DialogPortal ( {
2020 ...props
2121} : React . ComponentProps < typeof DialogPrimitive . Portal > ) {
22- return < DialogPrimitive . Portal data-slot = "dialog-portal" { ...props } />
22+ return < DialogPrimitive . Portal data-slot = "dialog-portal" { ...props } /> ;
2323}
2424
2525function DialogClose ( {
2626 ...props
2727} : React . ComponentProps < typeof DialogPrimitive . Close > ) {
28- return < DialogPrimitive . Close data-slot = "dialog-close" { ...props } />
28+ return < DialogPrimitive . Close data-slot = "dialog-close" { ...props } /> ;
2929}
3030
3131function DialogOverlay ( {
@@ -37,11 +37,11 @@ function DialogOverlay({
3737 data-slot = "dialog-overlay"
3838 className = { cn (
3939 "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50" ,
40- className
40+ className ,
4141 ) }
4242 { ...props }
4343 />
44- )
44+ ) ;
4545}
4646
4747function DialogContent ( {
@@ -50,7 +50,7 @@ function DialogContent({
5050 showCloseButton = true ,
5151 ...props
5252} : React . ComponentProps < typeof DialogPrimitive . Content > & {
53- showCloseButton ?: boolean
53+ showCloseButton ?: boolean ;
5454} ) {
5555 return (
5656 < DialogPortal data-slot = "dialog-portal" >
@@ -59,7 +59,7 @@ function DialogContent({
5959 data-slot = "dialog-content"
6060 className = { cn (
6161 "bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg" ,
62- className
62+ className ,
6363 ) }
6464 { ...props }
6565 >
@@ -75,7 +75,7 @@ function DialogContent({
7575 ) }
7676 </ DialogPrimitive . Content >
7777 </ DialogPortal >
78- )
78+ ) ;
7979}
8080
8181function DialogHeader ( { className, ...props } : React . ComponentProps < "div" > ) {
@@ -85,7 +85,7 @@ function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {
8585 className = { cn ( "flex flex-col gap-2 text-center sm:text-left" , className ) }
8686 { ...props }
8787 />
88- )
88+ ) ;
8989}
9090
9191function DialogFooter ( { className, ...props } : React . ComponentProps < "div" > ) {
@@ -94,11 +94,11 @@ function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {
9494 data-slot = "dialog-footer"
9595 className = { cn (
9696 "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" ,
97- className
97+ className ,
9898 ) }
9999 { ...props }
100100 />
101- )
101+ ) ;
102102}
103103
104104function DialogTitle ( {
@@ -111,7 +111,7 @@ function DialogTitle({
111111 className = { cn ( "text-lg leading-none font-semibold" , className ) }
112112 { ...props }
113113 />
114- )
114+ ) ;
115115}
116116
117117function DialogDescription ( {
@@ -124,7 +124,7 @@ function DialogDescription({
124124 className = { cn ( "text-muted-foreground text-sm" , className ) }
125125 { ...props }
126126 />
127- )
127+ ) ;
128128}
129129
130130export {
@@ -138,4 +138,4 @@ export {
138138 DialogPortal ,
139139 DialogTitle ,
140140 DialogTrigger ,
141- }
141+ } ;
0 commit comments