@payfit/unity-components
Version:
32 lines (31 loc) • 1.06 kB
JavaScript
import { FormField as e } from "../form-field/FormField.js";
import { FormFeedbackText as t } from "../form-field/parts/FormFeedbackText.js";
import { ToggleSwitchGroup as n } from "../toggle-switch-group/ToggleSwitchGroup.js";
import { forwardRef as r } from "react";
import { jsx as i, jsxs as a } from "react/jsx-runtime";
//#region src/modules/tanstack-form/components/toggle-switch-group-field/ToggleSwitchGroupField.tsx
function o({ label: r, helperText: o, isDisabled: s, isReadOnly: c, isRequired: l, requiredVariant: u, contextualLink: d, children: f, onFocus: p, onBlur: m, onFocusChange: h, onChange: g, ..._ }, v) {
return /* @__PURE__ */ a(e, { children: [
/* @__PURE__ */ i(n, {
ref: v,
label: r,
helperText: o,
isRequired: l,
requiredVariant: u,
onFocus: p,
onBlur: m,
onFocusChange: h,
onChange: g,
isDisabled: s,
isReadOnly: c,
..._,
children: f
}),
/* @__PURE__ */ i(t, {}),
d
] });
}
var s = r(o);
s.displayName = "ToggleSwitchGroupField";
//#endregion
export { s as ToggleSwitchGroupField };