@@ -5,28 +5,23 @@ import * as DialogPrimitive from "@radix-ui/react-dialog";
55import { XIcon } from "lucide-react" ;
66import * as React from "react" ;
77
8- type WithClassAndChildren = { className ?: string ; children ?: React . ReactNode } ;
9-
10- function Dialog ( { ...props } : React . ComponentProps < typeof DialogPrimitive . Root > & WithClassAndChildren ) {
8+ function Dialog ( { ...props } : React . ComponentProps < typeof DialogPrimitive . Root > ) {
119 return < DialogPrimitive . Root data-slot = "dialog" { ...props } /> ;
1210}
1311
14- function DialogTrigger ( { ...props } : React . ComponentProps < typeof DialogPrimitive . Trigger > & WithClassAndChildren ) {
12+ function DialogTrigger ( { ...props } : React . ComponentProps < typeof DialogPrimitive . Trigger > ) {
1513 return < DialogPrimitive . Trigger data-slot = "dialog-trigger" { ...props } /> ;
1614}
1715
18- function DialogPortal ( { ...props } : React . ComponentProps < typeof DialogPrimitive . Portal > & WithClassAndChildren ) {
16+ function DialogPortal ( { ...props } : React . ComponentProps < typeof DialogPrimitive . Portal > ) {
1917 return < DialogPrimitive . Portal data-slot = "dialog-portal" { ...props } /> ;
2018}
2119
22- function DialogClose ( { ...props } : React . ComponentProps < typeof DialogPrimitive . Close > & WithClassAndChildren ) {
20+ function DialogClose ( { ...props } : React . ComponentProps < typeof DialogPrimitive . Close > ) {
2321 return < DialogPrimitive . Close data-slot = "dialog-close" { ...props } /> ;
2422}
2523
26- function DialogOverlay ( {
27- className,
28- ...props
29- } : React . ComponentProps < typeof DialogPrimitive . Overlay > & WithClassAndChildren ) {
24+ function DialogOverlay ( { className, ...props } : React . ComponentProps < typeof DialogPrimitive . Overlay > ) {
3025 return (
3126 < DialogPrimitive . Overlay
3227 data-slot = "dialog-overlay"
@@ -44,10 +39,9 @@ function DialogContent({
4439 children,
4540 showCloseButton = true ,
4641 ...props
47- } : React . ComponentProps < typeof DialogPrimitive . Content > &
48- WithClassAndChildren & {
49- showCloseButton ?: boolean ;
50- } ) {
42+ } : React . ComponentProps < typeof DialogPrimitive . Content > & {
43+ showCloseButton ?: boolean ;
44+ } ) {
5145 return (
5246 < DialogPortal data-slot = "dialog-portal" >
5347 < DialogOverlay />
@@ -94,10 +88,7 @@ function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {
9488 ) ;
9589}
9690
97- function DialogTitle ( {
98- className,
99- ...props
100- } : React . ComponentProps < typeof DialogPrimitive . Title > & WithClassAndChildren ) {
91+ function DialogTitle ( { className, ...props } : React . ComponentProps < typeof DialogPrimitive . Title > ) {
10192 return (
10293 < DialogPrimitive . Title
10394 data-slot = "dialog-title"
@@ -107,10 +98,7 @@ function DialogTitle({
10798 ) ;
10899}
109100
110- function DialogDescription ( {
111- className,
112- ...props
113- } : React . ComponentProps < typeof DialogPrimitive . Description > & WithClassAndChildren ) {
101+ function DialogDescription ( { className, ...props } : React . ComponentProps < typeof DialogPrimitive . Description > ) {
114102 return (
115103 < DialogPrimitive . Description
116104 data-slot = "dialog-description"
0 commit comments