import { n as Scope } from "./create-context-CKMcRGBM.js"; import { t as IDirection } from "./direction.types-Cxja_joX.js"; import { t as Primitive } from "./primitive-elements-fih1b6xg.js"; import { t as DismissableLayer } from "./dismissable-layer-DkA49cNy.js"; import { t as FocusScope } from "./focus-scope-fAfYoUL1.js"; import { t as Portal } from "./portal-BUyCz8Ac.js"; import * as React$1 from "react"; //#region src/dialog/dialog.types.d.ts declare namespace IDialog { export type IScoped = TProps & { __scopeDialog?: Scope; }; export type DialogContentElement = HTMLDivElement; export interface IContext { triggerRef: React$1.RefObject; contentRef: React$1.RefObject; contentId: string; titleId: string; descriptionId: string; open: boolean; onOpenChange(open: boolean): void; onOpenToggle(): void; modal: boolean; dir: IDirection.Kind; } export interface IProps { children?: React$1.ReactNode; open?: boolean; defaultOpen?: boolean; onOpenChange?(open: boolean): void; modal?: boolean; dir?: IDirection.Kind; } type PrimitiveButtonProps = React$1.ComponentPropsWithoutRef; type PrimitiveDivProps = React$1.ComponentPropsWithoutRef; type PrimitiveHeading2Props = React$1.ComponentPropsWithoutRef; type PrimitiveParagraphProps = React$1.ComponentPropsWithoutRef; export interface ICloseProps extends PrimitiveButtonProps {} export interface ITriggerProps extends PrimitiveButtonProps {} export interface ITitleProps extends PrimitiveHeading2Props {} export interface IDescriptionProps extends PrimitiveParagraphProps {} type DismissableLayerProps = React$1.ComponentPropsWithoutRef; type FocusScopeProps = React$1.ComponentPropsWithoutRef; export interface IContentImplProps extends Omit { trapFocus?: FocusScopeProps['trapped']; onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus']; onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus']; } export interface IContentTypeProps extends Omit { trapFocus?: FocusScopeProps['trapped']; disableOutsidePointerEvents?: DismissableLayerProps['disableOutsidePointerEvents']; } export interface IContentProps extends IContentTypeProps { forceMount?: true; } export interface IOverlayImplProps extends PrimitiveDivProps { lockScroll?: boolean; } export interface IOverlayProps extends IOverlayImplProps { forceMount?: true; } type PortalProps = React$1.ComponentPropsWithoutRef; export interface IPortalProps { children?: React$1.ReactNode | undefined; container?: PortalProps['container'] | undefined; forceMount?: true | undefined; } export interface IPortalContext { forceMount?: true | undefined; } export {}; } //#endregion export { IDialog as t };