import React from "react"; import BaseControl, { ControlProps } from "./BaseControl"; import { InputType } from "widgets/InputWidget"; import { ControlType } from "constants/PropertyControlConstants"; import TextField from "components/editorComponents/form/fields/TextField"; import FormLabel from "components/editorComponents/FormLabel"; import { FormIcons } from "icons/FormIcons"; import { Colors } from "constants/Colors"; import styled from "styled-components"; export const StyledInfo = styled.span` font-weight: normal; line-height: normal; color: ${Colors.DOVE_GRAY}; font-size: 12px; margin-left: 1px; `; export function InputText(props: { label: string; value: string; isValid: boolean; subtitle?: string; validationMessage?: string; placeholder?: string; dataType?: string; isRequired?: boolean; name: string; encrypted?: boolean; disabled?: boolean; }) { const { dataType, disabled, encrypted, isRequired, label, name, placeholder, subtitle, } = props; return (