@payfit/unity-components
Version:
23 lines (22 loc) • 918 B
JavaScript
import { FormField as e } from "../form-field/FormField.js";
import { FormFeedbackText as t } from "../form-field/parts/FormFeedbackText.js";
import { FormHelperText as n } from "../form-field/parts/FormHelperText.js";
import { FormLabel as r } from "../form-field/parts/FormLabel.js";
import { FileUploadDropzoneInput as i } from "./FileUploadDropzone.js";
import { jsx as a, jsxs as o } from "react/jsx-runtime";
//#region src/modules/tanstack-form/components/file-upload-dropzone/FileUploadDropzoneField.tsx
function s({ label: s, helperText: c, contextualLink: l, isRequired: u, requiredVariant: d, ...f }) {
return /* @__PURE__ */ o(e, { children: [
/* @__PURE__ */ a(r, {
isRequired: u,
requiredVariant: d,
children: s
}),
c && /* @__PURE__ */ a(n, { children: c }),
/* @__PURE__ */ a(i, { ...f }),
/* @__PURE__ */ a(t, {}),
l
] });
}
//#endregion
export { s as FileUploadDropzoneField };