@docsvision/webclient
Version:
Type definitions for DocsVision WebClient scripts and extensions.
26 lines (25 loc) • 1.16 kB
TypeScript
import React from "react";
import { IComponentProps } from "@docsvision/web/core/component";
import { TextInputDialogFrame } from "@docsvision/webclient/Helpers/TextInputDialog/Components/TextInputDialogFrame";
import { TextInput } from "@docsvision/webclient/Helpers/TextInput";
import { TextInputDialogModal } from "@docsvision/webclient/Helpers/TextInputDialog/Components/TextInputDialogModal";
import { $LocalStorage } from "@docsvision/webclient/System/$LocalStorage";
/** Свойства для {@see TextInputDialog}. */
export interface ITextInputDialogProps extends IComponentProps<any, TextInputDialogView> {
value: string;
onValueChange: (pinCode: string) => void;
onCancel: () => void;
onAccept: () => void;
isOpen: boolean;
header: React.ReactNode;
label: React.ReactNode;
password?: boolean;
services: $LocalStorage;
}
export declare class TextInputDialogView {
dialog: typeof TextInputDialogModal;
frame: typeof TextInputDialogFrame;
input: typeof TextInput;
}
/** Диалог для ввода текста */
export declare function TextInputDialog(props: ITextInputDialogProps): JSX.Element;