UNPKG

@payfit/unity-components

Version:

32 lines (31 loc) • 1.08 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 { NumberInput as i } from "../number-input/NumberInput.js"; import { forwardRef as a } from "react"; import { jsx as o, jsxs as s } from "react/jsx-runtime"; //#region src/modules/tanstack-form/components/number-field/NumberField.tsx function c({ label: a, helperText: c, contextualLink: l, isRequired: u, isLoading: d, isDisabled: f, isReadOnly: p, requiredVariant: m, ...h }, g) { return /* @__PURE__ */ s(e, { 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(t, {}), l ] }); } var l = a(c); l.displayName = "NumberField"; //#endregion export { l as NumberField };