react-material-overlay
Version:
A fully featured Material UI implementation of overlays like modals, alert dialogs, lightboxes, and bottom sheets featuring easy stack management and browser history integration
16 lines • 904 B
TypeScript
import type { Id, Notify } from '../../types';
import { BottomSheetContent, IBottomSheet, IBottomSheetDefaultOptions, INotValidatedBottomSheetProps } from './types';
export type ContainerObserver = ReturnType<typeof createContainerObserver>;
export declare function createContainerObserver(id: Id, containerDefaultOptions: IBottomSheetDefaultOptions): {
id: Id;
defaultOptions: IBottomSheetDefaultOptions;
observe: (notify: Notify) => () => boolean;
popBottomSheet: () => void;
pushBottomSheet: (bottomSheet: IBottomSheet) => Promise<void>;
readonly bottomSheetCount: number;
buildBottomSheet: (content: BottomSheetContent, options: INotValidatedBottomSheetProps) => IBottomSheet;
setDefaultOptions(d: IBottomSheetDefaultOptions): void;
isBottomSheetActive: (id: Id) => boolean;
getSnapshot: () => IBottomSheet[];
};
//# sourceMappingURL=containerObserver.d.ts.map