import { jsxDEV } from "react/jsx-dev-runtime";
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__ */ jsxDEV(DateInput, { ...inputProps }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/fields/DateField.tsx",
      lineNumber: 27,
      columnNumber: 10
    }, globalThis);
  },
  "DateField"
);
export {
  DateField
};
//# sourceMappingURL=DateField.js.map
