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