import { n as Textarea, r as TextInput, t as withFieldValidation } from "./with-field-validation-DGjBGqeq.js";
import React from "react";
import { jsx } from "react/jsx-runtime";
//#region node_modules/@powerhousedao/document-engineering/dist/src/scalars/components/fragments/text-field/text-field.js
const TextField = withFieldValidation(TextInput);
TextField.displayName = "TextField";
//#endregion
//#region node_modules/@powerhousedao/document-engineering/dist/src/scalars/components/fragments/textarea-field/textarea-field.js
const TextareaField = withFieldValidation(Textarea);
TextareaField.displayName = "TextareaField";
//#endregion
//#region node_modules/@powerhousedao/document-engineering/dist/src/scalars/components/string-field/string-field.js
const StringField = React.forwardRef(({ autoExpand, multiline, ...props }, ref) => {
	if (autoExpand || multiline) return jsx(TextareaField, {
		autoExpand,
		multiline,
		...props,
		ref
	});
	return jsx(TextField, {
		...props,
		ref
	});
});
StringField.displayName = "StringField";
//#endregion
export { StringField as t };

//# sourceMappingURL=string-field-C7BDVciE.js.map