UNPKG

@payfit/unity-components

Version:

29 lines (28 loc) • 1.12 kB
import { TanstackFormFeedbackText as e } from "../form-field/parts/TanstackFormFeedbackText.js"; import { TanstackFormField as t } from "../form-field/TanstackFormField.js"; import { TanstackFormHelperText as n } from "../form-field/parts/TanstackFormHelperText.js"; import { TanstackFormLabel as r } from "../form-field/parts/TanstackFormLabel.js"; import { FileUploadTriggerInput as i } from "./TanstackFileUploadTrigger.js"; import { forwardRef as a } from "react"; import { jsx as o, jsxs as s } from "react/jsx-runtime"; //#region src/modules/tanstack-form/components/tanstack-file-upload-trigger/TanstackFileUploadTriggerField.tsx function c({ label: a, helperText: c, contextualLink: l, isRequired: u, requiredVariant: d, ...f }, p) { return /* @__PURE__ */ s(t, { children: [ /* @__PURE__ */ o(r, { isRequired: u, requiredVariant: d, children: a }), c && /* @__PURE__ */ o(n, { children: c }), /* @__PURE__ */ o(i, { ...f, ref: p }), /* @__PURE__ */ o(e, {}), l ] }); } var l = a(c); l.displayName = "FileUploadTriggerField"; //#endregion export { l as FileUploadTriggerField };