@payfit/unity-components
Version:
29 lines (28 loc) • 1.14 kB
JavaScript
import { TanstackFormFeedbackText as e } from "../form-field/parts/TanstackFormFeedbackText.js";
import { TanstackFormField as t } from "../form-field/TanstackFormField.js";
import { TanstackDatePicker as n } from "../date-picker/TanstackDatePicker.js";
import { TanstackFormHelperText as r } from "../form-field/parts/TanstackFormHelperText.js";
import { TanstackFormLabel as i } from "../form-field/parts/TanstackFormLabel.js";
import { forwardRef as a } from "react";
import { jsx as o, jsxs as s } from "react/jsx-runtime";
//#region src/components/date-picker-field/TanstackDatePickerField.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(i, {
requiredVariant: m,
isRequired: u,
children: a
}),
c && /* @__PURE__ */ o(r, { children: c }),
/* @__PURE__ */ o(n, {
ref: g,
isLoading: d,
isDisabled: f,
isReadOnly: p,
...h
}),
/* @__PURE__ */ o(e, {}),
l
] }));
c.displayName = "TanstackDatePickerField";
//#endregion
export { c as TanstackDatePickerField };