@@ -36,7 +36,7 @@ AlertDialog.displayName = ROOT_NAME;
36
36
* -----------------------------------------------------------------------------------------------*/
37
37
const TRIGGER_NAME = 'AlertDialogTrigger' ;
38
38
39
- type AlertDialogTriggerElement = React . ElementRef < typeof DialogPrimitive . Trigger > ;
39
+ type AlertDialogTriggerElement = React . ComponentRef < typeof DialogPrimitive . Trigger > ;
40
40
type DialogTriggerProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Trigger > ;
41
41
interface AlertDialogTriggerProps extends DialogTriggerProps { }
42
42
@@ -75,7 +75,7 @@ AlertDialogPortal.displayName = PORTAL_NAME;
75
75
76
76
const OVERLAY_NAME = 'AlertDialogOverlay' ;
77
77
78
- type AlertDialogOverlayElement = React . ElementRef < typeof DialogPrimitive . Overlay > ;
78
+ type AlertDialogOverlayElement = React . ComponentRef < typeof DialogPrimitive . Overlay > ;
79
79
type DialogOverlayProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Overlay > ;
80
80
interface AlertDialogOverlayProps extends DialogOverlayProps { }
81
81
@@ -102,7 +102,7 @@ type AlertDialogContentContextValue = {
102
102
const [ AlertDialogContentProvider , useAlertDialogContentContext ] =
103
103
createAlertDialogContext < AlertDialogContentContextValue > ( CONTENT_NAME ) ;
104
104
105
- type AlertDialogContentElement = React . ElementRef < typeof DialogPrimitive . Content > ;
105
+ type AlertDialogContentElement = React . ComponentRef < typeof DialogPrimitive . Content > ;
106
106
type DialogContentProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Content > ;
107
107
interface AlertDialogContentProps
108
108
extends Omit < DialogContentProps , 'onPointerDownOutside' | 'onInteractOutside' > { }
@@ -161,7 +161,7 @@ AlertDialogContent.displayName = CONTENT_NAME;
161
161
162
162
const TITLE_NAME = 'AlertDialogTitle' ;
163
163
164
- type AlertDialogTitleElement = React . ElementRef < typeof DialogPrimitive . Title > ;
164
+ type AlertDialogTitleElement = React . ComponentRef < typeof DialogPrimitive . Title > ;
165
165
type DialogTitleProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Title > ;
166
166
interface AlertDialogTitleProps extends DialogTitleProps { }
167
167
@@ -181,7 +181,7 @@ AlertDialogTitle.displayName = TITLE_NAME;
181
181
182
182
const DESCRIPTION_NAME = 'AlertDialogDescription' ;
183
183
184
- type AlertDialogDescriptionElement = React . ElementRef < typeof DialogPrimitive . Description > ;
184
+ type AlertDialogDescriptionElement = React . ComponentRef < typeof DialogPrimitive . Description > ;
185
185
type DialogDescriptionProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Description > ;
186
186
interface AlertDialogDescriptionProps extends DialogDescriptionProps { }
187
187
@@ -202,7 +202,7 @@ AlertDialogDescription.displayName = DESCRIPTION_NAME;
202
202
203
203
const ACTION_NAME = 'AlertDialogAction' ;
204
204
205
- type AlertDialogActionElement = React . ElementRef < typeof DialogPrimitive . Close > ;
205
+ type AlertDialogActionElement = React . ComponentRef < typeof DialogPrimitive . Close > ;
206
206
type DialogCloseProps = React . ComponentPropsWithoutRef < typeof DialogPrimitive . Close > ;
207
207
interface AlertDialogActionProps extends DialogCloseProps { }
208
208
@@ -222,7 +222,7 @@ AlertDialogAction.displayName = ACTION_NAME;
222
222
223
223
const CANCEL_NAME = 'AlertDialogCancel' ;
224
224
225
- type AlertDialogCancelElement = React . ElementRef < typeof DialogPrimitive . Close > ;
225
+ type AlertDialogCancelElement = React . ComponentRef < typeof DialogPrimitive . Close > ;
226
226
interface AlertDialogCancelProps extends DialogCloseProps { }
227
227
228
228
const AlertDialogCancel = React . forwardRef < AlertDialogCancelElement , AlertDialogCancelProps > (
0 commit comments