UNPKG

@payfit/unity-components

Version:

31 lines (30 loc) 1.32 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 { TanstackSelectableCardCheckboxGroup as i } from "../selectable-card/selectable-card-checkbox-group/TanstackSelectableCardCheckboxGroup.js"; import { forwardRef as a } from "react"; import { jsx as o, jsxs as s } from "react/jsx-runtime"; //#region src/components/selectable-card-checkbox-group-field/TanstackSelectableCardCheckboxGroupField.tsx function c({ children: a, isRequired: c, requiredVariant: l, label: u, helperText: d, ...f }, p) { return /* @__PURE__ */ s(t, { children: [ /* @__PURE__ */ s("div", { className: "uy:flex uy:flex-col uy:gap-50", children: [/* @__PURE__ */ o(r, { requiredVariant: l, isRequired: c, children: u }), d && /* @__PURE__ */ o(n, { children: d })] }), /* @__PURE__ */ o(i, { ref: p, ...f, children: a }), /* @__PURE__ */ o(e, {}) ] }); } var l = a(c); l.displayName = "TanstackSelectableCardCheckboxGroupField"; //#endregion export { l as TanstackSelectableCardCheckboxGroupField };