UNPKG

@loke/ui

Version:
78 lines (77 loc) • 4.7 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>> & { displayName: string; }; 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>> & { displayName: string; }; type DialogContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Content>; interface AlertDialogContentProps extends Omit<DialogContentProps, "onPointerDownOutside" | "onInteractOutside"> { } declare const AlertDialogContent: import("react").ForwardRefExoticComponent<AlertDialogContentProps & import("react").RefAttributes<HTMLDivElement>> & { displayName: string; }; type DialogTitleProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Title>; interface AlertDialogTitleProps extends DialogTitleProps { } declare const AlertDialogTitle: import("react").ForwardRefExoticComponent<AlertDialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>> & { displayName: string; }; type DialogDescriptionProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Description>; interface AlertDialogDescriptionProps extends DialogDescriptionProps { } declare const AlertDialogDescription: import("react").ForwardRefExoticComponent<AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>> & { displayName: string; }; type DialogCloseProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Close>; interface AlertDialogActionProps extends DialogCloseProps { } declare const AlertDialogAction: import("react").ForwardRefExoticComponent<AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>> & { displayName: string; }; interface AlertDialogCancelProps extends DialogCloseProps { } declare const AlertDialogCancel: import("react").ForwardRefExoticComponent<AlertDialogCancelProps & import("react").RefAttributes<HTMLButtonElement>> & { displayName: string; }; declare const Root: FC<AlertDialogProps>; declare const Trigger: import("react").ForwardRefExoticComponent<AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>> & { displayName: string; }; declare const Portal: FC<AlertDialogPortalProps>; declare const Overlay: import("react").ForwardRefExoticComponent<AlertDialogOverlayProps & import("react").RefAttributes<HTMLDivElement>> & { displayName: string; }; declare const Content: import("react").ForwardRefExoticComponent<AlertDialogContentProps & import("react").RefAttributes<HTMLDivElement>> & { displayName: string; }; declare const Action: import("react").ForwardRefExoticComponent<AlertDialogActionProps & import("react").RefAttributes<HTMLButtonElement>> & { displayName: string; }; declare const Cancel: import("react").ForwardRefExoticComponent<AlertDialogCancelProps & import("react").RefAttributes<HTMLButtonElement>> & { displayName: string; }; declare const Title: import("react").ForwardRefExoticComponent<AlertDialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>> & { displayName: string; }; declare const Description: import("react").ForwardRefExoticComponent<AlertDialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>> & { displayName: string; }; export type { AlertDialogActionProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogDescriptionProps, AlertDialogOverlayProps, AlertDialogPortalProps, AlertDialogProps, AlertDialogTitleProps, AlertDialogTriggerProps, }; export { Action, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Cancel, Content, createAlertDialogScope, Description, Overlay, Portal, Root, Title, Trigger, };