import { jsx as t } from "react/jsx-runtime";
import { useCallback as u } from "react";
import f from "../../../box/Box.js";
import i from "../../../input/Input.js";
const m = ({ dateFormat: r, inputValue: a, onInputBlur: o, onInputChange: l, autoFocus: n = !1 }) => {
  const p = u((e) => {
    e.key === "Enter" && (e.preventDefault(), e.target.blur());
  }, []);
  return /* @__PURE__ */ t(f, { className: "w-full", children: /* @__PURE__ */ t(
    i,
    {
      type: "text",
      placeholder: r,
      value: a,
      onChange: l,
      onBlur: o,
      onKeyDown: p,
      size: "default",
      autoFocus: n
    }
  ) });
};
m.displayName = "DatePickerInput";
export {
  m as default
};
//# sourceMappingURL=DatePickerInput.js.map
