File tree 6 files changed +28
-8
lines changed
6 files changed +28
-8
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ const AlertDialog = AlertDialogPrimitive.Root
10
10
11
11
const AlertDialogTrigger = AlertDialogPrimitive . Trigger
12
12
13
+ const AlertDialogPortal = AlertDialogPrimitive . Portal
14
+
13
15
const AlertDialogOverlay = React . forwardRef <
14
16
React . ElementRef < typeof AlertDialogPrimitive . Overlay > ,
15
17
React . ComponentPropsWithoutRef < typeof AlertDialogPrimitive . Overlay >
@@ -29,7 +31,7 @@ const AlertDialogContent = React.forwardRef<
29
31
React . ElementRef < typeof AlertDialogPrimitive . Content > ,
30
32
React . ComponentPropsWithoutRef < typeof AlertDialogPrimitive . Content >
31
33
> ( ( { className, ...props } , ref ) => (
32
- < AlertDialogPrimitive . Portal >
34
+ < AlertDialogPortal >
33
35
< AlertDialogOverlay />
34
36
< AlertDialogPrimitive . Content
35
37
ref = { ref }
@@ -39,7 +41,7 @@ const AlertDialogContent = React.forwardRef<
39
41
) }
40
42
{ ...props }
41
43
/>
42
- </ AlertDialogPrimitive . Portal >
44
+ </ AlertDialogPortal >
43
45
) )
44
46
AlertDialogContent . displayName = AlertDialogPrimitive . Content . displayName
45
47
@@ -126,6 +128,8 @@ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName
126
128
127
129
export {
128
130
AlertDialog ,
131
+ AlertDialogPortal ,
132
+ AlertDialogOverlay ,
129
133
AlertDialogTrigger ,
130
134
AlertDialogContent ,
131
135
AlertDialogHeader ,
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ const Dialog = DialogPrimitive.Root
10
10
11
11
const DialogTrigger = DialogPrimitive . Trigger
12
12
13
+ const DialogPortal = DialogPrimitive . Portal
14
+
13
15
const DialogOverlay = React . forwardRef <
14
16
React . ElementRef < typeof DialogPrimitive . Overlay > ,
15
17
React . ComponentPropsWithoutRef < typeof DialogPrimitive . Overlay >
@@ -29,7 +31,7 @@ const DialogContent = React.forwardRef<
29
31
React . ElementRef < typeof DialogPrimitive . Content > ,
30
32
React . ComponentPropsWithoutRef < typeof DialogPrimitive . Content >
31
33
> ( ( { className, children, ...props } , ref ) => (
32
- < DialogPrimitive . Portal >
34
+ < DialogPortal >
33
35
< DialogOverlay />
34
36
< DialogPrimitive . Content
35
37
ref = { ref }
@@ -45,7 +47,7 @@ const DialogContent = React.forwardRef<
45
47
< span className = "sr-only" > Close</ span >
46
48
</ DialogPrimitive . Close >
47
49
</ DialogPrimitive . Content >
48
- </ DialogPrimitive . Portal >
50
+ </ DialogPortal >
49
51
) )
50
52
DialogContent . displayName = DialogPrimitive . Content . displayName
51
53
@@ -106,6 +108,8 @@ DialogDescription.displayName = DialogPrimitive.Description.displayName
106
108
107
109
export {
108
110
Dialog ,
111
+ DialogPortal ,
112
+ DialogOverlay ,
109
113
DialogTrigger ,
110
114
DialogContent ,
111
115
DialogHeader ,
Original file line number Diff line number Diff line change @@ -134,6 +134,8 @@ SheetDescription.displayName = SheetPrimitive.Description.displayName
134
134
135
135
export {
136
136
Sheet ,
137
+ SheetPortal ,
138
+ SheetOverlay ,
137
139
SheetTrigger ,
138
140
SheetClose ,
139
141
SheetContent ,
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ const AlertDialog = AlertDialogPrimitive.Root
10
10
11
11
const AlertDialogTrigger = AlertDialogPrimitive . Trigger
12
12
13
+ const AlertDialogPortal = AlertDialogPrimitive . Portal
14
+
13
15
const AlertDialogOverlay = React . forwardRef <
14
16
React . ElementRef < typeof AlertDialogPrimitive . Overlay > ,
15
17
React . ComponentPropsWithoutRef < typeof AlertDialogPrimitive . Overlay >
@@ -29,7 +31,7 @@ const AlertDialogContent = React.forwardRef<
29
31
React . ElementRef < typeof AlertDialogPrimitive . Content > ,
30
32
React . ComponentPropsWithoutRef < typeof AlertDialogPrimitive . Content >
31
33
> ( ( { className, ...props } , ref ) => (
32
- < AlertDialogPrimitive . Portal >
34
+ < AlertDialogPortal >
33
35
< AlertDialogOverlay />
34
36
< AlertDialogPrimitive . Content
35
37
ref = { ref }
@@ -39,7 +41,7 @@ const AlertDialogContent = React.forwardRef<
39
41
) }
40
42
{ ...props }
41
43
/>
42
- </ AlertDialogPrimitive . Portal >
44
+ </ AlertDialogPortal >
43
45
) )
44
46
AlertDialogContent . displayName = AlertDialogPrimitive . Content . displayName
45
47
@@ -126,6 +128,8 @@ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName
126
128
127
129
export {
128
130
AlertDialog ,
131
+ AlertDialogPortal ,
132
+ AlertDialogOverlay ,
129
133
AlertDialogTrigger ,
130
134
AlertDialogContent ,
131
135
AlertDialogHeader ,
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ const Dialog = DialogPrimitive.Root
10
10
11
11
const DialogTrigger = DialogPrimitive . Trigger
12
12
13
+ const DialogPortal = DialogPrimitive . Portal
14
+
13
15
const DialogOverlay = React . forwardRef <
14
16
React . ElementRef < typeof DialogPrimitive . Overlay > ,
15
17
React . ComponentPropsWithoutRef < typeof DialogPrimitive . Overlay >
@@ -29,7 +31,7 @@ const DialogContent = React.forwardRef<
29
31
React . ElementRef < typeof DialogPrimitive . Content > ,
30
32
React . ComponentPropsWithoutRef < typeof DialogPrimitive . Content >
31
33
> ( ( { className, children, ...props } , ref ) => (
32
- < DialogPrimitive . Portal >
34
+ < DialogPortal >
33
35
< DialogOverlay />
34
36
< DialogPrimitive . Content
35
37
ref = { ref }
@@ -45,7 +47,7 @@ const DialogContent = React.forwardRef<
45
47
< span className = "sr-only" > Close</ span >
46
48
</ DialogPrimitive . Close >
47
49
</ DialogPrimitive . Content >
48
- </ DialogPrimitive . Portal >
50
+ </ DialogPortal >
49
51
) )
50
52
DialogContent . displayName = DialogPrimitive . Content . displayName
51
53
@@ -106,6 +108,8 @@ DialogDescription.displayName = DialogPrimitive.Description.displayName
106
108
107
109
export {
108
110
Dialog ,
111
+ DialogPortal ,
112
+ DialogOverlay ,
109
113
DialogTrigger ,
110
114
DialogContent ,
111
115
DialogHeader ,
Original file line number Diff line number Diff line change @@ -134,6 +134,8 @@ SheetDescription.displayName = SheetPrimitive.Description.displayName
134
134
135
135
export {
136
136
Sheet ,
137
+ SheetPortal ,
138
+ SheetOverlay ,
137
139
SheetTrigger ,
138
140
SheetClose ,
139
141
SheetContent ,
You can’t perform that action at this time.
0 commit comments