import * as React from "react"; import { DismissableLayer } from "@radix-ui/react-dismissable-layer"; import { FocusScope } from "@radix-ui/react-focus-scope"; import { Portal as _Portal1 } from "@radix-ui/react-portal"; import * as Radix from "@radix-ui/react-primitive"; import { Primitive } from "@radix-ui/react-primitive"; export const createDialogScope: import("@radix-ui/react-context").CreateScope; export interface DialogProps { children?: React.ReactNode; open?: boolean; defaultOpen?: boolean; onOpenChange?(open: boolean): void; modal?: boolean; } export const Dialog: React.FC; type PrimitiveButtonProps = Radix.ComponentPropsWithoutRef; export interface DialogTriggerProps extends PrimitiveButtonProps { } export const DialogTrigger: React.ForwardRefExoticComponent>; type PortalProps = React.ComponentPropsWithoutRef; export interface DialogPortalProps { children?: React.ReactNode; /** * Specify a container element to portal the content into. */ container?: PortalProps['container']; /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } export const DialogPortal: React.FC; export interface DialogOverlayProps extends DialogOverlayImplProps { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } export const DialogOverlay: React.ForwardRefExoticComponent>; type PrimitiveDivProps = Radix.ComponentPropsWithoutRef; interface DialogOverlayImplProps extends PrimitiveDivProps { } export interface DialogContentProps extends DialogContentTypeProps { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } export const DialogContent: React.ForwardRefExoticComponent>; interface DialogContentTypeProps extends Omit { } type DismissableLayerProps = Radix.ComponentPropsWithoutRef; type FocusScopeProps = Radix.ComponentPropsWithoutRef; interface DialogContentImplProps extends Omit { /** * When `true`, focus cannot escape the `Content` via keyboard, * pointer, or a programmatic focus. * @defaultValue false */ trapFocus?: FocusScopeProps['trapped']; /** * Event handler called when auto-focusing on open. * Can be prevented. */ onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus']; /** * Event handler called when auto-focusing on close. * Can be prevented. */ onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus']; } type PrimitiveHeading2Props = Radix.ComponentPropsWithoutRef; export interface DialogTitleProps extends PrimitiveHeading2Props { } export const DialogTitle: React.ForwardRefExoticComponent>; type PrimitiveParagraphProps = Radix.ComponentPropsWithoutRef; export interface DialogDescriptionProps extends PrimitiveParagraphProps { } export const DialogDescription: React.ForwardRefExoticComponent>; export interface DialogCloseProps extends PrimitiveButtonProps { } export const DialogClose: React.ForwardRefExoticComponent>; export const WarningProvider: { (props: { contentName: string; titleName: string; docsSlug: string; } & { children: React.ReactNode; }): JSX.Element; displayName: string; }; export const Root: React.FC; export const Trigger: React.ForwardRefExoticComponent>; export const Portal: React.FC; export const Overlay: React.ForwardRefExoticComponent>; export const Content: React.ForwardRefExoticComponent>; export const Title: React.ForwardRefExoticComponent>; export const Description: React.ForwardRefExoticComponent>; export const Close: React.ForwardRefExoticComponent>; //# sourceMappingURL=index.d.ts.map