@payfit/unity-components
Version:
31 lines (30 loc) • 1.22 kB
JavaScript
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 { TanstackSelectableButtonGroup as i } from "../selectable-button-group/TanstackSelectableButtonGroup.js";
import { forwardRef as a } from "react";
import { jsx as o, jsxs as s } from "react/jsx-runtime";
//#region src/components/selectable-button-group-field/TanstackSelectableButtonGroupField.tsx
function c({ label: a, helperText: c, contextualLink: l, isRequired: u, requiredVariant: d, isDisabled: f, children: p, ...m }, h) {
return /* @__PURE__ */ s(t, { children: [
/* @__PURE__ */ o(r, {
requiredVariant: d,
isRequired: u,
children: a
}),
c && /* @__PURE__ */ o(n, { children: c }),
/* @__PURE__ */ o(i, {
ref: h,
isDisabled: f,
...m,
children: p
}),
/* @__PURE__ */ o(e, {}),
l
] });
}
var l = a(c);
l.displayName = "TanstackSelectableButtonGroupField";
//#endregion
export { l as TanstackSelectableButtonGroupField };