History

feat(plugins): add DialogPopup component

Adds DialogPopup wrapper component for dialog popups with data-slot attribute. Re-exports full Dialog component set from plugins index.

Saatvik Arya committed 7 months ago

Commit e8209cb1 parent 17ab9312 files · +6 −0Browse files

Unified · Split

2 files
  1. packages/clients/react/src/plugins/components/ui/dialog.tsx +5 −0
  2. packages/clients/react/src/plugins/index.ts +1 −0
packages/clients/react/src/plugins/components/ui/dialog.tsx+5−0
@@ -145,6 +145,10 @@ function DialogDescription({ · 144 unmodified lines
145 )145 )
146}146}
147 147
148function DialogPopup({ ...props }: DialogPrimitive.Popup.Props) {
149 return <DialogPrimitive.Popup data-slot="dialog-popup" {...props} />
150}
151
148export {152export {
149 Dialog,153 Dialog,
150 DialogClose,154 DialogClose,
@@ -153,6 +157,7 @@ export { · 2 unmodified lines
153 DialogFooter,157 DialogFooter,
154 DialogHeader,158 DialogHeader,
155 DialogOverlay,159 DialogOverlay,
160 DialogPopup,
156 DialogPortal,161 DialogPortal,
157 DialogTitle,162 DialogTitle,
158 DialogTrigger,163 DialogTrigger,
packages/clients/react/src/plugins/index.ts+1−0
@@ -116,3 +116,4 @@ export { Separator } from "./components/ui/separator"; · 115 unmodified lines
116export { Textarea } from "./components/ui/textarea";116export { Textarea } from "./components/ui/textarea";
117export { Popover, PopoverContent, PopoverTrigger } from "./components/ui/popover";117export { Popover, PopoverContent, PopoverTrigger } from "./components/ui/popover";
118export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator } from "./components/ui/command";118export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator } from "./components/ui/command";
119export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPopup, DialogPortal, DialogTitle, DialogTrigger } from "./components/ui/dialog";