1- "use client"
1+ "use client" ;
22
3- import * as React from "react"
4- import * as SheetPrimitive from "@radix-ui/react-dialog"
5- import { cva , type VariantProps } from "class-variance-authority"
6- import { X } from "lucide-react"
3+ import * as React from "react" ;
4+ import * as SheetPrimitive from "@radix-ui/react-dialog" ;
5+ import { cva , type VariantProps } from "class-variance-authority" ;
6+ import { X } from "lucide-react" ;
77
8- import { cn } from "@/lib/utils"
8+ import { cn } from "@/lib/utils" ;
99
10- const Sheet = SheetPrimitive . Root
10+ const Sheet = SheetPrimitive . Root ;
1111
12- const SheetTrigger = SheetPrimitive . Trigger
12+ const SheetTrigger = SheetPrimitive . Trigger ;
1313
14- const SheetClose = SheetPrimitive . Close
14+ const SheetClose = SheetPrimitive . Close ;
1515
16- const SheetPortal = SheetPrimitive . Portal
16+ const SheetPortal = SheetPrimitive . Portal ;
1717
1818const SheetOverlay = React . forwardRef <
1919 React . ElementRef < typeof SheetPrimitive . Overlay > ,
@@ -27,8 +27,8 @@ const SheetOverlay = React.forwardRef<
2727 { ...props }
2828 ref = { ref }
2929 />
30- ) )
31- SheetOverlay . displayName = SheetPrimitive . Overlay . displayName
30+ ) ) ;
31+ SheetOverlay . displayName = SheetPrimitive . Overlay . displayName ;
3232
3333const sheetVariants = cva (
3434 "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500" ,
@@ -47,7 +47,7 @@ const sheetVariants = cva(
4747 side : "right" ,
4848 } ,
4949 }
50- )
50+ ) ;
5151
5252interface SheetContentProps
5353 extends React . ComponentPropsWithoutRef < typeof SheetPrimitive . Content > ,
@@ -65,14 +65,14 @@ const SheetContent = React.forwardRef<
6565 { ...props }
6666 >
6767 { children }
68- < SheetPrimitive . Close className = "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary" >
68+ { /* <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
6969 <X className="h-4 w-4" />
7070 <span className="sr-only">Close</span>
71- </ SheetPrimitive . Close >
71+ </SheetPrimitive.Close> */ }
7272 </ SheetPrimitive . Content >
7373 </ SheetPortal >
74- ) )
75- SheetContent . displayName = SheetPrimitive . Content . displayName
74+ ) ) ;
75+ SheetContent . displayName = SheetPrimitive . Content . displayName ;
7676
7777const SheetHeader = ( {
7878 className,
@@ -85,8 +85,8 @@ const SheetHeader = ({
8585 ) }
8686 { ...props }
8787 />
88- )
89- SheetHeader . displayName = "SheetHeader"
88+ ) ;
89+ SheetHeader . displayName = "SheetHeader" ;
9090
9191const SheetFooter = ( {
9292 className,
@@ -99,8 +99,8 @@ const SheetFooter = ({
9999 ) }
100100 { ...props }
101101 />
102- )
103- SheetFooter . displayName = "SheetFooter"
102+ ) ;
103+ SheetFooter . displayName = "SheetFooter" ;
104104
105105const SheetTitle = React . forwardRef <
106106 React . ElementRef < typeof SheetPrimitive . Title > ,
@@ -111,8 +111,8 @@ const SheetTitle = React.forwardRef<
111111 className = { cn ( "text-lg font-semibold text-foreground" , className ) }
112112 { ...props }
113113 />
114- ) )
115- SheetTitle . displayName = SheetPrimitive . Title . displayName
114+ ) ) ;
115+ SheetTitle . displayName = SheetPrimitive . Title . displayName ;
116116
117117const SheetDescription = React . forwardRef <
118118 React . ElementRef < typeof SheetPrimitive . Description > ,
@@ -123,8 +123,8 @@ const SheetDescription = React.forwardRef<
123123 className = { cn ( "text-sm text-muted-foreground" , className ) }
124124 { ...props }
125125 />
126- ) )
127- SheetDescription . displayName = SheetPrimitive . Description . displayName
126+ ) ) ;
127+ SheetDescription . displayName = SheetPrimitive . Description . displayName ;
128128
129129export {
130130 Sheet ,
@@ -137,4 +137,4 @@ export {
137137 SheetFooter ,
138138 SheetTitle ,
139139 SheetDescription ,
140- }
140+ } ;
0 commit comments