Files
Brandon Thomas 0daf83dba9 mirror repo (WIP)
Need to remove secrets before entire repo can be made public.
2025-09-18 22:45:56 -04:00

50 lines
1.8 KiB
TypeScript

import { ReactNode } from 'react';
import { IconDefinition } from '@fortawesome/pro-solid-svg-icons';
declare global {
interface Window {
__modalEscListenerInstalled?: boolean;
}
}
interface ExpandButtonProps {
className?: string;
size?: "sm" | "md" | "lg";
}
export declare const Modal: {
({ isOpen, title, titleIcon, onTitleIconClick, onClose, enableHotkeyInput, disableHotkeyInput, className, backdropClassName, width, children, childPadding, titleIconClassName, showClose, draggable, resizable, initialPosition, closeOnOutsideClick, closeOnEsc, allowBackgroundInteraction, expandable, accessibleTitle, accessibleDescription, }: {
isOpen: boolean;
title?: ReactNode;
titleIcon?: IconDefinition;
onTitleIconClick?: () => void;
titleIconClassName?: string;
onClose: () => void;
className?: string;
backdropClassName?: string;
width?: number;
children: ReactNode;
childPadding?: boolean;
showClose?: boolean;
draggable?: boolean;
resizable?: boolean;
disableHotkeyInput?: (level: number) => void;
enableHotkeyInput?: (level: number) => void;
initialPosition?: {
x: number;
y: number;
};
closeOnOutsideClick?: boolean;
closeOnEsc?: boolean;
allowBackgroundInteraction?: boolean;
expandable?: boolean;
accessibleTitle?: string;
accessibleDescription?: string;
}): import("react/jsx-runtime").JSX.Element;
DragHandle: ({ children }: {
children: ReactNode;
}) => import("react/jsx-runtime").JSX.Element;
ExpandButton: {
({ className, size }: ExpandButtonProps): import("react/jsx-runtime").JSX.Element | null;
displayName: string;
};
};
export {};
//# sourceMappingURL=modal.d.ts.map