UNPKG

@payfit/unity-components

Version:

29 lines (28 loc) • 1.1 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 { DateRangePicker as i } from "../date-range-picker/DateRangePicker.js"; import { forwardRef as a } from "react"; import { jsx as o, jsxs as s } from "react/jsx-runtime"; //#region src/modules/tanstack-form/components/date-range-picker-field/DateRangePickerField.tsx var c = a(({ label: a, helperText: c, contextualLink: l, isRequired: u, isLoading: d, isDisabled: f, isReadOnly: p, requiredVariant: m, ...h }, g) => /* @__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 ] })); c.displayName = "DateRangePickerField"; //#endregion export { c as DateRangePickerField };