@payfit/unity-components
Version:
31 lines (30 loc) • 1.07 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 { Select as i } from "../select/Select.js";
import { forwardRef as a } from "react";
import { jsx as o, jsxs as s } from "react/jsx-runtime";
//#region src/modules/tanstack-form/components/select-field/SelectField.tsx
var c = ({ label: a, helperText: c, contextualLink: l, isRequired: u, isDisabled: d, isReadOnly: f, requiredVariant: p, renderValue: m, ...h }, g) => /* @__PURE__ */ s(e, { 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(t, {}),
l
] }), l = a(function(e, t) {
return c(e, t);
});
l.displayName = "SelectField";
//#endregion
export { l as SelectField };