import { TextField } from "./form/TextField";
import { jsx } from "react/jsx-runtime";
function NumericalInput({
  onValueChange = () => {
  },
  ...props
}) {
  return /* @__PURE__ */ jsx(
    TextField,
    {
      keyboardType: "decimal-pad",
      ...props,
      onChangeText: (e) => {
        const newValue = e?.replace(/[^0-9.]/g, "").replace(/(\..*)\./g, "$1");
        onValueChange(newValue);
      }
    }
  );
}
export {
  NumericalInput
};
//# sourceMappingURL=NumericalInput.js.map
