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