UNPKG

@loke/ui

Version:
50 lines (49 loc) 4.27 kB
import * as DialogPrimitive from "@loke/ui/dialog"; import { type ComponentPropsWithoutRef, type FC } from "react"; declare const createAlertDialogScope: import("@loke/ui/context").CreateScope; type DialogProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Root>; interface AlertDialogProps extends Omit<DialogProps, "modal"> { } declare const AlertDialog: FC<AlertDialogProps>; type DialogTriggerProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>; interface AlertDialogTriggerProps extends DialogTriggerProps { } declare const AlertDialogTrigger: import("react").ForwardRefExoticComponent<AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>; type DialogPortalProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>; interface AlertDialogPortalProps extends DialogPortalProps { } declare const AlertDialogPortal: FC<AlertDialogPortalProps>; type DialogOverlayProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>; interface AlertDialogOverlayProps extends DialogOverlayProps { } declare const AlertDialogOverlay: import("react").ForwardRefExoticComponent<AlertDialogOverlayProps & import("react").RefAttributes<HTMLDivElement>>; type DialogContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Content>; interface AlertDialogContentProps extends Omit<DialogContentProps, "onPointerDownOutside" | "onInteractOutside"> { } declare const AlertDialogContent: import("react").ForwardRefExoticComponent<AlertDialogContentProps & import("react").RefAttributes<HTMLDivElement>>; type DialogTitleProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Title>; interface AlertDialogTitleProps extends DialogTitleProps { } declare const AlertDialogTitle: import("react").ForwardRefExoticComponent<AlertDialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>; type DialogDescriptionProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Description>; interface AlertDialogDescriptionProps extends DialogDescriptionProps { } declare const AlertDialogDescription: import("react").ForwardRefExoticComponent<AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>; type DialogCloseProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Close>; interface AlertDialogActionProps extends DialogCloseProps { } declare const AlertDialogAction: import("react").ForwardRefExoticComponent<AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>>; interface AlertDialogCancelProps extends DialogCloseProps { } declare const AlertDialogCancel: import("react").ForwardRefExoticComponent<AlertDialogCancelProps & import("react").RefAttributes<HTMLButtonElement>>; declare const Root: FC<AlertDialogProps>; declare const Trigger: import("react").ForwardRefExoticComponent<AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>; declare const Portal: FC<AlertDialogPortalProps>; declare const Overlay: import("react").ForwardRefExoticComponent<AlertDialogOverlayProps & import("react").RefAttributes<HTMLDivElement>>; declare const Content: import("react").ForwardRefExoticComponent<AlertDialogContentProps & import("react").RefAttributes<HTMLDivElement>>; declare const Action: import("react").ForwardRefExoticComponent<AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>>; declare const Cancel: import("react").ForwardRefExoticComponent<AlertDialogCancelProps & import("react").RefAttributes<HTMLButtonElement>>; declare const Title: import("react").ForwardRefExoticComponent<AlertDialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>; declare const Description: import("react").ForwardRefExoticComponent<AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>; export { createAlertDialogScope, AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogAction, AlertDialogCancel, AlertDialogTitle, AlertDialogDescription, Root, Trigger, Portal, Overlay, Content, Action, Cancel, Title, Description, }; export type { AlertDialogProps, AlertDialogTriggerProps, AlertDialogPortalProps, AlertDialogOverlayProps, AlertDialogContentProps, AlertDialogActionProps, AlertDialogCancelProps, AlertDialogTitleProps, AlertDialogDescriptionProps, };