debounce.pyi 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. """Stub file for debounce.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Optional, Union, overload
  6. from reflex.components.component import Component
  7. from reflex.vars import Var, BaseVar, ComputedVar
  8. from reflex.event import EventHandler, EventChain, EventSpec
  9. def props_not_none(c: Component) -> dict[str, Any]: ...
  10. def _collect_first_child_and_props(
  11. c: Component,
  12. ) -> tuple[Component, dict[str, Any]]: ...
  13. class DebounceInput(Component):
  14. @overload
  15. @classmethod
  16. def create(cls, *children, min_length: Optional[Union[Var[int], int]] = None, debounce_timeout: Optional[Union[Var[int], int]] = None, force_notify_by_enter: Optional[Union[Var[bool], bool]] = None, force_notify_on_blur: Optional[Union[Var[bool], bool]] = None, value: Optional[Union[Var[str], str]] = None, on_blur: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_context_menu: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_double_click: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_focus: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_down: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_enter: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_leave: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_move: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_out: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_over: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_mouse_up: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_scroll: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, on_unmount: Optional[Union[EventHandler, EventSpec, List, function, BaseVar]] = None, **props) -> "DebounceInput": # type: ignore
  17. """Create the component.
  18. Args:
  19. *children: The children of the component.
  20. min_length: Minimum input characters before triggering the on_change event
  21. debounce_timeout: Time to wait between end of input and triggering on_change
  22. force_notify_by_enter: If true, notify when Enter key is pressed
  23. force_notify_on_blur: If true, notify when form control loses focus
  24. value: If provided, create a fully-controlled input
  25. **props: The props of the component.
  26. Returns:
  27. The component.
  28. Raises:
  29. TypeError: If an invalid child is passed.
  30. """
  31. ...