import { toISOString, toDateString, DateInput } from "@contember/ui";
import { useFieldControl } from "./useFieldControl.js";
import { jsx } from "react/jsx-runtime";
import { SimpleRelativeSingleField } from "../auxiliary/SimpleRelativeSingleField/SimpleRelativeSingleField.js";
const DateField = SimpleRelativeSingleField((fieldMetadata, props) => {
  const inputProps = useFieldControl({
    ...props,
    fieldMetadata,
    parse: toISOString,
    format: toDateString
  });
  return /* @__PURE__ */ jsx(DateInput, {
    ...inputProps
  });
}, "DateField");
export {
  DateField
};
//# sourceMappingURL=DateField.js.map
