bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
37 lines (36 loc) • 1.44 kB
TypeScript
import type { ModalProps } from "@mantine/core";
import type { ComponentProps } from "react";
import { OverlayModal } from "../../ui/modals/debug/OverlayModal";
import { CreateModal } from "../../ui/modules/data/components/schema/create-modal/CreateModal";
import { DebugModal } from "./debug/DebugModal";
import { SchemaFormModal } from "./debug/SchemaFormModal";
import { TestModal } from "./debug/TestModal";
import { MediaInfoModal } from "../../ui/modals/media/MediaInfoModal";
declare const modals: {
test: typeof TestModal;
debug: typeof DebugModal;
form: typeof SchemaFormModal;
overlay: typeof OverlayModal;
dataCreate: typeof CreateModal;
mediaInfo: typeof MediaInfoModal;
};
declare module "@mantine/modals" {
interface MantineModalsOverride {
modals: typeof modals;
}
}
export declare function BkndModalsProvider({ children }: {
children: any;
}): import("react/jsx-runtime").JSX.Element;
declare function open<Modal extends keyof typeof modals>(modal: Modal, innerProps: ComponentProps<(typeof modals)[Modal]>["innerProps"], { title: _title, ...modalProps }?: Partial<ModalProps>): {
close: () => void;
closeAll: () => void;
};
declare function close<Modal extends keyof typeof modals>(modal: Modal): void;
export declare const bkndModals: {
ids: { [K in keyof typeof modals]: K; };
open: typeof open;
close: typeof close;
closeAll: () => void;
};
export {};