@payfit/unity-components
Version:
32 lines (31 loc) • 1.11 kB
JavaScript
import { TanstackFormFeedbackText as e } from "../form-field/parts/TanstackFormFeedbackText.js";
import { TanstackFormField as t } from "../form-field/TanstackFormField.js";
import { TanstackToggleSwitchGroup as n } from "../toggle-switch-group/TanstackToggleSwitchGroup.js";
import { forwardRef as r } from "react";
import { jsx as i, jsxs as a } from "react/jsx-runtime";
//#region src/components/toggle-switch-group-field/TanstackToggleSwitchGroupField.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(t, { 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(e, {}),
d
] });
}
var s = r(o);
s.displayName = "TanstackToggleSwitchGroupField";
//#endregion
export { s as TanstackToggleSwitchGroupField };