UNPKG

@payfit/unity-components

Version:

31 lines (30 loc) • 1.24 kB
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 { SelectableCardCheckboxGroup as i } from "../selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.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-card-checkbox-group-field/SelectableCardCheckboxGroupField.tsx function c({ children: a, isRequired: c, requiredVariant: l, label: u, helperText: d, ...f }, p) { return /* @__PURE__ */ s(e, { 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(t, {}) ] }); } var l = a(c); l.displayName = "SelectableCardCheckboxGroupField"; //#endregion export { l as SelectableCardCheckboxGroupField };