@@ -6,7 +6,6 @@ import { createDialogScope } from '@radix-ui/react-dialog';
66import { composeEventHandlers } from '@radix-ui/primitive' ;
77import { Slottable } from '@radix-ui/react-slot' ;
88
9- import type * as Radix from '@radix-ui/react-primitive' ;
109import type { Scope } from '@radix-ui/react-context' ;
1110
1211/* -------------------------------------------------------------------------------------------------
@@ -21,7 +20,7 @@ const [createAlertDialogContext, createAlertDialogScope] = createContextScope(RO
2120] ) ;
2221const useDialogScope = createDialogScope ( ) ;
2322
24- type DialogProps = Radix . ComponentPropsWithoutRef < typeof DialogPrimitive . Root > ;
23+ type DialogProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Root > ;
2524interface AlertDialogProps extends Omit < DialogProps , 'modal' > { }
2625
2726const AlertDialog : React . FC < AlertDialogProps > = ( props : ScopedProps < AlertDialogProps > ) => {
@@ -38,7 +37,7 @@ AlertDialog.displayName = ROOT_NAME;
3837const TRIGGER_NAME = 'AlertDialogTrigger' ;
3938
4039type AlertDialogTriggerElement = React . ElementRef < typeof DialogPrimitive . Trigger > ;
41- type DialogTriggerProps = Radix . ComponentPropsWithoutRef < typeof DialogPrimitive . Trigger > ;
40+ type DialogTriggerProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Trigger > ;
4241interface AlertDialogTriggerProps extends DialogTriggerProps { }
4342
4443const AlertDialogTrigger = React . forwardRef < AlertDialogTriggerElement , AlertDialogTriggerProps > (
@@ -57,7 +56,7 @@ AlertDialogTrigger.displayName = TRIGGER_NAME;
5756
5857const PORTAL_NAME = 'AlertDialogPortal' ;
5958
60- type DialogPortalProps = Radix . ComponentPropsWithoutRef < typeof DialogPrimitive . Portal > ;
59+ type DialogPortalProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Portal > ;
6160interface AlertDialogPortalProps extends DialogPortalProps { }
6261
6362const AlertDialogPortal : React . FC < AlertDialogPortalProps > = (
@@ -77,7 +76,7 @@ AlertDialogPortal.displayName = PORTAL_NAME;
7776const OVERLAY_NAME = 'AlertDialogOverlay' ;
7877
7978type AlertDialogOverlayElement = React . ElementRef < typeof DialogPrimitive . Overlay > ;
80- type DialogOverlayProps = Radix . ComponentPropsWithoutRef < typeof DialogPrimitive . Overlay > ;
79+ type DialogOverlayProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Overlay > ;
8180interface AlertDialogOverlayProps extends DialogOverlayProps { }
8281
8382const AlertDialogOverlay = React . forwardRef < AlertDialogOverlayElement , AlertDialogOverlayProps > (
@@ -104,7 +103,7 @@ const [AlertDialogContentProvider, useAlertDialogContentContext] =
104103 createAlertDialogContext < AlertDialogContentContextValue > ( CONTENT_NAME ) ;
105104
106105type AlertDialogContentElement = React . ElementRef < typeof DialogPrimitive . Content > ;
107- type DialogContentProps = Radix . ComponentPropsWithoutRef < typeof DialogPrimitive . Content > ;
106+ type DialogContentProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Content > ;
108107interface AlertDialogContentProps
109108 extends Omit < DialogContentProps , 'onPointerDownOutside' | 'onInteractOutside' > { }
110109
@@ -161,7 +160,7 @@ AlertDialogContent.displayName = CONTENT_NAME;
161160const TITLE_NAME = 'AlertDialogTitle' ;
162161
163162type AlertDialogTitleElement = React . ElementRef < typeof DialogPrimitive . Title > ;
164- type DialogTitleProps = Radix . ComponentPropsWithoutRef < typeof DialogPrimitive . Title > ;
163+ type DialogTitleProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Title > ;
165164interface AlertDialogTitleProps extends DialogTitleProps { }
166165
167166const AlertDialogTitle = React . forwardRef < AlertDialogTitleElement , AlertDialogTitleProps > (
@@ -181,7 +180,7 @@ AlertDialogTitle.displayName = TITLE_NAME;
181180const DESCRIPTION_NAME = 'AlertDialogDescription' ;
182181
183182type AlertDialogDescriptionElement = React . ElementRef < typeof DialogPrimitive . Description > ;
184- type DialogDescriptionProps = Radix . ComponentPropsWithoutRef < typeof DialogPrimitive . Description > ;
183+ type DialogDescriptionProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Description > ;
185184interface AlertDialogDescriptionProps extends DialogDescriptionProps { }
186185
187186const AlertDialogDescription = React . forwardRef <
@@ -202,7 +201,7 @@ AlertDialogDescription.displayName = DESCRIPTION_NAME;
202201const ACTION_NAME = 'AlertDialogAction' ;
203202
204203type AlertDialogActionElement = React . ElementRef < typeof DialogPrimitive . Close > ;
205- type DialogCloseProps = Radix . ComponentPropsWithoutRef < typeof DialogPrimitive . Close > ;
204+ type DialogCloseProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Close > ;
206205interface AlertDialogActionProps extends DialogCloseProps { }
207206
208207const AlertDialogAction = React . forwardRef < AlertDialogActionElement , AlertDialogActionProps > (
0 commit comments