import { jsx } from "react/jsx-runtime";
import { DSInputText } from "@elliemae/ds-controlled-form";
import {
  Controller
} from "react-hook-form";
const InputText = ({
  name,
  defaultValue = "",
  rules = {},
  ...rest
}) => /* @__PURE__ */ jsx(
  Controller,
  {
    name,
    defaultValue,
    rules,
    render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsx(DSInputText, { hasError: !!error, ...field, ...rest })
  }
);
export {
  InputText
};
