import { ReactComponent as TextInputWidgetIcon}  from "@/assets/widgetCover/textInput.svg"
import {RESIZE_DIRECTION, WidgetConfig } from "@/widgetLibrary/interface"

export const INPUT_WIDGET_CONFIG: WidgetConfig = {
  type: "INPUT_WIDGET",
  displayName: "input",
  widgetName: "input",
  icon: <TextInputWidgetIcon />,
  keywords: ["Input", "文本输入框"],
  sessionType: "INPUTS",
  w: 6,
  h: 5,
  resizeDirection: RESIZE_DIRECTION.ALL,
  version: 0,
  defaults: {
    value: undefined,
    defaultValue: "",
    colorScheme: "blue",
    label: "input",
    placeholder: "",
    styles: { margin: 2 },
    fullWidth: false,
    margin: "normal",
    variant: "outlined",
    type: "text",
    color: "success",
    disabled: false,
    helperText: "",
    required: false,
    startAdornmentIconName: "",
    endAdornmentIconName: "",
    tooltipText:"",
    validateMessage:"",
    size:"small",
    multiline:false,
  },
}
