UNPKG

@payfit/unity-components

Version:

31 lines (30 loc) 1.16 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 { TanstackSelect as i } from "../select/TanstackSelect.js"; import { forwardRef as a } from "react"; import { jsx as o, jsxs as s } from "react/jsx-runtime"; //#region src/components/select-field/TanstackSelectField.tsx var c = ({ label: a, helperText: c, contextualLink: l, isRequired: u, isDisabled: d, isReadOnly: f, requiredVariant: p, renderValue: m, ...h }, g) => /* @__PURE__ */ s(t, { children: [ /* @__PURE__ */ o(r, { requiredVariant: p, isRequired: u, children: a }), c && /* @__PURE__ */ o(n, { children: c }), /* @__PURE__ */ o(i, { ref: g, isDisabled: d, isReadOnly: f, renderValue: m, ...h }), /* @__PURE__ */ o(e, {}), l ] }), l = a(function(e, t) { return c(e, t); }); l.displayName = "TanstackSelectField"; //#endregion export { l as TanstackSelectField };