import { jsxDEV } from "react/jsx-dev-runtime";
import { TextareaInput } from "@contember/ui";
import { useFieldControl } from "./useFieldControl.js";
import { SimpleRelativeSingleField } from "../auxiliary/SimpleRelativeSingleField/SimpleRelativeSingleField.js";
const parse = (value) => value ?? null;
const format = (value) => value ?? null;
const TextareaField = SimpleRelativeSingleField(
  (fieldMetadata, {
    minRows,
    style,
    ...props
  }) => {
    const inputProps = useFieldControl({
      ...props,
      fieldMetadata,
      parse,
      format
    });
    return /* @__PURE__ */ jsxDEV(
      TextareaInput,
      {
        ...inputProps,
        minRows: minRows || 3,
        style
      },
      void 0,
      false,
      {
        fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/fields/TextareaField.tsx",
        lineNumber: 36,
        columnNumber: 4
      },
      globalThis
    );
  },
  "TextareaField"
);
const TextAreaField = SimpleRelativeSingleField(
  (fieldMetadata, {
    minRows,
    style,
    ...props
  }) => {
    {
      console.warn("TextAreaField is deprecated. Please 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,
        style
      },
      void 0,
      false,
      {
        fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/fields/TextareaField.tsx",
        lineNumber: 68,
        columnNumber: 4
      },
      globalThis
    );
  },
  "TextAreaField"
);
export {
  TextAreaField,
  TextareaField
};
//# sourceMappingURL=TextareaField.js.map
