Adds DialogPopup wrapper component for dialog popups with data-slot attribute. Re-exports full Dialog component set from plugins index.
Unified · Split
| @@ -145,6 +145,10 @@ function DialogDescription({ · 144 unmodified lines | ||
| 145 | 145 | ) |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | +function DialogPopup({ ...props }: DialogPrimitive.Popup.Props) { | |
| 149 | + return <DialogPrimitive.Popup data-slot="dialog-popup" {...props} /> | |
| 150 | +} | |
| 151 | + | |
| 148 | 152 | export { |
| 149 | 153 | Dialog, |
| 150 | 154 | DialogClose, |
| @@ -153,6 +157,7 @@ export { · 2 unmodified lines | ||
| 153 | 157 | DialogFooter, |
| 154 | 158 | DialogHeader, |
| 155 | 159 | DialogOverlay, |
| 160 | + DialogPopup, | |
| 156 | 161 | DialogPortal, |
| 157 | 162 | DialogTitle, |
| 158 | 163 | DialogTrigger, |
| @@ -116,3 +116,4 @@ export { Separator } from "./components/ui/separator"; · 115 unmodified lines | ||
| 116 | 116 | export { Textarea } from "./components/ui/textarea"; |
| 117 | 117 | export { Popover, PopoverContent, PopoverTrigger } from "./components/ui/popover"; |
| 118 | 118 | export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator } from "./components/ui/command"; |
| 119 | +export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPopup, DialogPortal, DialogTitle, DialogTrigger } from "./components/ui/dialog"; | |