@payfit/unity-components
Version:
29 lines (28 loc) • 1.03 kB
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 { FileUploadTriggerInput as i } from "./FileUploadTrigger.js";
import { forwardRef as a } from "react";
import { jsx as o, jsxs as s } from "react/jsx-runtime";
//#region src/modules/tanstack-form/components/file-upload-trigger/FileUploadTriggerField.tsx
function c({ label: a, helperText: c, contextualLink: l, isRequired: u, requiredVariant: d, ...f }, p) {
return /* @__PURE__ */ s(e, { children: [
/* @__PURE__ */ o(r, {
isRequired: u,
requiredVariant: d,
children: a
}),
c && /* @__PURE__ */ o(n, { children: c }),
/* @__PURE__ */ o(i, {
...f,
ref: p
}),
/* @__PURE__ */ o(t, {}),
l
] });
}
var l = a(c);
l.displayName = "FileUploadTriggerField";
//#endregion
export { l as FileUploadTriggerField };