client_side_routing.pyi 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. """Stub file for reflex/components/core/client_side_routing.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Callable, Dict, Optional, Union, overload
  6. from reflex.components.component import Component
  7. from reflex.event import EventHandler, EventSpec
  8. from reflex.ivars.base import ImmutableVar
  9. from reflex.style import Style
  10. from reflex.vars import Var
  11. route_not_found: Var
  12. class ClientSideRouting(Component):
  13. def add_hooks(self) -> list[str]: ...
  14. def render(self) -> str: ...
  15. @overload
  16. @classmethod
  17. def create( # type: ignore
  18. cls,
  19. *children,
  20. style: Optional[Style] = None,
  21. key: Optional[Any] = None,
  22. id: Optional[Any] = None,
  23. class_name: Optional[Any] = None,
  24. autofocus: Optional[bool] = None,
  25. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  26. on_blur: Optional[
  27. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  28. ] = None,
  29. on_click: Optional[
  30. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  31. ] = None,
  32. on_context_menu: Optional[
  33. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  34. ] = None,
  35. on_double_click: Optional[
  36. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  37. ] = None,
  38. on_focus: Optional[
  39. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  40. ] = None,
  41. on_mount: Optional[
  42. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  43. ] = None,
  44. on_mouse_down: Optional[
  45. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  46. ] = None,
  47. on_mouse_enter: Optional[
  48. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  49. ] = None,
  50. on_mouse_leave: Optional[
  51. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  52. ] = None,
  53. on_mouse_move: Optional[
  54. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  55. ] = None,
  56. on_mouse_out: Optional[
  57. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  58. ] = None,
  59. on_mouse_over: Optional[
  60. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  61. ] = None,
  62. on_mouse_up: Optional[
  63. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  64. ] = None,
  65. on_scroll: Optional[
  66. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  67. ] = None,
  68. on_unmount: Optional[
  69. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  70. ] = None,
  71. **props,
  72. ) -> "ClientSideRouting":
  73. """Create the component.
  74. Args:
  75. *children: The children of the component.
  76. style: The style of the component.
  77. key: A unique key for the component.
  78. id: The id for the component.
  79. class_name: The class name for the component.
  80. autofocus: Whether the component should take the focus once the page is loaded
  81. custom_attrs: custom attribute
  82. **props: The props of the component.
  83. Returns:
  84. The component.
  85. """
  86. ...
  87. def wait_for_client_redirect(component) -> Component: ...
  88. class Default404Page(Component):
  89. @overload
  90. @classmethod
  91. def create( # type: ignore
  92. cls,
  93. *children,
  94. status_code: Optional[Union[Var[int], int]] = None,
  95. style: Optional[Style] = None,
  96. key: Optional[Any] = None,
  97. id: Optional[Any] = None,
  98. class_name: Optional[Any] = None,
  99. autofocus: Optional[bool] = None,
  100. custom_attrs: Optional[Dict[str, Union[ImmutableVar, str]]] = None,
  101. on_blur: Optional[
  102. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  103. ] = None,
  104. on_click: Optional[
  105. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  106. ] = None,
  107. on_context_menu: Optional[
  108. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  109. ] = None,
  110. on_double_click: Optional[
  111. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  112. ] = None,
  113. on_focus: Optional[
  114. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  115. ] = None,
  116. on_mount: Optional[
  117. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  118. ] = None,
  119. on_mouse_down: Optional[
  120. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  121. ] = None,
  122. on_mouse_enter: Optional[
  123. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  124. ] = None,
  125. on_mouse_leave: Optional[
  126. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  127. ] = None,
  128. on_mouse_move: Optional[
  129. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  130. ] = None,
  131. on_mouse_out: Optional[
  132. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  133. ] = None,
  134. on_mouse_over: Optional[
  135. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  136. ] = None,
  137. on_mouse_up: Optional[
  138. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  139. ] = None,
  140. on_scroll: Optional[
  141. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  142. ] = None,
  143. on_unmount: Optional[
  144. Union[EventHandler, EventSpec, list, Callable, ImmutableVar]
  145. ] = None,
  146. **props,
  147. ) -> "Default404Page":
  148. """Create the component.
  149. Args:
  150. *children: The children of the component.
  151. style: The style of the component.
  152. key: A unique key for the component.
  153. id: The id for the component.
  154. class_name: The class name for the component.
  155. autofocus: Whether the component should take the focus once the page is loaded
  156. custom_attrs: custom attribute
  157. **props: The props of the component.
  158. Returns:
  159. The component.
  160. """
  161. ...