client_side_routing.pyi 4.4 KB

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