client_side_routing.pyi 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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, Optional, overload
  6. from reflex.components.component import Component
  7. from reflex.event import EventType
  8. from reflex.style import Style
  9. from reflex.vars.base import Var
  10. route_not_found: Var
  11. class ClientSideRouting(Component):
  12. def add_hooks(self) -> list[str | Var]: ...
  13. def render(self) -> str: ...
  14. @overload
  15. @classmethod
  16. def create( # type: ignore
  17. cls,
  18. *children,
  19. style: Style | None = None,
  20. key: Any | None = None,
  21. id: Any | None = None,
  22. class_name: Any | None = None,
  23. autofocus: bool | None = None,
  24. custom_attrs: dict[str, Var | Any] | None = None,
  25. on_blur: Optional[EventType[()]] = None,
  26. on_click: Optional[EventType[()]] = None,
  27. on_context_menu: Optional[EventType[()]] = None,
  28. on_double_click: Optional[EventType[()]] = None,
  29. on_focus: Optional[EventType[()]] = None,
  30. on_mount: Optional[EventType[()]] = None,
  31. on_mouse_down: Optional[EventType[()]] = None,
  32. on_mouse_enter: Optional[EventType[()]] = None,
  33. on_mouse_leave: Optional[EventType[()]] = None,
  34. on_mouse_move: Optional[EventType[()]] = None,
  35. on_mouse_out: Optional[EventType[()]] = None,
  36. on_mouse_over: Optional[EventType[()]] = None,
  37. on_mouse_up: Optional[EventType[()]] = None,
  38. on_scroll: Optional[EventType[()]] = None,
  39. on_unmount: Optional[EventType[()]] = None,
  40. **props,
  41. ) -> "ClientSideRouting":
  42. """Create the component.
  43. Args:
  44. *children: The children of the component.
  45. style: The style of the component.
  46. key: A unique key for the component.
  47. id: The id for the component.
  48. class_name: The class name for the component.
  49. autofocus: Whether the component should take the focus once the page is loaded
  50. custom_attrs: custom attribute
  51. **props: The props of the component.
  52. Returns:
  53. The component.
  54. """
  55. ...
  56. def wait_for_client_redirect(component: Component) -> Component: ...
  57. class Default404Page(Component):
  58. @overload
  59. @classmethod
  60. def create( # type: ignore
  61. cls,
  62. *children,
  63. status_code: Var[int] | int | None = None,
  64. style: Style | None = None,
  65. key: Any | None = None,
  66. id: Any | None = None,
  67. class_name: Any | None = None,
  68. autofocus: bool | None = None,
  69. custom_attrs: dict[str, Var | Any] | None = None,
  70. on_blur: Optional[EventType[()]] = None,
  71. on_click: Optional[EventType[()]] = None,
  72. on_context_menu: Optional[EventType[()]] = None,
  73. on_double_click: Optional[EventType[()]] = None,
  74. on_focus: Optional[EventType[()]] = None,
  75. on_mount: Optional[EventType[()]] = None,
  76. on_mouse_down: Optional[EventType[()]] = None,
  77. on_mouse_enter: Optional[EventType[()]] = None,
  78. on_mouse_leave: Optional[EventType[()]] = None,
  79. on_mouse_move: Optional[EventType[()]] = None,
  80. on_mouse_out: Optional[EventType[()]] = None,
  81. on_mouse_over: Optional[EventType[()]] = None,
  82. on_mouse_up: Optional[EventType[()]] = None,
  83. on_scroll: Optional[EventType[()]] = None,
  84. on_unmount: Optional[EventType[()]] = None,
  85. **props,
  86. ) -> "Default404Page":
  87. """Create the component.
  88. Args:
  89. *children: The children of the component.
  90. style: The style of the component.
  91. key: A unique key for the component.
  92. id: The id for the component.
  93. class_name: The class name for the component.
  94. autofocus: Whether the component should take the focus once the page is loaded
  95. custom_attrs: custom attribute
  96. **props: The props of the component.
  97. Returns:
  98. The component.
  99. """
  100. ...