UNPKG

@payfit/unity-components

Version:

22 lines (21 loc) • 879 B
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 { PhoneNumberInput as i } from "../phone-number/PhoneNumberInput.js"; import { forwardRef as a } from "react"; import { jsx as o, jsxs as s } from "react/jsx-runtime"; var c = a(({ label: a, isRequired: c, requiredVariant: l, helperText: u, contextualLink: d, ...f }) => /* @__PURE__ */ s(e, { children: [ /* @__PURE__ */ o(r, { requiredVariant: l, isRequired: c, children: a }), u && /* @__PURE__ */ o(n, { children: u }), /* @__PURE__ */ o(i, { ...f }), /* @__PURE__ */ o(t, {}), d ] })); c.displayName = "PhoneNumberField"; //#endregion export { c as PhoneNumberField };