debounce.pyi 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. """Stub file for reflex/components/forms/debounce.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `scripts/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Dict, Literal, Optional, Union, overload
  6. from reflex.vars import Var, BaseVar, ComputedVar
  7. from reflex.event import EventChain, EventHandler, EventSpec
  8. from reflex.style import Style
  9. from typing import Any, Type
  10. from reflex.components import Component
  11. from reflex.constants import EventTriggers
  12. from reflex.vars import Var, VarData
  13. class DebounceInput(Component):
  14. @overload
  15. @classmethod
  16. def create( # type: ignore
  17. cls,
  18. *children,
  19. min_length: Optional[Union[Var[int], int]] = None,
  20. debounce_timeout: Optional[Union[Var[int], int]] = None,
  21. force_notify_by_enter: Optional[Union[Var[bool], bool]] = None,
  22. force_notify_on_blur: Optional[Union[Var[bool], bool]] = None,
  23. value: Optional[Union[Var[str], str]] = None,
  24. input_ref: Optional[Union[Var[str], str]] = None,
  25. element: Optional[Union[Var[Type[Component]], Type[Component]]] = None,
  26. style: Optional[Style] = None,
  27. key: Optional[Any] = None,
  28. id: Optional[Any] = None,
  29. class_name: Optional[Any] = None,
  30. autofocus: Optional[bool] = None,
  31. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  32. on_blur: Optional[
  33. Union[EventHandler, EventSpec, list, function, BaseVar]
  34. ] = None,
  35. on_change: Optional[
  36. Union[EventHandler, EventSpec, list, function, BaseVar]
  37. ] = None,
  38. on_click: Optional[
  39. Union[EventHandler, EventSpec, list, function, BaseVar]
  40. ] = None,
  41. on_context_menu: Optional[
  42. Union[EventHandler, EventSpec, list, function, BaseVar]
  43. ] = None,
  44. on_double_click: Optional[
  45. Union[EventHandler, EventSpec, list, function, BaseVar]
  46. ] = None,
  47. on_focus: Optional[
  48. Union[EventHandler, EventSpec, list, function, BaseVar]
  49. ] = None,
  50. on_mount: Optional[
  51. Union[EventHandler, EventSpec, list, function, BaseVar]
  52. ] = None,
  53. on_mouse_down: Optional[
  54. Union[EventHandler, EventSpec, list, function, BaseVar]
  55. ] = None,
  56. on_mouse_enter: Optional[
  57. Union[EventHandler, EventSpec, list, function, BaseVar]
  58. ] = None,
  59. on_mouse_leave: Optional[
  60. Union[EventHandler, EventSpec, list, function, BaseVar]
  61. ] = None,
  62. on_mouse_move: Optional[
  63. Union[EventHandler, EventSpec, list, function, BaseVar]
  64. ] = None,
  65. on_mouse_out: Optional[
  66. Union[EventHandler, EventSpec, list, function, BaseVar]
  67. ] = None,
  68. on_mouse_over: Optional[
  69. Union[EventHandler, EventSpec, list, function, BaseVar]
  70. ] = None,
  71. on_mouse_up: Optional[
  72. Union[EventHandler, EventSpec, list, function, BaseVar]
  73. ] = None,
  74. on_scroll: Optional[
  75. Union[EventHandler, EventSpec, list, function, BaseVar]
  76. ] = None,
  77. on_unmount: Optional[
  78. Union[EventHandler, EventSpec, list, function, BaseVar]
  79. ] = None,
  80. **props
  81. ) -> "DebounceInput":
  82. """Create a DebounceInput component.
  83. Carry first child props directly on this tag.
  84. Since react-debounce-input wants to create and manage the underlying
  85. input component itself, we carry all props, events, and styles from
  86. the child, and then neuter the child's render method so it produces no output.
  87. Args:
  88. children: The child component to wrap.
  89. props: The component props.
  90. Returns:
  91. The DebounceInput component.
  92. Raises:
  93. RuntimeError: unless exactly one child element is provided.
  94. ValueError: if the child element does not have an on_change handler.
  95. """
  96. ...
  97. def get_event_triggers(self) -> dict[str, Any]: ...