diff --git a/reflex/app.py b/reflex/app.py index ae3f904c03..83ee3b8400 100644 --- a/reflex/app.py +++ b/reflex/app.py @@ -24,6 +24,7 @@ Callable, Coroutine, Dict, + Generic, List, Optional, Set, @@ -69,6 +70,7 @@ from reflex.components.radix import themes from reflex.config import environment, get_config from reflex.event import ( + BASE_STATE, Event, EventHandler, EventSpec, @@ -186,7 +188,7 @@ class OverlayFragment(Fragment): @dataclasses.dataclass( frozen=True, ) -class UnevaluatedPage: +class UnevaluatedPage(Generic[BASE_STATE]): """An uncompiled page.""" component: Union[Component, ComponentCallable] @@ -194,7 +196,7 @@ class UnevaluatedPage: title: Union[Var, str, None] description: Union[Var, str, None] image: str - on_load: Union[EventType[[]], None] + on_load: Union[EventType[[], BASE_STATE], None] meta: List[Dict[str, str]] @@ -269,7 +271,7 @@ class App(MiddlewareMixin, LifespanMixin): _state_manager: Optional[StateManager] = None # Mapping from a route to event handlers to trigger when the page loads. PRIVATE. - load_events: Dict[str, List[IndividualEventType[[]]]] = dataclasses.field( + load_events: Dict[str, List[IndividualEventType[[], Any]]] = dataclasses.field( default_factory=dict ) @@ -474,7 +476,7 @@ def add_page( title: str | Var | None = None, description: str | Var | None = None, image: str = constants.DefaultPage.IMAGE, - on_load: EventType[[]] | None = None, + on_load: EventType[[], BASE_STATE] | None = None, meta: list[dict[str, str]] = constants.DefaultPage.META_LIST, ): """Add a page to the app. @@ -560,7 +562,7 @@ def _compile_page(self, route: str): self._check_routes_conflict(route) self.pages[route] = component - def get_load_events(self, route: str) -> list[IndividualEventType[[]]]: + def get_load_events(self, route: str) -> list[IndividualEventType[[], Any]]: """Get the load events for a route. Args: @@ -619,7 +621,7 @@ def add_custom_404_page( title: str = constants.Page404.TITLE, image: str = constants.Page404.IMAGE, description: str = constants.Page404.DESCRIPTION, - on_load: EventType[[]] | None = None, + on_load: EventType[[], BASE_STATE] | None = None, meta: list[dict[str, str]] = constants.DefaultPage.META_LIST, ): """Define a custom 404 page for any url having no match. diff --git a/reflex/components/base/app_wrap.pyi b/reflex/components/base/app_wrap.pyi index c4cb454697..82edf98d39 100644 --- a/reflex/components/base/app_wrap.pyi +++ b/reflex/components/base/app_wrap.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.base.fragment import Fragment -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -22,21 +22,21 @@ class AppWrap(Fragment): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AppWrap": """Create a new AppWrap component. diff --git a/reflex/components/base/body.pyi b/reflex/components/base/body.pyi index 74f3333e52..6d28236fdb 100644 --- a/reflex/components/base/body.pyi +++ b/reflex/components/base/body.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -22,21 +22,21 @@ class Body(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Body": """Create the component. diff --git a/reflex/components/base/document.pyi b/reflex/components/base/document.pyi index a4a956369e..97dacedf83 100644 --- a/reflex/components/base/document.pyi +++ b/reflex/components/base/document.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -22,21 +22,21 @@ class NextDocumentLib(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "NextDocumentLib": """Create the component. @@ -69,21 +69,21 @@ class Html(NextDocumentLib): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Html": """Create the component. @@ -115,21 +115,21 @@ class DocumentHead(NextDocumentLib): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DocumentHead": """Create the component. @@ -161,21 +161,21 @@ class Main(NextDocumentLib): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Main": """Create the component. @@ -207,21 +207,21 @@ class NextScript(NextDocumentLib): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "NextScript": """Create the component. diff --git a/reflex/components/base/error_boundary.pyi b/reflex/components/base/error_boundary.pyi index 154ec0d13f..97acad1bbf 100644 --- a/reflex/components/base/error_boundary.pyi +++ b/reflex/components/base/error_boundary.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -28,22 +28,22 @@ class ErrorBoundary(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_error: Optional[EventType[str, str]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_error: Optional[EventType[[str, str], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ErrorBoundary": """Create an ErrorBoundary component. diff --git a/reflex/components/base/fragment.pyi b/reflex/components/base/fragment.pyi index b49bf4cad9..2dabb0ff36 100644 --- a/reflex/components/base/fragment.pyi +++ b/reflex/components/base/fragment.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -22,21 +22,21 @@ class Fragment(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Fragment": """Create the component. diff --git a/reflex/components/base/head.pyi b/reflex/components/base/head.pyi index 148dbe486e..5019aa2be9 100644 --- a/reflex/components/base/head.pyi +++ b/reflex/components/base/head.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component, MemoizationLeaf -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -22,21 +22,21 @@ class NextHeadLib(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "NextHeadLib": """Create the component. @@ -68,21 +68,21 @@ class Head(NextHeadLib, MemoizationLeaf): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Head": """Create a new memoization leaf component. diff --git a/reflex/components/base/link.pyi b/reflex/components/base/link.pyi index 61ff660293..02f3df43e3 100644 --- a/reflex/components/base/link.pyi +++ b/reflex/components/base/link.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -24,21 +24,21 @@ class RawLink(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RawLink": """Create the component. @@ -79,21 +79,21 @@ class ScriptTag(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ScriptTag": """Create the component. diff --git a/reflex/components/base/meta.pyi b/reflex/components/base/meta.pyi index e91626cde9..3053493cac 100644 --- a/reflex/components/base/meta.pyi +++ b/reflex/components/base/meta.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -23,21 +23,21 @@ class Title(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Title": """Create the component. @@ -74,21 +74,21 @@ class Meta(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Meta": """Create the component. @@ -130,21 +130,21 @@ class Description(Meta): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Description": """Create the component. @@ -186,21 +186,21 @@ class Image(Meta): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Image": """Create the component. diff --git a/reflex/components/base/script.pyi b/reflex/components/base/script.pyi index be4517f44a..9e8d66aea0 100644 --- a/reflex/components/base/script.pyi +++ b/reflex/components/base/script.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -29,24 +29,24 @@ class Script(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_error: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_load: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_ready: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_error: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_load: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_ready: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Script": """Create an inline or user-defined script. diff --git a/reflex/components/core/banner.pyi b/reflex/components/core/banner.pyi index 7c2be272c1..c6b5cd09bc 100644 --- a/reflex/components/core/banner.pyi +++ b/reflex/components/core/banner.pyi @@ -10,7 +10,7 @@ from reflex.components.el.elements.typography import Div from reflex.components.lucide.icon import Icon from reflex.components.sonner.toast import Toaster, ToastProps from reflex.constants.compiler import CompileVars -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportVar from reflex.vars import VarData @@ -89,21 +89,21 @@ class ConnectionToaster(Toaster): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ConnectionToaster": """Create a connection toaster component. @@ -149,21 +149,21 @@ class ConnectionBanner(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ConnectionBanner": """Create a connection banner component. @@ -188,21 +188,21 @@ class ConnectionModal(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ConnectionModal": """Create a connection banner component. @@ -228,21 +228,21 @@ class WifiOffPulse(Icon): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "WifiOffPulse": """Create a wifi_off icon with an animated opacity pulse. @@ -301,21 +301,21 @@ class ConnectionPulser(Div): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ConnectionPulser": """Create a connection pulser component. diff --git a/reflex/components/core/client_side_routing.pyi b/reflex/components/core/client_side_routing.pyi index 1d528daaff..90e629ab9c 100644 --- a/reflex/components/core/client_side_routing.pyi +++ b/reflex/components/core/client_side_routing.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -26,21 +26,21 @@ class ClientSideRouting(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ClientSideRouting": """Create the component. @@ -75,21 +75,21 @@ class Default404Page(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Default404Page": """Create the component. diff --git a/reflex/components/core/clipboard.pyi b/reflex/components/core/clipboard.pyi index e51bad112b..e3233d86cf 100644 --- a/reflex/components/core/clipboard.pyi +++ b/reflex/components/core/clipboard.pyi @@ -7,6 +7,7 @@ from typing import Any, Dict, List, Optional, Union, overload from reflex.components.base.fragment import Fragment from reflex.event import ( + BASE_STATE, EventType, ) from reflex.style import Style @@ -29,22 +30,22 @@ class Clipboard(Fragment): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_paste: Optional[EventType[list[tuple[str, str]]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_paste: Optional[EventType[[list[tuple[str, str]]], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Clipboard": """Create a Clipboard component. diff --git a/reflex/components/core/debounce.pyi b/reflex/components/core/debounce.pyi index 6d7b76510c..e5d89cd900 100644 --- a/reflex/components/core/debounce.pyi +++ b/reflex/components/core/debounce.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Type, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -31,22 +31,22 @@ class DebounceInput(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DebounceInput": """Create a DebounceInput component. diff --git a/reflex/components/core/html.pyi b/reflex/components/core/html.pyi index 7f3ff603dd..f89d665c67 100644 --- a/reflex/components/core/html.pyi +++ b/reflex/components/core/html.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.el.elements.typography import Div -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -49,21 +49,21 @@ class Html(Div): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Html": """Create a html component. diff --git a/reflex/components/core/upload.pyi b/reflex/components/core/upload.pyi index a63854ef22..c6cb329cb2 100644 --- a/reflex/components/core/upload.pyi +++ b/reflex/components/core/upload.pyi @@ -13,6 +13,7 @@ from reflex.components.component import ( ) from reflex.constants import Dirs from reflex.event import ( + BASE_STATE, CallableEventSpec, EventSpec, EventType, @@ -58,21 +59,21 @@ class UploadFilesProvider(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "UploadFilesProvider": """Create the component. @@ -115,22 +116,22 @@ class Upload(MemoizationLeaf): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_drop: Optional[EventType[Any]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_drop: Optional[EventType[[Any], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Upload": """Create an upload component. @@ -181,22 +182,22 @@ class StyledUpload(Upload): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_drop: Optional[EventType[Any]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_drop: Optional[EventType[[Any], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "StyledUpload": """Create the styled upload component. @@ -247,22 +248,22 @@ class UploadNamespace(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_drop: Optional[EventType[Any]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_drop: Optional[EventType[[Any], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "StyledUpload": """Create the styled upload component. diff --git a/reflex/components/datadisplay/code.pyi b/reflex/components/datadisplay/code.pyi index 1e4f7110c4..eadcb524fd 100644 --- a/reflex/components/datadisplay/code.pyi +++ b/reflex/components/datadisplay/code.pyi @@ -8,7 +8,7 @@ from typing import Any, ClassVar, Dict, Literal, Optional, Union, overload from reflex.components.component import Component, ComponentNamespace from reflex.constants.colors import Color -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportDict from reflex.vars.base import Var @@ -939,21 +939,21 @@ class CodeBlock(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CodeBlock": """Create a text component. @@ -1574,21 +1574,21 @@ class CodeblockNamespace(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CodeBlock": """Create a text component. diff --git a/reflex/components/datadisplay/dataeditor.pyi b/reflex/components/datadisplay/dataeditor.pyi index b1ff93c386..43785e5e88 100644 --- a/reflex/components/datadisplay/dataeditor.pyi +++ b/reflex/components/datadisplay/dataeditor.pyi @@ -10,7 +10,7 @@ from typing_extensions import TypedDict from reflex.base import Base from reflex.components.component import NoSSRComponent -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportDict from reflex.utils.serializers import serializer @@ -183,41 +183,47 @@ class DataEditor(NoSSRComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_cell_activated: Optional[EventType[tuple[int, int]]] = None, - on_cell_clicked: Optional[EventType[tuple[int, int]]] = None, - on_cell_context_menu: Optional[EventType[tuple[int, int]]] = None, - on_cell_edited: Optional[EventType[tuple[int, int], GridCell]] = None, - on_click: Optional[EventType[[]]] = None, - on_column_resize: Optional[EventType[GridColumn, int]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_delete: Optional[EventType[GridSelection]] = None, - on_double_click: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_cell_activated: Optional[EventType[[tuple[int, int]], BASE_STATE]] = None, + on_cell_clicked: Optional[EventType[[tuple[int, int]], BASE_STATE]] = None, + on_cell_context_menu: Optional[EventType[[tuple[int, int]], BASE_STATE]] = None, + on_cell_edited: Optional[ + EventType[[tuple[int, int], GridCell], BASE_STATE] + ] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_column_resize: Optional[EventType[[GridColumn, int], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_delete: Optional[EventType[[GridSelection], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, on_finished_editing: Optional[ - EventType[Union[GridCell, None], tuple[int, int]] + EventType[[Union[GridCell, None], tuple[int, int]], BASE_STATE] + ] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_group_header_clicked: Optional[ + EventType[[tuple[int, int], GridCell], BASE_STATE] ] = None, - on_focus: Optional[EventType[[]]] = None, - on_group_header_clicked: Optional[EventType[tuple[int, int], GridCell]] = None, on_group_header_context_menu: Optional[ - EventType[int, GroupHeaderClickedEventArgs] + EventType[[int, GroupHeaderClickedEventArgs], BASE_STATE] + ] = None, + on_group_header_renamed: Optional[EventType[[str, str], BASE_STATE]] = None, + on_header_clicked: Optional[EventType[[tuple[int, int]], BASE_STATE]] = None, + on_header_context_menu: Optional[ + EventType[[tuple[int, int]], BASE_STATE] ] = None, - on_group_header_renamed: Optional[EventType[str, str]] = None, - on_header_clicked: Optional[EventType[tuple[int, int]]] = None, - on_header_context_menu: Optional[EventType[tuple[int, int]]] = None, - on_header_menu_click: Optional[EventType[int, Rectangle]] = None, - on_item_hovered: Optional[EventType[tuple[int, int]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_row_appended: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_selection_cleared: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_header_menu_click: Optional[EventType[[int, Rectangle], BASE_STATE]] = None, + on_item_hovered: Optional[EventType[[tuple[int, int]], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_row_appended: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_selection_cleared: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DataEditor": """Create the DataEditor component. diff --git a/reflex/components/datadisplay/shiki_code_block.pyi b/reflex/components/datadisplay/shiki_code_block.pyi index e2475aed5e..543030daa9 100644 --- a/reflex/components/datadisplay/shiki_code_block.pyi +++ b/reflex/components/datadisplay/shiki_code_block.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.base import Base from reflex.components.component import Component, ComponentNamespace from reflex.components.props import NoExtrasAllowedProps -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var from reflex.vars.function import FunctionStringVar @@ -927,21 +927,21 @@ class ShikiCodeBlock(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ShikiCodeBlock": """Create a code block component using [shiki syntax highlighter](https://shiki.matsu.io/). @@ -1554,21 +1554,21 @@ class ShikiHighLevelCodeBlock(ShikiCodeBlock): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ShikiHighLevelCodeBlock": """Create a code block component using [shiki syntax highlighter](https://shiki.matsu.io/). @@ -2184,21 +2184,21 @@ class CodeblockNamespace(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ShikiHighLevelCodeBlock": """Create a code block component using [shiki syntax highlighter](https://shiki.matsu.io/). diff --git a/reflex/components/el/element.pyi b/reflex/components/el/element.pyi index f6d76cd02b..18b4bc2ba4 100644 --- a/reflex/components/el/element.pyi +++ b/reflex/components/el/element.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -22,21 +22,21 @@ class Element(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Element": """Create the component. diff --git a/reflex/components/el/elements/base.pyi b/reflex/components/el/elements/base.pyi index 6e943d0d03..4994e77c8b 100644 --- a/reflex/components/el/elements/base.pyi +++ b/reflex/components/el/elements/base.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.el.element import Element -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -46,21 +46,21 @@ class BaseHTML(Element): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "BaseHTML": """Create the component. diff --git a/reflex/components/el/elements/forms.pyi b/reflex/components/el/elements/forms.pyi index a8e9b6174a..2f99242475 100644 --- a/reflex/components/el/elements/forms.pyi +++ b/reflex/components/el/elements/forms.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional, Tuple, Union, overload from jinja2 import Environment from reflex.components.el.element import Element -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportDict from reflex.vars.base import Var @@ -71,21 +71,21 @@ class Button(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Button": """Create the component. @@ -168,21 +168,21 @@ class Datalist(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Datalist": """Create the component. @@ -233,21 +233,21 @@ class Fieldset(Element): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Fieldset": """Create the component. @@ -324,24 +324,27 @@ class Form(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, on_submit: Optional[ - Union[EventType[Dict[str, Any]], EventType[Dict[str, str]]] + Union[ + EventType[[Dict[str, Any]], BASE_STATE], + EventType[[Dict[str, str]], BASE_STATE], + ] ] = None, - on_unmount: Optional[EventType[[]]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Form": """Create a form component. @@ -467,24 +470,24 @@ class Input(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[str]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[str]] = None, - on_key_down: Optional[EventType[str]] = None, - on_key_up: Optional[EventType[str]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[str], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[str], BASE_STATE]] = None, + on_key_down: Optional[EventType[[str], BASE_STATE]] = None, + on_key_up: Optional[EventType[[str], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Input": """Create the component. @@ -596,21 +599,21 @@ class Label(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Label": """Create the component. @@ -684,21 +687,21 @@ class Legend(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Legend": """Create the component. @@ -777,21 +780,21 @@ class Meter(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Meter": """Create the component. @@ -872,21 +875,21 @@ class Optgroup(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Optgroup": """Create the component. @@ -964,21 +967,21 @@ class Option(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Option": """Create the component. @@ -1057,21 +1060,21 @@ class Output(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Output": """Create the component. @@ -1149,21 +1152,21 @@ class Progress(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Progress": """Create the component. @@ -1248,22 +1251,22 @@ class Select(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Select": """Create the component. @@ -1366,24 +1369,24 @@ class Textarea(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[str]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[str]] = None, - on_key_down: Optional[EventType[str]] = None, - on_key_up: Optional[EventType[str]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[str], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[str], BASE_STATE]] = None, + on_key_down: Optional[EventType[[str], BASE_STATE]] = None, + on_key_up: Optional[EventType[[str], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Textarea": """Create a textarea component. diff --git a/reflex/components/el/elements/inline.pyi b/reflex/components/el/elements/inline.pyi index 336e4d3dec..f2cbcdb060 100644 --- a/reflex/components/el/elements/inline.pyi +++ b/reflex/components/el/elements/inline.pyi @@ -5,7 +5,7 @@ # ------------------------------------------------------ from typing import Any, Dict, Optional, Union, overload -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -58,21 +58,21 @@ class A(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "A": """Create the component. @@ -153,21 +153,21 @@ class Abbr(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Abbr": """Create the component. @@ -239,21 +239,21 @@ class B(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "B": """Create the component. @@ -325,21 +325,21 @@ class Bdi(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Bdi": """Create the component. @@ -411,21 +411,21 @@ class Bdo(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Bdo": """Create the component. @@ -497,21 +497,21 @@ class Br(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Br": """Create the component. @@ -583,21 +583,21 @@ class Cite(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Cite": """Create the component. @@ -669,21 +669,21 @@ class Code(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Code": """Create the component. @@ -756,21 +756,21 @@ class Data(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Data": """Create the component. @@ -843,21 +843,21 @@ class Dfn(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Dfn": """Create the component. @@ -929,21 +929,21 @@ class Em(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Em": """Create the component. @@ -1015,21 +1015,21 @@ class I(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "I": """Create the component. @@ -1101,21 +1101,21 @@ class Kbd(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Kbd": """Create the component. @@ -1187,21 +1187,21 @@ class Mark(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Mark": """Create the component. @@ -1274,21 +1274,21 @@ class Q(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Q": """Create the component. @@ -1361,21 +1361,21 @@ class Rp(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Rp": """Create the component. @@ -1447,21 +1447,21 @@ class Rt(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Rt": """Create the component. @@ -1533,21 +1533,21 @@ class Ruby(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Ruby": """Create the component. @@ -1619,21 +1619,21 @@ class S(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "S": """Create the component. @@ -1705,21 +1705,21 @@ class Samp(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Samp": """Create the component. @@ -1791,21 +1791,21 @@ class Small(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Small": """Create the component. @@ -1877,21 +1877,21 @@ class Span(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Span": """Create the component. @@ -1963,21 +1963,21 @@ class Strong(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Strong": """Create the component. @@ -2049,21 +2049,21 @@ class Sub(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Sub": """Create the component. @@ -2135,21 +2135,21 @@ class Sup(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Sup": """Create the component. @@ -2222,21 +2222,21 @@ class Time(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Time": """Create the component. @@ -2309,21 +2309,21 @@ class U(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "U": """Create the component. @@ -2395,21 +2395,21 @@ class Wbr(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Wbr": """Create the component. diff --git a/reflex/components/el/elements/media.pyi b/reflex/components/el/elements/media.pyi index 382f3c79c9..f9bae4f569 100644 --- a/reflex/components/el/elements/media.pyi +++ b/reflex/components/el/elements/media.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex import ComponentNamespace from reflex.constants.colors import Color -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -62,21 +62,21 @@ class Area(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Area": """Create the component. @@ -169,21 +169,21 @@ class Audio(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Audio": """Create the component. @@ -281,21 +281,21 @@ class Img(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Img": """Override create method to apply source attribute to value if user fails to pass in attribute. @@ -381,21 +381,21 @@ class Map(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Map": """Create the component. @@ -473,21 +473,21 @@ class Track(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Track": """Create the component. @@ -578,21 +578,21 @@ class Video(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Video": """Create the component. @@ -676,21 +676,21 @@ class Embed(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Embed": """Create the component. @@ -775,21 +775,21 @@ class Iframe(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Iframe": """Create the component. @@ -875,21 +875,21 @@ class Object(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Object": """Create the component. @@ -966,21 +966,21 @@ class Picture(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Picture": """Create the component. @@ -1052,21 +1052,21 @@ class Portal(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Portal": """Create the component. @@ -1143,21 +1143,21 @@ class Source(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Source": """Create the component. @@ -1237,21 +1237,21 @@ class Svg(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Svg": """Create the component. @@ -1333,21 +1333,21 @@ class Text(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Text": """Create the component. @@ -1431,21 +1431,21 @@ class Line(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Line": """Create the component. @@ -1526,21 +1526,21 @@ class Circle(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Circle": """Create the component. @@ -1621,21 +1621,21 @@ class Ellipse(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Ellipse": """Create the component. @@ -1719,21 +1719,21 @@ class Rect(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Rect": """Create the component. @@ -1814,21 +1814,21 @@ class Polygon(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Polygon": """Create the component. @@ -1902,21 +1902,21 @@ class Defs(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Defs": """Create the component. @@ -1995,21 +1995,21 @@ class LinearGradient(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "LinearGradient": """Create the component. @@ -2097,21 +2097,21 @@ class RadialGradient(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadialGradient": """Create the component. @@ -2199,21 +2199,21 @@ class Stop(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Stop": """Create the component. @@ -2289,21 +2289,21 @@ class Path(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Path": """Create the component. @@ -2389,21 +2389,21 @@ class SVG(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Svg": """Create the component. diff --git a/reflex/components/el/elements/metadata.pyi b/reflex/components/el/elements/metadata.pyi index 498695a804..ba934b7678 100644 --- a/reflex/components/el/elements/metadata.pyi +++ b/reflex/components/el/elements/metadata.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.el.element import Element -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -50,21 +50,21 @@ class Base(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Base": """Create the component. @@ -136,21 +136,21 @@ class Head(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Head": """Create the component. @@ -235,21 +235,21 @@ class Link(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Link": """Create the component. @@ -334,21 +334,21 @@ class Meta(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Meta": """Create the component. @@ -400,21 +400,21 @@ class Title(Element): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Title": """Create the component. @@ -447,21 +447,21 @@ class StyleEl(Element): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "StyleEl": """Create the component. diff --git a/reflex/components/el/elements/other.pyi b/reflex/components/el/elements/other.pyi index db884a78b0..6f5ca69e09 100644 --- a/reflex/components/el/elements/other.pyi +++ b/reflex/components/el/elements/other.pyi @@ -5,7 +5,7 @@ # ------------------------------------------------------ from typing import Any, Dict, Optional, Union, overload -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -48,21 +48,21 @@ class Details(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Details": """Create the component. @@ -136,21 +136,21 @@ class Dialog(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Dialog": """Create the component. @@ -223,21 +223,21 @@ class Summary(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Summary": """Create the component. @@ -309,21 +309,21 @@ class Slot(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Slot": """Create the component. @@ -395,21 +395,21 @@ class Template(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Template": """Create the component. @@ -481,21 +481,21 @@ class Math(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Math": """Create the component. @@ -568,21 +568,21 @@ class Html(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Html": """Create the component. diff --git a/reflex/components/el/elements/scripts.pyi b/reflex/components/el/elements/scripts.pyi index 774fcfc22c..56b6aff23e 100644 --- a/reflex/components/el/elements/scripts.pyi +++ b/reflex/components/el/elements/scripts.pyi @@ -5,7 +5,7 @@ # ------------------------------------------------------ from typing import Any, Dict, Optional, Union, overload -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -47,21 +47,21 @@ class Canvas(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Canvas": """Create the component. @@ -133,21 +133,21 @@ class Noscript(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Noscript": """Create the component. @@ -232,21 +232,21 @@ class Script(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Script": """Create the component. diff --git a/reflex/components/el/elements/sectioning.pyi b/reflex/components/el/elements/sectioning.pyi index 963d2d6516..7a468dc587 100644 --- a/reflex/components/el/elements/sectioning.pyi +++ b/reflex/components/el/elements/sectioning.pyi @@ -5,7 +5,7 @@ # ------------------------------------------------------ from typing import Any, Dict, Optional, Union, overload -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -47,21 +47,21 @@ class Body(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Body": """Create the component. @@ -133,21 +133,21 @@ class Address(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Address": """Create the component. @@ -219,21 +219,21 @@ class Article(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Article": """Create the component. @@ -305,21 +305,21 @@ class Aside(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Aside": """Create the component. @@ -391,21 +391,21 @@ class Footer(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Footer": """Create the component. @@ -477,21 +477,21 @@ class Header(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Header": """Create the component. @@ -563,21 +563,21 @@ class H1(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "H1": """Create the component. @@ -649,21 +649,21 @@ class H2(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "H2": """Create the component. @@ -735,21 +735,21 @@ class H3(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "H3": """Create the component. @@ -821,21 +821,21 @@ class H4(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "H4": """Create the component. @@ -907,21 +907,21 @@ class H5(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "H5": """Create the component. @@ -993,21 +993,21 @@ class H6(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "H6": """Create the component. @@ -1079,21 +1079,21 @@ class Main(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Main": """Create the component. @@ -1165,21 +1165,21 @@ class Nav(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Nav": """Create the component. @@ -1251,21 +1251,21 @@ class Section(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Section": """Create the component. diff --git a/reflex/components/el/elements/tables.pyi b/reflex/components/el/elements/tables.pyi index 4d874f4604..116417f3f2 100644 --- a/reflex/components/el/elements/tables.pyi +++ b/reflex/components/el/elements/tables.pyi @@ -5,7 +5,7 @@ # ------------------------------------------------------ from typing import Any, Dict, Optional, Union, overload -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -48,21 +48,21 @@ class Caption(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Caption": """Create the component. @@ -137,21 +137,21 @@ class Col(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Col": """Create the component. @@ -227,21 +227,21 @@ class Colgroup(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Colgroup": """Create the component. @@ -317,21 +317,21 @@ class Table(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Table": """Create the component. @@ -406,21 +406,21 @@ class Tbody(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Tbody": """Create the component. @@ -497,21 +497,21 @@ class Td(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Td": """Create the component. @@ -588,21 +588,21 @@ class Tfoot(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Tfoot": """Create the component. @@ -680,21 +680,21 @@ class Th(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Th": """Create the component. @@ -772,21 +772,21 @@ class Thead(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Thead": """Create the component. @@ -860,21 +860,21 @@ class Tr(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Tr": """Create the component. diff --git a/reflex/components/el/elements/typography.pyi b/reflex/components/el/elements/typography.pyi index 548371ce6c..86a10cd376 100644 --- a/reflex/components/el/elements/typography.pyi +++ b/reflex/components/el/elements/typography.pyi @@ -5,7 +5,7 @@ # ------------------------------------------------------ from typing import Any, Dict, Optional, Union, overload -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -48,21 +48,21 @@ class Blockquote(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Blockquote": """Create the component. @@ -135,21 +135,21 @@ class Dd(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Dd": """Create the component. @@ -221,21 +221,21 @@ class Div(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Div": """Create the component. @@ -307,21 +307,21 @@ class Dl(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Dl": """Create the component. @@ -393,21 +393,21 @@ class Dt(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Dt": """Create the component. @@ -479,21 +479,21 @@ class Figcaption(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Figcaption": """Create the component. @@ -566,21 +566,21 @@ class Hr(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Hr": """Create the component. @@ -653,21 +653,21 @@ class Li(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Li": """Create the component. @@ -740,21 +740,21 @@ class Menu(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Menu": """Create the component. @@ -830,21 +830,21 @@ class Ol(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Ol": """Create the component. @@ -919,21 +919,21 @@ class P(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "P": """Create the component. @@ -1005,21 +1005,21 @@ class Pre(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Pre": """Create the component. @@ -1091,21 +1091,21 @@ class Ul(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Ul": """Create the component. @@ -1179,21 +1179,21 @@ class Ins(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Ins": """Create the component. @@ -1269,21 +1269,21 @@ class Del(BaseHTML): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Del": """Create the component. diff --git a/reflex/components/gridjs/datatable.pyi b/reflex/components/gridjs/datatable.pyi index ec4a5405a3..0e4b3ad178 100644 --- a/reflex/components/gridjs/datatable.pyi +++ b/reflex/components/gridjs/datatable.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, List, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportDict from reflex.vars.base import Var @@ -23,21 +23,21 @@ class Gridjs(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Gridjs": """Create the component. @@ -75,21 +75,21 @@ class DataTable(Gridjs): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DataTable": """Create a datatable component. diff --git a/reflex/components/lucide/icon.pyi b/reflex/components/lucide/icon.pyi index 661d91dbee..0ee3b2c03a 100644 --- a/reflex/components/lucide/icon.pyi +++ b/reflex/components/lucide/icon.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -22,21 +22,21 @@ class LucideIconComponent(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "LucideIconComponent": """Create the component. @@ -69,21 +69,21 @@ class Icon(LucideIconComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Icon": """Initialize the Icon component. diff --git a/reflex/components/markdown/markdown.pyi b/reflex/components/markdown/markdown.pyi index 1cad04013b..25d6d4c004 100644 --- a/reflex/components/markdown/markdown.pyi +++ b/reflex/components/markdown/markdown.pyi @@ -7,7 +7,7 @@ from functools import lru_cache from typing import Any, Callable, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportDict from reflex.vars.base import LiteralVar, Var @@ -42,21 +42,21 @@ class Markdown(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Markdown": """Create a markdown component. diff --git a/reflex/components/moment/moment.pyi b/reflex/components/moment/moment.pyi index 16221ff63f..58738d833c 100644 --- a/reflex/components/moment/moment.pyi +++ b/reflex/components/moment/moment.pyi @@ -7,7 +7,7 @@ import dataclasses from typing import Any, Dict, Optional, Union, overload from reflex.components.component import NoSSRComponent -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportDict from reflex.vars.base import Var @@ -58,22 +58,22 @@ class Moment(NoSSRComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Moment": """Create the component. diff --git a/reflex/components/next/base.pyi b/reflex/components/next/base.pyi index 1d49c5e669..49e9cc5408 100644 --- a/reflex/components/next/base.pyi +++ b/reflex/components/next/base.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -24,21 +24,21 @@ class NextComponent(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "NextComponent": """Create the component. diff --git a/reflex/components/next/image.pyi b/reflex/components/next/image.pyi index 405f8ac528..df8fdaedb2 100644 --- a/reflex/components/next/image.pyi +++ b/reflex/components/next/image.pyi @@ -5,7 +5,7 @@ # ------------------------------------------------------ from typing import Any, Dict, Literal, Optional, Union, overload -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -37,23 +37,23 @@ class Image(NextComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_error: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_load: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_error: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_load: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Image": """Create an Image component from next/image. diff --git a/reflex/components/next/link.pyi b/reflex/components/next/link.pyi index fa9ae530fb..510db02928 100644 --- a/reflex/components/next/link.pyi +++ b/reflex/components/next/link.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -24,21 +24,21 @@ class NextLink(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "NextLink": """Create the component. diff --git a/reflex/components/next/video.pyi b/reflex/components/next/video.pyi index f8c93b6f18..c6242b4623 100644 --- a/reflex/components/next/video.pyi +++ b/reflex/components/next/video.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -26,21 +26,21 @@ class Video(NextComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Video": """Create a Video component. diff --git a/reflex/components/plotly/plotly.pyi b/reflex/components/plotly/plotly.pyi index 186b78a688..4c87d589f8 100644 --- a/reflex/components/plotly/plotly.pyi +++ b/reflex/components/plotly/plotly.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.base import Base from reflex.components.component import NoSSRComponent -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils import console from reflex.vars.base import Var @@ -45,39 +45,39 @@ class Plotly(NoSSRComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_after_plot: Optional[EventType] = None, - on_animated: Optional[EventType] = None, - on_animating_frame: Optional[EventType] = None, - on_animation_interrupted: Optional[EventType] = None, - on_autosize: Optional[EventType] = None, - on_before_hover: Optional[EventType] = None, - on_blur: Optional[EventType[[]]] = None, - on_button_clicked: Optional[EventType] = None, - on_click: Optional[EventType] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_deselect: Optional[EventType] = None, - on_double_click: Optional[EventType] = None, - on_focus: Optional[EventType[[]]] = None, - on_hover: Optional[EventType] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_redraw: Optional[EventType] = None, - on_relayout: Optional[EventType] = None, - on_relayouting: Optional[EventType] = None, - on_restyle: Optional[EventType] = None, - on_scroll: Optional[EventType[[]]] = None, - on_selected: Optional[EventType] = None, - on_selecting: Optional[EventType] = None, - on_transition_interrupted: Optional[EventType] = None, - on_transitioning: Optional[EventType] = None, - on_unhover: Optional[EventType] = None, - on_unmount: Optional[EventType[[]]] = None, + on_after_plot: Optional[EventType[..., BASE_STATE]] = None, + on_animated: Optional[EventType[..., BASE_STATE]] = None, + on_animating_frame: Optional[EventType[..., BASE_STATE]] = None, + on_animation_interrupted: Optional[EventType[..., BASE_STATE]] = None, + on_autosize: Optional[EventType[..., BASE_STATE]] = None, + on_before_hover: Optional[EventType[..., BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_button_clicked: Optional[EventType[..., BASE_STATE]] = None, + on_click: Optional[EventType[..., BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_deselect: Optional[EventType[..., BASE_STATE]] = None, + on_double_click: Optional[EventType[..., BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_hover: Optional[EventType[..., BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_redraw: Optional[EventType[..., BASE_STATE]] = None, + on_relayout: Optional[EventType[..., BASE_STATE]] = None, + on_relayouting: Optional[EventType[..., BASE_STATE]] = None, + on_restyle: Optional[EventType[..., BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_selected: Optional[EventType[..., BASE_STATE]] = None, + on_selecting: Optional[EventType[..., BASE_STATE]] = None, + on_transition_interrupted: Optional[EventType[..., BASE_STATE]] = None, + on_transitioning: Optional[EventType[..., BASE_STATE]] = None, + on_unhover: Optional[EventType[..., BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Plotly": """Create the Plotly component. diff --git a/reflex/components/radix/primitives/accordion.pyi b/reflex/components/radix/primitives/accordion.pyi index c0047442bb..39dd84de74 100644 --- a/reflex/components/radix/primitives/accordion.pyi +++ b/reflex/components/radix/primitives/accordion.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, List, Literal, Optional, Tuple, Union, overload from reflex.components.component import Component, ComponentNamespace from reflex.components.lucide.icon import Icon from reflex.components.radix.primitives.base import RadixPrimitiveComponent -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -101,21 +101,21 @@ class AccordionComponent(RadixPrimitiveComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AccordionComponent": """Create the component. @@ -247,22 +247,22 @@ class AccordionRoot(AccordionComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, - on_value_change: Optional[EventType[str | List[str]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, + on_value_change: Optional[EventType[[str | List[str]], BASE_STATE]] = None, **props, ) -> "AccordionRoot": """Create the component. @@ -382,21 +382,21 @@ class AccordionItem(AccordionComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AccordionItem": """Create an accordion item. @@ -506,21 +506,21 @@ class AccordionHeader(AccordionComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AccordionHeader": """Create the Accordion header component. @@ -626,21 +626,21 @@ class AccordionTrigger(AccordionComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AccordionTrigger": """Create the Accordion trigger component. @@ -678,21 +678,21 @@ class AccordionIcon(Icon): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AccordionIcon": """Create the Accordion icon component. @@ -795,21 +795,21 @@ class AccordionContent(AccordionComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AccordionContent": """Create the Accordion content component. diff --git a/reflex/components/radix/primitives/base.pyi b/reflex/components/radix/primitives/base.pyi index 3eacd3f073..7b729c96f1 100644 --- a/reflex/components/radix/primitives/base.pyi +++ b/reflex/components/radix/primitives/base.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.component import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -23,21 +23,21 @@ class RadixPrimitiveComponent(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadixPrimitiveComponent": """Create the component. @@ -71,21 +71,21 @@ class RadixPrimitiveComponentWithClassName(RadixPrimitiveComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadixPrimitiveComponentWithClassName": """Create the component. diff --git a/reflex/components/radix/primitives/drawer.pyi b/reflex/components/radix/primitives/drawer.pyi index 3f43401a40..d29ae2ba4d 100644 --- a/reflex/components/radix/primitives/drawer.pyi +++ b/reflex/components/radix/primitives/drawer.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.radix.primitives.base import RadixPrimitiveComponent -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -24,21 +24,21 @@ class DrawerComponent(RadixPrimitiveComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerComponent": """Create the component. @@ -91,23 +91,23 @@ class DrawerRoot(DrawerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[bool]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[bool], BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerRoot": """Create the component. @@ -155,21 +155,21 @@ class DrawerTrigger(DrawerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerTrigger": """Create a new DrawerTrigger instance. @@ -203,21 +203,21 @@ class DrawerPortal(DrawerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerPortal": """Create the component. @@ -251,26 +251,26 @@ class DrawerContent(DrawerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_close_auto_focus: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_interact_outside: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_auto_focus: Optional[EventType[[]]] = None, - on_pointer_down_outside: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_close_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_interact_outside: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerContent": """Create a Drawer Content. @@ -308,21 +308,21 @@ class DrawerOverlay(DrawerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerOverlay": """Create the component. @@ -356,21 +356,21 @@ class DrawerClose(DrawerTrigger): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerClose": """Create a new DrawerTrigger instance. @@ -404,21 +404,21 @@ class DrawerTitle(DrawerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerTitle": """Create the component. @@ -452,21 +452,21 @@ class DrawerDescription(DrawerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerDescription": """Create the component. @@ -500,21 +500,21 @@ class DrawerHandle(DrawerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerHandle": """Create the component. @@ -573,23 +573,23 @@ class Drawer(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[bool]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[bool], BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerRoot": """Create the component. diff --git a/reflex/components/radix/primitives/form.pyi b/reflex/components/radix/primitives/form.pyi index 72595a9338..b336116cac 100644 --- a/reflex/components/radix/primitives/form.pyi +++ b/reflex/components/radix/primitives/form.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.el.elements.forms import Form as HTMLForm -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -26,21 +26,21 @@ class FormComponent(RadixPrimitiveComponentWithClassName): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "FormComponent": """Create the component. @@ -114,25 +114,28 @@ class FormRoot(FormComponent, HTMLForm): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_clear_server_errors: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_clear_server_errors: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, on_submit: Optional[ - Union[EventType[Dict[str, Any]], EventType[Dict[str, str]]] + Union[ + EventType[[Dict[str, Any]], BASE_STATE], + EventType[[Dict[str, str]], BASE_STATE], + ] ] = None, - on_unmount: Optional[EventType[[]]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "FormRoot": """Create a form component. @@ -198,21 +201,21 @@ class FormField(FormComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "FormField": """Create the component. @@ -249,21 +252,21 @@ class FormLabel(FormComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "FormLabel": """Create the component. @@ -297,21 +300,21 @@ class FormControl(FormComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "FormControl": """Create a Form Control component. @@ -395,21 +398,21 @@ class FormMessage(FormComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "FormMessage": """Create the component. @@ -446,21 +449,21 @@ class FormValidityState(FormComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "FormValidityState": """Create the component. @@ -494,21 +497,21 @@ class FormSubmit(FormComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "FormSubmit": """Create the component. @@ -583,25 +586,28 @@ class Form(FormRoot): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_clear_server_errors: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_clear_server_errors: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, on_submit: Optional[ - Union[EventType[Dict[str, Any]], EventType[Dict[str, str]]] + Union[ + EventType[[Dict[str, Any]], BASE_STATE], + EventType[[Dict[str, str]], BASE_STATE], + ] ] = None, - on_unmount: Optional[EventType[[]]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Form": """Create a form component. @@ -709,25 +715,28 @@ class FormNamespace(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_clear_server_errors: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_clear_server_errors: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, on_submit: Optional[ - Union[EventType[Dict[str, Any]], EventType[Dict[str, str]]] + Union[ + EventType[[Dict[str, Any]], BASE_STATE], + EventType[[Dict[str, str]], BASE_STATE], + ] ] = None, - on_unmount: Optional[EventType[[]]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Form": """Create a form component. diff --git a/reflex/components/radix/primitives/progress.pyi b/reflex/components/radix/primitives/progress.pyi index c760c0a575..f3d844e44b 100644 --- a/reflex/components/radix/primitives/progress.pyi +++ b/reflex/components/radix/primitives/progress.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -24,21 +24,21 @@ class ProgressComponent(RadixPrimitiveComponentWithClassName): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ProgressComponent": """Create the component. @@ -79,21 +79,21 @@ class ProgressRoot(ProgressComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ProgressRoot": """Create the component. @@ -193,21 +193,21 @@ class ProgressIndicator(ProgressComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ProgressIndicator": """Create the component. @@ -314,21 +314,21 @@ class Progress(ProgressRoot): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Progress": """High-level API for progress bar. @@ -436,21 +436,21 @@ class ProgressNamespace(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Progress": """High-level API for progress bar. diff --git a/reflex/components/radix/primitives/slider.pyi b/reflex/components/radix/primitives/slider.pyi index 03a30f164b..b37ec7b078 100644 --- a/reflex/components/radix/primitives/slider.pyi +++ b/reflex/components/radix/primitives/slider.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, List, Literal, Optional, Tuple, Union, overload from reflex.components.component import Component, ComponentNamespace from reflex.components.radix.primitives.base import RadixPrimitiveComponentWithClassName -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -27,21 +27,21 @@ class SliderComponent(RadixPrimitiveComponentWithClassName): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SliderComponent": """Create the component. @@ -94,23 +94,23 @@ class SliderRoot(SliderComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, - on_value_change: Optional[EventType[List[int]]] = None, - on_value_commit: Optional[EventType[List[int]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, + on_value_change: Optional[EventType[[List[int]], BASE_STATE]] = None, + on_value_commit: Optional[EventType[[List[int]], BASE_STATE]] = None, **props, ) -> "SliderRoot": """Create the component. @@ -147,21 +147,21 @@ class SliderTrack(SliderComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SliderTrack": """Create the component. @@ -196,21 +196,21 @@ class SliderRange(SliderComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SliderRange": """Create the component. @@ -245,21 +245,21 @@ class SliderThumb(SliderComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SliderThumb": """Create the component. diff --git a/reflex/components/radix/themes/base.pyi b/reflex/components/radix/themes/base.pyi index 0f0de54014..b617fd40ab 100644 --- a/reflex/components/radix/themes/base.pyi +++ b/reflex/components/radix/themes/base.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components import Component -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportDict from reflex.vars.base import Var @@ -103,21 +103,21 @@ class CommonMarginProps(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CommonMarginProps": """Create the component. @@ -157,21 +157,21 @@ class RadixLoadingProp(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadixLoadingProp": """Create the component. @@ -204,21 +204,21 @@ class RadixThemesComponent(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadixThemesComponent": """Create a new component instance. @@ -253,21 +253,21 @@ class RadixThemesTriggerComponent(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadixThemesTriggerComponent": """Create a new RadixThemesTriggerComponent instance. @@ -385,21 +385,21 @@ class Theme(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Theme": """Create a new Radix Theme specification. @@ -444,21 +444,21 @@ class ThemePanel(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ThemePanel": """Create a new component instance. @@ -494,21 +494,21 @@ class RadixThemesColorModeProvider(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadixThemesColorModeProvider": """Create the component. diff --git a/reflex/components/radix/themes/color_mode.pyi b/reflex/components/radix/themes/color_mode.pyi index a5b7b31ecc..a508730b71 100644 --- a/reflex/components/radix/themes/color_mode.pyi +++ b/reflex/components/radix/themes/color_mode.pyi @@ -10,7 +10,7 @@ from reflex.components.core.breakpoints import Breakpoints from reflex.components.core.cond import Cond from reflex.components.lucide.icon import Icon from reflex.components.radix.themes.components.switch import Switch -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import ( Style, color_mode, @@ -37,21 +37,21 @@ class ColorModeIcon(Cond): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ColorModeIcon": """Create an icon component based on color_mode. @@ -221,21 +221,21 @@ class ColorModeIconButton(IconButton): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ColorModeIconButton": """Create an icon button component that calls toggle_color_mode on click. @@ -394,22 +394,22 @@ class ColorModeSwitch(Switch): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[bool]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ColorModeSwitch": """Create a switch component bound to color_mode. diff --git a/reflex/components/radix/themes/components/alert_dialog.pyi b/reflex/components/radix/themes/components/alert_dialog.pyi index 543497f4b4..d219e2abf2 100644 --- a/reflex/components/radix/themes/components/alert_dialog.pyi +++ b/reflex/components/radix/themes/components/alert_dialog.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -30,22 +30,22 @@ class AlertDialogRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AlertDialogRoot": """Create a new component instance. @@ -83,21 +83,21 @@ class AlertDialogTrigger(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AlertDialogTrigger": """Create a new RadixThemesTriggerComponent instance. @@ -160,24 +160,24 @@ class AlertDialogContent(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_close_auto_focus: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_auto_focus: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_close_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AlertDialogContent": """Create a new component instance. @@ -233,21 +233,21 @@ class AlertDialogTitle(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AlertDialogTitle": """Create a new component instance. @@ -282,21 +282,21 @@ class AlertDialogDescription(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AlertDialogDescription": """Create a new component instance. @@ -331,21 +331,21 @@ class AlertDialogAction(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AlertDialogAction": """Create a new RadixThemesTriggerComponent instance. @@ -371,21 +371,21 @@ class AlertDialogCancel(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AlertDialogCancel": """Create a new RadixThemesTriggerComponent instance. diff --git a/reflex/components/radix/themes/components/aspect_ratio.pyi b/reflex/components/radix/themes/components/aspect_ratio.pyi index 848d2064a0..8fde7f30e9 100644 --- a/reflex/components/radix/themes/components/aspect_ratio.pyi +++ b/reflex/components/radix/themes/components/aspect_ratio.pyi @@ -5,7 +5,7 @@ # ------------------------------------------------------ from typing import Any, Dict, Optional, Union, overload -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -24,21 +24,21 @@ class AspectRatio(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AspectRatio": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/avatar.pyi b/reflex/components/radix/themes/components/avatar.pyi index fc42457dac..f6c07ed29a 100644 --- a/reflex/components/radix/themes/components/avatar.pyi +++ b/reflex/components/radix/themes/components/avatar.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -114,21 +114,21 @@ class Avatar(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Avatar": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/badge.pyi b/reflex/components/radix/themes/components/badge.pyi index 405b7b835c..59a243c48e 100644 --- a/reflex/components/radix/themes/components/badge.pyi +++ b/reflex/components/radix/themes/components/badge.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -135,21 +135,21 @@ class Badge(elements.Span, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Badge": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/button.pyi b/reflex/components/radix/themes/components/button.pyi index f9702d3b56..b72233922b 100644 --- a/reflex/components/radix/themes/components/button.pyi +++ b/reflex/components/radix/themes/components/button.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -158,21 +158,21 @@ class Button(elements.Button, RadixLoadingProp, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Button": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/callout.pyi b/reflex/components/radix/themes/components/callout.pyi index 18ae5a357e..53bea31e71 100644 --- a/reflex/components/radix/themes/components/callout.pyi +++ b/reflex/components/radix/themes/components/callout.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -133,21 +133,21 @@ class CalloutRoot(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CalloutRoot": """Create a new component instance. @@ -227,21 +227,21 @@ class CalloutIcon(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CalloutIcon": """Create a new component instance. @@ -316,21 +316,21 @@ class CalloutText(elements.P, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CalloutText": """Create a new component instance. @@ -488,21 +488,21 @@ class Callout(CalloutRoot): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Callout": """Create a callout component. @@ -666,21 +666,21 @@ class CalloutNamespace(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Callout": """Create a callout component. diff --git a/reflex/components/radix/themes/components/card.pyi b/reflex/components/radix/themes/components/card.pyi index dc45bc226d..de7ccd019a 100644 --- a/reflex/components/radix/themes/components/card.pyi +++ b/reflex/components/radix/themes/components/card.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -68,21 +68,21 @@ class Card(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Card": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/checkbox.pyi b/reflex/components/radix/themes/components/checkbox.pyi index 8f69a0f731..43d707c8f1 100644 --- a/reflex/components/radix/themes/components/checkbox.pyi +++ b/reflex/components/radix/themes/components/checkbox.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -115,22 +115,22 @@ class Checkbox(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[bool]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Checkbox": """Create a new component instance. @@ -263,22 +263,22 @@ class HighLevelCheckbox(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[bool]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HighLevelCheckbox": """Create a checkbox with a label. @@ -408,22 +408,22 @@ class CheckboxNamespace(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[bool]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HighLevelCheckbox": """Create a checkbox with a label. diff --git a/reflex/components/radix/themes/components/checkbox_cards.pyi b/reflex/components/radix/themes/components/checkbox_cards.pyi index 062fc13572..be2cbbed67 100644 --- a/reflex/components/radix/themes/components/checkbox_cards.pyi +++ b/reflex/components/radix/themes/components/checkbox_cards.pyi @@ -7,7 +7,7 @@ from types import SimpleNamespace from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -148,21 +148,21 @@ class CheckboxCardsRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CheckboxCardsRoot": """Create a new component instance. @@ -203,21 +203,21 @@ class CheckboxCardsItem(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CheckboxCardsItem": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/checkbox_group.pyi b/reflex/components/radix/themes/components/checkbox_group.pyi index 363be0599d..47c8073fc4 100644 --- a/reflex/components/radix/themes/components/checkbox_group.pyi +++ b/reflex/components/radix/themes/components/checkbox_group.pyi @@ -7,7 +7,7 @@ from types import SimpleNamespace from typing import Any, Dict, List, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -107,21 +107,21 @@ class CheckboxGroupRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CheckboxGroupRoot": """Create a new component instance. @@ -164,21 +164,21 @@ class CheckboxGroupItem(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CheckboxGroupItem": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/context_menu.pyi b/reflex/components/radix/themes/components/context_menu.pyi index f7eb4682a4..ffc058d14f 100644 --- a/reflex/components/radix/themes/components/context_menu.pyi +++ b/reflex/components/radix/themes/components/context_menu.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -34,22 +34,22 @@ class ContextMenuRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ContextMenuRoot": """Create a new component instance. @@ -88,21 +88,21 @@ class ContextMenuTrigger(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ContextMenuTrigger": """Create a new component instance. @@ -241,26 +241,26 @@ class ContextMenuContent(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_close_auto_focus: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_focus_outside: Optional[EventType[[]]] = None, - on_interact_outside: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_pointer_down_outside: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_close_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_focus_outside: Optional[EventType[[], BASE_STATE]] = None, + on_interact_outside: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ContextMenuContent": """Create a new component instance. @@ -317,22 +317,22 @@ class ContextMenuSub(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ContextMenuSub": """Create a new component instance. @@ -373,21 +373,21 @@ class ContextMenuSubTrigger(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ContextMenuSubTrigger": """Create a new component instance. @@ -443,25 +443,25 @@ class ContextMenuSubContent(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_focus_outside: Optional[EventType[[]]] = None, - on_interact_outside: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_pointer_down_outside: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_focus_outside: Optional[EventType[[], BASE_STATE]] = None, + on_interact_outside: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ContextMenuSubContent": """Create a new component instance. @@ -575,22 +575,22 @@ class ContextMenuItem(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_select: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_select: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ContextMenuItem": """Create a new component instance. @@ -631,21 +631,21 @@ class ContextMenuSeparator(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ContextMenuSeparator": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/data_list.pyi b/reflex/components/radix/themes/components/data_list.pyi index 342fa6e776..3712209b47 100644 --- a/reflex/components/radix/themes/components/data_list.pyi +++ b/reflex/components/radix/themes/components/data_list.pyi @@ -7,7 +7,7 @@ from types import SimpleNamespace from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -60,21 +60,21 @@ class DataListRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DataListRoot": """Create a new component instance. @@ -129,21 +129,21 @@ class DataListItem(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DataListItem": """Create a new component instance. @@ -250,21 +250,21 @@ class DataListLabel(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DataListLabel": """Create a new component instance. @@ -303,21 +303,21 @@ class DataListValue(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DataListValue": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/dialog.pyi b/reflex/components/radix/themes/components/dialog.pyi index a6d8e24f71..8f465efdfa 100644 --- a/reflex/components/radix/themes/components/dialog.pyi +++ b/reflex/components/radix/themes/components/dialog.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -28,22 +28,22 @@ class DialogRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DialogRoot": """Create a new component instance. @@ -81,21 +81,21 @@ class DialogTrigger(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DialogTrigger": """Create a new RadixThemesTriggerComponent instance. @@ -121,21 +121,21 @@ class DialogTitle(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DialogTitle": """Create a new component instance. @@ -206,26 +206,26 @@ class DialogContent(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_close_auto_focus: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_interact_outside: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_auto_focus: Optional[EventType[[]]] = None, - on_pointer_down_outside: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_close_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_interact_outside: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DialogContent": """Create a new component instance. @@ -282,21 +282,21 @@ class DialogDescription(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DialogDescription": """Create a new component instance. @@ -331,21 +331,21 @@ class DialogClose(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DialogClose": """Create a new RadixThemesTriggerComponent instance. @@ -378,22 +378,22 @@ class Dialog(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DialogRoot": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/dropdown_menu.pyi b/reflex/components/radix/themes/components/dropdown_menu.pyi index 980a33bb5e..0cc83640f9 100644 --- a/reflex/components/radix/themes/components/dropdown_menu.pyi +++ b/reflex/components/radix/themes/components/dropdown_menu.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -36,22 +36,22 @@ class DropdownMenuRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DropdownMenuRoot": """Create a new component instance. @@ -92,21 +92,21 @@ class DropdownMenuTrigger(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DropdownMenuTrigger": """Create a new RadixThemesTriggerComponent instance. @@ -235,26 +235,26 @@ class DropdownMenuContent(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_close_auto_focus: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_focus_outside: Optional[EventType[[]]] = None, - on_interact_outside: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_pointer_down_outside: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_close_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_focus_outside: Optional[EventType[[], BASE_STATE]] = None, + on_interact_outside: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DropdownMenuContent": """Create a new component instance. @@ -312,21 +312,21 @@ class DropdownMenuSubTrigger(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DropdownMenuSubTrigger": """Create a new RadixThemesTriggerComponent instance. @@ -354,22 +354,22 @@ class DropdownMenuSub(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DropdownMenuSub": """Create a new component instance. @@ -425,25 +425,25 @@ class DropdownMenuSubContent(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_focus_outside: Optional[EventType[[]]] = None, - on_interact_outside: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_pointer_down_outside: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_focus_outside: Optional[EventType[[], BASE_STATE]] = None, + on_interact_outside: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DropdownMenuSubContent": """Create a new component instance. @@ -557,22 +557,22 @@ class DropdownMenuItem(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_select: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_select: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DropdownMenuItem": """Create a new component instance. @@ -613,21 +613,21 @@ class DropdownMenuSeparator(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DropdownMenuSeparator": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/hover_card.pyi b/reflex/components/radix/themes/components/hover_card.pyi index e8b5b43ee4..730bd48a3d 100644 --- a/reflex/components/radix/themes/components/hover_card.pyi +++ b/reflex/components/radix/themes/components/hover_card.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -30,22 +30,22 @@ class HoverCardRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HoverCardRoot": """Create a new component instance. @@ -85,21 +85,21 @@ class HoverCardTrigger(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HoverCardTrigger": """Create a new RadixThemesTriggerComponent instance. @@ -193,21 +193,21 @@ class HoverCardContent(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HoverCardContent": """Create a new component instance. @@ -273,22 +273,22 @@ class HoverCard(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HoverCardRoot": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/icon_button.pyi b/reflex/components/radix/themes/components/icon_button.pyi index 901c8d6ffe..75825a0338 100644 --- a/reflex/components/radix/themes/components/icon_button.pyi +++ b/reflex/components/radix/themes/components/icon_button.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -158,21 +158,21 @@ class IconButton(elements.Button, RadixLoadingProp, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "IconButton": """Create a IconButton component. diff --git a/reflex/components/radix/themes/components/inset.pyi b/reflex/components/radix/themes/components/inset.pyi index d6b0cce040..f085f4e0ec 100644 --- a/reflex/components/radix/themes/components/inset.pyi +++ b/reflex/components/radix/themes/components/inset.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -133,21 +133,21 @@ class Inset(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Inset": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/popover.pyi b/reflex/components/radix/themes/components/popover.pyi index dfe7a3a68c..666995b172 100644 --- a/reflex/components/radix/themes/components/popover.pyi +++ b/reflex/components/radix/themes/components/popover.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -29,22 +29,22 @@ class PopoverRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "PopoverRoot": """Create a new component instance. @@ -83,21 +83,21 @@ class PopoverTrigger(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "PopoverTrigger": """Create a new RadixThemesTriggerComponent instance. @@ -186,27 +186,27 @@ class PopoverContent(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_close_auto_focus: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_focus_outside: Optional[EventType[[]]] = None, - on_interact_outside: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_auto_focus: Optional[EventType[[]]] = None, - on_pointer_down_outside: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_close_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_focus_outside: Optional[EventType[[], BASE_STATE]] = None, + on_interact_outside: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "PopoverContent": """Create a new component instance. @@ -272,21 +272,21 @@ class PopoverClose(RadixThemesTriggerComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "PopoverClose": """Create a new RadixThemesTriggerComponent instance. diff --git a/reflex/components/radix/themes/components/progress.pyi b/reflex/components/radix/themes/components/progress.pyi index 6470842f3c..f4f84df6ed 100644 --- a/reflex/components/radix/themes/components/progress.pyi +++ b/reflex/components/radix/themes/components/progress.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -114,21 +114,21 @@ class Progress(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Progress": """Create a Progress component. diff --git a/reflex/components/radix/themes/components/radio.pyi b/reflex/components/radix/themes/components/radio.pyi index f1a6b131ae..ed49aeb1a5 100644 --- a/reflex/components/radix/themes/components/radio.pyi +++ b/reflex/components/radix/themes/components/radio.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -104,21 +104,21 @@ class Radio(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Radio": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/radio_cards.pyi b/reflex/components/radix/themes/components/radio_cards.pyi index ac6a645a96..505453e9fc 100644 --- a/reflex/components/radix/themes/components/radio_cards.pyi +++ b/reflex/components/radix/themes/components/radio_cards.pyi @@ -7,7 +7,7 @@ from types import SimpleNamespace from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -162,22 +162,22 @@ class RadioCardsRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, - on_value_change: Optional[EventType[str]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, + on_value_change: Optional[EventType[[str], BASE_STATE]] = None, **props, ) -> "RadioCardsRoot": """Create a new component instance. @@ -231,21 +231,21 @@ class RadioCardsItem(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadioCardsItem": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/radio_group.pyi b/reflex/components/radix/themes/components/radio_group.pyi index 5ff5d6e7c6..3851ca6f60 100644 --- a/reflex/components/radix/themes/components/radio_group.pyi +++ b/reflex/components/radix/themes/components/radio_group.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -112,22 +112,22 @@ class RadioGroupRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadioGroupRoot": """Create a new component instance. @@ -175,21 +175,21 @@ class RadioGroupItem(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadioGroupItem": """Create a new component instance. @@ -317,21 +317,21 @@ class HighLevelRadioGroup(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HighLevelRadioGroup": """Create a radio group component. @@ -469,21 +469,21 @@ class RadioGroup(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HighLevelRadioGroup": """Create a radio group component. diff --git a/reflex/components/radix/themes/components/scroll_area.pyi b/reflex/components/radix/themes/components/scroll_area.pyi index 8deeb0fe95..644c65e787 100644 --- a/reflex/components/radix/themes/components/scroll_area.pyi +++ b/reflex/components/radix/themes/components/scroll_area.pyi @@ -5,7 +5,7 @@ # ------------------------------------------------------ from typing import Any, Dict, Literal, Optional, Union, overload -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -36,21 +36,21 @@ class ScrollArea(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ScrollArea": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/segmented_control.pyi b/reflex/components/radix/themes/components/segmented_control.pyi index d74c26be99..6a28961ba7 100644 --- a/reflex/components/radix/themes/components/segmented_control.pyi +++ b/reflex/components/radix/themes/components/segmented_control.pyi @@ -7,7 +7,7 @@ from types import SimpleNamespace from typing import Any, Dict, List, Literal, Optional, Tuple, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -116,22 +116,22 @@ class SegmentedControlRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[str | List[str]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[str | List[str]], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SegmentedControlRoot": """Create a new component instance. @@ -175,21 +175,21 @@ class SegmentedControlItem(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SegmentedControlItem": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/select.pyi b/reflex/components/radix/themes/components/select.pyi index d43ac73275..bcedb00f5b 100644 --- a/reflex/components/radix/themes/components/select.pyi +++ b/reflex/components/radix/themes/components/select.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -43,23 +43,23 @@ class SelectRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SelectRoot": """Create a new component instance. @@ -179,21 +179,21 @@ class SelectTrigger(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SelectTrigger": """Create a new component instance. @@ -318,24 +318,24 @@ class SelectContent(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_close_auto_focus: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_pointer_down_outside: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_close_auto_focus: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SelectContent": """Create a new component instance. @@ -381,21 +381,21 @@ class SelectGroup(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SelectGroup": """Create a new component instance. @@ -432,21 +432,21 @@ class SelectItem(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SelectItem": """Create a new component instance. @@ -483,21 +483,21 @@ class SelectLabel(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SelectLabel": """Create a new component instance. @@ -532,21 +532,21 @@ class SelectSeparator(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SelectSeparator": """Create a new component instance. @@ -684,23 +684,23 @@ class HighLevelSelect(SelectRoot): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HighLevelSelect": """Create a select component. @@ -860,23 +860,23 @@ class Select(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HighLevelSelect": """Create a select component. diff --git a/reflex/components/radix/themes/components/separator.pyi b/reflex/components/radix/themes/components/separator.pyi index 0f28954039..92edc84769 100644 --- a/reflex/components/radix/themes/components/separator.pyi +++ b/reflex/components/radix/themes/components/separator.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -113,21 +113,21 @@ class Separator(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Separator": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/skeleton.pyi b/reflex/components/radix/themes/components/skeleton.pyi index 61b57c275d..6ecb35d090 100644 --- a/reflex/components/radix/themes/components/skeleton.pyi +++ b/reflex/components/radix/themes/components/skeleton.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -43,21 +43,21 @@ class Skeleton(RadixLoadingProp, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Skeleton": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/slider.pyi b/reflex/components/radix/themes/components/slider.pyi index 0d1b17e5f6..18894d950f 100644 --- a/reflex/components/radix/themes/components/slider.pyi +++ b/reflex/components/radix/themes/components/slider.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType, passthrough_event_spec +from reflex.event import BASE_STATE, EventType, passthrough_event_spec from reflex.style import Style from reflex.vars.base import Var @@ -139,33 +139,33 @@ class Slider(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, on_change: Optional[ Union[ - EventType[list[Union[int, float]]], - EventType[list[int]], - EventType[list[float]], + EventType[[list[Union[int, float]]], BASE_STATE], + EventType[[list[int]], BASE_STATE], + EventType[[list[float]], BASE_STATE], ] ] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, on_value_commit: Optional[ Union[ - EventType[list[Union[int, float]]], - EventType[list[int]], - EventType[list[float]], + EventType[[list[Union[int, float]]], BASE_STATE], + EventType[[list[int]], BASE_STATE], + EventType[[list[float]], BASE_STATE], ] ] = None, **props, diff --git a/reflex/components/radix/themes/components/spinner.pyi b/reflex/components/radix/themes/components/spinner.pyi index 87033f05cb..434a7b531b 100644 --- a/reflex/components/radix/themes/components/spinner.pyi +++ b/reflex/components/radix/themes/components/spinner.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -38,21 +38,21 @@ class Spinner(RadixLoadingProp, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Spinner": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/switch.pyi b/reflex/components/radix/themes/components/switch.pyi index aebeb761e6..f338cd38fc 100644 --- a/reflex/components/radix/themes/components/switch.pyi +++ b/reflex/components/radix/themes/components/switch.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -118,22 +118,22 @@ class Switch(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[bool]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Switch": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/table.pyi b/reflex/components/radix/themes/components/table.pyi index 8b1ef355f8..637fdee48c 100644 --- a/reflex/components/radix/themes/components/table.pyi +++ b/reflex/components/radix/themes/components/table.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -66,21 +66,21 @@ class TableRoot(elements.Table, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TableRoot": """Create a new component instance. @@ -160,21 +160,21 @@ class TableHeader(elements.Thead, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TableHeader": """Create a new component instance. @@ -256,21 +256,21 @@ class TableRow(elements.Tr, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TableRow": """Create a new component instance. @@ -357,21 +357,21 @@ class TableColumnHeaderCell(elements.Th, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TableColumnHeaderCell": """Create a new component instance. @@ -453,21 +453,21 @@ class TableBody(elements.Tbody, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TableBody": """Create a new component instance. @@ -553,21 +553,21 @@ class TableCell(elements.Td, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TableCell": """Create a new component instance. @@ -658,21 +658,21 @@ class TableRowHeaderCell(elements.Th, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TableRowHeaderCell": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/tabs.pyi b/reflex/components/radix/themes/components/tabs.pyi index ac61092094..ef043e984e 100644 --- a/reflex/components/radix/themes/components/tabs.pyi +++ b/reflex/components/radix/themes/components/tabs.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -40,22 +40,22 @@ class TabsRoot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TabsRoot": """Create a new component instance. @@ -105,21 +105,21 @@ class TabsList(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TabsList": """Create a new component instance. @@ -220,21 +220,21 @@ class TabsTrigger(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TabsTrigger": """Create a TabsTrigger component. @@ -274,21 +274,21 @@ class TabsContent(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TabsContent": """Create a new component instance. @@ -340,22 +340,22 @@ class Tabs(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TabsRoot": """Create a new component instance. diff --git a/reflex/components/radix/themes/components/text_area.pyi b/reflex/components/radix/themes/components/text_area.pyi index 099a1700a0..f38ef1b00c 100644 --- a/reflex/components/radix/themes/components/text_area.pyi +++ b/reflex/components/radix/themes/components/text_area.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -168,24 +168,24 @@ class TextArea(RadixThemesComponent, elements.Textarea): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[str]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[str]] = None, - on_key_down: Optional[EventType[str]] = None, - on_key_up: Optional[EventType[str]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[str], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[str], BASE_STATE]] = None, + on_key_down: Optional[EventType[[str], BASE_STATE]] = None, + on_key_up: Optional[EventType[[str], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TextArea": """Create an Input component. diff --git a/reflex/components/radix/themes/components/text_field.pyi b/reflex/components/radix/themes/components/text_field.pyi index ffe827aff2..9d949e299a 100644 --- a/reflex/components/radix/themes/components/text_field.pyi +++ b/reflex/components/radix/themes/components/text_field.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -149,24 +149,24 @@ class TextFieldRoot(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[str]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[str]] = None, - on_key_down: Optional[EventType[str]] = None, - on_key_up: Optional[EventType[str]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[str], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[str], BASE_STATE]] = None, + on_key_down: Optional[EventType[[str], BASE_STATE]] = None, + on_key_up: Optional[EventType[[str], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TextFieldRoot": """Create an Input component. @@ -296,21 +296,21 @@ class TextFieldSlot(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TextFieldSlot": """Create a new component instance. @@ -466,24 +466,24 @@ class TextField(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[str]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[str]] = None, - on_key_down: Optional[EventType[str]] = None, - on_key_up: Optional[EventType[str]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[str], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[str], BASE_STATE]] = None, + on_key_down: Optional[EventType[[str], BASE_STATE]] = None, + on_key_up: Optional[EventType[[str], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "TextFieldRoot": """Create an Input component. diff --git a/reflex/components/radix/themes/components/tooltip.pyi b/reflex/components/radix/themes/components/tooltip.pyi index 42875e1e53..ba59287eba 100644 --- a/reflex/components/radix/themes/components/tooltip.pyi +++ b/reflex/components/radix/themes/components/tooltip.pyi @@ -6,6 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.event import ( + BASE_STATE, EventType, ) from reflex.style import Style @@ -64,24 +65,24 @@ class Tooltip(RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_escape_key_down: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_pointer_down_outside: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_escape_key_down: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_pointer_down_outside: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Tooltip": """Initialize the Tooltip component. diff --git a/reflex/components/radix/themes/layout/base.pyi b/reflex/components/radix/themes/layout/base.pyi index df51b07f98..3a42698e40 100644 --- a/reflex/components/radix/themes/layout/base.pyi +++ b/reflex/components/radix/themes/layout/base.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -201,21 +201,21 @@ class LayoutComponent(CommonMarginProps, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "LayoutComponent": """Create a new component instance. diff --git a/reflex/components/radix/themes/layout/box.pyi b/reflex/components/radix/themes/layout/box.pyi index 895725a35b..a8b6a4dcb6 100644 --- a/reflex/components/radix/themes/layout/box.pyi +++ b/reflex/components/radix/themes/layout/box.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Optional, Union, overload from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -48,21 +48,21 @@ class Box(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Box": """Create a new component instance. diff --git a/reflex/components/radix/themes/layout/center.pyi b/reflex/components/radix/themes/layout/center.pyi index eb976892e2..be834a632d 100644 --- a/reflex/components/radix/themes/layout/center.pyi +++ b/reflex/components/radix/themes/layout/center.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -125,21 +125,21 @@ class Center(Flex): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Center": """Create a new component instance. diff --git a/reflex/components/radix/themes/layout/container.pyi b/reflex/components/radix/themes/layout/container.pyi index a5e50b9f37..aafdb3e2ee 100644 --- a/reflex/components/radix/themes/layout/container.pyi +++ b/reflex/components/radix/themes/layout/container.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -65,21 +65,21 @@ class Container(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Container": """Create the container component. diff --git a/reflex/components/radix/themes/layout/flex.pyi b/reflex/components/radix/themes/layout/flex.pyi index aba864f4f5..0bf6db96c4 100644 --- a/reflex/components/radix/themes/layout/flex.pyi +++ b/reflex/components/radix/themes/layout/flex.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -128,21 +128,21 @@ class Flex(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Flex": """Create a new component instance. diff --git a/reflex/components/radix/themes/layout/grid.pyi b/reflex/components/radix/themes/layout/grid.pyi index faf63712e7..d5342075ea 100644 --- a/reflex/components/radix/themes/layout/grid.pyi +++ b/reflex/components/radix/themes/layout/grid.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -157,21 +157,21 @@ class Grid(elements.Div, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Grid": """Create a new component instance. diff --git a/reflex/components/radix/themes/layout/list.pyi b/reflex/components/radix/themes/layout/list.pyi index 1ce6359a46..b0ea748e27 100644 --- a/reflex/components/radix/themes/layout/list.pyi +++ b/reflex/components/radix/themes/layout/list.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Iterable, Literal, Optional, Union, overload from reflex.components.component import Component, ComponentNamespace from reflex.components.el.elements.typography import Li, Ol, Ul -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -84,21 +84,21 @@ class BaseList(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "BaseList": """Create a list component. @@ -202,21 +202,21 @@ class UnorderedList(BaseList, Ul): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "UnorderedList": """Create an unordered list component. @@ -337,21 +337,21 @@ class OrderedList(BaseList, Ol): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "OrderedList": """Create an ordered list component. @@ -429,21 +429,21 @@ class ListItem(Li): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ListItem": """Create a list item component. @@ -537,21 +537,21 @@ class List(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "BaseList": """Create a list component. diff --git a/reflex/components/radix/themes/layout/section.pyi b/reflex/components/radix/themes/layout/section.pyi index 9fb790b9f8..e03e889e4b 100644 --- a/reflex/components/radix/themes/layout/section.pyi +++ b/reflex/components/radix/themes/layout/section.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -62,21 +62,21 @@ class Section(elements.Section, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Section": """Create a new component instance. diff --git a/reflex/components/radix/themes/layout/spacer.pyi b/reflex/components/radix/themes/layout/spacer.pyi index f83d7a4c92..a5263b162d 100644 --- a/reflex/components/radix/themes/layout/spacer.pyi +++ b/reflex/components/radix/themes/layout/spacer.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -125,21 +125,21 @@ class Spacer(Flex): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Spacer": """Create a new component instance. diff --git a/reflex/components/radix/themes/layout/stack.pyi b/reflex/components/radix/themes/layout/stack.pyi index c4b475218c..ee7cea1bb6 100644 --- a/reflex/components/radix/themes/layout/stack.pyi +++ b/reflex/components/radix/themes/layout/stack.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -102,21 +102,21 @@ class Stack(Flex): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Stack": """Create a new instance of the component. @@ -237,21 +237,21 @@ class VStack(Stack): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "VStack": """Create a new instance of the component. @@ -372,21 +372,21 @@ class HStack(Stack): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "HStack": """Create a new instance of the component. diff --git a/reflex/components/radix/themes/typography/blockquote.pyi b/reflex/components/radix/themes/typography/blockquote.pyi index 3a9ae5c722..a898cf424d 100644 --- a/reflex/components/radix/themes/typography/blockquote.pyi +++ b/reflex/components/radix/themes/typography/blockquote.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -139,21 +139,21 @@ class Blockquote(elements.Blockquote, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Blockquote": """Create a new component instance. diff --git a/reflex/components/radix/themes/typography/code.pyi b/reflex/components/radix/themes/typography/code.pyi index 2cda39ddf3..3d1e5263c8 100644 --- a/reflex/components/radix/themes/typography/code.pyi +++ b/reflex/components/radix/themes/typography/code.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -144,21 +144,21 @@ class Code(elements.Code, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Code": """Create a new component instance. diff --git a/reflex/components/radix/themes/typography/heading.pyi b/reflex/components/radix/themes/typography/heading.pyi index 78ef8ba602..d55583bf04 100644 --- a/reflex/components/radix/themes/typography/heading.pyi +++ b/reflex/components/radix/themes/typography/heading.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -164,21 +164,21 @@ class Heading(elements.H1, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Heading": """Create a new component instance. diff --git a/reflex/components/radix/themes/typography/link.pyi b/reflex/components/radix/themes/typography/link.pyi index 3e3eaf64b5..adff27a1ec 100644 --- a/reflex/components/radix/themes/typography/link.pyi +++ b/reflex/components/radix/themes/typography/link.pyi @@ -9,7 +9,7 @@ from reflex.components.component import MemoizationLeaf from reflex.components.core.breakpoints import Breakpoints from reflex.components.el.elements.inline import A from reflex.components.next.link import NextLink -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportDict from reflex.vars.base import Var @@ -176,21 +176,21 @@ class Link(RadixThemesComponent, A, MemoizationLeaf): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Link": """Create a Link component. diff --git a/reflex/components/radix/themes/typography/text.pyi b/reflex/components/radix/themes/typography/text.pyi index b4ddc622cf..4306ec1b1c 100644 --- a/reflex/components/radix/themes/typography/text.pyi +++ b/reflex/components/radix/themes/typography/text.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import ComponentNamespace from reflex.components.core.breakpoints import Breakpoints from reflex.components.el import elements -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -231,21 +231,21 @@ class Text(elements.Span, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Text": """Create a new component instance. @@ -488,21 +488,21 @@ class Span(Text): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Span": """Create a new component instance. @@ -585,21 +585,21 @@ class Em(elements.Em, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Em": """Create a new component instance. @@ -680,21 +680,21 @@ class Kbd(elements.Kbd, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Kbd": """Create a new component instance. @@ -771,21 +771,21 @@ class Quote(elements.Q, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Quote": """Create a new component instance. @@ -861,21 +861,21 @@ class Strong(elements.Strong, RadixThemesComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Strong": """Create a new component instance. @@ -1114,21 +1114,21 @@ class TextNamespace(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Text": """Create a new component instance. diff --git a/reflex/components/react_player/audio.pyi b/reflex/components/react_player/audio.pyi index 5c8cc85df2..9f52cebf61 100644 --- a/reflex/components/react_player/audio.pyi +++ b/reflex/components/react_player/audio.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional, Union, overload import reflex from reflex.components.react_player.react_player import ReactPlayer -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -34,39 +34,41 @@ class Audio(ReactPlayer): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_buffer: Optional[EventType[[]]] = None, - on_buffer_end: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_click_preview: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_disable_pip: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_duration: Optional[EventType[float]] = None, - on_enable_pip: Optional[EventType[[]]] = None, - on_ended: Optional[EventType[[]]] = None, - on_error: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_pause: Optional[EventType[[]]] = None, - on_play: Optional[EventType[[]]] = None, - on_playback_quality_change: Optional[EventType[[]]] = None, - on_playback_rate_change: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_buffer: Optional[EventType[[], BASE_STATE]] = None, + on_buffer_end: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_click_preview: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_disable_pip: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_duration: Optional[EventType[[float], BASE_STATE]] = None, + on_enable_pip: Optional[EventType[[], BASE_STATE]] = None, + on_ended: Optional[EventType[[], BASE_STATE]] = None, + on_error: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_pause: Optional[EventType[[], BASE_STATE]] = None, + on_play: Optional[EventType[[], BASE_STATE]] = None, + on_playback_quality_change: Optional[EventType[[], BASE_STATE]] = None, + on_playback_rate_change: Optional[EventType[[], BASE_STATE]] = None, on_progress: Optional[ - EventType[reflex.components.react_player.react_player.Progress] + EventType[ + [reflex.components.react_player.react_player.Progress], BASE_STATE + ] ] = None, - on_ready: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_seek: Optional[EventType[float]] = None, - on_start: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_ready: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_seek: Optional[EventType[[float], BASE_STATE]] = None, + on_start: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Audio": """Create the component. diff --git a/reflex/components/react_player/react_player.pyi b/reflex/components/react_player/react_player.pyi index ebae93f713..64e8d05b74 100644 --- a/reflex/components/react_player/react_player.pyi +++ b/reflex/components/react_player/react_player.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, Optional, Union, overload from typing_extensions import TypedDict from reflex.components.component import NoSSRComponent -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -39,37 +39,37 @@ class ReactPlayer(NoSSRComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_buffer: Optional[EventType[[]]] = None, - on_buffer_end: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_click_preview: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_disable_pip: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_duration: Optional[EventType[float]] = None, - on_enable_pip: Optional[EventType[[]]] = None, - on_ended: Optional[EventType[[]]] = None, - on_error: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_pause: Optional[EventType[[]]] = None, - on_play: Optional[EventType[[]]] = None, - on_playback_quality_change: Optional[EventType[[]]] = None, - on_playback_rate_change: Optional[EventType[[]]] = None, - on_progress: Optional[EventType[Progress]] = None, - on_ready: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_seek: Optional[EventType[float]] = None, - on_start: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_buffer: Optional[EventType[[], BASE_STATE]] = None, + on_buffer_end: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_click_preview: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_disable_pip: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_duration: Optional[EventType[[float], BASE_STATE]] = None, + on_enable_pip: Optional[EventType[[], BASE_STATE]] = None, + on_ended: Optional[EventType[[], BASE_STATE]] = None, + on_error: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_pause: Optional[EventType[[], BASE_STATE]] = None, + on_play: Optional[EventType[[], BASE_STATE]] = None, + on_playback_quality_change: Optional[EventType[[], BASE_STATE]] = None, + on_playback_rate_change: Optional[EventType[[], BASE_STATE]] = None, + on_progress: Optional[EventType[[Progress], BASE_STATE]] = None, + on_ready: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_seek: Optional[EventType[[float], BASE_STATE]] = None, + on_start: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ReactPlayer": """Create the component. diff --git a/reflex/components/react_player/video.pyi b/reflex/components/react_player/video.pyi index 4a6bb81b30..28f3e169b0 100644 --- a/reflex/components/react_player/video.pyi +++ b/reflex/components/react_player/video.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, Optional, Union, overload import reflex from reflex.components.react_player.react_player import ReactPlayer -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -34,39 +34,41 @@ class Video(ReactPlayer): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_buffer: Optional[EventType[[]]] = None, - on_buffer_end: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_click_preview: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_disable_pip: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_duration: Optional[EventType[float]] = None, - on_enable_pip: Optional[EventType[[]]] = None, - on_ended: Optional[EventType[[]]] = None, - on_error: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_pause: Optional[EventType[[]]] = None, - on_play: Optional[EventType[[]]] = None, - on_playback_quality_change: Optional[EventType[[]]] = None, - on_playback_rate_change: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_buffer: Optional[EventType[[], BASE_STATE]] = None, + on_buffer_end: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_click_preview: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_disable_pip: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_duration: Optional[EventType[[float], BASE_STATE]] = None, + on_enable_pip: Optional[EventType[[], BASE_STATE]] = None, + on_ended: Optional[EventType[[], BASE_STATE]] = None, + on_error: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_pause: Optional[EventType[[], BASE_STATE]] = None, + on_play: Optional[EventType[[], BASE_STATE]] = None, + on_playback_quality_change: Optional[EventType[[], BASE_STATE]] = None, + on_playback_rate_change: Optional[EventType[[], BASE_STATE]] = None, on_progress: Optional[ - EventType[reflex.components.react_player.react_player.Progress] + EventType[ + [reflex.components.react_player.react_player.Progress], BASE_STATE + ] ] = None, - on_ready: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_seek: Optional[EventType[float]] = None, - on_start: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_ready: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_seek: Optional[EventType[[float], BASE_STATE]] = None, + on_start: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Video": """Create the component. diff --git a/reflex/components/recharts/cartesian.pyi b/reflex/components/recharts/cartesian.pyi index 983de30e3c..f143d411be 100644 --- a/reflex/components/recharts/cartesian.pyi +++ b/reflex/components/recharts/cartesian.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload from reflex.constants.colors import Color -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -122,21 +122,21 @@ class Axis(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Axis": """Create the component. @@ -303,21 +303,21 @@ class XAxis(Axis): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "XAxis": """Create the component. @@ -487,21 +487,21 @@ class YAxis(Axis): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "YAxis": """Create the component. @@ -613,21 +613,21 @@ class ZAxis(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ZAxis": """Create the component. @@ -678,7 +678,7 @@ class Brush(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_change: Optional[EventType[[]]] = None, + on_change: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Brush": """Create the component. @@ -774,23 +774,23 @@ class Cartesian(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[[]]] = None, - on_animation_start: Optional[EventType[[]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[], BASE_STATE]] = None, + on_animation_start: Optional[EventType[[], BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Cartesian": """Create the component. @@ -951,23 +951,23 @@ class Area(Cartesian): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[[]]] = None, - on_animation_start: Optional[EventType[[]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[], BASE_STATE]] = None, + on_animation_start: Optional[EventType[[], BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Area": """Create the component. @@ -1093,23 +1093,23 @@ class Bar(Cartesian): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[[]]] = None, - on_animation_start: Optional[EventType[[]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[], BASE_STATE]] = None, + on_animation_start: Optional[EventType[[], BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Bar": """Create the component. @@ -1277,23 +1277,23 @@ class Line(Cartesian): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[[]]] = None, - on_animation_start: Optional[EventType[[]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[], BASE_STATE]] = None, + on_animation_start: Optional[EventType[[], BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Line": """Create the component. @@ -1424,21 +1424,21 @@ class Scatter(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Scatter": """Create the component. @@ -1539,23 +1539,23 @@ class Funnel(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[[]]] = None, - on_animation_start: Optional[EventType[[]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[], BASE_STATE]] = None, + on_animation_start: Optional[EventType[[], BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Funnel": """Create the component. @@ -1612,21 +1612,21 @@ class ErrorBar(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ErrorBar": """Create the component. @@ -1673,21 +1673,21 @@ class Reference(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Reference": """Create the component. @@ -1739,21 +1739,21 @@ class ReferenceLine(Reference): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ReferenceLine": """Create the component. @@ -1810,21 +1810,21 @@ class ReferenceDot(Reference): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ReferenceDot": """Create the component. @@ -1890,21 +1890,21 @@ class ReferenceArea(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ReferenceArea": """Create the component. @@ -1951,21 +1951,21 @@ class Grid(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Grid": """Create the component. @@ -2017,21 +2017,21 @@ class CartesianGrid(Grid): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CartesianGrid": """Create the component. @@ -2099,21 +2099,21 @@ class CartesianAxis(Grid): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CartesianAxis": """Create the component. diff --git a/reflex/components/recharts/charts.pyi b/reflex/components/recharts/charts.pyi index 2c6d7fffa0..4a2a9e3328 100644 --- a/reflex/components/recharts/charts.pyi +++ b/reflex/components/recharts/charts.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload from reflex.constants.colors import Color -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -28,21 +28,21 @@ class ChartBase(RechartsCharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ChartBase": """Create a chart component. @@ -100,21 +100,21 @@ class CategoricalChartBase(ChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "CategoricalChartBase": """Create a chart component. @@ -185,21 +185,21 @@ class AreaChart(CategoricalChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "AreaChart": """Create a chart component. @@ -269,21 +269,21 @@ class BarChart(CategoricalChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "BarChart": """Create a chart component. @@ -352,21 +352,21 @@ class LineChart(CategoricalChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "LineChart": """Create a chart component. @@ -441,21 +441,21 @@ class ComposedChart(CategoricalChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ComposedChart": """Create a chart component. @@ -507,21 +507,21 @@ class PieChart(ChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "PieChart": """Create a chart component. @@ -575,9 +575,9 @@ class RadarChart(ChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_click: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadarChart": """Create a chart component. @@ -635,21 +635,21 @@ class RadialBarChart(ChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadialBarChart": """Create a chart component. @@ -702,14 +702,14 @@ class ScatterChart(ChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_click: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ScatterChart": """Create a chart component. @@ -753,21 +753,21 @@ class FunnelChart(ChartBase): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "FunnelChart": """Create a chart component. @@ -823,23 +823,23 @@ class Treemap(RechartsCharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[[]]] = None, - on_animation_start: Optional[EventType[[]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[], BASE_STATE]] = None, + on_animation_start: Optional[EventType[[], BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Treemap": """Create a chart component. diff --git a/reflex/components/recharts/general.pyi b/reflex/components/recharts/general.pyi index c99d24b042..996eb90ced 100644 --- a/reflex/components/recharts/general.pyi +++ b/reflex/components/recharts/general.pyi @@ -7,7 +7,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload from reflex.components.component import MemoizationLeaf from reflex.constants.colors import Color -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -33,22 +33,22 @@ class ResponsiveContainer(Recharts, MemoizationLeaf): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_resize: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_resize: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "ResponsiveContainer": """Create a new memoization leaf component. @@ -144,21 +144,21 @@ class Legend(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Legend": """Create the component. @@ -234,21 +234,21 @@ class GraphingTooltip(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "GraphingTooltip": """Create the component. @@ -345,21 +345,21 @@ class Label(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Label": """Create the component. @@ -445,21 +445,21 @@ class LabelList(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "LabelList": """Create the component. diff --git a/reflex/components/recharts/polar.pyi b/reflex/components/recharts/polar.pyi index 025f8443de..1c8d7316e1 100644 --- a/reflex/components/recharts/polar.pyi +++ b/reflex/components/recharts/polar.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, List, Literal, Optional, Union, overload from reflex.constants.colors import Color -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -84,14 +84,14 @@ class Pie(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[[]]] = None, - on_animation_start: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[], BASE_STATE]] = None, + on_animation_start: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Pie": """Create the component. @@ -193,8 +193,8 @@ class Radar(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[[]]] = None, - on_animation_start: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[], BASE_STATE]] = None, + on_animation_start: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Radar": """Create the component. @@ -289,14 +289,14 @@ class RadialBar(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[[]]] = None, - on_animation_start: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[], BASE_STATE]] = None, + on_animation_start: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RadialBar": """Create the component. @@ -358,21 +358,21 @@ class PolarAngleAxis(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "PolarAngleAxis": """Create the component. @@ -434,21 +434,21 @@ class PolarGrid(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "PolarGrid": """Create the component. @@ -554,12 +554,12 @@ class PolarRadiusAxis(Recharts): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_click: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "PolarRadiusAxis": """Create the component. diff --git a/reflex/components/recharts/recharts.pyi b/reflex/components/recharts/recharts.pyi index c13519f055..5055707dc6 100644 --- a/reflex/components/recharts/recharts.pyi +++ b/reflex/components/recharts/recharts.pyi @@ -6,7 +6,7 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.components.component import Component, MemoizationLeaf, NoSSRComponent -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.vars.base import Var @@ -23,21 +23,21 @@ class Recharts(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Recharts": """Create the component. @@ -69,21 +69,21 @@ class RechartsCharts(NoSSRComponent, MemoizationLeaf): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "RechartsCharts": """Create a new memoization leaf component. diff --git a/reflex/components/sonner/toast.pyi b/reflex/components/sonner/toast.pyi index 10168257eb..b2ef3fc55d 100644 --- a/reflex/components/sonner/toast.pyi +++ b/reflex/components/sonner/toast.pyi @@ -9,7 +9,7 @@ from reflex.base import Base from reflex.components.component import Component, ComponentNamespace from reflex.components.lucide.icon import Icon from reflex.components.props import NoExtrasAllowedProps, PropsBase -from reflex.event import EventSpec, EventType +from reflex.event import BASE_STATE, EventSpec, EventType from reflex.style import Style from reflex.utils.serializers import serializer from reflex.vars.base import Var @@ -116,21 +116,21 @@ class Toaster(Component): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Toaster": """Create a toaster component. diff --git a/reflex/components/suneditor/editor.pyi b/reflex/components/suneditor/editor.pyi index 3734d2f16e..e89d708edc 100644 --- a/reflex/components/suneditor/editor.pyi +++ b/reflex/components/suneditor/editor.pyi @@ -8,7 +8,7 @@ from typing import Any, Dict, List, Literal, Optional, Tuple, Union, overload from reflex.base import Base from reflex.components.component import NoSSRComponent -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.style import Style from reflex.utils.imports import ImportDict from reflex.vars.base import Var @@ -127,29 +127,29 @@ class Editor(NoSSRComponent): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[str]] = None, - on_change: Optional[EventType[str]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_copy: Optional[EventType[[]]] = None, - on_cut: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_input: Optional[EventType[[]]] = None, - on_load: Optional[EventType[bool]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_paste: Optional[EventType[str, bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, - toggle_code_view: Optional[EventType[bool]] = None, - toggle_full_screen: Optional[EventType[bool]] = None, + on_blur: Optional[EventType[[str], BASE_STATE]] = None, + on_change: Optional[EventType[[str], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_copy: Optional[EventType[[], BASE_STATE]] = None, + on_cut: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_input: Optional[EventType[[], BASE_STATE]] = None, + on_load: Optional[EventType[[bool], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_paste: Optional[EventType[[str, bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, + toggle_code_view: Optional[EventType[[bool], BASE_STATE]] = None, + toggle_full_screen: Optional[EventType[[bool], BASE_STATE]] = None, **props, ) -> "Editor": """Create an instance of Editor. No children allowed. diff --git a/reflex/event.py b/reflex/event.py index 7d6249d14f..ddcf389ea8 100644 --- a/reflex/event.py +++ b/reflex/event.py @@ -10,6 +10,7 @@ from base64 import b64encode from functools import partial from typing import ( + TYPE_CHECKING, Any, Callable, Dict, @@ -19,13 +20,20 @@ Sequence, Tuple, Type, - TypeVar, Union, get_type_hints, overload, ) -from typing_extensions import ParamSpec, Protocol, get_args, get_origin +from typing_extensions import ( + Concatenate, + ParamSpec, + Protocol, + TypeAliasType, + TypeVar, + get_args, + get_origin, +) from reflex import constants from reflex.constants.state import FRONTEND_EVENT_STATE @@ -1638,122 +1646,132 @@ def create( background_event_decorator = background -if sys.version_info >= (3, 10): - from typing import Concatenate - - class EventCallback(Generic[P, T]): - """A descriptor that wraps a function to be used as an event.""" - - def __init__(self, func: Callable[Concatenate[Any, P], T]): - """Initialize the descriptor with the function to be wrapped. - - Args: - func: The function to be wrapped. - """ - self.func = func - - @property - def prevent_default(self): - """Prevent default behavior. - - Returns: - The event callback with prevent default behavior. - """ - return self - - @property - def stop_propagation(self): - """Stop event propagation. - - Returns: - The event callback with stop propagation behavior. - """ - return self - - @overload - def __call__( - self: EventCallback[Q, T], - ) -> EventCallback[Q, T]: ... - - @overload - def __call__( - self: EventCallback[Concatenate[V, Q], T], value: V | Var[V] - ) -> EventCallback[Q, T]: ... - - @overload - def __call__( - self: EventCallback[Concatenate[V, V2, Q], T], - value: V | Var[V], - value2: V2 | Var[V2], - ) -> EventCallback[Q, T]: ... - - @overload - def __call__( - self: EventCallback[Concatenate[V, V2, V3, Q], T], - value: V | Var[V], - value2: V2 | Var[V2], - value3: V3 | Var[V3], - ) -> EventCallback[Q, T]: ... - - @overload - def __call__( - self: EventCallback[Concatenate[V, V2, V3, V4, Q], T], - value: V | Var[V], - value2: V2 | Var[V2], - value3: V3 | Var[V3], - value4: V4 | Var[V4], - ) -> EventCallback[Q, T]: ... - - def __call__(self, *values) -> EventCallback: # type: ignore - """Call the function with the values. - - Args: - *values: The values to call the function with. - - Returns: - The function with the values. - """ - return self.func(*values) # type: ignore - - @overload - def __get__( - self: EventCallback[P, T], instance: None, owner - ) -> EventCallback[P, T]: ... - - @overload - def __get__(self, instance, owner) -> Callable[P, T]: ... - - def __get__(self, instance, owner) -> Callable: # type: ignore - """Get the function with the instance bound to it. - - Args: - instance: The instance to bind to the function. - owner: The owner of the function. - - Returns: - The function with the instance bound to it - """ - if instance is None: - return self.func # type: ignore - - return partial(self.func, instance) # type: ignore +class EventCallback(Generic[P, T]): + """A descriptor that wraps a function to be used as an event.""" -else: + def __init__(self, func: Callable[Concatenate[Any, P], T]): + """Initialize the descriptor with the function to be wrapped. + + Args: + func: The function to be wrapped. + """ + self.func = func + + @property + def prevent_default(self): + """Prevent default behavior. + + Returns: + The event callback with prevent default behavior. + """ + return self + + @property + def stop_propagation(self): + """Stop event propagation. + + Returns: + The event callback with stop propagation behavior. + """ + return self + + @overload + def __call__( + self: EventCallback[Q, T], + ) -> EventCallback[Q, T]: ... + + @overload + def __call__( + self: EventCallback[Concatenate[V, Q], T], value: V | Var[V] + ) -> EventCallback[Q, T]: ... + + @overload + def __call__( + self: EventCallback[Concatenate[V, V2, Q], T], + value: V | Var[V], + value2: V2 | Var[V2], + ) -> EventCallback[Q, T]: ... + + @overload + def __call__( + self: EventCallback[Concatenate[V, V2, V3, Q], T], + value: V | Var[V], + value2: V2 | Var[V2], + value3: V3 | Var[V3], + ) -> EventCallback[Q, T]: ... + + @overload + def __call__( + self: EventCallback[Concatenate[V, V2, V3, V4, Q], T], + value: V | Var[V], + value2: V2 | Var[V2], + value3: V3 | Var[V3], + value4: V4 | Var[V4], + ) -> EventCallback[Q, T]: ... + + def __call__(self, *values) -> EventCallback: # type: ignore + """Call the function with the values. + + Args: + *values: The values to call the function with. + + Returns: + The function with the values. + """ + return self.func(*values) # type: ignore + + @overload + def __get__( + self: EventCallback[P, T], instance: None, owner + ) -> EventCallback[P, T]: ... - class EventCallback(Generic[P, T]): - """A descriptor that wraps a function to be used as an event.""" + @overload + def __get__(self, instance, owner) -> Callable[P, T]: ... + + def __get__(self, instance, owner) -> Callable: # type: ignore + """Get the function with the instance bound to it. + + Args: + instance: The instance to bind to the function. + owner: The owner of the function. + + Returns: + The function with the instance bound to it + """ + if instance is None: + return self.func # type: ignore + + return partial(self.func, instance) # type: ignore G = ParamSpec("G") +if TYPE_CHECKING: + from reflex.state import BaseState + + BASE_STATE = TypeVar("BASE_STATE", bound=BaseState) +else: + BASE_STATE = TypeVar("BASE_STATE") + +StateCallable = TypeAliasType( + "StateCallable", + Callable[Concatenate[BASE_STATE, G], Any], + type_params=(G, BASE_STATE), +) + IndividualEventType = Union[ - EventSpec, EventHandler, Callable[G, Any], EventCallback[G, Any], Var[Any] + EventSpec, + EventHandler, + Callable[G, Any], + StateCallable[G, BASE_STATE], + EventCallback[G, Any], + Var[Any], ] ItemOrList = Union[V, List[V]] -EventType = ItemOrList[IndividualEventType[G]] +EventType = ItemOrList[IndividualEventType[G, BASE_STATE]] class EventNamespace(types.SimpleNamespace): @@ -1771,90 +1789,49 @@ class EventNamespace(types.SimpleNamespace): EventType = EventType EventCallback = EventCallback - if sys.version_info >= (3, 10): - - @overload - @staticmethod - def __call__( - func: None = None, *, background: bool | None = None - ) -> Callable[[Callable[Concatenate[Any, P], T]], EventCallback[P, T]]: ... - - @overload - @staticmethod - def __call__( - func: Callable[Concatenate[Any, P], T], - *, - background: bool | None = None, - ) -> EventCallback[P, T]: ... - - @staticmethod - def __call__( - func: Callable[Concatenate[Any, P], T] | None = None, - *, - background: bool | None = None, - ) -> Union[ - EventCallback[P, T], - Callable[[Callable[Concatenate[Any, P], T]], EventCallback[P, T]], - ]: - """Wrap a function to be used as an event. - - Args: - func: The function to wrap. - background: Whether the event should be run in the background. Defaults to False. - - Returns: - The wrapped function. - """ - - def wrapper(func: Callable[Concatenate[Any, P], T]) -> EventCallback[P, T]: - if background is True: - return background_event_decorator(func, __internal_reflex_call=True) # type: ignore - return func # type: ignore - - if func is not None: - return wrapper(func) - return wrapper - else: - - @overload - @staticmethod - def __call__( - func: None = None, *, background: bool | None = None - ) -> Callable[[Callable[P, T]], Callable[P, T]]: ... - - @overload - @staticmethod - def __call__( - func: Callable[P, T], *, background: bool | None = None - ) -> Callable[P, T]: ... - - @staticmethod - def __call__( - func: Callable[P, T] | None = None, - *, - background: bool | None = None, - ) -> Union[ - Callable[P, T], - Callable[[Callable[P, T]], Callable[P, T]], - ]: - """Wrap a function to be used as an event. - - Args: - func: The function to wrap. - background: Whether the event should be run in the background. Defaults to False. - - Returns: - The wrapped function. - """ - - def wrapper(func: Callable[P, T]) -> Callable[P, T]: - if background is True: - return background_event_decorator(func, __internal_reflex_call=True) # type: ignore - return func # type: ignore - - if func is not None: - return wrapper(func) - return wrapper + @overload + @staticmethod + def __call__( + func: None = None, *, background: bool | None = None + ) -> Callable[[Callable[Concatenate[BASE_STATE, P], T]], EventCallback[P, T]]: ... + + @overload + @staticmethod + def __call__( + func: Callable[Concatenate[BASE_STATE, P], T], + *, + background: bool | None = None, + ) -> EventCallback[P, T]: ... + + @staticmethod + def __call__( + func: Callable[Concatenate[BASE_STATE, P], T] | None = None, + *, + background: bool | None = None, + ) -> Union[ + EventCallback[P, T], + Callable[[Callable[Concatenate[BASE_STATE, P], T]], EventCallback[P, T]], + ]: + """Wrap a function to be used as an event. + + Args: + func: The function to wrap. + background: Whether the event should be run in the background. Defaults to False. + + Returns: + The wrapped function. + """ + + def wrapper( + func: Callable[Concatenate[BASE_STATE, P], T], + ) -> EventCallback[P, T]: + if background is True: + return background_event_decorator(func, __internal_reflex_call=True) # type: ignore + return func # type: ignore + + if func is not None: + return wrapper(func) + return wrapper get_event = staticmethod(get_event) get_hydrate_event = staticmethod(get_hydrate_event) diff --git a/reflex/experimental/layout.pyi b/reflex/experimental/layout.pyi index f0e94a62d1..bfac49161e 100644 --- a/reflex/experimental/layout.pyi +++ b/reflex/experimental/layout.pyi @@ -10,7 +10,7 @@ from reflex.components.base.fragment import Fragment from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf from reflex.components.radix.primitives.drawer import DrawerRoot from reflex.components.radix.themes.layout.box import Box -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType from reflex.state import ComponentState from reflex.style import Style from reflex.vars.base import Var @@ -51,21 +51,21 @@ class Sidebar(Box, MemoizationLeaf): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Sidebar": """Create the sidebar component. @@ -119,23 +119,23 @@ class DrawerSidebar(DrawerRoot): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_animation_end: Optional[EventType[bool]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_open_change: Optional[EventType[bool]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_animation_end: Optional[EventType[[bool], BASE_STATE]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_open_change: Optional[EventType[[bool], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "DrawerSidebar": """Create the sidebar component. @@ -169,21 +169,21 @@ class SidebarTrigger(Fragment): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "SidebarTrigger": """Create the sidebar trigger component. @@ -234,21 +234,21 @@ class Layout(Box): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Layout": """Create the layout component. @@ -302,21 +302,21 @@ class LayoutNamespace(ComponentNamespace): class_name: Optional[Any] = None, autofocus: Optional[bool] = None, custom_attrs: Optional[Dict[str, Union[Var, str]]] = None, - on_blur: Optional[EventType[[]]] = None, - on_click: Optional[EventType[[]]] = None, - on_context_menu: Optional[EventType[[]]] = None, - on_double_click: Optional[EventType[[]]] = None, - on_focus: Optional[EventType[[]]] = None, - on_mount: Optional[EventType[[]]] = None, - on_mouse_down: Optional[EventType[[]]] = None, - on_mouse_enter: Optional[EventType[[]]] = None, - on_mouse_leave: Optional[EventType[[]]] = None, - on_mouse_move: Optional[EventType[[]]] = None, - on_mouse_out: Optional[EventType[[]]] = None, - on_mouse_over: Optional[EventType[[]]] = None, - on_mouse_up: Optional[EventType[[]]] = None, - on_scroll: Optional[EventType[[]]] = None, - on_unmount: Optional[EventType[[]]] = None, + on_blur: Optional[EventType[[], BASE_STATE]] = None, + on_click: Optional[EventType[[], BASE_STATE]] = None, + on_context_menu: Optional[EventType[[], BASE_STATE]] = None, + on_double_click: Optional[EventType[[], BASE_STATE]] = None, + on_focus: Optional[EventType[[], BASE_STATE]] = None, + on_mount: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_down: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_enter: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_leave: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_move: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_out: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_over: Optional[EventType[[], BASE_STATE]] = None, + on_mouse_up: Optional[EventType[[], BASE_STATE]] = None, + on_scroll: Optional[EventType[[], BASE_STATE]] = None, + on_unmount: Optional[EventType[[], BASE_STATE]] = None, **props, ) -> "Layout": """Create the layout component. diff --git a/reflex/page.py b/reflex/page.py index 87a8c49c22..8cc0317571 100644 --- a/reflex/page.py +++ b/reflex/page.py @@ -6,7 +6,7 @@ from typing import Any, Dict, List from reflex.config import get_config -from reflex.event import EventType +from reflex.event import BASE_STATE, EventType DECORATED_PAGES: Dict[str, List] = defaultdict(list) @@ -18,7 +18,7 @@ def page( description: str | None = None, meta: list[Any] | None = None, script_tags: list[Any] | None = None, - on_load: EventType[[]] | None = None, + on_load: EventType[[], BASE_STATE] | None = None, ): """Decorate a function as a page. diff --git a/reflex/utils/pyi_generator.py b/reflex/utils/pyi_generator.py index 961eea178f..8fe46fe9e2 100644 --- a/reflex/utils/pyi_generator.py +++ b/reflex/utils/pyi_generator.py @@ -70,7 +70,13 @@ DEFAULT_IMPORTS = { "typing": sorted(DEFAULT_TYPING_IMPORTS), "reflex.components.core.breakpoints": ["Breakpoints"], - "reflex.event": ["EventChain", "EventHandler", "EventSpec", "EventType"], + "reflex.event": [ + "EventChain", + "EventHandler", + "EventSpec", + "EventType", + "BASE_STATE", + ], "reflex.style": ["Style"], "reflex.vars.base": ["Var"], } @@ -490,7 +496,7 @@ def _generate_component_create_functiondef( def figure_out_return_type(annotation: Any): if inspect.isclass(annotation) and issubclass(annotation, inspect._empty): - return ast.Name(id="EventType") + return ast.Name(id="EventType[..., BASE_STATE]") if not isinstance(annotation, str) and get_origin(annotation) is tuple: arguments = get_args(annotation) @@ -507,15 +513,13 @@ def figure_out_return_type(annotation: Any): args_str = ", ".join(ast.unparse(arg) for arg in type_args) # Create EventType using the joined string - event_type = ast.Name(id=f"EventType[{args_str}]") - - return event_type + return ast.Name(id=f"EventType[[{args_str}], BASE_STATE]") if isinstance(annotation, str) and annotation.startswith("Tuple["): inside_of_tuple = annotation.removeprefix("Tuple[").removesuffix("]") if inside_of_tuple == "()": - return ast.Name(id="EventType[[]]") + return ast.Name(id="EventType[[], BASE_STATE]") arguments = [""] @@ -541,8 +545,10 @@ def figure_out_return_type(annotation: Any): for argument in arguments ] - return ast.Name(id=f"EventType[{', '.join(arguments_without_var)}]") - return ast.Name(id="EventType") + return ast.Name( + id=f"EventType[[{', '.join(arguments_without_var)}], BASE_STATE]" + ) + return ast.Name(id="EventType[..., BASE_STATE]") event_triggers = clz().get_event_triggers()