@payfit/unity-components
Version:
32 lines (31 loc) • 1.17 kB
JavaScript
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 { TanstackNumberInput as i } from "../number-input/TanstackNumberInput.js";
import { forwardRef as a } from "react";
import { jsx as o, jsxs as s } from "react/jsx-runtime";
//#region src/components/number-field/TanstackNumberField.tsx
function c({ label: a, helperText: c, contextualLink: l, isRequired: u, isLoading: d, isDisabled: f, isReadOnly: p, requiredVariant: m, ...h }, g) {
return /* @__PURE__ */ s(t, { children: [
/* @__PURE__ */ o(r, {
requiredVariant: m,
isRequired: u,
children: a
}),
c && /* @__PURE__ */ o(n, { children: c }),
/* @__PURE__ */ o(i, {
ref: g,
isLoading: d,
isDisabled: f,
isReadOnly: p,
...h
}),
/* @__PURE__ */ o(e, {}),
l
] });
}
var l = a(c);
l.displayName = "TanstackNumberField";
//#endregion
export { l as TanstackNumberField };