client_side_routing.pyi 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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.style import Style
  9. from reflex.vars import Var
  10. route_not_found: Var
  11. class ClientSideRouting(Component):
  12. def add_hooks(self) -> list[str]: ...
  13. def render(self) -> str: ...
  14. @overload
  15. @classmethod
  16. def create( # type: ignore
  17. cls,
  18. *children,
  19. style: Optional[Style] = None,
  20. key: Optional[Any] = None,
  21. id: Optional[Any] = None,
  22. class_name: Optional[Any] = None,
  23. autofocus: Optional[bool] = None,
  24. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  25. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  26. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  27. on_context_menu: Optional[
  28. Union[EventHandler, EventSpec, list, Callable, Var]
  29. ] = None,
  30. on_double_click: Optional[
  31. Union[EventHandler, EventSpec, list, Callable, Var]
  32. ] = None,
  33. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  34. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  35. on_mouse_down: Optional[
  36. Union[EventHandler, EventSpec, list, Callable, Var]
  37. ] = None,
  38. on_mouse_enter: Optional[
  39. Union[EventHandler, EventSpec, list, Callable, Var]
  40. ] = None,
  41. on_mouse_leave: Optional[
  42. Union[EventHandler, EventSpec, list, Callable, Var]
  43. ] = None,
  44. on_mouse_move: Optional[
  45. Union[EventHandler, EventSpec, list, Callable, Var]
  46. ] = None,
  47. on_mouse_out: Optional[
  48. Union[EventHandler, EventSpec, list, Callable, Var]
  49. ] = None,
  50. on_mouse_over: Optional[
  51. Union[EventHandler, EventSpec, list, Callable, Var]
  52. ] = None,
  53. on_mouse_up: Optional[
  54. Union[EventHandler, EventSpec, list, Callable, Var]
  55. ] = None,
  56. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  57. on_unmount: Optional[
  58. Union[EventHandler, EventSpec, list, Callable, Var]
  59. ] = None,
  60. **props,
  61. ) -> "ClientSideRouting":
  62. """Create the component.
  63. Args:
  64. *children: The children of the component.
  65. style: The style of the component.
  66. key: A unique key for the component.
  67. id: The id for the component.
  68. class_name: The class name for the component.
  69. autofocus: Whether the component should take the focus once the page is loaded
  70. custom_attrs: custom attribute
  71. **props: The props of the component.
  72. Returns:
  73. The component.
  74. """
  75. ...
  76. def wait_for_client_redirect(component) -> Component: ...
  77. class Default404Page(Component):
  78. @overload
  79. @classmethod
  80. def create( # type: ignore
  81. cls,
  82. *children,
  83. status_code: Optional[Union[Var[int], int]] = None,
  84. style: Optional[Style] = None,
  85. key: Optional[Any] = None,
  86. id: Optional[Any] = None,
  87. class_name: Optional[Any] = None,
  88. autofocus: Optional[bool] = None,
  89. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  90. on_blur: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  91. on_click: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  92. on_context_menu: Optional[
  93. Union[EventHandler, EventSpec, list, Callable, Var]
  94. ] = None,
  95. on_double_click: Optional[
  96. Union[EventHandler, EventSpec, list, Callable, Var]
  97. ] = None,
  98. on_focus: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  99. on_mount: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  100. on_mouse_down: Optional[
  101. Union[EventHandler, EventSpec, list, Callable, Var]
  102. ] = None,
  103. on_mouse_enter: Optional[
  104. Union[EventHandler, EventSpec, list, Callable, Var]
  105. ] = None,
  106. on_mouse_leave: Optional[
  107. Union[EventHandler, EventSpec, list, Callable, Var]
  108. ] = None,
  109. on_mouse_move: Optional[
  110. Union[EventHandler, EventSpec, list, Callable, Var]
  111. ] = None,
  112. on_mouse_out: Optional[
  113. Union[EventHandler, EventSpec, list, Callable, Var]
  114. ] = None,
  115. on_mouse_over: Optional[
  116. Union[EventHandler, EventSpec, list, Callable, Var]
  117. ] = None,
  118. on_mouse_up: Optional[
  119. Union[EventHandler, EventSpec, list, Callable, Var]
  120. ] = None,
  121. on_scroll: Optional[Union[EventHandler, EventSpec, list, Callable, Var]] = None,
  122. on_unmount: Optional[
  123. Union[EventHandler, EventSpec, list, Callable, Var]
  124. ] = None,
  125. **props,
  126. ) -> "Default404Page":
  127. """Create the component.
  128. Args:
  129. *children: The children of the component.
  130. style: The style of the component.
  131. key: A unique key for the component.
  132. id: The id for the component.
  133. class_name: The class name for the component.
  134. autofocus: Whether the component should take the focus once the page is loaded
  135. custom_attrs: custom attribute
  136. **props: The props of the component.
  137. Returns:
  138. The component.
  139. """
  140. ...