UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

21 lines (20 loc) 1.41 kB
import { type ReactElement } from 'react'; import type { UIntDuration } from '../../../dt/index.js'; import { type UCInput, type UCOPIBase } from '../../../uc/index.js'; import type { RenderUCForm } from './form.js'; import type { RenderUCAutoExecLoader } from './loader.js'; import type { UCPanelCtx, UCPanelOnDone, UCPanelOnError, UCPanelOnInit, UCPanelOnStartSubmitting } from './panel.js'; import type { RenderUCExecTouchable } from './touchable.js'; type Props<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined> = Pick<UCPanelCtx<I, OPI0, OPI1>, 'clearAfterExec' | 'uc'> & { autoExec?: boolean; onDone?: UCPanelOnDone<I, OPI0, OPI1>; onInit?: UCPanelOnInit<I, OPI0, OPI1>; onError?: UCPanelOnError; onStartSubmitting?: UCPanelOnStartSubmitting; renderAutoExecLoader: RenderUCAutoExecLoader; renderExecTouchable: RenderUCExecTouchable<I, OPI0, OPI1>; renderForm: RenderUCForm<I, OPI0, OPI1>; sleepInMs?: UIntDuration; }; export declare function UCPanel<I extends UCInput | undefined = undefined, OPI0 extends UCOPIBase | undefined = undefined, OPI1 extends UCOPIBase | undefined = undefined>({ autoExec, clearAfterExec, onDone, onError, onInit, onStartSubmitting, renderAutoExecLoader, renderForm, renderExecTouchable, sleepInMs, uc, }: Props<I, OPI0, OPI1>): ReactElement; export {};