UNPKG

@innovatrics/dot-auto-capture-ui

Version:
32 lines (31 loc) 1.73 kB
import type { BaseComponentsUiProps, CustomizationContextProps, EscalatedInstructions, HTMLElementWithProps, UiProps } from './common'; import type { CustomElement, DeepRequired, DocumentEscalatedInstructionCodes, DocumentInstructionCode, ObjectValues } from '../../../ui-common/src/types'; export * from './common'; declare global { namespace JSX { interface IntrinsicElements { 'x-dot-document-auto-capture-ui': CustomElement<{ props: DocumentUiProps; }>; } } } export declare const DocumentPlaceholderIconValues: { readonly ID_CORNERS: "id-corners"; readonly ID_DASH: "id-dash"; readonly ID_DOT: "id-dot"; readonly ID_SOLID: "id-solid"; readonly ID_PHOTO_ROUNDED: "id-photo-rounded"; readonly ID_CORNERS_ROUNDED: "id-corners-rounded"; readonly ID_DASH_ROUNDED: "id-dash-rounded"; readonly ID_DOT_ROUNDED: "id-dot-rounded"; readonly ID_SOLID_ROUNDED_BACK: "id-solid-rounded-back"; readonly ID_SOLID_ROUNDED: "id-solid-rounded"; readonly PASSPORT_SOLID_BACK: "passport-solid-back"; readonly PASSPORT_SOLID_BACK_BLANK: "passport-solid-back-blank"; }; export type DocumentPlaceholderIcon = ObjectValues<typeof DocumentPlaceholderIconValues>; export type DocumentInstructions = Record<DocumentInstructionCode, string>; export type DocumentUiProps = UiProps<Partial<DocumentInstructions>> & BaseComponentsUiProps<DocumentPlaceholderIcon> & EscalatedInstructions<DocumentEscalatedInstructionCodes>; export type DocumentProps = CustomizationContextProps<DeepRequired<DocumentUiProps>> & EscalatedInstructions<DocumentEscalatedInstructionCodes>; export type HTMLDocumentUiElement = HTMLElementWithProps<DocumentUiProps>;