UNPKG

@payfit/unity-components

Version:

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