import { TextareaInput } from "@contember/ui";
import { useFieldControl } from "./useFieldControl.js";
import { jsxDEV } from "react/jsx-dev-runtime";
import { SimpleRelativeSingleField } from "../auxiliary/SimpleRelativeSingleField/SimpleRelativeSingleField.js";
var _jsxFileName = "/__w/interface/interface/packages/admin/src/components/bindingFacade/fields/TextareaField.tsx";
const parse = (value) => value ?? null;
const format = (value) => value ?? null;
const TextareaField = SimpleRelativeSingleField((fieldMetadata, {
  label,
  minRows,
  ...props
}) => {
  const inputProps = useFieldControl({
    ...props,
    fieldMetadata,
    parse,
    format
  });
  return /* @__PURE__ */ jsxDEV(TextareaInput, {
    ...inputProps,
    minRows: minRows || 3
  }, void 0, false, {
    fileName: _jsxFileName,
    lineNumber: 30,
    columnNumber: 10
  }, void 0);
}, "TextareaField");
const TextAreaField = SimpleRelativeSingleField((fieldMetadata, {
  label,
  minRows,
  ...props
}) => {
  {
    console.warn("TextAreaField is deprecated. Plese use TextareaField to align with HTML/UI naming of components");
  }
  const inputProps = useFieldControl({
    ...props,
    fieldMetadata,
    parse,
    format
  });
  return /* @__PURE__ */ jsxDEV(TextareaInput, {
    ...inputProps,
    minRows: minRows || 3
  }, void 0, false, {
    fileName: _jsxFileName,
    lineNumber: 56,
    columnNumber: 10
  }, void 0);
}, "TextAreaField");
export {
  TextAreaField,
  TextareaField
};
//# sourceMappingURL=TextareaField.js.map
