import React from "react"; import BaseWidget, { WidgetProps, WidgetState } from "./BaseWidget"; import { WidgetType } from "../constants/WidgetConstants"; class InputWidget extends BaseWidget { getPageView() { return
; } getWidgetType(): WidgetType { return "INPUT_WIDGET"; } } export type InputType = | "TEXT" | "NUMBER" | "INTEGER" | "PHONE_NUMBER" | "EMAIL" | "PASSWORD" | "CURRENCY" | "SEARCH"; export interface InputWidgetProps extends WidgetProps { errorMessage?: string; inputType: InputType; defaultText?: string; placeholder?: string; label: string; focusIndex?: number; } export default InputWidget;